/* =====================================================================
   OPERATION ACTIVITY — Design System
   Navy • White • Orange Accent • Light Gray   |  Light & Dark theme
   ===================================================================== */

:root{
  /* Brand */
  --navy-900:#081B33; --navy-800:#0E2440; --navy-700:#123256; --navy-600:#17406E;
  --navy-500:#1E5288; --navy-100:#E4EBF4;
  --orange-600:#EA6A08; --orange-500:#F97316; --orange-400:#FB923C; --orange-100:#FFF1E5;

  /* Neutral / surface */
  --bg:#F1F4F9; --surface:#FFFFFF; --surface-2:#F7F9FC; --surface-3:#EDF1F7;
  --border:#DDE4EE; --border-strong:#C6D0DF;
  --text:#16233A; --text-2:#54617A; --text-3:#8A94A8;

  /* Status */
  --green:#16A34A;  --green-bg:#E7F6EC;
  --blue:#2563EB;   --blue-bg:#E7EEFD;
  --yellow:#CA8A04; --yellow-bg:#FDF4DC;
  --red:#DC2626;    --red-bg:#FCE9E9;
  --grey:#64748B;   --grey-bg:#EEF1F6;
  --orange:#EA580C; --orange-bg:#FFEDE0;

  --sidebar-w:252px; --sidebar-w-sm:72px; --topbar-h:60px;
  --radius:12px; --radius-sm:8px; --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(16,32,60,.06), 0 1px 3px rgba(16,32,60,.05);
  --shadow:0 2px 8px rgba(16,32,60,.07), 0 8px 24px rgba(16,32,60,.06);
  --shadow-lg:0 12px 40px rgba(16,32,60,.16);
  --font:'Inter','Segoe UI',system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --link:#17406E;
}

html[data-theme="dark"]{
  --bg:#0A111E; --surface:#121C2E; --surface-2:#182437; --surface-3:#1E2C42;
  --border:#26344C; --border-strong:#33455F;
  --text:#E7EEF9; --text-2:#A3B0C6; --text-3:#77869E;
  --navy-800:#0D1626; --navy-700:#132239; --navy-100:#1B2A42;
  --green-bg:#0F2A1C; --blue-bg:#11203C; --yellow-bg:#2B2410; --red-bg:#2E1517;
  --grey-bg:#1C2739; --orange-bg:#2E1D0F;
  --green:#4ADE80; --blue:#60A5FA; --yellow:#FACC15; --red:#F87171; --grey:#94A3B8; --orange:#FB923C;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 2px 10px rgba(0,0,0,.4);
  --shadow-lg:0 16px 48px rgba(0,0,0,.55);
  --link:#93B4E0;
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;font-family:var(--font);font-size:14px;line-height:1.5;
  background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4,h5{margin:0;font-weight:650;letter-spacing:-.01em;color:var(--text)}
svg{flex:none}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px}
::-webkit-scrollbar-track{background:transparent}

/* ------------------------------ LAYOUT ------------------------------ */
.app{display:flex;min-height:100vh}

