/* Kompass – das kompakte MD Premium mit Assistent. Farben nach Postronik (Rot #ED1C24, Grau #404041), Kontrast WCAG 2.2 AA, Schrift IBM Plex lokal (OFL). */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* [data-design="hell"]: damit die Vorschau „Hell“ im Einstellungen-Dialog auch unter einem dunklen Design hell bleibt */
:root, [data-design="hell"] {
  --bg: #F4F4F4; --surface: #FFFFFF; --surface-2: #EDEDED; --surface-3: #FAFAFA;
  --text: #231F20; --text-2: #404041; --muted: #5C5C5E;
  --border: #DCDCDC; --line: #ECECEC; --control: #8A8A8C;
  /* Postronik-Rot: --marke exakt wie Visitenkarte (Logo, Linien); --accent minimal dunkler, damit weiße Schrift 4,5:1 erreicht */
  --marke: #ED1C24; --grau-marke: #404041;
  --accent: #D7141C; --accent-dark: #A50F15; --accent-soft: #FDE8E9; --accent-hover: #B5121B;
  --pos: #1E7B4F;
  --neg: #A3440B; --warn-bg: #FBEFE2; --warn: #8A3F05;
  --blue: #2F5F8A; --blue-soft: #E4ECF4;
  --danger: #A3440B;
  --rot: #B42318; --rot-bg: #FDECEA;
  --lila: #6B3FA0; --lila-bg: #EFE8F7; /* nur für Symbolfelder (Schnellaktionen im Cockpit) */
  /* Für die Designs (Einstellungen › Design): Rot als Fläche mit weißer Schrift, Markenschrift, Tönungen, Diagramme im Cockpit */
  --accent-fill: #D7141C; --accent-fill-hover: #B5121B; --marke-text: #404041;
  --pos-bg: #E6F2EC; --warn-rand: #E8D2BC; --rueckgang-bg: #FDF6EE; --kf-farbe: #2F5F8A;
  --g-akzent: #404041; --g-akzent-hell: #E6E6E6; --g-blau: #2F5F8A; --g-blau-hell: #E4ECF4; --g-neg: #A3440B; --g-linie: #8A8A8C; --g-rand: #DCDCDC;
  /* Kacheln: im hellen Design Schatten statt kräftigem Rand; in dunklen Designs sieht man Schatten nicht, dort bleibt der Rand (07.11.2026) */
  --schatten: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .05); --kachel-rand: var(--line);
  --inhalt-max: 1920px; /* breiter wird der Inhalt nicht (49"-Ultrawide), links und rechts bleibt Rand */
  --radius: 10px; --mono: 'IBM Plex Mono', Consolas, monospace;
  --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
/* Designs (Einstellungen › Design), nur am Bildschirm – gedruckt wird immer hell. Kein reines Schwarz/Weiß; Rot als Schrift heller,
   als Fläche (--accent-fill) dunkel genug für weiße Schrift. data-design sitzt auf <html> oder auf der Vorschau im Einstellungen-Dialog. */
@media screen {
  [data-design="graphit"] {
    --bg: #18181A; --surface: #222224; --surface-2: #2C2C2F; --surface-3: #1E1E20;
    --text: #E4E4E6; --text-2: #C8C8CC; --muted: #A0A0A6; --border: #3A3A3E; --line: #2E2E31; --control: #7A7A80;
    --grau-marke: #55555A; --marke-text: #E4E4E6;
    --accent: #F0676B; --accent-dark: #F58A8D; --accent-soft: #3A2224; --accent-hover: #F58A8D; --accent-fill: #C9252C; --accent-fill-hover: #B01F25;
    --pos: #5CCB95; --pos-bg: #1C3328; --neg: #F0A866; --danger: #F0A866; --warn: #F0B97A; --warn-bg: #3A2C1C; --warn-rand: #5A4228;
    --blue: #7FAEDB; --blue-soft: #1E2C3A; --rot: #F27D74; --rot-bg: #3A2020; --rueckgang-bg: #2E261D; --kf-farbe: #3E78B0; --lila: #B79AE6; --lila-bg: #2E2640;
    --g-akzent: #C8C8CC; --g-akzent-hell: #3A3A3E; --g-blau: #7FAEDB; --g-blau-hell: #24364A; --g-neg: #F0A866; --g-linie: #7A7A80; --g-rand: #3A3A3E;
    --schatten: 0 0 0 transparent; --kachel-rand: var(--border);
    color-scheme: dark;
  }
  [data-design="nachtblau"] {
    --bg: #10151C; --surface: #18202A; --surface-2: #222C38; --surface-3: #141B24;
    --text: #DDE4EC; --text-2: #C3CDD8; --muted: #93A1B2; --border: #2E3A48; --line: #243040; --control: #6F7F92;
    --grau-marke: #4A5868; --marke-text: #DDE4EC;
    --accent: #F2686D; --accent-dark: #F68D90; --accent-soft: #33202A; --accent-hover: #F68D90; --accent-fill: #C9252C; --accent-fill-hover: #B01F25;
    --pos: #5BC59A; --pos-bg: #183229; --neg: #F2A55E; --danger: #F2A55E; --warn: #F2B577; --warn-bg: #33291C; --warn-rand: #54402A;
    --blue: #84B4E4; --blue-soft: #1B2B3E; --rot: #F38078; --rot-bg: #361E24; --rueckgang-bg: #2A2620; --kf-farbe: #3E78B0; --lila: #B9A2EC; --lila-bg: #2A2440;
    --g-akzent: #C3CDD8; --g-akzent-hell: #2E3A48; --g-blau: #84B4E4; --g-blau-hell: #20344B; --g-neg: #F2A55E; --g-linie: #6F7F92; --g-rand: #2E3A48;
    --schatten: 0 0 0 transparent; --kachel-rand: var(--border);
    color-scheme: dark;
  }
  [data-design="bernstein"] {
    --bg: #1B1714; --surface: #241F1B; --surface-2: #2F2924; --surface-3: #201B18;
    --text: #EADFD0; --text-2: #D3C6B5; --muted: #AC9E8D; --border: #3D352E; --line: #312A25; --control: #85776A;
    --grau-marke: #5A4E44; --marke-text: #EADFD0;
    --accent: #EC7A68; --accent-dark: #F09A8B; --accent-soft: #3A2420; --accent-hover: #F09A8B; --accent-fill: #B8322C; --accent-fill-hover: #A02A25;
    --pos: #9CC98F; --pos-bg: #263222; --neg: #E9AE6C; --danger: #E9AE6C; --warn: #EDBB80; --warn-bg: #382B1A; --warn-rand: #574229;
    --blue: #9DB8D2; --blue-soft: #26303A; --rot: #EE8A7C; --rot-bg: #3A221E; --rueckgang-bg: #30271C; --kf-farbe: #4F7398; --lila: #C9A9DC; --lila-bg: #33283A;
    --g-akzent: #D3C6B5; --g-akzent-hell: #3D352E; --g-blau: #9DB8D2; --g-blau-hell: #2C3742; --g-neg: #E9AE6C; --g-linie: #85776A; --g-rand: #3D352E;
    --schatten: 0 0 0 transparent; --kachel-rand: var(--border);
    color-scheme: dark;
  }
  [data-design="gedimmt"] {
    --bg: #CFCCC6; --surface: #DEDBD5; --surface-2: #D3D0CA; --surface-3: #D8D5CF;
    --text: #262422; --text-2: #3A3735; --muted: #4F4C49; --border: #B9B5AE; --line: #C9C5BE; --control: #77736D;
    --grau-marke: #404041; --marke-text: #404041;
    --accent: #A8141B; --accent-dark: #8A0F15; --accent-soft: #E8CFCB; --accent-hover: #8A0F15; --accent-fill: #B8161D; --accent-fill-hover: #9A1218;
    --pos: #1A6B44; --pos-bg: #C9DCCF; --neg: #8A3F05; --danger: #8A3F05; --warn: #7A3804; --warn-bg: #E6D6C2; --warn-rand: #CDB596;
    --blue: #2A5580; --blue-soft: #C9D4DF; --rot: #9E1F14; --rot-bg: #E8CFCA; --rueckgang-bg: #E2D6C6; --kf-farbe: #2A5580; --lila: #5A3488; --lila-bg: #D6CCDF;
    --g-akzent: #404041; --g-akzent-hell: #C9C5BE; --g-blau: #2A5580; --g-blau-hell: #C9D4DF; --g-neg: #8A3F05; --g-linie: #77736D; --g-rand: #B9B5AE;
    --schatten: 0 1px 2px rgba(0, 0, 0, .08); --kachel-rand: var(--border);
    color-scheme: light;
  }
}

/* ---------- Einstellungen (Zahnrad, nur Inhaber:in) ---------- */
.einstellungen section { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
/* Einstellungen in vier Reitern (19.11.2026): Optik wie .reiter a, nur als Knopf; der Teil darunter hat eine feste Mindesthöhe, damit der Dialog beim Wechsel nicht springt */
.ei-reiter { margin: 0 0 16px; }
.ei-reiter > button { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.ei-reiter > button:hover { color: var(--text); background: var(--surface-2); }
.ei-reiter > button[aria-selected="true"] { color: var(--accent-dark); font-weight: 600; border-bottom-color: var(--accent); }
.ei-teil { min-height: 360px; }
.ei-teil section:last-child { border-bottom: 0; margin-bottom: 0; }
.einstellungen h3 { font-size: 16px; margin: 0 0 4px; }
.einstellungen section > p { margin: 0 0 10px; }
.design-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.design-wahl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px 10px; border: 1px solid var(--control); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; font-size: 14px; }
.design-wahl:hover { border-color: var(--accent); }
.design-wahl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design-wahl .klein { line-height: 1.3; }
.design-vorschau { align-self: stretch; display: flex; flex-direction: column; gap: 5px; height: 64px; margin-bottom: 6px; padding: 0 8px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); overflow: hidden; }
.dv-kopf { height: 12px; margin: 0 -8px 2px; background: var(--surface) linear-gradient(90deg, var(--grau-marke) 0 22%, var(--marke) 22% 100%) no-repeat left bottom / 100% 2px; }
.dv-zeile { height: 6px; width: 85%; border-radius: 3px; background: var(--text); opacity: .75; }
.dv-zeile.kurz { width: 55%; background: var(--muted); }
.dv-knopf { margin-top: auto; height: 10px; width: 40%; border-radius: 3px; background: var(--accent-fill); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: 0 0 auto; }

/* Bedienelemente: mindestens 44 px Klickfläche, Ränder ≥ 3:1 */
.knopf { min-height: 44px; padding: 0 14px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.knopf:hover:not(:disabled) { border-color: var(--accent); }
.knopf.voll { border-color: var(--accent-fill); background: var(--accent-fill); color: #FFFFFF; font-weight: 500; }
.knopf.voll:hover { background: var(--accent-fill-hover); }
.knopf.pepi { color: var(--accent-dark); font-weight: 500; }
.knopf.quadrat { width: 44px; padding: 0; justify-content: center; }
/* Dateiwahl als Knopf (Ticket 272): das Windows-Feld zeigte nach dem Neuzeichnen „Keine ausgewählt“, obwohl die Datei gewählt war */
.datei-knopf { cursor: pointer; font-weight: 500; }
.datei-knopf:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.eb-dateien { align-items: center; }
.knopf.link { border-color: transparent; background: transparent; color: var(--accent); font-weight: 500; padding: 0 4px; }
.chip-info { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }

/* ---------- Kopfzeile ---------- */
.kopf { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 16px; padding: 6px 20px 9px; background: var(--surface) linear-gradient(90deg, var(--grau-marke) 0 22%, var(--marke) 22% 100%) no-repeat left bottom / 100% 3px; }
.marke { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--marke-text); text-decoration: none; white-space: nowrap; }
.marke img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; }
.nav a, .nav button { min-height: 44px; padding: 0 14px; display: flex; align-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav button:hover { background: var(--surface-2); }
.nav [aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.kopf-info { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Trafikant und Mandantennummer in der Mitte: nimmt nur den freien Platz, lange Namen enden mit „…“ */
.mandant-kopf { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; line-height: 1.25; text-align: center; }
.mandant-kopf > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.mk-unter { font-size: 12px; color: var(--muted); }
.mk-test { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-rand); font-size: 11px; font-weight: 500; letter-spacing: 0; vertical-align: 2px; }
.rolle-zeilen { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.rolle-mandant { max-width: 170px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rolle-nr { display: none; }
@media (max-width: 1279px) {
  .mandant-kopf { display: none; }
  .rolle-mandant:not([hidden]) + span { font-size: 11px; color: var(--muted); }
  .rolle-mandant:not([hidden]) + span .rolle-nr { display: inline; }
}
@media (min-width: 1280px) { .rolle-mandant { display: none; } }
.kopf-rechts { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
/* Benutzermenü hinter „Inhaber:in ▾“: Mandant, Rolle wechseln, Einstellungen, Entwickler */
.menue-halter { position: relative; }
.menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 280px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); display: flex; flex-direction: column; }
.menue-info { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: pre-line; }
.menue [role="menuitem"] { min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.menue [role="menuitem"]:hover, .menue [role="menuitem"]:focus-visible { background: var(--surface-2); }
/* Kassenbildschirm (1024 px): nur die Logo-Marke, „Stand“ steht dann im Hinweis des Neu-laden-Knopfs – damit alle Hauptpunkte ganz sichtbar bleiben */
/* Bis 1499 px ebenso – sonst bleibt in der Mitte kein Platz für den Trafikanten */
@media (max-width: 1499px) { .marke span, .kopf-info { display: none; } }
@media (max-width: 1279px) { .kopf { gap: 10px 12px; } }
.kopf .nav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kopf .nav a, .kopf .nav button { padding: 0 11px; white-space: nowrap; }
/* Seit dem Bereich „Kunden“ (05.11.2026) acht Hauptpunkte: unter 1200 px enger, damit „Prüfen“ nicht aus der Leiste rutscht */
@media (max-width: 1199px) { .kopf .nav { gap: 0; } .kopf .nav a, .kopf .nav button { padding: 0 8px; font-size: 14px; } }
/* Unter 1700 px nur Symbole – der Text bleibt für Vorleseprogramme erhalten */
#scanner .scan-text, #neu-laden .neu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1700px) { #scanner .scan-text, #neu-laden .neu-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }

.banner { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 28px; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-rand); font-size: 14px; font-weight: 500; }

/* ---------- Arbeitsfläche: Cockpit bzw. Ansicht, Assistent als Sprechblase an der Nadel ---------- */
.arbeit { flex: 1 1 auto; min-height: 0; display: flex; }
.cockpit { position: relative; flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 24px 28px 96px; display: flex; flex-direction: column; gap: 24px; }
.cockpit > :not(.sr), .ansicht > :not(.sr) { width: 100%; max-width: var(--inhalt-max); margin-inline: auto; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.abschnitt-kopf h2 { font-size: 18px; font-weight: 600; }
.hinweis { margin: 0; font-size: 14px; color: var(--muted); }
/* Einkauf › Rechnungen: Lotto-Rubbellose (Ticket 42) – Hinweis und Knopf in einer Zeile */
.re-lotto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; }
.re-lotto .hinweis { flex: 1 1 320px; }

.ton-auf { color: var(--pos); } .ton-ab { color: var(--neg); } .ton-neutral { color: var(--text-2); }

.stand-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--warn); font-weight: 500; }

.platzhalter { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: schimmer 1.4s infinite linear; border-radius: 6px; }
@keyframes schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .platzhalter { animation: none; } .kompass-ziel { animation: none !important; } .nadel { transition: none; } }

/* Heute zu tun + Aktionen */
.reihe { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
/* Alle Karten seit 07.11.2026 wie die Kennzahl-Kacheln: im hellen Design Schatten statt kräftigem Rand (--schatten, --kachel-rand je Design) */
.karte { background: var(--surface); border: 1px solid var(--kachel-rand); border-radius: 12px; box-shadow: var(--schatten); }

/* Ziehen und Ablegen im ganzen Fenster */
.ablage-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(215, 20, 28, .10); pointer-events: none; }
.ablage-overlay div { padding: 28px 40px; border: 3px dashed var(--accent); border-radius: 16px; background: var(--surface); font-size: 18px; font-weight: 600; color: var(--accent-dark); }
/* Kasse › Kartenzahlungen: Payone-PDF direkt in die Seite ziehen (Ticket 133) – gleicher Rahmen wie die allgemeine Ablage */
.ansicht.kz-ziehen { box-shadow: inset 0 0 0 3px var(--accent); background: var(--accent-soft); }
.ansicht.kz-ziehen::after { content: 'Payone-Abrechnung hier ablegen'; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; padding: 28px 40px; border: 3px dashed var(--accent); border-radius: 16px; background: var(--surface); font-size: 18px; font-weight: 600; color: var(--accent-dark); pointer-events: none; }

/* Schnellzugriff */
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende .feld { width: 18px; height: 18px; border-radius: 4px; background: var(--accent-fill); }
.suche { width: 100%; max-width: 340px; height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); font: inherit; color: var(--text); }
.gruppe { display: flex; flex-direction: column; gap: 8px; }
.gruppe h3 { padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--text-2); }
.eintraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.plakette { flex: 0 0 auto; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
/* Zwei Warnstufen: rot = überfällig/Fehler, orange mit Uhr = bald/knapp – immer mit Symbol, nicht nur Farbe */
.plakette.rot { background: var(--rot-bg); color: var(--rot); }
.plakette.rot::before { content: '⚠ '; }
.plakette.bald::before { content: '⏱ '; }
/* Suchfeld über langen Listen */
.tf-feld { flex: 0 1 300px; }
.tabellen-leer td { color: var(--muted); }
/* Ladeanzeige in der Form der späteren Seite */
.ansicht-skelett { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.ansicht-skelett .platzhalter { height: 84px; }
.ansicht-skelett .platzhalter.gross { height: 220px; }
/* Rückmeldung nach einem Scan im Kopf */
#scanner.gescannt { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
#scanner.gescannt .scan-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* ---------- Assistent: K-Nadel unten rechts, darüber die Sprechblase mit dem Gespräch (seit 2026-10-08 statt Seitenleiste) ---------- */
/* Unten bleibt in Cockpit und Ansichten 96 px Platz, damit die Nadel nichts Wichtiges verdeckt */
.nadel { position: fixed; right: 20px; bottom: 20px; z-index: 41; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .12s ease, box-shadow .12s ease; }
.nadel img { width: 56px; height: 56px; display: block; border-radius: 12px; }
.nadel:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.nadel[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--grau-marke); }
.nadel-neu { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--grau-marke); border: 3px solid var(--surface); }
.pepi-leiste { position: fixed; right: 20px; bottom: 88px; z-index: 40; width: min(520px, calc(100vw - 32px)); height: min(80vh, calc(100vh - 150px)); display: flex; flex-direction: column; min-height: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .2); overflow: hidden; }
/* Groß (seit 16.10., Knopf im Kopf, je PC gemerkt): volle Spalte rechts bis über der Nadel */
.pepi-leiste.gross { top: 12px; width: min(720px, calc(100vw - 32px)); height: auto; }
#leiste-gross .ico-klein, #leiste-gross[aria-pressed="true"] .ico-gross { display: none; }
#leiste-gross[aria-pressed="true"] .ico-klein { display: inline; }
.pepi-kopf img.avatar { border-radius: 6px; background: none; }
.pepi-kopf { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--border); }
.pepi-kopf .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-fill); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.pepi-kopf h2 { font-size: 16px; font-weight: 600; }
.pepi-kopf .ki { flex-grow: 1; font-size: 13px; color: var(--muted); }

.messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.welcome { display: flex; flex-direction: column; gap: 10px; }
.welcome p { margin: 0; font-size: 15px; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chip { min-height: 44px; border: 1px solid var(--control); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 22px; font: inherit; font-size: 14px; text-align: left; }
.chip:hover { border-color: var(--accent); }

.msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.msg.user { align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 12px; max-width: 100%; overflow-wrap: anywhere; font-size: 14.5px; }
.msg.user .bubble { background: var(--accent-fill); color: #FFFFFF; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.err .bubble { border-color: var(--neg); color: var(--neg); }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
.bubble h3, .bubble h4 { margin: 10px 0 6px; font-size: 15px; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 22px; }
.bubble code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.tablewrap { overflow-x: auto; margin: 8px 0; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

details.trace { font-size: 12.5px; color: var(--muted); max-width: 100%; }
details.trace summary { cursor: pointer; padding: 2px 0; }
details.trace .call { margin: 8px 0 0; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
details.trace .call b { font-family: var(--mono); font-weight: 600; }
/* Bewertung unter einer Antwort (karten.js): zurückhaltend, kein Rot */
.bewertung { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 2px; }
.bewertung .knopf.link { min-height: 32px; min-width: 32px; justify-content: center; }
.bewertung > label, .bewertung-hinweis { flex-basis: 100%; }
.bewertung-text { display: flex; gap: 6px; align-items: flex-end; width: 100%; }
.bewertung-text textarea { flex: 1; min-width: 0; resize: vertical; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.bewertung-fehler:empty { display: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.vorbereitet { flex: 0 0 auto; margin: 0 20px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
.ask { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 20px 16px; align-items: flex-end; border-top: 1px solid var(--border); background: var(--surface-3); }
.ask textarea { flex: 1; min-width: 0; resize: none; max-height: 160px; min-height: 44px; padding: 11px 12px; border: 1px solid var(--control); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.ask textarea.hat-entwurf { border: 2px solid var(--control); }
.ask textarea:focus, .tform input:focus, .tform select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.ask button[type="submit"], .tform button { min-height: 44px; border: 0; background: var(--accent-fill); color: #FFFFFF; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 600; }
button.ghost { min-height: 44px; border: 1px solid var(--control); background: var(--surface); color: var(--text); padding: 0 12px; border-radius: 10px; font: inherit; }
button.icon { display: grid; place-items: center; padding: 0 12px; }
button:disabled { opacity: .55; }
/* Deaktivierter Hauptknopf grau statt blassrot (07.11.2026) – Blassrot wirkt kaputt oder alarmierend; der Grund steht daneben */
.knopf.voll:disabled, .knopf.voll:disabled:hover, .aktion.primaer:disabled, .aktion.primaer:disabled:hover { opacity: 1; background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.aktion.primaer:disabled .ico { color: var(--muted); }

/* ---------- Assistent: Sprechblase an der Nadel (seit 08.10., vorher Seitenleiste) ---------- */
.pepi-voll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

/* Zeiger: hervorgehobenes Feld und Hinweis mit Nadel daneben (public/zeiger.js) */
.kompass-ziel { outline: 3px solid var(--accent) !important; outline-offset: 3px; animation: kompass-puls 1.1s ease-out 3; }
@keyframes kompass-puls { 0% { box-shadow: 0 0 0 0 rgba(215, 20, 28, .45); } 100% { box-shadow: 0 0 0 16px rgba(215, 20, 28, 0); } }
.zeiger { position: fixed; z-index: 45; max-width: min(360px, calc(100vw - 16px)); display: flex; align-items: flex-start; gap: 8px; padding: 9px 6px 9px 10px; border-radius: 10px; background: var(--grau-marke); color: #FFFFFF; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); font-size: 14px; font-weight: 500; line-height: 1.4; }
.zeiger::before { content: ''; position: absolute; top: -7px; left: var(--nadel-x, 20px); border: 7px solid transparent; border-top: 0; border-bottom-color: var(--grau-marke); }
.zeiger.oben::before { top: auto; bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--grau-marke); }
.zeiger-nadel { flex: 0 0 auto; color: var(--marke); }
.zeiger.oben .zeiger-nadel { transform: rotate(180deg); }
.zeiger-text { padding-top: 1px; }
.zeiger-zu { flex: 0 0 auto; min-width: 28px; min-height: 28px; margin: -4px 0 -4px 2px; border: 0; border-radius: 6px; background: transparent; color: #FFFFFF; font-size: 18px; line-height: 1; }
.zeiger-zu:hover { background: rgba(255, 255, 255, .14); }
.zeige-knopf { align-self: flex-start; }
.zeige-knopf .zeiger-nadel { color: var(--accent); width: 18px; height: 18px; }
.klein { font-size: 13px; }
.fehlertext { color: var(--neg); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.msg-kopf { font-size: 12.5px; color: var(--muted); }
.msg-kopf b { font-weight: 600; color: var(--text-2); }
.msg.user .msg-kopf { text-align: right; }
.msg-bezug { font-size: 12.5px; opacity: .9; margin-bottom: 4px; }
.warten { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
.warte-lang { font-size: 13.5px; color: var(--warn); font-weight: 500; }

.welcome .frueher { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }

.bezug { flex: 0 0 auto; margin: 8px 20px 0; padding: 0 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 500; }
.bezug .knopf { min-height: 36px; width: 36px; }

/* Karten unter Antworten: Zahlen, Quittung, Bestätigung, Hinweise */
.zahlen, .quittung, .bestaetigung, .karte-hinweis { max-width: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; font-size: 14px; }
.zahlen .tablewrap { margin: 6px 0 4px; }
.zahlen-summe { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.zahlen-summe dt { font-size: 12.5px; color: var(--muted); } .zahlen-summe dd { margin: 0; font-weight: 600; }
.zahlen-kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 6px 0; font-size: 13.5px; }
.zahlen-kv dt { color: var(--muted); } .zahlen-kv dd { margin: 0; overflow-wrap: anywhere; }
/* Verkauf › Automaten: Karte je Automat mit festen Feldern auf gleicher Höhe */
.au-kopf { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; min-width: 0; } .au-kopf h2 { margin: 0; }
.au-kopf > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-werte { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.au-wert { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.au-titel { font-size: 12.5px; color: var(--muted); }
.au-zahl { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-unter { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Artikel › Stammdaten: Felder nebeneinander, Barcodes je Einheit */
.stamm-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 4px 0 0; }
.stamm-raster dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.stamm-raster dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.stamm-raster dd .hinweis { display: block; font-weight: 400; font-size: 13px; }
.stamm-unter { font-size: 12.5px; font-weight: 400; color: var(--muted); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.barcode-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.barcode-liste li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.barcode-meh { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); min-width: 3.2em; text-align: center; }
.barcode-ean { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; user-select: all; }
/* Zahlen eingeklappt (seit 16.10.): eine Zeile je Tabelle, Klick klappt auf */
details.zahlen { padding: 0 12px; }
details.zahlen[open] { padding-bottom: 10px; }
details.zahlen > summary { list-style: none; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; cursor: pointer; }
details.zahlen > summary::-webkit-details-marker { display: none; }
details.zahlen > summary::before { content: '›'; display: inline-block; width: 12px; color: var(--muted); transition: transform .15s; }
details.zahlen[open] > summary::before { transform: rotate(90deg); }
.zahlen-titel { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-weight: 500; }
.quittung { border: 2px solid var(--accent); background: var(--surface-3); }
.quittung-kopf { display: flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.quittung dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 6px 0 0; font-size: 13.5px; }
.quittung dt { color: var(--muted); } .quittung dd { margin: 0; overflow-wrap: anywhere; }
.bestaetigung { border-color: var(--control); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.karte-hinweis { display: flex; gap: 10px; align-items: flex-start; }
.karte-hinweis.warn { background: var(--warn-bg); border-color: var(--warn-rand); color: var(--warn); }
.karte-hinweis p { margin: 4px 0 8px; color: var(--text); }

/* Breite Positionstabelle als Dialog */
.dialog-kopf { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dialog-kopf h2 { font-size: 16px; }

/* ---------- Detailansichten (gemeinsamer Rahmen) ---------- */
.ansicht { position: relative; flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 20px 28px 96px; display: flex; flex-direction: column; gap: 20px; }
.ansicht:focus { outline: none; }
.ansicht-laedt { padding: 40px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--muted); }
/* Suchzeile: Feld und Knopf nebeneinander */
.such-zeile { display: flex; gap: 8px; align-items: center; max-width: 720px; }
.such-zeile .suche { flex: 1; max-width: none; }
.such-zeile .knopf { flex: 0 0 auto; }
.artikel-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.artikel-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
.artikel-filter .af-text { flex: 1 1 280px; }
.artikel-filter .suche { max-width: none; }
.artikel-filter select { height: 44px; max-width: 240px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.artikel-filter .af-knoepfe { display: flex; gap: 8px; align-items: center; }
/* Trefferliste: Häkchen Einkaufssperre (Ticket 56) */
.ansicht-tabelle .al-sperre { text-align: center; width: 1%; white-space: nowrap; }
.al-sperre input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); }
@media (max-width: 640px) { .artikel-filter label, .artikel-filter select { flex: 1 1 100%; max-width: none; } }
/* Renner & Penner: mehrere Warengruppen (Ticket 173) */
.rpw-wahl { position: relative; width: max-content; max-width: 100%; }
.rpw-wahl > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.rpw-inhalt { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; width: 440px; max-width: 90vw; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.rpw-inhalt p { margin: 0 0 8px; }
.rpw-liste { max-height: 360px; overflow-y: auto; }
.rpw-hg { padding: 2px 0; border-bottom: 1px solid var(--border); }
.rpw-box { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.rpw-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rpw-box:has(input:disabled) { opacity: .5; }
.rpw-unter summary { cursor: pointer; margin: 0 0 2px 26px; }
.rpw-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
/* Prüfen */
.pruef-hinweise { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.bew-filter input { height: 44px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.bew-filter input[type="number"] { width: 110px; }
.bew-liste { display: flex; flex-direction: column; gap: 10px; }
/* Unterreiter je Bereich */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.reiter a { min-height: 44px; padding: 0 16px; display: flex; align-items: center; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiter a:hover { color: var(--text); background: var(--surface-2); }
.reiter a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; border-bottom-color: var(--accent); }
/* Einkauf: Knöpfe rechts in der Reiterleiste (Menü-Durchsicht 05.11.2026) */
.reiter-knoepfe { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.reiter a.reiter-zurueck { gap: 6px; padding: 0 14px 0 8px; margin-right: 8px; color: var(--accent-dark); font-weight: 600; border-right: 1px solid var(--border); }
.ansicht-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.zurueck { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; text-decoration: none; }
.ansicht-titel { flex: 1 1 300px; display: flex; flex-direction: column; }
.ansicht-titel h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.ansicht-inhalt { display: flex; flex-direction: column; gap: 18px; min-width: 0; transition: opacity .15s; }
.steuerung { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.steuer-gruppe { display: flex; flex-direction: column; gap: 4px; }
.steuer-titel { font-size: 13px; color: var(--muted); }
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); }
.segment button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; }
.segment button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); outline: 1px solid var(--control); }
.ansicht-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kz { min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kz-titel { font-size: 14px; font-weight: 500; color: var(--text-2); }
.kz-zahl { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz > .hinweis { font-size: 13px; line-height: 1.4; color: var(--muted); }
/* Zu tun / Fehler wie im Cockpit: Streifen links zusätzlich zur Farbe der Zahl (07.11.2026) */
.kz.kz-warn { box-shadow: inset 4px 0 0 var(--warn), var(--schatten); } .kz.kz-rot { box-shadow: inset 4px 0 0 var(--rot), var(--schatten); }
.ansicht-block { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.legende .feld.vgl { background: var(--surface); border: 2px solid var(--control); }
.verlauf { display: flex; align-items: flex-end; gap: 4px; height: 178px; overflow-x: auto; }
.verlauf-spalte { flex: 1 1 0; min-width: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.verlauf-balken { height: 152px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--control); }
.verlauf-balken span { flex: 1 1 0; max-width: 22px; border-radius: 3px 3px 0 0; }
.b-akt { background: var(--accent-fill); } .b-akt.offen { background: transparent; }
.b-vgl { background: var(--surface); border: 2px solid var(--control); border-bottom: 0; }
.verlauf-x { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Umsatz-Verlauf mit Skala (Ticket 38): Hilfslinien im Abstand --raster, Platz über dem höchsten Balken für den Betrag */
.verlauf.raster { gap: 0; height: 198px; container-type: inline-size; }
.verlauf.raster .verlauf-balken { position: relative; height: 172px; padding: 0 2px; background: repeating-linear-gradient(to top, transparent 0 calc(var(--raster) - 1px), var(--line) calc(var(--raster) - 1px) var(--raster)); }
.verlauf-achse { flex: 0 0 auto; position: sticky; left: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding-right: 6px; background: var(--surface); }
.verlauf-skala { position: relative; height: 172px; min-width: 48px; }
.verlauf-skala span { position: absolute; right: 0; transform: translateY(50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-wert { position: absolute; left: 50%; transform: translateX(-50%); padding: 0 2px; border-radius: 3px; background: var(--surface); font-size: 11.5px; line-height: 15px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-wert.links { left: max(25%, calc(50% - 12px)); } /* über dem eigenen Balken, wenn ein Vergleichsbalken daneben steht */
@container (max-width: 560px) { .b-wert { display: none; } }
.ansicht-tabelle { font-size: 14px; }
.ansicht-tabelle th[scope="row"] { font-weight: 500; white-space: normal; background: transparent; }
/* Spalten sortieren (public/sortieren.js, Ticket 45): Kopf anklickbar, Pfeil zeigt die Richtung */
th.sortierbar { cursor: pointer; user-select: none; }
th.sortierbar:hover, th.sortierbar:focus-visible { color: var(--accent); }
th.sortierbar[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent); }
th.sortierbar[aria-sort="descending"]::after { content: " ↓"; color: var(--accent); }
th.sortierbar[aria-sort="ascending"][data-sort-nr]::after { content: " ↑" attr(data-sort-nr); }
th.sortierbar[aria-sort="descending"][data-sort-nr]::after { content: " ↓" attr(data-sort-nr); }
/* Gutschriften: Zeilen markieren (Ticket 45) – das Häkchen füllt die Zelle, damit ein Fehlklick nicht die Ausgabe öffnet */
.ansicht-tabelle .rk-wahl-zelle { width: 1%; padding: 0; }
.rk-wahl { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; cursor: pointer; }
.rk-wahl input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.ansicht-tabelle tr.rk-markiert { background: var(--surface-2); }
.ansicht-tabelle tr.rueckgang { background: var(--rueckgang-bg); }
.ansicht-tabelle tfoot th, .ansicht-tabelle tfoot td { font-weight: 600; border-top: 1px solid var(--control); }
.tabelle-auf { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-weight: 500; text-align: left; display: inline-flex; align-items: center; gap: 4px; }
.tabelle-auf:hover { text-decoration: underline; }
.veraend { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.veraend-balken { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.veraend-balken span { display: block; height: 100%; } .veraend-balken .pos { background: var(--accent-fill); } .veraend-balken .neg { background: var(--neg); }
.ebene { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.auffaellig { padding: 10px 12px; border-left: 4px solid var(--neg); background: var(--surface); border-radius: 6px; font-size: 14.5px; }
/* Bestellvorschlag */
.bestell-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bestell-suche { display: flex; gap: 8px; flex: 1 1 380px; }
.bestell-suche .suche { max-width: none; flex: 1; }
.menge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.menge > .knopf.quadrat, .menge > .menge-feld { flex-shrink: 0; }
.menge > .klein { white-space: nowrap; }
/* "Vorschlag übernehmen" in eigener Zeile unter den Knöpfen, damit Artikelname und Mengenfeld Platz haben */
.menge > [data-vorschlag] { flex-basis: 100%; justify-content: flex-start; padding: 0; }
.bestell-tabelle th[scope="row"] { min-width: 200px; }
.menge .knopf.quadrat { min-height: 40px; width: 40px; font-size: 18px; }
.menge-feld { width: 64px; height: 40px; padding: 0 6px; border: 1px solid var(--control); border-radius: 8px; font: inherit; text-align: right; }
/* Drucken: nur die Ansicht, ohne Bedienelemente */
@media print {
  body { overflow: visible; display: block; background: #FFFFFF; }
  .kopf, .banner, .reiter, .pepi-leiste, .nadel, .zeiger, .steuerung, .bestell-werkzeuge, .zurueck, .ansicht-kopf .knopf-reihe, .menge .knopf, [data-vorschlag], .cockpit, .werkzeuge, .ablage-overlay { display: none !important; }
  .arbeit, .ansicht { display: block; overflow: visible; padding: 0; }
  .karte, .ansicht-block { border: 1px solid #999; break-inside: avoid; margin-bottom: 10px; }
  .menge-feld { border: 0; width: auto; }
}

/* ---------- Rollen, Tastatur, Scanner (Phase 5) ---------- */
.sprunglinks { position: absolute; top: 0; left: 0; z-index: 100; display: flex; gap: 8px; padding: 8px; }
.sprung { position: absolute; left: -9999px; min-height: 44px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--accent-dark); font-weight: 600; }
.sprung:focus { position: static; }
.rollen-banner { flex: 0 0 auto; padding: 10px 28px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.rolle-dialog { width: min(480px, 94vw); padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.rolle-dialog::backdrop { background: rgba(24, 32, 28, .35); }
.rolle-dialog.verdeckt::backdrop { background: var(--bg); }
#rolle-inhalt { padding: 12px 16px 16px; }
.rolle-dialog.breit { width: min(820px, 94vw); }
/* Mitarbeiter-Ansicht (2026-10-09): Bereiche lückenlos in Spalten, Kopf mit „x von y“ und Alle/Keine, Speichern immer sichtbar */
.rechte-gruppen { columns: 3 230px; column-gap: 14px; margin-bottom: 4px; }
.rechte-gruppe { break-inside: avoid; margin: 0 0 14px; padding: 4px 12px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.rechte-gruppe.aus { background: var(--surface-3); }
.rechte-gruppe.aus .rechte-punkt { color: var(--muted); }
.rechte-kopf { display: flex; align-items: center; gap: 6px 8px; min-height: 40px; margin: 0 -12px 4px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); }
.rechte-kopf b { font-size: 15px; }
.rechte-alle { margin-left: auto; display: inline-flex; }
.rechte-alle .knopf.link { min-height: 32px; padding: 0 6px; font-size: 13px; }
.hinweis-zeile.rechte-fest { margin: 0 0 14px; border-left-color: var(--control); font-size: 14px; color: var(--text-2); }
.rechte-fuss { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.rechte-fuss .knopf-reihe { margin: 0; align-items: center; }
.rechte-fuss .kopf-zahlen { margin-left: auto; }
.rechte-fuss #rolle-fehler:empty { display: none; }
.rechte-punkt { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.rechte-punkt input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
/* Einstellungen › Benutzer: „darf auch …“ eingerückt unter dem Punkt, Liste der Benutzer, Name/PIN/Vorlage in einer Zeile */
.rechte-punkt.rechte-auch { min-height: 30px; padding-left: 26px; font-size: 13px; color: var(--text-2); }
.rechte-punkt.rechte-auch:has(input:disabled) { display: none; }
.bn-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.bn-liste li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.bn-liste li .knopf { margin-left: auto; }
.bn-felder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 14px; }
.bn-felder input:not(.pin-feld), .bn-felder select { height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.bn-felder #bn-name { width: 220px; }
.bn-felder select { max-width: 100%; }
/* Einstellungen › Benutzer › Abmelden nach (Ticket 271) */
.ei-abmelden { margin: 18px 0 0; }
.ei-abmelden select { width: 300px; max-width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.ei-abmelden .klein { font-weight: 400; }
.bn-ohne-pin { max-width: 320px; margin: 0 0 10px; }
#rolle-inhalt p { margin: 0 0 10px; }
/* Anmelden: je Person eine große Karte (Anfangsbuchstabe, Name, mit/ohne PIN, Pfeil) */
#rolle-inhalt .anmelde-frage { margin-bottom: 14px; color: var(--text-2); }
.anmelde-frage b { font-size: 16px; color: var(--text); }
.anmelde-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.anmelde-karte { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px; border: 1px solid var(--control); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.anmelde-karte:hover, .anmelde-karte:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.anmelde-karte[aria-current="true"] { border-color: var(--accent); }
.anmelde-zeichen { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fill, var(--accent)); color: #FFFFFF; font-size: 17px; font-weight: 600; }
.anmelde-name { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.anmelde-name b { font-size: 16px; }
.anmelde-name .klein { display: inline-flex; align-items: center; gap: 4px; }
.anmelde-karte > .ico { flex: 0 0 auto; color: var(--muted); }
.feld-label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.pin-feld { width: 160px; height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; font: inherit; font-size: 18px; letter-spacing: .3em; }
.artikelkarte { display: flex; flex-direction: column; gap: 4px; }
.scan-bereit p { margin: 0 0 8px; }
body[data-rolle="mitarbeiter"] #rolle-knopf { border-color: var(--accent); }

/* Liefertage */

.lt-tage { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.lt-tage legend { font-weight: 500; margin-bottom: 6px; }
.lt-tag { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.lt-tag input { width: 22px; height: 22px; accent-color: var(--accent); }
.lt-feld { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.lt-tabelle { border-collapse: collapse; }
.lt-tabelle th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 16px 2px 0; }
.lt-tabelle td { padding: 0 16px 0 0; }
.lt-tabelle select { min-width: 150px; }
.lt-tabelle select:disabled { opacity: .45; }
.lt-feld select, .lt-feld input { min-height: 44px; font: inherit; padding: 0 8px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); color: var(--text); }

/* Klickflächen mindestens 44 px (WCAG 2.2, Vorgabe) */
.segment button, .menge .knopf.quadrat, .bezug .knopf, .tabelle-auf { min-height: 44px; }
.menge .knopf.quadrat, .bezug .knopf { width: 44px; }
.menge-feld { height: 44px; }
.marke { min-height: 44px; }
details.trace summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/* ---------- Werkzeug-Testansicht (nur Entwicklung) ---------- */
.werkzeuge { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; }
.toolbox { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 20px; min-height: 0; flex: 1; overflow: hidden; }
.toollist { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.toollist button { text-align: left; border: 1px solid transparent; background: transparent; color: var(--text); padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; }
.toollist button:hover { background: var(--surface-2); }
.toollist button.active { background: var(--accent-soft); border-color: var(--accent); }
.toolrun { overflow-y: auto; min-width: 0; }
.toolrun h2 { font-size: 18px; font-family: var(--mono); }
.tform { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; margin: 14px 0; align-items: end; }
.tform label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.tform input, .tform select { padding: 8px 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.tform .req { color: var(--neg); }
.tresult .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; font-size: 13.5px; }
.tresult .kv dt { color: var(--muted); } .tresult .kv dd { margin: 0; overflow-wrap: anywhere; }
.tresult h3 { font-size: 14px; margin: 16px 0 6px; font-family: var(--mono); }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1100px) {
  .kopf, .banner { padding-left: 20px; padding-right: 20px; }
  .cockpit { padding: 20px 20px 96px; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .arbeit { flex-direction: column; overflow: visible; }
  .cockpit { overflow: visible; }
  .nadel { right: 12px; bottom: 12px; }
  .pepi-leiste, .pepi-leiste.gross { top: auto; left: 8px; right: 8px; bottom: 80px; width: auto; height: min(70vh, calc(100vh - 100px)); }
  #leiste-gross { display: none; }
  .toolbox { grid-template-columns: 1fr; overflow-y: auto; }
  .toollist { flex-direction: row; flex-wrap: wrap; }
}

/* Formular „Artikel anlegen“ (von Hand) */
.an-dialog { width: min(760px, 96vw); max-height: 92vh; padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.an-dialog::backdrop { background: rgba(35, 31, 32, .35); }
.an-form { padding: 14px 16px 16px; }
.an-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.an-raster > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
.an-raster .an-voll { grid-column: 1 / -1; }
.an-raster input, .an-raster select { height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; min-width: 0; }
.an-raster select:disabled { background: var(--surface-2); color: var(--muted); }
#an-vorschlag:empty, #an-spanne:empty { display: none; }
.an-einheiten { margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.an-einheiten legend { padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.an-einheit { display: grid; grid-template-columns: 1.3fr 0.8fr 1.3fr minmax(110px, 1fr); gap: 8px 10px; align-items: end; margin-top: 6px; }
.an-einheit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
.an-einheit input, .an-einheit select { height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; min-width: 0; }
.an-einheit input:disabled { background: var(--surface-2); }
.an-code { padding-bottom: 12px; }
@media (max-width: 640px) { .an-einheit { grid-template-columns: 1fr 1fr; } }
#an-vorschlag .chip { margin: 2px 4px 2px 0; }
.an-check { flex-direction: row !important; align-items: center; gap: 10px !important; min-height: 44px; font-size: 14px !important; }
.an-check input { width: 22px; height: 22px; accent-color: var(--accent); }
#artikel-neu { width: min(960px, 96vw); }
.an-zas-treffer td, .an-zas-treffer th { vertical-align: top; }
.an-zas-treffer th[scope="row"] { min-width: 220px; }
.an-zas-treffer td:last-child { width: 1%; white-space: nowrap; }
.an-fuss { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.an-zusammenfassung { margin: 0 0 12px; }
.an-hinweise { margin: 8px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .an-raster { grid-template-columns: 1fr; } }

/* Formular „Rechnung einlesen“ */
.rp-kontrolle { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
/* Leseregel-Wunsch: PDF als Ticket an POSTRONIK (Beleg einlesen, Kasse › Kartenzahlungen) */
.rp-einsenden { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 8px 0; }
.rp-einsenden p { margin: 0; flex: 1 1 260px; } .rp-einsenden svg { vertical-align: -3px; }
.rp-titel { margin: 14px 0 6px; font-size: 15px; }
/* Neu aus dem Postfach (seit 20.11.2026): Liste oben in „Beleg einlesen“ und die Zahl am Knopf (rechnungpdf.js setzt data-postfach und --postfach-zahl) */
.rp-postfach { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rp-postfach .rp-titel { margin-top: 0; }
.rp-pf-knoepfe { white-space: nowrap; } .rp-pf-knoepfe .knopf + .knopf { margin-left: 8px; }
/* Ticket 305: „Beleg einlesen“ breiter als die übrigen Formulare. Ein langer Dateiname ohne Leerzeichen bricht um – vorher schob er
   „Einlesen“ und „Ausblenden“ aus dem Fenster. Die Mindestbreite hält die Spalte am Handy lesbar. */
#rechnung-pdf { width: min(960px, 96vw); }
.rp-pf-beleg { min-width: 200px; overflow-wrap: anywhere; }
.rp-pf-fuss { margin: 8px 0 0; }
html[data-postfach] [data-rechnung-pdf].voll::after, html[data-postfach] button[data-schnell="rechnung"]::after { content: var(--postfach-zahl); min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px;
  background: color-mix(in srgb, currentColor 22%, transparent); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.postfach-form { max-width: 460px; }
/* Felder wie in Einstellungen › Benutzer (.bn-felder) */
.postfach-form input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.postfach-form .knopf-reihe { margin-top: 14px; }
.postfach-form input[type="checkbox"] { width: auto; height: auto; padding: 0; }
.postfach-form + .postfach-form { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.rp-gruppe { margin: 8px 0; } .rp-gruppe ul { margin: 4px 0 0; padding-left: 18px; }
.rp-positionen { margin: 6px 0 4px; } .rp-positionen summary { cursor: pointer; min-height: 32px; }

/* Zeitungen: offene Gutschriften/Rechnungen je Beleg */
.z-beleg { margin: 0 0 8px; padding: 0; }
.z-beleg-kopf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.z-beleg[open] .z-beleg-kopf { border-bottom: 1px solid var(--line); }
/* Remissionsliste: „Heute | Bis morgen | Alle“ rechts in der Kopfzeile, Titel nur für Vorleser */
.z-beleg-kopf .steuer-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.z-beleg-kopf .segment { cursor: default; }
.z-beleg .tablewrap { padding: 4px 10px 10px; }
@media (max-width: 800px) { .z-beleg-kopf { grid-template-columns: 1fr; } }
/* Remission „Heute | Bis morgen | Alle“ (Ticket 83, seit 13.11.2026 mit der Ausräumliste): später fällige Zeilen und leere Abschnitte ausblenden,
   offene Zeilen für heute warm, für morgen blau hinterlegt */
.rem-zeige-heute tr.rem-t1, .rem-zeige-heute tr.rem-t2, .rem-zeige-morgen tr.rem-t2 { display: none; }
.rem-zeige-heute .rem-leer-h, .rem-zeige-morgen .rem-leer-m { display: none; }
.rem-nur-h, .rem-nur-m { display: none; }
.rem-zeige-heute .rem-nur-h, .rem-zeige-morgen .rem-nur-m { display: block; }
.ansicht-tabelle tr.rem-t0:not(.rem-erledigt) > *, .rem-farbe.rem-t0 { background: var(--warn-bg); }
.ansicht-tabelle tr.rem-t1:not(.rem-erledigt) > *, .rem-farbe.rem-t1 { background: var(--blue-soft); }
.rem-farbe { padding: 1px 6px; border-radius: 4px; color: var(--text); }
.rem-ohne-gruppe + .rem-ohne-gruppe { margin-top: 16px; }
.rem-ohne-gruppe h3 { font-size: 15px; margin: 0; }
.ansicht-tabelle tr.rem-gruppe th { text-align: left; font-weight: 600; padding-top: 12px; }
/* Passende Zeilen (Menge im Aufruf = Soll) ausgeblendet, bis „Zeigen“ geklickt wird */
.rem-passt-zu tr.rem-passt { display: none; }
.rem-passt-hinweis { display: none; }
.rem-passt-zu .rem-passt-hinweis { display: block; }
/* Remission: Abschnitte oben (Aufrufe, Noch nicht aufgerufen) mit demselben Abstand wie die übrigen Karten – klebten sonst aneinander */
#rem-seite { display: flex; flex-direction: column; gap: 18px; }
/* Scanfeld (Vorremission): Suchfeld mit Scan-Symbol */
.scan-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
/* Such- und Scanfelder überall gleich (seit 18.11.2026, suchFeld() in format.js): Symbol links im Feld, 44 px hoch, volle Breite der Hülle */
.scan-eingabe { position: relative; display: block; min-width: 0; font-size: 16px; font-weight: 400; }
.scan-zeile .scan-eingabe { flex: 0 1 380px; }
.scan-eingabe > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.scan-eingabe > input:not([type="checkbox"]), #ra-neu .artikel-filter .scan-eingabe > input:not([type="checkbox"]) { display: block; width: 100%; max-width: none; min-width: 0; height: 44px; padding: 0 12px 0 40px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.scan-eingabe:focus-within > svg { color: var(--text-2); }
.such-zeile > .scan-eingabe, .bestell-suche > .scan-eingabe { flex: 1 1 auto; }
.vr-meldung:empty { display: none; }
.vr-meldung { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.vr-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
/* Remissionsliste eines Aufrufs nur sichtbar, wenn über „Liste ansehen“ geöffnet */
details[data-remdetails]:not([open]) { display: none; }

/* Zoom-Anzeige (Strg + / Strg − / Strg 0) */
.zoom-anzeige { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 8px 16px; border-radius: 8px; background: var(--grau-marke); color: #fff; font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); pointer-events: none; }

/* ---------- Cockpit (Überarbeitung 2026-10-05): Aktionsleiste, drei Kennzahlen, Aufgaben in zwei Spalten ----------
   Abstände: 24 px zwischen den Abschnitten, 16 px innerhalb, 8 px zwischen Knöpfen. Rot nur für Marke, den einen Hauptknopf und überfällig/Fehler. */
.cockpit { gap: 24px; container-type: inline-size; }
.cockpit .abschnitt-kopf h2 { font-size: 16px; font-weight: 600; }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: 8px; }
/* Cockpit: Schnellaktionen über die volle Breite, möglichst gleich breit, nie schmaler als ihr Text; zu eng → Umbruch.
   Je Knopf ein farbiges Symbolfeld, Farben nur über Tokens (13.11.2026) */
#schnell.aktionsleiste { gap: 10px; }
#schnell .aktion { flex: 1 1 0; min-width: max-content; min-height: 56px; padding: 0 14px 0 10px; gap: 12px; font-size: 15px; box-shadow: var(--schatten); }
/* Sechs Knöpfe (seit 21.11.2026 mit Kassenabschluss): passen sie nicht in eine Zeile, stehen sie drei und drei statt fünf und einer */
@media (max-width: 1199px) { #schnell .aktion { flex-basis: 30%; } }
#schnell .ico-feld { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ton-bg, var(--surface-2)); }
#schnell .aktion .ico-feld .ico { color: var(--ton, var(--text-2)); }
#schnell .aktion[data-ton="blau"] { --ton: var(--blue); --ton-bg: var(--blue-soft); }
#schnell .aktion[data-ton="gruen"] { --ton: var(--pos); --ton-bg: var(--pos-bg); }
#schnell .aktion[data-ton="orange"] { --ton: var(--warn); --ton-bg: var(--warn-bg); }
#schnell .aktion[data-ton="lila"] { --ton: var(--lila); --ton-bg: var(--lila-bg); }
#schnell .aktion:hover:not(:disabled):not(.primaer) { border-color: var(--ton, var(--control)); }
#schnell .aktion.primaer .ico-feld { background: color-mix(in srgb, currentColor 18%, transparent); }
#schnell .aktion.primaer .ico-feld .ico { color: inherit; }
#schnell .aktion:disabled .ico-feld .ico { color: var(--muted); }
.aktion { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.aktion .ico { color: var(--text-2); }
.aktion:hover:not(:disabled) { border-color: var(--control); color: var(--text); }
.aktion:disabled { opacity: .55; cursor: not-allowed; }
.aktion.primaer { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.aktion.primaer .ico { color: #fff; }
.aktion.primaer:hover:not(:disabled) { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: #fff; }

.kennzahlen .abschnitt-kopf { justify-content: flex-start; gap: 4px; margin-bottom: 8px; }
.info-knopf { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.info-knopf:hover, .info-knopf[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
#kz-info { margin: 0 0 8px; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Kennzahl-Kacheln (seit 07.11.2026, Muster _lokal/design-muster): Symbol je Bereich, eine große Hauptzahl, Nebenzahlen im Fuß;
   zu tun = Streifen links und Plakette (nie nur Farbe), alles in Ordnung = leiser. Schatten statt Rand nur im hellen Design (--schatten). */
.kachel { position: relative; min-width: 0; min-height: 168px; container-type: inline-size; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--kachel-rand); border-radius: 12px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 10px; }
.kachel:has(.kachel-link:hover) { border-color: var(--control); }
.kachel-kopf { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.kachel-symbol { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; }
.kachel-titel { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel-mitte { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kachel-zahlen { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; min-width: 0; }
.kachel-zahlen > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kachel .zahl { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.kachel .zahl-klein { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text-2); white-space: nowrap; }
.kachel .unter { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Ticket 52 (27.10.2026): Nebenzahlen nie zusammendrücken – sie brechen in eine neue Zeile; die Hauptzeile darf umbrechen, wenn sie allein nicht passt */
.kachel-zahlen > .haupt { flex: 0 1 auto; }
.kachel-zahlen > .neben { flex: 0 0 auto; }
.kachel .kachel-zahlen .unter { white-space: normal; line-height: 1.5; }
.kachel .unter .ton-auf,.kachel .unter .ton-ab { font-weight: 600; }
/* Vergleich als Plakette; über ±300 % steht stattdessen der Vergleichsbetrag im Fuß (public/cockpit.js, sinnvoll) */
.kz-chip { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.kz-chip.auf { background: var(--pos-bg); color: var(--pos); }
.kz-chip.ab { background: var(--warn-bg); color: var(--neg); }
.kz-ok { color: var(--pos); font-weight: 500; }
.kz-ok .ico { vertical-align: -3px; }
.kachel.kachel-warn { box-shadow: inset 4px 0 0 var(--warn), var(--schatten); }
.kachel.kachel-warn .kachel-symbol { background: var(--warn-bg); color: var(--warn); }
.kachel.kachel-rot { box-shadow: inset 4px 0 0 var(--rot), var(--schatten); }
.kachel.kachel-rot .kachel-symbol { background: var(--rot-bg); color: var(--rot); }
.kachel.kachel-ruhig .zahl { color: var(--muted); font-weight: 500; }
.diagramm { flex: 0 3 130px; width: 130px; min-width: 70px; height: auto; aspect-ratio: 150 / 60; }
.kachel-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.kachel-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.frage-mini { position: relative; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s; }
.kachel:hover .frage-mini, .frage-mini:focus-visible { opacity: 1; }
.frage-mini:hover { background: var(--surface-2); color: var(--text); }
.kachel .stand-alt { position: relative; z-index: 2; }
.kachel.alt .zahl { color: var(--text-2); }
.kachel.laedt .zahl { font-size: 18px; color: var(--muted); }

.aufgaben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.zutun, .feld { min-width: 0; padding: 14px 18px 8px; }
.zutun ul { list-style: none; margin: 8px 0 0; padding: 0; }
.zutun li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
/* Am Bestelltag deutlich: hinterlegte Zeile mit Randstrich, überfällig rot */
.zutun li.bestelltag-heute { margin: 4px -10px; padding: 10px; border-top: 0; border-left: 4px solid var(--warn); border-radius: 8px; background: var(--warn-bg); }
.zutun li.bestelltag-heute.rot { border-left-color: var(--rot); background: var(--rot-bg); }
.zutun li.bestelltag-heute .titel { font-weight: 700; }
.zutun li.bestelltag-heute .anzahl { background: var(--surface); }
.anzahl { flex: 0 0 auto; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.anzahl.warn { background: var(--warn-bg); color: var(--warn); } .anzahl.rot { background: var(--rot-bg); color: var(--rot); } .anzahl.grau, .anzahl.info { background: var(--surface-2); color: var(--text-2); }
.zutun-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.zutun-text .titel { font-weight: 500; }
.zutun-text .detail { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zutun-text .quelle { font-size: 13px; color: var(--warn); }
.zutun-knoepfe { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.zutun-neben { display: flex; gap: 6px; transition: opacity .12s; }
.zutun-leer { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.zutun-versteckt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Heute zu tun: sechs gleich gebaute Karten (Termine und Pflichten, Verkauf stärken, Artikelpflege, Negativer Lagerstand, Zu viel am Lager,
   Heute zählen) – je Punkt eine Zeile, höchstens vier je Karte, „Mehr“ führt zur Seite #aufgaben, dort klappen die Artikel auf (seit 13.10.2026) */
.heute .abschnitt-kopf { margin-bottom: 8px; }
.aufgaben .abschnitt-kopf h3 { margin: 0; font-size: 16px; font-weight: 600; }
.feld-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.feld-punkt { border-top: 1px solid var(--line); }
.feld-zeile { width: 100%; min-height: 48px; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); display: flex; align-items: center; gap: 10px; font: inherit; text-align: left; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.feld-zeile.still { cursor: default; }
button.feld-zeile:hover, a.feld-zeile:hover { background: var(--surface-3); }
.feld-text { margin: 6px 6px 0; font-size: 13px; color: var(--muted); }
.feld .feld-fuss { padding: 6px 6px 4px; border-top: 1px solid var(--line); }
.reiter-zahl { min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 11px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.reiter-zahl.warn, .reiter a[aria-current="page"] .reiter-zahl.warn { background: var(--warn-bg); color: var(--warn); }
.reiter a[aria-current="page"] .reiter-zahl { background: var(--surface-2); color: var(--text-2); }
/* Umschaltung unter einem Gruppen-Reiter (Stufe 2, 07.11.2026, ansichten.js REITER_GRUPPEN) – wie ein Segment, nur mit Links */
/* .ansicht > * bekommt sonst width 100 % (Regel für 49-Zoll-Bildschirme) – die Umschaltung bleibt so breit wie ihr Inhalt.
   Links derselbe Rand wie der gemittelte Inhalt (breiter als --inhalt-max), sonst klebt sie am Fensterrand (22.11.2026) */
.ansicht > .unter-reiter { display: flex; width: max-content; max-width: 100%; flex-wrap: wrap; gap: 4px; align-self: flex-start; padding: 4px; margin: 2px 0 -4px max(0px, (100% - var(--inhalt-max)) / 2); border-radius: 10px; background: var(--surface-2); }
.unter-reiter a { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 4px; border-radius: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.unter-reiter a:hover { color: var(--text); }
.unter-reiter a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); outline: 1px solid var(--control); }
/* Einkauf: Hauptknopf + Menü (Stufe 2, 07.11.2026) */
.ek-mehr { position: relative; }
.ek-mehr > summary { list-style: none; cursor: pointer; }
.ek-mehr > summary::-webkit-details-marker { display: none; }
.ek-mehr[open] > summary { border-color: var(--text); }
.ek-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); display: flex; flex-direction: column; }
.ek-menue-punkt { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14.5px; text-align: left; display: flex; align-items: center; gap: 10px; }
.ek-menue-punkt:hover:not(:disabled), .ek-menue-punkt:focus-visible { background: var(--surface-2); }
.aufgaben-seite { padding: 4px 16px 10px; }
.aufgaben-seite .feld-liste { margin: 0; }
.aufgaben-seite .feld-punkt:first-child { border-top: 0; }
.feld-zeile .anzahl { min-width: 36px; height: 28px; font-size: 14px; }
.feld-titel { flex: 1 1 auto; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feld-punkt.ok .feld-titel { font-weight: 400; color: var(--muted); }
.feld-zahl { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.feld-ok { color: var(--pos); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.opt-pfeil { color: var(--muted); display: inline-flex; transition: transform .12s; }
.feld-zeile[aria-expanded="true"] .opt-pfeil { transform: rotate(90deg); }
.feld-auf { padding: 0 6px 10px 6px; }
.feld-auf > .detail { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.feld-artikel { list-style: none; margin: 0; padding: 0; }
.feld-artikel li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 0; border-top: 1px dashed var(--border); }
.feld-art { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.feld-name { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.feld-name:hover { color: var(--accent); }
.feld-art .detail { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feld-knoepfe { flex: none; display: flex; align-items: center; gap: 6px; }
.feld-knoepfe .knopf.klein { min-height: 32px; padding: 0 10px; font-size: 13px; }
.feld-knoepfe .knopf.quadrat { width: 36px; min-height: 32px; }
.feld-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 6px; }
.feld-fuss .knopf.link.klein { min-height: 28px; font-size: 13px; }
.feld-link { min-height: 32px; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.feld-link:hover { color: var(--accent); }
/* Lagerstand-Felder: Artikel je Hauptgruppe aufklappbar, Tabakwaren darin nach Untergruppen (16.10.2026) */
.feld-gruppen { list-style: none; margin: 0; padding: 0; }
.feld-gruppe { border-top: 1px solid var(--line); }
.feld-gruppe-kopf { width: 100%; min-height: 42px; padding: 6px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; box-sizing: border-box; }
.feld-gruppe-kopf:hover { background: var(--surface-3); }
.feld-gruppe-kopf[aria-expanded="true"] .opt-pfeil { transform: rotate(90deg); }
.feld-gruppe-inhalt { padding: 0 0 8px 28px; }
.feld-untergruppe { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-transform: none; }
.feld-erledigt { margin-top: 4px; }
.feld-erledigt .feld-name { font-weight: 400; }
@media (hover: hover) { .feld-artikel li:not(:hover):not(:focus-within) .knopf.quadrat { opacity: .35; } }

@media (hover: hover) { .zutun li:not(:hover):not(:focus-within) .zutun-neben { opacity: 0; } }
@media (hover: none) { .frage-mini { opacity: 1; } }
/* Die Kachel ist selbst Container (Ticket 52): Diagramm nur, wenn die Kachel breit genug ist – seit 07.11.2026 ab 300 px, weil nur noch eine Zahl daneben steht */
@container (max-width: 300px) { .kachel .diagramm { display: none; } }
@container (max-width: 1300px) { .aufgaben { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 980px) { .aufgaben { grid-template-columns: 1fr; } }
@container (max-width: 700px) { .kacheln { grid-template-columns: 1fr; } }

/* ---------- Einkauf: schlanke Vorlage (2026-10-05) – Kopf in einer Zeile, Hinweiszeile, Zahlen im Listentitel, Bestell-Leiste unten ---------- */
.ansicht-kopf.schlank .ansicht-titel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ansicht-kopf.schlank h1 { font-size: 22px; }
/* Ticket 114: ‹ 3 von 12 › – durch die Treffer der Artikelsuche blättern */
.treffer-nav { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.treffer-nav .knopf { min-width: 36px; justify-content: center; font-size: 18px; line-height: 1; }
.ansicht-info { margin: -10px 0 0; max-width: 1100px; }
.hinweis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 4px 0 4px 12px; border-left: 3px solid var(--control); font-size: 14.5px; }
/* Ton nach Inhalt (format.js hinweisZeile, Server: auffaellig.ton, seit 07.11.2026): grau = Info, grün = alles gut, orange = zu tun, rot = Fehler – immer mit Symbol */
.hz-symbol { display: inline-flex; margin-right: -4px; }
.hinweis-zeile.hz-gut { border-left-color: var(--pos); } .hz-gut .hz-symbol { color: var(--pos); }
.hinweis-zeile.hz-zutun, .hinweis-zeile.hz-fehler { padding: 8px 12px; border-left-width: 4px; border-radius: 0 8px 8px 0; }
.hinweis-zeile.hz-zutun { border-left-color: var(--warn); background: var(--warn-bg); } .hz-zutun .hz-symbol { color: var(--warn); }
.hinweis-zeile.hz-fehler { border-left-color: var(--rot); background: var(--rot-bg); } .hz-fehler .hz-symbol { color: var(--rot); }
.hz-zutun .knopf.link.ruhig, .hz-fehler .knopf.link.ruhig { min-height: 28px; }
.knopf.link.ruhig { color: var(--text-2); } .knopf.link.ruhig:hover { color: var(--accent); }
.kopf-zahlen { font-size: 14px; color: var(--muted); }
.abschnitt-kopf h2 + .kopf-zahlen { margin-right: auto; }
.ansicht-tabelle.mitte th, .ansicht-tabelle.mitte td { vertical-align: middle; }
.ansicht-tabelle .rechts { text-align: right; }
@media print { .hinweis-zeile .knopf, .info-knopf { display: none !important; } }

/* ---------- Zeitungen (2026-10-05): Status-Felder je Grossist, schlichte Belegliste, Reklamation, Auswertung mit Filter ---------- */
.z-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.z-feld { min-height: 84px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--border); color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.z-feld:hover { border-color: var(--control); color: var(--text); }
.z-feld-titel { font-size: 13px; color: var(--muted); }
.z-feld-zahl { font-size: 18px; font-weight: 600; }
.z-feld-unter { font-size: 13px; color: var(--muted); }
.z-feld.rot { background: var(--rot-bg); border-color: transparent; } .z-feld.rot .z-feld-zahl { color: var(--rot); }
.z-feld.warn { background: var(--warn-bg); border-color: transparent; } .z-feld.warn .z-feld-zahl { color: var(--warn); }
.z-feld.ok .z-feld-zahl { color: var(--pos); }
.z-warnungen { margin: 0; padding: 0 0 0 18px; font-size: 14px; color: var(--warn); }
.z-mehr > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.z-mehr[open] > summary { margin-bottom: 8px; }
/* Ticket 180: abgeschlossene Zeitungs-Lieferscheine, Haken „Nur mit Differenz“ blendet die übrigen aus */
.zl-ab-nur tbody tr:not(.zl-ab-diff) { display: none; }
/* Lieferung aufklappen: Zeile anklickbar, darunter die Zeitungen eingerückt */
tr.ls-auf { cursor: pointer; }
[data-rvaufruf] { white-space: nowrap; }
.ls-auf-pfeil { display: inline-block; color: var(--muted); transition: transform .15s; }
tr.ls-auf[aria-expanded="true"] .ls-auf-pfeil { transform: rotate(90deg); }
tr.ls-pos > td { padding: 0 0 8px 24px; }
.ls-pos-tabelle { margin: 0; font-size: .92em; }
.zl-ab-nur tbody .ls-pos-tabelle tr { display: table-row; }
.z-beleg { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.z-beleg-kopf { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; padding: 8px 4px; }
.z-beleg[open] .z-beleg-kopf { border-bottom: 0; }
.z-unter { font-size: 15px; margin: 4px 0 6px; } /* Prüfen › Belege: „Teurer als Liste“ */
.bp-tabelle .plakette, .bp-tabelle td.rechts .knopf { white-space: nowrap; }
.z-tabelle { table-layout: fixed; width: 100%; margin: 0 0 10px; }
.z-tabelle th:nth-child(1) { width: 46%; } .z-tabelle th:nth-child(2) { width: 22%; }
/* Wöchentlich prüfen: Felder als Knöpfe, aufgeklappte Liste darunter */
button.z-feld { font: inherit; text-align: left; cursor: pointer; } button.z-feld[aria-expanded="true"] { border-color: var(--control); }
.wp-liste { margin-top: 12px; } .wp-liste h3 { font-size: 15px; margin: 10px 0 6px; }
/* Remission › Noch nicht aufgerufen: abgehakte Zeile durchgestrichen, Haken groß genug für den Finger */
.ansicht-tabelle tr.ar-ok th, .ansicht-tabelle tr.ar-ok td { color: var(--muted); } .ansicht-tabelle tr.ar-ok th[scope="row"] { text-decoration: line-through; }
.ansicht-tabelle [data-arok] { width: 20px; height: 20px; accent-color: var(--accent); }
.z-reklam { display: flex; flex-direction: column; }
.z-reklam-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.z-quote { display: inline-flex; align-items: center; gap: 8px; }
.z-balken { width: 80px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.z-balken span { display: block; height: 100%; background: var(--control); }
.plakette.gruen { background: var(--pos-bg); color: var(--pos); }
.plakette.ohne-zeichen::before { content: none; }
@media (max-width: 1000px) { .z-status { grid-template-columns: 1fr; } }
#druck-einzeln { display: none; }
@media print {
  body.druck-einzeln > *:not(#druck-einzeln) { display: none !important; }
  body.druck-einzeln #druck-einzeln { display: block; font-size: 12px; }
  #druck-einzeln h1 { font-size: 18px; margin: 0 0 4px; }
  #druck-einzeln table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  #druck-einzeln th, #druck-einzeln td { border-bottom: 1px solid #CCC; padding: 4px 6px; text-align: left; }
  #druck-einzeln .num { text-align: right; }
  #druck-einzeln tfoot td { font-weight: 600; border-top: 1px solid #000; }
  /* Bestellung als PDF für die Mail an den Lieferanten (bestellBlatt in public/einkaufsbeleg.js), Aufbau wie MDs Bestellung */
  #druck-einzeln .bp { font-size: 11px; }
  #druck-einzeln .bp-absender { font-size: 10px; margin-bottom: 18px; }
  #druck-einzeln .bp-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; font-size: 12px; }
  #druck-einzeln .bp-daten { width: auto; margin: 0; }
  #druck-einzeln .bp-daten th, #druck-einzeln .bp-daten td { border: 0; padding: 1px 0 1px 12px; }
  #druck-einzeln .bp-daten th { font-weight: 400; background: none; }
  #druck-einzeln .bp-daten td { font-weight: 600; text-align: right; }
  #druck-einzeln .bp-pos thead { display: table-header-group; }
  #druck-einzeln .bp-pos tfoot { display: table-row-group; }
  #druck-einzeln .bp-pos th, #druck-einzeln .bp-pos td { font-size: 10px; padding: 3px 5px; white-space: nowrap; }
  #druck-einzeln .bp-pos td:nth-child(2) { white-space: normal; width: 100%; }
  #druck-einzeln .bp-pos tr { break-inside: avoid; }
  #druck-einzeln .bp-fuss { margin-top: 8px; font-size: 10px; }
  /* Zählliste (Prüfen › Inventur): Warengruppen-Zwischenzeile, Feld „Gezählt“ zum Eintragen mit der Hand */
  #druck-einzeln .iv-druck-gruppe th { background: #EEE; font-weight: 600; padding-top: 8px; }
  #druck-einzeln .iv-druck-feld { min-width: 5em; border-left: 1px solid #CCC; border-right: 1px solid #CCC; }
  /* Zählliste mit Strichcodes: je Warengruppe drei Spalten, je Artikel ein Kästchen zum Scannen mit dem MDE-Gerät */
  #druck-einzeln .iv-sc-gruppe { font-size: 14px; margin: 10px 0 4px; break-after: avoid; }
  #druck-einzeln .iv-sc-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
  #druck-einzeln .iv-sc { border: 1px solid #CCC; padding: 2mm; break-inside: avoid; display: flex; flex-direction: column; align-items: center; gap: 1mm; text-align: center; }
  #druck-einzeln .iv-sc b { font-size: 14px; }
  #druck-einzeln .iv-sc-art { font-size: 10px; }
  #druck-einzeln .iv-sc-nr { font-size: 10px; letter-spacing: 1px; }
}
.abschnitt-kopf .steuer-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Artikel (2026-10-05): Namen dunkel, Lagerfarben, Verkaufsbalken grau, Zuletzt angesehen, Ursachen als Plakette ---------- */
.ansicht-tabelle th[scope="row"] a { color: var(--text); text-decoration: none; }
.ansicht-tabelle th[scope="row"] a:hover { color: var(--accent); text-decoration: underline; }
.ton-rot { color: var(--rot); } .ton-warn { color: var(--warn); }
.kz.kz-rot .kz-zahl { color: var(--rot); } .kz.kz-warn .kz-zahl { color: var(--warn); }
.b-art { background: var(--control); }
.verlauf-spalte:last-child .b-art { background: var(--grau-marke); }
.chips.zuletzt { flex-direction: row; flex-wrap: wrap; }
.plakette.ursache { background: var(--surface-2); color: var(--text-2); font-weight: 500; cursor: help; }
.plakette.idee { background: var(--surface-2); color: var(--text-2); font-weight: 500; align-self: center; }

/* ---------- Prüfen (2026-10-05) ---------- */
.imp-was { margin: 0 0 4px; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.chips.minus .chip .muted { color: var(--rot); }
.bericht-gruppen { display: flex; flex-direction: column; gap: 10px; }
.bericht-gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bericht-titel { min-width: 110px; font-size: 13px; color: var(--muted); }
.chip.bericht-chip { text-decoration: none; color: var(--text); }
/* Auswahl überall gleich und neutral (07.11.2026): weißer Grund, dunkler Rand, fett – Rot bleibt Marke und Hauptknopf */
.chip.bericht-chip.aktiv { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); font-weight: 600; }
.bericht-zahl { margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; }
.chip.bericht-chip.aktiv .bericht-zahl { background: var(--surface-2); color: var(--text-2); }
.chips.zuletzt a.chip.bericht-chip.aktiv { color: var(--text); }
.chip.bericht-chip.aktiv .muted { color: var(--muted); }
.chips.zuletzt a.chip { color: var(--text); text-decoration: none; }
.chips.zuletzt a.chip:hover { border-color: var(--control); color: var(--accent); }
.bericht-gruppe { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.bericht-titel { padding-top: 12px; min-width: 0; }
.bericht-gruppe > .hinweis { grid-column: 2; }
.bericht-gruppe > .hinweis a { color: var(--text-2); }

/* ---------- Verkauf (2026-10-05): graue Balken, eine Karte ohne Vergleich, Durchlaufposten als Gruppe ---------- */
.b-akt { background: var(--control); }
.b-akt.b-jetzt { background: var(--grau-marke); }
.legende .feld { background: var(--control); }
.veraend-balken .pos { background: var(--pos); }
.veraend-balken .anteil { background: var(--control); }
.tabelle-auf { color: var(--text); }
.tabelle-auf:hover { color: var(--accent); }
.kz-einzeln { grid-template-columns: minmax(0, 460px); }
.dl-kopf th { padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); background: transparent; border-bottom: 1px solid var(--border); }
.dl-zeile th, .dl-zeile td { color: var(--text-2); }

/* ---------- Assistent (2026-10-05): eigene Nachrichten dunkelgrau, Antworttext ohne Rahmen, Rot nur für Senden und Fehler ---------- */
.msg.user .bubble { background: var(--grau-marke); color: #fff; }
.msg.bot .bubble { border: 0; background: transparent; padding: 2px 2px; }
.msg.err .bubble { border: 1px solid var(--neg); background: var(--surface); padding: 10px 14px; }
.msg.bot .bubble:has(.artikelkarte), .msg.bot .bubble:has(.scan-bereit) { border: 1px solid var(--border); background: var(--surface); padding: 10px 14px; }
.messages { gap: 14px; }
#reset { color: var(--text-2); }
#reset:hover { color: var(--accent); }
.zahlen-link { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.zahlen-link:hover { color: var(--accent); text-decoration: underline; }
.artikelkarte .knopf-reihe { margin-top: 6px; }

/* ---------- 2026-10-06: zweite Kennzahl-Reihe, Kunden-Auswertung ---------- */
.kachel-fuss { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; font-size: 13px; color: var(--muted); }
.kachel-fuss > span { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel-fuss > span + span { text-align: right; }
.kachel-fuss > span:first-child:not(:last-child) { flex-shrink: 0; } /* links die Zahl ganz, rechts wird gekürzt */
.kachel-fuss b { font-weight: 600; color: var(--text); }

.artikel-filter input[type="date"] { height: 44px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.kunden-auswahl .kf-kunde { flex: 1 1 260px; }
.kunden-auswahl .kf-kunde select { max-width: none; width: 100%; }
.kunden-schnell { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kunden-schnell .chip[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 600; }
.kunden-monate { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.km { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.km-balken { flex: 1 1 auto; width: 100%; max-width: 48px; display: flex; align-items: flex-end; }
.km-balken > span { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--muted); }
.km-balken > span.jung { background: var(--text); }
.km-x { font-size: 12px; color: var(--muted); }
@media print { .kunden-auswahl, .kunden-schnell { display: none; } }
/* Zeitungen: Zeitraum (Standard letzte 4 Wochen) */
.z-fenster { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.z-fenster > .hinweis { align-self: center; font-size: 13px; }
.z-frei { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.z-frei label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.z-frei input[type="date"] { height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
/* Baustein Zeitraum (07.11.2026, ansichten.js zeitraumWahl): Auswahlfeld in der Steuerzeile so hoch wie das Segment daneben */
.steuerung > .z-frei { align-self: flex-end; }
.steuerung .z-frei input[type="date"] { height: 48px; }
.steuer-wahl { height: 48px; min-width: 260px; max-width: 420px; padding: 0 10px; border: 1px solid var(--control); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
@media print { .z-fenster { display: none; } }
/* Zeitungen › Übersicht: weniger Rot (2026-10-06) – Felder neutral, nur die Zahl farbig; Reklamieren je Grossist */
.z-feld.rot, .z-feld.warn { background: var(--surface-3); border-color: var(--border); }
.z-feld.ok .z-feld-zahl { color: var(--text-2); font-weight: 500; }
.z-warnungen { color: var(--text-2); }
.z-reklam-uebersicht { margin-top: 12px; padding: 10px 0 0; }
/* Zeitungen: Objekt-Nr. als schmale erste Spalte (2026-10-06) */
.z-tabelle thead th:nth-child(1) { width: 110px; } .z-tabelle thead th:nth-child(2) { width: auto; } .z-tabelle thead th:nth-child(3) { width: 18%; }

/* Zeitungen › Gutschriften je Grossist (2026-10-06): Reklamieren im Kopf der Karte, schmale Spalten */
.z-kopf-knoepfe { margin: 0 0 0 auto; }
.z-gs th:nth-child(1), .z-gs th:nth-child(2) { width: 104px; } .z-gs th:nth-child(3) { width: 96px; }

/* Bestellvorschlag (2026-10-06): eine Zeile je Artikel – Vorschlag neben der Menge statt darunter */
.bestell-tabelle .menge { flex-wrap: nowrap; }
.bestell-tabelle .menge > [data-vorschlag] { flex-basis: auto; margin-left: 6px; padding: 0 4px; white-space: nowrap; }
.bestell-tabelle th[scope="row"], .bestell-tabelle td { vertical-align: middle; }

/* Rechnung einlesen: mehrere Lieferscheine zu einer Rechnung (2026-10-06) */
.rp-ls-wahl { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }
.rp-ls-wahl legend { padding: 0 4px; }

/* Artikel bearbeiten (2026-10-07): sechs Abschnitte untereinander, Rückfrage im Abschnitt */
.ab-seite .ab-block input:not([type="date"]):not([type="checkbox"]), .ab-seite .ab-block select { height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; min-width: 0; }
.ab-seite .ab-block input[type="date"] { height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.ab-seite .artikel-filter input[name="betrag"], .ab-seite .artikel-filter input[name="inhalt"] { width: 140px; }
.ab-seite .artikel-filter input[name="ean"] { width: 220px; }
.ab-seite .artikel-filter .ab-bez { flex: 1 1 260px; max-width: 460px; }
.ab-seite .artikel-filter .ab-bez input { width: 100%; }
.ab-seite td input[name="betrag"], .ab-seite td input[name="mb"] { width: 110px; }
.ab-seite td input[name="nr"] { width: 160px; }
.ab-seite td .knopf { white-space: nowrap; }
.ab-wert { margin: 0; font-size: 15px; }
.ab-wert strong { font-size: 20px; }
.ab-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 4px; }
.ab-frage span { flex: 1 1 260px; }
.ab-ok { margin: 0; color: var(--pos); font-weight: 600; }
.ab-ok::before { content: '✓ '; }
.ab-vorschlag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 4px; }
.ab-vorschlag span { flex: 1 1 260px; }
.ab-notiz label { display: block; }
.ab-notiz textarea { display: block; width: 100%; box-sizing: border-box; min-height: 120px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; line-height: 1.5; resize: vertical; }
.ab-notiz textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.ab-notiz .knopf-reihe { margin: 8px 0 0; }
.ab-notiz .hinweis[role="status"], .ab-notiz .fehlertext { margin: 8px 0 0; }
.ab-live { margin: 0; flex-basis: 100%; }
td .ab-live { display: block; margin-top: 4px; }
.ab-seite td input.ab-neu { outline: 2px solid var(--warn); outline-offset: -1px; background: var(--warn-bg); font-weight: 600; }
/* Ticket 183: Ändern direkt auf der Artikelseite – eng, zwei Spalten, Selteneres als Zeilen zum Aufklappen */
.ansicht-kennzahlen.eng { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ansicht-kennzahlen.eng .kz { padding: 8px 12px; }
.ansicht-kennzahlen.eng .kz-zahl { font-size: 21px; }
.verlauf.flach { height: 98px; }
.verlauf.flach .verlauf-balken { height: 72px; }
/* Ticket 220: Stückzahl über jedem Balken (Artikelseite) */
.verlauf.flach.mit-wert { height: 116px; }
.verlauf.flach.mit-wert .verlauf-balken { height: 90px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.verlauf.mit-wert .verlauf-balken span { flex: none; width: 100%; }
.verlauf-wert { font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 12px; align-items: start; }
.ab-raster > .ab-breit { grid-column: 1 / -1; }
.ab-raster .ansicht-block { padding: 10px 14px; gap: 8px; }
.ab-raster .abschnitt-kopf h2 { font-size: 16px; }
.ab-raster .hinweis { margin: 0; }
.ab-raster .ab-wert strong { font-size: 18px; }
.ab-raster .ab-verlauf summary { min-height: 32px; }
.ab-seite.ab-raster .ab-block input:not([type="checkbox"]), .ab-seite.ab-raster .ab-block select { height: 36px; }
/* Ticket 195: Lagerinfo als umbrechende Felder statt Tabelle – passt auch in die halbe Seite am Laptop */
.ab-la + .ab-la { padding-top: 10px; border-top: 1px solid var(--line); }
.ab-la-lager { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ab-la-lager b { display: flex; align-items: center; min-height: 36px; color: var(--text); font-size: 15px; font-weight: 600; }
.ab-la .ab-la-formel { flex: 1 1 220px; max-width: 360px; }
.ab-la .ab-la-formel select { width: 100%; max-width: none; }
.ab-seite .ab-la input[name="mb"], .ab-seite .ab-la input[name="hb"] { width: 112px; }
.ab-raster .ansicht-tabelle td, .ab-raster .ansicht-tabelle th { padding-top: 6px; padding-bottom: 6px; }
.ab-mehr { padding: 0; }
.ab-klappe + .ab-klappe { border-top: 1px solid var(--line); }
.ab-klappe > summary { display: flex; align-items: baseline; gap: 12px; min-height: 42px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ab-klappe > summary::-webkit-details-marker { display: none; }
.ab-klappe > summary::before { content: '›'; color: var(--muted); width: 10px; transition: transform .15s; }
.ab-klappe[open] > summary::before { transform: rotate(90deg); }
.ab-klappe-titel { font-weight: 600; flex: 0 0 150px; }
.ab-klappe-wert { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-klappe-inhalt { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px 36px; }
@media (max-width: 640px) { .ab-raster { grid-template-columns: 1fr; } .ab-klappe-titel { flex-basis: 110px; } }
.ab-verlauf summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--text-2); }
.ab-verlauf .plakette { font-size: 12px; padding: 1px 6px; }

/* ---------- Verkauf › Kassenabschluss: eine Datumsanzeige mit ‹ › und Kalender ---------- */
.ka-tagwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ka-tagwahl .knopf.quadrat { font-size: 20px; line-height: 1; }
.ka-datum { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.ka-datum:hover { border-color: var(--accent); }
.ka-datum .ico { color: var(--muted); }
section[aria-labelledby="ka-h"] .tf-feld { display: none; }
@media print { .ka-tagwahl .knopf, .ka-tagwahl .ka-datum .ico { display: none !important; } .ka-datum { border: 0; padding: 0; } }

/* ---------- Verkauf › Reservierungen (2026-10-08): Schritte Kunde/Artikel nebeneinander, Felder wie in der Kunden-Auswertung ---------- */
.ra-hinweis { margin: 0 0 4px; }
/* 07.11.2026: Schritte untereinander (vorher Kunde links, Artikel rechts) – Zeilen stehen direkt unter dem Scanfeld */
.ra-schritte { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.ra-schritt-spaeter .ra-schritt-kopf { color: var(--muted); font-weight: 500; }
.ra-schritt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ra-schritt-kopf { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.ra-schritt-kopf .kopf-zahlen { font-weight: 400; }
.ra-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.ra-schritt.fertig .ra-nr { background: var(--accent-fill); color: #FFFFFF; }
#ra-neu .artikel-filter input:not([type="checkbox"]) { height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; min-width: 0; }
#ra-neu .artikel-filter input[type="number"] { width: 90px; }
#ra-neu .artikel-filter select { max-width: none; width: 100%; }
.ra-gewaehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; min-height: 44px; padding: 4px 4px 4px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-3); }
.ra-gewaehlt .knopf { margin-left: auto; }
.ra-tage { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin: 0; padding: 0; border: 0; }
.ra-tage legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.artikel-filter .ra-tage label.chip { flex-direction: row; align-items: center; gap: 6px; padding: 0 14px; color: var(--text); font-size: 14px; cursor: pointer; }
.ra-tage label.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.ra-positionen { margin-top: 16px; }
.ra-blatt input.ra-menge { width: 5em; text-align: right; }
.ra-blatt tr.ra-voll th, .ra-blatt tr.ra-voll td { background: var(--accent-soft); }
.ra-blatt tr.ra-voll th { font-weight: 600; }
/* Reservierung bearbeiten: Karte mit Akzentrand, gestrichene Zeilen durchgestrichen, Knöpfe in der Liste nebeneinander */
#ra-neu.ra-bearbeiten { border-color: var(--accent); }
.ra-blatt tr.ra-weg th, .ra-blatt tr.ra-weg td.num { color: var(--muted); text-decoration: line-through; }
.ra-aktionen { white-space: nowrap; }
.ra-fuss {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Aufklappliste unter Kunden- und Scanfeld: liegt über der Karte (Rand in Feldfarbe, Schatten), damit sie sich auch im dunklen Design abhebt */
.ra-kombi { position: relative; max-width: 720px; }
.ra-treffer { display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); }
.ra-auswahl { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.ra-auswahl[hidden] { display: none; }
.ra-treffer-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ra-treffer-zeile:last-of-type { border-bottom: 0; }
.ra-treffer-zeile:hover, .ra-treffer-zeile:focus-visible, .ra-treffer-zeile.aktiv { background: var(--surface-2); }
.ra-treffer-zeile.aktiv { border-left-color: var(--text-2); }
.ra-treffer-name { font-weight: 500; min-width: 0; }
.ra-treffer-zeile > .muted { flex-shrink: 0; }
.ra-treffer-mehr { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); }

/* ---------- Verkauf › Kundenkonten (2026-10-08): Namen als Links, gewählter Kunde markiert, Eckdaten im Kontoauszug ---------- */
.ansicht-tabelle th[scope="row"] a.kk-name { font-weight: 600; color: var(--accent); }
.ansicht-tabelle th[scope="row"] a.kk-name:hover { color: var(--accent-hover); }
.ansicht-tabelle tr.kk-gewaehlt > * { background: var(--surface-2); }
.ansicht-tabelle tr.kk-gewaehlt > th { box-shadow: inset 3px 0 0 var(--text-2); }
.kk-ausgeglichen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.kk-ausgeglichen .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; text-decoration: none; }
.kk-ausgeglichen .chip.aktiv { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); font-weight: 600; }
.kk-eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 4px 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-3); }
.kk-eckdaten > div { padding: 10px 16px; border-left: 1px solid var(--line); min-width: 0; }
.kk-eckdaten > div:first-child { border-left: 0; }
.kk-eckdaten dt { font-size: 13px; color: var(--text-2); }
.kk-eckdaten dd { margin: 2px 0 0; display: flex; flex-direction: column; font-size: 20px; font-weight: 600; white-space: nowrap; }
.kk-eckdaten dd .hinweis { font-size: 13px; font-weight: 400; }
.ansicht-tabelle tr.kk-bezahlt td { color: var(--muted); }
.ansicht-tabelle tr.kk-bezahlt td.ton-auf { color: var(--pos); opacity: .8; }
.ansicht-tabelle tr.kk-trenner td { padding: 6px 12px; background: var(--surface-3); border-top: 2px dashed var(--border); font-size: 13px; font-weight: 500; color: var(--pos); }
#sr .knopf.klein { min-height: 32px; padding: 0 10px; font-size: 13px; margin-left: 6px; }
#sr .knopf.link { min-height: 32px; padding: 0; font-weight: 500; text-decoration: underline dotted; text-underline-offset: 3px; }
#sr .sr-eingabe, [data-kb-bz-zelle] .sr-eingabe { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#sr .sr-eingabe input, [data-kb-bz-zelle] .sr-eingabe input { min-height: 36px; }
@media print { .kk-ausgeglichen { display: none; } .ansicht-tabelle tr.kk-gewaehlt > * { background: none; box-shadow: none; } }

/* ---------- Einkauf › Zu viel auf Lager (2026-10-19): Lieferanten anklickbar, Kopf über den Artikeln des gewählten ---------- */
.zv-lieferanten tbody tr, .zv-lieferanten tfoot tr { cursor: pointer; }
.zv-lieferanten tbody tr:hover > * { background: var(--surface-3); }
.zv-lieferanten tr.kk-gewaehlt:hover > * { background: var(--surface-2); }
button.zv-lie { all: unset; cursor: pointer; font-weight: 600; color: var(--accent); }
button.zv-lie:hover { color: var(--accent-hover); text-decoration: underline; }
button.zv-lie:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
button.zv-lie[aria-pressed="true"] { color: var(--accent-dark); }
.zv-wahl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 8px 2px 0; scroll-margin-top: 12px; }
.zv-wahl h2 { margin: 0; font-size: 19px; }
.zv-wahl-knoepfe { margin-left: auto; display: flex; gap: 8px; align-items: baseline; }
/* Gruppen-Klappen: Klasse .wb-gruppe (Werbung) – seit 07.11.2026 auch hier; Neuheiten-Gruppe ohne offene Artikel ohne Pfeil */
.zv-gruppe-fertig { padding: 10px 2px 10px 24px; }

/* ---------- Verkauf › Kassenabschluss (2026-10-08): Gruppen- und Summenzeilen, Tage als Links, gewählter Tag markiert ---------- */
.ansicht-tabelle tr.ka-gruppe th { padding-top: 8px; padding-bottom: 8px; background: var(--surface-3); border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.ansicht-tabelle tbody tr.ka-gruppe:first-child th { border-top: 0; }
.ansicht-tabelle tr.ka-summe > * { font-weight: 600; border-top: 1px solid var(--border); }
.ansicht-tabelle th[scope="row"] a.ka-tag { font-weight: 600; color: var(--accent); }
.ansicht-tabelle th[scope="row"] a.ka-tag:hover { color: var(--accent-hover); }
.ansicht-tabelle tr.ka-gewaehlt > * { background: var(--surface-2); font-weight: 600; }
.ansicht-tabelle tr.ka-gewaehlt > th { box-shadow: inset 3px 0 0 var(--text-2); }
.ansicht-tabelle tr.ka-leer > * { color: var(--muted); }
/* Bons zu einem besonderen Vorgang (Kassenabschluss › Besondere Vorgänge): Bon und nächster Bon derselben Kasse nebeneinander */
.ansicht-tabelle th[scope="row"] .ka-vorgang { min-height: 32px; padding: 0; font-weight: 600; color: var(--accent); }
.ka-bons { padding: 12px 16px 16px; }
.ka-bon-paar { padding: 12px 0; border-top: 1px solid var(--line); }
.ka-bon-paar:first-of-type { border-top: 0; padding-top: 0; }
.ka-bon-kasse { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ka-bon-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.ka-bon { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ka-bon.leer { background: var(--surface-3); }
.ka-bon-titel { margin: 0 0 2px; font-size: 14.5px; }
.ka-bon .hinweis { margin: 0 0 6px; }
.ka-bon-tabelle { width: 100%; font-size: 13.5px; }
.ka-bon-tabelle tr.ka-markiert > * { background: var(--rot-bg); }
.ka-bon-tabelle .plakette { padding: 0 6px; font-size: 12px; white-space: nowrap; }
@media print { .ansicht-tabelle tr.ka-gewaehlt > * { background: none; box-shadow: none; } }
/* Restliche Punkte aus dem Durchgang (07.11.2026) */
/* Zahlungsarten: geteilter Balken Bar (grau) | Karte (blau) */
.za-geteilt { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.za-balken { flex: 1 1 auto; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.za-bar { background: var(--g-linie); } .za-karte { background: var(--g-blau); }
/* Renner & Penner: Zeilen anzeigen unter der Tabelle */
.rp-zeilen { display: flex; justify-content: flex-end; }
/* Dialog „Neuer Kunde“: Abschnitte ohne Kasten im Kasten, Seltenes zugeklappt */
#kd-form .ls-gruppe { margin: 0 0 6px; padding: 0; border: 0; }
#kd-form .ls-gruppe legend { padding: 0 0 4px; }
.kd-mehr { margin: 4px 0 8px; } .kd-mehr > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--text-2); }
.kd-mehr[open] > summary { margin-bottom: 6px; }
/* Berichte: Datenqualität als Liste nach Dringlichkeit */
.dq-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 2px 16px; }
.dq-liste a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.dq-liste a:hover { background: var(--surface-2); }
.dq-liste li[aria-current="true"] > a { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--text-2); font-weight: 600; }
.dq-liste .anzahl { min-width: 44px; height: 26px; font-size: 13.5px; }
/* Links auf Artikel in Tabellenzellen: dunkel, Unterstrich erst beim Darüberfahren (in den Berichten war jede Zeile unterstrichen) */
.ansicht-tabelle td a.kk-name { color: var(--text); text-decoration: none; font-weight: 500; }
.ansicht-tabelle td a.kk-name:hover { color: var(--accent-dark); text-decoration: underline; }
/* Bestellvorschlag: Menge ist die Spalte, in der gearbeitet wird – leicht getönt (Lager bleibt wie gewünscht hervorgehoben) */
.bv-md th.bv-menge, .bv-md td.bv-menge { background: color-mix(in srgb, var(--blue-soft) 70%, transparent); }
/* Kassiere: Felder sehen wie Text aus und werden beim Darüberfahren bzw. Anklicken zum Feld – 22 offene Felder wirkten wie ein Formular */
.ab-seite .ab-block .kas-tabelle input:not([type="checkbox"]):not(:focus), .kas-tabelle input:not(:focus) { border-color: transparent; background: transparent; }
.ab-seite .ab-block .kas-tabelle tr:hover input:not([type="checkbox"]):not(:focus), .kas-tabelle tr:hover input:not(:focus) { border-color: var(--control); background: var(--surface); }
.ab-seite .ab-block .kas-tabelle tr.kas-geaendert input:not([type="checkbox"]), .kas-tabelle tr.kas-geaendert input { border-color: var(--warn); background: var(--warn-bg); }
/* Kartenabgleich ohne Abrechnung: Ablagefläche */
.kz-ablage-leer { gap: 14px; }
.kz-ablage { width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--control); border-radius: 12px; background: var(--surface-3); color: var(--text); font-size: 15px; }
.kz-ablage:hover, .kz-ablage:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.kz-ablage-symbol { color: var(--text-2); } .kz-ablage-symbol svg { width: 28px; height: 28px; }
.kz-schritte { margin: 0; padding-left: 22px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
/* Buchhaltung: Konten des Steuerberaters fehlen = zu tun */
.hinweis.kb-offen { padding: 8px 12px; border-left: 4px solid var(--warn); border-radius: 0 8px 8px 0; background: var(--warn-bg); color: var(--warn); }
/* Kundenseite (Stufe 3, 07.11.2026, Muster _lokal/design-muster/kunde.html): Liste links mit Saldo, rechts alles zu einem Kunden */
.k-rahmen { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 950px) { .k-rahmen { grid-template-columns: minmax(0, 1fr); } }
.k-liste { padding: 12px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; max-height: calc(100vh - 140px); overflow-y: auto; }
.k-suche { height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.k-chips { display: flex; flex-wrap: wrap; gap: 6px; } .k-chips .chip { min-height: 32px; padding: 2px 12px; font-size: 13px; }
.k-chips .chip[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); font-weight: 600; }
.k-eintraege { list-style: none; margin: 0; padding: 0; }
.k-eintraege a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.k-eintraege a:hover { background: var(--surface-2); }
.k-eintraege li[aria-current="true"] > a { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--text-2); font-weight: 600; }
.k-eintraege .muted { font-size: 12.5px; font-weight: 400; }
.k-saldo { font-size: 13px; font-weight: 600; white-space: nowrap; } .k-saldo.offen { color: var(--warn); } .k-saldo.guthaben { color: var(--pos); }
.k-intern > summary { cursor: pointer; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.k-seite { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.k-seite > #ks-daten { display: flex; flex-direction: column; gap: 16px; }
.k-kopf .k-name { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.k-kontakt { font-size: 14px; color: var(--text-2); }
.k-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
.k-monat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 0 10px 10px 0; background: var(--warn-bg); border-left: 4px solid var(--warn); }
/* Artikel-Ansicht (Stufe 3, 07.11.2026, Muster _lokal/design-muster/artikel.html): Diagramm und Lieferungen oben, Bearbeiten in drei Reitern */
.art-oben { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .art-oben { grid-template-columns: minmax(0, 1fr); } }
.art-lief-liste { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.art-lief-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.art-lief-liste li:first-child { border-top: 0; }
.art-bestellt { margin: 0; font-size: 14px; }
.ab-reiter-karte { padding: 0; display: flex; flex-direction: column; }
.ab-reiter-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
/* Abschnitte im Reiter ohne eigenen Kartenrahmen – getrennt durch eine Linie */
.ab-panel > .ab-block.karte { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ab-panel > .ab-block + .ab-block, .ab-panel > .ab-mehr { border-top: 1px solid var(--line); }
.ab-panel > .ab-mehr { border-radius: 0; }
.ab-ek-neu { align-items: flex-end; justify-content: flex-start; }
.ab-ek-neu .ab-ek-lie { flex: 0 1 300px; } .ab-ek-neu .ab-ek-lie select { width: 100%; }
.ab-ek-neu [data-ab-live-ek] { flex-basis: 100%; }
.ab-schalter { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 14.5px; text-align: left; }
.ab-schalter i { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px; background: var(--control); transition: background .15s; }
.ab-schalter i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.ab-schalter[aria-checked="true"] i { background: var(--warn); }
.ab-schalter[aria-checked="true"] i::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .ab-schalter i, .ab-schalter i::after { transition: none; } }
/* Importe (Stufe 3, 07.11.2026): Liste zum Abhaken statt Kacheln */
.imp-liste ul { list-style: none; margin: 0; padding: 0; }
.imp-punkt { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.imp-punkt:first-child { border-top: 0; padding-top: 2px; }
.imp-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.imp-text span { font-size: 14px; color: var(--muted); }
.imp-punkt .anzahl { min-width: 52px; }
.imp-ok { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
/* Kassenabschluss (Stufe 3, 07.11.2026): Tagesabschluss als schmaler Kassenzettel, neben den besonderen Vorgängen; Abweichungen mit rotem Strich */
.ka-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .ka-raster { grid-template-columns: minmax(0, 1fr); } }
.ka-zettel th[scope="row"] { width: 60%; }
.karte.ka-abweichung { box-shadow: inset 4px 0 0 var(--rot), var(--schatten); }
.ansicht-tabelle tr.ka-abw > th { box-shadow: inset 3px 0 0 var(--rot); }
.ansicht-tabelle tr.ka-gewaehlt.ka-abw > th { box-shadow: inset 3px 0 0 var(--rot), inset 6px 0 0 var(--text-2); }

/* ---------- Verkauf › Zahlungsarten (2026-10-08): Kennzahlen oben, Summenzeile, Gutschriften im Minus ---------- */
.za-tabelle tfoot tr.ka-summe > * { background: var(--surface-3); }
.ansicht-tabelle tr.za-minus td.num:first-of-type { color: var(--neg); }

/* ---------- Verkauf › Umsatz Kasse/Kunden (2026-10-08): Namen zum Aufklappen als rote Links, Summenzeile ---------- */
.ansicht-tabelle th .tabelle-auf { color: var(--accent); font-weight: 600; }
.ansicht-tabelle th .tabelle-auf:hover { color: var(--accent-hover); }
.ansicht-tabelle tr.dl-zeile th .tabelle-auf { font-weight: 500; }
.ansicht-tabelle tfoot tr.ka-summe > * { background: var(--surface-3); }

/* ---------- Einkauf (2026-10-08): Leerzustand mit Haken, alte Belege hervorgehoben, Summenzeilen ---------- */
.leer-karte { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.leer-karte h2 { margin: 0; font-size: 16px; font-weight: 600; }
.leer-karte p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.leer-zeile { margin: 0; padding: 4px 0; color: var(--muted); font-size: 14px; }
/* Aufklappbares bekommt immer einen Pfeil (07.11.2026): ▸ zu, ▾ offen – vorher sah man den Abschnitten nicht an, dass sie aufgehen */
.z-mehr > summary::before, .z-beleg-kopf > span:first-child::before { content: ''; display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin: 0 10px 2px 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .12s; vertical-align: middle; }
.z-mehr[open] > summary::before, .z-beleg[open] > .z-beleg-kopf > span:first-child::before { transform: rotate(45deg); margin-bottom: 5px; }
@media (prefers-reduced-motion: reduce) { .z-mehr > summary::before, .z-beleg-kopf > span:first-child::before { transition: none; } }
/* Zugeklappte Karten ohne Leerraum unter der Kopfzeile (der verborgene Inhalt zählte im flex-gap mit) */
details.ansicht-block:not([open]) { gap: 0; }

/* ---------- Artikel › Lagerwert (2026-10-08): Stichtag im Kopf, Leerzustand vor dem Start ---------- */
.lw-stichtag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.lw-stichtag input[type="date"] { height: 44px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.lw-leer h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.lw-leer p { margin: 0 0 6px; font-size: 14.5px; }
.lw-laeuft { margin: 0 0 12px; }
/* Drucken: Artikel ohne EK nur am Bildschirm – in der Artikelliste stehen sie ohnehin mit „fehlt“ (Ticket 15.10.) */
@media print { .lw-stichtag, [data-lw-start], [data-lw-csv], [data-lw-tag], .lw-ohne-ek { display: none !important; } }

/* Ladeanzeige (format.js api, ansichten.js ansichtLaden): Balken oben, solange Daten kommen; auslösender Knopf dreht sich und ist gesperrt;
   eine Seite, die mit neuen Filtern lädt, bleibt blass stehen und nimmt keine Klicks an (nur die Reiter) */
body::after { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat; background-size: 40% 100%; }
html.laedt-daten body::after { opacity: 1; transition-delay: .15s; animation: ladebalken 1.2s ease-in-out infinite; }
@keyframes ladebalken { from { background-position: -60% 0; } to { background-position: 160% 0; } }
html.laedt-daten body, html.laedt-daten :is(a, button) { cursor: progress; }
.belegt { pointer-events: none; cursor: progress; }
button.belegt:disabled { opacity: .85; }
.belegt::after { content: ''; flex: 0 0 auto; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .7s linear infinite; }
.lade-rad { flex: 0 0 auto; width: 16px; height: 16px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.lade-hinweis { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--text-2); }
.lade-schicht { position: sticky; top: 8px; z-index: 5; height: 0; margin-bottom: -20px; display: flex; justify-content: center; overflow: visible; }
.lade-schicht .lade-hinweis { height: fit-content; padding: 9px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
#ansicht.wird-geladen > :not(.reiter):not(.lade-schicht) { pointer-events: none; user-select: none; opacity: .45; transition: opacity .15s .1s; }
@media (prefers-reduced-motion: reduce) { html.laedt-daten body::after { animation: none; background-size: 100% 100%; } .belegt::after, .lade-rad { animation-duration: 2s; } }
@media print { body::after, .lade-schicht { display: none; } }

/* Bestellvorschlag im Schema von MD Premium (2026-10-08): dichte Tabelle, Spalten sortierbar, Zeilen mit Menge hervorgehoben */
.bv-md { font-size: 13px; }
.bv-md th, .bv-md td { padding: 3px 6px; white-space: nowrap; vertical-align: middle; }
.bv-md th[scope="row"] { white-space: normal; min-width: 180px; }
.bv-md th[scope="row"] .plakette, .bv-md th[scope="row"] .chip-info { margin-left: 4px; }
.bv-md tbody tr:nth-child(even) { background: var(--surface-3); }
.bv-md tbody tr.rueckgang { background: var(--rueckgang-bg); }
.bv-md tbody tr.bv-drin { background: var(--accent-soft); }
/* Art.-Nr. und Bezeichnung bleiben beim seitlichen Scrollen links stehen (2026-10-19); Zellen brauchen dafür eine deckende Farbe */
.bv-erg-tabelle tbody tr { background: var(--surface); }
/* Feste Spalten links bis zur Bezeichnung (Ticket 107: Reihenfolge einstellbar, left setzt bvFestSetzen) */
.bv-erg-tabelle .bv-fest { position: sticky; left: 0; z-index: 1; }
.bv-erg-tabelle tbody .bv-fest { background: inherit; }
.bv-erg-tabelle .bv-bez { max-width: 280px; }
.bv-erg-tabelle .bv-fest.bv-bez { box-shadow: inset -1px 0 0 var(--border); }
.bv-erg-tabelle thead th.bv-fest { z-index: 3; }
.bv-spalten { margin: 6px 0; font-size: 13px; }
.bv-spalten summary { cursor: pointer; color: var(--text-2); width: max-content; }
.bv-spalten-inhalt { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); max-width: 460px; }
.bv-spalten-inhalt p { margin: 0 0 6px; }
.bv-spalten ol { margin: 0 0 8px; padding-left: 22px; }
.bv-spalten li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 1px 0; }
.bv-spalten .bv-sp-knoepfe { display: flex; gap: 4px; }
.bv-spalten .bv-sp-knoepfe .knopf { min-width: 28px; min-height: 0; height: 24px; padding: 0 6px; }
.bv-spalten .bv-sp-kw { display: block; margin-bottom: 6px; }
.bv-erg-tabelle tfoot .bv-fest-text { position: sticky; left: 6px; }
.bv-tabelle thead th.bv-lager { background: color-mix(in srgb, var(--text) 12%, var(--surface-2)); }
/* Zeile, deren Menge gerade bearbeitet wird (2026-10-19): kräftiger getönt, roter Rahmen, Bezeichnung fett */
.bv-md tbody tr:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.bv-md tbody tr:focus-within > * { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--text); }
.bv-md tbody tr:focus-within > th[scope="row"] { font-weight: 700; }
.bv-md .bv-nr { font-variant-numeric: tabular-nums; color: var(--text-2); }
.bv-md .bv-bnr { font-variant-numeric: tabular-nums; font-weight: 600; }
.bv-md .menge-feld { width: 56px; }
/* Lager hervorgehoben: getönte Spalte mit Rändern, Zahl fett – liegt über jeder Zeilenfarbe */
.bv-md .bv-lager { background: color-mix(in srgb, var(--text) 12%, transparent); border-left: 1px solid var(--control); border-right: 1px solid var(--control); font-weight: 700; font-size: 14px; color: var(--text); }
.bv-md .bv-lager .muted { font-weight: 400; }
/* Andere Lager (Ticket 66): umbrechen zwischen den Lagern, damit die Spalte schmal bleibt */
.bv-md .bv-lager .bv-andere-lager { display: block; font-size: 11px; line-height: 1.3; font-weight: 400; }
.bv-md .bv-lager .bv-andere-lager span { display: block; white-space: nowrap; }
/* Filterzeile unter den Spaltenköpfen (wie Autofilter in Excel); belegte Felder rot getönt */
.bv-md .bv-filter td { padding: 2px 3px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bv-md .bv-filter-feld { width: 100%; min-width: 44px; box-sizing: border-box; font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); }
.bv-md .bv-filter-feld.num { text-align: right; }
.bv-md .bv-filter-feld:not(:placeholder-shown) { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.bv-md tfoot th, .bv-md tfoot td { font-weight: 600; border-top: 1px solid var(--border); }

/* Verkauf › Kassiere (2026-10-08): Name und Anmeldecode direkt in der Tabelle */
.kas-tabelle th, .kas-tabelle td { vertical-align: middle; }
.kas-filter { width: fit-content; margin: 0 0 10px; }
.ab-seite .kas-tabelle input[name="name"] { width: 200px; }
.ab-seite .kas-tabelle input[name="code"], .ab-seite [data-kas-neu] input[name="code"] { width: 120px; }
.kas-tabelle tr.kas-geaendert > * { background: var(--warn-bg); }
.kas-tabelle tr.kas-geaendert input { border-color: var(--warn); }
.plakette.kas-offen { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-rand); }
.kas-leiste-platz:empty { display: none; }
/* Baustein feste Leiste unten (07.11.2026): „Übernehmen“ (Zählen) und „Buchen“ (Offene Inventur) bleiben am unteren Rand sichtbar,
   auch bei 800 Artikeln – vorher stand der Knopf ganz unten nach der Liste. Rechts Platz für die K-Nadel. Kassiere hat das schon (.kas-leiste).
   bottom −84 px: .ansicht hat unten 96 px Innenabstand (für die Nadel) – sonst klebte die Leiste 108 px über dem Rand. */
.iv-fuss { position: sticky; bottom: -84px; z-index: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-right: 96px; box-shadow: 0 -4px 20px rgba(0, 0, 0, .14), var(--schatten); }
.iv-fuss > .abschnitt-kopf { flex: 1 1 260px; margin: 0; }
.iv-fuss > .abschnitt-kopf h2 { font-size: 16px; }
.iv-fuss > p { flex-basis: 100%; margin: 0 !important; }
.iv-fuss > p:empty { display: none; }
@media print { .iv-fuss { position: static; box-shadow: none; } }
.kas-leiste-platz { position: sticky; bottom: 0; z-index: 2; margin-top: 10px; padding: 8px 0; background: var(--surface); }
.kas-leiste-platz p { margin: 0; }
.kas-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px;
  border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 4px; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); }
.kas-leiste-text { flex: 1 1 320px; }
.kas-leiste-text ul { margin: 4px 0 0; padding-left: 18px; }
.kas-leiste-text .fehlertext { margin: 6px 0 0; }
.kas-leiste-knoepfe { display: flex; gap: 8px; }
/* Artikel › Lager (public/lagerstamm.js); geänderte Zeile wie bei den Kassieren (.kas-geaendert) */
.lg-tabelle th, .lg-tabelle td { vertical-align: middle; }
.lg-tabelle input[name="name"] { width: 100%; min-width: 180px; max-width: 360px; }
.lg-tabelle tr.kas-geaendert > * { background: var(--warn-bg); }
.lg-tabelle tr.kas-geaendert input { border-color: var(--warn); }
.lg-neu .ls-felder { max-width: 680px; }
.lg-neu-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.lg-neu-fuss p { margin: 0; }

/* Einkauf › Lieferanten (2026-10-14): Stammdaten-Liste und Formular wie die MD-Maske (ID · Adresse · Kontakt · Auftrag) */
#ls-block .abschnitt-kopf .knopf { margin-left: auto; }
.ls-liste { max-height: 420px; overflow: auto; }
/* Ticket 178: unsere Kundennummer beim Lieferanten klein unter dem Namen */
.kundennr { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ls-liste .knopf.link { min-height: 32px; padding: 0; text-align: left; font-weight: 500; }
.ls-form { padding: 12px 16px 16px; }
.ls-form > .hinweis { margin: 0 0 10px; }
.ls-gruppe { margin: 0 0 12px; padding: 6px 12px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ls-gruppe legend { padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ls-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.ls-feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ls-feld.breit { grid-column: span 2; }
.ls-feld input, .ls-feld select { min-height: 40px; width: 100%; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.ls-feld input[readonly], .ls-feld select:disabled { background: var(--surface-2); }
.ls-fuss { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.ls-fuss .fehlertext { margin: 0 0 6px; }
@media (max-width: 560px) { .ls-feld.breit { grid-column: auto; } }

/* ---------- Verkauf › Kundenfrequenz (09.10.2026): Stunde × Wochentag, je dunkler desto mehr los ---------- */
.kf-tabelle td.kf-zelle { background: rgb(from var(--kf-farbe) r g b / var(--kf, 0)); }
.kf-tabelle td.kf-zelle.dunkel { color: #FFFFFF; }
.kf-tabelle td.kf-leer { color: var(--control); }
.kf-tabelle tr.kf-rand th, .kf-tabelle tr.kf-rand td { color: var(--muted); font-size: 13px; }
.kf-tabelle td.kf-summe { font-weight: 600; border-left: 1px solid var(--border); }
.kf-tabelle.kf-schmal { width: auto; min-width: min(100%, 420px); }
.kf-tabelle.kf-schmal td { min-width: 96px; }
/* Verkauf › Warenkorb: Artikelnamen dunkel (Regel „Rot nur für Marke, Hauptknopf und Fehler“), Klick zeigt, was dazu gekauft wird */
a.wk-art { color: var(--text); text-decoration: none; } a.wk-art:hover { color: var(--accent); text-decoration: underline; }
/* Artikel › Etiketten: Warenetiketten in Millimetern wie gedruckt (Vorschau am Bildschirm, Druck über druckeEinzeln mit eigenem @page) */
.et-format { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.et-format select, .et-format input { min-height: 36px; }
.et-format input { width: 64px; }
.et-anzahl { width: 64px; text-align: right; }
.et-tabelle tr.et-aus th, .et-tabelle tr.et-aus td { opacity: .55; }
.et-dazu { flex: none; margin: 0 0 10px; }
.et-vorschau { display: flex; flex-wrap: wrap; gap: 12px; }
.et-vorschau .et-etikett { outline: 1px dashed var(--border); }
.et-etikett { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .8mm 1.2mm; overflow: hidden;
  background: #FFFFFF; color: #000000; font-family: Arial, Helvetica, sans-serif; text-align: center; break-inside: avoid; }
.et-name { width: 100%; font-weight: 700; font-size: calc(var(--s, 1) * 7.5pt); line-height: 1.1; max-height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.et-code { display: flex; flex-direction: column; align-items: center; }
.et-ean { display: block; } .et-ean path { fill: #000000; }
.et-nr { font-size: calc(var(--s, 1) * 6pt); line-height: 1.1; letter-spacing: .5px; }
.et-plu { font-size: calc(var(--s, 1) * 10pt); font-weight: 700; }
.et-preis { font-weight: 700; font-size: calc(var(--s, 1) * 11pt); line-height: 1; white-space: nowrap; }
.et-etikett.gross .et-name { font-size: 9pt; } .et-etikett.gross .et-nr { font-size: 7pt; } .et-etikett.gross .et-preis { font-size: 15pt; }
.et-bogen { display: grid; box-sizing: border-box; width: 210mm; height: 297mm; overflow: hidden; break-after: page; }
/* Rolle: je Etikett eine Seite, mit Leerraum oben/unten (rand) als Innenabstand */
.et-seite { box-sizing: content-box; break-after: page; }
.et-bogen:last-child, .et-seite:last-child { break-after: auto; }
@media print { body.druck-einzeln #druck-einzeln:has(.et-rolle, .et-bogen) { margin: 0; padding: 0; font-size: inherit; } }
/* Artikel › Etiketten › Regaletiketten (wie RegEti-Vorlage „Unfried“): Name + großer Preis, Code 128 der Artikelnummer, Inhalt, Grundpreis, Infozeile */
.et-art { margin: 0 0 12px; width: fit-content; align-self: flex-start; }
.et-regal { box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto auto; column-gap: 1mm;
  padding: 1mm 1.5mm .8mm; overflow: hidden; border: .2mm solid #000000; background: #FFFFFF; color: #000000; font-family: Arial, Helvetica, sans-serif; break-inside: avoid; }
.er-name { grid-column: 1; grid-row: 1 / span 2; font-weight: 700; font-size: calc(var(--s, 1) * 8pt); line-height: 1.1; max-height: 3.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.er-preis { grid-column: 2; grid-row: 1; font-weight: 700; font-size: calc(var(--s, 1) * 18pt); line-height: 1; text-align: right; white-space: nowrap; }
.er-code { grid-column: 1 / span 2; grid-row: 3; } .er-code .et-ean { margin-left: -2.5mm; }
.er-nr { grid-column: 1; grid-row: 4; font-size: calc(var(--s, 1) * 6.5pt); line-height: 1.2; }
.er-inhalt { grid-column: 2; grid-row: 4; font-size: calc(var(--s, 1) * 6.5pt); line-height: 1.2; text-align: right; white-space: nowrap; }
.er-info { grid-column: 1; grid-row: 5; font-size: calc(var(--s, 1) * 6pt); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.er-grund { grid-column: 2; grid-row: 5; font-size: calc(var(--s, 1) * 6.5pt); line-height: 1.2; text-align: right; white-space: nowrap; }
.et-vorschau .et-regal { outline: 1px dashed var(--border); }
.et-etikett.eigen { justify-content: space-evenly; }
/* Probedruck: Rahmen an der Etikettenkante */
.et-probe .et-etikett, .et-probe .et-regal { outline: .2mm solid #000000; outline-offset: -.2mm; }
/* Formular eigene Etikettenformate */
.et-fm-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .et-fm-raster { grid-template-columns: minmax(0, 1fr); } }
.et-fm .segment { width: fit-content; }
.et-fm-haken { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.et-fm-haken label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.et-fm-h3 { margin: 6px 0 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.et-fm-bild { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; overflow: auto; }
.et-blatt { width: 150px; flex: none; }
.et-blatt rect { fill: none; stroke: var(--text-2); stroke-width: .6; }
.et-blatt .et-blatt-papier { fill: #FFFFFF; stroke: var(--border); stroke-width: 1; }
.et-fm-fuss { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.et-fm-weg { margin-left: auto; }
/* Formate ordnen (Ticket 211): eine Zeile je Format, Knöpfe rechts */
.et-ord { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.et-ord li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.et-ord-name { flex: 1 1 260px; min-width: 0; }
.et-ord-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.et-ord-std { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft, var(--surface-2)); color: var(--accent, var(--text)); font-size: 12px; font-weight: 600; }
.et-fm-weg.gefahr { border-color: var(--rot); color: var(--rot); }

/* ---------- Neue Reiter (2026-10-09): Eingabefelder in Tabellen und Auswahllisten wie die übrigen Felder, Artikel als rote Links ---------- */
.ansicht-tabelle input.iv-menge, .ansicht-tabelle input.zl-fehlt, .ansicht-tabelle input.rem-menge, .ansicht-tabelle input.rem-reserve, .ansicht-tabelle input.et-anzahl {
  height: 36px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; text-align: right; }
.ansicht-tabelle input.iv-menge:focus, .ansicht-tabelle input.zl-fehlt:focus, .ansicht-tabelle input.rem-menge:focus, .ansicht-tabelle input.rem-reserve:focus, .ansicht-tabelle input.et-anzahl:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
/* Remissionsliste: Mengen- und Reservefeld mit der Zahl in der ersten Zeile auf einer Linie (Soll, Geliefert …), auch bei mehrzeiligen Zellen */
.z-tabelle input.rem-menge, .z-tabelle input.rem-reserve { height: 32px; margin: -6px 0; }
#iv-hg, .et-format select, .et-format input { height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
a.wk-art { color: var(--accent); font-weight: 500; } a.wk-art:hover { color: var(--accent-hover); }

/* ---------- Verkauf › Journal-Analyse (2026-10-09): Filter links, Ergebnis rechts; unter 1150 px untereinander ---------- */
.ja { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.ja-seite, .ja-haupt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1150px) { .ja { grid-template-columns: minmax(0, 1fr); } }
.ja-klein-titel { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ja-feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ja-feld select, .ja-feld input, .ja-wahl select, .ja-gruppe input, .ja-speichern input { height: 40px; width: 100%; min-width: 0; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 400; }
.ja-feld.ja-aktiv select, .ja-feld.ja-aktiv input { border-color: var(--grau-marke); box-shadow: 0 0 0 1px var(--grau-marke); background: var(--surface-3); }
.ja-feld.ja-aktiv > span::after { content: ' ●'; color: var(--grau-marke); font-size: 10px; vertical-align: 1px; }
.ja-filter .hinweis.klein, .ja-gespeichert .hinweis.klein { margin-top: -4px; font-size: 12.5px; }
.ja-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ja-liste li { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ja-liste .knopf.link { min-height: 36px; text-align: left; font-weight: 400; }
.ja-weg { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.ja-weg:hover { background: var(--surface-2); color: var(--text); }
.ja-speichern { display: flex; gap: 8px; }
.ja-speichern .knopf { min-height: 40px; }
.ja-zeitraum + .kunden-schnell { margin-top: 10px; }
.ja-kz { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ja-kz .kz-zahl { font-size: 22px; }
.ja-reihe { gap: 12px 16px; align-items: flex-end; }
.ja-wahl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 170px; }
.ja-gruppe { display: grid; grid-template-columns: 14px minmax(110px, 200px) minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.ja-gruppe .knopf.quadrat { min-height: 40px; width: 40px; font-size: 18px; }
.ja-gruppen-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ja-gruppen-fuss .knopf { min-height: 40px; }
.ja-haken { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ja-haken input { width: 18px; height: 18px; accent-color: var(--grau-marke); }
.ja-farbe { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; flex: 0 0 auto; }
.ja-gruppe .ja-farbe { margin: 0; }
.ja-tabelle tr.ja-rest th, .ja-tabelle tr.ja-rest td { color: var(--text-2); }
.ja-tabelle tfoot tr.ja-gesamt th, .ja-tabelle tfoot tr.ja-gesamt td { font-weight: 400; color: var(--muted); border-top: 0; }
.ja-pivot td, .ja-pivot th { white-space: nowrap; }
.ja-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text-2); }
.ja-legende > span { display: inline-flex; align-items: center; }
/* 100-%-Säulen: Achse links, je Zeitraum eine Säule, 2 px Abstand zwischen den Teilen */
.ja-anteil-diagramm { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; height: 260px; }
.ja-achse { position: relative; height: calc(100% - 24px); font-size: 12px; color: var(--muted); }
.ja-achse span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.ja-saeulen { position: relative; display: flex; gap: 6px; height: 100%; overflow-x: auto; }
.ja-saeulen::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% - 24px); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); pointer-events: none; }
.ja-saeule { position: relative; }
.ja-saeule { flex: 1 1 0; min-width: 22px; max-width: 96px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.ja-stapel { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-bottom: 1px solid var(--control); }
.ja-stapel span { display: flex; align-items: center; justify-content: center; min-height: 0; font-size: 12px; font-weight: 600; color: #fff; overflow: hidden; }
.ja-stapel span:first-child { border-radius: 4px 4px 0 0; }
.ja-x { height: 24px; line-height: 24px; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ja-kontrolle { padding: 0; }
.ja-kontrolle summary { min-height: 44px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-weight: 500; }
.ja-kontrolle[open] summary { border-bottom: 1px solid var(--line); }
.ja-kontrolle .tablewrap { margin: 10px 16px 14px; }
.ja-linien svg { display: block; max-width: 100%; }
.ja-gitter { stroke: var(--line); stroke-width: 1; } .ja-gitter.null { stroke: var(--control); }
.ja-achsentext { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.ja-treffer { fill: transparent; } .ja-treffer:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.ja-minus { color: var(--rot); font-weight: 600; }
@media print { .ja { display: block; } .ja-seite, .ja-zeitraum, .ja .kunden-schnell, #ja-steuer .ja-gruppe, .ja-gruppen-fuss, [data-ja-csv] { display: none; } }

/* Rückmeldung an POSTRONIK (public/rueckmeldung.js): Beschriftung im Kopf wie „Neu laden“ erst auf breiten Bildschirmen */
#rueckmeldung-knopf .neu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1700px) { #rueckmeldung-knopf .neu-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.rm-arten { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.rm-arten label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); font-size: 14px; cursor: pointer; }
.rm-arten label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 500; }
.rm-arten input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rm-text { padding: 10px 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; resize: vertical; min-height: 120px; }
.rm-text:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.rm-meldung { margin: 8px 0 0; font-size: 14px; color: var(--danger); }
.rm-meldung:empty { display: none; }
/* Haken „Verbindungsprotokoll mitschicken“ im Ticket-Formular */
.rm-protokoll { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.rm-protokoll input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.rm-protokoll .hinweis { grid-column: 2; font-size: 13px; }
/* Anhänge im Ticket-Formular (Datei/Foto, Ziehen, Strg+V) und in „Meine Tickets“ */
.rm-anhaenge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; padding: 10px; border: 1px dashed var(--control); border-radius: 10px; }
.rm-anhaenge > .hinweis { font-size: 13px; }
#rm-form.rm-ziehen .rm-anhaenge { border-color: var(--accent); background: var(--surface-2); }
.rm-anhang-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex-basis: 100%; }
.rm-anhang-liste:empty { display: none; }
.rm-anhang-liste li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rm-anhang-liste img, .rm-anhang-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--border); object-fit: cover; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.rm-anhang-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-anhang-liste .muted { font-size: 13px; white-space: nowrap; }
.rm-anhang-liste .knopf.quadrat { margin-left: auto; width: 36px; min-height: 36px; }
.rm-ticket-anhaenge { margin: 6px 0 0; font-size: 13px; display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
/* Ticket: Punkt am Knopf bei neuer Antwort, Reiter im Dialog, „Meine Tickets“ */
#rueckmeldung-knopf { position: relative; }
#rueckmeldung-knopf.rm-neu::after { content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 2px var(--surface); }
.rm-reiter { padding: 0 16px; margin-bottom: 0; }
.rm-ohne-netz { margin: 0 0 12px; color: var(--warn); }
.rm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: min(60vh, 560px); overflow-y: auto; }
.rm-ticket { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.rm-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.rm-kopf .muted { font-size: 13px; }
.rm-stand { margin-left: auto; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.rm-stand.in-arbeit, .rm-stand.wartet { background: var(--warn-bg); color: var(--warn); }
.rm-stand.erledigt { background: var(--pos-bg); color: var(--pos); }
.rm-ticket-text { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-antwort { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--border); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; }
.rm-antwort.neu { border-left-color: var(--accent); }
.rm-antwort-kopf { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rm-antwort p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-neu-marke { margin-left: 4px; padding: 0 6px; border-radius: 8px; background: var(--accent-fill); color: #fff; font-size: 12px; }

/* ---------- Rot nur für Handlungsbedarf (Designbewertung 10.10.2026) ----------
   Rot bleibt für Frist, knapp, Fehler, aktiven Reiter, Fokus und den einen Hauptknopf. Links, Artikel-, Kunden- und Gruppennamen in Textfarbe. */
a { color: var(--text); text-decoration-color: var(--control); text-underline-offset: 2px; }
a:where(:hover) { color: var(--accent-dark); text-decoration-color: currentColor; } /* ohne Klassen-Gewicht: Reiter, Navigation und Knöpfe behalten ihre Farben */
.knopf.link, .zurueck, .knopf.pepi { color: var(--text); }
.knopf.link:hover, .zurueck:hover, .knopf.pepi:hover { color: var(--accent-dark); }
.tabelle-auf, .ansicht-tabelle th .tabelle-auf { color: var(--text); }
.ansicht-tabelle th[scope="row"] a.kk-name, .ansicht-tabelle th[scope="row"] a.ka-tag, a.wk-art { color: var(--text); }
.ansicht-tabelle th[scope="row"] a.kk-name:hover, .ansicht-tabelle th[scope="row"] a.ka-tag:hover, a.wk-art:hover { color: var(--accent-dark); }

/* ---------- Bestellvorschlag seit 11.10.2026: Start (Ausführen) → Ergebnisliste je Lieferant mit EK/VK-Summe → MD-Tabelle als Detail ----------
   Der Inhaltsrahmen ist durchsichtig (display: contents), damit die MD-Tabelle (.bv-rahmen) wie bisher die Höhe der Ansicht füllt. */
.bv-inhalt { display: contents; }
.bv-erg-tabelle th[scope="row"] { font-weight: 500; }
.bv-erg-tabelle tr.muted > * { color: var(--muted); }
/* Ticket 94: markierte Zeile (Orientierung wie in MD Premium) – auch über „rueckgang“, Rand links an der festen Spalte */
.bv-erg-tabelle tbody tr.bv-markiert { background: var(--g-blau-hell); }
.bv-erg-tabelle tbody tr.bv-markiert > :first-child { box-shadow: inset 3px 0 0 var(--g-blau); }
.bv-erg-tabelle tbody tr[data-bv-zeile] { cursor: default; }
.bv-erg-knoepfe { margin: 0; justify-content: flex-end; }
@media print { .bv-erg-knoepfe, [data-bv-detail], [data-verwaiste-weg] { display: none !important; } }

/* ---------- Bestellvorschlag: Lieferanten links nach Dringlichkeit, gewählter Lieferant rechts (Designbewertung 10.10.2026) ----------
   Beide Spalten scrollen in sich, die Seite füllt die Höhe; Tabellenkopf bleibt stehen, die Bestellleiste steht immer unten. */
#ansicht:has(.bv-rahmen) { padding-bottom: 16px; gap: 14px; }
.bv-rahmen { flex: 1 1 auto; min-height: 480px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; }
.bv-lieferanten, .bv-detail { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.bv-lie-kopf { padding: 12px 14px 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; border-bottom: 1px solid var(--line); }
.bv-lie-kopf h2 { font-size: 16px; }
.bv-lie-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; }
.bv-lie-fuss { padding: 2px 10px; border-top: 1px solid var(--line); }
.bv-stufe { margin: 12px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bv-lie { display: flex; flex-direction: column; gap: 1px; width: 100%; min-height: 52px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font-size: 13px; }
.bv-lie:hover { background: var(--surface-2); }
.bv-lie.gewaehlt { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--text-2); border-radius: 0 8px 8px 0; }
.bv-lie-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14.5px; font-weight: 600; }
.bv-lie-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-lie-name .muted { flex: 0 0 auto; font-weight: 400; }
.bv-drin { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; color: var(--pos); font-size: 12.5px; font-weight: 600; }
.bv-lie-zeile { color: var(--text-2); }
.bv-frist { color: var(--accent-dark); font-weight: 600; }
.bv-detail-kopf { padding: 14px 18px 10px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.bv-detail-kopf h2 { font-size: 18px; }
.bv-detail-kopf .steuer-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bv-detail-zeile { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13.5px; }
.bv-detail-zeile .knopf.link { min-height: 28px; }
.bv-trenner { color: var(--control); }
.bv-zeitraum { display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.bv-zeitraum select { min-height: 32px; }
#bestell-treffer { padding: 0 18px; }
#bestell-treffer:empty { display: none; }
.bv-tabelle { flex: 1 1 auto; min-height: 300px; overflow: auto; margin: 6px 18px 0; border: 1px solid var(--border); border-radius: 8px; }
.bv-tabelle .tablewrap { overflow: visible; margin: 0; border: 0; border-radius: 0; }
.bv-tabelle thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.bv-tabelle tfoot th, .bv-tabelle tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface); }
.bv-leer { margin: 14px; }
.bv-detail .bestell-werkzeuge { padding: 10px 18px 0; }
/* Kassenbildschirm und niedrige Fenster: schmalere Liste; die Hinweiszeile entfällt (Zähler stehen in der Lieferantenliste), damit die Tabelle Platz hat */
@media (max-width: 1279px) { .bv-rahmen { grid-template-columns: 272px minmax(0, 1fr); gap: 12px; } .bv-detail-kopf { padding: 10px 14px 6px; } .bv-tabelle { margin: 6px 14px 0; } .bv-detail .bestell-werkzeuge { padding: 8px 14px 0; } #bestell-treffer { padding: 0 14px; } }
@media (max-width: 1279px), (max-height: 820px) { #ansicht:has(.bv-rahmen) > .hinweis-zeile { display: none; } .bv-rahmen { min-height: 420px; } }
/* Ticket 24 (21.10.2026): auf niedrigen Bildschirmen blieb für die Bestellung nur eine Zeile, die Knöpfe unten waren abgeschnitten –
   Tabelle mindestens 300 px (oben), Kopf kompakt, Erklärtext weg (steht im Tooltip der Stufen); reicht es nicht, scrollt die rechte Spalte */
.bv-detail { overflow-y: auto; }
@media print { .bv-lieferanten, .bv-detail .bestell-werkzeuge, .bv-detail .segment { display: none !important; } .bv-rahmen, .bv-detail { display: block; overflow: visible; } .bv-tabelle { overflow: visible; margin: 0; border: 0; } .bv-tabelle thead th { position: static; } }
.bv-detail .bestell-suche { flex: 1 1 240px; }
/* Bestellvorschlag seit 14.10.2026: links Lieferanten mit Bestellvorlagen, rechts Warengruppen-Auswahl bzw. Bestellung mit Reserve-Stufe */
/* 19.10.2026: jeder Lieferant eine eigene Karte (Kopf getönt), Vorlagen darin als anklickbare Zeilen mit Pfeil */
.bv-lie-block { margin: 0 2px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.bv-lie-kopfzeile { position: relative; display: flex; flex-direction: column; gap: 1px; width: 100%; min-height: 52px; padding: 8px 34px 7px 12px; border: 0; border-radius: 0; background: var(--surface-2); color: var(--text); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.bv-lie-kopfzeile:hover { background: var(--accent-soft); }
.bv-lie-kopfzeile .bv-lie-name { display: flex; align-items: center; gap: 6px; }
.bv-lie-kopfzeile .bv-lie-titel { font-size: 15px; font-weight: 700; }
/* zugeklappt: Pfeil nach rechts; aufgeklappt: nach unten, Trennlinie zu den Vorlagen */
.bv-lie-kopfzeile .bv-pfeil svg { transition: transform .15s; }
.bv-lie-block.auf .bv-lie-kopfzeile { border-bottom: 1px solid var(--border); }
.bv-lie-block.auf .bv-lie-kopfzeile .bv-pfeil svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .bv-lie-kopfzeile .bv-pfeil svg { transition: none; } }
.bv-vorlage { position: relative; min-height: 48px; padding: 7px 34px 7px 12px; border-radius: 0; cursor: pointer; }
.bv-vorlage + .bv-vorlage { border-top: 1px solid var(--line); }
.bv-vorlage .bv-lie-name { font-size: 14px; font-weight: 600; }
.bv-vorlage:hover { background: var(--accent-soft); }
.bv-vorlage.gewaehlt { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--text-2); border-radius: 0; }
.bv-pfeil { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--muted); }
.bv-vorlage:hover .bv-pfeil, .bv-vorlage.gewaehlt .bv-pfeil { color: var(--accent); }
.bv-rechnen { color: var(--accent-dark); font-weight: 600; }
.bv-auswahl { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.bv-gruppen { margin: 0; padding: 10px 14px 12px; border: 1px solid var(--border); border-radius: 8px; }
.bv-gruppen legend { padding: 0 4px; font-weight: 600; }
.bv-hg { padding: 6px 0; border-top: 1px solid var(--line); }
.bv-hg:first-of-type { border-top: 0; }
.bv-hg-kopf { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.bv-hg-kopf input, .bv-wgr input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
.bv-wgr-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 2px 0 2px 28px; }
.bv-wgr { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; cursor: pointer; }
.bv-ausfuehren { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); }
.bv-ausfuehren p { margin: 0; }
.bv-vorlage-aendern summary { cursor: pointer; color: var(--text-2); min-height: 32px; display: flex; align-items: center; }
.bv-vorlage-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bv-start-wgr { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.bv-vorlage-form input { min-height: 40px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; width: 220px; }
.bv-stufe-wert { font-variant-numeric: tabular-nums; }
/* EK-Summe groß, VK-Summe klein und gedämpft darunter (Reserve-Stufen, Lieferantenliste, Vorschau) */
.bv-ekvk { display: flex; flex-direction: column; gap: 0; font-variant-numeric: tabular-nums; }
.bv-ekvk .bv-ek { color: var(--text); font-weight: 600; }
.bv-ekvk .bv-vk { color: var(--muted); font-size: 12px; }
.bv-ekvk-zeile { flex-direction: row; align-items: baseline; gap: 8px; }
.bv-ausfuehren .bv-ekvk-zeile { margin-top: 2px; font-size: 16px; }
.bv-lie-zeile .bv-ekvk-zeile { display: inline-flex; margin-left: 6px; }
.bv-lie-zeile .bv-ekvk-zeile .bv-ek { font-weight: 600; }
/* Eigene: Eingabe in der Kopfzeile wie die Namen der anderen Stufen, kein zweiter Fokusrahmen (die Karte zeigt die Auswahl) */
.bv-eigene { cursor: text; }
.bv-eigene-feld { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); }
.bv-eigene input { width: 2.6em; height: 24px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--control); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.bv-eigene input::-webkit-outer-spin-button, .bv-eigene input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bv-eigene input:focus, .bv-eigene input:focus-visible { outline: none; border-bottom-color: var(--accent); }
.bv-eigene:focus-within { background: var(--surface); }
/* Noch kein Lieferant gewählt bzw. wird gerechnet */
.bv-wahl-leer { padding: 18px; max-width: 560px; }
.bv-wahl-leer h2 { font-size: 18px; margin: 0 0 6px; }
.bv-laedt { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); }
.bv-laedt-punkt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--control); border-top-color: var(--accent); animation: bv-dreh 0.8s linear infinite; }
@keyframes bv-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bv-laedt-punkt { animation: none; } }
.bv-detail > .bv-tabelle { margin-top: 10px; }
.bv-detail > #bestell-treffer { padding: 0 18px; }
@media (max-width: 1279px) { .bv-auswahl, .bv-arbeitskopf { padding-left: 14px; padding-right: 14px; } .bv-fussleiste { padding: 8px 14px 10px; } }
@media print { .bv-stufen-kurz, .bv-arbeit-rechts, .bv-fussleiste, .bv-auswahl, .bv-lie-schiene { display: none !important; } }
/* Ticket 24: niedrige Bildschirme – Kopf der Auswahl kompakt (steht nach den Grundregeln, damit es greift) */
@media (max-height: 820px) {
  .bv-detail-kopf { padding: 8px 18px 4px; }
  .bv-md .menge-feld { height: 32px; }
}
/* Arbeitsansicht (02.11.2026, Wunsch nach Ticket 107): offene Bestellung = Lieferantenliste als schmale Leiste, eine Kopfzeile,
   Tabelle über die ganze restliche Höhe mit kompakten Zeilen, Knöpfe in einer Leiste unten */
.bv-lie-schiene, .bv-lie-zu { display: none; }
.bv-rahmen.bv-arbeit .bv-lie-zu { display: inline-flex; margin-left: auto; }
.bv-rahmen.links-zu { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.bv-rahmen.links-zu .bv-lie-kopf, .bv-rahmen.links-zu .bv-lie-liste, .bv-rahmen.links-zu .bv-lie-fuss { display: none; }
.bv-rahmen.links-zu .bv-lie-schiene { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bv-lie-schiene:hover { background: var(--surface-2); color: var(--text); }
.bv-lie-schiene > span:first-child { font-size: 18px; line-height: 1; }
.bv-lie-schiene-text { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
#ansicht:has(.bv-arbeit) > .hinweis-zeile { display: none; }
.bv-arbeitskopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 18px 6px; }
.bv-arbeitskopf h2 { margin: 0; font-size: 17px; white-space: nowrap; }
.bv-arbeitskopf .bv-zurueck { min-height: 32px; padding: 0 4px; margin-right: -6px; }
.bv-arbeit-termin, .bv-arbeit-extra { font-size: 13px; }
.bv-arbeit-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bv-stufen-kurz { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--surface-2); }
.bv-stufe-kurz { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.bv-stufe-kurz:hover { background: var(--surface); }
.bv-stufe-kurz .bv-stufe-wert { color: var(--text); font-weight: 600; }
.bv-stufe-kurz[aria-pressed="true"], .bv-stufe-kurz.bv-eigene.aktiv { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15), inset 0 0 0 1.5px var(--text-2); }
.bv-stufe-kurz.bv-eigene input { width: 2.2em; height: 22px; }
.bv-arbeit-summe { display: inline-flex; align-items: baseline; gap: 10px; padding-left: 12px; border-left: 3px solid var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-arbeit-summe b { font-size: 17px; font-weight: 700; }
/* „Spalten anordnen“ in der Kopfzeile: Knopf, die Liste klappt darunter auf und liegt über der Tabelle */
.bv-arbeitskopf .bv-spalten { position: relative; margin: 0; }
.bv-arbeitskopf .bv-spalten summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); }
.bv-arbeitskopf .bv-spalten-inhalt { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 380px; max-width: 80vw; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); background: var(--surface); }
.bv-detail > .bv-arbeitskopf + .bv-tabelle { margin-top: 4px; }
.bv-fussleiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 18px 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.bv-fussleiste .bestell-werkzeuge { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; }
.bv-fussleiste .bestell-suche { flex: 1 1 170px; min-width: 170px; }
.bv-fussleiste .knopf { min-height: 36px; padding-left: 10px; padding-right: 10px; }
.bv-fussleiste .bestell-suche .suche { height: 36px; min-height: 36px; }
.bv-fussleiste .bv-erg-knoepfe { margin: 0; }
.bv-detail > #bestell-treffer:not(:empty) { padding-top: 6px; }
.bv-rahmen.bv-arbeit .bv-md th, .bv-rahmen.bv-arbeit .bv-md td { padding-top: 1px; padding-bottom: 1px; }
.bv-rahmen.bv-arbeit .bv-md .menge-feld { height: 26px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.bv-rahmen.bv-arbeit .bv-md .bv-lager { font-size: 13.5px; white-space: nowrap; }
.bv-rahmen.bv-arbeit .bv-tabelle { min-height: 240px; }
/* Bezeichnung einzeilig (ganzer Name im Tooltip), damit jede Zeile gleich hoch bleibt; Knöpfe unten frei von der Kompass-Nadel (56 px, rechts unten) */
.bv-rahmen.bv-arbeit .bv-erg-tabelle th[scope="row"] { white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.bv-rahmen.bv-arbeit .bv-fussleiste { padding-right: 84px; }
/* Neuigkeiten von POSTRONIK (public/neuigkeiten.js): Beschriftung wie „Rückmeldung“ erst auf breiten Bildschirmen, ungelesene als Zahl am Knopf */
#neuigkeiten-knopf { position: relative; }
#neuigkeiten-knopf .neu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1700px) { #neuigkeiten-knopf .neu-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.ng-zahl { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
/* Fenster (neu 20.11.2026): Zeitleiste je Tag, jede Meldung eine Karte; Wege („Artikel › Im Minus“) und Knöpfe im Text hervorgehoben */
.rolle-dialog.ng-dialog { width: min(760px, 94vw); background: var(--surface); }
.ng-dialog .dialog-kopf { z-index: 2; padding: 14px 18px 12px 22px; }
.ng-dialog .dialog-kopf h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.ng-unterzeile { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ng-inhalt { padding: 20px 22px 26px; }
.ng-leer { margin: 0; padding: 28px 0; text-align: center; color: var(--muted); }
.ng-tag + .ng-tag { margin-top: 26px; }
.ng-tag-kopf { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 400; color: var(--muted); }
.ng-tag-kopf strong { font-size: 14px; font-weight: 600; color: var(--text); }
.ng-liste { position: relative; display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0 0 0 24px; }
.ng-liste::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: var(--border); }
.ng-eintrag { position: relative; padding: 16px 20px 18px; border: 1px solid var(--kachel-rand); border-radius: var(--radius); background: var(--surface-3); box-shadow: var(--schatten); }
.ng-eintrag::before { content: ''; position: absolute; left: -23px; top: 20px; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--control); border-radius: 50%; background: var(--surface); }
.ng-eintrag.ist-neu { border-left: 3px solid var(--accent-fill); }
.ng-eintrag.ist-neu::before { border-color: var(--accent-fill); background: var(--accent-fill); box-shadow: 0 0 0 3px var(--accent-soft); }
.ng-oben { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.ng-bereich { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ng-neu { margin-left: auto; padding: 2px 9px; border-radius: 10px; background: var(--accent-fill); color: #fff; font-size: 11.5px; font-weight: 600; }
.ng-titel { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text); }
.ng-text { max-width: 68ch; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.ng-text p, .ng-text ul { margin: 0 0 10px; overflow-wrap: anywhere; }
.ng-text ul { padding-left: 20px; }
.ng-text li + li { margin-top: 4px; }
.ng-text > :last-child { margin-bottom: 0; }
.ng-weg { padding: 1px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 500; white-space: nowrap; }
.ng-pfeil { margin: 0 4px; opacity: .65; }
.ng-knopf { padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text); font-size: .93em; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ng-text .ng-tipp { display: flex; gap: 10px; padding: 10px 14px; border: 1px solid var(--warn-rand); border-radius: 8px; background: var(--warn-bg); color: var(--text); }
.ng-tipp .ico { flex: none; margin-top: 2px; color: var(--warn); }
.ng-tipp b { color: var(--warn); font-weight: 600; }
@media (max-width: 560px) { .ng-inhalt { padding: 16px 14px 20px; } .ng-eintrag { padding: 14px 14px 16px; } }
/* Auswahlkarten in den Einstellungen (Start, Update-Stufe) – ursprünglich für die Inventurart gebaut */
.inventur-wahl { display: flex; flex-direction: column; gap: 8px; }
.inventur-art { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.inventur-art .klein { grid-column: 2; line-height: 1.3; }
.inventur-art:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* AVV-Annahme und Auswahl der Trafik (public/avv.js): Dialog nach der Anmeldung und Einstellungen › Programm › Datenschutz */
#avv-inhalt { padding: 14px 20px 20px; }
#avv-inhalt .feld-label input { width: 100%; max-width: 420px; box-sizing: border-box; height: 44px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
#avv-inhalt .knopf-reihe { margin-bottom: 4px; }
.avv-punkte { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.avv-punkte .inventur-art:has(input:disabled) { cursor: default; opacity: .75; }
.avv-auswahl > p { margin: 0 0 10px; line-height: 1.5; }
.avv-auswahl h3 { margin: 16px 0 4px; font-size: 15px; }
.avv-gelesen { display: flex; gap: 8px; align-items: baseline; margin: 4px 0 10px; font-weight: 500; cursor: pointer; }
.avv-text { max-height: 62vh; overflow: auto; margin-top: 10px; padding: 4px 16px 16px; border: 1px solid var(--border); border-radius: 8px; line-height: 1.55; font-size: 14px; }
.avv-text:focus { outline: none; }
.avv-text h1 { font-size: 19px; } .avv-text h2 { font-size: 17px; margin-top: 22px; } .avv-text h3 { font-size: 15px; margin-top: 16px; }
.avv-text table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 13px; }
.avv-text th, .avv-text td { border: 1px solid var(--border); padding: 5px 7px; vertical-align: top; text-align: left; }
.avv-text blockquote { margin: 8px 0 12px; padding: 6px 12px; border-left: 3px solid var(--border); }

/* Wareneingang per Foto (public/fotoeingang.js) */
.fe-dialog { width: min(980px, 96vw); }
.fe-vorschau { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0 0 12px; }
.fe-vorschau figure { margin: 0; }
.fe-vorschau img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.fe-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fe-wahl .knopf { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 72px; padding: 10px 14px; text-align: left; white-space: normal; }
.fe-wahl .knopf .klein { font-weight: 400; opacity: .9; }
@media (max-width: 640px) { .fe-wahl { grid-template-columns: 1fr; } }
.fe-kopf { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 10px; margin-bottom: 10px; }
.fe-kopf label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fe-kopf select, .fe-kopf input { min-height: 36px; }
@media (max-width: 640px) { .fe-kopf { grid-template-columns: 1fr; } }
.fe-fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.fe-foto { margin: 0; text-align: center; } .fe-bild { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.fe-foto img { max-width: 100%; max-height: 520px; width: auto; height: auto; display: block; border-radius: 8px; }
.fe-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fe-foto polygon { fill: color-mix(in srgb, var(--pos) 30%, transparent); stroke: var(--pos); stroke-linejoin: round; }
.fe-foto polygon.fe-unbekannt { fill: color-mix(in srgb, var(--neg) 30%, transparent); stroke: var(--neg); }
.fe-zeilen td { vertical-align: middle; }
.fe-zeilen input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.fe-menge { width: 80px; text-align: right; min-height: 32px; }
.fe-offen td { color: var(--muted); }
.fe-nachtragen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.fe-nachtragen label { font-size: 13px; color: var(--muted); }
.fe-nachtragen input { width: 220px; min-height: 36px; }

/* Verkauf › Humidor (16.10.2026, public/humidor.js): Zigarren-Cockpit mit fünf Teilen auf einer Seite */
.hm-seite .steuerung { margin-bottom: 12px; }
.hm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .hm-grid3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hm-grid2 { grid-template-columns: 1fr; } }
.hm-seite #hm-teil > * + * { margin-top: 12px; }
.hm-seite .karte.kz.hm-krit .kz-zahl { color: var(--neg); }
.hm-pruefung { font-size: 14px; } .hm-pruefung summary { cursor: pointer; color: var(--warn); font-weight: 600; } .hm-pruefung ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.hm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); }
.hm-liste li:first-child { border-top: 0; } .hm-liste li > .num { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; font-weight: 600; } .hm-liste li > .klein { grid-column: 1; grid-row: 2; }
.hm-liste li > .hm-name, .hm-liste li > span:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
.hm-balkenzeile { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px; } .hm-balkenzeile .hm-balken { flex: 0 0 120px; } .hm-balkenzeile .klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; } .hm-name:hover { color: var(--accent); text-decoration: underline; }
.hm-pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.hm-pill.hm-out, .hm-pill.hm-delisted { background: var(--rot-bg); color: var(--rot); } .hm-pill.hm-reorder, .hm-pill.hm-increase { background: var(--warn-bg); color: var(--warn); }
.hm-pill.hm-dead, .hm-pill.hm-phaseout, .hm-pill.hm-over, .hm-pill.hm-blocked { background: var(--blue-soft); color: var(--blue); } .hm-pill.hm-ok { background: var(--pos-bg); color: var(--pos); } .hm-pill.hm-reserve { background: var(--accent-soft); color: var(--accent-dark); }
.hm-abc { display: inline-block; min-width: 22px; text-align: center; font-size: 12.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.hm-abc-A { background: var(--accent); color: #fff; } .hm-abc-B { background: var(--accent-soft); color: var(--accent-dark); }
.hm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; } .hm-toolbar .hm-suche { flex: 1 1 260px; margin: 0; } .hm-toolbar select { min-height: 40px; }
.hm-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .hm-chips .chip { min-height: 34px; padding: 4px 12px; font-size: 13.5px; } .hm-chips .chip.aktiv { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); font-weight: 600; }
.hm-tabelle th.hm-sort button { border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; white-space: nowrap; } .hm-tabelle th[aria-sort="ascending"] button, .hm-tabelle th[aria-sort="descending"] button { color: var(--accent); }
.hm-menge { width: 86px; min-height: 36px; text-align: right; }
.klein-segment button { min-height: 34px; padding: 0 10px; font-size: 13px; }
.hm-chart { width: 100%; height: auto; display: block; margin: 4px 0; } .hm-chart text { font-size: 10px; fill: var(--muted); }
.hm-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); } .hm-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hm-abc-grid { align-items: center; }
.hm-sortiment { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 12px; align-items: start; } @media (max-width: 1000px) { .hm-sortiment { grid-template-columns: 1fr; } }
.hm-rechts { display: grid; gap: 12px; }
.hm-vorschlaege { display: grid; gap: 8px; } .hm-vorschlag { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.hm-vorschlag-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .hm-vorschlag-kopf .klein { margin-left: auto; }
.hm-preise { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.hm-gruende { display: flex; flex-wrap: wrap; gap: 4px; } .hm-grund { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.hm-dialog { width: min(820px, 96vw); } .hm-dialog-inhalt { padding: 12px 16px 16px; display: grid; gap: 10px; } .hm-dialog-inhalt h3 { font-size: 15px; margin: 4px 0 2px; } .hm-dialog-inhalt p { margin: 0; }
.hm-dialog p.hm-grund { font-size: 14.5px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.hm-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; } .hm-fakten > div { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); } .hm-fakten b { color: var(--text); font-size: 14.5px; }
.hm-markierung { padding-top: 8px; border-top: 1px solid var(--border); } .hm-markierung-felder { display: grid; gap: 8px; margin-top: 8px; } .hm-markierung-felder label { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.hm-notiz textarea { flex: 1 1 100%; min-height: 48px; font: inherit; }
.hm-factsheet { padding-top: 8px; border-top: 1px solid var(--border); display: grid; gap: 8px; } .hm-fs-kopf { display: flex; align-items: center; gap: 8px; }
.hm-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: 14px; } .hm-dl dt { color: var(--muted); } .hm-dl dd { margin: 0; }
.hm-punkte { letter-spacing: 1px; color: var(--accent); } .hm-punkte i { font-style: normal; color: var(--border); }
.hm-noten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 10px; align-items: center; font-size: 13.5px; margin: 4px 0; } .hm-noten .hm-balken { max-width: 220px; }
.hm-drittel { margin: 4px 0; padding-left: 20px; font-size: 14px; display: grid; gap: 2px; }
.hm-geschmack { display: grid; gap: 4px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.hm-bewertungen { display: flex; flex-wrap: wrap; gap: 6px; } .hm-bewertungen a, .hm-bewertungen > span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.hm-score { font-weight: 700; color: var(--accent); } .hm-tipp { padding: 6px 10px; border-left: 3px solid var(--pos); font-size: 14px; }
.hm-links { display: flex; flex-wrap: wrap; gap: 6px; } .hm-links a { font-size: 13.5px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); }
@media print { .hm-seite .steuerung, .hm-toolbar, .hm-chips, .hm-pruefung { display: none; } }

/* ---------- Zeitungen › Übersicht: Kennzahlen wie im Cockpit, darunter „Zu tun“ (22.10.) ---------- */
.z-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
@media (max-width: 1100px) { .z-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .z-kacheln { grid-template-columns: 1fr; } }
.ansicht-block.zutun { padding: 14px 18px 8px; }

/* ---------- Zeitungen: eine Ausgabe im Fenster (public/ausgabe.js, 21.10.) ---------- */
.ansicht-tabelle tr[data-ausgabe] { cursor: pointer; }
.ansicht-tabelle tr[data-ausgabe]:hover > *, .ansicht-tabelle tr[data-ausgabe]:focus-visible > * { background: var(--surface-2); }
.za-dialog { width: min(920px, 96vw); }
.za-inhalt { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.za-fakten { margin: 0; color: var(--text-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.za-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.za-zahl { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.za-zahl b { font-size: 20px; font-variant-numeric: tabular-nums; }
.za-zahl span { color: var(--text-2); font-size: 13px; }
.za-hinweise { margin: 0; padding-left: 18px; color: var(--accent-dark); }
.za-inhalt h3 { margin: 4px 0 6px; font-size: 15px; }
.za-inhalt tr.za-diese > * { font-weight: 600; }
.za-bons { color: var(--text-2); font-size: 13px; }

/* ---------- Einkauf: Bestellung bzw. Lieferschein öffnen und bearbeiten (public/einkaufsbeleg.js, 19.10.) ---------- */
.ansicht-tabelle tr.eb-zeile { cursor: pointer; }
.ansicht-tabelle tr.eb-zeile:hover > * { background: var(--surface-2); }
/* ---------- Baustein Tabellen (07.11.2026) ----------
   Knöpfe in Tabellenzeilen 36 px, Links 32 px hoch (statt 44) – die Zeilen werden ein Drittel niedriger, WCAG 2.2 AA verlangt 24 px.
   Leere Spalten blendet ansichten.js aus (leereSpaltenAusblenden). Zeilen-Aktionen wie „Öffnen ›“ erscheinen beim Darüberfahren, die Zeile ist klickbar. */
.ansicht-tabelle .spalte-leer { display: none; }
.ansicht-tabelle .knopf { min-height: 36px; }
.ansicht-tabelle .knopf.link { min-height: 32px; }
.ansicht-tabelle .plakette { white-space: nowrap; }
.ansicht-tabelle tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
@media (hover: hover) {
  .ansicht-tabelle tr.eb-zeile:not(:hover):not(:focus-within) > td.rechts > .knopf.link,
  .ansicht-tabelle tr:not(:hover):not(:focus-within) .zeile-aktion { opacity: 0; }
}
.eb-dialog { width: min(980px, 96vw); }
.eb-inhalt { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.eb-zahlen { margin: 0; color: var(--text-2); font-size: 14px; }
.eb-tabelle input.eb-menge { width: 6em; height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; text-align: right; }
.eb-tabelle select { height: 40px; padding: 0 8px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.eb-tabelle tr.eb-geaendert > th, .eb-tabelle tr.eb-geaendert > td { background: var(--accent-soft); }
.eb-tabelle input.eb-ek { width: 7em; }
.eb-ek-hinweis { display: block; margin-top: 2px; }
.eb-caption { caption-side: top; text-align: left; padding: 0 0 6px; font-weight: 600; }
.eb-suche input { height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
.eb-erledigt summary { cursor: pointer; min-height: 32px; }
.eb-fuss { margin-top: 4px; }
/* Bestellung senden (per Mail / Bestellprogramm) – im Bestellfenster und in der Quittung nach „In MD Premium anlegen“ */
.eb-senden { margin: 8px 0 4px; align-items: center; }
.bm-senden { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.bm-senden p { margin: 0 0 8px; }
.bm-senden p:last-child { margin: 8px 0 0; }
.eb-frage { flex: 1 1 100%; padding: 10px 14px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface-2); }
.eb-lw-wahl { flex: 1 1 100%; display: grid; gap: 8px; }
.eb-frage p { margin: 0 0 4px; } .eb-frage ul { margin: 0; padding-left: 18px; }

/* ---------- Rückfrage vor Buchungen (rueckfrage in format.js, Review 23.10.2026) ---------- */
.rueckfrage-inhalt { padding: 18px 20px 16px; display: grid; gap: 10px; }
.rueckfrage-inhalt h2 { font-size: 17px; line-height: 1.35; margin: 0; }
.rueckfrage-inhalt p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.rueckfrage-inhalt .knopf-reihe { margin-top: 6px; justify-content: flex-start; }

/* ---------- Produktbild aus dem ZAS (artikelBild in format.js, seit 24.10.2026): klein in Listen, größer im Seitenkopf; erst sichtbar, wenn geladen ---------- */
.artbild-feld { display: none; flex: none; width: 44px; height: 44px; margin-right: 10px; vertical-align: middle; border: 1px solid var(--border); border-radius: 6px; background: #fff; overflow: hidden; align-items: center; justify-content: center; }
.artbild-feld.da { display: inline-flex; }
.artbild-feld img { max-width: 100%; max-height: 100%; object-fit: contain; }
.artbild-feld.gross { width: 96px; height: 96px; margin-right: 0; }
.an-form > .artbild-feld.gross { margin-bottom: 12px; }
.artbild-zeile { display: flex; align-items: center; gap: 10px; }
.artbild-zeile > .artbild-feld { margin-right: 0; }
.artbild-zeile > span:last-child { min-width: 0; }

/* ---------- Einstellungen › Protokoll (24.10.2026): Filterzeile und Tabelle im Einstellungen-Dialog ---------- */
.prot-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 8px; }
.prot-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.prot-tabelle { font-size: 13px; }
.prot-tabelle td.nowrap { white-space: nowrap; }
.prot-tabelle tr.prot-fehler td { color: var(--text-2); }
/* Einstellungen › Provisionen (Ticket 74) */
.prov-tabelle { font-size: 13px; }
.prov-feld { width: 5em; text-align: right; }

/* ---------- Hilfe-Dialog (24.10.2026): Anleitung im Dialog, Kapitelwahl, Abläufe für den Assistenten ----------
   Seit 07.11.2026 Lesemodus über das ganze Fenster (Nutzer: „wenn man die Anleitung öffnet, kann das eigentlich das Vorhandene überdecken,
   so dass man da leicht lesen kann“): links immer die Kapitel, rechts der Text in Lesebreite; schmal (unter 900 px) Kapitel als Klappliste. */
.rolle-dialog.hilfe-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; flex-direction: column; background: var(--surface); }
.hilfe-dialog[open] { display: flex; } /* nur offen: ohne [open] bliebe der Dialog nach close() sichtbar */
.hilfe-dialog .dialog-kopf { flex: 0 0 auto; padding: 10px 24px; }
.hilfe-dialog .dialog-kopf h2 { font-size: 18px; margin: 0; }
.hilfe-kopf-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.hilfe-wahl { display: none; gap: 8px; align-items: center; font-size: 14px; }
.hilfe-koerper { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.hilfe-seite { border-right: 1px solid var(--border); background: var(--surface-2); overflow: auto; padding: 12px 10px 16px; display: flex; flex-direction: column; gap: 12px; }
.hilfe-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: kap; }
.hilfe-nav li { counter-increment: kap; }
.hilfe-nav a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.hilfe-nav a::before { content: counter(kap); min-width: 1.6em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hilfe-nav a:hover { background: var(--surface); }
.hilfe-nav a[aria-current="true"] { background: var(--surface); color: var(--accent-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--rot, #ED1C24); }
.hilfe-nav a[aria-current="true"]::before { color: var(--rot, #ED1C24); }
.hilfe-stand { margin: auto 10px 0; }
.hilfe-inhalt { overflow: auto; padding: 8px 40px 48px; min-height: 0; line-height: 1.6; font-size: 16px; }
.hilfe-inhalt:focus { outline: none; } /* bekommt beim Öffnen den Fokus, damit die Tasten gleich scrollen */
.hilfe-inhalt > * { max-width: 760px; /* feste Breite statt ch: sonst wären Überschriften breiter als der Text */ margin-left: auto; margin-right: auto; }
.hilfe-inhalt h2 { font-size: 22px; margin-top: 32px; margin-bottom: 6px; padding-top: 20px; border-top: 1px solid var(--border); scroll-margin-top: 8px; }
.hilfe-inhalt h2:first-of-type { border-top: 0; margin-top: 12px; }
.hilfe-inhalt h2 .nr { color: var(--rot, #ED1C24); margin-right: 8px; }
.hilfe-inhalt .weg { color: var(--text-2); font-size: 14px; margin-top: 0; margin-bottom: 10px; }
.hilfe-inhalt .weg b { color: var(--text); font-weight: 600; }
.hilfe-inhalt figure { margin-top: 12px; margin-bottom: 0; }
.hilfe-inhalt figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.hilfe-inhalt figcaption { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.hilfe-inhalt nav.inhalt { display: none; background: var(--surface-2); border-radius: 8px; padding: 10px 18px; } /* links steht die Kapitelliste */
.hilfe-inhalt nav.inhalt ol { columns: 2; margin: 6px 0; }
.hilfe-inhalt nav.inhalt a { color: var(--text); }
.hilfe-inhalt .tipp { border-left: 3px solid var(--rot, #ED1C24); background: var(--surface-2); padding: 8px 14px; margin-top: 12px; margin-bottom: 12px; }
/* Seit 27.10.2026 (Anleitung neu): Zwischenüberschriften, Teile, Tabellen und die Zeichen „schreibt in MD“ / „KI“ */
.hilfe-inhalt h3 { font-size: 17px; margin-top: 20px; margin-bottom: 4px; }
.hilfe-inhalt .teil { margin-top: 40px; margin-bottom: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rot, #ED1C24); }
.hilfe-inhalt .md, .hilfe-inhalt .ki { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.hilfe-inhalt .md { background: var(--rot-bg); color: var(--rot); }
.hilfe-inhalt .ki { background: var(--blue-soft); color: var(--blue); }
.hilfe-inhalt table { border-collapse: collapse; width: 100%; margin-top: 8px; margin-bottom: 14px; font-size: 14px; }
.hilfe-inhalt th, .hilfe-inhalt td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.hilfe-inhalt th { background: var(--surface-2); font-weight: 600; }
.hilfe-inhalt code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
.hilfe-inhalt kbd { font-size: 12px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: var(--surface); }
/* Abläufe für den Assistenten: links unter den Kapiteln, zugeklappt – der Text bekommt die ganze Höhe */
.hilfe-themen { border-top: 1px solid var(--border); padding: 10px 6px 0; }
.hilfe-themen summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 2px 4px; }
.hilfe-themen p { margin: 6px 4px 0; }
.hilfe-chips { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; }
.hilfe-chips .knopf { font-size: 13px; justify-content: flex-start; text-align: left; white-space: normal; }
@media (max-width: 900px) {
  .hilfe-koerper { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .hilfe-seite { order: 2; border-right: 0; border-top: 1px solid var(--border); max-height: 30vh; padding-top: 0; }
  .hilfe-nav, .hilfe-stand { display: none; }
  .hilfe-wahl { display: flex; }
  .hilfe-inhalt { padding: 8px 16px 32px; }
}
/* Automat befüllen (Ticket 58, public/automatenumbuchung.js): Knöpfe und Rückfrage bleiben unten sichtbar, auch bei 100+ Artikeln im Automaten */
.au-dialog .eb-fuss { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); z-index: 1; }
/* Verkauf › Werbung (public/werbung.js, Ticket 191): Folien als Karten; Fenster „Folie gestalten“ mit Live-Vorschau links, Leiste rechts */
.wb-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wb-karte { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.wb-karte-bild { aspect-ratio: 1464 / 1044; background: #101318; display: flex; align-items: center; justify-content: center; }
.wb-karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-karte-bild.wb-ohne-bild { background: var(--surface-2); color: var(--muted); flex-direction: column; text-align: center; padding: 12px; gap: 4px; }
.wb-ohne-bild p { margin: 0; }
.wb-karte-text { padding: 10px 12px 12px; display: grid; gap: 6px; font-size: 14px; align-content: start; }
.wb-wirkung { margin: 0; font-weight: 600; }
.wb-mehr summary, .wb-frueher > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.wb-frueher { margin-top: 14px; } .wb-frueher > summary { margin-bottom: 10px; font-size: 14px; }
.wb-mehr dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 6px 0 0; font-size: 13px; }
.wb-mehr dt { color: var(--muted); } .wb-mehr dd { margin: 0; }
.wb-gruppe { border-top: 1px solid var(--line); }
.wb-gruppe > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; list-style: none; }
.wb-gruppe > summary::-webkit-details-marker { display: none; }
.wb-gruppe > summary::before { content: '▸'; color: var(--muted); width: 12px; transition: transform .15s; }
.wb-gruppe[open] > summary::before { transform: rotate(90deg); }
.wb-gruppe-name { font-weight: 600; }
.wb-gruppe[open] > summary { padding-bottom: 6px; }
.wb-gruppe > .tablewrap { margin-bottom: 12px; }
.wb-dialog { width: min(1180px, 96vw); max-height: 94vh; }
.wb-schritte { color: var(--muted); } .wb-schritte b { color: var(--text); }
.wb-inhalt { padding: 14px 16px 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.wb-inhalt.zwei { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr); }
@media (max-width: 860px) { .wb-inhalt, .wb-inhalt.zwei { grid-template-columns: 1fr; } }
.wb-folie { aspect-ratio: 1464 / 1044; width: 100%; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: #101318; }
.wb-elemente { margin-bottom: 14px; }
.wb-elemente button { min-height: 34px; padding: 0 8px; font-size: 13px; }
.wb-feld .segment button { min-height: 34px; padding: 0 12px; }
.wb-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.wb-etikett { min-width: 56px; font-size: 13px; color: var(--muted); }
.wb-farben { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-farben button { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--control); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.wb-farben button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.wb-farben button:disabled { opacity: .35; cursor: not-allowed; }
.wb-farben button:disabled::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--text); transform: rotate(45deg); }
.wb-haken { display: block; margin: 0 0 12px; }
.wb-warn { border: 0; padding: 10px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wb-warn legend { padding: 0; color: var(--muted); }
.wb-fuss { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); z-index: 1; }
.wb-fuss > p { flex: 1; } .wb-fuss .knopf-reihe { flex-wrap: nowrap; flex-shrink: 0; }
.wb-ausloeser { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.wb-ausloeser li { padding: 4px 8px; border-top: 1px solid var(--line); font-size: 14px; }
.wb-ausloeser li:first-child { border-top: 0; }
/* Ticket 122: „−1“ neben dem Zählstand beim Hefte scannen – klein, nur sichtbar wenn etwas gescannt ist */
.zl-gescannt { white-space: nowrap; }
.zl-gescannt .knopf.klein { min-height: 26px; padding: 0 8px; font-size: 13px; margin-left: 6px; vertical-align: middle; }
/* Ticket 224: Gutschriften prüfen – Spaltenüberschriften bleiben beim Scrollen oben stehen (wie im Bestellvorschlag).
   Die Tabelle scrollt in .ansicht (20px Innenabstand oben → top: -20px); overflow-x: clip statt auto, sonst wäre .tablewrap der Scroll-Rahmen */
.tablewrap:has(> table.z-gs) { overflow-x: clip; }
.z-gs thead th { position: sticky; top: -20px; z-index: 2; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }
/* Ticket 224: Einstellungen › Programm-Update – frühere „Was ist neu“-Texte */
.was-ist-neu { margin-top: 12px; }
.was-ist-neu summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.was-ist-neu-liste { max-height: 320px; overflow-y: auto; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.wn-version h4 { margin: 10px 0 2px; font-size: 14px; }
.wn-version .wn-art { margin: 6px 0 0; font-weight: 600; }
.wn-version ul { margin: 2px 0 6px; padding-left: 18px; }
/* Kompass online: „So geht es weiter“ nach der ersten PIN (public/bedienung.js, willkommenDialog) */
.willkommen ol { margin: 12px 0 16px; padding-left: 22px; display: grid; gap: 10px; }
.willkommen li::marker { color: var(--accent); font-weight: 600; }
/* Kurze Einführung in Kompass online (public/tour.js): Schleier über allem, ein hervorgehobener Bereich, daneben die Karte mit dem Text */
.tour-schleier { position: fixed; inset: 0; z-index: 60; }
.tour-loch { --tour-dunkel: rgba(20, 20, 22, .55); position: fixed; border-radius: var(--radius); outline: 2px solid var(--accent); box-shadow: 0 0 0 200vmax var(--tour-dunkel); transition: left .2s, top .2s, width .2s, height .2s; pointer-events: none; }
.tour-karte { position: fixed; width: min(360px, calc(100vw - 16px)); padding: 14px 16px 12px; border-radius: var(--radius); background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--schatten); }
.tour-karte h3 { font-size: 16px; margin-bottom: 6px; }
.tour-karte p { margin: 0 0 12px; color: var(--text-2); }
.tour-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tour-knoepfe { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tour-knoepfe .knopf { min-height: 38px; }
@media (prefers-reduced-motion: reduce) { .tour-loch { transition: none; } }
/* Handbuch in Kompass online (public/handbuch.js): Fenster über die ganze Fläche, darin die Handbuch-Seite in einem Rahmen */
.rolle-dialog.handbuch-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; flex-direction: column; background: var(--surface); }
.handbuch-dialog[open] { display: flex; }
.handbuch-dialog .dialog-kopf { flex: 0 0 auto; padding: 10px 24px; }
.handbuch-dialog .dialog-kopf h2 { font-size: 18px; margin: 0; }
.handbuch-rahmen { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; }

/* ---------- Handy (bis 640 px) – Kompass online am Telefon, 23.11.2026 ---------- */
@media (max-width: 640px) {
  /* Kopfzeile in zwei Zeilen: oben Marke und Knöpfe, darunter das Hauptmenü über die ganze Breite (seitlich wischen).
     Ohne das drückten die Knöpfe das Menü auf Breite 0 und die Seite wurde breiter als der Bildschirm. */
  .kopf { flex-wrap: wrap; gap: 2px 8px; padding: 6px 12px 9px; }
  .kopf .nav { order: 3; flex: 1 1 100%; }
  /* Benutzerknopf nur als Symbol – Trafik, Mandant und Benutzer stehen im Menü darunter; der Text bleibt für Vorleseprogramme */
  #rolle-knopf .rolle-zeilen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menue { max-width: calc(100vw - 24px); }
  /* Heute zu tun: Text bekommt die erste Zeile, die Knöpfe rutschen darunter */
  .zutun li { flex-wrap: wrap; row-gap: 6px; }
  .zutun-text { flex: 1 1 0; min-width: 60%; }
  .zutun-knoepfe { margin-left: auto; }
  /* Felder im Cockpit: der Titel bleibt lesbar, die Zahl rechts wird gekürzt */
  .feld-titel { flex: 1 1 0; min-width: 45%; }
  .feld-zahl { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* Unsichtbare Vorlesetexte (.sr) in breiten Tabellen bleiben im Tabellenrahmen – sonst ließ sich die ganze Seite seitlich schieben */
  .tablewrap { position: relative; }
  /* Beleg einlesen › Neu aus dem Postfach: das Datum weicht und die Knöpfe stehen untereinander – „Einlesen“ ist ohne Wischen erreichbar */
  .rp-pf-eingang { display: none; }
  .rp-pf-beleg { min-width: 100px; }
  .rp-postfach :is(th, td) { padding-left: 8px; padding-right: 8px; }
  .rp-pf-knoepfe { white-space: normal; } .rp-pf-knoepfe .knopf + .knopf { margin-left: 0; }
  /* Unter 16 px zoomt das iPhone beim Antippen in das Feld hinein */
  input:not(.pin-feld):not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}
/* Sehr schmale Telefone (320 px): der Scanner-Hinweis weicht, damit alle Knöpfe in die Kopfzeile passen */
@media (max-width: 359px) { #scanner { display: none; } }
