        /* ── Base ── */
        body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: #f4f6f9; font-size: .9rem; color: #1e293b; }

        /* ── Sidebar ── */
        :root { --sb-w: 232px; --sb-cw: 54px; --sb-bg: #0f172a; --sb-border: rgba(255,255,255,.08); --muted: rgba(255,255,255,.45); }
        .mh-sidebar {
            width: var(--sb-w);
            background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
            border-right: none;
            position: fixed; top: 0; left: 0;
            height: 100vh; z-index: 1000;
            overflow-y: auto; overflow-x: hidden;
            display: flex; flex-direction: column;
            transition: width .22s cubic-bezier(.4,0,.2,1);
        }
        .mh-main, .sa-main {
            margin-left: var(--sb-w); min-height: 100vh;
            transition: margin-left .22s cubic-bezier(.4,0,.2,1);
        }

        /* Sidebar brand */
        .mh-brand {
            padding: .875rem .75rem;
            border-bottom: 1px solid rgba(255,255,255,.08);
            display: flex; align-items: center; gap: .5rem;
            flex-shrink: 0;
        }
        .mh-brand-icon {
            width: 30px; height: 30px; border-radius: 7px;
            background: var(--accent);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .mh-brand-name { font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
        .sb-icon-btn {
            width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
            color: rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center;
            cursor: pointer; flex-shrink: 0; font-size: .9rem;
            transition: background .12s, color .12s;
        }
        .sb-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

        /* Sidebar section label */
        .mh-nav-section {
            font-size: .58rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: .12em;
            color: rgba(255,255,255,.32);
            padding: .7rem .875rem .25rem;
            white-space: nowrap; overflow: hidden;
            transition: opacity .15s, padding .22s, color .13s;
        }
        .mh-nav-section:hover { color: rgba(255,255,255,.52); }
        .mh-nav-divider {
            border: none; border-top: 1px solid rgba(255,255,255,.07);
            margin: .35rem .75rem;
        }

        /* Sidebar nav links */
        .mh-sidebar .nav-link {
            color: rgba(255,255,255,.6);
            border-radius: 0 8px 8px 0;
            padding: .5rem .75rem;
            font-size: .83rem;
            font-weight: 500;
            display: flex; align-items: center; gap: .65rem;
            margin: 1px 6px 1px 0;
            transition: background .13s, color .13s, border-color .13s, padding .22s, justify-content .22s;
            white-space: nowrap;
            border-left: 3px solid transparent;
            position: relative;
        }
        .mh-sidebar .nav-link i {
            font-size: .9rem; flex-shrink: 0;
            width: 18px; text-align: center;
            transition: color .13s;
        }
        .mh-sidebar .nav-link .nav-text { overflow: hidden; }
        .mh-sidebar .nav-link:hover {
            color: rgba(255,255,255,.92);
            background: rgba(255,255,255,.07);
            border-left-color: rgba(255,255,255,.18);
        }
        .mh-sidebar .nav-link:hover i { color: rgba(255,255,255,.85); }
        .mh-sidebar .nav-link.active {
            color: #fff;
            background: rgba(59,130,246,.22);
            font-weight: 600;
            border-left-color: #3b82f6;
        }
        .mh-sidebar .nav-link.active i { color: #93c5fd; }

        /* Sidebar user footer */
        .mh-sidebar-footer {
            border-top: 1px solid rgba(255,255,255,.08);
            padding: .75rem;
            margin-top: auto; flex-shrink: 0;
        }
        .mh-avatar {
            width: 32px; height: 32px; border-radius: 50%;
            background: var(--accent);
            color: #fff; font-weight: 700; font-size: .78rem;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .mh-user-name { font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; }
        .mh-user-role { font-size: .68rem; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; }

        /* ── Collapsed state ── */
        body.sb-collapsed .mh-sidebar { width: var(--sb-cw); }
        body.sb-collapsed .mh-main, body.sb-collapsed .sa-main { margin-left: var(--sb-cw); }
        body.sb-collapsed .mh-brand-name { display: none; }
        body.sb-collapsed .mh-brand .sb-icon-btn { display: none; }
        body.sb-collapsed .mh-nav-section { opacity: 0; padding-top: 0; padding-bottom: 0; height: 0; }
        body.sb-collapsed .mh-sidebar .nav-link { justify-content: center; padding: .5rem 0; gap: 0; border-radius: 7px; margin: 1px 5px; border-left-color: transparent !important; }
        body.sb-collapsed .mh-sidebar .nav-link.active { border-left-color: transparent !important; background: rgba(59,130,246,.28); }
        body.sb-collapsed .mh-sidebar .nav-link .nav-text { display: none; }
        body.sb-collapsed .mh-sidebar-footer .sb-user-text { display: none; }
        body.sb-collapsed .mh-sidebar-footer .sb-signout { display: none; }
        body.sb-collapsed .mh-sidebar-footer { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .35rem; }
        .sb-signout-icon { display: none; }
        body.sb-collapsed .sb-signout-icon {
            display: flex; align-items: center; justify-content: center;
            width: 32px; height: 32px; border-radius: 6px;
            color: rgba(255,255,255,.6); text-decoration: none; font-size: 1rem;
            transition: background .12s;
        }
        body.sb-collapsed .sb-signout-icon:hover { background: rgba(255,255,255,.1); }

        /* ── Collapsible nav groups ── */
        .mh-nav-section {
            display: flex; align-items: center; justify-content: space-between;
            cursor: pointer; user-select: none;
            padding-right: .6rem;
        }
        .mh-nav-section:hover { color: rgba(255,255,255,.6); }
        .mh-nav-section .grp-chevron {
            font-size: .6rem; opacity: .5;
            transition: transform .18s;
            flex-shrink: 0;
        }
        .mh-nav-section.grp-closed .grp-chevron { transform: rotate(-90deg); }
        .nav-group-items { overflow: hidden; transition: max-height .22s ease; }
        .nav-group-items.grp-closed { max-height: 0 !important; }
        body.sb-collapsed .nav-group-items { max-height: 400px !important; }
        body.sb-collapsed .mh-nav-section .grp-chevron { display: none; }

        /* Expand tab */
        #sb-expand-tab {
            display: none;
            position: fixed;
            top: 50%;
            left: var(--sb-cw);
            transform: translateY(-50%);
            z-index: 1001;
            background: #1e293b;
            border: 1px solid rgba(255,255,255,.12);
            border-left: none;
            border-radius: 0 6px 6px 0;
            color: rgba(255,255,255,.6);
            padding: 10px 5px;
            cursor: pointer;
            font-size: .8rem;
            line-height: 1;
            transition: background .12s, color .12s;
        }
        #sb-expand-tab:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
        body.sb-collapsed #sb-expand-tab { display: flex; align-items: center; }

        /* ── Topbar ── */
        .mh-topbar, .sa-topbar {
            background: #fff;
            border-bottom: 1px solid #e8edf2;
            padding: .875rem 1.5rem;
            position: sticky; top: 0; z-index: 999;
            display: flex; align-items: center; justify-content: space-between;
        }
        .mh-page-title, .sa-page-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0; }
        .mh-breadcrumb, .sa-breadcrumb { font-size: .75rem; color: #94a3b8; margin: 0; }
        .mh-breadcrumb a, .sa-breadcrumb a { color: #94a3b8; text-decoration: none; }
        .mh-breadcrumb a:hover, .sa-breadcrumb a:hover { color: var(--accent); }

        /* ── Content ── */
        .mh-content, .sa-content { padding: 1.5rem; }

        /* ── Tables ── */
        .table thead th {
            font-size: .7rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: .06em;
            color: #64748b; background: #f8fafc;
            border-bottom-width: 1px;
            white-space: nowrap; padding: .625rem .875rem;
        }
        .table tbody td { padding: .75rem .875rem; vertical-align: middle; }
        .table-hover tbody tr:hover { background: #f8fafc; }

        /* ── Cards ── */
        .card { border: 1px solid #e8edf2; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); background: #fff; }
        .card-header { background: #fff; border-bottom: 1px solid #e8edf2; font-weight: 600; padding: .875rem 1.25rem; }

        /* ── KPI Cards ── */
        .kpi-value { font-size: 1.65rem; font-weight: 800; line-height: 1; }
        .kpi-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin-bottom: .35rem; }

        /* ── Badges ── */
        .badge { font-weight: 600; font-size: .7rem; letter-spacing: .01em; }

        /* ── Buttons ── */
        .btn { font-weight: 500; font-size: .84rem; border-radius: 7px; }
        .btn-sm { font-size: .78rem; border-radius: 5px; }
        .btn-primary { background: var(--accent); border-color: var(--accent); }
        .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

        /* ── Forms ── */
        .form-control, .form-select {
            border-color: #e2e8f0; border-radius: 7px;
            font-size: .875rem; padding: .5rem .75rem;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 .2rem var(--accent-focus);
        }
        .form-label { font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .35rem; }

        /* ── Empty state ── */
        .mh-empty { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
        .mh-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
        .mh-empty h5 { color: #475569; font-weight: 600; }
        .mh-empty p { font-size: .875rem; }

        /* ── Urgency / Status helpers ── */
        .badge-stat    { background: #fee2e2; color: #dc2626; }
        .badge-urgent  { background: #fef3c7; color: #d97706; }
        .badge-routine { background: #f1f5f9; color: #475569; }

        /* ── Accent text / bg utilities ── */
        .text-accent  { color: var(--accent) !important; }
        .bg-accent    { background: var(--accent) !important; }
        .bg-accent-lt { background: var(--accent-light) !important; }
        .border-accent { border-color: var(--accent-border) !important; }

        /* ══ MOBILE RESPONSIVE ═══════════════════════════════════════════ */
        @media (max-width: 767px) {
            .mh-sidebar {
                transform: translateX(-240px);
                transition: transform .25s cubic-bezier(.4,0,.2,1), width .22s;
                width: 232px !important;
                z-index: 1050;
            }
            body.sb-mobile-open .mh-sidebar { transform: translateX(0); }
            .mh-main, .sa-main { margin-left: 0 !important; }
            .sb-overlay {
                display: none; position: fixed; inset: 0;
                background: rgba(0,0,0,.35); z-index: 1040;
                backdrop-filter: blur(1px);
            }
            body.sb-mobile-open .sb-overlay { display: block; }
            .mh-topbar, .sa-topbar { padding: .7rem 1rem; }
            .mh-page-title, .sa-page-title { font-size: .95rem; }
            .mh-content, .sa-content { padding: .875rem; }
            #sb-expand-tab { display: none !important; }
            #btn-sb-toggle { display: none !important; }
            .mh-hamburger {
                display: flex !important;
                align-items: center; justify-content: center;
                width: 34px; height: 34px; border-radius: 7px;
                border: 1px solid #e2e8f0; background: #f8fafc;
                color: #475569; cursor: pointer; flex-shrink: 0;
                margin-right: .6rem;
            }
        }
        @media (min-width: 768px) {
            .mh-hamburger { display: none !important; }
            .sb-overlay   { display: none !important; }
        }
        /* ════════════════════════════════════════════════════════════════ */

        /* ── Print ── */
        @media print {
            .mh-sidebar, .mh-topbar, .sa-topbar, .no-print { display: none !important; }
            .mh-main, .sa-main { margin-left: 0 !important; }
            .mh-content, .sa-content { padding: 0 !important; }
        }

