/* ==========================================================================
   Auto servis Tasić – dizajn sistem
   Hladna svetla podloga, kobalt kao glavna boja, signalna žuta (kao lampica
   na instrument tabli) samo za fokus i odometar. Jedna porodica slova
   (Archivo): naslovi u proširenoj širini, tekst u normalnoj.
   ========================================================================== */

:root {
  --bg: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --ink: #13202b;
  --ink-2: #33414e;
  --muted: #5f6c79;
  --line: #d9dfe5;
  --line-2: #c3ccd5;

  --cobalt: #2346d1;
  --cobalt-dark: #1a35a3;
  --cobalt-tint: #e8edfc;
  --amber: #f5b301;
  --amber-tint: #fff4d1;
  --slate: #172633;      /* sidebar, footer, instrument tabla */

  --ok: #1d7a4f;   --ok-tint: #e2f3ea;
  --warn: #8a5a00; --warn-tint: #fdf1d3;
  --bad: #b8332a;  --bad-tint: #fbe8e5;

  --r-s: 6px; --r: 10px; --r-l: 18px;
  --shadow: 0 1px 2px rgba(19, 32, 43, .06), 0 4px 14px rgba(19, 32, 43, .05);
  /* sitne nijanse – da tamna tema može da ih zameni */
  --chip: #e8ecf0; --hover: #f7f9fc; --line-soft: #e7ebef; --line-hover: #a9b5c1;
  --nav-bg: rgba(237, 240, 243, .82); --nav-bg-2: rgba(255, 255, 255, .92); --btn-dark: #13202b;
  --ok-ink: #145a39; --ok-line: #a9d8bf; --bad-ink: #84231c; --bad-line: #efb7af;
  --warn-ink: #5c3f00; --warn-line: #ecd08c;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 256px;
}

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); font-size: 16.5px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; font-stretch: 112%; letter-spacing: -.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
body.site { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.site > main > .err, body.site > main > .auth { flex: 1; }

/* učitavanje stranice */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .35s ease, visibility 0s .35s; animation: loader-sakrij .3s ease 3s forwards; }
.ucitano .loader { opacity: 0; visibility: hidden; }
.loader__in { display: grid; justify-items: center; gap: 16px; }
.loader__mark { width: 58px; height: 58px; font-size: 32px; border-radius: 15px; animation: loader-puls 1.1s ease-in-out infinite; }
.loader__bar { width: 120px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--amber); animation: loader-traka 1s var(--ease) infinite; }
@keyframes loader-puls { 50% { transform: scale(.92); box-shadow: inset 0 -3px 0 var(--amber), 0 0 0 10px rgba(35, 70, 209, .1); } }
@keyframes loader-traka { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes loader-sakrij { to { opacity: 0; visibility: hidden; } }
.topbar-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 210; background: var(--amber); box-shadow: 0 0 8px rgba(245, 179, 1, .6); opacity: 0; }
.odlazak .topbar-progress { opacity: 1; animation: napredak 2.2s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes napredak { from { width: 0; } to { width: 85%; } }
.ucitano body > main, .ucitano .app-content { animation: strana-ulaz .45s var(--ease) backwards; }
@keyframes strana-ulaz { from { opacity: 0; transform: translateY(8px); } }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #13202b; padding: 8px 14px; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cobalt); color: #fff; font-weight: 800; font-size: 21px; font-stretch: 125%; box-shadow: inset 0 -3px 0 var(--amber); }
.logo__text { display: grid; line-height: 1.05; }
.logo__text strong { font-size: 20px; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; }
.logo__text span { font-size: 13px; color: var(--muted); }

/* ---------- dugmad ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 9px; border: 1.5px solid var(--cobalt); background: var(--cobalt); color: #fff; font-weight: 650; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .08s; white-space: nowrap; }
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn--small { padding: 7px 13px; font-size: 14.5px; border-radius: 8px; }
.btn--big { padding: 13px 22px; font-size: 16.5px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--dark { background: var(--btn-dark); border-color: var(--btn-dark); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #13202b; }
.btn--amber:hover { background: #ffc531; border-color: #ffc531; color: #13202b; }
.btn--danger { background: var(--bad); border-color: var(--bad); }
.btn--danger:hover { background: #962820; border-color: #962820; }
.btn--danger-line { color: var(--bad); }
.btn--danger-line:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-tint); }
.icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 9px; border-radius: 6px; }
.icon-btn:hover { background: var(--bad-tint); color: var(--bad); }

/* ==========================================================================
   JAVNI DEO
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: var(--nav-bg-2); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav__menu > a:not(.btn):hover { background: rgba(35, 70, 209, .08); color: var(--cobalt); }
.nav__sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 8px; }
.nav__menu .btn { margin-left: 6px; }
.nav__toggle { display: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 8px; cursor: pointer; }

/* ---------- početna: sekcije preko celog ekrana sa automatskim prebacivanjem ---------- */
/* Strana se ne skroluje, nego okvir .snap (fiksiran preko celog ekrana). Tako pregledač na
   telefonu ne sklanja/vraća traku sa adresom dok se skroluje, i visina sekcija se ne menja. */
html.snap-page, html.snap-page body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.snap-page body.site { min-height: 0; display: block; }
.snap { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; outline: none; }
.home .nav { position: fixed; left: 0; right: 0; }
.full { position: relative; min-height: 100vh; min-height: var(--snap-h, 100svh); scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; padding: 96px 0 56px; }
.full > .wrap { width: 100%; }
.snap .footer { scroll-snap-align: end; }

/* ulazak elemenata kad sekcija dođe na ekran (--k = redosled) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 90ms + 80ms); }
.is-in .rv { opacity: 1; transform: none; }
.tile.rv { transform: translateY(18px) scale(.97); }
.is-in .tile.rv { transform: none; }
.phone.rv { transform: translateX(40px) rotate(4deg); }
.is-in .phone.rv { transform: rotate(2deg); }

/* tačke sa strane */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 25; display: grid; gap: 12px; transition: opacity .25s; }
.dots.is-hidden { opacity: 0; pointer-events: none; }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; background: rgba(19, 32, 43, .22); transition: background .2s, transform .2s; }
.dots a:hover { background: var(--cobalt); }
.dots a.is-active { background: var(--cobalt); transform: scale(1.35); box-shadow: 0 0 0 3px rgba(35, 70, 209, .2); }
.dots a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; background: var(--btn-dark); color: #fff; padding: 3px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
.dots.na-plavom a { background: rgba(255, 255, 255, .35); }
.dots.na-plavom a.is-active, .dots.na-plavom a:hover { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 179, 1, .25); }

.next { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: lebdi 2.4s ease-in-out infinite; }
.next:hover { color: var(--cobalt); }
@keyframes lebdi { 50% { transform: translate(-50%, 6px); } }

/* 1. početak */
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__place { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 550; margin-bottom: 18px; }
.hero__place .ico { width: 18px; height: 18px; color: var(--cobalt); }
.hero__title { font-size: clamp(38px, 5.6vw, 70px); font-weight: 800; font-stretch: 125%; line-height: .98; letter-spacing: -.025em; max-width: 12ch; }
.hero__lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 50ch; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn__two { display: grid; text-align: left; line-height: 1.15; }
.btn__two small { font-size: 12.5px; font-weight: 550; opacity: .8; }

/* prikaz stranice klijenta (isti elementi kao prava stranica) */
.preview { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: 0 30px 70px -30px rgba(19, 32, 43, .45); overflow: hidden; }
.preview__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.preview__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.preview__bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; flex: 1; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__page { padding: 20px 22px 18px; font-size: 15px; }
.preview .panel__title { font-size: 26px; }
.preview .panel__h2 { font-size: 19px; margin: 18px 0 8px; }
.preview .km-now { margin-bottom: 12px; }
.preview .timeline { gap: 9px; }
.preview .timeline__card { padding: 10px 14px; }
.preview .timeline__item { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(.7s + var(--k) * 160ms); }
.is-in .preview .timeline__item { opacity: 1; transform: none; }
.preview figcaption { padding: 10px 22px 14px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

/* sekcije – zajedničko */
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 26px; }
.sec__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; }
.sec__lead { color: var(--muted); font-size: 18px; max-width: 46ch; }

