/* WP6 Berichte (SPEC_UI_CLOSE_1ZU1 C-11; echte Close-App: close-erkundung/70_reports.md, Bilder E279–E310):
   Kopf „Berichte“, Unterstrich-Reiter, Filterleiste mit Menüknöpfen (Icon + Wert, Sofortwirkung), Kacheln mit blauer Zahl,
   Rangliste, Diagramme in umrandeten Kästen (Datenpalette A.5), Tabellen im Rahmen, die in sich scrollen – auf der Fläche #f9f9f9.
   Die Seite ist page-default: sie scrollt senkrecht in .app-content und nie waagerecht (Regel 10). Kopf und Filterleiste
   (.report-top) bleiben dabei oben stehen, nur der Inhalt läuft darunter durch [E305]. */

/* ---- Seitenaufbau: Kopf, Reiter und Filterleiste weiß, der Inhalt auf #f9f9f9 bis zum unteren Rand [E279] ---- */
.report-page { display: flex; flex-direction: column; min-height: 100%; min-width: 0; background: var(--surface-medium); }
.report-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.report-head { flex: none; }
/* Kopf (64) + Filterleiste (48) als ein fester Block über dem Inhalt [E305: „Calls ▾“ und die Filterleiste stehen, die Diagrammkarten
   sind darunter angeschnitten]. Ebene: über den festen Tabellenköpfen/-spalten des Inhalts (--z-sticky ± 1) und der Tooltip-Karte
   der Diagramme, unter der Kopfleiste (--z-topbar) – deren Menüs liegen so weiter darüber, die Menüs der Filterleiste über dem Inhalt.
   Unter 1024 px (Hamburger-Ansicht, wenig Höhe) scrollt alles gemeinsam wie bisher. */
.report-top { flex: none; min-width: 0; background: var(--surface); }
@media (min-width: 1024px) { .report-top { position: sticky; top: 0; z-index: calc(var(--z-sticky) + 2); } }
/* Tastatur (NP-KLEB-01): holt der Browser ein fokussiertes Element ins Bild (Umschalt+Tab), landet es unter dem stehenden Block statt
   dahinter – 112 px Kopf und Filterleiste + 12 px Luft. */
