/* Mingle – stílus, „A · Éjjeli zöld, prémium” (Ádám választása, 2026-11-14; docs/DESIGN.md). A tokenek: css/tokens_a.css.
   EGY stílus két módban (világos alap / sötét: `:root[data-theme="sotet"]`), ugyanazokkal a token-nevekkel.
   Keretek helyett tónusok (vászon → panel → vezérlő → lenyomott), egy menta kiemelés (fő cselekvés, foglalt asztal), vastag táblázatos számok.
   Szín csak állapotot (foglalt, foglalás, kevés, elfogyott, kiválasztva, új tétel, kapcsolat) és a fő cselekvést jelöli; állapotot SOHA nem csak szín jelez.
   Betű: Inter (helyben, /static/fonts) a szövegnek ÉS a számoknak (tabuláris számjegyek, 700 / 800); méret csak a --text-* skáláról.
   Nincs külső betűtípus, kép vagy importált stíluslap. A régi tokenneveket (--bg, --surface …, --primary, --radius, --tap, --font) a bővítő modulok
   CSS-e is használja: a nevük marad. */

/* Inter változó betűtípus (SIL OFL, docs/licenses/Inter-OFL.txt): a latin-ext fájl tartalmazza a magyar ő / ű betűket */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* TOKENEK (szín, betű, betűméret-skála, sugár, térköz, komponens-értékek, sötét mód): css/tokens_a.css – az „A · Éjjeli zöld” terv
   egyetlen forrása; az index.html közvetlenül e fájl után tölti be. Itt csak szabályok állnak. */

/* opt-in színes bal sáv kártyán / soron: .accent-bar + style="--accent-color: …" (v7: a sáv csak állapotnál él, alapból rejtett) */
.accent-bar { position: relative; --accent-color: var(--c-system); }
.accent-bar::before {
  display: none;
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-color);
  border-radius: 0; pointer-events: none;
}

/* funkció-szín osztályok (nav_logic.colorClass): .nc-<szín> beállítja a --nc (jel), --nc-bg (halvány háttér) és --accent-color (kártya-sáv) változót */
.nc-tables { --nc: var(--c-tables); --nc-bg: var(--c-tables-bg); --accent-color: var(--c-tables); }
.nc-bills { --nc: var(--c-bills); --nc-bg: var(--c-bills-bg); --accent-color: var(--c-bills); }
.nc-reservations { --nc: var(--c-reservations); --nc-bg: var(--c-reservations-bg); --accent-color: var(--c-reservations); }
.nc-queue { --nc: var(--c-queue); --nc-bg: var(--c-queue-bg); --accent-color: var(--c-queue); }
.nc-hookah { --nc: var(--c-hookah); --nc-bg: var(--c-hookah-bg); --accent-color: var(--c-hookah); }
.nc-cash { --nc: var(--c-cash); --nc-bg: var(--c-cash-bg); --accent-color: var(--c-cash); }
.nc-reports { --nc: var(--c-reports); --nc-bg: var(--c-reports-bg); --accent-color: var(--c-reports); }
.nc-stock { --nc: var(--c-stock); --nc-bg: var(--c-stock-bg); --accent-color: var(--c-stock); }
.nc-system { --nc: var(--c-system); --nc-bg: var(--c-system-bg); --accent-color: var(--c-system); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; background: var(--bg); }
/* V22: a menta (sötétben zöldes-grafit) színátmenetes háttér a teljes lap mögött áll; a --bg a tömör tartalék és a kontraszt-alap */

body {
  margin: 0;
  background: var(--bg-art) fixed, var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;          /* az összegek és darabszámok egymás alatt egy vonalban */
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
ul { padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* számok: Bahnschrift 600, tabuláris; a „Ft” utána kisebb, a szöveg-betűvel (a .num small) */
.num { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.num small, .ft { font-family: var(--font); font-weight: 500; font-size: 0.55em; letter-spacing: 0; color: var(--muted); margin-left: 0.15em; }
/* kitöltött (cselekvés-szín / piros) gombon és a foglalt asztalon a „Ft” a felirat színét veszi át, halkabban */
.btn-primary .ft, .btn-danger .ft, .is-occupied .ft { color: inherit; opacity: 0.8; }

/* képernyőolvasónak szánt szöveg: látszólag nincs, de felolvassák */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ikonok (icons.js, Lucide): vonalas SVG, a szöveg színét veszik át; 24-es rács, 1,75-ös vonal */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- váz: felső sáv, tartalom, navigáció (telefonon alsó fülsáv, széles képernyőn keskeny bal oldalsáv) ---------- */

#app { min-height: 100vh; }

.shell { min-height: 100vh; }
.shell-main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: env(safe-area-inset-top) calc(var(--space-3) + env(safe-area-inset-right)) 0 calc(var(--space-4) + env(safe-area-inset-left));
  background: transparent;
  border-bottom: 0;
}
.topbar-title { flex: 1; min-width: 0; font-family: var(--font); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .btn-icon { flex: none; }
.topbar-back { margin-left: calc(-1 * var(--space-3)); color: var(--text); }
.topbar-back .icon { width: 24px; height: 24px; }
/* al-képernyőn (van „←”) a cím kisebb és halkabb (17 px / 600, --ink2), mint a főképernyőn (26 px / 700) */
.topbar-back:not([hidden]) + .topbar-title { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; color: var(--ink2); }

/* a dolgozó neve és monogramja (telefonon, főképernyőn); az óra (széles képernyőn) */
.topbar-who { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; color: var(--ink2); font-size: var(--text-xs); }
@media (max-width: 420px) { .topbar-who-name { display: none; } }          /* keskeny telefonon a monogram elég (a név az aria-hidden sorban úgyis csak látvány) */
.topbar-who-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-back:not([hidden]) ~ .topbar-who { display: none; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: var(--avatar-bg); color: var(--avatar-fg); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em;
}
.topbar-clock { display: none; flex: none; font-family: var(--font-num); font-weight: 700; font-size: var(--text-xl); color: var(--num); font-variant-numeric: tabular-nums lining-nums; }

/* a kimenő sor függő darabszáma: csak akkor látszik, ha van mit küldeni */
.topbar-queue {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 12px 4px 10px;
  border: 0; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); font-size: var(--text-sm); font-weight: 600;
}
.topbar-queue .icon { width: 18px; height: 18px; }

.view {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-4) calc(var(--space-4) + env(safe-area-inset-right)) calc(var(--space-4) + env(safe-area-inset-bottom)) calc(var(--space-4) + env(safe-area-inset-left));
}
.page { display: flex; flex-direction: column; gap: var(--space-4); }

/* kapcsolat-jelző: pont + szöveg („● Online”), telefonon is (a 6 px-es pont magában nem mondott semmit) */
.conn-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 32px; padding: 2px 10px; border-radius: var(--radius);
  font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
}
.conn-pill .icon { width: 16px; height: 16px; }
.conn-ok { color: var(--ink2); background: transparent; font-weight: 500; }
.conn-ok .conn-icon { color: var(--ok); }
.conn-warn { color: var(--warn); background: var(--warn-bg); }
.conn-info { color: var(--info); background: var(--info-bg); }
.conn-err { color: var(--err); background: var(--err-bg); }

/* felső sáv + „Nincs kapcsolat – az utolsó ismert állapot” sáv: együtt tapadnak a tetejéhez */
.topwrap { position: sticky; top: 0; z-index: 20; background: var(--glass); }
.topwrap .topbar { position: static; }
.offline-bar {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px calc(var(--space-4) + env(safe-area-inset-right)) 8px calc(var(--space-4) + env(safe-area-inset-left));
  color: var(--err); background: var(--err-bg); box-shadow: inset 3px 0 0 var(--err);
}
.offline-bar[hidden] { display: none; }
/* felhő: „N nap múlva törlődik a bár, ha nem erősíted meg az e-mail-címed” – ugyanaz a sáv-forma, figyelmeztető színnel */
.cloud-notice-bar {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px calc(var(--space-4) + env(safe-area-inset-right)) 8px calc(var(--space-4) + env(safe-area-inset-left));
  color: var(--warn); background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn);
}
.cloud-notice-bar[hidden] { display: none; }
/* gyakorló bár (docs/GYAKORLO_MOD.md): állandó, félreérthetetlen sáv MINDEN képernyő legtetején – tömör figyelmeztető szín
   (világosban sötét borostyán fehér betűvel, sötétben világos borostyán sötét betűvel), a felső sáv fölött, vele együtt tapad */
