/* Frühschoppenrunde Ebenthal · Kassa
   Stil angelehnt an fruehschoppenebenthal.at: Schwarz-Weiß-Foto vom Keller, Italiana in Versalien, Didact Gothic */

@font-face { font-family: "Italiana"; src: url("fonts/italiana-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Didact Gothic"; src: url("fonts/didact-gothic-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Didact Gothic"; src: url("fonts/didact-gothic-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1c1c24;
  --ink-2: #2a2a33;
  --paper: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --text: #24242c;
  --muted: #7b7b85;
  --line: #e3dfd6;
  --accent: #a87d3a;          /* Messing / Bier */
  --accent-ink: #ffffff;
  --in: #2f7a4c;
  --in-bg: #e7f2ea;
  --out: #a8423a;
  --out-bg: #f7e8e6;
  --warn: #9a6a12;
  --warn-bg: #fbf1dc;
  --focus: #a87d3a;
  --shadow: 0 1px 2px rgba(28,28,36,.06), 0 6px 20px rgba(28,28,36,.06);
  --radius: 4px;
  --hero-img: url("https://fruehschoppenebenthal.at/wp-content/uploads/2025/04/cropped-cropped-keller2014_SW-scaled-2.jpg");
  --font-display: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Didact Gothic", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15151b; --surface: #1f1f27; --surface-2: #24242d; --text: #ecebe7; --muted: #9c9ca6; --line: #33333d;
    --in: #6cc28f; --in-bg: #1d3227; --out: #e58b82; --out-bg: #3a2222; --warn: #e9b65a; --warn-bg: #3a2f17;
    --accent: #c99a52; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15151b; --surface: #1f1f27; --surface-2: #24242d; --text: #ecebe7; --muted: #9c9ca6; --line: #33333d;
  --in: #6cc28f; --in-bg: #1d3227; --out: #e58b82; --out-bg: #3a2222; --warn: #e9b65a; --warn-bg: #3a2f17;
  --accent: #c99a52; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 var(--font-body); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.in { color: var(--in); }
.out { color: var(--out); }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .2em; line-height: 1.1; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; margin: 0 0 .6rem; opacity: .85; }
h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .8rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }

/* ---------- Anmeldung ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; background: linear-gradient(249deg, rgba(28,28,36,.55), rgba(28,28,36,.75)), var(--hero-img) center / cover, var(--ink); color: #fff; }
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); background: rgba(20,20,26,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); padding: 36px 28px; border-radius: var(--radius); display: grid; gap: 14px; }
.login-card .display { font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: .25em; margin-bottom: 4px; }
.login-card h2 { font-size: 1rem; }
.login-card .muted { color: rgba(255,255,255,.7); margin: 0 0 6px; }
.login-card .field span { color: rgba(255,255,255,.8); }
.login-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.login-card input:focus { border-color: #fff; }
.login-card code { background: rgba(255,255,255,.12); padding: 0 4px; }
.back-link { color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem; text-align: center; }
.back-link:hover { color: #fff; }
.stack { display: grid; gap: 14px; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 0 24px; padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); background: var(--ink); color: #fff; }
.brand { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .32em; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { text-decoration: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; padding: 8px 12px; color: rgba(255,255,255,.72); border-bottom: 1px solid transparent; position: relative; }
.mainnav a:hover { color: #fff; }
.mainnav a.active { color: #fff; border-bottom-color: var(--accent); }
.usermenu { position: relative; }
.userbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; font-size: .8rem; letter-spacing: .05em; }
.menu { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; }
.menu-head { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); display: grid; }
.menu-head small { color: var(--muted); }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 9px 10px; cursor: pointer; text-decoration: none; border-radius: 3px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }

/* ---------- Bildleiste wie auf der Website ---------- */
.hero { background: linear-gradient(249deg, rgba(28,28,36,.5) 30%, rgba(28,28,36,.72)), var(--hero-img) center 40% / cover, var(--ink); color: #fff; }
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 44px 24px 38px; }
.hero .display { font-size: clamp(1.7rem, 4.6vw, 3rem); }

/* ---------- Inhalt ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 24px 24px 48px; outline: none; }
.footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 18px 16px 28px; letter-spacing: .05em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 18px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; min-height: 34px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi .label { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); }
.kpi .value { font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.dark .label, .kpi.dark .sub { color: rgba(255,255,255,.65); }
a.kpi { text-decoration: none; }
a.kpi:hover { border-color: var(--accent); }

/* ---------- Formulare & Buttons ---------- */
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); cursor: pointer; text-decoration: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); }
.login-card .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--out); }
.btn.danger:hover { border-color: var(--out); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .7rem; }
.btn.block { width: 100%; }
.btn svg, .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:disabled { opacity: .5; cursor: default; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 220px; }
.toolbar .field { flex: 0 1 180px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; min-height: 40px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }
.alert { padding: 10px 12px; border-radius: var(--radius); margin: 0; font-size: .9rem; }
.alert.error { background: var(--out-bg); color: var(--out); }
.login-card .alert.error { background: rgba(168,66,58,.25); color: #ffd9d4; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: var(--surface-2); }
tr.clickable { cursor: pointer; }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--text); }
th.num { text-align: right; }
.desc { max-width: 420px; }
.desc .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc .note { color: var(--muted); font-size: .8rem; }
.opening td { color: var(--muted); font-style: italic; }
tr.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--warn-bg); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip.ok { background: var(--in-bg); color: var(--in); border-color: transparent; }
.chip.miss { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.auto { background: var(--surface-2); }
button.chip { cursor: pointer; }
.receipt-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--in); font-size: .8rem; }
.receipt-link .icon { width: 15px; height: 15px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .66rem; letter-spacing: 0; margin-left: 4px; }