@media (min-width: 1024px) { main.app-content:has(.report-top) { scroll-padding-top: 124px; } }
.report-tabs { flex: none; padding: 0 24px; background: var(--surface); }
.report-filter-bar { flex: none; flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.report-filter-bar .btn { flex: 0 1 auto; min-width: 0; max-width: 280px; }
.report-filter-bar .btn > span { overflow: hidden; text-overflow: ellipsis; }
.report-filter-bar .btn .icon { width: 14px; height: 14px; }
.report-filter-bar .btn.is-set { background: var(--bg-active-muted); border-color: var(--border-active-muted); }
.report-filter-bar__gap { flex: 1 1 8px; min-width: 0; }
.report-filter-bar__sep { flex: none; width: 1px; height: 24px; background: var(--border-default); }
.report-filter-bar .btn strong { font-weight: 600; }
.report-filter-bar .btn.btn-icon { flex: none; }
.report-range { flex: none; font-size: 13px; line-height: 18px; color: var(--text-light); white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-content { display: flex; flex-direction: column; flex: 1; gap: 24px; padding: 24px 24px 40px; min-width: 0; }
.report-content > .list-error { margin: -24px -24px 0; }
.report-body.htmx-request .report-content { opacity: .5; transition: opacity var(--dur-quick) var(--ease); }

/* ---- Filter-Menüs ---- */
.report-menu { min-width: 220px; }
.report-menu .menu-item .check, .report-menu .menu-section .check { height: 16px; }
.report-menu .menu-section .check { display: inline-flex; vertical-align: -3px; color: var(--blue-50); }
.report-export-menu { min-width: 260px; }
/* Mehrfachauswahl (Nutzer, Spalten) [E291, BER-04]: Kästchen statt Haken, das Menü bleibt offen */
.report-menu--multi { min-width: 264px; }
.report-menu--multi .menu-item.is-selected { background: transparent; }
.report-menu--multi .menu-item.is-selected:hover { background: var(--menu-item-selected); }
.report-menu--multi .menu-item .check {
  align-items: center; justify-content: center; width: 14px; height: 14px; margin: 0 1px; border: 1px solid var(--border-checkbox);
  border-radius: 3px; background: var(--surface); color: #fff;
}
.report-menu--multi .menu-item.is-selected .check, .report-menu--multi .menu-item .check.is-on, .report-menu--multi .menu-item .check.is-some {
  background: var(--form-checked); border-color: var(--form-checked);
}
.report-menu--multi .menu-item .check .icon { width: 10px; height: 10px; stroke-width: 3; color: #fff; }
/* Dunkelmodus: der weiße Haken verschwindet im Hellen auf dem weißen Kästchen – auf Dunkel nur zeigen, wenn angekreuzt */
:root[data-theme="dark"] .report-menu--multi .menu-item .check .icon { color: transparent; }
:root[data-theme="dark"] .report-menu--multi .menu-item.is-selected .check .icon, :root[data-theme="dark"] .report-menu--multi .menu-item .check:is(.is-on, .is-some) .icon { color: #fff; }
/* Nutzerfilter [E291; BER-04, Aufbau OPP-06]: 265 px breit; „Alle auswählen“, eigener Nutzer mit Avatar 16, dann die Abschnitte
   Gruppen · Aktive Nutzer · Inaktive Nutzer – Kopf mit Checkbox (wählt alle darin), Icon, Name fett, Zähler, Pfeil; zugeklappt
   zeigt ein Abschnitt nur seinen Kopf. Beim Suchen zeigen alle Abschnitte ihre Treffer. */
.menu.user-menu { width: 265px; min-width: 265px; max-width: 265px; }
.user-menu .menu-item { gap: 8px; }
.user-menu .menu-item__label { display: block; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .avatar { flex: none; width: 16px; height: 16px; font-size: 8px; line-height: 1; }
.user-menu__n { flex: none; font-size: 12px; line-height: 16px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.user-menu__group { margin: 4px -8px 0; padding: 4px 8px 0; border-top: 1px solid var(--border-default); }
.user-menu__head { display: flex; align-items: center; min-height: 34px; border-radius: 6px; }
.user-menu__head:hover { background: var(--menu-item-hover); }
.user-menu__head .menu-item, .user-menu__head .menu-item:hover { background: none; }
.user-menu__head .menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--border-active-muted); }
.user-menu .user-menu__check { flex: none; width: auto; padding: 0 0 0 8px; }
.user-menu .user-menu__toggle { flex: 1; min-width: 0; padding: 0 8px; }
.user-menu__toggle strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu__toggle .count-badge { height: 16px; min-width: 16px; padding: 0 5px; border-color: transparent; border-radius: 8px; background: var(--gray-10); }
.user-menu__chevron { margin-left: auto; flex: none; transition: transform var(--dur-quick) var(--ease); }
.user-menu__group.is-open .user-menu__chevron { transform: rotate(180deg); }
.user-menu__items { display: none; }
.user-menu__group.is-open .user-menu__items, .user-menu.is-searching .user-menu__items { display: block; }
.user-menu.is-searching .user-menu__items .menu-item[hidden] { display: none; }
.user-menu:has([data-user-me][hidden]) > .menu-divider { display: none; }   /* eigener Nutzer kein Treffer: keine doppelte Linie */
.user-menu.is-searching .user-menu__group:not(:has(.user-menu__items .menu-item:not([hidden]))) { display: none; }   /* Abschnitt ohne Treffer */
/* Spaltenwahl des Aktivitätsvergleichs [BER-06]: Checkbox-Liste in Gruppen, wirkt sofort */
.menu.column-menu { width: 264px; }
.column-menu .menu-item { min-height: 30px; }
.column-menu .menu-item__label { padding: 5px 0; }
.column-menu__reset { color: var(--link); }
.menu.report-more { width: 280px; }   /* „Weitere Filter“ des Anruf-Berichts [E303] */
.report-more .talk-more__field { font-size: 13px; line-height: 18px; }
.report-more .select, .report-more .input { height: 28px; font-size: 13px; }
.menu .report-range-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }   /* .menu form ist sonst display:contents */
.report-range-form label:where(:not(.checkbox):not(.radio):not(.switch)) { display: flex; flex-direction: column; gap: 4px; font: 600 13px/18px var(--font-sans); color: var(--text-default); min-width: 0; }
.report-range-form .input { height: 32px; padding: 0 8px; font-size: 13px; min-width: 0; }

/* ---- Abschnitte ---- */
.report-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.report-section__head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.report-section__title { margin: 0; font: 600 16px/24px var(--font-sans); color: var(--text-default); }
.report-section__sub { font-size: 13px; line-height: 18px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.report-pipeline { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.report-pipeline + .report-pipeline { padding-top: 24px; border-top: 1px solid var(--border-default); }
.report-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-light); }
.report-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.report-split--board { grid-template-columns: minmax(0, 1fr) 300px; }   /* Rangliste rechts, feste Breite ~300 px [E279] */

/* ---- Kacheln [E279, ABGLEICH BER-05]: feste Größe 164 × 148 mit Umbruch, weiß, Rand 1 px, Radius 8, kein Schatten;
        Zahl blau 24/32 700, Kennzahl-Gruppe 13/600, Unterart graue Versalien 10 px, unten die Flächenkurve ---- */
.tile-grid { display: flex; flex-wrap: wrap; gap: 24px; min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; min-width: 0; }
.kpi {
  position: relative; display: flex; flex-direction: column; flex: none; width: 164px; height: 148px; min-width: 0; padding: 12px 12px 0;
  border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface); color: var(--text-default); text-decoration: none; overflow: hidden;
}
.kpi__spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48px; display: block; }
/* Dunkelmodus: Diagramme ohne helle Flecken – Verlaufsfläche der Kachel (report_tags.sparkline, hellblau #eaf1ff) dunkelblau,
   Gitter und Nulllinie (#e2e2e2) in der Randfarbe; die zwei dunklen Farben der Datenpalette (A.5: #6e20d4, #ac0057) in der
   hellen Stufe derselben Farbe, damit Balken, Linien und Legende auf dunklem Grund ≥ 3 : 1 haben */
:root[data-theme="dark"] .kpi__spark path { fill: var(--blue-10); }
:root[data-theme="dark"] .chart__plot > line { stroke: var(--border-default); }
:root[data-theme="dark"] .chart__plot [fill="#6e20d4"] { fill: #9c6fff; }
:root[data-theme="dark"] .chart__plot [stroke="#6e20d4"] { stroke: #9c6fff; }
:root[data-theme="dark"] .chart__plot [fill="#ac0057"] { fill: #ef4889; }
:root[data-theme="dark"] .chart__plot [stroke="#ac0057"] { stroke: #ef4889; }
:root[data-theme="dark"] :is(.chart__legend i, .pair__bar, .hbar__bar)[style*="#6e20d4"] { background: #9c6fff !important; }
:root[data-theme="dark"] :is(.chart__legend i, .pair__bar, .hbar__bar)[style*="#ac0057"] { background: #ef4889 !important; }
/* Kennzahlkarten des Opportunity-Funnels [E294, BER-07]: eine Reihe (höchstens fünf), je 200 × 76 – wird es eng, werden die Karten
   schmaler statt umzubrechen; Zahl 16/24 700, Bezeichnung 12 px grau */
.stat-grid { display: flex; flex-wrap: nowrap; gap: 12px; min-width: 0; }
.report-stat { display: flex; flex-direction: column; justify-content: center; flex: 0 1 200px; width: 200px; height: 76px; padding: 12px 16px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface); min-width: 0; }
.report-stat__value { font: 700 16px/24px var(--font-sans); color: var(--text-default); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-stat__label { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-stat__label .icon { width: 12px; height: 12px; flex: none; }
/* Opportunity-Funnel [E294, BER-07]: Streifen #fcfcfc mit mittigen Kennzahlkarten, darunter das Diagramm auf #f9f9f9 –
   je aktivem Status eine Spalte (Pille, blauer Balken mit Wert-Pille), zuletzt „Gewonnen“ mit der Gewinnquote; dann die Phasen-Tabelle */
.funnel-stats { justify-content: center; margin: -24px -24px 0; padding: 11px 24px; background: var(--surface-light, var(--gray-1)); }
.funnel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.funnel__tools { display: flex; justify-content: center; }
.funnel__tools .btn .icon { width: 14px; height: 14px; }
.funnel__cols { display: flex; min-width: 0; }
.funnel-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 8px; border-left: 1px solid var(--border-default); }
.funnel-col:first-child { border-left: 0; }
.funnel-pill { max-width: 100%; padding: 0 6px; border-radius: 4px; background: var(--gold-20); font: 600 12px/20px var(--font-sans); color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funnel-pill--won { background: var(--green-20); }
.funnel-col__plot { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 200px; margin-top: 28px; border-bottom: 1px solid var(--border-default); }
.funnel-bar { position: relative; width: 35%; min-width: 24px; min-height: 2px; background: var(--blue-50); }
.funnel-bar.is-empty { background: var(--border-hover, var(--gray-20)); }
.funnel-bar--won { width: 35%; height: 2px; background: var(--green-40); }
.funnel-value {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 6px; border: 1px solid var(--border-default); border-radius: 999px;
  background: var(--surface); font: 600 11px/16px var(--font-sans); color: var(--text-default); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.funnel-col__foot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; padding-top: 12px; }
.funnel-won__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-20); color: var(--green-70); }
.funnel-won__rate { font: 700 14px/20px var(--font-sans); color: var(--text-default); font-variant-numeric: tabular-nums; }
.funnel-won__label { font: 400 10px/14px var(--font-sans); text-transform: uppercase; color: var(--text-light); }
.funnel-table { width: calc(100% + 48px); max-width: none; margin: 0 -24px; border: solid var(--border-default); border-width: 1px 0; border-radius: 0; background: var(--surface); }
.funnel-data { width: 100%; min-width: 640px; }
.funnel-data th, .funnel-data td { border-right: 1px solid var(--border-default); }
/* die Tabelle reicht bis zum Fensterrand: rechts dieselben 24 px Luft wie links (Close E294: „Lost“ endet rund 24 px vor dem Rand) */
.funnel-data th:last-child, .funnel-data td:last-child { border-right: 0; padding-right: 24px; }
.funnel-data th:first-child, .funnel-data td:first-child { padding-left: 24px; }
.funnel-data th.num, .funnel-data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-data thead th.is-metric { background: var(--bg-active-muted, var(--blue-5)); }
.funnel-data td.is-metric { background: var(--blue-2); font-weight: 600; }
.funnel-data td.is-zero { color: var(--gray-30); }
.funnel-data tbody tr:last-child > * { border-bottom: 0; }
.funnel-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #fccc0b; }
.funnel-dot--won { background: #8eda8d; }
a.kpi:hover { border-color: var(--border-hover); text-decoration: none; color: var(--text-default); }
.kpi__value { font: 700 24px/32px var(--font-sans); color: var(--link); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi__label { font: 600 13px/18px var(--font-sans); color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi__hint { margin-top: 2px; font: 400 10px/14px var(--font-sans); letter-spacing: 0; text-transform: uppercase; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- übernommen aus completion.css (WP0, einmalig verschoben; Eigentum WP6): Kacheln der nicht mehr verlinkten
        Startseite „Heute“ (dashboard/home.html) – gleiche flache Optik wie .kpi ---- */
.metric-grid { margin: 0 0 24px; }
.metric { padding: 12px 16px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.metric strong { font: 700 24px/32px var(--font-sans); color: var(--link); font-variant-numeric: tabular-nums; }
.metric > span { font: 600 13px/18px var(--font-sans); color: var(--text-default); }
.metric small { font-size: 12px; line-height: 16px; color: var(--text-light); }

/* ---- Kästen (Rangliste, Diagramme, Tabellen): weiß, Rand 1 px #e2e2e2, Radius 8, kein Schatten ---- */
.report-box { min-width: 0; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface); }

/* Rangliste [E279 „Leaderboard“]: Titel 18/700, Kennzahl 13/600, Unterzeile Versalien 10 px, Linie, Plätze */
.leaderboard { padding: 16px 0 8px; }
.leaderboard__head { padding: 0 16px 12px; border-bottom: 1px solid var(--border-default); }
.leaderboard__title { margin: 0; font: 700 18px/24px var(--font-sans); color: var(--text-default); }
.leaderboard__metric { margin: 2px 0 0; font: 600 13px/18px var(--font-sans); color: var(--text-default); }
.leaderboard__sub { margin: 0; font: 400 10px/14px var(--font-sans); text-transform: uppercase; color: var(--text-light); }
.leaderboard__list { margin: 0; padding: 4px 0 0; list-style: none; }
.leaderboard__row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; min-width: 0; }
.leaderboard__rank { width: 16px; flex: none; font-size: 12px; line-height: 16px; color: var(--text-light); text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard__name { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard__value { flex: none; font: 600 14px/20px var(--font-sans); color: var(--text-default); font-variant-numeric: tabular-nums; }
.leaderboard__empty { padding: 16px 16px 8px; font-size: 13px; line-height: 18px; color: var(--text-medium); }
.leaderboard__empty p { margin: 0 0 4px; }
.leaderboard__empty ul { margin: 4px 0 0; padding-left: 18px; }
.leaderboard__empty strong { color: var(--text-default); font-weight: 600; }

/* Diagramm-Kästen [E287]: Titel links oben, Summe fett rechts oben */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.chart-box { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
/* Diagrammkarten des Anruf-Berichts [E287]; der Berichtsname steht am getauschten Inhalt (Reiterwechsel per htmx) */
.report-content[data-report="calls"] .chart-box { background: var(--surface-light, var(--gray-1)); min-height: 320px; }
.report-content[data-report="calls"] .chart-box__total { font-size: 16px; line-height: 24px; }
/* Close zeigt in den Anruf-Diagrammen keine Legende (E287) – die Serien nennt die Tooltip-Karte; für Vorleseprogramme bleibt die Liste */
.report-content[data-report="calls"] .chart__legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.report-content[data-report="calls"] .chart--plot { position: relative; }
.chart-box__delta { flex: none; margin-left: -4px; font-size: 12px; line-height: 16px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.chart-box--wide { grid-column: 1 / -1; }
.chart-box__head { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.chart-box__title, .report-table__title { margin: 0; flex: 1; min-width: 0; font: 600 14px/20px var(--font-sans); color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-box__total { flex: none; font: 700 14px/20px var(--font-sans); color: var(--text-default); font-variant-numeric: tabular-nums; }
.chart-empty { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-light); }

/* ---- Diagramme (A.5): Legende 12 px #5e5e5e, Achsen 12 px #767676, Gitter gestrichelt, Balken Radius 2 ---- */
.chart { margin: 0; min-width: 0; width: 100%; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 12px; line-height: 16px; color: var(--text-medium); }
.chart__legend li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.chart__legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart__legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.chart__frame { display: grid; grid-template-columns: var(--chart-y, 32px) minmax(0, 1fr); column-gap: 8px; min-width: 0; padding-top: 8px; }
.chart__y { position: relative; height: 200px; font-size: 12px; line-height: 16px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.chart__y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart__plot { display: block; overflow: visible; grid-column: 2; }
.chart__plot rect:hover, .chart__plot circle:hover { opacity: .8; }
.chart__lines { pointer-events: none; }
/* Überfahren [E304]: senkrechte Linie, Punkte und Tooltip-Karte (wp_reports.js) */
.chart[data-chart-hover] { outline: 0; }
.chart[data-chart-hover]:focus-visible .chart__frame { box-shadow: 0 0 0 2px var(--border-active-muted, var(--blue-20)); border-radius: 4px; }
.chart__frame { position: relative; }
.chart.is-linked .chart__plot { cursor: pointer; }
.chart__cursor { position: absolute; top: 8px; width: 1px; height: 200px; background: var(--gray-40, var(--gray-30)); pointer-events: none; }
.chart__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 2px solid var(--surface); border-radius: 50%; pointer-events: none; box-sizing: border-box; }
.chart__tip {
  position: absolute; top: 16px; z-index: 5; min-width: 200px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); font-size: 12px; line-height: 18px; color: var(--text-default); pointer-events: none;
}
.chart__tip-title { margin: 0 0 4px; font-weight: 600; }
.chart__tip-row { display: flex; align-items: center; gap: 6px; }
.chart__tip-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chart__tip-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart__tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart__tip-hint { margin: 4px 0 0; color: var(--text-light); }
/* Balkenpaar „Angerufene Leads“ [E287]: zwei Balken, Wert als weiße Pille auf der Oberkante, dazwischen die Quote */
.chart--pair { display: flex; align-items: center; justify-content: space-around; gap: 16px; padding: 16px 8px 0; }
.pair__col { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; min-width: 0; }
.pair__plot { display: flex; align-items: flex-end; width: 80px; height: 200px; }
.pair__bar { position: relative; width: 100%; min-height: 2px; }
.pair__value {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 6px; border: 1px solid var(--border-default); border-radius: 999px;
  background: var(--surface); font: 600 11px/16px var(--font-sans); color: var(--text-default); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pair__label { font-size: 12px; line-height: 16px; color: var(--text-light); }
.pair__rate { position: relative; flex: none; padding: 0 6px 0 8px; border-radius: 4px; background: var(--bg-inverse); color: #fff; font: 600 11px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.pair__rate::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left-color: var(--text-default); }
.chart__x { position: relative; grid-column: 2; height: 16px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.chart__x span { position: absolute; top: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart--hbar { display: grid; grid-template-columns: minmax(80px, max-content) minmax(0, 1fr) max-content; gap: 8px 12px; align-items: center; }
.hbar { display: contents; }
.hbar__label { max-width: 220px; font-size: 13px; line-height: 18px; color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { display: block; height: 16px; min-width: 0; }
.hbar__bar { display: block; height: 16px; min-width: 2px; border-radius: 2px; }
.hbar__value { font-size: 12px; line-height: 16px; color: var(--text-light); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Tabellen im Rahmen: Kopf 40 px #f9f9f9, Zeilen 40 px, Zahlen rechts, Nullwerte hellgrau, Summenzeile fett [E285];
        die Tabelle scrollt waagerecht in sich, die erste Spalte bleibt stehen ---- */
.report-table { overflow: hidden; }
.report-table__head { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border-default); }
.report-table__head .btn { margin-left: auto; flex: none; }
.report-table .table-wrap { border: 0; border-radius: 0; }
.report-data { width: max-content; min-width: 100%; table-layout: auto; }
.report-data thead th, .report-data td, .report-data tbody th, .report-data tfoot td { border-right: 0; max-width: 320px; }
.report-data thead th.num, .report-data tfoot td.num { text-align: right; }
.report-data td.is-zero { color: var(--gray-30); }
.report-data .col-first { position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--border-default); max-width: 260px; }
.report-data thead .col-first { z-index: 2; }
.report-data tbody tr:last-child > * { border-bottom: 0; }
.report-data tfoot td {
  position: static; height: 40px; background: var(--surface); border-top: 1px solid var(--border-default); border-bottom: 0;
  box-shadow: none; font: 700 14px/20px var(--font-sans); color: var(--text-default);
}
/* Beschriftung der Summenzeile rechtsbündig in der Namensspalte wie Close „Total:“ [E285] */
.report-data tfoot td.col-first { position: sticky; text-align: right; }
.report-data .report-empty { height: 56px; color: var(--text-medium); text-align: center; }
/* Aktivitätsvergleich [E285, BER-06]: ohne Kasten über die ganze Breite, Kopf 56 px weiß mit Unterzeile, laufende Nummer grau */
.report-table--plain { margin: -24px -24px 0; border-width: 0 0 1px; border-radius: 0; }
.report-table--plain .report-data thead th { height: 56px; background: var(--surface-medium); font-size: 13px; line-height: 18px; vertical-align: middle; }
.report-table--plain .report-data { width: 100%; }
.report-table--plain .report-data thead th.num, .report-table--plain .report-data td.num { padding-left: 8px; padding-right: 8px; }
.report-table--plain .report-data thead th, .report-table--plain .report-data td { border-right: 1px solid var(--border-default); }
/* letzte Spalte: 24 px bis zum Fensterrand wie links vor der ersten (vorher 8 px) [E285] */
.report-table--plain .report-data thead th:last-child, .report-table--plain .report-data td:last-child { border-right: 0; padding-right: 24px; }
.report-table--plain .report-data .col-first { padding-left: 24px; }
.report-data__sub { display: block; font: 400 12px/16px var(--font-sans); color: var(--text-light); }
.report-data__no { display: inline-block; width: 24px; font-size: 11px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.report-table__note { margin: 0; padding: 8px 16px; border-top: 1px solid var(--border-default); font-size: 12px; line-height: 16px; color: var(--text-light); }

@media (max-width: 1280px) { .report-split--board { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 1100px) {
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .report-split--board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .report-tabs { padding: 0 12px; }
  .report-content { padding: 16px 12px 32px; gap: 16px; }
  .report-filter-bar { overflow-x: auto; }
}
@media print {
  .report-filter-bar, .report-table__head .btn, .report-head .page-head__tools { display: none !important; }
  .report-table .table-wrap { overflow: visible; }
  .report-top { position: static; }
}
