/* ==========================================================================
   Musikverein – Design wie „Geschäftlich" (Version 215)
   Gleiche Gestaltung wie im Kemmler-Bereich: kühles Papiergrau, tiefes Marineblau, ein klares Blau als Akzent,
   weiße Karten mit feiner Linie statt weicher Schatten, ruhige Titel, Zahlen in Tabellenziffern.
   Wird als LETZTE Datei geladen (nach apple.css) und überstimmt nur Farben, Karten, Knöpfe und Leisten – nicht die Funktion.
   ========================================================================== */
:root {
  --vd-bg: #edf0f5; --vd-surface: #fff; --vd-line: #d9e0ea; --vd-line-2: #e6ebf2;
  --vd-ink: #0d1a2e; --vd-ink-2: #46566f; --vd-mute: #6f7f98;
  --vd-navy: #0e1b33; --vd-brand: #1456d9; --vd-brand-d: #0f45b3; --vd-brand-soft: #e3ecfd;
  --vd-r: 14px; --vd-r-s: 10px; --vd-sh: 0 1px 2px rgba(14, 27, 51, .05), 0 1px 1px rgba(14, 27, 51, .03);

  --ap-blue: var(--vd-brand); --ap-blue-hover: var(--vd-brand-d); --ap-link: var(--vd-brand);
  --ap-gray: var(--vd-bg); --ap-ink: var(--vd-ink); --ap-ink-2: var(--vd-ink-2); --ap-line: var(--vd-line); --ap-fill: rgba(14, 27, 51, .06);
  --bg: var(--vd-bg); --surface-2: var(--vd-bg); --text: var(--vd-ink); --text-muted: var(--vd-ink-2);
  --border: var(--vd-line); --sep: var(--vd-line); --card-edge: var(--vd-line);
  --accent: var(--vd-brand); --accent-strong: var(--vd-brand-d); --accent-ink: var(--vd-brand); --accent-soft: var(--vd-brand-soft); --tint: var(--vd-brand);
  --glass: rgba(237, 240, 245, .92); --glass-bar: rgba(255, 255, 255, .96); --topbar-solid: rgba(237, 240, 245, .92);
  --radius: var(--vd-r); --ios-cell: var(--vd-r);
}
html, body { background: var(--vd-bg); color: var(--vd-ink); font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: var(--vd-brand); }

/* ---------- Titel: ruhiger, nicht mehr riesig ---------- */
h1, .page-title, .ek-h1, .start-title { color: var(--vd-ink); letter-spacing: -.02em; }
#app h1, main h1, .view h1 { font-size: clamp(25px, 2.2vw, 30px); line-height: 1.15; }
h2, h3 { color: var(--vd-ink); }

