/* Grundlayout – Farben kommen aus dem Syncfusion-Theme. Eigene Farben nur neutral (grau, transparent),
   damit sie in jedem Theme und hell/dunkel passen. */
html, body {
    margin: 0;
    height: 100%;
    /* --schrift setzt der Dialog „Darstellung“ (eigene Schriftart) */
    font-family: var(--schrift, "Segoe UI", system-ui, -apple-system, sans-serif);
}

body {
    background: #fff;
    color: #242424;
}

/* Akzentfarbe des Themes (Fluent 2, ggf. eigene Farbe) für eigene Bausteine – folgt Hell/Dunkel automatisch */
html {
    --akzent: var(--color-sf-primary, #0f6cbd);
    --akzent-text: var(--color-sf-primary-text-color, #fff);
}

/* Dunkelmodus: fest gewählt oder „Wie Windows“ */
html.modus-dunkel body {
    background: #1f1f1f;
    color: #e8e8e8;
}

@media (prefers-color-scheme: dark) {
    html.modus-system body {
        background: #1f1f1f;
        color: #e8e8e8;
    }
}

/* Größe (Dialog „Darstellung“, 50–150 %): App.razor setzt --zoom auf <html>, angewendet wird es als zoom auf
   den App-Rahmen (MainLayout.razor.css). Nicht auf <html>: Syncfusion positioniert Aufklappfenster sonst falsch. */
html {
    --zoom: 1;
    --menue-hoehe: 34px;
}

/* Dialog „Darstellung“ auf schmalen Bildschirmen nicht breiter als das Fenster */
.e-dialog.darstellung-dialog {
    max-width: 95vw;
}

h1:focus, h2:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ---------- Seiten mit Liste → Detail (Muster für große Masken) ---------- */
.seite {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1100px;
}

.seite.voll {
    max-width: none;
    height: 100%;
    min-height: 420px;
}

.seite-kopf {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.seite-kopf h2 {
    margin: 0;
    font-size: 1.4rem;
}

.seite-kopf .info {
    font-size: .85rem;
    opacity: .7;
}

.seite-leiste {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.seite-leiste .abstand {
    flex: 1;
}

.seite-grid {
    flex: 1;
    min-height: 0;
}

/* Formular in Abschnitten: Beschriftung links, Feld rechts; auf schmalen Bildschirmen untereinander */
.abschnitte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 12px;
}

/* Protokollzeile (Angelegt/Geändert) unten auf Detailseiten – Design der Zeile selbst: ProtokollAnzeige.razor.css */
.seite-protokoll {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(128, 128, 128, .2);
}

.seite-protokoll:empty {
    display: none;
}

.abschnitt {
    border: 1px solid rgba(128, 128, 128, .3);
    border-radius: 6px;
    padding: 10px 14px 14px;
}

.abschnitt > h3 {
    margin: 0 0 8px;
    font-size: .95rem;
    font-weight: 600;
}

.abschnitt.breit {
    grid-column: 1 / -1;
}

.feld {
    display: grid;
    grid-template-columns: 150px 1fr;
    /* Beschriftung immer auf Höhe der (ersten) Eingabezeile, nicht mittig zur ganzen Zeile –
       sonst rutscht sie bei Hinweistexten, mehrzeiligen Feldern usw. nach unten (Vorgabe Volker 12.11.2026) */
    align-items: start;
    gap: 4px 10px;
    margin: 6px 0;
    --feld-zeile: 32px;   /* Höhe eines einzeiligen Eingabefelds (Fluent 2) */
}

.feld > label {
    font-size: .88rem;
    opacity: .85;
    min-height: var(--feld-zeile);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    align-content: center;
}

/* reine Anzeige (Text statt Eingabefeld) ebenfalls auf die Zeilenmitte */
.feld > span:not(.hinweis-text):not([class*="e-"]),   /* nicht die Syncfusion-Felder (span.e-input-group) */
.feld > .anzeige {
    min-height: var(--feld-zeile);
    display: flex;
    align-items: center;
}

.hinweis-text {
    font-size: .8rem;
    opacity: .65;
}

.feld .hinweis-text {
    grid-column: 2;
}

/* ---------- Blättern: voriger/nächster Satz in der Reihenfolge der Liste (SatzBlaettern, Bearbeitungsfenster) ---------- */
.satz-blaettern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Vor/Zurück: nur das Symbol Phosphor „caret-circle“, ohne Rahmen (Auswahl Volker 13.11.2026 – Schaltflächen mit Rahmen gefielen nicht) */
.satz-blaettern .e-btn.satz-knopf {
    min-width: 30px;
    padding-left: 5px;
    padding-right: 5px;
}

.satz-blaettern .e-btn.satz-knopf .e-btn-icon {
    font-size: 18px;
}

.satz-blaettern .e-btn.e-small.satz-knopf .e-btn-icon {
    font-size: 16px;
}

/* im Kopf des Bearbeitungsfensters kompakter (wenig Platz neben Titel und „Verwendet in“) */
.satz-blaettern .e-btn.e-small.satz-knopf {
    min-width: 26px;
    padding-left: 4px;
    padding-right: 4px;
}

.fenster-blaettern .satz-nr {
    min-width: 0;
    padding: 0 2px;
}

.satz-blaettern .satz-nr {
    font-size: .85rem;
    opacity: .75;
    min-width: 64px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---------- Hervorgehobene Zeilen in Listen (StammdatenMaske ZeilenKlasse) ----------
   zeile-gruen: z. B. lieferbare Rückstände (Bestand reicht) – grüne Schrift statt Hintergrund (Vorgabe Volker 12.11.2026).
   Hell ein kräftiges, auf Weiß noch lesbares Grün, dunkel ein leuchtendes Hellgrün. */
html {
    --zeile-gruen: #00a33a;
}

html.modus-dunkel {
    --zeile-gruen: #4ade80;
}

@media (prefers-color-scheme: dark) {
    html.modus-system {
        --zeile-gruen: #4ade80;
    }
}

/* !important: Syncfusion setzt beim Überfahren (Hover) und Markieren eine eigene Schriftfarbe – die Zeile soll grün bleiben,
   nur der Hintergrund zeigt Hover/Markierung (Vorgabe Volker 12.11.2026). */
.e-grid .e-row.zeile-gruen .e-rowcell,
.e-grid .e-row.zeile-gruen:hover .e-rowcell,
.e-grid .e-row.zeile-gruen .e-rowcell.e-selectionbackground {
    color: var(--zeile-gruen) !important;
    font-weight: 600;
}

/* Legende in der Leiste: das Wort selbst in der Zeilenfarbe */
.legende-gruen {
    font-size: .85rem;
    font-weight: 600;
    color: var(--zeile-gruen);
}

/* ---------- Mussfelder (Vorgabe Volker 11.11.2026: Sternchen + roter Rahmen) ----------
   Zentrales Design für alle Masken: Detailseiten über <div class="feld muss">, Bearbeitungsfenster der
   StammdatenMaske über ValidationRules Required (finanz.js setzt dort „muss“ an die Beschriftung).
   Farbe = Fehlerfarbe des Themes (passt zu hell/dunkel und jeder Akzentfarbe). */
html {
    --muss-farbe: var(--color-sf-danger, #c50f1f);
}

.muss > label::after,
label.muss::after {
    content: " *";
    color: var(--muss-farbe);
    font-weight: 600;
}

/* nur das erste Eingabefeld der Zeile (das Pflichtfeld) – weitere Felder in derselben Zeile (z. B. Skonto) nicht */
.feld.fehlt .e-input-group:first-of-type,
.feld.fehlt .e-input-group.e-control-wrapper:first-of-type,
.feld.fehlt > input,
.feld.fehlt > textarea {
    border-color: var(--muss-farbe) !important;
    box-shadow: 0 0 0 1px var(--muss-farbe);
}

/* Einheiten: Code für XRechnung (EinheitencodeFeld) */
.einheitencode {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.einheitencode-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.einheitencode-fehlt {
    color: var(--muss-farbe);
}

.einheitencode-link {
    margin-left: auto;
    font-size: .8rem;
    color: var(--color-sf-primary);
}

/* Felder, die immer groß gespeichert werden (Kürzel) – schon beim Tippen groß */
input.grossbuchstaben {
    text-transform: uppercase;
}

/* Legende „* Pflichtfeld“ rechts neben der Protokollanzeige (MussLegende) */
.muss-legende {
    margin-left: auto;
    font-size: .8rem;
    opacity: .75;
    cursor: help;
    white-space: nowrap;
}

.muss-legende > span + span {
    margin-left: 14px;
}

/* Feld nach dem Anlegen nicht mehr änderbar (FestZeichen) – Schloss klein hinter der Beschriftung */
.fest-zeichen {
    margin-left: 4px;
    font-size: .8em;
    opacity: .7;
    cursor: help;
    vertical-align: baseline;
}

.muss-legende .stern {
    color: var(--muss-farbe);
    font-weight: 600;
}

.muss > label,
label.muss {
    cursor: help;
}

.muss-hinweis {
    grid-column: 2;
    color: var(--muss-farbe);
    font-size: .8rem;
}

@media (max-width: 640px) {
    .abschnitte { grid-template-columns: 1fr; }
    .feld { grid-template-columns: 1fr; }
    .feld .hinweis-text { grid-column: 1; }
}

.meldung-fehler {
    padding: 8px 12px;
    white-space: pre-line;   /* Aufzählungen (E-Rechnung: was fehlt) zeilenweise */
    border-radius: 4px;
    background: rgba(209, 52, 56, .1);
    color: #c50f1f;
}

/* Erfolg/Hinweis (z. B. E-Mail vorbereitet) – neutral grau */
.meldung-ok {
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(128, 128, 128, .12);
}

/* Rechte-Tabelle */
.rechte-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.rechte-tabelle th,
.rechte-tabelle td {
    padding: 3px 8px;
    border-bottom: 1px solid rgba(128, 128, 128, .2);
    text-align: center;
}

.rechte-tabelle th:first-child,
.rechte-tabelle td:first-child {
    text-align: left;
}

.rechte-tabelle tr.obermenue td {
    font-weight: 600;
    background: rgba(128, 128, 128, .08);
}

.rechte-tabelle th.klickbar,
.rechte-tabelle tr.obermenue td.klickbar {
    cursor: pointer;
}

.rechte-tabelle th.klickbar:hover {
    text-decoration: underline;
}

.status-punkt {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(128, 128, 128, .4);
    margin-right: 6px;
}

.status-punkt.an {
    background: #13a10e;
}

/* Reiter, die den Rest der Seite füllen (Benutzerstatus) */
.e-tab.status-reiter {
    flex: 1;
    min-height: 0;
}

/* ---------- Eigene Symbole (Phosphor Icons, MIT-Lizenz, wwwroot/icons/phosphor) ----------
   Für Dinge, die die Syncfusion-Schrift e-icons nicht hat (LKW, Handy, Euro …). Verwendung wie Syncfusion:
   Symbol "fi-truck" → <span class="e-icons fi-truck">. Farbe und Größe folgen der Schrift (currentColor, 1em).
   Neues Symbol: SVG von https://phosphoricons.com (Stil „regular“) nach icons/phosphor kopieren und hier eine Zeile ergänzen. */
.e-icons[class*=" fi-"]::before,
.e-icons[class^="fi-"]::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: var(--fi-bild) center / contain no-repeat;
    mask: var(--fi-bild) center / contain no-repeat;
}

.fi-truck { --fi-bild: url("icons/phosphor/truck.svg"); }
.fi-van { --fi-bild: url("icons/phosphor/van.svg"); }
.fi-truck-trailer { --fi-bild: url("icons/phosphor/truck-trailer.svg"); }
.fi-wrench { --fi-bild: url("icons/phosphor/wrench.svg"); }
.fi-device-mobile { --fi-bild: url("icons/phosphor/device-mobile.svg"); }
.fi-steering-wheel { --fi-bild: url("icons/phosphor/steering-wheel.svg"); }
.fi-currency-eur { --fi-bild: url("icons/phosphor/currency-eur.svg"); }
.fi-phone { --fi-bild: url("icons/phosphor/phone.svg"); }
.fi-envelope-simple { --fi-bild: url("icons/phosphor/envelope-simple.svg"); }
.fi-globe { --fi-bild: url("icons/phosphor/globe.svg"); }
.fi-bank { --fi-bild: url("icons/phosphor/bank.svg"); }
.fi-package { --fi-bild: url("icons/phosphor/package.svg"); }
.fi-coins { --fi-bild: url("icons/phosphor/coins.svg"); }
.fi-briefcase { --fi-bild: url("icons/phosphor/briefcase.svg"); }   /* im Phosphor-Stil nachgezeichnet: Steuerberater */

/* Excel-Export: Excel-Logo (Phosphor „microsoft-excel-logo“, gefüllt) in Excel-Grün statt Schriftfarbe (Vorgabe Volker 11.11.2026) */
/* Excel: einfarbig wie alle anderen Symbole (Vorgabe Volker 11.11.2026, vorher Excel-Grün) */
.fi-excel { --fi-bild: url("icons/phosphor/microsoft-excel-logo.svg"); }
.fi-caret-circle-left { --fi-bild: url("icons/phosphor/caret-circle-left.svg"); }
.fi-caret-circle-right { --fi-bild: url("icons/phosphor/caret-circle-right.svg"); }

.logo-vorschau {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    margin: 10px 0;
    padding: 10px;
    border: 1px dashed rgba(128, 128, 128, .4);
    border-radius: 6px;
    background: #fff;
}

.logo-vorschau img {
    max-height: 60px;
    max-width: 100%;
}

/* Menü anpassen */
.menue-tabelle td {
    padding: 2px 8px;
}

.menue-tabelle td:nth-child(2) {
    width: 34%;
}

.menue-tabelle td:nth-child(3) {
    width: 26%;
}

.menue-tabelle .e-input {
    width: 100%;
    box-sizing: border-box;
    padding: 3px 6px;
}

.menue-tabelle .e-input.zahl {
    width: 80px;
}

.menue-tabelle td.einrueckung {
    padding-left: 28px;
}

.menue-tabelle input::placeholder {
    opacity: .55;
}

/* ---------- Hilfe-Menü (Pages/Hilfe) – neutrale Farben + Akzentfarbe, passt zu jedem Design ---------- */
.hilfe-seite {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 1100px;
}

.ueber-kopf {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--akzent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--akzent) 25%, transparent);
}

.ueber-kopf h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: .01em;
}

.ueber-slogan {
    margin: 2px 0 6px;
    font-size: 1.05rem;
    opacity: .85;
}

.ueber-stand {
    margin: 0;
    font-size: .9rem;
    opacity: .75;
}

.hilfe-text p {
    margin: 0;
    max-width: 820px;
    line-height: 1.55;
}

.hilfe-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.hilfe-kacheln.zwei {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.hilfe-kachel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(128, 128, 128, .3);
    border-radius: 10px;
}

.hilfe-kachel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2px;
    font-size: 1rem;
}

.hilfe-kachel h2 .e-icons {
    color: var(--akzent);
}

.hilfe-kachel p {
    margin: 0;
}

.fortschritt {
    height: 10px;
    border-radius: 5px;
    background: rgba(128, 128, 128, .2);
    overflow: hidden;
}

.fortschritt-balken {
    height: 100%;
    min-width: 4px;
    border-radius: 5px;
    background: var(--akzent);
}

.hilfe-liste {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 14px;
    margin: 0;
    font-size: .9rem;
}

.hilfe-liste dt {
    opacity: .7;
}

.hilfe-liste dd {
    margin: 0;
}

.hilfe-neu {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: .9rem;
}

.hilfe-neu li {
    padding: 3px 0;
    border-bottom: 1px solid rgba(128, 128, 128, .15);
}

.hilfe-datum {
    display: inline-block;
    min-width: 46px;
    opacity: .6;
    font-variant-numeric: tabular-nums;
}

.hilfe-link {
    margin-top: auto;
    color: var(--akzent);
    font-size: .9rem;
    text-decoration: none;
}

.hilfe-link:hover {
    text-decoration: underline;
}

.hilfe-fuss {
    margin: 4px 0 0;
    font-size: .85rem;
    opacity: .6;
}

.hilfe-fuss a {
    color: inherit;
}

.hilfe-suche {
    width: 260px;
    display: flex;
    align-items: center;
}

.hilfe-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(128, 128, 128, .45);
    border-radius: 15px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
    opacity: .6;
}

