/* BONVID: ruhiger Arbeitsbereich. Liegt nach den seitenbezogenen Stylesheets,
   damit die bestehenden Interaktionen und mobilen Listen erhalten bleiben. */
:root {
  --tinte: #1b3040;
  --leise: #596e7b;
  --linie: #dfe7ea;
  --papier: #f3f7f8;
  --flaeche: #fff;
  --flaeche-leise: #f7fafb;
  --gruen: #0d7371;
  --gruen-dunkel: #075e5c;
  --gruen-hell: #e8f5f3;
  --rot: #a74635;
  --rot-hell: #fff3ee;
  --gold: #8b641a;
  --gold-hell: #fff9ee;
  --fokus: #008f89;
  --sidebar-width: 232px;
  --sans: "IBM Plex Sans", "Segoe UI", -apple-system, sans-serif;
  --serif: var(--sans);
  --ink: var(--tinte);
  --muted: var(--leise);
  --line: var(--linie);
  --navy: #132d46;
  --blue: var(--gruen);
  --pale: var(--papier);
  --orange: var(--gold);
  --green: var(--gruen);
}
body { font-size: 14px; line-height: 1.5; }
.sidebar { border-color: var(--linie); box-shadow: 2px 0 14px rgba(19,45,70,.025); }
.brand { display: block; margin: 0 15px 14px; padding: 16px 0 15px; border-bottom: 1px solid var(--linie); }
.brand-logo { display: block; }
.brand-logo img { display: block; width: 150px; height: auto; }
.brand small { margin-top: 2px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.main-nav { padding: 0 11px 20px; }
.nav-label { margin: 17px 12px 8px; color: var(--leise); font-size: 10px; letter-spacing: .12em; }
.main-nav a { min-height: 39px; align-items: center; padding: 8px 12px; border-radius: 7px; color: #455b69; font-size: 13px; font-weight: 500; }
.main-nav a.active { background: var(--gruen-hell); color: var(--gruen-dunkel); box-shadow: none; font-weight: 600; }
.main-nav a:hover { border-radius: 7px; }
.nav-zahl { color: #748995; }
.main-nav a.active .nav-zahl { color: var(--gruen-dunkel); }
.sidebar-account { margin: auto 12px 0; padding: 15px 4px 2px; border-color: var(--linie); }
.avatar { border-radius: 6px; background: var(--papier); font-family: var(--sans); }
.shell { max-width: 1500px; padding: 31px 38px 70px; }
h1 { font-family: var(--sans); font-size: 28px; font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--leise); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.intro, .detail-head, .titel { padding-bottom: 0; border-bottom: 0; margin-bottom: 24px; }
.intro p, .detail-head p, .titel .untertitel { color: var(--leise); }
.intro > h1 { flex-basis: 100%; }
.titel { align-items: flex-end; }
.titel-text h1 { margin: 0; }
.titel .untertitel { margin-top: 5px; }
.button, button { min-height: 38px; border-radius: 6px; padding: 8px 14px; font-size: 13px; transition: background .12s, border-color .12s; }
.button.start { min-height: 42px; border-color: var(--gruen); background: var(--gruen); box-shadow: 0 2px 5px rgba(13,115,113,.12); }
.button.start:hover { background: var(--gruen-dunkel); }
.secondary { border-color: #cedbdf; background: var(--flaeche); color: var(--tinte); }
.secondary:hover { border-color: #a9c1c7; background: #f4f9fa; }
.link { color: var(--gruen); }
.panel { margin-bottom: 22px; padding: 21px 23px 23px; border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche); }
.intro + .panel, .titel + .panel { border-top: 1px solid var(--linie); padding-top: 21px; }
.panel-head { margin-bottom: 15px; }
.metrics { gap: 12px 24px; margin: 0 0 20px; padding: 16px 21px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; }
.metrics:has(+ .panel) { border: 1px solid var(--linie); }
.metrics strong { font-family: var(--sans); font-size: 20px; letter-spacing: -.03em; }
.metrics article:not(:last-child) { padding-right: 23px; border-right: 1px solid var(--linie); }
.badge.offen { color: var(--gruen-dunkel); }
select, input, textarea { min-height: 38px; padding: 8px 10px; border-color: #ccd9dd; border-radius: 6px; background: #fff; font-size: 13px; }
input[type=checkbox] { min-height: 0; border-radius: 3px; }
textarea { line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--leise); }
table { font-size: 13px; }
th { padding: 11px 12px; border-top: 0; background: #f8fafb; color: var(--leise); font-size: 10px; letter-spacing: .075em; }
td { padding: 10px 12px; }
.clickable:hover, tbody tr:hover td { background: #f5faf9; }
.alert, .success, .stoerungen, .ausfaelle { border-radius: 0 7px 7px 0; }
.alert, .stoerungen, .ausfaelle { color: #813d2e; }
.hinweise { display: grid; gap: 0; margin: 14px 0 20px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; overflow: hidden; }
.hinweise li { padding: 9px 14px; border-bottom: 1px solid var(--linie); color: #4c5e68; }
.hinweise li:last-child { border-bottom: 0; }
.hinweise li.frist { background: var(--gold-hell); color: #574a35; }
.hinweise .stufe { color: var(--gold); }
.hinweise a { color: var(--gruen-dunkel); }
.hinweise li.frist a { color: #765819; }
.ruhig { margin-bottom: 16px; }
.auth-shell { background: radial-gradient(circle at 50% 0, #e9f4f4 0, var(--papier) 42%); }
.auth-card { width: min(430px,100%); padding: 32px 34px 36px; border: 1px solid var(--linie); border-top: 0; border-radius: 10px; box-shadow: 0 18px 40px rgba(19,45,70,.07); }
.auth-logo { margin-bottom: 22px; }
.auth-logo img { display: block; width: 180px; height: auto; }
.auth-card h1 { font-size: 25px; }
.auth-card .stack { margin-top: 25px; }
.auth-card .stack label { gap: 7px; }
.auth-card button { margin-top: 7px; }
.auth-weg { margin: 18px 0 0; font-size: 13.5px; }
.auth-weg a { color: var(--gruen); font-weight: 500; }
.logo { border-radius: 6px; }
.market-icon { border-radius: 6px; }
.einstellung { padding: 13px 0; }
.gruppe legend { color: var(--leise); }
.formular-klappe > summary { align-items: center; }

/* Der Prüfplatz hält Video und Entscheidung nebeneinander. */
.receipt-shell { padding-top: 25px; }
.receipt-toolbar { padding: 0 0 16px; margin-bottom: 20px; border-color: var(--linie); }
.receipt-toolbar .review-nav { gap: 7px; }
.receipt-toolbar .stelle { padding-right: 7px; }
.receipt-shell .detail-head { margin: 0 0 20px; padding: 0; }
.receipt-shell .detail-head h1 { font-size: 28px; }
.betrag-kopf .large { color: var(--tinte); }
.receipt-shell .detail-grid { grid-template-columns: minmax(0,1fr) minmax(300px,340px); gap: 24px; }
.player video, .receipt-shell .clip-warten { border-radius: 8px 8px 0 0; background: #101d24; }
.receipt-shell .clip-warten { color: #e3eaeb; }
.receipt-timeline { margin-top: 16px; }
.receipt-timeline-track { border-radius: 3px; background: #dbe3e5; }
.player-actions { margin-bottom: 11px; }
.review { top: 20px; padding: 20px; border: 1px solid var(--linie); border-radius: 9px; background: #fff; }
.review .abschnitt-kopf { padding-top: 0; border-top: 0; }
.urteil button { min-height: 48px; border-radius: 6px; }
.review .pruefform { margin-top: 14px; }
.belegdaten { padding-top: 18px; border-color: var(--linie); }
.bon-zeilen { border-color: var(--linie); }

/* Übersicht: Status, Filter und Tabelle als drei klare Arbeitsschritte. */
.reiter { gap: 7px; padding: 9px 12px; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }
.reiter a { align-items: center; gap: 6px; margin: 0; padding: 7px 11px; border: 1px solid transparent; border-radius: 6px; font-size: 12.5px; }
.reiter a b { font-family: var(--sans); font-size: 14px; }
.reiter a.aktiv { border-color: #c5e4e0; background: var(--gruen-hell); color: var(--gruen-dunkel); }
.reiter a.aktiv b { color: var(--gruen-dunkel); }
.letzte-liste { padding: 7px 9px; font-size: 12px; }
.letzte-liste b { font-family: var(--sans); }
.werkzeuge { gap: 14px 16px; margin: 18px 0 0; padding: 16px 18px 18px; border: 1px solid var(--linie); border-radius: 8px 8px 0 0; background: #fff; }
/* One height for every control, or the date fields stand taller and lift their labels. */
.werkzeuge > label > select, .werkzeuge > label > input { height: 36px; min-height: 0; }
.werkzeuge .arten-wahl > summary { height: 36px; padding-top: 7px; padding-bottom: 7px; border-color: #ccd9dd; }
.werkzeuge + #sammelform { margin-top: 0; border-top: 0; border-radius: 0 0 8px 8px; }
.werkzeuge + .leer { margin-top: 0; }
/* clip, not hidden: hidden makes a scroll box, and the sticky action bar
   inside would stay at the end of a long list instead of the screen edge. */
#sammelform { overflow: clip; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }
#sammelform .table-wrap { overflow-x: auto; }
.receipt-table th:first-child, .receipt-table td:first-child { padding-left: 18px; }
.receipt-table td { padding-top: 8px; padding-bottom: 8px; }
.receipt-preview { border-radius: 4px; background: #e1e9e9; }
.tageskopf th { padding: 16px 12px 8px 18px; border-bottom-color: var(--linie); background: #fbfcfc; }
.receipt-table tbody:first-of-type .tageskopf th { padding-top: 15px; }
.tageskopf .tag { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.receipt-link { color: var(--gruen); }
.receipt-row:hover td, .receipt-row:focus-visible td { background: #f5faf9; }
.receipt-row.auffaellig:not(.bon-folge) td:first-child { box-shadow: inset 3px 0 var(--rot); }
.receipt-table .amount { color: var(--tinte); }
.receipt-time { font-family: var(--mono); }
#sammelform .bulk { border-color: var(--linie); }
.pagination { padding: 0 3px; }
.market-summary { border-color: var(--linie); }
.leer { padding: 22px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }
.leer .leer-titel { font-family: var(--sans); font-size: 18px; font-weight: 600; }

@media (max-width: 1200px) {
  :root { --sidebar-width: 212px; }
  .shell { padding: 27px 24px 50px; }
}
@media (max-width: 960px) {
  .receipt-shell .detail-grid { display: flex; flex-direction: column; gap: 0; }
  .receipt-shell .detail-grid > .player { display: contents; }
  .receipt-shell .detail-grid > .player > * { flex-shrink: 0; }
  .receipt-shell .detail-grid > .player > video,
  .receipt-shell .detail-grid > .player > .clip-warten,
  .receipt-shell .detail-grid > .player > .video-leer { width: 100%; }
  .receipt-shell .detail-grid > .player > .bon-zeilen { order: 2; }
  .receipt-shell .detail-grid > .player > .clip-bestand { order: 3; }
  .review { position: static; order: 1; margin-top: 20px; }
}
@media (max-width: 760px) {
  .sidebar { box-shadow: none; }
  .brand { margin: 0 16px; padding: 8px 0 5px; border-bottom: 0; }
  .brand small { display: none; }
  .brand-logo img { width: 124px; }
  .main-nav { padding: 0 12px 8px; }
  .main-nav a { min-height: 36px; padding: 7px 10px; }
  .main-nav a.active { background: var(--gruen-hell); box-shadow: none; }
  .shell { padding: 23px 16px 44px; }
  .titel { align-items: stretch; }
  .button.start { width: 100%; }
  .reiter { gap: 1px; flex-wrap: nowrap; overflow-x: auto; padding: 7px; }
  .reiter a { flex-shrink: 0; }
  .letzte-liste { display: none; }
  .werkzeuge { padding: 15px; }
  .register tr.receipt-row { margin: 0 13px; }
  .receipt-table .tageskopf th { padding-left: 14px; }
  .receipt-shell .detail-head h1 { font-size: 24px; }
  .review { padding: 18px; }
  .panel { padding: 18px; }
  .metrics article:not(:last-child) { padding-right: 0; border-right: 0; }
}
@media (max-width: 520px) {
  .auth-card { padding: 26px 22px 30px; }
  .hinweise li { display: block; }
  .hinweise a { display: inline-block; margin: 3px 0 0; }
  /* Two columns; market and period over the full width, then the fields in pairs. */
  .werkzeuge { grid-template-columns: 1fr 1fr; gap: 12px; }
  .werkzeuge > label:nth-of-type(-n+2) { grid-column: 1 / -1; }
  .register tr.receipt-row { margin: 0 11px; }
  .receipt-toolbar .review-nav { width: 100%; }
}
@media print {
  body { background: #fff; }
  #sammelform, .reiter { border: 0; }
  .receipt-table .tageskopf th { background: #fff; }
}

/* A panel of a two-column page that needs the whole width (import history). */
.detail-grid > .ganze-breite { grid-column: 1 / -1; }
/* The monthly report's reading: the model's short heading lines stand out. */
.deutung p.deutung-kopf { margin: 14px 0 2px; color: var(--tinte, #1b3040); font-weight: 600; }
.deutung p { margin: 0 0 6px; }
.rot { color: var(--rot); }
.ki-herkunft { display: block; margin-top: 2px; }
/* Settings page: list thresholds sit below the recipients. */
#meldungen form + form { margin-top: 20px; }
/* Receipt page, KI view: the reviewer confirms what was visible. */
.kunde-mensch { display: block; margin-top: 4px; font-size: 12.5px; }
.kunde-mensch button.link { padding: 0; }
.kunde-mensch button.gewaehlt { font-weight: 700; text-decoration: underline; }
.brand .brand-version { margin-top: 1px; font-size: 10.5px; opacity: .8; }
.sofort-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.sofort-form input[name=grund] { min-height: 30px; padding: 4px 8px; width: 190px; }