/* ---------- Karten: weiß, feine Linie, kleiner Schatten ---------- */
.card, .table-card, .order-cart, .history-summary, .kpi, .order-stat, .auth-form, .draft-card, .sms-card, .event-folder,
.history-servers, .wait-card, .exp-card, .exp-sum, .ov-card, .ov-kpi, .rights-role, .ek-card, .ek-kpi, .ek-box, .user-row,
.tm-card, .br-ev, .br-row, .br-wish, .br-kind, .cl-row, .st-row, .hub-tile, .bar-section, .tables-summary, .howto-card,
.start-card, .pl-cat, .modal-sheet {
  background: var(--vd-surface); border: 1px solid var(--vd-line); border-radius: var(--vd-r); box-shadow: var(--vd-sh);
}
.item-btn, .order-stat { border-radius: var(--vd-r-s); }
.stat-label, .ov-card h3, .kpi h3, .card h3.sub, .group-label, .hub-label, .section-sub { color: var(--vd-mute); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* ---------- Knöpfe: klares Blau, 10-px-Rundung ---------- */
.btn { border-radius: var(--vd-r-s); min-height: 44px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.btn.primary, .btn:not(.secondary):not(.ghost):not(.danger):not(.link) { background: var(--vd-brand); color: #fff; }
.btn.primary:not(:disabled):hover { background: var(--vd-brand-d); }
.btn.secondary, .btn.ghost { background: #fff; color: var(--vd-ink); border: 1px solid var(--vd-line); }
.btn.small, .btn.sm, .btn.compact, .chip-btn, .filter-chip { border-radius: 999px; min-height: 34px; font-size: 14px; font-weight: 600; }
.back-btn, .ek-back { color: var(--vd-brand); }

/* ---------- Eingaben ---------- */
.field-input, input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r-s); color: var(--vd-ink); box-shadow: none;
}
input[type="search"], .hub-search input, #hubSearch, .menu-search input { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r-s); min-height: 44px; }
.field-input:focus, input:focus, select:focus, textarea:focus, input[type="search"]:focus, #hubSearch:focus { outline: 0; border-color: var(--vd-brand); box-shadow: 0 0 0 3px rgba(20, 86, 217, .18); background: #fff; }

/* ---------- Umschalter / Reiter ---------- */
.tm-seg, .cl-seg, .category-tabs, .seg { background: #e1e6ee; border-radius: var(--vd-r-s); padding: 3px; }
.category-tab.active, .tm-seg button.on, .seg button.on { background: #fff; color: var(--vd-ink); box-shadow: var(--vd-sh); }

/* ---------- Kopfzeile ---------- */
.topbar, #app .topbar, .ek-top, header.ek-top { background: var(--vd-bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 1px solid var(--vd-line); box-shadow: none !important; }
.ek-top h1, .ek-top .ek-title { font-size: 19px; letter-spacing: -.01em; color: var(--vd-ink); }

/* ---------- Untere Leiste ---------- */
.tabbar:not(.hidden), body.ek .tabbar:not(.hidden), body:not(.ek) .tabbar:not(.hidden) { background: #fff !important; border-top: 1px solid var(--vd-line) !important; }
.tabbar .menu-fab, .tabbar .tables-fab, .tabbar .home-fab { color: var(--vd-ink-2); }
.tabbar .active, .tabbar [aria-current="page"], .tabbar .on { color: var(--vd-brand); }

/* ---------- Startseite: Fläche nutzen ---------- */
.start-inner { max-width: 1100px; width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 900px) { .start-inner { padding-inline: 32px; } }
.start-card { padding: 18px 20px; }

/* ---------- graue Zusatzknöpfe (Durchsage, Scannen …) wie in Kemmler: weiß mit Linie ---------- */
.btn.secondary, .btn.ghost, .btn.sec, button.wide-sec { background: #fff; border: 1px solid var(--vd-line); color: var(--vd-ink); }

/* ---------- Seitenleiste mit dem ganzen Menü (nur Laptop) – gleiche Gestaltung wie bei Kemmler ---------- */
.vs-menu { display: none; } /* Gestaltung: sidemenu.css */
@media (min-width: 1000px) {
  html body .tabbar.tabbar:not(.hidden) {
    position: fixed !important; inset: 0 auto 0 0 !important; width: 256px !important; height: 100vh; z-index: 60 !important; margin: 0 !important;
    display: block !important; padding: 0 !important; overflow-y: auto; background: var(--vd-navy) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
  html body .tabbar > .home-fab, html body .tabbar > .menu-fab, html body .tabbar > .tables-fab { display: none !important; }
  body:has(.tabbar:not(.hidden)) #app { left: 256px !important; }
  body:has(.tabbar:not(.hidden)):not(:has(#app)) { padding-left: 256px; }
  #app:has(#tabbar:not(.hidden)) main#content { padding-bottom: 32px; }
}

/* ---------- Menü-Fenster (Handy): Kemmler-Optik ---------- */
.modal-sheet.menu-sheet { background: var(--vd-bg); border: 0; }
.modal-sheet.menu-sheet .menu-head h2 { font-size: 22px; letter-spacing: -.02em; }
.modal-sheet.menu-sheet .more-group { margin: 18px 0 6px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--vd-mute); }
.modal-sheet.menu-sheet .more-list { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r); box-shadow: var(--vd-sh); overflow: hidden; }
.modal-sheet.menu-sheet .more-item { min-height: 48px; font-size: 15.5px; font-weight: 600; color: var(--vd-ink); }
.modal-sheet.menu-sheet .more-item + .more-item::before { background: var(--vd-line-2); }
.modal-sheet.menu-sheet .more-item.active { background: var(--vd-brand-soft); color: var(--vd-brand); }
.modal-sheet.menu-sheet .more-item.active::after { border-color: var(--vd-brand); }
.modal-sheet.menu-sheet .more-item .nic { --g1: #2a68e6 !important; --g2: #1456d9 !important; border-radius: 9px; }
@media (min-width: 1000px) { body:has(.vs-menu) .topbar-logo { display: none; } }

/* ==========================================================================
   V216 – Positionierung überarbeitet
   ========================================================================== */
/* Tische: Durchsage/Scannen als Knopfreihe statt über die ganze Breite gestreckt */
@media (min-width: 701px) {
  .quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
  .quick-row .da-bar { margin: 0; flex: 0 0 auto; }
  .quick-row:not(:has(.da-bar:not(.hidden))) { display: none; }
  .quick-row .da-open-btn { width: auto; min-width: 170px; padding: 0 20px; gap: 8px; }
}
/* „So geht's“: am Laptop zweispaltig statt eine lange Liste */
@media (min-width: 1000px) {
  .howto-list { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
}
/* Fingergröße */
@media (pointer: coarse), (max-width: 700px) {
  .btn.small, .btn.sm, .btn.compact, .chip-btn, .filter-chip { min-height: 40px; }
  .ek-back, .back-btn { min-height: 40px; display: inline-flex; align-items: center; }
  .howto-ok { min-height: 40px; }
}
@media (pointer: coarse), (max-width: 700px) {
  .user-chip, .storage-chip, .table-edit-btn, .gast-setup, .kc-btn, .pl-btn, .st-tools .btn, .gs-tools .btn { min-height: 40px; }
  .logo-home { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; }
  .btn.secondary, .btn.primary { min-height: 44px; }
  summary { min-height: 40px; display: list-item; }
}

/* ==========================================================================
   V218 – Erstes Musikverein-Menü (Startmenü) im Kemmler-Look
   Handy: dunkle Kopfleiste, Begrüßung, Suche, Menü direkt als Karten mit blauen Symbolen.
   Laptop: dunkle Seitenleiste (wie die Hauptseiten), Menü als Kachel-Raster.
   ========================================================================== */
html body #hubScreen { padding: 0 !important; background: var(--vd-bg); }
html body #hubScreen .hub-inner { max-width: none; margin: 0; padding: 0 0 calc(var(--safe-bottom, 0px) + 28px); }
html body #hubScreen .hub-side { display: none; }
html body #hubScreen .hub-bar {
  display: flex; align-items: center; gap: 10px; background: var(--vd-navy); color: #fff;
  padding: calc(var(--safe-top, 0px) + 10px) 14px 12px 8px; position: sticky; top: 0; z-index: 5;
}
html body #hubScreen .hub-bar .area-back { margin: 0; padding: 4px 8px 4px 2px; min-height: 40px; color: rgba(255, 255, 255, .86); font-size: 16px; font-weight: 500; flex: none; }
html body #hubScreen .hub-bar .area-back svg { width: 22px; height: 22px; }
html body #hubScreen .hub-head { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 0; grid-template-columns: none; row-gap: 0; }
html body #hubScreen .hub-head > picture, html body #hubScreen .hub-head > .hub-logo { grid-row: auto; grid-column: auto; flex: none; display: block; }
html body #hubScreen .hub-logo { width: 25px; height: 28px; object-fit: contain; }
html body #hubScreen .hub-head > .hub-title { grid-row: auto; grid-column: auto; flex: 1; min-width: 0; }
html body #hubScreen .hub-head .hub-title h1 { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #hubScreen .hub-head > .hub-account { grid-row: auto; grid-column: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; color: #fff; border: 0; display: grid; place-items: center; }
html body #hubScreen .hub-account svg { width: 21px; height: 21px; }
html body #hubScreen .hub-welcome, html body #hubScreen .hub-search, html body #hubScreen .hub-results, html body #hubScreen .hub-list, html body #hubScreen .hub-tip, html body #hubScreen .app-version, html body #hubScreen .hub-offline, html body #hubScreen .hub-menu, html body #hubScreen .hub-festbar, html body #hubScreen .hub-editbar, html body #hubScreen .hub-hidden { margin-left: 16px; margin-right: 16px; }
html body #hubScreen .hub-welcome { margin-top: 18px; margin-bottom: 14px; }
html body #hubScreen .hub-welcome h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; color: var(--vd-ink); }
html body #hubScreen .hub-welcome p { margin: 3px 0 0; font-size: 16px; color: var(--vd-ink-2); }
html body #hubScreen .hub-search { max-width: none; margin-bottom: 4px; }
html body #hubScreen .hub-search input, html body #hubScreen #hubSearch { background: #fff; border: 1px solid var(--vd-line); border-radius: 12px; min-height: 46px; box-shadow: none; }
html body #hubScreen .hub-bigmenu { display: none; }
html body #hubScreen .hub-inner.searching .hub-list { display: none; }

/* Menü als Karten */
.hub-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.hm-grp { display: flex; flex-direction: column; }
.hm-label { margin: 18px 0 6px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--vd-mute); }
.hm-grp.top .hm-label { display: none; }
.hm-list { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r); box-shadow: var(--vd-sh); overflow: hidden; display: flex; flex-direction: column; }
.hm-item { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 54px; padding: 8px 14px 8px 12px; border: 0; background: transparent; color: var(--vd-ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hm-item + .hm-item::before { content: ""; position: absolute; top: 0; left: 61px; right: 0; border-top: 1px solid var(--vd-line-2); }
.hm-item:active { background: var(--vd-brand-soft); }
.hm-item:focus-visible { outline: 2px solid var(--vd-brand); outline-offset: -2px; }
.hm-item .nic { --g1: #2a68e6 !important; --g2: #1456d9 !important; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.hm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-go { flex: none; width: 17px; height: 17px; color: #a3aec0; }
.hm-badge { flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--vd-brand-soft); color: var(--vd-brand); font-variant-numeric: tabular-nums; }
.hm-badge.hidden { display: none; }
html body #hubScreen .hub-tip { margin-top: 22px; font-size: 13.5px; color: var(--vd-mute); }
html body #hubScreen .app-version { margin-top: 14px; }

/* Laptop: Seitenleiste + Kachel-Raster */
@media (min-width: 1000px) {
  html body #hubScreen .hub-side {
    display: block; position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 60; overflow-y: auto; background: var(--vd-navy);
  }
  html body #hubScreen .hub-inner { margin-left: 256px; }
  html body #hubScreen .hub-bar { background: var(--vd-bg); color: var(--vd-ink); border-bottom: 1px solid var(--vd-line); padding: 14px 28px; min-height: 66px; }
  html body #hubScreen .hub-bar .area-back, html body #hubScreen .hub-head > picture { display: none; }
  html body #hubScreen .hub-head .hub-title h1 { color: var(--vd-ink); font-size: 21px; }
  html body #hubScreen .hub-head > .hub-account { background: #fff !important; color: var(--vd-ink) !important; border: 1px solid var(--vd-line); }
  html body #hubScreen .hub-welcome, html body #hubScreen .hub-search, html body #hubScreen .hub-results, html body #hubScreen .hub-list, html body #hubScreen .hub-tip, html body #hubScreen .app-version, html body #hubScreen .hub-offline, html body #hubScreen .hub-menu, html body #hubScreen .hub-festbar, html body #hubScreen .hub-editbar, html body #hubScreen .hub-hidden { margin-left: 28px; margin-right: 28px; }
  html body #hubScreen .hub-welcome { margin-top: 30px; }
  html body #hubScreen .hub-welcome h2 { font-size: 32px; }
  html body #hubScreen .hub-search, html body #hubScreen .hub-results { max-width: 560px; margin-right: auto; }
  html body #hubScreen .app-version { text-align: left; }
  .hub-list { margin-top: 10px; }
  .hm-label { margin: 26px 0 10px 2px; }
  .hm-grp.top { display: none; }
  .hm-list { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .hm-item { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r); box-shadow: var(--vd-sh); min-height: 66px; padding: 12px 14px; transition: border-color .12s, box-shadow .12s, transform .12s; }
  .hm-item + .hm-item::before { display: none; }
  .hm-item:hover { border-color: #b7c7e6; box-shadow: 0 4px 14px rgba(14, 27, 51, .09); transform: translateY(-1px); }
  .hm-item .nic { width: 40px; height: 40px; border-radius: 11px; }
  .hm-go { display: none; }
}
/* Tablet (ab 700 px): Kachel-Raster statt langer Liste, Inhalt nicht über die ganze Breite */
@media (min-width: 700px) and (max-width: 999px) {
  html body #hubScreen .hub-welcome, html body #hubScreen .hub-search, html body #hubScreen .hub-results, html body #hubScreen .hub-list, html body #hubScreen .hub-tip, html body #hubScreen .app-version, html body #hubScreen .hub-offline { margin-left: 24px; margin-right: 24px; }
  html body #hubScreen .hub-search, html body #hubScreen .hub-results { max-width: 560px; margin-right: auto; }
  html body #hubScreen .hub-bar { padding-left: 14px; padding-right: 24px; }
  .hm-grp.top { display: none; }
  .hm-list { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .hm-item { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-r); box-shadow: var(--vd-sh); min-height: 62px; }
  .hm-item + .hm-item::before { display: none; }
  .hm-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-item { transition: none !important; transform: none !important; } }

/* V219: Abrechnen – Summe groß, Schnellwahl für das Bargeld */
.cash-due { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: var(--vd-r-s); background: var(--vd-brand-soft); color: var(--vd-brand-d); }
.cash-due span { font-size: 14px; font-weight: 600; }
.cash-due b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--vd-ink); }
.cash-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cash-quick-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--vd-line); border-radius: 999px; background: #fff; color: var(--vd-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.cash-quick-btn:active { background: var(--vd-brand-soft); }

/* ---------- V225: Tische – ruhig, übersichtlich, hochwertig ---------- */
.howto-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 6px 8px 16px; background: #fff; border: 1px solid var(--vd-line); border-radius: 14px; font-size: 14.5px; color: var(--vd-ink-2); }
.howto-note span { flex: 1; min-width: 0; }
.howto-see { border: 0; border-radius: 999px; padding: 8px 15px; background: var(--vd-brand-soft); color: var(--vd-brand); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.howto-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--vd-mute); font-size: 15px; cursor: pointer; }
html body .quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
html body .quick-row:not(:has(.da-bar:not(.hidden))) { display: none; }
html body .quick-row .da-bar { flex: 0 0 auto; margin: 0; }
html body .quick-row .da-open-btn { width: auto; min-height: 38px; padding: 0 15px; border-radius: 999px; gap: 7px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--vd-line); color: var(--vd-ink); box-shadow: none; }
html body .quick-row .da-open-btn svg { width: 17px; height: 17px; }
html body #tablesSummary { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; text-align: left; align-items: center; gap: 10px; margin: 0 0 16px; padding: 13px 16px; background: #fff; border: 1px solid var(--vd-line); border-radius: 14px; box-shadow: none; font-size: 15px; color: var(--vd-ink-2); }
html body #tablesSummary.hidden { display: none; }
.ts-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #d12a36; }
.ts-label { flex: 1; }
.ts-label b { color: var(--vd-ink); font-weight: 700; }
.ts-sum { font-weight: 700; color: var(--vd-ink); font-variant-numeric: tabular-nums; }
html body #content .group-label { margin: 22px 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--vd-mute); }
html body #content .group-label small { display: none; }
html body #content .bar-section { padding: 0; background: none; border: 0; box-shadow: none; margin: 0 0 4px; }
html body .tables-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 2px 8px; }
html body .tables-foot .howto-link, html body .tables-foot .gast-setup { padding: 6px 0; border: 0; background: none; box-shadow: none; color: var(--vd-mute); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body .tables-foot span:empty { display: none; }

html body #tablesGrid, html body #barGrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; grid-auto-rows: auto; }
html body #tablesGrid .table-card-wrap, html body #barGrid .table-card-wrap { height: auto; }
html body #tablesGrid .table-card.table-card, html body #barGrid .table-card.table-card:not(.bar) {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 1px;
  min-height: 92px !important; height: 100%; box-sizing: border-box; padding: 16px 42px 16px 16px; text-align: left;
  background: #fff; border: 1px solid var(--vd-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(14, 27, 51, .05);
}
html body #tablesGrid .table-card[data-st="open"] { border-color: #f0c3c6; }
html body #tablesGrid .table-card[data-st="new"] { border-color: #b7d0fb; }
html body #tablesGrid .table-card.mine { box-shadow: inset 0 0 0 2px var(--vd-brand); }
html body #tablesGrid .tc-head, html body #tablesGrid .table-card-foot { display: contents; }
html body #tablesGrid .tc-tile { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; background: #eef1f6; color: #5d6880; box-shadow: none; }
html body #tablesGrid .table-card[data-st="open"] .tc-tile { background: #fde6e7; color: #c4262f; }
html body #tablesGrid .table-card[data-st="new"] .tc-tile { background: #e3ecfd; color: #1456d9; }
html body #tablesGrid .table-card-top { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; }
html body #tablesGrid .table-card .name { font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--vd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #tablesGrid .table-assignee { margin-top: 1px; font-size: 12.5px; color: var(--vd-mute); }
html body #tablesGrid .tc-pill { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin: 2px 0 0; padding: 0; border-radius: 0; background: none !important; font-size: 14px; font-weight: 600; color: var(--vd-mute); }
html body #tablesGrid .tc-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html body #tablesGrid .tc-pill.open { color: #c4262f; }
html body #tablesGrid .tc-pill.new { color: var(--vd-brand); }
html body #tablesGrid .tc-pill.free { color: #8a94a6; }
html body #tablesGrid .tc-ready { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
html body #tablesGrid .table-card .amount { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--vd-ink); font-variant-numeric: tabular-nums; }

/* Kasse (Bar): eine ruhige Zeile */
html body #barGrid .table-card.bar { display: flex; align-items: center; gap: 14px; min-height: 80px !important; height: auto; padding: 14px 42px 14px 16px; background: #fffaf0; border: 1px solid #f1dfb4; border-radius: 18px; box-shadow: none; }
html body #barGrid .tc-head { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 0; }
html body #barGrid .tc-tile { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: #fdeccb; color: #a86a00; box-shadow: none; }
html body #barGrid .table-card .name { font-size: 18px; font-weight: 700; color: var(--vd-ink); }
html body #barGrid .bar-tag { display: none; }
html body #barGrid .table-card-foot.bar-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; padding: 0; font-size: 13.5px; color: var(--vd-ink-2); }
html body #barGrid .bar-sales b, html body #barGrid .bar-open b { color: var(--vd-ink); }

@media (max-width: 700px) {
  html body #tablesGrid, html body #barGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html body #barGrid { grid-template-columns: minmax(0, 1fr); }
  html body #tablesGrid .tcw-named { grid-column: span 2; }
  html body #tablesGrid .table-card.tc-num { grid-template-columns: auto minmax(0, 1fr); min-height: 84px !important; padding: 14px 12px 14px 14px; column-gap: 12px; }
  html body #tablesGrid .tc-num .table-card-top { display: none; }
  html body #tablesGrid .tc-num .tc-tile { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
  html body #tablesGrid .tc-num .tc-pill { grid-row: 1; align-self: end; }
  html body #tablesGrid .tc-num .amount { grid-column: 2; grid-row: 2; align-self: start; font-size: 18px; }
  html body #tablesGrid .table-card.tc-num:not(:has(.amount)) .tc-pill { grid-row: 1 / 3; align-self: center; margin: 0; }
  html body #tablesGrid .tc-ready { grid-column: 2; grid-row: 3; }
  html body #tablesGrid .tc-named { min-height: 84px !important; }
  html body #tablesGrid .tcw-num .table-edit-btn { top: -6px; right: -6px; }
}
html body #tablesSummary .ts-label { display: block; flex: 1; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--vd-ink-2); }
html body #tablesSummary .ts-label b { display: inline; font-size: inherit; color: var(--vd-ink); }
html body #content .unsent-card.ok { display: none; }
