/* EUROCNG ONE – společný vzhled jádra i modulů.
   Barvy, písmo a tvary vycházejí z původního CRM a Tankování. Bez skriptů (CSP). */

@font-face {
    font-family: Montserrat;
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --n: #0D1F69;      /* modrá: hlavička, text */
    --n2: #16297F;
    --g: #82C91E;      /* zelená: hlavní tlačítko, aktivní položka */
    --future: #12B8B0; /* tyrkysová „barva budoucnosti“: všechno, co teprve bude (objednáno, plánováno, budoucí termín) */
    --gd: #6FAE15;
    --bg: #F5F7FB;
    --ln: #E7E9F0;
    --bd: #D5DAE8;     /* okraje polí a tlačítek */
    --mu: #5B6690;     /* šedý text */
    --red: #C62828;
    --red-soft: #FDE2E1;
    --or: #9A4A00;
    --bl: #E8EEFF;     /* světle modrá: štítky, ikony */
    --ok: #3F6B07;
    --ok-soft: #EEF7E1;
    --warn-soft: #FFF4DC;
    --warn: #7A5B00;   /* text upozornění na žlutém podkladu */
    /* Škála písma a zaoblení (uživatel 16. 11. 2026): moduly používají jen tyto hodnoty, ne vlastní čísla. */
    --fs-xs: 11px;     /* drobné popisky, počty */
    --fs-s: 12px;      /* popisky polí, štítky */
    --fs-sm: 13px;     /* vedlejší text, řádky seznamů */
    --fs-m: 14px;      /* běžný text, tlačítka, menu */
    --fs-l: 16px;      /* zvýrazněný text, nadpis karty na telefonu */
    --fs-xl: 20px;     /* nadpis aplikace, nadpisy oddílů */
    --fs-num: 24px;    /* velká čísla v dlaždicích */
    --fs-h: 28px;      /* nadpis stránky */
    --r-s: 12px;       /* drobné prvky, pole v řádku */
    --r-btn: 14px;     /* tlačítka a pole */
    --r-m: 16px;       /* řádky seznamů, menší karty */
    --r-l: 20px;       /* karty */
    --r-pill: 999px;   /* čipy, štítky */
    --shadow: 0 1px 2px rgba(13, 31, 105, .06);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--n);
    font: 500 15px/1.45 Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--n); }
a:hover { color: var(--n2); }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.25; }
h1 { font-size: var(--fs-num); margin-bottom: 14px; }
h2 { font-size: var(--fs-l); }
p { margin: 0 0 10px; }
code { font-size: var(--fs-sm); background: var(--bg); padding: 1px 5px; border-radius: 6px; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-l); color: var(--n); }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }

.muted { color: var(--mu); font-size: var(--fs-sm); }

/* ---------- Hlavička ---------- */

.top { background: var(--n); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 20px; min-height: 64px; }

.top .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.top .brand:hover { color: #fff; }
.brand-one { display: flex; align-items: flex-start; gap: 3px; }
.brand-one b { font-size: var(--fs-h); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.brand-one img { width: 20px; height: 18px; margin-top: -6px; display: block; }
.brand-sep { width: 2px; height: 26px; background: var(--g); border-radius: 1px; }
.brand-co { font-size: var(--fs-xs); letter-spacing: .16em; line-height: 1; font-weight: 500; }
.brand-co b { font-weight: 800; }

/* Druhá řada hlavičky: menu jako záložky přes celou šířku; co se nevejde, posune se do strany. */
.tnav { border-top: 1px solid rgba(255, 255, 255, .1); }
/* Menu nepřetéká (uživatel 16. 11. 2026): Přehled + prvních 6 aplikací, vpravo „Aplikace“ s mřížkou všech. */
.tnav-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; height: 48px; }
.tnav-links { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; height: 48px; }
.tnav-links::-webkit-scrollbar { display: none; }
.tnav-apps { position: relative; flex: none; }
.top .tnav-apps summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--r-pill); color: #fff; font-weight: 600; font-size: var(--fs-m); white-space: nowrap; }
.top .tnav-apps summary::-webkit-details-marker { display: none; }
.top .tnav-apps summary:hover, .top .tnav-apps[open] summary { background: rgba(255, 255, 255, .1); }
.top .tnav-apps summary.on { border-color: var(--g); }
.tnav-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; max-width: calc(100vw - 32px); background: #fff; border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(13, 31, 105, .22); padding: 14px; z-index: 25; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.top .tnav-pop a.appt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 4px 2px; border: 0; border-radius: var(--r-s); color: var(--n); font-size: var(--fs-s); font-weight: 600; text-align: center; white-space: normal; text-decoration: none; }
.top .tnav-pop a.appt:hover { background: var(--bg); color: var(--n); }
.top .tnav-pop a.appt[aria-current] span:not(.tcount) { color: var(--n); font-weight: 800; text-decoration: underline; text-decoration-color: var(--g); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.top .tnav-pop .app-ic { width: 52px; height: 52px; border-radius: var(--r-m); }
.top .tnav-pop .app-ic .ico { width: 26px; height: 26px; }
.top .tnav-pop .tcount { position: absolute; top: 0; right: 12px; margin: 0; }
.top .tnav-pop .app-car { width: 30px; }
.top .tnav-pop .app-pump { width: 38px; }
.top .tnav-pop .app-garage { width: 36px; }
.top .tnav-pop .app-tag { font-size: 9px; padding: 2px 5px; }
.top .tnav a { color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-m); padding: 0 14px; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: 7px; min-height: 44px; }
.top .tnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.top .tnav a.on { border-bottom-color: var(--g); color: #fff; font-weight: 800; }
.top .tnav .ico { width: 16px; height: 16px; }

/* Já a nabídka pod fotkou (details, bez skriptu). */
.me-menu { position: relative; margin-left: auto; flex: none; }
.top .me { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: var(--fs-m); min-height: 44px; cursor: pointer; list-style: none; border-radius: var(--r-s); padding-right: 6px; }
body .top summary.me { padding: 0 6px 0 0; color: #fff; }
.top .me::-webkit-details-marker { display: none; }
.top .me:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.top .me .ico { width: 16px; height: 16px; }
.top .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; color: var(--n); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(13, 31, 105, .22); padding: 8px; z-index: 25; }
.me-full { padding: 8px 12px 10px; color: var(--mu); font-size: var(--fs-sm); font-weight: 600; }
body .top .me-pop .me-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--n); font-size: var(--fs-m); font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
body .top .me-pop .me-item:hover { background: var(--bg); color: var(--n); }
.top form { margin: 0; }
body .top form .btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; height: 40px; }
body .top form .btn:hover { background: rgba(255, 255, 255, .1); }

/* Lišta má přednost před styly modulů (např. „body.crm a“ v EuroCRM), proto začíná .top / body .top. */

/* ---------- Spodní menu na telefonu ---------- */

.bnav { display: none; }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--mu); font-size: var(--fs-xs); font-weight: 600; padding: 4px 0; min-width: 0; }
.bnav .bi { display: flex; padding: 4px 12px; border-radius: var(--r-s); }
.bnav a.on { color: var(--n); font-weight: 800; }
.bnav a.on .bi { background: var(--g); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Stránka ---------- */

main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 48px; }