.topwrap.has-practice { display: flex; flex-direction: column; }
.practice-bar {
  order: -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px;
  padding: calc(5px + env(safe-area-inset-top)) calc(var(--space-4) + env(safe-area-inset-right)) 5px calc(var(--space-4) + env(safe-area-inset-left));
  color: var(--on-status); background: var(--warn); text-align: center;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; line-height: 1.25;
}
.practice-bar[hidden] { display: none; }
.practice-bar-mark {
  flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 0;
}
.practice-bar-text { font-weight: 700; }
/* a napi zárás és a riport (Forgalom) CÍME fölött külön is: „GYAKORLÓ” (a képernyőkép / fotó a sáv nélkül se legyen félreérthető) */
[data-practice] .shell[data-route="day"] .topbar-title::before, [data-practice] .shell[data-route="report"] .topbar-title::before {
  content: "GYAKORLÓ"; display: block; padding-top: 4px; color: var(--warn); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; line-height: 1.3;
}
.practice-sheet .practice-lead { margin: 0 0 var(--space-3); color: var(--text); }
.practice-sheet .practice-auto { margin: var(--space-4) 0 var(--space-3); }
.practice-sheet .practice-actions { display: flex; margin-bottom: var(--space-3); }
.practice-sheet .practice-actions .btn { flex: 1; }
.offline-icon { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.offline-text { display: flex; flex-direction: column; gap: 2px; }
.offline-main { color: var(--text); font-size: var(--text-sm); }
.offline-hint { color: var(--ink2); font-size: var(--text-xs); }

/* számláló (nyitott számlák, függő törlések): 16 px magas, 4 px sarok; más jelvény a navigációban nincs */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-xs); background: var(--count-bg); color: var(--count-fg); font-size: 10.5px; font-weight: 700; line-height: 1;
}

/* belépés, párosítás, betöltés: nincs navigáció */
.sidenav, .tabbar { display: none; }

/* alsó fülsáv (telefon): 60 px, 22 px ikon + 11 px felirat; az aktív: cselekvés-szín és felül 2 px sáv */
.shell.is-main .tabbar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  min-height: var(--tabbar-h); padding: 4px calc(6px + env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
  background: var(--surface); border: 0; border-radius: 0; box-shadow: var(--shadow-bar);
}
.shell.is-main .view { padding-bottom: calc(var(--tabbar-h) + var(--space-5) + env(safe-area-inset-bottom)); }
.tab-link {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 2px 4px; border: 0; background: transparent; color: var(--muted); font-size: var(--text-2xs); font-weight: 600; line-height: 1.15;
  text-decoration: none; text-align: center; transition: color var(--ease); isolation: isolate;
}
.tab-link .icon { width: 22px; height: 22px; color: currentColor; }
.tab-link-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* aktív fül (V22): fő szöveg ÉS az ikon mögött menta kapszula (alak, nem csak szín) */
.tab-link[aria-current="page"] { color: var(--text); font-weight: 700; }
.tab-link[aria-current="page"] .icon { color: var(--acc-d); }
/* aktív fül (A): az ikon ÉS a felirat mögött egy tónus-lap (alak + vastagság + ikonszín, nem csak szín) */
.tab-link[aria-current="page"]::before { content: ""; position: absolute; z-index: -1; top: 2px; bottom: 2px; left: 50%; width: min(100%, 104px); transform: translateX(-50%); border-radius: var(--radius); background: var(--surface-2); }
/* a számláló az ikon jobb felső sarka mellett: nem takarja az ikont (a „Több” három pontját sem) */
.tab-link .nav-badge { position: absolute; top: 2px; left: calc(50% + 12px); box-shadow: 0 0 0 2px var(--surface); }
/* a rendelés és a fizetés alfolyamat: ott nincs fülsáv (a rögzített alsó sáv foglalja a helyet; visszalépés a felső „←”-vel) */
/* v8: a számla is al-képernyő (←), ott sincs fülsáv; a számla rögzített sávja ilyenkor a képernyő aljára kerül */
.shell[data-route="order"] .tabbar, .shell[data-route="pay"] .tabbar, .shell[data-route="bill"] .tabbar, .shell[data-route="split"] .tabbar { display: none; }
.shell[data-route="order"] .view { padding: 0 calc(var(--space-3) + env(safe-area-inset-right)) var(--space-4) calc(var(--space-3) + env(safe-area-inset-left)); }

