.mu-breadcrumb {
    padding: 0.5rem 1.5rem;
    font-size: 13px;
    color: #6b7280;
}
.mu-breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.mu-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    opacity: 0.5;
}
.mu-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.mu-breadcrumb a:hover { text-decoration: underline; }
.mu-breadcrumb li:last-child { color: #111827; font-weight: 500; }

.mu-page {
    width: min(96%, 1600px);
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.mu-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.mu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.mu-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.mu-btn:active { transform: scale(0.98); }

.mu-btn-primary {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.mu-btn-primary:hover { background: #1e40af; border-color: #1e40af; color: #fff; }

.mu-btn-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}
.mu-btn-danger:hover { background: #fee2e2; }

/* ── Card ───────────────────────────────────────────────────── */
.mu-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.mu-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f3f4f6;
}
.mu-search-wrap { position: relative; flex: 1; max-width: 280px; }
.mu-search-icon {
    position: absolute; left: 10px;
    top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 13px;
    pointer-events: none;
}
.mu-search-input {
    padding-left: 32px !important;
    font-size: 13px !important;
    height: 36px;
}
.mu-row-count { font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* ── Table ──────────────────────────────────────────────────── */
.mu-table { width: 100%; }
.mu-table thead th {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.mu-table tbody td {
    padding: 11px 14px;
    font-size: 13px;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.mu-table tbody tr:last-child td { border-bottom: none; }
.mu-table tbody tr:hover { background: #f9fafb; }
.mu-col-aksi { width: 160px; }

.mu-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 8px;
    vertical-align: middle;
}
.mu-ruang-name { font-weight: 500; vertical-align: middle; }

.mu-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}
.mu-badge-blue { background: #dbeafe; color: #1e40af; }

/* ── Action buttons in rows ─────────────────────────────────── */
.mu-actions { display: flex; gap: 6px; align-items: center; }
.mu-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.mu-action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}
.mu-action-del:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ── Empty state ────────────────────────────────────────────── */
.mu-empty-state {
    text-align: center;
    padding: 2.5rem 1rem !important;
    color: #9ca3af !important;
}
.mu-empty-state i { font-size: 28px; display: block; margin-bottom: 8px; opacity: 0.4; }

/* ── Form Panel ─────────────────────────────────────────────── */
.mu-form-panel {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}
.mu-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.mu-form-title { font-size: 15px; font-weight: 600; margin: 0; }
form { padding: 18px; }

.mu-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 1rem;
}

.mu-field { display: flex; flex-direction: column; }
.mu-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.mu-required { color: #dc2626; margin-left: 2px; }

.mu-field-error {
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}
.mu-field-error.visible { display: block; }

.mu-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.mu-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.mu-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ── Modal ──────────────────────────────────────────────────── */

/* Override khusus untuk div (jika masih ada di halaman lain) */
div.mu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

/* dialog — JANGAN set display, width/height 100vw/vh, atau position */
dialog.mu-modal-overlay {
    border: none;
    padding: 0;
    background: transparent;
    max-width: calc(100% - 2rem);
    width: 380px;
    overflow: visible;
}
dialog.mu-modal-overlay::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.mu-modal {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 380px;
    padding: 1.75rem;
    animation: muModalIn 0.15s ease;
}
@keyframes muModalIn {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.mu-modal-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    font-size: 18px;
    margin-bottom: 14px;
}
.mu-modal-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.mu-modal-body  { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0 0 1.25rem; }
.mu-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Toast ──────────────────────────────────────────────────── */
.mu-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    z-index: 9999;
    animation: muToastIn 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@keyframes muToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mu-toast.mu-toast-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}