/* Handy-Scan am PC (Bauplan 2026-11-17-web-app-handy-scan, HS11): das Blatt rechts unter dem Kopfband wie die Akte (448 px),
   eingeklappt eine schmale Leiste unten rechts über den Meldungen. Vorsatz hs- (die Handy-Seite hat oo.scan.css). Eckig 3 px,
   Haarlinien, kein blauer Hauptknopf; Blau nur für den Fokus. */

.hs-blatt { position: fixed; z-index: 25; top: 40px; right: 0; bottom: 0; width: min(448px, 100vw); display: flex; flex-direction: column;
  border-left: 1px solid var(--linie-stark); background: var(--flaeche); box-shadow: -14px 0 36px rgba(15, 23, 42, .16); }
.hs-blatt .hs-kopf { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 14px;
  border-bottom: 1px solid var(--linie); color: var(--tinte-4); }
.hs-blatt .hs-titel { flex: 1 1 auto; min-width: 0; color: var(--tinte-1); font-size: 13.5px; }
/* Der Rumpf rollt selbst (die Seite dahinter rollt nie als Dokument). */
.hs-blatt .hs-rumpf { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.hs-blatt .hs-fuss { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); }

.hs-code { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 12px; border: 1px solid var(--linie);
  border-radius: 3px; }
/* Der Code bleibt schwarz auf weiß, auch im dunklen Design (sonst liest die Kamera ihn nicht). */
.hs-qr { display: block; width: 220px; height: 220px; background: #fff; border-radius: 3px; image-rendering: pixelated; }
.hs-hinweis, .hs-gueltig, .hs-verbunden { margin: 0; text-align: center; font-size: 12.5px; }
.hs-hinweis { color: var(--tinte-2); }
.hs-gueltig { color: var(--tinte-5); font-variant-numeric: tabular-nums; }
.hs-verbunden { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; background: var(--ok-grund); color: var(--ok); }

.hs-fehler, .hs-ohne-ki, .hs-beendet { margin: 0; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 3px; font-size: 12.5px; }
.hs-fehler { border-color: var(--alarm); background: var(--alarm-grund); color: var(--alarm); }
.hs-ohne-ki { background: var(--warn-grund); color: var(--tinte-2); }
.hs-ohne-ki a { color: var(--tinte-1); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.hs-beendet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--tinte-2); }
.hs-beendet p { margin: 0; }
.hs-leer { margin: 0; color: var(--tinte-5); font-size: 12.5px; }

.hs-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie-fein); }
.hs-eintrag { display: flex; flex-direction: column; gap: 4px; padding: 8px 2px; border-bottom: 1px solid var(--linie-fein); }
.hs-zeile { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; }
.hs-stand { flex: 0 0 auto; padding: 1px 6px; border-radius: 3px; background: var(--flaeche-2); color: var(--tinte-3); font-size: 11.5px; }
.hs-lieferant { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--tinte-1); text-overflow: ellipsis; white-space: nowrap; }
.hs-betrag { flex: 0 0 auto; margin-left: auto; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.hs-satz { margin: 0; color: var(--tinte-4); font-size: 12px; }
.hs-aktionen { display: flex; gap: 6px; }
.hs-aktionen .kn { height: 26px; }
/* Die Farbe trägt den Stand: gespeichert grün, zu prüfen und als Foto bernstein, Fehler rot, schon vorhanden violett. */
.hs-art-gespeichert .hs-stand { background: var(--ok-grund); color: var(--ok); }
.hs-art-zu_pruefen .hs-stand, .hs-art-als_foto .hs-stand { background: var(--warn-grund); color: var(--warn); }
.hs-art-vorhanden .hs-stand { background: var(--violett-grund); color: var(--violett); }
.hs-art-fehler .hs-stand { background: var(--alarm-grund); color: var(--alarm); }

/* Eingeklappt: eine Leiste unten rechts; die Meldungen rücken darüber. */
.hs-leiste { position: fixed; z-index: 26; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 34px;
  padding: 0 12px; border: 1px solid var(--linie-stark); border-radius: 3px; background: var(--flaeche); color: var(--tinte-1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14); font: inherit; font-size: 12.5px; cursor: pointer; }
.hs-leiste:hover { background: var(--flaeche-2); }
body:has(.hs-leiste) .oo-meldungen { bottom: 60px; }

/* Der Eintrag im Menü „Neuer Beleg“ der Buchhaltung ist ein Knopf (öffnet das Blatt): er sieht aus wie die Verweise daneben. */
.bh-neu-menue .hs-menue { padding: 7px 12px; border: 0; background: none; color: var(--tinte); font: inherit; font-size: 13px;
  text-align: left; cursor: pointer; }
.bh-neu-menue .hs-menue:hover, .bh-neu-menue .hs-menue:focus-visible { background: var(--flaeche-2); }

/* Handy: über den ganzen Schirm unter dem Kopfband und über der Leiste unten; die Leiste „Handy-Scan“ über der Leiste unten. */
@media (max-width: 640.98px) {
  .hs-blatt { z-index: 30; width: 100vw; border-left: 0; box-shadow: none; }
  .hs-blatt .hs-fuss .kn { height: 40px; font-size: 15px; }
  body:has(.oo-hl) .hs-leiste { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 12px); }
  body:has(.oo-hl):has(.hs-leiste) .oo-meldungen { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 56px); }
}