.hilfe-chip.aktiv {
    opacity: 1;
    border-color: var(--akzent);
}

/* Art einer Änderung: Neu = Akzentfarbe, Verbessert = Akzent umrandet, Behoben = grau */
.art-punkt {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.art-neu.art-punkt { background: var(--akzent); }
.art-verbessert.art-punkt { border: 2px solid var(--akzent); box-sizing: border-box; }
.art-behoben.art-punkt { background: rgba(128, 128, 128, .7); }

.aenderung {
    display: flex;
    gap: 12px;
    padding: 7px 0;
}

.art-marke {
    flex-shrink: 0;
    align-self: flex-start;
    min-width: 82px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--akzent);
}

.art-marke.art-neu {
    background: var(--akzent);
    color: var(--akzent-text);
}

.art-marke.art-verbessert {
    color: var(--akzent);
}

.art-marke.art-behoben {
    border-color: rgba(128, 128, 128, .6);
    opacity: .8;
}

/* Erweiterungen ggü. Windows: „Geplant“ gestrichelt (kommt noch) */
.art-geplant.art-punkt { border: 2px dashed rgba(128, 128, 128, .8); box-sizing: border-box; }
.art-marke.art-geplant {
    border-style: dashed;
    border-color: rgba(128, 128, 128, .8);
}