/* 2. šta radimo – pločice sa ikonicama */
.sec-usluge { background: var(--surface); }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 18px 20px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color .2s, box-shadow .2s, background .2s; overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tile:hover { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow); }
.tile:hover::after { transform: scaleX(1); }
.tile__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--cobalt); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); margin-bottom: 12px; transition: transform .3s var(--ease); }
.tile:hover .tile__ico { transform: rotate(-6deg) scale(1.05); }
.tile__ico .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.tile__name { font-size: 22px; font-weight: 750; font-stretch: 115%; }
.tile__short { display: none; color: var(--muted); font-size: 14.5px; margin-top: 4px; line-height: 1.35; }
.tile__text { color: var(--ink-2); margin-top: 6px; font-size: 15px; line-height: 1.5; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tags li { font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }

/* 3. istorija – plava traka sa telefonom */
.sec--band { background: var(--cobalt); color: #fff; overflow: hidden; }
.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.band__text > p { margin: 18px 0 22px; font-size: 18px; color: #dbe3ff; max-width: 48ch; }
.band__text .btn { margin-top: 24px; }
.steps { list-style: none; padding: 0; counter-reset: k; display: grid; gap: 10px; }
.steps li { counter-increment: k; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 12px 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); }
.steps li::before { content: counter(k); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #13202b; font-weight: 800; font-size: 17px; font-stretch: 125%; align-self: center; }
.steps strong { font-size: 16.5px; }
.steps span { color: #c9d4ff; font-size: 15px; }
.phone { justify-self: center; width: min(320px, 100%); padding: 12px; background: #0d1720; border-radius: 42px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px #2b3c4b; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0d1720; border-radius: 99px; z-index: 2; }
.phone img { width: 100%; height: auto; border-radius: 31px; display: block; background: var(--bg); }

/* 4. kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 14px; margin: 24px 0 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico { width: 22px; height: 22px; color: var(--cobalt); margin-top: 3px; }
.contact__list span { display: grid; color: var(--muted); }
.contact__list strong { color: var(--ink); font-size: 18px; }
.contact__list a { text-decoration: none; }
.contact__h { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.contact__h .ico { color: var(--cobalt); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { background: var(--amber-tint); }
.hours tr.is-today td:first-child { border-radius: 8px 0 0 8px; }
.hours tr.is-today td:last-child { border-radius: 0 8px 8px 0; }
.today { font-size: 12.5px; font-weight: 700; background: var(--amber); color: #13202b; padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.map { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--line); min-height: 380px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 460px; border: 0; }
.map__open { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; background: var(--surface); color: var(--ink); border-radius: 9px; font-weight: 650; font-size: 14.5px; text-decoration: none; box-shadow: var(--shadow); }
.map__open:hover { color: var(--cobalt); }
.map__open .ico { width: 18px; height: 18px; color: var(--cobalt); }

/* footer */
.footer { background: var(--slate); color: #b5c3cf; padding-top: 56px; }
.footer a { color: #e6edf3; text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1.15fr 1.3fr .75fr; gap: 36px; padding-bottom: 44px; }
.footer .logo__text strong { color: #fff; }
.footer .logo__text span { color: #8fa1b1; }
.footer__brand p { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer__h { font-size: 15px; color: #fff; font-stretch: 100%; font-weight: 700; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer__list li { display: flex; gap: 8px; align-items: center; }
.footer__list .ico { width: 17px; height: 17px; color: var(--amber); }
.footer__hours li { justify-content: space-between; gap: 16px; }
.footer__hours span { white-space: nowrap; }
.footer__who { color: #8fa1b1; font-size: 13.5px; margin-left: 2px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8fa1b1; }

/* prijava / registracija */
.auth { padding: 40px 20px 72px; display: flex; justify-content: center; align-items: center; }
.auth__card { width: 100%; max-width: 980px; display: grid; grid-template-columns: .9fr 1.1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -36px rgba(19, 32, 43, .45); overflow: hidden; animation: kartica-ulaz .5s var(--ease) .1s both; }
@keyframes kartica-ulaz { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.auth__side { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 34px 32px; background: var(--slate); color: #c9d4de; overflow: hidden; }
.auth__side::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 100% 0%, rgba(35, 70, 209, .55), transparent 65%); pointer-events: none; }
.auth__side > * { position: relative; z-index: 1; }
.auth__side .logo__text strong { color: #fff; }
.auth__side .logo__text span { color: #8fa1b1; }
.auth__pitch h2 { color: #fff; font-size: 27px; font-weight: 800; font-stretch: 118%; line-height: 1.1; }
.auth__list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; }
.auth__list li { display: flex; gap: 10px; align-items: flex-start; }
.auth__list .ico { width: 20px; height: 20px; color: var(--amber); stroke-width: 2.4; flex: none; margin-top: 2px; }
.auth__plate { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; }
.auth__plate .plate--big { margin: 0; font-size: 20px; }
.auth__km { color: #8fa1b1; }
.auth__km strong { color: var(--amber); font-size: 22px; font-variant-numeric: tabular-nums; }
.auth__main { padding: 40px 40px 34px; }
.auth__title { font-size: 34px; font-weight: 800; font-stretch: 122%; }
.auth__sub { color: var(--muted); margin-top: 6px; max-width: 44ch; }
.auth__form { margin-top: 22px; }
.auth__form .btn { margin-top: 6px; }
.auth__alt { margin-top: 22px; color: var(--muted); text-align: center; }
.auth__alt a { font-weight: 650; }
.auth__help { margin-top: 8px; text-align: center; font-size: 14px; color: var(--muted); }
.field__box { position: relative; display: flex; align-items: center; }
.field__ico { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .15s; }
.form .field__box input { padding-left: 40px; }
.field__box:focus-within .field__ico { color: var(--cobalt); }
.field__eye { position: absolute; right: 6px; border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 7px; cursor: pointer; display: inline-flex; }
.field__eye:hover { color: var(--cobalt); background: var(--cobalt-tint); }
.form .field__box input.ima-oko { padding-right: 42px; }

/* stranice za greške */
.err { display: flex; align-items: center; padding: 56px 0 80px; }
.err__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; width: 100%; }
.err__visual { position: relative; justify-self: center; }
.err__odo { display: flex; gap: 8px; padding: 18px 20px; background: var(--slate); border-radius: var(--r-l); box-shadow: 0 30px 60px -28px rgba(19, 32, 43, .55); }
.err__digit { width: .72em; height: 1.2em; display: grid; place-items: center; font-size: clamp(64px, 11vw, 128px); font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; background: linear-gradient(#0d1720, #1b2a36 50%, #0d1720); border-radius: 10px; animation: cifra .7s var(--ease) both; animation-delay: calc(var(--k) * 120ms); }
@keyframes cifra { from { transform: translateY(-30%); opacity: 0; } }
.err__ico { position: absolute; right: -34px; bottom: -34px; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--cobalt); color: #fff; box-shadow: 0 14px 30px -12px rgba(35, 70, 209, .7), inset 0 -4px 0 var(--amber); animation: ikona .6s var(--ease) .45s both; }
.err__ico .ico { width: 36px; height: 36px; }
@keyframes ikona { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.err__code { color: var(--cobalt); font-weight: 650; margin-bottom: 6px; }
.err__title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; }
.err__lead { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.err__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.err__links { list-style: none; padding: 22px 0 0; margin-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.err__links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.err__links a:hover { color: var(--cobalt); }
.err__links .ico { width: 18px; height: 18px; color: var(--cobalt); }

/* ==========================================================================
   APLIKACIJA (admin i klijent) – bočni meni
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--slate) var(--side-w), transparent 0); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--slate); color: #c4d0db; padding: 18px 14px; overflow-y: auto; }
.side .logo__text strong { color: #fff; }
.side .logo__text span { color: #8fa1b1; }
.side__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; }
.side__close { display: none; background: transparent; border: 0; color: #c4d0db; padding: 6px; border-radius: 8px; cursor: pointer; }
.side__search { position: relative; margin: 0 2px 16px; }
.side__search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8fa1b1; pointer-events: none; }
.side__search input { width: 100%; font: inherit; font-size: 14.5px; padding: 9px 12px 9px 36px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: #fff; }
.side__search input::placeholder { color: #8fa1b1; }
.side__search input:focus { outline: none; border-color: var(--amber); background: rgba(255, 255, 255, .1); }
.side__nav { display: grid; gap: 2px; }
.side__label { font-size: 12.5px; color: #7f92a3; padding: 16px 12px 6px; font-weight: 600; }
.side__link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #c4d0db; text-decoration: none; font-weight: 550; transition: background .15s, color .15s; }
.side__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side__link.is-active { background: rgba(35, 70, 209, .38); color: #fff; }
.side__link.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); }
.side__link.is-active .ico { color: var(--amber); }
.side__foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.side__user { display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.side__who { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.side__who strong { color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__who span { font-size: 13px; color: #8fa1b1; }
.side__logout { background: transparent; border: 0; color: #c4d0db; padding: 7px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.side__logout:hover { background: rgba(255, 255, 255, .08); color: var(--amber); }
.side-overlay { display: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: none; }
.app-content { flex: 1; width: 100%; max-width: 1180px; padding: 36px 40px 56px; }
.app-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 40px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); max-width: 1180px; }

/* poruke */
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-radius: var(--r); padding: 12px 14px 12px 16px; margin-bottom: 18px; font-weight: 550; border: 1px solid; animation: flash-in .35s var(--ease); }
.flash--ok { background: var(--ok-tint); border-color: var(--ok-line); color: var(--ok-ink); }
.flash--greska { background: var(--bad-tint); border-color: var(--bad-line); color: var(--bad-ink); }
.flash__x { background: transparent; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.flash__x:hover { opacity: 1; }
.flash__x .ico { width: 18px; height: 18px; }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   ZAJEDNIČKE KOMPONENTE
   ========================================================================== */
.panel { padding: 40px 0 72px; }
.panel__title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; }
.panel__h2 { font-size: 24px; font-weight: 750; margin: 34px 0 14px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.eyebrow--dark { color: var(--cobalt); }
.crumbs { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cobalt); }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.actions--tight { margin: 0; }
.actions form { display: inline; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
.upper { text-transform: uppercase; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.pre { white-space: pre-line; }
.clip { max-width: 360px; }
.strong-link { font-weight: 650; color: var(--ink); text-decoration: none; }
.strong-link:hover { color: var(--cobalt); text-decoration: underline; }
.link-small { font-size: 14px; font-weight: 600; white-space: nowrap; }
.danger-link { color: var(--bad); }
.list { padding-left: 20px; display: grid; gap: 6px; }
.owner { font-size: 20px; margin-bottom: 10px; }
.km-now { margin-bottom: 14px; }

/* kutije */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(19, 32, 43, .04); }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.box__head .box__title { margin-bottom: 0; }
.box__title { font-size: 19px; font-weight: 750; font-stretch: 110%; margin-bottom: 14px; }
.box__sub { font-size: 16px; color: var(--muted); font-weight: 700; margin: 26px 0 10px; }
.box--danger { border-color: var(--bad-line); }
.box--soon { border-style: dashed; background: transparent; box-shadow: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols--wide-left { grid-template-columns: 1.3fr 1fr; align-items: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.facts dt { color: var(--muted); font-size: 14.5px; padding-top: 1px; }
.facts--box { grid-template-columns: 132px 1fr; }
.note { padding: 11px 14px; background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 6px; white-space: pre-line; margin-top: 14px; }
.box .note:first-child, .box__title + .note { margin-top: 0; }
.empty { background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 26px; margin-top: 18px; color: var(--muted); }
.empty p + p { margin-top: 8px; }
.empty strong { color: var(--ink); }

/* statistika */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.stat { display: grid; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--cobalt); box-shadow: var(--shadow); color: var(--ink); }
.stat__num { font-size: 40px; font-weight: 800; font-stretch: 125%; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-weight: 550; }

/* kartice (klijent) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.card h3 { font-size: 22px; font-weight: 750; margin: 12px 0 4px; }
.card p { color: var(--muted); }
.card__num { align-self: flex-start; }
.card__meta { margin-top: 10px; font-size: 15px; }
.card__more { margin-top: auto; padding-top: 14px; font-weight: 650; color: var(--cobalt); }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.card--link:hover { border-color: var(--cobalt); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }

/* registarske tablice (srpski izgled) */
.plate { position: relative; display: inline-flex; align-items: center; font-weight: 700; font-stretch: 112%; font-size: 16px; letter-spacing: .05em; padding: 1px 9px 1px 22px; border: 2px solid #13202b; border-radius: 5px; background: linear-gradient(90deg, #1f4fa8 0 14px, #fff 14px); color: #13202b; text-decoration: none; white-space: nowrap; line-height: 1.5; vertical-align: middle; }
.plate::before { content: attr(data-drz); position: absolute; left: 0; bottom: 2px; width: 14px; font-size: 6px; letter-spacing: 0; color: #fff; text-align: center; font-weight: 700; font-stretch: 100%; }
a.plate:hover { color: var(--cobalt); }
.plate--big { font-size: 24px; padding: 2px 14px 2px 30px; margin-bottom: 10px; background: linear-gradient(90deg, #1f4fa8 0 20px, #fff 20px); }
.plate--big::before { width: 20px; font-size: 8px; bottom: 4px; }
.plate--none { border: 1.5px dashed var(--line-2); background: var(--surface); padding: 1px 9px; color: var(--muted); font-weight: 550; font-size: 14px; letter-spacing: 0; font-stretch: 100%; }
.plate--none::before { content: none; }
.plate--bez { padding-left: 9px; background: #fff; }
.plate--bez::before { content: none; }
.plate-input { display: flex; gap: 6px; }
.plate-input select { flex: 0 0 auto; width: auto !important; max-width: 46%; }
.plate-input input { flex: 1; min-width: 0; }
.plate--old { opacity: .5; text-decoration: line-through; }

/* oznake i statusi */
.badge { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--chip); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
td > .badge:first-child { margin-left: 0; }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--off { background: var(--bad-tint); color: var(--bad); }
.badge--warn { background: var(--warn-tint); color: var(--warn); }
.badge--dark { background: var(--btn-dark); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 10px 3px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle; letter-spacing: 0; font-stretch: 100%; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.panel__title .status { font-size: 14px; vertical-align: 6px; }
.status--otvoren { background: var(--cobalt-tint); color: var(--cobalt); }
.status--u_radu { background: var(--warn-tint); color: var(--warn); }
.status--u_radu::before { animation: puls 1.6s ease-in-out infinite; }
.status--zavrsen { background: var(--ok-tint); color: var(--ok); }
.status--otkazan { background: var(--chip); color: var(--muted); text-decoration: line-through; }
@keyframes puls { 50% { opacity: .3; } }

/* tabele */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th { text-align: left; font-size: 13.5px; font-weight: 650; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--hover); }
.table tr.is-off td { color: var(--muted); }
.table a:not(.plate):not(.btn) { color: var(--ink); }
.table a:not(.plate):not(.btn):hover { color: var(--cobalt); }
.table--compact td, .table--compact th { padding: 9px 12px; }
.table th.right, .table td.right { text-align: right; }
.table tfoot td { background: var(--surface-2); }
.box .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); margin: 0 -22px -22px; }
.box .table-wrap:not(:last-child) { margin-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 0; }

/* pretraga, tabovi, paginacija */
.search { display: flex; gap: 8px; margin: 6px 0 10px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); }
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.search--big { margin-top: 22px; }
.search--big input { font-size: 18px; padding: 14px 16px; }
.result-count { font-size: 14.5px; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 9px 13px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--cobalt); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; color: var(--muted); }
.pager a { font-weight: 650; text-decoration: none; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.pager a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* forme */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; align-content: start; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); width: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-hover); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form--wide { max-width: 900px; margin-top: 10px; }
.form--wide .box { margin-bottom: 0; }
fieldset.box { min-width: 0; display: grid; gap: 16px; border: 1px solid var(--line); }
fieldset.box legend { font-size: 18px; font-weight: 750; font-stretch: 110%; padding: 0 8px; margin-left: -8px; }
.form__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.form__grid > label, .form__grid > label.span-2, .form__grid > label.ruke { grid-column: span 2; }
.form__grid > label.span-full { grid-column: 1 / -1; }
.form__grid[hidden], [data-samo][hidden] { display: none; }
.form label.check, .form label.radio { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.form label.check input, .form label.radio input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.form__grid > label.check { align-self: end; padding-bottom: 10px; }
.tip-lica { display: flex; gap: 24px; flex-wrap: wrap; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form--inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 0; }
.form--inline label { flex: 1 1 200px; }
.hint { color: var(--muted); }
.hint a { font-weight: 600; }
.hint--ok { color: var(--ok); }
.ruke input { font-weight: 650; }
.alert { background: var(--bad-tint); border: 1px solid var(--bad-line); color: var(--bad-ink); border-radius: var(--r); padding: 12px 16px; margin-top: 16px; animation: flash-in .3s var(--ease); }
.alert ul { padding-left: 18px; }
.alert__link { margin-top: 8px; }
.alert__link a { font-weight: 650; color: inherit; }
.alert--warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); margin-top: 0; }
.alert--warn label.check { color: var(--ink); font-weight: 650; }

/* izabrani vlasnik, predlozi, poređenje */
.chosen { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.chosen strong { display: block; font-size: 18px; }
.suggest { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 10px; }
.suggest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); flex-wrap: wrap; }
.suggest li > span { display: grid; }
.compare th[scope="row"] { color: var(--muted); background: transparent; width: 110px; font-size: 14px; }
.compare tr.is-diff td:nth-child(3) { background: var(--warn-tint); font-weight: 650; }
.diff-mark { color: var(--warn); font-weight: 800; margin-left: 4px; }
.compare form { display: inline; }

/* prenos */
.transfer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 18px; }
.transfer .box { margin-bottom: 18px; }
.transfer__arrow { align-self: center; font-size: 34px; color: var(--cobalt); font-weight: 700; padding-bottom: 18px; }
.transfer__to { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }

/* stavke radnog naloga */
.stavke-wrap { margin: 0 !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; }
.stavke { min-width: 860px; }
.stavke td { padding: 6px; }
.stavke input, .stavke select { font: inherit; font-size: 15px; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 6px; width: 100%; background: var(--surface); }
.stavke input.right { text-align: right; }
.stavke input:focus, .stavke select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.stavke tbody tr.stavka { animation: red-in .25s var(--ease); }
.stavke tfoot td { padding: 10px 6px; }
@keyframes red-in { from { opacity: 0; transform: translateY(-4px); } }

/* klijent: vremenska linija servisa */
.timeline { list-style: none; padding: 0 0 0 24px; border-left: 2px solid var(--line-2); display: grid; gap: 12px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -32px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--cobalt); border: 3px solid var(--bg); }
.timeline__item:first-child::before { background: var(--amber); }
.timeline__card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.timeline__card:hover { border-color: var(--cobalt); box-shadow: var(--shadow); color: inherit; }
.timeline__head { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.timeline__head .badge { margin-left: 0; }
.timeline__card p { color: var(--muted); }

/* details (promena tablica) */
.inline-form summary { list-style: none; }
.inline-form summary::-webkit-details-marker { display: none; }
.inline-form[open] summary { margin-bottom: 12px; }
.inline-form[open] { flex-basis: 100%; }
.inline-form[open] form { animation: flash-in .25s var(--ease); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .app-content { padding: 30px 28px 48px; }
  .app-foot { padding: 16px 28px; }
}

@media (max-width: 960px) {
  /* javni navbar -> padajući meni */
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(19, 32, 43, .3);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .2s var(--ease); }
  .nav.is-open { background: var(--surface); }
  .nav__menu > a:not(.btn) { padding: 12px; }
  .nav__sep { width: auto; height: 1px; margin: 8px 0; }
  .nav__menu .btn { margin: 6px 0 0; padding: 12px; }

  .hero__grid, .band, .contact, .sec__head { grid-template-columns: 1fr; gap: 28px; }
  .sec__head { gap: 8px; margin-bottom: 22px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .band { gap: 32px; }
  .phone { width: min(260px, 70vw); }
  .dots { right: 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* aplikacija -> bočni meni se izvlači */
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; height: auto; width: min(var(--side-w), 86vw); transform: translateX(-102%); transition: transform .28s var(--ease), box-shadow .28s; box-shadow: none; visibility: hidden; }
  .side-open .side { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .25); visibility: visible; }
  .side__close { display: inline-flex; }
  .side-overlay { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(13, 23, 32, .45); opacity: 0; pointer-events: none; transition: opacity .28s; }
  .side-open .side-overlay { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .app-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: var(--nav-bg-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .app-top__menu { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 8px; cursor: pointer; display: inline-flex; }
  .app-top .logo__mark { width: 32px; height: 32px; font-size: 18px; }
  .app-top .logo__text strong { font-size: 18px; }
  .app-content { padding: 22px 16px 40px; }
  .app-foot { padding: 14px 16px; }

  .cols, .cols--wide-left, .transfer, .err__grid, .auth__card { grid-template-columns: 1fr; }
  .auth__side { padding: 22px 22px 20px; gap: 14px; }
  .auth__pitch h2 { font-size: 21px; }
  .auth__list { display: none; }
  .auth__plate { display: none; }
  .auth__main { padding: 26px 22px 24px; }
  .err__ico { width: 54px; height: 54px; right: -24px; bottom: -24px; border-radius: 16px; }
  .err__ico .ico { width: 28px; height: 28px; }
  .err__grid { gap: 44px; }
  .err { padding: 36px 0 56px; }
  .transfer { gap: 0; }
  .transfer__arrow { transform: rotate(90deg); justify-self: center; padding: 0 0 12px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__grid > label, .form__grid > label.span-2, .form__grid > label.ruke { grid-column: 1 / -1; }
  .facts--box { grid-template-columns: 112px 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__inner { height: 62px; }
  .nav__menu { top: 62px; }
  .logo__mark { width: 34px; height: 34px; font-size: 19px; }
  .logo__text strong { font-size: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .footer { padding-top: 44px; }
  .footer__bottom { flex-wrap: nowrap; padding-top: 16px; padding-bottom: 22px; font-size: 12.5px; }
  .footer__bottom span { white-space: nowrap; }

  /* početna na telefonu: svaka sekcija u jedan ekran */
  .full { padding: 76px 0 28px; align-items: flex-start; }
  .full > .wrap { margin-top: auto; margin-bottom: auto; }
  .next { display: none; }
  .dots { gap: 10px; right: 6px; }
  .dots a { width: 8px; height: 8px; }
  .dots a span { display: none; }

  .hero__grid { gap: 20px; }
  .hero__place { margin-bottom: 10px; font-size: 14.5px; }
  .hero__title { font-size: clamp(34px, 10vw, 42px); }
  .hero__lead { font-size: 16px; margin-top: 12px; }
  .hero__actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions .btn { padding: 10px 10px; font-size: 14px; justify-content: flex-start; }
  .hero__actions .btn .ico { width: 16px; height: 16px; }
  /* kompaktan prikaz stranice klijenta */
  .preview__bar, .preview .crumbs, .preview .mono, .preview .panel__h2, .preview figcaption, .preview .timeline__item:nth-child(3) { display: none; }
  .preview__page { padding: 14px 14px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .preview .plate--big { font-size: 15px; padding: 1px 8px 1px 22px; margin: 0; background: linear-gradient(90deg, #1f4fa8 0 14px, #fff 14px); }
  .preview .plate--big::before { width: 14px; font-size: 6px; bottom: 2px; }
  .preview .panel__title { font-size: 17px; }
  .preview .km-now, .preview .timeline { grid-column: 1 / -1; }
  .preview .km-now { margin: 10px 0 8px; font-size: 14px; }
  .preview .timeline { padding-left: 18px; gap: 6px; }
  .preview .timeline__item::before { left: -25px; top: 14px; width: 11px; height: 11px; }
  .preview .timeline__card { padding: 8px 11px; font-size: 14px; }
  .preview .timeline__card p { line-height: 1.35; }

  .sec__lead { display: none; }
  .sec__title { font-size: 30px; }
  .tiles { gap: 10px; }
  .tile { padding: 14px 14px 13px; border-radius: var(--r); }
  .tile__ico { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
  .tile__ico .ico { width: 21px; height: 21px; }
  .tile__name { font-size: 16.5px; font-stretch: 105%; }
  .tile__short { display: block; }
  .tile__text, .tile .tags { display: none; }

  .band__text > p { font-size: 16px; margin: 12px 0 0; }
  .steps { display: none; }
  .band__text .btn { margin-top: 18px; width: 100%; }
  .band { gap: 22px; }
  .phone { width: auto; height: min(40svh, 340px); aspect-ratio: 390 / 760; padding: 7px; border-radius: 26px; }
  .phone::before { top: 12px; width: 50px; height: 13px; }
  .phone img { height: 100%; width: auto; border-radius: 20px; }

  .contact { gap: 18px; }
  .contact__list { margin: 14px 0 16px; gap: 10px; }
  .contact__list strong { font-size: 16.5px; }
  .contact__h { font-size: 17px; }
  .hours td { padding: 8px 10px; }
  .map { min-height: 0; }
  .map iframe { height: 190px; }
  .map__open { font-size: 13.5px; padding: 6px 10px; }
  .box { padding: 18px 16px; }
  .box .table-wrap { margin: 0 -16px -18px; }
  .box .table-wrap:not(:last-child) { margin-bottom: 6px; }
  .auth { padding: 18px 12px 40px; }
  .auth__card { border-radius: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .search--big input { font-size: 16px; }
  .stat__num { font-size: 34px; }
  .toolbar > .btn { width: 100%; }
}

@media (min-width: 961px) and (max-height: 800px) {
  .full { padding: 84px 0 28px; }
  .hero__title { font-size: clamp(38px, 4.6vw, 58px); }
  .hero__lead { font-size: 17px; margin-top: 16px; }
  .hero__actions { margin-top: 22px; }
  .preview figcaption { display: none; }
  .preview__page { padding: 16px 20px 14px; }
  .preview .panel__h2 { margin: 12px 0 6px; }
  .preview .timeline__card { padding: 8px 14px; }
  .next { display: none; }
  .sec__head { margin-bottom: 18px; }
  .sec__title { font-size: clamp(30px, 3.4vw, 40px); }
  .tile { padding: 16px 18px; }
  .tile__ico { width: 40px; height: 40px; margin-bottom: 10px; }
  .tile__name { font-size: 20px; }
  .tile__text { font-size: 14.5px; }
  .band__text > p { margin: 12px 0 16px; font-size: 17px; }
  .steps li { padding: 9px 14px; }
  .band__text .btn { margin-top: 16px; }
  .phone { width: min(280px, 100%); }
  .map iframe { height: 400px; }
}

@media (max-width: 560px) and (max-height: 700px) {
  .full { padding-top: 72px; padding-bottom: 18px; }
  .hero__title { font-size: 31px; }
  .hero__place { display: none; }
  .hero__lead { font-size: 15px; }
  .contact__list { gap: 6px; margin: 10px 0 12px; }
  .contact__list span { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .hours td { padding: 6px 10px; }
  .map iframe { height: 150px; }
  .preview .timeline__item:nth-child(2) { display: none; }
  .tile__short { display: none; }
  .phone { height: min(34svh, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .snap { scroll-snap-type: none; scroll-behavior: auto; }
  .rv, .preview .timeline__item { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   ADMINISTRACIJA – pregled, liste (zaglavlje strane, kartice, tabele)
   ========================================================================== */
.app-content { max-width: 1240px; }
.app-foot { max-width: 1240px; }

/* zaglavlje strane */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ph__text { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ph__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--slate); color: var(--amber); box-shadow: 0 10px 22px -12px rgba(23, 38, 51, .7); }
.ph__ico .ico { width: 26px; height: 26px; }
.ph__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; line-height: 1.1; }
.ph__sub { color: var(--muted); font-size: 15px; margin-top: 3px; }
.ph__sub b { color: var(--ink); font-weight: 650; }
.ph__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn .ico { width: 18px; height: 18px; }

/* traka sa filterima i pretragom */
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.seg a:hover { color: var(--ink); }
.seg a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 32, 43, .14); }
.seg__n { font-size: 12px; font-weight: 700; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--chip); color: var(--ink-2); text-align: center; line-height: 18px; }
.seg a.is-active .seg__n { background: var(--cobalt); color: #fff; }
.sbox { position: relative; display: flex; flex: 1 1 320px; gap: 8px; min-width: 0; }
.sbox .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.sbox input { flex: 1; min-width: 0; font: inherit; font-size: 15.5px; padding: 9px 12px 9px 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.sbox input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.sbox .btn { padding: 9px 16px; }
.result-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 0 4px 10px; }
.result-line a { font-weight: 600; }

/* tabela u kartici */
.dt-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.dt { width: 100%; border-collapse: collapse; font-size: 15px; }
.dt th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt tbody tr { transition: background .12s; }
.dt tbody tr:hover { background: var(--hover); }
.dt tbody tr[data-href] { cursor: pointer; }
.dt .right { text-align: right; }
.dt a:not(.plate):not(.btn) { color: var(--ink); text-decoration: none; }
.dt a:not(.plate):not(.btn):hover { color: var(--cobalt); text-decoration: underline; }
.dt tr.is-off td { color: var(--muted); }
.dt tr.is-off .av { filter: grayscale(1); opacity: .6; }
.cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell__txt { display: grid; min-width: 0; line-height: 1.3; }
.cell__txt strong, .cell__txt > a { font-weight: 650; }
.cell__txt small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell__txt small a { color: var(--muted) !important; }
.num2 { display: grid; line-height: 1.3; justify-items: end; }
.num2 strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.num2 small { color: var(--muted); font-size: 13px; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.money::after { content: " din"; font-weight: 500; color: var(--muted); font-size: .85em; }
.broj { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
a.broj { text-decoration: none !important; }
a.broj:hover { border-color: var(--cobalt); color: var(--cobalt) !important; }
.vin { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; color: var(--ink-2); letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--warn { background: var(--warn-tint); color: var(--warn); }
.chip--bad { background: var(--bad-tint); color: var(--bad); }
.chip--dark { background: var(--slate); color: #fff; }
.chip--blue { background: var(--cobalt-tint); color: var(--cobalt); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.contact-cell { display: grid; gap: 2px; font-size: 14.5px; }
.contact-cell a, .contact-cell span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.contact-cell .ico { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dt-empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.dt-empty .ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-2); }
.dt-empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.dt-empty .btn { margin-top: 14px; }

/* avatari */
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 750; letter-spacing: .02em; background: hsl(var(--h, 220) 60% 92%); color: hsl(var(--h, 220) 50% 30%); }
.av--firma { border-radius: 10px; }
.mono-badge { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; font-stretch: 125%; letter-spacing: .04em; background: var(--slate); color: hsl(var(--h, 45) 85% 70%); box-shadow: inset 0 -3px 0 hsl(var(--h, 45) 70% 50%); }

/* paginacija */
.pager2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.pager2 a { font-weight: 650; text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.pager2 a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.pager2 .is-off { visibility: hidden; }

/* ---------- Pregled (početna administracije) ---------- */
.dash-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px 24px; color: #c9d4de; background: radial-gradient(900px 300px at 100% 0%, rgba(35, 70, 209, .55), transparent 60%), linear-gradient(135deg, #1b2c3b, var(--slate)); box-shadow: 0 24px 50px -30px rgba(23, 38, 51, .8); margin-bottom: 18px; animation: kartica-ulaz .5s var(--ease) both; }
.dash-hero::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(245, 179, 1, .06); pointer-events: none; }
.dash-hero__top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.dash-hero__date { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #9fb0bf; }
.dash-hero__date .ico { width: 16px; height: 16px; color: var(--amber); }
.dash-hero__title { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; margin-top: 6px; }
.dash-hero__sub { margin-top: 6px; max-width: 60ch; }
.dash-hero__sub strong { color: var(--amber); }
.odo { flex: none; display: grid; justify-items: end; gap: 6px; }
.odo__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8fa1b1; font-weight: 700; }
.odo__digits { display: flex; gap: 3px; padding: 5px; border-radius: 10px; background: #0d1821; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6); }
.odo__digits span { width: 26px; height: 36px; display: grid; place-items: center; border-radius: 5px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--amber); background: linear-gradient(#22313f, #142029 50%, #1c2a36 50%, #121c25); }
.dash-search { position: relative; display: flex; gap: 8px; margin-top: 22px; }
.dash-search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8fa1b1; pointer-events: none; }
.dash-search input { flex: 1; min-width: 0; font: inherit; font-size: 16.5px; padding: 13px 14px 13px 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #fff; }
.dash-search input::placeholder { color: #8fa1b1; }
.dash-search input:focus { outline: none; border-color: var(--amber); background: rgba(255, 255, 255, .12); }
.dash-search .btn { padding: 0 22px; border-radius: 12px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.quick__btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.quick__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(245, 179, 1, .5); color: #fff; transform: translateY(-2px); }
.quick__btn .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: rgba(245, 179, 1, .14); color: var(--amber); }
.quick__btn span { display: grid; line-height: 1.25; min-width: 0; }
.quick__btn strong { font-size: 15px; font-weight: 650; }
.quick__btn small { font-size: 12.5px; color: #9fb0bf; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label ico" "num ico" "foot foot"; gap: 2px 10px; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; animation: kartica-ulaz .5s var(--ease) both; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; } .kpi:nth-child(4) { animation-delay: .15s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kc); }
.kpi:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--kc); box-shadow: 0 14px 30px -18px rgba(19, 32, 43, .45); }
.kpi__ico { grid-area: ico; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--kt); color: var(--kc); }
.kpi__ico .ico { width: 22px; height: 22px; }
.kpi__label { grid-area: label; font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi__num { grid-area: num; font-size: 38px; font-weight: 800; font-stretch: 125%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__foot { grid-area: foot; font-size: 13.5px; color: var(--muted); margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kpi__foot b { color: var(--warn); }
.kpi--cobalt { --kc: var(--cobalt); --kt: var(--cobalt-tint); }
.kpi--ok { --kc: var(--ok); --kt: var(--ok-tint); }
.kpi--slate { --kc: var(--slate); --kt: var(--chip); }
.kpi--amber { --kc: #c98f00; --kt: var(--amber-tint); }

.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; align-items: start; }
.dash-col { display: grid; gap: 18px; min-width: 0; }
.pnl { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.pnl__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.pnl__title { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 750; font-stretch: 110%; }
.pnl__title .ico { width: 19px; height: 19px; color: var(--warn); }
.pnl__more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.pnl__more .ico { width: 16px; height: 16px; transition: transform .15s; }
.pnl__more:hover .ico { transform: translateX(3px); }
.pnl__empty { display: flex; align-items: center; gap: 12px; padding: 4px 18px 20px; color: var(--muted); }
.pnl__empty .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); }
.pnl__hint { padding: 0 18px 16px; font-size: 13.5px; color: var(--muted); }
.pnl--warn { border-color: var(--warn-line); background: linear-gradient(var(--amber-tint), var(--surface) 60%); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-tint); animation: puls 1.6s ease-in-out infinite; }

.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rows li + li { border-top: 1px solid var(--line-soft); }
.row { display: grid; grid-template-columns: auto 1fr auto 18px; align-items: center; gap: 14px; padding: 12px 18px; color: var(--ink); text-decoration: none; transition: background .12s; }
.row:hover { background: var(--hover); color: var(--ink); }
.row:hover .row__go { color: var(--cobalt); transform: translateX(3px); }
.row__plate { min-width: 128px; }
.row__main { display: grid; line-height: 1.3; min-width: 0; }
.row__main strong { font-weight: 650; }
.row__main small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__side { display: grid; justify-items: end; gap: 3px; line-height: 1.2; }
.row__side small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.row__go { width: 18px; height: 18px; color: var(--line-2); transition: transform .15s, color .15s; }
.datebox { display: grid; place-items: center; width: 46px; height: 48px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); line-height: 1; }
.datebox b { font-size: 19px; font-weight: 800; font-stretch: 115%; }
.datebox small { font-size: 11.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 10px; height: 190px; padding: 6px 18px 16px; }
.bars__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 5px; }
.bars__n { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bars__bar { align-self: end; width: 100%; max-width: 34px; height: var(--v); min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(#c8d3f6, #9db0ee); transform-origin: bottom; animation: stub .7s var(--ease) both; }
.bars__col:nth-child(2) .bars__bar { animation-delay: .05s; } .bars__col:nth-child(3) .bars__bar { animation-delay: .1s; }
.bars__col:nth-child(4) .bars__bar { animation-delay: .15s; } .bars__col:nth-child(5) .bars__bar { animation-delay: .2s; }
.bars__col:nth-child(6) .bars__bar { animation-delay: .25s; }
.bars__col.is-now .bars__bar { background: linear-gradient(var(--cobalt), #3b5ee6); box-shadow: 0 8px 18px -8px rgba(35, 70, 209, .7); }
.bars__col.is-now .bars__m { color: var(--cobalt); }
.bars__m { font-size: 12.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
@keyframes stub { from { transform: scaleY(0); } }

.people { list-style: none; padding: 0 8px 10px; display: grid; gap: 2px; }
.people a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.people a:hover { background: var(--surface-2); color: var(--ink); }
.people a > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.people strong { font-weight: 650; font-size: 15px; }
.people small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- tabele kao kartice na telefonu ---------- */
@media (max-width: 760px) {
  .ph__ico { width: 44px; height: 44px; border-radius: 12px; }
  .ph__ico .ico { width: 22px; height: 22px; }
  .ph__actions { width: 100%; }
  .ph__actions .btn { flex: 1; }
  .filterbar { padding: 8px; }
  .seg { width: 100%; }
  .sbox { flex-basis: 100%; }
  .dt-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .dt, .dt tbody, .dt tr, .dt td { display: block; }
  .dt thead { display: none; }
  .dt tbody { display: grid; gap: 10px; }
  .dt tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .dt tbody tr:hover { background: var(--surface); }
  .dt td { padding: 0; border: 0; min-width: 0; }
  .dt td[data-l] { display: flex; justify-content: space-between; gap: 10px; grid-column: 1 / -1; font-size: 14.5px; padding-top: 6px; border-top: 1px dashed var(--line); }
  .dt td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 600; }
  .dt td.m-full { grid-column: 1 / -1; }
  .dt td.m-hide { display: none; }
  .dt .right { text-align: left; }
  .dt td[data-l] .num2 { justify-items: end; }
  .pager2 { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
  .dash-hero { padding: 20px 18px 18px; border-radius: 16px; }
  .odo { display: none; }
  .dash-search .btn { padding: 0 16px; }
  .quick { gap: 8px; }
  .quick__btn { padding: 10px; gap: 10px; }
  .quick__btn .ico { width: 30px; height: 30px; padding: 6px; }
  .quick__btn small { display: none; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px 14px 12px; border-radius: 14px; }
  .kpi__num { font-size: 30px; }
  .kpi__ico { width: 36px; height: 36px; border-radius: 10px; }
  .kpi__label { font-size: 13px; }
  .row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 14px; }
  .row__plate { grid-column: 1 / -1; min-width: 0; }
  .row__go { display: none; }
  .row:has(.datebox) { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 420px) {
  .kpi__foot { font-size: 12.5px; }
  .kpi__ico { display: none; }
  .kpi { grid-template-areas: "label label" "num num" "foot foot"; }
}
.cell__txt > .broj { justify-self: start; }
.filterbar .seg { flex: 0 1 auto; }
.filterbar .sbox { min-width: min(100%, 300px); }

/* detalji (vozilo, vlasnik, nalog, korisnik) u istom stilu kao liste */
.app-content .box { border-radius: 16px; box-shadow: var(--shadow); }
.app-content .box .table-wrap { border-radius: 0 0 16px 16px; }
.app-content > .table-wrap, .app-content .cols > .table-wrap { border-radius: 14px; box-shadow: var(--shadow); }
.app-content .table th { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.app-content .panel__title { font-size: clamp(26px, 3vw, 34px); }
.app-content .crumbs { font-size: 14px; font-weight: 550; }
.mt-l { margin-top: 34px; }
.m0 { margin: 0 !important; }
.icon-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted) !important; }
.icon-link:hover { background: var(--cobalt-tint); color: var(--cobalt) !important; }
.icon-link .ico { width: 18px; height: 18px; }

/* ==========================================================================
   TAMNA TEMA – iste komponente, druge vrednosti promenljivih
   ========================================================================== */
:root[data-theme="tamna"] {
  color-scheme: dark;
  --bg: #0e161d; --surface: #15202a; --surface-2: #1a2733;
  --ink: #e6edf3; --ink-2: #c3cfda; --muted: #8fa1b1; --line: #263543; --line-2: #34485b;
  --cobalt: #5a7bff; --cobalt-dark: #4766f0; --cobalt-tint: rgba(90, 123, 255, .16);
  --amber-tint: rgba(245, 179, 1, .13); --slate: #0a1117;
  --ok: #5ccf96; --ok-tint: rgba(92, 207, 150, .14);
  --warn: #f0c046; --warn-tint: rgba(240, 192, 70, .14);
  --bad: #ff8a7a; --bad-tint: rgba(255, 138, 122, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .25);
  --chip: #23313e; --hover: #1b2834; --line-soft: #213040; --line-hover: #4a6176;
  --nav-bg: rgba(14, 22, 29, .82); --nav-bg-2: rgba(21, 32, 42, .92); --btn-dark: #2c3e4f;
  --ok-ink: #a6e8c6; --ok-line: rgba(92, 207, 150, .35); --bad-ink: #ffbcb2; --bad-line: rgba(255, 138, 122, .35);
  --warn-ink: #f6d58a; --warn-line: rgba(240, 192, 70, .35);
}
:root[data-theme="tamna"] .dots a { background: rgba(255, 255, 255, .22); }
:root[data-theme="tamna"] .bars__bar { background: linear-gradient(#34477e, #2a3a66); }
:root[data-theme="tamna"] .bars__col.is-now .bars__bar { background: linear-gradient(var(--cobalt), #3b5ee6); }
:root[data-theme="tamna"] .sec--band { background: #1b3394; }
:root[data-theme="tamna"] .phone img, :root[data-theme="tamna"] .preview { filter: brightness(.94); }
:root[data-theme="tamna"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }
:root[data-theme="tamna"] .status--otkazan { color: var(--muted); }
:root[data-theme="tamna"] .err__odo, :root[data-theme="tamna"] .ph__ico { box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="tamna"] .dash-hero { background: radial-gradient(900px 300px at 100% 0%, rgba(90, 123, 255, .35), transparent 60%), linear-gradient(135deg, #142231, #0b141b); box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="tamna"] .auth__side { background: #0b141b; }
:root[data-theme="tamna"] .footer { background: #0a1117; border-top: 1px solid var(--line); }
:root[data-theme="tamna"] img { color-scheme: light; }
html { transition: background-color .25s; }

/* prekidač teme */
.tema-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; flex: none; }
.tema-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.tema-btn .ico { width: 20px; height: 20px; }
.tema-btn .tema-btn__mesec { display: none; }
:root[data-theme="tamna"] .tema-btn .tema-btn__sunce { display: none; }
:root[data-theme="tamna"] .tema-btn .tema-btn__mesec { display: block; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.side .tema-btn { width: 34px; height: 34px; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #c4d0db; }
.side .tema-btn:hover { color: var(--amber); border-color: rgba(245, 179, 1, .5); }
.side__tema { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #8fa1b1; font-size: 13.5px; }
.app-top .tema-btn { margin-left: auto; width: 36px; height: 36px; }

/* obaveštenje na vrhu sajta i traka za osoblje dok je sajt u izradi */
.notice { position: relative; z-index: 31; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; text-align: center; background: var(--cobalt); color: #fff; }
.notice .ico { width: 18px; height: 18px; flex: none; }
.notice--upozorenje { background: var(--amber); color: #13202b; }
.notice--staff { background: repeating-linear-gradient(-45deg, #13202b 0 14px, #1c2c3a 14px 28px); color: var(--amber); font-size: 13.5px; }
.notice--staff a { color: #fff; }
.home .notice { position: fixed; top: 0; left: 0; right: 0; }
.home.ima-notice .nav { top: var(--notice-h, 38px); }

/* ---------- usluge na telefonu: kartice koje se prevlače, sa punim opisom ---------- */
.tiles-dots { display: none; }
@media (max-width: 560px) {
  .sec-usluge .sec__head { margin-bottom: 14px; }
  .sec__lead { display: block; font-size: 15px; line-height: 1.45; }
  .tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 84%; scroll-snap-align: start; padding: 18px 18px 16px; border-radius: var(--r-l); background: var(--bg); }
  .tile__ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
  .tile__ico .ico { width: 24px; height: 24px; }
  .tile__name { font-size: 20px; font-stretch: 112%; }
  .tile__short { display: block; font-weight: 600; color: var(--cobalt); font-size: 14.5px; }
  .tile__text, .tile .tags { display: block; }
  .tile .tags { display: flex; }
  .tile__text { font-size: 15px; margin-top: 8px; }
  .tile.rv { transform: translateX(26px); }
  .is-in .tile.rv { transform: none; }
  .tiles-dots { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 6px; }
  .tiles-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); transition: width .25s var(--ease), background .25s; cursor: pointer; }
  .tiles-dots button.is-active { width: 22px; background: var(--cobalt); }
  .tiles-hint { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .sec__lead { display: none; }
  .tile__short { display: block; }
  .tile__text { font-size: 14px; }
}

/* ---------- strana „u izradi“ ---------- */
.maint { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 400px at 50% -10%, rgba(35, 70, 209, .18), transparent 70%), var(--bg); }
.maint__card { width: 100%; max-width: 560px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px 26px; box-shadow: 0 30px 70px -36px rgba(19, 32, 43, .45); animation: kartica-ulaz .5s var(--ease) both; }
.maint__logo { display: flex; justify-content: center; }
.maint__gauge { width: 150px; margin: 22px auto 6px; }
.maint__gauge svg { width: 100%; fill: var(--ink); }
.maint__arc { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.maint__arc--on { stroke: var(--amber); stroke-dasharray: 160; stroke-dashoffset: 160; animation: luk 2.4s var(--ease) infinite alternate; }
.maint__needle { stroke: var(--cobalt); stroke-width: 4; stroke-linecap: round; transform-origin: 60px 64px; animation: igla 2.4s var(--ease) infinite alternate; }
@keyframes luk { to { stroke-dashoffset: 40; } }
@keyframes igla { from { transform: rotate(-70deg); } to { transform: rotate(45deg); } }
.maint__title { font-size: clamp(26px, 6vw, 34px); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; }
.maint__text { color: var(--ink-2); margin: 12px auto 0; max-width: 44ch; white-space: pre-line; }
.maint__when { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 99px; background: var(--amber-tint); font-size: 14.5px; }
.maint__when .ico { width: 18px; height: 18px; color: var(--warn); }
.maint__phones { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.maint__addr { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.maint__addr .ico { width: 16px; height: 16px; }
.maint__staff { display: block; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- podešavanja sajta ---------- */
.alert--info { background: var(--cobalt-tint); border-color: transparent; color: var(--ink); }
.set-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.set-status__item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.set-status__item:hover { border-color: var(--cobalt); color: var(--ink); }
.set-status__item span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.set-status__item small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.set-status__item strong { font-size: 14.5px; font-weight: 650; }
.set-status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.set-status__item.is-off .set-status__dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-tint); }
.set { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.set__nav { position: sticky; top: 16px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.set__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.set__nav a .ico { width: 18px; height: 18px; color: var(--muted); }
.set__nav a:hover { background: var(--surface-2); color: var(--ink); }
.set__nav a.is-active { background: var(--cobalt-tint); color: var(--cobalt); }
.set__nav a.is-active .ico { color: var(--cobalt); }
.set__main { min-width: 0; display: grid; gap: 16px; }
.set__main > .alert { margin-top: 0; }
.set-pnl { overflow: visible; }
.set-pnl__head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.set-pnl__head h2 { font-size: 19px; font-weight: 750; font-stretch: 110%; }
.set-pnl__head p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.set-pnl__body { padding: 8px 22px 18px; }
.set-pnl__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; position: sticky; bottom: 0; z-index: 2; }
.set-row { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-of-type { border-bottom: 0; }
.set-row__label { font-weight: 650; font-size: 14.5px; }
.set-row__help { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.set-row input[type=text], .set-row input[type=email], .set-row input[type=url], .set-row input[type=password], .set-row input[type=number], .set-row select, .set-row textarea,
.rep input, .rep select, .rep textarea, .set-inline input {
  font: inherit; font-size: 15px; width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); }
.set-row input:focus, .set-row select:focus, .set-row textarea:focus, .rep input:focus, .rep select:focus, .rep textarea:focus, .set-inline input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.set-row textarea, .rep textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.set-row--bool { display: block; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); transition: background .2s; margin-top: 1px; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--cobalt); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--amber); outline-offset: 2px; }
.switch__txt { display: grid; gap: 2px; line-height: 1.35; }
.switch__txt strong { font-weight: 650; font-size: 15px; }
.switch__txt small { color: var(--muted); font-size: 13.5px; }
.set-h3 { font-size: 15.5px; font-weight: 750; margin: 20px 0 10px; }
.set-h3 small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.rep { display: grid; gap: 8px; justify-items: start; }
.rep > [data-rep-row] { width: 100%; }
.rep__row { display: grid; gap: 8px; align-items: center; }
.rep__row--tel { grid-template-columns: 1fr 1.3fr auto; }
.rep__row--rv { grid-template-columns: 150px 150px 1fr 1fr auto; }
.rep__card { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rep__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rep__grid label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.rep__grid label small { font-weight: 500; color: var(--muted); }
.rep__grid .span-2 { grid-column: 1 / -1; }
.rep__tools { display: flex; gap: 4px; align-self: start; }
.rep__tools button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 15px; }
.rep__tools button:hover { color: var(--ink); border-color: var(--ink); }
.rep__tools [data-rep-brisi]:hover { color: var(--bad); border-color: var(--bad); }
.znakovi { display: block; text-align: right; font-size: 12.5px; color: var(--muted); }
.znakovi.is-preko { color: var(--warn); font-weight: 650; }
.serp { display: grid; gap: 3px; max-width: 600px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-family: Arial, sans-serif; margin-bottom: 10px; }
.serp__url { font-size: 13px; color: var(--ok); }
.serp__title { font-size: 19px; color: #1a0dab; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="tamna"] .serp__title { color: #8ab4f8; }
.serp__desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-info { display: grid; gap: 0; }
.set-info div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.set-info dt { color: var(--muted); }
.set-info dd { font-weight: 650; text-align: right; }
.set-info--grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; }
.set-actions p { flex-basis: 100%; }
.set-upload { flex-basis: 100%; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.set-upload .set-row { flex: 1; border: 0; padding-bottom: 0; }
.set-inline { display: flex; gap: 8px; padding-top: 16px; }
.set-inline input { flex: 1; }
@media (max-width: 1100px) {
  .set { grid-template-columns: 1fr; }
  .set__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .set__nav a { white-space: nowrap; }
  .set-status { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .rep__row--rv { grid-template-columns: 1fr 1fr auto; }
  .rep__row--rv input { grid-column: span 2; }
  .rep__row--rv .rep__tools { grid-row: 1; grid-column: 3; }
  .rep__row--tel { grid-template-columns: 1fr auto; }
  .rep__row--tel input[type=tel] { grid-column: 1; }
  .rep__row--tel .rep__tools { grid-row: 1 / span 2; grid-column: 2; }
  .rep__grid { grid-template-columns: 1fr; }
  .rep__card { grid-template-columns: 1fr; }
  .rep__tools { grid-row: 1; justify-self: end; }
  .set-pnl__head, .set-pnl__body, .set-pnl__foot { padding-left: 16px; padding-right: 16px; }
  .set-info--grid { grid-template-columns: 1fr; }
  .set-inline { flex-direction: column; }
}
.nav__inner > .nav__right { order: 3; }
.nav__menu { margin-left: auto; }
.maint__when { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; border-radius: 14px; text-align: center; }

/* ==========================================================================
   PROMET – boje serija (proverene za daltonizam, posebno za tamnu temu)
   ========================================================================== */
:root { --s-delovi: #2a5bd7; --s-rad: #1baf7a; --s-ruke: #eda100; }
:root[data-theme="tamna"] { --s-delovi: #4d7cf0; --s-rad: #199e70; --s-ruke: #c98500; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; flex: none; vertical-align: 0; }
.sw--delovi, .seg-delovi { background: var(--s-delovi); }
.sw--rad, .seg-rad { background: var(--s-rad); }
.sw--ruke, .seg-ruke { background: var(--s-ruke); }

.pr-bar { gap: 10px 16px; }
.pr-nav { display: flex; align-items: center; gap: 6px; }
.pr-nav__btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 20px; line-height: 1; }
.pr-nav__btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.pr-nav__naziv { font-size: 15.5px; font-weight: 700; padding: 0 6px; white-space: nowrap; }
.pr-nav__danas { font-size: 13.5px; font-weight: 650; padding: 4px 10px; border-radius: 99px; background: var(--cobalt-tint); text-decoration: none; }
.pr-opseg { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); }
.pr-opseg input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }

.pr-kpis { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pr-hero, .pr-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.pr-hero { background: radial-gradient(500px 200px at 100% 0%, rgba(35, 70, 209, .5), transparent 65%), linear-gradient(135deg, #1b2c3b, var(--slate)); border-color: transparent; color: #c9d4de; }
.pr-hero__label { font-size: 14px; font-weight: 600; color: #9fb0bf; }
.pr-hero__num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; font-stretch: 118%; color: #fff; line-height: 1.1; letter-spacing: -.01em; }
.pr-hero__num small { font-size: 16px; font-weight: 600; color: #9fb0bf; }
.pr-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; margin-top: auto; padding-top: 6px; }
.pr-hero__cmp { color: #8fa1b1; font-size: 12.5px; flex-basis: 100%; }
.pr-hero .delta { background: rgba(255, 255, 255, .1); color: #fff; }
.pr-hero .delta--gore { color: #7ee2b0; }
.pr-hero .delta--dole { color: #ffb4a8; }
.pr-kpi__label { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pr-kpi__num { font-size: 22px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; }
.pr-kpi__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.pr-kpi--zarada { border-color: var(--ok-line); background: linear-gradient(var(--ok-tint), var(--surface) 70%); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.delta--gore { background: var(--ok-tint); color: var(--ok); }
.delta--dole { background: var(--bad-tint); color: var(--bad); }

.pr-chart { margin-bottom: 16px; overflow: visible; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; }
.chart { position: relative; height: 280px; margin: 4px 18px 0 64px; padding-bottom: 28px; }
.chart__grid { position: absolute; inset: 0 0 28px 0; pointer-events: none; }
.chart__tick { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-soft); }
.chart__tick:first-child { border-top-color: var(--line-2); }
.chart__tick span { position: absolute; right: calc(100% + 8px); top: -9px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.chart__col { position: relative; display: flex; flex-direction: column; align-items: center; cursor: default; outline: none; border-radius: 8px; }
.chart__col:not(.is-empty) { cursor: pointer; }
.chart__col.is-hover, .chart__col:focus-visible { background: var(--hover); }
.chart__col:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); }
.chart__stack { flex: 1; width: 100%; max-width: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.chart__stack span { display: block; width: 100%; min-height: 2px; transform-origin: bottom; animation: stub .6s var(--ease) both; }
.chart__stack span:first-child { border-radius: 4px 4px 0 0; }
.chart__x { height: 28px; display: flex; align-items: flex-end; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chart__col.is-now .chart__x { color: var(--cobalt); font-weight: 700; }
.chart__cols[style*="--n: 2"] .chart__x, .chart__cols[style*="--n: 3"] .chart__x { font-size: 13px; }
.chart__tip { position: absolute; top: 0; transform: translate(-50%, -6px); z-index: 5; display: grid; gap: 3px; min-width: 190px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); font-size: 13px; pointer-events: none; }
.chart__tip strong { font-size: 13.5px; margin-bottom: 2px; }
.chart__tip span { display: flex; align-items: center; color: var(--ink-2); }
.chart__tip span b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.chart__tip-sum { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; font-weight: 650; }
.chart__tip small { color: var(--muted); }

.pr-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.pr-side { display: grid; gap: 16px; }
.pr-table-wrap { border-top: 1px solid var(--line); max-height: 520px; overflow: auto; }
.pr-table { font-size: 14px; }
.pr-table th, .pr-table td { padding: 8px 14px; }
.pr-table thead th { position: sticky; top: 0; z-index: 1; }
.pr-table tr.is-now td { background: var(--cobalt-tint); }
.pr-table tr.is-zero td { color: var(--muted); }
.pr-table tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-weight: 750; border-top: 1.5px solid var(--line-2); }
.pr-tok__body { padding: 0 18px 16px; }
.pr-tok__num { font-size: 26px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.pr-tok__num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pr-split { display: flex; gap: 2px; height: 14px; margin: 0 18px; border-radius: 99px; overflow: hidden; }
.pr-split span { min-width: 2px; }
.pr-split__legend { list-style: none; padding: 12px 18px 4px; display: grid; gap: 6px; font-size: 14px; }
.pr-split__legend li { display: flex; align-items: center; }
.pr-split__legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.pr-h2 { font-size: 18px; font-weight: 750; font-stretch: 110%; margin: 4px 4px 10px; }
.pr-h2 .muted { font-weight: 500; font-size: 15px; }

@media (max-width: 1100px) {
  .pr-kpis { grid-template-columns: repeat(2, 1fr); }
  .pr-hero { grid-column: 1 / -1; }
  .pr-cols { grid-template-columns: 1fr; }
  .pr-opseg { margin-left: 0; }
}
@media (max-width: 760px) {
  .pr-nav { width: 100%; justify-content: space-between; }
  .pr-opseg { width: 100%; flex-wrap: wrap; }
  .pr-opseg label { flex: 1; }
  .pr-opseg input { width: 100%; }
  .pr-kpi__num { font-size: 18px; }
  .chart { height: 220px; margin-left: 48px; margin-right: 8px; }
  .chart__cols[style*="--n: 28"] .chart__x, .chart__cols[style*="--n: 29"] .chart__x, .chart__cols[style*="--n: 30"] .chart__x, .chart__cols[style*="--n: 31"] .chart__x { visibility: hidden; }
  .chart__cols[style*="--n: 28"] .chart__col:nth-child(5n+1) .chart__x, .chart__cols[style*="--n: 29"] .chart__col:nth-child(5n+1) .chart__x,
  .chart__cols[style*="--n: 30"] .chart__col:nth-child(5n+1) .chart__x, .chart__cols[style*="--n: 31"] .chart__col:nth-child(5n+1) .chart__x { visibility: visible; }
  .chart__cols[style*="--n: 12"] .chart__x { font-size: 10px; }
  .chart__stack { max-width: 18px; }
  .pr-table-wrap { max-height: none; }
  .pr-table { display: table !important; }
  .pr-table thead { display: table-header-group !important; }
  .pr-table tbody { display: table-row-group !important; }
  .pr-table tr { display: table-row !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  .pr-table td, .pr-table th { display: table-cell !important; padding: 7px 8px !important; font-size: 12.5px; border-bottom: 1px solid var(--line-soft) !important; }
  .pr-table-wrap { overflow-x: auto; }
}
@media print {
  .side, .app-top, .side-overlay, .ph__actions, .pr-opseg, .pr-nav__btn, .pr-nav__danas, .seg, .pager2, .app-foot, .flash, .notice, .chart__tip { display: none !important; }
  .app { display: block; background: none; }
  .app-content { padding: 0; max-width: none; }
  body { background: #fff; }
  .pnl, .pr-kpi, .dt-wrap { box-shadow: none; break-inside: avoid; }
  .pr-table-wrap { max-height: none; overflow: visible; }
}
.chart__tip[hidden] { display: none; }
.pr-chart { overflow: hidden; }
.pr-hero__num { font-size: clamp(26px, 2.5vw, 36px); white-space: nowrap; }
.pr-table-wrap { max-height: none; }
.pr-table-wrap--dugo { max-height: 560px; }