/* ---------- Mobile Buchungsliste ---------- */
.blist { display: none; list-style: none; margin: 0; padding: 0; }
.blist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.blist .d { font-size: .78rem; color: var(--muted); }
.blist .t { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blist .a { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blist .meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.blist .s { font-size: .75rem; color: var(--muted); text-align: right; }

/* ---------- Belege ---------- */
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--warn-bg); }
.dropzone strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: 1.1rem; margin-bottom: 4px; }
.dropzone .icon { width: 34px; height: 34px; margin-bottom: 6px; color: var(--accent); }
.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ritem { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); display: grid; gap: 10px; }
.ritem-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ritem-name { font-weight: 700; word-break: break-word; }
.ritem-facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.ritem-facts b { color: var(--text); font-weight: 400; }
.cands { display: grid; gap: 6px; }
.cand { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-size: .86rem; }
.cand .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: var(--line); white-space: nowrap; }
.score.high { background: var(--in-bg); color: var(--in); }
.score.mid { background: var(--warn-bg); color: var(--warn); }
.status-line { font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-frame { width: 100%; height: min(75vh, 900px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.preview-img { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto; }

/* ---------- Diagramme ---------- */
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 340px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 200px) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; }

/* ---------- Dialog ---------- */
dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.wide { width: min(1000px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(20,20,26,.55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 1.1rem; }
.dlg-body { padding: 18px 20px; display: grid; gap: 14px; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.dlg-foot .left { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.dir-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dir-toggle label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.dir-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.dir-toggle label + label { border-left: 1px solid var(--line); }
.dir-toggle label:has(input[value="in"]:checked) { background: var(--in-bg); color: var(--in); }
.dir-toggle label:has(input[value="out"]:checked) { background: var(--out-bg); color: var(--out); }
.amount-input { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* ---------- Toast / Overlay ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); font-size: .9rem; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.error { background: var(--out); }
#drop-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(28,28,36,.8); display: grid; place-items: center; color: #fff; text-align: center; pointer-events: none; }
#drop-overlay div { border: 2px dashed rgba(255,255,255,.6); padding: 40px 50px; border-radius: 8px; display: grid; gap: 6px; }
#drop-overlay strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: 1.6rem; font-weight: 400; }
.fab { display: none; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.hide-desktop { display: none !important; }
@media (max-width: 760px) { .hide-desktop { display: inline-flex !important; } }

/* ---------- Mobile Tableiste ---------- */
.tabbar { display: none; }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .mainnav a { padding: 8px 8px; letter-spacing: .08em; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar { padding-left: 16px; padding-right: 16px; height: calc(52px + env(safe-area-inset-top)); }
  .brand { font-size: .78rem; letter-spacing: .22em; overflow: hidden; text-overflow: ellipsis; }
  .mainnav { display: none; }
  .usermenu { margin-left: auto; }
  .hero-inner { padding: 22px 16px 20px; }
  .hero .display { font-size: 1.6rem; letter-spacing: .16em; }
  .view { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .footer { display: none; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 1.25rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar .field { flex: 1 1 calc(50% - 10px); }
  .blist { display: block; }
  #buch-table .blist { display: flex; flex-direction: column-reverse; } /* am Handy: neueste Buchung oben */
  .btable { display: none; }
  .bar-row { grid-template-columns: minmax(90px, 120px) 1fr auto; }
  .cand { grid-template-columns: 1fr auto; }
  .cand .d { grid-column: 1; font-size: .78rem; color: var(--muted); }
  .chart-box { height: 240px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.08); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; color: rgba(255,255,255,.6); text-decoration: none; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; position: relative; }
  .tabbar a.active { color: #fff; }
  .tabbar a.active svg { stroke: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .badge { position: absolute; top: 3px; left: 55%; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 35; cursor: pointer; }
  .fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hide-mobile { display: none !important; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  dialog .dlg-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  dialog .dlg-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ---------- Druck (Kassabericht) ---------- */
@media print {
  .topbar, .tabbar, .footer, .toolbar, .fab, .no-print, #toast { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { background: none; color: #000; }
  .hero-inner { padding: 0 0 10px; }
  .view { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; break-inside: avoid; }
  .btable { display: table !important; }
  .blist { display: none !important; }
  .table-wrap { overflow: visible; }
  a { text-decoration: none; }
}