/* bal oldalsáv (széles képernyő, V22): sötét, lekerekített, lebegő ikonsáv (12 px-re a széltől); ikon + kis felirat; az aktív: világos kapszula-háttér + világos ikon */
@media (min-width: 900px) {
  .shell.is-main { display: grid; grid-template-columns: calc(var(--nav-w) + 12px) minmax(0, 1fr); }
  .shell.is-main .tabbar { display: none; }
  .shell.is-main .view { padding: var(--space-5) var(--space-5) var(--space-6); }
  .shell.is-main[data-route="order"] .view { padding: 0 var(--space-4) var(--space-4); }
  .shell.is-main .sidenav {
    display: flex; flex-direction: column; position: sticky; top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; overflow: hidden;
    background: var(--rail); border: 0; border-radius: var(--radius-lg); box-shadow: none;
  }
  .topbar { min-height: 52px; padding-left: var(--space-5); padding-right: var(--space-4); }
  .topbar-back { margin-left: calc(-1 * var(--space-3)); }
  .topbar-who { display: none; }
  .topbar-clock { display: inline-block; margin-left: var(--space-2); }
  /* széles képernyőn a kapcsolat szövegként áll a felső sávban („● Online”) */
  .topbar .conn-ok { color: var(--ink2); }
  .topbar .conn-ok .conn-icon { color: var(--ok); }
  .topbar .conn-ok .conn-text { position: static; width: auto; height: auto; margin: 0; clip: auto; }
  .topbar .conn-pill { font-weight: 400; }
}
/* márka-cella (52 px, a felső sávval egy vonalban) */
.sidenav-brand { flex: none; display: flex; align-items: center; justify-content: center; height: 64px; }
/* V22 márkajel: menta négyzet, benne „M”; a teljes név a képernyőolvasónak */
.brand-logo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--logo); color: var(--logo-tx); font-size: 16px; font-weight: 700; }
.brand-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.brand-mark { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand-venue { display: none; }
.sidenav-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--space-1) 0; scrollbar-width: none; }
.sidenav-scroll::-webkit-scrollbar { display: none; }
/* a csoportokat egy vékony vonal választja el; a csoport neve csak a képernyőolvasónak szól (a sávban nincs hely, a „Több” lapon látszik) */
.nav-group + .nav-group { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--border); }
.sidenav .nav-group + .nav-group { border-top-color: var(--border); }
.sidenav .nav-group-title:not(.group-toggle) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav-group-title { padding: var(--space-2) var(--space-3) var(--space-1); }
/* összecsukható „Egyéb” csoport (bal sáv és „Több” lap): fejléc-gomb + nyíl */
.group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 0; background: transparent; text-align: left; }
.group-toggle .icon { width: 16px; height: 16px; transition: transform var(--ease); }
.group-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-link {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 64px; padding: 6px 3px;
  border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--text-2xs); font-weight: 600; line-height: 1.15;
  text-align: center; text-decoration: none; transition: background-color var(--ease), color var(--ease);
}
.nav-link .icon { width: 22px; height: 22px; color: currentColor; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
/* a sötét sávban: halk menta ikonok, az aktív / fölé vitt elem világos kapszulán (a sáv mindkét módban sötét) */
.sidenav .nav-link { width: auto; margin: 2px 6px; min-height: 58px; border-radius: 14px; color: var(--rail-ic); }
.sidenav .sidenav-more { width: calc(100% - 12px); }          /* a „Több” gomb (nem link) is a sáv teljes szélességét kapja: a pont és a felirat középen, mint a többi */
.sidenav .nav-link:hover { background: var(--rail-on); color: var(--rail-on-ic); }
.nav-link-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a keskeny sávban a rövid név (data-short) látszik; a teljes név a DOM-ban marad (képernyőolvasó, title) */
.sidenav .nav-link-label[data-short] { font-size: 0; }
.sidenav .nav-link-label[data-short]::after { content: attr(data-short); font-size: var(--text-2xs); }
/* kijelentkezés: a sáv alján, csendes (a piros csak hibát jelöl) */
.nav-link.is-danger, .nav-link.is-danger .icon { color: var(--muted); }
.sidenav .nav-link.is-danger, .sidenav .nav-link.is-danger .icon { color: var(--rail-ic); }
/* a Kilépés a sáv alján halkabb, mint a munkapontok: kisebb sor, normál vastagság */
.sidenav .nav-link.is-danger { min-height: 48px; font-weight: 500; }
.sidenav .nav-link.is-danger .icon { width: 20px; height: 20px; }
.nav-link .nav-badge { position: absolute; top: 4px; left: calc(50% + 10px); box-shadow: 0 0 0 2px var(--rail); background: var(--logo); color: var(--logo-tx); }
/* aktív elem (V22): világos kapszula-háttér ÉS világos ikon + félkövér felirat (alak és vastagság, nem csak szín) */
.nav-link[aria-current="page"], .nav-link[aria-current="page"]:hover { color: var(--rail-on-ic); background: var(--rail-on); font-weight: 700; }
/* az „Egyéb” fejléce a sávban: ugyanolyan elem, mint a többi (nyíl felül, felirat alatta) */
.sidenav .nav-group-other .group-toggle {
  flex-direction: column-reverse; justify-content: center; gap: 4px; min-height: 52px; padding: 6px 4px;
  color: var(--rail-ic); font-size: var(--text-2xs); font-weight: 600; text-align: center;
}
.sidenav .nav-group-other .group-toggle:hover { background: var(--rail-on); color: var(--rail-on-ic); }
/* alul: Beállítás (a „Több” lap: kinézet, fiók), a dolgozó monogramja */
.sidenav-foot { flex: none; display: flex; flex-direction: column; align-items: stretch; border-top: 1px solid var(--border); }
.sidenav-user { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 12px; text-align: center; }
.sidenav-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--logo); color: var(--logo-tx); font-size: 12px; font-weight: 700; }
.sidenav-who { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rail-ic); font-size: var(--text-2xs); line-height: 1.2; }
.sidenav-role { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sidenav-conn { display: none; }
.sidenav-conn.conn-ok .conn-text { position: static; width: auto; height: auto; margin: 0; clip: auto; }
.sidenav-settings { min-height: 56px; }
/* alacsony képernyőn (fekvő tablet) tömörebb sáv, hogy a menüpontok görgetés nélkül elférjenek */
@media (max-height: 860px) { .sidenav .nav-link { min-height: 54px; gap: 3px; } .sidenav-user { padding: 6px 4px 8px; } }

/* „Kinézet” sor: felirat + szegmentált választó (Sötét / Világos / Rendszer szerint) — theme.js picker */
.theme-row { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3) 0 0; }
.theme-row-label { color: var(--ink2); font-size: 13px; font-weight: 600; }
/* V22 kapszula-szegmens: egyenlő részek egy kapszulában; a kiválasztott TELT cselekvés-szín kapszula, rajta a cselekvés-felirat, félkövéren (alak + vastagság, nem csak szín) */
.theme-seg { display: flex; gap: 4px; min-height: 52px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.theme-opt, .tables-view-opt, .sound-opt {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--ink2); font-size: var(--text-sm); font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.theme-opt + .theme-opt::before, .tables-view-opt + .tables-view-opt::before, .sound-opt + .sound-opt::before { display: none; }
.theme-opt[aria-pressed="true"], .tables-view-opt[aria-pressed="true"], .sound-opt[aria-pressed="true"] { z-index: 1; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: none; }
.theme-opt[aria-pressed="true"]::before, .theme-opt[aria-pressed="true"] + .theme-opt::before,
.tables-view-opt[aria-pressed="true"]::before, .tables-view-opt[aria-pressed="true"] + .tables-view-opt::before,
.sound-opt[aria-pressed="true"]::before, .sound-opt[aria-pressed="true"] + .sound-opt::before { display: none; }
.sidenav-theme { display: none; }
.menu-theme { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }

/* ---------- gombok, mezők ---------- */

/* alap = másodlagos: kártya-réteg, a réteg határolja (világosban vékony vonal) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); min-width: 48px; padding: 0 18px;
  background: var(--surface-2); color: var(--text); border: var(--line) solid var(--control-line); border-radius: var(--radius);
  font-size: var(--text-md); font-weight: var(--btn-weight); line-height: 1.2; text-align: center; user-select: none; -webkit-user-select: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { background: var(--surface-3); }
.btn:disabled { opacity: 0.45; }
.btn.is-busy { opacity: 0.7; }
/* elsődleges: cselekvés-szín kitöltés, sötét tinta (világosban fehér) felirat; képernyőnként egy */
.btn-primary { min-height: 56px; background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-size: var(--text-lg); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--primary-active); border-color: var(--primary-active); }
.btn-primary:disabled { opacity: 1; background: var(--surface-3); border-color: var(--surface-3); color: var(--dis); }
/* egérrel (finom mutató): az elsődleges gomb 44 px */
@media (hover: hover) and (pointer: fine) { .btn-primary { min-height: 44px; } .btn-primary.btn-big { min-height: 52px; } }
/* kiemelt másodlagos (a fő gomb párja): 1,5 px keret */
.btn-outline { background: var(--surface-2); border: 1.5px solid var(--sec-line); color: var(--text); }
/* csendes (ghost): nincs háttér, nincs keret */
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
/* veszélyes: csak megerősítő lapon teli piros */
.btn-danger { background: var(--err); border-color: var(--err); color: var(--on-status); }
.btn-danger:hover:not(:disabled), .btn-danger:active:not(:disabled) { background: var(--err); border-color: var(--err); filter: brightness(1.08); }
.btn-danger-outline { background: transparent; border-color: var(--err); color: var(--err); }
.btn-danger-outline:hover:not(:disabled) { background: var(--err-bg); }
.btn-wide { width: 100%; }
.btn-big { min-height: var(--btn-h-big); font-size: var(--text-lg); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: var(--text-sm); }
.btn-icon { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; background: transparent; border-color: transparent; color: var(--text); font-size: var(--text-lg); }
.btn-icon:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
/* szöveges gomb: cselekvés-szín, keret nélkül, 44 px érintési cél */
.btn-link { background: transparent; border-color: transparent; color: var(--acc-d); font-size: 15px; font-weight: 600; text-decoration: none; min-height: 44px; padding: 0 var(--space-2); }
.btn-link:hover:not(:disabled) { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn-step { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: var(--text-lg); color: var(--primary); }
.btn-key { min-height: 60px; border-radius: var(--radius); font-family: var(--font-num); font-size: 24px; font-weight: 400; }
.btn-key-aux { color: var(--muted); font-family: var(--font); font-size: var(--text-md); }

.input {
  width: 100%; min-height: var(--tap); padding: 0 14px;
  background: var(--field-bg); border: var(--line) solid var(--field-line); border-radius: var(--radius);
  font-size: 16px; transition: border-color var(--ease), box-shadow var(--ease);
}
textarea.input { padding: 10px 14px; }
.input:focus { border-color: var(--primary); box-shadow: inset 0 0 0 0.5px var(--primary); }
.input:focus-visible { outline: none; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input + .btn, .field + .btn { margin-top: var(--space-3); }
/* űrlap alján a fő gomb (közte a – rejtett vagy látható – állapot-doboz): 16 px köz a mezőtől */
.form-status + .btn-wide { margin-top: var(--space-4); }
/* soron belüli nap-léptető (‹ dátum ›): a mező utáni gomb nem kap felső margót (különben lejjebb ülne) */
.day-pick > .btn, .date-bar > .btn { margin-top: 0; }
.input-code { font-size: var(--text-lg); letter-spacing: 0.12em; text-transform: uppercase; }
.input-note { resize: vertical; min-height: 84px; }
.field-label { display: block; margin: var(--space-3) 0 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }

.check-row { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; margin-top: var(--space-3); }
.check { width: 24px; height: 24px; flex: none; accent-color: var(--primary); }

/* kártya: nincs doboz (a belépő képernyőn panel) */
.card {
  width: 100%; max-width: 560px; padding: 0;
  background: none; border: 0; border-radius: var(--radius);
}
.card-narrow { max-width: 420px; }
.screen-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); min-height: 80vh; padding: var(--space-2); }
.screen-center > .card { padding: var(--space-5); background: var(--surface); border-radius: var(--radius-lg); }
.brand { font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.lead { color: var(--ink2); margin-bottom: 10px; }
.hint { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-2); }
.notice-small { margin-top: var(--space-3); text-align: center; color: var(--muted); font-size: var(--text-xs); }
.device-line { margin-top: var(--space-3); text-align: center; color: var(--muted); font-size: var(--text-sm); }
.section-title { margin-bottom: var(--space-2); }

/* lista: panel-réteg, a sorokat vékony vonal választja el (nincs doboz minden sor körül) */
.list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: 8px var(--space-4);
  background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); text-align: left;
}
.list-row:last-child { border-bottom: 0; }
button.list-row:active, a.list-row:active { background: var(--surface-2); }
.list-row .icon { color: var(--muted); }
.list-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row-sub { color: var(--muted); font-size: var(--text-sm); }

/* ---------- állapotok, jelzések ---------- */

.form-status { display: flex; align-items: flex-start; gap: 10px; margin: var(--space-3) 0; padding: 10px 14px; border-radius: var(--radius); border: 0; box-shadow: inset 3px 0 0 currentColor; font-weight: 600; }
.form-status.is-empty { display: none; }
.status-err { color: var(--err); background: var(--err-bg); }
.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-warn { color: var(--warn); background: var(--warn-bg); }
.status-info { color: var(--info); background: var(--info-bg); }
.status-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; min-height: 1.5em; text-align: center; font-weight: 600; }
.status-icon .icon { width: 20px; height: 20px; }
.status-text { flex: 1; color: var(--text); }

