:root {
  --bg: #f3f5f8; --card: #fff; --line: #dde2ea; --text: #1d2733; --muted: #6b7684;
  /* Farben aus dem Logo „Hotel Inn Software“: Anthrazit und Rot */
  --brand: #3a3d42; --brand-2: #b3171d; --brand-soft: #f8e9e9;
  --ok: #1e8e4e; --warn: #c26a00; --err: #c0392b;
  --opt: #f4c430; --def: #2f6ea8; --in: #1e8e4e; --out: #9aa4b1; --cxl: #c0392b;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand-2); }
h1 { font-size: 22px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 16px 0 8px; }
.muted { color: var(--muted); }
small { font-size: 12px; }
.boot, .loading { padding: 40px; color: var(--muted); }
.error-box { margin: 24px; padding: 16px; background: #fdecea; color: var(--err); border-radius: var(--radius); }
.warn-text { color: var(--warn); font-weight: 600; }
.ok-text { color: var(--ok); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { margin: .35em 0; }
.vdoku h3 { margin-top: 1.4em; }
.vdoku li { margin: .25em 0; }
.vdoku .vd-sign { margin-top: 3em; }
.neg { color: var(--err); }
.strike { text-decoration: line-through; color: var(--muted); }
code.small { font-size: 11px; color: var(--muted); white-space: pre-wrap; word-break: break-all; }
[hidden] { display: none !important; }

/* ---------- Buttons & Inputs ---------- */
button, .button {
  font: inherit; padding: 7px 14px; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
button:hover, .button:hover { border-color: var(--brand-2); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: var(--brand-2); }
button.danger { color: var(--err); border-color: #e9b4ad; }
button.danger:hover { background: #fdecea; }
button.small, a.button.small { padding: 3px 9px; font-size: 12px; }
/* T-20 Dokumentenablage: Dateien in die Karte ziehen */
.drop-zone.drag { outline: 2px dashed var(--primary, #2563eb); outline-offset: -6px; }
.nowrap { white-space: nowrap; }
.nowrap > * + * { margin-left: 4px; }
button.link { background: none; border: 0; color: #c9d6e6; padding: 8px 16px; text-align: left; }
button.icon { border: 0; background: none; font-size: 20px; padding: 2px 8px; color: var(--muted); }
button.block { width: 100%; justify-content: center; padding: 10px; }
button.active { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
input, select, textarea {
  font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand-2); }
input[readonly], textarea[readonly], select:disabled { background: #f6f7f9; }
input.num { text-align: right; }
input.search { margin-bottom: 10px; }
select.listbox { height: auto; margin-bottom: 10px; }

/* ---------- Layout ---------- */
.shell { min-height: 100vh; }
main { padding: 20px 24px 60px; min-width: 0; }

/* ---------- Menüleiste oben (Aufbau in topbar.js, Inhalt in menu.js) ---------- */
header.topbar { --tb: #17283A; position: sticky; top: 0; z-index: 60; background: var(--tb); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tb-row { display: flex; align-items: stretch; min-height: 56px; padding: 0 12px; gap: 8px; }
.tb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 0; color: #fff; text-decoration: none; flex-shrink: 0; }
.tb-brand img.brand-logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px 4px; }
.tb-hotel { font-weight: 600; font-size: 15px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tb-main { flex: 1; display: flex; justify-content: center; min-width: 0; }
.tb-main > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.tb-group { position: relative; display: flex; }
.tb-group.wide { position: static; }
.tb-top, .tb-userbtn, .tb-actions {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: none;
  color: #e8edf3; font-size: 15px; text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tb-top:hover, .tb-userbtn:hover, .tb-actions:hover, .tb-group.open > .tb-top { background: rgba(255,255,255,.10); color: #fff; }
.tb-top:focus-visible, .tb-userbtn:focus-visible, .tb-actions:focus-visible, .tb-burger:focus-visible, .tb-item:focus-visible, .tb-hit:focus-visible { outline: 3px solid #ffd166; outline-offset: -3px; }
.tb-group.active > .tb-top { color: #fff; font-weight: 600; background: rgba(255,255,255,.14); border-bottom-color: #e0262d; }
.tb-caret { font-size: 11px; opacity: .8; margin-left: 2px; }
.tb-drop { position: absolute; top: 100%; left: 0; min-width: 300px; max-width: 92vw; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: 0 10px 30px rgba(16,24,40,.22); padding: 6px; z-index: 70; display: flex; gap: 6px; }
.tb-drop.wide { left: 12px; right: 12px; max-width: none; max-height: calc(100vh - 80px); overflow: auto; }
.tb-drop.wide .tb-col { flex: 1; min-width: 220px; }
.tb-col { display: flex; flex-direction: column; min-width: 0; }
.tb-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 10px 4px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.tb-item { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; border: 0; background: none; text-align: left; width: 100%; font: inherit; cursor: pointer; }
.tb-item:hover, .tb-item:focus-visible { background: #eef2f7; }
.tb-item.current { background: #e7eef7; box-shadow: inset 3px 0 0 #e0262d; }
.tb-l { font-weight: 600; font-size: 14px; }
.tb-d { font-size: 12px; color: #5d6875; font-weight: 400; }
.tb-right { display: flex; align-items: stretch; gap: 2px; margin-left: auto; flex-shrink: 0; }
.tb-actions.current { background: rgba(255,255,255,.14); border-bottom-color: #e0262d; color: #fff; }
.tb-actions .nav-count { margin-left: 6px; }
.tb-user { position: relative; display: flex; }
.tb-user .tb-drop { left: auto; right: 0; min-width: 240px; }
.tb-uname { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.tb-burger { display: none; }
/* zweite Zeile: Suche und Schnellknöpfe */
.subbar { position: sticky; top: 56px; z-index: 55; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.tb-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.tb-search input { min-height: 44px; padding-left: 34px; background: #f6f8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 10px center; }
.tb-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(16,24,40,.2); padding: 6px; z-index: 75; max-height: 70vh; overflow: auto; }
.tb-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.tb-hit:hover, .tb-hit:focus-visible { background: #eef2f7; }
.tb-hit .tb-d { flex-basis: 100%; }
.tb-empty { padding: 12px 10px; color: var(--muted); }
.tb-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-quick .button { min-height: 44px; padding: 0 16px; }
.tb-quick .button.primary { background: var(--tb, #17283A); color: #fff; border-color: #17283A; }
[id^="ziel-"] { scroll-margin-top: 130px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .actions, .modal .actions { margin-top: 12px; }
.actions input, .actions select { width: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.warn { border-left: 4px solid var(--warn); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .kpis + .grid2 { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input.search { flex: 1; min-width: 220px; margin: 0; }
.filters label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filters input, .filters select { width: auto; }
.filters.seg button { border-radius: 20px; }
.inline { display: flex; gap: 6px; align-items: center; }
.notice { background: var(--brand-soft); padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.notice.warn { background: #fff4e0; color: #7a4600; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.grid td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr.click { cursor: pointer; }
table.grid tr.click:hover td { background: #f5f8fc; }
table.grid tr.inactive td { color: var(--muted); }
table.grid tr.billed td { background: #fafbfc; }
table.grid td.empty { text-align: center; color: var(--muted); padding: 20px; }
.num { text-align: right !important; white-space: nowrap; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 12px 16px; }
.form.cols-1 { grid-template-columns: 1fr; }
.form.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .section { grid-column: 1 / -1; margin: 8px 0 -4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.form .section:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check input { width: auto; }
.field.check span { font-size: 14px; color: var(--text); font-weight: normal; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: 1 / -1; }
button.pick { justify-content: flex-start; width: 100%; padding: 7px 9px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
button.pick.empty { color: var(--brand-2); font-weight: normal; border-style: dashed; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.st-opt { background: #fff5d1; color: #8a6500; }
.st-def { background: #e2edf8; color: var(--brand); }
.st-in { background: #e1f3e8; color: var(--ok); }
.st-out { background: #eef1f5; color: var(--muted); }
.st-cxl { background: #fbe4e1; color: var(--err); }
.hk-cln { background: #e1f3e8; color: var(--ok); }
.hk-dir { background: #fbe4e1; color: var(--err); }
.hk-ins { background: #e2edf8; color: var(--brand); }
.hk-ooo { background: #333; color: #fff; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi.click { cursor: pointer; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi-value { font-size: 26px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 9px 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Reservierung ---------- */
.res-head { display: flex; flex-wrap: wrap; gap: 10px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.res-head > div { display: flex; flex-direction: column; }
.res-head small { color: var(--muted); }
.res-head b { font-size: 15px; }
.folio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.folio-head h2 { margin: 0; }
.folio-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 0; color: var(--muted); }
.folio-total .big { font-size: 18px; color: var(--text); }
.inv-summary { margin-top: 12px; }
.secret { font-family: Consolas, monospace; font-size: 18px; letter-spacing: 2px; background: #f3f5f8; padding: 10px 14px; border-radius: 6px; margin: 8px 0; user-select: all; }
ol.steps li { margin-bottom: 10px; }

/* ---------- Zimmerplan ---------- */
.legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.plan-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - 190px); box-shadow: var(--shadow); }
.plan { display: grid; grid-template-rows: 44px; grid-auto-rows: 30px; min-width: 900px; position: relative; }
.plan-corner, .plan-day { position: sticky; top: 0; z-index: 3; background: #f7f9fb; border-bottom: 1px solid var(--line); grid-row: 1; height: 44px; }
.plan-corner { left: 0; z-index: 4; padding: 12px 10px; font-weight: 600; color: var(--muted); grid-column: 1; border-right: 1px solid var(--line); }
.plan-day { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; border-left: 1px solid var(--line); }
.plan-day.we { background: #f0f2f6; }
.plan-day.today { background: var(--brand); color: #fff; }
.plan-room { position: sticky; left: 0; z-index: 2; background: #fff; grid-column: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid #eef0f4; border-right: 1px solid var(--line); }
.plan-room small { color: var(--muted); }
.hkdot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; background: var(--ok); }
.hkdot.dir { background: var(--err); } .hkdot.ins { background: var(--brand-2); } .hkdot.ooo { background: #333; }
.plan-cell { border-left: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; cursor: cell; }
.plan-cell.we { background: #fafbfc; }
.plan-cell.today { background: #eef4fb; }
.plan-cell:hover, .plan-cell.drop { background: #dcebfa; }
.plan-bar { z-index: 1; margin: 3px 2px; border-radius: 5px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 24px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.plan-bar.opt { background: var(--opt); color: #4a3800; }
.plan-bar.def { background: var(--def); }
.plan-bar.in { background: var(--in); }
.plan-bar.out { background: var(--out); }
.plan-bar.sample { display: inline-block; margin: 0; cursor: default; }
/* Tagesbezug: Anreise heute, Abreise heute, Bleibe, Vergangenheit */
.plan-cell.past { background: repeating-linear-gradient(135deg, #f1f1f1 0 6px, #f7f7f7 6px 12px); }
.plan-bar.arr { background: #1f9d55; color: #fff; }
.plan-bar.dep { background: #e07b00; color: #fff; }
.plan-bar.stay { background: #2563eb; color: #fff; }
.plan-bar.past { background: #a8adb4; color: #fff; box-shadow: none; }
.plan-bar.blocked { margin: 3px 0; background: repeating-linear-gradient(135deg, #5b5f66 0 6px, #74787f 6px 12px); color: #fff; box-shadow: none; z-index: 1; }
.plan-bar.sample.blocked { padding: 0 8px; }
.plan-room.ooo { background: #f3f3f3; box-shadow: inset 4px 0 0 #333; }
.room-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px 10px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.room-picks label { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.room-picks input { width: auto; }
.plan-bar.opt.arr, .plan-bar.opt.stay { background: var(--opt); color: #4a3800; outline: 2px solid #1f9d55; outline-offset: -2px; }
.plan-bar.flag-left { border-left: 6px solid rgba(0,0,0,.35); }
.plan-bar.flag-right { border-right: 6px solid rgba(0,0,0,.35); }
.plan-bar:hover { filter: brightness(1.1); }
/* T-16: Abreise ziehen, Zeilen „ohne Zimmer“, Verfügbarkeits-Matrix */
.plan-bar { position: relative; }
.plan-menu-list { display: grid; gap: 6px; margin-top: 8px; }
.plan-menu-list button { text-align: left; }
.plan-grip {position: absolute; top: 0; right: 0; bottom: 0; width: 9px; cursor: ew-resize; background: linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.55) 3px 5px, transparent 5px); touch-action: none; }
.plan-bar.resizing { z-index: 5; outline: 2px dashed #111; outline-offset: 1px; }
.plan-resize-label { position: absolute; right: 12px; top: 0; padding: 0 6px; background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; }
.plan-room.lane { background: #fbf7ec; font-style: italic; gap: 4px; }
.plan-cell.lane { background: #fdfaf2; }
.plan-cell.lane.today { background: #f3eedd; }
.plan-bar.noroom { border: 1px dashed rgba(0,0,0,.45); }
.avail-matrix td, .avail-matrix th { text-align: center; padding: 4px 6px; white-space: nowrap; }
.avail-matrix th.cat, .avail-matrix td.cat { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.avail-matrix td.cell { cursor: pointer; line-height: 1.2; }
.avail-matrix td.cell:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.avail-matrix td.cell b { display: block; font-size: 14px; }
.avail-matrix td.cell small { color: var(--muted); }
.avail-matrix td.free { background: #e6f5ea; }
.avail-matrix td.low { background: #fff4d6; }
.avail-matrix td.full { background: #fde2e1; }
.avail-matrix td.over { background: #f5b5b2; }
.avail-matrix th.we { background: #f0f2f6; }
.avail-matrix th.closed { color: var(--err); }

/* ---------- Housekeeping ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.hk-tile { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.hk-tile.dir { border-left-color: var(--err); } .hk-tile.ins { border-left-color: var(--brand-2); } .hk-tile.ooo { border-left-color: #333; background: #f3f3f3; }
.hk-num { font-size: 22px; font-weight: 700; }
.hk-num small { font-size: 12px; color: var(--muted); font-weight: 600; }
.hk-info { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #eef1f5; color: var(--muted); font-weight: 600; }
.tag.free { background: #e1f3e8; color: var(--ok); } .tag.dep { background: #fff4e0; color: var(--warn); } .tag.arr { background: #e2edf8; color: var(--brand); }
.hk-note { font-size: 12px; background: #fff8e1; padding: 4px 6px; border-radius: 4px; }
.hk-btns { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- Berichte ---------- */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin: 10px 0 16px; padding-bottom: 16px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 6px; }
.bar .fill { width: 100%; background: var(--brand-2); border-radius: 3px 3px 0 0; min-height: 1px; }
.bar small { position: absolute; bottom: -16px; font-size: 10px; color: var(--muted); }

/* ---------- Dialoge & Toasts ---------- */
dialog.modal { border: 0; border-radius: 10px; padding: 0; width: min(520px, 94vw); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--text); }
dialog.modal.wide { width: min(860px, 96vw); }
dialog.modal::backdrop { background: rgba(20,30,45,.45); }
dialog.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
dialog.modal header h2 { margin: 0; }
dialog.modal .body { padding: 16px; max-height: 70vh; overflow: auto; }
dialog.modal footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc; }
dialog.modal footer button.danger { margin-right: auto; }
.pick-list { min-height: 120px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: #1d2733; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow); max-width: 420px; transition: opacity .5s; }
.toast.ok { background: var(--ok); } .toast.error { background: var(--err); }
.toast.hide { opacity: 0; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b2e33, #4a4e55 60%, #8e1217); padding: 16px; }
.login-box { background: #fff; width: min(380px, 100%); padding: 28px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 14px; }
.login-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 6px; }
.login-logo img { width: 100%; max-width: 320px; height: auto; }
.login-msg { min-height: 18px; font-size: 13px; color: var(--muted); }
.login-msg.err { color: var(--err); }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Rechnung ---------- */
.inv-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.invoice { background: #fff; max-width: 820px; margin: 0 auto; padding: 48px 56px; box-shadow: var(--shadow); font-size: 13px; color: #111; }
.inv-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.inv-hotel h1 { font-size: 20px; margin-bottom: 4px; }
.inv-meta h2 { font-size: 18px; letter-spacing: .1em; text-align: right; margin-bottom: 6px; }
.inv-meta td { padding: 1px 0 1px 12px; }
.inv-meta td:first-child { color: #666; }
.pre { white-space: pre-line; }
.inv-recipient { margin: 0 0 30px; min-height: 110px; }
.inv-recipient small { font-size: 9px; color: #777; text-decoration: underline; display: block; margin-bottom: 6px; }
.inv-recipient .pre { font-size: 14px; }
.invoice table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.invoice th { text-align: left; border-bottom: 2px solid #333; padding: 6px 4px; font-size: 12px; }
.invoice td { padding: 5px 4px; border-bottom: 1px solid #e3e3e3; }
.invoice tr.sum td { font-weight: 700; border-top: 2px solid #333; border-bottom: 0; font-size: 14px; }
.inv-vat, .inv-pay { width: 60% !important; margin-left: auto; }
.inv-thanks { margin-top: 26px; }
.inv-foot { margin-top: 40px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10px; color: #555; display: flex; flex-direction: column; gap: 2px; text-align: center; }

/* ---------- Eigener Bereich (Küche / Housekeeping): Leiste oben statt Seitenmenü ---------- */
body.own-area main { padding: 16px; }
.kpis.big .kpi-value { font-size: 40px; }
.kpi.hl { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi.hl .kpi-label, .kpi.hl .kpi-sub { color: #e4e5e7; }
ul.kitchen-notes { margin: 0; padding-left: 18px; font-size: 15px; }
ul.kitchen-notes li { margin: 4px 0; }

/* ---------- Bemerkungen ---------- */
.note-list { display: flex; flex-direction: column; gap: 10px; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: 6px; padding: 10px 12px; background: #fff; }
.note.today { border-left-color: var(--warn); background: #fffaf0; }
.note.done { opacity: .6; border-left-color: var(--out); }
.note-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.note-text { white-space: pre-wrap; font-size: 14px; }
.note-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.notes.compact .note-text { font-size: 13px; }
pre.raw { background: #f6f7f9; padding: 10px; border-radius: 6px; max-height: 50vh; overflow: auto; font-size: 11px; }
.hk-guest { font-size: 12px; background: #e2edf8; color: var(--brand); padding: 4px 6px; border-radius: 4px; }
.pkg { font-size: 12px; color: var(--muted); }
.comp-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }

/* ---------- TSE ---------- */
tr.tse-row td { font-size: 9px; color: #555; word-break: break-all; border-bottom: 1px solid #e3e3e3; }
.receipt { max-width: 420px; }
.inv-tse { font-size: 9px; color: #555; word-break: break-all; margin-top: 14px; border-top: 1px solid #e3e3e3; padding-top: 6px; }
.receipt h2 { text-align: center; letter-spacing: .1em; margin: 16px 0; }
.receipt table.tse td { font-size: 11px; vertical-align: top; }
.receipt .sig { word-break: break-all; font-family: Consolas, monospace; font-size: 10px; }

/* ---------- Dokumente (Bestätigung, Meldeschein, Einwilligung, Löschbestätigung) ---------- */
.seg { display: inline-flex; gap: 0; }
.seg button { border-radius: 0; }
.seg button:first-child { border-radius: 6px 0 0 6px; }
.seg button:last-child { border-radius: 0 6px 6px 0; }
.doc { line-height: 1.5; }
.doc p { margin: 0 0 10px; }
.doc h3 { font-size: 14px; margin: 16px 0 6px; }
.doc-logo { width: 190px; height: auto; align-self: flex-start; }
.doc-addr { margin: 10px 0 24px; min-height: 100px; }
.doc-addr small { font-size: 9px; color: #777; text-decoration: underline; display: block; margin-bottom: 6px; }
.doc-addr .pre { font-size: 14px; }
.doc-date { text-align: right; }
.doc-title { font-size: 17px; margin: 6px 0 14px; }
.doc-table { width: auto !important; min-width: 60%; }
.doc-table td:first-child { color: #555; padding-right: 24px; white-space: nowrap; vertical-align: top; }
.doc-sign { margin-top: 18px; }
.small { font-size: 11px; }
table.mini td { padding: 2px 12px 2px 0; }
.actions.wrap { flex-wrap: wrap; }
.consent-opts { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.consent-opt { display: grid; grid-template-columns: 28px 1fr; gap: 6px; align-items: start; }
.consent-opt .box { font-size: 20px; line-height: 1; }
.meldeschein { margin-bottom: 24px; }
.ms-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #333; padding-bottom: 8px; margin-bottom: 12px; }
.ms-head h2 { font-size: 18px; margin: 0; }
.ms-hotel { text-align: right; font-size: 12px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #999; border-left: 1px solid #999; margin-bottom: 12px; }
.ms-field { border-right: 1px solid #999; border-bottom: 1px solid #999; padding: 4px 6px; min-height: 46px; }
.ms-field.w2 { grid-column: span 2; }
.ms-field.w3 { grid-column: span 3; }
.ms-label { font-size: 10px; color: #444; }
.ms-label small { color: #888; }
.ms-value { font-size: 14px; font-weight: 600; padding-top: 4px; }
.ms-table th { font-size: 10px !important; font-weight: 400; }
.ms-table td { height: 28px; border: 1px solid #999 !important; }
.ms-sign { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin: 34px 0 14px; font-size: 11px; color: #444; }
.ms-sign .line { border-bottom: 1px solid #333; height: 30px; margin-bottom: 4px; }
.ms-staff { border: 1px dashed #999; padding: 6px 8px; font-size: 11px; margin-bottom: 8px; }
.ms-note { font-weight: 600; }

/* ---------- Frühstück, Rechte, Unterschrift, Versand ---------- */
.res-head .click { cursor: pointer; border-radius: 6px; }
.res-head .click:hover { background: var(--brand-soft); }
small.link { color: var(--brand-2); text-decoration: underline; }
.card.sub { margin-top: 12px; padding: 10px 12px; background: #fafafa; }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 10px 0; }
.sig-wrap { border: 2px dashed #999; border-radius: 8px; background: #fff; touch-action: none; position: relative; }
.sig-wrap canvas { width: 100%; height: 220px; display: block; cursor: crosshair; }
.sig-wrap .sig-hint { position: absolute; left: 12px; bottom: 8px; color: #aaa; font-size: 12px; pointer-events: none; }
.sig-img { max-width: 320px; max-height: 120px; border-bottom: 1px solid #333; display: block; }
.send-box { display: grid; gap: 10px; }
.send-box textarea { min-height: 150px; }
.status-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eee; }
.status-pill.offen, .status-pill.OPT { background: #fff3c4; }
.status-pill.angenommen, .status-pill.DEF { background: #d8f3dc; }
.status-pill.abgelehnt, .status-pill.CXL { background: #f8d7da; }
.status-pill.DONE { background: #e2e3e5; }
.items-table input, .items-table select { width: 100%; min-width: 60px; }
.items-table td { padding: 3px 4px !important; vertical-align: top; }
.plan.ev-plan { grid-auto-rows: minmax(76px, auto); }
.ev-plan .plan-day { grid-row: 1; }
.ev-plan .plan-room { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.ev-day { display: flex; flex-direction: column; gap: 4px; align-content: start; }
.ev-slot .small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-slot { border-left: 4px solid var(--brand-2); background: #fff; padding: 4px 8px; font-size: 12px; border-radius: 4px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ev-slot.OPT { border-left-color: #e0a800; }
.ev-slot.CXL { opacity: .5; text-decoration: line-through; }
.public-page { max-width: 900px; margin: 0 auto; padding: 16px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  /* Menüleiste: Menü-Knopf mit aufklappbarer Liste */
  .tb-row { flex-wrap: wrap; padding: 0 8px; }
  .tb-hotel { display: none; }
  .tb-burger { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; margin: 6px 0; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 20px; order: 3; }
  .tb-right { order: 2; }
  .tb-actions, .tb-userbtn { padding: 0 10px; }
  .tb-main { order: 4; flex-basis: 100%; display: none; justify-content: stretch; max-height: calc(100vh - 60px); overflow: auto; padding-bottom: 8px; }
  body.menu-open .tb-main { display: block; }
  .tb-main > ul { flex-direction: column; gap: 0; }
  .tb-group, .tb-group.wide { position: static; flex-direction: column; }
  .tb-top { width: 100%; justify-content: space-between; border-bottom: 0; border-left: 3px solid transparent; min-height: 48px; }
  .tb-group.active > .tb-top { border-left-color: #e0262d; }
  .tb-drop, .tb-drop.wide { position: static; box-shadow: none; border-radius: 6px; margin: 0 0 6px 12px; flex-direction: column; max-height: none; min-width: 0; }
  .tb-user .tb-drop { position: absolute; }
  .subbar { position: static; padding: 8px 12px; }
  .tb-quick { width: 100%; }
  .tb-quick .button { flex: 1 1 auto; justify-content: center; }
  main { padding: 16px 12px 40px; }
  .grid2, .split { grid-template-columns: minmax(0, 1fr); }
  .form.cols-2, .form.cols-3, .form.cols-4 { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .invoice { padding: 20px; }
  .inv-top { flex-direction: column; }
}

/* ---------- Druck ---------- */
/* v3.1: Zusätze / Anzahlungen / Aktionen */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-head h2 { margin: 0; }
.nav-count { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 10px; background: #c0392b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
table.grid tr.muted td { color: var(--muted, #888); }
/* T-17: Zuteilung, Buchen am Zimmer, Prognose, Listen */
.hk-auto { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.hk-auto input { width: auto; }
.hk-staff { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--brand); background: #e2edf8; padding: 1px 6px; border-radius: 10px; }
.tag.task.stay { background: #e8ecff; color: #3a4cc0; } .tag.task.ooo { background: #333; color: #fff; }
.hk-btns .hk-book { background: #fff4e0; }
.hk-charge .hk-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 18px; }
.hk-charge .hk-qty button { width: 44px; height: 44px; font-size: 22px; }
.hk-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.hk-art { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; min-height: 60px; text-align: left; }
.hk-art small { color: var(--muted); }
.hk-forecast tr.we td { background: #f7f8fb; }
.hk-forecast tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.card.flat { box-shadow: none; background: #f7f9fb; }
.hk-sheet { page-break-after: always; margin-bottom: 24px; }
.hk-sheet:last-child { page-break-after: auto; }
.hk-action {display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

/* ---- Weckdienst: seitliches Wecker-Symbol (auf jeder Seite, rechts mittig) ---- */
.wake-box { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; align-items: center; }
.wake-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; min-height: 64px; padding: 8px 6px;
  border: 0; border-radius: 10px 0 0 10px; background: #17283A; color: #fff; cursor: pointer; box-shadow: -2px 2px 8px rgba(0,0,0,.25); }
.wake-tab:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
.wake-icon { font-size: 24px; line-height: 1; }
.wake-count { font-weight: 700; font-size: 14px; min-height: 1em; }
.wake-box[hidden], .wake-box.empty { display: none; }
.wake-box.soon .wake-tab { background: #f5b400; color: #17283A; animation: wake-blink 1.2s ease-in-out infinite; }
.wake-box.alarm .wake-tab { background: #c62828; color: #fff; animation: wake-blink .6s steps(2, jump-none) infinite; }
.wake-box.alarm .wake-icon { animation: wake-shake .5s ease-in-out infinite; }
@keyframes wake-blink { 50% { filter: brightness(1.35); box-shadow: -2px 2px 18px rgba(0,0,0,.45); } }
@keyframes wake-shake { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .wake-box .wake-tab, .wake-box .wake-icon { animation: none !important; } }
.wake-panel { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); width: min(360px, 80vw); max-height: 70vh; overflow: auto;
  background: #fff; color: #17283A; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 12px 14px; }
.wake-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wake-list { list-style: none; margin: 0; padding: 0; }
.wake-list li { padding: 8px; border-radius: 8px; margin-bottom: 6px; background: #f3f4f6; }
.wake-list li.wake-soon { background: #fff4d6; }
.wake-list li.wake-due { background: #fde2e2; }
.wake-line .badge { margin-left: 6px; }
.wake-btns { display: flex; gap: 6px; margin-top: 6px; }
.wake-btns button { min-height: 44px; }
/* ---- Housekeeping: Anreise-Alarm – Symbol am LINKEN Rand, blinkende Zimmer-Kacheln ---- */
.hkarr-box { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; align-items: center; }
.hkarr-box[hidden], .hkarr-box.empty { display: none; }
.hkarr-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; min-height: 64px; padding: 8px 6px;
  border: 0; border-radius: 0 10px 10px 0; background: #17283A; color: #fff; cursor: pointer; box-shadow: 2px 2px 8px rgba(0,0,0,.25); }
.hkarr-tab:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
.hkarr-icon { font-size: 24px; line-height: 1; }
.hkarr-count { font-weight: 700; font-size: 14px; min-height: 1em; }
.hkarr-box.alarm .hkarr-tab { background: #e65100; color: #fff; animation: wake-blink .6s steps(2, jump-none) infinite; }
.hkarr-box.alarm .hkarr-icon { animation: wake-shake .5s ease-in-out infinite; }
.hkarr-panel { position: absolute; left: 54px; top: 50%; transform: translateY(-50%); width: min(360px, 80vw); max-height: 70vh; overflow: auto;
  background: #fff; color: #17283A; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 12px 14px; }
.hk-tile.hk-arr-alarm { outline: 4px solid #e65100; outline-offset: -2px; animation: hk-arr-blink 1s ease-in-out infinite; }
@keyframes hk-arr-blink { 50% { background-color: #ffe0b2; } }
.hk-arr-note { font-weight: 700; color: #b23c00; margin: 4px 0; }
body.hkarr-on main#main { padding-left: 64px; }
body.wake-on main#main { padding-right: 64px; }
@media print { body.hkarr-on main#main, body.wake-on main#main { padding-left: 0; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .hkarr-box .hkarr-tab, .hkarr-box .hkarr-icon, .hk-tile.hk-arr-alarm { animation: none !important; } }
@media print {
  .wake-box, .hkarr-box { display: none !important; }
  header.topbar, .subbar, .training-bar, .noprint, .page-head .actions, .filters, .tabs, #toasts, button { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
  body { background: #fff; }
  .card, .invoice, .kpi { box-shadow: none; border: 0; }
  .invoice { padding: 0; max-width: none; }
  .meldeschein { break-after: page; margin: 0; }
  .meldeschein:last-child { break-after: auto; }
  @page { margin: 15mm; }
}

/* Auslastung je Zimmer / Statistik */
.occ-year td.num, .occ-year th.num { min-width: 44px; }
.occ-year td.click, th.click { cursor: pointer; }
.occ-year tfoot th, .occ-year tfoot td, table.manager tfoot td { border-top: 2px solid var(--line); font-weight: 600; }
.occ-grid { display: grid; font-size: 11px; min-width: 900px; }
.occ-h { text-align: center; color: var(--muted); padding: 2px 0; line-height: 1.1; display: flex; flex-direction: column; }
.occ-h.we { background: #f6f7f9; }
.occ-room { padding: 2px 6px; white-space: nowrap; border-top: 1px solid #eef0f4; }
.occ-c { border-top: 1px solid #eef0f4; border-left: 1px solid #f2f3f5; height: 20px; font-size: 9px; color: #fff; overflow: hidden; text-align: center; line-height: 20px; display: inline-block; min-width: 18px; }
.occ-c.b { background: var(--def); } .occ-c.o { background: var(--opt); color: #4a3800; }
.occ-c.x { background: repeating-linear-gradient(135deg, #5b5f66 0 4px, #74787f 4px 8px); }
.occ-c.a { box-shadow: inset 2px 0 0 #1f9d55; }
.occ-p, .occ-sum { text-align: right; padding: 2px 4px; border-top: 1px solid #eef0f4; font-variant-numeric: tabular-nums; }
.occ-sum { text-align: center; font-weight: 600; border-top: 2px solid var(--line); }
.bars.pair .bar { flex-direction: row; align-items: flex-end; gap: 2px; }
.bars.pair .bar .fill { flex: 1; }
.bars.pair .bar .fill.prev { background: #c9d6e6; }
.bars.pair .bar small { left: 0; right: 0; text-align: center; }
table.manager td .small { font-size: 11px; }
@media print { .occ-grid { min-width: 0; font-size: 8px; } }
/* Eigenes Hotel-Logo */
.login-logo { flex-direction: column; }
.login-logo img { max-height: 140px; width: auto; max-width: 320px; object-fit: contain; }
.login-title { font-size: 22px; margin: 0; }
.doc-logo { max-height: 90px; width: auto; max-width: 220px; object-fit: contain; }
.inv-logo { display: block; max-height: 70px; max-width: 220px; margin-bottom: 6px; object-fit: contain; }
.logo-row { display: flex; align-items: center; min-height: 60px; }
.logo-preview { max-height: 110px; max-width: 320px; border: 1px dashed var(--line); padding: 6px; background: #fff; }
img[hidden] { display: none !important; }
/* Gästedatenblatt (Datenschutz-Sammeldruck): breite Spalte für handschriftliche Korrekturen */
table.doc-table.sheet { width: 100%; }
table.doc-table.sheet td:first-child { width: 22%; }
table.doc-table.sheet td.corr { width: 42%; border-bottom: 1px dotted #999; }
/* Sammeldruck: jedes Blatt auf eine neue Seite */
.inv-page > .page-break + .page-break { margin-top: 24px; }
@media print { .inv-page > .page-break + .page-break { break-before: page; margin-top: 0; } }

/* ---- Version 3.0: Rechnungsfenster, Saisonkalender, Zimmerplan-Veranstaltungen ---- */
.win-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 .8rem; }
.win-card { border: 1px solid var(--line, #d8dde3); border-radius: 8px; padding: .5rem .7rem; display: flex; flex-direction: column; gap: .15rem; min-width: 180px; background: var(--bg2, #f7f9fb); }
.win-card .actions { margin-top: .3rem; }
select.small { padding: 2px 4px; font-size: .85em; width: auto; }
span.actions { display: inline-flex; gap: .3rem; }
.plan-day.event { background: #fff4d6; }
.plan-day.closed { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); }
.plan-day small.season { font-weight: 700; color: #6a4c00; }
table.season-cal td, table.season-cal th { padding: 2px 3px; text-align: center; font-size: .8em; min-width: 20px; }
table.season-cal td { cursor: pointer; border: 1px solid #eee; }
table.season-cal td.we { background-color: #f3f3f3; }
table.season-cal td.none { background: transparent; border: none; cursor: default; }
table.season-cal td.closed { color: #b00; font-weight: 700; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; border: 1px solid #aaa; }
.badge.warn { background: #fde2e1; color: #a11; }
/* Auswahllisten: mehrere Eintraege ankreuzen (Merkmale) - Version 3.2 */
.multi { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .3rem 0; }
.multi label { display: inline-flex; align-items: center; gap: .35rem; font-weight: normal; }
.multi input { width: auto; }
.pick-admin td input, .pick-admin td select { width: 100%; }
.pick-admin .num-in { max-width: 6rem; }

/* T-18: Forecast nach Segment, Budget / Ist, Listen-Zeitplan */
.opt-text { color: #8a6d1f; }
.forecast td, .forecast th, .budget td, .budget th { white-space: nowrap; }
.forecast tfoot td, .budget tfoot td { font-weight: 600; border-top: 2px solid var(--border, #ccc); }
.budget tr.future td { background: #f6f7f9; }
.budget thead tr:first-child th { text-align: center; border-bottom: 1px solid var(--border, #ddd); }
@media print { .budget tr.future td { background: none; } }

/* T-21: Gutscheine, Kartenzahlung, Kartenabgleich */
.pay-extra { border-left: 3px solid var(--brand-soft, #dde6f3); padding: 4px 0 4px 10px; margin: 6px 0; }
.pay-extra .actions { align-items: center; }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.stat > span { font-size: 12px; color: var(--muted); }
.stat > b { font-size: 22px; }
.stat > small { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.toolbar input, .toolbar select { width: auto; }
.voucher-print { max-width: 190mm; margin: 0 auto; border: 2px solid var(--brand, #345); border-radius: 12px; padding: 14mm 16mm; text-align: center; background: #fff; }
.voucher-print .voucher-logo { max-height: 28mm; max-width: 70mm; }
.voucher-print .voucher-hotel { font-size: 18px; font-weight: 600; margin-top: 6px; }
.voucher-print h1 { display: block; font-size: 32px; letter-spacing: .06em; margin: 14px 0 6px; }
.voucher-print .voucher-for { font-size: 18px; }
.voucher-print .voucher-amount { font-size: 44px; font-weight: 700; margin: 12px 0; }
.voucher-print .voucher-code { display: inline-flex; gap: 10px; align-items: baseline; border: 1px dashed #999; padding: 6px 14px; border-radius: 6px; margin-bottom: 10px; }
.voucher-print .voucher-code b { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: .08em; }
.voucher-print p.small { font-size: 11px; color: #555; white-space: pre-wrap; margin-top: 14px; }
@media print { .voucher-print { border-width: 1.5px; } }

/* T-23: Tischreservierung – Tagesplan je Tisch */
.tplan { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.tplan-row { display: flex; align-items: stretch; min-width: 640px; }
.tplan-name { width: 150px; flex: none; padding: 4px 8px 4px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tplan-track { position: relative; flex: 1; min-height: 30px; background: var(--brand-soft); border-radius: 4px; }
.tplan-head .tplan-track { background: none; min-height: 18px; }
.tplan-hour { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: #777; }
.tplan-line { position: absolute; top: 0; bottom: 0; border-left: 1px dotted rgba(0,0,0,.15); }
.tplan-bar { position: absolute; top: 3px; bottom: 3px; background: #2f6fb3; color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-sizing: border-box; border: 1px solid rgba(255,255,255,.6); }
.tplan-bar.arrived { background: #2e7d32; }
.tplan-bar:hover { filter: brightness(1.1); z-index: 2; }
@media print { .tplan-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* T-23: Schlüssel der Restaurantkasse (nur einmal angezeigt) */
.key-box { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: #f4f4f4; border: 1px dashed #999; padding: 10px; border-radius: 6px; user-select: all; word-break: break-all; white-space: pre-wrap; }

/* T-25: Schulungsumgebung – roter Balken oben (auch auf Ausdrucken) */
.training-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 28px; line-height: 28px; background: #c62828; color: #fff; font-weight: 700; font-size: 13px; text-align: center; letter-spacing: .3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; }
body.training { padding-top: 28px; }
body.training header.topbar { top: 28px; }
body.training .subbar { top: 84px; }
body.training .shell, body.training .login-wrap { min-height: calc(100vh - 28px); }