.aenderung-titel {
    font-weight: 600;
}

.aenderung-bereich,
.aenderung-intern {
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 400;
    background: rgba(128, 128, 128, .15);
}

.aenderung-intern {
    background: color-mix(in srgb, var(--muss-farbe) 18%, transparent);
}

.aenderung p {
    margin: 2px 0 0;
    font-size: .9rem;
    line-height: 1.45;
    opacity: .9;
}

/* Aufklappbare Bereiche (HilfeKlappe): Obermenü/Kapitel/Stand = "gruppe", Maske/Abschnitt = "eintrag" */
.klappen {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.klappe {
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 8px;
}

.klappe.offen.klappe-gruppe {
    border-color: rgba(128, 128, 128, .4);
}

.klappe-kopf {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.klappe-kopf:hover {
    background: rgba(128, 128, 128, .1);
}

.klappe-kopf:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: -2px;
}

.klappe-gruppe > .klappe-kopf {
    font-size: 1.02rem;
}

.klappe-gruppe.offen > .klappe-kopf {
    border-bottom: 1px solid rgba(128, 128, 128, .2);
    border-radius: 8px 8px 0 0;
}

.klappe-eintrag.offen > .klappe-kopf {
    border-bottom: 1px solid rgba(128, 128, 128, .2);
    border-radius: 8px 8px 0 0;
}

.klappe-symbol {
    opacity: .75;
}

.klappe-gruppe > .klappe-kopf > .klappe-symbol {
    color: var(--akzent);
    opacity: 1;
}

.klappe-titel {
    font-weight: 600;
}

.klappe-nr {
    min-width: 22px;
    opacity: .6;
    font-variant-numeric: tabular-nums;
}

.klappe-pfeil {
    margin-left: auto;
    opacity: .6;
}

/* Kurztext unter dem Titel: ganze Zeile, eingerückt bis zum Titel */
.klappe-kurz {
    order: 10;
    flex-basis: 100%;
    padding-left: 28px;
    font-size: .85rem;
    font-weight: 400;
    opacity: .7;
}

.klappe-inhalt {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
}

.klappe-gruppe > .klappe-inhalt {
    padding-left: 22px;
}

.art-zahl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    opacity: .75;
}