.sidebar{
  width:var(--sidebar-w);flex:none;background:var(--navy-800);color:#C9D6E8;
  display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:60;
  transition:transform .22s ease;border-right:1px solid rgba(255,255,255,.06);
}
.sidebar__brand{
  height:var(--topbar-h);display:flex;align-items:center;gap:10px;padding:0 16px;
  border-bottom:1px solid rgba(255,255,255,.08);flex:none;
}
.brand__logo{
  width:34px;height:34px;border-radius:9px;flex:none;
  background:linear-gradient(135deg,var(--orange-500),var(--orange-600));
  display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;letter-spacing:.5px;
}
.brand__text{display:flex;flex-direction:column;line-height:1.15;overflow:hidden}
.brand__text b{color:#fff;font-size:13.5px;letter-spacing:.02em;white-space:nowrap}
.brand__text span{font-size:10.5px;color:#8FA3BE;white-space:nowrap}

.sidebar__nav{flex:1;overflow-y:auto;padding:12px 10px 20px}
.nav__label{
  font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:#63799A;padding:14px 10px 6px;
}
.nav__item{
  display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:9px;
  color:#C2D0E4;font-size:13.5px;font-weight:500;margin-bottom:2px;position:relative;
}
.nav__item:hover{background:rgba(255,255,255,.07);color:#fff;text-decoration:none}
.nav__item.active{background:linear-gradient(90deg,rgba(249,115,22,.22),rgba(249,115,22,.06));color:#fff;font-weight:600}
.nav__item.active::before{content:"";position:absolute;left:-10px;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:var(--orange-500)}
.nav__item .badge{margin-left:auto}
.sidebar__foot{padding:12px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#63799A}

.main{flex:1;min-width:0;margin-left:var(--sidebar-w);display:flex;flex-direction:column}

.topbar{
  height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:12px;padding:0 18px;position:sticky;top:0;z-index:50;
}
.topbar__title{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar__spacer{flex:1}

.quicksearch{position:relative;max-width:340px;flex:1;min-width:0}
.quicksearch input{
  width:100%;height:36px;border-radius:9px;border:1px solid var(--border);background:var(--surface-2);
  padding:0 12px 0 34px;font:inherit;font-size:13px;color:var(--text);
}
.quicksearch input:focus{outline:none;border-color:var(--orange-400);box-shadow:0 0 0 3px var(--orange-100)}
.quicksearch svg{position:absolute;left:10px;top:9px;color:var(--text-3)}
.quicksearch kbd{
  position:absolute;right:8px;top:8px;font-size:10px;padding:2px 5px;border-radius:5px;
  background:var(--surface-3);border:1px solid var(--border);color:var(--text-3);font-family:var(--font)
}

.content{padding:20px;flex:1}
.page-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.page-head h1{font-size:20px}
.page-head p{margin:3px 0 0;color:var(--text-2);font-size:13px}
.page-head .spacer{flex:1}

/* ------------------------------ BUTTONS ----------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;height:37px;padding:0 14px;
  border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);
  font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;
  transition:background .15s,border-color .15s,transform .08s,box-shadow .15s;
}
.btn:hover{background:var(--surface-3);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--navy-700);border-color:var(--navy-700);color:#fff}
.btn--primary:hover{background:var(--navy-600);border-color:var(--navy-600)}
.btn--accent{background:var(--orange-500);border-color:var(--orange-500);color:#fff}
.btn--accent:hover{background:var(--orange-600);border-color:var(--orange-600)}
.btn--danger{background:var(--red);border-color:var(--red);color:#fff}
.btn--danger:hover{filter:brightness(.94)}
.btn--ghost{background:transparent;border-color:transparent;color:var(--text-2)}
.btn--ghost:hover{background:var(--surface-3);color:var(--text)}
.btn--sm{height:31px;padding:0 10px;font-size:12.5px;border-radius:8px}
.btn--icon{width:37px;padding:0}
.btn--icon.btn--sm{width:31px}
.btn[disabled]{opacity:.5;pointer-events:none}

/* ------------------------------ CARDS ------------------------------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.card__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}
.card__head h3{font-size:14px}
.card__head .spacer{flex:1}
.card__body{padding:16px}
.card__foot{padding:12px 16px;border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 var(--radius) var(--radius)}

.grid{display:grid;gap:16px}
.grid--kpi{grid-template-columns:repeat(auto-fill,minmax(196px,1fr))}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid--form{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

/* KPI */
.kpi{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:15px 16px;display:flex;gap:13px;align-items:flex-start;box-shadow:var(--shadow-sm);
  position:relative;overflow:hidden;transition:transform .15s,box-shadow .15s;
}
.kpi:hover{transform:translateY(-2px);box-shadow:var(--shadow);text-decoration:none}
.kpi__icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:none}
.kpi__label{display:block;font-size:11.5px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:.05em}
.kpi__value{display:block;font-size:26px;font-weight:750;line-height:1.15;margin-top:2px;letter-spacing:-.02em}
.kpi__sub{display:block;font-size:11.5px;color:var(--text-3);margin-top:2px}

.tone-green{color:var(--green);background:var(--green-bg)}
.tone-blue{color:var(--blue);background:var(--blue-bg)}
.tone-yellow{color:var(--yellow);background:var(--yellow-bg)}
.tone-red{color:var(--red);background:var(--red-bg)}
.tone-grey{color:var(--grey);background:var(--grey-bg)}
.tone-orange{color:var(--orange);background:var(--orange-bg)}
.tone-navy{color:var(--navy-600);background:var(--navy-100)}
html[data-theme="dark"] .tone-navy{color:#93B4E0}

/* ------------------------------ BADGES ------------------------------ */
.badge{
  display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:999px;
  font-size:11.5px;font-weight:650;white-space:nowrap;letter-spacing:.01em;
}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.badge--plain::before{display:none}
.badge--lg{height:26px;padding:0 11px;font-size:12.5px}

/* ------------------------------ TABLE ------------------------------- */
.tablewrap{overflow:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);max-width:100%}
table.data{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:720px}
table.data thead th{
  position:sticky;top:0;z-index:5;background:var(--surface-3);color:var(--text-2);
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  padding:10px 12px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--border);
}
table.data thead th a{color:inherit;display:inline-flex;align-items:center;gap:4px}
table.data thead th a:hover{color:var(--orange-500);text-decoration:none}
table.data tbody td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
table.data tbody tr:hover{background:var(--surface-2)}
table.data tbody tr:last-child td{border-bottom:none}
table.data td.num{text-align:right;font-variant-numeric:tabular-nums}
table.data .sticky-col{position:sticky;left:0;background:var(--surface);z-index:4}
table.data tbody tr:hover .sticky-col{background:var(--surface-2)}
.cell-strong{font-weight:650}
.cell-muted{color:var(--text-3);font-size:12px}
.nowrap{white-space:nowrap}
.truncate{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}

.prio-bar{width:3px;height:26px;border-radius:2px;display:inline-block;vertical-align:middle;margin-right:7px}

/* SLA */
.sla{display:flex;align-items:center;gap:7px;min-width:96px}
.sla__track{flex:1;height:6px;border-radius:99px;background:var(--surface-3);overflow:hidden;min-width:52px}
.sla__fill{height:100%;border-radius:99px;background:var(--navy-500)}
.sla__fill.is-full{background:var(--green)}
.sla__fill.is-low{background:var(--red)}
.sla__num{font-size:11.5px;color:var(--text-2);font-variant-numeric:tabular-nums;width:30px;text-align:right}

/* ------------------------------ FORMS ------------------------------- */
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;min-width:0}
.field > label{font-size:12px;font-weight:650;color:var(--text-2)}
.field .hint{font-size:11.5px;color:var(--text-3)}
.req{color:var(--red)}
.input,select.input,textarea.input{
  width:100%;min-height:38px;border-radius:9px;border:1px solid var(--border);background:var(--surface);
  padding:8px 11px;font:inherit;font-size:13.5px;color:var(--text);transition:border-color .15s,box-shadow .15s;
}
textarea.input{min-height:84px;resize:vertical;line-height:1.55}
select.input{
  appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2354617A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;padding-right:30px;
}
.input:focus{outline:none;border-color:var(--orange-400);box-shadow:0 0 0 3px var(--orange-100)}
html[data-theme="dark"] .input:focus{box-shadow:0 0 0 3px rgba(249,115,22,.18)}
.input[readonly]{background:var(--surface-3);color:var(--text-2)}
.checkline{display:flex;align-items:center;gap:8px;font-size:13.5px;cursor:pointer}
.checkline input{width:16px;height:16px;accent-color:var(--orange-500);cursor:pointer}

fieldset.group{border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin:0 0 18px}
fieldset.group > legend{
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--orange-600);
  padding:0 8px;
}

/* ------------------------------ FILTERS ----------------------------- */
.filterbar{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.filterbar .field{margin:0;min-width:150px;flex:1 1 150px}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.chip{
  display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 6px 0 10px;border-radius:999px;
  background:var(--navy-100);color:var(--navy-600);font-size:12px;font-weight:600;
}
html[data-theme="dark"] .chip{color:#9CC0EE}
.chip a{color:inherit;opacity:.65;display:grid;place-items:center;width:16px;height:16px;border-radius:50%}
.chip a:hover{opacity:1;background:rgba(0,0,0,.08);text-decoration:none}

/* --------------------------- PAGINATION ----------------------------- */
.pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 2px}
.pager__info{color:var(--text-2);font-size:12.5px}
.pager__list{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.pager__list a,.pager__list span{
  min-width:33px;height:33px;padding:0 9px;border-radius:8px;border:1px solid var(--border);
  display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;
  background:var(--surface);color:var(--text-2);
}
.pager__list a:hover{background:var(--surface-3);text-decoration:none;color:var(--text)}
.pager__list .is-active{background:var(--navy-700);border-color:var(--navy-700);color:#fff}
.pager__list .is-disabled{opacity:.4;pointer-events:none}

/* ------------------------------ ALERTS ------------------------------ */
.alert{display:flex;gap:10px;padding:12px 14px;border-radius:var(--radius-sm);font-size:13.5px;margin-bottom:14px;border:1px solid transparent}
.alert--success{background:var(--green-bg);color:var(--green);border-color:color-mix(in srgb,var(--green) 25%,transparent)}
.alert--danger{background:var(--red-bg);color:var(--red);border-color:color-mix(in srgb,var(--red) 25%,transparent)}
.alert--warning{background:var(--yellow-bg);color:var(--yellow);border-color:color-mix(in srgb,var(--yellow) 25%,transparent)}
.alert--info{background:var(--blue-bg);color:var(--blue);border-color:color-mix(in srgb,var(--blue) 25%,transparent)}

/* ------------------------------ TOAST ------------------------------- */
#toasts{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{
  min-width:250px;max-width:340px;background:var(--surface);border:1px solid var(--border);
  border-left:3px solid var(--navy-600);border-radius:var(--radius-sm);padding:11px 13px;
  box-shadow:var(--shadow-lg);font-size:13px;animation:slidein .22s ease;
}
.toast.is-success{border-left-color:var(--green)}
.toast.is-danger{border-left-color:var(--red)}
.toast.is-warning{border-left-color:var(--yellow)}
@keyframes slidein{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}

/* ------------------------------ TIMELINE ---------------------------- */
.timeline{position:relative;padding-left:24px}
.timeline::before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--border)}
.tl-item{position:relative;padding:0 0 16px}
.tl-item:last-child{padding-bottom:0}
.tl-dot{position:absolute;left:-22px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--navy-500);border:2px solid var(--surface);box-shadow:0 0 0 2px var(--border)}
.tl-item.is-green .tl-dot{background:var(--green)}
.tl-item.is-red .tl-dot{background:var(--red)}
.tl-item.is-yellow .tl-dot{background:var(--yellow)}
.tl-item.is-orange .tl-dot{background:var(--orange)}
.tl-title{font-size:13.5px;font-weight:600}
.tl-meta{font-size:11.5px;color:var(--text-3);margin-top:1px}

/* ---------------------------- STEPPER ------------------------------- */
.stepper{display:flex;gap:0;overflow-x:auto;padding-bottom:6px}
.step{flex:1;min-width:104px;text-align:center;position:relative;padding-top:26px;font-size:11.5px;color:var(--text-3)}
.step::before{content:"";position:absolute;top:8px;left:0;right:0;height:3px;background:var(--surface-3)}
.step::after{content:"";position:absolute;top:3px;left:50%;transform:translateX(-50%);width:13px;height:13px;border-radius:50%;background:var(--surface-3);border:2px solid var(--surface)}
.step.is-done{color:var(--text-2)}
.step.is-done::before{background:var(--green)}
.step.is-done::after{background:var(--green)}
.step.is-current{color:var(--orange-600);font-weight:700}
.step.is-current::after{background:var(--orange-500);box-shadow:0 0 0 4px var(--orange-100)}
.step:first-child::before{left:50%}
.step:last-child::before{right:50%}

/* ------------------------------ DETAIL ------------------------------ */
.dl{display:grid;grid-template-columns:minmax(120px,34%) 1fr;gap:0}
.dl dt{padding:7px 0;font-size:12.5px;color:var(--text-3);border-bottom:1px dashed var(--border)}
.dl dd{padding:7px 0;margin:0;font-size:13.5px;border-bottom:1px dashed var(--border);word-break:break-word}
.dl dt:last-of-type,.dl dd:last-of-type{border-bottom:none}

.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);overflow-x:auto;margin-bottom:16px}
.tab{padding:9px 14px;font-size:13.5px;font-weight:600;color:var(--text-2);border-bottom:2px solid transparent;white-space:nowrap;cursor:pointer;background:none;border-top:0;border-left:0;border-right:0;font-family:inherit}
.tab:hover{color:var(--text);text-decoration:none}
.tab.is-active{color:var(--orange-600);border-bottom-color:var(--orange-500)}

