/* Shared admin workspace: calm surfaces, strong hierarchy, responsive data. */
:root { --primary:#2563eb; --primary-dark:#1d4ed8; --primary-light:#eff6ff; --bg:#f5f7fb; --text:#172b4d; --muted:#52647e; --faint:#64748b; --border:#e2e8f0; }
body { background:var(--bg); }
.as-link-ico,.bnav-ico { color:inherit; }
button,input,select,textarea { font:inherit; }
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,[role=button]:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
.app-toolbar { box-shadow:none; border-bottom:1px solid #e2e8f0; }
.app-sidebar { background:#122238; }
.as-link { border-radius:9px; min-height:42px; width:calc(100% - 24px); text-align:left; border:0; background:transparent; font:inherit; cursor:pointer; }
.as-link.active { background:#243f62; border-color:#669cfa; }
.as-section-label { letter-spacing:.12em; }
.as-brand-mark { background:#2563eb; border-radius:10px; }
.screen .topbar { background:#fff; border-bottom:1px solid var(--border); padding:20px 24px; }
.screen .topbar-title { color:#172b4d; font-size:19px; letter-spacing:-.025em; }
.screen .topbar-sub,.screen .topbar-back { color:#52647e; font-size:12px; }
.screen .topbar-icon { background:#edf2fa; color:#172b4d; }
.card { box-shadow:0 2px 6px #172b4d04; border-color:var(--border); }
.btn { border-radius:9px; min-height:40px; }
#sc-dashboard .dash-header { background:#fff; color:#172b4d; padding:22px 28px 18px; border-bottom:1px solid var(--border); }
#sc-dashboard .dash-greeting { color:#172b4d; font-size:22px; letter-spacing:-.03em; }
#sc-dashboard .dash-sub { color:#52647e; font-size:12px; }
#sc-dashboard .dash-role-badge { background:#eff6ff; color:#1d4ed8; border:1px solid #dbeafe; }
#sc-dashboard #dash-date-line { color:#52647e!important; font-size:12px!important; }
#sc-dashboard .topbar-icon { background:#f1f5f9; color:#172b4d; }
#sc-dashboard .scroll { background:var(--bg); }
#sc-dashboard #dash-root { padding:28px; max-width:1660px; margin:auto; width:100%; color:#172b4d; }
.ov-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.ov-eyebrow { color:#2563eb; font-size:10px; font-weight:800; letter-spacing:.16em; }
.ov-toolbar h1 { font-size:clamp(23px,2.3vw,32px); letter-spacing:-.045em; line-height:1.25; margin:7px 0; font-weight:700; }
.ov-toolbar p,.ov-card-head p { color:#52647e; font-size:12px; margin-top:5px; }
.ov-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ov-controls label,.ov-metric { color:#52647e; font-size:11px; font-weight:600; }
.ov-controls select,.ov-metric select { min-height:38px; background:#fff; border:1px solid #d7dfeb; border-radius:8px; padding:7px 28px 7px 10px; color:#172b4d; max-width:240px; font-size:12px; }
.ov-btn { min-height:38px; border:1px solid #d7dfeb; border-radius:8px; background:white; color:#254976; padding:8px 12px; font-size:12px; font-weight:600; cursor:pointer; }
.ov-btn:hover { border-color:#93b4eb; background:#f5f9ff; }
.ov-btn:disabled { opacity:.6; cursor:wait; }
.ov-sync { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:11px; color:#52647e; margin-bottom:18px; }
.ov-sync.error { border:1px solid #fed7aa; border-radius:8px; padding:10px; background:#fff7ed; color:#9a3412; }
.ov-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.ov-kpi { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:21px; box-shadow:0 2px 4px #172b4d03; }
.ov-kpi.accent { background:#eff5ff; border-color:#cedffb; }
.ov-kpi-label { font-size:12px; color:#52647e; font-weight:600; }
.ov-kpi strong { display:block; font-size:clamp(27px,2.4vw,36px); font-weight:650; line-height:1.35; letter-spacing:-.05em; margin:10px 0 8px; font-variant-numeric:tabular-nums; }
.ov-kpi.accent strong { color:#1d4ed8; }
.ov-kpi p { color:#52647e; font-size:11px; line-height:1.5; }
.ov-main-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr); gap:20px; margin-bottom:20px; align-items:start; }
.ov-secondary-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:20px; margin-bottom:20px; }
.ov-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:22px; min-width:0; box-shadow:0 2px 4px #172b4d03; }
#dash-root>.ov-card { margin-bottom:20px; }
.ov-card-head { display:flex; align-items:start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.ov-card-head h2 { font-size:15px; font-weight:700; letter-spacing:-.02em; }
.ov-segments { display:flex; background:#f1f5f9; border:1px solid #e2e8f0; padding:3px; border-radius:8px; }
.ov-segments button { border:0; background:transparent; color:#52647e; border-radius:5px; min-height:32px; padding:5px 10px; font-size:11px; font-weight:600; cursor:pointer; }
.ov-segments button[aria-pressed=true] { background:white; color:#1d4ed8; box-shadow:0 1px 4px #172b4d15; }
.ov-chart-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
.ov-chart-summary>strong { font-size:30px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.ov-chart-summary>span { color:#52647e; font-size:11px; }
.ov-metric { margin-left:auto; display:flex; align-items:center; gap:6px; }
.ov-chart { width:100%; overflow-x:auto; margin-top:10px; }
.ov-chart svg { width:100%; min-width:420px; display:block; }
.ov-chart text { fill:#52647e; font:11px system-ui,sans-serif; }
.ov-chart-data { border-top:1px solid #edf1f6; padding-top:12px; margin-top:8px; }
.ov-chart-data summary { color:#28578f; font-size:12px; cursor:pointer; min-height:32px; padding:4px 0; }
.ov-empty-chart { min-height:230px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:8px; color:#52647e; background:linear-gradient(#fff,#f8fafc); border-radius:8px; margin:12px 0; }
.ov-empty-chart p,.ov-note { font-size:11px; line-height:1.6; color:#52647e; }
.ov-note { margin-top:14px; }
.ov-label { font-size:10px; color:#52647e; border:1px solid #e2e8f0; padding:4px 7px; border-radius:6px; }
.ov-action { display:flex; width:100%; text-align:left; align-items:center; gap:12px; border:0; border-top:1px solid #edf1f6; background:white; padding:17px 0; cursor:pointer; color:#172b4d; }
.ov-action>span:nth-child(2) { flex:1; }
.ov-action b { font-size:12px; display:block; }
.ov-action small { display:block; font-size:11px; color:#52647e; margin-top:3px; }
.ov-action-count { min-width:36px; padding:7px; background:#eff6ff; color:#2563eb; font-weight:700; text-align:center; border-radius:9px; }
.ov-action.urgent .ov-action-count { background:#fff1ed; color:#b93815; }
.ov-action:hover b { color:#2563eb; }
.ov-action-links { display:flex; flex-wrap:wrap; gap:8px; border-top:1px solid #edf1f6; padding-top:16px; }
.ov-breakdown { display:grid; grid-template-columns:1fr auto; gap:7px; margin:14px 0; font-size:12px; }
.ov-breakdown b { font-variant-numeric:tabular-nums; }
.ov-breakdown small { color:#52647e; font-weight:400; }
.ov-breakdown>div,.ov-network-track { grid-column:1/-1; height:6px; border-radius:8px; background:#f0f3f8; overflow:hidden; }
.ov-breakdown i,.ov-network-track i { display:block; height:100%; background:#2563eb; border-radius:8px; }
.ov-network>strong { font-size:48px; line-height:1.3; font-weight:600; letter-spacing:-.05em; }
.ov-network>strong span { font-size:25px; color:#64748b; }
.ov-network>p { font-size:12px; color:#52647e; }
.ov-network-track { margin:22px 0 12px; height:9px; }
.ov-network-track i { background:#059669; }
.ov-network .ov-btn { margin-top:20px; }
.ov-table-scroll { overflow-x:auto; }
.ov-card table { border-collapse:collapse; width:100%; font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ov-card th,.ov-card td { text-align:left; padding:14px 12px; border-bottom:1px solid #edf1f6; }
.ov-card thead th { background:#f8fafc; color:#52647e; font-size:11px; font-weight:600; }
.ov-card tbody th { font-weight:500; }
.ov-card tbody tr:hover { background:#f9fbff; }
.ov-card th small { display:block; color:#52647e; font-size:10px; font-weight:400; margin-top:4px; }
.ov-card caption { text-align:left; padding:10px; }
.ov-center-link { background:none; border:0; color:#254976; font-size:12px; font-weight:650; cursor:pointer; padding:0; min-height:30px; }
.ov-status { background:#f1f5f9; color:#52647e; border-radius:6px; padding:4px 8px; font-size:10px; font-weight:600; }
.ov-status.open { background:#eaf8f1; color:#087747; }
.ov-recent { display:flex; justify-content:space-between; gap:10px; padding:14px 0; border-top:1px solid #edf1f6; font-size:12px; }
.ov-recent small { display:block; color:#52647e; font-size:11px; margin-top:4px; }
.ov-recent>span { color:#52647e; }
.ov-empty { padding:20px 4px; color:#52647e; font-size:12px; }
.ov-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(min-width:1024px) { body.has-desktop-sidebar .app { min-width:0; } #sc-dashboard .dash-header { display:none; } .app-sidebar { width:224px; } }
@media(max-width:1250px) { .ov-toolbar { align-items:start; flex-direction:column; } .ov-main-grid { grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr); } .ov-kpi { padding:16px; } }
@media(max-width:1000px) { .ov-main-grid { grid-template-columns:1fr; } .ov-secondary-grid { grid-template-columns:1fr 1fr; } .ov-secondary-grid>.ov-card:first-child { grid-row:span 2; } .ov-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { body { padding:0; } .app { width:100%; max-width:none; border-radius:0; box-shadow:none; margin:0; } #dash-root { padding:16px; } .ov-toolbar h1 { font-size:24px; } .ov-controls { width:100%; } #ov-center { flex:1; min-width:0; } .ov-secondary-grid { grid-template-columns:1fr; } .ov-kpis { gap:10px; } .ov-kpi { padding:15px 12px; } .ov-kpi strong { font-size:27px; } .ov-card { padding:17px; } .ov-sync span { display:none; } .ov-metric { margin-left:0; } .ov-card-head { gap:14px; } .ov-chart-summary { align-items:center; } .ov-controls select { max-width:100%; } }
@media(max-width:767px) { #sc-dashboard #dash-root { padding:16px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
