/* Executive dashboards. */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-head .spacer { flex: 1; }
.dash-title { margin: 2px 0; font-size: var(--fs-20); font-weight: 600; letter-spacing: -.01em; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ind { display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.ind::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rag, var(--line-strong)); }
.ind.rag-green { --rag: var(--good); } .ind.rag-amber { --rag: var(--warn); } .ind.rag-red { --rag: var(--critical); }
.ind-head { display: flex; align-items: center; justify-content: space-between; }
.ind-name { font-size: var(--fs-13); color: var(--text-2); }
.ind-value { font-size: var(--fs-40); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ind-value .unit { font-size: var(--fs-14); color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.ind-foot { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-12); flex-wrap: wrap; }
.ind-chart { height: 72px; margin-top: 6px; }
.ind-chart.tall { height: 160px; }
.ind-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ind-detail { margin-top: 2px; }
.badge.rag-green { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.badge.rag-amber { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.rag-red { color: var(--critical); background: var(--brand-wash); }
.rag-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--neutral); }
.rag-dot.rag-green { background: var(--good); } .rag-dot.rag-amber { background: var(--warn); } .rag-dot.rag-red { background: var(--critical); box-shadow: 0 0 8px var(--brand-wash); }
.dash-grid { align-items: start; }
table.breakdown td { height: auto; padding: 10px 12px; }
table.breakdown .bk-name { font-weight: 600; }
.bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 5px; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--accent); }
.bar.sla b { background: var(--good); }
tr.row-link { cursor: pointer; }
tr.row-link:focus-visible { outline: 2px solid var(--focus); }
.drivers .panel-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.driver { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-13); line-height: 1.45; }
.driver .sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--neutral); }
.driver .sev.critical { background: var(--critical); box-shadow: 0 0 8px var(--brand-wash); } .driver .sev.warn { background: var(--warn); } .driver .sev.good { background: var(--good); }
.driver .grow { flex: 1; }
.plines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pline { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 3px solid var(--p, var(--accent)); color: var(--text); text-decoration: none; background: var(--surface-2); font-size: var(--fs-13); }
.pline:hover { border-color: var(--accent); text-decoration: none; }
.pline-head { display: flex; align-items: center; gap: 8px; }
.pline-head i { color: var(--p, var(--accent)); } .pline-head .dim { margin-left: auto; }
.pline-row { font-variant-numeric: tabular-nums; }
.score { position: relative; height: 16px; width: 120px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.score b { display: block; height: 100%; background: var(--accent); opacity: .8; }
.score span { position: absolute; left: 6px; top: 0; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--text); }
table.league td { height: auto; padding: 7px 12px; }
.chart-tip { fill: var(--text-2); font-size: 10px; font-family: var(--font-mono); }
.chart-axis { stroke: var(--line); }
.chart-target { stroke: var(--warn); stroke-dasharray: 3 3; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-area { fill: var(--accent); opacity: .12; }
.chart-bar { fill: var(--accent); opacity: .45; }
.chart-dot { fill: var(--accent); }
@media (max-width: 1440px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
