/* ============================================================
   gaffer — půjčovna filmové techniky
   Přehledný e-shop: světlá pracovní plocha, bílé karty, tmavé
   plochy pro hero a patičku. Monochrom + jediný barevný prvek:
   kelvinová škála (3200K → 5600K), kterou gaffer řeší každý den.
   Používá se úsporně — logo, hrana hera, upozornění.
   Písma: Schibsted Grotesk (text) · DM Mono (ceny, technická data)
   ============================================================ */

:root {
  color-scheme: light;

  --paper:    #f3f2ef;   /* plocha stránky */
  --surface:  #ffffff;   /* karty, panely */
  --raised:   #fbfaf8;   /* jemně odsazené plochy */
  --ink:      #161512;
  --ink-70:   #55534c;
  --ink-45:   #8c8a82;
  --line:     #e3e1db;
  --line-2:   #efedE8;
  --dark:     #121110;   /* hero, patička */

  /* kelvinová škála — jediná barva v celé identitě */
  --k-warm:   #d1873a;
  --k-mid:    #f4f1ea;
  --k-cool:   #7fa9d6;
  --kelvin: linear-gradient(90deg, #e9a94f 0%, var(--k-mid) 50%, var(--k-cool) 100%);

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --r:   10px;
  --r-s: 7px;

  --side: 244px;
  --pad:  clamp(16px, 2.4vw, 34px);

  --shadow: 0 1px 2px rgba(22,21,18,.05), 0 6px 18px rgba(22,21,18,.045);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:    #131211;
  --surface:  #1b1a18;
  --raised:   #222020;
  --ink:      #f2f0ec;
  --ink-70:   rgba(242,240,236,.66);
  --ink-45:   rgba(242,240,236,.42);
  --line:     #2c2a27;
  --line-2:   #242220;
  --dark:     #0d0c0b;
  --k-warm:   #e9a94f;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- značka ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 2px; }
.logo-word {
  font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ink);
}
.logo-word i { font-style: normal; color: var(--k-warm); }
.logo-sub {
  font-family: var(--mono); font-size: 8px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-45); white-space: nowrap;
}
.kelvin-rule { height: 2px; background: var(--kelvin); border-radius: 2px; }

/* ---------- horní lišta ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 24px);
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { width: calc(var(--side) - var(--pad)); flex: none; }

.search-wrap { position: relative; flex: 1; max-width: 400px; }
.search-wrap > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-45); pointer-events: none; }
.search {
  width: 100%; padding: 10px 14px 10px 38px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); font-family: var(--font); font-size: 14px;
}
.search::placeholder { color: var(--ink-45); }
.search:focus { outline: none; border-color: var(--ink-45); }

.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a {
  font-size: 12px; font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-70);
}
.topnav a:hover { color: var(--ink); }

.icon-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); position: relative;
}
.icon-btn:hover { background: var(--line-2); }
/* přepínač režimu — vždy jen jedna ikona (ta, kam se přepne) */
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }

.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--r-s);
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--ink-70); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-45); }
.btn.light { background: rgba(255,255,255,.15); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.26); }
.btn.small { height: 36px; padding: 0 14px; font-size: 11px; }
.btn[disabled] { opacity: .4; cursor: default; pointer-events: none; }

/* ---------- rozvržení ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); align-items: start; }

.sidebar {
  position: sticky; top: 63px;
  padding: 24px var(--pad) 40px;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 63px); overflow-y: auto;
}
.side-title {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: 10px;
}
.side-list, .side-brands { display: grid; gap: 1px; margin-bottom: 26px; }
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-s);
  font-size: 13.5px; color: var(--ink-70); text-align: left;
  transition: background .12s, color .12s;
}
.side-item svg { flex: none; color: var(--ink-45); }
.side-item .count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); }
.side-item:hover { background: var(--line-2); color: var(--ink); }
.side-item.active { background: var(--ink); color: var(--paper); font-weight: 500; }
.side-item.active svg, .side-item.active .count { color: rgba(255,255,255,.6); }
.side-brands .side-item { padding: 6px 10px; font-size: 13px; }

.side-help { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px; }
.side-help p { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; margin-bottom: 10px; }
.side-help a { font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.side-help a:hover { gap: 10px; }

.main { min-width: 0; }

/* ---------- výběr techniky: bento mřížka ----------
   Vizuální systém: jemné filmové zrno na tmavých plochách, pomalu
   plující světelné pruhy v claim dlaždici a kelvinový nádech, který
   se u kategorií „rozsvítí" při najetí. */

