/* CordedSoul 2.0 — raspored stranica. Boje i oblici dolaze iz tokens.css i cs.css (dizajn sistem). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.45; }
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
.muted { color: var(--ink-muted); }
.small { font-size: 12px; }
.cs-sr-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* aurora mrlje: vidljive samo u Aurora temi (u ostalim su tokeni prozirni) */
.aurora { display: none; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; contain: strict; }
/* mrlje (blur 120px preko cijelog ekrana) su skupe za telefon: crtaju se samo u Aurora temi, a na telefonu manje i bez blura preko 60px */
[data-theme^="aurora"] .aurora { display: block; }
@media (max-width: 760px) { .aurora i { filter: blur(60px); transform: scale(.6); } }
@media (prefers-reduced-motion: reduce), (prefers-reduced-transparency: reduce) { .aurora { display: none !important; } }
.aurora i { position: absolute; border-radius: 50%; filter: blur(120px); }
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -220px; background: var(--blob-a); }
.aurora i:nth-child(2) { width: 560px; height: 560px; right: -120px; top: 120px; background: var(--blob-b); }
.aurora i:nth-child(3) { width: 700px; height: 520px; left: 35%; bottom: -260px; background: var(--blob-c); }

/* ---------- aplikacija: meni + sadržaj ---------- */
.shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; min-height: 100vh; }
.shell-side { flex: 1 1 248px; width: auto; max-width: none; gap: 6px; padding: 20px 12px; }
.shell-main { flex: 999 1 560px; min-width: 0; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) {
  .shell-side { flex: 0 0 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .shell-main { padding: 28px 32px 48px; }
  .main-foot { display: none; }
}
.brand { display: block; padding: 4px 10px 12px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-client { max-height: 44px; max-width: 180px; width: auto; display: block; }
.brand-logo-small { height: 20px; width: auto; display: block; }
/* logo prati temu i kad se tema promijeni bez ponovnog učitavanja */
[data-theme$="-dark"] .logo-on-light, :not([data-theme$="-dark"]) > body .logo-on-dark { display: none; }
.company-chip { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.company-name { font-weight: 600; color: var(--ink-soft); }
.company-switch summary { cursor: pointer; color: var(--accent-ink); font-size: 12px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
a.cs-nav { text-decoration: none; }
.side-foot { margin-top: auto; padding: 20px 10px 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-muted); }

.topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.topbar-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.topbar h1 { margin: 0; font-size: var(--cs-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow { font-size: 13px; color: var(--ink-muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-select { min-height: 44px; width: auto; padding-right: 12px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-pop { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 240px; }
[dir="rtl"] .user-pop { right: auto; left: 0; }

.flash { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; border-radius: var(--cs-r-sm); background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 14px; }
.trial-bar { margin: 0; padding: 10px 16px; border-radius: var(--cs-r-sm); background: var(--info-soft); color: var(--info); font-size: 14px; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile-link { text-decoration: none; color: inherit; }
.cs-stat-value { overflow-wrap: anywhere; }
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.col-wide { flex: 3 1 520px; min-width: 0; }
.col-narrow { flex: 2 1 300px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.form-narrow { max-width: 640px; }
.save-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.cs-input { width: 100%; }
.cs-input-sm { min-height: 36px; padding: 0 10px; width: auto; }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check > span { display: flex; flex-direction: column; gap: 2px; }

.checklist, .rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li, .rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist .check-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--border-strong); color: var(--success); }
.checklist li.is-done .check-dot { border-color: var(--success-dot); background: var(--success-soft); }
.check-txt, .row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.check-txt .muted, .row-txt .muted { font-size: 12px; }
.unit-row { width: 100%; }
.unit-row summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.unit-row summary::-webkit-details-marker { display: none; }
.unit-edit { padding: 12px 0 4px 48px; }
.price-change { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; padding: 12px; border-radius: var(--cs-r-sm); background: var(--surface-sunken); }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-muted); padding: 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
[dir="rtl"] table.data th { text-align: right; }
table.data td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.mono-list { margin: 0; padding-left: 18px; font-size: 13px; }
pre.out { white-space: pre-wrap; font-size: 12px; background: var(--surface-sunken); padding: 12px; border-radius: var(--cs-r-sm); max-height: 260px; overflow: auto; }

/* ---------- izgled ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-opt { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border-strong); border-radius: var(--cs-r-sm); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; }
.theme-opt:has(input:checked) { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent-ink); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-mini { height: 64px; border-radius: 8px; display: grid; grid-template-columns: 28% 1fr; overflow: hidden; }
.theme-mini > span:last-child { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.theme-mini i { height: 6px; width: 60%; border-radius: 3px; }
.theme-mini b { height: 18px; border-radius: 4px; }
.cs-swatch svg { display: none; }
.cs-swatch[aria-checked="true"] svg { display: block; }
.color-well { position: relative; border-radius: var(--cs-r-sm); overflow: hidden; }
.color-well input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cs-drop { position: relative; }
.cs-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.logo-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-now img { max-height: 56px; max-width: 220px; padding: 8px; border-radius: var(--cs-r-sm); background: var(--surface-sunken); }

/* ---------- prijava, registracija ---------- */
.guest { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.guest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; max-width: 1360px; width: 100%; margin: 0 auto; }
.guest-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 24px 0 40px; }
.guest-wide .guest-main { display: block; max-width: 1360px; width: 100%; margin: 0 auto; }
.guest-foot { text-align: center; font-size: 12px; color: var(--ink-muted); padding: 16px 0 24px; }
.auth-card { width: 100%; max-width: 440px; gap: 16px; padding: 28px; }
.auth-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card p { margin: 0; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin: 0; }
.done-mark { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--success-soft); color: var(--success); }

.reg { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.reg-progress { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-sunken); overflow: hidden; }
.reg-progress i { display: block; height: 4px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.reg-steps ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.reg-step { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--cs-r-sm); background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.reg-step[disabled] { color: var(--ink-muted); cursor: default; }
.reg-step[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.reg-dot { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-sunken); font-size: 12px; font-weight: 700; }
.reg-step[aria-current] .reg-dot { background: var(--accent); color: var(--on-accent); }
.reg-step.is-done .reg-dot { background: var(--success-soft); color: var(--success); }
.reg-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.reg-panel { display: flex; flex-direction: column; gap: 14px; }
.reg-panel legend { display: flex; flex-direction: column; gap: 6px; padding: 0; margin-bottom: 4px; }
.reg-panel legend .eyebrow { font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.reg-h { font-size: var(--cs-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.reg-panel > p { margin: 0; }
.reg:not(.is-wizard) .reg-nav [data-next], .reg:not(.is-wizard) .reg-nav [data-back] { display: none; }
.reg-nav { display: flex; justify-content: space-between; gap: 10px; }
.reg-aside { min-width: 0; }
.reg-aside .cs-card { gap: 12px; }
.reg-error-top { margin: 0; }
@media (min-width: 1100px) {
  .reg { grid-template-columns: 240px minmax(0, 1fr) 320px; align-items: start; }
  .reg-steps ol { flex-direction: column; overflow: visible; }
  .reg-aside { position: sticky; top: 16px; }
}
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.type-card { display: flex; flex-direction: column; gap: 6px; min-height: 108px; padding: 16px; border: 1px solid var(--border); border-radius: var(--cs-r-lg); background: var(--surface); cursor: pointer; font-size: 14px; }
.type-card strong { font-size: 15px; }
.type-card .type-ic { color: var(--accent-ink); }
.type-card:has(input:checked) { border: 2px solid var(--accent-ink); background: var(--accent-soft); }
.type-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--cs-r-sm); background: var(--surface); font-size: 14px; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.radio-row:has(input:checked) { border: 2px solid var(--accent-ink); background: var(--accent-soft); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: calc(var(--cs-r-sm) - 2px); color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-opt input:checked + span { background: var(--segment-active); color: var(--segment-active-ink); box-shadow: var(--shadow-segment); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.cs-seg button[aria-pressed="true"] { background: var(--segment-active); color: var(--segment-active-ink); box-shadow: var(--shadow-segment); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .cs-input { width: 90px; text-align: center; font-size: 18px; font-weight: 700; }
.stepper .cs-btn { min-width: 44px; padding: 0; }
.mod-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--cs-r-sm); background: var(--surface); font-size: 14px; cursor: pointer; }
.mod-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.mod-row.is-locked { cursor: default; }
.mod-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mod-txt .muted { font-size: 12px; }
dl.sum { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
dl.sum > div { display: flex; justify-content: space-between; gap: 12px; }
dl.sum dt { color: var(--ink-muted); }
dl.sum dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
dl.sum > div.sum-col { flex-direction: column; gap: 2px; }
dl.sum > div.sum-col dd { text-align: start; }
.sum-total { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- greške ---------- */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--bg); color: var(--ink); font-family: var(--cs-font); }
.error-page h1 { margin: 0; font-size: 28px; }
.error-page p { margin: 0; max-width: 460px; }
.error-code { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) { .reg-progress i { transition: none; } }
/* ---------- tim ---------- */
.cs-card-head { flex-wrap: wrap; row-gap: 8px; }
a.cs-btn { text-decoration: none; }
.cs-card-title { white-space: nowrap; }
.tiles-compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.auth-card > .cs-pill { align-self: flex-start; }
@media (min-width: 900px) { .only-m { display: none; } }
.seat-of { font-size: 0.55em; color: var(--ink-muted); font-weight: 500; }
.seat-bar { height: 6px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; margin: 6px 0 4px; }
.seat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.seat-bar i.over { background: var(--warning-dot); }
.cs-stat-sub { font-size: 12px; color: var(--ink-muted); }
.tile-link.is-on { outline: 2px solid var(--accent); outline-offset: -2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.filters .grow { flex: 1 1 200px; min-width: 0; }
.filters .cs-field { margin: 0; }
.team-av { width: 40px; height: 40px; font-size: 14px; flex: 0 0 auto; }
.team-rows .row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.team-rows .row-txt > * { overflow-wrap: anywhere; }
.team-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.team-rows .is-disabled .row-txt, .team-rows .is-disabled .team-av { opacity: 0.55; }
.team-edit { align-items: end; margin-top: 12px; }
dl.sum dd.muted { font-weight: 400; }
@media (max-width: 599.98px) { .cs-sr-md { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* ---------- klijenti, katalog, uvoz ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--ink-muted); }
.empty p { margin: 0; }
.client-rows li { padding: 0; }
.client-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; color: inherit; text-decoration: none; border-radius: var(--cs-r-sm); }
.client-link:hover { background: var(--surface-sunken); }
.client-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; margin-inline-start: auto; }
.av-person { border-radius: 50%; }
.team-av:not(.av-person) { border-radius: 12px; }
.item-ic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.item-ic.is-service { background: var(--info-soft); color: var(--info); }
.item-rows .row-txt, .client-rows .row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.item-price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; gap: 2px; margin-inline-start: auto; }
.vat-rows li { flex-wrap: wrap; }
.vat-rows .row-txt { display: flex; flex-direction: column; flex: 1 1 auto; }
.vat-rows .is-disabled .row-txt { opacity: 0.55; }
.rate-add { align-items: end; }
.contact-row { border: 1px solid var(--line); border-radius: var(--cs-r-sm); padding: 12px; margin: 0; min-width: 0; }
.contact-tools { justify-content: space-between; margin-top: 8px; }
.warn-bar { background: var(--warning-soft); color: var(--warning); }
.client-form fieldset:not(.cs-card):not(.contact-row) { border: 0; padding: 0; margin: 0; min-width: 0; }
.client-form fieldset.cs-card { margin: 0; min-width: 0; }
table.data td:last-child .cs-pill { white-space: nowrap; }
.client-form .contact-row { border: 1px solid var(--line); padding: 12px; }
.import-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-muted); }
.import-steps li { display: flex; align-items: center; gap: 8px; }
.import-steps .is-on { color: var(--ink); font-weight: 600; }
.import-steps .is-on .reg-dot { background: var(--accent); color: var(--on-accent); }
.import-steps .is-done .reg-dot { background: var(--success-soft); color: var(--success); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; border: 2px dashed var(--border-strong); border-radius: var(--cs-r); text-align: center; cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-name { font-weight: 600; color: var(--accent-ink); }
.hint-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.table-wrap { overflow-x: auto; }
@media (max-width: 599.98px) {
  .item-rows summary, .client-link { flex-wrap: wrap; }
  .item-price, .client-meta { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: baseline; padding-inline-start: 48px; margin: 0; }
  .client-meta { justify-content: flex-start; padding-inline-start: 52px; }
}

/* ---------- kalendar ---------- */
.dp { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; padding: 12px; gap: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
[dir="rtl"] .dp { left: auto; right: 0; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-transform: capitalize; }
.dp-head .cs-icon-btn { width: 36px; height: 36px; font-size: 18px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-wd { font-size: 11px; color: var(--ink-muted); padding: 4px 0; text-transform: capitalize; }
.dp-day { height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--surface-sunken); }
.dp-day.is-we { color: var(--ink-muted); }
.dp-day.is-today { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.dp-day.is-sel { background: var(--accent); color: var(--on-accent); }
.dp-foot { display: flex; justify-content: flex-end; }
.date-field { width: 140px; }

/* ---------- dokumenti ---------- */
.menu-pop { position: relative; }
.menu-pop summary { list-style: none; }
.menu-pop summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 200px; padding: 6px; gap: 2px; }
[dir="rtl"] .menu-list { right: auto; left: 0; }
.kif-form .cs-input-sm { min-height: 36px; width: auto; }
.doc-ic-proforma { background: var(--neutral-soft); color: var(--neutral); }
.doc-ic-advance { background: var(--warning-soft); color: var(--warning); }
.doc-ic-credit { background: var(--danger-soft); color: var(--danger); }
.doc-lines { display: flex; flex-direction: column; gap: 10px; }
.doc-line { position: relative; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr) auto 40px; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--cs-r-sm); }
.doc-line .cs-field { margin: 0; min-width: 0; }
.doc-line-head { display: none; }
.dl-name { grid-column: 1 / 6; grid-row: 1; }
.dl-net { grid-column: 6; grid-row: 1; align-self: start; margin-top: 34px; text-align: end; font-weight: 700; white-space: nowrap; }
.dl-x { grid-column: 7; grid-row: 1; align-self: start; margin-top: 26px; }
.doc-line > .cs-field:nth-of-type(6) { grid-column: 5 / 8; }
.dl-detail { margin-top: 6px; min-height: 36px; font-size: 13px; }
.dl-err { grid-column: 1 / -1; }
.doc-totals .big-total { font-size: 26px; letter-spacing: -0.02em; }
.wide { width: 100%; justify-content: center; }
.send-box summary { list-style: none; }
.send-box summary::-webkit-details-marker { display: none; }
.send-form { margin-top: 12px; }
.pdf-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--cs-r-sm); background: #fff; }
.issue-errors { border: 1px solid var(--danger); background: var(--danger-soft); color: var(--danger); }
.issue-errors ul { margin: 6px 0 0; padding-inline-start: 18px; }
.issue-check { padding: 10px 12px; border-radius: var(--cs-r-sm); background: var(--warning-soft); color: var(--warning); }
.issue-check .hint-list { color: inherit; }
.ok-hint { display: flex; align-items: center; gap: 6px; color: var(--success); }
.pattern-ex { display: block; padding: 12px 0; font-weight: 600; color: var(--accent-ink); }
.bank-row { flex-wrap: wrap; }
.history li { padding: 8px 0; }
@media (max-width: 899.98px) {
  .doc-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-name { grid-column: 1 / -1; padding-inline-end: 48px; }
  .dl-x { position: absolute; top: 8px; right: 8px; margin: 0; }
  [dir="rtl"] .dl-x { right: auto; left: 8px; }
  .doc-line > .cs-field:nth-of-type(6) { grid-column: auto; }
  .dl-net { grid-column: auto; grid-row: auto; align-self: end; margin: 0 0 12px; text-align: end; }
  .pdf-frame { height: 70vh; }
}

/* telefon: meni je jedan red s logom i vodoravna traka stavki, bez zauzimanja ekrana */
@media (max-width: 899.98px) {
  .shell-side { flex: 1 1 100%; min-width: 0; width: 100%; height: auto; padding: 12px 12px 8px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .shell-side .brand { padding: 4px 4px; }
  .shell-side .brand-logo { height: 26px; }
  .company-chip { padding: 0; margin-left: auto; text-align: end; }
  [dir="rtl"] .company-chip { margin-left: 0; margin-right: auto; }
  .nav-list { display: none; }
  .side-foot { display: none; }
  .main-foot { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--ink-muted); text-align: center; }
}
@media print { .shell-side, .topbar-actions, .aurora { display: none; } }

/* Pravno: dokumenti, sadržaj, tabele, podnožje */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 6px; }
.legal-links a { color: var(--ink-muted); text-decoration: none; }
.legal-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.legal-cookie { color: var(--ink-muted); opacity: .8; }
.main-foot .legal-links { justify-content: flex-start; }
.main-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.legal-read { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legal { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.legal-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: var(--surface-sunken); align-self: flex-start; max-width: 100%; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tab { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.legal-tab:hover { color: var(--ink); }
.legal-tab.is-on { background: var(--segment-active); color: var(--segment-active-ink); box-shadow: var(--shadow-segment); font-weight: 600; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.legal-toc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.legal-toc-box { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 12px 14px; }
.legal-toc-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.legal-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.legal-n { flex: none; display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78em; font-weight: 700; font-variant-numeric: tabular-nums; }
.legal-doc { padding: clamp(20px, 4vw, 44px); gap: 0; max-width: 860px; }
.legal-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-title { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.legal-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.legal-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); color: var(--info); font-size: 14px; }
.legal-note a { color: inherit; font-weight: 600; }
.legal-sec { padding-top: 18px; scroll-margin-top: 16px; }
.legal-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 19px; letter-spacing: -0.01em; }
.legal-sec p, .legal-sec li { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 72ch; }
.legal-sec p { margin: 0 0 10px; }
.legal-sec ul { margin: 0 0 12px; padding-inline-start: 20px; }
.legal-sec li { margin-bottom: 4px; }
.legal-sec li::marker { color: var(--accent-ink); }
.legal-table-wrap { overflow-x: auto; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: start; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.legal-table thead th { border-top: 0; background: var(--surface-sunken); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
.legal-table tbody th { font-weight: 600; color: var(--ink); min-width: 9em; }
.legal-table td { color: var(--ink-soft); }
.legal-index-head { display: flex; flex-direction: column; gap: 10px; }
.legal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.legal-card { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.legal-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.09); }
.legal-card strong { font-size: 17px; }
.legal-card-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.legal-rows .legal-card-ic { width: 34px; height: 34px; border-radius: 10px; }
.legal-card-foot { margin-top: auto; }
.legal-sub { margin-top: 10px; font-size: 16px; }
.accept-row { justify-content: space-between; }
@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .legal-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
}
@media (max-width: 999.98px) { .legal-toc-box:not([open]) ol { display: none; } }
@media (prefers-reduced-motion: reduce) { .legal-card { transition: none; } .legal-card:hover { transform: none; } }
@media print {
  .guest-head, .guest-foot, .legal-tabs, .legal-toc, .legal-actions, .main-foot { display: none !important; }
  .legal-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .legal-grid { display: block; }
  .legal-sec { break-inside: auto; } .legal-sec h2 { break-after: avoid; }
}
.legal-doc, .legal-toc { overflow-wrap: break-word; hyphens: auto; }
.legal-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 599.98px) {
  .legal-doc { padding: 18px 16px; border-radius: 18px; }
  .legal-title { font-size: 26px; }
  .legal-lead { font-size: 15.5px; }
  .legal-sec h2 { font-size: 17px; }
  .legal-sec p, .legal-sec li { font-size: 15px; }
  .legal-table th, .legal-table td { padding: 8px 9px; font-size: 13px; }
  .legal-table tbody th { min-width: 7em; }
  .legal-actions { margin-inline-start: 0; }
}
.legal-table td.cs-num { white-space: nowrap; }

/* Zajedničko: pill tabovi, segment linkovi */
.pill-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: var(--surface-sunken); align-self: flex-start; max-width: 100%; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.pill-tab:hover { color: var(--ink); }
.pill-tab.is-on { background: var(--segment-active); color: var(--segment-active-ink); box-shadow: var(--shadow-segment); font-weight: 600; }
.small-tabs .pill-tab { padding: 6px 12px; font-size: 13px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger-dot); color: #fff; font-size: 11px; font-weight: 700; }
.crm-tabs { margin-bottom: 16px; }
.seg-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: calc(var(--cs-r-sm) - 2px); color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.seg-link.is-on { background: var(--segment-active); color: var(--segment-active-ink); box-shadow: var(--shadow-segment); }
.r { text-align: end !important; }
.block { display: block; }
.wrap { flex-wrap: wrap; }
.push-end { margin-inline-start: auto; }
.pre-line { white-space: pre-line; margin: 0; }
.is-late-text { color: var(--danger) !important; font-weight: 600; }
.small-value { font-size: 18px !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.range { width: 100%; accent-color: var(--accent); }
.col-half { flex: 1 1 380px; min-width: 0; }

/* CRM ploča */
.crm-wrap { overflow: hidden; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.board-col { display: flex; flex-direction: column; gap: 8px; min-height: 240px; padding: 10px; border-radius: 16px; background: var(--surface-sunken); scroll-snap-align: start; }
.board-col.is-won { background: color-mix(in srgb, var(--success-soft) 70%, transparent); }
.board-col.is-lost { background: color-mix(in srgb, var(--neutral-soft) 70%, transparent); }
.board-head { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 4px; }
.board-name { font-weight: 700; font-size: 14px; }
.board-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.board-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 4px; }
[dir="rtl"] .board-bar::after { inset: 0 0 0 auto; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; border-radius: 12px; transition: background .15s; }
.board-list.is-over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 2px; }
.board-note { margin: 0; text-align: center; }
.deal-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.05); touch-action: pan-y; user-select: none; }
.deal-card[data-draggable] { cursor: grab; }
.deal-card.is-late { border-inline-start: 3px solid var(--danger-dot); }
.deal-card.is-won { border-inline-start: 3px solid var(--success-dot); }
.deal-card.is-lost { opacity: .75; }
.deal-card.is-dragging { opacity: .35; }
.deal-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(2deg); box-shadow: 0 20px 40px rgba(0,0,0,.25); opacity: .95; }
.deal-link { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.deal-link:hover .deal-title { color: var(--accent-ink); }
.deal-title { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.deal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deal-value { font-size: 15px; }
.deal-prob { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.deal-foot .small { display: inline-flex; align-items: center; gap: 4px; }
.deal-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--warning); background: var(--warning-soft); padding: 2px 6px; border-radius: 999px; }
.deal-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--avatar); color: var(--avatar-ink); font-size: 10px; font-weight: 700; }
.only-d { display: none; }
@media (min-width: 900px) { .only-d { display: block; } }