/* üres és hiba állapot: kis ikon + szöveg */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-3); text-align: center; color: var(--muted); }
/* az ikon keret és színes négyzet nélkül áll (nincs „ikon-csempe”) */
.state-icon { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); }
.state-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.state-error { color: var(--err); }
.state-error .state-icon { background: none; color: var(--err); }
.state-message { color: var(--text); }

/* állapot-felirat (a régi „jelvény”): v7-ben NEM chip – sima, színezett szöveg (12,5 px / 600), doboz, háttér és dísz-ikon nélkül.
   Az állapotot a szó mondja („Elfogyott”, „Törlés kérve”, „Minimum alatt”); a szín csak kíséri. A „rendben / aktív” nem zöld, hanem csendes másodlagos szöveg
   (a zöld csak a kapcsolat-jelző pont). A jel (✓ / ⚠ / ✕) a DOM-ban marad a képernyőolvasónak, de nem látszik. */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border-radius: 0; background: none;
  font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge-icon { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.badge-ok { color: var(--ink2); background: none; }
.badge-warn { color: var(--amb); background: none; }
.badge-err { color: var(--red); background: none; }
.badge-info { color: var(--ink2); background: none; }
.badge-muted { color: var(--muted); background: none; }
/* egymás melletti állapot-feliratok között csendes „·” (különben egy kifejezésnek olvasnák: „törlés kedvezmény”) */
.badge + .badge::before { content: "·"; margin-right: 4px; color: var(--muted); font-weight: 400; }

.banner {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--tap);
  padding: 10px 14px; border-radius: var(--radius); border: 0; box-shadow: inset 3px 0 0 currentColor; text-align: left; font-weight: 600;
}
.banner-warn { color: var(--warn); background: var(--warn-bg); }
.banner-text { color: var(--text); }
.banner-icon { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.banner-slot:not(:empty) { margin-bottom: var(--space-3); }

/* „Nem adóügyi bizonylat.”: állandó, de csendes lábjegyzet (a szöveg minden képernyőn megmarad, csak a hangereje kisebb) */
.notice-bar, .notice-banner {
  padding: var(--space-2) 0 0; border: 0; border-radius: 0;
  background: none; color: var(--muted); font-size: var(--text-xs); font-weight: 400; text-align: left;
}
.notice-bar { margin-top: var(--space-4); }
/* a fizetés-lapon a sor a lap tetején áll */
.sheet-pay .notice-banner { margin-bottom: var(--space-3); padding: 0 0 var(--space-2); border-bottom: 1px solid var(--border); }

/* ---------- toast (lebegő) ---------- */

/* a visszajelzés a FEJLÉC helyén lebeg (a felső sávot takarja, nem a tartalmat): nem vág félbe sort, és egyértelműen felül áll */
#toasts {
  position: fixed; z-index: 200; left: var(--space-2); right: var(--space-2);
  top: calc(env(safe-area-inset-top) + 4px);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; min-height: 44px;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--glass-bd); box-shadow: inset 3px 0 0 currentColor, var(--glass-sh);
  font-weight: 500; animation: toast-in 0.16s ease-out;
}
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; min-height: 1.5em; text-align: center; font-weight: 600; }
.toast-icon .icon { width: 20px; height: 20px; }
.toast-text { flex: 1; color: var(--text); }
.toast-ok { color: var(--ok); }
.toast-warn { color: var(--warn); }
.toast-err { color: var(--err); }
.toast-info { color: var(--info); }

/* ---------- lapok (sheet) és párbeszédek: fogó, 52 px-es fej, törzs, lábléc ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: var(--backdrop);
}
.sheet {
  display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh;
  background: var(--surface); border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; outline: none;
  box-shadow: var(--shadow-float); animation: sheet-in 0.18s ease-out;
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { flex: none; align-self: center; width: 36px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--border-strong); }
.sheet-head { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-2) 0 var(--space-4); }
.sheet-title { flex: 1; font-size: var(--text-lg); font-weight: 700; }
.sheet-body { flex: 1; overflow-y: auto; padding: var(--space-1) var(--space-4) var(--space-4); -webkit-overflow-scrolling: touch; }
.sheet-footer { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.sheet-footer:empty { display: none; }
.sheet-footer .btn { flex: 1 1 140px; padding: 0 var(--space-3); white-space: nowrap; }
.sheet-footer .btn-primary { flex-grow: 1.6; }
/* keskeny telefonon (≤ 480 px) az elsődleges gomb a feliratához méretez (nem fél szélesség), a „Mégse” a maradékot kapja; ha így sem
   fér el egy sorban, a lábléc tör (flex-wrap): a gomb a feliratánál keskenyebb nem lehet, így a felirat soha nem lóg ki
   (2026-11-14: Bevételezés, Nyitókassza, „Vendég-összesítő nyomtatása” a fizetés eredménylapján) */
.sheet-footer .btn { min-width: max-content; }
@media (max-width: 480px) {
  .sheet-footer .btn { flex: 1 1 96px; }
  .sheet-footer .btn-primary { flex: 2 1 auto; }
}
.sheet-dialog .dialog-message { margin-bottom: 10px; }
.dialog-strong { font-weight: 600; color: var(--warn); }
.sheet-warn { box-shadow: inset 0 3px 0 var(--warn), var(--shadow-float); }
.sheet-summary { display: flex; flex-direction: column; flex: 1 1 140px; }
.sheet-total { font-family: var(--font-num); font-size: var(--text-xl); font-weight: 600; color: var(--num); }
.sheet-hint { color: var(--err); font-size: var(--text-xs); font-weight: 600; }
.entry-brief { display: flex; flex-direction: column; gap: var(--space-2); margin: 10px 0; }

@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { max-width: 480px; border-radius: var(--radius-lg); box-shadow: var(--glass-sh), 0 24px 60px rgba(0, 0, 0, 0.18); }
  .sheet-grip { display: none; }
  .sheet-wide, .sheet-menu { max-width: 560px; }
}

/* ---------- belépés ---------- */

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.staff-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px;
  background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius); text-align: left;
}
.staff-tile:hover, .staff-tile:active { background: var(--surface-3); }
.staff-name { font-size: var(--text-md); font-weight: 600; }
.staff-role { font-size: var(--text-xs); color: var(--muted); }
.back-link { align-self: flex-start; padding-left: 0; text-decoration: none; }
.pin-name { font-family: var(--font); font-size: var(--text-2xl); font-weight: 700; line-height: 1.2; margin-bottom: var(--space-1); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 6px; min-height: 36px; font-size: var(--text-xl); color: var(--primary); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-3) 0; }

/* ---------- asztal-rács (zóna-cím; az ábra a tables.css-ben) ---------- */

.zone { margin-bottom: var(--space-4); }
.zone-title { display: flex; align-items: center; gap: var(--space-2); min-height: 30px; margin-bottom: var(--space-2); font-size: 13px; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.zone-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.zone-name { font-weight: 600; }
.zone-count { color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 400; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-4) var(--space-3); }
.table-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); min-width: 0; padding: 0;
  background: none; border: 0; border-radius: var(--radius); text-align: center;
}
.table-label { max-width: 84%; font-family: var(--font); font-size: var(--text-xl); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.table-label.is-long { font-size: var(--text-md); }
.table-amount { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.table-time { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.table-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.table-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.table-tile.is-free .table-state { color: var(--muted); }
.table-tile.is-occupied .table-state { color: var(--text); }
.cart-offline-note, .bill-offline-note { color: var(--warn); font-weight: 600; }

/* ---------- rendelésfelvétel: a képernyő szabályai a bill.css „rendelés” szakaszában (H3 / H3-S2); itt csak a lapok közös elemei ---------- */

.input-search { position: sticky; top: calc(var(--topwrap-h, 64px) + 6px); z-index: 5; }
.dest-title { margin-bottom: 8px; font-size: var(--text-md); color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper-value { min-width: 2.4em; text-align: center; font-family: var(--font-num); font-weight: 600; font-size: var(--text-lg); color: var(--num); }
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); }
.guest-label { color: var(--ink2); }
/* kötelező létszám: gyorsgombok 1–6 (3×2, telefonon is hüvelykujjnyi), alatta az „egyéb” mező */
.guest-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.guest-btn {
  min-height: 64px; font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--text);
  background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius);
}
.guest-btn:active { background: var(--surface-3); border-color: var(--primary); }
.guest-other { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.guest-other-input { flex: 1; min-width: 0; min-height: 48px; font-size: var(--text-md); }
.guest-other-ok { min-height: 48px; }
.guest-other-err:empty { display: none; }

.mod-group { margin-top: 14px; }
.mod-group-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; font-size: var(--text-md); }
.mod-group-hint { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.mod-group-hint.is-required { color: var(--warn); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.option-btn {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 12px; text-align: left;
  background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius); color: var(--text);
}
.option-btn.is-selected { background: var(--sel-bg); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); color: var(--sel-fg); }
.option-btn.is-full { opacity: 0.45; }
.option-check { flex: none; width: 1.6em; height: 1.6em; border: 1.5px solid var(--muted); border-radius: var(--radius-xs); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: inherit; }
.option-btn.is-selected .option-check { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.option-btn.is-selected .option-delta { color: var(--ink2); }
.option-name { flex: 1; font-weight: 600; }
.option-delta { color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--radius); background: var(--surface-2); border: var(--line) solid var(--control-line); color: var(--text); font-size: var(--text-sm); font-weight: 600; transition: background-color var(--ease), border-color var(--ease); }
.chip .icon { width: 16px; height: 16px; }
.chip.is-selected { background: var(--sel-bg); border-color: var(--sel-bg); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--sel-fg); font-weight: 700; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.qty-label { font-weight: 600; color: var(--muted); }