/* zrno — jeden sdílený overlay, používá se přes ::after */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
}

.showcase {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: var(--pad) var(--pad) 0;
}
.tile {
  position: relative; border-radius: var(--r); overflow: hidden;
  text-align: left; min-height: 244px; display: flex; flex-direction: column;
  isolation: isolate;
}

/* ---- claim ---- */
.tile-claim {
  grid-column: span 2; color: #fff;
  background: radial-gradient(120% 130% at 12% 0%, #241f18 0%, #16130f 42%, #0e0c0a 100%);
  padding: clamp(26px, 2.9vw, 40px); justify-content: center; gap: 15px;
}
.tile-claim > * { position: relative; z-index: 2; }
.beam {                                   /* plující světelné pruhy */
  position: absolute; inset: -30% -10%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 34%, rgba(255,224,178,.13) 46%, transparent 58%),
    linear-gradient(96deg,  transparent 52%, rgba(148,190,235,.09) 62%, transparent 72%);
  animation: beam-drift 19s ease-in-out infinite alternate;
}
@keyframes beam-drift {
  from { transform: translateX(-5%) rotate(-1.4deg); }
  to   { transform: translateX(5%)  rotate(1.4deg); }
}
.claim-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.52);
}
.tile-claim h1 {
  font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.042em;
  line-height: 1; text-transform: uppercase;
}
.tile-claim h1 span {                      /* druhý řádek jako obrys */
  display: block; color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255,.62);
}
.tile-claim p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.62); max-width: 33ch; }
.tile-claim .btn { align-self: flex-start; margin-top: 2px; background: #fff; color: #14120f; }
.tile-claim .btn:hover { background: rgba(255,255,255,.84); }
.claim-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; z-index: 4; }