/* Koraci faza na prilici */
.stepper { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 2px; scrollbar-width: thin; }
.stepper form { flex: 1 0 auto; }
.step { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.step:disabled { cursor: default; }
.step:not(:disabled):hover { border-color: var(--accent); color: var(--ink); }
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-sunken); font-size: 12px; font-weight: 700; }
.step-p { margin-inline-start: auto; font-size: 12px; color: var(--ink-muted); }
.step.is-done { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.step.is-done .step-n { background: var(--accent); color: var(--on-accent); }
.step.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.step.is-on .step-n { background: rgba(255,255,255,.25); color: inherit; }
.step.is-on .step-p { color: inherit; opacity: .85; }

/* Aktivnosti */
.act-types { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: var(--cs-r-sm); background: var(--surface-sunken); align-self: flex-start; }
.act-types .seg-opt span { min-height: 34px; padding: 0 12px; font-size: 13px; }
.due-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr); gap: 10px; align-items: end; }
.act-rows li { align-items: flex-start; }
.act-row.is-done .act-title { text-decoration: line-through; color: var(--ink-muted); }
.act-row.is-late { background: linear-gradient(90deg, var(--danger-soft), transparent 60%); border-radius: 10px; padding-inline: 8px; }
.act-check { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; color: transparent; cursor: pointer; }
.act-check:hover { border-color: var(--success-dot); color: var(--success-dot); }
.act-check[aria-pressed="true"], .act-check.is-static { background: var(--success-dot); border-color: var(--success-dot); color: #fff; }
.act-check.is-static { background: var(--surface-sunken); border-color: transparent; color: var(--ink-muted); cursor: default; }
.act-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-type { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-soft); }
.act-call { background: var(--info-soft); color: var(--info); }
.act-meeting { background: var(--success-soft); color: var(--success); }
.act-email { background: var(--accent-soft); color: var(--accent-ink); }
.act-task { background: var(--warning-soft); color: var(--warning); }
.act-note { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); white-space: pre-line; }
.act-rows.compact li { padding: 8px 0; align-items: center; }
.contact-mini { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Izvještaji */
.rep-filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.stat-accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: var(--on-accent); border-color: transparent; }
.stat-accent .cs-stat-label, .stat-accent .cs-stat-sub { color: inherit; opacity: .85; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding-top: 18px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.bar { display: block; width: 100%; max-width: 38px; height: var(--h); min-height: 2px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); transition: height .4s ease; }
.bar-val { font-size: 10.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.bar-lbl { font-size: 11px; color: var(--ink-muted); }
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.funnel-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.funnel-bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); }
.funnel-bar.is-lost i { background: linear-gradient(90deg, var(--danger-dot), color-mix(in srgb, var(--danger-dot) 50%, #fff)); }

/* Faze */
.stage-rows li { flex-wrap: wrap; }
.stage-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.stage-dot.is-won { background: var(--success-dot); }
.stage-dot.is-lost { background: var(--neutral-dot); }
.stage-form { display: flex; flex: 1 1 320px; gap: 8px; align-items: center; min-width: 0; }
.stage-form .cs-input:first-of-type { flex: 1; min-width: 0; }
.prob-in { display: inline-flex; align-items: center; gap: 4px; }
.prob-in .cs-input { width: 80px; }

/* Pregled: CRM kartica */
.crm-dash { margin-bottom: 20px; }
.crm-dash-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dash-num { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); color: inherit; text-decoration: none; }
.dash-num span { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.dash-num small { font-size: 12px; color: var(--ink-muted); }
.dash-num.is-danger { background: var(--danger-soft); }
.dash-num.is-danger span { color: var(--danger); }
.dash-num.wide-num span { font-size: 20px; }
a.dash-num:hover { outline: 2px solid var(--accent-soft); }

@media (max-width: 599.98px) {
  .board { grid-auto-columns: 82%; }
  .due-row { grid-template-columns: 1fr 1fr; }
  .due-row > :first-child { grid-column: 1 / -1; }
  .stepper .step-p { display: none; }
  .bars { height: 170px; gap: 3px; }
  .bar-val { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bar, .board-list { transition: none; } }
@media print { .crm-tabs, .rep-filters, .filters { display: none !important; } }
@media (max-width: 599.98px) {
  .tiles-compact .cs-stat-value { font-size: clamp(19px, 5.6vw, 26px); overflow-wrap: anywhere; }
  .tiles-compact .cs-stat { min-width: 0; }
}

/* Projekti i zadaci */
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(0,0,0,.18); max-width: calc(100vw - 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.check-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.check-inline { align-self: center; white-space: nowrap; }
.dash-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-bottom: 20px; }
.dash-mods .crm-dash { margin-bottom: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.proj-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.proj-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.proj-card.is-late { border-inline-start: 3px solid var(--danger-dot); }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.proj-name { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-muted); }
.proj-progress { display: block; height: 8px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.proj-progress i { display: block; height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.proj-progress.is-over i { background: linear-gradient(90deg, var(--danger-dot), color-mix(in srgb, var(--danger-dot) 55%, #fff)); }
.stat-accent .proj-progress { background: rgba(255,255,255,.25); }
.proj-tabs { margin-bottom: 16px; }
.inner-cols { margin: 0; }
.quick-task { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-sunken); }
.quick-task .grow { flex: 1 1 220px; min-width: 0; }
.quick-task .date-field { width: 140px; }
.quick-task .cs-error.wide { flex-basis: 100%; }
.task-board { grid-auto-columns: minmax(250px, 1fr); }
.board-col.is-task-review { background: color-mix(in srgb, var(--warning-soft) 70%, transparent); }
.board-col.is-task-done { background: color-mix(in srgb, var(--success-soft) 70%, transparent); }
.task-card.prio-urgent { border-inline-start: 3px solid var(--danger-dot); }
.task-card.prio-high { border-inline-start: 3px solid var(--warning-dot); }
.prio-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-soft); white-space: nowrap; }
.prio-tag.prio-urgent { background: var(--danger-soft); color: var(--danger); }
.prio-tag.prio-high { background: var(--warning-soft); color: var(--warning); }
.prio-tag.prio-low { background: var(--neutral-soft); color: var(--neutral); }
.is-late-row td:first-child { box-shadow: inset 3px 0 0 var(--danger-dot); }
.review-box { border-color: var(--warning-dot); background: linear-gradient(135deg, var(--warning-soft), var(--surface) 55%); }
.summary-title { cursor: pointer; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comments li { display: flex; gap: 10px; align-items: flex-start; }
.comments .bubble { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-sunken); }
.comments li.is-mine { flex-direction: row-reverse; }
.comments li.is-mine .bubble { border-radius: 14px 4px 14px 14px; background: var(--accent-soft); }
.comments .bubble p { margin: 4px 0 0; font-size: 14.5px; }
.timer-big { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.timer-stop { background: var(--danger-dot) !important; border-color: var(--danger-dot) !important; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--danger-dot); box-shadow: 0 0 0 0 var(--danger-dot); animation: live 1.6s infinite; vertical-align: middle; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger-dot) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.timer-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 12px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.timer-chip a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.dur-input { margin-top: 6px; max-width: 120px; }
.bill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.bill-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.bill-box strong { font-size: 18px; }
.phase-rows li { align-items: flex-start; }
.phase-edit { flex: 1; min-width: 0; }
.phase-edit summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.phase-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin: 12px 0; }
.phase-new { padding-top: 14px; border-top: 1px solid var(--line); }
.bar.is-weekend { background: linear-gradient(180deg, var(--neutral-dot), color-mix(in srgb, var(--neutral-dot) 50%, transparent)); }
.bar.is-over { background: linear-gradient(180deg, var(--warning-dot), color-mix(in srgb, var(--warning-dot) 50%, transparent)); }
.days-bars { gap: 4px; }

/* Gantt */
.gantt { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: minmax(130px, 220px) minmax(520px, 1fr); gap: 10px; align-items: center; }
.gantt-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gantt-track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--wk)); }
.gantt-scale .gantt-track { background: none; height: 18px; }
.gantt-week { position: absolute; top: 0; font-size: 11px; color: var(--ink-muted); white-space: nowrap; transform: translateX(-2px); }
.gantt-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 35%, transparent); overflow: hidden; min-width: 6px; }
.gantt-bar i { display: block; height: 100%; background: var(--accent); }
.gantt-bar.is-project { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); top: 7px; bottom: 7px; }
.gantt-bar.is-done { background: color-mix(in srgb, var(--success-dot) 55%, transparent); }
.gantt-bar.is-done i { background: var(--success-dot); }
.gantt-bar.is-late { outline: 2px solid var(--danger-dot); }
.gantt-bar.is-thin { top: 9px; bottom: 9px; }
.gantt-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); border-radius: 2px; background: var(--accent); }
.gantt-dot.is-done { background: var(--success-dot); }
.gantt-dot.is-late { background: var(--danger-dot); }
.gantt-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--danger-dot); opacity: .7; z-index: 1; }
.gantt-row.is-project .gantt-label { font-weight: 600; }
.gantt-row.is-task .gantt-label a { color: var(--ink-soft); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }

/* Kalendar zadataka */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-title { font-size: 18px; min-width: 160px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 12px; font-weight: 600; color: var(--ink-muted); text-align: center; padding: 4px 0; text-transform: capitalize; }
.cal-day { min-height: 96px; padding: 6px; border-radius: 10px; background: var(--surface-sunken); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.is-out { opacity: .45; }
.cal-day.is-weekend { background: color-mix(in srgb, var(--surface-sunken) 60%, transparent); }
.cal-day.is-today { outline: 2px solid var(--accent); }
.cal-n { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.cal-item { display: block; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-start: 3px solid var(--accent); }
.cal-item.prio-urgent { border-color: var(--danger-dot); }
.cal-item.prio-high { border-color: var(--warning-dot); }
.cal-item.is-done { opacity: .55; text-decoration: line-through; }
.cal-item.is-late { background: var(--danger-soft); }
@media (max-width: 599.98px) {
  .cal { gap: 2px; }
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-item { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border: 0; background: var(--accent); }
  .cal-item.prio-urgent, .cal-item.is-late { background: var(--danger-dot); }
  .quick-task .date-field { width: 100%; }
  .gantt-scale, .gantt-row { grid-template-columns: 110px minmax(420px, 1fr); }
  .timer-chip a span:last-child { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .proj-card { transition: none; } .proj-card:hover { transform: none; } }

/* Radno vrijeme */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.stack-xs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c { text-align: center !important; }
.kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.clock-card { gap: 16px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.clock-card.is-in { background: linear-gradient(160deg, color-mix(in srgb, var(--success-dot) 9%, var(--surface)), var(--surface) 55%); }
.clock-card.is-break { background: linear-gradient(160deg, color-mix(in srgb, var(--warning-dot) 12%, var(--surface)), var(--surface) 55%); }
.clock-card.is-away { background: linear-gradient(160deg, color-mix(in srgb, var(--info-dot) 10%, var(--surface)), var(--surface) 55%); }
.clock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.clock-top p { margin: 4px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.clock-start { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 4px; }
.clock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 0 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--success-dot), color-mix(in srgb, var(--success-dot) 55%, var(--accent))); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--success-dot) 40%, transparent); animation: pulse-in 2.4s infinite; }
.clock-btn:hover { filter: brightness(1.06); }
.clock-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.clock-btn.is-sm { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; box-shadow: none; }
@keyframes pulse-in { 0%, 100% { box-shadow: 0 10px 28px color-mix(in srgb, var(--success-dot) 40%, transparent), 0 0 0 0 color-mix(in srgb, var(--success-dot) 45%, transparent); } 60% { box-shadow: 0 10px 28px color-mix(in srgb, var(--success-dot) 40%, transparent), 0 0 0 16px transparent; } }
.clock-live { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.clock-time { font-size: clamp(40px, 9vw, 64px); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-time.is-sm { font-size: 26px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.status-grid form { display: contents; }
.status-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: start; cursor: pointer; }
.status-btn > span { display: flex; flex-direction: column; min-width: 0; }
.status-btn > svg { flex: none; }
.status-btn small { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.status-btn:hover { border-color: var(--border-strong); }
.status-btn.is-on { background: var(--warning-soft); border-color: var(--warning-dot); color: var(--warning); cursor: default; }
.status-btn.is-back { background: var(--success-dot); border-color: var(--success-dot); color: #fff; grid-column: 1 / -1; justify-content: center; }
.break-bar { display: flex; flex-direction: column; gap: 6px; }
.break-bar p { margin: 0; }
.confirm-pop { align-self: flex-start; }
.confirm-pop summary { list-style: none; }
.confirm-pop summary::-webkit-details-marker { display: none; }
.confirm-box { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-sunken); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.confirm-box p { margin: 0; }
.day-line { display: block; position: relative; height: 22px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)), var(--surface-sunken); overflow: hidden; }
.day-line > span { position: absolute; left: var(--a); width: max(2px, calc(var(--b) - var(--a))); top: 0; bottom: 0; }
[dir="rtl"] .day-line > span { left: auto; right: var(--a); }
.dl-plan { top: 0 !important; bottom: auto !important; height: 5px; background: repeating-linear-gradient(45deg, var(--accent) 0 4px, transparent 4px 8px); opacity: .8; }
.dl-work { top: 7px !important; bottom: 3px !important; border-radius: 4px; background: var(--success-dot); }
.dl-ev { top: 7px !important; bottom: 3px !important; background: var(--info-dot); }
.dl-ev.st-break_short, .dl-ev.st-break_long { background: var(--warning-dot); }
.dl-ev.st-doctor, .dl-ev.st-private { background: repeating-linear-gradient(45deg, var(--neutral-dot) 0 3px, transparent 3px 6px); }
.dl-now { width: 2px !important; background: var(--danger-dot); }
.day-line.is-mini { height: 12px; min-width: 120px; }
.day-line.is-mini .dl-work, .day-line.is-mini .dl-ev { top: 2px !important; bottom: 2px !important; }
.dl-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); margin-top: -10px; }
.team-live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-live li { display: flex; align-items: center; gap: 10px; }
.team-live .avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--avatar); color: var(--avatar-ink); font-size: 13px; font-weight: 700; }
.tl-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tl-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-live .cs-pill { flex: none; }
.shift-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 700; text-decoration: none; }
.shift-chip.is-break { background: var(--warning-soft); color: var(--warning); }
.att-dash-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-field { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hm-field legend { padding: 0; margin-bottom: 6px; }
.hm-pick { display: flex; align-items: center; gap: 6px; }
.hm-pick select { width: auto; min-width: 72px; padding-inline-end: 28px; }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit .cs-input { max-width: 140px; }
.input-unit span { color: var(--ink-muted); font-size: 14px; }
/* raspored */
.sch-head { margin-bottom: 8px; flex-direction: row; align-items: center; }
.cal-head .cs-icon-btn { font-size: 22px; line-height: 1; }
.sch-hint { margin: 0 0 8px; }
.sch-wrap { overflow-x: auto; border-radius: var(--cs-r-lg); background: var(--surface); box-shadow: var(--shadow-card, none); border: 1px solid var(--line); margin-bottom: 20px; }
.sch { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.sch th, .sch td { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: start; }
.sch thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; z-index: 1; }
.sch .sch-name { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 2; min-width: 150px; max-width: 190px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch .sch-name .deal-av { margin-inline-end: 8px; vertical-align: middle; }
.sch-wd { text-transform: capitalize; color: var(--ink-muted); font-weight: 600; }
.sch-hol { display: block; font-size: 11px; color: var(--warning); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sch th.is-weekend, .sch td.is-weekend { background: color-mix(in srgb, var(--surface-sunken) 45%, var(--surface)); }
.sch th.is-off, .sch td.is-off { background: color-mix(in srgb, var(--warning-dot) 8%, var(--surface)); }
.sch th.is-today { box-shadow: inset 0 -3px 0 var(--accent); }
.sch td.is-today { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.sch-cell { min-width: 104px; height: 64px; }
.sch-cell.is-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: var(--accent-soft) !important; }
.sch-cell > * + * { margin-top: 4px; }
.sch-add { display: block; width: 100%; min-height: 26px; border: 1px dashed transparent; border-radius: 8px; background: transparent; color: var(--ink-muted); font-size: 16px; cursor: pointer; opacity: 0; }
.sch-cell:hover .sch-add, .sch-add:focus-visible { opacity: 1; border-color: var(--border-strong); }
@media (hover: none) { .sch-add { opacity: .6; } }
.sch-tot { font-weight: 700; white-space: nowrap; vertical-align: middle !important; }
.sch tfoot td, .sch tfoot th { color: var(--ink-muted); font-weight: 600; border-bottom: 0; }
.sh-chip { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); border-inline-start: 3px solid var(--accent); line-height: 1.25; touch-action: none; user-select: none; }
.sh-chip[data-draggable] { cursor: grab; }
.sh-chip small { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-chip.is-night { background: color-mix(in srgb, var(--info-dot) 14%, transparent); border-color: var(--info-dot); color: var(--info); }
.sh-chip.is-long { border-color: var(--warning-dot); }
.sh-chip.is-dragging { opacity: .35; }
.sh-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sh-ghost { position: fixed; z-index: 1000; pointer-events: none; box-shadow: 0 14px 30px rgba(0,0,0,.22); transform: rotate(2deg); background: var(--surface); }
.sh-ghost.is-copy::after { content: "+"; position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--success-dot); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.abs-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--warning-dot) 16%, transparent); color: var(--warning); }
.abs-chip.is-pending { background: transparent; border: 1px dashed var(--warning-dot); }
.worked-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--success); }
.toast.is-warn { background: var(--warning-soft); color: var(--warning); }
/* evidencija */
.rec-table td { vertical-align: middle; }
.rec-table tr.is-weekend td { background: color-mix(in srgb, var(--surface-sunken) 35%, transparent); }
.rec-table tr.is-off td { background: color-mix(in srgb, var(--warning-dot) 6%, transparent); }
.rec-table tr.is-today td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rec-table tr.is-missing td:first-child { box-shadow: inset 3px 0 0 var(--danger-dot); }
.rec-line-c { min-width: 130px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
td.tags { display: table-cell; }
td.tags > * { margin: 1px 2px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-soft); white-space: nowrap; }
.tag-night { background: color-mix(in srgb, var(--info-dot) 14%, transparent); color: var(--info); }
.tag-sun, .tag-hol { background: var(--warning-soft); color: var(--warning); }
.tag-late { background: var(--danger-soft); color: var(--danger); }
.tag-live { background: var(--success-soft); color: var(--success); }
.corr-pop summary { list-style: none; } .corr-pop summary::-webkit-details-marker { display: none; }
.corr-pop[open] { position: relative; }
.corr-form { position: absolute; inset-inline-end: 0; z-index: 5; width: min(360px, 86vw); margin-top: 6px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.18); text-align: start; }
.pend-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pend-row .stack-xs { flex: 1 1 260px; }
.pend-row form .cs-input { max-width: 220px; }
/* pregled */
.sum-table th[scope="row"] a { font-weight: 600; text-decoration: none; }
.ring { display: inline-block; width: 16px; height: 16px; margin-inline-end: 6px; vertical-align: -3px; border-radius: 50%; background: conic-gradient(var(--success-dot) calc(var(--p) * 1%), var(--surface-sunken) 0); }
/* praznici */
.hol-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hol-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hol-list li:last-child { border-bottom: 0; }
.hol-date { flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--surface-sunken); }
.hol-date small { font-size: 11px; color: var(--ink-muted); text-transform: capitalize; }
.hol-list li.is-off .hol-date { background: var(--warning-soft); color: var(--warning); }
.hol-list li.is-removed { opacity: .55; }
.hol-list li.is-removed .hol-name b { text-decoration: line-through; }
.hol-name { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hol-state { flex: none; min-width: 90px; }
.wd-pick { flex-wrap: wrap; }
.wd-pick .seg-opt span { min-width: 42px; justify-content: center; text-transform: capitalize; }
@media (max-width: 599.98px) {
  .clock-btn { width: 100%; padding: 0 20px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-btn { font-size: 13px; min-height: 52px; }
  .sch .sch-name { min-width: 110px; max-width: 120px; }
  .rec-line-h, .rec-line-c { display: none; }
  .pend-row form { width: 100%; } .pend-row form .cs-input { max-width: none; flex: 1; }
  .hol-state { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .clock-btn { animation: none; } }
@media print {
  .crm-tabs, .sch-add, .sch-hint, [data-shift-panel], .corr-pop, .filters .cs-btn, .filters .cs-icon-btn, .flash { display: none !important; }
  .sch-wrap { overflow: visible; border: 0; } .sch { min-width: 0; font-size: 10px; }
  .sch .sch-name, .sch thead th { position: static; }
}
.sum-table td, .sum-table th { white-space: nowrap; }

/* Dokumenti i prilozi */
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-sunken); color: var(--ink-soft); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.is-over, .drop-zone:focus-within { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.drop-zone u { color: var(--accent-ink); text-underline-offset: 3px; }
.up-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.up-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.up-size { color: var(--ink-muted); }
.up-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up-item.is-ok .up-bar i { background: var(--success-dot); }
.up-item.is-err .up-bar { display: none; }
.up-msg { grid-column: 1 / -1; color: var(--danger); font-size: 12px; font-weight: 600; }
.up-msg:empty { display: none; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row.is-trashed { opacity: .7; }
.file-badge { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--neutral-dot); clip-path: polygon(0 0, 72% 0, 100% 20%, 100% 100%, 0 100%); }
.fb-pdf { background: #d93a2f; } .fb-text { background: #2f6bea; } .fb-sheet { background: #1f8f4e; } .fb-slides { background: #d9731f; } .fb-image { background: #8a4fd8; }
.file-thumb { flex: none; width: 44px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--surface-sunken); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-name { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover { color: var(--accent-ink); text-decoration: underline; }
.file-note { font-size: 12.5px; color: var(--ink-soft); }
.file-act { flex: none; display: flex; align-items: center; gap: 4px; }
.file-more { position: relative; }
.file-more summary { list-style: none; } .file-more summary::-webkit-details-marker { display: none; }
.file-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 6; width: min(320px, 86vw); padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.is-danger-text { color: var(--danger) !important; }
.folder-nav { gap: 4px; }
.folder-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.folder-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-link b { font-size: 12px; color: var(--ink-muted); }
.folder-link:hover { background: var(--surface-sunken); }
.folder-link.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.folder-link.is-static:hover { background: none; }
.trash-link { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.files-filter .cs-input[type=search] { max-width: 260px; }
.empty-files { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 0; color: var(--ink-muted); }
.up-restricted { align-self: end; padding-bottom: 10px; }
@media (max-width: 599.98px) { .files-filter .cs-input[type=search] { max-width: none; flex: 1 1 100%; } .file-badge, .file-thumb { width: 38px; height: 46px; } }
@media print { .files-side, .files-filter, .file-act { display: none !important; } }
.files-under { margin-top: 20px; }

/* Automatizacije */
.switch { position: relative; width: 46px; height: 28px; border: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; padding: 0; flex: none; transition: background .15s; }
.switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.switch.is-on { background: var(--success-dot); }
.switch.is-on i { inset-inline-start: 21px; }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch-input { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--border-strong); cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch-input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.switch-input:checked { background: var(--success-dot); }
.switch-input:checked::after { inset-inline-start: 21px; }
.switch-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.toggle-row > span { display: flex; flex-direction: column; gap: 2px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { margin-top: 3px; accent-color: var(--accent); }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; }
.every-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.every-n { width: 72px; text-align: center; }
.auto-card details > summary { list-style: none; } .auto-card details > summary::-webkit-details-marker { display: none; }
.auto-form { margin-top: 12px; }
.auto-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.auto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.auto-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.auto-row:last-child { border-bottom: 0; }
.auto-row.is-off { opacity: .6; }
.auto-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--accent); }
.ai-invoice { background: linear-gradient(135deg, #2f6bea, #7c4ddb); }
.ai-task { background: linear-gradient(135deg, #1fa055, #0fa3a3); }
.auto-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auto-main a { font-size: 12.5px; }
.auto-act { flex: none; display: flex; align-items: center; gap: 6px; }
.next-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.auto-empty { padding: 8px 0; }
.auto-how { margin: 6px 0 0; padding-inline-start: 18px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 599.98px) { .auto-row { flex-wrap: wrap; } .auto-act { width: 100%; justify-content: flex-end; } }

/* Licenca */
.lic-bar { background: var(--warning-soft); color: var(--warning); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lic-bar.is-limited { background: var(--danger-soft); color: var(--danger); }
.lic-bar a, .trial-bar a { color: inherit; font-weight: 700; }
.flash.is-warn { background: var(--warning-soft); color: var(--warning); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card { position: relative; display: flex; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan-card input:checked + .plan-body { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan-card input:focus-visible + .plan-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.plan-name { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.plan-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.plan-sub { font-size: 13px; color: var(--ink-muted); }
.calc-box summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.calc-box table { margin-top: 8px; }
.pay-btn { align-self: flex-start; min-width: 220px; }
.copy-code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.pay-confirm > span { display: block; }

/* Termini — kalendar */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.bk-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.bk-side [hidden] { display: none !important; }
.bk-wrap { overflow-x: auto; border-radius: var(--cs-r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card, none); }
.bk-grid { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(150px, 1fr)); grid-template-rows: auto calc(var(--rows) * var(--hh)); min-width: calc(58px + var(--cols) * 150px); }
.bk-corner, .bk-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.bk-head { padding: 10px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; border-inline-start: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-corner { position: sticky; inset-inline-start: 0; z-index: 4; }
.bk-times { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); display: flex; flex-direction: column; }
.bk-times span { height: var(--hh); font-size: 11px; color: var(--ink-muted); padding: 2px 6px 0; border-top: 1px solid var(--line); }
.bk-col { position: relative; border-inline-start: 1px solid var(--line); background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px calc(var(--hh) / 2)), color-mix(in srgb, var(--surface-sunken) 70%, var(--surface)); cursor: copy; touch-action: pan-x pan-y; }
.bk-col[data-closed] { background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 10px), var(--surface-sunken); }
.bk-open { position: absolute; inset-inline: 0; background: var(--surface); opacity: .85; pointer-events: none; }
.bk-now { position: absolute; inset-inline: 0; height: 2px; background: var(--danger-dot); z-index: 2; pointer-events: none; }
.bk-now::before { content: ""; position: absolute; inset-inline-start: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger-dot); }
.bk-appt { position: absolute; inset-inline: 4px; z-index: 1; display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; border: 0; border-radius: 10px; text-align: start; font: inherit; font-size: 12.5px; color: var(--ink); overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-inline-start: 4px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bk-appt[data-drag] { cursor: grab; touch-action: none; }
.bk-appt b { font-size: 11.5px; }
.bk-appt span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-appt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-appt.is-online::after { content: "●"; position: absolute; top: 3px; inset-inline-end: 6px; font-size: 9px; color: var(--success-dot); }
.bk-appt.st-arrived { background: color-mix(in srgb, var(--warning-dot) 18%, var(--surface)); border-color: var(--warning-dot); }
.bk-appt.st-done { background: color-mix(in srgb, var(--success-dot) 16%, var(--surface)); border-color: var(--success-dot); }
.bk-appt.st-no_show { background: var(--danger-soft); border-color: var(--danger-dot); }
.bk-appt.st-cancelled { background: var(--surface-sunken); border-color: var(--border-strong); opacity: .55; text-decoration: line-through; }
.bk-appt.is-dragging { opacity: .85; box-shadow: 0 12px 28px rgba(0,0,0,.22); z-index: 5; cursor: grabbing; }
.bk-appt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-day-h { font-size: 15px; margin: 8px 0 0; text-transform: capitalize; }
.bk-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bk-time { font-weight: 700; min-width: 48px; }
.oh-list { display: flex; flex-direction: column; }
.oh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.oh-day { min-width: 140px; min-height: 0; text-transform: capitalize; }
.oh-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.oh-times .hm-pick select { min-width: 64px; }
.oh-closed { display: none; }
.oh-row.is-closed .oh-times { display: none; }
.oh-row.is-closed .oh-closed { display: inline; }
.oh-second[hidden] { display: none; }
.svc-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.svc-row summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.svc-row summary::-webkit-details-marker { display: none; }
.svc-row form { margin-top: 10px; }
.svc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex: none; }
.svc-dot.is-on { background: var(--success-dot); }
@media (max-width: 1099.98px) { .bk-layout { grid-template-columns: 1fr; } .bk-side { position: static; } }
@media print { .bk-side, .bk-now { display: none !important; } .bk-wrap { overflow: visible; } }

/* Online rezervacija (javno) */
.pub { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.pub-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub-head h1 { font-size: clamp(22px, 5vw, 30px); margin: 0; }
.pub-head p { margin: 2px 0 0; }
.pub-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #7c4ddb)); color: #fff; font-size: 26px; font-weight: 800; }
.pub-msg { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pub-flow { display: flex; flex-direction: column; gap: 16px; }
.pub-flow [hidden] { display: none !important; }
.pub-h { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0; }
.pub-h span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.pub-cat { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 6px 0 0; }
.pub-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pub-svc { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.pub-svc input { position: absolute; opacity: 0; }
.pub-svc > span:first-of-type { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pub-svc:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pub-svc:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pub-price { font-weight: 800; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip[hidden] { display: none; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.day-chip { flex: none; cursor: pointer; scroll-snap-align: start; }
.day-chip input { position: absolute; opacity: 0; }
.day-chip span { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-transform: capitalize; }
.day-chip b { font-size: 20px; }
.day-chip small { font-size: 11px; color: var(--ink-muted); }
.day-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-chip input:checked + span small { color: rgba(255,255,255,.85); }
.day-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-summary { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-sunken); font-weight: 600; }
.pub-submit { align-self: flex-start; min-width: 200px; min-height: 48px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pub-done { align-items: center; text-align: center; }
.pub-done .kv { width: 100%; max-width: 460px; text-align: start; }
.pub-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-dot); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--success-dot) 40%, transparent); }
.bk-appt.is-short { flex-direction: row; align-items: center; gap: 6px; padding-block: 2px; }
.bk-appt.is-short small { display: none; }
.pub > *, .pub-flow > * { min-width: 0; max-width: 100%; }
.pub-step .day-strip { max-width: 100%; }
.day-chip, .chip { position: relative; }
.day-chip input, .chip input { inset: 0; width: 100%; height: 100%; margin: 0; }

/* ---------- Troškovi i profitabilnost ---------- */
:root { --ch-rev: #0a70e0; --ch-exp: #c2410c; --ch-lab: #6d28d9; }
[data-theme$="-dark"] { --ch-rev: #3d8ef0; --ch-exp: #e56a2c; --ch-lab: #9a76f5; }
.exp-ic { background: color-mix(in srgb, var(--ch-exp) 14%, transparent); color: var(--ch-exp); }
.exp-proj { color: var(--ink-soft); }
.cs-pill-sm { font-size: 11px; padding: 1px 8px; }
.tile-alert { box-shadow: inset 0 0 0 1.5px var(--danger-dot), var(--shadow-card); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.chip-row legend { margin-bottom: 6px; }
.chip-row .chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-row .chip:hover { color: var(--ink); background: var(--accent-soft); }
.exp-amounts .exp-total { font-size: 20px; font-weight: 700; }
.exp-calc { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-soft); }
.warn-hint { color: var(--warning); background: var(--warning-soft); padding: 8px 12px; border-radius: 10px; }
.receipt-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--border-strong); border-radius: 16px; background: var(--surface-sunken); cursor: pointer; color: var(--ink-soft); }
.receipt-drop > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.receipt-drop small { overflow-wrap: anywhere; }
.receipt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.receipt-drop.has-file { border-style: solid; border-color: var(--success-dot); background: var(--success-soft); color: var(--success); }
.paid-now { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.del-box > summary { list-style: none; }
.del-box > summary::-webkit-details-marker { display: none; }
.del-box[open] > summary { margin-bottom: 10px; }
.period-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; margin-bottom: 16px; }
.period-nav { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.period-label { font-size: 18px; letter-spacing: -0.01em; min-width: 9ch; text-align: center; }
.profit-tiles { margin-bottom: 16px; }
.profit-tiles .cs-stat-label { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; margin-inline-end: 6px; vertical-align: baseline; }
.profit-tiles .sw { margin: 0; }
.sw-rev { background: var(--ch-rev); } .sw-exp { background: var(--ch-exp); } .sw-lab { background: var(--ch-lab); }
.profit-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--success-dot) 16%, var(--surface)), var(--surface) 70%); }
.profit-hero .cs-stat-value { color: var(--success); }
.profit-hero.is-loss { background: linear-gradient(135deg, color-mix(in srgb, var(--danger-dot) 16%, var(--surface)), var(--surface) 70%); }
.profit-hero.is-loss .cs-stat-value { color: var(--danger); }
.chart-card { margin: 16px 0; }
.ch-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
.ch-legend li { display: inline-flex; align-items: center; }
.ch-wrap { position: relative; }
.ch-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ch-svg { display: block; width: 100%; min-width: 620px; height: auto; overflow: visible; }
.profit-tiles .cs-stat-value { font-size: clamp(22px, 2.2vw, 32px); overflow-wrap: anywhere; }
.stack-sm { align-items: flex-start; }
.stack-sm > .cs-field { align-self: stretch; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-base { stroke: var(--border-strong); stroke-opacity: .5; }
.ch-tick, .ch-x { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-rev { fill: var(--ch-rev); } .ch-exp { fill: var(--ch-exp); } .ch-lab { fill: var(--ch-lab); }
.ch-hit { fill: transparent; cursor: crosshair; outline: none; }
.ch-col.is-hover .ch-hit, .ch-hit:focus-visible { fill: var(--accent-soft); }
.ch-col.is-cur .ch-x { fill: var(--ink); font-weight: 700; }
.ch-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px rgba(0,0,0,.18); border: 1px solid var(--line); font-size: 13px; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-table summary { cursor: pointer; color: var(--accent-ink); }
.neg { color: var(--danger); }
.cols-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 12px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; grid-template-areas: "l t v" "l t p"; align-items: center; gap: 0 12px; font-size: 14px; }
.hb-l { grid-area: l; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { grid-area: t; height: 10px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 99px; background: var(--ch-exp); }
.hbars b { grid-area: v; text-align: end; font-size: 13px; }
.hbars small { grid-area: p; text-align: end; font-size: 11px; }
.profit-table td { vertical-align: middle; }
.pbar { display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.pbar-fill { display: block; height: 100%; margin-inline-start: auto; background: var(--success-dot); border-radius: 99px; }
.pbar-fill.neg { background: var(--danger-dot); }
.kv-total { border-top: 1px solid var(--border-strong); padding-top: 8px; }
.rate-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rate-input { max-width: 190px; margin-inline-start: auto; }
@media (max-width: 640px) {
  .hbars li { grid-template-columns: 1fr auto; grid-template-areas: "l v" "t t" "p p"; gap: 4px 10px; }
  .hbars small { text-align: start; }
  .period-bar .cs-seg { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .period-bar .cs-seg .seg-link { flex: 1 0 auto; justify-content: center; }
  .rate-input { max-width: none; width: 100%; }
}
@media print { .period-bar .cs-seg, .ch-tip, .ch-table summary { display: none; } .ch-table { display: block; } }
.exp-status p { margin: 0; }
.exp-dash .crm-dash-nums { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.exp-dash .dash-num span { font-size: clamp(18px, 1.5vw, 21px); white-space: nowrap; }
.exp-dash .dash-num.is-danger span { color: var(--danger); }

/* ---------- Radni nalozi ---------- */
.wo-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; overflow-x: auto; }
.wo-steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.wo-steps i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-sunken); font-style: normal; font-size: 12px; }
.wo-steps li.is-done { color: var(--success); } .wo-steps li.is-done i { background: var(--success-soft); color: var(--success); }
.wo-steps li.is-now { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7c3aed)); }
.wo-steps li.is-now i { background: rgba(255,255,255,.25); color: #fff; }
.wo-desc { margin: 0; font-size: 15px; }
.wo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; }
.wo-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.wo-big { min-height: 52px; font-size: 16px; width: 100%; justify-content: center; }
.prio-high { color: var(--warning); } .prio-urgent { color: var(--danger); font-weight: 700; }
.wo-rows .wo-when { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 6px 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.wo-rows .wo-when b { font-size: 16px; } .wo-rows .wo-when small { font-size: 11px; }
.wo-row.is-urgent .wo-when { background: var(--danger-soft); color: var(--danger); }
.wo-items { display: flex; flex-direction: column; gap: 8px; }
.wo-item-head, .wo-item { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px 100px 36px; gap: 8px; align-items: center; }
.wo-item-head { padding: 0 2px; }
.wo-item .cs-input { min-height: 42px; }
.wo-total { margin-inline-start: auto; font-size: 18px; font-weight: 700; }
.wo-sign-sum { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-sunken); }
.sig-pad { position: relative; border: 1.5px dashed var(--border-strong); border-radius: 16px; background: #fff; touch-action: none; }
.sig-pad canvas { display: block; width: 100%; height: 220px; border-radius: 16px; cursor: crosshair; touch-action: none; }
.sig-hint { position: absolute; inset: auto 0 18px; text-align: center; pointer-events: none; color: #8e8e93; }
.sig-pad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #d1d1d6; pointer-events: none; }
.sig-clear { position: absolute; top: 8px; right: 8px; color: #3a3a3c; }
.geo-line { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 2px 8px; margin: 0; color: var(--ink-soft); }
.geo-line b { grid-column: 2; }
.geo-ok { color: var(--success); } .geo-bad { color: var(--warning); }
.sig-img { max-width: 100%; height: 140px; object-fit: contain; object-position: left; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.wo-edit > summary { cursor: pointer; padding: 18px 20px; list-style: none; }
.wo-edit[open] > summary { padding-bottom: 6px; }
.wo-edit > form { padding: 0 20px 20px; }
.wo-flow-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; }
.wo-flow-list li { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .wo-item-head { display: none; }
  .wo-item { grid-template-columns: 1fr 1fr 36px; grid-template-areas: "n n d" "q u u" "p p p"; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .wo-item [data-k=name] { grid-area: n; } .wo-item [data-k=qty] { grid-area: q; } .wo-item [data-k=unit] { grid-area: u; } .wo-item [data-k=price] { grid-area: p; } .wo-item [data-wo-del] { grid-area: d; }
  .wo-steps li span { display: none; } .wo-steps li.is-now span { display: inline; }
}
.row-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: 100%; }
.row-link:hover strong { color: var(--accent-ink); }

/* ---------- Zalihe ---------- */
.stock-table td { vertical-align: middle; }
.stock-table tr.is-low td:first-child { box-shadow: inset 3px 0 0 var(--warning-dot); }
.stock-bar { display: block; width: 80px; height: 4px; margin: 6px 0 0 auto; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: var(--success-dot); border-radius: 99px; }
.is-low .stock-bar i { background: var(--warning-dot); }
.inv-ic.inv-receipt { background: var(--success-soft); color: var(--success); }
.inv-ic.inv-issue { background: var(--danger-soft); color: var(--danger); }
.inv-ic.inv-transfer { background: var(--info-soft); color: var(--info); }
.inv-ic.inv-adjust { background: var(--warning-soft); color: var(--warning); }
.inv-type-hint { margin: -4px 0 14px; }
.inv-lines { display: flex; flex-direction: column; gap: 8px; }
.inv-line-head, .inv-line { display: grid; gap: 8px; align-items: center; grid-template-columns: minmax(0, 1fr) 110px 36px; }
[data-type=receipt] .inv-line-head, [data-type=receipt] .inv-line { grid-template-columns: minmax(0, 1fr) 100px 110px 110px 36px; }
[data-type=adjust] .inv-line-head, [data-type=adjust] .inv-line { grid-template-columns: minmax(0, 1fr) 90px 110px 36px; }
.inv-pick { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-pick small { min-height: 1em; font-size: 11px; }
.inv-sum, .inv-have { text-align: end; }
.inv-err { grid-column: 1 / -1; }
.inv-after { margin-top: 16px; }
.mv-kind { font-weight: 600; } .mv-in { color: var(--success); } .mv-out { color: var(--danger); }
.method-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.method-ex { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); font-size: 12.5px; line-height: 1.55; }
.stock-fields { align-items: end; }
@media (max-width: 640px) {
  .inv-line-head { display: none; }
  .inv-line, [data-type=receipt] .inv-line, [data-type=adjust] .inv-line { grid-template-columns: 1fr 1fr 44px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .inv-pick { grid-column: 1 / 3; }
  .inv-line [data-inv-del] { grid-column: 3; grid-row: 1; }
  .stock-bar { margin-left: 0; }
}
@media (max-width: 640px) { .hide-sm { display: none; } .stock-table .cs-pill { white-space: nowrap; } }

/* ---------- Plate ---------- */
.grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.w-100 { width: 100%; justify-content: center; }
.pay-ic { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pay-edits { margin-top: 18px; }
details.line-edit { border-radius: 14px; padding: 10px 12px; background: var(--surface-sunken); }
details.line-edit > summary { cursor: pointer; }
details.line-edit[open] > summary { margin-bottom: 12px; }
.sum-table tfoot td, .sum-table tfoot th { border-top: 1.5px solid var(--border-strong); padding-top: 12px; }
.warn-text { color: var(--warning); font-weight: 600; }
.cs-note { margin: 0; padding: 10px 14px; border-radius: var(--cs-r-sm); background: var(--warning-soft); color: var(--warning); font-weight: 600; font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form .cs-field { min-width: 200px; }
.danger-zone[open] { padding-top: 6px; }
.param-table td, .param-table th { white-space: nowrap; }
.pay-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.pay-name strong { display: block; }
.pay-name .muted { display: block; }
.pay-name .cs-pill { margin-top: 4px; }
.line-edit .grid-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 599.98px) { .pay-actions { grid-template-columns: 1fr; } }
.table-wrap { position: relative; } /* skriveni tekst (cs-sr) u tabeli ne smije širiti stranicu */

/* ---------- Računovodstvo: izvodi ---------- */
.acc-rows > li { display: grid; gap: 8px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.acc-main { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.acc-amt { font-weight: 700; font-size: 16px; white-space: nowrap; }
.acc-in { color: var(--success); }
.acc-main .row-txt strong, .acc-main .row-txt span { display: block; overflow-wrap: anywhere; }
.acc-actions, .acc-link { padding-left: 164px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.acc-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-radius: 12px; background: var(--success-soft); }
.acc-more[open] { flex-basis: 100%; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.map-table tr.is-header td { background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, transparent)); font-weight: 600; }
.map-table tr.is-skip td { opacity: .45; }
@media (max-width: 699.98px) { .acc-main { grid-template-columns: 1fr auto; } .acc-amt { grid-column: 1 / -1; } .acc-actions, .acc-link { padding-left: 0; } }
.acc-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: end; }
.acc-drop { flex-direction: row; justify-content: center; padding: 10px 14px; min-height: 46px; gap: 10px; }
.acc-drop .drop-name:empty { display: none; }
.acc-actions > *, .acc-more .cs-field { min-width: 0; max-width: 100%; }
.acc-more .inline-form .cs-field { min-width: 0; flex: 1 1 220px; }
.acc-more select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 699.98px) { .acc-up { grid-template-columns: 1fr; } .acc-up .cs-btn { justify-self: start; } }

/* ---------- Računovodstvo: poslovne knjige ---------- */
.acc-subject { display: grid; gap: 14px; }
.acc-subject-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.acc-subject-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, transparent)); color: var(--accent-ink, var(--accent)); }
.acc-alerts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.acc-alert { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.acc-alert-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.acc-meter { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink-soft) 16%, transparent); overflow: hidden; }
.acc-meter i { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.acc-alert.is-near .acc-meter i { background: var(--warning, #c77700); }
.acc-alert.is-over { background: color-mix(in srgb, var(--danger) 10%, var(--surface-sunken)); }
.acc-alert.is-over .acc-meter i { background: var(--danger); }
.acc-overview { display: grid; gap: 16px; }
.acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.acc-neg { color: var(--danger); }
.acc-chart-card { display: grid; gap: 10px; align-content: start; }
.acc-legend { display: flex; gap: 16px; color: var(--ink-soft); }
.acc-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.acc-legend .lg-in::before { background: var(--success); } .acc-legend .lg-out::before { background: var(--accent); }
.acc-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: end; }
.acc-col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; height: 100%; padding: 6px 2px 4px; border-radius: 12px; text-decoration: none; color: var(--ink-soft); }
.acc-col:hover, .acc-col.is-on { background: var(--surface-sunken); color: var(--ink); }
.acc-pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.acc-pair i { display: block; width: 42%; max-width: 16px; height: var(--h); min-height: 2px; border-radius: 6px 6px 2px 2px; }
.acc-pair .b-in { background: linear-gradient(180deg, var(--success), color-mix(in srgb, var(--success) 45%, transparent)); }
.acc-pair .b-out { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.acc-mlbl { font-size: 11px; text-align: center; text-transform: capitalize; }
.acc-book-head { flex-wrap: wrap; gap: 12px; }
.acc-books { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-sunken); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.acc-books::-webkit-scrollbar { display: none; }
.acc-books .seg-btn { flex: none; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.acc-books .seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.acc-period { display: flex; gap: 8px; }
.acc-book-title { font-size: 20px; margin: 18px 0 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.acc-book-note { margin: 0 0 14px; max-width: 80ch; }
.acc-tools { display: grid; gap: 14px; margin-bottom: 14px; }
.acc-actions-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.acc-export { margin-left: auto; }
.acc-add[open] { flex: 1 1 100%; order: 2; }
.acc-add > summary { list-style: none; display: inline-flex; }
.acc-add > summary::-webkit-details-marker { display: none; }
.acc-add[open] > summary { margin-bottom: 12px; }
.acc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface-sunken); align-items: end; }
.acc-form .acc-wide { grid-column: span 2; }
.acc-form-end { display: flex; align-items: end; }
.acc-callout { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft, color-mix(in srgb, var(--accent) 10%, transparent)); }
.acc-warn { color: var(--danger); font-weight: 600; }
.acc-book-wrap { max-height: 70vh; overflow: auto; }
.acc-book { font-size: 13px; }
.acc-book td { padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
.acc-book .cs-icon-btn { width: 30px; height: 30px; min-height: 30px; }
.acc-book td.acc-row-act { padding-top: 4px; padding-bottom: 4px; }
.acc-book thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: 11.5px; line-height: 1.25; vertical-align: bottom; }
.acc-book td.num, .acc-book th.num { text-align: right; white-space: nowrap; }
.acc-book .acc-c-desc, .acc-book .acc-c-partner, .acc-book .acc-c-name { min-width: 220px; }
.acc-book .acc-c-date, .acc-book .acc-c-due, .acc-book .acc-c-acquired, .acc-book .acc-c-in_use { white-space: nowrap; }
.acc-book tr.acc-sum td { background: var(--surface-sunken); font-weight: 600; }
.acc-book tr.is-closed td { opacity: .55; }
.acc-book tfoot td { position: sticky; bottom: 0; background: var(--surface); border-top: 2px solid var(--accent); font-weight: 700; }
.acc-row-act { white-space: nowrap; text-align: right; }
.acc-pack { display: grid; gap: 10px; }
.acc-pack-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-sunken); }
.acc-pack-item > div { display: grid; gap: 2px; }
.cs-input-sm { min-height: 36px; padding: 6px 10px; width: auto; }
@media (max-width: 699.98px) { .acc-tiles { grid-template-columns: 1fr; } }
@media (max-width: 699.98px) {
    .acc-subject-main { grid-template-columns: auto minmax(0, 1fr); } .acc-subject-main > .cs-btn { grid-column: 1 / -1; justify-self: start; }
    .acc-chart { height: 170px; gap: 2px; } .acc-mlbl { font-size: 9.5px; }
    .acc-form .acc-wide { grid-column: auto; } .acc-export { margin-left: 0; }
    .acc-pack-item { grid-template-columns: auto minmax(0, 1fr); } .acc-pack-item > :last-child { grid-column: 1 / -1; }
}
.acc-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.acc-subj-opt { position: relative; display: block; cursor: pointer; }
.acc-subj-opt input { position: absolute; opacity: 0; inset: 0; }
.acc-subj-card { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s; }
.acc-subj-card b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acc-subj-opt input:checked + .acc-subj-card { border-color: var(--accent); background: var(--accent-soft, color-mix(in srgb, var(--accent) 8%, transparent)); }
.acc-subj-opt input:focus-visible + .acc-subj-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-subj-books { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.acc-subj-books span { padding: 2px 8px; border-radius: 99px; background: var(--surface-sunken); }
.acc-narrow { max-width: 320px; }
.acc-row-act .row-gap { flex-wrap: nowrap; align-items: center; }

/* ---------- Izvještaji ---------- */
.rep-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.rep-presets { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-sunken); align-items: flex-start; max-width: 100%; }
.rep-preset { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; cursor: pointer; white-space: nowrap; list-style: none; }
.rep-preset::-webkit-details-marker { display: none; }
.rep-preset.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rep-custom { position: relative; }
.rep-custom-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px 10px 6px; }
.rep-custom-form .cs-field { width: 140px; }
.rep-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.rep-tabs::-webkit-scrollbar { display: none; }
.rep-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.rep-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.rep-unit { margin-bottom: 14px; max-width: 280px; }
.rep-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.rep-kpi { display: grid; gap: 4px; align-content: start; }
.rep-kpi-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.rep-kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.rep-kpi-main { background: linear-gradient(140deg, var(--accent-soft, color-mix(in srgb, var(--accent) 12%, var(--surface))), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rep-kpi-alert .rep-kpi-value { color: var(--danger); }
.rep-kpi-cmp { display: flex; gap: 6px; align-items: center; }
.is-neg { color: var(--danger); }
.rep-delta { display: inline-flex; padding: 1px 7px; border-radius: 99px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.rep-delta.is-up { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.rep-delta.is-down { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.rep-delta.is-flat { background: var(--surface-sunken); color: var(--ink-soft); }
.rep-chart-card { margin-bottom: 16px; }
.rep-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); }
.rep-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rep-legend .lg-rev::before { background: var(--success); } .rep-legend .lg-exp::before { background: var(--accent); }
.rep-legend .lg-ly::before { height: 3px; border-radius: 2px; vertical-align: 3px; background: var(--ink); }
.rep-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 240px; align-items: end; margin-top: 10px; }
.rep-col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; height: 100%; }
.rep-pair { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.rep-pair i { display: block; width: 40%; max-width: 18px; height: var(--h); min-height: 2px; border-radius: 6px 6px 2px 2px; }
.rep-pair .b-rev { background: linear-gradient(180deg, var(--success), color-mix(in srgb, var(--success) 40%, transparent)); }
.rep-pair .b-exp { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.rep-pair .b-ly { position: absolute; left: 12%; right: 12%; bottom: var(--h); height: 3px; border-radius: 2px; background: var(--ink); opacity: .55; }
.rep-mlbl { font-size: 11px; text-align: center; color: var(--ink-soft); text-transform: capitalize; }
.rep-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.rep-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rep-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 5px; }
.rep-meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.rep-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--success))); }
.rep-share { min-width: 150px; } .rep-share .rep-meter { display: inline-block; width: 90px; vertical-align: middle; margin-right: 8px; }
.rep-dl { margin: 0; display: grid; gap: 0; }
.rep-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rep-dl dt { color: var(--ink-soft); } .rep-dl dd { margin: 0; font-weight: 600; }
.rep-dl .is-total dt, .rep-dl .is-total dd { color: var(--ink); font-weight: 700; }
.rep-stack { display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: var(--surface-sunken); }
.rep-stack i { display: block; height: 100%; }
.ag-current { background: var(--success); } .ag-d30 { background: #e0a800; } .ag-d60 { background: #ef7d00; } .ag-d90 { background: #d9480f; } .ag-d90p { background: var(--danger); }
.rep-aging { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; font-size: 13px; }
.rep-aging li { display: flex; gap: 8px; align-items: center; } .rep-aging b { margin-left: auto; }
.rep-aging .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rep-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rep-h3 { font-size: 14px; margin: 10px 0 0; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rep-chips .chip { cursor: default; padding: 3px 10px; border-radius: 99px; background: var(--surface-sunken); font-size: 13px; }
.rep-chips .chip-warn { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.abc { display: inline-grid; place-items: center; min-width: 24px; height: 22px; border-radius: 7px; font-weight: 800; font-size: 12px; }
.abc-A { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.abc-B { background: color-mix(in srgb, #e0a800 22%, transparent); color: #9a6a00; }
.abc-C { background: var(--surface-sunken); color: var(--ink-soft); }
.rep-digest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; }
.rep-digest-main { display: flex; gap: 14px; align-items: center; }
.rep-digest-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, transparent)); color: var(--accent-ink, var(--accent)); }
.rep-digest-form { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; grid-column: 1 / -1; }
@media (max-width: 899.98px) { .rep-cols { grid-template-columns: 1fr; } }
@media (max-width: 699.98px) { .rep-chart { height: 180px; gap: 2px; } .rep-mlbl { font-size: 9.5px; } .rep-kpi-value { font-size: 24px; } .rep-digest { grid-template-columns: 1fr; } }

/* ---------- Najam ---------- */
.cs-pill-accent { background: var(--accent-soft); color: var(--accent-ink); } .cs-pill-accent i { background: var(--accent); }
.rent-requests .rent-req { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rent-req-main { display: grid; gap: 2px; min-width: 0; }
.rent-cal-head { flex-wrap: wrap; gap: 10px; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-sunken); }
.seg-mini a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.seg-mini a.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rent-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface-sunken); color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip-link.is-on { background: var(--accent); color: #fff; }
.rent-cal { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.rent-row { display: grid; grid-template-columns: 220px minmax(calc(var(--days) * 34px), 1fr); border-bottom: 1px solid var(--line); min-height: 52px; }
.rent-row:last-child { border-bottom: 0; }
.rent-row-head { min-height: 44px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.rent-name { position: sticky; left: 0; z-index: 1; display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); border-right: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.rent-name span { display: grid; min-width: 0; } .rent-name b, .rent-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rent-days { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); position: relative; }
.rent-day { display: grid; place-items: center; align-content: center; font-size: 12px; color: var(--ink-soft); border-left: 1px solid var(--line); line-height: 1.15; }
.rent-day b { color: var(--ink); font-size: 13px; } .rent-day small { text-transform: capitalize; }
.rent-day.is-we, .rent-cell.is-we { background: color-mix(in srgb, var(--surface-sunken) 70%, transparent); }
.rent-day.is-today b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; }
.rent-cell { border-left: 1px solid var(--line); } .rent-cell.is-today { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rent-bar { position: absolute; top: 10px; bottom: 10px; display: flex; align-items: center; padding: 0 8px; border-radius: 9px; font-size: 12px; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.rent-bar span { overflow: hidden; text-overflow: ellipsis; }
.st-request { background: repeating-linear-gradient(135deg, var(--warning-soft), var(--warning-soft) 6px, color-mix(in srgb, var(--warning) 22%, transparent) 6px, color-mix(in srgb, var(--warning) 22%, transparent) 12px); color: var(--warning); border: 1px dashed var(--warning); }
.st-reserved { background: var(--info-soft); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 40%, transparent); }
.st-out { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7c4ddb)); color: #fff; }
.st-returned { background: var(--success-soft); color: var(--success); }
.st-closed { background: var(--neutral-soft); color: var(--neutral); }
.rent-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.rent-legend .lg { padding: 2px 10px; border-radius: 7px; font-weight: 600; }
.rent-ag { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.rent-ag-main { display: grid; min-width: 0; }
.rent-ag-type { display: inline-flex; justify-content: center; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.rent-ag-type.is-out { background: var(--accent-soft); color: var(--accent-ink); } .rent-ag-type.is-in { background: var(--success-soft); color: var(--success); }
.rent-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rent-sum { position: sticky; top: 16px; }
.rent-units { margin: 0; font-weight: 600; }
.rent-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.rent-narrow { max-width: 220px; }
.rent-head { display: grid; gap: 16px; }
.rent-head-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rent-h { font-size: 24px; margin: 0; }
.rent-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rent-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-sunken); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.rent-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 12px; }
.rent-steps li.is-done { color: var(--success); } .rent-steps li.is-done span { background: var(--success); color: #fff; }
.rent-steps li.is-now { background: var(--accent); color: #fff; } .rent-steps li.is-now span { background: #fff; color: var(--accent-ink); }
.rent-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rent-facts > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.rent-facts b { font-size: 16px; }
.rent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rent-dep { align-items: flex-end; }
.rent-dmg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rent-dmg .grid-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.rent-ho { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rent-ho p { margin: 2px 0 0; }
.rent-photo-hint { margin: 0 0 -8px; }
.rent-assets { display: grid; gap: 10px; }
.rent-asset { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-sunken); }
.rent-asset.is-off { opacity: .55; }
.rent-asset h3 { margin: 0; font-size: 16px; } .rent-asset p { margin: 2px 0 0; }
.rent-asset-icon, .rent-pub-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.k-equipment { background: color-mix(in srgb, #e0a800 18%, transparent); color: #9a6a00; }
.k-vehicle { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.k-lodging { background: color-mix(in srgb, #7c4ddb 16%, transparent); color: #6a3fc4; }
.k-space { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.k-other { background: var(--neutral-soft); color: var(--neutral); }
.rent-asset-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--ink-soft); font-weight: 600; }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); } .tag-ok { background: var(--success-soft); color: var(--success); }
.rent-asset-price { display: grid; text-align: right; } .rent-asset-price b { font-size: 17px; }
.rent-asset-act { display: flex; gap: 6px; }
.rent-kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rent-kind-opt { position: relative; cursor: pointer; }
.rent-kind-opt input { position: absolute; opacity: 0; inset: 0; }
.rent-kind-opt > span { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); align-content: start; }
.rent-kind-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.rent-kind-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rent-del { margin-top: 12px; text-align: right; }
.input-prefix { display: flex; align-items: center; gap: 6px; } .input-prefix .cs-input { flex: 1; min-width: 0; }
.rent-link { display: inline-block; padding: 10px 0; word-break: break-all; }
.rent-key-new { padding: 14px 16px; border-radius: 14px; background: var(--warning-soft); }
.rent-key { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rent-key code { padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; word-break: break-all; }
[data-copy].is-done { color: var(--success); }
.rent-code { margin: 0; padding: 14px 16px; border-radius: 14px; background: #0f172a; color: #e2e8f0; font-size: 12.5px; line-height: 1.5; overflow-x: auto; }
.rent-docs > summary { margin: 4px 0 10px; }
.rent-pub-grid { display: grid; gap: 10px; }
.rent-pub-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.rent-pub-card input { position: absolute; opacity: 0; inset: 0; }
.rent-pub-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rent-pub-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rent-pub-body { display: grid; gap: 2px; min-width: 0; }
.rent-pub-attrs { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-soft); }
.rent-pub-price { display: grid; text-align: right; } .rent-pub-price b { font-size: 17px; }
.rent-pub-quote { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface-sunken); }
.rent-pub-quote b { font-size: 24px; }
@media (max-width: 899.98px) { .rent-form-grid { grid-template-columns: 1fr; } .rent-sum { position: static; } }
@media (max-width: 699.98px) {
    .rent-row { grid-template-columns: 140px minmax(calc(var(--days) * 30px), 1fr); }
    .rent-ag { grid-template-columns: 76px minmax(0, 1fr); } .rent-ag > :nth-child(3), .rent-ag > :nth-child(4) { grid-column: 2; }
    .rent-asset { grid-template-columns: auto minmax(0, 1fr); } .rent-asset-price { text-align: left; } .rent-asset-price, .rent-asset-act { grid-column: 2; }
    .rent-when { grid-template-columns: 1fr; }
    .rent-pub-card { grid-template-columns: auto minmax(0, 1fr); } .rent-pub-price { grid-column: 2; text-align: left; }
}
.rent-pub-busy { margin: 0; color: var(--ink-soft); }

/* Proizvodnja */
.prod-tiles { margin-bottom: 16px; }
.prod-start-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.prod-start-steps li { display: grid; gap: 2px; }
.prod-start-steps .link-btn { justify-self: start; }
.prod-head { display: grid; gap: 16px; }
.prod-head-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.prod-h { font-size: 24px; margin: 0; }
.prod-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prod-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-sunken); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.prod-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 12px; }
.prod-steps li.is-done { color: var(--success); } .prod-steps li.is-done span { background: var(--success); color: #fff; }
.prod-steps li.is-now { background: var(--accent); color: #fff; } .prod-steps li.is-now span { background: #fff; color: var(--accent-ink); }
.prod-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.prod-facts > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.prod-facts b { font-size: 16px; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.prod-sure { position: relative; } .prod-sure summary { list-style: none; } .prod-sure summary::-webkit-details-marker { display: none; }
.prod-sure[open] form { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--surface-sunken); max-width: 320px; }
.prod-ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prod-op { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-sunken); }
.prod-op-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); font-weight: 700; font-size: 13px; }
.prod-op.is-done .prod-op-n { background: var(--success); color: #fff; }
.prod-op.is-done .prod-op-main b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--success) 60%, transparent); }
.prod-op-main { display: grid; gap: 2px; min-width: 0; }
.prod-op-form { display: flex; gap: 6px; align-items: center; }
.prod-op-form .cs-input { width: 84px; }
.prod-finish { display: grid; grid-template-columns: minmax(0, 220px) auto; gap: 10px 12px; align-items: end; padding-top: 12px; border-top: 1px solid var(--border); }
.prod-finish p { grid-column: 1 / -1; margin: 0; }
.prod-cost { display: grid; gap: 12px; }
.prod-cost-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-sunken); }
.prod-cost-bar.sm { height: 6px; margin: 6px 0 2px; max-width: 280px; }
.prod-cost-bar i { width: var(--w); }
.c-material { background: var(--accent); } .c-labor { background: #34a36b; } .c-machine { background: #e0922a; } .c-overhead { background: #8e8e99; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.prod-cost-list { margin: 0; display: grid; gap: 4px; }
.prod-cost-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.prod-cost-list dd { margin: 0; }
.prod-cost-list .is-total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; }
.prod-unit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft, var(--surface-sunken)); }
.prod-unit b { font-size: 22px; }
.prod-est { display: grid; gap: 14px; }
tr.is-short td { background: color-mix(in srgb, var(--danger-dot, #d33) 8%, transparent); }
.is-pos { color: var(--success); }
.prod-boms { display: grid; gap: 10px; }
.prod-bom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-sunken); }
.prod-bom.is-off { opacity: .6; }
.prod-bom h3 { margin: 0; font-size: 16px; }
.prod-bom-main p { margin: 2px 0 0; }
.prod-bom-price { display: grid; justify-items: end; gap: 2px; } .prod-bom-price b { font-size: 18px; }
.prod-bom-act { display: flex; gap: 6px; }
.prod-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.prod-rows { display: grid; gap: 8px; }
.prod-row { display: grid; gap: 8px; align-items: center; }
.prod-row-mat { grid-template-columns: minmax(0, 1fr) 120px 100px 44px; align-items: start; }
.prod-row-op { grid-template-columns: minmax(0, 1fr) 200px 100px 44px; }
.prod-machines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prod-machines > li { padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); display: flex; justify-content: space-between; gap: 12px; }
.prod-machines > li > details { width: 100%; }
.prod-machines summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.prod-machines summary::-webkit-details-marker { display: none; }
.prod-machines .is-off { opacity: .6; }
.prod-mc-main { display: grid; gap: 2px; }
.prod-mc-form { margin-top: 12px; align-items: end; }
.prod-formula { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
@media (max-width: 720px) {
  .prod-row-head { display: none; }
  .prod-row-mat, .prod-row-op { grid-template-columns: 1fr 1fr 44px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .prod-row-mat .inv-pick, .prod-row-op > input:first-of-type { grid-column: 1 / 3; }
  .prod-row [data-prod-del] { grid-column: 3; grid-row: 1; }
  .prod-bom { grid-template-columns: 1fr; }
  .prod-bom-price { justify-items: start; }
  .prod-op { grid-template-columns: 28px minmax(0, 1fr); }
  .prod-op-form, .prod-op > .cs-num { grid-column: 2; }
  .prod-finish { grid-template-columns: 1fr; }
}

/* Veleprodaja */
.ws-tiles { margin-bottom: 16px; }
.ws-lines, .ws-prows { display: grid; gap: 8px; }
.ws-line { display: grid; gap: 8px; align-items: start; grid-template-columns: minmax(0, 1fr) 100px 110px 80px 100px 44px; }
.ws-line > .ws-net { align-self: center; }
.ws-net { text-align: right; font-weight: 600; }
.ws-prow { display: grid; gap: 8px; align-items: start; grid-template-columns: minmax(0, 1fr) 110px 120px 100px 44px; }
.ws-bill { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ws-bill-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-sunken); align-content: start; }
.ws-bill-head { display: flex; justify-content: space-between; gap: 10px; }
.ws-bill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ws-bill-card .cs-btn { justify-self: start; }
.ws-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 340px; overflow: auto; }
.ws-cust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-cust > li { padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); }
.ws-cust summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.ws-cust summary::-webkit-details-marker { display: none; }
.ws-cust-main { display: grid; gap: 2px; min-width: 0; }
.ws-cust-credit { display: grid; justify-items: end; gap: 4px; min-width: 160px; }
.ws-meter { display: block; width: 140px; height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.ws-meter i { display: block; height: 100%; width: var(--w); background: var(--success); }
.ws-meter.is-warn i { background: #e0922a; } .ws-meter.is-over i { background: var(--danger-dot, #d33); }
.ws-exp { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; }
.ws-exp div { display: flex; gap: 6px; } .ws-exp dd { margin: 0; font-weight: 600; }
.ws-cust-form { margin-top: 12px; align-items: end; }
@media (max-width: 760px) {
  .ws-line-head, .ws-prow-head { display: none; }
  .ws-line { grid-template-columns: 1fr 1fr 44px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .ws-line .inv-pick { grid-column: 1 / 3; }
  .ws-line > button, .ws-line > span:last-of-type:empty { grid-column: 3; grid-row: 1; }
  .ws-net { grid-column: 1 / 3; text-align: left; }
  .ws-prow { grid-template-columns: 1fr 1fr 44px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .ws-prow .inv-pick { grid-column: 1 / 3; }
  .ws-prow [data-ws-del] { grid-column: 3; grid-row: 1; }
  .ws-cust summary { flex-wrap: wrap; } .ws-cust-credit { justify-items: start; }
}

/* Gradnja */
.build-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.build-site { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface-sunken); color: inherit; text-decoration: none; align-content: start; }
.build-site:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.build-site-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.build-site-name { font-size: 17px; }
.build-site-nums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.build-progress { display: block; height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.build-progress.lg { height: 12px; background: var(--surface-sunken); }
.build-progress i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #e0922a, #f2b84b); border-radius: 99px; }
tr.build-sec td { background: var(--surface-sunken); }
.build-rows { display: grid; gap: 8px; }
.build-row { display: grid; gap: 6px; align-items: center; grid-template-columns: 150px 64px minmax(0, 1fr) 70px 100px 110px 110px 44px; }
.build-amt { text-align: right; font-weight: 600; }
.build-sit .build-q { width: 110px; margin-left: auto; text-align: right; }
.build-diary { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.build-diary li { padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); border-left: 4px solid #e0922a; }
.build-diary p { margin: 6px 0 0; }
.build-diary-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.build-issue { color: var(--danger-ink, #b3261e); }
@media (max-width: 900px) {
  .build-row-head { display: none; }
  .build-row { grid-template-columns: 1fr 1fr 44px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); }
  .build-row > input[name$="[section]"], .build-row > input[name$="[name]"] { grid-column: 1 / 3; }
  .build-row [data-build-del], .build-row > span.cs-icon-btn { grid-column: 3; grid-row: 1; }
  .build-amt { grid-column: 1 / 3; text-align: left; }
}
.mod-pick { display: grid; gap: 8px; }
.mod-pick .mod-row > .cs-num { margin-left: auto; white-space: nowrap; }
@media (max-width: 720px) {
  .build-sit thead { display: none; }
  .build-sit, .build-sit tbody { display: block; }
  .build-sit tr[data-build-line] { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .build-sit tr.build-sec { display: block; } .build-sit tr.build-sec td { display: block; }
  .build-sit td { border: 0; padding: 0; }
  .build-sit td[data-l] { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; }
  .build-sit td[data-l]::before { content: attr(data-l); color: var(--ink-muted); font-size: 13px; text-align: left; }
  .build-sit .bs-unit { color: var(--ink-muted); }
}

/* SuperAdmin: podrška, obavijest */
.imp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #5b21b6; color: #fff; font-weight: 600; }
.imp-bar form { margin-left: auto; } .imp-bar .cs-btn { background: #fff; color: #5b21b6; }
.ann-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft, #e6f0ff); color: var(--accent-ink, #0a4fa6); font-weight: 600; }
.ann-bar span { flex: 1; } .ann-bar.is-warning { background: #fff4e0; color: #8a5100; } .ann-bar.is-danger { background: #fde2e1; color: #a1201a; }
.flash.is-error { background: #fde2e1; color: #a1201a; }

/* ---------- SuperAdmin ---------- */
.adm-tabs { margin-bottom: 4px; }
.adm-cols { margin-top: 4px; }
.cs-card-sub { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.break { overflow-wrap: anywhere; }
.tile-alert { border-color: var(--danger-dot); background: linear-gradient(160deg, var(--danger-soft), transparent 70%); }
.tile-alert .cs-stat-value { color: var(--danger); }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.adm-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.adm-bar i { display: block; width: 100%; max-width: 34px; height: max(2px, var(--h)); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.adm-bar span { font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; max-width: 100%; }
.adm-bar:hover i { background: var(--accent); }
.adm-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.adm-checks li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); font-size: 13px; border-inline-start: 3px solid var(--danger-dot); }
.adm-checks li.ok { background: var(--surface-sunken); border-inline-start-color: var(--success-dot); }
.adm-checks li b { font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.adm-dl dt { color: var(--ink-soft); } .adm-dl dd { margin: 0; }
.adm-meter { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-meter li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.adm-meter li i, .adm-share i, .adm-prog i { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); min-width: 2px; border-radius: 99px; background: var(--accent); }
.adm-share, .adm-prog { display: inline-block; width: 70px; height: 6px; border-radius: 99px; background: var(--surface-sunken); vertical-align: middle; overflow: hidden; }
.adm-prog { width: 100%; }
.adm-ext { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-err { padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); border-inline-start: 3px solid var(--danger-dot); }
.adm-err.is-old { background: var(--surface-sunken); border-inline-start-color: var(--neutral-dot); }
.adm-err p { margin: 4px 0 0; }
.adm-new summary, .adm-tpl summary { cursor: pointer; list-style: none; }
.adm-new summary::-webkit-details-marker, .adm-tpl summary::-webkit-details-marker { display: none; }
.adm-new[open] summary { margin-bottom: 12px; }
.adm-tpl { border-top: 1px solid var(--line); padding: 10px 0; }
.adm-tpl summary { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.adm-tpl[open] summary { margin-bottom: 10px; }
.adm-mail-preview { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); max-height: 520px; overflow: auto; }
.adm-mail-subj { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.adm-mail-body { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.adm-mail-body img { max-width: 100%; height: auto; }
.adm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-log li { padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); border-inline-start: 3px solid var(--info-dot); }
.adm-log li.lvl-err { border-inline-start-color: var(--danger-dot); }
.adm-log li.lvl-warn { border-inline-start-color: var(--warning-dot); }
.adm-log-msg { margin: 6px 0 0; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.adm-log-trace { margin: 6px 0 0; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.adm-log summary { cursor: pointer; margin-top: 6px; color: var(--ink-soft); }
@media (max-width: 640px) { .adm-bars { height: 110px; gap: 2px; } .adm-bar span { font-size: 9px; } .adm-dl { grid-template-columns: 1fr; } .adm-dl dd { margin-bottom: 6px; } }
.adm-tools { align-items: flex-start; }
.adm-tools .cs-hint { margin-top: -6px; }
@media (min-width: 1100px) { .adm-tabs { flex-wrap: wrap; border-radius: 18px; } }
@media (min-width: 1100px) { .adm-tabs { gap: 2px; } .adm-tabs .pill-tab { padding: 8px 11px; } }
.adm-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; } .adm-mods .check { margin: 0; padding: 4px 0; }

/* ---------- Meni po grupama (odluka #137) ---------- */
.nav-list { gap: 2px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-muted); letter-spacing: .02em; }
.nav-fold > summary { list-style: none; cursor: pointer; border-radius: var(--cs-r-sm); }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary:hover { color: var(--ink); }
.nav-fold > summary svg { transition: transform .15s ease; }
.nav-fold[open] > summary svg { transform: rotate(90deg); }
.nav-admin { border-top: 1px solid var(--border); padding-top: 8px; }

/* Telefon: donja traka + meni preko cijelog ekrana */
.m-bar { display: none; }
@media (max-width: 899.98px) {
  .shell-main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .topbar .lang-form { display: none; }
  .m-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 60; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(8, 17, 31, .08); }
  .m-bar > a, .m-menu > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border-radius: 12px;
    color: var(--ink-soft); font-size: 11px; font-weight: 500; text-decoration: none; text-align: center; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
  .m-bar > a span, .m-menu > summary span { max-width: 100%; overflow: hidden; text-align: center; line-height: 1.1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
  .m-menu > summary::-webkit-details-marker { display: none; }
  .m-bar > a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 700; }
  .m-menu[open] > summary { color: var(--accent-ink); }
  .m-sheet { position: fixed; inset: 0 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0; z-index: -1; overflow-y: auto; overscroll-behavior: contain;
    padding: max(18px, env(safe-area-inset-top, 0px)) 16px 24px; background: var(--bg, var(--surface)); display: flex; flex-direction: column; gap: 18px; animation: m-up .18s ease-out; }
  .m-sheet-head { display: flex; flex-direction: column; gap: 2px; }
  .m-sheet-head strong { font-size: 20px; }
  .m-group h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
  .m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .m-grid > a, .m-grid button { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 76px; padding: 12px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .m-grid form { display: contents; }
  .m-grid > a svg, .m-grid button svg { color: var(--accent-ink); }
  .m-grid > a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
  .m-lang { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; }
  .m-logout { width: 100%; margin-top: 12px; }
  .m-foot { margin: 0; font-size: 12px; color: var(--ink-muted); }
  body:has(.m-menu[open]) { overflow: hidden; }
}
@keyframes m-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m-sheet { animation: none; } }
@media print { .m-bar { display: none !important; } }
@media (min-width: 900px) { .nav-list .cs-nav { min-height: 38px; } }
@media (max-width: 599.98px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles .cs-stat { padding: 14px; }
  .tiles .cs-stat-value { font-size: 26px; }
  .tiles .small-value { font-size: 18px; }
}
/* SuperAdmin: liste firmi i licenci (odluka #138) */
.lic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lic-list > li { display: grid; grid-template-columns: minmax(220px, 2.2fr) minmax(130px, 1fr) minmax(90px, .8fr) minmax(110px, .9fr) minmax(200px, 1.4fr); align-items: center; gap: 12px 16px; padding: 14px 4px; border-top: 1px solid var(--line); }
.co-list > li { grid-template-columns: minmax(220px, 2.2fr) minmax(150px, 1fr) minmax(160px, 1.3fr) minmax(120px, .9fr) minmax(190px, 1.3fr); }
.lic-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.lic-main:hover strong { color: var(--accent-ink); text-decoration: underline; }
.lic-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.lic-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lic-amount { display: flex; flex-direction: column; gap: 2px; }
.lic-meta { display: flex; flex-direction: column; gap: 2px; }
.lic-meta b { color: var(--ink-soft); font-weight: 600; }
.lic-days { display: inline-block; padding: 3px 9px; border-radius: 99px; background: var(--surface-sunken); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lic-days.is-soon { background: var(--warning-soft); color: var(--warning); }
.lic-days.is-late { background: var(--danger-soft); color: var(--danger); }
.co-mods { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.co-chip { padding: 2px 8px; border-radius: 99px; background: var(--surface-sunken); font-size: 11.5px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.co-chip.is-more { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.tile-link.is-on { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 1099.98px) {
  .lic-list > li, .co-list > li { grid-template-columns: 1fr auto; }
  .lic-main { grid-column: 1 / -1; }
  .lic-meta, .co-mods { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .lic-amount { text-align: end; align-items: flex-end; }
}

/* 2FA i Moja sigurnost (2.2.1) */
.sec-card { gap: 14px; }
.sec-setup { max-width: 560px; }
.sec-badge { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); }
.sec-badge.is-ok { background: var(--success-soft); color: var(--success); }
.sec-code { font-size: 24px; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.sec-steps { margin: 0; padding: 0; list-style: none; counter-reset: sec; display: grid; gap: 16px; }
.sec-steps > li { counter-increment: sec; display: grid; gap: 8px; padding-left: 40px; position: relative; }
.sec-steps > li::before { content: counter(sec); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.sec-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sec-qr-img { background: #fff; border-radius: 12px; padding: 6px; line-height: 0; border: 1px solid var(--line); }
.sec-qr-img svg { width: 180px; height: 180px; }
.sec-secret { font-size: 15px; letter-spacing: .08em; word-break: break-all; background: var(--surface-2, var(--neutral-soft)); padding: 8px 10px; border-radius: 8px; user-select: all; }
.sec-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sec-codes code { display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--neutral-soft); font-size: 15px; letter-spacing: .06em; user-select: all; }
.sec-help summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.sec-help p { margin-top: 8px !important; }
.sec-inline .cs-input { max-width: 260px; }
.sec-act { position: relative; }
.sec-act > summary { list-style: none; }
.sec-act > summary::-webkit-details-marker { display: none; }
.sec-act-body { display: grid; gap: 12px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 220px; }
@media (max-width: 640px) { .sec-qr { justify-content: center; } .sec-inline .cs-input { max-width: none; } }
