/* Pokladna – prémiový vzhled: grafitová lišta, světlé karty, jemné stíny, smaragdová akce.
   Písmo: Segoe UI Variable (Windows 11), ceny Bahnschrift. Jeden pevný světlý vzhled jako u terminálu. */
:root {
  color-scheme: light;
  --ink: #1b1a17; --ink-2: #26241f; --ink-3: #36332c; --ink-line: rgba(255, 255, 255, .08);
  --bg: #f1eee9; --panel: #ffffff; --panel-2: #f7f5f1; --line: #e8e3db; --line-2: #d9d2c7;
  --fg: #1d1b17; --muted: #736c62; --muted-2: #a39b8f;
  --accent: #0f9f6e; --accent-2: #0b8a5f; --accent-soft: #e3f6ee;
  --red: #e5484d; --red-soft: #fdecec; --amber: #f5a524; --amber-soft: #fff6e0; --blue: #2f6fed; --blue-soft: #e8f0ff;
  --gold: #c9a24a;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(60, 45, 25, .06), 0 1px 3px rgba(60, 45, 25, .08);
  --sh-2: 0 4px 14px rgba(60, 45, 25, .09), 0 2px 4px rgba(60, 45, 25, .05);
  --sh-3: 0 24px 64px rgba(10, 15, 25, .28), 0 8px 20px rgba(10, 15, 25, .12);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-num: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; transition: background-color .12s, transform .06s, box-shadow .12s, color .12s; }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .4; cursor: default; }