/* dvě cesty z hera: půjčit si techniku, nebo si zavolat osvětlovače */
.claim-cta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 3px; }
.claim-cta .btn { margin-top: 0; }
.btn.light, .tile-claim .btn.light {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn.light:hover, .tile-claim .btn.light:hover { background: rgba(255,255,255,.22); }

/* ---- kategorie ---- */
.tile-cat {
  background: var(--surface); border: 1px solid var(--line); padding: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tile-cat::before {                        /* kelvinový nádech — „rozsvítí se" */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(74% 60% at 50% 120%, rgba(233,169,79,.15), transparent 72%),
    radial-gradient(54% 46% at 86% -12%, rgba(127,169,214,.10), transparent 74%);
  transition: opacity .3s, transform .4s;
}
.tile-cat:hover { border-color: var(--ink-45); box-shadow: 0 10px 28px rgba(22,21,18,.10); transform: translateY(-3px); }
.tile-cat:hover::before { opacity: 1; transform: scale(1.08); }
.tile-cat > * { position: relative; z-index: 1; }
.tile-top { display: flex; flex-direction: column; gap: 2px; }
.tile-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.025em; }
.tile-count { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); }
.tile-shot { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 0 4px; }
.tile-shot img {
  max-height: 100%; max-width: 78%; object-fit: contain;
  /* Fotky pochází z osmi různých zdrojů a většina má bílé pozadí.
     multiply bílou vyřízne, takže produkt sedí přímo na dlaždici
     místo aby v ní svítil bílý obdélník. */
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(.88);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.tile-cat:hover .tile-shot img { transform: scale(1.07) translateY(-2px); }
.tile-shot svg { width: 54px; height: 48px; color: var(--ink-45);
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile-arrow { position: absolute; right: 15px; bottom: 15px; z-index: 2;
  color: var(--ink-45); transition: transform .2s, color .2s; }
.tile-cat:hover .tile-arrow { color: var(--ink); transform: translateX(4px); }

:root[data-theme="dark"] .tile-cat::before { opacity: .3; }
/* v tmavém režimu by multiply fotku spolkl — dostane světlou podložku */
:root[data-theme="dark"] .tile-shot {
  background: #f2f0ec; border-radius: 8px; padding: 10px;
  margin: 6px 0 2px;
}

/* ---------- lišta termínu ---------- */
.termbar {
  position: sticky; top: 63px; z-index: 40;
  margin: 12px var(--pad) 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 16px;
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.termbar .field { display: grid; gap: 4px; }
.termbar label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-45);
}
.termbar input[type="date"] {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 9px 11px; font-family: var(--font); font-size: 14px; color: var(--ink);
}
.termbar input:focus { outline: none; border-color: var(--ink-45); }
.term-state { margin-left: auto; display: flex; align-items: center; gap: 16px; }
#termNd { font-family: var(--mono); font-size: 12px; color: var(--ink-70); }
#termNd b { color: var(--ink); }
#termNote { font-family: var(--mono); font-size: 11.5px; color: var(--ink-70); }
#termNote b { color: var(--ink); }

/* ---------- sekce ---------- */
.section { padding: 4px var(--pad) var(--pad); }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.section-head h2 { font-size: clamp(18px, 2vw, 23px); font-weight: 700; letter-spacing: -.03em; }
.section-head .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-45); }
.section-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-clear { font-family: var(--mono); font-size: 10.5px; color: var(--ink-70);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.chip-clear:hover { border-color: var(--ink-45); color: var(--ink); }

/* ---------- produkty ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 13px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { border-color: var(--ink-45); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4 / 3; background: var(--raised);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; border-bottom: 1px solid var(--line-2);
}
.card-media img {
  max-width: 76%; max-height: 76%; object-fit: contain;
  mix-blend-mode: multiply;                 /* stejné ošetření jako u dlaždic */
  filter: contrast(1.05) saturate(.9);
  transition: transform .3s;
}
:root[data-theme="dark"] .card-media { background: #f2f0ec; }
:root[data-theme="dark"] .cart-thumb, :root[data-theme="dark"] .modal .card-media { background: #f2f0ec; }
.cart-thumb img, .modal .card-media img { mix-blend-mode: multiply; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media svg { width: 70px; height: 62px; color: var(--ink-45);
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-brand { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-45); }
.card-name { font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; cursor: pointer; }
.card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-price { font-family: var(--mono); font-size: 14.5px; margin-top: 6px; }
.card-price span { font-size: 10.5px; color: var(--ink-45); }
.card-stock { font-family: var(--mono); font-size: 10.5px; color: var(--ink-70); }
.card-stock.out { color: var(--k-warm); }
.card-actions { margin-top: 10px; display: flex; gap: 6px; }
.qty { display: flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--raised); }
.qty button { width: 26px; height: 36px; color: var(--ink-70); font-size: 15px; }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 19px; text-align: center; font-family: var(--mono); font-size: 12.5px; }
.add-btn {
  flex: 1; height: 36px; border-radius: var(--r-s);
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: background .15s;
}
.add-btn:hover { background: var(--ink-70); }
.add-btn.added { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.add-btn[disabled] { opacity: .35; cursor: default; }
.grid-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-45); }

/* ---------- jak to funguje ---------- */
/* ---------- osvětlovací služby ---------- */
/* Tmavý panel, aby druhá půlka značky (osvětlovači) měla stejnou váhu
   jako hero — půjčovna a služby jsou rovnocenné, ne hlavní a vedlejší. */
.services {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r); color: #fff;
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.8vw, 40px) clamp(30px, 3vw, 46px);
  background: radial-gradient(122% 132% at 86% 0%, #241f18 0%, #16130f 44%, #0e0c0a 100%);
}
.services > * { position: relative; z-index: 2; }
.services-head { max-width: 52ch; }
.services h2 {
  margin-top: 10px; font-size: clamp(21px, 2.7vw, 31px); font-weight: 700;
  letter-spacing: -.038em; line-height: 1.12;
}
.services .lead { margin-top: 11px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.62); }

.svc-grid { margin-top: clamp(22px, 2.4vw, 32px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; }
.svc { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-s); padding: 18px 17px 20px; transition: background .18s, border-color .18s; }
.svc:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.svc-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--k-warm); }
.svc h3 { margin-top: 11px; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.svc p { margin-top: 6px; font-size: 13px; line-height: 1.58; color: rgba(255,255,255,.6); }

.services-foot { margin-top: 22px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.services-foot p { font-size: 12.5px; color: rgba(255,255,255,.5); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 13px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 19px; }
.step .n { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45);
  padding-bottom: 9px; margin-bottom: 11px; border-bottom: 1px solid var(--line); }
.step h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 5px; }
.step p { font-size: 13px; color: var(--ink-70); line-height: 1.55; }

