/* Reports (Ordner Reports/, Vorsatz rp-): Umsatz, Angebote, Ausgaben. Optik wie GuV/Offene Posten: Haarlinien, Ecken 3–4 px, Blau nur für
   den Wert, der zählt; Vorjahr grau, Rückgang rot, Zuwachs grün (getönt, nicht laut). Schwellen messen die Seite (Containerabfragen). */
.rp-seite { display:flex; flex-direction:column; gap:14px; height:100%; min-width:0; min-height:0; padding:20px 24px 16px; overflow:auto; container-type:inline-size; }
.rp-nur-vorlesen { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.rp-kopf { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; flex:0 0 auto; }
.rp-titel h1 { font-size:21px; line-height:1.3; font-weight:600; }
.rp-titel p { margin-top:4px; font-size:12px; color:var(--tinte-3); }
.rp-untertitel { color:var(--tinte-4); }
.rp-werkzeuge, .rp-zeitraum { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.rp-werkzeuge { justify-content:flex-end; }
.rp-seite select, .rp-seite input[type=number], .rp-seite input[type=date] { height:32px; border:1px solid var(--linie-stark); border-radius:3px; padding:0 8px; background:var(--flaeche); color:var(--tinte-1); font-size:12px; font-family:inherit; }
.rp-jahr { width:78px; }
.rp-nr { min-width:110px; }
.rp-bis-strich { color:var(--tinte-4); }
.rp-herunterladen { gap:6px; }
.rp-zeitraum-fehler { color:var(--alarm); font-size:12px; margin-top:-6px; }

.rp-umschalter { display:flex; align-items:center; flex-wrap:wrap; gap:10px; flex:0 0 auto; }
.rp-segment { display:inline-flex; border:1px solid var(--linie-stark); border-radius:3px; overflow:hidden; }
.rp-segment button { height:30px; padding:0 12px; border:0; border-right:1px solid var(--linie); background:var(--flaeche); color:var(--tinte-2); font:inherit; font-size:12px; cursor:pointer; }
.rp-segment button:last-child { border-right:0; }
.rp-segment button:hover { background:var(--flaeche-2); }
.rp-segment button[aria-pressed=true] { background:var(--flaeche-2); color:var(--tinte-1); font-weight:600; box-shadow:inset 0 -2px 0 var(--tinte-2); }
.rp-umschalter-titel { color:var(--tinte-4); font-size:12px; }

.rp-bericht { display:flex; flex-direction:column; flex:0 0 auto; min-width:0; background:var(--flaeche); border:1px solid var(--linie); border-radius:4px; }
.rp-zustand { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; padding:40px 18px; color:var(--tinte-4); font-size:13px; text-align:center; min-height:160px; }
.rp-fehler { display:flex; gap:9px; align-items:center; padding:12px 16px; font-size:12px; color:var(--alarm); background:var(--alarm-grund); border:1px solid var(--linie); border-radius:3px; }
.rp-fehler span { flex:1; }
.rp-hinweis { padding:0 18px 12px; color:var(--tinte-4); font-size:11px; }

/* Kacheln: eine Zeile, Wert groß, Unterzeile mit Veränderung zum Vorjahr. */
.rp-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0; padding:18px 0 14px; }
.rp-kachel { display:flex; flex-direction:column; gap:5px; padding:0 18px; border-right:1px solid var(--linie); min-width:0; }
.rp-kachel:last-child { border-right:0; }
.rp-kachel > span { color:var(--tinte-4); font-size:12px; }
.rp-kachel strong { color:var(--tinte-1); font-size:24px; font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-kachel.rp-haupt strong { color:var(--akzent); font-weight:600; }
.rp-kachel small { color:var(--tinte-4); font-size:11px; font-variant-numeric:tabular-nums; }
/* Ton der Veränderung: stärker als die Grundfarbe der Kachel und der Tabelle. */
.rp-plus, .rp-kachel strong.rp-plus, .rp-kachel small.rp-plus, .rp-tabelle td.rp-plus { color:var(--ok); }
.rp-minus, .rp-kachel strong.rp-minus, .rp-kachel small.rp-minus, .rp-tabelle td.rp-minus { color:var(--alarm); }

/* Säulen je Abschnitt, Vorjahr als graue Säule daneben. */
.rp-verlauf { padding:10px 18px 14px; border-top:1px solid var(--linie); }
.rp-verlauf-kopf { display:flex; align-items:center; gap:14px; color:var(--tinte-3); font-size:12px; margin-bottom:8px; }
.rp-legende { display:inline-flex; align-items:center; gap:5px; color:var(--tinte-4); font-size:11px; }
.rp-legende i { display:inline-block; width:10px; height:10px; border-radius:2px; background:var(--akzent); }
.rp-legende i.rp-vj { background:var(--linie-stark); }
.rp-saeulen-rolle { overflow-x:auto; }
.rp-saeulen { display:flex; align-items:flex-end; gap:6px; min-height:140px; padding-top:6px; }
.rp-abschnitt { display:flex; flex-direction:column; align-items:center; flex:1 1 0; min-width:46px; text-align:center; }
.rp-saeulenfeld { display:flex; align-items:flex-end; justify-content:center; gap:2px; height:110px; width:100%; border-bottom:1px solid var(--linie-stark); }
.rp-saeule { display:block; width:min(42%, 22px); min-height:0; background:var(--akzent); border-radius:2px 2px 0 0; }
.rp-saeule.rp-vj { background:var(--linie-stark); }
.rp-saeule.rp-negativ { background:var(--alarm); }
.rp-abschnitt > span { margin-top:4px; max-width:100%; overflow:hidden; text-overflow:ellipsis; color:var(--tinte-3); font-size:10px; white-space:nowrap; }
.rp-abschnitt > small { color:var(--tinte-4); font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* Tabelle (Rangliste, Liste der offenen Angebote, Lieferanten). */
.rp-tabelle-kopf { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 18px; border-top:1px solid var(--linie); }
.rp-tabelle-kopf h2 { font-size:14px; font-weight:600; margin-right:auto; }
.rp-tabelle-rolle { overflow-x:auto; }
.rp-tabelle { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; font-variant-numeric:tabular-nums; }
.rp-tabelle th, .rp-tabelle td { padding:8px 14px; border-bottom:1px solid var(--linie-fein); text-align:right; white-space:nowrap; vertical-align:middle; }
.rp-tabelle th:first-child, .rp-tabelle td:first-child { text-align:left; }
.rp-tabelle .rp-name { text-align:left; white-space:normal; min-width:180px; max-width:420px; }
.rp-tabelle .rp-name small { display:block; color:var(--tinte-4); font-size:10px; }
.rp-tabelle thead th { color:var(--tinte-3); background:var(--flaeche-2); font-weight:500; border-top:1px solid var(--linie); border-bottom:1px solid var(--linie-stark); position:sticky; top:0; }
.rp-tabelle tbody tr:hover > * { background:var(--flaeche-2); }
.rp-tabelle .rp-rang { color:var(--tinte-4); width:34px; }
.rp-tabelle tfoot td { font-weight:600; border-top:1px solid var(--linie-stark); border-bottom:0; }
.rp-tabelle a { color:inherit; text-decoration:none; border-bottom:1px solid var(--linie-stark); }
.rp-tabelle a:hover { border-bottom-color:var(--tinte-2); }
.rp-balken { display:inline-block; height:6px; border-radius:3px; background:var(--akzent); opacity:.55; vertical-align:middle; margin-right:6px; }
.rp-gruende { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:0; border-top:1px solid var(--linie); }
.rp-gruende > section { padding:12px 18px; border-right:1px solid var(--linie); }
.rp-gruende > section:last-child { border-right:0; }
.rp-gruende h3 { font-size:12px; font-weight:600; color:var(--tinte-2); margin-bottom:6px; }
.rp-gruende ul { list-style:none; margin:0; padding:0; display:grid; gap:5px; font-size:12px; }
.rp-gruende li { display:flex; justify-content:space-between; gap:10px; }
.rp-gruende li span:last-child { color:var(--tinte-3); font-variant-numeric:tabular-nums; }

.rp-mehr { display:flex; justify-content:center; padding:8px 18px 12px; }
.rp-fuss { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 18px; color:var(--tinte-4); font-size:11px; border-top:1px solid var(--linie); }

/* Schmal (Tablet hochkant, Handy): Kacheln 2 × 2, Werkzeuge unter dem Titel, Tabelle mit weniger Spalten. */
@container (max-width: 720px) {
    .rp-seite { padding:14px 12px; }
    .rp-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:14px; }
    .rp-kachel:nth-child(2n) { border-right:0; }
    .rp-kachel strong { font-size:20px; }
    .rp-werkzeuge { justify-content:flex-start; }
    .rp-tabelle .rp-breit { display:none; }
    .rp-tabelle th, .rp-tabelle td { padding:8px 10px; }
    .rp-tabelle .rp-name { min-width:0; }
}
