@font-face { font-family: "Orbitron"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/orbitron-800.woff2) format("woff2"); }

/* TENDMEN (pôvodne GatiCare): asfalt #0F2A2E, Gati zelenomodrá #13615B, hmla #EDF2F1 */
:root {
  --bg: #edf2f1;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --text: #1b1f1e;
  --muted: #5f6866;
  --line: #d5dedd;
  --brand: #0f2a2e;
  --brand-2: #13615b;
  --off: #8a9696; --off-bg: #eef1f1;
  --row-line: #000000;
  --ok: #1f7a4d;   --ok-bg: #e3f3ea;
  --warn: #9a5b00; --warn-bg: #fdf0d9;
  --bad: #b3261e;  --bad-bg: #fbe4e2;
  --none: #6b7280; --none-bg: #eef0f1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  color-scheme: light;
}
@media not all /* tmavý režim vypnutý */ {
  :root {
    --bg: #111615; --surface: #19201f; --surface-2: #1f2726; --text: #e8ecea; --muted: #9aa5a2;
    --line: #2c3634; --brand: #7fd1c2; --brand-2: #5fb8a8;
    --ok: #6fd39c; --ok-bg: #173226; --warn: #f2bd62; --warn-bg: #352a14; --bad: #ff8a80; --bad-bg: #3a1c1a;
    --none: #9aa5a2; --none-bg: #242c2b; --shadow: none; --off: #6c7a7b; --off-bg: #1a2224; --row-line: #c9d3d1; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--brand-2); }
.container { max-width: 760px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--brand); color: #fff;
}
@media not all /* tmavý režim vypnutý */ { .topbar { background: #0a1c1f; } }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-logo-mark { width: 30px; height: 30px; display: block; }
.brand-logo-full { height: 36px; width: auto; display: block; }
.brand-word { font-family: "Orbitron", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; line-height: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-right .muted { color: #cfe3df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.topbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 17px; margin: 0 0 12px; }

.btn {
  appearance: none; border: 1px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
@media not all /* tmavý režim vypnutý */ { .btn { color: #0c2a2b; } }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, .btn:focus-visible, .country-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
input[readonly] { opacity: .75; }
.field { margin-bottom: 14px; }
.field.need input, .field.need select, .field.need .country-btn { border-color: var(--warn); background: var(--warn-bg); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .hint.warn { color: var(--warn); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* vyhľadávanie */
.search { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.search input { text-transform: uppercase; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.search input::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; }
@media (max-width: 420px) { .search { grid-template-columns: auto 1fr; } .search .btn { grid-column: 1 / -1; } }

/* výber krajiny */
.country { position: relative; }
.country-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; width: 100%;
}
.flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.country-list {
  position: absolute; z-index: 20; top: 48px; left: 0; width: 260px; max-height: 320px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 4px;
}
.country-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); font: inherit;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left;
}
.country-list button:hover, .country-list button[aria-selected=true] { background: var(--surface-2); }
.country-list .code { font-weight: 700; width: 28px; }

/* zoznam vozidiel */
.vlist { display: grid; gap: 10px; }
.vcard { display: block; text-decoration: none; color: inherit; }
.vcard .card { margin: 0; transition: border-color .15s; }
.vcard:hover .card { border-color: var(--brand-2); }
.vhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plate {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: 1.5px; font-size: 17px;
  padding: 3px 10px; border: 2px solid var(--text); border-radius: 6px; background: var(--surface);
}
.plate .flag { width: 18px; height: 13px; }
.vname { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.bad { color: var(--bad); background: var(--bad-bg); }
.chip.none { color: var(--none); background: var(--none-bg); }

.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.banner.info { background: var(--none-bg); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner strong { display: block; margin-bottom: 2px; }

.msglist { list-style: none; padding: 0; margin: 0; }
.msglist li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.msglist li:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; }
.dot.info { background: var(--brand-2); } .dot.warn { background: var(--warn); } .dot.alert { background: var(--bad); }

.emails { list-style: none; padding: 0; margin: 0 0 10px; }
.emails li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.addrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.status { font-size: 13px; margin-top: 4px; }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); } .status.warn { color: var(--warn); }

.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.backbar { position: sticky; top: 52px; z-index: 9; background: var(--bg); padding: 8px 0; margin: -8px 0 6px; }
.backbtn { text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; margin-bottom: 8px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; }
table.log { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.log td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.empty { text-align: center; padding: 30px 10px; }

.auth { max-width: 420px; margin: 24px auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media not all /* tmavý režim vypnutý */ { .tabs button[aria-selected=true] { color: #0c2a2b; } }
.error { color: var(--bad); font-size: 14px; margin: 6px 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #1b1f1e; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; z-index: 50; max-width: calc(100vw - 32px);
}

/* ---------- tabuľka vozidiel ---------- */
body.wide .container { max-width: 1720px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-head h1 { margin-bottom: 10px; }
.summary { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.sum-item { color: var(--muted); }
.sum-item.c-bad strong { color: var(--bad); } .sum-item.c-warn strong { color: var(--warn); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.vtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 980px; }
.vtable th, .vtable td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--row-line); white-space: nowrap; }
.vtable thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); z-index: 2; cursor: pointer; user-select: none; }
.vtable thead th:hover { color: var(--text); }
.vtable tbody tr { cursor: pointer; }
.vtable tbody tr:hover td { filter: brightness(.97); }
.vtable .c-ecv { box-shadow: 1px 0 0 var(--line); }
.vtable tbody tr:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.vtable tbody tr:last-child td, .vtable tbody tr:last-child th { border-bottom: 0; }
.vtable .c-ecv { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 400; }
.vtable thead .c-ecv { background: var(--surface-2); z-index: 3; }
.vtable .plate { font-size: 14px; padding: 2px 7px; }
.cell-date { font-weight: 600; }
.cell-days { font-size: 12px; color: var(--muted); margin-top: 1px; }
.vtable td.c-ok .cell-date { color: var(--ok); }
.vtable td.c-warn { background: var(--warn-bg); } .vtable td.c-warn .cell-date, .vtable td.c-warn .cell-days { color: var(--warn); }
.vtable td.c-bad { background: var(--bad-bg); } .vtable td.c-bad .cell-date, .vtable td.c-bad .cell-days { color: var(--bad); }
.vtable td.c-need .cell-date { color: var(--warn); font-weight: 600; }
.vtable td.c-na { color: var(--muted); }
.vtable td.c-nearest { min-width: 150px; }
/* sledovanie */
.vtable td.c-off { color: var(--off); }
.vtable td.c-track { text-align: center; vertical-align: middle; cursor: default; }
/* stĺpec Sledovať je vždy viditeľný – prilepený k pravému okraju tabuľky */
.vtable .c-track { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--line); width: 92px; text-align: center; }
.vtable thead th.c-track { background: var(--surface-2); z-index: 3; text-align: center; }
.vtable td.c-track input { width: 20px; height: 20px; accent-color: var(--brand-2); cursor: pointer; }
.vtable tr.inactive > td, .vtable tr.inactive > th { background: var(--off-bg) !important; color: var(--off) !important; }
.vtable tr.inactive .cell-date, .vtable tr.inactive .cell-days, .vtable tr.inactive .muted { color: var(--off) !important; }
.vtable tr.inactive .ecv-wrap { filter: grayscale(1); opacity: .55; }
.vtable tr.inactive td.c-nearest .cell-date { font-style: italic; font-weight: 600; }
.legend .lg.c-inactive { background: var(--off-bg); color: var(--off); }
.lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lblrow > label:first-child { margin-bottom: 0; }
.trackchk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.trackchk input { width: 18px; height: 18px; accent-color: var(--brand-2); margin: 0; }
.field.untracked input[type=date] { opacity: .5; }
.vtrack { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.vtrack input { width: 20px; height: 20px; accent-color: var(--brand-2); margin: 0; }
.vhead.inactive .plate, .vhead.inactive .skplate { filter: grayscale(1); opacity: .6; }
.banner.off { background: var(--off-bg); color: var(--off); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 2px 20px; color: var(--muted); }
.legend .lg { padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.legend .lg.c-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.legend .lg.c-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.legend .lg.c-ok { color: var(--ok); }
.legend .lg.c-need { color: var(--warn); }
@media (max-width: 560px) { .vtable { font-size: 13px; } .vtable th, .vtable td { padding: 8px; } }

/* značka výrobcu pred EČV */
.ecv-wrap { display: inline-flex; align-items: center; gap: 8px; }
.brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 26px; padding: 0 6px; overflow: hidden; white-space: nowrap; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 9.5px; font-weight: 800; letter-spacing: .2px; color: var(--muted); text-overflow: ellipsis; }
.brand-badge.empty { color: var(--line); }
.brand-logo { width: 86px; height: 26px; object-fit: contain; }
.plate-cc { font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 2px; }

/* ---------- EČV ako slovenská tabuľka ---------- */
.skplate { display: inline-flex; align-items: stretch; background: #fff; border: 2px solid #111; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px #fff inset, 0 1px 2px rgba(0,0,0,.15); color: #111; line-height: 1; flex: none; }
.sp-eu { background: #0b4ea2; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.sp-stars { display: block; }
.sp-cc { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.sp-txt { display: inline-flex; align-items: center; font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-stretch: condensed; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.sp-coat { display: block; }
/* stredná – tabuľka vozidiel */
.sp-md { height: 30px; }
.sp-md .sp-eu { width: 17px; padding: 2px 0 2px; }
.sp-md .sp-stars { width: 13px; height: 13px; }
.sp-md .sp-cc { font-size: 8px; }
.sp-md .sp-txt { font-size: 21px; padding: 0 7px 0 6px; gap: 4px; }
.sp-md .sp-coat { width: 12px; height: 15px; }
/* veľká – hlavička vozidla */
.sp-lg { height: 44px; border-width: 2.5px; border-radius: 8px; }
.sp-lg .sp-eu { width: 25px; padding: 3px 0 4px; }
.sp-lg .sp-stars { width: 19px; height: 19px; }
.sp-lg .sp-cc { font-size: 11px; }
.sp-lg .sp-txt { font-size: 32px; padding: 0 10px 0 9px; gap: 6px; }
.sp-lg .sp-coat { width: 18px; height: 22px; }
@media not all /* tmavý režim vypnutý */ { .skplate { border-color: #000; } }

/* zrušené upozornenia z e-mailu */
.em-addr { display: grid; gap: 4px; min-width: 0; }
.optout { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--warn); }
.optout .btn.small { min-height: 30px; padding: 4px 10px; }

/* náhľad pre kolegu */
.list-head .btn.small { min-height: 34px; padding: 6px 12px; }
.share-card .addrow input { flex: 1; min-width: 0; }
.share-url { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.share-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.vtable tr.ro { cursor: default; }

/* hrubé orámovanie a oddelenie stĺpcov */
.table-wrap { border: 2px solid var(--row-line); }
.vtable th, .vtable td { border-right: 2px solid var(--row-line); }
.vtable tr > :last-child { border-right: 0; }
.vtable tbody tr:last-child td, .vtable tbody tr:last-child th { border-bottom: 0; }
.vtable .c-ecv, .vtable .c-track { box-shadow: none; }
.vtable .c-track { border-left: 2px solid var(--row-line); }
.vtable tr > .c-track:last-child { border-right: 0; }

/* logo výrobcu v stĺpci Vozidlo – menšie */
.veh-cell { display: flex; align-items: center; gap: 10px; }
.veh-logo { flex: none; display: inline-flex; width: 44px; justify-content: center; }
.veh-logo .brand-logo { width: 44px; height: 22px; }
.veh-logo .brand-badge { width: 44px; height: 20px; font-size: 8px; padding: 0 3px; }
.vtable tr.inactive .veh-logo { filter: grayscale(1); opacity: .55; }

/* menšia značka EČV v tabuľke */
.vtable .sp-md { height: 28px; border-width: 2px; border-radius: 6px; }
.vtable .sp-md .sp-eu { width: 16px; padding: 2px 0; }
.vtable .sp-md .sp-stars { width: 12px; height: 12px; }
.vtable .sp-md .sp-cc { font-size: 8px; }
.vtable .sp-md .sp-txt { font-size: 19px; padding: 0 7px 0 6px; gap: 1px; }
.vtable .sp-md .sp-txt > span:first-child { margin-right: -.5px; }
.vtable .sp-md .sp-coat { width: 11px; height: 14px; }

/* TESTEK: potvrdenie dátumu a návod k záložke */
.testek-confirm { position: fixed; z-index: 1000; top: 72px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); border: 2px solid #00D2BE; display: grid; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.testek-confirm .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.testek-help { margin-top: 8px; font-size: 13px; }
.testek-help ol { margin: 6px 0 0 18px; padding: 0; }

/* hlavná tabuľka sa zmestí na bežný monitor bez vodorovného posúvania (stĺpec Sledovať nič neprekrýva) */
.table-wrap .vtable td.c-veh { white-space: normal; min-width: 150px; max-width: 220px; }
.table-wrap .vtable td.c-veh .cell-date, .table-wrap .vtable td.c-veh .cell-days { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.table-wrap .vtable td.c-pzp .cell-days { white-space: normal; max-width: 130px; }
@media (max-width: 1700px) {
  .table-wrap .vtable th, .table-wrap .vtable td { padding-left: 7px; padding-right: 7px; }
  .table-wrap .vtable .veh-cell { gap: 6px; }
  .table-wrap .vtable .veh-logo, .table-wrap .vtable .veh-logo .brand-logo, .table-wrap .vtable .veh-logo .brand-badge { width: 38px; }
  .table-wrap .vtable td.c-nearest { min-width: 0; }
  .table-wrap .vtable .sp-md { height: 27px; } .table-wrap .vtable .sp-md .sp-txt { font-size: 18px; padding: 0 6px 0 5px; }
}
@media (max-width: 1400px) {
  .table-wrap .vtable { font-size: 12.5px; min-width: 0; }
  .table-wrap .vtable th, .table-wrap .vtable td { padding-left: 5px; padding-right: 5px; }
  .table-wrap .vtable .cell-days { font-size: 11px; margin-left: 12px; }
  .table-wrap .vtable .cell-date { gap: 5px; }
  .table-wrap .vtable .c-track { width: 64px; }
  .table-wrap .vtable td.c-nearest .cell-days { white-space: normal; max-width: 118px; }
  .table-wrap .vtable thead th { white-space: normal; line-height: 1.25; }
  .table-wrap .vtable .sp-md { height: 25px; } .table-wrap .vtable .sp-md .sp-txt { font-size: 16px; gap: 3px; }
}
@media (max-width: 1300px) {
  .table-wrap .vtable td.c-veh { min-width: 130px; }
  .table-wrap .vtable .sp-md .sp-txt { font-size: 15px; padding: 0 5px 0 4px; }
  .table-wrap .vtable td.c-nearest .cell-days { white-space: normal; max-width: 120px; }
}
@media (max-width: 1400px) {
  .table-wrap .vtable td.c-nearest .cell-date { white-space: normal; }
  .table-wrap .vtable td.c-nearest { min-width: 112px; max-width: 125px; }
}
@media (max-width: 1300px) {
  .table-wrap .vtable .sp-md .sp-txt { font-size: 14px; }
  .table-wrap .vtable .c-track { width: 56px; }
}

/* ===== hlavná stránka – svetlý dizajn s Olim (14. 11. 2026) ===== */
.oband { display: flex; align-items: center; gap: 16px; background: #121826; color: #fff; border-radius: 16px; padding: 14px 20px; border-bottom: 3px solid #00D2BE; margin-bottom: 14px; }
.oli-face { width: 60px; height: 60px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #00D2BE; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.oli-face img { width: 72px; height: 72px; }
.obub { position: relative; background: #fff; color: #121826; border-radius: 16px; padding: 10px 16px; max-width: 720px; }
.obub::before { content: ""; position: absolute; left: -11px; top: 50%; margin-top: -9px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 12px solid #fff; }
.obub b { display: block; font-weight: 700; } .obub small { color: #59606e; }
.otitle { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.otitle h1 { margin: 0; font-size: 22px; color: #fff; } .otitle small { color: #9aa3b5; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 12px 16px; cursor: pointer; font: inherit; color: var(--text); }
.tile b { display: block; font-size: 28px; font-weight: 800; color: var(--c); line-height: 1.1; } .tile span { color: var(--muted); }
.tile:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); } .tile.sel { box-shadow: 0 0 0 2px var(--c); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar .search { flex: 1 1 420px; margin: 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 13px inherit; color: var(--text); cursor: pointer; }
.pill.on { background: #00D2BE; border-color: #00D2BE; color: #121826; }
.sections { margin-top: 6px; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.sec-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.sec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sec-cnt { background: var(--c); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.sec-sub { color: var(--muted); font-size: 13px; }
.sec-tog { margin-left: auto; background: none; border: 0; color: #0b8a7c; font-weight: 700; cursor: pointer; font-size: 13px; }
.sec.s-now { --c: #e5484d; } .sec.s-soon { --c: #f59e0b; } .sec.s-ok { --c: #22a06b; } .sec.s-off { --c: #9aa3b5; }
.sec .table-wrap { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; box-shadow: none; }
/* farebné štítky s dátumom */
.vtable .dchip { display: inline-flex; flex-direction: column; padding: 3px 9px; border-radius: 9px; line-height: 1.25; }
.table-wrap .vtable .dchip .cell-date { font-weight: 700; display: block; } .table-wrap .vtable .dchip .cell-date::before { display: none !important; content: none !important; }
.vtable .dchip .cell-days { margin-left: 0 !important; font-size: 11px; opacity: .9; }
.vtable .dchip.ch-bad { background: #fde8e8; } .vtable .dchip.ch-bad .cell-date, .vtable .dchip.ch-bad .cell-days { color: #d4343a !important; }
.vtable .dchip.ch-warn { background: #fff1db; } .vtable .dchip.ch-warn .cell-date, .vtable .dchip.ch-warn .cell-days { color: #c26a00 !important; }
.vtable .dchip.ch-soon { background: #fff8d6; } .vtable .dchip.ch-soon .cell-date, .vtable .dchip.ch-soon .cell-days { color: #8f7200 !important; }
.vtable .dchip.ch-ok { background: #e3f6ec; } .vtable .dchip.ch-ok .cell-date, .vtable .dchip.ch-ok .cell-days { color: #1a8a58 !important; }
.vtable td.c-na { font-size: 12px; }
.vtable tr.inactive .dchip { background: transparent !important; }
@media (max-width: 900px) {
  .oband { flex-wrap: wrap; } .otitle { margin-left: 0; align-items: flex-start; text-align: left; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

.otitle .btn { background: transparent; color: #7fe9dd; border: 1px solid #2f6f69; }
.otitle .btn:hover { background: #1b2433; }

/* jednotné logo Tendman ako na animácii (Oli nad nápisom, tyrkysová čiara, FLEET HELPING HAND) */
.side-brand { justify-content: center !important; padding: 8px 8px 18px !important; }
.side-brand img.brand-stack { width: 150px !important; height: auto !important; display: block; }
.topbar .brand img.brand-h { height: 30px !important; width: auto !important; }
.auth-brand img.stack { width: 240px; height: auto; display: block; }