/* ---------- pás jistot ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px; padding: 24px var(--pad); border-top: 1px solid var(--line); }
.trust div { display: flex; gap: 11px; }
.trust svg { flex: none; color: var(--ink); margin-top: 2px; }
.trust b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.trust p { font-size: 12px; color: var(--ink-70); line-height: 1.5; }

/* ---------- patička ---------- */
.foot { position: relative; background: var(--dark); color: rgba(255,255,255,.7);
  padding: 38px var(--pad) 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.foot .logo-word { color: #fff; }
.foot .logo-sub { color: rgba(255,255,255,.4); }
.foot > div { position: relative; z-index: 2; }
.foot h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 10px; }
.foot a, .foot span.fl { display: block; font-size: 13px; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot-note { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.32); margin-top: 12px; }
.foot .kelvin-rule { width: 44px; margin-top: 10px; }

/* ---------- rezervační panel ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer-wrap.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(18,17,16,.42); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  animation: slide-in .24s cubic-bezier(.32,.72,0,1); box-shadow: -20px 0 50px rgba(0,0,0,.16); }
@keyframes slide-in { from { transform: translateX(34px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.drawer-close { width: 32px; height: 32px; border-radius: 50%; color: var(--ink-70);
  display: flex; align-items: center; justify-content: center; }
.drawer-close:hover { background: var(--line-2); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 15px 20px 20px; }
.drawer-empty { color: var(--ink-45); font-size: 13px; padding: 34px 0; text-align: center; }

.cart-line { display: flex; align-items: center; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2); }
.cart-thumb { width: 50px; height: 50px; flex: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-s);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { max-width: 84%; max-height: 84%; object-fit: contain; }
.cart-thumb svg { width: 25px; height: 23px; color: var(--ink-45);
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .n { font-size: 13.5px; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line .s { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); margin-top: 2px; }
.cart-line .s .warn { color: var(--k-warm); }
.cart-line .qty { transform: scale(.88); transform-origin: right center; }
.cart-line .rm { width: 24px; height: 24px; flex: none; border-radius: 50%; color: var(--ink-45);
  display: flex; align-items: center; justify-content: center; }
.cart-line .rm:hover { background: var(--line-2); color: var(--ink); }

.form-grid { display: grid; gap: 10px; margin-top: 17px; }
.form-grid label { font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-45); display: grid; gap: 5px; }
.form-grid input, .form-grid textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 10px 12px; font-family: var(--font); font-size: 14px; color: var(--ink); }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--ink-45); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink-70); }
.cart-total strong { font-size: 19px; color: var(--ink); }
.cart-total-note { font-size: 11.5px; color: var(--ink-45); margin-top: 6px; }
.drawer-foot { padding: 13px 20px 17px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn { width: 100%; }
.sent-ok { font-size: 12.5px; text-align: center; margin-top: 9px; color: var(--ink-70); }
.sent-ok.is-error { color: var(--k-warm); font-weight: 600; }

.sent-box { padding: 6px 0; }
.sent-box .tag { display: inline-block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); }
.sent-box h4 { font-size: 21px; font-weight: 700; letter-spacing: -.035em; margin: 11px 0 7px; }
.sent-box > p { font-size: 13px; color: var(--ink-70); line-height: 1.55; }
.sent-recap { margin: 17px 0; padding: 13px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.sent-recap div { display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-70); }
.sent-recap div b { color: var(--ink); text-align: right; }
.sent-recap .sent-total { border-top: 1px dashed var(--line); padding-top: 7px; }
.sent-recap .sent-total b { font-size: 14.5px; }
.sent-mail-note { font-size: 12px; color: var(--ink-45); line-height: 1.5; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 95; display: none;
  align-items: center; justify-content: center; padding: 18px; }
.modal-wrap.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(18,17,16,.45); }
.modal { position: relative; background: var(--surface); border-radius: var(--r);
  width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 70px rgba(0,0,0,.24); animation: pop-in .2s cubic-bezier(.32,.72,0,1); }
@keyframes pop-in { from { transform: scale(.97); opacity: 0; } }
.modal .card-media { aspect-ratio: 1/1; border-bottom: none;
  border-right: 1px solid var(--line-2); cursor: default; }
.modal .card-media img { max-width: 80%; max-height: 80%; }
.modal-info { padding: 25px; display: flex; flex-direction: column; gap: 9px; }
.modal-cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-45); }
.modal-info h3 { font-size: 23px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.modal-price { font-family: var(--mono); font-size: 16px; }
.modal-price small { color: var(--ink-45); }
.modal-stock { font-family: var(--mono); font-size: 11.5px; color: var(--ink-70); }
.modal-qr { margin-top: auto; display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 15px; }
.modal-qr img { width: 74px; height: 74px; background: #fff; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--r-s); }
.modal-qr p { font-size: 11px; color: var(--ink-45); max-width: 24ch; line-height: 1.45; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-70);
  display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--ink); }

/* ---------- účet ---------- */
.auth-card { position: relative; background: var(--surface); border-radius: var(--r);
  width: min(400px, 100%); max-height: 90vh; overflow-y: auto; padding: 25px;
  box-shadow: 0 30px 70px rgba(0,0,0,.24); animation: pop-in .2s cubic-bezier(.32,.72,0,1); }
.auth-card .drawer-close { position: absolute; top: 12px; right: 12px; }
.auth-view h3 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 4px; }
.auth-sub { font-size: 12.5px; color: var(--ink-70); margin-bottom: 13px; }
.auth-err { font-size: 12px; color: var(--k-warm); font-weight: 600; min-height: 15px; margin: -3px 0; }
.auth-switch { margin-top: 13px; width: 100%; text-align: center; padding: 8px;
  font-size: 12.5px; color: var(--ink-70); }