input, select { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-height: 44px; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover { border-color: #b9c1ca; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 159, 110, .18); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); flex: none; }
input[type="color"] { padding: 3px; height: 44px; }
input.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
button:focus-visible { outline: 3px solid rgba(47, 111, 237, .5); outline-offset: 2px; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fg); }
h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.err-text { color: var(--red); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap, .choice.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; min-height: 46px; border-radius: var(--r-sm); color: #fff; background: var(--ink-2); font-size: 15px; font-weight: 600; box-shadow: var(--sh-1); }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn.green { background: var(--accent); }
.btn.gray { background: var(--panel); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.gray:hover:not(:disabled) { background: var(--panel-2); filter: none; }
.btn.red { background: var(--red); }
.btn.orange { background: var(--amber); color: #2b1d00; }
.btn.teal { background: var(--blue); }
.btn.dark { background: var(--ink-2); }
.btn.full { width: 100%; }
.btn.big { min-height: 60px; font-size: 18px; border-radius: var(--r); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.choice { display: flex; gap: 8px; }
.choice .btn { flex: 1; }

/* ---- úvodní obrazovky (zřízení, spárování, PIN, otevření) ---- */
.center { height: 100%; overflow: auto; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 15% -10%, #1f2a36 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #0c3b2c 0%, transparent 55%), var(--ink); }
.card { background: var(--panel); width: min(440px, 100%); padding: 28px; display: grid; gap: 16px; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h1 { font: 650 22px/1.2 var(--font-d); margin: 0; letter-spacing: -.01em; }
.center-text { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; min-height: 28px; padding: 6px 0; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; background: var(--line); transition: background .12s, transform .12s; }
.pin-dots span.on { background: var(--ink); transform: scale(1.1); }
.train-note { background: var(--amber-soft); color: #7a4b06; padding: 10px 14px; margin: 0; font-size: 13px; border-radius: var(--r-sm); border: 1px solid #f6dfa5; }
.card .keypad { gap: 10px; grid-auto-rows: 66px; }
.card .keypad button { border-radius: 50%; width: 66px; height: 66px; justify-self: center; font-size: 26px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.card .keypad .kp-ok { grid-column: 1 / -1; border-radius: var(--r); width: 100%; height: 56px; background: var(--accent); }

/* přepínač jazyků (segmenty) */
.langs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ink-line); }
.langs button { padding: 5px 9px; font-size: 12px; font-weight: 700; color: #aab4bf; border-radius: 7px; letter-spacing: .04em; }
.langs button.on { background: #fff; color: var(--ink); }
.langs.light { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.langs.light button { color: var(--muted); }
.langs.light button.on { background: var(--ink); color: #fff; }

/* ---- prodejní obrazovka ---- */
.pos { height: 100%; display: grid; grid-template-rows: 60px 1fr; }
.bar { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 10px; min-width: 0; box-shadow: 0 1px 0 var(--ink-line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #16b47e, #0b7a55); box-shadow: 0 4px 12px rgba(15, 159, 110, .35); flex: none; }
.who { display: grid; line-height: 1.15; min-width: 0; }
.who b { font: 650 16px var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: #8f9aa6; font-size: 12px; white-space: nowrap; }
.train { display: inline-flex; align-items: center; gap: 7px; background: rgba(245, 165, 36, .14); color: #ffcf6b; font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .35); white-space: nowrap; }
.train i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.bar .sp { flex: 1; }
.user { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-line); }
.bar .time { font: 600 18px var(--font-num); color: #dfe5ea; min-width: 48px; text-align: right; }
.bar .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #dfe5ea; }
.bar .ico:hover { background: rgba(255, 255, 255, .08); }

.main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 30%); gap: 12px; padding: 12px; min-height: 0; }
.left { display: grid; grid-template-rows: 60px auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; min-width: 0; }
.disp { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 10px; }
.searchbox { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh-1); color: var(--muted); font-weight: 400; }
.searchbox:focus-within { box-shadow: 0 0 0 2px var(--accent), var(--sh-1); }
.search { height: 60px; border: 0; padding: 0; font-size: 18px; background: transparent; box-shadow: none !important; min-height: 0; }
.disp .num { background: var(--ink); color: #fff; border-radius: var(--r); display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 18px; font: 600 34px var(--font-num); overflow: hidden; white-space: nowrap; box-shadow: var(--sh-1); }
.disp .num small { font-size: 18px; color: #5fe0ad; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.cat { --c: #64748b; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--panel); box-shadow: var(--sh-1); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cat .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cat:hover { background: var(--panel-2); }
.cat[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cat.fav { --c: var(--amber); }

.tiles { background: transparent; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 108px; gap: 10px; overflow: auto; align-content: start; min-height: 0; padding: 2px; }
.tile { --c: #64748b; position: relative; overflow: hidden; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh-1); text-align: left; display: grid; grid-template-rows: 1fr auto; padding: 12px 12px 10px 16px; gap: 6px; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.tile:hover { box-shadow: var(--sh-2); }
.tile:active { background: var(--panel-2); }
.tile .nm { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.tile .plu { font: 700 12px var(--font-num); color: var(--muted); background: var(--panel-2); border-radius: 6px; padding: 2px 6px; }
.tile .pr { font: 700 20px var(--font-num); letter-spacing: -.01em; white-space: nowrap; }
.tile .pr small { font: 600 11px var(--font); color: var(--muted); }
.tiles .hint { grid-column: 1 / -1; color: var(--muted); padding: 40px; text-align: center; font-size: 16px; background: var(--panel); border-radius: var(--r); border: 1px dashed var(--line-2); }

.right { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; background: var(--panel); min-height: 0; border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.rhead { padding: 12px 12px 8px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.rtitle { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.rtitle b { font: 650 18px var(--font-d); }
.pol { font-size: 13px; color: var(--muted); font-weight: 600; }
.tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tool { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 10px; color: #3b4652; background: var(--panel-2); font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center; }
.tool:hover { background: #eceff3; }
.tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool.danger { color: var(--red); }
.tool .cnt { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #2b1d00; font: 700 11px/18px var(--font); font-style: normal; }
.tool .cnt:empty { display: none; }
.items { overflow: auto; min-height: 0; position: relative; }
.items .ph { color: var(--muted-2); font-size: 14px; padding: 40px 20px; text-align: center; }
.it { border-bottom: 1px solid var(--line); }
.it.sel { background: #f2fbf7; box-shadow: inset 3px 0 0 var(--accent); }
.it-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; text-align: left; padding: 10px 16px; font-size: 15px; }
.it-main .n { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.it-main .t { font: 700 16px var(--font-num); text-align: right; }
.it-main .q, .it-main .d { color: var(--muted); font-size: 13px; }
.it-main .d { color: var(--blue); text-align: right; }
.it.neg .t, .it.neg .n { color: var(--red); }
.it-tools { display: grid; grid-template-columns: 48px 1fr 48px 48px auto; gap: 6px; padding: 0 12px 10px 16px; }
.it-tools button { min-height: 42px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 20px; border-radius: 10px; }
.it-tools button:hover:not(:disabled) { background: var(--panel-2); }
.it-tools .del { color: var(--red); font-size: 13px; font-weight: 600; padding: 0 12px; }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.summary span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.summary b { font: 700 30px var(--font-num); letter-spacing: -.01em; }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 56px; gap: 6px; padding: 10px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.pad button { background: var(--panel-2); border-radius: 10px; font: 500 24px var(--font-num); color: var(--fg); }
.pad button:hover { background: #eceff3; }
.pad button.op, .pad .plu { color: var(--blue); background: var(--blue-soft); font-size: 20px; }
.pad .plu { font: 700 16px var(--font); }
.pay { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 0 12px 12px; }
.pay .disc { height: 72px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.pay .go { height: 72px; border-radius: var(--r); background: linear-gradient(180deg, #14b57d, var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 18px; font-weight: 700; box-shadow: 0 8px 20px rgba(15, 159, 110, .35); }
.pay .go:hover:not(:disabled) { filter: brightness(1.05); }
.pay .go:disabled { background: #cfd6dc; box-shadow: none; opacity: 1; }
.go-l { display: inline-flex; align-items: center; gap: 10px; }
.pay .go b { font: 700 26px var(--font-num); }

/* ---- dialogy ---- */
.back { position: fixed; inset: 0; background: rgba(10, 14, 20, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; animation: fade .12s ease-out; }
.dlg { background: var(--panel); width: min(540px, 100%); max-height: 94vh; display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; animation: pop .16s ease-out; }
.dlg.wide { width: min(820px, 100%); }
.dlg .dh { font: 650 18px var(--font-d); padding: 16px 18px 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.dlg .dh .x { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; color: var(--muted); display: grid; place-items: center; }
.dlg .dh .x:hover { background: var(--panel-2); color: var(--fg); }
.dlg .db { padding: 18px 22px 22px; display: grid; gap: 14px; overflow: auto; align-content: start; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.big-text { font-size: 18px; margin: 0; line-height: 1.4; }
.num-input { font: 600 32px var(--font-num); text-align: right; min-height: 64px; border-radius: var(--r); background: var(--panel-2); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 60px; gap: 8px; }
.keypad button { background: var(--panel-2); font: 500 24px var(--font-num); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.keypad button:hover { background: #eceff3; }
.keypad .kp-c { background: var(--red-soft); color: var(--red); box-shadow: none; }
.keypad .kp-ok { background: var(--accent); color: #fff; font: 700 18px var(--font); grid-column: span 2; box-shadow: none; }
.dueline { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 600; color: var(--muted); }
.dueline b { font: 700 42px var(--font-num); color: var(--fg); letter-spacing: -.01em; }
.change-big { background: var(--accent-soft); padding: 12px 16px; border-radius: var(--r); color: var(--accent-2); }
.change-big b { color: var(--accent-2); }
.change { font: 700 22px var(--font-num); color: var(--accent-2); min-height: 28px; }
.payways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw { height: 104px; font-size: 22px; color: #fff; font-weight: 700; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: var(--r); box-shadow: var(--sh-2); }
.pw small { font-size: 13px; font-weight: 500; opacity: .85; }
.pw.cash { background: linear-gradient(160deg, #18c085, var(--accent-2)); }
.pw.card { background: linear-gradient(160deg, #4a86ff, #2557d6); }
.payways.three { grid-template-columns: 1fr 1fr 1fr; }
.pw.qr { background: linear-gradient(160deg, #3d4650, #1d2329); }
.pw .ic { margin-bottom: 2px; }

/* QR platba (pokladna) */
.qr-svg { display: block; width: 100%; height: auto; }
.qr-pay { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 22px; align-items: center; }
.qr-box { background: #fff; padding: 12px; border-radius: var(--r); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.qr-info { display: grid; gap: 8px; }
.qr-label { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.qr-amount { font: 700 40px var(--font-num); letter-spacing: -.02em; }
.qr-info .rr { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.qr-info .rr b { font-family: var(--font-num); word-break: break-all; text-align: right; }
@media (max-width: 640px) {
  .qr-pay { grid-template-columns: minmax(0, 1fr); }
  .payways.three { grid-template-columns: 1fr 1fr; }
}
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.notes .btn { flex: 1; min-width: 88px; font-family: var(--font-num); font-size: 16px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 12px; font-size: 16px; font-weight: 500; border-radius: 10px; }
.menu-item:hover { background: var(--panel-2); }
.list { display: grid; }
.list-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; border-radius: 8px; }
.list-row:hover { background: var(--panel-2); }
.list-row b { font: 700 16px var(--font-num); }
.list-row.k-void b, .list-row.k-refund b { color: var(--red); }
.refund-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 8px; align-items: center; }
.receipt-preview { background: var(--panel-2); padding: 18px; max-height: 50vh; overflow: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.receipt-preview .receipt-doc { background: #fff; padding: 14px 12px; box-shadow: var(--sh-1); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: var(--ink); color: #fff; padding: 13px 20px; font-size: 15px; font-weight: 500; z-index: 40; max-width: 90vw; border-radius: var(--r); box-shadow: var(--sh-3); animation: pop .16s ease-out; }
.toast.err { background: var(--red); }

/* doklad a uzávěrka */
.receipt-doc, .report { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.35; color: #000; }
.receipt-doc { max-width: 320px; margin: 0 auto; }
.receipt-doc hr { border: 0; border-top: 1px dashed #777; margin: 6px 0; }
.r-head { text-align: center; }
.r-title { text-align: center; font-weight: 700; margin: 6px 0; }
.r-kind { text-align: center; font-weight: 700; font-size: 15px; }
.r-training { text-align: center; font-weight: 700; border: 2px solid #000; padding: 3px; margin-bottom: 6px; }
.rr { display: flex; justify-content: space-between; gap: 10px; }
.r-total { font-weight: 700; font-size: 15px; }
.r-bad { font-weight: 700; color: var(--red); }
.r-vat { width: 100%; border-collapse: collapse; font-size: 12px; }
.r-vat th, .r-vat td { text-align: right; padding: 1px 2px; background: none; border: 0; color: #000; }
.r-vat th:first-child, .r-vat td:first-child { text-align: left; }
.r-foot { text-align: center; margin-top: 8px; }
.r-qr { margin: 8px auto 0; display: grid; gap: 1px; }
.r-qr-title { text-align: center; font-weight: 700; margin-bottom: 4px; }
.r-qr .qr-svg { width: 170px; margin: 0 auto 6px; }
.report h4 { font-family: var(--font); color: #000; }

/* ---- správa ---- */
.admin { position: fixed; inset: 0; background: var(--bg); display: grid; grid-template-rows: 60px 1fr; z-index: 5; }
.ahead { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 12px; }
.ahead h1 { margin: 0; font: 650 17px var(--font-d); display: flex; align-items: center; gap: 10px; }
.ahead .sp { flex: 1; }
.abody { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 0; }
.aside { background: var(--ink); color: #c7d0d9; overflow: auto; padding: 10px; display: grid; align-content: start; gap: 2px; }
.aside button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; font-size: 14px; font-weight: 600; border-radius: 10px; }
.aside button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.aside button[aria-pressed="true"] { background: rgba(15, 159, 110, .18); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.acont { overflow: auto; min-height: 0; }
.atitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 6px; flex-wrap: wrap; }
.atitle h2 { margin: 0; font: 700 24px var(--font-d); letter-spacing: -.01em; }
.atitle input { width: auto; min-height: 40px; }
.apad { padding: 14px 26px 26px; display: grid; gap: 16px; }
.apad.narrow { max-width: 760px; background: var(--panel); margin: 14px 26px; padding: 22px; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kc { --c: var(--blue); position: relative; background: var(--panel); padding: 18px 18px 16px; min-height: 118px; display: grid; align-content: start; gap: 4px; border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.kc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.kc b { font: 700 30px var(--font-num); letter-spacing: -.01em; }
.kc span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kc small { font-size: 12px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.panel { background: var(--panel); padding: 18px; display: grid; gap: 8px; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.panel h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.panel .rr { font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.panel .rr:last-child { border-bottom: 0; }
.panel .rr span:last-child { font-family: var(--font-num); font-weight: 600; }
.tbl { background: var(--panel); overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--panel-2); text-align: left; padding: 11px 14px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.r { font-family: var(--font-num); }
td.bad { color: var(--red); font-weight: 700; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7faf9; }
tr.inactive td { color: var(--muted-2); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--amber-soft); color: #8a5a00; font-size: 11px; font-weight: 700; }
.tag.dark { background: var(--ink); color: #fff; }
.swatch { --c: #ccc; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: -1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.suggest { margin: 0; padding: 10px 12px; background: var(--blue-soft); color: #1d4fb8; font-size: 13px; border-radius: var(--r-sm); }
.suggest.high { background: var(--accent-soft); color: var(--accent-2); }
.suggest.none { background: var(--amber-soft); color: #7a4b06; }
.pair-code { font-size: 18px; background: var(--panel); padding: 16px 18px; margin: 0; border-radius: var(--r); box-shadow: var(--sh-1); }

/* ---- cenovky ----
   Rozměry v mm podle archů A4. Písmo Bahnschrift (součást Windows) – úzké a čitelné, typické pro cenovky. */
.lbl-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; padding: 14px 26px 26px; align-items: start; }
.lbl-side { display: grid; gap: 10px; background: var(--panel); padding: 18px; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.lbl-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lbl-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #eef0f2; font-size: 14px; color: var(--fg); }
.lbl-preview { overflow: hidden; min-width: 0; }
.sheets { display: grid; gap: 16px; justify-content: start; }
.sheet { width: 210mm; height: 297mm; background: #fff; display: grid; box-shadow: 0 1px 8px rgba(0, 0, 0, .18); overflow: hidden; }
.sheet.sz-s { grid-template-columns: repeat(4, 52.5mm); grid-template-rows: repeat(10, 29.7mm); }
.sheet.sz-m { grid-template-columns: repeat(3, 70mm); grid-template-rows: repeat(8, 37.125mm); }
.sheet.sz-l { grid-template-columns: repeat(2, 105mm); grid-template-rows: repeat(4, 74.25mm); }

.lbl {
  --bg: #fff; --fg: #15191d; --soft: #5b636b; --accent: var(--group); --price: #15191d; --bar-fg: #fff;
  --f-price: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-text: "Segoe UI", "Bahnschrift", system-ui, sans-serif;
  position: relative; overflow: hidden; background: var(--bg); color: var(--fg);
  outline: .15mm dashed #cfd4d9; outline-offset: -.08mm;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "name price" "bottom bottom";
  column-gap: 1.5mm; padding: 0 2.6mm 1.6mm; font-family: var(--f-text);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.lbl.st-promo { --bg: #ffe600; --fg: #1a1a1a; --soft: #3d3a20; --accent: #e30613; --price: #e30613; }
.lbl.st-premium { --bg: #17191c; --fg: #f4f1ea; --soft: #b9b2a3; --accent: #c9a24a; --price: #e3c06a; --bar-fg: #17191c; }
.lbl.st-fresh { --bg: #f1f8ee; --fg: #16351d; --soft: #46664d; --accent: #2e7d32; --price: #1f5e25; }
.lbl.st-thermal { --bg: #fff; --fg: #000; --soft: #000; --accent: #000; --price: #000; --bar-fg: #fff; }
.st-thermal .l-meta { font-weight: 600; }
.st-thermal .l-pct { box-shadow: 0 0 0 .5mm #fff; }
.rolls { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.roll-page { width: var(--w); height: var(--h); display: grid; box-shadow: 0 1px 8px rgba(0, 0, 0, .18); background: #fff; }
.roll-page .lbl { outline: none; }

.l-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 2mm; margin: 0 -2.6mm 1.2mm; padding: 0 2.6mm; height: 4.2mm; background: var(--accent); color: var(--bar-fg); }
.l-shop { font-size: 2.1mm; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-badge { font-family: var(--f-price); font-size: 2.6mm; font-weight: 700; letter-spacing: .08em; background: var(--bar-fg); color: var(--accent); padding: 0 1.4mm; border-radius: .6mm; line-height: 3.2mm; white-space: nowrap; }
.st-promo .l-top { background: var(--accent); }
.st-promo .l-badge { background: #ffe600; color: var(--accent); }

.l-name { grid-area: name; align-self: start; font-size: 3.15mm; font-weight: 650; line-height: 1.14; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.l-pack { display: inline-block; margin-left: 1mm; font-size: .72em; font-weight: 600; color: var(--soft); border: .2mm solid currentColor; border-radius: 99px; padding: 0 .9mm; vertical-align: .12em; line-height: 1.25; white-space: nowrap; }

.l-pricebox { grid-area: price; align-self: end; display: grid; justify-items: end; color: var(--price); }
.l-was { font-size: 2.2mm; color: var(--soft); white-space: nowrap; }
.l-was s { font-weight: 700; text-decoration-thickness: .3mm; text-decoration-color: var(--accent); color: var(--fg); }
.l-price { display: flex; align-items: flex-start; font-family: var(--f-price); font-weight: 700; line-height: .82; }
.l-kc { font-size: 12.5mm; letter-spacing: -.04em; font-stretch: condensed; }
.l-dec { display: grid; justify-items: start; margin-left: .5mm; }
.l-h { font-size: 5.6mm; letter-spacing: -.02em; border-bottom: .45mm solid currentColor; padding-bottom: .25mm; }
.l-cur { font-family: var(--f-text); font-size: 2.2mm; font-weight: 700; margin-top: .7mm; line-height: 1; white-space: nowrap; }

.l-bottom { grid-area: bottom; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5mm; margin-top: .8mm; min-height: 5.6mm; }
.l-info { display: grid; gap: .5mm; min-width: 0; }
.l-unit { justify-self: start; font-size: 2.3mm; font-weight: 700; border: .25mm solid var(--fg); border-radius: .5mm; padding: .2mm 1mm; white-space: nowrap; }
.l-meta { font-size: 1.85mm; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl .ean { width: 17mm; height: 5.6mm; flex: none; fill: var(--fg); background: #fff; padding: .3mm .4mm 0; border-radius: .4mm; }
.st-premium .ean, .st-promo .ean { fill: #111; }
.ean text { font-size: 6px; font-family: ui-monospace, Consolas, monospace; }

/* odznak slevy vedle ceny */
.l-pricerow { display: flex; align-items: center; gap: 1.4mm; }
.l-pct { width: 9mm; height: 9mm; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 .5mm #fff, 0 .4mm .8mm rgba(0, 0, 0, .25); display: grid; place-items: center; align-content: center; font-family: var(--f-price); font-weight: 700; line-height: .9; transform: rotate(-8deg); flex: none; }
.l-pct b { font-size: 3.4mm; }
.l-pct span { font-size: 1.9mm; }
.st-premium .l-pct { color: #17191c; }

/* malá 52,5 × 29,7 mm */
.lbl-s { padding: 0 2mm 1.2mm; }
.lbl-s .l-top { height: 3.3mm; margin: 0 -2mm .8mm; padding: 0 2mm; }
.lbl-s .l-shop { font-size: 1.7mm; }
.lbl-s .l-badge { font-size: 2.1mm; line-height: 2.6mm; }
.lbl-s .l-name { font-size: 2.55mm; -webkit-line-clamp: 2; }
.lbl-s .l-kc { font-size: 9.5mm; }
.lbl-s .l-h { font-size: 4.3mm; }
.lbl-s .l-cur { font-size: 1.8mm; }
.lbl-s .l-unit { font-size: 1.9mm; }
.lbl-s .l-meta { font-size: 1.55mm; }
.lbl-s .ean { width: 13.5mm; height: 4.6mm; }
.lbl-s .l-pct { width: 6.6mm; height: 6.6mm; }
.lbl-s .l-pct b { font-size: 2.5mm; }
.lbl-s .l-pct span { font-size: 1.5mm; }

/* velká 105 × 74,25 mm (akční cenovka, A7) */
.lbl-l { padding: 0 5mm 3.5mm; column-gap: 3mm; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "top top" "name name" ". price" "bottom bottom"; }
.lbl-l .l-name { -webkit-line-clamp: 2; }
.lbl-l .l-top { height: 9mm; margin: 0 -5mm 3mm; padding: 0 5mm; }
.lbl-l .l-shop { font-size: 3.6mm; }
.lbl-l .l-badge { font-size: 5.4mm; line-height: 6.6mm; padding: 0 2.6mm; border-radius: 1mm; }
.lbl-l .l-name { font-size: 6.4mm; line-height: 1.1; }
.lbl-l .l-was { font-size: 4.2mm; }
.lbl-l .l-was s { text-decoration-thickness: .6mm; }
.lbl-l .l-kc { font-size: 30mm; }
.lbl-l .l-h { font-size: 13mm; border-bottom-width: .9mm; padding-bottom: .5mm; }
.lbl-l .l-cur { font-size: 4.6mm; margin-top: 1.4mm; }
.lbl-l .l-bottom { min-height: 10mm; margin-top: 2mm; }
.lbl-l .l-unit { font-size: 4.2mm; border-width: .45mm; padding: .4mm 2mm; border-radius: 1mm; }
.lbl-l .l-meta { font-size: 3mm; }
.lbl-l .ean { width: 32mm; height: 10.5mm; }
.lbl-l .l-pricerow { gap: 3mm; }
.lbl-l .l-pct { width: 19mm; height: 19mm; }
.lbl-l .l-pct b { font-size: 7.6mm; }
.lbl-l .l-pct span { font-size: 3.8mm; }

/* úzké obrazovky (tablet na výšku, telefon) */
@media (max-width: 900px) {
  body { overflow: auto; }
  .pos { height: auto; min-height: 100%; }
  .main { grid-template-columns: minmax(0, 1fr); }
  .left { grid-template-rows: 56px auto 400px; }
  .disp { grid-template-columns: minmax(0, 1fr) 120px; }
  .search { height: 56px; }
  .who small, .uname, .bar .time { display: none; }
  .bar { gap: 8px; }
  .abody { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .aside { display: flex; overflow-x: auto; padding: 6px; }
  .aside button { white-space: nowrap; width: auto; }
  .lbl-layout { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .atitle, .apad { padding-left: 14px; padding-right: 14px; }
  .g3 { grid-template-columns: 1fr 1fr; }
}

/* ---- tisk ---- */
#print-area { display: none; }
@media print {
  body { overflow: visible; background: #fff; }
  body[data-print] #app, body[data-print] .back, body[data-print] .toast { display: none !important; }
  body[data-print] #print-area { display: block; }
  /* Obsah užší než role a uprostřed – vejde se do tisknutelné plochy, ať tiskárna počítá okraje od papíru, nebo od tiskové hlavy. */
  body[data-print="receipt"] #print-area { width: 64mm; margin: 0 8mm; }
  body[data-print="receipt"][data-paper="58"] #print-area { width: 40mm; margin: 0 9mm; }
  body[data-print="receipt"] .receipt-doc, body[data-print="receipt"] .report { max-width: none; font-size: 11px; }
  /* QR Platba na termo účtence: 38 mm, aby šla z papíru načíst mobilem. */
  body[data-print="receipt"] .r-qr .qr-svg { width: 38mm; }
  body[data-print="labels"] .sheets, body[data-print="labels"] .rolls { zoom: 1 !important; gap: 0; }
  body[data-print="labels"] .sheet { box-shadow: none; break-after: page; }
  body[data-print="labels"] .roll-page { box-shadow: none; break-after: page; }
  /* Role pokladní tiskárny: cenovky pod sebou bez zalomení stránky, uprostřed role, čára na odstřihnutí. */
  /* Na roli: přes celou šířku stránky, uprostřed, bez okraje nahoře a bez pozadí náhledu. */
  body[data-print="labels"] .receipt-roll { display: grid; justify-items: center; gap: 0; width: 100% !important; padding: 0 !important; background: none !important; border-radius: 0; }
  body[data-print="labels"] .receipt-roll .roll-page { box-shadow: none; break-after: auto; }
  body[data-print="labels"] .receipt-roll .roll-cell { break-after: auto; break-inside: avoid; margin-bottom: 6mm; overflow: visible; }
  body[data-print="labels"] .receipt-roll .roll-cell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3.2mm; border-top: 0.3mm dashed #000; }
  body[data-print="labels"] .receipt-roll.separate .roll-cell { break-after: page; margin-bottom: 0; }
  body[data-print="labels"] .receipt-roll.separate .roll-cell:last-child { break-after: auto; }
  body[data-print="labels"] .receipt-roll.separate .roll-cell::after { display: none; }
  body[data-print="labels"] .lbl { outline: none; }
}

/* termo etiketa na roli: o něco vyšší než políčko archu – větší cena */
.roll-page .lbl-m .l-kc { font-size: 14.5mm; }
.roll-page .lbl-m .l-h { font-size: 6.4mm; }
.roll-page .lbl-m .l-cur { font-size: 2.4mm; }
.roll-page .lbl-m .l-name { font-size: 3.4mm; }

/* ---- vlajky, spojení, potvrzení platby, bankovky, důvody, uzávěrka ---- */
.flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.langs button { padding: 5px 6px; opacity: .55; }
.langs button.on { opacity: 1; background: rgba(255, 255, 255, .14); }
.langs.light button.on { background: var(--panel); box-shadow: 0 0 0 2px var(--accent); }
.langs button:hover { opacity: 1; }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #ffb4b4; }
.net i { width: 9px; height: 9px; border-radius: 50%; background: #35d39a; box-shadow: 0 0 0 3px rgba(53, 211, 154, .2); }
.net span { display: none; }
.net.off { background: rgba(229, 72, 77, .18); padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .45); }
.net.off i { background: var(--red); box-shadow: 0 0 0 3px rgba(229, 72, 77, .25); animation: blink 1s infinite; }
.net.off span { display: inline; }
@keyframes blink { 50% { opacity: .3; } }
.done-hero { display: flex; align-items: center; gap: 16px; padding: 6px 2px; }
.done-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #18c085, var(--accent-2)); box-shadow: 0 10px 24px rgba(15, 159, 110, .35); animation: pop .25s ease-out; }
.done-hero b { display: block; font: 700 34px var(--font-num); }
.done-hero small { color: var(--muted); font-weight: 600; }
.receipt-more summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px 0; }
.receipt-more[open] summary { margin-bottom: 8px; }
.note { flex: 1; min-width: 88px; height: 58px; border-radius: var(--r-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; align-content: center; line-height: 1.05; }
.note b { font: 700 18px var(--font-num); }
.note small { font-size: 11px; color: var(--muted); font-weight: 600; }
.note.bank { --n: #2f8b70; background: #eef5f2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 6px 0 0 var(--n); color: #1d2a24; background: linear-gradient(135deg, color-mix(in srgb, var(--n) 14%, #fff), color-mix(in srgb, var(--n) 26%, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--n) 45%, transparent), inset 6px 0 0 var(--n); color: color-mix(in srgb, var(--n) 75%, #000); }
.note.bank small { color: inherit; opacity: .75; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reason { min-height: 64px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; text-align: left; }
.reason:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.den { display: grid; grid-template-columns: 92px 38px 64px 38px minmax(0, 1fr); gap: 6px; align-items: center; }
.den-chip { --n: #888; height: 34px; border-radius: 7px; display: grid; place-items: center; font: 700 13px var(--font-num); color: #fff; background: var(--n); }
.den-chip.coin { border-radius: 99px; background: var(--n); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--n) 55%, #fff), var(--n)); color: #1d1d1d; }
.den-btn { height: 38px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.den input { min-height: 38px; height: 38px; padding: 4px 6px; text-align: center; font: 600 16px var(--font-num); }
.den-sum { text-align: right; font: 600 14px var(--font-num); color: var(--muted); }
.count-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.count-sum div { background: var(--panel-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.count-sum span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.count-sum b { font: 700 22px var(--font-num); }
.count-sum b.ok { color: var(--accent-2); }
.count-sum b.warn { color: #b7791f; }
.count-sum b.bad { color: var(--red); }
.info-price { font: 700 40px var(--font-num); }
.info-price small { font-size: 18px; color: var(--muted); }
.rr.low b { color: var(--red); }
.row.between { justify-content: space-between; }
.tbl.flat { box-shadow: none; border: 1px solid var(--line); border-radius: var(--r); }
@media (max-width: 900px) { .dens { grid-template-columns: 1fr; } .reasons { grid-template-columns: 1fr; } }
@media print {
  body[data-print="order"] .order-print { font: 12px/1.4 var(--font); color: #000; padding: 12mm; }
  body[data-print="order"] .order-print h2 { font-size: 16px; margin: 0 0 8px; }
  body[data-print="order"] .order-print th, body[data-print="order"] .order-print td { padding: 4px 6px; border-bottom: 1px solid #999; background: none; }
}

/* ---- fotky, stránky dlaždic, bankovky ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picker { display: grid; gap: 8px; justify-items: start; }
.pick-prev { width: 112px; height: 112px; border-radius: var(--r); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--muted-2); overflow: hidden; }
.pick-prev img { width: 100%; height: 100%; object-fit: cover; }
.pick-btns { display: flex; gap: 6px; }
.name-row { display: flex; gap: 16px; align-items: flex-start; }
.thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 10px; flex: none; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); display: inline-block; }
.name-cell { white-space: nowrap; }
.tile.photo { padding: 0; color: #fff; background: #1b2128; }
.tile.photo::before { z-index: 2; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile.photo .nm, .tile.photo .tile-foot { position: relative; z-index: 1; }
.tile.photo { grid-template-rows: 1fr auto; }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, 0) 30%, rgba(10, 14, 20, .82) 100%); }
.tile.photo .nm { align-self: end; padding: 0 12px 0 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); -webkit-line-clamp: 2; }
.tile.photo .tile-foot { padding: 0 12px 10px 16px; }
.tile.photo .pr small { color: rgba(255, 255, 255, .8); }
.tile.photo .plu { background: rgba(255, 255, 255, .18); color: #fff; }
.cat-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-left: -6px; box-shadow: 0 0 0 2px var(--c); }
.cat.page { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-1); color: var(--accent-2); }
.cat.page[aria-pressed="true"] { background: var(--accent); color: #fff; }
.note.art { padding: 0; height: auto; min-width: 104px; background: none; box-shadow: none; display: block; border-radius: 8px; }
.note.art:hover { filter: brightness(1.06); transform: translateY(-1px); }
.money { display: block; width: 100%; height: auto; }
.money.money-note { filter: drop-shadow(0 3px 6px rgba(16, 24, 40, .22)); font-family: var(--font-num); }
.money.coin { width: 58px; margin: 0 auto; filter: drop-shadow(0 3px 5px rgba(16, 24, 40, .25)); font-family: var(--font-num); }
.money-img { display: block; width: 100%; height: 56px; object-fit: cover; border-radius: 6px; box-shadow: 0 3px 8px rgba(16, 24, 40, .22); }
.den { grid-template-columns: 92px 38px 64px 38px minmax(0, 1fr); }
.den-art { display: grid; place-items: center; height: 40px; }
.den-art .money.money-note { width: 84px; }
.den-art .money.coin { width: 38px; }
.den-art .money-img { height: 40px; width: 84px; }
.page-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.page-card { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px; display: grid; gap: 6px; justify-items: start; text-align: left; color: var(--accent-2); }
.page-card b { color: var(--fg); font-size: 17px; }
.page-card small { color: var(--muted); }
.page-card:hover { box-shadow: var(--sh-2); }
.pg-found { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-add { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: 13px; }
.pg-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.pg-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel-2); }
.money-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.money-card { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px; display: grid; gap: 10px; justify-items: center; }
.money-prev { width: 150px; min-height: 76px; display: grid; place-items: center; }
.money-prev .money.coin { width: 70px; }
.money-prev .money-img { height: 76px; }

/* ---- grafy ---- */
.viz { position: relative; }
.viz-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.viz-grid { stroke: #edf0f3; stroke-width: 1; }
.viz-base { stroke: var(--line-2); stroke-width: 1; }
.viz-axis { fill: var(--muted); font-size: 11px; }
.viz-peak { fill: var(--fg); font-size: 12px; font-weight: 700; font-family: var(--font-num); }
.viz-hit { fill: transparent; cursor: default; }
.viz-hit.on { fill: rgba(15, 20, 26, .045); }
.viz-tip { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px; display: grid; gap: 1px; font-size: 12px; box-shadow: var(--sh-3); white-space: nowrap; z-index: 3; }
.viz-tip.on { opacity: 1; transform: none; }
.viz-tip b { font: 700 15px var(--font-num); }
.viz-tip b:first-child { font: 600 12px var(--font); color: #aab4bf; }
.viz-tip span:nth-child(2) { font: 700 16px var(--font-num); color: #fff; }
.viz-tip span:last-child { color: #aab4bf; }
.viz-empty { color: var(--muted); padding: 30px 0; text-align: center; margin: 0; }
.panel.wide { padding-bottom: 10px; }
.bars { display: grid; gap: 12px; }
.bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label small, .bar-val small { color: var(--muted); font-weight: 500; }
.bar-val { font-family: var(--font-num); font-weight: 600; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar-fill { --w: 0%; --c: var(--accent); width: var(--w); height: 100%; border-radius: 99px; background: var(--c); transition: width .4s ease-out; }
.split { display: grid; gap: 14px; }
.split-bar { display: flex; gap: 2px; height: 16px; }
.split-seg { --w: 0; --c: #999; width: var(--w); background: var(--c); }
.split-seg:first-child { border-radius: 4px 0 0 4px; }
.split-seg:last-child { border-radius: 0 4px 4px 0; }
.split-seg:only-child { border-radius: 4px; }
.legend { display: grid; gap: 8px; }
.leg { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 10px; align-items: center; font-size: 14px; }
.leg i { --c: #999; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.leg b { font-family: var(--font-num); }
.leg small { color: var(--muted); text-align: right; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button:hover { background: var(--panel-2); color: var(--fg); }
table.mini { font-size: 13px; }
table.mini th { background: none; padding: 6px 4px; }
table.mini td { padding: 7px 4px; }
.kc span { order: 0; }

/* ---- sklad: příjem a inventura ---- */
.seg button.on { background: var(--ink); color: #fff; }
.scanbox { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel); border-radius: var(--r); box-shadow: 0 0 0 2px var(--accent), var(--sh-1); color: var(--muted); }
.scan-input { border: 0; box-shadow: none !important; height: 58px; font-size: 18px; padding: 0; background: transparent; }
.scan-table td { vertical-align: middle; }
.cell-in { width: 96px; min-height: 38px; padding: 6px 8px; text-align: right; font-family: var(--font-num); font-size: 15px; }
.scan-table tr.flash td { animation: flash 1s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }
.empty-row { text-align: center; padding: 28px !important; }
.margin { font-weight: 700; color: var(--accent-2); font-family: var(--font-num); }
.margin.low { color: var(--red); }
.margin-box { display: flex; align-items: flex-end; padding-bottom: 12px; }
.scan-table .ok, .count-sum .ok { color: var(--accent-2); font-weight: 700; }
.scan-table .bad { color: var(--red); font-weight: 700; }
.scan-table .warn { color: #b7791f; font-weight: 700; }
label.check.small { display: inline-flex; margin-left: 10px; font-size: 12px; color: var(--muted); gap: 6px; }
label.check.small input { width: 16px; height: 16px; }

/* ---- zákaznický displej ---- */
.display-body { background: var(--ink); color: #fff; overflow: hidden; }
.cd { height: 100%; display: grid; }
.cd-idle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: 5vw; background: radial-gradient(1000px 600px at 10% -10%, #20303d, transparent 60%), radial-gradient(800px 600px at 110% 110%, #0d4632, transparent 55%), var(--ink); }
.cd-idle:not(:has(.cd-promo)) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.cd-brand { display: grid; gap: 14px; justify-items: start; }
.cd-idle:not(:has(.cd-promo)) .cd-brand { justify-items: center; }
.cd-brand h1 { font: 700 clamp(30px, 4.4vw, 64px)/1.05 var(--font-d); margin: 6px 0 0; letter-spacing: -.02em; }
.cd-brand p { margin: 0; color: #9aa6b2; font-size: clamp(15px, 1.6vw, 22px); }
.cd-clock { font: 600 clamp(48px, 8vw, 120px)/1 var(--font-num); color: #fff; margin-top: 2vh; letter-spacing: -.02em; }
.cd-date { color: #8b97a3; font-size: clamp(14px, 1.4vw, 20px); }
.cd-date::first-letter { text-transform: uppercase; }
.mark.big { width: 92px; height: 92px; border-radius: 26px; }
.cd-promo { position: relative; background: #fff; color: var(--fg); border-radius: 32px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); animation: promoIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes promoIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.cd-promo-tag { position: absolute; top: 20px; left: 20px; z-index: 1; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; padding: 7px 14px; border-radius: 99px; box-shadow: 0 6px 16px rgba(229, 72, 77, .4); }
.cd-promo-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; background: var(--panel-2); }
.cd-promo-img.empty { display: grid; place-items: center; color: var(--muted-2); }
.cd-promo-name { font: 700 clamp(20px, 2.4vw, 34px)/1.15 var(--font-d); letter-spacing: -.01em; }
.cd-promo-prices { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cd-promo-prices s { color: var(--muted); font: 600 clamp(16px, 1.8vw, 24px) var(--font-num); text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.cd-promo-prices .pbig { color: var(--red); font-size: clamp(48px, 6vw, 88px); }
.cd-promo-pct { background: var(--red); color: #fff; font: 800 clamp(16px, 1.8vw, 24px) var(--font-num); padding: 6px 12px; border-radius: 12px; transform: rotate(-4deg); }
.cd-dots { display: flex; gap: 6px; justify-content: center; }
.cd-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.cd-dots i.on { background: var(--ink); width: 22px; border-radius: 99px; }
.pbig { display: inline-flex; align-items: flex-start; font-family: var(--font-num); font-weight: 700; line-height: .9; }
.pbig .pk { letter-spacing: -.03em; }
.pbig .ph { display: grid; margin-left: .06em; }
.pbig sup { font-size: .45em; line-height: 1; vertical-align: top; }
.pbig small { font: 700 .2em var(--font); margin-top: .25em; opacity: .8; letter-spacing: .04em; }

.cd-cart { grid-template-rows: 76px 1fr; background: var(--ink); }
.cd-head { display: flex; align-items: center; gap: 14px; padding: 0 32px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: 0 1px 0 var(--ink-line); font: 650 20px var(--font-d); }
.cd-head .sp { flex: 1; }
.cd-head-time { font: 600 22px var(--font-num); color: #c7d0d9; }
.cd-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); min-height: 0; }
.cd-lines { padding: 26px 30px; display: grid; align-content: start; gap: 10px; overflow: hidden; background: linear-gradient(180deg, #f6f7f9, #eceff3); color: var(--fg); }
.cd-lines-title { font: 700 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cd-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); }
.cd-line.new { box-shadow: 0 0 0 3px var(--accent), 0 12px 30px rgba(15, 159, 110, .25); animation: lineIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-24px); } }
.cd-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--panel-2); }
.cd-thumb.empty { display: grid; place-items: center; color: var(--muted-2); }
.cd-n { display: grid; gap: 2px; min-width: 0; }
.cd-n b { font: 650 clamp(16px, 1.7vw, 22px)/1.2 var(--font-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-n small { color: var(--muted); font-size: clamp(13px, 1.2vw, 16px); }
.cd-n .cd-disc { color: var(--accent-2); font-weight: 700; }
.cd-lt { font: 700 clamp(18px, 2vw, 26px) var(--font-num); white-space: nowrap; }
.cd-lt.neg { color: var(--red); }
.cd-more { color: var(--muted); font-size: 14px; }
.cd-total { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; padding: 32px; overflow: hidden; background: radial-gradient(700px 500px at 50% -10%, #173a2c, transparent 65%), radial-gradient(500px 400px at 100% 100%, #1f2a36, transparent 60%), var(--ink); }
.cd-total-label { color: #8ee6c2; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: clamp(14px, 1.5vw, 20px); }
.cd-total .pbig { font-size: clamp(64px, 9vw, 140px); color: #fff; }
.cd-pay .cd-total .pbig { color: #5fe0ad; }
.cd-cash { color: #c7d0d9; font-size: 18px; }
.cd-meta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cd-meta span { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--ink-line); color: #dfe5ea; font-weight: 600; }
.cd-meta .cd-saved { background: rgba(15, 159, 110, .2); color: #8ee6c2; box-shadow: inset 0 0 0 1px rgba(53, 211, 154, .35); }
.cd-paywith { display: flex; gap: 12px; }
.cd-paywith span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }

/* QR platba na zákaznickém displeji: vlevo QR kód, vpravo účtenka */
.cd-qr-main { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); }
.cd-qr-pay { display: grid; place-items: center; align-content: center; gap: 16px; padding: 28px; text-align: center; background: radial-gradient(700px 500px at 50% -10%, #173a2c, transparent 65%), var(--ink); color: #fff; }
.cd-qr-card { background: #fff; padding: 16px; border-radius: 24px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .45); width: clamp(240px, min(34vw, 52vh), 480px); }
.cd-qr-pay .pbig { font-size: clamp(48px, 6vw, 92px); color: #5fe0ad; }
.cd-qr-data { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; font-size: clamp(14px, 1.4vw, 19px); text-align: left; }
.cd-qr-data dt { color: #9aa6b2; }
.cd-qr-data dd { margin: 0; font: 650 1em var(--font-num); color: #fff; }
.cd-qr-hint { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #dfe5ea; font-size: clamp(13px, 1.2vw, 16px); }
.cd-slip-wrap { display: grid; place-items: start center; padding: 28px; overflow: hidden; background: linear-gradient(180deg, #f6f7f9, #eceff3); }
.cd-slip { width: min(100%, 440px); max-height: 100%; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; color: #000; padding: 22px 22px 18px; border-radius: 6px 6px 0 0; box-shadow: var(--sh-2); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(13px, 1.2vw, 16px); }
.cd-slip-head { display: grid; gap: 2px; text-align: center; padding-bottom: 10px; border-bottom: 1px dashed #999; }
.cd-slip-head b { font-size: 1.15em; }
.cd-slip-head small { color: #555; }
.cd-slip-lines { overflow: hidden; padding: 8px 0; display: grid; align-content: start; gap: 6px; }
.cd-slip-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; }
.cd-slip-line .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-slip-line small { grid-column: 1 / -1; color: #555; }
.cd-slip-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px dashed #999; font-weight: 700; font-size: 1.25em; }
.cd-slip-row { display: flex; justify-content: space-between; color: #333; }
@media (max-width: 760px) {
  .cd-qr-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow: auto; }
}

.cd-paid { display: grid; place-items: center; align-content: center; gap: 22px; text-align: center; background: radial-gradient(900px 600px at 50% 0%, #0f4a34, transparent 65%), var(--ink); }
.cd-check { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #1fd08f, var(--accent-2)); box-shadow: 0 0 0 16px rgba(31, 208, 143, .12), 0 0 0 32px rgba(31, 208, 143, .06), 0 24px 60px rgba(15, 159, 110, .45); animation: checkIn .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes checkIn { from { transform: scale(.4); opacity: 0; } }
.cd-paid h1 { font: 700 clamp(32px, 5vw, 72px) var(--font-d); margin: 0; letter-spacing: -.02em; }
.cd-change { display: grid; gap: 6px; justify-items: center; background: rgba(15, 159, 110, .16); padding: 20px 44px; border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(53, 211, 154, .35); }
.cd-change span { color: #8ee6c2; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.cd-change .pbig { font-size: clamp(56px, 8vw, 112px); }
.cd-paid-total { font: 700 clamp(28px, 4vw, 48px) var(--font-num); color: #c7d0d9; }
.cd-sub { margin: 0; color: #9aa6b2; font-size: clamp(15px, 1.6vw, 22px); }
@media (max-width: 760px) {
  .cd-idle { grid-template-columns: 1fr; padding: 24px; }
  .cd-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .cd-total { order: -1; padding: 20px; gap: 10px; }
  .cd-lines { padding: 14px; }
}

/* ---- EET ---- */
.eet-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #c7f5df; background: rgba(15, 159, 110, .16); box-shadow: inset 0 0 0 1px rgba(53, 211, 154, .35); }
.eet-chip i { width: 8px; height: 8px; border-radius: 50%; background: #35d39a; }
.eet-chip b { background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 0 6px; }
.eet-chip.warn { color: #ffe1a6; background: rgba(245, 165, 36, .16); box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .4); }
.eet-chip.warn i { background: var(--amber); }
.eet-chip.bad { color: #ffc4c4; background: rgba(229, 72, 77, .2); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .5); }
.eet-chip.bad i { background: var(--red); animation: blink 1s infinite; }
.r-eet { text-align: center; margin-top: 8px; font-size: 11px; word-break: break-all; }
b.bad { color: var(--red); }

/* ---- přechod do ostrého provozu ---- */
.check-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-row:last-of-type { border-bottom: 0; }
.check-row b { display: block; font-size: 14px; }
.check-row small { color: var(--muted); }
.check-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.check-row.ok .check-ic { background: var(--accent); }
.check-row.warn .check-ic { background: var(--amber); }
.check-row.bad .check-ic { background: var(--red); }
.panel.golive { grid-column: 1 / -1; }
.panel.golive.live { box-shadow: inset 4px 0 0 var(--accent), var(--sh-1); }
.link-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.link-row input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; min-height: 36px; }
@media (max-width: 900px) { .link-row { grid-template-columns: 1fr; } }
.ean-line { display: flex; align-items: center; gap: 8px; font: 700 20px var(--font-num); color: var(--muted); }
.ean-line b { color: var(--fg); letter-spacing: .04em; }
.suggest.hidden-empty:empty { display: none; }
.suggest .btn { margin-left: 6px; }

/* ---- karty dole na prodejní obrazovce (jako GoKasa) ---- */
.ptabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--ink); border-radius: var(--r); box-shadow: var(--sh-1); scrollbar-width: thin; }
.ptab { --c: transparent; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 10px; color: #c7d0d9; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ptab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ptab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ptab[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ptab.main[aria-pressed="true"] { background: linear-gradient(180deg, #14b57d, var(--accent-2)); color: #fff; }
@media (max-width: 900px) { .left { grid-template-rows: 56px auto 400px auto; } }

/* ===== Prodejní obrazovka v2: skupiny jako obrázkové dlaždice s písmenem, zboží s PLU a cenou v rozích ===== */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); grid-auto-rows: 74px; gap: 8px; overflow-x: hidden; overflow-y: auto; max-height: 156px; padding: 2px; }
.gtile { --c: #64748b; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border-radius: 12px; background: var(--panel); box-shadow: var(--sh-1); padding: 0; transition: transform .08s ease, box-shadow .12s ease; }
.gtile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0) 40%, rgba(15, 20, 26, .04) 100%); pointer-events: none; }
.gtile:hover { box-shadow: var(--sh-2); }
.gtile:active { transform: scale(.97); }
.gt-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 5px 8px 2px; pointer-events: none; }
.gtile .nm { background: var(--c); color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.gtile .hk { position: absolute; top: 5px; left: 5px; z-index: 1; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 12px var(--font-num); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.gtile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c), var(--sh-2); }
.gtile[aria-pressed="true"] .hk { background: var(--c); }

.tiles { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); grid-auto-rows: 122px; gap: 8px; }
.tiles[data-size="s"] { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: 98px; }
.tiles[data-size="l"] { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); grid-auto-rows: 150px; }
.tile { display: block; padding: 0; background: var(--panel); border-radius: 12px; transition: transform .08s ease, box-shadow .12s ease; -webkit-touch-callout: none; user-select: none; }
.tile::before { display: none; }
.tile:active { transform: scale(.97); background: var(--panel); }
.t-img { position: absolute; inset: 28px 6px 34px; pointer-events: none; }
.t-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .12)); }
.tile.art .t-img img { transform: scale(1.22); }
.tile.fallback .t-img img { transform: scale(.95); opacity: .9; }
.t-plu { position: absolute; top: 5px; left: 5px; background: #2563c9; color: #fff; font: 700 12px var(--font-num); padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.t-price { position: absolute; top: 5px; right: 5px; background: rgba(15, 20, 26, .86); color: #fff; font: 700 13.5px var(--font-num); padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.t-price small { font: 600 10px var(--font); opacity: .75; }
.tile.promo .t-price { background: #d6312f; }
.tile .nm { position: absolute; left: 0; right: 0; bottom: 0; min-height: 30px; padding: 5px 8px; background: var(--c); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tiles[data-size="s"] .t-img { inset: 22px 6px 30px; }
.tiles[data-size="s"] .nm { font-size: 11.5px; min-height: 26px; padding: 4px 6px; }
.tiles[data-size="l"] .nm { font-size: 14px; }
.tiles[data-size="l"] .t-price { font-size: 15px; }

.ptab { background: var(--c); color: #fff; opacity: .78; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); position: relative; }
.ptab:hover { background: var(--c); opacity: .95; color: #fff; }
.ptab[aria-pressed="true"] { background: var(--c); color: #fff; opacity: 1; box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(0, 0, 0, .3); }
.ptab[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--c); }
.ptab.main { --c: #1f2a36; }

.logo-img { object-fit: contain; background: #fff; padding: 3px; }
.cd-logo { max-width: 260px; max-height: 120px; object-fit: contain; }

/* výběr obrázku: hledání na internetu, obrázky pokladny, Ctrl+V a přetažení */
.pick-btns { flex-wrap: wrap; }
.pick-prev.drop { outline: 3px dashed var(--accent); outline-offset: 2px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-auto-rows: 130px; gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; }
.img-grid.art { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: 96px; }
.img-cell { position: relative; min-height: 0; height: 100%; background: #fff; border-radius: 10px; box-shadow: var(--sh-1); padding: 6px; display: grid; place-items: center; overflow: hidden; }
.img-cell:hover { box-shadow: 0 0 0 3px var(--accent), var(--sh-2); }
.img-cell img { width: 100%; height: 100%; object-fit: contain; }
.img-cell small { position: absolute; left: 4px; bottom: 4px; font-size: 9.5px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 0 4px; border-radius: 4px; }
.img-cell.skel { background: linear-gradient(90deg, var(--panel-2), #fff, var(--panel-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.img-help { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.qa-head { display: flex; gap: 14px; align-items: center; }
.qa-photo:empty { display: none; }
.qa-photo img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 10px; box-shadow: var(--sh-1); padding: 4px; }
.hk-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 13px var(--font-num); }
.hk-input { text-transform: uppercase; font: 700 18px var(--font-num); text-align: center; max-width: 80px; }
.tag.green { background: var(--accent-soft); color: var(--accent-2); }
.thumb-cell { width: 52px; }
.price-cell { cursor: text; }
.price-cell:hover { background: var(--accent-soft); }
.inline-price { width: 110px; text-align: right; font: 700 16px var(--font-num); padding: 6px 8px; min-height: 0; }
.link-row .span2 { grid-column: span 2; }
.self-end { align-self: end; }
.color-row { display: flex; align-items: end; gap: 10px; }
.progress { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: 66px; max-height: 140px; } }
.name-row > .picker { flex: none; width: 214px; }
.name-row > .grow { min-width: 0; flex: 1; }
.picker .pick-prev { width: 214px; height: 150px; background: #fff; }
.pick-prev img { object-fit: contain; padding: 6px; }
.picker .pick-btns .btn { flex: 1 1 auto; }
@media (max-width: 640px) { .name-row { flex-direction: column; } .name-row > .picker, .picker .pick-prev { width: 100%; } }
.apad h3.sub-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 16px; }

/* ===== Doladění: lidštější vzhled a víc místa pro nákup ===== */
.gtile .nm { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 650; }
.due-round { margin-top: -6px; }
.items .ph { font-size: 15px; line-height: 1.5; padding: 36px 28px; }
.pay .go b { white-space: nowrap; }
/* Nižší monitory (1366×768, 1024×768): kompaktnější číselník a nástroje, nákup dostane prostor */
@media (max-height: 820px) {
  .rhead { padding: 8px 10px 6px; gap: 6px; }
  .tool { padding: 5px 2px 4px; gap: 2px; }
  .tool .ic { width: 18px; height: 18px; }
  .summary { padding: 8px 16px; }
  .summary b { font-size: 26px; }
  .pad { grid-auto-rows: 44px; gap: 5px; padding: 8px 10px; }
  .pad button { font-size: 21px; }
  .pay { grid-template-columns: 64px 1fr; padding: 0 10px 10px; }
  .pay .disc, .pay .go { height: 58px; }
  .pay .go b { font-size: 22px; }
  .cats { grid-auto-rows: 64px; max-height: 136px; }
  .left { gap: 8px; grid-template-rows: 54px auto minmax(0, 1fr) auto; }
  .ptab { min-height: 42px; }
}

/* zákaznický displej v klidu: přes celou obrazovku, pozdrav a doporučené zboží */
.cd-idle { min-height: 100vh; width: 100%; background: radial-gradient(70vw 60vh at 0% 0%, #3a2c1c, transparent 60%), radial-gradient(60vw 60vh at 100% 100%, #0d4632, transparent 60%), #17140f; }
.cd-hello { color: #f0c987 !important; font: 600 clamp(18px, 2vw, 28px) var(--font-d) !important; margin: 0 !important; }
.cd-promo.featured .cd-promo-tag { background: var(--accent); box-shadow: 0 6px 16px rgba(15, 159, 110, .35); }
.cd-promo.featured .pbig { color: var(--fg); }
.cd-promo-img.art { object-fit: contain; padding: 6% 12%; background: linear-gradient(160deg, #fbf8f3, #f1ebe1); }
.grid-gap { display: grid; gap: 10px; }

/* ===== Platba jako panel vpravo (místo nákupu), bez ztmavení a rozmazání pokladny ===== */
.back.docked { background: rgba(30, 22, 12, .06); backdrop-filter: none; padding: 0; display: block; }
.back.docked > .dlg { position: fixed; left: var(--dl); top: var(--dt); width: var(--dw); height: var(--dh); max-height: none; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--sh-2); animation: slideIn .16s ease-out; }
@keyframes slideIn { from { transform: translateX(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.paydlg .dh { padding: 10px 12px 8px 16px; font-size: 16px; }
.paydlg .db { padding: 12px 14px 14px; gap: 10px; grid-template-rows: auto auto auto auto auto auto 1fr auto; align-content: stretch; }
.paydlg .dueline { font-size: 14px; }
.paydlg .dueline b { font-size: clamp(26px, 2.6vw, 34px); white-space: nowrap; }
.paydlg .due-round { margin-top: -8px; font-size: 13px; }
.paydlg .payways { gap: 8px; }
.paydlg .payways.three { grid-template-columns: 1fr 1fr; }
.paydlg .payways.three .pw.qr { grid-column: 1 / -1; height: 52px; grid-auto-flow: column; gap: 10px; }
.paydlg .pw { height: 72px; font-size: 18px; }
.paydlg .notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.paydlg .note { min-width: 0; height: 52px; }
.paydlg .note.art { min-width: 0; height: 52px; display: grid; place-items: center; overflow: hidden; background: var(--panel-2); border-radius: 8px; }
.paydlg .note.art svg, .paydlg .note.art img { width: 100%; height: 100%; object-fit: contain; }
.paydlg .num-input { font-size: 26px; min-height: 52px; }
.paydlg .change { font-size: 20px; min-height: 0; }
.paydlg .row .btn { min-height: 48px; }
/* fotky bankovek a mincí se neořezávají */
.note.art img.money-img { object-fit: contain; }
/* tlačítko Zaplatit: popisek nad částkou, aby se vešly i tisíce */
.pay .go { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 16px; line-height: 1.1; }
.pay .go .go-l { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; opacity: .92; }
.pay .go .go-l .ic { width: 18px; height: 18px; }
.pay .go b { font-size: clamp(20px, 2vw, 26px); white-space: nowrap; }
.summary b { white-space: nowrap; font-size: clamp(22px, 2.2vw, 30px); }
.paydlg .notes.quick:empty { display: none; }
.paydlg .notes.quick .note { height: 44px; }
.paydlg .notes.money-row .note.art { height: 56px; padding: 4px; }

/* po zaplacení: nenápadné shrnutí v prázdném nákupu (bez okna a odpočtu) */
.last-sale { margin: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); display: grid; gap: 10px; animation: fade .2s ease-out; }
.last-sale .ph { padding: 4px 0 0; margin: 0; }
.ls-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-2); }
.ls-head small { margin-left: auto; font-weight: 600; color: var(--muted); }
.ls-check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ls-change { display: flex; justify-content: space-between; align-items: baseline; background: #fff; border-radius: 10px; padding: 10px 14px; }
.ls-change span { font-weight: 700; color: var(--muted); }
.ls-change b { font: 700 30px var(--font-num); color: var(--accent-2); white-space: nowrap; }
.ls-actions { display: flex; gap: 8px; }

/* ===== Platba v levé části pokladny (náhled účtenky + peníze), bez vyskakovacího okna ===== */
.payview .dh { padding: 10px 14px 8px 18px; font-size: 17px; }
.payview .db { padding: 0; overflow: hidden; }
.pv { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); gap: 14px; height: 100%; min-height: 0; padding: 12px 14px 14px; background: var(--panel-2); }
.pv-receipt { min-height: 0; overflow: auto; }
.rp { background: #fff; border-radius: 6px; box-shadow: var(--sh-2); padding: 14px 14px 18px; font: 13px/1.35 var(--font); color: #222; display: flex; flex-direction: column; min-height: 100%;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/16px 8px repeat-x; }
.rp-title { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.rp-lines { flex: 1; display: grid; align-content: start; gap: 4px; }
.rp-line { background: var(--panel-2); border-radius: 4px; padding: 5px 7px; }
.rp-name { font-weight: 600; display: flex; gap: 6px; }
.rp-name i { font-style: normal; color: var(--accent-2); font-weight: 700; }
.rp-calc { display: flex; justify-content: space-between; color: #555; font-family: var(--font-num); }
.rp-calc b { color: #111; }
.rp-disc { color: var(--red); font-size: 12px; text-align: right; }
.rp-sum { border-top: 1px dashed #bbb; margin-top: 10px; padding-top: 8px; display: grid; gap: 2px; font-family: var(--font-num); }
.rp-row { display: flex; justify-content: space-between; }
.rp-row.big { font-weight: 700; font-size: 16px; }
.rp-vat { margin-top: 8px; display: grid; gap: 1px; font-size: 12px; }
.rp-vat > div { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; text-align: right; }
.rp-vat > div > span:first-child { text-align: left; }
.rp-vat-h { color: #777; }
.rp-by { margin-top: 8px; color: #666; font-size: 12px; }
.pv-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.pv-due { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--red); padding-bottom: 4px; color: var(--red); }
.pv-due span { font: 700 clamp(22px, 2.6vw, 34px) var(--font-d); text-transform: uppercase; letter-spacing: .02em; }
.pv-total { font: 700 clamp(28px, 3.4vw, 46px) var(--font-num); white-space: nowrap; }
.pv-methods { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.pv-methods button { min-height: 48px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--fg); }
.pv-methods button.on { background: var(--accent); color: #fff; box-shadow: none; }
.pv-methods .pv-mixed { flex: none; max-width: 56px; }
.pv-cash { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; min-height: 0; }
.pv-cash[hidden], .pv-cardhint[hidden] { display: none; }
.pv-coins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pv-notes { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 6px; min-height: 0; }
.pv-money { display: grid; place-items: center; border-radius: 8px; overflow: hidden; padding: 2px; transition: transform .06s; }
.pv-money:active { transform: scale(.95); }
.pv-money.coin { aspect-ratio: 1; max-height: 64px; }
.pv-money.note { min-height: 44px; }
.pv-money svg, .pv-money img { width: 100%; height: 100%; object-fit: contain; }
.pv-recv-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.pv-recv-row > span { font-weight: 700; color: var(--muted); }
.pv-recv { font: 700 30px var(--font-num); text-align: right; min-height: 52px; border-radius: 10px; }
.pv-clear { width: 48px; height: 48px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.pv-change { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; }
.pv-change span { font: 700 22px var(--font-d); text-transform: uppercase; color: var(--muted); }
.pv-change b { font: 700 32px var(--font-num); color: var(--accent-2); white-space: nowrap; }
.pv-change.short b { color: var(--red); }
.pv-cardhint { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--muted); font-size: 17px; background: #fff; border-radius: var(--r); }
.pv-cardhint .ic { color: var(--blue); }
.pv-confirm { min-height: 60px; border-radius: var(--r); background: linear-gradient(180deg, #14b57d, var(--accent-2)); color: #fff; font: 700 20px var(--font-d); letter-spacing: .02em; box-shadow: 0 8px 20px rgba(15, 159, 110, .3); }
@media (max-height: 760px) { .pv-coins { grid-template-columns: repeat(6, 1fr); } .pv-money.coin { max-height: 48px; } .pv-recv { font-size: 24px; min-height: 44px; } .pv-confirm { min-height: 50px; } .pv-change b { font-size: 26px; } }
@media (max-width: 900px) { .pv { grid-template-columns: 1fr; } .pv-receipt { display: none; } }
.payview .db { display: grid; grid-template-rows: minmax(0, 1fr); }
.pv-cash { display: flex; flex-direction: column; gap: 8px; }
.pv-notes { grid-auto-rows: auto; }
.pv-money.note { aspect-ratio: 2.05 / 1; min-height: 0; }
.pv-recv-row { margin-top: auto; }
/* platba vpravo: úzký panel = bez náhledu účtenky, jen peníze */
.payview.narrow .pv { grid-template-columns: 1fr; }
.payview.narrow .pv-receipt { display: none; }
.payview.narrow .pv-coins { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.payview.narrow .pv-due span { font-size: 20px; }
.payview.narrow .pv-total { font-size: clamp(26px, 3vw, 36px); }
/* podržení dlaždice: postupně se dokreslí rámeček – je vidět, že se otevírá karta zboží */
.tile.holding { box-shadow: 0 0 0 3px var(--c), var(--sh-2); transform: scale(.98); }
.tile.holding::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #fff; transform-origin: left; animation: holdbar .5s linear forwards; z-index: 3; }
@keyframes holdbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tile:active { transform: none; }

/* úprava namarkovaného řádku (počet, cena, název, sleva) */
.line-edit { display: grid; gap: 8px; padding: 4px 14px 12px; }
.le-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.le-qtybox { display: grid; grid-template-columns: 42px 64px 42px; gap: 4px; }
.le-qtybox button { height: 42px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: 700 20px var(--font-num); }
.le-qty { height: 42px; min-height: 0; text-align: center; font: 700 18px var(--font-num); padding: 4px; }
.le-f { gap: 3px; font-size: 12px; }
.le-f input { min-height: 40px; padding: 6px 10px; }
.le-f input:disabled { background: var(--panel-2); color: var(--muted); }
.le-del { min-height: 40px; background: var(--red-soft); color: var(--red); box-shadow: none; }
.gtile.holding, .ptab.holding { box-shadow: 0 0 0 3px var(--c), var(--sh-2); filter: brightness(1.05); }

/* úprava řádku: jeden kompaktní řádek */
.line-edit { gap: 6px; padding: 2px 10px 8px; }
.line-edit .le-row { grid-template-columns: auto minmax(64px, 1fr) 64px 36px 36px; gap: 6px; align-items: center; }
.le-qtybox { grid-template-columns: 34px 48px 34px; gap: 3px; }
.le-qtybox button { height: 36px; font-size: 18px; }
.le-qty { height: 36px; font-size: 16px; }
.le-f { position: relative; display: block; }
.le-f small { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted-2); pointer-events: none; }
.le-f input { min-height: 36px; height: 36px; padding: 4px 34px 4px 8px; font: 600 15px var(--font-num); text-align: right; }
.le-disc input { padding-right: 20px; }
.le-ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--muted); }
.le-ico.del { background: var(--red-soft); color: var(--red); box-shadow: none; }
.le-name input { min-height: 36px; height: 36px; padding: 4px 10px; }
.le-name[hidden] { display: none; }
.line-edit .le-row { grid-template-columns: auto minmax(0, 1fr) 52px 32px 32px; gap: 5px; }
.le-qtybox { grid-template-columns: 32px 40px 32px; }
.le-ico { width: 32px; }
.le-disc input { padding: 4px 18px 4px 4px; }
.tiles .hint { display: grid; gap: 14px; justify-items: center; }
.tiles .hint .btn { white-space: normal; max-width: 100%; }

/* ===== Skupiny oddělené od zboží: jemný pás (přesně dva řádky) a pod ním čára ===== */
.cats { background: rgba(255, 255, 255, .55); border-radius: 14px; padding: 6px; max-height: 168px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-height: 820px) { .cats { max-height: 148px; } }
.tiles { border-top: 2px solid var(--line-2); padding-top: 10px; margin-top: 2px; }
/* menší dlaždice skupin */
.cats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 56px; gap: 6px; max-height: 130px; }
.gt-img { padding: 3px 6px 1px; }
.gtile .nm { font-size: 11.5px; padding: 3px 5px; }
.gtile .hk { top: 4px; left: 4px; min-width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
@media (max-height: 820px) { .cats { grid-auto-rows: 50px; max-height: 118px; } }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }

/* ===== Skupiny jen jako text: nízká barevná tlačítka, zboží zůstane víc místa ===== */
.cats { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-auto-rows: 40px; gap: 6px; max-height: 98px; padding: 6px; }
.gtile.text { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; background: var(--c); color: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); text-align: left; }
.gtile.text::before { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .06)); }
.gtile.text .hk { position: static; flex: none; min-width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .25); color: #fff; font-size: 13px; box-shadow: none; }
.gtile.text .nm { flex: 1; min-width: 0; background: none; padding: 0; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.gtile.text[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), var(--sh-2); }
.gtile.text[aria-pressed="true"] .hk { background: #fff; color: var(--c); }
@media (max-height: 820px) { .cats { grid-auto-rows: 36px; max-height: 90px; } }
.ptab.all { --c: #37414c; }

/* kontrola ceny (F2): pole hledání v oranžové, ať je jasné, že se nic nepřidává */
.searchbox.pricecheck { box-shadow: 0 0 0 3px var(--amber), var(--sh-1); background: var(--amber-soft); }
.searchbox.pricecheck .ic { color: #b7791f; }
/* nápověda kláves */
.keys-help { display: grid; gap: 8px; }
.keys-help > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.keys-help kbd { font: 700 14px var(--font-num); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 8px; padding: 4px 10px; text-align: center; }

/* upozornění na odvod hotovosti nad seznamem nákupu */
.cashwarn { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: #7a4b00; font-weight: 600; font-size: 13px; }
.cashwarn[hidden] { display: none; }
.cashwarn span { flex: 1; }
.cashwarn .btn { min-height: 32px; padding: 4px 10px; background: #7a4b00; }
.offbar { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 10px; background: #e8eefc; color: #1f3a7a; font-weight: 600; font-size: 13px; }
.offbar[hidden] { display: none; }
.offbar span { flex: 1; }
.offbar .btn { min-height: 32px; padding: 4px 10px; background: #1f3a7a; }
.offbar.err { background: var(--red-soft, #fde8e8); color: #8a1c1c; }
.offbar.err .btn { background: #8a1c1c; }
.off-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.off-item { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.off-item.err { border-color: #e7a3a3; background: #fff6f6; }
.off-row { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.t-low { position: absolute; left: 5px; bottom: 36px; z-index: 2; background: var(--amber); color: #2b1d00; font: 700 10.5px var(--font); padding: 2px 6px; border-radius: 6px; letter-spacing: .02em; }
.t-low.out { background: var(--red); color: #fff; }
.login-hello { display: flex; justify-content: space-between; align-items: baseline; margin: -4px 0 2px; }
.login-hello b { font: 700 22px var(--font-d); color: var(--accent-2); }
.login-hello span { font: 600 22px var(--font-num); color: var(--muted); }
.center { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.gtile.text .nm { white-space: normal; line-height: 1.12; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-tier { position: absolute; right: 5px; top: 30px; z-index: 2; background: #2563c9; color: #fff; font: 700 10.5px var(--font-num); padding: 2px 6px; border-radius: 6px; }
.vat-badge { display: inline-block; min-width: 26px; margin-right: 6px; padding: 1px 5px; border-radius: 5px; background: #6b8fc7; color: #fff; font: 700 11px var(--font-num); text-align: center; }
.tag.blue { background: #e7efff; color: #2563c9; }
td.bad { color: var(--red); font-weight: 700; }
.t-exp { position: absolute; left: 5px; top: 30px; z-index: 2; background: var(--amber); color: #2b1d00; font: 700 10.5px var(--font); padding: 2px 6px; border-radius: 6px; }
.t-exp.out { background: var(--red); color: #fff; }
.date-in { min-width: 130px; }

/* tahák pro prodavače (tisk na A4) */
.cheat { font: 12.5px/1.35 var(--font); color: #111; padding: 8mm; }
.cheat h1 { font: 700 18px var(--font-d); margin: 0 0 6mm; }
.cheat table { width: 100%; border-collapse: collapse; }
.cheat th, .cheat td { border-bottom: 1px solid #ccc; padding: 2.4mm 2mm; vertical-align: top; text-align: left; }
.cheat th { width: 28mm; font-weight: 700; }
.cheat th small { display: block; font-weight: 500; color: #555; }
.cheat td.vi { color: #333; }
.cheat-foot { margin-top: 6mm; font-weight: 600; }
.panel .g3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.alert { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 700; box-shadow: var(--sh-1); }
.alert.bad { background: var(--red-soft); color: var(--red); }
.alert.warn { background: var(--amber-soft); color: #7a4b00; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pstats:empty { display: none; }
.pstats > div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.pstats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pstats b { font: 700 15px var(--font-num); }
.tag.red { background: #fde8e8; color: #b42318; }
.tag.orange { background: #fff1e0; color: #b45309; }

/* Zřízení: výběr typu provozu */
.card.wide { width: min(920px, 100%); }
.setup-pick .kind-h { margin: 6px 0 -4px; font: 650 15px var(--font-d); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.type-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; font: inherit; color: var(--fg); transition: border-color .12s, box-shadow .12s, transform .12s; }
.type-card:hover, .type-card:focus-visible { border-color: var(--accent); box-shadow: var(--sh-2); transform: translateY(-1px); }
.type-card img { grid-row: 1 / 3; width: 48px; height: 48px; object-fit: contain; }
.type-card b { font: 650 15px/1.25 var(--font-d); }
.type-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.setup-type { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); }
.setup-type img { width: 40px; height: 40px; object-fit: contain; }
.setup-type span { display: grid; flex: 1; }
.setup-type small { color: var(--muted); font-size: 12px; }
/* Registrace SuperKasa Cloud */
.cloud-card { display: grid; gap: 12px; width: min(520px, 100%); }
.cloud-points { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.cloud-slug { display: flex; align-items: center; gap: 4px; }
.cloud-slug input { flex: 1; }
.cloud-slug span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.cloud-slug-note { font-weight: 600; }
.cloud-login { margin-top: 16px; }
.sched-head { align-items: center; gap: 8px; }
.sched-tbl th.today, .sched-tbl td.today { background: var(--plum-soft, #f3e7ef); }
.sched-cell { text-align: center; white-space: nowrap; }
.sched-cell button { min-width: 84px; min-height: 36px; border: 1px dashed var(--line, #ccc); background: transparent; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted, #6b655c); }
.sched-cell button.on { border-style: solid; border-color: #5c1a46; background: #5c1a46; color: #fff; }
.sched-cell small { display: block; color: var(--muted, #6b655c); font-size: 11px; margin-top: 2px; }
.sched-print { padding: 10mm; font: 12px var(--font); color: #000; }
.sched-print table { width: 100%; border-collapse: collapse; }
.sched-print th, .sched-print td { border: 1px solid #999; padding: 4px 6px; font-size: 12px; }
.sched-print button { border: 0; background: none; font: inherit; color: #000; }
.owner-page { background: #f4f1ec; margin: 0; min-height: 100vh; }
.owner-wrap { max-width: 560px; margin: 0 auto; padding: 14px 14px 40px; display: grid; gap: 12px; }
.own-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.own-head .sk-top { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.own-card { background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.own-card:first-child { grid-column: 1 / -1; }
.own-card small { color: var(--muted, #6b655c); font-weight: 600; }
.own-card b { font-size: 22px; }
.own-card:first-child b { font-size: 32px; }
.own-card span { color: var(--muted, #6b655c); font-size: 13px; }
.own-sec { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 6px rgba(0,0,0,.06); display: grid; gap: 6px; }
.own-sec h3 { margin: 0 0 4px; font-size: 16px; }
.own-sec .rr { display: flex; justify-content: space-between; gap: 10px; }
.own-bad { box-shadow: 0 0 0 2px #e7a3a3; }
.own-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.own-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.grow-title { flex: 1; margin: 0; }
.own-bar i { display: block; width: 100%; height: var(--h, 2%); background: #5c1a46; border-radius: 4px 4px 0 0; }
.own-bar small { font-size: 10px; color: var(--muted, #6b655c); margin-top: 3px; white-space: nowrap; }
.own-new { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.own-new svg { width: 150px; height: 150px; }
.own-new a { word-break: break-all; }
.r-voucher { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #000; }
.r-ean { display: flex; justify-content: center; margin-top: 6px; }
.r-ean svg { width: 70%; height: auto; }
.voucher-info { display: grid; gap: 8px; margin-top: 10px; }
.cd-ereceipt { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 14px; background: #fff; color: #1d1b17; border-radius: 14px; font-weight: 600; }
.cd-ereceipt svg { width: 132px; height: 132px; }
.ereceipt-page { background: #f4f1ec; min-height: 100vh; margin: 0; padding: 16px; }
.ereceipt-wrap { max-width: 420px; margin: 0 auto; display: grid; gap: 12px; }
.ereceipt-wrap .receipt-doc { width: auto; max-width: none; min-height: 0; margin: 0; box-sizing: border-box; background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
@media print { .ereceipt-page { background: #fff; padding: 0; } .ereceipt-actions { display: none; } .ereceipt-wrap .receipt-doc { box-shadow: none; } }
.ok-text { color: #1b6b3a; font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-weight: 400; color: var(--muted, #6b655c); }
.bill-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line, #e3ded6); border-radius: 12px; display: grid; gap: 10px; }
.bill-box h4 { margin: 0; }
.bill-addons { display: grid; gap: 6px; }
.bill-qr { display: grid; gap: 10px; justify-items: start; }
.bill-qr svg { width: 200px; height: auto; }
.bill-qr .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.bill-qr .seg button { border: 1px solid var(--line, #ddd); background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.bill-qr .seg button.on { background: var(--ink, #1d1b17); color: #fff; }
.bill-rows { display: grid; gap: 4px; }
.bill-rows div { display: flex; gap: 10px; }
.bill-rows span { min-width: 140px; color: var(--muted, #6b655c); }
.cloud-login h2 { margin: 0; font: 650 18px var(--font-d); }
.cloud-login form { display: grid; gap: 12px; }
.cloud-staff { border-top: 1px solid var(--line, #e7e1d8); padding-top: 14px; }
.cloud-staff h3 { margin: 0; font: 650 15px var(--font-d); }
.cloud-shops:empty { display: none; }
.cloud-login .err-text:empty { display: none; }
/* Administrace dodavatele (admin.superkasa.cz) */
.sk-admin-page { min-height: 100vh; }
.ska { width: min(1100px, 100%); margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.ska-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #fff; background: var(--plum, #5c1a46); padding: 10px 14px; border-radius: 16px; }
.ska-head .sk-top { margin: 0; }
.ska-head .grow { flex: 1; }
.ska-tools { display: grid; gap: 10px; }
.ska-tools input[type="search"] { width: 100%; font-size: 16px; }
.ska-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ska-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); }
.ska-card { width: auto; gap: 8px; padding: 18px; }
.ska-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ska-card-top h2 { margin: 0; font: 650 18px var(--font-d); }
.ska-card-top a { font-size: 13px; overflow-wrap: anywhere; }
.ska-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line, #e7e1d8); white-space: nowrap; }
.ska-badge.ok { background: #dcf3e6; color: #11633a; }
.ska-badge.warn { background: #fff1d6; color: #7a4b00; }
.ska-badge.bad { background: #fde2e1; color: #9a1c14; }
.ska-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
.ska-row > span { color: var(--muted); }
.ska-row > div { overflow-wrap: anywhere; }
.ska-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ska-code { font: 700 32px/1.2 var(--font-d); letter-spacing: .06em; text-align: center; margin: 8px 0; user-select: all; }
.cloud-slug-note.ok { color: var(--accent-2); }
.cloud-slug-note.bad { color: #b42318; }

/* Spropitné */
.tip-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tip-sum > div { display: grid; gap: 2px; }
.tip-sum small { color: var(--muted); font-size: 12.5px; }
.tip-sum b { font: 700 20px var(--font-num); }
.tip-sum p { grid-column: 1 / -1; margin: 0; color: var(--accent-2); }
.tip-sum.over p { color: #b42318; font-weight: 600; }
.quick-tips { display: flex; gap: 6px; flex-wrap: wrap; }
.ctl-flag td { background: #fff4f2; }
.rec-list { display: grid; gap: 6px; }
.rec-row { display: grid; grid-template-columns: 1fr 90px 36px 40px; gap: 6px; align-items: center; }
.rec-row span { display: grid; }
.rec-row small { color: var(--muted); }
.rec-sum { font-weight: 650; color: var(--accent-2); margin: 0; }
.res-day { display: flex; align-items: center; gap: 8px; }
.res-day b { text-transform: capitalize; }
.res-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.res-row { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.res-row.cancelled, .res-row.noshow { opacity: .55; }
.res-row.done { background: var(--accent-soft); }
.res-main { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; font: inherit; color: var(--fg); cursor: pointer; padding: 4px; }
.res-main span { display: grid; }
.res-main small { color: var(--muted); }
.res-time { font: 700 18px var(--font-num); min-width: 56px; }
.res-act { display: flex; gap: 4px; flex-wrap: wrap; }
.cust-list { display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.cust-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); font: inherit; color: var(--fg); cursor: pointer; }
.cust-row:hover { border-color: var(--accent); }
.cust-row small { color: var(--muted); }
.cust-row span { font-weight: 650; color: var(--accent-2); }
.cust-now { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); }
.cust-now > div:first-child { display: grid; }
.cust-new summary { cursor: pointer; font-weight: 600; color: var(--accent-2); }
.cust-new { display: grid; gap: 8px; }
.cust-card { display: grid; justify-items: center; gap: 4px; padding: 6mm 2mm; text-align: center; }
.cust-card strong { font-size: 18px; }
.cust-card .ean { width: 60mm; height: auto; }
.ls-loyalty { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-2); }
.ctl-flag .tag { margin-left: 6px; }

/* Docházka a placené doplňky */
.att-btn { margin-top: 4px; }
.att-present, .att-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.att-chip { padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; }
.att-body { display: grid; gap: 10px; }
.att-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.att-total { font: 700 18px var(--font-num); }
.att-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.att-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.att-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.att-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.att-row { cursor: pointer; }
.att-row:hover { background: var(--panel-2); }
.att-row.warn td { background: var(--amber-soft); }
.att-warn { color: #9a5b00; font-weight: 600; }
.addon-tag { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: #f3e8f0; color: var(--sk-plum, #5c1a46); font-size: 11.5px; font-style: normal; font-weight: 650; }
.addon-list { display: grid; gap: 8px; }
.addon-list h4 { margin: 6px 0 0; font: 650 15px var(--font-d); }
.addon-card { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.addon-card.on { border-color: var(--accent); background: var(--accent-soft); }
.addon-card > div:first-child { display: grid; gap: 2px; }
.addon-card small { color: var(--muted); font-size: 12.5px; }
.addon-price { display: grid; justify-items: end; align-content: start; white-space: nowrap; }
.addon-price span { color: var(--muted); font-size: 12px; }
.addon-price i { font-style: normal; font-size: 12px; font-weight: 650; color: var(--accent-2); }

/* Zřízení: návrh skupin podle popisu */
.ai-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(135deg, #fbf4f8, #f6f1ea); border: 1px solid #ead9e3; }
.ai-box b { font: 650 16px/1.25 var(--font-d); color: var(--sk-plum, #5c1a46); }
.ai-box small { color: var(--muted); font-size: 13px; }
.ai-row { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.ai-row textarea { flex: 1; font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; min-height: 48px; resize: vertical; }
.ai-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 159, 110, .18); }
.ai-row .btn { flex: none; white-space: nowrap; }
.setup-pick .pick-h { margin: 8px 0 -6px; font: 650 17px var(--font-d); }
.prop-src { margin: 0; display: grid; gap: 2px; font-weight: 600; color: var(--accent); }
.prop-src.offline { color: var(--blue); }
.prop-src small { color: var(--muted); font-weight: 500; }
.prop-warn { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--amber-soft); color: #7a5300; font-size: 13.5px; }
.prop-notes { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.prop-base { max-width: 420px; }
.prop-base small { font-weight: 500; color: var(--accent); }
.prop-list { display: grid; gap: 8px; }
.prop-group { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--gc, var(--line-2)); border-radius: var(--r); background: var(--panel); }
.prop-group.off { opacity: .55; }
.prop-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prop-head .prop-name { flex: 1 1 180px; width: auto; font-weight: 650; }
.prop-head .prop-vat { width: 86px; flex: none; }
.prop-head .prop-vat.unsure { border-color: var(--amber); }
.prop-head input[type="color"] { width: 44px; flex: none; }
.prop-art { flex: none; width: 46px; height: 46px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); cursor: pointer; }
.prop-art img { width: 100%; height: 100%; object-fit: contain; }
.prop-unsure { padding: 2px 8px; border-radius: 99px; background: var(--amber-soft); color: #7a5300; font-size: 12px; font-weight: 650; }
.prop-page { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.prop-tr { color: var(--muted); padding-left: 82px; margin-top: -4px; }
.art-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; padding: 6px; border-radius: var(--r-sm); background: var(--panel-2); }
.art-pick button { aspect-ratio: 1; padding: 4px; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--panel); cursor: pointer; }
.art-pick button.on { border-color: var(--accent); }
.art-pick img { width: 100%; height: 100%; object-fit: contain; }
.prop-items { display: grid; gap: 4px; padding-left: 28px; }
.prop-item { display: grid; grid-template-columns: 1fr 96px 70px 40px; gap: 6px; }
.prop-item input, .prop-item select { min-height: 38px; padding: 6px 8px; }
.prop-item .btn { min-height: 38px; padding: 0; }
.prop-add { justify-self: start; }
.prop-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prop-foot .prop-addgroup { width: auto; min-width: 220px; }
.prop-actions { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 640px) {
  .ai-row { flex-direction: column; }
  .prop-tr { padding-left: 0; }
  .prop-items { padding-left: 0; }
  .prop-item { grid-template-columns: 1fr 80px 62px 38px; }
}
.features-panel .feature-row { align-items: flex-start; }
.features-panel .feature-row span { display: grid; gap: 1px; }
.features-panel .feature-row small { color: var(--muted); font-size: 12.5px; }

/* Licence a balíčky */
.lic-now { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); border-left: 4px solid var(--line-2); }
.lic-now.ok { border-left-color: var(--accent); }
.lic-now.warn { border-left-color: var(--amber); background: var(--amber-soft); }
.lic-now.bad { border-left-color: var(--red); background: var(--red-soft); }
.lic-now small { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.plan-card { display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.plan-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan-card b { font: 650 16px var(--font-d); }
.plan-card small { font-size: 12.5px; line-height: 1.35; }
.plan-feats { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-feats span { font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: var(--panel-2); color: var(--fg); }
.lic-key { width: 100%; font: 12px/1.4 ui-monospace, Consolas, monospace; resize: vertical; word-break: break-all; }
.feature-row.locked { opacity: .65; }
.lock-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--amber); }
.lock-note { display: flex; align-items: center; gap: 6px; color: var(--amber); font-size: 13px; margin: 0; }

/* Verze a aktualizace (Správa → Systém) */
.update-panel .lic-now { margin: 8px 0 2px; }
.upd-log { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.4; }
.update-panel .progress { margin: 6px 0 4px; }

/* Licence: lišta na pokladně, tvůj obor */
.license-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; border-radius: var(--r); margin: 0 0 8px; }
.license-bar.warn { background: var(--amber-soft); color: #7a4b00; border: 1px solid var(--amber); }
.license-bar.blocked { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
.plan-card.mine { background: var(--accent-soft); }
.mine-tag { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); }
.main.has-bar { grid-template-rows: auto minmax(0, 1fr); }
.main.has-bar > .license-bar { grid-column: 1 / -1; margin: 0; }
.plan-price { display: grid; gap: 1px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-price b { font: 700 20px var(--font-num); }
.plan-price span, .plan-price small { color: var(--muted); font-size: 12px; }
.type-card .type-price { grid-column: 2; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.setup-trial { margin: -6px 0 0; font-weight: 600; color: var(--accent); }

/* Značka SuperKasa */
:root { --sk-plum: #5c1a46; --sk-gold: #e2b48a; }
.mark.sk { background: none; padding: 0; overflow: hidden; box-shadow: 0 4px 12px rgba(92, 26, 70, .35); }
.mark.sk img { width: 100%; height: 100%; display: block; }
.sk-word { font: 750 22px/1 var(--font-d); letter-spacing: -.02em; }
.sk-word b { color: var(--sk-plum); font-weight: inherit; }
.sk-word i { color: var(--sk-gold); font-style: normal; }
.sk-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.sk-top .sk-word { color: #fff; font-size: 26px; }
.sk-top .sk-word b { color: #fff; }
.r-brand { margin-top: 6px; text-align: center; font-size: 10px; opacity: .7; }
.lic-vendor { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); border-left: 4px solid var(--sk-plum); }
.lic-vendor b { color: var(--sk-plum); }
.lic-vendor small { color: var(--muted); }
.net-help { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); }
.net-help h4 { margin: 6px 0 0; font-size: 14px; }
.net-help ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.net-help input { width: 100%; font: 12px ui-monospace, Consolas, monospace; }

/* Velikost zobrazení podle obrazovky (--ui-z nastaví util.js): celá stránka se zmenší a vyplní okno. */
body { zoom: var(--ui-z, 1); width: calc(100vw / var(--ui-z, 1)); height: calc(100vh / var(--ui-z, 1)); }
@media print { body { zoom: 1 !important; width: auto !important; height: auto !important; } }
.btn.saved { background: var(--accent); color: #fff; }

/* Skrytý vzor účtenky pro změření délky (stejné rozměry jako při tisku). */
.print-probe { position: fixed; left: -10000px; top: 0; width: 64mm; visibility: hidden; pointer-events: none; zoom: 1; }
.print-probe[data-paper="58"] { width: 40mm; }
.print-probe .receipt-doc, .print-probe .report { max-width: none; font-size: 11px; }
.print-probe .r-qr .qr-svg { width: 38mm; }
.print-probe[data-paper="58"] .r-qr .qr-svg { width: 34mm; }
@media print { body[data-print="receipt"][data-paper="58"] .r-qr .qr-svg { width: 34mm; } }

/* Náhled role pokladní tiskárny: cenovky pod sebou jako na pásku. */
.receipt-roll { flex-direction: column; flex-wrap: nowrap; align-items: center; padding: 10px; background: #f3f1ee; border-radius: var(--r); width: max-content; }

/* Tisk seznamů (objednávka, příjem, inventura) na roli pokladní tiskárny – stejně jako účtenka. */
.print-probe .order-print, body[data-print="receipt"] .order-print { font: 10.5px/1.35 var(--font); color: #000; padding: 0; }
.print-probe .order-print h2, body[data-print="receipt"] .order-print h2 { font-size: 13px; margin: 0 0 4px; }
.print-probe .order-print p, body[data-print="receipt"] .order-print p { margin: 0 0 4px; }
.print-probe .order-print table, body[data-print="receipt"] .order-print table { width: 100%; border-collapse: collapse; }
.print-probe .order-print th, .print-probe .order-print td, body[data-print="receipt"] .order-print th, body[data-print="receipt"] .order-print td { padding: 2px 2px; border-bottom: 0.2mm dotted #000; background: none; text-align: left; vertical-align: top; }
.print-probe .order-print .r, body[data-print="receipt"] .order-print .r { text-align: right; white-space: nowrap; }
.print-probe .order-print small, body[data-print="receipt"] .order-print small { display: none; }
/* Objednávka na roli: jen název, sklad a kolik objednat. */
.print-probe .reorder th:nth-child(2), .print-probe .reorder td:nth-child(2), .print-probe .reorder th:nth-child(4), .print-probe .reorder td:nth-child(4), .print-probe .reorder th:nth-child(5), .print-probe .reorder td:nth-child(5) { display: none; }
@media print { body[data-print="receipt"] .reorder th:nth-child(2), body[data-print="receipt"] .reorder td:nth-child(2), body[data-print="receipt"] .reorder th:nth-child(4), body[data-print="receipt"] .reorder td:nth-child(4), body[data-print="receipt"] .reorder th:nth-child(5), body[data-print="receipt"] .reorder td:nth-child(5) { display: none; } }
.more-sizes summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 4px 0; }

/* Etiketa otočená o 90° (tiskárna podává etiketu bokem): stránka vyšší než široká, cenovka v ní otočená. */
.roll-page.rot { position: relative; overflow: hidden; }
.roll-page.rot > .lbl { position: absolute; top: 0; left: 0; width: var(--lw); height: var(--lh); transform-origin: top left; transform: translateX(var(--w)) rotate(90deg); }

/* Vyladění tisku na etiketové tiskárně (jen při tisku – náhled zůstává ve skutečné velikosti). */
@media print {
  body[data-print="labels"] .rolls.cal .roll-page { zoom: var(--sc, 1); margin: var(--oy, 0) 0 0 var(--ox, 0); overflow: visible; }
}
.cal-box { display: grid; gap: 6px; }
.cal-row { display: grid; grid-template-columns: 1fr auto 64px auto; align-items: center; gap: 6px; font-size: 13px; }
.cal-row b { text-align: center; font: 600 13px var(--font-num); }

/* Cenovka na roli pokladní tiskárny: úměrně zvětšená na šířku role (--z), posun pro vyladění (--ox, --oy). */
/* Buňka cenovky na roli: zvětšené rozměry, uvnitř cenovka zvětšená transformací (spolehlivé i při tisku). */
.roll-cell { width: var(--cw); height: var(--ch); position: relative; overflow: hidden; flex: none; }
.roll-cell > .roll-page { transform: scale(var(--z, 1)); transform-origin: top left; }
@media print {
  body[data-print="labels"] .receipt-roll .roll-cell { left: var(--ox, 0); top: var(--oy, 0); }
}

/* Zboží a sklad: záložky nahoře (seznam, příjem, inventura, expirace, pohyby). */
.ps-top { padding: 12px 20px 0; }
.ps-tabs { display: inline-flex; flex-wrap: wrap; }

.direct-print { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: start; padding: 10px 12px; border-radius: var(--r); background: var(--amber-soft); font-size: 13px; }
.direct-print.on { background: var(--accent-soft); }
.direct-print .btn { grid-column: 1 / -1; justify-self: start; }

.agent-pane { display: grid; gap: 8px; }
.agent-pane .btn { justify-self: start; }
.agent-status { display: grid; gap: 2px; }
.agent-status .ok { color: var(--accent); }
.agent-status .bad { color: var(--amber); }

.agent-pick { display: grid; gap: 6px; }
.agent-pick.hidden { display: none; }
.row.wrap { flex-wrap: wrap; }

.gap-in { max-width: 120px; text-align: right; }

.raster-preview { display: grid; gap: 10px; justify-items: center; padding: 8px; }
.raster-preview canvas { width: 72mm; max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }

/* Sdílená databáze zboží – velký přepínač pro dotykovou obrazovku (celý řádek je klepací plocha). */
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 10px 0; border: 1px solid var(--line, #ddd); border-radius: 14px; min-height: 64px; cursor: pointer; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted, #777); }
input[type="checkbox"].big-switch { appearance: none; -webkit-appearance: none; flex: none; width: 58px; height: 34px; border-radius: 17px; background: #c9c4bd; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
input[type="checkbox"].big-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .15s; }
input[type="checkbox"].big-switch:checked { background: var(--accent, #1f9d6b); }
input[type="checkbox"].big-switch:checked::after { left: 27px; }
.shared-list { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.shared-status { display: grid; gap: 6px; margin-top: 6px; }
.shared-status .btn { justify-self: start; min-height: 48px; }

/* Skenování fotoaparátem (mobil, tablet) */
.with-cam { display: flex; gap: 8px; align-items: center; }
.with-cam > input { flex: 1; min-width: 0; }
.cam-btn { min-width: 52px; min-height: 48px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cam-in { flex: none; width: 52px; height: 48px; border: 0; border-radius: 12px; background: var(--sk-plum, #5c1a46); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; cursor: pointer; }
.hidden-file { display: none; }
.cam-box { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 14px; overflow: hidden; }
.cam-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; left: 5%; right: 5%; top: 25%; bottom: 25%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.cam-status { text-align: center; font-weight: 600; margin: 10px 0; }

/* ---- Hospoda: stoly a účty na stůl ---- */
.tools { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tool.on { background: var(--accent-soft); color: var(--accent-2); }
.tab-name { display: inline-flex; align-items: center; gap: 6px; font: 650 18px var(--font-d); color: var(--fg); padding: 2px 6px; margin: -2px -6px; border-radius: 8px; }
.tab-name:hover { background: var(--panel-2); }
.tab-name .ic:last-child { color: var(--muted-2); }
.tab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tab-head b { font: 700 14px var(--font-num); color: var(--fg); }
.it.tabline .it-main { padding-left: 26px; position: relative; }
.it.tabline .it-main::before { content: ""; position: absolute; left: 12px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.it.tabline.link .it-main { opacity: .62; }
.it.tabline.link .it-main::before { background: var(--muted-2); }
.it.tabline .it-main:disabled { opacity: .62; }
.it.new { background: #fffaf0; }
.it.new.sel { background: #fff3da; box-shadow: inset 3px 0 0 var(--amber); }
.it-note { color: var(--amber); font-style: normal; font-weight: 600; }
.tab-sep { display: flex; align-items: center; gap: 6px; padding: 7px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9a6a00; background: var(--amber-soft); border-bottom: 1px solid #f3dfae; }
.tab-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 10px 26px; }
.tab-acts button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; }
.tab-acts button:hover { background: var(--panel-2); }
.tab-acts .del { color: var(--red); }
.le-note { display: flex; align-items: center; gap: 6px; color: var(--amber); }
.pay.with-order { grid-template-columns: 76px minmax(0, .8fr) minmax(0, 1fr); }
.pay .go.order { background: linear-gradient(180deg, #3a7cf0, var(--blue)); box-shadow: 0 8px 20px rgba(47, 111, 237, .3); }
.pay .go.order b { font-size: 18px; }
.pay .go[hidden] { display: none; }

/* Obrazovka stolů: přes celou pokladnu (vlevo dlaždice i vpravo nákup) */
.tablesview .db { padding: 0; overflow: auto; }
.tables { display: grid; gap: 14px; padding: 14px 18px 22px; }
.tables-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 1; padding: 4px 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tables-bar .sp { flex: 1; }
.tables-bar .btn { min-height: 44px; }
.tables-sum { color: var(--muted); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--ink-2); color: #fff; box-shadow: none; }
.tables-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r); background: var(--amber-soft); color: #7a5300; font-weight: 600; }
.tables-h { margin: 6px 0 0; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tt-grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tt { position: relative; display: grid; align-content: start; gap: 4px; min-height: 108px; padding: 14px 14px 12px; text-align: left; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.tt:hover { box-shadow: inset 0 0 0 1px #c9c0b2, var(--sh-2); }
.tt.holding { transform: scale(.97); }
.tt-name { display: flex; align-items: center; gap: 6px; font: 650 19px var(--font-d); }
.tt-free { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.tt-sum { font: 700 22px var(--font-num); }
.tt small { color: rgba(255, 255, 255, .78); font-size: 12px; }
.tt.busy { background: linear-gradient(160deg, #13a774, var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(15, 159, 110, .28); }
.tt.busy.named { background: linear-gradient(160deg, #3d4655, var(--ink-3)); box-shadow: 0 6px 16px rgba(30, 30, 30, .22); }
.tt.cur { box-shadow: inset 0 0 0 2px var(--blue); }
.tt-cnt { position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #fff; color: var(--accent-2); font: 700 13px/24px var(--font); font-style: normal; text-align: center; }
.tt-grid.small .tt { min-height: 78px; padding: 10px 12px; }
.tt-grid.small .tt-name { font-size: 16px; }
.tt-grid.small .tt-sum { font-size: 17px; }

/* Rozdělení účtu */
.sp-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; margin: 6px 0 12px; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px 84px 46px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.sp-row.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.sp-name { display: grid; text-align: left; gap: 2px; padding: 6px 4px; }
.sp-name span { font-weight: 650; }
.sp-name small { color: var(--muted); }
.sp-row .den-btn { height: 46px; }
.sp-q { text-align: center; font: 700 17px var(--font-num); }
.tabs-note { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r); background: var(--amber-soft); color: #7a5300; font-weight: 600; }
@media (max-width: 720px) {
  .tt-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .tt { min-height: 92px; padding: 10px; }
  .tables { padding: 10px; }
}
.station-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.station-row > span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.back.pass { pointer-events: none; }
.back.pass > .dlg { pointer-events: auto; }

/* Veřejná ukázka: PINy na přihlášení, štítek v liště */
.demo-pins { display: grid; gap: 6px; margin: 2px 0 6px; }
.demo-pins p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.demo-pin { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px #bfe8d6; text-align: left; }
.demo-pin:hover { background: #d4f0e4; }
.demo-pin small { color: var(--muted); font-weight: 600; }
.train.demo { background: rgba(47, 111, 237, .18); color: #a9c4ff; box-shadow: inset 0 0 0 1px rgba(47, 111, 237, .45); }
.train.demo i { background: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .3); }

/* Upozornění po obnově ze zálohy – pod sebou, velké tlačítko pro dotykovou obrazovku. */
.restore-note { display: grid; gap: 8px; }
.restore-note ul { margin: 0; padding-left: 20px; }
.restore-note .btn { justify-self: start; min-height: 48px; }

/* Past na roboty v registraci cloudu – mimo obrazovku, ne display:none (některé roboty skrytá pole vynechají). */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Chybějící offline doklady (audit A2) */
.off-issues h4 { margin: 0 0 4px; }
.off-issue { align-items: center; gap: 8px; }
.off-issue.missing b { color: var(--red); }
.off-issue .btn { margin-left: 8px; }

/* Souhlas s podmínkami v registraci cloudu (audit F7) */
.cloud-terms { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0 12px; }
.cloud-terms input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.cloud-terms a { color: inherit; text-decoration: underline; }


/* ===== Přístupnost (audit F16–F19) ===== */
/* F17: tmavší zelená (bílé písmo ≥ 4,5:1), plný modrý obrys fokusu, okraje polí ≥ 3:1. */
:root { --accent: #0b7a55; --accent-2: #096847; --line-2: #958c80; --muted: #6b645a; }
button:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
.btn.red { background: #c42b31; }
/* F16: světlé barvy skupin s tmavým písmem. */
.gtile.text.dark-text, .ptab.dark-text { color: #1d1b17; text-shadow: none; }
.gtile.text.dark-text .hk { background: rgba(0, 0, 0, .14); color: #1d1b17; }
.tile.dark-text .nm { color: #1d1b17; text-shadow: none; }
/* F18: na dotykové obrazovce cíle aspoň 44 px. */
@media (pointer: coarse) {
  .btn.sm { min-height: 44px; padding: 8px 14px; }
  .le-qtybox { grid-template-columns: 48px 64px 48px; }
  .le-qtybox button { height: 46px; }
  .cats { grid-auto-rows: 44px; max-height: 104px; }
}
/* F19: bez animací pro toho, kdo je má v systému vypnuté; blikající tečky stojí. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Přihlášení účtem na novém zařízení */
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
.pair-links { margin-top: 6px; gap: 12px; flex-wrap: wrap; }
.pair-code-box { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pair-code-box[hidden] { display: none; }
pre.cmd { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 14px var(--font-num, monospace); user-select: all; }

/* Skoro čtvercové displeje (rozložený Galaxy Fold, malý tablet) a telefon na šířku: zboží vlevo, nákup vpravo,
   bez posouvání stránky. Telefon na výšku (užší než 3:4) zůstává v jednom sloupci. */
@media (min-width: 640px) and (max-width: 900px) and (min-aspect-ratio: 3/4) {
  body { overflow: hidden; }
  .pos { height: 100%; min-height: 0; }
  .main { grid-template-columns: minmax(0, 1fr) minmax(290px, 42%); }
  .left { grid-template-rows: 56px auto minmax(0, 1fr) auto; }
}

/* Telefon na výšku (i Flip a vnější displej Foldu): stránka se posouvá, ale částka a Zaplatit zůstávají dole
   na displeji, ať se k placení nemusí rolovat. Dlaždice zboží o něco nižší, ať je víc vidět i nákup. */
@media (max-width: 639px), (max-width: 900px) and (max-aspect-ratio: 149/200) {
  .right { overflow: visible; }
  .pay { position: sticky; bottom: 0; z-index: 6; background: var(--panel); padding-top: 8px; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 -10px 18px -12px rgba(15, 20, 26, .35); }
  .left { grid-template-rows: 56px auto 330px; }
}

/* Nejužší telefony (do 430 px, vnější displej Foldu): v horní liště jen tečka „zkušební režim“ místo nápisu
   a menší vlajky, ať se nic nepřekrývá. */
@media (max-width: 430px) {
  .bar .train { padding: 6px; font-size: 0; letter-spacing: 0; gap: 0; }
  .bar .langs .flag, .bar .langs svg { width: 22px; height: auto; }
  .bar .langs button { padding: 2px 3px; }
}

/* Správa na telefonu: nadpis s filtry (datum, období, tlačítka) se zalomí, nic nepřetéká přes okraj. */
@media (max-width: 640px) {
  .atitle { flex-wrap: wrap; row-gap: 8px; }
  .atitle .row { flex-wrap: wrap; }
  .atitle input[type="date"] { min-width: 0; flex: 1 1 130px; }
}

