
:root {
  --paper: #f6f7f8;
  --paper-2: #f1f2f4;
  --surface: #ffffff;
  --surface-2: #f4f5f6;
  --surface-3: #ecedef;
  --ink: #14171a;
  --ink-2: #525a61;
  --muted: #6b737b;
  --faint: #98a2b3;
  --line: #e7e9eb;
  --line-2: #d9dcdf;
  --line-3: #c7cbcf;
  --accent: #2f68e8;
  --accent-2: #2455bd;
  --accent-soft: #e9effd;
  --accent-ink: #ffffff;
  --brand: #2f68e8;
  --brand-soft: #e9effd;
  --ok: #0f7a4b;
  --ok-soft: #e4f4eb;
  --warn: #96601a;
  --warn-soft: #fbf0dd;
  --bad: #bb2b3d;
  --bad-soft: #fdecef;
  --info: #175fd0;
  --info-soft: #e9f0fd;
  --neutral-soft: #f4f5f6;
  --grid: rgba(20, 23, 26, 0.045);
  --scrim: rgba(16, 20, 24, 0.42);
  --focus: #2f68e8;
  --c1: #2f68e8;
  --c2: #2f9e6f;
  --c3: #5b3fd6;
  --c4: #96601a;
  --c5: #175fd0;
  --side-bg: #ffffff;
  --side-bg-2: #fbfcfc;
  --side-ink: #14171a;
  --side-muted: #848d95;
  --side-line: #e7e9eb;
  --side-hover: #f4f5f6;
  --side-active: #ecedef;
  --side-accent: #2f68e8;
  --shadow-1: 0 1px 2px rgba(16, 20, 24, 0.05);
  --shadow-2: 0 2px 6px rgba(16, 20, 24, 0.06), 0 1px 2px rgba(16, 20, 24, 0.04);
  --shadow-3: 0 18px 40px -16px rgba(16, 20, 24, 0.24), 0 4px 12px -4px rgba(16, 20, 24, 0.08);
  --r-1: 8px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 18px;
  --row-h: 52px;
  --rail: 258px;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --paper: #0d0f11;
  --paper-2: #101316;
  --surface: #15181b;
  --surface-2: #1b1f23;
  --surface-3: #23282d;
  --ink: #eef1f3;
  --ink-2: #a6aeb6;
  --muted: #939da5;
  --faint: #7b858e;
  --line: #242a2f;
  --line-2: #30373d;
  --line-3: #3b434a;
  --accent: #2f68e8;
  --accent-2: #2455bd;
  --accent-soft: #15213a;
  --accent-ink: #ffffff;
  --brand: #2f68e8;
  --brand-soft: #15213a;
  --ok: #3ecf8e;
  --ok-soft: #10241a;
  --warn: #e2a756;
  --warn-soft: #2a1f0d;
  --bad: #f2778a;
  --bad-soft: #2c1418;
  --info: #7ab0ff;
  --info-soft: #111f33;
  --neutral-soft: #1b1f23;
  --grid: rgba(238, 241, 243, 0.045);
  --scrim: rgba(3, 7, 10, 0.64);
  --focus: #2f68e8;
  --c1: #2f68e8;
  --c2: #6ce9b3;
  --c3: #a48dff;
  --c4: #e2a756;
  --c5: #7ab0ff;
  --side-bg: #15181b;
  --side-bg-2: #1b1f23;
  --side-ink: #eef1f3;
  --side-muted: #7b858e;
  --side-line: #242a2f;
  --side-hover: #1b1f23;
  --side-active: #23282d;
  --side-accent: #2f68e8;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 20px 44px -16px rgba(0, 0, 0, 0.72), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}

html, body { background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.side { background: var(--side-bg); border-right-color: var(--side-line); overflow: hidden; }
.nav { min-height: 0; }
.side-brand { height: 62px; padding: 0 12px 0 16px; border-bottom-color: var(--side-line); }
.logo {
  width: 32px; height: 32px; flex-basis: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  box-shadow: none;
}
.brand-txt b { font-size: 14px; font-weight: 650; letter-spacing: -.02em; color: var(--side-ink); }
.brand-txt small { margin-top: 1px; font-size: 11px; color: var(--side-muted); }
.side-collapse { color: var(--side-muted); }
.side-collapse:hover { color: var(--side-ink); background: var(--side-hover); }
.nav { padding: 10px 12px 14px; gap: 0; }
.nav-grp { margin: 0; }
.nav-grp-h {
  display: block;
  margin: 13px 0 4px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--side-muted);
}
.nav-grp:first-child .nav-grp-h { margin-top: 2px; }
.nav-item { margin: 1px 0; }
.nav-link {
  min-height: 34px;
  padding: 0 9px;
  gap: 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.nav-link svg { width: 17px; height: 17px; color: var(--side-muted); stroke-width: 1.7; }
.nav-link:hover { background: var(--side-hover); color: var(--ink); }
.nav-link:hover svg { color: var(--ink-2); }
.nav-item.is-active > .nav-link {
  background: var(--side-active);
  color: var(--ink);
  font-weight: 600;
}
.nav-item.is-active > .nav-link::before { display: none; }
.nav-item.is-active > .nav-link svg { color: var(--accent); }
.nav-badge {
  min-width: 19px; height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 10.5px; font-weight: 650;
}
.nav-item.is-active .nav-badge { background: var(--surface); color: var(--ink); }
.side-foot { padding: 10px 12px 12px; border-top: 1px solid var(--side-line); gap: 8px; }
.user-mini {
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
}
button.user-mini { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.user-mini:hover { background: var(--side-hover); }
.user-mini-txt { display: flex; flex-direction: column; min-width: 0; }
.user-mini-txt b { font-size: 12px; font-weight: 600; color: var(--side-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini-txt small { font-size: 10.5px; color: var(--side-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tools { display: flex; align-items: center; gap: 2px; }
.side-tools .btn { color: var(--side-muted); }
.side-tools .btn:hover { color: var(--side-ink); background: var(--side-hover); }

.topbar {
  height: 62px;
  padding: 0 24px;
  gap: 14px;
  background: var(--surface);
  border-bottom-color: var(--line);
}
.topbar-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.topbar-crumbs .ic { width: 13px; height: 13px; color: var(--line-3); }
.topbar-crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.topbar-crumbs > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.topbar-scope { gap: 9px; }
.scope {
  height: 30px;
  padding: 0 9px;
  border-color: var(--line);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.scope:hover { background: var(--surface-2); color: var(--ink); }
.scope-dot { width: 6px; height: 6px; background: var(--accent); }
.topbar-mode {
  font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
}
.search {
  height: 34px;
  max-width: 360px;
  flex: 1 1 280px;
  padding: 0 10px;
  gap: 8px;
  background: var(--surface-2);
  border-color: transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.search:hover { background: var(--surface-3); color: var(--ink-2); }
.search-txt { flex: 1; text-align: left; }
.kbd { height: 19px; min-width: 19px; border-radius: 5px; background: var(--surface); border-color: var(--line); color: var(--muted); font-size: 10px; }
.topbar-actions { gap: 2px; }
.topbar-actions .btn { color: var(--ink-2); }
.topbar-actions .btn:hover { color: var(--ink); background: var(--surface-2); }
.userbtn { gap: 8px; padding: 3px 4px 3px 3px; border-radius: 9px; }
.userbtn:hover { background: var(--surface-2); }
.userbtn-txt b { font-size: 11.5px; font-weight: 600; }
.userbtn-txt small { font-size: 10px; color: var(--muted); }
.avatar { background: var(--surface-3); color: var(--ink-2); font-size: 11px; }
.avatar-ink { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-color: transparent; }
html[data-theme="dark"] .avatar-ink { border-color: transparent; box-shadow: none; }

.content { padding: 24px 28px 48px; background: var(--paper); min-height: calc(100vh - 62px); }
#view { max-width: 1500px; }
/* Pun prikaz karte: ista logika kao u tvrtkinoj konzoli (#/karta) — bez
   paddinga i bez ograničenja širine, karta zauzima cijelu stranicu. */
.content--map { padding: 0; background: var(--surface-2); }
.content--map #view { max-width: none; }
.content--map .page { gap: 0; }
.content--map .page-head { padding: 16px 20px 0; }
@media (min-width: 900px) {
  .content--map { height: calc(100dvh - 62px); min-height: 0; overflow: hidden; }
  .content--map #view { display: flex; flex-direction: column; height: 100%; max-width: none; }
  .content--map .page { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .content--map .plat-map { flex: 1; min-height: 0; border: 0; border-radius: 0; }
  .content--map .plat-map__panel { top: 12px; left: 12px; max-height: calc(100% - 120px); }
}
.page { display: flex; flex-direction: column; gap: 16px; }
.page-head { gap: 16px; margin-bottom: 2px; align-items: flex-end; }
.crumbs { display: none; }
.ph-title-row h1,
.page-head h1 { font-size: 23px; line-height: 1.2; font-weight: 660; letter-spacing: -.022em; color: var(--ink); }
.ph-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); max-width: 92ch; }
.ph-sub .sep { display: inline-block; }
.ph-actions { gap: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.card-h,
.card-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.card-t,
.card-title { font-size: 14.5px; font-weight: 640; letter-spacing: -.012em; color: var(--ink); }
.card-sub { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.card-b,
.card-body { padding: 14px 16px 16px; }
.card-f,
.card-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.cards { gap: 12px; }
.cards .card { border-radius: var(--r-3); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.plan-card { display: flex; flex-direction: column; }
.plan-card .card-b { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.plan-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.plan-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan-price b { font-size: 25px; font-weight: 650; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-setup { color: var(--ink-2); font-size: 11.5px; margin-top: -7px; }
.plan-card .dl { border-top: 1px solid var(--line); padding-top: 10px; }
.plan-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px;
}
.plan-foot b { color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.plan-card .card-f { padding: 10px 18px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.module-card .card-b { display: flex; flex-direction: column; gap: 14px; }
.module-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.module-head > .chip { margin-left: auto; flex: 0 0 auto; }
.module-ic {
  display: grid; place-items: center; flex: 0 0 34px;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
}
.module-ic svg { width: 17px; height: 17px; }
.module-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.module-title b { font-size: 13px; font-weight: 600; color: var(--ink); }
.module-title small { font-size: 10.5px; color: var(--muted); }
.module-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 11px; border-top: 1px solid var(--line);
}
.module-price b { color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.module-desc { margin: 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; flex: 1; }
.module-features { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.module-features li::marker { color: var(--accent); }
.module-setup { margin-top: -8px; color: var(--muted); font-size: 10.5px; }
.module-setup b { color: var(--ink-2); font-weight: 600; }
.module-sections { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; }
.module-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.module-section-head .card-t { margin: 0; }
.module-grid { margin-bottom: 0; }
.module-card { display: flex; flex-direction: column; }
.module-card > .card-b { flex: 1; }
.module-card .card-f { padding: 10px 18px; }
.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; padding-bottom: 0; }
.check-row:first-child { padding-top: 0; }
.check-ic {
  display: grid; place-items: center; flex: 0 0 32px;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-2); color: var(--ink-2);
}
.check-ic svg { width: 16px; height: 16px; }
.check-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.check-main b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.check-main small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.check-row > .chip { flex: 0 0 auto; }
.bar-track { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-seg { display: block; height: 100%; border-radius: inherit; }
[id^="set-"] { scroll-margin-top: 78px; }

.login__main { width: min(410px, 100%); }
.login__box { border-radius: 16px; box-shadow: var(--shadow-2); }
.login__box .field > span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
html body .login__box input {
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
html body .login__box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login__box .btn { height: 40px; width: 100%; }
.login__message h1 { font-size: 32px; }

/* Prijava — čvrst plavi panel i mirna kartica, isti ritam kao konzola tvrtke. */
.login {
  --login-panel-deep: #0a2b66;
  grid-template-columns: minmax(400px, .92fr) minmax(0, 1fr);
  background: var(--paper);
}
.login__aside {
  position: relative;
  justify-content: flex-start;
  gap: 36px;
  padding: 34px 38px;
  overflow: hidden;
  border-right: 0;
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #3f7bf6 0%, #2559cf 46%, var(--login-panel-deep) 100%);
}
.login__aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .07);
}
.login__aside > * { position: relative; z-index: 1; }
.login .brand { align-self: flex-start; flex: 0 0 auto; color: #fff; }
.login .logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 15px;
  box-shadow: none;
}
.login__aside .brand-txt b { color: #fff; font-size: 14.5px; }
.login__aside .brand-txt small { color: rgba(255, 255, 255, .72); font-size: 11.5px; }
.login__message { max-width: 420px; margin-top: auto; }
.login__message h1 {
  max-width: 24ch;
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -.028em;
}
.login__message p {
  max-width: 36ch;
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  line-height: 1.65;
}
.login__main {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 24px;
  align-items: center;
  justify-content: center;
}
.login__top { position: absolute; top: 22px; right: 26px; }
.login__top .btn { border-color: transparent; background: transparent; color: var(--muted); }
.login__top .btn:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.login__box {
  width: min(420px, 100%);
  gap: 14px;
  padding: 26px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.login__box::before { content: none; }
.login__title .eyebrow { color: var(--ink-3); font-size: 10.5px; letter-spacing: .1em; }
.login__title h2 { margin: 4px 0; font-size: 22px; font-weight: 660; letter-spacing: -.02em; }
.login__title p { color: var(--ink-2); font-size: 13px; }
.login__box .field { gap: 6px; }
.login__box .field > span { color: var(--ink-2); font-size: 12px; }
html body .login .login__box input {
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
html body .login .login__box input:hover { border-color: var(--line-3); background: var(--surface); }
html body .login .login__box input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login__box .btn { height: 44px; width: 100%; margin-top: 2px; border-radius: 999px; font-size: 13px; }
.login__box .btn-primary {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(16, 20, 24, .16);
}
.login__box .btn-primary:hover {
  border-color: transparent;
  background: var(--accent-2);
  box-shadow: 0 2px 6px rgba(16, 20, 24, .18);
}
.login__box .btn-primary:focus-visible { outline-color: rgba(47, 104, 232, .55); outline-offset: 3px; }
.login__box .btn-ghost { height: 40px; margin-top: -2px; color: var(--ink-2); }
.login__box .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

html[data-theme="dark"] .login { background: var(--paper); }
html[data-theme="dark"] .login__aside {
  background: radial-gradient(120% 120% at 0% 0%, #2f68e8 0%, #173c8f 46%, #061a3d 100%);
}
html[data-theme="dark"] .login__top .btn:hover { background: var(--surface-2); }
html[data-theme="dark"] .login__box { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-2); }

@media (max-width: 1000px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__aside { display: flex; gap: 18px; padding: 22px 22px 20px; }
  .login__message { margin-top: 18px; }
  .login__message h1 { font-size: 23px; }
  .login__message p { max-width: 46ch; }
  .login__main { justify-content: flex-start; padding: 18px 16px 32px; }
  .login__top { display: none; }
}
@media (max-width: 480px) {
  .login__box { padding: 22px 18px; border-radius: 16px; }
  .login__message h1 { font-size: 21px; }
}

.map-controls { margin-bottom: 14px; }
.map-controls .card-b { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
.map-modes { padding-bottom: 2px; }
.map-range { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.map-range .field { min-width: 150px; }
.map-live-note { padding-bottom: 9px; }
.map-controls .map-live-note { margin-left: auto; }
.org-track-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.org-track-controls .map-live-note { padding-bottom: 9px; }

.plat-map {
  position: relative;
  height: var(--plat-map-h, calc(100vh - 188px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.plat-map__canvas { position: absolute; inset: 0; height: 100%; background: var(--surface-2); }
.plat-map__panel {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  width: 320px;
  max-height: calc(100% - 130px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.plat-map__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plat-map__panel-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.plat-map__panel-head b { font-size: 13px; font-weight: 650; color: var(--ink); }
.plat-map__panel .seg { width: 100%; }
.plat-map__panel .seg button { flex: 1; }
.plat-map__tenant { margin-top: 2px; }
.plat-map__driver-select { display: none; }
.plat-map__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.plat-map__filters .chip { cursor: pointer; justify-content: flex-start; }
.plat-map__filters .chip.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.plat-map__filters .chip.is-on .map-dot { box-shadow: 0 0 0 1px var(--surface); }
.plat-map__range { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-items: end; }
.plat-map__range .field:last-of-type { grid-column: 2; }
.plat-map__range .btn { grid-column: 1 / -1; justify-content: center; }
.plat-map__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.plat-map__gaps { margin: 6px 0 0; }
.plat-map__stat { padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.plat-map__stats > .pstat { padding: 7px 8px; border-radius: 9px; }
.plat-map__stats > .pstat span { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat-map__stats > .pstat b { display: block; margin-top: 2px; font-size: 12px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.plat-map__list { display: flex; flex-direction: column; gap: 4px; min-height: 40px; }
.plat-map-driver {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}
.plat-map-driver:hover { background: var(--surface-2); }
.plat-map-driver.is-on { border-color: var(--accent-soft); background: var(--accent-soft); }
.plat-map-driver__main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.plat-map-driver__main b { font-size: 12px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-map-driver__main small { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-map-driver .chip { flex: 0 0 auto; font-size: 10px; }
.plat-map__panel-foot { padding-top: 2px; }
.plat-map__panel-foot .btn { width: 100%; justify-content: center; }
.plat-map__status {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.plat-map__playhead { padding-left: 8px; border-left: 1px solid var(--line); color: var(--ink); }
.plat-map > .map-legend {
  position: absolute;
  left: 16px;
  bottom: 46px;
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.plat-map__empty {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}
.plat-map__empty > * { pointer-events: auto; max-width: 420px; }
.plat-map__player {
  position: absolute;
  left: 360px;
  right: 20px;
  bottom: 46px;
  z-index: 6;
  transform: none;
}
.plat-map__player .player { box-shadow: var(--shadow-3); }
.danger-list { display: flex; flex-direction: column; margin-top: 14px; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.danger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.danger-row:first-child { padding-top: 0; }
.danger-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.danger-main b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.danger-main small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.danger-row > .btn { flex: 0 0 auto; }
.launch-summary {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.launch-summary .bar-track { height: 8px; margin-top: 9px; background: var(--surface-3); }
.launch-summary .bar-seg { display: block; height: 100%; border-radius: inherit; }
.launch-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.launch-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-3);
  border-radius: 11px;
  background: var(--surface);
}
.launch-check.is-ok { border-left-color: var(--ok); }
.launch-check.is-bad { border-left-color: var(--bad); }
.launch-check__ic { display: inline-flex; flex: 0 0 auto; margin-top: 1px; color: var(--muted); }
.launch-check.is-ok .launch-check__ic { color: var(--ok); }
.launch-check.is-bad .launch-check__ic { color: var(--bad); }
.launch-check__ic svg { width: 16px; height: 16px; }
.launch-check__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.launch-check__main b { font-size: 12.5px; font-weight: 620; color: var(--ink); }
.launch-check__main small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.launch-check__date { font-size: 10.5px !important; }
.launch-check > .chip { flex: 0 0 auto; margin-left: auto; }
.chat-item { display: flex; align-items: center; gap: 10px; }
.chat-item .cell-user { flex: 1; min-width: 0; }
.chat-item .row-actions { flex: 0 0 auto; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.kpi-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kpi-ic {
  display: inline-flex;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  background: none;
  color: var(--ink-3);
}
.kpi-ic svg { width: 15px; height: 15px; }
.kpi-label { font-size: 11.5px; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-val {
  margin-top: 0;
  font-size: 21px; line-height: 1.25; font-weight: 660; letter-spacing: -.024em;
  color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kpi-val small { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; color: var(--ink-3); }
.kpi-note { color: var(--ink-3); overflow-wrap: normal; hyphens: none; }
.kpi-spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  top: auto;
  width: 66px;
  opacity: .55;
  pointer-events: none;
}
.kpi-spark .spark { width: 66px; height: 24px; }

.btn {
  height: 34px;
  padding: 0 12px;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger, .btn-danger-soft { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn-sm { height: 28px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn.btn-icon { width: 34px; padding: 0; }
.btn.btn-sm.btn-icon { width: 28px; padding: 0; }
.btn-icon svg { width: 16px; height: 16px; max-width: 16px; flex: 0 0 16px; }
.btn:focus-visible, .tab:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field > span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea,
.input, .select, .textarea {
  min-height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 10px;
}
.field input:focus, .field select:focus, .field textarea:focus,
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-size: 10.5px; color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 24%, transparent); color: var(--ok); }
.chip.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 24%, transparent); color: var(--warn); }
.chip.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 24%, transparent); color: var(--bad); }
.chip.info, .chip.accent { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 24%, transparent); color: var(--info); }
.chip.neutral { background: var(--surface-2); color: var(--ink-2); }
.chip.no-dot::before, .chip:not(:empty)::before { content: none; }
.tabs { gap: 20px; border-bottom-color: var(--line); }
.tab {
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 550;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active { color: var(--ink); font-weight: 650; border-bottom-color: var(--accent); }
.tab-count {
  min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px;
  border-radius: 999px; background: var(--surface-3); color: var(--ink-2);
  font-size: 10px; font-weight: 650; line-height: 18px;
}
.tab[aria-selected="true"] .tab-count, .tab.is-active .tab-count { background: var(--accent-soft); color: var(--accent); }
.seg { padding: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 11.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.tbl-wrap { border-radius: var(--r-3); }
.tbl th {
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.tbl th button { font-size: 10px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; color: var(--muted); }
.tbl th button:hover { color: var(--ink); }
.tbl td {
  height: var(--row-h);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  vertical-align: middle;
}
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr.is-selected td { background: var(--accent-soft); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.td-strong, .tbl strong { color: var(--ink); }
.tbl .cell-user-txt b, .tbl .t-main { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.tbl small, .tbl .t-sub, .tbl .cell-user-txt small { color: var(--muted); font-size: 11px; }
.toolbar { padding: 12px 14px; gap: 8px; border-bottom: 1px solid var(--line); }
.toolbar-search { width: min(320px, 100%); }
.toolbar-search .input { height: 32px; background: var(--surface-2); border-color: transparent; }
.filterbar { padding: 12px 14px 0; gap: 8px; }
.pager button { height: 28px; min-width: 28px; border-radius: 7px; }
.pager button[aria-current="true"] { background: var(--surface-3); }

.drawer {
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.drawer-h { padding: 17px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.drawer-h p { color: var(--ink-2); font-size: 12px; }
.drawer-b { padding: 18px 20px; }
.drawer-f { padding: 12px 20px; border-top: 1px solid var(--line); gap: 8px; }
.drawer-name { font-size: 15px; font-weight: 650; }
.drawer-tabs { padding: 0 20px; border-bottom-color: var(--line); }
.modal {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  background: var(--surface);
}
.modal-h { padding: 17px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 16px; font-weight: 650; }
.modal-h p { color: var(--ink-2); font-size: 12px; }
.modal-b { padding: 16px 20px; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--line); }
.toast {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  color: var(--ink);
}
.toasts {
  left: 50%;
  right: auto;
  bottom: 22px;
  width: auto;
  max-width: min(620px, calc(100vw - 24px));
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: inline-flex;
  max-width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #191b1e;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
  font-size: 12.5px;
}
.toast-m { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12.5px; line-height: 1.3; opacity: 1; }
.toast-t { color: inherit; font-size: 12.5px; font-weight: 550; line-height: 1.3; white-space: nowrap; }
.toast-body { margin: 0; color: inherit; font-size: 12px; line-height: 1.3; opacity: .72; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-ic { color: #4ade9b; margin: 0; }
.toast.ok .toast-ic { color: #4ade9b; }
.toast.warn .toast-ic { color: #f0b35b; }
.toast.bad .toast-ic { color: #ff8b9a; }
.toast-ic svg { width: 15px; height: 15px; }
.toast-action {
  align-self: center;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: auto;
}
html[data-theme="dark"] .toast { background: #f2f4f6; color: #14171a; }
html[data-theme="dark"] .toast-ic,
html[data-theme="dark"] .toast.ok .toast-ic { color: #0f7a4b; }
html[data-theme="dark"] .toast-action { background: rgba(20, 23, 26, .08); color: #14171a; }
.scrim { background: var(--scrim); }

.banner { border-radius: 10px; font-size: 12px; }
.callout, .notice { border-radius: 10px; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.badge, .status-dot { color: var(--ink-2); }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-head .btn, .ph-actions .btn { white-space: nowrap; }
.split { gap: 16px; }
.stack { gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart__bar { transition: opacity .14s ease; }
.chart__bar:hover { opacity: .82; }
.chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.chart-legend .legend-item { color: var(--ink-2); font-size: 11px; }
.chart-legend .legend-item i { width: 8px; height: 8px; border-radius: 2px; }

html body .field input,
html body .field select,
html body .field textarea,
html body .input,
html body .select,
html body .textarea {
  height: 38px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
html body .field select,
html body .select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23848d95' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}
html body .toolbar .select { height: 38px; min-width: 0; border-radius: 10px; padding-left: 11px; background-color: var(--surface); }
html body .field input:focus,
html body .field select:focus,
html body .field textarea:focus,
html body .input:focus,
html body .select:focus,
html body .textarea:focus {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 1100px) {
  .content { padding: 20px 20px 40px; }
  .topbar { padding: 0 16px; }
  .topbar-crumbs { display: none; }
  .search { max-width: 260px; }
}

@media (max-width: 900px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .chat-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-main { min-height: 380px; }
  .chat-side { display: none; }
  .plat-map { display: flex; flex-direction: column; gap: 10px; height: auto; min-height: 0; overflow: visible; border: 0; background: transparent; }
  .plat-map__panel { position: static; order: 0; width: auto; max-height: none; }
  .plat-map__canvas { position: relative; inset: auto; order: 1; height: 56vh; min-height: 360px; border: 1px solid var(--line); border-radius: 14px; }
  .plat-map[data-unavailable="true"] .plat-map__canvas { display: none; }
  .plat-map__status { position: static; order: 2; transform: none; align-self: flex-start; white-space: normal; }
  .plat-map > .map-legend { position: static; order: 3; width: 100%; }
  .plat-map__empty { position: relative; inset: auto; order: 2; min-height: 120px; padding: 0; }
  .plat-map__player { position: static; left: auto; right: auto; order: 4; width: auto; transform: none; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .ph-sub .sep { display: none; }
  .content { padding: 16px 14px 40px; }
  .page-head { align-items: flex-start; }
  .ph-title-row h1, .page-head h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 11px 12px; border-radius: 12px; }
  .kpi-label { font-size: 10.5px; }
  .kpi-val { font-size: 20px; }
  .kpi-foot { font-size: 10px; }
  .kpi-spark { display: none; }
  .topbar { padding: 0 10px; gap: 6px; }
  .search { width: 38px; min-width: 38px; flex: 0 0 38px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
  .search-txt, .search .kbd { display: none; }
  .topbar-scope .scope-txt { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-scope .scope { max-width: 150px; }
  .topbar-sep, .topbar-mode { display: none; }
  .topbar-actions [data-act="theme-toggle"], .topbar-actions [data-act="locale-toggle"] { display: none; }
  .topbar-actions { gap: 2px; }
  .set-nav-item { flex: 0 0 auto; white-space: nowrap; }
  .toolbar { padding: 10px 12px; }
  .toolbar-search { flex: 1 1 100%; width: 100%; }
  .toolbar .select { flex: 1 1 calc(50% - 6px); min-width: 0; width: auto; }
  .card-h { flex-wrap: wrap; }
  .card-h .card-actions { flex: 0 0 100%; margin-left: 0; justify-content: flex-end; }
  .chart { overflow: hidden; }
  .chart svg { min-width: 0; }
  .chart__axis { display: none; }
  .chart svg text { display: none; }
}

/* Napomena uz modul: zakazano gašenje ili gašenje koje je napravila sama tvrtka. */
.set-row-main .set-row__note{color:var(--warn);font-weight:600}