.result { padding: 14px; border-radius: var(--radius); border: 0; box-shadow: inset 3px 0 0 currentColor; display: flex; flex-direction: column; gap: 8px; }
.result > *:not(.result-head) { color: var(--text); }
.result-ok { color: var(--ok); background: var(--ok-bg); }
.result-warn { color: var(--warn); background: var(--warn-bg); }
.result-err { color: var(--err); background: var(--err-bg); }
.result-info { color: var(--info); background: var(--info-bg); }
.result-head { display: flex; align-items: center; gap: 10px; }
.result-icon { width: 2em; height: 2em; border-radius: 50%; border: 2.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--text-md); }
.result-title { font-size: var(--text-lg); }
.result-ticket strong { font-size: var(--text-xl); }
.result .result-note { color: var(--ink2); font-size: var(--text-sm); }
.result .result-note-err { color: var(--err); font-weight: 600; }
.result .result-note-warn { color: var(--warn); font-weight: 600; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.print-list { display: flex; flex-direction: column; gap: 8px; }
.print-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.print-dest { font-weight: 600; }
.entry-lines { display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.entry-lines li::before { content: "\2022\00a0"; color: var(--muted); }

/* ---------- várakozó rendelések ---------- */

.outbox-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.outbox-count { font-size: var(--text-lg); font-weight: 600; color: var(--ink2); }
.outbox-count.has-unsent { color: var(--warn); }
.outbox-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.entry-card { padding: 14px; background: var(--surface); border: 0; border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.entry-pending { box-shadow: inset 3px 0 0 var(--warn); }
.entry-sending { box-shadow: inset 3px 0 0 var(--info); }
.entry-sent { box-shadow: inset 3px 0 0 var(--ok); }
.entry-failed { box-shadow: inset 3px 0 0 var(--err); }
.entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.entry-title { font-weight: 600; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: var(--text-sm); }
.entry-note { color: var(--muted); font-size: var(--text-sm); }
.entry-error { color: var(--err); font-weight: 600; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- pultnézet (alap; a részletek az ops.css-ben) ---------- */

.counter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--surface-2); border: var(--line) solid var(--control-line); color: var(--ink2); font-weight: 600; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.tab .icon { width: 18px; height: 18px; }
.tab.is-active { background: var(--primary); border-color: var(--primary); box-shadow: none; color: var(--on-primary); font-weight: 700; }
.toggle.is-on { border-color: var(--primary); color: var(--sel-fg); background: var(--sel-bg); }
.ticket-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.ticket { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 0; border-radius: var(--radius); }
.ticket.has-print-problem { box-shadow: inset 3px 0 0 var(--err); }
.ticket-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ticket-no { font-size: var(--text-xl); font-weight: 600; }
.ticket-table { font-size: var(--text-lg); font-weight: 600; color: var(--text); }
.ticket-waiter { color: var(--muted); }
.ticket-time { margin-left: auto; color: var(--muted); font-size: var(--text-sm); }
.print-alert { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 0; box-shadow: inset 3px 0 0 currentColor; font-weight: 600; }
.print-alert > span:last-child { color: var(--text); }
.print-alert-err { color: var(--err); background: var(--err-bg); }
.print-alert-warn { color: var(--warn); background: var(--warn-bg); }
.print-alert-icon { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.ticket-items { display: flex; flex-direction: column; gap: 10px; }
.ticket-item { padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.ticket-item:first-child { padding-top: 0; border-top: 0; }
.ticket-item-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-md); font-weight: 600; }
.ticket-item-qty { color: var(--text); }
.ticket-item-name { flex: 1 1 auto; }
.ticket-item-mods { color: var(--muted); }
.ticket-item-note { color: var(--warn); font-weight: 600; }
.ticket-item-actions, .ticket-bulk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- nyomtatási hibák (alap) ---------- */

.print-job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { padding: 14px; background: var(--surface); border: 0; border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.job-failed { box-shadow: inset 3px 0 0 var(--err); }
.job-uncertain { box-shadow: inset 3px 0 0 var(--warn); }
.job-pending { box-shadow: inset 3px 0 0 var(--info); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.job-title { font-size: var(--text-md); font-weight: 600; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: var(--text-sm); }
.job-explain-uncertain { color: var(--warn); font-weight: 600; }
.job-explain-failed { color: var(--err); font-weight: 600; }
.job-error { color: var(--muted); font-size: var(--text-sm); word-break: break-word; }
.job-actions { display: flex; gap: 8px; }

/* ---------- eszközök, „Több” lap ---------- */

.pair-code-box:not(:empty) { margin-top: 14px; text-align: center; }
.pair-code { display: inline-block; padding: 12px 22px; font-family: var(--font-num); font-size: var(--text-2xl); font-weight: 600; letter-spacing: 0.12em; background: var(--bg); border: 0; border-radius: var(--radius); user-select: all; }
.pair-code-info { margin-top: 8px; color: var(--warn); font-weight: 600; }
.device-list { display: flex; flex-direction: column; gap: 0; }
.device-card { padding: 12px; background: var(--surface-2); border: 0; border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.device-card.is-revoked { opacity: 0.7; }
.device-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.device-name { font-weight: 600; }
.device-meta { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: var(--text-sm); }
.device-actions { display: flex; gap: 8px; }

/* „Több” lap (v8): a fiók felül, alatta a szerepkör ritka pontjai listában, alul a Kijelentkezés */
.menu-who { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-1); }
.menu-who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.menu-who-name { font-family: var(--font); font-size: var(--text-lg); font-weight: 700; }
.menu-who-role { color: var(--muted); font-size: var(--text-sm); }
.menu-device { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: var(--space-1) 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.menu-group { margin-top: var(--space-2); }
.menu-group-title { padding: var(--space-1) 0 var(--space-2); }
.menu-list { display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--control-line); overflow: hidden; }
.menu-item {
  position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: 6px var(--space-4);
  background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); text-align: left; font-size: var(--text-md); font-weight: 600;
  transition: background-color var(--ease);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:active, .menu-item:hover:not(:disabled) { background: var(--surface-3); }
.menu-item .icon { width: 22px; height: 22px; color: var(--ink2); }
.menu-item .menu-item-go { width: 18px; height: 18px; color: var(--muted); }
.menu-item-label { flex: 1; min-width: 0; }
.menu-item-go { width: 18px; height: 18px; }
.menu-item[aria-current="page"] { color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.menu-item[aria-current="page"] .icon { color: var(--primary); }
.menu-item.is-danger, .menu-item.is-danger .icon { color: var(--ink2); }
.menu-group-logout { margin-top: var(--space-3); }
/* a menüpont mellett álló darabszám (pl. függő törlés): sima borostyán szöveg, nem chip */
.menu-item-badge { padding: 0; border-radius: 0; background: none; color: var(--amb); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* v8 „Több” lap: egyszerű lista (sor + ikon + név, alatta halvány alcím, jobbra „›”), mint a felugró lapok listái; a szakaszok
   (tulajdonosnál „Szolgálat”) között címke; a Kijelentkezés külön csoportban a végén */
.menu-item-label { display: flex; flex-direction: column; gap: 1px; }
.menu-item-name { overflow-wrap: anywhere; }
.menu-item-sub { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.menu-group + .menu-group { margin-top: var(--space-3); }

/* v8 Beállítások (#/settings, view_settings.js): szakaszok címkével; „Ez az eszköz”: Kinézet, Asztalok nézete, majd egy kártyán az eszköz neve
   + kapcsolat, az étlap-verzió és a Frissítés; az Üzlet / Csapat sorai ugyanolyan listasorok, mint a „Több” lapon (link, aláhúzás nélkül) */
.settings-view { gap: var(--space-5); }
.settings-section { display: flex; flex-direction: column; gap: var(--space-3); }
.settings-section .section-title { margin: 0; }
.settings-section .theme-row { padding: 0; }
.settings-info {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--control-line);
}
.settings-device { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.settings-device-name { min-width: 0; overflow-wrap: anywhere; }
.settings-meta { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.settings-actions { display: flex; padding-top: var(--space-1); }
.settings-actions .btn { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
a.menu-item { color: var(--text); text-decoration: none; }
.menu-group:not(.menu-group-other) .menu-item:active { background: var(--surface-3); }
.menu-group:not(.menu-group-other) .menu-item .menu-item-go { display: none; }
.menu-group:not(.menu-group-other) .menu-item[aria-current="page"] { background: var(--sel-bg); border-color: var(--primary); color: var(--sel-fg); box-shadow: inset 0 0 0 1px var(--primary); }
.menu-group:not(.menu-group-other) .menu-item-badge { position: absolute; top: 6px; right: 6px; }
.menu-group:not(.menu-group-other) .menu-item-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu-group-other .group-toggle { color: var(--ink2); font-size: 13px; font-weight: 600; padding: 0; }
.menu-group.menu-group-logout .menu-list { grid-template-columns: minmax(0, 1fr); }
/* menüpont alcíme (pl. Beállítások: „Kinézet, asztaltérkép, …”): a név alatt halványan, kártyán legfeljebb 2 sor */
.menu-item-label { display: flex; flex-direction: column; gap: 1px; }
.menu-item-sub { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.menu-group:not(.menu-group-other) .menu-item-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: normal; }

/* ---------- változatok, helyben/elvitel, elfogyott lista ---------- */

.variant-list { display: flex; flex-direction: column; gap: var(--space-2); }
.variant-btn {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; text-align: left;
  background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius); color: var(--text);
}
.variant-btn:active { background: var(--surface-3); }
.variant-btn.is-default { box-shadow: inset 3px 0 0 var(--primary); }
.variant-name { flex: 1; font-weight: 600; font-size: var(--text-md); }
.variant-tag { color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
.variant-price { white-space: nowrap; font-family: var(--font-num); font-weight: 600; color: var(--num); }

.seg { display: flex; gap: 8px; }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; min-height: 44px; padding: 0 12px; font-size: var(--text-sm); font-weight: 600;
  background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius); color: var(--ink2);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.seg-btn .icon { width: 18px; height: 18px; }
.seg-btn:hover:not(.is-active) { background: var(--surface-3); }
.seg-btn.is-active { background: var(--sel-bg); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); color: var(--sel-fg); font-weight: 700; }
.staff-row { margin-top: var(--space-2); font-weight: 600; }

.stock-filter { display: flex; }
.stock-summary { color: var(--muted); font-weight: 600; }
.stock-rows { display: flex; flex-direction: column; gap: 0; }
.stock-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
}
.stock-row.is-out .stock-name { color: var(--muted); text-decoration: line-through; }
.stock-name { flex: 1; min-width: 8em; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- számla, fizetés, törlések, napi zárás, riport (alap; a képernyők saját szabályai a bill.css / ops.css-ben) ---------- */

.field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.field .field-label { margin: 0; }
.field-error { color: var(--err); font-weight: 600; font-size: var(--text-sm); }
.field-error:empty { display: none; }
.input-amount { font-family: var(--font-num); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0.01em; color: var(--num); }
.input-date { min-width: 11em; width: auto; flex: 1 1 11em; }
/* címkés mezőben (oszlop) a rugalmas alap MAGASSÁGKÉNT érvényesülne: ott a dátum / idő mező is egy sor magas, teljes szélességű */
.field > .input-date, .field .input-date { flex: none; width: 100%; min-width: 0; }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap .seg-btn { flex: 1 1 7em; }
.sheet-form .seg { margin-top: 2px; }
.sheet-form .dialog-message { margin-bottom: 8px; }

.bill-view .bill-main { display: flex; flex-direction: column; gap: 14px; }
.bill-head { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 0; border-radius: var(--radius); }
.bill-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bill-title { font-size: var(--text-lg); }
.bill-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: var(--text-sm); }
.bill-section { display: flex; flex-direction: column; gap: 8px; }
.bill-items, .bill-payments, .bill-adjustments { display: flex; flex-direction: column; gap: 8px; }
.bill-item, .bill-payment, .bill-adjustment { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--surface); border: 0; border-radius: var(--radius); }
.bill-item.is-void, .bill-payment.is-void, .bill-adjustment.is-void { opacity: 0.6; }
.bill-item.is-void .bill-item-name, .bill-item.is-void .bill-item-price,
.bill-payment.is-void .bill-pay-amount, .bill-adjustment.is-void .bill-adj-amount { text-decoration: line-through; }
.bill-item-main, .bill-pay-main, .bill-adj-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.bill-item-qty { color: var(--text); }
.bill-item-name, .bill-pay-method, .bill-adj-label { flex: 1 1 auto; }
.bill-item-price, .bill-pay-amount, .bill-adj-amount { white-space: nowrap; }
.bill-item-select { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
.bill-item-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill-item-unit, .bill-pay-meta, .bill-adj-meta { color: var(--muted); font-size: var(--text-sm); }
.bill-item-mods, .bill-adj-reason, .bill-pay-reason { color: var(--muted); }
.bill-item-note, .bill-pay-note { color: var(--warn); font-weight: 600; }
.bill-item-actions, .bill-pay-actions { margin-top: 4px; }
.bill-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.bill-actions .btn { width: 100%; }
.bill-select-note { font-weight: 600; color: var(--warn); }
.bill-void-note { flex-direction: row; align-items: center; flex-wrap: wrap; }

.sum-rows { display: flex; flex-direction: column; gap: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 0; color: var(--ink2); }
.sum-label { color: var(--ink2); }
.sum-value { font-family: var(--font-num); font-weight: 600; white-space: nowrap; color: var(--text); }
.sum-strong .sum-value { font-size: var(--text-md); }
.sum-remaining { border-bottom: 0; }
.sum-remaining .sum-label { font-weight: 700; color: var(--text); }
.sum-remaining .sum-value { font-size: var(--text-xl); color: var(--num); }
.vat-table, .report-table, .print-items { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: var(--text-sm); }
.vat-table th, .vat-table td, .report-table th, .report-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.vat-table .num, .report-table .num, .print-items .num { text-align: right; white-space: nowrap; font-family: var(--font-num); font-weight: 600; }
.vat-table th, .report-table th { color: var(--muted); font-weight: 600; font-family: var(--font); }
.report-scroll { overflow-x: auto; }
.report-table td, .report-table th { padding: 10px 8px; }
.report-total th { color: var(--text); border-top: 1px solid var(--border-strong); font-size: var(--text-md); }

.pay-line { font-weight: 600; font-size: var(--text-md); }
.pay-countdown { color: var(--muted); }
.sheet-pay .chip-row { margin: 8px 0 0; }

.pick-group { margin-top: 8px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 12px; text-align: left; background: var(--surface-2); border: var(--line) solid var(--control-line); border-radius: var(--radius); color: var(--text); }
.pick-tile.is-selected { background: var(--sel-bg); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); color: var(--sel-fg); }
.pick-tile.is-selected .pick-sub { color: var(--ink2); }
.pick-label { font-size: var(--text-lg); font-weight: 600; }
.pick-sub { color: var(--muted); font-size: var(--text-xs); }

.tab-list, .void-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.tab-card { display: flex; flex-direction: column; gap: 6px; min-height: 84px; padding: 12px 14px; text-align: left; background: var(--surface); border: 0; border-radius: var(--radius); }
.tab-card:active { background: var(--surface-2); }
.tab-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-card-table { font-size: var(--text-xl); font-weight: 600; }
.tab-card-items { color: var(--muted); }
.tab-card-meta { color: var(--muted); font-size: var(--text-sm); }
.tab-card-sums { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.tab-card-remaining { color: var(--warn); }
.flag-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.void-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 0; box-shadow: inset 3px 0 0 var(--warn); border-radius: var(--radius); }
.void-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: var(--text-md); }
.void-table { color: var(--text); }
.void-reason { font-weight: 600; }
.void-meta { color: var(--muted); font-size: var(--text-sm); }
.void-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.day-controls { display: flex; flex-direction: column; gap: 6px; }
.day-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-body { display: flex; flex-direction: column; gap: 16px; }
.day-section { display: flex; flex-direction: column; gap: 10px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface); border: 0; border-radius: var(--radius); }
.stat-label { color: var(--muted); font-size: var(--text-xs); }
.stat-value { font-size: var(--text-md); }
.stat-strong { background: var(--surface); }
.day-diff { margin: 4px 0; }
.report-controls { display: flex; flex-direction: column; gap: 4px; }

/* ---------- készlet (alapanyagok, bevételezés, korrekció, leltár) ---------- */

.inv-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.inv-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 0; border-radius: var(--radius); }
.inv-row.is-low { box-shadow: inset 3px 0 0 var(--warn); }
.inv-row.is-negative { box-shadow: inset 3px 0 0 var(--err); }
.inv-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.inv-name { font-weight: 600; font-size: var(--text-md); }
.inv-flags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.inv-levels { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.inv-level { font-weight: 600; }
.inv-min { color: var(--muted); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.inv-actions .btn { flex: 1 1 130px; }
.inv-preview { min-height: 1.4em; margin-top: 8px; color: var(--ok); font-weight: 600; }
.inv-preview.field-error { color: var(--err); }

.inv-count-form { display: flex; flex-direction: column; gap: 12px; }
.inv-count-rows { display: flex; flex-direction: column; gap: 8px; }
.inv-count-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface); border: 0; border-radius: var(--radius); }
.inv-count-info { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.inv-count-expected { color: var(--muted); font-size: var(--text-sm); }
.inv-count-entry { display: flex; align-items: center; gap: 8px; }
.inv-count-entry .input { flex: 1 1 auto; }
.inv-unit { min-width: 2.5em; color: var(--muted); font-weight: 600; }
.inv-offline-note:empty { display: none; }
.inv-count-result { display: flex; flex-direction: column; gap: 14px; }

/* Készlet: „Szintek” / „Rendelési javaslat” kapcsoló és a javaslat-sorok (csak olvasás) */
.inv-mode .seg-btn { flex: 1 1 10em; }
.inv-body, .fc-panel { display: flex; flex-direction: column; gap: 14px; }
.fc-row.is-now { box-shadow: inset 3px 0 0 var(--err); }
.fc-row.is-soon { box-shadow: inset 3px 0 0 var(--warn); }
.fc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.fc-fact { display: flex; flex-direction: column; }
.fc-fact-label { color: var(--muted); font-size: var(--text-xs); }
.fc-fact-value { font-weight: 600; }
.fc-order { padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); }
.fc-order.is-needed { box-shadow: inset 3px 0 0 var(--primary); }
.fc-order-value { font-size: var(--text-md); }
.fc-mode, .fc-note { margin-top: 0; }

/* ---------- reggeli összefoglaló ---------- */

.brief-body { display: flex; flex-direction: column; gap: 16px; }
.brief-card { max-width: none; display: flex; flex-direction: column; gap: 10px; }
.brief-headline { font-size: var(--text-lg); line-height: 1.3; }
.brief-narrative { display: flex; flex-direction: column; gap: 6px; }
.brief-alert-list { display: flex; flex-direction: column; gap: 8px; }
.brief-alert, .brief-stale { margin: 0; }
.brief-alert-level { margin-right: 2px; }
.brief-compare-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.brief-compare-none { color: var(--muted); font-weight: 600; }
.brief-top-list { display: flex; flex-direction: column; gap: 8px; }
.brief-top-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface); border: 0; border-radius: var(--radius); }
.brief-top-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brief-top-sum { color: var(--muted); }
.brief-top-share { display: flex; align-items: center; gap: 10px; }
.brief-bar { flex: 1 1 auto; height: 8px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.brief-bar-fill { height: 100%; min-width: 2px; border-radius: 2px; background: var(--ink2); }
.brief-top-pct { flex: none; min-width: 4.5em; text-align: right; font-weight: 600; }

/* nagy számok: a szám-betű (Bahnschrift 600, tabuláris), a fő számok színe a --num */
.tab-card-table, .stat-value, .ticket-no, .pick-label {
  font-family: var(--font-num); font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums lining-nums;
}
.stat-value { color: var(--num); }
.result-title, .brief-headline { font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; }
.pin-dots, .table-amount { letter-spacing: 0.01em; }

/* szakasz-címkék: 13 px / 600, másodlagos szövegszín, mondatkezdő (nincs nagybetűs, ritkított „szemöldök”-címke). Minden képernyő innen kapja. */
.section-title, .nav-group-title, .menu-group-title, .pay-block-title, .bill-block-title, .qty-label, .guest-label, .stat:not(.stat-row) .stat-label, .label-caps {
  font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ink2);
}

/* ---------- nyomtatás: belső összesítő ---------- */

.print-area { display: none; }

@media print {
  html, body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .topwrap, .topbar, .offline-bar, .cloud-notice-bar, .sidenav, .tabbar, #toasts, #modal-root, noscript { display: none !important; }
  .shell { display: block !important; }
  .bill-view > :not(.print-area) { display: none !important; }
  .view { max-width: none; padding: 0; margin: 0; }
  .print-area { display: block !important; }
  .print-sheet { color: #000; background: #fff; font-family: var(--font); }
  .print-title { font-size: 18pt; margin: 0 0 6pt; }
  .print-sub { font-size: 13pt; margin: 10pt 0 4pt; }
  .print-notice { border: 2pt dashed #000; padding: 6pt; font-weight: 600; text-align: center; margin: 6pt 0; }
  .print-head { margin: 8pt 0; }
  .print-head-row { display: flex; gap: 8pt; }
  .print-head-row dt { min-width: 80pt; font-weight: 600; }
  .print-head-row dd { margin: 0; }
  .print-items th, .print-items td, .vat-table th, .vat-table td { color: #000; border-bottom: 0.5pt solid #000; padding: 3pt 4pt; }
  .print-small { font-size: 10pt; margin: 2pt 0; }
  .print-extra { font-size: 10pt; }
  .print-sheet .sum-row { border-bottom: 0.5pt dashed #000; }
  .print-sheet .sum-label, .print-sheet .sum-value, .print-sheet .sum-remaining .sum-label, .print-sheet .sum-remaining .sum-value { color: #000; }
  .print-sheet .hint { color: #000; }
}

/* ---------- V22 réteg: üveg-kártyák, kapcsoló, tulajdonosi áttekintő ---------- */

/* üveg-kártya: a panel-réteg (--surface) üveg-peremmel, lágy árnyékkal, 20 px-es sarkokkal. A tartalom-panelek (listák, összesítők) ezt kapják. */
.list, .outbox-list, .tab-card, .void-card, .screen-center > .card,
.bill-groups, .bill-summary, .bill-rows, .tab-rows, .void-rows, .journal-rows, .day-close, .report-scroll, .tl-rows,
.cash-expected, .cash-counted, .cash-list, .coupon-list, .res-list, .split-totals, .split-items {
  border: 1px solid var(--glass-bd); border-radius: var(--radius-lg); box-shadow: var(--glass-sh);
}
/* az állapot-sávos kártyák (bal 3 px sáv: függő, hibás …) peremet és sarkot kapnak, a saját belső sávjuk marad */
.entry-card, .ticket, .job-card { border: 1px solid var(--glass-bd); border-radius: var(--radius-lg); }
/* a lap (sheet) felső sarkai és a fogó */
.sheet { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 1px solid var(--glass-bd); }
/* a belépő kártyák (dolgozó-csempe) és a PIN-billentyűk: fehér (sötétben kártya-réteg) üveg-csempe */
.staff-tile { border-radius: 16px; border-color: var(--glass-bd); box-shadow: var(--shadow-card); }
.btn-key { border-radius: 16px; box-shadow: var(--shadow-card); }
/* fő gomb (A): 18 px-es sarkok, 56–60 px magas */
.btn-primary { border-radius: var(--radius-btn); }

/* Világos / Sötét kapcsoló (theme.js toggle): felirat + a mostani mód + csúszka. A csúszka helye és az aria-checked mondja az állapotot. */
.theme-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
}
.theme-switch-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.theme-switch-track {
  position: relative; flex: none; width: 46px; height: 26px; border-radius: var(--radius-pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.theme-switch-knob {
  position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
  transition: transform var(--ease);
}
.theme-switch[aria-checked="true"] .theme-switch-knob { transform: translateX(20px); }
.theme-switch:hover .theme-switch-track { box-shadow: inset 0 0 0 1px var(--primary); }
/* a „Több” lap dolgozó-sorában jobbra */
.menu-theme-switch { margin-left: auto; }
/* a sötét bal sávban: csak a csúszka (a felirat a képernyőolvasónak), középre */
.sidenav-theme-switch { flex-direction: column-reverse; justify-content: center; align-self: center; gap: 4px; margin: 8px 0 0; padding: 4px 0; color: var(--rail-ic); font-size: var(--text-2xs); font-weight: 600; }
.sidenav-theme-switch .theme-switch-track { background: var(--surface-2); box-shadow: none; }
.sidenav-theme-switch .theme-switch-knob { background: var(--logo); }

/* ---------- tulajdonosi áttekintő (view_brief.js, V22 rács: v22_racs.md) ----------
   EGY közös 12 oszlopos rács, oszlopköz = sorköz = 12 px; minden kártya 4 oszlop széles (4 | 4 | 4), a „Mai forgalom” 2 sor magas.
   Kártya belső térköze 16 px; egy soron belül minden kártya alja egy vonalban (grid stretch). Telefonon egy oszlop, a szám-kártyák 2 × 2. */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.dash > * { grid-column: span 12; min-width: 0; }
.dash > .dash-kpi { grid-column: span 6; }
@media (min-width: 700px) {
  .dash > .dash-hero { grid-column: span 12; }
  .dash > .dash-kpi { grid-column: span 3; }
  .dash > .dash-hours, .dash > .dash-tables { grid-column: span 6; }
  .dash > .dash-guests, .dash > .dash-todo { grid-column: span 12; }
}
@media (min-width: 1100px) {
  .dash > .dash-hero { grid-column: span 4; grid-row: span 2; }
  .dash > .dash-kpi { grid-column: span 4; }
  .dash > .dash-hours, .dash > .dash-tables, .dash > .dash-guests, .dash > .dash-todo { grid-column: span 4; }
  /* a vendégszám-kártyával a 3. sor betelt: a Teendők alatta teljes szélességben */
  .dash > .dash-guests ~ .dash-todo { grid-column: span 12; }
}
.dash-card {
  display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--glass-bd); box-shadow: var(--glass-sh);
}
/* köszöntő sor: a rács teljes szélességében */
.dash > .dash-head { grid-column: 1 / -1; padding: 0 4px; }
.dash-hello { margin: 0; color: var(--text); font-family: var(--font-num); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.dash-date { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.dash-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.dash-title { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.dash-unit { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.dash-big { margin-top: 6px; color: var(--num); font-family: var(--font-num); font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.dash-big small { margin-left: 4px; color: var(--muted); font-family: var(--font); font-size: 17px; font-weight: 400; letter-spacing: 0; }
.dash-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.dash-sub b { color: var(--acc-d); font-weight: 700; }
/* kis ikon-négyzet a szám-kártyák jobb felső sarkában (pasztell tónus, sötét ikon) */
.dash-dot { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--text); background: var(--mint); }
.dash-dot .icon { width: 16px; height: 16px; }
.dash-dot.is-peach { background: var(--peach); }
.dash-dot.is-sky { background: var(--sky); }
.dash-dot.is-lime { background: var(--lime); }
.dash-dot.is-amber { background: var(--amber); }

/* „Mai forgalom”: a kiemelt kártya (sötét fenyőzöld színátmenet, rajta fehér szöveg), alul a fizetési módok 3 dobozban */
.dash-hero { position: relative; overflow: hidden; background: var(--hero); border: 0; box-shadow: var(--hero-sh); color: var(--on-hero); }
.dash-hero .dash-lbl { flex-wrap: wrap; justify-content: flex-start; color: var(--on-hero-2); font-size: 13px; }
.dash-hero .dash-big { margin-top: 10px; color: var(--on-hero); font-size: var(--text-4xl); font-weight: 800; }
.dash-hero .dash-big small { color: var(--on-hero-2); font-size: 20px; }
.dash-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--hero-chip); color: var(--on-hero); font-size: 12px; font-weight: 600; }
.dash-hero-note { margin-top: 8px; color: var(--on-hero-2); font-size: 12.5px; }
/* a folyószövegben (kis betűméretnél) a „Ft” nem zsugorodik olvashatatlanra; a kiemelt kártyán a sötét háttérhez igazodik */
.dash-hero-note .ft, .dash-sub .ft, .dash-tile .ft { font-size: 0.9em; margin-left: 0.2em; color: inherit; opacity: 0.85; }
.dash-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 16px; }
.dash-split > div { min-width: 0; padding: 9px 10px; border-radius: 12px; background: var(--hero-chip); }
.dash-split span { display: block; color: var(--on-hero-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-split b { display: block; margin-top: 2px; color: var(--on-hero); font-family: var(--font-num); font-size: 17px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ring { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); pointer-events: none; }
.dash-ring.is-b { right: -20px; top: -20px; width: 120px; height: 120px; }

/* óránkénti forgalom: oszlopok (a csúcsóra kiemelt, felette a címke), alattuk az órák */
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 26px; padding-bottom: 2px; border-bottom: 1px dashed var(--border-strong); }
.dash-bar { position: relative; flex: 1 1 0; min-width: 0; min-height: 3px; border-radius: 7px 7px 3px 3px; background: var(--bar); }
.dash-bar.is-peak { background: var(--bar-h); }
.dash-bar-tag { font-style: normal; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 6px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 600; white-space: nowrap; }
.dash-hrs { display: flex; gap: 6px; margin-top: 6px; }
.dash-hrs span { flex: 1 1 0; min-width: 0; color: var(--muted); font-size: 11px; text-align: center; }
.dash-empty { margin: 16px 0 4px; color: var(--muted); font-size: var(--text-sm); }
/* top tételek: helyezés-négyzet, név + arány-sáv, darabszám */
.dash-top { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.dash-top-row { display: flex; align-items: center; gap: 10px; }
.dash-rank { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--lime); color: var(--text); font-size: 12px; font-weight: 700; }
.dash-top-row:nth-child(2) .dash-rank { background: var(--peach); }
.dash-top-row:nth-child(3) .dash-rank { background: var(--sky); }
.dash-top-main { flex: 1 1 auto; min-width: 0; }
.dash-top-name { display: block; overflow: hidden; color: var(--text); font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dash-meter { height: 4px; margin-top: 4px; border-radius: 4px; background: var(--mint2); overflow: hidden; }
.dash-meter i { display: block; height: 100%; border-radius: 4px; background: var(--acc-d); }
.dash-top-qty { flex: none; color: var(--num); font-size: 13.5px; font-weight: 700; }

/* asztalok most: 3 oszlopos csempe-rács (nyitott = menta, foglalással várt = égkék, szabad = kártya-réteg vonallal) + jelmagyarázat */
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dash-tile {
  display: flex; flex-direction: column; min-width: 0; min-height: 70px; padding: 10px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); text-align: left; text-decoration: none;
}
.dash-tile b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.dash-tile span { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.dash-tile.is-open { background: var(--mint); border-color: transparent; }
.dash-tile.is-open span { color: var(--mint-tx); }
.dash-tile.is-res { background: var(--sky); border-color: transparent; }
.dash-tile.is-res span { color: var(--sky-tx); }
.dash-tile:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.dash-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--muted); font-size: 11.5px; }
.dash-leg i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.dash-leg i.is-open { background: var(--mint); box-shadow: none; }
.dash-leg i.is-res { background: var(--sky); box-shadow: none; }
.dash-more { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* vendégszám: ma (nagy szám), e hét / e hónap két dobozban, alatta óránként alacsonyabb oszlopok */
.dash-gsplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dash-gsplit > div { min-width: 0; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); }
.dash-gsplit span { display: block; color: var(--muted); font-size: 11.5px; }
.dash-gsplit b { display: block; margin-top: 2px; color: var(--num); font-family: var(--font-num); font-size: 17px; font-weight: 500; white-space: nowrap; }
.dash-gsplit em { display: block; color: var(--muted); font-size: 11.5px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-gbars, .day-guest-bars { height: 90px; }
.dash-gtag, .day-guest-tag { top: -20px; background: transparent; color: var(--muted); padding: 0; }
.day-guest-hours { margin-top: var(--space-2); }

/* teendők kártya: a beágyazott Teendők nézet a kártyán belül (cím nélkül: a kártya címe mondja) */
.dash-todo .brief-todo-body { margin-top: 10px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.dash-todo .brief-todo-body .page { gap: var(--space-3); }

/* az áttekintő alatt a választott nap összefoglalója (dátum-sor, címsor, figyelmeztetések, Részletek) */
.brief-view > .dash { margin-bottom: var(--space-2); }
.brief-day-title { margin: var(--space-2) 0 0; color: var(--ink2); font-size: 13px; font-weight: 600; }

/* ---- Beállítások: üzlet / logó / blokk-előnézet, modulok, mentés (2026-11-14; venue_admin.js) – csak tokenek ---- */
.receipt-preview { display: flex; justify-content: center; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); max-height: 420px; overflow: auto; }
.receipt-preview-img { display: block; width: 100%; max-width: 288px; height: auto; background: #FFFFFF; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.receipt-preview-block { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.shop-logo-block, .shop-preview-block { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.shop-logo { display: flex; align-items: center; min-height: 64px; }
.shop-logo-img { display: block; max-width: 220px; max-height: 96px; padding: var(--space-2); background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); }
.shop-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.module-list { display: flex; flex-direction: column; }
.module-row { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.module-row:last-child { border-bottom: 0; }
.module-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.module-title { color: var(--text); font-weight: 600; }
.module-note { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.module-row.is-locked .module-title { color: var(--muted); }
.hint.is-warn { color: var(--warn); }
.switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 1px solid var(--control-line, var(--border-strong)); border-radius: 999px; background: var(--surface-3); cursor: pointer; }
.switch .switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.switch.is-on { background: var(--primary); border-color: var(--primary); }
.switch.is-on .switch-knob { transform: translateX(20px); background: var(--on-primary); }
.switch:disabled { opacity: 0.45; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.backup-info { display: flex; flex-direction: column; gap: var(--space-2); }
.backup-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.backup-actions .btn { flex: 1 1 200px; }
.report-export-field { align-self: end; }
.report-export-sheet .menu-item-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pay-result-receipt { gap: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .switch .switch-knob { transition: none; } }