/* Programmdokumentation */
.doku-status {
    padding: 1px 8px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 400;
    background: rgba(128, 128, 128, .15);
    opacity: .8;
}

.doku-status.fertig {
    background: color-mix(in srgb, var(--akzent) 18%, transparent);
    opacity: 1;
}

.doku-felder {
    border-collapse: collapse;
    font-size: .88rem;
    max-width: 900px;
}

.doku-felder th,
.doku-felder td {
    padding: 4px 10px 4px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(128, 128, 128, .15);
}

.doku-felder td:first-child {
    white-space: nowrap;
    font-weight: 600;
}

.doku-hinweise {
    margin: 0;
    padding-left: 18px;
    font-size: .88rem;
}

/* Allgemeine Programmbedienung */
.bedienung-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 900px;
    line-height: 1.5;
}

.bedienung-text p,
.bedienung-text ul,
.bedienung-text ol {
    margin: 0;
}

.bedienung-text ul,
.bedienung-text ol {
    padding-left: 20px;
}

.bedienung-text li {
    margin-bottom: 3px;
}

.bedienung-text kbd {
    padding: 0 5px;
    border: 1px solid rgba(128, 128, 128, .5);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: inherit;
    font-size: .85em;
    font-weight: 600;
    white-space: nowrap;
}

.bedienung-tabelle {
    width: 100%;
}

.bedienung-tabelle td:first-child {
    white-space: normal;
    font-weight: 400;
    width: 32%;
}

.bedienung-kasten {
    padding: 8px 12px;
    border-left: 4px solid var(--akzent);
    border-radius: 0 6px 6px 0;
    background: color-mix(in srgb, var(--akzent) 9%, transparent);
    font-size: .92rem;
}

.bedienung-kasten.tipp {
    border-left-color: #f5a623;
    background: rgba(245, 166, 35, .12);
}

/* Über Ordelo: Verweis-Listen in den Kacheln */
.hilfe-verweise a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.hilfe-verweise a:hover .verweis-text {
    color: var(--akzent);
    text-decoration: underline;
}

.hilfe-verweise .e-icons {
    opacity: .7;
}

.verweis-text {
    flex: 1;
}

.verweis-zahl {
    min-width: 0;
    text-align: right;
}

.verweis-nr {
    min-width: 22px;
}

/* Änderungen: Arbeitszeit der Umsetzung (nur Systemadmin) */
.arbeitszeit-zahlen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
}

.arbeitszeit-zahlen div {
    display: flex;
    flex-direction: column;
}

