/* Charts and key numbers (metrics plan, Daniel 2026-12-02). Status colors mean status only; other bars are ink.
   Every color is a token, with its own dark value. */
:root{--ch-ok:#1E9E53;--ch-warn:#F5B700;--ch-bad:#E0262F;--ch-wait:#8A9294;--ch-none:#C9CDC8;--ch-bar:#1D2327;--ch-bar2:#B9BFBB;--ch-area:rgba(30,158,83,.12)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--ch-ok:#2BB866;--ch-bad:#F0474F;--ch-wait:#7D8789;--ch-none:#3C4549;--ch-bar:#D5DAD7;--ch-bar2:#4A5458;--ch-area:rgba(43,184,102,.16)}}
:root[data-theme="dark"]{--ch-ok:#2BB866;--ch-bad:#F0474F;--ch-wait:#7D8789;--ch-none:#3C4549;--ch-bar:#D5DAD7;--ch-bar2:#4A5458;--ch-area:rgba(43,184,102,.16)}
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:900px){.kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.kpi:hover{border-color:var(--shadow)}
.kpi .t{font-size:12.5px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:6px}
.kpi .n{font-weight:700;font-size:24px;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.kpi .s{font-size:12px;color:var(--muted)}
.kpi .s b{font-weight:600;color:var(--green)}
.kpi .s b.down{color:var(--red)}
.cdot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.cgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
@media (min-width:900px){.cgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ccard{gap:8px;min-width:0;padding:12px 14px}
.ccard .ch{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.legend b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.legend button{font:inherit;background:none;border:0;padding:0;color:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.sw{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.stackbar{display:flex;gap:2px;height:14px}
.stackbar i{display:block;height:100%;border-radius:2px;min-width:3px}
.stackbar i:first-child{border-radius:4px 2px 2px 4px}.stackbar i:last-child{border-radius:2px 4px 4px 2px}.stackbar i:only-child{border-radius:4px}
.hbs{display:flex;flex-direction:column;gap:7px}
.hb{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr) 36px;gap:8px;align-items:center;font-size:13px}
.hb .l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb .v{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.hb .track{height:10px;display:flex;gap:2px}
.hb .track i{display:block;height:100%;border-radius:2px;min-width:2px}
.hb .track i:last-child{border-radius:2px 4px 4px 2px}
.buckets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.buckets>*{border-radius:8px;background:var(--brand-soft);padding:6px 8px;display:flex;flex-direction:column;border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-width:0}
.buckets b{font-size:18px;font-variant-numeric:tabular-nums;line-height:1.2}
.buckets span{font-size:11.5px;color:var(--muted)}
.buckets .r{background:var(--red-soft)}.buckets .r b{color:var(--red)}
.buckets .y{background:var(--ysoft)}.buckets .y b{color:var(--yink)}
.chart svg{display:block;max-width:100%;height:auto;overflow:visible}
.chart text{fill:var(--muted);font-family:var(--body);font-size:11px}
.chart .grid line{stroke:var(--line);stroke-width:1}
.ctip{position:fixed;z-index:60;pointer-events:none;background:var(--ink);color:var(--bg);font-size:12px;font-weight:500;border-radius:6px;padding:5px 8px;max-width:240px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.stackbar:hover i:not(:hover),.hb .track:hover i:not(:hover){opacity:.75}
/* Vendors list: counts on the tabs, the mix above the list, expiry wording on each row (PR 2). */
.subtabs .tabn{font-style:normal;font-size:11.5px;font-weight:600;background:var(--brand-soft);color:var(--muted);border-radius:5px;padding:1px 5px;margin-left:5px;font-variant-numeric:tabular-nums}
.subtabs [aria-current="page"] .tabn{color:var(--ink)}
.vmix{display:flex;flex-direction:column;gap:6px;padding:2px 2px 4px}
.exp-y{color:var(--yink);font-weight:600}
.exp-r{color:var(--red);font-weight:600}
/* Vendor record (PR 6): when coverage ends, status by week. */
.hb.hb-wide{grid-template-columns:minmax(0,32%) minmax(60px,1fr) auto}
.hb.hb-wide .v{font-weight:500;color:var(--muted);font-size:12.5px;white-space:nowrap}
.stackbar.weeks{gap:1px;height:12px}
.stackbar.weeks i{min-width:0;border-radius:1px}