.auth-switch b { color: var(--ink); font-weight: 600; }
.auth-switch:hover b { text-decoration: underline; text-underline-offset: 3px; }
.my-res { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
.my-res h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: 7px; }
.my-res .res-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; }
.my-res .res-row .p { color: var(--ink-45); }
.my-res .empty { font-size: 12px; color: var(--ink-45); padding: 6px 0; }

/* ---------- mobilní panel ---------- */
.menu-btn { display: none; }
.mobile-panel { display: none; position: fixed; inset: 0; z-index: 70;
  background: var(--paper); overflow-y: auto; padding: 16px var(--pad) 40px; }
.mobile-panel:not([hidden]) { display: block; }
.mobile-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mobile-panel .side-title { margin-top: 20px; }
/* Na mobilu je horní navigace schovaná — odkazy na sekce musí být tady. */
.mobile-nav { display: grid; gap: 6px; }
.mobile-nav a {
  padding: 12px 13px; border-radius: var(--r-s);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
}
.mobile-nav a:active { border-color: var(--ink-45); }
body.lock { overflow: hidden; }

/* ============================================================
   Administrace
   ============================================================ */
.admin-body { min-height: 100vh; display: flex; flex-direction: column; }
.admin-body .topbar .logo { width: auto; }

.pin-gate { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pin-gate[hidden] { display: none; }
.pin-card { width: 340px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px; display: grid; gap: 13px; box-shadow: var(--shadow); }
.pin-card .logo { align-items: center; justify-self: center; }
.pin-card h1 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; text-align: center; }
.pin-card p.hint { font-size: 12.5px; color: var(--ink-70); text-align: center; margin-top: -6px; }
.pin-card input:not([type="checkbox"]) {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 13px; font-family: var(--font); font-size: 15px; color: var(--ink); text-align: center; }
.pin-card input:focus { outline: none; border-color: var(--ink-45); }
.pin-remember { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: -2px; font-size: 12.5px; color: var(--ink-70); cursor: pointer; user-select: none; }
.pin-remember input { width: 15px; height: 15px; accent-color: var(--k-warm); cursor: pointer; }
.pin-err { font-size: 12px; color: var(--k-warm); font-weight: 600; text-align: center; }
.pin-err:empty { display: none; }