.arbeitszeit-zahlen strong {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.arbeitszeit-zahlen span {
    font-size: .8rem;
    opacity: .7;
}

.arbeitszeit-tabelle td {
    font-variant-numeric: tabular-nums;
}

.arbeitszeit-tabelle td:first-child {
    font-weight: 400;
}

/* ---------- Farben der Auftragsmasken (wie VFP DynamicBackColor/DynamicForeColor, 12.11.2026) ----------
   zelle-rot / zelle-gruen  allgemein für ZellKlasse (Aufträge zeigen seit 13.11.2026 stattdessen drei Statusspalten mit Symbolen)
   farbe-gelb  Netto unter EK (VFP gelb) · farbe-lila Netto weicht vom Preis der Preisgruppe ab (VFP lila Schrift)
   farbe-minus Bestand reicht nicht (VFP rote Schrift auf gelb) · farbe-hinweis Status/Lastschrift (VFP rot auf gelb)
   Hintergründe halbtransparent, damit sie hell und dunkel lesbar bleiben. */
html {
    --farbe-rot-hg: rgba(229, 57, 53, .30);
    --farbe-gruen-hg: rgba(0, 200, 83, .28);
    --farbe-gelb-hg: rgba(255, 235, 59, .45);
    --farbe-lila: #a000a0;
    --farbe-rot: #d00000;
}

html.modus-dunkel {
    --farbe-gelb-hg: rgba(255, 235, 59, .22);
    --farbe-lila: #e879f9;
    --farbe-rot: #ff6b6b;
}

@media (prefers-color-scheme: dark) {
    html.modus-system {
        --farbe-gelb-hg: rgba(255, 235, 59, .22);
        --farbe-lila: #e879f9;
        --farbe-rot: #ff6b6b;
    }
}

.e-grid .e-rowcell.zelle-rot { background-color: var(--farbe-rot-hg) !important; }
.e-grid .e-rowcell.zelle-gruen { background-color: var(--farbe-gruen-hg) !important; }
.farbe-gelb { background-color: var(--farbe-gelb-hg) !important; }
.farbe-lila { color: var(--farbe-lila) !important; font-weight: 600; }
.farbe-minus { background-color: var(--farbe-gelb-hg) !important; color: var(--farbe-rot) !important; font-weight: 600; }
.farbe-hinweis, .farbe-hinweis .e-input, .farbe-hinweis input { background-color: var(--farbe-gelb-hg) !important; color: var(--farbe-rot) !important; font-weight: 600; }
.legende-feld { display: inline-block; padding: 0 .4rem; border-radius: 3px; font-size: .8rem; }

/* Reiter, die nur Bemerkungs-/Journalfelder enthalten: fett, sobald dort etwas eingetragen ist (Vorgabe Volker 13.11.2026, alle Masken).
   In der Maske: <TabItem CssClass="@(leer ? null : "reiter-gefuellt")"> */
.e-tab .e-tab-header .e-toolbar-item.reiter-gefuellt .e-tab-text {
    font-weight: 700;
}

/* Detailseiten mit Positionen (Aufträge, Auftragserfassung, Internetbestellungen, Bestellungen, Wareneingänge – Vorgabe Volker 13.11.2026):
   Kopf, Leiste, Reiter usw. bleiben 1100 px breit, der Positionsblock (Klasse positionen-voll) wächst mit dem Browserfenster. */
.seite.bd {
    max-width: none;
}

.seite.bd > :not(.bd-inhalt):not(.positionen-voll),
.seite.bd > .bd-inhalt > :not(.positionen-voll) {
    max-width: 1100px;
}

/* Legende unter den Positionen (alle Masken mit Positionen, Vorgabe Volker 13.11.2026) */
.positionen-legende {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 8px;
}

.positionen-legende .legende-kuerzel {
    white-space: nowrap;
}

/* Legende unter einer Liste (StammdatenMaske Unten) – der Abstand kommt vom gap der Maske */
.maske-unten {
    margin-top: 0;
}

/* Statusspalten mit Symbolen ganz links (Aufträge: nicht bezahlt / per E-Mail / an Steuerberater, Volker 13.11.2026) */
.status-symbol {
    font-size: 1.05rem;
    vertical-align: middle;
}

.status-symbol.offen,
.e-grid .e-rowcell .e-icons.status-symbol.offen {   /* Syncfusion färbt e-icons im Grid sonst grau */
    color: var(--farbe-rot);
}

.legende-symbol {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Position mit Artikel-Nr., die es im Artikelstamm nicht (mehr) gibt – ArtikelId leer (früher „?“ hinter der Nummer, Vorgabe Volker 13.11.2026) */
.artikel-fehlt {
    background-color: var(--farbe-rot-hg) !important;
}

/* Schlüsselfeld mit Haken „Deaktiviert“ daneben (Standard für Stammdaten, Volker 13.11.2026) */
.schluessel-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-width: 0;
}

/* Hinweis „Deaktiviert“ im Kopf einer Detailseite (Firmen, Artikel, Interessenten …) */
.deaktiviert-abzeichen {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(196, 43, 28, .15);
}

/* Transportverwaltung (14.11.2026): kompakte Bearbeitungsfenster der Stammdaten (StammdatenMaske <Formular>) */
.tr-formular {
    display: flex;
    flex-direction: column;
}

.tr-formular .feld {
    grid-template-columns: 140px minmax(0, 1fr);
    margin: 4px 0;
}

.tr-zeile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.tr-zeile > .e-input-group:not(.e-numeric):not(.e-date-wrapper):not(.e-ddl) {
    flex: 1 1 120px;
}

.tr-zeile > span {
    font-size: .88rem;
    opacity: .85;
}

.tr-block {
    margin: 8px 0;
    padding: 6px 10px;
    border: 1px solid rgba(128, 128, 128, .3);
    border-radius: 6px;
}

/* Prüftermine (Zugmaschinen, Auflieger, Fahrer): Nächster / Letzter SOLL / Letzter IST, Farben wie VFP (rot = fällig/zu spät, grün = in 21 Tagen) */
.tr-termine {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) repeat(3, minmax(125px, 150px));
    gap: 4px 8px;
    align-items: center;
}

