/* Lager-UI: große Ziele, hoher Kontrast, eine Spalte (Memor 10/11 ≈ 360 px breit).
   Theming über Tokens: hell als Default, dunkel via prefers-color-scheme ODER [data-theme=dark]. */
:root {
  color-scheme: light dark;
  --bg: #f1f3f5;
  --surface: #ffffff;
  --hover: #e9ecef;
  --text: #212529;
  --muted: #495057;
  --rand: #ced4da;
  --header-bg: #1f2530;
  --header-text: #f4f5f7;
  --orange: #f94b0c;
  --gruen: #2b8a3e;
  --rot: #c92a2a;
  --gelb: #b66a00;
  --blau-hell: #3b5bdb;
  --tuete: #0c8599;
  --karton: #9c6b30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171a1f; --hover: #222831;
    --text: #e6e8ec; --muted: #9099a4; --rand: #2a2f37;
    --header-bg: #0c0e12; --header-text: #f1f3f5;
    --orange: #ff5a1f; --gruen: #5bc46a; --rot: #ff6b6b; --gelb: #e0a030; --blau-hell: #7aa2ff;
    --tuete: #3bc9db; --karton: #d4a373;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171a1f; --hover: #222831;
  --text: #e6e8ec; --muted: #9099a4; --rand: #2a2f37;
  --header-bg: #0c0e12; --header-text: #f1f3f5;
  --orange: #ff5a1f; --gruen: #5bc46a; --rot: #ff6b6b; --gelb: #e0a030; --blau-hell: #7aa2ff;
    --tuete: #3bc9db; --karton: #d4a373;
}
/* Manueller Theme-Override pinnt auch color-scheme (native Controls folgen sonst dem OS). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
}
header.app {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--orange);
}
header.app a { color: #fff; text-decoration: none; font-weight: 600; }
header.app .kopf-rechts { display: flex; align-items: center; gap: 0.6rem; }
.thementaste { background: transparent; border: 1px solid rgba(255,255,255,0.30); color: #fff; cursor: pointer;
  border-radius: 8px; padding: 0.3rem 0.5rem; font-size: 1rem; line-height: 1; }
main { padding: 1rem; max-width: 640px; margin: 0 auto; }
h1 { font-size: 1.3rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.karte {
  background: var(--surface);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
}
/* Menü-Buttons (Home) und Listeneinträge */
a.kachel, button.kachel {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--orange);
  border-radius: 12px;
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
a.kachel small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
/* Kommissionieren-Wahlseite: zwei große Karten, Titel statt Erklärtext (2026-07-24). */
a.karte { color: inherit; text-decoration: none; } /* Karten-Links ohne Browser-Default-Lila */
.karte.wahl .wahl-titel { font-size: 1.55rem; font-weight: 800; display: block; margin-bottom: 0.3rem; }
.wahl-rot { color: var(--rot); font-weight: 700; }
/* Karte ohne verfügbare Arbeit (Batch-Profil ohne baubare Welle): sichtbar, aber ausgegraut
   und ohne Link — der Klick führte sonst auf eine Seite, die nur „nichts da" sagen kann. */
.karte.karte-aus { opacity: 0.55; }
/* Fällige Arbeit (heute raus / überfällig) — roter Rand wie `zeile-faellig` der Einzelauftrags-
   Liste, damit Wellen nicht hinter den Einzelaufträgen liegen bleiben (2026-10-01). */
.karte.karte-faellig { border-left: 4px solid var(--rot); }
/* Nacharbeit an der Wellen-Station: zugeordnet, aber nicht abgeschlossen. Muss ins Auge
   springen — das Stück liegt im Wagen und blockiert die Welle (Befund OUT-0075, 2026-08-31). */
.karte.nacharbeit { border: 2px solid var(--gelb); }
.karte.nacharbeit > h2 { color: var(--gelb); margin-top: 0; }