/* ---------------------------- DROPZONE ------------------------------ */
.dropzone{
  border:2px dashed var(--border-strong);border-radius:var(--radius);padding:26px;text-align:center;
  color:var(--text-2);background:var(--surface-2);transition:.15s;cursor:pointer;
}
.dropzone:hover,.dropzone.is-over{border-color:var(--orange-500);background:var(--orange-100);color:var(--orange-600)}
html[data-theme="dark"] .dropzone.is-over{background:var(--orange-bg)}
.filelist{display:grid;gap:8px;margin-top:12px}
.fileitem{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}
.fileitem .fi-name{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fileitem .fi-size{font-size:11.5px;color:var(--text-3)}

/* ---------------------------- DROPDOWN ------------------------------ */
.dropdown{position:relative}
.dropdown__menu{
  position:absolute;right:0;top:calc(100% + 6px);min-width:196px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);
  padding:6px;z-index:80;display:none;
}
.dropdown.is-open .dropdown__menu{display:block}
.dropdown__menu a,.dropdown__menu button{
  display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border-radius:8px;
  font-size:13px;color:var(--text);background:none;border:0;font-family:inherit;text-align:left;cursor:pointer;
}
.dropdown__menu a:hover,.dropdown__menu button:hover{background:var(--surface-3);text-decoration:none}
.dropdown__sep{height:1px;background:var(--border);margin:5px 2px}