.admin-tabs { padding: 16px var(--pad) 0; }
.admin-tabs-inner { display: flex; gap: 2px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  background: var(--line-2); border-radius: 9px; padding: 3px; }
.cat-tab { font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 7px;
  color: var(--ink-70); white-space: nowrap; transition: background .13s, color .13s; }
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.admin-main { padding: 22px var(--pad) 50px; }
.admin-note { font-size: 13px; color: var(--ink-70); margin: 4px 0 18px; max-width: 74ch; line-height: 1.55; }
.admin-note b { color: var(--ink); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat-tile .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: 8px; }
.stat-tile .val { font-size: 25px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat-tile .sub { font-size: 11.5px; color: var(--ink-45); margin-top: 7px; }

.chart-row { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; min-width: 0; }
.chart-card h3 { font-size: 14px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 3px; }
.chart-card .sub { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); margin-bottom: 14px; }
.chart-card .plot { position: relative; height: 240px; }
.chart-empty { height: 240px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-45); font-size: 12.5px; text-align: center; padding: 0 20px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-45); text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table input { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s);
  font-family: var(--mono); font-size: 12.5px; padding: 6px 9px; width: 90px; text-align: right; color: var(--ink); }
.admin-table input:focus { outline: none; border-color: var(--ink-45); }
.cat-row td { font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; padding-top: 24px; }
.mono-id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); }

.req-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 12px; }
.req-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px; align-items: center; }
.req-head b { font-weight: 600; }
.req-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-45); }
.req-items { font-size: 13px; color: var(--ink-70); margin: 8px 0; line-height: 1.6; }
.req-actions { display: flex; gap: 6px; margin-top: 13px; flex-wrap: wrap; align-items: center; }
.req-card.done { opacity: .55; }
.status-chip { display: inline-flex; align-items: center; font-family: var(--mono);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.status-new { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.status-confirmed { background: var(--ink); color: var(--paper); }
.status-done { background: var(--line-2); color: var(--ink-45); }
.conflict { color: var(--k-warm); font-weight: 600; font-size: 12px; margin-top: 8px; }
.discount-field { display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-45); }
.discount-field input { width: 56px; background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-s); font-family: var(--mono); font-size: 12.5px; padding: 6px 8px;
  text-align: right; color: var(--ink); }
.discount-field input:focus { outline: none; border-color: var(--ink-45); }

.inv-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .inv-layout { grid-template-columns: 1fr; } }
.inv-list { display: grid; gap: 7px; }
.inv-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  cursor: pointer; text-align: left; width: 100%; transition: border-color .14s; }
.inv-item:hover { border-color: var(--ink-45); }
.inv-item.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.inv-item .no { font-family: var(--mono); font-size: 11.5px; }
.inv-item .who { font-size: 12.5px; opacity: .7; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item .amt { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

.company-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-top: 16px; display: grid; gap: 9px; }
.company-card h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-45); }
.company-card label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-45); display: grid; gap: 4px; }
.company-card input { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s);
  font-size: 12.5px; padding: 8px 10px; color: var(--ink); font-family: var(--font); }
.company-card input:focus { outline: none; border-color: var(--ink-45); }

