/* MRR – Optik angelehnt an myfactory: dunkle Navigation, helle Arbeitsfläche, kompakte Felder */
:root {
    /* einheitliches Hellgrün (wie „abgerechnet“ in der Lizenzabrechnung) */
    --mf-gruen-bg: #e6f4ea; --mf-gruen-rand: #b7dcb9; --mf-gruen-text: #1e6b34;
    /* ab 3.99.401 (Rene 26.11.2026 19:17 „leuchtend, das passt! wir machen nur das mal in den Tabs“):
       leuchtendes Grün für die Zeichen in den Reitern – Zahl und Stift. Dieselbe Farbe steckt schon im Stift der Shop-Reiter. */
    --mf-gruen-leucht: #43a047;
    --s: 1.125;                 /* Anzeigegröße (Benutzer-Einstellung, Standard „Normal“) */
    --mf-nacht: #17243a;        /* Kopfleiste */
    --mf-menue: #1e2c42;        /* linke Navigation */
    --mf-menue-hell: #2a3a54;
    --mf-blau: #3a6cc2;         /* Schaltflächen */
    --mf-blau-dunkel: #2d58a3;
    --mf-auswahl: #dbe6f6;      /* gewählte Zeile */
    --mf-linie: #d5dce4;
    --mf-feldrand: #c3ccd6;
    --mf-text: #1f2a37;
    --mf-text-2: #5d6b7a;
    --mf-pflicht: #fff8dc;
    --mf-akzent: #e48a1e;
    --mrr-text-2: var(--mf-text-2);
    --mrr-primaer: var(--mf-blau);
    --mrr-akzent: var(--mf-akzent);
    --mrr-linie: var(--mf-linie);
    --schrift: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

html { font-size: calc(16px * var(--s)); }
html, body { margin: 0; color: var(--mf-text); font-family: var(--schrift); }
body { font-size: calc(13px * var(--s)); }
body { background: #e8eef3; }
.mud-button-root { text-transform: none !important; letter-spacing: 0; }
h1:focus, h1:focus-visible { outline: none; }
.text-zweitrangig { color: var(--mf-text-2); }
.rechts input, td.rechts, .rechts { text-align: right; }

/* ---------- Kopfleiste ---------- */
.mrr-appbar { background: var(--mf-nacht) !important; }
.mrr-appbar .mud-toolbar { gap: calc(6px * var(--s)); padding-left: calc(8px * var(--s)); padding-right: calc(10px * var(--s)); }
.mrr-brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; margin: 0 calc(14px * var(--s)) 0 calc(4px * var(--s)); white-space: nowrap; }
.mrr-brand-mark {
    display: inline-grid; place-items: center; height: calc(24px * var(--s)); padding: 0 .45rem; border-radius: calc(4px * var(--s));
    background: var(--mf-akzent); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em;
}
.mrr-brand-name { font-weight: 700; font-size: .9rem; letter-spacing: .06em; }

.mf-reiter { display: flex; gap: calc(4px * var(--s)); align-items: center; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mf-reiter > button, .mf-reiter .reiter {
    display: inline-flex; align-items: center; height: calc(28px * var(--s)); border-radius: calc(4px * var(--s)); background: #34435b; color: #e7ecf3;
    border: 0; font: inherit; font-size: .82rem; white-space: nowrap; cursor: pointer;
}
.mf-reiter > button { padding: 0 calc(12px * var(--s)); }
.mf-reiter .reiter button { all: unset; cursor: pointer; padding: 0 calc(6px * var(--s)) 0 calc(12px * var(--s)); height: calc(28px * var(--s)); display: inline-flex; align-items: center; }
.mf-reiter .reiter .reiter-zu { padding: 0 calc(9px * var(--s)) 0 calc(4px * var(--s)); opacity: .7; font-size: 1rem; }
.mf-reiter .reiter .reiter-zu:hover { opacity: 1; }
.mf-reiter > button:hover, .mf-reiter .reiter:hover { background: #42536e; }
.mf-reiter .aktiv, .mf-reiter > button.aktiv { background: #dfe7f2 !important; color: var(--mf-nacht) !important; }
.mf-reiter .reiter.minimiert { opacity: .65; font-style: italic; }
.mf-kopfknopf {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: calc(5px * var(--s)); height: calc(28px * var(--s)); padding: 0 calc(10px * var(--s));
    color: #e7ecf3; font-size: .8rem; border-radius: calc(4px * var(--s)); white-space: nowrap;
}
.mf-kopfknopf:hover { background: #2c3a52; }
.mf-kopfknopf.mandant { border: 1px solid #4a5a74; }
.mrr-menuform { margin: 0; }
.mrr-menubutton { all: unset; display: block; box-sizing: border-box; width: 100%; padding: .4rem 1rem; cursor: pointer; font-size: .82rem; }
.mrr-menubutton:hover, .mrr-menubutton:focus-visible { background: rgba(0,0,0,.05); }

/* ---------- Linke Navigation (dunkel) ---------- */
.mrr-drawer { background: var(--mf-menue) !important; border-right: 0 !important; }
.mf-menu { display: flex; flex-direction: column; padding: calc(8px * var(--s)) 0 calc(30px * var(--s)); }
.mf-menu-gruppe {
    all: unset; cursor: pointer; display: flex; align-items: center; gap: calc(9px * var(--s)); padding: calc(7px * var(--s)) calc(14px * var(--s)); margin-top: calc(4px * var(--s));
    color: #9fb0c6; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.mf-menu-gruppe:hover { color: #fff; }
.mf-menu-eintrag {
    all: unset; cursor: pointer; display: flex; align-items: center; gap: calc(9px * var(--s)); padding: calc(4px * var(--s)) calc(14px * var(--s)) calc(4px * var(--s)) calc(40px * var(--s));
    color: #dfe5ee; font-size: .82rem; text-decoration: none; line-height: 1.35;
}
.mf-menu-eintrag.start { padding-left: calc(14px * var(--s)); font-weight: 600; }
.mf-menu-eintrag:hover { background: var(--mf-menue-hell); color: #fff; }
.mf-menu-eintrag.geoeffnet { color: #fff; box-shadow: inset 3px 0 0 var(--mf-akzent); background: #26354d; }
.mf-menu-eintrag.offen { color: #66768d; cursor: default; }
.mf-menu-eintrag.offen:hover { background: none; color: #66768d; }

/* ---------- Arbeitsfläche ---------- */
.mrr-main { min-height: 100vh; background: linear-gradient(135deg, #e6ecf3 0%, #e3edf2 45%, #dcefee 100%); }
.mrr-page { max-width: calc(1500px * var(--s)); margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.mrr-voll { position: relative; height: calc(100vh - calc(44px * var(--s)) - 25px); } /* ab 3.99: Kopfleiste 25 px höher */
.arbeitsplatz { position: absolute; inset: 0; overflow: hidden; }

.startseite { padding: 1.5rem 2rem; max-width: calc(1200px * var(--s)); }
.startseite h1 { margin: 0; font-size: 1.5rem; font-weight: 400; }
.mf-hinweis { margin: calc(14px * var(--s)) 0 calc(18px * var(--s)); padding: calc(10px * var(--s)) calc(14px * var(--s)); background: #fff; border: 1px solid var(--mf-linie); border-left: calc(3px * var(--s)) solid var(--mf-blau); border-radius: calc(4px * var(--s)); }
.seiten-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.seiten-kopf h1 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.ueberzeile { margin: 0 0 .1rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mf-akzent); }
.unterzeile { margin: .2rem 0 0; color: var(--mf-text-2); }
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(240px * var(--s)), 1fr)); gap: calc(10px * var(--s)); }
.kachel { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; background: #fff; border: 1px solid var(--mf-linie); border-radius: calc(4px * var(--s)); }
.kachel-icon { color: var(--mf-blau); margin-top: calc(2px * var(--s)); }
.kachel > div { flex: 1; }
.kachel-titel { font-weight: 600; }
.kachel-text { font-size: .76rem; color: var(--mf-text-2); }

/* ---------- Fenster ---------- */
.fenster {
    position: absolute; display: flex; flex-direction: column; background: #f4f7fa; border: 1px solid #b8c3cf; border-radius: calc(6px * var(--s));
    box-shadow: 0 8px 24px rgba(23, 36, 58, .16); overflow: hidden; container-type: inline-size;
}
.fenster.aktiv { border-color: #7d9cc9; box-shadow: 0 10px 30px rgba(23, 36, 58, .26); }
.fenster.maximiert { inset: 0; width: auto !important; height: auto !important; border-radius: 0; }
.fenster.minimiert { display: none; }
.fenster.zieht { user-select: none; opacity: .92; }
.fenster-titel {
    display: flex; align-items: center; height: calc(30px * var(--s)); padding: 0 calc(4px * var(--s)) 0 calc(12px * var(--s)); background: #dfe6ef; color: var(--mf-text);
    cursor: move; user-select: none; flex: none; border-bottom: 1px solid #c9d3de;
}
.fenster.aktiv .fenster-titel { background: var(--mf-blau); color: #fff; border-bottom-color: var(--mf-blau-dunkel); }
.fenster-name { font-weight: 600; font-size: .84rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fenster-knoepfe { display: flex; }
.fenster-knoepfe button {
    all: unset; cursor: pointer; width: calc(28px * var(--s)); height: calc(24px * var(--s)); display: grid; place-items: center; border-radius: calc(3px * var(--s)); color: inherit;
}
.fenster-knoepfe button:hover { background: rgba(255,255,255,.22); }
.fenster:not(.aktiv) .fenster-knoepfe button:hover { background: rgba(0,0,0,.08); }
.fenster-knoepfe button.schliessen:hover { background: #c42b1c; color: #fff; }
.fenster-inhalt { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.fenster-groesse { position: absolute; right: 0; bottom: 0; width: calc(14px * var(--s)); height: calc(14px * var(--s)); cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #9aa8b8 50%, #9aa8b8 60%, transparent 60%, transparent 72%, #9aa8b8 72%, #9aa8b8 82%, transparent 82%); }
.fenster.maximiert .fenster-groesse { display: none; }

/* ---------- Ansicht: Formular oben, Liste unten ---------- */
.ansicht { display: flex; flex-direction: column; height: 100%; gap: calc(8px * var(--s)); padding: calc(14px * var(--s)); /* ab 3.99.329 (Rene 18.11.2026 22:43): Ränder der Masken 14 statt 8 px */ box-sizing: border-box; }
.ansicht-formular { flex: none; background: #fff; border: 1px solid var(--mf-linie); border-radius: calc(4px * var(--s)); max-height: 65%; overflow: auto; }
.ansicht-liste { flex: 1; min-height: calc(120px * var(--s)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mf-linie); border-radius: calc(4px * var(--s)); overflow: hidden; }
.liste-kopf { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(6px * var(--s)) calc(8px * var(--s)); border-bottom: 1px solid var(--mf-linie); font-size: .78rem; }
.mf-suche { display: flex; align-items: center; gap: calc(4px * var(--s)); border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); padding: 0 calc(6px * var(--s)); background: #fff; color: var(--mf-text-2); }
.mf-suche input { border: 0; outline: 0; font: inherit; font-size: .8rem; padding: calc(3px * var(--s)) 0; width: calc(180px * var(--s)); color: var(--mf-text); }
.mf-suche:focus-within { border-color: var(--mf-blau); }
.liste-tabelle { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.liste-tabelle > .mud-table { flex: 1; min-height: 0; display: flex; flex-direction: column; background: transparent; }
.liste-tabelle .mud-table-container { flex: 1; min-height: 0; }
.liste-tabelle .mud-table-pagination-toolbar { min-height: calc(32px * var(--s)); height: calc(32px * var(--s)); font-size: .74rem; }
.liste-tabelle .mud-table-pagination-toolbar * { font-size: .74rem !important; }

/* Tabellen kompakt wie myfactory */
.mud-table-dense .mud-table-row .mud-table-cell { padding: calc(2px * var(--s)) calc(8px * var(--s)) !important; line-height: 1.3; font-size: .79rem; border-bottom-color: #edf0f3; }
.mud-table-dense .mud-table-head .mud-table-cell { padding: calc(4px * var(--s)) calc(8px * var(--s)) !important; font-size: .78rem; font-weight: 600; color: var(--mf-text); background: #f7f9fb; }
.mud-table-row.aktiv > td { background: var(--mf-auswahl) !important; }
.mud-table-row.klickbar { cursor: pointer; }
.tabellen-karte { overflow: hidden; }
.suchfeld { max-width: calc(320px * var(--s)); }
.klickbar { cursor: pointer; }

/* Formular-Leiste mit blauen Schaltflächen */
.formular-leiste { display: flex; align-items: center; flex-wrap: wrap; gap: calc(4px * var(--s)); padding: calc(6px * var(--s)) calc(8px * var(--s)); border-bottom: 1px solid var(--mf-linie); background: #fafbfc; }
.mf-knopf {
    display: inline-flex; align-items: center; gap: calc(4px * var(--s)); height: calc(26px * var(--s)); padding: 0 calc(10px * var(--s)); border: 0; border-radius: calc(4px * var(--s));
    background: var(--mf-blau); color: #fff; font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap;
}
.mf-knopf .mud-icon-root { font-size: calc(15px * var(--s)); }
.mf-knopf:hover:not(:disabled) { background: var(--mf-blau-dunkel); }
.mf-knopf:disabled { background: #b9c6da; cursor: default; }
.mf-knopf.hell { background: #fff; color: var(--mf-blau); border: 1px solid #b9c8df; }
.mf-knopf.hell:hover:not(:disabled) { background: #eef3fb; }
.mf-knopf.hell:disabled { color: #a8b4c4; background: #fff; }
.mf-knopf.klein { height: calc(22px * var(--s)); font-size: .74rem; }
.mf-navi { all: unset; cursor: pointer; width: calc(24px * var(--s)); height: calc(24px * var(--s)); display: grid; place-items: center; border-radius: calc(3px * var(--s)); color: var(--mf-text); }
.mf-navi .mud-icon-root { font-size: calc(18px * var(--s)); }
.mf-navi:hover:not(:disabled) { background: #e7edf5; }
.mf-navi:disabled { color: #b8c2cd; cursor: default; }
.leiste-trenner { width: 1px; height: calc(20px * var(--s)); background: var(--mf-linie); margin: 0 calc(4px * var(--s)); }
.leiste-status { margin-left: auto; font-size: .76rem; color: var(--mf-text-2); }
.leiste-modus { font-size: .74rem; padding: calc(2px * var(--s)) calc(8px * var(--s)); border-radius: calc(10px * var(--s)); background: #eef1f4; color: var(--mf-text-2); }
.leiste-modus.bearbeiten { background: #fdebd0; color: #8a4b00; }

.formular-inhalt { padding: calc(10px * var(--s)) calc(12px * var(--s)) calc(8px * var(--s)); }
.protokoll { margin-top: calc(8px * var(--s)); font-size: .72rem; color: var(--mf-text-2); }

/* Raster: Bezeichnung links, Feld rechts – im schmalen Fenster untereinander */
/* ab 3.99.370 (Rene 22.11.2026 „Raster feiner“): 24 Spalten – --spalten (1–12) zählt doppelt, Felder setzen ihre Breite in halben Schritten direkt;
   bei gleichem Abstand sind alle bisherigen Breiten pixelgenau gleich */
.formular-raster { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: calc(5px * var(--s)) calc(18px * var(--s)); }
.formular-raster > div { grid-column: span calc(var(--spalten, 12) * 2); }
.formular-raster > .rf { grid-column: span var(--sp, 24); }
.formular-raster > .rf.nz { grid-column: 1 / span var(--sp, 24); }
/* ab 3.99.371 (Rene 22.11.2026 12:16): Tablet – höchstens zwei Felder nebeneinander, Einzüge entfallen; Handy – alles untereinander */
@container (max-width: 1150px) {
    .formular-raster > div { grid-column: span max(12, calc(var(--spalten, 12) * 2)); }
    .formular-raster > .rf { grid-column: span max(12, var(--sp, 24)); }
    .formular-raster > .rf.nz { grid-column: 1 / span max(12, var(--sp, 24)); }
    .formular-raster > .rf-einzug { display: none; }
}
@container (max-width: 800px) { .formular-raster > div { grid-column: 1 / -1 !important; } .formular-raster > .rf-einzug { display: none; } }
.feld { display: grid; grid-template-columns: calc(var(--label, 120px) * var(--s)) minmax(0, 1fr); align-items: center; gap: calc(8px * var(--s)); }
.feld.ohne-label { display: block; }
.feld > label { font-size: .8rem; color: #3a4655; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feld > label.pflicht::after { content: " *"; color: #b26a00; }

/* Kompakte Eingabefelder (MudBlazor überschreiben) */
.feld-eingabe .mud-input-control { margin: 0 !important; }
.feld-eingabe .mud-input-control-input-container { min-height: 0; }
.feld-eingabe .mud-input.mud-input-outlined { font-size: .8rem; border-radius: calc(3px * var(--s)); background: #fff; }
.feld-eingabe .mud-input.mud-input-outlined .mud-input-slot,
.feld-eingabe .mud-input-outlined input { padding: calc(3px * var(--s)) calc(7px * var(--s)) !important; height: calc(18px * var(--s)); font-size: .8rem; }
.feld-eingabe .mud-input-outlined-border { border-color: var(--mf-feldrand) !important; border-radius: calc(3px * var(--s)); }
.feld-eingabe .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--mf-blau) !important; border-width: 1px !important; }
.feld-eingabe .mud-input-adornment { margin: 0 calc(4px * var(--s)) !important; }
.feld-eingabe .mud-input-adornment .mud-icon-button { padding: calc(2px * var(--s)) !important; }
.feld-eingabe .mud-input-adornment .mud-icon-root { font-size: calc(16px * var(--s)) !important; }
.feld-eingabe .mud-input-adornment-text { font-size: .76rem; color: var(--mf-text-2); }
.feld-eingabe .mud-select .mud-select-input { padding: calc(3px * var(--s)) calc(7px * var(--s)) !important; }
.feld-eingabe .mud-input-helper-text, .feld-eingabe .mud-input-control-helper-container { font-size: .7rem; margin-top: 1px; }
.feld-eingabe .mud-checkbox { margin-left: -6px; }
.feld-eingabe .mud-checkbox .mud-button-root { padding: calc(3px * var(--s)) !important; }
.mud-input-required .mud-input-outlined, .feld-eingabe .mud-input-required.mud-input-outlined { background: var(--mf-pflicht) !important; }
.formular-inhalt .mud-input-control.mud-input-required .mud-input-outlined { background: var(--mf-pflicht); }
input.berechnet { width: 100%; box-sizing: border-box; font: inherit; font-size: .8rem; padding: calc(3px * var(--s)) calc(7px * var(--s)); border: 1px solid #e0e5ea; border-radius: calc(3px * var(--s)); background: #f3f5f7; color: var(--mf-text-2); text-align: right; }

/* Unterlisten (z. B. Kurse) */
.unterbereich { margin-top: calc(10px * var(--s)); border-top: 1px solid var(--mf-linie); padding-top: calc(8px * var(--s)); }
.unterbereich-kopf { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .8rem; margin-bottom: calc(4px * var(--s)); }
.unterzeile-raster { display: grid; gap: calc(6px * var(--s)); align-items: center; margin-bottom: calc(3px * var(--s)); }
.unterzeile-raster.kopf span { font-size: .74rem; color: var(--mf-text-2); }
.unterzeile-raster.kopf span.pflicht::after { content: " *"; color: #b26a00; }
.unterzeile-raster .mud-icon-button { padding: calc(3px * var(--s)) !important; }

/* Zuordnung zwei Listen (Gebiete ↔ Länder) */
.zuordnung { display: grid; grid-template-columns: 1fr auto 1fr; gap: calc(10px * var(--s)); margin-top: calc(10px * var(--s)); }
.zuordnung-spalte { display: flex; flex-direction: column; min-width: 0; }
.zuordnung-titel { font-size: .78rem; font-weight: 600; margin-bottom: calc(3px * var(--s)); }
.zuordnung-suche { font: inherit; font-size: .78rem; padding: calc(3px * var(--s)) calc(7px * var(--s)); border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); margin-bottom: calc(3px * var(--s)); }
.zuordnung-box { list-style: none; margin: 0; padding: 0; height: calc(170px * var(--s)); overflow-y: auto; border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); background: #fff; }
.zuordnung-box li { padding: 1px calc(7px * var(--s)); font-size: .79rem; cursor: pointer; user-select: none; }
.zuordnung-box li:hover { background: #eef3f9; }
.zuordnung-box li.gewaehlt { background: var(--mf-blau); color: #fff; }
.zuordnung-box.zugeordnet { background: #f8fafc; }
.zuordnung-knoepfe { display: flex; flex-direction: column; justify-content: center; gap: calc(5px * var(--s)); }
.zuordnung-knoepfe .mud-button-root { min-width: calc(64px * var(--s)); padding: 1px calc(8px * var(--s)); font-size: .76rem; }
@container (max-width: 700px) { .zuordnung { grid-template-columns: 1fr; } .zuordnung-knoepfe { flex-direction: row; } }

.rechte-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(220px * var(--s)), 1fr)); }

/* ---------- Anmeldung (ohne MudBlazor) ---------- */
.login {
    min-height: 100vh; display: grid; place-items: center; padding: 1rem;
    background: linear-gradient(150deg, #17243a 0%, #24395c 55%, #2f5a8a 100%); font-family: var(--schrift);
}
.login-karte { width: 100%; max-width: 400px; box-sizing: border-box; background: #fff; border-radius: 8px; padding: 1.75rem 1.75rem 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-marke { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.25rem; }
.login-marke .mrr-brand-mark { height: calc(36px * var(--s)); padding: 0 .6rem; font-size: .85rem; }
.login-marke h1 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.login-marke p { margin: .1rem 0 0; font-size: .8rem; color: var(--mf-text-2); }
.login form { display: grid; gap: .3rem; grid-template-columns: minmax(0, 1fr); } /* ab 3.99.60: lange Mandantennamen sprengen die Karte nicht mehr */
.login input, .login select, .login-button { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.login select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.login label { font-size: .75rem; font-weight: 600; color: var(--mf-text-2); margin-top: .5rem; }
.login input, .login select { font: inherit; font-size: .9rem; padding: .5rem .6rem; border: 1px solid var(--mf-feldrand); border-radius: calc(4px * var(--s)); background: #fff; color: var(--mf-text); }
.login input:focus, .login select:focus { outline: calc(2px * var(--s)) solid var(--mf-blau); outline-offset: 0; border-color: var(--mf-blau); }
.login-button { margin-top: 1rem; padding: .6rem; border: 0; border-radius: calc(4px * var(--s)); background: var(--mf-blau); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.login-button:hover { background: var(--mf-blau-dunkel); }
.login-fehler { background: #fdecea; color: #8c1d18; border-radius: calc(4px * var(--s)); padding: .55rem .7rem; font-size: .82rem; margin-bottom: .4rem; }
.login-windows { display: block; text-align: center; margin-top: .9rem; font-size: .82rem; color: var(--mf-blau); }

/* Unerwarteter Fehler: rote Leiste, gut lesbar */
#blazor-error-ui {
    background: #c62828; color: #fff; font-weight: 600; font-size: .9rem; bottom: 0; box-shadow: 0 -2px 8px rgba(0,0,0,.3); display: none; left: 0;
    padding: .7rem 3rem .75rem 1.25rem; position: fixed; width: 100%; z-index: 2000;
}
#blazor-error-ui a.reload { color: #fff; text-decoration: underline; margin-left: .5rem; font-weight: 700; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .9rem; top: .6rem; color: #fff; }

/* Auswahlfelder (Autocomplete/Select) gleich hoch wie Textfelder */
.feld-eingabe .mud-input.mud-input-outlined .mud-input-root,
.feld-eingabe .mud-input.mud-input-outlined input.mud-input-root { padding: calc(3px * var(--s)) calc(7px * var(--s)) !important; height: calc(18px * var(--s)); font-size: .8rem; }
.feld-eingabe .mud-autocomplete .mud-input-adornment-end, .feld-eingabe .mud-select .mud-input-adornment-end { margin-right: calc(2px * var(--s)) !important; }
.ansicht .mud-table-empty-row td span, .ansicht .mud-table-empty-row { font-size: .8rem; font-weight: 400; color: var(--mf-text-2); }

/* Vorschlag beim Einrasten (Fenster an Rand/Ecke ziehen) */
.einrast-vorschau {
    position: absolute; z-index: 99999; pointer-events: none; opacity: 0; transition: opacity .12s, left .12s, top .12s, width .12s, height .12s;
    background: rgba(58, 108, 194, .16); border: 2px solid rgba(58, 108, 194, .7); border-radius: 6px; box-sizing: border-box;
}
.einrast-vorschau.sichtbar { opacity: 1; }

/* Unsichtbare Griffe zum Ändern der Fenstergröße an allen Kanten/Ecken */
.fenster .rand { position: absolute; z-index: 5; }
.fenster.maximiert .rand { display: none; }
.rand-n { top: -3px; left: 8px; right: 8px; height: 7px; cursor: ns-resize; }
.rand-s { bottom: -3px; left: 8px; right: 8px; height: 7px; cursor: ns-resize; }
.rand-e { right: -3px; top: 8px; bottom: 8px; width: 7px; cursor: ew-resize; }
.rand-w { left: -3px; top: 8px; bottom: 8px; width: 7px; cursor: ew-resize; }
.rand-ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.rand-nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.rand-se { bottom: -3px; right: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.rand-sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.fenster { overflow: visible; }
.fenster > .fenster-titel { border-radius: 6px 6px 0 0; }
.fenster.maximiert > .fenster-titel { border-radius: 0; }
.fenster-inhalt { border-radius: 0 0 6px 6px; overflow: hidden; }
.fenster-groesse { z-index: 6; }

/* ---- Suchdialog (F2) ---- */
.suche-kopf { display: flex; gap: calc(6px * var(--s)); align-items: center; margin-bottom: calc(8px * var(--s)); flex-wrap: wrap; }
.suche-text { flex: 1 1 calc(200px * var(--s)); }
.suche-text input { width: 100%; }
.mf-auswahl { font: inherit; font-size: .8rem; border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); padding: calc(3px * var(--s)) calc(4px * var(--s)); background: #fff; color: var(--mf-text); }
.suche-treffer { height: min(55vh, calc(420px * var(--s))); overflow: auto; border: 1px solid var(--mf-feldrand); outline: 0; }
.mf-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mf-tabelle th { position: sticky; top: 0; background: #f2f4f8; text-align: left; font-weight: 600; padding: calc(3px * var(--s)) calc(6px * var(--s)); border-bottom: 1px solid var(--mf-feldrand); }
.mf-tabelle td { padding: calc(2px * var(--s)) calc(6px * var(--s)); border-bottom: 1px solid var(--th-liste-linie, #eef0f4); cursor: pointer; white-space: nowrap; }
.mf-tabelle tr:hover td { background: var(--th-liste-hover, #f3f7fd); }
.mf-tabelle tr.aktiv td { background: var(--mf-auswahl); }

/* ---- Mehr Kontrast im Formularbereich oben (Wunsch: dunkler, Felder klarer abgesetzt) – die Liste unten bleibt unverändert ---- */
:root { --mf-pflicht: #fff1bf; --mf-formular: #dfe7f0; --mf-leiste: #cdd9e6; }
.ansicht-formular, .mud-dialog { --mf-feldrand: #9aabbf; --mf-linie: #c2cdd9; }
.ansicht-formular { background: var(--mf-formular); border-color: #aebccc; }
.formular-leiste { background: var(--mf-leiste); border-bottom-color: #aebccc; }
.leiste-modus { background: #fff; color: #3a4655; border: 1px solid #aebccc; }
.leiste-modus.bearbeiten { border-color: #e2b56b; }
.feld > label { color: #17222f; font-weight: 400; }
.feld-eingabe .mud-input.mud-input-outlined { background: #fff; }
.feld-eingabe .mud-input-outlined-border { border-color: var(--mf-feldrand) !important; }
.formular-inhalt .text-zweitrangig, .formular-info { color: #44505e; }
.unterzeile-raster.kopf, .zuordnung-box { border-color: var(--mf-feldrand); }
/* Auswahl-/Verweisfelder gleich hoch wie Textfelder */
.feld-eingabe .mud-input-adornment .mud-icon-button { padding: 0 !important; height: calc(18px * var(--s)); width: calc(18px * var(--s)); }
.feld-eingabe .mud-autocomplete .mud-input.mud-input-outlined, .feld-eingabe .mud-select .mud-input.mud-input-outlined { min-height: 0; }
.feld-eingabe .mud-input.mud-input-outlined.mud-input-adorned-end { padding-top: 0 !important; padding-bottom: 0 !important; padding-right: calc(4px * var(--s)) !important; }
.feld-eingabe .mud-input .mud-icon-button { padding: 0 !important; height: calc(18px * var(--s)); width: calc(18px * var(--s)); }
.feld-eingabe .mud-input .mud-icon-button .mud-icon-root { font-size: calc(15px * var(--s)) !important; }

/* ---- Mandantenstammdaten / -verwaltung ---- */
.ansicht-formular.mandant-formular { max-height: none; flex: 1 1 auto; }
.mandant-reiter { margin-top: calc(8px * var(--s)); }
.mandant-reiter .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid #aebccc; min-height: 0; }
.mandant-reiter .mud-tab { min-height: 0; min-width: 0; padding: calc(5px * var(--s)) calc(14px * var(--s)); font-size: .8rem; text-transform: none; letter-spacing: 0; color: #3a4655; }
.mandant-reiter .mud-tab.mud-tab-active { color: var(--mf-blau); font-weight: 600; background: rgba(255,255,255,.55); border-radius: calc(3px * var(--s)) calc(3px * var(--s)) 0 0; }
.mandant-reiter-inhalt { padding: calc(10px * var(--s)) 0 0; }
.mandant-abschnitt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #44546a; margin: calc(10px * var(--s)) 0 calc(5px * var(--s)); border-bottom: 1px solid #c2cdd9; padding-bottom: calc(2px * var(--s)); }
.mandant-abschnitt:first-child { margin-top: 0; }
.mandant-hinweis { font-size: .74rem; margin: calc(8px * var(--s)) 0 0; }
.feld-eingabe.plz-ort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: calc(6px * var(--s)); }
.feld-eingabe.isrc { display: flex; align-items: center; gap: calc(4px * var(--s)); }
.feld-eingabe.isrc > .feld { width: calc(58px * var(--s)); flex: none; }
.feld-eingabe.isrc > .feld:nth-of-type(4) { width: calc(80px * var(--s)); }
.isrc-beispiel { font-size: .74rem; margin-left: calc(8px * var(--s)); white-space: nowrap; }
input.berechnet.links { text-align: left; }
.mandant-optionen .mud-radio { margin-right: calc(14px * var(--s)); }
.mandant-optionen .mud-radio .mud-button-root { padding: calc(3px * var(--s)) !important; }
.mandant-optionen .mud-radio-content, .mandant-optionen .mud-typography { font-size: .8rem; }
.mandant-optionen { display: flex; flex-wrap: wrap; }
.test-ok { color: #2e7d32; font-size: .78rem; margin-left: calc(8px * var(--s)); }
.test-fehler { color: #c62828; font-size: .78rem; margin-left: calc(8px * var(--s)); }
.zelle-voll { display: block; }
.feld-eingabe .mud-checkbox .mud-typography { font-size: .8rem; }
.mandant-formular .feld { grid-template-columns: calc(148px * var(--s)) minmax(0, 1fr); }
.mandant-formular .feld.ohne-label { display: block; }
.mandant-reiter .mud-tabs-tabbar-wrapper { width: auto; }
.mandant-reiter .mud-tab { flex: none !important; width: auto !important; max-width: none !important; min-width: 0 !important; }
.mandant-reiter .mud-tab.mud-tab-active { box-shadow: inset 0 -2px 0 var(--mf-blau); }
.mf-marke { display: inline-block; margin-left: calc(6px * var(--s)); padding: 0 calc(6px * var(--s)); font-size: .68rem; line-height: 1.5; border-radius: calc(8px * var(--s)); border: 1px solid var(--mf-blau); color: var(--mf-blau); vertical-align: middle; }

/* Ja/Nein-Feld mit „öffnen“ (Adresstypen in der Adressverwaltung) */
.janein { display: flex; align-items: center; gap: calc(6px * var(--s)); }
.janein .mud-checkbox { margin-left: -6px; }
.janein .feld-daneben { font-size: .72rem; white-space: nowrap; color: var(--mf-text-2); line-height: 1.5; }
.janein .feld-daneben.warnung { background: #fde3e3; color: #a12a2a; border: 1px solid #f3b9b9; border-radius: 4px; padding: 0 calc(6px * var(--s)); }
.feld-link { all: unset; cursor: pointer; font-size: .74rem; color: var(--mf-blau); text-decoration: underline; }
.feld-link:disabled { color: #9aa6b4; cursor: default; text-decoration: none; }
/* echte Nur-Lese-Felder (z. B. Adressnummer) grau */
.feld-eingabe .mud-input.mud-input-outlined:has(input[readonly]:not(.mud-select-input)) { background: #eef1f5 !important; }

/* Reiter unter dem Formular (z. B. Adressverwaltung: Ansprechpartner / Adresstypen / Bemerkungen) */
.formular-reiter { margin-top: calc(10px * var(--s)); }
.formular-reiter .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid #aebccc; min-height: 0; }
.formular-reiter .mud-tabs-tabbar-wrapper { width: auto; }
.formular-reiter .mud-tab { flex: none !important; width: auto !important; max-width: none !important; min-width: 0 !important; min-height: 0;
    padding: calc(5px * var(--s)) calc(14px * var(--s)); font-size: .8rem; text-transform: none; letter-spacing: 0; color: #3a4655; }
.formular-reiter .mud-tab.mud-tab-active { color: var(--mf-blau); font-weight: 600; background: rgba(255,255,255,.55); border-radius: calc(3px * var(--s)) calc(3px * var(--s)) 0 0; box-shadow: inset 0 -2px 0 var(--mf-blau); }
.formular-reiter-inhalt { padding: calc(8px * var(--s)) 0 0; min-height: calc(110px * var(--s)); }
.unterbereich.ohne-titel { margin-top: 0; border-top: 0; padding-top: 0; }
.unterbereich.ohne-titel .unterbereich-kopf { justify-content: flex-end; }
/* mehrzeilige Felder (Bemerkungen) nicht auf eine Zeile begrenzen */
.feld-eingabe .mud-input.mud-input-outlined textarea.mud-input-slot,
.feld-eingabe .mud-input.mud-input-outlined textarea { height: auto !important; min-height: calc(18px * var(--s)); line-height: 1.35; resize: vertical; }
.feld:has(textarea) { align-items: start; } .feld:has(textarea) > label { padding-top: calc(4px * var(--s)); }

/* Rahmen (Frames wie im alten Programm) */
.rahmen-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(8px * var(--s)) calc(12px * var(--s)); margin-top: calc(6px * var(--s)); }
.rahmen { grid-column: span var(--spalten, 6); border: 1px solid #aebccc; border-radius: calc(4px * var(--s)); padding: calc(4px * var(--s)) calc(10px * var(--s)) calc(8px * var(--s)); margin: 0; min-width: 0; }
.rahmen > legend { font-size: .72rem; font-weight: 700; color: #44546a; padding: 0 calc(4px * var(--s)); text-transform: uppercase; letter-spacing: .03em; }
@container (max-width: 800px) { .rahmen { grid-column: span 12; } }
@container (max-width: 800px) { .rahmen-stapel { grid-column: span 12 !important; } } /* ab 3.99.332 (Rene 19.11.2026 01:14): im schmalen Fenster auch gestapelte Rahmen volle Breite */
.anzeigeliste { margin-top: calc(4px * var(--s)); background: #fff; border: 1px solid var(--mf-feldrand); border-radius: calc(3px * var(--s)); max-height: calc(260px * var(--s)); overflow: auto; }
.anzeigeliste-titel { font-size: .74rem; font-weight: 600; padding: calc(4px * var(--s)) calc(6px * var(--s)); color: #44546a; }
/* 18.11.2026 (Norbert): lange Anzeigeliste (z. B. Artikel eines Lieferanten) – nutzt die Höhe des Fensters, Kopf bleibt beim Blättern stehen */
.anzeigeliste.gross { max-height: max(calc(260px * var(--s)), calc(100vh - 330px * var(--s))); }
.anzeigeliste.gross .anzeigeliste-titel { position: sticky; top: 0; z-index: 2; background: #fff; }
.anzeigeliste.gross .mf-tabelle thead th { position: sticky; top: calc(22px * var(--s)); z-index: 1; background: #fff; }
.anzeigeliste-anzahl { font-weight: 400; color: #7a8796; margin-left: 10px; }
.optionen { display: flex; flex-wrap: wrap; gap: 0 calc(10px * var(--s)); }
.optionen.senkrecht { flex-direction: column; }
.optionen .mud-radio .mud-button-root { padding: calc(2px * var(--s)) !important; }
.optionen .mud-radio-content, .optionen .mud-typography { font-size: .8rem; }

/* Teiler zwischen Formular und Liste (Höhe ziehbar) */
.ansicht.mit-teiler { gap: 0; }
.ansicht-teiler { flex: none; height: calc(9px * var(--s)); cursor: row-resize; position: relative; touch-action: none; }
.ansicht-teiler::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(48px * var(--s)); height: 3px; margin: -1.5px 0 0 calc(-24px * var(--s)); border-radius: 2px; background: #b3c0cf; }
.ansicht-teiler:hover::after, .ansicht-teiler.aktiv::after { background: var(--mf-blau); width: calc(80px * var(--s)); margin-left: calc(-40px * var(--s)); }
.ansicht-teiler:hover, .ansicht-teiler.aktiv { background: rgba(58,108,194,.08); }
.feld-eingabe.mit-knoepfen { display: flex; align-items: center; gap: calc(4px * var(--s)); }
.feld-eingabe.mit-knoepfen > :first-child { flex: 1; min-width: 0; }
.feld-knopf { flex: none; min-width: calc(26px * var(--s)); height: calc(26px * var(--s)); padding: 0 calc(6px * var(--s)); border: 1px solid #9aabbf; border-radius: calc(3px * var(--s)); background: #fff; color: var(--mf-blau); font: inherit; font-size: .78rem; cursor: pointer; }
.feld-knopf:hover:not(:disabled) { background: #eaf0fa; }
.feld-knopf:disabled { color: #a9b4c0; cursor: default; }

/* Unterlisten: berechnete Spalten, markierte (stornierte) Zeilen, Kopfzeile ohne Umbruch */
.unterzeile-raster .zusatz { font-size: .82rem; color: var(--mf-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.unterzeile-raster .zusatz.rechts, .unterzeile-raster.kopf span.rechts { text-align: right; }
.unterzeile-raster.kopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unterzeile-raster.markiert input { color: #b3261e !important; text-decoration: line-through; }
.unterzeile-raster.markiert .zusatz { color: #b3261e; }
.unterzeile-raster .feld-link { white-space: nowrap; }
.unterzeile-raster > .mf-knopf.klein { white-space: nowrap; }
.anzeigeliste tr.klickbar { cursor: pointer; }
.import-fehler { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; background: var(--mf-feld, #f6f7f9); border: 1px solid var(--mf-feldrand); padding: 6px 8px; max-height: 220px; overflow: auto; white-space: nowrap; }
.mf-dateiwahl input[type=file] { font-size: .9rem; }
.tas-optionen { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.tas-optionen .rahmen { margin: 0; }

/* Lizenzabrechnung */
.partner-wahl { display: flex; flex-wrap: wrap; gap: 0 18px; max-height: calc(130px * var(--s)); overflow: auto; }
.abrechnung-ergebnis { overflow: auto; padding: 8px 12px; }
.lauf-kopf { padding: 4px 2px 10px; }
.partner-ergebnis { border: 1px solid var(--mf-feldrand); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; background: var(--mf-flaeche, #fff); }
.partner-ergebnis.uebersprungen { opacity: .8; }
.partner-ergebnis > header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.partner-ergebnis .partner-name { font-weight: 700; font-size: 1.02rem; }
.partner-ergebnis details { margin-top: 6px; }
.partner-ergebnis summary { cursor: pointer; color: var(--mf-blau, #1f4e9a); font-size: .85rem; }
.mf-tabelle.klein td, .mf-tabelle.klein th { font-size: .78rem; padding: 2px 6px; }
.mf-tabelle td.rechts, .mf-tabelle th.rechts { text-align: right; }
.mf-marke.ok { background: var(--mf-gruen-bg); color: var(--mf-gruen-text); border-color: var(--mf-gruen-rand); }
b.negativ { color: #b3261e; }
/* Auswahl der Vertragspartner */
.partner-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.partner-kopf .mf-suche { flex: 0 1 260px; }
.partner-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(230px * var(--s)), 1fr)); gap: 2px 10px;
    max-height: calc(150px * var(--s)); overflow-y: auto; border: 1px solid var(--mf-feldrand); border-radius: 4px; padding: 4px; background: #fff; }
.partner-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 3px; cursor: pointer; font-size: .86rem; min-width: 0; }
.partner-zeile:hover { background: #eef3fb; }
.partner-zeile.an { background: #dfe9f8; }
.partner-zeile input { margin: 0; flex: none; }
.partner-zeile .partner-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.partner-zeile.erledigt .partner-name { color: #6b7280; }
.partner-status { flex: none; font-size: .7rem; color: var(--mf-gruen-text); }
.partner-ergebnis .mf-tabelle tr.aktiv td { background: #eef3fb; font-weight: 600; }
.pdf-knoepfe { display: inline-flex; gap: 4px; margin-left: 6px; }
.pdf-knoepfe a.mf-knopf { text-decoration: none; }
a.mf-knopf { text-decoration: none; }
a.mf-knopf.gesperrt { opacity: .5; pointer-events: none; }

/* Kompakte Unterlisten (Urheber): Titel und „+“ in der Überschriftzeile */
.unterbereich.kompakt { margin-top: calc(4px * var(--s)); padding-top: calc(4px * var(--s)); }
.unterbereich.kompakt:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.unterbereich.kompakt .unterzeile-raster.kopf { margin-bottom: calc(2px * var(--s)); }
.unterbereich.kompakt .unterzeile-raster.kopf .unterliste-titel { font-size: .8rem; font-weight: 700; color: #17222f; }
.unterbereich.kompakt .unterzeile-raster.kopf .mud-icon-button { padding: calc(2px * var(--s)) !important; }
.text-zweitrangig.klein { font-size: .76rem; }

/* Kompakte Rahmen (GEMA-Anmeldung gedruckt/bearbeitet): enge Zeilen, kleine Kästchen */
.rahmen.kompakt { padding-top: calc(2px * var(--s)); padding-bottom: calc(4px * var(--s)); }
.rahmen.kompakt .formular-raster { row-gap: 0; }
.rahmen.kompakt .feld > label { font-size: .76rem; }
.rahmen.kompakt .mud-checkbox .mud-button-root { padding: calc(2px * var(--s)) !important; }
.rahmen.kompakt .mud-checkbox svg { width: calc(17px * var(--s)); height: calc(17px * var(--s)); }

/* Reiter deutlicher abheben (Copyright-Verlage, Katalogisierung, Verwertung …) */
.formular-reiter .mud-tabs-tabbar { border-bottom: 2px solid var(--mf-blau); }
.formular-reiter .mud-tabs-tabbar-content { gap: calc(3px * var(--s)); }
.formular-reiter .mud-tab { background: #d5deea; border: 1px solid #aebccc; border-bottom: 0; border-radius: calc(5px * var(--s)) calc(5px * var(--s)) 0 0;
    margin-top: calc(3px * var(--s)); font-weight: 600; color: #2f3d4e; }
.formular-reiter .mud-tab:hover { background: #e6edf6; }
.formular-reiter .mud-tab.mud-tab-active { background: var(--mf-blau); color: #fff; border-color: var(--mf-blau); box-shadow: none; }
.feld.fett input { font-weight: 700 !important; }

/* Editor für formatierten Text (Memo) */
.rt { border: 1px solid var(--mf-feldrand); border-radius: 4px; background: #fff; display: flex; flex-direction: column; }
.rt-leiste { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px 4px; border-bottom: 1px solid var(--mf-feldrand); background: #f3f6fa; border-radius: 4px 4px 0 0; }
.rt-leiste button { min-width: 28px; height: 26px; border: 1px solid transparent; background: transparent; border-radius: 3px; cursor: pointer; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; color: #2f3d4e; }
.rt-leiste button:hover { background: #e2e9f3; border-color: #c5d1e0; }
.rt-leiste button.farbe { font-weight: 800; }
.rt-trenner { width: 1px; background: #c5d1e0; margin: 3px 4px; }
.rt-flaeche { min-height: calc(var(--zeilen) * 1.5em); padding: 6px 10px; outline: none; font-size: .9rem; line-height: 1.45; overflow: auto; }
.rt-flaeche:focus { box-shadow: inset 0 0 0 2px rgba(31,78,154,.25); }
.rt-flaeche ul, .rt-flaeche ol { margin: .2em 0 .2em 1.4em; padding: 0; }
.rt-flaeche h4 { margin: .3em 0; font-size: 1.05rem; }
.rt.nur-lesen { background: #f6f7f9; }
.unterzeile-raster.kopf .mit-knopf { display: inline-flex; align-items: center; gap: 6px; }
.prozent-knopf { border: 1px solid var(--mf-blau); color: var(--mf-blau); background: #fff; border-radius: 3px; font-size: .72rem; font-weight: 700; line-height: 1; padding: 2px 5px; cursor: pointer; }
.prozent-knopf:hover { background: #eef3fb; }

/* ---------- Mehrfachauswahl wie im alten Programm (Urheber: „…“ / Namen / „%“) ---------- */
.auswahl-zeile { margin-bottom: calc(3px * var(--s)); }
.auswahl-eingabe { display: flex; gap: calc(4px * var(--s)); align-items: stretch; }
.auswahl-eingabe input { flex: 1 1 auto; min-width: 0; cursor: default; }
.punkte-knopf { border: 1px solid var(--mf-blau); color: var(--mf-blau); background: #fff; border-radius: 3px; font-weight: 700; line-height: 1; padding: 0 7px; cursor: pointer; }
.punkte-knopf:hover:not(:disabled), .auswahl-eingabe .prozent-knopf:hover:not(:disabled) { background: #eef3fb; }
.punkte-knopf:disabled, .auswahl-eingabe .prozent-knopf:disabled { opacity: .45; cursor: default; }
.auswahl-eingabe .prozent-knopf { padding: 0 6px; }

/* ab 3.99.160: Unterliste im eigenen Fenster (z. B. Telekommunikation der Adresse) */
.unterliste-dialog .mud-dialog-content { min-width: min(560px, 90vw); }
.unterliste-dialog .ul-fehler { color: #b3261e; font-size: .8rem; margin-top: 6px; }
.mehrfach-dialog .ma-suche { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mehrfach-dialog .ma-suche label { font-size: .85rem; font-weight: 600; }
.mehrfach-dialog .ma-suche input { flex: 0 1 320px; border: 1px solid #b9c6d6; border-radius: 3px; padding: 4px 8px; font-size: .85rem; }
.mehrfach-dialog .ma-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 10px; }
.mehrfach-dialog .ma-liste { display: flex; flex-direction: column; border: 1px solid #b9c6d6; border-radius: 3px; min-height: 0; }
.mehrfach-dialog .ma-kopf { background: #eef2f7; border-bottom: 1px solid #b9c6d6; padding: 3px 8px; font-size: .78rem; font-weight: 700; display: flex; justify-content: space-between; }
.mehrfach-dialog .ma-scroll { height: 340px; overflow-y: auto; }
.mehrfach-dialog .ma-zeile { height: 24px; line-height: 24px; padding: 0 8px; font-size: .82rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; }
.mehrfach-dialog .ma-zeile:hover { background: #f1f5fa; }
.mehrfach-dialog .ma-zeile.aktiv { background: #cfdcef; }
.mehrfach-dialog .ma-gewaehlt { display: flex; align-items: center; gap: 8px; height: 28px; line-height: 28px; }
.mehrfach-dialog .ma-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.mehrfach-dialog .ma-prozent { width: 86px; text-align: right; border: 1px solid #b9c6d6; border-radius: 3px; padding: 1px 6px; font-size: .82rem; background: #fffbe6; height: 22px; }
.mehrfach-dialog .ma-knoepfe { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mehrfach-dialog .ma-knoepfe .mf-knopf { min-width: 64px; justify-content: center; }
.mehrfach-dialog .ma-summe { border-top: 1px solid #b9c6d6; padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; }
.mehrfach-dialog .ma-summe .ok { color: #2e7d32; }
.mehrfach-dialog .ma-summe .falsch { color: #c62828; }
.mehrfach-dialog .ma-leer { padding: 10px; font-size: .8rem; color: #6b7785; }
.mehrfach-dialog .ma-fehler { margin-top: 10px; color: #c62828; font-size: .85rem; font-weight: 600; }
@media (max-width: 700px) { .mehrfach-dialog .ma-raster { grid-template-columns: 1fr; } .mehrfach-dialog .ma-knoepfe { flex-direction: row; } }

/* ---------- Kompaktere Formulare (freigegeben nach Vorschau 17.10.2026) ---------- */
.formular-inhalt { padding: calc(6px * var(--s)) calc(10px * var(--s)) calc(5px * var(--s)) !important; }
.formular-raster { gap: calc(2px * var(--s)) calc(12px * var(--s)) !important; }
.feld { gap: calc(6px * var(--s)) !important; grid-template-columns: calc(var(--label, 120px) * var(--s) * .86) minmax(0, 1fr) !important; }
.feld > label { font-size: .76rem !important; }
.feld-eingabe .mud-input.mud-input-outlined .mud-input-slot,
.feld-eingabe .mud-input-outlined input,
.feld-eingabe .mud-input.mud-input-outlined .mud-input-root,
.feld-eingabe .mud-input.mud-input-outlined input.mud-input-root { padding: calc(2px * var(--s)) calc(6px * var(--s)) !important; height: calc(16px * var(--s)) !important; font-size: .78rem !important; }
.feld-eingabe .mud-input.mud-input-outlined { font-size: .78rem !important; }
.feld-eingabe textarea { padding: calc(2px * var(--s)) calc(6px * var(--s)) !important; font-size: .78rem !important; }
.rahmen-raster { gap: calc(5px * var(--s)) calc(8px * var(--s)) !important; margin-top: calc(3px * var(--s)) !important; }
.rahmen { padding: 0 calc(8px * var(--s)) calc(5px * var(--s)) !important; }
.rahmen > legend { font-size: .66rem !important; }
.formular-reiter { margin-top: calc(6px * var(--s)) !important; }
.formular-reiter .mud-tab { padding: calc(3px * var(--s)) calc(10px * var(--s)) !important; font-size: .76rem !important; }
.formular-reiter-inhalt { padding-top: calc(5px * var(--s)) !important; }
.formular-reiter > .mud-tabs-panels { padding-top: calc(7px * var(--s)) !important; } /* ab 3.99.444 (Rene 30.11.2026 02:45 „Abstand unten wie oben bei Artikelnummer … die Abstände immer gleich“): wie unter der Leiste */
.unterzeile-raster { gap: calc(4px * var(--s)) !important; margin-bottom: calc(2px * var(--s)) !important; }
.unterzeile-raster.kopf span { font-size: .7rem !important; }
.unterbereich { margin-top: calc(5px * var(--s)) !important; padding-top: calc(4px * var(--s)) !important; }
.unterbereich-kopf { margin-bottom: calc(2px * var(--s)) !important; }
.rahmen.kompakt .feld .mud-checkbox .mud-button-root { padding: 0 calc(2px * var(--s)) !important; }
.formular-leiste { padding-top: calc(4px * var(--s)) !important; padding-bottom: calc(4px * var(--s)) !important; }
.anzeigeliste .mf-tabelle td, .anzeigeliste .mf-tabelle th { padding-top: 1px !important; padding-bottom: 1px !important; }
.protokoll { margin-top: calc(4px * var(--s)) !important; }
.rahmen.kompakt .feld { grid-template-columns: calc(var(--label, 120px) * var(--s)) minmax(0, 1fr) !important; }
.auswahl-zeile { margin-bottom: 0; }
.auswahl-eingabe input { height: calc(21px * var(--s)); padding: 0 calc(6px * var(--s)); font-size: .78rem; }
.auswahl-eingabe .punkte-knopf, .auswahl-eingabe .prozent-knopf { height: calc(21px * var(--s)); }
.suche-treffer tr.sz td { height: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.suche-laedt { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #5b6878; font-size: .85rem; }
/* Suchfenster: breiter, sortierbare Überschriften, Filterfeld je Spalte */
.suche-treffer { height: min(64vh, calc(560px * var(--s))) !important; }
.suche-treffer table { table-layout: fixed; min-width: 100%; }
.suche-treffer thead { position: sticky; top: 0; z-index: 2; }
.suche-treffer thead th { position: static; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.suche-treffer th.sortierbar { cursor: pointer; user-select: none; }
.suche-treffer th.sortierbar:hover { background: #e3e9f2; }
.suche-treffer .sortpfeil { font-size: .7em; color: var(--mf-blau); margin-left: 4px; }
.suche-treffer tr.filterzeile th { padding-top: 0; padding-bottom: 3px; }
.suche-treffer tr.filterzeile input { width: 100%; box-sizing: border-box; border: 1px solid #b9c6d6; border-radius: 3px; padding: 1px 5px; font-size: .78rem; font-weight: 400; background: #fff; }
.suche-treffer tr.filterzeile input::placeholder { color: #a8b3c0; }
.suche-treffer tr.sz td { max-width: none; }
.suche-merken { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; cursor: pointer; white-space: nowrap; }
/* Pfeil der Auswahlfelder (Autocomplete) mit gleichem Abstand zum Rand wie bei den Listenfeldern */
.feld-eingabe .mud-autocomplete .mud-input-adornment-end { margin-right: calc(12px * var(--s)) !important; }
.unterzeile-raster .mud-autocomplete .mud-input-adornment-end { margin-right: calc(12px * var(--s)) !important; }
.mf-menu-eintrag.start .programm-version { margin-left: auto; padding-right: calc(10px * var(--s)); font-size: .62rem; font-weight: 400; opacity: .55; letter-spacing: .02em; white-space: nowrap; }

/* ---------- Benutzereinstellungen ---------- */
.einstellungen .einst-reiter { display: flex; gap: 2px; border-bottom: 2px solid var(--mf-blau); margin-bottom: calc(8px * var(--s)); }
.einstellungen .einst-reiter button { all: unset; cursor: pointer; padding: calc(4px * var(--s)) calc(14px * var(--s)); font-size: .8rem; font-weight: 600; background: #e8edf3; border: 1px solid #b8c4d2; border-bottom: 0; border-radius: 4px 4px 0 0; color: #2a3646; }
.einstellungen .einst-reiter button.aktiv { background: var(--mf-blau); color: #fff; border-color: var(--mf-blau); }
.einstellungen .einst-raster { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: calc(10px * var(--s)); align-items: start; }
.einstellungen .einst-spalte { display: flex; flex-direction: column; gap: calc(8px * var(--s)); }
.einstellungen .rahmen { padding: calc(4px * var(--s)) calc(10px * var(--s)) calc(8px * var(--s)); }
.einst-tasten { border-collapse: collapse; font-size: .8rem; }
.einst-tasten td { padding: 2px 8px 2px 0; white-space: nowrap; }
.einst-tasten td:first-child { min-width: 150px; }
.einst-tasten label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.einst-tasten tr.fest { color: #8a96a3; }
.einst-tasten .fest-taste { display: inline-block; min-width: 52px; padding: 1px 6px; border: 1px solid #c9d2dc; border-radius: 3px; background: #eef1f5; }
.einst-tasten tr.doppelt td { color: #c62828; }
.einst-tasten select { min-width: 70px; }
.einst-zeile { display: flex; align-items: center; gap: 6px; font-size: .8rem; margin: 3px 0; cursor: pointer; }
.einst-zeile > span:first-child { min-width: 250px; }
.einst-zeile input[type=color] { width: 44px; height: 22px; padding: 0; border: 1px solid #b9c6d6; cursor: pointer; }
.einst-hinweis { font-size: .72rem; color: #5d6b7a; margin-top: 4px; }
.einst-warnung { font-size: .76rem; color: #c62828; font-weight: 600; margin-top: 4px; }
.einst-vorschau { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: .8rem; }
.einst-vorschau .beschriftung { font-weight: 600; padding: 1px 5px; border-radius: 2px; }
.einst-vorschau .feld-muster { border: 1px solid #b9c6d6; border-radius: 3px; padding: 2px 10px; min-width: 180px; }
.einst-links { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.einst-links > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.einst-links > div.kopf span { font-size: .72rem; color: #5d6b7a; }
.einst-links input { border: 1px solid #b9c6d6; border-radius: 3px; padding: 3px 7px; font-size: .8rem; background: #fff; }
.einst-links .knoepfe { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .einstellungen .einst-raster { grid-template-columns: 1fr; } }
/* Pflichtfeld-Beschriftungen hinterlegen (Benutzereinstellung) */
.pflicht-beschriftung .feld > label.pflicht, .pflicht-beschriftung .unterzeile-raster.kopf span.pflicht { background: var(--mf-pflicht); border-radius: 2px; padding: 0 4px; }
/* Gegenüberstellung (GEMA-Anmeldung gedruckt / bearbeitet) */
.gegenueber { display: grid; column-gap: calc(10px * var(--s)); row-gap: 0; align-items: center; margin-top: calc(2px * var(--s)); font-size: .78rem; }
.gegenueber-kopf { font-size: .7rem; color: var(--mf-text-2); text-align: center; padding-bottom: 1px; }
.gegenueber-label { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gegenueber-feld { display: flex; justify-content: center; }
.gegenueber-feld .feld { display: block !important; grid-template-columns: none !important; }
.gegenueber-feld .mud-checkbox .mud-button-root { padding: 1px !important; }
/* Formular ohne Liste darunter (Titelarchiv) */
.ansicht.ohne-liste .ansicht-formular { max-height: none !important; flex: 1 1 auto; }
/* Aktive Filter im Suchfenster: gefärbt, mit ✕ zum Leeren */
.suche-treffer .filterfeld { position: relative; display: block; }
.suche-treffer .filterfeld input { padding-right: 20px !important; }
.suche-treffer .filterfeld.aktiv input { background: #fff3b0 !important; border-color: #d9a400 !important; font-weight: 600; }
.filter-leeren { all: unset; cursor: pointer; color: #c62828; font-size: .8rem; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 3px; }
.filter-leeren:hover { background: rgba(198, 40, 40, .12); }
.suche-treffer .filterfeld .filter-leeren { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.suche-text.aktiv { background: #fff3b0; border-color: #d9a400 !important; }
.suche-text.aktiv input { background: transparent; font-weight: 600; }
.suche-text .filter-leeren { margin-right: 4px; }
/* Unterlisten: Zeilenabstand wie bei normalen Feldern (Checkbox ohne großen Innenabstand) */
.unterzeile-raster:not(.kopf) { margin-bottom: calc(2px * var(--s)) !important; align-items: center; }
.unterzeile-raster .mud-checkbox .mud-button-root { padding: 0 calc(2px * var(--s)) !important; }
.unterzeile-raster .mud-checkbox svg { width: calc(18px * var(--s)); height: calc(18px * var(--s)); }
.unterzeile-raster > .mud-icon-button { padding: 0 calc(2px * var(--s)) !important; }
.unterzeile-raster { justify-content: start; }
.formular-raster.felder-unten { margin-top: calc(10px * var(--s)); padding-top: calc(6px * var(--s)); border-top: 1px dashed #b9c6d6; }
/* Aufklappbare Auswahllisten (Select/Autocomplete): Schrift wie in den Feldern, enge Zeilen */
.mud-popover .mud-list { padding: 2px 0 !important; }
.mud-popover .mud-list-item { min-height: 0 !important; padding: calc(2px * var(--s)) calc(10px * var(--s)) !important; }
.mud-popover .mud-list-item, .mud-popover .mud-list-item .mud-typography, .mud-popover .mud-list-item-text p { font-size: .78rem !important; line-height: 1.35 !important; }
.mud-popover .mud-list-item-text { margin: 0 !important; }
.mud-popover .mud-list-item .mud-list-item-icon { min-width: 0 !important; margin-right: 6px; }
.mud-popover .mud-list-item .mud-checkbox .mud-button-root { padding: 2px !important; }
.mud-popover .mf-gewaehlt { font-weight: 700; color: var(--mf-blau); }
/* 17.11.2026 (Norbert): Zusatz hinter dem Eintrag der Auswahlliste (z. B. Artikelbezeichnung) */
.mud-popover .mf-listenzusatz { font-weight: 400; color: #6b7280; white-space: pre; }
.mud-popover.mf-liste-breit { min-width: 460px !important; width: auto !important; max-width: 90vw; }
.mud-popover .mud-list-item:has(.mf-gewaehlt) { background: #dbe6f6; }
/* Formular ohne Liste: Hinweis „Angelegt … geändert …“ immer ganz unten */
.ansicht.ohne-liste .ansicht-formular { display: flex; flex-direction: column; }
.ansicht.ohne-liste .formular-leiste { flex: none; }
.ansicht.ohne-liste .formular-inhalt { flex: 1 0 auto; display: flex; flex-direction: column; }
.ansicht.ohne-liste .formular-inhalt > .protokoll { margin-top: auto !important; padding-top: calc(6px * var(--s)); }
.mehrfach-dialog .ma-zeile[draggable=true] { cursor: grab; }
.mehrfach-dialog .ma-ablage { outline: 2px dashed var(--mf-blau); outline-offset: -3px; background: #f3f7fd; }
/* Pflichtfelder/Fehler: keine Meldung unter dem Feld (Formatierung bleibt), Feld rot umrandet; Hinweis unten über der Datensatzinfo */
.formular-inhalt .mud-input-control-helper-container { display: none !important; }
.formular-inhalt .mud-input.mud-input-error .mud-input-outlined-border,
.formular-inhalt .mud-input-outlined.mud-input-error .mud-input-outlined-border { border-color: #d32f2f !important; border-width: 2px !important; }
.formular-inhalt .mud-input-control.mud-input-error .mud-input-outlined-border { border-color: #d32f2f !important; border-width: 2px !important; }
.formular-fuss { margin-top: calc(6px * var(--s)); }
.ansicht.ohne-liste .formular-inhalt > .formular-fuss { margin-top: auto; padding-top: calc(6px * var(--s)); }
.formular-fuss .protokoll { margin-top: calc(2px * var(--s)) !important; }
.formular-fehler { display: flex; align-items: center; gap: 6px; color: #c62828; font-size: .78rem; font-weight: 600; background: #fdecea; border: 1px solid #f4c7c3; border-radius: 3px; padding: calc(3px * var(--s)) calc(8px * var(--s)); }

/* ---------- Hilfe ---------- */
.hilfe-eintrag { margin-top: calc(10px * var(--s)); border-top: 1px solid rgba(255,255,255,.12); padding-top: calc(8px * var(--s)) !important; }
.hilfe { display: grid; grid-template-columns: calc(270px * var(--s)) minmax(0, 1fr); height: 100%; background: #fff; }
.hilfe-navi { border-right: 1px solid var(--mf-linie); background: #f5f7fa; overflow: auto; padding: calc(8px * var(--s)); display: flex; flex-direction: column; gap: 2px; }
.hilfe-navi .mf-suche { margin-bottom: calc(6px * var(--s)); }
.hilfe-navi .mf-suche input { width: 100%; }
.hilfe-navi .mf-suche.aktiv { background: #fff3b0; border-color: #d9a400; }
.hilfe-inhalt-liste { display: flex; flex-direction: column; }
.hilfe-navi button.kapitel, .hilfe-navi button.abschnitt { all: unset; cursor: pointer; display: block; padding: calc(3px * var(--s)) calc(8px * var(--s)); border-radius: 3px; font-size: .74rem; color: #1f2a37; }
.hilfe-navi button.kapitel { font-weight: 600; }
.hilfe-navi button.kapitel.aktiv { background: var(--mf-blau); color: #fff; }
.hilfe-navi button.abschnitt { padding-left: calc(20px * var(--s)); font-size: .7rem; color: #3d4b5c; }
.hilfe-navi button:hover:not(.aktiv) { background: #e3e9f2; }
.hilfe-treffer-kopf { font-size: .72rem; color: var(--mf-text-2); margin: 2px 4px 4px; }
.hilfe-treffer { all: unset; cursor: pointer; display: block; padding: 5px 8px; border-radius: 3px; border-bottom: 1px solid #e3e8ee; }
.hilfe-treffer:hover { background: #e3e9f2; }
.hilfe-treffer b { display: block; font-size: .78rem; color: var(--mf-blau); }
.hilfe-treffer span { display: block; font-size: .72rem; color: #4a5664; }
.hilfe-text { overflow: auto; padding: calc(14px * var(--s)) calc(26px * var(--s)) calc(40px * var(--s)); font-size: .78rem; line-height: 1.5; color: #1f2a37; outline: 0; }
.hilfe-text h1 { font-size: 1.3rem; margin: 0 0 .6em; color: #17243a; }
.hilfe-text h2 { font-size: 1rem; margin: 1.4em 0 .5em; padding-bottom: .2em; border-bottom: 2px solid #dbe3ee; color: #17243a; scroll-margin-top: 10px; }
.hilfe-text h2 .nz-zeit { font-size: .68rem; font-weight: 400; color: #8a96a8; margin-left: .35em; }
.hilfe-text h3 { font-size: .88rem; margin: 1.2em 0 .4em; color: #2d58a3; scroll-margin-top: 10px; }
.hilfe-text h4 { font-size: .82rem; margin: 1em 0 .3em; }
.hilfe-text p, .hilfe-text ul, .hilfe-text ol { margin: .45em 0; max-width: 980px; }
.hilfe-text li { margin: .15em 0; }
.hilfe-text table { border-collapse: collapse; margin: .6em 0 1em; font-size: .74rem; }
.hilfe-text th, .hilfe-text td { border: 1px solid #d5dce4; padding: 3px 8px; text-align: left; vertical-align: top; }
.hilfe-text th { background: #eef2f7; }
.hilfe-text code { background: #f1f3f6; padding: 0 4px; border-radius: 3px; font-size: .92em; }
.hilfe-text blockquote { margin: .8em 0; padding: .4em .9em; border-left: 4px solid var(--mf-akzent); background: #fff8ec; }
.hilfe-text a { color: var(--mf-blau); }
/* Benutzer online (Maus über dem Benutzernamen oben rechts) */
.online-bereich { position: relative; display: inline-flex; }
.online-fenster { position: absolute; top: 100%; right: 0; z-index: 1500; margin-top: 0; min-width: 330px; max-height: 60vh; overflow: auto; background: #fff; color: #1f2a37;
    border: 1px solid #c3ccd6; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px 0; font-size: .8rem; }
.online-kopf { display: flex; justify-content: space-between; padding: 2px 12px 6px; font-weight: 700; border-bottom: 1px solid #e3e8ee; }
.online-kopf span { font-weight: 400; color: #5d6b7a; }
.online-zeile { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 8px; padding: 4px 12px; }
.online-zeile .punkt { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: #b8c1cc; margin-top: 4px; }
.online-zeile.online .punkt { background: #2e9d4a; box-shadow: 0 0 0 3px rgba(46,157,74,.18); }
.online-zeile.untaetig .punkt { background: #e0a800; }
.online-zeile .name { font-weight: 600; }
.online-zeile:not(.online):not(.untaetig) .name { color: #6b7785; font-weight: 400; }
.online-zeile .info { font-size: .72rem; color: #6b7785; }
.online-fuss { border-top: 1px solid #e3e8ee; margin-top: 4px; padding: 5px 12px 0; font-size: .68rem; color: #8a96a3; }
/* Rahmen untereinander in einer Spalte (Stapel) und Optionsfelder untereinander */
.rahmen-stapel { grid-column: span var(--spalten); display: flex; flex-direction: column; gap: calc(5px * var(--s)); min-width: 0; }
.rahmen-stapel > .rahmen { grid-column: auto; flex: 1 1 auto; }
.rahmen.senkrecht .mud-radio-group, .rahmen.senkrecht .mud-radio-group > div { flex-direction: column !important; align-items: flex-start !important; }
.rahmen.senkrecht .mud-radio { margin: 0; }
.rahmen.senkrecht .mud-radio .mud-button-root { padding: 2px calc(4px * var(--s)) !important; }
/* Audio direkt im Formular abspielen */
.audio-spieler { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.audio-spieler audio { height: calc(30px * var(--s)); flex: 1 1 auto; max-width: 520px; }
/* Leere Anzeigeliste (z. B. keine Titelfragmente): unauffällig im Hintergrund */
.anzeigeliste.leer { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.anzeigeliste.leer .anzeigeliste-titel { background: transparent !important; color: #7a8796; font-weight: 400; }
.anzeigeliste-leer { font-size: .76rem; color: #8a96a3; padding: 2px 8px; font-style: italic; }
.rahmen:has(> .anzeigeliste.leer), .rahmen:has(.anzeigeliste.leer):not(:has(.anzeigeliste:not(.leer))) { opacity: .65; border-style: dashed; }
/* Mehrzeilige Felder (z. B. Weitere ISRC): nicht auf Zeilenhöhe der einzeiligen Felder begrenzen */
.feld-eingabe textarea, .feld-eingabe textarea.mud-input-root, .feld-eingabe .mud-input.mud-input-outlined textarea.mud-input-root {
    height: auto !important; min-height: calc(32px * var(--s)); line-height: 1.35 !important; padding-top: calc(3px * var(--s)) !important; padding-bottom: calc(3px * var(--s)) !important; }
/* Mehrteilige Felder (8 weitere ISRC) */
.teile-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(3px * var(--s)) calc(6px * var(--s)); width: 100%; }
.teile-raster input.teil { border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: calc(2px * var(--s)) calc(6px * var(--s)); font: inherit; font-size: .78rem;
    height: calc(21px * var(--s)); background: #fff; min-width: 0; }
.teile-raster input.teil:focus { outline: 0; border-color: var(--mf-blau); box-shadow: 0 0 0 1px var(--mf-blau); }
.teile-raster input.teil.ungueltig { border: 2px solid #d32f2f; }
.teile-raster input.teil[readonly] { background: #f7f9fb; }
/* ISRC zuordnen / Export */
.isrc-ansicht .formular-inhalt { display: flex; flex-direction: column; gap: calc(8px * var(--s)); }
.isrc-pfade { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; font-size: .8rem; }
.isrc-pfade b { font-weight: 600; word-break: break-all; }
.isrc-pfade.senkrecht { grid-template-columns: 1fr; }
.isrc-pfade.senkrecht span { color: var(--mf-text-2); font-size: .72rem; margin-top: 3px; }
.isrc-fortschritt { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--mf-text-2); }
.isrc-zaehler { display: flex; flex-wrap: wrap; gap: 6px; }
.isrc-chip { all: unset; cursor: pointer; font-size: .78rem; padding: 3px 10px; border-radius: 12px; background: #eef2f7; border: 1px solid #c9d3df; }
.isrc-chip.aktiv { outline: 2px solid var(--mf-blau); }
.isrc-chip.e0, .isrc-chip.e1 { background: var(--mf-gruen-bg); border-color: var(--mf-gruen-rand); }
.isrc-chip.e2 { background: #fff4d6; border-color: #ecd394; }
.isrc-chip.e3, .isrc-chip.e4 { background: #fdecea; border-color: #f4c7c3; }
.isrc-tabelle { flex: 1 1 auto; min-height: 220px; max-height: 55vh; overflow: auto; border: 1px solid var(--mf-feldrand); background: #fff; }
.isrc-tabelle.klein { max-height: 30vh; min-height: 0; }
.isrc-tabelle td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; font-size: .78rem; }
.isrc-tabelle tr.e2 td { color: #8a5a00; }
.isrc-tabelle tr.e3 td, .isrc-tabelle tr.e4 td { color: #b3261e; }
.isrc-haken { display: flex; align-items: center; gap: 6px; font-size: .8rem; margin: 3px 0; cursor: pointer; }
.isrc-datum { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
input.einfach, select.einfach { border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 6px; font: inherit; font-size: .8rem; background: #fff; height: calc(22px * var(--s)); min-width: 0; }
.feld-eingabe > input.einfach, .feld-eingabe > select.einfach { width: 100%; }
.feld:has(.teile-raster) > label { align-self: start; margin-top: 3px; }

/* ---------- Dynamische Hilfe (F1) ---------- */
.dyn-schleier { position: fixed; inset: 0; background: rgba(8, 16, 30, .62); z-index: 5000; pointer-events: none; }
.dyn-ebene { position: fixed; inset: 0; z-index: 5001; pointer-events: none; }
/* ab 3.99.433 (Rene 29.11.2026 01:25 Variante A mit Abdunkeln): Rahmen statt Füllung – die Bezeichnung darunter wird aufgehellt und bleibt gestochen scharf */
.dyn-spot { position: fixed; pointer-events: auto; cursor: help; border-radius: 2px; background: transparent;
    -webkit-backdrop-filter: brightness(2.65) saturate(1.05); backdrop-filter: brightness(2.65) saturate(1.05);
    box-shadow: 0 0 0 2px #f5c518; }
.dyn-spot:hover { box-shadow: 0 0 0 3px #43a047, 0 0 0 7px rgba(67, 160, 71, .3); }
.dyn-blase { position: fixed; z-index: 5003; display: none; max-width: 380px; background: #1e2c42; color: #eef3fa; border-radius: 8px; padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: .82rem; line-height: 1.45; pointer-events: none; }
.dyn-blase .dyn-titel { font-weight: 700; font-size: .88rem; color: #ffd75e; margin-bottom: 3px; }
.dyn-blase .dyn-meta { margin-top: 6px; font-size: .72rem; color: #a9b8cc; border-top: 1px solid rgba(255,255,255,.12); padding-top: 5px; }
.dyn-band { position: fixed; z-index: 5004; left: 50%; bottom: 18px; transform: translateX(-50%); background: #ffd75e; color: #1e2c42; padding: 7px 16px;
    border-radius: 20px; font-size: .82rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; }
.dyn-band kbd { background: #fff; border-radius: 3px; padding: 0 4px; font-family: inherit; font-size: .75rem; border: 1px solid #c9a52c; }
.kachel.klickbar { cursor: pointer; } .kachel.klickbar:hover { border-color: var(--mf-blau); box-shadow: 0 2px 10px rgba(58,108,194,.15); }
/* Bild im Rahmen (Cover der Tonträgerbelegung) */
.rahmen-mit-bild { display: flex; gap: calc(10px * var(--s)); align-items: flex-start; }
.rahmen-mit-bild .rahmen-felder { flex: 1 1 auto; min-width: 0; }
.rahmen-bild { flex: none; width: calc(128px * var(--s)); height: calc(128px * var(--s)); border: 1px solid var(--mf-feldrand); border-radius: 4px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rahmen-bild img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.rahmen-bild a { display: block; width: 100%; height: 100%; }
.rahmen-bild .bild-leer { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9aa6b4; font-size: .7rem; text-align: center; padding: 6px; }
.rahmen-bild .bild-leer .mud-icon-root { font-size: 2.2rem; }
/* Liste unter dem Formular ausgeblendet (Klick auf den Teiler) */
.ansicht.liste-zu > .ansicht-liste { display: none; }
.ansicht.liste-zu > .ansicht-formular { flex: 1 1 auto !important; max-height: none !important; }
.ansicht.liste-zu > .ansicht-teiler { height: calc(20px * var(--s)); cursor: pointer; background: #e3e9f2; border-radius: 0 0 4px 4px; }
.ansicht.liste-zu > .ansicht-teiler::after { display: none; }
.ansicht.liste-zu > .ansicht-teiler::before { content: "▲  " attr(data-ein); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #3d4b5c; }
.ansicht.liste-zu > .ansicht-teiler:hover::before { color: var(--mf-blau); }
.ansicht.mit-teiler:not(.liste-zu) > .ansicht-teiler:hover::before { content: "▼ " attr(data-aus); position: absolute; right: 12px; top: -2px; font-size: .66rem; color: var(--mf-blau); }
/* Mehrteilige Felder: eine Zeile + kleines Eingabefenster */
.teile-feld { position: relative; width: 100%; display: flex; align-items: center; }
.teile-feld .teil-anzeige { width: 100%; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: calc(2px * var(--s)) calc(28px * var(--s)) calc(2px * var(--s)) calc(6px * var(--s));
    font: inherit; font-size: .78rem; height: calc(21px * var(--s)); background: #fff; cursor: pointer; text-overflow: ellipsis; }
.teile-feld .teil-anzeige.ungueltig { border: 2px solid #d32f2f; }
.teile-feld .teile-anzahl { position: absolute; right: 5px; font-size: .66rem; background: var(--mf-blau); color: #fff; border-radius: 8px; padding: 0 6px; pointer-events: none; }
.teile-hintergrund { position: fixed; inset: 0; z-index: 1400; }
.teile-popup { position: absolute; top: calc(100% + 4px); right: 0; z-index: 1401; width: calc(340px * var(--s)); background: #fff; border: 1px solid #b9c6d6; border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 8px 10px; }
.teile-popup-kopf { font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.teile-popup-kopf span { font-weight: 400; color: var(--mf-text-2); }
.teile-popup .teile-fehler { color: #c62828; font-size: .74rem; margin-top: 6px; }
.teile-popup-fuss { display: flex; justify-content: flex-end; margin-top: 8px; }
/* Ordnerauswahl (Mandantenstammdaten → Pfade) */
.ordner-pfad { display: flex; gap: 6px; align-items: center; }
.ordner-pfad input { flex: 1 1 auto; }
.ordner-liste { margin-top: 8px; height: 320px; overflow: auto; border: 1px solid var(--mf-feldrand); border-radius: 3px; background: #fff; }
.ordner-eintrag { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; padding: 3px 8px; font-size: .82rem; }
.ordner-eintrag:hover { background: #e3e9f2; }
.ordner-gewaehlt { margin-right: auto; font-size: .76rem; color: var(--mf-text-2); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Vergrößerung Cover (Vorder-/Rückseite) */
.bild-gross-hintergrund { position: fixed; inset: 0; z-index: 1600; background: rgba(10, 18, 30, .55); display: flex; align-items: center; justify-content: center; }
.bild-gross { background: #fff; border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.4); width: min(560px, 92vw); display: flex; flex-direction: column; outline: 0; }
.bild-gross-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid #e3e8ee; font-weight: 700; font-size: .86rem; }
.bild-gross-umschalter { display: inline-flex; border: 1px solid var(--mf-blau); border-radius: 4px; overflow: hidden; margin-left: auto; }
.bild-gross-umschalter button { all: unset; cursor: pointer; padding: 3px 12px; font-size: .78rem; font-weight: 600; color: var(--mf-blau); }
.bild-gross-umschalter button.aktiv { background: var(--mf-blau); color: #fff; }
.bild-gross-zu { all: unset; cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 3px; color: #5d6b7a; }
.bild-gross-kopf > span:first-child + .bild-gross-zu { margin-left: auto; }
.bild-gross-zu:hover { background: #eef2f7; }
.bild-gross-flaeche { height: min(520px, 70vh); display: flex; align-items: center; justify-content: center; background: #f5f7fa; padding: 10px; }
.bild-gross-flaeche img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.bild-gross-flaeche .bild-leer { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9aa6b4; font-size: .85rem; }
.bild-gross-flaeche .bild-leer .mud-icon-root { font-size: 3rem; }
.bild-gross-fuss { display: flex; justify-content: space-between; padding: 6px 14px; font-size: .74rem; color: var(--mf-text-2); border-top: 1px solid #e3e8ee; }
.bild-gross-fuss a { color: var(--mf-blau); }
.rahmen-bild img { cursor: zoom-in; }
/* Rahmen passt sich dem Bildformat an (z. B. Querformat bei Noten) */
.rahmen-bild { width: auto !important; min-width: calc(90px * var(--s)); max-width: calc(190px * var(--s)); height: calc(128px * var(--s)); background: transparent; border: 0; display: flex; align-items: center; }
.rahmen-bild img { width: auto !important; height: auto !important; max-height: 100%; max-width: calc(190px * var(--s)); object-fit: contain; border: 1px solid var(--mf-feldrand); border-radius: 4px; background: #fff; box-sizing: border-box; }
.rahmen-bild .bild-leer { width: calc(128px * var(--s)); height: 100%; justify-content: center; border: 1px solid var(--mf-feldrand); border-radius: 4px; background: #fff; box-sizing: border-box; }
.bild-gross { width: auto; min-width: min(360px, 92vw); max-width: 92vw; }
.bild-gross-flaeche { height: auto; min-height: 240px; }
.bild-gross-flaeche img { max-width: min(900px, 88vw); max-height: 70vh; }
/* Datensatzinformation („Angelegt … geändert …“) in allen Fenstern ganz unten */
.ansicht > .ansicht-formular { display: flex; flex-direction: column; }
.ansicht > .ansicht-formular > .formular-leiste { flex: none; }
.ansicht > .ansicht-formular > .formular-inhalt { flex: 1 0 auto; display: flex; flex-direction: column; }
.ansicht > .ansicht-formular > .formular-inhalt > .formular-fuss { margin-top: auto; padding-top: calc(6px * var(--s)); }
.dyn-blase .dyn-beispiel { margin-top: 6px; padding: 5px 8px; border-radius: 5px; background: rgba(255, 215, 94, .14); border-left: 3px solid #ffd75e; color: #fff3c4; font-size: .78rem; }
.hilfe-text .hilfe-markiert { background: #fff3b0 !important; outline: 2px solid #ffcf3a; border-radius: 3px; transition: background .4s; }
.hilfe-text blockquote strong:first-child { color: #b25e00; }
.dyn-blase .dyn-beispiel-titel { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #ffd75e; margin-bottom: 2px; }

/* Runde Optionsknöpfe im ganzen Programm so groß wie die Kästchen (Abrechnung) */
.mud-radio .mud-button-root { padding: calc(2px * var(--s)) !important; }
.mud-radio svg.mud-icon-root { width: calc(17px * var(--s)) !important; height: calc(17px * var(--s)) !important; }
.mud-radio .mud-radio-content, .mud-radio .mud-typography { font-size: .8rem; }
.rahmen.senkrecht .mud-radio .mud-button-root { padding: 1px calc(4px * var(--s)) !important; }

/* Titelabruf (gfrmTitelabruf) */
.titelabruf-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: calc(6px * var(--s)) calc(10px * var(--s)); align-items: center; margin-bottom: calc(8px * var(--s)); }
.titelabruf-kopf > label { font-weight: 600; font-size: .8rem; white-space: nowrap; }
.titelabruf-kopf .mf-suche, .titelabruf-kopf .mf-auswahl { width: 100%; }
.titelabruf .suche-treffer tr.sz { cursor: default; user-select: none; }
.titelabruf .suche-treffer tr.sz.fokus td { box-shadow: inset 0 1px 0 var(--mud-palette-primary), inset 0 -1px 0 var(--mud-palette-primary); }
.titelabruf .suche-treffer table { width: 100%; }

/* Unterliste als Tabelle (Grid wie im alten Programm), Zeilen per Maus verschiebbar */
.tabelle-mit-knoepfen { display: flex; gap: calc(6px * var(--s)); align-items: flex-start; }
.tabelle-rahmen { flex: 1; min-width: 0; max-height: calc(360px * var(--s)); overflow: auto; border: 1px solid var(--mf-feldrand); background: var(--mud-palette-surface); outline: 0; }
.tabelle-rahmen:focus-visible { box-shadow: 0 0 0 2px var(--mud-palette-primary-lighten); }
.ul-tabelle { width: 100%; table-layout: auto; font-size: .78rem; }
.ul-tabelle thead th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.ul-tabelle td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; padding-top: 2px !important; padding-bottom: 2px !important; }
.ul-tabelle th.rechts, .ul-tabelle td.rechts { text-align: right; }
.ul-tabelle tbody tr { cursor: default; user-select: none; }
.ul-tabelle tbody tr[draggable="true"] { cursor: grab; }
.ul-tabelle tbody tr.aktiv td { background: var(--mud-palette-primary) !important; color: #fff; }
/* ab 3.99.237 (Rene 10.11.2026 11:40): markierte Zeile – Schrift weiß, auch in Links/Zellen mit eigener Farbe */
.ul-tabelle tbody tr.aktiv td, .ul-tabelle tbody tr.aktiv td *:not(.spielen-knopf) { color: #fff !important; }
.ul-tabelle tbody tr.ziel td { box-shadow: inset 0 2px 0 var(--mud-palette-warning); }
.ul-tabelle tbody tr.storniert td { color: #b3261e; text-decoration: line-through; }
.tabelle-knoepfe { display: flex; flex-direction: column; gap: calc(4px * var(--s)); }
.tabelle-knoepfe .mf-knopf { min-width: calc(34px * var(--s)); justify-content: center; padding: 2px 4px; }
.tabelle-knoepfe .knopf-abstand { height: calc(10px * var(--s)); }
.zeile-dialog-felder { display: grid; gap: calc(4px * var(--s)); }

/* Datensicherung */
.sicherung-tabelle { width: 100%; font-size: .82rem; }
.sicherung-tabelle td { vertical-align: middle; white-space: nowrap; }
.sicherung-tabelle td:nth-child(7) { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.sicherung-tabelle .rechts { text-align: right; }
.sicherung-knoepfe { display: flex; gap: calc(4px * var(--s)); justify-content: flex-end; }
.sicherung-knoepfe a.mf-knopf { text-decoration: none; }

/* ===== Suchfenster (Suchen F2, Titelabruf, Auswahlfenster) – aufgewertete Optik ===== */
.mud-dialog.suche-dialog, .mud-dialog.mehrfach-dialog { border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 30, 60, .35); }
.mud-dialog.suche-dialog .mud-dialog-title, .mud-dialog.mehrfach-dialog .mud-dialog-title {
    background: var(--th-akzent, #08786f); color: #fff; padding: 12px 20px;
    display: flex; align-items: center; gap: 10px;
}
.mud-dialog.suche-dialog .mud-dialog-title .mud-typography, .mud-dialog.mehrfach-dialog .mud-dialog-title .mud-typography { color: #fff; font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; }
.mud-dialog.suche-dialog .mud-dialog-title::before {
    content: ""; width: 22px; height: 22px; flex: 0 0 22px; background: #fff; opacity: .9;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14'/></svg>") center / contain no-repeat;
}
.mud-dialog.suche-dialog .mud-dialog-title .mud-button-close, .mud-dialog.mehrfach-dialog .mud-dialog-title .mud-button-close { color: #fff; top: 8px; }
.mud-dialog.suche-dialog .mud-dialog-content { background: #f4f7fb; padding-top: 14px !important; }
.mud-dialog.suche-dialog .mud-dialog-actions { background: #eef2f8; border-top: 1px solid #dbe3ee; padding: 10px 18px; gap: 8px; }

/* Suchleiste: großes Suchfeld mit Lupe vorn, Auswahlen als „Pillen“ */
.suche-dialog .suche-kopf, .suche-dialog .titelabruf-kopf { background: #fff; border: 1px solid #dbe3ee; border-radius: 8px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(20, 40, 80, .06); }
.suche-dialog .mf-suche { border-radius: 18px; padding: 0 12px; height: 34px; border: 1.5px solid #c3cfdf; background: #fff; flex-direction: row-reverse; transition: border-color .15s, box-shadow .15s; }
.suche-dialog .mf-suche:focus-within { border-color: var(--mf-blau); box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.suche-dialog .mf-suche input { font-size: .9rem; padding: 0 0 0 4px; }
.suche-dialog .mf-suche .mud-icon-root { color: var(--mf-blau); font-size: 1.25rem; }
.suche-dialog .mf-suche.aktiv { background: #fff8d6; border-color: #d9a400; }
.suche-dialog .suche-kopf select.mf-auswahl, .suche-dialog .titelabruf-kopf select.mf-auswahl {
    height: 34px; border-radius: 18px; border: 1.5px solid #c3cfdf; padding: 0 30px 0 12px; font-size: .85rem; background-color: #f6f9fd; cursor: pointer;
}
.suche-dialog .suche-kopf select.mf-auswahl:focus, .suche-dialog .titelabruf-kopf select.mf-auswahl:focus { border-color: var(--mf-blau); outline: 0; box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.suche-dialog .titelabruf-kopf > label { color: #3a4a60; }
.suche-dialog .titelabruf-kopf .mud-input-outlined-border { border-radius: 18px !important; }

/* Trefferliste */
.suche-dialog .suche-treffer { margin-top: 10px; border: 1px solid #d3dce8; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 80, .06); }
.suche-dialog .suche-treffer thead th { background: linear-gradient(#f7f9fc, #e9eff7); color: #2c3e57; font-weight: 600; font-size: .78rem; text-transform: none; border-bottom: 1px solid #cfd9e6; padding: 6px 8px; }
.suche-dialog .suche-treffer thead tr:first-child th { border-right: 1px solid #e1e7f0; }
.suche-dialog .suche-treffer thead { box-shadow: 0 2px 4px rgba(20, 40, 80, .08); }
.suche-dialog .suche-treffer th.sortierbar:hover { background: #dde7f4; color: var(--mf-blau); }
.suche-dialog .suche-treffer .sortpfeil { color: #fff; background: var(--mf-blau); border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: .55rem; vertical-align: middle; }
.suche-dialog .suche-treffer tr.filterzeile th { background: #eef3fa; padding: 4px 6px 6px; }
.suche-dialog .suche-treffer tr.filterzeile input { border-radius: 12px; border-color: #c9d4e2; padding: 2px 8px; height: 24px; }
.suche-dialog .suche-treffer tr.filterzeile input:focus { border-color: var(--mf-blau); outline: 0; box-shadow: 0 0 0 2px rgba(47, 95, 174, .15); }
.suche-dialog .suche-treffer tr.sz td { height: 27px; padding: 0 8px; border-bottom: 1px solid #edf1f6; font-size: .82rem; color: #1f2d40; }
.suche-dialog .suche-treffer tr.sz:nth-child(even) td { background: #f8fafd; }
.suche-dialog .suche-treffer tr.sz:hover td { background: #e8f0fb; }
.suche-dialog .suche-treffer tr.sz.aktiv td { background: var(--mf-blau) !important; color: #fff; }
.suche-dialog .suche-treffer tr.sz.aktiv td:first-child { box-shadow: inset 4px 0 0 #f5b400; }
.suche-dialog .suche-treffer tr.sz td:first-child { font-weight: 600; }

/* Fußzeile: Trefferzahl als Plakette, Merken-Haken */
.suche-dialog .mud-dialog-actions > span.text-zweitrangig:first-child,
.suche-dialog .mud-dialog-actions > span.text-zweitrangig { background: #fff; border: 1px solid #d3dce8; border-radius: 14px; padding: 3px 12px; font-size: .8rem; color: #2c3e57; }
.suche-dialog .suche-merken { background: #fff; border: 1px solid #d3dce8; border-radius: 14px; padding: 3px 10px; }
.suche-dialog .suche-merken input { accent-color: var(--mf-blau); }
.suche-dialog .mud-dialog-actions .mf-knopf { min-width: 96px; justify-content: center; border-radius: 6px; }

/* Auswahlfenster (Urheber …) */
.mehrfach-dialog .ma-suche input { border-radius: 16px; border: 1.5px solid #c3cfdf; padding: 5px 12px; }
.mehrfach-dialog .ma-suche input:focus { border-color: var(--mf-blau); outline: 0; box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.suche-dialog .mf-suche input { flex: 1 1 auto; min-width: 0; width: auto; }
.suche-dialog .titelabruf-kopf .mud-input.mud-input-outlined { height: 34px; }
.suche-dialog .mf-suche { flex-direction: row; }
.suche-dialog .mf-suche .mud-icon-root { order: 0; }
.suche-dialog .mf-suche input { order: 1; }
.suche-dialog .mf-suche .filter-leeren { order: 2; }

/* Symbole im Reiter (aktualisieren, eigenes Fenster) */
/* Reiter-Symbole (Aktualisieren, eigenes Fenster): immer sichtbar, klein und blass – so springt beim Darüberfahren nichts */
.mf-reiter .reiter .reiter-symbol { padding: 0 1px; opacity: .3; transition: opacity .12s; }
.mf-reiter .reiter .reiter-symbol .mud-icon-root { font-size: calc(12px * var(--s)); }
.mf-reiter .reiter:hover .reiter-symbol, .mf-reiter .reiter.aktiv .reiter-symbol { opacity: .55; }
.mf-reiter .reiter .reiter-symbol:hover { opacity: 1 !important; }

/* Ausgelagertes Fenster (eigenes Browserfenster) */
.einzelfenster { height: 100vh; display: flex; flex-direction: column; background: var(--mf-hintergrund, #e9eef5); }
.einzel-kopf { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--mf-nacht, #1f2a3c); color: #fff; }
.einzel-titel { font-weight: 600; font-size: .95rem; }
.einzel-mandant { margin-left: auto; font-size: .8rem; opacity: .75; }
.einzel-knopf { all: unset; cursor: pointer; display: inline-flex; padding: 3px; border-radius: 4px; opacity: .8; }
.einzel-knopf:hover { opacity: 1; background: rgba(255,255,255,.12); }
.einzel-inhalt { flex: 1; min-height: 0; overflow: auto; }
/* Titeltabelle wächst mit (kein eigener Scrollbalken) – nur bei zu kleinem Fenster scrollt das Formular */
.tabelle-rahmen { max-height: none; overflow: visible; }
.tabelle-rahmen .ul-tabelle thead th { position: static; }
/* ab 3.30: bei schmalem Fenster schiebt sich die Tabelle nicht mehr unter die Knöpfe rechts (+, −, ✎, TA …) –
   sie bekommt einen waagrechten Scrollbalken, die Knopfleiste bleibt daneben stehen */
.tabelle-mit-knoepfen > .tabelle-rahmen { overflow-x: auto; overflow-y: hidden; }
.tabelle-mit-knoepfen > .tabelle-knoepfe { flex: none; position: relative; z-index: 1; }

/* Administration → Logs */
.logs { display: flex; height: 100%; min-height: 0; gap: 10px; padding: 10px; }
.logs-navi { width: calc(240px * var(--s)); flex: 0 0 auto; overflow: auto; background: #fff; border: 1px solid #d3dce8; border-radius: 8px; padding: 8px; }
.logs-titel { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6878; margin: 4px 4px 6px; }
.logs-eintrag { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px; border-radius: 6px; font-size: .82rem; }
.logs-eintrag:hover { background: #eef3fa; }
.logs-eintrag.aktiv { background: var(--mf-blau); color: #fff; }
.logs-groesse { margin-left: auto; font-size: .72rem; opacity: .7; }
.logs-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.logs-inhalt .formular-leiste .mf-suche { flex: 0 1 380px; }
.logs-inhalt .formular-leiste .mf-suche input { width: 100%; }
.logs-inhalt .formular-leiste a.mf-knopf { text-decoration: none; }
.logs-text { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #d3dce8; border-radius: 8px; padding: 6px 0; font-family: Consolas, "Cascadia Mono", monospace; font-size: .78rem; }
.log-zeile { display: grid; grid-template-columns: 150px 110px 42px 190px 150px 1fr; column-gap: 10px; padding: 3px 12px; border-left: 3px solid transparent; }
.log-zeile:nth-child(even) { background: #f8fafd; }
.log-zeile:hover { background: #eef3fa; }
.log-zeit { color: #5b6878; }
.log-mandant { color: #8a95a5; }
.log-bereich { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-aktion { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ab 3.86: lange Aktionen liefen in den Text */
.log-details { grid-column: 4 / -1; margin: 2px 0 2px 0; padding-left: 16px; color: #3a4a60; }
.log-details li { list-style: "→ "; }
.log-neu { border-left-color: #2e7d32; } .log-neu .log-aktion { color: #2e7d32; }
.log-geaendert { border-left-color: var(--mf-blau); } .log-geaendert .log-aktion { color: var(--mf-blau); }
.log-weg { border-left-color: #c62828; } .log-weg .log-aktion { color: #c62828; }
.log-fehler { border-left-color: #ef6c00; } .log-fehler .log-aktion { color: #ef6c00; }
.log-anmeldung .log-aktion { color: #6a4fb3; }
.log-zeile { grid-template-columns: 172px 100px 40px 150px 160px 1fr; } /* ab 3.86: Aktion breiter */
.log-zeit, .log-aktion, .log-mandant { white-space: nowrap; }
.rahmen-stapel > .rahmen { flex: 0 0 auto; }
.rahmen-stapel > .rahmen:last-child { flex: 1 1 auto; }

/* Lizenzabrechnung: Statistik unter den bisherigen Abrechnungen */
.lz-statistik { margin-top: 14px; padding: 14px; background: linear-gradient(180deg, #f6f9fd, #eef3fa); border: 1px solid #d3dce8; border-radius: 10px; }
.lz-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.lz-kachel { background: #fff; border: 1px solid #d3dce8; border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-top: 4px solid #2c3e57; }
.lz-kachel span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #5b6878; font-weight: 600; }
.lz-kachel b { font-size: 1.35rem; color: #1f2d40; font-variant-numeric: tabular-nums; }
.lz-kachel small { color: #6b7686; font-size: .75rem; }
.lz-kachel.physisch { border-top-color: #3a6cc2; } .lz-kachel.digital { border-top-color: #f08c1a; } .lz-kachel.ausgezahlt { border-top-color: #2e9d5b; }
.lz-anteil { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin: 12px 0 6px; background: #dde4ee; font-size: .72rem; color: #fff; font-weight: 600; }
.lz-anteil > div { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.lz-anteil .physisch { background: #3a6cc2; } .lz-anteil .digital { background: #f08c1a; }
.lz-diagramm { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 8px 4px 0; overflow-x: auto; border-bottom: 1px solid #c3cfdf; }
.lz-jahr { flex: 1 0 44px; max-width: 90px; height: 100%; display: flex; flex-direction: column; align-items: center; }
.lz-wert { font-size: .68rem; color: #3a4a60; font-variant-numeric: tabular-nums; height: 14px; }
.lz-saeulen { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 0; }
.lz-stapel { width: 60%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.lz-stapel .physisch { background: linear-gradient(#5585d6, #3a6cc2); border-radius: 0 0 0 0; }
.lz-stapel .digital { background: linear-gradient(#f5a54a, #f08c1a); }
.lz-stapel > div:first-child { border-radius: 4px 4px 0 0; }
.lz-aus { width: 18%; background: #2e9d5b; border-radius: 3px 3px 0 0; opacity: .85; }
.lz-jahrzahl { font-size: .72rem; font-weight: 600; color: #2c3e57; padding: 3px 0; position: relative; top: 0; }
.lz-legende { display: flex; gap: 16px; font-size: .75rem; color: #3a4a60; margin: 6px 0 10px; }
.lz-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.lz-legende .physisch::before { background: #3a6cc2; } .lz-legende .digital::before { background: #f08c1a; } .lz-legende .ausgezahlt::before { background: #2e9d5b; }
.lz-jahrestabelle { background: #fff; border-radius: 6px; overflow: hidden; }
.lz-jahrestabelle tfoot td { font-weight: 700; border-top: 2px solid #2c3e57; background: #f2f5fa; }
.lz-formate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: .78rem; }
.lz-format { border-radius: 12px; padding: 2px 10px; background: #e6eefb; color: #2c4f8f; }
.lz-format.digital { background: #fdeedb; color: #8a4b05; }

/* Lizenzabrechnung: Startansicht mit Statistik */
.lz-dashboard { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.lz-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid #d3dce8; border-radius: 8px; padding: 8px 12px; }
.lz-filter > b { font-size: .95rem; margin-right: 6px; }
.lz-filter-icon { color: var(--mf-blau); }
.lz-filter .mf-auswahl { height: 30px; border-radius: 15px; padding: 0 28px 0 12px; border: 1.5px solid #c3cfdf; background-color: #f6f9fd; }
.lz-filter .mf-suche { border-radius: 15px; height: 30px; flex: 0 1 300px; }
.lz-filter .mf-suche input { width: 100%; }
.lz-laedt { display: flex; align-items: center; gap: 12px; padding: 30px; color: #5b6878; }
.lz-gesamt { margin-top: 0; }
.lz-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 12px; }
.lz-rangliste { background: #fff; border: 1px solid #d3dce8; border-radius: 10px; padding: 10px 12px; }
.lz-rangliste > header { font-weight: 700; color: #1f2d40; margin-bottom: 6px; }
.lz-rangliste > header .text-zweitrangig { font-weight: 400; font-size: .75rem; }
.lz-rang { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(80px, 1fr) 110px 52px; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: .8rem; }
button.lz-rang { cursor: pointer; }
.lz-rang:nth-child(even) { background: #f8fafd; }
.lz-rang:hover { background: #e8f0fb; }
.lz-nr { width: 22px; height: 22px; border-radius: 50%; background: #e3eaf5; color: #2c3e57; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }
.lz-rang:nth-of-type(1) .lz-nr { background: #f5b400; color: #fff; }
.lz-rang:nth-of-type(2) .lz-nr { background: #9aa7b8; color: #fff; }
.lz-rang:nth-of-type(3) .lz-nr { background: #c27a3a; color: #fff; }
.lz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-name small { color: #6b7686; margin-left: 4px; }
.lz-name .lz-format { margin-left: 6px; font-size: .68rem; padding: 0 7px; }
.lz-balken { display: flex; height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.lz-balken .physisch { background: #3a6cc2; } .lz-balken .digital { background: #f08c1a; }
.lz-betrag { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lz-anteil-text { text-align: right; color: #6b7686; font-size: .72rem; font-variant-numeric: tabular-nums; }
.lz-verlauf-kopf { font-weight: 700; color: #1f2d40; margin-bottom: 4px; }
/* noch nicht umgesetzte Menüpunkte/Gruppen deutlich zurücknehmen */
.mf-menu-gruppe.unfertig { opacity: .38; }
.mf-menu-gruppe.unfertig:hover { opacity: .6; }
.mf-menu-eintrag.offen, .mf-menu-eintrag.offen:hover { color: #4c5b70; opacity: .65; font-style: italic; }
.pk-import-kopf { gap: 10px; }
.pk-hochladen { position: relative; overflow: hidden; cursor: pointer; }
.pk-hochladen input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.suche-dialog tr.pk-ok td { color: #1b6e3a; }
.suche-dialog tr.pk-ueber td { color: #8a95a5; }
.suche-dialog tr.pk-fehler td { color: #b3261e; }
/* Lizenzabrechnung: bisherige Abrechnungen enger und etwas kleiner */
.partner-ergebnis > .mf-tabelle { font-size: .74rem; }
.partner-ergebnis > .mf-tabelle th { padding: 2px 6px; font-size: .72rem; }
.partner-ergebnis > .mf-tabelle td { padding: 0 6px; height: 19px; line-height: 19px; }
.partner-ergebnis > header { padding-bottom: 2px; }
.lz-statistik-block > header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lz-zwei.lz-eins { grid-template-columns: 1fr; }
.lz-statistik-block .lz-dashboard { padding: 12px 0 0; }
/* Vertragspartner-Auswahl: kleinere Schrift, engere Zeilen, mehr Platz */
.partner-liste { grid-template-columns: repeat(auto-fill, minmax(calc(205px * var(--s)), 1fr)); gap: 0 8px; max-height: calc(104px * var(--s)); padding: 2px 4px; }
.partner-zeile { font-size: .76rem; padding: 0 5px; line-height: 1.55; gap: 5px; }
.partner-zeile input { width: 12px; height: 12px; }
.partner-status { font-size: .64rem; }
/* eBook als eigene Kategorie (violett) */
.lz-kachel.ebook { border-top-color: #8e5cc4; }
.lz-anteil .ebook, .lz-balken .ebook { background: #8e5cc4; }
.lz-stapel .ebook { background: linear-gradient(#a77fd6, #8e5cc4); }
.lz-legende .ebook::before { background: #8e5cc4; }
.lz-format.ebook { background: #efe6fa; color: #5b3590; }
/* Statistik-Tabellen kompakter */
.lz-jahrestabelle { font-size: .72rem; }
.lz-jahrestabelle th { padding: 2px 6px !important; font-size: .7rem; }
.lz-jahrestabelle td { padding: 0 6px !important; height: 18px; line-height: 18px; }
.lz-jahrestabelle tfoot td { height: 20px; }
.lz-formate { font-size: .7rem; gap: 4px; margin-top: 6px; }
.lz-format { padding: 0 8px; }
.lz-legende { font-size: .7rem; margin: 4px 0 6px; }
.lz-diagramm { height: 170px; }
.lz-kachel { padding: 7px 12px; }
.lz-kachel b { font-size: 1.15rem; }
.lz-kachel span { font-size: .66rem; }
.lz-kachel small { font-size: .68rem; }
.lz-statistik { padding: 10px; }
.lz-anteil { height: 18px; font-size: .68rem; margin: 8px 0 4px; }
.lz-rang { font-size: .74rem; padding: 2px 6px; }
.lz-nr { width: 18px; height: 18px; font-size: .62rem; }
/* Statistik je Vertragspartner: Balken und Werte in einer Tabelle (Werte direkt unter dem Jahr) */
.lz-raster-wrap { overflow-x: auto; margin-top: 6px; }
.lz-raster { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .68rem; font-variant-numeric: tabular-nums; }
.lz-raster col.lz-raster-label { width: 108px; }
.lz-raster col { min-width: 58px; }
.lz-raster col.lz-raster-summe { width: 78px; }
.lz-raster th { text-align: left; font-weight: 600; color: #3a4a60; padding: 1px 6px 1px 0; white-space: nowrap; }
.lz-raster td { text-align: right; padding: 1px 4px; white-space: nowrap; border-bottom: 1px solid #e6ebf2; }
.lz-raster tr.lz-raster-balken td { height: 150px; border-bottom: 1px solid #c3cfdf; padding: 0 2px; vertical-align: bottom; }
.lz-raster tr.lz-raster-balken .lz-saeulen { height: 150px; }
.lz-raster tr.lz-raster-balken .lz-stapel { width: 62%; }
.lz-raster tr.lz-raster-jahr td { text-align: center; font-weight: 700; color: #2c3e57; padding-top: 3px; }
.lz-raster td:last-child { font-weight: 700; background: #eef2f8; }
.lz-raster tr.lz-raster-summe-zeile td, .lz-raster tr.lz-raster-summe-zeile th { font-weight: 700; color: #1f2d40; }
.lz-raster tr.lz-raster-anteil td { color: #8a4b05; }
.lz-raster tbody tr:not(.lz-raster-balken):hover td { background: #e8f0fb; }
.lz-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.lz-punkt.physisch { background: #3a6cc2; } .lz-punkt.digital { background: #f08c1a; } .lz-punkt.ebook { background: #8e5cc4; } .lz-punkt.ausgezahlt { background: #2e9d5b; }
/* bereits abgerechnete Vertragspartner leicht grün */
.partner-zeile.erledigt { background: var(--mf-gruen-bg); }
.partner-zeile.erledigt:hover { background: #d5ecdc; }
.partner-zeile.erledigt.an { background: #cfe6d7; }

/* kleiner Hinweis unter einem Feld (z. B. letzter Shop-Export) */
.feld.anzeige-klein { margin-top: calc(-4px * var(--s)); min-height: 0; }
.feld.anzeige-klein > span:last-child { font-size: .66rem; color: var(--mf-text-2); line-height: 1.1; white-space: nowrap; }

/* PDF-Verweise in den bisherigen Abrechnungen */
.mf-tabelle td.pdf-spalte, .mf-tabelle th.pdf-spalte { white-space: nowrap; }
/* bisherige Abrechnungen: Zahlenspalten schmal, der Platz geht an die PDF-Spalte */
.mf-tabelle.historie th:not(.dok-spalte), .mf-tabelle.historie td:not(.dok-spalte) { white-space: nowrap; padding-right: 22px; }
.mf-tabelle.historie th.dok-spalte, .mf-tabelle.historie td.dok-spalte { white-space: nowrap; padding: 0 14px 0 0; }
.mf-tabelle.historie { width: auto; } /* kompakt – keine gestreckte letzte Spalte */
.mf-tabelle.historie .pdf-link:first-child { margin-left: 0; }
.pdf-link { display: inline-flex; align-items: center; gap: 2px; margin-left: 22px; font-size: .72rem; color: var(--mf-blau, #2f5fb3); text-decoration: none; }
.pdf-link:hover { text-decoration: underline; }
.pdf-link .mud-icon-root { font-size: .95rem; color: #b3261e; }

/* ---------- Abrechnungsübersicht (Vertragspartner × Jahre) ---------- */
.lu { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; padding: 8px 0; }
.lu-filter .lu-label { font-size: .8rem; color: var(--mf-text-2); margin-left: 6px; }
.lu-check { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; white-space: nowrap; }
.lu-legende { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--mf-text-2); }
.lu-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; border: 1px solid #b9d8bf; }
.lu-punkt.abgerechnet { background: var(--mf-gruen-bg); }
.lu-punkt.ausgezahlt { background: #9fd3a9; border-color: #6fb57c; }
.lu-punkt.mit { background: repeating-linear-gradient(45deg, #c9e8cf 0 3px, var(--mf-gruen-bg) 3px 6px); border-color: #6fb57c; }
.lu-info { font-size: .78rem; padding: 0 2px; }
.lu-wrap { flex: 1; min-height: 240px; max-height: calc(100vh - 330px); overflow: auto; border: 1px solid #d3dce8; border-radius: 8px; background: #fff; }
.lu-tabelle { border-collapse: separate; border-spacing: 0; font-size: .82rem; width: max-content; min-width: 100%; }
.lu-tabelle th, .lu-tabelle td { padding: 3px 7px; border-bottom: 1px solid #edf0f4; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.lu-tabelle thead th { position: sticky; z-index: 2; background: #f1f4f8; font-weight: 600; color: var(--mf-text-2); }
.lu-tabelle thead tr:first-child th { top: 0; }
.lu-tabelle thead tr:nth-child(2) th { top: 24px; font-weight: 500; font-size: .74rem; }
.lu-tabelle thead th.lu-jahr { text-align: center; border-left: 2px solid #d3dce8; color: var(--mf-text); }
.lu-tabelle tfoot th { position: sticky; bottom: 0; background: #f1f4f8; font-weight: 600; font-size: .76rem; z-index: 2; }
.lu-tabelle .lu-name { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 230px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; font-size: .86rem; border-right: 1px solid #d3dce8; }
.lu-tabelle thead .lu-name, .lu-tabelle tfoot .lu-name { z-index: 3; background: #f1f4f8; }
.lu-tabelle .lu-name button { all: unset; cursor: pointer; font-weight: 600; color: var(--mf-text); }
.lu-tabelle .lu-name button:hover { color: var(--mf-blau); text-decoration: underline; }
.lu-inaktiv { margin-left: 6px; font-size: .68rem; color: var(--mf-text-2); border: 1px solid #d3dce8; border-radius: 8px; padding: 0 5px; }
.lu-tabelle .jahr-start { border-left: 2px solid #d3dce8; }
.lu-tabelle td { min-width: 62px; cursor: pointer; }
.lu-tabelle td.leer { color: transparent; }
.lu-tabelle td.abgerechnet { background: var(--mf-gruen-bg); color: #2e6b3a; }
.lu-tabelle td.ausgezahlt { background: #9fd3a9; color: #164d22; font-weight: 600; }
.lu-tabelle td.mit { background: repeating-linear-gradient(45deg, #c9e8cf 0 4px, var(--mf-gruen-bg) 4px 8px); color: #2e6b3a; }
.lu-tabelle tbody tr:hover td { filter: brightness(.96); }
.lu-tabelle tbody tr:hover td.lu-name { background: #f4f7fb; filter: none; }
.lu-tabelle .lu-summe { background: #f8fafc; font-weight: 600; border-left: 2px solid #d3dce8; min-width: 90px; }
.lu-tabelle tbody td.lu-summe { cursor: default; }

/* Copyright-Link unten im Menü und Info-Dialog */
.mrr-drawer .mud-drawer-content { display: flex; flex-direction: column; }
.mrr-drawer .mf-menu { flex: 1 0 auto; }
.mf-copyright { all: unset; cursor: pointer; margin-top: auto; padding: calc(14px * var(--s)) calc(14px * var(--s)) 0; font-size: .66rem; color: #7f90a6; opacity: .8; }
.mf-copyright:hover { color: #c9d6e6; text-decoration: underline; opacity: 1; }
.pi { display: flex; flex-direction: column; gap: 14px; font-size: .9rem; }
.pi-kopf { display: flex; align-items: center; gap: 12px; }
.pi-kopf b { display: block; font-size: 1.1rem; }
.pi-kopf span:not(.pi-logo) { font-size: .8rem; color: var(--mf-text-2); }
.pi-logo { background: #f08a24; color: #fff; font-weight: 800; border-radius: 6px; padding: 6px 9px; letter-spacing: .04em; }
.pi-tabelle { border-collapse: collapse; }
.pi-tabelle th { text-align: left; font-weight: 600; padding: 2px 16px 2px 0; white-space: nowrap; color: var(--mf-text-2); }
.pi-tabelle td { padding: 2px 0; }
.pi-firma { border-top: 1px solid #e3e8ef; padding-top: 10px; }
.pi-firma p { margin: 0 0 10px; line-height: 1.45; }
.pi-copy { color: var(--mf-text-2); }
.mf-hinweis.warnung { border-left-color: #c0392b; background: #fff5f3; }

/* Abmelden und Lizenzinformation im Benutzerfenster (oben rechts) */
.online-abmelden { margin: 6px 0 0; padding: 6px 8px 0; border-top: 1px solid #e3e8ee; }
.online-abmelden button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 6px 6px; border-radius: 4px; font-size: .82rem; color: #1f2a37; }
.online-abmelden button:hover { background: #eef3fa; }
.lizenz-info { border-top: 1px solid #e3e8ee; margin-top: 6px; padding: 8px 14px 4px 40px; font-size: .66rem; line-height: 1.45; color: #5d6b7a; }
.lizenz-info .lizenz-version { margin-top: 6px; }

.log-benutzer { color: #2d58a3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Benutzereinstellungen → Bildschirm */
.einst-bildschirm .einst-zeile input { font: inherit; font-size: .85rem; padding: 3px 7px; border: 1px solid var(--mf-feldrand); border-radius: 3px; width: 220px; text-transform: uppercase; }
.einst-arbeitsplaetze .mf-tabelle td, .einst-arbeitsplaetze .mf-tabelle th { padding: 3px 8px; }
.einst-arbeitsplaetze tr.aktiv td { background: var(--mf-auswahl); }

/* Mandantenstammdaten → Pfade: lange Bezeichnungen ganz lesbar, Eingabefeld bis etwa zur Mitte */
.formular-raster.pfade { --label: 430px; }
.formular-raster.pfade > div { max-width: max(56%, 900px); }

/* Suchfenster: kleinere Schrift, Spalten-Knopf ☰ rechts in der Kopfzeile */
.suche-dialog .suche-treffer table { font-size: .78rem; }
.suche-dialog .suche-treffer tr.sz td { height: 22px; padding-top: 1px; padding-bottom: 1px; }
.suche-dialog .suche-treffer thead th { font-size: .78rem; }
.suche-dialog .suche-treffer .filterfeld input { font-size: .78rem; }
.suche-dialog .suche-kopf input, .suche-dialog .suche-kopf select { font-size: .78rem; }
.suche-treffer th.spalten-knopf-zelle { padding: 0 4px; text-align: right; vertical-align: middle; position: sticky; right: 0; background: #eef2f7; }
.spalten-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; color: var(--mf-blau); }
.spalten-knopf:hover { background: #dbe6f6; }
/* Spalten anpassen */
.spalten-kopf { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.spalten-liste { max-height: 66vh; overflow: auto; border: 1px solid var(--mf-feldrand); border-radius: 4px; }
.spalten-liste table { width: 100%; font-size: .74rem; border-collapse: collapse; }
.spalten-liste thead th { position: sticky; top: 0; background: #eef2f7; z-index: 1; }
.spalten-liste td, .spalten-liste th { padding: 0 8px; height: 22px; line-height: 1.2; }
.spalten-liste .mitte { text-align: center; }
.spalten-liste tr.aus td.spalten-name { color: var(--mf-text-2); }
.spalten-breite { width: 80px; font: inherit; font-size: .72rem; padding: 0 5px; height: 18px; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; }
.spalten-pfeil { all: unset; cursor: pointer; padding: 0 6px; color: var(--mf-blau); font-size: .8rem; }
.spalten-pfeil:disabled { color: #c3ccd6; cursor: default; }

/* Mandantenstammdaten: links Adresse/Kontakt, rechts Bankdaten/Steuern */
.mandant-zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 calc(24px * var(--s)); align-items: start; }
@media (max-width: 900px) { .mandant-zwei-spalten { grid-template-columns: 1fr; } }
a.mf-navi { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
a.mf-navi.gesperrt { opacity: .35; pointer-events: none; }
.programm-version.versionsinfo { cursor: pointer; } .programm-version.versionsinfo:hover { opacity: 1; text-decoration: underline; }

.spalten-dialog .mud-dialog-title h6 { font-size: 1rem; }
.spalten-dialog .spalten-kopf { font-size: .8rem; }
.spalten-liste tr[draggable="true"] { cursor: grab; }
.spalten-liste td.griff, .spalten-liste th.griff-spalte { width: 16px; padding: 0 2px 0 6px; color: #9aa6b4; cursor: grab; user-select: none; }
.spalten-liste tr.gezogen td { opacity: .45; }
.spalten-liste tr.ziel td { box-shadow: inset 0 2px 0 var(--mf-blau); }
.spalten-liste input[type=checkbox] { width: 13px; height: 13px; margin: 0; vertical-align: middle; }
.spalten-pfeil { font-size: .7rem !important; padding: 0 4px !important; }

/* Suchfenster: gleiche Schriftgröße wie in den Masken (.8rem, skaliert mit der Anzeigegröße) – auch Tabellen-/MudBlazor-Vorgaben überschreiben */
.suche-dialog .suche-treffer td, .suche-dialog .suche-treffer th, .suche-dialog .mud-dialog-actions, .suche-dialog .suche-merken, .suche-dialog .mud-dialog-actions .mf-knopf { font-size: .78rem !important; }

/* Datensicherung: Ergebnis der Datenbankprüfung */
.pruef-ergebnis { border: 1px solid #d3dce8; border-left: 4px solid #2e9d5b; border-radius: 6px; background: #fff; padding: 8px 12px; margin-bottom: 12px; font-size: .82rem; }
.pruef-ergebnis.fehler { border-left-color: #c0392b; background: #fffaf9; }
.pruef-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pruef-ergebnis.ok .pruef-kopf .mud-icon-root { color: #2e9d5b; }
.pruef-ergebnis.fehler .pruef-kopf .mud-icon-root { color: #c0392b; }
.pruef-text { margin: 6px 0 8px; line-height: 1.5; }
.pruef-zwischen { margin: 8px 0; padding: 8px 10px; background: #fff8e6; border: 1px solid #f0d58a; border-radius: 6px; }
.pruef-ergebnis { overflow-x: auto; }
.mf-knopf.rot { background: #c0392b; border-color: #c0392b; color: #fff; }
.mf-knopf.rot:hover { background: #a93226; }
.pruef-ergebnis td { white-space: normal; vertical-align: top; }

/* Import mit Fortschrittsansicht (Tonträger-/Onlineverkäufe) */
.import-start { display: flex; flex-direction: column; }
.import-start > .import-ablage { order: 1; }
.import-start > .import-hinweise { order: 2; }
.import-start > .import-option { order: 2; }
.import-start > .import-lauf { order: 3; }
.import-lauf { display: flex; flex-direction: column; gap: 10px; }
.import-kopf { display: flex; gap: 14px; align-items: center; }
.import-kopf > .import-info { flex: 1; min-width: 0; }
.import-kopf > .import-kreis { flex: none; width: 40px !important; height: 40px !important; }
.import-titel { font-weight: 600; font-size: .95rem; }
.import-phase { margin-top: 2px; font-size: .82rem; }
.import-zeiten { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .8rem; color: var(--mf-text2, #555); background: var(--mf-feld, #f6f7f9); padding: 5px 8px; border-radius: 4px; }
.import-dateien { font-size: .78rem; }
.import-dateien td:nth-child(2) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-dateien tr.aktiv td { background: #fff7d6; }
.import-fehlertext { color: #b3261e; white-space: normal; }
.import-dateien .link-knopf { background: none; border: 0; padding: 0; color: var(--mud-palette-primary); cursor: pointer; font: inherit; }
.import-dateiname { font-weight: 700; color: var(--mud-palette-primary); word-break: break-all; }
.import-schritte { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: .78rem; color: #9aa0a6; }
.import-schritte .pfeil { color: #c3cad4; margin: 0 2px; }
.import-schritte .fertig { color: #2e7d32; }
.import-schritte .aktiv { color: var(--mud-palette-primary); font-weight: 600; }
.import-balken { display: flex; flex-direction: column; gap: 3px; }
.import-balken-kopf, .import-balken-fuss { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.import-balken-fuss { color: var(--mf-text2, #555); font-size: .78rem; }
.import-dateien tr.ok td { background: var(--mf-gruen-bg); }
.import-dateien tr.mit-fehler td { background: #fde8e6; }
.import-dateien tr.uebersprungen td { color: #888; }
.import-hinweistext { color: #555; white-space: normal; font-size: .74rem; }

/* Ausschlussliste Online-Import */
.ausschluss-kopf { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; flex-wrap: wrap; }
.ausschluss-kopf input, .ausschluss-kopf select, .ausschluss-grund { font-size: .8rem; padding: 3px 6px; border: 1px solid var(--mf-feldrand); border-radius: 3px; }
.ausschluss-liste { max-height: 300px; overflow: auto; border: 1px solid var(--mf-feldrand); }
.ausschluss-liste.klein-liste { max-height: 220px; }
.ausschluss-liste .mf-tabelle { font-size: .78rem; }
.ausschluss-liste tr { cursor: default; }
.ausschluss-liste tr.gewaehlt td { background: #fff4d6; }
.ausschluss-liste .mono, .ausschluss-kopf .mono { font-family: ui-monospace, Consolas, monospace; }
.ausschluss-optionen { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; font-size: .82rem; }
.ausschluss-grund { width: 320px; }

/* Import: Ablagefläche statt nacktem Dateifeld */
.import-ablage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 26px 16px 22px; border: 2px dashed #b9c4d6; border-radius: 10px; background: linear-gradient(180deg, #f7f9fc, #eef3fa);
    cursor: pointer; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.import-ablage:hover, .import-ablage.ziehen { border-color: var(--mud-palette-primary); background: #e8f0fb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.import-ablage input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.import-ablage-symbol { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff;
    color: var(--mud-palette-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); margin-bottom: 4px; }
.import-ablage-symbol .mud-icon-root { font-size: 28px; }
.import-ablage-titel { font-weight: 600; font-size: .95rem; color: #1f2937; }
.import-ablage-text { font-size: .8rem; color: #5b6472; }
.import-ablage-text u { color: var(--mud-palette-primary); text-decoration: none; font-weight: 500; }
.import-ablage.ziehen .import-ablage-titel::after { content: " – loslassen zum Einlesen"; color: var(--mud-palette-primary); }
.import-hinweise { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.import-hinweise span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: #475569; background: #f1f5f9;
    border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px 10px 3px 7px; }
.import-hinweise .mud-icon-root { font-size: 15px; color: #64748b; }

/* Liste mit kleiner Schrift (z. B. Online-Verkäufe) */
.ansicht.liste-klein .liste-tabelle .mud-table-cell, .ansicht.liste-klein .liste-tabelle th { font-size: .68rem !important; padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.25; }
.ansicht.liste-klein .liste-kopf, .ansicht.liste-klein .liste-kopf input, .ansicht.liste-klein .liste-kopf .mf-knopf { font-size: .72rem; }
/* Letzte Importe (Kopfbereich Online-Verkäufe) */
.letzte-importe { margin: 6px 8px 0; border: 1px solid #c9d2df; border-radius: 6px; background: #f6f8fb; overflow: hidden; }
.letzte-importe-kopf { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: #eef2f7; border-bottom: 1px solid #dde3ec;
    font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #475569; }
.letzte-importe-kopf .klein { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: auto; color: #64748b; }
.letzte-importe-liste { max-height: calc(150px * var(--s)); overflow: auto; background: #fff; }
.letzte-importe table { width: 100%; border-collapse: collapse; font-size: .68rem; }
.letzte-importe th { position: sticky; top: 0; background: #f8fafc; color: #64748b; font-weight: 600; text-align: left; padding: 2px 8px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.letzte-importe td { padding: 2px 8px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.letzte-importe td.datei { max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.letzte-importe td.labels { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: #475569; }
.letzte-importe td.r, .letzte-importe th.r { text-align: right; }
.letzte-importe tr.fehlgeschlagen td { background: #fde8e6; }
.letzte-importe tr.mit-fehlern td.fz { color: #b3261e; font-weight: 600; }
.letzte-importe .leer { padding: 8px; font-size: .72rem; color: #64748b; }

/* Startseite: Kopfbanner (sanft) mit Suche, darunter alle Menüs in Spalten */
.startseite { max-width: calc(1400px * var(--s)); }
.start-banner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: calc(18px * var(--s)) calc(24px * var(--s)); border-radius: calc(12px * var(--s)); margin-bottom: 1rem;
    background: linear-gradient(120deg, #e6eefb 0%, #e3f0f6 55%, #e2f3ee 100%); border: 1px solid #d3e0ef; }
.start-banner h1 { color: #1e3a6e; font-weight: 600; }
.start-banner .unterzeile { color: #4b6a93; }
.start-suche { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #cfdcec; border-radius: 999px;
    padding: 6px 14px; width: min(460px, 100%); box-shadow: 0 1px 4px rgba(30, 58, 110, .08); color: #7a8ca6; }
.start-suche:focus-within { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.start-suche input { border: 0; outline: 0; flex: 1; font-size: .9rem; background: transparent; color: #1f2937; }
.start-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(200px * var(--s)), 1fr)); gap: calc(12px * var(--s)) calc(22px * var(--s)); }
.start-gruppe h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding-bottom: 4px; font-size: .86rem; font-weight: 700;
    color: #1f2937; border-bottom: 2px solid #8fb0e3; }
.start-gruppe h3 .mud-icon-root { color: #3b6fd0; }
.start-gruppe.unfertig h3 { color: #94a3b8; border-color: #dbe3ee; }
.start-gruppe.unfertig h3 .mud-icon-root { color: #b5c1d2; }
.start-eintrag { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 1px 6px; margin: 0 -6px; border-radius: 4px;
    font: inherit; font-size: .8rem; line-height: 1.3; color: #334155; cursor: pointer; }
button.start-eintrag:hover { background: #e8f0fb; color: #1e4fae; }
.start-eintrag.offen { color: #a8b3c2; cursor: default; }
.start-eintrag mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Import im Hintergrund: Dialog ausgeblendet (läuft weiter), Anzeige in der Kopfleiste */
body.import-hintergrund .mud-dialog-container:has(.import-dialog) { display: none !important; }
.hintergrund-arbeit { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 8px; margin-right: 8px; border-radius: 13px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .74rem; cursor: pointer; white-space: nowrap; }
.hintergrund-arbeit:hover { background: rgba(255, 255, 255, .22); }
.hintergrund-arbeit .balken { width: 70px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hintergrund-arbeit .balken > i { display: block; height: 100%; background: #7dd3fc; }
.hintergrund-arbeit.fertig { background: #2e7d32; border-color: #43a047; }
.hintergrund-arbeit.fehler { background: #c62828; border-color: #e53935; }
.hintergrund-arbeit .mud-progress-circular { color: #fff !important; }
.import-weitere { display: flex; align-items: center; gap: 10px; }
.import-weitere label.mf-knopf { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

/* Fenster gesperrt, solange ein Import läuft */
.import-sperre { position: absolute; inset: 0; z-index: 50; background: rgba(226, 232, 240, .78); backdrop-filter: blur(1.5px); display: grid; place-items: center; }
.import-sperre-karte { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 32px; background: #fff; border-radius: 12px;
    border: 1px solid #d3dceb; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); max-width: 520px; text-align: center; }
.import-sperre-titel { font-size: 1.05rem; font-weight: 700; color: #1e3a6e; }
.import-sperre-text { font-size: .8rem; color: #475569; }
.import-sperre-text.klein { font-size: .74rem; color: #64748b; }
.pi-team { font-size: .7rem; color: #8a94a3; margin-top: 2px; letter-spacing: .01em; }
/* Letzte Importe: laufender Import (Zeilenhöhe wie die übrigen Zeilen) – liegt über der Sperre, damit man ihn sieht */
.letzte-importe { position: relative; z-index: 60; }
.letzte-importe tr.laeuft td { background: #eaf2ff; }
.letzte-importe tr.wartet td { color: #94a3b8; }
.letzte-importe tr.abgebrochen td { color: #a16207; background: #fff7e6; }
.lauf-anzeige { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; line-height: 1; }
.lauf-dreher { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #bfd3f5; border-top-color: var(--mud-palette-primary); animation: lauf-drehen .8s linear infinite; }
.lauf-balken { width: 90px; height: 5px; border-radius: 3px; background: #d6e2f5; overflow: hidden; }
.lauf-balken > i { display: block; height: 100%; background: var(--mud-palette-primary); transition: width .4s; }
@keyframes lauf-drehen { to { transform: rotate(360deg); } }
/* kleine Liste: jede Zeile einzeilig, lange Texte mit „…“ (voller Text als Tooltip) */
.ansicht.liste-klein .liste-tabelle .mud-table-cell { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.ansicht.liste-klein .liste-tabelle th .mud-table-cell, .ansicht.liste-klein .liste-tabelle th { white-space: nowrap; }
/* Fehlerzeilen eines Imports */
.letzte-importe .fehler-link { background: none; border: 0; padding: 0; font: inherit; color: #b3261e; font-weight: 600; text-decoration: underline; cursor: pointer; }
.import-fehleransicht { position: relative; z-index: 60; margin: 6px 8px 0; border: 1px solid #e3b4ae; border-radius: 6px; background: #fff; overflow: hidden; }
.import-fehleransicht-kopf { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #fdecea; border-bottom: 1px solid #f1c9c4; font-size: .75rem; color: #7f1d1d; flex-wrap: wrap; }
.import-fehleransicht .leer { padding: 10px; font-size: .78rem; color: #64748b; }
.import-fehlertext-gross { margin: 0; padding: 8px 10px; max-height: calc(55vh); overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; line-height: 1.45; white-space: pre; color: #1f2937; background: #fbfcfe; }
.import-fehleransicht-kopf .mf-suche { background: #fff; min-width: 260px; }

/* FilterTabelle: Listen mit Filterzeile je Spalte, Sortierung, ☰ Spalten (wie das Suchfenster) – immer einzeilig */
.filtertabelle { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.filtertabelle .liste-kopf { flex-wrap: wrap; row-gap: 4px; }
/* ab 3.99.18 (Rene 25.10.2026 – Datenbrücke, schmale Spalte: Lupe stand außerhalb des Suchfelds): Suchfeld schrumpft mit, Eingabe füllt den Rahmen */
.filtertabelle .liste-kopf .mf-suche { flex: 1 1 calc(140px * var(--s)); min-width: 0; max-width: calc(260px * var(--s)); }
.filtertabelle .liste-kopf .mf-suche input { flex: 1 1 auto; width: auto; min-width: 0; }
.filtertabelle .liste-kopf .mf-suche .mud-icon-root { flex: none; }
.filtertabelle .liste-kopf .suche-merken { font-size: .72rem; color: var(--mf-text-2); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; }
.filtertabelle .mf-suche.aktiv { border-color: #d9a400; background: #fff8d6; }
.filtertabelle .mf-suche.aktiv input { background: transparent; font-weight: 600; }
.filtertabelle .ft-anzahl { white-space: nowrap; font-size: .74rem; }
.ft-bereich { flex: 1; min-height: 0; overflow: auto; position: relative; }
.ft-bereich .suche-laedt { display: flex; align-items: center; gap: 8px; padding: 14px; color: var(--mf-text-2); font-size: .8rem; }
table.ft { table-layout: fixed; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
table.ft thead { position: sticky; top: 0; z-index: 2; box-shadow: 0 2px 4px rgba(20, 40, 80, .08); }
table.ft thead th { background: linear-gradient(#f7f9fc, #e9eff7); color: var(--th-tabellenkopf-text, #2c3e57); font-weight: 600; font-size: .74rem; border-bottom: 1px solid #cfd9e6; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
table.ft thead th.rechts { text-align: right; }
table.ft thead tr:first-child th { border-right: 1px solid #e1e7f0; }
table.ft th.sortierbar { cursor: pointer; user-select: none; }
table.ft th.sortierbar:hover { background: #dde7f4; color: var(--mf-blau); }
table.ft .sortpfeil { color: #fff; background: var(--mf-blau); border-radius: 50%; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: .5rem; vertical-align: middle; margin-left: 3px; }
table.ft tr.filterzeile th { background: #eef3fa; padding: 3px 4px 4px; }
table.ft .filterfeld { position: relative; display: block; }
table.ft .filterfeld input { width: 100%; box-sizing: border-box; border: 1px solid #c9d4e2; border-radius: 10px; padding: 1px 18px 1px 7px; height: 21px; font-size: .74rem; font-weight: 400; background: #fff; }
table.ft .filterfeld input::placeholder { color: #a8b3c0; }
table.ft .filterfeld input:focus { border-color: var(--mf-blau); outline: 0; box-shadow: 0 0 0 2px rgba(47, 95, 174, .15); }
table.ft .filterfeld.aktiv input { background: #fff3b0; border-color: #d9a400; font-weight: 600; }
table.ft .filterfeld .filter-leeren { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
table.ft tr.sz { cursor: pointer; }
table.ft tr.sz td { height: 24px; padding: 0 6px; border-bottom: 1px solid var(--th-liste-linie, #edf1f6); color: var(--th-liste-text, #1f2d40); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ft tr.sz td.rechts { text-align: right; }
table.ft tr.sz:nth-child(even) td { background: var(--th-liste-zebra, #f8fafd); }
table.ft tr.sz:hover td { background: var(--th-liste-hover, #e8f0fb); }
table.ft tr.sz.aktiv td { background: var(--mf-blau) !important; color: #fff; }
table.ft tr.sz.aktiv td:first-child { box-shadow: inset 4px 0 0 #f5b400; }
table.ft .spalten-knopf-zelle { width: 34px; padding: 0 !important; text-align: center; }
.filtertabelle.klein table.ft { font-size: .68rem; }
.filtertabelle.klein table.ft tr.sz td { height: 19px; }
.filtertabelle.klein table.ft thead th { font-size: .68rem; padding: 2px 5px; }
.filtertabelle.klein table.ft .filterfeld input { height: 19px; font-size: .68rem; }
.filtertabelle.klein .liste-kopf { padding-top: 3px; padding-bottom: 3px; }
/* Import läuft: kleine Ablagefläche für weitere Dateien */
.import-ablage.import-ablage-weitere { flex-direction: row; gap: 8px; min-height: 0; padding: 9px 12px; font-size: .8rem; color: #374151; width: 100%; box-sizing: border-box; }
.import-ablage.import-ablage-weitere u { color: var(--mud-palette-primary); text-decoration: none; font-weight: 500; }
.import-ablage.import-ablage-weitere .mud-icon-root { color: var(--mud-palette-primary); }
.import-weitere:has(.import-ablage-weitere) { display: block; }
.letzte-importe td.zeitraum { color: #1e3a8a; font-weight: 600; }
table.ft td.fett { font-weight: 700; } table.ft td.negativ { color: #c62828; } table.ft tr.sz.aktiv td.negativ { color: #ffd6d6; }

/* Import-Dialog: übersichtliche Fortschrittsanzeige (v2.60) */
.imp-karte { display: flex; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #f4f7fc, #eaf0f9); border: 1px solid #d8e1ee; }
.imp-karte.fertig { background: linear-gradient(135deg, #f1faf2, #e3f4e5); border-color: #c6e5ca; }
.imp-karte.fehler { background: linear-gradient(135deg, #fff8ec, #fdeedd); border-color: #f1d3a6; }
.imp-ring { --p: 0; --farbe: var(--mud-palette-primary); flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--farbe) calc(var(--p) * 1%), #dbe3ef 0); transition: background .4s; }
.imp-karte.fertig .imp-ring { --farbe: #2e7d32; }
.imp-karte.fehler .imp-ring { --farbe: #e08a00; }
.imp-ring-innen { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 1px 3px rgba(20, 40, 80, .08); }
.imp-ring-innen b { font-size: 1.15rem; line-height: 1.1; color: #1e3a6e; }
.imp-ring-innen small { font-size: .62rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.imp-ring-innen .mud-icon-root { font-size: 34px; color: var(--farbe); }
.imp-karte.fertig .imp-ring-innen .mud-icon-root { color: #2e7d32; }
.imp-karte.fehler .imp-ring-innen .mud-icon-root { color: #e08a00; }
.imp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.imp-ueber { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 600; }
.imp-name { font-size: 1.05rem; font-weight: 700; color: #1e3a6e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-meta { font-size: .78rem; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.imp-chips span { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: #475569; background: rgba(255, 255, 255, .8); border: 1px solid #dbe3ef; border-radius: 999px; padding: 2px 9px; }
.imp-chips b { color: #1f2937; }
.imp-chips .mud-icon-root { font-size: 14px; color: #7a8aa3; }
.imp-stepper { list-style: none; margin: 4px 0 0; padding: 0; display: flex; }
.imp-stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.imp-stepper li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #dbe3ef; z-index: 0; }
.imp-stepper li:first-child::before { display: none; }
.imp-stepper li.fertig::before, .imp-stepper li.aktiv::before { background: #2e7d32; }
.imp-punkt { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
    background: #fff; border: 2px solid #cfd8e5; color: #94a3b8; }
.imp-stepper li.fertig .imp-punkt { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.imp-stepper li.aktiv .imp-punkt { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); animation: imp-puls 1.6s ease-in-out infinite; }
@keyframes imp-puls { 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, .08); } }
.imp-schritt-text { font-size: .7rem; color: #94a3b8; line-height: 1.2; padding: 0 2px; }
.imp-stepper li.fertig .imp-schritt-text { color: #2e7d32; }
.imp-stepper li.aktiv .imp-schritt-text { color: var(--mud-palette-primary); font-weight: 700; }
.imp-schritt { border: 1px solid #dbe3ef; border-radius: 10px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 7px; }
.imp-schritt-kopf { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #334155; }
.imp-schritt-titel { flex: 1; min-width: 0; }
.imp-schritt-titel b { color: #1e3a6e; }
.imp-prozent { font-size: 1.05rem; font-weight: 700; color: var(--mud-palette-primary); }
.imp-dreher { width: 18px !important; height: 18px !important; }
.imp-balken { height: 10px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
.imp-balken i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, var(--mud-palette-primary)); transition: width .5s ease; }
.imp-balken.unbestimmt i { background: repeating-linear-gradient(-45deg, #3b82f6 0 12px, #6aa0f8 12px 24px); background-size: 34px 34px; animation: imp-streifen 1s linear infinite; opacity: .85; }
@keyframes imp-streifen { to { background-position: 34px 0; } }
.imp-detail { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #1f2937; font-variant-numeric: tabular-nums; }
.imp-rest { display: inline-flex; align-items: center; gap: 4px; color: #475569; white-space: nowrap; }
.imp-rest .mud-icon-root { font-size: 15px; }
.import-dateien { border: 1px solid #dbe3ef; border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.import-dateien thead th { background: #f4f7fc; font-size: .72rem; color: #475569; }
@media (max-width: 700px) { .imp-schritt-text { display: none; } .imp-ring { width: 64px; height: 64px; } .imp-ring-innen { width: 50px; height: 50px; } }
.ausschluss-dialog tr.bereits td { color: #64748b; background: #f1f5f9; } .ausschluss-dialog .suche-laedt { display: flex; gap: 8px; align-items: center; padding: 12px; font-size: .82rem; }

/* Rechte-Matrix (Benutzerverwaltung) */
.rm { display: flex; flex-direction: column; gap: 8px; }
.rm-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .78rem; }
.rm-leiste .suche-merken { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #475569; }
.rm-legende { display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-size: .74rem; }
.rm-legende .rm-z { width: 20px; height: 20px; margin-left: 6px; cursor: default; }
.rm-bereich { overflow: auto; max-height: calc(100vh - 260px); border: 1px solid #d8e1ee; border-radius: 10px; background: #fff; }
.rm-bereich.klein { max-height: 62vh; }
.rm-tabelle { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
.rm-tabelle thead th { position: sticky; top: 0; z-index: 3; background: linear-gradient(#f7f9fc, #e9eff7); border-bottom: 1px solid #cfd9e6; padding: 6px 6px; font-weight: 600; color: #2c3e57; }
.rm-tabelle .rm-erste { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 300px; max-width: 360px; text-align: left; border-right: 1px solid #e1e7f0; padding: 3px 8px; }
.rm-tabelle thead .rm-erste { z-index: 4; background: #eef3fa; }
.rm-benutzer { min-width: 86px; text-align: center; vertical-align: top; position: relative; }
.rm-benutzer.inaktiv .rm-name { color: #94a3b8; text-decoration: line-through; }
.rm-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; margin: 0 auto; }
.rm-rolle { font-size: .64rem; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.rm-menue { position: absolute; top: 0; right: 0; }
.rm-menue .mud-icon-button { padding: 2px; }
.rm-vorgabe { background: #f5f8ff !important; border-left: 1px solid #dbe5f5; border-right: 2px solid #c9d7ee; }
thead .rm-vorgabe { background: linear-gradient(#eaf1ff, #dce8fb) !important; }
.rm-tabelle tbody td { border-bottom: 1px solid #f0f3f8; }
.rm-tabelle tr.rm-gruppe td { background: #eef3fa; font-weight: 700; color: #1e3a6e; padding: 5px 8px; border-top: 1px solid #d8e1ee; }
.rm-tabelle tr.rm-gruppe.klickbar { cursor: pointer; }
.rm-tabelle tr.rm-gruppe .mud-icon-root { vertical-align: middle; }
.rm-tabelle tr.rm-modul td { border-top: 1px solid #e3e9f2; }
.rm-tabelle tr:hover td { background: #f6f9fe; }
.rm-tabelle tr:hover td.rm-vorgabe { background: #eaf1ff !important; }
.rm-recht { white-space: nowrap; }
.rm-recht b { color: #1f2d40; margin-right: 6px; }
.rm-unter .rm-recht { padding-left: 22px !important; }
.rm-sub { color: #64748b; font-size: .74rem; }
.rm-hinweis { font-weight: 400; color: #64748b; font-size: .72rem; margin-left: 6px; }
.rm-spalte { font-family: ui-monospace, Consolas, monospace; font-size: .66rem; color: #94a3b8; margin-right: 6px; }
.rm-felder { all: unset; cursor: pointer; font-size: .68rem; color: var(--mud-palette-primary); border: 1px solid #c9d7ee; border-radius: 999px; padding: 0 7px; margin-right: 6px; background: #f5f8ff; }
.rm-felder:hover { background: #e3edfd; }
.rm-zeile-knoepfe { display: none; float: right; gap: 2px; }
.rm-recht:hover .rm-zeile-knoepfe, tr:hover .rm-zeile-knoepfe { display: inline-flex; }
.rm-zeile-knoepfe button { all: unset; cursor: pointer; width: 18px; height: 18px; display: grid; place-items: center; font-size: .7rem; border-radius: 4px; color: #475569; background: #eef3fa; }
.rm-zeile-knoepfe button:hover { background: #dbe6f6; color: var(--mud-palette-primary); }
.rm-zelle { text-align: center; padding: 2px 4px; }
.rm-z { all: unset; box-sizing: border-box; cursor: pointer; width: 26px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; font-weight: 700; font-size: .78rem; }
.rm-z:disabled { cursor: not-allowed; opacity: .55; }
.rm-z.ja { color: #7cb586; }
.rm-z.nein { color: #e3a3a3; }
.rm-z.ja.eigen { background: #2e7d32; color: #fff; }
.rm-z.nein.eigen { background: #c62828; color: #fff; }
.rm-z.ja.vorgabe { background: #dcefdc; color: #1b5e20; }
.rm-z.nein.vorgabe { background: #f8dcdc; color: #b71c1c; }
.rm-z.leer { color: #b6c2d3; }
.rm-z.gesperrt { opacity: .45; }
.rm-z.voll { color: #d4a017; cursor: default; }
/* ab 3.71: Gruppenspalten der Rechte-Matrix (Farbe der Gruppe als Kopfleiste) */
.rm-gruppenspalte { --gf: #0f766e; background: color-mix(in srgb, var(--gf) 5%, #fff) !important; }
thead .rm-gruppenspalte { background: color-mix(in srgb, var(--gf) 12%, #fff) !important; border-top: 4px solid var(--gf); }
thead .rm-gruppenspalte { min-width: 122px; }
thead .rm-gruppenspalte .rm-name { color: var(--gf); white-space: normal; max-width: none; font-size: .72rem; line-height: 1.15; }
.rm-tabelle tr:hover td.rm-gruppenspalte { background: color-mix(in srgb, var(--gf) 11%, #fff) !important; }
.rm-gruppenspalte + .rm-benutzer:not(.rm-gruppenspalte), .rm-gruppenspalte + .rm-zelle:not(.rm-gruppenspalte) { border-left: 2px solid #c9d7ee; }
.rm-auswahl { font: inherit; font-size: .72rem; padding: 2px 4px; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; max-width: 120px; }
.gr-chip { --gf: #64748b; display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--gf); background: color-mix(in srgb, var(--gf) 12%, #fff); border: 1px solid color-mix(in srgb, var(--gf) 35%, #fff); white-space: nowrap; }
.gr-tabelle td { vertical-align: middle; }
.gr-rang { white-space: nowrap; }
.gr-rang b { display: inline-block; width: 18px; }
.gr-pfeil { all: unset; cursor: pointer; padding: 1px 4px; border-radius: 5px; color: #64748b; font-size: .7rem; }
.gr-pfeil:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }
.gr-pfeil:disabled { opacity: .3; cursor: default; }
.gr-feld { font: inherit; width: 100%; box-sizing: border-box; padding: 4px 8px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; }
.gr-feld:disabled { background: #f4f6f9; color: #64748b; }
.gr-farbwahl { width: 34px; height: 26px; padding: 0; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; cursor: pointer; }
.gr-farbe { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.rm-z:not(:disabled):not(.voll):hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.benutzer-reiter .mud-tabs-toolbar { background: transparent; }
.kein-zugriff { margin: 40px auto; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; color: #475569; text-align: center; }
.kein-zugriff .mud-icon-root { font-size: 36px; color: #c62828; }
.feld-ausgeblendet { min-height: 0; }
/* Programm aus Sicht von … (Rechte testen) */
body.ansicht-als::after { content: ""; position: fixed; inset: 0; border: 4px solid #f59e0b; pointer-events: none; z-index: 20000; }
/* ab 3.99.30 (Rene 27.10.2026): dezenter – Kopfleiste bleibt im normalen Farbschema (nur ein feiner oranger Strich), Hinweis hell ohne Streifen; der orange Rahmen bleibt */
body.ansicht-als .mud-appbar { box-shadow: inset 0 -3px 0 #f59e0b !important; }
.ansicht-als-leiste { position: sticky; top: 0; z-index: 1300; display: flex; align-items: center; gap: 10px; padding: 5px 14px; background: #fffbeb; color: #78350f; font-size: .8rem; border-bottom: 1px solid #fcd34d; }
.ansicht-als-leiste span { flex: 1; }
.ansicht-als-leiste button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #92400e; border: 1px solid #f59e0b; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .76rem; }
.ansicht-als-leiste button:hover { background: #fef3c7; }
/* FilterTabelle: Werteauswahl wie in Excel */
table.ft .ft-filter-zeile { display: flex; align-items: center; gap: 2px; }
table.ft .ft-filter-zeile .filterfeld { flex: 1; min-width: 0; }
.ft-wahl-anker { position: relative; flex: none; display: inline-flex; }
.ft-wahl-knopf { all: unset; cursor: pointer; width: 16px; height: 19px; display: grid; place-items: center; font-size: .7rem; color: #64748b; border-radius: 4px; }
.ft-wahl-knopf:hover { background: #dbe6f6; color: var(--mf-blau); }
.ft-wahl-knopf.aktiv { background: #d9a400; color: #fff; }
.ft-wahl.mud-popover { border-radius: 8px; box-shadow: 0 8px 28px rgba(15, 30, 60, .22); }
.ft-wahl-inhalt { width: 280px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; text-transform: none; font-weight: 400; color: #1f2937; }
.ft-wahl-titel { font-weight: 700; color: #1e3a6e; }
.ft-wahl-inhalt .mf-suche input { width: 100%; }
.ft-wahl-liste { max-height: 300px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 0; }
.ft-wahl-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.ft-wahl-zeile:hover { background: #f1f6fd; }
.ft-wahl-zeile span { margin-left: auto; color: #94a3b8; font-size: .7rem; }
.ft-wahl-zeile.alle { font-weight: 600; }
.ft-wahl-fuss { display: flex; gap: 6px; align-items: center; }
/* Formular: Leiste und Kopfbereich bleiben oben stehen; „Letzte Importe“ zeigt mindestens 5 Zeilen, sonst Scrollbalken */
.formular-oben { position: sticky; top: 0; z-index: 70; background: var(--mf-leiste, #e9eef5); }
.formular-oben.mit-kopf { padding-bottom: 6px; box-shadow: 0 3px 6px -4px rgba(20, 40, 80, .25); }
.formular-oben .letzte-importe-liste { min-height: calc(112px * var(--s)); max-height: calc(150px * var(--s)); }
.ansicht-formular:has(.formular-oben.mit-kopf) { min-height: calc(205px * var(--s)); }
/* Fehlerzeilen als Tabelle (änderbar) */
.fehler-tabelle { display: flex; flex-direction: column; min-height: 0; height: 100%; margin: 0; border-radius: 0; border: 0; }
.fehler-tabelle .leer { display: flex; gap: 8px; align-items: center; }
.fehler-raster { flex: 1; min-height: 200px; }
.fehler-raster table.ft tr.sz td { padding: 0 3px; cursor: default; }
.fehler-raster td.grund { color: #b71c1c; font-weight: 600; font-size: .72rem; }
.fehler-raster td.zelle input { width: 100%; box-sizing: border-box; border: 1px solid transparent; background: transparent; font: inherit; font-size: .74rem; padding: 1px 4px; border-radius: 3px; color: #1f2937; }
.fehler-raster td.zelle input:hover { border-color: #c9d4e2; background: #fff; }
.fehler-raster td.zelle input:focus { border-color: var(--mf-blau); background: #fff; outline: 0; box-shadow: 0 0 0 2px rgba(47, 95, 174, .15); }
.fehler-raster td.zelle.betroffen input { border-color: #e57373; background: #fff5f5; }
.fehler-raster td.zelle.geaendert input { background: #fff3b0; border-color: #d9a400; font-weight: 600; }
.fehler-raster tr.sz.gewaehlt td { background: #eef5ff !important; }
.fehler-raster tr.sz:hover td { background: #f6f9fe; }
.fehler-fuss { padding: 4px 10px 6px; border-top: 1px solid #f1c9c4; background: #fffafa; }
.ft-umschalter { display: inline-flex; border: 1px solid #e3b4ae; border-radius: 999px; overflow: hidden; }
.ft-umschalter button { all: unset; cursor: pointer; padding: 1px 10px; font-size: .72rem; color: #7f1d1d; }
.ft-umschalter button.an { background: #c62828; color: #fff; }
.ansicht-liste > .fehler-tabelle { flex: 1; }
.fehler-laden { flex-wrap: wrap; } .fehler-laden label.mf-knopf { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.letzte-importe .import-weg { all: unset; cursor: pointer; color: #b0b8c4; font-size: .7rem; padding: 0 4px; border-radius: 3px; }
.letzte-importe tr:hover .import-weg { color: #c62828; }
.letzte-importe .import-weg:hover { background: #fdecea; }
.letzte-importe .loeschen-spalte { width: 18px; padding-left: 2px; padding-right: 4px; }
.letzte-importe .lauf-klein { width: 12px !important; height: 12px !important; }
/* Sperre bei laufendem Import über allem (Leiste und „Letzte Importe“ sind sticky mit z-index 60/70);
   ohne Weichzeichner, damit „Letzte Importe“ mit dem laufenden Import lesbar bleibt; Kärtchen unterhalb davon */
.import-sperre { z-index: 200 !important; backdrop-filter: none !important; background: rgba(226, 232, 240, .45) !important; place-items: start center !important; padding-top: calc(250px * var(--s)); box-sizing: border-box; }
/* „Letzte Importe“: Griff zum Höherziehen (mindestens 5 Zeilen) */
.formular-oben .letzte-importe-liste { min-height: calc(118px * var(--s)); }
.letzte-importe-griff { height: 9px; cursor: ns-resize; display: grid; place-items: center; background: #eef2f7; border-top: 1px solid #dde3ec; touch-action: none; }
.letzte-importe-griff span { width: 46px; height: 3px; border-radius: 3px; background: #b8c3d3; }
.letzte-importe-griff:hover span, .letzte-importe-griff.zieht span { background: var(--mf-blau); }
/* Benutzermenü oben rechts */
.bm-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; min-width: 250px; }
.bm-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #1e3a8a); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.bm-avatar.klein { width: 24px; height: 24px; font-size: .62rem; background: linear-gradient(135deg, #94a3b8, #475569); margin-right: 8px; }
.bm-name { font-weight: 700; font-size: .9rem; color: #1f2937; }
.bm-rolle { font-size: .72rem; color: #64748b; }
.bm-abschnitt { display: flex; align-items: center; gap: 5px; padding: 8px 14px 4px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; border-top: 1px solid #edf1f6; }
.bm-groessen { display: flex; gap: 4px; padding: 2px 14px 0; }
.bm-groessen button { all: unset; cursor: pointer; flex: 1; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #dbe3ef; color: #475569; font-weight: 700; background: #f8fafc; }
.bm-groessen button:hover { border-color: var(--mf-blau); color: var(--mf-blau); }
.bm-groessen button.an { background: var(--mf-blau); border-color: var(--mf-blau); color: #fff; }
.bm-groesse-text { padding: 3px 14px 6px; font-size: .7rem; color: #64748b; }
.bm-person .mud-menu-item-text { display: flex; align-items: center; }
.bm-person.an { background: #eef5ff; }
.bm-beenden { color: #b45309; }
.bm-abmelden { display: inline-flex !important; align-items: center; gap: 8px; color: #b71c1c !important; }
/* Ausschlussliste – Karten */
.ausschluss-dialog .az-karte { border: 1px solid #dbe3ef; border-radius: 12px; padding: 10px 12px 12px; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 80, .05); margin-bottom: 12px; }
.ausschluss-dialog .az-titel { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ausschluss-dialog .az-titel b { display: block; font-size: .95rem; color: #1e3a6e; }
.ausschluss-dialog .az-titel span:not(.az-symbol):not(.az-chip) { font-size: .74rem; color: #64748b; }
.ausschluss-dialog .az-symbol { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e8f0fb; color: var(--mf-blau); flex: none; }
.ausschluss-dialog .az-symbol.fehler { background: #fdecea; color: #c62828; }
.ausschluss-dialog .az-chip { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mf-gruen-bg); color: #2e7d32; white-space: nowrap; }
.ausschluss-dialog .az-chip.blau { background: #e8f0fb; color: var(--mf-blau); }
.ausschluss-dialog .ausschluss-liste { border: 1px solid #e2e8f0; border-radius: 8px; }
.ausschluss-dialog .ausschluss-liste thead th { position: sticky; top: 0; background: linear-gradient(#f7f9fc, #e9eff7); color: #2c3e57; font-size: .74rem; z-index: 1; }
.ausschluss-dialog .ausschluss-liste tbody tr:nth-child(even) td { background: #fafcff; }
.ausschluss-dialog .ausschluss-liste tbody tr:hover td { background: #eef5ff; }
.ausschluss-dialog .ausschluss-liste tr.bereits td { background: #f3faf3 !important; color: #475569; }
.ausschluss-dialog .az-art { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #eef2f7; color: #475569; letter-spacing: .03em; }
.ausschluss-dialog .az-aus { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #2e7d32; color: #fff; }
.ausschluss-dialog .ausschluss-optionen { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.ausschluss-dialog .az-neu { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; }
.ausschluss-dialog .az-neu input, .ausschluss-dialog .az-neu select { border-radius: 6px; }
.ausschluss-dialog .az-weg { all: unset; cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #94a3b8; }
.ausschluss-dialog .az-weg:hover { background: #fdecea; color: #c62828; }
.ausschluss-dialog .mandant-abschnitt { display: none; }
/* Arbeitsfläche und Fensterinhalt nie per Programm/Fokus verschieben lassen (overflow: hidden ist trotzdem scrollbar –
   z. B. wenn der Browser ein fokussiertes Feld sichtbar machen will; dann verschwanden Fenster halb hinter dem Menü) */
.arbeitsplatz { overflow: clip !important; }
.fenster-inhalt { overflow: clip !important; }
.html-link { font-size: .66rem; font-weight: 700; color: #2e7d32; margin: 0 10px 0 2px; padding: 0 5px; border: 1px solid var(--mf-gruen-rand); border-radius: 4px; text-decoration: none; vertical-align: 1px; }
.html-link:hover { background: var(--mf-gruen-bg); }

/* ---------- Letzte Importe: fertig ohne Fehler grün, Status-Knopf (Grund), Wiederholen (2.66) ---------- */
.letzte-importe tr.fertig-ok td { background: #eef8ef; }
.letzte-importe tr.fertig-ok:hover td { background: #e2f3e4; }
.letzte-importe .import-status { all: unset; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; font-weight: 600; }
.letzte-importe .import-status.abgebrochen { color: #a16207; }
.letzte-importe .import-status.fehlgeschlagen { color: #b42318; }
.letzte-importe .import-status:hover { text-decoration-style: solid; }
.letzte-importe .import-wiederholen { all: unset; cursor: pointer; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-weight: 700;
    color: #fff; background: #2f6fbf; font-size: .72rem; line-height: 1.35; }
.letzte-importe .import-wiederholen:hover { background: #245a9e; }
.ig-dialog .ig-kopf { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: #f4f7fb; border: 1px solid #e0e7f0; font-size: .85rem; }
.ig-dialog .ig-etikett { display: inline-block; width: 78px; color: #6b7a90; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ig-dialog .ig-grund, .ig-dialog .ig-ablage { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 12px; border-radius: 8px; font-size: .85rem; }
.ig-dialog .ig-grund { background: #fff7e6; border: 1px solid #f3d9a4; color: #7a4b00; }
.ig-dialog .ig-ablage { background: #eaf2fc; border: 1px solid #c8daf3; color: #1f4f8a; }
.ig-dialog .ig-titel { margin-top: 14px; margin-bottom: 4px; font-weight: 600; font-size: .85rem; }
.ig-dialog .ig-leer { color: #6b7a90; font-size: .85rem; padding: 6px 0; }
.ig-dialog .ig-log { max-height: 320px; overflow: auto; margin: 0; padding: 10px; border-radius: 6px; background: #1e2430; color: #e6e9ef;
    font-size: .72rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }

/* ---------- Länder für Online-Verkäufe zuordnen (2.66) ---------- */
.lz-dialog .lz-hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #eef4fc; border: 1px solid #cfdcf0; color: #1f3a62; font-size: .82rem; line-height: 1.45; }
.lz-dialog .lz-laedt { display: flex; gap: 10px; align-items: center; padding: 24px 6px; color: #64748b; font-size: .85rem; }
.lz-dialog .lz-leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.lz-dialog .lz-chip { padding: 2px 10px; border-radius: 12px; background: #eef1f5; color: #475569; font-size: .75rem; }
.lz-dialog .lz-chip.ok { background: var(--mf-gruen-bg); color: var(--mf-gruen-text); }
.lz-dialog .lz-chip.vorschlag { background: #e8f0fd; color: #1f56a8; }
.lz-dialog .lz-chip.offen { background: #fff4e0; color: #8a5300; }
.lz-dialog .lz-tabelle-rahmen { max-height: 56vh; overflow: auto; border: 1px solid #dde4ee; border-radius: 10px; }
.lz-dialog .lz-tabelle { width: 100%; border-collapse: collapse; font-size: .8rem; }
.lz-dialog .lz-tabelle th { position: sticky; top: 0; z-index: 1; background: #f4f7fb; text-align: left; font-weight: 600; color: #475569; padding: 6px 10px; border-bottom: 1px solid #dde4ee; }
.lz-dialog .lz-tabelle td { padding: 4px 10px; border-bottom: 1px solid #eef2f7; }
.lz-dialog .lz-tabelle .r { text-align: right; font-variant-numeric: tabular-nums; }
.lz-dialog .lz-tabelle tr.offen td { background: #fffaf0; }
.lz-dialog .lz-tabelle tr.geaendert td { background: #f0f6ff; }
.lz-dialog .lz-jetzt { color: #64748b; white-space: nowrap; }
.lz-dialog .lz-auswahl { width: 100%; min-width: 260px; padding: 3px 6px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font: inherit; }
.lz-dialog .lz-marke { padding: 1px 8px; border-radius: 10px; font-size: .7rem; white-space: nowrap; }
.lz-dialog .lz-marke.ok { color: var(--mf-gruen-text); }
.lz-dialog .lz-marke.vorschlag { background: #e8f0fd; color: #1f56a8; }
.lz-dialog .lz-marke.neu { background: #fff4e0; color: #8a5300; }
.lz-dialog .lz-fortschritt { display: grid; gap: 4px; margin-top: 10px; font-size: .8rem; color: #475569; }

/* ---------- Mandantenstammdaten: Logo (2.66) ---------- */
.logo-feld { display: flex; gap: 12px; align-items: flex-start; }
.logo-feld .logo-vorschau { width: 240px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; padding: 8px;
    background: #fff; border: 1px dashed var(--mf-feldrand); border-radius: 6px; color: var(--mf-text-2); font-size: .8rem; }
.logo-feld .logo-vorschau img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-feld .logo-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.logo-feld .logo-knoepfe label.mf-knopf { cursor: pointer; }
.logo-feld .logo-knoepfe label.mf-knopf.gesperrt { opacity: .5; pointer-events: none; }
.logo-feld .logo-hinweis { flex-basis: 100%; font-size: .74rem; color: var(--mf-text-2); }

/* ---------- Lizenzabrechnung: Dokument-Knöpfe [PDF] [HTML] (2.66) ---------- */
.dok { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.dok .dok-name { font-size: .74rem; font-weight: 600; color: var(--mf-text); margin-right: 2px; }
.dok a { display: inline-flex; align-items: center; gap: 2px; height: 17px; padding: 0 6px; border-radius: 4px; font-size: .64rem; font-weight: 700;
    letter-spacing: .02em; text-decoration: none; border: 1px solid; line-height: 1; transition: background .12s, color .12s; }
.dok a .mud-icon-root { font-size: .8rem; }
.dok a.dok-pdf { color: #b3261e; border-color: #efc4c0; background: #fdf2f1; }
.dok a.dok-pdf:hover { background: #b3261e; color: #fff; border-color: #b3261e; }
.dok a.dok-html { color: var(--mf-blau-dunkel); border-color: #c4d4ee; background: #f1f5fc; }
.dok a.dok-html:hover { background: var(--mf-blau); color: #fff; border-color: var(--mf-blau); }
.pdf-knoepfe .dok { margin-right: 10px; padding: 1px 4px 1px 8px; border: 1px solid var(--mf-linie); border-radius: 6px; background: #fff; }
/* Lizenzabrechnung: gewählte Vertragspartner links unter dem Zeitraum */
.gewaehlt-kopf { margin-top: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mf-text-2); }
.gewaehlt-liste { display: flex; flex-wrap: wrap; gap: 3px 4px; margin-top: 3px; max-height: calc(48px * var(--s)); overflow: auto; }
.gewaehlt-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 220px; padding: 0 2px 0 7px; height: 19px; border-radius: 10px;
    background: var(--mf-auswahl); border: 1px solid #b9cbe6; color: #1e3a6e; font-size: .72rem; }
.gewaehlt-chip.erledigt { background: var(--mf-gruen-bg); border-color: var(--mf-gruen-rand); color: var(--mf-gruen-text); }
.gewaehlt-chip .gc-ok { font-size: .7rem; }
.gewaehlt-chip .gc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gewaehlt-chip button { all: unset; cursor: pointer; width: 15px; height: 15px; border-radius: 50%; text-align: center; line-height: 15px; font-size: .6rem; color: #5d6b7a; }
.gewaehlt-chip button:hover { background: rgba(0,0,0,.1); color: #b3261e; }
/* Letzte Importe: Korrektur-Importe als Unterzeilen des Hauptimports (2.67) */
.letzte-importe tr.unterzeile td { background: #f6f9fd; font-size: .95em; }
.letzte-importe tr.unterzeile.fertig-ok td { background: #f3faf4; }
.letzte-importe tr.unterzeile td:first-child { border-left: 3px solid #b9cbe6; }
.letzte-importe .unter-pfeil { color: #8a9bb3; margin: 0 4px 0 6px; }
.letzte-importe .korrektur-marke { display: inline-block; padding: 0 6px; margin-right: 6px; border-radius: 8px; background: #e8f0fd; color: #1f56a8; font-size: .68rem; font-weight: 600; }
.letzte-importe .aufklappen { all: unset; cursor: pointer; width: 14px; text-align: center; color: #3a6cc2; margin-right: 3px; }
.letzte-importe .korrektur-zahl { all: unset; cursor: pointer; margin-left: 8px; padding: 0 7px; border-radius: 8px; background: #e8f0fd; color: #1f56a8; font-size: .68rem; font-weight: 600; }
.letzte-importe .korrektur-zahl:hover { background: #d4e3fb; }
/* Datensicherung: Fortschritt und Erfolg (2.68) */
.sich-karte { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid #c8daf3; background: #f4f8fe; max-width: 760px; }
.sich-karte .sich-kopf { display: flex; gap: 12px; align-items: center; }
.sich-karte .sich-prozent { margin-left: auto; font-size: 1.4rem; font-weight: 700; color: var(--mf-blau-dunkel); font-variant-numeric: tabular-nums; }
.sich-karte .sich-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: #33445a; }
.sich-karte.ok { display: flex; align-items: center; gap: 10px; background: var(--mf-gruen-bg); border-color: var(--mf-gruen-rand); color: var(--mf-gruen-text); max-width: none; }
.sich-karte.ok .mud-icon-root { color: #2e7d32; }
.sicherung-tabelle tr.neu-gesichert td { background: var(--mf-gruen-bg); }
/* Lizenzabrechnung: Vorschau-Popup (2.68) */
.av-dialog { height: 92vh; display: flex; flex-direction: column; }
.av-dialog .av-inhalt { flex: 1; min-height: 0; padding: 0 12px !important; display: flex; }
.av-rahmen { flex: 1; display: grid; grid-template-columns: 250px 1fr; gap: 10px; min-height: 0; }
.av-partner { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--mf-linie); border-radius: 8px; background: #f7f9fc; }
.av-partner .av-titel { padding: 8px 10px 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mf-text-2); }
.av-partner .av-suche { margin: 0 8px 6px; }
.av-partner .av-liste { overflow: auto; flex: 1; padding: 0 6px 6px; }
.av-p { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 6px; align-items: center; width: 100%; padding: 5px 8px; border-radius: 6px; font-size: .8rem; }
.av-p:hover { background: #e9eff8; }
.av-p.an { background: var(--mf-blau); color: #fff; }
.av-p .av-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-p .av-betrag { font-variant-numeric: tabular-nums; font-size: .74rem; opacity: .85; }
.av-p .av-gs { font-size: .6rem; font-weight: 700; padding: 0 4px; border-radius: 4px; background: var(--mf-gruen-bg); color: var(--mf-gruen-text); }
.av-p.an .av-gs { background: rgba(255,255,255,.25); color: #fff; }
.av-ansicht { display: flex; flex-direction: column; min-height: 0; }
.av-leiste { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.av-reiter { display: flex; gap: 2px; background: #e9eff6; padding: 3px; border-radius: 8px; }
.av-reiter .av-r { all: unset; cursor: pointer; padding: 4px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: #33445a; }
.av-reiter .av-r.an { background: #fff; color: var(--mf-blau-dunkel); box-shadow: 0 1px 3px rgba(20,40,80,.15); }
.av-reiter .av-r:disabled { opacity: .4; cursor: default; }
.av-format { display: flex; border: 1px solid var(--mf-feldrand); border-radius: 6px; overflow: hidden; margin-left: auto; }
.av-format button { all: unset; cursor: pointer; padding: 3px 12px; font-size: .74rem; font-weight: 700; color: #33445a; background: #fff; }
.av-format button.an { background: var(--mf-blau); color: #fff; }
.av-frame { flex: 1; width: 100%; border: 1px solid var(--mf-linie); border-radius: 8px; background: #e8eef3; }
.av-leer { padding: 30px; color: var(--mf-text-2); }
/* Lizenzabrechnung 2.68: ruhigere Dokument-Symbole (nur Symbol, Farbe beim Darüberfahren) */
.dok { gap: 1px; }
.dok a { height: 22px; width: 24px; padding: 0; justify-content: center; border: 1px solid transparent !important; background: transparent !important; border-radius: 5px; color: #8796a8 !important; }
.dok a .mud-icon-root { font-size: 1.05rem; }
.dok a.dok-pdf:hover { color: #b3261e !important; background: #fdecea !important; border-color: #f2c6c1; }
.dok a.dok-html:hover { color: var(--mf-blau-dunkel) !important; background: #e8f0fd !important; border-color: #c4d4ee; }
.mf-tabelle.historie tr:hover .dok a.dok-pdf { color: #c0392b !important; }
.mf-tabelle.historie tr:hover .dok a.dok-html { color: var(--mf-blau) !important; }
.mf-tabelle.historie th.dok-spalte, .mf-tabelle.historie td.dok-spalte { text-align: center; padding: 0 10px; }
.pdf-knoepfe .dok { padding: 1px 3px 1px 8px; }
.pdf-knoepfe .dok a { color: #5d6b7a !important; }
/* Probelauf / gebuchter Lauf deutlich absetzen */
.lauf-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; padding: 8px 12px !important; border-radius: 8px; font-size: .9rem; }
.lauf-kopf.probe { background: #fff3e0; border: 1px solid #f3c98b; color: #6b3e00; }
.lauf-kopf.gebucht { background: var(--mf-gruen-bg); border: 1px solid #a8d5b1; color: var(--mf-gruen-text); }
.lauf-kopf b { font-size: 1rem; }
.partner-ergebnis.im-lauf { border-width: 1px 1px 1px 5px; box-shadow: 0 2px 8px rgba(20, 40, 80, .08); }
.partner-ergebnis.im-lauf.probe { border-color: #f3c98b #f3c98b #f3c98b #e48a1e; }
.partner-ergebnis.im-lauf.gebucht { border-color: #a8d5b1 #a8d5b1 #a8d5b1 #2e7d32; }
.partner-ergebnis.im-lauf > header { margin: -8px -10px 8px; padding: 8px 10px; border-radius: 4px 6px 0 0; }
.partner-ergebnis.im-lauf.probe > header { background: #fff8ee; border-bottom: 1px solid #f6dcb4; }
.partner-ergebnis.im-lauf.gebucht > header { background: #f1faf3; border-bottom: 1px solid #cde9d3; }
.partner-ergebnis.im-lauf > .mf-tabelle th { background: #f4f7fb; }
.dok a.dok-pdf:hover { border-color: #f2c6c1 !important; }
.dok a.dok-html:hover { border-color: #c4d4ee !important; }
/* Mandantenverwaltung: Datenbank des gewählten Mandanten (2.71) */
.mandant-db-rahmen { border-top: 1px solid var(--mf-linie); }
.mandant-db-titel { font-weight: 700; color: var(--mf-blau-dunkel); margin-bottom: 4px; }

/* Mandantenverwaltung → Datenbank (2.73) */
.db-sperre { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #5b6b7f; padding-top: calc(14px * var(--s)); }
.db-knoepfe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-aktionen { display: flex; flex-direction: column; gap: 8px; }
.db-aktion { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-aktion .text-zweitrangig { font-size: .78rem; flex: 1 1 260px; }
.db-quelle { min-width: 260px; max-width: 420px; }
.sich-karte.fehler { border-color: #e0a2a2; background: #fdf1f1; }
.fenster-fehler { padding: 16px; max-width: 760px; }
/* Popup „Verbindung erfolgreich – Datenbank einrichten“ */
.einrichten-dialog .ed-kopf { display: flex; align-items: center; gap: 14px; }
.einrichten-dialog .ed-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mf-gruen-bg); color: #2e7d32; }
.einrichten-dialog .ed-symbol .mud-icon-root { font-size: 30px; }
.einrichten-dialog .ed-titel { font-size: 1.15rem; font-weight: 700; color: var(--mf-blau-dunkel, #1f3b63); }
.einrichten-dialog .ed-untertitel { font-size: .82rem; color: #5b6b7f; }
.einrichten-dialog .ed-daten { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 12px 16px; border: 1px solid #d5dfeb; border-radius: 8px; background: #f6f9fd; font-size: .86rem; }
.einrichten-dialog .ed-daten span { color: #5b6b7f; }
.einrichten-dialog .ed-text { margin: 14px 2px 10px; font-size: .88rem; color: #26323f; line-height: 1.45; }
.einrichten-dialog .ed-hinweis { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: #fff6e5; border: 1px solid #f1d39a; color: #6b4a00; font-size: .82rem; line-height: 1.4; }
.einrichten-dialog .mud-dialog-actions { gap: 8px; padding: 12px 24px 18px; }
.einrichten-dialog .ed-symbol.warnung { background: #fff3e0; color: #b26a00; }
.einrichten-dialog .ed-symbol.demo { background: #e8f0fb; color: #2f5d9e; }

/* Mandantenverwaltung (2.75): Liste oben, Details in Karten */
.ansicht.mv { gap: 10px; overflow: auto; }
.mv-oben { flex: none; background: #fff; border: 1px solid #aebccc; border-radius: 6px; overflow: hidden; }
.mv-liste { max-height: 260px; overflow: auto; }
.mv-zeile { display: grid; grid-template-columns: 52px minmax(160px, 1.3fr) minmax(140px, 1.1fr) 170px minmax(240px, 1.2fr) 150px 140px 80px 54px; gap: 12px; align-items: center;
    padding: 7px 14px; border-top: 1px solid #edf1f6; cursor: pointer; font-size: .86rem; }
.mv-zeile:first-child { border-top: none; }
.mv-zeile:hover { background: #f3f7fc; }
.mv-zeile.gewaehlt { background: #e3edf9; box-shadow: inset 3px 0 0 var(--mf-blau, #3a6fc4); }
.mv-nr { font-weight: 700; color: #1f3b63; font-variant-numeric: tabular-nums; }
.mv-name { font-weight: 600; color: #17222f; }
.mv-firma, .mv-ort { color: #4a5868; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-db { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 10px; font-size: .74rem; border: 1px solid transparent; white-space: nowrap; }
.mv-chip .mud-icon-root { font-size: 14px; }
.mv-chip.testkopie { background: #fff4e5; border-color: #f5c27a; color: #9a4d00; margin-left: 6px; } /* ab 3.99.57 */
.tk-dialog { display: flex; flex-direction: column; gap: 10px; }
.tk-quelle { display: flex; align-items: center; gap: 6px; }
.tk-schritte { margin: 4px 0 0 18px; padding: 0; font-size: .85rem; line-height: 1.5; }
.tk-hinweis { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: #6b4a00; background: #fff8e1; border: 1px solid #f1d58a; border-radius: 6px; padding: 8px 10px; }
.tk-abschalten { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; padding: 6px 2px; cursor: pointer; }
.tk-abschalten input { margin-top: 3px; }
.tk-fehler { color: #b42318; font-size: .78rem; margin-top: 2px; }
.mv-chip.art { background: #eef3fa; border-color: #c9d7ea; color: #2f4d78; }
.mv-chip.ok { background: var(--mf-gruen-bg); border-color: var(--mf-gruen-rand); color: var(--mf-gruen-text); }
.mv-chip.offen { background: #fff3e0; border-color: #f1d39a; color: #8a5a00; }
.mv-chip.leer { background: #f3f4f6; border-color: #dde1e6; color: #6b7480; }
.mv-details { flex: none; }
.mv-details-titel { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: #1f3b63; margin: 2px 2px 8px; }
.mv-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.mv-karten > .mandant-db { display: contents; }
.mv-karte { background: #fff; border: 1px solid #c9d5e3; border-radius: 8px; overflow: hidden; }
.mv-karte.mv-breit { grid-column: 1 / -1; }
.mv-karte > header { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f3f7fc; border-bottom: 1px solid #dfe7f1; font-weight: 700; font-size: .82rem; color: #2f4d78; text-transform: uppercase; letter-spacing: .03em; }
.mv-karte > header .mud-icon-root { font-size: 18px; }
.mv-karte-inhalt { padding: 12px 14px; }
.mv-karte .mandant-hinweis { margin: 10px 0 0; font-size: .76rem; }
.mv-allgemein { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; }
@container (max-width: 900px) { .mv-allgemein { grid-template-columns: 1fr; } }
.mv-fuss { padding: 0 14px 10px; font-size: .76rem; color: #5b6b7f; }
.mv-karte .db-sperre { padding-top: 0; }
.mv-karte .db-aktion .text-zweitrangig { flex-basis: 100%; }
.mv-karte .feld-eingabe input:not(.berechnet), .mv-karte .feld-eingabe select, .mv-karte select.mf-auswahl { border: 1px solid #b9c7d8; border-radius: 4px; padding: 3px 7px; background: #fff; width: 100%; box-sizing: border-box; }
.mv-karte .feld-eingabe input:focus, .mv-karte select:focus { outline: none; border-color: var(--mf-blau, #3a6fc4); box-shadow: 0 0 0 2px rgba(58, 111, 196, .15); }
.mv-karte .feld-eingabe input[readonly]:not(.berechnet) { background: #f6f8fb; }
.mv-karte .formular-raster { gap: 7px 18px; }
.mv-karte .db-quelle { width: auto; flex: 1 1 260px; }
.dok a.dok-excel:hover { color: #1d6f42 !important; background: #e7f4ec !important; border-color: #b5dcc4; }
.mf-tabelle.historie tr:hover .dok a.dok-excel { color: #1d6f42 !important; }
/* Spalten anpassen: Standard der Suche */
.spalten-vorgabe { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border: 1px solid #c9d7ea; border-radius: 8px; background: #f3f7fc; font-size: .84rem; }
.spalten-vorgabe .sv-titel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #2f4d78; }
.spalten-vorgabe label { display: inline-flex; align-items: center; gap: 8px; color: #44546a; }
.spalten-vorgabe select { min-width: 170px; }
/* Mandantenverwaltung: Hinweis, mit welchem Mandanten gearbeitet wird */
.mv-wechsel { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 10px; border-radius: 8px; border: 1px solid #f1c27a; background: #fff4e0; color: #6b4a00; font-size: .86rem; }
.mv-wechsel > .mud-icon-root { color: #c77700; flex: none; }
.mv-wechsel .mv-wechsel-text { flex: 1; line-height: 1.4; }
.mv-wechsel form { margin: 0; flex: none; }
.mv-wechsel.aktuell { border-color: var(--mf-gruen-rand); background: var(--mf-gruen-bg); color: var(--mf-gruen-text); }
.mv-wechsel.aktuell > .mud-icon-root { color: #2e7d32; }
.db-grundlagen { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #44546a; }
.db-grundlagen select { width: auto !important; min-width: 180px; }
/* Abrechnungsübersicht: Vertragspartner ausblenden */
.lu-tabelle .lu-aus { width: 22px; padding: 0 2px !important; text-align: center; }
.lu-tabelle .lu-aus button { all: unset; cursor: pointer; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; color: #a3afbd; font-size: .78rem; }
.lu-tabelle .lu-aus button:hover { color: #b3261e; background: #fdecea; }
.lu-tabelle .lu-aus-zeile .lu-aus button:hover { color: var(--mf-gruen-text); background: var(--mf-gruen-bg); }
.lu-tabelle .lu-versteckt .lu-gruppe td { cursor: pointer; background: #eef2f7; color: #44546a; font-weight: 600; font-size: .8rem; padding: 6px 10px; border-top: 2px solid #c9d5e3; text-align: left; }
.lu-tabelle .lu-versteckt .lu-pfeil { display: inline-block; width: 14px; }
.lu-tabelle .lu-aus-zeile td { opacity: .7; }
.lu-tabelle .lu-aus { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 26px !important; max-width: 26px; box-sizing: border-box; }
.lu-tabelle thead .lu-aus, .lu-tabelle tfoot .lu-aus { z-index: 3; background: #f1f4f8; }
.lu-tabelle .lu-name { left: 26px; }
.lu-tabelle .lu-versteckt .lu-gruppe td { position: sticky; left: 0; }
.logs-navi .logs-mandant { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
/* Sprachauswahl oben rechts */
.mf-kopfknopf.sprache { font-weight: 600; letter-spacing: .03em; }
a.sprache-eintrag { display: flex !important; align-items: center; gap: 10px; min-width: 190px; text-decoration: none; color: inherit; }
a.sprache-eintrag.an { font-weight: 700; color: var(--mf-blau-dunkel, #1f3b63); }
.sprache-code { display: inline-block; width: 26px; text-align: center; font-size: .72rem; font-weight: 700; padding: 1px 0; border-radius: 4px; background: #eef3fa; color: #2f4d78; border: 1px solid #c9d7ea; }

/* ---------- Sprachen / Übersetzungen ---------- */
.ue-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ue-hinweis { font-size: .8rem; margin: 4px 2px 8px; }
.ue-muster { padding: 0 5px; border-radius: 3px; }
.ue-muster.eigen { background: #e3eefc; color: #1f4f8f; font-weight: 600; }
.ue-muster.leer { background: #fff1de; }
.ue-muster.mit { background: #f4f6f9; }
.ue-import { cursor: pointer; }
.ue-tabelle-rahmen { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--mrr-rand, #d6dde6); border-radius: 6px; }
.ue-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ue-tabelle thead th { position: sticky; top: 0; z-index: 1; background: #eef3f9; text-align: left; font-size: .78rem; padding: 4px 6px; width: 12%; }
.ue-tabelle th.ue-de, .ue-tabelle td.ue-de { width: 16%; }
.ue-tabelle .ue-name { font-weight: 400; opacity: .6; }
.ue-tabelle td { padding: 1px 2px; border-bottom: 1px solid #edf0f4; height: 30px; }
.ue-tabelle td.ue-de { padding: 0 6px; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-tabelle td input { width: 100%; border: 1px solid transparent; background: transparent; font: inherit; font-size: .82rem; padding: 3px 5px; border-radius: 3px; }
.ue-tabelle td input:focus { border-color: #5b8fd6; background: #fff; outline: none; }
.ue-tabelle td.eigen input { background: #e3eefc; color: #1f4f8f; font-weight: 600; }
.ue-tabelle td.leer input { background: #fff1de; }

/* Übersetzung finden (Sprachmenü) */
body.ue-finden, body.ue-finden * { cursor: help !important; }
body.ue-finden label:hover, body.ue-finden legend:hover, body.ue-finden th:hover, body.ue-finden span:hover,
body.ue-finden button:hover, body.ue-finden .mud-tab:hover, body.ue-finden a:hover, body.ue-finden .feld:hover > label {
    outline: 2px dashed var(--mf-akzent); outline-offset: 1px; background: #fff4e5;
}
.ue-finden-band {
    position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 3000; background: var(--mf-akzent); color: #fff;
    padding: 6px 14px; border-radius: 6px; font-size: .85rem; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer !important;
}
.ue-treffer { display: flex; align-items: center; gap: 8px; margin: 4px 2px; padding: 4px 10px; background: #fff4e5; border: 1px solid #f0c48a; border-radius: 4px; font-size: .85rem; }
.ue-treffer button { border: 0; background: none; cursor: pointer; color: #8a5a17; }
.ue-tabelle td.ue-bereich { font-size: .72rem; color: #7b8796; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.ue-tabelle th.ue-bereich, .ue-tabelle td.ue-bereich { width: 9%; }

/* Startseite: Tipps „Wusstest du schon …?“ */
.start-tipp { grid-column: -3 / -1; grid-row: span 2; align-self: start; background: linear-gradient(135deg, #fffaf2, #fff); border: 1px solid #f0d3a8; border-left: 4px solid var(--mf-akzent); border-radius: 8px; padding: 10px 14px 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); min-width: 0; }
.start-tipp-kopf { display: flex; align-items: center; gap: 6px; color: #9a5b10; font-weight: 600; font-size: .82rem; }
.start-tipp-kopf button { border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: #9a5b10; padding: 0 4px; }
.start-tipp-nr { font-weight: 400; font-size: .75rem; opacity: .7; }
.start-tipp-inhalt { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; align-items: stretch; min-height: calc(150px * var(--s)); }
.start-tipp-text { flex: 1; min-width: 0; }
.start-tipp-text h4 { margin: 0 0 4px; font-size: .98rem; color: #1f3b63; }
.start-tipp-text p { margin: 0 0 6px; font-size: .84rem; line-height: 1.45; }
.start-tipp-beispiel { color: #46566a; }
.start-tipp-inhalt img { width: 100%; max-width: 100%; border-radius: 6px; border: 1px solid #dfe5ec; cursor: zoom-in; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.start-tipp-punkte { display: flex; gap: 5px; justify-content: center; margin-top: 4px; }
.start-tipp-punkte button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: #e3cba6; padding: 0; cursor: pointer; }
.start-tipp-punkte button.an { background: var(--mf-akzent); }
.start-tipp-gross { position: fixed; inset: 0; background: rgba(15,25,40,.6); z-index: 2000; display: grid; place-items: center; cursor: zoom-out; }
.start-tipp-gross img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
@media (max-width: 1100px) { .start-tipp { grid-column: 1 / -1; grid-row: auto; } }
.start-wunsch { grid-column: span 3; display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 18px; border: 0; border-radius: 10px;
    background: linear-gradient(120deg, #e48a1e, #f2a541 55%, #f7c46c); color: #fff; cursor: pointer; text-align: left; font: inherit; width: 100%;
    box-shadow: 0 4px 14px rgba(228,138,30,.35); transition: transform .15s, box-shadow .15s; }
.start-wunsch:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(228,138,30,.45); }
.start-wunsch span { display: flex; flex-direction: column; }
.start-wunsch b { font-size: .98rem; }
.start-wunsch small { color: #fff7ea; opacity: .95; }
.start-wunsch .wunsch-licht { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); flex: 0 0 auto;
    animation: wunsch-leuchten 2.2s ease-in-out infinite; }
.start-wunsch .wunsch-licht .mud-icon-root { color: #fff; font-size: 1.5rem; animation: wunsch-wippen 2.2s ease-in-out infinite; }
@keyframes wunsch-leuchten { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55), 0 0 6px 2px rgba(255,236,170,.4); } 50% { box-shadow: 0 0 0 9px rgba(255,255,255,0), 0 0 18px 6px rgba(255,236,170,.9); } }
@keyframes wunsch-wippen { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .start-wunsch .wunsch-licht, .start-wunsch .wunsch-licht .mud-icon-root { animation: none; } }
.wunsch p { margin: 0 0 10px; }
.wunsch-frage { font-weight: 600; font-size: .85rem; margin: 12px 0 6px; }
.wunsch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wunsch-chip { border: 1px solid #c9d4e2; background: #fff; border-radius: 16px; padding: 4px 12px; font: inherit; font-size: .82rem; cursor: pointer; color: #2b3a4d; }
.wunsch-chip:hover { border-color: var(--mf-blau); }
.wunsch-chip.an { background: var(--mf-blau); border-color: var(--mf-blau); color: #fff; }
.wunsch textarea, .wunsch input { width: 100%; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 4px; }
/* ab 3.65: Bewertung je Bereich (Noten 1–5) links, Wunsch rechts */
.wunsch-spalten { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .wunsch-spalten { grid-template-columns: 1fr; } }
.wunsch-erklaerung { font-size: .78rem; margin: -2px 0 6px; }
.wunsch-noten-kopf, .wunsch-zeile { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 30px) 30px; gap: 4px; align-items: center; }
.wunsch-noten-kopf { font-size: .7rem; color: var(--mf-text-2, #6b7a8c); text-align: center; padding: 0 6px; }
.wunsch-zeile { padding: 3px 6px; border-radius: 6px; }
.wunsch-zeile:nth-child(odd) { background: #f6f8fb; }
.wunsch-zeile.bewertet .wunsch-bereich { font-weight: 600; }
.wunsch-bereich { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wunsch-note, .wunsch-notiz-knopf { width: 28px; height: 26px; border: 1px solid #c9d4e2; background: #fff; border-radius: 6px; font: inherit; font-size: .8rem; cursor: pointer; color: #2b3a4d; padding: 0; justify-self: center; }
.wunsch-note:hover, .wunsch-notiz-knopf:hover { border-color: var(--mf-blau); }
.wunsch-note.an { color: #fff; font-weight: 700; border-color: transparent; }
.wunsch-note.n1.an { background: #16a34a; } .wunsch-note.n2.an { background: #65a30d; } .wunsch-note.n3.an { background: #ca8a04; }
.wunsch-note.n4.an { background: #ea580c; } .wunsch-note.n5.an { background: #dc2626; }
.wunsch-notiz-knopf { color: #8a97a8; }
.wunsch-notiz-knopf.an { color: var(--mf-blau); border-color: var(--mf-blau); background: #eef4ff; }
.wunsch .wunsch-notiz { grid-column: 1 / -1; margin: 3px 0 2px; font-size: .8rem; }
.wunsch-zusammen { font-size: .76rem; margin-top: 10px; }

/* Administration → Wünsche */
.wue { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: auto; }
.wue-karten { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 2px 14px; }
.wue-zahl { background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; padding: 8px 16px; min-width: 110px; display: flex; flex-direction: column; }
.wue-zahl b { font-size: 1.5rem; color: #1f3b63; }
.wue-zahl span { font-size: .78rem; color: #66768a; }
.wue-zahl.dringend b { color: #c0392b; }
.wue-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.wue-raster h4 { margin: 0 0 8px; font-size: .9rem; color: #1f3b63; }
.wue-raster h4 small { font-weight: 400; color: #7b8796; }
.wue-balken { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; align-items: center; gap: 8px; margin: 4px 0; font-size: .82rem; }
.wue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wue-spur { display: flex; height: 14px; background: #eef2f7; border-radius: 3px; overflow: hidden; }
.wue-spur .d, .wue-legende .d { background: #d9534f; } .wue-spur .w, .wue-legende .w { background: #f0ad4e; } .wue-spur .s, .wue-legende .s { background: #9ec5ea; } .wue-spur .a { background: #5b8fd6; }
.wue-wert { text-align: right; font-weight: 600; } .wue-wert small { font-weight: 400; color: #7b8796; }
.wue-legende { font-size: .75rem; color: #66768a; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.wue-legende span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.wue-liste { overflow: auto; }
.wue-liste td { vertical-align: top; font-size: .8rem; }
.wue-text { max-width: 420px; white-space: pre-wrap; }
.wue-neu td:first-child { border-left: 3px solid var(--mf-akzent); }
.wue-dringend { color: #c0392b; font-weight: 600; }
.wue-versand { max-width: 220px; font-size: .74rem; color: #66768a; }
.wue-formular { display: grid; grid-template-columns: 140px minmax(0, 420px); gap: 6px 10px; align-items: center; }
.wue-formular input:not([type=checkbox]) { font: inherit; font-size: .88rem; padding: 4px 8px; border: 1px solid #c9d4e2; border-radius: 4px; }
.wue-formular input[type=checkbox] { justify-self: start; }
.text-erfolg { color: #2e7d32; } .text-fehler { color: #c0392b; }
/* Fehler-Rückblick (Letzte Importe / Fehlerfenster) */
.fehler-behoben { border: 0; background: none; color: #2e7d32; font: inherit; font-size: .8rem; cursor: pointer; padding: 0; white-space: nowrap; }
.fehler-behoben:hover { text-decoration: underline; }
.fehler-verlauf-schalter { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: #46566a; cursor: pointer; }
.fehler-verlauf { overflow: auto; }
.fehler-verlauf td { font-size: .78rem; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.fehler-verlauf .verlauf-korrigiert td { color: #2e7d32; }
.fehler-verlauf .verlauf-ausgeschlossen td { color: #7b8796; }
.fehler-verlauf .verlauf-offen td:nth-child(2) { color: #c0392b; font-weight: 600; }
.fehler-alle-behoben { color: #2e7d32; }
/* Schreibweisen vereinheitlichen */
.sw-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sw-kopf label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.sw-gruppe { border: 1px solid #dfe5ec; border-radius: 6px; padding: 6px 10px; margin: 8px 0; background: #fff; }
.sw-variante { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 4px; cursor: pointer; font-size: .88rem; }
.sw-variante.an { background: var(--mf-gruen-bg); font-weight: 600; }
.sw-ort { font-size: .78rem; font-weight: 600; color: var(--mf-text-2, #5b6b7b); text-transform: uppercase; letter-spacing: .03em; margin: 6px 0 2px; }
.sw-ort:first-child { margin-top: 0; }
.sw-text { flex: 1; }
.sw-anzahl { color: #66768a; font-size: .78rem; }
.sw-ziel { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sw-ziel input { flex: 1; font: inherit; font-size: .88rem; padding: 3px 8px; border: 1px solid #c9d4e2; border-radius: 4px; }
.sw-leer { color: #2e7d32; padding: 12px; }
.benutzer-ansicht { overflow: auto; }
/* Mandantenstammdaten → E-Mail */
.mail-haken { display: flex; align-items: center; height: 100%; min-height: 32px; }

.mail-kennwort { width: 100%; font: inherit; font-size: .85rem; height: 26px; padding: 2px 10px; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; box-sizing: border-box; }
.mail-test { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.mail-test input { font: inherit; padding: 5px 10px; border: 1px solid #c9d4e2; border-radius: 4px; min-width: 280px; }
/* Reiter mit Text – dezente Kennzeichnung */
.formular-reiter .mud-badge.mud-badge-dot.mud-badge-default, .reiter-dezent .mud-badge.mud-badge-dot { background: #9aa7b8 !important; min-width: 6px; height: 6px; }

/* Einheitliche Größe aller Haken-Felder (wie im Rahmen „Abrechnung“ des Titelarchivs) – gilt für alle Formulare, auch künftige */
.mud-checkbox svg { width: calc(17px * var(--s, 1)) !important; height: calc(17px * var(--s, 1)) !important; }
.mud-checkbox .mud-button-root { padding: calc(2px * var(--s, 1)) !important; }
input[type=checkbox] { width: calc(14px * var(--s, 1)); height: calc(14px * var(--s, 1)); margin: 2px 3px; vertical-align: middle; }
.spalten-liste input[type=checkbox] { width: 13px; height: 13px; margin: 0; }
.reiter-vorbereitung { display: flex; align-items: center; gap: 8px; padding: 24px 12px; color: #66768a; font-size: .9rem; }
/* Ordner-Verknüpfung rechts neben den Reitern */
.reiter-zusatz { display: flex; align-items: center; margin-left: auto; padding: 0 4px; }
.ordner-link { display: flex; align-items: center; gap: 4px; border: 1px dashed transparent; border-radius: 6px; padding: 1px 4px; font-size: .8rem; min-height: 28px; }
.ordner-link.leer { border-color: #b7c4d4; }
.ordner-link.ziehen { border-color: #2f6fd1; background: #e7f0fc; }
.ordner-link-ziel { display: flex; align-items: center; gap: 4px; background: none; border: 0; color: #66768a; cursor: pointer; font: inherit; padding: 2px 6px; }
.ordner-link-ziel:hover:not(:disabled) { color: #2f6fd1; }
.ordner-link-ziel:disabled { cursor: default; opacity: .6; }
.ordner-link-oeffnen { display: flex; align-items: center; gap: 4px; color: #2f5fa8; text-decoration: none; padding: 2px 8px; border-radius: 4px; background: #fff; border: 1px solid #c9d4e2; max-width: 340px; }
.ordner-link-oeffnen:hover { background: #e7f0fc; }
.ordner-link-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordner-link-aendern { background: none; border: 0; cursor: pointer; color: #66768a; padding: 2px; display: flex; }
.ordner-pfad-eingabe { flex: 1; font: inherit; font-size: .9rem; padding: 7px 10px; border: 1px solid #b7c4d4; border-radius: 4px; min-width: 0; }
/* Administration und Hilfe unten im Menü */
.mf-menu-unten { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); padding-top: calc(6px * var(--s)); }
.mf-menu-unten .mf-copyright { margin-top: calc(10px * var(--s)); }
/* MRR-Explorer unter den Reitern */
.formular-reiter.explorer-offen .mud-tabs-panels { display: none; }
.formular-reiter.explorer-offen .mud-tab.mud-tab-active { background: #d5deea; font-weight: 400; color: inherit; box-shadow: none; }
.ordner-link-oeffnen { cursor: pointer; font: inherit; }
.ordner-link-oeffnen.an { background: var(--mf-blau, #2f5fa8); color: #fff; border-color: var(--mf-blau, #2f5fa8); }
.mini-explorer { display: flex; flex-direction: column; flex: 1; min-height: calc(320px * var(--s)); height: calc(100% - 4px); border: 1px solid #c9d4e2; border-top: 0; background: #fff; }
.mx-leiste { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: #eef3f9; border-bottom: 1px solid #dbe3ee; flex-wrap: wrap; }
.mf-navi.an { background: #d5e2f4; }
.mx-pfad { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 200px; overflow: hidden; background: #fff; border: 1px solid #c9d4e2; border-radius: 4px; padding: 2px 6px; font-size: .82rem; white-space: nowrap; }
.mx-teil { all: unset; cursor: pointer; padding: 1px 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; }
.mx-teil:hover { background: #e7f0fc; }
.mx-teil.aktuell { font-weight: 600; }
.mx-trenner { color: #8a99ad; }
.mx-filter { font: inherit; font-size: .8rem; padding: 3px 8px; border: 1px solid #c9d4e2; border-radius: 4px; width: 140px; }
.mx-hochladen { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.mx-datei-wahl { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mx-inhalt { position: relative; display: flex; flex: 1; min-height: 0; }
.mx-inhalt.ziehen { outline: 2px dashed #2f6fd1; outline-offset: -4px; background: #f3f8fe; }
.mx-ablage { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 0; }
.mx-ablage.aktiv { pointer-events: auto; z-index: 5; }
.mx-liste { flex: 1; overflow: auto; min-width: 0; }
.mx-tabelle { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mx-tabelle th { position: sticky; top: 0; background: #f7f9fc; text-align: left; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid #dbe3ee; cursor: pointer; user-select: none; white-space: nowrap; }
.mx-tabelle td { padding: 3px 8px; border-bottom: 1px solid #f0f3f7; white-space: nowrap; cursor: default; }
.mx-tabelle td:first-child { white-space: normal; }
.mx-tabelle .rechts { text-align: right; }
.mx-tabelle tbody tr:hover { background: #eef4fc; }
.mx-tabelle tbody tr.gewaehlt { background: #d5e2f4; }
.mx-sym { vertical-align: -3px; color: #66768a; }
.mx-sym.ordner { color: #e0a526; }
.mx-sym.pdf { color: #c62828; }
.mx-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 8px; }
.mx-kachel { all: unset; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: .75rem; text-align: center; }
.mx-kachel:hover { background: #eef4fc; }
.mx-kachel.gewaehlt { background: #d5e2f4; }
.mx-kachel img { width: 100%; height: 90px; object-fit: contain; background: #f4f6f9; border-radius: 4px; }
.mx-kachel .mud-icon-root { font-size: 64px; height: 90px; }
.mx-kachel span { width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.mx-vorschau { width: 38%; min-width: 260px; max-width: 560px; border-left: 1px solid #dbe3ee; display: flex; flex-direction: column; background: #fafbfd; }
.mx-vorschau-kopf { padding: 6px 10px; display: flex; flex-direction: column; font-size: .82rem; border-bottom: 1px solid #e5ebf2; }
.mx-vorschau-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-vorschau-bild { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px; }
.mx-vorschau-bild img, .mx-vorschau-bild video { max-width: 100%; max-height: 100%; object-fit: contain; }
.mx-vorschau-bild iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.mx-vorschau-knoepfe { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid #e5ebf2; }
.mx-hinweis { display: flex; align-items: center; gap: 8px; padding: 16px; color: #66768a; font-size: .85rem; }
.mx-hinweis.fehler { color: #b3261e; }
.mx-fuss { display: flex; justify-content: space-between; gap: 12px; padding: 3px 8px; font-size: .75rem; border-top: 1px solid #e5ebf2; background: #f7f9fc; }
.mx-voller-pfad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
/* ▶ Titel abspielen in der Tabellenansicht (Tonträgerbelegung → Kopplung) */
.ul-tabelle .ul-spielen { width: 26px; text-align: center; padding-left: 2px !important; padding-right: 2px !important; }
.spielen-knopf { all: unset; cursor: pointer; width: 20px; height: 18px; line-height: 18px; text-align: center; border-radius: 3px; color: #2f5fa8; font-size: .72rem; }
.spielen-knopf:hover { background: #d5e2f4; }
.spielen-knopf.an { background: #2f5fa8; color: #fff; }
tr.aktiv .spielen-knopf { color: #fff; }
.ul-spieler { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #eef3f9; border-top: 1px solid #c9d4e2; }
.ul-spieler audio { height: 30px; flex: 1; max-width: 520px; }
.ul-spieler-titel { font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
/* Ordner direkt im Fenster ändern (ISRC) */
.pfad-einst { display: flex; gap: 4px; align-items: center; min-width: 0; }
.pfad-einst input { flex: 1; min-width: 0; font: inherit; font-size: .8rem; font-weight: 600; padding: 3px 6px; border: 1px solid #c9d4e2; border-radius: 3px; background: #fff; }
.pfad-einst input[readonly] { background: transparent; border-color: transparent; }
.isrc-pfade .pfad-einst-label { color: var(--mf-text-2); font-size: .75rem; align-self: center; }
/* ISRC Export – Vorschau */
.isrc-tabelle.vorschau { max-height: calc(100vh - 470px); min-height: 200px; overflow: auto; }
.isrc-tabelle.vorschau th { position: sticky; top: 0; z-index: 1; }
.isrc-tabelle.vorschau tr.isrc-ohne td { color: #9a5b00; }
.isrc-zaehler .mf-auswahl { margin-left: auto; }
/* PDF-Vorschau (pdf.js) */
.mx-pdf { width: 100%; height: 100%; overflow: auto; cursor: zoom-in; display: flex; justify-content: center; align-items: flex-start; padding: 4px 0; }
.pdf-seite { display: block; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); margin: 0 auto 10px; }
.pdf-fehler { color: #b3261e; font-size: .8rem; padding: 10px; }
.pdf-dialog .mud-dialog-content { height: 78vh; overflow: auto; background: #e9edf2; padding: 12px !important; }
.pdf-seiten { min-height: 100%; }
.pdf-dialog-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 40px; }
.pdf-dialog-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pdf-dialog-knoepfe { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pdf-zoom { font-size: .8rem; min-width: 44px; text-align: center; }
/* ab 3.99.444 (Rene 30.11.2026 03:02 „alle Symbole in weiß“): Symbole und Zoom im grünen Kopf der Vorschau weiß */
html[class] body .pdf-dialog-knoepfe .mf-navi, html[class] body .pdf-dialog-knoepfe .mf-navi .mud-icon-root, html[class] body .pdf-dialog-knoepfe .pdf-zoom { color: #fff !important; fill: #fff !important; -webkit-text-fill-color: #fff !important; }
html[class] body .pdf-dialog-knoepfe .mf-navi:hover { background: rgba(255,255,255,.18) !important; }
.mx-voller-pfad { direction: ltr !important; }
.mx-tabelle tbody tr, .mx-kachel { user-select: none; }
/* Kopplung: engere Zeilen, kleineres ▶ */
.ul-tabelle td { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.45; }
.ul-tabelle .ul-spielen { width: 18px; }
.spielen-knopf { width: 14px; height: 13px; line-height: 13px; font-size: .55rem; vertical-align: middle; }
.pfad-einst-wert { flex: 1; min-width: 0; font-size: .8rem; font-weight: 600; padding: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfad-einst-wert.leer { font-weight: 400; color: var(--mf-text-2); }
.pfad-einst.an input { border-color: #2f6fd1; box-shadow: 0 0 0 2px #d5e2f4; }
.wav-status { margin-left: 10px; font-size: .72rem; color: var(--mf-text-2); align-self: center; }
.isrc-chip.klickbar { cursor: pointer; font: inherit; border: 1px solid transparent; } .isrc-chip.klickbar:hover { filter: brightness(.96); } .isrc-chip.aktiv { border-color: var(--mf-blau, #2f5fa8); box-shadow: 0 0 0 1px var(--mf-blau, #2f5fa8); }
/* Mandantenstammdaten → Pfade: zwei Spalten, gleiche Zeilenhöhe */
.pfade-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 0 calc(24px * var(--s)); align-items: start; }
.pfade-spalte { min-width: 0; }
.pfade-spalten .formular-raster.pfade { --label: 240px; row-gap: calc(3px * var(--s)) !important; }
.pfade-spalten .formular-raster.pfade > div { max-width: none; }
.pfade-spalten .formular-raster.pfade .feld { min-height: calc(24px * var(--s)); align-items: center; }
.pfade-spalten .formular-raster.pfade .feld > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfade-spalten .formular-raster.pfade .feld-knopf { height: calc(22px * var(--s)); min-width: calc(24px * var(--s)); padding: 0 calc(4px * var(--s)); }
.pfade-spalten .formular-raster.pfade .mud-input-control { margin: 0 !important; }
.pfade-spalten .mandant-abschnitt { margin-top: calc(8px * var(--s)); }
.pfade-spalten .pfade-spalte:nth-child(2) .formular-raster.pfade { --label: 340px; }
/* Reiter mit Text: Stift-Symbol hinter dem Namen */
.formular-reiter .mud-tab.reiter-symbol { flex-direction: row-reverse !important; }
.formular-reiter .mud-tab.reiter-symbol .mud-icon-root { font-size: 14px !important; width: 14px; height: 14px; margin: 0 0 0 4px !important; color: #5b6b80; }
.formular-reiter .mud-tab.mud-tab-active.reiter-symbol .mud-icon-root { color: var(--mf-blau); }
.formular-reiter .mud-tab.reiter-symbol .mud-icon-root, .formular-reiter .mud-tab.mud-tab-active.reiter-symbol .mud-icon-root { color: #43a047; }
/* Lizenzabrechnung – Ergebnis kontrastreicher, ruhigere Farben */
.lauf-kopf, .lauf-kopf.probe, .lauf-kopf.gebucht { background: #1f2d40; border: 0; color: #e8eef6; }
.lauf-kopf b { color: #fff; }
.lauf-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lauf-kopf.probe .lauf-status { background: #f0a020; color: #1f2d40; }
.lauf-kopf.gebucht .lauf-status { background: #3fa45b; color: #fff; }
.partner-ergebnis.im-lauf, .partner-ergebnis.im-lauf.probe, .partner-ergebnis.im-lauf.gebucht { background: #fff; border: 1px solid #b9c6d6; border-left: 4px solid #2f5fa8; box-shadow: 0 1px 4px rgba(20, 40, 80, .12); }
.partner-ergebnis.im-lauf.probe { border-left-color: #f0a020; }
.partner-ergebnis.im-lauf.gebucht { border-left-color: #3fa45b; }
.partner-ergebnis.im-lauf > header, .partner-ergebnis.im-lauf.probe > header, .partner-ergebnis.im-lauf.gebucht > header { background: #dde5ef; border-bottom: 1px solid #b9c6d6; color: #14202f; }
.partner-ergebnis.im-lauf .partner-name { color: #0f1b2b; }
.partner-ergebnis.im-lauf > header b { color: #0f1b2b; font-size: .95rem; }
.partner-ergebnis.im-lauf > .mf-tabelle th { background: #eef2f7; color: #1f2d40; border-bottom: 1px solid #b9c6d6; }
.partner-ergebnis.im-lauf > .mf-tabelle td { color: #14202f; }
.hinweis-mit-knopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.partner-link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.partner-link:hover { text-decoration: underline; color: var(--mf-blau, #2f5fa8); }
/* Lizenzabrechnung: Probelauf/gebuchter Lauf als eigener, dunkler hinterlegter Bereich – „Bisherige Abrechnungen“ hell und getrennt */
.lauf-bereich { background: #3b4c63; border-radius: 10px; padding: 8px 10px 2px; margin: 4px 0 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lauf-bereich.gebucht { background: #2f4a3a; }
.lauf-bereich .lauf-kopf { background: transparent; padding: 4px 4px 10px !important; margin: 0; }
.lauf-bereich .partner-ergebnis.im-lauf { box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.abschnitt-titel { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; padding: 0 0 4px; border-bottom: 2px solid #b9c6d6; color: #1f2d40; font-size: .95rem; }
.abschnitt-titel b { font-size: 1rem; }
/* Übersetzungen: Gruppen je Fenster, kleinere Schrift, Stellen */
.ue-tabelle td { height: 24px; }
.ue-tabelle td.ue-de, .ue-tabelle td input { font-size: .74rem; }
.ue-tabelle td input { padding: 2px 4px; }
.ue-tabelle thead th { font-size: .72rem; }
.ue-tabelle tr.ue-gruppe td { background: #dde5ef; color: #14202f; font-weight: 700; font-size: .78rem; padding: 3px 8px; border-top: 1px solid #b9c6d6; }
.ue-tabelle tr.ue-gruppe td span { font-weight: 400; color: #5b6b80; margin-left: 6px; font-size: .7rem; }
.ue-tabelle td.erbt input::placeholder { color: #8a96a5; font-style: italic; opacity: 1; }
.ue-tabelle td.mit input::placeholder { color: #8a96a5; font-style: italic; opacity: 1; }
.ue-muster.grau { color: #8a96a5; font-style: italic; }
.ue-ort-knopf { all: unset; cursor: pointer; font-size: .7rem; margin-right: 4px; opacity: .55; }
.ue-ort-knopf:hover { opacity: 1; }
.ts-text { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.ts-titel { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6b80; margin: 10px 0 4px; font-weight: 700; }
.ts-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #edf0f4; }
.ts-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .82rem; }
.ts-fenster { font-weight: 700; }
.ts-sep { color: #8a96a5; }
.ts-bereiche { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes ue-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,160,32,0); background: transparent; } 20%, 60% { box-shadow: 0 0 0 4px rgba(240,160,32,.9); background: #fff3d6; } }
.ue-hervor { animation: ue-blink 1.3s ease-in-out 3; border-radius: 3px; }
.ue-tabelle th.ue-bereich, .ue-tabelle td.ue-bereich { width: 15%; } .ue-tabelle th.ue-de, .ue-tabelle td.ue-de { width: 14%; }

/* Anmeldung: Benutzer ist schon an einem anderen Rechner angemeldet */
.login-doppelt { border: 1px solid #e0b252; background: #fff8e6; border-radius: calc(6px * var(--s)); padding: .8rem .9rem; color: #3b2a05; font-size: .85rem; }
.login-doppelt .ld-titel { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; color: #7a4b00; }
.login-doppelt p { margin: .3rem 0; }
.login-doppelt ul { margin: .3rem 0 .5rem 1.1rem; padding: 0; }
.login-doppelt li { margin: .15rem 0; }
.login-doppelt .ld-frage { font-weight: 700; margin-top: .6rem; }
.login-doppelt .ld-hinweis { font-size: .78rem; color: #6b5a33; }
.login-doppelt .ld-knoepfe { display: flex; flex-direction: column; gap: .4rem; margin-top: .6rem; }
.login-doppelt .ld-knoepfe .login-button { margin-top: 0; flex: 1; }
/* ab 3.99.227 (P0-08): zweiter Faktor bei der Anmeldung */
.login-zweifaktor { border: 1px solid #9ab4d8; background: #eef4fb; border-radius: calc(6px * var(--s)); padding: .8rem .9rem; color: #142a47; font-size: .85rem; }
.login-zweifaktor .ld-titel { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; color: #1d3f75; }
.login-zweifaktor p { margin: .3rem 0; }
.login-zweifaktor .ld-hinweis { font-size: .78rem; color: #4b5d78; margin-top: .6rem; }
.login-zweifaktor input#code { font-size: 1.35rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.login-abbrechen { padding: .6rem 1rem; border: 1px solid #b9c3cf; border-radius: calc(4px * var(--s)); background: #fff; color: #233; font: inherit; cursor: pointer; }
.login-abbrechen:hover { background: #eef2f6; }

/* Benutzer-Popup (Maus über dem Namen): kleiner, kräftiger Kontrast */
.online-fenster { font-size: .74rem; color: #0f1824; border-color: #9aa8b8; min-width: 340px; }
.online-kopf { color: #0f1824; font-size: .76rem; padding-bottom: 5px; border-bottom-color: #c9d2dc; }
.online-kopf span { color: #2f3d4d; }
.online-zeile { padding: 3px 12px; }
.online-zeile .name { color: #0b1420; font-size: .76rem; }
.online-zeile:not(.online):not(.untaetig) .name { color: #3d4a59; }
.online-zeile .info { font-size: .68rem; color: #34414f; }
.online-zeile.online .info { color: #1f5130; }
.online-fuss { font-size: .64rem; color: #46525f; border-top-color: #c9d2dc; }
.online-abmelden button { font-size: .76rem; color: #0f1824; }
.lizenz-info { color: #34414f; font-size: .64rem; }

/* Mandant wechseln: Menü */
.mandant-menue-kopf { padding: 8px 14px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3d4a59; border-bottom: 1px solid #dde3ea; }
.mandant-menue { min-width: 250px; padding: 4px 0; }
.mandant-menue .mrr-menubutton { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: .8rem; color: #142030; }
.mandant-menue .mrr-menubutton:hover { background: #eef3fa; }
.mandant-menue .mrr-menubutton.an { background: #e6eefb; font-weight: 600; }
.mandant-menue .mm-nr { min-width: 2.6em; padding: 1px 6px; border-radius: 4px; font-size: .7rem; font-weight: 700; text-align: center; color: #fff; background: #5a6b80; }
.mandant-menue .mm-name { flex: 1; }
.mandant-menue .mm-haken { color: var(--mf-blau); font-size: 15px; }
.mf-kopfknopf.mandant.gefaerbt { color: #fff; border-color: rgba(255,255,255,.55); }
.mv-farbe { display: flex; align-items: center; gap: 8px; }
.mv-farbe input[type=color] { width: 42px; height: 26px; padding: 0 2px; border: 1px solid #9aa8b8; border-radius: 4px; background: #fff; cursor: pointer; }
.mv-farbe-vorschau { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 5px; background: #1e2a3d; color: #fff; font-size: .78rem; border: 1px solid rgba(255,255,255,.4); }

/* Gruppen-Zuordnung (Titelarchiv → Musiker): drei Listen wie im Komponisten-Fenster, direkt im Reiter */
.gz-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr) auto minmax(0, .9fr); gap: 10px; height: calc(100vh - 430px * var(--s)); min-height: 300px; margin-top: 6px; }
.gz-liste { display: flex; flex-direction: column; min-height: 0; border: 1px solid #b9c6d6; border-radius: 6px; background: #fff; overflow: hidden; }
.gz-kopf { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; background: #eef2f7; border-bottom: 1px solid #b9c6d6; font-size: .8rem; font-weight: 700; color: #1f2d3d; }
.gz-zahl { font-weight: 600; color: #46566b; background: #dde5ef; border-radius: 10px; padding: 0 8px; font-size: .72rem; }
.gz-suche { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid #e3e9f0; color: #6b7785; }
.gz-suche input { flex: 1; border: 1.5px solid #c3cfdf; border-radius: 14px; padding: 3px 10px; font-size: .8rem; outline: 0; }
.gz-suche input:focus { border-color: var(--mf-blau); box-shadow: 0 0 0 3px rgba(47, 95, 174, .15); }
.gz-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.gz-ablage { outline: 2px dashed var(--mf-blau); outline-offset: -3px; background: #f3f7fd; }
.gz-zeile { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-size: .82rem; cursor: pointer; user-select: none; border-bottom: 1px solid #f1f4f8; }
.gz-zeile[draggable=true] { cursor: grab; }
.gz-zeile:hover { background: #f1f5fa; }
.gz-zeile.aktiv { background: #cfdcef; }
.gz-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-neben { color: #5d6b7a; font-size: .74rem; white-space: nowrap; }
.gz-pfeil { border: 1px solid #b9c6d6; background: #f6f8fb; border-radius: 4px; width: 22px; height: 20px; line-height: 16px; padding: 0; font-size: .78rem; color: var(--mf-blau); cursor: pointer; }
.gz-pfeil:disabled { opacity: .35; cursor: default; }
.gz-pfeil:not(:disabled):hover { background: var(--mf-blau); color: #fff; }
.gz-knoepfe { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.gz-knoepfe .mf-knopf { min-width: 40px; justify-content: center; }
.gz-leer { padding: 12px; font-size: .8rem; color: #6b7785; }
.gz-gruppe { margin: 6px 8px; padding: 6px 10px 8px; border: 1px solid #d5dde8; border-radius: 6px; background: #fbfcfe; cursor: pointer; }
.gz-gruppe[draggable=true] { cursor: grab; }
.gz-gruppe:hover { border-color: #a9bbd3; }
.gz-gruppe.aktiv { border-color: var(--mf-blau); box-shadow: 0 0 0 2px rgba(47, 95, 174, .18); background: #f4f8fe; }
.gz-gruppe-kopf { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: #142030; }
.gz-link { all: unset; cursor: pointer; font-size: .74rem; font-weight: 400; color: var(--mf-blau); text-decoration: underline; }
.gz-weg { all: unset; cursor: pointer; color: #8a96a3; font-size: .8rem; padding: 0 2px; }
.gz-weg:hover { color: #c62828; }
.gz-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; min-height: 22px; }
.gz-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 9px; border-radius: 11px; background: var(--mf-gruen-bg); color: var(--mf-gruen-text); font-size: .76rem; border: 1px solid var(--mf-gruen-rand); }
.gz-chip button { all: unset; cursor: pointer; font-size: .68rem; color: var(--mf-gruen-text); padding: 0 3px; border-radius: 50%; }
.gz-chip button:hover { color: #fff; background: #c62828; }
.gz-chip-leer { font-size: .74rem; color: #8a96a3; font-style: italic; }
@media (max-width: 900px) { .gz-raster { grid-template-columns: 1fr; height: auto; } .gz-knoepfe { flex-direction: row; } .gz-scroll { max-height: 260px; } }

/* Tonträgerbelegung → Mitwirkende: zwei Zeilen je Titel (Titel, darunter klein die Musiker mit Instrumenten) */
.mw-ansicht { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mw-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mw-titel { font-size: .82rem; font-weight: 700; color: #1f2d3d; }
.mw-hinweis { font-size: .72rem; color: #5d6b7a; }
.mw-tabelle-rahmen { border: 1px solid #b9c6d6; background: #fff; max-height: calc(100vh - 470px * var(--s)); min-height: 200px; overflow-y: auto; }
.mw-tabelle { width: 100%; }
.mw-tabelle thead th { position: sticky; top: 0; z-index: 1; background: #f4f7fb; }
.mw-tabelle td { vertical-align: top; padding-top: 3px !important; padding-bottom: 4px !important; border-bottom: 1px solid #e3e9f0; }
.mw-tabelle .mw-tt, .mw-tabelle .mw-seite { width: 44px; }
.mw-tabelle .mw-spiel { width: 24px; text-align: center; }
.mw-tabelle .mw-nr { width: 64px; }
.mw-tabelle .mw-isrc { width: 120px; white-space: nowrap; }
.mw-zeile { cursor: default; }
.mw-zeile:hover td { background: #f3f7fc; }
.mw-zeile.spielt td { background: #e8f0fb; }
.mw-titelname { font-size: .82rem; }
.mw-musiker { font-size: .7rem; line-height: 1.3; color: #3f4c5c; margin-top: 1px; }
.mw-musiker b { font-weight: 600; color: #1d3f75; }
.mw-trenner { color: #a3afbd; margin: 0 7px; }
.mw-leer { color: #a3afbd; font-style: italic; }
.mw-credits { border: 1px solid #b9c6d6; border-radius: 4px; background: #fff; }
.mw-credits-kopf { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; background: #eef2f7; border-bottom: 1px solid #b9c6d6; font-size: .8rem; font-weight: 700; }
.mw-credits-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3px 24px; padding: 7px 10px; font-size: .78rem; }
.mw-credits-raster b { color: #1d3f75; }
.mw-credits-fuss { padding: 0 10px 6px; font-size: .68rem; color: #6b7785; }
.gz-kopf-knoepfe { display: inline-flex; align-items: center; gap: 4px; }
.gz-kopie { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border-radius: 4px; color: var(--mf-blau); border: 1px solid transparent; }
.gz-kopie:hover:not(:disabled) { background: #dce7f6; border-color: #b9cbe5; }
.gz-kopie:disabled { color: #a9b4c1; cursor: default; }
.gz-kopie-zahl { font-size: .66rem; font-weight: 700; background: var(--mf-blau); color: #fff; border-radius: 8px; padding: 0 5px; line-height: 14px; }
/* Gruppen-Zuordnung: etwas kleinere Schrift */
.gz-kopf { font-size: .74rem; padding: 4px 9px; }
.gz-suche input { font-size: .74rem; padding: 2px 9px; }
.gz-zeile { height: 22px; font-size: .74rem; }
.gz-neben { font-size: .68rem; }
.gz-gruppe { margin: 5px 7px; padding: 4px 9px 6px; }
.gz-gruppe-kopf { font-size: .76rem; }
.gz-link { font-size: .68rem; }
.gz-chips { margin-top: 3px; gap: 4px; min-height: 18px; }
.gz-chip { font-size: .69rem; padding: 0 3px 0 8px; }
.gz-chip-leer { font-size: .68rem; }
.gz-leer { font-size: .74rem; }
.gz-pfeil { width: 19px; height: 17px; line-height: 14px; font-size: .7rem; }
.mw-tabelle .mw-zeit { width: 78px; white-space: nowrap; }
/* Mitwirkende: kompakter */
.mw-tabelle td { padding-top: 1px !important; padding-bottom: 2px !important; line-height: 1.2; }
.mw-tabelle thead th { padding-top: 3px !important; padding-bottom: 3px !important; white-space: nowrap; }
.mw-titelname { font-size: .76rem; }
.mw-musiker { font-size: .66rem; line-height: 1.15; margin-top: 0; }
.mw-tabelle td:not(:nth-child(5)) { font-size: .76rem; }
.mw-tabelle .mw-tt, .mw-tabelle .mw-seite { width: 34px; }
.mw-tabelle .mw-nr { width: 40px; }
.mw-tabelle .spielen-knopf { height: 15px; line-height: 15px; }
.mw-zeile.markiert td { background: #d6e3f5 !important; }
.mw-zeile.kopiert td:first-child { box-shadow: inset 3px 0 0 #2e9d4a; }
.mw-tabelle-rahmen:focus { outline: 2px solid rgba(47, 95, 174, .35); outline-offset: -2px; }
.mw-zeile { user-select: none; }
.mw-titel { white-space: nowrap; }
.mw-hinweis { text-align: right; }
.mw-kopf { justify-content: flex-start; }
.mw-info { font-size: .66rem; color: #5d6b7a; flex: 1; }
.mw-tabelle .mw-stift { width: 22px; text-align: center; padding-left: 0 !important; padding-right: 0 !important; }
.mw-stift-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 16px; border-radius: 3px; color: #7a8796; }
.mw-stift-knopf:hover { background: #d5e2f4; color: var(--mf-blau); }

/* Abgleich Rolle ↔ Adressverwaltung */
.ab-zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ab-zahl { all: unset; cursor: pointer; padding: 3px 10px; border-radius: 12px; border: 1px solid #c3cfdf; font-size: .76rem; background: #f6f8fb; }
.ab-zahl b { margin-right: 3px; }
.ab-zahl.ok b { color: #2e7d32; } .ab-zahl.warn b { color: #b26a00; } .ab-zahl.fehler b { color: #c62828; }
.ab-zahl.an { background: var(--mf-blau); color: #fff; border-color: var(--mf-blau); } .ab-zahl.an b { color: #fff; }
.ab-hinweis { font-size: .7rem; color: #5d6b7a; margin-bottom: 6px; }
.ab-rahmen { max-height: 60vh; overflow: auto; border: 1px solid #b9c6d6; }
.ab-tabelle { width: 100%; font-size: .76rem; }
.ab-tabelle thead th { position: sticky; top: 0; background: #f4f7fb; z-index: 1; }
.ab-tabelle td.ab-diff { background: #fff4d6; font-weight: 600; }
.ab-tabelle tr.ab-fehlt td.ab-erg { color: #c62828; } .ab-tabelle tr.ab-abweichend td.ab-erg, .ab-tabelle tr.ab-haken td.ab-erg { color: #b26a00; } .ab-tabelle tr.ab-gleich td.ab-erg { color: #2e7d32; }
.ab-tabelle tbody tr { cursor: pointer; } .ab-tabelle tbody tr:hover td { background: #eef3fa; }

/* Adresse wählen (Rollen-Fenster) */
.aw-suche { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #6b7785; }
.aw-suche input { flex: 1; border: 1.5px solid #c3cfdf; border-radius: 16px; padding: 5px 12px; font-size: .84rem; outline: 0; }
.aw-suche input:focus { border-color: var(--mf-blau); box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.aw-zahl { font-size: .74rem; white-space: nowrap; }
.aw-kopf, .aw-zeile { display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) 120px; gap: 8px; align-items: center; padding: 0 8px; }
.aw-kopf { position: sticky; top: 0; z-index: 1; font-size: .74rem; font-weight: 700; background: #eef2f7; border-bottom: 1px solid #b9c6d6; padding-top: 4px; padding-bottom: 4px; }
.aw-kopf > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-liste { height: 52vh; overflow-y: auto; overflow-x: hidden; border: 1px solid #b9c6d6; }
.aw-zeile { height: 26px; font-size: .8rem; cursor: pointer; border-bottom: 1px solid #f0f3f7; }
.aw-zeile > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-zeile:hover { background: #f1f5fa; } .aw-zeile.aktiv { background: #cfdcef; }
.aw-nr { text-align: right; } .aw-haken { text-align: center; color: #2e7d32; }
.aw-hinweis { margin-top: 6px; font-size: .72rem; color: #5d6b7a; }
/* Sprache im Benutzermenü */
.bm-sprachen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 2px 14px 0; }
.bm-sprachen a { display: grid; place-items: center; height: 26px; border-radius: 6px; border: 1px solid #dbe3ef; background: #f8fafc; color: #475569; font-weight: 700; font-size: .7rem; text-decoration: none; }
.bm-sprachen a:hover { border-color: var(--mf-blau); color: var(--mf-blau); }
.bm-sprachen a.an { background: var(--mf-blau); border-color: var(--mf-blau); color: #fff; }
.bm-uebersetzung { all: unset; cursor: pointer; float: right; display: inline-flex; align-items: center; gap: 3px; color: var(--mf-blau); font-size: .7rem; }
.bm-uebersetzung:hover { text-decoration: underline; }
.mw-tabelle .mw-stift { width: 110px; text-align: center; padding-left: 12px !important; padding-right: 24px !important; white-space: nowrap; }

/* Zugeklappte Reiter (Adressverwaltung → Ansprechpartner) */
.klapp-reiter { display: flex; gap: 4px; margin-top: calc(8px * var(--s)); border-bottom: 2px solid var(--mf-blau); }
.klapp-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: calc(5px * var(--s)) calc(12px * var(--s)); font-size: .8rem; font-weight: 600; color: #2a3a52; background: #e7edf5; border: 1px solid #c3cfdf; border-bottom: 0; border-radius: 5px 5px 0 0; }
.klapp-knopf:hover { background: #dbe5f2; }
.klapp-knopf.offen { background: var(--mf-blau); color: #fff; border-color: var(--mf-blau); }
.klapp-inhalt { padding-top: calc(8px * var(--s)); }

/* mehrzeilige Felder: MudBlazor blendet bei Outlined-Textareas die obersten ~10px per mask-image aus (Platz fürs Label) – wir haben kein Label im Rahmen */
.feld-eingabe textarea, .mud-input.mud-input-outlined textarea { -webkit-mask-image: none !important; mask-image: none !important; }
/* Auswahl-/Suchfelder (MudSelect/Autocomplete, Felder mit Einheit): kein zusätzlicher Einzug links – Text beginnt bündig wie bei normalen Textfeldern */
.feld-eingabe .mud-input.mud-input-outlined:not(.mud-input-adorned-start) { padding-left: 0 !important; }

/* ---------- DMS (Posteingang, Dokumente, Reiter „Dokumente“, Einstellungen) ---------- */
.dms-fenster { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 8px; box-sizing: border-box; gap: 8px; background: var(--mf-formular, #dfe7f0); }
.dms-oben { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dms-oben select { border: 1px solid #c3cfdf; border-radius: 4px; padding: 3px 6px; font-size: .8rem; background: #fff; }
.dms-schalter { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: #334155; }
.dms-ordnerstand, .dms-anzahl { font-size: .72rem; color: #5d6b7a; }
.dms-ordnerstand { margin-left: auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-suche { display: flex; align-items: center; gap: 6px; flex: 1 1 320px; min-width: 240px; color: #6b7785; position: relative; }
.dms-suche input { flex: 1; border: 1.5px solid #c3cfdf; border-radius: 16px; padding: 5px 30px 5px 12px; font-size: .84rem; outline: 0; background: #fff; }
.dms-suche input:focus { border-color: var(--mf-blau); box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.dms-suche .filter-leeren { position: absolute; right: 8px; }
.dms-drei { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 460px; gap: 8px; }
.dms-liste { overflow-y: auto; min-height: 0; border: 1px solid #b9c6d6; border-radius: 6px; background: #fff; }
.dms-liste.breit { min-width: 0; }
.dms-drei:has(.dms-liste.breit) { grid-template-columns: 320px minmax(0, 1fr) 460px; }
@media (max-width: 1500px) { .dms-drei { grid-template-columns: 220px minmax(0, 1fr) 400px; } .dms-drei:has(.dms-liste.breit) { grid-template-columns: 280px minmax(0, 1fr) 400px; } }
.dms-nr { font-family: Consolas, "Cascadia Mono", monospace; font-size: .7rem; color: #1d3f75; white-space: nowrap; }
.dms-nr.gross { font-size: .78rem; font-weight: 700; background: #e3ecf8; border-radius: 4px; padding: 0 6px; }
.dms-mitte { min-width: 0; min-height: 0; border: 1px solid #b9c6d6; border-radius: 6px; overflow: hidden; background: #8792a0; }
.dms-rechts { overflow-y: auto; min-height: 0; border: 1px solid #b9c6d6; border-radius: 6px; background: #fff; }
.dms-nichts { font-size: .78rem; color: #6b7785; }
.dms-karte { all: unset; box-sizing: border-box; display: flex; gap: 8px; width: 100%; padding: 6px 8px; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.dms-karte:hover { background: #f1f5fa; } .dms-karte.aktiv { background: #dbe6f6; box-shadow: inset 3px 0 0 var(--mf-blau); }
.dms-karte img, .dms-karte-bild { width: 44px; height: 60px; object-fit: cover; object-position: top; border: 1px solid #d5dde8; background: #fff; flex: none; display: flex; align-items: center; justify-content: center; color: #8a96a3; }
.dms-karte-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dms-karte-titel { font-size: .8rem; font-weight: 600; color: #142030; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-karte-info { font-size: .7rem; color: #5d6b7a; }
.dms-karte-knoepfe { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.dms-status { align-self: flex-start; font-size: .64rem; font-weight: 600; padding: 0 6px; border-radius: 8px; background: #e7ecf2; color: #46566b; white-space: nowrap; }
.dms-status.s2 { background: #fff1d6; color: #8a5300; } .dms-status.s3 { background: #e3ecf8; color: #1d3f75; }
.dms-status.s4 { background: var(--mf-gruen-bg); color: var(--mf-gruen-text); } .dms-status.s9 { background: #fde8e8; color: #b42318; }
.dms-treffer { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 7px 10px; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.dms-treffer:hover { background: #f1f5fa; } .dms-treffer.aktiv { background: #dbe6f6; box-shadow: inset 3px 0 0 var(--mf-blau); }
.dms-treffer-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dms-ausschnitt { display: block; font-size: .72rem; color: #46566b; margin-top: 3px; line-height: 1.35; }
.dms-ausschnitt mark, .dms-ausschnitt b { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.dms-ausschnitt b { background: none; }
/* Betrachter */
.dms-betrachter { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dms-leer { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; color: #eef2f7; font-size: .85rem; }
.dms-leiste { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: #f4f6f9; border-bottom: 1px solid #b9c6d6; flex-wrap: wrap; }
.dms-leiste-titel { font-size: .8rem; font-weight: 600; color: #142030; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-leiste-info, .dms-zoom { font-size: .72rem; color: #5d6b7a; }
.dms-leiste-rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.dms-leiste a.mf-knopf { text-decoration: none; }
.dms-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; color: #334155; }
.dms-knopf:hover { background: #dce7f6; color: var(--mf-blau); } .dms-knopf .mud-icon-root { font-size: 18px; }
.dms-treffer-info { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: #7a4b00; background: #fff4cc; border: 1px solid #f1d27a; border-radius: 12px; padding: 0 8px; }
.dms-treffer-info.keine { color: #6b7785; background: #eef2f7; border-color: #d5dde8; font-weight: 400; }
.dms-treffer-seiten { font-weight: 400; color: #8a5300; }
.dms-seiten { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dms-seite { position: relative; width: calc(min(100%, 900px) * var(--dms-zoom, 1)); max-width: none; flex: none; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.dms-seite img { display: block; width: 100%; height: auto; }
.dms-seitennr { position: absolute; right: 6px; bottom: 4px; font-size: .66rem; color: #fff; background: rgba(20, 32, 48, .55); border-radius: 8px; padding: 0 6px; }
.dms-markierung { position: absolute; background: rgba(255, 214, 0, .42); outline: 1px solid rgba(214, 160, 0, .9); border-radius: 2px; pointer-events: none; mix-blend-mode: multiply; }
.dms-markierung.aktuell { background: rgba(255, 140, 0, .55); outline: 2px solid #e65100; }
.dms-hinweis { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 10px 14px; font-size: .8rem; color: #334155; }
/* Detail */
.dms-detail { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.dms-detail-kopf { display: flex; align-items: center; gap: 8px; }
.dms-detail-datei { font-size: .72rem; color: #5d6b7a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-feld { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 6px; font-size: .76rem; color: #334155; font-weight: 600; }
.dms-feld input, .dms-feld select, .dms-feld textarea, .dms-hand input, .dms-hand select { border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; padding: 3px 6px; font: inherit; font-size: .78rem; font-weight: 400; background: #fff; min-width: 0; }
.dms-feld textarea { resize: vertical; }
.dms-abschnitt { margin-top: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #46566b; border-bottom: 1px solid #e3e9f0; padding-bottom: 2px; }
.dms-link, .dms-vorschlag { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.dms-link-bereich { flex: none; font-size: .66rem; font-weight: 700; color: #1d3f75; background: #e3ecf8; border-radius: 8px; padding: 0 6px; white-space: nowrap; }
.dms-link-text { all: unset; cursor: pointer; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mf-blau); font-size: .76rem; }
.dms-link-text:hover { text-decoration: underline; }
.dms-karte-knoepfe .dms-link-text { flex: none; font-size: .68rem; }
.dms-auto { font-size: .6rem; font-weight: 700; color: var(--mf-gruen-text); background: var(--mf-gruen-bg); border: 1px solid var(--mf-gruen-rand); border-radius: 6px; padding: 0 4px; }
.dms-weg { all: unset; cursor: pointer; color: #8a96a3; font-size: .78rem; padding: 0 3px; }
.dms-weg:hover { color: #c62828; }
.dms-punkte { flex: none; min-width: 26px; text-align: center; font-size: .66rem; font-weight: 700; color: #fff; background: #7a8796; border-radius: 8px; }
.dms-hand { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px; }
.dms-info { font-size: .72rem; color: #46566b; display: flex; flex-direction: column; gap: 2px; }
.dms-fehler { color: #b42318; }
.dms-zeile-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mf-knopf.gefahr { color: #b42318; }
/* Ablagefläche */
.dms-zone { display: flex; align-items: center; gap: 10px; flex: 1 1 380px; padding: 8px 14px; border: 2px dashed #9fb3cc; border-radius: 8px; background: #f7f9fc; color: #46566b; font-size: .78rem; position: relative; }
.dms-zone .mud-icon-root { color: var(--mf-blau); }
.dms-zone:not(.klein) { min-height: 96px; justify-content: center; font-size: .9rem; }
.dms-zone:not(.klein) > .mud-icon-root { font-size: 2.2rem; }
.dms-zone.klein { flex: 0 1 auto; padding: 3px 10px; font-size: .72rem; }
.dms-zone.ziel { border-color: var(--mf-blau); background: #e3ecf8; box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.dms-zone-laedt { display: none; align-items: center; gap: 6px; }
.dms-zone.laedt .dms-zone-laedt { display: inline-flex; }
/* Reiter „Dokumente“ */
.dms-reiter { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.dms-reiter-inhalt { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px; height: calc(100vh - 360px * var(--s, 1)); min-height: 340px; }
.dms-reiter .dms-zone.klein { align-self: flex-start; }
/* Einstellungen */
.dms-einst-rahmen { height: 100%; overflow-y: auto; background: var(--mf-formular, #dfe7f0); }
.dms-einstellungen { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; max-width: 1100px; }
.dms-einst-leiste { display: flex; gap: 8px; align-items: center; }
.dms-einst-hinweis, .dms-einst-text { font-size: .72rem; color: #5d6b7a; }
.dms-einst-block { background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.dms-einst-feld { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: #334155; }
.dms-einst-feld.kurz { grid-template-columns: 190px 380px; }
.dms-einst-feld input, .dms-einst-zahlen input, .dms-regeln input.zahl { border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; padding: 3px 6px; font: inherit; font-size: .78rem; font-weight: 400; background: #fff; }
.dms-einst-haken { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.dms-einst-stand { font-size: .72rem; color: #1d3f75; }
.dms-einst-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dms-mehrere { margin-top: 10px; gap: 6px 14px; }
.dms-mehrere label { display: inline-flex; align-items: center; gap: 5px; }
.dms-ignorieren { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; max-width: 520px; }
.dms-ignorieren .dms-tags { width: 100%; }
.dms-test { margin-top: 10px; }
.dms-test-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; font-weight: 600; }
.dms-test-zahlen .ok, .dms-test-tab .ok { color: #1a7f37; } .dms-test-zahlen .falsch, .dms-test-tab td.falsch { color: #b42318; }
.dms-test-tab { width: auto; margin-bottom: 12px; } .dms-test-tab tr.aktuell td { background: #eef5ee; }
.dms-test-fehlt { display: inline-block; margin-right: 10px; }
.dms-einst-zahlen { display: flex; gap: 18px; flex-wrap: wrap; font-size: .78rem; }
.dms-einst-zahlen label { display: inline-flex; align-items: center; gap: 6px; }
.dms-einst-zahlen input { width: 64px; text-align: right; }
.dms-regeln { font-size: .76rem; }
.dms-regeln td, .dms-regeln th { padding: 2px 8px; }
.dms-regeln input.zahl { width: 56px; text-align: right; }
.dms-regeln tr.aus td { color: #9aa5b1; }
.dms-regeln .mitte { text-align: center; }
@media (max-width: 1100px) { .dms-drei { grid-template-columns: 220px minmax(0, 1fr); } .dms-rechts { grid-column: 1 / -1; max-height: 40vh; } }
.mf-menu-zahl { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e8892b; color: #fff; font-size: .66rem; font-weight: 700; line-height: 16px; text-align: center; vertical-align: middle; }
.dms-im-dokument { border: 1px solid #c3cfdf; border-radius: 12px; padding: 2px 10px; font-size: .74rem; width: 170px; background: #fff; outline: 0; }
.dms-im-dokument:focus { border-color: var(--mf-blau); box-shadow: 0 0 0 2px rgba(47, 95, 174, .18); }
.mv-chip.groesse { background: #eef2f7; color: #334155; border-color: #c9d4e2; font-variant-numeric: tabular-nums; }
.mv-farbe-zelle { min-width: 0; overflow: hidden; }
.mv-farbe-vorschau.klein { padding: 1px 8px; font-size: .72rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-zeile.mv-kopf { position: sticky; top: 0; z-index: 1; background: #eef2f7; font-size: .72rem; font-weight: 700; color: #46566b; text-transform: uppercase; letter-spacing: .03em; cursor: default; padding-top: 5px; padding-bottom: 5px; }
.mv-zeile.mv-kopf:hover { background: #eef2f7; }
.mv-zeile .rechts { text-align: right; } .mv-zeile .mitte { text-align: center; }
.mv-zeile.inaktiv .mv-nr, .mv-zeile.inaktiv .mv-name, .mv-zeile.inaktiv .mv-firma, .mv-zeile.inaktiv .mv-ort { color: #9aa5b1; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.mv-groesse { text-align: right; font-size: .78rem; color: #334155; font-variant-numeric: tabular-nums; }
.mv-aktiv { text-align: center; }
.mv-farbe-zelle { display: flex; align-items: center; gap: 4px; }
.mv-farbe-vorschau.waehlbar { cursor: pointer; position: relative; background: #2b3a52; }
.mv-farbe-vorschau.waehlbar input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mv-nur-ansicht { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .78rem; color: #6b4a00; font-weight: 600; }
.mv-karte .feld-eingabe input[readonly]:not(.berechnet), .mv-karte .feld-eingabe select:disabled { background: #eef1f5; color: #5d6b7a; }
.mv-details-titel .mv-farbe-vorschau { margin-left: 6px; }
@media (max-width: 1000px) { .mv-karten { grid-template-columns: 1fr; } }
.pfade-haupt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; margin: 4px 0 10px; background: #eef4fb; border: 1px solid #c9d7ea; border-radius: 6px; }
.pfade-haupt-feld { flex: 0 1 620px; min-width: 320px; }
.pfade-haupt-feld .feld > label { font-weight: 700; color: #c62828; }

/* ---------- DMS-Ablage: Ordnerbaum + Liste (ab 3.04) ---------- */
.dms-ablage { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 8px; }
.dms-ablage.mit-vorschau { grid-template-columns: 270px minmax(0, 1.1fr) minmax(0, 1fr); }
.dms-ablage-baum { display: flex; flex-direction: column; min-height: 0; border: 1px solid #b9c6d6; border-radius: 8px; background: linear-gradient(180deg, #fbfcfe, #f3f6fa); overflow: hidden; }
.dms-baum-leiste { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #e1e8f0; background: #fff; }
.dms-baum-titel { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #46566b; margin-right: auto; }
.dms-knopf:disabled { opacity: .35; cursor: default; background: none; }
.dms-baum { flex: 1; overflow: auto; padding: 6px 4px 10px; }
.dms-baum-zeile { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px 0 6px; margin: 1px 2px; border-radius: 6px; cursor: pointer; font-size: .8rem; color: #1f2d3d; user-select: none; transition: background .12s; }
.dms-baum-zeile:hover { background: #e8eff8; }
.dms-baum-zeile.aktiv { background: var(--mf-blau, #2f5fae); color: #fff; }
.dms-baum-zeile.aktiv .dms-baum-icon, .dms-baum-zeile.aktiv .dms-baum-auf, .dms-baum-zeile.aktiv .dms-baum-schloss { color: #fff !important; }
.dms-baum-zeile.aktiv .dms-baum-zahl { background: rgba(255, 255, 255, .25); color: #fff; }
.dms-baum-zeile.ziel { background: #fff4cc; box-shadow: inset 0 0 0 2px #f1c232; color: #1f2d3d; }
.dms-baum-auf { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: #6b7785; border-radius: 4px; flex: none; }
.dms-baum-auf:hover { background: rgba(0, 0, 0, .06); } .dms-baum-auf.leer { visibility: hidden; }
.dms-baum-auf .mud-icon-root { font-size: 18px; }
.dms-baum-icon { font-size: 19px !important; color: #e0a526; flex: none; }
.dms-baum-icon.oben { color: #d48806; }
.dms-baum-icon.wurzel { color: var(--mf-blau, #2f5fae); }
.dms-baum-icon.unverteilt { color: #7a8796; }
.dms-baum-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.dms-baum-schloss { font-size: 14px !important; color: #b45309; flex: none; }
.dms-baum-zahl { font-size: .66rem; font-weight: 600; color: #46566b; background: #e3e9f1; border-radius: 9px; padding: 0 7px; min-width: 20px; text-align: center; flex: none; }
.dms-ablage-liste { min-height: 0; overflow: auto; border: 1px solid #b9c6d6; border-radius: 8px; background: #fff; }
.dms-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.dms-tabelle th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; color: #46566b; font-size: .7rem; font-weight: 700; text-align: left; padding: 7px 8px; border-bottom: 1px solid #d5dde8; cursor: pointer; white-space: nowrap; user-select: none; }
.dms-tabelle th:hover, .dms-tabelle th.sortiert { color: var(--mf-blau, #2f5fae); }
.dms-tabelle td { padding: 5px 8px; border-bottom: 1px solid #eef2f7; white-space: nowrap; color: #1f2d3d; }
.dms-tabelle tbody tr { cursor: pointer; }
.dms-tabelle tbody tr:hover td { background: #f1f5fa; }
.dms-tabelle tbody tr.aktiv td { background: #dbe6f6; }
.dms-tabelle tbody tr.aktiv td:first-child { box-shadow: inset 3px 0 0 var(--mf-blau, #2f5fae); }
.dms-tab-titel { max-width: 340px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dms-tab-ordner { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #5d6b7a !important; }
@media (max-width: 1500px) { .dms-ablage, .dms-ablage.mit-vorschau { grid-template-columns: 230px minmax(0, 1fr) minmax(0, .9fr); } .dms-ablage:not(.mit-vorschau) { grid-template-columns: 230px minmax(0, 1fr); } }

/* Revisionssicherheit, Verlauf */
.dms-revision { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: #1b6e3a; margin-top: 2px; }
.dms-pruefung { font-size: .74rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; margin-top: 4px; }
.dms-pruefung.ok { background: var(--mf-gruen-bg, #e6f4ea); color: var(--mf-gruen-text, #1b6e3a); }
.dms-pruefung.fehler { background: #fde8e8; color: #b42318; }
.dms-verlauf-kopf { cursor: pointer; display: flex; align-items: center; gap: 2px; user-select: none; }
.dms-verlauf { width: 100%; border-collapse: collapse; font-size: .62rem; line-height: 1.3; }
.dms-verlauf th { text-align: left; color: #5d6b7a; font-weight: 600; padding: 2px 4px; border-bottom: 1px solid #e3e9f0; }
.dms-verlauf td { padding: 2px 4px; border-bottom: 1px solid #f0f3f7; vertical-align: top; color: #334155; }
.dms-verlauf td.nowrap { white-space: nowrap; }

/* DMS-Einstellungen mit Reitern, Ordnerrechte */
.dms-einst-rahmen.eingebettet { height: auto; overflow: visible; background: none; }
.dms-einst-rahmen.eingebettet .dms-einstellungen { padding: 4px 0; max-width: none; }
.dms-einst-reiter .mud-tabs-tabbar { background: transparent; }
.dms-einst-reiter-inhalt { padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.dms-rechte-raster { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; min-height: 320px; }
.dms-rechte-raster > .dms-rechte-baum { flex: 0 0 300px; min-height: 320px; align-self: stretch; }
.dms-rechte-raster > .dms-rechte-rechts { flex: 1 1 460px; max-width: 580px; min-width: min(460px, 100%); }
.dms-rechte-raster > .dms-sicht { flex: 1 1 340px; }
/* ab 3.99.320: Ordnerrechte → Sicht von Benutzer/Gruppe */
.dms-sicht { display: flex; flex-direction: column; gap: 6px; min-width: 0; border-left: 1px solid var(--mf-linie, #d5dbe1); padding-left: 12px; }
.dms-sicht-kopf { display: flex; align-items: center; gap: 6px 8px; font-size: .78rem; flex-wrap: wrap; }
.dms-sicht-kopf b { white-space: nowrap; }
.dms-sicht-kopf .mud-icon-root { color: var(--mf-gruen, #0f7a6c); }
.dms-sicht-kopf .aw { flex: 1 1 220px; min-width: 0; width: auto; }
.dms-sicht-info { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .76rem; color: #475569; }
.dms-sicht-info > span, .dms-sicht-info label { white-space: nowrap; }
.dms-sicht-gruppe { display: inline-flex; align-items: center; gap: 4px; }
.dms-sicht-liste { border: 1px solid var(--mf-linie, #d5dbe1); background: #fff; max-height: 560px; overflow: auto; font-size: .76rem; }
.dms-sicht-zeile { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; cursor: pointer; white-space: nowrap; }
.dms-sicht-zeile:hover { background: #f1f5f4; }
.dms-sicht-zeile.an { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 12%, #fff); }
.dms-sicht-zeile .mud-icon-root { color: #e0a93b; flex: none; }
.dms-sicht-zeile.aus { color: #94a3b8; }
.dms-sicht-zeile.aus .mud-icon-root { color: #b91c1c; }
.dms-sicht-zeile .dms-sicht-schloss { color: #b45309; font-size: 14px; }
.dms-sicht-name { overflow: hidden; text-overflow: ellipsis; min-width: 80px; flex: 0 1 auto; }
.dms-sicht-recht { margin-left: auto; padding-left: 12px; font-size: .7rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dms-sicht-zeile.aus .dms-sicht-recht { color: #b91c1c; }
.dms-rechte-baum { border: 1px solid #c9d4e2; border-radius: 8px; background: #f8fafc; max-height: 520px; overflow: auto; }
.dms-rechte-rechts { display: flex; flex-direction: column; gap: 8px; }
.dms-rechte-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .86rem; color: #142030; }
.dms-rechte-kopf .mud-icon-root { color: #e0a526; }
.dms-rechte-stand { font-size: .7rem; padding: 1px 8px; border-radius: 9px; background: #e7ecf2; color: #46566b; display: inline-flex; align-items: center; gap: 3px; }
.dms-rechte-stand.eigen { background: #fff1d6; color: #8a5300; } .dms-rechte-stand.eigen .mud-icon-root { font-size: 13px; color: #b45309; }
.dms-rechte-stand.frei { background: var(--mf-gruen-bg, #e6f4ea); color: var(--mf-gruen-text, #1b6e3a); }
.dms-rechte-tabelle td, .dms-rechte-tabelle th { font-size: .78rem; }
.dms-rechte-rechts select { border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; padding: 3px 6px; font-size: .78rem; background: #fff; }
@media (max-width: 900px) { .dms-rechte-raster > * { flex-basis: 100% !important; max-width: none !important; } }

.dms-einst-stand.ok { color: var(--mf-gruen-text, #1b6e3a); background: var(--mf-gruen-bg, #e6f4ea); font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.dms-einst-stand.fehler { color: #b42318; background: #fde8e8; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

/* DMS-Ablage: ganze Fläche nimmt Dateien an (ab 3.05), Angaben-Spalte */
.dms-zone.flaeche { all: unset; display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.dms-zone.flaeche > .dms-zone-laedt { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; background: #fff; border: 1px solid #b9c6d6; border-radius: 16px; padding: 4px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: .8rem; }
.dms-flaeche-hinweis { display: none; }
.dms-zone.flaeche.ziel > .dms-ablage { outline: 3px dashed var(--mf-blau, #2f5fae); outline-offset: -3px; border-radius: 8px; }
.dms-zone.flaeche.ziel > .dms-flaeche-hinweis { display: flex; align-items: center; gap: 8px; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--mf-blau, #2f5fae); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: .86rem; font-weight: 600; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 6; }
.dms-baum-zeile.datei-ziel { background: #fff4cc !important; box-shadow: inset 0 0 0 2px #f1c232; color: #1f2d3d !important; }
.dms-baum-offen { font-size: .66rem; font-weight: 700; color: #fff; background: #e8590c; border-radius: 9px; padding: 0 7px; flex: none; }
.dms-baum-tipp { font-size: .68rem; color: #6b7785; padding: 8px 10px; border-top: 1px solid #e1e8f0; background: #fff; }
.dms-ablage.mit-angaben { grid-template-columns: 250px minmax(0, 1fr) 430px; }
.dms-ablage.mit-vorschau.mit-angaben { grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.1fr) 430px; }
.dms-ablage.mit-vorschau.mit-angaben .dms-tabelle.auto :is(td, th):is(:nth-child(3), :nth-child(4)) { display: none; } /* wenig Platz: Art und Ordner ausblenden */
@media (max-width: 1500px) { .dms-ablage.mit-vorschau.mit-angaben { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr) 380px; } .dms-ablage.mit-angaben:not(.mit-vorschau) { grid-template-columns: 220px minmax(0, 1fr) 380px; } }
.dms-vorschlag { border-radius: 4px; padding: 2px 4px; }
.dms-vorschlag.zugeordnet { background: var(--mf-gruen-bg, #e6f4ea); box-shadow: inset 3px 0 0 var(--mf-gruen-text, #1b6e3a); }
.dms-vorschlag.zugeordnet .dms-punkte { background: var(--mf-gruen-text, #1b6e3a); }
.dms-vorschlag .dms-knopf .mud-icon-root { font-size: 15px; }

/* DMS-Ablage: Spaltenbreiten ziehbar (Variablen --b Baum, --l Liste, --a Angaben), kleinere Liste */
.dms-ablage { grid-template-columns: var(--b, 250px) minmax(0, 1fr) !important; }
.dms-ablage.mit-vorschau { grid-template-columns: var(--b, 250px) var(--l, 480px) minmax(0, 1fr) !important; }
.dms-ablage.mit-angaben { grid-template-columns: var(--b, 250px) minmax(0, 1fr) var(--a, 430px) !important; }
.dms-ablage.mit-vorschau.mit-angaben { grid-template-columns: var(--b, 250px) var(--l, 480px) minmax(0, 1fr) var(--a, 430px) !important; }
.dms-ablage > div { position: relative; }
.dms-ablage .dms-mitte, .dms-ablage .dms-rechts { position: relative; }
.spalten-griff { position: absolute; top: 0; bottom: 0; right: 0; width: 7px; cursor: col-resize; z-index: 4; border-radius: 3px; touch-action: none; }
.spalten-griff.links { right: auto; left: 0; }
.spalten-griff:hover, .dms-ablage.zieht .spalten-griff:active { background: rgba(47, 95, 174, .35); }
.dms-ablage:not(.mit-vorschau) .spalten-griff.nur-vorschau { display: none; }
.dms-ablage.zieht { user-select: none; cursor: col-resize; }
.dms-ablage.mit-vorschau.mit-angaben .dms-tabelle.auto :is(td, th):is(:nth-child(3), :nth-child(4)) { display: table-cell; }
.dms-ablage .dms-tabelle { font-size: .7rem; table-layout: fixed; }
.dms-ablage .dms-tabelle th { font-size: .64rem; padding: 5px 6px; }
.dms-ablage .dms-tabelle td { padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; }
.dms-ablage .dms-tabelle .dms-nr { font-size: .64rem; }
.dms-ablage .dms-tabelle .dms-status { font-size: .58rem; padding: 0 5px; }
.dms-ablage .dms-tab-titel { max-width: none; font-weight: 600; }
.dms-ablage .dms-tabelle col.c-nr { width: 78px; } .dms-ablage .dms-tabelle col.c-art { width: 86px; } .dms-ablage .dms-tabelle col.c-ordner { width: 110px; }
.dms-ablage .dms-tabelle col.c-datum { width: 70px; } .dms-ablage .dms-tabelle col.c-stand { width: 86px; }
.dms-tabelle tbody tr.markiert td { background: #e6eefa; }
.dms-tabelle tbody tr.markiert td:first-child { box-shadow: inset 3px 0 0 #8fb0e0; }
.dms-tabelle tbody { user-select: none; }
/* DMS-Ablage-Liste kompakter (ab 3.06): normale Schrift, kleiner, niedrige Zeilen */
.dms-ablage .dms-tabelle { font-size: .66rem; line-height: 1.25; }
.dms-ablage .dms-tab-titel { font-weight: 400; }
.dms-ablage .dms-tabelle td { padding: 2px 6px; }
.dms-ablage .dms-tabelle th { padding: 4px 6px; font-size: .62rem; }
.dms-ablage .dms-tabelle .dms-nr { font-size: .6rem; }
.dms-ablage .dms-tabelle .dms-status { font-size: .56rem; line-height: 1.3; }
/* Reiter „Dokumente“ (ab 3.07): Ablagefläche oben in der Liste, Breite ziehbar */
.dms-reiter-inhalt { grid-template-columns: var(--rl, 280px) minmax(0, 1fr) !important; }
.dms-reiter-links { position: relative; display: flex; flex-direction: column; min-height: 0; }
.dms-reiter-links > .dms-zone.flaeche { border: 1px solid #b9c6d6; border-radius: 6px; background: #fff; overflow: hidden; }
.dms-reiter-links .dms-liste { border: 0; border-radius: 0; flex: 1; }
.dms-reiter-links .spalten-griff { right: -6px; }
.dms-reiter-ablage { display: flex; align-items: center; gap: 8px; margin: 6px; padding: 8px 10px; border: 2px dashed #9fb3cc; border-radius: 8px; background: #f7f9fc; color: #46566b; font-size: .72rem; cursor: pointer; flex: none; }
.dms-reiter-ablage:hover { border-color: var(--mf-blau, #2f5fae); background: #eef4fb; }
.dms-reiter-ablage .mud-icon-root { color: var(--mf-blau, #2f5fae); flex: none; }
.dms-reiter-links .dms-zone.flaeche.ziel { outline: 3px dashed var(--mf-blau, #2f5fae); outline-offset: -3px; }
.dms-reiter-inhalt.zieht { user-select: none; cursor: col-resize; }
/* DMS-Vorschau: Autozoom-Modi (ab 3.07) – Breite der Seite je Modus, multipliziert mit dem Zoom */
.dms-seiten { container-type: size; position: relative; }
.dms-seiten.modus-breite .dms-seite, .dms-seiten.modus-aus .dms-seite, .dms-seiten.modus-selektion .dms-seite { width: calc((100cqw - 32px) * var(--dms-zoom, 1)); }
.dms-seiten.modus-seite .dms-seite { width: calc(min(100cqw - 32px, (100cqh - 32px) * var(--ar, .7071)) * var(--dms-zoom, 1)); }
.dms-seiten.modus-original .dms-seite { width: calc(var(--px, 794px) * var(--dms-zoom, 1)); }
.dms-seiten.selektion-an .dms-seite { cursor: crosshair; }
.dms-selektion { position: absolute; border: 2px dashed var(--mf-blau, #2f5fae); background: rgba(47, 95, 174, .12); pointer-events: none; z-index: 5; }
.dms-zoommodus { border: 1px solid #c3cfdf; border-radius: 4px; padding: 2px 4px; font-size: .72rem; background: #fff; max-width: 200px; }
.dms-seiten { align-items: safe center; }
/* DMS-Notizzettel (ab 3.08) */
.dms-notiz { position: absolute; z-index: 3; display: flex; flex-direction: column; background: #fff7a8; border: 1px solid #d9c84a; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); border-radius: 2px; min-width: 90px; min-height: 50px; }
.dms-notiz-kopf { display: flex; align-items: center; gap: 4px; padding: 1px 4px; background: #f3e46b; font-size: .58rem; color: #6b5d00; cursor: move; user-select: none; touch-action: none; }
.dms-notiz-kopf span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-notiz-weg { all: unset; cursor: pointer; font-size: .7rem; padding: 0 3px; color: #6b5d00; } .dms-notiz-weg:hover { color: #b42318; }
.dms-notiz textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: .78rem; line-height: 1.3; padding: 4px 6px; color: #2b2b2b; min-height: 0; }
.dms-notiz-griff { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, #c9b73a 50%); touch-action: none; }
.dms-seiten.notiz-an .dms-seite { cursor: copy; }
.dms-verlauf-reiter { display: flex; gap: 4px; margin: 2px 0 4px; }
.dms-verlauf-reiter button { all: unset; cursor: pointer; font-size: .62rem; padding: 2px 8px; border-radius: 10px; background: #eef2f7; color: #46566b; }
.dms-verlauf-reiter button.aktiv { background: var(--mf-blau, #2f5fae); color: #fff; }
/* Vorschau-Leiste bricht um statt überzustehen (schmale Vorschau) */
.dms-leiste-rechts { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; min-width: 0; }
.dms-leiste { min-width: 0; }
.dms-zoommodus { max-width: 150px; }
/* Ablage-Liste: bei schmaler Liste Art und Ordner ausblenden, Nr. breiter */
.dms-ablage .dms-tabelle col.c-nr { width: 84px; }
.dms-ablage-liste { container-type: inline-size; }
@container (max-width: 560px) {
  .dms-tabelle.auto :is(td, th):is(:nth-child(3), :nth-child(4)) { display: none; }
  .dms-tabelle.auto col.c-art, .dms-tabelle.auto col.c-ordner { width: 0 !important; }
}
.dms-zoom { white-space: nowrap; }
/* Erfasst mit Uhrzeit, Schrift wie die DMS-Nummer */
.dms-ablage .dms-tabelle col.c-datum { width: 92px; }
.dms-ablage .dms-tabelle td.dms-tab-datum { font-size: .6rem; font-variant-numeric: tabular-nums; }
/* Große Vorschau im Popup (Klick auf die Seite) */
.dms-seite.gross-oeffnen { cursor: zoom-in; }
.dms-seiten.notiz-an .dms-seite.gross-oeffnen { cursor: copy; }
.dms-seiten.selektion-an .dms-seite.gross-oeffnen { cursor: crosshair; }
.dms-vorschau-dialog .mud-dialog-content { padding: 0 !important; }
.dms-vorschau-gross { height: 84vh; background: #8792a0; border-radius: 4px; overflow: hidden; }
/* Reiter „Dokumente“ mit verknüpften Dokumenten: grünes Symbol wie bei Memo – unabhängig von der Einstellung „Hinweis an Reitern“ */
.formular-reiter .mud-tab.reiter-dok { flex-direction: row-reverse !important; }
.formular-reiter .mud-tab.reiter-dok .mud-icon-root { font-size: 14px !important; width: 14px; height: 14px; margin: 0 0 0 4px !important; color: #43a047 !important; transform: rotate(45deg); }
/* Vorschläge/Zuordnungen kompakter (ab 3.09): niedrigere Zeilen, kleinere Schrift */
.dms-detail .dms-vorschlag, .dms-detail .dms-link { padding: 0 4px; gap: 4px; min-height: 22px; }
.dms-detail .dms-link-text { font-size: .68rem; }
.dms-detail .dms-link-bereich { font-size: .6rem; padding: 0 5px; }
.dms-detail .dms-punkte { font-size: .6rem; min-width: 22px; line-height: 1.35; }
.dms-detail .dms-vorschlag .mf-knopf.klein, .dms-detail .dms-link .mf-knopf.klein { font-size: .64rem; padding: 0 7px; min-height: 0; height: 19px; line-height: 17px; }
.dms-detail .dms-vorschlag .dms-knopf { width: 18px; height: 18px; }
.dms-detail .dms-vorschlag .dms-knopf .mud-icon-root { font-size: 13px; }
.dms-detail .dms-auto { font-size: .56rem; }
/* Seite drehen: Knöpfe erscheinen beim Darüberfahren */
.dms-seite-drehen { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; background: rgba(255, 255, 255, .92); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .15s; z-index: 4; }
.dms-seite:hover .dms-seite-drehen { opacity: 1; }
/* DMS-Stempel (ab 3.09) */
.dms-stempel { background: rgba(255, 255, 255, .55); border: 2.5px solid currentColor; border-radius: 6px; box-shadow: none; min-width: 60px; min-height: 22px; transform: rotate(-4deg); justify-content: center; }
.dms-stempel .dms-stempel-text { background: transparent; color: inherit; font-family: "Courier New", Consolas, monospace; font-weight: 700; font-size: clamp(9px, 1.15cqw, 18px); letter-spacing: .06em; justify-content: center; text-align: center; white-space: nowrap; padding: 2px 6px; cursor: move; }
.dms-stempel .dms-notiz-weg { position: absolute; top: -9px; right: -9px; background: #fff; border-radius: 50%; width: 16px; height: 16px; display: none; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.dms-stempel:hover .dms-notiz-weg { display: flex; }
.f-rot { color: #c62828; } .f-blau { color: #1d4ed8; } .f-gruen { color: #1e7b34; } .f-grau { color: #555; }
.dms-stempel-muster { font-family: "Courier New", Consolas, monospace; font-weight: 700; border: 2px solid currentColor; border-radius: 4px; padding: 0 6px; font-size: .78rem; }
.dms-stempel-tabelle input, .dms-stempel-tabelle select { border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; padding: 3px 6px; font-size: .78rem; } .dms-stempel-tabelle input { width: 260px; }
.dms-stempel-wahl { position: relative; display: inline-flex; }
.dms-stempel-liste { position: absolute; top: 100%; right: 0; z-index: 20; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); white-space: nowrap; }
.dms-stempel-liste button { all: unset; cursor: pointer; padding: 3px 6px; border-radius: 4px; } .dms-stempel-liste button:hover { background: #eef4fb; }
/* Vorschläge noch kompakter (3.09) */
.dms-detail .dms-vorschlag, .dms-detail .dms-link { min-height: 18px; padding: 0 3px; gap: 3px; margin: 0; }
.dms-detail .dms-vorschlag + .dms-vorschlag { margin-top: 1px; }
.dms-detail .dms-link-text { font-size: .62rem; line-height: 1.25; }
.dms-detail .dms-link-bereich { font-size: .56rem; line-height: 1.35; padding: 0 4px; }
.dms-detail .dms-punkte { font-size: .56rem; min-width: 20px; line-height: 1.3; }
.dms-detail .dms-vorschlag .mf-knopf.klein, .dms-detail .dms-link .mf-knopf.klein { font-size: .58rem; height: 16px; line-height: 14px; padding: 0 5px; }
.dms-detail .dms-vorschlag .dms-knopf { width: 16px; height: 16px; }
.dms-detail .dms-vorschlag .dms-knopf .mud-icon-root { font-size: 12px; }
.dms-detail .dms-auto { font-size: .52rem; padding: 0 3px; }
.dms-detail .dms-weg { font-size: .62rem; }
/* Reiter „Dokumente“ kompakt wie die DMS-Ablage (ab 3.10): kleine, normale Schrift; Info-Zeile in der Schrift der DMS-Nummer */
.dms-reiter .dms-karte { padding: 3px 6px; gap: 6px; }
.dms-reiter .dms-karte img, .dms-reiter .dms-karte-bild { width: 30px; height: 40px; }
.dms-reiter .dms-karte-text { gap: 0; }
.dms-reiter .dms-karte-titel { font-size: .66rem; font-weight: 400; line-height: 1.3; }
.dms-reiter .dms-karte-info { font-family: inherit; font-size: .62rem; color: #1d3f75; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dms-reiter .dms-karte-info .dms-nr { font-family: inherit; font-size: inherit; font-weight: 600; }
.dms-reiter .dms-karte-knoepfe { margin-top: 0; gap: 6px; }
.dms-reiter .dms-karte-knoepfe .dms-link-text { font-size: .6rem; }
.dms-reiter .dms-karte-knoepfe .dms-weg { font-size: .62rem; line-height: 1; }
.dms-reiter .dms-reiter-ablage { font-size: .64rem; padding: 5px 8px; margin: 4px; }
/* Stempel neu (ab 3.10): Stichwort groß, Fußzeile klein, doppelter Rahmen, Tinte (multiply), Größe wächst mit der Seite */
.dms-seite { container-type: inline-size; }
.dms-notiz.dms-stempel { width: auto !important; height: auto !important; min-width: 0; min-height: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; mix-blend-mode: multiply; }
.dms-stempel .dms-stempel-text { display: block; padding: 0; background: transparent; font-size: clamp(7px, 1.55cqw, 26px); cursor: move; }
.dms-stempel-bild { display: inline-flex; flex-direction: column; align-items: center; gap: .18em; padding: .38em 1em .42em; border: .17em solid currentColor; border-radius: .5em;
    box-shadow: inset 0 0 0 .14em #fff, inset 0 0 0 .24em currentColor; background: rgba(255, 255, 255, .35); line-height: 1.05; white-space: nowrap;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; transform: rotate(-4deg); opacity: .92; }
.dms-stempel-kopfzeile { font-weight: 800; font-size: 1.3em; letter-spacing: .16em; padding-left: .16em; text-transform: uppercase; }
.dms-stempel-fuss { font-weight: 600; font-size: .7em; letter-spacing: .05em; font-variant-numeric: tabular-nums; padding-top: .2em; border-top: .09em solid currentColor; }
.f-rot { color: #c0262d; } .f-blau { color: #1f4fb5; } .f-gruen { color: #15803d; } .f-grau { color: #4b5563; }
.dms-stempel-bild.muster { font-size: 10px; transform: none; opacity: 1; background: #fff; }
/* Stempelauswahl: moderne Karte, Stempel als Vorschau */
.dms-stempel-liste { min-width: 210px; padding: 6px; gap: 2px; border: 1px solid #dfe5ee; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 30, 60, .18), 0 2px 6px rgba(15, 30, 60, .08); }
.dms-stempel-liste-kopf { display: flex; flex-direction: column; padding: 4px 8px 6px; margin-bottom: 2px; border-bottom: 1px solid #eef2f7; font-size: .72rem; font-weight: 700; color: #1f2d3d; }
.dms-stempel-liste-kopf small { font-size: .62rem; font-weight: 400; color: #6b7a8c; }
.dms-stempel-liste button { display: flex; align-items: center; justify-content: center; padding: 7px 10px; border-radius: 7px; transition: background .12s; }
.dms-stempel-liste button:hover { background: #f1f5fb; }
.dms-stempel-liste button:hover .dms-stempel-bild { transform: rotate(-3deg) scale(1.04); }
.dms-stempel-liste .dms-stempel-bild { transition: transform .12s; }
/* Reiter „Dokumente“: rechte Spalte mit den Angaben wie in der DMS-Ablage (ab 3.10), Breite ziehbar */
.dms-reiter-inhalt.mit-angaben { grid-template-columns: var(--rl, 280px) minmax(0, 1fr) var(--ra, 360px) !important; }
.dms-reiter-rechts { position: relative; overflow: visible; }
.dms-reiter-rechts > .dms-detail { height: 100%; overflow-y: auto; }
.dms-reiter-rechts .spalten-griff.links { left: -6px; }
.dms-reiter-angaben { margin: 2px 8px 4px; font-size: .64rem; flex: none; align-self: flex-start; }
.dms-notiz.dms-stempel { overflow: visible; }
.dms-stempel .dms-stempel-text { font-size: clamp(8px, 1.8cqw, 28px); overflow: visible; }
/* Stempelfarbe frei wählbar (ab 3.10) */
.dms-farbwahl { display: inline-flex; align-items: center; gap: 6px; }
.dms-farbwahl input[type=color] { width: 34px; height: 24px; padding: 1px; border: 1px solid #c9d4e2; border-radius: 5px; background: #fff; cursor: pointer; }
.dms-farbwahl input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .dms-farbwahl input[type=color]::-webkit-color-swatch { border: 0; border-radius: 3px; }
.dms-farbwahl code { font-size: .68rem; color: #5d6b7a; min-width: 56px; }
.dms-farbpunkt { all: unset; width: 14px; height: 14px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dms-farbpunkt:hover { transform: scale(1.2); }
/* Zugeordnet: Anzahl je Kategorie (ab 3.11) */
.dms-zaehler { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.dms-zaehler-chip { font-size: .64rem; padding: 1px 8px; border-radius: 10px; background: var(--mf-gruen-bg, #e6f4ea); color: var(--mf-gruen-text, #1b6e3a); border: 1px solid var(--mf-gruen-rand, #b7dcb9); white-space: nowrap; }
.dms-zaehler-chip b { font-weight: 700; }
/* Volltext-Ansicht (ab 3.11): erkannter Text je Seite */
.dms-volltext { width: min(100%, calc(900px * var(--dms-zoom, 1))); display: flex; flex-direction: column; gap: 12px; }
.dms-volltext-quelle { align-self: center; font-size: .7rem; color: #fff; background: rgba(20, 32, 48, .55); padding: 3px 12px; border-radius: 12px; }
.dms-volltext-seite { background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); padding: 14px 20px 18px; }
.dms-volltext-kopf { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; color: #1d3f75; border-bottom: 1px solid #e3e9f1; padding-bottom: 4px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.dms-volltext-kopf span { font-weight: 400; color: #8a96a3; text-transform: none; letter-spacing: 0; }
.dms-volltext pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: Consolas, "Cascadia Mono", monospace; font-size: calc(.74rem * var(--dms-zoom, 1)); line-height: 1.45; color: #1f2d3d; user-select: text; }
.dms-volltext mark { background: #ffe066; color: inherit; border-radius: 2px; padding: 0 1px; }
.dms-treffer-info.oben { flex: none; align-self: center; white-space: nowrap; }
/* Vorschläge per Klick zuordnen/lösen (ab 3.11) */
.dms-detail .dms-vorschlag.klickbar { cursor: pointer; user-select: none; }
.dms-detail .dms-vorschlag.klickbar:hover { background: #eef4fb; }
.dms-detail .dms-vorschlag.zugeordnet.klickbar:hover { background: #d7eedd; }
.dms-detail .dms-vorschlag .dms-link-text { cursor: inherit; }
/* Angaben: Vorschläge scrollen, „Von Hand zuordnen“ und „Datei“ bleiben sichtbar (ab 3.11) */
.dms-rechts > .dms-detail { height: 100%; min-height: 0; overflow-y: auto; box-sizing: border-box; }
.dms-detail > * { flex: none; }
.dms-detail > .dms-detail-scroll { flex: 1 1 auto; min-height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; border-bottom: 1px solid #e3e9f1; }
.dms-rechts:has(> .dms-detail) { overflow: hidden; }
/* Vorschau neu geordnet (ab 3.11): Zoom/Volltext/Original oben in einer Zeile, Werkzeuge als schmale Leiste links */
.dms-betrachter .dms-leiste { flex-wrap: nowrap; }
.dms-betrachter .dms-leiste-titel { flex: 1 1 auto; min-width: 60px; max-width: none; }
.dms-betrachter .dms-leiste-rechts { flex: none; flex-wrap: nowrap; }
.dms-betrachter .dms-leiste .dms-nr, .dms-betrachter .dms-leiste-info, .dms-betrachter .dms-treffer-info { flex: none; }
.dms-koerper { display: flex; flex: 1 1 auto; min-height: 0; }
.dms-koerper > .dms-seiten { flex: 1 1 auto; min-width: 0; }
.dms-werkzeuge { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; background: #f4f6f9; border-right: 1px solid #b9c6d6; position: relative; z-index: 6; }
.dms-wz { all: unset; box-sizing: border-box; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--mf-blau, #2f5fae); cursor: pointer; position: relative; }
.dms-wz:hover { background: #e3ecf8; } .dms-wz.an { background: var(--mf-blau, #2f5fae); color: #fff; }
.dms-wz .mud-icon-root { font-size: 18px; }
.dms-wz-zahl { position: absolute; top: -3px; right: -4px; min-width: 13px; height: 13px; padding: 0 3px; box-sizing: border-box; border-radius: 7px; background: #f0b429; color: #3a2a00; font-size: .55rem; font-weight: 700; line-height: 13px; text-align: center; }
.dms-wz-info { display: flex; flex-direction: column; align-items: center; font-size: .6rem; color: #5d6b7a; }
.dms-werkzeuge .dms-stempel-wahl { display: flex; }
.dms-werkzeuge .dms-stempel-liste { top: 0; left: calc(100% + 6px); right: auto; }
/* breite Vorschau: alles in einer Zeile; schmale: Zoom/Original rutschen rechtsbündig in die zweite Zeile */
.dms-betrachter .dms-leiste { flex-wrap: wrap; row-gap: 4px; }
.dms-betrachter .dms-leiste-titel { flex: 1 1 120px; }
.dms-betrachter .dms-leiste-rechts { margin-left: auto; gap: 3px; }
.dms-betrachter .dms-zoommodus { max-width: 140px; }
.dms-zone-laedt { pointer-events: none; } /* Hinweis „wird hochgeladen“ blockiert kein weiteres Hineinziehen (ab 3.11) */
.dms-zone-zahl { font-variant-numeric: tabular-nums; font-weight: 600; }
/* „Dokumente hinzufügen und verarbeiten“ unten im Ordnerbereich (ab 3.11) */
.dms-warteschlange { display: none; flex: none; margin: 6px; border: 1px solid #b9c6d6; border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 40, 80, .08); }
.dms-warteschlange.an { display: block; }
.dms-warteschlange .ws-kopf { padding: 5px 9px; font-size: .66rem; font-weight: 700; color: #1d3f75; background: #eef3fa; border-bottom: 1px solid #dfe6ef; text-transform: uppercase; letter-spacing: .03em; }
.dms-warteschlange .ws-zeilen { max-height: 38vh; overflow-y: auto; }
.dms-warteschlange .ws-zeile { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 6px; padding: 3px 8px; border-bottom: 1px solid #f0f3f7; font-size: .64rem; transition: opacity .4s; position: relative; }
.dms-warteschlange .ws-zeile.ausblenden { opacity: 0; }
.dms-warteschlange .ws-symbol { grid-row: 1 / 3; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #c3ccd8; }
.dms-warteschlange .ws-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2d3d; }
.dms-warteschlange .ws-stand { grid-column: 2 / 4; font-family: Consolas, "Cascadia Mono", monospace; font-size: .58rem; color: #6b7a8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dms-warteschlange .ws-zeile.laedt .ws-symbol, .dms-warteschlange .ws-zeile.verarbeitet .ws-symbol { background: none; border: 2px solid var(--mf-blau, #2f5fae); border-right-color: transparent; box-sizing: border-box; animation: ws-dreh .8s linear infinite; }
.dms-warteschlange .ws-zeile.verarbeitet .ws-stand { color: var(--mf-blau, #2f5fae); }
.dms-warteschlange .ws-zeile.fertig { background: var(--mf-gruen-bg, #e6f4ea); } .dms-warteschlange .ws-zeile.fertig .ws-symbol { background: var(--mf-gruen-text, #1b6e3a); } .dms-warteschlange .ws-zeile.fertig .ws-stand { color: var(--mf-gruen-text, #1b6e3a); }
.dms-warteschlange .ws-zeile.doppelt .ws-symbol { background: #f0b429; } .dms-warteschlange .ws-zeile.doppelt .ws-stand { color: #8a5a00; }
.dms-warteschlange .ws-zeile.fehler { background: #fdecec; } .dms-warteschlange .ws-zeile.fehler .ws-symbol { background: #b42318; } .dms-warteschlange .ws-zeile.fehler .ws-stand { color: #b42318; white-space: normal; }
.dms-warteschlange .ws-weg { all: unset; cursor: pointer; position: absolute; top: 2px; right: 6px; font-size: .62rem; color: #b42318; }
@keyframes ws-dreh { to { transform: rotate(360deg); } }
/* Mandantenverwaltung: mehr Abstand zwischen Liste und Details (ab 3.12) */
.mv-details { margin-top: 22px; }
.mv-details-titel { padding-top: 12px; border-top: 1px solid #d5dde8; }
/* Nutzungszeiten (ab 3.12) */
.nz-ansicht { display: flex; flex-direction: column; gap: 10px; }
.nz-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; }
.nz-leiste input[type=date], .nz-leiste select { border: 1px solid #c9d4e2; border-radius: 4px; padding: 3px 6px; font: inherit; background: #fff; }
.nz-schalter { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid #c9d4e2; border-radius: 8px; background: #fff; cursor: pointer; }
.nz-schalter input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--mf-blau, #2f5fae); }
.nz-summen { display: flex; flex-wrap: wrap; gap: 8px; }
.nz-summe { display: flex; flex-direction: column; min-width: 160px; padding: 8px 12px; border: 1px solid #d5dde8; border-radius: 8px; background: #fff; font-size: .76rem; }
.nz-summe .nz-std { font-size: 1.3rem; font-weight: 700; color: var(--mf-blau-dunkel, #2d58a3); font-variant-numeric: tabular-nums; }
.nz-summe small { color: #6b7a8c; }
.nz-tabelle { font-size: .76rem; } .nz-tabelle .rechts { text-align: right; font-variant-numeric: tabular-nums; }
/* ab 3.99.41: Uhrzeit-Skala im Kopf und feine Stundenlinien durch alle Zeilen */
.nz-tabelle td.nz-bloecke, .nz-tabelle th.nz-bloecke { min-width: 360px; width: 60%; height: 1px; padding-top: 0; padding-bottom: 0; }
.nz-raster { position: relative; height: 100%; min-height: 34px; display: flex; align-items: center; }
.nz-raster.nz-skala { min-height: 40px; align-items: flex-end; padding-bottom: 4px; }
.nz-skala .nz-titel { position: absolute; left: 0; top: 4px; }
.nz-linie { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid #e3e9f1; pointer-events: none; }
.nz-linie.stark { border-left-color: #cbd5e2; }
.nz-skala .nz-linie { top: auto; height: 6px; bottom: 0; border-left-color: #b6c2d2; }
.nz-uhr { position: absolute; bottom: 8px; transform: translateX(-50%); font-size: .64rem; font-weight: 600; color: #6b7a8c; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.nz-uhr.erste { transform: none; } .nz-uhr.letzte { transform: translateX(-100%); }
.nz-balken { position: relative; display: block; width: 100%; height: 8px; border-radius: 4px; background: rgba(233,238,245,.7); margin: 3px 0; }
.nz-balken span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--mf-blau, #2f5fae); }
.nutzung-hinweis { display: flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: .7rem; color: #6b5200; background: #fff7e0; }
.nutzung-symbol { font-size: 15px !important; margin-left: 4px; opacity: .8; }
/* Mandantenverwaltung: Serververbindung (ab 3.12) */
.mv-vb { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; padding: 1px 8px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }
.mv-vb .mv-vb-punkt { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b4; }
.mv-vb.ok { color: var(--mf-gruen-text, #1b6e3a); background: var(--mf-gruen-bg, #e6f4ea); border-color: var(--mf-gruen-rand, #b7dcb9); } .mv-vb.ok .mv-vb-punkt { background: #22a04b; box-shadow: 0 0 0 3px rgba(34, 160, 75, .18); }
.mv-vb.fehler { color: #b42318; background: #fdecec; border-color: #f5c2c0; } .mv-vb.fehler .mv-vb-punkt { background: #d92d20; animation: mv-blink 1s ease-in-out infinite; }
.mv-vb.prueft { color: #6b7a8c; } .mv-vb.prueft .mv-vb-punkt { animation: mv-blink 1s ease-in-out infinite; }
@keyframes mv-blink { 50% { opacity: .35; } }
.dms-baum-offen.klickbar { cursor: pointer; } .dms-baum-offen.klickbar:hover { filter: brightness(1.1); box-shadow: 0 0 0 2px rgba(240, 120, 20, .3); }
/* Werkzeugleiste links nur so hoch wie ihre Knöpfe (ab 3.12) */
.dms-koerper { background: #8792a0; }
.dms-werkzeuge { align-self: flex-start; padding: 6px 0 8px; border-bottom: 1px solid #b9c6d6; border-radius: 0 0 8px 0; box-shadow: 1px 1px 4px rgba(0, 0, 0, .15); }
/* Titel in der Vorschauleiste in der Schrift der DMS-Nummer (ab 3.12) */
.dms-betrachter .dms-leiste-titel { font-family: Consolas, "Cascadia Mono", monospace; font-size: .7rem; font-weight: 400; color: #1d3f75; }
.dms-zoom.klickbar { cursor: pointer; user-select: none; border-radius: 4px; padding: 1px 3px; } .dms-zoom.klickbar:hover { background: #e3ecf8; color: var(--mf-blau, #2f5fae); }
/* Volltext deutlich kleiner (ab 3.12); wächst mit dem Zoom mit */
.dms-volltext pre { font-size: calc(.6rem * var(--dms-zoom, 1)); line-height: 1.35; }
.dms-volltext-seite { padding: 10px 14px 12px; }
/* Stempel an der Maus (ab 3.13): halbdurchsichtig, folgt dem Zeiger, Klick legt ihn ab */
.dms-stempel-geist { position: absolute; z-index: 8; pointer-events: none; opacity: .7; mix-blend-mode: multiply; display: none; }
.dms-stempel-geist .dms-stempel-text { display: block; font-size: clamp(8px, 1.8cqw, 28px); }
.dms-seiten.stempel-an .dms-seite { cursor: none; }
/* Notizzettel an der Maus (ab 3.13) */
.dms-notiz.dms-notiz-geist { position: absolute; z-index: 8; pointer-events: none; opacity: .8; display: none; width: 24%; height: 13%; }
.dms-notiz-geist-text { padding: 4px 6px; font-size: .7rem; color: #8a7a3a; font-style: italic; }
.dms-seiten.notiz-an:not(.stempel-an) .dms-seite { cursor: none; }
.dms-notiz.dms-stempel-geist, .dms-notiz.dms-notiz-geist { display: none !important; pointer-events: none; z-index: 8; }
.dms-notiz.dms-stempel-geist.sichtbar { display: block !important; opacity: .7; }
.dms-notiz.dms-notiz-geist.sichtbar { display: flex !important; }
.dms-stempel-geist, .dms-stempel-geist *, .dms-notiz-geist, .dms-notiz-geist * { pointer-events: none !important; }
/* Suchbegriffe von Hand (ab 3.14) */
.dms-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 28px; padding: 3px 5px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 4px; background: #fff; }
.dms-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 4px 0 8px; border-radius: 10px; background: #e3ecf8; color: #1d3f75; font-size: .68rem; line-height: 1.6; }
.dms-tag button { all: unset; cursor: pointer; font-size: .6rem; padding: 0 3px; border-radius: 50%; color: #5d6b7a; } .dms-tag button:hover { background: #c9d8ee; color: #b42318; }
.dms-tag-eingabe { flex: 1; min-width: 120px; border: 0; outline: 0; font: inherit; font-size: .72rem; padding: 2px; background: transparent; }
.dms-feld .dms-tag-eingabe { border: 0; padding: 2px; background: transparent; }
.dms-farbwahl input.dms-farbcode { width: 74px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .7rem; color: #334155; padding: 2px 5px; border: 1px solid #c9d4e2; border-radius: 4px; text-transform: uppercase; }
/* Dokument mit der Maus verschieben (ab 3.14) */
.dms-seiten:not(.notiz-an):not(.selektion-an) .dms-seite:not(.gross-oeffnen) { cursor: grab; }
.dms-seiten.zieht-hand, .dms-seiten.zieht-hand .dms-seite { cursor: grabbing !important; user-select: none; }
.dms-seite img { -webkit-user-drag: none; user-select: none; }
/* Mandantenverwaltung: freier Speicher auf dem Datenbankserver (ab 3.15) */
.mv-platte-anz { display: inline-flex; flex-direction: column; gap: 2px; font-size: .7rem; color: #334155; min-width: 110px; }
.mv-platte-balken { display: block; height: 6px; border-radius: 3px; background: #e3e9f1; overflow: hidden; }
.mv-platte-balken span { display: block; height: 100%; background: #3a6cc2; }
.mv-platte-anz.eng .mv-platte-balken span { background: #f0a020; } .mv-platte-anz.knapp .mv-platte-balken span { background: #d92d20; } .mv-platte-anz.knapp { color: #b42318; font-weight: 600; }
.mandant-menue-info { display: flex; flex-direction: column; gap: 3px; padding: 6px 12px 8px; font-size: .78rem; } .mandant-menue-info span { font-size: .7rem; color: #6b7a8c; }
.dms-detail .dms-link-hand .dms-punkte { background: var(--mf-gruen-text, #1b6e3a); color: #fff; }
.dms-detail .dms-link-hand .dms-weg { margin-left: auto; }
/* Aus Zuordnungen lernen (ab 3.15) */
.dms-lernen-schalter { margin: 4px 0 6px; font-size: .8rem; }
.dms-gelernt { font-size: .74rem; margin-top: 6px; }
.dms-auto.gelernt { color: #6b3fa0; background: #f1eafb; border-color: #d6c4ef; }
/* Miniaturansicht der Seiten (ab 3.15) */
.dms-miniaturen { flex: none; width: calc(var(--dms-mini, 60px) + 18px); overflow-y: auto; padding: 8px 6px; display: flex; flex-direction: column; gap: 8px; background: #6f7a88; border-right: 1px solid #5d6876; }
.dms-mini { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dms-mini img { width: var(--dms-mini, 60px); height: auto; display: block; background: #fff; border: 2px solid transparent; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.dms-mini span { font-size: .6rem; color: #e8edf3; }
.dms-mini:hover img { border-color: #b9d0ef; }
.dms-mini.aktiv img { border-color: #e8590c; }
.dms-mini.aktiv span { color: #fff; font-weight: 700; }
/* Ordnerbaum kompakter (ab 3.15) */
.dms-baum-zeile { min-height: 22px; font-size: .7rem; gap: 3px; padding: 0 6px 0 4px; }
.dms-baum-icon { font-size: 15px !important; }
.dms-baum-zahl, .dms-baum-offen { font-size: .58rem; padding: 0 5px; min-width: 16px; }
.dms-baum-titel { font-size: .62rem; }
.dms-baum-auf .mud-icon-root { font-size: 15px; }
/* Meine DMS-Ansicht (ab 3.15) */
.dms-ansicht-knopf { flex: none; }
.dms-ansicht { display: flex; flex-direction: column; gap: 10px; }
.dms-ansicht-zeile { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.dms-ansicht-zeile input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--mf-blau, #2f5fae); flex: none; }
.dms-ansicht-zeile > span { display: flex; flex-direction: column; font-size: .82rem; }
.dms-ansicht-zeile small { font-size: .7rem; color: #6b7a8c; }
.dms-ansicht-zeile.auswahl { justify-content: space-between; align-items: center; }
.dms-ansicht-zeile select { border: 1px solid #c9d4e2; border-radius: 4px; padding: 3px 6px; font: inherit; font-size: .78rem; }
/* 3.16: Dauer je Importschritt in „Letzte Importe“ */
.letzte-importe td.schritte { color: #475569; }
.letzte-importe .schritt-dauer { display: inline-block; margin-right: 3px; padding: 0 4px; border-radius: 7px; background: #eef2f7; font-size: .6rem; line-height: 1.45; }
.letzte-importe tr.schritte-zeile td { padding-top: 0; padding-bottom: 3px; }
.letzte-importe tr:has(+ tr.schritte-zeile) td { border-bottom: none; }
.letzte-importe .schritte-titel { color: #94a3b8; font-size: .6rem; margin-right: 4px; }
.letzte-importe .schritt-dauer b { font-weight: 600; color: #1e293b; }
/* 3.16: Integritätsprüfung (Revisionssicherheit) */
.mf-menu-eintrag.dms-integritaet-menue { color: #fff !important; background: #c62828 !important; font-weight: 700; border-radius: 6px; margin: 4px 6px; animation: dms-integ-puls 2s ease-in-out infinite; }
.mf-menu-eintrag.dms-integritaet-menue:hover { background: #a31f1f !important; }
@keyframes dms-integ-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 50% { box-shadow: 0 0 0 5px rgba(198, 40, 40, 0); } }
.dms-integritaet-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 8px; padding: 5px 10px; border: 1px solid #f5b5b5; border-left: 4px solid #c62828;
    border-radius: 6px; background: #fdecec; color: #8a1c1c; font-size: .72rem; }
.dms-integritaet-banner b { color: #c62828; font-size: .8rem; }
.dms-integritaet-banner .mf-knopf { margin-left: auto; background: #c62828; border-color: #c62828; }
.dms-tabelle tr.integritaet-fehler td { color: #b42318; background: #fdecec; }
.dms-tabelle tr.integritaet-fehler td.dms-nr::before { content: "⚠ "; }
.dms-integritaet-detail { margin: 4px 0 6px; padding: 4px 8px; border-radius: 5px; background: #fdecec; border: 1px solid #f5b5b5; color: #b42318; font-size: .7rem; font-weight: 600; }
.fehler-alle-behoben-kopf { color: #1b6e3a; font-weight: 600; }
/* 3.17: Titel im Betrachter und in den Dokument-Karten in der normalen Programmschrift (wie Auswahlfelder bzw. „Dateien hierher ziehen“) */
.dms-betrachter .dms-leiste .dms-nr, .dms-betrachter .dms-leiste-titel { font-family: inherit; font-size: .78rem; font-weight: 400; color: #1f2937; letter-spacing: 0; }
.dms-betrachter .dms-leiste .dms-nr { font-weight: 500; color: #1d3f75; }
.dms-reiter .dms-karte-titel { font-family: inherit; font-size: .64rem; font-weight: 400; color: #46566b; }
/* ===== 3.17: Aufgaben ===== */
.auf-fenster { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 8px; box-sizing: border-box; gap: 8px; background: var(--mf-formular, #dfe7f0); }
.auf-leiste { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.auf-trenner { width: 1px; height: 22px; background: #c3cfdd; margin: 0 4px; }
.auf-filter { all: unset; cursor: pointer; font-size: .72rem; padding: 3px 10px; border-radius: 14px; border: 1px solid #c9d4e2; background: #fff; color: #46566b; display: inline-flex; align-items: center; gap: 5px; }
.auf-filter:hover { border-color: var(--mf-blau, #2f5fae); }
.auf-filter.an { background: var(--mf-blau, #2f5fae); border-color: var(--mf-blau, #2f5fae); color: #fff; }
.auf-filter-zahl { background: #e8eef7; color: #1d3f75; border-radius: 9px; padding: 0 6px; font-size: .64rem; font-weight: 700; }
.auf-filter-zahl.rot { background: #c62828; color: #fff; }
.auf-filter.an .auf-filter-zahl:not(.rot) { background: rgba(255,255,255,.25); color: #fff; }
.auf-suche { min-width: 240px; }
.auf-anzahl { margin-left: auto; font-size: .72rem; color: #5b6b80; }
.auf-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--ar, 34%) var(--ac, 24%); gap: 8px; }
.auf-liste { min-height: 0; overflow: auto; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; }
.auf-rechts { min-height: 0; position: relative; display: flex; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; }
.auf-rechts-inhalt { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
.auf-rechts .spalten-griff.links { left: -7px; }
.auf-raster.zieht { user-select: none; }
.auf-detail .rt { --zeilen: 10; }
.rt-flaeche img { max-width: 100%; height: auto; border-radius: 4px; border: 1px solid #dbe3ee; margin: 4px 0; display: block; }
.rt-flaeche img.rt-laedt { opacity: .5; }
.auf-tabelle { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .76rem; table-layout: fixed; }
.auf-tabelle col.c-titel { width: auto; }
.auf-reiter-tabelle { min-width: 0; }
.auf-tabelle col.c-haken { width: 30px; } .auf-tabelle col.c-prio { width: 50px; } .auf-tabelle col.c-wer { width: 190px; } .auf-tabelle col.c-faellig { width: 104px; }
.auf-tabelle col.c-prozent { width: 116px; } .auf-tabelle col.c-stand { width: 84px; } .auf-tabelle col.c-bezug { width: 170px; }
.auf-tabelle th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; color: #46566b; font-size: .68rem; font-weight: 700; text-align: left; padding: 6px 6px; border-bottom: 1px solid #d5dde8; cursor: pointer; white-space: nowrap; user-select: none; }
.auf-tabelle th:hover, .auf-tabelle th.sortiert { color: var(--mf-blau, #2f5fae); }
.auf-tabelle td { padding: 4px 6px; border-bottom: 1px solid #eef2f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f2d3d; }
.auf-tabelle tr { cursor: pointer; }
.auf-tabelle tr:hover td { background: #f6f9fd; }
.auf-tabelle tr.aktiv td { background: #e3edf9; }
.auf-tabelle tr.kontext td { opacity: .55; }
.auf-tabelle tr.erledigt .auf-titel-text { text-decoration: line-through; color: #7a8796; }
.auf-tabelle tr.ueberfaellig td.auf-haken { box-shadow: inset 3px 0 0 #c62828; }
.auf-check { all: unset; box-sizing: border-box; width: 16px; height: 16px; border: 1.5px solid #8a9bb0; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; background: #fff; }
.auf-check:hover:not(:disabled) { border-color: #2e7d32; }
.auf-check.an { background: #2e7d32; border-color: #2e7d32; }
.auf-klapp { all: unset; width: 14px; display: inline-block; text-align: center; color: #5b6b80; cursor: pointer; font-size: .7rem; }
.auf-klapp.leer { cursor: default; }
.auf-titel-text { margin-left: 2px; }
.auf-kinder { margin-left: 6px; font-size: .62rem; color: #5b6b80; background: #eef2f7; border-radius: 8px; padding: 0 5px; }
.auf-tag { margin-left: 5px; font-size: .6rem; color: #1d3f75; background: #e8eef7; border-radius: 8px; padding: 0 6px; }
.auf-umbenennen { width: calc(100% - 24px); font: inherit; padding: 1px 4px; border: 1px solid var(--mf-blau, #2f5fae); border-radius: 3px; }
.auf-prio { display: inline-block; min-width: 20px; text-align: center; border-radius: 4px; font-size: .66rem; font-weight: 700; padding: 0 4px; }
.auf-prio.p0 { background: #eef2f7; color: #5b6b80; } .auf-prio.p1 { background: #e3edf9; color: #1d3f75; }
.auf-prio.p2 { background: #fff1db; color: #9a5b00; } .auf-prio.p3 { background: #fde2e2; color: #b42318; }
.auf-av { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #dfe8f5; color: #1d3f75; font-size: .56rem; font-weight: 700; margin-right: 2px; flex: none; }
.auf-av.mehr { background: #eef2f7; color: #5b6b80; margin-left: 3px; }
.auf-wer-name { font-size: .74rem; }
.auf-faellig.rot { color: #c62828; font-weight: 600; } .auf-faellig.heute { color: #b45309; font-weight: 600; }
.auf-balken { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #e6ebf2; overflow: hidden; vertical-align: middle; }
.auf-balken i { display: block; height: 6px; background: #3b82c4; }
.auf-stand { font-size: .64rem; padding: 1px 7px; border-radius: 9px; background: #eef2f7; color: #46566b; white-space: nowrap; }
.auf-stand.s1 { background: #e3edf9; color: #1d3f75; } .auf-stand.s2 { background: #fff1db; color: #9a5b00; } .auf-stand.s3 { background: #e6f4ea; color: #1b6e3a; }
/* ab 3.99.27: Abnahme durch den Ersteller */
.auf-stand.abnahme { background: #e48a1e; color: #fff; font-weight: 600; }
.auf-filter-zahl.orange { background: #e48a1e; color: #fff; }
.mf-menu-zahl.auf-abnahme-zahl { background: #e48a1e; color: #fff; margin-left: 4px; }
.auf-abnahme { border: 1px solid #e48a1e; border-left: 5px solid #e48a1e; border-radius: 6px; padding: 8px 10px; margin: 6px 0 8px; font-size: .8rem; display: flex; flex-direction: column; gap: 6px; }
.auf-abnahme.fertig { border-color: #2e7d32; border-left-color: #2e7d32; color: #1b6e3a; flex-direction: row; }
.auf-abnahme-text { white-space: pre-wrap; padding: 6px 8px; border-radius: 4px; border: 1px dashed var(--th-feldrand, #c9d3e0); max-height: 180px; overflow: auto; }
.auf-abnahme-text.leer { font-style: italic; opacity: .7; }
.auf-abnahme-von { display: block; font-size: .7rem; opacity: .7; margin-bottom: 2px; white-space: normal; }
.auf-abnahme-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.auf-bezug { color: #1d3f75; font-size: .7rem; }
.auf-detail { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; font-size: .76rem; }
.auf-detail-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.auf-detail-info { margin-left: auto; color: #6b7a8c; font-size: .66rem; }
.auf-hinweis.rot { background: #fde2e2; color: #b42318; border-radius: 9px; padding: 1px 7px; font-size: .64rem; font-weight: 600; }
.auf-feld { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.auf-feld > span { font-size: .66rem; font-weight: 600; color: #46566b; }
.auf-feld input, .auf-feld select, .auf-feld textarea, .auf-bezug-suche select, .auf-bezug-suche input, .auf-kommentar-neu textarea { font: inherit; font-size: .76rem; padding: 4px 6px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; color: #1f2d3d; min-width: 0; box-sizing: border-box; }
.auf-feld textarea, .auf-kommentar-neu textarea { resize: vertical; }
.auf-zeile { display: flex; gap: 8px; }
.auf-feld.schmal { flex: 0 0 110px; }
.auf-personen { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.auf-person { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 14px; background: #f1f5fa; border: 1px solid #dbe3ee; font-size: .7rem; }
.auf-person-neu { font-size: .7rem !important; padding: 2px 4px !important; border-style: dashed !important; color: var(--mf-blau, #2f5fae) !important; }
.auf-bezug-wahl { display: flex; align-items: center; gap: 6px; }
.auf-bezug-suche { display: flex; gap: 4px; }
.auf-bezug-suche select { flex: 0 0 130px; } .auf-bezug-suche input { flex: 1; }
.auf-bezug-treffer { display: flex; flex-direction: column; border: 1px solid #c9d4e2; border-radius: 6px; max-height: 260px; overflow-y: auto; margin-top: 4px; background: #fff; box-shadow: 0 4px 14px rgba(20, 35, 43, .1); }
.auf-bezug-treffer button { display: block; width: 100%; box-sizing: border-box; flex: none; text-align: left; border: 0; border-bottom: 1px solid #eef2f6; background: transparent; cursor: pointer;
    padding: 6px 10px; font: inherit; font-size: .76rem; line-height: 1.35; color: #1f2d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auf-bezug-treffer button:last-child { border-bottom: 0; }
.auf-bezug-treffer button:hover, .auf-bezug-treffer button:focus { background: #e3f1ee; outline: none; }
.auf-bezug-treffer button b { font-weight: 600; }
.auf-bezug-treffer button small { color: #64748b; margin-left: 4px; }
.auf-bezug-leer { font-size: .72rem; color: #64748b; padding: 4px 2px; }
.auf-detail-fuss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .66rem; }
.auf-detail-fuss .gefahr { margin-left: auto; }
.auf-kommentar-neu { display: flex; gap: 6px; align-items: flex-end; }
.auf-kommentar-neu textarea { flex: 1; }
.auf-notizen { display: flex; flex-direction: column; gap: 6px; }
.auf-notiz { background: #f6f9fd; border: 1px solid #e3eaf3; border-radius: 6px; padding: 5px 8px; }
.auf-notiz.verlauf { background: transparent; border: none; border-left: 2px solid #d5dde8; border-radius: 0; padding: 1px 8px; color: #5b6b80; font-size: .7rem; }
.auf-notiz-kopf { font-size: .64rem; color: #6b7a8c; }
.auf-notiz-text { white-space: pre-wrap; word-break: break-word; }
.auf-verlauf-schalter { font-size: .7rem; }
/* Menü: Zahl offener Aufgaben (rot bei überfälligen) */
.mf-menu-zahl.rot { background: #c62828; }
.auf-reiter { padding: 6px; font-size: .74rem; }
.auf-reiter-neu { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.auf-reiter-neu .mud-icon-root { color: var(--mf-blau, #2f5fae); }
.auf-reiter-neu input:not([type=date]) { flex: 1 1 220px; }
.auf-reiter-neu input, .auf-reiter-neu select { font: inherit; font-size: .74rem; padding: 4px 6px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; min-width: 0; }
.auf-reiter-tabelle { background: #fff; border: 1px solid #dbe3ee; border-radius: 4px; }
.dms-detail .auf-reiter { padding: 2px 0 6px; }
.dms-detail .auf-reiter-neu select, .dms-detail .auf-reiter-neu input[type=date] { flex: 1 1 45%; }
/* 3.17: Datenbank-Verbindung unten im Menü (dezent) */
.mf-db-stand { display: flex; align-items: center; gap: 5px; padding: calc(8px * var(--s)) calc(14px * var(--s)) 0; font-size: .6rem; color: #7f90a6; opacity: .75; cursor: default; white-space: nowrap; }
.mf-db-stand .mf-db-punkt { width: 6px; height: 6px; border-radius: 50%; background: #7f90a6; flex: none; }
.mf-db-stand.ok .mf-db-punkt { background: #3fb950; }
.mf-db-stand.fehler { color: #ff8a80; opacity: 1; }
.mf-db-stand.fehler .mf-db-punkt { background: #f44336; box-shadow: 0 0 0 3px rgba(244, 67, 54, .25); }
.mf-menu-unten .mf-db-stand + .mf-copyright { margin-top: calc(4px * var(--s)); padding-top: 0; }
/* 3.17: Logo „Inntec ONE“ */
.marke-logo { display: inline-flex; align-items: center; gap: calc(var(--marke-h) * .28); line-height: 1; flex: none; }
.marke-logo .marke-zeichen { width: var(--marke-h); height: var(--marke-h); flex: none; display: block; }
.marke-logo .marke-text { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--marke-h) * .06); }
.marke-logo .marke-name { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: calc(var(--marke-h) * .5); letter-spacing: .01em; color: #14232b; }
.marke-logo .marke-zusatz { font-family: "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: calc(var(--marke-h) * .3); letter-spacing: .3em; color: #0f766e; }
.marke-logo .marke-wort { display: block; height: .72em; width: auto; }
.marke-logo .marke-name .marke-wort { height: .8em; } /* ab 3.99.62: NORE / ONE als Pfade */
.marke-logo .marke-zusatz { margin-top: calc(var(--marke-h) * .04); }
.marke-logo.dunkel .marke-name { color: #ffffff; }
.marke-logo.dunkel .marke-zusatz { color: #7fe0d0; }
.mrr-brand .marke-logo { margin-right: 6px; }
/* ab 3.98: Programmversion oben neben dem Logo (zweizeilig: Nummer, Datum) */
.mrr-brand .kopf-version { display: flex; flex-direction: column; justify-content: center; align-self: center; margin-left: 2px; line-height: 1.15;
    font-size: .6rem; font-weight: 400; letter-spacing: .02em; color: #fff; opacity: .5; white-space: nowrap; }
.mrr-brand .kopf-version.link { cursor: pointer; } .mrr-brand .kopf-version.link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 600px) { .mrr-brand .kopf-version { display: none; } }
.pi-kopf .marke-logo { margin-right: 4px; }
.login-marke .login-untertitel { color: #0f766e; font-weight: 600; font-size: .66rem; letter-spacing: .02em; margin: 0 0 2px; white-space: nowrap; }
/* 3.17: animierte Ladeanzeige mit dem Inntec-ONE-Zeichen */
.lade-logo { display: inline-flex; width: var(--lade-g); height: var(--lade-g); flex: none; }
.lade-logo svg { width: 100%; height: 100%; overflow: visible; }
.lade-logo .lade-spur { fill: none; stroke: rgba(15, 118, 110, .14); stroke-width: 3.5; }
.lade-logo .lade-bogen { fill: none; stroke: #0f766e; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 46 136; transform-origin: 32px 32px; animation: lade-dreh 1.1s linear infinite; }
.lade-logo .lade-kachel { transform-origin: 32px 32px; animation: lade-atmen 1.6s ease-in-out infinite; }
.lade-logo .lade-punkt { transform-box: fill-box; transform-origin: center; animation: lade-punkt 1.6s ease-in-out infinite; }
@keyframes lade-dreh { to { transform: rotate(360deg); } }
@keyframes lade-atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(.93); } }
@keyframes lade-punkt { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .lade-logo .lade-bogen, .lade-logo .lade-kachel, .lade-logo .lade-punkt { animation-duration: 3s; } }

/* ======================================================================================================
   3.18/3.19: Farbschema „Petrol“ (Benutzereinstellungen → Bedienung → Farbschema). Wirkt nur mit der Klasse
   „thema-petrol“ am <html> – ohne sie bleibt das klassische Aussehen vollständig unverändert.
   Alle Farben laufen über die Variablen --th-* (ab 3.19 mit der Pipette je Benutzer änderbar).
   ====================================================================================================== */
html.thema-petrol {
    --th-hintergrund: #d2ddda;    /* Arbeitsfläche hinter den Fenstern */
    --th-fenster: #eef3f2;        /* Fensterfläche */
    --th-formular: #eef3f2;       /* Formularbereich/Rahmen (Karten) */
    --th-formular-flaeche: #eef3f2; --th-rahmen-flaeche: #eef3f2; --th-rahmen-titel: #1c2b31; /* ab 3.99.265: Masken (nur mit eigener Farbe wirksam, s. th-eigen-…) */
    --th-rahmen: #b9cbc6;         /* Rahmenlinien */
    --th-feld: #ffffff;           /* Eingabefelder */
    --th-feldrand: #97ada7;       /* Rand der Eingabefelder */
    --th-feld-gesperrt: #e9eeec;  /* schreibgeschützte Felder */
    --th-beschriftung: #1c2b31;   /* Feldbeschriftungen */
    --th-akzent: #0f766e;         /* Knöpfe, aktive Reiter, Fenstertitel */
    --th-akzent-dunkel: #0b5e57;  /* Knöpfe beim Darüberfahren */
    --th-auswahl: #d2ece7;        /* gewählte Zeile */
    --th-leiste: #14232b;         /* Menü- und Kopfleiste */
    --th-menue-text: #dcebea;     /* Schrift im Menü */
    --th-fenstertitel: #dbe5e3;   /* Titel inaktiver Fenster */
    --th-tabellenkopf: #edf2f1;   /* Spaltenköpfe von Listen */
    --th-liste: #ffffff;          /* Listen und Tabellen */
    --th-liste-zebra: #f8fafd;    /* ab 3.99.45: jede 2. Zeile */
    --th-liste-linie: #edf1f6;    /* ab 3.99.45: Linie zwischen den Zeilen */
    --th-liste-text: #1f2d40;     /* ab 3.99.45: Schrift in Listen */
    --th-liste-hover: #e8f0fb;    /* ab 3.99.45: Zeile unter der Maus */
    --th-tabellenkopf-text: #2c3e57; /* ab 3.99.45: Schrift der Spaltenköpfe */

    --mf-nacht: var(--th-leiste); --mf-menue: var(--th-leiste); --mf-menue-hell: color-mix(in srgb, var(--th-leiste), #ffffff 12%);
    --mf-blau: var(--th-akzent); --mf-blau-dunkel: var(--th-akzent-dunkel); --mf-auswahl: var(--th-auswahl); --mf-akzent: color-mix(in srgb, var(--th-akzent), #ffffff 35%);
    --mf-linie: var(--th-rahmen); --mf-feldrand: var(--th-feldrand); --mf-formular: var(--th-formular); --mf-leiste: color-mix(in srgb, var(--th-formular), #000000 4%);
    --mrr-primaer: var(--th-akzent); --mrr-akzent: var(--mf-akzent);
    --mud-palette-primary: var(--th-akzent); --mud-palette-primary-darken: var(--th-akzent-dunkel); --mud-palette-primary-lighten: var(--mf-akzent);
    --mud-palette-primary-hover: color-mix(in srgb, var(--th-akzent), transparent 94%);
}
html.thema-petrol body { background: var(--th-hintergrund); }
/* Kopfleiste und Menü */
html.thema-petrol .mf-reiter > button, html.thema-petrol .mf-reiter .reiter { background: color-mix(in srgb, var(--th-leiste), #ffffff 10%); }
html.thema-petrol .mf-reiter > button:hover, html.thema-petrol .mf-reiter .reiter:hover { background: color-mix(in srgb, var(--th-leiste), #ffffff 18%); }
html.thema-petrol .mf-reiter .aktiv, html.thema-petrol .mf-reiter > button.aktiv { background: var(--th-fenster) !important; color: var(--th-beschriftung) !important; }
html.thema-petrol .mf-kopfknopf:hover { background: color-mix(in srgb, var(--th-leiste), #ffffff 14%); }
html.thema-petrol .mf-menu-gruppe { color: color-mix(in srgb, var(--th-menue-text), var(--th-leiste) 30%); }
html.thema-petrol .mf-menu-eintrag { color: var(--th-menue-text); }
html.thema-petrol .mf-menu-eintrag.geoeffnet { background: color-mix(in srgb, var(--th-leiste), #ffffff 8%); box-shadow: inset 3px 0 0 var(--mf-akzent); }
html.thema-petrol .mf-menu-eintrag.offen, html.thema-petrol .mf-menu-eintrag.offen:hover { color: color-mix(in srgb, var(--th-menue-text), var(--th-leiste) 55%); }
/* Fenster */
html.thema-petrol .fenster { background: var(--th-fenster); border-color: var(--th-rahmen); border-radius: calc(10px * var(--s)); box-shadow: 0 8px 26px rgba(20, 35, 43, .14); }
html.thema-petrol .fenster.aktiv { border-color: color-mix(in srgb, var(--th-akzent), #ffffff 45%); box-shadow: 0 10px 30px rgba(20, 35, 43, .22); }
html.thema-petrol .fenster.maximiert { border-radius: 0; }
html.thema-petrol .fenster-titel { background: var(--th-fenstertitel); border-bottom-color: var(--th-rahmen); }
html.thema-petrol .fenster.aktiv .fenster-titel { background: var(--th-akzent); border-bottom-color: var(--th-akzent-dunkel); }
/* Formularbereich: Fläche getönt, Felder weiß mit deutlichem Rand – klarer Kontrast */
html.thema-petrol .ansicht-formular { background: var(--th-formular); border-color: var(--th-rahmen); border-radius: calc(8px * var(--s)); }
html.thema-petrol .ansicht-liste { background: var(--th-liste); border-color: var(--th-rahmen); border-radius: calc(8px * var(--s)); }
html.thema-petrol .ansicht-formular, html.thema-petrol .mud-dialog { --mf-feldrand: var(--th-feldrand); --mf-linie: var(--th-rahmen); }
html.thema-petrol .formular-leiste { background: var(--mf-leiste); border-bottom-color: var(--th-rahmen); }
html.thema-petrol .leiste-modus { border-color: var(--th-rahmen); }
html.thema-petrol .rahmen { border-color: var(--th-rahmen); border-radius: calc(8px * var(--s)); background: var(--th-formular); }
html.thema-petrol .feld > label, html.thema-petrol .rahmen > legend { color: var(--th-beschriftung); }
html.thema-petrol .feld-eingabe .mud-input.mud-input-outlined { background: var(--th-feld); border-radius: calc(5px * var(--s)); }
html.thema-petrol .feld-eingabe .mud-input.mud-input-outlined:has(input[readonly]:not(.mud-select-input)) { background: var(--th-feld-gesperrt) !important; }
html.thema-petrol .feld-eingabe .mud-input-outlined-border { border-color: var(--th-feldrand) !important; }
html.thema-petrol .formular-inhalt input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), html.thema-petrol .formular-inhalt select, html.thema-petrol .formular-inhalt textarea { border-color: var(--th-feldrand); }
html.thema-petrol .mf-suche { background: var(--th-feld); border-color: var(--th-feldrand); }
html.thema-petrol .mf-suche input { background: transparent; }
html.thema-petrol .mandant-abschnitt { color: var(--th-beschriftung); border-bottom-color: var(--th-rahmen); }
/* Reiter als Unterstreichung statt Kästchen */
html.thema-petrol .formular-reiter .mud-tabs-tabbar { border-bottom: 1px solid var(--th-rahmen); }
html.thema-petrol .formular-reiter .mud-tab { background: transparent; border: 0; border-radius: 0; color: color-mix(in srgb, var(--th-beschriftung), #ffffff 25%); }
html.thema-petrol .formular-reiter .mud-tab:hover { background: color-mix(in srgb, var(--th-akzent), transparent 92%); }
html.thema-petrol .formular-reiter .mud-tab.mud-tab-active { background: transparent; color: var(--th-akzent); box-shadow: inset 0 -2px 0 var(--th-akzent); }
html.thema-petrol .mandant-reiter .mud-tabs-tabbar { border-bottom-color: var(--th-rahmen); }
/* Knöpfe */
html.thema-petrol .mf-knopf { border-radius: calc(6px * var(--s)); }
html.thema-petrol .mf-knopf:disabled { background: color-mix(in srgb, var(--th-akzent), #ffffff 62%); }
html.thema-petrol .mf-knopf.hell { background: var(--th-feld); border-color: var(--th-feldrand); }
html.thema-petrol .mf-knopf.hell:hover:not(:disabled) { background: color-mix(in srgb, var(--th-akzent), #ffffff 92%); }
/* Tabellen und Listen */
html.thema-petrol .mud-table-dense .mud-table-head .mud-table-cell, html.thema-petrol .dms-tabelle th, html.thema-petrol .auf-tabelle th, html.thema-petrol .letzte-importe th { background: var(--th-tabellenkopf); }
html.thema-petrol .mud-table, html.thema-petrol .auf-liste, html.thema-petrol .auf-rechts, html.thema-petrol .letzte-importe-liste { background: var(--th-liste); }
html.thema-petrol .dms-fenster, html.thema-petrol .auf-fenster, html.thema-petrol .dms-einst-rahmen { background: var(--th-formular); }
html.thema-petrol .auf-filter.an { background: var(--th-akzent); border-color: var(--th-akzent); }
html.thema-petrol .dms-nr { color: var(--th-akzent-dunkel); }

/* Startseite im Schema Petrol */
html.thema-petrol .start-banner { background: linear-gradient(120deg, var(--th-fenster) 0%, color-mix(in srgb, var(--th-akzent), var(--th-fenster) 88%) 100%); border-color: var(--th-rahmen); }
html.thema-petrol .start-banner h1 { color: var(--th-akzent-dunkel); }
html.thema-petrol .start-banner .unterzeile { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 30%); }
html.thema-petrol .start-suche { background: var(--th-feld); border-color: var(--th-feldrand); color: color-mix(in srgb, var(--th-beschriftung), #ffffff 45%); box-shadow: none; }
html.thema-petrol .start-suche:focus-within { border-color: var(--th-akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-akzent), transparent 85%); }
html.thema-petrol .start-gruppe h3 { color: var(--th-beschriftung); border-bottom-color: color-mix(in srgb, var(--th-akzent), #ffffff 40%); }
html.thema-petrol .start-gruppe h3 .mud-icon-root { color: var(--th-akzent); }
html.thema-petrol .start-gruppe.unfertig h3 { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 60%); border-color: var(--th-rahmen); }
html.thema-petrol .start-gruppe.unfertig h3 .mud-icon-root { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 65%); }
html.thema-petrol .start-eintrag { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 12%); }
html.thema-petrol button.start-eintrag:hover { background: color-mix(in srgb, var(--th-akzent), #ffffff 88%); color: var(--th-akzent-dunkel); }
html.thema-petrol .start-eintrag.offen { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 62%); }
html.thema-petrol .start-tipp { background: var(--th-feld); border-color: var(--th-rahmen); border-left-color: var(--th-akzent); }
html.thema-petrol .start-tipp-kopf, html.thema-petrol .start-tipp-kopf button { color: var(--th-akzent-dunkel); }
html.thema-petrol .start-tipp-text h4 { color: var(--th-beschriftung); }
html.thema-petrol .start-tipp-punkte button { background: color-mix(in srgb, var(--th-akzent), #ffffff 70%); }
html.thema-petrol .start-tipp-punkte button.an { background: var(--th-akzent); }
html.thema-petrol .start-wunsch { background: linear-gradient(120deg, var(--th-akzent-dunkel), var(--th-akzent) 55%, color-mix(in srgb, var(--th-akzent), #ffffff 35%)); box-shadow: 0 4px 14px color-mix(in srgb, var(--th-akzent), transparent 65%); }
html.thema-petrol .start-wunsch:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--th-akzent), transparent 55%); }
html.thema-petrol .start-wunsch small { color: #ecfbf8; }

/* 3.19: Pipette – Farben des Schemas anklicken und ändern */
html.thema-pipette, html.thema-pipette * { cursor: crosshair !important; }
.thema-pipette-ziel { outline: 2px dashed #ff3d7f !important; outline-offset: -2px; }
.thema-editor { position: fixed; z-index: 2000; right: 18px; bottom: 18px; width: 340px; background: #fff; border: 1px solid #c9d4d2; border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.25); font-size: .78rem; color: #1c2b31; cursor: default !important; }
.thema-editor * { cursor: default !important; }
.thema-editor-kopf { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e3eaea; font-weight: 700; }
.thema-editor-kopf .marke-logo { margin-right: 2px; }
.thema-editor-inhalt { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.thema-editor-hinweis { color: #5b6b70; font-size: .72rem; }
.thema-farbe { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.thema-farbe.gewaehlt { background: #e9f6f3; }
.thema-farbe input[type=color] { width: 34px; height: 26px; border: 1px solid #c9d4d2; border-radius: 6px; padding: 0; background: none; cursor: pointer !important; }
.thema-farbe b { display: block; font-size: .76rem; } .thema-farbe small { color: #6b7a7e; font-size: .66rem; }
.thema-farbe button, .thema-editor-fuss button { cursor: pointer !important; }
.thema-farbe code { font-size: .66rem; color: #5b6b70; }
.thema-farbe input.thema-hex { width: 72px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .72rem; padding: 2px 5px; border: 1px solid #c9d4d2; border-radius: 5px; color: #1c2b31; background: #fff; cursor: text !important; }
.thema-farbe input.thema-hex:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, .2); }
.thema-editor-fuss { display: flex; gap: 6px; padding: 9px 12px; border-top: 1px solid #e3eaea; flex-wrap: wrap; }
.thema-editor-fuss .rechts { margin-left: auto; }
.thema-editor .mf-knopf { background: #0f766e; }
.thema-editor .mf-knopf.hell { background: #fff; color: #0f766e; border-color: #b9d3cd; }

/* 3.21: Farbcode-Feld neben Farbfeldern (kopieren/einfügen) */
input.farbcode { width: 74px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .72rem; padding: 2px 5px; border: 1px solid #c9d4e2; border-radius: 4px; color: #334155; background: #fff; margin-left: 6px; }
input.farbcode:focus { outline: none; border-color: var(--mf-blau); }

/* 3.22: Aufgaben – Einstellungen und farbiger Fortschritt */
.auf-einst-knopf { margin-left: 2px; }
.auf-fortschritt { white-space: nowrap; }
.auf-prozent { margin-left: 6px; font-size: .66rem; color: #5b6b80; vertical-align: middle; }
.auf-einst { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; }
.auf-einst-farbe { display: grid; grid-template-columns: 38px 84px 1fr 120px; gap: 8px; align-items: center; }
.auf-einst-farbe input[type=color] { width: 36px; height: 26px; padding: 0; border: 1px solid #c9d4e2; border-radius: 5px; background: none; cursor: pointer; }
.auf-einst-farbe input.farbcode { margin-left: 0; }
.auf-balken.gross { width: 110px; height: 8px; }
.auf-balken.gross i { height: 8px; }

/* 3.22: Spalten der Aufgabenliste verschieben und in der Breite ändern */
.auf-tabelle th { position: sticky; }
.auf-tabelle th[draggable=true] { cursor: grab; }
.auf-tabelle th.zieh-ziel { box-shadow: inset 3px 0 0 var(--mf-blau, #2f5fae); background: #e3edf9; }
.auf-spalte-griff { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.auf-spalte-griff:hover, .spalte-zieht .auf-spalte-griff:active { background: rgba(47, 95, 174, .35); }
.auf-tabelle.spalte-zieht, .auf-tabelle.spalte-zieht * { cursor: col-resize !important; user-select: none; }
.auf-sortierung { display: inline-flex; align-items: center; gap: 4px; color: #5b6b80; }
.auf-sortierung select { font: inherit; font-size: .74rem; padding: 3px 6px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; }

/* 3.22: erweiterter Editor (Aufgaben) */
.rt-farbwahl { position: relative; min-width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; cursor: pointer; font-weight: 800; color: #0f766e; }
.rt-farbwahl.hinterlegt span { background: #fff59d; padding: 0 3px; color: #2f3d4e; font-weight: 600; }
.rt-farbwahl:hover { background: #e2e9f3; }
.rt-farbwahl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rt-link { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px solid var(--mf-feldrand); background: #f8fafc; }
.rt-link input { flex: 1; font: inherit; font-size: .8rem; padding: 3px 6px; border: 1px solid #c9d4e2; border-radius: 4px; }
.rt-flaeche h3 { margin: .4em 0 .2em; font-size: 1.2rem; }
.rt-flaeche blockquote { margin: .4em 0; padding: 4px 10px; border-left: 4px solid #2fb8a6; background: #f1f8f6; }
.rt-flaeche pre { margin: .4em 0; padding: 6px 8px; background: #f3f5f7; border-radius: 4px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .82rem; white-space: pre-wrap; }
.rt-flaeche hr { border: 0; border-top: 1px solid #c9d4e2; margin: .6em 0; }
.rt-flaeche a { color: #0f766e; text-decoration: underline; }
.rt-flaeche table.rt-tabelle { border-collapse: collapse; margin: .4em 0; min-width: 60%; }
.rt-flaeche table.rt-tabelle td { border: 1px solid #c9d4e2; padding: 3px 6px; min-width: 40px; vertical-align: top; }

/* 3.22: Anhänge der Aufgaben */
.auf-anhaenge { display: flex; flex-direction: column; gap: 3px; border: 1px solid #dbe3ee; border-radius: 6px; padding: 4px; background: #fafcfd; }
.auf-anhaenge.ziel { border-color: var(--mf-blau, #2f5fae); background: #eef4fb; }
.auf-anhaenge.laedt { opacity: .6; }
.auf-anhang { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 4px; font-size: .74rem; }
.auf-anhang:hover { background: #eef3f8; }
.auf-anhang .mud-icon-root { color: #5b6b80; flex: none; }
.auf-anhang-name { color: #1d3f75; text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.auf-anhang-name:hover { text-decoration: underline; }
.auf-anhang-info { color: #6b7a8c; font-size: .66rem; margin-left: auto; white-space: nowrap; }
.auf-anhang-ablage { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 2px dashed #b9c8d8; border-radius: 6px; color: #5b6b80; font-size: .72rem; cursor: pointer; }
.auf-anhang-ablage:hover { border-color: var(--mf-blau, #2f5fae); color: var(--mf-blau, #2f5fae); }
.auf-anhang-zahl { margin-left: 6px; font-size: .62rem; color: #5b6b80; }

/* ab 3.22: Chat zur Aufgabe – dritte Spalte */
.auf-chat-spalte { min-height: 0; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; }
.auf-chat-spalte .spalten-griff.links { left: -7px; }
.auf-chat-spalte-inhalt { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.auf-chat-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e3eaf3; color: var(--mf-blau, #2f5fae); }
.auf-chat-kopf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.auf-chat-kopf-text b { font-size: .8rem; color: #1f2d3d; }
.auf-chat-kopf-text small { font-size: .68rem; color: #6b7a8c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auf-chat { flex: 1; min-height: 0; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #f4f7fb; }
.auf-chat-tag { text-align: center; margin: 6px 0 2px; }
.auf-chat-tag span { font-size: .64rem; color: #5b6b80; background: #e3eaf3; border-radius: 10px; padding: 1px 10px; }
.auf-chat-system { align-self: center; max-width: 92%; text-align: center; font-size: .66rem; color: #6b7a8c; }
.auf-chat-zeile { display: flex; }
.auf-chat-zeile.meine { justify-content: flex-end; }
.auf-chat-blase { max-width: 82%; background: #fff; border: 1px solid #dfe6ef; border-radius: 12px 12px 12px 3px; padding: 5px 9px 3px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.auf-chat-zeile.meine .auf-chat-blase { background: #dcebfb; border-color: #c4dbf3; border-radius: 12px 12px 3px 12px; }
.auf-chat-wer { font-size: .66rem; font-weight: 700; color: #e48a1e; }
.auf-chat-text { font-size: .78rem; white-space: pre-wrap; word-break: break-word; color: #1f2d3d; }
.auf-chat-zeit { font-size: .6rem; color: #8494a7; text-align: right; }
.auf-chat-leer { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; text-align: center; color: #6b7a8c; font-size: .76rem; }
.auf-chat-leer .mud-icon-root { font-size: 2.2rem; color: #c3cfdd; }
.auf-chat-leer small { font-size: .68rem; }
.auf-chat-eingabe { display: flex; gap: 6px; align-items: flex-end; padding: 8px; border-bottom: 1px solid #e3eaf3; }
.auf-chat-eingabe textarea { flex: 1; font: inherit; font-size: .76rem; padding: 6px 8px; border: 1px solid #c9d4e2; border-radius: 8px; resize: vertical; min-height: 34px; max-height: 60vh; box-sizing: border-box; background: #fff; color: #1f2d3d; } /* ab 3.99.39: Höhe ziehbar, je Benutzer gemerkt */
.auf-chat-eingabe textarea:focus { outline: none; border-color: var(--mf-blau, #2f5fae); }
.auf-chat-eingabe .mf-knopf { height: 34px; min-width: 38px; justify-content: center; }
/* ab 3.99.122 (Rene 03.11.2026 09:13 „dieses Sendesymbol gehört unten hin“): Textfeld über die ganze Breite, darunter Bild/Emoji links und Senden rechts */
.auf-chat-eingabe { flex-wrap: wrap; align-items: center; }
.auf-chat-eingabe textarea { order: -1; flex: 1 1 100%; }
.auf-chat-eingabe > .mf-knopf { margin-left: auto; }
/* ab 3.99.123: Aufgabe – Stand kürzer, Start/Fällig in derselben Zeile */
.auf-detail .auf-zeile-stand { flex-wrap: wrap; row-gap: 6px; }
.auf-detail .auf-zeile-stand > .auf-stand-feld { flex: 0 1 260px; }
.auf-detail .auf-zeile-stand > .auf-datum { flex: 0 0 auto; }
.auf-detail .auf-zeile-stand > .auf-datum input { width: 140px; }
html.thema-petrol .auf-chat-spalte { background: var(--th-liste); }

/* ab 3.22: ungelesene Nachrichten – oranges, animiertes Chat-Symbol (Menü und Liste) */
@keyframes mf-chat-wackeln { 0%, 70%, 100% { transform: rotate(0) scale(1); } 75% { transform: rotate(-12deg) scale(1.12); } 82% { transform: rotate(10deg) scale(1.12); } 89% { transform: rotate(-6deg) scale(1.06); } }
@keyframes mf-chat-puls { 0% { box-shadow: 0 0 0 0 rgba(228,138,30,.55); } 70% { box-shadow: 0 0 0 7px rgba(228,138,30,0); } 100% { box-shadow: 0 0 0 0 rgba(228,138,30,0); } }
.mf-chat-symbol { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 6px 1px 4px; border-radius: 10px; background: #e48a1e; color: #fff; cursor: pointer; animation: mf-chat-puls 2s infinite; vertical-align: middle; line-height: 1; }
.mf-chat-symbol .mud-icon-root { font-size: 14px; animation: mf-chat-wackeln 2.4s infinite; transform-origin: 50% 80%; }
.mf-chat-symbol b { font-size: .64rem; }
.mf-chat-symbol:hover { background: #c96f0a; }
.auf-chat-neu { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; color: #e48a1e; font-size: .66rem; font-weight: 700; }
.auf-chat-neu .mud-icon-root { font-size: 15px; animation: mf-chat-wackeln 2.4s infinite; transform-origin: 50% 80%; }
/* ab 3.43: deutlicher – hüpft, leuchtet, doppelter Ring, Farbe blinkt. Bewusst auch bei „Animationen reduzieren“ (Windows/Remotedesktop
   schaltet das oft ab – dann war vorher gar nichts zu sehen); dort nur ohne Hüpfen. */
@keyframes mf-chat-huepfen { 0%, 60%, 100% { transform: translateY(0) scale(1); } 66% { transform: translateY(-4px) scale(1.15); } 72% { transform: translateY(0) scale(.96); } 78% { transform: translateY(-2px) scale(1.08); } 84% { transform: translateY(0) scale(1); } }
@keyframes mf-chat-puls2 { 0% { box-shadow: 0 0 0 0 rgba(228,138,30,.8), 0 0 0 0 rgba(228,138,30,.5); } 60% { box-shadow: 0 0 0 6px rgba(228,138,30,.25), 0 0 0 12px rgba(228,138,30,0); } 100% { box-shadow: 0 0 0 9px rgba(228,138,30,0), 0 0 0 16px rgba(228,138,30,0); } }
@keyframes mf-chat-farbe { 0%, 100% { background: #e48a1e; } 50% { background: #f4511e; } }
.mf-chat-symbol { position: relative; z-index: 1; padding: 2px 7px 2px 5px; animation: mf-chat-puls2 1.4s ease-out infinite, mf-chat-farbe 1.4s ease-in-out infinite, mf-chat-huepfen 2.8s ease-in-out infinite; }
.mf-chat-symbol .mud-icon-root { font-size: 16px; animation: mf-chat-wackeln 1.4s infinite; }
.mf-chat-symbol b { font-size: .7rem; }
.mf-chat-symbol:hover { animation-play-state: paused; background: #c96f0a; }
@media (prefers-reduced-motion: reduce) { .mf-chat-symbol { animation: mf-chat-puls2 1.4s ease-out infinite, mf-chat-farbe 1.4s ease-in-out infinite; } }
.auf-angelegt { font-size: .72rem; color: #5b6b80; white-space: nowrap; }
/* ab 3.22: Prioritätsfarben aus den Einstellungen; erledigte Aufgaben hinterlegt; Menü-Zahl in Prioritätsfarbe, überfällig = roter Ring */
.auf-tabelle tr.erledigt[style*="--auf-erledigt"] > td { background: var(--auf-erledigt); }
.mf-menu-zahl.auf-zahl.ueber { box-shadow: 0 0 0 2px #c62828; }
.auf-einst-muster { font-size: .7rem; padding: 2px 10px; border-radius: 4px; color: #2e7d32; border: 1px solid #c9d4e2; }
.auf-einst-farbe .auf-prio + .auf-prio { margin-left: 3px; }
.auf-einst-prios { display: inline-flex; gap: 4px; justify-content: flex-end; }
.auf-einst-prios .auf-prio { min-width: 26px; }
.auf-drucken { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; color: var(--mf-blau, #2f5fae); text-decoration: none; }
.auf-drucken .mud-icon-root { font-size: 18px; }
.auf-tabelle td.auf-loeschen { text-align: center; padding: 0; }
.auf-tabelle td.auf-loeschen button { all: unset; cursor: pointer; width: 22px; height: 22px; line-height: 22px; border-radius: 4px; color: #9aa5b1; font-size: .8rem; opacity: .35; }
.auf-tabelle tr:hover td.auf-loeschen button, .auf-tabelle tr.aktiv td.auf-loeschen button { opacity: 1; }
.auf-tabelle td.auf-loeschen button:hover { background: #fde2e2; color: #c62828; }
.auf-chat-zelle { text-align: center; }
.auf-chat-zelle .auf-chat-neu { margin-left: 0; }
.auf-chat-da { display: inline-flex; align-items: center; gap: 2px; color: #6b7a8c; font-size: .66rem; }
.auf-chat-da .mud-icon-root { font-size: 15px; }
.auf-chat-bild { display: block; max-width: 100%; max-height: 240px; border-radius: 8px; margin: 3px 0; cursor: zoom-in; }
.auf-chat-laedt { font-size: .7rem; color: #6b7a8c; font-style: italic; }
.auf-chat-bildknopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #6b7a8c; }
.auf-chat-bildknopf:hover { background: #e8eef7; color: var(--mf-blau, #2f5fae); }
.auf-chat-spalte-inhalt.zieht-bild .auf-chat { outline: 2px dashed var(--mf-blau, #2f5fae); outline-offset: -6px; background: #eaf2fb; }
/* ab 3.22: Beschreibung füllt den freien Platz nach unten; wird sie länger, rollt nur sie – Anhänge und Fuß bleiben sichtbar */
.auf-rechts-inhalt > .auf-detail { height: 100%; box-sizing: border-box; }
.auf-detail .auf-beschreibung { flex: 1 1 0; display: flex; flex-direction: column; min-height: 200px; }
.auf-detail .auf-beschreibung > .rt { flex: 1 1 0; min-height: 0; }
.auf-detail .auf-beschreibung .rt-flaeche { flex: 1 1 0; min-height: 90px; overflow: auto; }
/* ab 3.99.411 (Rene 27.11.2026 12:40): Grundschrift der Beschreibung wie die Aufgabenliste links (.76rem) – größere Schrift weiter über A+ bzw. Schriftgröße in der Leiste */
.auf-detail .auf-beschreibung .rt-flaeche { font-size: .76rem; line-height: 1.45; }
.auf-detail > :not(.auf-beschreibung) { flex: 0 0 auto; }
.auf-spalte-griff.aus { display: none; }
/* ab 3.23: Chat-Bild groß im Popup */
.auf-bild-popup { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 32, .78); display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; outline: none; cursor: zoom-out; }
.auf-bild-popup img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; cursor: default; }
.auf-bild-popup-knoepfe { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; }
.auf-bild-popup-knoepfe a, .auf-bild-popup-knoepfe button { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.auf-bild-popup-knoepfe a:hover, .auf-bild-popup-knoepfe button:hover { background: rgba(255,255,255,.3); }
/* ab 3.23: gezielte Chat-Nachricht */
.auf-chat-an { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px 0; font-size: .68rem; color: #6b7a8c; }
.auf-an { all: unset; cursor: pointer; padding: 1px 8px; border-radius: 10px; border: 1px solid #c9d4e2; background: #fff; color: #46566b; font-size: .68rem; }
.auf-an:hover { border-color: var(--mf-blau, #2f5fae); }
.auf-an.an { background: var(--mf-blau, #2f5fae); border-color: var(--mf-blau, #2f5fae); color: #fff; }
.auf-chat-an-info { font-size: .62rem; color: #6b7a8c; margin-bottom: 1px; }
.auf-chat-an-info.fuer-mich { color: #e48a1e; font-weight: 700; }

/* ============ ab 3.25: Korrespondenz – Editor im Word-Look ============ */
.dok-editor { display: flex; flex-direction: column; align-items: stretch; width: 100%; box-sizing: border-box; height: 100%; min-height: 0; background: #e9edf2; font-size: .78rem; color: #1f2d3d; }
.dok-titel { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--mf-blau, #2f5fae); color: #fff; min-height: 38px; flex-wrap: wrap; }
.dok-titel input.dok-titel-name { font: inherit; font-size: .9rem; font-weight: 600; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 3px 6px; min-width: 220px; max-width: 420px; }
/* ab 3.99.436 (Rene 29.11.2026 12:38 „diese Font muss weiß sein, sonst kann man es nicht lesen“): Farbschema und Eingabefeld-Regeln setzen die
   Schrift sonst dunkel – im grünen Kopf immer weiß, auch ausgefertigt (gesperrt) */
.dok-titel input.dok-titel-name, .dok-titel input.dok-titel-name:disabled { color: #fff !important; -webkit-text-fill-color: #fff; opacity: 1; }
.dok-titel input.dok-titel-name::placeholder { color: rgba(255,255,255,.7); -webkit-text-fill-color: rgba(255,255,255,.7); }
.dok-titel input.dok-titel-name:hover, .dok-titel input.dok-titel-name:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); outline: none; }
.dok-titel .dok-pille { font-size: .68rem; padding: 2px 9px; border-radius: 10px; background: rgba(255,255,255,.2); color: #fff; white-space: nowrap; }
.dok-titel .dok-pille.gruen { background: #2e7d32; } .dok-titel .dok-pille.gelb { background: #e48a1e; } .dok-titel .dok-pille.rot { background: #c62828; }
.dok-titel .dok-gespeichert { font-size: .68rem; opacity: .85; white-space: nowrap; }
.dok-titel .dok-titel-knoepfe { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dok-titel .dok-titel-knoepfe button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 5px 11px; border-radius: 5px; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.dok-titel .dok-titel-knoepfe button:hover { background: rgba(255,255,255,.28); }
.dok-titel .dok-titel-knoepfe button.haupt { background: #fff; color: var(--mf-blau, #2f5fae); font-weight: 600; }
.dok-titel .dok-titel-knoepfe button.haupt:hover { background: #eef3fb; }
.dok-titel .dok-titel-knoepfe button:disabled { opacity: .45; cursor: default; }
.dok-titel .dok-titel-knoepfe .mud-icon-root { font-size: 17px; }
.dok-titel .dok-zurueck { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 4px 8px; border-radius: 5px; }
.dok-titel .dok-zurueck:hover { background: rgba(255,255,255,.18); }

.dok-reiter { display: flex; align-items: flex-end; gap: 2px; background: #f3f5f8; padding: 4px 10px 0; border-bottom: 1px solid #d6dde6; }
.dok-reiter button { all: unset; cursor: pointer; font-size: .76rem; padding: 6px 14px 7px; color: #46566b; border-bottom: 3px solid transparent; }
.dok-reiter button:hover { color: var(--mf-blau, #2f5fae); background: #e8edf4; }
.dok-reiter button.an { color: var(--mf-blau, #2f5fae); border-bottom-color: var(--mf-blau, #2f5fae); font-weight: 600; }
.dok-reiter-hilfe { margin-left: auto; align-self: center; font-size: .66rem; color: #7a8796; padding-bottom: 4px; }

.dok-band { display: flex; align-items: stretch; gap: 0; background: #fbfcfd; border-bottom: 1px solid #d6dde6; padding: 6px 6px 2px; min-height: 76px; overflow: hidden; position: relative; z-index: 3; } /* ab 3.99.83: kein Scrollbalken mehr (mrr.dokBandEinpassen) */
.dok-band-gesperrt { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #6b5300; background: #fff6d6; border-radius: 6px; margin: 4px; font-size: .78rem; }
.dok-gruppe { display: flex; flex-direction: column; justify-content: space-between; padding: 0 10px; border-right: 1px solid #e1e6ed; gap: 3px; flex-shrink: 0; }
.dok-gruppe-name { font-size: .62rem; color: #7a8796; text-align: center; padding-top: 2px; }
.dok-zeile { display: flex; align-items: center; gap: 2px; }
.dok-band .dok-spalte { display: flex; flex-direction: column; gap: 2px; }
.dok-band button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 4px; color: #1f2d3d; font-size: .76rem; box-sizing: border-box; white-space: nowrap; }
.dok-band button:hover { background: #e3e9f2; }
.dok-band button.an { background: #d5e2f5; box-shadow: inset 0 0 0 1px #9fb9e0; }
.dok-band button .mud-icon-root { font-size: 18px; }
.dok-band button.gross { flex-direction: column; height: auto; min-height: 54px; min-width: 52px; padding: 4px 6px; gap: 2px; font-size: .68rem; }
.dok-band button.gross .mud-icon-root { font-size: 26px; color: var(--mf-blau, #2f5fae); }
.dok-band select, .dok-band input[type=number] { font: inherit; font-size: .76rem; height: 26px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; padding: 0 4px; color: #1f2d3d; }
.dok-band select.dok-schrift { width: 150px; } .dok-band select.dok-groesse { width: 60px; }
.dok-band input[type=number] { width: 52px; }
.dok-feld { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: #46566b; margin-right: 6px; }
.dok-schalter { gap: 10px; }
.dok-schalter label { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; white-space: nowrap; cursor: pointer; }
.dok-farbe { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.dok-farbe:hover { background: #e3e9f2; }
.dok-farbe input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
/* ab 3.99.83 (Rene 01.11.2026 15:52): Formatvorlagen kompakt – 2 × 2 schmale Knöpfe in Zeilenhöhe statt vier Kacheln */
.dok-formate button { min-width: 62px; height: 24px !important; border: 1px solid #e1e6ed !important; background: #fff; justify-content: flex-start !important; padding: 0 7px !important; }
.dok-formate button span { font-size: .7rem; }
/* ab 3.99.83 (Variante D): Umschalter Start / Layout / Ansicht links im Band – ersetzt die Reiterzeile */
.dok-umschalter { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 8px 0 2px; border-right: 1px solid #e1e6ed; flex-shrink: 0; }
.dok-band .dok-umschalter button { justify-content: flex-start; height: 20px; min-width: 62px; padding: 0 8px; font-size: .7rem; color: #46566b; border-radius: 4px; }
.dok-band .dok-umschalter button.an { background: var(--mf-blau, #2f5fae); color: #fff; box-shadow: none; font-weight: 600; }
.dok-band .dok-umschalter button.an:hover { background: var(--mf-blau, #2f5fae); }
/* Aufklapplisten sofort fest (nicht erst nach mrr.dokListeFest) – sonst zählen sie kurz zur Bandbreite */
.dok-band .dok-menue-liste { position: fixed; z-index: 1400; }
/* Stufen beim Einpassen: 1 Gruppennamen weg · 2 Texte neben Symbolen weg · 3 enger · 4 umbrechen */
.dok-band.st1 { min-height: 0; padding-bottom: 6px; }
.dok-band.st1 .dok-gruppe-name { display: none; }
.dok-band.st1 .dok-gruppe { justify-content: center; }
.dok-band.st2 .dok-txt { display: none; }
.dok-band.st2 button.gross { min-height: 50px; min-width: 34px; }
.dok-band.st3 .dok-gruppe { padding: 0 5px; }
.dok-band.st3 button { min-width: 22px; padding: 0 3px; }
.dok-band.st3 select.dok-schrift { width: 112px; }
.dok-band.st3 .dok-formate button { padding: 0 4px !important; }
/* 4: Zoom und Rückgängig unter „Start“ ausblenden – stehen unter „Ansicht“ bzw. Strg+Z/Strg+Y · 5: erst dann umbrechen */
.dok-band.st4 .dok-neben { display: none; }
.dok-band.st5 { flex-wrap: wrap; row-gap: 6px; }
.dok-menue { position: relative; }
.dok-menue-liste { position: absolute; top: 100%; left: 0; z-index: 20; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; box-shadow: 0 8px 24px rgba(20,35,60,.18); padding: 6px; max-height: 60vh; overflow: auto; min-width: 200px; }
.dok-menue-liste.breit { min-width: 320px; }
.dok-menue-liste button { display: flex !important; justify-content: space-between !important; width: 100%; height: auto !important; padding: 5px 8px !important; }
.dok-menue-liste button small { color: #7a8796; margin-left: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dok-menue-gruppe { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: #7a8796; padding: 8px 8px 2px; }
.dok-menue-liste.zeichen { display: grid; grid-template-columns: repeat(8, 30px); gap: 2px; min-width: 0; }
.dok-menue-liste.zeichen button { justify-content: center !important; font-size: 1rem; padding: 4px !important; }
.dok-zeichen { font-size: 22px; line-height: 26px; color: var(--mf-blau, #2f5fae); }
.dok-link { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.dok-link input { font: inherit; width: 260px; height: 26px; border: 1px solid #c9d4e2; border-radius: 4px; padding: 0 6px; }
.dok-zoom { min-width: 44px; text-align: center; font-size: .74rem; }

.dok-haupt { flex: 1; min-height: 0; display: flex; }
.dok-flaeche { flex: 1; min-width: 0; overflow: auto; padding: 18px 24px 60px; display: flex; flex-direction: column; align-items: center; }
.dok-lineal { position: relative; width: 210mm; height: 18px; flex-shrink: 0; margin-bottom: 6px; background: linear-gradient(to right, #d9dee6 0, #d9dee6 var(--rl), #fff var(--rl), #fff calc(210mm - var(--rr)), #d9dee6 calc(210mm - var(--rr))); border: 1px solid #c9d1dc; box-sizing: border-box;
    background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(5mm - 1px), #b8c1cd calc(5mm - 1px), #b8c1cd 5mm), linear-gradient(to right, #d9dee6 0, #d9dee6 var(--rl), #fff var(--rl), #fff calc(210mm - var(--rr)), #d9dee6 calc(210mm - var(--rr)));
    background-size: 100% 5px, 100% 100%; background-repeat: no-repeat; background-position: bottom, 0 0; }
.dok-lineal span { position: absolute; top: 1px; transform: translateX(-50%); font-size: 9px; color: #5b6b80; }
.dok-seite { position: relative; width: 210mm; min-height: 297mm; box-sizing: border-box; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 8px 24px rgba(20,35,60,.10); flex-shrink: 0; color: #111;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(297mm - 1px), #b7c3d3 calc(297mm - 1px), #b7c3d3 297mm); }
.dok-falz { position: absolute; left: 4mm; width: 5mm; border-top: 1px solid #9aa5b1; }
.dok-falz.loch { width: 7mm; }
.dok-briefkopf { position: absolute; top: 10mm; text-align: right; }
.dok-briefkopf img { display: block; height: 20mm; max-width: none; object-fit: contain; }
/* ab 3.43: Logo verschiebbar, Größe am Eck, ✕ entfernt */
.dok-briefkopf.beweglich { cursor: pointer; border-radius: 2px; z-index: 2; }
.dok-briefkopf.beweglich:hover { outline: 1px dashed #9fb9e0; outline-offset: 2px; }
.dok-briefkopf.gewaehlt { outline: 1.5px solid var(--mf-blau, #2f5fae); outline-offset: 2px; cursor: move; touch-action: none; }
.dok-briefkopf.zieht { opacity: .85; }
.dok-logo-griff { position: absolute; left: -6px; bottom: -6px; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--mf-blau, #2f5fae); border-radius: 2px; cursor: nesw-resize; }
.dok-logo-weg { all: unset; position: absolute; right: -10px; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid #c9d4e2; color: #c62828; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); font-family: var(--mud-typography-default-family, sans-serif); }
.dok-logo-wieder { all: unset; position: absolute; top: 10mm; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px dashed #b9c6d8; border-radius: 4px; color: #6b7a8c; font-size: 11px; cursor: pointer; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-logo-wieder:hover { background: #f1f6fd; color: var(--mf-blau, #2f5fae); }
.dok-logo-wieder .mud-icon-root { font-size: 15px; }
.dok-logo-zeile { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dok-logo-zeile input[type=number] { width: 58px; }
.dok-logo-zeile input[type=range] { width: 140px; }
.dok-logo-knoepfe { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dok-logo-knoepfe > button, .dok-logo-datei { all: unset; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #d3dce8; border-radius: 5px; cursor: pointer; font-size: .74rem; background: #fff; }
.dok-logo-knoepfe > button:hover, .dok-logo-datei:hover { background: #eef4fb; }
.dok-logo-knoepfe > button:disabled { opacity: .45; cursor: default; }
.dok-logo-knoepfe > button.weg { color: #c62828; }
.dok-logo-knoepfe .mud-icon-root { font-size: 16px; }
.dok-briefkopf span { font-size: 16pt; font-weight: 700; }
.dok-anschrift { display: grid; grid-template-columns: minmax(0, 100mm) minmax(0, 1fr); margin-top: 18mm; height: 45mm; margin-bottom: 8mm; border-radius: 4px; }
.dok-anschrift.klickbar { cursor: pointer; }
.dok-anschrift.klickbar:hover .dok-anschrift-feld { background: #f1f6fd; outline: 1px dashed #9fb9e0; }
.dok-anschrift-feld { padding-top: 4.5mm; font-size: 10pt; line-height: 1.25; width: 85mm; }
.dok-absender { font-size: 7pt; color: #5f6a78; margin-bottom: 3.5mm; }
.dok-anschrift-leer { display: inline-flex; align-items: center; gap: 6px; color: #7a8796; font-style: italic; border: 1px dashed #c3ccd8; padding: 6px 10px; border-radius: 4px; }
.dok-info { padding-top: 5mm; font-size: 8.5pt; line-height: 1.5; }
.dok-info span { display: inline-block; width: 22mm; color: #5f6a78; font-size: 8pt; }
.dok-bausteine { position: relative; }
.dok-bs { position: relative; border-radius: 3px; margin: 0 -3mm; padding: 1px 3mm; outline: 1px solid transparent; transition: outline-color .1s; }
.dok-bs.werkzeug { outline: 1.5px solid var(--mf-blau, #2f5fae); } /* ab 3.99.78 (Rene): Rahmen nur nach Strg+Klick, sonst nur der Brief */
.dok-bs.aus { opacity: .45; }
.dok-bs.ziel::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 5px; box-shadow: 0 0 0 2px rgba(47,95,174,.25); border-radius: 2px; background: var(--mf-blau, #2f5fae); }
.dok-ende { min-height: 10mm; }
.dok-seite.zieht .dok-ende { outline: 1px dashed #9fb9e0; border-radius: 4px; }
.dok-bs-griff { position: absolute; right: 100%; top: 0; margin-right: 12px; display: none; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #fff; background: var(--mf-blau, #2f5fae); border-radius: 5px; padding: 4px 9px 4px 3px; box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; white-space: nowrap; font-family: var(--mud-typography-default-family, sans-serif); line-height: 1.3; }
.dok-bs-griff .mud-icon-root { font-size: 20px; }
.dok-bs-griff:hover { filter: brightness(1.12); }
.dok-bs-griff:active, .dok-bs-leiste:active { cursor: grabbing; }
/* ab 3.57: Griffleiste links über die ganze Blockhöhe */
.dok-bs-leiste { position: absolute; left: -10px; top: 0; bottom: 0; width: 8px; display: none; cursor: grab; border-radius: 4px; background: var(--mf-blau, #2f5fae) radial-gradient(circle, rgba(255,255,255,.85) 1.2px, transparent 1.6px) center top / 8px 6px repeat-y; opacity: .75; }
.dok-bs-leiste:hover { opacity: 1; }
.dok-bs.werkzeug .dok-bs-leiste { display: block; } /* ab 3.99.78: nur nach Strg+Klick */
.dok-bs.werkzeug .dok-bs-griff { display: inline-flex; }
.dok-bs-knoepfe { position: absolute; left: 100%; top: 0; margin-left: 6px; display: none; flex-direction: column; gap: 2px; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; padding: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.dok-bs.werkzeug .dok-bs-knoepfe { display: flex; }
.dok-bs-knoepfe button { all: unset; cursor: pointer; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #46566b; }
.dok-bs-knoepfe button:hover { background: #e8eef7; }
.dok-bs-knoepfe button.weg:hover { background: #fde2e2; color: #c62828; }
.dok-bs-knoepfe button:disabled { opacity: .3; cursor: default; }
.dok-bs-knoepfe .mud-icon-root { font-size: 16px; }
.dok-bs-aus { font-size: 8pt; color: #7a8796; font-style: italic; display: flex; gap: 8px; align-items: center; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-bs-aus button { all: unset; cursor: pointer; color: var(--mf-blau, #2f5fae); text-decoration: underline; }
.dok-text { outline: none; min-height: 1.4em; cursor: text; }
.dok-text:empty::before { content: attr(data-platzhalter); color: #a4afbd; font-style: italic; }
.dok-text h3 { font-size: 1.3em; margin: .4em 0 .2em; font-weight: 700; }
.dok-text h4 { font-size: 1.12em; margin: .35em 0 .15em; font-weight: 700; }
.dok-text p { margin: 0 0 .8em; }
.dok-text blockquote { margin: .2em 0 .2em 4mm; padding-left: 3mm; border-left: 2px solid #c3ccd8; color: #46566b; font-style: italic; }
.dok-text blockquote[style*="margin"] { border-left: none; font-style: normal; color: inherit; padding-left: 0; }
.dok-text ul, .dok-text ol { margin: 0; padding-left: 6mm; }
.dok-text table { border-collapse: collapse; width: 100%; margin: 2mm 0; }
.dok-text td, .dok-text th { border: 1px solid #b9c1cc; padding: 1mm 1.5mm; vertical-align: top; }
.dok-text img { max-width: 100%; }
.dok-text a { color: #1f4e9a; }
.dok-text hr { border: none; border-top: 1px solid #aab2be; margin: 2mm 0; }
.dok-text .dfeld { background: #e4ecf8; color: #1d3f75; border-radius: 3px; padding: 0 2px; white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: default; } /* ab 3.57: lange Feldwerte umbrechen (wie im PDF) statt über den Rand */
.dok-text .dfeld.leer { background: #fdecc8; color: #8a5300; }
.gesperrt .dok-text .dfeld, .dok-text[contenteditable=false] .dfeld { background: transparent; color: inherit; padding: 0; }
.dok-betreff { font-weight: 700; font-size: 1.08em; margin-bottom: 5mm; }
.dok-para-kopf { display: flex; gap: 2mm; align-items: baseline; margin-top: 3mm; font-weight: 700; }
.dok-para-titel { flex: 1; }
.dok-anlagen-titel { font-weight: 700; margin-top: 4mm; }
.dok-anlagen { padding-left: 2mm; }
.dok-abstand { background: repeating-linear-gradient(45deg, transparent 0 6px, #f1f4f8 6px 12px); border-radius: 3px; }
.dok-umbruch { border-top: 2px dashed #9fb9e0; margin: 4mm 0; text-align: center; height: 0; }
.dok-umbruch span { position: relative; top: -.75em; background: #fff; padding: 0 8px; font-size: 8pt; color: #5b7bb0; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-unterschrift { margin-top: 8mm; }
.dok-us-ort { display: flex; justify-content: space-between; gap: 15mm; }
.dok-us-ort span { flex: 1; }
.dok-us-linien { display: flex; gap: 15mm; margin-top: 16mm; }
.dok-us-linien div { flex: 1; max-width: 80mm; border-top: 1px solid #333; padding-top: 1mm; font-size: 8.5pt; color: #5f6a78; white-space: pre-line; }
.dok-produkte { display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); gap: 4mm; margin: 2mm 0 3mm; }
.dok-produkte.liste { grid-template-columns: 1fr; }
.dok-produkt { display: flex; flex-direction: column; gap: 1.5mm; }
.dok-produkte.liste .dok-produkt { flex-direction: row; gap: 4mm; }
.dok-produkt.beispiel { opacity: .55; }
.dok-cover { position: relative; aspect-ratio: 1; background: #eef1f5; border-radius: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dok-produkte.liste .dok-cover { width: 26mm; flex-shrink: 0; }
.dok-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dok-cover .mud-icon-root { font-size: 34px; color: #b9c3cf; }
.dok-produkt-text { display: flex; flex-direction: column; font-size: 8.5pt; line-height: 1.3; color: #5f6a78; }
.dok-produkt-text b { color: #111; font-size: 9.5pt; }
.dok-produkt-leer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8mm; border: 1.5px dashed #c3ccd8; border-radius: 6px; color: #7a8796; cursor: pointer; font-family: var(--mud-typography-default-family, sans-serif); font-size: .8rem; }
.dok-hinweis { font-size: 7.5pt; color: #7a8796; font-style: italic; margin-bottom: 2mm; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-leer { padding: 14mm; border: 1.5px dashed #c3ccd8; border-radius: 6px; text-align: center; color: #7a8796; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-fuss { position: absolute; bottom: 10mm; font-size: 7pt; color: #5f6a78; text-align: center; border-top: 1px solid #c4cbd4; padding-top: 1.5mm; line-height: 1.4; cursor: pointer; border-radius: 2px; }
.dok-fuss:hover { background: #f1f6fd; }
.dok-fuss.gewaehlt { outline: 1.5px solid var(--mf-blau, #2f5fae); }

.dok-leiste { width: 300px; flex-shrink: 0; background: #fff; border-left: 1px solid #d6dde6; overflow: auto; display: flex; flex-direction: column; }
.dok-leiste-kopf { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e3eaf3; color: var(--mf-blau, #2f5fae); }
.dok-leiste-kopf b { color: #1f2d3d; font-size: .82rem; }
.dok-leiste-zu { all: unset; cursor: pointer; margin-left: auto; color: #7a8796; padding: 2px 6px; border-radius: 4px; }
.dok-leiste-zu:hover { background: #eef2f7; }
.dok-leiste-inhalt { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.dok-tipp { font-size: .7rem; color: #5b6b80; line-height: 1.45; margin: 0; }
.dok-schalter-zeile { display: flex; align-items: center; gap: 6px; font-size: .74rem; cursor: pointer; }
.dok-l-feld { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; }
.dok-l-feld > span { color: #5b6b80; font-weight: 600; font-size: .66rem; }
.dok-l-feld select, .dok-l-feld input, .dok-l-feld textarea, .dok-fuss-text, .dok-l-suche input, .dok-l-suche select { font: inherit; font-size: .76rem; padding: 4px 6px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; color: #1f2d3d; width: 100%; box-sizing: border-box; }
.dok-l-haken { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; }
.dok-l-haken label { display: flex; align-items: center; gap: 4px; font-size: .72rem; }
.dok-l-abschnitt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5b6b80; margin-top: 6px; border-bottom: 1px solid #e3eaf3; padding-bottom: 3px; }
.dok-l-produkt { display: flex; align-items: center; gap: 4px; font-size: .72rem; padding: 3px 0; border-bottom: 1px solid #f0f3f7; }
.dok-l-produkt span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dok-l-produkt small { color: #7a8796; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-l-produkt button { all: unset; cursor: pointer; padding: 2px 6px; border-radius: 4px; color: #5b6b80; }
.dok-l-produkt button:hover { background: #eef2f7; }
.dok-l-suche { display: grid; grid-template-columns: 96px 1fr; gap: 4px; }
.dok-l-treffer { display: flex; flex-direction: column; max-height: 260px; overflow: auto; }
.dok-l-treffer button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; font-size: .72rem; }
.dok-l-treffer button:hover { background: #eef4fb; }
.dok-l-treffer button span { display: flex; flex-direction: column; min-width: 0; }
.dok-l-treffer button small { color: #7a8796; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-l-treffer .mud-icon-root { font-size: 16px; color: var(--mf-blau, #2f5fae); }

.dok-status { display: flex; align-items: center; gap: 16px; padding: 3px 12px; background: #f3f5f8; border-top: 1px solid #d6dde6; font-size: .68rem; color: #5b6b80; }
.dok-status-rechts { display: flex; gap: 8px; align-items: center; }
.dok-status-zoom { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.dok-status-zoom button { all: unset; cursor: pointer; padding: 0 5px; border-radius: 3px; font-size: .8rem; }
.dok-status-zoom button:hover { background: #e3e9f2; }
.dok-status-zoom input { width: 110px; }

/* Kalkulation */
.kalk { margin: 2mm 0 3mm; font-family: Arial, 'Liberation Sans', sans-serif; }
.kalk-leiste { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 3px; background: #f3f6fa; border: 1px solid #d6dde6; border-bottom: none; border-radius: 4px 4px 0 0; font-size: 11px; }
.kalk-leiste button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 1px; min-width: 22px; height: 22px; justify-content: center; border-radius: 3px; padding: 0 3px; font-size: 11px; }
.kalk-leiste button:hover { background: #e3e9f2; }
.kalk-leiste button.an { background: #d5e2f5; }
.kalk-leiste .mud-icon-root { font-size: 15px; }
.kalk-leiste select { font-size: 11px; height: 22px; border: 1px solid #c9d4e2; border-radius: 3px; }
.kalk-trenner { width: 1px; height: 16px; background: #c9d4e2; margin: 0 3px; }
.kalk-farbe { position: relative; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; cursor: pointer; border-radius: 3px; }
.kalk-farbe:hover { background: #e3e9f2; }
.kalk-farbe input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kalk-breite { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #5b6b80; }
.kalk-breite input { width: 46px; height: 20px; font-size: 11px; border: 1px solid #c9d4e2; border-radius: 3px; }
.kalk-formel { display: flex; align-items: center; gap: 4px; padding: 3px; background: #fff; border: 1px solid #d6dde6; border-bottom: none; font-size: 11px; }
.kalk-name { min-width: 34px; text-align: center; padding: 2px 4px; border: 1px solid #d6dde6; border-radius: 3px; background: #f7f9fb; }
.kalk-fx { font-style: italic; color: #7a8796; padding: 0 3px; }
.kalk-formel input { flex: 1; font-family: Consolas, 'Liberation Mono', monospace; font-size: 12px; border: 1px solid #c9d4e2; border-radius: 3px; padding: 2px 5px; }
.kalk-gitter { outline: none; overflow-x: auto; }
.kalk-gitter table { border-collapse: collapse; table-layout: fixed; font-size: .94em; }
.kalk-gitter td { border: 1px solid #b9c1cc; padding: .6mm 1.5mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.5em; }
.kalk:not(.nur-lesen) .kalk-gitter td { cursor: cell; }
.kalk-gitter th { background: #eef1f5; color: #5b6b80; font-weight: 400; font-size: 9px; border: 1px solid #d0d6de; padding: 1px; font-family: var(--mud-typography-default-family, sans-serif); cursor: pointer; }
.kalk-gitter th.an { background: #d5e2f5; color: #1d3f75; }
.kalk-gitter td.akt { outline: 2px solid #217346; outline-offset: -2px; }
.kalk-gitter td.aus { background-color: #e6f0e9 !important; }
.kalk-gitter td.fehler { color: #c62828; }

/* Vorlagen-Übersicht und Schreiben-Liste */
.korr { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; height: 100%; min-height: 0; background: var(--mf-formular, #dfe7f0); }
.korr-leiste { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.korr-leiste .korr-titel { font-size: .95rem; font-weight: 700; margin-right: 8px; }
.korr-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 16px; }
.korr-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.korr-kachel { background: #fff; border: 1px solid #c9d4e2; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.korr-kachel:hover { box-shadow: 0 6px 18px rgba(20,35,60,.14); transform: translateY(-1px); border-color: #9fb9e0; }
.korr-kachel.neu { align-items: center; justify-content: center; border-style: dashed; color: var(--mf-blau, #2f5fae); min-height: 300px; gap: 6px; font-weight: 600; background: rgba(255,255,255,.6); }
.korr-kachel.neu .mud-icon-root { font-size: 40px; }
.korr-mini { height: 210px; overflow: hidden; background: #e9edf2; display: flex; justify-content: center; padding-top: 10px; position: relative; }
.korr-mini-seite { width: 210mm; min-height: 297mm; background: #fff; transform: scale(.23); transform-origin: top center; box-shadow: 0 2px 10px rgba(0,0,0,.25); flex-shrink: 0; pointer-events: none; padding: 27mm 20mm 20mm 25mm; box-sizing: border-box; font-family: Arial, sans-serif; font-size: 10.5pt; color: #222; position: absolute; top: 10px; }
.korr-mini-seite .mk-logo { position: absolute; top: 10mm; right: 20mm; height: 18mm; }
.korr-mini-seite .mk-anschrift { margin-top: 18mm; height: 45mm; font-size: 10pt; color: #555; }
.korr-mini-seite .mk-text { margin-bottom: 3mm; }
.korr-mini-seite .mk-betreff { font-weight: 700; margin-bottom: 5mm; font-size: 11.5pt; }
.korr-mini-seite .mk-para { font-weight: 700; margin-top: 3mm; }
.korr-mini-seite .mk-produkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 3mm 0; }
.korr-mini-seite .mk-produkte i { aspect-ratio: 1; background: #dfe5ec; display: block; }
.korr-mini-seite .mk-tabelle { border: 1px solid #aaa; height: 34mm; margin: 3mm 0; background: repeating-linear-gradient(to bottom, #fff 0 4mm, #f2f4f7 4mm 8mm); }
.korr-mini-seite .mk-us { display: flex; gap: 15mm; margin-top: 18mm; } .korr-mini-seite .mk-us i { flex: 1; border-top: 1px solid #333; display: block; }
.korr-mini-seite .dfeld { color: #1d3f75; }
.korr-kachel-text { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid #e3eaf3; }
.korr-kachel-text b { font-size: .82rem; }
.korr-kachel-text small { color: #5b6b80; font-size: .68rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.korr-kachel-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.korr-art { font-size: .62rem; padding: 1px 7px; border-radius: 8px; background: #e8eef7; color: #1d3f75; }
.korr-status { font-size: .62rem; padding: 1px 7px; border-radius: 8px; }
.korr-status.frei { background: #dff3e3; color: #1e6b2a; } .korr-status.entwurf { background: #fff1db; color: #9a5b00; } .korr-status.geaendert { background: #fde9d0; color: #9a5b00; }
.korr-status.storniert { background: #fde2e2; color: #b42318; } .korr-status.ausgefertigt { background: #dff3e3; color: #1e6b2a; }
.korr-kachel-knoepfe { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.korr-kachel-knoepfe button { all: unset; cursor: pointer; font-size: .68rem; padding: 3px 8px; border: 1px solid #c9d4e2; border-radius: 4px; color: #1f2d3d; background: #fff; }
.korr-kachel-knoepfe button:hover { border-color: var(--mf-blau, #2f5fae); color: var(--mf-blau, #2f5fae); }
.korr-kachel-knoepfe button.haupt { background: var(--mf-blau, #2f5fae); color: #fff; border-color: var(--mf-blau, #2f5fae); }
.korr-filter { all: unset; cursor: pointer; font-size: .72rem; padding: 3px 10px; border-radius: 14px; border: 1px solid #c9d4e2; background: #fff; color: #46566b; display: inline-flex; align-items: center; gap: 4px; }
.korr-filter.an { background: var(--mf-blau, #2f5fae); border-color: var(--mf-blau, #2f5fae); color: #fff; }
.korr-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; font-size: .76rem; }
.korr-tabelle th { text-align: left; font-size: .68rem; color: #5b6b80; font-weight: 600; padding: 7px 8px; background: #f3f6fa; border-bottom: 1px solid #d6dde6; position: sticky; top: 0; }
.korr-tabelle td { padding: 6px 8px; border-bottom: 1px solid #eef2f7; }
.korr-tabelle tr.zeile { cursor: pointer; }
.korr-tabelle tr.zeile:hover td { background: #f1f6fd; }
.korr-leer { padding: 40px; text-align: center; color: #5b6b80; }
.korr-leer .mud-icon-root { font-size: 48px; color: #b9c3cf; }
.korr-dialog { position: fixed; inset: 0; z-index: 1400; background: rgba(15,23,32,.45); display: flex; align-items: center; justify-content: center; }
.korr-dialog-karte { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(760px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.korr-dialog-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e3eaf3; font-size: .95rem; font-weight: 700; }
.korr-dialog-kopf button { all: unset; cursor: pointer; margin-left: auto; padding: 2px 8px; border-radius: 4px; color: #7a8796; }
.korr-dialog-inhalt { padding: 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px; font-size: .8rem; }
.korr-dialog-fuss { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid #e3eaf3; }
.korr-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.korr-wahl button { all: unset; cursor: pointer; border: 1px solid #c9d4e2; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.korr-wahl button:hover, .korr-wahl button.an { border-color: var(--mf-blau, #2f5fae); background: #f1f6fd; }
.korr-wahl button b { font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.korr-wahl button small { font-size: .68rem; color: #5b6b80; line-height: 1.35; }
.korr-pdf { position: fixed; inset: 0; z-index: 1450; background: rgba(15,23,32,.6); display: flex; flex-direction: column; padding: 20px 40px; }
.korr-pdf-kopf { display: flex; align-items: center; gap: 10px; color: #fff; padding-bottom: 8px; }
.korr-pdf-kopf button { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 5px; background: rgba(255,255,255,.18); color: #fff; font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.korr-pdf-kopf button:hover { background: rgba(255,255,255,.3); }
.korr-pdf iframe { flex: 1; border: none; border-radius: 6px; background: #fff; }

/* Empfänger-Leiste */
.empf-suche input { width: 100%; box-sizing: border-box; font: inherit; font-size: .78rem; padding: 6px 8px 6px 28px; border: 1px solid #c9d4e2; border-radius: 6px; }
.empf-suche { position: relative; }
.empf-suche .mud-icon-root { position: absolute; left: 7px; top: 7px; font-size: 16px; color: #7a8796; }
.empf-treffer { display: flex; flex-direction: column; border: 1px solid #e3eaf3; border-radius: 6px; max-height: 280px; overflow: auto; }
.empf-treffer button { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 6px 9px; border-bottom: 1px solid #f0f3f7; font-size: .74rem; }
.empf-treffer button:hover { background: #f1f6fd; }
.empf-treffer small { color: #7a8796; }
.empf-rolle { display: inline-block; font-size: .6rem; padding: 0 6px; border-radius: 8px; background: #e8eef7; color: #1d3f75; margin-left: 4px; }
.empf-karte { border: 1px solid #c9d4e2; border-radius: 6px; padding: 8px 10px; font-size: .76rem; line-height: 1.45; background: #fafcfe; }
.empf-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.empf-raster .voll { grid-column: 1 / -1; }
.pdf-dialog-inhalt { padding: 0 !important; }
.pdf-dialog-rahmen { width: 100%; height: 76vh; border: none; display: block; background: #525659; }
/* Serienbriefe */
.serie-schritte button { display: inline-flex; align-items: center; gap: 6px; }
.serie-nr { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #c9d4e2; color: #fff; font-size: .66rem; align-items: center; justify-content: center; font-weight: 700; }
.serie-schritte button.an .serie-nr { background: var(--mf-blau, #2f5fae); }
.serie-empf { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 12px; padding: 12px; }
.serie-quelle, .serie-empfliste { background: #fff; border: 1px solid #c9d4e2; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.serie-quellen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.serie-quellen button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 1px solid #c9d4e2; border-radius: 6px; font-size: .7rem; text-align: center; }
.serie-quellen button.an { border-color: var(--mf-blau, #2f5fae); background: #eef4fb; color: var(--mf-blau, #2f5fae); font-weight: 600; }
.serie-rollen { grid-template-columns: 1fr 1fr; }
.serie-treffer-kopf { display: flex; align-items: center; gap: 8px; font-size: .74rem; }
.serie-liste { max-height: none; flex: 1; }
.serie-liste button:disabled { opacity: .55; cursor: default; }
.serie-zuordnung { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.serie-zuordnung label { display: flex; flex-direction: column; gap: 2px; font-size: .68rem; color: #5b6b80; font-weight: 600; }
.serie-zuordnung select, .serie-zuordnung input { font: inherit; font-size: .76rem; padding: 3px 5px; border: 1px solid #c9d4e2; border-radius: 4px; }
.serie-datei { font-size: .76rem; }
.korr-x { all: unset; cursor: pointer; padding: 2px 6px; border-radius: 4px; color: #7a8796; }
.korr-x:hover { background: #fde2e2; color: #c62828; }
.serie-aus { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.serie-karte { background: #fff; border: 1px solid #c9d4e2; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.serie-karte h3 { margin: 0; font-size: .9rem; }
.serie-zahlen { display: flex; gap: 12px; flex-wrap: wrap; }
.serie-zahlen div { background: #f3f6fa; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 150px; }
.serie-zahlen b { font-size: 1.1rem; } .serie-zahlen span { font-size: .68rem; color: #5b6b80; }
.serie-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.serie-fortschritt { height: 8px; background: #e3eaf3; border-radius: 4px; overflow: hidden; }
.serie-fortschritt i { display: block; height: 100%; background: var(--mf-blau, #2f5fae); transition: width .2s; }
.serie-warnung { background: #fff6e0; border: 1px solid #f0c36d; color: #7a5300; border-radius: 6px; padding: 7px 10px; font-size: .78rem; display: flex; align-items: center; gap: 10px; }
.serie-warnung .dok-zurueck { color: #7a5300; border-color: #f0c36d; }
/* Verträge und Lizenzvergaben (ab 3.25) */
.korr-filter.warn:not(.an) { border-color: #e48a1e; color: #9a5b00; background: #fff6e8; }
.vw-suche { width: 220px; }
.vw-detail { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.vw-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .vw-raster { grid-template-columns: 1fr; } }
.vw-spalte { display: flex; flex-direction: column; gap: 12px; }
.vw-karte { background: #fff; border: 1px solid #c9d4e2; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.vw-karte h3 { margin: 0; font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.vw-karte h3 .mud-icon-root { font-size: 19px; color: var(--mf-blau, #2f5fae); }
.vw-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.vw-felder .vw-breit { grid-column: 1 / -1; }
.vw-felder .dok-l-feld small { font-weight: 400; color: #7a8796; }
.vw-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vw-adresse { display: flex; flex-direction: column; gap: 4px; position: relative; }
.vw-adresse-gewaehlt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #c9d4e2; border-radius: 4px; background: #f6f9fc; font-size: .78rem; min-height: 22px; }
.vw-adresse-gewaehlt .mud-icon-root { font-size: 17px; color: var(--mf-blau, #2f5fae); }
.vw-adresse-gewaehlt b { flex: 1; font-weight: 600; }
.vw-adresse-gewaehlt button { all: unset; cursor: pointer; font-size: .7rem; color: var(--mf-blau, #2f5fae); padding: 1px 5px; border-radius: 3px; }
.vw-adresse-gewaehlt button:hover { background: #e3edf9; }
.vw-treffer { max-height: 220px; overflow: auto; }
.vw-zust { display: flex; flex-wrap: wrap; gap: 5px; }
.vw-produkt { display: flex; flex-direction: column; gap: 5px; }
.vw-produkt-art { display: flex; gap: 5px; }
.vw-zeit { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; }
.vw-zeit-balken { position: relative; height: 12px; border-radius: 6px; background: #e3eaf3; }
.vw-zeit-balken.offen { background: linear-gradient(90deg, #e3eaf3, #e3eaf3 85%, transparent); }
.vw-zeit-fuell { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: #4f8f5a; }
.vw-zeit-fuell.orange { background: #e48a1e; } .vw-zeit-fuell.rot { background: #c62828; } .vw-zeit-fuell.grau { background: #9aa6b4; }
.vw-zeit-balken.offen .vw-zeit-fuell { background: linear-gradient(90deg, #4f8f5a, #4f8f5a 80%, rgba(79,143,90,0)); }
.vw-zeit-marke { position: absolute; top: -4px; width: 3px; height: 20px; margin-left: -1px; border-radius: 2px; }
.vw-zeit-marke.heute { background: #1f2d3d; }
.vw-zeit-marke.frist { background: #c62828; width: 10px; height: 10px; top: 1px; margin-left: -5px; transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 0 2px #fff; }
.vw-zeit-legende { display: flex; justify-content: space-between; font-size: .66rem; color: #5b6b80; gap: 6px; }
.vw-zeit-legende .frist { color: #c62828; font-weight: 600; }
.vw-fakten { display: flex; flex-wrap: wrap; gap: 8px; }
.vw-fakt { background: #f3f6fa; border-radius: 6px; padding: 7px 10px; display: flex; flex-direction: column; min-width: 120px; border-left: 3px solid #9fb9e0; }
.vw-fakt b { font-size: .64rem; color: #5b6b80; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.vw-fakt span { font-size: .9rem; font-weight: 700; } .vw-fakt small { font-size: .66rem; color: #5b6b80; }
.vw-fakt.orange { border-left-color: #e48a1e; background: #fff6e8; } .vw-fakt.rot { border-left-color: #c62828; background: #fdecec; } .vw-fakt.grau { border-left-color: #9aa6b4; }
.vw-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.vw-info { font-size: .72rem; color: #5b6b80; gap: 4px; }
.vw-info span { display: inline-block; min-width: 70px; font-weight: 600; }
.dok-link.rot { color: #c62828; }
.vw-frist { display: inline-flex; flex-direction: column; font-size: .74rem; font-weight: 600; }
.vw-frist small { font-weight: 400; color: #7a8796; font-size: .64rem; }
.vw-frist.orange { color: #b26100; } .vw-frist.rot { color: #c62828; } .vw-frist.grau { color: #7a8796; }
.vw-reiter { border-radius: 8px 8px 0 0; border: 1px solid #c9d4e2; border-bottom: 1px solid #d6dde6; margin-bottom: -12px; }
.vw-zahl { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #c9d4e2; color: #1f2d3d; font-size: .62rem; text-align: center; margin-left: 3px; }
.vw-reiter-inhalt { background: #fff; border: 1px solid #c9d4e2; border-top: 0; border-radius: 0 0 8px 8px; padding: 10px; min-height: 260px; }
.vw-reiter-inhalt.dms { height: 520px; padding: 0; display: flex; }
.vw-reiter-inhalt.dms > * { flex: 1; min-width: 0; }
.vw-verlauf { display: flex; flex-direction: column; font-size: .74rem; }
.vw-verlauf div { display: grid; grid-template-columns: 120px 140px 1fr; gap: 8px; padding: 5px 4px; border-bottom: 1px solid #eef2f7; }
.vw-verlauf div span:first-child { color: #7a8796; }
.vw-neu { width: min(980px, 96vw); }
.vw-neu-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .vw-neu-wahl { grid-template-columns: 1fr; } }
.vw-positionen { display: flex; flex-direction: column; gap: 4px; }
.vw-position { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e3eaf3; border-radius: 5px; font-size: .78rem; background: #fbfcfe; }
.vw-position b { flex: 1; } .vw-position small { color: #7a8796; }
.vw-kette { display: flex; gap: 8px; flex-wrap: wrap; font-size: .74rem; }
.start-fristen { background: #fff; border: 1px solid #f0c36d; border-left: 4px solid #e48a1e; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.start-fristen-kopf { display: flex; align-items: center; gap: 6px; font-size: .84rem; } .start-fristen-kopf .mud-icon-root { color: #e48a1e; font-size: 19px; }
.start-fristen-liste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.start-frist { all: unset; cursor: pointer; display: flex; gap: 9px; align-items: center; padding: 6px 10px; border: 1px solid #e3eaf3; border-radius: 6px; background: #fbfcfe; max-width: 360px; }
.start-frist:hover { border-color: var(--mf-blau, #2f5fae); background: #f1f6fd; }
.start-frist-datum { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: .84rem; min-width: 46px; }
.start-frist-datum small { font-weight: 400; font-size: .62rem; color: #7a8796; }
.start-frist.rot .start-frist-datum { color: #c62828; } .start-frist.orange .start-frist-datum { color: #b26100; }
.start-frist-text { display: flex; flex-direction: column; font-size: .74rem; overflow: hidden; } .start-frist-text b { font-size: .68rem; color: #5b6b80; }
.adr-korr { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.adr-korr-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adr-korr-titel { font-size: .7rem; font-weight: 700; color: #5b6b80; text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.adr-korr-passend { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #8a5a00; }
.adr-korr-empf { color: #6b7a8c; margin-left: 6px; }
/* ab 3.25: ✕ auch in blassen (übergeordneten) Zeilen gut sichtbar */
.auf-tabelle tr.kontext td.auf-loeschen, .auf-tabelle tr.kontext td.auf-haken { opacity: 1; }
.auf-tabelle td.auf-loeschen button { opacity: .6; }
/* ab 3.25: DMS – Dokumentliste unter den Ordnern (Meine DMS-Ansicht) */
.dms-ablage.liste-unten { grid-template-columns: var(--b, 340px) !important; grid-template-rows: minmax(140px, var(--bh, 36%)) minmax(0, 1fr); }
.dms-ablage.liste-unten.mit-vorschau, .dms-ablage.liste-unten.mit-angaben { grid-template-columns: var(--b, 340px) minmax(0, 1fr) !important; }
.dms-ablage.liste-unten.mit-vorschau.mit-angaben { grid-template-columns: var(--b, 340px) minmax(0, 1fr) var(--a, 430px) !important; }
.dms-ablage.liste-unten > .dms-ablage-baum { grid-column: 1; grid-row: 1; }
.dms-ablage.liste-unten > .dms-ablage-liste { grid-column: 1; grid-row: 2; }
.dms-ablage.liste-unten > .dms-mitte { grid-column: 2; grid-row: 1 / span 2; }
.dms-ablage.liste-unten > .dms-rechts { grid-column: -2 / -1; grid-row: 1 / span 2; }
.dms-ablage.liste-unten:not(.mit-vorschau):not(.mit-angaben) { grid-template-columns: minmax(0, 1fr) !important; }
.dms-ablage.liste-unten .spalten-griff.nur-vorschau { display: none; }
.dms-ablage.liste-unten .dms-tabelle :is(td, th) { display: table-cell !important; }
.dms-ablage.liste-unten .dms-baum-tipp { display: none; }
.dms-ansicht-zwei { display: flex; gap: 6px; }
.dms-ablage .dms-tabelle col.c-datum { width: 108px; }
.dms-oben .dms-suche { min-width: 180px; }
/* ab 3.25: rechte Leiste im Editor (Empfänger, Baustein …) in der Breite ziehbar */
.dok-leiste { width: var(--dok-leiste, 300px); position: relative; }
.dok-editor.zieht { user-select: none; cursor: col-resize; }
.dok-leiste > .spalten-griff { position: absolute; left: 0; top: 0; bottom: 0; }
/* ab 3.25: Startseite – lange Menügruppen eingeklappt, Maus darüber klappt animiert auf (überlagert, nichts verrutscht) */
.start-gruppe.lang { position: relative; height: calc(var(--start-zeile, 1.3rem) * 7 + 2.6rem); }
.start-gruppe.lang .start-gruppe-innen { position: absolute; left: -10px; right: -10px; top: 0; padding: 0 10px 8px; max-height: 100%; overflow: hidden; z-index: 3;
  border-radius: 8px; transition: max-height .35s ease, box-shadow .25s ease, background-color .25s ease; }
.start-gruppe.lang:hover .start-gruppe-innen, .start-gruppe.lang:focus-within .start-gruppe-innen { max-height: 900px; background: var(--th-karte, #fff); box-shadow: 0 10px 28px rgba(20, 35, 60, .18); z-index: 6; }
.start-mehr { margin-left: 6px; font-size: .62rem; font-weight: 600; padding: 0 6px; border-radius: 8px; background: rgba(15, 118, 110, .12); color: inherit; vertical-align: middle; transition: opacity .2s; }
.start-gruppe.lang:hover .start-mehr { opacity: 0; }
.fassung-zeile { display: flex; align-items: center; gap: 8px; font-size: .74rem; padding: 3px 0; border-bottom: 1px solid #eef2f7; } .fassung-zeile > span { flex: 1; } .fassung-zeile small { color: #7a8796; }
/* ab 3.26: Lizenzabrechnung – Vergleich mit der heutigen PPD-Tabelle */
.mf-tabelle.historie th.vgl, .mf-tabelle.historie td.vgl { background: #f4f8ff; border-left: 1px solid #dbe5f3; }
.mf-tabelle.historie td.vgl.gleich { color: #2e7d32; font-weight: 700; text-align: center; }
.mf-tabelle.historie td.vgl.abweichung { color: #c62828; font-weight: 700; }
.vgl-fehler { color: #9a5b00; font-size: .72rem; }
.vgl-ergebnis { margin-left: auto; font-size: .76rem; font-weight: 600; padding: 2px 10px; border-radius: 10px; }
.vgl-ergebnis.gleich { background: #dff3e3; color: #1e6b2a; } .vgl-ergebnis.abweichung { background: #fde2e2; color: #b42318; }
/* ab 3.26: Kalkulation – Zellen in die Formel zeigen (wie Excel) */
.kalk-gitter td.kalk-ref { outline: 2px dashed #2f5fae; outline-offset: -2px; background: rgba(47, 95, 174, .08); }
/* ab 3.27: Editor – Bausteine links als Menü */
.dok-palette { width: 150px; flex-shrink: 0; background: #fbfcfd; border-right: 1px solid #d6dde6; overflow-y: auto; display: flex; flex-direction: column; padding: 4px 6px 12px; gap: 1px; transition: width .15s; }
.dok-palette.zu { width: 46px; padding: 4px 4px 12px; }
.dok-palette button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; font-size: .78rem; color: #1f2d3d; white-space: nowrap; box-sizing: border-box; }
.dok-palette button:hover { background: #e3e9f2; }
.dok-palette button[draggable=true] { cursor: grab; }
.dok-palette button .mud-icon-root { font-size: 20px; color: var(--mf-blau, #2f5fae); flex-shrink: 0; }
.dok-palette.zu button { justify-content: center; padding: 6px 0; }
.dok-palette .dok-palette-kopf { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7a8c; margin-bottom: 4px; border-bottom: 1px solid #e1e6ed; border-radius: 0; }
.dok-palette .dok-palette-kopf .mud-icon-root { color: #6b7a8c; font-size: 18px; }
.dok-palette-trenner { font-size: .62rem; color: #7a8796; text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px 4px; border-top: 1px solid #e1e6ed; margin-top: 6px; min-height: 1px; }
/* ab 3.29: Lizenzabrechnung – Vergleichszeile aufklappen (Menge/Preis/Betrag damals und heute) */
.mf-tabelle.historie td.vgl.klickbar { cursor: pointer; user-select: none; } .mf-tabelle.historie td.vgl.klickbar:hover { background: #e6eefb; }
.vgl-pfeil { display: inline-block; width: 12px; color: #6b7a8c; font-weight: 400; margin-right: 2px; }
.mf-tabelle.historie tr.vgl-details-zeile > td { background: #f8fafd; padding: 6px 10px 10px 24px; }
.vgl-details-kopf { display: flex; align-items: center; gap: 16px; font-size: .74rem; margin-bottom: 4px; color: #4a5868; }
.vgl-detail-tabelle { font-size: .72rem; } .vgl-detail-tabelle tr.abweichung td { background: #fff6f6; }
.vgl-detail-tabelle td.anders { color: #b42318; font-weight: 700; }
/* ab 3.29: Listen – Spalten per Ziehen an der Überschrift verschieben */
.filtertabelle th.sortierbar[draggable=true] { cursor: grab; }
.filtertabelle th.ft-zieht { opacity: .45; }
.filtertabelle th.ft-ziel-links { box-shadow: inset 3px 0 0 var(--mf-blau, #2f5fae); }
.filtertabelle th.ft-ziel-rechts { box-shadow: inset -3px 0 0 var(--mf-blau, #2f5fae); }
/* ab 3.29: Briefe/Serienbriefe als Filterliste */
.korr-inhalt .filtertabelle { height: 100%; }
.filtertabelle td .korr-art, .filtertabelle td .korr-status { line-height: 1.3; }
/* ab 3.29: aufgeklappter Reiter (z. B. Adressverwaltung → Dokumente/Korrespondenz) bei ausgeblendeter Liste: Leiste, Felder und
   Reiterknöpfe bleiben oben stehen, nur der Inhalt des Reiters scrollt. Mit eingeblendeter Liste scrollt wie bisher das ganze Formular. */
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) { overflow: hidden; }
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) > .formular-inhalt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) > .formular-inhalt > form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) > .formular-inhalt > *:not(form),
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) > .formular-inhalt > form > *:not(.klapp-inhalt) { flex: none; }
.ansicht:is(.liste-zu, .ohne-liste) > .ansicht-formular:has(.klapp-inhalt) .klapp-inhalt { flex: 1 1 auto; min-height: 0; overflow: auto; }
/* ab 3.31: Administration → ODBC-Verbindungen */
.ansicht > .ansicht-formular > .formular-inhalt.odbc-inhalt { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }
.odbc-liste { width: calc(240px * var(--s)); flex: none; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--mf-linie); background: #fff; border-radius: 6px; padding: 4px; max-height: 70vh; overflow: auto; }
.odbc-eintrag { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 6px 8px; border-radius: 5px; font-size: .8rem; }
.odbc-eintrag small { color: #6b7a8c; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odbc-eintrag:hover { background: #eef3fa; } .odbc-eintrag.aktiv { background: var(--mf-blau); color: #fff; } .odbc-eintrag.aktiv small { color: #dbe6f5; }
.odbc-eintrag.aus b { text-decoration: line-through; opacity: .7; }
.odbc-leer { padding: 24px; }
.odbc-formular { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.odbc-rahmen { border: 1px solid var(--mf-linie); border-radius: 6px; padding: 8px 12px 10px; display: grid; grid-template-columns: calc(150px * var(--s)) minmax(0, 1fr); gap: 6px 10px; align-items: center; background: var(--mf-formular, #fff); }
/* ab 3.99.58: Reiter „Verbindung“ / „Datenansicht“ */
.odbc-reiter { display: flex; gap: 2px; align-items: flex-end; }
.odbc-reiter > button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--mf-linie); border-bottom: none; background: #eef2f6; color: #475569; padding: 5px 14px; font-size: .78rem; font-weight: 600; border-radius: 6px 6px 0 0; cursor: pointer; }
.odbc-reiter > button.an { background: var(--mf-formular, #fff); color: var(--mf-blau, #0f766e); position: relative; top: 1px; }
.odbc-reiter > button:disabled { opacity: .5; cursor: default; }
.odbc-rahmen.odbc-rahmen-reiter { border-top-left-radius: 0; }
.dbr-daten-reiter { margin: 4px 0 -1px; padding: 0 2px; border-bottom: 1px solid var(--mf-linie); }
.dbr-daten-reiter > button.an { top: 1px; }
.odbc-rahmen legend { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #44505e; padding: 0 4px; }
.odbc-rahmen label { font-size: .8rem; color: #2b3a4a; }
.odbc-rahmen input:not([type=checkbox]), .odbc-rahmen select, .odbc-rahmen textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 3px 6px; font: inherit; font-size: .8rem; background: #fff; }
.odbc-auswahl { display: flex; gap: 8px; align-items: center; } .odbc-auswahl > input, .odbc-auswahl > select { flex: 1; min-width: 0; } .odbc-auswahl > span { white-space: nowrap; font-size: .74rem; }
.odbc-abfrage { grid-template-columns: minmax(0, 1fr); } .odbc-abfrage textarea { font-family: Consolas, "Courier New", monospace; font-size: .78rem; resize: vertical; }
.odbc-abfrage-leiste { display: flex; gap: 10px; align-items: center; font-size: .74rem; }
.odbc-ergebnis { max-height: 40vh; overflow: auto; border: 1px solid var(--mf-linie); background: #fff; }
.odbc-ergebnis td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
.odbc-meldung { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 6px; font-size: .8rem; }
.odbc-meldung.ok { background: #dff3e3; color: #1e6b2a; } .odbc-meldung.fehler { background: #fde2e2; color: #b42318; }
.odbc-hinweis { font-size: .72rem; color: #5b6878; line-height: 1.35; } .odbc-hinweis.warnung { color: #b42318; }
.odbc-hinweis .dok-link { margin-left: 6px; }
/* ab 3.33: Katalog → Importschnittstellen */
.is-regeln { grid-template-columns: minmax(0, 1fr); }
.is-regel-tabelle td { vertical-align: middle; padding: 2px 4px; }
.is-regel-tabelle input:not([type=checkbox]), .is-regel-tabelle select { width: 100%; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 5px; font: inherit; font-size: .78rem; background: #fff; }
.is-regel-tabelle td.is-einstellung { min-width: 300px; }
.is-regel-tabelle .is-einst { display: flex; gap: 4px; align-items: center; }
.is-regel-tabelle .is-einst input.schmal { width: 70px; flex: none; }
.is-regel-tabelle .is-knoepfe .mf-navi { padding: 0 2px; }
.is-regel-tabelle td.is-knoepfe { white-space: nowrap; width: 1%; }
.is-regel-tabelle td.is-knoepfe .is-einst { gap: 0; }
.is-regel-tabelle input.schmal { width: 70px; }
.is-regel-tabelle td.is-pfeil { width: 1%; color: var(--mf-text-zweitrangig, #6b7785); font-weight: 600; text-align: center; padding: 0 2px; }
.pk-import-wahl { display: flex; gap: 10px; align-items: center; padding: 6px 0 8px; flex-wrap: wrap; }
.pk-import-wahl select { min-width: 280px; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 3px 6px; font: inherit; }
.pk-eans { width: 100%; font-family: Consolas, monospace; font-size: .8rem; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 4px 6px; }
.pk-aend { font-size: .72rem; color: #1e6b2a; cursor: help; } .pk-hinweis { font-size: .72rem; color: #9a5b00; }
.pk-nachladen { display: inline-flex; align-items: center; gap: 6px; color: var(--mf-text-zweitrangig, #6b7785); font-size: .8rem; }
/* ab 3.37: Artikelauswahl im Katalog-Import als Filterliste */
.suche-treffer:has(> .pk-ft) { overflow: hidden; display: flex; flex-direction: column; border: 0; }
.pk-ft { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk-ft table.ft tr.aktiv td { background: #e6f2ec; }
.pk-ft table.ft input[type=checkbox] { pointer-events: none; }
/* ab 3.37: Hinweise in der Spalte Vorgaben vollständig lesbar (umbrechen statt abschneiden) */
.suche-treffer tr.sz td.pk-vorgaben { white-space: normal; height: auto; min-width: 280px; max-width: 480px; overflow: visible; }
.suche-treffer td.pk-vorgaben .pk-hinweis { white-space: normal; }
.pk-fertig { display: inline-flex; align-items: center; gap: 6px; color: #1a7f37; font-weight: 600; }
.pk-gewaehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; max-height: 64px; overflow: auto; }
.pk-fehlend { border: 1px solid #e0b252; background: #fff8e6; border-radius: 6px; padding: 8px 10px; margin: 8px; }
.pk-fehlend-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: #8a5a00; }
.pk-fehlend table { background: #fff; width: auto; }
.pk-fehlend-feld { width: 100%; min-width: 120px; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 5px; font: inherit; font-size: .8rem; background: #fffdf2; }
.pk-fehlend-knoepfe { display: flex; gap: 8px; margin-top: 8px; }
/* ab 3.37: Beispiel-Artikel in der Feldzuordnung */
.is-beispiel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; }
.is-beispiel .mf-suche { max-width: 260px; }
.is-bsp-stand { font-size: .78rem; }
.is-regel-tabelle .is-bsp { font-size: .68rem; color: #46606f; padding: 1px 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.is-regel-tabelle .is-bsp.ziel { color: #1a7f37; }
.is-regel-tabelle .is-bsp.leer { color: #a0a8b0; font-style: italic; }
.is-regel-tabelle td { vertical-align: top; }
/* ab 3.37: Importschnittstellen – Abschnitte einklappbar, oben zweispaltig bei breitem Fenster */
.is-zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.odbc-formular { container-type: inline-size; }
@container (min-width: 1150px) { .is-zweispaltig { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.odbc-rahmen legend.is-klapp { cursor: pointer; user-select: none; }
.odbc-rahmen legend.is-klapp:hover { color: var(--mf-blau, #1d5fa8); }
.is-klapp-pfeil { display: inline-block; width: 1em; }
.odbc-rahmen.zu > :not(legend) { display: none !important; }
.odbc-rahmen.zu { padding-bottom: 0; }
.is-json { margin: 0 0 8px; font-size: .75rem; }
.is-json summary { cursor: pointer; color: var(--mf-blau, #1d5fa8); }
.is-json pre { max-height: 360px; overflow: auto; background: #f6f8fa; border: 1px solid var(--mf-linie); border-radius: 4px; padding: 6px 8px; font-size: .7rem; white-space: pre; }
.is-menue-titel { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #44505e; }
.is-vorlage-eintrag { display: inline-flex; align-items: center; gap: 6px; width: 100%; }
.is-vorlage-eintrag .dms-weg { margin-left: auto; }
.is-vorlage-speichern { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.is-vorlage-speichern input { border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 3px 6px; font: inherit; font-size: .8rem; width: 220px; }
.is-vorlagen-anker { position: relative; display: inline-block; }
.is-vorlagen-menue { padding: 6px 0; min-width: 300px; z-index: 1600; }
.is-vorlagen-menue .is-menue-titel { padding: 6px 12px 2px; }
.is-menue-eintrag { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 12px; font-size: .82rem; cursor: pointer; }
.is-menue-eintrag:hover:not(:disabled) { background: #eef3fa; }
.is-menue-eintrag:disabled { color: #a0a8b0; cursor: default; }
.is-menue-zeile { display: flex; align-items: center; padding-right: 8px; }
.is-menue-leer { padding: 3px 12px; font-size: .78rem; color: #8a96a3; }
.is-menue-trenner { border-top: 1px solid var(--mf-linie); margin: 6px 0; }
.is-test-ean { max-width: 170px; }
/* ab 3.40: Merkmale markieren (Dokumentregeln) */
.dms-merkmal-leiste { align-self: stretch; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 10px; background: #e8f0fb; border: 1px solid #b8cbe6; border-radius: 6px; font-size: .8rem; color: #1d3f75; }
.dms-wortwahl { position: absolute; cursor: pointer; outline: 1px dashed rgba(29, 95, 168, .35); border-radius: 2px; }
.dms-wortwahl:hover { background: rgba(29, 95, 168, .15); }
.dms-wortwahl.gewaehlt { background: rgba(29, 95, 168, .35); outline: 2px solid #1d5fa8; }
.dms-regel { display: flex; flex-direction: column; gap: 8px; }
.dms-regel-zeile { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.dms-regel-zeile > span:first-child { width: 120px; flex: none; color: #2b3a4a; }
.dms-regel-zeile input:not([type=checkbox]), .dms-regel-zeile select { flex: 1; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 3px 6px; font: inherit; }
.dms-regel-zeile .dms-tags { flex: 1; }
.dms-regel-zeile input.dms-regel-neu { flex: 0 0 160px; }
.dms-regel-merkmale input { width: 100%; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 5px; font: inherit; font-size: .8rem; }
.dms-regel-merkmale input.schmal { width: 64px; }
.dms-regel-treffer { max-height: 220px; overflow: auto; border: 1px solid var(--mf-linie); border-radius: 4px; padding: 4px 8px; font-size: .78rem; }
.dms-regel-liste td.nowrap { white-space: nowrap; }
.dms-regel-liste tr.aus td { color: #a0a8b0; }
.dms-seiten.merkmal-an .dms-seite-drehen { display: none; }
.dms-seiten.merkmal-an .dms-wortwahl { z-index: 4; }
/* ab 3.40: Logo als Merkmal */
.dms-seiten.merkmal-an .dms-seite { cursor: crosshair; }
.dms-logorahmen { position: absolute; z-index: 6; border: 2px dashed #c2410c; background: rgba(234, 88, 12, .08); pointer-events: none; }
.dms-logowahl { position: absolute; z-index: 5; border: 2px solid #c2410c; background: rgba(234, 88, 12, .12); border-radius: 3px; cursor: pointer; }
.dms-logowahl > span { position: absolute; left: -2px; top: -16px; font-size: .58rem; line-height: 14px; padding: 0 5px; background: #c2410c; color: #fff; border-radius: 3px 3px 0 0; }
.dms-regel-logo { display: inline-flex; align-items: center; gap: 6px; }
.dms-regel-logo img { max-height: 36px; max-width: 120px; border: 1px solid var(--mf-linie); background: #fff; }
.dms-regel-logo-klein { max-height: 22px; max-width: 70px; vertical-align: middle; margin-right: 6px; border: 1px solid var(--mf-linie); background: #fff; }
.dms-logo-proz { margin-left: 6px; font-size: .7rem; padding: 0 5px; border-radius: 8px; background: #e6f4ea; color: #1e6b34; }
.dms-logo-proz.knapp { background: #fdecea; color: #a12b1f; }
.dms-regel-treffer .daneben { opacity: .65; }
/* ab 3.40: Administration → Datenbank */
.db-navi { display: flex; flex-direction: column; gap: 2px; width: calc(300px * var(--s)); }
.db-wahl { width: 100%; border: 1px solid var(--mf-feldrand); border-radius: 4px; padding: 3px 6px; font: inherit; font-size: .8rem; margin-bottom: 6px; }
.db-suche { width: 100%; box-sizing: border-box; }
.db-suche input { width: 100%; }
.db-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-inhalt { overflow: auto; }
.db-kopf { font-size: .78rem; color: #46566a; }
.db-tabelle { background: #fff; border: 1px solid #d3dce8; border-radius: 8px; padding: 10px 14px; }
.db-titel { font-size: .95rem; margin-bottom: 4px; }
.db-titel b { color: #1a7f37; }
.db-felder { border-collapse: collapse; font-size: .76rem; margin-bottom: 8px; }
.db-felder th { text-align: left; font-weight: 600; color: #5d6b7a; padding: 2px 14px 2px 0; border-bottom: 1px solid #e3e9f0; white-space: nowrap; }
.db-felder td { padding: 1px 14px 1px 0; border-bottom: 1px solid #f3f5f8; white-space: nowrap; vertical-align: top; }
.db-felder td.pk { font-weight: 700; text-decoration: underline; }
.db-felder td.typ { color: #6b7685; font-family: Consolas, "Cascadia Mono", monospace; font-size: .72rem; }
.db-felder tr.treffer td { background: #fff6c2; }
/* ab 3.41: Griff zum Ein-/Ausklappen der Menüleiste */
.menue-griff { position: fixed; z-index: 1250; top: 50%; left: calc(var(--mrr-menue-breite, calc(250px * var(--s))) - 1px); /* ab 3.99.274: folgt der gezogenen Menübreite */ transform: translateY(-50%); width: 14px; height: 48px; padding: 0; border: 0; border-radius: 0 6px 6px 0; background: #2a3a4d; color: #cbd5e1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .55; transition: opacity .15s, left .2s; }
.menue-griff:hover { opacity: 1; background: var(--mf-blau, #2f5fae); color: #fff; }
.menue-griff.zu { left: 0; opacity: .8; }
.menue-griff .mud-icon-root { font-size: 16px; }
@media (max-width: 959px) { .menue-griff { display: none; } }
/* ab 3.41: Spalten der DMS-Liste im Ansichtsdialog */
.dms-spaltenwahl { display: grid; grid-template-columns: minmax(0, 320px); gap: 1px; margin: 4px 0 8px; }
.dms-spalte { display: flex; align-items: center; gap: 2px; padding: 1px 4px; border-radius: 4px; }
.dms-spalte label { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .8rem; cursor: pointer; color: #7b8796; }
.dms-spalte.an label { color: #1f2d40; font-weight: 600; }
.dms-spalte:hover { background: #f2f5f9; }
.dms-ablage .dms-tabelle col.c-titel { width: auto; } .dms-ablage .dms-tabelle col.c-datei { width: 160px; } .dms-ablage .dms-tabelle col.c-seiten { width: 46px; }
.dms-ablage .dms-tabelle col.c-groesse { width: 62px; } .dms-ablage .dms-tabelle col.c-von { width: 80px; } .dms-ablage .dms-tabelle col.c-quelle { width: 80px; }
.dms-ablage .dms-tabelle col.c-bemerkung, .dms-ablage .dms-tabelle col.c-begriffe { width: 140px; }
.dms-ablage .dms-tabelle td.rechts { text-align: right; }
/* ab 3.41: Fenster-Reiter oben kleiner */
.mf-reiter > button, .mf-reiter .reiter { font-size: .74rem !important; height: calc(24px * var(--s)) !important; }
.mf-reiter > button { height: calc(24px * var(--s)) !important; padding: 0 calc(9px * var(--s)) !important; }
.mf-reiter .reiter button { height: calc(24px * var(--s)); padding: 0 calc(4px * var(--s)) 0 calc(9px * var(--s)); }
.mf-reiter .reiter .reiter-zu { padding: 0 calc(7px * var(--s)) 0 calc(3px * var(--s)); font-size: .85rem; }
.mf-reiter .reiter .reiter-symbol { padding: 0; }
.mf-reiter .reiter .reiter-symbol .mud-icon-root { font-size: calc(11px * var(--s)); }
/* ab 3.41: Administration → Modulübersicht */
.mod-ansicht { padding: 12px 16px; overflow: auto; }
.mod-band { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 18px; border-radius: 10px; color: #e8eef5; background: linear-gradient(135deg, #14202e, #1e3a4a); margin-bottom: 10px; }
.mod-band small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: #8fb8b4; font-weight: 700; }
.mod-band b { font-size: .95rem; }
.mod-band code { font-size: 1.05rem; color: #fff; letter-spacing: .06em; }
.mod-zustand { display: flex; align-items: center; gap: 8px; font-size: 1rem; padding-right: 10px; }
.mod-band.z-gueltig .mod-zustand .mud-icon-root { color: #4ade80; }
.mod-band.z-offline .mod-zustand .mud-icon-root { color: #fbbf24; }
.mod-band.z-keine { background: linear-gradient(135deg, #334155, #475569); }
.mod-band.z-abgelaufen, .mod-band.z-gesperrt, .mod-band.z-version, .mod-band.z-ungueltig { background: linear-gradient(135deg, #3f1d1d, #6b2328); }
.mod-hinweis { background: #f0f7ff; border: 1px solid #c7dbf3; color: #1d3f75; border-radius: 8px; padding: 8px 12px; font-size: .82rem; margin-bottom: 10px; }
.mod-fehler { display: flex; gap: 6px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 6px 12px; font-size: .8rem; margin-bottom: 10px; }
.mod-karte { background: #fff; border: 1px solid #dfe5ee; border-radius: 10px; padding: 8px 14px 10px; margin-bottom: 10px; }
.mod-aktivieren { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mod-aktivieren label { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; color: #5d6b7a; }
.mod-aktivieren input { border: 1px solid var(--mf-feldrand); border-radius: 4px; padding: 5px 8px; font: inherit; font-size: .85rem; min-width: 320px; }
.mod-aktivieren input.mod-schluessel { min-width: 200px; font-family: Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.mod-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-plaetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 8px; }
.mod-platz { background: #fff; border: 1px solid #dfe5ee; border-radius: 10px; padding: 10px 12px; }
.mod-platz-kopf { font-size: .95rem; margin-bottom: 6px; }
.mod-anzahl { font-weight: 800; color: #0f766e; font-size: 1.1rem; }
.mod-belegt { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: #5d6b7a; }
.mod-balken { flex: 1; height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.mod-balken i { display: block; height: 100%; background: #0f766e; }
.mod-balken i.voll { background: #ea580c; }
.mod-wer { font-size: .72rem; color: #334155; margin-top: 3px; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mod-chips span { font-size: .66rem; padding: 1px 8px; border-radius: 10px; color: #fff; background: var(--f); }
.mod-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 8px; }
.mod-kachel { position: relative; border: 1px solid #dfe5ee; border-radius: 10px; padding: 10px 10px 8px 36px; background: #f8fafc; color: #94a3b8; min-height: 54px; }
.mod-kachel .mud-icon-root { position: absolute; left: 10px; top: 10px; font-size: 18px; }
.mod-kachel b { display: block; font-size: .82rem; }
.mod-kachel small { font-size: .68rem; }
.mod-kachel.an { border-color: var(--f); background: color-mix(in srgb, var(--f) 8%, #fff); color: var(--f); }
.mod-kachel.an b { color: #1f2d40; }
.mod-zuordnung select { border: 1px solid var(--mf-feldrand); border-radius: 4px; padding: 2px 6px; font: inherit; font-size: .78rem; }
.mod-online { color: #16a34a; font-size: .74rem; font-weight: 600; }
/* ab 3.41: Datenbank – fester Kopf links, Ansichten, Vergleich */
.db-navi { padding-top: 0 !important; }
.db-navi-kopf { position: sticky; top: 0; z-index: 2; background: #fff; padding: 8px 0 6px; display: flex; flex-direction: column; gap: 4px; }
.db-navi-zeile { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.db-sort { border: 1px solid var(--mf-feldrand); border-radius: 4px; font: inherit; font-size: .72rem; padding: 1px 4px; }
.db-zahlen { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; font-size: .7rem; opacity: .75; flex: none; }
.db-zahlen small { font-size: .62rem; opacity: .8; }
.db-leiste { flex-wrap: wrap; }
.db-ansichten { display: inline-flex; border: 1px solid #c9d3df; border-radius: 6px; overflow: hidden; }
.db-ansichten button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: .78rem; color: #334155; border-right: 1px solid #e2e8f0; background: #fff; }
.db-ansichten button:last-child { border-right: 0; }
.db-ansichten button.aktiv { background: var(--mf-blau, #2f5fae); color: #fff; }
.db-kopf { font-size: .74rem; color: #5d6b7a; margin: 2px 2px 6px; }
.db-sortierbar th { cursor: pointer; user-select: none; }
.db-sortierbar th:hover { color: #1f2d40; }
.db-felder th.rechts, .db-felder td.rechts { text-align: right; }
.db-felder tr.klickbar { cursor: pointer; }
.db-felder tr.klickbar:hover td { background: #f2f6fb; }
.db-vergleich { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding-bottom: 6px; }
.db-spalte { flex: 0 0 auto; min-width: 230px; max-width: 360px; }
.db-spalte .db-titel { display: flex; align-items: center; gap: 6px; }
.db-spalte .db-titel .dms-weg { margin-left: auto; }
.db-felder tr.gleich td { background: #e9f7ef; }
.db-felder tr.gleich.treffer td, .db-felder tr.treffer td { background: #fff6c2; }
.dms-regel-zu { border: 1px solid #b8cbe6; border-radius: 4px; font: inherit; font-size: .76rem; padding: 2px 6px; max-width: 220px; background: #fff; color: #1d3f75; }
.logs-gesamt { margin: 10px 4px 0; padding: 6px 8px; border-radius: 6px; background: #f2f5f9; font-size: .74rem; color: #46566a; }
.dms-regel-haken { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #2b3a4a; }
/* ab 3.41: Regel im Dokument bearbeiten – vorhandene Merkmale */
.dms-merkmal-alt { position: absolute; z-index: 5; border: 2px solid #2563eb; background: rgba(37, 99, 235, .08); border-radius: 3px; pointer-events: none; }
.dms-merkmal-alt.passt { border-color: #16a34a; background: rgba(22, 163, 74, .10); }
.dms-merkmal-alt.passt-nicht { border-color: #dc2626; border-style: dashed; background: rgba(220, 38, 38, .06); }
.dms-merkmal-alt > span { position: absolute; left: -2px; bottom: 100%; white-space: nowrap; font-size: .6rem; line-height: 15px; padding: 0 2px 0 6px; color: #fff; background: #2563eb; border-radius: 3px 3px 0 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 2px; }
.dms-merkmal-alt.passt > span { background: #16a34a; } .dms-merkmal-alt.passt-nicht > span { background: #dc2626; }
.dms-merkmal-alt button { all: unset; cursor: pointer; padding: 0 4px; font-size: .7rem; }
.dms-regel-ohne { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
.dms-regel-ohne > span { border-radius: 8px; padding: 0 2px 0 6px; font-size: .72rem; }
.dms-regel-ohne .passt { background: #dcfce7; color: #166534; } .dms-regel-ohne .passt-nicht { background: #fee2e2; color: #991b1b; }
.dms-regel-ohne button { all: unset; cursor: pointer; padding: 0 4px; }
.dms-muster { display: inline-block; margin: 0 4px; padding: 0 6px; border-radius: 8px; font-size: .74rem; font-weight: 600; }
.dms-muster.ok { background: #dcfce7; color: #166534; }
.dms-muster.warn { background: #fef3c7; color: #92400e; }
/* ab 3.42: Fußzeile der Dokumentliste */
.dms-liste-fuss { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #f2f5f9; border-top: 1px solid #dfe5ee; font-size: .72rem; color: #46566a; }
.dms-liste-fuss b { color: #1d3f75; background: #dbe7f7; border-radius: 8px; padding: 0 8px; }
.dms-liste-fuss .dms-link-text { flex: none; font-size: .72rem; }
.dms-ablage-liste { display: flex; flex-direction: column; }
.dms-ablage-liste > .dms-tabelle { flex: none; }
.dms-liste-fuss { margin-top: auto; }
/* ab 3.42: Regeln prüfen */
.dms-pruef { border: 1px solid #f3c6c6; background: #fff8f8; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.dms-pruef.passt { border-color: #a7dcb8; background: #f2fbf5; }
.dms-pruef-kopf { display: flex; align-items: center; gap: 6px; font-size: .86rem; }
.dms-pruef .dms-pruef-kopf .mud-icon-root { color: #dc2626; } .dms-pruef.passt .dms-pruef-kopf .mud-icon-root { color: #16a34a; }
.dms-pruef-zeile { font-size: .78rem; color: #991b1b; padding: 1px 0 1px 22px; display: flex; align-items: center; gap: 6px; }
.dms-pruef-zeile.ok { color: #166534; }
.dms-pruef-zeile img { max-height: 20px; max-width: 60px; border: 1px solid #dfe5ee; background: #fff; }
/* Bild-Stempel (ab 3.43): Grafik in % der Seitenbreite, Weiß verschwindet (multiply), optionale Textzeile darunter */
.dms-stempel-grafik { display: inline-flex; flex-direction: column; align-items: center; gap: .15em; line-height: 1.05; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.dms-stempel-grafik img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.dms-stempel .dms-stempel-text .dms-stempel-grafik { cursor: move; }
.dms-stempel-grafik-text { font-weight: 600; font-size: .75em; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dms-stempel-grafik.muster { font-size: 10px; background: #fff; }
.dms-stempel-grafik.muster img { width: auto; max-width: 160px; max-height: 44px; }
.dms-stempel-tabelle .dms-stempel-bildwahl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dms-stempel-tabelle .dms-stempel-bildwahl input[type=number] { width: 58px; }
.dms-stempel-tabelle .dms-stempel-bildwahl label.mf-knopf { cursor: pointer; }
/* ab 3.43: Fortschritt der Lizenzabrechnung (Vertragspartner x von y) */
.lz-fortschritt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-size: .72rem; color: #1f2d3d; }
.lz-fortschritt small { flex-basis: 100%; font-size: .66rem; color: #6b7a8c; }
/* ab 3.43: Ursache grober Abweichungen im Vergleich (Spalte ganz hinten) */
.lz-grenze { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .72rem; color: #1f2d3d; }
.lz-grenze input { width: 56px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; padding: 1px 4px; font-size: .72rem; }
.mf-tabelle.historie .ursache-spalte { min-width: 260px; max-width: 420px; white-space: normal; vertical-align: top; }
.ursache { display: flex; flex-direction: column; gap: 1px; font-size: .68rem; line-height: 1.25; }
.ursache-warn { color: #b3261e; font-weight: 700; }
.ursache-posten { color: #1f2d3d; }
.ursache-posten small, .ursache > small { display: block; color: #6b7a8c; font-size: .62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }
/* ab 3.43: Dialoge an der Titelzeile verschiebbar (mrr.js) */
.mud-dialog .mud-dialog-title { cursor: move; user-select: none; }
.mud-dialog .mud-dialog-title :is(button, a, input, select, textarea) { cursor: pointer; }
.mud-dialog.mrr-dialog-zieht { transition: none !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
/* ab 3.99.340: Griff unten rechts zum Größe-Ziehen (jede Größe wird je Benutzer gemerkt) */
.mud-dialog { position: relative; }
.mud-dialog > .mrr-dialog-griff { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 5;
    background: linear-gradient(135deg, transparent 0 50%, rgba(15, 122, 108, .55) 50% 58%, transparent 58% 70%, rgba(15, 122, 108, .55) 70% 78%, transparent 78%); }
.mud-dialog > .mrr-dialog-griff:hover { background-color: rgba(15, 122, 108, .08); }
.mud-dialog.mrr-dialog-hoehe { display: flex; flex-direction: column; }
.mud-dialog.mrr-dialog-hoehe > .mud-dialog-content { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow: auto; }
.mud-dialog.mrr-dialog-hoehe > :is(.mud-dialog-title, .mud-dialog-actions) { flex: 0 0 auto; }
/* ab 3.43: Schnellsuche (Alt+F2) */
.schnellsuche-rahmen { display: none; } .schnellsuche-rahmen.offen { display: block; }
.schnellsuche-hintergrund { position: fixed; inset: 0; z-index: 1490; background: rgba(15, 25, 40, .25); }
.schnellsuche { position: fixed; z-index: 1500; top: 14vh; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
    background: #fff; color: #1f2d3d; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid #c9d4e2; }
.schnellsuche-zeile { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e3eaf3; color: #5b6b80; }
.schnellsuche-zeile input { flex: 1; border: 0; outline: none; font-size: 1rem; background: transparent; color: #1f2d3d; }
.schnellsuche-zeile kbd, .schnellsuche-fuss kbd { font-size: .62rem; border: 1px solid #c9d4e2; border-radius: 4px; padding: 1px 5px; color: #6b7a8c; background: #f4f7fb; }
.schnellsuche-liste { max-height: 50vh; overflow: auto; padding: 4px; }
.schnellsuche-treffer { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.schnellsuche-treffer.aktiv { background: var(--mf-blau, #2f5fae); color: #fff; }
.schnellsuche-titel { font-size: .86rem; font-weight: 600; }
.schnellsuche-ort { font-size: .7rem; color: #6b7a8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schnellsuche-treffer.aktiv .schnellsuche-ort { color: rgba(255, 255, 255, .8); }
.schnellsuche-leer { padding: 12px 16px; font-size: .8rem; color: #6b7a8c; }
.schnellsuche-fuss { padding: 6px 14px; font-size: .64rem; color: #8494a7; border-top: 1px solid #eef2f7; background: #fafcfe; }
@keyframes mrr-aufblitzen { 0%, 100% { box-shadow: 0 0 0 0 rgba(228, 138, 30, 0); } 20%, 60% { box-shadow: 0 0 0 4px rgba(228, 138, 30, .75); } }
.mrr-aufblitzen { animation: mrr-aufblitzen 1s ease-in-out 2; border-radius: 6px; }
/* ab 3.43: Tastaturbefehle und Arbeitsbereiche (Benutzereinstellungen) */
.tb-raster { display: flex; flex-direction: column; gap: 12px; }
.tb-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.tb-suche { flex: 1; min-width: 200px; }
.tb-anzahl { font-size: .7rem; color: #6b7a8c; }
.tb-liste { max-height: 60vh; overflow: auto; border: 1px solid #e3eaf3; border-radius: 4px; }
.tb-tabelle { width: 100%; font-size: .76rem; }
.tb-tabelle thead th { position: sticky; top: 0; z-index: 1; }
.tb-tabelle td { vertical-align: middle; }
.tb-tabelle tr.fest td { color: #8494a7; }
.tb-tabelle tr.lernt td { background: #fff4e0; }
.tb-tabelle tr.leer td { color: #8494a7; }
.tb-bereich { color: #6b7a8c; white-space: nowrap; }
.tb-taste { display: inline-block; font-family: inherit; font-size: .7rem; font-weight: 600; padding: 1px 6px; border: 1px solid #b9c6d6; border-bottom-width: 2px; border-radius: 4px; background: #f7f9fc; color: #1f2d3d; white-space: nowrap; }
.tb-lernt { color: #c96f0a; font-weight: 700; animation: mf-chat-farbe 1.4s infinite; color: #fff; padding: 1px 6px; border-radius: 4px; }
.tb-knoepfe { white-space: nowrap; text-align: right; }
.tb-knoepfe > * + * { margin-left: 4px; }
.tb-name { width: 100%; min-width: 120px; }

/* ab 3.43: Aufzählung mit Buchstaben wie im PDF: a) b) c) */
.dok-text ol[type="a" s], .dok-text ol[type="A" s] { list-style: none; counter-reset: dok-abc; padding-left: 2em; }
.dok-text ol[type="a" s] > li, .dok-text ol[type="A" s] > li { counter-increment: dok-abc; position: relative; }
.dok-text ol[type="a" s] > li::before { content: counter(dok-abc, lower-alpha) ")"; position: absolute; left: -1.6em; }
.dok-text ol[type="A" s] > li::before { content: counter(dok-abc, upper-alpha) ")"; position: absolute; left: -1.6em; }
/* ab 3.44: Administration → Schriften */
.schr-inhalt { padding: 10px 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.schr-vorschau-zeile { display: flex; align-items: center; gap: 8px; font-size: .76rem; }
.schr-vorschau-zeile input { flex: 1; max-width: 640px; }
.schr-familie { background: #fff; border: 1px solid #d6dde6; border-radius: 6px; overflow: hidden; }
.schr-kopf { padding: 6px 10px; background: #f4f7fb; border-bottom: 1px solid #e3eaf3; font-size: .82rem; }
.schr-kopf small { color: #6b7a8c; margin-left: 6px; }
.schr-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #eef2f7; }
.schr-zeile:last-child { border-bottom: 0; }
.schr-stil { font-size: .72rem; color: #5b6b80; }
.schr-muster { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f2d3d; }
.schr-info { font-size: .68rem; color: #8494a7; white-space: nowrap; }

/* 3.45: automatisch ablegen (Dateiname, Standard-Ablage je Art) */
.dms-einst-text.warnung { color: #9a5b00; }
.dms-regel-dateiname { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.dms-regel-dateiname .mud-icon-root { font-size: 1rem; }
.dms-regel-dateiname input { flex: 1; min-width: 8rem; }
.dms-art-ordner { margin-top: .4rem; max-width: 40rem; }
.dms-art-ordner select { width: 100%; }
.dms-ablage-grund { margin-top: .25rem; line-height: 1.35; }
.dms-ablage-grund .mud-icon-root { font-size: .9rem; vertical-align: -2px; }

/* 3.46: Lizenzabrechnung – Probelauf neben der letzten Periode */
.lz-wl-vergleich { margin: 0 0 12px; }
.lz-wl-vergleich > summary { cursor: pointer; font-weight: 600; margin-bottom: 4px; color: #e8eef6 !important; }
.lz-wl-vergleich table { max-width: 60rem; }
.lz-wl-vergleich tr.lz-wl-auffaellig td { background: #fff3cd; }

/* 3.46: Fenster-Reiter beginnen bei ausgeklapptem Menü genau an dessen rechter Kante (über dem Arbeitsbereich) */
.mrr-appbar.menue-offen .mrr-brand { flex: 0 0 auto; box-sizing: border-box; width: calc((250px - 60.7px) * var(--s)); }

/* 3.47: fertige Lizenzabrechnung blinkt oben, bis sie angeklickt wird */
@keyframes mrr-blinken { 0%, 100% { filter: none; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 50% { filter: brightness(1.35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); } }
.hintergrund-arbeit.blinken { animation: mrr-blinken 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hintergrund-arbeit.blinken { animation-duration: 3s; } }
.vgl-ergebnis.gesamt { margin-left: 6px; background: #e8eef6; color: #2c3e57; }
.ursache-konditionen { font-size: .72rem; color: #5a4a00; background: #fff7d6; border-radius: 4px; padding: 1px 6px; margin-bottom: 2px; }
.vgl-bereiche { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.vgl-bereich { font-size: .74rem; padding: 2px 10px; border-radius: 10px; background: #fde2e2; color: #b42318; }
.vgl-bereich.gleich { background: #dff3e3; color: #1e6b2a; }
.vgl-bereich small { font-weight: 400; margin-left: 4px; }
.partner-ergebnis > header { flex-wrap: wrap; }
.lz-zeitraum-hinweis { font-size: .72rem; line-height: 1.35; }
/* 3.48: EAN-Feld beim Zugangstest behält seine Breite; die Meldung steht darunter */
.odbc-auswahl:has(> .is-test-ean) { flex-wrap: wrap; }
.odbc-auswahl > input.is-test-ean { flex: 0 0 170px; }
.odbc-auswahl:has(> .is-test-ean) > .odbc-meldung { flex-basis: 100%; white-space: normal; }

/* 3.49: Listen – „Suchen in“ und Werkzeug */
.ft-suchen-in { height: calc(28px * var(--s)); border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 4px; font-size: .78rem; padding: 0 4px; background: #fff; max-width: 180px; }
.ft-werkzeug { margin-left: 6px; }
.dok-gespeichert.offen { color: #3d2a00; background: #fcd34d; font-weight: 700; opacity: 1 !important; padding: 2px 9px; border-radius: 999px; font-size: .72rem; }

/* 3.50: Office – Vorschau rechts (Breite per Ziehen, --vw) */
.office-raster { display: flex; align-items: stretch; min-height: 0; }
.office-raster > .office-liste { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.office-raster > .office-liste > .filtertabelle { flex: 1; min-height: 0; }
.office-vorschau { position: relative; flex: 0 0 auto; width: var(--vw, 520px); max-width: 70%; display: flex; flex-direction: column; border-left: 1px solid var(--mf-linie, #d5dde8); background: #eef2f7; }
.office-vorschau iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.office-vorschau-kopf { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: .78rem; border-bottom: 1px solid var(--mf-linie, #d5dde8); background: #fff; }
.office-vorschau-kopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-vorschau-leer { margin: auto; padding: 24px; text-align: center; color: #6b7a8c; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.office-raster.zieht iframe { pointer-events: none; }
.office-vorschau-seiten { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.office-vorschau-seiten img { width: 100%; max-width: 900px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }

/* ab 3.51: mehrere E-Mail-Konten (Mandant → E-Mail) und Versand der Lizenzabrechnung */
.mail-konto { border: 1px solid var(--mf-linie); border-radius: 8px; padding: 8px 12px 4px; margin: 8px 0 12px; background: #fafcfe; }
.mail-konto-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mail-konto-name { font: inherit; font-weight: 700; padding: 4px 8px; border: 1px solid #c9d4e2; border-radius: 4px; min-width: 260px; }
.mail-bereiche { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 6px 0; font-size: .85rem; }
.mail-bereiche label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.mail-bereiche-titel { font-weight: 600; color: var(--mf-text-2); }
.am-kopf { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.am-tabelle { width: 100%; margin-bottom: 10px; }
.am-tabelle td, .am-tabelle th { padding: 4px 6px; vertical-align: middle; }
.am-empfaenger { font: inherit; width: 100%; min-width: 220px; padding: 3px 6px; border: 1px solid #c9d4e2; border-radius: 4px; }
.am-gesperrt td { color: var(--mf-text-2); }
.am-text textarea { width: 100%; font: inherit; }
.mail-felder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px 16px; margin: 4px 0 8px; }
.mail-felder .feld { grid-column: span var(--spalten, 12); display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.mail-felder .feld > label { flex: none; width: 120px; padding-top: 5px; font-size: .85rem; font-weight: 600; color: #33445a; }
.mail-felder .feld-eingabe { flex: 1; min-width: 0; }
.mail-felder input:not([type=checkbox]), .mail-felder textarea { box-sizing: border-box; width: 100%; font: inherit; font-size: .88rem; padding: 4px 8px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; }
.mail-felder input:disabled, .mail-felder textarea:disabled { background: #f3f5f8; }
.mail-felder textarea { resize: vertical; }
.mail-felder .feld:has(.mail-haken) > label { width: auto; }
/* ab 3.52: E-Mail-Versand der Lizenzabrechnung */
.mail-spalte { white-space: nowrap; }
.mail-info { all: unset; cursor: pointer; font-size: inherit; font-family: inherit; line-height: inherit; /* ab 3.59: so groß wie die übrigen Zellen */ color: var(--mf-gruen-text, #1b6b3a); text-decoration: underline dotted; }
.mail-info:hover { text-decoration: underline; }
.mail-info.fehler { color: #b3261e; font-weight: 700; }
.ami-eintrag { border: 1px solid var(--mf-linie); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.ami-eintrag.fehler { border-color: #e3a19b; background: #fff6f5; }
.ami-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ami-fehler-marke { background: #b3261e; color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.ami-daten { display: grid; grid-template-columns: 140px 1fr; gap: 3px 12px; margin: 0; font-size: .85rem; }
.ami-daten dt { color: var(--mf-text-2); font-weight: 600; }
.ami-daten dd { margin: 0; overflow-wrap: anywhere; }
.ami-text { white-space: pre-wrap; font: inherit; font-size: .82rem; background: #f6f8fb; border-radius: 6px; padding: 8px 10px; margin: 8px 0 0; max-height: 220px; overflow: auto; }
.mehrfach-haken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 2px 0; font-size: .85rem; }
.mehrfach-haken label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mehrfach-haken.leer { outline: 2px solid #d9534f; outline-offset: 2px; border-radius: 4px; }
/* ab 3.53: E-Mail-Einstellungen zweispaltig, DMS-Ablage */
.mail-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
@media (max-width: 1100px) { .mail-spalten { grid-template-columns: minmax(0, 1fr); } }
.mail-dms-schalter { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: .88rem; cursor: pointer; }
.mail-dms-baum { max-height: 260px; overflow: auto; border: 1px solid var(--mf-linie); border-radius: 6px; padding: 4px; margin: 6px 0; background: #fff; }
/* ab 3.53: E-Mail-Einstellungen im Stil der ODBC-Verbindungen (einheitliche Administration) */
.mail-konto { background: var(--mf-formular, #fff); border-radius: 6px; padding: 6px 12px 6px; }
.mail-felder { gap: 6px 10px; }
.mail-felder .feld > label { width: calc(150px * var(--s, 1)); font-size: .8rem; font-weight: 400; color: #2b3a4a; padding-top: 3px; }
.mail-felder input:not([type=checkbox]), .mail-felder textarea, .mail-konto-name, .mail-test input { font: inherit; font-size: .8rem; padding: 3px 6px; border: 1px solid var(--mf-feldrand); border-radius: 3px; background: #fff; }
.mail-konto-name { font-weight: 700; min-width: 220px; }
.mail-bereiche, .mail-dms-schalter { font-size: .8rem; }
.mail-bereiche-titel { font-weight: 400; color: #2b3a4a; width: calc(150px * var(--s, 1)); }
.mail-test { font-size: .8rem; }
.mail-test input { min-width: 240px; }
.mail-test .mf-knopf, .mail-konto-kopf .mf-knopf { font-size: .78rem; }
.mail-rechts .rt { font-size: .8rem; }
.mail-felder .feld:has(.mail-haken) > label { width: calc(150px * var(--s, 1)); }
.mail-felder .mail-haken { min-height: 0; height: auto; padding-top: 4px; }
.mail-felder .mail-haken input { width: auto; }
/* ab 3.54: Kopfzeile im Rahmen (z. B. „E-Mail-Adresse“ | „digital versenden“) */
.rahmen-kopf { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 600; color: #5b6878; margin: -2px 2px 2px; text-transform: none; }
/* ab 3.54: zuletzt versendete Lizenzabrechnungen beim Vertragspartner */
.versand-liste { margin-top: 12px; font-size: .72rem; color: #44505e; }
.versand-titel { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.versand-liste table { width: 100%; border-collapse: collapse; }
.versand-liste th { text-align: left; font-weight: 600; color: #5b6878; border-bottom: 1px solid var(--mf-linie); padding: 1px 4px; }
.versand-liste td { padding: 1px 4px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.versand-liste tr.fehler td { color: #b3261e; }
/* ab 3.55: animierter Ladebalken (Lizenzabrechnung, Vergleich) */
.ladebalken { position: relative; height: 14px; margin-top: 10px; border-radius: 7px; background: #e3e9f1; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15, 30, 50, .15); }
.ladebalken-fuellung { position: absolute; inset: 0 auto 0 0; border-radius: 7px; transition: width .6s cubic-bezier(.22, .8, .3, 1);
    background: linear-gradient(90deg, var(--mf-blau, #2d58a3), color-mix(in srgb, var(--mf-blau, #2d58a3) 72%, #ffffff));
    box-shadow: 0 0 8px color-mix(in srgb, var(--mf-blau, #2d58a3) 45%, transparent); overflow: hidden; }
.ladebalken-fuellung::before { content: ""; position: absolute; inset: 0; background-size: 28px 28px; animation: ladebalken-streifen .9s linear infinite;
    background-image: linear-gradient(135deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent); }
.ladebalken-fuellung::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; animation: ladebalken-glanz 2.2s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.ladebalken-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; color: #17243a;
    text-shadow: 0 0 3px #fff, 0 0 2px #fff; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ladebalken.unbestimmt .ladebalken-fuellung { width: 35%; animation: ladebalken-pendel 1.4s ease-in-out infinite; }
/* ab 3.57: ein Lichtband läuft immer über die ganze Breite bis ganz rechts – auch wenn erst wenig erledigt ist */
.ladebalken::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; z-index: 1; pointer-events: none; border-radius: 7px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mf-blau, #2d58a3) 45%, transparent) 45%, rgba(255,255,255,.6) 55%, transparent);
    animation: ladebalken-lauf 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.ladebalken-text { z-index: 2; }
.ladebalken.unbestimmt::after { display: none; }
.hintergrund-arbeit .balken { position: relative; overflow: hidden; }
.hintergrund-arbeit .balken::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: ladebalken-lauf 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes ladebalken-lauf { from { transform: translateX(-100%); } to { transform: translateX(334%); } }
@keyframes ladebalken-streifen { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes ladebalken-glanz { 0% { left: -40%; } 60%, 100% { left: 110%; } }
@keyframes ladebalken-pendel { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .ladebalken::after, .hintergrund-arbeit .balken::after, .ladebalken-fuellung::before, .ladebalken-fuellung::after, .ladebalken.unbestimmt .ladebalken-fuellung { animation: none; } }
/* oben in der Leiste: kleiner Balken ebenfalls mit laufenden Streifen */
.hintergrund-arbeit .balken i { background-image: linear-gradient(135deg, rgba(255,255,255,.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.3) 75%, transparent 75%, transparent);
    background-size: 12px 12px; animation: ladebalken-streifen .9s linear infinite; transition: width .6s ease; }
/* ab 3.55: Ergebnis der Lizenzabrechnung (Probelauf/gebucht) – hell und klar statt dunkler Fläche */
.lauf-bereich, .lauf-bereich.gebucht { background: var(--mf-formular, #fff); border: 1px solid var(--mf-linie, #d6dde6); border-top: 4px solid #f0a020; border-radius: 10px;
    padding: 4px 14px 6px; margin: 6px 0 16px; box-shadow: 0 2px 10px rgba(20, 40, 80, .06); }
.lauf-bereich.gebucht { border-top-color: #3fa45b; }
.lauf-bereich .lauf-kopf, .lauf-bereich .lauf-kopf.probe, .lauf-bereich .lauf-kopf.gebucht { background: transparent; color: #1f2d3d; border: 0; border-bottom: 1px solid var(--mf-linie, #e1e6ee);
    border-radius: 0; margin: 0 0 12px; padding: 10px 0 12px !important; gap: 10px; align-items: center; }
.lauf-bereich .lauf-titel { font-size: 1.1rem; color: #14202f; }
.lauf-bereich .lauf-meta { font-size: .76rem; color: #6b7a8c; }
.lauf-zahl { display: inline-flex; flex-direction: column; align-items: flex-end; padding: 4px 12px; border-radius: 8px; background: #f3f6fa; border: 1px solid #e3e9f1; line-height: 1.2; }
.lauf-zahl small { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7a8c; font-weight: 600; }
.lauf-zahl b { font-size: .95rem; color: #14202f; font-variant-numeric: tabular-nums; }
.lauf-zahl.haupt { background: color-mix(in srgb, var(--mf-blau, #2d58a3) 9%, #fff); border-color: color-mix(in srgb, var(--mf-blau, #2d58a3) 28%, #fff); }
.lauf-zahl.haupt b { color: var(--mf-blau, #2d58a3); font-size: 1.05rem; }
/* Vergleich mit der Vorperiode */
.lauf-bereich .lz-wl-vergleich { background: #fff; border: 1px solid var(--mf-linie, #e1e6ee); border-radius: 8px; padding: 0 0 4px; margin: 0 0 14px; color: #1f2d3d; }
.lauf-bereich .lz-wl-vergleich > summary { padding: 8px 12px; font-size: .8rem; font-weight: 600; color: #1f2d3d; background: #f6f8fb; border-bottom: 1px solid var(--mf-linie, #e1e6ee);
    border-radius: 8px 8px 0 0; cursor: pointer; }
.lauf-bereich .lz-wl-vergleich .lz-grenze { font-weight: 400; color: #5b6878; }
.lauf-bereich .lz-wl-vergleich .lz-grenze input { width: 56px; padding: 1px 4px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; font: inherit; }
.lauf-bereich .lz-wl-vergleich table { width: calc(100% - 16px); margin: 6px 8px 0; }
.lauf-bereich .lz-wl-vergleich tfoot th { border-top: 2px solid #c9d4e2; background: #f6f8fb; }
/* Ergebnis je Vertragspartner */
.lauf-bereich .partner-ergebnis.im-lauf, .lauf-bereich .partner-ergebnis.im-lauf.probe, .lauf-bereich .partner-ergebnis.im-lauf.gebucht {
    background: #fff; border: 1px solid var(--mf-linie, #e1e6ee); border-left: 4px solid #f0a020; border-radius: 8px; box-shadow: none; margin-bottom: 12px; }
.lauf-bereich .partner-ergebnis.im-lauf.gebucht { border-left-color: #3fa45b; }
.lauf-bereich .partner-ergebnis.im-lauf > header { background: #f6f8fb; border-bottom: 1px solid var(--mf-linie, #e1e6ee); color: #1f2d3d; border-radius: 6px 8px 0 0; }
.lauf-bereich .partner-ergebnis.im-lauf > header b { color: #14202f; }
.lauf-bereich .partner-ergebnis.im-lauf > .mf-tabelle th { background: #fff; color: #5b6878; font-weight: 600; border-bottom: 1px solid var(--mf-linie, #e1e6ee); }
.lauf-bereich .partner-ergebnis.im-lauf > .mf-tabelle tbody tr:hover td { background: #f6f8fb; }

/* ab 3.56: Office-Vorschau als Popup */
.korr-dialog-karte.office-popup { width: min(1000px, 94vw); max-width: none; height: 92vh; max-height: 92vh; display: flex; flex-direction: column; outline: none; }
.office-popup .korr-dialog-kopf { gap: 8px; }
.office-popup-betreff { font-weight: 400; font-size: .8rem; color: #5b6b80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-popup-seiten { flex: 1; min-height: 0; overflow: auto; background: #eef2f7; padding: 14px; display: flex; flex-direction: column; align-items: safe center; gap: 14px; }
.office-popup-seiten img { flex: 0 0 auto; width: calc(min(100%, 900px) * var(--bz, 1)); max-width: none; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.22); }
.office-popup-zoom { font-size: .72rem; font-weight: 400; color: #5b6b80; min-width: 44px; text-align: right; }

/* ab 3.57: Farbverlauf im Hintergrund der Formulare – wie auf der Startseite (Blau → Grün), in den Benutzereinstellungen abschaltbar */
html.farbverlauf .fenster .ansicht-formular { background: linear-gradient(135deg, #e6ecf3 0%, #e3edf2 45%, #dcefee 100%) !important; }
html.farbverlauf .fenster .ansicht-formular .rahmen { background: rgba(255, 255, 255, .5); border-radius: 8px; }
html.farbverlauf .fenster .ansicht-formular .formular-oben, html.farbverlauf .fenster .ansicht-formular .formular-leiste { background: rgba(255, 255, 255, .35) !important; }
/* ab 3.58: Bausteine auch über dem Text ablegen – während des Ziehens fängt der Text (contenteditable) das Ablegen nicht ab */
.dok-seite.zieht .dok-bs > *:not(.dok-bs-griff):not(.dok-bs-leiste):not(.dok-bs-knoepfe) { pointer-events: none; }
/* ab 3.58: ✕ im Suchfeld löscht den Eintrag */
.mf-suche-leeren { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: #6b7a8c; flex: none; }
.mf-suche-leeren:hover { background: #fde2e2; color: #c62828; }
/* ab 3.58: Vorschau-Popup – mit der linken Maustaste verschieben, Kopf nicht umbrechen */
.office-popup-seiten.verschiebbar { cursor: grab; }
.office-popup-seiten.zieht { cursor: grabbing; user-select: none; }
.office-popup .korr-dialog-kopf > b, .office-popup .korr-dialog-kopf .mf-knopf { white-space: nowrap; flex: none; }
/* ab 3.60: Abrechnungs-Bausteine im Editor (Platzhalter mit Beispieldaten) */
.dok-abr { border: 1px dashed #8fc1b9; border-radius: 6px; background: #f4faf9; padding: 2mm 3mm; font-size: 8pt; color: #1c2b31; }
.dok-abr-kopf { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #0b5e57; margin-bottom: 1.5mm; font-family: var(--mud-typography-default-family, sans-serif); }
.dok-abr-kopf .mud-icon-root { font-size: 16px; }
.dok-abr-kopf small { font-weight: 400; color: #5d6b70; }
.dok-abr table { width: 100%; border-collapse: collapse; }
.dok-abr table.schmal { width: 60%; margin-left: auto; }
.dok-abr th { text-align: left; font-weight: 600; color: #5d6b70; border-bottom: 1.5px solid #0f766e; padding: 1px 4px; font-size: 7pt; }
.dok-abr td { padding: 1px 4px; border-bottom: 1px solid #dfe7e5; }
.dok-abr tr.v td { background: #e3f1ee; color: #0b5e57; font-weight: 600; border-left: 3px solid #0f766e; }
.dok-abr tr.s td { text-align: right; font-weight: 700; color: #0b5e57; }
.dok-abr-summen { width: 60%; margin-left: auto; }
.dok-abr-summen div { display: flex; justify-content: space-between; font-weight: 700; color: #0b5e57; }
/* ab 3.60: Standardschrift (Administration → Schriften) */
.schr-standard { margin: 0 0 12px; }
.schr-standard-zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; }
.schr-standard-zeile label { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.schr-standard-zeile .schr-muster { flex: 1; min-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-schluessel { font-family: Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; }

/* ab 3.61: nicht lizenzierte Funktionen auf der Startseite – hell, mit Schloss */
.start-eintrag.gesperrt { color: #9aa7b6; opacity: .75; display: flex; align-items: center; gap: 4px; }
.start-eintrag.gesperrt .start-schloss { font-size: .85rem; opacity: .7; margin-left: auto; }
button.start-eintrag.gesperrt:hover { background: #f1f5f9; color: #64748b; opacity: 1; }
.start-gruppe.gesperrt { opacity: .55; }
.start-gruppe.gesperrt:hover { opacity: .85; }
html.thema-petrol .start-eintrag.gesperrt { color: #9aa7b6; }

/* ab 3.62: Einstellungen → Menü anpassen */
.menue-anpassen-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.menue-anpassen-leiste .klein { flex: 1 1 320px; }
.menue-anpassen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.menue-gruppe { border: 1px solid var(--mud-palette-lines-default, #dbe3ee); border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.6); }
.menue-gruppe.aus { opacity: .55; }
.menue-gruppe-kopf { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0); cursor: pointer; }
.menue-gruppe-kopf small { margin-left: auto; }
.menue-punkt { display: flex; align-items: center; gap: 6px; padding: 1px 0 1px 4px; cursor: pointer; font-size: .92em; }
.menue-gruppe.aus .menue-punkt { cursor: default; }

/* ab 3.62: Softwarelizenz – Developer ohne Einschränkungen */
.mod-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 4px; padding: 12px 16px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.mod-dev span { flex-basis: 100%; padding-left: 34px; color: #7c2d12; opacity: .85; font-size: .92em; }

/* ab 3.62: Softwarelizenz – Lizenzmodell als Kachel (Farben wie im Lizenzportal) */
.mod-modell { display: flex; flex-direction: column; gap: 2px; min-width: 280px; max-width: 560px; margin: 4px 0 10px; padding: 12px 18px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #64748b, #334155); }
.mod-modell b { font-size: 1.15rem; }
.mod-modell span { opacity: .92; font-size: .9em; }
.mod-modell.kauf { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.mod-modell.miete { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.mod-modell.cloud { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.mod-modell.test { background: linear-gradient(135deg, #facc15, #ca8a04); color: #2b2104; }
.mod-modell.dev { background: linear-gradient(135deg, #fb923c, #c2410c); }
.mod-modell.free { background: linear-gradient(135deg, #22d3ee, #0e7490); }
/* ab 3.72: Datensatz-Grenzen der Free-/Testversion */
.mod-grenzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mod-grenze { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.mod-grenze.voll { border-color: #fecaca; background: #fff5f5; }
.mod-grenze-kopf { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .86rem; }
.mod-grenze-kopf b { min-width: 0; overflow-wrap: anywhere; }
.mod-grenze-kopf span { color: #64748b; white-space: nowrap; flex-shrink: 0; }
.mod-grenze.voll .mod-grenze-kopf span { color: #b91c1c; font-weight: 700; }

/* ab 3.66: Schrittleiste der Lizenzabrechnung (1 Probelauf → 2 Vorschau → 3 Abrechnen und buchen), Farben je Thema über --mf-blau */
.schritte { display: inline-flex; align-items: stretch; margin-right: calc(6px * var(--s)); }
.schritt { position: relative; display: inline-flex; align-items: center; gap: calc(6px * var(--s)); height: calc(28px * var(--s));
    padding: 0 calc(20px * var(--s)) 0 calc(22px * var(--s)); margin-right: calc(-7px * var(--s)); border: 0; font: inherit; font-size: .78rem; white-space: nowrap;
    color: #fff; background: var(--mf-blau); cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.schritt:first-child { padding-left: calc(12px * var(--s)); border-radius: calc(4px * var(--s)) 0 0 calc(4px * var(--s));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.schritt b { display: inline-grid; place-items: center; width: calc(17px * var(--s)); height: calc(17px * var(--s)); border-radius: 50%;
    background: rgba(255,255,255,.25); font-size: .7rem; font-weight: 800; }
.schritt.fertig { background: var(--mf-blau-dunkel, #24497f); }
.schritt.fertig b { background: #16a34a; }
.schritt.jetzt { filter: brightness(1.12); }
.schritt.jetzt b { background: #fff; color: var(--mf-blau); }
.schritt.offen, .schritt:disabled { background: color-mix(in srgb, var(--mf-blau), #ffffff 55%); cursor: default; filter: none; }
.schritt.fertig:disabled { background: color-mix(in srgb, var(--mf-blau-dunkel, #24497f), #ffffff 25%); }
.schritt:hover:not(:disabled) { filter: brightness(1.2); }

/* ab 3.67: Lizenznehmer – Startseite (Banner Mitte) und Menü unten */
.start-lizenz { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1 1 0; min-width: 140px; }
.start-lizenz span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #4b6a93; }
.start-lizenz b { font-size: .72rem; font-weight: 600; letter-spacing: .02em; margin-top: 2px; color: #1e3a6e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mf-lizenziert { display: block; padding: calc(6px * var(--s)) calc(14px * var(--s)) 0; font-size: .64rem; color: #9fb0c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-lizenziert b { color: #dbe4ee; font-weight: 600; }
/* ab 3.82: Lizenznehmer in der zweiten Zeile, nicht fett */
.mf-lizenznehmer { display: block; color: #cbd5e1; font-weight: 400; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
html.thema-petrol .start-lizenz b { color: var(--th-akzent-dunkel); }
.start-lizenz small { font-size: .72rem; color: #4b6a93; margin-top: 2px; } /* ab 3.79: Programmversion als 3. Zeile */
html.thema-petrol .start-lizenz small { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 30%); }
html.thema-petrol .start-lizenz span { color: color-mix(in srgb, var(--th-beschriftung), #ffffff 30%); }
.start-banner:has(.start-lizenz) { display: grid; grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr) minmax(220px, 440px); gap: 2rem; }
.start-banner:has(.start-lizenz) .start-suche { width: auto; }
@media (max-width: 1100px) { .start-banner:has(.start-lizenz) { display: flex; } .start-banner:has(.start-lizenz) .start-suche { width: min(460px, 100%); } }

/* ab 3.67: Administration → Datenbereinigung (Karten wie im Lizenzportal) */
.bg-inhalt { flex: 1; overflow: auto; padding: calc(14px * var(--s)) calc(18px * var(--s)); background: var(--mf-flaeche, #f3f6f9); display: flex; flex-direction: column; gap: calc(14px * var(--s)); }
.bg-karte { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: calc(14px * var(--s)) calc(18px * var(--s)); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.bg-karte h3 { font-size: .95rem; font-weight: 600; margin: 0 0 calc(8px * var(--s)); color: var(--mf-text); }
.bg-karte h3 + .einst-hinweis { margin-top: 0; }
.bg-karte h3:not(:first-child) { margin-top: calc(14px * var(--s)); }
.bg-zeile { display: flex; flex-wrap: wrap; gap: calc(10px * var(--s)); align-items: flex-end; margin-top: calc(10px * var(--s)); }
.bg-feld { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--mf-text-2); }
.bg-feld select { min-width: 260px; }
.bg-felder { display: flex; flex-wrap: wrap; gap: calc(4px * var(--s)) calc(18px * var(--s)); margin-top: calc(8px * var(--s)); font-size: .86rem; }
.bg-felder label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.bg-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: calc(10px * var(--s)); margin-bottom: calc(10px * var(--s)); }
.bg-kopf h3 { margin: 0; }
.bg-filter { width: 220px; }
.bg-leer { padding: calc(12px * var(--s)) 0; color: #15803d; font-weight: 500; }
.bg-tabelle-rahmen { overflow: auto; max-height: 62vh; border: 1px solid #e2e8f0; border-radius: 8px; }
.bg-tabelle { width: 100%; border-collapse: collapse; font-size: .84rem; }
.bg-tabelle th { position: sticky; top: 0; background: #f8fafc; text-align: left; font-weight: 600; font-size: .74rem; color: var(--mf-text-2); padding: 6px 8px; border-bottom: 1px solid #e2e8f0; z-index: 1; }
.bg-tabelle td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bg-tabelle tr.aus td { opacity: .5; }
.bg-tabelle tr.bg-details td { background: #f8fafc; font-size: .8rem; line-height: 1.6; }
.bg-alt { color: #b91c1c; white-space: pre; }
.bg-neu { width: 100%; min-width: 220px; }
.bg-link { all: unset; cursor: pointer; color: var(--mud-palette-primary); }
.bg-link:hover { text-decoration: underline; }
.bg-mehr { margin-top: 8px; }
.bg-aktionen { display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.bg-abstand { margin: 8px 0; }
.bg-dubletten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.bg-dublette { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; font-size: .84rem; line-height: 1.7; }
.bg-ausnahmen { width: 100%; font-family: inherit; resize: vertical; }
.bg-eingabehilfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; margin-top: 8px; font-size: .84rem; }
.bg-eh-bereich { display: flex; flex-direction: column; gap: 1px; }
.bg-eh-bereich b { font-size: .8rem; margin-bottom: 2px; }
.db-bereinigung { display: flex; flex-direction: column; height: 100%; }
.bg-karte .mf-eingabe { font: inherit; font-size: .84rem; border: 1px solid var(--mf-feldrand); border-radius: 5px; padding: 4px 8px; background: #fff; color: var(--mf-text); outline: 0; }
.bg-karte .mf-eingabe:focus { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.bg-karte .mf-auswahl { font-size: .86rem; padding: 4px 6px; border-radius: 5px; }

/* ab 3.67: Administration → Entwicklung (Ausbauplan, Blockschaltbild) */
.eb-legende { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--mf-text-2); }
.eb-l { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; border: 1px solid #cbd5e1; }
.eb-l.leer, .eb-block.leer { background: #f8fafc; border-style: dashed; }
.eb-l.offen, .eb-block.offen { background: #fff; border-color: #94a3b8; }
.eb-l.teil, .eb-block.teil { background: #eff6ff; border-color: #3b82f6; }
.eb-l.fertig, .eb-block.fertig { background: #ecfdf5; border-color: #16a34a; }
.eb-bild { display: flex; flex-direction: column; align-items: stretch; }
.eb-ebene { display: grid; grid-template-columns: 96px 1fr; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.eb-name { display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #334155; writing-mode: horizontal-tb; padding: 6px; text-align: center; }
.eb-zugang .eb-name { background: #0f766e; } .eb-module .eb-name { background: #1d4ed8; } .eb-plattform .eb-name { background: #7c3aed; }
.eb-daten .eb-name { background: #b45309; } .eb-extern .eb-name { background: #475569; }
.eb-bloecke { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #f8fafc; }
.eb-block { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 170px; max-width: 260px; min-height: 64px; display: flex; flex-direction: column; gap: 5px; justify-content: center;
    border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: .82rem; transition: box-shadow .15s, transform .15s; }
.eb-block:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .12); transform: translateY(-1px); }
.eb-titel { font-weight: 600; color: var(--mf-text); line-height: 1.25; }
.eb-zahl { font-size: .72rem; color: var(--mf-text-2); }
.eb-balken { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.eb-balken i { display: block; height: 100%; background: #16a34a; border-radius: 3px; }
.eb-balken.klein { width: 120px; display: inline-block; vertical-align: middle; }
.eb-pfeil { text-align: center; color: #94a3b8; font-size: 1rem; line-height: 1; padding: 3px 0; }
.eb-phasen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.eb-phase { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: .84rem; }
.eb-phase:hover { border-color: var(--mud-palette-primary); }
.eb-phase-kopf { display: flex; gap: 6px; align-items: baseline; }
.eb-phase-text { font-size: .76rem; color: var(--mf-text-2); line-height: 1.4; }
.eb-grundsaetze { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.6; }
.eb-gruppe { margin-top: 14px; }
.eb-gruppe-kopf { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; }
.eb-punkt { border-bottom: 1px solid #f1f5f9; }
.eb-punkt.s2 .eb-punkt-titel { color: var(--mf-text-2); text-decoration: line-through; text-decoration-color: #94a3b8; }
.eb-punkt.s3 { opacity: .6; }
.eb-punkt.s1 .eb-id { background: #dbeafe; color: #1d4ed8; }
.eb-zeile { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: .86rem; }
.eb-punkt-titel { all: unset; cursor: pointer; flex: 1; min-width: 0; }
.eb-punkt-titel:hover { color: var(--mud-palette-primary); }
.eb-id { font-size: .7rem; font-weight: 600; background: #f1f5f9; color: #475569; border-radius: 4px; padding: 1px 5px; margin-right: 4px; }
.eb-prio { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.eb-prio.p1 { background: #dc2626; } .eb-prio.p2 { background: #f59e0b; } .eb-prio.p3 { background: #cbd5e1; }
.eb-chip { font-size: .7rem; background: #f1f5f9; border-radius: 10px; padding: 1px 8px; color: #475569; white-space: nowrap; }
.eb-erledigt { font-size: .72rem; color: #15803d; white-space: nowrap; }
.eb-status { width: 100px; }
.eb-details { padding: 2px 0 10px 40px; font-size: .82rem; color: var(--mf-text); }
.eb-details p { margin: 0 0 6px; line-height: 1.5; }
.eb-details textarea, .eb-formular textarea, .eb-formular input { width: 100%; }
.eb-formular { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed #93c5fd; border-radius: 8px; background: #f8fbff; margin-bottom: 8px; }
.bg-karte textarea.mf-eingabe { font: inherit; font-size: .84rem; border: 1px solid var(--mf-feldrand); border-radius: 5px; padding: 4px 8px; resize: vertical; }

/* ab 3.68: NEWS-Leiste oben auf der Startseite (Tipps „Wusstest du schon …?“ und Frage nach Wünschen im Wechsel) */
.start-news { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: calc(16px * var(--s));
    min-height: calc(92px * var(--s)); margin: 0 0 calc(28px * var(--s)); padding: calc(10px * var(--s)) calc(18px * var(--s)); border-radius: calc(12px * var(--s)); overflow: hidden;
    background: linear-gradient(120deg, #fffaf2, #ffffff 60%); border: 1px solid #f0d3a8; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.start-news.wunsch { background: linear-gradient(120deg, #0f766e, #14897f 55%, #3aa79b); border-color: #0f766e; color: #fff; }
.news-marke { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: calc(150px * var(--s)); }
.news-label { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--mf-akzent, #e48a1e); color: #fff; border-radius: 4px; padding: 2px 8px; }
.start-news.wunsch .news-label { background: #fff; color: #0f766e; }
.news-art { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: #9a5b10; }
.start-news.wunsch .news-art { color: #e6fffb; }
.news-inhalt { min-width: 0; animation: news-rein .45s ease-out; }
.news-inhalt h4 { margin: 0 0 3px; font-size: 1rem; color: #1f3b63; }
.news-inhalt p { margin: 0; font-size: .86rem; line-height: 1.45; color: #2c3e55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-beispiel { color: #46566a; }
.news-wunsch { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; padding: 6px 4px; border-radius: 8px; }
.news-wunsch:hover { background: rgba(255,255,255,.1); }
.news-wunsch span { display: flex; flex-direction: column; }
.news-wunsch b { font-size: 1.05rem; color: #fff; }
.news-wunsch small { color: #d9f5f1; font-size: .82rem; }
.news-wunsch .wunsch-licht { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18); flex: 0 0 auto; animation: wunsch-leuchten 2.2s ease-in-out infinite; }
.news-wunsch .wunsch-licht .mud-icon-root { color: #fff; font-size: 1.5rem; animation: wunsch-wippen 2.2s ease-in-out infinite; }
.news-wunsch > .mud-icon-root { color: #fff; }
.news-bild { height: calc(72px * var(--s)); border-radius: 6px; border: 1px solid #dfe5ec; cursor: zoom-in; }
.news-steuerung { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.news-knoepfe { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: #8a6a3a; }
.start-news.wunsch .news-knoepfe { color: #d9f5f1; }
.news-knoepfe button { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 5px; }
.news-punkte { display: flex; gap: 4px; }
.news-punkte button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #e3cba6; }
.news-punkte button.w { background: #9fd3cc; }
.news-punkte button.an { background: var(--mf-akzent, #e48a1e); transform: scale(1.3); }
.start-news.wunsch .news-punkte button { background: rgba(255,255,255,.35); }
.start-news.wunsch .news-punkte button.an { background: #fff; }
.news-lauf { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--mf-akzent, #e48a1e); transform-origin: left; animation: news-lauf 12s linear forwards; opacity: .7; }
.start-news.wunsch .news-lauf { background: #fff; }
.start-news.pause .news-lauf { opacity: 0; }
@keyframes news-lauf { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes news-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .news-inhalt, .news-lauf, .news-wunsch .wunsch-licht, .news-wunsch .wunsch-licht .mud-icon-root { animation: none; } }
@media (max-width: 800px) { .start-news { grid-template-columns: minmax(0, 1fr); } .news-steuerung { align-items: center; } .news-bild { display: none; } }
html.thema-petrol .start-news.tipp { background: var(--th-feld); border-color: var(--th-rahmen); }
html.thema-petrol .start-news.tipp .news-art, html.thema-petrol .start-news.tipp .news-knoepfe { color: var(--th-akzent-dunkel); }

/* ab 3.69: Softwarelizenz – Pakete und Module im Überblick (gleiche Optik wie im Lizenzportal) */
.pu-rahmen { flex: none; min-height: fit-content; overflow-x: auto; margin: 6px 0 4px; background: #fff; border: 1px solid #dfe5ee; border-radius: 10px; padding: 6px 10px; }
.pu { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.pu th, .pu td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; text-align: center; vertical-align: middle; }
.pu .pu-modul-kopf { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mf-text-2); vertical-align: bottom; }
.pu-paket { position: relative; min-width: 110px; border-top: 5px solid var(--f) !important; background: color-mix(in srgb, var(--f), #fff 92%); border-radius: 10px 10px 0 0; }
.pu-paket.eigen { background: color-mix(in srgb, var(--f), #fff 80%); box-shadow: inset 0 0 0 2px var(--f); }
.pu-paket b { display: block; font-size: .95rem; color: var(--f); }
.pu-paket small { display: block; font-weight: 400; font-size: .7rem; color: var(--mf-text-2); line-height: 1.3; margin-top: 2px; }
.pu-ihr { display: inline-block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--f); color: #fff; border-radius: 8px; padding: 0 7px; margin-bottom: 3px; }
.pu-zelle.eigen { background: color-mix(in srgb, var(--mud-palette-primary), #fff 95%); }
.pu-modul { text-align: left !important; border-left: 4px solid var(--f); }
.pu-modul b { display: flex; align-items: center; gap: 4px; }
.pu-modul small { display: block; font-size: .72rem; color: var(--mf-text-2); }
.pu-modul .pu-hat { font-size: 15px; color: #16a34a; }
.pu tbody tr:not(.an) .pu-modul b { color: var(--mf-text-2); }
.pu-ja { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--f); color: #fff; font-weight: 700; font-size: .8rem; }
.pu-frei { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #94a3b8; color: #64748b; font-weight: 700; font-size: .75rem; }
.pu-nein { color: #cbd5e1; }

/* ===================================================================================================
   ab 3.70: Seiten unter „Administration“ in der Optik des Lizenzportals (FensterInhalt → .portal-optik)
   Karten, Petrol-Knöpfe, ruhige Tabellen, größere Schrift. Gilt nur innerhalb dieser Fenster.
   =================================================================================================== */
.portal-optik, .admin-optik { display: contents; }
.portal-optik {
    --po-petrol: #0f766e; --po-petrol-d: #0b4f4a; --po-text: #1f2d3d; --po-leise: #6b7a8c; --po-linie: #e2e8f0; --po-flaeche: #f3f6f9; --po-feld: #cbd5e1;
}
.portal-optik .ansicht { background: var(--po-flaeche); padding: calc(14px * var(--s)) calc(16px * var(--s)); gap: calc(14px * var(--s)); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--po-text); }
.portal-optik .ansicht-formular { background: #fff; border: 1px solid var(--po-linie); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.portal-optik .ansicht-formular.mandant-formular, .portal-optik .ansicht > .ansicht-formular:only-child { max-height: none; }
.portal-optik .formular-leiste { background: #fff !important; border-bottom: 1px solid var(--po-linie) !important; padding: calc(10px * var(--s)) calc(14px * var(--s)) !important; gap: calc(8px * var(--s)); border-radius: 12px 12px 0 0; }
.portal-optik .leiste-status { font-size: .8rem; color: var(--po-leise); }
/* Knöpfe wie im Portal */
.portal-optik .mf-knopf { background: var(--po-petrol); color: #fff; border: 0; border-radius: 8px; height: auto; min-height: calc(32px * var(--s)); padding: calc(6px * var(--s)) calc(13px * var(--s)); font-weight: 600; font-size: .84rem; gap: 6px; }
.portal-optik .mf-knopf:hover:not(:disabled) { background: var(--po-petrol-d); }
.portal-optik .mf-knopf:disabled { background: #b8c9c7; color: #fff; }
.portal-optik .mf-knopf.hell { background: #fff; color: var(--po-petrol); border: 1px solid var(--po-feld); }
.portal-optik .mf-knopf.hell:hover:not(:disabled) { background: #f0fdfa; }
.portal-optik .mf-knopf.hell:disabled { color: #a8b4c4; background: #fff; }
.portal-optik .mf-knopf.klein { min-height: calc(26px * var(--s)); padding: calc(3px * var(--s)) calc(10px * var(--s)); font-size: .78rem; }
.portal-optik .mf-knopf.gefahr, .portal-optik .mf-knopf.rot { color: #dc2626; }
.portal-optik .mud-button-filled.mud-button-filled-primary { background-color: var(--po-petrol); border-radius: 8px; text-transform: none; font-weight: 600; box-shadow: none; }
.portal-optik .mud-button-filled.mud-button-filled-primary:hover { background-color: var(--po-petrol-d); }
.portal-optik .mud-button-outlined { border-radius: 8px; text-transform: none; }
/* Abschnitte als Karten, Überschriften wie im Portal (klein, Großbuchstaben, grau) */
.portal-optik fieldset.rahmen, .portal-optik .mod-karte, .portal-optik .mandant-karte, .portal-optik .schr-familie {
    background: #fff; border: 1px solid var(--po-linie); border-radius: 12px; padding: calc(12px * var(--s)) calc(16px * var(--s)) calc(14px * var(--s)); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.portal-optik fieldset.rahmen > legend { float: left; width: 100%; padding: 0; margin: 0 0 calc(8px * var(--s)); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--po-leise); }
.portal-optik fieldset.rahmen > legend + * { clear: both; }
.portal-optik .mandant-abschnitt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--po-leise); border-bottom: 0; margin: calc(18px * var(--s)) 0 calc(8px * var(--s)); padding: 0; }
.portal-optik .einst-hinweis, .portal-optik .dms-einst-text { font-size: .8rem; color: var(--po-leise); line-height: 1.45; }
/* Tabellen wie „liste“ im Portal */
.portal-optik .mf-tabelle { font-size: .84rem; }
.portal-optik .mf-tabelle th { background: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--po-leise); padding: calc(7px * var(--s)) calc(10px * var(--s)); border-bottom: 1px solid var(--po-linie); }
.portal-optik .mf-tabelle td { padding: calc(7px * var(--s)) calc(10px * var(--s)); border-bottom: 1px solid #f1f5f9; }
.portal-optik .mf-tabelle tr:hover td { background: #f8fafc; }
.portal-optik .mf-tabelle tr.aktiv td { background: #f0fdfa; }
/* Eingabefelder */
.portal-optik .mf-auswahl, .portal-optik .mf-eingabe, .portal-optik .ansicht input[type=text]:not(.mud-input-slot), .portal-optik .ansicht input[type=number]:not(.mud-input-slot),
.portal-optik .ansicht input[type=password]:not(.mud-input-slot), .portal-optik .ansicht input[type=search]:not(.mud-input-slot), .portal-optik .ansicht textarea:not(.mud-input-slot) {
    font: inherit; font-size: .86rem; color: var(--po-text); border: 1px solid var(--po-feld); border-radius: 7px; padding: calc(5px * var(--s)) calc(9px * var(--s)); background: #fff; }
.portal-optik .mf-auswahl:focus, .portal-optik .mf-eingabe:focus, .portal-optik .ansicht input:focus, .portal-optik .ansicht textarea:focus { outline: 2px solid rgba(15,118,110,.22); border-color: var(--po-petrol); }
.portal-optik input[type=checkbox] { accent-color: var(--po-petrol); }
/* Reiter (MudTabs) in Petrol */
.portal-optik .mud-tabs-tabbar { background: #fff; border-radius: 12px 12px 0 0; }
.portal-optik .mud-tab { text-transform: none; font-weight: 600; letter-spacing: 0; }
.portal-optik .mud-tab.mud-tab-active { color: var(--po-petrol) !important; }
.portal-optik .mud-tab-slider { background: var(--po-petrol) !important; }
.portal-optik .mud-tabs-panels { background: transparent; }
/* Links, Markierungen */
.portal-optik a { color: var(--po-petrol); }
.portal-optik .bg-link { color: var(--po-petrol); }
/* 3.70 Feinschliff Portal-Optik: Fläche grau, Abschnitte weiße Karten (auch mit Farbverlauf-Einstellung), Felder, Reiter */
html .fenster .portal-optik .ansicht-formular, html.farbverlauf .fenster .portal-optik .ansicht-formular { background: var(--po-flaeche) !important; border: 0; box-shadow: none; border-radius: 0; }
html .fenster .portal-optik .formular-leiste, html.farbverlauf .fenster .portal-optik .ansicht-formular .formular-leiste {
    background: #fff !important; border: 1px solid var(--po-linie) !important; border-radius: 12px; margin-bottom: calc(12px * var(--s)); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
html .fenster .portal-optik .rahmen, html.farbverlauf .fenster .portal-optik .ansicht-formular .rahmen {
    background: #fff !important; border: 1px solid var(--po-linie); border-radius: 12px; padding: calc(12px * var(--s)) calc(16px * var(--s)) calc(14px * var(--s)); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.portal-optik .rahmen > legend { float: left; width: 100%; padding: 0; margin: 0 0 calc(8px * var(--s)); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--po-leise); }
.portal-optik .rahmen > legend + * { clear: both; }
.portal-optik .formular-inhalt { padding: 0; }
.portal-optik .einst-reiter { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin-bottom: calc(12px * var(--s)); }
.portal-optik .einst-reiter button { border: 1px solid var(--po-feld) !important; background: #fff !important; color: var(--po-text) !important; border-radius: 999px !important; padding: calc(5px * var(--s)) calc(14px * var(--s)) !important; font-weight: 600; font-size: .82rem; }
.portal-optik .einst-reiter button.aktiv { background: var(--po-petrol) !important; border-color: var(--po-petrol) !important; color: #fff !important; }
.portal-optik .feld label, .portal-optik .einst-zeile > label, .portal-optik .einst-zeile > span:first-child { font-size: .82rem; color: var(--po-leise); font-weight: 600; }
.portal-optik .feld-eingabe .mud-input.mud-input-outlined { font-size: .86rem; border-radius: 7px; }
.portal-optik .feld-eingabe .mud-input-outlined input, .portal-optik .feld-eingabe .mud-input.mud-input-outlined .mud-input-slot { font-size: .86rem; height: calc(22px * var(--s)); }
.portal-optik .feld-eingabe .mud-input-outlined-border { border-color: var(--po-feld) !important; border-radius: 7px; }
.portal-optik .feld-eingabe .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--po-petrol) !important; }
.portal-optik .feld-eingabe > input, .portal-optik .feld-eingabe > select { font-size: .86rem; border: 1px solid var(--po-feld); border-radius: 7px; padding: calc(4px * var(--s)) calc(8px * var(--s)); }
.portal-optik .mandant-abschnitt + .formular-raster, .portal-optik .mod-kacheln { margin-bottom: calc(6px * var(--s)); }
/* 3.70: Inhalt als eine weiße Karte auf grauer Fläche (wie „karte“ im Portal); Leiste als Kopf der Karte, Abschnitte darin abgesetzt */
html .fenster .portal-optik .ansicht-formular, html.farbverlauf .fenster .portal-optik .ansicht-formular { background: #fff !important; border: 1px solid var(--po-linie); border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
html .fenster .portal-optik .formular-leiste, html.farbverlauf .fenster .portal-optik .ansicht-formular .formular-leiste {
    border: 0 !important; border-bottom: 1px solid var(--po-linie) !important; border-radius: 12px 12px 0 0; margin-bottom: 0; box-shadow: none; }
html .fenster .portal-optik .rahmen, html.farbverlauf .fenster .portal-optik .ansicht-formular .rahmen { background: #fbfcfd !important; box-shadow: none; border-radius: 10px; }

/* ===== ab 3.75: Produktion – Terminplanung (Vorbild Google Kalender) ===== */
.tp { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; height: 100%; min-height: 560px; background: #fff; font-family: inherit; }
.tp-seite { border-right: 1px solid #e5e7eb; padding: 14px 12px; overflow-y: auto; background: #fff; }
.tp-erstellen { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 16px; border-radius: 16px;
  background: #fff; color: #1f2937; font-weight: 600; font-size: .95rem; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); margin-bottom: 18px; transition: box-shadow .15s, background .15s; }
.tp-erstellen:hover:not(:disabled) { background: #f6fafe; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 6px 10px 4px rgba(60,64,67,.15); }
.tp-erstellen:disabled { opacity: .5; cursor: not-allowed; }
.tp-erstellen .mud-icon-root { color: #0f766e; font-size: 26px; }
.tp-rund { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.15rem; color: #3c4043; }
.tp-rund:hover { background: #f1f3f4; }
.tp-mini { margin-bottom: 16px; }
.tp-mini-kopf { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 4px 6px; font-size: .85rem; }
.tp-mini-kopf b { font-weight: 600; color: #3c4043; }
.tp-mini-raster { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .72rem; }
.tp-mini-wt { color: #70757a; padding: 4px 0; font-weight: 600; }
.tp-mini-tag { all: unset; cursor: pointer; width: 26px; height: 26px; margin: 1px auto; border-radius: 50%; display: grid; place-items: center; color: #3c4043; }
.tp-mini-tag:hover { background: #f1f3f4; }
.tp-mini-tag.fremd { color: #b0b4b9; }
.tp-mini-tag.woche { background: #e8f0fe; border-radius: 0; width: 100%; }
.tp-mini-tag.gewaehlt { background: #d2e3fc; color: #185abc; font-weight: 700; border-radius: 50%; width: 26px; }
.tp-mini-tag.heute { background: #0f766e; color: #fff; font-weight: 700; border-radius: 50%; width: 26px; }
.tp-filter-kopf { font-size: .78rem; font-weight: 700; color: #3c4043; padding: 6px 6px 4px; }
.tp-filter-kopf.mt { margin-top: 10px; }
.tp-check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: .84rem; color: #3c4043; cursor: pointer; }
.tp-check:hover { background: #f1f3f4; }
.tp-check input { appearance: none; width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--f); margin: 0; flex: none; cursor: pointer; display: grid; place-items: center; }
.tp-check input:checked { background: var(--f); }
.tp-check input:checked::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.tp-check span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-check small { color: #9aa0a6; font-size: .7rem; }
/* ab 3.99.35: mehrere Kalender – Zeile mit ⚙, Einladungen, Admin-Liste */
.tp-kal-kopf { display: flex; align-items: center; justify-content: space-between; }
.tp-kal-plus, .tp-kal-ein { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #5f6368; }
.tp-kal-plus:hover, .tp-kal-ein:hover { background: #e8eaed; }
.tp-kal-zeile { display: flex; align-items: center; }
.tp-kal-zeile > .tp-check { flex: 1; min-width: 0; }
.tp-kal-zeile > .tp-kal-ein { opacity: 0; }
.tp-kal-zeile:hover > .tp-kal-ein, .tp-kal-ein:focus-visible { opacity: 1; }
.tp-einl-kopf { display: flex; align-items: center; gap: 6px; }
.tp-einl { display: grid; grid-template-columns: 1fr auto auto; gap: 4px; align-items: center; margin: 2px 4px 6px; padding: 6px 8px; border-radius: 8px; border-left: 4px solid var(--f); background: #fff7ed; font-size: .8rem; }
.tp-einl > div { display: flex; flex-direction: column; min-width: 0; }
.tp-einl small { color: #6b7280; }
.tp-admin > summary { cursor: pointer; list-style: revert; }
.tp-admin small { color: #9aa0a6; font-weight: 400; }
.kl-freigaben { border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.kl-freigaben legend { font-size: .8rem; font-weight: 700; color: #3c4043; display: flex; align-items: center; gap: 4px; }
.kl-tabelle { width: 100%; border-collapse: collapse; font-size: .85rem; }
.kl-tabelle td { padding: 3px 4px; border-bottom: 1px solid #f1f3f4; vertical-align: middle; }
.kl-einladen > .kl-wer { flex: 1; min-width: 160px; }
.kl-einladen > .kl-wie { width: 150px; }
.kl-recht { margin-left: auto; color: #5f6368; font-size: .82rem; }
.tp-legende { display: flex; flex-direction: column; gap: 4px; padding: 2px 6px; }
.tp-leer-klein { font-size: .8rem; color: #70757a; padding: 4px 6px; }
.tp-haupt { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tp-leiste { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; }
.tp-heute { all: unset; cursor: pointer; border: 1px solid #dadce0; border-radius: 6px; padding: 7px 16px; font-size: .88rem; font-weight: 600; color: #3c4043; margin-right: 6px; }
.tp-heute:hover { background: #f1f3f4; }
.tp-titel { font-size: 1.3rem; font-weight: 400; color: #3c4043; margin: 0 0 0 8px; text-transform: none; letter-spacing: 0; }
.tp-ansicht { display: inline-flex; border: 1px solid #dadce0; border-radius: 6px; overflow: hidden; }
.tp-ansicht button { all: unset; cursor: pointer; padding: 7px 14px; font-size: .85rem; color: #3c4043; border-left: 1px solid #dadce0; }
.tp-ansicht button:first-child { border-left: 0; }
.tp-ansicht button:hover { background: #f1f3f4; }
.tp-ansicht button.aktiv { background: #e6f4f1; color: #0f766e; font-weight: 700; }
.tp-leer { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #70757a; text-align: center; padding: 40px; }
.tp-leer b { color: #3c4043; font-size: 1.05rem; }
.tp-leer span { max-width: 460px; font-size: .9rem; }
.tp-raster { flex: 1; overflow: auto; position: relative; }
.tp-kopfzeile { display: grid; position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid #e5e7eb; }
.tp-spaltenkopf { text-align: center; padding: 8px 4px 6px; border-left: 1px solid #f1f3f4; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tp-spaltenkopf small { font-size: .68rem; font-weight: 600; color: #70757a; letter-spacing: .04em; }
.tp-spaltenkopf b { font-weight: 500; color: #3c4043; }
.tp-tagnr { font-size: 1.45rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.tp-tagnr:hover { background: #f1f3f4; }
.tp-spaltenkopf.heute small { color: #0f766e; }
.tp-spaltenkopf.heute .tp-tagnr { background: #0f766e; color: #fff; }
.tp-spaltenkopf .tp-res-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--f); }
.tp-spaltenkopf b:not(.tp-tagnr) { font-size: .86rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-koerper { display: grid; position: relative; }
.tp-uhrzeiten div { height: var(--tp-px, 48px); position: relative; }
.tp-uhrzeiten span { position: absolute; top: -8px; right: 8px; font-size: .68rem; color: #70757a; }
.tp-spalte { position: relative; border-left: 1px solid #e5e7eb; }
.tp-slot { height: calc(var(--tp-px, 48px) / 2); cursor: pointer; }
.tp-slot.voll { border-top: 1px solid #e5e7eb; }
.tp-slot:hover { background: rgba(15, 118, 110, .06); }
.tp-ev { position: absolute; box-sizing: border-box; border-radius: 6px; padding: 3px 7px; overflow: hidden; cursor: pointer; font-size: .74rem; line-height: 1.25;
  background: var(--f); color: #fff; box-shadow: 0 0 0 1px #fff; display: flex; flex-direction: column; z-index: 1; transition: box-shadow .1s; }
.tp-ev:hover { z-index: 2; box-shadow: 0 0 0 1px #fff, 0 3px 8px rgba(0,0,0,.25); }
.tp-ev b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ev span, .tp-ev small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .95; }
.tp-ev small { opacity: .85; }
.tp-ev.reserviert { background: repeating-linear-gradient(135deg, var(--f), var(--f) 8px, color-mix(in srgb, var(--f) 82%, #fff) 8px, color-mix(in srgb, var(--f) 82%, #fff) 16px); }
.tp-ev.anfrage { background: #fff; color: color-mix(in srgb, var(--f) 80%, #000); border: 2px dashed var(--f); }
.tp-ev.erledigt { background: color-mix(in srgb, var(--f) 45%, #fff); color: #1f2937; }
.tp-ev.storniert { background: #f1f3f4; color: #80868b; text-decoration: line-through; border: 1px solid #dadce0; }
/* ab 3.85: Buchungen ziehen (verschieben) und an den Rändern länger/kürzer ziehen */
.tp-ev[data-id] { cursor: grab; touch-action: pan-y; }
.tp-griff { position: absolute; left: 0; right: 0; height: 7px; cursor: ns-resize; z-index: 1; touch-action: none; }
.tp-griff.oben { top: 0; }
.tp-griff.unten { bottom: 0; }
.tp-ev:hover .tp-griff.unten::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; margin-left: -11px; height: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.tp-ev.tp-zieht { cursor: grabbing; opacity: .9; z-index: 6; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: none; user-select: none; }
.tp-ev.tp-zieht .tp-ev-zeit { font-weight: 700; }
.tp-ev.mini { position: static; display: inline-block; padding: 2px 8px; font-size: .72rem; box-shadow: none; cursor: default; }
.tp-jetzt { position: absolute; left: -1px; right: 0; height: 2px; background: #ea4335; z-index: 4; pointer-events: none; }
.tp-jetzt::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ea4335; }
.tp-monat { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px; grid-auto-rows: minmax(110px, 1fr); overflow: auto; }
.tp-monat-wt { text-align: center; font-size: .7rem; font-weight: 700; color: #70757a; padding: 8px 0 4px; border-left: 1px solid #e5e7eb; height: auto; }
.tp-monat-wt { grid-row: 1; min-height: 0; }
.tp-monat-tag { border-left: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb; padding: 4px; cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-monat-tag:hover { background: #fafafa; }
.tp-monat-tag.fremd .tp-monat-nr { color: #b0b4b9; }
.tp-monat-nr { all: unset; cursor: pointer; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: #3c4043; }
.tp-monat-nr:hover { background: #f1f3f4; }
.tp-monat-tag.heute .tp-monat-nr { background: #0f766e; color: #fff; }
.tp-monat-ev { display: flex; align-items: center; gap: 5px; font-size: .74rem; padding: 1px 4px; border-radius: 4px; white-space: nowrap; overflow: hidden; color: #3c4043; }
.tp-monat-ev:hover { background: #f1f3f4; }
.tp-monat-ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--f); flex: none; }
.tp-monat-ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tp-monat-ev.storniert b { text-decoration: line-through; color: #9aa0a6; }
.tp-monat-ev.anfrage i { background: #fff; border: 2px solid var(--f); width: 6px; height: 6px; }
.tp-monat-mehr { all: unset; cursor: pointer; font-size: .72rem; font-weight: 600; color: #3c4043; padding: 1px 4px; border-radius: 4px; }
.tp-monat-mehr:hover { background: #f1f3f4; }
/* Buchungsdialog */
.bu { display: flex; flex-direction: column; gap: 10px; }
.bu-titel { font-size: 1.35rem; border: 0; border-bottom: 2px solid #e5e7eb; padding: 6px 2px; outline: none; font-family: inherit; }
.bu-titel:focus { border-bottom-color: #0f766e; }
/* ab 3.85: Titel fehlt – rot markieren */
.bu-titel.fehlt { border-bottom-color: #dc2626; background: #fef2f2; border-radius: 6px 6px 0 0; animation: bu-wackeln .35s ease-in-out 2; }
.bu-titel.fehlt::placeholder { color: #dc2626; opacity: .8; }
.bu-titel-hinweis { color: #b91c1c; font-size: .8rem; margin: 2px 0 4px 2px; }
@keyframes bu-wackeln { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bu-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bu-zeile.oben { align-items: flex-start; }
.bu-zeile > .mud-icon-root { color: #70757a; flex: none; }
.bu-zeile input:not([type=checkbox]), .bu-zeile select, .bu-zeile textarea { font: inherit; padding: 6px 9px; border: 1px solid #dadce0; border-radius: 7px; background: #f8f9fa; }
.bu-zeile input:not([type=date]):not([type=time]), .bu-zeile textarea { flex: 1; min-width: 200px; }
.bu-zeile select { min-width: 240px; }
.bu-dauer { color: #70757a; font-size: .82rem; }
.bu-link { all: unset; cursor: pointer; color: #0f766e; font-size: .82rem; text-decoration: underline; }
.bu-res { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 32px; }
.bu-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid #dadce0; font-size: .82rem; color: #3c4043; background: #fff; }
.bu-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--f); }
.bu-chip small { color: #9aa0a6; font-size: .68rem; }
.bu-chip.an { background: color-mix(in srgb, var(--f) 14%, #fff); border-color: var(--f); color: #1f2937; font-weight: 600; }
.bu-chip:disabled { cursor: default; opacity: .7; }
.bu-konflikt { display: flex; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: .82rem; margin-left: 32px; }
.bu-hinweis { color: #70757a; font-size: .78rem; padding-left: 32px; }
.bu-adr { color: #0f766e; }
/* Studios & Ressourcen */
.st-raster { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; padding-top: 12px; }
.st-liste { display: flex; flex-direction: column; gap: 6px; }
.st-eintrag { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 10px 12px 10px 14px; border-radius: 10px; border: 1px solid #e5e7eb; border-left: 5px solid var(--f); background: #fff; }
.st-eintrag:hover { background: #f8fafc; }
.st-eintrag.aktiv { background: color-mix(in srgb, var(--f) 10%, #fff); border-color: var(--f); }
.st-eintrag.aus { opacity: .55; }
.st-eintrag small { color: #64748b; font-size: .75rem; }
.st-felder { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.st-felder > input:not([type=checkbox]):not([type=color]), .st-felder textarea, .st-art input { font: inherit; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; }
.st-felder > input[type=checkbox] { justify-self: start; }
.st-zeit { display: flex; align-items: center; gap: 8px; }
.st-zeit input { width: 64px; font: inherit; padding: 5px 7px; border: 1px solid #cfd8e3; border-radius: 7px; }
.st-res tr.aus td { opacity: .55; }
.st-neu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }

/* ab 3.76: Studio-Name als Adresssuche */
.st-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.st-such { position: relative; flex: 1; min-width: 0; }
.st-such input { font: inherit; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; }
.st-vorschlaege { position: absolute; z-index: 20; top: calc(100% + 3px); left: 0; right: 0; background: #fff; border: 1px solid #cfd8e3; border-radius: 9px; box-shadow: 0 10px 26px rgba(15,23,42,.16); max-height: 320px; overflow-y: auto; padding: 4px; }
.st-vorschlag { display: flex; align-items: baseline; gap: 6px; padding: 6px 9px; border-radius: 6px; cursor: pointer; font-size: .86rem; }
.st-vorschlag:hover { background: #f1f5f9; }
.st-vorschlag small { color: #64748b; margin-left: auto; white-space: nowrap; }
.st-nr { color: #94a3b8; font-size: .75rem; min-width: 46px; }
.st-typ { font-size: .66rem; font-weight: 700; color: #0f766e; background: #e6f4f1; border-radius: 999px; padding: 1px 7px; }

/* ab 3.77: Chat-Hintergrund der Aufgaben wählbar (Einstellungen der Aufgaben) – Schiefer, Petrol, WhatsApp dunkel, Aubergine, Telegram */
[data-chat="schiefer"] { --ch-bg: #1f2a33; --ch-tag: #2d3a46; --ch-tagt: #b8c4cf; --ch-blase: #2d3a46; --ch-text: #e8eef3; --ch-rand: #2d3a46; --ch-meine: #0f766e; --ch-meinet: #fff; --ch-wer: #f2a34a; --ch-zeit: #93a3b3; }
[data-chat="petrol"] { --ch-bg: #0f2a30; --ch-tag: #173c43; --ch-tagt: #8fd9c8; --ch-blase: #1a3b42; --ch-text: #e6f2f0; --ch-rand: #1a3b42; --ch-meine: #14806f; --ch-meinet: #fff; --ch-wer: #7fe0c9; --ch-zeit: #8db3ad; }
[data-chat="whatsapp"] { --ch-bg: #0b141a; --ch-tag: #1d2a31; --ch-tagt: #9fb0b9; --ch-blase: #202c33; --ch-text: #e9edef; --ch-rand: #202c33; --ch-meine: #005c4b; --ch-meinet: #e9edef; --ch-wer: #f2a34a; --ch-zeit: #8696a0; }
[data-chat="aubergine"] { --ch-bg: #211b2e; --ch-tag: #2f2742; --ch-tagt: #bcb2d4; --ch-blase: #322a47; --ch-text: #ece8f5; --ch-rand: #322a47; --ch-meine: #534ab7; --ch-meinet: #fff; --ch-wer: #f2a34a; --ch-zeit: #a49bbd; }
[data-chat="telegram"] { --ch-bg: #c5d6e3; --ch-tag: #a9bfcf; --ch-tagt: #fff; --ch-blase: #fff; --ch-text: #1f2d3d; --ch-rand: #fff; --ch-meine: #e3f6cf; --ch-meinet: #1f2d3d; --ch-wer: #e48a1e; --ch-zeit: #6f8496; }
[data-chat] .auf-chat, .auf-chat[data-chat] { background: var(--ch-bg); }
[data-chat] .auf-chat-tag span, .auf-chat[data-chat] .auf-chat-tag span { background: var(--ch-tag); color: var(--ch-tagt); }
[data-chat] .auf-chat-system { color: var(--ch-zeit); }
[data-chat] .auf-chat-blase { background: var(--ch-blase); border-color: var(--ch-rand); }
[data-chat] .auf-chat-text { color: var(--ch-text); }
[data-chat] .auf-chat-wer { color: var(--ch-wer); }
[data-chat] .auf-chat-zeit { color: var(--ch-zeit); }
[data-chat] .auf-chat-zeile.meine .auf-chat-blase { background: var(--ch-meine); border-color: var(--ch-meine); }
[data-chat] .auf-chat-zeile.meine .auf-chat-text { color: var(--ch-meinet); }
[data-chat] .auf-chat-zeile.meine .auf-chat-zeit { color: var(--ch-meinet); opacity: .7; }
[data-chat] .auf-chat .auf-chat-leer { color: var(--ch-zeit); }
[data-chat] .auf-chat a { color: var(--ch-wer); }
.auf-einst-chats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.auf-einst-chat { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid #dfe6ef; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.auf-einst-chat.aktiv { border-color: #0f766e; }
.auf-einst-chat .auf-chat { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 6px; height: 64px; overflow: hidden; }
.auf-einst-chat .auf-chat-blase { display: flex; flex-direction: column; padding: 2px 6px; }
.auf-einst-chat .auf-chat-text { font-size: .66rem; }
.auf-einst-chat small { font-size: .64rem; color: #3d4b5c; text-align: center; line-height: 1.2; }

/* ---------- ab 3.77: Inventar & Equipment ---------- */
.inv-ansicht { display: flex; flex-direction: column; min-height: 0; }
.inv-reiter { display: flex; gap: 4px; flex-wrap: wrap; }
.inv-reiter button { all: unset; cursor: pointer; padding: 5px 14px; border-radius: 999px; border: 1px solid #cfd8e3; font-size: .82rem; color: #334155; background: #fff; }
.inv-reiter button:hover { background: #f1f5f9; }
.inv-reiter button.aktiv { background: #0f766e; border-color: #0f766e; color: #fff; }
.inv-handy { display: flex; gap: 16px; align-items: center; margin: 10px 0; padding: 12px 14px; border: 1px solid #cfe3df; background: #f2faf8; border-radius: 10px; }
.inv-handy img { width: 132px; height: 132px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 6px; }
.inv-handy p { margin: 4px 0; font-size: .82rem; color: #475569; }
.inv-handy code { font-size: .78rem; }
.inv-warnung { color: #b45309 !important; }
.inv-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(420px, 1fr); gap: 16px; padding-top: 10px; min-height: 0; flex: 1; }
.inv-liste { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.inv-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-filter input, .inv-filter select, .inv-etiketten select, .inv-etiketten input, .inv-export-leiste select { font: inherit; font-size: .82rem; padding: 5px 8px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; }
.inv-suche { flex: 1; min-width: 220px; }
.inv-liste-leiste { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inv-etiketten { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; background: #f8fafc; font-size: .82rem; }
.inv-etiketten input[type=number] { width: 70px; }
.inv-etiketten small { flex-basis: 100%; color: #64748b; }
.inv-tabelle-rahmen { overflow: auto; min-height: 0; flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.inv-tabelle td { vertical-align: middle; }
.inv-tabelle tbody tr { cursor: pointer; }
.inv-tabelle tbody tr:hover { background: #f8fafc; }
.inv-tabelle tbody tr.gewaehlt { background: #e6f4f1; }
.inv-tabelle tbody tr.aus td { opacity: .55; }
.inv-mini { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.inv-mini.leer { background: #f1f5f9; color: #94a3b8; }
.inv-art { margin-left: 6px; font-size: .68rem; font-weight: 700; color: #0f766e; background: #e6f4f1; border-radius: 999px; padding: 1px 7px; }
.inv-set { display: block; color: #64748b; font-size: .72rem; }
.inv-status { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: #e6f4f1; color: #0f766e; white-space: nowrap; }
.inv-status.wartung { background: #fef3c7; color: #92400e; }
.inv-status.ausgeschieden { background: #f1f5f9; color: #64748b; }
.inv-detail { min-width: 0; overflow: auto; }
.inv-form { display: flex; flex-direction: column; gap: 10px; }
.inv-form-leiste { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 2; background: inherit; padding: 2px 0 4px; }
.inv-felder { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 7px 12px; align-items: center; }
.inv-felder > input, .inv-felder > select, .inv-felder textarea, .inv-felder > div > input, .inv-zeile input, .inv-zeile select, .inv-notiz { font: inherit; font-size: .85rem; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; background: #fff; }
.inv-felder small { display: block; margin-top: 3px; font-size: .72rem; }
.inv-zeile { display: flex; gap: 6px; align-items: center; min-width: 0; }
.inv-zeile input[type=date] { width: 150px; flex: none; }
.inv-zeile .mf-knopf { white-space: nowrap; }
.inv-klein { font-size: .76rem; color: #64748b; white-space: nowrap; }
.inv-wert { font-size: .85rem; color: #334155; }
.inv-haken { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; white-space: nowrap; }
.inv-wahl { display: flex; gap: 4px; flex-wrap: wrap; }
.inv-wahl button { all: unset; cursor: pointer; padding: 4px 12px; border-radius: 7px; border: 1px solid #cfd8e3; font-size: .8rem; background: #fff; }
.inv-wahl button.aktiv { background: #0f766e; border-color: #0f766e; color: #fff; }
.inv-code { font-family: Consolas, "Liberation Mono", monospace; font-size: .95rem; letter-spacing: .08em; background: #f1f5f9; border-radius: 6px; padding: 2px 8px; }
.inv-qr-klein { width: 56px; height: 56px; image-rendering: pixelated; }
.inv-fotos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inv-foto { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #f1f5f9; }
.inv-foto.titel { border-color: #0f766e; }
.inv-foto img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.inv-foto-knoepfe { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.inv-foto:hover .inv-foto-knoepfe { opacity: 1; }
.inv-foto-knoepfe button { all: unset; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,23,42,.65); color: #fff; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.inv-foto-neu { width: 104px; height: 104px; border-radius: 10px; border: 2px dashed #0f766e; color: #0f766e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: .74rem; text-align: center; background: #f2faf8; }
.inv-foto-neu.hell { border-color: #94a3b8; color: #475569; background: #f8fafc; }
.inv-foto-neu input { display: none; }
.inv-gross { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.85); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.inv-gross img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.inv-historie { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; font-size: .78rem; }
.inv-ereignis { display: grid; grid-template-columns: 112px 120px 110px minmax(0, 1fr); gap: 6px; padding: 3px 0; border-bottom: 1px solid #f1f5f9; }
.inv-ereignis small { color: #64748b; }
.inv-hinweis { color: #0f766e; font-weight: 600; }
.inv-block { padding-top: 10px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.inv-block > p { margin: 0; }
.inv-edit input.gr-feld, .inv-edit select.gr-feld { width: 100%; box-sizing: border-box; }
.inv-edit tr.aus td { opacity: .55; }
.inv-zwei { white-space: nowrap; }
.inv-zwei input { width: 64px; font: inherit; font-size: .8rem; padding: 3px 5px; border: 1px solid #cfd8e3; border-radius: 6px; margin-right: 4px; }
.inv-export-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .84rem; }
.inv-vorgang { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.inv-vorgang.v-neu { background: #dcfce7; color: #166534; }
.inv-vorgang.v-geändert { background: #dbeafe; color: #1e40af; }
.inv-vorgang.v-Abgang { background: #fee2e2; color: #991b1b; }
.inv-einst { max-width: 1100px; }
.inv-einst .inv-felder { max-width: 820px; }
.inv-einst textarea { font: inherit; font-size: .85rem; padding: 6px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; }
.inv-form.kompakt .inv-felder { grid-template-columns: 1fr; gap: 3px; }
.inv-form.kompakt .inv-felder > label { font-size: .74rem; color: #64748b; margin-top: 6px; }
.inv-form.kompakt .inv-felder > input, .inv-form.kompakt .inv-felder > select, .inv-form.kompakt .inv-zeile input, .inv-form.kompakt .inv-zeile select { font-size: 16px; padding: 9px 10px; }
.inv-form.kompakt .inv-zeile { flex-wrap: wrap; }
.inv-form.kompakt .inv-foto, .inv-form.kompakt .inv-foto-neu { width: calc(33.3% - 6px); height: auto; aspect-ratio: 1; }
.inv-form.kompakt .inv-foto-knoepfe { opacity: 1; }
.inv-form.kompakt .inv-ereignis { grid-template-columns: 1fr 1fr; }
.inv-form.kompakt .mf-knopf { min-height: 40px; }
@media (max-width: 1100px) { .inv-raster { grid-template-columns: 1fr; } }

/* Handy-Ansicht */
.invm { min-height: 100vh; background: #f1f5f9; padding-bottom: 40px; }
.invm-kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0f2a30; color: #fff; }
.invm-kopf b { font-size: 1.05rem; }
.invm-mandant { margin-left: auto; font-size: .75rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invm-zurueck { all: unset; cursor: pointer; display: inline-flex; padding: 4px; color: #fff; }
.invm > .inv-form, .invm-start, .invm-inventur { padding: 12px 14px 0; }
.invm .rahmen { background: #fff; }
.invm-start { display: flex; flex-direction: column; gap: 12px; }
.invm-gross { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: 14px; background: #0f766e; color: #fff; font-size: 1.1rem; font-weight: 600; }
.invm-gross .mud-icon-root { font-size: 2rem; }
.invm-gross.hell { background: #fff; color: #0f766e; border: 2px solid #0f766e; }
.invm-inventur-wahl { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.invm-inventur-wahl label { font-size: .76rem; color: #64748b; }
.invm-inventur-wahl select, .invm-suche { font: inherit; font-size: 16px; padding: 10px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; }
.invm-inventur-wahl small { color: #0f766e; font-weight: 600; }
.invm-liste { display: flex; flex-direction: column; gap: 6px; }
.invm-eintrag { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px; }
.invm-eintrag img, .invm-bild { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; background: #f1f5f9; color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; }
.invm-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.invm-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invm-text small { color: #64748b; }
.invm-scan { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px; gap: 10px; }
.invm-scan video { width: 100%; max-width: 520px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: #000; }
.invm-rahmen { position: absolute; top: calc(12px + 18%); width: min(60vw, 300px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.0); pointer-events: none; }
.invm-scan p { margin: 0; color: #334155; text-align: center; }
.invm-fehler { color: #991b1b; background: #fee2e2; border-radius: 10px; padding: 8px 12px; }
.invm-ort { color: #0f766e !important; }
.invm-inventur { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invm-inventur > span { flex-basis: 100%; font-size: .85rem; color: #0f766e; }
.invm-leer { padding: 30px 20px; text-align: center; color: #64748b; }
.ansicht-formular.inv-ansicht { max-height: none; flex: 1 1 auto; overflow: hidden; padding: 8px 12px; }
.inv-ansicht .inv-raster { min-height: 0; }
.inv-ansicht .inv-block { flex: 1; min-height: 0; }
.inv-ort { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.inv-tabelle td:nth-child(4) { white-space: nowrap; }
.auf-einst-chat .auf-chat-text { white-space: nowrap; }

/* ---------- ab 3.78: Inntec ONE als App ---------- */
.appm-inhalt { padding: 14px; display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.appm-gruss { font-size: 1.15rem; font-weight: 600; color: #0f2a30; }
.appm-install { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid #14806f; border-radius: 14px; padding: 12px; }
.appm-install img { width: 54px; height: 54px; border-radius: 12px; flex: none; }
.appm-install p { margin: 4px 0 8px; font-size: .88rem; color: #334155; }
.appm-teilen { display: inline-block; padding: 0 6px; border: 1px solid #94a3b8; border-radius: 5px; font-size: .8rem; }
.appm-gross { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.appm-gross .invm-gross { text-decoration: none; padding: 16px 10px; font-size: 1rem; flex-direction: column; gap: 6px; }
.appm-gruppe { background: #fff; border-radius: 14px; padding: 10px 12px; }
.appm-titel { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.appm-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.appm-kachel { display: flex; align-items: center; min-height: 46px; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; color: #0f2a30; text-decoration: none; font-weight: 600; font-size: .9rem; }
.appm-kachel:active, .appm-kachel:hover { background: #e6f4f1; }
.appm-fuss { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 2px 20px; }
.appm-fuss small { color: #64748b; }
.appm-fuss form { margin-top: 10px; }
a.invm-zurueck { color: #fff; }
.login-app { margin: .6rem 0 0; font-size: .8rem; color: #0f766e; }
.appd { display: flex; gap: 18px; align-items: flex-start; }
.appd-qr { width: 170px; height: 170px; image-rendering: pixelated; flex: none; }
.appd p { margin: 0 0 8px; } .appd ul { margin: 0 0 8px; padding-left: 18px; font-size: .9rem; }
.appd code { font-size: .78rem; }
@media (max-width: 600px) { .appd { flex-direction: column; } }
/* Tablet: Handy-Ansicht mittig, Liste zweispaltig */
@media (min-width: 760px) {
  .invm > .inv-form, .invm-start, .invm-inventur { max-width: 900px; margin: 0 auto; }
  .invm-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .invm-start .invm-gross { padding: 22px; }
}
/* App ohne Adressleiste: Ränder für Notch/Statusleiste */
html.als-app .invm-kopf { padding-top: calc(10px + env(safe-area-inset-top)); }
html.als-app .einzel-kopf { padding-top: env(safe-area-inset-top); }
/* ab 3.78: Aufgaben am Handy (App) – Liste, Angaben und Chat untereinander */
@media (max-width: 760px) {
  .auf-fenster { height: auto; min-height: 100%; }
  .auf-raster { display: flex; flex-direction: column; flex: none; }
  .auf-liste { max-height: 42vh; min-height: 120px; }
  .auf-rechts { min-height: 50vh; }
  .auf-chat-spalte { height: 70vh; flex: none; }
  .auf-raster .spalten-griff { display: none; }
  .einzel-inhalt { overflow: auto !important; }
}

/* ---------- ab 3.79: Lizenz wählen (Free oder Testversion) ---------- */
.start-lizenzwahl { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #e6f4f1; border: 1px solid #9fd8cc; color: #0f2a30; }
.start-lizenzwahl > .mud-icon-root { font-size: 2rem; color: #0f766e; }
.start-lizenzwahl > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.start-lizenzwahl.dringend { background: #fff7ed; border-color: #fdba74; }
.start-lizenzwahl.dringend > .mud-icon-root { color: #c2410c; }
.lw { display: flex; flex-direction: column; gap: 14px; }
.lw-kopf { display: flex; gap: 14px; align-items: flex-start; }
.lw-kopf h2 { margin: 0 0 4px; font-size: 1.2rem; color: #0f2a30; }
.lw-kopf p { margin: 0 0 4px; font-size: .86rem; color: #334155; max-width: 760px; }
.lw-frist { color: #0f766e !important; font-weight: 600; }
.lw-frist.dringend { color: #c2410c !important; }
.lw-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lw-option { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid #cfd8e3; border-radius: 12px; background: #fff; }
.lw-option:hover { border-color: #94a3b8; }
.lw-option.aktiv { border-color: #0f766e; background: #f2faf8; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.lw-option .mud-icon-root { color: #0f766e; font-size: 1.6rem; }
.lw-option b { font-size: 1.05rem; color: #0f2a30; }
.lw-unter { font-size: .78rem; font-weight: 600; color: #0f766e; }
.lw-option span { font-size: .82rem; color: #475569; }
.lw-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; }
.lw-felder label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: #475569; }
.lw-felder label.breit { grid-column: 1 / -1; }
.lw-felder input { font: inherit; font-size: .9rem; padding: 7px 10px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; color: #0f172a; }
.lw-zwei { display: flex; gap: 6px; } .lw-zwei input { flex: 1; min-width: 0; } .lw-zwei input.plz { flex: 0 0 90px; }
.lw-zustimmung { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: #475569; }
.lw-knoepfe { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lw-fertig { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #e6f4f1; color: #0f2a30; }
.lw-fertig .mud-icon-root { color: #0f766e; font-size: 1.8rem; } .lw-fertig p { margin: 4px 0 0; font-size: .86rem; }

/* ---------- ab 3.80: Erste Schritte im Fenster (Hilfe\Einstieg.json) ---------- */
.ein-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; border: 1px solid #f2c94c; background: #fff8e1; color: #7a5a00; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ein-knopf:hover { background: #ffefb3; }
.ein { flex: none; margin: 8px 0 10px; border: 1px solid #f2c94c; border-radius: 12px; background: #fffdf5; box-shadow: 0 6px 18px rgba(15,23,42,.06); overflow: hidden; }
.ein-kopf { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff3c4; color: #5c4400; font-size: .92rem; }
.ein-kopf .mud-icon-root { color: #b8860b; }
.ein-zu { all: unset; cursor: pointer; margin-left: auto; padding: 0 6px; font-size: 1rem; color: #7a5a00; }
/* ab 3.99.35 – Grundsatz „So geht's“: oben im Fenster eingeblendet (über dem Inhalt), ⓘ in der Titelleiste, ⧉ extern */
.ein-extern + .ein-zu { margin-left: 0; }
.ein-extern { display: inline-flex; align-items: center; }
.ein-rahmen { position: absolute; top: 8px; left: 12px; right: 12px; z-index: 900; max-height: calc(100% - 16px); overflow: auto; border-radius: 12px; box-shadow: 0 14px 40px rgba(15,23,42,.22); }
.ein-rahmen > .ein { margin: 0; }
.ein-rahmen.ganz { position: static; max-height: none; box-shadow: none; padding: 12px; }
.einzel-inhalt { position: relative; }
.fenster-knoepfe button.fenster-info { color: #f2c94c; }
.einstieg-seite { padding: 8px; }
.ein-raster { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.35fr); gap: 18px; padding: 14px 16px 16px; }
.ein-text h4 { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #8a6d00; }
.ein-text p { margin: 0 0 12px; font-size: .86rem; line-height: 1.5; color: #1f2d3d; }
.ein-schritte { margin: 0 0 12px; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 6px; }
.ein-schritte li { counter-increment: s; display: flex; gap: 8px; font-size: .86rem; line-height: 1.4; color: #1f2d3d; }
.ein-schritte li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0f766e; color: #fff; font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ein-bild { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ein-bild img { width: 100%; border-radius: 8px; border: 1px solid #e5e7eb; cursor: zoom-in; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.ein-bild figcaption { font-size: .8rem; color: #334155; }
.ein-beispiel { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #e48a1e; border-radius: 4px; padding: 1px 6px; margin-bottom: 4px; }
.ein-legende { margin: 0; padding-left: 0; list-style: none; counter-reset: b; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.ein-legende li { counter-increment: b; display: flex; gap: 6px; align-items: flex-start; }
.ein-legende li::before { content: counter(b); flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e11d48; color: #fff; font-size: .66rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1000px) { .ein-raster { grid-template-columns: 1fr; } .ein-legende { grid-template-columns: 1fr; } }
.ansicht-formular.st-ansicht { max-height: none; flex: 1 1 auto; } /* ab 3.80: Studios-Fenster nutzt die ganze Höhe */
.ansicht-formular.st-ansicht, .ansicht-formular.inv-ansicht { overflow: auto; }

/* ---------- ab 3.80: linkes Menü wie im Lizenzportal (Schrift, Schriftfarbe, Hintergrund) – gilt für alle Themen ---------- */
:root { --mf-menue: #14202e; --mf-menue-hell: rgba(255,255,255,.06); }
html .mrr-drawer, html.thema-petrol .mrr-drawer { background: #14202e !important; }
html .mf-menu, html .mf-menu-unten { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe {
    text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 500; color: #cbd5e1; /* ab 3.97.1: ½ pt kleiner (Rene); ab 3.99.58 nochmals kleiner, Abstände wie bisher (Rene 30.10.2026) */
    margin: calc(1px * var(--s)) calc(10px * var(--s)) 0; padding: calc(8px * var(--s)) calc(12px * var(--s)); border-radius: 8px;
}
html .mf-menu-gruppe:hover, html.thema-petrol .mf-menu-gruppe:hover { background: rgba(255,255,255,.06); color: #fff; }
html .mf-menu-gruppe .mud-icon-root { opacity: .8; }
html .mf-menu-eintrag, html.thema-petrol .mf-menu-eintrag { color: #cbd5e1; font-size: .80rem; margin: 0 calc(10px * var(--s)); border-radius: 8px; padding-left: calc(42px * var(--s)); }
html .mf-menu-eintrag.start, html.thema-petrol .mf-menu-eintrag.start { padding-left: calc(12px * var(--s)); font-size: .833rem; font-weight: 500; }
html .mf-menu-eintrag:hover, html.thema-petrol .mf-menu-eintrag:hover { background: rgba(255,255,255,.06); color: #fff; }
/* ab 3.81: geöffnete Fenster nicht mehr markieren – nur Mouse-over (Rene) */
html .mf-menu-eintrag.geoeffnet, html.thema-petrol .mf-menu-eintrag.geoeffnet { background: none; color: #cbd5e1; box-shadow: none; }
html .mf-menu-eintrag.geoeffnet:hover, html.thema-petrol .mf-menu-eintrag.geoeffnet:hover { background: rgba(255,255,255,.06); color: #fff; }
html .mf-menu-eintrag.offen, html .mf-menu-eintrag.offen:hover { color: #64748b; background: none; }
/* ab 3.80: Untermenüs enger (Rene) */
html .mf-menu-eintrag:not(.start) { padding-top: calc(2px * var(--s)); padding-bottom: calc(2px * var(--s)); line-height: 1.25; }
html .mf-menu-gruppe { padding-top: calc(7.5px * var(--s)); padding-bottom: calc(7.5px * var(--s)); gap: calc(11px * var(--s)); }

/* ---------- ab 3.81: Unterschrift ---------- */
.us { display: flex; flex-direction: column; gap: 6px; }
.us-feld { width: 100%; height: 170px; border: 2px dashed #94a3b8; border-radius: 10px; background: #fff; cursor: crosshair; }
.us-leiste { display: flex; align-items: center; gap: 10px; }
.us-hinweis { font-size: .78rem; color: #64748b; flex: 1; }
.us-angaben { display: flex; flex-direction: column; gap: 6px; } /* ab 3.99.283: Zweck und Name in Druckbuchstaben (MitAngaben) */
.us-zeile { display: flex; align-items: center; gap: 8px; }
.us-label { width: 70px; flex: none; font-size: .8rem; color: var(--mf-text-2, #64748b); }
.us-zwecke { display: flex; flex-wrap: wrap; gap: 4px; }
.us-eingabe { flex: 1; min-width: 0; font: inherit; padding: 4px 8px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); }
.us-name { text-transform: uppercase; letter-spacing: .04em; }
.us-name::placeholder { text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) { .us-zeile { flex-direction: column; align-items: stretch; gap: 3px; } .us-label { width: auto; } .us-mit .us-feld { height: 200px; } }

/* ---------- ab 3.81: Equipment-Verleih ---------- */
.vl-form { display: flex; flex-direction: column; gap: 10px; }
.vl-form .inv-form-leiste { align-items: center; }
.vl-status { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: #e0ecff; color: #1d4ed8; white-space: nowrap; }
.vl-form .inv-form-leiste .vl-status { margin-left: auto; font-size: .78rem; padding: 3px 10px; }
.vl-status.ausgegeben { background: #fef3c7; color: #92400e; }
.vl-status.zurueck { background: #e6f4f1; color: #0f766e; }
.vl-status.abgeschlossen, .vl-status.storniert { background: #f1f5f9; color: #64748b; }
.vl-spaet, .vl-spaet + td + td .vl-status { color: #b91c1c !important; font-weight: 600; }
.vl-konflikte { border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; border-radius: 8px; padding: 8px 12px; font-size: .82rem; display: flex; flex-direction: column; gap: 2px; }
.vl-konflikte b { display: flex; align-items: center; gap: 6px; }
.vl-tab td, .vl-tab th { vertical-align: middle; }
.vl-tab tr.konflikt td { background: #fef2f2; }
.vl-tab tr.ok td { background: #f0fdf4; }
.vl-tab .rechts, .vl-tab input.rechts { text-align: right; }
.vl-aus { display: inline-block; margin-left: 6px; color: #0f766e; font-size: .72rem; }
.vl-neu { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.vl-neu select { min-width: 240px; }
.vl-zeit { flex-wrap: wrap; }
.vl-zeit input[type=datetime-local] { width: auto; flex: 1 1 170px; min-width: 0; }
.vl-summen { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; max-width: 460px; margin-left: auto; font-size: .86rem; align-items: center; }
.vl-summen b { text-align: right; font-weight: 600; }
.vl-summen .gesamt { font-size: 1rem; font-weight: 700; border-top: 1px solid #cbd5e1; padding-top: 4px; }
.vl-prozent { width: 64px; }
.vl-kaution { display: flex; gap: 6px; justify-content: flex-end; }
.vl-kaution input { width: 100px; text-align: right; }
.vl-info { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vl-pruefen { border-color: #0f766e; }
.vl-pakete { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.vl-pakete .aus { opacity: .6; }
.vl-inhalt { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.vl-inhalt span:first-child { flex: 1; }
.vl-inhalt input { width: 70px; }
.vl-vertrag { width: 100%; font-family: inherit; }
.vl-kal-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.vl-legende { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #64748b; }
.vl-legende i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.vl-legende i.reserviert, .vl-kal td.reserviert { background: #bfdbfe; }
.vl-legende i.ausgegeben, .vl-kal td.ausgegeben { background: #fcd34d; }
.vl-legende i.wartung, .vl-kal td.wartung { background: repeating-linear-gradient(45deg, #fecaca, #fecaca 4px, #fee2e2 4px, #fee2e2 8px); }
.vl-kal td.spaet { background: #fca5a5; }
.vl-kal-rahmen { overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.vl-kal { border-collapse: collapse; font-size: .75rem; min-width: 100%; }
.vl-kal th, .vl-kal td { border-right: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; padding: 0; height: 26px; min-width: 34px; text-align: center; }
.vl-kal th { position: sticky; top: 0; background: #f8fafc; font-weight: 600; padding: 2px 0; z-index: 1; }
.vl-kal th.we { background: #f1f5f9; color: #64748b; }
.vl-kal th.heute { background: #0f766e; color: #fff; }
.vl-kal td[class] { cursor: pointer; white-space: nowrap; overflow: visible; text-align: left; padding-left: 3px; font-size: .68rem; color: #1f2937; }
.vl-kal .vl-kal-geraet { position: sticky; left: 0; background: #fff; text-align: left; padding: 0 8px; min-width: 200px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 2; cursor: default; font-size: .78rem; }
.vl-kal th.vl-kal-geraet { z-index: 3; background: #f8fafc; }
.inv-wartungen { margin-top: 8px; }
.inv-wartungen tr.aus td { opacity: .6; }
.inv-wknoepfe { white-space: nowrap; }
.inv-warnung { color: #b45309; font-weight: 600; font-size: .78rem; }
@media (max-width: 900px) { .vl-pakete { grid-template-columns: 1fr; } .vl-summen { max-width: none; } }
.vlm-liste { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 520px; margin: 6px auto; }
.vlm-pos { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.9); color: #1f2937; font-size: .88rem; }
.vlm-pos.ok { background: #dcfce7; color: #166534; }
.vlm-pos span { width: 18px; font-weight: 700; }
.vl-form.kompakt > fieldset:not(.vl-pruefen) .vl-tab th:nth-child(n+3):not(:last-child), .vl-form.kompakt > fieldset:not(.vl-pruefen) .vl-tab td:nth-child(n+3):not(:last-child) { display: none; }
.vl-form.kompakt .vl-zeit { flex-wrap: wrap; }

/* ---------- ab 3.81: Auswahlfeld mit „+“ und Popup (für das ganze Programm) ---------- */
.aw { display: flex; align-items: center; gap: 4px; min-width: 0; width: 100%; }
.aw-feld { position: relative; flex: 1; min-width: 0; }
.aw-feld input { font: inherit; width: 100%; box-sizing: border-box; padding-right: 26px !important; }
.aw-pfeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: #64748b; cursor: pointer; display: flex; }
.aw.gesperrt .aw-pfeil { display: none; }
/* ab 3.99.300: ✕ zum Leeren links neben dem Pfeil (nur wenn etwas gewählt ist) */
.aw-leeren { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: #64748b; cursor: pointer; display: flex; }
.aw-leeren:hover { color: #1f2937; }
.aw-feld:has(.aw-leeren) input { padding-right: 48px !important; }
.aw-liste { position: absolute; z-index: 40; top: calc(100% + 3px); left: 0; right: 0; min-width: 220px; background: #fff; border: 1px solid #cfd8e3; border-radius: 9px; box-shadow: 0 10px 26px rgba(15,23,42,.16); max-height: 300px; overflow-y: auto; padding: 4px; }
.aw-eintrag { display: flex; align-items: baseline; gap: 8px; padding: 6px 9px; border-radius: 6px; cursor: pointer; font-size: .86rem; color: #1f2937; }
.aw-eintrag small { color: #64748b; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-eintrag.markiert { background: #e6f4f1; }
.aw-eintrag.gewaehlt { font-weight: 600; color: #0f766e; }
.aw-eintrag.leer { color: #94a3b8; }
.aw-nichts { padding: 8px 9px; font-size: .8rem; color: #64748b; font-style: italic; }
.aw-knopf { all: unset; box-sizing: border-box; flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid #b9d3cd; background: #fff; color: #0f766e; cursor: pointer; }
.aw-knopf:hover { background: #e6f4f1; }
.pu-hinter { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 1500; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 12px 12px; }
.pu-fenster { background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(15,23,42,.3); width: 100%; max-width: 520px; display: flex; flex-direction: column; max-height: 80vh; }
.pu-kopf { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.pu-kopf b { flex: 1; font-size: 1rem; color: #0f766e; }
.pu-zu { all: unset; cursor: pointer; color: #64748b; display: flex; }
.pu-inhalt { padding: 14px 16px; overflow: auto; }
.pu-fehler { margin: 0 16px; color: #b91c1c; font-size: .82rem; }
.pu-fuss { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-top: 1px solid #e2e8f0; }
.aw-feld input { font-size: .85rem; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; height: 32px; }
.aw-feld input:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.15); }
.aw-feld input:disabled { background: #f8fafc; color: #475569; }
.vl-dazu { flex: 1 1 260px; max-width: 420px; }
.vl-summen input, .vl-summen select, .vl-tab input.gr-feld, .vl-neu select { font: inherit; font-size: .85rem; padding: 4px 8px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; box-sizing: border-box; }
.vl-form.kompakt .inv-felder { grid-template-columns: 1fr; gap: 3px; }
.vl-form.kompakt .inv-felder > label { font-size: .74rem; color: #64748b; margin-top: 6px; }
.vl-form.kompakt .inv-felder > input, .vl-form.kompakt .inv-zeile input, .vl-form.kompakt .aw-feld input { font-size: 16px; height: 40px; }
.vl-form.kompakt .mf-knopf { min-height: 40px; }
.inv-form.kompakt .aw-feld input { font-size: 16px; height: 40px; }
.inv-form.kompakt .aw-knopf, .vl-form.kompakt .aw-knopf { width: 40px; height: 40px; }

/* ---------- ab 3.82: Zeiterfassung ---------- */
.ze-raster { display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 16px; padding-top: 10px; min-height: 0; flex: 1; }
.ze-links { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: auto; }
.ze-rechts { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.zs { border: 1px solid #cfe3de; border-radius: 12px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.zs.laeuft { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.zs-uhr { display: flex; align-items: center; gap: 10px; color: #0f766e; }
.zs-zeit { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #14202e; }
.zs.laeuft .zs-zeit { color: #0f766e; }
.zs-uhr small { color: #64748b; }
.zs-knoepfe { display: flex; gap: 8px; }
.zs-knoepfe .mf-knopf { min-height: 38px; }
.zs-start { flex: 1; justify-content: center; }
.zs-stopp { flex: 1; justify-content: center; background: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
.zs.gross { width: 100%; }
.zs.gross .zs-zeit { font-size: 2.8rem; }
.zs.gross .inv-felder { grid-template-columns: 1fr; gap: 3px; }
.zs.gross .inv-felder > label { font-size: .74rem; color: #64748b; margin-top: 6px; }
.zs.gross .inv-felder > input, .zs.gross .aw-feld input { font-size: 16px; height: 42px; }
.zs.gross .aw-knopf { width: 42px; height: 42px; }
.zs.gross .zs-knoepfe .mf-knopf { min-height: 52px; font-size: 1.05rem; }
.ze-tab td, .ze-tab th { vertical-align: middle; }
.ze-tab .rechts { text-align: right; }
.ze-tab tr.ze-tag td { background: #f1f5f9; font-weight: 600; font-size: .78rem; color: #334155; }
.ze-tab tr.ze-tag td span { float: right; color: #0f766e; }
.ze-tab tr.laeuft td { background: #ecfdf5; }
.ze-tab tr.abgerechnet td { color: #64748b; }
.ze-tab tbody tr:not(.ze-tag) { cursor: pointer; }
.ze-tab tfoot td { border-top: 2px solid #cbd5e1; }
.ze-vorschlaege { border: 1px solid #b9d3cd; background: #f0fdfa; border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.ze-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ze-filter > input, .ze-filter > select { font: inherit; font-size: .85rem; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; height: 32px; }
.ze-f { width: 190px; }
.ze-summen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ze-summen > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 150px; }
.ze-summen span { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.ze-summen b { font-size: 1.25rem; color: #14202e; }
.ze-summen .ze-gruppe select { font: inherit; margin-top: 4px; }
.ze-zwei { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ze-liste { max-height: 60vh; overflow: auto; }
@media (max-width: 1100px) { .ze-raster, .ze-zwei { grid-template-columns: 1fr; } }
.ze-links .inv-zeile input[type=time] { flex: 1 1 0; min-width: 0; width: auto; }
.ze-links .inv-klein { white-space: normal; }
.zs-knoepfe { flex-wrap: wrap; }

/* ---------- ab 3.82: Kontextmenü (rechte Maustaste) ---------- */
.km-hinter { position: fixed; inset: 0; z-index: 1600; }
.km { position: fixed; z-index: 1601; min-width: 230px; background: #fff; border: 1px solid #cfd8e3; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.22); padding: 5px; display: flex; flex-direction: column; font-family: "Segoe UI", system-ui, sans-serif; }
.km-eintrag { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 9px; border-radius: 7px; cursor: pointer; font-size: .86rem; color: #1f2937; white-space: nowrap; }
.km-eintrag:hover:not(:disabled) { background: #e6f4f1; color: #0f766e; }
.km-eintrag:disabled { color: #94a3b8; cursor: default; }
.km-eintrag.gefahr:hover:not(:disabled) { background: #fef2f2; color: #b91c1c; }
.km-eintrag .mud-icon-root { color: inherit; opacity: .85; }
.km-leer { width: 20px; }
.km-trenner { height: 1px; background: #e2e8f0; margin: 4px 6px; }

/* ---------- ab 3.82: Willkommen auf der Startseite (Free oder Testversion zuerst) ---------- */
.start-willkommen { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lw.gross { padding: 26px 30px; border: 2px solid #0f766e; box-shadow: 0 14px 40px rgba(15,118,110,.14); }
.lw.gross .lw-kopf h2 { font-size: 1.7rem; }
.lw.gross .lw-kopf p { font-size: .95rem; }
.lw-schritt { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #0f2a30; font-size: 1rem; }
.lw-schritt span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; background: #e2e8f0; color: #475569; }
.lw-schritt span.aktiv { background: #0f766e; color: #fff; }
.lw-schritt span.fertig { background: #99d5cb; color: #0b4f4a; }
.lw.gross .lw-wahl:not(.klein) .lw-option { padding: 26px 24px; gap: 8px; min-height: 150px; }
.lw.gross .lw-wahl:not(.klein) .lw-option .mud-icon-root { font-size: 2.6rem; }
.lw.gross .lw-wahl:not(.klein) .lw-option b { font-size: 1.5rem; }
.lw.gross .lw-wahl:not(.klein) .lw-option span { font-size: .92rem; }
.lw-wahl:not(.klein) .lw-option:hover { border-color: #0f766e; background: #f2faf8; transform: translateY(-1px); }
.lw-wahl.klein .lw-option:not(.aktiv) { opacity: .6; }
.start-spaeter { all: unset; cursor: pointer; align-self: flex-end; font-size: .8rem; color: #64748b; text-decoration: underline; }

/* ab 3.82: mit den Pfeiltasten markierter Treffer (alle Trefferlisten unter Suchfeldern) */
.tastatur-markiert { background: #e6f4f1 !important; box-shadow: inset 3px 0 0 #0f766e !important; outline: none; }

/* ab 3.83: neue Masken (Inventar, Verleih, Zeiterfassung …) am PC so kompakt wie das Titelarchiv – Handy-Ansichten (.kompakt, .gross, .invm) bleiben groß */
.inv-form:not(.kompakt) { gap: 6px; }
.inv-felder:not(:is(.kompakt, .gross, .invm) *) { grid-template-columns: 130px minmax(0, 1fr); gap: 2px 10px; }
.inv-felder:not(:is(.kompakt, .gross, .invm) *) > label { font-size: .8rem; line-height: 1.2; }
.inv-felder small:not(:is(.kompakt, .gross, .invm) *) { margin-top: 1px; font-size: .7rem; }
:is(.inv-felder > input, .inv-felder > select, .inv-felder > div > input, .inv-zeile input, .inv-zeile select, .aw-feld input, input.gr-feld, select.gr-feld):not(:is(.kompakt, .gross, .invm) *) {
    height: 24px; padding: 1px 7px; font-size: .8rem; border-radius: 4px; line-height: 20px; }
:is(.inv-felder textarea, .inv-notiz, textarea.gr-feld):not(:is(.kompakt, .gross, .invm) *) { padding: 3px 7px; font-size: .8rem; border-radius: 4px; }
.aw-feld input:not(:is(.kompakt, .gross, .invm) *) { padding-right: 24px !important; }
/* ab 3.99.433 (Rene 29.11.2026 00:32 „Anzeigefehler“): mit ✕ (Auswahl leeren) Platz für ✕ und Pfeil – sonst liegt das ✕ über dem Text */
.aw-feld:has(.aw-leeren) input:not(:is(.kompakt, .gross, .invm) *) { padding-right: 46px !important; text-overflow: ellipsis; }
.aw-knopf:not(:is(.kompakt, .gross, .invm) *) { width: 24px; height: 24px; border-radius: 4px; }
.aw-knopf:not(:is(.kompakt, .gross, .invm) *) svg { width: 17px; height: 17px; }
.inv-wahl:not(:is(.kompakt, .gross, .invm) *) button { padding: 2px 10px; font-size: .76rem; border-radius: 4px; }
.inv-zeile:not(:is(.kompakt, .gross, .invm) *) { gap: 4px; }
.inv-zeile input[type=date]:not(:is(.kompakt, .gross, .invm) *) { width: 130px; }
.inv-haken:not(:is(.kompakt, .gross, .invm) *) { font-size: .78rem; }
.inv-form:not(.kompakt) .rahmen { padding-bottom: 4px; }
/* Foto oben etwas größer */
.inv-form:not(.kompakt) .inv-foto, .inv-form:not(.kompakt) .inv-foto-neu { width: 132px; height: 132px; }
/* Listen und Filter der neuen Fenster ebenfalls kompakt */
:is(.inv-filter input, .inv-filter select, .inv-etiketten select, .inv-etiketten input, .inv-export-leiste select):not(:is(.kompakt, .gross, .invm) *) { height: 24px; padding: 1px 7px; font-size: .8rem; border-radius: 4px; }
.inv-liste:not(:is(.kompakt, .gross, .invm) *) { gap: 5px; }
.inv-tabelle:not(:is(.kompakt, .gross, .invm) *) .inv-mini { width: 24px; height: 24px; border-radius: 4px; }
.inv-tabelle:not(:is(.kompakt, .gross, .invm) *) .inv-mini svg { width: 16px; height: 16px; }
.inv-raster { gap: 12px; padding-top: 6px; }
/* Knopfleiste oben bleibt beim Scrollen stehen – mit eigenem Hintergrund, damit nichts darunter durchscheint */
.inv-form-leiste { background: var(--mf-formular, #fff); padding: 4px 0 6px; margin-top: -4px; box-shadow: 0 1px 0 #d5dde7; z-index: 5; }
/* ab 3.83: Feldrechte – in der Maske (FeldR) und direkt in der Rechte-Matrix */
fieldset.feldrecht { display: contents; border: 0; padding: 0; margin: 0; min-width: 0; }
.rm-feld td { background: #fbfcfe; }
.rm-feld .rm-feldname { padding-left: 14px; color: #334155; }
.rm-feld .rm-feldname::before { content: "↳ "; color: #94a3b8; }
.rm-z.rm-fz.lesen { color: #b45309; }
.rm-z.rm-fz.lesen.eigen { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.rm-felder.offen { background: #0f766e; border-color: #0f766e; color: #fff; }
.rm-z.rm-fz.lesen.vorgabe { background: #fdecc8; color: #92400e; }
/* ab 3.83: Erinnerung an den Wunsch – eingeblendetes Popup und Eintrag im Menü links */
.wunsch-popup { position: fixed; z-index: 1600; left: 50%; top: calc(80px * var(--s)); width: min(680px, calc(100vw - 32px)); transform: translateX(-50%);
    background: linear-gradient(120deg, #0f766e, #14897f 55%, #3aa79b); color: #fff; border-radius: 14px; padding: 14px 18px 14px; box-shadow: 0 18px 50px rgba(15, 23, 42, .35), 0 0 0 1px rgba(255,255,255,.08) inset;
    animation: wunsch-popup-rein .55s cubic-bezier(.2, .9, .3, 1.2); }
.wunsch-popup.weg { animation: wunsch-popup-raus .3s ease-in forwards; }
@keyframes wunsch-popup-rein { from { opacity: 0; transform: translate(-50%, -24px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes wunsch-popup-raus { to { opacity: 0; transform: translate(-50%, -16px) scale(.97); } }
.wunsch-popup-kopf { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #e6fffb; margin-bottom: 6px; }
.wunsch-popup .news-label { background: #fff; color: #0f766e; }
.wunsch-popup-zu { all: unset; cursor: pointer; position: absolute; top: 8px; right: 12px; color: #d9f5f1; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.wunsch-popup-zu:hover { background: rgba(255,255,255,.15); }
.wunsch-popup-knoepfe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.wunsch-popup-knoepfe .mf-knopf { background: #fff; color: #0f766e; border-color: #fff; }
.wunsch-popup-knoepfe .mf-knopf.hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mf-wunsch { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; margin: 0 calc(8px * var(--s)) calc(8px * var(--s)); padding: 9px 10px; border-radius: 10px;
    background: linear-gradient(120deg, #0f766e, #14897f 60%, #3aa79b); color: #fff; box-shadow: 0 2px 10px rgba(20, 137, 127, .35); animation: news-rein .45s ease-out; }
.mf-wunsch:hover { filter: brightness(1.08); }
.mf-wunsch > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mf-wunsch b { font-size: .82rem; }
.mf-wunsch small { font-size: .7rem; color: #d9f5f1; line-height: 1.25; white-space: normal; }
.wunsch-licht.klein { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; animation: wunsch-leuchten 2.2s ease-in-out infinite; }
.wunsch-licht.klein .mud-icon-root { color: #fff; animation: wunsch-wippen 2.2s ease-in-out infinite; }
/* ab 3.83: Bewertung mit Gesichtern statt Noten */
.wunsch-skala { grid-column: 2 / 7; display: flex; justify-content: space-between; font-size: .7rem; }
.wunsch-skala b:first-child { color: #15803d; } .wunsch-skala b:last-child { color: #dc2626; }
.wunsch-note { font-size: 1.05rem; line-height: 1; filter: grayscale(1); opacity: .5; transition: transform .12s, opacity .12s, filter .12s; }
.wunsch-note:hover { filter: none; opacity: 1; transform: scale(1.15); }
.wunsch-note.an { filter: none; opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.wunsch-note.n1.an { background: #dcfce7; color: #16a34a; } .wunsch-note.n2.an { background: #ecfccb; color: #65a30d; } .wunsch-note.n3.an { background: #fef9c3; color: #ca8a04; }
.wunsch-note.n4.an { background: #ffedd5; color: #ea580c; } .wunsch-note.n5.an { background: #fee2e2; color: #dc2626; }
/* ab 3.83: Menüfuß als Dreizeiler – „Lizenziert für:“, Lizenznehmer, Copyright: gleiche Farbe, Größe und Abstände */
.mf-menu-unten .mf-lizenziert, .mf-menu-unten .mf-lizenznehmer, .mf-menu-unten .mf-copyright { font-size: .66rem; color: #7f90a6; opacity: .8; line-height: 1.5; font-weight: 400; }
.mf-menu-unten .mf-lizenziert { padding: calc(8px * var(--s)) calc(14px * var(--s)) 0; }
.mf-menu-unten .mf-lizenznehmer { margin-top: 0; opacity: 1; }
.mf-menu-unten .mf-lizenziert + .mf-copyright, .mf-menu-unten .mf-lizenziert ~ .mf-copyright { margin-top: 0; padding-top: 0; }
.mf-menu-unten .mf-copyright { display: block; padding: 0 calc(14px * var(--s)) calc(6px * var(--s)); }
/* ab 3.83: Zeiterfassung – Korrektur-Stift und Gegenüberstellung */
td.ze-dauer { white-space: nowrap; }
.ze-stift { all: unset; cursor: pointer; color: #dc2626; font-size: .85rem; margin-right: 5px; padding: 0 3px; border-radius: 4px; }
.ze-stift:hover { background: #fee2e2; }
.ze-vergleich table td, .ze-vergleich table th { white-space: nowrap; }
.ze-vergleich tr.anders td { background: #fef3c7; }
.ze-vergleich tr.anders td:first-child { box-shadow: inset 3px 0 0 #f59e0b; font-weight: 600; }
.ze-verlauf { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.ze-verlauf-eintrag { display: flex; flex-direction: column; gap: 1px; font-size: .8rem; border-left: 3px solid #cbd5e1; padding-left: 8px; }
.ze-verlauf-eintrag span { color: #64748b; }
.ze-diff { color: #b45309 !important; font-weight: 600; }
.ze-grund-hinweis { grid-column: 1 / -1; font-size: .8rem; color: #64748b; }
.ze-vergleich { grid-column: 1 / -1; }
/* ab 3.83: kleines Gerätefoto im Verleih */
.vl-foto { display: inline-block; vertical-align: middle; margin-right: 6px; }
.vl-foto img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; border: 1px solid #e2e8f0; display: block; }
.vl-foto:hover img { transform: scale(1.06); }
/* ab 3.83: Menü – Verleih-Außenstand, neue Support-Antworten */
.mf-menu-zahl.vl-zahl { background: #0f766e; }
.mf-menu-zahl.vl-zahl.ueber { background: #c62828; box-shadow: 0 0 0 2px rgba(198,40,40,.35); }
.mf-menu-zahl.sp-zahl-menue { background: #2563eb; }

/* ab 3.83: Support (Tickets mit dem Lizenzportal) – wie ein Chat */
.sp { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 12px; height: 100%; min-height: 0; padding: 10px; box-sizing: border-box; }
.sp-liste { display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; }
.sp-abgleich { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #64748b; }
.sp-warn { color: #b45309; }
.sp-neu-laden { all: unset; cursor: pointer; margin-left: auto; color: #64748b; display: inline-flex; padding: 2px; border-radius: 4px; }
.sp-neu-laden:hover { background: #e2e8f0; }
.sp-ticket { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; }
.sp-ticket:hover { border-color: #94a3b8; }
.sp-ticket.aktiv { border-color: #0f766e; box-shadow: inset 3px 0 0 #0f766e; }
.sp-ticket.neu b { color: #1d4ed8; }
.sp-ticket-kopf { display: flex; justify-content: space-between; gap: 6px; font-size: .84rem; }
.sp-ticket-info { font-size: .7rem; color: #64748b; display: flex; gap: 6px; align-items: center; }
.sp-ticket small { font-size: .74rem; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-zahl { background: #2563eb; color: #fff; border-radius: 9px; font-size: .66rem; font-weight: 700; padding: 0 6px; line-height: 16px; height: 16px; }
.sp-st { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: #dbeafe; color: #1d4ed8; }
.sp-st.arbeit { background: #fef3c7; color: #a16207; } .sp-st.wartet { background: #ede9fe; color: #6d28d9; } .sp-st.erledigt { background: #dcfce7; color: #15803d; }
.sp-leer { font-size: .8rem; color: #64748b; padding: 8px 2px; }
.sp-haupt { display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.sp-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.sp-kopf-info { font-size: .74rem; color: #64748b; margin-left: auto; }
.sp-formular { padding: 10px 12px; }
.sp-chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: linear-gradient(#f8fafc, #f1f5f9); min-height: 120px; }
.sp-tag { text-align: center; } .sp-tag span { font-size: .7rem; color: #64748b; background: #e2e8f0; border-radius: 999px; padding: 1px 10px; }
.sp-nachricht { display: flex; } .sp-nachricht.ich { justify-content: flex-end; }
.sp-blase { max-width: min(75%, 720px); background: #fff; border: 1px solid #e2e8f0; border-radius: 12px 12px 12px 4px; padding: 7px 11px; }
.sp-nachricht.ich .sp-blase { background: #e6f4f1; border-color: #b9ded6; border-radius: 12px 12px 4px 12px; }
.sp-autor { font-size: .7rem; font-weight: 700; color: #0f766e; margin-bottom: 2px; } .sp-autor span { color: #64748b; font-weight: 400; margin-left: 4px; }
.sp-nachricht.support .sp-autor { color: #1d4ed8; }
.sp-wartet { color: #b45309 !important; }
.sp-text { font-size: .86rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-bild { display: block; margin-top: 6px; } .sp-bild img { max-width: 100%; max-height: 320px; border-radius: 6px; border: 1px solid #e2e8f0; display: block; }
.sp-datei { display: inline-flex; gap: 6px; align-items: baseline; margin-top: 6px; padding: 3px 9px; background: #f1f5f9; border-radius: 6px; font-size: .8rem; }
.sp-hinweis { margin: auto; display: flex; gap: 10px; align-items: center; color: #64748b; font-size: .86rem; padding: 30px; max-width: 520px; }
.sp-eingabe { border-top: 1px solid #e2e8f0; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.sp-eingabe textarea { font: inherit; font-size: .86rem; width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 9px; resize: vertical; }
.sp-eingabe-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-datei-wahl { cursor: pointer; }
.sp-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-anhang { display: inline-flex; align-items: center; gap: 6px; background: #f1f5f9; border-radius: 6px; padding: 3px 6px; font-size: .76rem; }
.sp-anhang img { width: 42px; height: 30px; object-fit: cover; border-radius: 3px; }
.sp-anhang button { all: unset; cursor: pointer; color: #64748b; padding: 0 3px; }
@media (max-width: 800px) { .sp { grid-template-columns: 1fr; } }
/* ab 3.83: Etikett gestalten */
.et-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.et-zeilen { margin-top: 8px; } .et-zeilen td { vertical-align: middle; } .et-zeilen input.gr-feld + input, .et-zeilen select + input { margin-top: 3px; }
.et-vorschau { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; }
.et-vorschau img { width: 100%; max-width: 420px; background: #fff; border: 1px dashed #94a3b8; border-radius: 6px; box-shadow: 0 4px 14px rgba(15,23,42,.12); image-rendering: auto; }
@media (max-width: 900px) { .et-raster { grid-template-columns: 1fr; } }
.protokoll-position { font-weight: 600; color: #334155; }
/* ab 3.84: Reiter „Dokumente“ in den Masken – Dokumente in Ordnern (Ablage) bzw. nach Art, zuklappbar */
.dms-reiter-fuss { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex: none; padding: 2px 6px 4px 8px; }
.dms-reiter-fuss .dms-reiter-angaben { margin: 0; align-self: center; }
.dms-reiter-gruppierung { display: inline-flex; border: 1px solid #d5dde8; border-radius: 6px; overflow: hidden; }
.dms-reiter-gruppierung button { font-size: .64rem; padding: 1px 7px; color: #475569; background: #fff; border-right: 1px solid #d5dde8; }
.dms-reiter-gruppierung button:last-child { border-right: 0; }
.dms-reiter-gruppierung button.aktiv { background: var(--mud-palette-primary, #0f766e); color: #fff; }
.dms-gruppe { display: flex; align-items: center; gap: 5px; padding: 4px 8px; margin-top: 2px; font-size: .74rem; font-weight: 600; color: #1f2d3d;
  background: #eef3f8; border-bottom: 1px solid #dde5ee; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 1; }
.dms-gruppe:hover { background: #e3ebf4; }
.dms-gruppe .mud-icon-root { color: #c58b14; font-size: 1.05rem; }
.dms-gruppe-pfeil { width: 10px; color: #64748b; font-size: .7rem; }
.dms-gruppe-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dms-gruppe-zahl { font-size: .64rem; font-weight: 600; color: #475569; background: #fff; border: 1px solid #d5dde8; border-radius: 9px; padding: 0 6px; }
.dms-gruppe-inhalt .dms-karte { padding-left: 14px; }
/* ab 3.84: Feldinfo (Administration → Datenbank, Strg+Klick auf ein Feld) */
.fi { font-size: .78rem; color: #1f2d3d; display: flex; flex-direction: column; gap: 4px; }
.fi-kopf { display: flex; align-items: center; gap: 8px; }
.fi-name { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.fi-ampel { font-size: .68rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; color: #fff; background: #94a3b8; }
.fi-ampel.rot { background: #dc2626; } .fi-ampel.gelb { background: #d97706; } .fi-ampel.gruen { background: #16a34a; }
.fi-erklaerung { color: #475569; font-size: .74rem; }
.fi-hinweis { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 6px; background: #f1f5f9; border-left: 4px solid #94a3b8; }
.fi-hinweis.rot { background: #fef2f2; border-color: #dc2626; } .fi-hinweis.gelb { background: #fffbeb; border-color: #d97706; } .fi-hinweis.gruen { background: #f0fdf4; border-color: #16a34a; }
.fi-abschnitt { margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid #e2e8f0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #334155; display: flex; align-items: center; gap: 10px; }
.fi-alles { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .7rem; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.fi-leer { color: #64748b; font-size: .74rem; padding: 2px 0; }
.fi-tab { border-collapse: collapse; width: 100%; font-size: .74rem; }
.fi-tab th, .fi-tab td { text-align: left; padding: 2px 6px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.fi-tab thead th { color: #64748b; font-weight: 600; }
.fi-tab td.rechts { text-align: right; }
.fi-tab td.typ { font-family: ui-monospace, Consolas, monospace; font-size: .7rem; color: #475569; }
.fi-gruppe { display: flex; align-items: center; gap: 6px; padding: 3px 4px; cursor: pointer; border-radius: 4px; }
.fi-gruppe:hover { background: #f1f5f9; }
.fi-arten { margin-left: auto; color: #64748b; font-size: .7rem; }
.fi-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; vertical-align: middle; }
.fi-punkt.rot { background: #dc2626; } .fi-punkt.gelb { background: #d97706; } .fi-punkt.gruen { background: #16a34a; }
.fi-stellen { margin: 0 0 4px 18px; display: flex; flex-direction: column; gap: 1px; }
.fi-stelle { display: grid; grid-template-columns: 10px minmax(160px, 30%) 110px minmax(0, 1fr); gap: 6px; align-items: baseline; font-size: .7rem; }
.fi-datei { color: #0f766e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.fi-art { color: #64748b; }
.fi-stelle code { font-size: .68rem; color: #334155; background: #f8fafc; padding: 0 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-fuss { margin-top: 4px; font-size: .68rem; color: #94a3b8; }
.fi-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fi-werte { display: flex; flex-wrap: wrap; gap: 4px; }
.fi-wert { background: #eef3f8; border: 1px solid #dde5ee; border-radius: 10px; padding: 0 8px; font-size: .72rem; }
.fi-wert small { margin-left: 5px; color: #64748b; }
.fi-blaettern { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fi-nr { width: 80px; height: 24px; font-size: .78rem; text-align: right; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; }
.fi-datensatz th { width: 34%; font-family: ui-monospace, Consolas, monospace; font-weight: 400; color: #475569; font-size: .7rem; }
.fi-datensatz td { word-break: break-word; white-space: pre-wrap; }
.fi-datensatz tr.fi-aktiv { background: #fef9c3; }
.fi-datensatz tr.fi-aktiv th { font-weight: 700; color: #1f2d3d; }
.fi-fenster { max-width: 1000px; width: 94vw; max-height: 88vh; }
.fi-popup-inhalt { overflow-y: auto; padding: 8px 14px 14px; }
.db-tabelle.db-mit-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.db-info { position: sticky; top: 0; border: 1px solid #dde5ee; border-radius: 8px; padding: 8px 10px; background: #fff; max-height: calc(100vh - 160px); overflow-y: auto; }
.db-info-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.db-felder tr.fi-gewaehlt { background: #fef9c3; }
/* ab 3.84: Produktion – Sessions & Protokolle, Übergabe an Label & Verlag */
.ses-raster { grid-template-columns: minmax(300px, .75fr) minmax(0, 2fr); }
.ses-status { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: #e0ecff; color: #1d4ed8; white-space: nowrap; }
.inv-form-leiste .ses-status { margin-left: auto; font-size: .76rem; padding: 2px 10px; }
.ses-status.freigegeben { background: #fef3c7; color: #92400e; }
.ses-status.zurueck { background: #fee2e2; color: #b91c1c; }
.ses-status.uebernommen { background: #dcfce7; color: #166534; }
.ses-hinweis { display: flex; gap: 6px; align-items: center; padding: 6px 10px; margin: 6px 0; border-radius: 6px; background: #fffbeb; border: 1px solid #fde68a; font-size: .78rem; color: #78350f; }
.ses-hinweis.zurueck { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ses-tab { width: 100%; font-size: .78rem; }
.ses-tab td, .ses-tab th { padding: 2px 4px !important; }
.ses-tab .gr-feld { width: 100%; height: 24px; font-size: .78rem; }
.ses-tab tr.ses-uebernommen td { background: #f0fdf4; }
.ses-takes-zeile > td { background: #f8fafc; }
.ses-takes { width: 100%; font-size: .74rem; margin-bottom: 4px; }
.ses-takes th { text-align: left; color: #64748b; font-weight: 600; }
.ses-takes tr.gewaehlt-take td { background: #fef9c3; }
.ses-sterne button { color: #cbd5e1; font-size: 1rem; line-height: 1; padding: 0 1px; }
.ses-sterne button.an { color: #f59e0b; }
.ses-titelnotiz { margin-left: 8px; width: calc(100% - 120px); display: inline-block; }
.ses-adr { color: #16a34a; margin-left: 3px; font-weight: 700; }
.ses-verlauf { font-size: .74rem; color: #475569; display: flex; flex-direction: column; gap: 2px; }
.ses-kopf { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .78rem; padding: 6px 0 8px; border-bottom: 1px solid #e2e8f0; }
.ses-kopf small { color: #64748b; margin-right: 4px; }
.ub-raster { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 2fr); gap: 16px; padding-top: 10px; min-height: 0; flex: 1; }
@media (max-width: 1100px) { .ub-raster { grid-template-columns: 1fr; } }
.ub-zahl { background: #dc2626; color: #fff; border-radius: 9px; padding: 0 6px; font-size: .68rem; margin-left: 4px; }
.ub-spalten { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 14px; padding-top: 8px; }
.ub-titel-kopf { font-size: .74rem; font-weight: 700; color: #334155; margin: 6px 0 4px; }
.ub-karte { border: 1px solid #d5dde8; border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; background: #fff; cursor: grab; font-size: .78rem; }
.ub-karte:hover { border-color: #0f766e; box-shadow: 0 2px 8px rgba(15,118,110,.12); }
.ub-karte.zieht { opacity: .5; }
.ub-karte.fertig { cursor: default; background: #f0fdf4; border-color: #bbf7d0; }
.ub-karte.fertig .mud-icon-root { color: #16a34a; }
.ub-karte-kopf { display: flex; align-items: center; gap: 6px; }
.ub-karte-kopf .mud-icon-root { color: #94a3b8; }
.ub-karte-info { color: #64748b; font-size: .72rem; margin: 2px 0 0 26px; }
.ub-karte-fuss { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 26px; font-size: .72rem; color: #475569; }
.ub-ziel { border: 2px dashed #94a3b8; border-radius: 10px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #334155; background: #f8fafc; }
.ub-ziel small { color: #64748b; font-size: .7rem; }
.ub-ziel.aktiv { border-color: #0f766e; background: #ecfdf5; }
.ub-treffer { border: 1px dashed #cbd5e1; border-radius: 6px; padding: 4px 8px; margin-top: 4px; font-size: .76rem; }
.ub-treffer small { color: #64748b; }
.ub-treffer.aktiv { border-color: #0f766e; background: #ecfdf5; }
.ub-spalten .inv-suche { width: 100%; height: 26px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; }
/* ab 3.84: Dateiformat im DMS (Spalte, Plakette in der Vorschau, Bereich Datei) */
.dms-format { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .03em; padding: 0 5px; border-radius: 4px; line-height: 1.5; background: #e2e8f0; color: #334155; vertical-align: middle; }
.dms-format.pdf { background: #fee2e2; color: #b91c1c; }
.dms-format.bild { background: #dbeafe; color: #1d4ed8; }
.dms-format.office { background: #dcfce7; color: #15803d; }
.dms-format.mail { background: #fef3c7; color: #92400e; }
.dms-format.text { background: #f1f5f9; color: #475569; }
.dms-leiste .dms-format { margin-left: 4px; }
/* ab 3.84: Seitenleisten in Korrespondenz/Verträgen (Empfänger, Bausteine …) nicht mehr reinweiß – leicht getönt wie die übrigen Rahmen */
.dok-leiste { background: #f4f7fb; }
.dok-leiste-kopf { background: #e8eef6; border-bottom-color: #d6dde6; }
.dok-leiste-inhalt input, .dok-leiste-inhalt select, .dok-leiste-inhalt textarea { background: #fff; }
/* ab 3.84: Anschrift im Brief von Hand ändern */
.dok-anschrift-edit { width: 100%; font: inherit; font-size: inherit; line-height: 1.35; border: 1px dashed #0f766e; background: #f0fdfa; padding: 2px 4px; resize: vertical; }
.dok-manuell { font-size: .62rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 0 5px; margin-left: 6px; }
/* ab 3.84: Scan-Code (QR mit Nummer) am rechten Rand – Platzhalter im Editor */
.dok-scancode { position: absolute; top: 8mm; right: 5mm; width: 11mm; display: flex; flex-direction: column; align-items: center; gap: 1.5mm; pointer-events: auto; z-index: 2; }
.dok-scancode-qr { width: 11mm; height: 11mm; background:
  linear-gradient(90deg, #1f2d3d 33%, transparent 33% 66%, #1f2d3d 66%) 0 0 / 3.6mm 3.6mm,
  repeating-conic-gradient(#334155 0 25%, #fff 0 50%) 0 0 / 1.6mm 1.6mm; border: 1px solid #94a3b8; opacity: .75; }
.dok-scancode-nr { writing-mode: vertical-rl; font-size: 6pt; color: #5a6473; white-space: nowrap; }
/* ab 3.84 (Umbau): Session – Team neben den Angaben, Titel links als Liste, rechts der gewählte Titel mit Reitern */
.ses-kopf-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .ses-kopf-raster { grid-template-columns: 1fr; } }
.ses-unterkopf { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #334155; margin-bottom: 3px; }
.ses-unterkopf small { text-transform: none; letter-spacing: 0; font-weight: 400; color: #64748b; margin-left: 6px; }
.ses-mini { width: 100%; border-collapse: collapse; font-size: .78rem; margin-bottom: 4px; }
.ses-mini th { text-align: left; color: #64748b; font-weight: 600; font-size: .72rem; padding: 1px 4px; border-bottom: 1px solid #e2e8f0; }
.ses-mini td { padding: 1px 3px; }
.ses-mini .gr-feld { width: 100%; height: 24px; font-size: .78rem; }
.ses-namefeld { position: relative; }
.ses-namefeld .gr-feld { padding-right: 34px; }
.ses-namefeld .ses-adr, .ses-namefeld .ses-neu { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.ses-neu { font-size: .6rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 0 4px; }
.ses-titel-raster { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .ses-titel-raster { grid-template-columns: 1fr; } }
.ses-titelliste { display: flex; flex-direction: column; gap: 3px; }
.ses-titelkarte { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #dde5ee; border-radius: 6px; background: #fff; cursor: pointer; font-size: .78rem; }
.ses-titelkarte:hover { border-color: #0f766e; }
.ses-titelkarte.aktiv { border-color: #0f766e; background: #ecfdf5; box-shadow: inset 3px 0 0 #0f766e; }
.ses-nr { font-weight: 700; color: #64748b; width: 16px; text-align: right; }
.ses-tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ses-titelkarte small { color: #64748b; font-size: .68rem; white-space: nowrap; }
.ses-ok { color: #16a34a; font-weight: 700; }
.ses-schieben { display: none; gap: 1px; }
.ses-titelkarte:hover .ses-schieben { display: inline-flex; }
.ses-schieben button { font-size: .7rem; padding: 0 3px; color: #475569; border-radius: 3px; }
.ses-schieben button:hover:not(:disabled) { background: #e2e8f0; }
.ses-titeldetail { border: 1px solid #dde5ee; border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0; }
.ses-werk { display: grid; grid-template-columns: minmax(160px, 2.4fr) 1fr .6fr .6fr .6fr 1.2fr 26px; gap: 6px; align-items: end; }
.ses-werk label { display: flex; flex-direction: column; font-size: .68rem; color: #64748b; gap: 1px; }
.ses-werk .gr-feld { height: 24px; font-size: .78rem; width: 100%; }
.ses-titeldetail .ses-titelnotiz { width: 100%; margin: 5px 0 6px; height: 24px; font-size: .78rem; display: block; }
.ses-reiter { display: flex; gap: 2px; border-bottom: 1px solid #dde5ee; margin-bottom: 5px; }
.ses-reiter button { font-size: .76rem; padding: 3px 10px; border-radius: 6px 6px 0 0; color: #475569; }
.ses-reiter button.aktiv { background: #0f766e; color: #fff; }
.ses-reiter button span { font-size: .64rem; background: rgba(100,116,139,.15); border-radius: 8px; padding: 0 5px; margin-left: 3px; }
.ses-reiter button.aktiv span { background: rgba(255,255,255,.25); }
.ses-zeilenknoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ses-kopieren { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.ses-kopieren select { height: 24px; font-size: .74rem; max-width: 200px; }

/* ab 3.85: E-Mail – Konten als Liste, Zuordnung je Bereich und je Benutzer */
.mail-liste { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 4px 0 8px; }
.mail-liste th { text-align: left; font-weight: 600; color: var(--mf-text-2, #556); border-bottom: 1px solid var(--mf-linie); padding: 3px 6px; font-size: .75rem; }
.mail-liste td { border-bottom: 1px solid var(--mf-linie); padding: 3px 6px; vertical-align: middle; }
.mail-liste tbody tr:not(.mail-detail):not(.mail-kopieren) { cursor: pointer; }
.mail-liste:not(.mail-zuordnung) tbody tr:not(.mail-detail):not(.mail-kopieren):hover { background: #f3f8f8; }
.mail-liste tr.offen { background: #e9f5f3; }
.mail-liste td .mud-icon-root { vertical-align: middle; }
.mail-liste-knoepfe { white-space: nowrap; text-align: right; width: 1%; }
.mail-liste-knoepfe .mf-knopf { padding: 1px 5px; min-height: 0; }
.mail-detail > td { background: #f7fafc; padding: 4px 6px 6px; }
.mail-detail .mail-konto { margin: 0; }
.mail-kopieren > td { background: #fffbea; }
.mail-kopieren select, .mail-zuordnung select { font: inherit; font-size: .8rem; padding: 2px 6px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 3px; background: #fff; max-width: 100%; }
.mail-zuordnung td:first-child { width: 45%; }
.mail-zuordnung tbody tr { cursor: default !important; }
.mail-zuordnung select { width: 100%; }
.mail-zuordnung .text-zweitrangig { font-size: .72rem; }
.mail-marke { display: inline-block; background: #e3efed; color: #0f5e57; border-radius: 9px; padding: 0 7px; margin: 1px 3px 1px 0; font-size: .7rem; white-space: nowrap; }
.mail-liste td:first-child { white-space: nowrap; }
.mail-liste td:first-child .mud-icon-root { margin-right: 3px; }

/* ab 3.85: Info-Dialog – Farben der Lizenzmodelle wie im Lizenzportal */
.programm-info { --kauf: #7c3aed; --miete: #0f766e; --cloud: #0284c7; --dev: #c2410c; --test: #ca8a04; --free: #0891b2; }
.pi-band { --m: #0f766e; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--m) 70%, #fff), var(--m)); box-shadow: 0 4px 14px color-mix(in srgb, var(--m) 35%, transparent); }
.pi-band.kauf { --m: var(--kauf); } .pi-band.miete { --m: var(--miete); } .pi-band.cloud { --m: var(--cloud); } .pi-band.dev { --m: var(--dev); }
.pi-band.test { --m: var(--test); } .pi-band.free { --m: var(--free); } .pi-band.ohne { --m: #475569; }
.pi-band svg, .pi-band img { background: #fff; border-radius: 10px; padding: 3px; }
.pi-band-text { flex: 1; min-width: 0; }
.pi-band-text b { display: block; font-size: 1.35rem; letter-spacing: .01em; }
.pi-band-text span { font-size: .8rem; opacity: .9; }
.pi-band-rechts { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pi-version { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.pi-band-rechts small { opacity: .9; font-size: .75rem; margin-top: 3px; }
.pi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef2f6; color: #334155; }
.pi-chip.modell { color: #fff; background: var(--m, #475569); }
.pi-chip.modell.kauf { --m: var(--kauf); } .pi-chip.modell.miete { --m: var(--miete); } .pi-chip.modell.dev { --m: var(--dev); } .pi-chip.modell.test { --m: var(--test); } .pi-chip.modell.free { --m: var(--free); } .pi-chip.modell.cloud { --m: var(--cloud); }
.pi-chip.paket { background: color-mix(in srgb, var(--f) 14%, #fff); color: color-mix(in srgb, var(--f) 80%, #000); border: 1px solid color-mix(in srgb, var(--f) 40%, #fff); }
.pi-chip.status.ok { background: #dcfce7; color: #166534; } .pi-chip.status.fehler { background: #fee2e2; color: #991b1b; }
.pi-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pi-kachel { border: 1px solid #e3e8ef; border-left: 4px solid #0f766e; border-radius: 8px; padding: 7px 10px; display: flex; flex-direction: column; background: #fff; }
.pi-kachel small { font-size: .7rem; color: var(--mf-text-2); text-transform: uppercase; letter-spacing: .04em; }
.pi-kachel b { font-size: 1.35rem; line-height: 1.2; }
.pi-kachel b i { font-style: normal; font-size: .85rem; color: var(--mf-text-2); font-weight: 600; }
.pi-kachel span { font-size: .72rem; color: var(--mf-text-2); }
.pi-kachel.warn { border-left-color: var(--test); }
.pi-abschnitt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mf-text-2); margin-bottom: -6px; }
.pi-module { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.pi-modul { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 7px; border: 1px dashed #cbd5e1; color: #94a3b8; font-size: .8rem; background: #f8fafc; }
.pi-modul.an { border: 1px solid color-mix(in srgb, var(--f) 35%, #fff); background: color-mix(in srgb, var(--f) 9%, #fff); color: #1f2937; }
.pi-modul-punkt { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: #cbd5e1; }
.pi-modul.an .pi-modul-punkt { background: var(--f); }
.pi-modul-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pi-nachbestellen { all: unset; cursor: pointer; font-size: .72rem; font-weight: 700; color: #0f766e; padding: 1px 7px; border-radius: 999px; border: 1px solid #99d6cf; background: #fff; white-space: nowrap; }
.pi-nachbestellen:hover { background: #0f766e; color: #fff; }
.pi-meldung { font-size: .8rem; color: #991b1b; } .pi-meldung.ok { color: #166534; }
.pi-hinweis { font-size: .72rem; color: var(--mf-text-2); }
.pi-firma { display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: .78rem; color: var(--mf-text-2); }
.pi-firma p { margin: 0 0 6px; }
@media (max-width: 600px) { .pi-firma { grid-template-columns: 1fr; } .pi-version { font-size: 1.3rem; } }
.pi-module { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pi .pi-tabelle th { width: 150px; }

/* ab 3.85: interne Tickets (Developer) */
.sp-st.pruefen { background: #ffedd5; color: #c2410c; }
.sp-intern-marke { flex: none; background: #c2410c; color: #fff; border-radius: 4px; padding: 0 5px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-right: 5px; align-self: center; }
.sp-ticket-kopf b { flex: 1; min-width: 0; }
.sp-intern-schalter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #c2410c; cursor: pointer; }
.sp-filter { display: flex; gap: 2px; background: #f1f5f9; border-radius: 7px; padding: 2px; margin: 4px 0; }
.sp-filter button { all: unset; flex: 1; text-align: center; cursor: pointer; font-size: .76rem; font-weight: 600; color: #64748b; padding: 3px 6px; border-radius: 5px; }
.sp-filter button.aktiv { background: #fff; color: #0f766e; box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* ab 3.86: Info-Kopf klassisch – neutral statt Modellfarbe (Rene) */
.pi-band, .pi-band.kauf, .pi-band.miete, .pi-band.cloud, .pi-band.dev, .pi-band.test, .pi-band.free, .pi-band.ohne {
  background: #f6f8fa; color: #1f2937; border: 1px solid #e3e8ef; box-shadow: none; }
.pi-band svg, .pi-band img { background: transparent; padding: 0; }
.pi-band-text span, .pi-band-rechts small { opacity: 1; color: var(--mf-text-2, #64748b); }
.pi-version { font-size: 1.35rem; font-weight: 700; color: #1f2937; }

/* ab 3.86: Typenschild am Handy */
.invm-typ { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; max-width: 900px; margin: 0 auto; }
.invm-typ > p { margin: 0; color: #334155; }
.invm-gross.aus { opacity: .5; pointer-events: none; }
.invm-typ-laeuft { display: flex; align-items: center; gap: 8px; color: #0f766e; }
.invm-typ-werte { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.invm-typ-werte label { display: flex; flex-direction: column; font-size: .76rem; color: #64748b; gap: 2px; }
.invm-typ-werte input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 10px; color: #0f172a; }
.invm-typ-werte small { color: #64748b; }
.invm-typ-treffer { color: #0f766e; font-size: .85rem; }
.invm-typ-text summary { cursor: pointer; color: #64748b; font-size: .85rem; }
.invm-typ-text pre { white-space: pre-wrap; font-size: .75rem; background: #fff; border-radius: 10px; padding: 8px; max-height: 220px; overflow: auto; }

/* ab 3.86: Logs an den Support */
.logs-portal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logs-portal label { display: inline-flex; align-items: center; gap: 6px; }
.log-fehler-text { color: #c62828; }

/* ab 3.87: gemeinsamer Kalender – Erstellen-Menü, ganztägige Zeile, Termine/Fristen/Aufgaben */
.tp-erstellen-wahl { position: relative; }
.tp-erstellen-menue { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 4px; display: flex; flex-direction: column; min-width: 180px; }
.tp-erstellen-menue button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; font-size: .85rem; }
.tp-erstellen-menue button:hover { background: #f1f5f9; }
.tp-ganztag-titel { font-size: .62rem; color: #6b7280; text-align: right; padding: 3px 6px 3px 0; border-top: 1px solid #f1f3f4; }
.tp-ganztag { border-left: 1px solid #f1f3f4; border-top: 1px solid #f1f3f4; padding: 2px 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-chip { background: var(--f); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tp-chip.frist { background: color-mix(in srgb, var(--f) 14%, #fff); color: color-mix(in srgb, var(--f) 85%, #000); border-left: 3px solid var(--f); }
.tp-chip.aufgabe { background: #fff; color: color-mix(in srgb, var(--f) 85%, #000); border: 1px solid var(--f); }
.tp-ev.kollege { background: color-mix(in srgb, var(--f) 22%, #fff); color: #1f2937; border-left: 3px solid var(--f); }
.tp-monat-ev.frist i, .tp-monat-ev.aufgabe i { border-radius: 2px; }
.tr-farben { display: flex; gap: 6px; }
.tr-farbe { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--f); box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; padding: 0; }
.tr-farbe.an { box-shadow: 0 0 0 2px var(--f); }
.bu-check { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; margin-left: 8px; }
.bu-voll { flex: 1; }
.bu-zeile.oben { align-items: flex-start; }

/* ab 3.87: Hilfe – Schaubild „Aufbau von Inntec ONE“ */
.ab { display: flex; flex-direction: column; gap: 8px; margin: .6em 0 1.2em; font-size: .78rem; }
.ab-ebene { border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; background: #f8fafc; }
.ab-titel { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin-bottom: 6px; }
.ab-ueber { border-color: #0f766e; background: #f0fdfa; }
.ab-basis { border-color: #64748b; background: #f1f5f9; }
.ab-bloecke { display: flex; flex-wrap: wrap; gap: 5px; }
.ab-bloecke.senkrecht { flex-direction: column; }
.ab-bloecke span { display: block; background: #fff; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 4px 8px; color: #64748b; }
.ab-bloecke a { display: block; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 8px; color: #17243a; text-decoration: none; }
.ab-bloecke a:hover { border-color: #0f766e; background: #ecfdf5; }
.ab-pfeile { text-align: center; color: #0f766e; font-size: .7rem; letter-spacing: .1em; }
.ab-module { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-modul { border-color: #3b82f6; background: #eff6ff; }
.ab-fluss { border: 1px dashed #ea580c; border-radius: 10px; padding: 6px 10px; background: #fff7ed; }
.ab-fluss ul { margin: 4px 0 0; padding-left: 18px; }
.ab-fluss span { font-weight: 600; color: #9a3412; }
@media (max-width: 700px) { .ab-module { grid-template-columns: 1fr; } }

/* ab 3.87: Handy/Tablet – die Einzelansicht (Handy, App, „Am Handy öffnen“) ist ein Container. Damit greifen dort dieselben Regeln für
   schmale Fenster wie in den Fenstern am PC (Rahmen untereinander usw.). Am PC im Hauptfenster ändert sich nichts. */
.einzelfenster { container: einzel / inline-size; }
@container einzel (max-width: 800px) {
  .rahmen-stapel { grid-column: span 12; }
  .rahmen-raster { gap: 8px; }
  .formular-reiter .mud-tabs-tabbar-wrapper { overflow-x: auto; }
}
@container einzel (max-width: 600px) {
  /* Handy: Beschriftung über dem Feld, Felder in voller Breite */
  .formular-inhalt .feld { grid-template-columns: minmax(0, 1fr) !important; row-gap: 2px !important; }
  .formular-inhalt .feld > label { white-space: normal; }
  .formular-inhalt .feld:has(> .feld-eingabe input[type=checkbox]:only-child) { grid-template-columns: minmax(0, 1fr) auto !important; }
  .formular-leiste { flex-wrap: wrap; }
}

/* ab 3.88: Spaltenbreite am Rand der Überschrift ziehen (alle Tabellen) */
th.sp-rand { cursor: col-resize !important; box-shadow: inset -2px 0 0 #0f7a6c; }
body.sp-zieht, body.sp-zieht * { cursor: col-resize !important; user-select: none !important; }
table.sp-fest { table-layout: fixed; }
table.sp-fest th, table.sp-fest td { overflow: hidden; text-overflow: ellipsis; }

/* ab 3.88: Handy – Kalender und DMS-Ablage einspaltig (nur Einzelansicht, schmal) */
.tp-seite-knopf { display: none; }
@container einzel (max-width: 760px) {
  .tp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tp-seite { border-right: 0; border-bottom: 1px solid #e5e7eb; padding: 8px 10px; overflow: visible; }
  .tp:not(.seite-offen) .tp-seite > :not(.tp-erstellen-wahl) { display: none; }
  .tp-seite-knopf { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dadce0; background: #fff; border-radius: 8px; width: 34px; height: 32px; cursor: pointer; }
  .tp-leiste { flex-wrap: wrap; row-gap: 6px; }
  .tp-titel { font-size: 1rem; }
  .einzelfenster .dms-ablage, .einzelfenster .dms-ablage.mit-vorschau, .einzelfenster .dms-ablage.mit-angaben, .einzelfenster .dms-ablage.mit-vorschau.mit-angaben {
    grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: auto; overflow: visible; }
  .einzelfenster .dms-ablage-baum { min-height: 190px; max-height: 40vh; }
  .einzelfenster .dms-ablage-liste { min-height: 40vh; }
  /* ab 3.99.165 (Rene 05.11.2026 21:08 „am Handy sehe ich das DMS nicht vollständig“): Fläche nicht auf Fensterhöhe begrenzen – alles untereinander,
     das Fenster scrollt; Vorschau und Angaben bekommen Platz, sobald ein Dokument gewählt ist */
  .einzelfenster .dms-fenster, .einzelfenster .dms-zone.flaeche { height: auto !important; flex: none !important; min-height: 0; }
  .einzelfenster .dms-ablage { height: auto !important; }
  .einzelfenster .dms-ablage > * { grid-column: auto !important; grid-row: auto !important; }
  .einzelfenster .dms-ablage > .spalten-griff { display: none !important; }
  .einzelfenster .dms-ablage > .dms-mitte:has(*) { min-height: 70vh; }
  .einzelfenster .dms-ablage > .dms-rechts:has(*) { min-height: 50vh; max-height: none; }
}

/* ab 3.88: Handy – Zwei-/Drei-Spalten-Ansichten mit fester Mindestbreite untereinander (nur Einzelansicht, schmal) */
@container einzel (max-width: 760px) {
  .einzelfenster :is(.dms-drei, .dms-reiter-inhalt, .dms-rechte-raster, .serie-empf, .st-raster, .ein-raster, .ze-raster, .ze-zwei, .sp, .ses-raster, .ub-raster, .ses-titel-raster) {
    grid-template-columns: minmax(0, 1fr) !important; height: auto; }
  .einzelfenster .dms-rechts { grid-column: auto; }
  .einzelfenster .rahmen-mit-bild { flex-direction: column-reverse; align-items: stretch; }
}

/* ab 3.89: Typenschild – Zuschneiden und Drehen (Vollbild, auch am Handy) */
.ts-editor { position: fixed; inset: 0; z-index: 3000; background: #0d1117; display: flex; flex-direction: column; color: #fff; touch-action: none; user-select: none; }
.ts-editor .ts-kopf { padding: 12px 16px; font-weight: 600; font-size: 1rem; }
.ts-editor .ts-buehne { position: relative; flex: 1; margin: 0 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ts-editor canvas { display: block; }
.ts-editor .ts-rahmen { position: absolute; border: 2px solid #4fd1c5; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; }
.ts-editor .ts-rahmen i { position: absolute; width: 28px; height: 28px; border: 4px solid #4fd1c5; background: transparent; }
.ts-editor .ts-rahmen i[data-e="nw"] { left: -6px; top: -6px; border-right: 0; border-bottom: 0; cursor: nwse-resize; }
.ts-editor .ts-rahmen i[data-e="ne"] { right: -6px; top: -6px; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.ts-editor .ts-rahmen i[data-e="sw"] { left: -6px; bottom: -6px; border-right: 0; border-top: 0; cursor: nesw-resize; }
.ts-editor .ts-rahmen i[data-e="se"] { right: -6px; bottom: -6px; border-left: 0; border-top: 0; cursor: nwse-resize; }
.ts-editor .ts-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.ts-editor .ts-leiste span { flex: 1; }
.ts-editor .ts-leiste button { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid #3a4452; background: #1c232d; color: #fff; font-size: 1rem; }
.ts-editor .ts-leiste button[data-a="links"], .ts-editor .ts-leiste button[data-a="rechts"] { font-size: 1.4rem; padding: 0 10px; }
.ts-editor .ts-leiste button.ok { background: #0f766e; border-color: #0f766e; font-weight: 600; min-width: 90px; }

/* ab 3.90: Zustimmung zu Nutzungsbedingungen/Datenschutz (Administrator) */
.rt-hintergrund { position: fixed; inset: 0; z-index: 2500; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rt-dialog { background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); max-width: 520px; width: 100%; padding: 18px 20px; font-size: .85rem; color: #1f2a37; }
.rt-kopf { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; margin-bottom: 8px; color: #17243a; }
.rt-texte { margin: 8px 0 12px; padding-left: 0; list-style: none; }
.rt-texte li { margin: 4px 0; }
.rt-texte a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rt-texte small { color: #6b7685; margin-left: 6px; }
.rt-feld { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.rt-feld span { width: 90px; color: #4b5563; }
.rt-feld input { flex: 1; height: 28px; padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 4px; }
.rt-haken { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; }
.rt-fehler { color: #b91c1c; margin: 6px 0; }
.rt-knoepfe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ab 3.90: Info-Fenster – Kopf mit Lizenz dunkel wie die Webseite (www.mercat-one.com) */
.pi-dunkel { display: flex; flex-direction: column; gap: 12px; background: #141f2e; color: #e6edf5; border-radius: 12px; padding: 16px 18px 14px;
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(79, 209, 197, .10), transparent 55%); }
.pi-dunkel .pi-band, .pi-dunkel .pi-band.kauf, .pi-dunkel .pi-band.miete, .pi-dunkel .pi-band.cloud, .pi-dunkel .pi-band.dev,
.pi-dunkel .pi-band.test, .pi-dunkel .pi-band.free, .pi-dunkel .pi-band.ohne { background: transparent; border: 0; padding: 0; color: #fff; }
.pi-dunkel .pi-band-text b { color: #fff; font-weight: 800; }
.pi-dunkel .pi-band-text span { color: #7fdcc8; font-weight: 600; }
.pi-dunkel .pi-version { color: #fff; }
.pi-dunkel .pi-band-rechts small { color: #9fb0c3; }
.pi-dunkel .pi-chip { background: rgba(255, 255, 255, .08); color: #d5dee9; border: 1px solid rgba(255, 255, 255, .12); }
.pi-dunkel .pi-chip.modell { color: #fff; background: var(--m, #475569); border-color: transparent; }
.pi-dunkel .pi-chip.paket { background: color-mix(in srgb, var(--f) 30%, #141f2e); color: #fff; border-color: color-mix(in srgb, var(--f) 55%, #141f2e); }
.pi-dunkel .pi-chip.status.ok { background: rgba(127, 220, 200, .16); color: #7fdcc8; border-color: rgba(127, 220, 200, .35); }
.pi-dunkel .pi-chip.status.fehler { background: rgba(248, 113, 113, .16); color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.pi-dunkel .pi-kachel { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); border-left: 4px solid #4fd1c5; }
.pi-dunkel .pi-kachel small, .pi-dunkel .pi-kachel span, .pi-dunkel .pi-kachel b i { color: #9fb0c3; }
.pi-dunkel .pi-kachel b { color: #fff; }
.pi-dunkel .pi-kachel.warn { border-left-color: var(--test); }
.pi-dunkel .pi-tabelle th { color: #9fb0c3; }
.pi-dunkel .pi-tabelle td, .pi-dunkel .pi-tabelle td b { color: #fff; }
.pi-dunkel .pi-schluessel { color: #7fdcc8; }
/* ab 3.90: zugestimmte Texte in Administration → Softwarelizenz */
.rtz { border: 1px solid #e3e8ef; border-radius: 8px; margin: 6px 0 12px; overflow: hidden; }
.rtz-stempel { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: #ecfdf5; border-bottom: 1px solid #a7f3d0; font-size: .8rem; }
.rtz-text { max-height: 320px; overflow: auto; padding: 4px 14px 10px; background: #fafbfc; font-size: .8rem; line-height: 1.5; }
.rtz-text h1 { font-size: 1rem; margin: 8px 0; } .rtz-text h2 { font-size: .88rem; margin: 10px 0 4px; }
/* ab 3.91: Stand Nutzungsbedingungen in Softwarelizenz */
.rtz-status { padding: 8px 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #f8fafc; font-size: .82rem; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rtz-status.offen { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.rtz-links { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.rt-inline .rt-dialog.inline { max-width: none; box-shadow: none; border: 1px solid #fed7aa; padding: 12px 14px; }

/* ab 3.92: Handy/Tablet Schritt 2–4 – nur schmale Breiten; am PC unverändert */
@container einzel (max-width: 600px) {
  /* Knopfleiste: nur Symbole (Text steht im Tooltip/title), alles in einer bis zwei Zeilen */
  .formular-leiste { gap: 4px; padding: 4px 6px !important; }
  .formular-leiste .mf-knopf:has(svg) { font-size: 0; padding: 0 9px; min-width: 38px; height: 34px; justify-content: center; }
  .formular-leiste .mf-knopf:has(svg) svg { font-size: 1.25rem; width: 1.25rem; height: 1.25rem; margin: 0; }
  .formular-leiste .mf-navi { min-width: 34px; height: 34px; }
  .formular-leiste .leiste-trenner { display: none; }
  .formular-leiste .leiste-status { margin-left: auto; font-size: .75rem; }
  /* Listen: die ersten drei Spalten, volle Breite, Zeilen höher für den Finger */
  table.mf-tabelle.ft { width: 100% !important; table-layout: auto; }
  table.mf-tabelle.ft :is(th, td):nth-child(n+4) { display: none; }
  table.mf-tabelle.ft tbody td { padding-top: 9px; padding-bottom: 9px; }
  table.mf-tabelle.ft col { width: auto !important; }
  table.mf-tabelle.ft col:nth-child(n+4) { visibility: collapse; width: 0 !important; }
  /* Schrittleiste (z. B. Lizenzabrechnung) umbrechen statt rechts hinauslaufen */
  .schritte { flex-wrap: wrap; row-gap: 4px; }
  .schritt { font-size: .72rem; padding: 0 14px 0 16px; }
  .ft-suchen-in { max-width: 42%; }
  /* Aufgaben: Liste mit Titel, Priorität und Fällig */
  table.auf-tabelle { min-width: 0 !important; }
  /* Dialoge bildschirmfüllend */
}
@media (max-width: 600px) {
  .einzel-kopf { gap: 8px; padding: 6px 10px; }
  .einzel-titel { font-size: .95rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .einzel-mandant { display: none; }
  /* Dialoge (MudDialog) am Handy bildschirmfüllend */
  .mud-dialog-container .mud-dialog { max-width: 100vw !important; width: 100vw !important; max-height: 100dvh !important; height: 100dvh; margin: 0 !important; border-radius: 0 !important; }
  /* ganzes Programm am Handy: Kopfleiste ohne Reiter und Texte, Willkommen untereinander */
  .mrr-appbar .mf-reiter { display: none; }
  .lw-kopf { flex-direction: column; gap: 6px; }
  .lw.gross .lw-kopf h2 { font-size: 1.35rem; }
}
@container einzel (max-width: 600px) {
  /* Aufgaben: Leiste kompakt – Knöpfe nur mit Symbol, Filter in einer scrollbaren Zeile */
  .auf-leiste { gap: 4px; }
  .auf-leiste .mf-knopf:has(svg) { font-size: 0; padding: 0 9px; min-width: 38px; height: 32px; }
  .auf-leiste .mf-knopf:has(svg) svg { font-size: 1.2rem; width: 1.2rem; height: 1.2rem; margin: 0; }
  .auf-leiste .auf-trenner { display: none; }
  .auf-tabelle tbody td { padding-top: 8px; padding-bottom: 8px; }
}
/* ab 3.93: Software-Update */
.mf-update-verfuegbar { display: block; margin: 2px calc(14px * var(--s)) 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: .6rem; font-weight: 700; letter-spacing: .06em; color: #f87171; } /* ab 3.99.1 (Rene): rot wie der Knopf oben */
.mf-update-verfuegbar:hover { text-decoration: underline; }
.mf-update-verfuegbar.sicherheit { color: #ef4444; }
.update-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; gap: 10px; align-items: center;
  max-width: min(760px, 96vw); padding: 8px 16px; border-radius: 0 0 10px 10px; background: #b45309; color: #fff; font-size: .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.update-banner .update-countdown { margin-left: 8px; white-space: nowrap; }
.su-ansicht .formular-inhalt { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.su-karte { border: 1px solid #d6e2ea; border-left: 4px solid #0f766e; border-radius: 8px; padding: 12px 16px; background: #fff; }
.su-karte.sicherheit { border-left-color: #b91c1c; }
.su-karte.aktuell { border-left-color: #16a34a; }
.su-titel { font-size: 1.05rem; font-weight: 700; color: #14202e; }
.su-unter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: #5b6878; margin-top: 3px; }
.su-kanal { padding: 1px 8px; border-radius: 9px; font-weight: 600; background: #dcfce7; color: #166534; }
.su-kanal.test { background: #fef3c7; color: #92400e; }
.su-sicher { padding: 1px 8px; border-radius: 9px; font-weight: 700; background: #fee2e2; color: #991b1b; }
.su-hinweis { margin: 8px 0 0; font-size: .82rem; }
.su-termin { margin-top: 10px; font-size: .82rem; display: flex; flex-direction: column; gap: 3px; }
.su-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: .8rem; }
.su-aktionen input { font: inherit; font-size: .8rem; padding: 2px 6px; border: 1px solid #c8d3dd; border-radius: 4px; margin-left: 4px; }
.su-trenner { width: 1px; height: 22px; background: #d6e2ea; margin: 0 4px; }
.su-leise { color: #5b6878; font-size: .76rem; }
.su-neu { margin-top: 10px; padding: 8px 12px; background: #f6f9fb; border-radius: 6px; font-size: .8rem; max-height: 320px; overflow: auto; }
.su-neu h4 { margin: 6px 0 2px; font-size: .82rem; }
.su-neu ul { margin: 0; padding-left: 18px; }
.su-laeuft { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #eef7f6; border-radius: 8px; font-size: .85rem; }
.su-fehler { padding: 10px 14px; background: #fee2e2; color: #991b1b; border-radius: 8px; font-size: .85rem; }
.su-h3 { font-size: .9rem; margin: 6px 0 0; }
.su-verlauf td:last-child { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-status { font-size: .74rem; padding: 1px 7px; border-radius: 9px; background: #e2e8f0; }
.su-status.installiert { background: #dcfce7; color: #166534; }
.su-status.fehler, .su-status.zurueck { background: #fee2e2; color: #991b1b; }
.su-status.verschoben, .su-status.geplant { background: #fef3c7; color: #92400e; }

/* ab 3.94: Schriften als Reiter in Einstellungen; Farbschema als Karte in der Mandantenverwaltung */
.schr-eingebettet .schr-rahmen { display: flex; flex-direction: column; }
.schr-eingebettet .formular-leiste { border-radius: 6px; }
.mv-farbschema .mv-karte-inhalt { display: flex; flex-direction: column; gap: 8px; }
.mv-farbschema .einst-zeile > span:first-child { min-width: 210px; }
.mv-fs-offen { background: #fff7e0; border: 1px solid #f1d58a; border-radius: 6px; padding: 6px 8px; color: #6b5310; }
.mv-fs-knoepfe { display: flex; gap: 8px; }
/* ab 3.94: Untermenü im Hauptmenü (Administration → Import/Export) */
.mf-menu-eintrag.mf-menu-unter { display: flex; align-items: center; width: 100%; font-weight: 600; }
html .mf-menu-eintrag.mf-menu-untereintrag, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag { padding-left: calc(58px * var(--s)); font-size: .76rem; }
html .mf-menu-eintrag.mf-menu-unter { color: #e2e8f0; }
.ue-eingebettet .ue-ansicht { display: flex; flex-direction: column; min-height: 420px; }

/* ab 3.95: „Update verfügbar“ rot im Kopf neben dem Logo – bleibt, bis das Update eingespielt ist */
/* ab 3.99.1 (Rene 24.10.2026): Schrift wie die Fenster-Reiter daneben – nicht fett, dezenter */
.kopf-update { display: inline-flex; align-items: center; gap: 6px; height: calc(28px * var(--s)); padding: 0 calc(12px * var(--s)); margin-right: 10px; border: 0; border-radius: calc(4px * var(--s));
  background: #c62828; color: #fff; font: inherit; font-size: .82rem; font-weight: 400; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(220,38,38,.6); animation: kopf-update-puls 2.4s ease-out infinite; flex: 0 0 auto; }
.kopf-update:hover { background: #b91c1c; }
.kopf-update .mud-icon-root { font-size: 16px; }
.kopf-update.sicherheit { background: #991b1b; }
@keyframes kopf-update-puls { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
@media (max-width: 600px) { .kopf-update { padding: 0 8px; } .kopf-update-text { display: none; } }

/* ======================================================================================================
   ab 3.95: Farbschema „Hell“ (wie das Lizenzportal) – baut auf „Petrol“ auf (am <html> stehen beide Klassen
   thema-petrol und thema-hell), nur die Variablen und wenige Stellen sind heller. Werte = ThemaFarben.Hell.
   ====================================================================================================== */
html.thema-petrol.thema-hell {
    --th-hintergrund: #eef2f6; --th-fenster: #ffffff; --th-formular: #ffffff; --th-rahmen: #e2e8f0; --th-feld: #ffffff;
    --th-formular-flaeche: #ffffff; --th-rahmen-flaeche: #ffffff; --th-rahmen-titel: #475569;
    --th-feldrand: #cbd5e1; --th-feld-gesperrt: #f1f5f9; --th-beschriftung: #1e293b; --th-akzent: #0f766e; --th-akzent-dunkel: #0b5e57;
    --th-auswahl: #e0f2ef; --th-leiste: #14202e; --th-menue-text: #cbd5e1; --th-fenstertitel: #f8fafc; --th-tabellenkopf: #f8fafc; --th-liste: #ffffff;
}
html.thema-hell .fenster { box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .06); }
html.thema-hell .fenster.aktiv { box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 26px rgba(15, 23, 42, .10); }
html.thema-hell .fenster-titel { color: var(--th-beschriftung); }
html.thema-hell .fenster.aktiv .fenster-titel { background: var(--th-fenster); color: var(--th-akzent-dunkel); border-bottom: 1px solid var(--th-rahmen); box-shadow: inset 0 -2px 0 var(--th-akzent); }
html.thema-hell .fenster.aktiv .fenster-titel button, html.thema-hell .fenster.aktiv .fenster-titel .mud-icon-root { color: var(--th-akzent-dunkel); }
html.thema-hell .formular-leiste { background: var(--th-fenster); }
html.thema-hell .rahmen > legend { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; color: #475569; }
html.thema-hell.farbverlauf .fenster .ansicht-formular { background: linear-gradient(135deg, #ffffff 0%, #f7fafc 55%, #eef8f6 100%) !important; }
html.thema-hell.farbverlauf .fenster .ansicht-formular .rahmen { background: rgba(255, 255, 255, .75); }

/* ab 3.95: Miniaturen der Farbschemata (Mandantenverwaltung → Farbschema) */
.fs-minis { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-mini-wahl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px; border: 2px solid transparent; border-radius: 9px; background: none; cursor: pointer; font: inherit; }
.fs-mini-wahl:hover { border-color: #cbd5e1; }
.fs-mini-wahl.gewaehlt { border-color: #0f766e; background: rgba(15, 118, 110, .06); }
.fs-mini-wahl:disabled { cursor: default; }
.fs-mini-name { font-size: .72rem; color: #334155; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-mini-wahl.gewaehlt .fs-mini-name { color: #0f766e; font-weight: 700; }
.fs-mini { --fm-leiste: #17243a; --fm-menue: #1e2c42; --fm-menue-text: #c7d2e0; --fm-hg: #c9d3de; --fm-fenster: #ffffff; --fm-titel: #3a6cc2; --fm-titel-text: #fff;
  --fm-akzent: #3a6cc2; --fm-rahmen: #c3ccd7; --fm-feld: #ffffff; --fm-feldrand: #b6c2d0; --fm-liste: #ffffff; --fm-auswahl: #dbe6f6; --fm-kopf: #e8edf3; --fm-formular: #dfe7f0; --fm-rund: 1px;
  display: flex; flex-direction: column; width: 150px; height: 96px; border-radius: 6px; overflow: hidden; border: 1px solid #cbd5e1; background: var(--fm-hg); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.fs-mini.petrol { --fm-leiste: #14232b; --fm-menue: #14232b; --fm-menue-text: #dcebea; --fm-hg: #d2ddda; --fm-fenster: #eef3f2; --fm-titel: #0f766e; --fm-akzent: #0f766e; --fm-rahmen: #b9cbc6;
  --fm-feldrand: #97ada7; --fm-auswahl: #d2ece7; --fm-kopf: #edf2f1; --fm-formular: #eef3f2; --fm-rund: 4px; }
.fs-mini.hell { --fm-leiste: #14202e; --fm-menue: #14202e; --fm-menue-text: #cbd5e1; --fm-hg: #eef2f6; --fm-fenster: #ffffff; --fm-titel: #ffffff; --fm-titel-text: #0f766e; --fm-akzent: #0f766e;
  --fm-rahmen: #e2e8f0; --fm-feldrand: #cbd5e1; --fm-auswahl: #e0f2ef; --fm-kopf: #f8fafc; --fm-formular: #ffffff; --fm-rund: 4px; }
.fs-mini.verlauf .fm-form { background: linear-gradient(135deg, #e6ecf3 0%, #e3edf2 45%, #dcefee 100%); }
.fs-mini.hell.verlauf .fm-form { background: linear-gradient(135deg, #ffffff 0%, #f7fafc 55%, #eef8f6 100%); }
.fs-mini i { display: block; }
.fm-kopf { display: flex; align-items: center; gap: 3px; height: 11px; padding: 0 4px; background: var(--fm-leiste); flex: 0 0 auto; }
.fm-logo { width: 7px; height: 7px; border-radius: 2px; background: #0f766e; margin-right: 6px; }
.fm-reiter { width: 16px; height: 5px; border-radius: 1px; background: rgba(255,255,255,.22); }
.fm-reiter.an { background: rgba(255,255,255,.75); }
.fm-koerper { display: flex; flex: 1; min-height: 0; }
.fm-menue { display: flex; flex-direction: column; gap: 4px; width: 30px; padding: 5px 4px; background: var(--fm-menue); flex: 0 0 auto; }
.fm-menue i { height: 3px; border-radius: 2px; background: var(--fm-menue-text); opacity: .55; }
.fm-menue i.an { opacity: 1; background: var(--fm-akzent); height: 5px; }
.fm-flaeche { flex: 1; padding: 5px; min-width: 0; display: flex; }
.fm-fenster { flex: 1; display: flex; flex-direction: column; background: var(--fm-fenster); border: 1px solid var(--fm-rahmen); border-radius: var(--fm-rund); overflow: hidden; }
.fm-titel { height: 8px; background: var(--fm-titel); border-bottom: 1px solid var(--fm-rahmen); flex: 0 0 auto; position: relative; }
.fm-titel::after { content: ""; position: absolute; left: 4px; top: 3px; width: 22px; height: 2px; border-radius: 1px; background: var(--fm-titel-text); opacity: .8; }
.fs-mini.hell .fm-titel { box-shadow: inset 0 -1.5px 0 var(--fm-akzent); }
.fm-leiste { display: flex; gap: 3px; padding: 3px 4px; flex: 0 0 auto; }
.fm-knopf { width: 14px; height: 5px; border-radius: 1.5px; background: var(--fm-akzent); }
.fm-knopf.hell { background: var(--fm-feld); border: 1px solid var(--fm-feldrand); height: 3px; }
.fm-inhalt { display: flex; gap: 4px; flex: 1; padding: 0 4px 4px; min-height: 0; }
.fm-form { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 3px; background: var(--fm-formular); border-radius: var(--fm-rund); }
.fm-feld { height: 4px; background: var(--fm-feld); border: 1px solid var(--fm-feldrand); border-radius: 1px; }
.fm-feld.kurz { width: 60%; }
.fm-liste { display: flex; flex-direction: column; gap: 1px; flex: 1.1; background: var(--fm-liste); border: 1px solid var(--fm-rahmen); border-radius: var(--fm-rund); overflow: hidden; }
.fm-zeile { height: 5px; border-bottom: 1px solid var(--fm-rahmen); }
.fm-zeile.kopf { background: var(--fm-kopf); }
.fm-zeile.an { background: var(--fm-auswahl); }
.fs-dev { flex-wrap: wrap; gap: 6px; align-items: center; }
.fs-dev-name { width: 240px; height: 26px; }
.einst-zeile.fs-minis-zeile { display: block; margin: 4px 0 6px; }
.fs-minis-zeile > span:first-child { display: none; }
.fs-mini { width: 124px; height: 80px; }
.fs-mini-name { max-width: 124px; }

/* ab 3.95: Trennlinien zwischen den Hauptmenüpunkten, Pfeil vor den Untermenüs (Rene, wie myfactory) */
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe { position: relative; }
/* Linie oben an jeder Hauptgruppe – auch unter einer aufgeklappten Gruppe, vor der nächsten; ganze Menübreite */
html .mf-menu-gruppe::before { content: ""; position: absolute; left: calc(-10px * var(--s)); right: calc(-10px * var(--s)); top: calc(-1px * var(--s)); height: 1px; background: rgba(203, 213, 225, .16); pointer-events: none; }
html .mf-menu-eintrag.mf-menu-unter { justify-content: flex-start; gap: 4px; padding-left: calc(38px * var(--s)); }
html .mf-menu-eintrag.mf-menu-unter .mf-unter-pfeil { font-size: 1.05em; opacity: .75; margin-left: calc(-2px * var(--s)); }
html .mf-menu-eintrag.mf-menu-untereintrag, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag { padding-left: calc(62px * var(--s)); }

/* ab 3.96: Inntec Cloud Backup (Administration → Datensicherung) */
.cb-bereich { margin-top: 18px; padding: 12px 16px; border: 1px solid #c8daf3; border-radius: 10px; background: #f8fbff; display: grid; gap: 10px; }
.cb-bereich .cb-titel { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.cb-bereich .cb-titel .mud-icon-root { color: var(--mf-blau-dunkel); }
.cb-plakette { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 6px; padding: 1px 7px; background: #e2e8f0; color: #475569; }
.cb-plakette.an { background: var(--mf-gruen-bg); color: var(--mf-gruen-text); border: 1px solid var(--mf-gruen-rand); }
.cb-bereich .cb-text { font-size: .8rem; max-width: 900px; }
.cb-bereich .cb-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cb-bereich .cb-kacheln > div { background: #fff; border: 1px solid #d6e2ea; border-radius: 8px; padding: 6px 10px; }
.cb-bereich .cb-kacheln span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.cb-bereich .cb-kacheln b { font-size: .88rem; } .cb-bereich .cb-kacheln small { display: block; font-size: .68rem; color: #64748b; }
.cb-bereich .cb-lauf { display: flex; align-items: center; gap: 10px; font-size: .82rem; background: #fff; border: 1px solid #c8daf3; border-radius: 8px; padding: 6px 10px; }
.cb-bereich .cb-abfrage { display: flex; align-items: center; gap: 10px; font-size: .8rem; margin-top: 6px; }
/* ab 3.98.1: ausführlicher Fortschritt der Cloud-Sicherung */
.cb-bereich .cb-lauf2 { background: #fff; border: 1px solid #c8daf3; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; }
.cb-lauf2 .cb-lauf-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cb-lauf2 .cb-uhr { font-variant-numeric: tabular-nums; font-weight: 600; }
.cb-lauf2 .cb-schritte { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.cb-lauf2 .cb-schritte li { padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .75rem; }
.cb-lauf2 .cb-schritte li.fertig { background: #dcfce7; color: #15803d; }
.cb-lauf2 .cb-schritte li.aktiv { background: #0f766e; color: #fff; font-weight: 600; }
.cb-lauf2 .cb-lauf-info { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: #475569; font-variant-numeric: tabular-nums; }
.cb-bereich .cb-schluessel { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; background: #fff; border: 1px solid #d6e2ea; border-radius: 8px; padding: 8px 10px; }
.cb-bereich .cb-schluessel.offen { background: #fffbeb; border-color: #fcd34d; }
.cb-bereich .cb-schluessel-text { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; font-weight: 700; letter-spacing: .04em; margin: 6px 0 2px; user-select: all; word-break: break-all; }
.cb-bereich .cb-verlauf summary { cursor: pointer; font-size: .8rem; color: #33445a; }
.cb-bereich tr.cb-fehler td { color: #b91c1c; }
.cb-bereich .cb-verlauf td:nth-child(3) { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-bereich .cb-cloudliste { display: grid; gap: 6px; justify-items: start; }
.cb-bereich .cb-cloudliste table { width: 100%; }
.cb-bereich .cb-fehlertext { color: #b91c1c; font-size: .8rem; }

/* ab 3.96 / Portal 1.32: Schaubilder Cloud Backup in der Hilfe */
.cb-hilfe-bild { margin: .6em 0 1em; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; max-width: 820px; }
.cb-hilfe-bild svg { display: block; width: 100%; height: auto; }
.cb-hilfe-faelle { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: .6em 0 1em; max-width: 900px; }
.cb-hilfe-faelle > div { border: 1px solid #cbd5e1; border-left: 4px solid #0f766e; border-radius: 8px; padding: 6px 10px; background: #f8fafc; }
.cb-hilfe-faelle b { display: block; } .cb-hilfe-faelle span { font-size: .9em; color: #475569; }
.cb-hilfe-bild.sb-bild { max-width: 1000px; } /* ab 3.96.1: Schaubilder in der Hilfe */
.sb-bild a { cursor: pointer; } .sb-bild a:hover rect { filter: brightness(.96); stroke-width: 3; }

/* ab 3.96.1: Mitwirkungsbestätigungen (Tonträgerbelegung → Mitwirkende) */
.mw-bestaetigung { margin-left: auto; white-space: nowrap; }
.mwb-vorlage { display: inline-flex; align-items: center; gap: 6px; }
.mwb-vorlage select { font: inherit; padding: 2px 6px; border: 1px solid #c9d4e2; border-radius: 4px; }
.mwb-tipp { margin: 0 0 6px; font-size: .78rem; }
.mwb-dms { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 10px; }
.mwb-mail > summary { cursor: pointer; margin-bottom: 6px; }
.dok-mw-tt { font-size: .78rem; padding: 4px 6px; border-top: 2px solid var(--dok-akzent, #1f2d3d); margin-bottom: 4px; }

/* ab 3.97: Grundvorlagen (Vorlagen → „Grundvorlagen …“, Einstellungen → Reiter „Grundvorlagen“) */
.korr-dialog-karte.gv-karte { width: min(880px, 94vw); }
.gv-liste { display: flex; flex-direction: column; gap: 8px; }
.gv-zeile { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid #dbe3ec; border-radius: 8px; padding: 8px 10px; background: #fff; }
.gv-zeile > .korr-mini { width: 72px; height: 100px; overflow: hidden; padding: 0; background: #eef2f6; border-radius: 4px; }
.gv-zeile > .korr-mini .korr-mini-seite { transform: scale(.09); top: 0; }
.gv-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gv-text small { color: #5f6a78; }
.gv-verwaltung { display: flex; flex-direction: column; gap: 10px; }
.gv-leiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.gv-tabelle td { vertical-align: top; }
.gv-knoepfe { white-space: nowrap; text-align: right; }
.gv-knoepfe .mf-knopf { margin-left: 4px; }
@media (max-width: 700px) { .gv-zeile { grid-template-columns: 1fr; } .gv-zeile > :first-child { display: none; } .gv-knoepfe { white-space: normal; } }

/* ab 3.97: Developer – Kunden-Backup sichten */
.ks-sichten > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.ks-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; margin-top: 8px; }
.ks-felder label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; }
.ks-felder .ks-ganz { grid-column: 1 / -1; }
.ks-felder textarea { width: 100%; font-size: .72rem; }
.ks-felder .ks-datei { flex-direction: row; justify-self: start; }
.ks-info { font-size: .78rem; background: #f1f6fd; border-radius: 6px; padding: 4px 8px; }
.ks-knoepfe { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ks-ergebnis { font-size: .78rem; color: #15803d; word-break: break-all; }
@media (max-width: 700px) { .ks-felder { grid-template-columns: 1fr; } }
/* ab 3.98.1: Einrichtung prüfen */
.ep-inhalt { padding: 12px 16px; overflow: auto; }
.ep-erkl { margin: 0 0 10px; font-size: .82rem; }
.ep-liste td { vertical-align: top; padding: 8px 10px; }
.ep-liste .ep-zeichen { width: 28px; font-size: 1rem; text-align: center; }
.ep-liste tr.ok .ep-zeichen { color: #15803d; }
.ep-liste tr.offen .ep-zeichen { color: #b91c1c; }
.ep-liste tr.info .ep-zeichen { color: #b45309; }
.ep-liste tr.offen { background: #fef2f2; }
/* ab 3.98.2: Fortschritt beim Software-Update */
.su-lauf { background: #fff; border: 1px solid #c8daf3; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; margin-bottom: 12px; }
.su-lauf .su-lauf-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.su-lauf .su-uhr { font-variant-numeric: tabular-nums; font-weight: 600; }
.su-lauf .su-schritte { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.su-lauf .su-schritte li { padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .75rem; }
.su-lauf .su-schritte li.fertig { background: #dcfce7; color: #15803d; }
.su-lauf .su-schritte li.aktiv { background: #0f766e; color: #fff; font-weight: 600; }
.su-lauf .su-lauf-info { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: #475569; font-variant-numeric: tabular-nums; }
.su-zurueck { margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: .8rem; }
/* ab 3.98.3: Update-Verlauf ganz lesbar */
.su-verlauf td.su-details { white-space: normal; word-break: break-word; }
.su-status.schritt { background: #f1f5f9; color: #475569; }
/* ab 3.98.3: Sperre vor dem Einspielen eines Updates */
.update-sperre { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.update-sperre-karte { background: #fff; border-radius: 12px; padding: 22px 26px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; color: #14232b; }
.update-sperre-kopf { display: flex; align-items: center; gap: 10px; color: #0f766e; }
.update-sperre-kopf h2 { margin: 0; font-size: 1.15rem; color: #14232b; }
.update-sperre p { margin: 0; color: #475569; line-height: 1.5; font-size: .9rem; }
.update-sperre-offen { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 12px; font-size: .85rem; color: #9a3412; }
.update-sperre-knoepfe { display: flex; gap: 8px; margin-top: 6px; }
.update-sperre-ok { background: #f0fdf4; border-radius: 8px; padding: 8px 12px; font-size: .85rem; color: #15803d; }
.update-sperre-stand { display: flex; justify-content: space-between; font-size: .85rem; color: #475569; font-variant-numeric: tabular-nums; }

/* ab 3.98.4 (Rene 24.10.2026): nicht gesicherter Mandant – Hinweis oben für alle, bis der Administrator bestätigt */
.mandant-warnung { position: fixed; top: calc(52px * var(--s, 1)); left: 50%; transform: translateX(-50%); z-index: 1600; width: min(920px, calc(100vw - 32px));
  display: flex; gap: 12px; align-items: flex-start; background: #fff7ed; border: 1px solid #fdba74; border-left: 5px solid #ea580c; border-radius: 10px;
  padding: 10px 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); color: #7c2d12; font-size: .88rem; line-height: 1.4; }
.mandant-warnung .mw-zeichen { color: #ea580c; flex: 0 0 auto; margin-top: 1px; }
.mandant-warnung .mw-text { flex: 1 1 auto; min-width: 0; }
.mandant-warnung .mw-grund { display: block; font-size: .78rem; color: #9a3412; opacity: .85; word-break: break-word; }
.mandant-warnung .mw-leise { margin-top: 4px; color: #9a3412; }
.mandant-warnung .mw-knoepfe { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
@media (max-width: 700px) { .mandant-warnung { flex-wrap: wrap; } .mandant-warnung .mw-knoepfe { flex-direction: row; width: 100%; } }

/* ab 3.98.4 (Rene 24.10.2026): Update-Verlauf kompakter – kleinere Schrift, weniger Zeilenhöhe */
.su-verlauf { font-size: .78rem; }
.su-verlauf th { font-size: .68rem; padding-top: 4px !important; padding-bottom: 4px !important; }
.su-verlauf td { padding-top: 3px !important; padding-bottom: 3px !important; line-height: 1.3; }
.su-verlauf .mud-chip, .su-verlauf .su-status, .su-verlauf [class*="status"] { font-size: .68rem; padding-top: 0; padding-bottom: 0; line-height: 1.5; }

/* ab 3.98.4 (Rene 24.10.2026): Logo oben etwas größer (wie im Lizenzportal), Version etwas besser lesbar */
.mrr-brand .kopf-version { font-size: .66rem; opacity: .6; }

/* ab 3.98.4 (Rene 24.10.2026): Info-Knopf ⓘ – Erklärtext erst auf Klick als Blase */
.info-knopf { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.info-knopf-i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--mf-akzent, #0f766e); background: #fff; color: var(--mf-akzent, #0f766e);
  font: italic 700 11px/14px Georgia, "Times New Roman", serif; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.info-knopf-i:hover, .info-knopf.offen .info-knopf-i { background: var(--mf-akzent, #0f766e); color: #fff; }
.info-blase { position: absolute; top: calc(100% + 6px); left: -8px; z-index: 1400; width: max-content; max-width: min(340px, 80vw);
  background: #1e293b; color: #f8fafc; font-size: .8rem; line-height: 1.45; padding: 8px 11px; border-radius: 8px; box-shadow: 0 8px 22px rgba(15, 23, 42, .25); white-space: normal; }
.info-blase::before { content: ""; position: absolute; top: -5px; left: 12px; border: 5px solid transparent; border-top: 0; border-bottom-color: #1e293b; }

/* ab 3.98.4 (Rene 24.10.2026): Punkte der Erkennung unauffällig – weiches Hellgrau statt kräftiger Farbe */
.dms-punkte, .dms-vorschlag.zugeordnet .dms-punkte, .dms-detail .dms-link-hand .dms-punkte { background: #eef1f4; color: #8a96a3; font-weight: 600; }

/* ab 3.98.4 (Rene 24.10.2026): Mandantenverwaltung – jede Zeile einzeilig (nichts bricht um) */
.mv-zeile > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-zeile .mv-name { display: flex; align-items: center; gap: 6px; }
.mv-db { flex-wrap: nowrap; overflow: hidden; }
.mv-db .mv-chip { flex: 0 0 auto; }
.mv-farbe-zelle { flex-wrap: nowrap; }
.mv-farbe-zelle input { width: 72px; min-width: 0; }
.mv-platte-anz { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.mv-platte-anz .mv-platte-balken { width: 46px; flex: 0 0 46px; }
.mv-verbindung { overflow: hidden; }

/* ab 3.98.4 (Rene 24.10.2026): Größe → Aufschlüsselung des Speicherplatzes */
.mv-groesse-knopf { border: 0; background: none; padding: 1px 4px; border-radius: 6px; cursor: pointer; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 3px; }
.mv-groesse-knopf:hover { background: #e6f2f1; color: var(--mf-akzent, #0f766e); text-decoration: underline; }
.speicher-dialog .sp-summe { font-size: 1.05rem; margin-bottom: 6px; }
.sp-balken { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eef1f4; }
.sp-teil { display: inline-block; height: 100%; }
.sp-teil.daten { background: #0f766e; } .sp-teil.ungenutzt { background: #f59e0b; } .sp-teil.frei { background: #cbd5e1; } .sp-teil.log { background: #7c3aed; }
.sp-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; font-size: .82rem; }
.sp-legende i { width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sp-legende small { color: #64748b; }
.sp-hinweise { margin: 10px 0; display: grid; gap: 6px; }
.sp-hinweise > div { display: flex; gap: 8px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; font-size: .82rem; color: #78350f; }
.sp-fehler { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 7px 10px; font-size: .82rem; margin: 6px 0; }
.sp-laedt { display: flex; gap: 10px; align-items: center; padding: 20px 0; }
.sp-h { margin: 14px 0 6px; font-size: .9rem; } .sp-h small { font-weight: 400; color: #64748b; }
.sp-leise { color: #64748b; font-size: .78rem; }
.sp-tabelle { font-size: .8rem; width: 100%; }
.sp-tabelle td, .sp-tabelle th { padding-top: 3px !important; padding-bottom: 3px !important; white-space: nowrap; }
.sp-tabelle .r { text-align: right; font-variant-numeric: tabular-nums; }
.sp-rahmen { max-height: 46vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.sp-filter { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; font-size: .82rem; }
.sp-filter input.mf-eingabe { max-width: 240px; }
.sp-anteil { width: 110px; }
.sp-mini { display: block; height: 6px; background: #eef1f4; border-radius: 3px; overflow: hidden; } .sp-mini span { display: block; height: 100%; background: #0f766e; }
@media (max-width: 700px) { .sp-anteil { display: none; } }

/* ab 3.99 (Rene 24.10.2026): Mandanten mit Stand während der Update-Datensicherung (UpdateMandanten.razor) */
.upd-mandanten { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: .85rem; color: #334155; }
.upd-mandanten-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.upd-mandanten ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.upd-mandanten.kompakt ul { max-height: 160px; }
.upd-mandanten li { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.upd-m-zeichen { width: 1.1em; text-align: center; color: #94a3b8; }
.upd-m-nr { color: #64748b; }
.upd-m-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-m-info { color: #64748b; white-space: nowrap; }
.upd-mandanten li.fertig .upd-m-zeichen { color: #15803d; }
.upd-mandanten li.laeuft { font-weight: 600; color: #0f766e; }
.upd-mandanten li.laeuft .upd-m-zeichen { color: #0f766e; }
.upd-mandanten li.uebersprungen { color: #94a3b8; }
.upd-mandanten li.uebersprungen .upd-m-info { color: #c2410c; }
.upd-mandanten li.fehler, .upd-mandanten li.fehler .upd-m-zeichen { color: #b91c1c; }

/* ab 3.99: Spalte Datenbankname in der Mandantenverwaltung */
.mv-dbname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }

/* ab 3.99.2: Einstellungen von einem anderen Mandanten übernehmen */
.eu-dialog { display: flex; flex-direction: column; gap: 10px; font-size: .85rem; }
.eu-dialog .eu-wahl { width: 100%; height: 30px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; background: #fff; }
.eu-bereiche { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; }
.eu-bereiche label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.3; }
.eu-bereiche input[type=checkbox] { margin-top: 2px; flex: none; }
.eu-hinweis { display: flex; gap: 6px; align-items: flex-start; color: #475569; font-size: .78rem; margin: 0; }

/* ab 3.99.3: Änderungsprotokoll der Mandantenverwaltung */
.mv-protokoll header { display: flex; align-items: center; gap: 6px; }
.mv-prot-werkzeuge { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .8rem; }
.mv-prot-werkzeuge label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.mv-prot-suche { border: 1px solid #cfd8e3; border-radius: 6px; padding: 2px 8px; font: inherit; font-size: .8rem; width: 180px; }
.mv-prot-rahmen { max-height: 360px; overflow: auto; }
.mv-prot { font-size: .78rem; }
.mv-prot td { vertical-align: top; padding: 2px 6px; }
.mv-prot-alt { color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .35); word-break: break-word; }
.mv-prot-neu { color: #15803d; word-break: break-word; }
.mv-prot-text { color: #334155; }

/* ab 3.99.3: Farbverschiebung im Farbschema */
.thema-versch { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; background: #f8fafc; }
.thema-versch-kopf { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; font-size: .82rem; }
.thema-versch-kopf small { color: #64748b; }
.thema-versch-inhalt { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 8px; align-items: center; padding: 4px 10px 10px; font-size: .8rem; }
.thema-versch-inhalt select { font: inherit; padding: 3px 6px; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; }
.thema-versch-inhalt > small { grid-column: 1 / -1; font-size: .72rem; }
.thema-versch-regler { display: flex; align-items: center; gap: 8px; }
.thema-versch-regler input[type=range] { flex: 1; min-width: 0; }
.thema-versch-regler span { width: 48px; text-align: right; font-variant-numeric: tabular-nums; color: #334155; }
.thema-farbton { accent-color: #0f766e; background: linear-gradient(90deg, #00ffff, #0000ff, #ff00ff, #ff0000, #ffff00, #00ff00, #00ffff); border-radius: 4px; height: 6px; -webkit-appearance: none; appearance: none; }
.thema-farbton::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #334155; }
.thema-versch-knoepfe { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.thema-gruppen { display: flex; flex-wrap: wrap; gap: 5px; }
.thema-gruppe { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 4px 7px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; font-size: .74rem; }
.thema-gruppe:hover { border-color: #94a3b8; }
.thema-gruppe.an { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, .18); }
.thema-gruppe small { color: #64748b; }
.thema-gruppe-farben { display: flex; gap: 2px; }
.thema-gruppe-farben i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); }

/* ---------- ab 3.99.3: Modul „Shop“ ---------- */
.sh-verb, .sh-maske { display: flex; flex-direction: column; gap: 10px; }
.sh-verb .st-form, .sh-maske { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.inv-felder > input[type=checkbox], .inv-felder > input[type=radio], .inv-felder label input[type=checkbox], .inv-felder label input[type=radio] { width: auto; justify-self: start; margin: 0; }
.sh-wahl { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .82rem; margin-right: 14px; white-space: nowrap; }
.sh-wahl input { width: auto !important; }
.inv-felder input.sh-zahl, .inv-zeile input.sh-zahl, input.sh-zahl { width: 110px; flex: none; }
.sh-test { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: .8rem; display: flex; flex-direction: column; gap: 5px; }
.sh-marke { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin: 0 4px 2px 0; border-radius: 10px; background: #e2e8f0; color: #1e293b; font-size: .74rem; white-space: nowrap; }
.sh-marke.aus { opacity: .5; text-decoration: line-through; }
.sh-marke button { all: unset; cursor: pointer; color: #64748b; padding-left: 2px; }
.sh-marke button:hover { color: #b91c1c; }
.sh-fehler { padding: 7px 10px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .8rem; display: flex; flex-direction: column; gap: 2px; }
.sh-abgleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.sh-schritt { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: .8rem; }
.sh-schritt .inv-zeile { flex-wrap: wrap; margin-top: auto; }
.sh-lauf { margin-top: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: .8rem; display: flex; flex-direction: column; gap: 5px; }
.sh-lauf.an { border-color: #99f6e4; background: #f0fdfa; }
.sh-lauf.fehler { border-color: #fecaca; background: #fef2f2; }
.sh-balken { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.sh-balken i { display: block; height: 100%; background: #0f766e; transition: width .3s; }
.sh-zahlen { color: #334155; }
.sh-meldungen { max-height: 160px; overflow: auto; font-size: .74rem; color: #475569; border-top: 1px solid #e2e8f0; padding-top: 4px; }
.sh-allgemein .inv-felder { max-width: 900px; }
.sh-gruppen { max-width: 620px; }
.sh-gruppen td { padding: 2px 4px; }
.sh-protokoll td { font-size: .75rem; vertical-align: top; }
.sh-protokoll tr.fehler td { color: #b91c1c; }
.sh-protokoll .sh-text { max-width: 600px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Listen links, Maske rechts (Kategorien, Hersteller) */
.sh-raster { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; padding-top: 10px; min-height: 0; }
.sh-raster > div:last-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-liste { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.sh-suche { font: inherit; font-size: .82rem; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; background: #fff; }
.sh-liste-inhalt { border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; overflow: auto; max-height: calc(100vh - 240px); }
.sh-zeile { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; padding: 4px 8px; font-size: .8rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.sh-zeile:hover { background: #f8fafc; }
.sh-zeile.aktiv { background: var(--th-shop-auswahl, #ccfbf1); }
.sh-zeile.aus { color: #94a3b8; }
.sh-zeile > span:not(.sh-pfeil) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-zeile small { color: #64748b; font-size: .7rem; }
.sh-pfeil { width: 14px; flex: none; color: #64748b; text-align: center; }
/* Artikel */
.sh-reiter { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid #e2e8f0; background: #fff; flex-wrap: wrap; }
.sh-reiter button { all: unset; cursor: pointer; padding: 8px 12px; font-size: .8rem; color: #475569; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 5px; }
.sh-reiter button:hover { color: #0f172a; }
.sh-reiter button.an { color: #0f766e; border-bottom-color: #0f766e; font-weight: 600; }
.sh-reiter button b { font-size: .68rem; background: #e2e8f0; color: #334155; border-radius: 8px; padding: 0 6px; font-weight: 600; }
.sh-maske { padding: 10px 12px; overflow: auto; }
.sh-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px; align-items: start; }
.sh-varianten tr { cursor: pointer; }
.sh-varianten th.sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
.sh-varianten th.sortierbar:hover, .sh-varianten th.sortiert { color: var(--mf-blau, #2f5fae); }
.sh-varianten tr.aktiv td { background: #f0fdfa; }
.sh-varianten td, .sh-preise td { padding: 2px 4px; }
.sh-varianten .rechts, .sh-preise .rechts, .gr-feld.rechts { text-align: right; }
.sh-preise { margin-top: 6px; }
.sh-gewaehlt { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.sh-katwahl { max-height: 420px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 6px; background: #fff; }
.sh-katwahl label { display: flex; align-items: center; gap: 6px; font-size: .8rem; padding: 2px 6px; cursor: pointer; }
.sh-katwahl label:hover { background: #f8fafc; }
.sh-katwahl label.aus { color: #94a3b8; }
.sh-bilder { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-bild { width: 150px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; background: #fff; }
.sh-bild.haupt { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, .15); }
.sh-bild img { width: 100%; height: 130px; object-fit: contain; background: #f8fafc; border-radius: 4px; }
.sh-bild small { font-size: .68rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-bild-leiste { display: flex; gap: 2px; justify-content: space-between; }
.sh-bild-leiste button { all: unset; cursor: pointer; padding: 1px 6px; border-radius: 5px; color: #334155; font-size: .8rem; }
.sh-bild-leiste button:hover:not(:disabled) { background: #f1f5f9; }
.sh-bild-leiste button:disabled { opacity: .3; cursor: default; }
.sh-mini { width: 34px; height: 34px; object-fit: contain; border-radius: 4px; background: #f8fafc; display: block; }
.sh-mini.leer { border: 1px dashed #e2e8f0; }
td.sh-ok { color: #15803d; }
td.sh-offen { color: #c2410c; }
.sh-abstand { margin: 6px 0; }
@media (max-width: 900px) { .sh-raster { grid-template-columns: 1fr; } .sh-zwei { grid-template-columns: 1fr; } }
/* ab 3.99.4: Kategoriebaum wie in Shopware */
.sh-baum .sh-zeile { gap: 5px; padding-top: 3px; padding-bottom: 3px; border-bottom: none; }
.sh-baum .sh-zeile.aus, .sh-baum .sh-zeile.aus .sh-ordner { color: #cbd5e1 !important; }
.sh-baum .sh-ordner { color: #64748b; flex: none; }
.sh-baum .sh-wurzel { font-weight: 600; color: #334155; }
.sh-baum .sh-pfeil { cursor: pointer; font-size: .85rem; }
.sh-baum .sh-zeile[draggable=true] { cursor: grab; }
.sh-baum .ziel-in { background: var(--th-shop-auswahl, #ccfbf1); outline: 1px dashed #0f766e; }
.sh-baum .ziel-vor { box-shadow: inset 0 2px 0 #0f766e; }
.sh-baum .ziel-nach { box-shadow: inset 0 -2px 0 #0f766e; }
.sh-raster .sh-liste-inhalt { min-height: 300px; }
/* ab 3.99.4: laufende Übertragung mit bewegtem Balken (Rene 25.10.2026) */
.sh-lauf.an .sh-balken i { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .28) 0 10px, transparent 10px 20px); background-size: 28px 28px; animation: sh-laufband 0.8s linear infinite; }
.sh-lauf.an .sh-balken { height: 10px; }
@keyframes sh-laufband { from { background-position: 0 0; } to { background-position: 28px 0; } }

/* ab 3.99.4: Shop – Umschaltung Stage ⇄ Live mit Domain-Link darunter (oben in allen Shop-Fenstern) */
.sh-umschalter { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: 12px; }
.sh-umschalter-knoepfe { display: inline-flex; border: 1px solid var(--mrr-rahmen, #cbd5e1); border-radius: 8px; overflow: hidden; }
.sh-umschalter-knoepfe button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 0; background: transparent; cursor: pointer; font-size: .82rem; color: inherit; white-space: nowrap; }
.sh-umschalter-knoepfe button + button { border-left: 1px solid var(--mrr-rahmen, #cbd5e1); }
.sh-umschalter-knoepfe button i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.sh-umschalter-knoepfe button.stage i { background: var(--th-shop-stage-punkt, #0d9488); }
.sh-umschalter-knoepfe button.live i { background: var(--th-shop-live-punkt, #ea580c); }
.sh-umschalter-knoepfe button small { font-size: .68rem; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.sh-umschalter-knoepfe button.stage.an { background: var(--th-shop-stage, #ccfbf1); color: var(--th-shop-stage-text, #115e59); font-weight: 600; }
.sh-umschalter-knoepfe button.live.an { background: var(--th-shop-live, #ffedd5); color: var(--th-shop-live-text, #9a3412); font-weight: 600; }
.sh-umschalter-knoepfe button:disabled { cursor: default; opacity: .6; }
.sh-umschalter-domain { display: flex; gap: 10px; font-size: .75rem; }
.sh-umschalter-domain a { display: inline-flex; align-items: center; gap: 3px; color: var(--mud-palette-primary); text-decoration: none; }
.sh-umschalter-domain a:hover { text-decoration: underline; }
.sh-umschalter-domain a.hell { color: var(--mud-palette-text-secondary); }
.sh-umschalter-domain a .mud-icon-root { font-size: .9rem; }

/* ab 3.99.4: Shop – Daten aus dem Shop (Kunden, Bestellungen …) mit Detail rechts */
.sh-roh-geteilt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); gap: 10px; }
.sh-roh-detail { border-left: 1px solid var(--mrr-rahmen, #e2e8f0); padding: 6px 10px; overflow: auto; min-height: 0; }
.sh-roh-detail pre { font-size: .75rem; white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; }
@media (max-width: 900px) { .sh-roh-geteilt { grid-template-columns: 1fr; } .sh-umschalter { align-items: flex-start; margin-left: 0; } }

/* ab 3.99.4: Shop-Verbindungen – Prüfung beim Öffnen (wie Speicherorte der Datensicherung) */
.sh-plakette { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.sh-plakette.ok { background: #dcfce7; color: #166534; }
.sh-plakette.fehler { background: #fee2e2; color: #991b1b; }
.sh-plakette.pruefe { background: #f1f5f9; color: #475569; animation: sh-pulsieren 1.2s ease-in-out infinite; }
@keyframes sh-pulsieren { 50% { opacity: .45; } }
.sh-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; color: #475569; }
.sh-status .sh-plakette { margin-top: 0; }
.sh-status.ok span:last-child { color: #166534; }
.sh-status.fehler span:last-child { color: #991b1b; }

/* ab 3.99.4: Varianten wie in Shopware – kompakte Liste (eine Spalte je Gruppe) und Konfiguration */
.sh-unterreiter { display: flex; gap: 2px; margin: 0 0 8px; border-bottom: 1px solid #e2e8f0; }
.sh-unterreiter button { all: unset; cursor: pointer; padding: 5px 12px; font-size: .78rem; color: #475569; border-bottom: 2px solid transparent; }
.sh-unterreiter button.an { color: #0f766e; border-bottom-color: #0f766e; font-weight: 600; }
.sh-unterreiter button b { font-size: .68rem; background: #e2e8f0; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.sh-var-leiste { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.sh-var-leiste .sh-suche { width: 220px; margin: 0; }
.sh-var-rahmen { max-height: calc(100vh - 330px); min-height: 160px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
table.sh-kompakt { border-collapse: collapse; width: 100%; font-size: .78rem; }
table.sh-kompakt thead th { position: sticky; top: 0; z-index: 1; background: #f1f5f9; padding: 4px 6px; font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
table.sh-kompakt tbody td { padding: 0 6px; height: 24px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
table.sh-kompakt tbody tr:nth-child(even) td { background: #fafbfc; }
table.sh-kompakt tbody tr:hover td { background: #f0f9ff; }
table.sh-kompakt tbody tr.aktiv td { background: #e0f2f1; }
table.sh-kompakt .rechts { text-align: right; } table.sh-kompakt .mitte { text-align: center; }
table.sh-kompakt input[type=checkbox], table.sh-kompakt input[type=radio] { width: 14px; height: 14px; margin: 0; vertical-align: middle; }
table.sh-kompakt .gr-pfeil { padding: 0 3px; min-height: 0; line-height: 1; }
.sh-zelle { font: inherit; width: 100%; box-sizing: border-box; height: 22px; padding: 0 4px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: inherit; }
.sh-zelle:hover:not(:disabled) { border-color: #cbd5e1; background: #fff; }
.sh-zelle:focus { outline: none; border-color: #0f766e; background: #fff; }
.sh-zelle.rechts { text-align: right; }
.sh-zelle[type=number] { -moz-appearance: textfield; } .sh-zelle::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-konfig { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 10px; align-items: start; }
.sh-konfig .inv-zeile { margin-bottom: 6px; }
.sh-konfig table.sh-kompakt tbody tr { cursor: pointer; }
.sh-vorschlaege { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; }
.sh-vorschlaege .sh-marke { cursor: pointer; border: 0; }
/* Freitextfelder: Spaltenname klein unter der Bezeichnung */
.sh-feldname { display: block; font-size: .65rem; color: #94a3b8; font-weight: 400; }
.sh-freitextnamen { width: 100%; box-sizing: border-box; font: inherit; font-size: .8rem; }

/* ab 3.99.5: Software-Update – Developer: ohne Datensicherung */
.su-ohne { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #64748b; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.su-ohne.an { background: #fff7ed; color: #9a3412; font-weight: 600; }

/* ab 3.99.6 (Rene 25.10.2026): Shop-Fenster ganz nach unten – Formular füllt das Fenster, Listen/Bäume wachsen mit */
.ansicht.sh-voll > .ansicht-formular { flex: 1 1 auto; max-height: none !important; min-height: 0; }
.ansicht.sh-voll .sh-raster { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.ansicht.sh-voll .sh-liste { min-height: 0; }
.ansicht.sh-voll .sh-liste-inhalt { flex: 1 1 auto; max-height: none; min-height: 240px; }
.korr .sh-maske { flex: 1 1 auto; min-height: 0; overflow: auto; }
.sh-maske .sh-fuellen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 320px; }
.sh-fuellen .sh-katwahl, .sh-fuellen .sh-katzu { flex: 1 1 auto; max-height: none; min-height: 240px; }
.sh-maske .sh-var-rahmen { flex: 1 1 auto; max-height: none; }
/* Kategorien des Artikels: zwei Spalten wie Shopware, mit der Maus zuordnen */
.sh-katzwei { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-height: 0; }
.sh-katzwei > fieldset { min-height: 320px; }
.sh-katwahl label[draggable=true] { cursor: grab; }
.sh-katsymbol { color: #94a3b8; font-size: 1rem !important; }
.sh-katzu { overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.sh-katzu-zeile { display: flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: .8rem; border-bottom: 1px solid #f1f5f9; cursor: grab; }
.sh-katzu-zeile span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-katzu-zeile:hover { background: #f8fafc; }
.sh-katzu-leer { padding: 18px 12px; color: #94a3b8; font-size: .8rem; text-align: center; }
.sh-katwahl.ziel, .sh-katzu.ziel { outline: 2px dashed #0f766e; outline-offset: -3px; background: #f0fdfa; }
.sh-zahlmarke { font-size: .68rem; background: #e2e8f0; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
@media (max-width: 900px) { .sh-katzwei { grid-template-columns: 1fr; } }

/* ab 3.99.6: Artikelübersicht – Kategorien links (Breite ziehbar, --sk) */
.sh-artraster { display: grid; grid-template-columns: var(--sk, 280px) minmax(0, 1fr); gap: 10px; }
.sh-artkat { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding-right: 8px; }
.sh-artkat .sh-suche { margin: 0; }
.sh-artkat .sh-liste-inhalt { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
.sh-artkat .sh-knoten { display: flex; align-items: center; gap: 4px; padding: 2px 6px; font-size: .78rem; cursor: pointer; white-space: nowrap; }
.sh-artkat .sh-knoten span:not(.sh-auf) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sh-artkat .sh-knoten b { font-size: .66rem; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 8px; padding: 0 5px; }
.sh-artkat .sh-knoten:hover { background: #f8fafc; }
.sh-artkat .sh-knoten.an { background: var(--th-shop-auswahl, #ccfbf1); color: var(--th-shop-stage-text, #115e59); font-weight: 600; }
.sh-artkat .sh-knoten.inaktiv { color: #cbd5e1; }
.sh-artkat .sh-auf { all: unset; width: 14px; text-align: center; cursor: pointer; color: #64748b; flex: none; }
.sh-artraster.zieht { user-select: none; cursor: col-resize; }
@media (max-width: 900px) { .sh-artraster { grid-template-columns: 1fr; } .sh-artkat { max-height: 240px; } }

/* ab 3.99.6 (Rene 25.10.2026): Artikel-Stammdaten wie im Titelarchiv (130 px Bezeichnung, Felder 24 px, Pflichtfelder hinterlegt) – rechts die Bilder */
.sh-stamm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 10px; align-items: stretch; }
.sh-stamm-links { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-tf-felder { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.sh-tf-felder > label, .sh-tf-l { font-size: .8rem; line-height: 1.2; white-space: nowrap; }
.sh-tf :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select) { height: 24px; padding: 1px 7px; font: inherit; font-size: .8rem; line-height: 20px; border: 1px solid var(--mf-feldrand, #cfd8e3); border-radius: 4px; background: #fff; box-sizing: border-box; min-width: 0; }
.sh-tf-felder > :is(input, select, textarea) { width: 100%; }
.sh-tf textarea { font: inherit; font-size: .8rem; padding: 3px 7px; border: 1px solid var(--mf-feldrand, #cfd8e3); border-radius: 4px; box-sizing: border-box; resize: vertical; background: #fff; }
.sh-tf :is(input, select, textarea).pflicht:not(:disabled) { background: #fdf6e3; } /* ab 3.99.8 (Rene): nur Eingabefelder, nie die Beschriftung */
.sh-tf-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sh-tf-s { width: 110px; } .sh-tf-m { width: 190px; }
.sh-tf .rechts { text-align: right; }
.sh-tf .sh-wahl { font-size: .8rem; }
/* Bilder rechts */
.sh-bildspalte { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.sh-bildspalte.ziel { outline: 2px dashed #0f766e; outline-offset: -3px; background: #f0fdfa; }
.sh-bildspalte.laedt { opacity: .6; pointer-events: none; }
.sh-bildleiste { display: flex; gap: 4px; flex-wrap: wrap; }
.gr-knopf { all: unset; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; cursor: pointer; color: #334155; }
.gr-knopf:hover:not(:disabled) { background: #f1f5f9; }
.gr-knopf:disabled { opacity: .45; cursor: default; }
.gr-knopf.gefahr { color: #b91c1c; }
/* ab 3.99.7: Bildspalte reicht bis unten (neben der Beschreibung), große Vorschau wächst mit; Miniaturen eigene Klasse (vorher von .sh-mini der Artikelliste auf 34 px gedrückt) */
.sh-bildgross { flex: 1 1 240px; min-height: 240px; max-height: 640px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.sh-bildgross img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sh-bildname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-thumbgroesse { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: #64748b; }
.sh-thumbgroesse input[type=range] { flex: 1 1 auto; height: 18px !important; padding: 0 !important; border: 0 !important; background: none !important; accent-color: #0f766e; }
.sh-thumbgroesse small { width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.sh-bildraster { --thumb: 96px; display: grid; grid-template-columns: repeat(auto-fill, var(--thumb)); gap: 8px; }
.sh-thumb { position: relative; width: var(--thumb); height: var(--thumb); box-sizing: border-box; background: #fff; border: 1px solid #e2e8f0; border-radius: 5px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sh-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sh-thumb.an { border-color: #0f766e; box-shadow: 0 0 0 2px #99f6e4; }
.sh-thumb .sh-band { position: absolute; top: 10px; left: -24px; width: 88px; transform: rotate(-45deg); background: #0f766e; color: #fff; font-size: .58rem; text-align: center; font-weight: 600; letter-spacing: .03em; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sh-thumb-pfeile { position: absolute; bottom: 0; right: 0; display: none; }
.sh-thumb:hover .sh-thumb-pfeile { display: flex; }
.sh-thumb-pfeile button { all: unset; font-size: .7rem; padding: 2px 6px; background: rgba(15, 23, 42, .65); color: #fff; cursor: pointer; }
.sh-thumb-pfeile button:disabled { opacity: .3; }
.sh-beschreibung { flex: 1 1 auto; }
.sh-ablage { margin-top: auto; border: 2px dashed #cbd5e1; border-radius: 6px; padding: 14px 8px; text-align: center; font-size: .78rem; font-weight: 600; color: #64748b; background: repeating-linear-gradient(135deg, #f8fafc 0 8px, #fff 8px 16px); }
.sh-ablage small { display: block; font-weight: 400; font-size: .68rem; margin-top: 2px; }
@media (max-width: 1100px) { .sh-stamm { grid-template-columns: 1fr; } }

/* ab 3.99.6: Shop – Freitextfeld-Verwaltung */
.sh-fts { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 8px 0; }
.sh-fts .sh-suche { max-width: 280px; margin: 0; }
.sh-fts .sh-var-rahmen { flex: 1 1 auto; max-height: none; background: #fff; }
.sh-fts tr.aus td:first-child { color: #94a3b8; }
.sh-fts-neu { width: 200px !important; }
/* .rahmen spannt sonst 6 Spalten auf – in den Shop-Rastern liegt jeder Rahmen in seiner Spalte */
.sh-stamm > .rahmen, .sh-katzwei > .rahmen, .sh-stamm-links > .rahmen, .sh-konfig > .rahmen, .sh-zwei > .rahmen { grid-column: auto; }

/* ab 3.99.7 (Rene 25.10.2026): Shop-Artikel wie alle Masken – Standardleiste, Maske oben, Liste unten; Felder wie Katalog → Produkte */
.ansicht.sh-artansicht > .ansicht-formular.sh-artformular { max-height: 72%; }
.sh-artformular .sh-reiter { position: sticky; top: calc(38px * var(--s)); z-index: 60; background: var(--mf-formular, #dfe7f0); }
.sh-artformular .sh-maske { padding: 8px 10px; }
.sh-artformular .protokoll-zeile { padding: 2px 12px 8px; }
.ansicht.sh-artansicht .ansicht-liste .sh-artraster { flex: 1 1 auto; min-height: 0; padding: 6px; }
.ansicht.sh-artansicht .ansicht-liste .sh-artkat .sh-liste-inhalt { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
.sh-std .formular-raster { gap: 3px 18px; }
.sh-std .feld-eingabe > :is(input:not([type=checkbox]), select, textarea) { width: 100%; }
.sh-std .feld-eingabe > .sh-std-kurz { width: 130px; }
.sh-std .feld-eingabe :is(input, select, textarea).pflicht:not(:disabled) { background: var(--mf-pflicht, #fff1bf); }
.sh-std .feld.oben { align-items: start; } .sh-std .feld.oben > label { padding-top: 4px; }
.sh-std .feld-eingabe.sh-tf-zeile { gap: 14px; }
table.sh-preise { width: auto; max-width: 100%; }
table.sh-preise th.sh-kg { width: 300px; }
table.sh-preise td:first-child select { width: 300px; }
.formular-leiste .sh-umschalter { flex-direction: row; align-items: center; gap: 8px; margin-left: 2px; }
.formular-leiste .sh-umschalter-knoepfe button { padding: 2px 8px; font-size: .76rem; }
.formular-leiste .sh-umschalter-domain { display: flex; gap: 6px; font-size: .72rem; white-space: nowrap; }
.sh-std .feld { --label: 130px; }
.sh-std .feld-eingabe.sh-tf-zeile { gap: 4px 12px; }
.sh-frei .feld > label { white-space: normal; line-height: 1.1; }
.sh-frei .feld > label .sh-feldname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-frei textarea { font-family: inherit; }

/* ab 3.99.8 (Regel 19): Hersteller, Kategorien, Freitextfeld-Verwaltung wie alle Masken */
.ansicht.sh-stdansicht > .ansicht-formular.sh-artformular { max-height: 60%; }
.sh-stdansicht .sh-zwei { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.sh-stdansicht .sh-ftmaske { max-width: 820px; }
.sh-stdansicht .ansicht-liste > .filter-tabelle, .sh-stdansicht .ansicht-liste .sh-artraster { flex: 1 1 auto; min-height: 0; }
.sh-stdansicht .ansicht-liste .sh-artraster { padding: 6px; }
.sh-stdansicht .sh-artkat .sh-liste-inhalt { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
tr.sh-inaktiv td { color: #94a3b8; }
/* ab 3.99.8 (Rene 25.10.2026): Beschreibung (Editor) in derselben Schriftgröße wie die Kurzbeschreibung */
.sh-tf .rt-flaeche { font-size: .8rem; line-height: 1.4; }
.sh-tf .rt-flaeche h4 { font-size: .9rem; } .sh-tf .rt-flaeche h3 { font-size: 1rem; }
/* ab 3.99.8 (Rene 25.10.2026): Kategoriebaum enger, Pfeile ▸/▾ statt ⊞/⊟ */
.sh-baum .sh-zeile { padding-top: 1px; padding-bottom: 1px; line-height: 1.25; }
.sh-artkat .sh-knoten { padding-top: 1px; padding-bottom: 1px; line-height: 1.25; }
.sh-baum .sh-pfeil, .sh-artkat .sh-auf { display: inline-flex; align-items: center; justify-content: center; width: 16px; }
.sh-baum .sh-pfeil .mud-icon-root, .sh-artkat .sh-auf .mud-icon-root { font-size: 1.05rem; color: #64748b; }
.sh-baum .mud-icon-root.sh-ordner, .sh-artkat .sh-katsymbol { font-size: 1rem; }
.sh-artkat .sh-knoten[draggable=true] { cursor: grab; }
.sh-artkat .ziel-in { background: var(--th-shop-auswahl, #ccfbf1); outline: 1px dashed #0f766e; }
.sh-artkat .ziel-vor { box-shadow: inset 0 2px 0 #0f766e; }
.sh-artkat .ziel-nach { box-shadow: inset 0 -2px 0 #0f766e; }
/* ab 3.99.8 (Rene 25.10.2026): Shop → Übersicht – nur Kategorien und Liste */
.ansicht.sh-nurliste > .ansicht-liste { flex: 1 1 auto; min-height: 0; }
.ansicht.sh-nurliste .ansicht-liste .sh-artraster { flex: 1 1 auto; min-height: 0; padding: 6px; }
.ansicht.sh-nurliste .ansicht-liste .sh-artkat .sh-liste-inhalt { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
/* ab 3.99.8 (Rene 25.10.2026): Reiter „Kategorien“ im Artikel – Zeilen deutlich niedriger, oben Shop-Auswahl */
.sh-katkopf { display: flex; gap: 6px; align-items: center; }
.sh-katkopf .sh-suche { flex: 1 1 auto; margin: 0; }
.sh-katshop { flex: 0 0 220px; height: 28px; font: inherit; font-size: .8rem; border: 1px solid var(--mf-feldrand, #cfd8e3); border-radius: 4px; padding: 0 6px; background: #fff; }
.sh-katwahl label { padding: 0 6px; gap: 4px; line-height: 18px; min-height: 18px; }
.sh-katwahl label input[type=checkbox] { margin: 0 2px; }
.sh-katwahl .sh-katsymbol, .sh-katzu-zeile .sh-katsymbol { font-size: 15px; width: 15px; height: 15px; }
.sh-katzu-zeile { padding: 1px 8px; line-height: 18px; }
.sh-katzu-zeile .gr-pfeil { padding: 0 4px; line-height: 16px; }
/* ab 3.99.8 (Rene 25.10.2026): Reiter „Interne Notiz“ mit grünem Stift wie im Titelarchiv; Beschreibung wirklich .8rem (auch eingefügtes HTML mit eigener Schriftgröße) */
.sh-reiter .sh-reiter-stift { font-size: 14px !important; width: 14px; height: 14px; color: #43a047; }
.sh-notiz { flex: 1 1 auto; width: 100%; min-height: 260px; }
.sh-tf .rt-flaeche { font-size: .78rem !important; line-height: 1.4; } /* wie die Kurzbeschreibung (Textfeld .78rem) */
.sh-tf .rt-flaeche :is(p, span, div, li, font, td, b, strong, i, em, u) { font-size: inherit !important; }
/* ab 3.99.8 (Rene 25.10.2026): Beschreibung/Freitextfelder einklappbar */
.sh-klapp { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font: inherit; color: inherit; }
.sh-klapp:hover { color: #0f766e; }
.sh-klapp .mud-icon-root { font-size: 16px; }
.sh-beschreibung.zu { flex: none; }
.sh-tf.zu { padding-bottom: 2px; }
.sh-tf legend .sh-reiter-stift { font-size: 14px !important; width: 14px; height: 14px; color: #43a047; margin-left: 4px; vertical-align: -2px; }
.sh-std .feld-eingabe.sh-tf-zeile { flex-wrap: nowrap; gap: 10px; white-space: nowrap; overflow: hidden; }
.sh-std .feld.sh-haken { display: flex; align-items: center; min-height: 24px; }
.sh-ablage.oben { margin-top: 0; padding: 2px 8px; line-height: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 500; }
.sh-ablage.oben .mud-icon-root { font-size: 16px; }
/* ab 3.99.8 (Rene 25.10.2026): Bild-Popup */
.sh-bildgross { cursor: zoom-in; }
.sh-bildpopup { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: zoom-out; outline: none; }
.sh-bildpopup img { max-width: 90vw; max-height: 84vh; object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: default; }
.sh-bp-text { color: #e2e8f0; font-size: .8rem; cursor: default; }
.sh-bp-zu, .sh-bp-pfeil { all: unset; position: absolute; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.sh-bp-zu:hover, .sh-bp-pfeil:hover { background: rgba(255,255,255,.25); }
.sh-bp-zu { top: 18px; right: 18px; }
.sh-bp-pfeil.sh-bp-li { left: 24px; top: calc(50% - 22px); } .sh-bp-pfeil.sh-bp-re { right: 24px; top: calc(50% - 22px); }
.sh-bp-pfeil .mud-icon-root { font-size: 32px; }
/* ab 3.99.8: Farbe ersetzen (fest eingetragene Farben) im Farb-Editor */
.thema-ersatz-kopf { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin: 8px 2px 2px; }
/* ab 3.99.8 (Rene 25.10.2026): Euro-Zeichen in Preisfeldern */
.sh-euro { position: relative; display: block; }
.sh-euro > input { width: 100%; padding-right: 18px !important; box-sizing: border-box; }
.sh-euro::after { content: "€"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: #64748b; pointer-events: none; }
/* ab 3.99.9 (Rene 25.10.2026): kein waagrechter Scrollbalken im linken Menü */
.mrr-drawer .mud-drawer-content, .mrr-drawer, .mf-menu { overflow-x: hidden !important; }
.mf-menu .mf-menu-eintrag, .mf-menu .mf-menu-gruppe { max-width: 100%; box-sizing: border-box; }
.mf-menu .mf-menu-eintrag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-lizenziert, .mf-lizenznehmer { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
/* ab 3.99.9 (Rene 25.10.2026): Bildspalte in der Breite ziehbar (--bs, je Benutzer), Bild passt sich der Breite an, Knöpfe brechen um */
.sh-stamm { grid-template-columns: minmax(0, 1fr) var(--bs, 340px); }
.sh-stamm.zieht { user-select: none; cursor: col-resize; }
.sh-bildspalte > .spalten-griff.links { left: -7px; }
.sh-bildgross { flex: none; aspect-ratio: 1 / 1; min-height: 0; max-height: none; }
.sh-bildleiste { flex-wrap: wrap; }
@media (max-width: 900px) { .sh-stamm { grid-template-columns: 1fr; } }
/* ab 3.99.9: Freitextfeld-Verwaltung – „nur bei Medium“ */
.sh-medienwahl { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sh-medienwahl small { flex-basis: 100%; }
/* ab 3.99.9: Eigenschaften im Artikel */
.sh-eig-werte { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 24px; }
.sh-chip { display: inline-flex; align-items: center; gap: 3px; background: #e6f2f0; border: 1px solid #b7d8d3; color: #134e48; border-radius: 10px; padding: 0 4px 0 8px; font-size: .76rem; line-height: 20px; }
.sh-chip button { all: unset; cursor: pointer; font-size: .7rem; color: #64748b; padding: 0 3px; }
.sh-chip button:hover { color: #b91c1c; }
.sh-tf .sh-eig-neu { width: 220px; flex: 0 1 220px; }
.sh-std .feld-eingabe > .sh-std-mittel { width: 260px; }
.sh-eig .feld-eingabe { gap: 6px; }
/* ab 3.99.9: Shop → Eigenschaften (vier Spalten wie Shopware) */
.sh-eigraster { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(200px, 1fr) minmax(240px, 1.1fr) minmax(240px, 1.2fr); gap: 10px; padding-top: 8px; }
.sh-eigraster > .rahmen { grid-column: auto; }
.sh-eigspalte { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.sh-eigspalte.ziel { outline: 2px dashed #0f766e; outline-offset: -3px; background: #f0fdfa; }
.sh-eigkopf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sh-eigkopf .sh-suche { flex: 1 1 120px; margin: 0; }
.sh-eigliste { flex: 1 1 auto; min-height: 120px; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; }
.sh-eigzeile { display: flex; align-items: center; gap: 6px; padding: 1px 6px; font-size: .78rem; line-height: 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.sh-eigzeile > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-eigzeile small { color: #64748b; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.sh-eigzeile b { font-size: .66rem; font-weight: 600; color: #64748b; }
.sh-eigzeile:hover { background: #f8fafc; }
.sh-eigzeile.an { background: var(--th-shop-auswahl, #ccfbf1); }
.sh-eigzeile.zugeordnet > span { color: #0f766e; font-weight: 600; }
.sh-eigzeile[draggable=true] { cursor: grab; }
.sh-eigzeile .sh-wahl { font-size: .7rem; white-space: nowrap; }
.sh-eigdetail { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
@media (max-width: 1100px) { .sh-eigraster { grid-template-columns: 1fr 1fr; } }
/* ab 3.99.9: Shop-Rohdaten als Maske (Kunden, Bestellungen, Adressen, Zahlungsarten) */
.sh-rm { display: flex; flex-direction: column; gap: 8px; }
.sh-rm > .rahmen { grid-column: auto; }
.sh-rm .feld-eingabe > input[readonly] { width: 100%; background: var(--th-feld-gesperrt, #f4f7f6); }
.sh-rm-adressen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sh-rm-adresse { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px; font-size: .8rem; line-height: 1.4; }
.sh-rm-text { white-space: pre-wrap; font-size: .8rem; }
.sh-rm-html img { max-width: 100%; max-height: 60px; }
.sh-roh-json { margin-top: 8px; font-size: .75rem; color: #64748b; }
.sh-roh-json summary { cursor: pointer; }
.sh-roh-geteilt { grid-template-columns: minmax(0, 1fr) var(--rd, 46%); }
.sh-roh-detail { position: relative; }
.sh-roh-detail > .spalten-griff.links { left: -6px; }
.sh-rm .feld { --label: 112px; }
/* ab 3.99.9: Kategorien im Artikel – Ordner nur zum Aufklappen, SEO-Kategorie je Shop */
.sh-katwahl label.sh-katordner { color: #475569; cursor: default; }
.sh-seokat { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; font-size: .8rem; }
.sh-seokat .inv-zeile { display: flex; gap: 8px; align-items: center; }
.sh-seoshop { width: 140px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-seokat select { flex: 1 1 auto; min-width: 0; height: 24px; font: inherit; font-size: .78rem; }

/* ab 3.99.10: Hinweis „Shop wird auf Änderungen geprüft“ beim Öffnen der Shop-Artikel */
.sh-artansicht { position: relative; }
.sh-pruefhinweis { position: absolute; top: 6px; right: 12px; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .75rem;
  background: var(--mud-palette-surface, #fff); border: 1px solid var(--mud-palette-lines-default, #ccc); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* ab 3.99.10 (Rene): Shop-Artikelliste – Aktiv als grüner Punkt, inaktive Artikel heller mit grauem, leicht durchsichtigem Bild */
.sh-aktivpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; vertical-align: middle; }
.sh-aktivpunkt.aus { background: transparent; border: 1.5px solid #b8c2cc; box-sizing: border-box; }
tr.sh-zeile-inaktiv > td, tr.sh-zeile-inaktiv > td * { color: #9aa5b1 !important; }
tr.sh-zeile-inaktiv img { filter: grayscale(1); opacity: .5; }

/* ab 3.99.10: Auszeichnung wie im Shop (Shopware 5 .product--badge) – Farbe/Text aus dem Shop */
.sh-badge { display: inline-block; padding: 1px 8px; border-radius: 3px; background: var(--b, #2ecc71); color: #fff; font-weight: 700; font-size: .72rem; line-height: 1.5; letter-spacing: .02em; }
.sh-badge.aus { opacity: .35; filter: grayscale(.6); }

/* ab 3.99.10: Preise und SEO nebeneinander in den Stammdaten */
.sh-preis-seo { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.sh-preis-seo > fieldset { margin-top: 0; }
.sh-preis-seo > .sh-seo { flex: 1 1 320px; min-width: 0; }
.sh-seo .formular-raster { grid-template-columns: 1fr; }
.sh-seo .formular-raster > div { grid-column: 1 / -1; }
.sh-seo .feld-eingabe { flex: 1; }
.sh-seo .feld-eingabe > input, .sh-seo .feld-eingabe > textarea { width: 100%; box-sizing: border-box; }

/* ab 3.99.10: Bilder je Option (Konfiguration) */
.sh-optbilder { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.sh-optbilder img { width: 26px; height: 26px; object-fit: cover; border-radius: 3px; border: 1px solid var(--mf-linie, #d5dde5); }
.sh-optpopup { display: flex; align-items: center; justify-content: center; }
.sh-optfenster { background: #fff; border-radius: 8px; padding: 12px 14px; width: min(760px, 94vw); max-height: 86vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.sh-optkopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sh-optkopf .text-zweitrangig { flex: 1 1 260px; }
.sh-thumb.sh-optan { outline: 3px solid #16a34a; outline-offset: -3px; }

/* ab 3.99.11: Variantenbilder in „Verfügbare Varianten“ */
.sh-varbild { padding: 2px 4px !important; }
.sh-varbild img { width: var(--vb, 50px); height: var(--vb, 50px); object-fit: cover; border-radius: 3px; display: block; border: 1px solid var(--mf-linie, #d5dde5); }
.sh-varbild img.allg { opacity: .35; filter: grayscale(.7); }
.sh-varbild-regler { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .75rem; }
.sh-varbild-regler input { width: 110px; }

/* ab 3.99.12: Cross-Selling */
.sh-cross { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; }
.sh-cross-neu { margin: 6px 0; }
.sh-cross-neu .gr-feld { flex: 1; }
.sh-cross-bild { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; display: block; }
/* ab 3.99.56: Reiter „Ressourcen“ (Links/Downloads) */
.sh-res-neu { display: grid; grid-template-columns: 60px 1fr; gap: 4px 8px; align-items: center; margin: 8px 0; }
.sh-res-neu .gr-feld { width: 100%; }
.sh-res-datei { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-res-adr { word-break: break-all; }
.sh-res-adr .sh-zelle { width: calc(100% - 24px); }
.sh-res-adr a { margin-left: 4px; vertical-align: middle; }
.sh-res-knoepfe { display: flex; gap: 8px; margin-top: 8px; }
.sh-res-unbekannt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px dashed var(--mf-rand, #c9d3df); border-radius: 6px; background: #f7f9fc; }

/* ab 3.99.12 (Rene): Shop-Umschaltung (Stage/Live) rechts neben „Datensatz x/y“ */
.sh-umschalter-rechts { margin-left: auto; display: inline-flex; align-items: center; }
.sh-umschalter-rechts + .leiste-status { margin-left: 10px; }

/* ab 3.99.12: Reiter „Preise & Einstellungen“ */
.sh-einst { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 4px 18px; }
.sh-einst-steuer { margin-bottom: 6px; }
.sh-einst-seite { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 10px; align-items: start; }
@media (max-width: 1500px) { .sh-einst-seite { grid-template-columns: minmax(0, 1fr); } }
.sh-einst-seite > fieldset { margin-top: 0; }
.sh-einst .inv-felder { grid-template-columns: 175px minmax(0, 1fr); gap: 5px 10px; }
.sh-einst .sh-zahl { max-width: 140px; }
.sh-einst-steuer { grid-template-columns: 175px 200px; }
.sh-einst-steuer select { max-width: 200px; }
.sh-einst input[type=date] { max-width: 180px; }

/* ab 3.99.12: Shops je Artikel */
.sh-shopwahl { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }
.sh-shopwahl .aus { opacity: .5; }

/* ab 3.99.12: Abgleich-Status über der Artikelliste */
.sh-sync { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 12px; font-size: .74rem; border: 1px solid transparent; white-space: nowrap; }
.sh-sync.ok { background: #e8f6ee; color: #166534; border-color: #b7e2c6; }
.sh-sync.neu { background: #e0f2fe; color: #075985; border-color: #9fd3f3; cursor: pointer; }
.sh-sync.neu.an { background: #075985; color: #fff; }
.sh-sync.warn { background: #fff4e5; color: #92400e; border-color: #f5c98f; }
.sh-sync.laeuft { background: #f1f5f9; color: #475569; }

.sh-syncklein { font-size: .66rem; color: var(--mf-text-2, #64748b); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; }
.sh-syncklein.ok { color: #15803d; }
.sh-syncklein.neu { color: #0369a1; font-weight: 600; }
.sh-syncklein.warn { color: #b45309; }

/* ab 3.99.12 (Rene): Eigenschaften – Eingabe vorne in fester Breite, Werte dahinter */
.sh-eig .sh-eig-werte { display: flex; align-items: flex-start; gap: 8px; }
.sh-eig .sh-eig-neu { flex: 0 0 240px !important; width: 240px !important; }
.sh-eig-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 22px; padding-top: 1px; }

/* ab 3.99.12 (Rene): Werkzeug – Felder der Stammdaten ein-/ausblenden */
.sh-reiter { position: relative; }
.sh-werkzeug { margin-left: auto; position: relative; display: inline-flex; align-items: center; }
.sh-werkzeug > button { all: unset; cursor: pointer; padding: 4px 6px; border-radius: 4px; color: var(--mf-text-2, #64748b); display: inline-flex; }
.sh-werkzeug > button:hover, .sh-werkzeug > button.an { background: #e2e8f0; color: var(--mf-blau, #0f766e); }
.sh-werkzeug-menue { position: absolute; right: 0; top: 100%; z-index: 200; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 6px 22px rgba(0,0,0,.18);
  padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 210px; font-size: .78rem; }
.sh-werkzeug-menue b { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #475569; margin-bottom: 2px; }
.sh-werkzeug-menue .mf-knopf { margin-top: 6px; align-self: flex-start; }
.sh-aus-medium .sh-f-medium { display: none !important; }
.sh-aus-shops .sh-f-shops { display: none !important; }
.sh-aus-lager .sh-f-lager { display: none !important; }
.sh-aus-ean .sh-f-ean { display: none !important; }
.sh-aus-kurz .sh-f-kurz { display: none !important; }
.sh-aus-seo .sh-f-seo { display: none !important; }
.sh-aus-beschreibung .sh-f-beschreibung { display: none !important; }
.sh-aus-freitext .sh-f-freitext { display: none !important; }
.sh-aus-eigenschaften .sh-f-eigenschaften { display: none !important; }
.sh-aus-bilder .sh-f-bilder , .sh-aus-bilder > .sh-bildspalte { display: none !important; }
.sh-stamm.sh-aus-bilder { grid-template-columns: minmax(0, 1fr) !important; }

/* ab 3.99.13: Zahlungsarten/Länder bearbeiten */
.sh-rm-bearb { grid-template-columns: 200px minmax(0, 1fr); gap: 6px 12px; }
.sh-rm-bearb textarea { width: 100%; box-sizing: border-box; }
.sh-rm-bearb input:not([type=checkbox]), .sh-rm-bearb select { width: 100%; box-sizing: border-box; }
.sh-rm-bearb .sh-zahl { max-width: 160px; }
.sh-rm-knoepfe { justify-content: flex-end; margin-top: 10px; gap: 8px; }

/* ab 3.99.13: Werkzeug mit allen Feldern */
.sh-werkzeug-menue { max-height: 72vh; width: 280px; }
.sh-werkzeug-menue .sh-suche { margin: 2px 0 4px; }
.sh-werkzeug-liste { overflow: auto; max-height: 56vh; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.sh-werkzeug-gruppe { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin-top: 6px; border-bottom: 1px solid #e2e8f0; }
.sh-werkzeug-liste .unter { padding-left: 14px; }
.sh-aus-aktiv .sh-f-aktiv { display: none !important; }
.sh-aus-tipp .sh-f-tipp { display: none !important; }
.sh-aus-abverkauf .sh-f-abverkauf { display: none !important; }
.sh-aus-varart .sh-f-varart { display: none !important; }
.sh-werkzeug-liste { max-height: min(40vh, 420px); }
.sh-werkzeug-menue .inv-zeile .mf-knopf { margin-top: 0; }

/* ab 3.99.13: Kategorien aus Artikel übernehmen – Trefferliste */
.sh-kat-uebernehmen { position: relative; display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; color: #64748b; }
.sh-kat-uebernehmen .sh-suche { flex: 1; margin: 0; }
.sh-treffer { position: absolute; left: 24px; right: 0; top: 100%; z-index: 150; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-height: 420px; overflow: auto; }
.sh-treffer-zeile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px 110px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; width: 100%; padding: 4px 8px; border-bottom: 1px solid #f1f5f9; font-size: .78rem; color: #1e293b; }
.sh-treffer-zeile:hover { background: #ecfdf5; }
.sh-treffer-zeile img, .sh-treffer-leer { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; background: #f1f5f9; display: block; }
.sh-treffer-zeile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-treffer-zeile small { color: #64748b; white-space: nowrap; }
.sh-treffer-zeile em { color: #0f766e; font-style: normal; font-size: .7rem; white-space: nowrap; }

/* ab 3.99.13 (Rene 25.10.2026): Statistik je Artikel */
.sh-stat { display: flex; flex-direction: column; gap: 10px; }
.sh-stat-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sh-stat-leiste input[type=date] { height: 26px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; padding: 0 6px; background: var(--mud-palette-surface); color: inherit; }
.sh-stat-zeitraum, .sh-stat-wert { display: inline-flex; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 14px; overflow: hidden; }
.sh-stat-zeitraum button, .sh-stat-wert button { border: 0; background: transparent; padding: 3px 11px; font-size: 12.5px; cursor: pointer; color: inherit; }
.sh-stat-zeitraum button + button, .sh-stat-wert button + button { border-left: 1px solid var(--mud-palette-lines-inputs); }
.sh-stat-zeitraum button.an, .sh-stat-wert button.an { background: var(--th-shop-auswahl, #ccfbf1); font-weight: 600; }
.sh-stat-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sh-stat-kacheln > div { border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; padding: 8px 12px; display: flex; flex-direction: column; background: var(--mud-palette-surface); }
.sh-stat-kacheln small { color: var(--mud-palette-text-secondary); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.sh-stat-kacheln b { font-size: 20px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sh-stat-kacheln span { font-size: 12px; color: var(--mud-palette-text-secondary); min-height: 1em; }
.sh-stat-diagramm { position: relative; }
.sh-stat-wert { position: absolute; right: 10px; top: 4px; }
.sh-stat-svg { width: 100%; height: 220px; display: block; margin-top: 18px; }
.sh-stat-gitter { stroke: var(--mud-palette-lines-default); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sh-stat-balken { fill: var(--mud-palette-primary); opacity: .85; }
.sh-stat-balken:hover { opacity: 1; }
.sh-stat-achsen { display: grid; font-size: 11px; color: var(--mud-palette-text-secondary); margin-top: 2px; }
.sh-stat-achsen span { white-space: nowrap; overflow: visible; }
.sh-stat-max { text-align: right; }
.sh-stat-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sh-stat-lauf { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-stat-balkenlauf { display: inline-block; width: 140px; height: 6px; border-radius: 3px; background: var(--mud-palette-lines-default); overflow: hidden; }
.sh-stat-balkenlauf i { display: block; height: 100%; background: var(--mud-palette-primary); transition: width .3s; }

/* ab 3.99.13 (Rene 25.10.2026, Grundsatz): alle Masken mit derselben Optik wie das Titelarchiv – auch die Fenster mit .korr
   (Shop-Kunden, -Bestellungen, -Adressen …) bekommen denselben Formular-Hintergrund und dieselben Rahmen wie .ansicht-formular */
html.farbverlauf .fenster .korr { background: linear-gradient(135deg, #e6ecf3 0%, #e3edf2 45%, #dcefee 100%); }
html.farbverlauf .fenster .korr .rahmen { background: rgba(255, 255, 255, .5); border-radius: 8px; }
html.thema-hell.farbverlauf .fenster .korr { background: linear-gradient(135deg, #ffffff 0%, #f7fafc 55%, #eef8f6 100%); }
html.thema-hell.farbverlauf .fenster .korr .rahmen { background: rgba(255, 255, 255, .75); }
.sh-rm .rahmen { padding-top: calc(2px * var(--s)); padding-bottom: calc(4px * var(--s)); }
.sh-rm .feld-eingabe > input[readonly] { background: var(--th-feld, #fff); }
.sh-rm-adresse { background: var(--th-feld, #fff); border-color: var(--th-rahmen, #e2e8f0); }

/* ab 3.99.13 (Rene 25.10.2026): Modul „Versand“ – DHL-Schnittstelle (Farben nur aus dem Farbschema) */
.vs-dhl { display: flex; flex-direction: column; }
.vs-zugang { height: 26px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); font: inherit; font-size: .82rem; padding: 0 6px; }
.vs-umg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.vs-umg i { width: 8px; height: 8px; border-radius: 50%; }
.vs-umg.stage { background: var(--th-shop-stage, #ccfbf1); color: var(--th-shop-stage-text, #115e59); } .vs-umg.stage i { background: var(--th-shop-stage-punkt, #0d9488); }
.vs-umg.live { background: var(--th-shop-live, #ffedd5); color: var(--th-shop-live-text, #9a3412); } .vs-umg.live i { background: var(--th-shop-live-punkt, #ea580c); }
.vs-raster { display: grid; grid-template-columns: 250px minmax(320px, 1fr) minmax(360px, 1.2fr); gap: 10px; align-items: stretch; flex: 1 1 auto; min-height: 320px; }
.vs-apis { overflow: auto; border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 6px; background: var(--th-liste, #fff); padding: 4px 0; }
.vs-api { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--th-beschriftung, #334155); }
.vs-api a { color: inherit; opacity: .6; } .vs-api a:hover { opacity: 1; }
.vs-ep { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 10px 3px 14px; font-size: .8rem; cursor: pointer; }
.vs-ep:hover { background: var(--th-auswahl, #e0f2ef); }
.vs-ep.an { background: var(--th-shop-auswahl, #ccfbf1); font-weight: 600; }
.vs-ep b { margin-left: auto; font-size: .66rem; font-weight: 600; background: var(--th-tabellenkopf, #f1f5f9); border-radius: 8px; padding: 0 5px; }
.vs-m { display: inline-block; min-width: 46px; text-align: center; font-size: .62rem; font-weight: 700; border-radius: 3px; padding: 1px 3px; color: #fff; background: #64748b; flex: none; }
.vs-m-get { background: #0f766e; } .vs-m-post { background: #2563eb; } .vs-m-delete { background: #b91c1c; } .vs-m-put { background: #a16207; }
.vs-anfrage, .vs-antwort { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow: auto; margin: 0; }
.vs-beschreibung { font-size: .82rem; }
.vs-url { display: flex; align-items: flex-start; gap: 6px; font-size: .75rem; min-width: 0; }
.vs-url code { word-break: break-all; color: var(--th-beschriftung, #1e293b); }
.vs-param { grid-template-columns: 140px minmax(0, 1fr); }
.vs-body-kopf { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; }
.vs-body { width: 100%; min-height: 220px; flex: 1 1 auto; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); padding: 6px; resize: vertical; }
.vs-senden { gap: 10px; }
.vs-warnung { font-size: .76rem; color: #b45309; }
.vs-fehler { color: #b91c1c; }
.vs-status { gap: 8px; flex-wrap: wrap; }
.vs-json, .vs-details pre { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; white-space: pre-wrap; word-break: break-word; background: var(--th-feld, #fff); border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 4px; padding: 6px 8px; flex: 1 1 auto; overflow: auto; min-height: 120px; }
.vs-details summary { cursor: pointer; font-size: .76rem; }
.vs-abrufe { height: 260px; flex: none; padding: 0 12px 10px; display: flex; flex-direction: column; min-height: 0; }
.vs-abrufe .filtertabelle { flex: 1 1 auto; min-height: 0; }
@media (max-width: 1100px) { .vs-raster { grid-template-columns: 1fr; } .vs-apis { max-height: 220px; } }
.vs-raster > .rahmen { grid-column: auto; }
.vs-anfrage > *, .vs-antwort > * { flex-shrink: 0; }
.vs-anfrage > .vs-body, .vs-antwort > .vs-json { flex: 1 1 auto; }


/* ab 3.99.14 (Rene 25.10.2026): Versand – DHL-Connector. Masken wie überall (Regel 19/20); nur Kennzeichen des Versanddienstes und Status farbig (Farbschema). */
.vs-dienst { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 3px; font-weight: 800; font-style: italic; font-size: .78rem; letter-spacing: .04em; }
.vs-dienst.dhl { background: var(--th-versand-dhl, #ffcc00); color: var(--th-versand-dhl-text, #d40511); }
.vs-umg.live { background: var(--th-shop-live, #ffedd5); color: var(--th-shop-live-text, #9a3412); } .vs-umg.live i { background: var(--th-shop-live-punkt, #ea580c); }
.vs-umg { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: .75rem; }
.vs-umg i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.vs-meldung { margin: 6px 12px 0; padding: 6px 10px; border-radius: 4px; font-size: .8rem; border-left: 4px solid; }
.vs-meldung.ok { background: var(--th-shop-stage, #ccfbf1); color: var(--th-shop-stage-text, #115e59); border-color: var(--th-shop-stage-punkt, #0d9488); }
.vs-meldung.fehler { background: #fef2f2; color: var(--th-versand-fehler, #b91c1c); border-color: var(--th-versand-fehler, #b91c1c); }
.vs-status { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: .75rem; line-height: 18px; background: #e5e7eb; color: #374151; }
.vs-status.angelegt { background: var(--th-versand-dhl, #ffcc00); color: #1f2937; }
.vs-status.gedruckt { background: #dbeafe; color: #1e40af; }
.vs-status.abgeschlossen { background: var(--th-shop-stage, #ccfbf1); color: var(--th-shop-stage-text, #115e59); }
.vs-status.storniert { background: #fee2e2; color: var(--th-versand-fehler, #b91c1c); text-decoration: line-through; }
td.vs-st.storniert { color: var(--th-versand-fehler, #b91c1c); text-decoration: line-through; }
td.vs-st.angelegt { font-weight: 600; }
td.vs-st-live { color: var(--th-shop-live-text, #9a3412); }
.vs-sendungen .vs-nr { max-width: 70px; } .vs-sendungen .vs-plz, .sh-std .vs-plz { max-width: 80px; }
.sh-std .feld-eingabe > .vs-mass, .vs-mass { width: 64px; }
.vs-haupt:not(:disabled) { font-weight: 700; }
.vs-sofort { font-size: .78rem; white-space: nowrap; }
a.mf-knopf.aus { opacity: .4; pointer-events: none; }
.vs-etikett-rahmen { min-height: 360px; display: flex; flex-direction: column; }
.vs-etikett { flex: 1 1 auto; width: 100%; min-height: 340px; border: 1px solid var(--th-rahmen, #cfd8e3); background: #fff; }
/* Versand: kurze Felder wirklich kurz (sonst gewinnt width:100% von .sh-std), zwei Spalten mit breiteren Beschriftungen */
.vs-maske .sh-std .feld-eingabe > :is(input, select).sh-std-kurz { width: 130px; flex: 0 0 auto; }
.vs-maske .sh-std .feld-eingabe > input.vs-mass { width: 64px; flex: 0 0 auto; }
.vs-maske .sh-std .feld-eingabe > input.vs-nr { width: 70px; flex: 0 0 auto; }
.vs-maske .sh-std .feld-eingabe > input.vs-plz { width: 80px; flex: 0 0 auto; }
.vs-maske .sh-zwei { grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); }
.vs-maske .sh-std .feld { --label: 160px; }
.vs-maske .feld-eingabe.sh-tf-zeile { flex-wrap: wrap; }
.vs-maske .feld-eingabe.sh-tf-zeile:has(> input:not([type=checkbox])) { flex-wrap: nowrap; }
.vs-maske .sh-std .feld-eingabe.sh-tf-zeile > input:not([type=checkbox]):not(.vs-nr):not(.vs-plz):not(.vs-mass) { width: auto; flex: 1 1 auto; }

/* ab 3.99.15 (Rene 25.10.2026): Inventar – Gruppen einklappbar (je Benutzer gemerkt), Stift wenn gefüllt; Teile eines Sets */
.inv-gruppe > legend.inv-klapp { cursor: pointer; user-select: none; }
.inv-gruppe > legend.inv-klapp:hover { color: var(--mf-blau, #2f5fae); }
.inv-gruppe .inv-pfeil { display: inline-block; width: 1em; font-size: .8em; color: #64748b; }
.inv-gruppe .inv-stift { font-size: 14px !important; width: 14px; height: 14px; color: #43a047; margin-left: 5px; vertical-align: -2px; }
.inv-gruppe.zu > :not(legend) { display: none !important; }
.inv-gruppe.zu { padding-bottom: 0; min-height: 0; }
.inv-teile { flex-wrap: wrap; gap: 4px; }
.inv-teil { border: 1px solid var(--th-rahmen, #cfd8e3); background: #fff; border-radius: 10px; padding: 0 8px; font: inherit; font-size: .78rem; line-height: 20px; cursor: pointer; }
.inv-teil:hover { border-color: var(--mf-blau, #2f5fae); color: var(--mf-blau, #2f5fae); }
/* ab 3.99.15: Inventar – Liste links oder unten, Teiler dazwischen, Liste als FilterTabelle mit Sets als Baum */
.inv-raster.inv-links { grid-template-columns: var(--inv-l, minmax(0, 1.4fr)) 8px minmax(380px, 1fr); gap: 0; }
.inv-raster.inv-unten { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--inv-o, 60%) 8px minmax(140px, 1fr); gap: 0; }
.inv-raster.inv-unten > .inv-detail { order: 1; overflow: auto; min-height: 0; }
.inv-raster.inv-unten > .inv-griff { order: 2; }
.inv-raster.inv-unten > .inv-liste { order: 3; min-height: 0; }
.inv-griff { cursor: col-resize; touch-action: none; border-radius: 3px; position: relative; }
.inv-griff::after { content: ""; position: absolute; left: 3px; right: 3px; top: 30%; bottom: 30%; border-left: 2px dotted #c3cfdc; }
.inv-unten > .inv-griff { cursor: row-resize; }
.inv-unten > .inv-griff::after { left: 40%; right: 40%; top: 3px; bottom: 3px; border-left: 0; border-top: 2px dotted #c3cfdc; }
.inv-griff:hover, .inv-raster.zieht > .inv-griff { background: rgba(47, 95, 174, .25); }
.inv-raster.zieht { user-select: none; }
.inv-links > .inv-detail { padding-left: 6px; }
.inv-unten > .inv-liste { padding-top: 4px; }
.inv-liste .inv-ft { flex: 1 1 auto; min-height: 0; }
.inv-liste .inv-filter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* Maske oben breit: Gruppen in Spalten nebeneinander */
.inv-unten .inv-gruppen { column-width: 440px; column-gap: 12px; }
.inv-unten .inv-gruppen > .rahmen { break-inside: avoid; display: block; width: 100%; box-sizing: border-box; margin-top: 0; margin-bottom: 8px; }
/* Baum in der Liste */
.inv-bez { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.inv-bez.inv-kind { padding-left: 18px; }
.inv-ast { color: #94a3b8; margin-right: 2px; }
.inv-auf { border: 0; background: transparent; width: 16px; padding: 0; cursor: pointer; color: #475569; font-size: .8rem; }
.inv-auf:disabled { cursor: default; color: #cbd5e1; }
tr.inv-setzeile td { font-weight: 500; }
tr.inv-kindzeile td { background: color-mix(in srgb, var(--th-formular, #eef3f8) 35%, transparent); }
.inv-mini-zelle { display: inline-flex; align-items: center; justify-content: center; height: 20px; }
.inv-mini-zelle .inv-mini { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; }
@media (max-width: 1100px) {
    .inv-raster.inv-links, .inv-raster.inv-unten, .inv-raster.inv-oben { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .inv-raster > .inv-griff { display: none; }
    .inv-raster.inv-links, .inv-raster.inv-unten, .inv-raster.inv-oben { flex: none; }
    .inv-raster > .inv-detail { overflow: visible !important; }
    .inv-raster > .inv-liste { min-height: 60vh; }
    .ansicht-formular.inv-ansicht { overflow: auto; }
    .inv-unten .inv-gruppen { column-width: auto; columns: 1; }
}

/* ab 3.99.15: Datenbrücke (Administration → Import/Export) – Quellen ansehen, Felder suchen */
.dbr .dbr-leiste { gap: 8px; }
.dbr-reiter { display: inline-flex; gap: 2px; border-bottom: 1px solid var(--th-rahmen, #aebccc); }
.dbr-reiter button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; font-size: .82rem; border-radius: 3px 3px 0 0; }
.dbr-reiter button:hover { background: rgba(255,255,255,.35); }
.dbr-reiter button.an { color: var(--mf-blau); font-weight: 600; background: rgba(255,255,255,.55); box-shadow: inset 0 -2px 0 var(--mf-blau); }
.dbr-quelle-titel { font-size: .8rem; font-weight: 600; }
.dbr-quelle { min-width: 220px; height: 26px; font: inherit; font-size: .8rem; }
.dbr-suche { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; flex-wrap: wrap; }
.dbr-art { display: inline-flex; border: 1px solid var(--th-feldrand, #9fb0c4); border-radius: 4px; overflow: hidden; }
.dbr-art button { all: unset; cursor: pointer; padding: 4px 12px; font-size: .8rem; }
.dbr-art button.an { background: var(--mf-blau, #2f5fae); color: #fff; }
.dbr-eingabe { flex: 1 1 360px; max-width: 640px; }
.dbr-eingabe input { font-size: .85rem; }
.dbr-haken { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; white-space: nowrap; }
.dbr-fortschritt { width: 160px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.12); overflow: hidden; }
.dbr-fortschritt span { display: block; height: 100%; background: var(--mf-blau, #2f5fae); transition: width .3s; }
.dbr-laeuft { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbr-start { display: flex; gap: 14px; align-items: flex-start; padding: 24px; font-size: .85rem; }
.dbr-start > .mud-icon-root { font-size: 2.4rem; opacity: .5; }
.dbr-raster { flex: 1 1 auto; min-height: 260px; display: grid; grid-template-columns: minmax(200px, 1fr) var(--dbr-m, 330px) var(--dbr-r, 46%); gap: 8px; padding: 0 12px 8px; }
.dbr-raster.zieht { user-select: none; }
.dbr-spalte { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 4px; padding: 4px 6px 6px; }
.dbr-spalte > .filtertabelle { flex: 1 1 auto; min-height: 0; }
.dbr-kopf { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 2px 0 4px; white-space: nowrap; overflow: hidden; }
.dbr-nr { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mf-blau, #2f5fae); color: #fff; font-size: .7rem; flex: none; }
.dbr-tabname { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.dbr-filterhinweis { font-weight: 400; font-size: .72rem; padding: 0 6px; border-radius: 8px; background: rgba(47,95,174,.15); }
.dbr-filterhinweis.knopf { border: 1px solid transparent; cursor: pointer; color: inherit; font-family: inherit; line-height: 1.5; }
.dbr-filterhinweis.knopf:hover { border-color: var(--mf-blau); }
.dbr-filterhinweis.knopf.an { background: #fff3b0; border-color: #d9a400; }
.dbr-leer { padding: 10px 4px; font-size: .8rem; }
.dbr-feldliste { flex: 1 1 auto; min-height: 0; overflow: auto; }
.dbr-feld { display: grid; grid-template-columns: 12px 26px minmax(80px, auto) minmax(0, 1fr); align-items: center; gap: 4px; height: 22px; padding: 0 4px; font-size: .78rem; border-radius: 3px; cursor: pointer; }
.dbr-feld:hover { background: rgba(47,95,174,.10); }
.dbr-feld.an { background: rgba(47,95,174,.22); }
.dbr-feld.treffer .dbr-feldname { background: #fff3a3; color: #222; border-radius: 2px; padding: 0 2px; }
.dbr-griff { opacity: .35; cursor: grab; }
.dbr-art-zeichen { font-size: .68rem; opacity: .65; text-align: center; }
.dbr-feldname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbr-beispiel { opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.dbr-tabelle { flex: 1 1 auto; min-height: 0; overflow: auto; }
.dbr-tabelle table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .75rem; }
.dbr-tabelle th { position: sticky; top: 0; z-index: 1; background: var(--th-formular, #dfe7f0); text-align: left; padding: 2px 6px; white-space: nowrap; border-bottom: 1px solid var(--th-rahmen, #aebccc); }
.dbr-tabelle td { padding: 1px 6px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(0,0,0,.06); }
.dbr-tabelle td.leer { opacity: .35; }
.dbr-tabelle .dbr-an { background: rgba(47,95,174,.18); }
.dbr-tabelle th.dbr-treffer-spalte { background: #fff3a3; color: #222; }
.dbr-tabelle td.wert-treffer { background: #fff3a3; color: #222; font-weight: 600; }
.dbr-sicht { font-style: italic; }
.dbr-treffer { height: 230px; flex: none; display: flex; flex-direction: column; min-height: 0; margin: 0 12px 10px; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 4px; padding: 4px 6px 6px; }
.dbr-treffer .filtertabelle { flex: 1 1 auto; min-height: 0; }
.dbr-fehlerzeile { opacity: .55; font-style: italic; }
@media (max-width: 1100px) { .dbr-raster { grid-template-columns: 1fr; } .dbr-raster .spalten-griff { display: none; } .dbr-spalte { min-height: 260px; } }

/* ab 3.99.15: Versand → Sendungsverfolgung (Farben je Status aus dem Farbschema, ThemaFarben „verfolgung-*“) */
.vv-ansicht .vv-zwei { grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.2fr); }
.vv-neu { max-width: 900px; }
.vv-eingabe { width: 100%; min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; margin: 6px 0; resize: vertical; }
.vv-status { display: inline-block; padding: 0 9px; border-radius: 10px; font-size: .75rem; line-height: 17px; white-space: nowrap; background: #e5e7eb; color: #374151; }
.vv-status.gross { font-size: .85rem; line-height: 24px; padding: 0 12px; border-radius: 12px; font-weight: 600; }
.vv-status.vorbereitet, .vv-status.unterwegs { background: var(--th-verfolgung-unterwegs, #dbeafe); color: #1e40af; }
.vv-status.zustellung { background: var(--th-verfolgung-zustellung, #fef3c7); color: #92400e; }
.vv-status.zugestellt { background: var(--th-verfolgung-zugestellt, var(--mf-gruen-bg)); color: var(--mf-gruen-text); }
.vv-status.problem { background: var(--th-verfolgung-problem, #fee2e2); color: var(--th-versand-fehler, #b91c1c); }
td.vv-st.vorbereitet, td.vv-st.unterwegs { color: #1e40af; }
td.vv-st.zustellung { color: #92400e; font-weight: 600; }
td.vv-st.zugestellt { color: var(--mf-gruen-text); }
td.vv-st.problem { color: var(--th-versand-fehler, #b91c1c); font-weight: 600; }
td.vv-st.neu { color: #64748b; font-style: italic; }
.vv-stand { display: flex; flex-direction: column; min-height: 0; }
.vv-kopf { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 8px; }
.vv-kopf-text { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; }
.vv-zugestellt { color: var(--mf-gruen-text); font-weight: 600; }
.vv-fehler { color: var(--th-versand-fehler, #b91c1c); font-size: .78rem; margin-bottom: 6px; }
.vv-verlauf { position: relative; overflow: auto; flex: 1; min-height: 60px; max-height: 320px; padding-left: 4px; }
.vv-ereignis { display: grid; grid-template-columns: 14px 128px 1fr; gap: 8px; align-items: start; font-size: .78rem; padding: 3px 0; position: relative; }
.vv-ereignis::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -6px; width: 2px; background: var(--th-rahmen, #d5dedc); }
.vv-ereignis:last-child::before { display: none; }
.vv-punkt { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; background: #94a3b8; position: relative; z-index: 1; }
.vv-ereignis.vorbereitet .vv-punkt, .vv-ereignis.unterwegs .vv-punkt { background: #3b82f6; }
.vv-ereignis.zustellung .vv-punkt { background: #f59e0b; }
.vv-ereignis.zugestellt .vv-punkt { background: #16a34a; }
.vv-ereignis.problem .vv-punkt { background: var(--th-versand-fehler, #b91c1c); }
.vv-verlauf.fertig .vv-ereignis .vv-punkt { background: #16a34a; } /* ab 3.99.269: Paket angekommen – der ganze Weg grün */
.vv-ereignis:first-child .vv-text { font-weight: 600; }
.vv-zeit { color: #64748b; white-space: nowrap; }
.vv-abfrage { margin-top: 6px; }
.vv-filter { display: inline-flex; border: 1px solid var(--th-feldrand, #c9d3d1); border-radius: 4px; overflow: hidden; margin-right: 8px; }
.vv-filter button { border: 0; background: transparent; padding: 0 9px; height: 24px; font-size: .78rem; cursor: pointer; color: inherit; border-right: 1px solid var(--th-feldrand, #c9d3d1); }
.vv-filter button:last-child { border-right: 0; }
.vv-filter button b { font-weight: 600; opacity: .65; margin-left: 3px; }
.vv-filter button.an { background: var(--th-akzent, #0f766e); color: #fff; }
.vv-filter button.an b { opacity: .9; }
@media (max-width: 1100px) { .vv-ansicht .vv-zwei { grid-template-columns: 1fr; } }

/* ab 3.99.16: Vom DHL-Konto holen (Popup) */
.pu-fenster:has(.kh) { width: min(720px, 96vw); }
.pu-inhalt:has(.kh) { display: block; }
.kh { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.kh > * { max-width: 100%; }
.kh .inv-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kh .inv-zeile > label:first-child { width: 160px; flex: none; }
.kh .inv-zeile input:not([type]) { flex: 1; min-width: 160px; }
.kh textarea.vv-eingabe { width: 100%; box-sizing: border-box; }
.kh .vs-meldung { margin: 0; }
.vs-meldung.info { border-color: var(--th-akzent, #0f766e); }
.kh-wahl { display: flex; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; overflow: hidden; align-self: flex-start; }
.kh-wahl button { border: 0; border-right: 1px solid var(--th-feldrand, #cbd5e1); background: transparent; padding: 3px 10px; font-size: .78rem; cursor: pointer; color: inherit; }
.kh-wahl button:last-child { border-right: 0; }
.kh-wahl button.an { background: var(--th-akzent, #0f766e); color: #fff; }
.kh .inv-zeile input[type=date] { width: 130px; }
.kh .vv-eingabe { min-height: 120px; }
.kh-fuss { display: flex; align-items: center; gap: 8px; }
.kh-fuss .dbr-fortschritt { flex: 1; }
.kh-ohne { max-height: 90px; overflow: auto; font-size: .75rem; word-break: break-word; }

/* ab 3.99.16: Vom DHL-Konto holen (Popup) */
.pu-fenster:has(.kh) { width: min(720px, 96vw); }
.pu-inhalt:has(.kh) { display: block; }
.kh { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.kh > * { max-width: 100%; }
.kh .inv-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kh .inv-zeile > label:first-child { width: 160px; flex: none; }
.kh .inv-zeile input:not([type]) { flex: 1; min-width: 160px; }
.kh textarea.vv-eingabe { width: 100%; box-sizing: border-box; }
.kh .vs-meldung { margin: 0; }
.vs-meldung.info { border-color: var(--th-akzent, #0f766e); }
.kh-wahl { display: flex; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; overflow: hidden; align-self: flex-start; }
.kh-wahl button { border: 0; border-right: 1px solid var(--th-feldrand, #cbd5e1); background: transparent; padding: 3px 10px; font-size: .78rem; cursor: pointer; color: inherit; }
.kh-wahl button:last-child { border-right: 0; }
.kh-wahl button.an { background: var(--th-akzent, #0f766e); color: #fff; }
.kh .inv-zeile input[type=date] { width: 130px; }
.kh .vv-eingabe { min-height: 120px; }
.kh-fuss { display: flex; align-items: center; gap: 8px; }
.kh-fuss .dbr-fortschritt { flex: 1; }
.kh-ohne { max-height: 90px; overflow: auto; font-size: .75rem; word-break: break-word; }
/* ab 3.99.16: Datenbrücke – Tabelle von Hand öffnen */
.dbr-hand { padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.dbr-hand .vs-meldung { margin: 0; }
.dbr-hand-zeile { display: flex; gap: 6px; }
.dbr-hand-zeile textarea { flex: 1; min-height: 26px; resize: vertical; font: inherit; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
/* ab 3.99.17: Auswahlfelder im Shop-Artikel (statt select/datalist) – Pflicht gelb wie die übrigen Felder, Breiten wie vorher */
.sh-std .feld-eingabe .aw.pflicht input:not(:disabled), .sh-einst-steuer .aw.pflicht input:not(:disabled) { background: var(--mf-pflicht, #fff1bf); }
.sh-tf .aw.pflicht input:not(:disabled) { background: #fdf6e3; }
.feld-eingabe > .aw { flex: 1; min-width: 0; }
.aw.sh-std-kurz { max-width: 200px; }
.aw.sh-std-mittel { max-width: none; }
/* ab 3.99.17 (Rene 25.10.2026 19:45): Datenbrücke – Felder und Inhalt als FilterTabelle (wie Tabellen) */
.dbr-felder .filtertabelle td.dbr-art-zeichen { text-align: center; }
.dbr-felder .filtertabelle td.dbr-feldname { font-weight: 600; }
.dbr-felder .filtertabelle td.dbr-feldname.treffer { background: #fff3a3 !important; color: #222; }
.dbr-felder .filtertabelle td.dbr-beispiel { opacity: .7; font-style: italic; }
.dbr-inhalt .filtertabelle td.dbr-null::before { content: "∅"; opacity: .35; }
.dbr-inhalt .filtertabelle td.dbr-an, .dbr-inhalt .filtertabelle th.dbr-an { background: rgba(47,95,174,.18) !important; }
.dbr-inhalt .filtertabelle th.dbr-treffer-spalte { background: #fff3a3 !important; color: #222; }
.dbr-inhalt .filtertabelle td.wert-treffer { background: #fff3a3 !important; color: #222; font-weight: 600; }
/* ab 3.99.17 (Rene 25.10.2026): Datensicherung – Pfad auf dem Server unter dem Dateinamen */
.sich-pfad { font-family: Consolas, "Courier New", monospace; font-size: .72rem; opacity: .75; user-select: all; white-space: normal; overflow-wrap: anywhere; }
/* ab 3.99.17: Cloud Backup – Protokoll je Sicherung */
.cb-protokoll-zeile > td { padding: 6px 8px 10px !important; }
.cb-protokoll-kopf { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.cb-protokoll { max-height: 360px; overflow: auto; margin: 4px 0 0; padding: 6px 8px; font: .72rem/1.35 Consolas, "Courier New", monospace; white-space: pre-wrap; border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); }
.cb-kacheln small.cb-fehlertext { display: block; color: #b42318; }
.sich-datei { overflow-wrap: anywhere; min-width: 220px; }
/* ab 3.99.17 (Rene 25.10.2026): Datenbrücke → Vorlagen – Quellen links (Kennfarbe je Quelle), Ziel rechts, Vorschau unten */
.vl { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 6px; padding: 0 12px 10px; overflow: auto; }
.vl-leiste { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 4px; }
.vl-leiste .vl-wahl { width: 280px; }
.vl-haken { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
.vl-zeitplan { display: inline-flex; align-items: center; gap: 4px; }
.vl-zeitplan .vl-zp { width: 160px; }
.vl-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vl-kopf label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.vl-kopf label > span { font-weight: 600; }
.vl-name input { width: 340px; height: 24px; font: inherit; font-size: .8rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.vl-ziel .aw { width: 280px; }
.vl-letzter { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-raster { display: grid; grid-template-columns: minmax(360px, 1fr) var(--vl-z, 440px); gap: 10px; align-items: start; }
.vl-quellen { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vl-quelle { border: 1px solid var(--th-rahmen, #aebccc); border-left: 5px solid var(--qf); border-radius: 5px; padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; }
.vl-q-kopf { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.vl-q-kennung { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--qf); color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.vl-q-felder { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.vl-q-felder label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.vl-q-felder label > span { font-weight: 600; min-width: 64px; }
.vl-q-felder .aw { width: 260px; }
.vl-q-felder label.vl-breit { flex: 1 1 320px; }
.vl-q-felder input:not([type=checkbox]) { height: 24px; font: inherit; font-size: .78rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.vl-q-felder label.vl-breit input { flex: 1; }
.vl-zahl { width: 80px; }
.vl-verkn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; }
.vl-verkn-titel { font-weight: 600; min-width: 64px; }
.vl-verkn .vl-ablage { min-width: 180px; }
.vl-gleich { font-weight: 700; opacity: .6; }
.vl-vorschlaege { display: flex; gap: 6px; flex-wrap: wrap; }
.vl-vorschlag { all: unset; cursor: pointer; font-size: .75rem; padding: 2px 8px; border-radius: 10px; border: 1px dashed var(--qf); }
.vl-vorschlag:hover { background: rgba(0,0,0,.05); }
.vl-angleichen { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .75rem; }
.vl-angleichen label { display: inline-flex; align-items: center; gap: 4px; }
.vl-kurz { width: 54px; height: 20px; font: inherit; font-size: .75rem; padding: 0 4px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.vl-feldsuche { max-width: 280px; }
.vl-feldsuche input { height: 22px; font-size: .75rem; }
.vl-feldliste { max-height: 260px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px 10px; }
.vl-feld { display: grid; grid-template-columns: 12px 26px minmax(70px, auto) minmax(0, 1fr) 14px; align-items: center; gap: 4px; height: 22px; padding: 0 4px; font-size: .76rem; border-radius: 3px; cursor: grab; user-select: none; }
.vl-feld:hover { background: rgba(0,0,0,.05); }
.vl-feld.gewaehlt { background: var(--qf); color: #fff; }
.vl-feld.gewaehlt .dbr-beispiel { color: #fff; opacity: .85; }
.vl-feldname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--qf); }
.vl-feld.gewaehlt .vl-feldname { color: #fff; }
.vl-feld.benutzt .vl-feldname { text-decoration: underline dotted; }
.vl-benutzt { color: var(--qf); font-weight: 700; }
.vl-q-neu { align-self: flex-start; }
.vl-zielspalte { position: relative; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 5px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
.vl-zieltext { margin-bottom: 4px; }
.vl-hinweis { font-size: .75rem; padding: 3px 8px; border-radius: 4px; background: rgba(47,95,174,.12); display: flex; align-items: center; gap: 6px; }
.vl-zf { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 3px 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.vl-zf-name { font-size: .78rem; font-weight: 600; }
.vl-pflicht { color: #b42318; margin-left: 2px; }
.vl-zf.pflicht-offen .vl-zf-name { color: #b42318; }
.vl-zf.pflicht-offen > .vl-ablage { border-color: #b42318; background: rgba(180,35,24,.05); }
.vl-zf-mehr { grid-column: 2; display: flex; gap: 6px; }
.vl-zf-mehr .vl-ablage { flex: 1; }
.vl-fest { width: 120px; height: 22px; font: inherit; font-size: .74rem; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.vl-ablage { min-height: 26px; display: flex; align-items: center; padding: 1px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; font-size: .76rem; background: var(--th-feld, #fff); cursor: pointer; overflow: hidden; }
.vl-ablage.leer { border-style: dashed; }
.vl-ablage.klein { min-height: 22px; font-size: .72rem; }
.vl-ablage.bereit.leer { border-color: var(--mf-blau, #2f5fae); background: rgba(47,95,174,.06); }
.vl-ablage .text-zweitrangig { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 8px; border-radius: 10px; background: var(--qf); color: #fff; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vl-chip-x { all: unset; cursor: pointer; padding: 0 4px; opacity: .8; }
.vl-chip-x:hover { opacity: 1; }
.vl-vorschau { border: 1px solid var(--th-rahmen, #aebccc); border-radius: 5px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.vl-vorschau .dbr-tabelle { max-height: 340px; }
.vl-trefferquoten { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.vl-quote { padding: 1px 8px; border-radius: 10px; background: var(--qf); color: #fff; font-size: .75rem; font-weight: 600; }
.vl-meldungen { margin: 0; padding-left: 18px; font-size: .76rem; }
.vl-th-pflicht::after { content: " *"; color: #b42318; }
.dbr-tabelle td.vl-fehlt { color: #b42318; font-style: italic; }
.vl-protokoll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px; }
.vl-protokoll > .filtertabelle { flex: 1 1 auto; min-height: 200px; }
.vl-protokoll-text { border: 1px solid var(--th-rahmen, #aebccc); border-radius: 5px; padding: 6px 8px; max-height: 40%; overflow: auto; }
.vl-protokoll-text pre { margin: 0; font: .75rem/1.4 Consolas, "Courier New", monospace; white-space: pre-wrap; }
@media (max-width: 1100px) { .vl-raster { grid-template-columns: 1fr; } .vl-raster .spalten-griff { display: none; } .vl-zielspalte { position: static; } }
/* ab 3.99.17 (Rene 25.10.2026, Vorbild bitfarm): DMS-Ordnerrechte – freie / zugewiesene Benutzer und Gruppen, Rechte als Haken, Rechtsklick-Menü */
.dms-br { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.dms-br-titel { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; margin-top: 4px; }
.dms-br-filter { margin-left: auto; width: 140px; height: 22px; font: inherit; font-size: .75rem; font-weight: 400; padding: 0 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.dms-br-liste { height: 140px; overflow: auto; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 4px; background: var(--th-feld, #fff); padding: 2px 0; }
.dms-br-eintrag { display: flex; align-items: center; gap: 6px; padding: 1px 8px; font-size: .78rem; cursor: pointer; white-space: nowrap; user-select: none; }
.dms-br-eintrag:hover { background: rgba(0,0,0,.05); }
.dms-br-eintrag.an { background: var(--mf-blau, #2f5fae); color: #fff; }
.dms-br-eintrag.gesperrt { opacity: .6; text-decoration: line-through; }
.dms-br-kurz { margin-left: auto; font-size: .7rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.dms-br-pfeile { display: flex; gap: 10px; }
.dms-br-pfeil { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 4px; background: #16a34a; color: #fff; }
.dms-br-pfeil[disabled] { opacity: .35; cursor: default; }
.dms-br-standard { align-self: stretch; margin-top: 6px; }
.dms-br-rechte { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 4px; }
.dms-br-haken { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.dms-br-anno { border: 1px solid var(--th-rahmen, #aebccc); border-radius: 4px; padding: 4px 8px 6px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; margin-top: 6px; }
.dms-br-anno legend { font-size: .75rem; padding: 0 4px; }
.dms-br-menue-hinter { position: fixed; inset: 0; z-index: 1400; }
.dms-br-menue { position: fixed; z-index: 1401; min-width: 240px; display: flex; flex-direction: column; padding: 4px 0; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 5px; background: var(--th-feld, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.dms-br-menue-titel { font-size: .72rem; opacity: .7; padding: 2px 12px 4px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 2px; }
.dms-br-menue button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: .8rem; }
.dms-br-menue button:hover:not([disabled]) { background: rgba(47,95,174,.12); }
.dms-br-menue button[disabled] { opacity: .4; cursor: default; }

/* ab 3.99.17: Import/Export → DMS-Übernahme (bisheriges DMS, z. B. bitfarm-Archiv) */
.dmu { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.dmu-einrichtung { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 10px; padding: 0 12px 12px; overflow: auto; align-content: start; }
.dmu-einrichtung fieldset.rahmen { margin: 0; min-width: 0; }
.dmu-haken { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.dmu-haken label, .dmu-haken-einzeln { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; white-space: nowrap; }
.dmu-hinweis { display: block; margin-top: 6px; }
.dmu-hoechstens { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--mf-text-2); white-space: nowrap; }
.dmu-hoechstens input { width: 64px; height: calc(24px * var(--s)); font-size: .78rem; padding: 0 4px; }
.dmu-tab { width: 100%; border-collapse: collapse; font-size: .8rem; margin-bottom: 8px; }
.dmu-tab th { text-align: left; font-weight: 600; padding: 2px 6px; border-bottom: 1px solid var(--th-rahmen, #aebccc); }
.dmu-tab td { padding: 2px 6px; vertical-align: middle; }
.dmu-fehlend { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 4px 8px; font-size: .8rem; background: #fff7e6; border: 1px solid #f0c36d; border-radius: 4px; }
.dmu-fehlend span { flex: 1; }
.dmu-tab tr.ohne td:first-child { color: var(--th-versand-fehler, #b91c1c); }
.dmu-stand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 12px 6px; padding: 6px 10px; border-radius: 4px; border-left: 4px solid var(--mf-blau, #2f5fae); font-size: .8rem; background: rgba(255,255,255,.45); }
.dmu-stand.fertig { border-left-color: #0d9488; }
.dmu-ziel.falsch { background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8; }
.dmu-warn { margin-top: 4px; padding: 5px 8px; border-radius: 6px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: .78rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dmu-pfad { display: flex; gap: 4px; align-items: center; } .dmu-pfad > input { flex: 1; min-width: 0; }
.dmu-ziel { display: inline-block; font-family: Consolas, monospace; font-size: .8rem; padding: 2px 8px; border-radius: 4px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ab 3.99.35: Ablauf-Leiste der DMS-Übernahme */
.dmu-ablauf { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 12px 8px; flex: none; }
.dmu-schritt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: #fff; border-radius: 16px; padding: 3px 10px 3px 4px; font: inherit; font-size: .8rem; color: #475569; cursor: pointer; }
.dmu-schritt:hover { border-color: #94a3b8; }
.dmu-symbol { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; font-size: .8rem; }
.dmu-schritt.fertig { border-color: #86efac; background: #f0fdf4; color: #166534; }
.dmu-schritt.fertig .dmu-symbol { background: #16a34a; color: #fff; font-weight: 700; }
.dmu-schritt.naechster { border-color: #fdba74; background: #fff7ed; color: #9a3412; font-weight: 600; box-shadow: 0 0 0 2px rgba(251,146,60,.25); }
.dmu-pfeil { color: #94a3b8; font-size: 1rem; }
@media (max-width: 700px) { .dmu-pfeil { display: none; } .dmu-schritt span + span { font-size: .75rem; } }
.dmu-zahlen b.rot, .dmu-liste .rot { color: var(--th-versand-fehler, #b91c1c); }
.dmu-meldungen { margin: 0 12px 8px; max-height: 180px; overflow: auto; font-size: .74rem; white-space: pre-wrap; border: 1px solid var(--th-rahmen, #aebccc); border-radius: 4px; padding: 6px 8px; }
.dmu-summe { padding: 6px 12px; }
.dmu-liste { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; padding: 0 12px 8px; }
.dmu-liste > .filtertabelle { flex: 1 1 auto; min-height: 0; }
.dmu-liste tr.dmu-aus td { opacity: .55; }
.dmu .vl-wahl { width: 300px; flex: none; }
.dmu-stand, .dmu-meldungen, .dmu .vs-meldung, .dmu-summe { flex: none; }
.dms-feld .aw, .dms-feld .aw input, .dms-hand .aw input { font-weight: 400; }
.dbr-fehlertext { font-size: .74rem; color: var(--th-versand-fehler, #b91c1c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 50%; }
/* ab 3.99.17: Überschriften der Datenbrücke nicht mehr abgeschnitten (Rene 22:10); waagrechter Teiler über der Trefferliste */
.dbr-kopf { flex: none; min-height: 22px; line-height: 18px; }
.hoehen-griff { flex: none; height: 8px; margin: -4px 12px 0; cursor: row-resize; position: relative; }
.hoehen-griff::after { content: ""; position: absolute; left: calc(50% - 24px); top: 2px; width: 48px; height: 4px; border-radius: 2px; background: var(--th-rahmen, #aebccc); }
.hoehen-griff:hover::after { background: var(--mf-blau, #2f5fae); }
.hoehen-griff.unten-griff { margin: 2px 12px -4px; }
.vl-bsp-hinweis { display: inline-block; margin: 0 0 4px 8px; }
body.zieht-hoehe { user-select: none; cursor: row-resize; }
/* ab 3.99.20: Bestellstatus-Filter oben in Shop → Bestellungen */
.sh-statusfilter { margin: 0 4px 0 2px; white-space: nowrap; }
.aw.sh-statusfilter-feld { width: 260px; }
/* ab 3.99.20: E-Mail in Listen blau, Klick kopiert (mrr.js data-kopieren) */
.sh-mail { color: var(--th-link, #1d4ed8); cursor: copy; }
.sh-mail:hover { text-decoration: underline; }
.kopiert-hinweis { position: fixed; transform: translateY(-50%); z-index: 3000; padding: 1px 8px; border-radius: 9px; font-size: .72rem; background: var(--mf-gruen-bg, #dcfce7); color: var(--mf-gruen-text, #166534); box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: none; white-space: nowrap; }
td.sh-fett { font-weight: 600; }
/* ab 3.99.208: Bestellungen „In Bearbeitung“ (noch nicht ausgeliefert) leicht rot – Farbe im Farbschema */
tr.sh-in-bearbeitung:not(.aktiv) > td { background: var(--th-shop-in-bearbeitung, #fee2e2); }
/* ab 3.99.208: Transaktions-/Sendungsnummern in Festbreitenschrift mit durchgestrichener 0 (Schriften des Systems, keine Fremdschrift) */
td.sh-mono, .sh-mono { font-family: Consolas, "Cascadia Mono", Menlo, "DejaVu Sans Mono", "Liberation Mono", monospace; font-variant-numeric: slashed-zero; font-feature-settings: "zero" 1; font-size: .95em; }
/* ab 3.99.20: automatischer Shop-Abgleich */
.sh-auto { display: inline-flex; align-items: center; gap: 6px; }
.sh-auto input { width: 80px; }
/* ab 3.99.241 (Rene 10.11.2026 16:23 „man sieht die Felder kaum“): Zahlenfelder in Shop-Verbindungen mit Rahmen und Fläche wie die anderen Felder */
.sh-auto input[type=number], .sh-kontrolle input[type=number] {
    border: 1px solid var(--th-feldrand, #94a3b8); background: var(--th-feld, #fff); border-radius: 4px;
    padding: 3px 6px; height: 28px; font: inherit; text-align: right; box-sizing: border-box;
}
.sh-auto input[type=number]:focus, .sh-kontrolle input[type=number]:focus { outline: 2px solid var(--mf-akzent, #0f766e); outline-offset: -1px; }
.sh-auto-fehler { color: var(--th-versand-fehler, #b91c1c); display: block; }
/* ab 3.99.20 (Rene 25.10.2026 18:41/18:44): Shop-Artikel – Freitextfelder zweispaltig, Eigenschaften links/rechts */
.sh-frei2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.sh-frei2 > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sh-frei2 .feld { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 6px; }
.sh-frei2 .feld.oben { align-items: start; }
.sh-frei2 .feld > label { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-frei2 .feld-eingabe input, .sh-frei2 .feld-eingabe textarea { width: 100%; }
textarea.sh-ft-mehr { field-sizing: content; min-height: 2.6em; max-height: 16em; resize: vertical; }
@media (max-width: 1100px) { .sh-frei2 { grid-template-columns: minmax(0, 1fr); } }
.sh-eig2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.sh-eig2-links { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sh-eig2-zeile { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px; align-items: start; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.sh-eig2-zeile:hover { border-color: var(--th-feldrand, #cbd5e1); }
.sh-eig2-zeile.an { border-color: var(--mf-blau, #2f5fae); box-shadow: inset 3px 0 0 var(--mf-blau, #2f5fae); }
.sh-eig2-zeile.ziel { outline: 2px dashed var(--mf-blau, #2f5fae); }
.sh-eig2-name { font-size: .78rem; font-weight: 600; padding-top: 2px; }
.sh-eig2-rechts { border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 6px; padding: 6px; min-width: 0; display: flex; flex-direction: column; max-height: 420px; }
.sh-eig2-kopf { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.sh-eig2-kopf .sh-suche { flex: 1; min-width: 0; }
.sh-eig2-optionen { overflow: auto; flex: 1; }
.sh-eig2-option { display: flex; justify-content: space-between; gap: 8px; padding: 2px 6px; font-size: .78rem; cursor: pointer; border-radius: 4px; }
.sh-eig2-option:hover { background: var(--th-zeile-hover, rgba(47, 95, 174, .08)); }
.sh-eig2-option.drin { font-weight: 600; color: var(--mf-gruen-text, #166534); }
.sh-eig2-option small { color: var(--th-text-zweitrangig, #64748b); }
@media (max-width: 1100px) { .sh-eig2 { grid-template-columns: minmax(0, 1fr); } }
/* ab 3.99.21 (Rene 26.10.2026): Briefe – Versand in der Liste klein, Versionen und Protokoll unter der Vorschau */
.korr-stand { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.korr-versand { font-size: .66rem; color: var(--th-text-zweitrangig, #64748b); white-space: nowrap; }
tr.aktiv .korr-versand, .an .korr-versand { color: inherit; opacity: .85; }
.office-protokoll { flex: 0 0 auto; height: 220px; display: flex; flex-direction: column; overflow: hidden; background: var(--th-formular, #fff); border-top: 1px solid var(--mf-linie, #d5dde8); font-size: .74rem; }
.office-protokoll-kopf { display: flex; align-items: center; gap: 6px; font-weight: 600; padding: 4px 10px; }
.office-protokoll-info, .office-protokoll-fassungen { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0 10px 4px; color: var(--th-text-zweitrangig, #475569); }
.office-protokoll-info .rot { color: #b42318; }
.office-protokoll-fassungen a { margin-left: 4px; }
.office-protokoll-liste { width: 100%; border-collapse: collapse; overflow: auto; display: block; flex: 1; padding: 0 10px 6px; }
.office-protokoll-liste td { padding: 1px 6px 1px 0; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,.05); }
.office-protokoll-liste td:first-child { white-space: nowrap; color: var(--th-text-zweitrangig, #64748b); }
.office-protokoll-liste td:nth-child(2) { white-space: nowrap; }
.office-protokoll-liste tr.pa-mail td:last-child { color: var(--mf-blau, #1d4ed8); }
.office-protokoll-liste tr.pa-druck td:last-child, .office-protokoll-liste tr.pa-pdf td:last-child { color: var(--mf-gruen-text, #166534); }
.sm-felder { grid-template-columns: 90px minmax(0, 1fr); display: grid; gap: 4px 8px; align-items: center; margin-bottom: 8px; }
.sm-felder input { width: 100%; }
.sm-anhang { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
/* ab 3.99.22: geschützte Dokumente (private Briefe) ohne Leserecht – unscharf angedeutet */
.dms-verdeckt { position: relative; box-sizing: border-box; width: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 24px 12px; height: 100%; overflow: hidden; user-select: none; }
.dms-verdeckt-blatt { width: min(560px, 92%); aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); padding: 7% 8%; display: flex; flex-direction: column; gap: 2.2%;
    filter: blur(5px); opacity: .9; }
.dms-verdeckt-blatt span { display: block; height: 9px; border-radius: 4px; background: #9aa6b6; margin-bottom: 6px; }
.dms-verdeckt-blatt .vb-kopf { display: flex; justify-content: space-between; margin-bottom: 6%; }
.dms-verdeckt-blatt .vb-kopf span { background: #5b7fb0; height: 14px; }
.dms-verdeckt-blatt .vb-adresse { margin-bottom: 5%; }
.dms-verdeckt-blatt .vb-betreff span { background: #334155; height: 12px; margin-bottom: 4%; }
.dms-verdeckt-blatt .vb-gruss { margin-top: 5%; }
.dms-verdeckt-schild { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    width: min(320px, 86%); box-sizing: border-box; padding: 14px 18px; border-radius: 10px; background: rgba(255,255,255,.88); border: 1px solid var(--th-rahmen, #cbd5e1); box-shadow: 0 4px 18px rgba(15,23,42,.18); color: #1e293b; }
.dms-verdeckt-schild .mud-icon-root { font-size: 2rem; color: #b45309; }
.dms-verdeckt-schild b { font-size: .9rem; }
.dms-verdeckt-schild small { font-size: .74rem; color: #475569; line-height: 1.3; }
.dms-verdeckt.klein { padding: 4px; height: auto; }
.dms-verdeckt.klein .dms-verdeckt-blatt { width: 100%; padding: 8%; filter: blur(2.5px); box-shadow: none; }
.dms-verdeckt.klein .dms-verdeckt-blatt span { height: 4px; margin-bottom: 3px; }
.dms-verdeckt.klein .dms-verdeckt-schild { top: 30%; padding: 4px 8px; gap: 0; }
.dms-verdeckt.klein .dms-verdeckt-schild .mud-icon-root { font-size: 1.2rem; }
.dms-verdeckt.klein .dms-verdeckt-schild b { font-size: .68rem; }
.dms-unscharf { filter: blur(4px); user-select: none; pointer-events: none; opacity: .8; }
.dms-schloss { color: #b45309; font-size: .85em; vertical-align: -2px; margin-right: 3px; filter: none; }
tr.dms-geschuetzt-zeile td { cursor: default; }
.dms-schutz { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: #b45309; font-weight: 600; }
.dms-karte-bild .dms-verdeckt.klein { padding: 0; width: 100%; height: 100%; }
.dms-karte-bild .dms-verdeckt.klein .dms-verdeckt-blatt { aspect-ratio: auto; height: 100%; padding: 10% 12%; gap: 0; }
.dms-karte-bild .dms-verdeckt.klein .dms-verdeckt-blatt span { height: 3px; margin-bottom: 2px; }
.dms-karte-bild .dms-verdeckt.klein .dms-verdeckt-schild { width: auto; top: 50%; transform: translate(-50%, -50%); padding: 2px; background: rgba(255,255,255,.85); border-radius: 50%; }
.dms-karte-bild .dms-verdeckt.klein .dms-verdeckt-schild b { display: none; }
.dms-karte-bild .dms-verdeckt.klein .dms-verdeckt-schild .mud-icon-root { font-size: 1rem; }
/* ab 3.99.22: private Briefe im Office */
.office-privat { display: flex; align-items: center; gap: 6px; font-size: .8rem; margin: 2px 0 6px; cursor: pointer; }
.office-privat.klein { font-size: .74rem; color: var(--th-text-zweit, #64748b); margin-top: 6px; }
.office-privat .mud-icon-root { color: #b45309; }
.office-freigabe { align-items: flex-start; }
.office-freigabe-liste { display: flex; flex-wrap: wrap; gap: 4px; font-size: .76rem; }
.korr-art-wahl { min-width: 140px; max-width: 180px; }
.su-ohne.an-blau { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.office-vorschau-verdeckt { flex: 1; min-height: 0; overflow: hidden; display: flex; }
/* ab 3.99.25: Log je Shop-Artikel rechts unten (unter den Bildern) */
.sh-bildspalte .sh-log { height: 200px; border: 1px solid var(--th-rahmen, #d5dde8); border-radius: 4px; }
.sh-log .office-protokoll-liste td:last-child { white-space: normal; }
.sh-log tr.sh-log-fehler td { color: #b42318; }

/* ab 3.99.27: Administration → Einstellungen → Pflichtfelder */
.pflicht-verwaltung { display: flex; flex-direction: column; gap: 6px; }
.pflicht-verwaltung .pf-suche { min-width: 260px; }
.pflicht-verwaltung .pf-nur { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
.pflicht-verwaltung .pf-hinweis { margin: 0; }
.pf-liste { display: flex; flex-direction: column; gap: 2px; }
.pf-gruppe { font-weight: 700; font-size: .8rem; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--th-rahmen, #d5dde8); }
.pf-maske-kopf { display: flex; justify-content: flex-start; align-items: baseline; gap: 8px; background: none; border: 0; padding: 3px 4px; cursor: pointer; font: inherit; font-size: .8rem; color: inherit; width: 100%; text-align: left; }
.pf-maske-kopf:hover { text-decoration: underline; }
.pf-pfeil { width: 12px; display: inline-block; }
.pf-tabelle { border-collapse: collapse; margin: 2px 0 8px 20px; font-size: .78rem; }
.pf-tabelle th { text-align: left; font-weight: 600; padding: 2px 10px 2px 4px; border-bottom: 1px solid var(--th-rahmen, #d5dde8); }
.pf-tabelle td { padding: 1px 10px 1px 4px; border-bottom: 1px solid var(--th-feldrand, #eef2f7); }
.pf-tabelle .pf-haken { width: 70px; white-space: nowrap; }
.pf-tabelle tr.pf-an td:nth-child(2), .pf-tabelle tr.pf-fest td:nth-child(2) { font-weight: 600; }
.pf-schloss { font-size: .7rem; margin-left: 4px; }

/* ab 3.99.28 (Rene): Aufgaben – oberer Bereich kompakt, Beschriftungen seitlich (nur PC; Handy bleibt wie bisher) */
@media (min-width: 701px) {
    .auf-detail { gap: 4px; }
    .auf-detail .auf-zeile { gap: 10px; align-items: center; }
    .auf-detail .auf-feld.seitlich { flex-direction: row; align-items: center; gap: 6px; min-height: 24px; }
    .auf-detail .auf-feld.seitlich > span:first-child { flex: 0 0 78px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .auf-detail .auf-zeile > .auf-feld.seitlich + .auf-feld.seitlich > span:first-child { flex: 0 0 auto; }
    .auf-detail .auf-feld.seitlich > input, .auf-detail .auf-feld.seitlich > .aw, .auf-detail .auf-feld.seitlich > .auf-personen,
    .auf-detail .auf-feld.seitlich > .auf-bezug-suche, .auf-detail .auf-feld.seitlich > .auf-bezug-wahl, .auf-detail .auf-feld.seitlich > .auf-prio-wahl { flex: 1 1 0; min-width: 0; }
    .auf-detail .auf-feld.seitlich input:not([type=checkbox]), .auf-detail .auf-bezug-suche input { height: 24px; padding: 1px 7px; line-height: 20px; }
    .auf-detail .auf-feld.seitlich.schmal { flex: 0 0 auto; }
    .auf-detail .auf-feld.seitlich.schmal .aw { width: 92px; }
    .auf-detail .auf-feld.seitlich input[type=date] { flex: 0 0 132px; }
    .auf-detail .auf-zeile > .auf-feld.seitlich:has(> input[type=date]) { flex: 0 0 auto; }
    .auf-detail .auf-personen { gap: 3px; }
    .auf-detail .auf-person { padding-top: 0; padding-bottom: 0; }
    .auf-detail .auf-person-neu { width: 150px; flex: 0 0 auto; }
    .auf-detail .auf-person-neu .aw-feld input { height: 22px; font-size: .72rem; border-style: dashed; color: var(--mf-blau, #2f5fae); }
    .auf-detail .auf-bezug-bereich { flex: 0 0 140px; width: 140px; }
    .auf-detail .auf-bezug-suche { align-items: center; }
}
.auf-prio-wahl { display: flex; border-radius: 4px; }
.auf-prio-wahl > .aw { flex: 1; }

/* ab 3.99.28 (Rene): Aufgaben – Liste oben, Eingabe darunter (Umschalter in der Leiste, je Benutzer); Chat rechts bleibt */
.auf-rechts > .spalten-griff.oben { display: none; }
@media (min-width: 701px) {
    .auf-raster.untereinander { grid-template-columns: minmax(0, 1fr) var(--ac, 24%); grid-template-rows: var(--al, 38%) minmax(0, 1fr); }
    .auf-raster.untereinander > .auf-liste { grid-column: 1; grid-row: 1; }
    .auf-raster.untereinander > .auf-rechts { grid-column: 1; grid-row: 2; }
    .auf-raster.untereinander > .auf-chat-spalte { grid-column: 2; grid-row: 1 / span 2; }
    .auf-raster.untereinander > .auf-rechts > .spalten-griff.links { display: none; }
    .auf-raster.untereinander > .auf-rechts > .spalten-griff.oben { display: block; top: -7px; bottom: auto; left: 0; right: 0; width: auto; height: 7px; cursor: row-resize; }
}

/* ab 3.99.29: Einstellungen → DMS → DMS-Pfade */
.dp-rechts { gap: 10px; min-width: 0; }
.dp-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-kopf b { font-size: .9rem; margin-right: 6px; }
.dp-karte { display: flex; flex-direction: column; gap: 5px; padding: 6px 10px 8px; }
.dp-karte legend { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; }
.dp-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; }
.dp-lab { flex: 0 0 110px; text-align: right; font-weight: 600; color: #46566b; }
.dp-pfad { flex: 1 1 260px; min-width: 0; height: 24px; padding: 1px 7px; font: inherit; font-size: .8rem; border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 4px; }
.dp-takt { flex: 0 0 210px; }
.dp-zahl { width: 64px; height: 24px; padding: 1px 6px; border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 4px; text-align: right; }
.dp-zeit { height: 24px; padding: 1px 6px; border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 4px; }
.dp-tag { display: inline-flex; align-items: center; gap: 2px; }
.dp-fuss { justify-content: space-between; }
.dp-knoepfe { display: inline-flex; gap: 6px; margin-left: auto; }
.dp-chip { font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #eef2f6; color: #475569; }
.dp-chip.ok { background: #dcfce7; color: #15803d; }
.dp-chip.fehler { background: #fee2e2; color: #b91c1c; }
.dp-chip.netz { background: #e0f2fe; color: #0369a1; }
.dp-hilfe code { background: #f1f5f9; padding: 0 3px; border-radius: 3px; }
.dp-proto { max-height: 320px; overflow: auto; }
.dp-proto td { font-size: .74rem; vertical-align: top; }
.dp-p-fehler td { color: #b91c1c; }
.dp-p-netz td { color: #0369a1; }
.dp-liste tr.klickbar { cursor: pointer; }
.dp-liste tr.klickbar:hover td { background: #f1f5f9; }
.dms-pfad-warnung { position: fixed; right: 16px; bottom: 16px; z-index: 1590; width: min(520px, calc(100vw - 32px)); display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; box-shadow: 0 8px 24px rgba(15,23,42,.18); font-size: .78rem; color: #7c2d12; }
.dms-pfad-warnung .mw-zeichen { color: #ea580c; flex: 0 0 auto; }
.dms-pfad-warnung .mw-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dms-pfad-warnung .mw-knoepfe { display: flex; flex-direction: column; gap: 4px; }

/* ab 3.99.29: Shop-Verbindungen – Shop bewusst wählen, Band „Sie bearbeiten …“ */
.sv-wahl { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.sv-wahl-titel { font-size: 1rem; font-weight: 700; }
.sv-wahl-karten { display: flex; flex-wrap: wrap; gap: 14px; }
.sv-wahl-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 240px; padding: 14px 18px; border-radius: 10px; border: 2px solid; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.sv-wahl-karte b { font-size: 1rem; }
.sv-wahl-karte small { color: #64748b; font-size: .74rem; }
.sv-wahl-karte.live { border-color: var(--th-shop-live-punkt, #ea580c); }
.sv-wahl-karte.stage { border-color: var(--th-shop-stage-punkt, #0d9488); }
.sv-wahl-karte:hover { box-shadow: 0 4px 14px rgba(15,23,42,.15); }
.sv-wahl-karte.aus { opacity: .7; }
.sv-wahl-art { font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.sv-wahl-karte.live .sv-wahl-art { color: var(--th-shop-live-punkt, #ea580c); }
.sv-wahl-karte.stage .sv-wahl-art { color: var(--th-shop-stage-punkt, #0d9488); }
.sv-band { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; border-radius: 6px; font-size: .8rem; }
.sv-band > span { flex: 1; }
.sv-band.live { background: #fff7ed; border: 2px solid var(--th-shop-live-punkt, #ea580c); color: #9a3412; }
.sv-band.stage { background: #f0fdfa; border: 2px solid var(--th-shop-stage-punkt, #0d9488); color: #115e59; }
/* ab 3.99.29: Briefe – Entwurf mit vorgesehener Nummer (grau) */
.korr-vorgesehen { color: #94a3b8; font-style: italic; }
/* ab 3.99.29: Aufgaben – Format der Spalte „Angelegt“ */
.auf-tabelle th { position: relative; }
.auf-format-knopf { border: 0; background: none; padding: 0 2px; margin-left: 2px; cursor: pointer; color: #64748b; vertical-align: middle; line-height: 1; }
.auf-format-knopf svg { width: 14px; height: 14px; }
.auf-format-knopf:hover { color: var(--mf-blau, #2f5fae); }
.auf-format-hinter { position: fixed; inset: 0; z-index: 30; cursor: default; }
.auf-format-menue { position: absolute; top: 100%; left: 0; z-index: 31; display: flex; flex-direction: column; min-width: 190px; padding: 4px; background: #fff; border: 1px solid #c9d4e2; border-radius: 6px; box-shadow: 0 6px 18px rgba(15,23,42,.18); font-weight: 400; text-transform: none; letter-spacing: 0; }
.auf-format-menue button { border: 0; background: none; text-align: left; padding: 4px 8px; border-radius: 4px; cursor: pointer; font: inherit; font-size: .78rem; white-space: nowrap; }
.auf-format-menue button:hover { background: #f1f5f9; }
.auf-format-menue button.gewaehlt { font-weight: 700; }
.korr-loeschen { border: 0; background: none; cursor: pointer; color: #b91c1c; padding: 0 4px; line-height: 1; }
.korr-loeschen:hover { color: #7f1d1d; }

/* ab 3.99.29: Knopf „Liste“ (Titelarchiv) – nur die Liste, Zeilen markieren und herausziehen */
.ansicht.nur-liste > .ansicht-formular { flex: none !important; max-height: none !important; height: auto !important; }
.ansicht.nur-liste > .ansicht-formular .formular-inhalt, .ansicht.nur-liste > .ansicht-formular .pa-4 { display: none; }
.ansicht.nur-liste > .ansicht-teiler { display: none; }
.ansicht.nur-liste > .ansicht-liste { display: flex !important; flex: 1 1 auto !important; height: auto !important; max-height: none !important; }
.ansicht.nur-liste .ansicht-liste tr.sz { cursor: grab; }
tr.sz.mehrfach > td { background: #bfdbfe !important; color: #1e3a8a !important; }
tr.sz.mehrfach > td:first-child { box-shadow: inset 3px 0 0 #2563eb; }
tr.sz.aktiv.mehrfach > td, .ansicht tr.sz.aktiv.mehrfach > td { background: #93c5fd !important; color: #172554 !important; }
/* ab 3.99.36: Umschalt+Klick soll keinen Text markieren */
tbody.ft-mehrfach > tr { user-select: none; -webkit-user-select: none; }
.ft-markiert { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 4px 1px 8px; border-radius: 10px; background: #dbeafe; color: #1e3a8a; font-size: .75rem; font-weight: 600; }
.ft-markiert button { all: unset; cursor: pointer; padding: 0 4px; }
.nur-liste-tipp { margin-left: 6px; }
.tabelle-rahmen.titel-ablage { min-height: 60px; }

/* ab 3.99.30 (Rene 27.10.2026): Aufgabenliste kompakter – kleinere Schrift, engere Zeilen und Spalten */
.auf-tabelle { font-size: .7rem; }
.auf-tabelle th { font-size: .64rem; padding: 3px 4px; }
.auf-tabelle td { padding: 1px 4px; line-height: 1.25; }
.auf-tabelle td.auf-haken { padding: 0 2px; text-align: center; }
.auf-angelegt { font-size: .66rem; }
.auf-prio { min-width: 16px; font-size: .62rem; padding: 0 3px; line-height: 15px; }
.auf-balken { width: 46px; height: 5px; }
.auf-balken i { height: 5px; }
.auf-prozent { margin-left: 4px; font-size: .62rem; }
.auf-format-knopf svg { width: 12px; height: 12px; }
.auf-tabelle td.auf-loeschen button { width: 18px; height: 18px; line-height: 18px; font-size: .72rem; }

/* ab 3.99.30 (Rene 27.10.2026): Briefe – „Versionen und Protokoll“ als Knopf mit Popup */
.pu-fenster:has(.office-protokoll-popup) { width: min(960px, 94vw); max-width: none; }
.pu-inhalt:has(.office-protokoll-popup) { display: block; }
.office-protokoll-popup { max-height: 70vh; overflow: auto; font-size: .78rem; }
.office-protokoll-popup .office-protokoll-info, .office-protokoll-popup .office-protokoll-fassungen { padding: 0 0 8px; }
.office-protokoll-popup .office-protokoll-liste { display: table; padding: 0; }
.office-protokoll-popup .office-protokoll-liste td { padding: 3px 10px 3px 0; }
.office-protokoll-knopf .mud-icon-root { font-size: 1rem; }

/* ab 3.99.30 (Rene 27.10.2026): Shop → Artikel → Kategorien – Baum ein-/ausklappbar */
.sh-katklapp { all: unset; box-sizing: border-box; width: 14px; flex: 0 0 14px; text-align: center; font-size: .72rem; color: #64748b; cursor: pointer; border-radius: 3px; }
.sh-katklapp:hover { background: #e2e8f0; color: var(--mf-blau, #2f5fae); }
.sh-katklapp.leer { cursor: default; background: none; }
.sh-katdarunter { margin-left: 4px; font-size: .66rem; font-weight: 700; color: #0f766e; background: #ccfbf1; border-radius: 8px; padding: 0 5px; }
.sh-katklapp-alle { all: unset; cursor: pointer; display: inline-flex; align-items: center; padding: 2px 3px; border-radius: 4px; color: #64748b; }
.sh-katklapp-alle:hover { background: #e2e8f0; color: var(--mf-blau, #2f5fae); }

/* ab 3.99.30 (Rene 27.10.2026): Shop → Artikel – Log als Knopf mit Popup */
.sh-log-knopf { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 8px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 6px; font-size: .76rem; font-weight: 600; cursor: pointer; align-self: flex-start; }
.sh-log-knopf small { font-weight: 400; color: var(--th-text-zweitrangig, #64748b); }
.sh-log-knopf:hover { border-color: var(--mf-blau, #2f5fae); color: var(--mf-blau, #2f5fae); }
.sh-log-knopf .sh-log-warn { color: #b42318; }
.pu-fenster:has(.sh-log-popup) { width: min(960px, 94vw); max-width: none; }
.sh-log-popup { max-height: 70vh; overflow: auto; font-size: .76rem; }
.sh-log-tabelle { width: 100%; border-collapse: collapse; }
.sh-log-tabelle td { padding: 3px 8px 3px 0; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,.06); }
.sh-log-tabelle td:first-child, .sh-log-tabelle td:nth-child(2) { white-space: nowrap; color: var(--th-text-zweitrangig, #64748b); }
.sh-log-tabelle tr.sh-log-fehler td { color: #b42318; }
.pu-inhalt:has(.sh-log-popup) { display: block; }
.auf-format-knopf.vorne { margin: 0 3px 0 0; position: relative; z-index: 3; } /* ab 3.99.30: vor der Beschriftung, nicht unter dem Breiten-Griff */

/* ab 3.99.30 (Rene 27.10.2026): Aufgaben-Chat – Emojis */
.auf-chat-emoji { position: relative; display: inline-flex; }
.auf-chat-emoji-symbol { font-size: 1.15rem; line-height: 1; filter: grayscale(.2); }
.auf-chat-emoji-wahl { position: absolute; top: 100%; left: 0; z-index: 31; display: grid; grid-template-columns: repeat(8, 30px); gap: 2px; padding: 6px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #c9d4e2; border-radius: 8px; box-shadow: 0 8px 22px rgba(15,23,42,.2); }
.auf-chat-emoji-wahl button { all: unset; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border-radius: 6px; }
.auf-chat-emoji-wahl button:hover { background: #eef3fa; }
.office-protokoll-popup .office-protokoll-liste { width: 100%; }
.office-protokoll-popup .office-protokoll-liste td:first-child, .office-protokoll-popup .office-protokoll-liste td:nth-child(2) { width: 1%; }
/* ab 3.99.30: Rechte-Matrix speichert sofort */
.rm-autospeichern { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: #2e7d32; white-space: nowrap; }

/* ab 3.99.30 (Rene 27.10.2026): Aufgabe wartet auf Abnahme – Zeile orange, bleibt bis zur Abnahme in der Liste */
.auf-tabelle tr.abnahme > td { background: #fdecd6; }
.auf-tabelle tr.abnahme > td.auf-haken { box-shadow: inset 4px 0 0 #e48a1e; }
.auf-tabelle tr.abnahme:hover > td { background: #fbe0bd; }
.auf-tabelle tr.abnahme.aktiv > td { background: #f8d3a3; }

/* ab 3.99.31 (Rene 27.10.2026): Prüfung Shop ⇄ Inntec ONE beim Öffnen der Shop-Fenster */
.sh-stamm-wirt { position: relative; }
.sh-stamm-schleier { position: absolute; inset: 0; z-index: 90; background: rgba(15,23,42,.28); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.sh-stamm-box { width: min(760px, 100%); max-height: calc(100% - 20px); display: flex; flex-direction: column; background: var(--th-formular, #fff); border: 1px solid #e48a1e; border-top: 5px solid #e48a1e; border-radius: 8px; box-shadow: 0 16px 40px rgba(15,23,42,.3); font-size: .8rem; }
.sh-stamm-kopf { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px 8px; }
.sh-stamm-kopf .mud-icon-root { color: #e48a1e; font-size: 1.6rem; }
.sh-stamm-kopf b { display: block; font-size: .95rem; }
.sh-stamm-kopf small { color: var(--th-text-zweitrangig, #64748b); }
.sh-stamm-liste { flex: 1; min-height: 60px; overflow: auto; padding: 0 16px; border-top: 1px solid var(--th-rahmen, #e2e8f0); border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.sh-stamm-bereich { font-weight: 700; margin: 8px 0 2px; }
.sh-stamm-bereich span { font-weight: 400; font-size: .7rem; background: #fdecd6; color: #9a5b00; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.sh-stamm-zeile { display: flex; gap: 8px; padding: 1px 0; }
.sh-stamm-zeile i { flex: 0 0 110px; font-style: normal; font-size: .7rem; color: #64748b; }
.sh-stamm-zeile.a0 i { color: #1d4ed8; } .sh-stamm-zeile.a1 i { color: #b42318; } .sh-stamm-zeile.a2 i { color: #9a5b00; }
.sh-stamm-erkl { padding: 8px 16px; color: var(--th-text-zweitrangig, #475569); }
.sh-stamm-laeuft { display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; }
.sh-stamm-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 16px 12px; }
.sh-stamm-pille { position: absolute; right: 12px; bottom: 10px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; background: #fff; border: 1px solid #cbd5e1; color: #475569; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.sh-stamm-pille.warn { border-color: #e48a1e; background: #fdecd6; color: #9a5b00; font-weight: 600; cursor: pointer; }
.sh-stamm-pille.leise { opacity: .8; }
.sh-stamm-pille button { all: unset; cursor: pointer; padding: 0 3px; border-radius: 4px; }
.sh-stamm-pille button:hover { background: #e2e8f0; }

/* ab 3.99.32: kleine Nachschlagetabelle am Feld (z. B. Briefanreden) */
.kt-liste { display: flex; flex-direction: column; gap: 4px; min-width: min(460px, 80vw); grid-column: 1 / -1; }
.kt-zeile { display: flex; gap: 4px; align-items: center; }
.kt-zeile input { flex: 1; font: inherit; font-size: .82rem; padding: 3px 7px; border: 1px solid var(--th-feldrand, #cfd8e3); border-radius: 5px; background: var(--th-feld, #fff); }
.kt-zeile.neu { margin-top: 6px; }
.kt-zeile .feld-knopf.gefahr:hover { color: #b42318; }

/* ab 3.99.33 (Rene 27.10.2026): laufende Vorgänge des Servers in der Kopfleiste */
.lv-wrap { position: relative; display: inline-flex; }
.lv-knopf .lv-titel { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-knopf .lv-schritt { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; font-size: .72rem; }
.lv-knopf .lv-mehr { background: rgba(255,255,255,.25); border-radius: 8px; padding: 0 6px; font-size: .7rem; }
.lv-liste { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1600; width: min(420px, 90vw); display: flex; flex-direction: column; gap: 2px; padding: 6px;
    background: #fff; color: #1f2d3d; border: 1px solid #c9d4e2; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.25); }
.lv-zeile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: .78rem; }
.lv-zeile:hover:not(:disabled) { background: #eef3fa; }
.lv-zeile:disabled { cursor: default; }
.lv-zeile b { grid-column: 1 / -1; font-weight: 600; }
.lv-zeile span:not(.balken) { color: #5b6b80; font-size: .72rem; }
.lv-zeile .balken { width: 90px; height: 5px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.lv-zeile .balken > i { display: block; height: 100%; background: var(--mf-blau, #2f5fae); }

/* ab 3.99.33: Lagerbestand aus dem Shop (nur lesen) */
.sh-lager-stand { margin-left: 6px; font-size: .7rem; color: var(--mf-text-2); white-space: nowrap; }
.sh-kontrolle { flex-wrap: wrap; }
.sh-kontrolle > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-kontrolle > span > input { width: 56px; }
.sh-kontrolle-art { width: 190px; }

/* ab 3.99.33: Software-Update – Speicherplatz und Aufbewahrung */
.su-platz { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.su-platz > table { flex: 1 1 520px; max-width: 760px; }
.su-platz tr.knapp td { color: var(--th-versand-fehler, #b91c1c); }
.su-balken { height: 8px; border-radius: 4px; background: var(--th-rahmen, #d3dce8); overflow: hidden; }
.su-balken > span { display: block; height: 100%; background: var(--mf-akzent, #2563eb); }
tr.knapp .su-balken > span { background: var(--th-versand-fehler, #b91c1c); }
.su-aufbewahrung { flex: 1 1 420px; grid-template-columns: 200px minmax(0, 1fr); }
.su-aufbewahrung input[type=number] { width: 90px; }
/* ab 3.99.33: Speicher-Hinweis in der Kopfleiste (nur Administratoren) */
.sp-hinweis { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 2px 10px; border-radius: 12px; border: 1px solid #f59e0b;
  background: #fff7ed; color: #9a3412; font-size: .75rem; cursor: pointer; white-space: nowrap; }
.sp-hinweis:hover { background: #ffedd5; }

/* ab 3.99.33: Mandant → Nummern */
.nr-muster { max-width: 900px; margin-top: 8px; }
.nr-muster input { width: 260px; }
.nr-beispiele { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nr-beispiele code, .nr-muster small code { font-size: .8rem; }
/* ab 3.99.33: Auswahl in Tabellenzellen (Gruppen-Stufe, Kundengruppe brutto/netto) */
.aw.gr-aw { width: 100%; }
/* ab 3.99.34: feste Breiten für Auswahlfelder in Leisten/Zeilen (Admin-Masken: Entwicklung, Wünsche, Nutzungszeiten, Datenbereinigung, Übersetzungen, Schriften, Mandant) */
.aw.aw-schmal { width: 130px; flex: none; }
.aw.aw-mittel { width: 190px; flex: none; }
.aw.aw-breit { width: 260px; flex: none; }
.aw.eb-status { width: 120px; flex: none; }
/* ab 3.99.34: die ältere Regel „.aw-liste { height: 52vh }“ (Adresse wählen) galt auch für die Liste des Auswahlfelds – dort nur so hoch wie nötig */
.aw-feld > .aw-liste { height: auto; }
/* ab 3.99.34: Beschriftung + Auswahl in einer Zeile (kein <label> drumherum – ein Klick auf einen Eintrag würde die Liste sonst wieder öffnen) */
.aw-beschriftet { display: inline-flex; align-items: center; gap: 6px; }
.schr-standard-zeile > .aw-beschriftet { font-size: .8rem; }

/* ab 3.99.34: Shop → Einstellungen → Shop-Sicherung (Aufteilung ① ② ③ ④, darunter Patch-Wiederherstellung) – Farben aus dem Farbschema */
.ss { padding: 8px 12px; overflow: auto; }
.ss-oben { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr) minmax(240px, 1fr) minmax(200px, .8fr); gap: 10px; align-items: stretch; }
.ss-oben > fieldset { grid-column: auto !important; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-liste { max-height: 290px; }
.ss-liste .ft-huelle, .ss-liste > div:last-child { min-height: 0; }
.ss-infos { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .8rem; }
.ss-infos > span:nth-child(odd) { color: var(--th-text-zweit, #64748b); }
.ss-datei { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: .74rem; }
.ss-warn { color: #b91c1c; }
.ss-einst summary { cursor: pointer; font-size: .8rem; font-weight: 600; margin: 4px 0; }
.ss-einst .sh-zahl { width: 4.5em; }
.ss-bereiche { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 4px 0; }
.ss-ordner { flex: 1; min-width: 0; }
.ss-start { justify-content: flex-start; }
.ss-start .mf-knopf { justify-content: center; }
.ss-patch { margin-top: 10px; }
.ss-patch-raster { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 12px; min-height: 260px; }
.ss-kopf { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .82rem; margin-bottom: 4px; }
.ss-bereich-liste { display: flex; flex-direction: column; gap: 2px; }
.ss-bereich { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 6px; background: transparent; font-size: .8rem; cursor: pointer; text-align: left; color: inherit; }
.ss-bereich:hover { border-color: var(--th-akzent, #0d9488); }
.ss-bereich.aktiv { border-color: var(--th-akzent, #0d9488); box-shadow: inset 3px 0 0 var(--th-akzent, #0d9488); }
.ss-bereich.aus { opacity: .55; cursor: default; }
.ss-gleich { margin-top: 6px; }
.ss-mitte { min-width: 0; display: flex; flex-direction: column; }
.ss-mitte > :nth-child(2) { max-height: 300px; }
.ss-detail { margin-top: 8px; border-top: 1px solid var(--th-rahmen, #e2e8f0); padding-top: 6px; max-height: 320px; overflow: auto; }
.ss-felder { width: 100%; border-collapse: collapse; font-size: .76rem; }
.ss-felder th { text-align: left; font-weight: 600; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); padding: 2px 6px; }
.ss-felder td { border-bottom: 1px solid var(--th-rahmen, #eef2f7); padding: 2px 6px; vertical-align: top; overflow-wrap: anywhere; }
.ss-vorschau { display: flex; flex-direction: column; gap: 8px; }
.ss-art.geaendert { color: #b45309; }
.ss-art.geloescht { color: #b91c1c; }
.ss-art.neu { color: #047857; }
@media (max-width: 1100px) { .ss-oben { grid-template-columns: 1fr 1fr; } .ss-patch-raster { grid-template-columns: 1fr; } }
.ss-vorschau .ss-felder td:first-child { white-space: nowrap; }
/* ab 3.99.34: Kalender – Termin an Benutzergruppen freigeben */
.tr-sichtbar { min-width: 260px; }
.tr-gruppen { display: flex; flex-direction: column; gap: 4px; }
.tr-gruppen-liste { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.tr-hinweis { color: #b45309; }
.bu-zeile input[type=checkbox] { flex: none !important; min-width: 0 !important; width: calc(14px * var(--s, 1)) !important; } /* ab 3.99.34: Haken im Termin-Dialog nicht strecken (auch „ganztägig“) */
.bu-zeile > .aw, .bu-zeile > .tr-gruppen { flex: 1; min-width: 0; }
.tr-gruppen .bu-check { margin-left: 0; }
/* ab 3.99.34: Willkommens-Assistent – offene Anfrage „Ich bin Bestandskunde“ */
.lw-bestand { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid #f59e0b; border-radius: 12px; margin: 10px 0; }
.lw-bestand .mud-icon-root { color: #b45309; font-size: 1.6rem; flex: none; }
.lw-bestand p { margin: 4px 0 8px; }
/* ab 3.99.34: Typenschild am PC */
.inv-foto-neu.aus { opacity: .6; pointer-events: none; }
.inv-ts-fehler { grid-column: 1 / -1; color: #b91c1c; font-size: .8rem; }
.inv-ts-wahl { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
/* ab 3.99.34: Administration → Datenbank → SQL-Abfrage */
.sqlk { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; min-height: 0; }
.sqlk-text { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; width: 100%; resize: vertical; }
.sqlk-ergebnis { max-height: 60vh; overflow: auto; }
.sqlk-ergebnis td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-navi-kopf .aw.db-wahl { width: 100%; }
.db-navi-zeile .aw.db-sort { width: 9em; }
/* ab 3.99.34: Auswahlfelder statt <select> in Shop, Versand, Aufgaben, Zeiterfassung – Breiten wie vorher die <select> */
.aw.sh-katshop-wahl { flex: 0 0 220px; width: 220px; font-size: .8rem; }
.aw.vs-zugang-wahl { width: 220px; flex: none; font-size: .82rem; }
.aw.vs-verfolgung-art { width: 300px; flex: none; max-width: 100%; }
.aw.auf-reiter-wer { flex: 0 1 180px; width: 180px; }
.dms-detail .auf-reiter-neu .aw.auf-reiter-wer { flex: 1 1 45%; }
.auf-sortierung .aw, .auf-reiter-neu .aw { font-size: .74rem; }

/* ab 3.99.36 (Rene 27.10.2026): gespeichertes Kennwort = schwarze Punkte statt Satz (Erklärung im Tooltip) – in allen Kennwortfeldern */
input.pw-gespeichert::placeholder { color: #111827 !important; opacity: 1 !important; letter-spacing: .12em; font-weight: 700; }
input.pw-gespeichert:focus::placeholder { color: #9ca3af !important; }

/* ab 3.99.38: DMS – externe Speicherorte (Einstellungen → DMS → Ordner) */
.dms-ort-zeile { display: grid; grid-template-columns: minmax(120px, 220px) auto 1fr auto auto; gap: 6px; align-items: center; margin: 3px 0; }
.dms-ort-zeile input { min-width: 0; }
.dms-ort-ok { color: #2e7d32; font-weight: 600; }
.dms-ort-fehlt { color: #c62828; font-size: .78rem; }

/* ===== ab 3.99.39: Zeiterfassung (Arbeitszeit) – Farben nur für Bedeutung (plus/minus, Status), Flächen aus dem Farbschema ===== */
.az-ansicht { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.az-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.az-leiste .az-ma { min-width: 260px; }
.az-monat { min-width: 130px; text-align: center; text-transform: capitalize; }
.az-status { color: var(--th-text2, #555); font-size: .85rem; }
.az-stempel { font-weight: 600; min-width: 110px; }
.az-stempel.kommen { background: #2e7d32 !important; border-color: #2e7d32 !important; color: #fff !important; }
.az-stempel.gehen { background: #c62828 !important; border-color: #c62828 !important; color: #fff !important; }
.az-minus { color: #c62828; }
.az-plus { color: #2e7d32; }
.az-warn { color: #c62828; }
.az-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
.az-kachel { border: 1px solid var(--th-rahmen, #d0d7de); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.az-kachel small { color: var(--th-text2, #666); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.az-kachel b { font-size: 1.15rem; }
.az-kachel span { font-size: .75rem; color: var(--th-text2, #666); }
.az-kachel.warn { border-color: #ef6c00; }
.az-kachel .mf-knopf { align-self: flex-start; margin-top: 4px; }
.az-tabelle-rahmen { overflow: auto; }
.az-tage { width: 100%; font-size: .8rem; }
.az-tage th, .az-tage td { padding: 2px 6px; white-space: nowrap; }
.az-tage .r { text-align: right; font-variant-numeric: tabular-nums; }
.az-tage tr.az-zeile { cursor: pointer; }
.az-tage tr.az-zeile:hover td { outline: 1px solid var(--th-rahmen, #d0d7de); outline-offset: -1px; }
.az-tage tr.frei td, .az-tage tr.zukunft td, .az-tage tr.aussen td { opacity: .55; }
.az-tage tr.heute td { font-weight: 600; }
.az-tage tr.heute td:first-child { box-shadow: inset 3px 0 0 #1565c0; }
.az-tage tr.feiertag td:first-child { box-shadow: inset 3px 0 0 #6a1b9a; }
.az-datum { text-transform: capitalize; }
.az-ft { color: #6a1b9a; font-weight: 600; margin-right: 4px; }
.az-abw { display: inline-block; padding: 0 6px; border-radius: 9px; border: 1px solid var(--az-farbe, #607d8b); color: var(--az-farbe, #607d8b); font-size: .75rem; margin-right: 3px; white-space: nowrap; }
.az-hinweis { color: #ef6c00; white-space: normal; }
.az-detail td { padding: 0 !important; }
.az-detail-innen { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); gap: 16px; padding: 8px 12px 10px 24px; border-left: 3px solid #1565c0; white-space: normal; }
.az-erkl ul, .az-erkl-liste { margin: 4px 0 0; padding-left: 18px; }
.az-erkl li, .az-erkl-liste li { margin: 1px 0; }
.az-bu { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.az-bu-zeile { display: flex; gap: 6px; align-items: center; }
.az-k, .az-g { display: inline-block; min-width: 58px; font-size: .75rem; font-weight: 600; }
.az-k { color: #2e7d32; } .az-g { color: #c62828; }
.az-bu-neu { display: flex; gap: 6px; }
.az-zaehler { font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.az-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9e9e9e; flex: none; }
.az-punkt.da { background: #2e7d32; } .az-punkt.weg { background: #90a4ae; } .az-punkt.abw { background: #6a1b9a; } .az-punkt.nicht { background: #ef6c00; }
.az-suche { max-width: 220px; }
/* ab 3.99.338 (Rene 19.11.2026 13:51/13:52 „schwarze Schrift auf grünem Hintergrund schwer lesbar – bitte weiß“, Zeitübersicht, Dienstplan,
   Dienstreisen, Montagen, Abschluss, Lohn): Texte, Symbole und Zähler im grünen Band der Zeiterfassung weiß; Eingaben bleiben weiß mit dunkler Schrift */
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.az-leiste :is(b, strong, small, label, .az-zaehler, .az-zeitraum, .dpl-titel, .text-zweitrangig):not(#_az),
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.az-leiste > span:not(.az-firma-wahl):not(.az-lohn-vorlage):not(.az-lohn-neu):not(#_az),
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.az-leiste > .mud-icon-root:not(#_az),
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.az-leiste .az-firma-wahl > .mud-icon-root:not(#_az) { color: #fff !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.az-leiste :is(input, select, textarea, .auswahl, .mud-input):not(#_az) { color: #1f2d3d !important; }
/* ab 3.99.341 (Rene 19.11.2026 20:04 „hier weiße Schrift bei E-Mail“): Überschriften direkt im grünen Band überall weiß */
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste > :is(b, strong, .masken-leiste-titel):not(#_ml) { color: #fff !important; }
.az-leiste .az-firma-wahl { display: inline-flex; align-items: center; gap: 6px; }
.az-leiste .az-zaehler .az-punkt { box-shadow: 0 0 0 1.5px #fff; }
.az-leiste .az-zaehler { margin-right: 6px; }
.az-leiste .az-suche { min-width: 200px; flex: 0 0 auto; padding: 2px 6px; }
.az-tafel { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 8px; }
.az-tafel-gruppe { grid-column: 1 / -1; font-weight: 600; font-size: .78rem; text-transform: uppercase; color: var(--th-text2, #666); margin-top: 6px; }
.az-karte { display: flex; gap: 8px; align-items: center; border: 1px solid var(--th-rahmen, #d0d7de); border-radius: 8px; padding: 6px 10px; }
.az-karte div { display: flex; flex-direction: column; min-width: 0; }
.az-karte small { color: var(--th-text2, #666); }
.az-karte.weg, .az-karte.nicht { opacity: .8; }
.az-ja { background: #2e7d32 !important; border-color: #2e7d32 !important; color: #fff !important; }
.az-st.beantragt { color: #ef6c00; font-weight: 600; } .az-st.abgelehnt { color: #c62828; } .az-st.genehmigt { color: #2e7d32; }
tr.az-beantragt td { color: #ef6c00; } tr.az-abgelehnt td { text-decoration: line-through; opacity: .6; }
tr.az-mit-hinweis td:last-child { color: #ef6c00; }
.az-info { margin-top: 4px; }
.az-wahl { display: inline-flex; align-items: center; gap: 4px; font-weight: normal; }
.az-zuo { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.az-zuo-zeile { display: grid; grid-template-columns: auto 130px minmax(200px, 1fr) auto; gap: 6px; align-items: center; width: 100%; }
.az-reihe { display: flex; gap: 6px; align-items: center; }
.az-reihe input { max-width: 90px; }
.az-woche { display: flex; gap: 6px; flex-wrap: wrap; }
.az-woche label { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.az-woche input { width: 58px; text-align: center; }
.az-woche small { text-transform: capitalize; color: var(--th-text2, #666); }
.az-regel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.az-regel input:not([type=checkbox]) { width: 70px; }
.az-regel input[type=date] { width: 130px; }
.az-regel input[placeholder^="Name"] { width: 220px; }
.az-vorlage { min-width: 230px; }
.az-probe { margin-top: 6px; }
.az-kal { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 8px; min-height: 0; }
.az-kal-liste { display: flex; flex-direction: column; gap: 4px; }
.az-kal-liste > button:not(.mf-knopf) { text-align: left; border: 1px solid var(--th-rahmen, #d0d7de); border-radius: 6px; padding: 4px 8px; background: none; cursor: pointer; display: flex; flex-direction: column; }
.az-kal-liste > button.aktiv { border-color: #1565c0; box-shadow: inset 3px 0 0 #1565c0; }
.az-kal-liste small { color: var(--th-text2, #666); }
.az-kal-inhalt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.az-jahr { margin-top: 4px; }
.az-ft-tabelle { font-size: .8rem; }
.az-ft-tabelle tr.inaktiv td { text-decoration: line-through; opacity: .55; }
.az-vorschlaege { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.az-arten { font-size: .82rem; margin-bottom: 6px; }
.az-arten tr.klickbar { cursor: pointer; }
.az-arten tr.inaktiv td { opacity: .55; }
.az-allg { max-width: 900px; }
/* Handy */
.az-mobil .az-m-uhr { text-align: center; font-size: 3rem; font-weight: 700; margin-top: 18px; line-height: 1.1; }
.az-mobil .az-m-uhr small { display: block; font-size: .95rem; font-weight: 400; text-transform: capitalize; }
.az-mobil .az-m-status { text-align: center; margin: 6px 0 12px; color: #555; }
.az-mobil .az-m-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px; height: 84px; border: none; border-radius: 16px; font-size: 1.6rem; font-weight: 700; color: #fff; }
.az-mobil .az-m-knopf.kommen { background: #2e7d32; } .az-mobil .az-m-knopf.gehen { background: #c62828; }
.az-mobil .az-m-knopf:disabled { opacity: .6; }
.az-mobil .az-m-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 16px; }
.az-mobil .az-m-zahlen div { border: 1px solid #ddd; border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; }
.az-mobil .az-m-zahlen b { font-size: 1.3rem; }
.az-mobil .az-m-zahlen small, .az-mobil .az-m-zahlen span { font-size: .75rem; color: #666; }
@media (max-width: 760px) {
    .az-detail-innen { grid-template-columns: 1fr; }
    .az-kal { grid-template-columns: 1fr; }
}
.feld-eingabe .az-regel input:not([type=checkbox]), .feld-eingabe.az-regel input:not([type=checkbox]), .feld-eingabe.az-reihe input { width: 72px; flex: 0 0 auto; min-width: 0; }
.feld-eingabe .az-regel input[type=date], .az-probe .az-regel input[type=date] { width: 140px; }
.feld-eingabe .az-regel .aw-feld { flex: 0 0 auto; min-width: 170px; }
.az-regel small { flex-basis: 100%; }
.feld-eingabe .az-zuo-zeile input[type=date] { width: 130px; }
/* ab 3.99.39: Unterliste mit fremden Zeilen (z. B. Titel des Tonträgers bei Abrechnungsbasis „Produkt“) – nur Ansicht */
.unterbereich.fremd .fremd-hinweis { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 5px 10px; font-size: .82rem; background: var(--mud-palette-background-gray, #f1f3f5); border-left: 3px solid #9aa5b1; border-radius: 3px; color: #46525e; }
.unterbereich.fremd .fremd-hinweis.eigene { margin-top: 14px; border-left-color: #e0a100; background: #fff8e6; }
.unterbereich.fremd .fremd-zeile { opacity: .7; filter: grayscale(1); }
.unterbereich.fremd .fremd-zeile input, .unterbereich.fremd .fremd-zeile .feld-eingabe { background: transparent !important; pointer-events: none; }
.unterbereich.fremd .fremd-zeile .feld-link { pointer-events: auto; opacity: 1; }
/* ab 3.99.39: Bilder in formatierten Texten (z. B. Screenshot in einer Aufgabe) per Klick groß */
.rt-flaeche img { cursor: zoom-in; }
.mrr-bild-gross .auf-bild-popup-knoepfe a, .mrr-bild-gross .auf-bild-popup-knoepfe button { font-size: 18px; }
/* ab 3.99.39 (Rene 18:10–18:17): Zeiterfassung – Meine Arbeitszeit (Stempeluhr), Zeit-Inbox, Firmen-Umschalter, Terminals, Projekt-Abgleich */
.az-punkt.pause { background: #e0a100; }
.az-meine { display: flex; flex-direction: column; gap: 10px; padding: 10px; overflow: auto; min-height: 0; }
.azm-karte { border-radius: 14px; padding: 18px 22px; background: #f3f6f9; border: 1px solid var(--th-rahmen, #d0d7de); display: flex; flex-direction: column; gap: 10px; }
.azm-karte.da { background: #eaf6ee; border-color: #9fd3b0; }
.azm-karte.pause { background: #fff6e0; border-color: #f0cf7a; }
.azm-stand { font-size: 1.45rem; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.azm-stand small { font-size: .85rem; font-weight: 400; background: rgba(0,0,0,.06); border-radius: 10px; padding: 2px 8px; }
.azm-punkt { width: 16px; height: 16px; border-radius: 50%; background: #9e9e9e; display: inline-block; }
.azm-karte.da .azm-punkt { background: #2e9d57; box-shadow: 0 0 0 4px rgba(46,157,87,.18); }
.azm-karte.pause .azm-punkt { background: #e0a100; }
.azm-heute { font-size: 1rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.azm-heute b { font-size: 1.15rem; }
.azm-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.azm-knopf { border: 0; border-radius: 12px; padding: 12px 26px; font-size: 1.05rem; font-weight: 600; cursor: pointer; color: #fff; min-width: 170px; }
.azm-knopf.kommen { background: #2e9d57; } .azm-knopf.pause { background: #e0a100; color: #222; } .azm-knopf.gehen { background: #c94a44; }
.azm-knopf:disabled { opacity: .55; cursor: default; }
.azm-orte { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.azm-orte button { border: 1px solid #c9d4e2; background: #fff; border-radius: 18px; padding: 4px 12px; cursor: pointer; font-size: .82rem; }
.azm-orte button.gewaehlt { background: #1f4e9a; border-color: #1f4e9a; color: #fff; }
.azm-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; align-items: start; }
@container einzel (max-width: 800px) { .azm-raster { grid-template-columns: 1fr; } }
.azm-tab { width: 100%; font-size: .8rem; }
.azm-tab tr.heute td { background: #eef5ff; font-weight: 600; }
.azm-tab tr.zukunft td { color: #9aa5b1; }
.azm-chip { display: inline-block; font-size: .7rem; padding: 0 6px; border-radius: 8px; background: #e3e8ef; margin-left: 4px; }
.azm-warn { color: #c62828; margin-left: 4px; cursor: help; }
.azm-offen { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.azm-fall, .azm-antrag, .azi-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; background: #f6f8fa; }
.azm-fall.s2, .azi-zeile.s2 { background: #fdecea; } .azm-fall.s1, .azi-zeile.s1 { background: #fff6e0; }
.azm-antrag.beantragt { background: #fff6e0; } .azm-antrag.genehmigt { background: #eaf6ee; } .azm-antrag.abgelehnt { background: #fdecea; }
.azm-unten { margin-top: 4px; }
.azm-leiste { display: flex; gap: 8px; flex-wrap: wrap; }
.azi-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 10px; }
.azi-kachel { border: 1px solid #d0d7de; background: #fff; border-radius: 10px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.azi-kachel .azi-z { grid-row: span 2; font-size: 1.3rem; }
.azi-kachel b { font-size: 1.4rem; line-height: 1; }
.azi-kachel small { color: #555; font-size: .74rem; }
.azi-kachel.rot:not(.leer) { border-color: #e57373; background: #fdecea; }
.azi-kachel.gelb:not(.leer) { border-color: #f0cf7a; background: #fff8e6; }
.azi-kachel.blau:not(.leer) { border-color: #90b4e6; background: #eef5ff; }
.azi-kachel.leer { opacity: .6; }
.azi-kachel.offen { outline: 2px solid #1f4e9a; }
.azi-liste { margin: 0 10px 10px; display: flex; flex-direction: column; gap: 5px; font-size: .8rem; }
.az-firma-wahl { display: inline-flex; align-items: center; gap: 4px; min-width: 200px; }
.azt-api { margin: 8px 10px; padding: 8px 12px; background: #f6f8fa; border-radius: 8px; font-size: .78rem; }
.azt-api pre { white-space: pre-wrap; font-size: .74rem; background: #fff; padding: 6px; border-radius: 6px; }
.azt-qr { display: flex; gap: 16px; padding: 12px; margin: 10px; border: 2px solid #1f4e9a; border-radius: 10px; background: #fff; align-items: flex-start; }
.azt-qr ol { margin: 6px 0; padding-left: 18px; font-size: .8rem; }
.azt-link { word-break: break-all; display: block; font-size: .72rem; margin: 6px 0; }
.azt-lernen { background: #e0a100; color: #222; border-radius: 8px; padding: 2px 8px; font-size: .74rem; }
.zs-aktuell { font-size: .95rem; padding: 2px 0 6px; }
.ze-abgleich-leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; font-size: .8rem; padding: 6px 10px; background: #f6f8fa; border-radius: 6px; }
.ze-abgleich { margin-left: 10px; font-size: .74rem; padding: 1px 8px; border-radius: 8px; background: #eaf6ee; color: #1b5e20; font-weight: 400; }
.ze-abgleich.offen { background: #fff6e0; color: #8a5a00; } .ze-abgleich.mehr { background: #fdecea; color: #a12622; }
.ze-abgleich-leiste .ze-abgleich { margin-left: 0; }
.azm-woche legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.azm-tab td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
.az-mobil .az-m-knopf.pause { background: #e0a100; color: #222; height: 56px; font-size: 1.2rem; margin-top: 10px; }

/* ab 3.99.39: Kommunikation – Postfächer, Prozesse, Protokoll, Übersicht, Ampel links */
.kom-ansicht { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.kom-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #b0bec5; flex: none; }
.kom-punkt.ok { background: #2e7d32; } .kom-punkt.fehler { background: #c62828; box-shadow: 0 0 0 3px rgba(198,40,40,.18); } .kom-punkt.netz { background: #e0a100; } .kom-punkt.aus { background: #cfd8dc; }
.kom-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.kom-zeile > input:not([type=checkbox]) { flex: 1 1 200px; min-width: 0; }
.kom-zahl { width: 70px !important; }
.kom-test { white-space: pre-wrap; word-break: break-word; }
.kom-raster { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; flex: 1; min-height: 0; border-top: 1px solid #e3e7ec; }
.kom-links { overflow: auto; border-right: 1px solid #e3e7ec; background: #fafbfc; }
.kom-rechts { overflow: auto; min-width: 0; }
.kom-proz { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #eef1f4; cursor: pointer; }
.kom-proz:hover { background: #f0f4f8; } .kom-proz.aktiv { background: #e3edfb; box-shadow: inset 3px 0 0 #1f4e9a; } .kom-proz.inaktiv { opacity: .6; }
.kom-proz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .kom-proz-text b, .kom-proz-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-proz-text small { color: #64748b; font-size: .72rem; }
.kom-heute { font-size: .72rem; font-weight: 600; color: #475569; background: #eef2f6; border-radius: 9px; padding: 0 7px; }
.kom-pfeile { display: flex; flex-direction: column; } .kom-pfeile button { border: 0; background: none; font-size: .6rem; line-height: 1; padding: 1px 3px; cursor: pointer; color: #64748b; } .kom-pfeile button:disabled { opacity: .25; cursor: default; }
.kom-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #e3e7ec; position: sticky; top: 0; background: var(--mud-palette-surface, #fff); z-index: 2; }
.kom-chip-z { font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: #eef2f6; color: #475569; }
.kom-chip-z.ok { background: #dcfce7; color: #15803d; } .kom-chip-z.fehler { background: #fee2e2; color: #b91c1c; }
.kom-schritte { padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 1100px; }
.kom-schritt { padding: 6px 12px 10px; } .kom-schritt legend { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kom-nr { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #1f4e9a; color: #fff; font-size: .72rem; font-weight: 700; flex: none; }
.kom-nr.klein { width: 18px; height: 18px; font-size: .66rem; }
.kom-feld { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; margin: 5px 0; }
.kom-feld > label:first-child { font-size: .8rem; color: #475569; }
.kom-einrueck { margin-left: 158px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kom-krit { display: grid; grid-template-columns: 220px 230px 1fr auto; gap: 6px; align-items: center; margin: 4px 0 4px 158px; }
.kom-krit input.fehler, .kom-feld input.fehler { border-color: #c62828; background: #fff5f5; }
.kom-fehler { color: #b91c1c; font-size: .76rem; }
.kom-aktion { border: 1px solid #e3e7ec; border-radius: 8px; padding: 6px 10px; margin: 6px 0; background: #fcfdfe; }
.kom-aktion-kopf { display: flex; align-items: center; gap: 8px; } .kom-aktion-kopf > .auswahl, .kom-aktion-kopf > div:not(.ml-auto) { min-width: 300px; }
.kom-beispiel { color: #15803d; margin: 4px 0 2px 158px; word-break: break-word; }
.kom-benutzer { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kom-chip { display: inline-flex; align-items: center; gap: 4px; background: #e3edfb; color: #1f4e9a; border-radius: 12px; padding: 1px 4px 1px 9px; font-size: .78rem; }
.kom-chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: .7rem; padding: 0 3px; }
.kom-benutzer-neu { min-width: 180px; }
.kom-probe td { vertical-align: top; } .kom-probe tr.treffer td { background: #f0fdf4; }
.kom-filter { flex-wrap: wrap; gap: 8px; } .kom-f { min-width: 170px; }
tr.kom-p-fehler td { color: #b91c1c; } tr.kom-p-abruf td { color: #64748b; }
.kom-umbruch { white-space: pre-wrap; word-break: break-word; }
.kom-uebersicht { padding: 10px 12px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.kom-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kom-kachel { border: 1px solid #d0d7de; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; background: #fff; }
.kom-kachel b { font-size: 1.5rem; line-height: 1.2; } .kom-kachel small, .kom-kachel span { color: #555; font-size: .74rem; }
.kom-kachel.rot { border-color: #e57373; background: #fdecea; } .kom-kachel.gruen { border-color: #a5d6a7; background: #f1f8f1; }
.kom-block { padding: 6px 12px 10px; } .kom-block.rot { border-color: #e57373; }
.kom-quellen td { vertical-align: top; } .kom-quellen td.r, .kom-quellen th.r { text-align: right; } .kom-quellen tr.kom-unter td { font-size: .84rem; } .kom-quellen tr.inaktiv td { opacity: .55; }
.kom-ablauf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #94a3b8; }
.kom-ablauf span { display: flex; flex-direction: column; color: #1e293b; border: 1px solid #d0d7de; border-radius: 8px; padding: 6px 10px; background: #fff; }
.kom-ablauf span b { color: #1f4e9a; } .kom-ablauf small { color: #64748b; font-size: .72rem; }
.kom-mini { margin: 4px 8px 6px; padding: 4px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: .74rem; }
.kom-mini-kopf { display: flex; align-items: center; justify-content: flex-start; gap: 5px; width: 100%; border: 0; background: none; cursor: pointer; font-size: .72rem; font-weight: 600; color: inherit; opacity: .8; padding: 2px 4px; }
.kom-mini-warn { color: #c62828; margin-left: auto; }
.kom-mini-zeile { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; cursor: pointer; color: inherit; padding: 2px 4px; border-radius: 4px; text-align: left; }
.kom-mini-zeile:hover { background: rgba(0,0,0,.05); }
.kom-mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-mini-zahl { opacity: .7; font-variant-numeric: tabular-nums; }
.kom-mini-mehr { padding: 0 4px; opacity: .6; }
/* ab 3.99.121: Kommunikation → Prozesse im einheitlichen Design */
.kom-neu .kom-raster { border-top: 0; }
.kom-neu .kom-links { display: flex; flex-direction: column; }
.kom-suche { padding: 6px 8px; border-bottom: 1px solid #e3e7ec; }
.kom-suche input { width: 100%; }
.kom-gruppe { display: flex; align-items: center; gap: 5px; padding: 8px 10px 3px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #607079; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kom-gruppe .mud-icon-root { font-size: 14px !important; width: 14px; height: 14px; }
.kom-neu .kom-proz.aktiv { background: rgba(15, 118, 110, .08); box-shadow: inset 3px 0 0 var(--th-akzent, #0f766e); }
.kom-links-fuss { margin-top: auto; padding: 10px; border-top: 1px solid #e3e7ec; }
.kom-neu .kom-rechts { display: flex; flex-direction: column; }
.kom-kopf2 { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 1fr); gap: 6px 14px; align-items: center; padding: 8px 12px; margin: 0; border: 0; font-size: .82rem; }
.kom-kopf2 > label { color: var(--th-text2, #47606a); white-space: nowrap; }
.kom-kopf2 .kom-ordner-zeile > :first-child { flex: 1 1 200px; min-width: 0; }
.kom-neu .kom-nr { background: var(--th-akzent, #0f766e); }
.kom-kopf2 input.fehler { border-color: #c62828; background: #fff5f5; }
.kom-kopf-fehler { padding: 0 12px 4px; }
.kom-seg { display: inline-flex; border: 1px solid var(--th-feldrand, #c3cfd9); border-radius: 4px; overflow: hidden; }
.kom-seg button { all: unset; cursor: pointer; padding: 2px 12px; font-size: .78rem; color: var(--th-text2, #47606a); }
.kom-seg button + button { border-left: 1px solid var(--th-feldrand, #c3cfd9); }
.kom-seg button.an { background: var(--th-akzent, #0f766e); color: #fff; font-weight: 600; }
fieldset:disabled .kom-seg button { cursor: default; opacity: .7; }
.kom-reiter { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--th-rahmen, #d5dde6); flex-wrap: wrap; }
.kom-rt { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 5px; font-size: .8rem; color: var(--th-text2, #47606a); border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; margin-bottom: -1px; }
.kom-rt:hover { color: var(--th-akzent, #0f766e); }
.kom-rt.an { background: var(--th-formular, #fff); border-color: var(--th-rahmen, #d5dde6); color: var(--th-akzent, #0f766e); font-weight: 600; box-shadow: inset 0 2px 0 var(--th-akzent, #0f766e); }
.kom-rt i { font-style: normal; font-size: .68rem; background: #eef2f5; border-radius: 8px; padding: 0 6px; color: #607079; }
.kom-rt .mud-icon-root { font-size: 15px !important; width: 15px; height: 15px; color: #8a9aa3; }
.kom-rt.an .mud-icon-root { color: inherit; }
.kom-reiter-inhalt { flex: 1; min-height: 0; overflow: auto; }
.kom-tab { border: 0; margin: 0; padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 6px; max-width: 1200px; min-width: 0; }
.kom-hinweis { font-size: .74rem; color: #64748b; margin-top: 4px; }
.kom-neu .kom-aktion { margin: 0; padding: 8px 12px 6px; background: var(--th-formular, #fff); }
.kom-neu .kom-aktion-kopf .mf-navi .mud-icon-root { font-size: 18px; }
.kom-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 4px; }
.kom-felder .kom-feld { grid-template-columns: 140px minmax(0, 1fr); margin: 3px 0; }
.kom-felder .kom-feld > label:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kom-neu .kom-aktion-kopf > div:not(.ml-auto) { flex: 0 1 460px; }
.kom-felder .kom-breit { grid-column: 1 / -1; }
.kom-felder input.fehler { border-color: #c62828; background: #fff5f5; }
.kom-neu .kom-beispiel { margin-left: 148px; }
@media (max-width: 1000px) { .kom-kopf2 { grid-template-columns: auto 1fr; } .kom-felder { grid-template-columns: 1fr; } .kom-neu .kom-beispiel { margin-left: 0; } }
@media (max-width: 800px) {
    .kom-raster { grid-template-columns: 1fr; } .kom-links { max-height: 35vh; border-right: 0; border-bottom: 1px solid #e3e7ec; }
    .kom-feld { grid-template-columns: 1fr; gap: 2px; } .kom-einrueck, .kom-beispiel { margin-left: 0; }
    .kom-krit { grid-template-columns: 1fr 1fr; margin-left: 0; } .kom-krit input { grid-column: 1 / -1; }
    .kom-aktion-kopf > .auswahl, .kom-aktion-kopf > div:not(.ml-auto) { min-width: 0; flex: 1; }
}
.kom-schritt input:not([type=checkbox]):not(.aw-feld input), .kom-schritt textarea { font: inherit; font-size: .85rem; padding: 5px 9px; border: 1px solid #cfd8e3; border-radius: 7px; width: 100%; box-sizing: border-box; background: #fff; }
.kom-zeile.inv-zeile input { width: 80px; flex: none; }

/* ab 3.99.39 (Rene 27.10.2026 19:42): eindeutiges Feld schon vergeben – sofort beim Verlassen rot */
.feld.feld-doppelt .feld-eingabe input, .feld.feld-doppelt .feld-eingabe .aw-feld input { border: 2px solid #d32f2f !important; background: #fdecea !important; }
.feld.feld-doppelt > label { color: #b71c1c; }
/* ab 3.99.39 (Rene 27.10.2026 19:45): Titel der Aufgabe fett */
.auf-feld.auf-titel input { font-weight: 700; }
/* ab 3.99.39: Emojis im Editor */
.rt-emoji { position: relative; display: inline-flex; }

/* ab 3.99.39: Schnelleingabe – Ausführung in der Maske */
.se-aktiv { outline: 2px solid #f0a020; outline-offset: 2px; border-radius: 6px; background: rgba(240,160,32,.08); }
.se-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: #0f5257; color: #fff; padding: 5px 12px; border-radius: 16px; font-size: .78rem; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; max-width: 45%; }
.se-status small { opacity: .75; } .se-status span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-status.warn { background: #b26a00; } .se-status.ok { background: #2e7d32; }
.se-frage { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 2000; background: #fff; border: 2px solid #c47a1a; border-radius: 12px; padding: 16px 22px; min-width: 320px; max-width: 80%; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.se-frage-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.se-frage-tasten { font-size: .85rem; color: #475569; }
.se-frage kbd, .se-hilfe kbd { display: inline-block; min-width: 22px; text-align: center; padding: 1px 6px; border: 1px solid #b6c2d1; border-bottom-width: 2px; border-radius: 5px; background: #f6f8fa; font: 600 .8rem/1.4 inherit; color: #1e293b; }
.se-knopf { font-size: .78rem; padding: 2px 9px; border-radius: 12px; border: 1px solid #0f5257; color: #0f5257; background: #e6f2f2; cursor: pointer; }
.se-knopf:hover { background: #cfe7e7; }

/* ab 3.99.39: Schnelleingabe – Editor (Benutzereinstellungen) */
.se-editor { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; min-height: 0; }
.se-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid #d0d7de; border-radius: 8px; background: #f6faf9; }
.se-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.se-leiste > label { font-size: .8rem; color: #475569; }
.se-f { min-width: 240px; }
.se-name { width: 320px; max-width: 100%; }
.se-ansicht { display: inline-flex; border: 1px solid #c9d4e2; border-radius: 8px; overflow: hidden; }
.se-ansicht button { border: 0; background: #fff; padding: 4px 12px; font-size: .8rem; cursor: pointer; }
.se-ansicht button.aktiv { background: #0f5257; color: #fff; }
.se-raster { display: grid; grid-template-columns: 240px 1fr; gap: 8px; min-height: 560px; }
.se-felder { border: 1px solid #d0d7de; border-radius: 8px; overflow: auto; max-height: 640px; background: #fafbfc; }
.se-felder-kopf { position: sticky; top: 0; background: #fafbfc; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid #e3e7ec; z-index: 1; }
.se-feld { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; border-bottom: 1px solid #eef1f4; background: none; padding: 5px 8px; cursor: pointer; text-align: left; }
.se-feld:hover:not(:disabled) { background: #e3edfb; } .se-feld:disabled { cursor: default; opacity: .65; }
.se-feld span { font-size: .84rem; font-weight: 600; } .se-feld small { font-size: .7rem; color: #64748b; }
.se-flaeche { position: relative; border: 1px solid #d0d7de; border-radius: 8px; overflow: hidden; min-height: 560px; background: #fff; }
.se-blockly { position: absolute; inset: 0; }
.se-code { margin: 0; padding: 12px 14px; height: 100%; min-height: 560px; overflow: auto; background: #0f172a; color: #e2e8f0; font: 12.5px/1.5 Consolas, "Courier New", monospace; white-space: pre; }
.se-leer { padding: 18px 22px; color: #334155; } .se-leer ol { margin: 8px 0 0 18px; } .se-leer li { margin: 4px 0; }
@media (max-width: 800px) { .se-raster { grid-template-columns: 1fr; } .se-felder { max-height: 200px; } }
.bm-se-chip { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 0 8px; border-radius: 9px; background: #e2e8f0; color: #475569; }
.bm-se-chip.an { background: #0f5257; color: #fff; }

/* ab 3.99.40: Anmeldung mit Google/Microsoft (OAuth) – Kommunikation → Postfächer und Mandant → E-Mail */
.oauth-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oauth-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oauth-stand { font-size: .85rem; color: #8a5a00; }
.oauth-stand.ok { color: #1b7f3b; font-weight: 600; }
.oauth-app { border: 1px solid #dfe5ee; border-radius: 6px; padding: 4px 10px 8px; background: #fafbfd; }
.oauth-app > summary { cursor: pointer; font-size: .85rem; color: #33445a; padding: 2px 0; }
.oauth-felder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin: 6px 0; }
.oauth-felder label { font-size: .85rem; }
.oauth-felder input { width: 100%; box-sizing: border-box; font: inherit; font-size: .88rem; padding: 4px 8px; border: 1px solid #c9d4e2; border-radius: 4px; background: #fff; }
.oauth-uri { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.oauth-uri code { font-size: .8rem; word-break: break-all; user-select: all; background: #eef2f7; padding: 3px 6px; border-radius: 4px; }
label.oben { align-self: start; padding-top: 4px; }
@media (max-width: 700px) { .oauth-felder { grid-template-columns: 1fr; } }
.oauth-app .klein { white-space: normal; overflow-wrap: anywhere; }

/* ab 3.99.40: Zuschläge & Zeitbänder im Zeitmodell */
.az-zuschlaege .az-zuschlag { border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; background: #fbfcfe; display: flex; flex-direction: column; gap: 4px; }
.az-zuschlaege .az-z-name { flex: 1 1 180px; min-width: 120px; }
.az-zuschlaege .az-z-zahl { width: 60px; }
.az-zuschlaege .az-z-lohnart { width: 80px; }
.az-zuschlaege .az-z-tage { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.az-regel.az-breit input:not([type=checkbox]) { width: 260px; }
.az-zuschlaege .az-regel .aw-feld { flex: 0 0 190px; width: 190px; }
.az-zuschlaege > .az-regel .aw-feld { flex: 0 0 260px; width: 260px; }
/* ab 3.99.40: Lohnexport */
.az-lohn .az-lohn-vorlage .aw-feld { width: 260px; }
.az-lohn .az-lohn-neu .aw-feld { width: 240px; }
.az-lohn-hinweis { margin: 6px 10px; padding: 6px 10px; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 6px; font-size: .85rem; }
.az-lohn-edit { margin: 6px 10px; }
.az-lohn-raster { display: grid; grid-template-columns: 140px minmax(0, 320px) 140px minmax(0, 320px); gap: 6px 12px; align-items: center; margin-bottom: 10px; }
.az-lohn-raster > label { font-size: .85rem; color: #33445a; }
.az-lohn-raster > input:not([type=checkbox]) { width: 100%; box-sizing: border-box; }
.az-lohn-raster > .az-regel { grid-column: 2 / -1; }
.az-lohn-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.az-lohn-tab { width: 100%; border-collapse: collapse; margin: 4px 0; }
.az-lohn-tab th { text-align: left; font-size: .8rem; color: #5b6b80; font-weight: 600; padding: 2px 4px; }
.az-lohn-tab td { padding: 2px 4px; }
.az-lohn-tab input:not([type=checkbox]) { width: 100%; box-sizing: border-box; border: 1px solid #c9d4e2; border-radius: 4px; padding: 3px 6px; }
.az-lohn-tab td.az-lohn-knoepfe { white-space: nowrap; width: 1%; }
.az-lohn-platz code { margin-right: 6px; }
.az-lohn-notiz { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: .85rem; }
.az-lohn-notiz textarea { flex: 1; }
.az-lohn-vorschau { margin: 6px 10px; }
.az-lohn-vorschau pre { max-height: 260px; overflow: auto; background: #f6f8fb; border: 1px solid #dfe5ee; padding: 8px; font-size: .8rem; }
@media (max-width: 900px) { .az-lohn-raster { grid-template-columns: 120px minmax(0, 1fr); } .az-lohn-raster > .az-regel { grid-column: 2; } .az-lohn-zwei { grid-template-columns: 1fr; } }
.az-zuschlaege .aw-feld input, .az-lohn .aw-feld input { width: 100% !important; }
/* ab 3.99.40: MFeld – sichtbare Beschreibung mit Beispiel (Reiter Pfade); ohne Beschreibung keine Layoutänderung */
.feld-spalte.ohne { display: contents; }
.feld-spalte:not(.ohne) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feld:has(> .feld-spalte:not(.ohne)) { align-items: flex-start !important; }
.feld:has(> .feld-spalte:not(.ohne)) > label { padding-top: 4px; }
.feld-beschreibung { font-size: .76rem; line-height: 1.3; color: #5b6b80; margin-bottom: 4px; }
.feld-beschreibung code { font-size: .74rem; background: #eef2f7; padding: 0 4px; border-radius: 3px; word-break: break-all; }
.pfade-spalten .formular-raster.pfade .feld > label { white-space: normal; }
.feld-beispiel { display: block; margin-top: 1px; }
.pfade-ohne-info .feld-beschreibung { display: none; }
.pfade-info-schalter { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.feld.feld-gezeigt { outline: 3px solid #ffcf3a; outline-offset: 2px; background: #fff7d0; border-radius: 4px; transition: background .4s; }
/* ab 3.99.41: Kaffeetasse in „Kurze Pause, bitte“ */
.update-sperre-kopf .update-kaffee { margin-left: 4px; flex: none; overflow: visible; }
.update-kaffee .tasse { fill: #0f6b5c; }
.update-kaffee .henkel { fill: none; stroke: #0f6b5c; stroke-width: 4; stroke-linecap: round; }
.update-kaffee .untertasse { fill: #c9d7d3; }
.update-kaffee .dampf { fill: none; stroke: #9aa9b5; stroke-width: 2.5; stroke-linecap: round; opacity: 0; animation: kaffee-dampf 2.4s ease-in-out infinite; }
.update-kaffee .d2 { animation-delay: .8s; }
.update-kaffee .d3 { animation-delay: 1.6s; }
@keyframes kaffee-dampf { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .update-kaffee .dampf { animation: none; opacity: .7; } }
/* ab 3.99.41: Mandanten-Schild bei mandanteneigenen Benutzern (nur in mandantenübergreifenden Listen) */
.mandant-schild { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #e9eef5; color: #6b7a8c; font-size: .68em; font-weight: 600; line-height: 1.5; vertical-align: 1px; font-variant-numeric: tabular-nums; }
/* ab 3.99.41 (Rene 28.10.2026): inaktive Felder (gerade nicht relevant) grau wie berechnete Felder – sichtbar, aber erkennbar ohne Wirkung */
.feld .mud-input.mud-disabled { background: #f3f5f7; }
.feld .mud-input.mud-disabled .mud-input-outlined-border { border-color: #e0e5ea !important; }
.feld .mud-input.mud-disabled input, .feld .mud-input.mud-disabled .mud-input-slot { color: var(--mf-text-2) !important; -webkit-text-fill-color: var(--mf-text-2); }
.feld .mud-input.mud-disabled .mud-input-adornment { opacity: .45; }
/* ab 3.99.42: Titel für digitale Einzeltitel-Verkäufe – Hinzufügen rechts, Warnung bei fehlenden Titeln */
.unterbereich.fremd .fremd-hinweis.eigene { justify-content: space-between; border-left-color: var(--mf-blau, #2f5fae); background: #eef4fc; }
.unterbereich.fremd .fremd-hinweis.fehlend { border-left-color: #e0a100; background: #fff8e6; }
.unterbereich.fremd .fremd-hinweis.fehlend .mf-knopf { margin-left: auto; }
/* ab 3.99.43: Prüfliste Exklusiv + Produkt (Lizenzverträge) */
.pl-erkl { color: #46525e; margin-bottom: 8px; line-height: 1.45; }
.pl-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: .8rem; }
.pl-leiste input[type=date] { border: 1px solid #c9d4e2; border-radius: 4px; padding: 2px 6px; font: inherit; }
.pl-tabelle { max-height: 55vh; overflow: auto; border: 1px solid #e0e5ea; border-radius: 4px; }
.pl-tabelle table { font-size: .76rem; width: 100%; } .pl-tabelle .rechts { text-align: right; font-variant-numeric: tabular-nums; }
.pl-tabelle tr.pl-ohne td { color: #94a3b8; } .pl-tabelle td.pl-warn { color: #b45309; font-weight: 700; }
.pl-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pu-fenster.breit { width: min(1250px, 96vw); max-width: 96vw; }
.ul-hinweis { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 5px 10px; font-size: .8rem; background: #eef4fc; border-left: 3px solid var(--mf-blau, #2f5fae); border-radius: 3px; color: #2d3f55; }
/* ab 3.99.44 (Rene 28.10.2026): Reiter mit fehlenden Pflichtfeldern nach dem Speichern-Versuch rot unterstrichen */
.formular-reiter .mud-tab.reiter-fehlt, .reiter-fehlt.mud-tab { color: #c62828 !important; box-shadow: inset 0 -3px 0 #d32f2f !important; }
.formular-reiter .mud-tab.reiter-fehlt.mud-tab-active, .reiter-fehlt.mud-tab.mud-tab-active { color: inherit !important; box-shadow: inset 0 -4px 0 #d32f2f !important; }

/* ======================================================================================
   ab 3.99.44 (Rene 28.10.2026 14:23, Variante „B – Karteikarten“): einheitliche Reiter im ganzen Programm
   (Formulare, Mandantenstammdaten, Benutzerverwaltung, DMS-Einstellungen) – in allen Farbschemata.
   Inaktive Reiter grau als Karteikarte, aktiver Reiter weiß mit Farbkante oben, Zähler als Plakette, Fehler rot.
   ====================================================================================== */
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar {
    background: transparent !important; border-bottom: 1px solid #b9c6d2 !important; min-height: 0; box-shadow: none; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar-content { gap: calc(3px * var(--s, 1)); align-items: flex-end; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab-slider { display: none !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab {
    flex: none !important; width: auto !important; max-width: none !important; min-width: 0 !important; min-height: 0 !important;
    margin-top: calc(4px * var(--s, 1)); padding: calc(5px * var(--s, 1)) calc(14px * var(--s, 1)) !important;
    background: #e4e9ee !important; border: 1px solid #c9d3dc !important; border-bottom: 0 !important;
    border-radius: calc(7px * var(--s, 1)) calc(7px * var(--s, 1)) 0 0 !important;
    color: #46525e !important; font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: none !important; opacity: 1; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:hover { background: #eef2f5 !important; color: #1f2d3d !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active {
    background: #fff !important; color: var(--mf-blau) !important; font-weight: 700;
    border-color: #b9c6d2 !important; border-top: 3px solid var(--mf-blau) !important;
    margin-bottom: -1px; padding-bottom: calc(6px * var(--s, 1)) !important; position: relative; z-index: 1; }
/* Zähler „(16)“ im Reitertext → Plakette */
/* ab 3.99.396 (Rene 26.11.2026 08:21 „wenn varianten vorhanden sind, hätte ich diese zahl gerne in einem grün“): Plakette grün gefüllt, auch im gewählten Reiter */
.reiter-zahl { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px; font-size: .72em; font-weight: 700; line-height: 18px; text-align: center; background: var(--mf-gruen-leucht, #43a047); color: #fff; }
.mud-tab.mud-tab-active .reiter-zahl { background: var(--mf-gruen-leucht, #43a047); color: #fff; }
/* ab 3.99.396 (Rene 26.11.2026 09:46 „da musst eine weiße schrift nehmen, wenn das grün hinterlegt ist!“): weiße Zahl in jedem Thema und
   in jedem Zustand des Reiters – die Reiterfarbe der Themen darf nicht auf die Plakette durchschlagen */
html body .reiter-zahl:not(#_vl), html body .mud-tab:not(#_vl) .reiter-zahl,
html body .mud-tab.mud-tab-active:not(#_vl) .reiter-zahl, html body .mud-tab:hover:not(#_vl) .reiter-zahl {
    background: var(--mf-gruen-leucht, #43a047) !important; color: #fff !important; }
/* fehlende Pflichtfelder: rote Kante oben + roter Text */
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.reiter-fehlt {
    color: #c62828 !important; border-top: 3px solid #d32f2f !important; box-shadow: none !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.reiter-fehlt.mud-tab-active { color: #c62828 !important; }
/* geöffneter Ordner-Explorer: kein Reiter aktiv hervorgehoben */
:is(html, html.thema-petrol, html.thema-hell) .formular-reiter.explorer-offen .mud-tab.mud-tab-active { background: #e4e9ee !important; color: #46525e !important; border-top: 1px solid #c9d3dc !important; font-weight: 500; }
.reiter-kopf { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.reiter-kopf .reiter-kopf-symbol { font-size: 14px !important; width: 14px; height: 14px; margin-left: 5px; color: var(--mf-gruen-leucht, #43a047); }
.reiter-box { display: contents; }

/* ab 3.99.45 (Rene 28.10.2026 14:40): Karteikarten-Reiter (Variante B) auch für die eigenen Reiterleisten –
   Shop-Artikel (Haupt- und Unterreiter), Inventar, Zeiterfassung-Einstellungen, Datenbrücke/DMS-Übernahme, Korrespondenz-Editor, Sessions */
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: calc(3px * var(--s, 1)); background: transparent !important;
    border-bottom: 1px solid #b9c6d2 !important; padding: calc(4px * var(--s, 1)) calc(4px * var(--s, 1)) 0 !important; border-radius: 0; box-shadow: none; }
:is(html, html.thema-petrol, html.thema-hell) .sh-artformular .sh-reiter { background: var(--mf-formular, #dfe7f0) !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
    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; }
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:hover { background: #eef2f5; color: #1f2d3d; }
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) {
    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)); box-shadow: none; position: relative; z-index: 1; }
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .ses-reiter) > button :is(b, span:not(.mud-icon-root)) {
    display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 0; border-radius: 9px; font-size: .72em; font-weight: 700; line-height: 18px; text-align: center; background: #cfd8e0; color: #334155; }
:is(html, html.thema-petrol, html.thema-hell) :is(.sh-reiter, .sh-unterreiter, .ses-reiter) > button:is(.an, .aktiv) :is(b, span:not(.mud-icon-root)) { background: var(--mf-blau); color: #fff; }

/* ab 3.99.45 (Rene 28.10.2026): Aufgaben im externen Fenster leer – gemerkte Spaltenbreiten (px, aus einem breiteren Fenster) ließen der Liste
   keinen Platz. Breiten jetzt begrenzt, die Liste behält immer mindestens 220 px. */
.auf-raster { grid-template-columns: minmax(220px, 1fr) min(var(--ar, 34%), 55%) min(var(--ac, 24%), 30%); }
.auf-raster.untereinander { grid-template-columns: minmax(0, 1fr) min(var(--ac, 24%), 35%); grid-template-rows: min(var(--al, 38%), 70%) minmax(0, 1fr); }
/* ab 3.99.45 (Rene 28.10.2026): Anordnung „rechts“ – Eingabe links groß, rechts oben Chat, darunter die Liste; Höhe per Griff (--ah), je Benutzer */
.auf-chat-spalte > .spalten-griff.unten { display: none; }
@media (min-width: 701px) {
    .auf-raster.liste-rechts { grid-template-columns: minmax(0, 1fr) min(var(--ac, 30%), 50%); grid-template-rows: min(var(--ah, 50%), 85%) minmax(120px, 1fr); }
    .auf-raster.liste-rechts > .auf-rechts { grid-column: 1; grid-row: 1 / span 2; }
    .auf-raster.liste-rechts > .auf-chat-spalte { grid-column: 2; grid-row: 1; height: auto !important; }
    .auf-raster.liste-rechts > .auf-liste { grid-column: 2; grid-row: 2; }
    .auf-raster.liste-rechts > .auf-rechts > .spalten-griff { display: none; }
    .auf-raster.liste-rechts > .auf-chat-spalte > .spalten-griff.unten { display: block; top: auto; bottom: -7px; left: 0; right: 0; width: auto; height: 7px; cursor: row-resize; }
}

/* ab 3.99.45 (Rene 28.10. 15:12): Datenbrücke → Reiter „Verbindungen“ (Inhalt 1:1 wie das bisherige Fenster ODBC-Verbindungen) */
.dbr .dbr-verbindungen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.dbr .dbr-verbindungen > .ansicht { flex: 1 1 auto; min-height: 0; }

/* ab 3.99.45 (Rene 28.10. 15:21): Shop-Artikel → Konfiguration – nicht angehakte Optionen blass */
.sh-konfig tr.sh-opt-aus td:not(:first-child):not(:last-child) { opacity: .55; }
/* ab 3.99.45: Preis je Option – grau = wie Hauptvariante, eigener Preis kräftig */
.sh-konfig input.sh-optpreis { width: 84px; text-align: right; }
.sh-konfig input.sh-optpreis::placeholder { color: var(--th-text-zweitrangig, #94a3b8); opacity: 1; }
.sh-konfig input.sh-optpreis.eigen { font-weight: 600; }
/* ab 3.99.45 (Rene 28.10. 15:27): zugeordnete Kategorien nach Shop gruppiert */
.sh-katzu .sh-katzu-shop { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; padding: 6px 6px 2px; color: var(--th-akzent, #0f766e); }
.sh-katzu .sh-katzu-shop:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--th-rahmen, #e2e8f0); }
.sh-katzu .sh-katzu-zeile.eingerueckt { padding-left: 22px; }
/* ab 3.99.45 (Rene 28.10. 15:29): Bilder auf Optionen ziehen */
.sh-konfig td[data-optbild].ziel { outline: 2px dashed var(--th-akzent, #0f766e); outline-offset: -2px; background: color-mix(in srgb, var(--th-akzent, #0f766e) 10%, transparent); }
.sh-konfig td[data-optbild].laedt { opacity: .5; }
/* ab 3.99.45 (Rene 28.10. 15:36): Breadcrumb in der Titelleiste – „Kommunikation › Postfächer“ */
.fenster-name .fenster-pfad { font-weight: 400; opacity: .72; margin-right: 5px; }

/* ab 3.99.45 (Rene 28.10.): Tabellenfarben im Farbschema – Kopf der Listen aus „Spaltenköpfe“, Streifen auch in Tabellen der Masken */
html.thema-petrol table.ft thead tr:not(.filterzeile) th { background: linear-gradient(color-mix(in srgb, var(--th-tabellenkopf), #ffffff 45%), var(--th-tabellenkopf)); }
html.thema-petrol .mf-tabelle tbody tr:nth-child(even):not([class]):not(:hover) > td:not([class]) { background-color: var(--th-liste-zebra); }
html.thema-petrol .mf-tabelle th { color: var(--th-tabellenkopf-text); }
html.thema-petrol .mf-tabelle tbody td:not([class]) { color: var(--th-liste-text); }
/* ab 3.99.45: Farben-Editor – „Wo wirkt das?“ (Stellen blinken) und Gruppen */
@keyframes thema-wo-blink { 0%, 100% { outline-color: rgba(234, 88, 12, 0); } 50% { outline-color: rgba(234, 88, 12, 1); } }
.thema-wo-blink { outline: 3px solid rgba(234, 88, 12, 1) !important; outline-offset: -1px; animation: thema-wo-blink .8s ease-in-out 4; }
.thema-editor .thema-gruppe-kopf { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--th-akzent, #0f766e); margin: 10px 2px 2px; }
.thema-editor .thema-wo { border: 0; background: none; cursor: pointer; color: var(--th-akzent, #0f766e); padding: 0 2px; font-size: 1rem; line-height: 1; }
.thema-editor .thema-wo-popup { border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 8px; padding: 8px 10px; margin: 6px 0; background: var(--th-feld, #fff); font-size: .78rem; }
.thema-editor .thema-wo-popup ul { margin: 4px 0 0 16px; padding: 0; }
.thema-editor .thema-wo-popup b { display: block; }
/* ab 3.99.45 (Rene 28.10. 15:40/15:42): DMS-Einstellungen – Ordner suchen (📁) und beschriftete Speicherorte */
.dms-pfad-zeile { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.dms-pfad-zeile input { flex: 1; min-width: 0; }
.dms-ort-zeile { grid-template-columns: minmax(120px, 220px) auto 1fr auto auto auto; }
.dms-ort-kopf span { font-size: .72rem; font-weight: 600; color: var(--th-beschriftung, #475569); }
/* ab 3.99.45: Datenbrücke → Quellen – eigene Zeile „Verbindung“ */
.dbr .dbr-verbindung-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 8px; flex-wrap: wrap; }
.dbr .dbr-verbindung-zeile .dbr-quelle { min-width: 280px; max-width: 420px; }
.dms-einst-warnung { border: 1px solid #f59e0b; background: #fffbeb; color: #92400e; border-radius: 6px; padding: 6px 10px; margin: 4px 0 8px; font-size: .78rem; }

/* ab 3.99.45 (Rene 28.10.): Datenbrücke → Vorlagen wie MS Query – Quellen nebeneinander, Beziehungen als Linien, Bedingungen */
.vl-quellen.vl-query { min-width: 0; }
.vl-karten { position: relative; display: flex; align-items: flex-start; gap: 44px; overflow-x: auto; padding: 2px 2px 8px; }
.vl-karten > .vl-quelle { flex: 0 0 360px; background: var(--th-formular, #fff); position: relative; z-index: 1; }
.vl-karten > .vl-q-neu { flex: none; align-self: flex-start; margin-top: 4px; }
.vl-karten > svg.vl-linien { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.vl-karten > svg.vl-linien path { fill: none; stroke-width: 2.2; opacity: .85; }
.vl-quelle .vl-feldliste { grid-template-columns: 1fr; }
.vl-feld.beziehung { box-shadow: inset 3px 0 0 var(--qf); }
.vl-bez-zeichen { color: var(--qf); font-weight: 700; margin-left: 2px; }
.vl-block { border-top: 1px dashed var(--th-rahmen, #cbd5e1); padding-top: 5px; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; }
.vl-block-titel { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--th-beschriftung, #334155); }
.vl-bez { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vl-art { display: flex; flex-direction: column; gap: 2px; }
.vl-art label { display: flex; align-items: center; gap: 5px; }
.vl-bed { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(90px, 1fr) minmax(60px, 1fr) auto auto auto; gap: 4px; align-items: center; }
.vl-bed input { min-width: 0; height: 24px; }
.vl-bed-neu { display: flex; align-items: center; gap: 8px; }
.vl-undoder { margin-left: auto; display: inline-flex; border: 1px solid var(--th-rahmen, #cbd5e1); border-radius: 5px; overflow: hidden; }
.vl-undoder button { border: 0; background: transparent; padding: 1px 8px; font-size: .7rem; cursor: pointer; }
.vl-undoder button.an { background: var(--th-akzent, #0f766e); color: #fff; }
.vl-sql summary { cursor: pointer; }
.vl-sql input { width: 100%; margin-top: 3px; }
.vl-karten > .vl-q-neu { white-space: nowrap; }
/* ab 3.99.45 (Rene 28.10. 16:06): ⌨ Schnelleingabe an/aus je Maske */
.se-schalter { display: inline-flex; gap: 3px; align-items: center; }
.se-schalter:not(.an) .se-knopf { background: transparent; color: #64748b; border-color: #cbd5e1; }
.se-schalter.an .se-knopf { background: #0f5257; color: #fff; }
.se-schalter.an .se-knopf:hover { background: #0b4044; }
.se-schalter .se-start { padding: 2px 7px; }
/* Rene 28.10. 16:07: ⌨ Schnelleingabe grün mit Haken = an */
.se-schalter.an .se-knopf { background: #16a34a; border-color: #15803d; color: #fff; }
.se-schalter.an .se-knopf:hover { background: #15803d; }
.se-schalter .se-haken { margin-left: 5px; font-weight: 700; }

/* ab 3.99.45 (Rene 28.10. 16:14): Reiter umbrechen statt scrollen – passen sie nicht in eine Zeile, werden sie automatisch zweizeilig (keine Pfeile mehr) */
:is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-scroll-button { display: none !important; }
:is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) :is(.mud-tabs-tabbar, .mud-tabs-tabbar-inner, .mud-tabs-tabbar-content) { height: auto !important; min-height: 0; overflow: visible !important; }
:is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar-wrapper { flex-wrap: wrap !important; transform: none !important; width: 100% !important; row-gap: 2px; }

/* ab 3.99.45: Datenbereinigung – Eigene Verlage übernehmen, Zusammenführen */
.bg-egv { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.bg-egv .bg-kopf { gap: 12px; }
.bg-egv-ok { color: #15803d; font-size: .86rem; }
.bg-egv-tabelle { margin: 6px 0; max-width: 820px; }
.bg-egv-anders { color: #b45309; font-weight: 600; }
.bg-zf-warnung { border-left: 3px solid #f59e0b; padding-left: 8px; }
.bg-zf-liste { max-height: 48vh; }
.bg-zf-nur { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; }
.bg-tabelle tr.bg-zf-ziel td { background: #dcfce7; font-weight: 600; }
.bg-tabelle tr.bg-zf-gewaehlt td { background: #fef9c3; }
.bg-zf-ohne { color: #b91c1c; font-size: .76rem; }
.bg-zf-vorschau { margin-top: 8px; padding: 8px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .84rem; line-height: 1.7; }

/* ab 3.99.45: Shop-Artikel – Kopfzeile (Artikelnummer, Name, Aktiv) über den Reitern, nur Ansicht */
.sh-kopfzeile { display: flex; align-items: center; gap: calc(16px * var(--s)); padding: 6px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.sh-kopfzeile .feld { display: flex; align-items: center; gap: 8px; margin: 0; }
.sh-kopfzeile .feld label { width: auto; min-width: 0; max-width: none; flex: none; overflow: visible; text-overflow: clip; font-weight: 600; font-size: .82rem; color: var(--mf-text-2); white-space: nowrap; }
.sh-kopfzeile input[readonly] { height: calc(24px * var(--s)); border: 1px solid #e2e8f0; border-radius: 4px; padding: 0 8px; background: #f1f5f9; color: var(--mf-text, #1f2937); font-size: .86rem; cursor: default; width: calc(120px * var(--s)); }
.sh-kopfzeile .sh-kopf-name { flex: 1 1 280px; min-width: 0; }
.sh-kopfzeile .sh-kopf-name input[readonly] { width: 100%; font-weight: 600; }
.sh-kopfzeile input[readonly]:focus { outline: none; }
.sh-kopfzeile .sh-kopf-aktiv { font-size: .86rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

/* ab 3.99.45: Shop → Marketing → Auswertungen */
.aw-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.aw-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.aw-leiste label { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; }
.aw-leiste input[type=date] { height: calc(26px * var(--s)); border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; }
.aw-rechts { margin-left: auto; display: inline-flex; gap: 6px; }
.aw-zahl { margin-left: 4px; background: #0f766e; color: #fff; border-radius: 8px; padding: 0 6px; font-size: .72rem; }
.aw-verbindung { min-width: 180px; }
.aw-filter, .aw-module-wahl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.aw-filter > label { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; }
.aw-filter .aw-auswahl, .aw-filter > label > .aw { min-width: 160px; }
.aw-gespeichert { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.aw-module-wahl label { font-size: .84rem; }
.aw-module-wahl label.aus { color: var(--mf-text-2); }
.aw-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 12px; background: #f1f5f9; }
.aw-hinweis { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: .84rem; }
.aw-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; align-items: start; grid-auto-flow: row dense; } /* ab 3.99.68 (Rene 31.10. 13:12): Lücken neben halben Modulen füllen */
.aw-modul { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); min-width: 0; }
.aw-modul.breit { grid-column: 1 / -1; }
.aw-modul.zieht { opacity: .45; }
.aw-modul.ziel { outline: 2px dashed #0f766e; outline-offset: 2px; }
.aw-modul > header { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px 10px 0 0; cursor: grab; }
.aw-modul > header h3 { flex: 1; margin: 0; font-size: .9rem; font-weight: 600; }
.aw-modul > header button { border: 0; background: none; color: var(--mf-text-2); cursor: pointer; padding: 2px; border-radius: 4px; display: inline-flex; }
.aw-modul > header button:hover { background: #e2e8f0; color: var(--mf-text, #1f2937); }
.aw-griff { color: #94a3b8; }
.aw-modul-inhalt { padding: 10px 12px; }
.aw-leer { color: var(--mf-text-2); font-size: .84rem; padding: 12px 0; }
.aw-kacheln { margin: 0; }
.aw-trend { margin-left: 6px; font-weight: 600; }
.aw-trend.auf { color: #15803d; }
.aw-trend.ab { color: #b91c1c; }
.aw-hbalken { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.aw-hzeile { display: grid; grid-template-columns: minmax(80px, 34%) 1fr; gap: 8px; align-items: center; font-size: .82rem; }
.aw-hzeile > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--mf-text-2); }
.aw-hzeile > div { position: relative; height: 20px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.aw-hzeile i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.aw-hzeile i.aw-b1 { background: #14b8a6; }
.aw-hzeile i.aw-b2 { background: #22c55e; }
.aw-hzeile b { position: relative; padding-left: 6px; line-height: 20px; font-size: .78rem; color: #0f172a; }
.aw-svg { height: 160px; }
.aw-tabelle-rahmen { max-height: 260px; overflow: auto; margin-top: 6px; }
.aw-modul.breit .aw-tabelle-rahmen { max-height: 360px; }
.aw-tabelle th.aw-sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
.aw-tabelle th.aw-sortierbar:hover { color: #0f766e; }
.aw-fuss { padding: 8px 2px 0; }
.aw-tabelle { table-layout: auto !important; width: 100%; font-size: .8rem; }
.aw-tabelle th, .aw-tabelle td { white-space: nowrap; }
.aw-tabelle td:first-child { white-space: normal; min-width: 120px; }
.aw-tabelle-rahmen { overflow-x: auto; }

/* ab 3.99.46 (Rene 28.10. 18:29 „entferne diese Scrollbalken – das muss ganz nach unten gehen“): Vorlagen – Fläche der Quellen reicht bis unten,
   keine eigenen Scrollbalken; nur wenn die Kästen breiter sind als das Fenster, erscheint ganz unten ein waagrechter */
.vl-raster { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.vl-raster > .vl-zielspalte { align-self: start; }
.vl-quellen.vl-query { min-height: 0; }
.vl-karten { flex: 1 1 auto; min-height: 100%; overflow-x: auto; overflow-y: hidden; box-sizing: border-box; }
/* ab 3.99.46 (Rene 28.10. 19:13): Kästen frei verschiebbar (Kopfzeile) und in der Größe veränderbar (Griff rechts unten) – Lage wird mit der Vorlage gespeichert */
.vl-karten { display: block; padding: 0; flex: 0 0 auto; }
.vl-raster { flex: 1 0 auto; }
.vl-karten > .vl-quelle { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; }
.vl-karten > .vl-quelle > .vl-q-kopf { cursor: move; user-select: none; }
.vl-karten > .vl-quelle.wird-gezogen { box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 5; opacity: .96; }
.vl-karten > .vl-quelle.wird-groesser { z-index: 5; }
.vl-q-groesse { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 3;
  background: linear-gradient(135deg, transparent 50%, var(--th-rahmen, #94a3b8) 50%, var(--th-rahmen, #94a3b8) 60%, transparent 60%, transparent 72%, var(--th-rahmen, #94a3b8) 72%, var(--th-rahmen, #94a3b8) 82%, transparent 82%); }
.vl-q-groesse:hover { background-color: rgba(0,0,0,.06); }
/* feste Höhe: die Feldliste füllt den Platz, der eigene Höhen-Griff der Liste entfällt */
.vl-quelle.feste-hoehe { min-height: 0; }
.vl-quelle.feste-hoehe .vl-feldliste { align-content: start; flex: 1 1 auto; min-height: 60px; max-height: none !important; height: auto !important; }
.vl-quelle.feste-hoehe > .hoehen-griff { display: none; }
.vl-kopf .vl-q-neu { margin-left: 4px; }
/* Linien Quellfeld → Zielfeld */
.vl-raster { position: relative; }
.vl-raster > svg.vl-ziellinien { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
/* Linien laufen hinter den Kästen durch, über der Zielspalte (dort enden sie am Feld) */
.vl-raster > .vl-quellen { position: relative; z-index: 3; }
.vl-raster > .vl-zielspalte { z-index: 1; }
.vl-raster > svg.vl-ziellinien path { fill: none; stroke-width: 1.6; opacity: .45; }
.vl-raster > svg.vl-ziellinien circle { opacity: .9; }
.vl-feld { grid-template-columns: 12px 26px minmax(70px, auto) minmax(0, 1fr) auto; }
.vl-feld-zeichen { display: inline-flex; gap: 3px; justify-content: flex-end; min-width: 14px; }
/* ab 3.99.46 (Rene 28.10. 19:26): Datenbrücke – Umwandeln je Zielfeld (Werte tauschen, rechnen, ersetzen …) */
.vl-zf-umw { grid-column: 2; }
.vl-umw-knopf { all: unset; cursor: pointer; font-size: .72rem; color: var(--th-beschriftung, #475569); padding: 0 4px; border-radius: 3px; display: inline-flex; gap: 4px; align-items: center; max-width: 100%; white-space: nowrap; overflow: hidden; }
.vl-umw-knopf:hover { background: rgba(0,0,0,.05); }
.vl-umw-knopf.an { color: var(--th-akzent, #0f766e); font-weight: 600; }
.vl-umw-kurz { font-weight: 400; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.vl-umw { grid-column: 1 / -1; border: 1px dashed var(--th-rahmen, #cbd5e1); border-radius: 4px; padding: 5px 6px; display: flex; flex-direction: column; gap: 5px; font-size: .75rem; }
.vl-umw-schritt { border-left: 3px solid var(--th-akzent, #0f766e); padding-left: 6px; display: flex; flex-direction: column; gap: 3px; }
.vl-umw-kopf { display: flex; align-items: center; gap: 6px; }
.vl-umw-kopf .aw { width: 210px; }
.vl-umw-nr { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--th-akzent, #0f766e); color: #fff; font-size: .68rem; font-weight: 700; flex: none; }
.vl-umw-zeile { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.vl-umw-zeile input { height: 22px; min-width: 0; flex: 1 1 80px; font: inherit; font-size: .74rem; padding: 0 5px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 3px; background: var(--th-feld, #fff); color: inherit; }
.vl-umw-zeile input.vl-umw-zahl { flex: 0 0 64px; }
.vl-umw-zeile input.vl-umw-test { flex: 0 1 110px; }
.vl-umw-zeile .vl-umw-sonst { width: 150px; }
.vl-umw-zeile .vl-umw-zeichen { width: 56px; }
.vl-umw-ergebnis { min-width: 40px; }

/* ab 3.99.46: Datei-Verbindungen (Ordner/FTP/FTPS/SFTP) in der Datenbrücke → Verbindungen */
.odbc-rahmen .odbc-haken { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.odbc-rahmen .odbc-trenner { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #44505e; border-top: 1px solid var(--mf-linie); padding-top: 4px; margin-top: 2px; }
.odbc-auswahl > .aw { flex: 1 1 0; min-width: 0; }
.odbc-auswahl > span { white-space: nowrap; font-size: .8rem; }
.odbc-auswahl > input[type=number] { flex: 0 0 auto; }
.dbr-dateien-uebernommen { margin-top: 8px; }

/* ab 3.99.46 (Datenbrücke 3 Stufe 2): Vorhandene/neue anlegen, Spalten und Ausgabe nach außen */
.vl-abgleich { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.vl-abgleich > .aw { flex: 1 1 160px; min-width: 140px; }
.vl-ausgabe { border: 1px solid var(--th-rahmen, var(--mf-linie)); border-radius: 6px; padding: 6px 8px; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.vl-ausgabe-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; }
.vl-ausgabe-zeile > span:first-child { min-width: 70px; }
.vl-ausgabe-zeile > input:not([type=checkbox]) { flex: 1 1 120px; min-width: 80px; height: 24px; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 6px; font-size: .78rem; }
.vl-ausgabe-zeile > input.vl-ausgabe-kurz { flex: 0 1 110px; }
.vl-ausgabe-zeile > .aw { flex: 1 1 120px; min-width: 100px; }
.vl-zf-name.vl-spalte { display: flex; align-items: center; gap: 2px; }
.vl-zf-name.vl-spalte input { flex: 1; min-width: 0; height: 22px; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 1px 5px; font: inherit; font-weight: 600; }
.vl-neue-spalte { margin-top: 2px; }
.vl-zf:has(> .vl-spalte) { grid-template-columns: 170px minmax(0, 1fr); }
.vl-zf-name.vl-spalte .filter-leeren { color: var(--th-text2, #5b6878); padding: 0 2px; }
.vl-zf-filter { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; flex-wrap: wrap; }
.vl-zf-filter > input:not([type=checkbox]) { flex: 1 1 140px; height: 24px; box-sizing: border-box; border: 1px solid var(--mf-feldrand); border-radius: 3px; padding: 2px 6px; font-size: .78rem; }

/* ab 3.99.46 (Datenbrücke 3 Stufe 3): Prozesse mit Bausteinen */
.dbp { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; }
.dbp-flaeche { flex: 1 1 auto; min-height: 480px; position: relative; display: flex; }
.dbp-blockly { flex: 1; position: relative; min-height: 480px; border: 1px solid var(--th-rahmen, var(--mf-linie)); border-radius: 6px; }
.dbp-code { flex: 1; margin: 0; overflow: auto; }
.dbp-ergebnis { max-height: 220px; overflow: auto; display: block; }

/* ab 3.99.49 (Datenbrücke 3 Stufe 4): Übersicht aller Datenflüsse, Unter-Auswahl Datenbanken/Dateien ⇄ E-Mail */
.dbr-unter { display: flex; gap: 2px; margin: 0 0 6px; }
.dbr-unter-zeile { display: flex; align-items: flex-start; gap: 10px; } /* ab 3.99.58 */
.dbr-unter-zeile .mf-knopf.klein { padding: 2px 10px; font-size: .76rem; }
.vu-dialog { display: flex; flex-direction: column; gap: 10px; }
.vu-gruppe { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--mf-linie, #e2e8f0); border-radius: 6px; padding: 8px 10px; max-height: 260px; overflow: auto; }
.vu-alle { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.vu-zeile { display: flex; align-items: center; gap: 8px; font-size: .84rem; padding: 2px 0 2px 18px; cursor: pointer; }
.vu-zeile small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vu-gleich { color: #9a4d00; background: #fff4e5; border-radius: 8px; padding: 0 6px; }
.dbr-unter > button { border: 1px solid var(--th-rahmen, var(--mf-linie)); background: transparent; padding: 3px 12px; font-size: .78rem; border-radius: 4px; cursor: pointer; color: inherit; }
.dbr-unter > button.an { background: var(--th-akzent, #1f6f8b); border-color: var(--th-akzent, #1f6f8b); color: #fff; }
.dbr-kom { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dbu { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.dbu-kacheln { display: flex; gap: 8px; flex-wrap: wrap; }
.dbu-kachel { border: 1px solid var(--th-rahmen, var(--mf-linie)); border-radius: 6px; padding: 8px 14px; min-width: 150px; display: flex; flex-direction: column; }
.dbu-kachel b { font-size: 1.4rem; line-height: 1.1; }
.dbu-kachel span { font-size: .8rem; font-weight: 600; }
.dbu-kachel small { font-size: .7rem; opacity: .75; }
.dbu-kachel.rot b { color: #c0392b; } .dbu-kachel.gruen b { color: #2e7d32; }
.dbu-titel { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.dbu-zeile { cursor: pointer; }
.dbu-ergebnis { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbu-ampel { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #9aa5b1; }
.dbu-ampel.gruen { background: #2e7d32; } .dbu-ampel.rot { background: #c0392b; } .dbu-ampel.gelb { background: #e0a400; }

/* ab 3.99.50 (Rene 28.10. 21:31): Auswahllisten in der Datenbrücke kleiner und kompakter */
.korr.dbr .aw-eintrag { font-size: .76rem; padding: 3px 8px; gap: 6px; }
.korr.dbr .aw-eintrag small { font-size: .68rem; }
.korr.dbr .aw-feld input { font-size: .8rem; }

/* ab 3.99.51: Über Inntec ONE – Drittanbieter und Lizenzen */
/* ab 3.99.275: nur noch Verweis auf Lizenzhinweise.txt */
.pi-lizenzdatei { margin: 8px 0 12px; border-top: 1px solid var(--th-rahmen, #e3e8ef); padding-top: 8px; font-size: .78rem; }
.pi-lizenzen h1 { display: none; }
.pi-lizenzen h2 { font-size: .9rem; margin: 12px 0 4px; }
.pi-lizenzen table { border-collapse: collapse; width: 100%; }
.pi-lizenzen th, .pi-lizenzen td { border: 1px solid var(--th-rahmen, #e3e8ef); padding: 2px 6px; text-align: left; vertical-align: top; }

/* ---------- ab 3.99.52: native <select> → Auswahl (Regel 15) – Feinanpassungen ---------- */
.kalk-leiste .aw-feld input { height: 22px; font-size: 11px; padding: 1px 22px 1px 5px; border-radius: 3px; }
.kalk-leiste .aw { width: 150px; flex: none; }
.invm-inventur-wahl .aw-feld input { font-size: 16px; height: auto; padding: 10px; border-radius: 10px; }

/* ---------- ab 3.99.52: weitere <select> auf Auswahl umgestellt (Regel 15) ---------- */
/* Hülle, die Tasten im Auswahlfeld hält (Suchdialoge: Pfeile/Enter nicht an die Trefferliste), ohne das Layout zu ändern */
.aw-huelle { display: contents; }
/* FilterTabelle „Suchen in“ – Optik wie das bisherige kleine Auswahlfeld */
.aw.ft-suchen-in-aw { flex: 0 0 auto; width: calc(160px * var(--s)); max-width: 180px; }
.aw.ft-suchen-in-aw .aw-feld input { height: calc(28px * var(--s)); font-size: .78rem; padding: 0 22px 0 6px; border: 1px solid var(--mf-feldrand, #c9d4e2); border-radius: 4px; background: #fff; }
.aw.ft-suchen-in-aw .aw-liste { min-width: 200px; }
@container einzel (max-width: 600px) { .aw.ft-suchen-in-aw { max-width: 42%; } }
/* Suchdialoge (F2, Titelabruf): runde Felder wie bisher */
.suche-dialog .suche-kopf .aw-feld input, .suche-dialog .titelabruf-kopf .aw-feld input { height: 34px; border-radius: 18px; border: 1.5px solid #c3cfdf; padding: 0 30px 0 12px; font-size: .85rem; background: #f6f9fd; }
.suche-dialog .suche-kopf .aw-feld input:focus, .suche-dialog .titelabruf-kopf .aw-feld input:focus { border-color: var(--mf-blau); box-shadow: 0 0 0 3px rgba(47, 95, 174, .18); }
.suche-dialog .suche-kopf .aw-pfeil, .suche-dialog .titelabruf-kopf .aw-pfeil { right: 9px; }
.spalten-vorgabe .aw { min-width: 170px; }
.lz-filter .aw-feld input { height: 30px; border-radius: 15px; padding: 0 28px 0 12px; border: 1.5px solid #c3cfdf; background: #f6f9fd; }
.lz-filter .aw-pfeil { right: 8px; }
.aw.rm-auswahl { border: 0; padding: 0; background: none; max-width: 120px; }
.aw.rm-auswahl .aw-feld input { height: 24px; font-size: .72rem; padding: 2px 20px 2px 4px; border-radius: 6px; }
.eu-dialog .aw.eu-wahl { height: auto; border: 0; padding: 0; background: none; }

/* ---------- ab 3.99.52: Datenbrücke – Linie anklicken springt zum Feld (Rene 29.10. 10:19) ---------- */
.vl-raster > svg.vl-ziellinien path.vl-zl-klick { stroke: transparent; stroke-width: 11; fill: none; opacity: 1; pointer-events: stroke; cursor: pointer; }
.vl-raster > svg.vl-ziellinien path.vl-zl-klick:hover + circle, .vl-raster > svg.vl-ziellinien circle.vl-zl-punkt:hover { r: 4.5; }
.vl-raster > svg.vl-ziellinien circle.vl-zl-punkt { pointer-events: all; cursor: pointer; }
.vl-raster > svg.vl-ziellinien path.aktiv { opacity: 1; stroke-width: 3; }
@keyframes vl-blinken { 0%, 60% { background: #fde68a; box-shadow: 0 0 0 2px #f59e0b; } 100% { background: transparent; box-shadow: none; } }
.vl-blinkt { animation: vl-blinken 2.2s ease-out; border-radius: 4px; }
.vl-tab-zeile { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.vl-tab-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-feldsuche-zeile { display: flex; align-items: center; gap: 6px; }
.vl-feldsuche-zeile > .vl-feldsuche { flex: 1; min-width: 0; }
.vl-ds-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.vl-ds-text { flex: 1 1 180px; height: 32px; box-sizing: border-box; padding: 4px 9px; border: 1px solid #cfd8e3; border-radius: 7px; font: inherit; font-size: .85rem; }
.vl-ds-liste { max-height: 50vh; overflow: auto; margin-top: 6px; }
.vl-ds-liste td { font-size: .8rem; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.vl-ds-zeile { cursor: pointer; } .vl-ds-zeile:hover { background: #e6f4f1; }
.vl-bsp-hinweis .filter-leeren { margin-left: 4px; }

/* ---------- ab 3.99.52: Datenbrücke – Ziel „Datenbank“ (Plan Datenbrücke 4) ---------- */
.vl-zf-name.vl-dbspalte { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.vl-dbname { font-weight: 600; word-break: break-all; }
.vl-dbpk { font-size: .62rem; font-weight: 700; background: #e2e8f0; color: #334155; border-radius: 3px; padding: 0 3px; }
.vl-dbhaken { display: inline-flex; align-items: center; gap: 2px; font-size: .72rem; font-weight: 400; color: #64748b; cursor: pointer; white-space: nowrap; }
.vl-dbhaken.an { color: #0f766e; font-weight: 600; }
.vl-dbhaken input { margin: 0; }
.vl-db .vs-meldung { margin: 2px 0; }

/* ab 3.99.53: verschachtelte Untermenüs (Shop → Shopware 5 → Artikel) – je Ebene 16 px mehr Einzug */
html .mf-menu-eintrag.mf-menu-unter.mf-ebene-1 { padding-left: calc(54px * var(--s)); font-weight: 600; font-size: .78rem; }
html .mf-menu-eintrag.mf-menu-unter.mf-ebene-2 { padding-left: calc(70px * var(--s)); font-size: .76rem; }
html .mf-menu-eintrag.mf-menu-untereintrag.mf-ebene-1, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag.mf-ebene-1 { padding-left: calc(78px * var(--s)); }
html .mf-menu-eintrag.mf-menu-untereintrag.mf-ebene-2, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag.mf-ebene-2 { padding-left: calc(94px * var(--s)); }

/* ab 3.99.54 (Rene 29.10.2026 23:57): Datenbrücke → Vorlagen – Auswahl der Vorlage deutlich abgesetzt, Startseite mit Liste */
.vl-wahl-box { display: inline-flex; align-items: center; gap: 0; border: 2px solid var(--th-akzent, #0f766e); border-radius: 6px; background: var(--th-feld, #fff); padding: 0 2px 0 0; }
.vl-wahl-box .vl-wahl-titel { display: inline-flex; align-items: center; gap: 4px; align-self: stretch; padding: 0 10px; background: var(--th-akzent, #0f766e); color: #fff; font-weight: 600; font-size: .8rem; border-radius: 3px 0 0 3px; }
.vl-wahl-box .vl-wahl { width: 320px; }
.vl-wahl-box .vl-wahl input { border: none !important; font-weight: 600; font-size: .85rem; height: 28px; background: transparent; }
/* ab 3.99.58 (Rene 30.10.2026 16:46): Vorlage höher und länger, Knöpfe eine Zeile darunter */
.vl-oben { padding-bottom: 2px; }
.vl-oben { flex-wrap: nowrap; }
.vl-oben .vl-wahl-box { flex: 1 1 760px; min-width: 360px; max-width: 760px; }
.vl-oben .vl-wahl-box .vl-wahl { width: auto; flex: 1; }
.vl-oben .vl-wahl-box .vl-wahl input { height: 36px; font-size: .95rem; }
.vl-oben .vl-wahl-box .vl-wahl-titel { font-size: .88rem; padding: 0 14px; }
.vl-knoepfe { padding-top: 0; }
.vl-ziel-kopf { display: flex; align-items: center; gap: 6px; }
.vl-ziel-kopf > span { font-weight: 600; }
.vl-zielspalte .vl-ziel-kopf .aw { flex: 1; width: auto; min-width: 0; }
.vl-wahl-box .vl-wahl-umbenennen { border: none; background: transparent; cursor: pointer; color: var(--th-akzent, #0f766e); padding: 2px 6px; display: inline-flex; align-items: center; }
.vl-wahl-box .vl-wahl-umbenennen:hover { background: rgba(15, 118, 110, .1); border-radius: 4px; }
.vl-start-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 14px; max-width: 900px; }
.vl-start-eintrag { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--th-feldrand, #cbd5e1); border-left: 4px solid var(--th-akzent, #0f766e); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; cursor: pointer; font: inherit; font-size: .82rem; }
.vl-start-eintrag:hover { background: rgba(15, 118, 110, .07); }
.vl-start-eintrag small { opacity: .7; }
/* ab 3.99.54: Bedingung der alten Tabelle entfernen; zugeordnetes Feld fehlt in der Tabelle */
.vl-fehler-knoepfe { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.vl-fehler-knoepfe .klein { font-family: monospace; opacity: .8; }
.vl-chip.fehlt { background: #fee2e2 !important; color: #991b1b !important; text-decoration: line-through; text-decoration-thickness: 1px; }
.vl-fehlt, .pz-fehlt { color: #b42318; font-weight: 600; font-size: .8rem; }
.vl-fehlt { display: block; margin-top: 2px; }
.vl-feld-fehlt-hinweis { margin: 4px 0; padding: 6px 8px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: .8rem; font-weight: 600; }
/* ab 3.99.54 (Rene 30.10. 00:08): Bild je Option mit ✕ entfernen */
.sh-optbild { position: relative; display: inline-flex; }
.sh-optbild img { cursor: pointer; }
.sh-optbild-x { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; border-radius: 50%; border: none; padding: 0; background: #b91c1c; color: #fff; font-size: 9px; line-height: 15px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.sh-optbild:hover .sh-optbild-x, .sh-optbild-x:focus { opacity: 1; }
@media (hover: none) { .sh-optbild-x { opacity: .85; } }

/* ab 3.99.55 (Rene 30.10.2026 00:28 „die rote Farbe irritiert – da meine ich immer, der ist nicht online“): Live-Shop grün = online */
:root { --th-shop-live: #dcfce7; --th-shop-live-text: #166534; --th-shop-live-punkt: #16a34a; }
.sv-band.live { background: #f0fdf4; border-color: var(--th-shop-live-punkt, #16a34a); color: #166534; }
/* ab 3.99.55: Freitextfeld mit Hinweis (Mouse-over) */
label.mit-hinweis { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
/* ab 3.99.55 (Rene 30.10. 08:11): Ampel „im Shop sichtbar?“ */
.sh-ampel-feld { position: relative; display: inline-flex; align-items: center; }
.sh-ampel { border: none; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }
.sh-ampel.klein { font-size: .8rem; cursor: help; }
.sh-ampel-pop { position: absolute; top: 24px; left: 0; z-index: 60; min-width: 340px; max-width: 480px; padding: 10px 28px 10px 12px; border-radius: 6px; background: var(--th-feld, #fff); color: inherit; border: 1px solid var(--th-feldrand, #cbd5e1); box-shadow: 0 6px 22px rgba(0,0,0,.18); font-size: .8rem; }
.sh-ampel-pop ul { margin: 6px 0 8px 16px; padding: 0; }
.sh-ampel-pop li { margin: 2px 0; }
.sh-ampel-zu { position: absolute; top: 4px; right: 6px; border: none; background: transparent; cursor: pointer; opacity: .6; }
.sh-ampel-front { margin-top: 6px; padding: 5px 8px; border-radius: 4px; }
.sh-ampel-front.ok { background: #dcfce7; color: #166534; }
.sh-ampel-front.fehler { background: #fee2e2; color: #991b1b; }

/* ab 3.99.58: Zeitplan wie die Windows-Aufgabenplanung */
.vl-zeitplan-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--th-feldrand, #cbd5e1); background: var(--th-feld, #fff); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: inherit; max-width: 420px; flex: 0 1 auto; min-width: 0; }
.vl-zeitplan-knopf span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-zeitplan-knopf small { opacity: .7; white-space: nowrap; }
.vl-zeitplan-knopf.an { border-color: var(--th-akzent, #0f766e); color: var(--th-akzent, #0f766e); font-weight: 600; }
.zp-dialog { display: flex; flex-direction: column; gap: 10px; }
.zp-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 8px; font-size: .85rem; }
.zp-zeile.oben { align-items: start; }
.zp-zeile > label { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.zp-start { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zp-zahl { width: 80px !important; }
.zp-start input[type=date] { width: 160px !important; }
.zp-start input[type=time] { width: 130px !important; }
.zp-start select { width: 170px !important; }
.zp-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 10px; }
.zp-haken { display: inline-flex; align-items: center; gap: 6px; font-weight: 400 !important; }
.zp-benutzer { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; }
.zp-benutzer label { display: inline-flex; align-items: center; gap: 6px; }
.zp-vorschau { border-top: 1px solid var(--mf-linie, #e2e8f0); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* ab 3.99.58: Jobwarteschlange in der Übersicht der Datenbrücke */
.dbu-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 10px; background: rgba(15, 118, 110, .06); border: 1px solid var(--th-rahmen, var(--mf-linie)); border-radius: 6px; }
.dbu-haken { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; }
.dbu-jobs th.sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
.dbu-jobs th.sortierbar:hover { color: var(--mf-blau, #2f5fae); }
.dbu-name { white-space: nowrap; }
.dbu-zeitplan { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbu-status { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 10px; }
.dbu-status.laeuft { background: #e0f2fe; color: #0369a1; }
.dbu-status.bereit { background: #dcfce7; color: #166534; }
.dbu-status.hand { background: #f1f5f9; color: #475569; }
.dbu-status.ausgesetzt { background: #fef3c7; color: #92400e; }
tr.dbu-ausgesetzt td { color: #64748b; }

/* ab 3.99.61 (Rene 30.10.2026 21:50, Variante B): Sichtbarkeit im Shop als Schild mit Punkt und Text */
.sh-sicht { --sf: #94a3b8; display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 7px; border: 1px solid color-mix(in srgb, var(--sf) 35%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--sf) 11%, transparent); color: var(--sf); font: inherit; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.sh-sicht i { width: 7px; height: 7px; border-radius: 50%; background: var(--sf); flex: none; }
.sh-sicht.gruen { --sf: #15803d; } .sh-sicht.gelb { --sf: #c26a04; } .sh-sicht.rot { --sf: #dc2626; } .sh-sicht.aus { --sf: #8a97a8; }
.sh-sicht:hover { background: color-mix(in srgb, var(--sf) 18%, transparent); }
.sh-sicht.klein { font-size: .72rem; padding: 0 7px 0 5px; cursor: help; }

/* ab 3.99.61: Importschnittstelle → Vorlage der Datenbrücke */
.ius-dialog { display: flex; flex-direction: column; gap: 4px; }
.ius-text { margin: 0 0 6px; }
.ius-gruppe { margin-top: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--th-text-zweit, #5b6878); }
.ius-zeile { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.ius-zeile:hover { background: color-mix(in srgb, var(--th-akzent, #0f766e) 7%, transparent); }
.ius-zeile.gewaehlt { background: color-mix(in srgb, var(--th-akzent, #0f766e) 12%, transparent); }
.ius-zeile.aus { opacity: .55; cursor: default; }
.ius-zeile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ius-name { font-weight: 600; }
.ius-feld { margin-top: 8px; }
.vl-ue-hinweise { position: relative; display: flex; gap: 8px; margin: 6px 0; padding-right: 28px; }
.vl-ue-hinweise ul { margin: 4px 0 0 18px; padding: 0; }
.vl-ue-hinweise li { margin: 2px 0; }

/* ab 3.99.62: Magento-Sicherung */
.m2s-verb { min-width: 220px; }
.m2s-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.m2s-zeit { width: 110px; }
.m2s-schreiben { margin-top: 6px; font-weight: 600; }
.m2s-einst { min-width: 0; }
.m2s-einst .inv-zeile { flex-wrap: wrap; }
.m2s-einst .sh-zahl { width: 64px; }
.m2s-einst .sh-wahl { white-space: normal; align-items: flex-start; }
.m2s-einst .ss-ordner { min-width: 0; flex: 1; }

/* ab 3.99.63: Dienstplanung, Dienste, Übernahme aus ZeitConsens */
.dpl-dienste input:not([type=checkbox]):not([type=color]) { width: 100%; min-width: 60px; }
.dpl-dienste .dpl-kurz { width: 54px; min-width: 0; text-transform: uppercase; font-weight: 600; }
.dpl-zahl { width: 64px; }
.dpl-wt { white-space: nowrap; }
.dpl-wt label { display: inline-flex; flex-direction: column; align-items: center; font-size: .65rem; margin-right: 2px; }
.dpl-wahl { height: 28px; }
.dpl-pinsel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 8px; }
.dpl-chip { display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--dpl-f, #94a3b8); border-left-width: 5px; border-radius: 6px; padding: 2px 8px;
    background: var(--th-flaeche, #fff); color: inherit; cursor: pointer; font-size: .8rem; }
.dpl-chip small { color: var(--th-text2, #666); font-size: .7rem; }
.dpl-chip.an { background: var(--dpl-f, #475569); color: #fff; }
.dpl-chip.an small { color: rgba(255,255,255,.85); }
.dpl-chip.frei { --dpl-f: #94a3b8; }
.dpl-chip.weg { --dpl-f: #c62828; }
.dpl-chip.klein { padding: 0 5px; cursor: default; }
.dpl-muster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 8px; border: 1px dashed var(--th-rahmen, #d0d7de); border-radius: 6px; margin: 0 8px 6px; }
.dpl-muster input:not(.dpl-zahl) { width: 220px; }
.dpl-rahmen { flex: 1; }
.dpl-tabelle { border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.dpl-tabelle th, .dpl-tabelle td { border-bottom: 1px solid var(--th-rahmen, #e2e8f0); border-right: 1px solid var(--th-rahmen, #eef2f6); padding: 2px 3px; }
.dpl-tabelle thead th { position: sticky; top: 0; background: var(--th-flaeche, #fff); z-index: 2; font-weight: 600; text-align: center; }
.dpl-tabelle .dpl-name { position: sticky; left: 0; background: var(--th-flaeche, #fff); z-index: 1; min-width: 170px; text-align: left; white-space: nowrap; }
.dpl-tabelle thead .dpl-name { z-index: 3; }
.dpl-tabelle .dpl-name small { display: block; color: var(--th-text2, #666); font-size: .68rem; }
.dpl-tabelle .dpl-name input { margin-right: 4px; vertical-align: middle; }
.dpl-tag { min-width: 64px; text-transform: capitalize; }
.dpl-tag small { font-weight: 400; color: var(--th-text2, #666); }
.dpl-tag.heute, .dpl-zelle.heute { box-shadow: inset 0 -2px 0 var(--mf-gruen, #0f7a6c); } /* ab 3.99.319: grün statt blau */
.dpl-tag.we, .dpl-zelle.we { background: rgba(100, 116, 139, .07); }
.dpl-zelle { height: 38px; vertical-align: middle; text-align: center; }
.dpl-zelle.ft { background: rgba(106, 27, 154, .08); }
.dpl-zelle.klick { cursor: pointer; }
.dpl-zelle.klick:hover { outline: 2px solid var(--mf-gruen, #0f7a6c); outline-offset: -2px; }
.dpl-zelle.zuwenig { background: rgba(198, 40, 40, .15); color: #c62828; font-weight: 700; }
.dpl-eintrag { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 1px 5px; border-radius: 5px; background: var(--dpl-f, #0f766e); color: #fff; min-width: 34px; }
/* ab 3.99.318 (Rene 17.11.2026 Variante C): veröffentlicht = kräftiger getönt + durchgezogener Rahmen, Entwurf = fein getönt + gestrichelt; Schrift in der Dienstfarbe */
/* ab 3.99.319 (Rene 17.11.2026 23:36 „Variante A“): kräftiger – veröffentlicht 35 % mit vollem Rahmen, Entwurf 15 % gestrichelt, Schrift dunkel in der Dienstfarbe */
.dpl-eintrag { background: color-mix(in srgb, var(--dpl-f, #0f766e) 35%, #fff); color: color-mix(in srgb, var(--dpl-f, #0f766e) 55%, #000); border: 1.5px solid var(--dpl-f, #0f766e); border-radius: 2px; }
.dpl-eintrag small { font-size: .62rem; opacity: .9; }
.dpl-eintrag.entwurf { background: color-mix(in srgb, var(--dpl-f, #0f766e) 15%, #fff); color: color-mix(in srgb, var(--dpl-f, #0f766e) 70%, #000); border: 1.5px dashed var(--dpl-f, #0f766e); }
.dpl-eintrag.frei { background: transparent; color: #64748b; border: 1px solid #cbd5e1; }
.dpl-abw { display: inline-block; padding: 0 4px; border-radius: 4px; border: 1px solid var(--dpl-f, #607d8b); color: var(--dpl-f, #607d8b); font-size: .68rem; font-weight: 600; margin: 0 2px 1px 0; }
.dpl-abw.beantragt { border-style: dashed; opacity: .75; }
.dpl-ft { color: #6a1b9a; font-size: .62rem; }
.dpl-summe { min-width: 62px; white-space: nowrap; background: var(--th-flaeche2, #f8fafc); }
.dpl-summe.r { text-align: right; font-variant-numeric: tabular-nums; }
.dpl-zus { color: #ef6c00; }
.dpl-besetzung td { height: 24px; font-size: .74rem; }
/* ab 3.99.318 (Rene 17.11.2026): Zählzeilen in ihrer Dienstfarbe hinterlegt, Zahlen in der Dienstfarbe, kräftigere Linie über der ersten */
.dpl-besetzung td { background: color-mix(in srgb, var(--dpl-f, #0f766e) 20%, #fff); color: var(--dpl-f, #0f766e); font-weight: 600; }
.dpl-tabelle .dpl-besetzung td.dpl-name { color: var(--th-text, #2e4052); font-weight: 400; background: color-mix(in srgb, var(--dpl-f, #0f766e) 20%, #fff); }
.dpl-besetzung td.dpl-zelle.zuwenig { background: rgba(198, 40, 40, .18); color: #c62828; font-weight: 700; }
.dpl-besetzung:first-child td { border-top: 1.5px solid #9aa4ad; }
.dpl-besetzung .dpl-chip.klein { background: #fff; }
.dpl-legende { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 8px; align-items: center; }
.zc-formular { display: grid; gap: 10px; padding: 10px; max-width: 900px; }
.zc-formular > label { display: grid; gap: 3px; font-weight: 600; }
.zc-formular > label small, .zc-speicher small { font-weight: 400; color: var(--th-text2, #666); }
.zc-formular select, .zc-formular input[type=date] { max-width: 360px; height: 30px; }
.zc-haken { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.zc-speicher { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.zc-knoepfe { display: flex; gap: 10px; align-items: center; }
.zc-arten { display: flex; flex-wrap: wrap; gap: 4px; }

/* ab 3.99.64 (Rene 31.10.2026): Datensatz vor/zurück neben „Datensatz“ */
.vl-satz { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.vl-satz .mf-knopf.klein { padding: 2px 4px; min-width: 0; }
.vl-satz-nr { font-size: .78rem; color: #475569; min-width: 44px; text-align: center; cursor: pointer; }
/* ab 3.99.64 (Rene 31.10.2026 „das könnte breiter sein … damit die Umbrüche nicht stattfinden“): Auswahlliste so breit wie der Inhalt */
.aw-feld > .aw-liste { right: auto; width: max-content; min-width: 100%; max-width: min(760px, 92vw); }
.aw-feld > .aw-liste .aw-eintrag > span { white-space: nowrap; }
.aw-feld > .aw-liste .aw-eintrag small { max-width: 380px; }
/* ab 3.99.64: Mandantennummer im Kopf */
.mf-kopfknopf.mandant .mandant-nr { font-variant-numeric: tabular-nums; font-weight: 700; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,.18); }
/* Ziel-Auswahl steht rechts: Liste nach links aufklappen */
.vl-ziel-kopf .aw-feld > .aw-liste { left: auto; right: 0; }
.vl-feldsuche-zeile { flex-wrap: wrap; }
.vl-feldsuche-zeile > .vl-feldsuche { min-width: 130px; }
/* ab 3.99.64 (Rene 31.10.2026): Zeitplan kompakt in einer Zeile (Vorlagen- und Prozess-Kopf) */
.zpk { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 3px 8px; border: 1px solid var(--mf-linie, #d6dde6); border-radius: 9px; background: #fff; font-size: .8rem; max-width: 100%; }
.zpk.an { border-color: #9fd3c9; background: #f3fbf9; }
.zpk-symbol { color: #64748b; }
.zpk.an .zpk-symbol { color: #0e7c6f; }
.zpk-aktiv { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; padding-right: 6px; border-right: 1px solid var(--mf-linie, #d6dde6); }
.zpk-feld { height: 26px; border: 1px solid #cfd8e3; border-radius: 6px; padding: 0 5px; font: inherit; font-size: .8rem; background: #fff; color: inherit; }
.zpk-art { font-weight: 600; }
.zpk-zahl { width: 54px; }
.zpk-datum { width: 128px; }
.zpk-zeit { width: 104px; }
.zpk-gruppe { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.zpk-benutzer label { display: inline-flex; align-items: center; gap: 2px; }
.zpk-benutzer .zpk-zahl { width: 46px; }
.zpk-tage { display: inline-flex; gap: 2px; }
.zpk-tage button { min-width: 26px; height: 24px; padding: 0 4px; border: 1px solid #cfd8e3; border-radius: 5px; background: #fff; color: #475569; font-size: .74rem; cursor: pointer; }
.zpk-tage button.an { background: #0e7c6f; border-color: #0e7c6f; color: #fff; font-weight: 600; }
.zpk-ende { display: inline-flex; align-items: center; gap: 3px; }
.zpk-naechster { color: #0e7c6f; white-space: nowrap; }
.zpk-naechster.fehlt { color: #b45309; }
.zpk-start { margin-left: 2px; }
.vl-oben { flex-wrap: wrap; row-gap: 6px; }
.vl-oben > .vl-wahl-box { flex: 1 1 420px; min-width: 320px; }
.vl-oben > .zpk { flex: 0 1 auto; }
/* ab 3.99.64: erzeugte Dateien der Datenbrücke (Werkanmeldung) */
.vl-dateien { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 6px 0; }
.vl-datei { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #d6dde6; border-radius: 8px; background: #fff; }
.vl-datei small { color: #64748b; }
.vl-datei-inhalt { flex: 1 1 100%; max-height: 360px; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; font-size: .74rem; white-space: pre; }
.vl-nur-diese { display: flex; align-items: center; gap: 6px; margin: 4px 8px; padding: 4px 8px; border-radius: 7px; background: #fff7e6; border: 1px solid #f5c26b; font-size: .8rem; }
/* ab 3.99.64: Export über die Datenbrücke (Stammdaten) */
.dbx-dialog { display: flex; flex-direction: column; gap: 6px; }
.dbx-eintrag { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid #d6dde6; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.dbx-eintrag:hover { background: #eef8f6; border-color: #9fd3c9; }
.dbx-eintrag small { margin-left: auto; color: #64748b; }
.dbx-neu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- ab 3.99.66: Datenbrücke – Kopf zweispaltig (Zeitplan rechts: oben Auswahl, darunter Einstellungen) und Ablauf-Schrittleiste ---------- */
.vl-kopfbereich { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.vl-kopflinks { flex: 1 1 560px; min-width: 0; }
.vl-kopflinks .vl-oben > .vl-wahl-box { min-width: 0; }
.vl-kopfrechts { flex: 0 1 auto; max-width: 560px; min-width: 0; margin-left: auto; display: flex; justify-content: flex-end; padding-top: 2px; }
.vl-kopfrechts .zpk { max-width: 560px; }
.zpk { flex-direction: column; align-items: stretch; gap: 4px; }
.zpk-kopf { display: flex; align-items: center; gap: 6px 8px; flex-wrap: nowrap; }
.zpk-kopf .zpk-start { margin-left: auto; }
.zpk-details { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 4px; border-top: 1px dashed var(--mf-linie, #d6dde6); }
.vl-schritt-hinweis .zpk-kopf > span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abl { margin: 2px 0 6px; }
.abl-leiste { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; row-gap: 6px; }
.abl-titel { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: #0e7c6f; padding-right: 8px; }
.abl-k { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 120px; max-width: 220px; padding: 4px 10px 4px 34px; border: 1px solid var(--mf-linie, #cfd8e3); border-radius: 8px; background: var(--th-feld, #fff); cursor: pointer; font-size: .78rem; line-height: 1.25; }
.abl-k:hover { border-color: #0e7c6f; }
.abl-k.gewaehlt { border: 2px solid #0e7c6f; padding: 3px 9px 3px 33px; background: #f0faf7; }
.abl-k.aus { opacity: .55; border-style: dashed; }
.abl-nr { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #0e7c6f; color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.abl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abl-k-stand { color: #64748b; font-size: .7rem; white-space: nowrap; }
.abl-k-stand.ok { color: #0e7c6f; }
.abl-k-stand.fehler { color: #b91c1c; }
.abl-k-knoepfe { position: absolute; right: 2px; top: -10px; display: none; gap: 1px; background: var(--th-feld, #fff); border: 1px solid var(--mf-linie, #cfd8e3); border-radius: 6px; padding: 0 2px; }
.abl-k:hover .abl-k-knoepfe { display: inline-flex; }
.abl-k-knoepfe button { border: 0; background: transparent; cursor: pointer; font-size: .68rem; padding: 1px 3px; color: #475569; }
.abl-k-knoepfe button:hover:not(:disabled) { color: #0e7c6f; }
.abl-k-knoepfe button:disabled { opacity: .3; cursor: default; }
.abl-uhr { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; cursor: pointer; color: #94a3b8; padding: 0 2px; font-size: .68rem; }
.abl-uhr small { white-space: nowrap; }
.abl-uhr .abl-linie { display: inline-block; width: 10px; height: 2px; background: #cbd5e1; }
.abl-uhr:hover, .abl-uhr.offen { color: #0e7c6f; }
.abl-uhr.an { color: #b45309; font-weight: 600; }
.abl-uhr.an .abl-linie { background: #f59e0b; }
.abl-plus { margin-left: 8px; align-self: center; width: 32px; height: 32px; border: 1px dashed #94a3b8; border-radius: 8px; background: transparent; color: #475569; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.abl-plus:hover:not(:disabled), .abl-plus.offen { border-color: #0e7c6f; color: #0e7c6f; }
.abl-plus:disabled { opacity: .4; cursor: default; }
.abl-stand { align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: #b45309; margin-right: 8px; }
.abl-leiste > .mf-knopf { align-self: center; }
.abl-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--mf-linie, #cfd8e3); border-radius: 8px; font-size: .78rem; }
.abl-panel .abl-feld-breit { width: 260px; }
.abl-feld { display: inline-flex; align-items: center; gap: 4px; }
.abl-feld input[type=number] { width: 64px; }
.abl-feld input, .abl-ordner { height: 24px; border: 1px solid #cfd8e3; border-radius: 5px; padding: 0 5px; font: inherit; }
.abl-hinweis { flex-basis: 100%; color: #64748b; font-size: .72rem; }
.abl-einst { flex-direction: column; align-items: stretch; }
.abl-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.abl-zeile > b { width: 110px; }
.abl-ordner { flex: 1; min-width: 260px; }
.abl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 8px; border-radius: 10px; background: #e6f4f1; color: #0b5d53; }
.abl-chip button { border: 0; background: transparent; cursor: pointer; color: #0b5d53; font-size: .7rem; }
.abl-lauf { border: 1px solid #cfd8e3; border-radius: 5px; background: transparent; padding: 1px 6px; font-size: .72rem; cursor: pointer; }
.abl-lauf.an, .abl-lauf:hover { border-color: #0e7c6f; color: #0e7c6f; }
.abl-log pre { max-height: 260px; overflow: auto; margin: 4px 0; padding: 6px 8px; border: 1px solid var(--mf-linie, #cfd8e3); border-radius: 6px; font-size: .72rem; white-space: pre-wrap; }

/* ---------- ab 3.99.68 (Rene 31.10.2026 11:35): Developer-Bereiche leicht orange – Menü, Fenster, Knöpfe, Bereiche ---------- */
:root { --dev-orange: #fb923c; --dev-orange-hell: #fff4e6; --dev-orange-text: #9a3412; }
.mf-menu-eintrag.dev-nur { color: #fdba74 !important; background: rgba(251, 146, 60, .10) !important; border-color: transparent !important; box-shadow: inset 3px 0 0 var(--dev-orange); }
.mf-menu-eintrag.dev-nur:hover, .mf-menu-eintrag.dev-nur:focus, .mf-menu-eintrag.dev-nur:focus-visible, .mf-menu-eintrag.dev-nur.aktiv, .mf-menu-eintrag.dev-nur.active { color: #ffedd5 !important; background: rgba(251, 146, 60, .28) !important; }
.fenster.dev-fenster { box-shadow: 0 0 0 2px var(--dev-orange), 0 8px 24px rgba(0,0,0,.18); }
.fenster.dev-fenster > .fenster-titel { background: linear-gradient(90deg, #f59e0b, #fb923c) !important; }
.fenster.dev-fenster > .fenster-titel .fenster-name, .fenster.dev-fenster > .fenster-titel .fenster-pfad { color: #431407 !important; }
.mf-knopf.dev-nur, button.dev-nur, .dev-nur > button { background: var(--dev-orange-hell) !important; border-color: var(--dev-orange) !important; color: var(--dev-orange-text) !important; }
.mf-knopf.dev-nur:hover:not(:disabled), button.dev-nur:hover:not(:disabled) { background: #ffedd5 !important; }
section.dev-nur, div.dev-nur, fieldset.dev-nur { background-color: var(--dev-orange-hell) !important; border: 1px dashed var(--dev-orange) !important; border-radius: 6px; }
div.dev-bereich { padding: 6px 8px; margin: 6px 0; }
label.dev-nur, td.dev-nur { background-color: var(--dev-orange-hell) !important; color: var(--dev-orange-text); }
textarea.dev-nur, input.dev-nur { background-color: var(--dev-orange-hell) !important; border-color: var(--dev-orange) !important; }
.mud-tab.dev-nur { color: var(--dev-orange-text) !important; background: var(--dev-orange-hell) !important; }

/* ---------- ab 3.99.68 (Rene 31.10.2026 12:06): Modul „Shops“ rechts – auf jedem Reiter des Shop-Artikels ---------- */
.sh-maske-inhalt { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }
.sh-maske-links { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; min-width: 0; }
.sh-maske-inhalt.sh-mit-shops { display: grid; grid-template-columns: minmax(0, 1fr) var(--bs, 300px); align-items: start; }
.sh-maske-rechts { position: sticky; top: 0; }
.sh-rechtsspalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-rechtsspalte > .sh-bildspalte { flex: 1 1 auto; }
.sh-shopmodul { display: flex; flex-direction: column; gap: 3px; }
.sh-shopmodul-zeile { display: flex; align-items: center; gap: 6px; font-size: .8rem; cursor: pointer; padding: 1px 0; }
.sh-shopmodul-zeile.aus { opacity: .55; }
.sh-shopmodul-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-shopmodul-art { font-size: .68rem; padding: 0 6px; border-radius: 8px; white-space: nowrap; }
.sh-shopmodul-art.sw { background: #e0f2fe; color: #075985; }
.sh-shopmodul-art.m2 { background: #ffedd5; color: #9a3412; }
.sh-shopfilter { width: 220px; }
.sh-aus-bilder .sh-rechtsspalte > .sh-bildspalte { display: none !important; }
@media (max-width: 900px) { .sh-maske-inhalt.sh-mit-shops { grid-template-columns: 1fr; } }

/* ---------- ab 3.99.68 (Rene 31.10.2026 12:10): Menü-Favoriten und Suche oben im Menü ---------- */
.mf-menu-kopf { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; }
.mf-fav-knopf { flex: 0 0 auto; width: 34px; height: 32px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mf-fav-knopf:hover { background: rgba(255,255,255,.14); }
.mf-fav-knopf.an { background: #3b82f6; border-color: #60a5fa; color: #fff; }
.mf-menu-suche { position: relative; flex: 1 1 auto; min-width: 0; }
.mf-menu-suche input { width: 100%; height: 32px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #e2e8f0; padding: 0 26px 0 34px; font: inherit; font-size: .8rem; }
.mf-menu-suche input::placeholder { color: #94a3b8; }
.mf-menu-suche input::-webkit-search-cancel-button, .mf-menu-suche input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.mf-menu-suche input[type=search] { -webkit-appearance: none; appearance: none; }
.mf-menu-suche input:focus { outline: none; border-color: #60a5fa; background: rgba(255,255,255,.12); }
.mf-menu-suche-symbol { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.05rem !important; }
.mf-menu-suche-weg { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #f87171; cursor: pointer; }
.mf-menu-treffer { margin: 0 10px 8px; border-radius: 8px; background: #f8fafc; color: #0f172a; max-height: 60vh; overflow: auto; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.mf-treffer-titel { padding: 6px 10px 2px; font-size: .72rem; font-weight: 700; color: #475569; text-transform: uppercase; }
.mf-treffer-titel small { text-transform: none; font-weight: 400; }
.mf-treffer { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; border: 0; border-bottom: 1px solid #e2e8f0; background: transparent; padding: 5px 10px; text-align: left; cursor: pointer; font-size: .8rem; color: #0f172a; }
.mf-treffer b { color: #0e7c6f; font-weight: 600; }
.mf-treffer small { color: #64748b; font-size: .72rem; display: block; max-height: 2.6em; line-height: 1.3em; overflow: hidden; }
.mf-treffer:hover { background: #e6f4f1; }
.mf-treffer-leer { padding: 8px 10px; font-size: .78rem; color: #64748b; }
.mf-fav-leer { white-space: normal; line-height: 1.3; font-size: .78rem; }
.mfav { display: flex; flex-direction: column; gap: 8px; }
.mfav-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mfav-an { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mfav-raster { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr); gap: 10px; align-items: start; }
.mfav-suche { width: 100%; margin-bottom: 6px; }
.mfav-liste { max-height: 60vh; overflow: auto; }
.mfav-gruppe-titel { font-weight: 700; font-size: .76rem; color: #0e7c6f; margin: 8px 0 2px; }
.mfav-eintrag { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; cursor: pointer; font-size: .8rem; }
.mfav-eintrag:hover { background: #e6f4f1; }
.mfav-eintrag.drin { color: #0e7c6f; }
.mfav-eintrag small { color: #64748b; }
.mfav-griff { cursor: grab; color: #94a3b8; }
.mfav-gruppe { border: 1px solid var(--th-rahmen, #d5dde8); border-radius: 7px; padding: 6px; margin-top: 8px; }
.mfav-gruppe.gewaehlt { border-color: #0e7c6f; box-shadow: 0 0 0 1px #0e7c6f inset; }
.mfav-gruppe-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mfav-gruppe-kopf input { flex: 1 1 auto; font-weight: 600; }
.mfav-k { border: 0; background: transparent; cursor: pointer; color: #475569; font-size: .7rem; }
.mfav-k:disabled { opacity: .3; cursor: default; }
.mfav-leer { padding: 4px 6px; }
@media (max-width: 900px) { .mfav-raster { grid-template-columns: 1fr; } }

.mfav-raster > fieldset { grid-column: auto !important; min-width: 0; margin: 0; }

/* ab 3.99.68 (Rene 31.10. 13:13 „einheitliche Schriftgröße bei den Modulen / kompakt“): Shop-Auswertungen – alle Module gleich und kompakt */
.aw-modul > header { padding: 4px 10px; }
.aw-modul > header h3 { font-size: .82rem; }
.aw-modul-inhalt { padding: 6px 10px 8px; }
.aw-modul-inhalt .aw-hzeile, .aw-modul-inhalt .aw-hzeile b, .aw-modul-inhalt .aw-tabelle, .aw-modul-inhalt .aw-tabelle th, .aw-modul-inhalt .aw-tabelle td,
.aw-modul-inhalt .aw-leer { font-size: .74rem !important; line-height: 1.35; }
.aw-modul-inhalt .aw-hbalken { gap: 2px; margin-bottom: 6px; }
.aw-modul-inhalt .aw-hzeile > div { height: 17px; }
.aw-modul-inhalt .aw-hzeile b { line-height: 17px; }
.aw-modul-inhalt .aw-tabelle th, .aw-modul-inhalt .aw-tabelle td { padding: 2px 6px !important; height: auto !important; }
.aw-modul-inhalt .aw-tabelle td:first-child { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* ab 3.99.68: Zeitreihen der Shop-Auswertungen als Fläche mit Linie und Punkten */
.aw-svg .aw-flaeche { fill: #14b8a6; opacity: .22; }
.aw-svg .aw-linie { fill: none; stroke: #0d9488; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.aw-svg .aw-punkt { stroke: #0d9488; stroke-width: 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ab 3.99.69 (Rene 31.10. 13:53): Zeitleiste – Ablauf einer Maske in Schritten (Components/Shared/Zeitleiste.razor) */
.zeitl { display: flex; align-items: center; gap: 0; padding: 6px 10px; flex-wrap: wrap; row-gap: 6px; }
.zeitl-schritt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--th-rahmen, #cbd5e1); background: var(--th-feld, #fff); color: var(--mf-text, #1f2937);
  border-radius: 20px; padding: 3px 14px 3px 4px; cursor: pointer; font: inherit; font-size: .8rem; line-height: 1.15; text-align: left; }
.zeitl-schritt:hover { border-color: var(--mud-palette-primary, #0f766e); }
.zeitl-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #475569; font-weight: 700; font-size: .78rem; flex: none; }
.zeitl-text { display: flex; flex-direction: column; }
.zeitl-text small { color: var(--mf-text-2, #64748b); font-size: .7rem; }
.zeitl-schritt.fertig .zeitl-nr { background: #16a34a; color: #fff; }
.zeitl-schritt.fertig { border-color: #86efac; background: #f0fdf4; }
.zeitl-schritt.aktiv { border-color: var(--mud-palette-primary, #0f766e); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary, #0f766e) 25%, transparent); }
.zeitl-schritt.aktiv:not(.fertig) .zeitl-nr { background: var(--mud-palette-primary, #0f766e); color: #fff; }
.zeitl-linie { flex: 0 1 34px; min-width: 14px; height: 2px; background: #cbd5e1; margin: 0 4px; }
.zeitl-linie.fertig { background: #16a34a; }

/* ab 3.99.70 (Rene 31.10. 15:40 „diese Einblendungen sollten ein wenig weiter links erscheinen“): Meldungen oben rechts nicht über
   Mandant/Benutzer/Abmelden in der Kopfleiste, sondern links davon und knapp darunter */
@media (min-width: 900px) {
  .mud-snackbar-location-top-right { right: 300px !important; top: 52px !important; }
}

/* ab 3.99.70 (Rene 31.10. 16:45 „mach die abstände der menüs ein wenig kleiner – zumindest der submenüs“): Untermenü-Einträge
   enger (vorher 2px + Zeilenhöhe 1.25 ≈ 20px, jetzt 1px + 1.12 ≈ 16px); Gruppenköpfe (Stammdaten, Archivdaten …) bleiben */
html .mf-menu-eintrag:not(.start):not(.dms-integritaet-menue),
html.thema-petrol .mf-menu-eintrag:not(.start):not(.dms-integritaet-menue) {
  padding-top: calc(1px * var(--s)); padding-bottom: calc(1px * var(--s)); line-height: 1.12;
}

/* ---------- ab 3.99.70 (Rene 31.10.2026 16:58): neuer Name „Inntec ONE“ – Logo aus Symbol + Schriftzug (MarkeLogo.razor) ---------- */
.marke-logo { position: relative; }
.marke-logo .marke-voll { height: var(--marke-h); width: calc(var(--marke-h) * 4.706); flex: none; display: block; }
.marke-logo.dunkel .marke-inntec { fill: #ffffff; }
.marke-logo.dunkel .marke-one, .marke-logo.dunkel .marke-claim { fill: #7fe0d0; }
.marke-logo.hell .marke-inntec { fill: #17222a; }
.marke-logo.hell .marke-one, .marke-logo.hell .marke-claim { fill: #0f766e; }
/* Unterzeile (Programmversion) unter dem Schriftzug, rechts vom Symbol */
.marke-logo .marke-unter { position: absolute; left: calc(var(--marke-h) * 1.235); top: calc(var(--marke-h) * .80); line-height: 1; white-space: nowrap; }
.mrr-brand { position: relative; }
.mrr-brand .marke-logo { margin-right: 0; }
.mrr-brand .marke-logo .marke-voll { margin-top: calc(var(--marke-h) * -.12); } /* Schriftzug optisch mittig, Platz für die Version */
.mrr-brand .kopf-version { display: inline; margin: 0; font-size: .6rem; opacity: .6; letter-spacing: .03em; }
.mrr-appbar.menue-offen .mrr-brand { width: auto; min-width: calc((250px - 60.7px) * var(--s)); }
/* Über Inntec ONE: Logo mit Claim statt Kachel + Name */
.pi-band .pi-band-logo { display: flex; align-items: center; }
.pi-band .pi-band-logo svg { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.pi-dunkel { background: #17222a; }
/* Anmeldung: Logo mit Claim, darunter „Bitte melden Sie sich an.“ */
.login-marke.login-marke-inntec { flex-direction: column; align-items: flex-start; gap: .6rem; }
.login-marke.login-marke-inntec .marke-voll { max-width: 100%; height: auto; aspect-ratio: 1200 / 255; }
.nur-vorlesen { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ab 3.99.70: Ladeanzeige mit Inntec-ONE-Symbol – obere Ebene hebt sich leicht */
.lade-logo .lade-ebene-oben { animation: lade-ebene 1.6s ease-in-out infinite; }
@keyframes lade-ebene { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@media (prefers-reduced-motion: reduce) { .lade-logo .lade-ebene-oben { animation-duration: 3s; } }

/* ab 3.99.72: Spalte „Shops“ in der Shop-Übersicht – ein Schild je Shop */
.sh-shops { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.sh-shopchip { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: .72rem; line-height: 1.5; white-space: nowrap;
  background: color-mix(in srgb, var(--mud-palette-primary, #0f766e) 10%, transparent); color: var(--mud-palette-primary, #0f766e);
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary, #0f766e) 30%, transparent); }
/* ab 3.99.72: Rahmen „Shops“ mit Sichtbarkeit je Shop (Kopfzeile Shop | Sichtbar, Schild rechts) */
.sh-shopmodul-kopf { display: flex; justify-content: space-between; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-palette-text-secondary, #64748b); padding: 0 2px 2px; }
.sh-shopmodul-reihe { display: flex; align-items: center; gap: 6px; }
.sh-shopmodul-reihe > .sh-shopmodul-zeile { flex: 1; min-width: 0; }
.sh-shopmodul-reihe > .sh-sicht { flex: none; font-size: .68rem; cursor: pointer; }
.sh-shopmodul-reihe > span.sh-sicht { cursor: default; }
.sh-ampel-pop.sh-ampel-pop-shop { position: relative; top: auto; left: auto; right: auto; margin: 2px 0 6px; width: auto; max-width: none; }

/* ab 3.99.73: PDF-Vorschau im Dialog mit pdf.js (Seiten untereinander), Sichtbarkeit über dem Empfänger */
.pdf-dialog-seiten { overflow: auto; padding: 16px 0; box-sizing: border-box; }
.empf-oben { border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
/* ab 3.99.73 (Rene 31.10.2026 21:57 „Zeilenabstand verringern“): Ordnerbaum im DMS enger */
.dms-baum-zeile { min-height: 19px; margin: 0 2px; line-height: 1.15; }
.dms-baum-auf { height: 16px; }
/* ab 3.99.73: DMS – Höhe zwischen Ordnern und Liste (nur „Liste unter den Ordnern“) */
.dms-ablage-baum { position: relative; overflow: visible; }
.dms-ablage-baum > .dms-baum, .dms-ablage-baum > .dms-baum-leiste { border-radius: 8px 8px 0 0; }
.dms-ablage > .dms-ablage-baum > .spalten-griff.dms-hoehe-griff { display: none; }
.dms-ablage.liste-unten > .dms-ablage-baum > .spalten-griff.dms-hoehe-griff { display: block; top: auto; bottom: -8px; left: 0; right: 0; width: auto; height: 8px; cursor: row-resize; }
.dms-ablage { position: relative; }
.dms-ablage > .spalten-griff.dms-breite-ganz { display: none; }
.dms-ablage.liste-unten > .spalten-griff.dms-breite-ganz { display: block; position: relative; grid-column: 1; grid-row: 1 / span 2; justify-self: end; height: 100%; width: 7px; margin-right: -7px; z-index: 5; }
.dms-ablage.liste-unten > .dms-ablage-baum > .spalten-griff:not(.dms-hoehe-griff) { display: none; }
/* ab 3.99.73: Ordner des in der Liste gewählten Dokuments */
.dms-baum-zeile.dok { background: var(--th-auswahl, #d2ece7); box-shadow: inset 3px 0 0 var(--th-akzent, #0f766e); font-weight: 600; }
/* ab 3.99.73: DMS-Ordnersymbole – Bereich (oberste Ebene mit Unterordnern), gestapelte Ordner, Ordner */
.dms-baum-icon.bereich { color: #0f766e; }
.dms-baum-icon.stapel { color: #c98a0c; }
.dms-zone .dms-baum-icon { color: #e0a526; }
.dms-zone .dms-baum-icon.oben { color: #d48806; }
.dms-zone .dms-baum-icon.bereich { color: #0f766e; }
.dms-zone .dms-baum-icon.stapel { color: #c98a0c; }
.dms-zone .dms-baum-icon.wurzel { color: var(--mf-blau, #2f5fae); }
.dms-zone .dms-baum-icon.unverteilt { color: #7a8796; }
.dms-zone .dms-baum-zeile.aktiv .dms-baum-icon { color: #fff; }
/* ab 3.99.74: Ordnersymbole markanter */
.dms-zone .dms-baum-icon.bereich { color: #134e4a; }
.dms-zone .dms-baum-icon.stapel { color: #0f766e; }
.dms-baum-icon.bereich, .dms-baum-icon.stapel { font-size: 17px !important; }
/* ab 3.99.74: Abgleich mit Magento-Produkt */
.mab { display: flex; flex-direction: column; gap: 8px; }
.mab-suche { display: flex; gap: 8px; } .mab-suche input { flex: 1; max-width: 360px; }
.mab-liste { max-height: 60vh; overflow: auto; border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 6px; }
.mab-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mab-tabelle th { position: sticky; top: 0; background: var(--th-tabellenkopf, #f8fafc); text-align: left; padding: 4px 6px; z-index: 1; }
.mab-tabelle td { padding: 3px 6px; border-top: 1px solid var(--th-liste-linie, #edf1f6); vertical-align: top; }
.mab-tabelle td:nth-child(4) { min-width: 240px; }
.mab-wert { max-width: 320px; color: #334155; }
.mab-tabelle tr.zugeordnet { opacity: .65; }
.mab-ok { color: #0f766e; } .mab-neu { color: #b45309; font-weight: 600; } .mab-ohne { color: #94a3b8; }
/* ab 3.99.75: DMS – Fußzeile der Liste mit Blättern und Knöpfen für markierte Dokumente (oben springt nichts mehr) */
.dms-liste-fuss { flex-wrap: wrap; row-gap: 3px; }
.dms-fuss-blaettern { display: inline-flex; align-items: center; gap: 1px; }
.dms-fuss-blaettern .dms-knopf { width: 22px; height: 22px; }
.dms-fuss-pos { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.dms-fuss-knopf { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #b9c6d6; background: #fff; border-radius: 5px; padding: 1px 7px; font: inherit; font-size: .72rem; color: #0f766e; cursor: pointer; }
.dms-fuss-knopf:hover { background: #e8f0f8; }
.dms-fuss-knopf .mud-icon-root { font-size: 14px; }
.dms-fuss-knopf.gefahr { color: #b91c1c; }
/* ab 3.99.75: Schloss ganz rechts (feste Breite, auch als Platzhalter) */
.dms-baum-schloss { width: 14px; display: inline-block; text-align: center; }
.dms-baum-schloss.leer { visibility: hidden; height: 14px; }

/* ab 3.99.76 (Rene 01.11.2026 00:23 „die Felder rechts müssen so kompakt werden wie links“): Zielfeld in EINER Zeile –
   Name | Quellfeld | wenn leer | fester Wert | ƒ; „Umwandeln“ klappt darunter über die ganze Breite auf */
.vl-zf { grid-template-columns: 150px minmax(0, 2fr) minmax(56px, 1fr) minmax(52px, 84px) auto; gap: 0 4px; padding: 1px 0; min-height: 24px; }
.vl-zf:has(> .vl-spalte) { grid-template-columns: 190px minmax(0, 2fr) minmax(56px, 1fr) minmax(52px, 84px) auto; }
.vl-zf:has(> .vl-dbspalte) { grid-template-columns: 210px minmax(0, 2fr) minmax(56px, 1fr) minmax(52px, 84px) auto; }
.vl-zf > .vl-zf-mehr { display: contents; }
.vl-zf > .vl-zf-umw { grid-column: auto; }
.vl-zf > .vl-umw { grid-column: 1 / -1; }
.vl-zf .vl-ablage { min-height: 22px; height: 22px; box-sizing: border-box; }
.vl-zf .vl-ablage.klein { font-size: .7rem; padding: 0 4px; }
.vl-zf .vl-ablage .vl-chip { padding-top: 0; padding-bottom: 0; line-height: 18px; }
.vl-zf .vl-fest { width: 100%; min-width: 0; box-sizing: border-box; }
.vl-zf .vl-umw-knopf { padding: 0 3px; }
.vl-zf-name.vl-spalte input, .vl-zf-name.vl-spalte .aw-eingabe, .vl-zf-name.vl-spalte .aw input { height: 22px; }
.vl-zf-name.vl-spalte .aw { flex: 1; min-width: 0; }
.vl-zf-name.vl-spalte .aw input { font-weight: 600; }
.vl-feld-neu { gap: 4px; }
.vl-feld-neu .aw { flex: 1; min-width: 0; }
/* ab 3.99.76 (Rene 00:26/00:27 „Verbindung anklicken – das Modul rückt nach“): Quellkästen gleiten zum Zielfeld */
.vl-karten { transition: transform .25s ease; }
/* ab 3.99.76 (Rene 00:31 „gleiche Zeilenhöhen … rechts auch schon Daten“): Zeilen so hoch wie die Feldliste links (22 px), Wert aus Magento grau/kursiv */
.vl-zf { min-height: 23px; }
.vl-zf .vl-ablage, .vl-zf .vl-fest, .vl-zf-name.vl-spalte input, .vl-zf-name.vl-spalte .aw input { height: 21px; min-height: 21px; }
.vl-zf.mit-wert { grid-template-columns: 150px minmax(40px, 1.2fr) minmax(0, 2fr) minmax(56px, 1fr) minmax(52px, 84px) auto; }
.vl-zf.mit-wert:has(> .vl-spalte) { grid-template-columns: 190px minmax(40px, 1.2fr) minmax(0, 2fr) minmax(56px, 1fr) minmax(52px, 84px) auto; }
.vl-zf-wert { font-size: .74rem; font-style: italic; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: 0 2px; }
.vl-zf-wert.leer { opacity: .35; }
.vl-mwerte { gap: 4px; }
.vl-raster { grid-template-columns: minmax(360px, 1fr) var(--vl-z, 600px); }
.vl-zf .vl-umw-knopf { gap: 2px; }
.vl-zf > .vl-zf-name:not(.vl-spalte):not(.vl-dbspalte) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* gleiche Zeilenhöhe wie die Feldliste links (23 px): kein Flex-Abstand zwischen den Zeilen, Felder 20 px */
.vl-zielspalte > .vl-zf + .vl-zf { margin-top: -4px; }
.vl-zf { min-height: 22px; padding: 0; }
.vl-zf .vl-ablage, .vl-zf .vl-fest, .vl-zf-name.vl-spalte input, .vl-zf-name.vl-spalte .aw input { height: 20px; min-height: 20px; }
.vl-zf .vl-ablage .vl-chip { line-height: 16px; }
.vl-zf .vl-umw-knopf { line-height: 18px; }
.vl-zf-name.vl-spalte .aw-feld { height: 20px; }
.vl-zf-name.vl-spalte .aw-pfeil { height: 18px; }

/* ab 3.99.77: DMS – Hinweis „N neue Dokumente seit der Suche – einbeziehen“ */
.dms-neu-seit { background: #fff7e6; border-color: #f0b44c; color: #8a5300; }
.dms-neu-seit .mud-icon-root { font-size: 1rem; }

/* ab 3.99.77: neue Umwandlungen – Zeitverschiebung kompakt in einer Zeile, breitere Auswahl */
.vl-umw-zeile.vl-umw-delta label { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.vl-umw-zeile.vl-umw-delta input.vl-umw-zahl { flex: 0 0 44px; width: 44px; }
.vl-umw-zeile .vl-umw-sonst { width: 170px; }
.vl-umw-zeile > label.klein { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap; }

/* ab 3.99.78: Wert passt nicht in ein Magento-Textfeld */
.vl-zf-zulang { flex: 0 0 auto; margin-right: 3px; font-size: .68rem; font-weight: 600; color: #b45309; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 3px; padding: 0 4px; line-height: 16px; cursor: help; }

/* ab 3.99.78: Trefferzahl „x von y“ im DMS-Suchfeld */
.dms-suche .dms-suche-treffer { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: .72rem; color: #5d6b7a; background: #eef2f7; border-radius: 10px; padding: 1px 8px; pointer-events: auto; white-space: nowrap; }
.dms-suche:has(.dms-suche-treffer) input { padding-right: 150px; }

/* ab 3.99.78 (Rene 01.11.2026): Abschnitt „Datei“ im DMS – einklappbar, Angaben klein und linksbündig */
.dms-abschnitt-kurz { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #6b7785; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dms-datei-info { font-size: .66rem; line-height: 1.3; text-align: left; align-items: flex-start; gap: 1px; }
.dms-datei-info > div { text-align: left; }
.dms-datei-info .dms-revision { font-size: .66rem; align-items: flex-start; margin-top: 1px; }
.dms-datei-info .dms-revision .mud-icon-root { font-size: .85rem; flex: 0 0 auto; margin-top: 1px; }
.dms-datei-info .dms-ablage-grund { margin-top: 1px; }
.dms-datei-info .dms-ablage-grund .mud-icon-root { font-size: .8rem; }
.pdf-dialog-zoom { font-size: .78rem; min-width: 44px; text-align: center; color: #46566b; }
.dok-l-abschnitt.dok-l-klapp { cursor: pointer; display: flex; align-items: center; gap: 2px; user-select: none; } /* ab 3.99.78: Verlauf in Briefe einklappbar */

/* ab 3.99.79 (Rene 01.11.2026 10:35): drehendes Symbol im Suchfeld des DMS, solange gesucht bzw. gezählt wird.
   Eingeblendet erst nach 150 ms, damit schnelle Suchen nicht flackern; die bisherige Zahl bleibt grau stehen. */
.dms-suche .dms-suche-treffer { display: inline-flex; align-items: center; gap: 5px; }
.dms-suche .dms-suche-treffer.laeuft .dms-suche-zahl { opacity: .45; }
.dms-suche .dms-suche-treffer.nur-sucht { color: var(--mud-palette-primary, #0f766e); opacity: 0; animation: dms-such-ein 0s linear .15s forwards; }
.dms-such-dreh { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; border: 2px solid rgba(15, 118, 110, .22); border-top-color: var(--mud-palette-primary, #0f766e);
  opacity: 0; animation: dms-such-dreh .75s linear infinite, dms-such-ein 0s linear .15s forwards; box-sizing: border-box; }
@keyframes dms-such-dreh { to { transform: rotate(360deg); } }
@keyframes dms-such-ein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dms-such-dreh { animation: dms-such-ein 0s linear .15s forwards; border-style: dotted; } }

/* ab 3.99.79 (Rene 01.11.2026 10:45): Office – Farbkasten für Schrift- und Markierungsfarbe (Standardfarben, zuletzt verwendet, Favoriten) */
.dok-farbwahl { display: inline-flex; }
.dok-farb-knopf { display: inline-flex; align-items: stretch; border-radius: 4px; }
.dok-farb-knopf:hover { box-shadow: inset 0 0 0 1px #c9d4e2; }
.dok-farb-knopf > button.dok-farb-anwenden { min-width: 24px !important; padding: 0 3px !important; }
.dok-farb-knopf > button.dok-farb-pfeil { min-width: 12px !important; width: 12px !important; padding: 0 !important; font-size: .6rem; color: #5d6b7a; }
.dok-farb-a { font-weight: 600; border-bottom: 3px solid; line-height: 1.05; padding: 0 2px; }
.dok-farb-ab { font-weight: 600; padding: 0 3px; border-radius: 2px; border: 1px solid rgba(0,0,0,.12); }
.dok-menue-liste.dok-farb-liste { width: 236px; min-width: 236px; padding: 6px 8px 8px; max-height: none; }
.dok-farb-liste button.dok-farb-auto { display: flex !important; justify-content: flex-start !important; align-items: center; gap: 8px; width: 100%; height: 24px !important; padding: 2px 4px !important; font-size: .78rem; border-radius: 4px; }
.dok-farb-liste button.dok-farb-auto:hover, .dok-farb-eigene:hover { background: #eef4fb; }
.dok-farb-titel { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; font-weight: 600; color: #5d6b7a; margin: 7px 0 3px; border-bottom: 1px solid #e3e9f1; padding-bottom: 2px; }
.dok-farb-raster { display: grid; grid-template-columns: repeat(10, 18px); gap: 3px; min-height: 18px; }
.dok-farb-liste .dok-farb-feld, .dok-farb-liste button.dok-farb-feld { display: inline-block !important; width: 18px !important; height: 18px !important; min-width: 0 !important; padding: 0 !important; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; cursor: pointer; position: relative; box-sizing: border-box; }
.dok-farb-liste button.dok-farb-feld:hover { outline: 2px solid #f0a020; outline-offset: 1px; z-index: 1; }
.dok-farb-liste .dok-farb-feld.hell { border-color: #c9d4e2; }
.dok-farb-liste .dok-farb-feld.leer { background: linear-gradient(to top right, #fff calc(50% - 1px), #c62828 50%, #fff calc(50% + 1px)); border-color: #b7c3d3; }
.dok-farb-liste .dok-farb-feld.fav::after { content: "★"; position: absolute; right: -1px; top: -5px; font-size: 8px; color: #f0a020; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.dok-farb-hinweis { grid-column: 1 / -1; font-size: .66rem; color: #8a96a3; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dok-farb-liste button.dok-farb-plus { display: inline-flex !important; align-items: center; gap: 3px; width: auto !important; height: 18px !important; padding: 0 4px !important; font-size: .7rem; font-weight: 600; color: #0f766e; border-radius: 3px; }
.dok-farb-liste button.dok-farb-plus:hover { background: #eef4fb; }
.dok-farb-liste button.dok-farb-plus .dok-farb-feld { width: 12px !important; height: 12px !important; }
.dok-farb-eigene { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 4px; border-top: 1px solid #e3e9f1; font-size: .76rem; cursor: pointer; border-radius: 4px; position: relative; }
.dok-farb-eigene input[type=color] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; }

/* ab 3.99.79 (Rene 01.11.2026 10:48): Fußzeile fest am Ende jedes Blatts (nicht am Ende des Textes) – Abstand vom Blattrand einstellbar (--fa) */
.dok-seite .dok-fuss { bottom: auto; top: calc(var(--fs, 0) * (var(--blatt, 297mm) + 9mm) + var(--blatt, 297mm) - var(--fa, 8mm)); transform: translateY(-100%); }
.dok-seite .dok-fuss.folge { display: none; }

/* ab 3.99.80 (Rene 01.11.2026 10:57 Probe Titelarchiv/Adressverwaltung, 12:05 „perfekt – gilt für das ganze Programm, alle Tabs“):
   senkrechter Abstand zwischen den Feldzeilen überall 6 px (vorher 2 px) – auch Felder außerhalb des Rasters, Unterlisten und unter Rahmenüberschriften. */
:root { --feld-zeilenabstand: 6px; }
.formular-raster { row-gap: calc(var(--feld-zeilenabstand) * var(--s)) !important; }
fieldset.rahmen > .feld + .feld, fieldset.rahmen > .formular-raster + .feld, fieldset.rahmen > .feld + .formular-raster,
fieldset.rahmen > .formular-raster + .formular-raster { margin-top: calc(var(--feld-zeilenabstand) * var(--s)); }
fieldset.rahmen > legend { margin-bottom: calc(3px * var(--s)); }
.unterzeile-raster:not(.kopf) { margin-bottom: calc(var(--feld-zeilenabstand) * var(--s)) !important; }
/* ab 3.99.84 (Rene 01.11.2026 16:55 „Feldabstand perfekt – bitte übertragen“): auch die Masken mit eigenem Feldraster
   (Inventar/Verleih, Einstellungen, Shop-Textfelder, Shop-Einstellungen, Sendungen …) – Handy-Ansichten (.kompakt/.gross/.invm) bleiben */
.inv-felder:not(:is(.kompakt, .gross, .invm) *), .sh-tf-felder, .sh-einst .inv-felder, .sm-felder { row-gap: calc(var(--feld-zeilenabstand) * var(--s, 1)) !important; }

/* ab 3.99.79 (Rene 01.11.2026 11:03 „Developer-Sachen orange – bei allen“): auch Spaltenköpfe und Filterzeilen von Developer-Spalten */
th.dev-nur { background-color: var(--dev-orange-hell) !important; color: var(--dev-orange-text) !important; box-shadow: inset 0 2px 0 var(--dev-orange); }
td.dev-nur button.korr-loeschen { background: transparent !important; border-color: transparent !important; color: #b91c1c !important; }
/* ab 3.99.79 (Rene 01.11.2026 11:05): stornierte Briefe grau (nur noch unter „Storniert“ sichtbar) */
tr.korr-storniert:not(.aktiv) > td { color: #94a3b8 !important; }
tr.korr-storniert:not(.aktiv) > td .dok-pille, tr.korr-storniert:not(.aktiv) > td .korr-art { opacity: .7; }

/* ab 3.99.79 (Rene 01.11.2026 11:07): DMS – Suchhilfe mit Beispielen am Suchfeld */
.dms-such-hilfe-anker { position: relative; display: inline-flex; align-items: center; }
.dms-such-hilfe-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--th-akzent, #0f766e); }
.dms-such-hilfe-knopf:hover, .dms-such-hilfe-knopf.an { background: rgba(15, 118, 110, .12); }
.dms-such-hilfe { position: absolute; top: calc(100% + 6px); left: -340px; z-index: 60; width: 560px; max-width: 92vw; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 8px; box-shadow: 0 10px 28px rgba(20,35,60,.18); padding: 8px 12px 10px; font-size: .78rem; }
.dms-such-hilfe-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dms-such-hilfe table { border-collapse: collapse; width: 100%; }
.dms-such-hilfe td { padding: 3px 6px 3px 0; vertical-align: top; border-bottom: 1px solid #eef2f6; }
.dms-such-hilfe td:first-child { white-space: nowrap; width: 1%; }
.dms-such-beispiel { all: unset; cursor: pointer; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; background: #eef6f5; color: #0f5f58; border: 1px solid #c7e3df; border-radius: 4px; padding: 1px 6px; }
.dms-such-beispiel:hover { background: #d8efec; }
.dms-such-hilfe-fuss { margin-top: 6px; color: #5d6b7a; font-size: .72rem; }

/* ab 3.99.79 (Rene 01.11.2026 11:11): Prüfsumme oben im DMS-Kopf – grün, rot bei Fehler */
.dms-pruefsumme { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-size: .68rem; color: #15803d; border-radius: 4px; padding: 0 3px; white-space: nowrap; flex: none; }
.dms-pruefsumme .mud-icon-root { font-size: 15px; }
.dms-pruefsumme:hover { background: rgba(21, 128, 61, .1); }
.dms-pruefsumme.fehler { color: #c62828; font-weight: 600; }
.dms-pruefsumme.fehler:hover { background: rgba(198, 40, 40, .1); }

/* ab 3.99.79 (Rene 01.11.2026 11:08): Ordner filtern im Kopf des Ordnerbaums */
.dms-baum-filter { position: relative; flex: 1 1 auto; min-width: 60px; max-width: 220px; display: inline-flex; align-items: center; margin: 0 6px; }
.dms-baum-filter input { width: 100%; height: 22px; box-sizing: border-box; font: inherit; font-size: .74rem; padding: 0 20px 0 7px; border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 11px; background: var(--th-feld, #fff); color: inherit; }
.dms-baum-filter .filter-leeren { position: absolute; right: 4px; }
.dms-baum-name.treffer { background: #fff3a3; border-radius: 2px; padding: 0 2px; color: #222; }
.dms-baum-nichts { padding: 6px 10px; font-size: .74rem; color: #8a96a3; }
.dms-such-hilfe-kopf .dms-link-text { margin-left: auto; }

/* ab 3.99.79 (Rene 01.11.2026 11:35): Hinweis „gehört zu einem anderen Mandanten“ (Handy) */
.mandant-falsch { margin: 14px; padding: 14px 16px; border: 1px solid #f59e0b; background: #fffbeb; border-radius: 10px; color: #78350f; display: flex; flex-direction: column; gap: 12px; }
.mandant-falsch-text { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.mandant-falsch-text .mud-icon-root { color: #d97706; flex: none; margin-top: 2px; }
.mandant-falsch-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.mandant-falsch-knoepfe .mf-knopf { min-height: 40px; }

/* ab 3.99.79 (Rene 01.11.2026 11:43): Vorschau rechts in Briefe – Strg + Mausrad zoomt nur die Seiten (--bz aus mrr.bildZoom) */
.office-vorschau-seiten { align-items: safe center; }
.office-vorschau-seiten img { width: calc(100% * var(--bz, 1)); max-width: calc(900px * var(--bz, 1)); flex: 0 0 auto; }

/* ab 3.99.79 (Rene 01.11.2026 11:47): DMS-Kopf zweizeilig – Nummer + Prüfsumme, darunter Stand + Dateiname */
.dms-detail-kopf.zweizeilig { flex-direction: column; align-items: stretch; gap: 3px; }
.dms-detail-kopf-zeile { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dms-detail-kopf-zeile .dms-detail-datei { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ab 3.99.80 (Rene 01.11.2026 12:01): deaktivierte Benutzer – ganze Zeile hellgrau, keine Farben */
tr.benutzer-aus > td { background: #eceff3 !important; color: #8a94a0 !important; }
tr.benutzer-aus .gr-chip, tr.benutzer-aus .mud-chip, tr.benutzer-aus a { filter: grayscale(1); opacity: .7; }
.cb-ziel small { word-break: break-all; }

/* ab 3.99.80 (Rene 01.11.2026 12:15): Cloud Backup – ruhiger Überblick (Ampel, Speicherort, letzte Sicherungen), Rest unter „Einzelheiten“ */
.cb-ueberblick { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.cb-ueberblick > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #dbe5f0; }
.cb-ueberblick > div small { display: block; font-size: .72rem; color: #64748b; }
.cb-ueberblick > div b { font-size: .95rem; }
.cb-ueberblick .cb-ampel { flex: 1 1 320px; }
.cb-ueberblick .cb-ampel .mud-icon-root { font-size: 32px; }
.cb-ueberblick.gruen .cb-ampel { border-color: #86d6a8; background: #f0fbf4; } .cb-ueberblick.gruen .cb-ampel .mud-icon-root { color: #15803d; }
.cb-ueberblick.gelb .cb-ampel { border-color: #f5c46b; background: #fffaf0; } .cb-ueberblick.gelb .cb-ampel .mud-icon-root { color: #d97706; }
.cb-ueberblick.rot .cb-ampel { border-color: #f1a1a1; background: #fef3f2; } .cb-ueberblick.rot .cb-ampel .mud-icon-root { color: #c62828; }
.cb-ueberblick .cb-ort .mud-icon-root { font-size: 26px; color: #0f766e; }
.cb-letzte { background: #fff; border: 1px solid #dbe5f0; border-radius: 10px; padding: 8px 14px; }
.cb-letzte-kopf { font-size: .72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.cb-letzte-zeile { display: grid; grid-template-columns: 22px 90px 190px 90px auto; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid #eef2f6; font-size: .84rem; }
.cb-letzte-zeile:first-of-type { border-top: 0; }
.cb-letzte-zeile .cb-ok { color: #15803d; font-size: 18px; }
.cb-letzte-zeile .cb-groesse { text-align: right; color: #334155; }
.cb-umfang { justify-self: start; font-size: .72rem; padding: 1px 8px; border-radius: 10px; background: #eef2f7; color: #475569; }
.cb-umfang.voll { background: #e3f4ee; color: #0f766e; }
.cb-einzelheiten-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #0f766e; padding: 2px 4px; border-radius: 4px; justify-self: start; }
.cb-einzelheiten-knopf small { color: #64748b; }
.cb-einzelheiten-knopf:hover { background: rgba(15, 118, 110, .08); }
@media (max-width: 700px) { .cb-letzte-zeile { grid-template-columns: 22px 1fr auto; } .cb-letzte-zeile .cb-zeit, .cb-letzte-zeile .cb-umfang { grid-column: 2 / -1; } }
.cb-plaketten { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-ok-plakette { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #86efac; background: #f0fdf4; color: #166534; border-radius: 16px; padding: 3px 10px 3px 4px; font-size: .8rem; }
.cb-ok-plakette > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #16a34a; color: #fff; font-weight: 700; font-size: .7rem; }

/* ab 3.99.81 (Rene 01.11.2026 12:51): Inntec Cloud Backup hebt sich ab – etwas dunklere Fläche, Kästen darin bleiben hell */
.cb-bereich { background: var(--th-cloudbackup, #dde8e6); border-color: var(--th-cloudbackup-rand, #9fbab4); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
/* ab 3.99.81 (Rene 12:52): Spalte Mandant in „Letzte Sicherungen in der Cloud“ */
.cb-letzte-zeile { grid-template-columns: 22px 90px minmax(160px, 260px) 190px 90px auto; }
.cb-letzte-zeile .cb-mandant { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; }
.cb-letzte-zeile .cb-mandant b { font-weight: 600; margin-right: 4px; }
.cb-letzte-zeile .cb-mandant.aktuell b { color: var(--th-akzent, #0f766e); }
@media (max-width: 700px) { .cb-letzte-zeile { grid-template-columns: 22px 1fr auto; } .cb-letzte-zeile .cb-mandant { grid-column: 2 / -1; } }
/* ab 3.99.81 (Rene 12:55/12:56): Datensicherung – Hinweis „nur Datenbank, keine DMS-Dateien“ oben */
.sich-hinweis { display: grid; gap: 6px; margin-bottom: 12px; }
.sich-hinweis .einst-hinweis { margin-top: 0; }
.sich-nur-db-warnung { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border: 1px solid #fcd34d; border-radius: 8px; background: #fffbeb; font-size: .8rem; color: #1f2937; }
.sich-nur-db-warnung > .mud-icon-root { color: #b45309; font-size: 22px; flex: 0 0 auto; }
.sich-nur-db-warnung b { display: block; color: #92400e; font-size: .85rem; margin-bottom: 2px; }
.sich-nur-db-warnung code { font-size: .76rem; }
.sich-dms-cloud { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #15803d; font-weight: 600; }
.sich-dms-cloud .mud-icon-root { color: #15803d; }
.sich-start { font-size: .85rem; }
.sich-kenntnis { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 8px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 8px; cursor: pointer; font-weight: 600; }
.sich-kenntnis input { margin-top: 2px; }
/* ab 3.99.82 (Rene 01.11.2026 13:47): bei einer Suche zeigt der Ordnerbaum nur Ordner mit Treffern – Zahl = Treffer (gelb wie die Trefferanzeige) */
.dms-baum-zahl.treffer { background: #fde68a; color: #78350f; }
.dms-baum-zeile.aktiv .dms-baum-zahl.treffer { background: #fde68a; color: #78350f; }
/* ab 3.99.82 (Rene 01.11.2026 14:39 „B ist gut“): letzte Cloud-Sicherungen je Tag – Mandanten als Zeilen, Datenbank und DMS nebeneinander */
.cb-tage { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cb-tage th { text-align: left; font-size: .7rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-bottom: 1px solid #dbe5f0; }
.cb-tage td { padding: 3px 8px; border-bottom: 1px solid #eef2f6; }
.cb-tage tr.cb-tag-beginn td { border-top: 1px solid #c9d8d5; }
.cb-tage tbody tr:hover td:not(.cb-tag) { background: #f3f8f7; }
.cb-tage td.cb-tag { width: 130px; font-weight: 700; color: #134e4a; background: #f3f8f7; border-right: 1px solid #dbe5f0; vertical-align: top; white-space: nowrap; }
.cb-tage th.cb-tag-sp { width: 130px; }
.cb-tage td.cb-mandant { white-space: nowrap; color: #334155; width: 280px; }
.cb-tage td.cb-mandant b { font-weight: 600; margin-right: 4px; }
.cb-tage td.cb-mandant.aktuell b { color: var(--th-akzent, #0f766e); }
.cb-tage .cb-zelle { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cb-tage .cb-ok { color: #15803d; font-size: 17px; }
.cb-tage .cb-groesse { color: #64748b; font-size: .78rem; min-width: 64px; }
.cb-tage .cb-fehlt { color: #b91c1c; font-weight: 700; }
/* ab 3.99.82 (Rene 01.11.2026 14:48 „alle Spalten immer untereinander“): feste Spalten in den Zellen der letzten Cloud-Sicherungen */
.cb-tage .cb-zelle { display: grid; grid-template-columns: 18px 40px 72px auto; gap: 8px; align-items: center; justify-content: start; }
.cb-tage .cb-zelle .cb-umfang { justify-self: start; }
.cb-tage .cb-groesse { text-align: right; }

/* ab 3.99.83 (Rene 01.11.2026 16:05): DMS-Betrachter – Grund, warum keine Vorschau da ist (Stand „Fehler“) */
.dms-hinweis.fehler { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 560px; border-left: 4px solid #c62828; }
.dms-hinweis.fehler .dms-hinweis-grund { font-family: var(--mf-mono, monospace); font-size: .78rem; color: #8e1b1b; white-space: pre-wrap; word-break: break-word; }

/* ab 3.99.85 (Rene 01.11.2026 17:25): eigene Zeile „Zu prüfen“ unter dem Ordnerbaum (orange Zahl = aus allen Ordnern) */
.dms-baum-pruefen { margin-top: 4px; border-top: 1px dashed rgba(0,0,0,.12); padding-top: 3px; }
.dms-baum-pruefen .dms-baum-icon.pruefen { color: #e8590c; }
.dms-baum-pruefen .dms-baum-offen { margin-left: auto; }
/* ab 3.99.87: „Jetzt in die Cloud sichern“ – Auswahl der Mandanten (und Datenbank/DMS) */
.cbw-dialog { font-size: .85rem; }
.cbw-text { margin: 0 0 10px; }
.cbw-kopf { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.cbw-kopf:first-of-type { margin-top: 0; }
.cbw-schalter { display: flex; gap: 6px; }
.cbw-liste, .cbw-arten { display: flex; flex-direction: column; row-gap: var(--feld-zeilenabstand, 6px); padding: 8px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 8px; }
.cbw-liste { max-height: 320px; overflow-y: auto; }
.cbw-zeile { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cbw-zeile.aus { cursor: default; opacity: .6; }

/* ---------- ab 3.99.90: Urheber-Porträt (Reiter „Porträt“ zweispaltig, Rahmen Foto/Kontakt/Freigabe/Inntec Forms, Haken-Zuordnungen) ---------- */
.uf-foto { display: flex; gap: calc(10px * var(--s)); align-items: flex-start; margin-bottom: calc(var(--feld-zeilenabstand) * var(--s)); }
.uf-bild { flex: none; width: calc(96px * var(--s)); height: calc(96px * var(--s)); border: 1px solid var(--th-feldrand, #cfd8e3); border-radius: 6px; overflow: hidden; background: var(--th-feld, #fff); display: flex; align-items: center; justify-content: center; }
.uf-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uf-bild a { display: block; width: 100%; height: 100%; }
.uf-leer { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mf-text-2, #6b7a8c); font-size: .7rem; }
.uf-leer .mud-icon-root { font-size: 34px; opacity: .5; }
.uf-rechts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.uf-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uf-zeile .mf-knopf.klein .reiter-zahl { margin-left: 4px; }
.mf-knopf.gesperrt { opacity: .5; pointer-events: none; }
.ufr-liste { display: flex; flex-direction: column; row-gap: calc(var(--feld-zeilenabstand) * var(--s)); }
.ufr-zeile { display: grid; grid-template-columns: auto minmax(120px, 190px) 1fr; align-items: center; gap: 6px 8px; font-size: .8rem; cursor: pointer; min-height: calc(24px * var(--s)); }
.ufr-zeile input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.ufr-titel { font-weight: 600; }
.ufr-info { font-size: .72rem; line-height: 1.2; }
.ufr-quelle { font-size: .72rem; }
.zh-block { display: flex; gap: 6px; align-items: flex-start; }
.zh-haken { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--feld-zeilenabstand) * var(--s)) 10px; font-size: .8rem; }
.zh-eintrag { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-width: 0; min-height: calc(20px * var(--s)); }
.zh-eintrag input[type=checkbox] { width: 16px; height: 16px; margin: 0; flex: none; }
.zh-eintrag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zh-knoepfe { flex: none; display: flex; flex-direction: column; gap: 4px; }
.us-felder { grid-template-columns: 110px 1fr; }
.us-felder input.einfach, .us-felder textarea.einfach { width: 100%; box-sizing: border-box; }
.us-text { height: auto; min-height: 160px; resize: vertical; font-family: inherit; }
.us-tage { display: flex; align-items: center; gap: 8px; }
.us-tage input { width: 70px; }
.us-haken { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; margin-left: 10px; cursor: pointer; }
.uv-kopf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .8rem; }
.uv-tabelle { width: 100%; border-collapse: collapse; font-size: .8rem; }
.uv-tabelle th, .uv-tabelle td { text-align: left; vertical-align: top; padding: 4px 6px; border-bottom: 1px solid var(--th-rahmen, #dde4ee); }
.uv-tabelle th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mf-text-2, #6b7a8c); }
.uv-tabelle tr.uv-gleich td { color: var(--mf-text-2, #6b7a8c); }
.uv-tabelle tr.uv-anders td.uv-wert:last-child { font-weight: 600; }
.uv-wert { white-space: pre-wrap; word-break: break-word; max-width: 40ch; }
.uv-bild { max-width: 120px; max-height: 120px; border-radius: 6px; margin-top: 4px; display: block; }
/* ab 3.99.93: Urheber – Link-Status (gesendet → geöffnet → eingesendet) und Feldzuordnung Formular → Urheber */
.uf-status { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: calc(24px * var(--s)); }
.uf-status .mf-marke { margin-left: 0; white-space: nowrap; }
.mf-marke.aus { border-color: var(--th-feldrand, #cfd8e3); color: var(--mf-text-2, #6b7a8c); }
.uz-tabelle td.uz-ziel { min-width: 260px; }
.uz-warnung { display: block; color: #b45309; font-size: .72rem; margin-top: 2px; }
@media (max-width: 900px) { .zh-haken { grid-template-columns: 1fr; } .ufr-zeile { grid-template-columns: auto 1fr; } .ufr-info { grid-column: 2; } }

/* ab 3.99.89 (Rene 01.11.2026 „Ziel wählen“ klappt nur ca. 1 mm auf): .dbr-kopf schneidet mit overflow:hidden ab –
   steht ein Auswahlfeld im Kopf (Ziel der Datenbrücke-Vorlage), muss dessen Liste über den Kopf hinausragen dürfen */
.dbr-kopf:has(.aw) { overflow: visible; }
.dbr-kopf:has(.aw) .aw-feld > .aw-liste { z-index: 60; }

/* ======================================================================================================
   Startseite „Webseiten-Look“ (Rene 01.11.2026, Variante D; ab 3.99.90 helle Bühne): Bühne wie auf der Webseite (Inntec-Symbol, Begrüßung, große
   Funktionssuche, Live-Zahlen als Glasflächen), darunter die Menübereiche als Modul-Karten in den Farben der Module.
   Farben: ThemaFarben „Startseite“ (--th-start-…, mit der Pipette änderbar) bzw. Farbschema (--th-…), Vorgaben als Ersatzwert.
   Bewegung nur beim ersten Aufbau (.start-anim) und nie bei prefers-reduced-motion.
   ====================================================================================================== */
@property --start-z { syntax: "<integer>"; inherits: false; initial-value: 0; }
.startseite.start-d {
    --sb: var(--th-start-buehne, var(--th-formular, #ffffff)); --sl: var(--th-start-licht, var(--th-akzent, #0f766e)); --sm: var(--th-start-leuchtschrift, var(--th-akzent, #0f766e));
    --sk-flaeche: var(--th-liste, #ffffff); --sk-rand: var(--th-rahmen, #dbe3ea); --sk-text: var(--th-beschriftung, #1f2d3d);
    --sk-leise: color-mix(in srgb, var(--sk-text), #ffffff 38%); --sk-akzent: var(--th-akzent, var(--mf-blau, #3a6cc2));
    position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; max-width: none; padding: 0 0 calc(32px * var(--s));
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--sk-text);
}
.start-d > :not(.start-buehne):not(.ein-rahmen) { margin-left: auto; margin-right: auto; max-width: calc(1560px * var(--s)); }
.start-d > .mf-hinweis, .start-d > .start-willkommen, .start-d > .start-lizenzwahl, .start-d > .start-news, .start-d > .start-fristen,
.start-d > .start-kopfzeile, .start-d > .start-anpassen-hinweis, .start-d > .start-module, .start-d > p { width: calc(100% - 2 * clamp(14px, 3vw, 44px) * var(--s)); }
.start-d > .mf-hinweis:first-of-type, .start-d > .start-willkommen, .start-d > .start-lizenzwahl { margin-top: calc(18px * var(--s)); }
.start-d > .start-news { margin-top: calc(18px * var(--s)); margin-bottom: calc(14px * var(--s)); }
.start-d > .start-buehne + .start-fristen { margin-top: calc(18px * var(--s)); }

/* ---- Bühne – ab 3.99.90 hell (Rene 01.11.2026: „der dunkelblaue Streifen oben soll nicht blau/dunkel sein“): Fläche aus dem Farbschema
   (Formularfläche), Texte in Schriftfarbe, Symbol/Linie/Zahlen in der Markenfarbe (Petrol), Live-Kacheln hell mit dezentem Rand und Schatten */
.start-buehne { position: relative; overflow: hidden; color: var(--sk-text); isolation: isolate; border-bottom: 1px solid var(--sk-rand);
    background: radial-gradient(900px 420px at 80% 30%, color-mix(in srgb, var(--sl), transparent 93%), transparent 70%), var(--sb); }
.start-berge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: -1; pointer-events: none; }
.start-berge .b1 { fill: color-mix(in srgb, var(--sb), var(--sl) 4%); }
.start-berge .b2 { fill: color-mix(in srgb, var(--sb), var(--sl) 7%); opacity: .9; }
.start-berge .b3 { fill: color-mix(in srgb, var(--sb), var(--sl) 10%); opacity: .85; }
.start-buehne::after { content: none; }
.start-buehne-innen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: calc(28px * var(--s)) clamp(20px, 3vw, 48px);
    align-items: center; max-width: calc(1560px * var(--s)); margin: 0 auto; padding: calc(34px * var(--s)) clamp(16px, 3vw, 44px) calc(40px * var(--s)); }
.start-buehne-innen.ohne-kacheln { grid-template-columns: minmax(0, 1fr); }
.start-gruss { min-width: 0; }
.start-zeichen { display: block; width: calc(64px * var(--s)); height: calc(64px * var(--s)); overflow: visible; margin-bottom: calc(14px * var(--s)); }
.start-zeichen .v1 { stop-color: color-mix(in srgb, var(--sm), #ffffff 35%); } .start-zeichen .v2 { stop-color: var(--sl); }
.start-zeichen .e1 path { fill: color-mix(in srgb, var(--sm), #ffffff 35%); } .start-zeichen .e2 path { fill: url(#start-zeichen-verlauf); } .start-zeichen .e3 path { fill: var(--sl); }
.start-d .start-buehne h1 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; color: var(--sk-text); }
.start-buehne h1 .z { display: block; overflow-wrap: anywhere; }
.start-buehne h1 .z2 { color: var(--sm); }
.start-strich { height: 3px; width: min(100%, calc(460px * var(--s))); margin: calc(16px * var(--s)) 0 calc(12px * var(--s)); border-radius: 2px;
    background: linear-gradient(90deg, var(--sm), color-mix(in srgb, var(--sm), transparent 80%)); }
.start-buehne .unterzeile { margin: 0 0 calc(16px * var(--s)); font-size: calc(15px * var(--s)); color: var(--sk-leise); }
.startseite.start-d .start-suche { display: flex; align-items: center; gap: 10px; width: min(100%, calc(560px * var(--s))); padding: calc(11px * var(--s)) calc(14px * var(--s));
    border-radius: 12px; background: var(--th-feld, #ffffff); border: 1px solid var(--th-feldrand, #cbd5e1); color: var(--sk-leise); box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition: background .2s, border-color .2s, box-shadow .2s; }
.startseite.start-d .start-suche:focus-within { border-color: var(--sm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm), transparent 82%); }
.startseite.start-d .start-suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--sk-text); font: inherit; font-size: calc(15px * var(--s)); }
.startseite.start-d .start-suche input::placeholder { color: var(--sk-leise); }
.startseite.start-d .start-suche kbd { font: 600 11px/1 inherit; font-family: inherit; border: 1px solid var(--sk-rand); border-radius: 5px; padding: 3px 6px; color: var(--sk-leise); white-space: nowrap; }
.startseite.start-d .start-suche .filter-leeren { all: unset; cursor: pointer; padding: 0 4px; color: var(--sk-leise); }
.start-lizenz { margin: calc(12px * var(--s)) 0 0; font-size: calc(12px * var(--s)); color: var(--sk-leise); }
.start-lizenz b { color: var(--sk-text); font-weight: 600; }

/* ---- Live-Zahlen (hell, dezenter Rand und Schatten) */
.start-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(170px * var(--s)), 1fr)); gap: calc(12px * var(--s)); align-content: center; }
.start-kachel { position: relative; border-radius: 14px; overflow: hidden; color: var(--sk-text); background: var(--sk-flaeche);
    border: 1px solid var(--sk-rand); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .06);
    transition: transform .2s, border-color .2s, box-shadow .2s; }
.start-kachel:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sm), transparent 45%); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 12px 26px rgba(15, 23, 42, .10); }
.start-kachel-knopf { all: unset; box-sizing: border-box; display: block; width: 100%; padding: calc(13px * var(--s)) calc(15px * var(--s)) calc(12px * var(--s)); cursor: pointer; }
.start-kachel-knopf:focus-visible { outline: 2px solid var(--sm); outline-offset: -3px; border-radius: 14px; }
.start-kachel-knopf:disabled { cursor: default; }
.start-kachel .t { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: calc(13.5px * var(--s)); color: var(--sk-leise); }
.start-kachel .t .mud-icon-root { font-size: 1.05rem; color: var(--sm); }
.start-kachel .t i { font-style: normal; margin-left: auto; color: var(--sm); }
.start-kachel.achtung .t i { color: #d97706; }
.start-kachel .w { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; margin-top: calc(5px * var(--s)); font-size: calc(28px * var(--s)); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--sk-text); }
.start-kachel .w small { font-size: calc(12.5px * var(--s)); font-weight: 500; letter-spacing: 0; color: var(--sk-leise); }
.start-kachel.laedt .w { color: color-mix(in srgb, var(--sk-text), transparent 60%); }
.start-kachel.aus { opacity: .45; }
.start-stand { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: calc(11.5px * var(--s)); color: var(--sk-leise); }
.start-stand button { all: unset; cursor: pointer; display: inline-flex; padding: 3px; border-radius: 6px; color: var(--sk-leise); }
.start-stand button:hover { color: var(--sm); background: color-mix(in srgb, var(--sm), transparent 90%); }
.start-stand button:disabled { opacity: .4; cursor: default; }

/* ---- Kopfzeile über den Karten */
.start-kopfzeile { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: calc(22px * var(--s)); margin-bottom: calc(12px * var(--s)); }
.start-eyebrow { font-size: calc(11.5px * var(--s)); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sk-akzent); }
.start-kopfzeile h2 { margin: 3px 0 0; font-size: clamp(1.15rem, 1.8vw, 1.6rem); letter-spacing: -.02em; font-weight: 750; color: var(--sk-text); }
.start-werkzeuge { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.start-knopf { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: calc(13px * var(--s)); padding: calc(6px * var(--s)) calc(12px * var(--s));
    border-radius: 9px; border: 1px solid var(--sk-rand); background: var(--sk-flaeche); color: var(--sk-text); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.start-knopf:hover:not(:disabled) { border-color: var(--sk-akzent); color: var(--sk-akzent); }
.start-knopf:disabled { opacity: .5; cursor: default; }
.start-knopf.an { background: var(--sk-akzent); border-color: var(--sk-akzent); color: #fff; }
.start-knopf.an:hover { color: #fff; filter: brightness(1.08); }
.start-knopf.rund { padding: calc(6px * var(--s)); border-radius: 50%; }
.start-anpassen-hinweis { display: flex; align-items: center; gap: 6px; margin-top: -4px; margin-bottom: calc(12px * var(--s)); font-size: calc(12.5px * var(--s)); color: var(--sk-akzent); }

/* ---- Modul-Karten (wie die Module auf der Webseite) */
.start-module { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(270px * var(--s)), 1fr)); gap: calc(14px * var(--s)); align-items: stretch; }
.start-karte { position: relative; background: var(--sk-flaeche); border: 1px solid var(--sk-rand); border-left: 4px solid var(--f); border-radius: 10px;
    padding: calc(13px * var(--s)) calc(16px * var(--s)) calc(13px * var(--s)); transition: box-shadow .2s, transform .2s, opacity .2s; }
.start-karte:hover { box-shadow: 0 12px 28px rgba(31, 45, 61, .10); transform: translateY(-2px); }
.start-karte h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: calc(15px * var(--s)); font-weight: 700; color: var(--sk-text); min-height: 1.5em; }
.start-karte h3 .start-karte-symbol { color: var(--f); font-size: 1.15rem; flex: none; }
.start-karte-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-karte h3 .start-schloss { font-size: .95rem; color: var(--sk-leise); }
.start-live { all: unset; margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: calc(11.5px * var(--s)); font-weight: 600;
    color: var(--f); padding: 2px 8px; border-radius: 20px; background: color-mix(in srgb, var(--f), transparent 90%); white-space: nowrap; }
.start-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--f); }
.start-live.achtung::before { background: #f59e0b; box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b, transparent 70%); }
.start-live:hover { background: color-mix(in srgb, var(--f), transparent 80%); }
.start-live:focus-visible { outline: 2px solid var(--f); outline-offset: 1px; }
.start-fn { margin-top: calc(6px * var(--s)); color: var(--sk-leise); line-height: 1.62; font-size: calc(13.5px * var(--s)); }
.start-d .start-eintrag { all: unset; display: inline; cursor: pointer; border-radius: 4px; padding: 0 2px; margin: 0 -2px; color: inherit; }
.start-d .start-eintrag:not(:last-child)::after { content: ","; margin-right: .3em; color: var(--sk-leise); }
.start-d .start-eintrag:has(+ .start-mehr)::after, .start-d .start-eintrag:has(+ .start-unter)::after { content: ""; }
.start-d button.start-eintrag:hover:not(:disabled) { color: var(--f); background: color-mix(in srgb, var(--f), transparent 90%); }
.start-d button.start-eintrag:focus-visible { outline: 2px solid var(--f); outline-offset: 1px; }
.start-d button.start-eintrag:disabled { cursor: default; }
.start-d .start-eintrag.offen { opacity: .55; cursor: default; }
.start-d .start-eintrag.gesperrt { opacity: .6; }
.start-d .start-eintrag .start-schloss { font-size: .85em; vertical-align: -1px; margin-left: 2px; }
.start-d .start-eintrag mark { background: #fde68a; color: inherit; border-radius: 2px; padding: 0 1px; }
.start-unter { display: block; margin-top: calc(6px * var(--s)); font-size: calc(10.5px * var(--s)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--f); opacity: .85; }
.start-unter:first-child { margin-top: 0; }
.start-mehr { all: unset; cursor: pointer; margin-left: 6px; font-size: calc(11.5px * var(--s)); font-weight: 700; padding: 0 7px; border-radius: 20px; color: var(--f);
    background: color-mix(in srgb, var(--f), transparent 90%); white-space: nowrap; }
.start-mehr:hover { background: color-mix(in srgb, var(--f), transparent 80%); }
.start-mehr:focus-visible { outline: 2px solid var(--f); outline-offset: 1px; }
.start-karte.offen .start-mehr { display: inline-block; margin: calc(6px * var(--s)) 0 0; }
.start-karte.unfertig { opacity: .62; }
.start-karte.gesperrt { opacity: .62; background: color-mix(in srgb, var(--sk-flaeche), var(--sk-rand) 25%); }
.start-karte.gesperrt:hover { opacity: .85; }
.start-karte.aus { opacity: .38; }

/* ---- Anpassen */
.start-werkzeug { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.start-werkzeug button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 6px;
    font-weight: 700; border: 1px solid var(--sk-rand); background: var(--sk-flaeche); color: var(--sk-text); }
.start-werkzeug button:hover:not(:disabled) { border-color: var(--sk-akzent); color: var(--sk-akzent); }
.start-werkzeug button:disabled { opacity: .35; cursor: default; }
.start-werkzeug button:focus-visible { outline: 2px solid var(--sk-akzent); outline-offset: 1px; }
.start-kachel .start-werkzeug { top: 8px; bottom: auto; }
.start-kachel .start-werkzeug button { background: var(--sk-flaeche); border-color: var(--sk-rand); color: var(--sk-text); }
.start-anpassen .start-karte { outline: 2px dashed color-mix(in srgb, var(--sk-akzent), transparent 55%); outline-offset: 2px; padding-bottom: calc(40px * var(--s)); cursor: grab; }
.start-anpassen .start-karte:hover { transform: none; }
.start-anpassen .start-kachel { outline: 2px dashed color-mix(in srgb, var(--sm), transparent 45%); outline-offset: 2px; cursor: grab; }
.start-anpassen .start-kachel:hover { transform: none; }

/* ---- Themen: Petrol/Hell – Fläche unter der Bühne aus dem Farbschema */
html.thema-petrol .start-d .start-karte { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

/* ---- Bewegung nur beim ersten Aufbau */
.start-anim .start-zeichen .e { opacity: 0; transform: translateY(-9px); animation: start-ebene .7s cubic-bezier(.2, .9, .25, 1.15) forwards; }
.start-anim .start-zeichen .e1 { animation-delay: .5s; } .start-anim .start-zeichen .e2 { animation-delay: .3s; } .start-anim .start-zeichen .e3 { animation-delay: .1s; }
.start-anim .start-buehne h1 .z { opacity: 0; transform: translateY(14px); animation: start-rein .7s cubic-bezier(.2, .8, .2, 1) forwards .45s; }
.start-anim .start-buehne h1 .z2 { animation-delay: .6s; }
.start-anim .start-strich { animation: start-strich 1s ease both .8s; }
.start-anim .start-buehne .unterzeile, .start-anim .start-lizenz { opacity: 0; animation: start-rein .6s ease forwards 1s; }
.start-anim .start-suche { opacity: 0; animation: start-rein .6s ease forwards 1.1s; }
.start-anim .start-kachel { opacity: 0; animation: start-kachel .8s cubic-bezier(.2, .8, .2, 1) forwards, start-rand 1.8s ease-out forwards; animation-delay: calc(.7s + var(--i) * .12s), calc(.7s + var(--i) * .12s); }
.start-anim .start-kachel .zahl { counter-reset: start-z var(--start-z); animation: start-zaehlen 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--i) * .12s); }
.start-anim .start-kachel .zahl > span { display: none; }
.start-anim .start-kachel .zahl::after { content: counter(start-z); }
.start-anim .start-karte { opacity: 0; transform: translateY(10px); animation: start-rein .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.9s + var(--n) * 40ms); }
@keyframes start-ebene { to { opacity: 1; transform: none; } }
@keyframes start-rein { to { opacity: 1; transform: none; } }
@keyframes start-strich { from { width: 0; } }
@keyframes start-kachel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes start-rand { 0% { box-shadow: 0 0 0 0 transparent; } 35% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sm), transparent 55%), 0 8px 22px rgba(15, 23, 42, .10); } }
@keyframes start-zaehlen { from { --start-z: 0; } }
@media (prefers-reduced-motion: reduce) {
    .start-d *, .start-d *::before, .start-d *::after { animation: none !important; transition: none !important; }
    .start-d .start-zeichen .e, .start-d .start-buehne h1 .z, .start-d .start-kachel, .start-d .start-karte, .startseite.start-d .start-suche,
    .start-d .unterzeile, .start-d .start-lizenz { opacity: 1 !important; transform: none !important; }
    .start-d .start-kachel .zahl > span { display: inline !important; }
    .start-d .start-kachel .zahl::after { content: none !important; }
    .start-d .start-kachel:hover, .start-d .start-karte:hover { transform: none; }
}

/* ---- schmale Bildschirme / Handy */
@media (max-width: 1100px) {
    .start-buehne-innen { grid-template-columns: minmax(0, 1fr); }
    .start-kacheln { grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--s)), 1fr)); }
}
@media (max-width: 600px) {
    .start-buehne-innen { padding: calc(22px * var(--s)) 16px calc(26px * var(--s)); gap: calc(18px * var(--s)); }
    .start-zeichen { width: calc(48px * var(--s)); height: calc(48px * var(--s)); margin-bottom: 10px; }
    .startseite.start-d .start-suche kbd { display: none; }
    .start-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .start-kachel-knopf { padding: 11px 12px 10px; }
    .start-kachel .w { font-size: calc(23px * var(--s)); }
    .start-stand { justify-content: flex-start; }
    .start-d > .mf-hinweis, .start-d > .start-willkommen, .start-d > .start-lizenzwahl, .start-d > .start-news, .start-d > .start-fristen,
    .start-d > .start-kopfzeile, .start-d > .start-anpassen-hinweis, .start-d > .start-module, .start-d > p { width: calc(100% - 32px); }
    .start-module { grid-template-columns: minmax(0, 1fr); }
    .start-werkzeuge { margin-left: 0; }
}
/* ab 3.99.91 (Katalogprodukte mit Liste): Liste über den Teiler zugeklappt – „Datensatz x von y · Angelegt … geändert …“ wie ohne Liste ganz unten */
.ansicht.liste-zu > .ansicht-formular { display: flex; flex-direction: column; }
.ansicht.liste-zu > .ansicht-formular > .formular-inhalt { flex: 1 0 auto; display: flex; flex-direction: column; }
.ansicht.liste-zu > .ansicht-formular > .formular-inhalt > .formular-fuss { margin-top: auto; padding-top: calc(6px * var(--s)); }

/* ab 3.99.93 (Plan „Wiederherstellen“, Stufe 1): Knopf „Testmandant“ je Wiederherstellungspunkt, Testmandanten-Liste, Dialoge; Stufe 2 nur als Vorschau */
.cb-tage th.cb-wh-sp { width: 1%; white-space: nowrap; }
.cb-tage td.cb-wh-zelle { white-space: nowrap; }
.cb-tage td.cb-wh-zelle .mf-knopf { margin-right: 4px; vertical-align: middle; }
.cb-tage td.cb-wh-zelle .mf-knopf[disabled] { opacity: .45; }
.cb-tage .cb-wh-original { color: #b42318; }
.cb-wh-vorschau { border: 0; background: none; cursor: pointer; color: #64748b; font-size: .95rem; padding: 0 4px; }
.cb-wh-vorschau:hover { color: var(--th-akzent, #0f766e); }
.cb-testmandanten { display: grid; gap: 6px; }
.cb-testmandanten .cb-letzte-kopf { display: flex; align-items: center; gap: 6px; }
.cb-testmandanten tr.cb-wh-alt td { background: #fff8e1; }
.cb-testmandanten .cb-wh-knoepfe { white-space: nowrap; display: flex; gap: 4px; }
.cb-wh-tage { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.cbw-punkt { display: grid; gap: 4px; font-size: .84rem; padding: 6px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 8px; }
.cbw-punkt > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oe-dialog { font-size: .85rem; }
.oe-gesperrt { color: #7f1d1d; background: #fff1f2; border-color: #fecaca; }
.oe-verlust { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: #fff8e1; border: 1px solid #f1d58a; color: #6b4a00; }
.oe-verlust .mud-icon-root { color: #b45309; }
.oe-haken { display: flex; flex-direction: column; row-gap: var(--feld-zeilenabstand, 6px); }
.oe-haken label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.oe-haken input { margin-top: 3px; }
.oe-haftung { padding: 8px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 6px; font-size: .8rem; }
.oe-haftung > div { margin-top: 4px; white-space: pre-wrap; }
.oe-ablauf summary { cursor: pointer; font-weight: 600; }
.ta-text { font-family: var(--mf-mono, ui-monospace, monospace); font-size: .78rem; white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow: auto; padding: 8px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 6px; margin: 0; }
/* ab 3.99.93 (Rene 01.11.2026): Standardleiste – „Datensatz x/y“ (.leiste-status) und Stand-Angaben (.leiste-stand) in der Titelzeile des Fensters
   (mrr.js spiegelt sie nach .fenster-status), „Modus: …“ mit fester Breite in der 1. Zeile, nie umbrochen; zu schmal → zuerst entfallen die Texte
   der hellen Knöpfe (.knopf-halb), dann aller Knöpfe (.knopf-kurz, Tooltip bleibt), zuletzt steht der Modus fest rechts oben (.modus-oben).
   Fenster unter 520 px (Handy): Anzeige bleibt in der Leiste. */
.fenster-status { flex: none; display: inline-flex; align-items: center; gap: calc(10px * var(--s)); margin: 0 calc(10px * var(--s)) 0 8px; font-size: .74rem; font-weight: 500; white-space: nowrap; opacity: .92; max-width: 45%; overflow: hidden; }
.fenster-status:empty { display: none; }
.fenster-status > span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.fenster-status, .fenster-status * { color: inherit !important; }
.fenster-status .mud-icon-root, .fenster-status svg { font-size: 1em; width: 1em; height: 1em; }
.fenster-status .fs-stand { font-weight: 400; opacity: .85; }
.einzel-kopf .fenster-status { margin: 0 4px; font-size: .8rem; opacity: .8; }
.formular-leiste > :is(.leiste-status, .leiste-stand)[data-oben] { display: none; }
.formular-leiste:has(> .leiste-status[data-oben]) > .leiste-modus { margin-left: auto; }
.formular-leiste:has(> .leiste-modus) > .leiste-status { white-space: nowrap; }
.formular-leiste > .leiste-modus { flex: none; white-space: nowrap; min-width: 10.5em; box-sizing: border-box; text-align: center; }
.formular-leiste.modus-oben { position: relative; } /* Platz rechts für den Modus setzt mrr.js (padding-right) */
.formular-leiste.modus-oben > .leiste-modus { position: absolute; right: calc(8px * var(--s)); margin: 0; }
.formular-leiste.knopf-kurz .mf-knopf:has(svg), .formular-leiste.knopf-halb .mf-knopf.hell:has(svg) { font-size: 0; gap: 0; padding-left: calc(7px * var(--s)); padding-right: calc(7px * var(--s)); }
.formular-leiste.knopf-kurz .mf-knopf:has(svg) svg, .formular-leiste.knopf-halb .mf-knopf.hell:has(svg) svg { font-size: 1.15rem; width: 1.15rem; height: 1.15rem; margin: 0; }
/* ab 3.99.93: Benutzer zusammenführen (Benutzerverwaltung) */
.bz-text { margin-bottom: 10px; }
.bz-felder { max-width: 620px; margin-bottom: 6px; }
.bz-optionen { display: flex; flex-direction: column; margin: 4px 0 8px; }
.bz-summe { display: flex; gap: 6px; align-items: center; margin: 8px 0 4px; }
.bz-hinweis, .bz-fehler { margin: 2px 0; }
.bz-fehler { color: var(--mud-palette-error); }
.bz-tabelle { max-height: 46vh; overflow: auto; border-top: 1px solid var(--th-rahmen, #e2e8f0); }
.bz-tabelle table { width: 100%; font-size: .8rem; }
.bz-tabelle .rechts { text-align: right; }
.bz-tabelle tr.bz-gemeldet td { color: var(--mud-palette-text-secondary); font-style: italic; }
.benutzer-zf { font-size: .72rem; color: var(--mud-palette-text-secondary); }

/* ab 3.99.93: Warnung „automatisch abmelden“ – wie die Sperre vor einem Software-Update */
.auto-abmelden { position: fixed; inset: 0; z-index: 3100; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.auto-abmelden-karte { background: #fff; border-radius: 12px; padding: 20px 24px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; color: #14232b; }
.auto-abmelden-kopf { display: flex; align-items: center; gap: 10px; color: #b45309; }
.auto-abmelden-kopf h2 { margin: 0; font-size: 1.1rem; color: #14232b; }
.auto-abmelden p { margin: 0; color: #475569; line-height: 1.5; font-size: .9rem; font-variant-numeric: tabular-nums; }
.auto-abmelden-offen { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 12px; font-size: .85rem; color: #9a3412; }
.auto-abmelden-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }
.sicherheit-ansicht { max-width: 900px; }
.sicherheit-ansicht .inv-felder { grid-template-columns: 330px minmax(0, 1fr); max-width: 860px; }
.sicherheit-ansicht .inv-zeile input[type=number] { width: 90px; flex: none; }
.sicherheit-ansicht .sh-hinweis { font-size: .78rem; color: var(--mud-palette-text-secondary); margin: 4px 0 12px; line-height: 1.45; }
.sicherheit-ansicht .sh-schalter { font-size: .85rem; cursor: pointer; }
.sicherheit-ansicht .inv-felder > label, .sicherheit-ansicht .inv-zeile { font-size: .85rem; }
.sicherheit-ansicht .sh-schalter input[type=checkbox] { width: calc(14px * var(--s, 1)); height: calc(14px * var(--s, 1)); flex: none; padding: 0; margin: 2px 3px; }

/* ab 3.99.94: Schriftgröße im Editor (Rene 02.11.2026) */
.rt-groesse-symbol { font-weight: 600; letter-spacing: -1px; }
.rt-groesse-symbol small { font-size: .7em; }
.rt-groesse-wahl { position: absolute; top: 100%; left: 0; z-index: 31; display: flex; flex-direction: column; min-width: 130px; padding: 4px; background: var(--th-feld, #fff); border: 1px solid var(--th-feldrand, #c9d4e2); border-radius: 8px; box-shadow: 0 8px 22px rgba(15,23,42,.2); }
.rt-groesse-wahl button { all: unset; cursor: pointer; padding: 3px 8px; border-radius: 5px; white-space: nowrap; line-height: 1.3; }
.rt-groesse-wahl button:hover { background: #eef3fa; }
.rt-groesse-schritt { font-weight: 600; }
.rt-groesse-schritt sup { font-size: .65em; margin-left: 1px; }

/* ab 3.99.101 (Rene 02.11.2026): Inventar – Bereiche deutlicher unterscheidbar: Kennfarbe je Bereich (ThemaFarben „Inventar“) als Streifen links,
   Symbol und Titel in der Kennfarbe, Pfeil rechts, Kurzinfo im zugeklappten Kopf; Sprungleiste oben. Keine eigenen Flächen (Regel 20). */
.inv-gruppe { --inv-farbe: var(--th-akzent, #0f766e); border-left: 3px solid var(--inv-farbe) !important; }
.inv-gruppe.g-geraet, .inv-chip.g-geraet { --inv-farbe: var(--th-inv-geraet, #64748b); }
.inv-gruppe.g-standort, .inv-chip.g-standort { --inv-farbe: var(--th-inv-standort, #64748b); }
.inv-gruppe.g-kauf, .inv-chip.g-kauf { --inv-farbe: var(--th-inv-kauf, #64748b); }
.inv-gruppe.g-verleih, .inv-chip.g-verleih { --inv-farbe: var(--th-inv-verleih, #64748b); }
.inv-gruppe.g-wartung, .inv-chip.g-wartung { --inv-farbe: var(--th-inv-wartung, #64748b); }
.inv-gruppe.g-dokumente, .inv-chip.g-dokumente { --inv-farbe: var(--th-inv-dokumente, #64748b); }
.inv-gruppe.g-notiz, .inv-chip.g-notiz { --inv-farbe: var(--th-inv-notiz, #64748b); }
.inv-gruppe.g-historie, .inv-chip.g-historie { --inv-farbe: var(--th-inv-historie, #64748b); }
.inv-gruppe > legend.inv-klapp { display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; padding-right: 4px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--th-beschriftung, #1c2b31); }
.inv-gruppe > legend.inv-klapp:hover { color: var(--inv-farbe); }
.inv-gruppe .inv-symbol { display: inline-flex; color: var(--inv-farbe); }
.inv-gruppe .inv-symbol .mud-icon-root { font-size: 18px; width: 18px; height: 18px; }
.inv-gruppe .inv-titel { white-space: nowrap; }
.inv-gruppe .inv-kurz { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .78rem; color: #64748b; margin-left: 6px; }
.inv-gruppe .inv-pfeil { margin-left: auto; width: auto; font-size: 1rem; line-height: 1; color: var(--inv-farbe); padding: 0 2px; }
.inv-gruppe.zu { opacity: .92; }
.inv-gruppe.zu > legend.inv-klapp { margin-bottom: 0; }
.inv-sprung { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.inv-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--th-rahmen, #cfd8e3); border-left: 3px solid var(--inv-farbe);
    background: var(--th-feld, #fff); color: var(--th-beschriftung, #1c2b31); border-radius: 12px; padding: 1px 9px 1px 6px; font: inherit; font-size: .76rem; line-height: 20px; cursor: pointer; }
.inv-chip .mud-icon-root { font-size: 15px; width: 15px; height: 15px; color: var(--inv-farbe); }
.inv-chip:hover { border-color: var(--inv-farbe); color: var(--inv-farbe); }
.inv-chip.zu { opacity: .65; }
@keyframes inv-blink { 0% { box-shadow: 0 0 0 3px var(--inv-farbe); } 100% { box-shadow: 0 0 0 0 transparent; } }
.inv-gruppe.inv-blink { animation: inv-blink 1.2s ease-out; }

/* ab 3.99.102 (Rene 02.11.2026, Masken-Variante B „ruhig“): kleines graues Symbol vor jedem Reiter (Stammdaten/ReiterSymbole.cs),
   im aktiven Reiter in der Akzentfarbe. Zugeklappte Reiter (Adressverwaltung …) sehen aus wie normale Reiter – nur ohne geöffneten Reiter. */
.reiter-kopf { display: inline-flex; align-items: center; }
.reiter-kopf .reiter-sym.mud-icon-root, .klapp-knopf .reiter-sym.mud-icon-root, .formular-reiter .mud-tab .reiter-kopf .reiter-sym.mud-icon-root {
    font-size: 14px !important; width: 14px !important; height: 14px !important; margin: 0 calc(5px * var(--s)) 0 0 !important; color: #64748b; flex: none; }
:is(html, html.thema-petrol, html.thema-hell) .formular-reiter .mud-tab:has(.reiter-sym) { padding-left: calc(9px * var(--s, 1)) !important; padding-right: calc(10px * var(--s, 1)) !important; }
.formular-reiter .mud-tab.mud-tab-active .reiter-kopf .reiter-sym.mud-icon-root, .klapp-knopf.offen .reiter-sym.mud-icon-root { color: currentColor !important; }
.klapp-reiter { gap: 3px; border-bottom: 1px solid var(--th-rahmen, #b9c6d2); }
.klapp-knopf { gap: 0; background: #e4e9ee; color: #46525e; font-weight: 500; border: 1px solid var(--th-rahmen, #b9c6d2); border-bottom: 0;
    border-radius: calc(7px * var(--s)) calc(7px * var(--s)) 0 0; padding: calc(4px * var(--s)) calc(8px * var(--s)); }
.klapp-knopf:hover { background: #eef2f5; }
.klapp-knopf.offen { background: #fff; color: var(--mf-blau); font-weight: 700; border-color: var(--th-rahmen, #b9c6d2); margin-bottom: -1px; padding-bottom: calc(6px * var(--s)); }

/* ab 3.99.103 (Rene 02.11.2026 20:31 „kann keine Vorlage wählen“): Zeilen mit Auswahlfeld dürfen die aufgeklappte Liste nicht abschneiden
   (.sh-tf-zeile hat overflow: hidden – betraf z. B. „Vorlage“ in den Programm-Prozessen und Auswahlfelder in Shop-Zeilen) */
.sh-std .feld-eingabe.sh-tf-zeile:has(.aw-feld) { overflow: visible; }

/* ab 3.99.104: „So geht's“ – Anwendungsfälle als Symbolkette (Hilfe/Einstieg.json „beispiele“) */
.ein-faelle { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 12px; }
.ein-fall { border: 1px solid #ecdca0; border-radius: 6px; background: rgba(255,255,255,.6); padding: 6px 8px; }
.ein-fall-kopf { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: #1f2d3d; margin-bottom: 4px; }
.ein-fall-kopf .mud-icon-root { color: #8a6d00; }
.ein-kette { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .78rem; line-height: 1.3; }
.ein-glied { background: #fff; border: 1px solid #e3d38e; border-radius: 10px; padding: 1px 8px; color: #1f2d3d; }
.ein-pfeil { color: #8a6d00; font-weight: 700; }

/* ab 3.99.105 (Rene 02.11.2026, Masken Variante B „ruhig“): Inventar am PC wie Titelarchiv – Standardleiste, Kopf (Fotos + Gerätefelder), Reiter */
.inv-form:not(.kompakt) { gap: 8px; }
.inv-form:not(.kompakt) .inv-std-leiste { position: sticky; top: 0; z-index: 3; }
.inv-kopf { display: grid; grid-template-columns: calc(132px * var(--s, 1)) minmax(0, 1fr); gap: 12px; align-items: start; }
.inv-kopf > .inv-kopf-fotos { grid-column: 1; grid-row: 1; min-width: 0; }
.inv-kopf > .inv-gruppe { grid-column: 2 !important; grid-row: 1; min-width: 0; margin: 0; border-left-width: 1px !important; border-left-color: var(--th-rahmen, #b9c6d2) !important; }
.inv-kopf > .inv-gruppe > legend { display: none; }
.inv-kopf > .inv-gruppe > .inv-felder { grid-template-columns: calc(118px * var(--s, 1)) minmax(0, 1fr) calc(118px * var(--s, 1)) minmax(0, 1fr); gap: var(--feld-zeilenabstand, 6px) 12px; }
@media (max-width: 1100px) { .inv-kopf > .inv-gruppe > .inv-felder { grid-template-columns: calc(118px * var(--s, 1)) minmax(0, 1fr); } }
.inv-kopf-fotos .inv-fotos { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.inv-kopf-fotos .inv-foto { display: none; width: 100%; height: auto; aspect-ratio: 1; position: relative; }
.inv-kopf-fotos .inv-foto.sichtbar { display: block; } /* ab 3.99.167: sichtbares Foto aus dem Formular (Titelbild bzw. geblättert) */
.inv-kopf-fotos .inv-foto-neu { width: 100% !important; height: auto !important; aspect-ratio: auto !important; min-height: 0; box-sizing: border-box; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 3px 8px; border-width: 1px; border-style: solid;
    border-color: var(--th-rahmen, #b9c6d2); border-radius: 4px; background: var(--th-feld, #fff); color: var(--mf-blau); font-size: .76rem; text-align: left; }
.inv-kopf-fotos .inv-foto-neu .mud-icon-root { font-size: 16px; width: 16px; height: 16px; }
.inv-kopf-fotos:not(:has(.inv-foto))::before { content: ""; display: block; aspect-ratio: 1; border-radius: 6px; background: #d5dde6; margin-bottom: 6px; }
.inv-bereich-reiter { margin-top: 2px; }
.inv-bereich-reiter .reiter-zahl { margin-left: 5px; }
.inv-tabs > .inv-gruppe:not(.aktiv) { display: none !important; }
.inv-tabs > .inv-gruppe > legend { display: none; }
.inv-tabs > .inv-gruppe { margin-top: 0; border-left-width: 1px !important; border-left-color: var(--th-rahmen, #b9c6d2) !important; }
.inv-tabs { display: block !important; columns: auto !important; }

/* ab 3.99.124: Farbkasten (wie Briefe) in allen Editoren und Farbfeldern */
.rt-farbe .rt-farbwahl { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 1px; height: 26px; padding: 0 3px; border-radius: 3px; font-weight: 800; color: #2f3d4e; }
.rt-farbe .rt-farbwahl:hover { background: #e2e9f3; }
.rt-farbe .rt-farbwahl small { font-size: .55rem; color: #5d6b7a; }
.rt-farb-a { border-bottom: 3px solid; line-height: 1.05; padding: 0 2px; }
.rt-farbe .farbkasten, .farbfeld .farbkasten { z-index: 40; }
.farbkasten .dok-farb-feld.gewaehlt { outline: 2px solid #1f2d3d; outline-offset: 1px; }
.farbfeld { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.farbfeld-knopf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 1px 4px; border: 1px solid var(--th-feldrand, #c3cfd9); border-radius: 3px; background: var(--th-feld, #fff); }
.farbfeld-knopf[disabled] { cursor: default; opacity: .6; }
.farbfeld-muster { display: inline-block; width: 28px; height: 16px; border-radius: 2px; border: 1px solid rgba(0,0,0,.2); }
.farbfeld-knopf small { font-size: .55rem; color: #5d6b7a; }

/* ab 3.99.125: Aufgaben – Filterzeile mit Feldern (Beschriftung oben, kompakt) */
.auf-filterzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 8px; padding: 2px 2px 6px; }
.auf-f { display: flex; flex-direction: column; gap: 1px; min-width: 140px; flex: 0 1 190px; }
.auf-f > span { font-size: .66rem; color: var(--th-text2, #47606a); }
.auf-f.breit { flex: 1 1 200px; min-width: 160px; }
.auf-f.schmal { min-width: 70px; flex: 0 0 80px; }
.auf-f .auf-suche { width: 100%; margin: 0; height: 24px; min-height: 0; box-sizing: border-box; }
.auf-f .auf-suche input { width: 100%; }
.auf-f-leeren { align-self: flex-end; }
.farbkasten-probe { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; font-size: .74rem; }
.dok-farb-liste .farbkasten-probe button.mf-knopf { display: inline-flex !important; width: auto !important; height: 22px !important; padding: 0 8px !important; font-size: .74rem; justify-content: center !important; }
.farbkasten-probe code { font-size: .72rem; }
.farbkasten-probe .dok-farb-feld { width: 22px !important; height: 18px !important; }
/* ab 3.99.127: Aufgabe – Titel | Zugeteilt und Kategorien | Bezug je in einer Zeile */
.auf-detail .auf-zeile-paar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auf-detail .auf-zeile-paar > :first-child { flex: 1 1 260px; min-width: 0; }
.auf-detail .auf-zeile-paar > :last-child { flex: 1 1 260px; min-width: 0; }
.dok-farb-liste .farbkasten-probe button.mf-knopf:not(.hell) { background: var(--th-akzent, #0f766e) !important; color: #fff !important; }
/* ab 3.99.128: Aufgabe – Kopfbereich hinterlegt (Farbe aus dem Farbschema --th-auf-kopf) */
.auf-detail .auf-kopfblock { display: flex; flex-direction: column; gap: 7px; margin: -10px -12px 0; padding: 8px 12px 9px; background: var(--th-auf-kopf, var(--th-formular-flaeche, #e8eef4)); border-bottom: 1px solid var(--th-rahmen, #b9cbc6); }
.auf-detail .auf-zeile-titel .auf-kopf-stand { display: inline-flex; gap: 4px; align-items: center; flex: 0 0 auto !important; }
.auf-detail .auf-zeile-titel .auf-kopf-info { display: inline-flex; gap: 6px; align-items: center; flex: 0 0 auto !important; margin-left: auto; color: var(--th-text2, #5d6b7a); font-size: .7rem; white-space: nowrap; }
.auf-detail .auf-zeile-titel > .auf-titel { flex: 1 1 240px !important; }
.auf-detail .auf-zeile-titel > .auf-feld:not(.auf-titel) { flex: 1 1 240px !important; }
/* ab 3.99.128: Bilder im Editor – Größe ziehen und kleine Leiste */
.rt-bild-leiste { position: fixed; z-index: 1600; display: none; gap: 2px; padding: 2px; background: rgba(31,45,61,.85); border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rt-bild-leiste button { all: unset; cursor: pointer; min-width: 22px; height: 22px; padding: 0 5px; text-align: center; color: #fff; font-size: .78rem; font-weight: 700; border-radius: 3px; line-height: 22px; }
.rt-bild-leiste button:hover { background: rgba(255,255,255,.2); }
body.rt-bild-ziehen, body.rt-bild-ziehen * { cursor: nwse-resize !important; user-select: none !important; }
[contenteditable=true] img:hover { outline: 2px solid rgba(15,118,110,.55); outline-offset: 1px; }
/* ab 3.99.128: Schieberegler mit Stufen (StufenRegler.razor) */
.stufen { position: relative; display: inline-flex; min-width: 0; }
.stufen-feld { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; width: 100%; min-width: 90px; height: 24px; padding: 0 2px 0 6px; border: 1px solid var(--th-feldrand, #97ada7); border-radius: 3px; background: var(--th-feld, #fff); font-size: .8rem; }
.stufen-feld small { color: #7a8794; font-size: .68rem; }
.stufen-feld .mud-icon-root { margin-left: auto; color: #5d6b7a; }
.stufen-feld[disabled] { cursor: default; opacity: .7; }
.stufen-farbe { display: inline-block; width: 6px; align-self: stretch; margin: -1px 0 -1px -6px; border-radius: 3px 0 0 3px; }
.stufen-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 280px; padding: 10px 14px 26px; background: #fff; border: 1px solid #c9d4e2; border-radius: 10px; box-shadow: 0 10px 28px rgba(20,35,60,.2); }
.stufen-kopf { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; font-size: .74rem; color: #5d6b7a; }
.stufen-kopf b { font-size: 1.1rem; color: var(--th-akzent, #0f766e); margin-left: auto; }
.stufen-kopf small { font-size: .7rem; }
.stufen-pop input[type=range] { -webkit-appearance: none; appearance: none; width: 100% !important; height: 6px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 3px; margin: 8px 0 !important; cursor: pointer; outline: none;
  background: linear-gradient(to right, var(--th-akzent, #0f766e) 0 var(--anteil, 0%), #d3dce4 var(--anteil, 0%) 100%) !important; }
.stufen-pop input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--th-akzent, #0f766e); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.stufen-pop input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--th-akzent, #0f766e); }
.stufen-skala { position: relative; height: 16px; margin: 0 9px; }
.stufen-skala button { all: unset; cursor: pointer; position: absolute; top: 0; transform: translateX(-50%); font-size: .64rem; color: #7a8794; padding: 0 2px; }
.stufen-skala button::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: #b7c3d3; }
.stufen-skala button.an, .stufen-skala button:hover { color: var(--th-akzent, #0f766e); font-weight: 700; }
/* ab 3.99.130: Farbkasten im Farbschema-Editor links neben dem Fenster (nicht abgeschnitten, die Vorschau bleibt sichtbar) */
.thema-editor .farbfeld .farbkasten { position: fixed !important; right: 372px; bottom: 18px; top: auto !important; left: auto !important; max-height: calc(100vh - 40px); overflow: auto; z-index: 2001; }
.thema-editor .farbfeld .auf-format-hinter { z-index: 2000; }
/* ab 3.99.131: Shop-Auswertungen – Mauer-Raster (keine Zeilenlücken), Breite ziehen, Animationen */
.aw-raster.aw-mauer { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); grid-auto-rows: 4px; row-gap: 0; column-gap: 12px; align-items: start; grid-auto-flow: row dense; }
.aw-raster.aw-mauer > .aw-modul { margin-bottom: 12px; position: relative; }
.aw-breite-griff { position: absolute; top: 34px; right: -7px; bottom: 6px; width: 12px; cursor: ew-resize; z-index: 3; }
.aw-breite-griff::after { content: ""; position: absolute; top: 50%; right: 5px; width: 3px; height: 34px; margin-top: -17px; border-radius: 2px; background: #cbd5e1; opacity: 0; transition: opacity .15s; }
.aw-modul:hover .aw-breite-griff::after { opacity: 1; }
.aw-breite-griff:hover::after { background: var(--th-akzent, #0f766e); }
body.aw-zieht-breite, body.aw-zieht-breite * { cursor: ew-resize !important; user-select: none !important; }
@keyframes awx-zeichnen { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
@keyframes awx-wachsen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes awx-breiter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes awx-ring { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes awx-auf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ab 3.99.132: Animationen jetzt per JS (mrr.awAnimieren) – länger, gestaffelt, mit Zählern */
.fenster-zusatz { margin-left: 12px; padding: 1px 8px; border-radius: 9px; font-size: .72em; font-weight: 600; background: rgba(15,118,110,.12); color: var(--th-akzent, #0f766e); white-space: nowrap; }
.dok-tipp.dok-verknuepft { color: #15803d; }
.dok-tipp.dok-nicht-verknuepft { color: #b45309; }
/* ab 3.99.134: Korrespondenz bei der Adresse als Liste wie „Briefe“ */
.adr-korr-liste { height: 260px; min-height: 160px; display: flex; flex-direction: column; resize: vertical; overflow: hidden; }
.adr-korr-liste > * { flex: 1; min-height: 0; }
.dok-zeiten b { font-weight: 600; }
.dok-adresse-fest { display: flex; gap: 6px; align-items: flex-start; color: #6b5200; background: color-mix(in srgb, #f5c400 14%, transparent); border-radius: 6px; padding: 6px 8px; }
.empf-raster input:disabled { background: color-mix(in srgb, var(--th-feld, #fff) 55%, #cbd5e1) !important; color: #475569; cursor: not-allowed; }
/* ab 3.99.138: Software-Update – Erfolgskarte nach dem Einspielen */
.su-erfolg { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 12px; max-width: 960px; margin-bottom: 14px;
  background: linear-gradient(120deg, #0f766e, #14b8a6 55%, #5eead4); color: #fff; box-shadow: 0 10px 28px rgba(15,118,110,.28); animation: su-rein .6s cubic-bezier(.2,1.3,.4,1); }
.su-erfolg::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -35%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: su-glanz 2.8s 1s ease-in-out infinite; }
.su-erfolg-haken { flex: none; width: 58px; height: 58px; }
.su-erfolg-haken circle { fill: rgba(255,255,255,.15); stroke: #fff; stroke-width: 4; stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: 50% 50%; animation: su-zeichnen .7s .2s ease-out forwards; }
.su-erfolg-haken path { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: su-zeichnen .4s .85s ease-out forwards; }
.su-erfolg-titel { font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; }
.su-erfolg-unter { font-size: .85rem; opacity: .92; font-variant-numeric: tabular-nums; }
.su-erfolg-knopf { margin-left: auto; position: relative; z-index: 1; background: #fff !important; color: #0f766e !important; font-weight: 700; }
.su-funke { position: absolute; left: 64px; top: 50%; width: 6px; height: 6px; border-radius: 2px; background: #fde68a; opacity: 0; pointer-events: none;
  animation: su-funke 1.3s calc(.9s + var(--i) * .03s) ease-out forwards; transform: rotate(calc(var(--i) * 25.7deg)) translateX(0); }
.su-funke:nth-child(3n) { background: #fff; } .su-funke:nth-child(3n+1) { background: #a5f3fc; }
@keyframes su-funke { 0% { opacity: 1; transform: rotate(calc(var(--i) * 25.7deg)) translateX(10px); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)) translateX(90px); } }
@keyframes su-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes su-rein { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes su-glanz { 0% { left: -35%; } 60%, 100% { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .su-erfolg, .su-erfolg *, .su-erfolg::after { animation: none !important; stroke-dashoffset: 0 !important; } }
/* ab 3.99.138 (Rene „die Logs unten könnten kleiner sein“): Verlauf kompakt, Details einzeilig (ganzer Text als Tooltip) */
.su-verlauf { font-size: .7rem !important; }
.su-verlauf th { font-size: .62rem !important; }
.su-verlauf td { padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.25 !important; }
.su-verlauf td.su-details { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.su-verlauf .su-status { font-size: .62rem !important; }
/* ab 3.99.139: Start-Dialog einer Vorlage (Fragen, Auswahl vor dem Übernehmen) */
.vs-dialog { min-height: 60px; }
.vs-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.vs-kopf .dok-link { font-size: .8rem; }
.vs-kopf .vs-suche { width: 260px; height: 26px; }
.vs-liste { max-height: 55vh; overflow: auto; border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 6px; }
.vs-tabelle { width: 100%; font-size: .8rem; }
.vs-tabelle thead th { position: sticky; top: 0; background: var(--th-formular, #f1f5f9); z-index: 1; }
.vs-tabelle td { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.vs-tabelle tr.an td { background: color-mix(in srgb, var(--th-akzent, #2563eb) 10%, transparent); }
.vs-ergebnis { font-size: .95rem; margin-bottom: 6px; color: #166534; }
/* ab 3.99.141 (Rene 03.11.2026 22:33): Software-Update – Zeitleiste je Update, Kacheln rechts */
.su-ansicht .formular-inhalt { max-width: 1400px !important; }
.su-raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .su-raster { grid-template-columns: 1fr; } }
.su-abschnitt { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--th-text, #1e293b); margin-bottom: 10px; }
.su-zahl { font-size: .7rem; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--th-rahmen, #e2e8f0); color: #475569; }
.su-zeitleiste { position: relative; }
.su-gruppe { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 10px; }
.su-gruppe::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--th-rahmen, #e2e8f0); }
.su-gruppe:last-child::before { display: none; }
.su-punkt { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: #fff; background: #94a3b8; box-shadow: 0 0 0 4px var(--th-formular, #f1f5f9); z-index: 1; }
.su-gruppe.installiert .su-punkt { background: #16a34a; }
.su-gruppe.fehler .su-punkt, .su-gruppe.zurueck .su-punkt { background: #dc2626; }
.su-gruppe.verschoben .su-punkt, .su-gruppe.geplant .su-punkt { background: #d97706; }
.su-gruppe-karte { background: var(--th-feld, #fff); border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.04); overflow: hidden; transition: box-shadow .15s; }
.su-gruppe-karte:hover { box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.su-gruppe-kopf { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 14px; font-size: .8rem; color: #475569; }
.su-gruppe-version { font-size: 1rem; font-weight: 800; color: var(--th-text, #0f172a); font-variant-numeric: tabular-nums; min-width: 72px; }
.su-gruppe-zeit, .su-gruppe-dauer { font-variant-numeric: tabular-nums; }
.su-gruppe-wer { display: inline-flex; align-items: center; gap: 3px; }
.su-gruppe-pfeil { margin-left: auto; font-size: .72rem; color: #94a3b8; }
.su-gruppe-text { padding: 0 14px 9px 98px; font-size: .74rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.su-gruppe-schritte { list-style: none; margin: 0; padding: 6px 14px 10px; border-top: 1px solid var(--th-rahmen, #eef2f6); display: grid; gap: 2px; }
.su-gruppe-schritte li { display: grid; grid-template-columns: 62px 128px minmax(0, 1fr); gap: 8px; align-items: center; font-size: .7rem; color: #475569; padding: 2px 0; }
.su-gruppe-schritte .su-sz { font-variant-numeric: tabular-nums; color: #94a3b8; }
.su-gruppe-schritte .su-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-gruppe-schritte .su-status { justify-self: start; font-size: .64rem !important; white-space: nowrap; }
.su-gruppe-schritte li { grid-template-columns: 62px 140px minmax(0, 1fr) !important; }
.su-seite { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 8px; }
.su-kachel { background: var(--th-feld, #fff); border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 12px; padding: 14px 16px; }
.su-version { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(15,118,110,.22); }
.su-version small { opacity: .85; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.su-version > b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.su-kennzahlen { display: grid; gap: 4px; margin-top: 10px; font-size: .76rem; opacity: .95; }
.su-kennzahlen b { font-variant-numeric: tabular-nums; }
.su-lw { display: flex; gap: 12px; align-items: center; font-size: .78rem; color: #475569; padding: 4px 0; }
.su-lw b { color: var(--th-text, #0f172a); }
.su-ring { width: 52px; height: 52px; flex: none; transform: rotate(-90deg); }
.su-ring circle { fill: none; stroke-width: 3.6; }
.su-ring .hg { stroke: var(--th-rahmen, #e2e8f0); }
.su-ring .vg { stroke: #0f766e; stroke-linecap: round; }
.su-lw.knapp .su-ring .vg { stroke: #dc2626; }
.su-ring text { transform: rotate(90deg); transform-origin: 18px 18px; font-size: 8px; font-weight: 700; fill: #334155; text-anchor: middle; }
.su-aufb { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 6px 10px; align-items: center; font-size: .78rem; }
.su-aufb input { width: 80px; text-align: right; }
.su-aufb-fuss { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
/* ab 3.99.141: ZeitConsens – automatischer Abgleich */
.zc-abgleich { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.zc-abgleich-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zc-abgleich-zeile .auswahl { min-width: 170px; }
.zc-abgleich-stand { font-size: .8rem; color: #166534; }
.zc-abgleich-stand.fehler { color: #b91c1c; }

/* ab 3.99.141: Fortschritt ZeitConsens-Übernahme */
.zc-fortschritt { margin: 8px 0 4px; max-width: 760px; display: flex; flex-direction: column; gap: 4px; }
.zc-fs-kopf { display: flex; align-items: baseline; gap: 12px; font-size: .82rem; }
.zc-fs-zahl { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.zc-fs-balken { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--th-rahmen, #cbd5e1) 60%, transparent); overflow: hidden; position: relative; }
.zc-fs-balken > div { height: 100%; border-radius: 4px; background: var(--mud-palette-primary, #0f766e); transition: width .4s ease; position: relative; overflow: hidden; }
.zc-fs-balken > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: zc-fs-glanz 1.4s linear infinite; }
@keyframes zc-fs-glanz { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.zc-fs-zeile { display: flex; flex-wrap: wrap; gap: 4px 16px; font-variant-numeric: tabular-nums; }

/* ab 3.99.142: Zeitdaten entfernen */
.az-zr { display: flex; flex-direction: column; gap: 10px; font-size: .82rem; }
.az-zr-wahl { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.az-zr-wahl input { margin-top: 3px; }
.az-zr-haken { display: flex; flex-direction: column; gap: 4px; padding-left: 2px; }
.az-zr h4 { margin: 4px 0 0; font-size: .85rem; }
.az-zr-tabelle { border-collapse: collapse; min-width: 280px; }
.az-zr-tabelle td { padding: 2px 8px 2px 0; border-bottom: 1px solid var(--th-rahmen, #e2e8f0); }
.az-zr-tabelle td.r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.az-zr-tabelle tr.leer td { opacity: .5; font-weight: normal; }
.az-zr-bestaetigen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.az-zr-bestaetigen input { width: 140px; }

/* ab 3.99.143 (Rene 03.11.2026 23:53): links Verbindung/Stichtag untereinander, rechts Haken einzeilig */
.zc-formular { max-width: 1200px; }
.zc-oben { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 10px 32px; align-items: start; }
.zc-links { display: flex; flex-direction: column; gap: 10px; }
.zc-links > label { display: grid; gap: 3px; font-weight: 600; }
.zc-links > label small { font-weight: 400; color: var(--th-text2, #666); }
.zc-links input[type=date] { max-width: 200px; height: 28px; }
.zc-rechts { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.zc-rechts .zc-haken { display: flex; flex-direction: column; gap: 4px; }
.zc-rechts .zc-haken label { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.zc-rechts details summary { white-space: nowrap; cursor: pointer; }
@media (max-width: 760px) { .zc-oben { grid-template-columns: 1fr; } .zc-rechts { padding-top: 0; } .zc-rechts .zc-haken label { white-space: normal; } }

/* ab 3.99.144: Ergebnis der ZeitConsens-Übernahme als Karte */
.zc-ergebnis { border: 1px solid color-mix(in srgb, #2e7d32 45%, transparent); border-radius: 8px; padding: 10px 12px; max-width: 1000px; display: flex; flex-direction: column; gap: 10px; animation: zc-erg-ein .35s ease-out; }
@keyframes zc-erg-ein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.zc-erg-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; }
.zc-erg-haken { width: 22px; height: 22px; border-radius: 50%; background: #2e7d32; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.zc-erg-kacheln { display: flex; flex-wrap: wrap; gap: 8px; }
.zc-erg-kachel { border: 1px solid var(--th-rahmen, #e2e8f0); border-radius: 6px; padding: 6px 12px; min-width: 110px; display: flex; flex-direction: column; }
.zc-erg-kachel b { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #2e7d32; }
.zc-erg-kachel span { font-size: .75rem; color: var(--th-text2, #64748b); }
.zc-erg-kachel.leer b { color: var(--th-text2, #94a3b8); }

/* ab 3.99.144 (Rene 04.11.2026 00:49 „Sa und So sollten grau sein im Hintergrund, auch Feiertage“) */
/* → Module/Zeiterfassung/stil.css (Samstag/Sonntag mit Verlauf) */
.vs-kopf .vs-suche-box { display: inline-flex; gap: 4px; align-items: center; }

/* ab 3.99.149: Schalter je Bereich in der Rechte-Matrix (alle Module „sehen“) */
.rm-gruppe .rm-z.rm-bereich-an { color: #2e7d32; border: 1px solid #a5d6a7; background: #fff; }
.rm-gruppe .rm-z.rm-bereich-aus { color: #fff; background: #d32f2f; }
.rm-gruppe .rm-z.rm-bereich-teil { font-size: 1rem; color: #9a6700; border: 1px solid #e8c56b; background: #fff8e1; }
.rm-gruppe .rm-z:disabled { opacity: .5; cursor: default; }

/* ab 3.99.166 (Rene 05.11.2026 22:24, Android-Handy mit normaler Fensteransicht: „im DMS sehe ich die Dokumente nicht“): auch im normalen Fenster
   (nicht nur in der Einzelansicht) am schmalen Bildschirm alles untereinander, der Fensterinhalt scrollt */
@media (max-width: 760px) {
  .fenster-inhalt:not(.einzel-inhalt) { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .fenster-inhalt .dms-fenster, .fenster-inhalt .dms-zone.flaeche { height: auto !important; flex: none !important; min-height: 0; }
  .fenster-inhalt .dms-ablage, .fenster-inhalt .dms-ablage.mit-vorschau, .fenster-inhalt .dms-ablage.mit-angaben, .fenster-inhalt .dms-ablage.mit-vorschau.mit-angaben {
    grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: auto; height: auto !important; overflow: visible; }
  .fenster-inhalt .dms-ablage > * { grid-column: auto !important; grid-row: auto !important; }
  .fenster-inhalt .dms-ablage > .spalten-griff { display: none !important; }
  .fenster-inhalt .dms-ablage-baum { min-height: 160px; max-height: 35vh; }
  .fenster-inhalt .dms-ablage-liste { min-height: 50vh; }
  .fenster-inhalt .dms-ablage > .dms-mitte:has(*) { min-height: 70vh; }
  .fenster-inhalt .dms-ablage > .dms-rechts:has(*) { min-height: 50vh; max-height: none; }
}

/* ab 3.99.167 (Rene 06.11.2026): Hauptpunkt „Verlag & Label“ – Gruppen darunter eingerückt, ihre Einträge entsprechend weiter */
html .mf-menu-bereich .mf-menu-gruppe, html.thema-petrol .mf-menu-bereich .mf-menu-gruppe { padding-left: calc(30px * var(--s)); }
html .mf-menu-bereich .mf-menu-gruppe::before { left: calc(28px * var(--s)); background: rgba(203, 213, 225, .08); }
html .mf-menu-bereich .mf-menu-eintrag, html.thema-petrol .mf-menu-bereich .mf-menu-eintrag { padding-left: calc(60px * var(--s)); }
html .mf-menu-bereich .mf-menu-eintrag.mf-menu-unter { padding-left: calc(56px * var(--s)); }
html .mf-menu-bereich .mf-menu-eintrag.mf-menu-untereintrag, html.thema-petrol .mf-menu-bereich .mf-menu-eintrag.mf-menu-untereintrag { padding-left: calc(80px * var(--s)); }
.mf-menu-bereich { display: flex; flex-direction: column; }

/* ab 3.99.167 (P0-07): Änderungsverlauf */
.verlauf-dialog .vl-kopf { display: flex; gap: 10px; align-items: center; }
.verlauf-dialog .vl-titel { font-weight: 600; font-size: 1.05rem; }
.verlauf-dialog .vl-untertitel { font-size: .82rem; color: #64748b; }
.verlauf-dialog .vl-suche { box-sizing: border-box; width: 100%; margin-bottom: 10px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: .85rem; outline: none; }
.verlauf-dialog .vl-suche:focus { border-color: var(--mud-palette-primary); }
.verlauf-dialog .vl-liste { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.verlauf-dialog .vl-gruppe { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.verlauf-dialog .vl-g-kopf { display: flex; gap: 10px; align-items: center; background: #f8fafc; padding: 6px 10px; font-size: .82rem; }
.verlauf-dialog .vl-aktion { border-radius: 10px; padding: 1px 8px; font-size: .74rem; font-weight: 600; background: #e0f2fe; color: #075985; }
.verlauf-dialog .vl-aktion.angelegt { background: #dcfce7; color: #166534; }
.verlauf-dialog .vl-aktion.geloescht { background: #fee2e2; color: #991b1b; }
.verlauf-dialog .vl-quelle { margin-left: auto; font-size: .72rem; color: #64748b; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 6px; }
.verlauf-dialog .vl-zeile { display: grid; grid-template-columns: minmax(150px, 30%) minmax(0, 1fr) 18px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 4px 10px; font-size: .82rem; border-top: 1px solid #f1f5f9; }
.verlauf-dialog .vl-feld { color: #475569; font-weight: 500; }
.verlauf-dialog .vl-alt { color: #991b1b; text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, .35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verlauf-dialog .vl-neu { color: #166534; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verlauf-dialog .vl-pfeil { color: #94a3b8; text-align: center; }
@media (max-width: 600px) { .verlauf-dialog .vl-zeile { grid-template-columns: 1fr; gap: 0; } .verlauf-dialog .vl-pfeil { display: none; } }

/* ab 3.99.167 (Rene 06.11.2026): Entwicklung – erledigte Punkte und ganz erledigte Phasen grün hinterlegt */
.eb-punkt.s2 { background: var(--mf-gruen-bg, #e8f5ec); }
.eb-gruppe.fertig > .eb-gruppe-kopf { background: var(--mf-gruen-bg, #e8f5ec); border-radius: 6px; padding: 6px 8px; cursor: pointer; border-bottom-color: transparent; }
.eb-phase.fertig { background: var(--mf-gruen-bg, #e8f5ec); border-color: var(--mf-gruen-rand, #9fd2b0); }

/* ab 3.99.167 (Rene 06.11.2026): Fotozähler „1 / 3“ mit Blättern oben links; Reparaturen mit Bildern */
.inv-foto-zahl, .inv-foto-blaettern { display: none; }
.inv-kopf-fotos .inv-foto-zahl { display: block; position: absolute; right: 6px; bottom: 6px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .72rem; font-weight: 600; border-radius: 10px; padding: 1px 8px; pointer-events: none; }
.inv-kopf-fotos .inv-foto-blaettern { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 32px; border: 0; border-radius: 6px; background: rgba(15, 23, 42, .55); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: .85; }
.inv-kopf-fotos .inv-foto-blaettern:hover { opacity: 1; background: rgba(15, 23, 42, .8); }
.inv-kopf-fotos .inv-foto-blaettern.zurueck { left: 4px; }
.inv-kopf-fotos .inv-foto-blaettern.vor { right: 4px; }
.inv-reiter-stift { font-size: 14px !important; margin-left: 4px; color: var(--mf-gruen-text, #1e6b34); }
.inv-rep-leiste { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.inv-rep-suche { flex: 1; max-width: 360px; padding: 4px 8px; border: 1px solid var(--th-rahmen, #b9c6d2); border-radius: 4px; font: inherit; font-size: .82rem; }
.inv-rep { border: 1px solid var(--th-rahmen, #d5dde6); border-left: 3px solid #d97706; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; background: var(--th-feld, #fff); }
.inv-rep.erledigt { border-left-color: var(--mf-gruen-text, #1e6b34); }
.inv-rep-kopf { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; }
.inv-rep-kopf label { display: flex; gap: 6px; align-items: center; }
.inv-rep-kopf input:not([type=checkbox]) { padding: 2px 6px; border: 1px solid var(--th-rahmen, #b9c6d2); border-radius: 4px; font: inherit; }
.inv-rep-wer { margin-left: auto; }
.inv-rep-texte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.inv-rep-texte label { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--mf-text-2, #475569); }
.inv-rep-texte textarea { font: inherit; font-size: .84rem; padding: 4px 6px; border: 1px solid var(--th-rahmen, #b9c6d2); border-radius: 4px; resize: vertical; color: var(--mf-text, #0f172a); }
@media (max-width: 760px) { .inv-rep-texte { grid-template-columns: 1fr; } }
.inv-rep-bilder { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.inv-rep-bild { position: relative; width: 72px; height: 72px; }
.inv-rep-bild img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid #e2e8f0; }
.inv-rep-bild button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; font-size: 10px; cursor: pointer; display: none; }
.inv-rep-bild:hover button { display: block; }
.inv-rep-neu { display: inline-flex; align-items: center; gap: 4px; height: 72px; padding: 0 12px; border: 1px dashed var(--th-rahmen, #b9c6d2); border-radius: 4px; cursor: pointer; font-size: .8rem; color: var(--mf-blau, #0f766e); }
.inv-rep-neu input { display: none; }

/* ab 3.99.168: Datenordner (alle Mandanten) oben im Reiter „Pfade“ der Einstellungen */
.datenordner { padding: 6px 10px; margin: 4px 0 6px; border: 1px solid var(--th-rahmen, #c9d7ea); border-radius: 6px; }
.datenordner .feld > label { font-weight: 700; }
.datenordner-eingabe { display: flex; gap: 6px; align-items: center; max-width: 820px; }
.datenordner-eingabe input { flex: 1; }
.datenordner-text { flex: 1; font-size: .78rem; color: var(--th-text, #2e4052); padding: 3px 0; user-select: all; }
.datenordner-hinweis { font-size: .74rem; color: var(--th-text-zweit, #64748b); margin: 4px 0 0 170px; }
.datenordner-hinweis.gelb { color: #92400e; font-weight: 600; }
.datenordner-hinweis.rot { color: #c62828; font-weight: 600; }
.datenordner-umbau { font-size: .7rem; font-weight: 400; color: var(--th-text, #2e4052); background: var(--th-flaeche, #f7f8f9); border: 1px solid #c6cacf; padding: 6px 8px; margin: 4px 0 0; max-height: 260px; overflow: auto; white-space: pre; }
.datenordner-zeile { display: flex; flex-direction: column; gap: 4px; }
.datenordner-sperre { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(15, 23, 42, .55); }
.datenordner-sperre-text { max-width: 460px; text-align: center; color: #fff; font-size: 1rem; font-weight: 600; }
/* ab 3.99.170: Installations-Block deutlich vom Mandantenteil getrennt (Rene 12:06), Rechner-Schild und Netzwerkpfad (Variante A) */
.datenordner { margin: 6px 0 18px; padding: 10px 12px 8px; border: 1px solid var(--th-rahmen, #c9d7ea); border-left: 4px solid #0f766e; border-radius: 0; }
.datenordner-titel { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f766e; margin-bottom: 6px; }
.datenordner-rechner { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: #e1f5ee; color: #085041; white-space: nowrap; }
.datenordner-netz { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px 176px; font-size: .74rem; color: var(--th-text-zweit, #64748b); }
.datenordner-netz code { font-size: .74rem; }
.datenordner-netz .mf-knopf { padding: 0 6px; min-height: 20px; text-decoration: none; }
.pfade-mandant-titel { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--th-text-zweit, #475569); margin: 4px 0 4px; }

/* ab 3.99.171: Server-Schild vor Pfaden (MFeld, DMS) */
.feld-eingabe.mit-knoepfen > .datenordner-rechner, .dms-pfad-zeile > .datenordner-rechner, .dp-pfad-zeile > .datenordner-rechner { align-self: center; margin-right: 6px; }
.dms-ort-pfad { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dms-ort-pfad input { flex: 1; min-width: 0; }
td > .datenordner-rechner { margin-right: 6px; }

/* ab 3.99.172 (Rene 06.11.2026 13:49): Inventar – Liste oben, Maske darunter */
.inv-ansicht-wahl { display: inline-flex; gap: 2px; }
.inv-raster.inv-oben { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--inv-ob, 34%) 12px minmax(200px, 1fr); gap: 0; }
.inv-raster.inv-oben > .inv-liste { min-height: 0; padding-bottom: 4px; }
.inv-raster.inv-oben > .inv-detail { overflow: auto; min-height: 0; }
.inv-oben > .inv-griff { cursor: row-resize; }
.inv-oben > .inv-griff::after { left: 40%; right: 40%; top: 3px; bottom: 3px; border-left: 0; border-top: 2px dotted #c3cfdc; }
.inv-oben .inv-gruppen { column-width: 440px; column-gap: 12px; }
.inv-oben .inv-gruppen > .rahmen { break-inside: avoid; display: block; width: 100%; box-sizing: border-box; margin-top: 0; margin-bottom: 8px; }
@media (max-width: 1100px) {
    .inv-raster.inv-oben { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; flex: none; }
}

/* ab 3.99.172 (Rene 06.11.2026 13:44): Reparaturen – Liste, Bezeichnung, Einsätze, Bilder mit Reihenfolge, Kommentar und Zeichnung */
.inv-rep-liste { max-height: 240px; display: flex; flex-direction: column; margin-bottom: 8px; min-height: 120px; }
.inv-rep-liste > * { flex: 1; min-height: 0; }
.inv-rep-kopf .inv-rep-bez { flex: 1 1 320px; }
.inv-rep-kopf .inv-rep-bez input { flex: 1; min-width: 160px; }
.inv-rep-einsatz { border-top: 1px dashed var(--th-rahmen, #d5dde6); margin-top: 8px; padding-top: 6px; }
.inv-rep-ekopf { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; }
.inv-rep-ekopf label { display: flex; gap: 6px; align-items: center; }
.inv-rep-ekopf input { padding: 2px 6px; border: 1px solid var(--th-rahmen, #b9c6d2); border-radius: 4px; font: inherit; }
.inv-rep-texte > div > label { display: block; font-size: .78rem; color: var(--mf-text-2, #475569); margin-bottom: 2px; }
.inv-rep-bilder { align-items: flex-start; }
.inv-rep-bild { width: 120px; height: auto; display: flex; flex-direction: column; gap: 3px; }
.inv-rep-bildrahmen { position: relative; width: 120px; height: 90px; }
.inv-rep-bildrahmen img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid #e2e8f0; display: block; }
.inv-rep-bildrahmen .inv-zeichnung { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.inv-rep-nr { position: absolute; left: 3px; top: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.inv-rep-bild .inv-rep-bildknoepfe { position: absolute; left: 0; right: 0; bottom: 2px; display: none; justify-content: center; gap: 3px; }
.inv-rep-bild:hover .inv-rep-bildknoepfe { display: flex; }
.inv-rep-bild .inv-rep-bildknoepfe button { position: static; display: block; width: 22px; height: 20px; border-radius: 4px; font-size: 11px; }
.inv-rep-bild .inv-rep-bildknoepfe button:disabled { opacity: .35; cursor: default; }
.inv-rep-memo { width: 120px; box-sizing: border-box; font: inherit; font-size: .72rem; padding: 2px 4px; border: 1px solid var(--th-rahmen, #b9c6d2); border-radius: 4px; resize: vertical; }
.inv-rep-neu { height: 90px; }
/* Zeichnen-Dialog */
.inv-zei-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.inv-zei-farbe { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; cursor: pointer; padding: 0; }
.inv-zei-farbe.aktiv { border-color: #0f172a; box-shadow: 0 0 0 2px #fff inset; }
.inv-zei-trenner { width: 1px; height: 20px; background: #cbd5e1; margin: 0 4px; }
.inv-zei-flaeche { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.inv-zei-flaeche img { max-width: 100%; max-height: 70vh; display: block; user-select: none; }
.inv-zei-flaeche canvas { position: absolute; left: 0; top: 0; cursor: crosshair; }
.inv-rep-fazit { margin-top: 10px; border-top: 1px dashed var(--th-rahmen, #d5dde6); padding-top: 6px; }
.inv-rep-fazit > label { display: block; font-size: .78rem; font-weight: 600; color: var(--mf-text-2, #475569); margin-bottom: 2px; }
.inv-zei-leiste.blass { opacity: .4; pointer-events: none; }
/* ab 3.99.172: Teiler zwischen Fehler und Maßnahme (je Benutzer gemerkt) */
.inv-rep-texte { grid-template-columns: var(--rep-l, minmax(0, 1fr)) 8px minmax(260px, 1fr); gap: 0 4px; }
.inv-rep-texte > .inv-griff { cursor: col-resize; position: relative; }
.inv-rep-texte > .inv-griff::after { content: ""; position: absolute; top: 40%; bottom: 40%; left: 3px; border-left: 2px dotted #c3cfdc; }
@media (max-width: 760px) { .inv-rep-texte { grid-template-columns: 1fr; } .inv-rep-texte > .inv-griff { display: none; } }
/* ab 3.99.172 (Rene 06.11.2026 14:02): Pflichtfelder im Inventar mit dem eingestellten Hintergrund wie in allen Masken */
input.pflicht:not(:disabled):not([type=checkbox]), textarea.pflicht:not(:disabled) { background: var(--mf-pflicht, #fff1bf); }
/* ab 3.99.172 (Rene 06.11.2026 14:04): Bildgröße der Geräteliste einstellbar (Zahnrad → Bildgröße) */
.inv-liste .inv-mini-zelle { height: var(--inv-bild, 20px); }
.inv-liste .inv-mini-zelle .inv-mini { width: var(--inv-bild, 20px); height: var(--inv-bild, 20px); }
/* ab 3.99.172 (Rene 06.11.2026 14:02/14:05): Reiterfläche reicht bis ganz unten; Schrift in Fehler/Maßnahme/Fazit wie in den Feldern */
.inv-detail > .inv-form:not(.kompakt) { min-height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.inv-form:not(.kompakt) > .inv-gruppen.inv-tabs { flex: 1 1 auto; display: flex !important; flex-direction: column; }
.inv-form:not(.kompakt) > .inv-tabs > .inv-gruppe.aktiv:not(.g-geraet) { flex: 1 1 auto; }
.inv-rep .rt-flaeche { font-size: .8rem; }
/* ab 3.99.172: Standardleiste des Geräts klebt oben – mit eigenem Hintergrund (sonst scheint die Maske durch) */
.inv-form:not(.kompakt) .inv-std-leiste { background: var(--mf-leiste, #e9eef5); }
/* ab 3.99.172: Anhänge am Gerät */
.inv-anh-leiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.inv-anh-neu { cursor: pointer; }
.inv-anh-neu input[type=file] { display: none; }
.inv-anh-ort { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.inv-anh td a { display: inline-flex; gap: 4px; align-items: center; }
html.farbverlauf .fenster .ansicht-formular .inv-form:not(.kompakt) .inv-std-leiste, html .inv-form:not(.kompakt) .inv-std-leiste { background: color-mix(in srgb, #fff 35%, var(--th-formular, var(--mf-formular, #dfe7f0))) !important; }
/* ab 3.99.173: Inventar → Reparaturen (alle Geräte) */
.inv-reps { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.inv-reps-leiste { gap: 8px; }
.inv-reps-leiste .leiste-status { margin-left: auto; }
.inv-reps-liste { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 6px; }
.inv-reps-liste > * { flex: 1 1 auto; min-height: 0; }
/* ab 3.99.173 (Rene 06.11.2026 14:57/14:59): Fazit links unter Fehler, Editoren ohne Leiste, Bezeichnung fett */
.inv-rep-links { display: flex; flex-direction: column; min-width: 0; }
.inv-rep-links > label.inv-rep-fazit-titel { margin-top: 8px; font-weight: 600; }
.rt.ohne-leiste .rt-flaeche { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.inv-rep-kopf .inv-rep-bez input { font-weight: 700; }
/* ab 3.99.173 (Rene 06.11.2026 15:00): Kopf im Reiter „Reparatur“ eingeklappt */
.inv-kopf-zu { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: .82rem; }
.inv-kopf-zu input { flex: 0 1 420px; font: inherit; font-weight: 700; padding: 3px 8px; border: 1px solid var(--th-feldrand, #cfd8e3); border-radius: 5px; }
.inv-kopf-zuklappen { float: right; }
/* ab 3.99.176 (Rene 06.11.2026 16:22): Reparaturliste – Höhe per Teiler (je Benutzer), Suchfelder neben „Reparatur erfassen“ */
.inv-rep-raster { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--rep-o, 170px) 8px auto; gap: 0; }
.inv-rep-raster > .inv-rep-liste { max-height: none; min-height: 0; margin-bottom: 0; }
.inv-rep-raster > .inv-griff { cursor: row-resize; }
.inv-rep-raster > .inv-griff::after { left: 40%; right: 40%; top: 3px; bottom: 3px; border-left: 0; border-top: 2px dotted #c3cfdc; }
.inv-rep-raster > .inv-rep-detail { min-width: 0; }
.inv-rep-liste .liste-kopf > .mf-knopf:first-child { margin-right: 6px; }

/* ab 3.99.191: Auswahlliste klappt nach oben auf, wenn unten im sichtbaren Bereich kein Platz ist (mrr.js) */
.aw-feld > .aw-liste.aw-oben { top: auto; bottom: calc(100% + 3px); }

/* ab 3.99.221 (Rene 08.11.2026 19:13): DMS-Ablage – Filter oben (Arten, Formate, Stand) und ihre Listen in der Schriftgröße der Maskenfelder (Titel) */
.dms-oben .aw input, .dms-oben .aw-eintrag, .dms-oben .aw-nichts, .dms-oben .dms-schalter { font-size: .78rem; }
.dms-oben .aw-eintrag { padding: 4px 8px; }

/* ab 3.99.221 (Rene 08.11.2026 19:21/19:30): DMS – Freigabeprozess in den Angaben (Aufbau nach Renes Entwurf) */
.dms-fg-kopf { display: flex; align-items: center; gap: 4px; }
.dms-fg-marke { margin-left: auto; font-size: .68rem; font-weight: 600; padding: 1px 8px; border-radius: 9px; background: #faeeda; color: #854f0b; border: 1px solid #f5c98a; }
.dms-fg-marke.freigegeben { background: #e1f5ee; color: #085041; border-color: #9fe1cb; }
.dms-fg-marke.abgelehnt { background: #fcebeb; color: #a32d2d; border-color: #f7c1c1; }
.dms-fg-marke.abgebrochen { background: #f1efe8; color: #5f5e5a; border-color: #d3d1c7; }
.dms-fg { display: flex; flex-direction: column; gap: 7px; padding: 4px 2px 10px; font-size: .78rem; }
.dms-fg-l { font-size: .72rem; color: #475569; margin-top: 2px; }
.dms-fg-box { border: 1px solid var(--th-feldrand, #dbe3ec); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; background: var(--th-feld, #fff); }
.dms-fg-akt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dms-fg-akt-t { display: flex; flex-direction: column; gap: 2px; }
.dms-fg-kreis { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600;
  background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; flex: none; }
.dms-fg-kreis.gross { width: 28px; height: 28px; background: #e1f5ee; color: #085041; border-color: #9fe1cb; }
.dms-fg-person { display: inline-flex; align-items: center; gap: 6px; }
.dms-fg-avatar { width: 20px; height: 20px; border-radius: 50%; background: #475569; color: #fff; font-size: .6rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dms-fg-weg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dms-fg-weg li { display: grid; grid-template-columns: 18px 26px minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 5px 6px; border-radius: 6px; position: relative; }
.dms-fg-spur { position: relative; display: flex; justify-content: center; height: 100%; }
.dms-fg-weg li:not(:last-child) .dms-fg-spur::after { content: ""; position: absolute; top: 18px; bottom: -10px; left: 50%; border-left: 2px solid #cbd5e1; transform: translateX(-1px); }
.dms-fg-weg li.freigegeben:not(:last-child) .dms-fg-spur::after { border-left-color: #15803d; }
.dms-fg-punkt { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #94a3b8; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; color: #fff; z-index: 1; margin-top: 2px; }
.dms-fg-weg li.freigegeben .dms-fg-punkt { background: #15803d; border-color: #15803d; }
.dms-fg-weg li.abgelehnt .dms-fg-punkt { background: #b91c1c; border-color: #b91c1c; }
.dms-fg-weg li.offen .dms-fg-punkt { border-color: #0f766e; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px #0f766e; }
.dms-fg-weg li.offen { background: #e1f5ee; }
.dms-fg-t { display: flex; flex-direction: column; gap: 1px; }
.dms-fg-weg li.wartet .dms-fg-t, .dms-fg-weg li.abgebrochen .dms-fg-t { color: #64748b; }
.dms-fg-zeit { font-size: .7rem; }
.dms-fg-zeit.freigegeben { color: #15803d; }
.dms-fg-zeit.abgelehnt { color: #b91c1c; }
.dms-fg-aktuell { font-size: .7rem; font-weight: 600; color: #0f766e; align-self: center; }
.dms-fg-sk { font-size: .72rem; font-style: italic; color: #475569; }
.dms-fg-kommentar { border: 1px solid var(--th-feldrand, #dbe3ec); border-radius: 6px; padding: 5px 8px; color: #334155; white-space: pre-wrap; background: var(--th-feld, #fff); }
.dms-fg-text { width: 100%; box-sizing: border-box; font: inherit; font-size: .78rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 6px; padding: 5px 8px; }
.dms-fg-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dms-fg-knoepfe .mf-knopf { justify-content: center; }
.dms-fg-senden { align-self: stretch; justify-content: center; }
.dms-fg-wahl { display: flex; flex-direction: column; gap: 4px; }
.dms-fg-zeile { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.dms-fg-nr { font-size: .75rem; color: #64748b; text-align: right; }

/* ab 3.99.221 (Rene 08.11.2026 19:40 „kein neues Fenster, optisch wie vorgeschlagen“): Freigabeprozess als Karte */
.dms-fg-karte { border: 1px solid var(--th-feldrand, #dbe3ec); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; background: var(--th-feld, #fff); }
.dms-fg-karte .dms-fg-kopf { display: flex; align-items: center; gap: 8px; cursor: default; }
.dms-fg-symbol { color: var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-titel { font-weight: 700; font-size: .95rem; color: #1f2937; }
.dms-fg-karte .dms-fg-marke { text-transform: none; }
.dms-fg-karte .dms-fg-l { font-size: .74rem; color: #334155; font-weight: 600; margin-top: 2px; }
.dms-fg-karte .dms-fg-l .text-zweitrangig { font-weight: 400; }
.dms-fg-karte .dms-fg-box { border-radius: 8px; }
.dms-fg-karte .dms-fg-kreis.gross { background: #e1f5ee; color: var(--th-dms-freigabe, #1d7a5a); border-color: #9fe1cb; }
.dms-fg-karte .dms-fg-weg li.freigegeben .dms-fg-punkt { background: var(--th-dms-freigabe, #1d7a5a); border-color: var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-karte .dms-fg-weg li.offen .dms-fg-punkt { border-color: var(--th-dms-freigabe, #1d7a5a); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-karte .dms-fg-weg li.freigegeben:not(:last-child) .dms-fg-spur::after { border-left-color: var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-karte .dms-fg-zeit.freigegeben, .dms-fg-karte .dms-fg-aktuell { color: var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 7px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 0 12px; }
.dms-fg-knopf.gruen { background: var(--th-dms-freigabe, #1d7a5a); color: #fff; border: 1px solid var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-knopf.gruen:hover:not(:disabled) { filter: brightness(1.08); }
.dms-fg-knopf.rand { background: var(--th-feld, #fff); color: #1f2937; border: 1px solid #cbd5e1; }
.dms-fg-knopf.rand:hover:not(:disabled) { background: #f1f5f9; }
.dms-fg-knopf:disabled { opacity: .5; cursor: default; }
.dms-fg-knopf.voll { width: 100%; }
/* ab 3.99.267 (Rene 12.11.2026 „kleiner vom grünen Button“) */
.dms-fg-knopf.klein { height: 26px; font-size: .76rem; padding: 0 10px; gap: 4px; }
.dms-fg-knopf.klein .mud-icon-root { font-size: 15px; }
.dms-fg-karte .dms-fg-kopf.zuklappbar { cursor: pointer; }
.dms-fg-karte .dms-fg-kopf.zuklappbar::after { content: "✕"; margin-left: auto; color: #64748b; font-size: .8rem; }
.dms-fg-karte .dms-fg-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr) 20px; gap: 6px; align-items: start; }
.dms-fg-zeile-f { display: flex; flex-direction: column; gap: 3px; }
.dms-fg-schritt { font: inherit; font-size: .76rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; padding: 2px 6px; }
.dms-fg-x { border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 2px; }
.dms-fg-x:hover { color: #b91c1c; }
.dms-fg-reihe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dms-fg-reihe .dms-fg-l { margin: 0; }
.dms-fg-wahlknopf { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dms-fg-datum { font: inherit; font-size: .76rem; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; padding: 1px 4px; }
.dms-fg-fehler { color: #b91c1c; font-size: .76rem; }
/* Senden: nummerierte Freigeber mit senkrechter Linie (Rene 19:40 „mit den 1, 2, 3 und der vertikalen Linie“) */
.dms-fg-karte .dms-fg-wahl { position: relative; gap: 8px; }
.dms-fg-karte .dms-fg-zeile { position: relative; }
.dms-fg-karte .dms-fg-zeile:not(:nth-last-child(2))::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: -10px; border-left: 2px solid #cbd5e1; }
.dms-fg-karte .dms-fg-zeile .dms-fg-kreis { background: #e1f5ee; color: var(--th-dms-freigabe, #1d7a5a); border-color: #9fe1cb; position: relative; z-index: 1; }
.dms-fg-karte .dms-fg-weg li { grid-template-columns: 20px 24px minmax(0, 1fr) auto; }
.dms-fg-karte .dms-fg-weg li:not(:last-child) .dms-fg-spur::after { top: 20px; bottom: -14px; border-left-width: 2px; }
.dms-fg-symbol { display: inline-flex; color: var(--th-dms-freigabe, #1d7a5a); }
.dms-fg-symbol .mud-icon-root { color: inherit; }
/* ab 3.99.223: offene DMS-Freigaben am Menü (grün) */
.mf-menu-zahl.dms-fg-zahl { background: var(--th-dms-freigabe, #1d7a5a); margin-left: 4px; }
/* ab 3.99.225: beim Ziehen zählt die ganze Ordnerzeile – Schrift/Symbole lösen kein „Verlassen“ aus (Zielmarkierung bleibt stehen) */
html.mrr-zieht .dms-baum-zeile > * { pointer-events: none; }

/* ---------- ab 3.99.227 (P0-08): Zwei-Faktor-Anmeldung (Einrichtung, Pflicht-Hinweis) ---------- */
.zf-einrichtung { font-size: .85rem; color: var(--mf-text); display: grid; gap: calc(8px * var(--s)); }
.zf-hinweis { color: var(--mf-text-2); }
.zf-hinweis.zf-wichtig { color: #7a4b00; background: #fff8e6; border: 1px solid #e0b252; border-radius: calc(6px * var(--s)); padding: .5rem .7rem; }
.zf-schritte { margin: 0; padding-left: 1.3rem; }
.zf-schritte li { margin: .15rem 0; }
.zf-qr { display: flex; gap: calc(14px * var(--s)); align-items: center; flex-wrap: wrap; }
.zf-qr img { width: calc(200px * var(--s)); height: calc(200px * var(--s)); border: 1px solid var(--mf-feldrand); border-radius: calc(4px * var(--s)); background: #fff; }
.zf-schluessel-text { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; letter-spacing: .06em; word-break: break-all; user-select: all; }
.zf-klein { font-size: .74rem; color: var(--mf-text-2); margin-top: .2rem; }
.zf-code { display: flex; gap: calc(6px * var(--s)); align-items: center; flex-wrap: wrap; }
.zf-code-feld { font: inherit; font-size: 1.25rem; letter-spacing: .25em; text-align: center; width: calc(150px * var(--s)); padding: .3rem .4rem; border: 1px solid var(--mf-feldrand); border-radius: calc(4px * var(--s)); font-variant-numeric: tabular-nums; }
.zf-fehler { background: #fdecea; color: #8c1d18; border-radius: calc(4px * var(--s)); padding: .45rem .7rem; font-size: .82rem; }
.zf-ok { display: flex; align-items: center; gap: 6px; color: #1b6e3a; font-weight: 600; }
.zf-ok .mud-icon-root { font-size: 1.2rem; }
.zf-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: .25rem 1.5rem; padding: .5rem .8rem; background: var(--mf-formular); border-radius: calc(6px * var(--s)); }
.zf-codes code { font-size: 1rem; letter-spacing: .08em; user-select: all; }
.zf-knoepfe { display: flex; gap: calc(6px * var(--s)); flex-wrap: wrap; }
.zf-pflicht { max-width: 560px; }
.zf-benutzer { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .82rem; color: var(--mf-text-2); }

/* ab 3.99.160 (Norbert 07.11.2026): Ansprechpartner links, Kommunikation rechts (Unterliste.Seitenteil) */
.ul-geteilt { margin-top: 0; }
/* ab 3.99.384: linke Liste und rechter Teil überlappen nicht mehr – zu breite Listen scrollen in ihrem Rahmen */
.ul-geteilt > fieldset { min-width: 0; }
.ul-geteilt > fieldset > .ul-zeilen, .ul-geteilt > fieldset > .unterliste, .ul-geteilt > fieldset > div { min-width: 0; max-width: 100%; overflow-x: auto; }
.ul-geteilt .unterbereich-kopf { min-height: calc(26px * var(--s)); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unterzeile-raster.gewaehlt { background: #eef5ff; box-shadow: inset 3px 0 0 var(--mf-blau); border-radius: 3px; }
.ap-kom-zeile { cursor: pointer; }
.ap-kom-zeile input { cursor: pointer; }
.ap-kom-zeile:hover input { background: #eef5ff; }
.ap-kom-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ab 3.99.241: Magento 2 → Katalog → Kategorien (zwei Spalten, ziehen) */
.m2k { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.m2k-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1 1 auto; min-height: 0; padding-top: 8px; }
.m2k-seite { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.m2k-suche { border: 1px solid var(--th-feldrand, #94a3b8); border-radius: 4px; padding: 4px 8px; background: var(--th-feld, #fff); }
.m2k-baum { flex: 1 1 auto; min-height: 300px; max-height: calc(100vh - 290px); overflow: auto; border: 1px solid var(--th-rahmen, #d5dde6); border-radius: 4px; background: var(--th-feld, #fff); padding: 4px 0; }
.m2k-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 8px 2px 4px; cursor: pointer; user-select: none; white-space: nowrap; }
.m2k-zeile:hover { background: color-mix(in srgb, var(--th-feldrand, #97ada7), transparent 80%); }
.m2k-zeile.gewaehlt { background: color-mix(in srgb, var(--mf-akzent, #e48a1e), transparent 80%); }
.m2k-zeile.ueber { outline: 2px dashed var(--mf-akzent, #e48a1e); outline-offset: -2px; }
.m2k-zeile.inaktiv .m2k-name { color: #94a3b8; font-style: italic; }
.m2k-auf { width: 14px; text-align: center; color: #64748b; }
.m2k-name { overflow: hidden; text-overflow: ellipsis; }
.m2k-ok { color: #15803d; font-weight: 700; }
.m2k-zahl { margin-left: auto; font-size: .75rem; background: #e2e8f0; border-radius: 8px; padding: 0 6px; }
.m2k-id { font-size: .7rem; color: #94a3b8; margin-left: 4px; }
.m2k-zahl + .m2k-id { margin-left: 4px; }
.m2k-zeile > .m2k-id:first-of-type { margin-left: auto; }
@media (max-width: 900px) { .m2k-spalten { grid-template-columns: 1fr; } }
.m2k-lauf { font-weight: 600; color: var(--mf-akzent, #e48a1e); font-size: .85rem; }
/* ab 3.99.243 (Rene 10.11.2026 22:31): auf der gewählten (dunklen) Zeile Schilder weiß, sonst unsichtbar */
table.ft tr.sz.aktiv:not(.mehrfach) .sh-sicht, table.ft tr.sz.aktiv:not(.mehrfach) .sh-shopchip { --sf: #fff; color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }
table.ft tr.sz.aktiv:not(.mehrfach) .sh-sicht i { background: #fff; }

/* ======================================================================================================
   ab 3.99.243 (Rene 10.11.2026 22:40): Farbschema „Inntec ONE (V4)“ nach dem Designhandbuch V4 (Attribut-Set-Demo):
   klassisches, kompaktes ERP-Interface – heller blaugrauer Hintergrund #e8eef4, weiße Arbeitsflächen, dünne kühle Rahmen,
   dunkle blaugraue Schrift, zurückhaltende türkise Akzente (#08786f). Kopfleiste und Menü bleiben dunkel (wie „Hell“).
   Am <html> stehen thema-petrol + thema-hell + thema-inntec – alles von „Hell“ gilt, hier nur die Abweichungen.
   Werte = ThemaFarben.Inntec.
   ====================================================================================================== */
html.thema-petrol.thema-hell.thema-inntec {
    --th-hintergrund: #e8eef4; --th-fenster: #ffffff; --th-formular: #ffffff; --th-rahmen: #c3cfdb; --th-feld: #ffffff;
    --th-formular-flaeche: #e8eef4; --th-rahmen-flaeche: #ffffff; --th-rahmen-titel: #0a8179;
    --th-feldrand: #bdcbd8; --th-feld-gesperrt: #f4f6f8; --th-beschriftung: #4d6075; --th-akzent: #08786f; --th-akzent-dunkel: #06665f;
    --th-auswahl: #e7f5f2; --th-leiste: #14202e; --th-menue-text: #cbd5e1; --th-fenstertitel: #fbfcfd; --th-tabellenkopf: #f1f5f8; --th-liste: #ffffff;
    --th-liste-zebra: #f9fbfd; --th-liste-linie: #e5ebf0; --th-liste-text: #263a4c; --th-liste-hover: #f1f7f7; --th-tabellenkopf-text: #41586a;
    --io-text: #263a4c; --io-label: #4d6075; --io-muted: #5c6d80; --io-nav: #dfe6ee; --io-nav-tab: #d6e0e9; --io-tab: #e8edf3; --io-tab-rand: #c9d4df;
    --mf-akzent: #0d8a7f;
    --mud-palette-text-primary: #263a4c; --mud-palette-text-secondary: #5c6d80;
}
html.thema-inntec body { background: var(--th-hintergrund); color: var(--io-text); font-family: "Segoe UI", Arial, sans-serif; }
/* Kopfleiste und Menü bleiben dunkel wie bei „Hell“ (Rene 10.11.2026 23:17: „links und oben lassen wir so – nur der innere Teil“) */
/* Fenster: weiße Fläche, kühle Rahmen, kleiner Schatten, Radius 7px */
html.thema-inntec .fenster { border-color: #c3cfdb; border-radius: 7px; box-shadow: 0 1px 3px rgba(46,63,76,.075), 0 6px 18px rgba(46,63,76,.06); }
html.thema-inntec .fenster.aktiv { border-color: #b7c6d4; box-shadow: 0 1px 3px rgba(46,63,76,.09), 0 10px 26px rgba(46,63,76,.12); }
html.thema-inntec .fenster-titel { background: #fbfcfd; color: #4f8181; border-bottom: 1px solid #dbe4ee; }
html.thema-inntec .fenster.aktiv .fenster-titel { background: #ffffff; color: #086e68; border-bottom: 2px solid #087c73; box-shadow: none; }
html.thema-inntec .fenster.aktiv .fenster-titel :is(button, .mud-icon-root) { color: #086e68; }
html.thema-inntec .formular-leiste { background: #fbfcfd; border-bottom: 1px solid #c3cfdb; }
html.thema-inntec .ansicht-formular { background: #e8eef4; border-color: #c3cfdb; border-radius: 7px; }
html.thema-inntec.farbverlauf .fenster .ansicht-formular { background: #e8eef4 !important; }
html.thema-inntec .ansicht-liste { border-color: #c3cfdb; border-radius: 7px; }
/* Rahmen (Karten) und Beschriftungen */
html.thema-inntec .rahmen { background: #ffffff; border: 1px solid #c3cfdb; border-radius: 7px; box-shadow: 0 1px 3px rgba(46,63,76,.075); }
html.thema-inntec.farbverlauf .fenster .ansicht-formular .rahmen { background: #ffffff; }
html.thema-inntec .rahmen > legend { color: #0a8179; font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
html.thema-inntec .feld > label, html.thema-inntec label { color: #4d6075; }
html.thema-inntec :is(h1, h2) { color: #263e4d; } html.thema-inntec h3 { color: #45586b; }
/* Eingabefelder: weiß, Rand #bdcbd8, Radius 4px, Fokus türkis */
html.thema-inntec .feld-eingabe .mud-input.mud-input-outlined { border-radius: 4px; }
html.thema-inntec .formular-inhalt :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea),
html.thema-inntec :is(.mf-eingabe, .gr-feld, .mf-auswahl) { border-color: #bdcbd8; border-radius: 4px; color: #2e4052; }
html.thema-inntec :is(input, select, textarea, .mf-eingabe):focus { border-color: #0d8a7f !important; box-shadow: 0 0 0 2px rgba(10,125,114,.12); outline: 0; }
html.thema-inntec .feld-eingabe .mud-input-outlined.mud-input-focused .mud-input-outlined-border { border-color: #0d8a7f !important; }
html.thema-inntec input[type=checkbox] { accent-color: #13857a; }
/* Knöpfe: Primär türkis, Sekundär weiß mit kühlem Rand – Radius 5px, 12px halbfett */
html.thema-inntec .mf-knopf { background: #08786f; border: 1px solid #08786f; border-radius: 5px; color: #fff; font-weight: 600; box-shadow: none; }
html.thema-inntec .mf-knopf:hover:not(:disabled) { background: #06665f; border-color: #06665f; }
html.thema-inntec .mf-knopf:disabled { background: #9bc5c0; border-color: #9bc5c0; }
html.thema-inntec .mf-knopf.hell { background: #ffffff; color: #385267; border-color: #c7d6e4; }
html.thema-inntec .mf-knopf.hell:hover:not(:disabled) { background: #ecf5f5; border-color: #9bbfb9; color: #0d6e69; }
html.thema-inntec .mf-knopf.hell:disabled { background: #f4f6f8; color: #8392a3; border-color: #d4dee8; }
/* Reiter in Masken: Kästchen-Reiter wie im Designhandbuch (aktiv weiß mit 3px türkiser Oberkante) */
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar { background: #f8fafb; border-bottom: 1px solid #c5d2df; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab { background: #e8edf3 !important; color: #4b5b70 !important; border: 1px solid #c9d4df !important; border-bottom: 0 !important; border-radius: 6px 6px 0 0 !important; font-weight: 550; box-shadow: none !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:hover { background: #f3f7f9 !important; color: #0c716e !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active { background: #ffffff !important; color: #08786f !important; border-top: 3px solid #08786f !important; font-weight: 700; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button { background: #e8edf3; color: #4b5b70; border: 1px solid #c9d4df; border-bottom: 0; border-radius: 6px 6px 0 0; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:hover { background: #f3f7f9; color: #0c716e; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) { background: #ffffff; color: #08786f; box-shadow: inset 0 3px 0 #08786f; font-weight: 700; }
/* Tabellen: Kopf #f1f5f8, feine Linien, gewählte Zeile hell-türkis mit Randstreifen */
html.thema-inntec table.ft th, html.thema-inntec .mud-table-head .mud-table-cell { background: #f1f5f8 !important; color: #41586a; }
html.thema-inntec table.ft td { border-bottom-color: #e5ebf0; }
html.thema-inntec table.ft tr.sz.aktiv td { background: #08786f !important; color: #fff; } /* ab 3.99.250: markierte Zeile überall Programmgrün */
html.thema-inntec table.ft tr.sz.aktiv td:first-child { box-shadow: inset 3px 0 0 #054f49; }
html.thema-inntec table.ft tr.sz.aktiv:not(.mehrfach) :is(.sh-sicht, .sh-shopchip) { --sf: revert; color: revert; background: revert; border-color: revert; }
html.thema-inntec .mud-table-row.aktiv > td, html.thema-inntec .mf-tabelle tr.aktiv td { background: #08786f !important; color: #fff !important; }
html.thema-inntec .mud-table-row.aktiv > td *, html.thema-inntec .mf-tabelle tr.aktiv td :is(span, a, small, div:not(.mud-input-control *)) { color: #fff !important; }
/* Kennzeichen (Chips) */
html.thema-inntec :is(.sh-chip, .sh-shopchip) { background: #eaf6f2; border-color: #badbd5; color: #08796f; border-radius: 4px; }
/* Dialoge */
html.thema-inntec .mud-dialog { border: 1px solid #cbd9e5; border-radius: 8px; box-shadow: 0 20px 65px rgba(20,47,65,.2); }
html.thema-inntec .mud-overlay-dark { background: rgba(25,44,58,.35) !important; }
html.thema-inntec .mud-dialog .mud-dialog-title { color: #263e4d; border-bottom: 1px solid #dbe4ee; }
/* Hinweisflächen wie „note“ im Designhandbuch */
html.thema-inntec .einst-hinweis { background: #eef8f5; border-left: 3px solid #0b8379; color: #3c6865; border-radius: 2px 5px 5px 2px; }
/* Miniatur in der Mandantenverwaltung */
.fs-mini.inntec { --fm-leiste: #14202e; --fm-menue: #14202e; --fm-menue-text: #cbd5e1; --fm-hg: #e8eef4; --fm-fenster: #ffffff; --fm-titel: #ffffff; --fm-titel-text: #086e68; --fm-akzent: #08786f;
  --fm-rahmen: #c3cfdb; --fm-feldrand: #bdcbd8; --fm-auswahl: #e7f5f2; --fm-kopf: #f1f5f8; --fm-formular: #e8eef4; --fm-rund: 3px; }
.fs-mini.inntec .fm-titel { box-shadow: inset 0 -1.5px 0 #087c73; }
.fs-mini.inntec .fm-form { background: #ffffff; border: 1px solid #c3cfdb; }
.fs-mini.inntec.verlauf .fm-form { background: #ffffff; }
/* ab 3.99.245 (Rene 10.11.2026 23:40): Suche im Fenster „Farben anpassen“ */
.thema-editor-suche { display: flex; align-items: center; gap: 6px; margin: 8px 12px 0; padding: 0 8px; border: 1px solid #c9d4d2; border-radius: 7px; background: #fff; }
.thema-editor-suche .mud-icon-root { color: #6b7a7e; }
.thema-editor-suche input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 6px 0; font: inherit; font-size: .78rem; color: #1c2b31; background: transparent; cursor: text !important; }
.thema-editor-suche button { all: unset; cursor: pointer !important; color: #6b7a7e; padding: 0 3px; }
.thema-editor-suche:focus-within { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.18); }
/* ab 3.99.246: Reiter oben verschieben */
.mf-reiter .reiter[draggable=true] { cursor: grab; }
.mf-reiter .reiter.zieht { opacity: .45; }
.mf-reiter .reiter.ziel { box-shadow: inset 3px 0 0 var(--mf-akzent, #7fe0d0); }
/* ab 3.99.247: Knopf „Nur aktive“ in der Shop-Artikel-Leiste */
.sh-nuraktiv { white-space: nowrap; }
/* ab 3.99.237: Feldsuche (Strg+F2) */
.feldsuche-marke { display: none; }
.feld-gefunden { outline: 2px solid var(--mud-palette-warning); outline-offset: 2px; border-radius: 4px; animation: feld-gefunden 2.6s ease-out; }
@keyframes feld-gefunden { 0% { background-color: rgba(255, 193, 7, .45); } 100% { background-color: transparent; } }
.feldsuche-titel { display: inline-flex; align-items: center; gap: 8px; }
.feldsuche-eingabe { width: 100%; font: inherit; font-size: 1.05em; padding: 6px 10px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; background: var(--mud-palette-surface); color: inherit; }
.feldsuche-eingabe:focus { outline: 2px solid var(--mud-palette-primary); outline-offset: -1px; }
.feldsuche-liste { margin-top: 8px; max-height: 55vh; overflow: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; }
.feldsuche-liste tbody tr { cursor: pointer; }
.feldsuche-liste tbody tr.aktiv td { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.feldsuche-liste tbody tr.aktiv td.text-zweitrangig { color: var(--mud-palette-primary-text); opacity: .85; }
.feldsuche-fuss { margin-top: 6px; }

/* ab 3.99.248: Rahmen-Überschriften innerhalb des Rahmens, klein und gesperrt (alle Farbschemas);
   Feldnamen normal statt halbfett (Zeile .feld > label oben). Farbe der Überschrift bleibt je Schema. */
html .rahmen > legend, html.thema-inntec .rahmen > legend {
    float: left; width: 100%; padding: 0; margin: 0 0 calc(4px * var(--s));
    font-size: .56rem !important; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
}
html .rahmen > legend ~ * { clear: both; }
html .rahmen { padding-top: calc(5px * var(--s)) !important; }
.portal-optik .rahmen > legend { font-size: .74rem !important; }

/* ab 3.99.248: Kontrollkästchen im ganzen Programm dünner – 1px-Rand statt des dicken Material-Symbols.
   Farbe bleibt wie bisher (--checkbox-color bzw. Schriftfarbe), angehakt = gefüllt mit weißem Haken. */
.mud-checkbox .mud-button-root > svg.mud-icon-root {
    width: calc(14px * var(--s, 1)) !important; height: calc(14px * var(--s, 1)) !important; margin: calc(2px * var(--s, 1));
    box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--checkbox-color, currentColor) 75%, transparent);
    border-radius: 3px; background: #fff;
}
.mud-checkbox .mud-button-root > svg.mud-icon-root path { display: none; }
.mud-checkbox .mud-checkbox-true > svg.mud-icon-root {
    border-color: var(--checkbox-color, currentColor);
    background: var(--checkbox-color, currentColor) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.mud-checkbox .mud-checkbox-null > svg.mud-icon-root {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23778899' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.mud-checkbox.mud-disabled .mud-button-root > svg.mud-icon-root, .mud-checkbox .mud-disabled > svg.mud-icon-root { opacity: .5; }

/* ab 3.99.249: leerer Rahmen ausgegraut (Rahmen.LeerAusgrauen, z. B. Version im Titelarchiv) – Darüberfahren/Hineinklicken = normal */
.rahmen.leer-grau { border-style: dashed !important; transition: opacity .15s; }
.rahmen.leer-grau:not(:hover):not(:focus-within) { opacity: .6; }

/* ab 3.99.250 (Rene): alle Suchfenster mit türkisem Kopf in der Programmfarbe statt Blau – Suchen (F2), Titelabruf, Auswahl,
   Feld suchen (Strg+F2), Adresse wählen. Die Lupe bleibt; „Adresse wählen“ bekommt dieselbe Lupe. */
.mud-dialog:is(.suche-dialog, .mehrfach-dialog, .feldsuche-dialog, .adresswahl-dialog, .dsf-dialog, .spalten-dialog) .mud-dialog-title,
html.thema-inntec .mud-dialog:is(.suche-dialog, .mehrfach-dialog, .feldsuche-dialog, .adresswahl-dialog, .dsf-dialog, .spalten-dialog) .mud-dialog-title {
    background: var(--th-akzent, #08786f); color: #fff; border-bottom: 0; padding: 12px 20px; display: flex; align-items: center; gap: 10px;
}
.mud-dialog:is(.feldsuche-dialog, .adresswahl-dialog) { border-radius: 10px; overflow: hidden; }
.mud-dialog:is(.suche-dialog, .mehrfach-dialog, .feldsuche-dialog, .adresswahl-dialog, .dsf-dialog, .spalten-dialog) .mud-dialog-title :is(.mud-typography, .feldsuche-titel, .mud-icon-root) { color: #fff; }
.mud-dialog:is(.suche-dialog, .mehrfach-dialog, .feldsuche-dialog, .adresswahl-dialog, .dsf-dialog, .spalten-dialog) .mud-dialog-title .mud-typography { font-weight: 600; font-size: 1.1rem; }
.mud-dialog:is(.feldsuche-dialog, .adresswahl-dialog, .dsf-dialog, .spalten-dialog) .mud-dialog-title .mud-button-close { color: #fff; top: 8px; }
.mud-dialog.adresswahl-dialog .mud-dialog-title::before {
    content: ""; width: 22px; height: 22px; flex: 0 0 22px; background: #fff; opacity: .9;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14'/></svg>") center / contain no-repeat;
}

/* ab 3.99.250 (Rene): Play-Knöpfe rund, Programmgrün mit weißem Symbol; in der markierten Zeile umgekehrt (weiß, grünes Symbol) */
.spielen-knopf, .mw-tabelle .spielen-knopf { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    width: calc(17px * var(--s, 1)); height: calc(17px * var(--s, 1)); line-height: 1; border-radius: 50%;
    background: var(--th-akzent, #08786f); color: #fff; font-size: calc(8px * var(--s, 1)); padding-left: 1px; vertical-align: middle; }
.spielen-knopf:hover { background: var(--th-akzent-dunkel, #06665f); }
.spielen-knopf.an { background: #c62828; padding-left: 0; }
tr.aktiv .spielen-knopf, .ul-tabelle tbody tr.aktiv td .spielen-knopf, .mf-tabelle tr.aktiv td .spielen-knopf { background: #fff; color: var(--th-akzent, #08786f) !important; }
tr.aktiv .spielen-knopf.an, .ul-tabelle tbody tr.aktiv td .spielen-knopf.an { background: #fff; color: #c62828 !important; }

/* ab 3.99.250 (Rene, Variante A): angehakte Kontrollkästchen in Programmgrün */
.mud-checkbox .mud-checkbox-true > svg.mud-icon-root { border-color: var(--th-akzent, #08786f) !important; background-color: var(--th-akzent, #08786f) !important; }

/* ab 3.99.251 (Rene 11.11.2026, Variante B): Reiter kräftiger – grau hinterlegt, aktiver Reiter Programmgrün mit weißer Schrift, grüne Linie darunter */
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar { border-bottom: 2px solid #08786f !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab { background: #d3dde7 !important; color: #2e4052 !important; border-color: #b9c7d5 !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:hover:not(.mud-tab-active) { background: #c7d3df !important; color: #08786f !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active { background: #08786f !important; color: #fff !important; border-color: #08786f !important; border-top: 0 !important; font-weight: 600; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active :is(.mud-icon-root, .mud-chip, .mud-badge, span) { color: #fff !important; }
html.thema-inntec :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab-slider { display: none !important; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) { border-bottom: 2px solid #08786f; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button { background: #d3dde7; color: #2e4052; border-color: #b9c7d5; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:hover:not(.an):not(.aktiv) { background: #c7d3df; color: #08786f; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) { background: #08786f; color: #fff; box-shadow: none; border-color: #08786f; font-weight: 600; }
html.thema-inntec :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) * { color: #fff; }

/* ab 3.99.251 (Rene 11.11.2026 14:05 „die Abstände der Felder stimmen nicht bei Urheber“): zwischen den Feldern steht die unsichtbare Marke der
   Feldsuche – dadurch griff „.feld + .feld“ nicht mehr. Gleicher Zeilenabstand wie überall. */
fieldset.rahmen > .feld ~ .feldsuche-marke + .feld,
fieldset.rahmen > .formular-raster ~ .feldsuche-marke + .feld,
fieldset.rahmen > .feld ~ .feldsuche-marke + .formular-raster { margin-top: calc(var(--feld-zeilenabstand) * var(--s)); }

/* ab 3.99.252 (Norbert 12.11.2026 „Feldhöhe einheitlich – für alle Felder im Projekt“): Eine Höhe für alle einzeiligen Eingabefelder
   (Text, Zahl, Datum, Auswahl, Suche) und die Knöpfe daneben – unabhängig von Symbolen im Feld (✕, Lupe, Pfeil, Kalender).
   Mehrzeilige Felder (textarea) wachsen weiter mit. Höhe zentral über --feld-hoehe. */
:root { --feld-hoehe: 22px; }
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) {
    height: calc(var(--feld-hoehe) * var(--s)) !important; min-height: calc(var(--feld-hoehe) * var(--s)) !important;
    box-sizing: border-box; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important;
}
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) input,
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-input-slot,
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-select-input {
    height: calc((var(--feld-hoehe) - 2px) * var(--s)) !important; box-sizing: border-box !important;
    padding-top: 0 !important; padding-bottom: 0 !important; line-height: calc((var(--feld-hoehe) - 2px) * var(--s)) !important;
}
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-input-adornment { height: 100%; max-height: 100%; align-self: center; }
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-icon-button {
    height: calc((var(--feld-hoehe) - 4px) * var(--s)) !important; width: calc((var(--feld-hoehe) - 4px) * var(--s)) !important; padding: 0 !important;
}
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-icon-button .mud-icon-root,
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) .mud-input-adornment .mud-icon-root { font-size: calc(15px * var(--s)) !important; }
.feld-eingabe .mud-input-control:not(:has(textarea)) .mud-input-control-input-container { min-height: 0 !important; }
/* Knöpfe neben dem Feld (z. B. + und Stift) und schlichte Felder gleich hoch */
.feld-eingabe.mit-knoepfen { align-items: center; }
.feld-knopf, .pfade-spalten .formular-raster.pfade .feld-knopf { height: calc(var(--feld-hoehe) * var(--s)) !important; min-width: calc(var(--feld-hoehe) * var(--s)); box-sizing: border-box; }
.feld-eingabe > input.einfach, .feld-eingabe > select.einfach,
.mv-karte .feld-eingabe input:not(.berechnet):not([type=checkbox]):not([type=radio]), .mv-karte .feld-eingabe select, .mv-karte select.mf-auswahl {
    height: calc(var(--feld-hoehe) * var(--s)); box-sizing: border-box; padding-top: 0; padding-bottom: 0;
}

/* ab 3.99.260 (Rene 12.11.2026 „Variante C“): viele Reiter – schmaler (voller Name als Tooltip), dann ‹ › und „n ▾“ */
.mf-reiter-rahmen { display: flex; align-items: center; gap: calc(4px * var(--s)); min-width: 0; flex: 1000 1 auto; overflow: hidden; }
.mf-reiter-rahmen .mf-reiter { flex: 1 1 auto; scroll-behavior: smooth; } /* ab 3.99.269: Leiste nimmt den Platz ein – Pfeil rechts und „n ▾“ stehen ganz rechts neben „Fenster“ */
.mf-reiter .reiter { flex: 1 1 auto; min-width: calc(125px * var(--s)); max-width: calc(220px * var(--s)); } /* ab 3.99.269 (Rene 12.11.2026 21:06): bei wenigen Reitern wieder breiter (bis 220 px) */
.mf-reiter .reiter .reiter-titel { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: calc(28px * var(--s)); }
.mf-reiter-pfeil, .mf-reiter-alle { flex: 0 0 auto; display: none; align-items: center; justify-content: center; height: calc(28px * var(--s)); border: 0; border-radius: calc(4px * var(--s));
    background: var(--th-akzent, #08786f); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.mf-reiter-pfeil { width: calc(24px * var(--s)); font-size: 1.05rem; line-height: 1; }
.mf-reiter-alle { display: inline-flex; padding: 0 calc(9px * var(--s)); white-space: nowrap; font-weight: 600; }
.mf-reiter-rahmen.ueberlauf .mf-reiter-pfeil { display: inline-flex; }
.mf-reiter-rahmen.am-anfang .mf-reiter-pfeil.links, .mf-reiter-rahmen.am-ende .mf-reiter-pfeil.rechts { opacity: .35; cursor: default; }
.mf-reiter-pfeil:hover, .mf-reiter-alle:hover { filter: brightness(1.12); }

/* ab 3.99.260 (Rene 12.11.2026 11:52 „diese Maske nicht beschränken“): Bausteinfläche nutzt die ganze Höhe */
.se-raster { height: max(560px, calc(100vh - 300px)); min-height: 560px; }
.se-felder { max-height: none; }
.se-flaeche, .se-code { height: 100%; }
.se-start { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #475569; }
.se-start select { font-size: .8rem; padding: 2px 6px; width: auto !important; max-width: 400px; min-width: 0; }
.se-enter { margin-left: auto; }
/* ab 3.99.262: DMS – Dokument per E-Mail senden (Auswahl Originaldatei / mit DMS-Nummer) */
.dms-stempel-liste .dms-mail-wahl { flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; font-size: .78rem; white-space: normal; max-width: 260px; }
.dms-mail-wahl small { font-size: .66rem; color: #6b7a8c; }
.dms-mail-fuss { display: block; border-top: 1px solid #eef2f7; margin-top: 4px; padding: 6px 8px 2px; font-size: .66rem; color: #6b7a8c; white-space: normal; max-width: 260px; }
.dms-mail-fuss a { display: inline; padding: 0; font-size: inherit; color: var(--mud-palette-primary); text-decoration: underline; }

/* ab 3.99.265 (Rene 12.11.2026 16:14): eigene Farben für die Masken – nur, wenn der Benutzer sie mit der Pipette/im Editor gesetzt hat
   (Klasse th-eigen-<farbe> am <html>, gesetzt von mrr.js). Gehen dann vor Schema und Farbverlauf. */
html.th-eigen-formular-flaeche .fenster .ansicht-formular,
html.th-eigen-formular-flaeche.farbverlauf .fenster .ansicht-formular { background: var(--th-formular-flaeche) !important; }
html.th-eigen-rahmen-flaeche .fenster .rahmen,
html.th-eigen-rahmen-flaeche.farbverlauf .fenster .ansicht-formular .rahmen { background: var(--th-rahmen-flaeche) !important; }
html.th-eigen-rahmen-titel .fenster .rahmen > legend { color: var(--th-rahmen-titel) !important; }
/* ab 3.99.266: Farbwähler neben dem Farbcode im Farbschema-Editor */
.thema-editor .thema-waehler { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 5px; border: 1px solid #c9d4d2; background: var(--farbe, #fff); cursor: pointer; flex: none; }
.thema-editor .thema-waehler .mud-icon-root { color: #fff; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); font-size: .95rem; }
.thema-editor .thema-waehler:hover { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, .2); }
.thema-editor .thema-waehler input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* ab 3.99.266 (Rene 12.11.2026 18:09 „Tabelle Titelfragmente und Tabelle Kopplung sind farblich anders“): alle Tabellen in den Masken
   (Anzeigelisten wie „Titelfragmente“, bearbeitbare Unterlisten wie „Kopplung“) mit denselben Tabellenfarben des Farbschemas –
   eine Einstellung gilt für alle. Nur Masken (.ansicht-formular); Zeitverwaltung/Zeitkonto u. a. eigene Seiten bleiben, wie sie sind. */
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen, .anzeigeliste:not(.leer)) {
    background: var(--th-liste); border: 1px solid var(--th-rahmen); border-radius: calc(4px * var(--s)); }
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen .ul-tabelle, .anzeigeliste .mf-tabelle) thead th {
    background: var(--th-tabellenkopf); color: var(--th-tabellenkopf-text); border-bottom: 1px solid var(--th-rahmen); font-weight: 600; }
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen .ul-tabelle, .anzeigeliste .mf-tabelle) tbody td {
    background: var(--th-liste); color: var(--th-liste-text); border-bottom: 1px solid var(--th-liste-linie); }
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen .ul-tabelle, .anzeigeliste .mf-tabelle) tbody tr:nth-child(even) td { background: var(--th-liste-zebra); }
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen .ul-tabelle, .anzeigeliste .mf-tabelle) tbody tr:hover td { background: var(--th-liste-hover); }
html.thema-petrol .fenster .ansicht-formular :is(.tabelle-rahmen .ul-tabelle, .anzeigeliste .mf-tabelle) tbody tr.aktiv td { background: var(--th-akzent); color: #fff; }
html.thema-petrol .fenster .ansicht-formular .anzeigeliste:not(.leer) .anzeigeliste-titel { background: var(--th-tabellenkopf); color: var(--th-tabellenkopf-text); border-bottom: 1px solid var(--th-liste-linie); }
/* ab 3.99.266: Farbeditor – Werkzeugleiste (Übertragen, Rückgängig, Vorher, Verwerfen) und Liste der übertragenen Farben */
.thema-editor .thema-editor-werkzeuge { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 12px 2px; }
.thema-editor .thema-editor-werkzeuge .mf-knopf { font-size: .74rem; }
.thema-editor .thema-pinsel-info { margin: 6px 12px 0; padding: 6px 8px; border: 1px solid #cfe3df; background: #f2faf8; border-radius: 6px; font-size: .74rem; display: flex; flex-direction: column; gap: 3px; }
.thema-editor .thema-pinsel-info i { display: inline-block; width: 14px; height: 12px; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; vertical-align: -2px; }
.thema-editor .thema-pinsel-info small { color: #5c6d80; }
html.thema-pipette .fenster:hover { cursor: crosshair; }

/* ab 3.99.267: Logs – Umschalter und Jahresprotokoll der Datenbank (t_x_Logs_JJJJ_audit) */
.logs-umschalter { display: flex; gap: 6px; padding: 10px 10px 0; }
.logs-art { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; padding: 4px 12px; border-radius: 14px; border: 1px solid #d3dce8; background: #fff; color: #334155; }
.logs-art.aktiv { background: var(--mud-palette-primary, #0f766e); border-color: var(--mud-palette-primary, #0f766e); color: #fff; }
.logs-ansicht:has(.logs-umschalter) { display: flex; flex-direction: column; }
.logs-ansicht:has(.logs-umschalter) > .logs { flex: 1 1 auto; }
.audit { display: flex; flex-direction: column; gap: 6px; padding: 10px; flex: 1 1 auto; min-height: 0; }
.audit .formular-leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.audit .formular-leiste .Auswahl, .audit .formular-leiste .aw { width: 200px; }
.audit-tabelle { flex: 1 1 auto; min-height: 200px; overflow: auto; background: #fff; border: 1px solid #d3dce8; border-radius: 8px; }
.audit-tabelle table { border-collapse: collapse; width: 100%; font-size: .76rem; }
.audit-tabelle th { position: sticky; top: 0; background: #f1f5f9; text-align: left; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #d3dce8; white-space: nowrap; }
.audit-tabelle td { padding: 2px 6px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.audit-tabelle td.nw { white-space: nowrap; }
.audit-tabelle td.wert { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-tabelle tr.audit-delete td { color: #b42318; }
.audit-tabelle tr.audit-add td { color: #166534; }

/* ab 3.99.269 (Rene 12.11.2026 21:25 „Hauptmenüpunkte weniger hoch, ein bisschen zusammenrücken“): 5 statt 7,5 px oben/unten, kein Außenabstand */
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe { padding-top: calc(5px * var(--s)); padding-bottom: calc(5px * var(--s)); margin-top: 0; }

/* ab 3.99.269 (Rene 12.11.2026 21:36 „Kasten mit der 5 ist höher, Schrift in den Reitern nicht mehr mittig“): alles 24 px hoch, Text mittig */
.mf-reiter .reiter .reiter-titel { line-height: calc(24px * var(--s)); }
.mf-reiter-pfeil, .mf-reiter-alle { height: calc(24px * var(--s)); font-size: .74rem; }
.mf-reiter-pfeil { font-size: .95rem; }

/* ab 3.99.269 (Rene 12.11.2026 22:09, Freigabe-Beispiel „Kopfleiste & Menü“): nur der Rahmen um die Masken – die Masken selbst bleiben unverändert */
/* Menü: alles normal, nur die Gruppe des aktiven Fensters fett, der aktive Eintrag grün; keine Pfeile auf/zu */
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe { font-weight: 400; }
html .mf-menu-gruppe.aktiv, html.thema-petrol .mf-menu-gruppe.aktiv { font-weight: 700; color: #fff; }
.mf-menu .mf-menu-pfeil { display: none !important; }
html .mf-menu-eintrag.gewaehlt, html.thema-petrol .mf-menu-eintrag.gewaehlt { background: var(--th-akzent, #08786f) !important; color: #fff !important; border-radius: 6px; }
/* Logo: Version näher am Logo */
.marke-logo .marke-unter { top: calc(var(--marke-h) * .74); }
/* Reiter unten an der Kopfleiste – sie hängen direkt am Fenster */
.mrr-appbar .mud-toolbar { align-items: stretch; padding-right: 0; }
.mrr-appbar .mud-toolbar > * { align-self: center; }
.mrr-appbar .mud-toolbar > .mf-reiter-rahmen { align-self: flex-end; align-items: flex-end; }
.mf-reiter-rahmen .mf-reiter { align-items: flex-end; }
.mf-reiter > button, .mf-reiter .reiter { height: calc(28px * var(--s)) !important; border-radius: calc(4px * var(--s)) calc(4px * var(--s)) 0 0 !important; }
.mf-reiter .reiter .reiter-titel { line-height: calc(28px * var(--s)); }
.mf-reiter .aktiv, .mf-reiter > button.aktiv, html.thema-petrol .mf-reiter .aktiv { background: var(--th-fenster, #ffffff) !important; color: var(--th-beschriftung, #1f2937) !important; box-shadow: inset 0 2px 0 var(--th-akzent, #08786f); }
.mf-reiter-pfeil, .mf-reiter-alle { margin-bottom: calc(2px * var(--s)); }
/* rechts: „Fenster“, Mandant und Benutzer als Blöcke über die ganze Höhe, ohne Symbol */
.mrr-appbar .mud-toolbar > .mud-menu, .mrr-appbar .mud-toolbar > .online-bereich { align-self: stretch; display: flex; }
.mrr-appbar .mud-menu .mud-menu-activator, .mrr-appbar .online-bereich .mud-menu, .mrr-appbar .online-bereich .mud-menu-activator { display: flex; align-self: stretch; height: 100%; }
.mrr-appbar .mf-kopfknopf { height: 100% !important; border-radius: 0 !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,.10) !important; padding: 0 calc(14px * var(--s)) !important; margin: 0 !important; }
.mrr-appbar .mf-kopfknopf.mandant:not(.gefaerbt) { background: rgba(255,255,255,.06); }
.mrr-appbar .mf-kopfknopf.mandant .mandant-nr { background: transparent; padding: 0 4px 0 0; }
/* ab 3.99.269 (Rene 12.11.2026 22:25 „grüne Markierung im Menü und Reiter oben kantig, keine Abrundungen“) */
html .mf-menu-eintrag.gewaehlt, html.thema-petrol .mf-menu-eintrag.gewaehlt { border-radius: 0 !important; box-shadow: calc(-12px * var(--s)) 0 0 var(--th-akzent, #08786f), calc(12px * var(--s)) 0 0 var(--th-akzent, #08786f); }
.mf-reiter > button, .mf-reiter .reiter { border-radius: 0 !important; }
.mf-reiter-pfeil, .mf-reiter-alle { border-radius: 0 !important; }
.marke-logo .marke-unter { top: calc(var(--marke-h) * .92); }
/* ab 3.99.269 (Rene 12.11.2026 22:30): Version rechts neben dem Logo; Suchfeld oben bündig mit dem Fenster */
.mrr-brand .marke-logo { position: relative; }
.mrr-brand .marke-logo .marke-unter { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; }
.mrr-brand .kopf-version { display: inline; margin: 0; font-size: .62rem; opacity: .6; }
.mrr-appbar.menue-offen .mrr-brand .marke-logo { margin-right: 60px; }
.mf-menu { padding-top: 0 !important; }
.mf-menu-kopf { padding-top: 2px; }
/* ab 3.99.270 (Rene 12.11.2026 22:58 „Abstand größer zwischen Reiter und Fenster, grüner Streifen etwas höher“) */
.mrr-appbar .mud-toolbar > .mf-reiter-rahmen { margin-bottom: calc(2.5px * var(--s)); } /* ab 3.99.271 (Rene 23:39): halber Abstand */
.mf-reiter .aktiv, .mf-reiter > button.aktiv, html.thema-petrol .mf-reiter .aktiv { box-shadow: inset 0 3px 0 var(--mud-palette-primary, #0f766e) !important; }
/* ab 3.99.270 (Rene 12.11.2026 23:00 „dieses Grün gleich wie bei Suchen“): Freigabe-Knöpfe in der Programmfarbe */
.dms-fg-knopf.gruen { background: var(--mud-palette-primary, #0f766e); border-color: var(--mud-palette-primary, #0f766e); }
.mf-reiter .reiter.aktiv { position: relative; }
.mf-reiter .reiter.aktiv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(3px * var(--s)); background: var(--mud-palette-primary, #0f766e); pointer-events: none; }

/* ab 3.99.270 (Rene 12.11.2026 23:08 „rechts ist noch ein Durcheinander“): DMS-Angaben aufgeräumt – einheitliche Klapp-Bereiche, keine Lücke, Aktionen als Leiste unten */
.dms-detail { padding-bottom: 0; }
.dms-detail-kopf-info { font-size: .7rem; color: #6b7785; }
.dms-detail .dms-abschnitt.dms-verlauf-kopf { margin: 0 -10px; padding: 7px 10px; border-top: 1px solid #e3e9f0; border-bottom: 0; font-size: .7rem; gap: 6px; }
.dms-detail .dms-abschnitt.dms-verlauf-kopf:hover { background: rgba(15, 118, 110, .05); }
.dms-detail .dms-abschnitt.dms-verlauf-kopf .dms-abschnitt-kurz { margin-left: auto; padding-left: 8px; }
.dms-ab-symbol { color: #6b7785; font-size: 1rem !important; }
.dms-unterabschnitt { font-size: .66rem; font-weight: 600; color: #6b7785; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.dms-zuord-liste { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
/* Freigabe als gleicher Bereich wie die anderen (keine Karte) */
.dms-detail .dms-fg-karte { border: 0 !important; border-top: 1px solid #e3e9f0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 -10px !important; padding: 7px 10px 8px !important; }
.dms-detail .dms-fg-karte .dms-fg-titel { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #46566b; }
/* Aktionen: feste Leiste unten, kantig */
.dms-aktionen { position: sticky; bottom: 0; z-index: 2; display: flex; margin: auto -10px 0; border-top: 1px solid #cbd5e1; background: var(--th-flaeche2, #f8fafc); }
.dms-aktion { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border: 0; border-right: 1px solid #e3e9f0; border-radius: 0; background: transparent; font: inherit; font-size: .66rem; color: #1f2937; cursor: pointer; position: relative; }
.dms-aktion:last-child { border-right: 0; }
.dms-aktion:hover { background: rgba(15, 118, 110, .08); }
.dms-aktion .mud-icon-root { font-size: 1.15rem; }
.dms-aktion span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dms-aktion.haupt { color: var(--mud-palette-primary, #0f766e); font-weight: 600; }
.dms-aktion.gefahr { color: #b42318; }
.dms-aktion .dms-version-datei { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dms-detail .dms-fg-knopf.klein { width: auto !important; align-self: flex-start; }

/* ab 3.99.271 (Rene 12.11.2026 23:27 „warum werden nicht alle Schriftfarben übernommen?“): eigene Farbe „Eingabefelder – Schrift“ für ALLE Felder
   der Masken – bisher ersetzte die Pipette nur die genau gleiche Ursprungsfarbe; Auswahllisten, Nachschlagefelder und gesperrte Felder haben andere */
:root { --th-feld-schrift: #1f2937; }
html.th-eigen-feld-schrift .fenster :is(input, textarea, select, .mud-input, .mud-input-slot, .mud-select-input, .aw, .aw-wert, .Auswahl, .feld-eingabe, .ul-tabelle td input, .ul-tabelle td .aw),
html.th-eigen-feld-schrift .fenster :is(.aw, .Auswahl, .feld-eingabe) :not(svg):not(path):not(.mud-icon-root) {
    color: var(--th-feld-schrift) !important; -webkit-text-fill-color: var(--th-feld-schrift) !important; }
/* Tabellen in den Masken (Verlagsstellungen, Titelfragmente …) nehmen „Schrift in Listen“ */
.fenster .ul-tabelle td, .fenster .anzeigeliste .mf-tabelle td { color: var(--th-liste-text, #1f2d40); }
/* ab 3.99.271 (Rene 12.11.2026 23:29/23:30 „bei den Reitern das Fett weg, außer beim aktiven – gilt für alle Reiter in diesem Bereich; ein ganz klein wenig niedriger“) */
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active),
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active) * { font-weight: 400 !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active { font-weight: 600 !important; }
:is(html, html.thema-petrol, html.thema-hell) :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab { padding-top: calc(4px * var(--s, 1)) !important; padding-bottom: calc(4px * var(--s, 1)) !important; }
html.th-eigen-feld-schrift .fenster .ul-tabelle td { color: var(--th-feld-schrift) !important; } /* ab 3.99.271: z. B. „Ursprung“ in den Verlagsstellungen */
.feld.fett input { font-weight: 600 !important; } /* ab 3.99.271 (Rene 12.11.2026 23:34 „weniger fett, aber nicht normal“): halbfett statt fett */
/* ab 3.99.271 (Rene 12.11.2026 23:35 „Suchfeld im Menü durchgehend kantig, ohne Rundungen“) */
.mf-menu-kopf .mf-menu-suche, .mf-menu-kopf .mf-menu-suche *, .mf-menu-kopf .mf-fav-knopf, .mf-menu-treffer, .mf-menu-treffer .mf-treffer { border-radius: 0 !important; }
/* ab 3.99.271 (Rene 12.11.2026 23:46 „F2 ist gut“): Masken-Werkzeugleiste flach und kantig, wenig Höhe –
   Knöpfe ohne Fläche, farbige Symbole (Neu grün, Öffnen/Rückgängig orange, Speichern blau, Löschen rot),
   „Speichern“ grün gefüllt, sobald es etwas zu speichern gibt; Fläche erst beim Überfahren. Gilt in den Fenstern (Einzelfenster am Handy unverändert). */
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) { gap: 0; padding: calc(1px * var(--s)) calc(4px * var(--s)) !important; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) :is(.mf-knopf, .mf-knopf.hell, .mf-knopf.klein, .se-knopf) {
    background: transparent; color: var(--mf-text, #1f2a37); border: 0; border-radius: 0; box-shadow: none;
    height: calc(26px * var(--s)); padding: 0 calc(10px * var(--s)); gap: calc(6px * var(--s)); font-size: .78rem; font-weight: 400;
  }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) :is(.mf-knopf, .se-knopf):hover:not(:disabled) { background: #fff; color: var(--mf-text, #1f2a37); }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-knopf:disabled { background: transparent; opacity: .42; }
  html .fenster .formular-leiste .mf-knopf .mud-icon-root { font-size: calc(17px * var(--s)); color: #5f6b78; }
  html .fenster .formular-leiste .mf-knopf[data-taste="Neu"] .mud-icon-root { color: var(--mud-palette-primary, #0F6E56); }
  html .fenster .formular-leiste .mf-knopf:is([data-oeffnen], [data-taste="Rueckgaengig"]) .mud-icon-root { color: #b25e09; }
  html .fenster .formular-leiste .mf-knopf[data-taste="Speichern"] .mud-icon-root { color: #185fa5; }
  html .fenster .formular-leiste .mf-knopf:is([data-taste="Loeschen"], .rot, .gefahr) .mud-icon-root { color: #b42318; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-knopf[data-taste="Speichern"]:not(:disabled),
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-knopf[data-taste="Speichern"]:not(:disabled):hover { background: var(--mud-palette-primary, #0F6E56); color: #fff; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-knopf[data-taste="Speichern"]:not(:disabled) .mud-icon-root { color: #fff; }
  /* aktiver Umschalter (z. B. „Liste“ an) bleibt erkennbar */
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-knopf.klein:not(.hell) { background: #fff; box-shadow: inset 0 -2px 0 var(--mud-palette-primary, #0F6E56); }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-navi { width: calc(28px * var(--s)); height: calc(26px * var(--s)); border-radius: 0; color: #5f6b78; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .mf-navi:hover:not(:disabled):not(.gesperrt) { background: #fff; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .leiste-trenner { height: calc(16px * var(--s)); margin: 0 calc(6px * var(--s)); background: #d0d5db; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .se-schalter .se-knopf { border: 0; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .se-schalter.an .se-knopf { color: var(--mud-palette-primary, #0F6E56); font-weight: 600; }
  html .fenster .formular-leiste:not(.portal-optik .formular-leiste) .se-schalter.an .se-knopf:hover { background: #fff; }
  html .fenster .formular-leiste .leiste-modus { border-radius: 0; padding-top: calc(1px * var(--s)); padding-bottom: calc(1px * var(--s)); }
/* ab 3.99.271 (Rene 13.11.2026 00:00 „oben den Hintergrund farblich ändern können – bei allen Masken“): Farbschema „Maske – Werkzeugleiste“ */
:root { --th-werkzeugleiste: #fafbfc; }
html.th-eigen-werkzeugleiste .fenster .formular-leiste:not(.portal-optik .formular-leiste),
html.th-eigen-werkzeugleiste.farbverlauf .fenster .ansicht-formular .formular-leiste { background: var(--th-werkzeugleiste) !important; }
/* ab 3.99.272 (Rene 13.11.2026 00:39): Menübreite am rechten Rand ziehen */
.mrr-drawer .mrr-menue-griff { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 5; }
.mrr-drawer .mrr-menue-griff:hover, .mrr-drawer .mrr-menue-griff.aktiv { background: color-mix(in srgb, var(--mud-palette-primary) 70%, transparent); }
body.mrr-zieht-menue, body.mrr-zieht-menue * { cursor: col-resize !important; user-select: none !important; }
body.mrr-zieht-menue .mud-drawer, body.mrr-zieht-menue .mud-main-content { transition: none !important; }
/* ab 3.99.272 (Rene 13.11.2026 00:34 „B – bei allen Tabellen außer bei der Zeiterfassung“): markierte Zeile hell hinterlegt
   (Farbschema „Gewählte Zeile“) mit grünem Balken links, Schrift bleibt dunkel – statt voller grüner Fläche mit weißer Schrift */
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr):not(:is(.az-ansicht, .az-schrift, .az-meine, .az-mobil, .az-inbox, .az-lohn, .fr-ze, .ze-raster) *) > td {
    background: var(--th-auswahl, #e3f2ee) !important; color: var(--th-liste-text, #1f2933) !important; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr):not(:is(.az-ansicht, .az-schrift, .az-meine, .az-mobil, .az-inbox, .az-lohn, .fr-ze, .ze-raster) *) > td:first-child {
    box-shadow: inset 3px 0 0 var(--mud-palette-primary, #0F6E56) !important; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr):not(:is(.az-ansicht, .az-schrift, .az-meine, .az-mobil, .az-inbox, .az-lohn, .fr-ze, .ze-raster) *) > td :is(span, a, small, b, strong, div:not(.mud-input-control *)):not(.spielen-knopf):not(.mud-chip *):not([class*="status"]):not([class*="badge"]) {
    color: inherit !important; -webkit-text-fill-color: currentColor; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr):not(:is(.az-ansicht, .az-schrift, .az-meine, .az-mobil, .az-inbox, .az-lohn, .fr-ze, .ze-raster) *) > td.negativ { color: #c62828 !important; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr):not(:is(.az-ansicht, .az-schrift, .az-meine, .az-mobil, .az-inbox, .az-lohn, .fr-ze, .ze-raster) *) .spielen-knopf:not(.an) {
    background: var(--mud-palette-primary, #0F6E56) !important; color: #fff !important; }
/* ab 3.99.272 (Rene 13.11.2026 00:37 „Reiterfarben tauschen können, mit Pipette“): eigene Farben je Benutzer (nur wenn gesetzt) */
:root { --th-reiter: #d3dde7; --th-reiter-schrift: #2e4052; --th-reiter-aktiv: #08786f; --th-reiter-aktiv-schrift: #ffffff; }
html.th-eigen-reiter :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active), html.th-eigen-reiter :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(.an):not(.aktiv) { background: var(--th-reiter) !important; }
html.th-eigen-reiter :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active):hover, html.th-eigen-reiter :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(.an):not(.aktiv):hover { background: color-mix(in srgb, var(--th-reiter), #000 6%) !important; }
html.th-eigen-reiter-schrift :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active), html.th-eigen-reiter-schrift :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(.mud-tab-active) :is(.mud-icon-root, span),
html.th-eigen-reiter-schrift :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(.an):not(.aktiv), html.th-eigen-reiter-schrift :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(.an):not(.aktiv) * { color: var(--th-reiter-schrift) !important; }
html.th-eigen-reiter-aktiv :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active, html.th-eigen-reiter-aktiv :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) { background: var(--th-reiter-aktiv) !important; border-color: var(--th-reiter-aktiv) !important; }
html.th-eigen-reiter-aktiv :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar, html.th-eigen-reiter-aktiv :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) { border-bottom-color: var(--th-reiter-aktiv) !important; }
html.th-eigen-reiter-aktiv-schrift :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active, html.th-eigen-reiter-aktiv-schrift :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active :is(.mud-icon-root, .mud-chip, .mud-badge, span),
html.th-eigen-reiter-aktiv-schrift :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv), html.th-eigen-reiter-aktiv-schrift :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv) * { color: var(--th-reiter-aktiv-schrift) !important; }
/* ab 3.99.272 (Rene 13.11.2026 00:44): kompakte Liste – Kopf einzeilig, Spaltenname im Filterfeld */
.filtertabelle.kompakt > .liste-kopf { flex-wrap: nowrap; min-height: 0; padding-top: calc(3px * var(--s)); padding-bottom: calc(3px * var(--s)); }
.filtertabelle.kompakt > .liste-kopf > .inv-liste-leiste { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.filtertabelle.kompakt .filterzeile .filterfeld input::placeholder { color: var(--th-tabellenkopf-text, #41586a); opacity: 1; font-weight: 600; }
.filtertabelle.kompakt .filterzeile .filterfeld { position: relative; }
.filtertabelle.kompakt .ft-kompakt-pfeil { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: .6rem; color: var(--mud-palette-primary); pointer-events: none; }
/* Status-Chips in der markierten Zeile behalten ihre Farben (vorher weiß auf weiß) */
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr) > td .inv-status { color: #0f766e !important; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr) > td .inv-status.wartung { color: #92400e !important; }
html body :is(tr.aktiv, tr.gewaehlt, .mud-table-row.aktiv):not(#_mrr) > td .inv-status.ausgeschieden { color: #64748b !important; }
/* ab 3.99.272 (Rene 13.11.2026 00:44): Inventar-Reiter – gewählter Reiter grün mit weißer Schrift wie in den Masken (ohne eigene Reiterfarben) */
html:not(.th-eigen-reiter-aktiv-schrift) .inv-reiter > button.aktiv, html:not(.th-eigen-reiter-aktiv-schrift) .inv-reiter > button.aktiv * { color: #fff !important; }
html:not(.th-eigen-reiter-aktiv) .inv-reiter > button.aktiv { background: var(--mud-palette-primary, #08786f) !important; border-color: var(--mud-palette-primary, #08786f) !important; }
/* ab 3.99.275 (Rene 13.11.2026 09:19 „die Liste unten möchte ich wieder ziehen können oder mit einem Klick minimieren“):
   Teiler wieder aktiv (Rücknahme von 3.99.272), Knopf in der Mitte klappt die Liste zu/auf – je Benutzer gemerkt */
.inv-griff-klapp { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 16px; padding: 0 10px; border: 1px solid var(--th-rahmen, #b9c6d2);
    background: #fff; color: var(--mud-palette-primary, #08786f); font-size: .7rem; line-height: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.inv-griff-klapp:hover { background: var(--mud-palette-primary, #08786f); color: #fff; }
.inv-raster.inv-unten > .inv-griff { min-height: 12px; }
.inv-raster.inv-unten > .inv-griff::after { display: none; }
.inv-raster:not(.inv-unten):not(.inv-oben) > .inv-griff > .inv-griff-klapp { display: none; }
/* ab 3.99.338: Liste oben – ausblenden wie bei „unten“ */
.inv-raster.inv-oben > .inv-griff { min-height: 12px; }
.inv-raster.inv-oben > .inv-griff::after { display: none; }
.inv-raster.inv-oben.liste-zu { grid-template-rows: 0 14px minmax(0, 1fr) !important; }
.inv-raster.inv-oben.liste-zu > .inv-liste { display: none; }
.inv-raster.inv-oben.liste-zu > .inv-griff { cursor: default; }
.inv-raster.inv-unten.liste-zu { grid-template-rows: minmax(0, 1fr) 14px 0 !important; }
.inv-raster.inv-unten.liste-zu > .inv-liste { display: none; }
.inv-raster.inv-unten.liste-zu > .inv-griff { cursor: default; }
/* ab 3.99.275 (Rene 13.11.2026 09:20 „Historie: Tabelle, einzeilig – wir haben viel Platz“) */
.inv-gruppe.g-historie.aktiv { display: flex !important; flex-direction: column; min-height: 0; }
.inv-gruppe.g-historie .inv-historie { gap: 0; max-height: none; flex: 1 1 auto; min-height: 120px; font-size: .8rem; background: #fff; border: 1px solid var(--th-rahmen, #d3dce5); }
.inv-historie .inv-ereignis, .inv-historie .inv-hist-kopf { display: grid; grid-template-columns: 125px 180px 120px minmax(0, 1fr); gap: 10px; padding: 2px 8px; border-bottom: 1px solid #edf1f4; align-items: center; }
.inv-historie .inv-ereignis > *, .inv-historie .inv-hist-kopf > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inv-historie .inv-ereignis > b { font-weight: 600; }
.inv-historie .inv-ereignis > small { font-size: inherit; color: var(--th-text2, #5f6b78); }
.inv-historie .inv-ereignis:nth-child(even) { background: #f7f9fb; }
.inv-historie .inv-ereignis:hover { background: var(--th-auswahl, #e3f2ee); }
.inv-historie .inv-hist-kopf { position: sticky; top: 0; z-index: 1; background: var(--th-tabellenkopf, #eef2f6); font-weight: 600; color: var(--th-tabellenkopf-text, #41586a); }
.inv-historie > .inv-hinweis { padding: 4px 8px; }
/* ab 3.99.272: Urheber-Porträt – Hinweis auf neue Forms-Einsendung */
.uf-neu-hinweis { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 10px; background: #fff7e0; border: 1px solid #f0c860; border-left: 4px solid #e0a000; color: #5c4300; font-size: .8rem; }
.uf-neu-hinweis > span { flex: 1; min-width: 0; }
.uf-neu-hinweis .mud-icon-root { color: #c08400; }
/* ab 3.99.272 (Rene 13.11.2026 01:10 „die beiden 3-spaltig, Zeilenabstand bei den Kästchen verringern“): Stilrichtungen/Besetzungen */
.zh-haken { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: calc(1px * var(--s)); }
.zh-eintrag { min-height: calc(17px * var(--s)); line-height: 1.15; }
.zh-eintrag input[type=checkbox] { width: 14px; height: 14px; }
@media (max-width: 1300px) { .zh-haken { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ab 3.99.272: leerer Rahmen eingeklappt (Rahmen.LeerZuklappen, z. B. Links im Urheber-Porträt) */
.rahmen.leer-zu { padding-bottom: 2px !important; min-height: 0 !important; }
.rahmen.leer-zu > :not(legend) { display: none !important; }
.rahmen.leer-zu > legend.rahmen-klapp { cursor: pointer; }
.rahmen.leer-zu > legend.rahmen-klapp:hover { text-decoration: underline; }
.rahmen-klapp-leer { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--th-text2, #8a95a1); }
/* ab 3.99.273 (Rene 13.11.2026 01:41 „V2 bitte“, 01:44 „nur bei den Reitern, die aktiv grün werden – Neu/Öffnen/Speichern … bleiben unberührt“):
   grüner Verlauf (hell → dunkel) nur beim aktiven Reiter in Masken und Fenstern – aus der Programmfarbe bzw. eigenen Reiterfarbe gemischt */
:root { --vl-basis: var(--mud-palette-primary, #08786f); }
html.th-eigen-reiter-aktiv { --vl-basis: var(--th-reiter-aktiv); }
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab.mud-tab-active:not(#_vl),
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .vl-reiter, .az-reiter) > button:is(.an, .aktiv):not(#_vl) {
    background: linear-gradient(color-mix(in srgb, var(--vl-basis) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis) 70%, #000)) !important; }
/* ab 3.99.274 (Rene 13.11.2026 01:59 „bei Inventar die unteren Reiter wie in der Tonträgerbelegung – Kopplung, Abrechnung …“):
   Reiter des Geräts (Standort, Kauf, Verleih …) im Stil der Masken-Reiter – grau, aktiv grün mit Verlauf und weißer Schrift, grüne Linie darunter */
html body .inv-bereich-reiter:not(#_vl) { gap: 2px !important; border-bottom: 2px solid var(--th-reiter-aktiv, #08786f) !important; padding: 0 !important; background: transparent !important; }
html body .inv-bereich-reiter > .klapp-knopf:not(#_vl) { border-radius: 6px 6px 0 0 !important; font-size: calc(12.16px * var(--s)) !important; background: var(--th-reiter, #d3dde7) !important; color: var(--th-reiter-schrift, #2e4052) !important;
    border: 1px solid #b9c7d5 !important; border-bottom: 0 !important; box-shadow: none !important; font-weight: 400 !important; padding: calc(4px * var(--s)) calc(12px * var(--s)) !important; margin: 0 !important; }
html body .inv-bereich-reiter > .klapp-knopf:not(#_vl) :is(.mud-icon-root, .reiter-sym) { color: inherit !important; }
html body .inv-bereich-reiter > .klapp-knopf:not(.offen):not(#_vl):hover { background: color-mix(in srgb, var(--th-reiter, #d3dde7), #000 6%) !important; color: var(--mud-palette-primary, #08786f) !important; }
html body .inv-bereich-reiter > .klapp-knopf.offen:not(#_vl) { color: var(--th-reiter-aktiv-schrift, #fff) !important; font-weight: 600 !important; border-color: var(--vl-basis, #08786f) !important;
    background: linear-gradient(color-mix(in srgb, var(--vl-basis) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis) 70%, #000)) !important; }
html body .inv-bereich-reiter > .klapp-knopf.offen:not(#_vl) * { color: var(--th-reiter-aktiv-schrift, #fff) !important; }
html body .inv-bereich-reiter > .klapp-knopf.offen:not(#_vl) .reiter-zahl { background: rgba(255,255,255,.25) !important; }
/* ab 3.99.274 (Rene 13.11.2026 02:00 „diese Reiter auch so angleichen wie in der Tonträgerbelegung“): Reiter aus Knöpfen
   (Shop-Artikel, Unterreiter, Inventar, Verleih, Datenbrücke, Dokumente …) wie die Masken-Reiter – nicht gewählt normal, gewählt halbfett */
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter):not(#_vl) { border-bottom: 2px solid var(--th-reiter-aktiv, #08786f) !important; gap: 2px !important; }
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(#_vl) { font-size: calc(12.16px * var(--s)) !important; font-weight: 400 !important; border-radius: 6px 6px 0 0 !important;
    padding: calc(4px * var(--s)) calc(10px * var(--s)) !important; }
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(:is(.an, .aktiv)):not(#_vl) { background: var(--th-reiter, #d3dde7) !important; color: var(--th-reiter-schrift, #2e4052) !important; border: 1px solid #b9c7d5 !important; border-bottom: 0 !important; }
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(:is(.an, .aktiv)):not(#_vl) * { color: inherit !important; }
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv):not(#_vl) { font-weight: 600 !important; color: var(--th-reiter-aktiv-schrift, #fff) !important; border: 1px solid var(--vl-basis, #08786f) !important; border-bottom: 0 !important; }
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:is(.an, .aktiv):not(#_vl) * { color: var(--th-reiter-aktiv-schrift, #fff) !important; }
.inv-griff-klapp .ig-auf { display: none; }
.inv-raster.liste-zu .inv-griff-klapp .ig-zu { display: none; }
.inv-raster.liste-zu .inv-griff-klapp .ig-auf { display: inline; }
/* ab 3.99.275 (Rene 13.11.2026 09:22): Inventar → Einstellungen zweispaltig, Speichern oben, Export-Spalten kompakter */
.inv-block.inv-einst { max-width: none; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.25fr); gap: 0 28px; align-items: start; overflow-x: hidden; }
.inv-einst > .inv-einst-leiste { grid-column: 1 / -1; position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 4px 0 6px; background: var(--th-formular-flaeche, #f5f8fb); border-bottom: 1px solid var(--th-rahmen, #d3dce5); margin-bottom: 4px; }
.inv-einst > :is(.inv-einst-links, .inv-einst-rechts) { min-width: 0; }
.inv-einst .inv-felder { max-width: none; }
.inv-einst-rechts table td { padding-top: 1px !important; padding-bottom: 1px !important; }
.inv-einst-rechts table :is(input, select, .auswahl) { height: calc(24px * var(--s)); }
@media (max-width: 1250px) { .inv-block.inv-einst { grid-template-columns: minmax(0, 1fr); } }
.inv-einst > .inv-einst-ganz { grid-column: 1 / -1; min-width: 0; overflow-x: auto; margin-top: 6px; }
.inv-einst-links .inv-zeile { flex-wrap: wrap; }
.inv-einst-links .inv-zeile > * { white-space: normal; min-width: 0; }
/* ab 3.99.275: Suchen-Fenster – Spaltenbreite ziehen */
.sd-tabelle thead th { position: relative; }
.sd-griff { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; }
.sd-griff:hover, .sd-tabelle.sd-zieht .sd-griff:active { background: color-mix(in srgb, var(--mud-palette-primary, #08786f) 45%, transparent); }
.sd-tabelle.sd-zieht, .sd-tabelle.sd-zieht * { cursor: col-resize !important; user-select: none; }
/* ab 3.99.275 (Rene 13.11.2026 09:31): Statistik – Verlauf mit Werten an den Balken */
.sh-stat-saeulen { display: grid; gap: 10px; align-items: end; height: 230px; margin-top: 22px; padding: 0 4px; border-bottom: 1px solid var(--th-rahmen, #c3cfdb);
    background: repeating-linear-gradient(to top, transparent 0, transparent 56px, #edf1f4 56px, #edf1f4 57px); }
.sh-stat-saeulen.eng { gap: 3px; }
.sh-stat-saeule { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.sh-stat-zahl { font-size: 11.5px; font-weight: 600; white-space: nowrap; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.sh-stat-saeulen.eng .sh-stat-zahl { font-size: 9.5px; }
.sh-stat-balken2 { width: 100%; min-height: 0; background: linear-gradient(color-mix(in srgb, var(--vl-basis, #08786f) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis, #08786f) 70%, #000)); }
.sh-stat-saeule:hover .sh-stat-balken2 { filter: brightness(1.1); }
.sh-stat-achsen2 { display: grid; gap: 10px; padding: 3px 4px 0; text-align: center; }
.sh-stat-saeulen.eng + .sh-stat-achsen2 { gap: 3px; }
.sh-stat-achsen2 > div { display: flex; flex-direction: column; min-width: 0; }
.sh-stat-jahr { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sh-stat-zweit { font-size: 10.5px; color: var(--th-text2, #5f6b78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-stat-fuss { display: flex; justify-content: space-between; margin-top: 6px; }
.sh-stat-fuss b { color: var(--mud-palette-text-primary, #1f2933); font-weight: 600; }
/* ab 3.99.275 (Rene 13.11.2026 09:34 „Höhe der Maskenreiter im Titelarchiv genau wie im Shop-Artikel – bei allen“): alle grün/grauen
   Maskenreiter (MudTabs in Masken und die Knopf-Reiter) gleich hoch und gleich gepolstert, auch der gewählte */
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar:not(#_vl),
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tabs-tabbar-inner:not(#_vl) { min-height: 0 !important; height: auto !important; }
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(#_vl),
html body :is(.sh-reiter, .sh-unterreiter, .inv-reiter, .dbr-reiter, .dok-reiter, .ses-reiter, .az-reiter) > button:not(#_vl),
html body .inv-bereich-reiter > .klapp-knopf:not(#_vl) {
    min-height: 0 !important; height: calc(26px * var(--s)) !important; padding: 0 calc(10px * var(--s)) !important; line-height: 1 !important;
    display: inline-flex !important; align-items: center !important; font-size: calc(12.16px * var(--s)) !important; box-sizing: border-box !important; }
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(#_vl) .mud-tab-panel-content,
html body :is(.formular-reiter, .mandant-reiter, .benutzer-reiter, .dms-einst-reiter) .mud-tab:not(#_vl) .reiter-kopf { line-height: 1 !important; }
/* ab 3.99.275 (Rene 13.11.2026 09:35 „statt dem Blau eines unserer Grüns“): Stern (eigenes Menü) eingeschaltet in Programmgrün mit Verlauf */
html body .mf-fav-knopf.an:not(#_vl) { background: linear-gradient(color-mix(in srgb, var(--vl-basis, #08786f) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis, #08786f) 70%, #000)) !important;
    border-color: var(--vl-basis, #08786f) !important; color: #fff !important; }
/* ab 3.99.275 (Rene 13.11.2026 09:40 „W2“): Fensterreiter oben – aktiver Reiter mit grünem Verlauf wie die Maskenreiter und weißer Schrift,
   inaktive dunkel mit heller Schrift (nicht mehr kursiv; minimierte nur etwas blasser) */
html body .mf-reiter .reiter:not(#_vl) { background: #2a3746 !important; color: #b4c2d0 !important; font-style: normal !important; }
html body .mf-reiter .reiter:not(.aktiv):not(#_vl):hover { background: #34465a !important; color: #fff !important; }
html body .mf-reiter .reiter.minimiert:not(#_vl) { opacity: .75; }
html body .mf-reiter .reiter.aktiv:not(#_vl) { background: linear-gradient(color-mix(in srgb, var(--vl-basis, #08786f) 55%, #4fe0cf), color-mix(in srgb, var(--vl-basis, #08786f) 70%, #000)) !important;
    color: #fff !important; font-weight: 600 !important; opacity: 1; }
html body .mf-reiter .reiter.aktiv:not(#_vl) * { color: #fff !important; }
html body .mf-reiter .reiter.aktiv:not(#_vl)::before { display: none !important; }
/* ab 3.99.276 (Rene 13.11.2026 11:00): kein Strich mehr über dem aktiven grünen Fensterreiter (alter inset-Schatten aus 3.99.2xx) */
html body .mf-reiter .reiter.aktiv:not(#_vl) { box-shadow: none !important; }

/* ab 3.99.276 (Rene 13.11.2026 11:28 „Menüs nicht fett, außer dem, der im Untermenü aktiviert ist“) */
html .mf-menu-eintrag.mf-menu-unter, html .mf-menu-eintrag.mf-menu-unter.mf-ebene-1, html .mf-menu-eintrag.mf-menu-unter.mf-ebene-2 { font-weight: 400 !important; }
html .mf-menu-eintrag.mf-menu-unter.mit-aktivem { font-weight: 600 !important; }
/* ab 3.99.276 (Rene 13.11.2026 12:05): feine Linie zwischen Gruppen im Menü */
.mf-menu-trenner { height: 1px; margin: calc(4px * var(--s)) calc(14px * var(--s)) calc(4px * var(--s)) calc(56px * var(--s)); background: rgba(255,255,255,.14); }
/* ab 3.99.276 (Rene 13.11.2026 12:12 „Historie viel kleiner – Schrift lassen, nur kleiner“) */
.inv-gruppe.g-historie .inv-historie, .inv-historie { font-size: .72rem; }
.inv-historie .inv-ereignis, .inv-historie .inv-hist-kopf { grid-template-columns: 112px 170px 90px minmax(0, 1fr); gap: 8px; padding: 1px 8px; line-height: 1.45; }
.inv-historie .inv-ereignis > b { font-weight: 600; }
/* ab 3.99.276: Freigabeprozess klappt wie die übrigen Bereiche (Pfeil statt ✕) */
.dms-fg-karte .dms-fg-kopf.klappbar { cursor: pointer; }
/* ab 3.99.276 (Rene 13.11.2026 12:24 „S2“): Stern im Favoriten-Knopf etwas kleiner (21 px) */
html .mf-fav-knopf .mud-icon-root { font-size: calc(21px * var(--s)) !important; width: 1em; height: 1em; }
/* ab 3.99.276 (Rene 13.11.2026 12:37 „Schrift zu groß – so wie im Hauptmenü“): Benutzermenü oben rechts in der Menüschrift */
.bm-menue .mud-menu-item, .bm-menue .mud-menu-item-text, .bm-menue .mrr-menubutton { font-size: .80rem !important; }
.bm-menue .mud-menu-item { min-height: 0 !important; padding-top: 3px !important; padding-bottom: 3px !important; }
.bm-menue .mud-menu-item .mud-icon-root { font-size: 18px !important; }
.bm-menue .bm-avatar.klein { width: 20px; height: 20px; font-size: .66rem; }
/* ab 3.99.277: Softwarelizenz – automatisches HTTPS */
.mod-https { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; margin-bottom: 10px; border: 1px solid var(--th-rahmen, #d3dce5); background: #fff; font-size: .85rem; }
.mod-https a { font-family: Consolas, "Cascadia Mono", monospace; }
.mod-https-fehler { flex-basis: 100%; color: #b42318; font-size: .8rem; }

/* ab 3.99.280: KI-Sprachnotiz (Baustein KiSprachnotiz – Aufnahme/Audiodatei → Text, Vorschau, Übernahme) */
.ki-notiz { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ki-notiz label.mf-knopf { cursor: pointer; }
.ki-notiz input[type=file] { display: none; }
.ki-aufnahme { display: inline-flex; align-items: center; gap: 6px; color: #a11d1d; font-weight: 600; }
.ki-punkt { width: 10px; height: 10px; border-radius: 50%; background: #d32f2f; animation: ki-blink 1s infinite; }
@keyframes ki-blink { 50% { opacity: .25; } }
.ki-arbeitet { display: inline-flex; align-items: center; gap: 8px; color: #36507a; }
.ki-fehler { color: #a11d1d; font-size: .85rem; }
.ki-vorschau { border: 1px solid #b9c8df; background: #f6f9fd; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.ki-vorschau-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.ki-vorschau-texte { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ki-vorschau-texte.eins { grid-template-columns: 1fr; }
.ki-vorschau-texte label { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: #50607a; }
.ki-vorschau-texte textarea { width: 100%; resize: vertical; border: 1px solid #c9d3e0; padding: 6px 8px; font: inherit; font-size: .9rem; color: #1d2b3f; background: #fff; }
.ki-vorschau-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ki-ziel { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.ki-ziel select { border: 1px solid #c9d3e0; padding: 3px 6px; font: inherit; }
@media (max-width: 700px) { .ki-vorschau-texte { grid-template-columns: 1fr; } }
.ki-hinweis { color: #12613f; font-size: .85rem; background: #e3f4ec; padding: 4px 8px; }

/* ab 3.99.283 (Rene 14.11.2026 00:14 „alle Fonts im Menü so groß wie die Felder in den Masken“): eine einheitliche Größe für alle Menüebenen = Schrift der Eingabefelder */
html .mf-menu-eintrag, html.thema-petrol .mf-menu-eintrag,
html .mf-menu-eintrag.start, html.thema-petrol .mf-menu-eintrag.start,
html .mf-menu-eintrag.mf-menu-untereintrag, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag,
html .mf-menu-eintrag.mf-menu-unter.mf-ebene-1, html .mf-menu-eintrag.mf-menu-unter.mf-ebene-2,
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe { font-size: .76rem; } /* = Reiter der Masken (.reiter-kopf, .76rem) – Rene 14.11.2026 00:24 */
/* ab 3.99.283 (Rene 14.11.2026, Nachtauftrag „Datensicherung“): Fenster Datensicherung aufgeräumt – Einstellungen im Fenster, lokale Sicherungen im Stil
   des Cloud Backups (Statuskarte, Häkchen-Chips, kompakte Tabelle mit aufklappbaren Pfaden), Abfrage „DMS mitsichern“, Rücksicherung */
.sich-einst-knopf.aktiv { box-shadow: inset 0 0 0 2px var(--th-akzent, #0f766e); }
fieldset.rahmen.sich-einst { margin: 0 0 12px; }
.sich-einst .pfade-spalten { grid-template-columns: minmax(0, 1000px); }
.sich-einst-fuss { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .78rem; }
.sich-einst-fuss > span { flex: 1 1 auto; }
.cb-bereich.sich-bereich { margin-top: 0; }
.sich-ohne-ordner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #f5c46b; background: #fffaf0; border-radius: 8px; font-size: .84rem; }
.sich-ohne-ordner > .mud-icon-root { color: #d97706; }
.cb-tage.sich-tabelle td { vertical-align: middle; }
.cb-tage.sich-tabelle th.rechts, .cb-tage.sich-tabelle td.rechts { text-align: right; white-space: nowrap; }
.cb-tage.sich-tabelle td.sich-tag { white-space: nowrap; font-weight: 600; color: #134e4a; }
.cb-tage.sich-tabelle .sich-auf-sp { width: 28px; padding-left: 2px; padding-right: 0; }
.sich-auf { border: 0; background: transparent; cursor: pointer; padding: 0; display: inline-flex; color: #64748b; border-radius: 4px; }
.sich-auf:hover { color: var(--th-akzent, #0f766e); background: #e6f0ee; }
.cb-tage.sich-tabelle td.sich-knoepfe-sp { width: 1%; white-space: nowrap; }
.cb-tage.sich-tabelle .sicherung-knoepfe { display: flex; gap: 4px; justify-content: flex-end; }
.cb-tage.sich-tabelle .cb-umfang { white-space: nowrap; }
.cb-tage.sich-tabelle td { white-space: nowrap; }
.cb-tage.sich-tabelle tr.sich-details td { white-space: normal; }
.cb-tage.sich-tabelle tr.sich-details td { background: #f8fbfa; font-size: .76rem; padding-top: 4px; padding-bottom: 6px; }
.cb-tage.sich-tabelle tr.sich-details:hover td { background: #f8fbfa; }
.sich-details .sich-det-lbl { display: inline-block; min-width: 76px; color: #64748b; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
.sich-details > td > div { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.sich-wartet { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #f5c46b; background: #fffaf0; border-radius: 8px; font-size: .82rem; }
.sich-wartet > span { flex: 1 1 auto; }
/* Abfrage vor der Sicherung: was gesichert wird */
.sich-umfang { display: grid; gap: 6px; }
.sich-umfang-kopf, .rs-kopf { font-size: .72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.sich-wahl, .rs-art { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border: 1px solid var(--th-rahmen, #b9cbc6); border-radius: 8px; cursor: pointer; }
.sich-wahl input, .rs-art input { margin-top: 3px; }
.sich-wahl > .mud-icon-root, .rs-art > .mud-icon-root { margin-top: 1px; color: var(--th-akzent, #0f766e); }
.sich-wahl small, .rs-art small { display: block; color: #64748b; font-size: .76rem; }
.sich-wahl.fest { cursor: default; opacity: .85; }
.sich-wahl.aus { cursor: not-allowed; opacity: .55; }
.sich-wahl.unter { margin-left: 26px; }
/* Rücksicherung: Sicherung wählen, Art, vorher sichern */
.rs-dialog { display: grid; gap: 6px; font-size: .85rem; }
.rs-liste { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.rs-zeile { display: grid; grid-template-columns: 20px 170px auto auto 1fr auto; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid #dbe5f0; border-radius: 8px; cursor: pointer; }
.rs-zeile .rs-groesse { text-align: right; font-variant-numeric: tabular-nums; }
.rs-zeile.aktiv, .rs-art.aktiv { border-color: var(--th-akzent, #0f766e); box-shadow: inset 0 0 0 1px var(--th-akzent, #0f766e); }
.rs-art.aktiv.gefahr { border-color: #c62828; box-shadow: inset 0 0 0 1px #c62828; }
.rs-art.aktiv.gefahr > .mud-icon-root { color: #c62828; }
.cb-tage.sich-tabelle tr.neu-gesichert td { background: var(--mf-gruen-bg); }
.cb-tage.sich-tabelle .cb-zelle { display: flex; gap: 6px; }

/* ab 3.99.283 (Nachtauftrag 14.11.2026): Zeichnen – Werkzeugknöpfe und Texteingabe direkt auf dem Bild */
.inv-zei-wz { min-width: 30px; justify-content: center; }
.inv-zei-texteingabe { position: absolute; z-index: 3; margin: 0; padding: 0 2px; min-width: 80px; border: 1px dashed #0f172a; border-radius: 0; background: rgba(255,255,255,.7);
    font-family: Arial, Helvetica, sans-serif; font-weight: 600; line-height: 1.15; resize: none; overflow: hidden; outline: none; white-space: pre; }
/* ab 3.99.283: Reiter, die eine Maske für den Datensatz ausblendet (StammdatenDefinition.ReiterSichtbarWenn, z. B. „Struktur“ beim Serviceeinsatz) */
html body .formular-reiter .mud-tab.mud-tab-panel-hidden:not(#_vl):not(#_vl2) { display: none !important; } /* stärker als die allgemeine Reiter-Regel (inline-flex !important) */

/* ab 3.99.283 (P11-48): KI „Aufgaben erkennen“ (KiAufgabenDialog) – Vorschläge abhaken, Zuständigen/Fälligkeit anpassen */
.ki-aufgaben-dialog { min-width: min(820px, 96vw); }
.ki-aufgaben-quelle { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; color: #50607a; border-left: 3px solid #b9c8df; padding: 4px 8px; margin-bottom: 8px; white-space: pre-line; }
.ki-aufgaben-hinweis { margin-bottom: 6px; }
.ki-aufgaben-liste { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ki-aufgaben-liste th { text-align: left; font-weight: 600; color: #50607a; padding: 2px 4px; border-bottom: 1px solid var(--th-rahmen, #c9d3e0); }
.ki-aufgaben-liste td { padding: 3px 4px; vertical-align: middle; }
.ki-aufgaben-liste td:first-child { width: 24px; }
.ki-aufgaben-liste tr.aus td:not(:first-child) { opacity: .45; }
.ki-aufgaben-liste input.ki-aufgaben-text, .ki-aufgaben-liste input[type=date] { width: 100%; height: 24px; border: 1px solid var(--th-feldrand, #c9d3e0); background: var(--th-feld, #fff); padding: 0 6px; font: inherit; }
.ki-aufgaben-liste input[type=date] { width: 130px; }
.ki-aufgaben-person { width: 190px; }

/* ab 3.99.286 (Rene 14.11.2026 10:46 „die Suche oben im Hauptmenü ganz einfach“): ohne Kasten – nur Lupe und Text auf dem Menügrund; beim Tippen eine feine Linie */
html .mf-menu-suche input, html.thema-petrol .mf-menu-suche input { border: 0; border-bottom: 1px solid transparent; background: transparent; height: 34px; font-size: .76rem; color: #e2e8f0; }
html .mf-menu-suche input:hover { background: rgba(255,255,255,.04); }
html .mf-menu-suche input:focus { background: rgba(255,255,255,.06); border-bottom-color: var(--mf-gruen, #2dd4bf); }
html .mf-menu-suche input::placeholder { color: #94a3b8; }
html .mf-menu-kopf .mf-fav-knopf { border: 0; border-right: 1px solid rgba(255,255,255,.14); background: transparent; }
html .mf-menu-kopf .mf-fav-knopf:hover { background: rgba(255,255,255,.06); }
/* ab 3.99.288: neues Modul in der Rechte-Matrix (bis zur Freigabe nur Administratoren) */
.rm-neu { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: .68rem; line-height: 16px; background: #fdf0d9; color: #8a5a00; border: 1px solid #f0d49b; vertical-align: 1px; }
.rm-neu-hinweis { font-size: .74rem; padding: 2px 8px; background: #fdf0d9; color: #8a5a00; border: 1px solid #f0d49b; }
/* ab 3.99.289 (Rene 14.11.2026 „die Icons in den Tabs sind nicht mittig, und auch die Bezeichnung nicht“): Titel, Symbole und × im Reiter genau auf der Mittellinie */
html .mf-reiter .reiter { display: inline-flex; align-items: center; }
html .mf-reiter .reiter button { line-height: 1; }
html .mf-reiter .reiter .reiter-symbol .mud-icon-root { display: block; }
html .mf-reiter .reiter .reiter-zu { line-height: 1; padding-bottom: 1px; }
html body .mf-reiter .reiter .reiter-titel { height: auto; line-height: 1.25; padding-top: 0; padding-bottom: 0; }
/* ab 3.99.290 (Rene 14.11.2026): Reiter-Symbole etwas größer, vertikal mittig, alle drei (Aktualisieren, eigenes Fenster, Schließen) im selben Abstand */
html body .mf-reiter .reiter .reiter-symbol, html body .mf-reiter .reiter .reiter-zu { display: inline-flex; align-items: center; justify-content: center; align-self: center; height: auto; padding: 0 calc(2px * var(--s)); margin: 0; font-size: 0; line-height: 0; }
html body .mf-reiter .reiter .reiter-symbol .mud-icon-root, html body .mf-reiter .reiter .reiter-zu .mud-icon-root { display: block; font-size: calc(13px * var(--s)); width: calc(13px * var(--s)); height: calc(13px * var(--s)); }
html body .mf-reiter .reiter .reiter-zu { padding-right: calc(8px * var(--s)); opacity: .7; }
html body .mf-reiter .reiter .reiter-titel { padding-right: calc(4px * var(--s)); }
/* ab 3.99.291 (Rene 14.11.2026, Variante A): Symbolleiste des Texteditors kleiner – 22 px je Knopf, Symbole 14 px, weniger wuchtig */
html body .rt-leiste { gap: 1px; padding: 2px 4px; }
html body .rt-leiste button { min-width: 22px; height: 22px; font-size: .74rem; padding: 0 3px; }
html body .rt-leiste button .mud-icon-root, html body .rt-leiste button svg { font-size: 14px !important; width: 14px; height: 14px; }
html body .rt-trenner { margin: 3px 3px; }

/* ab 3.99.292: Administration → KI-Protokoll */
.kip-inhalt { padding: 6px 10px 12px; overflow: auto; flex: 1; min-height: 0; }
.kip .wue-zahl { padding: 5px 12px; min-width: 96px; border-radius: 0; }
html body .kip .wue-zahl b { font-size: 1.1rem; color: var(--mf-gruen, #0f7a6c); }
html body .kip .wue-zahl.dringend b { color: #c0392b; }
.kip .wue-zahl span { font-size: .7rem; }
.kip-tabelle td { white-space: normal; }
.kip-monat { font-size: .82rem; min-width: 64px; text-align: center; }
.kip-tabelle td.kip-datensatz { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.kip-ok { color: var(--mf-gruen, #0f7a6c); display: inline-flex; align-items: center; gap: 3px; }
.kip-fehler { color: #c0392b; display: inline-flex; align-items: center; gap: 3px; }
.kip-auswertung { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.kip-auswertung > div { flex: 1 1 560px; min-width: 0; overflow-x: auto; }
.kip-auswertung .mf-tabelle th { white-space: nowrap; }
html body .fenster .kip .formular-leiste .mf-knopf.kip-an.kip-an.kip-an { color: var(--mf-gruen, #0f7a6c) !important; font-weight: 600; box-shadow: inset 0 -2px 0 var(--mf-gruen, #0f7a6c) !important; }
.kip-auswertung h4 { font-size: .76rem; font-weight: 600; color: #66768a; text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 6px; }
.kip-hinweis { font-size: .74rem; margin-top: 12px; display: flex; align-items: center; gap: 5px; }

/* ab 3.99.293: Foto bearbeiten – Schriftgröße für Texte */
.inv-zei-schrift { display: inline-flex; align-items: center; gap: 3px; color: #475569; font-size: .76rem; }
.inv-zei-schrift select { font-size: .78rem; height: 26px; padding: 0 4px; border: 1px solid var(--mf-feldrand, #cbd5e1); border-radius: 0; background: #fff; }
/* ab 3.99.293: Foto bearbeiten – Werkzeugleiste in einer Zeile (bricht nur auf schmalen Bildschirmen um) */
.inv-zei-gruppe { display: contents; }
.inv-zei-gruppe.blass > * { opacity: .4; pointer-events: none; }
.inv-zei-einzeilig { gap: 5px; }
.inv-zei-einzeilig .inv-zei-farbe { width: 20px; height: 20px; }
/* ab 3.99.293: Rahmen um eigene Reiter-Ansichten der Module (ohne eigenes Layout) */
.reiter-ansicht { display: contents; }

/* ab 3.99.294 (Rene 14.11.2026): Datensicherung mit Reitern – Übersicht (3D), Lokale Backups, Cloud Backups, Einstellungen */
.sich-versteckt { display: none; }
.sich-reiter { display: flex; gap: 3px; margin-top: 6px; border-bottom: 2px solid var(--mf-gruen, #0f7a6c); }
.sich-reiter-knopf { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; font-size: .76rem; color: #3a4655; background: #e3e8ed;
    border: 1px solid #c3ccd5; border-bottom: 0; border-radius: 2px 2px 0 0; cursor: pointer; }
.sich-reiter-knopf .mud-icon-root { font-size: 15px; width: 15px; height: 15px; }
.sich-reiter-knopf:hover { background: #eef2f5; }
.sich-reiter-knopf.aktiv { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.sicherung-ansicht .formular-inhalt { padding-top: 8px; }

.dsu { display: flex; flex-direction: column; gap: 10px; font-size: .78rem; color: #2b3644; }
.dsu-hub { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 420px) minmax(200px, 1fr); gap: 10px; align-items: center;
    background: linear-gradient(180deg, #fbfcfd 0%, #f1f5f7 100%); border: 1px solid #dde3e9; border-radius: 3px; padding: 10px; }
.dsu-spalte { display: flex; flex-direction: column; gap: 10px; }
.dsu-grafik { min-width: 0; }
.dsu-svg { width: 100%; height: auto; display: block; }
.dsu-svg-titel { font-size: 11px; font-weight: 600; fill: #2b3644; }
.dsu-svg-unter { font-size: 9.5px; fill: #6b7888; }
.dsu-fluss { animation: dsu-fluss 1.2s linear infinite; }
@keyframes dsu-fluss { to { stroke-dashoffset: -20; } }
.dsu-led { animation: dsu-led 1.6s ease-in-out infinite; }
@keyframes dsu-led { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dsu-fluss, .dsu-led { animation: none; } }

.dsu-station { display: flex; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 3px; text-align: left !important; width: 100%; padding: 8px 10px; background: #fff; border: 1px solid #dde3e9;
    border-left: 4px solid #aab5c0; border-radius: 2px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 2px rgba(20, 40, 60, .06); }
.dsu-station:hover { box-shadow: 0 2px 8px rgba(20, 40, 60, .12); }
.dsu-station.gruen { border-left-color: var(--mf-gruen, #0f7a6c); }
.dsu-station.gelb { border-left-color: #d99a1e; }
.dsu-station.rot { border-left-color: #c62828; }
.dsu-st-kopf { display: flex; align-items: center; justify-content: flex-start; gap: 6px; font-size: .76rem; }
.dsu-st-kopf .mud-icon-root { font-size: 17px; width: 17px; height: 17px; color: #5b6b80; }
.dsu-station.gruen .dsu-st-kopf .mud-icon-root { color: var(--mf-gruen, #0f7a6c); }
.dsu-chip { margin-left: auto; padding: 1px 7px; border-radius: 2px; font-size: .68rem; background: #e6eaee; color: #5b6b80; white-space: nowrap; }
.dsu-station.gruen .dsu-chip { background: #dff1ed; color: var(--mf-gruen, #0f7a6c); }
.dsu-station.gelb .dsu-chip { background: #fbefd5; color: #9a6a0c; }
.dsu-station.rot .dsu-chip { background: #fbe1e1; color: #a31f1f; }
.dsu-st-zahl { color: #6b7888; }
.dsu-st-zahl b { font-size: 1.25rem; color: #2b3644; margin-right: 2px; }
.dsu-st-zeile { display: flex; justify-content: space-between; gap: 8px; color: #6b7888; }
.dsu-st-zeile span:last-child { color: #2b3644; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dsu-kopf { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: #3a4655; margin-bottom: 6px; }
.dsu-kopf .mud-icon-root { font-size: 16px; width: 16px; height: 16px; color: var(--mf-gruen, #0f7a6c); }
.dsu-mehr { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-weight: 400; color: var(--mf-gruen, #0f7a6c); cursor: pointer; }
.dsu-mehr:hover { text-decoration: underline; }
.dsu-streifen, .dsu-liste { background: #fff; border: 1px solid #dde3e9; border-radius: 3px; padding: 8px 10px; }
.dsu-raster { display: grid; grid-template-columns: 70px repeat(16, minmax(18px, 1fr)); gap: 3px; align-items: center; }
.dsu-tagkopf { display: flex; flex-direction: column; align-items: center; font-size: .64rem; color: #8592a2; line-height: 1.15; }
.dsu-tagkopf b { font-size: .7rem; color: #3a4655; font-weight: 600; }
.dsu-tagkopf.heute b { color: var(--mf-gruen, #0f7a6c); }
.dsu-zeilenkopf { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: #3a4655; }
.dsu-zeilenkopf .mud-icon-root { font-size: 14px; width: 14px; height: 14px; color: #6b7888; }
.dsu-zelle { display: inline-block; height: 18px; border-radius: 2px; background: #eceff2; }
.dsu-zelle.gesichert { background: var(--mf-gruen, #0f7a6c); }
.dsu-zelle.nurdms { background: #8fd0c4; }
.dsu-zelle.fehlt { background: #e57373; }
.dsu-legende { display: flex; gap: 14px; margin-top: 6px; font-size: .7rem; color: #6b7888; }
.dsu-legende span { display: inline-flex; align-items: center; gap: 5px; }
.dsu-legende .dsu-zelle { width: 12px; height: 12px; }

.dsu-listen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.dsu-leer { color: #6b7888; padding: 6px 0; }
.dsu-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.dsu-tabelle th { font-size: .7rem; font-weight: 600; color: #6b7888; text-align: left; padding: 3px 6px; background: #f1f4f7; border-bottom: 1px solid #dde3e9; }
.dsu-tabelle td { padding: 4px 6px; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.dsu-tabelle .rechts { text-align: right; }
.dsu-tabelle tr.dsu-tagbeginn td { border-top: 1px solid #dde3e9; }
.dsu-tabelle td[rowspan] { vertical-align: top; }
.dsu-knoepfe { text-align: right; }
.dsu-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 24px; height: 24px; box-sizing: border-box; line-height: 1; vertical-align: middle; padding: 0 4px; margin-left: 2px;
    background: #fff; border: 1px solid #c9d2db; border-radius: 2px; color: #3a4655; cursor: pointer; font-size: .72rem; text-decoration: none; }
.dsu-knopf .mud-icon-root { font-size: 15px; width: 15px; height: 15px; }
.dsu-knopf:hover:not(:disabled) { border-color: var(--mf-gruen, #0f7a6c); color: var(--mf-gruen, #0f7a6c); }
.dsu-knopf:disabled { opacity: .45; cursor: default; }
.dsu-knopf.text { padding: 0 8px; }
@media (max-width: 1100px) {
    .dsu-hub { grid-template-columns: 1fr 1fr; }
    .dsu-grafik { grid-column: 1 / -1; grid-row: 1; max-width: 420px; justify-self: center; width: 100%; }
    .dsu-listen { grid-template-columns: 1fr; }
}

/* ab 3.99.295 (Rene 14.11.2026 „Vorschlag A“): Reiter Lokale Backups */
.dsl { display: flex; flex-direction: column; gap: 10px; font-size: .78rem; color: #2b3644; }
.dsl-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dsl-kachel { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid #dde3e9; border-left: 4px solid var(--mf-gruen, #0f7a6c); border-radius: 2px; padding: 8px 10px; min-width: 0; }
.dsl-kachel.gelb { border-left-color: #d99a1e; }
.dsl-kachel.grau { border-left-color: #aab5c0; }
.dsl-kachel small { font-size: .7rem; color: #6b7888; }
.dsl-kachel b { font-size: 1.05rem; font-weight: 600; color: #2b3644; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsl-kachel b.klein { font-size: .82rem; }
.dsl-kachel span { font-size: .7rem; color: #6b7888; }
.dsl-balken { display: flex; height: 6px; background: #eceff2; border-radius: 1px; overflow: hidden; margin-top: 2px; }
.dsl-balken i { display: block; height: 100%; }
.dsl-balken i.db { background: var(--mf-gruen, #0f7a6c); }
.dsl-balken i.dms { background: #8fd0c4; }
.dsl-plaetze { display: flex; gap: 3px; margin-top: 2px; }
.dsl-plaetze i { flex: 1; height: 6px; border-radius: 1px; background: #dde3e9; }
.dsl-plaetze i.voll { background: var(--mf-gruen, #0f7a6c); }
.dsl-leer { background: #fff; border: 1px solid #dde3e9; border-radius: 3px; padding: 14px; color: #6b7888; }
.dsl-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dde3e9; font-size: .78rem; }
.dsl-tabelle th { font-size: .7rem; font-weight: 600; color: #6b7888; text-align: left; padding: 4px 6px; background: #f1f4f7; border-bottom: 1px solid #dde3e9; }
.dsl-tabelle td { padding: 5px 6px; border-bottom: 1px solid #eef1f4; white-space: nowrap; vertical-align: middle; }
.dsl-tabelle .rechts { text-align: right; }
.dsl-tabelle tr.neu-gesichert td { background: #e8f6f2; }
.dsl-gr-sp { width: 180px; }
.dsl-gr-sp .dsl-balken { width: 150px; }
.dsl-wer { margin-left: 6px; color: #6b7888; font-size: .72rem; }
.dsl-knoepfe { text-align: right; width: 1%; }
.dsu-knopf.leer { visibility: hidden; display: inline-flex; }
.dsl-info { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: #6b7888; cursor: help; }
.dsl-info .mud-icon-root { font-size: 15px; width: 15px; height: 15px; }
@media (max-width: 1100px) { .dsl-kacheln { grid-template-columns: 1fr 1fr; } }

/* ab 3.99.296 (Rene 14.11.2026 „Vorschlag B“): Reiter Cloud Backups – Kacheln und Unterreiter */
.dsl-kachel.rot { border-left-color: #c62828; }
.cb-kacheln-b { margin: 8px 0 10px; font-size: .78rem; }
.cb-unterreiter { display: flex; align-items: center; gap: 3px; border-bottom: 2px solid var(--mf-gruen, #0f7a6c); margin-bottom: 8px; }
.cb-unterreiter > button { padding: 4px 12px; font-size: .76rem; color: #3a4655; background: #e3e8ed; border: 1px solid #c3ccd5; border-bottom: 0; border-radius: 2px 2px 0 0; cursor: pointer; }
.cb-unterreiter > button:hover { background: #eef2f5; }
.cb-unterreiter > button.aktiv { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.cb-mandantwahl { margin: 0 0 3px auto; font-size: .76rem; padding: 2px 6px; border: 1px solid #c3ccd5; border-radius: 2px; background: #fff; }

/* ab 3.99.297 (Rene 14.11.2026 „die Cloud-Seite ist mir zu viel grün – so wie die lokalen Backups“): im Reiter Cloud Backups ohne grünen Kasten,
   Kacheln, Tabellen und Schlüssel weiß mit grauem Rand wie unter „Lokale Backups“ */
.sicherung-ansicht .cb-bereich { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-top: 0 !important; gap: 8px; }
.sicherung-ansicht .dev-bereich .cb-bereich { padding: 8px 10px !important; }
.sicherung-ansicht .cb-bereich .cb-titel { font-size: .82rem; color: #3a4655; }
.sicherung-ansicht .cb-bereich .cb-titel .mud-icon-root { color: #6b7888; font-size: 18px; }
.sicherung-ansicht .cb-bereich .cb-kacheln > div { background: #fff; border: 1px solid #dde3e9; border-left: 4px solid #aab5c0; border-radius: 2px; }
.sicherung-ansicht .cb-bereich .cb-kacheln span { text-transform: none; letter-spacing: 0; font-size: .7rem; color: #6b7888; }
.sicherung-ansicht .cb-bereich .cb-kacheln b { font-size: .82rem; font-weight: 600; }
.sicherung-ansicht .cb-bereich .cb-schluessel { background: #fff; border: 1px solid #dde3e9; border-radius: 2px; }
.sicherung-ansicht .cb-bereich .cb-schluessel.offen { background: #fffbeb; border-color: #fcd34d; }
.sicherung-ansicht .cb-bereich .cb-letzte { background: transparent; padding: 0; border: 0; }
.sicherung-ansicht .cb-bereich table { background: #fff; border: 1px solid #dde3e9; border-collapse: collapse; font-size: .78rem; }
.sicherung-ansicht .cb-bereich table th { font-size: .7rem; font-weight: 600; color: #6b7888; text-transform: none; letter-spacing: 0; background: #f1f4f7; border-bottom: 1px solid #dde3e9; padding: 4px 6px; }
.sicherung-ansicht .cb-bereich table td { border-bottom: 1px solid #eef1f4; padding: 4px 6px; background: #fff; }
.sicherung-ansicht .cb-bereich .cb-lauf2, .sicherung-ansicht .cb-bereich .cb-lauf { border-color: #dde3e9; border-radius: 2px; }
.sicherung-ansicht .cb-bereich .cb-verlauf summary { font-size: .76rem; }
.dsu-fluss.schnell { animation-duration: .5s; } /* ab 3.99.297: Sicherung läuft */
/* ab 3.99.299: DMS-Vollsicherung fällig */
.cb-voll-hinweis { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 2px; font-size: .78rem; }
.cb-voll-hinweis .mud-icon-root { color: #b45309; font-size: 18px; }
.cb-voll-hinweis button { margin-left: auto; }
.cb-umfang.dsl-auto { background: #eef1f4; color: #5b6b80; margin-left: 6px; } /* ab 3.99.299 */
/* ab 3.99.300 (Norbert 15.11.2026): Reiter in eigenem Fenster – Symbol im Reiterkopf und schwebendes Fenster über der Maske */
.reiter-loesen { display: inline-flex; align-items: center; margin-left: 6px; color: #94a3b8; cursor: pointer; opacity: .55; border-radius: 3px; }
.reiter-loesen .mud-icon-root { font-size: 13px !important; width: 13px; height: 13px; }
.reiter-loesen:hover { opacity: 1; color: var(--mf-blau); background: rgba(47, 95, 174, .08); }
.mud-tab:hover .reiter-loesen, .mud-tab.mud-tab-active .reiter-loesen { opacity: 1; }
.reiter-fenster { position: fixed; z-index: 1050; width: min(900px, 80vw); height: min(560px, 70vh); min-width: 320px; min-height: 160px; resize: both; overflow: hidden;
    display: flex; flex-direction: column; background: var(--th-formular-flaeche, #f4f6f9); border: 1px solid #b9c6d6; border-radius: 8px; box-shadow: 0 14px 38px rgba(15, 23, 42, .28); }
.reiter-fenster-kopf { display: flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: move; user-select: none; background: #fff; border-bottom: 1px solid #d5dde8; font-size: .82rem; font-weight: 600; color: var(--mf-text); }
.reiter-fenster-kopf .reiter-sym.mud-icon-root { font-size: 16px; color: #64748b; }
.reiter-fenster-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reiter-fenster-kopf .reiter-loesen { opacity: 1; }
.reiter-fenster-kopf .reiter-loesen .mud-icon-root { font-size: 16px !important; width: 16px; height: 16px; }
.reiter-fenster-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 8px; }
/* ab 3.99.300 (Norbert 15.11.2026): Reiter im eigenen Browserfenster (/reiterfenster/…) */
.reiter-fenster-seiteninhalt { padding: 10px; }
.reiter-fenster-hinweis { font-size: .78rem; color: #64748b; margin-left: auto; margin-right: 8px; white-space: nowrap; }
/* ab 3.99.300 (Norbert 15.11.2026): Griff ⠿ vor jeder Zeile zum Verschieben in der Reihenfolge */
table.ft .ft-griff { display: inline-block; width: 14px; margin-right: 4px; cursor: grab; color: #94a3b8; user-select: none; text-align: center; }
table.ft tr:hover .ft-griff { color: var(--mf-text); }
table.ft .ft-griff:active { cursor: grabbing; }
table.ft tr.ft-verschiebt td { opacity: .45; }
table.ft tr.ft-verschiebe-ziel td { box-shadow: inset 0 2px 0 var(--mf-blau); }
/* ab 3.99.300 (Norbert 16.11.2026): Griff ⠿ vor Zeilen einer Unterliste (z. B. Positionen im Beleg) */
.unterzeile-raster .ul-griff { cursor: grab; color: #94a3b8; user-select: none; text-align: center; align-self: center; }
.unterzeile-raster:hover .ul-griff { color: var(--mf-text); }
.unterzeile-raster.ul-verschiebt { opacity: .45; }
.unterzeile-raster.ul-verschiebe-ziel { box-shadow: inset 0 2px 0 var(--mf-blau); }
/* ab 3.99.300 (Norbert 16.11.2026): Menü am Griff ⠿ (Kopieren, Einfügen, Löschen, Neuer Datensatz) */
.unterzeile-raster .ul-griff-feld { position: relative; align-self: center; text-align: center; }
.ul-menue-hintergrund { position: fixed; inset: 0; z-index: 1190; }
.ul-menue { position: absolute; left: 0; top: 100%; z-index: 1200; display: flex; flex-direction: column; min-width: 170px; padding: 4px 0;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ul-menue button { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; color: var(--mf-text); white-space: nowrap; }
.ul-menue button:hover:not(:disabled) { background: var(--mud-palette-action-default-hover); }
.ul-menue button:disabled { opacity: .45; cursor: default; }
/* ab 3.99.300 (Norbert 16.11.2026): Vorschlagsliste so breit wie ihr Inhalt (Feld.VorschlaegeAlle, z. B. Positionstyp) */
.vorschlaege-alle { min-width: 240px; }
.vorschlaege-alle .mud-list-item-text, .vorschlaege-alle .mud-typography { white-space: nowrap; }
/* ab 3.99.300 (Norbert 16.11.2026): Lupe im Editor – Textbaustein an der Schreibmarke einfügen */
.rt-baustein-wahl { position: absolute; left: 0; top: 100%; z-index: 1300; width: 360px; max-height: 320px; overflow: auto; display: flex; flex-direction: column;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 6px; }
.rt-baustein-wahl input { margin-bottom: 4px; padding: 4px 6px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; font: inherit; }
html body .rt-leiste .rt-baustein-wahl button { all: unset; box-sizing: border-box; display: block; text-align: left; border: 0; background: none; padding: 5px 6px; cursor: pointer; font: inherit; color: var(--mf-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.rt-baustein-wahl button span { color: var(--mud-palette-text-secondary); }
html body .rt-leiste .rt-baustein-wahl button:hover { background: var(--mud-palette-action-default-hover); }
.rt-baustein-leer { color: var(--mud-palette-text-secondary); padding: 6px; white-space: normal; }
/* ab 3.99.300 (Rene 15.11.2026): Handy-Simulation im Fenster des Handy-Knopfs – Finger statt Mauszeiger, keine Scrollleisten wie am Handy */
html.handy-sim, html.handy-sim * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='15' cy='15' r='12' fill='rgba(15,122,108,.28)' stroke='rgba(15,122,108,.75)' stroke-width='2'/%3E%3C/svg%3E") 15 15, pointer !important; }
html.handy-sim { scrollbar-width: none; }
html.handy-sim * { scrollbar-width: none; }
html.handy-sim ::-webkit-scrollbar { width: 0; height: 0; }
html.handy-sim input, html.handy-sim textarea, html.handy-sim select { font-size: max(16px, 1em); }
/* ab 3.99.300 (Rene 15.11.2026 „diese Schriften können kleiner sein“): Rücksicherung kompakt wie das Titelarchiv */
.rs-dialog { font-size: .78rem; gap: 5px; }
.rs-dialog .rs-kopf { font-size: .7rem; }
.rs-zeile { grid-template-columns: 16px 140px auto auto 1fr auto; gap: 6px; padding: 3px 8px; border-radius: 2px; }
.rs-zeile .rs-groesse { white-space: nowrap; }
.rs-zeile .rs-von { font-size: .72rem; }
.rs-dialog .cb-umfang { font-size: .68rem; padding: 0 6px; }
.rs-dialog .rs-art { padding: 5px 9px; border-radius: 2px; font-size: .78rem; }
.rs-dialog .rs-art small { font-size: .72rem; }
.rs-dialog .rs-art > .mud-icon-root { font-size: 18px; width: 18px; height: 18px; }
.rs-dialog .mf-knopf { font-size: .76rem; }
/* ab 3.99.301 (Rene 15.11.2026 „Uhrzeit näher an das Datum und nicht fett“) */
.dsu-tabelle .ds-datum, .dsl-tabelle .ds-datum { width: 1%; white-space: nowrap; padding-right: 10px; }
.dsu-tabelle .ds-zeit, .dsl-tabelle .ds-zeit { width: 1%; white-space: nowrap; padding-right: 18px; font-weight: 400; color: #475569; }
/* ab 3.99.301: Tage in der Sicherungsliste – Datum einmal, feine grüne Linie zwischen den Tagen */
.dsu-tabelle tr.ds-neuer-tag > td, .dsl-tabelle tr.ds-neuer-tag > td { border-top: 1px solid color-mix(in srgb, var(--mf-gruen, #0f7a6c) 55%, transparent); }
/* ab 3.99.301 (Rene 15.11.2026 „das Symbol ist grau und kaum erkennbar“): Symbol im grünen Knopf „Neue Datensicherung“ weiß */
.sicherung-ansicht .formular-leiste > .mf-knopf:first-child:not(:disabled) .mud-icon-root { color: #fff !important; fill: currentColor; opacity: 1; }
/* ab 3.99.302 (Rene 15.11.2026): App-Startseite 3-spaltig – oben die drei häufigsten, darunter Apps und Menü wie in Inntec ONE */
.appm-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.appm-k { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 78px; padding: 8px 4px; border-radius: 4px;
    background: #f1f5f9; color: #0f2a30; text-decoration: none; font-weight: 600; font-size: .74rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.appm-k .mud-icon-root { font-size: 1.5rem; color: var(--mf-gruen, #0f7a6c); }
.appm-k.app { background: #e6f4f1; }
.appm-k.gross { min-height: 92px; background: var(--mf-gruen, #0f7a6c); color: #fff; font-size: .8rem; }
.appm-k.gross .mud-icon-root { color: #fff; font-size: 1.9rem; }
.appm-k:active { transform: scale(.97); }
.appm-oben { border: 0; }
.appm-inhalt { gap: 10px; }
.appm-gruppe { border-radius: 6px; padding: 8px 10px; }
.appm-install { border-radius: 6px; padding: 10px; }
@media (min-width: 700px) { .appm-raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* ab 3.99.302 (Rene 15.11.2026): Baudoku am Handy – „+“ oben immer sichtbar, neuer Beitrag als eigenes Fenster */
.pj-neu-plus { position: fixed; top: 64px; right: 12px; z-index: 1200; width: 52px; height: 52px; border: 0; border-radius: 4px; background: var(--mf-gruen, #0f7a6c); color: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15, 42, 48, .35); cursor: pointer; }
.pj-neu-plus .mud-icon-root { font-size: 2rem; color: #fff; }
.pj-neu-plus:active { transform: scale(.95); }
.pj-neu-entwurf { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; border: 2px solid #fff; }
.pj-doku-neu.pj-neu-zu { display: none; }
.pj-doku-neu.pj-neu-auf { position: fixed; inset: 0; z-index: 1300; background: #fff; overflow-y: auto; padding: 0 12px 24px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pj-neu-kopf { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -12px; padding: 12px 12px; background: var(--mf-gruen, #0f7a6c); color: #fff; font-size: 1rem; }
.pj-neu-zu-knopf { background: none; border: 0; color: #fff; cursor: pointer; display: flex; padding: 4px; }
.pj-neu-zu-knopf .mud-icon-root { color: #fff; }
.pj-doku-neu.pj-neu-auf textarea { min-height: 38vh; font-size: 16px; }
/* ab 3.99.413 (Rene 27.11.2026 „machen wir A“): Neuer Beitrag am Handy wie ein Chat – Leiste unten über der Tastatur */
.pj-doku-neu.pj-neu-auf.pj-neu-a { padding: 0; gap: 0; overflow: hidden; height: 100%; }
.pj-neu-a .pj-neu-kopf { margin: 0; }
.pj-neu-a .pj-neu-mitte { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.pj-neu-a .pj-neu-platz { flex: 1; }
.pj-neu-a .pj-doku-arten { display: flex; gap: 4px; }
.pj-neu-zuletzt { display: flex; flex-direction: column; gap: 6px; }
.pj-neu-zuletzt-titel { font-size: .75rem; color: var(--mf-text-2); }
.pj-neu-zuletzt-e { border-left: 3px solid var(--mf-gruen, #0f7a6c); background: #f4f6f5; padding: 4px 8px; display: flex; flex-direction: column; font-size: .8rem; }
.pj-neu-zuletzt-e b { font-weight: 600; font-size: .75rem; }
.pj-neu-zuletzt-e span { color: var(--mf-text-2); }
.pj-neu-leiste { display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-top: 1px solid #dfe5e3; background: #fff; }
.pj-doku-neu.pj-neu-auf .pj-neu-leiste textarea { flex: 1; min-height: 44px; max-height: 9.5em; field-sizing: content; resize: none; font-size: 16px; padding: 10px; border: 1px solid var(--mf-gruen, #0f7a6c); border-radius: 0; }
.pj-neu-ic { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #c9d3d0; background: #fff; color: var(--mf-gruen, #0f7a6c); cursor: pointer; padding: 0; border-radius: 0; }
.pj-neu-ic input[type=file], .pj-neu-k input[type=file], .ki-datei-versteckt { display: none; }
.pj-neu-ic.go, .pj-neu-ic.an { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.pj-neu-ic.go .mud-icon-root, .pj-neu-ic.an .mud-icon-root { color: #fff; }
.pj-neu-ic:disabled { opacity: .45; }
.pj-neu-mehr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-top: 1px solid #dfe5e3; background: #fff; }
.pj-neu-mehr.zu { display: none; }
.pj-neu-k { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid #dfe5e3; background: #fff; color: var(--mf-gruen, #0f7a6c); font-size: .78rem; cursor: pointer; border-radius: 0; }
.pj-neu-k span { color: var(--mf-text, #1f2937); }
/* ab 3.99.303 (Rene 16.11.2026): Zugeordnete Adresstypen als sortierbare Tabelle, Bezeichnung grün als Link */
.jn-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.jn-tabelle th { font-size: .7rem; font-weight: 600; color: #64748b; text-align: left; padding: 4px 8px; background: #f1f5f9; border-bottom: 1px solid #dbe3ea; cursor: pointer; user-select: none; white-space: nowrap; }
.jn-tabelle th.jn-haken, .jn-tabelle td.jn-haken { width: 1%; text-align: center; }
.jn-tabelle td { padding: 1px 8px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.jn-tabelle tbody tr:nth-child(even) td { background: #f8fafc; }
.jn-tabelle tr:not(.an) td.jn-name { color: #64748b; }
.jn-tabelle td.jn-haken .feld { margin: 0; min-height: 0; }
.jn-tabelle td.jn-haken .janein { justify-content: center; }
.jn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--mf-gruen, #0f7a6c); font-weight: 600; text-decoration: underline; cursor: pointer; }
.jn-link:hover { color: #0b5f54; }
.jn-tabelle th.jn-nr, .jn-tabelle td.jn-nr { text-align: right; white-space: nowrap; width: 1%; font-variant-numeric: tabular-nums; }
.jn-tabelle td.jn-nr { color: #334155; }
/* ab 3.99.304 (Rene 16.11.2026 „Schriftgröße sämtlicher Auswahlfelder wie die Maskenschriften“): Auswahl-Listen wie die übrigen Klapplisten (.78rem, enge Zeilen) */
.aw-liste .aw-eintrag { font-size: .78rem; line-height: 1.35; padding: 4px 9px; }
.aw-liste .aw-nichts { font-size: .76rem; }
.vl-form.kompakt .aw-liste .aw-eintrag, .inv-form.kompakt .aw-liste .aw-eintrag, html.handy-sim .aw-liste .aw-eintrag { font-size: 15px; padding: 8px 10px; }
.jn-tabelle th.jn-griff, .jn-tabelle td.jn-griff { width: 1%; padding: 0 2px 0 4px; cursor: default; }
.jn-tabelle td.jn-griff span { display: inline-flex; cursor: grab; color: #94a3b8; }
.jn-tabelle td.jn-griff span:hover { color: var(--mf-gruen, #0f7a6c); }
.jn-tabelle th { cursor: default; }
.jn-tabelle tr.jn-ziel td { box-shadow: inset 0 2px 0 var(--mf-gruen, #0f7a6c); }
.jn-tabelle tr.jn-zieht td { opacity: .5; }
.jn-tabelle tr.jn-ziel-unten td { box-shadow: inset 0 -2px 0 var(--mf-gruen, #0f7a6c); }
/* ab 3.99.304: markierte Dienste im Dienstplan (Strg+Klick) */
.dpl-chip.markiert { outline: 2px solid var(--mf-gruen, #0f7a6c); outline-offset: 1px; background: #e6f4f1; }
.dpl-markiert-leiste { display: inline-flex; gap: 6px; margin-left: 6px; }
.rs-art.rs-fest { background: #eef7f5; border-color: #b7dcd5; cursor: default; }
/* ab 3.99.305 (Rene 16.11.2026 „Vorschaubilder extrem langsam“): noch nicht geladene Seiten haben ihre Höhe (Seitenverhältnis) – vorher waren sie
   0 px hoch, dadurch lagen alle Seiten (z. B. 146) gleichzeitig „im Bild“ und der Browser forderte sie alle auf einmal an statt nur die sichtbaren */
.dms-seite img, .dms-mini img { aspect-ratio: auto var(--ar, .7071); }
/* ab 3.99.300 (Norbert 17.11.2026): StammdatenDefinition.KopfFixieren – Kopf bleibt beim Scrollen stehen (mrr.kopfFix setzt top je Element) */
.formular-inhalt.kopf-fix .kf-sticky { position: sticky !important; z-index: 60; background: var(--kf-hg, #fff); }
.formular-inhalt.kopf-fix .formular-reiter, .formular-inhalt.kopf-fix .formular-reiter .mud-tabs-panels { overflow: visible !important; }
.formular-inhalt.kopf-fix .kopf-fix-felder.kf-sticky { padding-bottom: calc(4px * var(--s)); }
.formular-inhalt.kopf-fix .unterzeile-raster.kopf.kf-sticky { box-shadow: 0 3px 4px -3px rgba(20, 40, 80, .25); }
.dms-tabelle thead th { cursor: default; } /* ab 3.99.308: Sortierung fest (neueste oben) */
/* ab 3.99.310 (Rene 16.11.2026, Belegerfassung): Zeilen der Unterlisten – Maus drüber hellgrau ohne Rahmen, angeklickt mittelgrün mit grünem Balken;
   die Farbe reicht 4 px über die Felder hinaus nach oben und unten (::before hinter dem Inhalt) */
.unterzeile-raster:not(.kopf) { position: relative; z-index: 0; }
.unterzeile-raster:not(.kopf)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-left: 3px solid transparent; }
.unterzeile-raster:not(.kopf):has(input):nth-child(odd)::before { background: #f1f4f7; } /* ab 3.99.310 (Rene): abwechselnd weiß / hellgrau */
.unterzeile-raster:not(.kopf):has(input):hover::before { background: #e6ebf0; }
.unterzeile-raster:not(.kopf):hover .ul-griff { color: var(--mf-gruen, #0f7a6c); }
.unterzeile-raster.gewaehlt { background: transparent !important; box-shadow: none !important; }
.unterzeile-raster.gewaehlt::before, .unterzeile-raster.gewaehlt:hover::before { background: #c5d8eb; border-left-color: var(--mf-gruen, #0f7a6c); }
.unterzeile-raster.gewaehlt .ul-griff { color: var(--mf-gruen, #0f7a6c); }
/* ab 3.99.310: Kopf der Unterliste fixiert beim Scrollen */
.ul-kopf-fest { position: sticky; top: var(--fo-h, 0px); z-index: 3; background: var(--mf-flaeche, #fff); padding-bottom: 2px; }
/* ab 3.99.310: Begleitteil rechts neben einer Unterliste (z. B. Positionsdaten der Belegerfassung) */
.ul-begleit { display: flex; align-items: stretch; gap: 0; --bt-breite: 380px; }
.ul-begleit-liste { flex: 1 1 auto; min-width: 0; }
.ul-begleit-griff { flex: 0 0 8px; cursor: col-resize; margin: 0 2px; position: relative; }
.ul-begleit-griff::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: var(--mf-linie, #dbe3ea); }
.ul-begleit-griff:hover::after { background: var(--mf-gruen, #0f7a6c); }
.ul-begleit-teil { flex: 0 0 var(--bt-breite); width: var(--bt-breite); align-self: flex-start; position: sticky; top: 0; max-height: 100vh; overflow: auto;
    border: 1px solid var(--mf-linie, #dbe3ea); background: #fff; padding: 0 8px 8px; font-size: .78rem; top: var(--fo-h, 0px); max-height: calc(100vh - var(--fo-h, 0px)); }
.ul-begleit-kopf { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 1;
    font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mf-gruen, #0f7a6c); padding: 6px 0 4px; border-bottom: 1px solid var(--mf-linie, #dbe3ea); margin-bottom: 6px; }
.ul-begleit-zu, .ul-begleit-auf { all: unset; cursor: pointer; display: inline-flex; align-items: center; color: var(--mf-gruen, #0f7a6c); }
.ul-begleit-zu:hover, .ul-begleit-auf:hover { background: #e3f1ee; }
.ul-begleit-auf { flex: 0 0 22px; flex-direction: column; gap: 6px; padding: 8px 0; margin-left: 6px; border: 1px solid var(--mf-linie, #dbe3ea); align-self: flex-start; position: sticky; top: 0; }
.ul-begleit-auf span { writing-mode: vertical-rl; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ab 3.99.311 (Rene 16.11.2026): Positionen mit mehr Luft oben und unten (Farbe ohne Lücke von Zeile zu Zeile) und die gewählte Zeile immer in ihrer Farbe –
   vorher schlug der hellgraue Streifen (gerade Zeilen) die Auswahlfarbe */
.unterzeile-raster:not(.kopf):has(input) { padding-top: 10px; padding-bottom: 10px; margin-bottom: 0 !important; } /* ab 3.99.313 (Rene „B“): 10 px statt 7 px */ /* ab 3.99.312 (Rene): kein weißer Abstand zwischen den Positionen */
.unterzeile-raster.gewaehlt:not(.kopf):has(input)::before, .unterzeile-raster.gewaehlt:not(.kopf):has(input):hover::before { background: #c5d8eb; border-left-color: var(--mf-gruen, #0f7a6c); }
.ul-zeilen-scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.ul-zeilen-scroll + * .beleg-summen, .ul-zeilen-scroll ~ .beleg-summen { box-shadow: none; }
.unterzeile-raster.kopf span.kopf-zahl { padding-right: 9px; } /* ab 3.99.311: über dem letzten Zeichen der Zahl (vor €/%) */
.unterzeile-raster.kopf span.mitte { text-align: center; }
.unterzeile-raster .zentriert input { text-align: center; }
/* ab 3.99.311 (Rene 16.11.2026): „schlichte“ Felder in Unterlisten (Feld.Schlicht) – mit Inhalt ohne Rahmen, Hintergrund und Knöpfe; beim Hineinklicken wieder normal */
.unterzeile-raster .schlicht:not(.leer):not(:focus-within) .mud-input-outlined-border { border-color: transparent !important; }
.unterzeile-raster .schlicht:not(.leer):not(:focus-within) :is(.mud-input, .mud-input-slot, .mud-input-control, input) { background: transparent !important; box-shadow: none !important; }
.unterzeile-raster .schlicht:not(.leer):not(:focus-within) .mud-input-adornment:not(.mud-text) { visibility: hidden; }
html body .unterzeile-raster .schlicht:not(.leer):not(:focus-within) .mud-input.mud-input-outlined { background: transparent !important; }
.ul-begleit-teil .bpd-pos-hinweis { display: none; } /* ab 3.99.311 (Rene): Hinweis „andere Position anklicken“ in der Spalte nicht nötig */

/* ab 3.99.311 (Rene): Handy-Startseite – Hauptmenü als Kacheln, Unterpunkte nach Antippen */
.appm-k.appm-menue { position: relative; background: #f1f5f9; }
.appm-titel-zurueck { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.appm-zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--mf-gruen, #0f7a6c); text-decoration: none; font-weight: 700; padding: 4px 6px 4px 0; }
.appm-pfeil { color: #94a3b8; }
/* ab 3.99.311 (Rene): Griff ⠿ oben bündig mit der Pos.-Ziffer statt mittig in der Zeile */
.unterzeile-raster:not(.kopf) .ul-griff-feld { align-self: start; padding-top: 3px; }
.unterzeile-raster:not(.kopf) .ul-griff-feld .ul-griff { align-self: start; }

/* ab 3.99.312 (Rene): Spaltenköpfe und Fuß (Summen) rücken um die Breite des Scrollbalkens der Positionen ein */
.ul-zeilen-scroll ~ *, .unterbereich:has(.ul-zeilen-scroll) .ul-kopf-fest .unterzeile-raster.kopf { padding-right: var(--ul-sb, 0px); box-sizing: border-box; }
.unterbereich:has(.ul-zeilen-scroll) > .ul-kopf-fest { overflow-x: clip; } /* ab 3.99.313: Spaltenbezeichnungen nicht über die Positionsdaten-Spalte hinaus */
/* ab 3.99.313 (Rene): schlichte Felder, die nur angezeigt werden (Steuersatz, Gesamt netto), sind nicht anwählbar – kein Rahmen, kein Cursor */
.unterzeile-raster .schlicht:has(input[readonly]) { pointer-events: none; user-select: none; }
.unterzeile-raster .schlicht:has(input[readonly]) .mud-input-outlined-border { border-color: transparent !important; }
.unterzeile-raster .schlicht:has(input[readonly]) .mud-input.mud-input-outlined { background: transparent !important; box-shadow: none !important; }
/* ab 3.99.313 (Rene): in allen Reitern (grau, aktiv grün) haben Symbole und das „Extern öffnen“-Symbol die Farbe der Reiterschrift – kein Grün */
.formular-reiter .mud-tab .mud-icon-root, .formular-reiter .mud-tab.reiter-symbol .mud-icon-root,
.formular-reiter .mud-tab.mud-tab-active.reiter-symbol .mud-icon-root, .mud-tab .reiter-loesen, .mud-tab .reiter-loesen:hover { color: inherit !important; }
.mud-tab .reiter-loesen:hover { background: rgba(0, 0, 0, .08); }
/* ab 3.99.313 (Rene 17.11.2026 „Benutzereinstellungen optisch wie alles andere – Tabs wie unsere, Schriftgrößen“):
   Reiter der Benutzereinstellungen wie die Formular-Reiter (grau, aktiv grün, oben abgerundet, grüne Linie darunter) */
html .einstellungen .einst-reiter, html .portal-optik .einstellungen .einst-reiter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: calc(3px * var(--s, 1)); border: 0; border-bottom: 2px solid var(--mf-blau, #08786f); margin-bottom: calc(10px * var(--s)); }
html .einstellungen .einst-reiter button, html .portal-optik .einstellungen .einst-reiter button {
    all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; height: calc(26px * var(--s, 1)); padding: 0 calc(11px * var(--s, 1)) !important;
    font-size: .76rem !important; font-weight: 400; color: #2e4052 !important; background: #d3dde7 !important; border: 1px solid #b9c7d5 !important; border-bottom: 0 !important;
    border-radius: 6px 6px 0 0 !important; font-family: inherit; }
html .einstellungen .einst-reiter button:hover, html .portal-optik .einstellungen .einst-reiter button:hover { background: #e6edf6 !important; }
html .einstellungen .einst-reiter button.aktiv, html .portal-optik .einstellungen .einst-reiter button.aktiv { background: var(--mf-blau, #08786f) !important; border-color: var(--mf-blau, #08786f) !important; color: #fff !important; font-weight: 600; }
/* Schrift wie in den Masken */
.portal-optik .einstellungen { font-size: .78rem; }
.portal-optik .einstellungen :is(.einst-zeile, label, input, select, textarea, button:not(.mf-knopf), .mfav-eintrag, .mfav-an, .mfav-leer, li, td, th) { font-size: .78rem; }
.portal-optik .einstellungen input.mfav-suche, .portal-optik .einstellungen .mfav-gruppe-kopf input { padding: 3px 7px; height: auto; }
.portal-optik .einstellungen .mfav-eintrag small { font-size: .7rem; }
.portal-optik .einstellungen .einst-hinweis { font-size: .72rem; }
.portal-optik .einstellungen :is(.einst-zeile > span:first-child, .einst-zeile > label, .feld label) { font-size: .78rem; }
.portal-optik .einstellungen .einst-hinweis { font-size: .72rem; }
.portal-optik .einstellungen .mf-tabelle :is(td, th) { padding-top: 3px; padding-bottom: 3px; }
.portal-optik .einstellungen .mf-tabelle .mf-knopf { min-height: calc(24px * var(--s)); padding: 2px 9px; font-size: .74rem; }

/* ab 3.99.313 (Rene): Ziellinie beim Verschieben über dem Zeilenhintergrund (::after) – nach unten gezogen unter dem Ziel, nach oben darüber */
.unterzeile-raster.ul-verschiebe-ziel { box-shadow: none; position: relative; }
.unterzeile-raster.ul-verschiebe-ziel::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--mf-gruen, #0f7a6c); z-index: 4; pointer-events: none; }
.unterzeile-raster.ul-verschiebe-ziel.unten::after { top: auto; bottom: -1px; }
/* 17.11.2026 (Norbert): Zeile mit offenem Griff-Menü über den folgenden Zeilen (die Zeilen haben z-index 0 – sonst verdecken sie das Menü) */
.unterzeile-raster:has(> .ul-griff-feld > .ul-menue) { z-index: 50 !important; }
/* ab 3.99.314 (Rene): ✕ zum Entfernen einer Zeile in Unterlisten (z. B. Positionen) kleiner */
.unterzeile-raster .ul-weg.mud-icon-button { padding: 3px; margin-top: 2px; }
.unterzeile-raster .ul-weg .mud-icon-root { font-size: 16px !important; width: 16px; height: 16px; }
/* ab 3.99.314 (Rene): gesperrte schlichte Felder (z. B. Artikelnummer nach der Eingabe) – nicht anklickbar, Schrift normal */
.unterzeile-raster .schlicht:not(.leer):has(input:disabled) { pointer-events: none; user-select: none; }
.unterzeile-raster .schlicht:not(.leer):has(input:disabled) .mud-input-outlined-border { border-color: transparent !important; }
.unterzeile-raster .schlicht:not(.leer):has(input:disabled) .mud-input.mud-input-outlined { background: transparent !important; }
.unterzeile-raster .schlicht:not(.leer) input:disabled { color: #2e4052 !important; -webkit-text-fill-color: #2e4052; opacity: 1; }
/* ab 3.99.314 (Rene): Menü am Griff ⠿ liegt über den folgenden Positionen (vorher schienen deren Hintergrund und Text durch) */
.unterzeile-raster:has(.ul-menue) { position: relative; z-index: 20; }
.unterzeile-raster .ul-menue { z-index: 21; background: #fff; }
.ul-menue button { width: 100%; box-sizing: border-box; } /* ab 3.99.314: Einträge bündig */
/* ab 3.99.314 (Rene 17.11.2026 „Feldrahmen grau, nicht ins Blaue“): Rahmen der Felder in den Positionen neutral grau (beim Hineinklicken weiter grün) */
.unterzeile-raster:not(.kopf) .mud-input-outlined:not(.mud-input-focused) .mud-input-outlined-border { border-color: #c6cacf; }
.unterzeile-raster:not(.kopf) .mud-input-outlined:not(.mud-input-focused):hover .mud-input-outlined-border { border-color: #a9aeb4; }
/* ab 3.99.314 (Rene): Feld mit Doppelklick-Sprung (z. B. Artikelnummer → Stammdaten Artikel) – gesperrtes Feld bleibt doppelklickbar */
.unterzeile-raster .feld-sprung { cursor: pointer; }
/* 17.11.2026 (Norbert): Doppelklick auf ein Auswahlfeld öffnet den Datensatz – auch bei gesperrten Feldern (der Klick geht dann an den Rahmen) */
.feld-doppelklick:has(input:disabled) { cursor: pointer; }
.feld-doppelklick:has(input:disabled) .mud-input-control { pointer-events: none; }
/* 17.11.2026 (Norbert „wenn es die Möglichkeit zum Doppelklick gibt, den Eintrag bitte unterstreichen“): Auswahlfelder mit Doppelklick, Artikelnummer
   der Positionen (Feld.FeldSprung), erste Spalte von Listen mit Sprung (Unterlisten, Anzeigelisten wie „Lagerorte mit Bestand“) */
.feld-doppelklick input { text-decoration: underline; }
.unterzeile-raster .feld-sprung input { text-decoration: underline; }
.unterzeile-raster.mit-sprung > .feld:not(.feld ~ .feld) input { text-decoration: underline; }
.anzeigeliste td.sprung-wert { text-decoration: underline; cursor: pointer; }
.unterzeile-raster .schlicht.feld-sprung:has(input:disabled) { pointer-events: auto; }
.unterzeile-raster .schlicht.feld-sprung:has(input:disabled) .mud-input-control { pointer-events: none; }
.unterzeile-raster .schlicht.feld-sprung:has(input:disabled):hover input { text-decoration: underline; }
/* 17.11.2026 (Norbert „bei allen Masken auf die Abstände und Feldhöhen achten“): eigene Eingabefelder in Masken – berechnete Anzeigefelder
   (input.berechnet), Auswahl-Komponente (aw, z. B. Projekt, Steuerart, Lagerort) und einfache Felder – so hoch wie die MudBlazor-Felder
   (16 px Text + 2 × 2 px Abstand, siehe „Kompaktere Formulare“), gleiche Schrift */
:root { --feld-hoehe: 20px; }
.feld input.berechnet, .feld .aw-feld input:not(:is(.kompakt, .gross, .invm) *), .feld input.einfach, .feld select.einfach {
    box-sizing: border-box; height: calc(var(--feld-hoehe) * var(--s)) !important; padding-top: 0 !important; padding-bottom: 0 !important;
    font-size: .78rem !important; line-height: normal; }
.feld .aw-knopf:not(:is(.kompakt, .gross, .invm) *) { height: calc(var(--feld-hoehe) * var(--s)) !important; }

/* ab 3.99.319 (Rene 18.11.2026 00:15): Abstand unter dem letzten Eintrag einer offenen Menügruppe bis zur Linie */
.mf-menu-ende { height: calc(8px * var(--s, 1)); }

/* ab 3.99.320: Hilfe / Support → KI-Chat-Hilfe */
.kih-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.kih-symbol { color: var(--mf-gruen, #0f7a6c); }
.kih-hinweis { font-size: .72rem; color: #64748b; }
.kih-rumpf { flex: 1; min-height: 0; display: flex; }
.kih-seite { width: 250px; flex: 0 0 250px; border-right: 1px solid var(--mf-linie, #d5dbe1); background: #f8fafc; overflow: auto; padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; }
.kih-neu { display: flex; align-items: center; gap: 6px; border: 1px solid var(--mf-linie, #d5dbe1); background: #fff; padding: 6px 10px; margin-bottom: 8px; font-size: .78rem; cursor: pointer; border-radius: 0; color: #14232b; }
.kih-neu .mud-icon-root { font-size: 17px; color: var(--mf-gruen, #0f7a6c); }
.kih-neu:hover:not(:disabled) { border-color: var(--mf-gruen, #0f7a6c); }
.kih-seite-leer { font-size: .7rem; color: #94a3b8; padding: 6px 8px; }
.kih-seite-gruppe { font-size: .7rem; color: #64748b; font-weight: 600; padding: 8px 8px 3px; }
.kih-seite-eintrag { display: flex; align-items: center; }
.kih-seite-eintrag:hover, .kih-seite-eintrag.an { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 10%, #fff); }
.kih-seite-eintrag.an .kih-seite-titel { color: var(--mf-gruen, #0f7a6c); font-weight: 600; }
.kih-seite-titel { display: block; flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 5px 8px; font-size: .76rem; color: #14232b; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kih-seite-weg { border: 0; background: transparent; padding: 2px 4px; cursor: pointer; visibility: hidden; color: #94a3b8; }
.kih-seite-weg .mud-icon-root { font-size: 14px; }
.kih-seite-eintrag:hover .kih-seite-weg { visibility: visible; }
.kih-seite-weg:hover { color: #b42318; }
.kih-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kih-verlauf { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; }
.kih-spalte { max-width: 820px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
@container (max-width: 760px) { .kih-seite { display: none; } }
.kih-leer { margin: auto; text-align: center; color: #64748b; font-size: .78rem; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 520px; }
.kih-leer .kih-gross { font-size: 42px; color: var(--mf-gruen, #0f7a6c); }
.kih-beispiel { border: 1px solid var(--mf-linie, #d5dbe1); background: #fff; padding: 6px 12px; font-size: .76rem; cursor: pointer; border-radius: 0; color: #14232b; }
.kih-beispiel:hover { border-color: var(--mf-gruen, #0f7a6c); color: var(--mf-gruen, #0f7a6c); }
.kih-frage { align-self: flex-end; max-width: 75%; }
.kih-frage span { display: inline-block; background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--mf-gruen, #0f7a6c) 35%, #fff); padding: 7px 11px; font-size: .78rem; white-space: pre-wrap; }
.kih-antwort { align-self: flex-start; max-width: 85%; background: #fff; border: 1px solid var(--mf-linie, #d5dbe1); border-left: 3px solid var(--mf-gruen, #0f7a6c); padding: 8px 12px; font-size: .78rem; }
.kih-antwort.laeuft { color: #64748b; display: flex; align-items: center; gap: 8px; }
.kih-antwort.fehler { border-left-color: #b91c1c; color: #7f1d1d; display: flex; gap: 6px; align-items: center; }
.kih-antwort.nichts { border-left-color: #94a3b8; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kih-text p { margin: 0 0 6px; } .kih-text ol, .kih-text ul { margin: 2px 0 6px 18px; padding: 0; } .kih-text li { margin: 2px 0; }
.kih-quellen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--mf-linie, #d5dbe1); font-size: .7rem; color: #64748b; }
.kih-quelle { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--mf-linie, #d5dbe1); background: #f8fafc; padding: 2px 8px; font-size: .7rem; cursor: pointer; border-radius: 0; color: var(--mf-gruen, #0f7a6c); }
.kih-quelle .mud-icon-root { font-size: 14px; }
/* ab 3.99.433: Etikett der Antwort (Daten aus dem Mandanten oder Hilfe) */
.kih-etikett { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font-size: .68rem; font-weight: 600; border: 1px solid; border-radius: 0; margin-bottom: 6px; }
.kih-etikett .mud-icon-root { font-size: 13px; }
.kih-etikett.daten { color: #fff; background: #0f7a6c; border-color: #0f7a6c; }
.kih-etikett.hilfe { color: #0f7a6c; background: #f0f7f6; border-color: #b9d8d3; }
.kih-eingabe { display: flex; gap: 8px; padding: 8px 18px; align-items: flex-end; width: 100%; max-width: calc(820px + 36px); margin: 0 auto; box-sizing: border-box; }
.kih-eingabe textarea { flex: 1; resize: vertical; min-height: 40px; max-height: 160px; font: inherit; font-size: .78rem; padding: 6px 8px; border: 1px solid var(--mf-linie, #d5dbe1); border-radius: 0; }
.kih-eingabe textarea:focus { outline: none; border-color: var(--mf-gruen, #0f7a6c); }
.kih-fuss { padding: 0 18px 6px; font-size: .7rem; color: #94a3b8; width: 100%; max-width: calc(820px + 36px); margin: 0 auto; box-sizing: border-box; text-align: center; }

/* ab 3.99.320 (Rene 18.11.2026 09:59): Sprachen-Tabelle sprang beim Scrollen – jede Zeile hat jetzt fest 30 px (passend zu ItemSize der Virtualisierung),
   dazu Mindestbreite mit waagrechter Scrollleiste statt zusammengequetschter Spalten */
.mf-tabelle.ue-tabelle { min-width: 1500px; }
.mf-tabelle.ue-tabelle tbody tr { height: 30px; }
.mf-tabelle.ue-tabelle tbody td { height: 30px !important; max-height: 30px; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; overflow: hidden; vertical-align: middle; }
.mf-tabelle.ue-tabelle tbody td input { height: 24px !important; min-height: 0 !important; margin: 0 !important; box-sizing: border-box; line-height: 20px; }
.mf-tabelle.ue-tabelle tbody tr.ue-gruppe td { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 28px; }
.mf-tabelle.ue-tabelle .ue-ort-knopf { height: 20px; line-height: 18px; padding: 0 2px; vertical-align: middle; }

/* ab 3.99.320 (Rene 18.11.2026 10:17 „Grundregel: alle Masken haben oben dasselbe Maskenmenü wie die Stammdaten“): Fenster in der Portal-Optik
   (Administration) bekommen mit .masken-leiste dieselbe flache Werkzeugleiste – Knöpfe ohne Fläche, farbige Symbole (Neu grün, Öffnen/Rückgängig orange,
   Speichern blau bzw. grün gefüllt, sobald es etwas zu speichern gibt, Löschen rot), Trenner, Status rechts. */
html .fenster .portal-optik .formular-leiste.masken-leiste { gap: 0 !important; padding: calc(1px * var(--s)) calc(4px * var(--s)) !important; border-radius: 0 !important;
  background: var(--th-werkzeugleiste, #fafbfc) !important; border-bottom: 1px solid var(--mf-linie, #d5dbe1) !important; align-items: center; }
html .fenster .portal-optik .formular-leiste.masken-leiste :is(.mf-knopf, .mf-knopf.hell, .mf-knopf.klein) {
  background: transparent !important; color: var(--mf-text, #1f2a37) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  min-height: 0 !important; height: calc(26px * var(--s)) !important; padding: 0 calc(10px * var(--s)) !important; gap: calc(6px * var(--s)) !important; font-size: .78rem !important; font-weight: 400 !important; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf:hover:not(:disabled) { background: #fff !important; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf:disabled { background: transparent !important; opacity: .42; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf .mud-icon-root { font-size: calc(17px * var(--s)); color: #5f6b78; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf[data-taste="Neu"] .mud-icon-root { color: var(--mud-palette-primary, #0F6E56); }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf:is([data-oeffnen], [data-taste="Rueckgaengig"]) .mud-icon-root { color: #b25e09; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"] .mud-icon-root { color: #185fa5; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf:is([data-taste="Loeschen"], .rot, .gefahr) .mud-icon-root { color: #b42318; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) { background: var(--mud-palette-primary, #0F6E56) !important; color: #fff !important; }
html .fenster .portal-optik .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) .mud-icon-root { color: #fff; }
html .fenster .portal-optik .formular-leiste.masken-leiste .leiste-trenner { width: 1px; height: calc(16px * var(--s)); margin: 0 calc(6px * var(--s)); background: #d0d5db; }
html .fenster .portal-optik .formular-leiste.masken-leiste .leiste-status { margin-left: auto; font-size: .76rem; color: #5f6b78; white-space: nowrap; padding-right: 6px; }
html .fenster .portal-optik .formular-leiste.masken-leiste .leiste-schalter { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; padding: 0 8px; color: var(--mf-text, #1f2a37); cursor: pointer; white-space: nowrap; }

/* ab 3.99.320 (Rene 18.11.2026 10:22/10:24): Maskenreiter wachsen mit der Anzeigegröße (vorher fest 13,68 px), und das Hauptmenü links hat
   dieselbe Schriftgröße wie die Felder der Masken (.78rem – wächst ebenfalls mit der Anzeigegröße) */
html .mf-menu-gruppe, html.thema-petrol .mf-menu-gruppe,
html .mf-menu-eintrag, html.thema-petrol .mf-menu-eintrag,
html .mf-menu-eintrag.mf-menu-untereintrag, html.thema-petrol .mf-menu-eintrag.mf-menu-untereintrag,
html .mf-menu-eintrag.mf-menu-unter.mf-ebene-1, html .mf-menu-eintrag.mf-menu-unter.mf-ebene-2 { font-size: .78rem; }
/* ab 3.99.320: Datensicherung – vollständiger Pfad der lokalen Sicherungen (nur Anzeige, markierbar) */
.dsl-kachel .dsl-pfad { display: block; margin-top: 4px; font-family: Consolas, Menlo, monospace; font-size: .7rem; color: #334155; background: #f1f5f9; padding: 3px 6px; word-break: break-all; user-select: all; border-radius: 0; }
/* ab 3.99.320 (Rene 18.11.2026 10:33 „E finde ich super“): Ampel in Listen – farbiger Punkt mit Text */
.ampel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ampel > i { width: calc(10px * var(--s, 1)); height: calc(10px * var(--s, 1)); border-radius: 50%; flex: none; background: #94a3b8; }
.ampel.ampel-rot > i { background: #dc2626; } .ampel.ampel-rot { color: #a32d2d; }
.ampel.ampel-gelb > i { background: #e0a106; } .ampel.ampel-gelb { color: #854f0b; }
.ampel.ampel-grau > i { background: #888780; } .ampel.ampel-grau { color: #5f6b78; }
.ampel.ampel-gruen > i { background: #639922; } .ampel.ampel-gruen { color: #3b6d11; }
.ampel.ampel-blau > i { background: #378add; } .ampel.ampel-blau { color: #185fa5; }

/* ab 3.99.320 (Rene 18.11.2026 11:29, Vorschlag A): Mandantenverwaltung wie die Masken – Liste oben flach und kantig, darunter Reiter
   (Allgemein · Datenbank · Einrichten und Daten · Farbschema · Protokoll), Bereiche als Rahmen statt Karten, Knöpfe klein und kantig */
html .fenster .portal-optik .mv .mv-oben { border-radius: 0 !important; border: 1px solid var(--mf-linie, #d5dbe1) !important; box-shadow: none !important; }
html .fenster .portal-optik .mv .mv-zeile { font-size: .78rem; }
html .fenster .portal-optik .mv .mv-zeile.mv-kopf { font-size: .7rem; }
html .fenster .portal-optik .mv .mv-details { margin-top: 10px; }
.mv-status { display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin-bottom: 6px; font-size: .76rem; border-left: 3px solid #b45309; background: #fff8eb; color: #6b4a00; }
.mv-status.aktuell { border-left-color: var(--mf-gruen, #0f7a6c); background: #eef7f5; color: #134e45; }
.mv-status > span { flex: 1; min-width: 0; }
.mv-status form { margin: 0; flex: none; }
.mv-status .mv-nur-ansicht { margin-left: 8px; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.mv-reiter-bereich .mv-karte { border-radius: 0 !important; border: 1px solid var(--th-rahmen, #c9d4e2) !important; background: transparent !important; box-shadow: none !important; margin-bottom: 10px; }
.mv-reiter-bereich .mv-karte > header { background: transparent !important; border-bottom: 0 !important; padding: 6px 10px 0 !important; font-size: .72rem !important; color: var(--mf-gruen, #0f7a6c) !important; letter-spacing: .02em; }
.mv-reiter-bereich .mv-karte > header .mud-icon-root { font-size: 15px !important; }
.mv-reiter-bereich .mv-karte-inhalt { padding: 6px 10px 10px !important; font-size: .78rem; }
.mv-reiter-bereich .mandant-db { display: block; }
html .fenster .portal-optik .mv-reiter-bereich .mf-knopf { border-radius: 0 !important; min-height: 0 !important; height: calc(26px * var(--s)); padding: 0 calc(10px * var(--s)) !important; font-size: .78rem !important; font-weight: 500 !important; }
html .fenster .portal-optik .mv-reiter-bereich .mf-knopf .mud-icon-root { font-size: calc(16px * var(--s)); }
.mv-reiter-bereich .mv-rahmen { margin: 0 0 10px; }
.mv-reiter-bereich .mv-allgemein { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.mv-reiter-bereich .mv-allgemein .feld { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 0 10px; margin: 0; }
.mv-reiter-bereich .mv-allgemein .feld > label { margin: 0; }
.mv-reiter-bereich .mv-allgemein .mv-allgemein-knopf { padding-left: 120px; }
.mv-reiter-bereich .mv-fuss { font-size: .74rem; color: #5f6b78; margin-top: 6px; }
.mv-hinweis-leer { padding: 10px; font-size: .78rem; color: #5f6b78; }

/* ab 3.99.321 (Rene 18.11.2026 11:58): Schritt-für-Schritt-Führung – Markierung, Sprechblase und Leiste unten */
.fu-rahmen { position: fixed; z-index: 1150; pointer-events: none; border: 2px solid var(--mf-gruen, #0f7a6c); box-shadow: 0 0 0 9999px rgba(15, 23, 42, .28), 0 0 0 4px color-mix(in srgb, var(--mf-gruen, #0f7a6c) 30%, transparent);
    transition: left .2s, top .2s, width .2s, height .2s; animation: fu-puls 1.6s ease-in-out infinite; }
@keyframes fu-puls { 50% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .28), 0 0 0 9px color-mix(in srgb, var(--mf-gruen, #0f7a6c) 12%, transparent); } }
.fu-blase { position: fixed; z-index: 1151; pointer-events: none; max-width: 340px; background: #fff; border: 1px solid var(--mf-gruen, #0f7a6c); border-left-width: 4px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18); padding: 8px 11px; font-size: .78rem; color: #14232b; display: flex; gap: 8px; align-items: flex-start; }
.fu-blase-nr { flex: 0 0 auto; min-width: 20px; height: 20px; line-height: 20px; text-align: center; background: var(--mf-gruen, #0f7a6c); color: #fff; font-weight: 700; font-size: .7rem; }
.fu-leiste { position: fixed; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 1152; width: min(860px, calc(100vw - 24px)); background: #fff;
    border: 1px solid var(--mf-linie, #d5dbe1); border-top: 3px solid var(--mf-gruen, #0f7a6c); box-shadow: 0 8px 28px rgba(15, 23, 42, .25); font-size: .78rem; color: #14232b; }
.fu-kopf { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--mf-linie, #d5dbe1); background: #f8fafc; }
.fu-kopf .fu-symbol { color: var(--mf-gruen, #0f7a6c); font-size: 18px; }
.fu-titel { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-zaehler { margin-left: auto; color: #64748b; font-size: .7rem; white-space: nowrap; }
.fu-punkte { display: flex; gap: 3px; }
.fu-punkt { width: 10px; height: 10px; border: 1px solid #94a3b8; background: #fff; padding: 0; cursor: pointer; border-radius: 0; }
.fu-punkt.fertig { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 45%, #fff); border-color: var(--mf-gruen, #0f7a6c); }
.fu-punkt.an { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); }
.fu-rumpf { display: flex; gap: 12px; align-items: center; padding: 9px 10px; }
.fu-text { flex: 1; min-width: 0; line-height: 1.45; }
.fu-warte { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #b25e09; font-size: .7rem; }
.fu-warte .mud-icon-root { font-size: 14px; }
.fu-knoepfe { display: flex; gap: 6px; flex: 0 0 auto; }
.fu-knoepfe .mf-knopf { white-space: nowrap; }
/* ab 3.99.321: Inntec KI Hilfe – Folgefragen und Führung unter der Antwort */
.kih-weiter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kih-folge { border: 1px solid var(--mf-linie, #d5dbe1); background: #fff; padding: 4px 10px; font-size: .74rem; cursor: pointer; border-radius: 0; color: #14232b; text-align: left; }
.kih-folge:hover { border-color: var(--mf-gruen, #0f7a6c); color: var(--mf-gruen, #0f7a6c); }
.kih-fuehrung { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--mf-gruen, #0f7a6c) 40%, #fff);
    background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 7%, #fff); }
.kih-fuehrung .mud-icon-root { color: var(--mf-gruen, #0f7a6c); }
.kih-fuehrung span { flex: 1; }
.kih-text strong { color: #0b4f46; }

/* ab 3.99.322 (Rene 18.11.2026 12:48 „Grundregel: Schriftgröße immer gleich“): Mandantenverwaltung wie die übrigen Listen und Masken –
   Liste wie die Benutzerliste (Kopf normal geschrieben, fett, hellgrau; Zeilen in Feldgröße, keine Festbreitenschrift, Auswahl grün statt blau),
   Reiterinhalt in Feldgröße und nicht über die ganze Breite gezogen */
html .ansicht.mv .mv-zeile { font-size: .78rem !important; padding-top: 6px; padding-bottom: 6px; min-height: 0; }
html .ansicht.mv .mv-zeile.mv-kopf { font-size: .78rem !important; text-transform: none; letter-spacing: 0; font-weight: 600; color: #14232b; background: #f1f5f8; padding-top: 8px; padding-bottom: 8px; }
html .ansicht.mv .mv-zeile.mv-kopf:hover { background: #f1f5f8; }
html .ansicht.mv .mv-zeile .mv-name { font-weight: 400; color: #14232b; }
html .ansicht.mv .mv-zeile .mv-nr { font-weight: 400; }
html .ansicht.mv .mv-dbname { font-family: inherit; font-size: inherit; color: #475569; }
html .ansicht.mv .mv-zeile.gewaehlt { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 9%, #fff); box-shadow: inset 3px 0 0 var(--mf-gruen, #0f7a6c); }
html .ansicht.mv .mv-zeile:not(.mv-kopf):hover { background: color-mix(in srgb, var(--mf-gruen, #0f7a6c) 5%, #fff); }
html .ansicht.mv .mv-chip, html .ansicht.mv .mf-marke { font-size: .7rem; }
html .ansicht.mv .mv-status { font-size: .78rem; }
html .ansicht.mv .mv-reiter-bereich, html .ansicht.mv .mv-reiter-bereich :is(label, input, select, textarea, p, .mv-hinweis-leer, .text-zweitrangig) { font-size: .78rem; }
html .ansicht.mv .mv-reiter-bereich .mv-karte { max-width: 980px; }

/* ab 3.99.324 (Rene 18.11.2026 18:32): Standardaufbau mit 6 Bereichen (vorerst nur Adressen, Definition.Rahmen6):
   1 oben (Fensterkopf) · 2 Liste · 3 Maskenmenü · 4 Reiter · 5 Datenmaske (scrollt allein) · 6 unten (Datensatzinfo, Speichern, Schließen) */
.ansicht.rahmen6 > .ansicht-liste { order: 1; flex: 0 0 32%; min-height: calc(90px * var(--s)); }
.ansicht.rahmen6 > .ansicht-teiler { order: 2; }
.ansicht.rahmen6 > .ansicht-formular { order: 3; flex: 1 1 auto !important; max-height: none !important; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ansicht.rahmen6.liste-zu > .ansicht-liste { display: none; }
.ansicht.rahmen6 > .ansicht-formular > .formular-oben { position: static; flex: none; }
.ansicht.rahmen6 > .ansicht-formular > .formular-inhalt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ansicht.rahmen6 > .ansicht-formular > .formular-inhalt > form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ansicht.rahmen6 .reiter-box { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ansicht.rahmen6 .reiter-box > .formular-reiter { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ansicht.rahmen6 .reiter-box > .formular-reiter > .mud-tabs-tabbar { flex: none; }
.ansicht.rahmen6 .reiter-box > .formular-reiter > .mud-tabs-panels { flex: 1 1 auto; min-height: 0; overflow: auto; }
.ansicht.rahmen6 > .ansicht-formular > .formular-inhalt > .formular-fuss { flex: none; margin-top: 0; display: flex; align-items: center; gap: 8px; padding: calc(4px * var(--s)) calc(8px * var(--s)); border-top: 1px solid var(--mf-linie); background: var(--mf-leiste, #f3f5f7); }
.formular-fuss .fuss-knoepfe { margin-left: auto; display: flex; gap: 6px; }
.ansicht.rahmen6 .formular-fuss .formular-fehler { flex: 1 1 100%; }
.ansicht.rahmen6 .formular-fuss { flex-wrap: wrap; }
/* ab 3.99.324/325 (Rene 18.11.2026): Rahmen farbig, Felder weiß, nur lesbar hellgrau, gerade Ecken, Außenabstand 14 px, Bereiche 8 px Abstand.
   ab 3.99.326: Werte als Variablen --m6-* mit Vorgabe (MaskenColors ab 3.99.328 wieder entfernt – Rene 18.11.2026 21:36) */
.ansicht.rahmen6 { --m6-r: var(--m6-ecken, 0px); --th-feld-gesperrt: var(--m6-gesperrt, #e3e7eb);
  padding: var(--m6-aussen, calc(14px * var(--s))); gap: 0; background: var(--m6-grund, #e9eef2); }
.ansicht.rahmen6 > .ansicht-teiler { height: var(--m6-abstand, calc(8px * var(--s))); }
.ansicht.rahmen6 > .ansicht-formular { background: transparent !important; border: 0 !important; }
.ansicht.rahmen6 > .ansicht-liste, .ansicht.rahmen6 > .ansicht-formular > .formular-oben, .ansicht.rahmen6 .reiter-box,
.ansicht.rahmen6 > .ansicht-formular > .formular-inhalt > .formular-fuss { background: var(--m6-flaeche, #fff) !important; border: 1px solid var(--m6-linie, #c9d6e2) !important; border-radius: var(--m6-r) !important; }
.ansicht.rahmen6 > .ansicht-formular > .formular-oben { margin-bottom: var(--m6-abstand, calc(8px * var(--s))); }
.ansicht.rahmen6 > .ansicht-formular > .formular-inhalt > .formular-fuss { margin-top: var(--m6-abstand, calc(8px * var(--s))); }
.ansicht.rahmen6 > .ansicht-formular > .formular-oben .formular-leiste { background: transparent !important; }
/* Rahmen und Beschriftung */
.ansicht.rahmen6 fieldset.rahmen { background: var(--m6-rahmen, #eef3f7); border-color: var(--m6-rahmen-linie, #c9d6e2); border-radius: var(--m6-r); }
html .ansicht.rahmen6 fieldset.rahmen > legend { color: var(--m6-rahmen-titel, #0a8179); }
html .ansicht.rahmen6 .feld > label { color: var(--m6-beschriftung, #4d6075); }
/* Felder */
.ansicht.rahmen6 .mud-input.mud-input-outlined { background: var(--m6-feld, #fff); border-radius: var(--m6-r); }
.ansicht.rahmen6 .mud-input.mud-input-outlined input, .ansicht.rahmen6 .mud-input.mud-input-outlined textarea { color: var(--m6-feld-schrift, #263a4c); }
.ansicht.rahmen6 .mud-input-outlined-border { border-radius: var(--m6-r) !important; }
.ansicht.rahmen6 .mud-input.mud-input-outlined:not(:focus-within):not(.mud-input-error) .mud-input-outlined-border { border-color: var(--m6-feld-linie, #bdcbd8); }
.ansicht.rahmen6 .mud-input-required .mud-input-outlined, .ansicht.rahmen6 .mud-input-control.mud-input-required .mud-input-outlined { background: var(--m6-pflicht, var(--mf-pflicht)) !important; }
.ansicht.rahmen6 .mud-input.mud-input-outlined:has(input[readonly]:not(.mud-select-input)), .ansicht.rahmen6 .mud-input.mud-input-outlined:has(input:disabled),
.ansicht.rahmen6 .mud-input.mud-input-outlined.mud-disabled { background: var(--m6-gesperrt, #e3e7eb) !important; }
.ansicht.rahmen6 .mud-input.mud-input-outlined:has(input[readonly]:not(.mud-select-input)) input, .ansicht.rahmen6 .mud-input.mud-input-outlined:has(input:disabled) input { color: #5f6b77; }
/* Liste */
html .ansicht.rahmen6 .ansicht-liste thead th { background: var(--m6-liste-kopf, #f1f5f8) !important; color: var(--m6-liste-kopf-schrift, #41586a) !important; }
html .ansicht.rahmen6 .ansicht-liste tbody td { color: var(--m6-liste-schrift, #263a4c); }
html .ansicht.rahmen6 .ansicht-liste tbody tr.aktiv td { background: var(--m6-liste-auswahl, #e7f5f2) !important; }
/* Reiter */
html .ansicht.rahmen6 .formular-reiter .mud-tab:not(.mud-tab-active) { background: var(--m6-reiter, #d3dde7) !important; color: var(--m6-reiter-schrift, #2e4052) !important; }
html .ansicht.rahmen6 .formular-reiter .mud-tab.mud-tab-active { background: var(--m6-reiter-aktiv, #08786f) !important; color: var(--m6-reiter-aktiv-schrift, #fff) !important; border-color: transparent !important; }
html .ansicht.rahmen6 .formular-reiter .mud-tab.mud-tab-active .mud-icon-root { color: inherit !important; }
html .ansicht.rahmen6 .formular-reiter .mud-tabs-tabbar { border-bottom-color: var(--m6-reiter-aktiv, #08786f); }
/* Knöpfe im Maskenmenü */
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf .mud-icon-root { color: var(--m6-symbol, #5f6b78) !important; }
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf[data-taste="Neu"] .mud-icon-root { color: var(--m6-symbol-neu, #0f6e56) !important; }
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf:is([data-oeffnen], [data-taste="Rueckgaengig"]) .mud-icon-root { color: var(--m6-symbol-oeffnen, #b25e09) !important; }
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf:is([data-taste="Loeschen"], .rot, .gefahr) .mud-icon-root { color: var(--m6-symbol-loeschen, #b42318) !important; }
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) { background: var(--m6-speichern, #0f7a6c) !important; color: var(--m6-speichern-schrift, #fff) !important; }
html .fenster .ansicht.rahmen6 .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) .mud-icon-root { color: var(--m6-speichern-schrift, #fff) !important; }
/* Knöpfe unten */
html .ansicht.rahmen6 .fuss-knoepfe .mf-knopf:not(.hell) { background: var(--m6-speichern, #0f7a6c) !important; color: var(--m6-speichern-schrift, #fff) !important; border-color: transparent !important; }
html .ansicht.rahmen6 .fuss-knoepfe .mf-knopf.hell { background: var(--m6-knopf, #fff) !important; color: var(--m6-knopf-schrift, #385267) !important; border: 1px solid var(--m6-knopf-linie, #c7d6e4) !important; }
html .ansicht.rahmen6 .fuss-knoepfe .mf-knopf .mud-icon-root { color: inherit !important; }
/* Ecken */
.ansicht.rahmen6 :is(.mf-knopf, .mf-suche, .mf-auswahl, .mud-tab, .ft-filter input, .zuordnung-box) { border-radius: var(--m6-r) !important; }
.ansicht.rahmen6 .ansicht-liste input, .ansicht.rahmen6 .ansicht-liste select, .ansicht.rahmen6 .ansicht-liste .mud-input-outlined-border { border-radius: var(--m6-r) !important; }
/* ab 3.99.327 (Rene 18.11.2026 19:32): Zeilenabstand der Liste je Benutzer und Liste (Spalten anpassen) und Schnellwahl der gespeicherten Ansicht */
.filtertabelle table.ft.ft-zeilen-eng tbody td { height: calc(18px * var(--s)) !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.15; }
.filtertabelle table.ft.ft-zeilen-weit tbody td { height: calc(30px * var(--s)) !important; padding-top: calc(3px * var(--s)) !important; padding-bottom: calc(3px * var(--s)) !important; }
.filtertabelle .ft-ansicht { height: calc(24px * var(--s)); font-size: .76rem; border: 1px solid var(--mf-linie, #c9d6e2); background: #fff; color: var(--mf-text, #263a4c); padding: 0 4px; margin-right: 8px; max-width: 220px; border-radius: 0; }
.spalten-dialog .sp-rahmen { margin: 0 0 10px; padding: 6px 10px 8px; }
.spalten-dialog .sp-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; font-size: .76rem; }
.spalten-dialog .sp-zeile > label:first-child { width: 110px; flex: none; }
.spalten-dialog .sp-auswahl { height: calc(24px * var(--s)); min-width: 240px; font-size: .78rem; border: 1px solid var(--mf-linie, #c9d6e2); background: #fff; padding: 0 4px; }
.spalten-dialog .sp-auswahl.sp-schmal { min-width: 120px; }
.spalten-dialog .sp-name { height: calc(24px * var(--s)); min-width: 240px; font-size: .78rem; border: 1px solid var(--mf-linie, #c9d6e2); padding: 0 6px; }
.spalten-dialog .sp-haken-text { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; cursor: pointer; }
/* ab 3.99.327/328 (Rene 18.11.2026 20:42/21:42): Datensatzfilter – Knopf „Filter“ oben links vor „Zurücksetzen“ (vorerst Adressen) */
.filtertabelle .ft-filter-knopf.aktiv { color: #fff !important; background: var(--mud-palette-primary, #0f7a6c) !important; border-color: var(--mud-palette-primary, #0f7a6c) !important; }
.filtertabelle .ft-filter-zahl { margin-left: 4px; font-weight: 600; }
.filtertabelle .ft-filter-knopf.aktiv .mud-icon-root { color: #fff !important; }
.dsf-dialog .dsf-op, .dsf-dialog .dsf-wert { height: calc(24px * var(--s)); font-size: .78rem; border: 1px solid #c9d6e2; background: #fff; padding: 0 5px; border-radius: 0; min-width: 0; }
.dsf-dialog .dsf-und { color: #5f6b78; }
.dsf-dialog .dsf-leeren { border: 0; background: none; color: #5f6b78; cursor: pointer; }
.dsf-dialog .dsf-tipp { margin: 8px 0 0; padding: 0 2px; box-sizing: border-box; width: 0; min-width: 100%; } /* ab 3.99.340: Hinweis bestimmt die Breite nicht mit */
.dsf-dialog .dsf-raster { width: max-content; }
/* ab 3.99.328 (Rene 18.11.2026 21:41 „die Liste kannst oben lassen“, Definition.ListeOben): Liste über dem Formular – Aussehen sonst wie alle Masken */
.ansicht.liste-oben > .ansicht-liste { order: 1; flex: 0 0 32%; min-height: calc(90px * var(--s)); }
.ansicht.liste-oben > .ansicht-teiler { order: 2; }
.ansicht.liste-oben > .ansicht-formular { order: 3; flex: 1 1 auto !important; max-height: none !important; min-height: 0; }
.ansicht.liste-oben.liste-zu > .ansicht-liste { display: none; }
/* ab 3.99.328 (Rene 18.11.2026 21:42/21:43): etwas mehr Abstand zwischen Liste und Maskenmenü; Rahmen direkt unter den Reitern */
.ansicht.liste-oben > .ansicht-teiler { height: calc(16px * var(--s)); }
.ansicht.liste-oben .mud-tabs-panels .rahmen-raster { margin-top: 0 !important; }
/* ab 3.99.328 (Rene 18.11.2026 21:47): Adresstypen-Tabelle im selben Design wie die Liste – Kopf wie der Listenkopf, Zeilen weiß und abwechselnd hinterlegt */
.jn-tabelle th { font-size: .74rem; color: #41586a; background: #f1f5f8; border-bottom: 1px solid #cfd9e6; padding: 5px 8px; }
.jn-tabelle tbody tr td { background: #fff; border-bottom: 1px solid #e5ebf0; }
.jn-tabelle tbody tr:nth-child(even) td { background: #f3f6f9; }
.jn-tabelle tbody tr:hover td { background: #eaf3f1; }
/* ab 3.99.328 (Rene 18.11.2026 21:48 „Adressnummer bitte ohne Feld, einfach den Text“) */
.feld[data-spalte="adr_Adressnummer"] .mud-input.mud-input-outlined { background: transparent !important; }
.feld[data-spalte="adr_Adressnummer"] .mud-input-outlined-border { border-color: transparent !important; }
.feld[data-spalte="adr_Adressnummer"] .mud-input.mud-input-outlined input.mud-input-root { padding-left: 0 !important; color: var(--mf-text, #263a4c) !important; font-weight: 600; }
/* ab 3.99.328 (Rene 18.11.2026 21:50 „die Zeilenhöhe ein wenig höher“): Eingabefelder der Masken etwas höher (16 → 18 px Text, Rahmen ca. 25 px) */
.feld-eingabe .mud-input.mud-input-outlined input.mud-input-root { height: calc(23px * var(--s)) !important; }
.feld-eingabe .mud-input.mud-input-outlined:not(:has(textarea)) { height: calc(23px * var(--s)) !important; min-height: calc(23px * var(--s)) !important; }
.feld-eingabe input.berechnet { padding-top: calc(4px * var(--s)); padding-bottom: calc(4px * var(--s)); }
html .fenster .feld[data-spalte="adr_Adressnummer"] .feld-eingabe :is(.mud-input-control, .mud-input, .mud-input-slot, input, fieldset) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html .fenster .feld[data-spalte="adr_Adressnummer"] .feld-eingabe .mud-input-outlined-border { border: 0 !important; }
.feld[data-spalte="adr_Adressnummer"] { --th-feld-gesperrt: transparent; --mf-gesperrt: transparent; }
html body .fenster .feld[data-spalte="adr_Adressnummer"] .feld-eingabe .mud-input.mud-input-outlined:has(input):has(input) { background: transparent !important; }
/* ab 3.99.329 (Rene 18.11.2026 22:19): Datensatzfilter waagrecht – Spalten wie in der Liste, darunter Vergleich und Wert; Kopf grün wie das Suchfenster */
.dsf-dialog .dsf-raster-rand { overflow-x: auto; border: 1px solid #c9d6e2; }
.dsf-dialog .dsf-raster { display: grid; min-width: min-content; }
.dsf-dialog .dsf-kopf { background: #f1f5f8; color: #41586a; font-size: .74rem; font-weight: 600; padding: 5px 8px; border-bottom: 1px solid #cfd9e6; border-right: 1px solid #e3e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsf-dialog .dsf-zelle { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-right: 1px solid #e3e7eb; min-width: 0; }
.dsf-dialog .dsf-zelle.gefiltert { box-shadow: inset 0 0 0 2px var(--mud-palette-primary, #0f7a6c); }
.dsf-dialog .dsf-werte { display: flex; gap: 4px; align-items: center; min-width: 0; }
.dsf-dialog .dsf-werte .dsf-wert { flex: 1 1 0; }
.dsf-dialog .dsf-op { width: 100%; }
.mud-dialog.dsf-dialog .mud-dialog-content { background: #f4f7fb; padding-top: 14px !important; }
.mud-dialog.dsf-dialog .dsf-raster-rand { background: #fff; }
.mud-dialog:is(.dsf-dialog, .spalten-dialog) .mud-dialog-actions { background: #eef2f8; border-top: 1px solid #dbe3ee; padding: 10px 18px; gap: 8px; }
.mud-dialog:is(.dsf-dialog, .spalten-dialog) .mud-dialog-actions .mf-knopf { min-width: 96px; justify-content: center; border-radius: 6px; font-size: .78rem; }
.mud-dialog.dsf-dialog .mud-dialog-actions > span.text-zweitrangig { background: #fff; border: 1px solid #d3dce8; border-radius: 14px; padding: 3px 12px; font-size: .78rem; color: #2c3e57; }
.mud-dialog.dsf-dialog .mud-dialog-title::before {
    content: ""; width: 22px; height: 22px; flex: 0 0 22px; background: #fff; opacity: .9;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61'/></svg>") center / contain no-repeat;
}
/* ab 3.99.329 (Rene 18.11.2026 22:25): Zeilenabstand mit vier Stufen, Schriftgröße der Liste je Benutzer und Liste */
.filtertabelle table.ft.ft-zeilen-mittel tbody td { height: calc(25px * var(--s)) !important; padding-top: calc(2px * var(--s)) !important; padding-bottom: calc(2px * var(--s)) !important; }
.filtertabelle table.ft.ft-schrift-klein :is(tbody td, thead th) { font-size: .7rem !important; }
.filtertabelle table.ft.ft-schrift-gross :is(tbody td, thead th) { font-size: .86rem !important; }
.filtertabelle table.ft.ft-schrift-sehrgross :is(tbody td, thead th) { font-size: .96rem !important; }
.spalten-dialog .sp-zeile > label.sp-zweit { width: auto; margin-left: 18px; }
/* ab 3.99.329 (Rene 18.11.2026 22:28 „myfactory macht das mit Pixel“): Zeilenabstand 0–7 px über und unter dem Text */
.filtertabelle table.ft.ft-zeilen-0 tbody td { height: auto !important; padding-top: 0px !important; padding-bottom: 0px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-1 tbody td { height: auto !important; padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-2 tbody td { height: auto !important; padding-top: 2px !important; padding-bottom: 2px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-3 tbody td { height: auto !important; padding-top: 3px !important; padding-bottom: 3px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-4 tbody td { height: auto !important; padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-5 tbody td { height: auto !important; padding-top: 5px !important; padding-bottom: 5px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-6 tbody td { height: auto !important; padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.3; }
.filtertabelle table.ft.ft-zeilen-7 tbody td { height: auto !important; padding-top: 7px !important; padding-bottom: 7px !important; line-height: 1.3; }
/* ab 3.99.330 (Rene 18.11.2026 23:48): Rückfragen („Änderungen speichern?“ usw.) mit grünem Kopf und weißer Schrift wie Suchfenster und Datensatzfilter */
.mud-dialog.mud-message-box .mud-dialog-title, html.thema-inntec .mud-dialog.mud-message-box .mud-dialog-title { background: var(--th-akzent, #08786f); color: #fff; padding: 12px 20px; border-bottom: 0; }
.mud-dialog.mud-message-box .mud-dialog-title :is(.mud-typography, h6) { color: #fff !important; font-weight: 600; font-size: 1.1rem; }
.mud-dialog.mud-message-box .mud-dialog-content { padding-top: 14px !important; }

/* ab 3.99.330 (Rene 18.11.2026 23:48 „so bitte machen“ – Variante A): Maskenmenü als grünes Band in allen Masken (Grundregel 19) */
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste { background: #0f7a6c !important; border: 0 !important; padding: calc(3px * var(--s)) calc(8px * var(--s)) !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste :is(.mf-knopf, .mf-knopf.hell, .mf-knopf.klein, .mf-navi) { color: #fff !important; background: transparent !important; border-color: transparent !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste :is(.mf-knopf, .mf-navi) .mud-icon-root { color: #fff !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste :is(.mf-knopf, .mf-navi):hover:not(:disabled) { background: rgba(255, 255, 255, .16) !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste :is(.mf-knopf, .mf-navi):disabled { opacity: .5 !important; background: transparent !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) { background: #fff !important; color: #0f7a6c !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled) .mud-icon-root { color: #0f7a6c !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .leiste-trenner { background: rgba(255, 255, 255, .4) !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste :is(.leiste-status, .leiste-schalter, label, .text-zweitrangig) { color: #fff !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .leiste-modus { background: #fff !important; color: var(--mf-text, #263a4c) !important; border-color: #fff !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .leiste-modus.bearbeiten { background: #fff1bf !important; color: #854f0b !important; }
/* ab 3.99.330 (Rene 18.11.2026 23:53): Sortierpfeil in der Liste genau mittig (als Dreieck gezeichnet statt Zeichen ▲/▼) und etwas mehr Abstand zum Text */
:is(table.ft, .suche-treffer) th .sortpfeil:is(.auf, .ab) { position: relative; margin-left: calc(7px * var(--s)); width: calc(14px * var(--s)); height: calc(14px * var(--s)); font-size: 0; }
:is(table.ft, .suche-treffer) th .sortpfeil:is(.auf, .ab)::before { content: ""; position: absolute; left: 50%; top: 50%; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
:is(table.ft, .suche-treffer) th .sortpfeil.auf::before { border-bottom: 5px solid #fff; transform: translate(-50%, -60%); }
:is(table.ft, .suche-treffer) th .sortpfeil.ab::before { border-top: 5px solid #fff; transform: translate(-50%, -40%); }
/* ab 3.99.330 (Rene 18.11.2026 23:57 „achte auf die Schriftgröße“): ☰-Menü der Liste in Feldgröße, darunter die gespeicherten Ansichten */
.ft-listenmenue-pop .mud-menu-item, .ft-listenmenue-pop .mud-menu-item :is(.mud-typography, p, span) { font-size: .78rem !important; }
.ft-listenmenue-pop .mud-menu-item { padding-top: 3px !important; padding-bottom: 3px !important; min-height: 0 !important; }
.ft-listenmenue-pop .mud-menu-item .mud-icon-root { font-size: 17px !important; }
.ft-listenmenue-pop .ft-menue-titel { font-size: .7rem; color: #0f7a6c; text-transform: uppercase; letter-spacing: .03em; padding: 6px 16px 2px; }
/* ab 3.99.330 (Rene 19.11.2026 00:03): ein kleines + im Spaltenkopf der Unterliste (Größe wie das ✕) */
.unterzeile-raster.kopf .ul-plus-kopf { display: flex; justify-content: center; align-items: center; }
.ul-plus-knopf { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--mud-palette-primary, #0f7a6c); display: inline-flex; border-radius: 3px; }
.ul-plus-knopf .mud-icon-root { font-size: calc(18px * var(--s)); }
.ul-plus-knopf:hover { background: rgba(15, 122, 108, .1); }
/* ab 3.99.330 (Rene 19.11.2026 00:05): Ansicht-Auswahl über der Liste im Stil der Knöpfe „Filter“/„Zurücksetzen“ (bleibt rechts) */
.filtertabelle select.ft-ansicht { height: calc(22px * var(--s)); font-size: .74rem; font-weight: 600; color: #385267; background-color: #fff; border: 1px solid #c7d6e4; border-radius: 5px; padding: 0 calc(8px * var(--s)); font-family: inherit; cursor: pointer; }
.filtertabelle select.ft-ansicht:hover { border-color: #9fb6cb; background-color: #f7fafc; }
/* ab 3.99.330 (Rene 19.11.2026 00:07, Vorschlag 1): Kommunikation wie die Anschrift – Art als Beschriftung links, Nummer im Feld, ✕ rechts; ein + oben rechts */
.unterbereich.ul-wie-felder .unterzeile-raster { grid-template-columns: calc(115px * var(--s)) minmax(0, 1fr) calc(28px * var(--s)) !important; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: calc(3px * var(--s)) 0 !important; }
.unterbereich.ul-wie-felder { position: relative; }
/* ab 3.99.331 (Rene 19.11.2026 00:42 „weiße Linie gehört nicht dazu“): fester Kopfstreifen ohne Fläche */
.unterbereich.ul-wie-felder .ul-kopf-fest { background: transparent !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.unterbereich.ul-wie-felder .unterzeile-raster.kopf { display: block !important; height: 0; min-height: 0; padding: 0 !important; overflow: visible; }
.unterbereich.ul-wie-felder .unterzeile-raster.kopf > span:not(.ul-plus-kopf) { display: none; }
.unterbereich.ul-wie-felder .unterzeile-raster.kopf > .ul-plus-kopf { position: absolute; right: 0; top: calc(-24px * var(--s)); width: calc(28px * var(--s)); }
.unterbereich.ul-wie-felder .unterzeile-raster::before, .unterbereich.ul-wie-felder .unterzeile-raster.gewaehlt::before { display: none !important; }
.unterbereich.ul-wie-felder .ul-beschriftung { font-size: .76rem; color: var(--th-beschriftung, #4d6075); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
/* ab 3.99.330 (Rene 19.11.2026 00:08, Variante A): Griffpunkte zum Verschieben kleiner und heller */
.jn-tabelle td.jn-griff span { color: #c3ccd5 !important; }
.jn-tabelle td.jn-griff span .mud-icon-root { font-size: 13px !important; width: 13px; height: 13px; }
.jn-tabelle tr:hover td.jn-griff span { color: var(--mf-gruen, #0f7a6c) !important; }
.ul-griff { color: #c3ccd5 !important; font-size: 11px !important; }
.ul-griff:hover { color: var(--mf-gruen, #0f7a6c) !important; }
.unterbereich.ul-wie-felder .ul-zeilen { margin-top: 0; }
.dsf-dialog .dsf-plus { align-self: flex-start; border: 0; background: none; color: var(--mud-palette-primary, #0f7a6c); font-size: 1rem; line-height: 1; padding: 0 2px; cursor: pointer; font-weight: 600; }
.dsf-dialog .dsf-zweite { display: flex; align-items: center; gap: 4px; border-top: 1px dashed #d0d5db; padding-top: 4px; }
.dsf-dialog .dsf-verkn { font: inherit; font-size: .7rem; font-weight: 600; color: var(--mud-palette-primary, #0f7a6c); border: 1px solid #cfd8d6; background: #fff; padding: 1px 4px; }
/* ab 3.99.331 (Rene 19.11.2026 00:44 Variante B): Sortiersymbol als schlichtes grünes Dreieck ohne Kreis */
html body :is(table.ft, .suche-treffer) th .sortpfeil:is(.auf, .ab) { background: transparent !important; border-radius: 0 !important; width: calc(10px * var(--s)); height: calc(10px * var(--s)); margin-left: calc(6px * var(--s)); }
html body :is(table.ft, .suche-treffer) th .sortpfeil:is(.auf, .ab)::before { border-left-width: calc(4.5px * var(--s)); border-right-width: calc(4.5px * var(--s)); }
html body :is(table.ft, .suche-treffer) th .sortpfeil.auf::before { border-bottom: calc(6px * var(--s)) solid #0f7a6c; transform: translate(-50%, -55%); }
html body :is(table.ft, .suche-treffer) th .sortpfeil.ab::before { border-top: calc(6px * var(--s)) solid #0f7a6c; transform: translate(-50%, -45%); }
/* ab 3.99.331 (Rene 19.11.2026 00:45): Rahmen, die oben an die grüne Reiterlinie stoßen, ohne gerundete Ecken oben */
html body .fenster .rahmen-raster > .rahmen, html body .fenster .rahmen-raster > .rahmen-stapel > .rahmen:first-child { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
/* ab 3.99.332 (Rene 19.11.2026 00:59 „Klein wird nicht kleiner, nur enger“): Schriftgröße der Liste gegen Design-Regeln durchsetzen,
   auch für Inhalte in den Zellen; Schritte deutlich (Normal = Grundschrift 13px) */
html body .fenster .filtertabelle table.ft.ft-schrift-klein :is(tbody td, thead th, tbody td *, thead th *:not(.sortpfeil)) { font-size: calc(11.5px * var(--s)) !important; letter-spacing: normal !important; }
html body .fenster .filtertabelle table.ft.ft-schrift-gross :is(tbody td, thead th, tbody td *, thead th *:not(.sortpfeil)) { font-size: calc(14.5px * var(--s)) !important; letter-spacing: normal !important; }
html body .fenster .filtertabelle table.ft.ft-schrift-sehrgross :is(tbody td, thead th, tbody td *, thead th *:not(.sortpfeil)) { font-size: calc(16px * var(--s)) !important; letter-spacing: normal !important; }
/* ab 3.99.332 (Rene 19.11.2026 01:18 „Ansprechpartner so wie die Kommunikation“): schlichte Zeilen – kein Band, keine Streifen,
   + oben rechts statt „Zeile hinzufügen“, Spaltenköpfe wie Feldbeschriftungen; gewählte Zeile mit grünem Strich links */
.unterbereich.ul-schlicht .ul-kopf-fest { background: transparent !important; }
.unterbereich.ul-schlicht .unterzeile-raster { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-top: calc(3px * var(--s)) !important; padding-bottom: calc(3px * var(--s)) !important; }
.unterbereich.ul-schlicht .unterzeile-raster.kopf > span { font-size: .76rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--th-beschriftung, #4d6075); }
.unterbereich.ul-schlicht .unterzeile-raster:not(.kopf)::before, .unterbereich.ul-schlicht .unterzeile-raster:not(.kopf):hover::before { background: transparent !important; }
.unterbereich.ul-schlicht .unterzeile-raster.gewaehlt:not(.kopf)::before, .unterbereich.ul-schlicht .unterzeile-raster.gewaehlt:not(.kopf):hover::before { background: transparent !important; border-left-color: var(--mf-gruen, #0f7a6c) !important; left: calc(-6px * var(--s)); }
/* ab 3.99.332: Symbol im Feldknopf (Telefon, Brief, Link) – grün wie im Entwurf */
.feld-knopf .feld-knopf-symbol { font-size: calc(15px * var(--s)) !important; width: calc(15px * var(--s)); height: calc(15px * var(--s)); color: var(--mf-gruen, #0f7a6c); vertical-align: middle; }
.unterbereich.ul-wie-felder .feld-knopf { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.unterbereich.ul-wie-felder .feld-knopf:hover:not(:disabled) { border-color: var(--mf-feldrand, #c3ccd5) !important; }
/* ab 3.99.332 (Rene 19.11.2026 01:24): Abstand zwischen gestapelten Rahmen (Anschrift ↔ Kommunikation) so breit wie zwischen den Spalten */
html body .rahmen-stapel { gap: calc(8px * var(--s)) !important; }
html body .rahmen-raster { row-gap: calc(8px * var(--s)) !important; }
.unterbereich.ul-schlicht .unterbereich-kopf:not(:has(button, a, input, select)) { display: none !important; }
/* ab 3.99.334 (Rene 19.11.2026 07:09 „Software-Update: oben dunkle Schrift, die beiden Schalter sind nicht gut sichtbar“):
   Schalter im grünen Maskenmenü als helle Kästchen mit dunkler Schrift (an = weiß mit grünem Rand) */
html:not(.mm-x1):not(.mm-x2):not(.mm-x3) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste label.su-ohne, html:not(.mm-x1):not(.mm-x2):not(.mm-x3) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste label.su-ohne * { color: #1f2a2a !important; }
html:not(.mm-x1):not(.mm-x2):not(.mm-x3) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste label.su-ohne { background: #f3f7f6 !important; color: #1f2a2a !important; border: 1px solid rgba(255,255,255,.7) !important; border-radius: 0 !important; padding: calc(2px * var(--s)) calc(8px * var(--s)) !important; }
html:not(.mm-x1):not(.mm-x2):not(.mm-x3) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste label.su-ohne:is(.an, .an-blau) { background: #fff !important; color: #0b4f45 !important; font-weight: 600; }
html:not(.mm-x1):not(.mm-x2):not(.mm-x3) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste label.su-ohne input { accent-color: #0f7a6c; }
/* ab 3.99.334: leere Maske ohne Datensatz – Hülle ohne eigene Optik, Felder gesperrt */
fieldset.formular-leer-huelle { border: 0; margin: 0; padding: 0; min-width: 0; display: contents; }
/* ab 3.99.334: Projektliste oben im Projekte-Dashboard */
.pj-liste-oben { margin: calc(8px * var(--s)) calc(8px * var(--s)) calc(10px * var(--s)); }
.pj-liste-oben .ft-bereich { max-height: calc(320px * var(--s)); }
/* ab 3.99.336 (Rene 19.11.2026 11:58 „im Roten soll die Karte hin“): Karte rechts neben Breiten-/Längengrad und Umkreis */
.formular-raster > div:has(> .karte-feld) { grid-column: 13 / -1 !important; grid-row: 1 / span 6; align-self: stretch; }
.karte-feld { display: flex; flex-direction: column; gap: calc(4px * var(--s)); height: 100%; min-height: calc(230px * var(--s)); }
.karte-feld .karte-flaeche { flex: 1; min-height: calc(200px * var(--s)); border: 1px solid #c3ccd5; background: #eef2f3; position: relative; }
.karte-feld .karte-ohne { display: flex; align-items: center; justify-content: center; gap: 8px; color: #64706e; font-size: .76rem; padding: 10px; text-align: center; }
.karte-feld .karte-knoepfe { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.karte-feld .karte-knoepfe a.mf-knopf { text-decoration: none; }
.karte-feld .karte-hinweis { font-size: .7rem; color: #64706e; margin-right: auto; }
.karte-feld .karte-eingabe { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.karte-feld .karte-eingabe input { flex: 1; min-width: 200px; font: inherit; font-size: .78rem; padding: 3px 6px; border: 1px solid #c3ccd5; border-radius: 0; }
.karte-feld .karte-fehler { color: #b3261e; font-size: .74rem; width: 100%; }
.karte-feld .maplibregl-ctrl-attrib { font-size: 10px; }
.karte-feld .maplibregl-canvas { cursor: crosshair; }
/* ab 3.99.336: Administration → Karten */
.karten-inhalt { padding: calc(10px * var(--s)); display: grid; gap: calc(8px * var(--s)); max-width: 900px; }
.karten-stand { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; padding: 4px 0; }
.karten-stand div { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; }
.karten-stand span { font-size: .7rem; color: #64706e; text-transform: uppercase; letter-spacing: .03em; }
.karten-wahl { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; }
.karten-wahl label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; color: #4d6075; }
.karten-wahl select { font: inherit; font-size: .78rem; padding: 3px 6px; border: 1px solid #c3ccd5; border-radius: 0; background: #fff; min-width: 260px; }
.karten-fortschritt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .78rem; margin: 6px 0; }
.karten-balken { width: 260px; height: 8px; background: #e3e9ec; }
.karten-balken div { height: 100%; background: #0f7a6c; transition: width .4s; }
.karten-fehlertext { color: #b3261e; font-size: .78rem; }
/* ab 3.99.337: Band nur mit Titel, Knopf neben der Auswahl, Größe, Pause */
.karten-ansicht .masken-leiste-titel { color: inherit; font-weight: 600; font-size: .82rem; padding: 0 6px; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .masken-leiste-titel { color: #fff; }
.karten-wahl { align-items: flex-end; flex-wrap: nowrap; }
.karten-wahl label { flex: 0 1 auto; min-width: 0; }
.karten-wahl label select { min-width: 0; width: 100%; max-width: 330px; }
@media (max-width: 760px) { .karten-wahl { flex-wrap: wrap; } }
.karten-wahl > .mf-knopf { height: 28px; flex: 0 0 auto; white-space: nowrap; }
.karten-groesse { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: #2a3a4c; margin: 2px 0 8px; }
.karten-groesse .mud-icon-root { font-size: 1.1rem; color: #0f7a6c; }
.karten-hinweis-offen { font-size: .78rem; color: #8a5a00; background: #fff7e6; border: 1px solid #f0d9a8; padding: 6px 8px; margin: 0 0 8px; }
.karten-pause { color: #8a5a00; font-weight: 600; font-size: .78rem; }
.karten-rest { color: #0f7a6c; font-weight: 600; font-size: .78rem; }
.karten-knoepfe { margin-top: 8px; }
.karten-hinweise { margin: 6px 0 0 18px; padding: 0; font-size: .76rem; color: #4d6075; display: grid; gap: 3px; }
/* ab 3.99.336 (Rene 19.11.2026 11:59 „die Datumssymbole bei Beginn und Ende sind zu weit rechts – bitte einrücken“) */
html body .feld-eingabe .mud-picker .mud-input.mud-input-adorned-end { padding-right: calc(6px * var(--s)) !important; }
html body .feld-eingabe .mud-picker .mud-input-adornment-end { margin-right: 0 !important; }
html body .feld-eingabe .mud-picker .mud-input-clear-button { margin-right: calc(2px * var(--s)) !important; }
/* ab 3.99.336 (Rene 19.11.2026 12:08 Variante B): Zeitraum in der grünen Leiste der Projekte – weiß umrandet, gewählter Zeitraum weiß gefüllt;
   „nur meine“ als Umschalter im selben Stil */
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .pj-dash-l { color: rgba(255,255,255,.85) !important; font-size: .76rem; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .sh-stat-zeitraum { display: inline-flex; border: 1px solid rgba(255,255,255,.75) !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; gap: 0 !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .sh-stat-zeitraum button { background: transparent !important; color: #fff !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.4) !important; border-radius: 0 !important; padding: calc(2px * var(--s)) calc(10px * var(--s)) !important; font-size: .76rem !important; box-shadow: none !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .sh-stat-zeitraum button:last-child { border-right: 0 !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .sh-stat-zeitraum button:hover { background: rgba(255,255,255,.15) !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .sh-stat-zeitraum button.an { background: #fff !important; color: #0b4f45 !important; font-weight: 600; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .korr-filter { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.75) !important; border-radius: 0 !important; padding: calc(2px * var(--s)) calc(10px * var(--s)) !important; font-size: .76rem !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster .formular-leiste.masken-leiste.pj-start-leiste .korr-filter.an { background: #fff !important; color: #0b4f45 !important; font-weight: 600; }
/* ab 3.99.337 (Rene 19.11.2026 12:29 „die Tabelle unten bei Kurse muss optisch so sein wie oben“): Unterlisten mit Tabellenkopf
   im Stil der Listen oben – grauer Kopf mit Trennlinie, Zeilen abwechselnd weiß/hell, gewählte Zeile hellgrün mit grünem Strich (statt blauem Band) */
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster.kopf { background: #f1f5f8; border-bottom: 1px solid #cfd9e6; padding-top: calc(4px * var(--s)); padding-bottom: calc(4px * var(--s)); margin-bottom: 0 !important; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster.kopf > span { color: #41586a !important; font-weight: 600; font-size: .74rem !important; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster:not(.kopf) { margin-bottom: 0 !important; padding-top: calc(2px * var(--s)); padding-bottom: calc(2px * var(--s)); border-bottom: 1px solid #edf1f4; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster:not(.kopf):has(input):nth-child(odd)::before { background: #f9fbfd; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster:not(.kopf):has(input):nth-child(even)::before { background: #fff; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster:not(.kopf):has(input):hover::before { background: #eef3f6; }
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster.gewaehlt::before,
.unterbereich:not(.ul-schlicht):not(.ul-wie-felder) .unterzeile-raster.gewaehlt:hover::before { background: #e7f5f2 !important; border-left-color: #08786f !important; }

/* ab 3.99.342 (Rene 19.11.2026 22:09): Grundlagen → Währungen – Kursverlauf rechts neben den Kursen */
.ul-begleit[data-begleit^="waehrungen."] { --bt-breite: 560px; }
.kv { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; }
.kv-leiste { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kv-luecke { flex: 1; }
.kv-knopf { all: unset; cursor: pointer; padding: 3px 8px; border: 1px solid var(--mf-linie, #dbe3ea); background: #fff; color: #334; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; }
.kv-knopf:hover { background: #e3f1ee; }
.kv-knopf.an { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.kv-einstellen { display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 8px; border: 1px solid var(--mf-linie, #dbe3ea); background: #f6faf9; }
.kv-einstellen label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-right: 10px; }
.kv-gruppe { flex-basis: 100%; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kv-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kv-zahlen > div { display: flex; flex-direction: column; padding: 4px 6px; border: 1px solid var(--mf-linie, #dbe3ea); }
.kv-zahlen span { color: #667; font-size: .7rem; }
.kv-zahlen b { font-size: .95rem; }
.kv-zahlen small { color: #667; font-size: .68rem; }
.kv-zahlen .plus { color: #15803d; }
.kv-zahlen .minus { color: #b91c1c; }
.kv-bild { position: relative; }
.kv-bild svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.kv-gitter { stroke: #e5ebef; stroke-width: 1; }
.kv-achse { fill: #667; font-size: 12px; }
.kv-zeiger { stroke: #889; stroke-width: 1; stroke-dasharray: 3 3; }
.kv-hand { fill: #fff; stroke: #d97706; stroke-width: 2; }
.kv-tipp { position: absolute; top: 4px; transform: translateX(-50%); background: #fff; border: 1px solid var(--mf-linie, #dbe3ea); box-shadow: 0 2px 6px rgba(0,0,0,.12);
    padding: 4px 8px; pointer-events: none; white-space: nowrap; font-size: .72rem; z-index: 2; }
.kv-tipp i, .kv-legende i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; }
.kv-legende { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kv-legende small { color: #667; }
.kv-leer { padding: 20px 6px; color: #667; }

/* ab 3.99.344 (Rene 19.11.2026 23:25–23:31): Währungen – Kurse als Liste mit Kursverlauf rechts; Stand des Abrufs in der Formularleiste */
.wk { display: grid; grid-template-columns: var(--wk-l, 480px) 8px minmax(0, 1fr); gap: 0; align-items: start; }
.wk > .inv-griff { align-self: stretch; cursor: col-resize; position: relative; margin: 0 2px; }
.wk > .inv-griff::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; right: auto; width: 2px; border: 0; background: var(--mf-linie, #dbe3ea); }
.wk > .inv-griff:hover, .wk.zieht > .inv-griff { background: transparent; }
.wk > .inv-griff:hover::after, .wk.zieht > .inv-griff::after { background: var(--mf-gruen, #0f7a6c); }
.wk-liste .filtertabelle .wk-abstand { padding-left: 18px !important; }
.wk-links { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-liste { height: 520px; /* wird per mrr.bisUnten bis zum Fensterrand verlängert */ display: flex; flex-direction: column; min-height: 0; }
.wk-liste > .filtertabelle { flex: 1 1 auto; min-height: 0; }
.wk-rechts { border: 1px solid var(--mf-linie, #dbe3ea); background: #fff; padding: 0 8px 8px; font-size: .78rem; }
.wk-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--mf-gruen, #0f7a6c); background: #f4faf9; font-size: .8rem; }
.wk-edit label { display: inline-flex; align-items: center; gap: 6px; }
.wk-edit input { height: 28px; padding: 0 6px; border: 1px solid var(--mf-linie, #c9d4dc); }
.wk-edit input[inputmode] { width: 110px; text-align: right; }
.wk-quelle { color: #667; }
.wk-fehler { flex-basis: 100%; color: #b91c1c; }
@media (max-width: 1100px) { .wk { grid-template-columns: minmax(0, 1fr); } .wk > .inv-griff { display: none; } }
html body .formular-leiste .wae-stand { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .8rem; padding: 0 8px; white-space: nowrap; }
html body .formular-leiste .wae-stand.fehler { background: #b91c1c; padding: 3px 8px; }

/* ab 3.99.345 (Rene 19.11.2026 23:46 „Scrollbalken bei Suche und Datensatzfilter nur, wenn nötig“): der Inhalt dieser Dialoge scrollt nie quer –
   breite Teile (Spalten des Filters, Trefferliste) haben ihren eigenen Rollbalken; senkrecht nur bei Bedarf */
.mud-dialog:is(.suche-dialog, .dsf-dialog) > .mud-dialog-content { overflow-x: hidden !important; overflow-y: auto; }

/* ab 3.99.345 (Rene 20.11.2026 00:06 „das Kalendersymbol ist zu weit außen – alle Datumsfelder prüfen“): das Eingabefeld drückte das Symbol
   bis an den Rand (Breite 100 % neben dem Symbol) – jetzt schrumpft das Feld, das Symbol sitzt in allen Datumsfeldern (Masken, Unterlisten, Dialoge) innen */
html body .mud-picker .mud-input.mud-input-adorned-end { display: flex !important; align-items: center; padding-right: calc(6px * var(--s)) !important; }
html body .mud-picker .mud-input.mud-input-adorned-end > input { flex: 1 1 auto; min-width: 0; width: auto !important; }
html body .mud-picker .mud-input-adornment-end { flex: 0 0 auto; margin-right: calc(4px * var(--s)) !important; margin-left: 2px; }
html body .mud-picker .mud-input-adornment-end .mud-icon-button { margin-right: 0 !important; margin-left: 0 !important; }

/* ab 3.99.345 (Rene 20.11.2026 00:18–00:20, Variante 2; 00:25 „ein wenig heller“): Kursverlauf – nur Kennzahlen-Kacheln und Diagramm dunkel (Kopf mit Zeitraum bleibt hell),
   Diagramm genau so breit wie die Kacheln; Linie zeichnet sich ein, Fläche blendet auf */
.kv.dunkel .kv-zahlen { gap: 5px; }
.kv.dunkel .kv-zahlen > div { background: linear-gradient(160deg, #1f7a6d 0%, #0f3d37 100%); /* 00:25 Rene: Verlauf grün → dunkelgrün */ border: 0; border-radius: 6px; padding: 5px 8px; }
.kv.dunkel .kv-zahlen span, .kv.dunkel .kv-zahlen small { color: #a6d8ce; }
.kv.dunkel .kv-zahlen b { color: #fff; }
.kv.dunkel .kv-zahlen .plus { color: #5DCAA5; }
.kv.dunkel .kv-zahlen .minus { color: #f28b82; }
.kv.dunkel .kv-bild { background: linear-gradient(170deg, #1d7366 0%, #12443d 55%, #0d3530 100%); border-radius: 6px; padding: 6px 4px 2px; }
.kv.dunkel .kv-gitter { stroke: #2f6860; stroke-dasharray: 2 4; }
.kv.dunkel .kv-achse { fill: #a6d8ce; }
.kv.dunkel .kv-zeiger { stroke: #9fd8ce; stroke-dasharray: 2 3; }
.kv.dunkel .kv-tipp { background: #1f5a52; border-color: #2f6860; color: #e6fbf5; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.kv.dunkel .kv-hand { fill: #174a43; stroke: #f5b14c; }
.kv-zeichnen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kv-zeichnen 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
.kv-auf { opacity: 0; animation: kv-auf 1s ease .6s forwards; }
@keyframes kv-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes kv-auf { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kv-zeichnen { animation: none; stroke-dashoffset: 0; } .kv-auf { animation: none; opacity: 1; } }

/* ab 3.99.347 (Rene 20.11.2026 08:18 „Inventar – Ansichtsproblem, wenn ich die Liste nach oben ziehe“): die gemerkte Listenhöhe darf die Maske
   nie verdrängen (ein auf einem größeren Bildschirm gezogener Wert ist hier evtl. zu groß) und das Raster nie auf wenige Pixel schrumpfen –
   Liste 120 px bis „alles außer 232 px für die Maske“; Maske immer mindestens 200 px, auch bei ausgeblendeter Liste */
.inv-raster.inv-oben { min-height: 420px; grid-template-rows: clamp(120px, var(--inv-ob, 34%), calc(100% - 232px)) 12px minmax(200px, 1fr); }
.inv-raster.inv-oben.liste-zu { grid-template-rows: 0 14px minmax(200px, 1fr) !important; }
.inv-raster.inv-unten { min-height: 420px; }
@media (max-width: 1100px) { .inv-raster.inv-oben { min-height: 0; grid-template-rows: auto; } }
.inv-raster.inv-unten { grid-template-rows: clamp(140px, var(--inv-o, 60%), calc(100% - 158px)) 8px minmax(140px, 1fr); }
@media (min-width: 1101px) { .inv-raster.inv-links { grid-template-columns: min(var(--inv-l, 58%), calc(100% - 388px)) 8px minmax(380px, 1fr); } }
@media (max-width: 1100px) { .inv-raster.inv-unten { min-height: 0; grid-template-rows: auto; } }

/* ab 3.99.348 (Rene 20.11.2026 10:53–11:08): Inntec ONE KI Suche – Gebäude mit leuchtendem Logo, Begriffe fliegen hinein; Hinweis im Band weiß */
html body .kih-ansicht .formular-leiste .kih-hinweis { color: rgba(255,255,255,.85); margin-left: 12px; }
.kis { position: relative; align-self: stretch; height: 300px; overflow: hidden; border-radius: 12px; background: linear-gradient(160deg, #f4fbf9, #e6f3f0);
    border: 1px solid #d3e9e4; display: flex; align-items: center; justify-content: center; }
.kis-mitte { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kis-geb { width: 120px; height: auto; display: block; overflow: visible; }
.kis-text { text-align: center; font-size: .9rem; color: #0b2e2a; }
.kis-text b { font-weight: 600; }
.kis-text small { display: block; color: #5b7a74; font-size: .75rem; transition: opacity .3s; }
.kis-wort { position: absolute; z-index: 2; font-size: .75rem; padding: 3px 10px; border-radius: 999px; color: #fff; white-space: nowrap; pointer-events: none;
    animation: kis-flug 1.7s cubic-bezier(.55, 0, .7, .55) forwards; }
@keyframes kis-flug { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.15); opacity: 0; } }
.kis-neon { stroke: #7ff0d0; fill: none; stroke-width: 1.6; transition: stroke-width .2s, stroke .2s; }
.kis.an .kis-neon { stroke-width: 3; stroke: #c8fff0; }
.kis-fe { fill: #16413b; transition: fill .35s; }
.kis-fe.hell { fill: #7ff0d0; }
.kis-kante { stroke: #2f6860; stroke-width: 1.4; fill: none; transition: stroke .25s; }
.kis.an .kis-kante { stroke: #7ff0d0; }
@media (prefers-reduced-motion: reduce) { .kis-wort { display: none; } }

/* ab 3.99.354 (Rene 20.11.2026 21:59, Grundregel): Auswahlfelder zeigen beim Darüberfahren die Hand – im ganzen Programm */
.aw:not(.gesperrt) .aw-feld, .aw:not(.gesperrt) .aw-feld input, .aw-pfeil, .aw-leeren,
.mf-klickliste:not(.mud-disabled) input:not([readonly]), .mf-klickliste .mud-input-adornment, .mf-klickliste .mud-input-clear-button,
.mud-select:not(.mud-disabled) .mud-input-slot, .mud-select:not(.mud-disabled) input, .mud-select .mud-input-adornment,
select:not(:disabled) { cursor: pointer; }

/* ab 3.99.356 (Rene 20.11.2026 23:17, Grundregel „klappbare Felder beim Aufklappen so breit, dass die Einträge einzeilig bleiben“):
   Listen mindestens so breit wie das Feld, sonst so breit wie der längste Eintrag (höchstens 760 px bzw. 92 % der Breite) */
.mud-popover.mud-popover-adaptive-width { max-width: min(760px, 92vw); }
.mud-popover.mud-popover-adaptive-width .mud-list-item-text, .mud-popover.mud-popover-adaptive-width .mud-list-item-text .mud-typography,
.aw-feld > .aw-liste .aw-eintrag, .aw-feld > .aw-liste li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ab 3.99.387 (Rene 24.11.2026 23:23): „… hinzufügen“ links neben der Überschrift, mit etwas Abstand */
.unterbereich-kopf .ul-neu-links { margin-left: 10px; }

/* ab 3.99.387 (Rene 24.11.2026 23:29): Textsymbol vorne in der Zeile – grau wenn leer, grün sobald ein Text da ist; Klick öffnet das Fenster */
.unterzeile-raster .ul-text-feld { position: relative; align-self: start; text-align: center; padding-top: 2px; }
.ul-text-knopf { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: none;
    cursor: pointer; color: #b4bcc6; }
.ul-text-knopf:hover { color: var(--mf-gruen, #0f7a6c); background: rgba(15, 122, 108, .08); }
.ul-text-knopf.voll { color: var(--mf-gruen, #0f7a6c); }
.ul-text-knopf .mud-icon-root { font-size: 1.15rem; }
.ul-text-popup { position: absolute; left: 0; top: 100%; z-index: 1200; width: 420px; text-align: left;
    background: var(--mf-flaeche, #fff); border: 1px solid var(--mf-linie, #dbe3ea); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ul-text-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 3px 8px;
    background: var(--mf-gruen, #0f7a6c); color: #fff; font-size: .75rem; }
.ul-text-zu { display: inline-flex; align-items: center; border: 0; background: none; color: #fff; cursor: pointer; padding: 2px; }
.ul-text-zu:hover { background: rgba(255, 255, 255, .18); }
.ul-text-popup .rt-rahmen, .ul-text-popup .rt-feld { border: 0; }
.unterzeile-raster:has(> .ul-text-feld > .ul-text-popup) { z-index: 50 !important; }

/* ab 3.99.356: Zahnrad „Spalten anpassen“ über den Listen in der Maske */
.unterbereich-kopf .ul-kopf-rechts { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ul-zahnrad { border: 1px solid transparent; background: none; padding: 2px; cursor: pointer; color: #5b6b78; display: inline-flex; border-radius: 2px; }
.ul-zahnrad:hover { color: #0f7a6c; border-color: #c6ddd8; background: #eef6f4; }
.uls-hinweis { font-size: .8rem; color: #5b6b78; margin-bottom: 8px; }
.uls-tab { width: 100%; border-collapse: collapse; font-size: .85rem; }
.uls-tab th { text-align: left; font-weight: 600; border-bottom: 1px solid #c6ddd8; padding: 4px 6px; }
.uls-tab td { border-bottom: 1px solid #eef3f2; padding: 2px 6px; }
.uls-tab .mitte { text-align: center; } .uls-tab .rechts { text-align: right; }
.uls-tab tr.aus td:nth-child(2) { color: #9aa7b1; }
.uls-pfeile { white-space: nowrap; width: 1%; }
.uls-pfeil { border: none; background: none; padding: 0 1px; cursor: pointer; color: #0f7a6c; }
.uls-pfeil:disabled { color: #c9d3da; cursor: default; }
.uls-fest { color: #8a98a3; font-size: .75rem; margin-left: 4px; }
.uls-breite { width: 96px; text-align: right; border: 1px solid #c9d3da; padding: 2px 4px; }

/* ab 3.99.358 (Rene 21.11.2026 00:29): Kommunikation des Ansprechpartners wie die Kommunikation der Adresse */
.ap-kom-felder { margin-top: calc(4px * var(--s)); }
.ap-kom-felder .unterzeile-raster { display: grid; align-items: center; }
/* ab 3.99.358 (Rene 21.11.2026 00:31 „Inventarium wird nicht korrekt angezeigt“): „Liste oben“ zugeklappt – die ausgeblendete Liste nimmt keine
   Rasterzeile ein, Griff und Gerät rutschten eine Zeile nach oben (Gerät nur 14 px hoch). Zeilen fest zuweisen. */
.inv-raster.inv-oben > .inv-liste { grid-row: 1; }
.inv-raster.inv-oben > .inv-griff { grid-row: 2; }
.inv-raster.inv-oben > .inv-detail { grid-row: 3; }
@media (max-width: 1100px) { .inv-raster.inv-oben > :is(.inv-liste, .inv-griff, .inv-detail) { grid-row: auto; } }

/* ab 3.99.358 (Rene 21.11.2026 00:33): Filterknöpfe der Sendungsverfolgung in den Farben der Spalte „Status“; gewählt = grüner Rahmen innen */
.vv-filter button.vf-unterwegs { background: var(--th-verfolgung-unterwegs, #dbeafe); color: #1e40af; }
.vv-filter button.vf-zustellung { background: var(--th-verfolgung-zustellung, #fef3c7); color: #92400e; }
.vv-filter button.vf-zugestellt { background: var(--th-verfolgung-zugestellt, var(--mf-gruen-bg)); color: var(--mf-gruen-text); }
.vv-filter button.vf-problem { background: var(--th-verfolgung-problem, #fee2e2); color: var(--th-versand-fehler, #b91c1c); }
.vv-filter button:is(.vf-unterwegs, .vf-zustellung, .vf-zugestellt, .vf-problem).an { box-shadow: inset 0 0 0 2px var(--th-akzent, #0f766e); font-weight: 600; }
/* ab 3.99.360 (Rene 21.11.2026 11:47 „Spalten haben öfters unterschiedlichen Abstand – zwischen Bestand und Stand geht das nicht“): in den Tabellen der Masken
   mindestens 8 px links und rechts in jeder Zelle – auch rechtsbündige Zahlen kleben nicht mehr an der nächsten Spalte (Breite ziehen hilft da nicht,
   weil die Zahl am rechten Rand bleibt) */
.mf-tabelle th, .mf-tabelle td { padding-left: max(8px, calc(8px * var(--s))) !important; padding-right: max(8px, calc(8px * var(--s))) !important; }
/* ab 3.99.360: Rahmen ohne Inhalt (z. B. „Freigabe“ bei normalen Lagern) nicht als leeren Streifen zeigen */
fieldset.rahmen:not(:has(> *)) { display: none; }
/* ab 3.99.361 (Rene 21.11.2026 12:53, Tabellen-Grundregel): feine Linien zwischen den Spaltenköpfen – ziehen = Breite, Doppelklick = automatisch */
.unterzeile-raster.kopf > [data-ul-sp]:not(:last-child) { box-shadow: 3px 0 0 -2px #cfd8de; }
.unterzeile-raster.kopf > .ul-rand, body.ul-zieht, body.ul-zieht * { cursor: col-resize !important; }
.unterzeile-raster.kopf > .ul-rand { box-shadow: 3px 0 0 -1px #0f7a6c; }
body.ul-zieht { user-select: none; }
.fenster-inhalt table thead tr:first-child th:not(:last-child) { background-image: linear-gradient(#cfd8de, #cfd8de); background-size: 1px 60%; background-position: right center; background-repeat: no-repeat; }
/* ab 3.99.361 (Rene „das Zahnrad überall gleich klein“): Zahnrad der Listen in der Maske wie das Zahnrad der Listen oben (24 px, Symbol 18 px) */
.ul-zahnrad { width: 24px; height: 24px; padding: 0 !important; align-items: center; justify-content: center; box-sizing: border-box; }
.ul-zahnrad .mud-icon-root { font-size: 18px !important; width: 18px; height: 18px; }
/* ab 3.99.361 (Rene 21.11.2026 13:23 „dieses Feld breiter, damit man alles lesen kann“): Autozoom-Auswahl in der DMS-Vorschau */
.aw.aw-mittel.dms-zoomwahl { width: 270px; }
/* ab 3.99.361: kombiniertes Feld Lager / Lagerplatz – Plätze unter ihrem Lager eingerückt */
.mf-kombi-gruppe { font-weight: 600; }
.mf-kombi-platz { padding-left: 18px; }
/* ab 3.99.361 (Rene 21.11.2026 13:58, Variante A): in Fenstern sieht man, was aktiv ist – grüner Rahmen um Knopf bzw. Feld mit Fokus;
   der Hauptknopf trägt „Enter ↵“ (Enter löst ihn aus, wenn kein Feld und kein anderer Knopf angewählt ist) */
.mud-dialog :is(button, a[href], [role="button"]):focus-visible, .mud-dialog .mf-knopf:focus { outline: 2px solid #0f7a6c !important; outline-offset: 2px; }
.mud-dialog .mf-knopf:not(.hell):focus, .mud-dialog .mf-enter-knopf:focus { outline-color: #0b5e53 !important; }
.mud-dialog :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus { border-color: #0f7a6c !important; background-color: #eef6f4; }
.mud-dialog input[type=checkbox]:focus-visible, .mud-dialog input[type=radio]:focus-visible { outline: 2px solid #0f7a6c; outline-offset: 2px; }
/* ab 3.99.393 (Rene 25.11.2026 20:13 „das Icon Enter weglassen, gilt für das ganze Programm“): der Hinweis „Enter ↵“ am Hauptknopf entfällt;
   Enter löst ihn weiterhin aus, der grüne Rahmen zeigt weiter, was aktiv ist */
/* ab 3.99.361 (Rene 21.11.2026 14:01): Ausrichtung je Spalte in „Spalten anpassen“ */
.ausr-wahl { display: inline-flex; border: 1px solid #c6d2da; border-radius: 2px; overflow: hidden; vertical-align: middle; }
.ausr-wahl button { all: unset; cursor: pointer; width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: #5b6b78; }
.ausr-wahl button + button { border-left: 1px solid #c6d2da; }
.ausr-wahl button:hover { background: #eef6f4; color: #0f7a6c; }
.ausr-wahl button.an { background: #0f7a6c; color: #fff; }
.ausr-wahl button:focus-visible { outline: 2px solid #0f7a6c; outline-offset: -2px; }
.ausr-wahl .mud-icon-root { font-size: 16px; }
:is(th, td).ausr-links { text-align: left !important; }
:is(th, td).ausr-mitte { text-align: center !important; }
:is(th, td).ausr-rechts { text-align: right !important; }
/* ab 3.99.363 (Konsignation): Lagerübersicht – Lagertyp am Lager, Teilsummen */
.lu-typ { font-size: .7rem; padding: 1px 6px; border: 1px solid #b9c6cf; border-radius: 2px; color: #445866; margin-left: 6px; white-space: nowrap; }
.lu-typ.fremd { border-color: #c9a227; color: #7a5d00; background: #fff8e1; }
.lu-typ.gesperrt { border-color: #c0392b; color: #a12a1e; background: #fdecea; }
.lu-ges.klein { font-size: .8rem; color: #5b6b78; }
/* ab 3.99.363 (Chargen): MHD-Hinweis im Fenster „Entnahme aufteilen“ */
.en-mhd { font-size: .7rem; padding: 0 5px; border-radius: 2px; margin-left: 4px; }
.en-mhd.bald { color: #8a5300; background: #fff3db; }
.en-mhd.alt { color: #a12a1e; background: #fdecea; }
/* ab 3.99.363: Chargenauskunft */
.cha { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.cha-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cha-titel { font-weight: 600; font-size: 1rem; margin-right: 12px; }
.cha-suche { width: 260px; height: 30px; border: 1px solid #b9c6cf; border-radius: 2px; padding: 0 8px; }
.cha-suche:focus { outline: none; border-color: #0f7a6c; box-shadow: 0 0 0 1px #0f7a6c; }
/* ab 3.99.363: Inventur */
.inv { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; height: 100%; min-height: 0; }
.inv-links { border-right: 1px solid #dfe5ea; padding: 10px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.inv-links-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.inv-titel { font-weight: 600; }
.inv-titel.klein { font-size: .85rem; }
.inv-eintrag { all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 9px; border: 1px solid #dfe5ea; border-radius: 2px; background: #fff; }
.inv-eintrag:hover { border-color: #0f7a6c; }
.inv-eintrag.an { border-color: #0f7a6c; background: #eef6f4; }
.inv-eintrag .inv-klein { grid-column: 1 / -1; }
.inv-nr { font-weight: 600; }
.inv-nr.gross { font-size: 1.1rem; }
.inv-klein { font-size: .75rem; color: #5b6b78; }
.inv-status { font-size: .7rem; padding: 1px 6px; border-radius: 2px; background: #e8edf1; color: #445866; white-space: nowrap; }
.inv-status.s1 { background: #fff3db; color: #8a5300; }
.inv-status.s2 { background: #e3f4ef; color: #0b5e53; }
.inv-rechts { padding: 10px 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.inv-leer { margin-top: 40px; }
.inv-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-knoepfe { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.inv-schloss { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: #0b5e53; }
.inv-reiter { display: flex; gap: 2px; border-bottom: 2px solid #0f7a6c; }
.inv-reiter button { all: unset; cursor: pointer; padding: 6px 14px; border: 1px solid #c6d2da; border-bottom: 0; border-radius: 2px 2px 0 0; background: #f3f6f8; font-size: .85rem; }
.inv-reiter button.an { background: #0f7a6c; color: #fff; border-color: #0f7a6c; font-weight: 600; }
.inv-einst { display: grid; grid-template-columns: 150px minmax(0, 560px); gap: 8px 12px; align-items: center; }
.inv-einst input[type=text], .inv-einst input[type=date], .inv-einst select, .inv-einst textarea { height: 30px; border: 1px solid #b9c6cf; border-radius: 2px; padding: 0 8px; }
.inv-einst textarea { height: auto; padding: 6px 8px; }
.inv-radio { display: flex; gap: 16px; flex-wrap: wrap; }
.inv-radio label { display: inline-flex; gap: 5px; align-items: center; }
.inv-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.inv-filter input[type=search] { width: 220px; height: 28px; border: 1px solid #b9c6cf; border-radius: 2px; padding: 0 8px; }
.inv-fortschritt { width: 160px; height: 8px; background: #e8edf1; border-radius: 2px; overflow: hidden; display: inline-block; }
.inv-fortschritt span { display: block; height: 100%; background: #0f7a6c; }
.inv-tab td.r, .inv-tab th.r { text-align: right; }
.inv-tab tr.offen td { color: #5b6b78; }
.inv-tab tr.nach td { background: #fff8e1; }
.inv-tab tr.unsicher td { background: #fff3db; }
.inv-tab tr.leer td { background: #fdecea; }
.inv-tab tr.entfernt td { color: #98a4ad; text-decoration: line-through; }
.inv-tab .neg { color: #a12a1e; }
.inv-tab .pos { color: #0b5e53; }
.inv-menge { width: 80px; height: 26px; text-align: right; border: 1px solid #b9c6cf; border-radius: 2px; padding: 0 6px; }
.inv-menge:focus { outline: none; border-color: #0f7a6c; box-shadow: 0 0 0 1px #0f7a6c; background: #eef6f4; }
.inv-neu { font-size: .7rem; margin-left: 6px; padding: 0 5px; background: #e8f0fe; color: #33506e; border-radius: 2px; }
.inv-neuzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px; border: 1px dashed #b9c6cf; }
.inv-neuzeile select, .inv-neuzeile input { height: 28px; border: 1px solid #b9c6cf; border-radius: 2px; padding: 0 6px; }
.inv-summen { display: flex; gap: 22px; flex-wrap: wrap; padding: 8px 10px; background: #f3f6f8; border: 1px solid #dfe5ea; margin-bottom: 8px; }
.inv-summen .neg { color: #a12a1e; } .inv-summen .pos { color: #0b5e53; }
.inv-scanbild { height: 42px; border: 1px solid #ccc; background: #fff; }
.inv-hinweis { color: #8a5300; font-size: .8rem; }
.inv-hinweis.rot { color: #a12a1e; }
.inv-ok { color: #0b5e53; font-size: .8rem; }
.inv-nowrap { white-space: nowrap; }
.inv-handy { display: flex; gap: 24px; align-items: flex-start; }
.inv-handy img { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid #dfe5ea; padding: 8px; background: #fff; }

/* ab 3.99.363 (Rene 21.11.2026 18:41): Inventur-Übersicht – grafisch wie die Shop-Statistik, eckig, Grün */
.invu { display: flex; flex-direction: column; gap: 12px; }
.invu-kopf { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
.invu-ring { background: #fff; border: 1px solid #e2e8f0; border-radius: 2px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.invu-ring svg { width: 160px; height: 160px; }
.invu-ring-zahl { font-size: 22px; font-weight: 700; fill: #0f172a; }
.invu-ring-text { font-size: 9px; fill: #64748b; letter-spacing: .06em; text-transform: uppercase; }
.invu-legende { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: #52606d; }
.invu-legende span { display: inline-flex; align-items: center; gap: 5px; }
.invu-legende i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.invu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.invu-kpi { border: 1px solid #e2e8f0; border-radius: 2px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: #fff; min-width: 0; }
.invu-kpi small { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #52606d; }
.invu-kpi b { font-size: 1.55rem; font-weight: 700; line-height: 1.1; color: #0f172a; white-space: nowrap; }
.invu-kpi b.klein { font-size: 1.05rem; padding: 4px 0; white-space: normal; }
.invu-kpi b.warn { color: #b45309; }
.invu-kpi b em { font-style: normal; font-size: .8rem; font-weight: 500; color: #52606d; }
.invu-kpi > span { font-size: .74rem; color: #52606d; }
.invu-kpi .pos, .invu .pos { color: #15803d; } .invu-kpi .neg, .invu .neg { color: #b42318; }
.invu-balken { height: 6px; background: #eef2f6; border-radius: 1px; overflow: hidden; }
.invu-balken i { display: block; height: 100%; }
.invu-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
.invu-karte { background: #fff; border: 1px solid #e2e8f0; border-radius: 2px; padding: 10px 12px; min-width: 0; }
.invu-karte h4 { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #52606d; }
.invu-bereiche, .invu-abw { display: flex; flex-direction: column; gap: 6px; }
.invu-bzeile, .invu-azeile { display: grid; grid-template-columns: minmax(90px, 160px) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: .8rem; }
.invu-bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; min-width: 0; }
.invu-bname small, .invu-bwert small { font-size: .68rem; color: #64748b; font-weight: 400; }
.invu-stapel { display: flex; height: 10px; background: #eef2f6; border-radius: 1px; overflow: hidden; }
.invu-stapel i { display: block; height: 100%; }
.invu-bwert { text-align: right; font-weight: 600; white-space: nowrap; display: flex; flex-direction: column; }
.invu-mitte { position: relative; height: 12px; background: #f6f8fa; }
.invu-mitte b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #94a3b8; }
.invu-mitte i { position: absolute; top: 0; bottom: 0; }
.invu-mitte i.pos { background: #15803d; } .invu-mitte i.neg { background: #b42318; }
.invu-diagramm { width: 100%; height: 150px; display: block; }
.invu-gitterlinie { stroke: #e8edf2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.invu-achse { display: flex; justify-content: space-between; font-size: .68rem; color: #64748b; margin: 2px 0 6px; }
.invu-quellen { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.invu-torte { width: 140px; height: 140px; flex: none; }
.invu-qliste { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 5px; }
.invu-qliste > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 48px; gap: 8px; align-items: center; font-size: .8rem; }
.invu-qliste i { width: 10px; height: 10px; border-radius: 2px; }
.invu-qliste em { font-style: normal; color: #64748b; text-align: right; }
.invu-qliste .invu-dateien { display: block; font-size: .74rem; color: #64748b; margin-top: 4px; }
.inv-tab tr.ungeprueft td { background: #fff8e6; }
.inv-ok { color: #0f7a6c; font-weight: 600; font-size: .78rem; }
.inv-sn { width: 180px; font-size: .78rem; }
@media (max-width: 760px) { .invu-kopf { grid-template-columns: 1fr; } .invu-gitter { grid-template-columns: 1fr; } }

/* ab 3.99.364 (Rene 21.11.2026 20:00 „wenn ein Beleg gesperrt ist, sollten alle Felder grau sein und die Feldrahmen ausgeblendet“):
   schreibgeschützter Datensatz (Definition.Schreibschutz, z. B. automatischer Lagerbeleg, Beleg mit gesperrtem Status) */
.leiste-modus.gesperrt, html .leiste-modus.gesperrt { display: inline-flex; align-items: center; gap: 4px; background: #eef1f5; color: #475569; border-color: #cbd5e1; cursor: help; }
.leiste-modus.gesperrt .mud-icon-root { font-size: .95rem; }
.formular-inhalt.schreibschutz .mud-input.mud-input-outlined,
.formular-inhalt.schreibschutz :is(input, select, textarea):not([type=checkbox]):not([type=radio]) {
    background: #eef1f5 !important; border-color: transparent !important; box-shadow: none !important; color: #334155;
}
.formular-inhalt.schreibschutz .mud-input-outlined-border,
.formular-inhalt.schreibschutz .mud-input.mud-input-outlined fieldset { border-color: transparent !important; }
.formular-inhalt.schreibschutz :is(.feld-eingabe, .ul-zelle, td) :is(.auswahl, .auswahl-feld, .feld-rahmen) { border-color: transparent !important; background: #eef1f5 !important; }
.formular-inhalt.schreibschutz .mud-input-adornment :is(button, .mud-icon-button, .mud-select-input ~ *), .formular-inhalt.schreibschutz .mud-select .mud-input-adornment .mud-icon-root { visibility: hidden; }
.formular-inhalt.schreibschutz .mud-input-adornment, .formular-inhalt.schreibschutz .mud-input-adornment * { background: transparent !important; }

/* ab 3.99.364: Mehr-/Fehlbestand untereinander, kurz */
.invu-kpi { overflow: hidden; }
.invu-mehrfehl { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.invu-mehrfehl b { font-size: 1.25rem; }
.invu-kpi > span { overflow: hidden; text-overflow: ellipsis; }

/* ab 3.99.364 (Rene 21.11.2026 20:34): Schrittleiste der Inventur wie in der Lizenzabrechnung; Liste links ohne Überlauf */
.inv-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.inv-leiste .schritt small { opacity: .85; font-size: .72rem; margin-left: 2px; }
.inv-eintrag { min-width: 0; overflow: hidden; }
.inv-eintrag .inv-klein { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inv-eintrag .inv-nr { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ab 3.99.364 (Rene 21.11.2026 „A Schieben“): Menügruppen gleiten auf und zu, Pfeil dreht mit */
.mf-klappe { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .24s ease; }
.mf-klappe-innen { display: flex; flex-direction: column; min-height: 0; }
.mf-klappe.auf { animation: mfKlappeAuf .24s ease; }
.mf-klappe.zu { grid-template-rows: 0fr; }
.mf-klappe.auf > .mf-klappe-innen, .mf-klappe.zu > .mf-klappe-innen { overflow-x: visible; overflow-y: clip; }
@keyframes mfKlappeAuf { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mf-klappe, .mf-klappe.auf { transition: none; animation: none; } }

/* ab 3.99.365 (Rene 21.11.2026 „Bereich Ansprechpartner erweitern“): Angaben zum Ansprechpartner rechts neben der Liste (Adresse und Kunde) */
.ap-teile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-teil { min-width: 0; border: 1px solid #dfe5ec; background: #fbfcfd; padding: 8px 10px; }
.ap-teil.breit { grid-column: 1 / -1; }
.ap-teil-titel { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: #0f7a6c; margin-bottom: 6px; font-weight: 600; }
.ap-teil .ap-kom-felder { padding: 0; }
.ap-haupt { color: #c58a00; margin-left: 6px; }
.ap-inaktiv { margin-left: 8px; font-size: .72rem; color: #64748b; border: 1px solid #cbd5e1; padding: 0 5px; }
.unterzeile-raster.gedimmt input, .unterzeile-raster.gedimmt .mud-input-slot { color: #94a3b8 !important; }
@media (max-width: 1100px) { .ap-teile { grid-template-columns: minmax(0, 1fr); } }
.apb-tabelle { width: 100%; border-collapse: collapse; font-size: .82rem; }
.apb-tabelle th { text-align: left; font-weight: 500; color: #475569; background: #eef1f5; padding: 5px 8px; position: sticky; top: 0; }
.apb-tabelle td { padding: 4px 8px; border-bottom: 1px solid #eef1f5; }
.apb-tabelle .mitte { text-align: center; width: 110px; }
.apb-tabelle select { width: 100%; max-width: 320px; }
.apb-tabelle tr.apb-gruppe td { background: #e3e8ef; font-weight: 600; color: #1e293b; }
/* ab 3.99.365 (Rene 21.11.2026 23:27 „A“): breite Liste der Ansprechpartner, darunter die Angaben der gewählten Person */
.ap-ansicht { display: flex; flex-direction: column; gap: 8px; }
.ap-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-suche { flex: 1; min-width: 220px; max-width: 420px; }
.ap-inaktive { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: #475569; }
.ap-leiste-rechts { margin-left: auto; display: flex; gap: 6px; }
.ap-liste { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border: 1px solid #dfe5ec; font-size: .82rem; }
.ap-liste th { text-align: left; font-weight: 500; color: #475569; background: #eef1f5; padding: 5px 8px; }
.ap-liste td { padding: 5px 8px; border-top: 1px solid #eef1f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ap-liste tbody tr:hover td { background: #f3f7f9; }
.ap-liste tr.gewaehlt td { background: #dcefeb; }
.ap-liste tr.gewaehlt td:first-child { box-shadow: inset 3px 0 0 #0f7a6c; }
.ap-liste tr.inaktiv td { color: #94a3b8; }
.ap-liste .ap-stern { width: 38px; text-align: center; color: #c58a00; text-overflow: clip; }
.ap-liste .ap-weg { width: 40px; text-align: center; }
.ap-kopf { font-size: .82rem; color: #475569; margin-top: 4px; }
.ap-ansicht .ap-teile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1400px) { .ap-ansicht .ap-teile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ab 3.99.365 (Rene 21.11.2026 23:41 „Version B“): Ansprechpartner im Popup */
.ap-liste .ap-bearb { width: 40px; text-align: center; }
.ap-dialog .ap-teile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-dialog .mud-dialog-content { max-height: 75vh; overflow: auto; }
.ap-liste .ap-bearb, .ap-liste .ap-weg { width: 48px; text-overflow: clip; padding: 2px 4px; }

/* ab 3.99.370 (Rene 22.11.2026 11:10): Inventur wie alle Masken – Liste oben, Werkzeugleiste, Schrittpfeile, Kopfdaten, Reiter */
.inv-ansicht .inv-formular { display: flex; flex-direction: column; min-height: 0; }
.inv-ansicht .inv-rechts { flex: 1 1 auto; }
.inv-ansicht .inv-leiste { gap: 10px; }
.inv-kopfdaten { grid-template-columns: 130px minmax(0, 420px) 130px minmax(0, 420px); }
.inv-kopfdaten .inv-radio { gap: 4px 16px; }
.inv-lagertext a { color: #0f7a6c; text-decoration: none; }
.inv-lagertext a:hover { text-decoration: underline; }
.filtertabelle td.inv-st1 { color: #8a5300; }
.filtertabelle td.inv-st2 { color: #0b5e53; }
.inv-lb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.inv-lb-spalte { border: 1px solid #c6d2da; background: #fff; min-height: 180px; max-height: 460px; overflow: auto; }
.inv-lb-spalte.ziel { border-color: #0f7a6c; }
.inv-lb-kopf { position: sticky; top: 0; z-index: 1; padding: 6px 8px; font-weight: 600; background: #f3f6f8; border-bottom: 1px solid #dfe5ea; }
.inv-lb-spalte.ziel .inv-lb-kopf { background: #eef6f4; }
.inv-lb-lager { padding: 6px 8px 2px; font-weight: 600; font-size: .8rem; color: #445866; border-top: 1px solid #eef2f5; }
.inv-lb-eintrag { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 2px 8px; border-bottom: 1px solid #f0f3f5; cursor: grab; }
.inv-lb-eintrag:hover { background: #eef6f4; }
.inv-lb-eintrag > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-lb-eintrag small { font-size: .72rem; color: #8a96a0; white-space: nowrap; }
.inv-lb-eintrag.grau { cursor: default; color: #98a4ad; background: #fafbfc; }
.inv-lb-eintrag.gewaehlt small { color: #0b5e53; }
.inv-lb-knopf { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #c6d2da; background: #fff; }
.inv-lb-knopf:hover { border-color: #0f7a6c; color: #0f7a6c; }
.inv-lb-leer { padding: 10px; font-size: .8rem; }

/* ab 3.99.370 (Rene 22.11.2026 11:27, Grundregel: „das oben ist bei den Fenstern bei uns immer grün mit weißer Schrift“): ALLE Dialoge mit grünem Kopf
   und weißer Schrift – nicht nur Suchfenster und Rückfragen. Eigene Knöpfe und Eingabefelder im Kopf behalten ihr Aussehen. */
.mud-dialog .mud-dialog-title, html.thema-inntec .mud-dialog .mud-dialog-title {
    background: var(--th-akzent, #08786f); color: #fff; border-bottom: 0; padding-top: 12px; padding-bottom: 12px;
}
.mud-dialog .mud-dialog-title > :is(.mud-typography, h1, h2, h3, h4, h5, h6, span, b, strong),
.mud-dialog .mud-dialog-title > .mud-typography :is(span, b, strong, small),
.mud-dialog .mud-dialog-title > .mud-icon-root { color: #fff !important; }
.mud-dialog .mud-dialog-title .mud-typography { font-weight: 600; }
.mud-dialog .mud-dialog-title .mud-button-close, .mud-dialog .mud-dialog-title .mud-button-close .mud-icon-root { color: #fff !important; }
.mud-dialog .mud-dialog-title .mud-button-close:hover { background: rgba(255, 255, 255, .15); }
.mud-dialog .mud-dialog-title :is(.text-zweitrangig, small, .klein) { color: rgba(255, 255, 255, .85) !important; }
.mud-dialog .mud-dialog-title :is(div, span, b, strong, em, h1, h2, h3, h4, h5, h6, p, label):not(button *, .mf-knopf *, .mud-input-control *, .mud-chip *) { color: #fff !important; }

/* ab 3.99.370 (Rene 22.11.2026 11:33, Variante A): inaktiver Datensatz – Felder grau und schreibgeschützt, graues Band oben rechts in der freien Fläche
   (absolut, damit keine Zeile nach unten rutscht); nur der Haken „Inaktiv“ bleibt bedienbar */
.formular-inhalt.inaktiv { position: relative; }
.formular-inhalt.inaktiv .inaktiv-band {
    position: absolute; top: calc(6px * var(--s)); right: calc(12px * var(--s)); z-index: 3; max-width: 46%;
    display: flex; align-items: center; gap: 8px; padding: calc(6px * var(--s)) calc(12px * var(--s));
    background: #5b6b78; color: #fff; font-size: .82rem; line-height: 1.3; pointer-events: none;
}
.formular-inhalt.inaktiv .inaktiv-band .mud-icon-root { color: #fff; flex: none; }
.formular-inhalt.inaktiv :is(label, .feld-label) { color: #8a96a0; }

/* ab 3.99.370 (Rene 22.11.2026 11:45): Ausrichtung je Feld und Griff zum Ziehen der Breite (Maske gestalten) */
.feld-ausr-links :is(input, textarea):not([type=checkbox]):not([type=radio]), .feld-ausr-links .feld-eingabe { text-align: left !important; justify-content: flex-start; }
.feld-ausr-mitte :is(input, textarea):not([type=checkbox]):not([type=radio]), .feld-ausr-mitte .feld-eingabe { text-align: center !important; justify-content: center; }
.feld-ausr-rechts :is(input, textarea):not([type=checkbox]):not([type=radio]), .feld-ausr-rechts .feld-eingabe { text-align: right !important; justify-content: flex-end; }
.mask-g-feld { position: relative; }
.mask-g-feld .mask-g-griff { pointer-events: auto !important; }
.mask-g-griff { position: absolute; top: 2px; bottom: 2px; right: -7px; width: 10px; z-index: 5; cursor: ew-resize; background: #0f7a6c; border: 2px solid #fff; box-shadow: 0 0 0 1px #0f7a6c; }
.mask-g-griff:hover { background: #0b5e53; }
body.mask-g-zieht, body.mask-g-zieht * { cursor: ew-resize !important; user-select: none !important; }
.mask-g-zieh-anzeige { position: fixed; z-index: 9999; pointer-events: none; padding: 2px 8px; background: #0f7a6c; color: #fff; font-size: 12px; font-weight: 600; }
.mask-g-breiten-zeile { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.formular-raster > :is(.rahmen, .rahmen-stapel, fieldset) { grid-column: span calc(var(--spalten, 6) * 2); }

/* ab 3.99.371 (Rene 22.11.2026 12:14 „die Maske müsste doch vertikale Positionen haben … wie in Excel“): beim Gestalten Rasterlinien –
   kräftig je ganzem Schritt (12), blass je halbem Schritt (24); Felder lassen sich an jede freie Stelle ziehen */
.mask-gestalten .formular-raster {
    --g: calc(18px * var(--s));
    background-image:
        repeating-linear-gradient(to right, rgba(15, 122, 108, .30) 0 1px, transparent 1px calc(100% / 12)),
        repeating-linear-gradient(to right, rgba(15, 122, 108, .12) 0 1px, transparent 1px calc(100% / 24));
    background-size: calc(100% + var(--g)) 100%;
    outline: 1px dashed rgba(15, 122, 108, .25);
    min-height: 30px;
}
.mask-gestalten .formular-raster.mask-g-drueber { background-color: rgba(15, 122, 108, .05); }
.mask-g-platz { position: fixed; z-index: 9998; pointer-events: none; background: rgba(15, 122, 108, .22); border: 2px dashed #0f7a6c; }
/* ab 3.99.371 (Rene 22.11.2026 12:23 „Felder unter Seriennummernpflichtig schieben – Rahmen erweitern?“): beim Gestalten unten eine freie Zeile im Raster
   – dorthin gezogen beginnt das Feld eine neue Zeile an der Stelle der Maus */
.mask-gestalten .formular-raster { padding-bottom: calc(32px * var(--s)); }

/* ab 3.99.372 (Rene 22.11.2026 13:41–13:46, Maskendesigner): Mindestbreite der Eingabe, feste Breite in Zeichen, ohne Feldrahmen, Trennlinie */
.formular-raster .feld:not(.ohne-label) { grid-template-columns: minmax(36px, calc(var(--label, 120px) * var(--s))) minmax(4.5em, 1fr); }
.feld-zeichen .feld-eingabe { width: calc(var(--zeichen, 10) * 1ch + 22px); max-width: 100%; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe :is(input, textarea, select):not([type=checkbox]):not([type=radio]) { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe :is(input, textarea):not([type=checkbox]):not([type=radio]) { border-bottom: 1px dotted #d3d9dd !important; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe :is(.mud-input-outlined-border, fieldset) { border-color: transparent !important; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe :is(.auswahl, .auswahl-feld, .feld-rahmen, .mud-input) { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe .mud-input-adornment:not(:has(.mud-input-adornment-text)) { visibility: hidden; } /* ab 3.99.377: Einheit („g“, „mm“) bleibt sichtbar */
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe :is(input, textarea).pflicht-leer, .feld-ohne-rahmen .feld-eingabe .pflicht :is(input):placeholder-shown { background: #fdf3d8 !important; }
.feld-linie { display: flex; align-items: center; gap: 8px; min-height: 18px; color: #5b6b78; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.feld-linie::before, .feld-linie::after { content: ""; flex: 1 1 auto; border-top: 1px solid #c6d2da; }
.feld-linie:not(:has(span))::before { display: none; }
.feld-linie > span:first-child { flex: none; }
.feld-linie.gruen { color: #0f7a6c; }
.feld-linie.gruen::before, .feld-linie.gruen::after { border-top-color: #0f7a6c; }
.feld > label.janein-label { cursor: pointer; user-select: none; }
.feld:has(> label.janein-label):hover > label.janein-label { color: #0f7a6c; }

/* ab 3.99.374 (Rene 22.11.2026): Auswahlfeld ohne Feldrahmen – Kürzel normal, Zusatz heller, eng, ohne x und ohne Unterstrich */
.feld-ohne-rahmen .feld-eingabe { position: relative; }
.mf-or-text { display: none; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .mf-or-text { display: flex; align-items: center; position: absolute; inset: 0; padding-left: 1px; pointer-events: none; white-space: nowrap; overflow: hidden; color: #1f2a33; font-size: .8rem; }
.mf-or-zusatz { color: #8d99a3; margin-left: .35em; }
.feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe:has(.mf-or-text) input { color: transparent !important; -webkit-text-fill-color: transparent !important; text-decoration: none !important; text-shadow: none !important; border-bottom-color: transparent !important; }
.feld-ohne-rahmen .feld-eingabe .mud-input-clear-button, .feld-ohne-rahmen .feld-eingabe .mud-input-adornment-end:has(.mud-input-clear-button) { display: none !important; }

/* ab 3.99.374 (Rene 22.11.2026 14:28 „nichts sollte in der Maske in Farbe sein, außer das Inaktiv-Kästchen“): inaktiver Datensatz –
   Reiter, Rahmentitel, Kästchen, Verweise und Anzeigen grau; nur das Feld „Inaktiv“ behält seine Farbe */
.formular-inhalt.inaktiv [data-feld]:not([data-feld$="_Inaktiv" i]),
.formular-inhalt.inaktiv :is(.mud-tabs-tabbar, .mud-tabs-toolbar, .reiter-zusatz),
.formular-inhalt.inaktiv :is(.rahmen > legend, .rahmen-titel, .feld-linie) { filter: grayscale(1); }
.formular-inhalt.inaktiv .formular-reiter .mud-tab.mud-tab-active { background: #7d8a94 !important; border-color: #7d8a94 !important; color: #fff !important; }
.formular-inhalt.inaktiv [data-feld]:not([data-feld$="_Inaktiv" i]) :is(.mud-checkbox, .mud-icon-root, a) { color: #9aa5b1 !important; }
.formular-inhalt.inaktiv [data-feld]:not([data-feld$="_Inaktiv" i]) { pointer-events: none; }
/* ab 3.99.456 (Rene 01.12.2026 15:42 „Kann derzeit nicht wieder aktiviert werden“, Belegarten): steht „Inaktiv“ in einem Rahmen, sperrte der Rahmen
   (er trägt selbst data-feld) die Klicks für alles darin – auch für „Inaktiv“. Das Feld bleibt jetzt in jedem Rahmen bedienbar und farbig. */
.formular-inhalt.inaktiv [data-feld$="_Inaktiv" i] { pointer-events: auto; }
.formular-inhalt.inaktiv fieldset[data-feld]:has([data-feld$="_Inaktiv" i]) { filter: none; }
.mask-gestalten .formular-inhalt.inaktiv [data-feld] { pointer-events: auto; }
.leiste-modus.deaktiviert { display: inline-flex; align-items: center; gap: 5px; background: rgba(91,107,120,.72) !important; color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
.leiste-modus.deaktiviert .mud-icon-root { color: #fff; font-size: 1rem; }
/* ab 3.99.375 (Rene 22.11.2026 14:50 „Gramm doppelt“): auch bei eigener Feldschrift-Farbe (Thema) – Eingabetext unsichtbar, Zusatz hell */
html body .feld-ohne-rahmen:not(:hover):not(:focus-within) .feld-eingabe:has(.mf-or-text) :is(input, input.mud-input-root) { color: transparent !important; -webkit-text-fill-color: transparent !important; text-decoration: none !important; }
html body .feld-ohne-rahmen .feld-eingabe .mf-or-text:not(#_mrr) { color: var(--th-feld-schrift, #1f2a33) !important; -webkit-text-fill-color: currentColor !important; }
html body .feld-ohne-rahmen .feld-eingabe .mf-or-text .mf-or-zusatz:not(#_mrr) { color: #8d99a3 !important; -webkit-text-fill-color: #8d99a3 !important; }
/* ab 3.99.375 (Rene 22.11.2026 14:53 „warum sind die Felder anders als Artikeltyp und Gesamtbestand?“): beim Gestalten sehen alle Felder aus wie in der
   echten Maske – weiß mit Rahmen, nicht grau wie schreibgeschützt (die Sperre beim Gestalten ist nur technisch) */
html body .mask-gestalten .mask-g-feld:not(.feld-ohne-rahmen) .feld-eingabe .mud-input.mud-input-outlined:not(#_mrr) { background: var(--th-feld, #fff) !important; }
html body .mask-gestalten .mask-g-feld:not(.feld-ohne-rahmen) .feld-eingabe .mud-input-outlined-border:not(#_mrr) { border-color: #c5ced6 !important; }
html body .mask-gestalten .mask-g-feld:not(.feld-ohne-rahmen) .feld-eingabe input:not(#_mrr) { color: var(--th-feld-schrift, #1f2937) !important; -webkit-text-fill-color: currentColor; }
.mf-or-zusatz.nur { margin-left: 0; }

/* ab 3.99.379 (Rene 22.11.2026, Preislisten): Warenwirtschaft → Preise → Preisauskunft */
.pa { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.pa-kopf { background: #0f7a6c; color: #fff; font-weight: 600; padding: 6px 12px; }
.pa-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pa-leiste label { display: flex; flex-direction: column; gap: 2px; font-size: .76rem; color: #5b6b78; }
.pa-ein { height: 28px; border: 1px solid #b9c6cf; padding: 0 6px; background: #fff; font: inherit; font-size: .82rem; color: #1f2a33; min-width: 150px; }
.pa-ein:focus { outline: none; border-color: #0f7a6c; box-shadow: 0 0 0 1px #0f7a6c; }
.pa-ein.pa-zahl { min-width: 0; width: 90px; text-align: right; }
.pa-zwei { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.3fr); gap: 16px; }
@media (max-width: 900px) { .pa-zwei { grid-template-columns: 1fr; } }
.pa-preis { font-size: 1.7rem; font-weight: 600; color: #0b5e53; }
.pa-preis span { font-size: .9rem; font-weight: 400; color: #5b6b78; }
.pa-preis.warn { color: #8a5a00; }
.pa-auf { margin-top: 4px; padding: 5px 8px; border: 1px solid #c5ced6; background: #f4f6f7; font-size: .84rem; }
.pa-summe { margin: 6px 0 2px; font-size: .86rem; }
.pa-warn { background: #fdf3d8; color: #8a5a00; border: 1px solid #e2b56b; padding: 5px 8px; margin: 6px 0; font-size: .82rem; }
.pa-titel { font-weight: 600; color: #0b5e53; margin: 14px 0 6px; font-size: .86rem; }
.pa-titel.oben { margin-top: 0; }
.pa-klein { font-size: .72rem; margin-top: 4px; }
.pa-schritt { display: flex; gap: 8px; padding: 6px 8px; border: 1px solid #c5ced6; border-left-width: 5px; margin-bottom: 5px; background: #fff; font-size: .82rem; }
.pa-schritt b { white-space: nowrap; }
.pa-schritt.treffer { border-left-color: #0f7a6c; background: #e3f1ee; }
.pa-schritt.leer { border-left-color: #b9c2c9; color: #5b6b78; }
.pa-schritt.aus { border-left-color: #e2e6e9; color: #a3adb5; }
.pa-tab th.r, .pa-tab td.r { text-align: right; }
.pa-tab td { vertical-align: top; }

/* ab 3.99.380 (Rene 22.11.2026): Preiskalkulation – Probe und Übernahme (KalkulationDialog) */
.kal-dlg { font-size: 13px; }
.kal-leiste { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding-bottom: 10px; border-bottom: 1px solid var(--mrr-rand, #cbd5e1); margin-bottom: 10px; }
.kal-leiste label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #64748b; }
.kal-leiste input[type=date], .kal-leiste input[type=text], .kal-leiste input:not([type]), .kal-leiste select { border: 1px solid #94a3b8; background: #fff; padding: 4px 7px; font-size: 13px; min-width: 150px; }
.kal-leiste .kal-haken { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: inherit; padding-bottom: 4px; }
.kal-leiste .kal-haken input { min-width: 0; }
.kal-warte, .kal-leer, .kal-zahl { color: #64748b; margin: 8px 0; }
.kal-warn { border-left: 4px solid #c2410c; background: #fff7ed; padding: 7px 10px; margin: 0 0 10px; }
.kal-tab { border-collapse: collapse; width: 100%; font-size: 13px; }
.kal-tab th, .kal-tab td { border: 1px solid #cbd5e1; padding: 4px 7px; vertical-align: top; }
.kal-tab th { background: #f1f5f9; text-align: left; font-size: 12px; }
.kal-tab .z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kal-tab tr.kal-erg td { background: #e6f3f1; }
.kal-tab tr.kal-aus td { color: #94a3b8; }
.kal-tab .kal-stand { font-weight: 700; }
.kal-tab .kal-alt { color: #64748b; }
.kal-tab .kal-neu { font-weight: 700; }
.kal-tab .kal-rechnung, .kal-tab .kal-hinweis { color: #64748b; }

/* ab 3.99.380 (Rene 22.11.2026): Preise einrichten – eine Maske mit Schrittleiste 1–5 (PreiseEinrichten) */
.pe { display: flex; flex-direction: column; height: 100%; font-size: 13px; }
.pe-kopf { background: #0f7a6c; color: #fff; font-weight: 600; padding: 6px 12px; }
.pe-leiste { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 8px 12px; border-bottom: 1px solid #cbd5e1; background: #f8fafc; }
.pe-leiste label, .pe-felder label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #64748b; }
.pe select, .pe input:not([type=checkbox]):not([type=file]) { border: 1px solid #94a3b8; background: #fff; padding: 4px 7px; font-size: 13px; min-width: 150px; color: #17243a; }
.pe-hinweis { color: #64748b; font-size: 12px; margin-left: auto; padding-bottom: 5px; }
.pe-teiler { display: grid; grid-template-columns: 310px 1fr; flex: 1; min-height: 0; }
.pe-schiene { border-right: 1px solid #cbd5e1; background: #f8fafc; overflow-y: auto; }
.pe-st { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; width: 100%; text-align: left; padding: 10px 11px; border: none; border-bottom: 1px solid #cbd5e1; border-left: 4px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.pe-st:hover { background: #f1f5f9; }
.pe-st.an { background: #fff; border-left-color: #0f7a6c; }
.pe-nr { flex: 0 0 22px; height: 22px; border: 1px solid #94a3b8; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #64748b; }
.pe-st.fertig .pe-nr { background: #e6f3f1; border-color: #0f7a6c; color: #0f7a6c; }
.pe-st.an .pe-nr { background: #0f7a6c; border-color: #0f7a6c; color: #fff; }
.pe-st.offen .pe-nr { background: #fff7ed; border-color: #c2410c; color: #c2410c; }
.pe-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; flex: 1; }
.pe-tt { font-weight: 600; }
.pe-zu { font-size: 11px; color: #64748b; }
.pe-st.offen .pe-zu { color: #c2410c; }
.pe-legende { font-size: 11px; color: #64748b; padding: 10px 11px; margin: 0; }
.pe-inhalt { padding: 12px; overflow: auto; min-width: 0; }
.pe-rahmen { border: 1px solid #cbd5e1; background: #fff; }
.pe-rt { background: #f1f5f9; border-bottom: 1px solid #cbd5e1; padding: 5px 9px; font-weight: 600; font-size: 12px; }
.pe-rb { padding: 10px; }
.pe-tab { border-collapse: collapse; width: 100%; }
.pe-tab th, .pe-tab td { border: 1px solid #cbd5e1; padding: 4px 7px; vertical-align: middle; }
.pe-tab th { background: #f1f5f9; text-align: left; font-size: 12px; }
.pe-tab .z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pe-tab select, .pe-tab input { min-width: 0 !important; width: 100%; }
.pe-tab tr.pe-aus td { color: #94a3b8; }
.pe-tab .pe-alt { color: #64748b; }
.pe-tab .pe-neup { font-weight: 700; }
.pe-tab .pe-bsp, .pe-tab .pe-hin { color: #64748b; white-space: nowrap; }
.pe-zahl { text-align: right; width: 110px; min-width: 0 !important; }
.pe-neu { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
/* ab 3.99.384: Formelzelle und Zeilenknöpfe der Kalkulation */
.pe-formelzelle { min-width: 260px; }
.pe-formel { display: flex; align-items: center; gap: 4px; }
.pe-formel input { width: 100%; min-width: 220px; }
.pe-formelfehler { font-size: 11px; color: var(--th-fehler, #b3261e); margin-top: 2px; }
.pe-zeilenknoepfe { display: flex; gap: 2px; white-space: nowrap; }
/* ab 3.99.384: Verweisfeld mit Lupe (F2 öffnet das Suchfenster) */
.pe-suchfeld { display: flex; align-items: stretch; }
.pe-suchfeld input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 240px; }
.pe-suchfeld button { border: 1px solid var(--th-feldrand, #cbd5e1); border-left: 0; border-radius: 0 4px 4px 0; background: var(--th-feld, #fff); cursor: pointer; padding: 0 8px; display: flex; align-items: center; color: var(--th-text-zweitrangig, #64748b); }
.pe-suchfeld button:hover { background: var(--th-flaeche2, #f1f5f9); }
.pe-felder { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 10px; }
.pe-felder:first-child { margin-top: 0; margin-bottom: 10px; }
.pe-haken { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 13px !important; color: inherit !important; padding-bottom: 4px; }
.pe-klein { font-size: 12px; color: #64748b; margin: 8px 0 0; }
.pe-weg { border: none; background: transparent; cursor: pointer; color: #64748b; font-size: 14px; }

/* ab 3.99.384 (Rene 24.11.2026): Artikel → Preise – Verkaufspreise je Preisliste mit aufklappbaren Staffeln */
.avp { font-size: 13px; min-width: 0; overflow-x: auto; }
.avp-tab { width: 100%; table-layout: fixed; }
.avp-tab th { font-size: 11px; }
.avp-tab td { padding: 3px 4px; vertical-align: middle; }
.avp-tab th:nth-child(2), .avp-tab td:nth-child(2) { width: 96px; }
.avp-tab th:nth-child(3), .avp-tab td:nth-child(3) { width: 84px; }
.avp-std { background: var(--th-flaeche2, #fbfdfc); }
.avp-nm { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.avp-mrk { font-size: 10px; font-weight: 700; background: var(--th-gruen, #0f7a6c); color: #fff; border-radius: 3px; padding: 1px 5px; }
.avp-re { text-align: right; }
.avp-preis { width: 100%; max-width: 92px; text-align: right; padding: 3px 6px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; font: inherit; }
.avp-st { width: 84px; }
.avp-sk { width: 100%; padding: 2px 6px; font: inherit; font-size: 12px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: var(--th-gruen, #0f7a6c); cursor: pointer; }
.avp-sk:hover { background: var(--th-flaeche2, #f1f5f9); }
.avp-sk.hat { background: var(--th-pz-start, #faeeda); border-color: var(--th-pz-start-rand, #ef9f27); color: #7c5306; font-weight: 600; }
.avp-staffelzeile > td { background: var(--th-flaeche2, #fbfcfd); padding: 6px 6px 8px 12px !important; }
.avp-skopf, .avp-szeile { display: grid; grid-template-columns: minmax(54px,1fr) minmax(62px,1fr) minmax(96px,1.3fr) minmax(96px,1.3fr) 24px; gap: 4px; align-items: center; }
.avp-skopf { font-size: 11px; font-weight: 600; color: var(--th-text-zweitrangig, #64748b); margin-bottom: 3px; }
.avp-szeile { margin-bottom: 4px; }
.avp-szeile input { width: 100%; min-width: 0; padding: 2px 4px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; font: inherit; font-size: 12px; }
.avp-weg { border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: var(--th-warnung, #b45309); cursor: pointer; font-size: 11px; padding: 2px 0; }
.avp-plus { border: 1px dashed var(--th-feldrand, #94a3b8); border-radius: 4px; background: var(--th-feld, #fff); color: var(--th-gruen, #0f7a6c); cursor: pointer; font: inherit; font-size: 12px; padding: 3px 9px; margin-top: 3px; }
.avp-hinw { font-size: 11px; color: var(--th-text-zweitrangig, #64748b); margin-top: 6px; line-height: 1.45; }

/* ab 3.99.384 (Rene 24.11.2026): Artikel → Lieferanten – Preisverlauf rechts neben der Liste */
.alv { font-size: 13px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.alv-kopf { display: flex; align-items: center; gap: 8px; background: var(--th-gruen, #0f7a6c); color: #fff; border-radius: 3px; padding: 4px 8px; }
.alv-name { font-weight: 600; font-size: 12px; }
.alv-kopf .alv-re { margin-left: auto; font-size: 11px; opacity: .92; }
.alv-tab { width: 100%; font-size: 11.5px; }
.alv-tab th { font-size: 10.5px; padding: 3px 5px; }
.alv-tab td { padding: 2px 5px; white-space: nowrap; }
.alv-tab tbody tr { cursor: pointer; }
.alv-tab tbody tr:hover { background: var(--th-flaeche2, #f6f9fa); }
.alv-tab .alv-re { text-align: right; }
.alv-alt > td { color: var(--th-text-dritt, #a5b0bb); background: var(--th-flaeche2, #fafbfc); }
.alv-jetzt > td { background: var(--th-flaeche-gruen, #f3f9f7); font-weight: 600; }
/* ab 3.99.387 (Rene 24.11.2026 23:25): ohne Auswahl alle Preisstände – je Lieferant eine Kopfzeile mit dem Namen */
.alv-tab tr.alv-gruppe { cursor: default; }
.alv-tab tr.alv-gruppe:hover > td { background: none; }
.alv-tab tr.alv-gruppe > td { padding-top: 7px; font-weight: 600; color: var(--th-gruen, #0f7a6c); border-bottom: 1px solid var(--th-linie, #dbe3ea); white-space: normal; }
.alv-tab tr.alv-gruppe:first-child > td { padding-top: 2px; }
.alv-leer, .alv-hinw { font-size: 11px; color: var(--th-text-zweitrangig, #64748b); line-height: 1.45; }
.alv-text { margin-top: 4px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ab 3.99.385 (Rene 24.11.2026): Datenbrücke – freigegebene Tabellen anhaken statt eintippen */
.db-freigabe { border: 1px solid var(--th-rand, #cbd5e1); border-radius: 4px; padding: 7px 9px; margin: 2px 0 6px; background: var(--th-flaeche2, #fbfcfd); }
.db-freigabe-suche { width: 100%; max-width: 320px; padding: 4px 7px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); color: inherit; font: inherit; font-size: 13px; margin-bottom: 6px; }
.db-freigabe-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px 12px; max-height: 260px; overflow-y: auto; }
.db-freigabe-zeile { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 1px 0; cursor: pointer; }
.db-freigabe-zeile input[disabled] + span { cursor: default; }

/* ab 3.99.387 (Rene 25.11.2026 00:00 „ich meine auch die felder an sich. was können wir hier optisch machen?“ → gewählte Gestaltung:
   Gitternetz, Kästen nur in der Zeile, in der gearbeitet wird): In ruhenden Zeilen einer Unterliste verschwinden die Feldrahmen,
   die Flächen und die Symbole am Feldrand; die Spalten trennt eine feine senkrechte Linie. Sobald die Zeile angeklickt ist
   (.gewaehlt) oder der Cursor darin steht (:focus-within), sehen die Felder wieder aus wie bisher. */
.unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) .mud-input-outlined-border { border-color: transparent !important; }
.unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) :is(.mud-input, .mud-input-slot, .mud-input-control, input, textarea) {
    background: transparent !important; box-shadow: none !important; }
html body .unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) .mud-input.mud-input-outlined { background: transparent !important; }
/* Pfeil der Auswahllisten, Kalenderblatt und ✕ im Feld erst zeigen, wenn in der Zeile gearbeitet wird */
.unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) :is(.mud-input-adornment:not(.mud-text), .mud-input-clear-button) { display: none !important; }
/* senkrechte Trennlinien statt Feldrahmen – in der aktiven Zeile übernehmen das die Rahmen selbst */
.unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) > *:not(:last-child) { box-shadow: inset -1px 0 0 var(--mf-linie, #e3e9ee); }
/* leeres Kästchen (z. B. Hauptlieferant, Tagespreis) bleibt in ruhenden Zeilen unsichtbar – nur gesetzte Haken sind zu sehen */
.unterzeile-raster:not(.kopf):not(.gewaehlt):not(:focus-within):has(input) .mud-checkbox:has(input:not(:checked)) .mud-icon-root { visibility: hidden; }

/* ab 3.99.390 (Rene 25.11.2026 11:45): Zusatztext als eigenes Fenster – verschiebbar am Kopf, Größe an der Ecke, Lage je Benutzer (mrr.popupFenster) */
.ul-text-popup.ul-text-fenster { position: fixed; left: 0; top: 0; width: 460px; height: 320px; z-index: 1400; display: flex; flex-direction: column; min-width: 280px; min-height: 160px; border-color: var(--mf-gruen, #0f7a6c); }
.ul-text-fenster .ul-text-kopf { flex: none; cursor: move; user-select: none; touch-action: none; padding: 5px 4px 5px 10px; font-size: .8rem; font-weight: 600; }
.ul-text-fenster > :not(.ul-text-kopf):not(.ul-text-ecke) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ul-text-fenster .rt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 0; }
.ul-text-fenster .rt-leiste { flex: none; }
.ul-text-fenster .rt-flaeche { flex: 1 1 auto; min-height: 0 !important; max-height: none !important; height: auto !important; overflow: auto; border: 0; }
.ul-text-ecke { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none;
    background: linear-gradient(135deg, transparent 0 50%, #0f7a6c 50% 58%, transparent 58% 70%, #0f7a6c 70% 78%, transparent 78%); }
.ul-text-fenster.zieht { user-select: none; }
.unterzeile-raster:has(> .ul-text-feld > .ul-text-fenster) { z-index: auto !important; }

/* ab 3.99.390 (Rene 25.11.2026 11:45 „wenn ein Artikel deaktiviert ist, muss auch unten alles grau sein … nichts mehr editierbar“):
   Listen in der Maske und eigene Reiter-Ansichten (Bilder, Preisverlauf) grau und ohne Bedienung – nur das Textsymbol bleibt zum Lesen */
.formular-inhalt.inaktiv .unterbereich :is(.unterbereich-kopf, .unterzeile-raster.kopf, .alv),
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster > :not(.ul-text-feld),
.formular-inhalt.inaktiv .unterbereich .ul-text-knopf,
.formular-inhalt.inaktiv .reiter-ansicht > * { filter: grayscale(1); }
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster > :not(.ul-text-feld),
.formular-inhalt.inaktiv .unterbereich :is(.unterbereich-kopf, .alv) { pointer-events: none; }
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster:not(.kopf) { background: #eef1f5 !important; border-color: #c9d1d8 !important; box-shadow: none !important; color: #8a96a0; }
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster :is(input, select, textarea, a, .auswahl, .auswahl-feld) { color: #8a96a0 !important; }
.formular-inhalt.inaktiv .reiter-ansicht > * { opacity: .8; }
.mask-gestalten .formular-inhalt.inaktiv .unterbereich * { pointer-events: auto; }
/* Bilder-Reiter schreibgeschützt: keine Knöpfe zum Hinzufügen, keine Ablagefläche */
.md-nur-lesen .md-leiste > .md-knopf, .md-nur-lesen .md-ablage, .md-nur-lesen .md-arbeitet { display: none !important; }
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster:not(.kopf)::before,
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster.gewaehlt:not(.kopf)::before,
.formular-inhalt.inaktiv .unterbereich .unterzeile-raster.gewaehlt:not(.kopf):hover::before { background: #eef1f5 !important; border-left-color: #9aa5b1 !important; }
.formular-inhalt.inaktiv .alv { filter: grayscale(1); pointer-events: none; }

/* ab 3.99.390 (Rene 25.11.2026 13:17): Verkaufspreise – Währung hinter dem Preis wie bei den Einkaufspreisen */
.avp-geld { display: inline-flex; align-items: center; width: 100%; max-width: 112px; border: 1px solid var(--th-feldrand, #cbd5e1); border-radius: 4px; background: var(--th-feld, #fff); }
.avp-geld:focus-within { border-color: var(--mf-gruen, #0f7a6c); }
.avp-geld > input, .avp-geld > input.avp-preis { flex: 1 1 auto; min-width: 0; max-width: none; width: 100%; border: 0 !important; background: transparent; outline: none; text-align: right; padding: 3px 2px 3px 6px; font: inherit; color: inherit; }
.avp-geld > i { flex: none; font-style: normal; padding: 0 6px 0 3px; color: #51605d; }
.avp-geld.klein { max-width: none; }
.avp-geld:has(> input:disabled) { background: #eef1f5; border-color: transparent; }

/* ab 3.99.390 (Rene 25.11.2026 13:19): Verkaufspreise – Preislisten links, Staffelpreise der gewählten Liste rechts daneben */
.avp-zwei { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr); gap: 14px; align-items: start; }
.avp-tab tbody tr { cursor: pointer; }
.avp-tab tbody tr.avp-gew > td { background: #e7f5f2; }
.avp-tab tbody tr.avp-gew > td:first-child { box-shadow: inset 3px 0 0 var(--mf-gruen, #0f7a6c); }
.avp-staffel { border: 1px solid var(--th-feldrand, #dbe3ea); background: var(--th-flaeche2, #fbfcfd); padding: 8px 10px 10px; }
.avp-stitel { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--mf-gruen, #0f7a6c); }
.avp-leer { font-size: 12px; color: var(--th-text-zweitrangig, #64748b); margin: 6px 0 2px; }
.avp-szeile .avp-geld > input { border: 0; padding: 2px 2px 2px 4px; font-size: 12px; }
/* ab 3.99.390 (Rene 25.11.2026 13:21): Einheitenkürzel im Feld gleich breit – so stehen Gewicht und Maße rechts auf einer Linie */
.einheit-fest .mud-input-adornment-end { min-width: 26px; justify-content: flex-start; }
.avp-staffel .avp-skopf, .avp-staffel .avp-szeile { grid-template-columns: minmax(64px, .9fr) minmax(92px, 1.2fr) minmax(104px, 1.2fr) minmax(104px, 1.2fr) 24px; }
.avp input[type=number]::-webkit-outer-spin-button, .avp input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.avp input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* ab 3.99.390 (Rene 25.11.2026 13:33): abgelaufene Preisstände – die ganze Zeile grau, nicht nur Menge und Preis */
.alv-tab tbody tr.alv-alt > td, .alv-tab tbody tr.alv-alt > td * { color: var(--th-text-dritt, #a5b0bb) !important; font-weight: 400 !important; }
/* ab 3.99.390 (Rene 25.11.2026 13:35 „B“): abgelaufene Preisstände grau hinterlegt – die geltende Zeile bleibt weiß und fett */
.alv-tab tbody tr.alv-alt > td { background: #eef1f3 !important; }
.alv-tab tbody tr.alv-alt > td, .alv-tab tbody tr.alv-alt > td * { color: #98a3ad !important; }
.alv-tab tbody tr.alv-alt:hover > td { background: #e4e9ec !important; }
/* ab 3.99.390 (Rene 25.11.2026 14:15 „unter Beschreibung ist der Text größer als oben in den Feldern – bitte anpassen für die Zukunft“):
   formatierbare Textfelder in den Masken in derselben Schriftgröße wie die Eingabefelder */
.formular-inhalt .rt-flaeche, .ul-text-fenster .rt-flaeche { font-size: .8rem; padding: calc(4px * var(--s, 1)) calc(7px * var(--s, 1)); }
.formular-inhalt .rt-flaeche h3 { font-size: 1.05rem; } .formular-inhalt .rt-flaeche h4 { font-size: .93rem; }

/* ab 3.99.392 (Rene 25.11.2026 16:56 „hier sollte keine weiße Spalte sein, sondern auch grün“): die gewählte Preisliste ist über die ganze Zeile grün */
.avp-tab tbody tr.avp-gew, .avp-tab tbody tr.avp-gew > td, .avp-tab tbody tr.avp-gew > td.avp-re { background: #e7f5f2 !important; }

/* ab 3.99.393 (Rene 25.11.2026 20:38 „weiße Linie … links sollte die Linie ganz nach unten gehen“): die Namenszelle war ein Flex-Kasten und
   damit keine Tabellenzelle mehr – sie füllte die Zeilenhöhe nicht (grüner Balken und Hintergrund zu kurz) und ließ einen weißen Spalt */
.avp-tab { border-collapse: collapse; border-spacing: 0; }
.avp-tab td.avp-nm { display: table-cell; }
.avp-tab td.avp-nm > span { vertical-align: middle; }
.avp-tab td.avp-nm > span + span { margin-left: 6px; }

/* ab 3.99.394 (Rene 25.11.2026): Stammdaten als Baum (Artikelgruppen mit Untergruppen) – nutzt die Zeilen des Shop-Kategoriebaums */
.sd-baum { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sd-baum-leiste { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid var(--mrr-rahmen, #cbd5e1); flex: none; }
.sd-baum-leiste .sh-suche { width: 220px; margin: 0; }
.sd-baum-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 4px 0; }
.sd-baum .sh-zeile { font-size: .85rem; min-height: 26px; }
.sd-baum .sh-zeile.aktiv { background: #cfe5e1; box-shadow: inset 3px 0 0 #0f7a6c; font-weight: 600; }
.sd-baum .sh-zeile small { margin-left: 6px; }
.sd-baum-tipp { padding: 3px 8px; border-top: 1px solid #eef2f6; flex: none; }
/* ab 3.99.394 (Rene 25.11.2026): Länge/Höhe/Durchmesser in einer anderen Einheit als die Breite – Einheit grün im Feld */
.einheit-abweichend .mud-input-adornment-end, .einheit-abweichend .mud-input-adornment-end .mud-typography { color: #0f7a6c !important; font-weight: 600; }
/* ab 3.99.395 (Rene 26.11.2026 01:08): Baum – Zeile irgendwo anfassen und ziehen */
.sd-baum[data-ziehen="1"] .sh-zeile[data-id] { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.sd-baum.zieht, .sd-baum.zieht .sh-zeile { cursor: grabbing !important; }
.sd-baum .sh-zeile.gezogen { opacity: .45; }
.sd-baum .ziel-in { background: #cfe5e1; outline: 2px solid #0f7a6c; outline-offset: -2px; }
.sd-baum .ziel-vor { box-shadow: inset 0 3px 0 #0f7a6c; }
.sd-baum .ziel-nach { box-shadow: inset 0 -3px 0 #0f7a6c; }
.sd-baum-schild { position: fixed; z-index: 5000; pointer-events: none; background: #0f7a6c; color: #fff; padding: 3px 10px; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; }
/* ab 3.99.395 (Rene 26.11.2026): Artikel – Reiter „Varianten“ (Module/Geschaeftspartner/Seiten/ArtikelVarianten.razor), Merkmal-Filter der
   Artikelliste, inaktive Zeilen hellgrau. Eckig, Grün #0f7a6c, kein Blau. */
.va { display: flex; flex-direction: column; gap: 6px; padding: 6px 2px 2px; font-size: .78rem; min-height: 0; }
.va-hinweis { display: flex; align-items: center; gap: 6px; padding: 10px 8px; color: #475569; }
.va-variante-von { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: #e3f1ee; border: 1px solid #b7d8d2; color: #0b5c52; }
.va-variante-von b { font-weight: 700; }
.va .va-unterreiter { margin-bottom: 2px; }
.va .va-unterreiter button, .va .va-unterreiter button b { border-radius: 0 !important; }
.va .va-unterreiter button.an { color: #0f7a6c; border-bottom-color: #0f7a6c; }
.va .va-unterreiter button.an b { background: #0f7a6c !important; color: #fff !important; }
.va-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.va-leiste .sh-suche { width: 220px; margin: 0; border-radius: 0; height: 24px; padding: 0 8px; font-size: .78rem; }
.va-leiste .mf-knopf, .va .mf-knopf { border-radius: 0; }
.va-schalter { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.va-schalter input[type=checkbox] { width: 14px; height: 14px; margin: 0; accent-color: #0f7a6c; }
.va-passen { color: #0b5c52; font-weight: 600; }
.va .va-rahmen { border-radius: 0; max-height: max(260px, calc(100vh - 640px)); min-height: 120px; }
.va-tabelle tbody tr { cursor: default; }
.va-tabelle tbody tr:hover td { background: #eef6f4 !important; }
.va-tabelle tbody tr.aktiv td { background: #cfe5e1 !important; font-weight: 600; }
.va-tabelle tbody tr.va-inaktiv td { color: #9aa5b1; }
/* ab 3.99.450 (Rene 30.11.2026 22:23 „bei inaktiven Varianten soll die ganze Zeile heller sein – Ausführung, Farbe, Größe usw.“):
   alle Zellen grau (auch Merkmale, EAN, Lagerorte), Farbfeld und Lager-Kästchen blasser; Haken und Schloss bleiben bedienbar */
.va-tabelle tbody tr.va-inaktiv td,
.va-tabelle tbody tr.va-inaktiv td :is(span, b, input:not([type=checkbox])) { color: #9aa5b1 !important; }
.va-tabelle tbody tr.va-inaktiv td .va-farbe,
.va-tabelle tbody tr.va-inaktiv td.va-lagerorte span { opacity: .45; }
.va-tabelle tbody tr.va-passt td:first-child { box-shadow: inset 3px 0 0 #0f7a6c; }
.va-tabelle .va-nr { font-variant-numeric: tabular-nums; white-space: nowrap; }
.va-tabelle .va-grau { color: #9aa5b1; }
/* ab 3.99.422: Lagerort je Variante (nur Bestand > 0) */
.va-tabelle td.va-lagerorte { white-space: normal; }
.va-tabelle td.va-lagerorte span { display: inline-block; border: 1px solid #b7dcd4; background: #eaf6f3; color: #0b4f4a; padding: 0 6px; margin: 1px 4px 1px 0; font-size: .74rem; line-height: 1.5; }
.va-tabelle td.va-lagerorte b { font-weight: 600; margin-left: 3px; }
.va-tabelle .va-schloss { color: #b45309; display: inline-flex; cursor: help; }
.va-tabelle .va-schloss .mud-icon-root { font-size: 1.05rem; }
.va-tabelle .sh-zelle { border-radius: 0; border-color: #d5dde6; background: #fff; font-weight: 400; }
.va-tabelle tfoot td { position: sticky; background: #f1f5f9; padding: 3px 6px; border-top: 1px solid #cbd5e1; }
.va-tabelle tfoot tr.va-summe td { bottom: 0; font-weight: 700; } /* ab 3.99.433: nur noch eine Fußzeile – bei einer einzigen Variante lag sie über der Zeile */
.va-tabelle tfoot tr.va-summe-klein td { bottom: 0; height: 22px; font-size: .72rem; color: #475569; border-top: 0; }
.va-tabelle .va-gesamt { margin-left: 18px; color: #1e293b; }
.va-farbe { display: inline-block; width: 11px; height: 11px; border: 1px solid #94a3b8; margin-right: 5px; vertical-align: -1px; flex: none; }
.va-konfig { display: flex; flex-direction: column; gap: 8px; }
.va-feldname { font-size: .76rem; color: #334155; }
.va-merkmalwahl { width: 220px; display: inline-block; }
.va .va-zahnrad { border-radius: 0; }
.va fieldset.rahmen.va-merkmal { position: relative; padding: 8px 10px 8px; border-radius: 0 !important; box-shadow: none !important; margin: 0; }
.va-merkmal legend small { font-weight: 400; color: #64748b; margin-left: 6px; }
.va-merkmal-knoepfe { position: absolute; top: -2px; right: 8px; display: flex; gap: 2px; background: inherit; }
.va-merkmal-knoepfe .gr-pfeil { border-radius: 0; display: inline-flex; padding: 2px; }
.va-merkmal-knoepfe .gr-pfeil .mud-icon-root { font-size: 1.05rem; }
.va-tabelle .gr-pfeil .mud-icon-root { font-size: 1.05rem; }
.va-werte { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.va-wert { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 5px; border: 1px solid #c3ced9; background: #fff; color: #334155; cursor: pointer; font-size: .78rem; white-space: nowrap; }
.va-wert .mud-icon-root { font-size: 1rem; color: #94a3b8; }
.va-wert:hover:not(:disabled) { border-color: #0f7a6c; }
.va-wert.an { border-color: #0f7a6c; background: #e3f1ee; color: #0b5c52; font-weight: 600; }
.va-wert.an .mud-icon-root { color: #0f7a6c; }
.va-wert:disabled { cursor: default; opacity: .75; }
.va-wert:focus-visible { outline: 2px solid #0f7a6c; outline-offset: 1px; }
.va-wert.va-plus { padding: 0 5px; border-style: dashed; }
.va-wert.va-plus .mud-icon-root { color: #0f7a6c; }
.va-neuwert { display: inline-flex; align-items: center; gap: 4px; }
.va-neuwert .gr-feld { height: 24px; width: 180px; border-radius: 0; }
.va-fuss { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.va-kombi { color: #1e293b; }
.va-warnung { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; background: #fff7e6; border: 1px solid #f0c36d; color: #7a4b00; font-size: .78rem; line-height: 1.35; }
.va-vorschau { padding: 4px 8px; border: 1px solid #b7d8d2; background: #e3f1ee; color: #0b5c52; font-weight: 600; min-height: 24px; }
/* kleine Fenster des Reiters: eckig, grüner Kopf mit weißer Schrift (Grundregel Dialogkopf) */
.pu-fenster:has(.va-dialog) { border-radius: 0; }
.pu-fenster:has(.va-dialog) .pu-kopf { background: var(--th-akzent, #0f7a6c); border-bottom: 0; padding: 8px 12px; }
.pu-fenster:has(.va-dialog) .pu-kopf b { color: #fff; font-size: .9rem; }
.pu-fenster:has(.va-dialog) .pu-kopf .pu-zu, .pu-fenster:has(.va-dialog) .pu-kopf .pu-zu .mud-icon-root { color: #fff; }
.pu-fenster:has(.va-dialog) .mf-knopf { border-radius: 0; }
.pu-fenster:has(.va-dialog) .pu-inhalt { overflow: visible; }
.pu-fenster:has(.va-dialog) { max-width: 600px; }
.pu-fenster:has(.va-dialog) .va-schalter { white-space: normal; }
/* Artikelliste: Knopf „Merkmale“ mit Marken, Auswahlfeld Aktive/Inaktive/Alle, inaktive Zeilen hellgrau */
.va-filterknopf { border-radius: 0 !important; }
.va-filterknopf.aktiv { border-color: #0f7a6c; color: #0b5c52; }
.va-marke { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 7px; border: 1px solid #0f7a6c; background: #e3f1ee; color: #0b5c52; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.va-marke button { all: unset; cursor: pointer; display: inline-flex; padding: 1px; color: #0b5c52; }
.va-marke button:hover { color: #b91c1c; }
.va-marke button .mud-icon-root { font-size: .9rem; }
.filtertabelle select.ft-ansicht.ft-anzeigen { border-radius: 0; }
.filtertabelle table.ft tbody tr.ft-inaktiv td { color: #a3adb8; }
.filtertabelle table.ft tbody tr.ft-inaktiv.aktiv td { color: #7b8794; }
/* ab 3.99.482: erledigte Zeilen (z. B. Belegimport „Beleg erstellt“) hellgrau */
.filtertabelle table.ft tbody tr.ft-erledigt td { background: #f1f3f4; color: #8a949e; }
.filtertabelle table.ft tbody tr.ft-erledigt.aktiv td { background: #e3ebe9; color: #5b6573; }
/* ab 3.99.395 (Rene 26.11.2026): Reiter „Varianten“ – Spalte „Bilder“ (wirksame Bilder je Variante aus der Mediathek) */
.va-tabelle .va-bilder span { display: inline-flex; align-items: center; gap: 3px; cursor: help; font-variant-numeric: tabular-nums; }
.va-tabelle .va-bilder .mud-icon-root { font-size: 1rem; color: #0f7a6c; }

/* ab 3.99.396 (Rene 26.11.2026 08:38): einheitliche Ladeanzeige – Kreisel, Text, feine Zeile mit „x von y“, dünner Balken */
.lade-anzeige { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 26px 14px; color: #5b6878; }
.lade-anzeige .lade-text { font-size: .85rem; color: #475569; }
.lade-anzeige .lade-fein { font-size: .74rem; color: #94a3b8; }
.lade-anzeige .lade-balken { display: block; width: 190px; height: 4px; background: #e8eef1; }
.lade-anzeige .lade-balken > span { display: block; height: 4px; background: var(--mf-gruen, #0f7a6c); transition: width .2s linear; }
.ft-bereich .lade-anzeige { padding: 14px; }
/* ab 3.99.396 (Rene 26.11.2026 08:23): Felder mit fester Zeichenbreite (EAN) – Zahlendreher fallen sofort auf */
.feld-eingabe.feld-mono input { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; }

/* ab 3.99.397 (Rene 26.11.2026 09:48 „ansicht problem“): In der geteilten Unterliste lief die Liste links unter den Seitenteil rechts.
   Jede Zwischenebene darf schrumpfen (min-width: 0), der Zeilenbereich bekommt einen eigenen Rollbalken – kein overflow: hidden,
   damit Auswahllisten und Popups weiter aus dem Rahmen herausragen dürfen. */
.ul-geteilt > fieldset > * , .ul-geteilt .unterbereich, .ul-geteilt .ul-kopf-fest, .ul-geteilt .ul-zeilen { min-width: 0; max-width: 100%; }
.ul-geteilt .ul-zeilen, .ul-geteilt .unterbereich > .ul-zeilen-scroll { overflow-x: auto; }
/* Preisverlauf: Köpfe und Werte in einer Zeile halten, lange Namen abschneiden statt überlappen */
.alv-tab { table-layout: fixed; }
.alv-tab th, .alv-tab td { overflow: hidden; text-overflow: ellipsis; }
.alv-tab th:first-child, .alv-tab td:first-child { width: 34%; }
/* ab 3.99.397 (Rene 26.11.2026 09:11, Vorschlag C): gerechnete Werte ohne Rahmen – ein Rahmen verspricht eine Eingabe */
.feld-eingabe.feld-wert { display: flex; align-items: baseline; gap: 6px; padding: calc(3px * var(--s)) 0; min-height: calc(26px * var(--s)); }
.feld-eingabe.feld-wert .fw-zahl { font-size: .92rem; font-weight: 600; color: var(--mf-text, #1f2937); }
.feld-eingabe.feld-wert .fw-einheit { font-size: .8rem; color: var(--mf-text-2, #64748b); }
.feld-eingabe.feld-wert .fw-aufteilung { font-size: .78rem; color: var(--mf-text-2, #64748b); margin-left: 6px; white-space: nowrap; } /* ab 3.99.422: Hauptartikel/Varianten */
.feld-eingabe.feld-wert .fw-verweis { margin-left: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: .8rem;
    color: var(--mf-gruen, #0f7a6c); border-bottom: 1px solid var(--mf-gruen, #0f7a6c); cursor: pointer; }
.feld-eingabe.feld-wert .fw-verweis:hover { color: #0a5a50; border-bottom-color: #0a5a50; }
/* ab 3.99.397 (Rene 26.11.2026 08:24): Fenster mit dem Strichcode der EAN */
.ean-dlg { text-align: center; padding: 10px 6px 2px; }
.ean-dlg .ean-bild svg { display: block; margin: 0 auto; }
.ean-dlg .ean-text { margin-top: 8px; font-size: .8rem; color: var(--mf-text-2, #64748b); }
.ean-dlg .ean-leer { padding: 18px 10px; font-size: .84rem; color: var(--mf-text-2, #64748b); }

/* ab 3.99.398 (Rene 26.11.2026 14:42 „die pfeile rechts sind zu groß! auch im feld produktart! Wir haben als grundregel dass die
   Schriften und Symbole immer gleich groß sein sollen!“): MudBlazor liefert Size.Small mit 20 px aus – das ist deutlich größer als
   unsere Schrift (13 px). Die Symbole in Feldern und Reitern tragen jetzt die Größe der Schrift, die neben ihnen steht. */
.aw-leeren .mud-icon-root, .aw-pfeil .mud-icon-root, .aw-knopf .mud-icon-root {
    font-size: 1em !important; width: 1em !important; height: 1em !important; }
html body .reiter-loesen .mud-icon-root { font-size: 1em !important; width: 1em !important; height: 1em !important; }
/* ab 3.99.398 (Rene 26.11.2026 15:18 „Wenn ich eine Kopplung anklicke soll diese auch mit feinem grünen background hinterlegt werden“) */
.anzeigeliste tr.gewaehlt > td { background: var(--mf-gruen-zart, #e4f2ef); }
.anzeigeliste tr.gewaehlt > td:first-child { box-shadow: inset 3px 0 0 var(--mf-gruen, #0f7a6c); }
/* ab 3.99.398 (Rene 26.11.2026 15:26, Vorschlag A): Auswahllisten mit Kürzel – „Stk“, „m“, „psch“ stehen in einer eigenen Spalte untereinander */
.aw-eintrag .aw-kuerzel { flex: none; min-width: 42px; text-align: center; margin-right: 9px; padding: 1px 6px; border-radius: 2px;
    font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: .82em; background: #eef2f6; color: #475569; }
.aw-eintrag.gewaehlt .aw-kuerzel { background: var(--mf-gruen, #0f7a6c); color: #fff; }
.aw-eintrag .aw-klar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-eintrag.gewaehlt { background: var(--mf-gruen-zart, #e4f2ef); box-shadow: inset 3px 0 0 var(--mf-gruen, #0f7a6c); }
/* ab 3.99.397 (Rene 26.11.2026 07:50 „optisch in der Maske hätte ich es gerne wie im Shop Artikel“): Reiter „Varianten“ → Unterreiter
   „Konfiguration“ in der Optik des Shop-Artikels (Reiter „Varianten & Preise“) – zwei Kästen nebeneinander, eckig, unser Grün. */
/* ab 3.99.398: genau zwei Kästen nebeneinander (Merkmale | Werte) wie im freigegebenen Entwurf – auto-fit hat bei breiten Masken
   eine dritte, leere Spalte gebildet und die Kästen schmal gelassen. Unter 900 px untereinander. */
.va-kaesten { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.35fr); gap: 10px; align-items: start; }
@media (max-width: 900px) { .va-kaesten { grid-template-columns: minmax(0, 1fr); } }
.va fieldset.rahmen.va-kasten { padding: 8px 10px; border-radius: 0 !important; box-shadow: none !important; margin: 0; min-width: 0; }
.va-kasten > legend { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #475569; }
.va-neu { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.va-neu .gr-feld { height: 24px; flex: 1 1 auto; min-width: 120px; border-radius: 0; }
.va-kasten table.sh-kompakt { margin-bottom: 4px; }
.va-kasten table.sh-kompakt thead th { background: #f1f5f9; }
.va-kasten table.sh-kompakt tbody tr { cursor: pointer; }
.va-kasten table.sh-kompakt tbody tr.aktiv td { background: #cfe5e1 !important; font-weight: 600; }
.va-kasten table.sh-kompakt tbody tr.va-zieh td { opacity: .5; }
.va-kasten table.sh-kompakt tbody tr.va-aus td { color: #7b8794; }
.va-kasten .gr-pfeil { border-radius: 0; display: inline-flex; padding: 1px; }
.va-kasten .gr-pfeil .mud-icon-root { font-size: 1.05rem; }
.va-kasten .va-grau, .va-kasten .va-grau .mud-icon-root { color: #9aa5b1; }
.va-kasten .va-aufpreis { font-variant-numeric: tabular-nums; }
.va-kasten .va-bildknopf { gap: 2px; font-size: .72rem; font-variant-numeric: tabular-nums; color: #0b5c52; }
.va-kasten .va-bildknopf .mud-icon-root { color: #0f7a6c; }
.va-kasten .va-bildknopf.va-grau .mud-icon-root { color: #9aa5b1; }
.va-weiter { font-size: .68rem; color: #94a3b8; line-height: 1.2; }
/* ab 3.99.455: Merkmal-Auswahl (alle Merkmale der Grundlagen) im Kasten „Merkmale“ */
/* ab 3.99.455 (Rene 01.12.2026 11:37): Griff mit sechs Punkten vorn statt der Pfeile hinten – ziehen ordnet die Zeilen */
.va-griffzelle { white-space: nowrap; }
th.va-griffkopf { padding-left: 26px; }
.va-griff { display: inline-flex; vertical-align: middle; margin-right: 4px; color: #94a3b8; cursor: grab; }
.va-griff .mud-icon-root { width: 16px; height: 16px; }
tr:hover > td > .va-griff { color: #0f7a6c; }
.va-neu .va-merkmalwahl { flex: 1 1 auto; min-width: 0; }
.va-vorschlaege { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0; }
.va-vorschlaege .va-marke { cursor: pointer; padding: 0 7px; }
.va-vorschlaege .va-marke:disabled { cursor: default; opacity: .6; }
.va-fuss .mf-knopf.va-gruen { background: var(--mf-gruen, #0f7a6c); border-color: var(--mf-gruen, #0f7a6c); color: #fff; }
.va-fuss .mf-knopf.va-gruen .mud-icon-root { color: #fff; }
.va-fuss .mf-knopf.va-gruen:disabled { opacity: .55; }
/* EAN je Variante direkt in der Liste (feste Zeichenbreite; doppelte EAN im Mandanten bleibt rot markiert) */
.va-tabelle .va-ean, .va-tabelle span.feld-mono { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.va-tabelle .va-ean.va-ean-doppelt { border-color: #b91c1c; background: #fef2f2; color: #991b1b; }

/* ab 3.99.399 (Rene 26.11.2026): Stammdaten → Mitarbeiter – Verweis in die Zeiterfassung (Zeitmodell, Feiertage, Urlaub) */
.mi-zeit { display: flex; flex-direction: column; gap: 4px; }
.mi-zeit .jn-link { display: inline-flex; align-items: center; gap: 4px; }

/* ab 3.99.403 (Rene 26.11.2026 22:52 „die Farbe geht zum Eingeben, aber anklicken läuft nicht“): der Farbkasten öffnet unter dem Knopf –
   .klein schnitt ihn mit overflow:hidden ab; der wählbare Knopf darf überstehen */
.mv-farbe-vorschau.waehlbar, .mv-farbe-vorschau.klein.waehlbar { overflow: visible; }
.mv-farbe-zelle { overflow: visible; }
/* ab 3.99.403 (Rene 22:55 „warum ist die obere Zeile höher als die untere“): Farbfeld und Farbcode in der Mandantenliste so niedrig wie das Namensschild */
.mv-farbe-zelle .farbfeld-knopf { height: 16px; padding: 0 3px; }
.mv-farbe-zelle .farbfeld-muster { width: 12px; height: 12px; }
.mv-farbe-zelle input.farbcode { height: 18px; padding: 0 4px; box-sizing: border-box; line-height: 16px; }
.mv-farbe-zelle .dms-weg { line-height: 1; padding: 0 2px; }

/* ab 3.99.406 (Rene 27.11.2026 00:56, Grundregel): Hinweis-Symbol im Reiter (z. B. Stift = enthält Text) wie die Zahl – grüner Kreis, weißes Symbol */
html body .reiter-zahl.reiter-zahl-sym:not(#_vl) { padding: 0; min-width: 18px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
html body .reiter-zahl.reiter-zahl-sym:not(#_vl) .mud-icon-root { font-size: 12px !important; width: 12px; height: 12px; color: #fff !important; }

/* ab 3.99.406: Mitarbeiterfoto links im Kopf (eckig, grün) */
.maf { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.maf-bild { position: relative; width: 84px; height: 104px; border: 1px solid var(--mf-feldrand, #c9d3d1); background: #eef4f3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.maf-bild img { width: 84px; height: 104px; object-fit: cover; display: block; }
.maf-init { color: #0f7a6c; font-size: 26px; font-weight: 600; }
.maf-aendern { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15, 122, 108, .88); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; cursor: pointer; opacity: 0; transition: opacity .15s; }
.maf-bild:hover .maf-aendern, .maf-bild:focus-within .maf-aendern { opacity: 1; }
.maf-knoepfe { display: flex; gap: 2px; }
.maf-knoepfe button { border: 1px solid var(--mf-feldrand, #c9d3d1); background: #fff; width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.maf-knoepfe button .mud-icon-root { font-size: 15px; color: #33504b; }
.mki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mki .mki-wert { background: var(--mf-nurlesen, #f2f5f4); }

/* ab 3.99.407 (Rene 27.11.2026 01:49 „wenn ich Datensätze weiterspringe, hüpft die Tab-Leiste“): Gesamtbestand immer einzeilig und gleich hoch
   („432 Stk auf 1 Lager“ brach je nach Breite um und machte den Kopf höher) */
[data-spalte="art_Gesamtbestand"] .feld-wert { white-space: nowrap; flex-wrap: nowrap; overflow: hidden; min-height: 28px; max-height: 28px; align-items: center; }
[data-spalte="art_Gesamtbestand"] .feld-wert > * { flex-shrink: 0; }
[data-spalte="art_Gesamtbestand"] .fw-verweis { white-space: nowrap; }
[data-spalte="art_Gesamtbestand"] .feld-wert { overflow: visible; }

/* ab 3.99.407: Farbkästchen vor Hex-Farbwerten in Listen (eckig) */
.ft-farbe { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }

/* =====================================================================================================
   ab 3.99.407 (Rene 27.11.2026, KI-Gateway Schritt 2): Administration → KI → KI-Verwaltung / KI-Auswertung (.kiv)
   eckig, Grün #0f7a6c, leuchtendes Grün #43a047 nur im gewählten Reiter, kein Blau/Lila; Felder einer Spalte fluchten (inv-felder)
   ===================================================================================================== */
.kiv { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.kiv-inhalt { padding: 6px 10px 12px; overflow: auto; flex: 1; min-height: 0; font-size: .78rem; }
.kiv-reiter .mf-knopf { border-radius: 0 !important; border-bottom: 2px solid transparent; }
html body .kiv-reiter .mf-knopf.kiv-an { border-bottom-color: #43a047; color: #0f7a6c; font-weight: 600; }
.kiv-reiter .mf-knopf .mud-icon-root { font-size: 16px; color: #0f7a6c; }
.kiv-tabelle { width: 100%; border-radius: 0; }
.kiv-tabelle td, .kiv-tabelle th { font-size: .76rem; }
.kiv-tabelle tbody tr { cursor: default; }
.kiv-tabelle tbody tr.kiv-gewaehlt td { background: rgba(15, 122, 108, .10); }
.kiv-tabelle tbody tr.kiv-klickbar { cursor: pointer; }
.kiv-tabelle tbody tr.kiv-laeuft td:first-child { color: #0f7a6c; font-weight: 600; }
.kiv-tabelle input:not([type=checkbox]) { height: 22px; font-size: .76rem; border: 1px solid var(--mf-feldrand, #c9d3d1); border-radius: 0; padding: 0 4px; width: 100%; box-sizing: border-box; }
.kiv-tabelle .kiv-aktion { white-space: nowrap; width: 1%; }
.kiv-tabelle .kiv-aktion .mf-knopf { padding: 0 4px; min-width: 0; }
.kiv-zahl { width: 110px !important; text-align: right; }
.kiv-rahmen { margin: 10px 0 0; border-radius: 0; }
.kiv-rahmen legend { font-size: .7rem; color: #0f7a6c; font-weight: 600; }
.kiv-rahmen .inv-felder { grid-template-columns: 170px minmax(0, 420px); }
.kiv-rahmen .inv-felder > input:not([type=checkbox]), .kiv-rahmen .inv-felder .inv-zeile > input:not([type=checkbox]) { height: 24px; font-size: .78rem; border-radius: 0; }
.kiv-knoepfe { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.kiv-knoepfe .mf-knopf { border-radius: 0 !important; }
.kiv-knoepfe .mf-knopf .mud-icon-root { font-size: 16px; }
.kiv-hinweis { color: var(--mf-text2, #5b6b68); font-size: .74rem; margin: 6px 0; }
.kiv-klein { font-size: .74rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.kiv-warnung { color: #c0392b; font-weight: 600; }
.kiv-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 16px; align-items: start; }
.kiv-zwei h4, .kiv-inhalt h4 { font-size: .76rem; color: #0f7a6c; margin: 12px 0 4px; }
.kiv-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.kiv-filter input[type=date] { height: 24px; font-size: .76rem; border: 1px solid var(--mf-feldrand, #c9d3d1); border-radius: 0; margin-left: 4px; }
.kiv-filter .mf-knopf { border-radius: 0 !important; }
.kiv-karten { margin-bottom: 8px; }
.kiv .wue-zahl { padding: 5px 12px; min-width: 96px; border-radius: 0; }
html body .kiv .wue-zahl b { font-size: 1.1rem; color: #0f7a6c; }
html body .kiv .wue-zahl.dringend b { color: #c0392b; }
.kiv .wue-zahl span { font-size: .7rem; }
.kiv-budget { height: 8px; background: #e3ebe9; margin: 6px 0 2px; max-width: 520px; }
.kiv-budget > div { height: 100%; background: #0f7a6c; }
.kiv-budget > div.kiv-warnung { background: #c0392b; }
.kiv-detail td { background: rgba(15, 122, 108, .05); }
.kiv-balken { display: flex; height: 10px; background: #e3ebe9; margin: 4px 0; max-width: 640px; }
.kiv-teil { height: 100%; }
.kiv-teil.w, .kiv-legende i.w { background: #b7c9c5; }
.kiv-teil.d, .kiv-legende i.d { background: #6fa39b; }
.kiv-teil.a, .kiv-legende i.a { background: #0f7a6c; }
.kiv-teil.p, .kiv-legende i.p { background: #f0a030; }
.kiv-legende { font-size: .72rem; color: var(--mf-text2, #5b6b68); }
.kiv-legende i { display: inline-block; width: 10px; height: 10px; margin: 0 3px -1px 6px; }
.kiv-anteil { display: inline-block; width: 60px; height: 6px; background: #e3ebe9; vertical-align: middle; }
.kiv-anteil i { display: block; height: 100%; background: #0f7a6c; }
.kiv-rahmen .inv-felder .inv-zeile { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kiv-rahmen .inv-felder .inv-zeile > input:not([type=checkbox]) { width: 110px; flex: none; }
.kiv-rahmen .inv-felder .inv-zeile > .aw, .kiv-rahmen .inv-felder .inv-zeile > div { flex: 1 1 auto; }
.kiv-zwei { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
@media (max-width: 1100px) { .kiv-zwei { grid-template-columns: minmax(0, 1fr); } }
.kiv-rahmen .inv-felder .inv-zeile > input[type=password] { width: 300px; }

/* ab 3.99.408: Grundlagen → Telekommunikation – Symbol zum Anklicken (eckige Kacheln, gewählt grün) */
.tks-auswahl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tks-knopf { min-width: 30px; height: 28px; padding: 0 6px; border: 1px solid #c9d3d1; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #33504b; }
.tks-knopf:hover:not(:disabled) { border-color: #0f7a6c; }
.tks-knopf.aktiv { background: #0f7a6c; border-color: #0f7a6c; color: #fff; }
.tks-knopf.aktiv .mud-icon-root { color: #fff; }
.tks-knopf:disabled { cursor: default; opacity: .75; }
.tks-ohne { font-size: .75rem; }
.tks-name { margin-left: 8px; font-size: .8rem; color: #33504b; }

/* ab 3.99.409 (Rene 27.11.2026 07:19): kleines Foto in Listen (Feld.ListenBild), ohne Foto die Initialen */
.ft-foto { display: inline-block; width: 22px; height: 22px; object-fit: cover; vertical-align: middle; border: 1px solid var(--mf-feldrand, #c9d3d1); background: #eef4f3; }
.ft-foto-leer { color: #0f7a6c; font-size: 10px; font-weight: 600; line-height: 20px; text-align: center; }

/* ab 3.99.409 (Rene 27.11.2026 09:07 „es öffnet, aber ist hinter der Tabelle“): Farbkasten in der Mandantenliste – die Zelle und die Liste schneiden
   ab (overflow), deshalb liegt der Kasten hier fest über dem Fenster (an der Stelle des Knopfs, nicht abgeschnitten) */
.mv-farbe-zelle .farbfeld { position: static; }
.mv-farbe-zelle .farbfeld .farbkasten { position: fixed !important; top: auto !important; left: auto !important; margin-top: 22px; z-index: 2001; }
.mv-farbe-zelle .farbfeld .auf-format-hinter { z-index: 2000; }

/* ab 3.99.409 (Rene 27.11.2026 09:08/09:10): KI-Verwaltung – Reiter wie in den Stammdaten; Verbindungstest grün bzw. rot */
.kiv-tabs { margin: 8px 12px 0; }
.kiv-tabs .mud-tabs-panels { display: none; }
.kiv-neuladen { all: unset; cursor: pointer; display: inline-flex; align-items: center; padding: 0 8px; color: #0f7a6c; }
.kiv-test { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; font-size: .78rem; border: 1px solid; }
.kiv-test.ok { color: #1b5e20; background: #e8f5e9; border-color: #a5d6a7; }
.kiv-test.ok .mud-icon-root { color: #43a047; }
.kiv-test.fehler { color: #b71c1c; background: #fdecea; border-color: #f5c6c2; }

/* ab 3.99.409 (Rene 27.11.2026 09:13 „jenen Mandanten, den ich nicht angeklickt habe, hellgrau“): in der Mandantenliste treten die nicht gewählten Zeilen zurück */
.mv-liste:has(.mv-zeile.gewaehlt) .mv-zeile:not(.gewaehlt):not(.mv-kopf) { opacity: .45; }
.mv-liste:has(.mv-zeile.gewaehlt) .mv-zeile:not(.gewaehlt):not(.mv-kopf):hover { opacity: .8; }

/* ab 3.99.409: Telekommunikation – Symbolauswahl in Gruppen */
.tks-wahl { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid var(--mf-feldrand, #c9d3d1); background: #fff; font-size: .82rem; }
.tks-wahl:disabled { cursor: default; opacity: .6; }
.tks-liste { grid-column: 1 / -1; margin: 4px 0 0; padding: 6px 8px; border: 1px solid #c9d3d1; background: #fff; max-height: 360px; overflow: auto; }
.tks-gruppe { font-size: .68rem; font-weight: 600; color: #0f7a6c; margin: 6px 0 3px; }
.tks-gruppe:first-child { margin-top: 0; }
.tks-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 3px; }
.tks-eintrag { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 3px 6px; font-size: .8rem; border: 1px solid transparent; }
.tks-eintrag:hover { border-color: #0f7a6c; }
.tks-eintrag.aktiv { background: #0f7a6c; color: #fff; }

/* ab 3.99.409 (Rene 27.11.2026 09:07): Staffeln berechnen */
.avp-rechner { margin-top: 8px; border: 1px solid #0f7a6c; background: #fff; }
.avp-rkopf { display: flex; justify-content: space-between; align-items: center; background: #0f7a6c; color: #fff; padding: 4px 6px 4px 10px; font-size: 12px; font-weight: 600; }
.avp-rkopf button { all: unset; cursor: pointer; display: inline-flex; color: #fff; }
.avp-rfelder { display: grid; grid-template-columns: 170px minmax(0, 220px); gap: 4px 10px; align-items: center; padding: 8px 10px; font-size: 12px; }
.avp-rfelder input, .avp-rfelder select { height: 24px; border: 1px solid var(--th-feldrand, #c9d3d1); font: inherit; padding: 0 4px; background: #fff; width: 100%; box-sizing: border-box; }
.avp-rtab { margin: 0 10px 6px; border-collapse: collapse; font-size: 12px; min-width: 300px; }
.avp-rtab th { font-weight: 600; color: #45635d; border-bottom: 1px solid #d0d6de; padding: 2px 8px; }
.avp-rtab td { border-bottom: 1px solid #eef1f4; padding: 2px 8px; }
.avp-rknoepfe { display: flex; align-items: center; gap: 10px; padding: 4px 10px 8px; }
.avp-rknoepfe .avp-hinw { margin: 0; }
.avp-rfehler { color: #b71c1c; padding: 0 10px 8px; font-size: 12px; }

/* ab 3.99.409 (Rene 27.11.2026 09:07): Mandantenverwaltung → Reiter Auslastung */
.mau .mau-stand { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 400; color: #45635d; }
.mau-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; }
.mau-kachel { border: 1px solid #c9d3d1; border-left: 4px solid #0f7a6c; background: #fff; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.mau-kachel span { font-size: .72rem; color: #45635d; }
.mau-kachel b { font-size: 1.15rem; font-weight: 600; color: #1c2b29; }
.mau-kachel small { font-size: .72rem; color: #64748b; }
.mau-kachel.gelb { border-left-color: #e0a800; }
.mau-kachel.rot { border-left-color: #c62828; }
.mau-titel { font-size: .72rem; font-weight: 600; color: #0f7a6c; margin: 12px 0 4px; display: flex; gap: 12px; align-items: center; }
.mau-legende { font-weight: 400; color: #45635d; display: inline-flex; gap: 4px; align-items: center; }
.mau-legende i { display: inline-block; width: 10px; height: 10px; margin-left: 8px; }
.mau-verlauf { display: flex; align-items: flex-end; gap: 2px; height: 70px; border-bottom: 1px solid #c9d3d1; }
.mau-verlauf > span { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; }
.mau-verlauf i, .mau-legende i { display: block; }
.mau-verlauf i.sql, .mau-legende i.sql { background: #0f7a6c; }
.mau-verlauf i.andere, .mau-legende i.andere { background: #9fcfc6; }
.mau-tab { width: 100%; table-layout: auto; }
.mau-tab td.mau-sql { font-family: Consolas, monospace; font-size: .72rem; max-width: 700px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mau-tab tr.mau-lang td { color: #b71c1c; }
.mau-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.mau-hinweis { margin-top: 8px; font-size: .75rem; color: #6b5a00; background: #fff8e1; border: 1px solid #f0dc9a; padding: 4px 8px; }
.mau-hinweis.fehler { color: #b71c1c; background: #fdecea; border-color: #f5c6c2; }

/* ab 3.99.410: KI-Entwurf eines Angebots oder Auftrags (BelegKiEntwurfDialog) */
.kbe-eingabe { display: flex; flex-direction: column; gap: 6px; }
.kbe-zeile { display: flex; align-items: center; gap: 14px; font-size: .8rem; }
.kbe-label { width: 90px; color: #0f7a6c; font-weight: 600; }
.kbe-art { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.kbe-text { width: 100%; box-sizing: border-box; border: 1px solid var(--th-rahmen, #c9d3e0); border-radius: 0; padding: 6px 8px; font: inherit; font-size: .8rem; resize: vertical; }
.kbe-knoepfe { display: flex; gap: 8px; align-items: center; justify-content: flex-start; }
.kbe-titel { color: #0f7a6c; font-weight: 600; font-size: .8rem; margin: 12px 0 4px; }
.kbe-kunde { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.kbe-kunde .aw-breit { min-width: 340px; }
.kbe-ok { color: #43a047; }
.kbe-offen { color: #b7791f; }
.kbe-liste { width: 100%; border-collapse: collapse; font-size: .8rem; }
.kbe-liste th { text-align: left; font-weight: 600; color: #50607a; padding: 3px 4px; border-bottom: 1px solid var(--th-rahmen, #c9d3e0); }
.kbe-liste td { padding: 4px; vertical-align: top; border-bottom: 1px solid #edf0f4; }
.kbe-liste .r { text-align: right; white-space: nowrap; }
.kbe-liste tr.kbe-gelb td { background: #fff8e1; }
.kbe-liste tr.kbe-summe td { font-weight: 600; border-bottom: none; }
.kbe-menge { width: 72px; text-align: right; border: 1px solid var(--th-rahmen, #c9d3e0); border-radius: 0; padding: 1px 4px; font: inherit; }
.kbe-klein { font-size: .72rem; color: #5f6b7a; }
.kbe-pruefen { background: #fff8e1; border-left: 3px solid #c9a227; padding: 6px 8px; font-size: .8rem; display: flex; flex-direction: column; gap: 5px; }
.kbe-frage { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kbe-fuss { margin-top: 10px; padding-top: 6px; border-top: 1px solid #edf0f4; display: flex; gap: 6px; align-items: flex-start; }

/* ab 3.99.412: Online-Test „Kostenlos testen“ (ohne MudBlazor-Layout, eckig, Inntec-Grün) */
.ot { min-height: 100vh; display: grid; place-items: start center; padding: 2rem 1rem; background: #eef3f2; font-family: var(--schrift); }
.ot-karte { width: 100%; max-width: 920px; box-sizing: border-box; background: #fff; border: 1px solid #d5e2df; padding: 0 0 1.25rem; }
.ot-karte.schmal { max-width: 560px; }
.ot-kopf { background: #0f7a6c; color: #fff; padding: 1.1rem 1.5rem; display: grid; gap: .25rem; }
.ot-kopf h1 { margin: .4rem 0 0; font-size: 1.25rem; font-weight: 700; }
.ot-kopf p { margin: 0; font-size: .9rem; opacity: .92; }
.ot-form { padding: 1rem 1.5rem 0; display: grid; gap: .7rem; }
.ot-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1rem; }
.ot-felder.eins { grid-template-columns: 1fr; }
.ot-felder label { display: grid; gap: .25rem; font-size: .78rem; font-weight: 600; color: #3c4a5a; }
.ot input[type=text], .ot input:not([type]), .ot input[type=email], .ot input[type=password] { font: inherit; font-size: .92rem; padding: .5rem .6rem; border: 1px solid #b9c7c4; border-radius: 0; background: #fff; }
.ot input:focus { outline: 2px solid #0f7a6c; outline-offset: 0; }
.ot h2 { margin: .6rem 0 0; font-size: 1rem; color: #0f7a6c; }
.ot-klein { font-size: .8rem; color: #5b6b7a; margin: .2rem 0; }
.ot-falle { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ot-bereich { border: 1px solid #d5e2df; }
.ot-bereich > summary { cursor: pointer; padding: .55rem .8rem; background: #f4f8f7; font-weight: 700; font-size: .9rem; color: #1f2d3d; list-style: none; }
.ot-bereich > summary::-webkit-details-marker { display: none; }
.ot-bereich > summary::before { content: "▸ "; color: #0f7a6c; }
.ot-bereich[open] > summary::before { content: "▾ "; }
.ot-bereich > summary span { font-weight: 400; color: #5b6b7a; font-size: .8rem; margin-left: .3rem; }
.ot-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; padding: .6rem; }
.ot-wahl { position: relative; cursor: pointer; }
.ot-wahl input { position: absolute; opacity: 0; }
.ot-wahl-innen { display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; padding: .6rem .65rem; border: 1px solid #c8d6d3; background: #fff; min-height: 100%; box-sizing: border-box; }
.ot-wahl-innen .mud-icon-root { grid-row: span 2; color: #0f7a6c; font-size: 1.6rem; }
.ot-wahl-innen b { font-size: .86rem; color: #1f2d3d; }
.ot-wahl-innen small { font-size: .74rem; color: #5b6b7a; line-height: 1.3; }
.ot-wahl:hover .ot-wahl-innen { border-color: #0f7a6c; }
.ot-wahl input:checked + .ot-wahl-innen { border: 2px solid #0f7a6c; background: #eaf6f3; padding: calc(.6rem - 1px) calc(.65rem - 1px); }
.ot-wahl input:focus-visible + .ot-wahl-innen { outline: 2px solid #0f7a6c; outline-offset: 2px; }
.ot-zustimmung { display: grid; grid-template-columns: auto 1fr; gap: .5rem; font-size: .82rem; color: #3c4a5a; align-items: start; margin-top: .4rem; }
.ot-zustimmung a, .ot-fuss a:not(.ot-knopf) { color: #0f7a6c; }
.ot-knopf { justify-self: start; display: inline-block; padding: .65rem 1.4rem; border: 0; border-radius: 0; background: #0f7a6c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.ot-knopf:hover { background: #0b5f54; }
.ot-fehler { margin: 1rem 1.5rem 0; background: #fdecea; color: #8c1d18; padding: .6rem .75rem; font-size: .86rem; }
.ot-hinweis { margin: 1rem 1.5rem 0; background: #fff8e1; color: #6b4e00; padding: .6rem .75rem; font-size: .86rem; }
.ot-ok { margin: 1rem 1.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: .75rem; background: #eaf6f3; border: 1px solid #b7dcd4; padding: .8rem .9rem; font-size: .88rem; }
.ot-ok .mud-icon-root { color: #0f7a6c; font-size: 2rem; }
.ot-ok p { margin: .3rem 0 0; }
.ot-balken { height: 8px; background: #d5e2df; margin-top: .6rem; }
.ot-balken i { display: block; height: 100%; background: #0f7a6c; transition: width .4s; }
.ot-fuss { padding: .9rem 1.5rem 0; margin: 0; font-size: .85rem; }
@media (max-width: 600px) { .ot { padding: 0; } .ot-karte { border: 0; } .ot-felder { grid-template-columns: 1fr; } }
/* Leiste „Testversion – noch n Tage“ */
/* ab 3.99.420 (Rene 27.11.2026, Entwurf D): „Kostenlos testen“ im Stil der Webseite inntec-one.com – dunkler Kopf (Nacht), Petrol, Mint, Programmvorschau links, Formular rechts */
.otd { --otd-nacht: #17222a; --otd-petrol: #0f766e; --otd-petrol-d: #0b5a54; --otd-mint: #7fe0d0; --otd-text: #1f2d3d; --otd-leise: #5b6b7d; --otd-linie: #e2e8f0; --otd-flaeche: #f4f7f8;
  min-height: 100vh; display: flex; flex-direction: column; background: var(--otd-flaeche); color: var(--otd-text); font-family: var(--schrift); }
.otd a { color: inherit; }
.otd-breite { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.otd-leiste { background: var(--otd-nacht); border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 max(24px, calc((100% - 1120px) / 2 + 24px)); }
.otd-marke { display: inline-flex; align-items: center; text-decoration: none; }
.otd-leiste nav { margin-left: auto; display: flex; gap: 24px; }
.otd-leiste nav a { color: #cbd5e1; font-weight: 500; font-size: .92rem; text-decoration: none; }
.otd-leiste nav a:hover { color: #fff; }
.otd-band { background: var(--otd-nacht); color: #fff; padding: 28px 0 40px; }
.otd-oben { margin: 0; color: var(--otd-mint); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.otd-band h1 { margin: .35rem 0 1.5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.25; color: #fff; }
.otd-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.otd-fenster { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.otd-fenster.neu .otd-programm { animation: otd-blende .35s ease; }
@keyframes otd-blende { from { opacity: .25; } to { opacity: 1; } }
.otd-fenster-kopf { background: #2a3a45; padding: 7px 10px; display: flex; align-items: center; gap: 5px; }
.otd-fenster-kopf i { width: 8px; height: 8px; border-radius: 50%; background: #5b6b7d; }
.otd-fenster-kopf span { margin-left: 10px; font-size: .72rem; color: #cbd5e1; }
.otd-fenster-inhalt { display: grid; grid-template-columns: 48px minmax(0, 1fr); min-height: 250px; }
.otd-menue { background: #0f7a6c; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.otd-menue .mud-icon-root { color: #fff; font-size: 1.25rem; }
.otd-programm { padding: 12px 14px; color: var(--otd-text); }
.otd-programm-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--otd-linie); padding-bottom: 8px; }
.otd-programm-kopf b { font-size: .92rem; }
.otd-programm-kopf span { font-size: .76rem; color: var(--otd-leise); }
.otd-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.otd-zahlen div { background: var(--otd-flaeche); padding: 8px 10px; display: grid; gap: 2px; }
.otd-zahlen small { font-size: .7rem; color: var(--otd-leise); }
.otd-zahlen b { font-size: 1.15rem; color: #0f7a6c; }
.otd-liste-kopf { font-size: .74rem; font-weight: 600; color: var(--otd-leise); margin-bottom: 4px; }
.otd-liste { list-style: none; margin: 0; padding: 0; }
.otd-liste li { font-size: .8rem; padding: 6px 0 6px 18px; border-bottom: 1px solid #eef2f5; position: relative; }
.otd-liste li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border: 1.5px solid #0f7a6c; border-radius: 2px; }
.otd-unter { margin: 10px 0 0; font-size: .8rem; color: #cbd5e1; }
.otd-vorteile { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: #e2e8f0; }
.otd-vorteile li { display: flex; align-items: center; gap: 8px; }
.otd-vorteile .mud-icon-root { color: var(--otd-mint); font-size: 1.15rem; }
.otd-karte { background: #fff; color: var(--otd-text); border-radius: 12px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.otd-karte.otd-schmal { max-width: 620px; }
.otd-karte h2 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
.otd-meldung { margin: 0 0 12px; border-radius: 8px; }
.otd-form { display: grid; gap: 14px; }
.otd-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.otd-felder .otd-ganz { grid-column: 1 / -1; }
.otd-felder label, .otd-titel { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--otd-leise); }
.otd input:not([type=checkbox]), .otd select { font: inherit; font-size: .9rem; color: var(--otd-text); padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.otd input:focus, .otd select:focus { outline: 2px solid rgba(15,118,110,.35); border-color: var(--otd-petrol); }
.otd input:user-invalid, .otd select:user-invalid { border: 2px solid #c62828; }
.otd-branche { display: grid; gap: 6px; }
.otd-bereiche { display: flex; flex-wrap: wrap; gap: 6px; }
.otd-bereiche[hidden] { display: none; }
.otd-bereiche button { font: inherit; font-size: .8rem; padding: 5px 11px; border: 1px solid var(--otd-linie); border-radius: 8px; background: #fff; color: var(--otd-text); cursor: pointer; }
.otd-bereiche button:hover { border-color: var(--otd-petrol); }
.otd-bereiche button.an { background: var(--otd-petrol); border-color: var(--otd-petrol); color: #fff; }
.otd-beschreibung { font-size: .78rem; color: var(--otd-leise); min-height: 1.1em; }
.otd-zustimmung { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: .8rem; color: var(--otd-leise); align-items: start; }
.otd-zustimmung a { color: var(--otd-petrol); }
/* ab 3.99.435: Rechenaufgabe gegen Programme */
.otd-rechnung { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin: 6px 0 2px; }
.otd-rechnung input { width: 70px; padding: 6px 8px; font: inherit; border: 1px solid #c9d4df; }
.otd-knopf { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--otd-petrol); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.otd-knopf:hover { background: var(--otd-petrol-d); }
.otd-knopf .mud-icon-root { font-size: 1.1rem; }
.otd-anmelden { margin: 12px 0 0; font-size: .82rem; text-align: center; }
.otd-anmelden a { color: var(--otd-petrol); }
.otd-ablauf { padding: 26px 0 34px; }
.otd-ablauf svg.mud-icon-root { width: 44px; height: 44px; box-sizing: border-box; } /* ab 3.99.423: Symbole waren zu klein */
.otd-ablauf .otd-breite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.otd-ablauf .otd-breite > div { display: flex; gap: 12px; align-items: flex-start; }
.otd-ablauf .mud-icon-root { font-size: 1.5rem; color: var(--otd-petrol); background: #e3f3f1; padding: 8px; border-radius: 10px; flex: none; }
.otd-ablauf p { margin: 0; font-size: .84rem; color: var(--otd-leise); display: grid; gap: 2px; }
.otd-ablauf b { color: var(--otd-text); font-size: .9rem; }
/* ab 3.99.423 (Entwurf E): hell und ruhig – dunkle Leiste, zentrierte Überschrift, Formular in einer weißen Karte */
.otd-hell .otd-leiste { height: 56px; }
.otd-mitte { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 40px 20px 48px; box-sizing: border-box; }
.otd-mitte h1 { margin: 0; text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.25; color: var(--otd-text); }
.otd-unterzeile { margin: 8px 0 24px; text-align: center; font-size: .95rem; color: var(--otd-leise); }
.otd-hell .otd-karte { border: 1px solid var(--otd-linie); box-shadow: 0 8px 24px rgba(23,34,42,.08); padding: 24px 26px; }
.otd-schritte { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--otd-leise); }
.otd-schritte span { color: var(--otd-petrol); margin: 0 6px; }
/* ab 3.99.423: Bilder – links Überschrift und großes Programmbild, rechts Formular; Bildleiste, Cloud-Hinweis, Schritte */
.otd-oben-raster { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 24px 28px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
.otd-links .otd-oben { color: var(--otd-petrol); }
.otd-links h1 { margin: .3rem 0 0; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.2; color: var(--otd-text); }
.otd-links .otd-unterzeile { text-align: left; margin: 8px 0 20px; }
.otd-bild { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.otd-bild img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--otd-linie); }
.otd-gross img { box-shadow: 0 18px 40px rgba(23,34,42,.18); }
.otd-rechts .otd-karte { position: sticky; top: 16px; }
.otd-galerie { background: #fff; border-top: 1px solid var(--otd-linie); border-bottom: 1px solid var(--otd-linie); padding: 28px 24px 32px; }
.otd-galerie h2, .otd-cloud h2 { margin: 0 0 16px; text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--otd-text); }
.otd-galerie-raster { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.otd-galerie figure { margin: 0; }
.otd-galerie figcaption { margin-top: 8px; text-align: center; font-size: .86rem; color: var(--otd-leise); }
.otd-cloud { max-width: 1180px; margin: 0 auto; padding: 32px 24px 8px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; box-sizing: border-box; width: 100%; }
.otd-cloud img { width: 100%; height: auto; border-radius: 14px; }
.otd-cloud h2 { text-align: left; }
.otd-cloud p { margin: 0; color: var(--otd-leise); line-height: 1.6; }
.otd-zoom { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.otd-zoom::backdrop { background: rgba(23,34,42,.8); }
.otd-zoom img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 8px; cursor: zoom-out; }
.otd-zoom button { position: absolute; top: 6px; right: 10px; border: 0; background: rgba(23,34,42,.7); color: #fff; font-size: 1.4rem; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
@media (max-width: 900px) {
  .otd-oben-raster { grid-template-columns: 1fr; gap: 20px; padding: 20px 14px; }
  .otd-rechts { order: -1; }
  .otd-rechts .otd-karte { position: static; }
  .otd-galerie-raster { grid-template-columns: 1fr; }
  .otd-cloud { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .otd-raster { grid-template-columns: 1fr; }
  .otd-raster .otd-karte { order: -1; }
  .otd-ablauf .otd-breite { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .otd-breite { padding: 0 14px; }
  .otd-leiste { padding: 0 14px; gap: 12px; }
  .otd-leiste nav { gap: 14px; }
  .otd-felder { grid-template-columns: 1fr; }
  .otd-karte { padding: 16px; }
}

.ot-leiste { display: flex; align-items: center; gap: .6rem; background: #0f7a6c; color: #fff; padding: .3rem .8rem; font-size: .8rem; }
.ot-leiste b { font-weight: 700; }
.ot-leiste a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; }
.ot-leiste.bald { background: #b45309; }
.login-ok { background: #eaf6f3; color: #0b5f54; padding: .55rem .7rem; font-size: .82rem; margin-bottom: .4rem; }
.login-mandantnr { margin-top: .5rem; font-size: .75rem; color: var(--mf-text-2); }
.login-mandantnr summary { cursor: pointer; }
.login-mandantnr input { margin-top: .3rem; }
.ot-an { display: inline-block; padding: 2px 8px; background: #fdecea; color: #8c1d18; font-size: .78rem; font-weight: 700; }
.ot-an.an { background: #e5f4ef; color: #0f7a6c; }
.ot-reiter .ot-text { font-size: .82rem; color: var(--mf-text-2); margin: 0 0 .5rem; }
.ot-tabelle td { vertical-align: middle; }
.ot-tabelle tr.st-geloescht td { color: #9aa4ae; }
.ot-stand { display: inline-block; padding: 1px 6px; font-size: .74rem; background: #eef2f6; }
.ot-stand.aktiv { background: #e5f4ef; color: #0f7a6c; }
.ot-stand.gesperrt, .ot-stand.fehler { background: #fdecea; color: #8c1d18; }
.ot-aktionen { white-space: nowrap; }
.ot-einst { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 8px 12px; padding: 8px; max-width: 1400px; align-items: start; } /* ab 3.99.414: Raster wie die anderen Masken */
.ot-einst .formular-leiste { grid-column: 1 / -1; }
.ot-rahmen input[type=number] { width: 90px; }
.ot-einst h3 { margin: .6rem 0 0; font-size: .9rem; color: #0f7a6c; }
.ot-zeile { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; align-items: start; }
.ansicht-formular:has(> .ot-reiter) { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.ot-reiter { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ot-reiter .mud-tabs-panels { flex: 1 1 auto; min-height: 0; overflow: auto; }
.ot-kopf h1, .ot-kopf p { color: #fff; }

/* ab 3.99.413 (Rene 27.11.2026 15:50): falsches Feld rot umrandet, darunter der Grund */
input.lw-falsch, input.lw-falsch:focus { border-color: #c62828 !important; box-shadow: 0 0 0 1px #c62828 !important; }
.lw-falsch-text { color: #c62828; font-size: .78rem; }
.ot-seite input:user-invalid, .ot-seite select:user-invalid { border-color: #c62828 !important; box-shadow: 0 0 0 1px #c62828; }
/* ab 3.99.415 (Rene 27.11.2026 18:33): gespeichertes Kennwort als schwarze Punkte */
.ot-kennwort-gespeichert::placeholder { color: #1f2937; opacity: 1; letter-spacing: .1em; }
/* ab 3.99.415: Fortschritt „Onlinevorlagen einrichten“ */
.ot-fortschritt { border: 1px solid #aebccc; background: #fff; padding: 8px 10px; margin: 6px 0 8px; font-size: .82rem; }
.ot-fortschritt.fertig { border-color: #0f7a6c; }
.ot-fortschritt.fehler { border-color: #c62828; }
.ot-fortschritt-kopf { display: flex; align-items: center; gap: 8px; }
.ot-fortschritt.fertig .ot-fortschritt-kopf .mud-icon-root { color: #0f7a6c; }
.ot-fortschritt.fehler .ot-fortschritt-kopf .mud-icon-root, .ot-fehler { color: #c62828; }
.ot-fortschritt-zeit { margin-left: auto; color: var(--mf-text-2); font-size: .75rem; }
.ot-balken { height: 6px; background: #e5ebe9; margin: 6px 0 4px; }
.ot-balken > span { display: block; height: 100%; background: #0f7a6c; transition: width .3s; }
.ot-fortschritt-schritt { color: var(--mf-text-2); }
.ot-fehler { margin: 6px 0 0; padding-left: 18px; font-size: .78rem; }
/* ab 3.99.417 (Rene 27.11.2026 „Machen wir A“): KI-Feld in der Kopfleiste */
.kif-rahmen { position: relative; flex: 0 1 360px; min-width: 180px; margin: 0 8px; }
.kif-feld { display: flex; align-items: center; gap: 4px; background: #fff; border: 2px solid #0f7a6c; height: 30px; padding: 0 2px 0 6px; }
.kif-feld .kif-symbol { color: #0f7a6c; font-size: 18px; }
.kif-eingabe { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .82rem; color: #1f2937; background: transparent; }
.kif-mic { width: 24px; height: 24px; border: 0; background: #0f7a6c; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.kif-mic .mud-icon-root { font-size: 16px; color: #fff; }
.kif-pop { position: absolute; top: 34px; left: 0; width: max(100%, 440px); z-index: 1500; background: #fff; border: 1px solid #aebccc; color: #1f2937; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.kif-pop-kopf { background: #0f7a6c; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: .85rem; font-weight: 600; }
.kif-pop-kopf button { background: none; border: 0; color: #fff; cursor: pointer; display: flex; padding: 0; }
.kif-pop-kopf .mud-icon-root { color: #fff; font-size: 18px; }
.kif-zeile { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-bottom: 1px solid #e5ebe9; width: 100%; text-align: left; background: #fff; font: inherit; font-size: .82rem; }
.kif-wahl { border: 0; border-bottom: 1px solid #e5ebe9; cursor: pointer; }
.kif-wahl:hover, .kif-wahl.erste { background: #e8f3f1; }
.kif-wahl .mud-icon-root { color: #0f7a6c; }
.kif-wahl b { display: block; font-weight: 600; }
.kif-wahl small { display: block; color: var(--mf-text-2, #5b6b7b); font-size: .75rem; }
.kif-fuss { padding: 5px 10px; font-size: .72rem; color: var(--mf-text-2, #5b6b7b); }
@media (max-width: 1100px) { .kif-rahmen { display: none; } }

/* ab 3.99.423 (Rene 28.11.2026 02:14): KI-Anbieter – Schalter „Aktiviert“ oben, aus = Felder grau */
.kiv-schalter { display: flex; align-items: center; gap: 14px; padding: 4px 0 10px; margin-bottom: 8px; border-bottom: 1px solid #e3ebe9; }
.kiv-schalter .mud-switch .mud-typography { font-size: 1rem; font-weight: 700; color: #0f7a6c; }
.kiv-aus .kiv-schalter .mud-switch .mud-typography { color: #8c1d18; }
.kiv-schalter-text { font-size: .82rem; color: var(--mf-text-2, #5b6b7a); }
fieldset.kiv-innen { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.kiv-innen:disabled { opacity: .45; filter: grayscale(1); }

/* ab 3.99.423: KI-Assistent – Popup in der Mitte (statt Feld in der Kopfleiste) */
.kia-hintergrund { position: fixed; inset: 0; z-index: 1600; background: rgba(15,23,42,.35); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.kia-pop { width: min(620px, 94vw); background: #fff; border: 1px solid #aebccc; box-shadow: 0 12px 32px rgba(0,0,0,.25); color: #1f2937; }
.kia-pop .kif-pop-kopf span { display: flex; align-items: center; gap: 6px; }
.kia-feld { display: flex; align-items: center; gap: 6px; margin: 12px; border: 2px solid #0f7a6c; height: 40px; padding: 0 4px 0 10px; background: #fff; }
.kia-feld .kif-eingabe { font-size: .95rem; }
.kia-feld .kif-mic { width: 32px; height: 32px; }
.kia-pop .kif-wahl:disabled { cursor: default; opacity: .55; background: #fff; }

/* ab 3.99.423: Hinweis, wenn alle Bereiche der Startseite ausgeblendet sind (Vorgabe) */
.start-bereiche-aus { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .85rem; color: var(--mf-text-2, #5b6b7a); }

/* ab 3.99.423 (Rene 28.11.2026 02:23 „Können wir diese Werbung dezenter machen?“): Wunsch-Folie der NEWS-Leiste hell wie die Tipps – grüner Akzent statt grüner Fläche, ohne Leuchten */
.start-news.wunsch { background: linear-gradient(120deg, #f2faf8, #ffffff 60%); border-color: #b7dcd4; color: inherit; }
.start-news.wunsch .news-label { background: #0f766e; color: #fff; }
.start-news.wunsch .news-art { color: #0f766e; }
.news-wunsch:hover { background: #eaf6f3; }
.news-wunsch b { color: #1f3b63; font-size: 1rem; }
.news-wunsch small { color: #46566a; }
.news-wunsch .wunsch-licht { width: 34px; height: 34px; background: #e3f3f1; animation: none; }
.news-wunsch .wunsch-licht .mud-icon-root { color: #0f766e; font-size: 1.2rem; animation: none; }
.news-wunsch > .mud-icon-root { color: #0f766e; }
.start-news.wunsch .news-knoepfe { color: #5b7f78; }
.start-news.wunsch .news-punkte button { background: #cfe5e0; }
.start-news.wunsch .news-punkte button.an { background: #0f766e; }
.start-news.wunsch .news-lauf { background: #0f766e; opacity: .4; }

/* ab 3.99.424: Rechte-Matrix – Funktion nicht lizenziert (ganz) bzw. nicht in der Benutzer-Lizenz eines Benutzers */
.rm-nichtlizenz { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: .68rem; font-weight: 600; color: #8c1d18; background: #fdecea; border: 1px solid #f3c2bd; }
.rm-zelle .rm-z.ohne-lizenz { outline: 2px dashed #c62828; outline-offset: -3px; }

/* ab 3.99.424 (Rene 28.11.2026): geänderte Felder im Modus Bearbeiten – Klick auf „Modus: Bearbeiten“ */
.formular-leiste > .leiste-modus.schaltbar { cursor: pointer; }
.formular-leiste > .leiste-modus.schaltbar:hover { border-color: #e08a1e; }
.formular-leiste > .leiste-modus.aenderungen-an { background: #e08a1e; color: #fff; border-color: #e08a1e; min-width: 0; }
.rf.feld-geaendert { position: relative; }
.rf.feld-geaendert .mud-input-outlined-border, .rf.feld-geaendert .mud-input.mud-input-outlined { border-color: #e08a1e !important; }
.rf.feld-geaendert .mud-input-outlined-border { border-width: 2px !important; }
.rf.feld-geaendert::before { content: ""; position: absolute; top: calc(2px * var(--s)); right: calc(2px * var(--s)); width: 7px; height: 7px; background: #e08a1e; border-radius: 50%; z-index: 2; pointer-events: none; }
.rf.feld-geaendert > .feld-vorher { position: absolute; left: calc(4px * var(--s)); top: 100%; margin-top: -2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; line-height: 1.2; color: #8a4b00; background: var(--mf-hintergrund, #fff); padding: 0 3px; z-index: 3; pointer-events: auto; }
.gegenueber-feld.feld-geaendert .mud-input-outlined-border { border-color: #e08a1e !important; border-width: 2px !important; }
.reiter-geaendert { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e08a1e; margin-left: 5px; vertical-align: middle; }

/* ab 3.99.424 (Rene 28.11.2026): Startseite – „+ Kachel“, hohe Kachel „Nächster Termin“ mit Zeilen, Kacheln jederzeit ziehbar */
.start-kachel.hoch { grid-row: span 2; }
.start-kachel.hoch .start-kachel-knopf { height: 100%; }
.start-kachel[draggable="true"] { cursor: grab; }
.start-zeilen { display: flex; flex-direction: column; gap: 3px; margin-top: calc(6px * var(--s)); }
.start-zeile { display: flex; gap: 7px; font-size: calc(12px * var(--s)); line-height: 1.3; color: var(--sk-text); min-width: 0; }
.start-zeile b { flex: none; font-weight: 600; color: var(--sk-leise); font-variant-numeric: tabular-nums; }
.start-zeile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.start-kachel:not(.hoch) .start-zeilen { margin-top: 2px; }
.start-groesse { all: unset; position: absolute; right: 6px; bottom: 6px; display: inline-flex; padding: 3px; border-radius: 6px; cursor: pointer; color: var(--sk-leise); }
.start-groesse:hover { color: var(--sm); background: color-mix(in srgb, var(--sm), transparent 90%); }
.start-dazu { position: relative; margin-right: auto; }
.start-stand button.start-dazu-knopf { gap: 3px; padding: 3px 8px; border: 1px dashed color-mix(in srgb, var(--sk-leise), transparent 40%); border-radius: 6px; }
.start-dazu-liste { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 200px; padding: 4px; background: #fff; border: 1px solid #d6dde4; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.start-stand .start-dazu-liste button { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 0; color: #24323f; font-size: 13px; }
.start-stand .start-dazu-liste button:hover { background: #e6f2f0; color: #0f7a6c; }

/* ab 3.99.426 (Rene 28.11.2026 10:29): Rechtsseiten /nutzungsbedingungen, /datenschutz, /impressum – wie „Kostenlos testen“, ohne Lizenzportal */
.otd-recht { max-width: 820px; margin: 0 auto; padding: 40px 24px 56px; color: var(--otd-text); }
.otd-recht h1 { font-size: 30px; font-weight: 600; margin: 4px 0 6px; color: var(--otd-text); }
.otd-recht-text { margin-top: 26px; font-size: 15px; line-height: 1.7; }
.otd-recht-text h2 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; color: var(--otd-text); }
.otd-recht-text h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.otd-recht-text p, .otd-recht-text ul, .otd-recht-text ol { margin: 0 0 12px; }
.otd-recht-text a { color: #0f7a6c; }
.otd-recht-text table { border-collapse: collapse; margin: 0 0 14px; }
.otd-recht-text th, .otd-recht-text td { border: 1px solid var(--otd-linie); padding: 6px 10px; text-align: left; }
.otd-recht-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding: 18px 24px 26px; border-top: 1px solid var(--otd-linie); font-size: 13px; }
.otd-recht-fuss a { color: var(--otd-leise); text-decoration: none; }
.otd-recht-fuss a:hover, .otd-recht-fuss a.aktiv { color: #0f7a6c; text-decoration: underline; }
.ot-recht-text { width: 100%; min-height: 220px; font-family: var(--mud-typography-default-family, inherit); font-size: 13px; line-height: 1.5; padding: 8px; border: 1px solid #c9d3d8; resize: vertical; }

/* ab 3.99.427 (Rene 28.11.2026 11:13–11:21): Seite „Kostenlos testen“ nach Renes Vorlage (ChatGPT) – dunkler Kopf, heller Inhalt */
.ct { --ct-nacht: #17222a; --ct-mint: #7fe0d0; --ct-gruen: #0f7a6c; --ct-text: #162e31; --ct-leise: #46605b; --ct-linie: #d3ded7; background: #f5f7f4; color: var(--ct-text); font: 16px/1.5 Inter, Arial, sans-serif; min-height: 100vh; }
.ct a { color: inherit; text-decoration: none; }
.ct-breite { width: min(1232px, 89vw); margin: 0 auto; }
.ct-kopf { background: var(--ct-nacht); color: #edf6f6; }
.ct-nav { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff24; }
.ct-navlinks { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.ct-login { padding: 8px 16px; border: 1px solid #68817f; border-radius: 7px; }
.ct-hero { background: radial-gradient(ellipse at 23% 36%, #184046, #17222a 68%); color: #edf6f6; padding: 22px 0 36px; }
.ct-hero-raster { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(400px, 470px); gap: clamp(24px, 4vw, 48px); align-items: stretch; border: 1px solid #ffffff1f; border-radius: 16px; padding: 28px; background: #17222a; min-height: 640px; }
.ct-hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: 0; }
.ct-hero-raster::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 62%, #17222ae6 96%), linear-gradient(90deg, transparent 50%, #17222a99 100%); }
.ct-hero-links, .ct-hero-rechts { position: relative; z-index: 2; }
.ct-hero-links { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; text-shadow: 0 1px 6px #0b1619; }
.ct-hero-text { font-size: 17px; color: #f0f7f7; margin: 0 0 6px; }
.ct-fein { font-size: 13px; color: #c1d1cc; display: flex; gap: 10px; align-items: center; }
.ct-fein b { color: #8edbc7; }
.ct-paar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ct-knopf { display: inline-flex; align-items: center; gap: 22px; border-radius: 7px; background: var(--ct-gruen); color: #fff !important; padding: 12px 18px; font-weight: 700; font-size: 15px; border: 1px solid var(--ct-gruen); cursor: pointer; transition: transform .2s, background .2s; }
.ct-knopf:hover { transform: translateY(-2px); background: #0b6358; }
.ct-zweit { background: transparent; border-color: #8aa6a3; }
.ct-zweit:hover { background: #ffffff14; }
.ct-zweit-hell { background: #fff; color: var(--ct-text) !important; border-color: #b9cbc4; }
.ct-zweit-hell:hover { background: #eef4f1; }
.ct-mint { background: var(--ct-mint); border-color: var(--ct-mint); color: #0c2c2c !important; }
.ct-mint:hover { background: #a1f0e1; }
.ct-voll { width: 100%; justify-content: space-between; background: var(--ct-mint); border-color: var(--ct-mint); color: #0c2c2c !important; }
.ct-voll:hover { background: #a1f0e1; }
.ct-karte { position: relative; padding: clamp(20px, 2.4vw, 30px); border: 1px solid #62aaa78a; border-radius: 17px; background: #1c2d35f2; color: #f0f9f9; box-shadow: 0 18px 65px #0b161980; scroll-margin-top: 20px; }
.ct-karte h2 { margin: 0 0 6px; font-size: clamp(27px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; color: #f0f9f9; }
.ct-intro { color: #c2d3d9; font-size: 14px; margin: 0 0 18px; }
.ct-karte .otd-form { display: grid; gap: 15px; font-size: 14px; }
.ct-karte .otd-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.ct-karte .otd-felder label, .ct-karte .otd-branche { display: grid; gap: 5px; font-weight: 600; color: #f0f9f9; }
.ct-karte .otd-titel { font-weight: 600; }
.ct-karte .otd-ganz { grid-column: 1 / -1; }
.ct-karte .otd-felder input, .ct-karte .otd-branche select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; font: inherit; font-weight: 400; border: 1px solid #5e8488; border-radius: 7px; background: #142229; color: #effafa; color-scheme: dark; }
.ct-karte .otd-felder input:focus, .ct-karte .otd-branche select:focus { outline: 2px solid var(--ct-mint); outline-offset: 2px; }
.ct-karte .otd-beschreibung { color: #c2d3d9; font-weight: 400; }
.ct-karte .otd-beschreibung:empty { display: none; }
.ct-karte .otd-zustimmung { display: flex; gap: 8px; align-items: flex-start; color: #c2d3d9; font-size: 12px; }
.ct-karte .otd-zustimmung input { width: 16px; height: 16px; accent-color: var(--ct-mint); flex: none; margin: 2px 0 0; }
.ct-karte .otd-zustimmung a { color: #99e9db; text-decoration: underline; }
.ct-karte .otd-anmelden { margin: 12px 0 0; font-size: 13px; text-align: center; }
.ct-karte .otd-anmelden a { color: #99e9db; text-decoration: underline; }
.ct-karte .otd-meldung { margin-bottom: 12px; }
.ct-hell { background: #f5f7f4; }
.ct-abschnitt { padding: 54px 0 20px; }
.ct-oben { text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 700; color: #317363; display: flex; align-items: center; gap: 10px; }
.ct-oben::before { content: ""; width: 26px; height: 2px; background: #46b8a5; }
/* ab 3.99.428: Das Farbthema färbt h1/h2 sonst dunkel – auf der dunklen Seite waren die Überschriften kaum lesbar */
html .ct :is(h1, h2, h3) { color: inherit; }
.ct h2 { font-size: clamp(29px, 3vw, 44px); line-height: 1.14; letter-spacing: -.04em; margin: 12px 0 14px; font-weight: 700; }
.ct-leise { color: var(--ct-leise); max-width: 60ch; }
.ct-reiter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.ct-reiter button { font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid #b9cbc4; border-radius: 7px; background: #fff; color: var(--ct-text); cursor: pointer; }
.ct-reiter button[aria-pressed=true] { background: var(--ct-gruen); border-color: var(--ct-gruen); color: #fff; font-weight: 600; }
.ct-tour { display: grid; grid-template-columns: .7fr 1.6fr; gap: 28px; align-items: center; background: linear-gradient(140deg, #eef6f2, #e1eee8); border: 1px solid #d5dfd9; border-radius: 16px; padding: 32px; }
.ct-tour-info h3 { font-size: 30px; margin: 0 0 10px; font-weight: 600; letter-spacing: -.02em; }
.ct-tour-info p { color: var(--ct-leise); }
.ct-pfeile { display: flex; gap: 10px; margin-top: 18px; }
.ct-pfeile button { width: 44px; height: 40px; border: 1px solid #b9cbc4; border-radius: 7px; background: #fff; font-size: 18px; cursor: pointer; }
.ct-schirm { position: relative; margin: 0; }
.ct-bildknopf { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 9px 24px #1e494225; cursor: zoom-in; }
.ct-bildknopf img { display: block; width: 100%; height: auto; }
.ct-schirm figcaption { font-size: 13px; margin-top: 10px; color: #274f46; }
.ct-siegel { position: absolute; right: 10px; top: -46px; display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; z-index: 2; }
.ct-siegel li { width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; font-size: 11px; line-height: 1.1; border: 3px solid #fff; box-shadow: 0 6px 16px #0b16194d; background: #0f7a6c; }
.ct-siegel li:nth-child(2) { background: #2e7d32; }
.ct-siegel li.ct-herkunft { background: #17222a; }
.ct-siegel strong { font-size: 20px; letter-spacing: -.02em; }
.ct-siegel .ct-herkunft strong { font-size: 11px; }
.ct-flaggen { display: flex; gap: 3px; margin-bottom: 3px; }
.ct-flaggen i { width: 16px; height: 10px; display: block; }
.ct-flaggen i.de { background: linear-gradient(#000 33%, #dd0000 33% 66%, #ffce00 66%); }
.ct-flaggen i.at { background: linear-gradient(#ed2939 33%, #fff 33% 66%, #ed2939 66%); }
.ct-dms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid #c9dcd5; border-radius: 16px; padding: 40px; background: #e6f1ec; }
.ct-dms-demo { background: var(--ct-nacht); color: #edf6f6; border-radius: 12px; padding: 22px; }
.ct-demo-marke { font-size: 12px; color: #b5c8c5; display: block; margin-bottom: 14px; }
.ct-dms-demo label { font-weight: 700; display: block; margin-bottom: 8px; color: #edf6f6 !important; }
.ct-dms-zeile { display: flex; gap: 8px; }
.ct-dms-zeile input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #5e8488; border-radius: 7px; background: #142229; color: #effafa; font: inherit; }
.ct-dms-zeile button { border: 0; border-radius: 7px; background: var(--ct-mint); color: #0c2c2c; font-weight: 700; padding: 0 12px; cursor: pointer; }
#ct-dms-stand { font-size: 13px; color: #c2d3d9; margin: 10px 0 6px; }
#ct-dms-treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#ct-dms-treffer li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: #1f343c; border-radius: 7px; padding: 8px 10px; font-size: 13px; }
#ct-dms-treffer li span { color: #c2d3d9; }
#ct-dms-treffer li small { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #8edbc7; }
#ct-dms-treffer li.ct-mehr { display: block; background: none; color: #b5c8c5; padding: 2px 10px; }
#ct-dms-stand { font-variant-numeric: tabular-nums; }
.ct-branche { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d5dfd9; border-radius: 16px; overflow: hidden; background: #fff; }
.ct-branche-bild { background: #eef2ef; display: flex; align-items: center; justify-content: center; }
.ct-branche-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-branche-text { padding: 34px; background: #eef4f1; }
.ct-marke { color: #317363; font-weight: 700; font-size: 13px; margin: 0 0 8px; }
.ct-branche-text h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 700; }
.ct-branche-text ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 6px; }
.ct-branche-text li::before { content: "✓"; color: var(--ct-gruen); font-weight: 700; margin-right: 8px; }
.ct-link { color: var(--ct-gruen) !important; font-weight: 700; }
.ct-klein { font-size: 12px; color: #5b6b6a; margin-top: 8px; }
.ct-schritte { border-top: 1px solid var(--ct-linie); margin-top: 34px; padding-bottom: 40px; }
.ct-schritte ol { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: schritt; margin: 6px 0 26px; }
.ct-schritte li { counter-increment: schritt; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; }
.ct-schritte li::before { content: counter(schritt); border: 1px solid #adcbc1; border-radius: 50%; width: 28px; height: 28px; text-align: center; line-height: 26px; color: #176555; grid-row: span 2; }
.ct-schritte small { font-size: 14px; color: #50665d; }
.ct-schluss { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--ct-linie); padding-bottom: 54px; }
.ct-schluss h2 { margin-bottom: 6px; }
.ct-fuss { background: var(--ct-nacht); color: #c2d0ca; font-size: 13px; padding: 22px 0; }
.ct-fuss .ct-breite { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ct-fuss-links { display: flex; gap: 18px; }
.ct-fuss-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 920px) { .ct-siegel li { font-size: 9px; } .ct-hero-raster { grid-template-columns: 1fr; min-height: 0; } .ct-hero-raster::before { display: none; } .ct-hero-bild { position: static; height: auto; border-radius: 10px; grid-row: 1; } .ct-hero-links { text-shadow: none; } .ct-tour, .ct-dms, .ct-branche { grid-template-columns: 1fr; } .ct-siegel { top: -30px; } .ct-siegel li { width: 64px; height: 64px; } .ct-siegel strong { font-size: 15px; } }
@media (max-width: 760px) { .ct-breite { width: 92vw; } .ct-navlinks > a:not(.ct-login) { display: none; } .ct-hero-raster { padding: 12px; } .ct-karte .otd-felder { grid-template-columns: 1fr 1fr; } .ct-schritte ol { grid-template-columns: 1fr; } .ct-tour, .ct-dms { padding: 18px; } .ct-dms-zeile { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .ct-knopf { transition: none; } .ct-knopf:hover { transform: none; } }
/* ab 3.99.432: Urheber → Porträt – schmale Zeile „Profil-Formular“ statt Rahmen */
.uf-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; padding: 4px 8px; border: 1px solid #d6dde3; border-left: 3px solid #0f7a6c; background: #f8faf9; font-size: .8rem; }
.uf-leiste > .mud-icon-root { color: #0f7a6c; }
.uf-leiste .mf-marke { margin-left: 0; white-space: nowrap; }
.uf-leiste .mf-knopf.klein .reiter-zahl { margin-left: 4px; }
.uf-trenner { color: #9aa5ad; }
.uf-link { background: none; border: 0; padding: 0; color: #0f7a6c; text-decoration: underline; cursor: pointer; font: inherit; }
.bg-zf-ergaenzen { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
/* ab 3.99.432: Hauptbild im Kopf der Artikelmaske (wie das Cover der Tonträgerbelegung) */
.formular-raster > .kopf-bild { grid-row: 1 / span 4; align-self: start; display: flex; justify-content: center; }
/* ab 3.99.433 (Rene 29.11.2026 00:53 „quadratisch“): feste Kante, Seitenverhältnis 1:1 – andere Regeln dürfen Breite/Höhe nicht verziehen */
.formular-raster > .kopf-bild .rahmen-bild { width: calc(112px * var(--s)) !important; height: calc(112px * var(--s)) !important; min-width: calc(112px * var(--s)); aspect-ratio: 1 / 1; flex: none; box-sizing: border-box; }
.rahmen-bild.mit-logo .bild-leer.logo { width: 100%; height: 100%; justify-content: center; background: #f1f3f5; }
.rahmen-bild .bild-leer.logo .marke-logo { filter: grayscale(1); opacity: .35; }
@container (max-width: 800px) { .formular-raster > .kopf-bild { display: none; } }
/* ab 3.99.433 (Rene 29.11.2026 00:35 „Darstellungsproblem Positionsdaten rechts“): aufgeklappte Listen im rechten Bereich nach links öffnen,
   damit sie nicht über den Rand ragen und keinen waagrechten Rollbalken erzeugen */
.ul-begleit-teil .aw-feld > .aw-liste { left: auto; right: 0; max-width: calc(var(--bt-breite) - 24px); }
.ul-begleit-teil { overflow-x: hidden; }
.formular-raster > .kopf-bild .rahmen-bild .bild-leer { width: 100% !important; height: 100% !important; }
.formular-raster > .kopf-bild .rahmen-bild img { width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; }
/* ab 3.99.433 (Rene 29.11.2026 01:05 Variante A): Unterreiter – zweite Reihe im Reiterinhalt (wie „Verfügbare Varianten | Konfiguration“) */
/* ab 3.99.436 (Rene 29.11.2026 12:41 „die zweiten Reiter sollten so aussehen wie hier unter Varianten“): die Reihe ist jetzt eine
   sh-unterreiter-Leiste (gleiche Karteikarten, Farben und Zahl wie „Verfügbare Varianten | Konfiguration“); G1 (hellgrün) entfällt */
.unterreiter-reihe { margin: 0 0 8px; }
/* ab 3.99.433 (Rene 29.11.2026 01:09 „Startseite linksbündig“): „Lizenziert für“ und Programmversion links unter der Suche */
.start-d .start-lizenz { align-items: flex-start; text-align: left; flex: none; }
/* ab 3.99.433: Artikel im KI-Entwurf wählen */
.kbe-liste .kbe-artikelwahl { min-width: 240px; }
/* ab 3.99.433: Breite der Chat-Liste der KI-Suche ziehen */
.kih-griff { flex: 0 0 6px; cursor: col-resize; margin-left: -3px; position: relative; z-index: 2; }
.kih-griff:hover, body.zieht-spalte .kih-griff { background: rgba(15, 122, 108, .25); }
body.zieht-spalte { user-select: none; cursor: col-resize; }
@container (max-width: 760px) { .kih-griff { display: none; } }
/* ab 3.99.433 (Variante A): Hilfekarte hell mit grünem Kopf wie im Entwurf */
.dyn-blase { background: #fff; color: #1d2a33; border-radius: 0; padding: 0 12px 10px; border: 1px solid #d6dde3; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dyn-blase .dyn-titel { background: #0f7a6c; color: #fff; margin: 0 -12px 8px; padding: 6px 12px; font-size: .86rem; }
.dyn-blase .dyn-meta { color: #6b7782; border-top-color: #e3e8ec; }
.dyn-blase .dyn-beispiel { background: #f3f7f6; border-left: 3px solid #0f7a6c; color: #1d2a33; border-radius: 0; }
.dyn-blase .dyn-beispiel-titel { color: #0f7a6c; }
/* ab 3.99.433 (Rene 29.11.2026 01:34 „12 px … bei allen mit grüner Leiste und Reitern“): einheitlicher Abstand grüne Leiste → Kopffelder → Reiter */
.formular-inhalt:has(.formular-reiter) { padding-top: calc(12px * var(--s)) !important; }
.formular-inhalt .formular-reiter { margin-top: calc(12px * var(--s)) !important; }

/* ab 3.99.435: Eingabeprüfung – breites Feld für die gesperrten Dateitypen */
.sicherheit-ansicht .sh-breit { min-width: 420px; }
/* ab 3.99.436 (Rene 29.11.2026 12:52 „machen wir H – kräftiger“): Speichern in der grünen Leiste als gelbe 3D-Taste, solange es etwas zu speichern
   gibt; gespeichert (gesperrt) bleibt er wie bisher („wenn gespeichert soll er so aussehen wie bisher“). Gilt für alle Masken mit der Formularleiste. */
html body .fenster .formular-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled):not(#_h) {
    background: linear-gradient(#fff6d2, #f3dc7c) !important; color: #4a3700 !important; font-weight: 600;
    border: 1px solid #c9a93a !important; border-bottom: 3px solid #a88a20 !important; border-radius: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .35) !important; }
html body .fenster .formular-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled):not(#_h) .mud-icon-root { color: #4a3700 !important; }
html body .fenster .formular-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled):not(#_h):hover { background: linear-gradient(#fff9e0, #f6e48f) !important; }
html body .fenster .formular-leiste .mf-knopf[data-taste="Speichern"]:not(:disabled):not(#_h):active { border-bottom-width: 1px !important; transform: translateY(2px); box-shadow: 0 1px 2px rgba(0, 0, 0, .3) !important; }
/* ab 3.99.437 (Rene 29.11.2026 13:07 „Feldbezeichnungen grundsätzlich nicht fett – die Masken sollen alle dasselbe Design haben“): Beschriftungen der
   Datenfelder sind in allen Masken normal (400), auch im Kopf ohne Rahmen (z. B. Belegerfassung) und unabhängig von Farbschema oder Modul-CSS. */
html body .fenster :is(.formular-raster, .rahmen, .inv-felder, .inv-zeile) .feld > label:not(#_l) { font-weight: 400 !important; }

/* ab 3.99.439: Ladeanzeige nach „Anmelden“ – Logo bleibt oben, seine drei Ebenen leuchten nacheinander auf */
.login-laden { display: none; text-align: center; padding: .4rem 0 .6rem; }
.login-karte.laedt .login-laden { display: block; }
.login-karte.laedt > :not(.login-marke):not(.login-laden), .login-karte.laedt .login-marke p { display: none !important; }
.login-laden-titel { font-size: 1.05rem; font-weight: 600; color: #17222a; margin-top: .4rem; }
.login-laden-text { font-size: .82rem; color: var(--mf-text-2, #5b6573); margin-top: .3rem; }
.login-laden-balken { height: 3px; background: #dbe5e3; margin: 1.1rem 0 .2rem; overflow: hidden; border-radius: 2px; }
.login-laden-balken i { display: block; height: 100%; width: 40%; background: #0f7a6c; animation: login-lauf 1.2s ease-in-out infinite; }
@keyframes login-lauf { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.login-karte.laedt .marke-voll > g:first-of-type > path { animation: login-ebene 1.2s ease-in-out infinite; }
.login-karte.laedt .marke-voll > g:first-of-type > path:nth-of-type(2) { animation-delay: .2s; }
.login-karte.laedt .marke-voll > g:first-of-type > path:nth-of-type(3) { animation-delay: .4s; }
@keyframes login-ebene { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .login-karte.laedt .marke-voll > g:first-of-type > path, .login-laden-balken i { animation-duration: 3s; } }

/* ab 3.99.440 (Rene 29.11.2026, Symbol A): Funktionen-Menü (drei Punkte) links neben „Modus“ – für alle Masken mit StammdatenDefinition.Funktionen */
.leiste-fx { display: inline-flex; align-items: center; margin: 0 6px 0 auto; }
.leiste-fx + .leiste-modus, .leiste-fx ~ .leiste-modus { margin-left: 0; }
.fx-anker { position: relative; display: inline-flex; }
.fx-knopf { all: unset; cursor: pointer; width: calc(26px * var(--s)); height: calc(24px * var(--s)); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 2px; color: inherit; }
.fx-knopf .mud-icon-root { font-size: calc(18px * var(--s)); }
.fx-knopf:hover, .fx-knopf[aria-expanded="true"] { background: rgba(255,255,255,.18); }
/* ab 3.99.441 (Rene 29.11.2026 23:41 „die drei Punkte in weiß, weil grüner Hintergrund“): Symbol immer weiß, auch wenn die Leiste dunkle Schrift erbt */
html[class] body .leiste-fx .fx-knopf, html[class] body .leiste-fx .fx-knopf .mud-icon-root { color: #fff !important; fill: #fff !important; -webkit-text-fill-color: #fff !important; }
.fx-menue { left: auto; right: 0; min-width: 220px; }
.fx-menue .fx-eintrag { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; color: var(--mf-text); white-space: nowrap; }
.fx-menue .fx-eintrag:hover { background: var(--mud-palette-action-default-hover); }
.fx-menue .fx-eintrag.gesperrt { opacity: .45; pointer-events: none; }
.fx-menue .mud-icon-root { color: #0f7a6c; }
html body .leiste-fx .fx-menue .fx-eintrag, html body .leiste-fx .fx-menue button { color: #1b2430 !important; }
html body .leiste-fx .fx-menue button:disabled { color: #8a94a0 !important; }
html:not(.mm-x1):not(.mm-x2) body .fenster :is(.ansicht-formular, .ansicht, div) .formular-leiste.masken-leiste .fx-menue label.fx-eintrag { color: #1b2430 !important; }
html body .formular-leiste .leiste-fx ~ .leiste-modus { margin-left: 0 !important; }

/* ab 3.99.440 (Rene 29.11.2026 21:45): Auswahl als Umschalter (Feld.AlsKnoepfe) – gewählter Knopf grün */
.feld-knoepfe { display: inline-flex; flex-wrap: wrap; }
.feld-knoepfe button { border: 1px solid #0f7a6c; background: #fff; color: #0f7a6c; font: inherit; font-size: .8rem; padding: 2px 12px; margin-left: -1px; border-radius: 0; cursor: pointer; line-height: 1.6; }
.feld-knoepfe button:first-child { margin-left: 0; }
.feld-knoepfe button.an { background: #0f7a6c; color: #fff; font-weight: 600; }
.feld-knoepfe button:hover:not(.an):not(:disabled) { background: #e3efec; }
.feld-knoepfe button:disabled { opacity: .55; cursor: default; }
html body .fenster .feld-knoepfe button.an, html body .feld-knoepfe button.an { background: #0f7a6c !important; color: #fff !important; border-color: #0f7a6c !important; }
html body .fenster .feld-knoepfe button:not(.an) { color: #0f7a6c !important; }
html[class] body .fenster .feld-knoepfe button.an.an.an, html[class] body .fenster .feld-knoepfe button.an.an.an * { color: #fff !important; }
html[class] body .fenster .feld-knoepfe button:not(.an):not(.an):not(.an) { color: #0f7a6c !important; }
html[class] body .fenster .feld-knoepfe button.an.an.an { -webkit-text-fill-color: #fff !important; }
html[class] body .fenster .feld-knoepfe button:not(.an):not(.an):not(.an) { -webkit-text-fill-color: #0f7a6c !important; }

/* ab 3.99.444 (Rene 30.11.2026 03:21, Entwurf „A“): Varianten je Farbe mit Kopfzeile in Unterlisten (Belegerfassung) */
.ul-gruppe-kopf { display: flex; align-items: center; gap: calc(10px * var(--s)); min-height: calc(30px * var(--s)); padding: 0 calc(8px * var(--s)) 0 calc(4px * var(--s));
    background: #e6f2f0; border-left: 3px solid #0f7a6c; border-top: 1px solid #c9e2de; margin-top: calc(2px * var(--s)); color: #0f3f39; }
.ul-gruppe-kopf .ul-gruppe-auf { border: 0; background: transparent; color: #0f7a6c; cursor: pointer; padding: 0; display: inline-flex; }
.ul-gruppe-pos { min-width: calc(48px * var(--s)); color: #0f7a6c; font-weight: 600; }
.ul-gruppe-nr { min-width: calc(90px * var(--s)); }
.ul-gruppe-titel { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-gruppe-menge, .ul-gruppe-betrag { white-space: nowrap; text-align: right; min-width: calc(80px * var(--s)); }
.ul-gruppe-knopf { border: 1px solid #0f7a6c; background: #fff; color: #0f7a6c; display: inline-flex; align-items: center; gap: 4px;
    padding: 1px calc(8px * var(--s)); cursor: pointer; border-radius: 0; }
.ul-gruppe-knopf:hover:not(:disabled) { background: #0f7a6c; color: #fff; }
.ul-gruppe-knopf:disabled { opacity: .5; cursor: default; }
.unterzeile-raster.ul-gruppe-kind { box-shadow: inset 3px 0 0 #c9e2de; } /* ab 3.99.446: ohne Einrücken – Spalten bleiben auf denselben Kanten */
.ul-gruppe-kindtext { color: #37474f; align-self: center; padding: 0 calc(6px * var(--s)); }
/* ab 3.99.446 (Rene 30.11.2026 09:40): Kopfzeile auf dem Spaltenraster, Matrix als kleines Quadrat vor der Menge */
.unterzeile-raster.ul-gruppe-kopf.raster { display: grid; align-items: center; min-height: calc(28px * var(--s)); padding: 0; border-left: 0; box-shadow: inset 3px 0 0 #0f7a6c; }
.ul-gruppe-kopf.raster .ul-griff-feld { display: flex; align-items: center; justify-content: center; }
.ul-gruppe-zelle { display: flex; align-items: center; gap: calc(6px * var(--s)); min-width: 0; padding: 0 calc(6px * var(--s)); font-weight: 600; color: #0f3f39; }
.ul-gruppe-zelle.rechts { justify-content: flex-end; }
.ul-gruppe-zelle .ul-gruppe-wert { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-gruppe-zelle.rechts .ul-gruppe-mx { margin-right: auto; }
.ul-gruppe-mx { width: calc(20px * var(--s)); height: calc(20px * var(--s)); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #0f7a6c; background: #fff; color: #0f7a6c; cursor: pointer; border-radius: 0; }
.ul-gruppe-mx .mud-icon-root { font-size: calc(14px * var(--s)); }
.ul-gruppe-mx:hover:not(:disabled) { background: #0f7a6c; color: #fff; }
.ul-gruppe-mx:disabled { opacity: .5; cursor: default; }
/* ab 3.99.446: Arbeitszeitmodell – Rahmen „Reguläre Arbeitszeit“ unter „Zeitmodell“ */
.az-stapel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.az-woche.az-ende label span { width: 58px; text-align: center; color: var(--th-text2, #666); }
/* ab 3.99.446 (Rene 30.11.2026 09:23): KI Suche – Datum/Uhrzeit je Chat, Favoriten */
.kih-seite-titel { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.kih-seite-titel .kih-seite-text { max-width: 100%; }
.kih-seite-titel .kih-seite-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kih-seite-titel .kih-seite-zeit { font-size: .66rem; color: #8a96a0; font-weight: 400; }
.kih-seite-fav { border: 0; background: transparent; padding: 2px 4px; cursor: pointer; visibility: hidden; color: #94a3b8; }
.kih-seite-fav .mud-icon-root { font-size: 15px; }
.kih-seite-eintrag:hover .kih-seite-fav, .kih-seite-fav.an { visibility: visible; }
.kih-seite-fav.an { color: #0f7a6c; }
.kih-fav-symbol { font-size: 13px !important; color: #0f7a6c; vertical-align: -2px; }
/* ab 3.99.449 (Rene 30.11.2026 18:37): Haken untereinander (Belegarten der Belegregeln) und grauer Hinweis darunter */
.zh-haken.einspaltig { grid-template-columns: minmax(0, 1fr) !important; }
.zh-block:has(.zh-hinweis) { flex-direction: column; align-items: stretch; }
.zh-hinweis { font-size: .75rem; color: var(--mud-palette-text-secondary); margin-top: 4px; }
/* ab 3.99.450 (Rene 30.11.2026 22:50 „so machen wir das“): Ordner der KI Suche im Stil des DMS-Ordnerbaums (dms-baum-zeile …) */
.kih-knoepfe { display: flex; gap: 6px; margin-bottom: 6px; }
.kih-knoepfe .kih-neu { flex: 1; min-width: 0; }
.kih-baum { display: flex; flex-direction: column; gap: 1px; }
.kih-baum .dms-baum-zeile.aktiv { background: var(--mf-gruen, #0f7a6c); }
.kih-baum .kih-fav-symbol { color: #c58a00 !important; }
.kih-baum .kih-verlauf-symbol { color: #6b7785 !important; }
.kih-baum .kih-verlauf-kopf { margin-top: 6px; border-top: 1px solid #dbe3ec; border-radius: 0; padding-top: 2px; }
.kih-seite-eintrag.unter { padding-left: 22px; }
.kih-seite-eintrag[draggable=true] { cursor: grab; }
.kih-ordner-name { flex: 1; min-width: 0; font-size: .8rem; border: 1px solid var(--mf-gruen, #0f7a6c); padding: 1px 4px; outline: 0; }

.kih-knoepfe .kih-neu { white-space: nowrap; padding-left: 6px; padding-right: 6px; justify-content: center; }

/* ab 3.99.456 (Rene 01.12.2026, Zusatzfelder je Merkmal): Werteliste in Grundlagen → Merkmale und Werte (MerkmalWerteAnsicht) */
.mwa { margin-top: 6px; }
.mwa-leiste { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mwa-titel { font-weight: 600; }
.mwa-hinweis { color: #64748b; font-size: .78rem; }
.mwa-tabelle { table-layout: fixed; width: 100%; }
.mwa-tabelle td { vertical-align: middle; }
.mwa-tabelle .mwa-ein { width: 100%; box-sizing: border-box; }
.mwa-tabelle th.mwa-zusatz { background: #eaf5f2; }
.mwa-farbe { white-space: nowrap; }
.mwa-farbe > * { vertical-align: middle; }
.mwa-farbe .mwa-ein { width: 170px; margin-left: 4px; } /* ab 3.99.479: bis zu vier Farben „#000000/#481a08/…“ */
.mwa-bild { height: 22px; max-width: 64px; object-fit: cover; border: 1px solid #cbd5e1; vertical-align: middle; }
.mwa-bildwahl { display: inline-flex; align-items: center; gap: 4px; color: #0f7a6c; cursor: pointer; font-size: .78rem; }
.mwa-bildwahl .mud-icon-root { width: 16px; height: 16px; }

/* ab 3.99.456 (Rene 01.12.2026 15:30): Artikel → Varianten → Konfiguration – die drei Kästen nummeriert (1 Merkmale, 2 Werte, 3 Varianten erzeugen) */
.va-schritt { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 6px; background: #0f7a6c; color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: 0; vertical-align: 1px; }
.va-schritt3 { margin-top: 8px; }
.va-schritt3 .va-fuss:first-of-type { margin-top: 0; }

/* ab 3.99.457 (Rene 01.12.2026 16:21): Liste „Verfügbare Varianten“ – Klick auf die Spaltenüberschrift sortiert */
.va-tabelle th.va-sortier { cursor: pointer; user-select: none; }
.va-tabelle th.va-sortier:hover { background: #dfe7ec; }
.va-sortpfeil { margin-left: 4px; font-size: .62rem; color: #0f7a6c; }

/* ab 3.99.461 (Rene 01.12.2026 19:11): Hinweis der Maske im Fuß (z. B. Belegimport: was für „Beleg erstellen“ noch fehlt) */
.formular-fuss-hinweis { display: flex; align-items: flex-start; gap: 6px; color: #8a4b00; background: #fff6e0; border: 1px solid #f0d9a0; padding: 4px 8px; margin: 0 0 4px; font-size: calc(13px * var(--s, 1)); }
/* ab 3.99.467: Kästchen in der Liste („alle markieren“ im Kopf) und „Markierte löschen“ */
.ft-wahl { margin: 0 6px 0 0; vertical-align: middle; cursor: pointer; accent-color: #0f7a6c; }
.ft-markiert .ft-wahl-loeschen { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; margin: 0 4px; background: #b3261e; color: #fff; border-radius: 0; font-weight: 600; }
.ft-markiert { background: #dff1ee; color: #0f5a50; border-radius: 0; } /* ab 3.99.467: grün statt blau, eckig */

/* ab 3.99.475: Werteliste filtern und sortieren */
.mwa-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.mwa-sort:hover { color: #0f7a6c; }
.mwa-filter input { height: 26px; width: 180px; }
.mwa-zahl { font-size: .78rem; color: #6b7a86; }

/* ab 3.99.475: Anmeldeseite – „Kennwort vergessen?“ */
.login-vergessen { margin: .6rem 0 0; font-size: .8rem; text-align: center; }
.login-vergessen a { color: #0f7a6c; text-decoration: none; }
.login-vergessen a:hover { text-decoration: underline; }
.login-hinweis { font-size: .8rem; color: #4b5b66; margin: .2rem 0 .6rem; line-height: 1.4; }
