/* Izgled portala za klijente i centralnog sistema: bele kartice na toplo sivoj podlozi, crna dugmad.
   Font je EB Garamond (licenca SIL OFL 1.1, tekst licence je u folderu fonts). Jedan fajl nosi sve debljine od 400 do 800. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-wght.woff?v=1003") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --line: #e4e4e0;
  --line-strong: #cdcdc8;
  --ink: #111111;
  --ink-2: #3a3a37;
  --muted: #6d6d68;
  --seg-off: #dededa;
  --red: #e2231a;
  --red-ink: #a3241c;
  --green: #1a7f37;
  --font: "EB Garamond", Georgia, "Times New Roman", serif;
  --w-text: 440;   /* obican tekst: malo jace od najtanjeg reza, da na ekranu ne bude bled */
  --w-mid: 540;
  --w-bold: 640;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; font-weight: var(--w-text); line-height: 1.4; font-variant-numeric: proportional-nums; font-kerning: normal; text-rendering: optimizeLegibility; }
/* brojevi u kolonama i poljima iste sirine, da cifre stoje jedna ispod druge */
.num, table.t .r, .inp, .timer, .log span, .badge { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
b, strong { font-weight: var(--w-bold); }
p { margin: 0; }
a { color: inherit; }
img, svg { vertical-align: middle; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Zaglavlje */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { min-height: 60px; display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-size: 34px; font-weight: 560; line-height: 1; letter-spacing: -0.2px; white-space: nowrap; text-decoration: none; padding-bottom: 4px; display: inline-flex; align-items: baseline; }
.brand img.logo { display: block; height: 38px; width: auto; max-width: 240px; object-fit: contain; align-self: center; }
.brand:has(img.logo) { padding-bottom: 0; align-items: center; }
.brand span { color: var(--red); }
.brand small { font-size: 16px; letter-spacing: 0; color: var(--muted); margin-left: 11px; font-weight: var(--w-mid); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .top-right a { padding: 8px 9px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .top-right a:hover { background: #f1f1ee; }
.nav a.on, .top-right a.on { background: var(--ink); color: #fff; font-weight: var(--w-mid); }
.nav .badge { margin-left: 6px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.top-right .who { color: var(--muted); font-size: 17px; padding: 0 6px; }
.top-right a.u { text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; margin: 0; }
.linkbtn { font: inherit; color: inherit; background: none; border: 0; padding: 8px 11px; border-radius: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { background: #f1f1ee; }
.linkbtn.plain { text-decoration: none; }
.linkbtn.tight { padding: 2px 4px; color: var(--muted); font-size: 17px; }

/* Naslovi */
.back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 17px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px 0 20px; flex-wrap: wrap; }
.back + .head { padding-top: 6px; }
h1 { margin: 0; font-size: 33px; font-weight: var(--w-bold); line-height: 1.15; letter-spacing: -0.2px; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 23px; font-weight: 620; line-height: 1.2; letter-spacing: -0.1px; }
h3 { margin: 0 0 8px; font-size: 19px; font-weight: var(--w-bold); }
.sub { margin-top: 4px; color: var(--muted); }
.hint { color: var(--muted); }
.fine { color: var(--muted); font-size: 16px; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; font: inherit; font-weight: var(--w-bold); font-size: 18px; white-space: nowrap; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2b2b29; }
.btn[disabled], .btn.off { background: #e8e8e4; color: #9b9b95; border-color: #e8e8e4; cursor: default; }
.btn.danger { color: var(--red-ink); border-color: #e2b6b1; }
.btn.danger:hover { border-color: var(--red-ink); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 16.5px; }
.btn.lg { min-height: 48px; padding: 0 24px; font-size: 20px; }
.btn.full { width: 100%; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

/* Kartice */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px 6px; margin-bottom: 20px; }
.card.pad { padding: 22px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h .right { margin-left: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.narrow { max-width: 520px; margin: 0 auto; }
.mid { max-width: 760px; margin: 0 auto; }
.mid.mt { margin-top: 16px; }
.badge { min-width: 27px; height: 23px; padding: 0 7px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #ecece8; color: var(--ink); }
.badge.hot { background: var(--red); color: #fff; }
.on .badge { background: #fff; color: var(--ink); }
.on .badge.hot { background: var(--red); color: #fff; }

/* Poruke */
.banner { border-radius: 10px; padding: 13px 16px; margin-bottom: 20px; border: 1px solid; overflow-wrap: anywhere; }
.banner.ok { background: #e7f5ec; border-color: #bfe3cb; color: #14632b; }
.banner.warn { background: #fff6da; border-color: #ead48a; color: #574000; }
.banner.err { background: #fdecea; border-color: #f0bdb7; color: #8a1e17; }
.banner.note { background: #f7f7f5; border-color: var(--line); color: var(--ink-2); }
.banner ul { margin: 6px 0 0; padding-left: 20px; }
.banner.in { margin: 12px 0 0; }
.timer { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 13px; border-radius: 17px; background: #fff6da; border: 1px solid #ead48a; color: #574000; font-weight: var(--w-bold); font-size: 17px; white-space: nowrap; }
.timer.late { background: #fdecea; border-color: #f0bdb7; color: #8a1e17; }
.timer.done { background: #f7f7f5; border-color: var(--line); color: var(--ink-2); }
.oktxt { color: var(--green); font-weight: var(--w-bold); }
.errtxt { color: var(--red-ink); font-size: 16px; font-weight: var(--w-mid); margin: 0; }
.warntxt { color: #7a5a00; font-size: 16px; font-weight: var(--w-mid); }

/* Polja */
.grp { font-size: 13.5px; font-weight: var(--w-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 26px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 20px; margin-bottom: 26px; }
.w2 { grid-column: span 2; }
.w3 { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld > label, .fld > legend { font-size: 16px; font-weight: var(--w-bold); color: var(--ink-2); padding: 0; }
.fld > legend { margin-bottom: 6px; }
.fld > label i { font-style: normal; font-weight: var(--w-text); color: var(--muted); }
.fld .help { color: var(--muted); font-size: 16px; }
.inp { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); min-width: 0; }
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 9 6' fill='none'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.inp:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.inp.err, .chipbox.err, .drop.err { border-color: var(--red-ink); box-shadow: 0 0 0 3px #f6d9d6; }
.inp::placeholder { color: #8b8b86; }
.inp.sm { height: 36px; padding: 0 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Izbor jezika (ciljni jezici) */
.chipbox { min-height: 44px; padding: 5px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { min-height: 28px; padding: 0 4px 0 9px; border-radius: 6px; background: #ecece8; display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: var(--w-mid); }
.chip button { font: inherit; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 18px; line-height: 1; }
.chip button:hover { background: #dcdcd7; color: var(--ink); }
.chipadd { border: 0; background: transparent; font: inherit; color: var(--muted); font-size: 17px; height: 28px; padding: 0 4px; max-width: 190px; cursor: pointer; }
.chipadd:focus { outline: 2px solid var(--ink); border-radius: 4px; }

/* Usluge i varijante */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sopt { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.sopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sopt .dot, .pill .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #9a9a94; flex: none; margin-top: 5px; }
.sopt .txt b { display: block; font-size: 18px; }
.sopt .txt span { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
.sopt .txt .why { color: #7a5a00; }
.sopt:has(input:checked), .pill:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sopt:has(input:checked) .dot, .pill:has(input:checked) .dot { border: 5px solid var(--ink); }
.sopt:has(input:focus-visible), .pill:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sopt.dis { background: #f3f3f0; border-color: var(--line); cursor: default; }
.sopt.dis .txt b, .sopt.dis .txt span { color: #a5a59f; }
.sopt.dis .txt .why { color: #7a5a00; }
.sopt.dis .dot { border-color: #d2d2cd; }
.svc.err .sopt:not(.dis) { border-color: var(--red-ink); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 6px 14px 6px 11px; border: 1px solid var(--line-strong); border-radius: 8px; display: inline-flex; align-items: center; gap: 9px; background: #fff; cursor: pointer; position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill .dot { margin-top: 0; }
.pill b { font-weight: var(--w-bold); }
.pill span.pr { color: var(--muted); }
.pills.err .pill { border-color: var(--red-ink); }

/* Sta sledi (koraci) */
.side h2 { margin-bottom: 16px; }
.next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.next li { display: flex; gap: 12px; }
.next em { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #ecece8; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.next b { display: block; font-size: 18px; }
.next span { display: block; margin-top: 2px; color: var(--muted); font-size: 17px; }

/* Redovi podataka */
.rows .rw { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; padding: 11px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rows .rw span { color: var(--muted); }
.rows .rw.hl { background: #fff6da; border-radius: 8px; border-bottom-color: transparent; font-weight: var(--w-bold); }
.rows .rw.hl span { color: #574000; font-weight: var(--w-text); }
.kv { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); gap: 9px 14px; font-size: 17px; align-content: start; }
.kv > span { color: var(--muted); }
.kv > div { min-width: 0; overflow-wrap: anywhere; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }

/* Fajlovi */
.drop { border: 1.5px dashed #b9b9b3; border-radius: 10px; background: #fafaf8; padding: 18px 14px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; color: var(--ink-2); }
.drop.over { border-color: var(--ink); background: #f1f1ee; }
.file { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fafaf8; }
.file .nm { font-weight: var(--w-bold); overflow-wrap: anywhere; }
.file .meta { color: var(--muted); font-size: 16px; margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.file .grow { flex: 1; min-width: 0; }
.prog { height: 6px; border-radius: 3px; background: #e2e2de; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 0.2s linear; }
.dochead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.dg { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 16px 20px; margin-top: 16px; }
.dg .c23 { grid-column: 2 / span 2; }
.doc .svcfld, .doc .varfld { margin-top: 16px; }
.adddoc { width: 100%; min-height: 52px; border: 1.5px dashed #b9b9b3; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: var(--w-bold); margin-bottom: 20px; background: #fafaf8; cursor: pointer; color: var(--ink); }
.adddoc:hover { border-color: var(--ink); }
.send { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px 20px; margin-bottom: 18px; }
.copyrow { margin-top: 10px; }
/* oznake tipova fajlova: obican tekst, razdvojen tackom na sredini (docx · dotx) */
.ext { line-height: 1.6; }
.ext span + span::before { content: "\00a0· "; color: var(--muted); }
.extrow { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.extrow:last-child { border-bottom: 0; padding-bottom: 0; }
details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; display: inline-block; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }

/* Tabele */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { font-size: 13.5px; font-weight: var(--w-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t .nw { white-space: nowrap; }
table.t th.c-doc { width: 28%; }
table.t th.c-lang { width: 22%; }
table.t th.c-file { width: 215px; }
table.t a.rowlink { font-weight: var(--w-bold); text-decoration: none; }
table.t a.rowlink:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
.s { display: block; margin-top: 3px; color: var(--muted); font-size: 16px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 6px; background: #ecece8; font-size: 14px; font-weight: var(--w-bold); white-space: nowrap; }
.tag.ok { background: #e2f3e8; color: #14632b; }
.tag.wait { background: #fff1c7; color: #574000; }
.tag.no { background: #fbe1de; color: #8a1e17; }
.rowline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rowline.sp { justify-content: space-between; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: var(--w-mid); display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover { background: #ecece8; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a .n { font-size: 15px; color: var(--muted); font-weight: var(--w-reg); }
.tabs a.on .n { color: #d6d6d0; }
.tabsrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* ---- finansijski izvestaj ---- */
.card.fin + .card.fin { margin-top: 18px; }
table.fintab td, table.fintab th { font-variant-numeric: tabular-nums; }
table.fintab td.r { white-space: nowrap; }
table.fintab .nil { color: var(--muted); }
table.fintab .neg { color: #8a1e17; }
table.fintab td .s { white-space: normal; }
/* zbir: crta iznad reda, a sam zbir podvucen dvostrukom crtom, kao u knjigama */
table.fintab tr.sum td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: var(--w-bold); padding-top: 13px; padding-bottom: 16px; }
table.fintab tr.sum + tr.sum td { border-top: 1px solid var(--line); }
table.fintab tr.sum td b { display: inline-block; padding-bottom: 3px; border-bottom: 3px double var(--ink); }
table.fintab tr.sum td b:has(.nil) { border-bottom-color: transparent; }
table.fintab.matrix th, table.fintab.matrix td { padding-left: 6px; padding-right: 6px; }
table.fintab.matrix td { font-size: 17px; }
table.fintab.matrix th:first-child, table.fintab.matrix td:first-child { padding-left: 10px; }
table.fintab.matrix td:first-child { font-size: inherit; }
table.fintab.matrix td.tot { font-weight: var(--w-bold); }
table.fintab.matrix th:last-child, table.fintab.matrix td:last-child { padding-right: 10px; }
.empty { padding: 34px 20px 40px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 21px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Istorija zahteva */
.log { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 12px; font-size: 17px; }
.log span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log div { overflow-wrap: anywhere; }

/* Odluka: prihvati ili odbij */
.decide { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.decide details { flex: 0 0 auto; }
.decide details[open] { flex: 1 1 100%; }
.decide summary { list-style: none; }
.decide summary::-webkit-details-marker { display: none; }
.decide details[open] summary { margin-bottom: 12px; }
.decide .panel { border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px; background: #fafaf8; }
.decide .panel p { margin-bottom: 12px; }

/* Poruka u probnom sanducetu */
.mailbody { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); font-size: 18px; line-height: 1.45; margin: 0; }
.mailbody a { text-decoration: underline; text-underline-offset: 3px; }

/* Velika potvrda */
.hero { text-align: center; padding: 40px 22px 36px; }
.hero .ic { width: 54px; height: 54px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hero .ic.dark { background: var(--ink); }
.hero .lead { max-width: 660px; margin: 12px auto 0; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.hero .sub { margin-top: 8px; }
.hero .timer { margin-top: 18px; white-space: normal; }
.hero .actions { justify-content: center; margin-top: 22px; }
.foot { padding-top: 4px; padding-bottom: 28px; color: var(--muted); font-size: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
main.wrap { padding-bottom: 28px; min-height: 60vh; }

/* Podesavanja: radno vreme */
.week { display: grid; grid-template-columns: 140px 140px 140px; gap: 8px 12px; align-items: center; }
.week .inp { height: 38px; }
.setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }

@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
  .dg { grid-template-columns: 1fr 1fr; }
  .dg .c23 { grid-column: 1 / -1; }
  .send { grid-template-columns: 1fr; }
  .kv2, .setgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3, .svc { grid-template-columns: 1fr; }
  .w2 { grid-column: auto; }
  .dg { grid-template-columns: 1fr; }
  .rows .rw { grid-template-columns: 1fr; gap: 2px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv > div { margin-bottom: 8px; }
  .extrow { grid-template-columns: 1fr; }
  .top-right { margin-left: 0; }
  h1 { font-size: 28px; }
  .card.pad { padding: 16px; }
  .week { grid-template-columns: 1fr 1fr 1fr; }
  /* na telefonu duzi tekst u oznaci (na primer na nemackom, sa punim datumom) prelazi u drugi red umesto da siri stranu */
  .timer { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .prog i { transition: none; }
}

/* Ponuda: tabela stavki */
table.qt td { padding: 6px 10px; border-bottom: 0; }
table.qt tr.qdoc td { padding-top: 16px; border-top: 1px solid var(--line); }
table.qt tr.qdoc:first-of-type td, table.qt tr:nth-child(2) td { border-top: 0; }
table.qt tr.qline td:first-child { padding-left: 24px; }
table.qt tr.qgrp td { padding: 8px 10px 2px 24px; font-size: 16px; font-weight: var(--w-bold); color: var(--ink-2); }
table.qt tr.qtotal td { border-top: 1px solid var(--ink); padding-top: 14px; padding-bottom: 14px; font-size: 19px; vertical-align: baseline; }
table.qt tr.qtotal b { font-size: 24px; }
table.qt tr.qman td { padding-bottom: 6px; }
/* iznad zbira: iznos bez poreza i porez po stopama */
table.qt tr.qsub td { border-top: 0; padding-top: 4px; padding-bottom: 4px; color: var(--muted); }
table.qt tr.qsub td.num { color: var(--ink); }
table.qt tr.qsub + tr.qtotal td { border-top: 1px solid var(--ink); }
table.qt tr:not(.qsub) + tr.qsub td { padding-top: 14px; }
.qnote { padding: 0 10px; margin-top: 4px; }
.qnote:last-child { margin-bottom: 14px; }
.qpay { margin: 14px 10px 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.qpay dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 22px; margin: 8px 0 0; }
.qpay dt { color: var(--muted); font-size: 16px; padding-top: 2px; }
.qpay dd { margin: 0; overflow-wrap: anywhere; }
.qpay dd.full { grid-column: 1 / -1; }
.qpay + .qpay { border-top: 0; padding-top: 0; margin-top: 18px; }
.qpay.qnotes p { margin: 6px 0 0; overflow-wrap: anywhere; }
/* specifikacija poreza: uska tabela sa sitnijim slovima; kad ne staje u sirinu, pomera se u svom okviru */
.qpay.qtax .tablewrap { margin-top: 8px; }
table.taxt { font-size: 15px; }
table.taxt th, table.taxt td { padding: 6px 8px; }
table.taxt th { white-space: normal; font-size: 13px; }

/* Statistika */
.implist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.statadd { border: 1.5px dashed #b9b9b3; border-radius: 10px; background: #fafaf8; padding: 14px; margin-bottom: 16px; }
.statadd .g3 { margin-bottom: 0; align-items: end; }
.statadd.busy { opacity: 0.6; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: end; }
.inline-fields .fld { flex: 0 0 auto; }
.inline-fields .inp { width: 130px; }
.inline-fields .inp.wide { width: 340px; max-width: 100%; }
.pct { display: inline-flex; align-items: center; gap: 6px; }
.pct .inp { width: 90px; text-align: right; }
table.t td .inp.sm { max-width: 520px; }
.problems { margin: 0; padding-left: 20px; }
.problems li { margin: 2px 0; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.btnrow details[open] { flex: 1 1 100%; }
.btnrow summary { list-style: none; }
.btnrow summary::-webkit-details-marker { display: none; }
.btnrow details[open] summary { margin-bottom: 12px; }
.btnrow .panel { border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px; background: #fafaf8; }
.btnrow .panel p { margin-bottom: 12px; }
.svcprice { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 16px; align-items: center; max-width: 620px; }
.svcprice .inp { height: 38px; text-align: right; }
.statadd.over { border-color: var(--ink); background: #f1f1ee; }
.inline-fields select.inp { width: auto; min-width: 180px; }
.filebtn { height: 44px; cursor: pointer; }
.filebtn:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.manual { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px 12px; max-width: 640px; margin-top: 12px; }
.manual .inp { height: 40px; }
.xdoc { margin-bottom: 14px; overflow-wrap: anywhere; }
.svcblock { padding: 16px 0; border-top: 1px solid var(--line); }
.svcblock:first-of-type { border-top: 0; padding-top: 0; }
.svcprice label { font-size: 17px; color: var(--ink-2); }
.pct .inp { width: 120px; }
.card.pad > .hint + .tablewrap, .card.pad > p.hint { margin-bottom: 4px; }
.card-h .right.hint { font-size: 17px; }
@media (max-width: 640px) {
  .manual, .svcprice { grid-template-columns: 1fr; }
}
select.inp.sm { padding-right: 30px; background-position: right 10px center; text-overflow: ellipsis; }
table.t th.c-part { width: 36%; }

/* Uzan ekran: obicne tabele se klize vodoravno, a stavke ponude stoje jedna ispod druge */
@media (max-width: 640px) {
  .tablewrap table.t:not(.qt) { min-width: 600px; }
  table.qt, table.qt tbody, table.qt tr, table.qt td { display: block; }
  table.qt tr:first-child { display: none; }
  table.qt td { padding-left: 0; padding-right: 0; }
  table.qt tr.qline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; padding: 6px 0 6px 12px; }
  table.qt tr.qline td { padding: 0; }
  table.qt tr.qline td:first-child { grid-column: 1 / -1; padding-left: 0; }
  table.qt tr.qline td:nth-child(3)::before { content: "\00d7\00a0"; color: var(--muted); }
  table.qt tr.qline td:nth-child(4)::before { content: "=\00a0"; color: var(--muted); }
  table.qt tr.qgrp td { padding-left: 12px; }
  table.qt tr.qman, table.qt tr.qsub, table.qt tr.qtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  table.qt tr.qtotal { border-top: 1px solid var(--ink); margin-top: 8px; }
  table.qt tr.qtotal td { border-top: 0; }
  table.qt tr.qdoc.qman td { border-top: 0; }
  table.qt tr.qdoc.qman { border-top: 1px solid var(--line); }
  .qnote { padding: 0; }
  .qpay { margin-left: 0; margin-right: 0; }
  .qpay dl { grid-template-columns: 1fr; gap: 0; }
  .qpay dd { margin-bottom: 6px; }
}

/* Logo agencije u podesavanjima */
.logobox { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.logobox.busy { opacity: 0.6; }
.logobox.over .logoprev { border-color: var(--ink); background: #f1f1ee; }
.logoprev { flex: 0 0 300px; max-width: 100%; height: 104px; border: 1.5px dashed #b9b9b3; border-radius: 10px; background: #fafaf8; display: flex; align-items: center; justify-content: center; padding: 14px; color: var(--muted); }
.logoprev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logoside { flex: 1 1 320px; min-width: 0; }
.logoside b { display: block; font-size: 16px; color: var(--ink-2); }
.logoside .help { color: var(--muted); font-size: 16px; margin: 4px 0 10px; }
.logoside .actions { margin-top: 0; }
.logoside .errtxt { margin-top: 8px; }

/* Podesavanja: izbor jezika portala */
.checks { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; min-height: 44px; }
.checks.err { outline: 2px solid var(--red-ink); outline-offset: 6px; border-radius: 6px; }

/* Ponuda: izbor jezika dokumenta */
.doclang { max-width: 640px; }
.doclang select.inp { width: auto; min-width: 210px; align-self: flex-start; }

/* Cenovnik: valute i cene po jezickom paru */
.svcprice { grid-template-columns: minmax(170px, 300px) minmax(0, 1fr); max-width: none; }
.curs { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.curs .errtxt { flex-basis: 100%; }
.pricemode { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 12px 0 14px; }
.check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }
.svcblock[data-mode="all"] [data-when="pairs"], .svcblock[data-mode="pairs"] [data-when="all"] { display: none; }
/* kod cene po paru polja za ostale parove stoje tacno iznad polja u tabeli parova */
.svcblock[data-mode="pairs"] .svcprice { grid-template-columns: calc(36% - 6px) minmax(0, 1fr); }
.svcblock[data-mode="pairs"] .svcprice > label { padding-left: 10px; }
.svcblock[data-mode="pairs"] .svcprice .pct .inp { width: 92px; }
.pairs { margin-top: 14px; }
table.pairt td { vertical-align: middle; }
table.pairt th:first-child, table.pairt td:first-child { width: 36%; }
table.pairt tr.newpair td { background: #fafaf8; }
table.pairt .pct .inp { width: 92px; height: 38px; }
.pairsel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
table.pairt .pairsel select.inp.sm { width: 168px; min-width: 0; max-width: 100%; }
.vrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.vrow + .vrow { margin-top: 8px; }
.vrow > span { flex: 0 0 auto; min-width: 150px; white-space: nowrap; color: var(--ink-2); }
.vrow > .curs { flex: 0 1 auto; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.curother { max-width: 460px; }
#cur-main { width: auto; min-width: 260px; max-width: 100%; align-self: flex-start; }
.pairprice { margin: 12px 0 0; font-weight: var(--w-mid); }

/* Ponuda: jezik i valuta dokumenta stoje jedno pored drugog */
.doclang { display: flex; flex-wrap: wrap; gap: 14px 36px; max-width: none; }
.doclang .fld { flex: 1 1 280px; max-width: 520px; }

/* Prevodioci */
.vendorform { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 14px 20px; }
.vendorform .w2 { grid-column: 1 / -1; max-width: 660px; }
.stack { display: grid; gap: 14px; }
.pricegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.pricegrid .inp { width: 100%; }
@media (max-width: 720px) {
  .vendorform, .pricegrid { grid-template-columns: 1fr; }
  .svcprice, .svcblock[data-mode="pairs"] .svcprice { grid-template-columns: 1fr; }
  .svcblock[data-mode="pairs"] .svcprice > label { padding-left: 0; }
  .inline-fields select.inp, #cur-main { min-width: 0; max-width: 100%; }
}
/* kolone se na uskom ekranu ne sire zbog tabele koja se klizi u svom okviru */
.cols > * { min-width: 0; }
@media (max-width: 980px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* Zaglavlje centralnog sistema: "centralni sistem" stoji ispod naziva ili logoa agencije, da ceo meni stane u jedan red */
.central .brand { flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 0; font-size: 30px; }
.central .brand .bname { display: inline-flex; align-items: baseline; }
.central .brand small { margin-left: 0; font-size: 13.5px; line-height: 1; letter-spacing: 0.01em; }
.central .brand img.logo { height: 30px; max-width: 180px; }
.central .brand:has(img.logo) { align-items: flex-start; }
.central .top-in { gap: 6px 14px; }
.central .nav a, .central .top-right a { padding: 8px; font-size: 17.5px; }

/* Izbor jezika u zaglavlju: padajuci meni */
.langmenu { position: relative; margin: 0 4px; }
.langmenu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 14.5px; font-weight: var(--w-bold); letter-spacing: 0.02em; line-height: 1.2; user-select: none; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.langmenu > summary:hover, .langmenu[open] > summary { background: #f1f1ee; }
.langmenu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.langlist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; min-width: 150px; padding: 5px; background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); }
.top-right .langlist a, .langlist a { padding: 7px 10px; border-radius: 6px; font-size: 17px; text-decoration: none; white-space: nowrap; }
.langlist a:hover { background: #f1f1ee; }
.langlist a.on { font-weight: var(--w-bold); background: transparent; color: inherit; }
@media (max-width: 640px) { .langlist { left: 0; right: auto; } }

/* Cenovnik: naziv usluge i link za izmenu */
.svchead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.svchead h3 { margin-bottom: 4px; }
.svchead a.fine { text-underline-offset: 3px; }
.formcard { max-width: 760px; }
/* ciscenje probnih podataka */
.cleancols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.kv.cleanlist { grid-template-columns: minmax(200px, max-content) minmax(0, 1fr); }
.kv.cleanlist > div { font-variant-numeric: tabular-nums; }
.fld.cleanpass { max-width: 380px; }
.errtxt.cleanerr { display: block; }
.cleansure.sep { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.banner.cleandone .s { color: inherit; }
.cleanlink { margin: 22px 0 0; }
/* rucna faktura: sve na strani u jednoj sirini, redovi stavki, glava dokumenta */
.mwrap { max-width: 1120px; }
.grp.gap { margin-top: 26px; }
.mailrow { align-items: flex-start; }
.mailrow .check { padding-top: 9px; }
.inline-fields.mpay input[type="date"].inp { width: 175px; }
.mhead, .mrow { display: grid; grid-template-columns: minmax(0, 1fr) 130px 160px 150px; gap: 6px 12px; align-items: start; }
.mrows.tax .mhead, .mrows.tax .mrow { grid-template-columns: minmax(0, 1fr) 130px 160px 150px 110px; }
.mhead { font-size: 16px; font-weight: var(--w-bold); color: var(--ink-2); margin-bottom: 6px; }
.mrow .inp.r { text-align: right; }
.mrow .errtxt { grid-column: 1 / -1; }
.fld > .static { padding: 9px 0; }
.g2.mdoc { margin-bottom: 22px; align-items: start; }
.mdoc .mname { display: block; font-size: 21px; margin: 2px 0 4px; overflow-wrap: anywhere; }
.mdoc .mline { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
table.qt tr.qman td.num { vertical-align: top; }

/* Klijent: osobe */
.person + .person { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rowline.mt-s { margin-top: 10px; }

/* uvoz klijenata iz tabele */
.headbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
ul.plain { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 6px; }
#imp-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#imp-box.over { border-color: var(--ink); background: #f1f1ee; }
table.t tr.dim td { color: var(--muted); }
table.t tr.dim .warntxt { color: #7a5a00; }

/* zahtev u ime klijenta */
.g2.nomb { margin-bottom: 0; }
.fld > .lbl { font-size: 16px; font-weight: var(--w-bold); color: var(--ink-2); }

/* podesavanja: spiskovi sa redovima (instrukcije za placanje, napomene na ponudi) */
.subgrp { font-weight: var(--w-bold); margin: 22px 0 6px; }
.subgrp i { font-style: normal; font-weight: var(--w-text); color: var(--muted); }
.rows { display: grid; gap: 10px; }
.irow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 12px; }
.nrow { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 6px 12px; align-items: start; }
/* napomena ima dva izbora (jezik ponuda i klijenti za koje vazi): stoje jedan ispod drugog, desno od teksta */
.nrow textarea { grid-row: span 2; }
.irow .errtxt, .nrow .errtxt { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .irow, .nrow { grid-template-columns: 1fr; }
}

/* prevodioci i zarada uz ponudu (vide samo zaposleni) */
table.plan tr.pdoc td { border-bottom: 0; padding-bottom: 2px; }
table.plan tr.pdoc + tr td { padding-top: 10px; }
table.plan td:first-child { width: 34%; }
.plansum { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--ink); }
.plansum > div { display: grid; gap: 2px; align-content: start; }
.plansum span { color: var(--muted); font-size: 16px; }
.plansum b { font-size: 24px; font-variant-numeric: tabular-nums; }
.plansum i { font-style: normal; color: var(--muted); font-size: 16px; }
.plansum .neg b { color: #8a1e17; }
@media (max-width: 640px) {
  /* na uskom ekranu svaki posao je jedan blok: posao, predlog, cena i trosak jedno ispod drugog */
  .tablewrap table.t.plan { min-width: 0; }
  table.plan, table.plan tbody, table.plan tr, table.plan td { display: block; }
  table.plan tr.phead { display: none; }
  table.plan tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.plan tr.pdoc { padding-bottom: 0; border-bottom: 0; }
  table.plan tr:last-child { border-bottom: 0; }
  table.plan td, table.plan tr.pdoc + tr td { padding: 3px 0; border-bottom: 0; }
  table.plan td:first-child { width: auto; }
  table.plan td.r { text-align: left; }
  table.plan td:empty, table.plan td.pnone { display: none; }
}

/* okvirna cena u obrascu "Novi zahtev" i na strani zahteva */
.doc .cnt { margin: 8px 2px 0; color: var(--muted); font-size: 16px; }
.doc .estdoc { margin: 12px 0 0; font-weight: var(--w-mid); }
.estbox { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fafaf8; }
.estbox b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.estbox .fine { margin: 4px 0 0; }

/* uplata: zbirovi, spisak uplata i podaci sa profakture */
.plansum.paysum { margin: 0 0 18px; padding-top: 0; border-top: 0; }
.paydoc .qpay { margin-left: 0; margin-right: 0; }
.paydoc .qpay:first-child { margin-top: 0; }
.inline-fields.payrow { align-items: start; }
/* sifra projekta na strani zahteva: jedno polje i dugme, ispod trake sa koracima */
.inline-fields.payrow input[type="date"].inp { width: 175px; }
table.pays details.more { margin-top: 0; }
table.pays details.more form { margin-top: 8px; text-align: left; }
table.pays details.more .fine { margin-bottom: 8px; }
#uplata .tablewrap { margin-bottom: 4px; }

/* dodela posla prevodiocima: izbor prevodioca i roka u tabeli, radnje uz dodeljen posao */
table.jobs select.inp { width: 100%; min-width: 220px; max-width: 380px; }
table.jobs input[type="date"].inp { width: 170px; }
table.jobs tr.jerr td { background: #fff8f7; }
table.jobs td .errtxt { display: block; margin-top: 4px; }
.jobact { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.jobact details.more { margin-top: 0; }
.jobact details.more[open] { flex: 1 1 100%; }
.jobedit { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.jobedit .inp { width: 170px; }
.jobedit .s { margin: 0; }
#zarada .btnrow + .fine { margin-bottom: 18px; }
@media (max-width: 760px) {
  table.jobs select.inp { min-width: 0; max-width: none; }
}

/* isporuka prevoda: isporuke sa fajlovima, priprema nove isporuke i fajlovi koji se salju */
.dlv { margin: 0 0 18px; }
.dlvh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.dlvh .s { flex: 1 1 100%; margin: 0; }
table.dlvt td form { display: inline; }
.dlv details.more form { margin-top: 8px; }
.dlv details.more .fine { margin-bottom: 8px; }
.dlvnew > h3 { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dlvnew > .fine { margin: 0 0 12px; }
.dlvnew .tablewrap { margin-bottom: 12px; }
.dlvup { display: grid; gap: 8px; margin-bottom: 10px; }
.dlvup:empty { display: none; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#isporuka .banner { margin-bottom: 16px; }
.dlv .dlvnote { margin: 0 0 12px; }
.dlv:last-child { margin-bottom: 0; }
.dlvh .tag { margin-left: 2px; }
@media (max-width: 760px) {
  /* na uskom ekranu svaki fajl je jedan blok: ime, pa velicina i stanje ispod, da nista ne ostane van ekrana */
  .tablewrap table.t.dlvt { min-width: 0; }
  table.dlvt, table.dlvt tbody, table.dlvt tr, table.dlvt td { display: block; }
  table.dlvt tr:first-child { display: none; }
  table.dlvt tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.dlvt tr:last-child { border-bottom: 0; }
  table.dlvt td, table.dlvt td.r { padding: 2px 0; border-bottom: 0; text-align: left; }
  table.dlvt td:empty { display: none; }
  table.dlvt td .btn { margin-top: 6px; }
}

/* ---- Zahtev: traka koraka je i navigacija; ispod nje je otvoren jedan korak, a sa strane kratak pregled ---- */
.stepnav { padding: 14px; }
.st5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.st5 a { display: block; padding: 10px 12px 12px; border-radius: 10px; text-decoration: none; min-width: 0; }
.st5 a:hover { background: #f7f7f5; }
.st5 i { display: block; height: 4px; border-radius: 2px; background: var(--seg-off); margin-bottom: 11px; }
.st5 .on i { background: var(--ink); }
.st5 .stop i { background: var(--red); }
.st5 b { font-size: 19px; }
.st5 .todo b { color: #8b8b86; }
.st5 span { display: block; font-size: 16px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.st5 em { font-style: normal; display: inline-block; margin-left: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; border-radius: 9px; padding: 1px 7px; vertical-align: 2px; }
.st5 a.open, .st5 a.open:hover { background: #f1f1ee; box-shadow: inset 0 0 0 1.5px var(--ink); }
.reqcols { grid-template-columns: minmax(0, 1fr) 330px; }
.stepbody { min-width: 0; }
.stepbody table.t th.c-doc { width: 26%; }
.stepbody table.t th.c-lang { width: 17%; }
.stepbody table.t th.c-file { width: 170px; }
.brief .kv { grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 9px 12px; }
.brief .kv .s { margin-top: 1px; }
.brief details.more { margin-top: 2px; }
.projform { display: grid; gap: 8px; }
.projform .btn { justify-self: start; }
.projform .fine { margin: 0; }
.pdfs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; }
.pdfs a { overflow-wrap: anywhere; }
.pdfs span { color: var(--muted); font-size: 15px; font-weight: var(--w-bold); }
/* sta je sledece: crno kad je red na agenciji, sivo kad se ceka na klijenta ili prevodioca */
a.timer { text-decoration: none; }
.timer.you { background: var(--ink); border-color: var(--ink); color: #fff; }
.timer.you:hover { background: #2b2b29; }
.timer.you.late { background: var(--red-ink); border-color: var(--red-ink); }
.timer.wait { background: #f7f7f5; border-color: var(--line-strong); color: var(--ink-2); }
.timer.wait:hover { border-color: var(--ink-2); }
@media (max-width: 980px) {
  .reqcols { grid-template-columns: minmax(0, 1fr); }
  .st5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief .kv { grid-template-columns: 1fr; }
}

/* kartica koja se skuplja u jedan red (statistika, kad je potpuna) */
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: attr(data-t-show); color: var(--muted); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
details.fold[open] > summary::after { content: attr(data-t-hide); }
details.fold:not([open]) > summary { margin-bottom: 0; }

/* ---- Okvir centralnog sistema: logo gore levo, jezik / profil / odjava gore desno, meni levo, sadrzaj desno.
   Izgled prati ostatak programa: bela traka i bele kartice na toplo sivoj podlozi, izabrana stavka je crna.
   Pravljen je za racunar: ispod 1200 tacaka strana se ne prelama, nego se pomera vodoravno. ---- */
body.central { min-width: 1200px; }
.shell-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 14px 40px 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.central .shell-top .brand { display: block; padding: 0 2px 5px; font-size: 46px; font-weight: 580; letter-spacing: -0.6px; line-height: 1; white-space: nowrap; }
.central .shell-top .brand img.logo { display: block; width: auto; height: auto; max-width: 280px; max-height: 56px; }
.central .shell-top .brand:has(img.logo) { padding: 0; }
.topbtns { display: flex; align-items: center; gap: 6px; }
.topbtns > form { display: flex; margin: 0; }
.topbtns > a, .topbtns > form > button { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 18px; font-weight: var(--w-mid); color: var(--ink); text-decoration: none; cursor: pointer; }
.topbtns > a:hover, .topbtns > form > button:hover { background: #f1f1ee; }
.topbtns > a.on { background: var(--ink); color: #fff; }
.topbtns .langmenu { margin: 0 6px 0 0; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 36px; align-items: start; padding: 30px 40px 40px 28px; }
.shell.solo { display: block; padding-top: 12px; }
.shell.solo .shell-main { margin: 0 auto; }
.side { position: sticky; top: 24px; display: grid; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.side a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; font-size: 19px; font-weight: var(--w-mid); text-decoration: none; }
.side a:hover { background: #f1f1ee; }
.side a.on { background: var(--ink); color: #fff; }
.shell-main { min-width: 0; max-width: 1600px; }
.shell-main > main { min-height: 55vh; }
.shell-main > main > .head:first-child { padding-top: 0; }
.shell-main > main > .back:first-child { margin-top: 0; }
.shell-main .foot { padding: 28px 0 0; }
.st5.st7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
table.t.doclist td:last-child { width: 1%; white-space: nowrap; }

/* Portal za prevodioce: prijava za saradnju */
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; }
.checkgrid .check { display: flex; align-items: flex-start; }
.checkgrid .check input { flex: 0 0 auto; margin-top: 4px; }
.checkgrid.err, .radios.err { outline: 3px solid #f6d9d6; outline-offset: 6px; border-radius: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.check.consent { display: flex; align-items: flex-start; gap: 10px; }
.check.consent input { flex: 0 0 auto; margin-top: 4px; }
.check.consent.err span { color: var(--red-ink); }
.steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.checklist .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: 0 0 auto; }
.checklist .done { color: var(--ink-2); }
.sendcard form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-fields.pairform .inp { width: 150px; }
.inline-fields.pairform select.inp { width: auto; min-width: 190px; max-width: 260px; }
.inline-fields.pairform .errtxt { max-width: 260px; }
.docgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px 20px; }
.docgroup { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; min-width: 0; }
.docgroup.over { border-color: var(--ink); background: #f1f1ee; }
.docnote { margin: 0 0 14px; }
.docgroup-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.docgroup-h h3 { margin: 0; }
.doclist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.doclist li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.doclist li form { margin-left: auto; }
.doclist a { overflow-wrap: anywhere; }
.filebtn { cursor: pointer; }
.upmsg { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.upmsg:empty { display: none; }
.kv.wide { grid-template-columns: minmax(190px, max-content) minmax(0, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