.tr-termine > .tr-termin-kopf {
    font-size: .8rem;
    opacity: .75;
}

.termin-rot .e-input-group, .termin-rot input { background-color: var(--farbe-rot-hg) !important; }
.termin-gruen .e-input-group, .termin-gruen input { background-color: var(--farbe-gruen-hg) !important; }
.legende-feld.termin-rot { background-color: var(--farbe-rot-hg); }
.legende-feld.termin-gruen { background-color: var(--farbe-gruen-hg); }

/* Zwei Spalten im Bearbeitungsfenster der Transport-Stammdaten, ab schmalen Fenstern untereinander */
.tr-zwei {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 18px;
}

@media (max-width: 760px) {
    .tr-zwei { grid-template-columns: minmax(0, 1fr); }
    .tr-termine { grid-template-columns: minmax(70px, 1fr) repeat(3, minmax(0, 1fr)); }
}

/* Auflieger: Reifen, Bremsen, Anschlussstücke, Schläuche als Raster (Kopfzeile + Zeilen) */
.tr-raster { display: grid; gap: 4px 8px; align-items: center; }
.tr-reifen { grid-template-columns: 100px 125px minmax(80px, 1fr) 60px 125px 140px minmax(80px, 1fr) 125px; }
.tr-bremsen { grid-template-columns: 120px 180px 180px; }
.tr-anschluesse { grid-template-columns: minmax(200px, 1fr) 90px 140px; }
.tr-schlaeuche { grid-template-columns: 120px 90px 140px 140px minmax(160px, 1fr); }
.tr-sonstiges { grid-template-columns: minmax(120px, 1fr) 90px 140px; align-content: start; }
.tr-reiter .e-content { padding-top: 8px; }
.tr-wechsel { grid-template-columns: 130px minmax(0, 1fr) 90px; font-size: .85rem; margin-top: 6px; max-height: 220px; overflow-y: auto; }
details.tr-block > summary { cursor: pointer; font-weight: 600; }
.tr-kpos { grid-template-columns: minmax(150px, 1.4fr) minmax(140px, 2fr) 90px 110px 110px 34px; }
.tr-raster .z { text-align: right; }

/* zeile-rot: rote Schrift (z. B. Abfahrtskontrollen mit Defekten bzw. nicht fahrbereit) */
.e-grid .e-row.zeile-rot .e-rowcell,
.e-grid .e-row.zeile-rot:hover .e-rowcell,
.e-grid .e-row.zeile-rot .e-rowcell.e-selectionbackground { color: var(--farbe-rot) !important; }
.tr-kontrolle { grid-template-columns: 40px minmax(180px, 2fr) 90px 100px 50px minmax(140px, 1.4fr) 170px; }
.tr-wartung { grid-template-columns: 40px minmax(200px, 2fr) 110px 100px minmax(160px, 1.5fr); }
.legende-rot { color: var(--farbe-rot); font-weight: 600; }

/* E-Mail vorbereitet/gesendet (Baustein MailHinweis) */
.mail-hinweis {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0;
}
.mail-hinweis > span:nth-child(2) { flex: 1 1 240px; }

/* Mehrere Felder in einer Zeile im Bearbeitungsfenster (z. B. „von – bis“), bricht auf schmalen Bildschirmen um (17.11.2026) */
.zeile-felder {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

/* Zwischenüberschrift in Bearbeitungsfenstern (z. B. Einlese-Vorgaben, Buchungen – 17.11.2026) */
.abschnitt-titel {
    margin: 12px 0 4px;
    font-size: .9rem;
    font-weight: 600;
    opacity: .8;
    border-bottom: 1px solid rgba(128, 128, 128, .25);
    padding-bottom: 2px;
}

.abschnitt-titel:first-child {
    margin-top: 0;
}

/* Ticket-System: Status wie die VFP-Farbe der Satzanzeige (gelb offen, grün in Arbeit, rot überfällig, grau erledigt) */
.ticket-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: .8rem;
    margin-right: 6px;
}
.ticket-offen { background: rgba(234, 179, 8, .25); }
.ticket-arbeit { background: rgba(34, 197, 94, .25); }
.ticket-ueberfaellig { background: rgba(220, 38, 38, .25); font-weight: 600; }
.ticket-erledigt { background: rgba(128, 128, 128, .2); }

