:root{
    --bg:#eef3fb;
    --bg-deep:#dfeafe;
    --surface:#ffffff;
    --surface-2:#f8fbff;
    --surface-glass:rgba(255,255,255,.78);
    --text:#07111f;
    --text-2:#152238;
    --muted:#60708b;
    --muted-2:#7c8ca6;
    --line:#dfE7f3;
    --line-2:#cfdbec;
    --primary:#1455d9;
    --primary-2:#0ea5e9;
    --cyan:#06b6d4;
    --violet:#6d28d9;
    --green:#059669;
    --amber:#d97706;
    --red:#dc2626;
    --dark:#071225;
    --dark-2:#0e1d36;
    --radius-sm:14px;
    --radius:22px;
    --radius-lg:32px;
    --sidebar-width:308px;
    --shadow-xs:0 8px 22px rgba(15,23,42,.06);
    --shadow:0 22px 60px rgba(15,23,42,.10);
    --shadow-strong:0 34px 90px rgba(15,23,42,.18);
    --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--text);font-family:"Inter","Segoe UI",Tahoma,Arial,sans-serif;line-height:1.6;background:
    radial-gradient(circle at 0 0,rgba(20,85,217,.18),transparent 32%),
    radial-gradient(circle at 90% 10%,rgba(14,165,233,.16),transparent 30%),
    linear-gradient(180deg,#f7fbff 0%,var(--bg) 70%);
}
[dir="rtl"] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}.muted{color:var(--muted);font-size:.92rem}.app-shell{min-height:100vh}.app-body{overflow-x:hidden}
.overline{display:inline-flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:6px 11px;border:1px solid #d7e7ff;background:#eff6ff;color:#155bd6;border-radius:999px;font-size:.74rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.overline.light{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.24);color:#fff}.small-surface{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(14px)}
.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:var(--sidebar-width);z-index:20;padding:22px 18px;color:#fff;background:linear-gradient(180deg,#071225 0%,#0b1930 58%,#0e243f 100%);overflow:auto;box-shadow:22px 0 80px rgba(15,23,42,.28)}
[dir="rtl"] .sidebar{box-shadow:-22px 0 80px rgba(15,23,42,.28)}
.sidebar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 6%,rgba(37,99,235,.44),transparent 31%),radial-gradient(circle at 88% 28%,rgba(6,182,212,.23),transparent 29%),radial-gradient(circle at 50% 104%,rgba(109,40,217,.26),transparent 35%);pointer-events:none}.sidebar>*{position:relative}.brand-block{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.brand,.brand-on-dark{display:flex;align-items:center;gap:13px;min-width:0}.brand-copy{display:grid;gap:1px;min-width:0}.brand-copy strong{font-size:1rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy small{color:#9db0cb;font-size:.78rem;white-space:nowrap}.brand-mark{width:48px;height:48px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#155bd6,#0ea5e9);color:#fff;font-weight:950;font-size:1.05rem;box-shadow:0 18px 40px rgba(20,85,217,.36)}.language-pill{display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#eaf2ff;border-radius:999px;padding:7px 9px;font-size:.76rem;font-weight:900;white-space:nowrap}.language-pill span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;color:#1455d9}.language-pill b{font-weight:900}.language-pill:hover{background:rgba(255,255,255,.14);transform:translateY(-1px)}.hospital-card{border-radius:22px;padding:16px;margin-bottom:18px}.hospital-card strong{display:block;font-size:1.12rem;line-height:1.25;margin:8px 0 11px}.status-row{display:flex;align-items:center;gap:8px;color:#c9d8ef;font-size:.82rem;font-weight:800}.status-row i{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.16)}.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid transparent;border-radius:16px;color:#d8e5f7;transition:.18s var(--ease);font-weight:850}.nav a:hover{background:rgba(255,255,255,.08);transform:translateX(3px)}[dir="rtl"] .nav a:hover{transform:translateX(-3px)}.nav a.active{background:linear-gradient(135deg,rgba(20,85,217,.98),rgba(14,165,233,.92));color:#fff;box-shadow:0 18px 38px rgba(20,85,217,.30)}.nav a.disabled{opacity:.42;cursor:not-allowed}.nav a.disabled:hover{transform:none;background:transparent}.nav-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.10);font-weight:900}.nav em{font-style:normal;color:#91a4c0;font-size:.72rem;margin-inline-start:4px}.sidebar-footer{position:absolute;inset-inline:18px;bottom:20px;border-radius:20px;padding:14px}.sidebar-footer span{display:block;color:#9db0cb;font-weight:800;font-size:.76rem}.sidebar-footer strong{display:block;margin-top:2px;font-size:.98rem}.main{padding:24px;margin-inline-start:var(--sidebar-width);min-height:100vh}.glass-panel,.surface-card{background:var(--surface-glass);border:1px solid rgba(218,228,242,.82);box-shadow:var(--shadow-xs);backdrop-filter:blur(18px)}.topbar{position:sticky;top:16px;z-index:15;border-radius:28px;padding:18px 20px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.page-heading h1{font-size:clamp(1.7rem,2.6vw,2.55rem);letter-spacing:-.05em;line-height:1.1;margin:9px 0 4px}.page-heading p{margin:0;color:var(--muted);max-width:760px}.top-actions{display:flex;align-items:center;gap:12px}.date-card,.user-menu{border:1px solid var(--line);background:#fff;border-radius:20px;box-shadow:var(--shadow-xs)}.date-card{padding:10px 13px;min-width:132px}.date-card span,.date-card small{display:block;color:var(--muted);font-size:.75rem;font-weight:800}.date-card strong{display:block;line-height:1.2}.user-menu{display:flex;align-items:center;gap:11px;padding:9px 12px}.avatar{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#0f3fae,#0ea5e9);color:#fff;font-weight:950}.user-copy{display:grid;line-height:1.25}.user-copy strong{font-size:.92rem}.user-copy a{font-size:.78rem;color:var(--primary);font-weight:900}.btn{border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:16px;font-weight:950;transition:.18s var(--ease);white-space:nowrap}.btn.primary{background:linear-gradient(135deg,#1455d9,#0ea5e9);color:#fff;box-shadow:0 16px 32px rgba(20,85,217,.24)}.btn.primary:hover{transform:translateY(-2px);box-shadow:0 22px 42px rgba(20,85,217,.30)}.btn.subtle{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22)}.btn.full{width:100%}.executive-hero{position:relative;overflow:hidden;border-radius:34px;margin-bottom:20px;padding:30px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.58fr);gap:24px;align-items:stretch;color:#fff;background:linear-gradient(135deg,#06142c 0%,#113b8d 46%,#0ea5e9 100%);box-shadow:var(--shadow-strong)}.executive-hero:before{content:"";position:absolute;inset:-40%;background:radial-gradient(circle,#fff .65px,transparent .75px);background-size:22px 22px;opacity:.13;transform:rotate(-7deg)}.executive-hero:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.24),transparent 60%);inset-block-start:-130px;inset-inline-end:-80px}.executive-hero>*{position:relative;z-index:1}.hero-copy h2{font-size:clamp(2.1rem,4vw,4.75rem);line-height:1.02;letter-spacing:-.075em;margin:14px 0 14px;max-width:1040px}.hero-copy p{font-size:1.04rem;color:#dbeafe;max-width:880px;margin:0 0 24px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-command-card,.hero-totals>div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.23);border-radius:28px;padding:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(16px)}.command-topline{display:flex;justify-content:space-between;align-items:center;color:#dbeafe;font-weight:900;font-size:.82rem}.command-topline i{width:11px;height:11px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 7px rgba(34,197,94,.16)}.hero-command-card>strong{display:block;font-size:1.85rem;line-height:1.1;margin:12px 0}.readiness-ring{width:132px;height:132px;border-radius:50%;margin:18px 0;display:grid;place-items:center;background:conic-gradient(#fff 0 86%,rgba(255,255,255,.18) 86% 100%);position:relative}.readiness-ring:before{content:"";position:absolute;inset:13px;background:#123779;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)}.readiness-ring span{position:relative;font-size:1.5rem;font-weight:950}.hero-command-card h3{margin:0 0 4px}.hero-command-card p{margin:0;color:#dbeafe}.metric-grid{display:grid;gap:15px;margin-bottom:20px}.metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card,.revenue-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:26px;padding:20px;box-shadow:var(--shadow-xs);min-height:164px}.metric-card:before,.revenue-kpi:before{content:"";position:absolute;inset-inline:0;top:0;height:5px;background:linear-gradient(90deg,var(--primary),var(--primary-2))}.metric-card .metric-orb{position:absolute;inset-inline-end:-30px;bottom:-30px;width:112px;height:112px;border-radius:50%;background:#eaf2ff}.metric-card.tone-green:before{background:linear-gradient(90deg,#059669,#22c55e)}.metric-card.tone-violet:before{background:linear-gradient(90deg,#6d28d9,#a855f7)}.metric-card.tone-amber:before{background:linear-gradient(90deg,#d97706,#f59e0b)}.metric-card span,.revenue-kpi>span{display:block;color:var(--muted);font-weight:950;font-size:.82rem;text-transform:uppercase;letter-spacing:.035em}.metric-card strong,.revenue-kpi strong{display:block;font-size:1.6rem;line-height:1.2;margin:9px 0 4px;letter-spacing:-.03em}.metric-card small,.revenue-kpi small{display:block;color:var(--muted)}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:20px}.surface-card{border-radius:28px;padding:22px;margin-bottom:20px}.section-head{margin-bottom:18px}.section-head h2{font-size:1.55rem;line-height:1.15;letter-spacing:-.035em;margin:8px 0}.section-head p{margin:0;color:var(--muted);max-width:850px}.section-head.compact{margin-bottom:14px}.check-list{display:grid;gap:10px}.check-list div{display:flex;align-items:flex-start;gap:12px;padding:14px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f9fbff)}.check-list b{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;background:#eaf2ff;color:#1455d9}.check-list span{color:#263850}.roadmap-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}.roadmap-list li{display:flex;gap:12px}.roadmap-list i{width:15px;height:15px;border-radius:50%;background:linear-gradient(135deg,#1455d9,#0ea5e9);margin-top:7px;box-shadow:0 0 0 7px #eaf2ff;flex:0 0 auto}.roadmap-list strong{display:block}.roadmap-list small{display:block;color:var(--muted)}.compact-hero{grid-template-columns:minmax(0,1fr) auto;align-items:end}.hero-totals{display:flex;gap:12px}.hero-totals>div{min-width:190px}.hero-totals span{display:block;color:#dbeafe;font-size:.82rem;font-weight:900}.hero-totals strong{display:block;font-size:2rem;line-height:1.05;margin:8px 0}.hero-totals small{color:#eff6ff}.filter-card{padding:18px}.filter-heading{margin-bottom:10px}.filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(120px,.8fr) minmax(120px,.8fr) auto;gap:12px;align-items:end}.filters label,.login-card label{display:grid;gap:7px;color:#293a53;font-weight:950}.filters input,.filters select,.login-card input,.login-card select{width:100%;border:1px solid var(--line-2);border-radius:16px;background:#fff;color:var(--text);padding:12px 13px;outline:0;transition:.16s var(--ease)}.filters input:focus,.filters select:focus,.login-card input:focus,.login-card select:focus{border-color:#93c5fd;box-shadow:0 0 0 4px #dbeafe}.revenue-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.revenue-kpi{min-height:176px}.kpi-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.kpi-symbol{width:43px;height:43px;border-radius:15px;background:#eff6ff;color:#1455d9;display:grid;place-items:center;font-weight:950;font-size:1.15rem}.delta{font-style:normal;border-radius:999px;padding:5px 9px;font-size:.78rem;font-weight:950}.delta.positive{background:#dcfce7;color:#166534}.delta.negative{background:#fee2e2;color:#991b1b}.delta.neutral{background:#f1f5f9;color:#475569}.kpi-cash:before{background:linear-gradient(90deg,#059669,#22c55e)}.kpi-insurance:before{background:linear-gradient(90deg,#d97706,#ef4444)}.kpi-moh:before{background:linear-gradient(90deg,#0891b2,#22c55e)}.kpi-profit_loss:before{background:linear-gradient(90deg,#6d28d9,#ec4899)}.revenue-summary{margin-bottom:0}.mix-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;align-items:center}.mix-card .section-head{grid-column:1/-1;margin-bottom:0}.mix-visual{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#1455d9 0 var(--cash),#0ea5e9 var(--cash) calc(var(--cash) + var(--insurance)),#e5edf7 0 100%);position:relative}.mix-visual:before{content:"";position:absolute;inset:18px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line)}.mix-visual span{position:relative;font-size:1.4rem;font-weight:950}.mix-list{display:grid;gap:14px}.mix-list>div{display:grid;gap:6px}.mix-list span{color:var(--muted);font-weight:950}.mix-list strong{font-size:1.25rem}.progress{height:10px;background:#edf2f8;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1455d9,#0ea5e9)}.progress.alt i{background:linear-gradient(90deg,#0ea5e9,#22c55e)}.note-card p{font-size:1rem;color:#31445f;margin:0}.chart-card{padding:22px}.chart-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.chart-toolbar h2{font-size:1.35rem;letter-spacing:-.03em;margin:8px 0 3px}.chart-toolbar p{margin:0;color:var(--muted)}.legend-pills{display:flex;gap:8px;flex-wrap:wrap}.legend-pills span{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:7px 12px;background:#fff;color:#334155;font-weight:950}.legend-pills span:before{content:"";width:10px;height:10px;border-radius:50%;background:#1455d9}.legend-pills span+span:before{background:#0ea5e9}.chart{display:block;width:100%;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:inset 0 1px 0 #fff;margin-bottom:12px}.data-details summary{cursor:pointer;color:var(--primary);font-weight:950;width:max-content}.table-wrap{margin-top:12px;overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}table{width:100%;border-collapse:collapse}th,td{padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:inherit}th{background:#f8fbff;color:#31445f;font-weight:950}tbody tr:hover{background:#f8fbff}.login-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 14% 12%,rgba(14,165,233,.35),transparent 30%),linear-gradient(135deg,#061225,#0f2b58 52%,#1359d8);overflow:auto}.login-shell{width:min(1160px,96vw);display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:stretch}.login-art{position:relative;overflow:hidden;border-radius:36px;min-height:625px;padding:30px;color:#fff;background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.18);box-shadow:var(--shadow-strong);backdrop-filter:blur(22px)}.login-art:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 22%,rgba(255,255,255,.22),transparent 25%),radial-gradient(circle at 88% 78%,rgba(6,182,212,.36),transparent 30%);pointer-events:none}.login-art>*{position:relative}.login-art-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.brand-on-dark .brand-copy small{color:#bfdbfe}.login-art-copy{margin-top:92px}.login-art-copy h1{font-size:clamp(2.25rem,4vw,4.8rem);line-height:1.02;letter-spacing:-.075em;margin:14px 0 16px}.login-art-copy p{color:#dbeafe;font-size:1.08rem;max-width:720px;margin:0}.login-badges{position:absolute;inset-inline:30px;bottom:30px;display:flex;gap:10px;flex-wrap:wrap}.login-badges span{border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.10);border-radius:999px;padding:9px 12px;color:#eaf2ff;font-weight:900}.login-card{border-radius:36px;padding:32px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-strong);display:flex;flex-direction:column;justify-content:center}.login-title h2{font-size:2.1rem;letter-spacing:-.045em;margin:10px 0 5px}.login-title p{color:var(--muted);margin:0 0 20px}.login-card form{display:grid;gap:15px}.secure-note{text-align:center;margin:16px 0 0}.alert{border-radius:16px;padding:12px 14px;margin-bottom:14px;font-weight:900}.alert.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
@media (prefers-color-scheme: dark){:root{--bg:#081221;--surface:#0d1a2f;--surface-2:#101f36;--surface-glass:rgba(13,26,47,.80);--text:#eef6ff;--text-2:#dbeafe;--muted:#9fb0ca;--line:#1c2d48;--line-2:#28405f}.metric-card,.revenue-kpi,.date-card,.user-menu,.filters input,.filters select,.login-card input,.login-card select,.table-wrap,table,.chart{background:#0d1a2f}.check-list div{background:#0f1e35}.page-heading p,.note-card p,.section-head p{color:#9fb0ca}.filters label,.login-card label,th{color:#dbeafe}.mix-visual:before{background:#0d1a2f}.progress{background:#1c2d48}.login-card{background:rgba(13,26,47,.96)}}
@media(max-width:1320px){.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.revenue-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-grid{grid-template-columns:1fr}.executive-hero{grid-template-columns:1fr}.compact-hero{grid-template-columns:1fr}.hero-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mix-card{grid-template-columns:160px 1fr}.filters{grid-template-columns:1fr 1fr 1fr}.filters button{grid-column:1/-1}}
@media(max-width:980px){:root{--sidebar-width:0px}.sidebar{position:relative;width:auto;inset:auto;min-height:auto;border-radius:0 0 30px 30px}.sidebar-footer{position:relative;inset:auto;margin-top:16px}.main{margin-inline-start:0;padding:16px}.topbar{position:relative;top:auto;display:block}.top-actions{margin-top:14px;justify-content:space-between}.brand-block{align-items:center}.login-shell{grid-template-columns:1fr}.login-art{min-height:auto}.login-art-copy{margin:60px 0 100px}.login-badges{position:relative;inset:auto;margin-top:28px}.hero-copy h2{font-size:2.4rem}}
@media(max-width:640px){.main{padding:12px}.top-actions,.hero-totals,.filters,.metric-grid.four,.revenue-kpis{display:grid;grid-template-columns:1fr}.executive-hero,.surface-card,.login-art,.login-card{border-radius:24px;padding:18px}.hero-copy h2,.login-art-copy h1{font-size:2rem}.workspace-grid{gap:0}.metric-card,.revenue-kpi{min-height:auto}.mix-card{grid-template-columns:1fr}.mix-visual{margin:auto}.chart-toolbar{display:block}.legend-pills{margin-top:12px}.sidebar{padding:16px 12px}.brand-block{display:grid}.language-pill{width:max-content}.login-body{padding:12px}}

/* Phase 4: translation fix + post-login branch switcher */
.fixed-branch-note {
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    margin: 0 0 14px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.fixed-branch-note span {
    color: #2563eb;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fixed-branch-note strong {
    color: #0f172a;
    font-size: 18px;
}
.fixed-branch-note small {
    color: #64748b;
    line-height: 1.6;
}
.branch-switch-trigger {
    width: 100%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    color: #fff;
    border-radius: 16px;
    padding: 10px 12px;
    margin-top: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border .2s ease;
}
.branch-switch-trigger:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.4);
}
.branch-modal {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
    place-items: center;
    padding: 24px;
}
.branch-modal.open { display: grid; }
.branch-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(12px);
}
.branch-dialog {
    position: relative;
    width: min(620px, 100%);
    border-radius: 34px;
    padding: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,245,249,.94));
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 32px 90px rgba(15,23,42,.35);
    overflow: hidden;
}
.branch-dialog::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #22c55e);
}
.branch-dialog h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.05em;
    color: #0f172a;
}
.branch-dialog p {
    color: #64748b;
    line-height: 1.75;
    margin: 0 0 22px;
}
.modal-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    font-weight: 900;
}
.branch-form { display: grid; gap: 18px; }
.branch-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.branch-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    cursor: pointer;
    transition: transform .2s ease, border .2s ease, box-shadow .2s ease, background .2s ease;
}
.branch-option:hover, .branch-option.selected {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.45);
    box-shadow: 0 18px 35px rgba(37,99,235,.14);
    background: linear-gradient(135deg, rgba(239,246,255,.95), rgba(255,255,255,.92));
}
.branch-option input { position: absolute; opacity: 0; pointer-events: none; }
.branch-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 1000;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 28px rgba(37,99,235,.25);
}
.branch-option-copy { display: grid; gap: 4px; }
.branch-option-copy strong { color: #0f172a; font-size: 16px; }
.branch-option-copy small { color: #64748b; font-weight: 800; letter-spacing: .08em; }
html[dir="rtl"] .branch-option { flex-direction: row-reverse; text-align: right; }
@media (max-width: 760px) {
    .branch-dialog { padding: 24px; border-radius: 28px; }
    .branch-options { grid-template-columns: 1fr; }
}
body.modal-lock { overflow: hidden; }

/* =============================
   Phase 5 - Branch Operations Workspace
   ============================= */
.overline.inverse{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#dbeafe}.branch-glow{position:relative;overflow:hidden}.branch-glow:after{content:"";position:absolute;inset:auto -40px -60px auto;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(14,165,233,.45),transparent 62%);pointer-events:none}.branch-switch-trigger{margin-top:13px;width:100%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.10);color:#fff;border-radius:14px;padding:10px 12px;font-weight:950;cursor:pointer;transition:.18s var(--ease)}.branch-switch-trigger:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}.branch-chip{border:1px solid var(--line);background:linear-gradient(135deg,#fff,#f2f7ff);border-radius:20px;min-width:150px;padding:10px 14px;text-align:inherit;box-shadow:var(--shadow-xs);cursor:pointer;display:grid;gap:2px}.branch-chip span{font-size:.72rem;color:var(--muted);font-weight:900;text-transform:uppercase}.branch-chip strong{font-size:.95rem;color:var(--text)}.mobile-shellbar{display:none}.sidebar-scrim{display:none}.module-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.module-command-card{position:relative;overflow:hidden;min-height:172px;border:1px solid var(--line);background:rgba(255,255,255,.88);border-radius:28px;padding:20px;box-shadow:var(--shadow-xs);transition:.2s var(--ease);display:grid;align-content:space-between}.module-command-card:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#1455d9,#0ea5e9)}.module-command-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.module-command-card.tone-cyan:before{background:linear-gradient(90deg,#0891b2,#22d3ee)}.module-command-card.tone-green:before{background:linear-gradient(90deg,#059669,#22c55e)}.module-command-card.tone-violet:before{background:linear-gradient(90deg,#6d28d9,#a855f7)}.module-command-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#eef6ff;color:#1455d9;font-size:1.25rem;font-weight:950}.module-command-state{position:absolute;top:18px;inset-inline-end:18px;padding:6px 9px;border-radius:999px;background:#eff6ff;color:#1455d9;font-size:.72rem;font-weight:950}.module-command-card strong{font-size:1.25rem;letter-spacing:-.03em}.module-command-card small{color:var(--muted);font-weight:750;line-height:1.55}.phase5-workspace{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)}.full-span{margin-top:20px}.branch-console-preview{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.branch-preview-card{border:1px solid rgba(37,99,235,.18);background:linear-gradient(135deg,#eff6ff,#fff);border-radius:26px;padding:22px;text-align:inherit;cursor:pointer;display:grid;gap:8px;box-shadow:var(--shadow-xs);transition:.2s var(--ease)}.branch-preview-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.branch-preview-card span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#1455d9,#0ea5e9);color:#fff;font-weight:950}.branch-preview-card strong{font-size:1.35rem}.branch-preview-card small{color:var(--muted);line-height:1.7}.aluminum-dialog{width:min(1080px,100%);max-height:88vh;overflow:auto;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,232,240,.92) 42%,rgba(248,250,252,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 40px 110px rgba(15,23,42,.38)}.aluminum-dialog:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.42) 18%,transparent 34%,transparent 100%);mix-blend-mode:screen}.aluminum-form{position:relative;z-index:1}.branch-matrix-head{position:relative;z-index:1;margin:24px 0 14px}.branch-matrix-head p{margin:10px 0 0}.branch-hangar{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.branch-hangar-card{border:1px solid rgba(148,163,184,.30);border-radius:26px;padding:16px;background:rgba(255,255,255,.72);box-shadow:var(--shadow-xs)}.branch-hangar-card.current{border-color:rgba(37,99,235,.42);background:linear-gradient(135deg,#eff6ff,#fff)}.branch-hangar-title{display:flex;align-items:center;gap:12px;margin-bottom:14px}.branch-hangar-title>span{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#0f3fae,#0ea5e9);font-weight:950}.branch-hangar-title strong{display:block}.branch-hangar-title small{display:block;color:var(--muted);font-weight:900;letter-spacing:.08em}.branch-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.branch-action-grid form{margin:0}.branch-action-grid button{width:100%;border:1px solid #dce8f7;background:#fff;border-radius:16px;padding:10px;text-align:inherit;cursor:pointer;display:flex;align-items:center;gap:8px;font-weight:950;color:#10203a;transition:.18s var(--ease)}.branch-action-grid button:hover{border-color:#93c5fd;background:#eff6ff;transform:translateY(-1px)}.branch-action-grid span{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#eef6ff;color:#1455d9}.operations-hero .hero-copy h2 span{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:22px;background:rgba(255,255,255,.15);font-size:2rem;margin-inline-end:10px}.operations-badge{width:120px;height:120px;border-radius:36px;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);font-size:3rem;font-weight:950;margin:20px 0}.operations-grid{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}.operations-card.wide{min-height:360px}.operations-steps{display:grid;gap:12px}.operations-steps>div{border:1px solid var(--line);border-radius:22px;padding:15px;background:#fff;display:grid;grid-template-columns:54px minmax(0,1fr);column-gap:14px;row-gap:2px;align-items:center}.operations-steps b{grid-row:1 / span 2;width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:#eef6ff;color:#1455d9;font-weight:950}.operations-steps strong{font-size:1rem}.operations-steps span{color:var(--muted);font-weight:700}.branch-scope-actions{display:grid;gap:10px;margin-top:18px}.btn.ghost{background:#fff;color:#1455d9;border:1px solid #dce8f7}.page-visits .operations-hero{background:linear-gradient(135deg,#06142c,#0e7490,#22d3ee)}.page-doctors .operations-hero{background:linear-gradient(135deg,#06251a,#047857,#22c55e)}.page-beds .operations-hero{background:linear-gradient(135deg,#16092d,#6d28d9,#a855f7)}
@media (max-width:1180px){.module-command-grid,.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-hangar{grid-template-columns:1fr 1fr}.phase5-workspace,.operations-grid{grid-template-columns:1fr}.top-actions{flex-wrap:wrap;justify-content:flex-end}}
@media (max-width:920px){:root{--sidebar-width:290px}.mobile-shellbar{display:flex;position:sticky;top:0;z-index:40;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.mobile-menu-btn,.mobile-branch-btn{border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px 12px;font-weight:950;color:#1455d9}.sidebar{transform:translateX(-110%);transition:.22s var(--ease)}[dir="rtl"] .sidebar{transform:translateX(110%)}body.sidebar-open .sidebar{transform:translateX(0)}body.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:18;background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}.main{margin-inline-start:0;padding:16px}.topbar{position:relative;top:auto;align-items:flex-start;flex-direction:column}.top-actions{width:100%;justify-content:stretch}.top-actions>*{flex:1}.branch-chip{text-align:center}.executive-hero{grid-template-columns:1fr}.branch-hangar{grid-template-columns:1fr}}
@media (max-width:640px){.module-command-grid,.metric-grid.four{grid-template-columns:1fr}.branch-action-grid{grid-template-columns:1fr}.operations-steps>div{grid-template-columns:1fr}.operations-steps b{grid-row:auto}.hero-copy h2{font-size:2.2rem}.aluminum-dialog{border-radius:26px;padding:24px}.top-actions{display:grid}.date-card,.user-menu,.branch-chip{min-width:0}}

/* Phase 6 - Visits Intelligence Data Binding */
.visits-control-panel {
    margin-bottom: 18px;
    border: 1px solid rgba(22, 92, 255, .10);
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(235,247,255,.88));
}
.visits-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px)) auto auto;
    gap: 14px;
    align-items: end;
}
.visits-filter label {
    display: grid;
    gap: 7px;
    color: var(--muted, #64748b);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.visits-filter input {
    width: 100%;
    border: 1px solid rgba(148,163,184,.34);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.visits-filter input:focus {
    border-color: rgba(14, 165, 233, .72);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}
.visits-kpi-grid .metric-card strong {
    font-size: clamp(24px, 2.8vw, 38px);
    letter-spacing: -.04em;
}
.visits-kpi .delta {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
    background: rgba(15, 23, 42, .06);
}
.visits-kpi .delta.up { color: #047857; background: rgba(16, 185, 129, .12); }
.visits-kpi .delta.down { color: #b91c1c; background: rgba(239, 68, 68, .12); }
.visits-insight-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .7fr);
    align-items: stretch;
}
.visits-tabs {
    display: grid;
    gap: 18px;
}
.visits-tabs article {
    border: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.94));
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}
.visits-tabs h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 950;
    color: #0f172a;
}
.visits-chart {
    width: 100%;
    min-height: 210px;
}
.visits-mix-card {
    position: relative;
    overflow: hidden;
}
.visits-mix-card::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 68%);
    inset-inline-end: -80px;
    bottom: -90px;
    pointer-events: none;
}
.mix-meter {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 26px 0 22px;
}
.mix-meter span { display: block; background: linear-gradient(90deg, #0ea5e9, #2563eb); }
.mix-meter b { display: block; background: linear-gradient(90deg, #10b981, #059669); }
.mix-legend {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}
.mix-legend div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148, 163, 184, .18);
}
.mix-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.mix-legend i.new { background: #2563eb; }
.mix-legend i.follow { background: #059669; }
.mix-legend strong {
    font-size: 22px;
    letter-spacing: -.04em;
    color: #0f172a;
}
.mix-legend span {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}
.visits-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.daily-bars {
    display: flex;
    gap: 10px;
    min-height: 250px;
    align-items: end;
    padding: 12px 4px 2px;
}
.daily-bars div {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 7px;
    min-width: 28px;
    text-align: center;
}
.daily-bars span {
    align-self: end;
    display: block;
    min-height: 8px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}
.daily-bars b {
    font-size: 12px;
    color: #0f172a;
    font-weight: 950;
}
.daily-bars small {
    font-size: 10px;
    color: #64748b;
    font-weight: 800;
    white-space: nowrap;
    transform: rotate(-35deg);
    transform-origin: center;
    margin-top: 10px;
}
html[dir="rtl"] .daily-bars small { transform: rotate(35deg); }
.rank-list {
    display: grid;
    gap: 12px;
}
.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(248, 251, 255, .84);
    border: 1px solid rgba(148, 163, 184, .18);
}
.rank-row em {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: #0f172a;
    color: #fff;
    font-style: normal;
    font-weight: 950;
    font-size: 12px;
}
.rank-row strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 7px;
}
.rank-row span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.rank-row span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.rank-row b {
    font-size: 13px;
    font-weight: 950;
    color: #0f172a;
}
.muted-line {
    color: #64748b;
    font-weight: 800;
    margin: 0;
}
.data-alert {
    border-color: rgba(239, 68, 68, .24);
    background: linear-gradient(135deg, #fff, #fff7f7);
}
.data-alert h2 { color: #991b1b; }

.data-alert.soft-alert {
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, #fff, #fffbeb);
}
.data-alert.soft-alert h2 { color: #92400e; }
.data-alert pre {
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    overflow: auto;
    max-height: 180px;
    border-radius: 16px;
    padding: 14px;
    background: #111827;
    color: #fee2e2;
    font-size: 12px;
}
.visits-table-card { margin-top: 18px; }
.visits-table-wrap table th,
.visits-table-wrap table td { white-space: nowrap; }
@media (max-width: 1180px) {
    .visits-insight-grid,
    .visits-detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .visits-filter {
        grid-template-columns: 1fr;
    }
    .daily-bars {
        overflow-x: auto;
        min-height: 220px;
    }
    .daily-bars div {
        min-width: 42px;
    }
}

/* Phase 7: Doctor Performance workspace */
.doctors-control-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 850;
    min-height: 47px;
    outline: none;
}
.doctors-control-panel select:focus,
.doctors-control-panel input:focus {
    border-color: rgba(37, 99, 235, .7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.doctors-filter {
    grid-template-columns: minmax(140px, .8fr) minmax(140px, .8fr) minmax(220px, 1.2fr) auto auto;
}
.doctors-chart {
    min-height: 320px;
}
.doctor-mix-stack {
    display: grid;
    gap: 14px;
}
.doctor-mix-stack div {
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(248, 251, 255, .86);
    border-radius: 18px;
    padding: 13px 14px;
}
.doctor-mix-stack span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 4px;
}
.doctor-mix-stack strong {
    display: block;
    font-size: 18px;
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 9px;
}
.doctor-mix-stack i {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.doctor-mix-stack i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #0ea5e9, #6366f1);
}
.doctors-table-wrap {
    max-height: 410px;
    overflow: auto;
}
.doctors-table-wrap table th:first-child,
.doctors-table-wrap table td:first-child {
    min-width: 190px;
}
.doctors-kpi-grid .metric-card strong {
    letter-spacing: -.04em;
}
html[dir="rtl"] .doctor-mix-stack,
html[dir="rtl"] .doctor-mix-stack div {
    text-align: right;
}
@media (max-width: 1180px) {
    .doctors-filter {
        grid-template-columns: 1fr 1fr;
    }
    .doctors-filter .btn {
        width: 100%;
    }
}
@media (max-width: 760px) {
    .doctors-filter {
        grid-template-columns: 1fr;
    }
    .doctors-chart {
        min-width: 760px;
    }
}

/* Phase 7.1: doctor data-year auto detect */
.filter-hint {
    margin: 12px 0 0;
    color: var(--muted, #64748b);
    font-size: 13px;
    font-weight: 800;
}

/* Phase 8 - Beds & Occupancy workspace */
.beds-kpi-grid .metric-card strong{letter-spacing:-.045em}.beds-insight-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr)}.beds-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.beds-table-card{margin-top:20px}.beds-meter span{background:linear-gradient(90deg,#6d28d9,#a855f7)}.beds-meter b{background:linear-gradient(90deg,#059669,#22c55e)}.beds-table-wrap table th,.beds-table-wrap table td{white-space:nowrap}.page-beds .metric-card.tone-violet:before{background:linear-gradient(90deg,#6d28d9,#a855f7)}.page-beds .operations-card .chart{min-height:280px}@media(max-width:1100px){.beds-insight-grid,.beds-detail-grid{grid-template-columns:1fr}}


/* =========================================================
   Phase 9 - Hospital Brand Theme System
   Inspired by HMH / hospital logos: purple + teal + graphite.
   This section intentionally overrides earlier blue/green defaults.
   ========================================================= */
:root{
    --brand-purple-950:#170322;
    --brand-purple-900:#2E0A49;
    --brand-purple-800:#3D0E61;
    --brand-purple-700:#4E0D73;
    --brand-purple-600:#5B1782;
    --brand-purple-400:#8B55AC;
    --brand-purple-100:#F2E9F7;
    --brand-teal-800:#0D7F7A;
    --brand-teal-700:#179C96;
    --brand-teal-600:#1FB5AE;
    --brand-teal-500:#22C7BF;
    --brand-teal-100:#DDF7F5;
    --brand-graphite-900:#1F2329;
    --brand-graphite-700:#4D525B;
    --brand-graphite-500:#70747B;
    --brand-graphite-200:#D9DEE5;
    --brand-graphite-100:#F2F5F8;
    --bg:#F4F7FA;
    --bg-deep:#ECEFF5;
    --surface:#FFFFFF;
    --surface-2:#F8FAFC;
    --surface-glass:rgba(255,255,255,.84);
    --text:#121821;
    --text-2:#202733;
    --muted:#657181;
    --muted-2:#8B95A3;
    --line:#DFE5ED;
    --line-2:#CAD3DE;
    --primary:var(--brand-purple-700);
    --primary-2:var(--brand-teal-600);
    --cyan:var(--brand-teal-600);
    --violet:var(--brand-purple-600);
    --dark:#13051E;
    --dark-2:#241035;
}
body{
    background:
        radial-gradient(circle at 0 0,rgba(78,13,115,.16),transparent 34%),
        radial-gradient(circle at 92% 8%,rgba(31,181,174,.14),transparent 30%),
        linear-gradient(180deg,#FAFBFD 0%,var(--bg) 70%);
}
[dir="rtl"] body{letter-spacing:0}.overline{background:var(--brand-purple-100);border-color:rgba(78,13,115,.12);color:var(--brand-purple-700)}.overline.light{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff}.glass-panel,.surface-card{border-color:rgba(217,222,229,.88);box-shadow:0 16px 45px rgba(31,35,41,.08)}
.sidebar{
    background:
        linear-gradient(180deg,rgba(23,3,34,.98) 0%,rgba(46,10,73,.96) 58%,rgba(10,55,59,.98) 100%);
    box-shadow:24px 0 90px rgba(46,10,73,.22);
}
[dir="rtl"] .sidebar{box-shadow:-24px 0 90px rgba(46,10,73,.22)}
.sidebar:before{
    background:
        radial-gradient(circle at 18% 8%,rgba(139,85,172,.40),transparent 30%),
        radial-gradient(circle at 92% 30%,rgba(34,199,191,.25),transparent 33%),
        radial-gradient(circle at 44% 104%,rgba(31,181,174,.18),transparent 38%);
}
.brand-copy strong{letter-spacing:-.03em}.brand-copy small{color:rgba(255,255,255,.68)}.brand-mark{background:linear-gradient(135deg,var(--brand-purple-700),var(--brand-teal-600));box-shadow:0 18px 42px rgba(78,13,115,.32)}.brand-mark-image,.hospital-mini-logo,.branch-logo-token{background:#fff !important;border:1px solid rgba(255,255,255,.45);box-shadow:0 16px 36px rgba(0,0,0,.20);overflow:hidden}.brand-mark-image img,.hospital-mini-logo img,.branch-logo-token img{width:100%;height:100%;object-fit:contain;display:block}.brand-mark-image{padding:5px}.hospital-mini-logo{width:100%;height:76px;border-radius:18px;padding:9px;margin:12px 0 10px}.hospital-mini-logo img{object-fit:contain}.brand-wide-logo{height:44px;width:180px;max-width:100%;border-radius:14px;background:#fff;padding:6px 10px;box-shadow:0 14px 34px rgba(0,0,0,.16)}.brand-wide-logo img{width:100%;height:100%;object-fit:contain;display:block}.language-pill span{color:var(--brand-purple-700)}.hospital-card{background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.055));border-color:rgba(255,255,255,.16)}.branch-switch-trigger{background:linear-gradient(135deg,rgba(78,13,115,.62),rgba(31,181,174,.45));border-color:rgba(255,255,255,.24)}.branch-switch-trigger:hover{background:linear-gradient(135deg,rgba(91,23,130,.78),rgba(31,181,174,.60))}.nav a.active{background:linear-gradient(135deg,var(--brand-purple-700),var(--brand-teal-600));box-shadow:0 18px 38px rgba(78,13,115,.32)}.nav a:hover{background:rgba(255,255,255,.10)}.nav-icon{background:rgba(255,255,255,.11)}.sidebar-footer{background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.055));border-color:rgba(255,255,255,.15)}
.topbar{background:rgba(255,255,255,.88);position:sticky;overflow:hidden}.topbar:before{content:"";position:absolute;inset-inline:0;top:0;height:5px;background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-teal-600),var(--brand-graphite-500))}.page-heading h1{color:#111827}.date-card,.user-menu,.branch-chip{border-color:rgba(78,13,115,.10)}.avatar{background:linear-gradient(135deg,var(--brand-purple-700),var(--brand-teal-600));box-shadow:0 14px 32px rgba(78,13,115,.24)}.user-copy a{color:var(--brand-purple-700)}
.btn.primary{background:linear-gradient(135deg,var(--brand-purple-700),var(--brand-teal-600));box-shadow:0 16px 35px rgba(78,13,115,.24)}.btn.primary:hover{box-shadow:0 22px 48px rgba(78,13,115,.30)}.btn.ghost{color:var(--brand-purple-700);border-color:rgba(78,13,115,.16);background:#fff}.btn.ghost:hover{border-color:rgba(31,181,174,.48);background:var(--brand-teal-100)}
.executive-hero,.operations-hero,.page-visits .operations-hero,.page-doctors .operations-hero,.page-beds .operations-hero{background:linear-gradient(135deg,var(--brand-purple-950) 0%,var(--brand-purple-700) 48%,var(--brand-teal-600) 100%);box-shadow:0 34px 90px rgba(46,10,73,.20)}.executive-hero:after,.operations-hero:after{background:radial-gradient(circle,rgba(255,255,255,.25),transparent 62%)}.hero-command-card,.hero-totals>div{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.25)}.readiness-ring{background:conic-gradient(#fff 0 86%,rgba(255,255,255,.18) 86% 100%)}.readiness-ring:before{background:var(--brand-purple-900)}
.metric-card:before,.revenue-kpi:before{background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-teal-600))}.metric-card.tone-green:before,.page-doctors .metric-card:before{background:linear-gradient(90deg,var(--brand-teal-700),var(--brand-teal-500))}.metric-card.tone-violet:before,.page-beds .metric-card:before{background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-purple-400))}.metric-card.tone-amber:before{background:linear-gradient(90deg,var(--brand-graphite-700),var(--brand-teal-600))}.metric-card,.revenue-kpi,.module-command-card{border-color:rgba(217,222,229,.92);box-shadow:0 18px 48px rgba(31,35,41,.07)}.metric-card .metric-orb{background:linear-gradient(135deg,rgba(242,233,247,.94),rgba(221,247,245,.82))}.module-command-card:before{background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-teal-600))}.module-command-card.tone-cyan:before{background:linear-gradient(90deg,var(--brand-teal-700),var(--brand-teal-500))}.module-command-card.tone-green:before{background:linear-gradient(90deg,var(--brand-teal-800),var(--brand-teal-600))}.module-command-card.tone-violet:before{background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-purple-400))}.module-command-icon,.branch-action-grid span,.operations-steps b{background:linear-gradient(135deg,var(--brand-purple-100),var(--brand-teal-100));color:var(--brand-purple-700)}
.branch-chip{background:linear-gradient(135deg,#fff,var(--brand-purple-100));}.branch-chip:hover{border-color:rgba(31,181,174,.50)}.branch-preview-card,.branch-hangar-card.current{background:linear-gradient(135deg,var(--brand-purple-100),#fff 58%,var(--brand-teal-100));border-color:rgba(78,13,115,.18)}.branch-preview-card span,.branch-hangar-title>span{background:linear-gradient(135deg,var(--brand-purple-700),var(--brand-teal-600))}.branch-logo-token{width:58px !important;height:58px !important;border-radius:18px !important;padding:6px !important;background:#fff !important;color:transparent !important}.branch-option{border-color:rgba(217,222,229,.9)}.branch-option.selected{border-color:rgba(31,181,174,.70);background:linear-gradient(135deg,#fff,var(--brand-teal-100))}.aluminum-dialog{background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(242,233,247,.90) 42%,rgba(221,247,245,.80));}
.login-body{background:radial-gradient(circle at 12% 10%,rgba(78,13,115,.20),transparent 34%),radial-gradient(circle at 92% 30%,rgba(31,181,174,.16),transparent 34%),linear-gradient(135deg,#F7F9FC,#EFF3F7)}.login-art{background:linear-gradient(145deg,var(--brand-purple-950),var(--brand-purple-700) 55%,var(--brand-teal-700));box-shadow:0 34px 90px rgba(46,10,73,.24)}.login-art:after{background:radial-gradient(circle,rgba(255,255,255,.20),transparent 62%)}.login-hospital-logo,.login-corporate-logo{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:24px;padding:16px;margin-bottom:18px;width:min(420px,100%);box-shadow:0 24px 55px rgba(0,0,0,.18)}.login-hospital-logo img,.login-corporate-logo img{width:100%;height:96px;object-fit:contain}.glass-login-card{border-color:rgba(78,13,115,.12)}.fixed-branch-note{background:linear-gradient(135deg,var(--brand-purple-100),#fff,var(--brand-teal-100));border-color:rgba(78,13,115,.14)}label input,label select,.visits-filter input,.visits-filter select,.doctor-filter input,.doctor-filter select,.beds-filter input,.beds-filter select{border-color:rgba(112,116,123,.22)}label input:focus,label select:focus,.visits-filter input:focus,.visits-filter select:focus,.doctor-filter input:focus,.doctor-filter select:focus,.beds-filter input:focus,.beds-filter select:focus{border-color:rgba(31,181,174,.72);box-shadow:0 0 0 4px rgba(31,181,174,.14)}.alert.warning{border-color:rgba(78,13,115,.18);background:linear-gradient(135deg,#fff,var(--brand-purple-100));color:var(--brand-purple-900)}.alert.error{border-color:rgba(220,38,38,.18)}
.table-card table thead th,.data-table thead th{background:linear-gradient(135deg,var(--brand-purple-100),var(--brand-teal-100));color:var(--brand-purple-900)}.chart-card,.table-card{border-color:rgba(217,222,229,.92)}.profile-bar span,.mix-bar span{background:linear-gradient(90deg,var(--brand-purple-700),var(--brand-teal-600))}.delta.up{color:var(--brand-teal-700) !important;background:rgba(31,181,174,.13) !important}.delta.down{color:#9f1239 !important;background:rgba(244,63,94,.12) !important}
@media (max-width:920px){.brand-wide-logo{height:38px;width:150px}.hospital-mini-logo{height:64px}.sidebar{background:linear-gradient(180deg,var(--brand-purple-950),var(--brand-purple-700) 62%,#0B4141)}}

/* =========================================================
   Phase 10.1 Elite — Executive Hospital Command Center
   Inspired by HMH corporate purple / teal / graphite identity
   ========================================================= */
:root{
  --elite-purple-950:#160625;
  --elite-purple-900:#210936;
  --elite-purple-800:#321054;
  --elite-purple-700:#4e0d73;
  --elite-purple-600:#6826a5;
  --elite-teal-700:#0f8f8b;
  --elite-teal-600:#19aaa4;
  --elite-teal-500:#23c4bd;
  --elite-red:#e8426b;
  --elite-orange:#f59e0b;
  --elite-blue:#2f80ed;
  --elite-green:#22c55e;
  --elite-ink:#11162f;
  --elite-muted:#68748a;
  --elite-line:#e4eaf4;
  --elite-bg:#f5f8fc;
  --elite-card:#ffffff;
  --elite-shadow:0 18px 55px rgba(25,35,70,.10);
  --elite-shadow-soft:0 10px 28px rgba(25,35,70,.08);
  --elite-radius:22px;
}
body.elite-body{background:linear-gradient(180deg,#fbfdff 0%,#f2f6fb 42%,#f8fafc 100%);color:var(--elite-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}.elite-shell{min-height:100vh}.elite-sidebar{position:fixed;inset:0 auto 0 0;width:286px;padding:22px 16px;z-index:20;background:radial-gradient(circle at 0 0,rgba(35,196,189,.24),transparent 34%),linear-gradient(180deg,var(--elite-purple-950),#120820 52%,#0b1027);color:#fff;display:flex;flex-direction:column;gap:18px;box-shadow:10px 0 35px rgba(22,6,37,.22);overflow:auto}.elite-body[dir="rtl"] .elite-sidebar{inset:0 0 0 auto;box-shadow:-10px 0 35px rgba(22,6,37,.22)}.elite-main{margin-inline-start:286px;min-height:100vh;padding:20px 28px 28px}.elite-body[dir="rtl"] .elite-main{margin-inline-start:0;margin-inline-end:286px}.elite-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;padding:4px 4px 18px;border-bottom:1px solid rgba(255,255,255,.12)}.elite-brand-mark{width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.08);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.elite-brand-mark img{width:44px;height:44px;object-fit:contain}.elite-brand strong{display:block;font-size:1.24rem;letter-spacing:.01em}.elite-brand small{display:block;color:rgba(255,255,255,.68);font-weight:750;font-size:.75rem;margin-top:2px}.elite-nav{display:grid;gap:8px;margin-top:4px}.elite-nav a{position:relative;min-height:48px;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;text-decoration:none;color:rgba(255,255,255,.84);font-weight:850;transition:.18s ease;border:1px solid transparent}.elite-nav a span{width:27px;height:27px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#fff;font-weight:950}.elite-nav a:hover{background:rgba(255,255,255,.08);transform:translateX(2px)}.elite-body[dir="rtl"] .elite-nav a:hover{transform:translateX(-2px)}.elite-nav a.active{background:linear-gradient(135deg,var(--elite-teal-600),#2d7df2);box-shadow:0 14px 26px rgba(25,170,164,.24);color:#fff}.elite-nav a.disabled{opacity:.62;cursor:not-allowed}.elite-nav a.disabled em{margin-inline-start:auto;font-size:.68rem;color:rgba(255,255,255,.55);font-style:normal}.elite-sidebar-card{border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.04));border-radius:22px;padding:18px;box-shadow:0 18px 48px rgba(0,0,0,.15)}.elite-sidebar-card span{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:rgba(255,255,255,.62);font-weight:950}.elite-sidebar-card strong{display:block;margin-top:9px;font-size:1.03rem}.elite-sidebar-card small{display:flex;align-items:center;gap:7px;margin-top:10px;color:rgba(255,255,255,.72);font-weight:750}.elite-sidebar-card small i{width:8px;height:8px;border-radius:50%;background:var(--elite-green);box-shadow:0 0 0 5px rgba(34,197,94,.13)}.elite-sidebar-card button{width:100%;margin-top:15px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.12);color:#fff;border-radius:14px;padding:11px 12px;font-weight:950;cursor:pointer}.elite-sidebar-footer{margin-top:auto;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.08);border-radius:20px;padding:18px;display:grid;place-items:center}.elite-sidebar-footer img{max-width:130px;max-height:70px;object-fit:contain}.elite-topbar{position:sticky;top:0;z-index:12;min-height:70px;margin:-20px -28px 18px;padding:14px 28px;display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid var(--elite-line);box-shadow:0 10px 30px rgba(17,22,47,.04)}.elite-title-block{min-width:250px}.elite-title-block h1{margin:0;color:#11162f;font-size:clamp(1.35rem,2vw,1.9rem);letter-spacing:-.04em;line-height:1}.elite-title-block p{margin:6px 0 0;color:var(--elite-muted);font-weight:750}.elite-branch-select{min-width:190px;border:1px solid var(--elite-line);background:#fff;border-radius:14px;padding:10px 14px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;text-align:inherit;box-shadow:var(--elite-shadow-soft);cursor:pointer}.elite-branch-select span{grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#f4effa;color:var(--elite-purple-700)}.elite-branch-select b{font-size:.9rem;color:#1c2240}.elite-branch-select small{font-size:.72rem;color:var(--elite-muted);font-weight:750}.elite-search{flex:1;min-width:260px;max-width:520px;display:flex;align-items:center;border:1px solid var(--elite-line);background:#fff;border-radius:15px;padding:0 8px;box-shadow:var(--elite-shadow-soft)}.elite-search input{flex:1;border:0;outline:0;padding:13px;background:transparent;color:var(--elite-ink);font-weight:750}.elite-search button{border:0;background:transparent;color:var(--elite-purple-700);font-weight:950;font-size:1rem;cursor:pointer}.elite-meta{min-width:120px;text-align:center}.elite-meta span{display:block;color:var(--elite-muted);font-size:.72rem;font-weight:850}.elite-meta strong{display:block;color:#17203b}.elite-lang{border:1px solid var(--elite-line);background:linear-gradient(135deg,var(--elite-purple-700),var(--elite-purple-600));color:#fff;text-decoration:none;border-radius:13px;padding:11px 14px;font-weight:950;white-space:nowrap}.elite-user{display:flex;align-items:center;gap:10px;white-space:nowrap}.elite-user>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf0fb;color:#1f3158;font-weight:950}.elite-user strong{display:block;font-size:.92rem}.elite-user a{display:block;color:var(--elite-purple-700);font-weight:850;font-size:.8rem;text-decoration:none}.elite-mobile-bar{display:none}.elite-warning{border:1px solid rgba(245,158,11,.25);background:#fffbeb;color:#92400e;border-radius:18px;padding:14px 16px;margin-bottom:15px;display:grid;gap:4px}.elite-command-center{display:grid;gap:16px}.situation-bar{display:grid;grid-template-columns:1.55fr repeat(5,1fr);gap:0;background:linear-gradient(135deg,#111333,#171240 52%,#0d1232);color:#fff;border-radius:22px;box-shadow:0 26px 70px rgba(17,18,51,.22);overflow:hidden}.situation-bar article{min-height:118px;padding:20px 22px;display:grid;align-content:center;border-inline-start:1px solid rgba(255,255,255,.12)}.situation-bar article:first-child{border-inline-start:0}.situation-bar small{display:block;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.68);font-size:.74rem;font-weight:950}.situation-bar strong{display:block;margin-top:6px;font-size:clamp(1.6rem,2.2vw,2.25rem);line-height:1;font-weight:950}.situation-bar em{display:block;margin-top:8px;color:rgba(255,255,255,.72);font-style:normal;font-weight:700}.situation-status{display:flex!important;align-items:center;gap:18px;grid-template-columns:auto 1fr}.status-shield{width:66px;height:66px;border-radius:22px;display:grid;place-items:center;background:rgba(25,170,164,.14);border:1px solid rgba(35,196,189,.35);box-shadow:0 0 35px rgba(35,196,189,.22);font-size:2rem}.situation-status strong{color:var(--elite-teal-500)}.danger-text{color:#fb7185!important}.success-text,.teal-text{color:var(--elite-teal-500)!important}.pressure-meter{display:flex;gap:5px;margin-top:9px}.pressure-meter i{height:8px;width:22px;border-radius:99px;background:rgba(255,255,255,.15)}.pressure-meter i:nth-child(-n+3){background:linear-gradient(90deg,#f59e0b,#fb7185)}.mini-trend{height:44px;display:flex;align-items:end;gap:4px;margin-top:10px}.mini-trend span{width:9px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,var(--elite-teal-500),rgba(35,196,189,.16))}.mini-trend.purple span{background:linear-gradient(180deg,#9b5cf4,rgba(155,92,244,.16))}.elite-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:4px 2px}.elite-section-head span{font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:var(--elite-purple-700);font-size:.76rem}.elite-section-head h2{margin:5px 0 0;font-size:1.35rem;letter-spacing:-.04em}.freshness-pill{border:1px solid var(--elite-line);background:#fff;border-radius:14px;padding:10px 14px;box-shadow:var(--elite-shadow-soft);text-align:end}.freshness-pill b{display:block;color:var(--elite-muted);font-size:.72rem;text-transform:uppercase}.freshness-pill strong{font-size:.86rem}.today-glance-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px}.pulse-card{position:relative;min-height:126px;border:1px solid var(--elite-line);background:#fff;border-radius:18px;padding:16px;text-decoration:none;color:var(--elite-ink);box-shadow:var(--elite-shadow-soft);display:grid;gap:6px;overflow:hidden;transition:.18s ease}.pulse-card:after{content:"";position:absolute;inset:auto -22px -32px auto;width:90px;height:90px;border-radius:50%;background:rgba(35,196,189,.09)}.pulse-card:hover{transform:translateY(-3px);box-shadow:var(--elite-shadow)}.pulse-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#e9fbfa;color:var(--elite-teal-700);font-weight:950}.pulse-card small{color:#303955;font-weight:850}.pulse-card strong{font-size:1.55rem;letter-spacing:-.04em}.pulse-card em{color:#059669;font-size:.78rem;font-style:normal;font-weight:850}.pulse-card.tone-purple .pulse-icon{background:#f3eefe;color:var(--elite-purple-700)}.pulse-card.tone-red .pulse-icon{background:#fff0f3;color:var(--elite-red)}.pulse-card.tone-green .pulse-icon{background:#ecfdf3;color:#16a34a}.pulse-card.tone-blue .pulse-icon{background:#eff6ff;color:#2563eb}.command-grid-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.05fr) 370px;gap:16px}.elite-panel{border:1px solid var(--elite-line);background:rgba(255,255,255,.94);border-radius:22px;padding:18px;box-shadow:var(--elite-shadow-soft);min-width:0}.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:16px}.panel-title>span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#f2effa;color:var(--elite-purple-700);font-weight:950}.panel-title h3{margin:0;letter-spacing:-.03em;font-size:1rem}.panel-title a{margin-inline-start:auto;color:var(--elite-purple-700);text-decoration:none;font-weight:850;font-size:.82rem}.patient-flow-panel{grid-column:span 1}.flow-map{position:relative;min-height:250px;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;align-items:center}.flow-node,.flow-ring{position:relative;border:1px solid var(--elite-line);background:linear-gradient(135deg,#fff,#f8fbff);border-radius:16px;padding:16px;box-shadow:0 10px 24px rgba(17,22,47,.05)}.flow-node strong{font-size:1.45rem;display:block}.flow-node span{color:var(--elite-muted);font-weight:750}.flow-ring{grid-column:3;grid-row:1/3;width:150px;height:150px;border-radius:50%;justify-self:center;display:grid;place-items:center;text-align:center;background:conic-gradient(var(--elite-teal-600) 0 78%,#eef2f7 78% 100%)}.flow-ring:before{content:"";position:absolute;inset:13px;background:#fff;border-radius:50%}.flow-ring b,.flow-ring span{position:relative;z-index:1}.flow-ring b{font-size:1.6rem}.flow-ring span{font-size:.78rem;font-weight:850;color:var(--elite-muted)}.flow-footer{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid var(--elite-line);padding-top:14px;color:var(--elite-muted);font-weight:750}.capacity-body{display:grid;grid-template-columns:170px 1fr;gap:22px;align-items:center}.donut{--p:0;width:158px;height:158px;border-radius:50%;background:conic-gradient(var(--elite-teal-600) calc(var(--p)*1%),#8d5fd3 0 calc(var(--p)*1% + 12%),#edf2f8 0);display:grid;place-items:center;text-align:center;position:relative}.donut:before{content:"";position:absolute;inset:18px;background:#fff;border-radius:50%}.donut b,.donut span{position:relative;z-index:1}.donut b{font-size:1.65rem}.donut span{display:block;color:var(--elite-muted);font-size:.75rem;font-weight:850}.unit-bars{display:grid;gap:12px}.unit-bars>div{display:grid;grid-template-columns:92px 1fr 42px;gap:10px;align-items:center}.unit-bars span,.unit-bars em{color:#4b5872;font-weight:800;font-size:.82rem;font-style:normal}.unit-bars b{position:relative;height:10px;background:#eef2f7;border-radius:99px;overflow:hidden}.unit-bars b:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:linear-gradient(90deg,var(--elite-teal-600),#7c3aed);border-radius:99px}.elite-body[dir="rtl"] .unit-bars b:after{inset:0 0 0 auto}.panel-link{border-top:1px solid var(--elite-line);padding-top:14px;text-align:center;margin-top:12px}.panel-link a{color:var(--elite-teal-700);font-weight:950;text-decoration:none}.alerts-panel,.actions-panel{grid-column:3}.alert-list,.action-list{display:grid;gap:10px}.alert-item{border-radius:15px;padding:14px 14px;border:1px solid #eef2f7;background:#f8fafc}.alert-item b,.alert-item span{display:block}.alert-item b{font-size:.92rem}.alert-item span{margin-top:5px;color:var(--elite-muted);font-weight:700;font-size:.82rem}.alert-item.severity-high{background:#fff1f2;border-color:#ffe0e6}.alert-item.severity-medium{background:#fff7ed;border-color:#fed7aa}.alert-item.severity-good{background:#ecfdf5;border-color:#bbf7d0}.finance-panel,.clinical-panel{min-height:300px}.finance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-metrics div,.clinical-grid div{border:1px solid #edf2f7;background:#fbfdff;border-radius:15px;padding:13px}.finance-metrics small,.clinical-grid small{display:block;color:var(--elite-muted);font-weight:850}.finance-metrics strong,.clinical-grid strong{display:block;margin-top:4px;font-size:1.06rem}.trend-bars{height:92px;display:flex;align-items:end;gap:5px;margin-top:16px;padding:12px;background:#fbfdff;border:1px solid #edf2f7;border-radius:15px}.trend-bars span{flex:1;min-width:6px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#8b5cf6,rgba(139,92,246,.16))}.clinical-grid{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px}.clinical-grid span{display:block;margin-top:5px;color:var(--elite-teal-700);font-weight:850}.specialty-rank{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}.specialty-rank li{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center}.specialty-rank li span{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#f2effa;color:var(--elite-purple-700);font-weight:950}.specialty-rank li b{font-size:.88rem}.specialty-rank li em{font-style:normal;color:var(--elite-muted);font-weight:850}.action-item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #edf2f7;background:#fbfdff;border-radius:16px;padding:14px}.action-item b,.action-item span{display:block}.action-item span{margin-top:5px;color:var(--elite-muted);font-size:.82rem;font-weight:700}.action-item a{border:0;border-radius:12px;background:var(--elite-teal-600);color:#fff;padding:10px 12px;text-decoration:none;font-weight:950}.action-item.tone-purple a{background:var(--elite-purple-700)}.action-item.tone-blue a{background:var(--elite-blue)}.action-center-button{display:block;margin-top:14px;text-align:center;border-radius:14px;background:linear-gradient(135deg,var(--elite-purple-700),#7c3aed);color:#fff;text-decoration:none;padding:13px 16px;font-weight:950}.quick-access-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--elite-line);background:#fff;border-radius:18px;padding:14px 16px;box-shadow:var(--elite-shadow-soft)}.quick-access-row span{font-weight:950;margin-inline-end:8px}.quick-access-row a{text-decoration:none;color:#24304f;border:1px solid var(--elite-line);background:#fbfdff;border-radius:13px;padding:10px 14px;font-weight:850}.data-trust-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--elite-line);background:#fff;border-radius:18px;box-shadow:var(--elite-shadow-soft);overflow:hidden}.data-trust-bar>div{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;column-gap:10px;padding:16px;border-inline-start:1px solid var(--elite-line)}.data-trust-bar>div:first-child{border-inline-start:0}.data-trust-bar span{grid-row:1/4;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#f2effa;color:var(--elite-purple-700);font-weight:950}.data-trust-bar b{color:var(--elite-muted);font-size:.72rem;text-transform:uppercase}.data-trust-bar strong{margin-top:2px}.data-trust-bar em{color:#059669;font-style:normal;font-size:.78rem;font-weight:800}.branch-modal.open{display:block}.elite-mobile-logo{height:34px;object-fit:contain}.elite-lang-small{border:1px solid var(--elite-line);background:#fff;border-radius:12px;padding:8px 10px;text-decoration:none;color:var(--elite-purple-700);font-weight:950}
@media (max-width:1500px){.today-glance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.command-grid-main{grid-template-columns:1fr 1fr}.alerts-panel,.actions-panel{grid-column:auto}.situation-bar{grid-template-columns:1.3fr repeat(3,1fr)}.situation-bar article:nth-child(n+5){border-top:1px solid rgba(255,255,255,.12)}}
@media (max-width:1120px){.elite-topbar{flex-wrap:wrap}.elite-search{order:10;max-width:none;flex-basis:100%}.command-grid-main{grid-template-columns:1fr}.capacity-body{grid-template-columns:1fr}.donut{margin:auto}.clinical-grid,.finance-metrics,.data-trust-bar{grid-template-columns:1fr 1fr}.today-glance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.situation-bar{grid-template-columns:1fr 1fr}.flow-map{grid-template-columns:1fr 1fr}.flow-ring{grid-column:1/3;grid-row:auto}}
@media (max-width:920px){.elite-mobile-bar{display:flex;position:sticky;top:0;z-index:50;align-items:center;justify-content:space-between;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-bottom:1px solid var(--elite-line);padding:10px 12px}.elite-icon-button{border:1px solid var(--elite-line);background:#fff;border-radius:12px;padding:8px 11px;font-weight:950;color:var(--elite-purple-700)}.elite-sidebar{transform:translateX(-110%);transition:.22s ease}.elite-body[dir="rtl"] .elite-sidebar{transform:translateX(110%)}body.sidebar-open .elite-sidebar{transform:translateX(0)}body.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:18;background:rgba(15,23,42,.46)}.elite-main,.elite-body[dir="rtl"] .elite-main{margin:0;padding:14px}.elite-topbar{position:relative;top:auto;margin:0 0 16px;padding:15px;border:1px solid var(--elite-line);border-radius:20px}.elite-title-block{min-width:0}.elite-branch-select,.elite-meta,.elite-lang,.elite-user{flex:1}.situation-bar,.data-trust-bar{grid-template-columns:1fr}.situation-bar article,.data-trust-bar>div{border-inline-start:0;border-top:1px solid rgba(255,255,255,.12)}.data-trust-bar>div{border-top:1px solid var(--elite-line)}}
@media (max-width:620px){.today-glance-grid,.finance-metrics,.clinical-grid{grid-template-columns:1fr}.flow-map{display:grid;grid-template-columns:1fr}.flow-ring{grid-column:auto}.quick-access-row{display:grid}.quick-access-row a{display:block}.elite-topbar{display:grid}.elite-search{min-width:0}.elite-section-head{display:grid}.freshness-pill{text-align:inherit}.unit-bars>div{grid-template-columns:1fr}.unit-bars em{justify-self:start}}

/* =========================================================
   Phase 10.1.3 — Executive Command Center Visual Polish
   Purpose: premium command-center refinement without changing backend logic.
   ========================================================= */
:root{
  --polish-navy:#100a2e;
  --polish-navy-2:#17113a;
  --polish-purple:#5a1587;
  --polish-purple-2:#7a2fc4;
  --polish-teal:#18b7ad;
  --polish-teal-2:#26d0c6;
  --polish-ice:#f6f9fd;
  --polish-card:#ffffff;
  --polish-line:#dce6f2;
  --polish-text:#10162f;
  --polish-muted:#69758d;
  --polish-shadow:0 22px 70px rgba(25, 31, 68, .10);
  --polish-shadow-strong:0 26px 90px rgba(21, 12, 51, .18);
}
body.elite-body{
  background:
    radial-gradient(circle at 22% -10%, rgba(24,183,173,.12), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(90,21,135,.10), transparent 30%),
    linear-gradient(180deg,#fbfdff 0%,#f4f8fd 46%,#f7f9fc 100%);
  color:var(--polish-text);
  text-rendering:geometricPrecision;
}
.elite-sidebar{
  background:
    radial-gradient(circle at 8% 7%, rgba(38,208,198,.28), transparent 24%),
    radial-gradient(circle at 80% 96%, rgba(122,47,196,.18), transparent 32%),
    linear-gradient(180deg,#171036 0%,#10061d 54%,#0a122d 100%);
  padding:24px 18px;
  border-inline-end:1px solid rgba(255,255,255,.08);
}
.elite-brand{
  padding:4px 4px 20px;
  gap:14px;
}
.elite-brand-mark{
  width:54px;height:54px;border-radius:18px;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 22px 55px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.20);
}
.elite-brand strong{font-size:1.25rem;letter-spacing:-.03em}.elite-brand small{font-size:.77rem;opacity:.74}
.elite-nav{gap:8px}.elite-nav a{
  min-height:52px;border-radius:17px;padding:12px 13px;color:rgba(255,255,255,.82);
  transition:transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.elite-nav a span{
  width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.08);font-size:.96rem;
}
.elite-nav a.active{
  background:linear-gradient(135deg,var(--polish-teal) 0%,#2c91e6 58%,var(--polish-purple-2) 100%);
  box-shadow:0 18px 45px rgba(24,183,173,.22), inset 0 1px 0 rgba(255,255,255,.26);
  color:#fff;
}
.elite-nav a.active span{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.22)}
.elite-nav a:not(.disabled):hover{transform:translateX(3px);background:rgba(255,255,255,.10);color:#fff}.elite-body[dir="rtl"] .elite-nav a:not(.disabled):hover{transform:translateX(-3px)}
.elite-nav a.disabled{opacity:.46}.elite-nav a.disabled em{font-size:.68rem;background:rgba(255,255,255,.10);border-radius:999px;padding:3px 8px;margin-inline-start:auto}
.elite-sidebar-card{
  border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.11);
}
.elite-sidebar-card button{background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(24,183,173,.22));border:1px solid rgba(255,255,255,.18)}
.elite-sidebar-footer{opacity:.92;border-radius:22px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.10)}
.elite-main{padding:22px 30px 32px;}
.elite-topbar{
  min-height:86px;padding:16px 20px;margin:0 0 22px;border:1px solid rgba(220,230,242,.88);
  background:rgba(255,255,255,.88);backdrop-filter:blur(22px) saturate(150%);
  border-radius:0 0 28px 28px;box-shadow:0 14px 48px rgba(23,31,67,.07);
}
.elite-topbar:before{height:4px;background:linear-gradient(90deg,var(--polish-purple),var(--polish-teal),#65717b)}
.elite-title-block h1{font-size:clamp(1.55rem,2.15vw,2.15rem);letter-spacing:-.055em;line-height:1;margin-bottom:7px}
.elite-title-block p{font-size:.92rem;font-weight:850;color:#6f7a91}.elite-branch-select{
  min-width:205px;border-radius:18px;border-color:rgba(90,21,135,.10);
  background:linear-gradient(135deg,#fff,#fbfdff);box-shadow:0 12px 32px rgba(23,31,67,.06);
}
.elite-branch-select span{background:#f4effa;color:var(--polish-purple)}.elite-branch-select b{letter-spacing:-.02em}.elite-search{
  height:54px;border-radius:18px;border-color:rgba(90,21,135,.10);background:#fff;box-shadow:0 14px 44px rgba(23,31,67,.06);
}
.elite-search input{font-weight:850;color:var(--polish-text)}.elite-search button{color:var(--polish-purple)}
.elite-meta{border:0;background:transparent;text-align:center;min-width:92px}.elite-meta span{letter-spacing:.02em}.elite-meta strong{font-size:1.06rem;color:#141933}.elite-lang{
  border:0;border-radius:16px;background:linear-gradient(135deg,var(--polish-purple),var(--polish-purple-2));
  box-shadow:0 16px 38px rgba(90,21,135,.22);color:#fff;min-height:48px;display:grid;place-items:center;padding:0 18px;
}
.elite-user span{background:linear-gradient(135deg,#ecf5ff,#f4effa);color:#1d2450}.elite-user a{color:var(--polish-purple)}
.elite-command-center{display:grid;gap:18px}.elite-warning{
  border-radius:18px;background:linear-gradient(135deg,#fffaf0,#fff 62%,#effdfa);border-color:#f5d193;
  box-shadow:0 12px 34px rgba(245,158,11,.08);
}
.situation-bar{
  border-radius:25px;padding:0;overflow:hidden;background:
    radial-gradient(circle at 16% 30%,rgba(38,208,198,.13),transparent 30%),
    linear-gradient(135deg,#100a2e 0%,#15103a 58%,#11142f 100%);
  box-shadow:var(--polish-shadow-strong), inset 0 1px 0 rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.08);
}
.situation-bar article{
  padding:22px 24px;min-height:118px;border-color:rgba(255,255,255,.11);position:relative;overflow:hidden;
}
.situation-bar article:after{content:"";position:absolute;inset:auto -28px -36px auto;width:86px;height:86px;border-radius:50%;background:rgba(255,255,255,.035)}
.situation-bar small{font-size:.74rem;letter-spacing:.075em;color:#cbd3ea;font-weight:950}.situation-bar strong{font-size:clamp(1.6rem,2.1vw,2.55rem);line-height:1;margin-top:9px;letter-spacing:-.065em}.situation-bar em{margin-top:9px;color:#d9def0;font-weight:800;line-height:1.35}.situation-status{gap:16px}.status-shield{width:66px;height:66px;border-radius:24px;background:rgba(24,183,173,.11);border:1px solid rgba(38,208,198,.28);box-shadow:0 0 0 8px rgba(24,183,173,.04),0 18px 40px rgba(24,183,173,.12);font-size:1.4rem}.situation-status strong{color:var(--polish-teal-2)}.command-mode-badge{position:absolute;top:18px;inset-inline-end:18px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:5px 9px;font-size:.64rem;font-weight:950;letter-spacing:.08em}.mini-trend{height:34px;gap:4px;align-items:end;margin-top:10px}.mini-trend span{width:5px;border-radius:99px;background:rgba(38,208,198,.80);box-shadow:0 0 18px rgba(38,208,198,.24)}.mini-trend.purple span{background:rgba(168,85,247,.82);box-shadow:0 0 18px rgba(168,85,247,.24)}.pressure-meter i{height:7px;width:25px;border-radius:999px}.danger-text{color:#ff6b8f!important}.success-text,.teal-text{color:var(--polish-teal-2)!important}.elite-section-head{margin-top:2px;align-items:end}.elite-section-head span{color:var(--polish-purple);letter-spacing:.09em;font-size:.75rem}.elite-section-head h2{font-size:1.28rem;letter-spacing:-.04em}.freshness-pill{border-radius:19px;border:1px solid var(--polish-line);background:#fff;box-shadow:0 12px 28px rgba(23,31,67,.07);min-width:148px}.freshness-pill b{color:var(--polish-muted)}
.today-glance-grid.elite-pulse-strip{grid-template-columns:repeat(7,minmax(145px,1fr));gap:14px}.pulse-card{
  min-height:146px;border-radius:20px;padding:17px;background:
    radial-gradient(circle at 100% 100%,rgba(38,208,198,.12),transparent 34%),
    linear-gradient(145deg,#fff,#fbfdff);
  box-shadow:0 14px 38px rgba(23,31,67,.07);border:1px solid rgba(220,230,242,.95);
}
.pulse-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--polish-teal),var(--polish-purple));opacity:.9}.pulse-card:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(23,31,67,.12)}.pulse-icon{width:43px;height:43px;border-radius:14px;font-size:1.05rem}.pulse-card small{margin-top:12px;color:#25304d;font-weight:950}.pulse-card strong{font-size:clamp(1.35rem,1.8vw,1.75rem);letter-spacing:-.045em}.pulse-card em{font-size:.75rem;color:#008b70;font-weight:950}.command-grid-main{grid-template-columns:minmax(420px,1.12fr) minmax(400px,1fr) minmax(330px,.72fr);gap:18px}.elite-panel{
  border-radius:24px;border:1px solid rgba(220,230,242,.95);background:rgba(255,255,255,.92);
  box-shadow:var(--polish-shadow);padding:19px;position:relative;overflow:hidden;
}
.elite-panel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,rgba(90,21,135,.95),rgba(24,183,173,.95));opacity:.72}.panel-title{position:relative;z-index:1;margin-bottom:18px}.panel-title>span{width:34px;height:34px;border-radius:13px;background:linear-gradient(135deg,#f4effa,#e8fbf9);color:var(--polish-purple)}.panel-title h3{font-size:1.03rem;letter-spacing:-.035em}.panel-title a{color:var(--polish-purple);font-weight:950}.flow-map{min-height:268px;isolation:isolate}.flow-map:before{content:"";position:absolute;left:18%;right:18%;top:48%;height:2px;background:linear-gradient(90deg,transparent,rgba(24,183,173,.34),rgba(90,21,135,.30),transparent);z-index:0}.flow-map:after{content:"";position:absolute;left:49%;top:14%;bottom:18%;width:2px;background:linear-gradient(180deg,transparent,rgba(90,21,135,.22),rgba(24,183,173,.24),transparent);z-index:0}.elite-body[dir="rtl"] .flow-map:before{left:18%;right:18%}.flow-node,.flow-ring{z-index:1}.flow-node{border-radius:18px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 15px 32px rgba(23,31,67,.06);min-height:92px}.flow-node strong{font-size:1.55rem;letter-spacing:-.045em}.flow-ring{width:164px;height:164px;background:conic-gradient(var(--polish-teal) 0 78%,var(--polish-purple-2) 78% 90%,#eef3f8 90% 100%);box-shadow:0 22px 50px rgba(24,183,173,.16)}.flow-ring:before{inset:17px;box-shadow:inset 0 0 0 1px var(--polish-line)}.flow-footer{border-top-color:var(--polish-line);font-size:.86rem}.capacity-body{grid-template-columns:185px 1fr}.donut{width:172px;height:172px;background:conic-gradient(var(--polish-teal) calc(var(--p)*1%),var(--polish-purple-2) 0 calc(var(--p)*1% + 12%),#edf3f8 0);box-shadow:0 18px 52px rgba(24,183,173,.13)}.donut:before{inset:20px}.donut b{font-size:1.75rem}.unit-bars>div{grid-template-columns:96px 1fr 44px}.unit-bars b{height:11px}.unit-bars b:after{background:linear-gradient(90deg,var(--polish-teal),var(--polish-purple-2))}.panel-link a{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:999px;background:#ecfbf9;color:#0c8b84}.alerts-panel:before{background:linear-gradient(90deg,#f43f5e,#f59e0b)}.alert-list:empty:before{content:"No critical alerts";display:block;border-radius:16px;padding:16px;border:1px solid #bbf7d0;background:#ecfdf5;color:#065f46;font-weight:950}.alert-item{border-radius:17px;padding:15px 16px;box-shadow:0 10px 26px rgba(23,31,67,.04)}.alert-item.severity-high{border-color:#fecdd3;background:linear-gradient(135deg,#fff1f2,#fff)}.alert-item.severity-medium{border-color:#fed7aa;background:linear-gradient(135deg,#fff7ed,#fff)}.alert-item.severity-good,.alert-item.severity-low{border-color:#bbf7d0;background:linear-gradient(135deg,#ecfdf5,#fff)}.finance-panel:before{background:linear-gradient(90deg,var(--polish-purple),var(--polish-teal))}.finance-metrics{gap:13px}.finance-metrics div,.clinical-grid div{border-radius:17px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 10px 26px rgba(23,31,67,.04)}.finance-metrics small,.clinical-grid small{color:var(--polish-muted);letter-spacing:.025em}.finance-metrics strong,.clinical-grid strong{font-size:1.13rem;letter-spacing:-.035em}.trend-bars{border-radius:17px;background:linear-gradient(180deg,#fbfdff,#f8fbff);height:104px}.trend-bars span{background:linear-gradient(180deg,var(--polish-purple-2),rgba(122,47,196,.13))}.clinical-panel:before{background:linear-gradient(90deg,var(--polish-teal),var(--polish-purple-2))}.clinical-grid{grid-template-columns:.9fr 1.45fr .9fr}.specialty-rank li{border-radius:14px;padding:9px 10px;background:#fbfdff;border:1px solid #edf3f8}.specialty-rank li span{background:#f4effa;color:var(--polish-purple)}.specialty-rank li em{color:var(--polish-purple)}.actions-panel:before{background:linear-gradient(90deg,var(--polish-teal),#2f80ed)}.action-item{border-radius:18px;box-shadow:0 12px 28px rgba(23,31,67,.05)}.action-item a{border-radius:14px;background:linear-gradient(135deg,var(--polish-teal),#13a69e);box-shadow:0 12px 24px rgba(24,183,173,.18)}.action-item.tone-purple a{background:linear-gradient(135deg,var(--polish-purple),var(--polish-purple-2))}.action-item.tone-blue a{background:linear-gradient(135deg,#2f80ed,#3b82f6)}.action-center-button{border-radius:17px;background:linear-gradient(135deg,var(--polish-purple),var(--polish-purple-2));box-shadow:0 18px 42px rgba(90,21,135,.22)}.quick-access-row{border-radius:21px;padding:15px 17px;box-shadow:var(--polish-shadow);background:rgba(255,255,255,.94)}.quick-access-row span{color:var(--polish-text)}.quick-access-row a{border-radius:14px;background:linear-gradient(145deg,#fff,#fbfdff);font-weight:950}.quick-access-row a:hover{border-color:rgba(24,183,173,.5);color:var(--polish-purple);transform:translateY(-1px)}.data-trust-bar{border-radius:21px;box-shadow:var(--polish-shadow);background:#fff}.data-trust-bar span{background:linear-gradient(135deg,#f4effa,#e8fbf9);color:var(--polish-purple)}.data-trust-bar b{letter-spacing:.06em}.data-trust-bar strong{letter-spacing:-.02em}.data-trust-bar em{color:#059669}.branch-dialog{border-radius:30px}.branch-option{border-radius:20px}.branch-option.selected{box-shadow:0 18px 45px rgba(24,183,173,.12)}
@media (max-width:1500px){.today-glance-grid.elite-pulse-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.command-grid-main{grid-template-columns:1fr 1fr}.alerts-panel,.actions-panel{grid-column:auto}.situation-bar{grid-template-columns:1.4fr repeat(3,1fr)}.situation-bar article:nth-child(n+5){border-top:1px solid rgba(255,255,255,.11)}}
@media (max-width:1120px){.today-glance-grid.elite-pulse-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.command-grid-main{grid-template-columns:1fr}.capacity-body{grid-template-columns:1fr}.clinical-grid,.finance-metrics,.data-trust-bar{grid-template-columns:1fr 1fr}.flow-map:before,.flow-map:after{display:none}}
@media (max-width:920px){.elite-main,.elite-body[dir="rtl"] .elite-main{padding:14px}.elite-topbar{border-radius:20px}.situation-bar article{min-height:auto}.situation-bar{grid-template-columns:1fr}.situation-bar article{border-top:1px solid rgba(255,255,255,.11)}.today-glance-grid.elite-pulse-strip{grid-template-columns:1fr 1fr}.data-trust-bar{grid-template-columns:1fr}.data-trust-bar>div{border-inline-start:0;border-top:1px solid var(--polish-line)}}
@media (max-width:620px){.today-glance-grid.elite-pulse-strip,.finance-metrics,.clinical-grid{grid-template-columns:1fr}.elite-topbar{display:grid}.elite-search{min-width:0}.flow-map{grid-template-columns:1fr}.flow-ring{grid-column:auto}.unit-bars>div{grid-template-columns:1fr}.unit-bars em{justify-self:start}.quick-access-row{display:grid}}

/* =============================
   Phase 10.1.4 — Above-the-fold Compact Executive Polish
   Goal: keep the elite design, reduce vertical scrolling, clarify unavailable fast-mode values.
   ============================= */
.compact-command-center {
    gap: 12px;
}
.compact-command-center .elite-warning.compact-fast-note {
    margin: 0 0 4px;
    padding: 10px 14px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e7, #fffdf7);
}
.compact-command-center .elite-warning.compact-fast-note strong {
    white-space: nowrap;
}
.compact-command-center .situation-bar {
    border-radius: 20px;
    grid-template-columns: 1.34fr repeat(5, minmax(145px, 1fr));
    box-shadow: 0 22px 58px rgba(17, 18, 51, .18);
}
.compact-command-center .situation-bar article {
    min-height: 92px;
    padding: 15px 18px;
}
.compact-command-center .situation-bar small {
    font-size: .68rem;
}
.compact-command-center .situation-bar strong {
    margin-top: 5px;
    font-size: clamp(1.35rem, 1.85vw, 2.15rem);
    letter-spacing: -.06em;
}
.compact-command-center .situation-bar em {
    margin-top: 6px;
    font-size: .78rem;
    line-height: 1.28;
}
.compact-command-center .status-shield {
    width: 54px;
    height: 54px;
    border-radius: 19px;
}
.compact-command-center .command-mode-badge {
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 8px;
}
.compact-command-center .mini-trend {
    height: 24px;
    margin-top: 6px;
}
.compact-command-center .mini-trend span {
    width: 4px;
}
.compact-command-center .pressure-meter {
    margin-top: 7px;
}
.compact-command-center .pressure-meter i {
    width: 20px;
    height: 6px;
}
.compact-command-center .elite-section-head {
    margin: 0 2px -2px;
}
.compact-command-center .elite-section-head h2 {
    font-size: 1.08rem;
    margin-top: 2px;
}
.compact-command-center .freshness-pill {
    padding: 8px 12px;
    min-width: 130px;
    border-radius: 15px;
}
.compact-command-center .today-glance-grid.elite-pulse-strip {
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    gap: 10px;
}
.compact-command-center .pulse-card {
    min-height: 94px;
    padding: 12px 14px;
    border-radius: 17px;
    gap: 3px;
}
.compact-command-center .pulse-icon {
    width: 33px;
    height: 33px;
    border-radius: 12px;
    font-size: .88rem;
}
.compact-command-center .pulse-card small {
    margin-top: 6px;
    font-size: .78rem;
    line-height: 1.1;
}
.compact-command-center .pulse-card strong {
    font-size: clamp(1.18rem, 1.35vw, 1.55rem);
}
.compact-command-center .pulse-card em {
    font-size: .68rem;
}
.compact-command-center .pulse-card:after {
    width: 70px;
    height: 70px;
    inset: auto -22px -30px auto;
}
.compact-command-center .command-grid-main {
    grid-template-columns: minmax(410px, 1.25fr) minmax(350px, .95fr) minmax(310px, .72fr);
    gap: 14px;
    align-items: stretch;
}
.compact-command-center .elite-panel {
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 16px 42px rgba(23,31,67,.075);
}
.compact-command-center .panel-title {
    margin-bottom: 12px;
}
.compact-command-center .panel-title > span {
    width: 28px;
    height: 28px;
    border-radius: 11px;
    font-size: .84rem;
}
.compact-command-center .panel-title h3 {
    font-size: .96rem;
}
.compact-command-center .flow-map {
    min-height: 178px;
    grid-template-columns: 1fr 1fr 1.08fr;
    gap: 10px;
}
.compact-command-center .flow-map:before {
    top: 48%;
    left: 13%;
    right: 22%;
}
.compact-command-center .flow-map:after {
    display: none;
}
.compact-command-center .flow-node {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 15px;
}
.compact-command-center .flow-node strong {
    font-size: 1.35rem;
}
.compact-command-center .flow-node span {
    font-size: .8rem;
}
.compact-command-center .flow-ring {
    width: 126px;
    height: 126px;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: center;
}
.compact-command-center .flow-ring:before {
    inset: 14px;
}
.compact-command-center .flow-ring b {
    font-size: 1.26rem;
}
.compact-command-center .flow-ring span {
    font-size: .72rem;
}
.compact-command-center .flow-footer {
    margin-top: 10px;
    padding-top: 10px;
    font-size: .78rem;
}
.compact-command-center .capacity-body {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    min-height: 168px;
}
.compact-command-center .donut {
    width: 124px;
    height: 124px;
}
.compact-command-center .donut:before {
    inset: 14px;
}
.compact-command-center .donut b {
    font-size: 1.35rem;
}
.compact-command-center .donut span {
    font-size: .72rem;
}
.compact-command-center .unit-bars {
    gap: 9px;
}
.compact-command-center .unit-bars > div {
    grid-template-columns: 78px 1fr 36px;
    gap: 8px;
    font-size: .82rem;
}
.compact-command-center .unit-bars b {
    height: 9px;
}
.compact-command-center .panel-link {
    margin-top: 10px;
    padding-top: 10px;
}
.compact-command-center .alerts-panel,
.compact-command-center .actions-panel {
    min-height: 0;
}
.compact-command-center .alert-list,
.compact-command-center .action-list {
    gap: 10px;
}
.compact-command-center .alert-item,
.compact-command-center .action-item {
    padding: 12px 13px;
    border-radius: 15px;
}
.compact-command-center .alert-item b,
.compact-command-center .action-item b {
    font-size: .9rem;
}
.compact-command-center .alert-item span,
.compact-command-center .action-item span {
    font-size: .78rem;
    line-height: 1.35;
}
.compact-command-center .finance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.compact-command-center .finance-metrics div,
.compact-command-center .clinical-grid div {
    min-height: 62px;
    padding: 11px 12px;
    border-radius: 15px;
}
.compact-command-center .finance-metrics small,
.compact-command-center .clinical-grid small {
    font-size: .72rem;
}
.compact-command-center .finance-metrics strong,
.compact-command-center .clinical-grid strong {
    font-size: 1rem;
}
.compact-command-center .trend-bars {
    height: 54px;
    margin-top: 10px;
}
.compact-command-center .trend-bars span {
    width: 7px;
}
.compact-command-center .clinical-grid {
    grid-template-columns: .78fr 1.38fr .78fr;
    gap: 9px;
}
.compact-command-center .specialty-rank {
    margin-top: 10px;
    gap: 7px;
}
.compact-command-center .specialty-rank li {
    padding: 8px 9px;
}
.compact-command-center .action-item {
    grid-template-columns: 1fr auto;
}
.compact-command-center .action-item a {
    padding: 10px 13px;
}
.compact-command-center .action-center-button {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 15px;
}
.compact-command-center .quick-access-row {
    padding: 12px 14px;
    border-radius: 18px;
    gap: 8px;
}
.compact-command-center .quick-access-row a {
    padding: 9px 13px;
    border-radius: 12px;
}
.compact-command-center .data-trust-bar {
    border-radius: 18px;
}
.compact-command-center .data-trust-bar > div {
    min-height: 74px;
    padding: 12px 16px;
    grid-template-columns: 35px 1fr;
}
.compact-command-center .data-trust-bar span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}
.compact-command-center .data-trust-bar b {
    font-size: .68rem;
}
.compact-command-center .data-trust-bar strong {
    font-size: .92rem;
}
.compact-command-center .data-trust-bar em {
    font-size: .72rem;
}
.compact-command-center .alert-list:empty:before {
    content: "No critical alerts\A Fast mode is using safe executive data.";
    white-space: pre-line;
    font-size: .86rem;
    line-height: 1.45;
}
@media (min-width: 1501px) {
    .compact-command-center .elite-panel.patient-flow-panel,
    .compact-command-center .elite-panel.capacity-panel,
    .compact-command-center .elite-panel.alerts-panel {
        min-height: 246px;
    }
    .compact-command-center .elite-panel.finance-panel,
    .compact-command-center .elite-panel.clinical-panel,
    .compact-command-center .elite-panel.actions-panel {
        min-height: 236px;
    }
}
@media (max-width: 1500px) {
    .compact-command-center .situation-bar { grid-template-columns: 1.35fr repeat(3, 1fr); }
    .compact-command-center .today-glance-grid.elite-pulse-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .compact-command-center .command-grid-main { grid-template-columns: 1fr 1fr; }
    .compact-command-center .alerts-panel,
    .compact-command-center .actions-panel { grid-column: auto; }
}
@media (max-width: 1120px) {
    .compact-command-center .command-grid-main { grid-template-columns: 1fr; }
    .compact-command-center .today-glance-grid.elite-pulse-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .compact-command-center .capacity-body { grid-template-columns: 1fr; }
    .compact-command-center .flow-map:before { display: none; }
}
@media (max-width: 620px) {
    .compact-command-center .today-glance-grid.elite-pulse-strip,
    .compact-command-center .finance-metrics,
    .compact-command-center .clinical-grid { grid-template-columns: 1fr; }
    .compact-command-center .flow-ring { grid-column: auto; grid-row: auto; }
}

/* =========================================================
   Phase 10.2.3 — Premium Dimensional UI Layer
   Soft 2.5D / enterprise medical command center polish.
   Scope: dashboard only through .premium-dimensional-ui
   ========================================================= */
:root{
    --dim-purple:#5A1587;
    --dim-purple-2:#7B2FD0;
    --dim-teal:#18B7AD;
    --dim-teal-2:#25D0C6;
    --dim-ink:#10162E;
    --dim-ink-2:#1D2744;
    --dim-line:#E5EBF4;
    --dim-soft:#F7FAFE;
    --dim-shadow:0 26px 70px rgba(17,24,55,.12);
    --dim-shadow-2:0 18px 46px rgba(17,24,55,.10);
    --dim-deep:0 34px 90px rgba(17,18,51,.22);
}
body.elite-body.page-dashboard{
    background:
        radial-gradient(circle at 12% 0%, rgba(24,183,173,.18), transparent 30%),
        radial-gradient(circle at 92% 4%, rgba(90,21,135,.13), transparent 32%),
        linear-gradient(180deg,#FBFDFF 0%, #EEF4F9 46%, #F8FAFC 100%);
}
.page-dashboard .elite-main{
    background:
        linear-gradient(90deg, rgba(24,183,173,.04) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(90,21,135,.035) 0 1px, transparent 1px 100%);
    background-size:38px 38px;
}
.page-dashboard .elite-topbar{
    border:1px solid rgba(229,235,244,.72);
    border-top:0;
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.82));
    box-shadow:0 22px 70px rgba(17,24,55,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.page-dashboard .elite-sidebar{
    background:
        radial-gradient(circle at 16% 6%,rgba(37,208,198,.22),transparent 22%),
        radial-gradient(circle at 86% 28%,rgba(123,47,208,.22),transparent 25%),
        linear-gradient(180deg,#14122D 0%,#11081F 48%,#0B1027 100%);
    box-shadow:16px 0 48px rgba(17,9,31,.32);
}
.page-dashboard .elite-sidebar:after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(255,255,255,.075),transparent 16%,transparent 100%);
}
.page-dashboard .elite-nav a.active{
    background:linear-gradient(135deg,var(--dim-teal),#3285F3 56%,var(--dim-purple-2));
    box-shadow:0 20px 50px rgba(24,183,173,.22), inset 0 1px 0 rgba(255,255,255,.22);
}
.premium-dimensional-ui{
    --module-edge:linear-gradient(90deg,var(--dim-teal),var(--dim-purple-2));
    gap:14px;
    perspective:1200px;
}
.premium-dimensional-ui .elite-summary-note{
    display:none;
}
.premium-dimensional-ui .situation-bar{
    position:relative;
    overflow:visible;
    border:1px solid rgba(255,255,255,.11);
    background:
        radial-gradient(circle at 10% 0%, rgba(37,208,198,.26), transparent 22%),
        radial-gradient(circle at 82% 16%, rgba(123,47,208,.24), transparent 24%),
        linear-gradient(135deg,#11152F 0%,#17123E 54%,#0B102C 100%);
    box-shadow:0 30px 90px rgba(17,18,51,.28), inset 0 1px 0 rgba(255,255,255,.10);
    transform:translateZ(0);
}
.premium-dimensional-ui .situation-bar:before{
    content:"";
    position:absolute;
    inset:-1px;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(90deg,rgba(37,208,198,.85),rgba(123,47,208,.75),rgba(37,208,198,.80));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    pointer-events:none;
}
.premium-dimensional-ui .situation-bar article{
    position:relative;
    isolation:isolate;
    background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
    box-shadow:inset 1px 0 0 rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.055);
}
.premium-dimensional-ui .situation-bar article:before{
    content:"";
    position:absolute;
    inset:10px 10px auto auto;
    width:58px;
    height:58px;
    border-radius:18px;
    background:rgba(255,255,255,.035);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
    z-index:-1;
}
.premium-dimensional-ui .situation-bar article:hover{
    background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.018));
}
.premium-dimensional-ui .status-shield{
    background:radial-gradient(circle at 28% 20%,rgba(255,255,255,.16),transparent 30%),linear-gradient(145deg,rgba(24,183,173,.18),rgba(13,22,57,.56));
    border:1px solid rgba(37,208,198,.40);
    box-shadow:0 18px 38px rgba(24,183,173,.18), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -16px 30px rgba(0,0,0,.16);
}
.premium-dimensional-ui .command-mode-badge{
    background:rgba(255,255,255,.11);
    backdrop-filter:blur(14px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
.premium-dimensional-ui .pulse-card,
.premium-dimensional-ui .elite-panel,
.premium-dimensional-ui .quick-access-row,
.premium-dimensional-ui .data-trust-bar{
    border-color:rgba(220,229,242,.88);
    background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,253,255,.94));
    box-shadow:var(--dim-shadow-2), inset 0 1px 0 rgba(255,255,255,.92);
}
.premium-dimensional-ui .pulse-card{
    transform-style:preserve-3d;
    border-radius:19px;
    overflow:hidden;
}
.premium-dimensional-ui .pulse-card:before{
    height:5px;
    opacity:1;
    background:linear-gradient(90deg,var(--dim-teal),#37A3F5,var(--dim-purple-2));
}
.premium-dimensional-ui .pulse-card:after{
    width:92px;
    height:92px;
    background:radial-gradient(circle,rgba(37,208,198,.22),rgba(37,208,198,.05) 62%,transparent 63%);
}
.premium-dimensional-ui .pulse-card:hover{
    transform:translateY(-5px) rotateX(1.1deg);
    box-shadow:0 28px 76px rgba(17,24,55,.15), inset 0 1px 0 rgba(255,255,255,.96);
}
.premium-dimensional-ui .pulse-icon,
.premium-dimensional-ui .panel-title>span,
.premium-dimensional-ui .data-trust-bar span{
    background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.82),transparent 34%),linear-gradient(145deg,#F3F0FF,#E7FBF8);
    box-shadow:0 14px 30px rgba(24,183,173,.09), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -10px 16px rgba(90,21,135,.04);
}
.premium-dimensional-ui .elite-panel{
    position:relative;
    overflow:hidden;
    border-radius:24px;
}
.premium-dimensional-ui .elite-panel:before{
    height:5px;
    background:linear-gradient(90deg,var(--dim-purple),var(--dim-teal),#3A86FF);
    opacity:.95;
}
.premium-dimensional-ui .elite-panel:after{
    content:"";
    position:absolute;
    inset:auto -70px -90px auto;
    width:210px;
    height:210px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(24,183,173,.12),transparent 65%);
    pointer-events:none;
}
.premium-dimensional-ui .panel-title,
.premium-dimensional-ui .finance-metrics,
.premium-dimensional-ui .clinical-grid,
.premium-dimensional-ui .specialty-rank,
.premium-dimensional-ui .action-list,
.premium-dimensional-ui .alert-list,
.premium-dimensional-ui .capacity-body,
.premium-dimensional-ui .flow-map,
.premium-dimensional-ui .flow-footer,
.premium-dimensional-ui .panel-link{
    position:relative;
    z-index:1;
}
.premium-dimensional-ui .finance-metrics div,
.premium-dimensional-ui .clinical-grid div,
.premium-dimensional-ui .flow-node{
    background:linear-gradient(145deg,#FFFFFF,#F8FBFF);
    border:1px solid rgba(222,232,245,.95);
    box-shadow:0 16px 38px rgba(17,24,55,.07), inset 0 1px 0 rgba(255,255,255,.94);
}
.premium-dimensional-ui .finance-metrics div:hover,
.premium-dimensional-ui .clinical-grid div:hover{
    transform:translateY(-2px);
    box-shadow:0 22px 52px rgba(17,24,55,.10), inset 0 1px 0 rgba(255,255,255,.96);
}
.premium-dimensional-ui .patient-flow-panel .flow-map{
    min-height:154px;
    display:grid;
    grid-template-columns:repeat(5,minmax(86px,1fr));
    align-items:center;
    gap:12px;
    padding:8px 4px 12px;
}
.premium-dimensional-ui .patient-flow-panel .flow-map:before{
    content:"";
    position:absolute;
    left:8%;
    right:8%;
    top:50%;
    height:4px;
    border-radius:999px;
    background:linear-gradient(90deg,rgba(24,183,173,.0),rgba(24,183,173,.76),rgba(123,47,208,.75),rgba(24,183,173,.72),rgba(24,183,173,.0));
    box-shadow:0 0 24px rgba(24,183,173,.24);
    z-index:0;
}
.premium-dimensional-ui .patient-flow-panel .flow-map:after{
    display:none;
}
.premium-dimensional-ui .flow-node{
    min-height:96px;
    border-radius:999px;
    display:grid;
    place-items:center;
    text-align:center;
    padding:12px;
    z-index:1;
    box-shadow:0 18px 42px rgba(17,24,55,.10), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -18px 24px rgba(24,183,173,.035);
}
.premium-dimensional-ui .flow-node strong{
    font-size:1.34rem;
    line-height:1.1;
}
.premium-dimensional-ui .flow-node span{
    font-size:.72rem;
    color:#58657E;
    font-weight:900;
}
.premium-dimensional-ui .flow-node.beds{
    display:none;
}
.premium-dimensional-ui .flow-node.opd{order:1}.premium-dimensional-ui .flow-node.er{order:2}.premium-dimensional-ui .flow-node.adm{order:3}.premium-dimensional-ui .flow-ring{order:4}.premium-dimensional-ui .flow-node.dis{order:5}
.premium-dimensional-ui .flow-node:not(.dis):not(.beds):after{
    content:"→";
    position:absolute;
    inset-inline-end:-17px;
    color:var(--dim-purple-2);
    font-size:1.15rem;
    font-weight:950;
    filter:drop-shadow(0 4px 8px rgba(123,47,208,.24));
}
.premium-dimensional-ui .flow-ring{
    position:relative;
    width:132px!important;
    height:132px!important;
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:center;
    background:conic-gradient(var(--dim-teal) 0 72%,var(--dim-purple-2) 72% 84%,#EFF4FA 84% 100%);
    border:1px solid rgba(224,232,243,.94);
    box-shadow:0 24px 64px rgba(24,183,173,.18), inset 0 1px 0 rgba(255,255,255,.95);
}
.premium-dimensional-ui .flow-ring:before{
    background:linear-gradient(145deg,#fff,#f8fbff);
    box-shadow:inset 0 0 0 1px rgba(224,232,243,.96), inset 0 -14px 22px rgba(24,183,173,.04);
}
.premium-dimensional-ui .flow-ring:after{
    content:"→";
    position:absolute;
    inset-inline-end:-25px;
    top:50%;
    transform:translateY(-50%);
    color:var(--dim-teal);
    font-size:1.25rem;
    font-weight:950;
}
.elite-body[dir="rtl"] .premium-dimensional-ui .flow-node:not(.dis):not(.beds):after,
.elite-body[dir="rtl"] .premium-dimensional-ui .flow-ring:after{
    content:"←";
}
.premium-dimensional-ui .capacity-body{
    align-items:center;
}
.premium-dimensional-ui .donut{
    background:conic-gradient(var(--dim-teal) calc(var(--p)*1%),var(--dim-purple-2) 0 calc(var(--p)*1% + 14%),#EDF3F8 0);
    border:1px solid rgba(224,232,243,.95);
    box-shadow:0 26px 70px rgba(24,183,173,.15), inset 0 1px 0 rgba(255,255,255,.94);
}
.premium-dimensional-ui .donut:before{
    background:linear-gradient(145deg,#fff,#f8fbff);
    box-shadow:inset 0 0 0 1px rgba(224,232,243,.94), inset 0 -16px 24px rgba(24,183,173,.04);
}
.premium-dimensional-ui .unit-bars b{
    background:#EEF3F8;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.premium-dimensional-ui .unit-bars b:after{
    background:linear-gradient(90deg,var(--dim-teal),var(--dim-purple-2));
    box-shadow:0 0 18px rgba(24,183,173,.20);
}
.premium-dimensional-ui .alerts-panel{
    border-color:rgba(254,202,202,.88);
}
.premium-dimensional-ui .alerts-panel:before{
    background:linear-gradient(90deg,#FB7185,#F59E0B,var(--dim-purple-2));
}
.premium-dimensional-ui .alert-item{
    background:linear-gradient(145deg,#FFFFFF,#FFF8FA);
    border:1px solid rgba(254,202,202,.82);
    box-shadow:0 18px 44px rgba(244,63,94,.075), inset 0 1px 0 rgba(255,255,255,.92);
}
.premium-dimensional-ui .actions-panel .action-item{
    grid-template-columns:1fr auto;
    background:linear-gradient(145deg,#FFFFFF,#F9FCFF);
    border:1px solid rgba(222,232,245,.95);
    box-shadow:0 16px 42px rgba(17,24,55,.07), inset 0 1px 0 rgba(255,255,255,.94);
}
.premium-dimensional-ui .action-item a,
.premium-dimensional-ui .action-center-button,
.premium-dimensional-ui .panel-link a{
    box-shadow:0 16px 36px rgba(24,183,173,.18), inset 0 1px 0 rgba(255,255,255,.22);
}
.premium-dimensional-ui .specialty-rank li{
    background:linear-gradient(145deg,#FFFFFF,#FAFCFF);
    border:1px solid rgba(224,232,243,.95);
    box-shadow:0 12px 30px rgba(17,24,55,.05);
}
.premium-dimensional-ui .quick-access-row a{
    box-shadow:0 10px 26px rgba(17,24,55,.045), inset 0 1px 0 rgba(255,255,255,.94);
}
.premium-dimensional-ui .data-trust-bar{
    background:linear-gradient(145deg,#FFFFFF,#F9FCFF);
}
@media (min-width:1501px){
    .premium-dimensional-ui .elite-panel.patient-flow-panel,
    .premium-dimensional-ui .elite-panel.capacity-panel,
    .premium-dimensional-ui .elite-panel.alerts-panel{min-height:226px!important;}
    .premium-dimensional-ui .elite-panel.finance-panel,
    .premium-dimensional-ui .elite-panel.clinical-panel,
    .premium-dimensional-ui .elite-panel.actions-panel{min-height:218px!important;}
}
@media (max-width:1500px){
    .premium-dimensional-ui .patient-flow-panel .flow-map{grid-template-columns:repeat(5,minmax(70px,1fr));}
    .premium-dimensional-ui .flow-ring{width:116px!important;height:116px!important;}
}
@media (max-width:1120px){
    .premium-dimensional-ui .patient-flow-panel .flow-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
    .premium-dimensional-ui .patient-flow-panel .flow-map:before,.premium-dimensional-ui .flow-node:after,.premium-dimensional-ui .flow-ring:after{display:none;}
    .premium-dimensional-ui .flow-ring{grid-column:auto!important;}
}
@media (max-width:620px){
    .premium-dimensional-ui .patient-flow-panel .flow-map{grid-template-columns:1fr;}
}

/* =========================================================
   Phase 10.2.4 — True Reference Command UI
   Rebuilds the dashboard body to match the executive concept.
   Backend-neutral: no extra Oracle queries.
   ========================================================= */
.reference-command-ui{
    --ref-purple:#4E0D73;
    --ref-purple-2:#7B2FD0;
    --ref-purple-3:#A855F7;
    --ref-teal:#18B7AD;
    --ref-teal-2:#27D2C8;
    --ref-blue:#3182F6;
    --ref-ink:#11162F;
    --ref-muted:#66728A;
    --ref-line:#DFE8F4;
    --ref-soft:#F7FBFF;
    --ref-shadow:0 22px 60px rgba(16,24,49,.10);
    --ref-shadow-2:0 36px 90px rgba(16,24,49,.16);
    position:relative;
    display:grid;
    gap:14px;
    padding:0 0 4px;
    color:var(--ref-ink);
}
.reference-command-ui:before{
    content:"";
    position:fixed;
    inset:0 0 0 var(--sidebar-width,286px);
    pointer-events:none;
    background:
      linear-gradient(rgba(15,23,42,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15,23,42,.025) 1px, transparent 1px),
      radial-gradient(circle at 20% 3%, rgba(24,183,173,.16), transparent 24%),
      radial-gradient(circle at 78% 4%, rgba(123,47,208,.13), transparent 28%);
    background-size:38px 38px,38px 38px,auto,auto;
    z-index:-1;
}
.elite-body[dir="rtl"] .reference-command-ui:before{inset:0 var(--sidebar-width,286px) 0 0}
.ref-warning{border:1px solid rgba(245,158,11,.30);background:#FFFBEB;color:#92400E;border-radius:18px;padding:14px 16px;display:grid;gap:4px}
.ref-situation-strip{
    display:grid;
    grid-template-columns:1.72fr .95fr 1.12fr 1.05fr 1.05fr 1.08fr;
    gap:0;
    min-height:114px;
    color:#fff;
    overflow:hidden;
    border-radius:22px;
    border:1px solid rgba(38,208,198,.40);
    background:
      radial-gradient(circle at 10% 12%, rgba(39,210,200,.28), transparent 23%),
      radial-gradient(circle at 82% 4%, rgba(168,85,247,.26), transparent 24%),
      linear-gradient(135deg,#101733 0%,#17113A 52%,#0B122D 100%);
    box-shadow:0 30px 85px rgba(17,18,51,.25), inset 0 1px 0 rgba(255,255,255,.12);
    position:relative;
}
.ref-situation-strip:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.09),transparent 17%,transparent 100%);pointer-events:none}
.ref-situation-strip article{position:relative;min-width:0;padding:17px 20px;border-inline-start:1px solid rgba(255,255,255,.12);display:grid;align-content:center;gap:6px;isolation:isolate}
.ref-situation-strip article:first-child{border-inline-start:0}
.ref-situation-strip article:after{content:"";position:absolute;inset:auto -24px -42px auto;width:98px;height:98px;border-radius:28px;background:rgba(255,255,255,.045);z-index:-1;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
.ref-module-large{display:grid!important;grid-template-columns:62px 1fr;column-gap:16px;align-items:center;align-content:center}
.ref-module-icon{width:46px;height:46px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 16px 34px rgba(0,0,0,.16);font-weight:950;color:#fff}
.ref-module-icon.heartbeat{width:62px;height:62px;border-radius:22px;color:var(--ref-teal-2);border-color:rgba(39,210,200,.35);box-shadow:0 0 0 8px rgba(39,210,200,.05),0 22px 52px rgba(39,210,200,.15),inset 0 1px 0 rgba(255,255,255,.13)}
.ref-module-icon.purple{color:#C9A7FF}.ref-module-icon.orange{color:#FDBA74}.ref-module-icon.bed{color:#A7F3D0}.ref-module-icon.shield{color:#86EFAC}
.ref-live-dot{position:absolute;top:16px;inset-inline-end:16px;width:8px;height:8px;border-radius:50%;background:var(--ref-teal-2);box-shadow:0 0 0 6px rgba(39,210,200,.13),0 0 18px rgba(39,210,200,.55)}
.ref-module-copy small,.ref-situation-strip small{display:block;text-transform:uppercase;letter-spacing:.075em;font-size:.71rem;font-weight:950;color:#CDD5EA}
.ref-situation-strip strong{display:block;line-height:1;letter-spacing:-.06em;font-weight:950;font-size:clamp(1.55rem,2.05vw,2.35rem)}
.ref-situation-strip em{font-style:normal;color:#D5DCEF;font-weight:800;font-size:.82rem;line-height:1.25}
.ref-good-text{color:var(--ref-teal-2)!important}.ref-teal-text{color:var(--ref-teal-2)!important}.pressure-watch{color:#FB7185!important}.pressure-low{color:#FB7185!important}.pressure-high{color:#FF4D6D!important}
.ref-mode-chip{position:absolute;top:16px;inset-inline-end:16px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}
.ref-ring-mini{--p:0;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ref-teal-2) calc(var(--p)*1%),rgba(255,255,255,.14) 0);box-shadow:0 16px 36px rgba(39,210,200,.12),inset 0 1px 0 rgba(255,255,255,.12);position:relative}
.ref-ring-mini:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#14153A;border:1px solid rgba(255,255,255,.07)}
.ref-ring-mini span{position:relative;font-size:.72rem;font-weight:950;color:#fff}
.ref-spark{height:28px;display:flex;align-items:end;gap:3px;margin-top:1px}.ref-spark span{width:5px;border-radius:9px 9px 0 0;background:linear-gradient(180deg,var(--ref-teal-2),rgba(39,210,200,.18));box-shadow:0 0 14px rgba(39,210,200,.20)}.ref-spark.purple span{background:linear-gradient(180deg,#A855F7,rgba(168,85,247,.17))}
.ref-pressure-bars{display:flex;gap:5px;margin-top:3px}.ref-pressure-bars i{width:21px;height:7px;border-radius:999px;background:rgba(255,255,255,.17)}.ref-pressure-bars.watch i:nth-child(-n+3),.ref-pressure-bars.low i:nth-child(-n+3){background:linear-gradient(90deg,#F59E0B,#FB7185)}.ref-pressure-bars.high i:nth-child(-n+5){background:linear-gradient(90deg,#F59E0B,#FB7185)}
.ref-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px 0 -2px}.ref-section-title span{font-size:.73rem;text-transform:uppercase;letter-spacing:.09em;color:var(--ref-purple);font-weight:950}.ref-section-title h2{font-size:1.22rem;margin:4px 0 0;letter-spacing:-.04em}.ref-freshness{border:1px solid var(--ref-line);background:#fff;border-radius:15px;padding:9px 13px;text-align:end;box-shadow:0 12px 30px rgba(16,24,49,.07)}.ref-freshness small{display:block;color:var(--ref-muted);font-weight:900;text-transform:uppercase;font-size:.68rem}.ref-freshness strong{font-size:.82rem}
.ref-pulse-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.ref-pulse-card{position:relative;min-height:108px;border:1px solid var(--ref-line);background:linear-gradient(145deg,#fff,#FAFDFF);border-radius:18px;padding:13px 14px;text-decoration:none;color:var(--ref-ink);box-shadow:0 18px 42px rgba(16,24,49,.08),inset 0 1px 0 rgba(255,255,255,.95);display:grid;gap:5px;overflow:hidden;transition:.18s ease}.ref-pulse-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--ref-teal),var(--ref-purple-2))}.ref-pulse-card:after{content:"";position:absolute;inset:auto -28px -34px auto;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle,rgba(39,210,200,.20),rgba(39,210,200,.05) 62%,transparent 63%)}.ref-pulse-card:hover{transform:translateY(-4px);box-shadow:0 26px 65px rgba(16,24,49,.13),inset 0 1px 0 rgba(255,255,255,.98)}.ref-pulse-card span{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:#EAFBFA;color:var(--ref-teal);font-weight:950}.ref-pulse-card.tone-purple span{background:#F3ECFF;color:var(--ref-purple-2)}.ref-pulse-card.tone-red span{background:#FFF1F3;color:#E11D48}.ref-pulse-card.tone-green span{background:#ECFDF3;color:#16A34A}.ref-pulse-card.tone-blue span{background:#EFF6FF;color:#2563EB}.ref-pulse-card small{font-size:.78rem;color:#303955;font-weight:900}.ref-pulse-card strong{font-size:1.32rem;letter-spacing:-.04em;line-height:1}.ref-pulse-card em{font-style:normal;color:#059669;font-weight:900;font-size:.72rem}
.ref-command-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1.1fr) 340px;gap:14px}.ref-panel{position:relative;min-width:0;border:1px solid var(--ref-line);background:linear-gradient(145deg,#fff,#FAFDFF);border-radius:22px;padding:16px;box-shadow:var(--ref-shadow),inset 0 1px 0 rgba(255,255,255,.96);overflow:hidden}.ref-panel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--ref-purple-2),var(--ref-teal),var(--ref-blue))}.ref-panel:after{content:"";position:absolute;inset:auto -70px -90px auto;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(39,210,200,.11),transparent 66%);pointer-events:none}.ref-panel-head{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin-bottom:14px}.ref-panel-head>span{width:30px;height:30px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#F2EFFF,#E8FBF9);color:var(--ref-purple-2);font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}.ref-panel-head h3{margin:0;font-size:1.02rem;letter-spacing:-.03em}.ref-panel-head a{margin-inline-start:auto;color:var(--ref-purple);font-weight:950;text-decoration:none;font-size:.82rem}
.ref-flow-panel{min-height:246px}.ref-flow-track{position:relative;z-index:1;min-height:142px;display:grid;grid-template-columns:repeat(5,minmax(78px,1fr));align-items:center;gap:12px;padding:8px 4px 6px}.ref-flow-track:before{content:"";position:absolute;left:8%;right:8%;top:50%;height:4px;border-radius:999px;background:linear-gradient(90deg,rgba(24,183,173,.0),rgba(24,183,173,.72),rgba(123,47,208,.78),rgba(24,183,173,.66),rgba(24,183,173,.0));box-shadow:0 0 22px rgba(24,183,173,.22)}.ref-flow-node{position:relative;z-index:1;aspect-ratio:1/1;border-radius:50%;display:grid;place-items:center;text-align:center;padding:10px;background:linear-gradient(145deg,#fff,#F7FBFF);border:1px solid #DFE8F4;box-shadow:0 20px 50px rgba(16,24,49,.10),inset 0 1px 0 rgba(255,255,255,.98)}.ref-flow-node span{width:31px;height:31px;border-radius:13px;display:grid;place-items:center;background:#EAFBFA;color:var(--ref-teal);font-weight:950}.ref-flow-node.emergency span{background:#FFF1F3;color:#E11D48}.ref-flow-node.discharge span{background:#ECFDF3;color:#16A34A}.ref-flow-node b{font-size:1.24rem;line-height:1;letter-spacing:-.04em}.ref-flow-node small{font-size:.68rem;color:#607089;font-weight:900}.ref-flow-capacity{position:relative;z-index:1;display:grid;place-items:center}.ref-big-donut{--p:0;width:126px;height:126px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ref-teal) calc(var(--p)*1%),var(--ref-purple-2) 0 calc(var(--p)*1% + 16%),#EDF3F8 0);box-shadow:0 26px 70px rgba(24,183,173,.16),inset 0 1px 0 rgba(255,255,255,.96);position:relative}.ref-big-donut:before{content:"";position:absolute;inset:18px;border-radius:50%;background:linear-gradient(145deg,#fff,#F8FBFF);border:1px solid #E2EAF4}.ref-big-donut b,.ref-big-donut small{position:relative;z-index:1;display:block;text-align:center}.ref-big-donut b{font-size:1.15rem;letter-spacing:-.04em}.ref-big-donut small{font-size:.68rem;color:#607089;font-weight:900}.ref-flow-panel footer{position:relative;z-index:1;border-top:1px solid #E5EDF6;margin-top:10px;padding-top:10px;display:flex;gap:18px;flex-wrap:wrap;color:#607089;font-weight:850;font-size:.78rem}
.ref-capacity-body{position:relative;z-index:1;display:grid;grid-template-columns:132px 1fr;gap:18px;align-items:center}.ref-big-donut.ghost{width:118px;height:118px}.ref-unit-bars{display:grid;gap:12px}.ref-unit-bars div{display:grid;grid-template-columns:78px 1fr 38px;gap:10px;align-items:center}.ref-unit-bars span,.ref-unit-bars em{color:#40506B;font-weight:900;font-size:.82rem}.ref-unit-bars b{height:10px;border-radius:999px;background:#EEF3F8;overflow:hidden}.ref-unit-bars b:after{content:"";display:block;width:var(--w);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ref-teal),var(--ref-purple-2));box-shadow:0 0 14px rgba(24,183,173,.22)}.ref-panel-link{position:relative;z-index:1;margin:18px auto 0;display:flex;width:max-content;text-decoration:none;border-radius:999px;background:#EAFBFA;color:#04756E;padding:10px 18px;font-weight:950;box-shadow:0 12px 26px rgba(24,183,173,.12)}
.ref-alerts-panel{border-color:#FFD3D8}.ref-alerts-panel:before{background:linear-gradient(90deg,#FB7185,#F59E0B,var(--ref-purple-2))}.ref-alert-list,.ref-action-list{position:relative;z-index:1;display:grid;gap:10px}.ref-alert{border:1px solid #FBD0D8;background:linear-gradient(145deg,#fff,#FFF8FA);border-radius:16px;padding:13px;box-shadow:0 14px 34px rgba(244,63,94,.06)}.ref-alert.severity-good{border-color:#BBF7D0;background:linear-gradient(145deg,#fff,#F0FDF4)}.ref-alert b,.ref-alert span{display:block}.ref-alert span{margin-top:5px;color:#607089;font-weight:800;font-size:.78rem}
.ref-finance-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ref-finance-grid div,.ref-clinical-top div{border:1px solid #E7EEF8;background:#FBFDFF;border-radius:15px;padding:13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.ref-finance-grid small,.ref-clinical-top small{display:block;color:#607089;font-weight:900;font-size:.76rem}.ref-finance-grid strong,.ref-clinical-top strong{display:block;margin-top:5px;font-size:1rem;letter-spacing:-.03em}.ref-clinical-top{position:relative;z-index:1;display:grid;grid-template-columns:.8fr 1.5fr .8fr;gap:10px}.ref-clinical-top em{display:block;margin-top:6px;color:#008A80;font-style:normal;font-weight:950}.ref-specialty-list{position:relative;z-index:1;list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.ref-specialty-list li{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;border:1px solid #E7EEF8;background:#FBFDFF;border-radius:14px;padding:8px 10px}.ref-specialty-list li span{width:25px;height:25px;border-radius:10px;background:#F3ECFF;color:var(--ref-purple-2);display:grid;place-items:center;font-weight:950}.ref-specialty-list li b{font-size:.78rem}.ref-specialty-list li em{font-style:normal;color:var(--ref-purple);font-weight:950;font-size:.78rem}.ref-action{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #E7EEF8;background:linear-gradient(145deg,#fff,#F9FCFF);border-radius:16px;padding:12px}.ref-action b,.ref-action span{display:block}.ref-action span{margin-top:5px;color:#607089;font-size:.78rem;font-weight:800}.ref-action a{border-radius:12px;text-decoration:none;background:var(--ref-teal);color:#fff;padding:10px 12px;font-weight:950}.ref-action.tone-purple a{background:var(--ref-purple)}.ref-action.tone-blue a{background:var(--ref-blue)}.ref-action-center{position:relative;z-index:1;display:block;margin-top:12px;text-align:center;text-decoration:none;color:#fff;background:linear-gradient(135deg,var(--ref-purple),#7C3AED);border-radius:14px;padding:12px 16px;font-weight:950;box-shadow:0 18px 42px rgba(123,47,208,.23)}
.ref-quick-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid var(--ref-line);background:#fff;border-radius:18px;padding:13px 15px;box-shadow:var(--ref-shadow)}.ref-quick-row strong{margin-inline-end:8px}.ref-quick-row a{text-decoration:none;color:#24304F;border:1px solid var(--ref-line);background:#FBFDFF;border-radius:13px;padding:9px 13px;font-weight:900}.ref-trust-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--ref-line);background:#fff;border-radius:18px;box-shadow:var(--ref-shadow);overflow:hidden}.ref-trust-bar div{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto auto;column-gap:10px;border-inline-start:1px solid var(--ref-line);padding:15px}.ref-trust-bar div:first-child{border-inline-start:0}.ref-trust-bar span{grid-row:1/4;width:37px;height:37px;border-radius:13px;display:grid;place-items:center;background:#F3ECFF;color:var(--ref-purple-2);font-weight:950}.ref-trust-bar b{font-size:.7rem;text-transform:uppercase;color:#607089}.ref-trust-bar strong{font-size:.93rem}.ref-trust-bar em{color:#059669;font-style:normal;font-weight:900;font-size:.75rem}
@media (max-width:1560px){.ref-situation-strip{grid-template-columns:1.55fr repeat(3,1fr)}.ref-situation-strip article:nth-child(n+5){border-top:1px solid rgba(255,255,255,.12)}.ref-pulse-row{grid-template-columns:repeat(4,minmax(0,1fr))}.ref-command-grid{grid-template-columns:1fr 1fr}.ref-alerts-panel,.ref-actions-panel{grid-column:auto}.ref-specialty-list{grid-template-columns:1fr}}
@media (max-width:1120px){.ref-command-grid{grid-template-columns:1fr}.ref-pulse-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-flow-track{grid-template-columns:repeat(2,1fr)}.ref-flow-track:before{display:none}.ref-flow-capacity{grid-column:1/3}.ref-situation-strip,.ref-trust-bar{grid-template-columns:1fr 1fr}.ref-finance-grid,.ref-clinical-top{grid-template-columns:1fr 1fr}}
@media (max-width:720px){.ref-situation-strip,.ref-pulse-row,.ref-trust-bar,.ref-finance-grid,.ref-clinical-top{grid-template-columns:1fr}.ref-module-large{grid-template-columns:1fr}.ref-capacity-body{grid-template-columns:1fr}.ref-flow-capacity{grid-column:auto}.ref-trust-bar div{border-inline-start:0;border-top:1px solid var(--ref-line)}}

/* =========================================================
   Phase 10.2.5 — Elite Reference Command UI
   A real rebuilt structure inspired by the latest reference mockup.
   No extra Oracle calls: presentation layer only.
   ========================================================= */
.page-dashboard .elite-main{
  background:
    linear-gradient(rgba(91,23,130,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,181,174,.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(31,181,174,.17), transparent 34%),
    radial-gradient(circle at 94% 6%, rgba(91,23,130,.12), transparent 36%),
    #f7f9fc !important;
  background-size: 32px 32px, 32px 32px, auto, auto, auto !important;
}
.page-dashboard .elite-topbar{
  position:relative !important;
  top:auto !important;
  z-index:5 !important;
  margin:4px 0 22px !important;
  padding:18px 22px !important;
  border:1px solid rgba(226,232,240,.86) !important;
  border-radius:0 0 34px 34px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,255,255,.88)) !important;
  box-shadow:0 22px 70px rgba(30,10,67,.08) !important;
  backdrop-filter:blur(20px) !important;
}
.page-dashboard .elite-title-block h1{
  max-width:410px !important;
  font-size:clamp(1.75rem,2.2vw,2.45rem) !important;
  line-height:.98 !important;
}
.page-dashboard .elite-title-block p{font-weight:900 !important;line-height:1.45 !important}
.page-dashboard .elite-search{max-width:470px !important}

.cmdx{--cmd-purple:#4e0d73;--cmd-purple2:#7c2ee6;--cmd-teal:#1fb5ae;--cmd-teal2:#22d3c5;--cmd-ink:#11162f;--cmd-muted:#66738c;--cmd-line:#e5edf6;--cmd-bg:#f7f9fc;--cmd-red:#ff657d;--cmd-orange:#ffae35;--cmd-blue:#3485ff;display:grid;gap:14px;color:var(--cmd-ink);}
.cmdx *{box-sizing:border-box}.cmdx a{text-decoration:none}.cmdx-warning{border:1px solid rgba(245,158,11,.25);background:#fffbeb;color:#92400e;border-radius:18px;padding:14px 16px;display:grid;gap:4px;font-weight:850}

/* Situation: single executive cockpit row */
.cmdx-situation{position:relative;overflow:hidden;display:grid;grid-template-columns:1.55fr .82fr 1.05fr .92fr .92fr 1.05fr;gap:0;border:1px solid rgba(31,181,174,.38);border-radius:20px;background:radial-gradient(circle at 2% 12%,rgba(31,181,174,.22),transparent 25%),radial-gradient(circle at 72% 0%,rgba(124,46,230,.20),transparent 34%),linear-gradient(135deg,#061930,#151038 54%,#08122d);box-shadow:0 24px 70px rgba(15,14,50,.24),inset 0 1px 0 rgba(255,255,255,.14);color:#fff;isolation:isolate;}
.cmdx-situation:before{content:"";position:absolute;inset:-1px;background:linear-gradient(90deg,rgba(31,181,174,.22),transparent 18%,transparent 80%,rgba(31,181,174,.18));pointer-events:none}.cmdx-situation article{min-height:132px;position:relative;z-index:1;padding:20px 22px;display:grid;align-content:center;gap:7px;border-inline-start:1px solid rgba(255,255,255,.12)}.cmdx-situation article:first-child{border-inline-start:0}.cmdx-situation article:after{content:"";position:absolute;inset:auto 14px 12px auto;width:66px;height:66px;border-radius:22px;background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.11);z-index:-1}.cmdx-situation small{font-size:.72rem;letter-spacing:.085em;text-transform:uppercase;color:#cfd7ed;font-weight:950}.cmdx-situation strong{font-size:clamp(1.55rem,2.2vw,2.5rem);line-height:1;letter-spacing:-.055em;font-weight:1000}.cmdx-situation em{font-style:normal;color:#dce4f2;font-weight:780;font-size:.82rem;line-height:1.25}.cmdx-status-tile{display:grid!important;grid-template-columns:64px 1fr auto;align-items:center;gap:16px}.cmdx-status-tile strong,.cmdx-situation .good{color:var(--cmd-teal2)}.cmdx-icon,.cmdx-square{display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 16px 34px rgba(0,0,0,.18);font-weight:950}.cmdx-icon{width:62px;height:62px;border-radius:20px;color:var(--cmd-teal2);font-size:1.55rem}.cmdx-icon.pulse{box-shadow:0 0 36px rgba(31,181,174,.26),inset 0 0 0 1px rgba(31,181,174,.24)}.cmdx-square{width:46px;height:46px;border-radius:16px;margin-bottom:6px}.cmdx-square.purple{color:#d8c4ff}.cmdx-square.orange{color:var(--cmd-orange)}.cmdx-square.bed{color:#8bece6}.cmdx-square.shield{color:#44e4c6}.cmdx-live-chip{align-self:start;justify-self:end;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.10);color:#e9f1ff;font-size:.68rem;font-weight:950;letter-spacing:.04em;white-space:nowrap}.cmdx-mini-ring{--p:0;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--cmd-teal) calc(var(--p)*1%),rgba(255,255,255,.12) 0);box-shadow:inset 0 0 0 10px rgba(10,14,40,.94),0 12px 32px rgba(0,0,0,.17)}.cmdx-mini-ring span{font-weight:1000;font-size:.95rem}.cmdx-spark{display:flex;align-items:end;gap:4px;height:34px;margin-top:4px}.cmdx-spark span{width:7px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,var(--cmd-purple2),rgba(124,46,230,.18));box-shadow:0 8px 16px rgba(124,46,230,.16)}.cmdx-pressure-watch{color:#ffb84d!important}.cmdx-pressure-high{color:#ff667d!important}.cmdx-pressure-low{color:#64e6be!important}.cmdx-pressure{display:flex;gap:5px;margin-top:3px}.cmdx-pressure i{width:22px;height:7px;border-radius:999px;background:rgba(255,255,255,.14)}.cmdx-pressure.watch i:nth-child(-n+3),.cmdx-pressure.high i:nth-child(-n+4){background:linear-gradient(90deg,var(--cmd-orange),var(--cmd-red))}.cmdx-pressure.low i:nth-child(-n+2){background:linear-gradient(90deg,#34d399,var(--cmd-teal2))}

.cmdx-section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:4px 2px 0}.cmdx-section-head span{display:block;color:var(--cmd-purple);text-transform:uppercase;letter-spacing:.08em;font-weight:1000;font-size:.76rem}.cmdx-section-head h2{margin:5px 0 0;font-size:1.28rem;letter-spacing:-.035em}.cmdx-updated{padding:11px 14px;border-radius:16px;background:rgba(255,255,255,.86);border:1px solid var(--cmd-line);box-shadow:0 14px 40px rgba(17,22,47,.06);text-align:end}.cmdx-updated small{display:block;text-transform:uppercase;color:var(--cmd-muted);font-size:.68rem;font-weight:950}.cmdx-updated strong{display:block;margin-top:3px;font-size:.84rem}

/* KPI pulse cards */
.cmdx-pulse-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.cmdx-pulse-card{position:relative;overflow:hidden;min-height:96px;border:1px solid var(--cmd-line);border-radius:18px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 16px 40px rgba(16,24,40,.065);color:var(--cmd-ink);padding:13px 14px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:start;transition:.18s ease}.cmdx-pulse-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--cmd-teal),var(--cmd-purple2))}.cmdx-pulse-card:after{content:"";position:absolute;right:-24px;bottom:-30px;width:78px;height:78px;border-radius:50%;background:rgba(31,181,174,.10)}.cmdx-pulse-card:hover{transform:translateY(-3px);box-shadow:0 24px 55px rgba(16,24,40,.10)}.cmdx-pulse-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#e9fbfa;color:#0f9f99;font-weight:950}.cmdx-pulse-card.tone-purple .cmdx-pulse-icon{background:#f3eafe;color:var(--cmd-purple)}.cmdx-pulse-card.tone-red .cmdx-pulse-icon{background:#fff0f3;color:#e3425f}.cmdx-pulse-card.tone-green .cmdx-pulse-icon{background:#ecfdf3;color:#0f9f5a}.cmdx-pulse-card.tone-blue .cmdx-pulse-icon{background:#edf5ff;color:#2563eb}.cmdx-pulse-card small{display:block;color:#26324e;font-weight:900;font-size:.74rem}.cmdx-pulse-card strong{display:block;margin-top:5px;font-size:1.3rem;line-height:1;letter-spacing:-.04em}.cmdx-pulse-card em{display:block;margin-top:5px;color:#058b6f;font-style:normal;font-weight:900;font-size:.72rem}.cmdx-card-spark{position:absolute;right:14px;bottom:12px;display:flex;align-items:end;gap:3px;height:22px;opacity:.55}.cmdx-card-spark span{width:5px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,var(--cmd-teal),rgba(31,181,174,.1))}

/* Main command grid */
.cmdx-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(320px,.86fr);grid-template-areas:"flow capacity finance" "clinical alerts actions";gap:13px}.cmdx-panel{position:relative;overflow:hidden;border:1px solid var(--cmd-line);border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(252,254,255,.92));box-shadow:0 16px 42px rgba(16,24,40,.065);padding:16px;min-width:0}.cmdx-panel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--cmd-purple2),var(--cmd-teal),var(--cmd-blue));opacity:.92}.cmdx-panel:after{content:"";position:absolute;inset:auto -60px -80px auto;width:170px;height:170px;border-radius:50%;background:rgba(31,181,174,.07);pointer-events:none}.cmdx-panel-title{position:relative;z-index:1;display:flex;align-items:center;gap:9px;margin-bottom:14px}.cmdx-panel-title span{width:31px;height:31px;border-radius:12px;display:grid;place-items:center;background:#f2eefe;color:var(--cmd-purple);font-weight:950}.cmdx-panel-title h3{margin:0;font-size:1.02rem;letter-spacing:-.025em}.cmdx-panel-title a{margin-inline-start:auto;color:var(--cmd-purple);font-weight:950;font-size:.8rem}.flow-panel{grid-area:flow}.capacity-panel{grid-area:capacity}.finance-panel{grid-area:finance}.clinical-panel{grid-area:clinical}.alerts-panel{grid-area:alerts}.actions-panel{grid-area:actions}

.cmdx-flow-line{position:relative;z-index:1;display:grid;grid-template-columns:1fr 22px 1fr 22px 1fr 22px 1.2fr 22px 1fr;align-items:center;gap:2px;padding:8px 0 12px}.cmdx-flow-line>i{height:3px;border-radius:999px;background:linear-gradient(90deg,var(--cmd-teal),var(--cmd-purple2));position:relative}.cmdx-flow-line>i:after{content:"";position:absolute;right:-3px;top:50%;width:8px;height:8px;border-top:3px solid var(--cmd-purple2);border-right:3px solid var(--cmd-purple2);transform:translateY(-50%) rotate(45deg)}[dir="rtl"] .cmdx-flow-line>i:after{right:auto;left:-3px;transform:translateY(-50%) rotate(225deg)}.cmdx-flow-node{min-height:112px;border-radius:999px;border:1px solid #dbe7f2;background:radial-gradient(circle at 40% 18%,#fff,#f9fcff 72%);box-shadow:0 18px 38px rgba(17,22,47,.08), inset 0 1px 0 #fff;display:grid;place-items:center;text-align:center;padding:12px}.cmdx-flow-node span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e9fbfa;color:var(--cmd-teal);font-weight:950}.cmdx-flow-node b{font-size:1.35rem;letter-spacing:-.04em}.cmdx-flow-node small{font-weight:900;color:var(--cmd-muted);font-size:.72rem}.cmdx-flow-node.er span{background:#fff1f3;color:#e3425f}.cmdx-flow-node.adm span{background:#f3eefe;color:var(--cmd-purple)}.cmdx-flow-node.dis span{background:#ecfdf3;color:#0f9f5a}.cmdx-flow-node.primary{min-height:132px;box-shadow:0 28px 55px rgba(31,181,174,.11), inset 0 0 0 12px rgba(31,181,174,.05)}.cmdx-flow-node.primary span{background:linear-gradient(135deg,var(--cmd-teal),var(--cmd-purple2));color:#fff}.cmdx-panel footer{position:relative;z-index:1;margin-top:10px;padding-top:11px;border-top:1px dashed #dce7f2;color:var(--cmd-muted);font-weight:850;font-size:.78rem}.cmdx-panel footer span{margin:0 7px;color:#94a3b8}

.cmdx-capacity-body{position:relative;z-index:1;display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center}.cmdx-donut{--p:0;width:140px;height:140px;border-radius:50%;display:grid;place-items:center;text-align:center;background:conic-gradient(var(--cmd-purple2) calc(var(--p)*1%),#edf2f7 0);box-shadow:0 22px 45px rgba(16,24,40,.08),inset 0 0 0 15px #fff}.cmdx-donut b{font-size:1.3rem}.cmdx-donut small{display:block;color:var(--cmd-muted);font-weight:900;font-size:.74rem}.cmdx-units{display:grid;gap:13px}.cmdx-units div{display:grid;grid-template-columns:72px 1fr 38px;gap:10px;align-items:center}.cmdx-units span{font-weight:900;color:#35415b}.cmdx-units b{height:9px;border-radius:999px;background:linear-gradient(90deg,var(--cmd-teal),var(--cmd-purple2));width:var(--w);min-width:0;box-shadow:0 0 0 1px rgba(226,232,240,.5)}.cmdx-units div:has(b[style*="0%"] ) b{background:#edf2f7;width:100%}.cmdx-units em{text-align:end;font-style:normal;color:var(--cmd-muted);font-weight:900}.cmdx-soft-link{position:relative;z-index:1;display:table;margin:14px auto 0;padding:10px 20px;border-radius:999px;background:#e9fbfa;color:#067f7a;font-weight:1000;box-shadow:0 12px 35px rgba(31,181,174,.12)}

.cmdx-finance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cmdx-finance-grid div{border:1px solid #eaf1f8;background:linear-gradient(145deg,#fff,#fbfdff);border-radius:15px;padding:14px;box-shadow:inset 0 1px 0 #fff}.cmdx-finance-grid .net{background:linear-gradient(145deg,#ecfffd,#f7fffe);border-color:#c7f4ef}.cmdx-finance-grid small,.cmdx-clinical-top small{display:block;color:var(--cmd-muted);font-weight:900}.cmdx-finance-grid strong,.cmdx-clinical-top strong{display:block;margin-top:5px;font-size:1.03rem;line-height:1.25}.cmdx-finance-grid .net strong{color:#078f86}

.cmdx-clinical-top{display:grid;grid-template-columns:.75fr 1.55fr .78fr;gap:10px}.cmdx-clinical-top div{border:1px solid #eaf1f8;background:#fbfdff;border-radius:15px;padding:13px}.cmdx-clinical-top em{display:block;margin-top:5px;color:#078f86;font-style:normal;font-weight:950}.cmdx-specialties{list-style:none;margin:13px 0 0;padding:0;display:grid;gap:8px}.cmdx-specialties li{display:grid;grid-template-columns:28px minmax(120px,.8fr) minmax(80px,1fr) auto;align-items:center;gap:9px;border:1px solid #edf2f7;background:#fff;border-radius:13px;padding:8px 10px}.cmdx-specialties span{width:26px;height:26px;border-radius:10px;display:grid;place-items:center;background:#f3eafe;color:var(--cmd-purple);font-weight:950}.cmdx-specialties b{font-size:.78rem}.cmdx-specialties i{height:4px;border-radius:999px;width:var(--w);background:linear-gradient(90deg,var(--cmd-purple2),#b894ff)}.cmdx-specialties em{font-style:normal;color:var(--cmd-purple);font-weight:950;font-size:.8rem}

.cmdx-alert-list,.cmdx-actions{display:grid;gap:10px}.cmdx-alert{display:grid;gap:6px;border:1px solid #ffd5dd;background:linear-gradient(145deg,#fff8fa,#fff);border-radius:16px;padding:16px;text-align:center}.cmdx-alert span{margin:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff0f3;color:#ef4444}.cmdx-alert b{color:#ef4444;font-size:1.15rem}.cmdx-alert p{margin:0;color:#37415c;font-weight:820}.cmdx-alert em{font-style:normal;color:#64748b;font-size:.8rem}.cmdx-alert.severity-summary{border-color:#fecaca;background:linear-gradient(145deg,#fff7f7,#fff)}.cmdx-action{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #edf2f7;background:#fbfdff;border-radius:15px;padding:13px}.cmdx-action b,.cmdx-action span{display:block}.cmdx-action span{margin-top:5px;color:var(--cmd-muted);font-weight:760;font-size:.78rem}.cmdx-action a{border-radius:12px;background:var(--cmd-teal);color:#fff;padding:10px 13px;font-weight:1000}.cmdx-action.tone-purple a{background:var(--cmd-purple)}.cmdx-action.tone-blue a{background:var(--cmd-blue)}.cmdx-action-center{display:block;margin-top:12px;text-align:center;border-radius:14px;background:linear-gradient(135deg,var(--cmd-purple),var(--cmd-purple2));color:#fff;padding:13px 16px;font-weight:1000;box-shadow:0 18px 42px rgba(91,23,130,.18)}

.cmdx-quick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--cmd-line);border-radius:18px;background:#fff;padding:12px 14px;box-shadow:0 16px 42px rgba(16,24,40,.055)}.cmdx-quick strong{font-size:1rem;margin-inline-end:8px}.cmdx-quick a{border:1px solid var(--cmd-line);border-radius:13px;background:#fbfdff;color:#25304d;padding:9px 14px;font-weight:900}.cmdx-trust{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--cmd-line);border-radius:18px;background:#fff;box-shadow:0 16px 42px rgba(16,24,40,.055);overflow:hidden}.cmdx-trust div{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;column-gap:10px;padding:14px 16px;border-inline-start:1px solid var(--cmd-line)}.cmdx-trust div:first-child{border-inline-start:0}.cmdx-trust span{grid-row:1/4;width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:#f3eafe;color:var(--cmd-purple);font-weight:950}.cmdx-trust b{font-size:.7rem;color:var(--cmd-muted);text-transform:uppercase}.cmdx-trust strong{font-size:.98rem}.cmdx-trust em{font-style:normal;color:#059669;font-size:.76rem;font-weight:900}

@media (max-width:1500px){.cmdx-situation{grid-template-columns:1.45fr .8fr 1fr .86fr .86fr 1fr}.cmdx-situation article{padding:17px 18px}.cmdx-situation strong{font-size:clamp(1.35rem,1.7vw,2.1rem)}.cmdx-pulse-row{grid-template-columns:repeat(4,1fr)}.cmdx-grid{grid-template-columns:1fr 1fr;grid-template-areas:"flow capacity" "finance clinical" "alerts actions"}.cmdx-flow-line{grid-template-columns:repeat(5,1fr);gap:10px}.cmdx-flow-line>i{display:none}.cmdx-flow-node{border-radius:22px;min-height:98px}.cmdx-flow-node.primary{min-height:110px}}
@media (max-width:1120px){.cmdx-situation{grid-template-columns:1fr 1fr}.cmdx-status-tile{grid-column:1/3}.cmdx-pulse-row{grid-template-columns:repeat(2,1fr)}.cmdx-grid{grid-template-columns:1fr;grid-template-areas:"flow" "capacity" "finance" "clinical" "alerts" "actions"}.cmdx-finance-grid{grid-template-columns:1fr 1fr}.cmdx-trust{grid-template-columns:1fr 1fr}.cmdx-capacity-body{grid-template-columns:1fr}.cmdx-donut{margin:auto}}
@media (max-width:720px){.cmdx-situation,.cmdx-pulse-row,.cmdx-finance-grid,.cmdx-clinical-top,.cmdx-trust{grid-template-columns:1fr}.cmdx-status-tile{grid-column:auto;grid-template-columns:1fr}.cmdx-flow-line{grid-template-columns:1fr}.cmdx-specialties li{grid-template-columns:28px 1fr auto}.cmdx-specialties i{display:none}.cmdx-trust div{border-inline-start:0;border-top:1px solid var(--cmd-line)}}