.invoice { background: #fff; color: #14130f; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 4vw, 46px); max-width: 820px; font-size: 13.5px; line-height: 1.5; }
.invoice-empty { border: 1px dashed var(--line); border-radius: var(--r);
  padding: 54px 30px; text-align: center; color: var(--ink-45); font-size: 13px; }
.invoice header { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 30px; padding: 0; background: none; position: static; border: none; }
.invoice .inv-logo b { font-size: 22px; font-weight: 700; letter-spacing: -.04em; display: block; }
.invoice .inv-logo i { font-style: normal; color: #d1873a; }
.invoice .inv-logo .sub { font-family: var(--mono); font-size: 7.5px; letter-spacing: .2em;
  text-transform: uppercase; color: #8c8a82; }
.invoice .inv-no { text-align: right; }
.invoice .inv-no .t { font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: #8c8a82; }
.invoice .inv-no .n { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.invoice .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.invoice .party .t { font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: #8c8a82; margin-bottom: 6px; }
.invoice .party div { color: #3a3833; }
.invoice .party .nm { font-weight: 600; color: #14130f; }
.invoice .inv-dates { display: flex; gap: 26px; margin-bottom: 22px; font-size: 12.5px;
  color: #55534c; flex-wrap: wrap; }
.invoice .inv-dates b { color: #14130f; font-weight: 600; }
.invoice table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.invoice th { font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: #8c8a82; text-align: left; padding: 8px 10px;
  border-bottom: 1px solid #14130f; }
.invoice td { padding: 9px 10px; border-bottom: 1px solid #ebe9e4; color: #2c2a26; }
.invoice th.num, .invoice td.num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice .totals { margin-left: auto; max-width: 310px; display: grid; gap: 6px; font-size: 13px; }
.invoice .totals .row { display: flex; justify-content: space-between; color: #55534c;
  padding: 0; border: none; background: none; }
.invoice .totals .row.grand { border-top: 1px solid #14130f; padding-top: 9px; margin-top: 3px;
  font-size: 17px; font-weight: 700; letter-spacing: -.03em; color: #14130f; }
.invoice .inv-note { margin-top: 24px; font-size: 11.5px; color: #8c8a82; }
.inv-toolbar { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }

.qr-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.qr-label { background: #fff; color: #14130f; border: 1px solid #d9d7d1; border-radius: var(--r-s);
  padding: 13px 12px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; break-inside: avoid; }
.qr-label img { width: 112px; height: 112px; }
.qr-label .nm { font-size: 11px; font-weight: 600; letter-spacing: -.01em; }
.qr-label .un { font-family: var(--mono); font-size: 8.5px; color: #8c8a82; }

.scan-wrap { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 24px; }
.scan-video { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scan-status { font-family: var(--mono); font-size: 12px; color: var(--ink-70); margin: 12px 0; min-height: 38px; }
.scan-log { font-size: 13px; }
.scan-log .row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.scan-log .t { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); min-width: 124px; }
.unit-out { font-weight: 600; }
.unit-in { color: var(--ink-45); }
@media (max-width: 760px) { .scan-wrap { grid-template-columns: 1fr; } }

/* ============================================================
   Responzivita
   ============================================================ */
@media (max-width: 1080px) {
  :root { --side: 206px; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .tile-claim { grid-column: span 2; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar { flex-wrap: wrap; padding: 10px var(--pad); gap: 10px; }
  .topbar .logo { width: auto; }
  .topnav { display: none; }
  /* topnav nese margin-left:auto — bez něj by ikony zůstaly nalepené na logu
     a vpravo by zbylo prázdné místo */
  .topbar #authBtn { margin-left: auto; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .foot { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 190px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 11px 11px 12px; }
  .card-name { font-size: 12.5px; }
  .card-price { font-size: 13px; }
  .card-actions .qty { display: none; }
  .modal { grid-template-columns: 1fr; }
  .modal .card-media { border-right: none; border-bottom: 1px solid var(--line-2); aspect-ratio: 4/3; }
  .showcase { margin: 10px 10px 0; gap: 8px; grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 156px; }
  .tile-claim { grid-column: span 2; min-height: 0; padding: 22px 20px; gap: 12px; }
  .tile-claim h1 { font-size: clamp(27px, 8.4vw, 36px); }
  .tile-claim p { display: none; }
  .tile-claim .btn { width: 100%; }
  .tile-name { font-size: 14px; }
  .tile-shot { padding: 4px 0 0; }
  .termbar { margin: 8px 10px 0; gap: 10px; }
  .termbar .field { flex: 1; min-width: 126px; }
  .termbar input[type="date"] { width: 100%; }
  .term-state { margin-left: 0; flex-basis: 100%; gap: 12px; }
  .drawer-foot { padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  .form-grid input, .form-grid textarea, .search, .pin-card input,
  .termbar input[type="date"], .company-card input { font-size: 16px; }
  #tab-stock, #invPreview { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table, .invoice { min-width: 540px; }
  .discount-field { margin-left: 0; }
}

/* Na úzkých telefonech by se delší podtitulek značky srazil s ikonami. */
@media (max-width: 440px) {
  .topbar .logo-sub { font-size: 7px; letter-spacing: .06em; }
}

@media (min-width: 1700px) {
  .topbar, .shell { max-width: 1700px; margin-inline: auto; }
}

/* ---------- tisk ---------- */
@media print {
  body { background: #fff; }
  body.print-qr * { visibility: hidden; }
  body.print-qr .qr-sheet, body.print-qr .qr-sheet * { visibility: visible; }
  body.print-qr .qr-sheet { position: absolute; inset: 0;
    grid-template-columns: repeat(4, 1fr); gap: 6mm; padding: 8mm; }
  body.print-invoice * { visibility: hidden; }
  body.print-invoice .invoice, body.print-invoice .invoice * { visibility: visible; }
  body.print-invoice .invoice { position: absolute; inset: 0; max-width: none; border: none; border-radius: 0; }
}
