/* Rechnungswesen – eigenes Erscheinungsbild. Aufbau nach den Masken des Originals, Gestaltung eigenständig. */
:root {
    --leiste: #26394d;
    --leiste-hell: #33495f;
    --leiste-dunkel: #1c2b3a;
    --leiste-text: #e6edf3;
    --leiste-grau: #9fb0c0;
    --akzent: #1f7a8c;
    --akzent-hell: #e3f1f4;
    --kopf: #3a4f63;
    --kopf-text: #f4f7fa;
    --flaeche: #e9ecef;
    --kasten: #f6f7f8;
    --rand: #b9c1c9;
    --rand-hell: #d6dbe0;
    --text: #1d2329;
    --grau: #6b7680;
    --warnung: #b3261e;
    --gelb: #fff7d1;
    --gelb-rand: #e8d98f;
    --zeile: #f1f4f6;
    --zeile-hover: #e6f0f3;
    --f-blau: #a9cdf5;
    --f-magenta: #f0b3e2;
    --f-gruen: #a8e2b3;
    --f-rot: #ffaaa3;
    --schrift: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
/*
 * Grundgröße der Darstellung: Alle Maße der Masken sind in px für 100 % angelegt; --zoom vergrößert sie gleichmäßig
 * (Grundgröße aus config/rechnungswesen.php mal Zoomstufe des Benutzers, gesetzt am html-Element). Viewport-Einheiten
 * werden durch --zoom geteilt, damit die Masken trotz Vergrößerung genau ins Fenster passen.
 */
:root { --zoom: 1; }
html { zoom: var(--zoom); }
html, body { height: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 12.5px; color: var(--text); background: var(--flaeche); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent); }
.icon { flex-shrink: 0; vertical-align: -2px; }
.grau { color: var(--grau); }
.blau { color: var(--text-blau-40); }
.rot { color: var(--warnung); }
.leer { color: var(--grau); font-style: italic; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Rahmen */
.app { display: grid; grid-template-columns: 200px 1fr; height: calc(100vh / var(--zoom)); }
.leiste { background: var(--leiste); color: var(--leiste-text); display: flex; flex-direction: column; min-height: 0; }
.leiste-modul { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--leiste-dunkel); font-weight: 600; letter-spacing: .02em; }
.leiste-modul .modul-icon { width: 18px; height: 18px; color: var(--f-blau); }
.leiste-benutzer { text-align: center; font-weight: 600; padding: 4px 6px 2px; border-top: 1px solid var(--leiste-hell); }
.leiste-kuerzel { text-align: center; background: var(--gelb); color: var(--text-gelb-21); font-weight: 600; padding: 1px 6px; }
.leiste-titel { text-align: center; font-weight: 600; font-size: 12px; padding: 3px 6px; background: var(--leiste-dunkel); color: var(--leiste-text); }
.leiste-inhalt { flex: 1; overflow-y: auto; padding: 4px 0; }
.leiste-fuss { border-top: 1px solid var(--leiste-hell); padding: 4px 0 6px; }
.aktionen, .verknuepft, .funktionen, .fuss-funktionen { list-style: none; margin: 0; padding: 0; }
.aktion { display: flex; gap: 6px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 3px 10px; cursor: pointer; font-weight: 600; }
.aktion .pfeil { opacity: .8; }
.aktion.farbe-blau { color: var(--f-blau); }
.aktion.farbe-magenta { color: var(--f-magenta); }
.aktion.farbe-gruen { color: var(--f-gruen); }
.aktion.farbe-rot { color: var(--f-rot); }
.aktion:hover:not(:disabled) { background: var(--leiste-hell); }
.aktion:disabled { opacity: .45; cursor: default; }
.aktion.an { background: var(--akzent); color: var(--text-grau-100); }
.aktionen .abstand { height: 10px; }
.aktionen .abstand.gross { height: 30px; }
/* Reicht die Höhe der Funktionsleiste nicht, werden zuerst die großen Abstände kleiner, damit die letzten Einträge
   („… löschen“) sichtbar bleiben; erst wenn das nicht reicht, scrollt die Liste der Funktionen (sonst schöben sich bei
   kleinem Fenster die letzten Einträge unter „Verknüpfte Vorgänge“) */
.leiste-inhalt { display: flex; flex-direction: column; }
.leiste-inhalt > * { flex: none; }
.leiste-inhalt > ul.aktionen { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden auto; }
.leiste-inhalt > ul.aktionen > * { flex: none; }
.leiste-inhalt > ul.aktionen > li.abstand.gross { flex: 0 1 30px; height: auto; min-height: 6px; }
/* Spalte neben der Übersichtsliste (Projekt bzw. Bearbeiter je Zeile): füllt die Leiste. Ihre Einträge sind frei gesetzt und
   geben der Liste keine Höhe – ohne diese Regeln wäre die Spalte unsichtbar */