.hero { background: var(--n); color: #fff; border-radius: 0 0 26px 26px; }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 14px 20px 28px; }
.hero .date { color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }
.hero h1 { font-size: 30px; margin: 2px 0 6px; line-height: 1.2; }
.hero p { color: rgba(255, 255, 255, .85); margin: 0; }
.hero strong { color: var(--g); font-weight: 800; }
.hero a { color: #fff; }
.notes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.note { background: rgba(255, 255, 255, .1); border-radius: var(--r-m); padding: 11px 14px; font-size: var(--fs-sm); font-weight: 600; }

.ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { flex: 1; margin: 0; }
.sec { margin-bottom: 26px; }
.sh { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; }
.sh h2 { flex: 1; }
.cols { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.cols > * { flex: 1 1 320px; margin-bottom: 0; }

.card { background: #fff; border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.cols > .card { margin-bottom: 0; }
.card.warn { background: var(--warn-soft); box-shadow: none; }
.card > h2 { margin-bottom: 12px; }

/* Dlaždice aplikace */
.app { display: flex; gap: 16px; align-items: center; text-decoration: none; padding: 20px; }
.app:hover { box-shadow: 0 2px 8px rgba(13, 31, 105, .12); }
.app-ic { width: 68px; height: 68px; border-radius: var(--r-l); background: var(--n2); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; }
.app-ic .ico { width: 32px; height: 32px; }
.app-car { width: 40px; display: block; }
.app-pump { width: 52px; display: block; }
.app-garage { width: 48px; display: block; }
.app-tag { background: var(--g); color: var(--n); font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: .12em; padding: 3px 6px 3px 8px; border-radius: 5px; }
.app-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-tx b { font-size: var(--fs-xl); font-weight: 800; }
.app-go { background: var(--g); font-weight: 800; font-size: var(--fs-m); height: 44px; padding: 0 16px; border-radius: var(--r-btn); display: flex; align-items: center; }

/* Řádek seznamu */
.row-item { background: #fff; border-radius: var(--r-l); padding: 12px 14px 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; }
.row-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.row-main b { font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); flex: none; }
.dot.red { background: var(--red); }
.dot.orange { background: #F59E0B; }
.state { display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 700; }
.state .dot { width: 8px; height: 8px; }
.state.off { color: var(--red); }

/* Žebříček a ocenění */
.board { display: flex; flex-direction: column; gap: 10px; }
.board-row { display: flex; align-items: center; gap: 12px; }
.board-row b { flex: 1; font-weight: 700; }
.rank { width: 34px; height: 34px; border-radius: 11px; background: var(--bl); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.rank.first { background: var(--g); }
.win { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--r-m); padding: 12px; margin-top: 10px; }
.win .emo { font-size: var(--fs-h); }
.win small { display: block; font-size: var(--fs-s); font-weight: 700; color: var(--mu); }

/* Tlačítka */
.btn { height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--g); background: var(--g); color: var(--n); font-weight: 800; font-size: var(--fs-m); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--gd); border-color: var(--gd); color: var(--n); }
.btn.plain { background: #fff; border-color: var(--bd); font-weight: 700; }
.btn.plain:hover { background: var(--bg); }
.btn.dark { background: var(--n); border-color: var(--n); color: #fff; }
.btn.danger { background: #fff; border-color: #F3C5C3; color: var(--red); font-weight: 700; }
.btn.red-soft { background: var(--red-soft); border-color: var(--red-soft); color: var(--red); }
.btn.red-soft:hover { background: #F9CFCD; border-color: #F9CFCD; color: var(--red); }
.btn.sm { height: 38px; padding: 0 12px; font-size: var(--fs-sm); }
.btn.big { height: 52px; font-size: var(--fs-l); width: 100%; }

/* Štítky */
.badge { background: var(--g); font-weight: 800; font-size: var(--fs-s); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.badge.b { background: var(--bl); }
.badge.n { background: var(--n); color: #fff; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.r { background: var(--red-soft); color: var(--red); }
.badge.warn { background: var(--warn-soft); }
/* Objednaný vůz: tyrkysová „barva budoucnosti“ (stejně jako tyrkysový řádek objednaných aut v tabulce). */
.badge.future, .tag.future { background: var(--future); color: #fff; }
/* Štítek stavu vozu – jeden pro všechny aplikace (App\Support\Vehicles\VehicleStatus, partials/vehicle-status).
   Tečka rozliší stav i bez barvy. */
.st { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 4px 11px; font-size: var(--fs-s); font-weight: 800; white-space: nowrap; line-height: 1.3; background: var(--ln); color: var(--n); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.st-ordered, .chip.st-ordered, .chips .chip-st.sel.st-ordered { background: var(--future); color: #fff; }
.st-ordered::before, .st-delivered::before { opacity: .85; }
.st-in-transit, .chip.st-in-transit, .chips .chip-st.sel.st-in-transit { background: #E7E9F0; color: var(--n); }
.st-preparing, .chip.st-preparing, .chips .chip-st.sel.st-preparing { background: #FFE8CC; color: var(--or); }
.st-advertised, .chip.st-advertised, .chips .chip-st.sel.st-advertised { background: var(--g); color: var(--n); }
.st-reserved, .chip.st-reserved, .chips .chip-st.sel.st-reserved { background: #FFF3BF; color: var(--warn); }
.st-reserved-deposit, .chip.st-reserved-deposit, .chips .chip-st.sel.st-reserved-deposit { background: #FFD43B; color: var(--n); }
.st-sold, .chip.st-sold, .chips .chip-st.sel.st-sold { background: #D8F0B4; color: var(--ok); }
.st-delivered, .chip.st-delivered, .chips .chip-st.sel.st-delivered { background: var(--ok); color: #fff; }
.st-off-sale, .chip.st-off-sale, .chips .chip-st.sel.st-off-sale { background: #D5DAE8; color: var(--n); }
.st-retired, .chip.st-retired, .chips .chip-st.sel.st-retired { background: var(--red-soft); color: var(--red); }
.st-note { font-size: var(--fs-s); font-weight: 700; color: var(--mu); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--bd); background: #fff; border-radius: var(--r-pill); padding: 9px 14px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.chip.on { background: var(--n); border-color: var(--n); color: #fff; }
/* Čipy stavů vozu (Sklad vozů i CRM, uživatel 15. 11. 2026): tečka v barvě štítku, vybraný v barvě štítku, malý šedý počet. */
.chip-st { display: inline-flex; align-items: center; gap: 6px; }
.chip-st .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(11,31,102,.12); }
.chip-st .cnt { font-weight: 500; font-size: var(--fs-s); color: var(--mu); }
.chip-st.on .cnt, .chip-st.sel .cnt { color: inherit; opacity: .75; }
.chip-st.sel, .chips .chip-st.sel { border-color: transparent; }
.chip-st.sel .dot { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
/* Světlé štítky mají v tečce sytější odstín stejné barvy, ať je na bílém čipu vidět. */
.chip-st .dot.st-ordered { background: var(--future); }
.chip-st .dot.st-advertised { background: var(--g); }
.chip-st .dot.st-reserved-deposit { background: #FFD43B; }
.chip-st .dot.st-delivered { background: var(--ok); }
.chip-st .dot.st-in-transit { background: #8A93B3; }
.chip-st .dot.st-preparing { background: var(--or); }
.chip-st .dot.st-reserved { background: #F2C230; }
.chip-st .dot.st-sold { background: #7CC243; }
.chip-st .dot.st-off-sale { background: #9AA3C0; }
.chip-st .dot.st-retired { background: var(--red); }

/* Hlášky */
.msg { background: var(--ok-soft); color: var(--ok); border-radius: var(--r-btn); padding: 11px 14px; font-weight: 700; font-size: var(--fs-m); margin-bottom: 14px; }
.msg.err { background: var(--red-soft); color: var(--red); }
.msg.warn { background: var(--warn-soft); color: var(--n); font-weight: 600; }
.msg.warn p { margin: 0 0 8px; }
/* Zrcadlo: pruh záložní platformy pod hlavičkou (jen na zrcadle) – žlutě pohotovost, tyrkysově zkouška, červeně ostrý provoz. */
.mirror-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 16px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); }
.mirror-bar a { color: inherit; font-weight: 700; }
.mirror-bar.mirror-drill { background: #D9F5F3; color: var(--n); }
.mirror-bar.mirror-live { background: var(--red-soft); color: var(--red); }
.banner { background: var(--warn-soft); border-radius: var(--r-m); padding: 12px 16px; margin-bottom: 14px; }

/* Formuláře */
label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--mu); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=date], input[type=tel], input[type=search], input[type=number], input:not([type]), textarea, select {
    width: 100%; border: 1px solid var(--bd); border-radius: var(--r-s); padding: 11px 12px; background: #fff; font-weight: 500;
}
input:disabled { background: var(--bg); color: var(--mu); }
input[type=file] { font-size: var(--fs-m); max-width: 100%; }
textarea { resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--n); flex: none; margin: 0; }
label.chk { display: flex; align-items: center; gap: 10px; font-size: var(--fs-m); font-weight: 500; color: var(--n); margin: 0; min-height: 30px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { margin-top: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.row .grow { flex: 1; min-width: 200px; }
form.inline { display: inline; margin: 0; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
legend { font-size: var(--fs-sm); font-weight: 800; padding: 0; margin-bottom: 8px; }
.group { background: var(--bg); border-radius: var(--r-m); padding: 12px; margin: 0; }
.group legend { float: left; width: 100%; }
.group .checks { clear: both; }
.checks { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.group .checks { grid-template-columns: 1fr; }

/* Fotka nebo iniciály */
.avatar { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: var(--bl); color: var(--n); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-m); font-weight: 800; flex: none; text-decoration: none; }
.avatar.big { width: 72px; height: 72px; border-radius: 22px; font-size: var(--fs-num); }

/* Lidé */
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-head h2 { font-size: var(--fs-xl); }
.person-head .role { font-size: var(--fs-sm); font-weight: 700; margin-top: 2px; }
.person p { margin: 0; font-size: var(--fs-m); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges span { width: 38px; height: 38px; border-radius: var(--r-s); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); }
/* Výběr odznaků a značky jako obrázkové dlaždice (profil, uživatel 15. 11. 2026). */
.pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 10px 6px; border: 2px solid var(--line, #E3E7F2); border-radius: var(--r-m); background: #fff; cursor: pointer; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--n); margin: 0; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-ico { font-size: 32px; line-height: 1; }
.pick:has(input:checked) { border-color: var(--g); background: var(--ok-soft); }
.pick:has(input:checked)::after { content: '✓'; position: absolute; top: 6px; right: 8px; font-weight: 800; color: var(--ok); }
.pick:has(input:focus-visible) { outline: 3px solid var(--bl); outline-offset: 2px; }
.awards { display: flex; gap: 6px; flex-wrap: wrap; }
.award { background: var(--warn-soft); border-radius: var(--r-pill); padding: 5px 11px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.contact { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.ic { width: 44px; height: 44px; border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; background: var(--bl); color: var(--n); }
.ic.call { background: var(--ok-soft); color: var(--ok); }
.contact-tx { font-size: var(--fs-sm); min-width: 0; overflow-wrap: anywhere; }

/* Správa uživatelů (uživatel 16. 11. 2026): přehled aplikace × role a úprava po aplikacích */
.rp { display: inline-block; font-size: var(--fs-s); font-weight: 700; border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; background: var(--bg); color: var(--mu); }
.rp-top { background: var(--n); color: #fff; }
.rp-man { background: var(--bl); color: var(--n); }
.rp-edit { background: var(--ok-soft); color: var(--ok); }
.rp-read { background: var(--bg); color: var(--mu); }
.rp-no { background: none; color: #B8BFD3; padding: 4px 2px; }
.umx-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--mu); font-size: var(--fs-s); margin: 4px 2px 12px; }
.umx { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.umx-row { display: grid; grid-template-columns: minmax(230px, 1.7fr) repeat(var(--umx-cols, 7), minmax(78px, 1fr)) 96px; align-items: center; min-height: 64px; border-top: 1px solid var(--ln); color: var(--n); text-decoration: none; }
.umx-row:first-child { border-top: 0; }
a.umx-row:hover { background: #F7F9FD; }
.umx-head { background: #F7F9FD; font-size: var(--fs-s); font-weight: 700; color: var(--mu); min-height: 84px; }
.umx-head > .umx-u { padding-left: 16px; }
.umx-app { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.umx-app small { font-size: var(--fs-xs); font-weight: 600; color: var(--or); }
.umx-app .app-ic, .uapp-h .app-ic { width: 36px; height: 36px; border-radius: var(--r-s); gap: 1px; }
.umx-app .app-ic svg, .uapp-h .app-ic svg { width: 24px; }
.umx-app .app-ic .ico, .uapp-h .app-ic .ico { width: 20px; height: 20px; }
.umx-app .app-tag, .uapp-h .app-tag { font-size: 7px; padding: 1px 3px; }
.umx-u { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-width: 0; }
.umx-u b { display: block; font-size: var(--fs-l); }
.umx-u small { display: block; color: var(--mu); font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; }
.umx-adm { display: inline-block; background: var(--n); color: #fff; font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.umx-c { text-align: center; }
.umx-row .state { justify-content: flex-end; padding-right: 14px; }
.umx-row .state .ico { width: 16px; height: 16px; color: var(--mu); }
.umx-row.off .umx-u b { color: var(--mu); }
.umx-row.off .avatar { background: var(--ln); color: var(--mu); }
@media (max-width: 1100px) {
    .umx-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
    .umx-head { display: none; }
    .umx-u { flex: 1 1 100%; padding: 0; }
    .umx-c { text-align: left; }
    .umx-c::before { content: attr(data-app) " "; font-size: var(--fs-xs); color: var(--mu); font-weight: 700; }
    .umx-c.rp-cell-no { display: none; }
    .umx-row .state { flex: 1 1 100%; padding: 0; justify-content: flex-start; }
}
.uedit h2 { margin-top: 22px; }
.uedit-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.uedit-base { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.uedit-base label.chk { min-height: 44px; font-weight: 700; }
.uedit-pos { display: flex; flex-wrap: wrap; gap: 8px; }
.uedit-pos label.chk { border: 1px solid var(--ln); border-radius: var(--r-btn); padding: 0 14px; min-height: 44px; font-weight: 700; background: #fff; }
.uedit-pos label.chk:has(input:checked) { border-color: var(--n); background: #EEF2FF; }
.uedit-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
fieldset.uapp { margin: 0; border: 1px solid var(--ln); border-radius: var(--r-m); padding: 14px; background: #FBFCFE; }
.uapp-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin-bottom: 8px; float: left; }
.uapp-h + * { clear: both; }
.uapp-n { flex: 1; font-weight: 800; color: var(--n); font-size: var(--fs-l); }
.uapp-note { background: var(--bg); border-radius: var(--r-s); padding: 8px 10px; color: var(--mu); font-size: var(--fs-sm); margin: 0 0 6px; clear: both; }
label.uopt, label.uplat { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-s); min-height: 44px; cursor: pointer; margin: 0; clear: both; }
label.uopt:has(input:checked) { background: #EEF2FF; }
label.uopt input, label.uplat input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--n); flex: none; }
label.uopt b, label.uplat b { display: block; color: var(--n); font-size: var(--fs-m); }
label.uopt small, label.uplat small { display: block; color: var(--mu); font-size: var(--fs-s); font-weight: 500; }
label.uplat { border: 1px solid #F3C4C4; background: #FFF6F6; padding: 12px 14px; }
.uapp-can { list-style: none; margin: 4px 0 0; padding: 0 10px; clear: both; }
.uapp-can li { font-size: var(--fs-sm); font-weight: 700; color: var(--ok); padding: 3px 0; }
.uapp-can li.no { color: var(--mu); font-weight: 500; }
.uedit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 760px) { .uedit-base { grid-template-columns: 1fr; } }

/* Přihlášení */
body.login { background: var(--n); }
body.login main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 20px; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.login-one { display: flex; align-items: flex-start; gap: 6px; }
.login-one b { font-size: 64px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.login-one img { width: 48px; height: 44px; margin-top: -14px; display: block; }
.login-co { display: flex; align-items: center; gap: 10px; font-size: var(--fs-m); letter-spacing: .22em; line-height: 1; font-weight: 300; }
.login-co b { font-weight: 800; }
.login-co i { width: 26px; height: 3px; border-radius: 2px; background: var(--g); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 28px 24px; text-align: center; }
.login-card h1 { margin-bottom: 6px; }
.login-about { color: var(--mu); font-size: var(--fs-m); margin: 0 0 18px; }
.login-about strong { color: var(--n); font-weight: 700; white-space: nowrap; }

/* 404 pro přihlášené */
.lost { text-align: center; padding: 48px 20px; }
.lost .big { font-size: 72px; line-height: 1; }
.lost h1 { margin: 16px 0 8px; }
.lost .btn { margin-top: 12px; }

/* Konfety pro oslavence */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti span { position: absolute; top: -40px; font-size: var(--fs-num); animation: fall linear 2 both; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
/* Vánoční sněžení na přehledu (20.–26. 12.): pomalé, nekonečné, průsvitné vločky. */
.confetti.snow span { font-size: var(--fs-l); opacity: .75; animation: snowfall linear infinite both; }
@keyframes snowfall { from { transform: translate(0, 0); } 50% { transform: translate(18px, 55vh); } to { transform: translate(-10px, 110vh); opacity: .2; } }

/* Hledání vozu v hlavičce (jen pro ty, kdo smí do Skladu vozů): široké pole uprostřed horní řady.
   Selektory začínají „body .top“ a input má [type=search], aby přebily obecné styly modulů (EuroCRM: body.crm label, body.crm input[type=search]). */
.top .tsearch { flex: 0 1 520px; min-width: 180px; margin: 0 auto; }
body .top .tsearch label { display: flex; flex-direction: row; margin: 0; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); cursor: text; font-size: var(--fs-m); font-weight: 500; }
body .top .tsearch input[type=search] { flex: 1; width: auto; min-width: 0; height: 42px; border: 0; border-radius: 0; padding: 0; background: transparent; color: #fff; font-size: var(--fs-m); font-weight: 500; outline: 0; box-shadow: none; }
body .top .tsearch input[type=search]::placeholder { color: rgba(255, 255, 255, .75); }
body .top .tsearch label:focus-within { background: #fff; color: var(--mu); box-shadow: 0 0 0 2px var(--g); }
body .top .tsearch label:focus-within input[type=search] { color: var(--n); }
body .top .tsearch label:focus-within input[type=search]::placeholder { color: var(--mu); }

/* Sklad vozů: katalog a tabulka. */
.tag { display: inline-block; background: var(--bg); border-radius: var(--r-pill); padding: 3px 9px; font-size: var(--fs-s); font-weight: 700; white-space: nowrap; }
/* Standardní filtr seznamu (komponenta x-list-filter, uživatel 16. 11. 2026): hledání, rozbalovací Filtry a řazení. */
.lfilter .lfilter-search { display: flex; gap: 8px; }
.lfilter .lfilter-search input { flex: 1; min-width: 0; }
.lfilter .lfilter-search .btn .ico { width: 18px; height: 18px; }
.lfilter details { margin-top: 12px; }
.lfilter-count { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--mu); }
.lfilter-count + details { margin-top: 4px; }
.lfilter summary { cursor: pointer; font-weight: 700; font-size: var(--fs-m); min-height: 44px; display: flex; align-items: center; }
.lfilter-selects { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.lfilter-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--mu); min-height: 44px; }
.sk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sk-bar h2 { flex: 1; margin: 0; }
.sk-views .chip { display: inline-flex; align-items: center; min-height: 44px; }
.sk-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sk-car { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--n); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sk-car:hover { box-shadow: 0 2px 8px rgba(13, 31, 105, .18); color: var(--n); }
.sk-car-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sk-car-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; align-self: stretch; }
.sk-price { font-weight: 800; font-size: 18px; }
.sk-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.sk-vin { overflow-wrap: anywhere; }
.deal-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.deal h3 { margin: 14px 0 6px; font-size: var(--fs-m); }
/* Nákup, prodej, předání s vyplněným datem zezelenají (uživatel 14. 11. 2026). */
.deal.done { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--g), var(--shadow); }
.deal.done .econ-row { border-color: rgba(63, 107, 7, .18); }
.deal h2 .badge { margin-left: 8px; vertical-align: middle; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--ln); }
.pay-row form { margin: 0; }
.inline-edit { margin-top: 12px; }
.inline-edit > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit form { margin-top: 10px; }
/* Otevřený formulář zavírá Zrušit (partials/form-actions), nadpis se schová jako u úpravy pole. */
.inline-edit[open] > summary { display: none; }
.inline-edit[open] form { margin-top: 0; }
.form-actions { margin-top: 10px; }
.inline-edit input:not([type=radio]):not([type=checkbox]), .inline-edit select { width: 100%; }
@media (max-width: 960px) { .deal-cols { grid-template-columns: 1fr; } }
.lfilter.is-loading ~ * { opacity: .6; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .lfilter.is-loading ~ * { transition: none; } }
.ins fieldset { border: 0; margin: 0; min-width: 0; }
.ins h2 { margin-top: 0; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ln); border-radius: var(--r-btn); background: #fff; font-weight: 700; color: var(--n); }
.tile input:checked + span { border-color: var(--n); background: var(--n); color: #fff; }
.tile input:focus-visible + span { outline: 3px solid var(--g); outline-offset: 2px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ins-grid input { width: 100%; }
/* Částka v Kč: pole s jednotkou vpravo, bez šipek prohlížeče (uživatel 14. 11. 2026). */
.money { position: relative; display: block; margin-top: 5px; }
.money input { padding-right: 44px; font-size: var(--fs-l); font-weight: 700; color: var(--n); text-align: right; }
.money i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--mu); pointer-events: none; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ins .card { padding: 18px 20px; }
.ins-grid label { font-size: var(--fs-sm); }
.ins-grid input, .ins-grid select { margin-top: 5px; }
.ins-grid input[name=financing_amount] { text-align: right; font-weight: 700; }
.money input { margin-top: 0; }
.ins-profit { display: inline-block; margin: 10px 0 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: var(--fs-sm); }
.ins-profit.neg { background: var(--red-soft); color: var(--red); }
/* Hvězdičky u polí z Google tabulky (uživatel 17. 11. 2026): zelená = tabulka jen doplní prázdné, oranžová = import přepíše. */
.star { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: var(--fs-s); font-weight: 800; line-height: 1; text-decoration: none; margin-left: 4px; vertical-align: 1px; cursor: help; }
.star.fill { background: #C0DD97; color: #27500A; }
.star.sheet { background: #F5C4B3; color: #993C1D; }
.star-legend { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-size: var(--fs-sm); }
.star-legend .star { margin: 0 6px 0 0; }
.fcard-log { flex-basis: 100%; }
.flog-last { margin: 6px 0 0; font-size: var(--fs-s); color: var(--mu); }
.flog-last .ico { width: 13px; height: 13px; vertical-align: -2px; }
.flog { margin-top: 6px; border-top: 1px solid var(--ln); padding-top: 4px; font-size: var(--fs-s); }
.flog > summary { cursor: pointer; font-weight: 700; color: var(--n); min-height: 32px; display: flex; align-items: center; }
.flog-rows { display: grid; grid-template-columns: auto auto 1fr; gap: 3px 10px; padding-bottom: 4px; }
.fcard-quick { flex-basis: 100%; margin: 6px 0 0; }
.fcard-quick .btn { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.fcard-quick .btn.plain { background: #fff; color: var(--n); border-color: var(--ln); }
.fcard-quick .ico { width: 15px; height: 15px; }
.flog-undo { margin: 4px 0 6px; }
.flog-undo .btn { min-height: 36px; padding: 6px 12px; font-size: var(--fs-sm); }
.flog-undo .ico { width: 15px; height: 15px; }
.econ-sheet > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
.econ-sheet > summary h2 { margin: 0; }
.econ-sheet[open] > summary { margin-bottom: 8px; }
.sk-rows { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.sk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 80px 120px; gap: 12px; align-items: center; padding: 8px 14px; min-height: 64px; border-bottom: 1px solid var(--ln); text-decoration: none; color: var(--n); }
.sk-row:last-child { border-bottom: 0; }
.sk-row:hover { background: var(--bg); color: var(--n); }
.sk-row > img, .sk-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: var(--r-s); background: var(--bg); display: block; }
.sk-noimg { background: var(--n2); display: flex; align-items: center; justify-content: center; }
.sk-noimg img { width: 26px; height: auto; }
.sk-row-main { display: flex; flex-direction: column; min-width: 0; }
.sk-row-main strong, .sk-row-main .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-row-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sk-row-days { text-align: right; }
.sk-row-price { text-align: right; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); max-width: 100%; }
.tbl { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.tbl th, .tbl td { padding: 9px 10px; border-top: 1px solid var(--ln); text-align: left; vertical-align: top; }
.tbl thead th { border-top: 0; color: var(--mu); font-size: var(--fs-s); white-space: nowrap; position: sticky; top: 0; background: #fff; }
.tbl th a { color: inherit; text-decoration: none; }
.tbl th a.on { color: var(--n); text-decoration: underline; }
.tbl tbody tr:hover { background: var(--bg); }
.tbl .r { text-align: right; }
.tbl .nw { white-space: nowrap; }
/* Tlačítka listů (roků) nad tabulkou. */
.sk-years { scroll-margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.sk-years .chip { display: inline-flex; align-items: center; min-height: 44px; }
.sk-older > summary { list-style: none; cursor: pointer; }
.sk-older > summary::-webkit-details-marker { display: none; }
.sk-older > summary::after { content: " ▾"; }
.sk-older[open] > summary::after { content: " ▴"; }
.sk-older-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
/* Tabulka jako v Google tabulce: hustší řádky, barvy buněk z tabulky. */
.tbl.sheet { font-size: var(--fs-s); }
.tbl.sheet th, .tbl.sheet td { padding: 6px 8px; border-left: 1px solid var(--ln); max-width: 260px; }
.tbl.sheet td a { color: inherit; font-weight: 700; }
/* Tabulka jako list: posuvníky uvnitř okna (vodorovný vždy na dosah), hlavička a sloupce Ř. a Auto drží na místě. */
.sheet-wrap { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow: auto; scrollbar-width: auto; scrollbar-color: #9AA3C0 var(--bg); }
.sheet-wrap::-webkit-scrollbar { width: 14px; height: 14px; }
.sheet-wrap::-webkit-scrollbar-track { background: var(--bg); }
.sheet-wrap::-webkit-scrollbar-thumb { background: #9AA3C0; border-radius: 8px; border: 3px solid var(--bg); }
.sheet-wrap::-webkit-scrollbar-thumb:hover { background: var(--mu); }
.sheet-wrap thead th { z-index: 2; }
.sheet-wrap tbody td:first-child, .sheet-wrap thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; width: 44px; min-width: 44px; max-width: 44px; box-sizing: border-box; }
.sheet-wrap thead th:first-child { z-index: 3; }
.sheet-wrap tbody td:nth-child(2), .sheet-wrap thead th:nth-child(2) { position: sticky; left: 44px; z-index: 1; box-shadow: 2px 0 0 var(--ln); }
.sheet-wrap tbody td:nth-child(2):not([style]) { background: #fff; }
.sheet-wrap thead th:nth-child(2) { z-index: 3; }
.sheet-wrap:focus-visible { outline: 2px solid var(--g); }
.tbl tbody td:nth-child(2) { min-width: 190px; }

/* Karta vozu (návrh „Karta vozu – manažer/prodejce“). */
.back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-m); font-weight: 700; text-decoration: none; min-height: 44px; }
.back .ico { width: 18px; height: 18px; }
.vh { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) minmax(250px, 300px); gap: 18px; align-items: stretch; margin-bottom: 14px; }
/* Údaje vozu a zákazník stejně vysoké, tlačítka obou karet zarovnaná dole (uživatel 16. 11. 2026); fotka nahoře. */
.vh > .vh-side { align-self: start; }
.vh-main > .vh-actions, .vh-cust > .vh-cust-actions { margin-top: auto; }
.vh:not(:has(> .vh-cust)) { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); }
@media (max-width: 1180px) { .vh { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); } .vh-cust { grid-column: 2; } }
@media (max-width: 760px) { .vh, .vh:not(:has(> .vh-cust)) { grid-template-columns: minmax(0, 1fr); } .vh-cust { grid-column: auto; } }
.vh-cust { min-width: 0; border: 1px solid var(--ln); border-radius: var(--r-m); padding: 12px 14px 14px; font-size: var(--fs-m); display: flex; flex-direction: column; gap: 8px; }
.vh-cust-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-s); }
.vh-cust-until { background: #FFF3BF; color: var(--warn); border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.vh-cust-until.urgent { background: var(--red-soft); color: var(--red); }
.vh-cust-who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--n); min-height: 44px; }
.vh-cust-who strong { display: block; color: var(--n); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vh-cust-who small { display: block; color: var(--mu); font-size: var(--fs-s); }
.vh-cust-av { width: 38px; height: 38px; border-radius: 50%; background: var(--bl); color: var(--n); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.vh-cust-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--mu); font-size: var(--fs-sm); word-break: break-all; }
.vh-cust-contact .ico { width: 14px; height: 14px; vertical-align: -2px; }
.vh-cust-facts { margin: 0; padding-top: 8px; border-top: 1px solid var(--ln); display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: var(--fs-sm); }
.vh-cust-facts dt { color: var(--mu); }
.vh-cust-facts dd { margin: 0; text-align: right; }
.vh-cust-warn { margin: 0; color: var(--warn); font-size: var(--fs-s); font-weight: 700; }
.vh-cust-warn .ico { width: 14px; height: 14px; vertical-align: -2px; }
.vh-cust-lonely { margin: 0; }
.vh-cust.vh-cust-none { gap: 6px; }
.vh-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vh-ad { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; font-size: var(--fs-m); }
.vh-ad + .vh-ad { margin-top: 8px; }
/* Stáří vozu skladem (StockAge): teploměr pod fotkou a barvy dní všude stejně – zelená, žlutá, oranžová, červená (ležák). */
.age-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.age-pill { border-radius: var(--r-pill); padding: 3px 10px; font-size: var(--fs-s); font-weight: 800; background: var(--red-soft); color: var(--red); white-space: nowrap; }
/* ⚡ Blesk / 🚀 Raketa u rychle prodaného vozu (SaleSpeed). */
.age-pill.speed-pill { background: var(--ok-soft); color: var(--ok); }
.age-bar { position: relative; height: 10px; border-radius: var(--r-pill); margin: 10px 0 4px; background: linear-gradient(90deg, #82C91E 0 25%, #FFD43B 25% 50%, #F08C00 50% 75%, #C62828 75% 100%); }
.age-bar i { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--n); box-shadow: 0 0 0 2px #fff; }
.age-scale { display: grid; grid-template-columns: repeat(4, 1fr); font-size: var(--fs-xs); font-weight: 700; color: var(--mu); }
.age-days { font-weight: 800; margin-top: 4px; }
.age-fresh { color: var(--ok); } .age-mid { color: var(--warn); } .age-warn { color: var(--or); } .age-old { color: var(--red); } .age-gone { color: var(--mu); font-weight: 600; }
.tag.age-fresh { background: var(--ok-soft); } .tag.age-mid { background: #FFF3BF; } .tag.age-warn { background: #FFE8CC; } .tag.age-old { background: var(--red-soft); }
.age-joke, .joke { font-size: var(--fs-sm); font-style: italic; color: var(--or); margin-top: 2px; }
/* Prázdný stav (<x-empty>): vtipná věta a šedá vysvětlivka – jeden pro celou platformu.
   Třída .empty-state, ne .empty: tu už mají jiné prvky (CRM) – kolize rozbila minikartu zákazníka (16. 11. 2026). */
.empty-state { padding: 6px 0; }
.empty-state p { margin: 0; }
.empty-state .joke { font-size: var(--fs-m); }
.empty-state .joke + .muted { margin-top: 4px; }
.empty-state.card { padding: 22px 20px; text-align: center; }
/* Vtip na modrém podkladu (pozdrav na přehledu): kurzíva v teplé světlé barvě, velikost jako okolní text. */
.hero .joke { font-size: inherit; margin: 0; color: #FFD9A0; }
.vh-photo { height: 250px; border-radius: var(--r-m); background: var(--n2); display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: #fff; font-size: var(--fs-l); font-weight: 700; text-align: center; padding: 16px; box-sizing: border-box; }
.vh-photo img { width: 96px; height: auto; opacity: .95; }
.vh-photo-img { width: 100%; object-fit: cover; padding: 0; background: var(--bg); }
.sk-photo { width: calc(100% + 32px); margin: -14px -16px 4px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-l) 18px 0 0; background: var(--bg); }
.sk-nophoto { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: var(--n2); color: #fff; font-size: var(--fs-sm); font-weight: 700; box-sizing: border-box; }
.sk-nophoto img { width: 56px; height: auto; }
.vh-main { min-width: 0; border: 1px solid var(--ln); border-radius: var(--r-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.vh-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vh-tags .tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; padding: 4px 10px; }
.vh-tags .tag.ok { background: #EEF7E1; color: #3F6B07; }
.vh-tags .ico { width: 14px; height: 14px; }
.vh-title { margin: 0 0 4px; font-size: var(--fs-h); font-weight: 800; line-height: 1.15; }
.vh-ids { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.vh-origin { font-size: var(--fs-sm); }
.vh-prices { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.vh-prices > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.vh-price { font-size: var(--fs-h); font-weight: 800; line-height: 1.1; }
.vh-facts { display: flex; gap: 18px; flex-wrap: wrap; }
.vh-facts > div { display: flex; flex-direction: column; }
.vh-facts .big { font-size: 22px; }
.vh-facts .vh-fact-note { font-size: var(--fs-s); font-weight: 700; color: var(--or); }
.vh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vh-actions .ico { width: 18px; height: 18px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.offsale { margin-top: 0; }
.offsale[open] { flex-basis: 100%; }
/* Není v prodeji: v kartě jako ostatní úpravy (ne vyskakovací okno), uživatel 15. 11. 2026. */
.offsale-form { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--n); border-radius: var(--r-m); padding: 14px; }
.offsale-form label.chk { min-height: 40px; }
.good { color: #3F6B07; }
.todo { color: var(--or); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(13, 31, 105, .25); vertical-align: -2px; margin: 0 2px; }

/* SPZ jako značka podle země registrace. */
.plate { display: inline-flex; align-items: stretch; border: 1.5px solid #111; border-radius: 5px; overflow: hidden; font-weight: 800; font-size: var(--fs-m); letter-spacing: .06em; line-height: 1; flex: none; vertical-align: middle; }
.plate-band { background: #1D4ED8; color: #fff; font-size: 8px; font-weight: 700; min-width: 17px; padding: 2px 2px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1px; letter-spacing: 0; }
.plate-band.non-eu { background: #8A93AD; justify-content: flex-end; }
.plate-text { background: #fff; color: #111; padding: 4px 7px; white-space: nowrap; }
.vh-vin { display: flex; flex-direction: column; gap: 2px; }
.vh-vin-label { font-size: var(--fs-s); font-weight: 700; color: var(--mu); letter-spacing: .08em; }
.vin { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; line-height: 1.2; }
.vin b { background: #E3F4CC; color: var(--n); border-radius: 3px; padding: 0; font-weight: 800; }
.vin.muted { font-size: var(--fs-m); font-family: inherit; }
.sk-vin .vin, .tbl .vin { font-size: inherit; }
.tag.danger { background: var(--red); color: #fff; font-weight: 800; }
/* Vůz mimo prodej (služební, soukromé, půjčovací): šedě, ne červeně. */
.tag.ext { background: #FFE8CC; color: var(--or); font-weight: 800; }
.tag.off { background: #D5DAE8; color: var(--n); font-weight: 800; }
.vh-vat { font-size: var(--fs-sm); font-weight: 700; color: var(--mu); }
.vh-vat.danger { color: var(--red); }

/* Průběh stavu */
.steps-card { padding: 14px 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.steps li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.steps-bar { height: 6px; border-radius: 3px; background: var(--ln); }
.steps-label { font-size: var(--fs-xs); font-weight: 500; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.done .steps-bar { background: var(--g); }
.steps li.done .steps-label { color: #3F6B07; font-weight: 600; }
.steps li.now .steps-bar { background: var(--n); }
.steps li.now .steps-label { color: var(--n); font-weight: 800; }

/* Upozornění */
.warns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.warn { flex: 1 1 300px; background: var(--warn-soft); border-radius: var(--r-m); padding: 11px 14px; display: flex; align-items: center; gap: 10px; color: var(--or); font-weight: 700; font-size: var(--fs-m); }
.warn.err { background: var(--red-soft); color: var(--red); }
.warn-detail { font-weight: 500; color: var(--n); }
.chip.warn { background: var(--warn-soft); flex: none; display: inline-flex; }
.vtabs .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; }
.vtabs .ico { width: 14px; height: 14px; }

/* Karty polí */
.vcols { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.vcol-main { flex: 999 1 560px; min-width: 0; }
.vcol-side { flex: 1 1 280px; min-width: 0; }
.vcol-side.stack { display: flex; flex-direction: column; gap: 14px; }
.vcol-side.stack .card, .vcols .card { margin-bottom: 0; }
.vcol-main .card { margin-top: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fcard { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); padding: 12px 12px 12px 14px; display: flex; align-items: flex-start; gap: 10px; min-height: 64px; box-sizing: border-box; flex-wrap: wrap; }
.fcard.missing { background: var(--warn-soft); }
.fcard.missing .fcard-value { color: var(--or); }
.fcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fcard-label { font-size: var(--fs-s); font-weight: 700; color: var(--mu); }
.fcard-value { font-weight: 800; overflow-wrap: anywhere; }
.fcard-sub { display: block; font-size: var(--fs-s); color: var(--mu); font-weight: 600; }
.fcard-sub.danger { color: var(--red); font-weight: 700; }
.price-floor { margin-top: 12px; }
.discount-box { background: var(--ok-soft); border-radius: var(--r-btn); padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.discount-box > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fcard-lock { color: var(--mu); display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.fcard-lock .ico { width: 14px; height: 14px; }
.registry-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; font-size: var(--fs-sm); }
.fcard-edit > summary { list-style: none; width: 44px; height: 44px; border-radius: 11px; background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fcard-edit > summary::-webkit-details-marker { display: none; }
.fcard-edit > summary .ico { width: 16px; height: 16px; }
.fcard-edit[open] { flex-basis: 100%; }
.fcard-edit[open] > summary { display: none; }
.fcard:has(.fcard-edit[open]) { border: 2px solid var(--n); box-shadow: none; }
.with-ico { display: flex; align-items: center; gap: 8px; }
.change { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: var(--fs-m); }
.change:last-of-type { border-bottom: 0; }
.flog .change { font-size: var(--fs-sm); padding: 6px 0; }
.more-link { display: inline-flex; margin-top: 8px; font-weight: 700; font-size: var(--fs-m); min-height: 44px; align-items: center; }
.pre { white-space: pre-line; }

/* Ekonomika */
.econ-head { display: flex; align-items: center; gap: 8px; }
.econ-head h2 { flex: 1; margin: 0; }
.small-link { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.fcard.w-future { background: #E6F8F7; }
.warranty-actions { flex-wrap: wrap; align-items: center; }
.warranty-actions > .inline-edit, .warranty-actions > form { margin: 0; }
.warranty-actions > details[open] { flex-basis: 100%; }
.econ-head .tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.econ-head .ico { width: 13px; height: 13px; }
.econ-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ln); }
.econ-row > span { flex: 1; font-weight: 600; }
.econ-row.total { border-bottom: 0; padding-top: 12px; }
.econ-row.total > span { font-weight: 800; }
.econ-row.total strong { font-size: var(--fs-xl); }
.mbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 12px; }
.mbar span { background: var(--bd); }
.mbar span.m { background: var(--g); }
.mbar-legend { display: flex; justify-content: space-between; font-size: var(--fs-s); font-weight: 700; color: var(--mu); margin-top: 4px; }
.soft-row { background: var(--bg); border-radius: var(--r-btn); padding: 10px 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.soft-row > span { flex: 1; font-weight: 700; }
.price-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--ln); }
.price-row > span { font-size: var(--fs-sm); }
.price-row > strong { white-space: nowrap; font-size: var(--fs-l); }

/* ---------- Telefon ---------- */

@media (max-width: 760px) {
    .top-in { padding: 8px 16px; min-height: 60px; gap: 10px; }
    .tnav, .brand-sep, .brand-co, .me-name, .top .tsearch { display: none; }
    .brand-one b { font-size: var(--fs-num); }
    .brand-one img { width: 18px; height: 16px; margin-top: -5px; }
    .top .me { padding-right: 0; }
    .top .avatar { width: 44px; height: 44px; }

    .bnav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--ln); padding: 6px 2px calc(6px + var(--safe-b)); }
    body.has-nav main { padding-bottom: calc(96px + var(--safe-b)); }

    main { padding: 16px 14px 32px; }
    .hero-in { padding: 6px 16px 20px; }
    .hero h1 { font-size: 25px; }
    .notes { margin-top: 12px; }
    .note { width: 100%; }
    h1 { font-size: 22px; }
    .card { padding: 16px; }
    .app { padding: 14px; gap: 12px; }
    .app-ic { width: 60px; height: 60px; border-radius: var(--r-m); gap: 3px; }
    .app-car { width: 35px; }
    .app-pump { width: 46px; }
    .app-garage { width: 42px; }
    .app-tag { font-size: 9px; }
    .app-tx b { font-size: var(--fs-l); }
    .app-go { display: none; }
    .cols > * { flex-basis: 100%; }
    .people { grid-template-columns: 1fr; }
    .avatar.big { width: 56px; height: 56px; border-radius: var(--r-l); font-size: var(--fs-xl); }
    .row .btn { flex: 1; }
    .grid { grid-template-columns: 1fr; }
    details.user .row-main { min-width: 0; flex-basis: calc(100% - 100px); }
    .vh { padding: 12px; gap: 14px; }
    .vh-main { padding: 12px; }
    .vh-photo { height: 190px; }
    .vh-title { font-size: 22px; }
    .vh-price { font-size: var(--fs-num); }
    .vin { font-size: 18px; }
    .steps-label { display: none; }
    .vtabs { flex-wrap: nowrap; overflow-x: auto; }
    .vtabs .chip { flex: none; }
    .fields { grid-template-columns: 1fr; }
    .sk-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .sk-row-tags, .sk-row-days { display: none; }
}

/* Protokol: řádky záznamu událostí. */
.log { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 4px 16px; margin-bottom: 14px; }
.log-row { display: flex; gap: 2px 14px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--ln); font-size: var(--fs-m); }
.log-row:first-child { border-top: 0; }
.log-time { color: var(--mu); font-size: var(--fs-sm); min-width: 118px; }
.log-main { flex: 1; min-width: 220px; }
.log-data { display: block; overflow-wrap: anywhere; }

/* Horní lišta uvnitř modulu: na počítači s myší je zasunutá a vyjede po najetí (nebo při procházení klávesnicí),
   na telefonu se schová úplně – přehled, moduly i profil jsou ve spodním menu. Na přehledu, v profilu a správě zůstává. */
@media (hover: hover) and (min-width: 761px) {
    body.in-module { padding-top: 8px; }
    .in-module .top { position: fixed; left: 0; right: 0; top: 0; transform: translateY(calc(-100% + 8px)); transition: transform .18s ease, box-shadow .18s ease; }
    /* Lišta vyjede jen po najetí na úchyt (14. 11. 2026); zbytek proužku na myš nereaguje.
       Otevřená zůstane, dokud je myš na ní nebo je v ní fokus (např. psaní do hledání). */
    .in-module .top { pointer-events: none; }
    .in-module .top:hover, .in-module .top:focus-within { pointer-events: auto; }
    /* Úchyt: zelený jazýček visící od horního okraje obrazovky, se zaoblenými rohy. */
    .in-module .top::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 88px; height: 12px; margin-left: -44px; background: var(--g); border-radius: 0 0 8px 8px; pointer-events: auto; cursor: pointer; }
    /* Neviditelná rezerva kolem úchytu, aby se na něj dalo snadno trefit. */
    .in-module .top::before { content: ""; position: absolute; left: 50%; bottom: -20px; width: 140px; height: 28px; margin-left: -70px; pointer-events: auto; }
    /* V zasunutém proužku nesmí prosvítat zelená linka vybrané položky menu. */
    .in-module .top:not(:hover):not(:focus-within) .tnav a.on { border-bottom-color: transparent; }
    .in-module .top:hover, .in-module .top:focus-within { transform: none; box-shadow: 0 14px 34px rgba(13, 31, 105, .45); }
    /* Lišta vyjede přes stránku (obsah se neposouvá – posun celé stránky rušil, 14. 11. 2026);
       výrazný stín pod ní ukazuje, že leží nad obsahem. */
    .in-module .top:hover::after, .in-module .top:focus-within::after { opacity: 0; }
    .in-module .top:hover::before, .in-module .top:focus-within::before { display: none; }
}
@media (hover: hover) and (min-width: 761px) and (prefers-reduced-motion: reduce) {
    .in-module .top { transition: none; }
}
@media (max-width: 760px) {
    .in-module .top { display: none; }
    /* Modul s vlastním spodním menu (např. EuroCRM) si ho na telefonu ukazuje sám; přepínání aplikací je na přehledu. */
    body.own-nav .bnav { display: none; }
    body.in-module { padding-top: var(--safe-t); }
}

.vh-tags .st-note { align-self: center; }

/* Kupující v Ekonomice – jméno zákazníka z CRM jako barevný odkaz (uživatel 14. 11. 2026). */
.buyer { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-weight: 800; text-decoration: none; }
.buyer:hover, .buyer:focus-visible { background: var(--g); color: #fff; }

/* Jednotná kostra aplikace (layouts.module, uživatel 16. 11. 2026): modrý pás se záložkami jako v CRM, vpravo jediná
   hlavní akce zeleně, pod ním záhlaví s nadpisem aplikace v barvě aplikace (--acc z config/platform.php), datem vpravo
   a velkým nadpisem stránky; na detailu místo nadpisu aplikace odkaz o úroveň výš ve stejné barvě. Na telefonu spodní
   menu modulu a plovoucí „+“. Modul si vlastní pás ani záhlaví nestaví. */
.mod-top { --acc: var(--g); background: var(--n); color: #fff; border-radius: 0 0 26px 26px; }
.modbar { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 4px 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.modtabs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.modtabs a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: var(--fs-m); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 14px; border-bottom: 3px solid transparent; }
.modtabs a .ico { width: 18px; height: 18px; }
.modtabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.modtabs a.on { color: #fff; border-bottom-color: var(--g); font-weight: 800; }
/* Zelená (pokladna EuroERP) je zvláštní tlačítko: jediné celé zelené, ovál s modrou ikonou a nápisem. */
.modtabs a.zel, .modtabs a.zel:hover { height: 34px; margin-left: 10px; padding: 0 16px 0 12px; border: 0; border-radius: var(--r-pill); background: var(--g); color: var(--n); font-weight: 800; box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.modtabs a.zel:hover { filter: brightness(1.07); }
.modtabs a.zel.on { box-shadow: 0 0 0 2px var(--n), 0 0 0 4px #fff; }
.mod-main, .mod-main:hover { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-bottom: 4px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--g); color: var(--n); font-weight: 800; font-size: var(--fs-m); text-decoration: none; white-space: nowrap; }
.mod-main:hover { filter: brightness(1.07); }
.mod-main .ico { width: 18px; height: 18px; }
.mod-head { max-width: 1180px; margin: 0 auto; padding: 14px 20px 24px; }
.mod-kick { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.mod-app, .mod-back { color: var(--acc); font-weight: 800; font-size: var(--fs-xl); letter-spacing: .3px; text-decoration: none; }
.mod-back { display: inline-flex; align-items: center; min-height: 44px; }
.mod-back:hover { text-decoration: underline; color: var(--acc); }
.mod-info { color: rgba(255, 255, 255, .75); font-size: var(--fs-sm); font-weight: 500; text-align: right; }
.mod-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mod-tt { min-width: 0; }
.mod-head h1 { font-size: var(--fs-h); margin: 0; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.mod-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: var(--fs-m); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-fab, .mod-bnav { display: none; }
@media (max-width: 760px) {
    .modbar { display: none; }
    .mod-top { border-radius: 0 0 22px 22px; }
    .mod-head { padding-top: 12px; }
    .mod-app, .mod-back { font-size: var(--fs-l); }
    .mod-head h1 { font-size: 22px; }
    body.mod main { padding-bottom: 96px; }
    .mod-bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--ln); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
    .mod-bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; text-decoration: none; color: var(--mu); font-size: var(--fs-xs); font-weight: 600; }
    .mod-bnav a.on { color: var(--n); font-weight: 800; }
    .mod-bnav .ico { width: 22px; height: 22px; }
    .mod-bnav a.zel { flex: 0 0 auto; align-self: center; flex-direction: row; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); background: var(--g); color: var(--n); font-weight: 800; }
    .mod-bnav a.zel .ico { width: 18px; height: 18px; }
    .mod-bnav a.zel.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--n); }
    .mod-fab { display: flex; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--g); color: var(--n); align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 31; }
    .mod-fab .ico { width: 26px; height: 26px; }
}

/* EuroERP (jen majitel, od 15. 11. 2026): dlaždice čísel, graf plánu a knihy. */
.mod-actions .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); min-height: 44px; display: inline-flex; align-items: center; }
.mod-actions .chip.on { background: #fff; color: var(--n); border-color: #fff; }
/* Dlaždice s čísly (uživatel 16. 11. 2026): jedna podoba ve všech aplikacích – nahoře popisek, velké číslo,
   pod ním drobný text. V obsahu bílá karta, v modrém záhlaví (modActions) průsvitná. Barva čísla: ok, bad, fut; celá žlutá: warn. */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.stat { background: #fff; border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--n); text-decoration: none; }
a.stat:hover { box-shadow: 0 4px 14px rgba(13, 31, 105, .16); }
.stat small { font-size: var(--fs-s); font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .03em; }
.stat strong { font-size: var(--fs-num); font-weight: 800; white-space: nowrap; }
.stat span { font-size: var(--fs-sm); color: var(--mu); }
.stat.bad strong, .neg { color: var(--red); }
.stat.ok strong, .pos { color: var(--ok); }
.stat.fut strong { color: #0B6E69; }
.stat.warn { background: var(--warn-soft); }
.stat.warn small, .stat.warn span { color: var(--warn); }
.card .stat { background: var(--bg); box-shadow: none; }
.mod-actions .stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.mod-actions .stat { flex: 0 0 auto; align-items: flex-start; text-align: left; background: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; padding: 10px 16px; min-width: 130px; border-radius: var(--r-m); gap: 2px; }
.mod-actions .stat small { color: #C9D3F5; }
.mod-actions .stat span { color: #C9D3F5; }
.mod-actions .stat.warn { background: var(--warn-soft); color: var(--warn); }
.mod-actions .stat.warn small, .mod-actions .stat.warn span { color: var(--warn); }
.erp-chart { display: flex; gap: 4px; align-items: stretch; height: 180px; }
.erp-chart a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; min-width: 0; }
.erp-chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.erp-chart i, .erp-legend i { display: block; width: 40%; max-width: 18px; min-height: 2px; border-radius: 5px 5px 0 0; background: #B9C4EE; }
.erp-chart i.r, .erp-legend i.r { background: var(--n); }
.erp-chart i.f, .erp-legend i.f { background: var(--future); }
.erp-chart small { font-size: var(--fs-xs); font-weight: 700; color: var(--mu); }
.erp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-s); color: var(--mu); margin: 10px 0 0; }
.erp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.erp-legend i { width: 12px; height: 12px; min-height: 0; border-radius: 3px; }
.erp-progrow { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-m); margin: 12px 0 6px; }
.erp-prog { height: 12px; background: var(--bl); border-radius: var(--r-pill); overflow: hidden; }
.erp-prog i { display: block; height: 12px; background: var(--g); border-radius: var(--r-pill); }
.erp-list > a, .erp-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: var(--r-btn); background: var(--warn-soft); text-decoration: none; font-weight: 600; font-size: var(--fs-m); margin-bottom: 8px; color: var(--n); }
.erp-cars { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.erp-car { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.erp-car-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.erp-car h3 { margin: 0; font-size: var(--fs-l); }
.erp-car h3 a { text-decoration: none; }
.erp-vin { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-s); }
.erp-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.erp-nums small { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--mu); text-transform: uppercase; }
.erp-nums b { white-space: nowrap; }
.erp-month { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.erp-car .erp-month { border-top: 1px solid var(--ln); padding-top: 10px; }
.erp-month select { height: 44px; flex: 1; min-width: 150px; margin: 0; }
.erp-manual { display: inline-block; background: var(--warn-soft); color: var(--warn); border-radius: var(--r-s); padding: 5px 9px; font-size: var(--fs-s); font-weight: 700; }
.erp-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.erp-form .wide { grid-column: span 2; }
.erp-form label, .erp-label { font-size: var(--fs-s); font-weight: 700; color: var(--mu); display: block; }
.erp-form input[type=text], .erp-form input[type=date], .erp-form input[type=month], .erp-form input[type=search], .erp-form select { width: 100%; }
.erp-form .tiles { margin: 4px 0 0; }
.erp-del td { color: var(--mu); }
.erp-del td b { text-decoration: line-through; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
    .erp-form .wide { grid-column: auto; }
    .stat strong { font-size: var(--fs-xl); }
    .mod-actions .stat { min-width: 0; flex: 1 1 30%; padding: 8px 10px; }
}

/* Úkoly „Na tebe čeká“ (uživatel 15. 11. 2026): počet u aplikace v menu a na dlaždici, seznam na přehledu. */
.tcount { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--r-pill); background: var(--or); color: #fff; font-size: var(--fs-s); font-weight: 800; line-height: 1; vertical-align: 2px; }
.tcount.over { background: var(--red); }
.bnav .bi { position: relative; }
.bnav .bi .tcount { position: absolute; top: -6px; right: -12px; margin: 0; min-width: 18px; height: 18px; font-size: var(--fs-xs); }
.card.app { position: relative; }
.card.app > .tcount { position: absolute; top: 10px; right: 10px; margin: 0; }
.hero-tasks a { color: inherit; text-decoration: underline; }
.hero-tasks strong { color: #FFB4B0; }
.tasks h2 { margin-bottom: 4px; }
.task { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--ln); color: inherit; text-decoration: none; }
.task:hover .tt, .task:focus-visible .tt { color: var(--n); text-decoration: underline; }
.task .tl { flex: none; border-radius: var(--r-pill); padding: 3px 10px; font-size: var(--fs-s); font-weight: 800; white-space: nowrap; }
.task .tl.overdue { background: var(--red-soft); color: var(--red); }
.task .tl.today { background: var(--warn-soft); color: var(--or); }
.task .tl.todo { background: var(--ok-soft); color: var(--ok); }
.task .tt { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.task .tm { flex: none; color: var(--mu); font-size: var(--fs-sm); }
.tasks summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--mu); font-weight: 700; border-top: 1px solid var(--ln); }
@media (max-width: 760px) { .task { flex-wrap: wrap; gap: 4px 8px; } .task .tt { flex-basis: 100%; order: 3; white-space: normal; } }
.tcount.team { background: var(--n); vertical-align: 3px; }
.tasks.team { margin-top: 12px; }
.tasks.team > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-top: 0; color: inherit; }
.tasks.team > summary h2 { margin: 0; }
.task .tl.who { background: var(--bl); color: var(--n); }
/* Akce se zákazníkem pod zákaznickou minikartou (uživatel 15. 11. 2026): Rezervovat / Otevřít rezervaci, Přiřadit k obchodu. */
.vh-cust-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ln); }
.vh-cust-actions:empty { display: none; }
.vh-cust-actions .btn { flex: 1 1 auto; justify-content: center; }

/* Služební auta (od 16. 11. 2026): kostra layouts.module, seznam vozidel, termíny a karta vozidla. */
.fleet-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fleet-h h2 { margin: 0; }
.fleet-due-wrap { margin-bottom: 18px; }
.fleet-due { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fleet-due-card { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--n); }
.fleet-due-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fleet-due-top > .muted { white-space: nowrap; }
.fleet-more { margin-bottom: 12px; }
.fleet-sub { font-size: var(--fs-m); margin: 4px 0 10px; color: var(--n); }
.fleet-missing { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.fleet-more > summary { cursor: pointer; font-weight: 700; color: var(--n); min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.fleet-more > summary::-webkit-details-marker { display: none; }
.fleet-more > summary::before { content: '▸'; color: var(--mu); }
.fleet-more[open] > summary::before { content: '▾'; }
.fleet-list { display: flex; flex-direction: column; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
/* Pevné šířky sloupců stejné pro hlavičku i všechny řádky: obsah se uvnitř sloupce zalomí, nic sloupec nerozšíří (uživatel 16. 11. 2026). */
.fleet-head, .fleet-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1.35fr); gap: 0 14px; align-items: start; min-width: 1080px; }
.fleet-cell { min-width: 0; overflow-wrap: anywhere; }
.fleet-cell .badge, .fleet-cell .st { white-space: normal; }
.fleet-cell .badge { display: inline-block; }
/* Majetek s.r.o. (uživatel 16. 11. 2026): v majetku světle modře, není v majetku světle oranžově. */
.badge.asset-yes { background: #DCE8FF; color: var(--n); }
.badge.asset-no { background: #FFE3C7; color: var(--or); }
.fleet-warn { display: block; margin-top: 4px; color: var(--red); font-size: var(--fs-s); font-weight: 700; line-height: 1.3; }
.fleet-orig { font-size: var(--fs-s); color: var(--mu); }
.fleet-head > span { min-width: 0; overflow-wrap: anywhere; }
.fleet-head { font-size: var(--fs-s); font-weight: 700; color: var(--mu); padding: 0 16px; }
.fleet-row { background: #fff; border-radius: var(--r-m); padding: 12px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--n); font-size: var(--fs-sm); }
.fleet-row:hover { box-shadow: 0 0 0 2px var(--bl); }
.fleet-car { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--fs-m); }
.fleet-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fleet-cell small { display: none; }
.fleet-plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fleet-plate, .fleet-platecard { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--n); }
.fleet-plate > span { display: flex; flex-direction: column; gap: 2px; }
.fleet-plate .ico, .fleet-platecard > .ico { width: 34px; height: 34px; flex: none; }
.fleet-platecard { margin-top: 16px; flex-wrap: wrap; }
.fleet-platecard > div { flex: 1 1 260px; }
.fleet-headgrid { display: grid; grid-template-columns: 280px 1fr 300px; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.fleet-headgrid > .card { margin: 0; }
.fleet-photo { padding: 0; overflow: hidden; }
.fleet-photo img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.fleet-photo .vh-photo { height: 100%; min-height: 190px; border-radius: 0; }
.fleet-photo .vh-photo img { width: 46px; height: auto; min-height: 0; }
.fleet-main { display: flex; flex-direction: column; gap: 10px; }
.fleet-main .vin { font-size: var(--fs-m); }
.fleet-tags, .fleet-ids { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fleet-user { display: flex; flex-direction: column; gap: 10px; }
.fleet-person { display: flex; gap: 10px; align-items: center; }
.fleet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.fleet-cols > .card { margin: 0; }
.fleet-col { display: grid; gap: 14px; align-content: start; }
.fleet-col > .card { margin: 0; }
.fleet-cols h2 { margin-top: 0; }
.fleet-asset { border: 2px solid var(--g); background: #F7FCEE; border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.fleet-asset-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fleet-asset .badge { font-size: var(--fs-m); padding: 6px 14px; }
.fleet-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.fleet-term { border-radius: var(--r-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); align-items: flex-start; }
.fleet-term.fut { background: #E6F8F7; }
.fleet-term.bad { background: var(--red-soft); }
.fleet-term.warn { background: var(--warn-soft); }
.fleet-term.warn b { color: var(--or); }
.fleet-term-note { font-size: var(--fs-s); font-weight: 700; color: var(--warn); }
.fleet-term .muted .ico { width: 12px; height: 12px; vertical-align: -1px; }
.fleet-firstreg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fleet-firstreg > div { background: var(--bg); border-radius: var(--r-s); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.fleet-main-actions { margin-top: auto; }
.fleet-user-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fleet-user-top .fcard-edit[open] { flex-basis: 100%; }
.fleet-tags .badge .ico { width: 14px; height: 14px; vertical-align: -2px; }
.fleet-orders .econ-head { margin-bottom: 8px; }
.fleet-cols .econ-head h2 { margin: 0; }
.fleet-policy { border-top: 1px solid var(--ln); padding-top: 12px; margin-top: 12px; }
.fleet-policy:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.fleet-policy.ended { opacity: .7; }
.fleet-policy-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fleet-manual { color: var(--ok); }
/* Poznámka a podmínky jako dlouhá bublina přes celou šířku, text se zalamuje a drží řádky. */
.fleet-note .fcard { width: 100%; }
.fleet-note .fcard-value { white-space: pre-line; font-weight: 500; font-size: 15px; line-height: 1.5; }
.fleet-note .fcard-edit textarea { width: 100%; min-height: 140px; }
.fleet-reg-wrap { overflow-x: auto; margin-top: 10px; }
.fleet-reg { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.fleet-reg th, .fleet-reg td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ln); white-space: nowrap; }
.fleet-reg th { color: var(--mu); font-size: var(--fs-s); }
.fleet-policy-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.fleet-newpolicy { margin-top: 14px; }
@media (max-width: 1100px) {
    .fleet-headgrid { grid-template-columns: 1fr 1fr; }
    .fleet-photo { grid-column: span 2; max-height: 220px; }
}
@media (max-width: 760px) {
    .fleet-headgrid, .fleet-cols, .fleet-terms { grid-template-columns: 1fr; }
    .fleet-photo { grid-column: auto; }
    /* Telefon: řádky seznamu jako karty pod sebou, popisky u hodnot. */
    .fleet-head { display: none; }
    .fleet-list { overflow: visible; }
    .fleet-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; min-width: 0; }
    .fleet-row .fleet-car { grid-column: 1 / -1; }
    .fleet-cell small { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--mu); }
}

/* Příslušenství (od 16. 11. 2026): kostra layouts.module, hledání jako Služební auta, ceník po skupinách a oddílech. */
.acc-group h2 { margin: 22px 0 10px; }
.acc-section { padding: 6px 18px; margin-bottom: 12px; }
.acc-section h3 { margin: 12px 0 4px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .03em; color: var(--mu); }
.acc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--ln); }
.acc-section h3 + .acc-row, .acc-section > .acc-row:first-child { border-top: 0; }
.acc-row.off { opacity: .75; }
.acc-main { min-width: 0; }
.acc-name { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; overflow-wrap: anywhere; }
.acc-meta { font-size: var(--fs-sm); margin-top: 2px; }
.acc-desc { font-size: var(--fs-sm); margin-top: 4px; white-space: pre-line; }
.acc-price { font-weight: 800; white-space: nowrap; align-self: start; }
.acc-edit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.acc-edit > details.inline-edit { margin-top: 0; }
.acc-edit > details.inline-edit[open] { flex: 1 1 100%; }
.acc-edit .btn.plain { min-height: 44px; }
.acc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.acc-form .wide { grid-column: 1 / -1; }
.acc-form small { display: block; margin-top: 4px; font-weight: 500; }
.acc-form input:not([type=checkbox]), .acc-form select, .acc-form textarea { width: 100%; }
.acc-retired-link { align-self: center; margin-left: auto; font-size: var(--fs-sm); }
@media (max-width: 760px) {
    .acc-form { grid-template-columns: 1fr; }
    .acc-section { padding: 4px 14px; }
}
.fleet-term-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.fleet-term .fcard-edit[open] { width: 100%; }
.fleet-term:has(.fcard-edit[open]) { background: #fff; box-shadow: 0 0 0 2px var(--n); }
/* Sklad kol (od 16. 11. 2026): kostra layouts.module, hledání jako Služební auta, řádky sad po lokacích. */
.kola-list { padding: 6px 18px; }
.kola-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ln); text-decoration: none; color: inherit; min-height: 44px; }
.kola-list > .kola-row:first-child { border-top: 0; }
.kola-row:hover b { text-decoration: underline; }
.kola-num { font-weight: 800; font-size: var(--fs-m); background: var(--bl); border-radius: var(--r-s); padding: 8px 6px; text-align: center; overflow-wrap: anywhere; }
.kola-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kola-main .muted { font-size: var(--fs-sm); }
.kola-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kola-loc { font-weight: 800; white-space: nowrap; }
.kola-loc.big { font-size: var(--fs-xl); white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.kola-grandma { display: inline-block; align-self: flex-start; background: #FFF4DC; color: var(--or); font-size: var(--fs-s); font-weight: 700; border-radius: var(--r-pill); padding: 3px 10px; margin-top: 4px; }
.kola-grandma.big { font-size: var(--fs-m); margin: 12px 0 0; }
.kola-head-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kola-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; margin: 16px 0; }
.kola-facts small { display: block; font-size: var(--fs-s); font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .03em; }
.kola-facts .wide { grid-column: 1 / -1; }
.kola-note { white-space: pre-line; background: var(--bg); border-radius: var(--r-btn); padding: 10px 14px; }
.kola-raw summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.kola-rules { font-size: var(--fs-sm); margin: 0 0 12px 18px; padding: 0; }
/* Nastavení Skladu kol: lokality, místa a regály (uživatel 17. 11. 2026). Pozice regálu jako dlaždice: zeleně volno, modře obsazeno, žlutě víc než 2 sady. */
.kola-place-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.kola-place-head h2 { margin: 0; }
.kola-rack { border-top: 1px solid var(--ln); padding: 12px 0; }
.kola-rack-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.kola-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.kola-slot { min-width: 60px; min-height: 44px; border-radius: var(--r-s); background: var(--bl); color: var(--n2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; padding: 4px 6px; font-size: var(--fs-s); }
.kola-slot small { font-size: var(--fs-xs); font-weight: 600; }
.kola-slot.free { background: var(--ok-soft); color: var(--ok); }
.kola-slot.many { background: var(--warn-soft); color: var(--warn); }
.kola-place-edit { margin-top: 8px; }
.kola-range { display: flex; gap: 8px; align-items: center; }
.kola-range input { width: 90px; }
.kola-free { font-size: var(--fs-sm); }
.kola-locf { display: flex; flex-direction: column; gap: 10px; }
.kola-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.kola-pick[hidden], .kola-pick-none[hidden] { display: none; }
.kola-pick legend { font-weight: 700; font-size: var(--fs-sm); padding: 0; margin-bottom: 8px; }
.kola-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.kola-ptile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 8px 10px; border-radius: var(--r-btn); cursor: pointer; background: var(--ok-soft); color: var(--ok); outline: 2px dashed #9FD05A; outline-offset: -2px; font-weight: 600; }
.kola-ptile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kola-ptile.busy { background: var(--bg); color: var(--mu); outline: 0; }
.kola-ptile.mine { background: var(--n2); color: #fff; outline: 0; }
.kola-ptile:has(input:checked) { background: var(--g); color: var(--n); outline: 3px solid var(--n); outline-offset: -3px; }
.kola-ptile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--bl); }
.kola-ptile-h { display: flex; justify-content: space-between; align-items: center; }
.kola-ptile-h b { font-size: var(--fs-xl); font-weight: 800; }
.kola-ptile-h i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: var(--fs-sm); font-weight: 800; }
.kola-ptile:has(input:checked) .kola-ptile-h i { background: var(--n); border-color: var(--n); color: #fff; }
.kola-ptile:has(input:checked) .kola-ptile-h i::after { content: "✓"; }
.kola-ptile.mine:has(input:checked) { background: var(--n2); color: #fff; outline: 0; }
.kola-ptile.mine:has(input:checked) .kola-ptile-h i { background: var(--g); border-color: var(--g); color: var(--n); }
.kola-ptile small { font-size: var(--fs-xs); }
@media (max-width: 760px) { .kola-pick-grid { grid-template-columns: repeat(3, 1fr); } }
.kola-free li { margin: 2px 0; }
.kola-car { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; }
.kola-car img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--r-s); background: var(--bl); }
.kola-nophoto { width: 120px; height: 80px; border-radius: var(--r-s); background: var(--bl); display: flex; align-items: center; justify-content: center; }
.kola-car .kola-nophoto img { width: 44px; height: auto; background: none; border-radius: 0; opacity: .5; }
.kola-car.pick { border-top: 1px solid var(--ln); padding: 10px 0; }
.kola-vset { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--ln); border-radius: var(--r-m); padding: 12px 14px; margin-top: 10px; }
.kola-vset .kola-num { text-decoration: none; color: inherit; }
.kola-fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kola-fleet .fcard { margin-top: 6px; }
/* Mapa regálů (uživatel 18. 11. 2026): dlaždice regálů s mini mřížkou, pozice jako velké dlaždice, panel pozice a přesun. */
.kola-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-xs); margin: 4px 2px 10px; }
.kola-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kola-map-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-l); margin: 18px 2px 8px; }
.kola-map-h a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.kola-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kola-tile { display: block; background: var(--bg); border-radius: var(--r-s); padding: 10px 12px; min-height: 96px; color: var(--n); text-decoration: none; }
.kola-tile:hover { box-shadow: inset 0 0 0 2px var(--n2); }
.kola-tile-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kola-tile-h b { font-size: var(--fs-num); font-weight: 800; line-height: 1.1; }
.kola-tile-h small { font-size: var(--fs-xs); font-weight: 700; color: var(--mu); }
.kola-mini { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 8px; }
.kola-mini i, .kola-legend i { height: 12px; border-radius: 3px; background: var(--n2); }
.kola-mini i.kola-mini-f, .kola-legend i.kola-mini-f { background: #C8E6A0; }
.kola-mini i.kola-mini-m, .kola-legend i.kola-mini-m { background: #E8B32A; }
.kola-legend i.kola-mini-o { background: var(--n2); }
.kola-area { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 8px 4px; border-top: 1px solid var(--ln); color: var(--n); text-decoration: none; }
.kola-area:first-child { border-top: 0; }
.kola-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kola-pos { min-width: 0; display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 10px; background: #fff; border-radius: var(--r-m); box-shadow: 0 1px 3px rgba(13, 31, 105, .08); color: var(--n); text-decoration: none; }
.kola-pos-h { display: flex; justify-content: space-between; align-items: center; }
.kola-pos-h b { font-size: var(--fs-xl); font-weight: 800; }
.kola-pos-h small { font-size: var(--fs-xs); font-weight: 700; color: var(--mu); }
.kola-pos.free { background: var(--ok-soft); box-shadow: none; outline: 2px dashed #9FD05A; outline-offset: -2px; color: var(--ok); }
.kola-pos-free { font-size: var(--fs-sm); font-weight: 700; margin: auto 0; text-align: center; }
.kola-pos.many { box-shadow: inset 0 0 0 2px #E8B32A; }
.kola-pos.src { opacity: .5; }
.kola-pos.sel { background: var(--g); outline: 3px solid var(--n); outline-offset: -3px; color: var(--n); }
.kola-pos.open { box-shadow: inset 0 0 0 2px var(--n2); }
.kola-rset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; background: var(--bg); border-radius: var(--r-s); padding: 6px 8px; font-size: var(--fs-s); }
.kola-rset { min-width: 0; }
.kola-rset b { font-size: var(--fs-m); min-width: 0; overflow-wrap: anywhere; }
.kola-rset small { overflow-wrap: anywhere; }
.kola-rset small { flex-basis: 100%; }
.kola-season { font-size: var(--fs-xs); font-weight: 700; border-radius: var(--r-pill); padding: 1px 8px; background: var(--bl); color: var(--n2); }
.kola-season.summer { background: var(--warn-soft); color: var(--warn); }
.kola-season.car { background: #ECEAFB; color: #3C3489; }
.kola-season.old { background: var(--red-soft); color: var(--red); }
.kola-rrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ln); }
.kola-rrow .kola-rset { flex: 1 1 0; min-width: 0; background: none; padding: 0; }
.kola-rrow > .btn { flex: none; }
.kola-rrow > small { flex-basis: 120px; }
.kola-dim { position: fixed; inset: 0; background: rgba(13, 31, 105, .45); z-index: 40; }
/* Panel pozice: na počítači okno uprostřed obrazovky, na telefonu vysouvací panel zespodu; vždy celý vidět a posouvá se
   uvnitř, stránka pod ním stojí (uživatel 18. 11. 2026). */
.kola-sheet { overflow-x: hidden; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: var(--r-l); padding: 14px 16px 22px; box-shadow: 0 10px 40px rgba(13, 31, 105, .3); z-index: 41; }
body:has(.kola-sheet) { overflow: hidden; }
@media (max-width: 760px) {
    .kola-sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 85dvh; border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60; }
    .kola-dim { z-index: 59; }
}
.kola-sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kola-sheet-h h2 { margin: 0; font-size: var(--fs-xl); min-width: 0; overflow-wrap: anywhere; }
.kola-wide { width: 100%; margin-top: 10px; }
.kola-store { margin-top: 14px; }
.kola-moving { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--g); color: var(--n); font-weight: 700; border-radius: var(--r-btn); padding: 8px 8px 8px 14px; margin-bottom: 12px; }
.kola-confirm { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-top: 1px solid var(--ln); border-radius: var(--r-m) var(--r-m) 0 0; padding: 12px 16px; margin-top: 14px; box-shadow: 0 -4px 16px rgba(13, 31, 105, .12); z-index: 30; }
.kola-undo { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--n); color: #fff; border-radius: var(--r-btn); padding: 8px 8px 8px 14px; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 600; }
.kola-rack-edit { margin-bottom: 12px; }
.kola-rack-tools { margin-bottom: 12px; }
.kola-ev { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ln); }
.kola-ev:first-child { border-top: 0; }
.kola-ev-ico { width: 32px; height: 32px; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--bl); color: var(--n2); }
.kola-ev-ico.in { background: var(--ok-soft); color: var(--ok); }
.kola-ev-ico.out { background: var(--warn-soft); color: var(--warn); }
.kola-ev-ico.gone { background: var(--red-soft); color: var(--red); }
.kola-ev-t { font-size: var(--fs-sm); line-height: 1.4; }
.kola-ev-t a { font-weight: 800; }
.kola-ev-m { font-size: var(--fs-xs); color: var(--mu); margin-top: 2px; }
.kola-ev-src { display: inline-block; font-size: var(--fs-xs); font-weight: 700; border-radius: var(--r-pill); padding: 0 8px; margin-left: 6px; background: var(--bg); color: var(--mu); }
.kola-last { background: var(--bg); border-radius: var(--r-s); padding: 8px 12px; font-size: var(--fs-s); color: var(--mu); margin: 8px 0; }
.kola-last b { color: var(--n); }
.kola-slot-hist { margin-top: 12px; }
.kola-slot-hist summary { font-weight: 700; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
@media (max-width: 760px) {
    .kola-map { grid-template-columns: 1fr 1fr; }
    .kola-slotgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kola-confirm { bottom: 64px; }
}
@media (max-width: 760px) {
    .kola-car, .kola-vset, .kola-fleet { grid-template-columns: 1fr; }
    .kola-car img { width: 100%; height: 140px; }
    .kola-vset .kola-side { align-items: flex-start; }
}
@media (max-width: 760px) {
    .kola-row { grid-template-columns: 52px 1fr; }
    .kola-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
    .kola-list { padding: 4px 14px; }
}
/* Vlastní fotka na kartě vozu: průsvitná ikona ve fotce – fotoaparát (nahrát) nebo koš (smazat); formulář se rozbalí pod fotkou (uživatel 16. 11. 2026). */
.vh-photo-wrap { --ph: 250px; position: relative; }
.vh-photo-wrap > .vh-photo { height: var(--ph); }
.vh-photo-btn { list-style: none; position: absolute; right: 10px; top: calc(var(--ph) - 54px); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; background: rgba(4, 22, 64, .38); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(4px); transition: background .15s; }
.vh-photo-btn::-webkit-details-marker { display: none; }
.vh-photo-btn:hover, .vh-photo-btn:focus-visible, .vh-photo-edit[open] > .vh-photo-btn { background: rgba(4, 22, 64, .62); }
.vh-photo-btn svg { width: 20px; height: 20px; }
.vh-photo-edit > form { margin-top: 10px; border: 1px solid var(--ln); border-radius: var(--r-m); padding: 12px; background: #fff; }
.vh-photo-edit input[type=file] { display: block; margin-top: 6px; max-width: 100%; }
.vh-photo-own { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: #fff; background: rgba(4, 22, 64, .45); }
@media (max-width: 760px) { .vh-photo-wrap { --ph: 190px; } }
@media (prefers-reduced-motion: reduce) { .vh-photo-btn { transition: none; } }

/* Drobné pomůcky místo vložených stylů ve stránkách (uživatel 16. 11. 2026: žádné style="…" s pevnými hodnotami). */
.grow { flex: 1; min-width: 0; }
.m0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 8px; }
.mt { margin-top: 14px; }
.mt-l { margin-top: 20px; }
.mb-s { margin-bottom: 8px; }
.mb { margin-bottom: 16px; }
.w-narrow { max-width: 280px; }
.list-gap { display: grid; gap: 8px; }
.plain-link { text-decoration: none; color: inherit; }

/* Pole s datem ve tvaru 2026-11-17 (uživatel 17. 11. 2026, public/js/one.js): text + ikona kalendáře,
   původní pole s kalendářem prohlížeče je pod textem neviditelné (otevírá ho ikona přes showPicker). */
.dpick { position: relative; display: block; width: 100%; min-width: 0; }
.dpick input.dpick-text { width: 100%; padding-right: 46px; font-variant-numeric: tabular-nums; }
body .dpick input.dpick-native { position: absolute !important; left: 0; bottom: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }
.dpick-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--n); border-radius: var(--r-s); cursor: pointer; padding: 0; }
.dpick-btn:hover { background: var(--bg); }
.dpick-btn:disabled { color: var(--mu); cursor: default; }
.dpick.bad input.dpick-text { border-color: var(--red, #E03131); }

/* Odznak zákazníka podle počtu koupených vozů (⭐ Věrný od 3, 🏅 Stálý od 5, 👑 VIP od 10; uživatel 17. 11. 2026). Jen interní. */
.ctier { display: inline-block; margin: 0 0 0 6px; padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; line-height: 1.6; white-space: nowrap; vertical-align: middle; text-decoration: none; }
.ctier-loyal { background: var(--bl); color: var(--n); }
.ctier-regular { background: var(--warn-soft); color: var(--warn); }
.ctier-vip { background: var(--n); color: #FAC775; }
.vh-cust-who .ctier { margin: 2px 0 2px; }
.tier-note { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--warn); font-weight: 700; }

/* Easter eggy (uživatel 17. 11. 2026): bublina, mávající pták, projíždějící Subaru, „six seven“. */
/* Zaplaceno v CRM: padající peníze (uživatel 18. 11. 2026). */
.money-rain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2990; }
.money-rain span { position: absolute; top: -48px; font-size: var(--fs-xl); animation: money-fall linear both; }
@keyframes money-fall { to { transform: translateY(110vh) rotate(200deg); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .money-rain { display: none; } }
.egg-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3000; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-m); background: var(--n); color: #FFD9A0; font-style: italic; font-size: var(--fs-m); box-shadow: 0 8px 24px rgba(13, 31, 105, .3); animation: egg-pop .25s ease-out; }
.egg-flap { animation: egg-flap .9s ease-in-out 2; transform-origin: 50% 70%; }
.egg-drive { position: fixed; left: 0; right: 0; bottom: 24px; height: 64px; z-index: 2999; pointer-events: none; overflow: hidden; }
.egg-drive > span { position: absolute; bottom: 4px; left: -80px; font-size: 44px; animation: egg-drive 4s linear forwards; }
.egg-drive .egg-car { transform: scaleX(-1); }
.egg-drive .egg-puff { font-size: var(--fs-num); opacity: .8; filter: hue-rotate(80deg); }
.egg-drive .egg-puff:nth-child(1) { animation-delay: .25s; }
.egg-drive .egg-puff:nth-child(2) { animation-delay: .12s; bottom: 18px; }
.egg-67 { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 2999; pointer-events: none; display: flex; gap: 28px; font-size: 64px; }
.egg-67 span { animation: egg-67 .5s ease-in-out 4 alternate; }
.egg-67 span:nth-child(2) { animation-delay: .25s; }
@keyframes egg-pop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes egg-flap { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(14deg) scale(1.1); } }
@keyframes egg-drive { to { left: calc(100% + 80px); } }
@keyframes egg-67 { from { transform: translateY(18px); } to { transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) {
    .egg-toast, .egg-flap, .egg-67 span { animation: none; }
    .egg-drive { display: none; }
}

/* Naděje obchodu – kolečko v záložce Obchody na kartě vozu (stejné barvy jako v CRM; uživatel 18. 11. 2026). */
.hdot{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid transparent;margin-right:8px;vertical-align:-2px}
.hdot.h-n{border-color:#B8BFD3}
.hdot.h-g{background:#2F9E44}
.hdot.h-y{background:#F5B400}
.hdot.h-r{background:#E03131}