/* Felder eines Bearbeitungsfensters als Gruppe sperren (<fieldset disabled>) – ohne eigenen Rahmen (ALLE-Positionen, 17.11.2026) */
.ap-felder {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Kopfsatz-Spalte mit Schloss und Knopf „öffnen“ in Positionslisten */
.kopf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Ausgabe-Fenster: was für die E-Rechnung fehlt */
.ad-erechnung-fehlt ul { margin: 4px 0 0 18px; padding: 0; }

/* =====================================================================================================================
   Neugestaltung 18.11.2026 (Vorschlag „Ordelo Neugestaltung“, Entscheidungen Volker 18.11.2026)
   Drei Farbebenen wie SAP/Microsoft/IFS/Sage: Marke (Ordelo-Blau/Orange) im Rahmen, Bereichsfarben je Obermenü
   (Finanz.Kern/Darstellung/Bereichsfarben, als --bf/--bf-hell am Element), Zustandsfarben (gut/Achtung/kritisch).
   html.stil-farbig / html.stil-schlicht und html.leiste-dunkel / html.leiste-hell setzt ThemeAuswahl (Dialog „Darstellung“).
   ===================================================================================================================== */
html {
    --marke: #1f3a68;
    --marke-orange: #f5a623;
    --flaeche: #ffffff;
    --karte: #ffffff;
    --karte-rand: rgba(128, 128, 128, .28);
    --karte-schatten: 0 1px 2px rgba(20, 30, 50, .06), 0 2px 8px rgba(20, 30, 50, .05);
    --gut: #107c10;        --gut-hg: rgba(16, 124, 16, .12);
    --warn: #a35c00;       --warn-hg: rgba(245, 166, 35, .22);
    --schlecht: #c50f1f;   --schlecht-hg: rgba(197, 15, 31, .12);
    --neutral-hg: rgba(128, 128, 128, .14);
    --st-blau: #0f6cbd;    --st-blau-hg: rgba(15, 108, 189, .12);
    --st-petrol: #03787c;  --st-petrol-hg: rgba(3, 120, 124, .13);
    --st-lila: #6b3fa0;    --st-lila-hg: rgba(107, 63, 160, .13);
    --leiste-hg: #1f3a68;
    --leiste-text: #e6ecf5;
}

html.stil-farbig {
    --flaeche: #f3f5f9;
    --tabelle-kopf: #eef1f5;
    --tabelle-zebra: #f7f8fa;
}

html.modus-dunkel {
    --karte: #1f1f1f;
    --karte-rand: rgba(160, 160, 160, .22);
    --karte-schatten: 0 1px 2px rgba(0, 0, 0, .45);
    --gut: #6ccb5f;        --gut-hg: rgba(108, 203, 95, .16);
    --warn: #f7b84a;       --warn-hg: rgba(247, 184, 74, .18);
    --schlecht: #ff8a92;   --schlecht-hg: rgba(255, 138, 146, .16);
    --st-blau: #6cb4f5;    --st-blau-hg: rgba(108, 180, 245, .16);
    --st-petrol: #4cc4c8;  --st-petrol-hg: rgba(76, 196, 200, .16);
    --st-lila: #b894e6;    --st-lila-hg: rgba(184, 148, 230, .18);
    --leiste-hg: #1c3561;   /* auch dunkel Ordelo-Blau (Volker 18.11.2026), nur etwas tiefer */
}

html.modus-dunkel.stil-farbig,
html.modus-dunkel.stil-schlicht {
    --flaeche: #1f1f1f;
}

html.modus-dunkel.stil-farbig {
    --flaeche: #141518;
    --tabelle-kopf: #2e3036;
    --tabelle-zebra: #28292e;
}

@media (prefers-color-scheme: dark) {
    html.modus-system {
        --karte: #1f1f1f;
        --karte-rand: rgba(160, 160, 160, .22);
        --karte-schatten: 0 1px 2px rgba(0, 0, 0, .45);
        --gut: #6ccb5f;        --gut-hg: rgba(108, 203, 95, .16);
        --warn: #f7b84a;       --warn-hg: rgba(247, 184, 74, .18);
        --schlecht: #ff8a92;   --schlecht-hg: rgba(255, 138, 146, .16);
        --st-blau: #6cb4f5;    --st-blau-hg: rgba(108, 180, 245, .16);
        --st-petrol: #4cc4c8;  --st-petrol-hg: rgba(76, 196, 200, .16);
        --st-lila: #b894e6;    --st-lila-hg: rgba(184, 148, 230, .18);
        --leiste-hg: #1c3561;   /* auch dunkel Ordelo-Blau (Volker 18.11.2026), nur etwas tiefer */
        --flaeche: #1f1f1f;
    }

    html.modus-system.stil-farbig {
        --flaeche: #141518;
        --tabelle-kopf: #2e3036;
        --tabelle-zebra: #28292e;
    }
}

/* ---- Fläche: getönter Hintergrund, Inhalte als Karten (nur „Farbig“) ---- */
html.stil-farbig body,
html.stil-farbig.modus-dunkel body {
    background: var(--flaeche);
}

@media (prefers-color-scheme: dark) {
    html.stil-farbig.modus-system body {
        background: var(--flaeche);
    }
}

html.stil-farbig .app-inhalt .abschnitt {
    background: var(--karte);
    border-color: var(--karte-rand);
    box-shadow: var(--karte-schatten);
}

html.stil-farbig .app-inhalt .e-grid {
    box-shadow: var(--karte-schatten);
}

/* ---- Kopfleiste in Ordelo-Blau ---- */
.e-appbar.kopf-marke,
.e-appbar.e-dark.kopf-marke {
    background: var(--marke) !important;
    color: #fff !important;
}

/* ---- Maskenkopf: Symbol im Feld der Bereichsfarbe (--bf am <main>, MainLayout) ---- */
html.stil-farbig .seite-kopf h2 > .e-icons:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55em;
    height: 1.55em;
    margin-right: .25em;
    border-radius: 8px;
    background: var(--bf, var(--akzent));
    color: #fff;
    font-size: .8em;
    vertical-align: .1em;
}

html.stil-farbig .seite-kopf h2 {
    display: flex;
    align-items: center;
    gap: .2em;
}