.leiste-inhalt > ul.aktionen.mit-zeilenspalte { flex: 1 1 0; overflow: hidden; }
.leiste-inhalt > ul.aktionen.mit-zeilenspalte > .ue-projekte { flex: 1 1 auto; height: auto; min-height: 0; }
.leiste-inhalt .leiste-titel { margin-top: 6px; }
.verknuepft li { display: flex; gap: 6px; padding: 3px 10px; color: var(--leiste-grau); font-weight: 600; }
.verknuepft .datum { margin-left: auto; }
.funktionen { border-bottom: 1px solid var(--leiste-hell); padding: 2px 0; }
.funktionen li { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 6px; }
.funktionen .modul-symbol { color: var(--leiste-grau); }
.funktionsliste { list-style: none; margin: 0; padding: 2px 0; max-height: calc(52vh / var(--zoom)); overflow-y: auto; background: var(--flaeche-grau-100); border: 1px solid var(--rand); border-radius: 3px; }
.funktionsliste .trenner { border-top: 1px dashed var(--rand); margin: 3px 6px; }
.funktionseintrag { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 2px 10px; cursor: pointer; }
.funktionseintrag:hover:not(:disabled), .funktionseintrag:focus-visible { background: var(--flaeche-blau-46); color: var(--text-grau-100); outline: none; }
.funktionseintrag:disabled { color: var(--text-grau-67); cursor: default; }
.funktionsliste .leer { padding: 6px 10px; }
.modul-symbol-knopf { background: none; border: 0; padding: 2px; border-radius: 3px; cursor: pointer; display: inline-flex; }
.modul-symbol-knopf:hover { background: var(--gelb); }
.modul-symbol-knopf:hover .modul-symbol { color: var(--text-gelb-21); }
.funktionen li a, .funktionen li > span:not(.lupe) { flex: 1; color: var(--leiste-text); text-decoration: none; padding: 3px 0; font-weight: 600; }
.funktionen li a:hover { text-decoration: underline; }
.funktionen li.inaktiv > span:not(.lupe) { color: var(--leiste-grau); font-weight: 500; }
.lupe { background: none; border: 0; color: var(--leiste-text); padding: 3px 4px; border-radius: 3px; cursor: pointer; display: inline-flex; }
.lupe:hover { background: var(--leiste-hell); }
span.lupe { color: var(--leiste-grau); cursor: default; }
.fuss-funktionen { display: grid; grid-template-columns: 1fr 1fr; padding-top: 4px; }
.fuss-funktionen .aktion { padding: 2px 8px; font-size: 12px; color: var(--f-blau); }
.leiste-fuss form { margin: 0; }
.navigator { display: flex; align-items: center; gap: 4px; margin: 0 8px; background: var(--leiste-hell); border-radius: 3px; padding: 2px; }
.nav-pfeil { background: none; border: 0; color: var(--leiste-text); cursor: pointer; padding: 2px 6px; }
.navigator-zahlen { flex: 1; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.alle-knopf { display: block; margin: 4px auto 0; background: none; border: 0; color: var(--leiste-grau); font-size: 11px; cursor: pointer; text-decoration: underline; }

.haupt { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.kopfleiste { display: flex; align-items: center; justify-content: space-between; height: 34px; background: var(--kopf); color: var(--kopf-text); padding: 0 8px 0 12px; }
.modultitel { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf-knoepfe { display: flex; background: var(--flaeche-grau-96); border-radius: 3px; overflow: hidden; }
.kopfknopf { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; border: 0; border-right: 1px solid var(--rand); background: transparent; padding: 2px 8px; cursor: pointer; text-decoration: none; color: var(--text); font-weight: 700; }
.kopfknopf:last-child { border-right: 0; }
.kopfknopf.breit { min-width: 70px; }
.kopfknopf:hover { background: var(--akzent-hell); }
.inhalt { flex: 1; overflow: auto; padding: 8px 12px 12px; }

/* ------------------------------------------------------------------ Reiter */
.reiterzeile { display: flex; justify-content: space-between; align-items: stretch; background: var(--flaeche-grau-90); border-radius: 3px; padding: 3px 3px 0; }
.reiter { display: flex; gap: 2px; }
.reiter-knopf { border: 0; background: transparent; padding: 5px 10px; cursor: pointer; font-weight: 600; border-radius: 3px 3px 0 0; }
.reiter-knopf:hover { background: var(--flaeche-grau-95); }
.reiter-knopf.aktiv { background: var(--flaeche-blau-78); }
.reiter-knopf.infos { margin-left: auto; }
.zeitstempel { text-align: right; color: var(--grau); font-size: 11px; padding: 2px 4px 4px; }
.reiter-inhalt { padding-top: 2px; }

/* ------------------------------------------------------------------ Kästen */
.kasten { background: var(--kasten); border: 1px solid var(--rand); border-radius: 3px; margin: 0 0 8px; min-width: 0; }
.kasten-kopf { display: grid; grid-template-columns: 22px 1fr 22px; align-items: center; height: 20px; background: var(--kopf); color: var(--kopf-text); border-radius: 3px 3px 0 0; font-size: 11.5px; font-weight: 600; text-align: center; padding: 0 3px; }
.kopf-pfeil { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--flaeche-grau-94); color: var(--symbol); font-size: 8px; }
.kasten > textarea.breit { width: calc(100% - 16px); margin: 8px; }
fieldset.kasten { padding: 0 0 6px; }
fieldset.kasten > legend { float: left; width: 100%; height: 20px; line-height: 20px; margin: 0 0 6px; padding: 0; background: var(--kopf); color: var(--kopf-text); border-radius: 3px 3px 0 0; font-size: 11.5px; font-weight: 600; text-align: center; }
fieldset.kasten > legend + * { clear: both; }
fieldset.kasten > table.liste { width: calc(100% - 12px); margin: 0 6px; }
.feld, input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
    border: 1px solid var(--rand); border-radius: 2px; padding: 1px 5px; background: var(--flaeche-grau-100); min-width: 0; width: 100%; height: 21px;
}
textarea { height: auto; resize: vertical; }
/* Mehrzeilige Felder mit der Klasse "feld": Höhe aus rows statt der 21px der einzeiligen Felder */
textarea.feld { height: auto; }
.feld.ro { display: inline-block; background: var(--flaeche-grau-94b); color: var(--text-grau-21); white-space: nowrap; overflow: hidden; line-height: 18px; }
.gelb, .feld.gelb { background: var(--gelb) !important; border-color: var(--gelb-rand); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
input:disabled, select:disabled, textarea:disabled { background: var(--flaeche-grau-94b); color: var(--text-blau-35); }
.schmal { max-width: 70px; }
.zweifach { display: flex; gap: 6px; align-items: center; }
.anzeige { display: inline-block; padding: 2px 0; }
.warnung { color: var(--warnung); font-weight: 700; }
.statuszeile { min-height: 16px; text-align: right; padding: 0 4px 2px; }
.hinweisband { background: var(--flaeche-gelb-98); border: 1px solid var(--linie-gelb-87); padding: 6px 10px; border-radius: 3px; margin: 4px 0 8px; }
.leerzustand { background: var(--flaeche-grau-100); border: 1px dashed var(--rand); padding: 30px; text-align: center; color: var(--grau); border-radius: 4px; }

/* ------------------------------------------------------------------ Erfassung */
.erfassung-oben { display: grid; grid-template-columns: minmax(250px, 22%) 1fr; gap: 14px; }
.kunde-inhalt { display: flex; gap: 6px; padding: 6px 6px 6px 10px; }
.anschrift-anzeige { flex: 1; min-height: 86px; line-height: 1.35; padding: 4px 0 4px 4px; }
.kunde-knoepfe { display: flex; flex-direction: column; gap: 2px; }
.projekt-link { margin-top: 8px; color: var(--text-blau-40); font-weight: 600; }
.symbolknopf { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 18px; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--symbol); }
.symbolknopf:hover:not(:disabled) { background: var(--akzent-hell); border-radius: 3px; }
.symbolknopf:disabled { opacity: .4; cursor: default; }
.zusatz-raster { display: grid; grid-template-columns: 80px 1fr 60px 60px; gap: 3px 6px; align-items: center; padding: 8px 10px; }
.zusatz-raster label { color: var(--text-blau-37); }
.zusatz-raster label.rechts { text-align: right; }
.zusatz-raster .span3 { grid-column: span 3; }
.zusatz-raster .zeilenabstand { grid-column: 1 / -1; height: 10px; }
.zusatz-raster .kopien { background: var(--flaeche-grau-94b); border: 1px solid var(--rand); border-radius: 2px; padding: 0 5px; }
.vorgang-raster { display: grid; grid-template-columns: minmax(250px, 22%) 1fr; gap: 14px; padding: 6px 10px; }
.vorgang-raster textarea { height: 36px; }
.vorgang-felder { display: grid; grid-template-columns: 80px 1fr; gap: 3px 6px; align-items: center; }
.vorgang-felder label { color: var(--text-blau-37); }
.kasten-positionen { margin-bottom: 0; }
/* so hoch, dass Kästen und Summen ohne Rollen der Seite ins Fenster passen (Wunsch GE 02.12.2026); die Liste rollt in sich */
.positionstabelle { background: var(--flaeche-grau-100); overflow: auto; height: calc((100vh / var(--zoom)) - var(--ueber-kopf) - 560px); min-height: 118px; }
table.liste { width: 100%; border-collapse: collapse; }
table.liste th { position: sticky; top: 0; background: var(--flaeche-grau-94b); text-align: left; font-weight: 500; color: var(--text-blau-41); font-size: 11.5px; padding: 3px 6px; border-bottom: 1px solid var(--rand-hell); white-space: nowrap; }
table.liste th.zahl { text-align: right; }
table.liste td { padding: 2px 6px; vertical-align: top; }
table.liste tbody tr:nth-child(even) { background: var(--zeile); }
table.liste tr.klickbar { cursor: pointer; }
table.liste tr.klickbar:hover { background: var(--zeile-hover); }
table.liste tr.gewaehlt { background: var(--akzent-hell); }
table.liste tr.hervor td:first-child { font-weight: 700; }
table.liste tr.fuellzeile td { height: 20px; }
.positionen .c-pos { width: 22px; } .positionen .c-art { width: 70px; } .positionen .c-ust { width: 44px; }
.positionen .c-menge { width: 60px; } .positionen .c-preis { width: 90px; } .positionen .c-loeschen { width: 26px; text-align: center; }
.papierkorb { border: 0; background: none; color: var(--text-blau-56); cursor: pointer; padding: 0; display: inline-flex; }
.papierkorb.inaktiv { opacity: .4; cursor: default; }
.zusatzzeile { color: var(--grau); font-size: 11.5px; }

.erfassung-fuss { background: var(--kasten); border: 1px solid var(--rand); border-top: 0; border-radius: 0 0 3px 3px; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.fuss-zeile { display: grid; gap: 10px; align-items: end; }
.fuss-zeile.z1 { grid-template-columns: 105px 105px 115px 90px 90px 1fr; }
.fuss-zeile.z2 { grid-template-columns: 45px 45px 115px 170px 230px 1fr; }
.fuss-zeile.z3 { grid-template-columns: 140px 70px 210px 1fr 110px; margin-top: 2px; }
.fz { display: flex; flex-wrap: wrap; align-items: center; gap: 0 3px; min-width: 0; }
.fz > label { flex-basis: 100%; color: var(--text-blau-49); font-size: 11.5px; white-space: nowrap; }
.fz .feld { flex: 1; }
.fz .op { color: var(--text-blau-56); width: 10px; text-align: center; }
.fz .op.text { width: auto; color: var(--text-blau-37); padding: 0 2px; }
.fz input.rabatt { max-width: 46px; }
.fz input.tage { max-width: 40px; }
.fz.inline { flex-wrap: nowrap; }
.fz .vorsatz { color: var(--text-blau-49); white-space: nowrap; }
.feld.summe { font-weight: 700; }

/* ------------------------------------------------------------------ Listen und weitere Reiter */
.listenrahmen { background: var(--flaeche-grau-100); border: 1px solid var(--rand); border-radius: 3px; overflow: auto; max-height: calc((100vh / var(--zoom)) - var(--ueber-kopf) - 230px); margin-top: 6px; }
.summenzeile { display: flex; flex-wrap: wrap; gap: 6px 18px; background: var(--flaeche-grau-100); border: 1px solid var(--rand); border-top: 0; padding: 6px 10px; font-size: 12px; }
.filterzeile { display: flex; gap: 8px; align-items: center; }
.marke { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent); }
.zahlungen-raster { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.zahlungen-raster .dialog-raster, .zahlung-konditionen { padding: 8px 10px; }
.zahlung-konditionen { display: grid; grid-template-columns: 430px 1fr; gap: 20px; }
.konditionen-betraege { display: grid; grid-template-columns: 95px 12px 90px 1fr; gap: 3px 4px; align-items: center; }
.konditionen-betraege > label { color: var(--text-blau-49); font-size: 11.5px; }
.konditionen-betraege .op { color: var(--text-blau-37); text-align: center; }
.konditionen-betraege .grau { font-size: 11.5px; white-space: nowrap; }
.konditionen-text { display: flex; flex-direction: column; gap: 4px; }
.konditionen-text .feld { width: auto; }
.schalter { border: 1px solid var(--rand); border-radius: 2px; background: var(--flaeche-grau-100); padding: 1px 10px; height: 21px; font-size: 12px; cursor: pointer; }
.schalter b { margin-left: 14px; }
.schalter:hover { background: var(--akzent-hell); }
.zahlungsliste { table-layout: fixed; }
.zahlungsliste td { height: 22px; padding: 1px 2px; }
.zahlungsliste th:nth-child(1) { width: 72px; } .zahlungsliste th:nth-child(2) { width: 18px; }
.zahlungsliste th:nth-child(3) { width: 82px; } .zahlungsliste th:nth-child(4) { width: 118px; }
.zahlungsliste th:nth-child(5) { width: 120px; } .zahlungsliste th:nth-child(7) { width: 80px; }
.zahlungsliste th:nth-child(8), .zahlungsliste th:nth-child(10) { width: 28px; } .zahlungsliste th:nth-child(9) { width: 16px; }
.zahlungsliste input, .zahlungsliste select { height: 20px; }
.mitte { text-align: center; }
.mini-knopf { width: 15px; height: 17px; padding: 0; border: 1px solid var(--rand); border-radius: 2px; background: var(--flaeche-grau-97); color: var(--text-blau-56); font-size: 8px; line-height: 15px; cursor: pointer; }
.mini-knopf:hover:not(:disabled) { background: var(--akzent-hell); color: var(--akzent); }
.mini-knopf:disabled { cursor: default; opacity: .6; }
.markierung { font-size: 12px; color: var(--text-grau-21); }
.feld.ro.rot { color: var(--warnung); }
.mahn-raster { display: grid; grid-template-columns: 100px 1fr 62px 70px; gap: 4px 6px; align-items: center; padding: 8px 10px; }
.mahn-raster > label { color: var(--text-blau-49); font-size: 11.5px; }
.eingabe-mit-vorsatz { display: flex; align-items: center; gap: 4px; min-width: 0; }
.eingabe-mit-vorsatz .vorsatz { color: var(--text-blau-37); width: 15px; text-align: center; }
.mahn-raster .erheben { font-size: 11.5px; }
.mahn-raster .tage { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-blau-49); }
.mahn-raster .tage input { width: 38px; }
.schalter.klein { padding: 1px 6px; width: 100%; }
.suchmaske { max-width: 620px; }
.suchmaske .feldraster { display: grid; grid-template-columns: max-content 1fr; gap: 5px 10px; align-items: center; padding: 8px 10px; }
.knopfzeile { display: flex; gap: 8px; justify-content: flex-end; }
.feldraster { display: grid; grid-template-columns: max-content 1fr; gap: 4px 8px; align-items: center; padding: 8px 10px; }
.feldraster label { color: var(--text-blau-37); text-align: right; }

/* ------------------------------------------------------------------ Knöpfe und Dialoge */
.knopf { border: 1px solid var(--linie-blau-62); background: var(--flaeche-grau-99); padding: 3px 16px; border-radius: 3px; cursor: pointer; min-width: 84px; }
.knopf:hover { background: var(--flaeche-grau-95); }
a.knopf { color: inherit; text-decoration: none; text-align: center; display: inline-block; }
.knopf.standard { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.knopf.links { margin-right: auto; }
.dialog-hintergrund { position: fixed; inset: 0; background: var(--flaeche-blau-11-a30); display: flex; align-items: flex-start; justify-content: center; padding-top: calc(10vh / var(--zoom)); z-index: 50; }
.dialog { background: var(--flaeche-grau-96b); border: 1px solid var(--linie-blau-56); border-radius: 6px; box-shadow: 0 10px 30px var(--schatten-grau-0-a25); width: 440px; max-width: calc((100vw / var(--zoom)) - 32px); }
.dialog.breit { width: 640px; }
.dialog-titel { background: var(--flaeche-grau-100); padding: 7px 12px; border-radius: 6px 6px 0 0; }
.dialog-inhalt { padding: 10px 16px 6px; }
.dialog-inhalt.mit-symbol { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.dialog-symbol { width: 30px; height: 30px; color: var(--text-grau-100); background: var(--flaeche-blau-46); border-radius: 50%; padding: 5px; stroke-width: 2; }
.dialog-symbol.rot { color: var(--text-grau-100); background: var(--warnung); }
.dialog-inhalt p { margin: 0 0 10px; }
.dialog-raster { display: grid; grid-template-columns: 130px 1fr; gap: 5px 8px; align-items: center; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 16px 14px; }
.auswahltabelle { max-height: 300px; overflow: auto; border: 1px solid var(--rand-hell); border-radius: 3px; margin-top: 8px; background: var(--flaeche-grau-100); }
.feld { display: block; }
label.feld { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; border: 0; background: none; height: auto; padding: 0; }
label.feld span { font-size: 12px; color: var(--text-blau-33); }
.fehler { color: var(--warnung); margin: 6px 0 0; }
.grossanschrift { font-size: 20px; line-height: 1.5; padding: 20px; }
textarea.sperrinfo { width: 100%; height: 150px; background: var(--flaeche-grau-100); font-family: var(--schrift); white-space: pre; }
.hinweis { color: var(--grau); }

/* ------------------------------------------------------------------ Zentrale */
.kacheln { display: grid; grid-template-columns: minmax(250px, 1fr) 2.2fr; grid-auto-rows: minmax(150px, auto); gap: 12px 14px; }
.kachel { background: var(--kasten); border: 1px solid var(--rand); border-radius: 3px; display: flex; flex-direction: column; min-height: 160px; }
.kachel.klein { min-height: 125px; }
.kachel.hoch { min-height: 330px; }
.kachel h2 { position: relative; font-size: 11.5px; margin: 0; height: 20px; line-height: 20px; text-align: center; background: var(--kopf); color: var(--kopf-text); border-radius: 3px 3px 0 0; }
.kachel h2 .kopf-pfeil { position: absolute; right: 3px; top: 2px; }
.kachel ul { list-style: none; margin: 0; padding: 4px 10px; }
.kachel li { padding: 2px 0; }
.kachel .nr { color: var(--grau); font-variant-numeric: tabular-nums; margin-right: 4px; }
.kachel table.liste th { position: static; }

/* ------------------------------------------------------------------ Anmeldung und Vorschau */
.anmeldung-seite { min-height: calc(100vh / var(--zoom)); display: flex; align-items: center; justify-content: center; background: var(--leiste); }
.dialog.anmeldung { width: 360px; }
/* Mehrplatzbetrieb: Verweis unter dem Anmeldedialog und Seite „Verbindung“ (Desktop-App) */
.anmeldung-seite { flex-direction: column; gap: 12px; }
.dialog.anmeldung.verbindung { width: 420px; }
/* Zwei-Faktor-Anmeldung (Anmeldung und „Mein Konto“): Schlüssel und Notfallcodes zum Abschreiben */
.zf-schluessel { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--text); }
.notfallcodes { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 28px; list-style: none; margin: 10px 0 12px; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--text); }
.verbindung-verweis { color: var(--grau); font-size: 11.5px; text-decoration: none; }
.verbindung-verweis:hover { text-decoration: underline; }
.vorschau-leiste { display: flex; justify-content: space-between; align-items: center; background: var(--flaeche-grau-90); border-radius: 3px; padding: 4px 8px; margin-bottom: 6px; }
.vorschau-rahmen { background: var(--flaeche-blau-48); border-radius: 3px; padding: 14px; height: calc((100vh / var(--zoom)) - var(--ueber-kopf) - 110px); }
.vorschau-blatt { width: 100%; height: 100%; border: 0; background: var(--flaeche-blau-48); }
.vorschau-leiste { gap: 8px; }
.vorschau-leiste > span:first-child { flex: 1; }
.vorschau-hinweis { color: var(--text-grau-36); font-size: 12px; }

@media (max-width: 1100px) {
    .erfassung-oben, .vorgang-raster { grid-template-columns: 1fr; }
    .fuss-zeile.z1, .fuss-zeile.z2, .fuss-zeile.z3 { grid-template-columns: repeat(3, 1fr); }
    .kacheln { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Übersichtsliste mit Fußleiste (alt: list.Übersicht) */
.ue-bereich { display: flex; flex-direction: column; height: calc((100vh / var(--zoom)) - var(--ueber-kopf) - 112px); min-height: 320px; }
.listenrahmen.ue-liste { flex: 1; max-height: none; margin-top: 0; }
table.liste.uebersicht th { color: var(--text-blau-40); font-weight: 600; }
table.liste.uebersicht th.breit { width: 40%; }
table.liste.uebersicht td.rot { color: var(--warnung); }
table.liste.uebersicht tr.gewaehlt { background: var(--gelb); }
table.liste.uebersicht .zweitzeile { color: var(--grau); font-size: 11.5px; }
.ue-fuss { flex: none; background: var(--flaeche-grau-90); border: 1px solid var(--rand); border-top: 0; border-radius: 0 0 3px 3px; padding: 4px 6px 4px; }
.ue-summen { display: grid; grid-template-columns: 1fr 1fr 1fr .75fr .75fr .75fr .9fr 1.4fr; gap: 0 6px; }
.ue-summen label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--text-grau-21); gap: 1px; min-width: 0; }
.ue-summen .feld { width: 100%; background: var(--flaeche-grau-100); }
.ue-funktionen { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 26px repeat(5, 1fr); align-items: center; }
.ue-funktionen .ue-symbol { color: var(--text-blau-40); display: flex; justify-content: center; }
.ue-funktionen .aktion { padding: 2px 8px; }
.ue-funktionen .aktion.farbe-blau { color: var(--text-blau-40); }
.ue-funktionen .aktion.farbe-magenta { color: var(--text-magenta-39); }
.ue-funktionen .aktion.farbe-gruen { color: var(--text-gruen-45); }
.ue-funktionen .aktion:hover:not(:disabled) { background: var(--flaeche-grau-85); }
.ue-funktionen .aktion.an-gelb { background: var(--gelb); }
/* Kontoauszug: Anschrift und Zähler über der Liste, Funktionen links bzw. rechts wie im Original */
.ka-kopf { display: flex; gap: 40px; padding: 6px 4px 18px; font-size: 12px; }
.ka-anschrift { font-weight: 700; min-width: 260px; line-height: 1.25; }
.ka-zaehler { line-height: 1.25; }
.ue-funktionen.ka-funktionen { grid-template-columns: 26px 1fr auto; }
.dialog.breit-gross { width: 720px; }
.dialog-inhalt .voll { flex: 1; min-width: 0; }
.kundenkonto-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; line-height: 1.35; resize: vertical; }
.dialog-symbol.gelb { background: var(--flaeche-gelb-80); color: var(--text-grau-9); }
/* Projekt links neben der Zeile (in der Leiste) */
.aktionen .ue-projekte { position: relative; height: 100%; min-height: 100%; }
.ue-projekt { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 2px 8px; overflow: hidden; border-bottom: 1px solid var(--leiste-hell); }
.ue-projekt.gewaehlt { background: var(--leiste-hell); }
.ue-projekt button { background: none; border: 0; padding: 0; color: var(--leiste-grau); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: inherit; }
.ue-projekt button:hover { color: var(--leiste-text); text-decoration: underline; }
.ue-projekt .kdnr { color: var(--leiste-grau); text-align: right; font-size: 11.5px; margin-top: auto; }
.leiste-marge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px 6px; font-size: 11.5px; }
.leiste-marge .feld { width: 100%; color: var(--text-grau-21); }
.ankreuzen { display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------------ Reiter Positionen (alt: scr.Positionen) */
.pos-kunde { flex-direction: column; }
.kunde-fuss { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 0 6px 4px; }
.kunde-fuss .projekt-link { margin-top: 0; }
.pos-zusatz { grid-template-columns: 120px 1fr 60px 60px; }
.zusatz-raster .dreier, .pos-felder .dreier { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pos-felder .dreier { grid-column: auto; grid-template-columns: 1.2fr 1fr 1fr; }
.zusatz-raster .zweier { grid-column: span 3; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.feld.mitte { text-align: center; }
.pos-raster { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 8px; }
.pos-links, .pos-rechts { display: flex; flex-direction: column; min-width: 0; }
.pos-kopf { grid-template-columns: 44px 1fr 26px; height: 24px; }
.pos-kopf .posnr { height: 18px; width: 38px; padding: 0 4px; font-weight: 700; text-align: left; background: transparent; color: var(--kopf-text); border-color: transparent; }
.pos-kopf .posnr:hover, .pos-kopf .posnr:focus { background: var(--flaeche-grau-100); color: var(--text); }
.knopf-rund { border: 0; cursor: pointer; }
.knopf-rund:disabled { cursor: default; opacity: .6; }
.pos-felder { display: grid; grid-template-columns: 120px 1fr; gap: 4px 8px; align-items: center; padding: 8px 10px; }
.pos-felder > label { color: var(--text-blau-49); }
.pos-felder > label.oben { align-self: start; padding-top: 2px; }
.pos-felder textarea { min-height: 150px; }
.pos-felder .ankreuzen.rahmen { border: 1px solid var(--rand); border-radius: 2px; background: var(--flaeche-grau-100); padding: 1px 5px; white-space: nowrap; overflow: hidden; color: var(--text); }
.pos-felder .ankreuzen.rahmen span { overflow: hidden; text-overflow: ellipsis; }
.sortierzeile { display: grid; grid-template-columns: 1fr 1fr auto 62px auto 80px; gap: 6px; align-items: center; }
.sortierzeile .grau { font-size: 11.5px; }
.basisdaten { display: grid; grid-template-columns: .6fr .7fr .8fr 1fr 1fr 1.1fr .95fr; gap: 0 6px; padding: 6px 10px 10px; }
.basisdaten label, .preise label { display: flex; flex-direction: column; gap: 2px; color: var(--text-blau-49); font-size: 11.5px; min-width: 0; }
.basisdaten label { text-align: right; }
.basisdaten label:nth-child(-n+3) { text-align: center; }
.basisdaten .feld { width: 100%; }
.auswahl-kasten { flex: 1; display: flex; flex-direction: column; }
.auswahl-inhalt { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; flex: 1; min-height: 0; }
.auswahl-liste { list-style: none; margin: 2px 0 0; padding: 0; overflow-y: auto; max-height: 190px; }
.auswahl-liste button { width: 100%; text-align: left; background: none; border: 0; padding: 2px 4px; cursor: pointer; color: var(--text); font: inherit; }
.auswahl-liste button:hover { background: var(--zeile-hover); }
.seriennummern { min-height: 70px; }
.preise { display: grid; grid-template-columns: .8fr .9fr 1.3fr .8fr .8fr .4fr 1.1fr 1fr 1fr 1.2fr; gap: 0 6px; padding: 6px 10px 10px; align-items: end; }
.preise .eingabe-mit-vorsatz .feld, .preise .eingabe-mit-vorsatz input { flex: 1; }
.preise .feld.summe { font-weight: 700; }
.positionsliste-links { list-style: none; margin: 0; padding: 2px 0; }
.positionsliste-links button { width: 100%; text-align: left; background: none; border: 0; padding: 2px 10px; color: var(--leiste-grau); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.positionsliste-links button:hover { color: var(--leiste-text); }
.positionsliste-links button.gewaehlt { color: var(--leiste-text); background: var(--leiste-hell); }

/* ==================================================================
   Gestaltung nach der Vorlage des Anwenders (Bild aus dem laufenden Altsystem):
   helle Leiste, oben Firmenname, gelbe Benutzerzeile, graue Kastenköpfe mit weißer Schrift,
   dunkle Funktionsfarben, graue Reiterleiste. Schrift wie im Original: Mac Lucida Grande, Windows Tahoma.
   ================================================================== */
:root {
    --leiste: #d6dee7;
    --leiste-hell: #c3cfdc;
    --leiste-dunkel: #bfc6ce;
    --leiste-text: #161616;
    --leiste-grau: #6e6e6e;
    --akzent: #2e63b8;
    --akzent-hell: #e4ecf8;
    --kopf: #8c8c8c;
    --kopf-text: #ffffff;
    --flaeche: #ececec;
    --kasten: #e6e6e6;
    --rand: #b5b5b5;
    --rand-hell: #d2d2d2;
    --text: #141414;
    --grau: #7a7a7a;
    --gelb: #fffbc9;
    --gelb-rand: #e2d78c;
    --zeile: #f3f3f3;
    --zeile-hover: #e3ebf6;
    --f-blau: #1450b4;
    --f-magenta: #b4007c;
    --f-gruen: #128019;
    --f-rot: #c80000;
    --schrift: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
    /* Symbole in Kästen (Lupe, Pfeile): wie die Kastenköpfe; andere Designs setzen eine eigene Farbe */
    --symbol: var(--kopf);
}
/* ==================================================================
   Farbtabelle (Vorgabe = Design „Klassisch“). Jede feste Farbe der Masken ist hier benannt:
   --<wofür>-<Farbfamilie>-<Helligkeit L* 0–100>[-a<Deckkraft %>], z. B. --text-grau-52 = #7b7b7b.
   Weitere Designs überschreiben diese Namen in public/css/designs.css; neue Regeln bitte nur mit diesen Namen färben.
   ================================================================== */
:root {
    /* Schrift und Symbole */
    --text-blau-27: #17407a;
    --text-blau-28: #0b3d8c;
    --text-blau-30: #33495f;
    --text-blau-33: #44505b;
    --text-blau-35: #4a545e;
    --text-blau-35b: #1a4fa0;
    --text-blau-35c: #1d4f9c;
    --text-blau-36: #1450b4;
    --text-blau-37: #4c5862;
    --text-blau-40: #1d5fa8;
    --text-blau-40b: #1f5fa8;
    --text-blau-41: #566370;
    --text-blau-43: #2e63b8;
    --text-blau-49: #6b7680;
    --text-blau-56: #7a8792;
    --text-gelb-21: #3b3200;
    --text-gelb-41: #7a5b00;
    --text-grau-0: #000000;
    --text-grau-5: #111111;
    --text-grau-9: #1a1a1a;
    --text-grau-10: #1b1b1b;
    --text-grau-13: #222222;
    --text-grau-21: #2c343b;
    --text-grau-21b: #333333;
    --text-grau-29: #444444;
    --text-grau-31: #4a4a4a;
    --text-grau-36: #555555;
    --text-grau-43: #666666;
    --text-grau-45: #6b6b6b;
    --text-grau-46: #6e6e6e;
    --text-grau-50: #777777;
    --text-grau-52: #7b7b7b;
    --text-grau-57: #8a8a8a;
    --text-grau-57b: #888888;
    --text-grau-63: #999999;
    --text-grau-64: #9a9a9a;
    --text-grau-67: #9aa3ab;
    --text-grau-70: #ababab;
    --text-grau-76: #bbbbbb;
    --text-grau-80: #c6c6c6;
    --text-grau-95: #f2f2f2;
    --text-grau-100: #ffffff;
    --text-gruen-45: #1f7a37;
    --text-magenta-39: #a3238e;
    --text-orange-42: #8a5a00;
    --text-rot-34: #a01010;
    --text-rot-36: #b00000;
    --text-rot-37: #b00020;
    --text-rot-42: #c80000;
    --text-rot-43: #cc0000;
    --text-rot-44: #d01010;
    /* Flächen und Verläufe */
    --flaeche-blau-11-a30: rgba(20, 30, 40, .3);
    --flaeche-blau-21: #1d2a78;
    --flaeche-blau-36-a6: rgba(20, 80, 180, .06);
    --flaeche-blau-36-a10: rgba(20, 80, 180, .1);
    --flaeche-blau-43: #2e63b8;
    --flaeche-blau-45: #2f6db5;
    --flaeche-blau-46: #2f6fb7;
    --flaeche-blau-48: #6b7280;
    --flaeche-blau-50: #3b78c4;
    --flaeche-blau-57: #4f8ae0;
    --flaeche-blau-75: #a9bad0;
    --flaeche-blau-78: #b8c3cd;
    --flaeche-blau-80: #b4c8e4;
    --flaeche-blau-83: #c6d1dd;
    --flaeche-blau-88: #cfe0f3;
    --flaeche-blau-88b: #d4dcea;
    --flaeche-blau-93: #e4ecf8;
    --flaeche-gelb-80: #f2c200;
    --flaeche-gelb-96: #fff4d6;
    --flaeche-gelb-97: #fff7d6;
    --flaeche-gelb-98: #fff8e1;
    --flaeche-grau-5: #111111;
    --flaeche-grau-13: #222222;
    --flaeche-grau-29: #444444;
    --flaeche-grau-47: #6f6f6f;
    --flaeche-grau-53: #7e7e7e;
    --flaeche-grau-57: #8a8a8a;
    --flaeche-grau-61: #929292;
    --flaeche-grau-64: #9a9a9a;
    --flaeche-grau-69: #a9a9a9;
    --flaeche-grau-70: #aaaaaa;
    --flaeche-grau-74: #b7b7b7;
    --flaeche-grau-75: #b8b8b8;
    --flaeche-grau-76: #bcbcbc;
    --flaeche-grau-82: #cdcdcd;
    --flaeche-grau-83: #cfcfcf;
    --flaeche-grau-83b: #d0d0d0;
    --flaeche-grau-84: #c9d3dc;
    --flaeche-grau-85: #cfd6dc;
    --flaeche-grau-86: #d8d8d8;
    --flaeche-grau-88: #dddddd;
    --flaeche-grau-88b: #d6dee7;
    --flaeche-grau-88c: #dedede;
    --flaeche-grau-88d: #dcdcdc;
    --flaeche-grau-89: #e0e0e0;
    --flaeche-grau-90: #dde2e6;
    --flaeche-grau-90b: #e3e3e3;
    --flaeche-grau-91: #e6e6e6;
    --flaeche-grau-91b: #e4e4e4;
    --flaeche-grau-92: #e9e9e9;
    --flaeche-grau-93: #ececec;
    --flaeche-grau-93b: #e3ebf6;
    --flaeche-grau-93c: #e9ecef;
    --flaeche-grau-94: #e9edf0;
    --flaeche-grau-94b: #eceff1;
    --flaeche-grau-94c: #eeeeee;
    --flaeche-grau-95: #eef1f3;
    --flaeche-grau-95b: #f0f0f0;
    --flaeche-grau-95c: #f2f2f2;
    --flaeche-grau-96: #f3f5f7;
    --flaeche-grau-96b: #f3f4f5;
    --flaeche-grau-96c: #f4f4f4;
    --flaeche-grau-96d: #eef3f8;
    --flaeche-grau-97: #f4f6f7;
    --flaeche-grau-97b: #f6f6f6;
    --flaeche-grau-97c: #f5f5f5;
    --flaeche-grau-98: #fff6f6;
    --flaeche-grau-98b: #fafafa;
    --flaeche-grau-99: #fdfdfd;
    --flaeche-grau-99b: #fbfbfb;
    --flaeche-grau-99c: #fcfcfc;
    --flaeche-grau-100: #ffffff;
    --flaeche-grau-100-a35: rgba(255, 255, 255, .35);
    --flaeche-grau-100-a45: rgba(255, 255, 255, .45);
    --flaeche-grau-100-a85: rgba(255, 255, 255, .85);
    --flaeche-gruen-93: #dff0d8;
    --flaeche-orange-47: #b45309;
    --flaeche-orange-94: #fdebd0;
    --flaeche-rot-43: #cc0000;
    --flaeche-rot-92: #fde2e2;
    /* Ränder und Linien */
    --linie-blau-27: #17407a;
    --linie-blau-36: #24529c;
    --linie-blau-36b: #1450b4;
    --linie-blau-41: #2d5fa8;
    --linie-blau-56: #7d8994;
    --linie-blau-62: #8c98a3;
    --linie-blau-67: #8aa6c8;
    --linie-blau-78: #b9c3ce;
    --linie-gelb-81: #e8c56a;
    --linie-gelb-87: #f0d98a;
    --linie-grau-21: #333333;
    --linie-grau-36: #555555;
    --linie-grau-39: #5c5c5c;
    --linie-grau-40: #5f5f5f;
    --linie-grau-50: #777777;
    --linie-grau-52: #7d7d7d;
    --linie-grau-52b: #7c7c7c;
    --linie-grau-57: #8a8a8a;
    --linie-grau-59: #8f8f8f;
    --linie-grau-64: #9c9c9c;
    --linie-grau-64b: #9a9a9a;
    --linie-grau-67: #9aa4ad;
    --linie-grau-67b: #a3a3a3;
    --linie-grau-69: #a9a9a9;
    --linie-grau-74: #b5b5b5;
    --linie-grau-75: #b9b9b9;
    --linie-grau-76: #bcbcbc;
    --linie-grau-79: #c4c4c4;
    --linie-grau-80: #c6c6c6;
    --linie-grau-81: #c9c9c9;
    --linie-grau-81b: #c8c8c8;
    --linie-grau-83: #d0d0d0;
    --linie-grau-85: #d5d5d5;
    --linie-grau-86: #d6d6d6;
    --linie-grau-91: #e4e4e4;
    --linie-grau-93: #ececec;
    --linie-grau-95: #eef0f2;
    --linie-grau-95b: #f0f0f0;
    --linie-grau-96: #f4f4f4;
    --linie-grau-97: #f7f7f7;
    --linie-rot-43: #cc0000;
    --linie-rot-52: #cc5555;
    /* Schatten */
    --schatten-grau-0-a8: rgba(0, 0, 0, .08);
    --schatten-grau-0-a18: rgba(0, 0, 0, .18);
    --schatten-grau-0-a20: rgba(0, 0, 0, .2);
    --schatten-grau-0-a22: rgba(0, 0, 0, .22);
    --schatten-grau-0-a25: rgba(0, 0, 0, .25);
    --schatten-grau-0-a28: rgba(0, 0, 0, .28);
    --schatten-grau-0-a35: rgba(0, 0, 0, .35);
    --schatten-grau-0-a45: rgba(0, 0, 0, .45);
    --schatten-grau-0-a50: rgba(0, 0, 0, .5);
}
body { font-size: 12px; }
.leiste { border-right: 1px solid var(--linie-grau-59); }
.leiste-modul { justify-content: center; height: 26px; background: linear-gradient(var(--flaeche-grau-95b), var(--flaeche-grau-82)); color: var(--text-grau-5); font-weight: 700; border-bottom: 1px solid var(--linie-grau-64); white-space: nowrap; overflow: hidden; }
.leiste-modul span { overflow: hidden; text-overflow: ellipsis; }
.leiste-modul .modul-icon { color: var(--text-grau-36); }
.leiste-benutzer { background: var(--gelb); color: var(--text-grau-5); font-weight: 700; border-top: 0; padding: 4px 6px; }
.leiste-titel { background: linear-gradient(var(--flaeche-grau-91), var(--flaeche-grau-76)); color: var(--text-grau-5); font-weight: 700; border-top: 1px solid var(--linie-grau-64); border-bottom: 1px solid var(--linie-grau-64); padding: 3px 6px; }
.aktion { font-weight: 700; padding: 4px 10px; }
.aktion .pfeil { color: var(--text-grau-13); opacity: 1; font-weight: 700; }
.aktion:hover:not(:disabled) { background: var(--flaeche-blau-83); }
.aktion:disabled { opacity: .4; }
.aktion.an { background: var(--akzent); color: var(--text-grau-100); }
.verknuepft li { color: var(--leiste-grau); }
.funktionen li a, .funktionen li > span:not(.lupe) { color: var(--text-grau-5); }
.funktionen li.inaktiv > span:not(.lupe) { color: var(--text-grau-57); }
.funktionen .modul-symbol, .lupe, span.lupe { color: var(--text-grau-29); }
.lupe:hover { background: var(--flaeche-blau-83); }
.funktionen { border-bottom-color: var(--linie-blau-78); }
.navigator { background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-64); border-radius: 5px; color: var(--text-grau-5); padding: 3px 2px; box-shadow: inset 0 1px 2px var(--schatten-grau-0-a8); }
.nav-pfeil { color: var(--text-grau-21b); }
.navigator-zahlen { font-weight: 700; }
.alle-knopf { color: var(--text-grau-36); }
.kopfleiste { background: linear-gradient(var(--flaeche-grau-64), var(--flaeche-grau-47)); color: var(--text-grau-100); }
.kopf-knoepfe { background: linear-gradient(var(--flaeche-grau-100), var(--flaeche-grau-91b)); border: 1px solid var(--linie-grau-52); border-radius: 4px; }
.kopfknopf { border-right-color: var(--linie-grau-74); color: var(--text-grau-5); }
/* Suchfeld der Übersichtslisten in der Kopfleiste (Original: Schnellsuche, abgerundet, Kreuz rechts) */
.modultitel { flex: 0 0 auto; max-width: 40%; }
.kopfsuche { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; margin: 0 18px 0 24px; min-width: 120px; }
.kopfsuche-feld { flex: 1 1 auto; height: 18px; border: 1px solid var(--linie-grau-40); border-radius: 9px; padding: 0 9px; font-size: 12px; color: var(--text-blau-35b); background: var(--flaeche-grau-100); box-shadow: inset 0 1px 2px var(--schatten-grau-0-a18); }
.kopfsuche-feld:focus { outline: none; border-color: var(--linie-blau-41); }
.kopfsuche-leeren { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; border: 1px solid var(--linie-grau-57); background: linear-gradient(var(--flaeche-grau-96c), var(--flaeche-grau-83)); color: var(--text-grau-43); font-size: 12px; line-height: 13px; padding: 0; cursor: pointer; }
.kopfsuche-leeren:hover { color: var(--text-grau-5); }
/* Mehrplatzbetrieb: „Auch geöffnet von: …“ bzw. „Von … geändert – neu geladen“ in der Kopfleiste (Farbe der Kopfleiste) */
.mitbenutzer { flex: 0 1 auto; min-width: 0; margin: 0 12px 0 auto; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.mitbenutzer-geaendert { font-weight: 700; opacity: 1; }
.reiterzeile { background: var(--flaeche-grau-88); border-radius: 6px; padding: 0; overflow: hidden; }
.reiter { gap: 0; }
.reiter-knopf { padding: 7px 14px; font-weight: 700; color: var(--text-grau-5); border-radius: 0; border-right: 1px solid var(--linie-grau-96); }
.reiter-knopf:hover { background: var(--flaeche-grau-83b); }
/* Aktiver Reiter wie im Original #aaaaaa auf #dddddd, dazu leicht eingedrückt (Feedback GE 29.11.2026, G1) */
.reiter-knopf.aktiv, .reiter-knopf.aktiv:hover { background: var(--flaeche-grau-70); box-shadow: inset 0 2px 3px var(--schatten-grau-0-a28); }
/* Reiterbeschriftungen einzeilig; bei vielen Reitern (Adressverwaltung) und schmalem Fenster etwas enger, damit die Reiterzeile
   nicht zweizeilig wird und die Übersichtsliste in den Bildschirm passt */
.reiter-knopf { white-space: nowrap; }
.reiterzeile { container-type: inline-size; }
@container (max-width: 880px) { .reiter:has(> .reiter-knopf:nth-child(9)) .reiter-knopf, .reiter:has(> .reiter-knopf:nth-child(9)) ~ .reiter-knopf { padding-left: 10px; padding-right: 10px; } }
.zeitstempel { color: var(--text-grau-70); }
.kasten { background: var(--kasten); border-color: var(--linie-grau-75); border-radius: 5px; overflow: hidden; }
.kasten-kopf { height: 23px; background: linear-gradient(var(--flaeche-grau-75), var(--flaeche-grau-57)); color: var(--text-grau-100); font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 0 var(--schatten-grau-0-a35); border-radius: 0; border-bottom: 1px solid var(--linie-grau-52b); }
.kopf-pfeil { background: var(--flaeche-grau-95c); color: var(--text-grau-36); border: 1px solid var(--linie-grau-57); text-shadow: none; width: 17px; height: 17px; }
fieldset.kasten > legend { background: linear-gradient(var(--flaeche-grau-75), var(--flaeche-grau-57)); color: var(--text-grau-100); text-shadow: 0 1px 0 var(--schatten-grau-0-a35); }
.zusatz-raster label, .pos-felder > label, .mahn-raster > label, .konditionen-betraege > label, .fz > label, .basisdaten label, .preise label { color: var(--text-grau-52); }
.feld, input[type=text], input[type=number], input[type=date], input[type=password], select, textarea { border-color: var(--linie-grau-80); border-radius: 3px; }
.feld.ro { background: var(--flaeche-grau-95c); color: var(--text-grau-10); }
.gelb, .feld.gelb, input.gelb, select.gelb { background: var(--gelb) !important; border-color: var(--gelb-rand); }
.warnung { color: var(--text-rot-44); font-weight: 400; }
table.liste th { background: var(--flaeche-grau-92); color: var(--text-blau-36); font-weight: 700; }
table.liste tr.gewaehlt, table.liste.uebersicht tr.gewaehlt { background: var(--gelb); }
.ue-fuss { background: var(--flaeche-grau-90b); }
.ue-projekt.gewaehlt, .positionsliste-links button.gewaehlt { background: var(--flaeche-blau-83); color: var(--text-grau-5); }
.positionsliste-links button { color: var(--text-grau-46); }
.ue-projekt button { color: var(--text-grau-46); }
.ue-projekt button:hover, .positionsliste-links button:hover { color: var(--text-grau-5); }
.dialog-titel { background: linear-gradient(var(--flaeche-grau-95c), var(--flaeche-grau-86)); color: var(--text-grau-5); }
.knopf.standard { background: linear-gradient(var(--flaeche-blau-57), var(--flaeche-blau-43)); color: var(--text-grau-100); border-color: var(--linie-blau-36); }
.app { grid-template-columns: 232px 1fr; }
.aktion span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zahlungsliste th:nth-child(1) { width: 88px; }
.zahlungsliste td:first-child { white-space: nowrap; }
.mahn-raster { grid-template-columns: 108px 1fr 62px 74px; }
/* Sperrhinweis wie im Original: großes Fenster, großes Infofeld, Beträge auf Tabulator ausgerichtet, "Weiter" unten rechts */
.dialog.sperre { width: min(930px, calc((100vw / var(--zoom)) - 32px)); }
.dialog.sperre .dialog-inhalt > div { flex: 1; min-width: 0; }
.dialog.sperre textarea.sperrinfo { height: min(460px, calc(55vh / var(--zoom))); margin-top: 14px; resize: none; tab-size: 16; -moz-tab-size: 16; white-space: pre; line-height: 1.3; }
.dialog.sperre .dialog-knoepfe { padding-top: 22px; }
.warnung.storniert { font-weight: 700; }
.verknuepft .vv-knopf { display: flex; gap: 6px; width: 100%; background: none; border: 0; padding: 3px 10px; color: var(--leiste-grau); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.verknuepft .vv-knopf:hover { color: var(--text-grau-5); background: var(--flaeche-blau-83); }
.verknuepft .vv-knopf.gewaehlt { color: var(--text-grau-5); }
.verknuepft .vv-knopf .datum { margin-left: auto; }
.verknuepft li { padding: 0; }
/* Storno/Gutschrift: negative Beträge rot wie im Original */
table.liste tr.negativ td.zahl, table.liste tr.negativ td:nth-child(5) { color: var(--warnung); }
.erfassung-fuss.negativ .feld.ro.zahl { color: var(--warnung); }

/* Menüleiste des Moduls (wie die Menüs „Finanzwesen“ usw. des Originals) */
.app.mit-menue { grid-template-rows: auto 1fr; }
/* Höhe über der Kopfleiste (Menüleiste, ggf. Hinweis Testbetrieb): die Listen- und Vorschauhöhen (100vh − …) ziehen sie ab,
   damit die Maske ins Fenster passt und die Liste selbst scrollt statt der Seite */
.app { --ueber-kopf: 0px; }
.app.mit-menue { --ueber-kopf: 22px; }
/* Hinweis Testbetrieb als eigene Zeile über Leiste und Hauptbereich (Modulkopf und Kopfleiste bleiben ein Band) */
.app.mit-menue:has(> .testbetrieb-hinweis) { --ueber-kopf: 46px; grid-template-rows: auto auto 1fr; }
.app > .testbetrieb-hinweis { grid-column: 1 / -1; }
.menueleiste { grid-column: 1 / -1; display: flex; align-items: stretch; height: 22px; background: var(--flaeche-grau-96c); border-bottom: 1px solid var(--linie-grau-81); padding: 0 6px; font-size: 12px; position: relative; z-index: 30; }
.menue { position: relative; }
.menue-titel { height: 100%; border: 0; background: transparent; padding: 0 9px; cursor: pointer; color: var(--text-grau-5); font: inherit; }
.menue-titel:hover, .menue-titel.offen { background: var(--flaeche-grau-88b); }
.menue-liste { position: absolute; top: 100%; left: 0; min-width: 300px; margin: 0; padding: 3px 0; list-style: none; background: var(--flaeche-grau-99b); border: 1px solid var(--linie-grau-69); box-shadow: 0 6px 18px var(--schatten-grau-0-a20); }
.menue-liste li.trenner { height: 1px; margin: 3px 6px; background: var(--flaeche-grau-83b); }
.menue-liste button { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; width: 100%; border: 0; background: transparent; padding: 3px 12px 3px 6px; text-align: left; font: inherit; color: var(--text-grau-5); cursor: pointer; }
.menue-liste button:hover:not(:disabled) { background: var(--flaeche-blau-88); }
.menue-liste button:disabled { color: var(--text-grau-64); cursor: default; }
.menue-liste kbd { font: inherit; color: inherit; opacity: .85; }
.menue-liste .punkt { text-align: center; }

/* Dialog „Intervalle bearbeiten“: Terminliste */
.intervall-liste { list-style: none; margin: 8px 0 0; padding: 4px; height: 150px; overflow: auto; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-67); }
.intervall-liste button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 1px 4px; font: inherit; cursor: pointer; }
.intervall-liste button.gewaehlt { background: var(--flaeche-blau-50); color: var(--text-grau-100); }

/* Reiter Infos wie im Original: Informationen zum Datensatz, Historie zum Datensatz */
.info-raster { display: grid; grid-template-columns: 70px 1fr 70px; gap: 3px 6px; padding: 8px 10px; align-items: center; }
.info-raster label { color: var(--text-grau-45); }
.info-raster .zeit { text-align: right; }
.kasten-historie { margin-top: 10px; }
table.historie { width: 100%; border-collapse: collapse; }
table.historie td { padding: 2px 8px; border-bottom: 1px solid var(--linie-grau-85); white-space: nowrap; }
table.historie td:nth-child(3) { width: 100%; white-space: normal; }
table.historie td.kuerzel { text-align: right; }

/* ------------------------------------------------------------------ Stammdaten (Aufbau wie scr.Firmendaten … scr.Fax) */
.stammdaten { max-width: 1160px; }
.stammdaten .kasten { margin-bottom: 18px; }
/* Zeilenraster Bezeichnung | Feld | senkrechter Titel "Beispieldaten" | Beispiel (Firmendaten, Finanzdaten) */
.sd-zeilen { --feld: 275px; display: grid; grid-template-columns: 110px var(--feld) 22px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.sd-zeilen > label, .sd-bank > label, .sd-raster > label, .sd-unterraster > label { color: var(--text-grau-52); white-space: nowrap; }
.sd-zeilen > select.sd-funktion { color: var(--text-grau-36); }
.sd-zeilen > .sd-bsp { grid-column: 4; color: var(--text-grau-64); font-style: italic; padding-left: 2px; line-height: 1.3; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-zeilen > .sd-bsp.zwei { white-space: normal; max-width: 270px; }
.sd-zeilen > .sd-bsp.zwei { grid-row: span 2; align-self: start; padding-top: 3px; }
.sd-zeilen > .sd-label-oben { align-self: start; padding-top: 3px; white-space: normal; }
.sd-zeilen > .sd-voll { grid-column: 1 / -1; }
.sd-zeilen.feld-48 { --feld: 60px; }
.sd-zeilen.feld-95 { --feld: 95px; }
.sd-zeilen.feld-ziele { --feld: 164px; }
.sd-beispiel-titel { grid-column: 3; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; text-align: center; color: var(--text-grau-52); font-weight: 700; font-size: 11px; }
.sd-paar { display: flex; gap: 4px; align-items: center; min-width: 0; }
.sd-paar .sd-feld-48 { flex: 0 0 60px; }
.sd-paar .sd-feld-60 { flex: 0 0 60px; }
.sd-paar .sd-feld-65 { flex: 0 0 65px; }
.sd-paar .sd-feld-73 { flex: 0 0 73px; }
.sd-paar .feld.rechts { text-align: right; }
.sd-unterkopf { color: var(--text-grau-52); padding: 0 0 3px; }
.sd-unterkopf b { color: var(--text-grau-21b); }
.sd-hinweis { color: var(--text-grau-52); }
.sd-hinweis.fett { font-weight: 700; }
.sd-hinweis.kursiv { font-style: italic; color: var(--text-grau-64); }
.sd-absatz { margin: 4px 14px 10px; }
.sd-rot { color: var(--text-rot-42); }
.sd-bank { display: grid; grid-template-columns: 110px 224px 156px 224px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.sd-bank > .rechts-spalte { padding-left: 46px; }
.sd-bank > .sd-trennlinie { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--linie-grau-64); margin: 6px 0 6px 34px; width: 628px; }
.sd-bank .sd-feld-90 { width: 90px; }
.feld.gruen { background: var(--flaeche-gruen-93) !important; }
.sd-zwei { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 0 28px; }
.sd-zwei .sd-zeilen { grid-template-columns: 96px var(--feld) 18px minmax(0, 1fr); }
.sd-ziele { display: grid; grid-template-columns: repeat(5, 30px); gap: 2px; }
.sd-ziele .feld { padding: 1px 2px; text-align: center; }
.stammdaten textarea.feld { height: auto; }
/* Logo */
.sd-logo { display: grid; grid-template-columns: minmax(0, 552px) minmax(0, 1fr); gap: 10px; padding: 10px 14px 12px; }
.sd-logoplaetze { display: grid; gap: 4px; }
.sd-logo-titel { color: var(--text-grau-52); font-weight: 700; padding-top: 4px; }
.sd-logo-titel.mitte { text-align: center; }
.sd-logo-titel.rechts { text-align: right; }
.sd-bildfeld { background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-86); overflow: hidden; }
.sd-bildfeld.logo { height: 62px; }
.sd-vorlagen { display: flex; gap: 10px; }
.sd-bildfeld.vorlage { width: 140px; height: 189px; }
.sd-bildfeld.vorlage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sd-erklaerung { color: var(--text-grau-46); }
.sd-erklaerung p { margin: 0 0 8px; }
/* Text */
.sd-text { display: grid; grid-template-columns: repeat(3, 226px); gap: 0 26px; align-items: start; }
.sd-text .sd-spalte.dritte { grid-row: 1 / 3; grid-column: 3; }
.sd-text-hinweis { grid-column: 1 / 3; margin: 2px 10px 0; }
.sd-tasten { list-style: none; margin: 0; padding: 8px 9px 9px; display: grid; gap: 0; }
.sd-tasten li { display: flex; align-items: center; gap: 4px; }
.sd-taste { flex: 1; display: flex; align-items: center; gap: 8px; height: 20px; border: 0; border-top: 1px solid var(--linie-grau-97); border-bottom: 1px solid var(--linie-grau-81); background: linear-gradient(var(--flaeche-grau-93), var(--flaeche-grau-88c)); padding: 0 6px; text-align: left; font: inherit; color: var(--text-grau-5); cursor: pointer; }
.sd-taste::before { content: "›"; display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 13px; border: 1px solid var(--linie-grau-79); background: var(--flaeche-grau-97b); color: var(--text-grau-64); font-size: 10px; }
.sd-taste:hover { background: var(--flaeche-grau-88b); }
.sd-haken { width: 13px; height: 13px; margin: 0 2px 0 4px; cursor: pointer; accent-color: var(--flaeche-grau-29); }
.duenn { font-weight: 400; }
.sd-farben { display: flex; gap: 8px; padding: 9px 10px 10px; }
.sd-farben span { width: 17px; height: 17px; border: 1px solid var(--linie-grau-76); }
/* Raster Bezeichnung | Feld | Hinweis (Programm, Nummernkreise, Schnittstellen, FiBu, Fax) */
.sd-raster { display: grid; grid-template-columns: 100px 215px minmax(0, 560px); gap: 3px 16px; align-items: center; padding: 10px 14px 6px; }
.sd-raster .sd-ueber-vier { grid-row: span 4; align-self: center; }
.sd-raster .sd-abstand-oben { margin-top: 6px; }
.sd-raster .sd-abstand-oben.gross { margin-top: 18px; }
.sd-programm { grid-template-columns: 110px 60px minmax(0, 560px); }
.sd-programm .feld.breiter { width: 124px; }
/* Betriebsart (Ergänzung 01.12.2026): Testbetrieb, Testadresse, Echtbetrieb – und der Link im Hinweis des Testbetriebs */
.sd-betriebsart-inhalt { display: grid; gap: 8px; padding: 10px 14px 12px; }
.sd-betriebsart-wahl { display: flex; flex-direction: column; gap: 5px; }
.sd-testadresse { display: grid; grid-template-columns: 110px minmax(0, 320px); gap: 6px; align-items: center; }
.sd-testadresse[hidden] { display: none; }
.sd-betriebsart-text { margin: 0; max-width: 760px; }
.sd-betriebsart-knoepfe { display: flex; gap: 12px; align-items: center; }
.sd-betriebsart-meldung { color: var(--text-grau-21); font-weight: 600; }
.sd-betriebsart-meldung.fehler { color: var(--warnung); }
.testbetrieb-umschalten { color: inherit; margin-left: 12px; text-decoration: underline; font-weight: 600; }
.sd-textvorgaben { grid-template-columns: 100px 215px minmax(0, 380px); align-items: start; }
.sd-textvorgaben > label, .sd-textvorgaben > .sd-hinweis { padding-top: 4px; }
.sd-nk { grid-template-columns: 100px 90px minmax(0, 560px); gap: 2px 26px; }
.sd-zaehler { text-align: center; cursor: pointer; font: inherit; color: var(--text-grau-5); background: var(--flaeche-grau-97b); height: 18px; line-height: 14px; }
.sd-zaehler:hover:not(:disabled) { background: var(--flaeche-blau-93); }
.sd-banking { grid-template-columns: 100px 215px minmax(0, 560px); }
.sd-mit-knopf { display: flex; min-width: 0; }
.sd-mit-knopf .feld { border-left: 0; border-radius: 0 3px 3px 0; }
.sd-dreieck { flex: 0 0 14px; border: 1px solid var(--linie-grau-80); border-radius: 3px 0 0 3px; background: var(--flaeche-grau-95c); color: var(--text-grau-64); font-size: 10px; padding: 0; }
.sd-unterraster { grid-column: 2; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 3px 4px; align-items: center; }
.sd-banking .sd-mittig { grid-column: 3; }
.sd-linie { border: 0; border-top: 1px solid var(--linie-grau-64); margin: 6px 14px 0 50px; max-width: 630px; }
.sd-steuerpilot { align-items: start; }
.sd-steuerpilot > label { padding-top: 3px; }
.sd-fibu { grid-template-columns: 100px 315px minmax(0, 470px); align-items: start; gap: 4px 6px; }
.sd-fibu > label { padding-top: 3px; }
.sd-fibu .sd-hinweis { margin: 0; }
.sd-fibu.dunkel > label { color: var(--text-grau-13); }
.sd-fax { grid-template-columns: 110px 315px minmax(0, 430px); }
.sd-fax .feld.schmal { width: 60px; }
.sd-hoch { min-height: 300px; }
.sd-freifelder { grid-template-columns: 110px 1fr; padding: 0 16px 0 62px; }
.dialog-hintergrund.oben { z-index: 60; }
a.aktion { text-decoration: none; }

/* ------------------------------------------------------------------ Adressverwaltung (Aufbau wie scr.Erfassung … scr.Info) */
.aktion.farbe-schwarz { color: var(--text-grau-5); }
.adressen { max-width: 1160px; }
.adressen .kasten { margin-bottom: 18px; }
.av-raster { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
.av-felder { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 3px 6px; align-items: center; align-content: start; padding: 10px 14px 12px; }
.av-felder.breit { grid-template-columns: 112px minmax(0, 1fr) 20px; }
.av-felder > label, .av-suchfelder > label, .av-bank > label, .av-vorgaben > label, .av-fuss-felder > label { color: var(--text-grau-52); white-space: nowrap; }
.av-felder .feld.fett { font-weight: 700; }
.av-zeile { display: flex; gap: 4px; align-items: center; min-width: 0; }
.av-zeile > .feld { flex: 1 1 auto; min-width: 0; }
/* Anrede und Titel werden in schmalen Kästen etwas schmaler, statt das Werkzeug daneben aus dem Kasten zu schieben */
.av-anrede { flex: 0 1 70px !important; }
.av-titel { flex: 0 1 110px !important; }
.av-zeile > .feld.av-anrede { min-width: 54px; }
.av-zeile > .feld.av-titel { min-width: 40px; }
.av-land { flex: 0 0 42px !important; }
.av-plz { flex: 0 0 50px !important; }
.av-halb { flex: 0 0 74px !important; }
.av-bic { flex: 0 0 64px !important; }
.av-datum { width: 72px; }
.av-mailing { flex: 0 0 60px !important; }
.av-urlart { color: var(--text-grau-52); }
.av-wl { border: 0; background: none; padding: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-grau-29); cursor: pointer; }
.av-wl:hover { color: var(--text-grau-5); background: var(--flaeche-grau-88b); border-radius: 3px; }
.av-mit-symbol { position: relative; }
.av-symbol { flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-grau-13); }
a.av-symbol:hover { color: var(--akzent); }
.av-haken { display: inline-flex; align-items: center; gap: 6px; color: var(--text-grau-52); white-space: nowrap; }
.av-haken.rechts { justify-content: flex-end; }
.av-luecke { height: 8px; }
.av-liste-kasten { min-height: 190px; display: flex; flex-direction: column; }
.av-liste-kasten.hoch { min-height: 300px; }
.av-liste-kasten.sehr-hoch { min-height: 480px; }
.av-raster > .av-liste-kasten:nth-of-type(4) { grid-row: span 1; }
table.av-portal { width: calc(100% - 20px); margin: 6px 10px; border-collapse: collapse; }
table.av-portal td, table.av-portal th { padding: 2px 6px; border-bottom: 1px solid var(--linie-grau-85); white-space: nowrap; text-align: left; }
table.av-portal th { color: var(--text-grau-52); font-weight: 400; border-bottom: 0; padding-bottom: 6px; }
table.av-portal .breit { width: 100%; }
/* Lange Texte der breiten Spalte enden mit „…“, statt die Tabelle über den Kasten hinaus zu verbreitern (Kästen halbe-halbe) */
table.av-portal td.breit:not(:has(input, select, textarea)) { max-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.av-portal .zahl { text-align: right; }
table.av-portal tr.klickbar { cursor: pointer; }
table.av-portal tr.klickbar:hover { background: var(--flaeche-grau-93b); }
table.av-portal .rot { color: var(--text-rot-42); }
table.av-liste th { color: var(--text-blau-36); }
.av-fuss { display: grid; gap: 4px; }
.av-fuss-felder { display: grid; grid-template-columns: 58px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 2fr) 40px 80px; gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.av-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.av-funktionen { grid-template-columns: repeat(6, auto); }
.av-suche { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.av-suche .kasten { margin-bottom: 0; }
.av-suche-links .kasten + .kasten, .av-suche-rechts .kasten + .kasten { border-top-left-radius: 0; border-top-right-radius: 0; }
.av-suchfelder { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 8px 12px 10px; }
.av-suchfelder > label { color: var(--text-magenta-39); }
.av-suche-klass .av-suchfelder { grid-template-columns: 110px minmax(0, 1fr); }
.feld.such { background: var(--flaeche-grau-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4' fill='none' stroke='%23777' stroke-width='1.6'/%3E%3Cpath d='M9.6 9.6 13 13' stroke='%23777' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 3px 4px / 10px 10px; padding-left: 15px; border-style: dotted; }
.feld.such.gelb { background-color: var(--gelb); }
.av-innen { color: var(--text-magenta-39); white-space: nowrap; padding: 0 4px 0 8px; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.av-zusatz { display: grid; grid-template-columns: minmax(0, 305px) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.av-felder.freifelder { grid-template-columns: 104px minmax(0, 1fr) 20px; }
.av-felder.freifelder > label { color: var(--text-grau-13); }
.av-finanzen { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 0 28px; align-items: start; }
/* Bankverbindungen wie Maske 82 (Feedback GE 29.11.2026, F3): Bank 1 und Bank 2 gleich breit, je Zeile zwei gleich breite
   Felder in der Reihenfolge der Beschriftung (BIC / Bankname, Mandat-ID / Datum, BLZ / Konto), das erste mindestens so breit,
   dass eine 11-stellige BIC ganz lesbar ist; darunter Felder über beide Banken */
.av-bank { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr); gap: 3px 10px; align-items: center; padding: 8px 12px 10px; }
.av-bank .av-ueber-zwei { grid-column: 2 / 4; }
.av-bank-paar { display: grid; grid-template-columns: minmax(104px, 1fr) minmax(0, 1fr); gap: 4px; min-width: 0; }
.av-bank .av-zeile > .av-rest { flex: 1 1 auto; min-width: 0; }
.av-bank .av-mandat-art { flex: 0 0 64px !important; }
.av-bank .av-gueltig { flex: 0 0 84px !important; }
/* Nebeneinander, die Bankverbindungen größer als die Vorgabewerte (Wunsch GE 02.12.2026); nur in sehr kleinen Fenstern untereinander */
.av-finanzen { container-type: inline-size; }
@container (max-width: 700px) { .av-finanzen > .kasten { grid-column: 1 / -1; } }
.av-innen-grau { color: var(--text-grau-52); white-space: nowrap; padding: 0 2px 0 6px; }
.av-bank > label.rechts { text-align: right; }
.av-unterkopf { color: var(--text-grau-36); font-weight: 700; }
.av-unterkopf.mitte { text-align: center; }
.feld.orange { background: var(--flaeche-orange-94) !important; }
.av-vorgaben { display: grid; grid-template-columns: minmax(0, 1fr) 66px 66px; gap: 3px 6px; align-items: center; padding: 8px 12px 10px; }
.av-leerzeile { height: 21px; }
.av-anschrift { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 0 28px; border-bottom: 1px solid var(--linie-grau-81b); }
.av-anschrift:last-of-type { border-bottom: 0; }
.av-papierkorb { display: flex; justify-content: flex-end; }
.av-art { color: var(--text-grau-21b); gap: 10px; }
.av-art .av-haken { color: var(--text-grau-21b); }
.av-gmaps-inhalt { padding: 14px 16px 18px; display: grid; gap: 10px; }
.av-gmaps-inhalt .knopf { display: inline-block; text-decoration: none; color: inherit; }
.av-infos { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 0 28px; align-items: start; }

/* ------------------------------------------------------------------ Kontakte / Ansprechpartner */
.ap-raster { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
.ap-adresse { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 6px; padding: 10px 14px 12px; min-height: 96px; }
.ap-adresse-knoepfe { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 6px; }
a.av-wl { color: var(--text-grau-29); text-decoration: none; }
.ap-bemerkung { width: calc(100% - 24px); margin: 10px 12px 4px; height: auto; }
.ap-fuss-felder { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 60px minmax(0, 1fr) minmax(0, 2fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.ap-fuss-felder > label { color: var(--text-grau-52); white-space: nowrap; }
.ap-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.ap-zusatz { max-width: 400px; }
.reiter-rechts { display: flex; margin-left: auto; }
.reiter-rechts .reiter-knopf { text-decoration: none; color: var(--text-grau-5); display: inline-flex; align-items: center; }
.reiter-knopf.inaktiv { color: var(--text-grau-64); cursor: default; }
.dialog-liste { max-height: 220px; overflow: auto; margin: 6px 16px 0; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-80); }
.dialog-liste table.liste { width: 100%; }
a.kopf-pfeil { text-decoration: none; }
.ap-funktionen { grid-template-columns: 26px repeat(3, auto); }

/* ------------------------------------------------------------------ Projekte */
.pj-raster { grid-template-columns: minmax(0, 350px) minmax(0, 1fr); }
.pj-komm .feld.ro { flex: 1 1 auto; min-height: 21px; background: var(--flaeche-grau-100); }
.pj-komm .pj-kurz { flex: 0 0 110px; }
.pj-angaben { display: grid; grid-template-columns: 110px minmax(0, 220px) 110px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.pj-angaben > label { color: var(--text-grau-52); white-space: nowrap; }
.pj-angaben > .pj-oben { align-self: start; padding-top: 3px; }
.pj-angaben .pj-breit { grid-column: 2 / 5; }
.pj-angaben .feld.ro { min-height: 21px; flex: 1 1 auto; background: var(--flaeche-grau-100); }
.pj-datum { width: 150px; }
.pj-status { gap: 12px; }
.pj-summe { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 2px 14px 8px; color: var(--text-grau-52); margin-top: auto; }
.pj-summe .feld.ro { width: 90px; background: transparent; border: 0; border-bottom: 1px solid var(--linie-grau-36); border-radius: 0; text-align: right; }
.pj-fuss-felder { display: grid; grid-template-columns: 60px minmax(0, 1fr) 50px minmax(0, 1fr) 40px minmax(0, 2fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.pj-fuss-felder > label { color: var(--text-grau-52); white-space: nowrap; }
.pj-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.pj-fuss-felder .pj-termine { grid-column: 3 / 5; text-align: right; }
.zentrale tr.klickbar, .kachel tr.klickbar { cursor: pointer; }
.adressen textarea.feld { height: auto; }
.pj-fuss-felder .pj-drei { grid-column: 5 / 7; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 6px; }

/* ------------------------------------------------------------------ Rechnungseingang */
.re-raster { grid-template-columns: minmax(0, 350px) minmax(0, 1fr); }
.re-allgemein { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) 20px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.re-allgemein > label { color: var(--text-grau-52); }
.re-allgemein .feld.ro { min-height: 21px; }
.re-allgemein .re-notiz { grid-column: 2 / 5; }
.feld.ro.mitte { text-align: center; }
.feld.fett, .fett { font-weight: 700; }
.re-beleg { display: grid; grid-template-columns: 100px 150px 90px minmax(0, 1fr) 90px 190px; gap: 3px 8px; align-items: center; padding: 10px 14px 12px; }
.re-beleg > label { color: var(--text-grau-52); white-space: nowrap; }
.re-beleg .feld.ro { min-height: 21px; }
.re-kurz { flex: 0 0 36px !important; text-align: center; }
.re-bis { color: var(--text-grau-52); white-space: nowrap; }
.re-datum { width: 90px; }
.re-skonto { white-space: nowrap; padding: 2px 6px; }
.re-betraege { display: grid; grid-template-columns: 100px 14px 130px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.re-betraege > label { color: var(--text-grau-52); }
.re-betraege > span:not(.feld):not(.sd-mit-knopf) { color: var(--text-grau-52); text-align: center; }
.re-summe { border-top: 1px solid var(--linie-grau-21); }
.re-banking { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 8px; align-items: center; padding: 12px 14px 14px; }
.re-banking > label { color: var(--text-grau-21b); font-weight: 700; }
.re-banking .re-breit { min-width: 0; }
.re-banking .feld.ro { min-height: 21px; }
.re-transfer { padding: 1px 8px; min-width: 0; }
.re-hinweis { text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-hinweis:disabled { cursor: default; }
.re-haben { flex: 0 0 110px !important; }
table.re-zahlungen { width: calc(100% - 20px); margin: 6px 10px 10px; border-collapse: collapse; }
table.re-zahlungen th { color: var(--text-grau-52); font-weight: 400; text-align: left; padding: 1px 4px; white-space: nowrap; }
table.re-zahlungen td { padding: 1px 2px; }
table.re-zahlungen td:nth-child(2) { width: 16px; }
table.re-zahlungen td:nth-child(3) { width: 100px; }
table.re-zahlungen td:nth-child(4), table.re-zahlungen td:nth-child(5) { width: 80px; }
table.re-zahlungen td:nth-child(6) { width: 130px; }
table.re-zahlungen td:nth-child(8) { width: 60px; }
table.re-zahlungen .breit { width: 100%; }
table.re-zahlungen th.rechts { text-align: right; }
table.re-zahlungen .mitte { text-align: center; }
table.re-zahlungen .sd-dreieck { height: 21px; width: 14px; display: block; }
table.re-zahlungen td:nth-child(2) { padding-right: 0; }
.re-storniert { color: var(--text-rot-43); font-weight: 700; padding: 0 0 2px 30%; margin-top: -10px; }
.dialog-knoepfe.zwei-seiten { justify-content: space-between; }
.al-vorschau { display: flex; align-items: center; gap: 2px; }

/* ------------------------------------------------------------------ Korrespondenz (Aufbau wie in der Demo) */
.kr-raster { grid-template-columns: minmax(0, 344px) minmax(0, 1fr); }
.kr-angaben { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 3px 8px; align-items: center; padding: 10px 14px 12px; }
.kr-angaben > label { color: var(--text-grau-21b); }
.kr-angaben .feld.ro { min-height: 21px; }
.kr-fax { flex: 0 0 110px !important; }
.kr-zeichen { flex: 0 0 46px !important; }
.kr-platz { flex: 1 1 auto; }
.kr-vermerke { display: grid; gap: 3px; }
.kr-text { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 10px 14px 12px; }
.kr-text > label { color: var(--text-grau-21b); }
.kr-datum-label { margin: 0 6px 0 14px; color: var(--text-grau-21b); }
.kr-datum { flex: 0 0 88px !important; width: 88px; }
/* Mailbox Eingang/Ausgang: Datum mit Uhrzeit vollständig lesbar, Status darunter gleich breit */
.kr-text[data-testid="mail-kopf"] .kr-datum, .kr-text[data-testid="mail-kopf"] .kr-fax { flex: 0 0 118px !important; width: 118px; }
/* Verteiler → Infos in der schmalen linken Spalte: kürzere Beschriftungsspalte, lange Inhalte umbrechen statt abschneiden */
.kr-angaben[data-testid="infos"] { grid-template-columns: 84px minmax(0, 1fr); }
.kr-angaben[data-testid="infos"] > .feld.ro { white-space: normal; height: auto; }
.kr-brieftext { min-height: 340px; }
.kr-kurz { max-width: 240px; }
.kr-fuss-felder { display: grid; grid-template-columns: 50px minmax(0, 1fr) 30px minmax(0, 1fr) 40px minmax(0, 1fr) 60px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.kr-fuss-felder > label { color: var(--text-grau-21b); }
.kr-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.kr-suche { grid-template-columns: 120px minmax(0, 420px); }
.kr-blatt { height: calc(70vh / var(--zoom)); }
.tb-liste { padding: 0 16px; }
button.kopf-pfeil.knopf-pfeil { padding: 0; cursor: pointer; }
.dialog-fehler { color: var(--text-rot-43); margin: 0 16px 6px; }
.dv-erfassung { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 0 24px; align-items: start; }
.dv-felder { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 4px 8px; align-items: start; padding: 10px 14px 12px; }
.dv-felder > label { color: var(--text-grau-52); padding-top: 3px; }
.dv-felder .feld.ro { min-height: 21px; }
.dv-vorschau { padding: 10px; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.dv-vorschau img { max-width: 100%; max-height: 420px; }
.kr-fuss-felder.dv-fuss { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2fr); }
.kr-fuss-felder.vt-fuss-felder { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 2fr) auto minmax(0, 1fr); }
.tb-liste select { width: 100%; min-height: 260px; }

/* ------------------------------------------------------------------ Wiedervorlagen (Liste wie in der Demo) */
.wv-fuss-felder { display: grid; grid-template-columns: 70px 90px 70px 90px 70px minmax(0, 1fr) 60px minmax(0, 1fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.wv-fuss-felder > label { color: var(--text-grau-21b); white-space: nowrap; }
.wv-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
table.uebersicht td a.rot { color: var(--text-rot-43); text-decoration: none; }
.wv-funktionen { grid-template-columns: 26px 150px 150px 150px auto; justify-content: start; column-gap: 20px; }

/* ------------------------------------------------------------------ Benutzerverwaltung (Aufbau wie in der Demo) */
.bv-raster { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 0 24px; align-items: start; }
.bv-raster .kasten { margin-bottom: 16px; }
table.bv-matrix { width: calc(100% - 12px); margin: 6px; border-collapse: collapse; }
table.bv-matrix th, table.bv-matrix td { border-bottom: 1px solid var(--linie-grau-81b); padding: 2px 6px; font-weight: 400; }
table.bv-matrix td { text-align: center; border-left: 1px solid var(--linie-grau-81b); width: 18%; }
table.bv-matrix thead th { text-align: center; color: var(--text-grau-21b); }
table.bv-matrix thead th:first-child, table.bv-matrix tbody th { text-align: left; }
table.bv-matrix .blau { color: var(--text-blau-35c); font-weight: 700; }
table.bv-matrix .rot, .bv-janein.rot { color: var(--text-rot-43); }
.bv-punkt { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--linie-grau-21); background: var(--flaeche-grau-100); padding: 0; cursor: pointer; vertical-align: middle; }
.bv-punkt.an { background: radial-gradient(circle, var(--flaeche-grau-5) 0 3px, var(--flaeche-grau-100) 3.5px); }
.bv-punkt.rot { border-color: var(--linie-rot-43); }
.bv-punkt.rot.an { background: radial-gradient(circle, var(--flaeche-rot-43) 0 3px, var(--flaeche-grau-100) 3.5px); }
.bv-x { font-weight: 700; }
.bv-hinweis { color: var(--text-grau-52); padding: 8px 12px 12px; margin: 0; }
.bv-felder { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 10px 14px 12px; }
.bv-kennwort { background: var(--flaeche-grau-98); }
.bv-vorgaben { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 10px 14px 12px; }
.bv-vorgaben > label, .bv-vorgaben > span:not(.bv-janein) { color: var(--text-grau-21b); }
.bv-janein { display: flex; gap: 12px; }
.bv-janein label { display: flex; align-items: center; gap: 3px; }
.bv-janein input { accent-color: var(--flaeche-grau-13); margin: 0; }
.bv-janein.rot input { accent-color: var(--flaeche-rot-43); }
.bv-felder .knopf { white-space: nowrap; min-width: 0; padding: 3px 10px; }
.bv-kurz { max-width: 120px; }
/* Unterschrift unten in „Administrative Vorgaben“ (alt: 230 × 50): weißes Feld, das Bild ganz sichtbar */
.bv-unterschrift { display: grid; gap: 5px; padding: 8px 14px 14px; border-top: 1px solid var(--linie-grau-85); color: var(--text-grau-21b); }
.bv-unterschrift-bild { display: flex; align-items: center; width: 280px; max-width: 100%; height: 60px; padding: 3px 6px; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-81b); }
.bv-unterschrift-bild img { max-width: 100%; max-height: 100%; }
.bv-unterschrift .knopf { flex: none; }
.bv-unterschrift-laden { position: relative; overflow: hidden; text-align: center; }
.bv-unterschrift-laden input { position: absolute; width: 1px; height: 1px; opacity: 0; left: 0; top: 0; }
.re-fuss-felder { display: grid; grid-template-columns: 60px minmax(0, 2fr) 40px minmax(0, 2fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.re-fuss-felder > label { color: var(--text-grau-52); }
.re-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
table.re-zahlungen td:nth-child(3) .feld { min-width: 100px; }
table.re-zahlungen td:nth-child(4) .feld, table.re-zahlungen td:nth-child(5) .feld { min-width: 88px; }
table.re-zahlungen td:nth-child(6) .feld { min-width: 150px; }
table.re-zahlungen td:nth-child(8) .feld { min-width: 60px; }

/* ------------------------------------------------------------------ Leistungsverwaltung (Aufbau wie in der Demo) */
.leistungen > .kasten, .leistungen .kasten { margin-bottom: 16px; }
.le-raster { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 55fr); gap: 0 24px; align-items: stretch; }
.le-raster > .kasten { margin-bottom: 16px; }
.le-felder { display: grid; grid-template-columns: 100px minmax(0, 1fr) 54px 96px; gap: 3px 6px; align-items: center; align-content: start; padding: 10px 14px 12px; }
.le-felder > label, .le-zusatz > label, .le-vermerke > label, .le-shop > label, .le-kalk > label, .le-qr > label { color: var(--text-grau-52); white-space: nowrap; }
.le-felder .le-breit { grid-column: 2 / 5; }
.le-felder .le-halb { min-width: 0; }
.le-kurz { flex: 0 0 46px !important; width: 46px; }
.le-zusatz { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 3px 6px; align-items: center; align-content: start; padding: 10px 14px 12px; }
.le-zusatz .le-janein, .le-zusatz .le-25a { margin-left: 44px; width: calc(100% - 44px); min-width: 0; }
.le-zusatz .le-25a { white-space: normal; color: var(--text-grau-13); font-size: 11.5px; }
.le-zusatz .le-abstand { margin-top: 10px; }
.le-preise { display: grid; grid-template-columns: 92px 84px 48px 60px 100px 100px 84px 62px minmax(0, 1fr); gap: 2px 5px; align-items: center; padding: 8px 14px 10px; }
.le-preise > span:not(.feld):not(.sd-mit-knopf) { color: var(--text-grau-52); text-align: right; font-size: 11.5px; white-space: nowrap; }
.le-preise > span.links:not(.feld):not(.sd-mit-knopf) { text-align: left; }
.le-preise .le-faktor .feld { min-width: 0; }
.le-vermerke { display: grid; grid-template-columns: 100px minmax(0, 290px) minmax(0, 1fr) 150px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.le-vermerke > label.rechts { text-align: right; }
.le-vermerke .le-voll { grid-column: 2 / 5; }
.leistungen textarea.feld { height: auto; resize: vertical; }
/* Übersichtsliste */
table.le-liste th.le-sort { white-space: nowrap; }
.le-sortieren { border: 0; background: none; padding: 0 0 0 6px; color: var(--text-grau-64); cursor: pointer; vertical-align: middle; }
.le-sortieren:hover, .le-sortieren.aktiv { color: var(--text-blau-36); }
.le-fuss-felder { display: grid; gap: 2px; padding: 4px 6px 2px; }
.le-fuss-zeile { display: flex; align-items: center; gap: 6px; }
.le-fuss-zeile > label { color: var(--text-grau-21b); white-space: nowrap; }
.le-fuss-zeile .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.le-f-lft { flex: 0 0 125px; }
.le-f-ean { flex: 0 0 115px; }
.le-f-ja { flex: 0 0 30px; }
.le-f-umsatz { flex: 1 1 auto; }
.le-f-lager { flex: 0 0 44px; }
.le-f-langtext { flex: 0 1 520px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-left: 38px; }
.le-funktionen { grid-template-columns: 20px repeat(5, auto); }
/* Suchen */
.le-suchfelder { grid-template-columns: 112px minmax(0, 1fr); }
.le-suche .le-klein { width: 60px; }
.le-suche .le-mini { width: 34px; flex: 0 0 34px !important; }
.le-suche .le-kurz2 { width: 120px; }
.le-suche .le-halbbreit { width: 75%; }
.le-lager > label { color: var(--text-magenta-39); padding: 0 2px 0 10px; }
.le-suchpreise { display: grid; grid-template-columns: 70px repeat(3, minmax(0, 1fr)); gap: 3px 6px; align-items: center; padding: 8px 12px 10px; }
.le-suchpreise > span { color: var(--text-magenta-39); text-align: right; white-space: nowrap; }
.le-suchpreise > label { color: var(--text-magenta-39); }
.le-suchpreise > label.rechts { text-align: right; }
.le-suchinfo > label { color: var(--text-magenta-39); }
.le-ueber-zwei { grid-column: 2 / 4; }
.le-radio { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.le-radio > label { display: inline-flex; align-items: center; gap: 3px; color: var(--text-grau-13); }
.le-radio em, .le-qr em { color: var(--text-grau-64); font-style: italic; margin-left: 10px; }
/* Zusatz */
.le-zusatz-raster { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 0 26px; align-items: stretch; }
.le-zusatz-raster > .kasten { margin-bottom: 16px; }
.le-shop { display: grid; grid-template-columns: 104px 140px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.le-shop .le-ueber-zwei { grid-column: 2 / 4; }
.le-shop .le-ueber-drei { grid-column: 1 / 4; }
.le-bild { border: 1px solid var(--linie-grau-80); background: var(--flaeche-grau-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.le-bild.klein { width: 80px; height: 80px; }
.le-bild.gross { grid-column: 3; grid-row: 5 / 8; height: 120px; align-self: start; }
.le-bild img { max-width: 100%; max-height: 100%; }
.av-wl.inaktiv { color: var(--text-grau-76); cursor: default; }
.le-kalk { display: grid; grid-template-columns: minmax(0, 1fr) 74px 14px 96px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.le-kalk > span.mitte { color: var(--text-grau-21b); text-align: center; }
.le-prozent { display: flex; align-items: center; gap: 4px; }
.le-prozent .feld { width: 46px; }
.le-zeichen { color: var(--text-rot-34); text-align: center; }
.le-kalk .le-schwelle { width: 74px; }
.le-kalk-ergebnis { grid-column: 1 / 5; display: grid; grid-template-columns: 190px 14px minmax(0, 1fr); align-items: center; border: 1px solid var(--linie-grau-75); border-radius: 2px; background: var(--flaeche-grau-91); padding: 2px 6px; color: var(--text-grau-36); }
.le-kalk-ergebnis b { text-align: right; color: var(--text-grau-5); }
.le-kalk-knopf { grid-column: 1 / 5; text-align: right; padding: 6px 6px 0; }
.link-knopf { border: 0; background: none; color: var(--text-blau-40); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.link-knopf:disabled { color: var(--text-grau-64); cursor: default; }
.le-kalk-aktuell { grid-column: 1 / 5; padding-top: 12px; color: var(--text-grau-5); }
.le-kalk-aktuell span { color: var(--text-blau-40); }
.le-qr { display: grid; grid-template-columns: 100px minmax(0, 1fr) 120px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.le-qr .le-qr-daten { grid-column: 2 / 4; max-width: 890px; }
.le-qr .le-qr-zahl { width: 50px; flex: 0 0 50px !important; }
/* Kundenpreis, Dokumente, Infos */
.le-grau { color: var(--text-grau-52); }
.le-blau { color: var(--text-blau-40); }
.le-kundenpreis .le-unten { margin-top: auto; }
.le-dokumente-frei { height: 200px; }
.le-infos { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 0 26px; align-items: stretch; }
.le-infos > .kasten { margin-bottom: 16px; }
.le-info-leistung { display: grid; gap: 2px; padding: 10px 14px 12px; min-height: 96px; align-content: start; }
.le-info-leistung .rechts { text-align: right; min-height: 15px; }
.le-info-leistung .le-info-langtext { white-space: pre-line; }
.le-info-raster .le-ueber-zwei { grid-column: 2 / 4; }
.leistungen label.pj-oben { align-self: start; padding-top: 3px; }
.le-suche .av-zeile > .le-klein { flex: 0 0 60px !important; }

/* ------------------------------------------------------------------ Kassenbuch (Aufbau wie in der Demo) */
.kassenbuch .kasten { margin-bottom: 16px; }
.kb-rot { color: var(--text-rot-42); }
.kb-schwarz { color: var(--text-grau-5); }
.kb-raster { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
.kb-raster > .kasten { margin-bottom: 16px; }
.kb-beleg { display: grid; grid-template-columns: 100px 110px; gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.kb-beleg > label, .kb-info > label, .kb-kontierung > label { color: var(--text-grau-52); white-space: nowrap; }
.kb-beleg .feld.ro { min-height: 20px; background: var(--flaeche-grau-96c); }
.kb-luecke { height: 12px; }
.kb-info { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.kb-info .feld.ro { min-height: 20px; background: var(--flaeche-grau-96c); }
.kb-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.kb-link.inaktiv { color: var(--text-grau-80); }
.kb-kontierung { display: grid; grid-template-columns: 100px minmax(0, 260px) 140px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.kb-kontierung > label.kb-rechts { text-align: right; padding-right: 8px; }
.kb-wahl { min-height: 20px; text-align: left; font: inherit; color: var(--text-grau-5); cursor: pointer; background: var(--flaeche-grau-96c); }
.kb-wahl:hover { background: var(--flaeche-blau-93); }
.kb-bemerkung { grid-column: 2 / 5; display: flex; align-items: flex-start; gap: 0; min-width: 0; }
.kb-bemerkung .kb-einsetzen { flex: 0 0 14px; height: 18px; margin-right: 4px; border-radius: 3px; }
.kb-bemerkung textarea.feld { flex: 1 1 auto; min-width: 0; }
.kb-summen { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 90px 100px 104px; gap: 2px 3px; align-items: center; padding: 6px 6px 4px; }
.kb-summen > label { text-align: right; color: var(--text-grau-21b); padding-right: 4px; }
.kb-summen .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; }
.kb-funktionen { grid-template-columns: 20px repeat(4, auto); justify-content: start; column-gap: 40px; }
.kb-neu { grid-template-columns: 110px minmax(0, 1fr); }
.kb-haken { color: var(--text-grau-13); }
.kb-liste { width: 100%; min-height: 220px; margin-top: 8px; border: 1px solid var(--linie-grau-75); background: var(--flaeche-grau-100); font: inherit; }
.kb-suchfelder { grid-template-columns: 112px minmax(0, 1fr); }
.kb-suche .kb-kurz { width: 80px; }
.kb-konten { grid-template-columns: 112px 80px minmax(0, 1fr); }
.kb-konten .kb-ueber-zwei { grid-column: 2 / 4; }
.kb-hinweis { color: var(--text-magenta-39); }
.kb-suchtext { white-space: pre-line; }
.kassenbuch textarea.feld { height: auto; }
.kassenbuch label.pj-oben { align-self: start; padding-top: 3px; }

/* ------------------------------------------------------------------ Notizen (Aufbau wie in der Demo) */
.notizen .kasten { margin-bottom: 16px; }
.nz-raster { grid-template-columns: minmax(0, 350px) minmax(0, 1fr); }
.nz-komm { grid-template-columns: 112px minmax(0, 1fr); }
.nz-komm .feld.ro { flex: 1 1 auto; min-height: 20px; background: var(--flaeche-grau-100); }
.nz-notiz { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 10px 14px 12px; }
.nz-notiz > label { color: var(--text-grau-52); white-space: nowrap; }
.nz-notiz > label.pj-oben { align-self: start; padding-top: 3px; }
.nz-datum { width: 80px; }
.nz-erledigt { gap: 12px; }
.nz-erledigt .av-haken { color: var(--text-grau-13); }
.nz-text { min-height: 300px; }
.notizen textarea.feld { height: auto; }
.nz-fuss-felder { display: grid; grid-template-columns: 58px minmax(0, 180px) 50px minmax(0, 220px) 40px minmax(0, 1fr); gap: 2px 6px; align-items: center; padding: 4px 6px 2px; }
.nz-fuss-felder > label { color: var(--text-grau-21b); white-space: nowrap; }
.nz-fuss-felder .feld.ro { background: var(--flaeche-grau-100); min-height: 18px; flex: 1 1 auto; }
.nz-funktionen { grid-template-columns: 26px 120px repeat(3, auto); justify-content: start; column-gap: 30px; }
.kb-mini { width: 40px; }

/* ---------------------------------------------------------------- Terminplaner (Demo 26.11.2026) */
.tp-kalender { padding: 6px 8px 8px; font-size: 11px; }
.tp-kal-zeile { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 4px; align-items: center; margin-bottom: 3px; }
.tp-kal-zeile button { height: 17px; padding: 0; border: 1px solid var(--linie-grau-57); border-radius: 2px; background: linear-gradient(var(--flaeche-grau-98b), var(--flaeche-grau-88d)); font-size: 10px; cursor: pointer; }
.tp-kal-wert { text-align: center; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-75); height: 17px; line-height: 15px; }
.tp-kal-tage { width: 100%; border-collapse: separate; border-spacing: 1px; margin-top: 2px; }
.tp-kal-tage th { font-weight: 400; font-size: 10px; color: var(--text-grau-21b); text-align: center; }
.tp-kal-tage td { padding: 0; text-align: center; }
.tp-kal-tage td.leer { background: var(--flaeche-grau-84); }
.tp-kal-tage button { width: 100%; height: 16px; padding: 0; border: 0; background: var(--flaeche-grau-84); color: var(--text-blau-27); font-size: 10.5px; cursor: pointer; }
.tp-kal-tage button:hover { background: var(--flaeche-blau-75); }
.tp-kal-tage button.belegt { font-weight: 700; background: var(--flaeche-blau-80); }
.tp-kal-tage button.heute { outline: 1px solid var(--linie-blau-27); }
.tp-kal-tage button.gewaehlt { background: var(--flaeche-blau-45); color: var(--text-grau-100); }
.tp-adresse { position: relative; }
.tp-projekt { position: absolute; right: 44px; bottom: 8px; font-size: 11px; }
.tp-kommunikation { grid-template-columns: 96px minmax(0, 1fr); }
.tp-kommunikation .tp-schmal { flex: 0 0 34%; }
.tp-kommunikation > .av-zeile > .av-zeile { flex: 1 1 auto; }
.tp-daten { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 0 18px; }
.tp-daten .av-felder { grid-template-columns: 96px minmax(0, 1fr); }
.tp-datum { width: 92px; flex: none; }
.tp-wochentag { min-width: 76px; font-weight: 700; font-size: 11px; }
.tp-zeit { width: 62px; flex: none; text-align: center; }
.tp-prio { width: 44px; flex: none; }
.tp-bis { margin: 0 4px 0 8px; color: var(--text-grau-52); }
.tp-pfeil { flex: none; width: 18px; height: 18px; padding: 0; border: 1px solid var(--linie-grau-67b); border-radius: 2px; background: linear-gradient(var(--flaeche-grau-98b), var(--flaeche-grau-89)); color: var(--text-grau-36); font-size: 9px; line-height: 1; cursor: pointer; }
.tp-erledigt { gap: 12px; }
.tp-status { margin-left: auto; }
.tp-positionen .tp-zelle { width: 100%; min-height: 18px; padding: 0 3px; border-color: transparent; background: transparent; }
.tp-positionen .tp-zelle:focus { border-color: var(--linie-blau-67); background: var(--flaeche-grau-100); }
.tp-rechnung { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 6px 10px; }
.tp-link { border: 0; background: none; padding: 0; color: var(--text-blau-40b); font-weight: 700; cursor: pointer; }
.tp-link:hover { text-decoration: underline; }
.tp-fuss { grid-template-columns: 58px minmax(0, 1fr) 30px minmax(0, 1fr) 40px minmax(0, 1.4fr) 64px minmax(0, 1fr) 36px minmax(0, 1.4fr) minmax(0, 2fr); }
.tp-fuss-notiz { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-fuss-aktionen { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 4px 0 0 0; padding: 0; }
.tp-fuss-aktionen .ue-symbol { flex: 0 0 36px; display: flex; justify-content: center; align-items: center; color: var(--text-blau-40); }
.tp-wochenplan { padding: 0 4px; }
.tp-woche-kopf { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; align-items: center; max-width: 830px; height: 20px; margin-bottom: 10px; background: linear-gradient(var(--flaeche-grau-69), var(--flaeche-grau-53)); color: var(--text-grau-100); font-weight: 700; font-size: 11px; text-align: center; border-radius: 2px; }
.tp-woche-kopf button { height: 18px; border: 1px solid var(--linie-grau-50); background: var(--flaeche-grau-97c); color: var(--text-grau-21b); padding: 0; cursor: pointer; }
.tp-woche-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 405px)); gap: 0 26px; }
.tp-tag { margin-bottom: 14px; }
.tp-tag.halb { margin-bottom: 0; }
.tp-tag-kopf { display: flex; justify-content: space-between; padding: 0 8px; }
.tp-tag-liste { width: 100%; }
.tp-tag-liste td { padding: 2px 4px; font-size: 11px; }
.tp-tag-liste tr.gewaehlt td { background: var(--gelb); }
.tp-uhr { width: 38px; }
.tp-zeitlinie th, .tp-zeitlinie td { vertical-align: middle; }
.tp-strahl-kopf { width: 44%; }
.tp-strahl { position: relative; height: 18px; }
.tp-stunde { position: absolute; top: 0; transform: translateX(-50%); font-size: 9.5px; color: var(--text-grau-21b); }
.tp-stunde:first-child { transform: none; }
.tp-stunde:last-child { transform: translateX(-100%); }
/* Schmaler Zeitstrahl: nur jede zweite Stundenbeschriftung, damit sich die Zahlen nicht überlappen (Striche bleiben stündlich) */
.tp-strahl-kopf > .tp-strahl { container-type: inline-size; }
@container (max-width: 600px) { .tp-stunde:nth-child(even) { visibility: hidden; } }
.tp-daten label.tp-oben { align-self: start; padding-top: 4px; }
.tp-strich { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--linie-rot-52); opacity: .45; }
.tp-balken { position: absolute; top: 4px; height: 10px; background: var(--flaeche-blau-21); border-radius: 1px; }
.kachel h2 button.kopf-pfeil { padding: 0; cursor: pointer; }
.kachel tr.zeit-laeuft td, .pj-zeiten tr.zeit-laeuft td { color: var(--text-rot-43); }
.pj-zeiten tr.markiert td { background: var(--gelb); color: var(--text-blau-40b); }
td.blau { color: var(--text-blau-40b); }

/* ---------------------------------------------------------------- Historie (Demo 26.11.2026) */
.hi-reiter .reiter-platz { display: inline-block; width: 70px; }
.hi-liste td.rot, .liste td.rot { color: var(--text-rot-43); }
.hi-fuss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; padding: 2px 6px 4px 40px; }
.hi-fuss .aktionen { margin: 0; padding: 0; }
.hi-fuss .aktionen:last-child { justify-self: end; }

/* ---------------------------------------------------------------- Postleitzahlen, Bankleitzahlen (Demo 26.11.2026) */
.st-felder { grid-template-columns: 96px minmax(0, 1fr); }
.st-felder .st-kurz { max-width: 110px; }
.st-erstellt { grid-column: 1 / -1; padding-top: 10px; font-size: 11px; }
.feld.fett { font-weight: 700; }

/* Kundenpreise (Reiter Preise) */
.av-kp-netto { display: inline-block; width: 92px; min-height: 18px; text-align: right; }

/* ---------------------------------------------------------------- Runde Tasten im Kastenkopf (Demo 26.11.2026) */
.kopf-taste { padding: 0; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1; }
.kopf-taste:hover, .kopf-taste:focus-visible { background: var(--flaeche-grau-100); color: var(--text-grau-10); }
.kopf-taste.aus { cursor: default; opacity: .45; }
.kopf-taste.aus:hover { background: var(--flaeche-grau-95c); color: var(--text-grau-36); }

/* ---------------------------------------------------------------- Menüleiste aller Module (Demo 26.11.2026) */
.menue-liste a { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; padding: 3px 12px 3px 6px; color: var(--text-grau-5); text-decoration: none; white-space: nowrap; }
.menue-liste a:hover, .menue-liste a:focus-visible { background: var(--flaeche-blau-88); }
.menue-liste button { white-space: nowrap; }
.menue-liste li.hat-unter { position: relative; }
.menue-liste li.hat-unter > button[aria-expanded="true"] { background: var(--flaeche-blau-88); }
.menue-liste.unter { top: -4px; left: 100%; min-width: 260px; }
.menue-liste kbd.pfeil-rechts { font-size: 10px; }
.menue-liste button.aktuell:disabled { color: var(--text-grau-5); }
.menueleiste .dialog-hintergrund { z-index: 60; }
@media print { .menueleiste { display: none; } }

/* ---------------------------------------------------------------- Benutzerverwaltung: Voreinstellungen, eMail Konto (Demo 26.11.2026) */
.bv-vor { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.bv-einstellungen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 3px 10px; align-items: center; padding: 10px 14px 12px; }
.bv-einstellungen > label { color: var(--text-grau-21b); }
.bv-einstellungen > label.eingerueckt { padding-left: 20px; }
.bv-einstellungen > .feld.zahl { text-align: right; }
.bv-mail { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.bv-pop3 { display: flex; justify-content: center; align-items: center; min-height: 120px; }
.bv-smtp { grid-template-columns: 110px minmax(0, 1fr); }
.bv-signatur { min-height: 200px; font-family: inherit; }
.kopf-zusatz { font-weight: normal; opacity: .85; }
.bv-hinweis-unten { max-width: 360px; }

/* ---------------------------------------------------------------- Finanzwesen: eMail senden (PDF-Mail mit E-Rechnung) */
.dialog-raster.fw-mail { grid-template-columns: 90px minmax(0, 1fr); margin: 0 16px 8px; }
.fw-mail-art { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fw-mail-art label { display: inline-flex; align-items: center; gap: 4px; }
.fw-mail textarea, .fw-mail textarea.feld { font-family: inherit; resize: vertical; height: auto; min-height: 150px; }
.zusatz-raster .mail-quelle { font-size: 11px; color: var(--text-grau-52); margin-top: -2px; }
.zusatz-raster .mail-quelle.warnung { color: var(--text-rot-43); }
.bv-ablage { display: flex; gap: 8px; align-items: center; padding: 0 12px 12px; }
.bv-ablage .feld { flex: 1 1 auto; min-width: 0; }
.fw-mail-anhang { display: flex; flex-direction: column; gap: 3px; }
.fw-mail-vorlage { color: var(--text-grau-36); font-size: 11px; margin-top: -2px; }
/* Symbolknöpfe wie im Original: Drucker im Kastenkopf, Lupe neben einem Feld */
.kopf-symbol { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px; padding: 0; border: 0; background: transparent; color: var(--text-grau-100); cursor: pointer; }
.kopf-symbol svg { width: 16px; height: 16px; }
.kopf-symbol:hover { color: var(--text-grau-95); filter: drop-shadow(0 0 1px var(--schatten-grau-0-a50)); }
.feld-symbol { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 20px; padding: 0; border: 0; background: transparent; color: var(--text-grau-29); cursor: pointer; }
.feld-symbol svg { width: 15px; height: 15px; }
.feld-symbol:hover { color: var(--text-grau-0); }
.dialog-raster.druck-raster { grid-template-columns: 110px 230px; margin: 0 16px 10px 70px; align-items: center; }
.druck-optionen { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.druck-optionen label { display: inline-flex; align-items: center; gap: 6px; }
.dialog.druck-vorschau { width: min(980px, calc(94vw / var(--zoom))); }
.druck-vorschau-blatt { display: block; width: 100%; height: calc(72vh / var(--zoom)); border: 0; background: var(--flaeche-blau-48); }
.feld.feld-klick { cursor: pointer; text-align: left; font: inherit; color: inherit; min-width: 56px; }
.dialog-raster.st-raster { grid-template-columns: 110px 220px; margin: 0 16px 10px 70px; align-items: center; }
.texte-raster { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; padding: 8px 10px 10px; align-items: start; }
.texte-raster > label { color: var(--text-grau-50); padding-top: 3px; }
.texte-raster .texte-zusatz { display: block; margin-top: 12px; font-size: 11px; color: var(--text-grau-57b); }
.texte-raster textarea.feld { width: 100%; height: auto; resize: vertical; font-family: inherit; }
.texte-bgb { display: grid; grid-template-columns: minmax(0, 560px) auto; gap: 10px; align-items: start; }
.texte-bgb .grau { color: var(--text-grau-57b); font-size: 11px; padding-top: 3px; }
.dialog-raster.dk-raster { grid-template-columns: 110px 150px; margin: 0 16px 10px 70px; align-items: center; }
.dk-raster .dk-kopien { width: 50px; text-align: right; }
.dk-raster .dk-projekt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sd-platzhalter { margin-top: 6px; font-size: 11px; color: var(--text-grau-29); line-height: 1.5; }
.sd-platzhalter span { display: inline-block; margin-right: 12px; }
.fw-mail-anhang label { display: inline-flex; align-items: center; gap: 5px; }
/* Feld "Kopien": Anklicken ab 1 Kopie → Nullstellung */
.zusatz-raster .kopien.klickbar, .zusatz-raster .feld.klickbar { cursor: pointer; }
.zusatz-raster .kopien.klickbar:hover, .zusatz-raster .feld.klickbar:hover { background: var(--flaeche-grau-100); border-color: var(--linie-grau-57); }

/* Testbetrieb mit Altdaten: Hinweis über jeder Maske (Versandsperre) */
.testbetrieb-hinweis { background: var(--flaeche-orange-47); color: var(--text-grau-100); font-weight: 600; text-align: center; padding: 0 8px; font-size: 12px; height: 24px; line-height: 24px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Blättern in langen Übersichtslisten (x-listen-seiten) */
.listen-seiten { position: sticky; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--flaeche-grau-93); border-top: 1px solid var(--linie-grau-81b); font-size: 12px; }
.listen-seiten .knopf.klein { min-width: 26px; padding: 1px 6px; }
.listen-seiten-bereich { margin-left: auto; color: var(--text-grau-36); }

/* Abweichende Rechnungs- und Lieferanschrift im Kasten Kunde des Finanzvorgangs */
.abw-anschrift { margin-top: 3px; font-size: 11.5px; color: var(--text-blau-30); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abw-loeschen { border: 0; background: transparent; color: var(--warnung); cursor: pointer; padding: 0 3px; }

/* Ohne das Recht „Marge sichtbar?“: Einkaufspreis und Marge verdeckt */
.feld.verdeckt { color: var(--text-grau-57b); letter-spacing: 2px; text-align: center; }

/* Wunsch Anwender (26.11.2026, ergänzt 30.11.2026 mit Bild der Zentrale): Kästen in allen Modulen fast symmetrisch –
   nebeneinanderliegende Kästen teilen sich die Breite zu gleichen Teilen wie die Kacheln der Zentrale (vorher 38:62,
   links war es immer zu schmal). Gilt für Erfassung, Suche, Zusatz, Anschriften, Finanzen, Infos und Voreinstellungen. */
.erfassung-oben, .vorgang-raster, .av-raster, .av-suche, .av-zusatz, .av-anschrift, .ap-raster, .pj-raster, .re-raster, .kr-raster,
.kb-raster, .le-raster, .le-zusatz-raster, .le-infos, .sd-zwei, .av-finanzen, .av-infos, .dv-erfassung, .bv-raster, .tp-daten,
.zahlungen-raster, .pos-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Positionen: der Positionskasten braucht für seine Feldzeilen gut 400 px – in kleinen Fenstern bleibt es dann fast symmetrisch */
.pos-raster { grid-template-columns: minmax(410px, 2.7fr) minmax(170px, 1fr); }
/* wie im Original (Maske 140): „Pos. n“ mit „Basisdaten“ ist ein Kasten, „Auswahl“ mit „Seriennummern“ der zweite (Wunsch GE 02.12.2026) */
.pos-links > .kasten, .pos-rechts > .kasten { margin-bottom: 0; }
.pos-links > .kasten:first-child, .pos-rechts > .kasten:first-child { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pos-links > .kasten + .kasten, .pos-rechts > .kasten + .kasten { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.pos-links > .kasten + .kasten > .kasten-kopf, .pos-rechts > .kasten + .kasten > .kasten-kopf { border-radius: 0; }
.pos-links > .pos-kasten { flex: 1 1 auto; display: flex; flex-direction: column; }
.pos-links > .pos-kasten > .pos-felder { flex: 1 1 auto; min-height: 0; grid-template-rows: auto auto minmax(58px, 1fr) auto auto; }
.pos-links > .pos-kasten > .pos-felder > textarea { height: 100%; min-height: 58px; }
.pos-raster + .preise-kasten { margin-top: 8px; margin-bottom: 0; }
/* so hoch wie das Fenster erlaubt: „Preise / Summen“ bleibt ohne Rollen der Seite sichtbar, die Beschreibung wächst mit */
.pos-raster { height: calc((100vh / var(--zoom)) - var(--ueber-kopf) - 404px); min-height: 288px; }
.pos-links, .pos-rechts { min-height: 0; }
.pos-links > .kasten + .kasten { flex: none; }
.pos-rechts > .kasten + .kasten { flex: 0 0 86px; }
.pos-rechts .auswahl-kasten { min-height: 0; }
.pos-rechts .auswahl-liste { flex: 1 1 auto; max-height: none; min-height: 0; }
@media (max-width: 1100px) { .pos-raster { height: auto; } }
.kacheln { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: minmax(180px, 1fr); }
.kachel, .kachel.klein, .kachel.hoch { min-height: 0; }
/* Infos (Leistungen, Kassenbuch, Notizen, Korrespondenz, Mailbox und Adressen, Projekte …): Wochentag, Datum und Uhrzeit
   stehen in einer Zeile – in schmalen Fenstern bekommt diese Spalte die dafür nötige Mindestbreite, sonst halbe-halbe */
.le-infos { grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr); }
.av-infos { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); align-items: stretch; }
/* Adressverwaltung → Finanzen: Kästen gleich hoch; Vorgabewerte etwas enger, damit die Beschriftungen in die schmale Spalte passen */
.av-finanzen { align-items: stretch; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 0 16px; }
.av-vorgaben { grid-template-columns: minmax(0, 1fr) 62px 62px; gap: 3px 4px; padding-left: 8px; padding-right: 8px; }

/* Mahnvorschläge und Offene Lieferscheine - Sammelrechnung (eigene Listen des Finanzwesens) */
.mv-hinweis { margin: 0 0 6px 2px; font-size: 12px; line-height: 1.35; }
.mv-liste th { vertical-align: bottom; }
.mv-liste th .mini-knopf { margin-bottom: 2px; }
.mv-liste .mitte { text-align: center; }
.mv-zusatz td { background: var(--akzent-hell, var(--flaeche-grau-96d)); }
.mv-zusatz-inhalt { display: grid; gap: 6px; padding: 4px 2px 6px; }
.mv-positionen { width: auto; min-width: 60%; }
.mv-tasten { display: flex; align-items: center; gap: 10px; }

/* ==================================================================
   Feedback GE vom 29.11.2026: Modulkopf (G1), Portal-Hülle (P2, F1/F2, D3, D4), Auswahlfelder (D1, Z1),
   Funktionsauswahl und Sortierknöpfe der Projekte-Übersicht (P1)
   ================================================================== */

/* Modulkopf: Symbol und Name des Moduls oben links in der Höhe der Kopfleiste – mit ihr ein durchgehendes Band wie im Original */
.leiste-kopf { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: linear-gradient(var(--flaeche-grau-64), var(--flaeche-grau-47));
    color: var(--text-grau-100); font-size: 14px; font-weight: 700; letter-spacing: .01em; text-shadow: 0 1px 0 var(--schatten-grau-0-a45); white-space: nowrap; overflow: hidden;
    border-bottom: 1px solid var(--linie-grau-39); }
.leiste-kopf .modulkopf-symbol { flex: none; width: 22px; height: 22px; color: var(--text-grau-100); filter: drop-shadow(0 1px 0 var(--schatten-grau-0-a45)); }
.leiste-kopf .modulkopf-name { overflow: hidden; text-overflow: ellipsis; }
/* Titel „Funktionen“ als Knopf: öffnet wie im Original die Funktionsauswahl des Moduls */
button.leiste-titel { display: block; width: 100%; border-left: 0; border-right: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--text-grau-5); cursor: pointer; }
button.leiste-titel:hover, button.leiste-titel:focus-visible { background: linear-gradient(var(--flaeche-grau-97b), var(--flaeche-grau-82)); outline: none; }

/* Rollbalken immer sichtbar – macOS blendet Overlay-Rollbalken sonst aus, bis gerollt wird (F2) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--flaeche-grau-93); }
::-webkit-scrollbar-thumb { min-height: 24px; background: var(--flaeche-grau-74); border: 2px solid var(--linie-grau-93); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--flaeche-grau-61); }
::-webkit-scrollbar-corner { background: var(--flaeche-grau-93); }

/* Portal-Hülle (<x-portal>): feste Höhe nach der Zahl der Zeilen, eigener Rollbalken, Tabellenkopf bleibt stehen */
.portal { --portal-zeilen: 5; --portal-zeile: 20px; --portal-kopf: 21px; flex: none; height: calc(var(--portal-kopf) + var(--portal-zeilen) * var(--portal-zeile) + 2px);
    margin: 6px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--flaeche-grau-100-a45); border: 1px solid var(--linie-grau-79); border-radius: 2px; }
.portal.ohne-kopf { --portal-kopf: 0px; }
.portal > table.av-portal { width: 100%; margin: 0; }
.portal > table.av-portal td { height: var(--portal-zeile); line-height: 15px; padding: 2px 6px; }
.portal > table.av-portal thead th { position: sticky; top: 0; z-index: 1; height: var(--portal-kopf); padding: 2px 6px 3px; line-height: 15px; background: var(--flaeche-grau-89); border-bottom: 1px solid var(--linie-grau-81b); }
.portal > table.av-portal tbody tr.gewaehlt { background: var(--gelb); }
.portal > table.av-portal td .feld { height: 18px; padding-top: 0; padding-bottom: 0; line-height: 16px; }
.portal > table.av-portal td .av-wl { height: 16px; }
.portal-mehr { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 3px 8px 5px; color: var(--text-grau-52); font-size: 11.5px; }
/* Kästen mit Portal wachsen nicht mehr mit der Liste */
.av-liste-kasten:has(> .portal) { min-height: 0; }
.kasten > .pj-summe { margin-top: 0; }

/* Eingabefeld mit Auswahlliste (<x-auswahlfeld>) wie ein FileMaker-Dropdown: Pfeil immer sichtbar, freie Eingabe möglich */
.auswahlfeld { position: relative; display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.auswahlfeld > input { flex: 1 1 auto; width: 100%; min-width: 0; padding-right: 20px; }
.auswahlfeld-pfeil { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 17px; display: flex; align-items: center; justify-content: center; padding: 0;
    border: 0; border-left: 1px solid var(--linie-grau-83); border-radius: 0 2px 2px 0; background: linear-gradient(var(--flaeche-grau-99c), var(--flaeche-grau-90b)); color: var(--text-grau-31); cursor: pointer; }
.auswahlfeld-pfeil:hover { background: linear-gradient(var(--flaeche-grau-100), var(--flaeche-grau-88b)); color: var(--text-grau-5); }
.auswahlfeld-liste { position: absolute; z-index: 45; top: calc(100% + 1px); left: 0; min-width: 100%; max-height: 240px; overflow-y: auto; margin: 0; padding: 2px 0;
    list-style: none; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-64b); box-shadow: 0 6px 16px var(--schatten-grau-0-a22); }
.auswahlfeld-liste button { display: block; width: 100%; padding: 2px 10px; border: 0; background: none; font: inherit; color: var(--text-grau-5); text-align: left; white-space: nowrap; cursor: pointer; }
.auswahlfeld-liste button:hover, .auswahlfeld-liste button:focus-visible { background: var(--flaeche-blau-88); outline: none; }
.auswahlfeld-liste .trenner { height: 1px; margin: 3px 6px; background: var(--flaeche-grau-83b); }
.auswahlfeld-liste .leer { padding: 2px 10px; }
/* Kästen mit Auswahlfeld schneiden die aufgeklappte Liste nicht ab */
.kasten:has(.auswahlfeld) { overflow: visible; }
.kasten:has(.auswahlfeld) > .kasten-kopf { border-radius: 4px 4px 0 0; }
.av-zeile > .auswahlfeld { flex: 1 1 0; }
.av-zeile > .auswahlfeld.av-land-auswahl { flex: 0 0 66px; }
.av-zeile > .auswahlfeld.av-ort-auswahl { flex: 1 1 auto; }

/* Reiter Suchen der Adressverwaltung: Kasten „Anzeigen“ (Maske 85) */
.av-suche-anzeigen .av-suchfelder { grid-template-columns: 120px minmax(0, 1fr); }
.av-suche-anzeigen select.such { max-width: 110px; }
.av-suchfelder > label.pj-oben { align-self: start; padding-top: 3px; }

/* Sortierknöpfe in den Spaltenköpfen: absteigend sortiert zeigt der Knopf die Balken gespiegelt */
.le-sortieren.ab svg { transform: scaleX(-1); }
th.pj-sort { white-space: nowrap; }

/* Projekte → Übersichtsliste: links neben jeder Zeile der Bearbeiter (Maske 3), Kopf „Bearbeiter“ in Höhe des Tabellenkopfs */
.ue-projekt.pj-bearbeiter-kopf { justify-content: center; color: var(--text-blau-36); font-weight: 700; border-bottom: 1px solid var(--linie-blau-78); }
.ue-projekt .pj-bearbeiter-name { color: var(--text-grau-46); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Info-Dialog zu einer Zeile der Portale (Adresse → Finanzen, alt: btn.Info Finanzwesen 502 / Rechnungseingang 504) */
.dialog-raster.info-felder { grid-template-columns: 110px minmax(0, 1fr); margin: 0 16px 8px 62px; }
.info-felder .feld.ro { min-height: 21px; }

/* Funktionsauswahl am Listensymbol aller Übersichtslisten und am Titel „Funktionen“ der Leiste (Feedback GE, P1/F10):
   das Symbol ist auch in den Fußleisten ohne Raster (Terminplaner, Textbausteine, Verzeichnisse) ein Knopf */
.ue-symbol .ue-symbol-knopf { display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--text-blau-40); cursor: pointer; border-radius: 3px; }
.ue-symbol .ue-symbol-knopf:hover, .ue-symbol .ue-symbol-knopf:focus-visible { background: var(--gelb); color: var(--text-gelb-21); outline: none; }
.ue-symbol .ue-symbol-knopf .icon { width: 19px; height: 19px; }
.leiste-inhalt button.leiste-titel { margin-top: 6px; }
.ue-funktionen.dv-funktionen { margin-top: 2px; }
/* Historie: Listensymbol und Lupe links vor den drei Spalten der Fußfunktionen (Maske 8) */
.hi-fuss { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); padding-left: 6px; }
.hi-fuss .hi-symbole { display: grid; gap: 4px; align-content: start; justify-items: center; }
.hi-symbole .ue-symbol { color: var(--text-blau-40); display: flex; justify-content: center; align-items: center; }

/* Übersichtslisten mit genau einer Zeile je Datensatz: was nicht in die Spalte passt, wird abgeschnitten (Tooltip zeigt alles) */
table.liste.eine-zeile { table-layout: fixed; width: 100%; }
table.liste.eine-zeile th, table.liste.eine-zeile td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Adressen → Übersichtsliste: links neben jeder Zeile die Adreß-Nr., rechtsbündig wie im Original (Maske 67 #433) */
.ue-projekt.av-nr-kopf { justify-content: center; align-items: flex-end; color: var(--text-blau-36); font-weight: 700; border-bottom: 1px solid var(--linie-blau-78); }
.ue-projekt .fl-markieren.av-nr { text-align: right; color: var(--text-grau-5); }
/* Datenkorrektur: Hinweis, solange gedruckte Kopien gespeichert sind (Vorgabe GE zu F15) */
.dialog-hinweis { color: var(--text-gelb-41); margin: 0 16px 6px; }

/* Jede Spalte sortierbar (Vorgabe GE 30.11.2026): Köpfe mit Sortierknopf bleiben einzeilig; in den Mahnvorschlägen stehen
   die Automatik-Tasten über dem Sortierknopf ihrer Spalte */
th.le-sort, th.sp-sort { white-space: nowrap; }
table.liste th.fl-sortierbar > .mini-knopf { margin: 3px 6px 0; }

/* Feedback GE 29.11.2026 – Finanzwesen: Erfassung, Texte, Positionen, Zahlungen, Dialoge. Wird nach Abschluss in app.css übernommen. */

/* F20 Kasten Kunde: Projekt unten rechts, Nummer schwarz, Name blau (alt: Maske 36 #82) */
.fv-anschrift { display: flex; flex-direction: column; min-width: 0; }
.fv-anschrift .fv-projekt { margin-top: auto; padding-top: 6px; align-self: flex-end; text-align: right; font-weight: 600; }
.fv-projekt-nr { color: var(--text-grau-0); }
.fv-projekt-name { color: var(--text-blau-40); }
/* Kasten Kunde füllt die Höhe seiner Zeile, damit das Projekt wie im Original (Maske 36 #82) ganz unten rechts steht – in einer Zeile */
.kasten-kunde { display: flex; flex-direction: column; }
.kasten-kunde > .kunde-inhalt { flex: 1 1 auto; }
.fv-anschrift .fv-projekt { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* F5 Kasten „Rechnung … vom …“: Vortext (ca. 2 Zeilen) mit Symbol „Textbaustein in Vortext einsetzen“;
   halbe-halbe wie die Kästen Kunde / Zusätzliche Informationen darüber (Wunsch Anwender 30.11.2026: fast symmetrisch) */
.vorgang-raster.fv-vorgang { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .vorgang-raster.fv-vorgang { grid-template-columns: 1fr; } }
.fv-vortext { display: flex; gap: 4px; align-items: flex-start; min-width: 0; }
.fv-vortext textarea { flex: 1; height: 38px; }

/* F6 Reiter Texte (Maske 83) */
.fv-mit-taste { display: flex; gap: 4px; align-items: flex-start; min-width: 0; }
.fv-mit-taste > input, .fv-mit-taste > textarea { flex: 1; }
.fv-mit-taste .symbolknopf { font-size: 10px; height: 21px; }
.fv-zahlzeile { display: grid; grid-template-columns: 150px auto minmax(0, 220px); gap: 8px; align-items: center; max-width: 560px; }
.fv-beschriftung { color: var(--text-grau-50); white-space: nowrap; }
.fv-halb { width: 100%; max-width: 560px; }
.feld.ro.fv-mehrzeilig { display: block; white-space: pre-line; min-height: 38px; line-height: 1.35; padding: 2px 5px; }
.fv-hinweiszeile { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 220px); gap: 10px; align-items: start; }
.fv-hinweiszeile .grau, .fv-skontozeile .grau { font-size: 11px; color: var(--text-grau-57b); }
.fv-hinweiszeile .grau { padding-top: 3px; }
.fv-skontozeile { display: flex; gap: 6px; align-items: center; max-width: 560px; }
.fv-skontozeile input { width: 52px; flex: none; }
.fv-skontozeile .feld.ro { width: 100px; flex: none; text-align: right; }

/* F18 Reiter Zahlungen, Kasten „Daten für Banking / FiBu“: Taste „Transfer“, Transferhinweis, „?“ */
.fv-transfer { min-width: 0; padding: 1px 8px; justify-self: start; }
.fv-transferzeile { display: flex; gap: 4px; align-items: center; min-width: 0; }
.fv-vermerk { flex: 1; text-align: left; cursor: pointer; }
.fv-frage { min-width: 0; padding: 0 6px; height: 21px; font-weight: 700; }

/* F19 Positionsdialog: Langtext mehrzeilig unter dem Kurztext */
.dialog-raster .fv-oben { align-self: start; padding-top: 3px; }

/* F21 Dialoge „Adreßdaten bearbeiten“ */
.dialog-raster.fv-ab-raster { grid-template-columns: 140px minmax(0, 1fr); }
.dialog-raster.fv-ab-raster input.schmal { width: 70px; }

/* Feedback GE 29.11.2026 – Finanzwesen: Übersicht, Suchen, Druck. Wird nach Abschluss in app.css übernommen. */

/* S1: Spaltenköpfe der Listen als Sortierknöpfe; die sortierte Spalte ist hervorgehoben und zeigt die Richtung */
table.liste th.fl-sortierbar { padding: 0; }
table.liste th.fl-sortierbar .fl-kopf {
    display: block; width: 100%; padding: 3px 6px; border: 0; background: none; font: inherit; color: inherit;
    text-align: inherit; white-space: nowrap; cursor: pointer;
}
table.liste th.fl-sortierbar .fl-kopf:hover { background: var(--flaeche-blau-36-a10); }
table.liste th.fl-sortierbar .fl-kopf:focus-visible { outline: 2px solid var(--linie-blau-36b); outline-offset: -2px; }
table.liste th.fl-sortiert { background: var(--flaeche-blau-88b); }
table.liste th.fl-sortiert .fl-kopf { color: var(--text-blau-28); }
.fl-pfeil { display: inline-block; min-width: 0; margin-left: 3px; font-size: 9px; vertical-align: 1px; }
table.liste th.zahl .fl-pfeil { margin-left: 3px; }
table.liste col.fl-sortiert { background: var(--flaeche-blau-36-a6); }

/* F12: die linke Spalte der Übersichtsliste markiert die Zeile (ganze Zelle anklickbar) */
.ue-projekt .fl-markieren { flex: 1 1 auto; width: 100%; min-height: 100%; text-align: left; }
.ue-projekt .fl-markieren:hover { text-decoration: none; color: var(--text-grau-5); }
.ue-projekt:hover { background: var(--flaeche-grau-100-a35); }
.ue-projekt.gewaehlt:hover { background: var(--flaeche-blau-83); }
/* Feedback GE: Projekt links und Zeile rechts als eine Zeile – die Maus über dem einen hebt auch das andere hervor */
table.liste tr.klickbar[data-ue-hover]:not(.gewaehlt) { background: var(--zeile-hover); }
.ue-projekt[data-ue-hover]:not(.gewaehlt) { background: var(--flaeche-grau-100-a35); }
.ue-projekt[data-ue-hover] .fl-markieren, .ue-projekt[data-ue-hover] .pj-bearbeiter-name { color: var(--text-grau-5); }

/* F9: Reiter Suchen nach Maske 21 (Spaltenverhältnis wie alle Suchmasken, Wunsch Anwender 26.11.2026) */
/* Suchmaske des Finanzwesens wie Maske 21: beide Spalten gleich breit (sonst ist links „Kass.buch“ abgeschnitten) */
.fl-suche.av-suche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fl-suche .fl-abfragen { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.fl-suche .fl-abfragen .nav-pfeil { min-width: 22px; }
.fl-suche .fl-suchfelder { grid-template-columns: 100px minmax(0, 1fr); }
.fl-suche .fl-kurz { width: 100px; }
.fl-suche .av-zeile > .fl-kurz { flex: 0 0 100px; }
.fl-suche .fl-status > label, .fl-suche .fl-zahlung > label { color: var(--text-magenta-39); white-space: nowrap; }
.fl-suche .fl-status > .feld { flex: 1 1 0; min-width: 0; }
.fl-suche .fl-zahlung { gap: 8px; }
.fl-suche .fl-zahlung .ankreuzen, .fl-suche .fl-janein .ankreuzen { gap: 3px; color: var(--text-grau-13); }
.fl-suche .fl-janein { gap: 12px; }
.fl-suche .feld.such:disabled { background-color: var(--flaeche-grau-94c); color: var(--text-grau-63); }
.fl-suche .fl-bank { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); gap: 3px 6px; align-items: center; padding: 8px 12px 10px; }
.fl-suche .fl-bank > label { color: var(--text-magenta-39); white-space: nowrap; }
.fl-suche .fl-bank-kopf { color: var(--text-grau-52); font-size: 11.5px; }
.fl-suche .fl-ort .fl-land { flex: 0 0 52px; }
.fl-suche .fl-ort .fl-plz { flex: 0 0 56px; }

/* F11: Projektfilter */
.dialog-raster .fl-jahr { max-width: 110px; }

/* F13: Ergebnisliste der PDF-Mail im Stapeldruck */
.fl-ergebnis { max-height: calc(40vh / var(--zoom, 1)); overflow: auto; border: 1px solid var(--linie-grau-81b); margin-top: 6px; }
.fl-ergebnis table.liste { width: 100%; }
.fl-ergebnis table.liste th { position: sticky; top: 0; }
.fl-ergebnis tr.rot td { color: var(--text-rot-37); }
.fl-warnung { color: var(--text-orange-42); background: var(--flaeche-gelb-96); border: 1px solid var(--linie-gelb-81); padding: 4px 6px; margin: 4px 0; }

/* Feedback GE 29.11.2026 – Rechnungseingang, Notizen, Korrespondenz, Historie. Wird nach Abschluss in app.css übernommen. */

/* R1 – Rechnungseingang, Reiter Suchen (alt: Maske 4 scr.Suchen) */
.re-suche .re-suchfelder { grid-template-columns: 106px minmax(0, 1fr); }
.re-suche .re-s-datum { width: 150px; max-width: 100%; }
.re-suche .re-s-betrag { width: 130px; max-width: 100%; }
.re-suche .re-s-zahl { flex: 0 0 64px !important; width: 64px; }
.re-suche .av-zeile > .re-s-datum { flex: 0 1 150px !important; min-width: 0; }
.re-suche .av-zeile > .re-s-blz { flex: 0 0 44% !important; }
.re-suche .av-zeile > .re-s-bic { flex: 0 0 32% !important; }
.re-suche .re-s-platz { flex: 1 1 auto; }
.re-suche .re-s-haken { display: inline-flex; align-items: center; gap: 6px; color: var(--text-magenta-39); white-space: nowrap; }
.re-suchinfo > label { color: var(--text-magenta-39); }
.re-suchinfo .re-ueber-zwei { grid-column: 2 / 4; }

/* N1 – Notizen: Projekt unten rechts im Kasten „Adresse zur Notiz“; Ansprechpartner: Notizen des Kontakts (Portal, 3 Zeilen) */
.nz-adresse-spalte { display: flex; flex-direction: column; min-width: 0; }
.nz-projekt { margin-top: auto; padding: 2px 0 0 4px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-notizen-rahmen { max-height: calc(3 * 21px + 10px); overflow-y: auto; margin: 0 0 6px; }
.ap-notizen-rahmen table.av-portal { margin-top: 2px; margin-bottom: 2px; }

/* K1 – Korrespondenz: Brief in Blattbreite (A4 = 210 mm), nicht auf die Fensterbreite vergrößert */
.vorschau-blatt.kr-blattbreite { display: block; width: calc(210mm + 48px); max-width: 100%; margin: 0 auto; }

/* K3, H1 – Sortierknöpfe der Spaltenköpfe: aktive Spalte, absteigend mit ▼ (Korrespondenz: gespiegelte Balken, app.css) */
table.hi-liste th.sortierbar { cursor: pointer; user-select: none; }
table.hi-liste th.sortierbar:hover { text-decoration: underline; }
table.hi-liste th.hi-sortiert::after { content: " \25B2"; font-size: 9px; }
table.hi-liste th.hi-sortiert.ab::after { content: " \25BC"; }
/* Zentrale „› Design“: Auswahl des Designs der Oberfläche (Wunsch Anwender 30.11.2026) – nur benannte Farben verwenden */
.design-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.design-karte { display: flex; flex-direction: column; gap: 5px; padding: 8px; text-align: left; font: inherit; color: var(--text); background: var(--kasten); border: 1px solid var(--rand); border-radius: 4px; cursor: pointer; }
.design-karte:hover { border-color: var(--akzent); }
.design-karte.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.design-vorschau { display: flex; height: 28px; border: 1px solid var(--rand); border-radius: 3px; overflow: hidden; }
.design-vorschau span { flex: 1 1 0; }
.design-name { font-weight: 700; }
.design-text { font-size: 11.5px; color: var(--grau); line-height: 1.35; }
/* Leiste: der eigene Name öffnet „Mein Konto“ */
a.leiste-benutzer { display: block; text-decoration: none; }
a.leiste-benutzer:hover, a.leiste-benutzer:focus-visible { text-decoration: underline; }

/* „Mein Konto“ (Wunsch Anwender/GE 30.11.2026): Karten, Reiter als Pillen, Felder mit Beschriftung im Rand – nur benannte Farben */
.konto { max-width: 1000px; padding: 4px 6px 24px; }
.konto-reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.konto-reiter button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.konto-reiter button:hover { background: var(--akzent-hell); }
.konto-reiter button.aktiv { background: var(--akzent); color: var(--text-grau-100); box-shadow: 0 2px 6px var(--schatten-grau-0-a25); }
.konto-reiter .icon { width: 16px; height: 16px; }
.konto-karte { background: var(--kasten); border: 1px solid var(--rand-hell); border-radius: 10px; box-shadow: 0 2px 8px var(--schatten-grau-0-a8); padding: 20px 22px; margin: 0 0 16px; }
.konto-titel { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.konto-unter { color: var(--grau); margin: -6px 0 14px; }
.konto-profil { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.konto-profil .konto-unter { margin: 2px 0 0; }
.konto-avatar { width: 72px; height: 72px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--akzent-hell); color: var(--akzent); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.konto-name { font-size: 16px; font-weight: 600; color: var(--text); }
.konto-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.konto-raster .voll, .konto-liste .voll { grid-column: 1 / -1; }
.konto-liste { display: grid; gap: 14px; max-width: 520px; }
.mfeld { position: relative; display: block; min-width: 0; }
.mfeld.schmal { max-width: 360px; }
.mfeld-eingabe, .konto .mfeld-eingabe { display: block; width: 100%; height: 40px; padding: 8px 12px 6px; border: 1px solid var(--rand); border-radius: 6px; background: var(--kasten); color: var(--text); font: inherit; font-size: 13.5px; outline: 0; }
select.mfeld-eingabe { padding-right: 8px; }
.mfeld-eingabe:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 20%, transparent); outline: 0; }
.mfeld-eingabe:disabled { background: var(--flaeche); color: var(--grau); }
.mfeld-titel { position: absolute; left: 9px; top: -8px; padding: 0 4px; background: var(--kasten); color: var(--grau); font-size: 11px; line-height: 15px; border-radius: 3px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; }
.mfeld-eingabe:focus + .mfeld-titel { color: var(--akzent); }
.mfeld-eingabe:disabled + .mfeld-titel { background: linear-gradient(var(--kasten) 50%, var(--flaeche) 50%); }
.konto-knoepfe { display: flex; gap: 10px; margin-top: 4px; }
.mknopf { height: 36px; padding: 0 18px; border: 1px solid var(--rand); border-radius: 6px; background: var(--kasten); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.mknopf:hover { background: var(--flaeche); }
.mknopf.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--text-grau-100); box-shadow: 0 2px 6px var(--schatten-grau-0-a20); }
.mknopf.primaer:hover { filter: brightness(1.08); }
.konto-schalter { display: flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; }
.konto-schalter input { width: 16px; height: 16px; accent-color: var(--akzent); }
.konto-info { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--akzent-hell); color: var(--text); }
.konto-hinweis { margin: 0 0 14px; padding: 10px 14px; border-radius: 6px; background: var(--akzent-hell); color: var(--text); border-left: 4px solid var(--akzent); }
.konto-hinweis.fehler { border-left-color: var(--warnung); color: var(--warnung); }
.konto-designs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* Rechnung importieren (Ergänzung, Wunsch GE 01.12.2026): Prüfdialog mit Vorschau rechts */
.dialog.ri-dialog { width: min(1240px, calc(96vw / var(--zoom))); }
.ri-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 16px 0; }
.ri-links { max-height: calc(76vh / var(--zoom)); overflow: auto; padding-right: 4px; }
.ri-rechts { display: flex; flex-direction: column; gap: 4px; }
.ri-vorschau { width: 100%; height: calc(72vh / var(--zoom)); border: 1px solid var(--rand); border-radius: 3px; background: var(--flaeche-blau-48); }
.ri-oeffnen { font-size: 11.5px; align-self: flex-end; }
.ri-banner { border-radius: 4px; padding: 7px 10px; margin-bottom: 8px; border: 1px solid var(--rand); background: var(--flaeche-grau-100); }
.ri-banner.gruen { background: var(--flaeche-gruen-93); border-color: var(--text-gruen-45); }
.ri-banner.gelb { background: var(--flaeche-gelb-96); border-color: var(--flaeche-gelb-80); }
.ri-hinweise { margin: 0 0 8px; padding: 6px 10px 6px 26px; background: var(--flaeche-gelb-97); border: 1px solid var(--linie-gelb-87); border-radius: 4px; }
.ri-hinweise li { margin: 2px 0; }
.ri-hinweise li.rot { color: var(--warnung); font-weight: 600; }
.ri-kasten { border: 1px solid var(--rand); border-radius: 4px; margin: 0 0 8px; padding: 4px 10px 8px; background: var(--flaeche-grau-100); }
.ri-kasten legend { padding: 0 4px; color: var(--text-blau-37); font-weight: 600; }
.ri-laut { margin: 2px 0 6px; }
.ri-wahl { display: grid; grid-template-columns: 18px 1fr; gap: 4px; align-items: start; padding: 3px 2px; border-radius: 3px; cursor: pointer; }
.ri-wahl:hover { background: var(--flaeche-grau-95); }
.ri-wahl input { margin-top: 2px; }
.ri-grund { font-size: 11.5px; color: var(--grau); }
.ri-grund.sicher { color: var(--text-gruen-45); font-weight: 600; }
.ri-suche { display: flex; gap: 6px; margin: 6px 0 0 22px; }
.ri-suche .feld { flex: 1; }
.ri-trefferliste { max-height: 150px; overflow: auto; margin: 4px 0 0 22px; border: 1px solid var(--rand); border-radius: 3px; }
.ri-haken { display: grid; grid-template-columns: 18px 1fr; gap: 4px; margin-top: 6px; font-size: 12px; }
.ri-leise { margin: 4px 0 0 22px; font-size: 12px; }
.ri-werte { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; padding-top: 2px; }
.ri-werte > span { color: var(--grau); }
.ri-werte .zahl, .ri-eingabe .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.ri-werte .zahl { justify-self: start; min-width: 110px; }
.ri-eingabe { display: grid; grid-template-columns: 110px minmax(0, 200px); gap: 4px 10px; align-items: center; padding-top: 4px; }
.ri-eingabe label { color: var(--text-blau-37); text-align: right; }
.ri-summe { font-weight: 700; }
@media (max-width: 1000px) { .ri-raster { grid-template-columns: 1fr; } .ri-vorschau { height: 50vh; } }
/* Mailbox: Rechnungsanhang in den Rechnungseingang */
.mb-uebernehmen { border: 1px solid var(--linie-blau-62); background: var(--flaeche-grau-99); border-radius: 3px; padding: 0 6px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.mb-uebernehmen:hover { background: var(--flaeche-grau-95); }
.mb-beleg { font-size: 11.5px; white-space: nowrap; }
.mb-rechnungen { max-height: calc(60vh / var(--zoom)); overflow: auto; }
.mb-rechnungen table.liste { margin-bottom: 10px; }
/* Stammdaten → Schnittstellen: Rechnungen einlesen (E-Rechnung und KI) */
.sd-ki { margin-top: 10px; }
.sd-ki-inhalt { display: grid; gap: 8px; padding: 10px 14px 12px; }
.sd-ki-text { margin: 0; max-width: 820px; }
.sd-ki-raster { display: grid; grid-template-columns: 120px minmax(0, 420px); gap: 5px 10px; align-items: center; }
.sd-ki-raster > label { color: var(--text-blau-37); text-align: right; }
.sd-ki-schluessel { display: flex; gap: 6px; }
.sd-ki-schluessel .feld { flex: 1; min-width: 0; }
.ri-neu-name { display: flex; align-items: center; gap: 6px; }
.ri-neu-name .feld { flex: 1; min-width: 0; }

/* Datensatz aus der Übersichtsliste nehmen (Strg+T): × am Zeilenende, sichtbar an der markierten Zeile und unter der Maus */
table.liste th.ue-raus, table.liste td.ue-raus { width: 22px; padding: 0; text-align: center; }
.ue-raus-knopf { visibility: hidden; border: 0; background: transparent; padding: 0 5px; font-size: 14px; line-height: 1; color: var(--text-grau-46); cursor: pointer; }
table.liste tr.gewaehlt .ue-raus-knopf, table.liste tr:hover .ue-raus-knopf { visibility: visible; }
.ue-raus-knopf:hover { color: var(--text-rot-42); }

/* Kasten Kommunikation: was mit dem gewählten Ansprechpartner gilt */
.av-ap-info { grid-column: 1 / -1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 3px 6px; align-items: center; margin: 3px -6px -2px; padding: 6px; background: var(--flaeche-blau-88); border: 1px solid var(--linie-blau-78); border-radius: 4px; }
.av-ap-info > label { color: var(--text-blau-36); white-space: nowrap; }
.av-ap-info .feld.ro { flex: 1 1 auto; min-width: 0; background: var(--flaeche-grau-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-ap-info .feld.ro.rot { color: var(--text-rot-42); }
.av-sperre { display: flex; align-items: center; gap: 8px; }
.av-gesperrt { color: var(--text-rot-42); font-size: 12px; white-space: nowrap; }

/* Blaues Kästchen links neben „Rechnung“: noch nicht gedruckt oder gemailt (alt: s_STAT_Druckindikator) */
table.liste td.ue-vorgang { position: relative; }
.ue-ungedruckt { position: absolute; left: -4px; top: 2px; bottom: 2px; width: 7px; background: var(--flaeche-blau-57); border-radius: 1px; }

/* Oberste Reihe (Adresse bzw. Kunde und der Kasten daneben) in allen Modulen und Reitern gleich hoch (Wunsch GE 02.12.2026):
   Es springt nichts mehr; eine lange Anschrift rollt im Kasten. */
:root { --kasten-oben: 184px; }
.erfassung-oben > .kasten, .ap-raster > .kasten:has(> .ap-adresse), .ap-raster > .kasten:has(> .ap-adresse) + .kasten { height: var(--kasten-oben); display: flex; flex-direction: column; }
.erfassung-oben > .kasten > .kunde-inhalt, .ap-raster > .kasten > .ap-adresse { flex: 1 1 auto; min-height: 0; }
.erfassung-oben > .kasten > .zusatz-raster, .ap-raster > .kasten:has(> .ap-adresse) + .kasten > :not(.kasten-kopf) { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; }
.erfassung-oben .anschrift-anzeige, .ap-adresse > .anschrift-anzeige { min-height: 0; overflow-y: auto; }
.erfassung-oben .zusatz-raster { grid-template-columns: 94px 1fr 60px 60px; padding-top: 6px; padding-bottom: 6px; }
.erfassung-oben .zusatz-raster > label { white-space: nowrap; }
.erfassung-oben .zusatz-raster.pos-zusatz { grid-template-columns: 120px 1fr 60px 60px; }
@media (max-width: 1100px) { .erfassung-oben > .kasten { height: auto; min-height: 120px; } }

/* Symbole neben der Anschrift größer (Finanzwesen, Rechnungseingang und übrige Module; Wunsch GE 02.12.2026) */
.kunde-knoepfe { justify-content: space-between; }
.kunde-knoepfe .symbolknopf { width: 30px; height: 25px; }
.kunde-knoepfe .symbolknopf .icon { width: 20px; height: 20px; }
.ap-adresse { grid-template-columns: minmax(0, 1fr) 30px; }
.ap-adresse-knoepfe .av-wl { width: 30px; height: 26px; }
.ap-adresse-knoepfe .av-wl .icon { width: 20px; height: 20px; }

/* Große Auswahl bei mehreren Adressen (<x-adress-auswahl>, alt: list.Suchliste 107) */
.dialog-hintergrund.adress-auswahl-hintergrund { z-index: 55; padding-top: calc(4vh / var(--zoom)); }
.dialog-hintergrund .adress-auswahl-hintergrund { background: none; }
.dialog.adress-auswahl { width: min(1180px, calc(96vw / var(--zoom))); max-height: calc(90vh / var(--zoom)); display: flex; flex-direction: column; }
.adress-auswahl-hinweis { margin: 0; padding: 10px 14px 8px; color: var(--text-rot-42); font-weight: 700; text-align: center; }
.adress-auswahl-liste { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 12px; background: var(--flaeche-grau-100); border: 1px solid var(--linie-grau-80); }
.adress-auswahl-liste table.liste { width: 100%; }
.adress-auswahl-liste table.liste td { vertical-align: top; padding: 5px 8px; line-height: 1.35; overflow-wrap: anywhere; }
.adress-auswahl-liste table.liste td:nth-child(1), .adress-auswahl-liste table.liste td:nth-child(3), .adress-auswahl-liste table.liste td:nth-child(4) { white-space: nowrap; overflow-wrap: normal; }
.adress-auswahl-liste table.liste th { position: sticky; top: 0; z-index: 1; }
.adress-auswahl-liste .aa-nr, .adress-auswahl-liste .aa-land, .adress-auswahl-liste .aa-plz { width: 1%; white-space: nowrap; }
.adress-auswahl-liste .aa-name { width: 34%; }
.adress-auswahl-liste .aa-kontakt { width: 26%; }
.aa-kopf { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; white-space: nowrap; }
.aa-kopf.aktiv::after { content: " ▲"; font-size: 8px; }
.aa-kopf.aktiv.ab::after { content: " ▼"; }
.adress-auswahl-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px 12px; }
.adress-auswahl-tasten { display: flex; gap: 10px; }

/* Datumsfeld mit Kalender (<x-datumfeld>): Taste rechts im Feld, das Kalenderfeld des Browsers selbst ist unsichtbar */
.datumfeld { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.datumfeld > input[type="text"] { flex: 1 1 auto; width: 100%; min-width: 0; padding-right: 24px; }
.datumfeld-knopf { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--text-blau-40); cursor: pointer; border-radius: 2px; }
.datumfeld-knopf:hover { background: var(--flaeche-blau-88); }
.datumfeld > input.datumfeld-wahl { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* Adressen → Erfassung, Kasten Kontakt / Ansprechpartner: je Person zwei Zeilen und zwei gleich breite Spalten */
.av-kontakte-portal { margin: 6px 10px 8px; }
.portal > table.av-kontakte { table-layout: fixed; }
.portal > table.av-kontakte td { height: auto; padding: 3px 6px; vertical-align: top; }
table.av-kontakte td > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 16px; }
table.av-kontakte .av-kontakt-zwei { color: var(--text-grau-46); }
