/* Dovozio – rozhraní aplikací (tablet restaurace, administrace). Paleta „Petrolejová“. */
:root {
  --brand: #0F766E;        /* petrolejová – lišty, plochy s bílým písmem */
  --brand-strong: #0B635C; /* o odstín tmavší – tlačítka, odkazy, malý text na bílé */
  --brand-deep: #0B4F4A;
  --brand-soft: #D7F0EB;
  --red: #B91C1C;           /* jen chyby a varování */
  --red-dark: #991B1B;
  --black: #1A1A1A;
  --ink: #1A1A1A;
  --muted: #5E5556;
  --bg: #F2F6F5;
  --card: #FFFFFF;
  --line: #DAE5E2;
  --ok: #0E7A43;
  --ok-bg: #E3F4EA;
  --warn: #9A5B00;
  --warn-bg: #FFF1D6;
  --danger-bg: #FEE2E2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }

.brand { display: inline-flex; align-items: center; gap: 7px; }
.brand { --logo-cut: var(--brand); --logo-me: #F4B98F; }
.brand__mark { width: 28px; height: 30px; flex: none; }
.brand__word { font-family: Fredoka, Archivo, sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; }
.brand__me { color: var(--logo-me); }
.brand__sub { font-weight: 600; font-size: .95rem; opacity: .85; margin-left: 6px; }

.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.auth { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.auth .brand { color: var(--brand); margin-bottom: 8px; --logo-cut: #fff; --logo-me: #C9784A; }
.auth h1 { font-size: 1.4rem; margin-bottom: 6px; }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #5EEAD4; outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink);
}
.btn:disabled { opacity: .5; cursor: wait; }
.btn--primary { background: var(--black); border-color: var(--black); color: #fff; }
.btn--red { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn--ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--big { min-height: 64px; font-size: 1.15rem; padding: 0 24px; }
.btn--sm { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.btn.is-active { background: var(--black); color: #fff; border-color: var(--black); }

/* horní lišta */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 10px 16px; max-width: 1400px; margin: 0 auto; }
.topbar__name { font-weight: 800; font-size: 1.1rem; }
.topbar__spacer { flex: 1 1 auto; }
.topbar .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.topbar .btn.is-active { background: #fff; color: var(--brand-strong); border-color: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }

.banner { padding: 10px 16px; text-align: center; font-weight: 700; }
.banner--offline { background: var(--black); color: #fff; }
.banner--paused { background: var(--warn-bg); color: var(--warn); }
.banner--closed { background: var(--danger-bg); color: var(--red-dark); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.col h2 { font-size: 1.1rem; margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--black); color: #fff; font-size: .9rem; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* karta objednávky */
.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.order__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order__code { font-weight: 900; font-size: 1.35rem; letter-spacing: .04em; }
.order__meta { color: var(--muted); font-size: .9rem; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.items li { display: flex; gap: 10px; font-size: 1.05rem; }
.items .qty { font-weight: 900; min-width: 2.2em; }
.items .opt { display: block; color: var(--muted); font-size: .9rem; }
.items .inote { display: block; color: var(--red-dark); font-weight: 700; font-size: .9rem; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 1.6rem; }
.timer.is-late { color: var(--red); }
.code-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.code-box strong { font-size: 1.8rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--red { background: var(--danger-bg); color: var(--red-dark); }

/* nová objednávka – přes celou obrazovku */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(26,26,26,.6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.incoming { width: 100%; max-width: 640px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.incoming__head { background: var(--brand-strong); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: pulse 1.2s ease-in-out infinite; }
.incoming__head h2 { font-size: 1.4rem; }
.incoming__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.prep { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.prep .btn { min-height: 64px; font-size: 1.2rem; flex-direction: column; gap: 0; }
.prep .btn small { font-size: .75rem; font-weight: 600; opacity: .8; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@keyframes pulse { 50% { background: var(--brand-deep); } }
@media (prefers-reduced-motion: reduce) { .incoming__head { animation: none; } }
@media (max-width: 520px) { .prep { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reasons { grid-template-columns: 1fr; } }

.done-list { display: flex; flex-direction: column; gap: 6px; }
.done-list .row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; justify-content: space-between; }

/* menu */
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item.is-off .menu-item__name { color: var(--muted); text-decoration: line-through; }

/* úvodní obrazovka směny */
.start { text-align: center; max-width: 520px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.start .brand { color: var(--brand); --logo-cut: #fff; --logo-me: #C9784A; }
.start p { color: var(--muted); margin: 0; }

/* administrace */
.admin-grid { display: grid; gap: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; }
.form-grid > div { display: flex; flex-direction: column; gap: 4px; }
.hint { color: var(--muted); font-size: .85rem; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.ax-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ax-zone.is-on { border-color: #0F766E; box-shadow: 0 0 0 2px rgba(15,118,110,.18); }
.ax-zone__dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.ax-zone__fee { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.ax-zone__fee input { width: 90px; min-height: 40px; }
.ax-fold > section { margin-top: 12px; }
.ax-fold > section > h2:first-child { display: none; }
.ax-fold > summary { font-size: 1.05rem; }
details.card > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }

#toasts { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 480px); }
.toast { background: var(--black); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast--error { background: var(--red); }

/* Logo Dovozio: po najetí se rozbalí „Dobré Jídlo České Budějovice“ (zbytek slov poloviční velikostí) */

.pill--src { background: #E3ECFB; color: #1F4E9A; }
.pill--own { background: var(--brand-soft); color: var(--brand-deep); }
.overlay .form-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* mapa zón (administrace) */
.zone-map { height: 440px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e8eef0; }
.zone-handle { background: #fff; border: 3px solid #B45309; border-radius: 50%; box-sizing: border-box; cursor: grab; }

/* text smlouvy v administraci */
.contract-text { background: #fff; border: 1px solid var(--line, #D3E4E0); border-radius: 12px; padding: 14px 18px; margin-top: 10px; max-height: 480px; overflow: auto; font-size: .92rem; line-height: 1.5; }
.contract-text h1 { font-size: 1.2rem; margin: 0 0 8px; }
.contract-text h2 { font-size: 1rem; margin: 16px 0 6px; }
.contract-text p { margin: 0 0 8px; }

/* aplikace restaurace: úprava menu a otevírací doby */
.menu-row { border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row .menu-item { border-bottom: 0; }
.menu-item__text { flex: 1; min-width: 0; }
.menu-item__pending { display: block; white-space: normal; margin-top: 4px; width: fit-content; }
.menu-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.menu-thumb--empty { background: var(--brand-soft); }
.menu-photo { width: 120px; height: 84px; object-fit: cover; border-radius: 12px; }
.menu-edit { padding: 4px 0 16px; }
.menu-form { display: grid; gap: 12px; margin-top: 12px; }
.menu-form label { display: block; font-weight: 800; margin-bottom: 4px; font-size: .9rem; }
.menu-form input:not([type=file]), .menu-form textarea { width: 100%; box-sizing: border-box; }
.hours-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; }
.hours-row label { margin: 0; }
@media (max-width: 640px) {
  .topbar__inner { gap: 8px 10px; padding: 8px 10px; }
  .menu-item { flex-wrap: wrap; }
  .menu-item__text { flex-basis: calc(100% - 60px); }
}
.topbar__toggle { display: none; }
.topbar__more { display: contents; }
@media (max-width: 640px) {
  .topbar--rest .brand__word, .topbar--rest .topbar__spacer { display: none; }
  .topbar--rest .topbar__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar--rest nav.seg { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .topbar--rest nav.seg .btn { padding-inline: 4px; }
  .seg--status { order: 4; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .seg--status .btn { flex: 1 0 auto; padding-inline: 6px; font-size: .82rem; }
  .topbar__toggle { display: inline-flex; order: 2; }
  .topbar__more { display: none; order: 5; width: 100%; gap: 8px; }
  .topbar__more.is-open { display: flex; flex-wrap: wrap; }
}

/* mapa kurýrů: jmenovka kurýra */
.fleet-pin { position: absolute; transform: translate(-50%, -50%); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 9px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); white-space: nowrap; }

/* aplikace kurýra: oddíly se spodní lištou, mapa, historie, hotovost */
body.courier-app { padding-bottom: 0; }
.cmain { max-width: 720px; }
.ctitle { margin: 4px 0 0; font-size: 1.5rem; font-weight: 900; }
.cnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.cnav__btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; min-height: 60px; background: none; border: 0; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.cnav__btn.is-active { color: var(--brand-strong); }
.cnav__btn.is-active::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.cnav__icon { display: inline-flex; }
.cnav__badge { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; padding: 1px 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .7rem; line-height: 1.3; }
.cstatus { display: grid; grid-template-columns: repeat(3, 1fr); }
.cstatus .btn { min-height: 48px; }
.cstatus .btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmap { height: 38vh; min-height: 220px; max-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); border: 1px solid var(--line); z-index: 0; }
.cpin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.cpin--pickup { background: #1E3A5F; }
.cdays { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cday { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.cday small { color: var(--muted); font-size: .72rem; font-weight: 800; }
.cday strong { font-size: 1.1rem; }
.cday.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cday.is-active small { color: #fff; }
.cday__dot { width: 6px; height: 6px; border-radius: 50%; }
.cday__dot.is-on { background: var(--ok); }
.cday.is-active .cday__dot.is-on { background: #fff; }
.ctiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ctile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ctile small { color: var(--muted); font-size: .75rem; font-weight: 800; }
.ctile strong { font-size: 1.15rem; }
.crow > strong { flex: none; white-space: nowrap; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.cwallet { display: flex; flex-direction: column; gap: 4px; }
.cwallet small { color: var(--muted); font-weight: 800; }
.cwallet > strong { font-size: 2.2rem; font-weight: 900; }
.cseg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.cseg .btn { flex: none; }
.cstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cstat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.cstat small { color: var(--muted); font-weight: 800; font-size: .78rem; }
.cstat strong { font-size: 1.35rem; font-weight: 900; white-space: nowrap; }
.cstat span { color: var(--muted); font-size: .8rem; }

/* směny kurýrů v administraci */
.shift { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.shift:last-child { border-bottom: 0; }
.shift__time { font-size: 1.1rem; min-width: 110px; }
.shift__courier { display: inline-flex; align-items: center; gap: 4px; }
.shift__x { border: 0; background: none; color: inherit; font-weight: 900; font-size: 1rem; cursor: pointer; padding: 0 2px; min-height: 0; line-height: 1; }
.shift select { width: auto; min-height: 36px; }

/* ---------- Aplikace restaurace: nový vzhled (hlavička, dlaždice, karty, plovoucí lišta, výsuvné nabídky) ---------- */
.rx { --rx-bg: #F6F4EF; --rx-card: #fff; --rx-ink: #0E1F1D; --rx-mut: #5F726F; --rx-line: #E8E4DB; --rx-soft: #EDEAE2;
  display: block; min-height: 100vh; background: var(--rx-bg); color: var(--rx-ink); padding-bottom: 104px; }
.rx-ic { display: inline-grid; place-items: center; }
.rx-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-tone--ok { color: #047857; } .rx-tone--warn { color: #B45309; } .rx-tone--red { color: #B91C1C; }

.rx-hd { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px; max-width: 1400px; margin: 0 auto; }
.rx-av { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; font-family: Fredoka, Archivo, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1;
  background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 4px 10px rgba(15,118,110,.35); }
.rx-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rx-who strong { font-size: 1.05rem; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-who__sub { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-who__sub.rx-tone--ok { color: var(--rx-mut); }
.rx-st { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--rx-line); background: var(--rx-card); font-weight: 800; font-size: .85rem; cursor: pointer; }
.rx-pulse { width: 10px; height: 10px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.rx-pulse--warn { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.22); }
.rx-pulse--red { background: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.rx-off { display: inline-flex; align-items: center; gap: 7px; margin: 8px 16px 0; padding: 6px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: .78rem; font-weight: 700; }
.rx-off i { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; }

.rx-main { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.rx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0 4px; }
.rx-t { text-align: left; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 20px; padding: 12px 12px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rx-t b { font-size: 1.9rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rx-t span { font-size: .76rem; font-weight: 700; color: var(--rx-mut); line-height: 1.2; }
.rx-t.is-on { background: linear-gradient(145deg, #0F766E, #115E59); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(15,118,110,.32); }
.rx-t.is-on span { color: #C3EAE4; }
.rx-list { display: none; }
.rx-list.is-on { display: block; }
.rx-lbl { margin: 14px 2px 8px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rx-mut); }
.rx-empty { margin: 0; padding: 26px 16px; text-align: center; color: var(--rx-mut); border: 1.5px dashed #D5D0C4; border-radius: 22px; font-size: .95rem; }

.rx-card { background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 24px; padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.rx-r1 { display: flex; align-items: flex-start; gap: 10px; }
.rx-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-code { font-size: 1.3rem; font-weight: 900; letter-spacing: .03em; }
.rx-tag { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 4px 9px; background: #FFEDD5; color: #9A3412; }
.rx-tm { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.rx-tm .timer { font-size: 1.25rem; color: #0B635C; line-height: 1.1; }
.rx-tm .timer.is-late { color: var(--red); }
.rx-tm span { font-size: .72rem; font-weight: 600; color: var(--rx-mut); }
.rx-card .items .qty { color: #0B635C; }
.rx-nt { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: .92rem; }
.rx-mini { display: flex; align-items: center; gap: 12px; }
.rx-mini small { font-size: .78rem; font-weight: 700; color: var(--rx-mut); }
.rx-bar { flex: 1; height: 7px; border-radius: 9px; background: var(--rx-soft); overflow: hidden; }
.rx-bar u { display: block; height: 100%; width: 4%; border-radius: 9px; background: linear-gradient(90deg, #14B8A6, #F59E0B); transition: width .6s linear; }
.rx-bar u.is-late { background: #DC2626; }
.rx-act { display: flex; gap: 10px; }
.rx-b { flex: 1; white-space: nowrap; padding: 0 8px; min-height: 52px; border: 0; border-radius: 16px; background: var(--rx-soft); color: var(--rx-ink); font-weight: 800; font-size: .95rem; cursor: pointer; }
.rx-b--p { flex: 1.7; color: #fff; background: linear-gradient(135deg, #0D9488, #0F766E); box-shadow: 0 8px 16px rgba(15,118,110,.35); font-size: 1.05rem; }
.rx-b:disabled { opacity: .5; cursor: wait; }
.rx-done { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.rx-done__m { color: var(--rx-mut); font-size: .85rem; margin-left: auto; }

.rx-nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px)); height: 66px;
  display: flex; align-items: center; padding: 0 6px; border-radius: 26px; background: rgba(14,31,29,.95); box-shadow: 0 14px 28px rgba(0,0,0,.3); }
.rx-nav__i { flex: 1; min-width: 0; height: 100%; position: relative; border: 0; background: none; color: #9DB1AE; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 700; }
.rx-nav__i.is-on { color: #fff; }
.rx-nav__b { position: absolute; top: 8px; left: 56%; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .65rem; font-weight: 800; }
.rx-nav__plus { flex: none; width: 54px; height: 54px; margin: 0 4px; border: 0; border-radius: 19px; cursor: pointer; color: #fff; display: grid; place-items: center; transform: translateY(-12px);
  background: linear-gradient(135deg, #F97316, #C2410C); box-shadow: 0 8px 16px rgba(194,65,12,.45); }
.rx-nav__plus svg { width: 26px; height: 26px; stroke-width: 2.6; }

.rx-dim { position: fixed; inset: 0; z-index: 40; background: rgba(8,18,17,.55); display: flex; align-items: flex-end; justify-content: center; padding: 10px; }
.rx-sheet { width: 100%; max-width: 520px; max-height: calc(100vh - 20px); overflow-y: auto; background: var(--rx-card); border-radius: 28px; padding: 6px 16px 16px; animation: rx-up .18s ease-out; }
@keyframes rx-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rx-sheet { animation: none; } .rx-bar u { transition: none; } }
.rx-grab { display: block; width: 100%; height: 26px; border: 0; background: none; cursor: pointer; position: relative; }
.rx-grab::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: #D9D4C8; }
.rx-sheet h2 { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.rx-sheet__h { margin: 3px 0 14px; color: var(--rx-mut); font-size: .88rem; }
.rx-big { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px; margin-bottom: 9px; border: 0; border-radius: 20px; background: var(--rx-soft); text-align: left; cursor: pointer; color: var(--rx-ink); }
.rx-big--label { cursor: default; }
.rx-big.is-on { background: #D1FAE5; outline: 2px solid #10B981; }
.rx-big--label.is-on { background: #FEF3C7; outline-color: #F59E0B; }
.rx-big__ic { width: 40px; height: 40px; flex: none; border-radius: 13px; background: #fff; }
.rx-big__t { display: flex; flex-direction: column; min-width: 0; }
.rx-big__t strong { font-size: 1rem; font-weight: 900; }
.rx-big__t small { font-size: .8rem; color: var(--rx-mut); font-weight: 500; }
.rx-big__ck { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #059669; color: #fff; }
.rx-big__ck svg { width: 14px; height: 14px; stroke-width: 3; }
.rx-pz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -2px 0 9px; }
.rx-pz button { min-height: 56px; border: 0; border-radius: 16px; background: var(--rx-soft); font-weight: 800; font-size: .95rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--rx-ink); }
.rx-pz button small { font-size: .68rem; font-weight: 600; color: var(--rx-mut); }
.rx-pz button.is-on { background: #FEF3C7; outline: 2px solid #F59E0B; }
.rx-li { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid #EFEBE3; background: none; font-weight: 700; font-size: 1rem; text-align: left; cursor: pointer; color: var(--rx-ink); }
.rx-li .rx-ic { color: #0B635C; }
.rx-li:last-child { border-bottom: 0; }
.rx-li--red, .rx-li--red .rx-ic { color: #B91C1C; }
.rx .wrap { padding-top: 8px; }

/* tablet v kuchyni: všechny tři seznamy vedle sebe */
@media (min-width: 900px) {
  .rx-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .rx-list { display: block; }
  .rx-tiles { max-width: 620px; }
  .rx-hd { padding-top: 20px; }
}

/* ---------- Aplikace restaurace: tmavý režim (třída na <html>, nastavuje restaurant.js) ---------- */
.rx-dark { color-scheme: dark;
  --bg: #0C1514; --card: #15211F; --ink: #F2F5F4; --muted: #93A8A5; --line: #263432;
  --ok: #6EE7B7; --ok-bg: #0F2E22; --warn: #FCD34D; --warn-bg: #3A2A08; --danger-bg: #3B1414; --red: #F87171; --red-dark: #FCA5A5;
  --brand-soft: #123532; }
.rx-dark body { background: #0C1514; }
.rx-dark .rx { --rx-bg: #0C1514; --rx-card: #15211F; --rx-ink: #F2F5F4; --rx-mut: #93A8A5; --rx-line: #263432; --rx-soft: #1D2B29; }
.rx-dark input, .rx-dark select, .rx-dark textarea { background: #0F1A19; border-color: var(--line); color: var(--ink); }
.rx-dark ::placeholder { color: #6F8582; }
.rx-dark .btn:not(.btn--primary):not(.btn--red):not(.btn--ok):not(.btn--ghost):not(.is-active) { background: #1D2B29; border-color: var(--line); color: var(--ink); }
.rx-dark .btn--primary { background: #F2F5F4; border-color: #F2F5F4; color: #0C1514; }
.rx-dark .btn--ok { background: #0E7A43; border-color: #0E7A43; color: #fff; }
.rx-dark .btn--ghost { color: var(--ink); border-color: var(--line); }
.rx-dark .btn.is-active { background: #F2F5F4; border-color: #F2F5F4; color: #0C1514; }
.rx-dark .incoming { background: var(--card); color: var(--ink); }
.rx-dark .toast { background: #F2F5F4; color: #0C1514; }
.rx-dark .toast--error { background: #B91C1C; color: #fff; }
.rx-dark .pill--own { color: #7FE0D4; }
.rx-dark .pill--src { background: #1B2B47; color: #A9C4F5; }
.rx-dark .start .brand, .rx-dark .auth .brand { color: #5EEAD4; --logo-cut: #0C1514; }
.rx-dark a:not([class]) { color: #5EEAD4; }
.rx-dark .rx-tone--ok { color: #34D399; } .rx-dark .rx-tone--warn { color: #FBBF24; } .rx-dark .rx-tone--red { color: #F87171; }
.rx-dark .rx-who__sub.rx-tone--ok { color: var(--rx-mut); }
.rx-dark .rx-off { background: #3A2A08; color: #FCD34D; }
.rx-dark .rx-tag { background: #3B1E0B; color: #FDBA74; }
.rx-dark .rx-tm .timer, .rx-dark .rx-card .items .qty, .rx-dark .rx-li .rx-ic { color: #5EEAD4; }
.rx-dark .rx-tm .timer.is-late { color: #F87171; }
.rx-dark .rx-empty { border-color: #2C3B39; }
.rx-dark .rx-nav { background: rgba(29,43,41,.97); border: 1px solid #2E3F3D; }
.rx-dark .rx-grab::after { background: #33443F; }
.rx-dark .rx-big__ic { background: #0C1514; }
.rx-dark .rx-big.is-on { background: #0F3A2C; }
.rx-dark .rx-big--label.is-on, .rx-dark .rx-pz button.is-on { background: #3A2A08; }
.rx-dark .rx-li { border-bottom-color: #22302E; }
.rx-dark .rx-li--red, .rx-dark .rx-li--red .rx-ic { color: #F87171; }
.rx-li small { margin-left: auto; color: var(--rx-mut); font-weight: 600; font-size: .85rem; }

/* ---------- Aplikace kurýra: nový vzhled (sdílí hlavičku, karty, lištu a nabídky s aplikací restaurace) ---------- */
.kx .rx-main, .kx .cmain { max-width: 720px; }
.kx .wrap { padding: 8px 16px 16px; }
.kx .rx-main { padding-top: 10px; }
.kx .cmap { border-radius: 24px; border-color: var(--rx-line); height: 34vh; }
.kx .card { border-radius: 22px; border-color: var(--rx-line); }
.kx .col { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rx-mut); margin: 6px 2px 0; }
.kx .ctitle { font-size: 1.6rem; letter-spacing: -.02em; }
.kx .empty { border-radius: 22px; border: 1.5px dashed #D5D0C4; padding: 24px 16px; }
.kx .btn { border-radius: 14px; }
.kx .btn--big { border-radius: 18px; min-height: 60px; }
.kx .btn--ok { background: linear-gradient(135deg, #0D9488, #0F766E); border-color: transparent; box-shadow: 0 8px 16px rgba(15,118,110,.3); }
.kx .ctile, .kx .cday { border-radius: 18px; border-color: var(--rx-line); }
.kx .rx-nav__i svg { width: 22px; height: 22px; }
.kx .rx-nav__i { font-size: .66rem; }
.kx-hint { background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 18px; padding: 12px 14px; font-size: .9rem; }
.kx-cash { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--rx-line); border-radius: 18px; background: var(--rx-card); color: var(--rx-ink); cursor: pointer; }
.kx-cash span { font-size: .85rem; font-weight: 700; color: var(--rx-mut); }
.kx-cash strong { font-size: 1.1rem; font-weight: 900; }
.kx-cash.is-on { background: #FEF3C7; border-color: #F5D98A; }
.kx-cash.is-on span, .kx-cash.is-on strong { color: #92400E; }
.kx-name { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.kx-sub { font-size: .78rem; font-weight: 600; color: var(--rx-mut); }
.kx-price { font-size: 1.2rem; font-weight: 900; color: #0B635C; }
.kx-route { display: flex; flex-direction: column; gap: 10px; position: relative; padding-left: 2px; }
.kx-route > div { display: flex; align-items: center; gap: 12px; font-size: .98rem; }
.kx-route::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; border-left: 2px dotted #B9C4C1; }
.kx-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 3px solid #1E3A5F; background: var(--rx-card); position: relative; z-index: 1; }
.kx-dot--end { border-color: #DC2626; }
.kx-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kx-step__t { font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff; background: #1E3A5F; }
.kx-step__t--drop { background: #B91C1C; }
.kx-place { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.kx-street { margin: 4px 0 0; font-size: 1.05rem; color: var(--rx-mut); font-weight: 500; }
.kx-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-stop { gap: 14px; }
.kx-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--rx-soft); font-size: .85rem; font-weight: 900; }
.rx-dark .kx .empty, .rx-dark .kx-route::before { border-color: #2C3B39; }
.rx-dark .kx-price { color: #5EEAD4; }
.rx-dark .kx-cash.is-on { background: #3A2A08; border-color: #5A4310; }
.rx-dark .kx-cash.is-on span, .rx-dark .kx-cash.is-on strong { color: #FCD34D; }
.rx-dark .kx-dot { border-color: #7FA8DA; }
.rx-dark .kx-dot--end { border-color: #F87171; }
.rx-dark .cpin { border-color: #0C1514; }

.rx-av svg { width: 26px; height: 28px; display: block; }

/* ---------- Administrace: nový vzhled (sdílí hlavičku, karty, lištu a nabídky s aplikacemi) ---------- */
.ax { padding-bottom: 104px; }
.ax .wrap { max-width: 1400px; padding: 8px 16px 16px; }
.ax-hd { max-width: 1400px; }
.ax .card { border-radius: 22px; border-color: var(--rx-line); }
.ax .card .card { border-radius: 16px; }
.ax .btn { border-radius: 14px; }
.ax .btn--primary, .ax .btn--ok { background: linear-gradient(135deg, #0D9488, #0F766E); border-color: transparent; color: #fff; }
.ax .empty { border-radius: 22px; border: 1.5px dashed #D5D0C4; padding: 24px 16px; }
.ax .section-title h2, .ax .card > h2 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.ax th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.ax-plain { display: flex; flex-direction: column; }
.ax-plain .section-title { margin: 6px 2px 10px; }
.ax-t { cursor: default; }
.ax-t.is-alert { background: #FEF3C7; border-color: #F5D98A; }
.ax-t.is-alert b, .ax-t.is-alert span { color: #92400E; }
.ax-exc { gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: #FEF3C7; border: 1px solid #F5D98A; color: #7C4A03; }
.ax-price { font-size: 1.1rem; font-weight: 900; color: #0B635C; }
.ax-meta { margin: 0; font-size: .85rem; color: var(--rx-mut); font-weight: 500; overflow-wrap: anywhere; }
.ax-courier { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ax-order { gap: 10px; }
.ax-person { gap: 10px; }
.ax-person.is-off .ax-person__who strong { color: var(--rx-mut); }
.ax-person__top { display: flex; align-items: center; gap: 12px; }
.ax-person__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ax-person__who strong { font-size: 1.05rem; font-weight: 900; }
.ax-person__who span { font-size: .8rem; color: var(--rx-mut); font-weight: 500; }
.ax-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--rx-soft); color: #0B635C; font-weight: 900; font-size: .9rem; }
.ax-rest { gap: 8px; padding: 14px 16px; }
.ax-rest__main { display: block; color: inherit; text-decoration: none; position: relative; }
.ax-rest__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ax-rest__top .pill { flex: none; }
.ax-rest__name { font-size: 1.08rem; font-weight: 900; letter-spacing: -.01em; margin: 0 0 2px; min-width: 0; overflow-wrap: anywhere; }
.ax-rest__hint, .ax-rest__todo, .ax-rest__warn { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: var(--rx-mut); }
.ax-rest__todo { color: #9A5B13; }
.ax-rest__warn { color: var(--red); }
.ax-rest__go { display: inline-block; margin-top: 8px; font-size: .86rem; font-weight: 800; color: #0B635C; }
a.ax-rest__main:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 4px; border-radius: 10px; }
.ax-rest .ax-more > summary { min-height: 28px; font-size: .84rem; }
.ax-search { width: 100%; box-sizing: border-box; }
.ax-tip { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: inherit; border-style: dashed; }
.ax-tip strong { color: #0B635C; font-weight: 800; }
.ax-tip span { font-size: .86rem; color: var(--rx-mut); }
.rx-dark .ax-tip strong { color: #5EEAD4; }
.rx-dark .ax-rest__todo { color: #F5C27A; }
.rx-dark .ax-rest__go { color: #5EEAD4; }
.ax-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--card); }
.ax-card > summary { flex-wrap: wrap; gap: 6px 8px; color: var(--ink) !important; font-size: 1rem !important; }
.ax-card h3 { font-size: .95rem; margin: 6px 0 0; }
.ax-card textarea { width: 100%; box-sizing: border-box; }
.ax-more > summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: #0B635C; min-height: 32px; display: flex; align-items: center; }
.ax-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rx-line); overflow-wrap: anywhere; }
.ax-acc:last-child { border-bottom: 0; }
.ax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 8px; }
.ax-g { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 13px; border: 0; border-radius: 18px; background: var(--rx-soft); color: var(--rx-ink); text-align: left; text-decoration: none; cursor: pointer; }
.ax-g .rx-ic { color: #0B635C; }
.ax-g strong { font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.ax-g strong b, .ax-side__i b { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .68rem; font-weight: 800; }
.ax-g small { font-size: .74rem; color: var(--rx-mut); font-weight: 500; }
.ax-g.is-on { outline: 2px solid #0F766E; }
.ax-side { display: none; }
.ax-me { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.rx-st { text-decoration: none; color: var(--rx-ink); }
@media (max-width: 520px) { .ax-hide-s { display: none; } }

/* počítač: sekce v levém sloupci, lišta dole zmizí */
@media (min-width: 1000px) {
  .ax { padding: 0 0 32px 232px; }
  .ax-nav { display: none; }
  .ax .rx-dim { align-items: center; }
  .ax-side { display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 232px; padding: 16px 12px; background: #0E1F1D; color: #9DB1AE; overflow-y: auto; }
  .ax-side__logo { display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; text-decoration: none; color: #fff; font-family: Fredoka, Archivo, sans-serif; font-weight: 700; font-size: 1.45rem; }
  .ax-side__logo i { font-style: normal; color: #F4B98F; }
  .ax-side__logo .rx-av { width: 36px; height: 36px; border-radius: 12px; box-shadow: none; }
  .ax-side__logo .rx-av svg { width: 22px; height: 24px; }
  .ax-side__i { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; text-align: left; cursor: pointer; }
  .ax-side__i:hover { background: #172624; color: #fff; }
  .ax-side__i.is-on { background: #1D2B29; color: #fff; }
  .ax-side__i b { margin-left: auto; }
  .ax-side__i--low { margin-top: 8px; }
  .ax-side__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #22302E; }
  .ax-side__me { display: flex; flex-direction: column; padding: 4px 10px 8px; }
  .ax-side__me strong { color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ax-side__me span { font-size: .76rem; }
  .ax-hd { padding: 22px 16px 8px; }
  .ax-hd > .rx-av { display: none; }
  .ax-hd .rx-who strong { font-size: 1.5rem; }
  .ax-me { display: none; }
  .ax .rx-tiles { max-width: 640px; padding-top: 4px; }
}
.rx-dark .ax-exc, .rx-dark .ax-t.is-alert { background: #3A2A08; border-color: #5A4310; color: #FCD34D; }
.rx-dark .ax-t.is-alert b, .rx-dark .ax-t.is-alert span { color: #FCD34D; }
.rx-dark .ax-price, .rx-dark .ax-ava, .rx-dark .ax-g .rx-ic, .rx-dark .ax-more > summary { color: #5EEAD4; }
.rx-dark .ax .empty { border-color: #2C3B39; }
.rx-dark .contract-text { background: var(--card); }
.rx-dark .ax-g.is-on { outline-color: #5EEAD4; }

/* administrace na telefonu: nic nesmí roztáhnout stránku do šířky, široké tabulky se posouvají uvnitř karty */
.ax .admin-grid { grid-template-columns: minmax(0, 1fr); }
.ax .admin-grid > *, .ax .card, .ax .stack > * { min-width: 0; }
.ax .card { overflow-x: auto; }
.ax .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.ax dialog { color: var(--ink); background: var(--card); }

/* mapy nesmí překrývat plovoucí lištu ani výsuvné nabídky (Leaflet má vlastní vysoké vrstvy) */
.leaflet-container { isolation: isolate; z-index: 0; }
.ax .section-title { flex-wrap: wrap; gap: 4px 12px; }

/* Přepínač podkladu mapy (běžná / letecká): výchozí styly formulářů by ho roztáhly */
.leaflet-control-layers { border-radius: 10px !important; font: 600 .8rem/1.2 inherit; }
.leaflet-control-layers label { display: block; margin: 2px 0; font-weight: 600; }
.leaflet-control-layers label > span { display: flex; align-items: center; gap: 6px; }
.leaflet-control-layers input[type=radio] { width: 16px !important; height: 16px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; flex: none; box-shadow: none !important; }

/* --- Kurýři: statistiky --- */
.ax-seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ax-seg::-webkit-scrollbar { display: none; }
.ax-seg .btn { flex: none; }
.ax-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ax-num { background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-num b { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-num span { font-size: .8rem; font-weight: 700; color: var(--rx-mut); }
.ax-num small { font-size: .74rem; color: var(--rx-mut); }
.ax-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: .86rem; font-weight: 600; }
.ax-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ax-tools .ax-search { flex: 1 1 200px; width: auto; }
.ax-tools select { width: auto; }
.ax-cols { position: relative; }
.ax-cols > summary { list-style: none; cursor: pointer; }
.ax-cols > summary::-webkit-details-marker { display: none; }
.ax-cols__box { position: absolute; right: 0; z-index: 20; margin-top: 6px; min-width: 190px; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 28px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 6px; }
.ax-cols__box label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.ax-cols__box input { width: auto; }
.ax-stats { font-variant-numeric: tabular-nums; }
.ax-stats th, .ax-stats td { white-space: nowrap; }
.ax-stats tr.is-off td { opacity: .55; }
.ax-stats tfoot td { border-top: 2px solid var(--rx-line); }
.ax-th { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; white-space: nowrap; }
.ax-th:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 3px; border-radius: 4px; }
.ax-utilc { display: inline-flex; flex-direction: column; gap: 4px; min-width: 86px; }
.ax-util { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--rx-soft); }
.ax-util--big { height: 16px; }
.ax-util i { display: block; height: 100%; }
.ax-util__to { background: #3B82F6; }
.ax-util__wait { background: #F59E0B; }
.ax-util__drive { background: #0F766E; }
.ax-util__idle { background: var(--rx-soft); }
.ax-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.ax-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; border: 1px solid var(--rx-line); }
.ax-cour { color: inherit; text-decoration: none; }
.ax-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.ax-kv > div { display: flex; flex-direction: column; min-width: 0; }
.ax-kv small { font-size: .7rem; font-weight: 700; color: var(--rx-mut); }
.ax-kv b { font-size: .92rem; font-weight: 800; overflow-wrap: anywhere; }
.ax-back { font-weight: 800; color: #0B635C; text-decoration: none; }
.rx-dark .ax-back { color: #5EEAD4; }
.ax-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; overflow-x: auto; }
.ax-bars__c { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; min-width: 14px; }
.ax-bars__c i { display: block; width: 100%; max-width: 28px; min-height: 2px; background: #0F766E; border-radius: 4px 4px 0 0; }
.ax-bars__c b { font-size: .68rem; font-weight: 800; }
.ax-bars__c small { font-size: .66rem; color: var(--rx-mut); }
/* odeslané zprávy: na telefonu stav pod adresátem, ne mimo obrazovku */
.ax-log { display: flex; flex-direction: column; }
.ax-log__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rx-line, var(--line)); }
.ax-log__row:last-child { border-bottom: 0; }
.ax-log__when { color: var(--rx-mut, var(--muted)); font-variant-numeric: tabular-nums; min-width: 96px; }
.ax-log__row strong { overflow-wrap: anywhere; }
.ax-log__state { flex: 1 1 180px; font-weight: 700; }
@media (min-width: 760px) { .ax-log__state { text-align: right; } }

/* návod pro obchodní zástupce */
.guide { line-height: 1.6; max-width: 820px; }
.guide h2 { font-size: 1.15rem; font-weight: 900; margin: 22px 0 8px; }
.guide h2:first-of-type { margin-top: 8px; }
.guide ul, .guide ol { padding-left: 22px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.guide dt { font-weight: 800; margin-top: 12px; }
.guide dd { margin: 2px 0 0; color: var(--muted); }
.guide__lead { font-size: 1.05rem; }