/* --------------------------- NOTIFICATION --------------------------- */
.bell{position:relative}
.bell__dot{position:absolute;top:5px;right:5px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--orange-500);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center}
.notif-list{max-height:360px;overflow:auto}
.notif{display:flex;gap:9px;padding:10px;border-radius:8px}
.notif:hover{background:var(--surface-3);text-decoration:none}
.notif.is-unread{background:var(--orange-100)}
html[data-theme="dark"] .notif.is-unread{background:var(--orange-bg)}
.notif__title{font-size:13px;font-weight:600;color:var(--text)}
.notif__body{font-size:12px;color:var(--text-2)}
.notif__ago{font-size:11px;color:var(--text-3);margin-top:2px}

/* ------------------------------ AVATAR ------------------------------ */
.avatar{width:32px;height:32px;border-radius:9px;background:var(--navy-600);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.avatar--sm{width:26px;height:26px;font-size:10.5px;border-radius:7px}

/* ------------------------------- MISC ------------------------------- */
.empty{text-align:center;padding:44px 20px;color:var(--text-3)}
.empty svg{margin-bottom:10px;opacity:.5}
.empty h4{font-size:15px;color:var(--text-2);margin-bottom:4px}
.muted{color:var(--text-3)}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rating{display:inline-flex;gap:1px;color:var(--orange-500)}
.scrim{position:fixed;inset:0;background:rgba(8,20,38,.5);z-index:55;display:none}
.scrim.is-open{display:block}
.chart-box{position:relative;height:260px}
.chart-box--sm{height:210px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.divider{height:1px;background:var(--border);margin:14px 0}

/* ---------------------------- RESPONSIVE ---------------------------- */
.sidebar__toggle{display:none}
@media (max-width:1024px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.is-open{transform:none;box-shadow:var(--shadow-lg)}
  .main{margin-left:0}
  .sidebar__toggle{display:inline-flex}
  .quicksearch kbd{display:none}
}
@media (max-width:640px){
  .content{padding:14px}
  .page-head h1{font-size:18px}
  .grid--kpi{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:11px}
  .kpi{padding:12px}
  .kpi__value{font-size:21px}
  .kpi__icon{width:34px;height:34px;border-radius:9px}
  .dl{grid-template-columns:1fr}
  .dl dt{padding-bottom:0;border-bottom:none}
  .dl dd{padding-top:2px}
  .topbar{padding:0 12px;gap:6px}
  .hide-sm{display:none}
  .quicksearch{max-width:none}
  .topbar__title{display:none}
  .filterbar .field{flex:1 1 100%}
}

@media print{
  .sidebar,.topbar,.no-print,#toasts{display:none !important}
  .main{margin-left:0}
  body{background:#fff}
  .card{box-shadow:none;border-color:#ccc}
}
