/* Multimaster · Berichte (Übersicht und einzelne Berichte) */
:root{--s1:#257de0;--s2:#f47230;--chart-ink:#666666}
:root[data-theme=dark]{--s1:#338ced;--s2:#e76624;--chart-ink:#9c9c9c}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--s1:#338ced;--s2:#e76624;--chart-ink:#9c9c9c}}

.topbar .user{margin-left:auto}                 /* Berichte haben kein Suchfeld in der Kopfzeile */
.rail .nav.sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:30px;padding-left:44px}

/* Übersicht */
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.rcard{display:flex;gap:14px;align-items:flex-start;padding:16px;text-decoration:none;color:var(--text)}
a.rcard:hover{box-shadow:var(--shadow-lg);border-color:var(--brand)}
.rcard .ico{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);flex-shrink:0}
.rcard .ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.rcard b{display:block;font-size:15px;margin-bottom:2px}
.rcard span{color:var(--text-2);font-size:13px;line-height:1.4}
.rcard em{font-style:normal;font-size:11px;font-weight:600;color:var(--text-3);background:var(--surface-3);padding:1px 7px;border-radius:9px;margin-left:4px;vertical-align:1px}
.rcard.off{opacity:.65}.rcard.off .ico{background:var(--surface-3);color:var(--text-3)}

/* Filterzeile */
.rfilter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.rfilter .fpair{display:inline-flex;align-items:center;gap:8px;margin-right:8px}
.rfilter .lbl{color:var(--text-2);font-size:12px;font-weight:600}
.rsec{margin:22px 0 10px;font-size:18px;font-weight:600}
.rsec small{font-size:13px;font-weight:400;color:var(--text-2);margin-left:6px}
.r2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
@media (max-width:1100px){.r2{grid-template-columns:minmax(0,1fr)}}
.kpi .val.warn{color:var(--warn)}
.kpi .val.ok{color:var(--ok)}
.kpis.r6{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}

/* Diagramme */
.chartcard{padding:14px 16px 10px}
.chartcard h3{margin:0 0 2px;font-size:16px;font-weight:600}
.chartcard .sub{color:var(--text-2);font-size:13px;margin-bottom:8px}
.legend{display:flex;gap:16px;font-size:12px;color:var(--text-2);margin-bottom:6px;flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.chart{position:relative}
.chart svg{display:block;width:100%;height:auto;overflow:visible;stroke:none}   /* kontakte.css setzt für Icons svg{stroke:currentColor} */
.chart svg *{stroke:none}
.chart .ax{font-size:11px;fill:var(--chart-ink)}
.chart svg .gl line{stroke:var(--stroke-3);stroke-width:1}
.chart svg .base{stroke:var(--stroke-2);stroke-width:1}
.chart .hit{fill:transparent;cursor:pointer}
.chart .hit:hover{fill:color-mix(in srgb,var(--text) 5%,transparent)}
.tip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--stroke-2);border-radius:6px;box-shadow:var(--shadow-lg);padding:8px 10px;font-size:12px;line-height:1.5;white-space:nowrap;z-index:5;font-variant-numeric:tabular-nums}
.tip b{display:block;font-size:13px;margin-bottom:2px}
.tip i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
.tip .r{display:flex;justify-content:space-between;gap:16px}
details.astab{margin-top:6px;font-size:13px}
details.astab summary{cursor:pointer;color:var(--brand);font-weight:600;padding:4px 0}

/* Balken in Tabellen (Rangliste, offen nach Status) */
.bar{display:flex;align-items:center;gap:8px;min-width:160px}
.bar span{display:block;height:10px;border-radius:0 3px 3px 0;background:var(--s1);min-width:2px}
.bar em{font-style:normal;font-size:12px;color:var(--text-2);white-space:nowrap}
.rank{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--surface-3);font-size:12px;font-weight:700;color:var(--text-2)}
.rank.r1{background:#E3A400;color:#1a1a1a}.rank.r2{background:#C0C0C0;color:#1a1a1a}.rank.r3{background:#C98A4B;color:#1a1a1a}
.grid th.s{cursor:pointer;user-select:none}.grid th.s:hover{color:var(--text)}
.grid th .ar{color:var(--brand);margin-left:3px}
.stdot2{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:0}
.muted2{color:var(--text-3)}
.tablecard .cardhead p{margin:0;color:var(--text-2);font-size:13px}
.grid td.wrapc{white-space:normal;min-width:220px}
/* Datenqualität: aufklappbare Zeilen */
.dq details{border-top:1px solid var(--stroke-3)}
.dq summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;cursor:pointer;list-style:none}
.dq summary::-webkit-details-marker{display:none}
.dq summary::before{content:'›';color:var(--text-3);font-weight:700;width:10px;transition:transform .15s}
.dq details[open] summary::before{transform:rotate(90deg)}
.dq summary span{flex:1}
.dq summary b.warn{color:var(--warn)}.dq summary b.ok{color:var(--ok);font-weight:600}
.dq details.leer summary{cursor:default;color:var(--text-2)}.dq details.leer summary::before{visibility:hidden}
.dq summary:hover{background:var(--surface-2,var(--surface-3))}
.dq ul{margin:0;padding:4px 16px 12px 42px;columns:2 320px;column-gap:24px;font-size:13px;line-height:1.7}
.dq li{break-inside:avoid}
.dq a{color:var(--brand);font-weight:600;text-decoration:none}.dq a:hover{text-decoration:underline}
.dq p{margin:0 0 10px 42px;font-size:13px}
@media (max-width:600px){main{padding:14px 10px 40px}.kpi .val{font-size:20px}}
