/* DASHBOARD (2026-10-23 redesign, "02 FINAL"). Everything is scoped to the dashboard's own markup (.dash-*). The shell's filter bar
   and the page's actions share one white bar on wide screens: main becomes a grid only while the dashboard is drawn. */
@supports selector(:has(*)){
 main:has(> #content > .dash-top){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
 main:has(> #content > .dash-top)>*,main:has(> #content > .dash-top) #content>*{grid-column:1/-1}
 main:has(> #content > .dash-top)>#content{display:contents}
 main:has(> #content > .dash-top)>.report-tools{grid-row:1}
 main:has(> #content > .dash-top)>#message{grid-row:2}
 main:has(> #content > .dash-top)>.filters{grid-row:3;grid-column:1;border-right:0;border-radius:12px 0 0 12px}
 main:has(> #content > .dash-top) #content>.dash-top{grid-row:3;grid-column:2;margin:0 0 20px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-left:0;border-radius:0 12px 12px 0;box-shadow:0 1px 2px rgba(16,24,40,.04);align-items:flex-end}
 main:has(> #content > .dash-top) #pageDesc{display:none}
 main:has(> #content > .dash-top) .report-tools .crumbs b{font-size:24px;line-height:1.2;letter-spacing:-.4px;font-weight:700}
 @media(min-width:701px){main:has(> #content > .dash-top)>.filters{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}}
 @media(max-width:1180px){
  main:has(> #content > .dash-top)>.filters{grid-column:1/-1;border-right:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;margin-bottom:0;box-shadow:none}
  main:has(> #content > .dash-top) #content>.dash-top{grid-row:4;grid-column:1/-1;border:1px solid var(--line);border-top:1px dashed var(--line);border-radius:0 0 12px 12px;justify-content:flex-end;padding:12px 16px}
 }
}
.dash-top{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin:0 0 16px}
.dash-top .ui-btn{min-height:40px}
@media(max-width:560px){.dash-top .ui-btn{flex:1 1 0;padding:9px 10px}}

/* notices */
.dash-alert{margin:0 0 16px;align-items:center}
.dash-alert .ui-alert-icon{margin-top:0}
.dash-alert .ui-alert-body{color:var(--ui-ink);font-weight:500}
.dash-alert .ui-alert-x{font-size:20px;width:30px;height:30px;color:var(--ui-ink)}
.dash-alert .ui-alert-x:focus-visible{outline:none;box-shadow:var(--ui-focus)}

/* the 4 dark headline cards */
.dash-kpis{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px}
.dash-kpi{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;padding:18px 18px 20px;border-radius:12px;color:#fff;background:linear-gradient(160deg,var(--ui-kpi-2),var(--ui-kpi));box-shadow:0 2px 6px rgba(16,26,58,.18)}
.dash-kpi>div{min-width:0}
.dash-kpi>div>span{display:block;font-size:13.5px;font-weight:600;color:#DCE1F5;line-height:1.35}
.dash-kpi strong{display:block;margin-top:8px;font-size:30px;line-height:1.15;font-weight:700;letter-spacing:-.5px;color:#fff;overflow-wrap:anywhere}
.dash-kpi strong small{font-size:12px;font-weight:500;color:#AEB7D6;letter-spacing:0}
.dash-kpi-ic{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;flex:none;background:rgba(129,140,248,.24);color:#C7CCFF}
.dash-kpi-ic svg,.dash-stat-ic svg,.dash-head-ic svg,.dash-group-title svg,.dash-sub-head svg,.dash-quiet-ic svg,.dash-att-go svg,.dash-toggle svg,.dash-top svg,.dash-card-head .ui-btn svg,.dash-sub-foot svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dash-kpi-ic svg{width:22px;height:22px}

/* All metrics */
.dash-metrics{padding:18px 20px 20px}
.dash-metrics-head.metrics-bar{padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.dash-metrics-head>div{min-width:0}
.dash-card-title{display:flex;align-items:center;gap:10px;margin:0;font-size:18px;line-height:1.3;font-weight:700;color:var(--ui-ink);letter-spacing:-.2px}
.dash-card-title .ui-info{margin-left:-2px}
.dash-scope{display:block;margin-top:3px;font-size:12.5px;color:var(--ui-muted)}
.dash-toggle{font-size:13.5px;gap:6px;padding:4px 2px}
.dash-toggle svg{width:16px;height:16px;stroke-width:2.2}
.dash-toggle:focus-visible,.dash-view-all:focus-visible,.dash-day:focus-visible,.dash-sub-foot .ui-btn:focus-visible{outline:none;box-shadow:var(--ui-focus);border-radius:6px}
.dash-groups{margin-top:6px}
.dash-group-title{display:flex;align-items:center;gap:10px;margin:18px 0 10px;font-size:15px;font-weight:700;color:var(--ui-ink)}
.dash-group-title>span{display:inline-grid;color:var(--ui-accent)}
.dash-group-title svg{width:20px;height:20px}
.dash-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,138px),1fr))}
.dash-stat{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:14px 12px 14px 14px;background:#fff;border:1px solid var(--ui-border);border-radius:10px;box-shadow:var(--ui-shadow)}
.dash-stat>div{min-width:0}
.dash-stat>div>span{display:block;font-size:12.5px;line-height:1.3;color:var(--ui-text)}
.dash-stat strong{display:block;margin-top:6px;font-size:21px;line-height:1.2;font-weight:700;letter-spacing:-.3px;color:var(--ui-ink);overflow-wrap:anywhere}
.dash-stat strong small{font-size:11px;font-weight:500;color:var(--ui-muted);letter-spacing:0}
.dash-stat-ic{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;flex:none}
.dash-stat-ic svg{width:19px;height:19px}

/* work sections */
.dash-ctx{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:2px}
.dash-card{margin:0;padding:18px 20px 20px}
.dash-load.is-solo,.dash-up{grid-column:1/-1}
.dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;margin:0 0 14px}
.dash-head-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none}
.dash-head-ic svg{width:18px;height:18px}
.dash-card-head .ui-btn svg{width:16px;height:16px;stroke-width:2}
.dash-load-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--ui-border);border-radius:10px;padding:14px 0}
.dash-load-nums>div{min-width:0;padding:2px 16px;border-left:1px solid var(--ui-border)}
.dash-load-nums>div:first-child{border-left:0}
.dash-load-nums span{display:block;font-size:13px;color:var(--ui-text)}
.dash-load-nums strong{display:block;margin-top:4px;font-size:24px;line-height:1.2;font-weight:700;color:var(--ui-ink);overflow-wrap:anywhere}
.dash-load-nums small{display:block;margin-top:2px;font-size:12px;color:var(--ui-muted)}
.dash-load-nums .is-over strong,.dash-load-nums .is-over small{color:var(--ui-bad)}
.dash-load-nums .is-free strong{color:var(--ui-ok)}
.dash-bar{margin-top:14px}
.dash-quiet{display:flex;align-items:center;gap:12px;padding:14px;border:1px dashed var(--ui-border-strong);border-radius:10px;color:var(--ui-muted);font-size:13.5px}
.dash-quiet-ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none}
.dash-quiet-ic svg{width:17px;height:17px}
.dash-att-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.dash-att-item{display:flex;align-items:center;gap:14px;width:100%;text-align:left;font:inherit;background:#fff;border:1px solid var(--ui-border);border-radius:10px;padding:12px 14px;color:var(--ui-text);cursor:pointer;transition:border-color .12s,background .12s}
.dash-att-item:hover{border-color:#B8BFCC;background:var(--ui-surface-2)}
.dash-att-item:focus-visible{outline:none;border-color:var(--ui-accent);box-shadow:var(--ui-focus)}
.dash-att-ic{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff;background:#F79009}
.dash-att-ic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.dash-att-ic.is-bad{background:#D92D20}.dash-att-ic.is-neutral{background:#98A2B3}
.dash-att-text{flex:1;min-width:0}
.dash-att-text b{display:block;color:var(--ui-ink);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.dash-att-text small{display:block;margin-top:2px;color:var(--ui-muted);font-size:12.5px;overflow-wrap:anywhere}
.dash-att-go{display:inline-grid;color:var(--ui-faint)}.dash-att-go svg{width:18px;height:18px}
.dash-checking{padding:12px 2px 0}
.dash-up-two{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px}
/* the two tables sit side by side only when the sessions table fits without its own scrollbar */
@supports (container-type:inline-size){.dash-up{container-type:inline-size}@container (max-width:1000px){.dash-up-two{grid-template-columns:1fr}}}
.dash-table th,.dash-table td{padding:10px 11px}
.dash-sub{min-width:0;border:1px solid var(--ui-border);border-radius:10px;padding:14px}
.dash-sub-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.dash-sub-head h3{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:700;color:var(--ui-ink)}
.dash-sub-head h3>span{display:inline-grid;color:var(--ui-accent)}
.dash-sub-head svg{width:19px;height:19px}
.dash-view-all{font-size:13.5px}
.dash-table td{vertical-align:top}
.dash-cell-sub{display:block;color:var(--ui-muted);font-size:12px}
.dash-day{font-size:13.5px;font-weight:600;padding:0;white-space:nowrap}
.dash-sub-foot{margin-top:10px}
.dash-sub-foot .ui-btn{font-size:13.5px;gap:6px}
.dash-sub-foot svg{width:15px;height:15px;stroke-width:2}

/* tablet */
@media(max-width:1100px){
 .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-up-two{grid-template-columns:1fr}
}
@media(max-width:900px){.dash-ctx{grid-template-columns:1fr}}
/* phone */
@media(max-width:640px){
 .dash-kpis{gap:10px}
 .dash-kpi{padding:14px}
 .dash-kpi>div>span{font-size:12.5px}
 .dash-kpi strong{font-size:23px}
 .dash-kpi-ic{width:34px;height:34px;border-radius:8px}.dash-kpi-ic svg{width:18px;height:18px}
 .dash-metrics,.dash-card{padding:16px}
 .dash-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-stat{padding:12px 10px 12px 12px}
 .dash-stat strong{font-size:19px}
 .dash-stat-ic{width:30px;height:30px;border-radius:8px}.dash-stat-ic svg{width:16px;height:16px}
 .dash-load-nums{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 0}
 .dash-load-nums>div{padding:10px 14px}
 .dash-load-nums>div:nth-child(3){border-left:0}
 .dash-load-nums>div:nth-child(n+3){border-top:1px solid var(--ui-border)}
 .dash-sub{padding:12px 10px}
 .dash-table.ui-table--stack td{padding:4px 12px}
}
@media(max-width:360px){.dash-kpis{grid-template-columns:1fr}}
@media(max-width:640px){.dash-table.ui-table--stack .dash-cell{text-align:right}}
@media(max-width:900px){.dash-table:not(.ui-table--stack) th,.dash-table:not(.ui-table--stack) td,.dash-table th,.dash-table td{padding:8px 9px}}
@media(max-width:720px){.dash-table .ui-nowrap,.dash-table th{white-space:normal}}
@media(max-width:640px){.dash-table.ui-table--stack td{padding:4px 12px}}
@media(max-width:400px){.dash-table th{white-space:normal}.dash-day{white-space:normal;text-align:left}}
