:root{
  --bg:#f3f6f9;--card:#fff;--text:#14202b;--muted:#6e7b88;--line:#dfe6ed;
  --primary:#1769aa;--primary2:#0f4f85;--dark:#18232e;--ok:#1f9d61;--warn:#d08b1d;--bad:#cf4242;
  --shadow:0 10px 28px rgba(23,43,77,.08);--radius:18px
}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{min-width:320px}
a{color:inherit}.topbar{height:72px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:28px;position:sticky;top:0;z-index:1000}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:max-content}.brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--primary),#2896d8);color:#fff;font-weight:900;display:grid;place-items:center;letter-spacing:-.5px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:1px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.nav-tabs{display:flex;align-items:center;gap:4px}.nav-tabs a{text-decoration:none;padding:9px 12px;border-radius:10px;color:var(--muted);font-weight:700;font-size:14px}.nav-tabs a:hover,.nav-tabs a.active{background:#eef5fb;color:var(--primary)}.page-wrap{max-width:1700px;margin:0 auto;padding:28px}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:22px}.page-head h1{font-size:34px;line-height:1.1;margin:5px 0 6px;letter-spacing:-.7px}.page-head p{margin:0;color:var(--muted)}.title-row{display:flex;align-items:center;gap:12px}.back-link{font-size:14px;color:var(--primary);text-decoration:none;font-weight:700}.card{background:var(--card);border:1px solid #e8edf2;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.card-head h2{font-size:20px;margin:0 0 3px}.card-head p{font-size:13px;color:var(--muted);margin:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e8edf2;border-radius:16px;padding:18px 20px;box-shadow:0 7px 22px rgba(23,43,77,.06)}.stat-card span{display:block;color:var(--muted);font-size:13px;font-weight:700}.stat-card strong{display:block;font-size:30px;margin-top:3px}.dashboard-grid{display:grid;grid-template-columns:minmax(390px,.9fr) minmax(520px,1.6fr);gap:18px}.fleet-card{padding-bottom:10px}.fleet-list{display:grid;gap:9px;max-height:calc(100vh - 270px);overflow:auto;padding-right:4px}.fleet-item{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;text-align:left;cursor:pointer;transition:.15s}.fleet-item:hover{border-color:#b8c9d9;background:#f9fbfd;transform:translateY(-1px)}.fleet-name{font-weight:900;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fleet-sub{color:var(--muted);font-size:12px;margin-top:4px}.fleet-state{text-align:right}.speed{font-size:19px;font-weight:900}.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:6px}.online{background:var(--ok)}.offline{background:var(--bad)}.stale{background:var(--warn)}.search,input,select{font:inherit}.search{border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff;min-width:220px;outline:none}.search:focus,input:focus{border-color:#8db7d8;box-shadow:0 0 0 3px rgba(23,105,170,.09)}.map{width:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#e9eef3}.map-large{height:calc(100vh - 270px);min-height:560px}.map-medium{height:390px}.map-trip{height:410px}.btn{border:0;border-radius:11px;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary2)}.btn-dark{background:var(--dark);color:#fff}.btn-light{background:#edf3f8;color:#27455e}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;background:#edf1f5;color:#4c5a67;font-size:12px;font-weight:900}.badge-ok{background:#e7f7ef;color:#137347}.badge-bad{background:#fdecec;color:#a52f2f}.badge-warn{background:#fff4dc;color:#926116}.vehicle-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric-card{background:#fff;border:1px solid #e8edf2;border-radius:16px;padding:16px;box-shadow:0 7px 22px rgba(23,43,77,.06)}.metric-card span,.metric-card small{display:block;color:var(--muted);font-size:12px}.metric-card strong{display:block;font-size:24px;margin:5px 0 2px}.two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{font-size:12px;color:var(--muted);font-weight:800}.form-grid input{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fff}.form-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:4px}.io-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.io-card{border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:#fbfcfd}.io-card span{display:block;color:var(--muted);font-size:12px}.io-card strong{display:block;font-size:18px;margin-top:4px;word-break:break-word}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.table-wrap.tall{max-height:620px}.table-wrap.compact{max-height:260px}table{width:100%;border-collapse:collapse;font-size:13px}th{position:sticky;top:0;background:#f5f8fb;text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);color:#4d5b68;font-size:12px;z-index:1}td{padding:11px 12px;border-bottom:1px solid #edf1f4;vertical-align:top}tr:last-child td{border-bottom:none}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.muted{color:var(--muted)}.ellipsis{max-width:480px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filter-card{margin-bottom:18px}.filter-row{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}.filter-row label{font-size:12px;color:var(--muted);font-weight:800}.filter-row input{display:block;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:9px 10px}.trips-layout{display:grid;grid-template-columns:420px minmax(0,1fr);gap:18px}.trip-list{display:grid;gap:8px;max-height:760px;overflow:auto}.trip-item{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px;text-align:left;cursor:pointer}.trip-item:hover,.trip-item.active{background:#f0f6fb;border-color:#9abdd9}.trip-item-top{display:flex;justify-content:space-between;gap:12px}.trip-time{font-weight:900}.trip-km{font-weight:900;color:var(--primary)}.trip-item-sub{display:flex;gap:13px;color:var(--muted);font-size:12px;margin-top:5px}.trip-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}.trip-metric{background:#f6f8fa;border-radius:11px;padding:10px}.trip-metric span{display:block;color:var(--muted);font-size:11px}.trip-metric strong{display:block;margin-top:3px;font-size:15px}.trip-detail-card{min-width:0}.toast{position:fixed;right:24px;bottom:24px;z-index:3000;background:#15212c;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.22);max-width:430px}.empty{padding:30px 14px;text-align:center;color:var(--muted)}.loader{padding:22px;text-align:center;color:var(--muted)}
@media(max-width:1200px){.vehicle-stats{grid-template-columns:repeat(3,1fr)}.io-grid{grid-template-columns:repeat(2,1fr)}.trip-metrics{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.map-large{height:560px}.fleet-list{max-height:560px}.trips-layout{grid-template-columns:1fr}.trip-list{max-height:430px}.two-col{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{height:auto;padding:12px 16px;flex-wrap:wrap;gap:10px}.nav-tabs{order:3;width:100%;overflow:auto}.page-wrap{padding:18px 12px}.page-head h1{font-size:28px}.stats-grid{grid-template-columns:1fr 1fr}.vehicle-stats{grid-template-columns:1fr 1fr}.io-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.map-large,.map-medium,.map-trip{height:360px;min-height:0}.search{min-width:0;width:100%}.card-head{align-items:flex-start;flex-direction:column}.trip-metrics{grid-template-columns:1fr 1fr}.topbar-actions .muted{display:none}}

/* -------------------------------------------------------------------------
   V3 LIVE dashboard
   ------------------------------------------------------------------------- */
.global-nav{margin-left:12px}.live-controls{gap:8px}.live-dot{width:9px;height:9px;border-radius:50%;background:#16a36a;box-shadow:0 0 0 5px rgba(22,163,106,.12);animation:livePulse 1.8s infinite}.live-dot.paused{background:#8a96a3;box-shadow:none;animation:none}.live-label{font-size:12px;font-weight:900;letter-spacing:.08em;color:#157349}.compact-select{border:1px solid var(--line);border-radius:10px;padding:9px 28px 9px 10px;background:#fff;font-weight:700}.live-head{align-items:center}.last-update{font-size:13px;color:var(--muted)}
@keyframes livePulse{0%,100%{box-shadow:0 0 0 4px rgba(22,163,106,.10)}50%{box-shadow:0 0 0 8px rgba(22,163,106,.04)}}
.live-page{max-width:1900px}.live-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.stat-filter{font:inherit;text-align:left;cursor:pointer;color:var(--text);position:relative;transition:.15s}.stat-filter small{display:block;color:var(--muted);margin-top:5px}.stat-filter:hover{transform:translateY(-1px);border-color:#c7d4df}.stat-filter.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(23,105,170,.08),var(--shadow)}.stat-online strong{color:#168153}.stat-moving strong,.stat-ignition strong{color:#1769aa}.stat-stale strong{color:#b87513}.stat-offline strong{color:#bd3f3f}
.live-workspace{display:grid;grid-template-columns:minmax(620px,1.05fr) minmax(700px,1.25fr);gap:18px;align-items:start;margin-bottom:18px}.fleet-live-card,.live-io-card{padding:0;overflow:hidden}.fleet-toolbar,.live-device-head{padding:18px 20px;margin:0;border-bottom:1px solid var(--line)}.fleet-toolbar .search{min-width:250px}.fleet-live-table-wrap{border:0;border-radius:0;max-height:690px}.fleet-live-table{table-layout:auto}.fleet-live-table th{top:0}.fleet-live-table td{white-space:nowrap}.fleet-row{cursor:pointer;transition:.12s}.fleet-row:hover td{background:#f8fbfd}.fleet-row.selected td{background:#edf6fd}.fleet-row.selected td:first-child{box-shadow:inset 4px 0 0 var(--primary)}.fleet-main-name{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis}.fleet-main-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px;white-space:nowrap}.speed-cell{font-size:17px}.state-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900;letter-spacing:.04em}.state-pill i{width:7px;height:7px;border-radius:50%;background:currentColor}.status-online{background:#e6f7ef;color:#137648}.status-stale{background:#fff3d9;color:#9a6411}.status-offline{background:#fdeaea;color:#ab3434}.bool-on{color:#137648;font-weight:900}.bool-off{color:#768390;font-weight:800}
.live-device-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.live-device-head h2{font-size:25px;margin:2px 0 3px}.live-device-head p{margin:0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--primary)}.selected-actions{display:flex;gap:8px}.mini-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid var(--line);background:#fafcfd}.mini-metrics>div{padding:13px 14px;border-right:1px solid var(--line);min-width:0}.mini-metrics>div:last-child{border-right:0}.mini-metrics span{display:block;font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.mini-metrics strong{display:block;font-size:15px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-ok{color:#147549}.metric-warn{color:#9a6411}.metric-bad{color:#ab3434}
.io-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid var(--line)}.segmented{display:flex;gap:4px;background:#f0f4f7;padding:4px;border-radius:11px;flex-wrap:wrap}.segmented button{border:0;background:transparent;border-radius:8px;padding:7px 9px;font:inherit;font-size:11px;font-weight:900;color:#667481;cursor:pointer}.segmented button span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;border-radius:999px;background:#dfe7ed;font-size:10px}.segmented button.active{background:#fff;color:var(--primary);box-shadow:0 2px 8px rgba(23,43,77,.08)}.io-search{min-width:200px;padding:8px 10px}.live-io-table-wrap{border:0;border-radius:0;max-height:505px}.live-io-table{table-layout:auto}.live-io-table td{white-space:nowrap}.io-id{font-size:14px}.io-value{font-weight:900;color:#162c3d}.hex-cell{max-width:145px;overflow:hidden;text-overflow:ellipsis}.code-type{display:inline-flex;min-width:35px;justify-content:center;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900;letter-spacing:.05em}.code-can{background:#e8f1ff;color:#155ca8}.code-system{background:#edf1f4;color:#52606c}.code-unknown{background:#fff0d7;color:#9c6210}.io-changed td{animation:changedFlash 2.8s ease-out}.changed-badge{display:block;width:max-content;margin-top:4px;background:#fff1c7;color:#8b5a00;border-radius:6px;padding:2px 5px;font-size:8px;font-weight:900}.live-io-foot{display:flex;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.legend{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-left:8px}.legend-can{background:#d9e9ff}.legend-changed{background:#fff0bd}@keyframes changedFlash{0%{background:#fff0b8}100%{background:transparent}}
.stream-card{margin-bottom:18px}.stream-table-wrap{max-height:360px}.switch-label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:var(--muted)}.map-live{height:500px}.live-map-card{margin-bottom:30px}
@media(max-width:1500px){.live-workspace{grid-template-columns:1fr}.fleet-live-table-wrap{max-height:520px}.live-io-table-wrap{max-height:520px}.live-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.live-stats{grid-template-columns:repeat(2,1fr)}.live-controls{width:100%;order:4}.live-workspace{grid-template-columns:1fr}.fleet-live-card{overflow:auto}.fleet-live-table-wrap{min-width:820px}.live-io-card{overflow:auto}.live-io-table-wrap{min-width:920px}.mini-metrics{grid-template-columns:repeat(3,1fr)}.io-toolbar{align-items:stretch;flex-direction:column}.io-search{width:100%}.global-nav{order:3;width:100%;overflow:auto;margin-left:0}}
.codes-stats{grid-template-columns:repeat(4,1fr)}.codes-toolbar{align-items:center}.codes-table{table-layout:auto}.codes-table td{vertical-align:middle}.device-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:430px}.device-chip,.more-chip{display:inline-flex;padding:4px 7px;border-radius:7px;background:#eef4f8;color:#285675;text-decoration:none;font-size:10px;font-weight:800}.device-chip:hover{background:#dcebf5}.more-chip{background:#f4f0e8;color:#82601d}
@media(max-width:760px){.codes-stats{grid-template-columns:1fr 1fr}}


/* Driving statistics */
.driving-card{margin-bottom:18px}.driving-head{align-items:flex-start}.driving-period{flex-wrap:nowrap}.driving-availability{display:flex;gap:7px;flex-wrap:wrap;margin:-4px 0 14px}.driving-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.drive-stat{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fbfcfd}.drive-stat span,.drive-stat small{display:block;color:var(--muted);font-size:11px}.drive-stat strong{display:block;font-size:20px;margin:5px 0 3px;word-break:break-word}.driving-detail-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:14px;margin-top:14px}.driving-panel{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;min-width:0}.driving-panel h3{margin:0 0 4px;font-size:15px}.driving-panel p{font-size:11px;margin:0 0 10px}.threshold-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.threshold-card{background:#f6f8fa;border-radius:11px;padding:12px}.threshold-card span,.threshold-card small{display:block;color:var(--muted);font-size:10px}.threshold-card strong{display:block;font-size:22px;margin:4px 0}.driving-note{font-size:11px;color:var(--muted);margin:12px 2px 0;line-height:1.45}
@media(max-width:1200px){.driving-stats-grid{grid-template-columns:repeat(2,1fr)}.driving-detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){.driving-stats-grid{grid-template-columns:1fr 1fr}.threshold-grid{grid-template-columns:1fr}.driving-period{width:100%;overflow:auto}.drive-stat strong{font-size:17px}}


/* Fleet device type / connection filters V2.3 */
.fleet-filterbar{display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:#fbfcfd}.fleet-filterbar label{display:flex;flex-direction:column;gap:4px}.fleet-filterbar label>span{font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.fleet-filterbar .compact-select{min-width:126px;padding-top:8px;padding-bottom:8px}.fleet-clear-btn{height:37px}.fleet-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.device-tag{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900;letter-spacing:.03em;line-height:1}.tag-model{background:#eef3f7;color:#405767}.tag-standard{background:#edf1f4;color:#596774}.tag-can{background:#e5f0ff;color:#155ca8}.tag-obd{background:#f0e8ff;color:#6d3aad}.tag-battery{background:#e8f6ed;color:#237447}.form-grid select{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px;background:#fff;font:inherit;color:var(--text)}
@media(max-width:900px){.fleet-filterbar{align-items:stretch}.fleet-filterbar label{flex:1 1 145px}.fleet-filterbar .compact-select{width:100%;min-width:0}.fleet-clear-btn{width:100%}}


/* VIN auto-fill V2.5 */
.vin-field{grid-column:span 2}.vin-input-row{display:flex;gap:7px;align-items:center}.vin-input-row input{flex:1;min-width:0;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.05em}.vin-input-row .btn{white-space:nowrap}.vin-hint{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.35}.vin-hint.vin-ok{color:#147549}.vin-hint.vin-error{color:#ab3434}.vin-hint.vin-warn{color:#9a6411}.vin-hint.vin-loading{color:#1769aa}.vin-result{grid-column:1/-1;border:1px solid var(--line);border-radius:13px;padding:12px;background:#f8fbfd}.vin-result-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.vin-result-head span{font-size:10px;color:var(--muted)}.vin-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.vin-result-grid>div{background:#fff;border:1px solid var(--line);border-radius:9px;padding:8px;min-width:0}.vin-result-grid span{display:block;font-size:9px;color:var(--muted);text-transform:uppercase;font-weight:800}.vin-result-grid strong{display:block;margin-top:3px;font-size:12px;word-break:break-word}.vin-result-actions{display:flex;justify-content:flex-end;margin-top:9px}@media(max-width:900px){.vin-field{grid-column:1/-1}.vin-result-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.vin-input-row{align-items:stretch;flex-direction:column}.vin-result-grid{grid-template-columns:1fr}}


/* -------------------------------------------------------------------------
   V2.9 Chytry Monitoring visual refresh
   ------------------------------------------------------------------------- */
:root{
  --brand:#1665a0;--brand-deep:#0d4d7d;--brand-soft:#edf6fc;--brand-ink:#102b3f;
  --bg:#f5f8fb;--card:#ffffff;--text:#102334;--muted:#6b7d8c;--line:#dce7ef;
  --shadow:0 12px 34px rgba(23,67,101,.075);--radius:20px
}
body{background:linear-gradient(180deg,#f8fbfd 0,#f4f8fb 220px,#f3f7fa 100%)}
.topbar{height:76px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid #dfeaf2;box-shadow:0 5px 24px rgba(15,62,95,.045)}
.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#1665a0,#238bc8);box-shadow:0 7px 18px rgba(22,101,160,.23)}
.brand strong{font-size:17px;color:#0f2b40;letter-spacing:-.25px}.brand small{color:#738493}
.nav-tabs a{border-radius:999px;padding:9px 14px}.nav-tabs a:hover,.nav-tabs a.active{background:#eaf4fb;color:#125b91}
.page-wrap{padding-top:34px}.page-kicker,.section-kicker{display:block;color:var(--brand);font-size:10px;font-weight:900;letter-spacing:.15em;margin-bottom:6px}.page-head h1{color:#0e2c42;font-size:36px;letter-spacing:-1px}.page-head p{font-size:14px}
.card,.metric-card,.stat-card{border-color:#e1ebf2;box-shadow:var(--shadow)}
.card{border-radius:20px}.card-head h2{color:#12334b;letter-spacing:-.25px}
.btn{border-radius:12px;transition:.15s ease;box-shadow:none}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,#1665a0,#1c7bb8);box-shadow:0 7px 16px rgba(22,101,160,.18)}.btn-dark{background:#15364d}.btn-light{background:#eff5f9;color:#214a66;border:1px solid #dfebf2}
.search,.compact-select,.form-grid input,.form-grid select,.trip-settings-grid input,.trip-settings-grid select{border-color:#d9e5ed;background:#fbfdfe}.search:focus,input:focus,select:focus{outline:none;border-color:#6da9d1;box-shadow:0 0 0 4px rgba(22,101,160,.09)}
.stat-card{position:relative;overflow:hidden;padding:19px 20px}.stat-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:#dfeaf2}.stat-online:before{background:#24a56a}.stat-moving:before,.stat-ignition:before{background:#2b87c5}.stat-stale:before{background:#d99b37}.stat-offline:before{background:#d95b5b}.stat-card strong{color:#11344d;letter-spacing:-.5px}
.fleet-toolbar,.live-device-head{background:linear-gradient(180deg,#fff,#fbfdfe)}.fleet-filterbar{background:#f7fafc}.fleet-row.selected td{background:#eef7fd}.fleet-row.selected td:first-child{box-shadow:inset 4px 0 0 #1665a0}
.live-device-head .eyebrow{color:#1665a0}.mini-metrics{background:#f8fbfd}.state-pill{border:1px solid rgba(0,0,0,.035)}
.map{border-color:#d6e4ed;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}.map-medium{height:460px}.map-live{height:540px}
.vehicle-stats .metric-card{position:relative;overflow:hidden}.vehicle-stats .metric-card:after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#dceaf3}.vehicle-stats .metric-card strong{color:#123f5d}
.io-card,.drive-stat,.driving-panel{border-color:#dfe9f0;background:linear-gradient(180deg,#fff,#fbfdfe)}
table th{background:#f1f7fb;color:#486375}td{border-bottom-color:#e9f0f4}
.vin-result{background:#f4f9fc;border-color:#d5e5ef}.vin-result-grid>div{border-color:#e1ebf1}
.trip-detector-card{margin-bottom:18px;overflow:hidden}.trip-detector-card:before{content:"";display:block;height:4px;margin:-20px -20px 18px;background:linear-gradient(90deg,#1665a0,#2b91c9,#7fc2e5)}.trip-detector-head{align-items:flex-start}.trip-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.trip-settings-grid label{font-size:11px;color:#607585;font-weight:800}.trip-settings-grid input,.trip-settings-grid select{display:block;width:100%;margin-top:6px;border:1px solid #d9e5ed;border-radius:11px;padding:10px 11px;font:inherit;color:#173247}.check-setting{display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:#f6fafc;border:1px solid #dfeaf1;border-radius:12px;padding:12px 13px;align-self:end;min-height:43px}.check-setting input{width:19px!important;height:19px;margin:0!important;accent-color:#1665a0}.trip-settings-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:3px}.trip-settings-actions .muted{margin-left:auto;font-size:11px;max-width:620px;text-align:right}
@media(max-width:1200px){.trip-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.page-head h1{font-size:30px}.trip-settings-grid{grid-template-columns:1fr}.trip-settings-actions .muted{width:100%;margin-left:0;text-align:left}.map-medium{height:390px}.map-live{height:420px}}

/* -------------------------------------------------------------------------
   V3.0 clarity pass - less clutter, primary/advanced separation
   ------------------------------------------------------------------------- */
.clean-live-page,.clean-vehicle-page{max-width:1780px}
.clean-page-head,.clean-vehicle-head{margin-bottom:18px}.clean-page-head h1,.clean-vehicle-head h1{margin-top:2px}
.clean-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) repeat(2,minmax(120px,.62fr));gap:10px;margin-bottom:16px}
.clean-stat,.clean-stat-secondary{background:#fff;border:1px solid #e1ebf2;border-radius:16px;padding:14px 16px;box-shadow:0 8px 25px rgba(23,67,101,.055);min-height:76px}
.clean-stat{font:inherit;text-align:left;color:var(--text);cursor:pointer}.clean-stat span,.clean-stat-secondary span{display:block;color:var(--muted);font-size:11px;font-weight:800}.clean-stat strong,.clean-stat-secondary strong{display:block;font-size:27px;color:#123b58;margin-top:4px}.clean-stat.active{border-color:#6eacd2;box-shadow:0 0 0 3px rgba(22,101,160,.07)}.clean-stat-secondary{background:#f8fbfd}.clean-stat-secondary strong{font-size:21px}
.clean-dashboard-grid{display:grid;grid-template-columns:minmax(680px,1.55fr) minmax(360px,.75fr);gap:16px;align-items:start}.clean-side-stack{display:grid;gap:16px;position:sticky;top:94px}.clean-fleet-card{padding:0;overflow:hidden}.clean-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}.clean-card-head.compact{padding:0 0 12px}.clean-card-head h2{margin:0 0 3px;font-size:19px}.clean-card-head p{margin:0;color:var(--muted);font-size:12px}.clean-search{width:min(340px,45%)}
.clean-drawer{border-top:1px solid #e6eef4;border-bottom:1px solid #e6eef4;background:#f9fbfd}.clean-drawer>summary{cursor:pointer;list-style:none;padding:10px 20px;font-size:12px;font-weight:850;color:#31546b}.clean-drawer>summary::-webkit-details-marker{display:none}.clean-drawer>summary:after{content:"+";float:right;font-size:17px;color:#618198}.clean-drawer[open]>summary:after{content:"−"}.clean-filterbar{border:0;border-top:1px solid #e7eef3;padding:12px 20px}.clean-fleet-table-wrap{border:0;border-radius:0;max-height:calc(100vh - 330px);min-height:460px}.clean-fleet-table th{top:0}.clean-fleet-table td{padding-top:12px;padding-bottom:12px}
.clean-selected-card{padding:0;overflow:hidden}.clean-selected-head{padding:18px 18px 10px}.clean-mini-metrics{grid-template-columns:repeat(3,1fr);border-top:1px solid #e9f0f4;padding:12px 16px 16px}.clean-mini-metrics>div{padding:10px;border-radius:11px;background:#f7fafc}.clean-mini-metrics span{font-size:10px}.clean-mini-metrics strong{font-size:15px}.clean-map-card{padding:16px}.clean-fleet-map{height:430px}.clean-tech-section{padding:0;margin-top:14px;overflow:hidden}.clean-tech-section>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;cursor:pointer;list-style:none}.clean-tech-section>summary::-webkit-details-marker{display:none}.clean-tech-section>summary span:first-child{display:grid;gap:2px}.clean-tech-section>summary strong{font-size:15px;color:#163a54}.clean-tech-section>summary small{font-size:11px;color:var(--muted)}.summary-action{font-size:11px;font-weight:900;color:var(--brand);background:#edf6fc;padding:7px 10px;border-radius:999px}.clean-tech-section[open] .summary-action{font-size:0}.clean-tech-section[open] .summary-action:after{content:"Skrýt";font-size:11px}.clean-tech-body{border-top:1px solid #e7eef3;padding:16px 20px}.stream-options{display:flex;justify-content:flex-end;margin-bottom:10px}
.detail-tabs{display:flex;gap:6px;overflow:auto;margin:-2px 0 16px;padding:5px;background:#eaf1f6;border-radius:14px;width:max-content;max-width:100%}.detail-tabs button{border:0;background:transparent;padding:10px 14px;border-radius:10px;font:inherit;font-size:12px;font-weight:850;color:#587084;cursor:pointer;white-space:nowrap}.detail-tabs button.active{background:#fff;color:#155d92;box-shadow:0 4px 14px rgba(17,63,95,.09)}.detail-panel{display:none}.detail-panel.active{display:block}.clean-vehicle-stats{margin-bottom:16px}.clean-overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:16px}.clean-position-card,.clean-important-card{min-width:0}.clean-vehicle-map{height:520px}.clean-important-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clean-important-card .io-card{padding:12px}.clean-important-card .io-card strong{font-size:16px}.clean-section-card{margin-bottom:16px}.clean-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.clean-form-grid .vin-field{grid-column:span 3}.clean-trip-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1250px){.clean-dashboard-grid{grid-template-columns:1fr}.clean-side-stack{position:static;grid-template-columns:1fr 1fr}.clean-fleet-table-wrap{max-height:none}.clean-overview-grid{grid-template-columns:1fr}.clean-important-grid{grid-template-columns:repeat(3,1fr)}.clean-form-grid{grid-template-columns:repeat(2,1fr)}.clean-form-grid .vin-field{grid-column:span 2}.clean-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.clean-stats{grid-template-columns:repeat(2,1fr)}.clean-dashboard-grid{display:block}.clean-side-stack{display:grid;grid-template-columns:1fr;margin-top:14px}.clean-search{width:100%}.clean-card-head{align-items:stretch;flex-direction:column}.clean-fleet-table-wrap{min-width:760px}.clean-important-grid{grid-template-columns:repeat(2,1fr)}.clean-form-grid{grid-template-columns:1fr}.clean-form-grid .vin-field{grid-column:1}.clean-trip-grid{grid-template-columns:1fr}.clean-vehicle-map{height:420px}.detail-tabs{width:100%}.app-topbar .global-nav{order:3;width:100%}}
@media(max-width:520px){.clean-stats{grid-template-columns:1fr 1fr}.clean-stat,.clean-stat-secondary{padding:11px 12px;min-height:68px}.clean-stat strong,.clean-stat-secondary strong{font-size:21px}.clean-mini-metrics{grid-template-columns:1fr 1fr}.clean-important-grid{grid-template-columns:1fr}}

/* -------------------------------------------------------------------------
   V3.1 FOCUS UI - fewer boxes, clearer hierarchy
   ------------------------------------------------------------------------- */
.focus-live-page,.focus-vehicle-page{max-width:1760px}
.focus-topbar{height:68px}
.focus-titlebar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:2px 0 14px}
.focus-titlebar h1{margin:2px 0 0;font-size:32px;letter-spacing:-.7px}
.focus-statusbar{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) repeat(2,minmax(130px,.72fr));gap:8px;margin-bottom:14px}
.focus-status,.focus-status-note{min-height:58px;border:1px solid #dfe9f0;background:#fff;border-radius:13px;padding:10px 14px;box-shadow:0 5px 18px rgba(21,61,91,.045)}
.focus-status{font:inherit;text-align:left;cursor:pointer;color:var(--text);transition:.12s}
.focus-status:hover{border-color:#aec8da}.focus-status.active{border-color:#5b9cc7;box-shadow:0 0 0 2px rgba(22,101,160,.07)}
.focus-status span,.focus-status-note span{display:block;color:#6d8090;font-size:10px;font-weight:850}.focus-status strong,.focus-status-note strong{display:block;margin-top:2px;font-size:22px;color:#143b57}.focus-status-note{background:#f8fbfd}.focus-status-note strong{font-size:18px}
.focus-dashboard-grid{display:grid;grid-template-columns:minmax(700px,1.65fr) minmax(360px,.72fr);gap:14px;align-items:start}
.focus-side-stack{display:grid;gap:14px;position:sticky;top:84px}
.focus-fleet-card{padding:0;overflow:hidden}.focus-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px}.focus-card-head.compact{padding:0 0 10px}.focus-card-head h2{font-size:18px;margin:0 0 2px}.focus-card-head p{font-size:11px;color:var(--muted);margin:0}.focus-search{width:min(340px,46%)}
.focus-filter-drawer>summary{padding:8px 18px}.focus-fleet-table-wrap{border:0;border-radius:0;max-height:calc(100vh - 265px);min-height:500px}.focus-fleet-table th,.focus-fleet-table td{padding:11px 14px}.focus-fleet-table th:nth-child(1){width:105px}.focus-fleet-table th:nth-child(3){width:300px}.focus-fleet-table th:nth-child(4){width:115px}.focus-fleet-table th:nth-child(5){width:150px}.focus-fleet-table .fleet-main-name{max-width:390px;font-size:14px}.fleet-state-sub{display:block;margin-top:5px;font-size:10px;color:#71808d}.fleet-speed-unit{font-size:11px;color:#7b8792}.fleet-location-cell{min-width:230px;max-width:330px}.fleet-location-main{display:block;color:#173b56;font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fleet-location-sub{display:block;margin-top:3px;color:#7b8c99;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fleet-location-muted{color:#6f8290}.fleet-location-loading{font-weight:750;color:#6f8290}
.focus-selected-card{padding:16px 17px}.focus-selected-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.focus-selected-top h2{font-size:22px;line-height:1.05;margin:3px 0 4px}.focus-selected-top p{font-size:11px;color:var(--muted);margin:0}.focus-big-speed{font-size:28px;color:#123c59;white-space:nowrap}.focus-selected-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0}.focus-selected-chips span{background:#f6f9fb;border:1px solid #e5edf3;border-radius:10px;padding:8px 9px;min-width:0}.focus-selected-chips small{display:block;color:#768796;font-size:9px;font-weight:800}.focus-selected-chips strong{display:block;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.focus-selected-actions{display:flex;gap:8px}.focus-selected-actions .btn{flex:1;padding:9px 10px}
.focus-map-card{padding:14px}.focus-fleet-map{height:390px}.focus-service-section{margin-top:12px}.focus-stream-drawer{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.focus-stream-drawer>summary{cursor:pointer;font-size:12px;font-weight:850;color:#31546b;margin-bottom:10px}

.focus-vehicle-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}.focus-vehicle-head h1{font-size:31px;margin:4px 0 5px}.focus-vehicle-head p{margin:0;color:var(--muted);font-size:12px}.focus-detail-tabs{margin:0 0 12px;padding:4px;border-radius:12px}.focus-detail-tabs button{padding:9px 14px}
.focus-live-strip{display:grid;grid-template-columns:1.25fr repeat(5,1fr);background:#fff;border:1px solid #e1eaf1;border-radius:15px;box-shadow:0 7px 24px rgba(20,60,90,.055);overflow:hidden;margin-bottom:12px}.focus-live-strip>div{padding:12px 15px;border-right:1px solid #edf1f4}.focus-live-strip>div:last-child{border-right:0}.focus-live-strip span{display:block;color:#71808d;font-size:10px;font-weight:850}.focus-live-strip strong{display:block;font-size:18px;color:#173b56;margin-top:2px}.focus-live-primary strong{font-size:25px;color:#0f5f96}
.focus-position-card{padding:0;overflow:hidden}.focus-position-card .focus-card-head{padding:14px 18px;border-bottom:1px solid #e7eef3}.focus-vehicle-map{height:560px;border:0;border-radius:0}.focus-stale-text{color:#a86913!important;font-weight:750}
.focus-more-data{padding:0;margin-top:12px;overflow:hidden}.focus-more-data>summary,.focus-service-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;cursor:pointer;list-style:none}.focus-more-data>summary::-webkit-details-marker,.focus-service-section>summary::-webkit-details-marker{display:none}.focus-more-data>summary span:first-child,.focus-service-section>summary span:first-child{display:grid;gap:2px}.focus-more-data>summary strong,.focus-service-section>summary strong{font-size:14px;color:#173b56}.focus-more-data>summary small,.focus-service-section>summary small{font-size:10px;color:var(--muted)}.focus-more-data[open] .summary-action,.focus-service-section[open] .summary-action{font-size:0}.focus-more-data[open] .summary-action:after,.focus-service-section[open] .summary-action:after{content:"Skrýt";font-size:11px}.focus-important-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 18px;border-top:1px solid #e7eef3}.focus-io-card{background:#fafcfd}.focus-io-card small{display:block;color:#84929e;font-size:9px;margin-top:4px}
.focus-position-history{padding:0;overflow:hidden}.focus-position-history .table-wrap{border:0;border-top:1px solid var(--line);border-radius:0;max-height:420px}

@media(max-width:1320px){.focus-dashboard-grid{grid-template-columns:1fr}.focus-side-stack{position:static;grid-template-columns:420px minmax(0,1fr)}.focus-fleet-table-wrap{max-height:520px}.focus-statusbar{grid-template-columns:repeat(3,1fr)}.focus-important-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.focus-statusbar{grid-template-columns:repeat(2,1fr)}.focus-side-stack{grid-template-columns:1fr}.focus-search{width:100%}.focus-card-head{align-items:stretch;flex-direction:column}.focus-fleet-table-wrap{min-width:980px}.focus-live-strip{grid-template-columns:repeat(3,1fr)}.focus-live-strip>div{border-bottom:1px solid #edf1f4}.focus-important-grid{grid-template-columns:repeat(2,1fr)}.focus-vehicle-map{height:430px}}
@media(max-width:560px){.focus-statusbar{grid-template-columns:1fr 1fr}.focus-status,.focus-status-note{padding:9px 10px}.focus-selected-chips{grid-template-columns:1fr 1fr}.focus-live-strip{grid-template-columns:1fr 1fr}.focus-important-grid{grid-template-columns:1fr}.focus-vehicle-head{align-items:flex-start;flex-direction:column}.head-actions{display:flex;width:100%;gap:8px}.head-actions .btn{flex:1}}


/* V3.3 route since ignition */
.route-hint{margin-top:4px!important;color:#1665a0!important;font-weight:700;font-size:12px!important;}

/* V3.4 full RSV vehicle registry */
.registry-card{margin-top:16px}.registry-head{align-items:flex-start}.registry-table-wrap{min-height:72px}.registry-table-scroll{max-height:680px;border-radius:14px}.registry-table{table-layout:fixed}.registry-table col{width:auto}.registry-table .registry-group th{position:static;background:#eaf3f9;color:#174a6f;font-size:12px;font-weight:900;letter-spacing:.02em;padding:10px 12px;border-top:1px solid #d7e6f0;border-bottom:1px solid #d7e6f0}.registry-table .registry-label{width:18%;color:#6d7f8d;font-size:11px;font-weight:850;background:#fbfcfd}.registry-table .registry-value{width:32%;color:#17384f;font-weight:700;white-space:normal;word-break:break-word;line-height:1.35}.registry-table td{padding:9px 11px}.registry-table tbody:first-child .registry-group th{border-top:0}.registry-table tr:hover td{background:#f8fbfd}.registry-table tr:hover .registry-label{background:#f4f8fb}@media(max-width:900px){.registry-table{min-width:920px}.registry-table-scroll{max-height:560px}}

/* RSV UI polish V3.4.3 */
.registry-value.registry-stk-ok{background:#eaf8f0!important;color:#17643a!important;font-weight:900}
.registry-value.registry-stk-warn{background:#fff5db!important;color:#8a5a00!important;font-weight:900}
.registry-value.registry-stk-danger{background:#fdeaea!important;color:#a72828!important;font-weight:900}
.registry-extra-summary th{padding:0!important}
.registry-extra-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;background:transparent;color:inherit;font:inherit;font-weight:850;text-align:left;padding:10px 12px;cursor:pointer}
.registry-extra-toggle span{font-size:11px;font-weight:750;color:#6d7f8d;text-transform:none;letter-spacing:0}
.registry-extra-toggle:hover{background:#eaf3f9}
.registry-extra-row[hidden]{display:none}

/* V3.5 human-readable live telemetry */
.focus-more-data #importantIo{display:block;padding:0;border-top:1px solid #e7eef3}
.focus-io-group{padding:14px 18px 16px;border-bottom:1px solid #edf2f5}
.focus-io-group:last-child{border-bottom:0}
.focus-io-group-title{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#4f6b80;margin:0 0 9px}
.focus-io-group .focus-important-grid{padding:0;border-top:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.focus-io-card strong{font-size:20px;letter-spacing:-.2px}
.focus-io-card small{line-height:1.35}
.focus-io-wide{grid-column:span 2}
.focus-io-mono strong{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:16px;letter-spacing:.02em}
@media(max-width:1100px){.focus-io-group .focus-important-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.focus-io-group .focus-important-grid{grid-template-columns:1fr}.focus-io-wide{grid-column:span 1}}

/* V3.6 human-friendly driving style */
.human-driving-card{padding-bottom:18px}
.human-driving-card .driving-head{margin-bottom:14px}
.driving-summary{display:flex;align-items:center;gap:12px;padding:14px 16px;margin-bottom:12px;border:1px solid #dce9f2;background:#f4f9fc;border-radius:13px;color:#173b56;min-height:52px}
.driving-summary-label{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#5e788b;white-space:nowrap}
.driving-summary strong{font-size:14px;line-height:1.45;font-weight:800}
.human-driving-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.human-drive-stat{min-height:112px;display:flex;flex-direction:column;justify-content:center}
.human-drive-stat span{font-size:11px;font-weight:800;color:#6b7f8e}
.human-drive-stat strong{font-size:25px;line-height:1.05;margin:7px 0 5px;color:#173b56}
.human-drive-stat small{font-size:10px;line-height:1.4;color:#7f8f9b}
.human-tone-speed{border-top:3px solid #2d83bd}.human-tone-engine{border-top:3px solid #71889a}.human-tone-throttle{border-top:3px solid #5d9c78}.human-tone-fuel{border-top:3px solid #a77d37}
.driving-human-sections{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px;margin-top:4px}
.human-panel-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:11px}
.human-panel-head h3{margin:0 0 3px;font-size:16px;color:#173b56}.human-panel-head p{margin:0;font-size:10px;color:#7c8e9c;line-height:1.4}
.human-note{margin:10px 0 0!important;padding-top:9px;border-top:1px solid #edf2f5;font-size:10px!important;line-height:1.45;color:#788b99!important}
.human-top-speeds table th:last-child,.human-top-speeds table td:last-child{text-align:right}.human-top-speeds table td strong{font-size:14px;color:#173b56}
.driving-tech-details{margin-top:13px;border-top:1px solid #e6edf2;padding-top:11px}
.driving-tech-details>summary{cursor:pointer;list-style:none;font-size:11px;font-weight:850;color:#5f7585}.driving-tech-details>summary::-webkit-details-marker{display:none}.driving-tech-details>summary:after{content:' +';font-weight:900}.driving-tech-details[open]>summary:after{content:' −'}
.driving-tech-details .driving-availability{margin:11px 0 0}
@media(max-width:1200px){.human-driving-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.driving-human-sections{grid-template-columns:1fr}}
@media(max-width:650px){.driving-summary{align-items:flex-start;flex-direction:column;gap:5px}.human-driving-grid{grid-template-columns:1fr}.human-drive-stat{min-height:96px}}


/* V3.7 vehicle connection / last online */
.vehicle-connection-bar{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:0;background:#fff;border:1px solid #e1eaf1;border-radius:15px;box-shadow:0 7px 24px rgba(20,60,90,.055);overflow:hidden;margin:0 0 12px}
.vehicle-connection-state,.vehicle-connection-item{min-width:0;padding:12px 15px;border-right:1px solid #edf1f4}
.vehicle-connection-item:last-child{border-right:0}
.vehicle-connection-state{display:flex;align-items:center;gap:10px}
.vehicle-connection-state>div,.vehicle-connection-item{display:flex;flex-direction:column;justify-content:center}
.vehicle-connection-bar small{font-size:10px;font-weight:850;color:#71808d;margin-bottom:2px}
.vehicle-connection-bar strong{font-size:16px;line-height:1.2;color:#173b56}
.vehicle-connection-bar span:not(.vehicle-connection-dot){font-size:10px;color:#7d8d99;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vehicle-connection-dot{width:12px;height:12px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 5px rgba(120,140,155,.10)}
.vehicle-connection-dot.is-online{background:#23a36d;box-shadow:0 0 0 5px rgba(35,163,109,.12)}
.vehicle-connection-dot.is-stale{background:#d99a25;box-shadow:0 0 0 5px rgba(217,154,37,.13)}
.vehicle-connection-dot.is-offline{background:#9aa8b3;box-shadow:0 0 0 5px rgba(154,168,179,.12)}
.vehicle-connection-dot.is-unknown{background:#c3cbd1}
@media(max-width:900px){.vehicle-connection-bar{grid-template-columns:1fr 1fr}.vehicle-connection-state,.vehicle-connection-item{border-bottom:1px solid #edf1f4}.vehicle-connection-item:nth-child(2){border-right:0}}
@media(max-width:560px){.vehicle-connection-bar{grid-template-columns:1fr}.vehicle-connection-state,.vehicle-connection-item{border-right:0}}

/* V3.8 current address / reverse geocoding */
.vehicle-location-bar{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e1eaf1;border-radius:15px;box-shadow:0 7px 24px rgba(20,60,90,.05);padding:12px 15px;margin:0 0 12px}
.vehicle-location-pin{width:36px;height:36px;border-radius:11px;background:#edf6fc;color:#1769aa;display:grid;place-items:center;font-size:23px;font-weight:900;flex:0 0 auto}
.vehicle-location-copy{min-width:0;display:flex;flex-direction:column}.vehicle-location-copy small{font-size:10px;font-weight:900;color:#71808d;margin-bottom:2px;text-transform:uppercase;letter-spacing:.05em}.vehicle-location-copy strong{font-size:17px;line-height:1.25;color:#173b56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vehicle-location-copy span{font-size:11px;color:#7b8c99;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.vehicle-location-copy strong,.vehicle-location-copy span{white-space:normal}.vehicle-location-bar{align-items:flex-start}}

/* V3.8.3 fleet address column */


/* V3.9 Wialon-like daily history embedded in vehicle detail */
.daily-history-card{padding:18px 20px 22px}.daily-history-head{align-items:flex-start;margin-bottom:14px}.daily-history-head .btn{white-space:nowrap}
.daily-history-nav{display:grid;grid-template-columns:42px minmax(0,1fr) 42px auto;gap:8px;align-items:stretch;margin-bottom:12px}.history-nav-btn{border:1px solid #dce7ee;background:#f5f9fb;color:#27536e;border-radius:11px;font:inherit;font-size:24px;font-weight:800;cursor:pointer}.history-nav-btn:disabled{opacity:.35;cursor:not-allowed}.history-date-chips{display:grid;grid-template-columns:repeat(5,minmax(86px,1fr));gap:7px}.history-date-chip{border:1px solid #dce7ee;background:#fff;border-radius:11px;padding:8px 10px;min-height:48px;color:#536b7d;font:inherit;font-size:11px;font-weight:850;cursor:pointer;text-align:center}.history-date-chip span{display:block}.history-date-chip small{display:block;margin-top:2px;color:#8a99a5;font-size:9px;font-weight:800}.history-date-chip:hover{border-color:#9fc0d6;background:#f8fbfd}.history-date-chip.active{background:#1b79b8;border-color:#1b79b8;color:#fff;box-shadow:0 6px 14px rgba(27,121,184,.2)}.history-date-chip.active small{color:#dceffa}.history-today-btn{padding:8px 13px}
.daily-history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dde8ef;border-radius:13px;overflow:hidden;background:#fff;margin-bottom:12px}.history-summary-item{padding:11px 14px;border-right:1px solid #e8eef3;position:relative}.history-summary-item:last-child{border-right:0}.history-summary-item:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#b9c8d2}.history-summary-item.drive:before{background:#4eaf78}.history-summary-item.distance:before{background:#6d8fc6}.history-summary-item.parking:before{background:#4e94c6}.history-summary-item.count:before{background:#8d9aa5}.history-summary-item span{display:block;color:#728593;font-size:10px;font-weight:850}.history-summary-item strong{display:block;margin-top:3px;color:#163b56;font-size:18px}
.daily-history-timeline{border:1px solid #e1e9ef;border-radius:14px;overflow:hidden;background:#fff}.history-event{display:grid;grid-template-columns:74px 40px minmax(0,1fr);min-height:62px;border-bottom:1px solid #e8eef2}.history-event:last-child{border-bottom:0}.history-event-drive{background:#f0faf4}.history-event-parking{background:#fff}.history-event-time{display:flex;align-items:flex-start;justify-content:flex-end;padding:15px 10px 10px 12px;color:#34546a;font-size:12px;font-weight:900}.history-event-rail{position:relative;display:flex;justify-content:center;padding-top:10px}.history-event-rail:after{content:'';position:absolute;top:39px;bottom:-1px;width:2px;background:#d8e3ea}.history-event:last-child .history-event-rail:after{display:none}.history-event-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:2px solid;font-size:12px;font-weight:950;background:#fff;z-index:1}.history-event-icon.drive{color:#3d9d68;border-color:#69bd8d}.history-event-icon.parking{color:#3c85b7;border-color:#6ba5cd}.history-event-body{padding:11px 14px 10px 2px;min-width:0}.history-event-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.history-event-main strong{font-size:13px;color:#183c55}.history-event-main span{font-size:11px;color:#587181;font-weight:750}.history-event-sub{margin-top:4px;color:#78909f;font-size:10px}.history-event-address{margin-top:4px;color:#607b8d;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-now-badge{display:inline-flex!important;border-radius:999px;background:#e6f7ef;color:#137648!important;padding:2px 7px;font-size:9px!important;font-weight:900!important}.history-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8d99;padding:25px}.history-empty>span{width:34px;height:34px;border:2px solid #9caab4;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:19px;margin-bottom:9px}.history-empty strong{color:#4f6575;font-size:15px}.history-empty small{margin-top:5px;max-width:460px;line-height:1.45}
@media(max-width:900px){.daily-history-nav{grid-template-columns:36px minmax(0,1fr) 36px}.history-today-btn{grid-column:1/-1}.history-date-chips{grid-template-columns:repeat(5,minmax(72px,1fr));overflow:auto}.daily-history-summary{grid-template-columns:1fr 1fr}.history-summary-item:nth-child(2){border-right:0}.history-summary-item:nth-child(-n+2){border-bottom:1px solid #e8eef3}}
@media(max-width:600px){.daily-history-card{padding:14px 12px 18px}.daily-history-head{flex-direction:column}.daily-history-head .btn{width:100%}.history-date-chips{grid-template-columns:repeat(5,88px)}.daily-history-summary{grid-template-columns:1fr 1fr}.history-event{grid-template-columns:58px 35px minmax(0,1fr)}.history-event-time{padding-left:6px;padding-right:6px;font-size:11px}.history-event-body{padding-right:9px}.history-event-address{white-space:normal}.history-event-main{gap:6px}}

/* V3.10 Mapy.com attribution logo */
.cm-mapy-logo{background:rgba(255,255,255,.92);border-radius:6px;padding:3px 6px;box-shadow:0 1px 5px rgba(0,0,0,.18);line-height:0}
.cm-mapy-logo img{display:block;width:88px;height:auto}

/* CM-FIX-3.12.3-MAP-STACK START */
/* Keep Leaflet/Mapy layers inside their own map box so they can never cover the app header. */
.map,
.map-live,
.leaflet-container {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

/* Header/navigation always stays above map controls, tiles and attribution. */
header,
.topbar,
.app-header,
.site-header,
.main-header,
.navbar,
.app-nav {
  z-index: 5000;
  isolation: isolate;
}

/* Leaflet keeps its internal pane order, but the entire stack is trapped inside .leaflet-container. */
.leaflet-control-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  max-width: 100%;
}
/* CM-FIX-3.12.3-MAP-STACK END */


/* V3.12.13 native trip route map in vehicle detail -> Historie */
.history-event-drive{cursor:pointer;outline:none;transition:background .14s ease,box-shadow .14s ease}
.history-event-drive:hover{background:#e5f6ec}
.history-event-drive:focus-visible{box-shadow:inset 0 0 0 2px #4b9fca}
.history-event-drive.active{background:#dff3e8;box-shadow:inset 4px 0 0 #2d9f65}
.history-route-action{margin-left:auto!important;color:#1769aa!important;font-weight:900!important;font-size:10px!important;white-space:nowrap}
.history-route-card{margin-top:14px;border:1px solid #dce7ef;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(20,60,90,.055)}
.history-route-card[hidden]{display:none!important}
.history-route-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 16px 12px;border-bottom:1px solid #e8eef3}
.history-route-head h3{margin:1px 0 4px;color:#173b56;font-size:18px}
.history-route-head p{margin:0;color:#718493;font-size:11px}
.history-route-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid #e8eef3;background:#fbfdfe}
.history-route-stats>div{padding:10px 12px;border-right:1px solid #e8eef3;min-width:0}
.history-route-stats>div:last-child{border-right:0}
.history-route-stats span{display:block;color:#748694;font-size:9px;font-weight:850}
.history-route-stats strong{display:block;margin-top:3px;color:#173b56;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-route-stats .loader,.history-route-stats .empty{grid-column:1/-1;padding:13px}
.history-trip-map{height:420px;border:0;border-radius:0}
.history-route-marker-wrap{background:transparent!important;border:0!important}
.history-route-marker{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#1665a0;color:#fff;border:3px solid #fff;box-shadow:0 3px 10px rgba(15,55,85,.3);font-weight:950;font-size:12px}
@media(max-width:900px){.history-route-stats{grid-template-columns:repeat(3,1fr)}.history-route-stats>div:nth-child(3){border-right:0}.history-trip-map{height:360px}}
@media(max-width:600px){.history-route-head{flex-direction:column}.history-route-head .btn{width:100%}.history-route-stats{grid-template-columns:repeat(2,1fr)}.history-route-stats>div:nth-child(3){border-right:1px solid #e8eef3}.history-route-stats>div:nth-child(even){border-right:0}.history-route-action{width:100%;margin-left:0!important;margin-top:2px}.history-trip-map{height:320px}}


/* V3.12.17 parking location + daily history export */
.daily-history-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.history-event-parking.has-location{cursor:pointer;outline:none;transition:background .14s ease,box-shadow .14s ease}
.history-event-parking.has-location:hover{background:#eef7fd}
.history-event-parking.has-location:focus-visible{box-shadow:inset 0 0 0 2px #4b9fca}
.history-event-parking.has-location.active{background:#e5f2fb;box-shadow:inset 4px 0 0 #4b91bf}
.history-parking-action{margin-left:auto!important;color:#1769aa!important;font-weight:900!important;font-size:10px!important;white-space:nowrap}
.history-print-header{display:none}
@media(max-width:700px){.daily-history-actions{width:100%;justify-content:stretch}.daily-history-actions .btn{flex:1}.daily-history-actions #fullTripsLink{flex-basis:100%}.history-parking-action{width:100%;margin-left:0!important;margin-top:2px}}
@media print{
  @page{size:A4 portrait;margin:11mm}
  body.history-print-mode{background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.history-print-mode *{visibility:hidden!important}
  body.history-print-mode [data-detail-panel="history"],body.history-print-mode [data-detail-panel="history"] *{visibility:visible!important}
  body.history-print-mode [data-detail-panel="history"]{display:block!important;position:absolute!important;left:0;top:0;width:100%;margin:0!important;padding:0!important}
  body.history-print-mode .daily-history-card{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
  body.history-print-mode .daily-history-head .daily-history-actions,body.history-print-mode .daily-history-nav,body.history-print-mode .history-route-card{display:none!important}
  body.history-print-mode .history-print-header{display:flex!important;justify-content:space-between;align-items:flex-end;border-bottom:2px solid #1665a0;padding:0 0 9px;margin:0 0 12px;color:#173b56}
  body.history-print-mode .history-print-header strong{font-size:18px}body.history-print-mode .history-print-header span{font-size:12px;color:#607b8d}
  body.history-print-mode .daily-history-head{margin-bottom:10px!important}.daily-history-timeline{break-inside:auto}.history-event{break-inside:avoid}
}


/* V3.12.18 clickable current / last-known vehicle location */
.vehicle-location-clickable{cursor:pointer;outline:none;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease}
.vehicle-location-clickable:hover{background:#f3f9fd;border-color:#c9dfed;box-shadow:0 9px 28px rgba(20,60,90,.075);transform:translateY(-1px)}
.vehicle-location-clickable:focus-visible{box-shadow:0 0 0 3px rgba(22,101,160,.14),0 9px 28px rgba(20,60,90,.075)}
.vehicle-location-action{margin-left:auto;white-space:nowrap;color:#1769aa;font-size:11px;font-weight:900}
@media(max-width:700px){.vehicle-location-action{margin-left:0;align-self:center;font-size:10px}.vehicle-location-clickable{flex-wrap:wrap}.vehicle-location-copy{flex:1;min-width:220px}}


/* V3.12.19 shared brand logo */
.brand.brand-has-logo{gap:0;min-width:0}
.brand-logo-img{display:block;height:44px;width:auto;max-width:min(42vw,360px);object-fit:contain}
.brand-text-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.brand-logo-img{height:38px;max-width:min(58vw,300px)}}
@media(max-width:560px){.topbar{padding:0 14px;gap:12px}.brand-logo-img{height:32px;max-width:min(60vw,240px)}}

.history-print-brand{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;width:100%}
.history-print-logo{display:block;height:40px;width:auto;max-width:320px;object-fit:contain}
.history-print-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.history-print-meta strong{font-size:18px}
.history-print-meta span{font-size:12px;color:#607b8d}
@media(max-width:700px){.history-print-brand{flex-direction:column;align-items:flex-start}.history-print-meta{align-items:flex-start;text-align:left}.history-print-logo{height:34px;max-width:260px}}
@media print{
  body.history-print-mode .history-print-header{display:block!important;justify-content:normal;align-items:normal;border-bottom:2px solid #1665a0;padding:0 0 9px;margin:0 0 12px;color:#173b56}
  body.history-print-mode .history-print-brand{display:flex!important}
  body.history-print-mode .history-print-logo{height:34px;max-width:300px}
  body.history-print-mode .history-print-meta strong{font-size:17px}
}

/* CM-FIX-3.12.21-BOOK-PRINT START */

/* Dashboard - preserve the already approved larger logo from 3.12.20. */
.topbar,
.app-topbar,
.focus-topbar{
  min-height:94px;
  height:auto;
  padding-top:10px;
  padding-bottom:10px;
}
.topbar .brand,
.app-topbar .brand,
.focus-topbar .brand{
  min-height:68px;
  align-items:center;
}
.topbar .brand img,
.app-topbar .brand img,
.focus-topbar .brand img,
.topbar a.brand img,
.app-topbar a.brand img,
.focus-topbar a.brand img,
.topbar img.brand-logo,
.app-topbar img.brand-logo,
.focus-topbar img.brand-logo,
.topbar img.site-logo,
.app-topbar img.site-logo,
.focus-topbar img.site-logo,
.topbar img[src*="logo"],
.app-topbar img[src*="logo"],
.focus-topbar img[src*="logo"]{
  width:205px !important;
  height:auto !important;
  max-width:205px !important;
  max-height:68px !important;
  object-fit:contain !important;
}
.topbar .brand-mark,
.app-topbar .brand-mark,
.focus-topbar .brand-mark{
  width:56px;
  height:56px;
  border-radius:15px;
  font-size:20px;
}
.topbar .brand strong,
.app-topbar .brand strong,
.focus-topbar .brand strong{font-size:19px}
.topbar .brand small,
.app-topbar .brand small,
.focus-topbar .brand small{font-size:13px}

/* Never resurrect the duplicate document brand from 3.12.19. */
.cm-doc-brand,
.cm-doc-brand-copy{display:none !important}

.history-print-header,
.print-header,
.pdf-header,
.document-header{align-items:flex-end !important}
.cm-print-logo{
  display:block !important;
  width:228px !important;
  max-width:228px !important;
  height:auto !important;
  max-height:76px !important;
  object-fit:contain !important;
}
.cm-print-logo-wrap{
  display:flex !important;
  align-items:flex-end;
  min-width:0;
}

/* CSV remains disabled. The whole parking row is clickable, so this text is redundant. */
#historyCsvBtn,
.history-export-csv,
[data-action="export-csv"],
[data-export="csv"],
.history-parking-action{display:none !important}

@media print{
  @page{margin:9mm 10mm 9mm 10mm}

  /* Header: one logo left, vehicle + date right. */
  .history-print-header,
  .print-header,
  .pdf-header,
  .document-header{
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-end !important;
    gap:20px !important;
    min-height:72px !important;
    padding:0 0 8px !important;
    margin:0 0 8px !important;
    border-bottom:2px solid #1665a0 !important;
  }
  .cm-print-logo{
    width:228px !important;
    max-width:228px !important;
    height:auto !important;
    max-height:72px !important;
  }

  /* Requested clean book heading: keep only "Denní kniha jízd". */
  .daily-history-head .section-kicker,
  .daily-history-head p{
    display:none !important;
  }
  .daily-history-head{
    margin:0 0 5px !important;
    padding:0 !important;
  }
  .daily-history-head h2{
    margin:0 !important;
    font-size:17px !important;
    line-height:1.1 !important;
  }

  /* No interactive actions in printed/PDF output. */
  .history-route-action,
  .history-parking-action,
  #historyRouteCard,
  .history-route-card,
  .daily-history-actions,
  .daily-history-nav,
  .history-today-btn,
  .history-date-chips,
  .history-nav-btn{
    display:none !important;
  }

  .daily-history-card{padding:0 !important}
  .daily-history-summary{
    margin:0 0 5px !important;
    gap:0 !important;
  }
  .history-summary-item{padding:4px 8px !important}
  .history-summary-item span{font-size:7.5px !important;line-height:1 !important}
  .history-summary-item strong{font-size:12px !important;line-height:1.08 !important;margin-top:2px !important}

  /* About 50% denser than the previous print layout. */
  .history-event{
    min-height:30px !important;
    grid-template-columns:50px 26px minmax(0,1fr) !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }
  .history-event-time{
    padding:5px 4px 3px 4px !important;
    font-size:8.4px !important;
    line-height:1.05 !important;
  }
  .history-event-rail{padding-top:3px !important}
  .history-event-rail:after{top:22px !important;width:1px !important}
  .history-event-icon{
    width:19px !important;
    height:19px !important;
    min-width:19px !important;
    font-size:8px !important;
    border-width:1.5px !important;
  }
  .history-event-body{
    padding:3px 6px 3px 1px !important;
    min-width:0 !important;
  }
  .history-event-main{
    gap:5px !important;
    line-height:1.03 !important;
  }
  .history-event-main strong{font-size:9px !important;line-height:1.03 !important}
  .history-event-main span{font-size:8px !important;line-height:1.03 !important}
  .history-event-sub,
  .history-event-address{
    margin-top:1px !important;
    font-size:7.4px !important;
    line-height:1.08 !important;
  }
  .history-now-badge{
    font-size:6.8px !important;
    padding:1px 4px !important;
  }
}
/* CM-FIX-3.12.21-BOOK-PRINT END */

/* CM-FIX-3.12.24-DAILY-BOOK-CLEANUP START */
/* Final clean daily-book header on screen and in print. */
[data-detail-panel="history"] .daily-history-head .section-kicker,
[data-detail-panel="history"] .daily-history-head p,
#historyCsvBtn,
.history-export-csv,
[data-action="export-csv"],
[data-export="csv"]{
  display:none !important;
}

[data-detail-panel="history"] .daily-history-head{
  align-items:center;
}
[data-detail-panel="history"] .daily-history-head h2{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

@media print{
  [data-detail-panel="history"] .daily-history-head .section-kicker,
  [data-detail-panel="history"] .daily-history-head p,
  #historyCsvBtn,
  .history-export-csv,
  [data-action="export-csv"],
  [data-export="csv"]{
    display:none !important;
  }
}
/* CM-FIX-3.12.24-DAILY-BOOK-CLEANUP END */

/* CM-FIX-3.12.25-BRAND-BLUE START */
:root{
  --primary:#0056fb !important;
  --primary2:#0047d4 !important;
  --brand:#0056fb !important;
  --brand-deep:#0047d4 !important;
  --brand-soft:#eef4ff !important;
  --brand-ink:#0d2658 !important;
  --cm-brand-rgb:0,86,251 !important;
}

/* Hlavní brand akcent */
.page-kicker,
.section-kicker,
.eyebrow,
.back-link,
.route-hint,
.trip-km,
.trip-link,
.vehicle-location-clickable .vehicle-location-meta,
.vehicle-location-open,
.daily-history-title-accent,
.history-timeline-link,
.location-link,
.brand-link,
.nav-tabs a:hover,
.nav-tabs a.active,
.segmented button.active,
.focus-live-primary strong,
.live-device-head .eyebrow,
.fleet-main-badges .badge-can,
.code-can,
.vin-hint.vin-loading,
.vehicle-location-pin,
.trip-item.active .trip-km,
.trip-item:hover .trip-km{
  color:#0056fb !important;
}

/* Jemné modré pozadí */
.nav-tabs a:hover,
.nav-tabs a.active,
.fleet-row.selected td,
.trip-item:hover,
.trip-item.active,
.vehicle-location-pin,
.brand-soft,
.trip-route-card-active,
.print-brand-soft,
.history-route-card-active,
.daily-history-row-trip,
.trip-link:hover,
.location-link:hover{
  background-color:#eef4ff !important;
}

/* Brand prvky */
.brand-mark{
  background:linear-gradient(145deg,#0056fb,#2d73ff) !important;
  box-shadow:0 7px 18px rgba(0,86,251,.23) !important;
}

.btn-primary{
  background:linear-gradient(135deg,#0056fb,#2d73ff) !important;
  box-shadow:0 7px 16px rgba(0,86,251,.20) !important;
}
.btn-primary:hover{
  background:linear-gradient(135deg,#0047d4,#2568ff) !important;
}

/* Focus / selected stavy */
.search:focus,
input:focus,
select:focus,
.stat-filter.active,
.trip-item.active,
.trip-item:hover,
.fleet-row.selected td:first-child,
.focus-card-selected,
.vehicle-location-clickable:focus-visible,
.vehicle-location-clickable:hover,
.daily-history-row.is-active,
.daily-history-trip.is-active,
.history-day-pill.active,
.date-chip.active,
.day-chip.active,
.print-action-primary{
  border-color:#0056fb !important;
  box-shadow:0 0 0 3px rgba(0,86,251,.10) !important;
}

.fleet-row.selected td:first-child{
  box-shadow:inset 4px 0 0 #0056fb !important;
}

.trip-detector-card:before{
  background:linear-gradient(90deg,#0056fb,#2d73ff,#8cb4ff) !important;
}

.check-setting input{
  accent-color:#0056fb !important;
}

/* Tabulky, štítky, odkazy */
.badge-can,
.code-can{
  background:#eaf1ff !important;
  color:#0056fb !important;
}

.legend-can{background:#dce8ff !important;}
.route-hint,
.trip-link,
.location-link,
.vehicle-location-open{
  font-weight:700 !important;
}

/* Tlačítka dne / historie */
.history-day-pill.active,
.date-chip.active,
.day-chip.active,
.daily-history-day.active,
.daily-history-date.active,
.daily-history-actions .btn-primary,
.daily-history-actions .btn-outline-primary,
.daily-history-actions .btn-outline{
  background:#0056fb !important;
  color:#fff !important;
  border-color:#0056fb !important;
}

.daily-history-actions .btn-outline-primary:hover,
.daily-history-actions .btn-outline:hover{
  background:#0047d4 !important;
}

/* Print / PDF – stejné modré akcenty jako logo */
@media print{
  :root{
    --primary:#0056fb !important;
    --primary2:#0047d4 !important;
    --brand:#0056fb !important;
    --brand-deep:#0047d4 !important;
    --brand-soft:#eef4ff !important;
  }

  .history-print-header,
  .print-header,
  .pdf-header,
  .document-header{
    border-color:#dbe7ff !important;
  }

  .history-print-header .cm-doc-brand-copy strong,
  .print-header .cm-doc-brand-copy strong,
  .pdf-header .cm-doc-brand-copy strong,
  .document-header .cm-doc-brand-copy strong,
  .history-print-title,
  .daily-history-title,
  .page-kicker,
  .section-kicker,
  .eyebrow,
  .trip-km,
  .route-hint{
    color:#0056fb !important;
  }

  .daily-history-summary > div,
  .history-summary > div,
  .print-summary > div,
  .trip-summary > div{
    border-top:2px solid #0056fb !important;
  }

  .daily-history-row-trip,
  .trip-row,
  .history-trip-row{
    background:#f6f9ff !important;
  }
}
/* CM-FIX-3.12.25-BRAND-BLUE END */



/* CM_AUTH_CSS_V3_13_0 */
.cm-user-menu{display:flex;align-items:center;gap:9px;margin-left:4px;padding-left:10px;border-left:1px solid #e1eaf1}
.cm-user-chip{display:flex;align-items:center;gap:8px;min-width:0}
.cm-user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:#0056fb;font-size:13px;font-weight:950;border:1px solid #dce8ff;flex:0 0 auto}
.cm-user-copy{display:flex;flex-direction:column;line-height:1.15;min-width:0;max-width:150px}
.cm-user-copy strong{font-size:12px;color:#173b56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-user-copy small{font-size:9px;color:#718493;font-weight:800;margin-top:2px}
.cm-logout-btn{padding:8px 10px!important;font-size:11px!important;white-space:nowrap}
@media(max-width:900px){.cm-user-copy{display:none}.cm-user-menu{padding-left:6px;gap:5px}.cm-logout-btn{padding:7px 8px!important}.cm-user-avatar{width:31px;height:31px}}

/* CM_ADMIN_CSS_V3_13_1 */
.cm-admin-page{max-width:1760px}.cm-admin-titlebar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.cm-admin-titlebar h1{margin:3px 0 6px;font-size:34px;color:#102d48}.cm-admin-titlebar p{margin:0;color:var(--muted);font-size:14px}.cm-admin-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.cm-admin-sidebar{padding:11px;position:sticky;top:90px}.cm-admin-nav-title{padding:10px 11px 8px;color:#81909c;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.cm-admin-sidebar>a,.cm-admin-sidebar>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:transparent;text-decoration:none;color:#365068;padding:11px 12px;border-radius:10px;font:inherit;font-weight:800;font-size:13px;cursor:pointer}.cm-admin-sidebar>a:hover{background:#f4f7fb}.cm-admin-sidebar>a.active{background:#eef4ff;color:#0056fb}.cm-admin-sidebar small{font-size:9px;font-weight:800;color:#91a0ad}.cm-admin-sidebar>a.active small{color:#0056fb}.cm-admin-sidebar>button:disabled{opacity:.55;cursor:not-allowed}.cm-admin-sidebar-note{margin:13px 7px 5px;padding-top:12px;border-top:1px solid #edf1f4;color:#8a99a5;font-size:10px;line-height:1.45}.cm-admin-content{min-width:0}.cm-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.cm-admin-stats>.card{padding:15px 17px}.cm-admin-stats span{display:block;color:#71808d;font-size:11px;font-weight:800}.cm-admin-stats strong{display:block;font-size:27px;color:#173b56;margin-top:3px}.cm-admin-users-card{padding:0;overflow:hidden}.cm-admin-card-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 20px;border-bottom:1px solid #e9eef3}.cm-admin-card-head h2{margin:0 0 3px;font-size:20px}.cm-admin-card-head p{margin:0;color:var(--muted);font-size:12px}.cm-admin-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.cm-admin-filters .search{min-width:250px}.cm-admin-filters .compact-select{min-width:135px}.cm-admin-users-table-wrap{border:0;border-radius:0;max-height:calc(100vh - 300px);min-height:390px}.cm-admin-users-table th{top:0}.cm-admin-users-table td{vertical-align:middle}.cm-admin-user-name{display:block;font-size:14px;color:#173b56}.cm-role-badge,.cm-status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900;white-space:nowrap}.cm-role-admin{background:#eaf1ff;color:#0056fb}.cm-role-employee{background:#edf6fc;color:#1769aa}.cm-role-technician{background:#f1edff;color:#6841c6}.cm-role-demo{background:#fff4dc;color:#93620c}.cm-role-user{background:#edf1f4;color:#50606d}.cm-status-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.cm-status-active{background:#e7f7ef;color:#137347}.cm-status-disabled{background:#edf1f4;color:#65737e}.cm-status-locked{background:#fdecec;color:#a52f2f}.cm-admin-row-action{text-align:right;width:1%;white-space:nowrap}.cm-admin-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none}.cm-admin-dialog::backdrop{background:rgba(13,31,48,.46);backdrop-filter:blur(2px)}.cm-admin-dialog-card{width:min(760px,calc(100vw - 30px));background:#fff;border:1px solid #e0e8ef;border-radius:20px;box-shadow:0 28px 80px rgba(15,39,60,.22);padding:22px}.cm-admin-password-dialog .cm-admin-dialog-card{width:min(500px,calc(100vw - 30px))}.cm-admin-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.cm-admin-dialog-head h2{margin:3px 0 0;font-size:24px;color:#102d48}.cm-dialog-close{width:34px;height:34px;border:0;border-radius:10px;background:#f0f4f7;color:#52606c;font-size:23px;line-height:1;cursor:pointer}.cm-dialog-close:hover{background:#e7edf2}.cm-admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.cm-admin-form-grid label,.cm-admin-dialog-card>label{font-size:11px;color:#53697b;font-weight:850}.cm-admin-form-grid input,.cm-admin-form-grid select,.cm-admin-dialog-card>label input{display:block;width:100%;margin-top:6px;border:1px solid #d8e3eb;border-radius:11px;padding:11px 12px;font:inherit;color:#173247;background:#fff;outline:none}.cm-admin-form-grid input:focus,.cm-admin-form-grid select:focus,.cm-admin-dialog-card>label input:focus{border-color:#0056fb;box-shadow:0 0 0 3px rgba(0,86,251,.10)}.cm-admin-form-grid input:disabled{background:#f3f6f8;color:#748491}.cm-admin-account-info{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding:11px 12px;background:#f7fafc;border:1px solid #e6edf2;border-radius:11px}.cm-admin-account-info span{font-size:10px;color:#657784;font-weight:750}.cm-admin-form-error{margin-top:13px;border:1px solid #f2c6c6;background:#fff0f0;color:#a63737;padding:10px 12px;border-radius:10px;font-size:11px;font-weight:750}.cm-admin-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid #edf1f4}.cm-admin-extra-actions,.cm-admin-save-actions{display:flex;gap:8px;align-items:center}.cm-admin-dialog-copy{margin:-5px 0 15px;color:#6e8191;font-size:12px;line-height:1.45}@media(max-width:1050px){.cm-admin-layout{grid-template-columns:1fr}.cm-admin-sidebar{position:static;display:flex;gap:4px;overflow:auto}.cm-admin-nav-title,.cm-admin-sidebar-note{display:none}.cm-admin-sidebar>a,.cm-admin-sidebar>button{width:auto;min-width:max-content}.cm-admin-stats{grid-template-columns:repeat(2,1fr)}.cm-admin-card-head{align-items:stretch;flex-direction:column}.cm-admin-filters{justify-content:flex-start}.cm-admin-users-table-wrap{max-height:none}}@media(max-width:700px){.cm-admin-titlebar{align-items:stretch;flex-direction:column}.cm-admin-titlebar .btn{align-self:flex-start}.cm-admin-stats{grid-template-columns:1fr 1fr}.cm-admin-form-grid{grid-template-columns:1fr}.cm-admin-dialog-actions{align-items:stretch;flex-direction:column}.cm-admin-extra-actions,.cm-admin-save-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.cm-admin-filters .search,.cm-admin-filters .compact-select{width:100%;min-width:0}.cm-admin-users-table{min-width:940px}}


/* CM_DEMO_CSS_V3_13_2 */
.cm-demo-badge{display:inline-flex;align-items:center;border:1px solid #dce8ff;background:#eef4ff;color:#0056fb;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:950;letter-spacing:.06em;white-space:nowrap}
@media(max-width:1050px){.cm-demo-badge{display:none}}

/* CM_ADMIN_INVITE_UI_CSS_V3_13_9 */
.cm-admin-dialog [hidden],
.cm-admin-extra-actions[hidden],
.cm-admin-extra-actions button[hidden],
.cm-admin-account-info[hidden],
.cm-admin-form-grid > [hidden]{display:none!important}
.cm-admin-form-full{grid-column:1/-1}
.cm-invite-note{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid #dce7f2;border-radius:12px;background:#f8fbff;color:#173247;min-width:0}
.cm-invite-note .cm-invite-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eef4ff;color:#0056fb;display:grid;place-items:center;font-size:17px;font-weight:900}
.cm-invite-note>div:last-child{min-width:0}
.cm-invite-note strong{display:block;font-size:12px;line-height:1.35;color:#173247;margin:0 0 3px}
.cm-invite-note span{display:block;font-size:11px;line-height:1.45;color:#65798a}
.cm-status-pending{background:#eef4ff;color:#0056fb}
@media(max-width:700px){.cm-admin-form-full{grid-column:1}}


/* CM_COMPANIES_V3_13_12 */
.cm-companies-table td{vertical-align:middle}.cm-company-dialog{width:min(1120px,96vw)}.cm-company-dialog-card{width:min(1080px,100%);max-height:92vh}.cm-company-dialog-scroll{overflow:auto;padding-right:4px;display:grid;gap:18px}.cm-company-form-section{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fbfdff}.cm-company-form-section h3{margin:0 0 12px;font-size:15px;color:#173b56}.cm-company-form-section p{margin:3px 0 0;color:var(--muted);font-size:11px}.cm-company-form-grid textarea{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fff;font:inherit;resize:vertical}.cm-company-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px}.cm-company-section-head .search{min-width:250px}.cm-assignment-list{border:1px solid #e1eaf1;border-radius:12px;background:#fff;max-height:270px;overflow:auto}.cm-assignment-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 12px;border-bottom:1px solid #edf1f4;cursor:pointer}.cm-assignment-item:last-child{border-bottom:0}.cm-assignment-item:hover{background:#f7faff}.cm-assignment-item input{width:18px;height:18px;accent-color:#0056fb}.cm-assignment-item span{min-width:0}.cm-assignment-item strong{display:block;color:#173b56;font-size:13px}.cm-assignment-item small{display:block;color:#71808d;font-size:10px;margin-top:2px;white-space:normal}.cm-assignment-item em{font-style:normal;font-size:9px;font-weight:800;color:#9a6411;background:#fff3d9;border-radius:999px;padding:5px 8px}.cm-assignment-conflict{background:#fffdf8}.cm-status-mini{font-style:normal!important;background:#f0f3f6!important;color:#65727e!important}.cm-status-mini.ok{background:#e6f7ef!important;color:#137648!important}.cm-admin-sidebar a{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none}.cm-admin-sidebar a small{font-size:9px;color:#8595a3;font-weight:800}.cm-admin-sidebar a.active small{color:#0056fb}.cm-company-dialog .cm-admin-dialog-actions{margin-top:0}@media(max-width:900px){.cm-company-section-head{align-items:stretch;flex-direction:column}.cm-company-section-head .search{min-width:0;width:100%}.cm-company-dialog-card{max-height:none}.cm-company-dialog-scroll{overflow:visible}.cm-assignment-list{max-height:340px}.cm-company-form-grid{grid-template-columns:1fr}}
/* CM_COMPANIES_V3_13_12_END */


/* CM-CURRENT-PARKING-V3.13.30 START */
.daily-history-summary.has-current-parking{grid-template-columns:repeat(5,minmax(0,1fr))}
.history-summary-item.current-parking:before{background:#0056fb}
.history-summary-item.current-parking strong{color:#0056fb}
.history-summary-item.current-parking small{display:block;margin-top:2px;color:#728593;font-size:9px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-summary-item.current-parking.is-moving:before{background:#39a96b}
.history-summary-item.current-parking.is-moving strong{color:#18804b}
@media(max-width:900px){
  .daily-history-summary.has-current-parking{grid-template-columns:1fr 1fr}
  .daily-history-summary.has-current-parking .history-summary-item.current-parking{grid-column:1/-1;border-right:0;border-top:1px solid #e8eef3}
}
@media print{
  .daily-history-summary.has-current-parking{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .history-summary-item.current-parking{display:none!important}
}
/* CM-CURRENT-PARKING-V3.13.30 END */


/* CM_CUSTOMER_UI_REPAIR_V3_13_41 */
.cm-customer-hidden{display:none!important}
.cm-customer-page{max-width:1500px}
.cm-customer-titlebar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.cm-customer-titlebar h1{margin:3px 0 4px;font-size:34px;color:#102d48}.cm-customer-titlebar p{margin:0;color:var(--muted)}
.cm-customer-company{display:flex;align-items:center;gap:9px}.cm-customer-company label{font-size:11px;font-weight:850;color:#607486}.cm-customer-company select{min-width:220px}
.cm-customer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.cm-customer-stat{padding:15px 17px}.cm-customer-stat span{display:block;font-size:11px;font-weight:800;color:#71808d}.cm-customer-stat strong{display:block;margin-top:3px;font-size:28px;color:#173b56}
.cm-customer-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);gap:14px;align-items:start}.cm-customer-card{padding:0;overflow:hidden}.cm-customer-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;border-bottom:1px solid #e8eef3}.cm-customer-card-head h2{margin:0 0 3px;font-size:20px}.cm-customer-card-head p{margin:0;color:var(--muted);font-size:12px}.cm-customer-search{min-width:240px}
.cm-customer-vehicles{display:grid;gap:0}.cm-customer-vehicle{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(120px,.8fr) minmax(110px,.7fr) auto;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #edf1f4}.cm-customer-vehicle:last-child{border-bottom:0}.cm-customer-vehicle:hover{background:#fbfdff}.cm-customer-vehicle-main strong{display:block;color:#173b56;font-size:14px}.cm-customer-vehicle-main span,.cm-customer-vehicle-meta span{display:block;color:#7a8b98;font-size:11px;margin-top:3px}.cm-customer-speed{font-size:22px;font-weight:950;color:#173b56}.cm-customer-speed small{font-size:10px;color:#7a8b98}.cm-customer-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
.cm-customer-state{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:900}.cm-customer-state i{width:7px;height:7px;border-radius:50%;background:currentColor}.cm-customer-state.online{color:#137347}.cm-customer-state.stale{color:#a36a00}.cm-customer-state.offline{color:#8a98a4}
.cm-customer-map{height:520px;border-radius:0}.cm-customer-side{display:grid;gap:14px}.cm-customer-profile{padding:18px}.cm-customer-profile h3{margin:0 0 12px;color:#173b56}.cm-customer-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cm-customer-profile-grid div{padding:10px 11px;border:1px solid #e8eef3;border-radius:10px;background:#fafcfd}.cm-customer-profile-grid small{display:block;color:#81919e;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.cm-customer-profile-grid strong{display:block;color:#173b56;font-size:12px;margin-top:3px;word-break:break-word}.cm-customer-password{margin-top:14px;border-top:1px solid #edf1f4;padding-top:13px}.cm-customer-password summary{cursor:pointer;font-weight:850;color:#31546f}.cm-customer-password-form{display:grid;gap:9px;margin-top:12px}.cm-customer-password-form label{font-size:10px;font-weight:850;color:#607486}.cm-customer-password-form input{display:block;width:100%;margin-top:5px;border:1px solid #d8e3eb;border-radius:10px;padding:10px 11px;font:inherit}.cm-customer-password-message{font-size:11px;font-weight:800}.cm-customer-empty{padding:32px 18px;text-align:center;color:#728493}
.cm-role-company_admin{--cm-company-admin:1}
@media(max-width:1000px){.cm-customer-grid{grid-template-columns:1fr}.cm-customer-map{height:380px}.cm-customer-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.cm-customer-titlebar{align-items:stretch;flex-direction:column}.cm-customer-company{display:block}.cm-customer-company select{width:100%;min-width:0;margin-top:5px}.cm-customer-stats{grid-template-columns:1fr 1fr}.cm-customer-vehicle{grid-template-columns:1fr auto;gap:8px 10px}.cm-customer-vehicle-meta{grid-column:1}.cm-customer-speed{grid-column:2;grid-row:1}.cm-customer-actions{grid-column:1/-1;justify-content:stretch}.cm-customer-actions .btn{flex:1}.cm-customer-search{min-width:0;width:100%}.cm-customer-card-head{align-items:stretch;flex-direction:column}.cm-customer-profile-grid{grid-template-columns:1fr}.cm-customer-map{height:330px}}