/* ---- Status als farbiges Feld (Baustein StatusPille) ---- */
.status-pille {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.status-pille.neutral { background: var(--neutral-hg); }
.status-pille.gut { background: var(--gut-hg); color: var(--gut); }
.status-pille.warn { background: var(--warn-hg); color: var(--warn); }
.status-pille.schlecht { background: var(--schlecht-hg); color: var(--schlecht); }
.status-pille.blau { background: var(--st-blau-hg); color: var(--st-blau); }
.status-pille.petrol { background: var(--st-petrol-hg); color: var(--st-petrol); }
.status-pille.lila { background: var(--st-lila-hg); color: var(--st-lila); }

/* Markierte Grid-Zeile: Syncfusion färbt die Schrift weiß – Feld dann halbtransparent hell */
.e-grid .e-rowcell.e-selectionbackground .status-pille {
    color: inherit;
}

html.stil-schlicht .status-pille {
    background: none;
    color: inherit;
    padding: 0;
    font-weight: 400;
    font-size: inherit;
}

/* ---- Kennzahlen im Maskenkopf (Firma, Artikel – Neugestaltung 18.11.2026): kleine Felder neben dem Titel ---- */
.kopf-kennzahl {
    display: inline-flex;
    flex-direction: column;
    padding: 3px 12px;
    border-radius: 8px;
    border: 1px solid var(--karte-rand, rgba(128, 128, 128, .3));
    background: var(--karte, transparent);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.kopf-kennzahl small {
    font-weight: 400;
    font-size: .72rem;
    opacity: .65;
}

.kopf-kennzahl .kk-neben {
    font-weight: 400;
    font-size: .72rem;
    opacity: .65;
    margin-left: 4px;
}

a.kopf-kennzahl:hover {
    border-color: var(--akzent);
}

.kopf-kennzahl.warn { color: var(--warn); }
.kopf-kennzahl.schlecht { color: var(--schlecht); }

/* Kennzahlen rechtsbündig im Maskenkopf (Volker 18.11.2026); bei wenig Platz rutschen sie in die nächste Zeile, bleiben aber rechts */
.kopf-kennzahlen {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-self: center;
    gap: 6px;
}

/* ---- Listen als Karten (Volker 18.11.2026: „wie in der Neugestaltung – weiß/grau wechselnd, rund“), nur „Farbig“ ----
   Maskenkopf der Listen (StammdatenMaske: .maske-kopf) wie .seite-kopf mit Symbol im Feld der Bereichsfarbe, Anzahl als Feld.
   Tabelle: runde Karte mit Schatten, Kopfzeile grau getönt, Zeilen abwechselnd weiß/grau, Hover in der Bereichsfarbe.
   Syncfusion-Farben werden nur innerhalb der Tabelle über ihre Variablen umgestellt – kein overflow:hidden (Filter-Popups liegen im Grid). */
html.stil-farbig .maske-kopf {
    align-items: center;
    gap: 10px;
}

html.stil-farbig .maske-kopf h2 {
    display: flex;
    align-items: center;
    gap: .2em;
}

html.stil-farbig .maske-kopf h2 > .e-icons:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55em;
    height: 1.55em;
    margin-right: .25em;
    border-radius: 8px;
    background: var(--bf, var(--akzent));
    color: #fff;
    font-size: .8em;
}

html.stil-farbig .maske-kopf .anzahl {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--neutral-hg);
    font-size: .8rem;
    font-weight: 500;
    opacity: 1;
}

html.stil-farbig .maske-kopf .anzahl.anzahl-andere {
    background: none;
    padding: 0;
    opacity: .65;
}

html.stil-farbig .maske-kopf .anzahl.gefiltert {
    background: var(--warn-hg);
    color: var(--warn);
    font-weight: 600;
}

html.stil-farbig .app-inhalt .e-grid {
    --color-sf-content-bg-color-alt1: var(--tabelle-kopf);   /* Kopfzeile, Gruppierfeld, Summen */
    --color-sf-content-bg-color-alt2: var(--tabelle-zebra);  /* jede zweite Zeile */
    --color-sf-table-bg-color-hover: color-mix(in srgb, var(--karte) 88%, var(--bf, #0f6cbd));
    border-radius: 12px;
    border-color: var(--karte-rand);
    background: var(--karte);
}

html.stil-farbig .app-inhalt .e-grid .e-altrow,
html.stil-farbig .app-inhalt .e-grid .e-altrow .e-rowcell {
    background-color: var(--color-sf-content-bg-color-alt2);
}

/* Ecken: oberstes und unterstes Element der Tabelle rund (Gruppierfeld bzw. Kopfzeile oben, Seitenleiste bzw. Summen unten) */
html.stil-farbig .app-inhalt .e-grid > .e-groupdroparea,
html.stil-farbig .app-inhalt .e-grid > .e-toolbar,
html.stil-farbig .app-inhalt .e-grid > .e-gridheader:first-child {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

html.stil-farbig .app-inhalt .e-grid > .e-gridpager,
html.stil-farbig .app-inhalt .e-grid > .e-gridfooter:last-child,
html.stil-farbig .app-inhalt .e-grid > .e-gridcontent:last-child,
html.stil-farbig .app-inhalt .e-grid > .e-gridcontent:last-child .e-content {
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

html.stil-farbig .app-inhalt .e-grid .e-groupdroparea {
    font-size: .78rem;
    opacity: 1;
    color: rgba(128, 128, 128, .95);
    padding-top: 6px;
    padding-bottom: 6px;
}

html.stil-farbig .app-inhalt .e-grid .e-headercell .e-headertext {
    font-weight: 600;
    opacity: .78;
}

html.stil-farbig .app-inhalt .e-grid .e-rowcell {
    border-color: rgba(128, 128, 128, .13);
}

html.stil-farbig .app-inhalt .e-grid .e-gridfooter .e-summarycell {
    font-weight: 600;
}

html.stil-farbig .app-inhalt .e-grid .e-gridpager,
html.stil-farbig .app-inhalt .e-grid .e-pager {
    background: var(--karte);
}