ul.liste { list-style: none; margin: 0; padding: 0; }
ul.liste li { margin-bottom: 0.5rem; }
ul.liste a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 0.8rem;
  text-decoration: none;
  color: inherit;
}
ul.liste .titel { font-weight: 700; }
ul.liste .meta { font-size: 0.85rem; color: var(--muted); }
/* Gesperrter (fremd geclaimter) Auftrag: wie eine Listenkachel, aber inaktiv/gedimmt. */
ul.liste .liste-gesperrt {
  display: block; background: var(--surface); border: 1px solid var(--rand);
  border-radius: 10px; padding: 0.8rem; color: var(--muted); opacity: 0.8;
}
/* Formulare */
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0.2rem; }
input, textarea, select {
  width: 100%;
  font-size: 1.15rem;
  padding: 0.7rem;
  border: 2px solid var(--rand);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
input:focus, textarea:focus { outline: 3px solid var(--orange); border-color: var(--orange); }
input.scan { border-color: var(--orange); font-weight: 600; }
/* `a.sekundaer` mitgenommen (2026-09-17): die Abbrechen-/Zurück-Links im Scanner trugen die
   Klasse schon, bekamen aber nie Knopf-Optik — der Element-Selektor unten passte nicht auf <a>.
   Ergebnis war ein Mini-Link direkt unter dem Buchen-Knopf (Befund Matthias, Zählung). */
a.sekundaer { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
button.primaer, button.sekundaer, button.gefahr, a.sekundaer {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.9rem;
  margin-top: 0.9rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}
button.primaer { background: var(--gruen); color: #fff; }
button.sekundaer, a.sekundaer { background: var(--surface); color: var(--muted); border: 2px solid var(--rand); }
/* Scan-Feld mit Aktion rechts: Beschriftung links, kleiner Druck-Knopf rechts. Steht überall,
   wo eine Pick-Location gescannt wird (Batch-Profil, Serien-Gruppe, Einzelauftrag, 2026-08-06).
   NICHT `.scan-kopf` nennen — das ist die Kopfzeile der Universal-Scan-Karte (weiter unten,
   `flex-direction: column`) und lag sich mit dieser Zeile in die Haare. */
.pickloc-kopf { display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0 0.2rem; }
.pickloc-kopf label { margin: 0; }
/* Der Druck-Knopf hat auf den Batch-Seiten ein EIGENES Mini-Formular (er darf kein Submit
   im Scan-Formular sein, sonst löst der Wedge-Enter ihn aus statt den Wellenstart). */
.pickloc-kopf .pickloc-form { margin: 0; min-width: 0; }
/* Rechtsbündig auch dann, wenn die Beschriftung umbricht (längere Übersetzungen). */
.pickloc-kopf > .pickloc-form, .pickloc-kopf > .druck-taste { margin-left: auto; }
button.druck-taste {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  font-size: 1.25rem;
  background: var(--surface); color: var(--orange);
  border: 2px solid var(--orange); border-radius: 10px;
  cursor: pointer;
}
button.druck-taste:active { background: var(--hover); }
/* Drucker-Wahl statt Ein-Tipp-Druck (kein Arbeitsplatz am Gerät gesetzt): volle Breite unter
   der Beschriftung, die Knöpfe stapeln sich als große Fingerziele. */
.pickloc-wahl { width: 100%; }
.pickloc-wahl .meta { display: block; }
/* Abbruch/Gefahr: rot, damit „Stopp, nichts buchen" auf den ersten Blick eindeutig ist. */
button.gefahr { background: var(--rot); color: #fff; }
/* Einlagern: Quelle → Pfeile → Ziel (2026-09-22) */
.pa-rolle { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.pa-quelle { border-left: 4px solid var(--muted); }
.pa-pfeile { display: flex; flex-direction: column; align-items: center; line-height: 1; margin: .2rem 0 .4rem; color: var(--orange); }
.pa-pfeile span { font-size: 2rem; }
.pa-pfeile span + span { margin-top: -.9rem; }
.pa-pfeile small { margin-top: .3rem; font-size: .85rem; font-weight: 600; color: var(--orange); }
.pa-ziel { border-left: 4px solid var(--orange); }
.pa-ziel label { font-weight: 600; }
.putaway-abbruch-hinweis { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
/* Meldungen */
.flash { border-radius: 10px; padding: 0.8rem; margin-bottom: 0.75rem; font-weight: 600;
  color: var(--c, var(--text)); background: color-mix(in srgb, var(--c, var(--muted)) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 45%, var(--surface)); }
.flash.ok { --c: var(--gruen); }
.flash.fehler { --c: var(--rot); }
.flash.warn { --c: var(--gelb); }
/* Positions-/Bestandstabellen */
table.zeilen { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; }
table.zeilen th, table.zeilen td { padding: 0.6rem 0.5rem; text-align: start; border-bottom: 1px solid var(--rand); }
table.zeilen th { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
/* Zeilen-Zustand: grün = exakt, orange = unter, blau = über; rejected immer rot. */
table.zeilen tr.zustand-voll td { color: var(--gruen); }
table.zeilen tr.zustand-unter td { color: var(--gelb); }
table.zeilen tr.zustand-ueber td { color: var(--blau-hell); }
table.zeilen .rejected { color: var(--rot); font-weight: 700; }
table.zeilen td.menge { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.klickbar { cursor: pointer; }
tr.klickbar:active { background: var(--hover); }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px;
  color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 18%, var(--surface)); }
.badge.open { --c: var(--blau-hell); }
.badge.partial { --c: var(--gelb); }
.badge.complete { --c: var(--gruen); }
.badge.closed { --c: var(--muted); }
/* Auftrags-Status */
.badge.new, .badge.allocated { --c: var(--blau-hell); }
.badge.picking { --c: var(--gelb); }
.badge.picked, .badge.packed { --c: var(--gruen); }
.badge.shipped, .badge.cancelled { --c: var(--muted); }
.badge.short { --c: var(--rot); }
/* Pick-Listen: Carrier-Kürzel, Fälligkeit + Auftragsalter (2026-07-24). */
.badge.heute, .badge.ueberfaellig { --c: var(--rot); }
.badge.alter { --c: var(--muted); }
/* Sperrgut (2026-08-06): sagt VOR dem Start, ob Ameise/Hubwagen statt Kommissionierwagen
   gebraucht wird. Orange statt rot — rot ist der Fälligkeit vorbehalten. */
.badge.sperrgut { --c: var(--orange); }
.badge.prio { --c: var(--rot); font-weight: 700; }
.badge.prio .ic { width: 1.05em; height: 1.05em; vertical-align: -0.2em; }
.badge.sperrgut .ic { width: 1.05em; height: 1.05em; vertical-align: -0.2em; }
.badge-carrier { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem; border-radius: 6px; border: 1.5px solid var(--c, var(--muted)); color: var(--c, var(--muted)); }
.badge-carrier.bc-dhl { --c: #b98900; }
.badge-carrier.bc-gls { --c: #2563eb; }
.badge-carrier.bc-ups { --c: #8a6d1f; }
ul.liste li.zeile-faellig > a { border-left: 4px solid var(--rot); }
.produktkopf { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.produktkopf small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* Einlagern: Bild + Text (Box-Inhaltsliste + Positions-Kopf). Bild ist per Lightbox klickbar (.bild-galerie). */
.pa-pos-kopf { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.2rem; }
.pa-zeile { display: flex; gap: 0.55rem; align-items: center; }
.pa-zeile-text { display: flex; flex-direction: column; min-width: 0; }
.pa-zeile-text small { display: block; font-size: 0.78rem; color: var(--muted); }
.pa-bild { flex-shrink: 0; width: 46px; height: 46px; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; background: rgba(127, 127, 127, 0.12); display: block; }
.pa-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-pos-kopf .pa-bild { width: 60px; height: 60px; }

/* ===================== Geführter Pick-Schritt (ein Artikel auf einmal) ===================== */
.pick-fortschritt { margin-bottom: 0.7rem; }
.pick-bar { height: 7px; background: var(--rand); border-radius: 5px; overflow: hidden; margin-bottom: 0.35rem; }
.pick-bar-fill { height: 100%; background: var(--orange); border-radius: 5px; transition: width 0.2s; }
.pick-step .pick-bild {
  width: 100%; min-height: 120px; max-height: 30vh; display: flex; align-items: center; justify-content: center;
  background: rgba(127, 127, 127, 0.12); border-radius: 12px; overflow: hidden; margin-bottom: 0.5rem;
}
.pick-step .pick-bild img { max-width: 100%; max-height: 30vh; object-fit: contain; display: block; }
.pick-bild-leer { color: var(--muted); font-size: 0.85rem; padding: 1.5rem; }
.pick-anweisung { font-size: 1.05rem; margin: 0.4rem 0 0.8rem; }
.pick-anweisung strong { color: var(--orange); }

/* Geführter Pick-Schritt blendet den App-Header aus → mehr Platz, kein Scrollen. */
body.chrome-hidden header.app { display: none; }

/* Anweisungs-Checkliste (① Lagerplatz → ② Produkt scannen) — kein Eingabefeld, nur validieren. */
.pick-anweisung-liste { list-style: none; padding: 0; margin: 0.4rem 0 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pick-anweisung-liste li { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border: 2px solid var(--rand); border-radius: 10px; font-size: 1.05rem; }
.pick-anweisung-liste li.aktiv { border-color: var(--orange); background: rgba(249, 75, 12, 0.08); font-weight: 600; }
.pick-anweisung-liste li.ok { border-color: var(--gruen); color: var(--gruen); }
.pick-anweisung-liste strong { color: var(--orange); }
.pick-anweisung-liste li.ok strong { color: var(--gruen); }
.anw-haken { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--rand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.pick-anweisung-liste li.aktiv .anw-haken { border-color: var(--orange); }
.pick-anweisung-liste li.ok .anw-haken { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.pick-anweisung-liste li.ok .anw-haken::after { content: "✓"; }
.anw-count { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--orange); }
.pick-anweisung-liste li.ok .anw-count { color: var(--gruen); }
/* Lange SKUs umbrechen statt die Zeile (und damit die Seite) horizontal zu sprengen —
   Befund Matthias 2026-07-24: Menge war erst nach Horizontal-Scroll sichtbar. */
.pick-anweisung-liste li { min-width: 0; }
.anw-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* Große Mengen-Anzeige unter den Anweisungen: lesbar ohne auf den Screen zu starren;
   .anw-count darin zählt beim Scannen mit hoch (pickstep.js aktualisiert ALLE .anw-count). */
.pick-menge { text-align: center; font-size: 2.4rem; font-weight: 800; line-height: 1.1;
  color: var(--orange); font-variant-numeric: tabular-nums; margin: 0.2rem 0 0.6rem; }
.pick-menge .anw-count { margin-left: 0; font-size: inherit; font-weight: inherit; }
.pick-menge .pick-menge-einheit { font-size: 1rem; font-weight: 600; color: var(--muted); display: inline-block; margin-left: 0.25rem; }
/* „Menge eingeben" (nach dem Pflicht-Scan): sitzt direkt unter der großen Zahl, auf die es
   sich bezieht. Volle Breite wie die anderen Aktionen — mit Handschuhen am Handheld zählt die
   Trefferfläche mehr als die optische Zurückhaltung. */
/* `button.` nötig: die Grundregel oben ist `button.sekundaer` und schlägt eine reine
   Klassenregel bei der Spezifität. */
button.pick-menge-taste { margin: 0.2rem 0 0.7rem; }
.pick-menge-eingabe { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.pick-menge-eingabe input { flex: 1; font-size: 1.8rem; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums; }
.pick-menge-soll { font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.pick-menge-fehler { background: var(--rot); color: #fff; border-radius: 9px; padding: 0.5rem 0.7rem;
  font-weight: 600; margin-bottom: 0.8rem; }
/* Produkt-Etikett aus dem Pick-Schritt (2026-09-23, picklabel.js): Knopf rechts im Artikel-Kopf —
   immer sichtbar, schiebt keine Aktion nach unten; groß genug für Handschuhe (≥ 3.2rem). */
.pick-kopf { display: flex; align-items: flex-start; gap: 0.6rem; }
.pick-kopf .produktkopf { flex: 1 1 auto; min-width: 0; }
button.pick-lbl-knopf { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.1rem; min-width: 3.6rem; min-height: 3.2rem; padding: 0.35rem 0.5rem; border-radius: 10px;
  border: 2px solid var(--rand); background: var(--surface); color: var(--text); font-size: 0.75rem; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.pick-lbl-knopf svg { width: 1.4rem; height: 1.4rem; }
button.pick-lbl-knopf:active { background: var(--hover); }
.pick-lbl-ok { margin: 0.4rem 0 0.2rem; }
/* Oben verankert statt zentriert: sonst springt der ganze Dialog, wenn die Fehlerzeile kommt/geht. */
dialog.pick-lbl { margin-top: 0.75rem; }
.pick-lbl .pick-lbl-titel { margin: 0 0 0.8rem; }
.pick-lbl .pick-lbl-titel svg { width: 1.2rem; height: 1.2rem; vertical-align: -0.2rem; }
.pick-lbl .pick-lbl-titel small { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.pick-lbl-anzahl { display: flex; gap: 0.5rem; align-items: stretch; margin-bottom: 0.5rem; }
.pick-lbl-anzahl .stepper { flex: 0 0 3.6rem; min-height: 3.4rem; }
.pick-lbl-anzahl input { flex: 1; min-width: 0; font-size: 1.8rem; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums; }
button.pick-lbl-chip { width: 100%; margin: 0 0 0.7rem; padding: 0.55rem; font-size: 0.95rem; font-weight: 600;
  border-radius: 10px; border: 2px dashed var(--rand); background: transparent; color: var(--text); cursor: pointer; }
.pick-lbl-drucker { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.8rem; }
.pick-lbl-drucker label { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.7rem; margin: 0;
  border: 2px solid var(--rand); border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.pick-lbl-drucker label:has(input:checked) { border-color: var(--orange); background: rgba(249, 75, 12, 0.08); }
.pick-lbl-drucker input { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--orange); }
.pick-lbl .pick-confirm-aktionen button { margin-top: 0; }
.pick-lbl .pick-confirm-aktionen svg { width: 1.1rem; height: 1.1rem; vertical-align: -0.15rem; }
.pick-fehler { background: var(--rot); color: #fff; border-radius: 9px; padding: 0.55rem 0.7rem; font-weight: 600; margin-bottom: 0.5rem; }
/* Sofort-validierter Scan (data-expect-codes): akzeptierter Code = grüner Rand. */
input.scan-ok { border-color: var(--gruen); }

/* Sicherheits-Abfrage bei „Weiter (ohne Scan)". */
.pick-confirm { border: none; border-radius: 14px; padding: 1.1rem; background: var(--surface); color: var(--text); max-width: 90vw; width: 22rem; box-shadow: 0 12px 48px rgba(0,0,0,0.35); }
.pick-confirm::backdrop { background: rgba(0,0,0,0.5); }
.pick-confirm p { margin: 0 0 1rem; font-size: 1.05rem; }
.pick-confirm .pick-confirm-aktionen { display: flex; gap: 0.6rem; }
.pick-confirm button { flex: 1; }
/* Pack: Gewicht + Waage-Knopf in einer Zeile. */
.pk-weight-zeile { display: flex; gap: 0.5rem; align-items: stretch; }
.pk-weight-zeile input { flex: 1; }
.pk-weight-zeile #pk-weigh { width: auto; white-space: nowrap; padding-left: 0.9rem; padding-right: 0.9rem; }
.pk-weigh-status { display: block; margin-top: 0.3rem; }

/* Pack-Check (read-only Soll-Inhalt nach Tote-Scan): kleine Bilder, Klick → groß (lightbox.js). */
.pack-check-bild { width: 60px; }
.pack-check-bild img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rand); display: block; }
.pack-check-leer { color: var(--muted); }
.fertig-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.fertig-links .kachel { flex: 1; text-align: center; min-width: 8rem; }
.pick-rest { margin: 0.7rem 0; }
.pick-rest summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; padding: 0.3rem 0; }
table.zeilen tr.aktiv td { color: var(--orange); font-weight: 700; }
table.zeilen tr.klickbar { cursor: pointer; }

/* HTMX-Ladeindikator */
.htmx-request { opacity: 0.6; }

/* ===================== Scan-Feld-Erweiterung (Kamera / Suche / Tippen) =====================
   JS (scanfield.js) hängt an jedes .scan-Feld eine Tastenreihe; auf dem Memor ungenutzt,
   auf dem Handy der Weg ohne Hardware-Wedge. */
.scanfeld { position: relative; }
/* Strich-Icons rechts IM Eingabefeld (vertikal zentriert; bei Textarea oben angedockt). */
.scanfeld-icons {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 2px;
}
.scanfeld.mehrzeilig .scanfeld-icons { top: 8px; transform: none; }
.scanfeld-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  border-radius: 8px; -webkit-tap-highlight-color: transparent;
}
.scanfeld-icon svg { width: 22px; height: 22px; display: block; }
.scanfeld-icon:active { background: var(--hover); }
.scanfeld-icon.kamera { color: var(--orange); }       /* Kamera = primäre Aktion, Grexon-Orange */
.scanfeld-icon.tippen.aktiv { color: var(--gruen); }

/* --- Suche-Overlay (zentrierte Karte auf abgedunkeltem Grund). Das Kamera-Overlay (.scan-cam-*)
   liegt in camera.css, da es auch der Desk lädt; die Close-Taste .scan-cam-x kommt von dort. --- */
.scan-such { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-start; justify-content: center; background: rgba(0,0,0,0.5); padding: 1rem; }
.scan-such[hidden] { display: none; }
.scan-such-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; font-weight: 700; border-bottom: 1px solid var(--rand);
}
.scan-such-karte {
  background: var(--surface); color: var(--text);
  width: 100%; max-width: 520px; margin-top: 6vh;
  border: 1px solid var(--rand); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; max-height: 84vh;
}
.scan-such-feld { margin: 0.8rem; width: auto; }
.scan-such-treffer { overflow-y: auto; padding: 0 0.8rem 0.8rem; }
.scan-such-treffer-btn {
  display: flex; flex-direction: column; gap: 0.15rem; width: 100%; text-align: start;
  background: var(--surface); border: 1px solid var(--rand); border-radius: 10px;
  padding: 0.7rem 0.8rem; margin-bottom: 0.5rem; cursor: pointer; color: inherit;
}
.scan-such-treffer-btn:active { background: var(--hover); }
/* Tastatur-Auswahl (↑/↓): deutlicher als :hover, Grexon-Orange-Akzent. */
.scan-such-treffer-btn.active { background: var(--hover); border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
.scan-such-treffer-btn .haupt { font-weight: 700; font-size: 1.05rem; }
.scan-such-treffer-btn .sub { font-size: 0.8rem; color: var(--muted); }
.scan-such-leer { color: var(--muted); padding: 0.8rem; text-align: center; }

/* ===================== Annahme-Maske: Gruppen (grün/rot) + Mengen-Stepper ===================== */
.annahme-gruppe {
  border: 1px solid var(--rand); border-left: 5px solid var(--c, var(--rand)); border-radius: 10px;
  padding: 0.55rem 0.8rem 0.85rem; margin: 0.7rem 0;
  background: color-mix(in srgb, var(--c, var(--muted)) 7%, var(--surface));
}
.annahme-gut { --c: var(--gruen); }
.annahme-schlecht { --c: var(--rot); }
.gruppe-titel { font-weight: 800; color: var(--c); margin-bottom: 0.1rem; }
.menge-stepper { display: flex; align-items: stretch; gap: 0.5rem; }
.menge-stepper input { flex: 1; text-align: center; font-weight: 700; }
.stepper {
  flex: 0 0 3.2rem; font-size: 1.6rem; font-weight: 700; line-height: 1;
  border: 2px solid var(--rand); border-radius: 10px; background: var(--surface); color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.stepper:active { background: var(--hover); }

/* Bestätigungs-Dialog (Annahme abschließen u. a.) — ersetzt natives confirm() */
dialog.dialog {
  border: none; border-radius: 14px; padding: 1.1rem; width: 22rem; max-width: 90vw;
  background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
dialog.dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.dialog p { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; }
.dialog-tasten { display: flex; gap: 0.6rem; }
.dialog-tasten button {
  flex: 1; font-size: 1.05rem; font-weight: 700; padding: 0.7rem; border-radius: 10px; border: none; cursor: pointer;
}
.dialog-tasten .primaer { background: var(--gruen); color: #fff; }
.dialog-tasten .sekundaer { background: var(--surface); color: var(--muted); border: 2px solid var(--rand); }

/* ===================== Off-Canvas-Navigation (Drawer, ☰) ===================== */
header.app .kopf-links { display: flex; align-items: center; gap: 0.5rem; }
header.app a.marke { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; }
.menue-taste {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.30); color: #fff; cursor: pointer;
  border-radius: 8px; padding: 0.2rem 0.55rem; font-size: 1.3rem; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
/* Während einer laufenden Operation: das große ☰-Menü ausblenden (kein versehentliches
   Wegnavigieren). Das Logo bleibt bewusst ein funktionierender Heim-Link — alle Buchungen
   sind persist-as-you-go, ein Verlassen verliert nichts, und ohne Logo wäre der Werker
   ganz ohne Ausweg gefangen (z. B. im Versand-Schritt ohne Abbrechen-Taste). */
body.op-active .menue-taste { display: none; }
/* Schnellzugriff „Scannen" im Header (viel genutzt) — orange, damit er als Primär-Aktion auffällt.
   Wie das ☰ bei laufender Operation ausgeblendet (kein Wegnavigieren mitten im Pick/Pack). */
.scan-taste { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--orange); color: #fff;
  border: none; border-radius: 8px; padding: 0.4rem 0.7rem; font-weight: 700; font-size: 0.95rem; line-height: 1;
  white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.scan-taste .ic { width: 18px; height: 18px; }
.scan-taste:active { opacity: 0.85; }
.scan-taste.aktiv { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
body.op-active .scan-taste { display: none; }

/* ============== Kopf-Anzeige „wer + wo" (Nutzer / Arbeitsplatz, 2026-09-01) ==============
   Zwei gestapelte Zeilen im Kopf — dauerhaft sichtbar, weil am geteilten Handheld beides die
   häufigste Fehlerquelle ist. Jede Zeile öffnet ein kleines Menü (Abmelden bzw. wechseln);
   die Zeilen sind schmal, ein Fehltipp landet auf der Nachbarzeile und kostet nichts. */
.ident { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ident-zeile {
  display: flex; align-items: center; gap: 0.3rem; max-width: 9.5rem;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.20); color: #fff;
  border-radius: 7px; padding: 0.2rem 0.4rem; font: inherit; font-size: 0.72rem; line-height: 1.2;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ident-zeile:active { background: rgba(255, 255, 255, 0.24); }
.ident-zeile .ic { width: 13px; height: 13px; opacity: 0.85; }
.ident-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ident-pfeil { margin-left: auto; font-size: 0.6rem; opacity: 0.75; }
/* Kein Arbeitsplatz gewählt: nicht verstecken, sondern als offene Aufgabe zeigen. */
.ident-leer { border-color: rgba(255, 255, 255, 0.45); }
.ident-leer .ident-text { font-weight: 400; font-style: italic; }
/* Laufende Operation: die Anzeige bleibt (sie ist der Sinn der Sache), die Menüs nicht —
   kein Weg-Navigieren mitten im Pick/Pack, gleiche Linie wie ☰ und Scan-Taste. */
body.op-active .ident-zeile { pointer-events: none; }
body.op-active .ident-pfeil { visibility: hidden; }
body.op-active .ident-menue { display: none; }
.ident-menue {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 1002;
  min-width: 12rem; max-width: 80vw; padding: 0.35rem;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--rand); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}
.ident-menue[hidden] { display: none; }     /* muss NACH display:flex stehen, sonst bliebe es offen */
.ident-menue form { margin: 0; }
.ident-kopf { font-size: 0.75rem; color: var(--muted); padding: 0.35rem 0.5rem 0.15rem; }
header.app .ident-opt {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.65rem 0.5rem; border: none; border-radius: 8px; background: none;
  font: inherit; font-size: 0.95rem; font-weight: 500; text-align: start; text-decoration: none;
  color: var(--text); cursor: pointer;
}
header.app .ident-opt:active { background: var(--hover); }
header.app .ident-opt.aktiv { color: var(--orange); font-weight: 700; }
.ident-opt .ic { width: 18px; height: 18px; }
/* Schmale Handhelds (Memor ≈ 360 px): erst weicht die Beschriftung der Scan-Taste, dann die
   Wortmarke — die Bildmarke bleibt der Heim-Link, und „wer + wo" bekommt die Breite, die es
   für einen ganzen Arbeitsplatz-Namen braucht (statt „Packtisch …"). */
@media (max-width: 400px) {
  .scan-taste-text, .marke-text { display: none; }
  .ident-zeile { max-width: 11rem; }
}

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 1000;
}
body.drawer-auf .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: var(--surface); color: var(--text); z-index: 1001;
  border-right: 2px solid var(--orange); box-shadow: 2px 0 18px rgba(0, 0, 0, 0.28);
  /* visibility:hidden nimmt den geschlossenen Drawer aus der Tab-Reihenfolge (sonst
     fokussierbare Links hinter aria-hidden) — verzögert via transition, damit die
     Slide-out-Animation noch läuft; beim Öffnen schaltet sie sofort auf sichtbar. */
  visibility: hidden;
  transform: translateX(-100%); transition: transform 0.22s ease, visibility 0.22s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
body.drawer-auf .drawer { transform: translateX(0); visibility: visible; }
.drawer-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--rand);
  background: var(--header-bg); color: var(--header-text);
}
.drawer-titel { font-weight: 700; }
.drawer-zu {
  background: transparent; border: none; color: var(--header-text); font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0.1rem 0.4rem; -webkit-tap-highlight-color: transparent;
}
.drawer-baum { list-style: none; margin: 0; padding: 0.3rem 0 1rem; }
.drawer-baum > li { margin: 0; }
.drawer-top, .drawer-sub, .drawer-baum summary {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1rem; text-decoration: none; color: var(--text);
}
.drawer-top { font-weight: 600; cursor: pointer; }
/* Abmelden ganz unten im Drawer — rot, volle Breite (Touch-Ziel) */
.drawer-abmelden { margin-top: 1.2rem; border-top: 1px solid var(--rand); padding-top: 0.6rem; }
.drawer-abmelden form { margin: 0; }
button.drawer-logout { width: 100%; text-align: start; background: transparent; border: none; font: inherit; color: var(--rot); display: flex; align-items: center; gap: 0.55rem; }
button.drawer-logout:active { opacity: 0.7; }
/* Sprachwahl im Drawer (Flaggen wie am Desk) — von überall im Scanner erreichbar */
.drawer-sprache { padding: 0.85rem 1rem 0.2rem; }
.drawer-sprache-titel { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.drawer-flaggen { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.drawer-flaggen form { margin: 0; }
.drawer-flagge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.7rem; border-radius: 999px;
  border: 2px solid var(--rand); background: var(--surface); color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer; }
.drawer-flagge img { width: 22px; height: 16px; border-radius: 3px; display: block; }
.drawer-flagge.aktiv { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.drawer-flagge:active { background: var(--hover); }
.drawer-baum summary {
  font-weight: 600; cursor: pointer; list-style: none; justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}
.drawer-baum summary::-webkit-details-marker { display: none; }
.drawer-baum a:active, a.drawer-top:active, .drawer-baum summary:active { background: var(--hover); }
.drawer-sub { padding-left: 2.3rem; font-size: 0.95rem; }
.drawer-baum .pfeil { font-size: 0.7rem; color: var(--muted); transition: transform 0.15s ease; }
.drawer-baum details[open] > summary .pfeil { transform: rotate(90deg); }
/* Line-Icons (icons-Tag): in Flex nicht stauchen; Drawer-Größe; pfeil rechts halten */
.ic { flex: none; vertical-align: -0.14em; }
.drawer-baum .ic { width: 20px; height: 20px; }
.drawer-baum summary { justify-content: flex-start; }
.drawer-baum summary .pfeil { margin-left: auto; }
/* Hell/Dunkel: im Kopf nur noch abgemeldet (Login-Seite hat kein ☰), angemeldet als Zeile im
   ☰-Menü. Gezeigt wird jeweils das ZIEL des Tipps — im hellen Design Mond + „Dunkles Design". */
.thementaste { display: inline-flex; align-items: center; }
.thementaste .ic { display: block; width: 17px; height: 17px; }
button.thema-schalter { width: 100%; text-align: start; background: transparent; border: none; font: inherit; color: var(--text); }
button.thema-schalter:active { background: var(--hover); }
.thementaste .ic-sun, .thema-schalter .ic-sun, .thema-schalter .thema-hell { display: none; }
:root[data-theme="dark"] .thementaste .ic-moon,
:root[data-theme="dark"] .thema-schalter .ic-moon,
:root[data-theme="dark"] .thema-schalter .thema-dunkel { display: none; }
:root[data-theme="dark"] .thementaste .ic-sun { display: block; }
:root[data-theme="dark"] .thema-schalter .ic-sun,
:root[data-theme="dark"] .thema-schalter .thema-hell { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thementaste .ic-moon,
  :root:not([data-theme="light"]) .thema-schalter .ic-moon,
  :root:not([data-theme="light"]) .thema-schalter .thema-dunkel { display: none; }
  :root:not([data-theme="light"]) .thementaste .ic-sun { display: block; }
  :root:not([data-theme="light"]) .thema-schalter .ic-sun,
  :root:not([data-theme="light"]) .thema-schalter .thema-hell { display: inline; }
}
.drawer-baum .aktiv { color: var(--orange); font-weight: 700; box-shadow: inset 4px 0 0 var(--orange); }
.drawer-baum .soon { color: var(--muted); cursor: default; opacity: 0.75; }
.soon-badge {
  margin-left: auto; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--muted) 22%, var(--surface)); color: var(--muted);
  border-radius: 999px; padding: 0.12rem 0.5rem;
}

/* ===================== Dashboard (Statistik-Kacheln) ===================== */
.dash { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.dash-kachel {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--surface); border: 1px solid var(--rand); border-left: 5px solid var(--c, var(--orange));
  border-radius: 12px; padding: 0.9rem; text-decoration: none; color: inherit;
}
a.dash-kachel:active { background: var(--hover); }       /* Press-Feedback nur für klickbare Kacheln */
.dash-kachel.info { cursor: default; }                   /* Info-Kachel (z. B. Retouren): nur Zahl, kein Link */
.dash-zahl { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--c, var(--orange)); font-variant-numeric: tabular-nums; }
.dash-titel { font-weight: 700; font-size: 0.95rem; }
.dash-sub { font-size: 0.78rem; color: var(--muted); }
.dash-kachel.k-recv { --c: var(--blau-hell); }
.dash-kachel.k-put { --c: var(--gelb); }
.dash-kachel.k-repl { --c: var(--blau-hell); }
.dash-kachel.k-pick { --c: var(--orange); }
.dash-kachel.k-pack { --c: var(--gruen); }
.dash-kachel.k-ret { --c: var(--rot); }
/* Arbeitsplatz-Wahl-Gate: Buttons untereinander (Tap-Fallback zum Scan) */
.ws-wahl { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem; }
.ws-wahl form { margin: 0; }
.ws-wahl .kachel { width: 100%; }

/* ===================== Scannen-Universalseite (P3) ===================== */
.scan-suche input { width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; font-size: 1rem;
  border: 2px solid var(--orange); border-radius: 10px; background: var(--surface); color: var(--text);
  margin-bottom: 0.6rem; }
.scan-karte { display: flex; flex-direction: column; gap: 0.5rem; }
.scan-kopf { display: flex; flex-direction: column; gap: 0.1rem; }
.scan-code { font-size: 1.3rem; }
.scan-warnflag { color: var(--rot); font-weight: 700; }
.scan-produkt { display: flex; align-items: center; gap: 0.7rem; }
.scan-produkt-bild { display: block; flex: 0 0 auto; }
.scan-produkt-bild img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--rand); display: block; }
.scan-produkt-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

/* Location-/Produkt-Inhalt als Karten-Liste (statt Tabelle → kein horizontales Überlaufen
   in der schmalen Scanner-Ansicht). Bild ist per Lightbox klickbar (.bild-galerie). */
.scan-inhalt { display: flex; flex-direction: column; gap: 0.4rem; }
.scan-line { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem;
  border: 1px solid var(--rand); border-radius: 10px; background: var(--bg, transparent); }
.scan-line-bild { flex: 0 0 auto; }
.scan-line-bild-leer { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.scan-line-bild-leer .ic { width: 22px; height: 22px; }
.scan-line-text { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1 1 auto; }
.scan-line-text strong { font-size: 1rem; }
.scan-line-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-line-menge { flex: 0 0 auto; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scan-line-summe { border: none; padding-top: 0.2rem; font-weight: 700; }
.scan-line-summe span:first-child { flex: 1 1 auto; color: var(--muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.03em; }
.scan-hilfe { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.scan-hilfe li { display: flex; flex-direction: column; gap: 0.1rem; }
.scan-hilfe li strong { color: var(--orange); }
.scan-hilfe li span { color: var(--muted); font-size: 0.9rem; }
/* Offene Zähl-Aufträge am Einstieg der Zählung: eine tippbare Zeile je Platz. */
.zaehl-auftraege { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.zaehl-auftraege li + li { border-top: 1px solid var(--rand); }
.zaehl-auftraege a { display: grid; grid-template-columns: 1fr auto; gap: 0.05rem 0.6rem; align-items: center; padding: 0.6rem 0.1rem; min-height: 48px; color: inherit; text-decoration: none; }
.zaehl-auftraege a strong { font-size: 1.05rem; }
.zaehl-auftraege a .meta { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zaehl-alter { grid-column: 2; grid-row: 1 / span 2; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.zaehl-alter.alt { color: var(--rot); font-weight: 700; }
/* Schon gemeldet, wartet auf Freigabe (2026-09-23): gedämpft und ans Ende — da muss niemand mehr hin. */
.zaehl-auftraege li.zaehl-gemeldet { opacity: 0.7; }
.zaehl-auftraege a .zaehl-wartet { grid-column: 1; color: var(--gelb); font-weight: 600; white-space: normal; }
.zaehl-wartet .ic, .zaehl-vorschlag .ic, .zaehl-vorschlaege .ic { width: 14px; height: 14px; vertical-align: -2px; }
.zaehl-vorschlaege { padding: 0.55rem 0.7rem; }
.zaehl-vorschlaege p { margin: 0.25rem 0 0; font-weight: 400; font-size: 0.85rem; line-height: 1.3; }
.zaehl-vorschlaege ul { margin: 0.35rem 0 0; padding-left: 1.1rem; font-weight: 400; }
.transfer-card-text small.zaehl-vorschlag { color: var(--gelb); font-weight: 700; white-space: normal; }
.zaehl-vorschlag-menge { font-size: 1.25rem; line-height: 1; }
.transfer-card-text small.zaehl-abgleich { font-weight: 700; color: var(--rot); white-space: normal; }
.transfer-card-text small.zaehl-abgleich.passt { color: var(--gruen); }
/* Ist ↔ System je Zeile (2026-09-25) statt einheitlich orange: grün = stimmt, rot = weniger da, blau =
   mehr da (Blau wie die Über-Annahme in der Warenannahme). Rand + Menge-Knopf + leichter Grund, dazu
   „N fehlen"/„N zu viel" in derselben Farbe — erst wenn die Zeile angefasst ist (Wert gesetzt). */
.transfer-card.zaehl-card.zaehl-stimmt { border-color: var(--gruen); box-shadow: inset 0 0 0 1px var(--gruen);
  background: color-mix(in srgb, var(--gruen) 10%, var(--surface)); }
.transfer-card.zaehl-card.zaehl-weniger { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot);
  background: color-mix(in srgb, var(--rot) 9%, var(--surface)); }
.transfer-card.zaehl-card.zaehl-mehr { border-color: var(--blau-hell); box-shadow: inset 0 0 0 1px var(--blau-hell);
  background: color-mix(in srgb, var(--blau-hell) 10%, var(--surface)); }
.zaehl-card.zaehl-stimmt button.zaehl-qty { border-color: var(--gruen); color: var(--gruen); }
.zaehl-card.zaehl-weniger button.zaehl-qty { border-color: var(--rot); color: var(--rot); }
.zaehl-card.zaehl-mehr button.zaehl-qty { border-color: var(--blau-hell); color: var(--blau-hell); }
.transfer-card-text small.zaehl-diff { font-weight: 700; white-space: normal; }
.zaehl-weniger small.zaehl-diff { color: var(--rot); }
.zaehl-mehr small.zaehl-diff { color: var(--blau-hell); }
/* Gezählt = gemeldet: grün, auch wenn die Menge vom (noch nicht freigegebenen) Systembestand abweicht —
   die Zählung ist schon unterwegs, hier ist nichts mehr zu tun (Pascal 2026-09-23). Schlägt die
   Ist-/System-Farbe oben (höhere Spezifität); der Differenz-Text tritt hinter „✓ passt zur Meldung". */
.transfer-card.zaehl-card.markiert.vs-passt { border-color: var(--gruen); box-shadow: inset 0 0 0 1px var(--gruen);
  background: color-mix(in srgb, var(--gruen) 10%, var(--surface)); }
.transfer-card.zaehl-card.markiert.vs-passt button.zaehl-qty { border-color: var(--gruen); color: var(--gruen); }
.zaehl-card.vs-passt small.zaehl-diff { display: none; }

/* ===================== Transfer (mehrzeiliges Umlagern) ===================== */
.transfer-kopf { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.6rem; }
.transfer-kopf-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.transfer-alles { width: auto; margin-top: 0; white-space: nowrap; flex: 0 0 auto; padding: 0.6rem 0.9rem; font-size: 1rem; }
.transfer-ziel-label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; margin: 0.2rem 0 0.3rem; }
#transfer-ziel { width: 100%; box-sizing: border-box; padding: 0.75rem 0.8rem; font-size: 1.05rem;
  border: 2px solid var(--orange); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; }
#transfer-ziel.erkannt { border-color: var(--gruen); }
.transfer-zeilen { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.7rem 0; }
.transfer-card { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem;
  border: 1px solid var(--rand); border-radius: 12px; background: var(--surface); }
.transfer-card.markiert { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.transfer-card.gesperrt { opacity: 0.7; }
.transfer-bild { flex: 0 0 auto; }
.transfer-bild-leer { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.transfer-card-text { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1 1 auto; }
.transfer-card-text strong { font-size: 1rem; }
.transfer-card-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-vorrat { color: var(--orange) !important; font-weight: 600; }
.transfer-card-menge { flex: 0 0 auto; display: flex; align-items: center; gap: 0.35rem; }
.transfer-qty { width: 3.6rem; box-sizing: border-box; padding: 0.55rem 0.4rem; text-align: center;
  font-size: 1.15rem; font-weight: 700; border: 2px solid var(--orange); border-radius: 9px;
  background: var(--surface); color: var(--text); -moz-appearance: textfield; }
.transfer-qty::-webkit-outer-spin-button, .transfer-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.transfer-max { background: transparent; border: 2px solid var(--rand); color: var(--muted);
  border-radius: 9px; padding: 0.5rem 0.55rem; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.transfer-max:active { background: var(--hover); }
/* Abbrechen steht unter einem Knopf, der bucht — großzügiger Abstand statt 0 (Vertipp-Schutz). */
.transfer-abbruch { margin-top: 1.6rem; }

/* ===================== Zählung (Bestandskorrektur am Platz) =====================
   Erbt die Transfer-Zeilen; eigen sind nur der Haken („Menge stimmt") und die Fund-Zeile
   (Ware, die hier gar nicht gebucht ist). Der Haken ist bewusst so groß wie das Mengenfeld —
   er ist der häufigste Griff einer Begehung und muss mit Handschuh treffbar sein. */
.zaehl-menge { gap: 0.45rem; }
.zaehl-haken { display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 2.9rem; height: 2.9rem; border: 2px solid var(--rand); border-radius: 9px; color: var(--muted); cursor: pointer; }
.zaehl-haken input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.zaehl-haken:has(input:checked) { border-color: var(--gruen); color: var(--gruen); background: color-mix(in srgb, var(--gruen) 12%, var(--surface)); }
/* Fund-Zeile (Ware, die laut System nicht hier liegt): hell orange hinterlegt — ohne Erklärtext,
   der Farbton reicht (Entscheid Matthias 2026-09-18, vorher gestrichelter Rand + Platzhalter-Icon). */
.zaehl-card.zaehl-fund { background: color-mix(in srgb, var(--orange) 13%, var(--surface));
  border-color: color-mix(in srgb, var(--orange) 40%, var(--rand)); }
/* Fund-Zeile: „System: 0 (nicht hier gebucht)" ist länger als eine Zeile — umbrechen lassen
   statt abschneiden (die Erklärung ist genau das, was der Zähler hier wissen muss). */
.zaehl-fund .v-system { white-space: normal; }
.zaehl-qty:placeholder-shown { border-color: var(--rand); }
.hinweis-ok { color: var(--gruen); font-weight: 600; }
.dash-kachel.k-count { --c: var(--blau-hell); }

/* ===================== Palette umziehen (ganzer Lagerplatz → anderer Platz) =====================
   Bewusst zugeklappt: der Umzug räumt einen Lagerplatz komplett leer, das soll eine bewusste
   Handlung sein und kein Nebeneffekt eines verrutschten Scans (Untervermieter-Umzug 2026-08-06). */
.umzug { margin-bottom: 0.75rem; }
.umzug > summary.kachel { display: block; width: 100%; box-sizing: border-box; background: var(--surface);
  border: 2px solid var(--orange); border-radius: 12px; color: var(--orange); font-size: 1.2rem;
  font-weight: 700; text-align: center; padding: 1.1rem; cursor: pointer; list-style: none; }
.umzug > summary.kachel::-webkit-details-marker { display: none; }
.umzug[open] > summary.kachel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.umzug-form { border: 2px solid var(--orange); border-top: none; border-radius: 0 0 12px 12px;
  padding: 0.8rem 0.9rem 0.9rem; background: var(--surface); }
.umzug-form label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; margin: 0.2rem 0 0.3rem; }
#umzug-ziel { width: 100%; box-sizing: border-box; padding: 0.75rem 0.8rem; font-size: 1.05rem;
  border: 2px solid var(--orange); border-radius: 10px; background: var(--surface); color: var(--text);
  font-weight: 600; margin-bottom: 0.7rem; }
#umzug-ziel.erkannt { border-color: var(--gruen); }

/* ===================== Foto / Anhang (Kamera-Beleg an Anlieferung) ===================== */
.hinweis { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0.7rem; }
.attach-suche input { width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; font-size: 1rem;
  border: 2px solid var(--orange); border-radius: 10px; background: var(--surface); color: var(--text); margin-bottom: 0.6rem; }
.attach-po-liste { display: flex; flex-direction: column; gap: 0.5rem; }
a.kachel.attach-po { text-align: start; padding: 0.8rem 1rem; font-size: 1rem; }
.attach-po strong { display: block; font-size: 1.05rem; }
.attach-po small { color: var(--muted); font-weight: 400; }
.attach-kopf { display: flex; flex-direction: column; gap: 0.1rem; }
.attach-kopf small { color: var(--muted); }
.attach-scan-msg { background: color-mix(in srgb, var(--rot) 14%, var(--surface)); color: var(--rot);
  border: 1px solid color-mix(in srgb, var(--rot) 35%, var(--surface)); border-radius: 8px;
  padding: 0.5rem 0.7rem; margin: 0.3rem 0 0.6rem; font-weight: 600; }
/* ---- Entlade-Video (Pflicht-Aufnahme nach dem Abladen) ---- */
.vid-karte { display: flex; flex-direction: column; gap: 0.4rem; }
.vid-karte.pflicht { border: 2px solid var(--rot); }
.vid-titel { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.02rem; }
.vid-karte.pflicht .vid-titel { color: var(--rot); }
.vid-titel.ok { color: var(--gruen); }
.vid-start { width: 100%; }
.vid-upload { display: flex; flex-direction: column; gap: 0.3rem; }
/* [hidden] muss display:flex schlagen — sonst steht der Upload-Balken dauerhaft da. */
.vid-upload[hidden] { display: none !important; }
.vid-upload-zeile { display: flex; align-items: center; gap: 0.5rem; }
.vid-upload progress { flex: 1; height: 14px; }
.vid-overlay { position: fixed; inset: 0; z-index: 1200; background: #000; display: flex;
  flex-direction: column; }
.vid-overlay[hidden] { display: none; }
.vid-overlay video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.vid-rec-status { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center;
  gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(0,0,0,0.55);
  color: #fff; font-weight: 700; }
.vid-dot { width: 10px; height: 10px; border-radius: 50%; background: #f43;
  animation: vid-blink 1s steps(2, start) infinite; }
@keyframes vid-blink { to { visibility: hidden; } }
.vid-torch { position: absolute; top: 12px; right: 12px; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.55); color: #fff; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; }
.vid-torch.an { background: var(--orange); border-color: var(--orange); }
.vid-controls { display: flex; gap: 0.5rem; padding: 0.7rem; background: #111; }
.vid-controls .kachel, .vid-controls .sekundaer { flex: 1; margin: 0; }
.vid-controls .vid-stop { background: var(--rot); border-color: var(--rot); color: #fff; }
.attach-barcode { color: var(--muted); letter-spacing: 0.03em; }
/* Positionswahl: „Ganze Anlieferung"-Kachel + Tabelle (Thumbnail | SKU | Anhang-Zähler). */
a.kachel.attach-ganze { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.attach-ganze-badges { display: inline-flex; align-items: center; gap: 0.4rem; }
.vid-fehlt-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem;
  border-radius: 999px; background: var(--rot); color: #fff; font-size: 0.85rem; font-weight: 700; }
.attach-ganze strong { display: flex; align-items: center; gap: 0.45rem; }
.attach-tabelle td { vertical-align: middle; }
.attach-tabelle .attach-name { color: var(--muted); font-weight: 400; }
.attach-zahl-zelle { text-align: end; width: 3.6rem; }
.attach-zahl { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.5rem;
  border: 1px solid var(--rand); border-radius: 999px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
/* Foto-Seite: Kopf der gewählten Position. */
.attach-pos { display: flex; align-items: center; gap: 0.7rem; margin: 0.5rem 0 0.7rem; }
.attach-pos-bild { display: block; flex: 0 0 auto; }
.attach-pos-bild img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rand); display: block; }
.attach-pos-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.attach-pos-text small { color: var(--muted); }
.attach-shoot { margin-bottom: 0.5rem; }
.attach-datei-btn { display: block; width: 100%; margin-bottom: 0.8rem; }
a.sekundaer.attach-fertig { display: block; text-align: center; margin-top: 0.8rem; text-decoration: none; }
.attach-strip { margin: 0.4rem 0; }
.attach-galerie { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.attach-item { position: relative; }
.attach-thumb { display: block; width: 84px; height: 84px; border: 1px solid var(--rand); border-radius: 10px;
  overflow: hidden; background: rgba(127, 127, 127, 0.12); }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-datei-chip { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border: 1px solid var(--rand); border-radius: 10px; background: rgba(127, 127, 127, 0.12); color: var(--muted); }
.attach-line-badge { position: absolute; bottom: 2px; left: 2px; padding: 0.05rem 0.35rem; border-radius: 6px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 10px; font-weight: 700; max-width: 78px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-note { display: block; max-width: 84px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--muted); font-size: 11px; margin-top: 2px; }
#attach-note { width: 100%; box-sizing: border-box; padding: 0.6rem 0.7rem; font-size: 0.95rem;
  border: 1px solid var(--rand); border-radius: 9px; background: var(--surface); color: var(--text);
  margin-bottom: 0.5rem; }
.attach-del { position: absolute; top: -7px; right: -7px; margin: 0; }
.attach-x { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--rand);
  background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Badge-Login-Hero (Anmeldeseite im Lager-Netz): kein Eingabefeld — großes QR-Symbol als
   Scan-Aufforderung, der globale Wedge-Fänger übernimmt. Toggle darunter öffnet Name/Passwort. */
.badge-hero { text-align: center; padding: 1.6rem 1rem 1.2rem; }
.badge-hero-ic { font-size: 92px; display: block; margin: 0 auto 0.6rem; stroke-width: 1.5; color: var(--orange); }
.badge-hero-titel { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.badge-hero-hinweis { color: var(--muted); margin: 0 0 1.1rem; }
.badge-cam-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin: 0.5rem auto 0; padding: 0.7rem 1.1rem; font-size: 1rem; }
.badge-hero-toggle { background: none; border: none; padding: 0.55rem 0.4rem; cursor: pointer;
  color: var(--muted); text-decoration: underline; font-size: 0.95rem; }
/* Chip-Anmeldung freischalten: gleiche Anmutung wie der Kamera-Knopf — es ist eine
   gleichrangige Anmeldeart, kein Fussnoten-Link. */
.nfc-aktivieren { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin: 0.9rem auto 0; padding: 0.7rem 1.1rem; font-size: 1rem;
  border-color: var(--orange); color: var(--orange); }
.nfc-aktivieren svg { width: 1.15em; height: 1.15em; }
/* 🚨 `display` schlägt das hidden-Attribut (das ist nur ein schwaches display:none).
   Ohne diese Zeile stünde der Knopf auf JEDEM Gerät ohne Web NFC — und täte beim
   Tippen nichts. Gilt für jede Regel hier, die einem versteckbaren Element ein
   display gibt. */
.nfc-aktivieren[hidden] { display: none; }
/* Zwei Ausweis-Symbole nebeneinander, ohne Beschriftung (Entscheid 2026-09-01: die
   Anmeldeseite musste auf dem Memor gescrollt werden). Der Chip erscheint erst, wenn sein
   Scan läuft — dann trennt ein oranger Strich die beiden Wege und der Chip ist der größere.
   Ohne NFC steht das QR-Symbol allein und groß da. */
.ausweis-symbole { display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin: 0.4rem 0 1.1rem; }
.ausweis-sym { background: none; border: none; padding: 0.4rem; margin: 0; cursor: pointer;
  color: var(--orange); line-height: 0; }
.ausweis-sym[hidden] { display: none; }
.ausweis-sym svg { width: 88px; height: 88px; stroke-width: 1.5; }
/* Feste Höhe statt `stretch`: die beiden Symbole sind unterschiedlich hoch, der Strich
   soll trotzdem mittig zwischen ihnen stehen. */
.ausweis-trenner { width: 3px; height: 64px; flex: none; border-radius: 2px;
  background: var(--orange); }
.ausweis-trenner[hidden] { display: none; }
/* Chip führt: sein Symbol bleibt groß, das Badge tritt zurück. */
.badge-hero.nfc-aktiv .badge-cam-btn svg { width: 60px; height: 60px; opacity: 0.75; }
.login-split .ausweis-sym svg { width: 72px; height: 72px; }
.login-split .badge-hero.nfc-aktiv .badge-cam-btn svg { width: 52px; height: 52px; }
/* Desk-Login: Passwort-Formular (links) und Badge-Scan-Hinweis (rechts) nebeneinander;
   auf schmalen Screens (Memor-Fallback ohne next) stapeln die Spalten. */
.login-split { display: flex; gap: 1rem; align-items: stretch; }
.login-split > form.karte { flex: 1 1 0; margin: 0; }
.login-split > .badge-side { flex: 1 1 0; margin: 0; border-left: 3px solid var(--orange);
  /* Die Karte streckt sich auf die Höhe des Passwort-Formulars daneben — ohne Beschriftungen
     klebten die Symbole sonst oben in einer halbleeren Fläche. */
  display: flex; flex-direction: column; justify-content: center; }
.login-split .badge-hero-ic { font-size: 72px; }
@media (max-width: 700px) { .login-split { flex-direction: column; } }
.login-split > .login-links { flex: 1 1 0; display: flex; flex-direction: column; }
.login-split > .login-links > .karte { flex: 1; margin: 0; }
.pw-launch-btn { font-size: 1rem; padding: 0.7rem 1.2rem; }

/* Aufwand / Timer (Billing B1.5) */
.effort-titel { font-size: 1.05rem; margin: 1.1rem 0 0.2rem; }
button.kachel.effort-item { width: 100%; text-align: start; padding: 0.8rem 1rem; font-size: 1rem; }
button.kachel.effort-item small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
form.karte.effort-direkt { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; }
.effort-direkt .effort-direkt-name { flex: 1; min-width: 0; }
.effort-direkt .effort-direkt-name small { display: block; color: var(--muted); font-size: 0.85rem; }
.effort-direkt input[name="quantity"] { width: 4.5rem; font-size: 1.1rem; padding: 0.5rem 0.3rem; text-align: center; }
.effort-lauf { text-align: center; padding: 1.2rem 1rem; }
.effort-lauf small { display: block; color: var(--muted); margin-top: 0.2rem; }
.effort-zeit { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
button.effort-stop { width: 100%; font-size: 1.2rem; padding: 1rem; margin: 0.9rem 0 0.6rem; }
button.effort-verwerfen { width: 100%; }

/* Wellen-Abbruch (Batch-Pick/Sortieren): bewusst abgesetzt unterm Panel, volle Breite. */
.abbruch-form { margin-top: 1.4rem; }
.abbruch-form button { width: 100%; }

/* ---- Warenannahme Palette (Scanner): TR-Box → Karten sammeln → fixierter Buchen-Balken ---- */
.recv-kopf { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.recv-kopf h1 { margin: 0; }
.recv-tr-knopf { white-space: nowrap; }
.recv-po { display: block; }
.recv-po-zeile { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.recv-stand { flex-direction: column; align-items: flex-end; }
.recv-stand strong { font-size: 1.25rem; }
/* Annahme-Stand je Zeile (2026-09-22): voll = grün statt ausgegraut, unter = orange, über = blau. */
.transfer-card.recv-voll { border-left: 4px solid var(--gruen); background: color-mix(in srgb, var(--gruen) 10%, var(--surface)); }
.transfer-card.recv-unter { border-left: 4px solid var(--orange); }
.transfer-card.recv-ueber { border-left: 4px solid var(--blau, #3b82f6); background: color-mix(in srgb, var(--blau, #3b82f6) 10%, var(--surface)); }
.recv-diff { font-size: .78rem; font-weight: 600; }
.recv-diff-unter { color: var(--orange); }
.recv-diff-ueber { color: var(--blau, #3b82f6); }
.recv-diff-rej { color: var(--rot); }
/* Warenannahme-Liste: Kunden-Filter über dem Suchfeld; aktiv = Grexon-Orange (die Wahl bleibt je
   Sitzung stehen — der Rand zeigt, dass die Liste gerade NICHT alles zeigt). */
.recv-kunde-filter { margin: 0 0 0.5rem; }
.recv-kunde-filter select { font-size: 1rem; padding: 0.6rem 0.7rem; }
.recv-kunde-filter select.aktiv { border-color: var(--orange); font-weight: 600; }
/* „Unbekannte Lieferung erfassen" oben unter dem Suchfeld: kompakter als ein Abschluss-Knopf, damit
   die Anlieferungs-Karten auf dem Memor-Display weiter ohne Scrollen anfangen. */
a.sekundaer.recv-unbekannt { margin: 0.5rem 0 0.8rem; padding: 0.6rem; font-size: 1.05rem; }
/* Nachtrag-Rückfrage auf der PO-Übersicht (ohne TR-Box): Karte statt Dialog, Knöpfe wie im Dialog. */
.recv-nachtrag h2 { margin: 0 0 0.5rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.4rem; }
.recv-nachtrag .transfer-card { margin-bottom: 0.5rem; }
.recv-nachtrag p.meta { margin: 0 0 0.7rem; font-size: 0.9rem; }
.recv-nachtrag .dialog-tasten a.sekundaer { flex: 1; padding: 0.7rem; font-size: 1.05rem; border-radius: 10px; }
.recv-nachtrag .dialog-tasten > * { margin-top: 0; }
.recv-abschluss { display: block; text-align: center; margin-top: 1rem; }
/* Scan-Leiste bleibt beim Scrollen oben sichtbar (Box + Feld + Rückmeldung). */
.pal-scan-leiste { position: sticky; top: 0; z-index: 6; background: var(--bg); padding: .4rem 0 .5rem; }
.pal-scan-leiste .transfer-kopf-info { margin-bottom: .35rem; }
.pal-scan-leiste .flash { margin: .5rem 0 0; }
/* Buchen-Balken fixiert unten — nie „wird schon gespeichert haben", weil der Knopf unterm Falz liegt. */
.pal-fuss { position: sticky; bottom: 0; z-index: 6; background: var(--bg);
  display: flex; align-items: center; gap: .6rem; padding: .6rem 0;
  border-top: 1px solid var(--rand); }
.pal-fuss .pal-summe { flex: 1; }
.pal-fuss #pal-total { font-size: 1.35rem; color: var(--orange); }
.pal-fuss .primaer { min-width: 40%; }
.pal-menge { display: flex; align-items: center; gap: .4rem; }
/* .lbl-knopf teilt die Optik, ist aber bewusst KEIN .pal-del — der Lösch-Handler der Palette
   matcht auf .pal-del und würde die Karte beim Etikett-Drucken entfernen. */
.pal-del, .lbl-knopf { border: 1px solid var(--rand); background: var(--surface); color: var(--muted);
  border-radius: 8px; width: 40px; height: 40px; font-size: 1rem; }
.pal-card.pal-blink { outline: 2px solid var(--gruen); }
/* Etikett-Dialog (Drucker-Icon je Positions-Karte, Übersicht + Palette-Modus) */
.lbl-knopf { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.lbl-knopf svg { width: 20px; height: 20px; }
.lbl-optionen { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.7rem 0; }
.lbl-optionen label { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.95rem; }
.lbl-optionen input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
.lbl-anzahl { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.7rem; font-weight: 600; }
.lbl-anzahl input { width: 5.5rem; text-align: center; font-weight: 700; font-size: 1.1rem;
  border: 2px solid var(--rand); border-radius: 10px; padding: 0.45rem; background: var(--bg); color: var(--text); }
#lbl-dialog .flash { margin: 0 0 0.6rem; }
#lbl-ws-link:not([hidden]) { display: block; margin: 0 0 0.6rem; } /* display würde sonst [hidden] schlagen */
.pal-card.pal-ueber .pal-qty { color: var(--blau-hell); border-color: var(--blau-hell); }
.pal-over { color: var(--blau-hell); }
.pal-set-liste { margin: .3rem 0 .6rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }

/* ===================== Scanner-Nav/Dashboard-Umbau (2026-09-16) ===================== */
/* Dashboard: Nachschlage-Kachel (Produktsuche) mit Icon statt Zahl, gleiche Höhe wie die Zähler. */
.dash-kachel.k-search { --c: var(--muted); }
.dash-zahl.dash-icon { display: flex; align-items: center; height: 2.2rem; }
.dash-zahl.dash-icon .ic { width: 1.7rem; height: 1.7rem; }
/* Zweite, kleine Reihe (Retouren-Fotos, Kolli): nur Titel, flacher. */
.dash.dash-klein .dash-kachel { padding: 0.65rem 0.8rem; border-left-width: 4px; }
.dash-kachel.k-kolli { --c: var(--muted); }
.dash-badge { display: inline-block; min-width: 1.4em; padding: 0 0.4em; margin-left: 0.3rem; border-radius: 999px;
  background: var(--c, var(--orange)); color: #fff; font-size: 0.78rem; font-weight: 800; text-align: center; line-height: 1.5; vertical-align: 1px; }
/* Drawer: „Weiteres" abgesetzt, Unterpunkte mit Icon. */
.drawer-weiteres { margin-top: 0.5rem; border-top: 1px solid var(--rand); padding-top: 0.3rem; }
.drawer-weiteres summary { color: var(--muted); }
.drawer-sub .ic { width: 18px; height: 18px; }
/* Produktseite */
.prod-zurueck { margin: 0 0 0.5rem; }
.prod-zurueck a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.prod-kopf { display: flex; gap: 0.9rem; align-items: flex-start; }
.prod-bild { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.3rem; }
.prod-bild a { display: block; line-height: 0; }
.prod-bild img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rand); background: #fff; }
.prod-bild a.prod-bild-weitere { display: none; }        /* weitere Bilder nur in der Lightbox (Galerie blättert) */
.prod-bild-leer { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed var(--rand); color: var(--muted); }
.prod-bild-leer .ic { width: 36px; height: 36px; }
.prod-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.prod-sku { font-size: 1.25rem; font-weight: 800; word-break: break-all; }
.prod-name { font-size: 1rem; line-height: 1.3; }
.prod-aktionen { margin-top: 0.8rem; }
.prod-aktionen .kachel { margin-bottom: 0; padding: 0.8rem; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.prod-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.prod-zahl { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; }
.prod-zahl b { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.prod-zahl span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; text-align: center; }
.prod-zahl-rot b { color: var(--rot); }
.prod-h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; }
a.prod-platz { color: inherit; text-decoration: none; }
a.prod-platz:active { background: var(--hover); }
ul.prod-treffer .scan-produkt { display: flex; }
ul.prod-treffer .scan-produkt-bild.scan-line-bild-leer { width: 56px; height: 56px; border-radius: 8px; border: 1px dashed var(--rand); }

/* ===================== Zählung: Menge als Knopf, Scan-Ziel-Feld (2026-09-17) =====================
   Die Menge ist ein Knopf statt eines Eingabefelds — in ein Feld konnte ein Artikel-Scan als EAN
   fallen (Milliarden-Bestand). Getippt wird nur im Hand-Eingabe-Dialog. */
button.zaehl-qty { position: relative; height: 2.9rem; font-family: inherit; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
button.zaehl-qty:active { background: var(--hover); }
button.zaehl-qty.leer { border-color: var(--rand); color: var(--muted); }
/* „Von Hand gesetzt": gestrichelter Rand + Stift — erklärt, warum ein Scan hier nicht mehr hochzählt. */
.zaehl-qty-hand { position: absolute; top: 2px; right: 3px; opacity: 0; color: var(--muted); }
.zaehl-qty-hand .ic { width: 11px; height: 11px; }
.zaehl-card.manuell button.zaehl-qty { border-style: dashed; }
.zaehl-card.manuell .zaehl-qty-hand { opacity: 0.8; }
/* Pack-Kontrolle (Direktpack): stimmt = grün, angefangen = orange. Eigene Klassen statt
   `.markiert` (das ist der orange Grexon-Akzent der Zähl-/Umlager-Karten und las sich hier
   als Warnung). Rot gibt es nicht: mehr als das Soll lehnt die Kontrolle schon beim Scan ab. */
.zaehl-card.pv-stimmt { border-color: var(--gruen); box-shadow: inset 0 0 0 1px var(--gruen);
  background: color-mix(in srgb, var(--gruen) 10%, var(--surface)); }
.zaehl-card.pv-stimmt .zaehl-qty { border-color: var(--gruen); color: var(--gruen); }
.zaehl-card.pv-laeuft { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
/* Scan-Meldung klebt oben: sie erklärt, warum ein Scan NICHT gezählt hat — am Regal steht der
   Zähler mitten in einer langen Liste und würde eine Meldung am Seitenanfang nie sehen. */
#zaehl-flash { position: sticky; top: 0.4rem; z-index: 5; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
/* Hand-Eingabe: flach und OBEN verankert (2026-09-17). Mit offener Ziffern-Tastatur bleibt am
   Handheld keine halbe Bildschirmhöhe — mittig zentriert rutschte der „Übernehmen"-Knopf unter den
   Rand und man musste im Modal scrollen. Deshalb: oben andocken, Kopf einzeilig, zwei Knöpfe. */
dialog.zaehl-dlg { width: 20rem; padding: 0.8rem; margin-top: 0.5rem; margin-bottom: auto;
  max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; }
.zaehl-dlg-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.zaehl-dlg-kopf strong { font-size: 1.1rem; }
.zaehl-dlg-kopf .meta { white-space: nowrap; }
dialog.zaehl-dlg p.meta { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.zaehl-dlg input { font-size: 1.5rem; font-weight: 800; text-align: center; padding: 0.5rem;
  margin-bottom: 0.6rem; }
dialog.zaehl-dlg input::placeholder { font-size: 0.85rem; font-weight: 400; }
dialog.zaehl-dlg .flash { margin: 0 0 0.6rem; padding: 0.55rem; font-size: 0.9rem; }
/* Abbrechen rot, Übernehmen grün — am Handheld wird nach Farbe getroffen, nicht gelesen. */
.zaehl-dlg-tasten .gefahr { background: var(--surface); color: var(--rot); border: 2px solid var(--rot); }
/* Scan-Ziel: sieht aus wie ein Feld, ist aber keins — kein Fokus, kein Cursor, keine Tastatur.
   Wo nur gescannt werden soll, darf nichts blinken (Entscheid Matthias 2026-09-17). */
.scan-ziel-form { position: relative; }
.scan-ziel-icon { position: absolute; top: 0.72rem; right: 0.8rem; color: var(--muted); pointer-events: none; }
.scan-ziel-icon .ic { width: 22px; height: 22px; }
input.scan-ziel { font-weight: 600; padding-right: 2.9rem; pointer-events: none; caret-color: transparent; }
input.scan-ziel::placeholder { color: var(--muted); font-weight: 400; }

/* --- Gefahrgut (2026-09-20) ---------------------------------------------------------------
   Hinweis AUF der Pack-Seite, ohne Klick (outbound/dangerous.py): das Original-Kennzeichen
   (static/gefahrgut/) plus eine Zeile, was zu tun ist. Wellen-Übersicht: nur das Icon. */
.gefahrgut-streifen { display: flex; align-items: center; gap: .7rem; border: 2px solid var(--rot);
  border-radius: 10px; padding: .55rem .7rem; margin-bottom: .7rem; background: var(--surface); }
.gefahrgut-streifen .gefahrgut-mark { width: 96px; height: auto; flex: none; border-radius: 3px; }
.gefahrgut-streifen div { display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; }
.gefahrgut-streifen strong { color: var(--rot); font-size: 1rem; }
.gefahrgut-streifen:has(.gefahrgut-zusatz) { flex-wrap: wrap; }
.gefahrgut-streifen:has(.gefahrgut-zusatz) > div:not(.gefahrgut-zusatz) { flex: 1 1 100%; order: 2; }
.gefahrgut-streifen .gefahrgut-zusatz { display: flex; flex-direction: row; gap: .5rem; flex: 0 0 auto; order: 1; align-items: center; }
.gefahrgut-streifen .gefahrgut-zusatz img { height: 80px; width: auto; border-radius: 3px; background: #fff; }
.gefahrgut-icon { color: var(--rot); vertical-align: -.15em; }
/* Pack-Pflichten (outbound/packduties.py) — Gegenstück zum Desk, blau statt rot. */
.packpflicht-streifen { border: 2px solid var(--blau-hell); border-radius: 10px; padding: .5rem .7rem;
  margin-bottom: .7rem; background: var(--surface); }
.packpflicht-kopf { display: flex; align-items: center; gap: .35rem; color: var(--blau-hell); font-size: .95rem; }
.packpflicht-streifen ul { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.packpflicht-streifen li { display: flex; align-items: flex-start; gap: .45rem; font-size: .9rem; }
.packpflicht-streifen li > svg { flex: none; margin-top: .1rem; color: var(--blau-hell); }
.packpflicht-streifen li div { display: flex; flex-direction: column; min-width: 0; }
.packpflicht-streifen li span { font-weight: 600; }
/* Pack-Kasten (outbound/packpapers.py) — Gegenstück zum Desk: Papiere als Chips mit Druckstatus,
   Außen-Papiere gelb mit Quittungs-Knopf (grün, sobald quittiert). */
.pp-chips { display: flex; flex-wrap: wrap; gap: .25rem .35rem; margin-top: .15rem; }
.pp-papier { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .1rem .05rem .45rem;
  border: 1px solid var(--rand); border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 600; }
.pp-done > .ic { color: var(--gruen); }
.pp-running > .ic, .pp-held > .ic { color: var(--blau-hell); }
.pp-none > .ic { color: var(--muted); }
.pp-failed { border-color: var(--rot); }
.pp-failed > .ic { color: var(--rot); }
.pp-nachdruck { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 0; }
.pp-stand { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }
.pp-stand.pp-failed { color: var(--rot); font-weight: 600; }
.pp-aussen { border: 3px solid var(--gelb); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .7rem;
  background: color-mix(in srgb, var(--gelb) 14%, var(--surface)); display: flex; flex-direction: column; gap: .45rem; }
.pp-aussen strong { display: flex; align-items: center; gap: .35rem; font-size: .95rem; }
.pp-aussen-text { display: flex; flex-direction: column; gap: .15rem; }
.pp-aussen-confirmed { border-color: var(--gruen); background: color-mix(in srgb, var(--gruen) 8%, var(--surface)); }
.pp-aussen-held { border-color: var(--rand); background: var(--surface); }
.pp-bestaetigen { width: 100%; }
.pp-bestaetigt { display: inline-flex; align-items: center; gap: .35rem; color: var(--gruen); font-weight: 700; }
.pp-bestaetigt small { color: var(--muted); font-weight: 400; }
.pp-fehler { color: var(--rot); font-weight: 600; margin: 0 0 .4rem; }


/* Klärfall (outbound/parking.py): rot = beiseitestellen (Standard-Knopf `gefahr`), gelb-rot = liegt beiseite,
   grün = Admin hat freigegeben. Ampel-Pillen in der Pack-Liste. Desk-Zwilling: static/desk.css. */
.karte.klaerfall-rot { border: 3px solid var(--rot); background: color-mix(in srgb, var(--rot) 8%, var(--surface)); }
.karte.klaerfall-rot > h2 { color: var(--rot); margin-top: 0; }
.karte.klaerfall-offen { border: 2px solid var(--rot); }
.karte.klaerfall-offen > h2 { color: var(--rot); margin-top: 0; }
.karte.klaerfall-behoben { border: 3px solid var(--gruen); background: color-mix(in srgb, var(--gruen) 10%, var(--surface)); }
.karte.klaerfall-behoben > h2 { color: var(--gruen); margin-top: 0; }
.ampel { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff; white-space: nowrap; }
.ampel.gruen { background: #2b8a3e; }
.ampel.rot { background: #c92a2a; }
.liste li.klaerfall-gruen { border-left: 5px solid #2b8a3e; }
.liste li.klaerfall-rot { border-left: 5px solid #c92a2a; }

/* ===================== Direktpack: Pakettyp-Kacheln + Live-Gewicht (2026-09-21) =====================
   Kacheln für Handschuhe: 3 je Zeile auf dem Handheld (375 px), ≥ 60 px hoch. Ein Tipp legt das
   Paket an — der Server liest die Waage; während das läuft, sind alle Kacheln gesperrt. */
.pd-typen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.7rem; }
.pd-typen.pd-sonder { grid-template-columns: repeat(2, 1fr); }
button.pd-typ { min-height: 3.8rem; padding: 0.5rem 0.3rem; margin: 0; background: var(--surface);
  border: 2px solid var(--orange); border-radius: 12px; color: var(--orange); font-size: 1.25rem;
  font-weight: 800; line-height: 1.15; cursor: pointer; touch-action: manipulation; overflow-wrap: anywhere; }
button.pd-typ small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }
button.pd-typ:active { background: var(--hover); }
button.pd-typ:disabled { opacity: 0.45; cursor: progress; }
/* Verpackungsart (Box.kind): Farbe als Hauptsignal (wie am Desk) — Tüte Türkis + gestrichelt, Karton
   Kraftpapier-Braun; Rand, Schrift und die getönte Marke oben tragen die Art — gedämpft, kein Hinweis-Look. */
button.pd-typ.art-bag { --art: var(--tuete); border-style: dashed; }
button.pd-typ.art-carton { --art: var(--karton); }
button.pd-typ.art-bag, button.pd-typ.art-carton { border-color: color-mix(in srgb, var(--art) 60%, var(--rand));
  color: var(--art); background: color-mix(in srgb, var(--art) 4%, var(--surface)); }
.pd-art { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin: -0.2rem -0.1rem 0.25rem;
  padding: 0.1rem 0.2rem; border-radius: 6px; background: color-mix(in srgb, var(--art) 16%, var(--surface));
  color: var(--art); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-art .ic { width: 1.5em; height: 1.5em; stroke-width: 2.4; }
.pd-sonder button.pd-typ { border-color: var(--rand); color: var(--text); font-size: 1rem; font-weight: 700; }
.pd-custom { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--rand); }
.pd-masse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pd-masse input { width: 100%; box-sizing: border-box; }
/* Sticky: muss direktes Kind von #panel sein. Das Scan-Feld bekommt scroll-margin, damit der
   Fokus-Scroll es nicht unter die Leiste schiebt. */
.pd-waage { position: sticky; top: 0; z-index: 6; display: flex; align-items: baseline;
  justify-content: space-between; gap: 0.6rem; margin-bottom: 0.75rem; padding: 0.45rem 0.9rem;
  background: var(--surface); border: 1px solid var(--rand); border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.pd-waage-titel { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.pd-waage-wert { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gruen); text-align: end; }
.pd-waage-wert::after { content: " · " attr(data-msg-stable); font-size: 0.85rem; font-weight: 600; }
.pd-waage-wert.live-instabil { color: var(--gelb); }
.pd-waage-wert.live-instabil::after { content: " · " attr(data-msg-unstable); }
.pd-waage-wert.live-weg { color: var(--muted); font-size: 1rem; font-weight: 600; }
.pd-waage-wert.live-weg::after { content: none; }
#pd-code, #pd-gewicht { scroll-margin-top: 11rem; } /* Leiste + Meldung + Karten-Kopf bleiben im Bild */
.pd-sonder button.pd-typ .ic { display: block; margin: 0 auto 0.15rem; }
#pd-erfassen h2 { margin-top: 0; }

/* Pick-Anweisung nur mit Werten (2026-09-21): Lagerplatz und SKU groß, ohne Label davor — das
   Icon trägt die Bedeutung. Nur für Einzel- und Wellen-Pick; der Sortier-Schritt behält seinen
   Anweisungstext. */
.pick-anweisung-liste.anw-gross li { padding: 0.6rem 0.7rem; }
.pick-anweisung-liste.anw-gross .anw-text { display: flex; align-items: center; gap: 0.5rem; }
.pick-anweisung-liste.anw-gross .anw-text .ic { flex: none; font-size: 1.3rem; color: var(--muted); }
.pick-anweisung-liste.anw-gross strong { font-size: 1.7rem; font-weight: 800; line-height: 1.15;
  font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* Karton-Pack (Sperrgut an OUT-BULKY, 2026-09-21): offene Stücke als antippbare Kacheln —
   Bild links, SKU groß; antippen = Ware ohne Barcode (mit Rückfrage). */
.pk-stuecke { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
button.pk-stueck { display: flex; align-items: center; gap: 0.7rem; width: 100%; margin: 0; padding: 0.55rem 0.7rem;
  background: var(--surface); border: 1px solid var(--rand); border-radius: 12px; color: var(--text);
  text-align: start; cursor: pointer; touch-action: manipulation; }
button.pk-stueck:active { background: var(--hover); }
button.pk-stueck:disabled { opacity: 0.45; cursor: progress; }
button.pk-stueck img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.pk-stueck-text { min-width: 0; }
.pk-stueck-text strong { display: block; font-size: 1.15rem; overflow-wrap: anywhere; }
.pk-stueck-text small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
#pk-karton h2 { margin-top: 0; }

/* Direktpack: Quittung je Paket + fixierte Fußleiste (2026-09-21, packdirect.js).
   Die neue Zeile blitzt grün auf und landet am oberen Bildrand — darunter stehen dann Summe,
   Live-Gewicht, Meldung und das Scan-Feld. */
tr.pd-neu { scroll-margin-top: 0.4rem; animation: pd-neu-blitz 2.4s ease-out 1; }
tr.pd-neu td { font-weight: 700; }
@keyframes pd-neu-blitz { 0%, 35% { background: rgba(43, 138, 62, 0.35); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.pd-neu { animation: none; background: rgba(43, 138, 62, 0.18); } }
#pd-fehler { scroll-margin-top: 4rem; }
.pd-fuss { position: sticky; bottom: 0; z-index: 6; margin: 0.75rem -1rem -1rem; padding: 0.5rem 1rem 0.7rem;
  background: var(--bg); border-top: 1px solid var(--rand); box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18); }
.pd-fuss-summe { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.35rem; text-align: center; }
.pd-fuss-summe strong { color: var(--text); }
.pd-fuss button.primaer { margin: 0; }
/* Fokus-Scroll kennt die Fußleiste nicht — Eingaben (Custom, Gewicht) nicht darunter schieben. */
#pd-erfassen input { scroll-margin-bottom: 7rem; }

/* Auftrags-Umfang vor dem Pick (2026-09-21): Stückzahl in der Liste + Positions-Vorschau mit Bild
   unter dem Pick-Location-Scan — danach wird der Behälter gewählt. */
.pick-stueck { color: var(--text); font-weight: 700; }
.pick-vorschau-kopf { margin-top: 0; }
.pick-vorschau { list-style: none; margin: 0; padding: 0; }
.pick-vorschau li { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0; border-top: 1px solid var(--rand); }
.pick-vorschau li:first-child { border-top: none; }
.pick-vorschau img, .pick-vorschau-leer { width: 56px; height: 56px; flex: none; object-fit: contain;
  border-radius: 8px; background: var(--hover); display: block; }
.pick-vorschau-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pick-vorschau-text strong { display: block; font-size: 1.05rem; }
.pick-vorschau-text small { display: block; font-size: 0.8rem; color: var(--muted); }
.pick-vorschau-menge { flex: none; text-align: end; font-size: 1.6rem; font-weight: 800; line-height: 1;
  color: var(--orange); font-variant-numeric: tabular-nums; }
.pick-vorschau-menge small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-top: 0.15rem; }
.produktkopf small .pick-stueck { font-size: 1.05rem; color: var(--orange); }
ul.liste .meta .pick-stueck { font-size: 0.95rem; }

/* Serien-Piktogramm (templates/serie/_pakete.html) — dieselbe Aussage wie am Desk-Packtisch:
   N Pakete mit je X Stück, NICHT alles in eines (Vorfall 2026-09-21). */
.serie-pakete { display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0; }
.serie-richtig, .serie-falsch { display: flex; flex-direction: column; gap: .35rem; padding: .6rem .7rem;
  border-radius: 8px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.serie-richtig { --c: var(--gruen); }
.serie-falsch { --c: var(--rot); flex-direction: row; align-items: center; justify-content: space-between; }
.serie-kopf { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; line-height: 1.1; }
.serie-falsch .serie-kopf { font-size: 1rem; color: var(--c); }
.serie-marke { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em;
  border-radius: 50%; background: var(--c); color: #fff; font-size: .75em; font-weight: 800; }
.serie-reihe { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.serie-paket { position: relative; width: 44px; flex: none; }
.serie-paket svg { display: block; width: 100%; height: auto; fill: color-mix(in srgb, var(--c) 16%, var(--surface));
  stroke: var(--c); stroke-width: 3; stroke-linejoin: round; }
.serie-paket b { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: .85rem; font-weight: 800; line-height: 1; }
.serie-paket-gross { width: 56px; }
.serie-paket-gross b { font-size: 1rem; left: 50%; right: auto; transform: translateX(-50%); padding: .1em .3em; border-radius: 5px; background: var(--surface); color: var(--rot); }
.serie-kreuz { fill: none; stroke: var(--rot); stroke-width: 5; stroke-linecap: round; }
.serie-mehr { display: inline-flex; align-items: center; justify-content: center; width: 44px; aspect-ratio: 48 / 38; margin-top: 4px;
  border: 2px dashed var(--c); border-radius: 4px; font-size: .85rem; font-weight: 800; color: var(--c); }
.serie-satz { font-size: .95rem; font-weight: 600; }

/* ---- Arabisch (nur am Scanner, 2026-09-21) — „schlanker Weg": Text ja, gespiegeltes Layout nein ----
   Das Layout bleibt LTR (Drawer, Pfeile, Abstände unverändert). `unicode-bidi: plaintext` gibt
   jedem Absatz die Richtung seines ERSTEN starken Zeichens: arabische Sätze laufen rechtsbündig
   mit dem Satzzeichen am richtigen Ende, ein nackter Platz-Code oder eine Zahl bleibt LTR. Dafür
   stehen oben überall `text-align: start/end` statt left/right — bei LTR dasselbe, hier folgt es
   dem Absatz. Codes MITTEN im arabischen Satz isoliert der Server (core/bidi.py), nicht das CSS.
   letter-spacing reißt die verbundene arabische Schrift auseinander → aus. */
html[lang="ar"] body *:not(svg):not(svg *) { unicode-bidi: plaintext; letter-spacing: 0; }
html[lang="ar"] body { line-height: 1.5; }
/* Leeres Feld = arabischer Platzhalter → rechtsbündig mit „…" am richtigen Ende; sobald etwas
   drinsteht (Scan, Code, Menge), gilt wieder LTR. */
html[lang="ar"] input:placeholder-shown, html[lang="ar"] textarea:placeholder-shown { direction: rtl; }


/* Seriennummern-Schritt am Packen (scanner/partials/pack_serials.html). */
.sn-liste { margin: .4rem 0 0; padding-left: 1.8rem; max-height: 14rem; overflow: auto; }
.sn-liste li { padding: .15rem 0; }
.sn-liste li.sn-neu { background: rgba(46, 125, 50, .15); }
.sn-weg { background: none; border: 0; color: var(--rot, #c62828); font-size: 1.1rem; padding: 0 .5rem; width: auto; }

/* Master-Code-Regel als Piktogramm (templates/serials/_master_hinweis.html). */
.sn-master-hinweis { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .5rem 0 .2rem; font-size: .9rem; }
.sn-mh-teil { display: inline-flex; align-items: center; gap: .35rem; }
.sn-mh-teil .ic { width: 1.4em; height: 1.4em; flex: none; }
.sn-mh-ok .ic { color: var(--gruen, #2b8a3e); }
.sn-mh-nein .ic { color: var(--gelb, #b66a00); }

/* ---- Seriennummern erfassen (Annahme + Pick, 2026-09-23 — static/serialcapture.js) ----
   Große Zahl statt Liste: beim Scannen schaut man selten hin; die Liste ist zum Nachsehen/Entfernen
   zugeklappt. Konflikte (schon im Bestand, falscher Platz) stehen rot direkt unter der Meldung. */
.snr-box-zeile { display: flex; gap: .5rem; align-items: center; }
.snr-box-zeile input { flex: 1; }
.snr-box-zeile input[readonly] { background: var(--hover); font-weight: 700; }
.snr-box-wechsel { width: auto !important; padding: .5rem .7rem !important; margin: 0 !important; font-size: .9rem !important; }
.snr-box-info { color: var(--gruen); font-weight: 600; margin: .3rem 0 0; }
.snr-zaehler { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: .8rem 0 .4rem; }
.snr-zaehler .snr-count { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--orange); }
.snr-zaehler .snr-einheit { font-weight: 600; }
.snr-zaehler .snr-soll { flex-basis: 100%; }
.snr-zaehler .snr-soll.snr-ueber { color: var(--gelb); font-weight: 700; }
.snr-bereit { margin: 0 0 .5rem; }
.snr-konflikte { list-style: none; padding: .5rem .7rem; margin: 0 0 .75rem; border: 2px solid var(--rot);
  border-radius: 8px; color: var(--rot); font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.snr-konflikte li + li { margin-top: .25rem; }
.snr-ignoriert { margin: 0 0 .75rem; font-size: .85rem; color: var(--muted); }
.snr-ignoriert ul { margin: .3rem 0 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.snr-liste-box { margin: .75rem 0; }
.snr-liste-box summary { font-weight: 600; cursor: pointer; padding: .4rem 0; }
.snr-liste { margin: .3rem 0 .6rem; padding-left: 2.6rem; font-family: ui-monospace, monospace; font-size: .95rem; }
.snr-liste li { padding: .2rem 0; border-bottom: 1px solid var(--rand); overflow: hidden; }
.snr-liste li::marker { color: var(--muted); }
.snr-liste li span { overflow-wrap: anywhere; }
.snr-liste li.konflikt { color: var(--rot); font-weight: 700; }
.snr-weg { border: 1px solid var(--rand); background: var(--surface); color: var(--muted);
  border-radius: 6px; padding: .1rem .5rem; font-size: .9rem; cursor: pointer; }
.snr-scanfeld { margin: 0 0 .75rem; }
.snr-scan { width: 100%; font-family: ui-monospace, monospace; font-size: 1rem; resize: none; min-height: 2.8rem; }
.snr-warnungen { list-style: none; padding: .5rem .7rem; margin: 0 0 .75rem; border: 2px solid var(--gelb);
  border-radius: 8px; color: var(--gelb); font-weight: 600; font-size: .9rem; }
.snr-roh { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; background: var(--hover);
  padding: .4rem; border-radius: 6px; max-height: 12rem; overflow: auto; margin: .2rem 0 0; }
.snr-liste .snr-weg { float: none; margin: 0 .5rem 0 0; }
/* Seriennummern-Hinweis im Pick-Schritt: eigene Zeile unter der SKU — inline quetschte er die große
   SKU in zwei Zeilen („2549 / 8"). */
.pick-anweisung-liste .anw-text:has(.anw-snr) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; }
.pick-anweisung-liste .anw-snr { flex-basis: 100%; font-size: .85rem; font-weight: 600; color: var(--muted); }
/* Direktversand (ADR 0020): Ampel-Karte je gescanntem Auftrag */
.dv-karte { border-radius: 12px; padding: 0.9rem; margin-bottom: 0.75rem; border: 2px solid var(--c, var(--rand));
  background: color-mix(in srgb, var(--c, var(--muted)) 12%, var(--surface)); }
.dv-karte .dv-titel { font-size: 1.25rem; font-weight: 700; color: var(--c, var(--text)); }
.dv-karte .dv-ref { font-size: 1.05rem; font-weight: 600; margin-top: 0.2rem; }
.dv-karte form { margin-top: 0.6rem; }
.dv-gruen { --c: var(--gruen); }
.dv-gelb { --c: var(--gelb); }
.dv-orange { --c: var(--orange); }
.dv-rot { --c: var(--rot); }
.dv-grau { --c: var(--muted); }
.dash-kachel.k-direkt { --c: var(--gruen); }
/* Betriebsbedarf/Klärfall (plan-wareneingang-betriebsbedarf.md): Anweisung über allem anderen */
.bb-anweisung { border-left: 6px solid var(--orange); }
.bb-anweisung .bb-ziel { font-size: 1.45rem; font-weight: 800; margin: 0; }
.bb-anweisung .bb-text { font-size: 1.15rem; margin: 0.35rem 0 0; }
.bb-anweisung .meta { margin: 0.35rem 0 0; }
label.karte.bb-item { display: flex; gap: 0.7rem; align-items: center; font-size: 1.05rem; color: var(--text); margin: 0 0 0.5rem; }
label.karte.bb-item input { width: 1.6rem; height: 1.6rem; flex: none; }
.recv-po.recv-bb { border-left: 5px solid var(--blau-hell); }
.recv-po.recv-kf { border-left: 5px solid var(--orange); }

/* Boxvorschlag vor dem Pick-Start (outbound/pickvolume.py, Anlass OUT-0898, 2026-10-06). */
.boxhint { margin: 0.4rem 0 0.3rem; font-size: 1.05rem; }
.boxhint-l { font-size: 1.4rem; color: var(--gruen); }
.boxhint-gross { color: var(--gelb); font-weight: 600; }
/* Passt eine Box, rückt der Druck-Knopf für einen neuen Einmal-Träger hinter eine Rückfrage. */
.pickloc-notfall { margin-left: auto; }
.pickloc-notfall > summary { color: var(--muted); font-size: 0.85rem; cursor: pointer; list-style: none; }
.pickloc-notfall[open] { width: 100%; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.boxhint-trotzdem { margin: 0.3rem 0 0.6rem; }
.boxhint-l-klein { color: var(--gruen); }
