/* modulstil.Aufgaben/stil.css */
/* Masken-Variante B „ruhig“ (Nacht 03.11.2026): Aufgaben wie Titelarchiv/Inventar – Leiste oben wie die Standardleiste,
   Bereiche ohne eigenes Weiß, Rahmen/Flächen nur aus dem Farbschema, Beschriftungen und Felder kompakt (.8rem, 24 px). */
.auf-fenster > .auf-leiste { background: var(--mf-leiste, #e9eef5); border: 1px solid var(--th-rahmen, #c9d4e2); border-radius: calc(8px * var(--s, 1));
    padding: calc(4px * var(--s, 1)) calc(8px * var(--s, 1)); gap: calc(4px * var(--s, 1)) 6px; }
.auf-fenster > .auf-leiste .auf-trenner { background: var(--th-rahmen, #c3cfdd); }
.auf-fenster .auf-filter { background: var(--th-feld, #fff); border-color: var(--th-feldrand, #c9d4e2); }
.auf-fenster .auf-filter.an { background: var(--mf-blau, #0f766e); border-color: var(--mf-blau, #0f766e); }
.auf-fenster .auf-anzahl { color: var(--th-text2, #5b6b80); }
.auf-fenster :is(.auf-liste, .auf-rechts, .auf-chat-spalte) { background: var(--th-liste, var(--th-feld, #fff)); border-color: var(--th-rahmen, #c9d4e2); border-radius: calc(8px * var(--s, 1)); }
.auf-fenster .auf-rechts { background: var(--th-formular, #fff); }
.auf-fenster .auf-chat-kopf, .auf-fenster .auf-chat-eingabe { border-color: var(--th-rahmen, #e3eaf3); }

/* Angaben der Aufgabe: Schrift .8rem, Felder 24 px, Beschriftungen einheitlich */
.auf-detail { font-size: .8rem; gap: var(--feld-zeilenabstand, 6px); }
.auf-detail .auf-feld > span { font-size: .8rem; font-weight: 600; color: var(--th-beschriftung, #46566b); }
.auf-detail .auf-feld :is(input:not([type=checkbox]):not([type=radio]), select) { font-size: .8rem; height: calc(24px * var(--s, 1)); padding-top: 0; padding-bottom: 0;
    border-color: var(--th-feldrand, #c9d4e2); background: var(--th-feld, #fff); }
.auf-detail .auf-feld textarea { font-size: .8rem; border-color: var(--th-feldrand, #c9d4e2); background: var(--th-feld, #fff); }
@media (min-width: 701px) {
    .auf-detail .auf-feld.seitlich > span:first-child { flex-basis: calc(84px * var(--s, 1)); }
    .auf-detail .auf-zeile > .auf-feld.seitlich + .auf-feld.seitlich > span:first-child { flex-basis: auto; }
}

/* Chat-Stil „Farbschema (ruhig)“ – Flächen und Blasen aus dem Farbschema, eigene Nachrichten in der Akzentfarbe */
[data-chat="ruhig"] { --ch-bg: var(--th-formular, #f4f7fb); --ch-tag: var(--th-feld, #e3eaf3); --ch-tagt: var(--th-text2, #5b6b80); --ch-blase: var(--th-feld, #fff);
    --ch-text: var(--th-beschriftung, #1f2d3d); --ch-rand: var(--th-rahmen, #dfe6ef); --ch-meine: color-mix(in srgb, var(--mf-blau, #0f766e) 14%, var(--th-feld, #fff));
    --ch-meinet: var(--th-beschriftung, #1f2d3d); --ch-wer: var(--mf-blau, #0f766e); --ch-zeit: var(--th-text2, #8494a7); }
.auf-einst-chats { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
/* ab 3.99.222: Bezug in der Liste als Link (öffnet z. B. das DMS-Dokument) */
.auf-bezug-link { background: none; border: 0; padding: 0; font: inherit; color: var(--mf-blau); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ab 3.99.432 (Rene 28.11.2026 23:03 „optisch konnte ich es kaum erkennen“ – Vorschlag A): erledigte Hauptaufgaben mit offenen Unteraufgaben ganz grau
   hinterlegt mit Schild „erledigt – n offen“; Unteraufgaben mit eingerücktem Datum und feiner Baumlinie */
.auf-tabelle tr.erledigt-mit-offenen > td { background: #f1f4f5; }
.auf-tabelle tr.erledigt-mit-offenen .auf-titel-text { text-decoration: none; color: #6d7a86; }
.auf-erledigt-offen { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: .72rem; background: #fde9c8; color: #7a4a00; white-space: nowrap; }
.auf-tabelle td.auf-ast { position: relative; }
.auf-tabelle td.auf-ast::before { content: ""; position: absolute; left: var(--auf-ast, 8px); top: 0; height: 50%; width: 8px; border-left: 1px solid #b7c3cc; border-bottom: 1px solid #b7c3cc; pointer-events: none; }

/* modulstil.Datenbruecke/stil.css */
/* ab 3.99.90 – Datenbrücke → Programm-Prozesse (nur Klassen mit Präfix dbpp-); Farben/Flächen aus dem Farbschema (Regel 20) */
.dbpp { flex: 1 1 auto; min-height: 0; }
.dbpp-drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.dbpp-drei > .rahmen { grid-column: auto; min-width: 0; }
.dbpp-unten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
@media (max-width: 900px) { .dbpp-unten { grid-template-columns: minmax(0, 1fr); } }
.dbpp-marke { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: #fff; margin-right: 4px; }
.dbpp-marke.wenn { background: #1d4ed8; }
.dbpp-marke.dann { background: #7c3aed; }
.dbpp-marke.wie { background: #475569; }
.dbpp-zeile > :first-child { flex: 1 1 auto; min-width: 0; }
.dbpp-sekunden { width: 70px !important; }
.dbpp-fehler { color: #b91c1c; }
.dbpp-aus { color: #b91c1c; font-weight: 600; }
.dbpp-laeufe { min-width: 0; }
.dbpp-lauf { font-size: .78rem; padding: 2px 0; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbpp-lauf:last-child { border-bottom: 0; }
.dbpp-lauf.fehler { color: #b91c1c; }
.dbpp-satz { align-self: start; }

/* Stand in der Standardleiste einer Maske (Komponente ProgrammProzessAnzeige im Kern) */
.dbpp-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 10px; border-radius: 999px; font: inherit; font-size: .74rem; font-weight: 600;
             white-space: nowrap; cursor: pointer; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dbpp-chip.ok { border-color: #bbf7d0; background: #dcfce7; color: #166534; }
.dbpp-chip.fehler { border-color: #fecaca; background: #fee2e2; color: #991b1b; }
.dbpp-dreh { display: inline-block; animation: dbpp-dreh 1.2s linear infinite; }
@keyframes dbpp-dreh { to { transform: rotate(360deg); } }

/* ab 3.99.90 – Datenbrücke → Vorlagen: Notizzettel auf der Arbeitsfläche (Lage/Größe wie die Quellen-Kästen, mrr.dbrKaesten).
   Farben aus dem Farbschema (ThemaFarben „Datenbrücke: Notizzettel …“), dezent gelblich */
.vl-karten > .vl-quelle.vl-notiz { background: var(--th-bruecke-notiz, #fdf8dc); border: 1px solid var(--th-bruecke-notiz-rand, #e3d38e); border-left-width: 1px;
    border-radius: 4px 4px 10px 4px; box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 8px 18px rgba(15, 23, 42, .08); padding: 4px 6px 6px; z-index: 3; }
.vl-notiz > .vl-q-kopf { font-size: .78rem; color: color-mix(in srgb, var(--th-beschriftung, #1c2b31), var(--th-bruecke-notiz-rand, #e3d38e) 30%); }
.vl-notiz > .vl-q-kopf .mud-icon-root { font-size: 1rem; color: color-mix(in srgb, var(--th-bruecke-notiz-rand, #e3d38e), #000 35%); }
.vl-notiz .vl-notiz-kurz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 400; opacity: .8; }
.vl-notiz .vl-notiz-text { display: flex; flex-direction: column; min-height: 0; }
.vl-notiz.feste-hoehe .vl-notiz-text { flex: 1 1 auto; }
.vl-notiz.feste-hoehe .vl-notiz-text .rt { flex: 1 1 auto; min-height: 0; }
.vl-notiz.feste-hoehe .vl-notiz-text .rt-flaeche { flex: 1 1 auto; min-height: 0; }
.vl-notiz .rt { background: transparent; border-color: color-mix(in srgb, var(--th-bruecke-notiz-rand, #e3d38e), transparent 30%); }
.vl-notiz .rt-leiste { background: color-mix(in srgb, var(--th-bruecke-notiz, #fdf8dc), var(--th-bruecke-notiz-rand, #e3d38e) 25%); border-bottom-color: color-mix(in srgb, var(--th-bruecke-notiz-rand, #e3d38e), transparent 30%); }
.vl-notiz .rt-leiste button { min-width: 24px; height: 22px; font-size: .8rem; }
.vl-notiz .rt-flaeche { font-size: .82rem; padding: 5px 8px; }
.vl-notiz.zu > .vl-q-kopf { cursor: move; }

/* ab 3.99.94: Werte-Zuordnung (Ziehen und Ablegen) */
.wz { display: flex; flex-direction: column; gap: 8px; height: min(78vh, 900px); }
.wz-kopf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.wz-feld { display: flex; flex-direction: column; gap: 2px; min-width: 200px; font-size: .8rem; }
.wz-feld > span { color: var(--th-text2, #475569); font-size: .72rem; }
.wz-feld.breit { flex: 1; min-width: 260px; }
.wz-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wz-trenner { width: 1px; height: 22px; background: var(--th-feldrand, #c9d4e2); margin: 0 4px; }
.wz-flaeche { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 12px; }
.wz-links, .wz-rechts { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--th-rahmen, #c9d4e2); border-radius: 8px; padding: 8px; }
.wz-spaltenkopf { display: flex; flex-direction: column; margin-bottom: 6px; }
.wz-spaltenkopf small { color: var(--th-text2, #64748b); }
.wz-filter, .wz-neuzeile { display: flex; gap: 6px; margin-bottom: 6px; }
.wz-filter > input, .wz-neuzeile > input { flex: 1; }
.wz-werte { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.wz-wert { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 5px; cursor: grab; font-size: .8rem; user-select: none; border: 1px solid transparent; }
.wz-wert:hover { background: #eef3fa; }
.wz-wert.markiert { background: #cfe0f7; border-color: #1f4e9a; }
.wz-wert.neu { border-left: 3px solid #d97706; }
.wz-wert-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-anzahl { font-size: .7rem; padding: 0 6px; border-radius: 9px; background: var(--th-feld, #f1f5f9); border: 1px solid var(--th-feldrand, #c9d4e2); }
.wz-neu { font-size: .68rem; color: #fff; background: #d97706; border-radius: 4px; padding: 0 4px; }
.wz-vorschlag { font-size: .72rem; color: #0f766e; border: 1px dashed #0f766e; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.wz-vorschlag button, .wz-chip button { all: unset; cursor: pointer; padding: 0 3px; font-weight: 600; }
.wz-ziel-mini { font-size: .72rem; color: var(--th-text2, #64748b); white-space: nowrap; }
.wz-leer { padding: 10px; }
.wz-markiert { padding-top: 6px; display: flex; gap: 6px; align-items: center; }
.wz-kaesten { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; align-content: start; }
.wz-kasten { border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 8px; padding: 6px; min-height: 70px; background: var(--th-feld, #fff); transition: box-shadow .1s; }
.wz-kasten.ueber { box-shadow: 0 0 0 2px #0f766e; }
.wz-kasten.ignorieren { border-style: dashed; grid-column: 1 / -1; min-height: 50px; }
.wz-kasten-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wz-kasten-extra { display: flex; flex-wrap: wrap; gap: 8px; color: var(--th-text2, #475569); margin-bottom: 4px; }
.wz-kasten-einst { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; font-size: .78rem; }
.wz-kasten-einst label { display: flex; flex-direction: column; gap: 1px; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wz-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; padding: 1px 6px; border-radius: 10px; background: #e6f2f0; border: 1px solid #9fbab4; cursor: grab; }
.wz-chip small { opacity: .7; }
.wz-chip.vorschlag { background: transparent; border-style: dashed; }
.wz-csv { border: 1px solid #d97706; border-radius: 8px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wz-csv-liste { flex-basis: 100%; max-height: 160px; overflow: auto; font-size: .78rem; }
.wz-csv-zeile.warn { color: #b45309; }
.wz-filter > input { flex: 1 1 auto; min-width: 120px; }
.wz-filter > :not(input) { flex: 0 0 210px; }
.wz-einst-knopf { all: unset; cursor: pointer; display: inline-flex; color: var(--th-text2, #64748b); }
.wz-einst-knopf:hover { color: #0f766e; }

/* ab 3.99.97: Reiter Vorlagen bleibt beim Wechsel geöffnet (nur ausgeblendet) */
.dbr-vorlagen-halter { display: contents; }
.dbr-vorlagen-halter.versteckt { display: none; }

/* ab 3.99.97: Fortschritt eines Laufs */
.vl-fortschritt { margin: 6px 0 10px; padding: 8px 10px; border: 1px solid var(--th-rahmen, #c9d4e2); border-radius: 8px; background: var(--th-feld, #fff); max-width: 980px; }
.vl-fs-kopf { display: flex; align-items: center; gap: 10px; }
.vl-fs-balken { height: 8px; border-radius: 4px; background: #e2e8f0; margin: 6px 0; overflow: hidden; }
.vl-fs-balken > div { height: 100%; background: #0f766e; transition: width .4s; }
.vl-fs-zahlen { display: flex; flex-wrap: wrap; gap: 14px; }
.vl-fs-fehler { color: #b91c1c; }
.vl-fs-aktuell { flex: 1; min-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--th-text2, #475569); }

/* ab 3.99.112 (Rene 02.11.2026 21:41): Vorlagen als Kacheln – Quelle → Ziel mit Symbolen, Zeitplan, letzter Lauf */
.vk { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.vk-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vk-suche { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; height: calc(26px * var(--s, 1)); border: 1px solid var(--th-feldrand, #c8d3dd); border-radius: 6px; background: var(--th-feld, #fff); color: #94a3b8; min-width: 220px; }
.vk-suche input { border: 0; outline: 0; background: transparent; font-size: .8rem; flex: 1; color: inherit; }
.vk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--th-feldrand, #c8d3dd); border-radius: 14px; background: var(--th-feld, #fff); font-size: .78rem; cursor: pointer; color: inherit; }
.vk-chip i { font-style: normal; opacity: .65; }
.vk-chip.an { background: var(--th-db-inntec, #0f766e); border-color: var(--th-db-inntec, #0f766e); color: #fff; }
.vk-chip.fehler { color: #b42318; border-color: #f1b4b4; }
.vk-chip.fehler.an { background: #b42318; border-color: #b42318; color: #fff; }
.vk-trenner { width: 1px; height: 18px; background: var(--th-feldrand, #c8d3dd); margin: 0 4px; }
.vk-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vk-karte { display: flex; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 8px; text-align: left !important; overflow: hidden; padding: 11px 13px 9px; border: 1px solid var(--th-rahmen, #d5dde6); border-radius: 10px; background: var(--th-feld, #fff); cursor: pointer; color: inherit; font: inherit; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.vk-karte:hover { border-color: var(--th-db-inntec, #0f766e); box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.vk-karte.aus { opacity: .55; }
.vk-kopf { display: flex; align-items: flex-start; gap: 6px; }
.vk-kopf b { flex: 1; text-align: left; font-size: .84rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vk-marke { font-size: .66rem; padding: 0 7px; border-radius: 9px; background: #eef1f4; color: #52606d; white-space: nowrap; }
.vk-fluss { display: flex; align-items: flex-start; justify-content: center; gap: 4px; padding: 2px 0; }
.vk-seite { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.vk-seite small { font-size: .7rem; color: #52606d; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-pfeil { display: flex; align-items: center; margin-top: 9px; color: #64748b; flex: none; }
.vk-pfeil i { width: 22px; border-top: 2px dotted #b8c2cc; }
.vk-gruppe { display: inline-flex; }
.vk-gruppe .vk-sym + .vk-sym { margin-left: -6px; box-shadow: 0 0 0 2px var(--th-feld, #fff); }
.vk-sym { --f: var(--th-db-datenbank, #475569); width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none;
          background: color-mix(in srgb, var(--f) 11%, var(--th-feld, #fff)); border: 1px solid color-mix(in srgb, var(--f) 25%, transparent); color: var(--f); }
.vk-sym .mud-icon-root { font-size: 19px; }
.vk-sym b { font-size: 13px; letter-spacing: -.02em; color: #fff; }
.vk-sym b span { opacity: .75; }
.vk-sym.inntec { --f: var(--th-db-inntec, #0f766e); background: var(--f); border-color: var(--f); color: #fff; }
.vk-sym.shop { --f: var(--th-db-shop, #2a78d6); }
.vk-sym.magento { --f: var(--th-db-magento, #d9541e); }
.vk-sym.datei { --f: var(--th-db-datei, #a16207); }
.vk-sym.mail { --f: var(--th-db-mail, #6250d6); }
.vk-sym.klein { width: 18px; height: 18px; border-radius: 5px; }
.vk-sym.klein .mud-icon-root { font-size: 12px; }
.vk-sym.klein b { font-size: 8px; }
.vk-fuss { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; width: 100%; overflow: hidden; border-top: 1px solid var(--th-rahmen, #eef1f4); padding-top: 7px; font-size: .72rem; color: #52606d; min-width: 0; }
.vk-plan { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-plan .mud-icon-root { font-size: 14px; color: #64748b; }
.vk-lauf { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vk-neu { align-items: center !important; justify-content: center !important; }
.vk-punkt { width: 8px; height: 8px; border-radius: 50%; background: #b8c2cc; flex: none; display: inline-block; }
.vk-punkt.ok { background: #1baf7a; } .vk-punkt.fehler { background: #d93838; } .vk-punkt.laeuft { background: #2a78d6; }
.vk-neu { border: 2px dashed var(--th-feldrand, #b9c6d2); background: transparent; box-shadow: none; align-items: center; justify-content: center; color: var(--th-db-inntec, #0f766e); min-height: 140px; }
.vk-neu small { color: #52606d; font-size: .72rem; }
.vk-plus { width: 36px; height: 36px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--th-db-inntec, #0f766e) 10%, transparent); }
.vk-kopfsym { display: inline-flex; align-items: center; gap: 3px; margin: 0 6px; color: #94a3b8; }
.vk-kopfsym .vk-sym { width: 24px; height: 24px; border-radius: 7px; }
.vk-kopfsym .vk-sym .mud-icon-root { font-size: 14px; }
.vk-kopfsym .vk-sym b { font-size: 9px; }
.vk-alle { white-space: nowrap; }
/* ab 3.99.114: „Vorlage“ vorne als Knopf zurück zu den Kacheln */
.vl-wahl-box .vl-wahl-zurueck { border: 0; cursor: pointer; font-family: inherit; }
.vl-wahl-box .vl-wahl-zurueck:hover { filter: brightness(1.12); text-decoration: underline; }
/* Nachtarbeit 03.11.2026: Symbole Quelle → Ziel in der aufgeklappten Vorlagen-Auswahl */
.vk-wahlsym { display: inline-flex; align-items: center; gap: 2px; flex: none; width: 70px; margin-right: 6px; color: #94a3b8; }
.vk-wahlsym > .mud-icon-root { font-size: 12px; }
.vk-wahlsym .vk-sym.klein + .vk-sym.klein { margin-left: -4px; box-shadow: 0 0 0 1px var(--th-feld, #fff); }
/* Nachtarbeit 03.11.2026: Export/Import-Paket (Übersicht) */
.dbu-paket { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dbp-dialog .vu-gruppe { max-height: 220px; }
.dbp-gesamt { margin: 0; }
.dbp-zeile { cursor: default; min-height: 26px; }
.dbp-zeile .dbp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dbp-zeile .dbp-aktion { width: 170px; flex: none; }
.dbp-neu { color: #0f766e; font-weight: 600; }
.dbp-ok { color: #0f766e; }
.dbp-zahlen { max-width: 420px; }
.dbp-hinweise { max-height: 160px; }
.aw-eintrag:has(.vk-wahlsym) { align-items: center; }

/* ab 3.99.197: Import-Dialog einer Maske mit Vorlagen der Datenbrücke */
.vw { display: flex; flex-direction: column; gap: 8px; }
.vw-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vw-zeile .aw { flex: 1; min-width: 260px; }
.vw-l { width: 110px; font-size: .8rem; color: var(--th-beschriftung); }
.vw-info { padding-left: 118px; }
.vw-ergebnis { padding: 6px 10px; border-left: 3px solid var(--th-akzent); font-size: .85rem; }
.vw-fehler { padding: 6px 10px; border-left: 3px solid var(--th-versand-fehler, #dc2626); color: var(--th-versand-fehler, #dc2626); font-size: .85rem; }
.vw-verwalten { margin-top: 6px; }
.vw-chips { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 4px; }
.vw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--th-feldrand); border-radius: 12px; font-size: .78rem; cursor: pointer; }
.vw-chip.an { border-color: var(--th-akzent); font-weight: 600; }
.vw-chip button { border: none; background: none; cursor: pointer; padding: 0 0 0 2px; color: var(--th-text-zweitrangig); }

/* ab 3.99.216 (Plan „Datenbrücke nur noch Prozesse“): Reiter Prozesse – WENN links, DANN als Zeitleiste rechts */
.dbr-reiter-luecke { flex: 1; }
.dbr-reiter .dbr-einr { color: var(--th-text-zweitrangig, #64748b); }
.dbr-reiter .dbr-einr.an-klein { color: inherit; }
.dbr-zurueck { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.pz .pz-maske { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.5fr); gap: 10px; align-items: start; }
.pz .pz-maske > .rahmen { grid-column: auto; min-width: 0; }
.pz-ausl-titel { font-size: .75rem; color: var(--th-text-zweitrangig, #64748b); margin: 8px 0 4px; }
.pz-ausl { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin-bottom: 8px; }
.pz-ausl-k { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 6px; background: var(--th-feld, #fff); font-size: .78rem; cursor: pointer; }
.pz-ausl-k.an { border: 1.5px solid var(--th-pz-start-rand, #ef9f27); background: var(--th-pz-start, #faeeda); font-weight: 600; }
/* ab 3.99.384 (Rene 24.11.2026 00:19): Auslöser einzeln ein- und ausschaltbar – Häkchen in der Ecke, Kopfzeile je eingeschaltetem Auslöser */
.pz-ausl-hk { position: absolute; top: 3px; left: 4px; width: 13px; height: 13px; border: 1px solid var(--th-feldrand, #94a3b8); border-radius: 3px; background: var(--th-feld, #fff); }
.pz-ausl-k.an .pz-ausl-hk { background: var(--th-pz-start-rand, #ef9f27); border-color: var(--th-pz-start-rand, #ef9f27); }
.pz-ausl-k.an .pz-ausl-hk::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.pz-ausl-kopf { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--th-text-zweitrangig, #64748b); border-bottom: 1px solid var(--th-rand, #e2e8f0); padding-bottom: 3px; margin: 10px 0 2px; }
.pz-dann-kopf { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.pz-zl { padding: 2px 0; }
.pz-sz { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
.pz-sp { display: flex; flex-direction: column; align-items: center; }
.pz-kr { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; color: #fff; flex: none; background: #64748b; }
.pz-kr.start { background: var(--th-pz-start-rand, #ef9f27); }
.pz-kr.blau, .pz-ic.blau { --pz-f: var(--th-pz-datei, #185fa5); }
.pz-kr.gruen, .pz-ic.gruen { --pz-f: var(--th-pz-dms, #0f6e56); }
.pz-kr.lila, .pz-ic.lila { --pz-f: var(--th-pz-daten, #534ab7); }
.pz-kr.pink, .pz-ic.pink { --pz-f: var(--th-pz-nachricht, #993556); }
.pz-kr.rot, .pz-ic.rot { --pz-f: var(--th-pz-fehler, #e24b4a); }
.pz-kr.gelb, .pz-ic.gelb { --pz-f: var(--th-pz-bedingung, #ba7517); }
.pz-kr.blau, .pz-kr.gruen, .pz-kr.lila, .pz-kr.pink, .pz-kr.rot, .pz-kr.gelb { background: var(--pz-f); }
.pz-kr.aus { opacity: .45; }
.pz-kr.plus { background: transparent; border: 1.5px dashed var(--th-feldrand, #94a3b8); color: var(--th-akzent, #0f766e); }
.pz-kr.ende { background: transparent; border: 1px solid var(--th-feldrand, #94a3b8); color: var(--th-text-zweitrangig, #64748b); }
.pz-li { flex: 1; width: 2px; background: var(--th-feldrand, #cbd5e1); min-height: 10px; }
.pz-karte { border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 9px; margin-bottom: 8px; background: var(--th-feld, #fff); display: flex; gap: 10px; align-items: center; padding: 6px 9px; }
.pz-karte.offen, .pz-karte:has(.pz-kopf) { display: block; padding: 0; }
.pz-karte.offen { border-color: var(--th-akzent, #0f766e); }
.pz-karte.aus { opacity: .6; }
.pz-karte.start { background: var(--th-pz-start, #faeeda); border-color: var(--th-pz-start-rand, #ef9f27); }
.pz-karte.ende { border-style: solid; opacity: .9; margin-bottom: 0; }
.pz-kopf { display: flex; gap: 10px; align-items: center; padding: 6px 9px; cursor: pointer; }
.pz-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--pz-f, #64748b); background: color-mix(in srgb, var(--pz-f, #64748b) 12%, transparent); }
.pz-ic.start { --pz-f: var(--th-pz-start-rand, #ef9f27); background: var(--pz-f); color: #fff; }
.pz-text { flex: 1; min-width: 0; }
.pz-t1 { font-weight: 600; font-size: .8rem; }
.pz-t2 { font-size: .74rem; color: var(--th-text-zweitrangig, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-t3 { font-size: .72rem; color: var(--th-text-zweitrangig, #64748b); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-t3.f { color: var(--th-pz-fehler, #b91c1c); }
.pz-t2.warn { color: var(--th-pz-fehler, #b91c1c); white-space: normal; }
.pz-knoepfe { display: flex; gap: 2px; opacity: .55; }
.pz-kopf:hover .pz-knoepfe { opacity: 1; }
.pz-knoepfe button { border: none; background: none; padding: 2px; cursor: pointer; color: inherit; }
.pz-knoepfe button:disabled { opacity: .3; cursor: default; }
.pz-edit { border-top: 1px solid var(--th-feldrand, #e2e8f0); padding: 8px 10px 4px; }
/* ab 3.99.226: kurze Felder in einer Zeile (z. B. Warten: Dauer + Einheit) */
.pz-edit .feld-eingabe > input.sh-std-kurz { width: 130px; flex: 0 0 auto; }
.pz-edit .feld-eingabe > .aw.sh-std-kurz { flex: 0 0 160px; max-width: 160px; }
.pz-zeile { display: flex; gap: 6px; align-items: center; }
.pz-zeile .aw { flex: 1; }
.pz-plus { margin-bottom: 8px; }
.pz-plus-knopf { width: 100%; text-align: left; border: 1px dashed var(--th-feldrand, #94a3b8); border-radius: 9px; background: transparent; padding: 7px 10px; color: var(--th-akzent, #0f766e); cursor: pointer; font-size: .8rem; }
.pz-plus-wahl { display: flex; flex-wrap: wrap; gap: 5px; border: 1px dashed var(--th-feldrand, #94a3b8); border-radius: 9px; padding: 6px; }
.pz-plus-art { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 6px; background: var(--th-feld, #fff); padding: 3px 8px; font-size: .78rem; cursor: pointer; }
.pz-plus-art.blau { --pz-f: var(--th-pz-datei, #185fa5); } .pz-plus-art.gruen { --pz-f: var(--th-pz-dms, #0f6e56); } .pz-plus-art.lila { --pz-f: var(--th-pz-daten, #534ab7); }
.pz-plus-art.pink { --pz-f: var(--th-pz-nachricht, #993556); } .pz-plus-art.rot { --pz-f: var(--th-pz-fehler, #e24b4a); }
.pz-plus-art .mud-icon-root { color: var(--pz-f, inherit); }
.pz-ergebnis { margin-top: 8px; }
.pz-satz { margin-top: 8px; }
.pz-baustein-kopf { display: flex; gap: 10px; align-items: center; padding: 6px 10px; }
@media (max-width: 900px) { .pz .pz-maske { grid-template-columns: 1fr; } }
/* Übersicht: Tageszeitleiste */
.dbu-luecke { flex: 1; }
/* ab 3.99.226: Prozess wartet (Schritt „Warten“) – Status in der Jobliste */
.dbu-status.wartet { background: var(--th-pz-wartet, #fef3c7); color: var(--th-pz-bedingung, #ba7517); }
.dbu-tag { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 10px; margin: 4px 0; }
.dbu-tag-name { font-size: .78rem; height: 22px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dbu-tag-spur { position: relative; height: 22px; border-bottom: 1px dashed var(--th-feldrand, #e2e8f0); }
.dbu-punkt { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--th-pz-ok, #1d9e75); }
.dbu-punkt.f { background: var(--th-pz-fehler, #e24b4a); }
.dbu-punkt.plan { background: transparent; border: 1.5px solid #888780; }
.dbu-punkt.stat { position: static; display: inline-block; margin: 0 4px -1px 0; }
.dbu-jetzt { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px solid var(--th-pz-start-rand, #ef9f27); }
.dbu-jetzt-l { display: inline-block; width: 0; height: 12px; border-left: 1.5px solid var(--th-pz-start-rand, #ef9f27); margin: 0 4px -2px 0; }
.dbu-tag-achse { position: relative; height: 16px; font-size: .7rem; color: var(--th-text-zweitrangig, #64748b); }
.dbu-tag-achse span { position: absolute; transform: translateX(-50%); }
.dbu-legende { display: flex; gap: 14px; font-size: .72rem; color: var(--th-text-zweitrangig, #64748b); margin: 2px 0 10px; flex-wrap: wrap; }

.pz-mk { min-width: 28px; justify-content: center; padding: 0 6px; }
.pz-ue { margin: 2px 0 6px; }
.pz-ue-qz { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 6px; align-items: center; margin-bottom: 6px; }
.pz-ue-box { border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 7px; padding: 5px 8px; font-size: .8rem; }
.pz-ue-l { font-size: .7rem; color: var(--th-text-zweitrangig, #64748b); }
.pz-ue-tags { margin-bottom: 6px; }
.pz-ue-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; padding: 1px 7px; }
.pz-ue-felder { width: 100%; border-collapse: collapse; font-size: .76rem; margin-bottom: 4px; }
.pz-ue-felder th { text-align: left; font-weight: 500; color: var(--th-text-zweitrangig, #64748b); padding: 2px 6px; }
.pz-ue-felder td { border-top: 1px solid var(--th-feldrand, #e2e8f0); padding: 2px 6px; }
.pz-verb-inhalt { height: 70vh; display: flex; flex-direction: column; }
.pz-verb-inhalt > .ansicht { flex: 1; min-height: 0; }
.pz-verb-hinweis { flex: 1; }

/* ab 3.99.217: Protokoll – Prozess-Lauf Schritt für Schritt */
.pz-lauf{display:flex;flex-direction:column;gap:4px;padding:6px 0;font-size:.8rem}
.pz-lauf-kopf{display:flex;align-items:center;gap:6px;font-weight:600;padding:4px 8px;border-left:4px solid var(--th-pz-ok, #1d9e75);border-radius:4px}
.pz-lauf-kopf.f{border-left-color:var(--th-pz-fehler, #e24b4a)}
.pz-lauf-datei{cursor:pointer;padding:3px 8px;font-weight:600;border-bottom:1px solid var(--th-rahmen)}
.pz-lauf-datei.f{color:var(--th-pz-fehler, #e24b4a)}
.pz-lauf-schritte{list-style:none;margin:0;padding:0 0 0 8px;display:flex;flex-direction:column;gap:3px}
.pz-lauf-schritte.eingerueckt{padding-left:26px}
.pz-lauf-schritte li{display:flex;gap:8px;align-items:baseline;padding:2px 6px;border-left:3px solid var(--th-rahmen)}
.pz-lauf-schritte li.daten{border-left-color:var(--th-pz-daten, #534ab7)}
.pz-lauf-schritte li.datei{border-left-color:var(--th-pz-datei, #185fa5)}
.pz-lauf-schritte li.dms{border-left-color:var(--th-pz-dms, #0f6e56)}
.pz-lauf-schritte li.nachricht{border-left-color:var(--th-pz-nachricht, #993556)}
.pz-lauf-schritte li.f{border-left-color:var(--th-pz-fehler, #e24b4a);color:var(--th-pz-fehler, #e24b4a)}
.pz-lauf-sym{width:1.2em;text-align:center}

/* ab 3.99.218: Verbindung eingebettet im Prozess */
.pz-verb-inline { border: 1.5px dashed var(--th-pz-ok, #1d9e75); border-radius: 6px; padding: 6px 8px; margin: 2px 0 6px; display: flex; flex-direction: column; gap: 4px; }
.pz-verb-kopf { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; }
.odbc-eingebettet { height: auto !important; min-height: 0 !important; }
.odbc-eingebettet > .ansicht-formular { height: auto !important; overflow: visible !important; }
.odbc-eingebettet .formular-inhalt.odbc-inhalt { display: block !important; overflow: visible !important; }
.odbc-eingebettet .odbc-formular { width: 100%; }
.odbc-eingebettet .odbc-reiter { display: none; }
.odbc-eingebettet > .ansicht-formular { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.odbc-eingebettet .formular-leiste { background: none !important; border: 0 !important; padding: 0 0 4px !important; }
.odbc-eingebettet fieldset.odbc-rahmen { border: 0; padding: 0; margin: 0; background: none; }

/* ab 3.99.218: Übertragung im Prozess – Teilschritte und eingebetteter Editor */
.pz-ue-teil { display: flex; gap: 8px; align-items: baseline; font-size: .78rem; padding: 2px 0; }
.pz-ue-nr { width: 16px; height: 16px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 600; color: #fff; background: var(--th-pz-daten, #534ab7); }
.pz-maske.breit { grid-template-columns: 1fr !important; }
.pz-maske.breit > .pz-wenn { display: none; }
.pz-zu-editor { border: 1.5px dashed var(--th-pz-daten, #534ab7); border-radius: 6px; padding: 6px 8px; margin: 4px 0; display: flex; flex-direction: column; gap: 4px; min-height: 520px; }
.vl-eingebettet { height: auto; min-height: 500px; }

/* ab 3.99.219 (Rene 08.11.2026 17:30 „Übersicht links und rechts kaum Ränder“) */
.dbu { padding: 4px 16px 12px; box-sizing: border-box; }
/* ab 3.99.219 (Rene 08.11.2026 17:31): Stunden 0 · 3 · 6 … 24 mit Hilfslinien (Farben bleiben wie bisher, Rene 17:41) */
.dbu-tag .dbu-tag-spur { background-image: repeating-linear-gradient(to right, var(--th-feldrand, #e2e8f0) 0 1px, transparent 1px 12.5%); }
.dbu-tag { padding-right: 12px; }

/* ab 3.99.219: „Öffnen“ in der Leiste der Prozesse */
.pz-oeffnen-box { position: relative; display: inline-flex; }
.pz-oeffnen { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; width: 420px; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pz-oeffnen-suche { width: 100%; box-sizing: border-box; }
.pz-oeffnen-liste { max-height: 360px; overflow: auto; display: flex; flex-direction: column; }
.pz-oeffnen-z { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; text-align: left; border: 0; background: none; padding: 4px 6px; border-radius: 5px; cursor: pointer; font-size: .8rem; }
.pz-oeffnen-z .pz-t2 { grid-column: 2; }
.pz-oeffnen-z:hover, .pz-oeffnen-z.an { background: var(--th-zeile-aktiv, #e0f2f1); }
.pz-oeffnen-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ab 3.99.221: E-Mail-Postfächer und DMS-Pfade vom oberen Teil abgesetzt */
.dbu-titel.dbu-abschnitt { margin-top: 26px; padding-top: 14px; border-top: 2px solid var(--th-rahmen, #cfd8e3); font-size: .78rem; }
/* ab 3.99.246: Fortschritt im Prozess-Fenster; Balken ohne bekannte Anzahl läuft hin und her */
.pz-lauf { border: 1px solid #b9d3cd; border-left: 4px solid #0f766e; border-radius: 8px; background: #f3faf8; padding: 8px 12px; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.pz-lauf-kopf { display: flex; align-items: center; gap: 8px; color: #0b5e57; }
.pz-lauf .vl-fortschritt { margin: 0; background: #fff; }
.pz-lauf-knopf { color: #0b5e57; font-weight: 600; margin-left: 4px; }
.vl-fs-unbestimmt { width: 30% !important; animation: vl-fs-hin 1.4s ease-in-out infinite alternate; }
@keyframes vl-fs-hin { from { margin-left: 0; } to { margin-left: 70%; } }

/* ab 3.99.342: Mit Datei ausführen */
.pz-mitdatei{display:flex;flex-direction:column;gap:8px}
.pz-mitdatei-zeile{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pz-ablage{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:70px;border:2px dashed #9bc9c2;background:#f4faf9;color:#0f7a6c;cursor:pointer}
.pz-ablage.voll{border-style:solid}
.pz-ablage:hover{background:#e8f4f2}
.pz-ablage input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}

/* ab 3.99.395 (Rene 26.11.2026): Lieferanten-Import (Seiten/Datenbruecke/LieferantenImport.razor) – Präfix lim-. Eckig, Grün aus dem Thema. */
.lim { --lim-gruen: var(--mf-gruen, #0f7a6c); --lim-gruen-dunkel: #0a5a50; --lim-gruen-hell: #f1f8f6; --lim-zart: #5d6b76; --lim-linie: #c9d6e2;
    display: flex; flex-direction: column; height: 100%; min-height: 0; font-size: .78rem; color: #1f2a33; }
.lim-hinweis { padding: 18px; color: var(--lim-zart); }
.lim-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; padding: 8px 12px 0; border-bottom: 2px solid var(--lim-gruen); }
.lim-schritte { display: flex; flex-wrap: wrap; gap: 2px; }
.lim .lim-schritt { padding: 6px 14px; border: none; border-radius: 0; background: #e6ebee; color: #1f2a33; font: inherit; cursor: pointer; white-space: nowrap; }
.lim .lim-schritt:hover:not(:disabled) { background: #dff0ec; }
.lim .lim-schritt.lim-an { background: var(--lim-gruen); color: #fff; font-weight: 600; }
.lim .lim-schritt:disabled { color: #9aa5ad; cursor: default; }
.lim-kopf-rechts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 5px; }
.lim-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.lim-zart { color: var(--lim-zart); }
.lim fieldset.lim-rahmen { border: 1px solid var(--lim-linie); border-radius: 0; margin: 0; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lim fieldset.lim-rahmen > .lim-knopf { align-self: flex-start; }
.lim fieldset.lim-rahmen > legend { padding: 0 6px; font-size: .72rem; color: var(--lim-zart); }
.lim-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 24px; }
.lim-zeile.lim-oben { align-items: flex-start; }
.lim-beschr { flex: 0 0 150px; color: var(--lim-zart); font-size: .76rem; }
.lim-feld { display: inline-block; min-width: 190px; }
.lim-feld.lim-breit { min-width: 360px; }
.lim-feld.lim-schmal { min-width: 150px; }
.lim .lim-eingabe { height: 24px; padding: 2px 6px; border: 1px solid var(--th-feldrand, #b9c4cd); border-radius: 0; background: var(--th-feld, #fff); font: inherit; color: inherit; }
.lim .lim-eingabe:focus { outline: 2px solid var(--lim-gruen); outline-offset: -1px; }
.lim .lim-eingabe.lim-zahl { width: 64px; }
.lim .lim-eingabe.lim-name { width: 240px; }
.lim .lim-eingabe.lim-platz { width: 170px; }
.lim .lim-eingabe.lim-muster { width: 300px; }
.lim textarea.lim-eingabe.lim-text { height: auto; width: 360px; resize: vertical; }
.lim .lim-knopf { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 2px 10px; border: 1px solid #aeb9c2; border-radius: 0; background: #fff; color: #1f2a33; font: inherit; cursor: pointer; white-space: nowrap; }
.lim .lim-knopf:hover:not(:disabled) { border-color: var(--lim-gruen); color: var(--lim-gruen-dunkel); background: var(--lim-gruen-hell); }
.lim .lim-knopf.lim-voll { background: var(--lim-gruen); border-color: var(--lim-gruen); color: #fff; }
.lim .lim-knopf.lim-voll:hover:not(:disabled) { background: var(--lim-gruen-dunkel); border-color: var(--lim-gruen-dunkel); color: #fff; }
.lim .lim-knopf:disabled, .lim .lim-knopf.lim-aus { opacity: .5; cursor: default; }
.lim .lim-knopf:focus-visible, .lim .lim-schritt:focus-visible, .lim .lim-symbol:focus-visible { outline: 2px solid var(--lim-gruen-dunkel); outline-offset: 1px; }
.lim .lim-symbol { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; background: none; color: var(--lim-zart); cursor: pointer; padding: 0; }
.lim .lim-symbol:hover:not(:disabled) { color: #b3261e; }
.lim-wahl { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.lim-fuss { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lim-fuss.lim-links { justify-content: flex-start; }
.lim-tabelle-rahmen { overflow: auto; border: 1px solid var(--lim-linie); max-height: 320px; }
.lim-tabelle-rahmen.lim-hoch { max-height: 52vh; }
.lim-tabelle-rahmen.lim-mittel { max-height: 260px; }
.lim table.lim-tabelle { border-collapse: collapse; width: 100%; font-size: .76rem; }
.lim table.lim-tabelle th { position: sticky; top: 0; z-index: 1; background: #e6ebee; text-align: left; font-weight: 600; font-size: .7rem; padding: 3px 6px; border-bottom: 1px solid var(--lim-linie); white-space: nowrap; }
.lim table.lim-tabelle td { padding: 2px 6px; border-bottom: 1px solid #e3e9ee; vertical-align: middle; }
.lim table.lim-vorschau td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lim td.lim-nr { color: var(--lim-zart); text-align: right; width: 44px; white-space: nowrap; }
.lim tr.lim-kopfzeile td { background: #dff0ec; font-weight: 600; }
.lim tr.lim-titelzeile td { color: #8a96a0; font-style: italic; }
.lim tr.lim-ohne td { color: #7b8791; }
.lim tr.lim-zeile-stopp td { color: #b3261e; }
.lim td.lim-beispiel { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3b4852; }
.lim td.lim-zielzelle { min-width: 250px; }
.lim td.lim-einzel { min-width: 330px; }
.lim td.lim-einzel > * { vertical-align: middle; margin-right: 4px; }
.lim td.lim-mitte { text-align: center; }
.lim table.lim-zuordnung td:last-child { min-width: 220px; }
.lim-meld { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; }
.lim-meld.lim-stopp { color: #b3261e; }
.lim-meld.lim-gut { color: var(--lim-gruen-dunkel); }
.lim-marke { display: inline-block; padding: 0 6px; background: #e6ebee; color: #1f2a33; font-size: .7rem; white-space: nowrap; }
.lim-stopp .lim-marke, .lim-marke.lim-unklar { background: #f6dcda; color: #8c1d18; }
.lim-marke.lim-neu { background: #dff0ec; color: var(--lim-gruen-dunkel); }
.lim-marke.lim-geaendert { background: #fbe9c9; color: #7a4b00; }
.lim-kacheln { display: flex; flex-wrap: wrap; gap: 8px; }
.lim-kachel { flex: 1 1 170px; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 1px solid var(--lim-linie); border-left: 4px solid #9aa5ad; background: #fff; }
.lim-kachel b { font-size: 1.25rem; font-weight: 600; }
.lim-kachel small { color: var(--lim-zart); font-size: .7rem; }
.lim-kachel.lim-neu { border-left-color: var(--lim-gruen); }
.lim-kachel.lim-geaendert { border-left-color: #c98a00; }
.lim-kachel.lim-unklar { border-left-color: #b3261e; }
.lim details.lim-aufklapp { border: 1px solid var(--lim-linie); padding: 4px 8px; }
.lim details.lim-aufklapp > summary { cursor: pointer; padding: 2px 0; }
.lim td details.lim-aufklapp { border: none; padding: 2px 0; }
/* ab 3.99.474: Vorschau eines Beispiels in „Prüfung und Probe“ – Bilder links, Felder rechts */
.lim-vorschau { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 0 8px; align-items: flex-start; }
.lim-vs-bilder { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lim-vs-felder { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lim-vs-titel { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--lim-gruen-dunkel); }
.lim-vs-raster { display: flex; flex-wrap: wrap; gap: 8px; }
.lim-vs-bild { width: 132px; border: 1px solid var(--lim-linie); background: #fff; display: flex; flex-direction: column; }
.lim-vs-bild img, .lim-vs-leer { width: 130px; height: 130px; object-fit: contain; background: #fff; }
.lim-vs-leer { display: flex; align-items: center; justify-content: center; background: #f1f4f6; color: #9aa5ad; }
.lim-vs-bild.lim-vs-fehlt { border-color: #b3261e; }
.lim-vs-bild.lim-vs-fehlt .lim-vs-text span { color: #b3261e; }
.lim-vs-text { display: flex; flex-direction: column; padding: 3px 5px; border-top: 1px solid var(--lim-linie); font-size: .72rem; line-height: 1.25; min-height: 46px; }
.lim-vs-text b, .lim-vs-text span, .lim-vs-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lim-vs-text span, .lim-vs-text small { color: var(--lim-zart); }
.lim-vs-felder .lim-tabelle th { text-align: left; white-space: nowrap; width: 1%; font-weight: 600; background: #f1f4f6; }
.lim-vs-felder .lim-vs-wert { white-space: pre-wrap; word-break: break-word; }
.lim .lim-symbol .mud-icon-root { width: 16px; height: 16px; }
.lim-zeile.lim-oben > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lim-rang { display: inline-flex; align-items: center; gap: 1px; padding: 0 2px 0 8px; background: #e6ebee; }
.lim-balken { height: 10px; background: #dbe3ea; }
.lim-balken > div { height: 100%; background: var(--lim-gruen); transition: width .3s; }

/* ab 3.99.447 (Rene 30.11.2026 10:27–10:31): Lieferanten-Import – Schritte im Design der Reiter, Ladeanzeige, Zuordnungstabelle nach unten größer ziehen */
.lim-schritte { gap: 2px; border-bottom: 2px solid #08786f; padding-left: 2px; align-items: flex-end; }
.lim .lim-schritt { height: calc(29px * var(--s, 1)); display: inline-flex; align-items: center; padding: 0 calc(11px * var(--s, 1)); font-size: .855rem; background: #d3dde7; border: 1px solid #b9c7d5; border-bottom: 0; border-radius: 6px 6px 0 0; color: #000; font-weight: 400; }
.lim .lim-schritt:hover:not(:disabled) { background: #e3eaf1; }
.lim .lim-schritt.lim-an { background: #08786f; border-color: #08786f; color: #fff; font-weight: 600; }
.lim .lim-schritt:disabled { color: #8f9aa4; background: #e7edf2; }
.lim-laedt { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; vertical-align: middle; }
.lim-dreher { width: 14px; height: 14px; border: 2px solid #cfe5e0; border-top-color: #0f7a6c; border-radius: 50%; animation: lim-drehen .8s linear infinite; }
.lim-balken { position: relative; width: 120px; height: 4px; background: #e3ebef; overflow: hidden; }
.lim-balken > span { position: absolute; top: 0; bottom: 0; width: 40%; background: #0f7a6c; animation: lim-laufen 1.2s ease-in-out infinite; }
@keyframes lim-drehen { to { transform: rotate(360deg); } }
@keyframes lim-laufen { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .lim-dreher, .lim-balken > span { animation-duration: 2.4s; } }
.lim-tabelle-rahmen { resize: vertical; }
.lim-tabelle-rahmen.lim-hoch { min-height: 280px; max-height: none; height: 52vh; } /* frei nach unten ziehbar (Ecke unten rechts) */

/* ab 3.99.450 (Rene 30.11.2026 23:22): Lieferanten-Import, Schritt 3 – Reiter und Maske „Regeln“ (Zielfelder links, Regel rechts). */
.lim fieldset.lim-rahmen[hidden] { display: none; }
.lim-reiter { display: flex; gap: 2px; border-bottom: 2px solid #43a047; }
.lim .lim-reiter-knopf { padding: 5px 14px; border: none; border-radius: 0; background: #e6ebee; color: #1f2a33; font: inherit; cursor: pointer; white-space: nowrap; }
.lim .lim-reiter-knopf:hover { background: #dff0ec; }
.lim .lim-reiter-knopf.an { background: #43a047; color: #fff; }
.lim-regeln { display: grid; grid-template-columns: minmax(420px, 5fr) minmax(480px, 6fr); gap: 12px; align-items: start; min-width: 0; }
.lim-r-links, .lim-r-rechts { border: 1px solid var(--lim-linie); min-width: 0; }
.lim-r-links { max-height: 62vh; overflow: auto; }
.lim-r-rechts { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.lim-r-kopf, .lim-r-zeile { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(160px, 5fr) minmax(90px, 3fr); gap: 8px; align-items: center; padding: 3px 8px; font-size: .76rem; }
.lim-r-kopf { position: sticky; top: 0; z-index: 1; background: #e6ebee; font-size: .7rem; font-weight: 600; }
.lim-r-gruppe { padding: 4px 8px; background: var(--lim-gruen-hell); border-top: 1px solid var(--lim-linie); border-bottom: 1px solid var(--lim-linie); font-size: .76rem; color: var(--lim-gruen-dunkel); }
.lim-r-gruppe .lim-zart { margin-left: 8px; font-size: .7rem; }
.lim-r-zeile { border-bottom: 1px solid #e3e9ee; cursor: pointer; min-height: 26px; }
.lim-r-zeile:hover { background: #f4f7f9; }
.lim-r-zeile.an { background: #dff0ec; box-shadow: inset 3px 0 0 var(--lim-gruen); }
.lim-r-zeile.leer .lim-r-name { color: var(--lim-zart); }
.lim-r-zeile.lim-r-neu { display: flex; gap: 5px; color: var(--lim-gruen-dunkel); }
.lim-r-zeile.lim-r-neu .mud-icon-root { width: 16px; height: 16px; }
.lim-r-pflicht { color: #b3261e; font-weight: 400; }
.lim-r-regel { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.lim-r-vorschau { color: var(--lim-zart); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lim-r-chip { display: inline-block; padding: 0 6px; border: 1px solid #aeb9c2; background: #fff; color: #1f2a33; font: inherit; font-size: .7rem; line-height: 18px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lim-r-chip.spalte { background: #dff0ec; border-color: #9cc9bf; color: var(--lim-gruen-dunkel); }
.lim-r-chip.text { background: #fbe9c9; border-color: #e2c27e; color: #7a4b00; }
button.lim-r-chip { cursor: pointer; line-height: 22px; font-size: .76rem; }
button.lim-r-chip:hover:not(:disabled) { border-color: var(--lim-gruen); }
button.lim-r-chip:disabled { opacity: .5; cursor: default; }
.lim-r-ungenutzt { padding: 6px 8px; font-size: .76rem; }
.lim-r-ungenutzt summary { cursor: pointer; color: var(--lim-zart); }
.lim-r-spalten, .lim-r-palette { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.lim-r-trenner { width: 1px; height: 20px; background: var(--lim-linie); margin: 0 4px; }
.lim-r-titel { font-size: .9rem; color: var(--lim-gruen-dunkel); }
.lim-r-abschnitt { margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--lim-linie); font-size: .72rem; color: var(--lim-zart); }
.lim-r-baustein { display: grid; grid-template-columns: 18px 86px minmax(0, 1fr) minmax(70px, 150px) auto auto auto; gap: 6px; align-items: center; padding: 3px 6px; border: 1px solid #e3e9ee; border-left: 3px solid #aeb9c2; font-size: .76rem; margin-left: 14px; }
.lim-r-baustein.quelle { border-left-color: var(--lim-gruen); margin-left: 0; }
.lim-r-nr { color: var(--lim-zart); text-align: right; }
.lim-r-art { font-weight: 400; }
.lim-r-eingaben { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; min-width: 0; }
.lim-r-eingaben .lim-feld { min-width: 170px; }
.lim-r-eingaben .lim-feld.lim-schmal { min-width: 130px; }
.lim-r-eingaben .lim-feld.lim-eng { min-width: 110px; }
.lim .lim-eingabe.lim-r-kurz { width: 84px; }
.lim-r-zwischen { color: var(--lim-gruen-dunkel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.lim-r-zwischen.fehler, .lim td.lim-r-ergebnis.fehler { color: #b3261e; }
.lim td.lim-r-ergebnis { color: var(--lim-gruen-dunkel); font-weight: 600; }
.lim-r-liste { margin-left: 38px; }
.lim-r-vorschautab { max-height: 190px; overflow: auto; }
@media (max-width: 1100px) { .lim-regeln { grid-template-columns: 1fr; } }
.lim-aufbau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lim-aufbau-wahl { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border: 1px solid var(--lim-linie); cursor: pointer; font-size: .76rem; }
.lim-aufbau-wahl.an { border-color: var(--lim-gruen); background: var(--lim-gruen-hell); box-shadow: inset 3px 0 0 var(--lim-gruen); }
.lim-aufbau-wahl > span { display: flex; flex-direction: column; gap: 2px; }
.lim-aufbau-titel { font-size: .82rem; color: var(--lim-gruen-dunkel); }
.lim-zeile > .mud-icon-root { width: 16px; height: 16px; color: var(--lim-zart); }
@media (max-width: 1100px) { .lim-aufbau { grid-template-columns: 1fr; } }
.lim-vorlagen { max-height: 220px; overflow: auto; }
.lim tr.lim-klick { cursor: pointer; }
.lim tr.lim-klick:hover td { background: #f4f7f9; }
.lim tr.lim-gewaehlt td { background: #dff0ec; }

/* ab 3.99.465 (Rene 01.12.2026 21:32 „es geht auf, aber ist drunter“ – 21:37 „Scrollbalken entfernen, soll ganz runter gehen“; „horizontal ist er ok“):
   Zuordnung der Spalten ohne eigenen senkrechten Rollbalken – die Tabelle ist so hoch wie ihr Inhalt, gerollt wird das Fenster. Der waagrechte Balken
   bleibt. Eine geöffnete Auswahlliste liegt über den folgenden Zeilen und wird am unteren Rand nicht abgeschnitten (der Rahmen wächst, solange sie offen ist). */
.lim-tabelle-rahmen.lim-hoch:has(> table.lim-zuordnung) { height: auto; min-height: 0; max-height: none; overflow-x: auto; overflow-y: hidden; resize: none; }
.lim-tabelle-rahmen:has(> table.lim-zuordnung .aw-liste) { padding-bottom: 330px; }
.lim table.lim-zuordnung tr:has(.aw-liste) { position: relative; z-index: 60; }
.lim table.lim-zuordnung td:has(.aw-liste) { position: relative; z-index: 60; overflow: visible; }
.lim table.lim-zuordnung .aw-feld:has(.aw-liste) { z-index: 61; }
/* ab 3.99.465: Zuordnungen ohne Spalte (nach Wechsel des Hauptblatts) */
.lim-verwaist { border: 1px solid #e0b84c; background: #fff8e1; padding: 6px 8px; margin: 4px 0 8px; }
.lim-verwaist-zeile { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.lim-verwaist-zeile .lim-knopf { margin-left: auto; }
/* ab 3.99.467: Baustein „Wenn … dann … sonst“ in drei klaren Zeilen (wenn / dann / sonst) */
.lim-r-wenn { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; min-width: 0; }
.lim-r-wenn-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.lim-r-wenn-zeile .lim-feld { min-width: 0; flex: 1 1 130px; }
.lim-r-wenn-zeile input.lim-eingabe { min-width: 60px; flex: 1 1 90px; width: auto; }
.lim-r-wenn-zeile > span:not(.lim-feld) { white-space: nowrap; }
.lim-r-wenn-wort { min-width: 44px; font-weight: 600; color: var(--lim-gruen-dunkel, #0f7a6c); }

/* modulstil.Datenschutz/stil.css */
/* ab 3.99.227 (P0-08): Modul Datenschutz – nur Klassen mit Präfix ds-; Farben aus dem Farbschema (Regel 20). */
.ds-leiste { flex-wrap: wrap; gap: 6px; }
.ds-ansicht .ds-leiste input.ds-suche { width: calc(240px * var(--s)); height: 24px; font: inherit; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand); background: var(--th-feld); color: var(--th-text); border-radius: 3px; box-sizing: border-box; }
.ds-leiste .aw.ds-art { width: calc(230px * var(--s)); flex: 0 0 auto; }
.ds-reiter { display: inline-flex; gap: 2px; }
.ds-reiter button { border: 1px solid var(--th-rahmen); background: var(--th-feld); color: var(--th-text); padding: 2px 10px; border-radius: 4px 4px 0 0; font-size: .8rem; cursor: pointer; }
.ds-reiter button.aktiv { border-bottom-color: transparent; font-weight: 600; color: var(--th-akzent-dunkel); }
.ds-inhalt { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: calc(8px * var(--s)); }
.ds-inhalt > .ansicht-liste { min-height: 0; }
.ds-detail { min-height: 0; overflow: auto; border: 1px solid var(--th-rahmen); border-radius: calc(4px * var(--s)); background: var(--th-formular); padding: calc(8px * var(--s)); font-size: .8rem; color: var(--th-text); }
.ds-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-kopf h3 { margin: 0; font-size: 1rem; }
.ds-plakette { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--th-feldrand); white-space: nowrap; color: var(--th-text-zweitrangig); }
.ds-plakette.anonym { border-color: var(--th-versand-fehler, #b3261e); color: var(--th-versand-fehler, #b3261e); font-weight: 600; }
.ds-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.ds-abschnitt { font-weight: 600; font-size: .8rem; color: var(--th-beschriftung); margin: 10px 0 3px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--th-rahmen); padding-bottom: 2px; }
.ds-abschnitt .ds-zahl { font-weight: 400; color: var(--th-text-zweitrangig); }
.ds-felder { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 2px 10px; }
.ds-felder dt { max-width: 220px; }
.ds-felder dt { color: var(--th-beschriftung); }
.ds-felder dd { margin: 0; word-break: break-word; }
.ds-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ds-tabelle th { text-align: left; font-weight: 600; color: var(--th-beschriftung); border-bottom: 1px solid var(--th-rahmen); padding: 2px 4px; }
.ds-tabelle td { padding: 2px 4px; border-bottom: 1px solid var(--th-liste-linie, var(--th-rahmen)); vertical-align: top; }
.ds-tabelle tr.ds-widerrufen td { color: var(--th-text-zweitrangig); text-decoration: line-through; }
.ds-tabelle td.ds-aktion { text-align: right; white-space: nowrap; text-decoration: none; }
.ds-leer { color: var(--th-text-zweitrangig); font-style: italic; }
.ds-hinweis { font-size: .78rem; color: var(--th-text-zweitrangig); margin: 4px 0; }
.ds-treffer-anonym { color: var(--th-text-zweitrangig); }
.ds-dialog { display: grid; gap: var(--feld-zeilenabstand, 6px); font-size: .85rem; }
.ds-dialog label.ds-feld { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 6px; }
.ds-dialog input[type=text], .ds-dialog input[type=date], .ds-dialog textarea { font: inherit; font-size: .82rem; padding: 2px 6px; height: 24px; border: 1px solid var(--th-feldrand); background: var(--th-feld); color: var(--th-text); border-radius: 3px; box-sizing: border-box; }
.ds-dialog textarea { height: auto; min-height: 56px; }
.ds-anonym-liste { max-height: 42vh; overflow: auto; border: 1px solid var(--th-rahmen); border-radius: 4px; }
.ds-anonym-liste table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ds-anonym-liste td, .ds-anonym-liste th { padding: 2px 6px; border-bottom: 1px solid var(--th-liste-linie, var(--th-rahmen)); text-align: left; vertical-align: middle; }
.ds-anonym-liste td.ds-wert { color: var(--th-text-zweitrangig); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-anonym-liste tr.ds-gruppe td { font-weight: 600; color: var(--th-beschriftung); background: var(--th-tabellenkopf, var(--th-flaeche2)); }
.ds-anonym-liste tr.ds-teil td { color: var(--th-akzent-dunkel); border-top: 2px solid var(--th-rahmen); }
.ds-warnung { border: 1px solid var(--th-versand-fehler, #b3261e); border-radius: 4px; padding: 6px 10px; font-size: .82rem; }
.ds-haken { display: flex; align-items: center; gap: 6px; }
@container (max-width: 760px) { .ds-inhalt { grid-template-columns: 1fr; } }

/* modulstil.Dms/stil.css */

/* ab 3.99.153: weitere Dokumente am Listenende */
.dms-mehr-zeile td { text-align: center; padding: 8px !important; cursor: default; }

/* ab 3.99.153 (Rene 04.11.2026 19:33 „A Große Suchleiste“): das Suchfeld als Hauptsache – breit, rund, Petrol-Rahmen, „Suchen“ im Feld */
/* ab 3.99.267 (Rene 12.11.2026 „Suchfeld ein wenig kleiner“): 38 statt 46 px hoch, schmaler */
.dms-oben .dms-suche.dms-suche-gross { flex: 0 1 460px; min-width: 300px; height: 38px; gap: 8px; padding: 0 4px 0 12px; border: 2px solid var(--mud-palette-primary, #0f766e);
    border-radius: 24px; background: #fff; color: var(--mud-palette-primary, #0f766e); box-shadow: 0 0 0 4px rgba(15, 118, 110, .10); transition: box-shadow .15s; }
.dms-oben .dms-suche.dms-suche-gross:focus-within { box-shadow: 0 0 0 5px rgba(15, 118, 110, .22); }
.dms-suche.dms-suche-gross .mud-icon-root { font-size: 20px; width: 20px; height: 20px; flex: none; }
.dms-suche.dms-suche-gross input, .dms-suche.dms-suche-gross input:focus { border: 0; box-shadow: none; border-radius: 0; padding: 0 !important; font-size: .95rem; background: transparent; min-width: 0; color: var(--mf-text, #1f2a37); }
.dms-suche.dms-suche-gross input::placeholder { color: #93a1ae; }
.dms-suche.dms-suche-gross .filter-leeren, .dms-suche.dms-suche-gross .dms-suche-treffer { position: static; transform: none; flex: none; }
.dms-suche.dms-suche-gross .dms-suche-treffer { font-size: .78rem; }
.dms-suche-los { flex: none; border: 0; border-radius: 19px; background: var(--mud-palette-primary, #0f766e); color: #fff; font: inherit; font-weight: 600; font-size: .85rem; padding: 0 16px; height: 30px; cursor: pointer; }
.dms-suche-los:hover { filter: brightness(1.1); }
.dms-such-beispiele { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 2px 0 4px 20px; font-size: .76rem; color: var(--mf-text-2, #5d6b7a); }
.dms-such-beispiele button { all: unset; cursor: pointer; color: var(--mud-palette-primary, #0f766e); font-weight: 600; }
.dms-such-beispiele button:hover { text-decoration: underline; }
/* ab 3.99.166 (Rene 05.11.2026 22:19 „am Android funktioniert der responsive Mode nicht korrekt“): schmale Handys (320–360 px) – Suchfeld nicht breiter als der Bildschirm */
@media (max-width: 480px) {
  .dms-oben .dms-suche.dms-suche-gross { min-width: 0; flex-basis: 100%; }
  .dms-oben .dms-suche.dms-suche-gross .dms-suche-los { padding: 0 12px; }
}

/* ab 3.99.211: Trennblatt-Dialog */
.dms-trenn-felder { display: grid; gap: 6px; }
.dms-trenn-felder .feld { --label: 130px; display: grid; grid-template-columns: var(--label) 1fr; align-items: center; }
.dms-trenn-felder .feld .Auswahl, .dms-trenn-felder .feld .aw { width: 100%; }

/* ab 3.99.211: Scannen mit dem Handy (P10-01) */
.dscan .dscan-wurzel { padding: 14px; display: grid; gap: 12px; }
.dscan-start { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dscan-editor { display: grid; gap: 8px; justify-items: center; }
.dscan-hinweis { font-size: .9rem; color: #475569; text-align: center; }
.dscan-buehne { position: relative; touch-action: none; user-select: none; }
.dscan-foto { display: block; border-radius: 6px; }
.dscan-rahmen { position: absolute; inset: 0; pointer-events: none; }
.dscan-rahmen polygon { fill: rgba(15, 118, 110, .15); stroke: #0f766e; stroke-width: 2.5; }
.dscan-griff { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.85); border: 3px solid #0f766e; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: grab; touch-action: none; }
.dscan-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dscan-knoepfe .mf-knopf { font-size: 1rem; padding: 10px 16px; }
.dscan-filter { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #475569; }
.dscan-chip { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 16px; border: 1px solid #94a3b8; background: #fff; color: #334155; font-weight: 600; }
.dscan-chip.an { background: #0f766e; border-color: #0f766e; color: #fff; }
.dscan-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.dscan-seite { position: relative; background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.dscan-seite img { width: 100%; height: 130px; object-fit: contain; display: block; }
.dscan-seite b { position: absolute; left: 6px; top: 4px; background: #0f766e; color: #fff; border-radius: 10px; padding: 0 7px; font-size: .78rem; }
.dscan-mini { all: unset; cursor: pointer; position: absolute; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #94a3b8; text-align: center; line-height: 30px; font-size: 1rem; }
.dscan-mini:first-of-type { left: 6px; }
.dscan-mini.rot { right: 6px; color: #dc2626; border-color: #dc2626; }
.dscan-unten { display: grid; gap: 10px; }
.dscan-titel { font-size: 1rem; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.dscan-unten .invm-gross:disabled { opacity: .45; cursor: default; }
.dscan-status { text-align: center; color: #475569; min-height: 1.2em; }
.dscan-ok { margin: 12px 14px 0; padding: 10px 12px; border-radius: 8px; background: #dcfce7; color: #166534; font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dscan-ok a { color: #0f766e; }
.dscan-tipp { padding: 0 16px; font-size: .82rem; color: #64748b; }

/* ab 3.99.211: Teilen nach außen (P10-02) */
.dms-teilen { display: grid; gap: 8px; padding: 4px 0 8px; }
.dms-teilen-form { display: grid; grid-template-columns: 80px 1fr; gap: 6px 8px; align-items: center; font-size: .8rem; }
.dms-teilen-eingabe { width: 100%; height: 24px; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); box-sizing: border-box; }
.dms-teilen-eingabe.kurz { width: 70px; }
.dms-teilen-neu { border: 1px solid var(--th-akzent, #0f766e); border-radius: 6px; padding: 8px; font-size: .8rem; display: grid; gap: 6px; }
.dms-teilen-link { display: flex; gap: 6px; }
.dms-teilen-link input { flex: 1; min-width: 0; height: 26px; font-size: .78rem; font-family: Consolas, "Cascadia Mono", monospace; }
.dms-teilen-liste { display: grid; gap: 4px; }
.dms-teilen-zeile { display: flex; align-items: center; gap: 8px; font-size: .8rem; border-bottom: 1px solid var(--th-linie, #e2e8f0); padding: 3px 0; }
.dms-teilen-zeile.aus { opacity: .55; }
.dms-teilen-text { flex: 1; display: grid; }
.dms-teilen-text small { color: var(--th-text-zweitrangig, #64748b); }

/* ab 3.99.212: Ablage zuweisen – Ordnerbaum (B), Schnellwahl (C), Nummer ziehen (A) */
.dms-ow { position: relative; flex: 1; min-width: 0; }
.dms-ow-feld { all: unset; box-sizing: border-box; width: 100%; height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 6px; cursor: pointer;
               border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); font-size: .8rem; }
.dms-ow-feld:disabled { cursor: default; opacity: .7; }
.dms-ow-feld.offen, .dms-ow-feld:focus-visible { border-color: var(--th-akzent, #0f766e); }
.dms-ow-symbol { font-size: 16px !important; color: #d9a521; }
.dms-ow-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-ow-pfeil { font-size: 18px !important; color: var(--th-text-zweitrangig, #64748b); }
.dms-ow-pop { position: absolute; z-index: 1300; left: 0; right: 0; top: 26px; min-width: 280px; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #cbd5e1);
              border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 6px; }
.dms-ow-suche { height: 26px; font-size: .8rem; padding: 0 8px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; }
.dms-ow-baum { max-height: 380px; overflow: auto; }
.dms-ow-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dms-ow-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; padding: 1px 8px; border-radius: 10px;
               border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dms-ow-chip:hover { border-color: var(--th-akzent, #0f766e); }
/* ab 3.99.267 (Rene 12.11.2026 „dasselbe Grün wie bei erledigt, auch die Schriftgröße“) */
.dms-ow-chip.vorschlag { background: var(--mf-gruen-bg); border-color: var(--mf-gruen-rand, var(--mf-gruen-bg)); color: var(--mf-gruen-text); font-size: .64rem; font-weight: 600; padding: 0 7px; }
.dms-ow-chip.vorschlag .mud-icon-root { font-size: 12px !important; }
.dms-ow-chip .mud-icon-root { font-size: 14px !important; }
.dms-nr.ziehbar { cursor: grab; }
.dms-nr .dms-nr-griff { font-size: 14px !important; vertical-align: -2px; margin-left: -4px; opacity: .55; }
.dms-baum-fix { position: sticky; top: -6px; z-index: 3; margin: -6px -4px 4px; padding: 6px 4px 4px; background: #fbfcfe; border-bottom: 1px solid #dbe3ec; }
.dms-ow-baum .dms-baum-fix { top: 0; margin: 0 0 4px; padding: 0 0 4px; background: var(--th-feld, #fff); }
.dms-ow-hinter { position: fixed; inset: 0; z-index: 1299; }

/* ab 3.99.213: Regel-Dialog – Ablage so breit wie möglich, Test begrenzen */
.dms-regel-zeile .aw.dms-regel-ablage { width: auto; flex: 1 1 auto; min-width: 260px; }
.aw.dms-regel-anzahl { width: 170px; flex: none; }
.aw.dms-regel-testordner { width: 280px; flex: none; }
/* ab 3.99.221: Papierkorb ganz unten im Ordnerbaum, fest beim Scrollen */
.dms-baum-fuss { position: sticky; bottom: -10px; z-index: 3; margin: 6px -4px -10px; padding: 4px 4px 8px; background: #fbfcfe; border-top: 1px solid #dbe3ec; }
.dms-ow-baum .dms-baum-fuss { display: none; }
.dms-baum-icon.papierkorb { color: #7a8796; }
.dms-baum-papierkorb.unter { padding-left: 14px; }
.dms-baum-papierkorb.ziel { outline: 2px dashed #c0392b; outline-offset: -2px; }
.dms-pk-band { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; border: 1px solid #e3c9c4; border-left: 4px solid #c0392b; border-radius: 6px; font-size: .8rem; }
.dms-pk-band b { display: block; }
.dms-pk-band .dms-pk-text { flex: 1; }
.dms-pk-band .text-zweitrangig { display: block; margin-top: 2px; }
.dms-loesch-liste { max-height: 420px; overflow: auto; margin-top: 6px; border: 1px solid var(--th-rahmen, #dbe3ec); }
.dms-loesch-liste table { width: 100%; font-size: .78rem; }
.dms-loesch-liste thead th { position: sticky; top: 0; z-index: 1; background: var(--th-formular, #fbfcfe); }
.dms-loesch-liste tr.gewaehlt td { background: rgba(192,57,43,.06); }
.dms-loesch-filter { width: 320px; height: 24px; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #c5ced8); border-radius: 4px; background: var(--th-feld, #fff); }
.dms-loesch-endgueltig { color: #c0392b; font-weight: 600; }
.dms-loesch-wiederhergestellt { color: #15803d; }
/* ab 3.99.222: „Zur Freigabe“ im Ordnerbaum */
.dms-baum-freigabe .dms-baum-icon.freigabe { color: var(--th-dms-freigabe, #1d7a5a); }
.dms-baum-freigabe .dms-baum-offen.freigabe { margin-left: auto; background: var(--th-dms-freigabe, #1d7a5a); }

/* ab 3.99.226 (P10-05): Einstellungen → DMS → Freigabe – feste Freigabe-Wege (kompakt wie die übrigen Einstellungen) */
.dms-fgw { margin: 6px 0 10px; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: var(--feld-zeilenabstand, 6px); font-size: .78rem; }
.dms-fgw-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dms-fgw-kopf .dms-fgw-name { flex: 1 1 260px; min-width: 200px; font-weight: 600; }
.dms-fgw-frist { display: inline-flex; align-items: center; gap: 4px; }
.dms-einstellungen .dms-fgw-frist input[type=number] { width: 60px; flex: none; }
.dms-fgw-zeile { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: start; }
.dms-fgw-l { font-weight: 600; color: #334155; padding-top: 3px; }
.dms-fgw-l .text-zweitrangig { font-weight: 400; }
.dms-fgw-arten { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.dms-fgw-arten .dms-schalter.klein { font-size: .76rem; }
.dms-fgw-liste { display: flex; flex-direction: column; gap: var(--feld-zeilenabstand, 6px); align-items: flex-start; }
.dms-fgw-schritt { display: grid; grid-template-columns: 24px minmax(160px, 240px) minmax(160px, 1fr) auto auto auto; gap: 6px; align-items: center; width: 100%; max-width: 760px; }
.dms-fgw-schritt .dms-fgw-ab { text-align: right; color: #475569; }
.dms-fgw-schritt .dms-fgw-benutzer { min-width: 0; }
.dms-fgw-schritt .dms-fgw-titel, .dms-fgw-schritt .dms-fgw-betrag { min-width: 0; }
.dms-einstellungen .dms-fgw-schritt input.dms-fgw-betrag { width: 110px; }
.dms-fgw-schritt .dms-weg:disabled { opacity: .3; cursor: default; }
.dms-fgw .dms-fg-kreis { width: 20px; height: 20px; font-size: .68rem; }
/* Sende-Formular im Dokument: Weg und Betrag (ab 3.99.226) */
.dms-fg-wegwahl { flex: 1 1 200px; min-width: 160px; }
.dms-fg-betrag { width: 110px; text-align: right; }
.dms-fg-wegzeile { font-size: .74rem; }

/* ab 3.99.226 (P10-04): E-Rechnung – Kennzeichen und Abschnitt in den Angaben */
.dms-format.erechnung { background: #ede9fe; color: #5b21b6; margin-left: 4px; }
.dms-er { font-size: .72rem; display: flex; flex-direction: column; gap: 4px; padding: 2px 0 6px; }
.dms-er-kopf { font-size: .78rem; }
.dms-er-raster { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 1px 8px; align-items: baseline; }
.dms-er-raster > span:nth-child(odd) { color: #6b7785; white-space: nowrap; }
.dms-er-raster > span:nth-child(even) { overflow-wrap: anywhere; }
.dms-er-ueberfaellig { color: #b91c1c; font-weight: 600; }
.dms-er-iban { font-variant-numeric: tabular-nums; }
.dms-er-pos { width: 100%; border-collapse: collapse; font-size: .68rem; margin-top: 4px; }
.dms-er-pos th, .dms-er-pos td { padding: 1px 4px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); text-align: left; vertical-align: top; }
.dms-er-pos th { font-weight: 600; color: #6b7785; white-space: nowrap; }
.dms-er-pos .rechts { text-align: right; }
.dms-er-pos .nowrap { white-space: nowrap; }
.dms-er-pos .dms-er-bez { overflow-wrap: anywhere; }
.dms-er-hinweise { color: #6b7785; font-style: italic; }
/* ab 3.99.226 (P10-06): Versionen von Dokumenten – Liste, „Neue Version …“ (Knopf mit Dateiwahl) und Fläche zum Hineinziehen */
.dms-versionen td { vertical-align: middle; }
.dms-versionen .dms-version-aktuell td { font-weight: 600; }
.dms-version-marke { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; font-size: .58rem; font-weight: 600; color: #fff; background: var(--mud-palette-primary, #0f766e); }
.dms-version-hash { font-family: Consolas, monospace; }
.dms-version-knoepfe .dms-knopf { width: 18px; height: 18px; }
.dms-version-knoepfe .dms-knopf .mud-icon-root { font-size: 15px; }
.dms-version-wahl { position: relative; overflow: hidden; cursor: pointer; }
.dms-version-datei { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dms-version-kommentar { width: 100%; box-sizing: border-box; margin-top: 4px; }
.dms-version-zone { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 2px; padding: 8px; font-size: .74rem;
    color: var(--mf-text-2, #5d6b7a); border: 1px dashed var(--th-feldrand, #b8c4d2); border-radius: 6px; cursor: pointer; }
.dms-version-zone:hover, .dms-version-zone.ziehen { border-color: var(--mud-palette-primary, #0f766e); color: var(--mud-palette-primary, #0f766e); }
.dms-version-zone.ziehen { outline: 2px dashed var(--mud-palette-primary, #0f766e); outline-offset: -3px; }
.dms-versionen-rahmen { overflow-x: auto; }
.dms-versionen { table-layout: auto; }
.dms-version-von { font-weight: 400; color: var(--mf-text-2, #5d6b7a); }
.dms-version-kommentar-text { overflow-wrap: break-word; min-width: 72px; }
.dms-detail input.dms-version-kommentar { height: 24px; padding: 2px 6px; font-size: .8rem; border: 1px solid var(--th-feldrand, #b8c4d2); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; }
/* ab 3.99.226 (P10-08): Wiedervorlage – Zeile im Ordnerbaum und Abschnitt in den Angaben (Farbe aus dem Farbschema: --th-dms-wiedervorlage) */
.dms-baum-wv .dms-baum-icon.wv { color: var(--th-dms-wiedervorlage, #7048b6); }
.dms-baum-wv .dms-baum-offen.wv { margin-left: auto; background: var(--th-dms-wiedervorlage, #7048b6); }
.dms-wv-marke { margin-left: 6px; font-size: .62rem; font-weight: 700; color: #fff; background: var(--th-dms-wiedervorlage, #7048b6); border-radius: 9px; padding: 0 6px; }
.dms-wv { display: flex; flex-direction: column; gap: var(--feld-zeilenabstand, 6px); margin: 2px 0 6px; }
.dms-wv-zeile { display: flex; align-items: center; gap: 6px; font-size: .78rem; min-height: 24px; padding: 0 2px; border-left: 3px solid var(--th-rahmen, #dbe3ec); }
.dms-wv-zeile.faellig { border-left-color: var(--th-dms-wiedervorlage, #7048b6); }
.dms-wv-zeile.faellig .dms-wv-datum { color: var(--th-dms-wiedervorlage, #7048b6); font-weight: 700; }
.dms-wv-zeile.erledigt { opacity: .6; }
.dms-wv-zeile.erledigt .dms-wv-datum, .dms-wv-zeile.erledigt .dms-wv-notiz { text-decoration: line-through; }
.dms-wv-icon { font-size: 1rem !important; flex: none; }
.dms-wv-zeile.faellig .dms-wv-icon { color: var(--th-dms-wiedervorlage, #7048b6); }
.dms-wv-datum { flex: none; white-space: nowrap; }
.dms-wv-fuer { flex: none; white-space: nowrap; font-weight: 600; }
.dms-wv-notiz { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-wv-neu { display: flex; align-items: center; gap: 6px; }
.dms-wv-feld { height: 24px; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #c5ced8); border-radius: 4px; background: var(--th-feld, #fff); }
.dms-wv-feld.datum { width: 128px; flex: none; }
.dms-wv-feld.zeit { width: 84px; flex: none; }
.dms-wv-feld.notiz { flex: 1 1 auto; min-width: 0; }
.aw.dms-wv-wer { flex: 1 1 auto; min-width: 120px; width: auto; }
/* ab 3.99.226 (P10-09): Aufbewahrungsfrist je Dokument-Art */
.dms-frist-tabelle { margin-top: 6px; border-collapse: collapse; font-size: .8rem; }
.dms-frist-tabelle td, .dms-frist-tabelle th { padding: 2px 10px 2px 0; text-align: left; }
.dms-frist-tabelle input { width: 64px; height: 24px; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #c5ced8); border-radius: 4px; background: var(--th-feld, #fff); }
.dms-frist-hinweis { margin-top: 6px; font-size: .75rem; font-style: italic; }
.dms-frist-nie { font-weight: 600; }
.mf-menu-zahl.dms-wv-zahl { background: var(--th-dms-wiedervorlage, #7048b6); margin-left: 4px; }
/* ab 3.99.226: Freigabe – Frist überschritten (Farbschema „DMS: Freigabe überfällig“) */
.mf-menu-zahl.dms-fg-zahl.ueber { background: var(--th-dms-freigabe-ueberfaellig, #c62828); box-shadow: 0 0 0 2px rgba(198,40,40,.3); }
.dms-baum-freigabe .dms-baum-offen.freigabe.ueber { background: var(--th-dms-freigabe-ueberfaellig, #c62828); }
.dms-fg-ueber { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--th-dms-freigabe-ueberfaellig, #c62828); border-left: 3px solid var(--th-dms-freigabe-ueberfaellig, #c62828); padding: 2px 6px; }
.dms-fg-ueber .mud-icon-root { font-size: 1rem !important; }
.dms-fg-frist.ueber { color: var(--th-dms-freigabe-ueberfaellig, #c62828); font-weight: 700; }
.dms-fg-ueber-marke { margin-right: 6px; font-size: .62rem; font-weight: 700; color: #fff; background: var(--th-dms-freigabe-ueberfaellig, #c62828); border-radius: 9px; padding: 0 6px; white-space: nowrap; }
/* ab 3.99.226: dritter Knopf „Wieder aktuell machen“ – Marke „aktuell“ unter die Nummer, damit die Tabelle in die Angaben passt */
.dms-versionen .dms-version-marke { display: block; width: fit-content; margin: 1px 0 0; }
.dms-version-knoepfe { white-space: nowrap; }
.dms-versionen td.dms-version-knoepfe { padding-left: 2px; padding-right: 2px; }
.dms-versionen .dms-version-knoepfe .dms-knopf { width: 16px; }

/* ab 3.99.262: Einstellungen → DMS → Protokoll (kleine Schrift, filterbar) */
.dms-log { display: flex; flex-direction: column; gap: 6px; }
.dms-log-leiste { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .76rem; }
.dms-log-feld { border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; padding: 3px 6px; font: inherit; font-size: .76rem; background: transparent; color: inherit; }
.dms-log-suche { min-width: 260px; }
.dms-log-cb { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.dms-log-luecke { flex: 1; }
.dms-log-tabelle { max-height: calc(100vh - 360px); min-height: 300px; overflow: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; }
.dms-log-tabelle table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.dms-log-tabelle th { position: sticky; top: 0; background: var(--mud-palette-background-gray); text-align: left; padding: 4px 6px; font-weight: 600; z-index: 1; }
.dms-log-tabelle td { padding: 2px 6px; border-top: 1px solid var(--mud-palette-lines-default); vertical-align: top; }
.dms-log-tabelle tr:hover td { background: var(--mud-palette-action-default-hover); }
.dms-log-tabelle tr.fehler td { color: #b42318; }
.dms-log-tabelle .nowrap { white-space: nowrap; }
.dms-log-ordner { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-log-text { word-break: break-word; }
.dms-log-mehr { margin: 6px; }

/* 3.99.279 (Rene 13.11.2026): Drehknöpfe auf der Seite immer sichtbar (vorher nur beim Darüberfahren) */
.dms-seiten .dms-seite-drehen { opacity: .7; }
.dms-seiten .dms-seite:hover .dms-seite-drehen { opacity: 1; }
.dms-dreht { display: inline-flex; align-items: center; gap: 5px; color: var(--mud-palette-primary); }

/* ab 3.99.389 (Rene 25.11.2026 09:23, Variante A): Spezialsuche – Lupe als Knopf, Zeitraum als Marke im Suchfeld, Fenster unter dem Suchfeld */
.dms-oben .dms-suche.dms-suche-gross { position: relative; }
.dms-oben .dms-suche.dms-suche-gross:has(.dms-datum-marke) { flex-basis: 660px; }
.dms-lupe { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -6px; padding: 0; border: 0; background: transparent; color: #0f7a6c; cursor: pointer; }
.dms-lupe:hover { background: #e3f1ee; }
.dms-lupe.an { background: #0f7a6c; color: #fff; }
.dms-datum-marke { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 2px 0 8px; border: 1px solid #0f7a6c; background: #dff1ee; color: #0a5248; font-size: 12px; white-space: nowrap; }
.dms-datum-marke > span { cursor: pointer; }
.dms-datum-marke button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #0a5248; cursor: pointer; }
.dms-datum-marke button:hover { background: #0f7a6c; color: #fff; }
.dms-suche.dms-suche-gross .dms-datum-marke .mud-icon-root { font-size: 14px; width: 14px; height: 14px; }
.dms-spezial-hinter { position: fixed; inset: 0; z-index: 1290; }
.dms-spezial { position: absolute; left: -2px; top: calc(100% + 6px); z-index: 1300; width: 470px; background: #fff; border: 1px solid #0f7a6c; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 13px; color: #1c2b29; }
.dms-spezial-kopf { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 4px 0 10px; background: #0f7a6c; color: #fff; font-weight: 600; }
.dms-spezial-kopf button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.dms-spezial-inhalt { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 12px; }
.dms-spezial-inhalt input { height: 28px; padding: 0 8px; border: 1px solid #b9c5c2; background: #fff; font: inherit; color: inherit; min-width: 0; outline: none; }
.dms-spezial-inhalt input:focus { border-color: #0f7a6c; }
.dms-spezial-datum { display: flex; align-items: center; gap: 6px; }
.dms-spezial-datum input { flex: 1; }
.dms-spezial-schnell { display: flex; flex-wrap: wrap; gap: 4px; }
.dms-spezial-schnell button { height: 24px; padding: 0 8px; border: 1px solid #b9c5c2; background: #fff; font-size: 12px; color: #1c2b29; cursor: pointer; }
.dms-spezial-schnell button:hover, .dms-spezial-schnell button.an { border-color: #0f7a6c; background: #dff1ee; color: #0a5248; }
.dms-spezial-fehler { color: #b3261e; font-size: 12px; }
.dms-spezial-fuss { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px; }
.dms-spezial-fuss .dms-suche-los { border-radius: 0; height: 30px; }
.dms-oben .dms-suche.dms-suche-gross .dms-spezial input { flex: none; width: auto; height: 28px; font-size: 13px; font-weight: 400; border: 1px solid #b9c5c2; padding: 0 8px; color: #1c2b29; }
.dms-oben .dms-suche.dms-suche-gross .dms-spezial .dms-spezial-datum input { flex: 1; }
.dms-oben .dms-suche.dms-suche-gross .dms-spezial input:focus { border-color: #0f7a6c; }
.dms-spezial-zurueck { height: 30px; padding: 0 12px; border: 1px solid #b9c5c2; background: #fff; font-size: 13px; color: #1c2b29; cursor: pointer; }
.dms-spezial-zurueck:hover { border-color: #0f7a6c; background: #dff1ee; }

/* ab 3.99.391 (Rene 25.11.2026): „Nicht übernommen“ – rote Zeile im Ordnerbaum und Fenster mit den Einträgen */
.dms-baum-abgewiesen .dms-baum-name { color: #c62828; font-weight: 600; }
.dms-baum-abgewiesen .dms-baum-icon.abgewiesen { color: #c62828; }
.dms-baum-abgewiesen .dms-baum-offen.abgewiesen { margin-left: auto; background: #c62828; color: #fff; }
.dms-nue-liste { max-height: 60vh; overflow: auto; border: 1px solid #dbe3ee; background: #fff; margin-top: 8px; }
.dms-nue-tab { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dms-nue-tab th { position: sticky; top: 0; background: #eef2f8; text-align: left; padding: 6px 10px; border-bottom: 1px solid #dbe3ee; white-space: nowrap; }
.dms-nue-tab td { padding: 7px 10px; border-bottom: 1px solid #edf1f6; vertical-align: top; }
.dms-nue-zeit, .dms-nue-quelle { white-space: nowrap; color: #55626f; }
.dms-nue-datei { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dms-nue-grund { color: #c62828; display: flex; gap: 6px; align-items: flex-start; }
.dms-nue-grund .mud-icon-root { color: #c62828; flex: 0 0 auto; margin-top: 1px; }
.dms-nue-text { color: #55626f; font-weight: 400; }
.dms-nue-knoepfe { white-space: nowrap; text-align: right; }
.dms-nue-knoepfe .mf-knopf + .mf-knopf { margin-left: 6px; }
.mud-dialog.dms-nue-dlg .mud-dialog-content { padding-top: 14px !important; }

/* ab 3.99.394 (Rene 25.11.2026 22:14): Filter im Fenster der Lupe, Marken im Suchfeld; Suchfeld weniger rund („schon rund, aber weniger“) */
.dms-oben .dms-suche.dms-suche-gross { border-radius: 8px; }
.dms-suche.dms-suche-gross > .dms-suche-los { border-radius: 6px; }
.dms-oben .dms-suche.dms-suche-gross:has(.dms-datum-marke) { flex-basis: 760px; flex-wrap: nowrap; }
.dms-spezial-trenner { grid-column: 1 / -1; border-top: 1px solid #dbe3e1; margin: 2px 0; }
.dms-spezial-inhalt select { height: 28px; border: 1px solid #b9c5c2; background: #fff; font: inherit; font-size: .8rem; padding: 0 6px; width: 100%; }
.dms-spezial-inhalt select:focus { border-color: #0f7a6c; outline: none; }
.dms-spezial-haken { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; cursor: pointer; }
/* ab 3.99.394 (Rene 25.11.2026 22:15 „E-RECHNUNG einzeilig“): Abschnittsköpfe der Angaben brechen nicht um – die Kurzinfo rechts wird gekürzt */
.dms-detail .dms-abschnitt.dms-verlauf-kopf { white-space: nowrap; }
.dms-detail .dms-abschnitt.dms-verlauf-kopf .dms-abschnitt-kurz { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.dms-detail-kopf-zeile .dms-format.erechnung, .dms-detail-kopf-zeile .dms-status { white-space: nowrap; flex: none; }
/* ab 3.99.435: Einstellungen → DMS → Belegablage */
.dms-bab-tabelle { border-collapse: collapse; margin-top: 8px; }
.dms-bab-tabelle th, .dms-bab-tabelle td { border: 1px solid #d0d7d6; padding: 3px 8px; text-align: left; font-size: 13px; }
.dms-bab-tabelle th { background: #0f7a6c; color: #fff; font-weight: 500; }
.dms-bab-tabelle select { min-width: 320px; border-radius: 0; }
/* ab 3.99.435: Versionen vergleichen */
.dms-vgl-dialog { width: min(1100px, 96vw); max-width: 96vw; }
.dms-vgl-kopf { display: flex; align-items: center; gap: 8px; }
.dms-vgl-leiste { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; font-size: 13px; }
.dms-vgl-weg { color: #b71c1c; font-weight: 500; }
.dms-vgl-neu { color: #1b5e20; font-weight: 500; }
.dms-vgl-liste { max-height: 65vh; overflow: auto; border: 1px solid #d0d7d6; font-family: Consolas, "Liberation Mono", monospace; font-size: 12px; }
.dms-vgl-z { display: flex; gap: 6px; padding: 1px 6px; white-space: pre-wrap; }
.dms-vgl-z.weg { background: #fdecea; }
.dms-vgl-z.neu { background: #e8f5e9; }
.dms-vgl-nr { width: 34px; flex: none; text-align: right; color: #8a9593; }
.dms-vgl-zeichen { width: 12px; flex: none; font-weight: 700; }
.dms-vgl-text { flex: 1; }
.dms-vgl-luecke { padding: 1px 6px; color: #8a9593; background: #f4f6f6; }
.dms-version-wahl-box { margin: 0 4px 0 0; vertical-align: middle; }
/* ab 3.99.437 (Rene 29.11.2026 13:00): Versionen nebeneinander – Versionsliste, Auswahl links/rechts, Positionen und Summen in Spalten */
.dms-vgl-versionen, .dms-vgl-pos, .dms-vgl-summen { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.dms-vgl-versionen { margin-bottom: 8px; border: 1px solid #d5dbe1; }
.dms-vgl-versionen th, .dms-vgl-pos th, .dms-vgl-summen th { background: #eef3f2; color: #0f7a6c; font-weight: 600; text-align: left; padding: 3px 6px; font-size: 11px; }
.dms-vgl-versionen td, .dms-vgl-pos td, .dms-vgl-summen td { padding: 3px 6px; border-bottom: 1px solid #eef1f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-vgl-versionen tr.an td { background: #e1f5ee; }
.dms-vgl-versionen .rechts, .dms-vgl-pos .rechts, .dms-vgl-summen .rechts { text-align: right; }
.dms-vgl-wahl { display: flex; align-items: center; gap: 18px; margin: 4px 0 8px; font-size: 13px; flex-wrap: wrap; }
.dms-vgl-wahl > span { display: inline-flex; align-items: center; gap: 8px; }
.dms-vgl-wahl b { color: #0f7a6c; }
.dms-vgl-wahl label { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; }
.dms-vgl-zwei { display: grid; grid-template-columns: 1fr 1fr; max-height: 55vh; overflow: auto; border: 1px solid #d5dbe1; }
.dms-vgl-zwei > div { min-width: 0; padding: 6px 8px; }
.dms-vgl-zwei > div + div { border-left: 2px solid #0f7a6c; }
.dms-vgl-seite { font-weight: 600; color: #0f7a6c; margin: 0 0 4px; font-size: 12px; }
.dms-vgl-pos td.alt { background: #fdecea; color: #8a1c1c; font-weight: 600; }
.dms-vgl-pos td.neu { background: #e8f5e9; color: #1b5e20; font-weight: 600; }
.dms-vgl-pos tr.weg td { background: #fdecea; color: #8a1c1c; text-decoration: line-through; }
.dms-vgl-pos tr.dazu td { background: #e8f5e9; color: #1b5e20; }
.dms-vgl-pos tr.dms-vgl-loch td, .dms-vgl-z.loch { background: repeating-linear-gradient(135deg, #f4f6f6 0 6px, #e9eded 6px 12px); color: #8a9593; font-style: italic; }
.dms-vgl-pos tr.dms-vgl-luecke td { color: #8a9593; background: #f4f6f6; }
.dms-vgl-b2 { color: #6b7a86; font-size: 11px; }
.dms-vgl-summen { margin-top: 8px; border-top: 2px solid #0f7a6c; }
.dms-vgl-summen tr.fett td { font-weight: 700; }
.dms-vgl-summen td.plus { color: #1b5e20; } .dms-vgl-summen td.minus { color: #b71c1c; }
.dms-vgl-leg { display: inline-flex; align-items: center; gap: 5px; }
.dms-vgl-leg i { width: 12px; height: 12px; display: inline-block; border: 1px solid #c9d4df; }
.dms-vgl-leg i.neu { background: #e8f5e9; } .dms-vgl-leg i.weg { background: #fdecea; }
.dms-vgl-leg i.loch { background: repeating-linear-gradient(135deg, #f4f6f6 0 3px, #dfe5e5 3px 6px); }
.dms-vgl-zahl { margin-left: auto; color: #6b7a86; }
.dms-vgl-text-zwei { display: grid; grid-template-columns: 1fr 1fr; max-height: 60vh; overflow: auto; border: 1px solid #d5dbe1; font-family: Consolas, "Liberation Mono", monospace; font-size: 12px; }
.dms-vgl-text-zwei > :nth-child(odd) { border-right: 2px solid #0f7a6c; }
.dms-vgl-text-zwei .dms-vgl-seite { font-family: inherit; padding: 4px 6px; background: #eef3f2; margin: 0; }
.dms-vgl-text-zwei .dms-vgl-z { min-height: 18px; }
/* ab 3.99.438 (Rene 29.11.2026 14:20): Textvergleich in den Spalten des Dokuments – Zeilen nicht umbrechen, Seiten nebeneinander, waagrecht blättern */
.dms-vgl-text-zwei { grid-template-columns: minmax(50%, max-content) minmax(50%, max-content); font-size: 11.5px; }
.dms-vgl-text-zwei .dms-vgl-z { white-space: pre; display: block; }

/* ab 3.99.475: Popup „Ordner im DMS und im Office“ (Belegarten) und Ziel für „Ordner verschieben“ */
.osd { display: flex; gap: 14px; align-items: stretch; }
.osd-spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.osd-kopf { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #0f7a6c; color: #fff; font-weight: 600; font-size: .85rem; }
.osd-leiste { display: flex; align-items: center; gap: 8px; }
.osd-gewaehlt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: #33424d; }
.osd-neu { display: flex; align-items: center; gap: 6px; }
.osd-neu input { flex: 1 1 auto; min-width: 0; height: 28px; padding: 0 6px; border: 1px solid #b8c4cc; font: inherit; font-size: .85rem; }
.osd-neu input:focus { outline: none; border-color: #0f7a6c; }
.osd-baum { height: 380px; overflow: auto; border: 1px solid #cfd8de; background: #fff; }
.osd-leer { padding: 10px; font-size: .8rem; color: #6b7a86; }
.osd-hinweis { margin-top: 8px; font-size: .78rem; color: #6b7a86; }
@media (max-width: 760px) { .osd { flex-direction: column; } .osd-baum { height: 240px; } }

/* modulstil.Druckdesigner/stil.css */
/* ab 22.11.2026 (Norbert): Druckdesigner (Administration → Designer → Druckdesigner) – Klassen mit Präfix „dd-“.
   Farben aus dem Farbschema (--th-*), die Bänder selbst zeigen das Papier (weiß) wie im Druck. */
.dd { display: flex; flex-direction: column; height: 100%; min-height: 0; outline: none; font-size: .78rem; }
.dd-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dd-wahl { min-width: 220px; }
.dd-wahl.schmal { min-width: 140px; }
.dd-trenner { width: 1px; align-self: stretch; background: var(--th-rahmen, #c9d6e2); margin: 0 4px; }
.dd-haken { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.dd-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.dd-hinweis { padding: 8px 12px; color: var(--th-text-zweitrangig, #5d6b7a); }
.dd-hinweis.klein { padding: 4px 0; font-size: .72rem; line-height: 1.35; }

.dd-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr) 290px; border-top: 1px solid var(--th-rahmen, #c9d6e2); }
.dd-felder, .dd-eigen { overflow: auto; padding: 8px 10px; background: var(--th-formular, transparent); }
.dd-felder { border-right: 1px solid var(--th-rahmen, #c9d6e2); }
.dd-eigen { border-left: 1px solid var(--th-rahmen, #c9d6e2); display: flex; flex-direction: column; gap: 8px; }
.dd-kopf { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--th-text-zweitrangig, #5d6b7a); margin-top: 4px; }
.dd-gruppe { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; border: none; background: none; cursor: pointer; font: inherit; color: inherit;
             font-weight: 700; margin: 6px 0 2px; padding: 3px 4px; font-size: .74rem; border-radius: 3px; } /* 22.11.2026: zum Ein- und Ausklappen */
.dd-gruppe:hover { background: var(--th-akzent-hell, #e6f4ea); }
.dd-pfeil { display: inline-block; width: 12px; transition: transform .15s; font-size: .9rem; line-height: 1; }
.dd-gruppe.offen .dd-pfeil { transform: rotate(90deg); }
.dd-anzahl { margin-left: auto; font-weight: 400; opacity: .55; font-size: .68rem; }
.dd-gruppen-knoepfe { display: flex; gap: 10px; margin: 4px 0 2px; }
.dd-link { border: none; background: none; padding: 0; cursor: pointer; font: inherit; font-size: .7rem; color: var(--th-akzent, #0b7a5c); text-decoration: underline; }
.dd-feld { display: block; width: 100%; text-align: left; border: none; background: none; padding: 3px 6px; border-radius: 3px; cursor: pointer; font: inherit; color: inherit; }
.dd-feld:hover { background: var(--th-akzent-hell, #e6f4ea); }
.dd-eingabe, .dd-eigen input[type=text], .dd-eigen input[type=number], .dd-eigen textarea {
    width: 100%; box-sizing: border-box; font: inherit; padding: 3px 6px; border: 1px solid var(--th-feldrand, #c9d6e2); background: var(--th-feld, #fff); color: inherit; }
.dd-eigen textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; }
.dd-block { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; }
.dd-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dd-zahlen label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; }
.dd-haken-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.dd-haken-reihe label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dd-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }

.dd-baender { overflow: auto; padding: 10px 14px 40px; background: var(--th-hintergrund, #e9eef3); }
.dd-lineal { position: relative; height: 14px; font-size: 9px; color: var(--th-text-zweitrangig, #5d6b7a); margin-bottom: 2px; }
.dd-lineal span { position: absolute; transform: translateX(-50%); }
.dd-band { position: relative; display: grid; grid-template-columns: auto auto; margin-bottom: 0; width: max-content; }
.dd-band-name { box-sizing: border-box; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; font-size: .7rem; cursor: pointer;
    background: var(--th-rahmen-kopf, #dde5ec); border: 1px solid var(--th-rahmen, #c9d6e2); border-right: none; border-top: none; }
.dd-band-name b { font-size: .76rem; }
.dd-band-name span { color: var(--th-text-zweitrangig, #5d6b7a); line-height: 1.25; }
.dd-band.gewaehlt .dd-band-name { background: var(--th-akzent, #0f7a6c); color: #fff; }
.dd-band.gewaehlt .dd-band-name span { color: #e6f4ea; }
.dd-flaeche { position: relative; background: #fff; border-bottom: 1px dashed #b8c4d0; box-shadow: 1px 0 0 #c9d6e2, -1px 0 0 #c9d6e2; overflow: visible; cursor: default; }
.dd-band.gewaehlt .dd-flaeche { box-shadow: inset 0 0 0 2px var(--th-akzent, #0f7a6c); }
.dd-rand { position: absolute; top: 0; bottom: 0; width: 9px; margin-left: -4px; cursor: ew-resize; z-index: 4;
    background: linear-gradient(to right, transparent 4px, #6f8aa5 4px, #6f8aa5 5px, transparent 5px); }
.dd-rand:hover { background: linear-gradient(to right, transparent 3px, var(--th-akzent, #0f7a6c) 3px, var(--th-akzent, #0f7a6c) 6px, transparent 6px); }
.dd-mindest { position: absolute; left: 0; right: 0; border-top: 1px dotted #e0a050; pointer-events: none; }
.dd-band-griff { grid-column: 2; height: 6px; cursor: ns-resize; }
.dd-band-griff:hover { background: var(--th-akzent, #0f7a6c); opacity: .4; }

.dd-el { position: absolute; box-sizing: border-box; color: #111; cursor: move; user-select: none; touch-action: none; line-height: 1.15; }
.dd-text { white-space: pre-wrap; overflow: hidden; outline: 1px dashed #b8c4d0; }
.dd-text.waechst { overflow: visible; }
.dd-logo { outline: 1px dashed #b8c4d0; display: flex; align-items: center; }
.dd-platzhalter { margin: auto; color: #5d6b7a; font: 600 11px Arial, sans-serif; }
.dd-linie { min-height: 0; }
.dd-linie::after { content: ""; position: absolute; inset: -4px; } /* größere Fläche zum Anfassen */
.dd-el.gewaehlt { outline: 2px solid var(--th-akzent, #0f7a6c); z-index: 2; }
.dd-griff { position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; background: var(--th-akzent, #0f7a6c); cursor: nwse-resize; z-index: 3; }
.dd-hg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dd-hg-titel { width: 100%; font-weight: 600; font-size: .74rem; }
.dd-hg-bild { width: 60px; height: 85px; object-fit: contain; border: 1px solid var(--th-rahmen, #c9d6e2); background: #fff; }
.dd-datei { cursor: pointer; }
.dd-datei input[type=file] { display: none; }
.dd-hg-bild.aus { opacity: .3; filter: grayscale(1); }
.dd-schutz { padding: 6px 12px; font-size: .76rem; background: #fff4d6; border-bottom: 1px solid #e8cf86; color: #5c4400; }
/* ab 22.11.2026: Datenbankfelder, Listen, Bedingungen */
.dd-code { font-family: Consolas, 'Courier New', monospace; font-size: .76rem; }
.dd-abfrage { outline-color: #7a5cc4; background: rgba(122, 92, 196, .06); }
.dd-vorschau { margin: 4px 0; padding: 6px 8px; border: 1px solid var(--th-rahmen, #c9d6e2); border-radius: 4px; background: var(--th-flaeche, #f7f9fb); font-size: .76rem; }
.dd-vorschau-kopf { font-weight: 600; margin-bottom: 3px; }
.dd-wert { font-size: .8rem; font-weight: 600; color: #0f6b3c; }
.dd-wert.nein { color: #9a5b00; }
.dd-fehler { font-size: .74rem; color: #b3261e; white-space: pre-wrap; }
.dd-vorschau-tabelle { max-height: 180px; overflow: auto; }
.dd-vorschau-tabelle table { border-collapse: collapse; font-size: .7rem; }
.dd-vorschau-tabelle th, .dd-vorschau-tabelle td { border: 1px solid var(--th-rahmen, #c9d6e2); padding: 1px 4px; white-space: nowrap; text-align: left; }
/* ab 22.11.2026: Eingabefelder wachsen mit dem Inhalt und brechen um */
.dd-eigen textarea.dd-wachsend { width: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; resize: vertical; field-sizing: content; min-height: 3.2em; max-height: 22em; }
/* 26.11.2026: Geltung der Felder – überall oder nur in einem Band */
.dd-geltung { display: inline-block; font-size: .6rem; font-weight: 600; line-height: 1.3; padding: 0 5px; border-radius: 8px; white-space: nowrap; margin-left: 4px; }
.dd-geltung.global { background: #e3f1e8; color: #1b6b3a; border: 1px solid #b9dcc6; }
.dd-geltung.band { background: #fdeccf; color: #8a4b00; border: 1px solid #f2c98a; }
.dd-geltung.klein { font-size: .56rem; padding: 0 4px; }
.dd-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; margin: 4px 0 2px; font-size: .66rem; }
.dd-legende .dd-geltung { margin-left: 0; }
.dd-feld.gesperrt { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
/* 26.11.2026: Feldbaum nach Bereichen (Positionsarten, Übertrag, Listen, Überall) und verstellbare Feldspalte */
.dd-teiler { cursor: col-resize; background: var(--th-rahmen, #c9d6e2); opacity: .35; transition: opacity .15s; }
.dd-teiler:hover { opacity: 1; background: var(--th-akzent, #0b7a5c); }
.dd-bereich { border: 1px solid transparent; border-radius: 5px; margin: 3px 0; }
.dd-bereich.aktiv { border-color: var(--th-akzent, #0b7a5c); background: rgba(11, 122, 92, .05); }
.dd-bereich.global { border-top: 1px dashed var(--th-rahmen, #c9d6e2); border-radius: 0; margin-top: 8px; padding-top: 2px; }
.dd-bereich.fremd .dd-bereich-kopf { opacity: .55; }
.dd-bereich-kopf { align-items: flex-start; }
.dd-bereich-text { display: flex; flex-direction: column; line-height: 1.2; }
.dd-bereich-text small { font-weight: 400; font-size: .62rem; opacity: .7; }
.dd-untergruppe { margin-left: 10px; font-weight: 600; font-size: .72rem; }
.dd-bereich .dd-feld { margin-left: 14px; }
.dd-bereich-leer { margin: 2px 0 4px 18px; font-size: .68rem; color: #8a4b00; }
/* 26.11.2026: Felder per Doppelklick oder Ziehen einfügen */
.dd-felder .dd-feld { cursor: grab; user-select: none; touch-action: none; }
.dd-zug { position: fixed; z-index: 2000; pointer-events: none; padding: 2px 8px; border-radius: 4px; font-size: .75rem;
          background: var(--th-akzent, #0b7a5c); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; }
.dd-flaeche.dd-ziel { cursor: copy; }
.dd-flaeche.dd-ziel:hover { box-shadow: inset 0 0 0 2px var(--th-akzent, #0b7a5c); background-color: rgba(11, 122, 92, .04); }
/* 26.11.2026: Lupe neben „Beispieldaten“ – Belegsuche */
.dd-lupe { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -4px; border: 1px solid rgba(255,255,255,.5);
           border-radius: 4px; background: rgba(255,255,255,.15); color: inherit; cursor: pointer; }
.dd-lupe:hover { background: rgba(255,255,255,.3); }
/* 26.11.2026: Bänder per Drag & Drop verschieben (am Namen ziehen) */
.dd-band-name.beweglich { cursor: grab; user-select: none; touch-action: none; }
.dd-band.dd-band-zieht { opacity: .45; }
.dd-band.dd-band-ziel { cursor: copy; }
.dd-band.dd-band-ziel:hover { box-shadow: 0 -3px 0 0 var(--th-akzent, #0b7a5c); }
.dd-band.dd-band-gesperrt { cursor: not-allowed; }
.dd-band.dd-band-gesperrt .dd-band-name { opacity: .5; }
/* 26.11.2026: SQL farbig – Befehle blau und groß, gültige Tabellen/Felder grün, Fehler rot */
.dd-sql { box-sizing: border-box; width: 100%; min-height: 3.2em; max-height: 22em; overflow: auto; padding: 4px 6px; margin-top: 2px;
          border: 1px solid var(--th-rahmen, #c9d6e2); border-radius: 4px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; line-height: 1.35; }
.dd-sql:hover, .dd-sql:focus { border-color: var(--th-akzent, #0b7a5c); outline: none; }
.dd-sql .sql-wort { color: #0b57d0; font-weight: 600; }
.dd-sql .sql-ok { color: #137333; }
.dd-sql .sql-fehler { color: #c5221f; text-decoration: underline wavy #c5221f; text-underline-offset: 2px; }
.dd-sql .sql-text { color: #a14a00; }
.dd-sql .sql-zahl { color: #6f42c1; }
.dd-sql .sql-kommentar { color: #6b7785; font-style: italic; }
.dd-sql .sql-alias { color: #3c4043; font-style: italic; }
/* ab 3.99.455: Element „Tabelle“ (Größentabelle der Varianten) */
.dd-tabelle { outline: 1px dashed #b8c4d0; overflow: hidden; }
.dd-tabelle-muster { border-collapse: collapse; font-family: Arial, sans-serif; color: #5d6b7a; }
.dd-tabelle-muster th, .dd-tabelle-muster td { border: 1px solid #c8c8c8; min-width: 2.2em; height: 1.2em; padding: 0 .3em; text-align: center; }
/* ab 3.99.455: Ansicht – kein Abstand zwischen den Bändern (Griff liegt über der Kante), Raster, weitere Datensätze */
.dd-band-griff { position: absolute; right: 0; bottom: -3px; z-index: 6; }
.dd-gitter { position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(to right, rgba(15,122,108,.14) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,122,108,.14) 1px, transparent 1px); }
.dd-kopie { pointer-events: none; }
.dd-kopie .dd-band-name { opacity: .7; font-style: italic; }
.dd-kopie .dd-flaeche { opacity: .85; }
.dd-klein { width: 58px; }
.dd-band-name { overflow: hidden; padding-top: 2px; padding-bottom: 2px; }
.dd-leiste .dd-haken { margin-left: 8px; }
.dd-haken .dd-klein { margin-left: 4px; }

/* modulstil.Erloeskontrolle/stil.css */
/* Modul VG-Abrechnungen – nur Klassen mit Präfix „erlo-“ (ab 3.99.156) */
.erlo-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.erlo-reiter { display: inline-flex; gap: 2px; }
.erlo-reiter button { border: 1px solid var(--th-rahmen, #cfd8dc); background: transparent; padding: 3px 10px; border-radius: 6px; cursor: pointer; font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; }
.erlo-reiter button.an { background: var(--mud-palette-primary, #14897f); color: #fff; border-color: transparent; }
.erlo-reiter.klein button { padding: 1px 8px; }
.erlo-oben { flex: 1 1 55%; min-height: 0; display: flex; flex-direction: column; padding: 6px 8px; overflow: hidden; }
.erlo-liste { flex: 1 1 45%; min-height: 0; overflow: auto; border-top: 1px solid var(--th-rahmen, #cfd8dc); }
.erlo-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 6px; }
.erlo-ok { color: #2e7d32; font-weight: 600; }
.erlo-fehler { color: #c62828; font-weight: 600; }
.erlo-tabelle { flex: 1; min-height: 0; overflow: auto; }
.erlo-tabelle.gross { padding: 0 8px; }
.erlo-summe { font-size: .82rem; padding: 4px 8px; }
.erlo-pruefung { font-size: .85rem; overflow: auto; }
.erlo-hinweis { margin: 2px 0; }
.erlo-leer { padding: 12px; }
.erlo-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 8px; font-size: .82rem; }
.erlo-filter input[type=date] { height: 24px; font-size: .8rem; }
.erlo-feld { display: inline-flex; gap: 6px; align-items: center; }
tr.erlo-zeile-fehler td { color: #c62828; }
.erlo-ablage { margin: 14px 12px 4px; min-height: 150px; }
.erlo-ablage.gesperrt { opacity: .7; cursor: progress; }
/* ab 3.99.162: Gesellschaften & Empfänger */
.erlo-einst { flex: 1; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 14px; }
.erlo-einst-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .85rem; }
.erlo-einst-text { font-size: .78rem; color: var(--th-text-leise, #5b6472); flex: 1; min-width: 300px; }
.erlo-einst-tab { border-collapse: collapse; font-size: .8rem; width: 100%; }
.erlo-einst-tab th { text-align: left; font-weight: 600; padding: 3px 6px; border-bottom: 1px solid var(--th-rahmen, #cfd8dc); }
.erlo-einst-tab td { padding: 2px 6px; border-bottom: 1px solid var(--th-rahmen, #e3e8ec); vertical-align: middle; }
.erlo-einst-tab td.mitte { text-align: center; }
.erlo-einst-tab input:not([type=checkbox]) { height: 24px; font-size: .8rem; width: 100%; min-width: 120px; }
.erlo-einst-tab input.erlo-k { min-width: 60px; width: 90px; }
.erlo-einst-tab input.erlo-n { min-width: 90px; width: 130px; }
.erlo-einst-tab input.erlo-b { min-width: 260px; }
.erlo-einst-tab tr.erlo-neu td { background: color-mix(in srgb, #f59e0b 10%, transparent); }
.erlo-frage { display: flex; flex-direction: column; gap: 10px; font-size: .85rem; min-width: 420px; }
.erlo-frage label { display: flex; gap: 8px; align-items: center; }
.erlo-frage label input:not([type=checkbox]) { flex: 1; height: 24px; }
.erlo-frage label > span:first-child { width: 140px; flex: none; }
.erlo-frage label .aw { flex: 1; }
.erlo-sp-raster { display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 6px 16px; }

/* modulstil.Forms/stil.css */
/* ab 3.99.68 – Inntec Forms (nur Klassen mit Präfix fo-) */
.fo-maske { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px; }
.fo-oben { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 8px; align-items: start; }
@media (max-width: 1000px) { .fo-oben { grid-template-columns: minmax(0, 1fr); } }
.fo-rahmen { min-width: 0; }
.fo-farbe { display: flex; align-items: center; gap: 6px; }
.fo-farbe input[type=color] { width: 40px; height: 24px; padding: 0 2px; }
.fo-freigabe { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.fo-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; background: #e2e8f0; color: #334155; margin-right: 6px; }
.fo-status.aktiv { background: #dcfce7; color: #166534; }
.fo-status.pausiert { background: #fef3c7; color: #92400e; }
.fo-status.gesperrt { background: #fee2e2; color: #991b1b; }
.fo-link input { width: 100%; font-family: Consolas, monospace; font-size: .78rem; }
.fo-fehler { color: #b91c1c; font-size: .8rem; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fo-chip { display: inline-flex; align-items: center; gap: 3px; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 10px; padding: 0 2px 0 8px; font-size: .78rem; }
.fo-chip button { border: 0; background: none; cursor: pointer; color: #64748b; font-size: .7rem; }
.fo-hinweis { display: block; margin-top: 6px; }
.fo-feldtabelle { width: 100%; border-collapse: collapse; font-size: .8rem; }
.fo-feldtabelle th { text-align: left; font-weight: 600; padding: 2px 4px; border-bottom: 1px solid var(--th-rahmen, #cbd5e1); white-space: nowrap; }
.fo-feldtabelle td { padding: 2px 4px; vertical-align: top; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.fo-feldtabelle td input:not([type=checkbox]), .fo-feldtabelle td textarea { width: 100%; min-width: 60px; }
.fo-feldtabelle .fo-art { width: 170px; }
.fo-feldtabelle .fo-schl { width: 130px; }
.fo-feldtabelle .fo-schl input { font-family: Consolas, monospace; font-size: .75rem; }
.fo-feldtabelle .fo-nr { width: 22px; color: #64748b; text-align: right; }
.fo-feldtabelle .fo-mitte { text-align: center; width: 44px; }
.fo-feldtabelle .fo-einst { width: 260px; }
.fo-feldtabelle .fo-knoepfe { white-space: nowrap; width: 70px; }
.fo-feldtabelle tr.fo-abschnitt td { background: color-mix(in srgb, var(--th-rahmen, #cbd5e1) 25%, transparent); font-weight: 600; }
.fo-typen { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-right: 8px; }
.fo-typen label { white-space: nowrap; }
.fo-zahlen { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.fo-zahlen input[type=number] { width: 58px !important; min-width: 0 !important; }
.fo-feld-neu { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fo-filter { min-width: 170px; }
.fo-kopfzeile { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fo-werte { width: 100%; border-collapse: collapse; font-size: .76rem; margin-bottom: 6px; } /* ab 3.99.256: Schrift wie in den Masken (Titelarchiv …) */
.fo-werte td { padding: 2px 6px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); vertical-align: top; }
.fo-werte td:first-child { width: 34%; color: #17222f; }
.fo-werte .fo-wert { white-space: pre-wrap; word-break: break-word; }
.fo-werte th.fo-abschnitt { text-align: left; padding: 8px 6px 2px; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-akzent, #08786f); }
.fo-bilder { display: flex; flex-wrap: wrap; gap: 8px; }
.fo-bilder figure { margin: 0; max-width: 160px; }
.fo-bilder img { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid var(--th-rahmen, #e2e8f0); cursor: pointer; }
.fo-bilder figcaption { word-break: break-all; }
.fo-pruefung ul { margin: 2px 0 0 16px; padding: 0; }
.fo-rot { color: #b91c1c; }
.fo-orange { color: #b45309; }
.mf-knopf.fo-freigeben { background: #15803d; border-color: #15803d; color: #fff; }
.fo-oben > fieldset, .fo-maske > fieldset { grid-column: auto !important; margin: 0 !important; }
.fo-maske textarea { width: 100%; }

/* ab 3.99.69: Formular wie im Lizenzportal (lizenzportal/public/forms.css) – Baukasten zeigt es genau so; Test FormsTests prüft, dass beide gleich sind */
/* == gemeinsam (Inntec ONE Module/Forms/stil.css) == */
.ff { --ff-farbe: #0f766e; --ff-rand: #cfd8e3; --ff-feldrand: #b9c4d0; --ff-leise: #64748b; color: #1f2937; font-family: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.45; }
.ff *, .ff *::before, .ff *::after { box-sizing: border-box; }
.ff-blatt { background: #fff; border: 1px solid var(--ff-rand); border-radius: 8px; box-shadow: 0 2px 10px rgba(15, 23, 42, .07); overflow: hidden; }
.ff-kopf { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 18px; color: #fff;
  background: linear-gradient(135deg, var(--ff-farbe), color-mix(in srgb, var(--ff-farbe) 72%, #0b1620)); }
.ff-logo { max-height: 46px; max-width: 200px; background: #fff; border-radius: 6px; padding: 4px 6px; object-fit: contain; }
.ff-kopftext { font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.ff-inhalt { padding: 16px 20px 18px; }
.ff-titel { margin: 0 0 6px; font-size: 1.35rem; font-weight: 600; color: var(--ff-farbe); }
.ff-fuer { margin: -2px 0 10px; font-size: .85rem; color: var(--ff-leise); }
.ff-einleitung { margin: 0 0 12px; color: #334155; white-space: pre-line; }
.ff-gruppe { border: 1px solid var(--ff-rand); border-radius: 6px; margin: 0 0 12px; padding: 8px 12px 12px; min-width: 0; }
.ff-gruppe > legend { padding: 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.ff-gruppe.ohne-titel { border-color: transparent; padding: 0; }
.ff-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 9px 14px; }
.ff-raster > * { grid-column: span var(--b, 12); min-width: 0; }
.ff-feld > label.ff-beschr { display: block; font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 3px; }
.ff-links .ff-feld.ff-breit { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.ff-links .ff-feld.ff-breit > label.ff-beschr { margin: 7px 0 0; text-align: left; }
.ff-links .ff-feld.ff-breit > :not(label) { grid-column: 2; }
.ff-feld input:not([type=checkbox]):not([type=radio]), .ff-feld textarea {
  width: 100%; min-height: 34px; padding: 6px 9px; font: inherit; font-size: .92rem; color: #111827; background: #fff;
  border: 1px solid var(--ff-feldrand); border-radius: 4px; }
.ff-feld textarea { min-height: 84px; resize: vertical; }
.ff-feld input:focus, .ff-feld textarea:focus { outline: 2px solid color-mix(in srgb, var(--ff-farbe) 55%, transparent); outline-offset: 0; border-color: var(--ff-farbe); }
.ff-feld input[type=checkbox], .ff-feld input[type=radio] { width: 17px; height: 17px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--ff-farbe); }
.ff-haken-zeile { display: block; font-weight: 400 !important; cursor: pointer; padding-top: 4px; }
.ff-optionen { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 4px; }
.ff-optionen label { cursor: pointer; font-size: .92rem; }
.ff-optionen.ff-lang { display: block; max-height: 210px; overflow: auto; border: 1px solid var(--ff-feldrand); border-radius: 4px; padding: 4px 10px; }
.ff-optionen.ff-lang label { display: block; padding: 2px 0; }
.ff-pflicht { color: #dc2626; }
.ff-hilfe, .ff-dateiinfo { font-size: .78rem; color: var(--ff-leise); margin-top: 3px; }
.ff-hinweis { font-size: .9rem; color: #334155; white-space: pre-line; padding: 2px 0; }
.ff-hinweis > b { display: block; margin-bottom: 2px; color: #1f2937; }
.ff-linie { border: 0; border-top: 1px solid var(--ff-rand); margin: 4px 0; }
.ff-datei-feld { border: 1px dashed var(--ff-feldrand); border-radius: 6px; padding: 8px 10px; background: color-mix(in srgb, var(--ff-farbe) 4%, #fff); }
.ff-datei-feld input[type=file] { width: 100%; font-size: .85rem; }
.ff-schon { font-size: .85rem; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 4px; padding: 4px 8px; margin-bottom: 6px; } /* ab 1.72: Datei vom letzten Versuch behalten */
.ff-falsch input, .ff-falsch textarea, .ff-falsch .ff-optionen, .ff-falsch .ff-datei-feld { border-color: #dc2626 !important; }
.ff-meldung { color: #b91c1c; font-size: .8rem; margin-top: 3px; }
.ff-fehler { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 8px 12px; border-radius: 6px; margin: 4px 0 12px; font-size: .9rem; }
.ff-fang { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ff-vorschau { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ff-vorschau img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ff-rand); }
.ff-datei { font-size: .8rem; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.ff-unten { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; border-top: 1px solid var(--ff-rand); padding-top: 12px; }
.ff-schutz { font-size: .8rem; color: var(--ff-leise); }
.ff-schutz.laeuft::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 2px solid #94a3b8; border-top-color: transparent; border-radius: 50%; animation: ff-dreh .8s linear infinite; vertical-align: -1px; }
.ff-schutz.fertig { color: #15803d; }
@keyframes ff-dreh { to { transform: rotate(360deg); } }
.ff-senden { background: var(--ff-farbe); color: #fff; border: 1px solid var(--ff-farbe); border-radius: 6px; padding: 8px 22px; font: inherit; font-weight: 600; cursor: pointer; }
.ff-senden:hover { filter: brightness(1.08); }
.ff-senden:disabled { opacity: .6; cursor: wait; }
.ff-danke { padding: 26px 20px; text-align: center; font-size: 1.02rem; white-space: pre-line; }
.ff-haken { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: color-mix(in srgb, var(--ff-farbe) 14%, #fff); color: var(--ff-farbe); font-size: 28px; line-height: 52px; }
.ff-fuss { display: flex; align-items: center; justify-content: center; gap: 6px; color: #94a3b8; font-size: .74rem; margin: 12px 0 0; }
.ff-n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #14897f, #0c6760); color: #fff; font-size: .62rem; font-weight: 700; }
@media (max-width: 640px) {
  .ff-raster > * { grid-column: span 12; }
  .ff-links .ff-feld.ff-breit { display: block; }
  .ff-links .ff-feld.ff-breit > label.ff-beschr { margin: 0 0 3px; }
  .ff-blatt { border-radius: 0; border-left: 0; border-right: 0; }
  .ff-inhalt { padding: 14px; }
}
/* == ende gemeinsam == */

/* ab 3.99.69: Maske „Formulare“ mit Zeitleiste und Baukasten (wie Office → Briefe: links Bausteine, Mitte das Blatt, rechts Einstellungen) */
.fo-kopfzeile2 { display: flex; align-items: center; gap: 10px; padding: 4px 10px 0; flex-wrap: wrap; }
.fo-kopfzeile2 .fo-name { flex: 0 1 460px; min-width: 240px; display: flex; align-items: center; gap: 6px; }
/* ab 3.99.70: Namensfeld sichtbar wie jedes Feld, fehlt → rot */
.fo-kopfzeile2 .fo-name > label { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.fo-kopfzeile2 .fo-name > input { flex: 1 1 auto; min-width: 0; height: 26px; box-sizing: border-box; padding: 2px 8px; font: inherit; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; }
.fo-kopfzeile2 .fo-name > input.pflicht:not(:disabled) { background: var(--mf-pflicht, #fff1bf); }
.fo-kopfzeile2 .fo-name > input.fehlt, .fo-kopfzeile2 .fo-name > input.fehlt:focus { border: 2px solid #dc2626; background: #fef2f2; outline: 2px solid #fecaca; animation: fo-wackeln .35s ease 2; }
@keyframes fo-wackeln { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.fo-ansicht .fo-schritt .feld-eingabe > :is(input:not([type=checkbox]):not([type=color]), textarea) { width: 100%; box-sizing: border-box; }
/* ab 3.99.70: Übersicht zur Auswahl (beim Öffnen und über „Öffnen“) */
.fo-uebersicht { padding: 8px 10px; }
.fo-ue-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.fo-ue-kopf > b { font-size: .95rem; }
.fo-ue-suche { flex: 0 1 320px; height: 26px; box-sizing: border-box; padding: 2px 8px; font: inherit; font-size: .82rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; }
.fo-ue-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fo-ue-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 6px; background: var(--th-feld, #fff); padding: 10px 12px; min-height: 96px; }
.fo-ue-karte:hover { border-color: #0f766e; box-shadow: 0 1px 6px rgba(15, 118, 110, .18); }
.fo-ue-name { font-weight: 600; font-size: .9rem; }
.fo-ue-zahlen { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: #475569; }
.fo-ue-datum { font-size: .72rem; color: #94a3b8; margin-top: auto; }
.fo-ue-neu { align-items: center; justify-content: center; flex-direction: row; gap: 8px; border-style: dashed; color: #0f766e; font-weight: 600; }
.fo-ue-neu .mud-icon-root { font-size: 22px; }
.fo-linkbox { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 320px; font-size: .78rem; }
.fo-linkbox code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; padding: 2px 6px; }
.fo-iconknopf { border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); border-radius: 4px; width: 26px; height: 24px; display: inline-grid; place-items: center; cursor: pointer; color: #0f766e; flex: none; padding: 0; }
.fo-iconknopf:hover { background: #ecfdf5; }
.fo-iconknopf .mud-icon-root { font-size: 16px; }
.fo-schritt { padding: 2px 6px 6px; }
.fo-bk { display: grid; grid-template-columns: 150px minmax(0, 1fr) 290px; gap: 8px; align-items: start; }
@media (max-width: 1100px) { .fo-bk { grid-template-columns: 130px minmax(0, 1fr); } .fo-bk-einst { grid-column: 1 / -1; } }
.fo-bk-palette { display: flex; flex-direction: column; gap: 3px; }
.fo-bk-palette > b { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 4px 0 2px; }
.fo-bk-baustein { display: flex; align-items: center; justify-content: flex-start; gap: 6px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); border-radius: 4px;
  padding: 3px 7px; font-size: .78rem; cursor: grab; text-align: left; font-family: inherit; color: inherit; }
.fo-bk-baustein:hover { border-color: #0f766e; background: #f0fdfa; }
.fo-bk-baustein .mud-icon-root { font-size: 16px; color: #0f766e; }
.fo-bk-flaeche { background: #e9eef3; border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 6px; padding: 14px; min-height: 300px; }
.fo-bk-flaeche > .ff { max-width: var(--ff-breite, 780px); margin: 0 auto; } /* ab 3.99.276: Breite wie eingestellt */
.fo-bk-blatt .fo-bk-el { position: relative; cursor: pointer; border-radius: 4px; outline: 1px dashed transparent; outline-offset: 3px; }
.fo-bk-blatt .fo-bk-el:hover { outline-color: #94a3b8; }
.fo-bk-blatt .fo-bk-el.gewaehlt { outline: 2px solid #2563eb; }
.fo-bk-blatt legend.fo-bk-el { cursor: pointer; }
.fo-bk-griff { position: absolute; left: -16px; top: 2px; color: #94a3b8; cursor: grab; display: none; font-size: .9rem; }
.fo-bk-weg { position: absolute; right: -6px; top: -8px; display: none; border: 1px solid #fecaca; background: #fff; color: #b91c1c; border-radius: 50%; width: 18px; height: 18px; font-size: .62rem; line-height: 1; cursor: pointer; padding: 0; }
.fo-bk-blatt .fo-bk-el:hover > .fo-bk-griff, .fo-bk-blatt .fo-bk-el.gewaehlt > .fo-bk-griff, .fo-bk-blatt .fo-bk-el:hover > .fo-bk-weg, .fo-bk-blatt .fo-bk-el.gewaehlt > .fo-bk-weg { display: block; }
.fo-bk-blatt input:disabled, .fo-bk-blatt textarea:disabled { background: #fff; cursor: pointer; }
.fo-bk-ende { border: 2px dashed #cbd5e1; border-radius: 6px; padding: 8px; text-align: center; color: #94a3b8; font-size: .78rem; margin: 6px 0 10px; }
.fo-bk-ende.leer { padding: 30px 8px; }
.fo-bk-einst { min-width: 0; }
.fo-bk-einst .formular-raster { --label: 96px; }
.fo-breiten { display: flex; flex-wrap: wrap; gap: 3px; }
.fo-breiten button { border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); border-radius: 4px; padding: 1px 7px; font-size: .75rem; cursor: pointer; font-family: inherit; }
.fo-breiten button.an { background: #0f766e; color: #fff; border-color: #0f766e; }
.fo-lieferanten { width: 100%; border-collapse: collapse; font-size: .8rem; }
.fo-lieferanten td, .fo-lieferanten th { padding: 3px 6px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); text-align: left; vertical-align: middle; }
.fo-lieferanten td.fo-l-link { max-width: 0; width: 55%; }
.fo-lieferanten td.fo-l-link code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.fo-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
@media (max-width: 1000px) { .fo-zwei { grid-template-columns: minmax(0, 1fr); } }
.fo-zwei > fieldset, .fo-bk > * > fieldset { grid-column: auto !important; margin: 0 !important; }
/* Baukasten: deaktivierte Vorschaufelder schlucken in Chrome den Klick – Klick geht an den Baustein */
.fo-bk-blatt .fo-bk-el input, .fo-bk-blatt .fo-bk-el textarea, .fo-bk-blatt .fo-bk-el label { pointer-events: none; }
/* Standardleiste bleibt beim Scrollen durch den Baukasten lesbar (im Farbverlauf ist sie halb durchsichtig) */
html.farbverlauf .fenster .fo-ansicht .ansicht-formular .formular-oben { background: color-mix(in srgb, var(--th-formular, #eef3f8) 92%, #fff) !important; }

/* ab 3.99.258 (Rene 12.11.2026 02:38): Angaben zweispaltig, je Abschnitt ein Block; Bilder im eigenen Feld */
.fo-spalten { column-count: 2; column-gap: 22px; margin-bottom: 6px; }
@media (max-width: 1300px) { .fo-spalten { column-count: 1; } }
.fo-block { min-width: 0; break-inside: avoid; display: inline-block; width: 100%; }
.fo-block-titel { padding: 8px 6px 2px; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-akzent, #08786f); }
.fo-block .fo-werte { margin-bottom: 0; }
.fo-feldbilder { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-feldbilder img { width: 120px; height: 150px; object-fit: cover; object-position: center 25%; border-radius: 6px; border: 1px solid var(--th-rahmen, #cbd5e1); cursor: pointer; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.fo-kopfzeile, .fo-rahmen > .klein { font-size: .76rem; }

/* ab 3.99.269: Ausschnitt wählen unter dem Bild einer Einsendung */
.fo-bild { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fo-bild-knoepfe { display: flex; gap: 4px; flex-wrap: wrap; }
.fv-liste { display: flex; flex-direction: column; gap: 4px; }
.fv-liste > div { display: flex; align-items: center; gap: 6px; }
.fv-liste > div > span { width: 18px; text-align: right; font-size: .78rem; color: #64748b; }
.fv-liste > div > input { flex: 1; }
.fv-liste-plus { font-size: .8rem; color: var(--mud-palette-primary, #0f766e); margin-left: 24px; }
.fo-liste { margin: 0; padding-left: 20px; }
/* ab 3.99.272 (Rene 13.11.2026 00:57/01:01 „Antworten als Feld weiß unterlegen“, Variante F1): Antworten wie Felder in den Masken,
   Abschnitt-Überschriften größer mit Nummer im grünen Kästchen */
.fo-block-titel { display: flex; align-items: center; gap: 8px; padding: 10px 2px 5px; font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--th-akzent, #08786f); }
.fo-block-nr { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--th-akzent, #08786f); color: #fff; font-size: .72rem; font-weight: 600; }
.fo-block .fo-werte { border-collapse: separate; border-spacing: 0 3px; }
.fo-block .fo-werte td { border-bottom: 0; }
.fo-block .fo-werte td:first-child { color: var(--th-beschriftung, #4d6075); padding-top: 5px; }
.fo-block .fo-werte td.fo-wert:not(.fo-wert-bilder) { background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #c9d4df); padding: 3px 7px; color: var(--th-feld-schrift, #1f2937); }
.fo-block .fo-werte td.fo-wert.leer { color: #a3adb8; font-style: italic; }

/* ab 3.99.276 (Rene 13.11.2026): Empfänger – eigene Spalte „Adressen“ zum Rüberziehen, mit Suche und Filter */
.fo-drei { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 8px; align-items: stretch; min-height: 0; }
@media (max-width: 1200px) { .fo-drei { grid-template-columns: minmax(0, 1fr); } }
.fo-drei > fieldset { grid-column: auto !important; margin: 0 !important; }
.fo-adresspool { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 260px); }
.fo-pool-suche { height: 28px; border: 1px solid var(--th-feldrand, #cfd8e3); padding: 0 8px; font: inherit; font-size: .82rem; }
.fo-pool-filter { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; }
.fo-pool-filter label { display: inline-flex; align-items: center; gap: 4px; }
.fo-pool-liste { flex: 1; min-height: 120px; overflow: auto; border: 1px solid var(--th-rahmen, #e3e8ef); background: #fff; }
.fo-pool-zeile { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid #edf1f4; cursor: grab; }
.fo-pool-zeile:hover { background: var(--th-auswahl, #e3f2ee); }
.fo-pool-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .8rem; }
.fo-pool-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-pool-text small { color: var(--th-text2, #5f6b78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-empf-ziel.aktiv { outline: 2px dashed var(--mud-palette-primary, #0f766e); outline-offset: -2px; background: #f2faf8; }

/* ab 3.99.282: Vorlagen je Branche */
.fv-vorlagen { max-height: 70vh; overflow: auto; padding-top: 6px; }
.fv-vorlagen-suche { position: sticky; top: 0; z-index: 1; background: #fff; border: 1px solid var(--rand, #cbd5e1); padding: 6px 8px; font: inherit; margin-bottom: 4px; }
.fv-vorlagen-gruppe { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--rand, #e2e8f0); }
/* ab 3.99.432: Verwendung „Urheber-Porträt“ am Formular */
.fo-verwendung { margin-bottom: 8px; }
.fo-verwendung-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fo-verwendung-zeile > label { display: flex; align-items: center; gap: 6px; }

/* modulstil.InntecSafe/stil.css */
/* InntecSafe – nur Klassen mit Präfix „sf-“ (die Oberfläche selbst liegt in wwwroot/safe/safe.css) */
.sf-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sf-rahmen { flex: 1; width: 100%; min-height: 420px; border: 0; display: block; }

/* modulstil.Lizenzen/stil.css */
/* ab 3.99.436: Audio Master Info – Sammelmessung */
.tam-lauf { margin-left: 6px; font-size: 11px; color: #0f7a6c; }
.tam-text { font-size: 13px; margin-bottom: 8px; }
.tam-fehler { color: #b71c1c; font-size: 13px; margin: 8px 0; }
.tam-wahl { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; font-size: 13px; }
.tam-ergebnis { margin-top: 10px; font-size: 13px; }
.tam-tabelle { margin-top: 6px; max-height: 300px; overflow: auto; display: block; }
/* ab 3.99.450 (Rene 30.11.2026 22:42 „Variante A“): Fenster der Sammelmessung – Info oben, Messwerte, Auswahl als Kästchen, Fortschritt mit Restzeit */
.tam { width: 540px; max-width: 100%; font-size: 13px; }
.tam-info { display: flex; gap: 8px; background: #f2f4f6; border: 1px solid #dde3e8; padding: 10px; margin-bottom: 12px; line-height: 1.5; color: #3b4a56; }
.tam-info .mud-icon-root { color: #0f7a6c; flex: none; margin-top: 2px; }
.tam-titel { font-weight: 500; margin: 0 0 6px; }
.tam-werte { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin-bottom: 12px; font-size: 12px; color: #3b4a56; }
.tam-werte span::before { content: "·"; color: #0f7a6c; margin-right: 6px; font-weight: 600; }
label.tam-wahl { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #c9d3dc; padding: 9px 10px; margin: 0 0 8px; cursor: pointer; flex-direction: row; font-size: 13px; }
label.tam-wahl.an { border-color: #0f7a6c; background: rgba(15,122,108,.06); }
label.tam-wahl input { accent-color: #0f7a6c; margin-top: 2px; }
label.tam-wahl > span { flex: 1; }
label.tam-wahl b { float: right; font-weight: 600; color: #0f7a6c; }
label.tam-wahl small { display: block; font-size: 12px; color: #6b7882; }
.tam-balken { height: 14px; background: #e3e8ec; border: 1px solid #c9d3dc; position: relative; }
.tam-balken i { position: absolute; left: 0; top: 0; bottom: 0; background: #0f7a6c; transition: width .6s; }
.tam-zeile { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #3b4a56; margin: 5px 0 10px; }
.tam-zeile b { color: #0f7a6c; font-weight: 600; }
.tam-kz { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dde3e8; }
.tam-kz > div { padding: 7px 8px; border-right: 1px solid #dde3e8; }
.tam-kz > div:last-child { border-right: 0; }
.tam-kz small { display: block; font-size: 11px; color: #6b7882; }
.tam-kz b { font-weight: 600; font-size: 15px; }
.tam-kz b.rot { color: #b71c1c; }
.tam-akt { font-size: 12px; color: #6b7882; margin-top: 8px; }

/* ab 3.99.450: im schmalen Popup (Feldraster in zwei Spalten) über die ganze Breite */
.pu-inhalt > .tam { grid-column: 1 / -1; }

/* modulstil.Maskendesigner/stil.css */
/* Modul Maskendesigner – nur Klassen mit Präfix „mask-“ */
.mask-auswahl { max-width: 520px; }
.mask-kopf { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0 8px; }
.mask-tabelle td, .mask-tabelle th { white-space: nowrap; }
.mask-spalte { font-family: Consolas, monospace; font-size: .9em; }
.mask-verborgen td { opacity: .55; }
.mask-hinweis { margin-top: 10px; }
.mask-eigene { color: var(--mud-palette-text-secondary); font-style: italic; }
.mask-zaehler { margin: 4px 0 8px; font-size: .85em; }
.mask-leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mask-markiert { color: var(--mud-palette-primary); }
.mask-ort td { background: var(--mud-palette-background-gray); font-weight: 600; }
.mask-geaendert td { background: rgba(255, 193, 7, .12); }
.mask-eingabe { border: 1px solid var(--mud-palette-lines-inputs); border-radius: 3px; padding: 1px 4px; font: inherit; min-width: 140px; background: transparent; color: inherit; }
.mask-zahl { min-width: 0; width: 56px; }
.mask-knopf { border: none; background: transparent; cursor: pointer; padding: 0 3px; font-size: 1em; color: inherit; }
.mask-knopf:hover { color: var(--mud-palette-primary); }
.mask-pfeile { white-space: nowrap; width: 1%; }
.mask-mitte { text-align: center; }
.mask-liste-titel { margin: 16px 0 4px; font-weight: 600; }
.mask-aufbau { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 8px 10px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.mask-aufbau-zeile { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mask-aufbau-titel { font-weight: 600; min-width: 90px; }
.mask-chip { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 0 8px; font-size: .9em; white-space: nowrap; }
.mask-chip-neu { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary); }
.mask-neu { margin-left: 6px; font-size: .75em; padding: 0 5px; border-radius: 8px; background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); font-family: inherit; }
.mask-chip { display: inline-flex; align-items: center; gap: 1px; }
.mask-chip-umbenannt { border-style: dashed; }
.mask-chip .mask-knopf:disabled { opacity: .3; cursor: default; }
.mask-reiter-name { cursor: text; padding: 0 2px; }
.mask-reiter-eingabe { min-width: 110px; width: 130px; }
.mask-vorschau-kopf { display: flex; gap: 10px; align-items: center; margin: 4px 0; }
.mask-vorschau { border: 1px dashed var(--mud-palette-lines-default); border-radius: 4px; padding: 8px; margin-bottom: 10px; pointer-events: auto; }
.mask-vorschau-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px 8px; margin-bottom: 6px; }
.mask-vorschau-rahmen { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 2px 8px 6px; margin: 0; min-width: 0; }
.mask-vorschau-rahmen legend { font-size: .85em; font-weight: 600; padding: 0 4px; }
.mask-vorschau-feld { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .85em; }
.mask-vorschau-label { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mud-palette-text-secondary); }
.mask-vorschau-eingabe { flex: 1 1 auto; height: 18px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 3px; background: var(--mud-palette-surface); }
.mask-vorschau-eingabe.mehrzeilig { height: 40px; }
.mask-vorschau-haken { width: 14px; height: 14px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 2px; }
.mask-vorschau-liste { font-size: .85em; color: var(--mud-palette-text-secondary); margin: 4px 0; }
/* Scrollen im Fenster: .ansicht ist ein Flex-Container mit fester Höhe – der Inhalt scrollt, die Leiste bleibt oben */
.mask-ansicht { overflow: hidden; }
.mask-inhalt { flex: 1 1 auto; min-height: 0; overflow: auto; padding-top: 0 !important; }
.mask-inhalt > .mask-leiste { position: sticky; top: 0; z-index: 5; background: var(--mud-palette-surface, #fff); padding: 12px 0 6px; }
.mask-chip-aktiv { box-shadow: 0 0 0 2px var(--mud-palette-primary); }
.mask-rahmen-bearbeiten { background: rgba(33, 150, 243, .06); border-radius: 4px; padding: 4px; }
.mask-auswahl { min-width: 420px; }
.mask-feldsuche { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.mask-feldsuche .mask-eingabe { min-width: 280px; }
.mask-suche-titel { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.mask-suche-tabelle { max-width: 900px; }
/* ab 3.99.253 (Norbert 12.11.2026, Variante C): Maske gestalten direkt in der Maske – Leiste oben, Seitenteil rechts */
.mask-g-maske { display: contents; }
.ansicht.mask-gestalten-ansicht > .ansicht-teiler, .ansicht.mask-gestalten-ansicht > .ansicht-liste { display: none !important; }
.ansicht.mask-gestalten-ansicht > .ansicht-formular { flex: 1 1 auto !important; max-height: none !important; height: auto !important; }
.ansicht-formular.mask-gestalten { display: grid !important; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.mask-gestalten > .mask-g-maske { display: block; grid-column: 1; grid-row: 2; overflow: auto; min-height: 0; }
.mask-g-leiste { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 10px; background: #0f766e; color: #fff; font-size: .9em; }
.mask-g-titel { opacity: .85; }
.mask-g-trenner { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .35); margin: 0 2px; }
.mask-g-platz { flex: 1 1 auto; }
.mask-g-knopf { border: 1px solid var(--mud-palette-lines-inputs, #b8c2cc); background: #fff; color: #1f2937; border-radius: 4px; padding: 1px 8px; font: inherit; font-size: .92em; cursor: pointer; white-space: nowrap; }
.mask-g-knopf:hover:not(:disabled) { border-color: #0f766e; color: #0f766e; }
.mask-g-knopf:disabled { opacity: .45; cursor: default; }
.mask-g-knopf.voll { background: #0f766e; border-color: #0f766e; color: #fff; }
.mask-g-leiste .mask-g-knopf { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; }
.mask-g-leiste .mask-g-knopf.voll { background: #fff; color: #0f766e; border-color: #fff; font-weight: 600; }
.mask-g-leiste .mask-g-knopf.hell { background: transparent; }
.mask-g-panel { grid-column: 2; grid-row: 2; overflow: auto; min-height: 0; border-left: 1px solid var(--mud-palette-lines-default, #d6dde5); background: var(--mud-palette-surface, #fff); padding: 8px 10px; display: flex; flex-direction: column; gap: 10px; font-size: .88em; }
.mask-g-block { display: flex; flex-direction: column; gap: 6px; }
.mask-g-block h4 { margin: 0; font-size: 1em; font-weight: 600; }
.mask-g-block label { display: flex; flex-direction: column; gap: 2px; color: var(--mud-palette-text-secondary); }
.mask-g-block label .mask-eingabe { color: var(--mud-palette-text-primary); min-width: 0; }
.mask-g-block label.mask-g-haken { flex-direction: row; align-items: center; gap: 4px; }
.mask-g-editor { border: 1px solid #0f766e; border-radius: 6px; padding: 8px; background: rgba(15, 118, 110, .04); }
.mask-g-neu { border: 1px dashed #0f766e; border-radius: 6px; padding: 8px; }
.mask-g-kopf { display: flex; align-items: center; gap: 6px; }
.mask-g-kopf h4 { flex: 1 1 auto; }
.mask-g-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mask-g-breiten { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.mask-g-breite { min-width: 30px; border: 1px solid var(--mud-palette-lines-inputs, #b8c2cc); background: #fff; border-radius: 4px; cursor: pointer; font: inherit; padding: 1px 4px; }
.mask-g-breite.an { background: #0f766e; color: #fff; border-color: #0f766e; }
.mask-g-hinweis { color: var(--mud-palette-text-secondary); font-size: .92em; }
.mask-g-zahl { font-weight: 400; font-size: .85em; padding: 0 6px; border-radius: 8px; background: rgba(15, 118, 110, .12); color: #0f766e; margin-left: 4px; }
.mask-g-aenderung { display: flex; align-items: center; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.mask-g-text { flex: 1 1 auto; min-width: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.mask-g-art { width: 18px; text-align: center; border-radius: 3px; font-size: .9em; }
.mask-g-art.neu { background: #dcfce7; color: #166534; }
.mask-g-art.geaendert { background: #fef3c7; color: #92400e; }
.mask-g-art.aus { background: #e5e7eb; color: #374151; }
.mask-g-legende { display: flex; gap: 12px; color: var(--mud-palette-text-secondary); }
.mask-g-legende span { display: inline-flex; align-items: center; gap: 4px; }
.mask-g-l { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.mask-g-l.sel { outline: 2px solid #0f766e; }
.mask-g-l.aus { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .25) 0 3px, transparent 3px 6px); }
/* Felder in der Maske: Klick wählt, Eingaben gesperrt */
.mask-g-feld { position: relative; cursor: pointer; border-radius: 3px; outline: 1px dashed rgba(15, 118, 110, .35); outline-offset: 1px; }
.mask-g-feld > * { pointer-events: none; }
.mask-g-feld:hover { outline: 1px solid #0f766e; background: rgba(15, 118, 110, .05); }
.mask-g-feld.mask-g-sel { outline: 2px solid #0f766e; background: rgba(15, 118, 110, .09); }
.mask-g-feld.mask-g-aus { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .07) 0 6px, transparent 6px 12px); }
.mask-g-feld.mask-g-aus > :not(.mask-g-marke) { opacity: .45; }
.mask-g-marke { position: absolute; top: -7px; right: 3px; font-size: 10px; line-height: 13px; padding: 0 4px; border-radius: 6px; background: #0f766e; color: #fff; display: none; }
.mask-g-feld:hover > .mask-g-marke, .mask-g-feld.mask-g-sel > .mask-g-marke { display: inline-block; }
.mask-g-reiter { flex: 1 1 auto; min-width: 0; }
.mask-g-reiter.geaendert { border-color: #0f766e; }
/* ab 3.99.253: Ziehen & Ablegen – Felder in Rahmen/Reiter, Rahmen auf Reiter */
.mask-g-zone { min-height: 40px; border-radius: 4px; }
.mask-g-zone.zieht { outline: 2px dashed rgba(15, 118, 110, .35); outline-offset: 2px; }
.mask-g-leer { color: var(--mud-palette-text-secondary); font-style: italic; padding: 10px; text-align: center; border: 1px dashed rgba(15, 118, 110, .4); border-radius: 4px; margin: 4px 0; }
.mask-g-rahmen { cursor: grab; outline: 1px dashed rgba(15, 118, 110, .45); outline-offset: 1px; min-height: 36px; }
.mask-g-rahmen:hover { outline: 1px solid #0f766e; }
.mask-g-feld { cursor: grab; }
.mask-g-zone.zieht .mask-g-rahmen:hover, .mask-g-zone.zieht .mask-g-feld:hover { outline: 2px solid #0f766e; background: rgba(15, 118, 110, .08); }
/* ab 3.99.253: Auswahl von Rahmen und Reitern beim Gestalten */
.mask-g-rahmen.mask-g-sel { outline: 2px solid #0f766e !important; background: rgba(15, 118, 110, .05); }
.mask-g-reiter-sel { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.mask-g-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mask-g-chips .mask-chip { cursor: pointer; background: transparent; font: inherit; font-size: .9em; }
.mask-g-chips .mask-chip:hover { border-color: #0f766e; color: #0f766e; }
/* ab 3.99.253: ausgeblendete Rahmen und Reiter beim Gestalten */
.mask-g-rahmen.mask-g-aus { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 6px, transparent 6px 12px); }
.mask-g-rahmen.mask-g-aus > :not(legend) { opacity: .5; }
.mask-g-reiter-aus { text-decoration: line-through; opacity: .6; }
/* ab 3.99.253: Feld ohne Wert (nur Beschriftung) beim Gestalten kenntlich */
.mask-g-feld .nur-beschriftung { border-bottom: 1px dashed rgba(15, 118, 110, .5); }
/* ab 3.99.253 (Norbert 12.11.2026): Zugriffsrechte je Feld – Tabelle (Seitenteil „Maske gestalten“ und Administration → Zugriffsrechte) */
.mask-zr { border-collapse: collapse; width: 100%; font-size: .92em; }
.mask-zr th { font-weight: 600; font-size: .85em; text-align: center; padding: 2px 3px; color: var(--mud-palette-text-secondary); }
.mask-zr td { padding: 1px 3px; border-top: 1px solid rgba(0, 0, 0, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mask-zr td:not(:first-child) { text-align: center; width: 1%; }
.mask-zr-alle td:first-child { font-weight: 600; }
.mask-zr-z { width: 26px; height: 20px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; font: inherit; line-height: 1; }
.mask-zr-z.ja { background: #dcfce7; color: #166534; border-color: #86efac; }
.mask-zr-z.nein { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.mask-zr-z.geerbt { opacity: .45; border-style: dashed; }
.mask-zr-z:disabled { cursor: default; opacity: .3; }
.mask-zr-fuss { margin-top: 6px; }
.mask-zr-fuss select { max-width: 200px; }
.mask-zr-programm { min-width: 320px; }
.mask-zr-raster { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.mask-zr-felder { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 4px; }
.mask-zr-feld { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; border: none; background: transparent; padding: 3px 6px; border-radius: 3px; cursor: pointer; font: inherit; color: inherit; }
.mask-zr-feld:hover { background: rgba(15, 118, 110, .07); }
.mask-zr-feld.an { background: #0f766e; color: #fff; }
.mask-zr-feld.an .mask-g-zahl { background: rgba(255, 255, 255, .25); color: #fff; }
.mask-zr-rechts h4 { margin: 0 0 8px; font-weight: 600; }
.mask-zr-rechts .mask-zr { max-width: 640px; }
.mask-zr-erklaerung { margin-top: 10px; max-width: 640px; }
.mask-zr-titel { font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mud-palette-text-secondary); margin: 6px 6px 2px; }

/* ab 3.99.320 (Rene 18.11.2026 10:18 „Programm suchen ist komplett in einer anderen Schriftgröße“): Suchfeld so klein und kantig wie die Felder im Programm */
.mask-auswahl.mud-input-control { margin: 0 !important; }
.mask-auswahl .mud-input, .mask-auswahl .mud-input input { font-size: .8rem !important; }
.mask-auswahl .mud-input.mud-input-outlined { border-radius: 0 !important; }
.mask-auswahl .mud-input.mud-input-outlined .mud-input-outlined-border { border-radius: 0 !important; border-color: var(--th-feldrand, #c9d4e2); }
.mask-auswahl .mud-input-slot.mud-input-root-outlined { padding: 4px 8px !important; height: calc(26px * var(--s, 1)); box-sizing: border-box; }
.mask-auswahl .mud-input-label-outlined { font-size: .8rem !important; }
.mask-auswahl .mud-input-label-outlined.mud-input-label-inputcontrol { transform: translate(8px, 5px) scale(1) !important; }
.mask-auswahl .mud-shrink ~ .mud-input-label-outlined, .mask-auswahl .mud-input-label-outlined.mud-shrink, .mask-auswahl :focus-within .mud-input-label-outlined { transform: translate(10px, -7px) scale(.85) !important; }
.mask-auswahl .mud-input-adornment .mud-icon-button { padding: 2px !important; }
.mask-auswahl .mud-input-adornment .mud-icon-root { font-size: 1.05rem !important; }
.mask-leiste .mask-eingabe { height: calc(26px * var(--s, 1)); border-radius: 0; font-size: .8rem; padding: 2px 8px; border-color: var(--th-feldrand, #c9d4e2); box-sizing: border-box; }

/* ab 3.99.371 (Rene 22.11.2026 12:35, Maskendesigner 2 – Variante A): links Bausteine, Mitte Maske, rechts Eigenschaften */
.md2 { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.md2-kopf { display: flex; align-items: center; gap: 12px; }
.md2-wahl { min-width: 380px; }
.md2-maske { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.md2-maske > .ansicht { flex: 1 1 auto; min-height: 0; }
.ansicht-formular.mask-gestalten.md2-formular { grid-template-columns: 230px minmax(0, 1fr) 330px; }
.md2-formular > .mask-g-maske { grid-column: 2; }
.md2-formular > .mask-g-panel { grid-column: 3; }
.mask-g-links { grid-column: 1; grid-row: 2; overflow: auto; min-height: 0; border-right: 1px solid var(--mud-palette-lines-default, #d6dde5); background: var(--mud-palette-surface, #fff); padding: 8px 10px; display: flex; flex-direction: column; gap: 10px; font-size: .88em; }
.mask-g-bausteine { display: flex; flex-direction: column; gap: 4px; }
.mask-g-baustein { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 5px 8px; border: 1px dashed #0f7a6c; background: #eef6f4; color: #0b5e53; font: inherit; cursor: pointer; text-align: left; }
.mask-g-baustein:hover { background: #d9efeb; }

/* modulstil.Medien/stil.css */
/* ab 3.99.388 (Rene 25.11.2026): Modul „Artikelmedien“ – Register „Bilder“ im Artikel, Bildplan und Mediathek.
   Nur Klassen mit Präfix „md-“. Eckig, Grün #0f7a6c, kein Blau; Linien und Flächen aus dem Farbschema (--th-*), wo es sie gibt. */
.md { --md-gruen: var(--mf-gruen, #0f7a6c); --md-gruen-dunkel: #0a5a50; --md-gruen-hell: #f1f8f6; --md-gruen-wahl: #dff0ec;
      --md-linie: var(--th-rahmen, #c9d2d9); --md-zart: #4a5761; --md-flaeche: #dfe7ea; --md-gelb: #8a5a00; --md-gelb-rand: #b06a00; --md-gelb-hell: #fff8ea;
      font-size: .8rem; color: var(--th-text, #1f2a33); }
.md-artikel { padding: 10px 4px 16px; }
.md-mediathek, .md-bildplan { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.md-hinweis { padding: 14px 12px; color: var(--md-zart); }
.md-keine { padding: 8px 2px; color: var(--md-zart); }
.md-klein { font-size: .74rem; color: var(--md-zart); line-height: 1.4; }
.md-fehler { margin-top: 8px; padding: 6px 9px; border-left: 4px solid #b3261e; background: #fdecea; color: #7a1a14; }
.md-mono { font-family: ui-monospace, Consolas, monospace; font-size: .74rem; }
.md-fett { font-weight: 600; }
.md-rechts { text-align: right; white-space: nowrap; }

/* Knöpfe: eckig, weiß mit Rand; .md-voll = grün gefüllt */
.md .md-knopf { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 10px; border: 1px solid #b9c4cc; border-radius: 0; background: #fff; color: #1f2a33;
                font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: none; }
.md .md-knopf:hover:not(:disabled) { border-color: var(--md-gruen); color: var(--md-gruen-dunkel); background: var(--md-gruen-hell); }
.md .md-knopf:focus-visible, .md .md-link:focus-visible, .md .md-art:focus-visible, .md .md-kachel:focus-visible, .md .md-symbol:focus-visible, .md .md-stern:focus-visible { outline: 2px solid var(--md-gruen-dunkel); outline-offset: 1px; }
.md .md-knopf:disabled { color: #9aa5ad; border-color: #d5dce1; background: #f6f8f9; cursor: default; }
.md .md-knopf.md-voll { background: var(--md-gruen); border-color: var(--md-gruen); color: #fff; }
.md .md-knopf.md-voll:hover:not(:disabled) { background: var(--md-gruen-dunkel); border-color: var(--md-gruen-dunkel); color: #fff; }
.md .md-knopf.md-voll:disabled { background: #a9c9c3; border-color: #a9c9c3; color: #fff; }
.md .md-knopf.md-gefahr:hover:not(:disabled) { border-color: #b3261e; color: #7a1a14; background: #fdecea; }
.md .md-knopf .mud-icon-root { font-size: 16px; }
.md .md-link { border: none; background: none; padding: 0; font: inherit; color: var(--md-gruen); text-decoration: underline; cursor: pointer; }
.md .md-link:hover:not(:disabled) { color: var(--md-gruen-dunkel); }
.md .md-link:disabled { color: #9aa5ad; cursor: default; }
/* ab 3.99.398 (Rene 26.11.2026 14:42 „die pfeile rechts sind zu groß! … Schriften und Symbole immer gleich groß“):
   Symbolknöpfe tragen die Schriftgröße der Zeile, nicht die Vorgabe von MudBlazor (20 px). */
.md .md-symbol { border: 1px solid transparent; background: none; padding: 1px; cursor: pointer; color: var(--md-zart); line-height: 0; }
.md .md-symbol .mud-icon-root { font-size: 1em; width: 1em; height: 1em; }
.md .md-symbol:hover:not(:disabled) { border-color: var(--md-gruen); color: var(--md-gruen-dunkel); }
.md .md-symbol:disabled { color: #c5cdd3; cursor: default; }

.md .md-eingabe { box-sizing: border-box; width: 100%; min-height: 24px; padding: 3px 7px; border: 1px solid var(--th-feldrand, #c9d2d9); border-radius: 0; background: var(--th-feld, #fff); color: inherit; font: inherit; }
.md .md-eingabe:focus { outline: none; border-color: var(--md-gruen); box-shadow: inset 0 0 0 1px var(--md-gruen); }
.md .md-eingabe.md-pflichtfeld { background: #fffbd6; }
.md .md-eingabe.md-zahl { width: 84px; }
.md .md-eingabe.md-suche { width: 240px; }
.md-block { display: block; margin-bottom: 4px; color: var(--md-zart); }

/* Leiste über den Kacheln */
.md-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-mediathek > .md-leiste { padding: 8px 12px; border-bottom: 1px solid var(--md-linie); }
.md-zaehler { margin-left: auto; color: var(--md-zart); }
.md-zaehler strong.md-offen { color: var(--md-gelb); }
.md-zaehler strong.md-ok { color: var(--md-gruen-dunkel); }
.md-arbeitet { color: var(--md-gruen-dunkel); font-style: italic; }
.md-filterfeld { min-width: 170px; }
.md-haken-einzel { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.md-artwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-artfeld { min-width: 230px; }
.md-arthinweis { color: var(--md-zart); }

.md-spalten { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.md-haupt { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.md-mt-spalten, .md-bp-spalten { flex: 1; min-height: 0; padding: 12px 12px 16px; overflow: auto; align-content: flex-start; }
/* ab 3.99.396 (Rene 26.11.2026 08:27): ruhig und hellgrau – grün erst, wenn wirklich etwas gezogen wird; Abstand zur Zeile „Gilt für“ darüber */
.md-ablage { margin-top: 12px; border: 2px dashed #cbd5e1; background: #fff; padding: 9px 13px; color: #64748b; line-height: 1.45; }
.md-zieht .md-ablage { border-color: var(--md-gruen); background: var(--md-gruen-wahl); color: var(--md-gruen-dunkel); }
.md-abschnitt { font-weight: 600; color: var(--md-gruen); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; }

/* Kacheln */
.md-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.md-weitere { min-height: 60px; }
.md-mt-kacheln { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.md-kachel { border: 1px solid var(--md-linie); background: #fff; cursor: pointer; display: flex; flex-direction: column; min-width: 0; position: relative; }
.md-kachel:hover { border-color: var(--md-gruen); }
.md-kachel.md-haupt-kachel { border: 2px solid var(--md-gruen); }
.md-kachel.md-gewaehlt { box-shadow: 0 0 0 2px var(--md-gruen); border-color: var(--md-gruen); }
.md-kachel.md-ziel-aktiv { box-shadow: 0 0 0 3px var(--md-gruen); background: var(--md-gruen-wahl); }
.md-kachel.md-geerbt { background: #f6f8f9; }
.md-bild { height: 150px; background: var(--md-flaeche); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.md-bild img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; }
.md-klein-kachel .md-bild { height: 96px; }
.md-mt-kacheln .md-klein-kachel .md-bild { height: 110px; }
.md-kachel-text { padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-kachel-titel { font-weight: 600; }
.md-kachel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-kachel-info { color: var(--md-zart); font-size: .74rem; overflow-wrap: anywhere; }
.md-kachel-warnung { color: var(--md-gelb); font-size: .74rem; font-weight: 500; }
.md-marke { margin-left: 4px; background: var(--md-gruen); color: #fff; font-weight: 500; font-size: .68rem; padding: 1px 6px; white-space: nowrap; }
.md-fehlt { margin-left: 4px; color: var(--md-gelb); font-weight: 500; font-size: .68rem; }
.md-frei { margin-left: 4px; color: var(--md-zart); font-weight: 400; font-size: .68rem; }
.md-kachel.md-leer { border: 2px dashed #b9c4cc; background: #fafbfc; }
.md-kachel.md-leer.md-pflicht { border-color: var(--md-gelb-rand); background: var(--md-gelb-hell); }
.md-leerbild { background: none; flex-direction: column; gap: 6px; color: var(--md-zart); text-align: center; padding: 0 10px; }
.md-pflicht .md-leerbild { color: var(--md-gelb); }
.md-plus { font-size: 26px; line-height: 1; }
.md .md-stern { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 1px solid #b9c4cc; background: rgba(255, 255, 255, .92); color: var(--md-zart); cursor: pointer; padding: 0; line-height: 0;
                display: inline-flex; align-items: center; justify-content: center; }
.md .md-stern:hover:not(:disabled) { border-color: var(--md-gruen); color: var(--md-gruen-dunkel); }
.md .md-stern.md-an { background: var(--md-gruen); border-color: var(--md-gruen); color: #fff; }
.md .md-stern .mud-icon-root { font-size: 17px; }
.md-dok { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--md-zart); }
.md-wahlmarke { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; background: var(--md-gruen); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* Detailfeld rechts */
.md-detail { flex: 1 1 300px; min-width: 0; max-width: 420px; border: 1px solid var(--md-linie); background: #fff; align-self: flex-start; }
.md-detail-kopf { background: var(--md-gruen); color: #fff; padding: 7px 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-detail-inhalt { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.md-vorschau { display: flex; align-items: center; justify-content: center; height: 190px; background: var(--md-flaeche); }
.md-vorschau img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.md-werkzeuge { display: flex; flex-wrap: wrap; gap: 6px; }
.md-werkzeuge.md-unten { border-top: 1px solid var(--md-linie); padding-top: 10px; }
.md-felder { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.md-felder.md-breitfelder { grid-template-columns: 170px minmax(0, 1fr); margin-bottom: 8px; }
.md-feldname { color: var(--md-zart); }
.md-wert { overflow-wrap: anywhere; line-height: 1.4; }
.md-haken { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.md-haken label { display: inline-flex; align-items: flex-start; gap: 5px; cursor: pointer; text-align: left; line-height: 1.35; }
.md-haken label input { flex: none; margin-top: 2px; }
.md-geerbt-hinweis { border-left: 4px solid var(--md-gruen); background: var(--md-gruen-hell); color: var(--md-gruen-dunkel); padding: 8px 10px; line-height: 1.45; }

/* Tabellen (Bildplan, Verwendungsnachweis) */
.md-tabelle-rahmen { overflow-x: auto; }
.md-tabelle { border-collapse: collapse; width: 100%; }
.md-tabelle th, .md-tabelle td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #dbe3ea; vertical-align: top; }
.md-tabelle th { font-weight: 500; color: var(--md-zart); font-size: .74rem; }
.md-tabelle.md-plan { min-width: 760px; }
.md-tabelle.md-plan tbody tr { cursor: pointer; }
.md-tabelle.md-plan tbody tr:hover td { background: var(--md-gruen-hell); }
.md-tabelle.md-plan tr.md-zieh td { opacity: .5; }
.md-tabelle td.md-rechts { text-align: right; }
.md-tabelle td.md-auswahlzelle { min-width: 240px; padding-top: 3px; padding-bottom: 3px; }
.md-tabelle.md-zuordnung { max-width: 760px; }
.md-tabelle.md-nachweis td { padding: 5px 6px; }
.md-pfeile { white-space: nowrap; }
.md-info { background: var(--md-gruen-hell); border-left: 4px solid var(--md-gruen); padding: 9px 12px; color: var(--md-gruen-dunkel); line-height: 1.45; }
.md-titelzeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.md-titel { font-weight: 600; font-size: .95rem; }
.md-rechts-knoepfe { margin-left: auto; display: inline-flex; gap: 6px; }

/* Produktarten links */
.md-arten { flex: 1 1 220px; max-width: 300px; min-width: 0; border: 1px solid var(--md-linie); background: #fff; align-self: flex-start; display: flex; flex-direction: column; }
.md-arten-kopf { background: #e6ebee; padding: 7px 10px; font-weight: 600; }
.md .md-art { display: flex; align-items: center; justify-content: flex-start; gap: 5px; flex-wrap: wrap; width: 100%; text-align: left; padding: 8px 10px; border: none; border-bottom: 1px solid #dbe3ea; border-left: 4px solid transparent; border-radius: 0;
              background: #fff; font: inherit; color: inherit; cursor: pointer; }
.md .md-art span { color: var(--md-zart); font-weight: 400; }
.md .md-art:hover:not(:disabled) { background: var(--md-gruen-hell); }
.md .md-art.md-gewaehlt { background: var(--md-gruen-wahl); border-left-color: var(--md-gruen); font-weight: 600; }
.md .md-art.md-aktion { color: var(--md-gruen-dunkel); }
.md .md-art.md-aktion:disabled { color: #9aa5ad; cursor: default; }
.md .md-art .mud-icon-root { font-size: 16px; }

/* Dialoge: grüner Kopf, weiße Schrift. Ein Dialog gehört zu seinem Fenster: Der Schleier liegt über dem Fensterinhalt (.fenster-inhalt ist der
   nächste positionierte Vorfahre), andere Fenster bleiben bedienbar und die dynamische Hilfe (F1) erreicht auch die Felder im Dialog.
   Dafür darf zwischen Dialog und Fensterinhalt nichts positioniert sein – im Artikel ist das der Rahmen der Reiter-Inhalte. */
.mud-tabs-panels:has(> .mud-tab-panel > .reiter-ansicht > .md-artikel) { position: static; }
.md-dialog-hinter { position: absolute; inset: 0; z-index: 900; background: rgba(20, 30, 36, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.md-dialog { background: #fff; color: #1f2a33; width: min(520px, 100%); max-height: 100%; display: flex; flex-direction: column; border: 1px solid var(--md-gruen-dunkel); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.md-dialog.md-breit { width: min(980px, 100%); height: min(700px, 100%); }
.md-dialog.md-schnitt { width: auto; max-width: 100%; }
.md-dialog-kopf { background: var(--md-gruen); color: #fff; padding: 8px 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.md-dialog-inhalt { padding: 12px; overflow: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.md-dialog-inhalt.md-ohne-rand { padding: 0; overflow: hidden; }
.md-dialog-fuss { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--md-linie); background: #f6f8f9; flex: none; }
.md-dialog-fuss .md-links, .md-dialog-fuss .md-klein { margin-right: auto; }
.md-wahl .md-mt-spalten { padding: 12px; }

/* Zuschneiden */
.md-schnitt-flaeche { position: relative; background: var(--md-flaeche); cursor: crosshair; touch-action: none; user-select: none; flex: none; align-self: center; overflow: hidden; }
.md-schnitt-flaeche img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.md-schnitt-rahmen { position: absolute; border: 2px solid #fff; outline: 1px solid var(--md-gruen-dunkel); box-shadow: 0 0 0 9999px rgba(20, 30, 36, .5); pointer-events: none; }
.md-schnitt-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.md-schnitt-zeile label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

@media (max-width: 720px) {
    .md-detail, .md-arten { max-width: none; }
    .md-kacheln { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .md .md-eingabe.md-suche { width: 100%; }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------
   ab 3.99.388 (Rene 25.11.2026, Etappe 2 – Entwürfe „Import aus Ordner – Dateinamen erklären“ und „Zuordnungstisch“):
   Assistent „Medien importieren“ (md-import, md-i-…) und Zuordnungstisch (md-tisch, md-t-…). */
.md-import, .md-tisch { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.md-i-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 10px 12px 0; border-bottom: 2px solid var(--md-gruen); flex: none; }
.md-i-schritte { display: flex; flex-wrap: wrap; gap: 2px; }
.md .md-i-schritt { padding: 6px 12px; border: none; border-radius: 0; background: #e6ebee; color: #1f2a33; font: inherit; cursor: pointer; white-space: nowrap; }
.md .md-i-schritt:hover:not(:disabled) { background: var(--md-gruen-wahl); }
.md .md-i-schritt.md-an { background: var(--md-gruen); color: #fff; font-weight: 600; }
.md .md-i-schritt:disabled { color: #9aa5ad; cursor: default; }
.md .md-i-schritt:focus-visible, .md .md-i-chip:focus-visible, .md .md-i-filterknopf:focus-visible, .md .md-t-vorschlag:focus-visible { outline: 2px solid var(--md-gruen-dunkel); outline-offset: 1px; }
.md-i-kopf-rechts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 5px; }
.md-i-vorlagewahl { min-width: 240px; }
.md-i-quelle { color: var(--md-zart); }
.md-i-spalten { flex: 1; min-height: 0; padding: 12px 12px 18px; overflow: auto; align-content: flex-start; }
.md-i-ablage { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; }
.md-i-balken { height: 8px; background: #dbe3ea; margin-top: 6px; }
.md-i-balken span { display: block; height: 100%; background: var(--md-gruen); transition: width .25s; }
.md-i-balken.md-gross { height: 14px; }
.md-i-warnung, .md-warnung { border-left: 4px solid var(--md-gelb-rand); background: var(--md-gelb-hell); color: var(--md-gelb); padding: 8px 12px; line-height: 1.45; }
.md-i-beispiel { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.md-i-gut { color: var(--md-gruen-dunkel); }
.md-i-gelb { color: var(--md-gelb); }

/* Kacheln „Das ist …“ */
.md-i-teile { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.md-i-teil { border: 1px solid var(--md-linie); background: #fff; min-width: 0; }
.md-i-teil.md-an { border: 2px solid var(--md-gruen); }
.md-i-teil-wert { background: #e6ebee; padding: 8px 10px; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.md-i-teil.md-an .md-i-teil-wert { background: #cfe8e2; color: var(--md-gruen-dunkel); }
.md-i-teil-text { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }

/* Blöcke A–D */
.md-i-block { border: 1px solid var(--md-linie); background: #fff; }
.md-i-block.md-stark { border: 2px solid var(--md-gruen); }
.md-i-block-kopf { background: #e6ebee; padding: 7px 10px; font-weight: 600; }
.md-i-block-kopf.md-voll { background: var(--md-gruen); color: #fff; }
.md-i-block-inhalt { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.md-i-kette { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md .md-i-chip { background: #e6ebee; border: 1px solid #9aa7b1; border-radius: 0; padding: 6px 9px; font: inherit; font-family: ui-monospace, Consolas, monospace; color: #1f2a33; cursor: grab; }
.md .md-i-chip.md-an { background: #cfe8e2; border-color: var(--md-gruen); color: var(--md-gruen-dunkel); font-weight: 600; }
.md .md-i-chip.md-gewaehlt { box-shadow: 0 0 0 2px var(--md-gruen); }
.md .md-i-chip.md-fest { cursor: default; }
.md-i-trenner { border: 1px dashed #9aa7b1; padding: 6px 9px; font-family: ui-monospace, Consolas, monospace; white-space: pre; }
.md-i-einzel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #f4f7f8; padding: 8px 10px; }
.md-i-inline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.md-i-feld { min-width: 230px; }
.md-i-feld-breit { min-width: 320px; }
.md .md-eingabe.md-i-kurz { width: 120px; }
.md .md-eingabe.md-i-zahl { width: 62px; }
.md .md-eingabe.md-i-nr { width: 110px; }
.md-i-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; align-items: start; }
.md-i-raster > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-i-wahl { display: flex; align-items: center; gap: 7px; min-height: 26px; cursor: pointer; }
.md-i-wahl.md-i-aus, .md-i-aus { color: #8b979f; }
.md-i-muster { overflow-wrap: anywhere; }
.md-i-raenge td { vertical-align: middle; }
.md-i-raenge tr.md-i-aus td { color: #8b979f; }
.md-i-haken { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 16px; }
.md-i-haken label { display: block; position: relative; padding-left: 24px; line-height: 28px; cursor: pointer; }
.md-i-haken label > input[type=checkbox] { position: absolute; left: 0; top: 7px; margin: 0; }
.md-i-probe { background: #f4f7f8; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.md .md-eingabe.md-i-probe-feld { width: min(360px, 100%); }
.md-i-schrittliste { margin: 0; padding-left: 22px; color: var(--md-zart); line-height: 1.5; font-size: .74rem; }
.md-i-zwei { display: flex; flex-wrap: wrap; gap: 16px; }
.md-i-halb { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.md-i-halb.md-i-breit { flex: 3 1 520px; }
.md-i-nummern td.md-auswahlzelle { min-width: 180px; }
.md-haken-einzel.md-t-umbruch { white-space: normal; align-items: flex-start; }
.md-i-untertitel { font-weight: 600; }
.md-i-liste { display: flex; flex-direction: column; gap: 2px; }
.md-i-artzeile { margin-bottom: 2px; }
.md-i-nummern td { vertical-align: middle; }
.md-i-zeile-an td { background: var(--md-gruen-hell); }
.md .md-knopf.md-i-dateiknopf { position: relative; overflow: hidden; }
.md .md-knopf.md-i-dateiknopf input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.md .md-knopf.md-i-dateiknopf.md-i-aus { color: #9aa5ad; border-color: #d5dce1; background: #f6f8f9; cursor: default; }

/* „So würde es ausgehen“ */
.md-i-summen { position: sticky; top: 0; }
.md-i-summe { display: flex; justify-content: space-between; gap: 10px; }
.md-i-summe.md-i-zart { color: var(--md-zart); }
.md-i-summe.md-i-linie { border-top: 1px solid #dbe3ea; padding-top: 6px; }
.md-i-summe.md-i-gruen { background: #cfe8e2; color: var(--md-gruen-dunkel); padding: 6px 8px; }
.md-i-summe.md-i-amber { background: #fff1d6; color: var(--md-gelb); padding: 6px 8px; }
.md .md-knopf.md-i-gross { min-height: 38px; justify-content: center; padding: 8px 14px; }

/* Testlauf, Protokoll, Läufe */
.md .md-i-filterknopf { padding: 6px 10px; border: none; border-radius: 0; background: #e6ebee; color: #1f2a33; font: inherit; cursor: pointer; }
.md .md-i-filterknopf.md-an { background: var(--md-gruen); color: #fff; }
.md-i-status { padding: 1px 6px; background: #e6ebee; white-space: nowrap; }
.md-i-status.md-i-gruen { background: #cfe8e2; color: var(--md-gruen-dunkel); }
.md-i-status.md-i-amber { background: #fff1d6; color: var(--md-gelb); }
.md-i-test td { vertical-align: middle; }
.md-i-ergebnis { display: flex; flex-direction: column; gap: 8px; }
.md-i-laeufe { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; border-top: 1px solid var(--md-linie); padding-top: 12px; }
.md-i-lauftabelle tr.md-i-aus td { color: #8b979f; }
.md-i-dateiliste { border: 1px solid var(--md-linie); overflow: auto; max-height: 380px; }
.md-i-erkannt .md-link { margin-left: 6px; }

/* Zuordnungstisch */
.md-t-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; border-bottom: 1px solid var(--md-linie); flex: none; }
.md-t-laufwahl { min-width: 340px; }
.md-t-kacheln { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.md-t-kachel.md-gewaehlt { border: 2px solid var(--md-gruen); background: var(--md-gruen-hell); box-shadow: none; }
.md-t-kachel .md-kachel-name { font-family: ui-monospace, Consolas, monospace; font-size: .74rem; white-space: normal; word-break: break-all; }
.md-t-kachel .md-kachel-warnung { font-weight: 400; }
.md-t-rechts { flex: 1 1 380px; max-width: 460px; }
.md .md-t-vorschlag { display: block; width: 100%; text-align: left; border: 1px solid var(--md-linie); border-radius: 0; background: #fff; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; line-height: 1.4; }
.md .md-t-vorschlag:hover { border-color: var(--md-gruen); }
.md .md-t-vorschlag.md-gewaehlt { border: 2px solid var(--md-gruen); background: var(--md-gruen-hell); padding: 7px 9px; }
.md .md-t-vorschlag.md-ziel-aktiv { background: var(--md-gruen-wahl); }
.md-t-vorschlaege { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: auto; }
.md-t-feld { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 720px) { .md-t-rechts { max-width: none; } .md-i-kopf-rechts { margin-left: 0; } }
.md-i-test td:first-child { word-break: break-all; min-width: 150px; max-width: 250px; }
.md-i-test td:nth-child(3) { min-width: 190px; }
.md-i-test td:nth-child(4) { min-width: 120px; }
.md-i-test td:nth-child(5) { min-width: 150px; }

/* ab 3.99.395 (Rene 26.11.2026): Hinweis „kommt von der Hauptgruppe“ an der Produktart der Artikelgruppe */
.md-gruppenart { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-gruppenart > :first-child { flex: 0 1 300px; min-width: 120px; }
.md-gruppenart-hinweis { display: inline-flex; align-items: center; gap: 3px; flex: 1 1 auto; min-width: 0; color: var(--mf-gruen, #0f7a6c); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-gruppenart-hinweis .mud-icon-root { font-size: 1rem; }

/* ab 3.99.395 (Rene 26.11.2026, Varianten): Auswahl „Gilt für“ im Register „Bilder“ des Hauptartikels – Ganzer Artikel / Merkmalswerte */
.md-ebenen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.md-ebenen > .md-feldname { margin-right: 4px; }
.md-ebene { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid var(--th-feldrand, #c9d3dc); border-radius: 0; background: #fff; color: inherit; font: inherit; font-size: .76rem; cursor: pointer; white-space: nowrap; }
.md-ebene:hover { border-color: var(--md-gruen); }
.md-ebene b { min-width: 16px; padding: 0 4px; background: #e6ebef; color: #334155; font-weight: 600; font-size: .7rem; line-height: 16px; text-align: center; }
.md-ebene.md-an { border-color: var(--md-gruen); background: var(--md-gruen-hell); color: var(--md-gruen-dunkel); font-weight: 600; }
.md-ebene.md-an b { background: var(--md-gruen); color: #fff; }
.md-ebene-farbe { display: inline-block; width: 11px; height: 11px; border: 1px solid #94a3b8; flex: none; }

/* ab 3.99.397 (Rene 26.11.2026 07:44): Reiter „Bildplan & Dokumentplan“ in der Maske der Artikelgruppen (GruppePlan) */
.md-gruppenplan { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 14px; }
.md-gruppenplan .md-artwahl { gap: 10px; }
.md-gruppenplan .md-plaetze { display: flex; flex-direction: column; gap: 12px; }
.md-plaetze { display: flex; flex-direction: column; gap: 12px; }

/* ab 3.99.397: Warnstreifen „gilt auch für n weitere Artikelgruppen“ mit Aufzählung, Hinweis ohne Produktart */
.md-warnung-kopf { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.md-warnung-liste { margin: 4px 0 6px; padding-left: 26px; }
.md-warnung-liste li { line-height: 1.4; }
.md-ohneart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--md-linie); padding: 10px 12px; color: var(--md-zart); }
.md-ohneart > div { flex: 1 1 320px; min-width: 240px; line-height: 1.45; }
.md-nur-lesen .md-knopf, .md-nur-lesen .md-symbol { pointer-events: none; }

/* modulstil.Menuedesigner/stil.css */
/* ab 3.99.276: Menüdesigner – nur Klassen mit Präfix „mnd-“ */
.mnd-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mnd-leiste { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mnd-hinweis { margin-left: 8px; }
.mnd-inhalt { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; padding: 12px; }
.mnd-baum { overflow: auto; background: var(--mf-nacht, #16212d); color: #e2e8f0; padding: 8px 0; font-size: .82rem; user-select: none; }
.mnd-gruppe { display: flex; align-items: center; gap: 8px; padding: 5px 10px; margin-top: 4px; cursor: pointer; border-top: 1px solid rgba(255,255,255,.08); }
.mnd-gruppe .mnd-name { font-weight: 600; flex: 1; }
.mnd-eintrag { display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 30px; cursor: pointer; }
.mnd-eintrag.eingerueckt { padding-left: 46px; }
.mnd-eintrag .mnd-name { flex: 1; }
.mnd-unter { padding: 3px 10px 1px 30px; color: #94a3b8; font-size: .78rem; }
.mnd-linie { height: 1px; margin: 4px 14px 4px 30px; background: rgba(255,255,255,.22); }
.mnd-griff { opacity: .35; cursor: grab; font-size: .75rem; }
.mnd-gruppe:hover, .mnd-eintrag:hover { background: rgba(255,255,255,.07); }
.mnd-gruppe.gewaehlt, .mnd-eintrag.gewaehlt { background: var(--mud-palette-primary, #0f766e); color: #fff; }
.mnd-gruppe.aus .mnd-name, .mnd-eintrag.aus .mnd-name { opacity: .45; text-decoration: line-through; }
.mnd-gruppe.ziel, .mnd-eintrag.ziel { box-shadow: inset 0 2px 0 #4fe0cf; }
.mnd-anzahl { font-size: .7rem; opacity: .5; }
.mnd-marke { font-size: .68rem; padding: 0 5px; background: rgba(255,255,255,.12); }
.mnd-marke.umbenannt { background: none; opacity: .7; }
.mnd-eigenschaften { overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 12px; font-size: .85rem; }
.mnd-titel { font-weight: 600; font-size: .95rem; }
.mnd-knoepfe { display: flex; gap: 6px; }
.mnd-feld { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 8px; }
.mnd-feld > span { padding-top: 5px; color: var(--th-text2, #5f6b78); }
.mnd-feld input, .mnd-feld select { height: 30px; border: 1px solid var(--th-feldrand, #cfd8e3); padding: 0 8px; font: inherit; background: var(--th-feld, #fff); max-width: 420px; }
.mnd-symbole { display: flex; flex-wrap: wrap; gap: 4px; max-width: 460px; }
.mnd-symbol { all: unset; box-sizing: border-box; width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--th-feldrand, #cfd8e3); cursor: pointer; }
.mnd-symbol:hover { background: #eef3f7; }
.mnd-symbol.gewaehlt { border: 2px solid var(--mud-palette-primary, #0f766e); background: #e3f2ee; }
.mnd-symbol.standard { width: auto; padding: 0 8px; font-size: .75rem; }
.mnd-haken { display: flex; align-items: center; gap: 8px; }
.mnd-info { margin-top: 6px; }
.mnd-leer { padding: 20px 0; }

/* modulstil.Office/stil.css */
/* Modul Office – ab 3.99.319: Office-Explorer, Präfix „ox-“ */
.ox-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ox-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--ox-baum, 250px) minmax(0, 1fr) var(--ox-vorschau, 250px); border-top: 1px solid var(--mf-linie, #d5dbe1); }
.ox-baum { overflow: auto; border-right: 1px solid var(--mf-linie, #d5dbe1); padding: 4px 0 10px; font-size: .78rem; }
.ox-gruppe { display: flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; color: var(--mf-gruen, #0f7a6c); padding: 8px 10px 2px; letter-spacing: .02em; }
.ox-plus { margin-left: auto; border: 0; background: none; padding: 0 2px; cursor: pointer; color: var(--mf-gruen, #0f7a6c); }
.ox-plus .mud-icon-root { font-size: 1rem; }
.ox-knoten { display: flex; align-items: center; gap: 6px; padding: 2px 10px; line-height: 22px; cursor: pointer; user-select: none; }
.ox-knoten > span:not(.ox-ordner):not(.ox-auf) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-knoten:hover { background: #eef6f4; }
.ox-knoten.an { background: var(--mf-gruen, #0f7a6c); color: #fff; }
.ox-knoten.ziel { outline: 2px dashed var(--mf-gruen, #0f7a6c); outline-offset: -2px; background: #e1f5ee; }
.ox-knoten i { font-style: normal; font-size: .7rem; color: #5f6b77; background: #eef1f4; padding: 0 6px; line-height: 16px; }
.ox-knoten.an i { background: #085041; color: #fff; }
.ox-knoten.auto .mud-icon-root { font-size: 1.05rem; color: #5f5e5a; width: 20px; }
.ox-knoten.auto.an .mud-icon-root { color: #fff; }
.ox-auf { width: 14px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; display: inline-flex; }
.ox-auf .mud-icon-root { font-size: .95rem; }
/* ab 3.99.323 (Rene 18.11.2026 13:04 „Ordnersymbole kleiner, Schloss dezenter“ – wie im Windows-Explorer): 16 px, Zusatzzeichen klein in der Ecke */
.ox-ordner { position: relative; width: 16px; height: 14px; flex: none; display: inline-block; margin-right: 2px; }
.ox-ordner svg { width: 16px; height: 14px; display: block; }
.ox-zeichen { position: absolute; right: -3px; bottom: -2px; width: 8px; height: 8px; display: flex; align-items: center; justify-content: center; background: transparent; }
.ox-zeichen .mud-icon-root { font-size: 8px; width: 8px; height: 8px; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.ox-leer { font-size: .74rem; color: #64748b; padding: 4px 12px; }
.ox-leer.gross { padding: 24px; text-align: center; }
.ox-liste { overflow: auto; min-width: 0; }
.ox-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .78rem; }
.ox-tabelle th { position: sticky; top: 0; background: var(--mf-leiste, #f3f5f7); text-align: left; font-weight: 600; font-size: .7rem; color: var(--mf-gruen, #0f7a6c); padding: 5px 8px; border-bottom: 1px solid #d5dbe1; }
.ox-tabelle td { padding: 4px 8px; border-bottom: 1px solid #eef1f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-tabelle tbody tr { cursor: default; }
.ox-tabelle tbody tr:hover td { background: #f3faf8; }
.ox-tabelle tbody tr.an td { background: #e1f5ee; }
.ox-art { color: #5f6b77; }
.ox-symbol { position: relative; display: inline-block; width: 20px; margin-right: 6px; vertical-align: -4px; }
.ox-symbol > .mud-icon-root { font-size: 1.15rem; }
.ox-symbol .ox-zeichen { right: -3px; bottom: -3px; }
.ox-farbe-text { color: var(--mf-gruen, #0f7a6c) !important; }
.ox-farbe-diagramm { color: #534ab7 !important; }
.ox-farbe-tabelle { color: #0f7a6c !important; }
.ox-farbe-dms { color: #993c1d !important; }
.ox-st { font-size: .7rem; padding: 0 6px; }
.ox-st.entwurf { background: #faeeda; color: #633806; }
.ox-st.aus { background: #e1f5ee; color: #085041; }
.ox-st.storno { background: #fcebeb; color: #791f1f; }
.ox-name-eingabe { width: calc(100% - 30px); font-size: .78rem; padding: 1px 4px; border: 1px solid var(--mf-gruen, #0f7a6c); }
.ox-knoten .ox-name-eingabe { width: auto; flex: 1; color: #14232b; }
.ox-vorschau { border-left: 1px solid var(--mf-linie, #d5dbe1); padding: 4px 10px 10px; overflow: auto; font-size: .76rem; }
.ox-vorschau .ox-gruppe { padding-left: 0; }
.ox-bild { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid #e3e8ed; background: #fff; margin: 4px 0 8px; }
.ox-felder { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 4px 8px; }
.ox-felder > span { color: #64748b; }
.ox-felder > div { overflow-wrap: anywhere; }
.ox-vorschau-knoepfe { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.ox-fuss { display: flex; gap: 14px; padding: 4px 10px; font-size: .7rem; color: #64748b; border-top: 1px solid var(--mf-linie, #d5dbe1); }
.ox-suche { height: 28px; font-size: .78rem; padding: 2px 8px; border: 1px solid #c9d1d9; width: 200px; }
.ox-suche.breit { width: 100%; margin-bottom: 6px; }
.ox-neu-rahmen { position: relative; display: inline-flex; }
.ox-menue-hinter { position: fixed; inset: 0; z-index: 1400; }
.ox-menue { position: fixed; z-index: 1401; min-width: 240px; background: #fff; border: 1px solid #b8c2cc; box-shadow: 0 6px 18px rgba(20, 40, 60, .18); padding: 3px 0; font-size: .78rem; }
.ox-neu-menue { position: absolute; top: calc(100% + 2px); left: 0; }
.ox-menue button, .ox-untermenue button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; border: 0; background: none; padding: 5px 12px; text-align: left; cursor: pointer; font-size: .78rem; color: #14232b; }
.ox-menue button:hover:not(:disabled), .ox-untermenue button:hover { background: #e1f5ee; }
.ox-menue button:disabled { color: #9aa4ad; cursor: default; }
.ox-menue button .mud-icon-root, .ox-untermenue button .mud-icon-root { font-size: 1rem; color: var(--mf-gruen, #0f7a6c); }
.ox-menue button:disabled .mud-icon-root { color: #b8c2cc; }
.ox-menue button small, .ox-untermenue button small { margin-left: auto; color: #9aa4ad; font-size: .68rem; }
.ox-menue button.gefahr:not(:disabled), .ox-menue button.gefahr:not(:disabled) .mud-icon-root { color: #a32d2d; }
.ox-menue-titel { font-size: .7rem; font-weight: 600; color: #64748b; padding: 4px 12px 3px; border-bottom: 1px solid #eef1f4; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.ox-untermenue { border-bottom: 1px solid #eef1f4; margin-bottom: 2px; padding-bottom: 2px; }
.ox-trenner { border-top: 1px solid #eef1f4; margin: 3px 0; }
.ox-zielbaum { display: flex; flex-direction: column; max-height: 420px; overflow: auto; border: 1px solid #e3e8ed; }
.ox-zielbaum button { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 8px; text-align: left; cursor: pointer; font-size: .78rem; }
.ox-zielbaum button:hover:not(:disabled) { background: #eef6f4; }
.ox-zielbaum button.an { background: var(--mf-gruen, #0f7a6c); color: #fff; }
.ox-zielbaum button.aus { color: #9aa4ad; cursor: default; }
.ox-zielbaum button .mud-icon-root { font-size: 1rem; }
.ox-hinweis { font-size: .74rem; color: #64748b; margin: 0 0 8px; }
.ox-rechte { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ox-rechte th, .ox-rechte td { padding: 3px 6px; border-bottom: 1px solid #eef1f4; text-align: center; }
.ox-rechte th:first-child, .ox-rechte td:first-child { text-align: left; }
.ox-rechte th { font-weight: 600; font-size: .7rem; color: #64748b; }
.ox-rechte-neu { margin-top: 8px; max-width: 320px; }
.ox-projekte { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow: auto; font-size: .78rem; }
.ox-vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ox-vorlagen button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid #d5dbe1; background: #fff; padding: 8px 10px; cursor: pointer; text-align: left; font-size: .78rem; }
.ox-vorlagen button:hover { border-color: var(--mf-gruen, #0f7a6c); background: #f3faf8; }
.ox-vorlagen button b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ox-vorlagen button b .mud-icon-root { font-size: 1rem; color: var(--mf-gruen, #0f7a6c); }
.ox-vorlagen button small { color: #64748b; font-size: .7rem; }
.ox-editor { flex: 1; width: 100%; border: 0; min-height: 0; background: #fff; }
.ox-stand { font-size: .74rem; color: #64748b; margin-left: 6px; }
@media (max-width: 1100px) { .ox-body { grid-template-columns: var(--ox-baum, 220px) minmax(0, 1fr); } .ox-teiler { left: calc(var(--ox-baum, 220px) - 4px); } .ox-vorschau, .ox-teiler.rechts { display: none; } }
.ox-bezug { margin: 8px 10px; border: 1px solid #d5dbe1; background: #fff; padding: 4px 0 6px; }
.ox-bezug .ox-gruppe { padding: 4px 10px; }
.ox-anzahl { font-style: normal; font-size: .7rem; background: #eef1f4; color: #5f6b77; padding: 0 6px; }
.ox-bezug-zeile { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 10px; cursor: pointer; text-align: left; font-size: .78rem; }
.ox-bezug-zeile:hover { background: #f3faf8; }
.ox-bezug-zeile .mud-icon-root { font-size: 1.05rem; }
.ox-bezug-zeile small { margin-left: auto; color: #64748b; font-size: .7rem; }
/* ab 3.99.320: Tastatur – kein Fokusrahmen um den ganzen Explorer; ausgeschnittene Einträge blass (wie im Windows-Explorer) */
.ox-ansicht:focus { outline: none; }
.ox-tabelle tbody tr.aus td { opacity: .5; }
.ox-ablage { display: inline-flex; align-items: center; gap: 4px; color: var(--mf-gruen, #0f7a6c); white-space: nowrap; }
.ox-ablage .mud-icon-root { font-size: 14px; }
/* ab 3.99.323: „Aus Datei übernehmen …“ im Neu-Menü wie die übrigen Einträge */
.ox-import { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; font-size: .78rem; white-space: nowrap; }
.ox-import:hover { background: #eef6f4; }
.ox-import small { margin-left: auto; color: #8a96a3; font-size: .7rem; }
/* ab 3.99.324 (Rene 18.11.2026 15:49 „Zeilenabstand etwas geringer – siehe Windows-Explorer“): dichte Zeilen, Symbol 16 px */
html .ox-ansicht .ox-tabelle tbody td { padding-top: 1px; padding-bottom: 1px; height: 24px; line-height: 1.25; }
html .ox-ansicht .ox-tabelle .ox-symbol { width: 18px; margin-right: 5px; vertical-align: -3px; }
html .ox-ansicht .ox-tabelle .ox-symbol > .mud-icon-root { font-size: 16px; width: 16px; height: 16px; }
html .ox-ansicht .ox-tabelle .ox-st { line-height: 1.4; }
/* ab 3.99.324: Programmsymbole Inntec Word / Calc / Diagramm (Variante A) */
.inntec-programm { flex: none; display: inline-block; vertical-align: middle; }
html .ox-ansicht .ox-tabelle .ox-symbol > .inntec-programm { vertical-align: -3px; }

/* ===== ab 3.99.388 (Rene 24.11.2026 23:09): Tabellenkalkulation als eigenes Dokument (.ioka), Präfix „kb-“ =====
   Eckig (kein border-radius), MudBlazor-Symbole, Grün #0f7a6c – kein Blau, kein Lila. */
.kb-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.kb-ansicht :focus-visible { outline: 2px solid var(--mf-gruen, #0f7a6c); outline-offset: -2px; }

/* grüner Kopf mit weißer Schrift */
.kb-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px; min-height: 38px; background: var(--mf-gruen, #0f7a6c); color: #fff; }
.kb-kopf > .mud-icon-root { font-size: 20px; }
.kb-kopf > .inntec-programm { flex: none; }
.kb-kopf input.kb-name { font: inherit; font-size: .9rem; font-weight: 600; color: #fff; background: transparent; border: 1px solid transparent; padding: 3px 6px; min-width: 220px; max-width: 420px; }
.kb-kopf input.kb-name::placeholder { color: rgba(255, 255, 255, .65); }
.kb-kopf input.kb-name:hover, .kb-kopf input.kb-name:focus { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); outline: none; }
.kb-pille { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; padding: 2px 9px; background: rgba(255, 255, 255, .2); color: #fff; white-space: nowrap; }
.kb-pille.warn { background: #a8600c; }
.kb-pille .mud-icon-root { font-size: 13px; }
.kb-stand { font-size: .68rem; opacity: .85; white-space: nowrap; }
.kb-kopf-knoepfe { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.kb-kopf-knoepfe button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 5px 11px; background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap; }
.kb-kopf-knoepfe button:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.kb-kopf-knoepfe button.haupt { background: #fff; color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.kb-kopf-knoepfe button.haupt:hover { background: #e1f5ee; }
.kb-kopf-knoepfe button:disabled { opacity: .45; cursor: default; }
.kb-kopf-knoepfe .mud-icon-root { font-size: 17px; }

/* Menüband mit den Umschaltern Start / Einfügen / Daten / Seite */
/* ab 3.99.389 (Rene 25.11.2026 08:47): alle vier Menüs nebeneinander, bei schmalem Fenster in einer zweiten Reihe */
.kb-band { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px 0; background: #fbfcfd; border-bottom: 1px solid #d6dde6; padding: 4px 6px 2px; min-height: 76px; }
.kb-menue { display: flex; flex-direction: column; gap: 3px; padding: 0 4px 0 0; margin-right: 4px; border-right: 2px solid #cfd8e0; }
.kb-menue:last-child { border-right: 0; margin-right: 0; }
.kb-menue-name { font-size: .68rem; font-weight: 600; color: var(--mf-gruen, #0f7a6c); padding-left: 7px; letter-spacing: .02em; }
.kb-menue-inhalt { display: flex; align-items: stretch; flex: 1; }
.kb-gitter td.kb-tippt { text-align: left !important; white-space: nowrap; overflow: visible; }
.kb-umschalter { display: flex; flex-direction: column; gap: 2px; padding-right: 8px; margin-right: 6px; border-right: 1px solid #e3e8ed; }
.kb-umschalter button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: flex-start; height: 20px; min-width: 70px; padding: 0 8px; font-size: .7rem; color: #46566b; }
.kb-umschalter button:hover { background: #e1f5ee; }
.kb-umschalter button.an { background: var(--mf-gruen, #0f7a6c); color: #fff; font-weight: 600; }
.kb-gruppe { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: 0 7px; border-right: 1px solid #e3e8ed; }
.kb-gruppe:last-child { border-right: 0; }
.kb-gruppe-name { font-size: .64rem; color: #8a96a3; text-align: center; padding-top: 2px; }
.kb-zeile { display: flex; align-items: center; gap: 3px; }
.kb-zeile.kb-hinweis, .kb-zeile.kb-hinweis-lang { font-size: .68rem; color: #64748b; max-width: 230px; display: block; line-height: 1.3; }
.kb-zeile.kb-hinweis-lang { max-width: 330px; }
.kb-gruppe button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 26px; height: 26px; padding: 0 5px; color: #1f2d3d; font-size: .76rem; box-sizing: border-box; white-space: nowrap; }
.kb-gruppe button:hover:not(:disabled) { background: #e1f5ee; }
.kb-gruppe button.an { background: #cfe9e2; box-shadow: inset 0 0 0 1px var(--mf-gruen, #0f7a6c); }
.kb-gruppe button:disabled { opacity: .4; cursor: default; }
.kb-gruppe button .mud-icon-root { font-size: 18px; color: var(--mf-gruen, #0f7a6c); }
.kb-band .kb-txt { font-size: .72rem; }
.kb-trenner { width: 1px; height: 18px; background: #d6dde6; margin: 0 3px; }
/* ab 3.99.389 (Rene 25.11.2026 08:49 „diese farbfunktion musst du verbessern. das geht nicht!“): Symbol und Farbmuster bilden einen
   Knopf mit Pfeil; der Farbkasten klappt darunter auf und wird nicht mehr vom Menüband abgeschnitten */
.kb-farbe { position: relative; display: inline-flex; height: 26px; align-items: center; gap: 2px; padding: 0 3px; }
.kb-farbe .farbfeld { position: static; display: inline-flex; align-items: center; }
.kb-farbe .farbfeld-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px; }
.kb-farbe .farbfeld-knopf:disabled { opacity: .4; cursor: default; }
.kb-farbe .farbfeld-muster { display: inline-block; width: 18px; height: 12px; border: 1px solid #8a96a3; box-sizing: border-box; }
.kb-farbe .farbfeld-knopf small { font-size: .6rem; color: #46566b; }
.kb-farbe .farbkasten { position: absolute; left: 0; top: 100%; z-index: 1300; }
.kb-gitter td { user-select: none; }
.kb-farbe:hover { background: #e1f5ee; }
.kb-farbe .mud-icon-root { font-size: 18px; color: var(--mf-gruen, #0f7a6c); }
.kb-mm, .kb-feld, .kb-haken { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: #46566b; white-space: nowrap; }
.kb-mm input, .kb-feld input { font: inherit; font-size: .72rem; height: 22px; border: 1px solid #c9d4e2; background: #fff; padding: 0 4px; color: #1f2d3d; width: 44px; }
.kb-feld input.kb-bereich { width: 78px; font-family: Consolas, 'Liberation Mono', monospace; }
.kb-feld input.kb-klein { width: 54px; }
.kb-haken input { margin: 0; }
.kb-band .kb-wahl { width: 122px; flex: none; }
.kb-band .kb-wahl .aw-feld input { height: 22px; font-size: .72rem; padding: 1px 22px 1px 5px; }
.kb-datei { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px; font-size: .72rem; color: #1f2d3d; cursor: pointer; position: relative; overflow: hidden; }
.kb-datei:hover { background: #e1f5ee; }
.kb-datei .mud-icon-root { font-size: 18px; color: var(--mf-gruen, #0f7a6c); }
.kb-datei input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Formelleiste */
.kb-formel { display: flex; align-items: center; gap: 4px; padding: 3px 6px; background: #fff; border-bottom: 1px solid #d6dde6; font-size: .76rem; }
.kb-bezug { min-width: 54px; text-align: center; padding: 2px 6px; border: 1px solid #d6dde6; background: #f3f6f8; font-family: Consolas, 'Liberation Mono', monospace; }
.kb-fx { font-style: italic; color: #7a8796; padding: 0 4px; }
.kb-formel input { flex: 1; font-family: Consolas, 'Liberation Mono', monospace; font-size: .8rem; border: 1px solid #c9d4e2; padding: 3px 6px; }
.kb-formel input:focus { outline: none; border-color: var(--mf-gruen, #0f7a6c); }

/* Gitter – Kopfzeile und Zeilennummern bleiben beim Scrollen stehen */
.kb-gitter { flex: 1; min-height: 0; overflow: auto; outline: none; background: #fff; }
.kb-gitter table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .78rem; }
.kb-gitter th { background: #eef3f2; color: #45635d; font-weight: 400; font-size: .66rem; border-right: 1px solid #d0d6de; border-bottom: 1px solid #d0d6de; padding: 2px; text-align: center; cursor: pointer; user-select: none; }
.kb-gitter th.an { background: var(--mf-gruen, #0f7a6c); color: #fff; }
.kb-gitter thead th { position: sticky; top: 0; z-index: 2; }
.kb-gitter thead th.kb-ecke { left: 0; z-index: 4; cursor: default; }
.kb-gitter tbody th.kb-nr { position: sticky; left: 0; z-index: 1; }
.kb-gitter td { border-right: 1px solid #dfe4ea; border-bottom: 1px solid #dfe4ea; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 20px; cursor: cell; background: #fff; }
.kb-gitter td.akt { outline: 2px solid var(--mf-gruen, #0f7a6c); outline-offset: -2px; }
/* ab 3.99.393 (Rene 25.11.2026 20:03 „Farbe wird erst angewendet, wenn ich ins Leere klicke“): die Markierung liegt als durchscheinender
   Schleier über der Zelle statt ihre Füllfarbe zu ersetzen – eine zugewiesene Farbe ist sofort in allen markierten Feldern zu sehen */
.kb-gitter td.aus { box-shadow: inset 0 0 0 999px rgba(15, 122, 108, .13); }
.kb-gitter td.fehler { color: #c62828; }
.kb-gitter td.kb-ref { outline: 2px dashed var(--mf-gruen, #0f7a6c); outline-offset: -2px; background: rgba(15, 122, 108, .08); }
.kb-gitter td.ausserhalb { color: #93a0ab; background: #fafbfc; }

/* Register (Blätter) und Statuszeile */
.kb-register { display: flex; align-items: center; gap: 2px; padding: 3px 6px; background: #f3f6f8; border-top: 1px solid #d6dde6; overflow-x: auto; }
.kb-register .kb-reg { all: unset; cursor: pointer; display: inline-flex; align-items: center; height: 22px; padding: 0 12px; font-size: .74rem; color: #46566b; background: #e7edf0; border: 1px solid #d6dde6; border-bottom: 0; white-space: nowrap; }
.kb-register .kb-reg:hover { background: #e1f5ee; }
.kb-register .kb-reg.an { background: #fff; color: var(--mf-gruen, #0f7a6c); font-weight: 600; border-top: 2px solid var(--mf-gruen, #0f7a6c); }
.kb-reg-eingabe { font: inherit; font-size: .74rem; height: 22px; padding: 0 6px; border: 1px solid var(--mf-gruen, #0f7a6c); width: 120px; }
.kb-register .kb-reg-plus { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--mf-gruen, #0f7a6c); }
.kb-register .kb-reg-plus:hover { background: #e1f5ee; }
.kb-register .kb-reg-plus .mud-icon-root { font-size: 16px; }
.kb-fuss { display: flex; align-items: center; gap: 14px; padding: 3px 10px; font-size: .7rem; color: #64748b; border-top: 1px solid #d6dde6; background: #fff; }
.kb-fuss b { color: #1f2d3d; }
.kb-fuss-hinweis { color: var(--mf-gruen, #0f7a6c); }
@media (max-width: 1200px) { .kb-band .kb-txt, .kb-gruppe-name { display: none; } }

/* ab 3.99.390 (Rene 25.11.2026 11:47–11:53): Tabellenkalkulation – Breite/Höhe ziehen, Rechtsklick-Menü, Gitternetz aus, Farbknöpfe mit gemerkter Farbe, Pinsel */
.kb-gitter thead th, .kb-gitter tbody th.kb-nr { overflow: visible; }
.kb-gitter thead th:not(.kb-ecke) { position: sticky; }
.kb-zug-s { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 5; touch-action: none; }
.kb-zug-z { position: absolute; left: 0; bottom: -3px; width: 100%; height: 6px; cursor: row-resize; z-index: 5; touch-action: none; }
.kb-zug-s:hover, .kb-zug-s.zieht { background: linear-gradient(90deg, transparent 0 3px, #0f7a6c 3px 5px, transparent 5px); }
.kb-zug-z:hover, .kb-zug-z.zieht { background: linear-gradient(180deg, transparent 0 2px, #0f7a6c 2px 4px, transparent 4px); }
.kb-gitter table.ohne-netz td { border-right-color: transparent; border-bottom-color: transparent; }
.kb-gitter.kb-pinsel td { cursor: copy; }
.kb-gitter td { height: auto; min-height: 20px; }
.kb-km-hinter { position: fixed; inset: 0; z-index: 1390; }
.kb-km { position: fixed; z-index: 1400; min-width: 230px; background: #fff; border: 1px solid #0f7a6c; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); padding: 4px 0; font-size: .8rem; color: #1c2b29; }
.kb-km-titel { padding: 3px 12px 2px; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #0f7a6c; font-weight: 600; }
.kb-km button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; height: auto; min-width: 0; width: 100%; padding: 5px 12px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.kb-km button:hover { background: #e3f1ee; }
.kb-km button .mud-icon-root { font-size: 17px; color: #0f7a6c; flex: none; }
.kb-km-anzahl { display: flex; align-items: center; gap: 8px; padding: 3px 12px 4px; color: #51605d; }
.kb-km-anzahl input { width: 64px; height: 24px; padding: 0 6px; border: 1px solid #b9c5c2; font: inherit; }
.kb-km-linie { height: 1px; background: #dfe4ea; margin: 4px 0; }
.kb-farb-los { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.kb-farb-los:disabled { opacity: .4; cursor: default; }
.kb-farb-los i { display: block; width: 16px; height: 4px; border: 1px solid #8a96a3; box-sizing: border-box; margin-top: -1px; }
.kb-farb-los .mud-icon-root { font-size: 16px !important; }
.kb-farbe:has(.kb-farb-los) .farbfeld-muster { display: none; }
.kb-wahl.kb-groesse { width: 52px; }
.kb-wahl.kb-linie { width: 74px; }
.kb-wahl.kb-linie.breit { width: 132px; }

.kb-wahl.kb-schrift { width: 132px; }
.kb-gitter thead th.kb-ecke { cursor: pointer; }
.kb-gitter thead th.kb-ecke:hover { background: #d7e6e2; }

/* ab 3.99.390 (Rene 25.11.2026 11:51/12:27): Diagramme auf dem Blatt und das Fenster „Diagramm einfügen“ */
.kb-gitter { position: relative; }
.kb-diagramm { position: absolute; z-index: 3; background: #fff; border: 1px solid #b9c5c2; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); cursor: move; touch-action: none; user-select: none; }
.kb-diagramm:hover, .kb-diagramm.zieht { border-color: #0f7a6c; }
.kb-diagramm svg { display: block; pointer-events: none; }
.kb-diagramm-weg { position: absolute; top: 2px; right: 2px; display: none; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 1px solid #b9c5c2; background: #fff; color: #51605d; cursor: pointer; }
.kb-diagramm:hover .kb-diagramm-weg { display: inline-flex; }
.kb-diagramm-weg:hover { background: #c62828; border-color: #c62828; color: #fff; }
.kb-diagramm-weg .mud-icon-root { font-size: 14px; }
.kb-diagramm-ecke { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 0 50%, #0f7a6c 50% 60%, transparent 60% 72%, #0f7a6c 72% 82%, transparent 82%); }
.kb-dlg-hinter { position: fixed; inset: 0; z-index: 1390; }
.kb-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 1400; width: 500px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #0f7a6c; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .82rem; color: #1c2b29; }
.kb-dlg-kopf { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 4px 0 12px; background: #0f7a6c; color: #fff; font-weight: 600; }
.kb-dlg-kopf button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.kb-dlg-inhalt { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kb-dlg-arten { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.kb-dlg-arten button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 1px solid #b9c5c2; background: #fff; font: inherit; font-size: .72rem; color: #1c2b29; cursor: pointer; }
.kb-dlg-arten button .mud-icon-root { font-size: 22px; color: #0f7a6c; }
.kb-dlg-arten button:hover { border-color: #0f7a6c; }
.kb-dlg-arten button.an { border-color: #0f7a6c; background: #dff1ee; box-shadow: inset 0 0 0 1px #0f7a6c; }
.kb-dlg-felder { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.kb-dlg-felder input:not([type=checkbox]) { height: 28px; padding: 0 8px; border: 1px solid #b9c5c2; font: inherit; min-width: 0; outline: none; }
.kb-dlg-felder input:not([type=checkbox]):focus { border-color: #0f7a6c; }
.kb-dlg-vorschau { border: 1px solid #dfe4ea; height: 235px; }
.kb-dlg-hinweis { font-size: .72rem; color: #51605d; }
.kb-dlg-fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 0 12px 12px; }
.kb-dlg-fuss button { height: 30px; padding: 0 16px; border: 1px solid #b9c5c2; background: #fff; font: inherit; color: #1c2b29; cursor: pointer; }
.kb-dlg-fuss .kb-dlg-haupt { background: #0f7a6c; border-color: #0f7a6c; color: #fff; font-weight: 600; }
.kb-dlg-fuss .kb-dlg-haupt:disabled { opacity: .45; cursor: default; }

/* ab 3.99.392 (Rene 25.11.2026): Maß in mm beim Ziehen von Spaltenbreite/Zeilenhöhe; Eingabe in mm im Rechtsklick-Menü */
.kb-zug-mm { position: fixed; z-index: 2000; pointer-events: none; padding: 2px 8px; background: #0f7a6c; color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.kb-km-mass { display: flex; align-items: center; gap: 6px; padding: 3px 12px 4px; color: #51605d; }
.kb-km-mass input { width: 72px; height: 24px; padding: 0 6px; border: 1px solid #b9c5c2; font: inherit; text-align: right; }
.kb-km .kb-km-mass button { width: auto; padding: 2px 10px; border: 1px solid #0f7a6c; background: #0f7a6c; color: #fff; }
.kb-km .kb-km-mass button:hover { background: #0c6459; }
.kb-km-hinweis { padding: 2px 12px 5px; max-width: 290px; font-size: .74rem; color: #b45309; line-height: 1.3; }

/* ab 3.99.392 (Rene 25.11.2026 16:24): Teiler zwischen Ordnerbaum und Liste im Explorer – mit der Maus ziehen */
.ox-teiler { position: absolute; top: 0; bottom: 0; left: calc(var(--ox-baum, 250px) - 4px); width: 8px; cursor: col-resize; z-index: 6; touch-action: none; }
.ox-teiler.rechts { left: auto; right: calc(var(--ox-vorschau, 250px) - 4px); }
.ox-teiler:hover, .ox-teiler.zieht { background: linear-gradient(90deg, transparent 0 3px, #0f7a6c 3px 5px, transparent 5px); }

/* ab 3.99.392 (Rene 25.11.2026 17:05): Menü „Neu“ – Programmname (Inntec Write/Draw/Calc) in einer Zeile, Beschreibung grau rechts */
.ox-menue { min-width: 280px; }
.ox-menue button { white-space: nowrap; }
.ox-menue button > small { margin-left: auto; padding-left: 18px; }

/* ab 3.99.392 (Rene 25.11.2026 17:28, Variante A): „Neu erstellen“ – drei Kacheln mit den Programmsymbolen statt der Befehlsleiste */
.ox-neu { padding: 8px 12px 12px; background: #f3f5f7; border-top: 2px solid #0f7a6c; border-bottom: 1px solid #d5dbe1; }
.ox-neu-kopf { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.ox-neu-titel { font-size: .75rem; color: #51605d; }
.ox-neu-laden { min-width: 0; padding: 2px 6px; }
.ox-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; max-width: 1100px; }
.ox-kachel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #c9d1d9; border-left: 3px solid var(--ox-farbe); cursor: pointer; text-align: left; font: inherit; color: inherit; min-width: 0; height: auto; }
.ox-kachel.write { --ox-farbe: #0f7a6c; }
.ox-kachel.draw { --ox-farbe: #534ab7; }
.ox-kachel.calc { --ox-farbe: #c2701a; }
.ox-kachel:hover, .ox-kachel:focus-visible { border-color: var(--ox-farbe); background: #fbfdfc; outline: none; }
.ox-kachel > svg { flex: none; }
.ox-kachel-text { display: flex; flex-direction: column; min-width: 0; }
.ox-kachel-text b { font-size: .95rem; font-weight: 600; white-space: nowrap; }
.ox-kachel-text small { font-size: .72rem; color: #51605d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-kachel > .mud-icon-root { margin-left: auto; color: var(--ox-farbe); font-size: 20px; }
@media (max-width: 900px) { .ox-kachel-text small { display: none; } }

/* ab 3.99.393 (Rene 25.11.2026 20:22, nach Excel-Vorbild): Reiter in der grünen Leiste, Band fester Höhe, große Symbole mit Beschriftung */
.kb-reiter { display: flex; align-items: flex-end; gap: 0; padding: 0 8px; background: var(--mf-gruen, #0f7a6c); min-height: 28px; }
.kb-reiter button { all: unset; cursor: pointer; box-sizing: border-box; height: 26px; line-height: 26px; padding: 0 16px; font-size: .8rem; color: #fff; }
.kb-reiter button:hover { background: rgba(255, 255, 255, .16); }
.kb-reiter button.an { background: #fbfcfd; color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.kb-reiter button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
/* ab 3.99.394 (Rene 25.11.2026 21:59 „wenn ich eine Farbe auswähle, sehe ich nicht die Auswahl“): das Band darf nichts abschneiden –
   Farbauswahl und Auswahllisten klappen nach unten über die Formelleiste */
.kb-band { flex-wrap: nowrap; overflow: visible; height: 88px; min-height: 88px; padding: 5px 4px 2px; position: relative; z-index: 5; }
.kb-band .kb-menue { display: none; border-right: 0; margin-right: 0; flex: none; }
.kb-band .kb-menue.offen { display: flex; }
.kb-band .kb-menue-name { display: none; }
.kb-band .kb-gruppe { flex: none; }
.kb-gruppe:has(.kb-gross) { display: grid; grid-auto-flow: column; grid-template-rows: 1fr auto; grid-auto-columns: max-content; align-items: center; column-gap: 2px; }
.kb-gruppe:has(.kb-gross) > .kb-zeile { grid-row: 1; align-self: stretch; }
.kb-gruppe:has(.kb-gross) > .kb-zeile:empty { display: none; }
.kb-gruppe:has(.kb-gross) > .kb-gruppe-name { grid-row: 2; grid-column: 1 / span 8; }
.kb-gruppe button.kb-gross, .kb-gruppe label.kb-gross { flex-direction: column; justify-content: flex-start; gap: 2px; height: 58px; min-width: 54px; padding: 4px 6px 2px; text-align: center; white-space: normal; line-height: 1.12; cursor: pointer; display: inline-flex; align-items: center; box-sizing: border-box; position: relative; }
.kb-gruppe .kb-gross .mud-icon-root { font-size: 26px; color: var(--mf-gruen, #0f7a6c); }
.kb-gruppe .kb-gross .kb-txt { font-size: .68rem; max-width: 68px; }
.kb-gruppe label.kb-gross:hover { background: #e1f5ee; }

/* ab 3.99.393 (Rene 25.11.2026 20:13): Explorer ohne die Textzeile – Kacheln links, Suche rechts in einer Zeile */
.ox-neu { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; }
.ox-neu .ox-kacheln { flex: 1 1 auto; margin-top: 0; }
.ox-neu-rechts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

/* ab 3.99.394 (Rene 25.11.2026 21:56 „der Name oben sollte weiß sein beim grünen Hintergrund“): der Dokumentname im grünen Kopf bleibt in
   jedem Farbschema und auch gesperrt weiß – die eigene Schemafarbe „Eingabefelder – Schrift“ (html.th-eigen-feld-schrift .fenster input) färbte ihn dunkel */
html body .kb-kopf input.kb-name:not(#_mrr), html body .kb-kopf input.kb-name:disabled:not(#_mrr) { color: #fff !important; -webkit-text-fill-color: #fff !important; opacity: 1 !important; caret-color: #fff; }
/* ab 3.99.395 (Rene 26.11.2026 01:03 „die Farben hier im Menü quadratisch anzeigen“): Farbmuster neben Füll- und Schriftfarbe als Quadrat */
html body .kb-band .kb-farbe .farbfeld-muster { width: 14px; height: 14px; border-radius: 0; flex: none; }
/* ab 3.99.395 (Rene 26.11.2026 01:03): auch die Muster an Füll- und Schriftfarbe als Quadrat – dort ist das Farbfeld-Muster ausgeblendet und die Farbe
   stand als 16 × 4 px breiter Balken unter dem Symbol; jetzt steht sie als Quadrat rechts neben dem Symbol (wie bei der Rahmenfarbe) */
html body .kb-band .kb-farb-los { flex-direction: row; gap: 3px; width: auto; padding: 0 2px; }
html body .kb-band .kb-farb-los i { width: 14px; height: 14px; margin-top: 0; flex: none; }

/* ab 3.99.409 (Rene 27.11.2026 07:59, Mockup): Bericht in Inntec Calc – Leiste links neben dem Gitter */
.kb-mitte { flex: 1; min-height: 0; display: flex; }
.kb-mitte > .kb-gitter { min-width: 0; }
.kb-bericht { flex: 0 0 230px; overflow: auto; padding: 8px 10px; background: #eef3f2; border-right: 1px solid #d0d6de; font-size: .78rem; color: #1c2b29; display: flex; flex-direction: column; gap: 3px; }
.kb-ber-titel { font-size: .68rem; font-weight: 600; color: #0f7a6c; margin-top: 8px; }
.kb-ber-titel:first-child { margin-top: 0; }
.kb-bericht select, .kb-bericht input[type=date] { width: 100%; height: 24px; border: 1px solid #c9d3d1; background: #fff; font: inherit; padding: 0 4px; }
.kb-ber-zeit { display: flex; gap: 4px; }
.kb-ber-haken { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.kb-ber-quelle, .kb-ber-los { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid #c9d3d1; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.kb-ber-quelle:hover { border-color: #0f7a6c; }
.kb-ber-los { margin-top: 10px; background: #0f7a6c; color: #fff; border-color: #0f7a6c; justify-content: center; }
.kb-ber-los:disabled, .kb-ber-quelle:disabled { opacity: .55; cursor: default; }
.kb-ber-quelle .mud-icon-root, .kb-ber-los .mud-icon-root { font-size: 1rem; }
.kb-ber-hinweis { margin: 6px 0 0; font-size: .7rem; color: #45635d; line-height: 1.35; }
/* ab 3.99.409 (Rene 27.11.2026 09:17 „das bitte alles linksbündig“): Quellen-Knöpfe linksbündig, lange Namen einzeilig */
.kb-ber-quelle { justify-content: flex-start; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ab 3.99.434: Explorer-Tabelle einstellbar – Zahnrad, Sortierung, Breite ziehen, Filterzeile; Datum und Uhrzeit mit Abstand */
.ox-tabelle th.ox-th { position: sticky; cursor: pointer; user-select: none; }
.ox-tabelle th.ox-th:hover { background: #e9f3f1; }
.ox-sort { font-size: .62rem; margin-left: 4px; }
.ox-griff { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; }
.ox-griff:hover { background: rgba(15, 122, 108, .25); }
.ox-zahnrad-th { padding: 0 !important; text-align: center !important; }
.ox-zahnrad { all: unset; cursor: pointer; display: inline-flex; padding: 3px; color: #6b7a86; }
.ox-zahnrad .mud-icon-root { font-size: 15px; }
.ox-zahnrad:hover, .ox-zahnrad.an { color: var(--mf-gruen, #0f7a6c); }
.ox-einst { position: absolute; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid #c9d4df; box-shadow: 0 6px 18px rgba(0,0,0,.14); padding: 8px 10px; min-width: 190px;
    text-align: left; font-weight: 400; color: var(--mf-text, #22302d); display: flex; flex-direction: column; gap: 4px; }
.ox-einst label { display: flex; gap: 6px; align-items: center; font-size: .76rem; cursor: pointer; }
.ox-einst-titel { font-size: .66rem; font-weight: 700; color: var(--mf-gruen, #0f7a6c); letter-spacing: .04em; text-transform: uppercase; }
.ox-einst-trenn { border-top: 1px solid #e5ebf0; padding-top: 5px; margin-top: 3px; }
.ox-einst .mf-knopf { align-self: flex-start; margin-top: 4px; }
.ox-einst.fest { position: fixed; right: auto; z-index: 1401; min-width: 230px; } /* ab 3.99.436: festes Fenster neben dem Zahnrad */
.ox-tabelle tr.ox-filter th { top: 26px; padding: 2px 4px; background: #fff; }
.ox-tabelle tr.ox-filter input { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; font-size: .74rem; padding: 2px 5px; border: 1px solid #d5dbe1; }
.ox-uhrzeit { margin-left: 10px; color: #6b7a86; }
.kb-projekt { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; min-width: 220px; }
.kb-projekt > .mud-icon-root { font-size: 16px; color: #854f0b; }
/* ab 3.99.436 (Rene 29.11.2026 12:45): Empfänger ein-/ausklappen, Projekt oben in der Seitenleiste */
button.dok-leiste-kopf.empf-klapp { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #d6dde6; cursor: pointer; font: inherit; text-align: left; }
button.dok-leiste-kopf.empf-klapp:hover { filter: brightness(.97); }
.empf-klapp .empf-kurz { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: #5b6b78; }
.empf-klapp .empf-pfeil { margin-left: auto; font-size: 1.1rem; }
.dok-projekt { margin-bottom: 6px; }

/* ab 3.99.438: Seitenvorschau im Explorer – Klick zeigt groß */
.ox-vorschau .ox-seite { width: 100%; max-height: none; border: 1px solid var(--mf-linie, #d5dbe1); box-shadow: 0 1px 3px rgba(0,0,0,.12); background: #fff; }
.ox-vorschau .ox-gross-klick { cursor: zoom-in; }
.office-popup-seiten img.ox-svg-gross { background: #fff; max-width: 100%; }

/* modulstil.Postleitzahlen/stil.css */
/* Modul Postleitzahlen – nur Klassen mit Präfix „plz-“ */
.plz-ansicht { overflow: hidden; }
.plz-inhalt { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; max-width: 1100px; }
.plz-inhalt > fieldset.rahmen { margin: 0; }
.plz-zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.plz-zeile > label:first-child { width: 160px; flex: none; }
.plz-land { width: 60px; text-transform: uppercase; }
.plz-url { flex: 1 1 360px; min-width: 240px; }
.plz-fortschritt { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.plz-suche { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; max-width: 760px; }
.plz-tabelle { margin-top: 8px; max-height: 460px; overflow: auto; }
.plz-tabelle td, .plz-tabelle th { white-space: nowrap; }
.plz-auswahl { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.plz-auswahl-eintrag { text-align: left; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; background: transparent; color: inherit; font: inherit; padding: 6px 10px; cursor: pointer; }
.plz-auswahl-eintrag:hover, .plz-auswahl-eintrag:focus { border-color: var(--mud-palette-primary); background: rgba(15, 118, 110, .08); outline: none; }
.plz-auswahl-eintrag.beibehalten { font-style: italic; }

/* modulstil.Produktion/stil.css */
/* ab 3.99.167: Merkmale der Projektzeiten */
.ze-merkmal { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; font-size: .7rem; border: 1px solid var(--th-rahmen, #cbd5e1); color: var(--th-text-leise, #475569); }
.ze-m-tab td { vertical-align: top; }
.ze-m-tab td.mitte { text-align: center; }
.ze-m-tab input:not([type=checkbox]), .ze-m-tab textarea { width: 100%; min-width: 140px; font-size: .8rem; }
.ze-m-text { margin-bottom: 6px; }
/* 3.99.280: Projektfeld der Zeiterfassung – Projekt und darunter Arbeitspaket in einer Zelle */
.pz-projektfeld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* ab 3.99.320: Kalender – Zahnrad rechts oben, Einstellungen, Wochenende, Kalenderwoche, Stundenhöhe */
.tp-zahnrad { margin-left: 6px; }
.we-toenen .tp-spalte.we { background: #f6f8f9; }
.tp-monat-tag.we { background: #f6f8f9; }
.tp-monat-tag { position: relative; }
.tp-monat-kw { position: absolute; top: 6px; left: 6px; font-size: .66rem; color: #94a3b8; letter-spacing: .02em; }
.tp-einst { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
.tp-einst-zeit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-einst-zeit label { display: inline-flex; align-items: center; gap: 6px; }

/* modulstil.Projekte/Seiten/Bericht/stil.css */
/* ab 3.99.283 (Projekte): Unterschrift vor Ort und Bericht als PDF – nur Klassen mit Präfix „pj-“ */
.pj-us { display: flex; flex-direction: column; gap: 8px; }
.pj-us-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .9rem; }
.pj-us-text { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 6px 8px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
.pj-us-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-us-karte { display: flex; gap: 10px; align-items: flex-end; border: 1px solid #d5dde8; padding: 6px 10px; background: #fff; max-width: 100%; }
.pj-us-karte img { height: 64px; max-width: 220px; object-fit: contain; border-bottom: 1px solid #64748b; }
.pj-us-angaben { display: flex; flex-direction: column; gap: 1px; font-size: .82rem; }
.pj-us-zweck { display: inline-flex; align-items: center; gap: 4px; color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.pj-us-name { text-transform: uppercase; letter-spacing: .04em; }
.pj-doku-eintrag.pj-art-notiz:has(.pj-us-liste) { border-left-color: var(--mf-gruen, #0f7a6c); }
.pj-doku-nurlesen { margin-left: 0; }

.pj-bericht { display: flex; flex-direction: column; gap: 10px; }
.pj-bericht-zeile { display: flex; gap: 10px; align-items: flex-start; }
.pj-bericht-label { width: 80px; flex: none; font-size: .82rem; font-weight: 600; padding-top: 3px; }
.pj-bericht-wahl { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-bericht-datum { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.pj-bericht-datum input { font: inherit; padding: 2px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); margin-left: 4px; }
.pj-bericht-haken { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; }
.pj-bericht-haken label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pj-bericht-mail { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.pj-bericht-mail input.einfach, .pj-bericht-mail textarea.einfach { width: 100%; box-sizing: border-box; font: inherit; font-size: .85rem; padding: 4px 8px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
.pj-bericht-fertig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #1f8a5b; background: #e3f4ec; font-size: .85rem; }
.pj-bericht-fertig a.mf-knopf { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .pj-bericht-zeile { flex-direction: column; gap: 4px; } .pj-bericht-label { width: auto; } }
.pj-doku-eintrag:has(.pj-us-liste) .pj-doku-art { color: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); background: #e6f4f1; }
@media (max-width: 600px) { .pj-us-karte { flex-direction: column; align-items: flex-start; } .pj-us-karte img { max-width: 100%; } }

/* modulstil.Projekte/Seiten/Plaene/stil.css */
/* ab 3.99.283 (P11-43/P11-33/P11-49): Planregister, Planansicht mit Pins und Rotmarkierungen – nur Klassen mit Präfix „pl-“ */
.pl-register { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pl-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-umschalter { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pl-filter { min-width: 180px; }
.pl-hochladen { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.pl-hochladen-titel { display: flex; justify-content: space-between; align-items: center; }
.pl-datei { display: flex; flex-direction: column; gap: 2px; }
.pl-index { max-width: 90px; }
.pl-dazu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-rot-einarbeiten { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid #e11d48; padding: 4px 8px; }
.pl-rot-haken { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.pl-tabelle { width: 100%; }
.pl-tabelle .pl-zeile { cursor: pointer; }
.pl-tabelle .pl-zeile:hover { background: var(--th-hover, rgba(15, 118, 110, .06)); }
.pl-mini-zelle { width: 64px; }
.pl-mini { width: 56px; height: 40px; object-fit: contain; border: 1px solid var(--th-rahmen, #cbd5e1); background: #fff; display: block; }
.pl-aktionen { white-space: nowrap; text-align: right; }
.pl-index-marke { display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid var(--th-rahmen, #94a3b8); font-weight: 600; text-align: center; }
.pl-zahl { display: inline-block; min-width: 1.6em; padding: 0 5px; color: #fff; font-weight: 600; text-align: center; font-size: .75rem; }
.pl-zahl.rot { background: #dc2626; }
.pl-zahl.rotm { background: #be185d; }
.pl-zahlen { display: flex; gap: 4px; margin-top: 2px; }
.pl-unterzeile > td { padding-top: 0; }
.pl-staende { width: 100%; font-size: .78rem; border-collapse: collapse; }
.pl-staende td { padding: 2px 6px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.pl-staende tr.ueberholt { color: var(--text-zweitrangig, #64748b); text-decoration: none; }
.pl-staende tr.ueberholt .pl-index-marke { text-decoration: line-through; }
.pl-bearbeiten { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-bearbeiten > * { max-width: 240px; }
.pl-karte { align-items: center; }
.pl-karte .pl-mini { width: 72px; height: 52px; }

/* Punkte-Liste */
.pl-punkte-liste { display: flex; flex-direction: column; gap: 2px; }
.pl-punkt-zeile { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); background: transparent; padding: 5px 4px; cursor: pointer; color: inherit; font: inherit; }
.pl-punkt-zeile:hover { background: var(--th-hover, rgba(15, 118, 110, .06)); }
.pl-punkt-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pl-punkt-text small { color: var(--text-zweitrangig, #64748b); }
.pl-punkt-status { white-space: nowrap; font-size: .75rem; display: inline-flex; gap: 4px; align-items: center; }
.pl-ueberfaellig { color: #dc2626; font-weight: 600; }
.pl-pruefen-marke { color: #b45309; font-weight: 600; }
.pl-pin-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .75rem; padding: 0 4px; }
.pl-pin-nr.rot { background: #dc2626; } .pl-pin-nr.gelb { background: #d97706; } .pl-pin-nr.gruen { background: #16a34a; }

/* Planansicht */
.pl-ansicht { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.pl-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-titel { display: flex; flex-direction: column; line-height: 1.15; margin-right: 6px; }
.pl-titel small { color: var(--text-zweitrangig, #64748b); }
.pl-stand-wahl { min-width: 230px; }
.pl-modi { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pl-modi .korr-filter { display: inline-flex; align-items: center; gap: 3px; }
.pl-ebenen { display: inline-flex; gap: 10px; font-size: .8rem; }
.pl-ebenen label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.pl-hinweis { font-size: .78rem; color: var(--text-zweitrangig, #64748b); }
.pl-hinweis-ueberholt { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 4px 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .8rem; }
.pl-haupt { display: flex; gap: 8px; min-height: 0; }
.pl-buehne { position: relative; flex: 1; height: calc(100vh - 330px); min-height: 380px; overflow: hidden; border: 1px solid var(--th-rahmen, #cbd5e1); background: #e5e7eb; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.pl-buehne:active { cursor: grabbing; }
.pl-buehne[data-modus="pin"] { cursor: crosshair; }
.pl-buehne[data-modus="zeichnen"] { cursor: crosshair; }
.pl-buehne.ueberholt { border-color: #dc2626; }
.pl-flaeche { position: absolute; left: 0; top: 0; transform-origin: 0 0; --pl-s: 1; }
.pl-bild { display: block; width: 100%; height: 100%; pointer-events: none; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.pl-rot-ebene, .pl-entwurf { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-rot-ebene > svg { width: 100%; height: 100%; display: block; }
.pl-rot-ebene.aelter > svg { filter: saturate(.8); }
.pl-rot-ebene.gewaehlt > svg { filter: drop-shadow(0 0 3px rgba(225, 29, 72, .8)); }
.pl-pin { position: absolute; width: 0; height: 0; z-index: 2; }
.pl-pin > span { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) scale(calc(1 / var(--pl-s))); transform-origin: 50% 100%;
    display: flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px 13px 13px 2px;
    color: #fff; font-weight: 700; font-size: 13px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); cursor: pointer; }
.pl-pin > span { border-radius: 50% 50% 50% 0; transform: translate(0, -100%) scale(calc(1 / var(--pl-s))); transform-origin: 0 100%; }
.pl-pin.rot > span { background: #dc2626; } .pl-pin.gelb > span { background: #d97706; } .pl-pin.gruen > span { background: #16a34a; }
.pl-pin.gewaehlt > span { outline: 3px solid #2563eb; outline-offset: 1px; z-index: 3; }
.pl-pin.gewaehlt { z-index: 3; }
.pl-pin.pruefen > span { border-style: dashed; border-color: #fde047; }
.pl-wasserzeichen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
.pl-wasserzeichen span { transform: rotate(-28deg); font-size: clamp(40px, 9vw, 130px); font-weight: 800; letter-spacing: .12em; color: rgba(220, 38, 38, .28); border: 6px solid rgba(220, 38, 38, .28); padding: 4px 28px; }
.pl-steuer { position: absolute; z-index: 5; display: flex; gap: 2px; background: rgba(255, 255, 255, .92); border: 1px solid var(--th-rahmen, #cbd5e1); padding: 2px; }
.pl-steuer button { border: 0; background: transparent; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: #0f172a; font: inherit; font-size: .8rem; }
.pl-steuer button:hover:not(:disabled) { background: rgba(15, 118, 110, .12); }
.pl-steuer button:disabled { opacity: .35; cursor: default; }
.pl-zoom { right: 8px; top: 8px; flex-direction: column; }
.pl-zeichenleiste { left: 8px; bottom: 8px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 16px); }
.pl-farbe { width: 24px !important; min-width: 24px !important; height: 24px !important; border-radius: 50%; border: 2px solid #fff !important; box-shadow: 0 0 0 1px #94a3b8; margin: 0 2px; }
.pl-farbe.an { box-shadow: 0 0 0 2px #0f172a; }
.pl-rot-bemerkung { height: 28px; border: 1px solid var(--th-feldrand, #cbd5e1); padding: 0 6px; min-width: 160px; font-size: .8rem; }
.pl-speichern { background: #0f766e !important; color: #fff !important; padding: 0 10px !important; }
.pl-seite { width: 330px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; height: calc(100vh - 330px); min-height: 380px; }
.pl-pin-form { display: flex; flex-direction: column; gap: 6px; }
.pl-pin-form .inv-zeile > label { min-width: 90px; }
.pl-pin-form-kopf { display: flex; align-items: center; gap: 8px; }
.pl-pin-form-kopf b { flex: 1; }
.pl-pruefen { background: #fffbeb; border: 1px solid #fde68a; padding: 6px; font-size: .8rem; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pl-status-knoepfe { display: flex; gap: 4px; }
.pl-status { flex: 1; border: 2px solid transparent; padding: 4px 6px; color: #fff; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; opacity: .45; }
.pl-status.an { opacity: 1; border-color: #0f172a; }
.pl-status.rot { background: #dc2626; } .pl-status.gelb { background: #d97706; } .pl-status.gruen { background: #16a34a; }
.pl-fotos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-fotos label input[type=file] { display: none; }
.pl-dazu label input[type=file] { display: none; }
.pl-foto { position: relative; display: inline-block; }
.pl-foto img { width: 64px; height: 64px; object-fit: cover; display: block; border: 1px solid var(--th-rahmen, #cbd5e1); }
.pl-foto button { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #0f172a; color: #fff; font-size: 11px; cursor: pointer; }
.pl-rot-eintrag { border: 1px solid var(--th-rahmen, #e2e8f0); border-left: 4px solid #e11d48; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-size: .8rem; }
.pl-rot-eintrag.gewaehlt { background: rgba(225, 29, 72, .06); }
.pl-rot-kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.pl-rot-kopf small { color: var(--text-zweitrangig, #64748b); width: 100%; }
.pl-rotstatus { font-style: normal; font-weight: 600; padding: 0 5px; color: #fff; font-size: .72rem; }
.pl-rotstatus.s0 { background: #e11d48; } .pl-rotstatus.s1 { background: #2563eb; } .pl-rotstatus.s2 { background: #16a34a; }
.pl-rot-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Handy */
.pl-register.mobil, .pl-ansicht.mobil { gap: 6px; }
.pl-ansicht.mobil .pl-haupt { flex-direction: column; }
.pl-ansicht.mobil .pl-buehne { height: calc(100vh - 210px); min-height: 300px; flex: none; }
.pl-ansicht.mobil .pl-seite { width: auto; height: auto; min-height: 0; overflow: visible; }
.pl-ansicht.mobil .pl-kopf { gap: 6px; }
.pl-ansicht.mobil .pl-modi .korr-filter { padding: 6px 10px; }
.pl-ansicht.mobil .pl-pin > span { min-width: 32px; height: 32px; font-size: 15px; }
.pl-ansicht.mobil .pl-steuer button { min-width: 40px; height: 40px; }
.pl-ansicht.mobil .pl-pin-form { position: fixed; left: 0; right: 0; bottom: 0; max-height: 62vh; overflow: auto; z-index: 50; background: var(--th-formular, #fff); padding: 10px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .25); }
.pl-ansicht.mobil .pl-pin-form .feld-eingabe, .pl-ansicht.mobil .pl-pin-form textarea { font-size: 16px; }
@media (max-width: 900px) {
    .pl-haupt { flex-direction: column; }
    .pl-seite { width: auto; height: auto; }
}
/* ab 3.99.286: Beschriftung links, Feld rechts (je Zeile Beschriftung + Feld), Schriftgrößen wie Titelarchiv */
.inv-felder.pl-felder { grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: .78rem; }
.inv-felder.pl-felder > .inv-zeile { display: contents; }
.inv-felder.pl-felder > .inv-zeile > label { font-size: .76rem; color: #475569; }
.inv-felder.pl-felder input, .inv-felder.pl-felder select, .inv-felder.pl-felder textarea { font-size: .78rem; }
.inv-felder.pl-felder input.pl-index { width: 110px; }
.inv-felder.pl-felder input[type=date] { width: 150px; }
.pl-datei input[type=file] { font-size: .76rem; }
.pl-datei small { margin-top: 0; }
.pl-hochladen-titel b { font-size: .82rem; }
@media (max-width: 760px) { .inv-felder.pl-felder { grid-template-columns: 1fr; gap: 2px; } .inv-felder.pl-felder > .inv-zeile > label { margin-top: 6px; } }

/* ab 3.99.299: Mängelliste unterschreiben (Auftraggeber/Auftragnehmer am Gerät) */
.pl-ml { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; }
.pl-ml-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.pl-ml-umfang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pl-ml-umfang label, .pl-ml-punkt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .76rem; }
.pl-ml-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-ml-seite { min-width: 0; margin: 0; }
.pl-ml-seite .inv-felder { margin-bottom: 6px; }
.pl-ml-name { text-transform: uppercase; letter-spacing: .04em; }
.pl-ml-datum { font-size: .78rem; }
.pl-ml .us-feld { border-radius: 0; height: 140px; }
.pl-ml .us-hinweis { font-size: .76rem; }
.pl-ml-abnahme { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.pl-ml-nr { display: inline-block; min-width: 1.6em; padding: 0 4px; background: var(--mf-gruen, #0f7a6c); color: #fff; font-weight: 600; text-align: center; font-size: .7rem; }
.pl-ml-hinweis { display: flex; align-items: center; gap: 4px; font-size: .76rem; }
@media (max-width: 700px) { .pl-ml-felder { grid-template-columns: 1fr; } .pl-ml .us-feld { height: 170px; } }
/* ab 3.99.299: Fristen-Eskalation – Kennzeichen „eskaliert am …“ in der Punkteliste (eckig) */
.pl-eskaliert { color: #b91c1c; font-weight: 600; margin-left: 4px; }
/* ab 3.99.299: Planstand-Vergleich (Überblendung, Differenz, nebeneinander) */
.pl-ansicht.vergleicht > :not(.pl-vergleich) { display: none !important; }
.pl-vergleich { display: flex; flex-direction: column; gap: 6px; min-height: 0; font-size: .78rem; }
.pl-vergleich .pl-titel small { font-size: .7rem; }
.pl-vergleich .korr-filter, .pl-vergleich .mf-knopf { font-size: .76rem; }
.pl-vergleich-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 26px; }
.pl-deckkraft { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pl-deckkraft input[type=range] { width: 260px; accent-color: var(--mf-gruen, #0f7a6c); }
.pl-deckkraft small { color: var(--text-zweitrangig, #64748b); font-size: .7rem; }
.pl-legende { display: inline-flex; align-items: center; gap: 5px; }
.pl-legende i { display: inline-block; width: 14px; height: 10px; border: 1px solid rgba(0, 0, 0, .15); }
.pl-legende i.entfernt { background: #dc2626; }
.pl-legende i.neu { background: var(--mf-gruen, #0f7a6c); }
.pl-legende i.gleich { background: #b4b8be; }
.pl-vergleich-haupt { display: flex; gap: 8px; min-height: 0; }
.pl-bild.pl-oben { position: absolute; inset: 0; box-shadow: none; background: transparent; }
.pl-vergleich-marke { position: absolute; left: 8px; top: 8px; z-index: 5; background: rgba(255, 255, 255, .92); border: 1px solid var(--th-rahmen, #cbd5e1); padding: 1px 6px; font-weight: 600; font-size: .76rem; }
@media (max-width: 900px) { .pl-vergleich-haupt.nebeneinander { flex-direction: column; } }

/* modulstil.Projekte/stil.css */
/* Modul Projekte (ab 3.99.280) – nur Klassen mit Präfix „pj-“; Grundbausteine (korr, dok-titel, dok-reiter, vw-karte, mf-knopf) kommen aus dem Programm */
.pj-reiter { margin: 0 12px; }
.pj-detail { display: flex; flex-direction: column; gap: 12px; }
.pj-tabelle { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 6px 0 10px; }
.pj-tabelle th { text-align: left; font-weight: 600; color: var(--th-tabellenkopf-text, #2c3e57); background: var(--th-tabellenkopf, #f8fafc); padding: 5px 8px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.pj-tabelle td { padding: 4px 8px; border-bottom: 1px solid var(--th-liste-linie, #edf1f6); vertical-align: middle; }
.pj-tabelle input:not([type=checkbox]) { width: 100%; font: inherit; padding: 3px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); }
.pj-mitte { text-align: center; }
.pj-klein { font-size: .68rem; margin-left: 6px; }
.pj-dazu { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pj-struktur { display: grid; grid-template-columns: minmax(460px, 1.6fr) minmax(300px, 1fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.pj-zeile { display: flex; gap: 6px; align-items: center; padding: 4px 0; border-top: 1px solid var(--th-liste-linie, #edf1f6); flex-wrap: wrap; }
.pj-zeile input:not([type=checkbox]) { font: inherit; font-size: .82rem; padding: 3px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); }
.pj-zeile .pj-kurz { width: 64px; font-family: Consolas, monospace; }
.pj-zeile .pj-name { flex: 1 1 140px; min-width: 120px; }
.pj-zeile input[type=date] { width: 128px; }
.pj-zeile.erledigt .pj-name { text-decoration: line-through; color: var(--mf-text-2); }
.pj-erledigt { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; color: var(--mf-text-2); }
.pj-leer { margin: 4px 0 8px; font-size: .8rem; }
.pj-termine { display: flex; flex-direction: column; }
.pj-termin { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 5px 0; border-top: 1px solid var(--th-liste-linie, #edf1f6); font-size: .82rem; }
.pj-termin small { color: var(--mf-text-2); }
.pj-termin.pj-bald small { color: #b45309; font-weight: 600; }
.pj-termin.pj-ueber small { color: #b91c1c; font-weight: 600; }
.pj-neu { max-width: 560px; }
@media (max-width: 1300px) { .pj-struktur { grid-template-columns: 1fr; } }
.pj-rechts { text-align: right; white-space: nowrap; }
.pj-notiz { color: var(--mf-text-2); font-size: .78rem; }
.pj-tabelle tr.pj-abgerechnet td { color: var(--mf-text-2); }
.pj-unter { margin: 12px 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mf-text-2); }
.pj-summe { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--th-liste-linie, #edf1f6); font-size: .82rem; }

/* ab 3.99.280: Projektdoku (Pinnwand/Bautagebuch) – am PC und am Handy */
.pj-doku { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.pj-doku-neu { background: #fff; border: 1px solid #d5dde8; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pj-doku-neu textarea, .pj-doku-edit { width: 100%; resize: vertical; border: 1px solid #c9d3e0; padding: 6px 8px; font: inherit; }
.pj-doku-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-doku-arten { display: flex; gap: 0; }
.pj-doku-arten button { border: 1px solid #c9d3e0; background: #fff; padding: 3px 10px; cursor: pointer; margin-left: -1px; font: inherit; font-size: .85rem; }
.pj-doku-arten button.an.pj-art-notiz { background: #eef1f4; border-color: #9aa8b6; }
.pj-doku-arten button.an.pj-art-fortschritt { background: #e3f4ec; border-color: #1f8a5b; color: #12613f; }
.pj-doku-arten button.an.pj-art-problem { background: #fdeaea; border-color: #c62828; color: #a11d1d; }
.pj-doku-bezug { min-width: 220px; flex: 1; }
.pj-doku-knoepfe { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.pj-doku-knoepfe label.mf-knopf { cursor: pointer; }
.pj-doku-knoepfe input[type=file] { display: none; }
.pj-doku-personen { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-doku-personen button { border: 1px solid #b9c8df; background: #f4f7fb; padding: 2px 8px; cursor: pointer; font: inherit; font-size: .85rem; }
.pj-doku-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-doku-leer { padding: 12px 2px; }
.pj-doku-eintrag { background: #fff; border: 1px solid #d5dde8; border-left: 3px solid #9aa8b6; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pj-doku-eintrag.pj-art-fortschritt { border-left-color: #1f8a5b; }
.pj-doku-eintrag.pj-art-problem { border-left-color: #c62828; }
.pj-doku-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.pj-doku-kreis { width: 26px; height: 26px; background: var(--mf-gruen, #0f7a6c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; flex: none; }
.pj-doku-art { font-size: .75rem; padding: 1px 6px; border: 1px solid; }
.pj-doku-art.pj-art-fortschritt { color: #12613f; border-color: #1f8a5b; background: #e3f4ec; }
.pj-doku-art.pj-art-problem { color: #a11d1d; border-color: #c62828; background: #fdeaea; }
.pj-doku-ort { font-size: .75rem; padding: 1px 6px; background: #eef3fb; color: #334155; }
.pj-doku-aktion { margin-left: auto; display: flex; gap: 2px; }
.pj-doku-aktion button { background: none; border: none; cursor: pointer; color: #6b7a90; padding: 2px; }
.pj-doku-aktion button:hover { color: #1d2b3f; }
.pj-doku-text { white-space: normal; line-height: 1.45; overflow-wrap: anywhere; }
.pj-erw { color: var(--mf-blau, #1e4f91); }
.pj-doku-bilder { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-doku-bilder img { width: 110px; height: 110px; object-fit: cover; cursor: zoom-in; border: 1px solid #d5dde8; }
.pj-doku-bild { position: relative; }
.pj-doku-bild img { width: 72px; height: 72px; object-fit: cover; }
.pj-doku-bild button { position: absolute; top: 2px; right: 2px; border: none; background: rgba(0,0,0,.6); color: #fff; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; }
/* Handy */
.pj-mobil { padding-bottom: 24px; }
.pj-mobil-titel { padding: 4px 2px 8px; display: flex; flex-direction: column; }
.pj-mobil-titel small { color: #6b7a90; }
.pj-mobil-filter { display: flex; gap: 6px; padding: 4px 0 8px; }
.pj-mobil-eintrag { width: 100%; text-align: left; border: none; background: inherit; font: inherit; cursor: pointer; }
.pj-doku-mobil .pj-doku-knoepfe { margin-left: 0; width: 100%; flex-wrap: wrap; }
.pj-doku-mobil .pj-doku-knoepfe > * { flex: 1 1 auto; justify-content: center; }
.pj-doku-mobil .pj-doku-bilder img { width: calc(33% - 4px); height: auto; aspect-ratio: 1; }
.pj-doku-mobil .pj-doku-bezug { min-width: 100%; }

.pj-betrag { text-align: right; }
/* ab 3.99.282: gesprochen vs. getippt, „bitte prüfen“, Aufnahme */
.pj-doku-text { display: flex; flex-direction: column; gap: 6px; }
.pj-doku-stimme { display: flex; gap: 8px; background: #f0f5fd; border-left: 3px solid #5b7fb8; padding: 6px 8px; }
.pj-doku-stimme-sym { flex: none; color: #5b7fb8; }
.pj-doku-pruefen { display: inline-flex; align-items: center; gap: 2px; font-size: .75rem; padding: 1px 6px; background: #fff4d6; color: #7a5600; border: 1px solid #e0b84a; }
.pj-doku-audio { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-doku-audio audio { height: 32px; max-width: 100%; }
.pj-einst { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.pj-einst select { padding: 4px 6px; border: 1px solid #c9d3e0; font: inherit; }
.pj-einst-unterwegs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; } /* ab 3.99.283 */
/* ab 3.99.282: eingebettet in die Projektmaske (Reiter/Komponentenfeld) */
.pj-eingebettet { height: auto; }
.pj-eingebettet .korr-inhalt { padding: 0; overflow: visible; }
.pj-eingebettet .vw-karte { box-shadow: none; }
.pj-speicherleiste { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 6px 8px; background: #fff8e6; border: 1px solid #f0d58a; margin-bottom: 8px; }
.pj-speicherleiste span { margin-right: auto; color: #7a5600; font-size: .85rem; }
.pj-doku-herkunft { display: inline-flex; align-items: center; color: #6b7a90; }
.pj-doku-herkunft .pj-weit { color: #c27a00; }

/* ab 3.99.282: Fotos markieren/drehen – Zeichnung als eigene Ebene über dem Foto (Vorschau im echten Seitenverhältnis, damit die Ebene passt) */
.pj-doku-fotorahmen { position: relative; display: inline-block; line-height: 0; }
.pj-doku-bilder .pj-doku-fotorahmen img { width: auto; height: 110px; max-width: none; object-fit: contain; }
.pj-doku-zeichnung { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pj-doku-fotoknopf { position: absolute; right: 3px; bottom: 3px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: rgba(15, 23, 42, .65); color: #fff; cursor: pointer; padding: 0; }
.pj-doku-fotoknopf:hover { background: var(--mf-blau); }
.pj-doku-mobil .pj-doku-bilder .pj-doku-fotorahmen img { width: auto; height: 96px; aspect-ratio: auto; }
.pj-doku-mobil .pj-doku-fotoknopf { width: 34px; height: 34px; }
.pj-mobil-ag { font-weight: 400; color: #475569; } /* ab 3.99.283: Auftraggeber neben dem Projektnamen */

/* ab 3.99.283: Tageskopf mit Wetter in der Projektdoku */
.pj-doku-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 6px; padding: 4px 2px; border-bottom: 1px solid var(--mf-linie, #d5dde8); }
.pj-doku-tag-datum { font-weight: 600; color: var(--mf-text, #1c2b31); }
.pj-doku-wetter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #475569; font-size: .9em; }
.pj-doku-wetter > span { display: inline-flex; align-items: center; gap: 3px; }
.pj-doku-wetter .mud-icon-root { color: var(--mf-blau); }
.pj-doku-dwd { font-size: .78em; color: #94a3b8; }

/* ab 3.99.283 (P11-07 … P11-17): Reiter „Kosten“ – Soll/Ist, Kalkulation, Buchungen; eckige Balken im Inntec-ONE-Stil */
.pj-kosten { display: flex; flex-direction: column; gap: 8px; max-width: 1280px; }
.pj-kosten-kopf { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pj-kosten-kopf .vw-fakt { border-radius: 0; }
.pj-kosten-aktionen { display: flex; gap: 6px; align-items: center; }
.pj-kosten-gesamt { display: flex; flex-direction: column; gap: 4px; }
.pj-kosten-legende { display: flex; gap: 14px; font-size: .74rem; color: var(--mf-text-2, #5b6b80); }
.pj-kosten-legende i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.pj-leg-ist { background: #2f6fb5; } .pj-leg-plan { background: #1c2b31; width: 3px !important; }
.pj-kosten-hinweis { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #7a5600; border-left: 3px solid #e0b84a; padding: 4px 8px; }
.pj-balken { position: relative; height: 14px; border: 1px solid var(--th-rahmen, #c9d4e2); background: var(--th-feld, #fff); min-width: 120px; }
.pj-balken.gross { height: 22px; }
.pj-balken > i { position: absolute; left: 0; top: 0; bottom: 0; background: #2f6fb5; }
.pj-balken > i.warn { background: #e48a1e; } .pj-balken > i.ueber { background: #c62828; }
.pj-balken > b { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: #1c2b31; }
.pj-balken > span { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: .66rem; font-weight: 600; color: #1c2b31; mix-blend-mode: normal; }
.pj-balken.gross > span { font-size: .78rem; }
.pj-balken-spalte { width: 28%; }
.pj-abschnitt { border: 1px solid var(--th-rahmen, #c9d4e2); }
.pj-abschnitt-kopf { display: flex; width: 100%; align-items: center; gap: 6px; padding: 5px 8px; border: 0; background: var(--th-tabellenkopf, #f3f6fa); cursor: pointer; font: inherit; font-size: .84rem; text-align: left; }
.pj-abschnitt-kopf span { margin-left: auto; color: var(--mf-text-2, #5b6b80); font-size: .8rem; }
.pj-abschnitt-inhalt { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.pj-summenzeile td { font-weight: 600; border-top: 2px solid var(--th-rahmen, #c9d4e2); }
.pj-schlecht { color: #b91c1c; } .pj-gut { color: #12613f; } .pj-offen { color: #b45309; font-weight: 600; }
.pj-kalk-versionen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pj-kalk-versionen small { color: var(--mf-text-2, #5b6b80); margin-left: 4px; }
.pj-massgeblich { color: #1f8a5b; vertical-align: -3px; }
.pj-kalk-kopf, .pj-buchen-felder { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .82rem; }
.pj-kalk-kopf input:not([type=checkbox]), .pj-buchen-felder input, .pj-dazu input.pj-text, .pj-kosten-einst input { font: inherit; font-size: .82rem; height: 24px; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
.pj-kalk-kopf .aw, .pj-buchen-felder .aw { min-width: 180px; }
.pj-tabelle .pj-zahl, input.pj-zahl { width: 96px; text-align: right; }
input.pj-einheit { width: 56px; }
input.pj-text { width: 320px; }
input.pj-text-kurz { width: 80px; }
.pj-auswahl-kurz { min-width: 150px; }
.pj-kalk td { padding: 2px 4px; }
.pj-buchen { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 8px; border-bottom: 1px solid var(--th-liste-linie, #edf1f6); }
.pj-buchen-summe { font-weight: 600; }
.pj-zuordnen { border-radius: 0; }
.pj-kosten-einst { display: flex; flex-direction: column; gap: 6px; }
.pj-kosten-einst h3 { margin: 0; font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.pj-kosten-einst-zeile { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .82rem; }
.pj-kosten-einst-zeile label { margin-left: 8px; }
.pj-saetze .aw { min-width: 170px; }
.pj-projektwahl { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pj-projektwahl.kompakt .aw { min-width: 140px; }
.pj-projektwahl .aw { min-width: 200px; }
.pj-tabelle th.pj-rechts { text-align: right; }
.pj-kalk-kopf .aw, .pj-buchen-felder .aw, .pj-kosten-einst-zeile .aw { width: 210px; flex: 0 0 auto; }
.pj-tabelle input.pj-zahl { width: 90px; text-align: right; }
.pj-tabelle input.pj-einheit { width: 56px; }
.pj-kalk td.pj-kalk-text { width: 28%; }
.pj-kalk td.pj-kalk-struktur .aw { min-width: 160px; }
.pj-kalk-versionen .korr-filter.an small { color: inherit; opacity: .85; }
.pj-buchen .pj-doku-arten button.an { background: #eef1f4; border-color: #9aa8b6; font-weight: 600; }
.pj-buchen-felder .aw.pj-artikel { width: 380px; }
.pj-dazu input.pj-text { width: 440px; }
/* ab 3.99.283 (P11-39): Projekt-Übersicht als Dashboard – Grundbausteine aus Shop → Auswertungen (aw-modul, awx-kpi, awx-rang, mrr.awAnimieren) */
.pj-dash { container-type: inline-size; }
.pj-dash-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.pj-dash-l { font-size: .78rem; font-weight: 600; color: #52606d; }
.pj-dash .aw-raster.pj-dash-raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
@container (min-width: 900px) { .pj-dash-zwei { grid-column: span 2; } }
.aw-modul > header > small { font-size: .72rem; }
.pj-dash .awx-kpis.pj-dash-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pj-dash .pj-dash-kpis .awx-zeile b { font-size: 1.45rem; }
.pj-dash-kpis .awx-kpi { border-top: 3px solid #0f766e; }
.pj-dash-kpis .awx-kpi.pj-dash-rot { border-top-color: #c62828; }
.pj-dash-kpis .awx-kpi.pj-dash-rot .awx-zeile b { color: #b91c1c; }
.pj-dash-kpis .awx-kpi.pj-dash-gelb { border-top-color: #eda100; }
.pj-dash-kpis .awx-kpi.pj-dash-gelb .awx-zeile b { color: #92600a; }
.pj-dash-liste { display: flex; flex-direction: column; max-height: 390px; overflow: auto; }
.pj-dash-zeile { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 4px; border-top: 1px solid #eef2f6; cursor: pointer; font-size: .8rem; }
.pj-dash-zeile:first-child { border-top: 0; }
.pj-dash-zeile:hover { background: #f1f5f9; }
.pj-dash-zeile:focus-visible { outline: 2px solid var(--mf-blau, #2f5fae); outline-offset: -2px; }
.pj-dash-zeile.rot > .mud-icon-root { color: #c62828; }
.pj-dash-zeile.gelb > .mud-icon-root { color: #c27a00; }
.pj-dash-name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.pj-dash-name, .pj-dash-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-dash-name small { font-weight: 400; font-size: .72rem; color: #64748b; }
.pj-dash-wann { font-size: .72rem; color: #64748b; white-space: nowrap; }
.pj-dash-zeile.rot .pj-dash-wann { color: #b91c1c; font-weight: 600; }
.pj-dash-klick { cursor: pointer; border-radius: 4px; }
.pj-dash-klick:hover { background: #f1f5f9; }
.pj-dash-kreis.pj-doku-kreis { width: 22px; height: 22px; font-size: .62rem; }
.pj-dash-punkt { width: 10px; height: 10px; border-radius: 3px; }
.pj-dash-summe { margin-top: 8px; }
.pj-dash-aktiv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.pj-dash-karte { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pj-dash-karte:hover { border-color: #0f766e; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.pj-dash-karte-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .84rem; }
.pj-dash-karte-kopf b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-dash-status { font-size: .66rem; padding: 1px 7px; border-radius: 9px; color: #fff; background: var(--f, #64748b); white-space: nowrap; }
.pj-dash-karte-text { font-size: .76rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pj-dash-fotos { display: flex; gap: 4px; overflow: hidden; }
.pj-dash-fotos img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid #e2e8f0; flex: none; }
@container (max-width: 500px) { .pj-dash .awx-kpis.pj-dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-dash .pj-dash-kpis .awx-zeile b { font-size: 1.3rem; } .pj-dash-fotos img { width: 48px; height: 48px; } }
/* Umschalter Dashboard | Liste in der Leiste */
.pj-ansicht-wahl { display: inline-flex; border: 1px solid #c9d4e2; background: #fff; }
.pj-ansicht-wahl button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: .78rem; color: #46566b; }
.pj-ansicht-wahl button + button { border-left: 1px solid #c9d4e2; }
.pj-ansicht-wahl button.an { background: var(--mf-blau, #2f5fae); color: #fff; }
.pj-dash-korr .korr-inhalt.pj-dash-ohne { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pj-dash-korr .korr-inhalt.pj-dash-ohne > .pj-dash { flex: 1; }

/* ab 3.99.283 (P11-40): Projektdoku durchsuchen und filtern */
.pj-doku-suche { display: flex; flex-direction: column; gap: 6px; }
.pj-doku-suchzeile { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pj-doku-suchfeld { flex: 1 1 260px; display: flex; align-items: center; gap: 4px; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #c9d3e0); padding: 0 6px; min-height: 28px; }
.pj-doku-suchfeld .mud-icon-root { color: #6b7a90; flex: none; }
.pj-doku-suchfeld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .88rem; padding: 4px 2px; }
.pj-doku-suchfeld input::-webkit-search-cancel-button { display: none; }
.pj-doku-suchfeld button { all: unset; cursor: pointer; display: inline-flex; color: #6b7a90; padding: 2px; }
.pj-doku-suchfeld button:hover { color: #1d2b3f; }
.pj-doku-suchfeld:focus-within { border-color: var(--mf-blau, #2f5fae); }
.pj-doku-filterfelder { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; padding: 8px 10px; border: 1px solid var(--th-rahmen, #d5dde8); background: var(--th-feld, #fff); }
.pj-doku-ff { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; color: #52606d; min-width: 150px; flex: 0 1 180px; }
.pj-doku-ff-breit { flex-basis: 240px; }
.pj-doku-ff-datum { min-width: 0; flex: 0 0 auto; }
.pj-doku-ff input[type=date] { height: 26px; border: 1px solid var(--th-feldrand, #c9d3e0); padding: 0 4px; font: inherit; font-size: .82rem; background: var(--th-feld, #fff); }
.pj-doku-haken { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; white-space: nowrap; height: 26px; }
.pj-doku-treffer { font-size: .78rem; color: #52606d; }
mark.pj-treffer { background: #fde68a; color: inherit; padding: 0 1px; }
.pj-doku-mehr { align-self: center; }
.pj-doku-suche.mobil .pj-doku-suchfeld { min-height: 38px; }
.pj-doku-suche.mobil .pj-doku-suchfeld input { font-size: 1rem; }
.pj-doku-suche.mobil .pj-doku-suchzeile { flex-wrap: nowrap; }
.pj-doku-suche.mobil .pj-doku-suchfeld { flex: 1 1 0; min-width: 0; }
.pj-doku-suche.mobil .pj-doku-suchzeile > .mf-knopf { flex: none; min-height: 38px; }
.pj-doku-suche.mobil .pj-doku-filterfelder { gap: 8px 10px; }
.pj-doku-suche.mobil .pj-doku-ff { flex: 1 1 100%; min-width: 0; font-size: .85rem; }
.pj-doku-suche.mobil .pj-doku-ff-datum { flex: 1 1 calc(50% - 10px); }
.pj-doku-suche.mobil .pj-doku-ff-datum input { width: 100%; box-sizing: border-box; }
.pj-doku-suche.mobil .pj-doku-haken { flex: 1 1 calc(50% - 10px); }
.pj-doku-suche.mobil .pj-doku-ff input[type=date] { height: 36px; font-size: 1rem; }
.pj-doku-suche.mobil .pj-doku-haken { height: 34px; font-size: .95rem; }

/* ab 3.99.283 (P11-48): Knopf „Aufgaben erkennen“ direkt vor Bearbeiten/Löschen */
.pj-doku-aufgaben + .pj-doku-aktion { margin-left: 0; }
/* ab 3.99.283 (P11-19/P11-52/P11-03): Reiter „Termine“ (Balkenplan, Liste, Gewährleistung) und „Beteiligte“ im Reiter „Team“ – eckiger Inntec-ONE-Stil */
.pj-tm { display: flex; flex-direction: column; gap: 8px; }
.pj-tm-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pj-tm-zoom { display: inline-flex; gap: 4px; margin-left: 10px; }
.pj-tm-zoom .korr-filter { border-radius: 0; }
.pj-tm-ungespeichert { font-size: .74rem; color: #9a5b00; background: #fff6e8; border: 1px solid #e48a1e; padding: 1px 6px; }
.pj-gantt { display: flex; border: 1px solid var(--th-rahmen, #d5dde8); background: var(--th-feld, #fff); font-size: .78rem; }
.pj-gantt-links { flex: 0 0 240px; border-right: 1px solid var(--th-rahmen, #d5dde8); min-width: 0; }
.pj-gantt-rechts { flex: 1 1 auto; overflow-x: auto; min-width: 0; }
.pj-gantt-flaeche { position: relative; }
.pj-gantt-kopf { height: 40px; border-bottom: 1px solid var(--th-rahmen, #d5dde8); background: var(--th-tabellenkopf, #f3f6fa); color: var(--th-tabellenkopf-text, #2c3e57); box-sizing: border-box; }
.pj-gantt-links .pj-gantt-kopf { display: flex; align-items: flex-end; padding: 0 8px 4px; font-weight: 600; }
.pj-gantt-monate, .pj-gantt-wochen { display: flex; height: 20px; }
.pj-gantt-monate span, .pj-gantt-wochen span { flex: none; box-sizing: border-box; border-left: 1px solid var(--th-rahmen, #d5dde8); padding: 2px 4px; white-space: nowrap; overflow: hidden; line-height: 16px; }
.pj-gantt-monate span { font-weight: 600; }
.pj-gantt-wochen span { font-size: .7rem; color: #5b6b80; border-top: 1px solid var(--th-rahmen, #d5dde8); }
.pj-gantt-name { height: 28px; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--th-liste-linie, #edf1f6); box-sizing: border-box; overflow: hidden; }
.pj-gantt-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.pj-gantt-name small { font-size: .66rem; color: #6b7a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.pj-gantt-name.ueber span { color: #b91c1c; font-weight: 600; }
/* Wochenraster: Wochenende schattiert, Linie je Montag (Raster beginnt immer an einem Montag) */
.pj-gantt-zeilen { position: relative;
    background-image: linear-gradient(to right, var(--th-rahmen, #d5dde8) 1px, transparent 1px),
        linear-gradient(to right, transparent calc(var(--tag) * 5), rgba(100, 116, 139, .08) calc(var(--tag) * 5));
    background-size: calc(var(--tag) * 7) 100%, calc(var(--tag) * 7) 100%; }
.pj-gantt-zeile { position: absolute; left: 0; right: 0; height: 28px; border-bottom: 1px solid var(--th-liste-linie, #edf1f6); box-sizing: border-box; }
.pj-gantt-balken { position: absolute; top: 7px; height: 14px; background: #c9d8f0; border: 1px solid #3a6cc2; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; }
.pj-gantt-fort { position: absolute; left: 0; top: 0; bottom: 0; background: #3a6cc2; }
.pj-gantt-balken span { position: relative; font-size: .64rem; font-weight: 600; color: #fff; padding-left: 4px; text-shadow: 0 0 2px rgba(0,0,0,.45); white-space: nowrap; }
.pj-gantt-balken.fertig { background: #1f8a5b; border-color: #12613f; }
.pj-gantt-balken.fertig .pj-gantt-fort { background: #1f8a5b; }
.pj-gantt-balken.ueber { background: #f6caca; border-color: #c62828; }
.pj-gantt-balken.ueber .pj-gantt-fort { background: #c62828; }
.pj-gantt-balken.konflikt { border: 1px dashed #e48a1e; }
.pj-gantt-meilenstein { position: absolute; top: 7px; width: 14px; height: 14px; background: #2c3e57; transform: rotate(45deg); box-sizing: border-box; }
.pj-gantt-meilenstein.fertig { background: #1f8a5b; }
.pj-gantt-meilenstein.ueber { background: #c62828; }
.pj-gantt-text { position: absolute; top: 6px; font-size: .68rem; color: #52606d; white-space: nowrap; }
.pj-gantt-heute { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #c62828; z-index: 2; pointer-events: none; }
.pj-gantt-pfeile { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.pj-gantt-pfeile path { fill: none; stroke: #6b7a90; stroke-width: 1.2; }
.pj-gantt-pfeile path.konflikt { stroke: #e48a1e; stroke-dasharray: 3 2; }
.pj-gantt-pfeile marker path { fill: #6b7a90; stroke: none; }
.pj-tm-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: .72rem; color: #52606d; }
.pj-tm-legende span { display: inline-flex; align-items: center; gap: 4px; }
.pj-tm-legende i { display: inline-block; width: 16px; height: 9px; border: 1px solid #3a6cc2; background: #c9d8f0; }
.pj-tm-legende i.pj-leg-erledigt { background: #1f8a5b; border-color: #12613f; }
.pj-tm-legende i.pj-leg-ueber { background: #f6caca; border-color: #c62828; }
.pj-tm-legende i.pj-leg-meil { width: 9px; background: #2c3e57; border: none; transform: rotate(45deg); }
.pj-tm-legende i.pj-leg-heute { width: 0; height: 12px; border: none; border-left: 2px solid #c62828; background: none; }
.pj-tm-legende i.pj-leg-pfeil { height: 0; border: none; border-top: 1px solid #6b7a90; background: none; }
.pj-tm-liste td { padding: 3px 4px; }
.pj-tm-liste input[type=date] { width: 128px; }
.pj-tm-liste .pj-tm-name { min-width: 180px; }
.pj-tm-liste .pj-tm-wer { min-width: 140px; }
.pj-tm-liste .pj-tm-struktur { min-width: 140px; }
.pj-tm-liste .pj-tm-gewerk { min-width: 110px; }
.pj-tm-liste .pj-tm-vorg { min-width: 150px; white-space: nowrap; }
.pj-tm-liste .pj-tm-vorg .aw { display: inline-flex; width: calc(100% - 22px); }
.pj-tm-liste .pj-tm-aktion { white-space: nowrap; }
.pj-tm-liste .pj-zahl, .pj-tm-gw .pj-zahl, .pj-tm-vorgabe .pj-zahl { width: 58px; text-align: right; }
.pj-tm-fortschritt { white-space: nowrap; }
.pj-tm-liste tr.pj-tm-ueber .pj-tm-name input, .pj-tm-liste tr.pj-tm-ueber input[type=date] { color: #b91c1c; font-weight: 600; border-color: #e6a3a3; }
.pj-tm-liste tr.pj-tm-fertig .pj-tm-name input { color: #12613f; }
.pj-tm-warn { color: #e48a1e; vertical-align: middle; }
.pj-tm-karten { display: none; flex-direction: column; gap: 6px; }
.pj-tm-karte { border: 1px solid var(--th-rahmen, #d5dde8); border-left: 4px solid #3a6cc2; background: var(--th-feld, #fff); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.pj-tm-karte.fertig { border-left-color: #1f8a5b; }
.pj-tm-karte.ueber { border-left-color: #c62828; }
.pj-tm-karte.ueber .pj-tm-karte-zeit { color: #b91c1c; font-weight: 600; }
.pj-tm-karte-kopf { display: flex; gap: 6px; align-items: center; font-size: 1rem; }
.pj-tm-karte-zeit { font-size: .9rem; }
.pj-tm-karte-zusatz { font-size: .8rem; color: #6b7a90; }
.pj-tm-marke { margin-left: auto; font-size: .72rem; padding: 1px 6px; border: 1px solid; }
.pj-tm-marke.ueber { color: #a11d1d; border-color: #c62828; background: #fdeaea; }
.pj-tm-marke.fertig { color: #12613f; border-color: #1f8a5b; background: #e3f4ec; }
.pj-tm-karte-fort { display: flex; align-items: center; gap: 6px; }
.pj-tm-karte-balken { flex: 1; height: 8px; background: #e2e8f0; }
.pj-tm-karte-balken div { height: 100%; background: #3a6cc2; }
.pj-tm-karte.fertig .pj-tm-karte-balken div { background: #1f8a5b; }
.pj-tm-karte.ueber .pj-tm-karte-balken div { background: #c62828; }
.pj-tm-karte-fort input { width: 64px; font-size: 1rem; padding: 4px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); text-align: right; }
.pj-tm-gw-titel { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.pj-tm-gw input[type=date] { width: 128px; }
.pj-tm-gw-zustand { font-size: .74rem; padding: 1px 6px; border: 1px solid #b8c2cc; background: #eef3fb; color: #334155; white-space: nowrap; }
.pj-tm-gw-zustand.z0 { border-color: #cbd5e1; background: transparent; color: #6b7a90; }
.pj-tm-gw-zustand.z2 { border-color: #e48a1e; background: #fff6e8; color: #9a5b00; }
.pj-tm-gw-zustand.z3 { border-color: #c62828; background: #fdeaea; color: #a11d1d; }
.pj-tm-vorgabe { font-size: .78rem; color: #52606d; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pj-tm-vorgabe input { font: inherit; padding: 2px 4px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
@media (max-width: 760px) {
    .pj-tm-nur-pc { display: none !important; }
    .pj-tm-karten { display: flex; }
    .pj-tm-gw { display: block; overflow-x: auto; }
}
.pj-bt { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.pj-bt-kopf { display: flex; align-items: center; gap: 6px; }
.pj-bt-kopf h3 { margin: 0; }
.pj-bt-liste .pj-bt-rolle { min-width: 170px; }
.pj-bt-liste .pj-bt-adr { min-width: 240px; }
.pj-bt-liste .pj-bt-ansp { min-width: 160px; }
.pj-bt-liste tr.pj-bt-stamm td { background: rgba(58, 108, 194, .05); }
.pj-bt-kontakt { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .76rem; color: #52606d; }
.pj-bt-kontakt a { color: inherit; display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.pj-bt-kontakt a:hover { color: var(--mf-blau, #3a6cc2); }
@media (max-width: 760px) { .pj-bt-liste { display: block; overflow-x: auto; } }
/* ab 3.99.283 (P11-45): Formulare und Checklisten in der Projektdoku (Protokoll) */
.pj-fo-wahl { display: flex; flex-direction: column; gap: 4px; }
.pj-fo-suche { margin: 4px 0 6px; }
.pj-fo-gruppe { font-size: .78rem; font-weight: 700; color: var(--mf-gruen, #0f7a6c); text-transform: uppercase; letter-spacing: .03em; margin-top: 8px; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); padding-bottom: 2px; }
.pj-fo-eintrag { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: none; padding: 6px 8px; cursor: pointer; font: inherit; font-size: .88rem; }
.pj-fo-eintrag:hover { border-color: var(--th-rahmen, #cbd5e1); background: var(--th-hover, #f1f5f9); }
.pj-fo-eintrag small { margin-left: auto; }
.pj-fo { display: flex; flex-direction: column; gap: 8px; }
.pj-fo-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .9rem; }
.pj-fo-einleitung { font-size: .85rem; color: var(--th-text-zweit, #475569); }
.pj-fo-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 12px; }
.pj-fo-abschnitt { font-weight: 700; color: var(--mf-gruen, #0f7a6c); border-bottom: 2px solid var(--mf-gruen, #0f7a6c); padding: 6px 0 2px; margin-top: 6px; font-size: .92rem; }
.pj-fo-hinweis { font-size: .8rem; color: #8a5a00; border-left: 3px solid #e0a100; padding: 4px 8px; background: #fff8e6; }
.pj-fo-linie { border: 0; border-top: 1px solid var(--th-rahmen, #cbd5e1); margin: 2px 0; }
.pj-fo-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pj-fo-label { font-size: .8rem; font-weight: 600; }
.pj-fo-pflicht { color: #b91c1c; margin-left: 3px; }
.pj-fo-eingabe { width: 100%; box-sizing: border-box; font: inherit; font-size: .88rem; padding: 4px 8px; min-height: 28px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
textarea.pj-fo-eingabe { resize: vertical; }
.pj-fo-zahl { display: flex; align-items: center; gap: 6px; }
.pj-fo-zahl .pj-fo-eingabe { max-width: 220px; }
.pj-fo-datum { max-width: 200px; }
.pj-fo-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-fo-mehrfach { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; }
.pj-fo-haken { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pj-fo-liste { display: flex; flex-direction: column; gap: 4px; }
.pj-fo-listzeile { display: flex; align-items: center; gap: 4px; }
.pj-fo-fotos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pj-fo-fotoknoepfe { display: inline-flex; gap: 4px; }
.pj-fo-fotoknoepfe input[type=file] { display: none; }
.pj-fo-feld.fehler .pj-fo-eingabe, .pj-fo-feld.fehler .pj-fo-chips, .pj-fo-feld.fehler .pj-fo-mehrfach { outline: 2px solid #dc2626; outline-offset: 1px; }
.pj-fo-fehler { color: #b91c1c; font-size: .78rem; }
/* am Handy: eine Spalte, große Felder und Knöpfe */
.pj-fo.mobil .pj-fo-raster { grid-template-columns: 1fr; gap: 12px; }
.pj-fo.mobil .pj-fo-eingabe { min-height: 42px; font-size: 1rem; padding: 8px 10px; }
.pj-fo.mobil .pj-fo-label { font-size: .9rem; }
.pj-fo.mobil .pj-fo-chips .korr-filter { min-height: 40px; min-width: 64px; font-size: .95rem; }
.pj-fo.mobil .pj-fo-haken { min-height: 36px; font-size: .95rem; }
.pj-fo.mobil .pj-fo-haken input { width: 20px; height: 20px; }
.pj-fo.mobil .pj-fo-zahl .pj-fo-eingabe, .pj-fo.mobil .pj-fo-datum { max-width: none; }
.pj-fo-dialog .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }

/* Anzeige im Eintrag */
.pj-fo-anzeige { border: 1px solid var(--th-rahmen, #d5dde8); border-left: 3px solid #e0a100; margin-top: 6px; }
.pj-fo-anzeige.zu { border-left-color: var(--mf-gruen, #0f7a6c); }
.pj-fo-anzeige-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 8px; }
.pj-fo-auf { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; font-size: .88rem; color: inherit; }
.pj-fo-status { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 600; padding: 1px 6px; border: 1px solid; }
.pj-fo-status.zu { color: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); }
.pj-fo-status.offen { color: #8a5a00; border-color: #e0a100; }
.pj-fo-anzeige-knoepfe { margin-left: auto; display: inline-flex; gap: 4px; }
.pj-fo-anzeige-knoepfe a.mf-knopf { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pj-fo-antworten { border-top: 1px solid var(--th-rahmen, #e2e8f0); padding: 4px 8px 8px; display: flex; flex-direction: column; font-size: .82rem; }
.pj-fo-antwort-abschnitt { font-weight: 700; color: var(--mf-gruen, #0f7a6c); margin-top: 6px; }
.pj-fo-antwort { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px; padding: 2px 0; border-bottom: 1px dotted var(--th-rahmen, #e2e8f0); }
.pj-fo-antwort-label { color: var(--th-text-zweit, #475569); }
.pj-fo-antwort-wert { white-space: pre-line; }
.pj-fo-antwort-wert.leer { color: #94a3b8; }
.pj-fo-antwort-wert.jn-ja { color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.pj-fo-antwort-wert.jn-nein { color: #b91c1c; font-weight: 600; }
.pj-fo-antworten .pj-us-karte { margin-top: 8px; align-self: flex-start; }
@media (max-width: 600px) { .pj-fo-antwort { grid-template-columns: 1fr; gap: 0; } .pj-fo-anzeige-knoepfe { margin-left: 0; } }

/* ab 3.99.283 (P11-06): Projektvorlagen */
.pj-vl { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.pj-vl-leiste { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 4px 12px 6px; }
.pj-vl-liste { display: flex; flex-direction: column; max-height: 300px; overflow: auto; border: 1px solid var(--th-rahmen, #e2e8f0); }
.pj-vl-eintrag { display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.pj-vl-eintrag:hover { background: var(--th-hover, #f1f5f9); }
.pj-vl-eintrag.an { background: #e6f4f1; outline: 1px solid var(--mf-gruen, #0f7a6c); }
.pj-vl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pj-vl-art { font-size: .72rem; border: 1px solid var(--th-rahmen, #cbd5e1); padding: 0 4px; margin-left: 4px; }
.pj-vl-weg { background: none; border: 0; cursor: pointer; color: #64748b; }
.pj-vl-weg:hover { color: #b91c1c; }
.pj-vl-zeile { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; }
.pj-vl-zeile input.einfach { font: inherit; padding: 3px 8px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
.pj-vl-haken { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.pj-vl-haken > span { width: 122px; font-weight: 600; }
.pj-vl-haken label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pj-vl-hinweis { color: #8a5a00; font-size: .8rem; }

/* ab 3.99.285 (Rene 14.11.2026 10:20): Projektdoku kompakter – Tageskopf grün hervorgehoben, Einträge ohne Abstand, Kopfzeile des Eintrags hellgrau */
.pj-doku-tag { margin: 14px 0 0; padding: 5px 10px; background: #dff1ea; border: 1px solid #b9dccf; border-left: 3px solid var(--mf-blau, #0f766e); color: #0d4f45; }
.pj-doku-tag-datum { color: #0d4f45; }
.pj-doku-tag .pj-doku-wetter { color: #1f5e55; }
.pj-doku > .pj-doku-tag + .pj-doku-eintrag { margin-top: -11px; }
.pj-doku > .pj-doku-eintrag + .pj-doku-eintrag { margin-top: -11px; }
.pj-doku-eintrag > .pj-doku-kopf { margin: -8px -10px 0; padding: 5px 10px; background: #eef1f4; border-bottom: 1px solid #e1e6ec; }
/* Rene 10:25: Tageskopf in „unserem Grün“ wie das Kürzel (RE) – voll hinterlegt, weiße Schrift */
.pj-doku-tag { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); border-left-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.pj-doku-tag .pj-doku-tag-datum, .pj-doku-tag .pj-doku-wetter, .pj-doku-tag .pj-doku-wetter .mud-icon-root { color: #fff; }
.pj-doku-tag .pj-doku-dwd { color: rgba(255,255,255,.7); }
/* Rene 10:21/10:26: am PC Fotos rechts neben dem Text (spart Höhe), im Eintrag nur die Uhrzeit (Datum steht im Tageskopf); am Handy unverändert untereinander */
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 0; align-items: start; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > * { grid-column: 1; margin-top: 6px; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > .pj-doku-kopf { margin-top: -8px; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > .pj-doku-kopf { grid-column: 1 / -1; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > .pj-doku-bilder { grid-column: 2; grid-row: 2 / span 8; justify-content: flex-end; flex-wrap: wrap; max-width: 380px; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > .pj-doku-bilder .pj-doku-fotorahmen img { height: 84px; }

/* ab 3.99.286 (Rene 14.11.2026 10:50 „Grundsatz: alle neuen Masken dieselbe Schriftgröße wie im Titelarchiv“):
   Text wie die Eingabefelder (.78rem), Beschriftungen/Knöpfe wie die Feldbeschriftungen (.76rem), graue Kopfzeile kleiner (.7rem) */
.pj-doku { font-size: .78rem; }
.pj-doku .pj-doku-text, .pj-doku .pj-doku-stimme, .pj-doku-neu textarea, .pj-doku-edit, .pj-doku input, .pj-doku select { font-size: .78rem; }
.pj-doku .pj-doku-arten button, .pj-doku .mf-knopf, .pj-doku label, .pj-doku .pj-doku-tag, .pj-doku .pj-doku-wetter { font-size: .76rem; }
.pj-doku .pj-doku-eintrag > .pj-doku-kopf, .pj-doku .pj-doku-eintrag > .pj-doku-kopf * { font-size: .7rem; }
.pj-doku .pj-doku-eintrag > .pj-doku-kopf .pj-doku-kreis { width: 22px; height: 22px; font-size: .64rem; }
.pj-doku .pj-doku-eintrag > .pj-doku-kopf .mud-icon-root { font-size: 1.05rem; }
.pj-doku .pj-doku-eintrag > .pj-doku-kopf { padding: 3px 10px; }
/* Rene 10:52/10:54 „warum blau?“: Inntec-ONE-Farben statt Blau – Sprachnotiz-Text hellgrau mit grüner Linie, Status „beauftragt“ grün (Dashboard) */
/* ab 3.99.293 (Rene 14.11.2026 19:15 „Hintergrund weg, nur das Mikrofon – hellgrau und kleiner vorne“) */
.pj-doku-stimme { background: none; border-left: 0; padding: 0; gap: 4px; align-items: flex-start; }
.pj-doku-stimme .pj-doku-stimme-sym { color: #b4bcc6; font-size: .9rem; width: .9rem; height: .9rem; margin-top: 1px; }
/* ab 3.99.287: Abstand der Knopfleisten unter den Reitern (Termine, Pläne) */
.pj-tm > .pj-tm-leiste, .pl-leiste { margin-top: 8px; }
/* ab 3.99.287: Projektliste unter dem Dashboard */
.pj-dash-ohne > .pj-dash-liste { margin: 0 14px 14px; }
.pj-dash-ohne > .pj-dash-liste > header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e5eaf0; }
.pj-dash-ohne > .pj-dash-liste > header h3 { margin: 0 8px 0 0; font-size: .86rem; font-weight: 500; }
.pj-dash-ohne > .pj-dash-liste > header small { margin-left: auto; }
.pj-dash-korr .korr-inhalt.pj-dash-ohne:has(> .pj-dash-liste) { overflow: auto; background: #f1f5f9; }
.pj-dash-korr .korr-inhalt.pj-dash-ohne:has(> .pj-dash-liste) > .pj-dash { flex: none; overflow: visible; }
.pj-dash-ohne > .pj-dash-liste { margin: 0 12px 12px; background: #fff; border: 1px solid #e5eaf0; flex: none; min-height: 260px; display: flex; flex-direction: column; }
/* ===== ab 3.99.288: Bautagebuch-Tag, Tickets, Fotos, Handy-Leiste (Schriftgrößen wie Titelarchiv, unser Grün) ===== */
.pj-doku-umschalter { display: flex; gap: 6px; padding: 8px 0 6px; }
.pj-tb { font-size: .78rem; max-width: 980px; padding-bottom: 12px; }
.pj-tb-kopf { display: flex; align-items: center; gap: 6px; background: var(--mf-gruen, #0f7a6c); color: #fff; padding: 6px 8px; margin: 4px 0 8px; }
.pj-tb-pfeil { border: 0; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; padding: 2px; }
.pj-tb-pfeil:disabled { opacity: .35; cursor: default; }
.pj-tb-blatt-kopf .pj-tb-pfeil, .pj-tk-blatt-kopf .pj-tb-pfeil { color: #334155; }
.pj-tb-datum { position: relative; display: flex; align-items: center; }
.pj-tb-datum b { font-size: .86rem; font-weight: 600; }
.pj-tb-datum input[type=date] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pj-tb-wetter { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; }
.pj-tb-zu { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; background: rgba(255,255,255,.18); padding: 1px 6px; }
.pj-tb-teil { border: 1px solid #e1e6ec; background: #fff; padding: 6px 10px 8px; margin-bottom: 6px; }
.pj-tb-teil h4 { margin: 0 0 5px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.pj-tb-zeile { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.pj-tb-zeile .feld-eingabe { font-size: .78rem; min-width: 0; flex: 1; }
.pj-tb-zeile input[type=time] { flex: 0 0 110px; }
.pj-tb-zahl { flex: 0 0 64px !important; }
.pj-tb-struktur { flex: 0 0 220px; }
.pj-tb-weg { border: 0; background: transparent; color: #94a3b8; cursor: pointer; display: inline-flex; }
.pj-tb-weg:hover { color: #b91c1c; }
.pj-tb-eigene { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 3px; }
.pj-tb-person { background: #eef1f4; padding: 2px 7px; font-size: .76rem; }
.pj-tb-person small { color: #64748b; }
.pj-tb-texte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.pj-tb-text { display: flex; flex-direction: column; gap: 2px; }
.pj-tb-text > span { font-size: .76rem; color: #475569; }
.pj-tb-text textarea { font-size: .78rem; resize: vertical; }
.pj-tb-zahlen { display: flex; flex-wrap: wrap; gap: 12px; color: #475569; font-size: .76rem; margin-bottom: 5px; }
.pj-tb-fotos { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-tb-fotos img { width: 64px; height: 64px; object-fit: cover; display: block; }
.pj-tb-ende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pj-tb-leer { padding: 14px 4px; color: #64748b; font-size: .78rem; }
.pj-tb-mobil .pj-tb-texte { grid-template-columns: 1fr; }
.pj-tb-mobil .pj-tb-zeile { flex-wrap: wrap; }
.pj-tb-mobil .pj-tb-struktur { flex: 1 1 100%; }
.pj-tb-mobil .pj-tb-abschluss { width: 100%; justify-content: center; min-height: 44px; }
/* Tickets */
.pj-tk { font-size: .78rem; position: relative; }
.pj-tk-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0 6px; }
.pj-tk-gewerk { min-width: 160px; }
.pj-tk-raum { flex: 1; }
.pj-tk-liste { display: flex; flex-direction: column; border: 1px solid #e1e6ec; background: #fff; max-width: 980px; }
.pj-tk-zeile { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #edf0f3; background: #fff; padding: 7px 10px; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.pj-tk-zeile:hover { background: #f6f8fa; }
.pj-tk-zeile.erledigt b { color: #64748b; text-decoration: line-through; text-decoration-color: #b8c2cc; }
.pj-tk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pj-tk-text b { font-weight: 600; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-tk-nr { color: #94a3b8; font-size: .7rem; }
.pj-tk-frist { color: #475569; display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; }
.pj-tk-frist.rot { color: #b91c1c; font-weight: 600; }
/* ab 3.99.299: Fristen-Eskalation – Kennzeichen „eskaliert am …“ (eckig, rot umrandet) */
.pj-tk-eskaliert { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; color: #b91c1c; font-weight: 600; font-size: .7rem; border: 1px solid #b91c1c; border-radius: 0; padding: 0 4px; margin-left: 4px; }
.pj-tk-wer { color: #475569; font-size: .74rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pj-tk-kuerzel { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #e1f5ee; color: #085041; font-size: .62rem; font-weight: 600; align-items: center; justify-content: center; }
.pj-tk-standtext.s0 { color: #b91c1c; } .pj-tk-standtext.s1 { color: #a16207; } .pj-tk-standtext.s2 { color: var(--mf-gruen, #0f7a6c); }
.pj-tk-bild { flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; background: #eef1f4; display: flex; align-items: center; justify-content: center; color: #94a3b8; position: relative; }
.pj-tk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-tk-bild.pj-tk-plan { height: auto; max-height: 56px; }
.pj-tk-bild.pj-tk-plan img { object-fit: fill; }
.pj-tk-bild.pj-tk-plan i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #dc2626; border: 1px solid #fff; }
.pj-tk-zurueck { padding: 8px 0 4px; }
.pj-tk-blatt { background: #fff; border: 1px solid #e1e6ec; padding: 8px 12px 12px; max-width: 720px; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.pj-tk-blatt-kopf { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #edf0f3; padding-bottom: 6px; }
.pj-tk-blatt-kopf b { font-size: .86rem; font-weight: 600; }
.pj-tk-art { margin-left: auto; font-size: .7rem; color: #64748b; background: #eef1f4; padding: 1px 6px; }
.pj-tk-feld { display: flex; flex-direction: column; gap: 2px; }
.pj-tk-feld > span { font-size: .76rem; color: #475569; }
.pj-tk-feld .feld-eingabe { font-size: .78rem; }
.pj-tk-zwei { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; }
.pj-tk-stand { display: flex; gap: 6px; }
.pj-tk-standknopf { flex: 1; border: 1px solid #cfd8e3; background: #fff; padding: 6px 4px; font: inherit; font-size: .78rem; cursor: pointer; }
.pj-tk-standknopf.an.rot { background: #fde8e8; border-color: #dc2626; color: #991b1b; }
.pj-tk-standknopf.an.gelb { background: #fef3c7; border-color: #d97706; color: #92400e; }
.pj-tk-standknopf.an.gruen { background: #e1f5ee; border-color: var(--mf-gruen, #0f7a6c); color: #085041; }
.pj-tk-fotos { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-tk-fotos img { width: 72px; height: 72px; object-fit: cover; display: block; }
.pj-tk-fotoknopf { width: 72px; height: 72px; border: 1px dashed #b8c2cc; display: flex; align-items: center; justify-content: center; color: var(--mf-gruen, #0f7a6c); cursor: pointer; }
.pj-tk-fotoknopf input { display: none; }
.pj-tk-blatt-fuss { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.pj-tk-mobil .pj-tk-liste { border-left: 0; border-right: 0; }
.pj-tk-mobil .pj-tk-zeile { padding: 9px 10px; min-height: 64px; }
.pj-tk-mobil .pj-tk-bild { flex-basis: 60px; width: 60px; height: 60px; }
.pj-tk-mobil .pj-tk-zwei { grid-template-columns: 1fr; }
.pj-tk-mobil .pj-tk-blatt { border-left: 0; border-right: 0; }
.pj-tk-mobil .pj-tk-blatt-fuss .mf-knopf { flex: 1; justify-content: center; min-height: 44px; }
.pj-tk-mobil .pj-tk-standknopf { min-height: 40px; }
/* großer Knopf unten rechts (über der Leiste) */
.pj-fab { position: fixed; right: 14px; bottom: 74px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; background: var(--mf-gruen, #0f7a6c); color: #fff; border: 0; border-radius: 28px; padding: 12px 18px; font: inherit; font-size: .86rem; font-weight: 600; box-shadow: 0 2px 8px rgba(15,23,42,.25); cursor: pointer; }
/* Handy: feste Leiste unten */
.pj-unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; background: #fff; border-top: 1px solid #e1e6ec; padding-bottom: env(safe-area-inset-bottom); }
.pj-unten button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 7px; font: inherit; font-size: .7rem; color: #64748b; position: relative; min-height: 54px; cursor: pointer; }
.pj-unten button.an { color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.pj-unten-zahl { position: absolute; top: 3px; left: calc(50% + 6px); background: #dc2626; color: #fff; font-size: .62rem; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.invm-start.pj-mobil { padding-bottom: 76px; }
/* Fotos am Handy */
.pj-fotos-tag { font-size: .76rem; font-weight: 600; color: #334155; padding: 10px 2px 4px; }
.pj-fotos-tag small { color: #94a3b8; font-weight: 400; margin-left: 4px; }
.pj-fotos-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 3px; }
.pj-fotos-raster img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pj-tb .feld-eingabe, .pj-tk .feld-eingabe { border: 1px solid #cfd8e3; background: #fff; padding: 4px 7px; min-height: 28px; box-sizing: border-box; font-family: inherit; color: #1e293b; }
.pj-tb .feld-eingabe:focus, .pj-tk .feld-eingabe:focus { outline: none; border-color: var(--mf-gruen, #0f7a6c); }
.pj-tb .feld-eingabe:disabled, .pj-tk .feld-eingabe:disabled { background: #f6f8fa; color: #475569; }
.pj-tb-mobil .feld-eingabe, .pj-tk-mobil .feld-eingabe { min-height: 38px; font-size: .86rem; }
.pj-tk-bild.leer { background: transparent; color: #cbd5e1; flex-basis: 32px; width: 32px; }
/* ===== ab 3.99.290 (Rene 14.11.2026, Variante A): Projekte-Startseite – Werkzeugleiste wie in den Masken, schmale Kennzahlen, zwei Kästen, Auswertungen, Liste unten ===== */
.pj-dash { padding: 0 !important; }
.pj-dash > .formular-leiste.pj-start-leiste { position: sticky; top: 0; z-index: 3; }
.pj-start-leiste .pj-dash-l { font-size: .76rem; font-weight: 400; color: #64748b; margin-left: 2px; }
.pj-start-leiste .sh-stat-zeitraum button { font-size: .74rem; }
.pj-dash .aw-raster.pj-dash-raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 8px 12px 0; grid-auto-rows: auto; }
.pj-dash .pj-dash-raster > .aw-modul { grid-column: span 2; margin: 0; }
.pj-dash .pj-dash-raster > .aw-modul.breit { grid-column: 1 / -1; }
.pj-dash .pj-dash-raster > .aw-modul.pj-dash-halb { grid-column: span 3; }
@container (max-width: 900px) { .pj-dash .aw-raster.pj-dash-raster { grid-template-columns: 1fr; } .pj-dash .pj-dash-raster > .aw-modul, .pj-dash .pj-dash-raster > .aw-modul.pj-dash-halb { grid-column: 1 / -1; } }
/* Kennzahlen als schmale Leiste */
.pj-dash .pj-dash-kennzahlen { background: transparent; border: 0; box-shadow: none; }
.pj-dash .pj-dash-kennzahlen > .aw-modul-inhalt { padding: 0; }
.pj-dash .awx-kpis.pj-dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pj-dash .pj-dash-kpis .awx-kpi { padding: 5px 9px 6px; min-height: 0; }
.pj-dash .pj-dash-kpis .awx-kpi small { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-dash .pj-dash-kpis .awx-zeile b { font-size: 1.15rem; }
.pj-dash .pj-dash-kpis .awx-unter { font-size: .7rem; }
@container (max-width: 900px) { .pj-dash .awx-kpis.pj-dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Kästen: graue Kopfzeile wie die Rahmen der Masken */
.pj-dash .pj-dash-raster > .aw-modul > header, .pj-dash-ohne > .pj-dash-liste > header { background: #eef1f4; padding: 5px 10px; min-height: 0; border-bottom: 1px solid #e1e6ec; }
.pj-dash .pj-dash-raster > .aw-modul > header h3, .pj-dash-ohne > .pj-dash-liste > header h3 { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #475569; }
.pj-dash .pj-dash-raster .aw-modul-inhalt { font-size: .78rem; }
.pj-dash-ohne > .pj-dash-liste { margin: 8px 12px 12px; }
.pj-dash .pj-dash-raster > .aw-modul { grid-row: auto !important; grid-row-end: auto !important; height: auto !important; align-self: start; }
.pj-dash .pj-dash-raster > .aw-modul.pj-dash-halb { align-self: stretch; }
.pj-start-leiste { flex-wrap: nowrap; overflow-x: auto; }
.pj-start-leiste > * { flex: none; }
.pj-dash .pj-dash-kpis .awx-kpi { min-height: 0 !important; }
/* ab 3.99.291 (Rene 14.11.2026 „warum nicht dieselbe Optik wie im Titelarchiv?“): Aufbau wie die Masken – Rahmen „ansicht-formular“ mit Werkzeugleiste oben, 9 px Abstand zum Fenster, farbige Symbole (Neu grün, Öffnen braun) */
.pj-dash.aw-inhalt { padding: calc(9px * var(--s, 1)) !important; background: transparent; overflow: visible; }
.pj-dash > .ansicht-formular.pj-start-formular { overflow: visible; }
.pj-dash .formular-leiste.pj-start-leiste { position: static; flex-wrap: wrap; overflow: visible; }
.pj-start-inhalt { padding: 8px; }
.pj-start-inhalt > .aw-raster.pj-dash-raster { padding: 0 !important; }
.pj-dash-korr .korr-inhalt.pj-dash-ohne:has(> .pj-dash-liste) { background: transparent; }
.pj-dash-ohne > .pj-dash-liste { margin: 0 calc(9px * var(--s, 1)) calc(9px * var(--s, 1)) !important; border: 1px solid #c3cfdb; border-radius: 7px; overflow: hidden; }
/* ab 3.99.291: Foto-Vorschau im neuen Eintrag – ✕ genau in der Ecke des Fotos (am Handy stand es weit daneben) */
.pj-doku-bilder.neu { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-doku-bilder.neu .pj-doku-bild { display: inline-block; flex: none; width: 72px; height: 72px; }
.pj-doku-bilder.neu .pj-doku-bild img { display: block; }
.pj-doku-mobil .pj-doku-bilder.neu .pj-doku-bild button { width: 26px; height: 26px; font-size: 14px; }
/* ab 3.99.292: Fenster „Tickets (alle Projekte)“ und „Bautagebuch“ */
.pj-tk-alle .pj-tk-liste { max-width: none; }
.pj-tk-alle .pj-tk-zeile { display: grid; grid-template-columns: 210px minmax(0, 1fr) 170px 200px 80px; gap: 12px; }
.pj-tk-projekt { display: flex; flex-direction: column; font-size: .76rem; font-weight: 600; color: #334155; min-width: 0; }
.pj-tk-projekt small { font-weight: 400; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-start-leiste .pj-tb-projektwahl { width: min(460px, 60vw); flex: none; }

/* ab 3.99.292: Projekte → Auswertungen */
.pj-aw-inhalt { padding: 8px 12px 14px; overflow: auto; }
.pj-aw .wue-karten { margin: 2px 0 12px; }
.pj-aw .wue-zahl { padding: 5px 12px; min-width: 96px; border-radius: 0; }
html body .pj-aw .wue-zahl b { font-size: 1.1rem; color: var(--mf-gruen, #0f7a6c); }
html body .pj-aw .wue-zahl.dringend b { color: #c0392b; }
.pj-aw .wue-zahl span { font-size: .7rem; }
html body .fenster .pj-aw .formular-leiste .mf-knopf.pj-aw-an.pj-aw-an { color: var(--mf-gruen, #0f7a6c) !important; font-weight: 600; box-shadow: inset 0 -2px 0 var(--mf-gruen, #0f7a6c) !important; }
.pj-aw-tabelle { background: #fff; }
.pj-aw-tabelle th { white-space: nowrap; }
.pj-aw-rahmen { overflow-x: auto; }
.pj-aw-tabelle td.pj-aw-projekt { min-width: 180px; max-width: 260px; white-space: normal; line-height: 1.25; }
.pj-aw-tabelle td.rot, .pj-aw-tabelle small.rot { color: #c0392b; }
.pj-aw-tabelle tfoot th { background: #f2f4f8; border-top: 1px solid var(--mf-feldrand); }
.pj-aw-verbrauch { white-space: nowrap; }
.pj-aw-balken { display: inline-block; width: 60px; height: 8px; background: #e5eaef; vertical-align: middle; margin-right: 6px; }
.pj-aw-balken > span { display: block; height: 100%; background: var(--mf-gruen, #0f7a6c); }
.pj-aw-balken > span.gelb { background: #d99a1e; }
.pj-aw-balken > span.rot { background: #c0392b; }
.pj-aw-zwei { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pj-aw-zwei > div { flex: 1 1 560px; min-width: 0; overflow-x: auto; }
.pj-aw-zwei h4 { font-size: .76rem; font-weight: 600; color: #66768a; text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 6px; }
.pj-aw-hinweis { margin-top: 8px; }

/* ab 3.99.293 (Rene 14.11.2026 19:19 „Fotos quadratisch als Thumb, Klick öffnet den Bearbeiten-Modus“): Rahmen quadratisch, Bild + Zeichnung
   gemeinsam mittig beschnitten (wie object-fit: cover – hochkant füllt die Breite, quer die Höhe; Ausrichtung setzt das Bild beim Laden) */
.pj-doku-bilder .pj-doku-fotorahmen { position: relative; display: inline-block; width: 110px; height: 110px; overflow: hidden; cursor: pointer; border: 1px solid #d5dde8; line-height: 0; }
.pj-doku:not(.pj-doku-mobil) > .pj-doku-eintrag > .pj-doku-bilder .pj-doku-fotorahmen { width: 84px; height: 84px; }
.pj-doku-mobil .pj-doku-bilder .pj-doku-fotorahmen { width: 96px; height: 96px; }
.pj-doku-fotoinnen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; height: 100%; line-height: 0; }
.pj-doku-fotoinnen.hoch { height: auto; width: 100%; }
html body .pj-doku-bilder .pj-doku-fotoinnen img { height: 100%; width: auto; max-width: none; object-fit: fill; border: 0; cursor: pointer; aspect-ratio: auto; }
html body .pj-doku-bilder .pj-doku-fotoinnen.hoch img { width: 100%; height: auto; }
.pj-doku-bilder .pj-doku-fotorahmen:hover::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--mf-gruen, #0f7a6c); pointer-events: none; }

/* ab 3.99.293 (Rene 14.11.2026 19:25 „Schriftgrößen wie im Titelarchiv auf den übrigen Projekte-Reitern“, Grundsatz aus CLAUDE.md):
   Text und Eingaben .78rem, Beschriftungen und Knöpfe .76rem, graue Kopfzeilen von Tabellen .7rem – für alle Reiter der Projektakte */
.reiter-ansicht[data-definition="projekte"] { font-size: .78rem; }
.reiter-ansicht[data-definition="projekte"] :is(input, select, textarea, td, li, p, .aw-feld, .aw-anzeige) { font-size: .78rem; }
.reiter-ansicht[data-definition="projekte"] :is(label, .mf-knopf, .korr-filter, .dok-tipp, legend) { font-size: .76rem; }
.reiter-ansicht[data-definition="projekte"] :is(th, thead td, .pj-kopfzeile, .grau-kopf) { font-size: .7rem; }

/* ab 3.99.293 (Rene 14.11.2026 „Videos in die Baudoku“) */
.pj-doku-video .pj-doku-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; line-height: normal; }
.pj-doku-video .pj-doku-play .mud-icon-root { width: 34px; height: 34px; color: #fff; background: rgba(15, 23, 42, .55); border-radius: 50%; padding: 4px; }
.pj-doku-videolaedt { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: #475569; margin: 4px 0; }
.pj-doku-videolaedt .pj-aw-balken { width: 160px; }
.pj-doku-videobox { position: fixed; inset: 0; z-index: 1500; background: rgba(15, 23, 42, .82); display: grid; place-items: center; padding: 16px; }
.pj-doku-videobox-inhalt { display: flex; flex-direction: column; gap: 8px; max-width: min(1200px, 96vw); max-height: 92vh; }
.pj-doku-videobox video { max-width: 100%; max-height: calc(92vh - 50px); background: #000; }
.pj-doku-videobox-leiste { display: flex; justify-content: flex-end; gap: 8px; }

/* ab 3.99.293: Seiten mehrseitiger Pläne */
.pl-seitenwahl { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: #334155; white-space: nowrap; }
.pl-seite-marke { margin-left: 6px; font-size: .66rem; font-weight: 600; color: #64748b; border: 1px solid #cbd5e1; padding: 0 4px; }

/* ab 3.99.293: Portal-Zugänge für Externe */
.pj-ex { margin-top: 14px; }
.pj-ex-fehler { color: #b91c1c; }
.pj-ex-aus td { color: #94a3b8; }
.pj-ex-haken { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pj-ex-aktionen { white-space: nowrap; text-align: right; }
.pj-ex-aktionen > * { margin-left: 4px; }
.pj-ex-neu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.pj-ex-neu > .aw-feld:first-child { min-width: 260px; }
.pj-ex-link { border: 1px solid #b7dccd; background: #eef8f3; padding: 8px 10px; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.pj-ex-link-zeile { display: flex; gap: 6px; align-items: center; }
.pj-ex-link-zeile input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; padding: 4px 6px; border: 1px solid var(--mf-feldrand, #cbd5e1); }
.pl-extern-marke { font-size: .66rem; font-weight: 600; color: #8a5a2b; border: 1px solid #e4cfb6; padding: 0 4px; margin-left: 6px; }
/* ab 3.99.484: Projekt am Standort ganz oben */
.pj-mobil-hier { border-left: 4px solid #0f7a6c; background: #e6f4f1; }
.pj-mobil-hier .invm-bild { color: #0f7a6c; }
.pj-mobil-standort { font-size: .85em; color: #4a5560; padding: 0 0 6px; }

/* modulstil.Shop/stil.css */

/* ab 3.99.98: Sub-Shops und „Für viele Artikel …“ */
.sh-subshops { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.sh-subshop { padding: 0 6px; border-radius: 9px; border: 1px solid var(--th-feldrand, #c9d4e2); color: var(--th-text2, #64748b); }
.sh-subshop.an { border-color: #0f766e; color: #0f766e; background: #e6f2f0; }
.sh-viele-knopf { margin-top: 6px; }

/* ab 3.99.98: Filterzeile der Variantentabelle */
.sh-varianten thead tr.sh-var-filter th { padding: 2px 4px; font-weight: normal; }
.sh-varianten thead tr.sh-var-filter input.sh-zelle { width: 100%; font-size: .75rem; }
.sh-filter-aktiv { width: 24px; height: 22px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, transparent); border-radius: 3px; cursor: pointer; font-size: .8rem; line-height: 1; }
/* ab 3.99.98: Dialog „Shop für viele Artikel setzen“ */
.sh-viele-felder { display: grid; grid-template-columns: 130px minmax(300px, 420px); gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.sh-viele-felder .sh-vf { display: contents; }
.sh-viele-felder .sh-vf > label { font-size: .8rem; }
.sh-viele-felder .sh-vf-e { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-viele-felder .sh-vf-e > * { flex: 1 1 auto; }
.sh-viele-felder .sh-vf-e > button, .sh-viele-felder .sh-vf-e > span, .sh-viele-felder .sh-vf-e > label { flex: 0 0 auto; }
.sh-viele { display: block; grid-column: 1 / -1; width: 580px; max-width: 100%; }
.sh-viele > p { margin: 4px 0 0; }

/* ab 3.99.113 (Rene 03.11.2026 00:02): Bereiche im Hinweis „Shop weicht ab“ an-/abhaken */
.sh-stamm-bereich { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sh-stamm-bereich input { margin: 0; }
.sh-stamm-bereich.aus { opacity: .55; }
.sh-stamm-zeile.aus { opacity: .4; text-decoration: line-through; }

/* ab 3.99.116 (Rene 02.11.2026 „visualisierter, damit das extrem gut aussieht“): Shop-Auswertungen im neuen Look */
.awx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.awx-kpi { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: #fff; min-width: 0; }
.awx-kpi small { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #52606d; }
.awx-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.awx-zeile b { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: #0f172a; white-space: nowrap; }
.awx-zeile b em { font-style: normal; font-size: .8rem; font-weight: 500; color: #52606d; }
.awx-spark { width: 90px; height: 26px; flex: none; overflow: visible; }
.awx-unter { font-size: .74rem; color: #52606d; }
.awx-auf { color: #15803d; font-weight: 600; } .awx-ab { color: #b91c1c; font-weight: 600; }
.awx-teil { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 4px 0 2px; }
.awx-teil i { display: block; height: 100%; }
.awx-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: .76rem; color: #52606d; margin-bottom: 4px; }
.awx-legende span { display: inline-flex; align-items: center; gap: 6px; }
.awx-legende i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.awx-legende i.gestrichelt { background: repeating-linear-gradient(90deg, #94a3b8 0 5px, transparent 5px 8px); }
.awx-legende i.umriss { width: 10px; height: 10px; border: 1.5px solid #9aa8b6; background: #fff; border-radius: 2px; }
.awx-legende b { color: #0f172a; }
.awx-diagramm { width: 100%; height: 170px; display: block; }
.awx-diagramm.hoch { height: 190px; }
.awx-gitter { stroke: #e8edf2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.awx-achse { display: grid; font-size: .68rem; color: #64748b; margin-top: 2px; }
.awx-achse span { white-space: nowrap; overflow: hidden; }
.awx-ring { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.awx-ring-svg { width: 150px; height: 150px; flex: none; }
.awx-ring-zahl { font-size: 12px; font-weight: 700; fill: #0f172a; }
.awx-ring-text { font-size: 6.5px; fill: #64748b; }
.awx-legende-liste { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.awx-legende-liste > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 56px; gap: 8px; align-items: center; font-size: .78rem; }
.awx-legende-liste i { width: 10px; height: 10px; border-radius: 3px; }
.awx-legende-liste span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awx-legende-liste b { font-weight: 600; white-space: nowrap; }
.awx-legende-liste em { font-style: normal; color: #64748b; text-align: right; white-space: nowrap; }
.awx-rang { display: flex; flex-direction: column; gap: 6px; }
.awx-rang-zeile { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: .8rem; }
.awx-platz { width: 18px; text-align: right; color: #0f766e; font-weight: 700; }
.awx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; min-width: 0; }
.awx-name small, .awx-wert small { font-size: .68rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; }
.awx-balken { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.awx-balken i { display: block; height: 100%; background: #0f766e; border-radius: 4px; }
.awx-wert { text-align: right; font-weight: 600; white-space: nowrap; display: flex; flex-direction: column; }
.awx-raster { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.awx-raster-kopf { font-size: .62rem; color: #64748b; text-align: left; }
.awx-raster-tag { font-size: .7rem; color: #52606d; }
.awx-zelle { display: block; height: 18px; border-radius: 3px; background: #f1f5f9; }
.awx-zelle.s1 { background: #d3ebe7; } .awx-zelle.s2 { background: #a6d4cc; } .awx-zelle.s3 { background: #6fb6aa; } .awx-zelle.s4 { background: #33958a; } .awx-zelle.s5 { background: #0f766e; }
.awx-raster-fuss { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: #64748b; margin-top: 6px; flex-wrap: wrap; }
.awx-raster-fuss .awx-zelle { width: 14px; height: 10px; }
.awx-raster-max { margin-left: 12px; }
.aw-modul > header button.an { background: #e6f2f0; color: #0f766e; }

/* Masken-Variante B „ruhig“ (Nacht 03.11.2026): Shop-Artikel wie Stammdaten/Titelarchiv – Symbol vor jedem Reiter (gleiche Größe wie .reiter-sym),
   Kopfzeile und Bereiche ohne eigene Flächen, Farben nur aus dem Farbschema */
.sh-reiter > button .reiter-sym.mud-icon-root { font-size: 14px !important; width: 14px !important; height: 14px !important; margin: 0 calc(5px * var(--s, 1)) 0 0 !important; color: #64748b; flex: none; }
.sh-reiter > button.an .reiter-sym.mud-icon-root { color: currentColor !important; }
:is(html, html.thema-petrol, html.thema-hell) .sh-artformular .sh-reiter > button { gap: 0; padding-left: calc(9px * var(--s, 1)); padding-right: calc(10px * var(--s, 1)); }
:is(html, html.thema-petrol, html.thema-hell) .sh-artformular .sh-reiter > button > b { margin-left: 6px; }
.sh-artformular .sh-reiter > button .sh-reiter-stift { margin-left: 5px; }
.sh-artformular .sh-kopfzeile { background: transparent; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.sh-artformular .sh-kopfzeile input[readonly] { border-color: var(--th-feldrand, #e2e8f0); background: color-mix(in srgb, var(--th-feld, #fff) 55%, var(--th-formular, #f1f5f9)); }
.sh-artformular .sh-einst { align-items: start; }
.sh-artformular .sh-einst .inv-felder { align-content: start; align-items: center; }
.sh-artformular .sh-var-rahmen { border-color: var(--th-rahmen, #e2e8f0); }
.sh-artformular .sh-varianten tr.aktiv td { background: color-mix(in srgb, var(--mf-blau, #0f766e) 10%, transparent); }

/* ab 3.99.152: Landkarte der Shop-Auswertungen */
.awx-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 30%); gap: 12px; align-items: start; }
.aw-modul-inhalt:has(> .awx-karte) { container-type: inline-size; }
.awx-karte svg { width: 100%; height: auto; max-height: 560px; }
@container (max-width: 520px) { .awx-karte { grid-template-columns: 1fr; } }
.awx-karte-legende span { white-space: nowrap; }
.awx-karte circle { transition: fill-opacity .15s; cursor: default; }
.awx-karte circle:hover { fill-opacity: .9; }
.awx-karte-legende { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.awx-karte-legende > div:not(.klein) { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; }
.awx-karte-legende small { grid-column: 1; color: var(--mf-text-2, #5d6b7a); }
.awx-karte-legende span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .awx-karte { grid-template-columns: 1fr; } }

/* ab 3.99.196: Bestellstatus als Symbol */
.sh-status-symbol { display: inline-block; min-width: 1.3em; text-align: center; }

/* ab 3.99.208: Kennzahlen „Offene Bestellungen“ / „In Bearbeitung“ oben in Shop → Bestellungen (wie die Auswertungen) */
.sh-kpi { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; margin-left: 14px; padding: 4px 14px 5px; min-width: 150px;
          border: 1px solid #e2e8f0; border-left: 4px solid var(--th-akzent); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.sh-kpi small { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #52606d; }
.sh-kpi b { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #0f172a; }
.sh-kpi.bearbeitung { border-left-color: var(--th-shop-in-bearbeitung-rand, #dc2626); }
.sh-kpi:hover { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.sh-kpi.an { background: var(--th-akzent-hell, #e6f4f1); box-shadow: inset 0 0 0 2px var(--th-akzent, #0f766e); }
.sh-kpi.bearbeitung.an { background: var(--th-shop-in-bearbeitung, #fee2e2); box-shadow: inset 0 0 0 2px var(--th-shop-in-bearbeitung-rand, #dc2626); }
.sh-kpi.an small::after { content: " ✓"; }

/* ab 3.99.208 (Variante A), 3.99.209 (Rene 07.11.2026: Schrift wie die Adresse, Werte nicht fett, engere Zeilen):
   Anzeigefelder in den Shop-Masken ohne Rahmen – Beschriftung grau, Wert normal; Status als Kennzeichen */
.sh-rm .formular-raster:has(.sh-anz) { row-gap: 0 !important; }
.sh-rm .feld.sh-anz { min-height: 0; align-items: center; }
.sh-rm .feld.sh-anz > label { font-size: .8rem !important; font-weight: 400 !important; line-height: 1.4; color: var(--th-text-zweitrangig, #64748b); }
.sh-anz-wert { min-height: 0; line-height: 1.4; display: flex; align-items: center; font-size: .8rem; font-weight: 400; color: var(--th-text, #0f172a);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: text; }
.sh-status-pill { display: inline-block; padding: 0 8px; border-radius: 9px; font-size: .76rem; font-weight: 500; line-height: 1.45; }
.sh-status-pill.offen { background: var(--th-shop-status-offen, #fef3c7); color: var(--th-shop-status-offen-text, #92400e); }
.sh-status-pill.gut { background: var(--th-shop-status-gut, #dcfce7); color: var(--th-shop-status-gut-text, #166534); }
.sh-status-pill.schlecht { background: var(--th-shop-status-schlecht, #fee2e2); color: var(--th-shop-status-schlecht-text, #991b1b); }
.sh-status-pill.neutral { background: var(--th-shop-status-neutral, #f1f5f9); color: var(--th-shop-status-neutral-text, #475569); }
.sh-rm-adresse { background: var(--th-shop-adresse, #f8fafc) !important; border-color: transparent !important; }
.sh-rm-leer { color: var(--th-text-zweitrangig, #64748b); font-style: italic; }

/* modulstil.Unterwegs/stil.css */
/* Modul Inntec ONE Unterwegs – nur Klassen mit Präfix „unte-“ */
.unte-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.unte-inhalt { flex: 1; overflow: auto; padding: calc(8px * var(--s, 1)); display: flex; flex-direction: column; gap: calc(8px * var(--s, 1)); }
.unte-inhalt fieldset.rahmen { margin: 0; }
.unte-qr-zeile { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.unte-qr-bild { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--th-rahmen, #cfd8e3); background: #fff; }
.unte-qr-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: .8rem; }
.unte-qr-text ol { margin: 0; padding-left: 18px; }
.unte-hinweis { padding: 6px 8px; font-size: .8rem; border-left: 3px solid #0f766e; }
.unte-hinweis.fehler { border-left-color: #c62828; color: #a11d1d; }
.unte-tabelle td { cursor: default; vertical-align: middle; }
.unte-gesperrt td { color: var(--th-leise, #8a94a6); }
.unte-klein { padding: 0 6px !important; min-height: 0 !important; font-size: .74rem !important; }
.unte-ok { color: #0f766e; font-weight: 600; }
.unte-fehler { color: #a11d1d; font-weight: 600; }
.unte-sym { vertical-align: -3px; opacity: .7; }
.unte-einst .text-zweitrangig { margin-top: 6px; max-width: 900px; }

/* modulstil.Versand/stil.css */
/* Masken-Variante B „ruhig“ (Nacht 03.11.2026): Versand wie Titelarchiv/Inventar – Standardleiste, Farben nur aus dem Farbschema,
   bunt bleiben nur Status-Anzeigen (Sandbox/Produktion, Sendungsstatus). */

/* Kennzeichen „DHL“: ab 3.99.122 wieder in Gelb/Rot (Rene 03.11.2026 09:10 „DHL in gelb“) – Farben aus dem Farbschema (--th-versand-dhl) */

/* DHL-Schnittstelle: Standardleiste statt eigenem Titel */
.vs-dhl > .vs-dhl-oben { margin: 0 0 8px; border: 1px solid var(--th-rahmen, #c9d4e2); border-radius: calc(8px * var(--s, 1)); overflow: visible; }
.vs-dhl > .vs-dhl-oben > .formular-leiste { border-bottom: 0; border-radius: calc(8px * var(--s, 1)); }
.vs-dhl > .vs-dhl-oben .formular-leiste { flex-wrap: wrap; }
.vs-dhl > .vs-dhl-oben .vs-zugang-wahl { min-width: calc(180px * var(--s, 1)); }
/* Methoden (GET/POST …) als ruhige Plaketten – nur „DELETE“ rot */
.vs-dhl .vs-m { background: transparent; color: var(--mf-blau, #0f766e); border: 1px solid currentColor; }
.vs-dhl .vs-m-post, .vs-dhl .vs-m-put { color: var(--th-beschriftung, #334155); }
.vs-dhl .vs-m-delete { color: #b91c1c; }

/* DHL-Zugang: Einträge links ohne eigenes Weiß/Grau, Kennfarbe (Sandbox/Produktion) bleibt als Streifen */
.vs-zugangmaske .st-raster { padding-top: 8px; }
.vs-zugangmaske .st-eintrag { background: var(--th-feld, #fff); border-color: var(--th-rahmen, #e5e7eb); border-left-color: var(--f); border-radius: 6px; padding: 6px 10px 6px 12px; }
.vs-zugangmaske .st-eintrag:hover { background: color-mix(in srgb, var(--mf-blau, #0f766e) 6%, var(--th-feld, #fff)); }
.vs-zugangmaske .st-eintrag.aktiv { background: color-mix(in srgb, var(--mf-blau, #0f766e) 10%, var(--th-feld, #fff)); border-color: var(--mf-blau, #0f766e); border-left-color: var(--f); }
.vs-zugangmaske .st-eintrag small { color: var(--th-text2, #64748b); }
.vs-zugangmaske .st-form > .rahmen { margin-top: 0; }

/* ab 3.99.195: Sprung Sendung → Bestellung */
.vv-link { color: var(--th-akzent-dunkel, var(--th-akzent)); text-decoration: none; cursor: pointer; }
.vv-link:hover { text-decoration: underline; }

/* modulstil.Warenwirtschaft/stil.css */
/* Modul Warenwirtschaft – nur Klassen mit Präfix „bpd-“ (Belegerfassung, Reiter „Positionsdaten“, ab 3.99.300) */
.bpd-leer { color: var(--mud-palette-text-secondary); padding: 8px 2px; }
.bpd-tabelle { width: 100%; border-collapse: collapse; }
.bpd-tabelle th { text-align: left; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--mud-palette-lines-default); white-space: nowrap; }
.bpd-tabelle td { padding: 4px 8px; border-bottom: 1px solid var(--mud-palette-lines-default); vertical-align: middle; }
.bpd-tabelle .bpd-pos { width: 52px; text-align: right; }
/* Projekt und Steuerart gleich behandeln: beide füllen ihre Spalte (Projekt mit Abschnitt teilt sich die Breite) */
.bpd-tabelle th.bpd-projekt, .bpd-tabelle td.bpd-projekt { width: 36%; }
.bpd-tabelle th.bpd-steuerart, .bpd-tabelle td.bpd-steuerart { width: 22%; }
.bpd-tabelle .bpd-projekt .pj-projektwahl { display: flex; width: 100%; flex-wrap: nowrap; }
.bpd-tabelle .bpd-projekt .pj-projektwahl .aw { flex: 1 1 0; min-width: 0; }
.bpd-tabelle .bpd-steuerart .aw { width: 100%; }
/* Feldhöhe der Auswahlfelder (Projekt, Steuerart) wie die übrigen Eingabefelder der Maske (Belegstatus, Kunde …) */
.bpd-tabelle .aw-feld input, .bpd-projektfeld .aw-feld input {
    height: calc(24px * var(--s)); padding: 0 calc(7px * var(--s)); font-size: .8rem; line-height: normal;
    border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); background: #fff; color: var(--mf-text);
}
.bpd-tabelle .aw-feld input:focus, .bpd-projektfeld .aw-feld input:focus { outline: 0; border-color: var(--mf-blau); }
.bpd-tabelle .aw-pfeil .mud-icon-root, .bpd-tabelle .aw-leeren .mud-icon-root,
.bpd-projektfeld .aw-pfeil .mud-icon-root, .bpd-projektfeld .aw-leeren .mud-icon-root { font-size: calc(16px * var(--s)); }
.bpd-tabelle td { padding-top: 3px; padding-bottom: 3px; }
.bpd-projektfeld .pj-projektwahl { display: flex; width: 100%; flex-wrap: nowrap; }
.bpd-projektfeld .pj-projektwahl .aw { flex: 1 1 0; min-width: 0; }
/* ab 3.99.300: Positionsdaten der gewählten Position (Kopfzeile mit Pos., Artikel, Bezeichnung) */
.bpd-position { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 2px 0 10px; padding: 6px 10px; border-radius: 4px;
    background: #eef5ff; box-shadow: inset 3px 0 0 var(--mf-blau); font-size: .82rem; }
.bpd-pos-nr { font-weight: 700; }
.bpd-pos-artikel { color: var(--mf-text-2); }
.bpd-pos-hinweis { margin-left: auto; font-size: .74rem; color: var(--mf-text-2); }
.bpd-projektfeld.bpd-halb { max-width: 50%; }
/* ab 3.99.300 (Norbert 16.11.2026): Positionsdaten je Typ (Text, Text formatiert, Textbaustein, Gruppe) */
.bpd-pos-typ { font-weight: 600; color: var(--mf-blau); }
.bpd-textfeld { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bpd-textfeld > label { font-weight: 600; }
.bpd-text { width: 100%; min-height: 140px; resize: vertical; font: inherit; padding: 6px 8px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; }
.bpd-text:focus { outline: 0; border-color: var(--mf-blau); }
.bpd-hinweis { color: var(--mud-palette-text-secondary); padding: 6px 2px; }
/* ab 3.99.300 (Norbert 16.11.2026): Zwischensumme (Z) und Rabatt (R) in der Spalte „Gesamt netto“ der Positionen */
.bsz { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .8rem; }
.bsz-strich { border-top: 1px solid var(--mf-text); margin: 2px 0; }
.bsz-wert, .bsz-basis { text-align: right; padding: 0 calc(7px * var(--s)); }
.bsz-wert { font-weight: 700; }
.bsz-basis { color: var(--mf-text-2); }
.bsz-eingabe { height: calc(24px * var(--s)); padding: 0 calc(7px * var(--s)); font-size: .8rem; text-align: right; width: 100%; box-sizing: border-box;
    border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); background: #fff; color: var(--mf-text); }
.bsz-eingabe:focus { outline: 0; border-color: var(--mf-blau); }
/* ab 3.99.300: Summen des Belegs unter den Spalten der Positionen (BelegSummen) */
.beleg-summen { margin-top: calc(6px * var(--s)); }
.beleg-summen .bs-zeile { margin-bottom: 0; }
.beleg-summen .bs-titel { text-align: right; font-size: .8rem; color: var(--mf-text-2); padding-right: 6px; }
.beleg-summen .bs-wert { text-align: right; font-size: .82rem; padding: 2px calc(7px * var(--s)); }
.beleg-summen .bs-netto .bs-wert { border-top: 1px solid var(--mf-text); }
.beleg-summen .bs-brutto .bs-titel, .beleg-summen .bs-brutto .bs-wert { font-weight: 700; color: var(--mf-text); }
.beleg-summen .bs-brutto .bs-wert { border-top: 1px solid var(--mf-text); border-bottom: 3px double var(--mf-text); }
/* ab 3.99.300 (Norbert 16.11.2026): Reiter „Statistik“ der Belegerfassung */
.bst-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; } /* ab 3.99.407: wie die Listen (Rene „Schriftgrößen bei der Statistik zu groß“) */
.bst-tabelle th { font-size: .74rem; font-weight: 600; color: var(--mf-text-2); text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--mf-feldrand); }
.bst-tabelle td { padding: 3px 6px; border-bottom: 1px solid #eef0f3; }
.bst-tabelle th.rechts, .bst-tabelle td.rechts { text-align: right; white-space: nowrap; }
.bst-tabelle tfoot td { font-weight: 700; border-top: 1px solid var(--mf-text); border-bottom: 0; }
.bst-tabelle .bst-minus { color: #b3261e; }
.bst-leer { color: var(--mud-palette-text-secondary); padding: 6px 2px; }
/* ab 3.99.300 (Norbert 16.11.2026): Erlös, MEK und Differenz der Position im Reiter „Positionsdaten“ nebeneinander */
.bpd-erloes { display: flex; gap: 12px; max-width: 760px; }
.bpd-erloes > .feld { flex: 1; min-width: 0; }
input.berechnet.bst-minus { color: #b3261e; }
/* ab 3.99.310 (Rene 16.11.2026): Summen immer sichtbar – unten fixiert, die Positionen scrollen darüber; € genau unter dem € der Positionen */
.beleg-summen { position: sticky; bottom: 0; z-index: 3; background: var(--mf-flaeche, #fff); border-top: 1px solid var(--mf-linie, #dbe3ea); padding: 4px 0 6px; box-shadow: 0 -6px 8px -6px rgba(15, 30, 45, .12); }
.beleg-summen .bs-wert { padding-right: 9px; }
/* ab 3.99.311 (Rene 16.11.2026): Summenkasten wie die Positionsdaten (hellblau, Balken links), oberste Linie weg */
.beleg-summen .bs-kasten { display: grid; grid-template-columns: subgrid; row-gap: 2px; align-items: center; background: linear-gradient(180deg, rgba(15, 122, 108, .04) 0%, rgba(15, 122, 108, .22) 100%); border-radius: 0; /* ab 3.99.446 (Rene 30.11.2026 09:42 Grün, 10:05 „B“): Verlauf von oben hell nach unten grün */ padding: 6px 0 8px; }
.beleg-summen .bs-wert.bs-netto { border-top: 0; }
.beleg-summen .bs-titel.bs-brutto, .beleg-summen .bs-wert.bs-brutto { font-weight: 700; color: var(--mf-text); }
.beleg-summen .bs-wert.bs-brutto { border-top: 1px solid var(--mf-text); border-bottom: 3px double var(--mf-text); }
.beleg-summen .bs-raster { margin-bottom: 0; }

/* ab 3.99.312 (Rene): Summen ohne grünen Balken, Schrift wie in den Positionen */
.beleg-summen .bs-titel, .beleg-summen .bs-wert, .beleg-summen .bs-titel.bs-brutto, .beleg-summen .bs-wert.bs-brutto { color: #2e4052; font-size: var(--bs-schrift, .78rem); }
.unterbereich .beleg-summen { padding-right: var(--ul-sb, 0px); } /* ab 3.99.312: um den Scrollbalken der Positionen einrücken */
/* ab 3.99.313 (Rene): Positionsdaten rechts neben den Positionen – Schrift wie in den Positionen, Steuerart so breit wie Projekt */
.ul-begleit-teil .bpd-position { font-size: .78rem; color: #2e4052; }
.ul-begleit-teil .bpd-projektfeld.bpd-halb { max-width: none; }
.ul-begleit-teil .bpd-projektfeld > .aw, .ul-begleit-teil .bpd-projektfeld .aw { flex: 1 1 auto; width: 100%; min-width: 0; }
/* ab 3.99.313 (Rene): Zwischensumme ohne Strich, Schriftfarbe wie die übrigen Positionen */
.bsz-z .bsz-strich { display: none; }
.bsz .bsz-wert { color: #2e4052; }
/* 17.11.2026 (Norbert): Rabattsumme mit € rechts im Feld (wie Einzelpreis) */
.bsz-eingabe-rahmen { position: relative; }
.bsz-eingabe-rahmen .bsz-eingabe { padding-right: calc(20px * var(--s)); }
.bsz-eingabe-rahmen .bsz-euro { position: absolute; right: calc(7px * var(--s)); top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--mf-text-2); pointer-events: none; }
/* 17.11.2026 (Norbert): Positionen – in den reinen Anzeigefeldern (Gesamt netto, Steuersatz) steht das €/% mit einem normalen Leerzeichen Abstand
   hinter dem Betrag, wie bei Zwischensumme und Rabatt darunter (dort „2.815,00 €“) */
.ul-zeilen-scroll .unterzeile-raster .schlicht:has(input[readonly]) input { padding-right: 0 !important; }
.ul-zeilen-scroll .unterzeile-raster .schlicht:has(input[readonly]) .mud-input-adornment-end { margin-left: .28em !important; margin-inline-start: .28em !important; }
/* 17.11.2026: längere Währungszeichen (CHF) im Feld Rabattsumme */
.bsz-eingabe-rahmen .bsz-eingabe { padding-right: calc(var(--bsz-zeichen, 1) * .62em + 12px); }
/* 17.11.2026 (Norbert): Leistungsdatum der Position – als Eingabefeld erkennbar (Rahmen wie Steuerart/Lagerort) */
.bpd-projektfeld input.bpd-datum { flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box;
    height: calc(24px * var(--s)); padding: 0 calc(7px * var(--s)); font: inherit; font-size: .8rem; line-height: normal;
    border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); background: #fff; color: var(--mf-text); }
.bpd-projektfeld input.bpd-datum:focus { outline: 0; border-color: var(--mf-blau); }
.bpd-projektfeld input.bpd-datum[readonly] { background: var(--mf-flaeche-2, #f1f4f7); }
/* 17.11.2026: Leistungsdatum der Position als MudDatePicker – so niedrig wie die übrigen Felder */
.bpd-projektfeld .bpd-datum-mud { flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; }
.bpd-projektfeld .bpd-datum-mud .mud-input-outlined { background: #fff; } /* 17.11.2026: Höhe wie alle Felder (feld-eingabe) */
.bsz-z .bsz-wert { font-weight: 400; } /* ab 3.99.314 (Rene): Betrag der Zwischensumme nicht fett */
/* ab 3.99.314 (Rene 17.11.2026): Bezeichnungen der Summen linksbündig, Linien unter Umsatzsteuer und Summe brutto durchgehend */
.beleg-summen .bs-kasten { column-gap: 0; }
.beleg-summen .bs-titel { text-align: left; padding-left: 14px; }
.beleg-summen .bs-titel.bs-brutto { border-top: 1px solid #2e4052; border-bottom: 3px double #2e4052; margin-left: 14px; padding-left: 0; }
.beleg-summen .bs-wert.bs-brutto { border-top: 1px solid #2e4052; border-bottom: 3px double #2e4052; }
.beleg-summen .bs-kasten .bs-wert { margin-right: calc(2px * var(--s, 1)); } /* halbe Spaltenlücke – € bleibt unter dem € der Positionen */
.beleg-summen .bs-titel.bs-brutto, .beleg-summen .bs-wert.bs-brutto { padding-top: 3px; padding-bottom: 3px; }
/* 17.11.2026 (Norbert „bei allen Masken auf die Abstände und Feldhöhen achten“): Positionsdaten – gleicher Zeilenabstand wie in den Masken,
   alle Felder gleich breit (rechte Kante bündig mit Erlös/MEK/Differenz) */
.bpd-projektfeld, .bpd-erloes { margin-bottom: calc(var(--feld-zeilenabstand, 6px) * var(--s)); }
.bpd-erloes > .bpd-projektfeld { margin-bottom: 0; }
.bpd-projektfeld, .bpd-projektfeld.bpd-halb { max-width: 760px; }
.ul-begleit-teil .bpd-projektfeld, .ul-begleit-teil .bpd-projektfeld.bpd-halb, .ul-begleit-teil .bpd-erloes { max-width: none; }
.bpd-projektfeld > .feld-eingabe { min-width: 0; }
/* 19.11.2026 (Norbert): Positionsdaten rechts neben den Positionen (schmal) – Erlös, MEK und Differenz untereinander wie die übrigen Felder,
   sonst rutschen die Bezeichnungen in die Eingabefelder */
/* ab 3.99.432 (Rene 29.11.2026 00:29 „Abstände gleich machen“): Erlös/MEK/Differenz mit demselben Zeilenabstand wie die übrigen Felder */
.ul-begleit-teil .bpd-erloes { flex-direction: column; gap: calc(var(--feld-zeilenabstand, 6px) * var(--s)); max-width: none; }
.ul-begleit-teil .bpd-erloes > .feld { flex: none; }
/* 20.11.2026 (Norbert): Rahmen „Zusatzfelder“ der Belegerfassung – Felder der Belegart nebeneinander */
.beleg-zusatzfelder { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 16px; }
/* 20.11.2026 15:54: Rahmen „Zusatzfelder (…)“ ohne Felder in diesem Reiter unsichtbar */
fieldset.rahmen:has(> .bzf-leer) { display: none; }
/* 20.11.2026 16:10: Zusatzfelder im Belegkopf – eine Zeile ohne Rahmen und Überschrift, wie die übrigen Kopffelder */
fieldset.rahmen:has(> .beleg-zusatzfelder.kopf),
html.thema-petrol fieldset.rahmen:has(> .beleg-zusatzfelder.kopf) { border: none; border-radius: 0; padding: 0 !important; background: transparent; box-shadow: none; } /* 16:18: Farbe des Kopfbereichs behalten */

/* ab 3.99.348: Lager → Aufbau (Geschoss/Raum/Regal, Pakete, 3D-Regale, Grundriss) – Präfix „la-“ */
.la { position: relative; margin-top: 4px; border-top: 1px solid var(--mud-palette-lines-default); }
.la-leiste { display: flex; align-items: center; gap: 8px; padding: 8px 4px; flex-wrap: wrap; border-bottom: 1px solid var(--mud-palette-lines-default); }
.la-titel { font-weight: 600; color: #0f7a6c; margin-right: 8px; }
.la-hell { color: var(--mud-palette-text-secondary); }
.la-pill, .la-knopf { border: 1px solid #c9d3da; background: var(--mud-palette-surface); padding: 3px 12px; border-radius: 0; color: var(--mud-palette-text-primary); cursor: pointer; font: inherit; }
.la-pill.an { background: #0f7a6c; border-color: #0f7a6c; color: #fff; }
.la-pill[draggable] { cursor: grab; }
.la-pill.vor { box-shadow: -3px 0 0 #0f7a6c; } .la-pill.nach { box-shadow: 3px 0 0 #0f7a6c; }
.la-darst { display: inline-flex; margin-left: 10px; }
.la-zahlen { margin-left: auto; color: var(--mud-palette-text-secondary); }
.la-zahlen b { color: #0f7a6c; font-weight: 600; }
.la-raster { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; padding: 10px 0; }
.la-bereich { margin-bottom: 12px; }
.la-bereich.vor { box-shadow: 0 -4px 0 #0f7a6c; } .la-bereich.nach { box-shadow: 0 4px 0 #0f7a6c; } .la-bereich.ueber .la-bkopf { background: #cfe7e1; }
.la-bereich.zieht { opacity: .45; }
.la-bkopf { display: flex; align-items: center; gap: 12px; background: linear-gradient(#e8f2f0, #d6e9e5); border: 1px solid #c6ddd8; box-shadow: 0 3px 0 #b7d0ca; padding: 5px 10px; }
.la-bkopf[draggable] { cursor: grab; }
.la-bkopf b { font-size: 14px; font-weight: 600; color: #0f7a6c; }
.la-bbez { color: #3f4d57; }
.la-bz { color: #3f4d57; font-size: 12px; }
.la-bakt { margin-left: auto; display: flex; gap: 6px; }
.la-bakt button, .la-rkopf button, .la-skopf button { background: #fff; border: 1px solid #c6ddd8; color: #0f7a6c; padding: 2px 10px; border-radius: 0; cursor: pointer; font: inherit; font-size: 12px; }
.la-griff { color: #7fa79f; letter-spacing: -3px; user-select: none; }
.la-bereich.zu .la-graster, .la-bereich.zu .la-plan { display: none; }
.la-graster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 10px; border: 1px solid #c6ddd8; border-top: none; background: var(--mud-palette-surface); }
.la-3d .la-graster { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.la-raum { border: 1px solid #c3d2ce; display: flex; flex-direction: column; background: linear-gradient(#fbfcfd, #eef3f2); box-shadow: inset 0 -10px 0 #dfe8e6, 0 3px 0 #c9d6d3; min-height: 120px; }
.la-raum.ohne { border-style: dashed; }
.la-raum.ueber { box-shadow: inset 0 0 0 2px #0f7a6c; background: #dff0ec; }
.la-raum.vor { box-shadow: -5px 0 0 #0f7a6c; } .la-raum.nach { box-shadow: 5px 0 0 #0f7a6c; } .la-raum.zieht { opacity: .4; }
.la-rkopf { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: linear-gradient(#fff, #eef3f2); border-bottom: 3px solid #c9d6d3; }
.la-rkopf[draggable] { cursor: grab; }
.la-rname { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-rname[data-a] { cursor: pointer; } .la-rname[data-a]:hover { color: #0f7a6c; }
.la-rbez { font-weight: 400; color: var(--mud-palette-text-secondary); }
.la-rkopf button { margin-left: auto; color: #b3261e; border-color: #e3c1bd; }
.la-zone { padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; flex: 1; }
.la-regal { width: 112px; border: 1px solid #0f7a6c; background: #fff; padding: 5px 6px; cursor: grab; user-select: none; color: #24303a; }
.la-regal:hover { background: #eef6f4; }
.la-regal.gew { background: #0f7a6c; color: #fff; }
.la-regal.vor { box-shadow: -4px 0 0 #0f7a6c; } .la-regal.nach { box-shadow: 4px 0 0 #0f7a6c; } .la-regal.ueber { outline: 3px solid #0f7a6c; } .la-regal.zieht { opacity: .4; }
.la-nr { font-family: Consolas, monospace; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-bz2 { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-fb { height: 4px; background: #e1e7ec; margin-top: 5px; } .la-fb i { display: block; height: 4px; background: #0f7a6c; }
.la-regal.gew .la-fb { background: rgba(255,255,255,.35); } .la-regal.gew .la-fb i { background: #fff; }
.la-r3d { width: 118px; border-color: transparent; background: transparent; text-align: center; padding: 4px; }
.la-r3d:hover { background: #eef6f4; border-color: #c6ddd8; }
.la-r3d.gew { background: #fff6dd; border-color: #ffb300; color: #24303a; }
.la-r3d svg, .la-paket svg { display: block; margin: 0 auto; }
.la-paket { width: 112px; text-align: center; padding: 4px; border: 1px solid transparent; cursor: grab; user-select: none; color: #24303a; }
.la-paket:hover { background: #fbf3e6; border-color: #e6cfa8; }
.la-paket.gew { background: #fff6dd; border-color: #ffb300; } .la-paket.zieht { opacity: .4; }
.la-neu { width: 112px; min-height: 52px; border: 1px dashed #9fb3ae; background: transparent; color: #0f7a6c; cursor: pointer; font: inherit; }
.la-3d .la-neu { min-height: 128px; }
.la-tipp { color: var(--mud-palette-text-secondary); font-size: 12px; padding: 2px; }
.la-leer { padding: 14px; color: var(--mud-palette-text-secondary); }
.la-seite { border: 1px solid #d1dbe1; background: var(--mud-palette-surface); align-self: start; position: sticky; top: 0; }
.la-skopf { background: #0f7a6c; color: #fff; padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.la-skopf b { font-weight: 600; font-family: Consolas, monospace; }
.la-skopf button { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); margin-left: 4px; }
.la-sinh { padding: 10px; }
.la-zeile { display: grid; grid-template-columns: 100px 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.la-zeile label { color: var(--mud-palette-text-secondary); }
.la input, .la select { font: inherit; border: 1px solid #c9d3da; border-radius: 0; padding: 3px 7px; height: 28px; width: 100%; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); box-sizing: border-box; }
.la-best { border-collapse: collapse; width: 100%; }
.la-best th, .la-best td { padding: 4px 6px; border-top: 1px solid var(--mud-palette-lines-default); text-align: left; font-size: 12px; }
.la-best th { background: var(--mud-palette-background-gray); } .la-best .z { text-align: right; } .la-best tr[data-a] { cursor: pointer; }
.la-hinw { color: var(--mud-palette-text-secondary); font-size: 12px; margin-top: 8px; }
.la-fest { font-family: Consolas, monospace; font-weight: 600; color: #0f7a6c; }
.la-plan { position: relative; border: 1px solid #c6ddd8; border-top: none; background-color: #fff; background-image: linear-gradient(#eef3f2 1px, transparent 1px), linear-gradient(90deg, #eef3f2 1px, transparent 1px); background-size: 20px 20px; overflow: auto; touch-action: none; }
.la-plan.ueber { background-color: #f1f9f7; }
.la-graum { position: absolute; border: 3px solid #6f8f88; background: rgba(244,248,247,.92); }
.la-graum.ueber { border-color: #0f7a6c; background: rgba(223,240,236,.95); }
.la-gtitel { position: absolute; left: 0; right: 0; top: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 6px; background: #e3ecea; cursor: move; font-size: 12px; user-select: none; white-space: nowrap; overflow: hidden; color: #24303a; }
.la-gtitel b { font-weight: 600; } .la-gtitel span { color: #5d6b75; }
.la-ge { margin-left: auto; color: #0f7a6c !important; cursor: pointer; }
.la-ggr { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; background: #6f8f88; cursor: nwse-resize; }
.la-gregal { position: absolute; background: #fff; border: 2px solid #0f7a6c; cursor: grab; user-select: none; display: flex; align-items: center; justify-content: center; font-family: Consolas, monospace; font-size: 10px; font-weight: 600; color: #0b5c51; overflow: hidden; touch-action: none; }
.la-gf { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, #d8a35f 0 9px, #c58d47 9px 11px); opacity: .75; }
.la-gregal.hoch .la-gf { top: auto; right: 0; width: auto !important; }
.la-gregal span, .la-gpaket span { position: relative; background: rgba(255,255,255,.85); padding: 0 2px; }
.la-gregal.gew, .la-gpaket.gew { border-color: #ffb300; box-shadow: 0 0 0 3px rgba(255,179,0,.35); }
.la-gregal.zieht, .la-gpaket.zieht { opacity: .85; box-shadow: 0 8px 18px rgba(0,0,0,.25); z-index: 5; cursor: grabbing; }
.la-gpaket { position: absolute; background: repeating-linear-gradient(135deg, #cf9a58 0 10px, #c58d47 10px 12px); border: 2px solid #b07a3c; cursor: grab; display: flex; align-items: center; justify-content: center; font-family: Consolas, monospace; font-size: 10px; font-weight: 600; color: #5a3a12; overflow: hidden; touch-action: none; user-select: none; }
.la-gneu { position: absolute; right: 6px; bottom: 6px; border: 1px dashed #9fb3ae; background: #fff; color: #0f7a6c; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.la-gneu-b { right: 10px; bottom: 10px; }
.la-huelle { position: fixed; inset: 0; background: rgba(15,30,40,.45); display: none; align-items: center; justify-content: center; z-index: 2000; }
.la-huelle.an { display: flex; }
.la-dlg { background: var(--mud-palette-surface); width: 580px; max-width: 94vw; max-height: 90vh; overflow: auto; border: 1px solid #0f7a6c; color: var(--mud-palette-text-primary); }
.la-dlg .la-skopf { position: sticky; top: 0; }
.la-dlg .la-skopf b { font-family: inherit; }
.la-dinh { padding: 14px; }
.la-dfuss { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--mud-palette-lines-default); }
.la-btn { border: 1px solid #0f7a6c; background: var(--mud-palette-surface); color: #0f7a6c; padding: 4px 12px; border-radius: 0; cursor: pointer; font: inherit; }
.la-btn.voll { background: #0f7a6c; color: #fff; } .la-btn.rot { border-color: #b3261e; color: #b3261e; background: var(--mud-palette-surface); }
.la-dz { display: flex; align-items: center; gap: 8px; margin: 6px 0; } .la-dz > label:first-child { min-width: 120px; color: var(--mud-palette-text-secondary); }
.la-dz input { flex: 1; }
.la-cb { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; } .la-cb input { width: auto; height: auto; }
.la-schritte { display: flex; margin-bottom: 14px; } .la-schritte span { flex: 1; text-align: center; padding: 5px; border-bottom: 3px solid #e1e7ec; color: var(--mud-palette-text-secondary); }
.la-schritte span.an { border-color: #0f7a6c; color: #0f7a6c; font-weight: 600; }
.la-chip { display: inline-block; font-family: Consolas, monospace; font-size: 12px; border: 1px solid #0f7a6c; padding: 2px 6px; margin: 2px; }
.la-hinweis { background: #fff6e0; border: 1px solid #e6c46a; padding: 8px 10px; margin: 8px 0; color: #5c4400; }
.la-fehler { background: #fdecec; border: 1px solid #e3a0a0; padding: 8px 10px; margin: 8px 0; color: #7a1f1f; }
.la-toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #0f7a6c; color: #fff; padding: 8px 16px; display: none; z-index: 2001; }
@media (max-width: 1100px) { .la-raster { grid-template-columns: 1fr; } }
.la-gregal.ueber { outline: 3px solid #0f7a6c; }
/* Hilfe-Bilder zum Lager-Aufbau (05d_belegerfassung.md #lager-aufbau) */
.la-hb { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0; }
.la-hpf { color: #0f7a6c; font-size: 13px; margin-left: 30px; line-height: 1; }
.la-hreihe { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.la-hgs { border: 1px solid #c6ddd8; background: #fff; padding: 4px; }
.la-hg { background: #e8f2f0; border: 1px solid #c6ddd8; padding: 1px 6px; font-weight: 600; color: #0f7a6c; font-size: 12px; margin-bottom: 4px; }
.la-hr { border: 1px solid #c3d2ce; background: #f4f8f7; min-width: 140px; }
.la-hr.ohne { border-style: dashed; }
.la-hr .la-hk { padding: 2px 6px; border-bottom: 2px solid #c9d6d3; font-size: 11.5px; font-weight: 600; color: #24303a; }
.la-hr .la-hk span { font-weight: 400; color: #5d6b75; }
.la-hr .la-hz { padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; color: #5d6b75; min-height: 22px; }
.la-hrg { border: 1px solid #0f7a6c; background: #fff; padding: 1px 4px; font-family: Consolas, monospace; font-size: 10.5px; font-weight: 600; color: #0b5c51; }
.la-hrg.neu { background: #0f7a6c; color: #fff; }
.la-hpk { border: 1px solid #b07a3c; background: repeating-linear-gradient(135deg, #e3b77a 0 8px, #cf9a58 8px 10px); padding: 1px 4px; font-family: Consolas, monospace; font-size: 10.5px; font-weight: 600; color: #4a2e0c; }
.la-hpk i { font-style: normal; font-weight: 400; margin-left: 4px; }
.la-hpk.neu { outline: 2px solid #0f7a6c; }
.la-bsp { border-left: 3px solid #0f7a6c; background: #f4f9f8; padding: 6px 10px; margin: 8px 0; }
.la-bsp code { background: #e3f1ee; color: #0b5c51; padding: 0 3px; }
/* ab 3.99.348: Stellplätze (im Regal als Fächer, sonst als Bodenfläche) */
.la-slots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; justify-content: center; }
.la-slot { min-width: 20px; padding: 0 2px; height: 16px; border: 1px solid #9fb3ae; background: #fff; font-family: Consolas, monospace; font-size: 9.5px; line-height: 14px; color: #5d6b75; text-align: center; cursor: pointer; }
.la-slot.belegt { background: #e3b77a; border-color: #b07a3c; color: #4a2e0c; }
.la-slot.gew { outline: 2px solid #ffb300; } .la-slot.ueber { outline: 3px solid #0f7a6c; }
.la-sp { border: 2px dashed #6f8f88; background: repeating-linear-gradient(45deg, #f4f8f7 0 8px, #eef3f2 8px 16px); min-width: 120px; padding: 4px; cursor: grab; }
.la-sp.gew { border-color: #ffb300; } .la-sp.ueber { border-color: #0f7a6c; background: #dff0ec; } .la-sp.zieht { opacity: .4; }
.la-sp.vor { box-shadow: -4px 0 0 #0f7a6c; } .la-sp.nach { box-shadow: 4px 0 0 #0f7a6c; }
.la-spk { display: flex; gap: 6px; align-items: baseline; padding: 0 2px 2px; }
.la-spz { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; align-items: center; justify-content: center; }
.la-spz .la-paket { width: 104px; }
.la-neu2 { display: inline-flex; flex-direction: column; gap: 6px; }
.la-neu2 .la-neu { min-height: 40px; }
.la-3d .la-neu2 .la-neu { min-height: 60px; }
.la-neu-sp { border-style: dotted; }
.la-gsp { border: 2px dashed #6f8f88 !important; background: rgba(244,248,247,.8) !important; }
.la-gsp.belegt { background: repeating-linear-gradient(135deg, #e3b77a 0 8px, #cf9a58 8px 10px) !important; border-color: #b07a3c !important; }
.la-spzeile { display: flex; gap: 6px; align-items: center; } .la-spzeile input { width: 64px !important; } .la-spzeile button { border: 1px solid #0f7a6c; background: #fff; color: #0f7a6c; padding: 2px 8px; cursor: pointer; font: inherit; }
.la-hsp { display: inline-flex; gap: 4px; align-items: center; border: 2px dashed #6f8f88; background: #f4f8f7; padding: 2px 5px; font-family: Consolas, monospace; font-size: 10.5px; font-weight: 600; color: #3f4d57; }
.la-hreg { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; border: 1px solid #0f7a6c; background: #fff; padding: 2px 4px; max-width: 150px; }
.la-hreg b { font-family: Consolas, monospace; font-size: 10.5px; color: #0b5c51; margin-right: 3px; }
.la-hreg i { font-style: normal; font-family: Consolas, monospace; font-size: 9px; border: 1px solid #9fb3ae; padding: 0 2px; color: #5d6b75; }
.la-hreg i.b { background: #e3b77a; border-color: #b07a3c; color: #4a2e0c; }
.la-gneu.la-gneu-p { right: 64px; border-style: dotted; } .la-gneu-b.la-gneu-p { right: 68px; }
.la-best tr[draggable] { cursor: grab; } .la-best tr[draggable]:hover td { background: #fbf3e6; } .la-best tr.zieht td { opacity: .4; }
.la-best .la-cbz { width: 22px; padding-right: 0; } .la-best .la-cbz input { width: auto; height: auto; margin: 0; }
.la-best tr.aus td { background: #e3f1ee; }
.la-aus { background: #e3f1ee; color: #0b5c51; padding: 4px 10px; font-size: 12px; border-top: 1px solid #c6ddd8; }
/* ab 3.99.350: Wände/Türen im Grundriss, Liste „Was liegt wo“, Etiketten */
.la-gwz { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 2; }
.la-gwz button { border: 1px dashed #6f8f88; background: #fff; color: #3f4d57; font-size: 11px; padding: 1px 8px; cursor: pointer; }
.la-gwand { position: absolute; background: #3f4d57; cursor: grab; touch-action: none; }
.la-gwand.tuer { background: repeating-linear-gradient(90deg, #fff 0 6px, #c9d3da 6px 8px); border: 2px solid #8a6d3b; }
.la-gwand.tuer.hoch { background: repeating-linear-gradient(0deg, #fff 0 6px, #c9d3da 6px 8px); }
.la-gwand.gew { outline: 3px solid #ffb300; } .la-gwand.zieht { opacity: .7; z-index: 5; }
.la-gwgr { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: #ffb300; border: 1px solid #9a6700; cursor: ew-resize; }
.la-gwand.hoch .la-gwgr { cursor: ns-resize; }
.la-liste { border: 1px solid #c6ddd8; background: var(--mud-palette-surface); }
.la-lkopf { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid #e1e7ec; }
.la-lkopf .la-lsuche { flex: 1; max-width: 420px; }
.la-ltab td { font-size: 12.5px; } .la-ltab tr[data-a] { cursor: pointer; } .la-ltab tr[data-a]:hover td { background: #f2f8f7; } .la-ltab tr.aus td { background: #e3f1ee; }
.la-kbtn { border: 1px solid #0f7a6c; background: #fff; color: #0f7a6c; padding: 2px 10px; cursor: pointer; font: inherit; }

/* ab 3.99.351: Lagerposten im Artikel-Detail des Aufbaus */
.la-sunter { margin: 10px 0 4px; font-weight: 600; color: #0f7a6c; }

/* ab 3.99.352: Stammdaten → Lager → Übersicht (Lagerhallen, Geschosse, Räume, Regale, Stellplätze mit Lagerwert) */
.lu { padding: 10px 14px; overflow: auto; height: 100%; box-sizing: border-box; }
.lu-leiste { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.lu-titel { font-weight: 600; color: #0f7a6c; font-size: 15px; }
.lu-ges { margin-left: auto; }
.lu-ges b { font-size: 17px; color: #0f7a6c; margin-left: 6px; }
.lu-hallen { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.lu-halle { border: 1px solid #0f7a6c; background: var(--mud-palette-surface, #fff); }
.lu-halle.inaktiv { opacity: .6; }
.lu-kopf { background: #0f7a6c; color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.lu-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lu-nr { font-family: ui-monospace, Consolas, monospace; font-size: 11px; opacity: .85; }
.lu-wert { margin-left: auto; font-size: 18px; white-space: nowrap; }
.lu-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 10px; font-size: 12px; color: #5b6b68; border-bottom: 1px solid #dfe5e3; }
.lu-link { margin-left: auto; background: none; border: 0; color: #0f7a6c; cursor: pointer; text-decoration: underline; font-size: 12px; padding: 0; }
.lu-geschaetzt { background: #fdf1dc; color: #8a5a12; padding: 0 5px; }
.lu-z { margin: 6px 8px; }
.lu-z.oben { border: 1px solid #dfe5e3; padding: 5px 7px; }
.lu-z.oben.offen { border-color: #0f7a6c; }
.lu-zk { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.lu-pfeil { width: 10px; color: #0f7a6c; font-size: 11px; }
.lu-sym { width: 22px; height: 20px; flex: none; }
.lu-sym.gross { width: 34px; height: 30px; }
.lu-zname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-zw { margin-left: auto; white-space: nowrap; }
.lu-bal { height: 5px; background: #eef2f1; margin: 4px 0 0 16px; }
.lu-bal i { display: block; height: 100%; background: #0f7a6c; animation: lu-wachsen 1.1s ease-out; }
@keyframes lu-wachsen { from { width: 0; } }
.lu-punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lu-punkt.bald { background: #e08a1e; }
.lu-punkt.neg { background: #c0392b; }
.lu-sps { margin: 5px 0 0 16px; display: flex; flex-wrap: wrap; gap: 3px; }
.lu-sp { display: inline-block; width: 14px; height: 14px; border: 1px solid #0f7a6c; background: #fff; vertical-align: middle; }
.lu-sp.voll { background: #d9a35b; border-color: #9a6a2c; }
.lu-sp.voll.bald { background: #e08a1e; }
.lu-sp.voll.neg { background: #c0392b; border-color: #8e2a20; }
.lu-art { width: calc(100% - 16px); margin: 6px 0 4px 16px; border-collapse: collapse; font-size: 12px; }
.lu-art th { text-align: left; color: #5b6b68; font-weight: 500; border-bottom: 1px solid #dfe5e3; padding: 2px 4px; }
.lu-art td { padding: 2px 4px; border-bottom: 1px solid #f0f3f2; }
.lu-art .z { text-align: right; white-space: nowrap; }
.lu-leer { color: #8a9794; font-size: 12px; padding: 6px 10px; }
.lu-legende { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; font-size: 12px; }
.lu-legende span { display: inline-flex; align-items: center; gap: 5px; }

/* ab 3.99.353: Sprung aus dem Artikel – Plätze des Artikels markiert */
.la .la-mark { outline: 3px solid #e08a1e !important; outline-offset: 2px; animation: la-mark-puls 1.2s ease-in-out 3; }
@keyframes la-mark-puls { 50% { outline-color: rgba(224,138,30,.25); } }
.la .rastet { outline: 2px dashed #e08a1e; outline-offset: 1px; }

/* ab 3.99.354: Entnahme aufteilen (Belegerfassung) */
.en { font-size: 13px; }
.en-kopf { display: flex; justify-content: space-between; gap: 12px; background: #0f7a6c; color: #fff; padding: 6px 10px; }
.en-hinweis { font-size: 12px; color: #5b6b68; margin: 6px 0; }
.en-tab { width: 100%; border-collapse: collapse; }
.en-tab th { text-align: left; font-weight: 500; color: #5b6b68; border-bottom: 1px solid #dfe5e3; padding: 4px 6px; }
.en-tab td { padding: 4px 6px; border-bottom: 1px solid #eef2f1; }
.en-tab .z { text-align: right; }
.en-tab tr.en-std td { background: #f1f8f6; }
.en-klein { font-size: 11px; color: #5b6b68; }
.en-null { color: #a0aaa8; }
.en-ein { width: 80px; text-align: right; border: 1px solid #b9c6c3; padding: 3px 6px; font: inherit; }
.en-ein:focus { outline: 2px solid #0f7a6c; }
.en-summe { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 600; }
.en-summe.ok { color: #0f7a6c; }
.en-summe.fehlt { color: #c0392b; }
.en-warn { margin-top: 6px; font-size: 12px; color: #8a5a12; background: #fdf1dc; padding: 4px 8px; }
.bpd-entnahme { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ab 3.99.354 (Rene 20.11.2026 21:48): Umsatzsteuer je Satz in den Summen – USt links, Satz und Betrag rechtsbündig, Linien durchgehend */
.beleg-summen .bs-titel.bs-ust { display: grid; grid-template-columns: auto 3.4em auto 1fr; column-gap: 6px; align-items: baseline; opacity: .8; }
.beleg-summen .bs-titel.bs-ust .bs-satz, .beleg-summen .bs-titel.bs-ust .bs-basis { text-align: right; font-variant-numeric: tabular-nums; }
.beleg-summen .bs-wert.bs-ust { opacity: .8; }
.beleg-summen .bs-wert { font-variant-numeric: tabular-nums; }
.beleg-summen .bs-titel.bs-ustges, .beleg-summen .bs-wert.bs-ustges { border-top: 1px solid #2e4052; padding-top: 3px; font-weight: 600; }
.beleg-summen .bs-titel.bs-ustges { margin-left: 14px; padding-left: 0; }
.beleg-summen .bs-kasten .bs-wert.bs-ustges, .beleg-summen .bs-kasten .bs-wert.bs-brutto { margin-right: 0; padding-right: calc(9px + 2px * var(--s, 1)); }
.beleg-summen .bs-titel.bs-ust > span, .beleg-summen .bs-wert { white-space: nowrap; }
.beleg-summen .bs-titel.bs-ustges, .beleg-summen .bs-titel.bs-brutto { white-space: nowrap; }
/* Linien ohne Lücke zwischen Bezeichnung und Betrag */
.beleg-summen .bs-kasten .bs-wert.bs-ustges, .beleg-summen .bs-kasten .bs-wert.bs-brutto { margin-left: -4px; padding-left: calc(7px * var(--s, 1) + 4px); }
/* ab 3.99.354: Linien von Titel und Betrag auf gleicher Höhe (sonst 1px Versatz) */
.beleg-summen .bs-titel.bs-ustges, .beleg-summen .bs-wert.bs-ustges, .beleg-summen .bs-titel.bs-brutto, .beleg-summen .bs-wert.bs-brutto { align-self: stretch; display: flex; align-items: center; }
.beleg-summen .bs-wert.bs-ustges, .beleg-summen .bs-wert.bs-brutto { justify-content: flex-end; }

/* ab 3.99.355 (Rene 20.11.2026 22:26 „Raster zu grob“): feines Raster 10 px, kräftigere Linie alle 50 px */
.la-plan { background-image: linear-gradient(#dfe8e6 1px, transparent 1px), linear-gradient(90deg, #dfe8e6 1px, transparent 1px), linear-gradient(#f1f5f4 1px, transparent 1px), linear-gradient(90deg, #f1f5f4 1px, transparent 1px); background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; }

/* ab 3.99.355: rechte Spalte (Details) in der Breite ziehbar, je Benutzer gemerkt; Raum/Geschoss wählbar */
.la-raster { grid-template-columns: minmax(0, 1fr) 6px var(--la-sb, 330px); gap: 6px; }
.la-sgriff { cursor: col-resize; align-self: stretch; min-height: 80px; background: linear-gradient(90deg, transparent 2px, #c6ddd8 2px, #c6ddd8 4px, transparent 4px); }
.la-sgriff:hover, .la-raster.zieht-b .la-sgriff { background: linear-gradient(90deg, transparent 1px, #0f7a6c 1px, #0f7a6c 5px, transparent 5px); }
.la-raster.zieht-b { user-select: none; }
@media (max-width: 1100px) { .la-raster { grid-template-columns: 1fr; } .la-sgriff { display: none; } }
.la-raum.gew { outline: 2px solid #e0a030; outline-offset: -1px; }
.la-graum.gew { outline: 2px solid #e0a030; }

/* ab 3.99.360: Lagertypen (Artikel → Lager, Aufbau) */
.alo-typ { padding: 0 6px; font-size: .74rem; }
.alo-typ.t1 { background: #fdecec; color: #8a1f1f; }
.alo-typ.t2 { background: #fff4dc; color: #7a5200; }
.alo-sperrhinweis { color: #8a1f1f; }
tr.alo-gesperrt td { color: #8a1f1f !important; font-weight: 400; }
tr.alo-verfuegbar td { color: #0f7a6c !important; font-weight: 600; border-top: 1px solid var(--mf-feldrand); }
.la-regal.gesperrt, .la-gregal.gesperrt, .la-raum.gesperrt { outline: 2px dashed #c0392b; outline-offset: -2px; }
.la-slot.gesperrt { background: #fdecec !important; border-color: #c0392b !important; color: #8a1f1f; }
.la-gregal.gesperrt { background: repeating-linear-gradient(45deg, #fdecec 0 6px, #fff 6px 12px) !important; }
.la-sperre { display: inline-flex; align-items: center; gap: 6px; color: #8a1f1f; }
.la .la-sperre input[type=checkbox] { width: auto !important; height: auto !important; min-width: 0 !important; flex: none; margin: 0; }
.la .la-sperre span { white-space: nowrap; font-size: .8rem; }
/* ab 3.99.366 (Rene 22.11.2026 01:39): Entnahmen je Lager bzw. Platz einzeilig untereinander; im Dialog „+“ statt „Summe Entnahme“ */
.bpd-entnahme-liste { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.bpd-entnahme-zeile { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.en-summe { align-items: center; }
.en-summe .ul-plus-knopf { margin-left: -4px; }
.en-neu select { width: 100%; }
/* ab 3.99.366 (Rene 22.11.2026 01:42): Artikel → Lager – je Lagerplatz eine Zeile unter dem Lager */
tr.alo-platz td { color: #475569; font-size: .92em; padding-top: 2px; padding-bottom: 2px; border-top: 0; }
tr.alo-platz .alo-platz-text { padding-left: 14px; font-family: ui-monospace, Consolas, monospace; }
/* ab 3.99.366 (Rene 22.11.2026 01:44 „ganz nach unten“): Artikel → Lager füllt die Höhe; Lagerposten als FilterTabelle */
.anzeigeliste.gross.alo-voll { min-height: max(calc(260px * var(--s)), calc(100vh - 330px * var(--s))); }
.alo-posten .filtertabelle { border: 0; }
/* ab 3.99.366: Lagerposten-Tabelle im Artikel – die klebenden Kopfzeilen der umgebenden großen Anzeigeliste (top 22px) nicht übernehmen,
   sonst liegt die Filterzeile über den Spaltenüberschriften */
.anzeigeliste.gross .alo-posten .mf-tabelle thead th { position: static; top: auto; }

/* 26.11.2026: Textbausteine – Vorschau mit Beleg und Platzhalter (TextbausteinVorschau) */
.tbv { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; min-width: 0; }
.tbv-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbv-titel { font-weight: 700; color: var(--mf-blau, #0b7a5c); text-transform: uppercase; font-size: .72rem; letter-spacing: .03em; margin-right: auto; }
.tbv-weg { border: none; background: none; cursor: pointer; color: #6b7785; }
.tbv-text { border: 1px solid #c9d6e2; border-radius: 4px; background: #fff; padding: 6px 8px; min-height: 5em; max-height: 22em; overflow: auto; }
.tbv-text p { margin: 0 0 .4em; }
.tbv-wert { background: #e6f4ea; border-radius: 2px; }
.tbv-unbekannt { color: #c5221f; text-decoration: underline wavy #c5221f; }
.tbv-hinweis { font-size: .7rem; color: #6b7785; }
.tbv-suche { flex: 1; min-width: 80px; border: 1px solid #c9d6e2; border-radius: 4px; padding: 2px 6px; font: inherit; }
.tbv-felder { border: 1px solid #e1e8ef; border-radius: 4px; max-height: 26em; overflow: auto; padding: 2px; }
.tbv-gruppe { display: flex; align-items: center; gap: 4px; width: 100%; border: none; background: none; padding: 3px 4px; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.tbv-gruppe small { margin-left: auto; color: #6b7785; font-weight: 400; }
.tbv-pfeil { display: inline-block; transition: transform .15s; }
.tbv-gruppe.offen .tbv-pfeil { transform: rotate(90deg); }
.tbv-feld { display: flex; gap: 6px; align-items: baseline; margin-left: 14px; padding: 2px 6px; border-radius: 3px; cursor: grab; user-select: none; }
.tbv-feld:hover { background: #eef5f2; }
.tbv-feld small { margin-left: auto; color: #6b7785; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ab 3.99.403 (Rene 26.11.2026 22:01): Seriennummern – Zelle im Lagerbeleg und Fenster */
.snz-knopf { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #0f7a6c; color: #0f7a6c; background: #fff; padding: 1px 8px; font: inherit; font-size: 12px; cursor: pointer; border-radius: 0; white-space: nowrap; }
.snz-knopf:hover { background: #eef6f4; }
.snz-knopf.fertig { border-color: #2e7d32; color: #2e7d32; }
.snd { font-size: 13px; }
.snd-zeile { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.snd-zeile > label:first-child:not(.snd-datei) { width: 110px; color: #33504b; } /* ab 3.99.406: Knopf „Aus Datei einlesen“ nicht auf 110px kürzen */
.snd-ein { flex: 1; min-width: 220px; border: 1px solid #b9c6c3; padding: 5px 8px; font: inherit; border-radius: 0; }
.snd-ein:focus { outline: 2px solid #0f7a6c; }
.snd-knoepfe { margin-left: 118px; }
.snd-datei { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.snd-nr { font-family: var(--mf-schrift-fest, ui-monospace, Consolas, monospace); font-size: 12px; }
.snd-ok { color: #2e7d32; }
.snd-fehler { color: #c0392b; }
.snd-leer td { color: #a0aaa8; }
.snd-an td { background: #f1f8f6; }
.snd-weg { border: 0; background: none; color: #5b6b68; cursor: pointer; padding: 0; display: inline-flex; }
.snd-weg:hover { color: #c0392b; }
.snd-frage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 6px 8px; background: #fdf1dc; color: #8a5a12; }

/* ab 3.99.407 (Rene 27.11.2026, Statistik Variante A mit Visualisierung): Kennzahlen und Balken – eckig, Grün, gleiche Schriftgrößen wie die Listen */
.bst-tabelle td, .bst-tabelle th { line-height: 1.35; }
.bsu-kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.bsu-kachel { border: 1px solid #d6dfdd; background: #fff; padding: 5px 8px; min-width: 0; }
.bsu-kachel span { display: block; font-size: .72rem; color: var(--mf-text-2, #5b6b68); }
.bsu-kachel b { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsu-gruen { color: #0f7a6c; } .bsu-minus { color: #b3261e !important; }
.bsu-titel { font-size: .68rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #0f7a6c; margin: 2px 0 6px; }
.bsu-balken { display: flex; flex-direction: column; gap: 4px; }
.bsu-zeile { display: grid; grid-template-columns: 160px minmax(0, 1fr) 110px 64px; gap: 8px; align-items: center; font-size: .78rem; }
.bsu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsu-bahn { display: flex; flex-direction: column; gap: 1px; background: #f2f5f4; padding: 1px 0; }
.bsu-bahn .bsu-erloes { height: 9px; } .bsu-bahn .bsu-mek { height: 6px; }
.bsu-erloes { background: #0f7a6c; display: block; } .bsu-mek { background: #9cc9c1; display: block; }
.bsu-wert, .bsu-spanne { text-align: right; white-space: nowrap; } .bsu-spanne { color: #0f7a6c; }
.bsu-legende { display: flex; gap: 14px; font-size: .72rem; color: var(--mf-text-2, #5b6b68); margin-top: 6px; }
.bsu-legende i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }

/* ab 3.99.432 (Rene 28.11.2026, Statistik „Wo verdiene ich?“): Treppe Umsatz → Rohertrag, Positionen mit Ampel – eckig, grüne Köpfe mit weißer Schrift */
.bsw-raster { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: 10px; margin-bottom: 10px; }
.bsw-kasten { border: 1px solid #d6dfdd; background: #fff; min-width: 0; }
.bsw-kopf { background: #0f7a6c; color: #fff; font-weight: 600; font-size: .78rem; padding: 4px 8px; display: flex; justify-content: space-between; }
.bsw-treppe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 170px; padding: 8px 10px 0; align-items: end; }
.bsw-treppe > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bsw-treppe i { display: block; width: 100%; }
.bsw-treppe b { font-size: .78rem; margin-bottom: 2px; white-space: nowrap; }
.bsw-treppe span { font-size: .72rem; margin-top: 3px; text-align: center; color: var(--mf-text-2, #5b6b68); }
.bsw-umsatz { background: #0f7a6c; } .bsw-einkauf { background: #9aa7b1; } .bsw-ertrag { background: #5fb3a6; } .bsw-verlust { background: #b3261e !important; }
.bsw-fuss { padding: 6px 8px; font-size: .72rem; color: var(--mf-text-2, #5b6b68); }
.bsw-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.bsw-tabelle th, .bsw-tabelle td { padding: 3px 8px; border-top: 1px solid #e6ecea; text-align: left; white-space: nowrap; }
.bsw-tabelle th { border-top: 0; color: var(--mf-text-2, #5b6b68); font-weight: 600; }
.bsw-tabelle .r { text-align: right; }
.bsw-tabelle .bsw-text { white-space: normal; }
.bsw-tabelle tfoot td { font-weight: 700; border-top: 2px solid #1d2b29; }
.bsw-strich { display: inline-block; height: 7px; background: #0f7a6c; margin-right: 6px; vertical-align: middle; }
.bsw-ampel { display: inline-block; padding: 0 6px; font-size: .72rem; }
.bsw-ampel.gut { background: #d9efe9; color: #0b5c51; } .bsw-ampel.mittel { background: #fde9c8; color: #7a4a00; } .bsw-ampel.schlecht { background: #fbdcdc; color: #8a1616; }
.bsw-legende { display: flex; gap: 8px; }
.bsw-kunde { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; border: 1px solid #d6dfdd; background: #fff; padding: 5px 8px; font-size: .78rem; margin-bottom: 4px; }
.bsw-kunde > b { color: #0f7a6c; }
@media (max-width: 900px) { .bsw-raster { grid-template-columns: 1fr; } }
/* ab 3.99.433 (Rene 29.11.2026 00:31 Variante A): Bestand je Lager in den Positionsdaten */
.bpd-bestand { margin-top: calc(10px * var(--s)); }
.bpd-bestand-titel { color: #0f7a6c; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px; }
.bpd-bestand table { width: 100%; border-collapse: collapse; font-size: .78rem; table-layout: fixed; }
.bpd-bestand th { text-align: left; font-weight: 500; color: var(--mf-text-2); border-bottom: 1px solid var(--mf-feldrand); padding: 2px 4px; }
.bpd-bestand td { padding: 2px 4px; border-bottom: 1px solid #eef1f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpd-bestand th.r, .bpd-bestand td.r { text-align: right; width: 64px; font-variant-numeric: tabular-nums; }
.bpd-bestand td.minus { color: #b3261e; font-weight: 600; }
.bpd-bestand .bpd-std { font-size: .66rem; background: #0f7a6c; color: #fff; padding: 0 5px; margin-left: 5px; }
.bpd-bestand tr.gruppe td { background: #f0f2f4; color: var(--mf-text-2); font-size: .68rem; font-weight: 600; border-top: 1px solid var(--mf-feldrand); }
.bpd-bestand tr.aus td { color: #9aa4ad; }
.bpd-bestand tr.klickbar { cursor: pointer; }
.bpd-bestand tr.klickbar:hover td { background: #f3f8f7; }
.bpd-bestand tr.gewaehlt td { background: #e3f1ee; color: #0f7a6c; font-weight: 600; }
.bpd-bestand tr.gewaehlt td.minus { color: #b3261e; }
.bpd-bestand tr.gewaehlt td:first-child { box-shadow: inset 3px 0 0 #0f7a6c; }
.bpd-bestand-hinweis { color: #b3261e; font-size: .74rem; margin-top: 4px; }
.bpd-bestand tr.summe td { font-weight: 600; border-top: 2px solid #0f7a6c; border-bottom: 0; }
/* ab 3.99.433 (Rene 29.11.2026 01:33 Variante D): Lager getrennt – Standard mit grünem Strich und Marke, „→ danach“, nicht verkaufsfähige grau */
.en-tab tr.en-std td:first-child { box-shadow: inset 3px 0 0 #43a047; }
.en-std-marke { font-size: 10.5px; background: #0f7a6c; color: #fff; padding: 0 5px; margin-left: 6px; }
.en-danach { color: #6b7782; font-size: 11px; margin-left: 5px; white-space: nowrap; }
.en-danach.minus { color: #b3261e; font-weight: 600; }
.en-tab tr.en-gruppe td { background: #f0f2f4; color: #6b7782; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border-top: 1px solid #d6dde3; }
.en-tab tr.en-aus td { color: #9aa4ad; }
/* ab 3.99.437 (Rene 29.11.2026 13:10 „das bitte immer in die zweite Zeile, sonst hüpft es immer“): Bezeichnung der Position immer in der zweiten Zeile */
.bpd-position .bpd-pos-text { flex-basis: 100%; }

/* ab 3.99.440: Variantenmatrix (Belegerfassung, Lagerbeleg) */
.vmx-dialog { min-width: 420px; max-width: 96vw; }
.vmx { overflow-x: auto; }
.vmx, .vmx-dialog { font-size: calc(13px * var(--s, 1)); } /* ab 3.99.458 (Rene 01.12.2026 16:47): Schrift im Fenster so groß wie in der Maske */
.vmx table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.vmx th { background: #0f7a6c; color: #fff; font-weight: 400; padding: 3px 2px; border-right: 1px solid #fff; text-align: center; }
.vmx td { padding: 1px 2px; vertical-align: middle; border-bottom: 1px solid #eef1f4; }
.vmx tr.vmx-band td { background: #f2f4f6; border-top: 1px solid #c9d2d8; padding: 3px 8px; font-weight: 600; color: #1b2430; } /* ab 3.99.446 (Rene 30.11.2026 10:07/10:09): Gruppenzeilen hellgrau, nie grün */
.vmx tr.vmx-band .vmx-bsum { font-weight: 400; color: #5f6b73; }
.vmx .vmx-bsum { float: right; }
.vmx .vmx-zelle { display: flex; flex-direction: column; align-items: stretch; gap: 1px; } /* ab 3.99.443: Bestand unter dem Feld */
.vmx .vmx-zelle input { flex: 1; min-width: 0; height: calc(22px * var(--s, 1)); border: 1px solid #9aa6b2; text-align: right; padding: 0 3px; font-size: calc(13px * var(--s, 1)); border-radius: 0; background: #fff; color: #1b2430; }
.vmx .vmx-zelle input:focus { outline: 2px solid #0f7a6c; }
.vmx .vmx-lager { background: #d6ebe6; color: #0b5a50; font-size: calc(13px * var(--s, 1)); text-align: right; padding: 0 3px; line-height: 1.35; }
.vmx .vmx-na { height: calc(42px * var(--s, 1)); background: repeating-linear-gradient(45deg, #eef1f4 0 4px, #fff 4px 8px); border: 1px solid #e1e6eb; }
.vmx .vmx-farbe { display: flex; align-items: center; gap: 6px; }
.vmx .vmx-farbe span { display: block; width: 14px; height: 14px; border-radius: 7px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.vmx .vmx-stk { background: #eef1f4; font-weight: 600; text-align: right; padding: 2px 6px; }
.vmx tr.vmx-sum td { border-top: 1px solid #1b2430; font-weight: 600; padding-top: 4px; text-align: right; }
.vmx tr.vmx-sum td:first-child { text-align: left; }
/* ab 3.99.443 (Rene 30.11.2026 01:48 „2“): aktives Feld – Größe und Farbe grün, Band über Zeile und Spalte, Rest grau und halb transparent */
.vmx th, .vmx td { transition: opacity .12s, background-color .12s; }
.vmx.vmx-fokus th.on { background: #0f7a6c; }
.vmx.vmx-fokus th.dimh { background: #9aa5ab; }
.vmx.vmx-fokus td.on { background: #0f7a6c; color: #fff; }
.vmx.vmx-fokus td.band { background: transparent; }
/* ab 3.99.446 (Rene 30.11.2026 10:07–10:10): im gewählten Feld bleibt nur dessen Lagerbestand grün, alle anderen Lagerbestände grau;
   Größe oben und Farbe links bleiben grün (th.on, td.on) */
.vmx.vmx-fokus .vmx-lager { background: #eef1f4; color: #7a858d; }
.vmx.vmx-fokus td.cur .vmx-lager { background: rgba(15, 122, 108, .22); color: #0b5a50; font-weight: 600; }
.vmx.vmx-fokus td.dim, .vmx.vmx-fokus tr.dim td { opacity: .55; filter: grayscale(1); }
.vmx th { background: #5f6b73; }
/* ab 3.99.443 (Rene 30.11.2026 02:16): Farben und Bänder oben anklicken */
.vmx-wahl-titel { font-size: calc(13px * var(--s, 1)); color: #5b6573; margin: 2px 0 4px; }
.vmx-gs { display: flex; margin: 0 0 8px; }
.vmx-gs button { border: 1px solid #9aa6b2; background: #fff; color: #1b2430; padding: 3px 14px; font-size: calc(13px * var(--s, 1)); margin-left: -1px; cursor: pointer; border-radius: 0; }
.vmx-gs button.an { background: #0f7a6c; border-color: #0f7a6c; color: #fff; }
.vmx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; } /* ab 3.99.457: volle Fensterbreite statt höchstens 900px */
.vmx-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 88px; background: none; border: 0; padding: 0; cursor: pointer; font-size: calc(13px * var(--s, 1)); color: #3c4752; }
.vmx-sw { width: 82px; height: 24px; border: 1px solid #c9d1d6; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: flex-end; }
.vmx-sw .mud-icon-root { font-size: 14px; background: #0f7a6c; color: #fff; margin: 2px; }
.vmx-chip.an .vmx-sw { outline: 2px solid #0f7a6c; outline-offset: 1px; }
.vmx-chip.an .vmx-chip-text { color: #0b5a50; font-weight: 600; }
.vmx-chip-text { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmx-schnell { display: flex; gap: 6px; margin: 0 0 10px; }
.vmx-hinweis { font-size: calc(13px * var(--s, 1)); color: #5b6573; margin-top: 6px; }
.vmx-leer, .vmx-fehler { padding: 20px; text-align: center; color: #5b6573; }
.vmx-fehler { color: #b3261e; }
/* ab 3.99.454: Sachkonten → Funktionen → Kontenrahmen importieren */
.kr-wahl { display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; }
.kr-wahl.aus { opacity: .55; cursor: default; }
.kr-anzahl { margin-left: auto; font-size: 12px; color: #5b6573; }
.kr-hinweis { font-size: 12px; color: #5b6573; margin-top: 10px; max-width: 520px; }
/* ab 3.99.455: Positionsdaten – Merkmale und Werte der Variante */
.bpd-pos-merkmale { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.bpd-merkmal { padding: 1px 8px; border-radius: 10px; background: #fff; border: 1px solid #d5e2f2; }
.bpd-merkmal > span { color: var(--mf-text-2); }
/* ab 3.99.455: Popup im Funktionen-Menü der Leiste (z. B. „Kontenrahmen importieren“) – die Leiste färbt Schrift und Knöpfe weiß, im Fenster wieder normal */
html body .leiste-fx .pu-fenster, html body .leiste-fx .pu-fenster b, html body .leiste-fx .pu-fenster p, html body .leiste-fx .pu-fenster label { color: #1b2430 !important; -webkit-text-fill-color: #1b2430 !important; }
html body .leiste-fx .pu-fenster .kr-anzahl, html body .leiste-fx .pu-fenster .kr-hinweis { color: #5b6573 !important; -webkit-text-fill-color: #5b6573 !important; }
html body .leiste-fx .pu-fenster .pu-kopf b { color: #0f7a6c !important; -webkit-text-fill-color: #0f7a6c !important; }
html body .leiste-fx .pu-fenster .pu-zu, html body .leiste-fx .pu-fenster .pu-zu .mud-icon-root { color: #5b6573 !important; fill: #5b6573 !important; -webkit-text-fill-color: #5b6573 !important; }
html body .leiste-fx .pu-fenster .pu-fuss .mf-knopf { background: #0f7a6c !important; border: 1px solid #0f7a6c !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .leiste-fx .pu-fenster .pu-fuss .mf-knopf .mud-icon-root { color: #fff !important; fill: #fff !important; }
html body .leiste-fx .pu-fenster .pu-fuss .mf-knopf.hell { background: #fff !important; border-color: #c5d1e0 !important; color: #1b2430 !important; -webkit-text-fill-color: #1b2430 !important; }
html body .leiste-fx .pu-fenster .pu-fuss .mf-knopf:disabled { opacity: .5; }
/* ab 3.99.455 (Norbert 01.12.2026, EU-Steuerfälle): Einkauf – selbst geschuldete Steuer (Erwerbsteuer, § 13b) und abziehbare Vorsteuer in den Belegsummen */
.beleg-summen .bs-titel.bs-selbst, .beleg-summen .bs-wert.bs-selbst { font-style: italic; opacity: .75; }
.beleg-summen .bs-titel.bs-selbst { display: grid; grid-template-columns: auto 3.4em auto 1fr; column-gap: 6px; align-items: baseline; }
.beleg-summen .bs-titel.bs-selbst .bs-satz, .beleg-summen .bs-titel.bs-selbst .bs-basis { text-align: right; font-variant-numeric: tabular-nums; }
/* ab 3.99.455: Warenwirtschaft → Verkauf → Umsatzsteuer-Meldungen */
.ustm input[type=date] { padding: 3px 6px; border: 1px solid var(--mf-rand, #c9d3dd); border-radius: 4px; }
.ustm-schwelle { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 12px; margin: 8px 0; border-radius: 6px; background: #eef4f9; border: 1px solid #c9d9e8; }
.ustm-schwelle.warnung { background: #fff4e0; border-color: #e8b04a; }
.ustm .anzeigeliste { margin-top: 12px; }
.ustm .ustm-csv { margin-left: 10px; padding: 1px 8px; font-size: .78rem; }
.ustm tr.ustm-fehlt td { color: #a8461b; }
.ustm .anzeigeliste-summe td { border-top: 1px solid #2e4052; }
.ustm .ustm-hinweis { margin-top: 12px; font-size: .78rem; }
/* ab 3.99.461 (Norbert 02.12.2026 „das Importfeld anzeigen“): Popup in der Leiste (Kontenrahmen importieren) – die Knöpfe im Fuß erben die Regeln der
   Werkzeugleiste (nur Symbol, Schriftgröße 0, durchsichtig, Überlauf ausgeblendet); hier immer vollständig mit Text anzeigen */
html body .leiste-fx .pu-fenster .pu-fuss > button { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; position: static !important;
  align-items: center; gap: 6px; width: auto !important; min-width: 0 !important; height: auto !important; min-height: 32px; padding: 6px 14px !important;
  font-size: .85rem !important; font-weight: 500; border-radius: 6px !important; white-space: nowrap; flex: 0 0 auto; }
html body .leiste-fx .pu-fenster .pu-fuss > button:last-child { background: #0f7a6c !important; border: 1px solid #0f7a6c !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .leiste-fx .pu-fenster .pu-fuss > button:last-child .mud-icon-root { color: #fff !important; fill: #fff !important; }
html body .leiste-fx .pu-fenster .pu-fuss > button svg { width: 1.1rem !important; height: 1.1rem !important; font-size: 1.1rem !important; margin: 0 !important; }
html body .leiste-fx .pu-fenster .pu-fuss > button:last-child:disabled { opacity: .5 !important; }

/* modulstil.Werkmeldung/stil.css */
/* Modul Werkanmeldung – nur Klassen mit Präfix „wm-“ */
.wm-filter { width: auto !important; height: 28px; }
.wm-ack { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.wm-status { padding: 1px 7px; border-radius: 10px; background: #eef2f7; font-size: .78rem; }
.wm-status.ok { background: #dcfce7; color: #166534; }
.wm-status.lauf { background: #e0f2fe; color: #075985; }
.wm-status.fehler { background: #fee2e2; color: #991b1b; }
.wm-text { white-space: pre-line; max-width: 360px; }

/* modulstil.Zeiterfassung/stil.css */
/* ab 3.99.120 (Rene 03.11.2026 08:19): Zeitkonten im einheitlichen Design – Standardleiste, Kopf, ruhige Kennzahlen, Reiter, Liste unten */
.az-neu.ansicht { overflow: hidden; }
.az-neu .ansicht-formular.az-formular { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.az-neu.ansicht:not(.mit-teiler) .ansicht-formular.az-formular { flex: 1; }
.az-std-leiste { flex-wrap: wrap; }
.az-std-leiste .az-status { margin-right: 10px; }
.az-kopf { display: grid; grid-template-columns: auto minmax(220px, 1.4fr) auto auto auto minmax(140px, 1fr); gap: 6px 10px; align-items: center; padding: 8px 10px 4px; font-size: .8rem; }
.az-kopf > label { color: var(--th-text2, #47606a); }
.az-kopf-ma { display: flex; align-items: center; gap: 6px; min-width: 0; }
.az-kopf-ma > :last-child { flex: 1; min-width: 0; }
.az-kopf-monat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.az-kopf-monat b { min-width: 120px; text-align: center; padding: 2px 8px; border: 1px solid var(--th-feldrand, #c3cfd9); border-radius: 3px; background: var(--th-feld, #fff); font-weight: 600; }
.az-kopf-monat .mf-navi-knopf { all: unset; cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px; color: var(--mf-text-2, #47606a); }
.az-kopf-monat .mf-navi-knopf:hover { background: rgba(15, 118, 110, .08); }
.az-kopf-wert { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-kz { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 10px 8px; }
.az-kz > div { display: flex; flex-direction: column; gap: 1px; padding: 2px 12px; border-left: 1px solid var(--th-rahmen, #d5dde6); min-width: 0; }
.az-kz > div:first-child { border-left: 0; padding-left: 2px; }
.az-kz small { font-size: .7rem; color: var(--th-text2, #47606a); }
.az-kz b { font-size: 1.05rem; font-weight: 700; }
.az-kz span { font-size: .72rem; color: var(--th-text2, #607079); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-kz .az-warn { color: #b45309; }
.az-marke { align-self: flex-start; font-size: .72rem; padding: 0 8px; border-radius: 9px; background: #eef2f5; color: #47606a; }
.az-marke.zu { background: #e3f4ea; color: #1f7a45; }
/* ab 3.99.144 (Rene 04.11.2026 00:54 „die Tabs sollten gleich sein wie im Titelarchiv“): Karteikarten wie .formular-reiter */
.az-reiter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: calc(3px * var(--s, 1)); padding: 0 10px; border-bottom: 1px solid #b9c6d2; }
.az-rt { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: calc(4px * var(--s, 1)); padding: calc(5px * var(--s, 1)) calc(14px * var(--s, 1));
    font-size: .8rem; font-weight: 500; color: #46525e; background: #e4e9ee; border: 1px solid #c9d3dc; border-bottom: 0; border-radius: calc(7px * var(--s, 1)) calc(7px * var(--s, 1)) 0 0; }
.az-rt:hover { background: #eef2f5; color: #1f2d3d; }
.az-rt.an { background: #fff; color: var(--mf-blau); font-weight: 700; border-color: #b9c6d2; border-top: 3px solid var(--mf-blau); margin-bottom: -1px; padding-bottom: calc(6px * var(--s, 1)); position: relative; z-index: 1; }
.az-rt i { font-style: normal; display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: .72em; font-weight: 700; line-height: 18px; text-align: center; background: #cfd8e0; color: #334155; }
.az-rt.an i { background: var(--mf-blau); color: #fff; }
.az-reiter-inhalt { flex: 1; min-height: 0; overflow: auto; }
.az-reiter-inhalt .az-tabelle-rahmen { overflow: visible; }
.az-hinweis-marke { display: inline-block; font-size: .7rem; padding: 0 7px; margin-right: 4px; border-radius: 9px; background: #fdf3d8; color: #8a5a00; white-space: nowrap; }
.az-liste { min-height: 0; display: flex; flex-direction: column; }
.az-heute { display: inline-flex; align-items: center; gap: 6px; }
.az-heute i { width: 8px; height: 8px; border-radius: 50%; background: #b8c2cc; }
.az-heute i.s1 { background: #1baf7a; } .az-heute i.s2 { background: #94a3b8; }
.az-ft .az-minus, td.az-minus { color: #c62828; } .az-ft .az-plus, td.az-plus { color: #1f7a45; }
@media (max-width: 900px) {
  .az-kopf { grid-template-columns: auto 1fr; }
  .az-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .az-kz > div { border-left: 0; padding-left: 2px; }
}
.az-rt .mud-icon-root { font-size: 15px !important; width: 15px; height: 15px; color: #5b6b80; }
.az-rt.an .mud-icon-root { color: var(--mf-blau); }
.az-kz .az-marke { margin-top: 2px; }
.az-ft td.az-minus { color: #c62828 !important; } .az-ft td.az-plus { color: #1f7a45 !important; }
/* Standardhöhe ohne gespeicherten Teiler: Formular 62 %, Liste den Rest */
.az-neu.mit-teiler > .ansicht-formular.az-formular { flex: 0 0 62%; }

/* ab 3.99.144 (Rene 04.11.2026 00:58): Monatsansicht übersichtlicher */
.az-tage td.az-datum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.az-tage .az-wt { display: inline-block; width: 2.1em; }
.az-tage td.az-paare { font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-paar { display: grid; grid-template-columns: 3.2em 1.2em 3.2em; line-height: 1.22; }
.az-paar-strich { text-align: center; color: var(--th-text2, #94a3b8); }
.az-tage tr.farbig td { background: color-mix(in srgb, var(--az-zeile, #8e24aa) 13%, transparent) !important; opacity: 1; }
.az-tage tr.farbig.wochenende td { background: color-mix(in srgb, var(--az-zeile, #8e24aa) 18%, transparent) !important; }
.az-tage tr { vertical-align: top; }
/* Rene 00:59: Samstag hellgrau, Sonntag dunkler – nach rechts ausfadend; Linien kräftiger */
.az-tage td { border-bottom: 1px solid #cfd7e0; }
.az-tage tr.samstag { background: linear-gradient(90deg, #dde3ea 0%, #e9edf1 35%, rgba(233,237,241,0) 80%); }
.az-tage tr.sonntag { background: linear-gradient(90deg, #c3ccd6 0%, #d8dfe6 35%, rgba(216,223,230,0) 85%); }
.az-tage tr.wochenende td { background: transparent; opacity: 1; }
.az-tage tr.sonntag td.az-datum { font-weight: 600; }

/* ab 3.99.149 (Rene 04.11.2026 13:37 „die Anwesenden mit einem grünen Background hinterlegen“) */
.az-tafel .az-karte.da { background: #e3f4e6; border-color: #9fd3a8; }
.az-tafel .az-karte.pause { background: #fff4dc; border-color: #f0d08a; }

/* ab 3.99.149 (Rene 04.11.2026 13:51 „Mitarbeitername kürzen, fett“) */
.az-kopf-ma-kurz > :last-child { flex: 0 1 300px; max-width: 300px; }
.az-kopf-ma-kurz .aw-feld input { font-weight: 700; }
.az-kopf:has(.az-kopf-ma-kurz) { grid-template-columns: auto auto auto auto auto minmax(140px, 1fr); }
.az-kopf-ma-kurz { width: auto; }
.az-kopf-ma-kurz > :last-child { width: 300px; }

/* ab 3.99.149 (Rene 04.11.2026 14:31 „Fontfarbe in der gesamten Zeitverwaltung wie bei Katalogprodukte, Feld ‚Titel des Tonträgers‘“):
   Inhalte in derselben dunklen Schriftfarbe wie die Eingabefelder (MudBlazor-Textfarbe des Themes) */
.az-ansicht, .az-meine, .az-schrift { color: var(--mud-palette-text-primary, #1E262B); --th-liste-text: var(--mud-palette-text-primary, #1E262B); } /* auch die Listen (FilterTabelle) – nur Schrift, keine Hintergründe */
:where(.az-ansicht, .az-meine, .az-schrift) :where(td, .mud-table-cell, .mf-tabelle td) { color: var(--mud-palette-text-primary, #1E262B); }
/* ab 3.99.150 (Rene 04.11.2026 15:12 „Zeilenhöhe noch ein wenig minimierter“): Monatstabelle kompakter */
.az-tage td { padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.22; }

/* ab 3.99.249 (Rene): Monatstabelle im Zeitkonto hell – weiße Fläche statt der Formularfarbe dahinter (Wochenenden bleiben grau) */
.az-tabelle-rahmen { background: #fff; }
.az-tage { background: #fff; }

/* ab 3.99.318 (Rene 17.11.2026 Option B): Zeitübersicht – eckig, Grün als Akzent, keine Emojis */
.az-reiterfenster { display: flex; flex-direction: column; height: 100%; }
.az-reiterfenster-inhalt { display: flex; flex-direction: column; }
.az-reiterfenster-inhalt > .ansicht { flex: 1; min-height: 0; }
.az-ueb { overflow: auto; }
.azu-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 10px 12px 4px; }
.azu-zahl { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #d5dbe1; border-left: 3px solid #9aa4ad; background: #fff; }
.azu-zahl .mud-icon-root { grid-row: 1 / span 2; color: #6b7682; font-size: 1.3rem; }
.azu-zahl b { font-size: 1.15rem; font-weight: 700; color: #2e4052; line-height: 1.1; }
.azu-zahl small { font-size: .7rem; color: #64748b; }
.azu-zahl.gruen { border-left-color: var(--mf-gruen, #0f7a6c); } .azu-zahl.gruen .mud-icon-root, .azu-zahl.gruen b { color: var(--mf-gruen, #0f7a6c); }
.azu-zahl.gelb { border-left-color: #c58a00; } .azu-zahl.gelb b { color: #8a5a00; }
.azu-zahl.rot { border-left-color: #c62828; } .azu-zahl.rot b { color: #c62828; }
.azu-zahl.null b { color: #9aa4ad; }
.azu-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 8px 12px 14px; }
.azu-kasten { border: 1px solid #d5dbe1; background: #fff; padding: 8px 10px 10px; min-width: 0; }
.azu-kasten.breit { grid-column: 1 / -1; }
.azu-kasten h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #2e4052; border-bottom: 1px solid #e3e8ed; padding-bottom: 5px; }
.azu-kasten h3 .mud-icon-root { font-size: 1.05rem; color: var(--mf-gruen, #0f7a6c); }
.azu-kasten h3 small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #64748b; margin-left: 4px; }
.azu-anzahl { font-style: normal; background: #c62828; color: #fff; font-size: .7rem; padding: 0 6px; line-height: 16px; }
.azu-leer { font-size: .76rem; color: #64748b; display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.azu-zeile { display: flex; align-items: center; gap: 8px; font-size: .76rem; padding: 3px 0; border-bottom: 1px solid #f0f3f5; }
.azu-zeile b { font-weight: 600; min-width: 140px; }
.azu-text { color: #46525e; }
.azu-punkt { width: 9px; height: 9px; flex: none; background: #c9d1d9; }
.azu-punkt.da { background: var(--mf-gruen, #0f7a6c); } .azu-punkt.pause { background: #c58a00; } .azu-punkt.reise { background: #2e4052; }
.azu-punkt.abw { background: #9aa4ad; } .azu-punkt.nicht { background: #fff; border: 1.5px solid #c58a00; } .azu-punkt.weg { background: #e3e8ed; }
.azu-gruppe { font-size: .7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 2px; }
.azu-fall { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .76rem; padding: 4px 0; border-bottom: 1px solid #f0f3f5; }
.azu-fall small { color: #64748b; }
.azu-fall.s2 { border-left: 3px solid #c62828; padding-left: 6px; }
.azu-knoepfe { display: flex; gap: 4px; flex: none; }
.azu-tabelle { width: 100%; border-collapse: collapse; font-size: .76rem; }
.azu-tabelle th, .azu-tabelle td { padding: 4px 6px; border-bottom: 1px solid #eef1f4; text-align: right; white-space: nowrap; }
.azu-tabelle th { font-size: .7rem; font-weight: 700; color: #64748b; background: #f7f8f9; }
.azu-tabelle .l { text-align: left; }
.azu-link { all: unset; cursor: pointer; font-weight: 600; color: #2e4052; } .azu-link:hover { color: var(--mf-gruen, #0f7a6c); text-decoration: underline; }
.azu-balken { display: inline-block; width: 140px; height: 8px; background: #eef1f4; vertical-align: middle; margin-right: 6px; }
.azu-balken > span { display: block; height: 100%; background: var(--mf-gruen, #0f7a6c); }
.azu-balken > span.hoch { background: #c58a00; } .azu-balken > span.tief { background: #9aa4ad; }
.azu-balken.gross { width: 220px; height: 10px; }
.azu-tage { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); border-left: 1px solid #e3e8ed; }
.azu-tag { border-right: 1px solid #e3e8ed; min-height: 70px; padding: 0 2px 4px; }
.azu-tag.we { background: rgba(100, 116, 139, .07); }
.azu-tag.heute .azu-tag-kopf { color: var(--mf-gruen, #0f7a6c); border-bottom: 2px solid var(--mf-gruen, #0f7a6c); }
.azu-tag-kopf { font-size: .7rem; font-weight: 700; text-align: center; padding: 3px 0; border-bottom: 1px solid #e3e8ed; margin-bottom: 3px; color: #2e4052; }
.azu-tag-kopf small { display: block; font-weight: 400; color: #64748b; }
.azu-eintrag { font-size: .68rem; padding: 1px 3px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #eef1f4; color: #46525e; }
.azu-eintrag.abw { background: #e1f5ee; color: #085041; } .azu-eintrag.beantragt { background: #fff; border: 1px dashed #0f7a6c; color: #085041; }
.azu-eintrag.reise { background: #fff; border-left: 3px solid var(--mf-gruen, #0f7a6c); color: #085041; } .azu-eintrag.ft { background: #f3eef7; color: #5b3a73; font-weight: 600; }
.azu-abschluss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .76rem; }
@media (max-width: 1100px) { .azu-raster { grid-template-columns: minmax(0, 1fr); } .azu-tage { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* ab 3.99.318: Dienstreisen & Montagen */
.azr-monat { font-size: .78rem; font-weight: 600; min-width: 120px; text-align: center; }
.azr-einst { padding: 8px 12px; }
.azr-saetze input.kurz { width: 50px; text-transform: uppercase; } .azr-saetze input.zahl { width: 80px; text-align: right; }
.azr-land, .azr-km, .azr-mahl, .azr-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .76rem; }
.azr-land input.kurz { width: 60px; text-transform: uppercase; }
input.zahl { width: 80px; text-align: right; }
label.inline { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.azr-spesen { display: flex; flex-direction: column; gap: 3px; }
.azr-spese { display: flex; align-items: center; gap: 8px; font-size: .76rem; }
.azr-spese b { margin-left: auto; }
.azr-spese.neu input:first-child { flex: 1; }
.azr-beleg { cursor: pointer; }
.azr-betrag { font-size: .76rem; }
.azr-summen { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.azr-summen .summe { border-left: 2px solid var(--mf-gruen, #0f7a6c); padding-left: 8px; }
.azr-summen .summe b { color: var(--mf-gruen, #0f7a6c); }
.azr-felder span input:not([type=checkbox]), .azr-felder .azr-spese input { font: inherit; font-size: .8rem; padding: 4px 7px; border: 1px solid #c6cacf; border-radius: 0; background: #fff; box-sizing: border-box; }
.azr-felder > input, .azr-felder > textarea { border-radius: 0; }
.azr-felder span small { display: inline; margin: 0; }
.azr-felder .azr-km .mud-select, .azr-felder .azr-km > div { min-width: 260px; }
.az-info { color: #64748b; font-size: .7rem; } a.az-info { color: var(--mf-gruen, #0f7a6c); margin-left: 4px; }

/* ab 3.99.318: Meine Dienste (Dienstplan-Mitwirkung) */
.azm-dienste { margin: 0 12px 10px; }
.azm-neu { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: .76rem; border-left: 3px solid var(--mf-gruen, #0f7a6c); background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 8%, #fff); }
.azm-neu .mud-icon-root { color: var(--mf-gruen, #0f7a6c); }
.azm-neu span { flex: 1; }
.azm-dienst { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; font-size: .76rem; border: 1px solid var(--dpl-f, #0f766e); background: color-mix(in srgb, var(--dpl-f, #0f766e) 35%, #fff); color: color-mix(in srgb, var(--dpl-f, #0f766e) 55%, #000); }
.azm-wunsch { white-space: nowrap; }
.azm-wunsch .mf-knopf { vertical-align: middle; }
.azm-wahl { display: inline-flex; gap: 2px; }
.azm-w { font-size: .7rem; padding: 1px 6px; border: 1px solid #c9d1d9; background: #fff; color: #46525e; cursor: pointer; }
.azm-w:hover { border-color: var(--mf-gruen, #0f7a6c); }
.azm-w.frei.an { background: #fdecea; border-color: #c62828; color: #8e1c1c; }
.azm-w.kann.an { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 15%, #fff); border-color: var(--mf-gruen, #0f7a6c); color: var(--mf-gruen, #0f7a6c); }
.azm-status { font-size: .7rem; color: #8a5a00; margin-right: 4px; }
.azm-status.angenommen { color: var(--mf-gruen, #0f7a6c); }
.azm-angebote { margin-top: 8px; font-size: .76rem; }
.azm-angebot { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f0f3f5; }
.azm-angebot > span:first-child { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Dienstplan: Wünsche der Mitarbeiter und ausgeschriebene Dienste */
.dpl-wunsch { position: absolute; top: 1px; right: 2px; font-size: .62rem; font-weight: 700; line-height: 1; padding: 1px 2px; }
.dpl-wunsch.frei { color: #c62828; }
.dpl-wunsch.kann { color: var(--mf-gruen, #0f7a6c); }
.dpl-tausch { position: absolute; bottom: 1px; right: 2px; color: #c58a00; font-size: .8rem; line-height: 1; }
.dpl-offen { display: inline-block; margin-top: 2px; font-size: .62rem; padding: 0 3px; border: 1px dashed #c58a00; color: #8a5a00; background: #fff8e6; }
.dpl-aus { border: 0; background: none; padding: 0 2px; cursor: pointer; color: #8a5a00; font-size: .62rem; text-decoration: underline; }
.dpl-tabelle .dpl-zelle { position: relative; }
.dpl-wunsch .mud-icon-root { font-size: .8rem; }
.dpl-tausch .mud-icon-root { font-size: .85rem; }
.dpl-dienstsicht td.dpl-zelle { vertical-align: top; height: auto; text-align: left; padding: 3px 4px; }
.dpl-person { display: block; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpl-person.entwurf { font-style: italic; color: #64748b; }
.azm-nachweis { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 6px 10px; font-size: .76rem; border: 1px solid #d5dbe1; border-left: 3px solid #c58a00; background: #fffaf0; }
.azm-nachweis span { flex: 1; }
.azm-nachweis .mud-icon-root { color: #c58a00; }
.azm-nachweis.ok { border-left-color: var(--mf-gruen, #0f7a6c); background: #fff; color: #46525e; }
.azm-nachweis.ok .mud-icon-root { color: var(--mf-gruen, #0f7a6c); }
/* ab 3.99.318: Zeitraum-/Abteilungswahl in der Leiste nicht über die ganze Breite; Pinsel-Icons klein */
.az-leiste .dpl-wahl { width: 150px; flex: 0 0 auto; }
.dpl-pinsel .dpl-chip .mud-icon-root { font-size: .9rem; vertical-align: -2px; }

/* ab 3.99.319 (Rene 17.11.2026 23:43): Zeitübersicht animiert – Ring, zählende Kennzahlen, Tagesleiste, wachsende Balken, Saldo-Etikett.
   Animation nur beim Einfügen der Elemente (Öffnen, „Aktualisieren“); „Bewegung reduzieren“ des Systems schaltet sie ab. */
@property --azu-n { syntax: '<integer>'; inherits: false; initial-value: 0; }
.azu-zaehl { --azu-n: var(--z, 0); counter-reset: azu var(--azu-n); animation: azu-zaehlen 1s ease-out; }
.azu-zaehl::after { content: counter(azu); }
@keyframes azu-zaehlen { from { --azu-n: 0; } }
.azu-oben { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px; align-items: center; padding: 10px 12px 4px; }
.azu-oben .azu-kennzahlen { padding: 0; }
.azu-ring { width: 140px; height: 140px; justify-self: center; }
.azu-ring svg { width: 100%; height: 100%; }
.azu-ring-teil { animation: azu-ring 1.2s ease-out; }
@keyframes azu-ring { from { stroke-dasharray: 0 289.03; } }
.azu-ring-zahl { font-size: 24px; font-weight: 700; fill: #085041; }
.azu-ring-text { font-size: 10px; fill: #64748b; }
.azu-tl-achse, .azu-tl-zeile { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.azu-tl-achse > div { position: relative; height: 14px; font-size: .66rem; color: #9aa4ad; }
.azu-tl-achse > div span { position: absolute; transform: translateX(-50%); }
.azu-tl-zeile { font-size: .76rem; padding: 4px 0; border-bottom: 1px solid #f0f3f5; }
.azu-tl-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.azu-tl-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azu-tl { position: relative; height: 14px; background: #eef1f4; }
.azu-tl-plan { position: absolute; top: -3px; bottom: -3px; border: 1.5px dashed var(--mf-gruen, #0f7a6c); }
/* ab 3.99.446 (Rene 30.11.2026): reguläre Zeit hellgrün (unten 3 px über), Beginn/Ende als 1-px-Striche, feine Stundenlinien, Jetzt 1 px */
.azu-tl-soll { position: absolute; top: 0; bottom: -3px; background: rgba(15, 122, 108, .24); }
.azu-tl-stunde { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(255, 255, 255, .8); }
.azu-tl-kante { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #0b5c51; z-index: 2; }
.azu-tl-teil { position: absolute; top: 0; bottom: 0; background: var(--mf-gruen, #0f7a6c); transform-origin: left; animation: azu-wachsen 1.1s ease-out; }
.azu-tl-teil.pause { background: #e8b04a; }
.azu-tl-jetzt { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #c62828; z-index: 3; }
.azu-tl-zeile .azu-text { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azu-anim .azu-balken > span { transform-origin: left; animation: azu-wachsen 1.2s ease-out; }
@keyframes azu-wachsen { from { transform: scaleX(0); } }
.azu-saldo { display: inline-block; min-width: 56px; padding: 1px 6px; text-align: center; font-weight: 600; }
.azu-saldo.gruen { background: #e1f5ee; color: #085041; }
.azu-saldo.gelb { background: #faeeda; color: #633806; }
.azu-saldo.rot { background: #fcebeb; color: #791f1f; }
@media (prefers-reduced-motion: reduce) { .azu-zaehl, .azu-ring-teil, .azu-tl-teil, .azu-anim .azu-balken > span { animation: none; } }
@media (max-width: 900px) { .azu-oben { grid-template-columns: 1fr; } .azu-tl-achse, .azu-tl-zeile { grid-template-columns: 120px minmax(0, 1fr); } .azu-tl-zeile .azu-text, .azu-tl-achse > span:last-child { display: none; } }

/* modulstil.Zutritt/stil.css */
/* ab 3.99.177: Zutrittsdienst – nur Klassen mit Präfix zt-; Farben ausschließlich aus dem Farbschema (Regel 20). */
.zt-maske { border: 0; margin: 0; padding: 0; min-width: 0; }
.zt-maske:disabled .zt-plus, .zt-maske:disabled .zt-weg { display: none; }
.zt-technik { font-size: .75rem; color: var(--th-text-zweitrangig); padding: 4px 6px; }
.zt-plakette { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--th-feldrand); margin: 1px 4px 1px 0; white-space: nowrap; }
.zt-plakette.gut { border-color: var(--th-akzent); color: var(--th-akzent-dunkel); }
.zt-plakette.aus { color: var(--th-text-zweitrangig); }
.zt-funktionen { flex-wrap: wrap; }
.zt-liste { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
.zt-zeile { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .8rem; padding: 2px 0; border-bottom: 1px solid var(--th-liste-linie, var(--th-rahmen)); }
.zt-unterkopf { font-weight: 600; font-size: .78rem; padding: 6px 6px 2px; color: var(--th-beschriftung); display: flex; align-items: center; gap: 6px; }
.zt-haken-liste { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 6px; }
.zt-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.zt-tabelle th { text-align: left; font-weight: 600; color: var(--th-beschriftung); border-bottom: 1px solid var(--th-rahmen); padding: 3px 4px; }
.zt-tabelle td { padding: 2px 4px; border-bottom: 1px solid var(--th-liste-linie, var(--th-rahmen)); vertical-align: middle; }
.zt-tabelle tr.inaktiv td { color: var(--th-text-zweitrangig); }
.zt-sperre td, tr.zt-sperre { color: var(--th-versand-fehler); }
.zt-weg, .zt-plus { border: 1px solid var(--th-feldrand); background: var(--th-feld); color: var(--th-text); border-radius: 4px; width: 20px; height: 20px; line-height: 16px; padding: 0; cursor: pointer; font-size: .85rem; }
.zt-plus { color: var(--th-akzent-dunkel); font-weight: 700; }
.zt-weg:hover { color: var(--th-versand-fehler); }
.zt-woche { display: flex; flex-direction: column; gap: var(--feld-zeilenabstand, 6px); padding: 6px; }
.zt-tag { display: flex; gap: 8px; align-items: center; }
.zt-tagname { width: 90px; font-size: .8rem; color: var(--th-beschriftung); }
.zt-fenster { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zt-fenster-eintrag { display: inline-flex; gap: 3px; align-items: center; font-size: .8rem; }
.zt-uhr { width: 62px; padding: 0 2px; height: 24px; text-align: center; border: 1px solid var(--th-feldrand); background: var(--th-feld); color: var(--th-text); border-radius: 3px; font-size: .8rem; }
.zt-ergebnis { margin: 4px 6px; padding: 4px 8px; border-radius: 4px; font-size: .8rem; border: 1px solid var(--th-rahmen); }
.zt-ergebnis.gut { border-color: var(--th-akzent); }
.zt-ergebnis.nein { border-color: var(--th-versand-fehler); color: var(--th-versand-fehler); }
.zt-filter { flex-wrap: wrap; gap: 6px; }
.zt-filter { flex-wrap: wrap; }
.zt-filter > .aw { flex: 0 0 190px; width: 190px; }
.zt-reiter { display: inline-flex; gap: 2px; }
.zt-reiter button { border: 1px solid var(--th-rahmen); background: var(--th-feld); color: var(--th-text); padding: 2px 10px; border-radius: 4px 4px 0 0; font-size: .8rem; cursor: pointer; }
.zt-reiter button.aktiv { border-bottom-color: transparent; font-weight: 600; color: var(--th-akzent-dunkel); }
.zt-uebersicht { overflow: auto; padding: 8px; }
.zt-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.zt-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--th-rahmen); border-radius: 6px; background: var(--th-feld); color: var(--th-text); cursor: pointer; text-align: left; }
.zt-kachel:hover { border-color: var(--th-akzent); }
.zt-kachel b { font-size: 1.6rem; line-height: 1.1; color: var(--th-akzent-dunkel); }
.zt-kachel span { font-size: .85rem; font-weight: 600; }
.zt-kachel small { font-size: .72rem; color: var(--th-text-zweitrangig); }
.zt-einstellungen { overflow: auto; }
.zt-ma legend { display: flex; align-items: center; gap: 8px; }
.zt-reihe { display: flex; gap: 6px; align-items: center; }
.zt-reihe > .aw { flex: 1 1 auto; min-width: 180px; }
.zt-zeitpunkt { width: 215px; min-width: 215px; height: 24px; }
.zt-tabelle input[type=date] { width: 135px; }
.zt-nowrap { white-space: nowrap; }
.zt-einstellungen .az-reihe span { white-space: nowrap; }
/* ab 3.99.178: Türzustand und Ergebnis des Verbindungstests */
.zt-plakette.warn { border-color: var(--th-versand-fehler); color: var(--th-versand-fehler); }
.zt-ok { color: var(--th-akzent-dunkel); }
.zt-fehler { color: var(--th-versand-fehler); }
.zt-kachel.warn b { color: var(--th-versand-fehler); }
.zt-knoepfe { flex-wrap: wrap; gap: 4px; }
/* ab 3.99.180: Türen-Kacheln in der Übersicht (grün = geöffnet/entriegelt, grau = zu; Reihenfolge per Ziehen) */
.zt-tuerbild { margin-bottom: 10px; }
.zt-tuerkacheln { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 2px; }
.zt-tuerkachel { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 180px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; cursor: grab; }
.zt-tuerkachel:hover { border-color: var(--th-rahmen); }
.zt-tuerkachel.zieht { opacity: .5; }
.zt-tuersymbol { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 2px solid var(--th-zt-tuer-zu, #9ca3af); border-radius: 9px; color: var(--th-zt-tuer-zu, #9ca3af); }
.zt-tuersymbol .mud-icon-root { font-size: 1.5rem; }
.zt-tuername { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--th-text); }
.zt-tuerkachel small { font-size: .72rem; color: var(--th-text-zweitrangig); }
.zt-tuerkachel.offen .zt-tuersymbol { border-color: var(--th-zt-tuer-offen, #16a34a); color: var(--th-zt-tuer-offen, #16a34a); }
.zt-tuerkachel.offen small { color: var(--th-zt-tuer-offen, #16a34a); font-weight: 600; }
/* ab 3.99.180 (Rene 22:21): Gerätestatus bei der Tür – verbunden hellgrün, Fehler hellrot hinterlegt */
.zt-geraetstatus { display: inline-block; padding: 2px 8px; margin: 0 6px 2px 0; border-radius: 4px; }
.zt-geraetstatus.gut { background: var(--th-verfolgung-zugestellt, #e6f4ea); color: var(--th-text); }
.zt-geraetstatus.fehler { background: var(--th-verfolgung-problem, #fee2e2); color: var(--th-text); }
/* ab 3.99.181: Daten übernehmen */
.zt-import { margin-top: 10px; }
.zt-import-zahlen { padding: 4px 6px; }
.zt-import-tabelle td .aw { min-width: 220px; }
/* ab 3.99.182: „verbunden“ grün hinterlegt (wie „installiert“), Uhrzeit des Controllers */
.zt-plakette.verbunden { background: var(--th-zt-gut, #dcfce7); color: var(--th-zt-gut-text, #166534); border-color: transparent; }
.zt-uhr { font-variant-numeric: tabular-nums; font-weight: 600; }
/* ab 3.99.182: Menü einer Tür in der Übersicht (öffnen, dauerhaft offen, schließen, dauerhaft zu) */
.zt-tuerkachel { position: relative; }
.zt-tuermenue { position: absolute; top: 100%; left: 0; z-index: 20; display: flex; flex-direction: column; gap: 4px; padding: 8px; min-width: 210px; background: var(--th-fenster); border: 1px solid var(--th-rahmen); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: default; }
.zt-tuermenue .mf-knopf { justify-content: flex-start; }
.zt-uhr { white-space: nowrap; }
.zt-knoepfe > span { white-space: nowrap; }
.zt-uhrfeld { width: 70px !important; text-align: center; }
.zt-zeile-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zt-zeile-flex > span { width: auto !important; max-width: none !important; flex: none; }
/* ab 3.99.184 (Rene 23:46): Karten-Liste – aktiv leicht grün, gesperrt/verloren leicht rot (gewählte Zeile bleibt wie gewohnt) */
table.ft tr.sz.zt-zeile-gut:not(.aktiv) td { background: var(--th-zt-gut, #dcfce7); }
table.ft tr.sz.zt-zeile-gesperrt:not(.aktiv) td { background: var(--th-zt-gesperrt, #fee2e2); }
/* ab 3.99.186: Super-PIN je Tür – vier schmale Kennwortfelder */
.zt-superpin { gap: 8px; flex-wrap: wrap; }
.zt-pinfeld { display: inline-flex; align-items: center; gap: 2px; }
.zt-pinfeld input { width: 90px !important; }
/* ab 3.99.187 (P6-25): Alarm an der Tür – Kachel blinkt rot, bis der Alarm per Klick bestätigt ist (Farbe im Farbschema „Zutritt: Alarm“) */
@keyframes zt-alarm-blinken { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.zt-tuerkachel.alarm { border-color: var(--th-zt-alarm, #dc2626); cursor: pointer; }
.zt-tuerkachel.alarm .zt-tuersymbol { border-color: var(--th-zt-alarm, #dc2626); color: var(--th-zt-alarm, #dc2626); animation: zt-alarm-blinken 1s ease-in-out infinite; }
.zt-tuerkachel.alarm small { color: var(--th-zt-alarm, #dc2626); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .zt-tuerkachel.alarm .zt-tuersymbol { animation: none; } }
/* ab 3.99.188 (P6-26): Automatik je Tür – Unterliste der Regeln; (P6-27) Anwesenheit */
.zt-automatik .zt-tabelle td { padding: 2px 4px; }
.zt-auswahl-spalte { min-width: 150px; }
.zt-auswahl-spalte .aw { width: 100%; }
.zt-tag-haken { margin-right: 6px; font-size: .75rem; gap: 2px; }
.zt-automatik .zt-uhr { font-weight: 400; }
.zt-anwesenheit .formular-leiste .inv-haken { white-space: nowrap; }
.zt-kachel.drin b { color: var(--th-zt-tuer-offen, #16a34a); }
/* ab 3.99.189: Kennwortfeld eines Treibers (z. B. Shelly) – Feld so breit wie die anderen, „✕“ daneben */
.zt-kennwort { display: flex; align-items: center; gap: 6px; }
.zt-kennwort > input { flex: 1 1 auto; min-width: 0; }

/* ab 3.99.194 (Rene 07.11.2026): Türkacheln der Übersicht – Karte mit Randstreifen, Türsymbol, Farbpunkt und Schloss (grün = verriegelt, rot = entriegelt) */
.zt-tuerkacheln { gap: 10px 12px; }
.zt-tuerkachel { min-width: 220px; padding: 10px 14px 10px 12px; border: 1px solid var(--th-rahmen); border-left: 5px solid var(--th-zt-tuer-zu, #9ca3af); border-radius: 8px; row-gap: 3px; transition: box-shadow .15s, transform .15s; }
.zt-tuerkachel:hover { border-color: var(--th-rahmen); box-shadow: 0 3px 10px rgba(15, 23, 42, .12); transform: translateY(-1px); }
.zt-tuername { font-weight: 600; font-size: .9rem; }
.zt-tk-stand { display: inline-flex; align-items: center; gap: 5px; }
.zt-tk-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--th-zt-tuer-zu, #9ca3af); flex: none; }
.zt-tk-stand .zt-tk-schloss { font-size: .9rem; line-height: 1; } /* goldenes Schloss wie in der Türliste */
.zt-tk-stand small { font-size: .78rem; }
.zt-tuerkachel.zt-tk-verriegelt { border-left-color: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); }
.zt-tuerkachel.zt-tk-verriegelt .zt-tuersymbol { border-color: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); color: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); }
.zt-tuerkachel.zt-tk-verriegelt .zt-tk-punkt { background: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); }
.zt-tuerkachel.zt-tk-entriegelt { border-left-color: var(--th-zt-entriegelt, #dc2626); }
.zt-tuerkachel.zt-tk-entriegelt .zt-tuersymbol { border-color: var(--th-zt-entriegelt, #dc2626); color: var(--th-zt-entriegelt, #dc2626); }
.zt-tuerkachel.zt-tk-entriegelt .zt-tk-punkt { background: var(--th-zt-entriegelt, #dc2626); }
.zt-tuerkachel.zt-tk-entriegelt small { color: var(--th-zt-entriegelt, #dc2626); font-weight: 600; }
.zt-tuerkachel.zt-tk-gesperrt { border-left-color: var(--th-zt-alarm, #dc2626); opacity: .75; }
.zt-tuerkachel.alarm { border-left-color: var(--th-zt-alarm, #dc2626); }

/* ab 3.99.194 (Rene 07.11.2026 „Kästchen invertieren – komplett grün, weiße Schrift/Symbol, eher als Button“): Türkachel als gefüllter Knopf */
.zt-tuerkachel { border: none; border-left: none; color: #fff; background: var(--th-zt-tuer-zu, #9ca3af); box-shadow: 0 2px 4px rgba(15, 23, 42, .18), inset 0 -2px 0 rgba(0, 0, 0, .12); cursor: pointer; user-select: none; }
.zt-tuerkachel:hover { box-shadow: 0 5px 12px rgba(15, 23, 42, .25), inset 0 -2px 0 rgba(0, 0, 0, .12); transform: translateY(-1px); filter: brightness(1.05); }
.zt-tuerkachel:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(15, 23, 42, .2); }
.zt-tuerkachel .zt-tuername, .zt-tuerkachel small, .zt-tuerkachel.offen small, .zt-tuerkachel.zt-tk-entriegelt small { color: #fff; }
.zt-tuerkachel .zt-tuersymbol, .zt-tuerkachel.offen .zt-tuersymbol,
.zt-tuerkachel.zt-tk-verriegelt .zt-tuersymbol, .zt-tuerkachel.zt-tk-entriegelt .zt-tuersymbol { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .12); }
.zt-tuerkachel .zt-tk-punkt, .zt-tuerkachel.zt-tk-verriegelt .zt-tk-punkt, .zt-tuerkachel.zt-tk-entriegelt .zt-tk-punkt { background: #fff; }
.zt-tuerkachel.zt-tk-verriegelt { background: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); }
.zt-tuerkachel.zt-tk-entriegelt { background: var(--th-zt-entriegelt, #dc2626); }
.zt-tuerkachel.zt-tk-gesperrt { background: var(--th-zt-tuer-zu, #9ca3af); opacity: .8; }
.zt-tuerkachel.alarm { background: var(--th-zt-alarm, #dc2626); }
.zt-tuerkachel.alarm .zt-tuersymbol { border-color: #fff; color: #fff; }
.zt-tuerkachel.zieht { opacity: .5; }
.zt-tuerkachel .zt-tk-punkt { display: none; } /* Farbe trägt jetzt die ganze Kachel */

/* ab 3.99.194: Zuweisung per Drag & Drop */
.zt-zuweisung { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.zt-zw { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 10px; padding: 8px; flex: 1; min-height: 0; }
.zt-zw-vorrat { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.zt-zw-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-content: start; overflow: auto; min-height: 0; }
.zt-zw-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 3px 0; }
.zt-zw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--th-feldrand); border-radius: 12px; font-size: .78rem; background: var(--th-feld); white-space: nowrap; }
.zt-zw-chip[draggable=true] { cursor: grab; }
.zt-zw-chip[draggable=true]:hover { border-color: var(--th-akzent); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); }
.zt-zw-chip.klein { font-size: .72rem; padding: 1px 7px; }
.zt-zw-chip.alle { border-style: dashed; }
.zt-zw-chip button { border: none; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--th-text-zweitrangig); font-size: .75rem; }
.zt-zw-chip button:hover { color: var(--th-zt-alarm, #dc2626); }
.zt-zw-personen { display: flex; flex-direction: column; gap: 4px; }
.zt-zw-person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; cursor: grab; }
.zt-zw-person:hover { border-color: var(--th-rahmen); }
.zt-zw-name { font-size: .82rem; font-weight: 600; }
.zt-zw-gruppe { border: 1px solid var(--th-rahmen); border-radius: 8px; padding: 8px 10px; transition: box-shadow .12s, border-color .12s; }
.zt-zw-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--th-rahmen); padding-bottom: 4px; margin-bottom: 4px; }
.zt-zw-teil { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--th-beschriftung); margin-top: 4px; }
.zt-zw-gruppe.ueber, .zt-zw-person.ueber { border-color: var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)); box-shadow: 0 0 0 2px var(--th-zt-verriegelt, var(--mf-gruen, #0f7a6c)) inset; }
.zt-zw-suche input { width: 220px; }
/* ab 3.99.196: Zuweisung als Bereich in „Berechtigungen“ */
.zt-zw-rahmen { margin-top: 10px; }
.zt-zw-rahmen .zt-zuweisung { height: auto; }
.zt-zw-rahmen .zt-zw { padding: 4px 0; max-height: 520px; }
.zt-zw-leiste { display: flex; align-items: center; gap: 12px; padding: 2px 0 4px; }
.zt-zuweisung.gesperrt .zt-zw { opacity: .55; pointer-events: none; }
.zt-zw-person.aktuell { border-color: var(--th-akzent); }
/* ab 3.99.289 (Rene 14.11.2026 „dieses Grün auch so wie oben beim Tab“): verriegelte Türen im Verlauf des aktiven Reiters */
.zt-tuerkachel.zt-tk-verriegelt { background: linear-gradient(color-mix(in srgb, var(--vl-basis, #08786f) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis, #08786f) 70%, #000)); }

