/* Espejček – temni izgled. Barve in razmiki so na enem mestu (:root).
   Public Sans je v aplikaciji (latin + latin-ext, da so č, š, ž), ne z Googlovega strežnika. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #15171C;
  --side: #1B1E25;
  --card: #22252D;
  --card-2: #2A2E37;
  --input: #1C1F26;
  --line: #343844;
  --line-soft: #2B2F38;
  --ink: #ECEEF2;
  --muted: #A0A6B2;
  --faint: #969EAE;
  --accent: #FF6B1A;
  --accent-gumb: #C4470A;
  --accent-dark: #FF8A47;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(255, 107, 26, .14);
  --ok: #34C47C;
  --ok-ink: #63D99D;
  --ok-soft: rgba(52, 196, 124, .14);
  --warn: #F5B83D;
  --warn-dot: #F5B83D;
  --warn-soft: rgba(245, 184, 61, .14);
  --warn-bar: #B8892E;
  --late: #F2766B;
  --late-dot: #F2665A;
  --late-soft: rgba(242, 102, 90, .15);
  --blue: #8FB0FF;
  --blue-soft: rgba(110, 145, 255, .16);
  --chip: #2F333D;
  --r: 12px;
  --side-w: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums;
  color-scheme: dark;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

/* ---------- okvir: stranski meni, zgornja vrstica ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--side); border-right: 1px solid var(--line-soft);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 18px 0 16px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 0 22px 22px; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; }
.logo-ime { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.logo-ime b { color: var(--accent); font-weight: 700; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a, .snav summary {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: var(--muted);
  text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; position: relative;
}
.snav summary::-webkit-details-marker { display: none; }
.snav a:hover, .snav summary:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.snav a.on, .snav summary.on { background: var(--accent-gumb); color: #fff; font-weight: 600; }
.snav svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.snav .puscica { margin-left: auto; width: 14px; height: 14px; transition: transform .15s; }
.snav details[open] > summary .puscica { transform: rotate(90deg); }
.snav .stevec-n { margin-left: auto; font-size: 12px; background: var(--late); color: #fff; border-radius: 999px; padding: 0 7px; font-weight: 700; }
.podmeni { display: flex; flex-direction: column; padding: 4px 0 8px; max-height: 46vh; overflow-y: auto; }
.snav .podmeni a { padding: 7px 22px 7px 53px; font-size: 14px; font-weight: 400; }
.snav .podmeni a.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.snav .podmeni a.dodaj { color: var(--faint); }
.side-noga { margin-top: auto; padding: 16px 22px 0; font-size: 12px; color: var(--faint); }

.prijava-telo { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.prijava-kartica { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.prijava-kartica .logo { padding: 0; }
.prijava-kartica h1 { font-size: 22px; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 8px; display: block; }
.kode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kode code { font-size: 15px; letter-spacing: .04em; }

.glavno { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(21,23,28,.92); backdrop-filter: blur(8px);
  display: grid; grid-template-columns: 1fr minmax(260px, 560px) 1fr; align-items: center; gap: 16px;
  padding: 12px 28px; border-bottom: 1px solid var(--line-soft);
}
.iskanje { grid-column: 2; position: relative; }
.iskanje input {
  width: 100%; min-height: 42px; border-radius: 999px; padding: 8px 16px 8px 42px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.iskanje svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.top-desno { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn.meni-gumb { display: none; }
.meni-zavesa { display: none; }
.pasica { background: var(--late-soft); border: 1px solid var(--late); border-radius: 10px; padding: 12px 14px; }
.pasica a { font-weight: 600; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 26px 28px 80px; display: flex; flex-direction: column; gap: 22px; }

/* meni Moj račun */
.meni { position: relative; }
.meni > summary { list-style: none; cursor: pointer; padding: 6px 10px 6px 6px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); }
.meni > summary::-webkit-details-marker { display: none; }
.meni > summary:hover, .meni[open] > summary { border-color: var(--faint); }
.meni-krog { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.meni-ime { display: flex; flex-direction: column; line-height: 1.15; }
.meni-ime small { color: var(--faint); font-size: 11.5px; }
.meni-vsebina { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card-2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.45); min-width: 230px; padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.meni-vsebina a, .meni-vsebina button { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 7px; font-size: 14px; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.meni-vsebina a:hover, .meni-vsebina a.on, .meni-vsebina button:hover { background: rgba(255,255,255,.06); }
.meni-vsebina .meni-glava { padding: 8px 12px 8px; font-size: 12.5px; color: var(--faint); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; z-index: 30; top: 0; left: 0; height: 100vh; width: min(300px, 86vw); }
  .app.meni-odprt .side { display: flex; }
  .app.meni-odprt .meni-zavesa { display: block; position: fixed; inset: 0; z-index: 25; border: 0; padding: 0; background: rgba(0,0,0,.45); cursor: pointer; }
  .btn.meni-gumb { display: inline-flex; grid-column: 1; grid-row: 1; }
  .topbar { grid-template-columns: auto minmax(0, 1fr); padding: 10px 16px; }
  .top-desno { grid-column: 2; grid-row: 1; }
  .iskanje { grid-column: 1 / -1; grid-row: 2; }
  .wrap { padding: 18px 16px 60px; }
}

/* ---------- glave strani ---------- */
.crumb { font-size: 12.5px; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.sub { font-size: 14px; color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head .t { display: flex; flex-direction: column; gap: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- kartice in mreže ---------- */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.pad { padding: 16px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-2-1, .grid-2 { grid-template-columns: 1fr; } }

.kpi { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi .l { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.acc .v { color: var(--ok-ink); }
.kpi.warn .v { color: var(--warn); }
.kpi.late .v { color: var(--late); }
.bar { height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.bar > div { height: 8px; border-radius: 4px; background: var(--accent); }
button.kpi.tile { font: inherit; text-align: left; color: inherit; cursor: pointer; width: 100%; transition: border-color .15s, box-shadow .15s; }
button.kpi.tile .l, button.kpi.tile .v, button.kpi.tile .s { display: block; }
button.kpi.tile .s u { text-decoration: none; color: var(--accent); }
button.kpi.tile:hover { border-color: var(--line); background: var(--card-2); }
button.kpi.tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
button.kpi.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- gumbi in obrazci ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #333845; color: var(--ink); border-color: #454a58; }
.btn.primary { background: var(--accent-gumb); border-color: var(--accent-gumb); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #A63C0C; border-color: #A63C0C; color: #fff; }
.btn.danger { color: var(--late); }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.btn.big { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn.round { width: 40px; min-height: 40px; padding: 0; border-radius: 20px; font-size: 18px; }
.btn.icon { min-width: 32px; padding: 0 8px; font-size: 16px; letter-spacing: 1px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: default; pointer-events: none; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
button.link:hover { text-decoration: underline; }

label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 5px; }
.lbl { font-size: 13px; color: var(--muted); display: block; margin-bottom: 2px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--input); font: inherit; font-size: 15px; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input[readonly] { color: var(--muted); }
input[type=file] { color: var(--muted); font: inherit; font-size: 14px; }
input[type=file]::file-selector-button { font: inherit; font-size: 14px; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); cursor: pointer; }
textarea { min-height: 70px; resize: vertical; }
:focus-visible { outline: 2px solid #FFE8D6; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #FFE8D6; outline-offset: 2px; border-color: var(--accent); }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.f-1 { grid-column: span 1; } .f-2 { grid-column: span 2; } .f-3 { grid-column: span 3; } .f-4 { grid-column: span 4; } .f-6 { grid-column: span 6; }
@media (max-width: 900px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-3, .f-4, .f-6 { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin: 0; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); }
.hint.small { font-size: 13px; }

/* ---------- sporočila ---------- */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: rgba(52,196,124,.25); }
.flash.napaka { background: var(--late-soft); color: var(--late); border-color: rgba(242,102,90,.3); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.note-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font-size: 14px; color: var(--muted); }
.note-box b { color: var(--ink); }
.warn-card { border-left: 4px solid var(--warn); }
.warn-card ul.list { margin: 0; padding-left: 20px; }
.warn-card li { margin: 4px 0; }

/* ---------- tabele ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 11px 12px; background: var(--card-2); white-space: nowrap; letter-spacing: .01em; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tbody tr:hover td { background: rgba(255,255,255,.025); }
table.t .r, table.t th.r { text-align: right; }
table.t a.row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
table.t a.row-link:hover { color: var(--accent); }
table.t tfoot td { border-bottom: none; padding-top: 12px; }
table.t tr.sel td { background: var(--accent-soft); }
table.t.mini { font-size: 14px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
table.t.mini td, table.t.mini th { padding: 8px 10px; }
.pill { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.late { background: var(--late-soft); color: var(--late); }
.pill.grey { background: var(--chip); color: var(--muted); }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); margin-left: 6px; vertical-align: 1px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 2px 4px 2px 12px; font-size: 13px; }
.chip button { border: none; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; }
.chip button:hover { background: rgba(255,255,255,.1); }
dl.meta { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }
dl.sums { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 24px; margin: 0; font-size: 14px; }
dl.sums dt { color: var(--muted); }
dl.sums dd { margin: 0; font-weight: 600; text-align: right; }

/* zavihki */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); }
.tab, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; margin-bottom: -1px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover, .tabs a:hover { color: var(--ink); }
.tab.on, .tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.stevec { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; font-weight: 700; }

/* ---------- graf in kupci ---------- */
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 230px; }
.chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 230px; }
.chart .val { font-size: 12px; color: var(--muted); }
.chart .stack { width: 100%; max-width: 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.chart .o { background: #5B4A2C; border-radius: 4px 4px 0 0; }
.chart .p { background: var(--accent); }
.chart .stack .p:first-child { border-radius: 4px 4px 0 0; }
.chart .m { font-size: 13px; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.buyer { display: flex; flex-direction: column; gap: 6px; }
.buyer .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.buyer .b { height: 6px; border-radius: 3px; background: var(--chip); }
.buyer .b div { height: 6px; border-radius: 3px; background: var(--accent); }

/* ---------- domača stran ---------- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav .name { font-size: 17px; font-weight: 600; min-width: 160px; text-align: center; text-transform: capitalize; }
.reminders { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.reminder {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); font: inherit; color: var(--ink);
  position: relative; overflow: hidden;
}
.reminder::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--faint); }
.reminder:hover { background: var(--card-2); }
.reminder.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.reminder.done::before { background: var(--ok); }
.reminder.soon::before { background: var(--warn); }
.reminder.late::before { background: var(--late-dot); }
.rm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rm-ime { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.rm-ime svg { width: 20px; height: 20px; color: var(--accent); }
.rm-kdaj { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.reminder.done .rm-kdaj { color: var(--ok-ink); }
.reminder.soon .rm-kdaj { color: var(--warn); }
.reminder.late .rm-kdaj { color: var(--late); }
.rm-st { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.rm-st small { font-size: 14px; color: var(--muted); font-weight: 500; }
.segs { display: flex; gap: 4px; }
.segs .sg { flex: 1; height: 6px; border-radius: 3px; background: var(--chip); }
.segs .sg.done { background: var(--ok); }
.segs .sg.prog { background: var(--accent); }
.rm-kdo { font-size: 13px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
table.board th { padding: 11px 12px; }
table.board > thead > tr > th:first-child, table.board > tbody > tr > td:first-child { padding-left: 20px; }
table.board > tbody > tr > td { padding: 12px; }
table.board td.cl { min-width: 220px; }
@media (max-width: 700px) {
  .grid-4 { grid-template-columns: 1fr; }
  table.ozko { display: block; }
  table.ozko thead { display: none; }
  table.ozko tbody, table.ozko tfoot { display: block; }
  table.ozko tr {
    display: block; margin: 10px 12px; padding: 6px 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--input);
  }
  table.ozko td {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 5px 12px; border: 0; text-align: right; white-space: normal !important; min-width: 0 !important;
  }
  table.ozko td[data-naslov]::before {
    content: attr(data-naslov); color: var(--muted); font-size: 12.5px; font-weight: 600;
    text-align: left; flex: 0 0 auto;
  }
  table.ozko td[data-naslov=""]::before { content: none; }
  table.ozko td.k-glava { font-size: 16px; justify-content: flex-start; padding-top: 8px; }
  table.ozko td.k-dejanje { justify-content: flex-end; flex-wrap: wrap; padding-bottom: 10px; }
  table.ozko td.k-polno { flex-direction: column; align-items: stretch; text-align: left; }
  table.ozko tr.det-row { margin: 0 12px 10px; padding: 0; border: 0; background: transparent; }
  table.ozko tr.det-row td { display: block; text-align: left; padding: 0 0 8px; }
  table.ozko tr.det-row td::before { content: none; }
  table.ozko tfoot tr { background: transparent; border: 0; margin-top: 0; }
  table.ozko td:empty { display: none; }
}
table.board tr.cl-row td { border-bottom: 1px solid var(--line-soft); }
table.board tr:hover td { background: none; }
.dim { opacity: .35; }
.det-row td { padding: 0 20px 16px !important; border-bottom: 1px solid var(--line-soft); }
.det { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.det-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.welcome { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* opravila */
.task {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; max-width: 100%;
  padding: 4px 14px 4px 10px; border-radius: 20px; border: 1px solid transparent; font: inherit; text-align: left; cursor: pointer;
}
.task .dot { width: 8px; height: 8px; border-radius: 4px; flex: none; background: var(--faint); }
.task .tx { display: flex; flex-direction: column; line-height: 1.25; }
.task .st { font-size: 13.5px; font-weight: 600; }
.task .rk { font-size: 12px; opacity: .85; white-space: nowrap; }
.task.open { background: var(--chip); color: var(--ink); }
.task.open .rk { color: var(--muted); }
.task.soon { background: var(--warn-soft); color: var(--warn); }
.task.soon .dot { background: var(--warn-dot); }
.task.late { background: var(--late-soft); color: var(--late); }
.task.late .dot { background: var(--late-dot); }
.task.done { background: var(--ok-soft); color: var(--ok-ink); }
.task.done .dot { background: var(--ok); }
.task.inprog .dot { background: var(--accent); }
.task:hover { filter: brightness(1.12); }
.task[aria-expanded="true"] { border-color: var(--ink); }
.na { color: var(--faint); font-size: 13px; padding-left: 10px; }
.own { display: flex; flex-direction: column; gap: 6px; }
.addtask { display: flex; gap: 6px; margin-top: 4px; }
.addtask input { min-height: 34px; font-size: 13px; padding: 4px 8px; }
details.add summary { cursor: pointer; font-size: 13px; color: var(--accent); list-style: none; }
details.add summary::-webkit-details-marker { display: none; }

/* ---------- obrazec računa ---------- */
.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 13px; color: var(--muted); font-weight: 500; text-align: left; padding: 6px 6px; }
.items td { padding: 4px 6px; vertical-align: top; }
.items textarea { min-height: 40px; height: 40px; }
.items .num input { text-align: right; }
.items .amt { text-align: right; padding-top: 12px; font-weight: 500; white-space: nowrap; }
.x { border: none; background: none; color: var(--muted); font-size: 20px; cursor: pointer; width: 36px; height: 40px; border-radius: 8px; }
.x:hover { background: var(--late-soft); color: var(--late); }
.totals { margin-left: auto; width: 340px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.totals .row { display: flex; justify-content: space-between; }
.totals .grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 19px; font-weight: 700; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(21,23,28,.94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 28px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin: 0 -28px; z-index: 5; }
.preview { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.calc { min-height: 40px; display: flex; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.iz-maila summary { cursor: pointer; }

/* ---------- pošta ---------- */
.mail { border-top: 1px solid var(--line-soft); padding: 13px 20px; display: flex; flex-direction: column; gap: 4px; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.mail-zadeva { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.mail.neprebran .mail-zadeva { font-weight: 600; }
.mail-izsek { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pika { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.mail-stanje { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.mail-stanje .pill { font-size: 12px; padding: 1px 8px; }
.mail-stanje button.link.hint { color: var(--muted); font-weight: 400; }
.mail-akcije { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 2px; }
.mail-akcije a, .mail-akcije .link { font-weight: 600; text-decoration: none; }
.mail-akcije a.hint { color: var(--muted); font-weight: 500; }
.mail-akcije a:hover { text-decoration: underline; }
.mail-akcije form.inline, .mail-stanje form.inline { display: inline; margin: 0; }
.mail-telo, .mail-besedilo { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.5; background: var(--input); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; max-height: 420px; overflow: auto; margin-top: 6px; color: var(--ink); }
.mail-odgovor { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mail-odgovor textarea { min-height: 110px; }
.posta-filtri { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.posta-filtri select { width: auto; min-width: 220px; }

/* pošiljanje računa */
.priloge { display: flex; flex-direction: column; gap: 6px; }
.prl { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); }
.prl a { margin-left: auto; }
.mail-predogled { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--input); }
.mp-vrsta { font-size: 14px; }
.mp-telo { white-space: pre-wrap; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; min-height: 60px; }
.mp-priloge { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-priloga { font-size: 13px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 4px 8px; }
.mp-citat { border-left: 3px solid var(--line); padding-left: 10px; margin-top: 6px; }

/* izvozi, uvoz, prejeti */
.card.exp { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card.exp h2, .card.exp p { margin: 0; }
.viri { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vir { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--input); }
.vir:hover { border-color: var(--accent); color: var(--ink); }
.vir.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 13px 15px; }
.vir.onemogocen { opacity: .5; }
ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; }
ol.steps li.done > b { color: var(--ok-ink); }

/* obveznosti (VIES, DDV, prispevki) */
.st-gumbi { display: flex; gap: 6px; flex-wrap: wrap; }
.povzetek { display: flex; gap: 22px; flex-wrap: wrap; }
.povzetek div { display: flex; flex-direction: column; }
.povzetek b { font-size: 22px; font-weight: 700; }
.povzetek span { font-size: 13px; color: var(--muted); }
.honorar input { max-width: 130px; text-align: right; }

/* iskanje */
.zadetki a { color: var(--ink); text-decoration: none; }
.zadetki a:hover { color: var(--accent); }
mark { background: var(--accent-soft); color: var(--accent-dark); padding: 0 2px; border-radius: 3px; }

#racuni, #prihodki-panel, #posta, #opravila-stranke { scroll-margin-top: 90px; }

/* popravki */
.iskanje input[type=search] { padding-left: 44px; border-radius: 999px; min-height: 42px; background: var(--card); }
.task .st, .task .rk { white-space: nowrap; }
.snav a, .snav summary { white-space: nowrap; }
.btn.primary:disabled { opacity: 1; cursor: default; }
.st-gumbi .btn:disabled:not(.primary) { opacity: .5; }
table.board td { vertical-align: middle; }

/* filtri v glavi tabele (kot v Excelu) */
table.filtrabilna th[data-f] { position: relative; padding-right: 28px; }
.fth-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 5px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; padding: 0; }
.fth-btn:hover { color: var(--ink); border-color: var(--line); background: var(--card); }
th.aktiven { color: var(--accent) !important; }
th.aktiven .fth-btn { color: #fff; background: var(--accent); border-color: var(--accent); }
.fpop { position: absolute; z-index: 60; width: 270px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fpop-sort { background: none; border: 0; color: var(--ink); text-align: left; padding: 7px 8px; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.fpop-sort:hover { background: rgba(255,255,255,.06); }
.fpop-isci { min-height: 34px !important; font-size: 14px !important; margin-top: 2px; }
.fpop-seznam { max-height: 260px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px; background: var(--input); }
.fpop-v { display: flex; align-items: center; gap: 8px; padding: 5px 6px; margin: 0; font-size: 14px; color: var(--ink); border-radius: 5px; cursor: pointer; }
.fpop-v:hover { background: rgba(255,255,255,.04); }
.fpop-v input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.fpop-v span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpop-v small { color: var(--faint); font-size: 12px; }
.fpop-vse { border-bottom: 1px solid var(--line-soft); border-radius: 0; margin-bottom: 2px; }
.fpop-gumbi { display: flex; justify-content: flex-end; gap: 6px; padding-top: 2px; }
.rok-dni { display: flex; gap: 8px; align-items: center; }
.rok-dni .dni { width: 84px; flex: none; text-align: right; }
.rok-dni span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.rok-dni input[type=date] { min-width: 0; flex: 1; }
.rok-dni .dni { min-width: 0; }
table.t td.r { white-space: nowrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; margin-bottom: -1px; border-radius: 0; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; background: none; }

/* PDF v stranskem oknu */
.pdf-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(52vw, 900px); z-index: 70; background: var(--side); border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0,0,0,.45); display: flex; flex-direction: column; animation: pdfIn .18s ease-out; }
@keyframes pdfIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pdf-glava { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pdf-glava b { font-size: 16px; }
.pdf-panel iframe { flex: 1; width: 100%; border: 0; background: #525659; }

tr.pdf-izbrana td { background: var(--accent-soft) !important; }
@media (max-width: 1100px) { .pdf-panel { width: 100vw; } }

/* davčni pregled normiranca */
.dp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dp-seznam { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.dp + .dp { border-top: 1px solid var(--line-soft); }
.dp summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.dp summary::-webkit-details-marker { display: none; }
.dp summary:hover { background: rgba(255,255,255,.03); }
.dp-l { flex: 1; min-width: 0; }
.dp-v { font-weight: 700; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.dp-v small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.dp-i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted);
        display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-style: italic; }
.dp[open] .dp-i { background: var(--accent); border-color: transparent; color: #fff; }
.dp-txt { padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* portal za stranke */
.portal-podjetje { flex: 1; min-width: 0; font-size: 15px; }
.portal-podjetje select { max-width: 320px; }
.placilo-forma { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; flex-wrap: wrap; }
.placilo-forma input[type=date] { width: 150px; padding: 5px 8px; }
.furs-seznam { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.furs-nalog > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.furs-nalog > summary::-webkit-details-marker { display: none; }
.furs-nalog.placan { opacity: .75; }
.fn-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fn-v { font-size: 20px; font-weight: 700; }
.fn-telo { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin: 16px 0 10px; }
.fn-qr { background: #fff; border-radius: 10px; padding: 6px; width: 220px; height: 220px; }
.an-graf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; margin: 8px 0 16px; }
.an-stolpec { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.an-pari { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.an-pari span { width: 42%; border-radius: 4px 4px 0 0; min-height: 2px; }
.an-t, .leg-t { background: var(--accent); }
.an-l, .leg-l { background: var(--line); }
.leg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.an-ime { font-size: 12px; color: var(--muted); }
.an-kupec { margin-bottom: 12px; }
.an-kupec-glava { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.kalk { margin-top: 12px; }
.kalk td:first-child { color: var(--muted); }
.kalk-forma label { display: block; margin-bottom: 4px; }
@media (max-width: 700px) { .an-graf { gap: 3px; height: 160px; } .fn-telo { flex-direction: column; } }

/* =====================================================================
   Tema »mehke kartice« (svetla privzeto, temna po izbiri ali po sistemu)
   ===================================================================== */
:root {
  --bg: #F4F4F2; --side: #F4F4F2; --card: #FFFFFF; --card-2: #FFFFFF; --input: #FFFFFF;
  --line: #E2E2DF; --line-soft: #EEEEEC; --ink: #17181B; --muted: #5F626B; --faint: #6B6E77;
  --accent: #E8590C; --accent-gumb: #C2410C; --accent-gumb-hover: #A8380A; --accent-dark: #B23A06; --accent-ink: #FFFFFF; --accent-soft: rgba(232, 89, 12, .10);
  --ok: #12804F; --ok-ink: #0F6B42; --ok-soft: #E4F4EA;
  --warn: #9A5806; --warn-dot: #F5A524; --warn-soft: #FDF1DC; --warn-bar: #E0A63A;
  --late: #B42318; --late-dot: #E5484D; --late-soft: #FCE8E4;
  --blue: #2F5FD0; --blue-soft: #E6EDFD; --chip: #EEEEEC;
  --r: 18px; --shadow: 0 1px 2px rgba(20,20,20,.04), 0 4px 16px rgba(20,20,20,.05);
  --hover: rgba(0,0,0,.035); --hover-2: rgba(0,0,0,.06); --topbar-bg: rgba(244,244,242,.88);
  --pop-shadow: 0 12px 32px rgba(20,20,20,.14); --focus: #E8590C; --chart-o: #E9D7C3; --pdf-bg: #E9E9E6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="svetlo"]) {
    --bg: #121316; --side: #121316; --card: #1B1D21; --card-2: #22252A; --input: #16181B;
    --line: #30333A; --line-soft: #26292E; --ink: #ECEDF0; --muted: #A2A5AE; --faint: #8F939C;
    --accent: #FF7A2F; --accent-gumb: #C4470A; --accent-gumb-hover: #A63C0C; --accent-dark: #FF9A5C; --accent-soft: rgba(255,122,47,.14);
    --ok: #34C47C; --ok-ink: #63D99D; --ok-soft: rgba(52,196,124,.14);
    --warn: #F5B83D; --warn-dot: #F5B83D; --warn-soft: rgba(245,184,61,.14); --warn-bar: #B8892E;
    --late: #F2766B; --late-dot: #F2665A; --late-soft: rgba(242,102,90,.15);
    --blue: #8FB0FF; --blue-soft: rgba(110,145,255,.16); --chip: #2A2D33;
    --shadow: none; --hover: rgba(255,255,255,.04); --hover-2: rgba(255,255,255,.08); --topbar-bg: rgba(18,19,22,.88);
    --pop-shadow: 0 16px 40px rgba(0,0,0,.5); --focus: #FFE8D6; --chart-o: #5B4A2C; --pdf-bg: #525659;
    color-scheme: dark;
  }
}
:root[data-tema="temno"] {
  --bg: #121316; --side: #121316; --card: #1B1D21; --card-2: #22252A; --input: #16181B;
  --line: #30333A; --line-soft: #26292E; --ink: #ECEDF0; --muted: #A2A5AE; --faint: #8F939C;
  --accent: #FF7A2F; --accent-gumb: #C4470A; --accent-gumb-hover: #A63C0C; --accent-dark: #FF9A5C; --accent-soft: rgba(255,122,47,.14);
  --ok: #34C47C; --ok-ink: #63D99D; --ok-soft: rgba(52,196,124,.14);
  --warn: #F5B83D; --warn-dot: #F5B83D; --warn-soft: rgba(245,184,61,.14); --warn-bar: #B8892E;
  --late: #F2766B; --late-dot: #F2665A; --late-soft: rgba(242,102,90,.15);
  --blue: #8FB0FF; --blue-soft: rgba(110,145,255,.16); --chip: #2A2D33;
  --shadow: none; --hover: rgba(255,255,255,.04); --hover-2: rgba(255,255,255,.08); --topbar-bg: rgba(18,19,22,.88);
  --pop-shadow: 0 16px 40px rgba(0,0,0,.5); --focus: #FFE8D6; --chart-o: #5B4A2C; --pdf-bg: #525659;
  color-scheme: dark;
}
body { color-scheme: inherit; }

/* okvir */
.side { background: var(--side); border-right: 0; padding: 22px 12px 16px; }
.logo { padding: 4px 12px 26px; }
.logo svg { display: none; }
.logo-ime { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.logo-pika { color: var(--accent); }
.snav { gap: 4px; }
.snav a, .snav summary { padding: 11px 12px; border-radius: 12px; }
.snav a:hover, .snav summary:hover { background: var(--hover); }
.snav a.on, .snav summary.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.snav .podmeni a { padding: 7px 12px 7px 43px; border-radius: 10px; }
.snav .podmeni a.on { background: var(--accent-soft); color: var(--accent-dark); }
.side-noga { padding: 16px 12px 0; }
.topbar { background: var(--topbar-bg); border-bottom: 0; }
.iskanje input { background: var(--card); border-color: var(--line-soft); box-shadow: var(--shadow); }
.sticky-actions { background: var(--topbar-bg); }

/* kartice in ploščice */
.card, .kpi { border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
:root[data-tema="temno"] .card, :root[data-tema="temno"] .kpi { border: 1px solid var(--line-soft); }
.kpi.tile { border: 2px solid transparent; }
.kpi.tile[aria-pressed="true"] { border-color: var(--accent); }
.dp-seznam { border-color: var(--line-soft); border-radius: 14px; }

/* gumbi, polja */
.btn { border-radius: 12px; background: var(--card); border-color: var(--line); }
.btn:hover { background: var(--hover-2); color: var(--ink); border-color: var(--line); }
.btn.primary { background: var(--accent-gumb); border-color: var(--accent-gumb); color: #fff; }
.btn.primary:hover { background: var(--accent-gumb-hover); border-color: var(--accent-gumb-hover); color: #fff; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea { border-radius: 10px; }
input[type=file]::file-selector-button { background: var(--card); border-radius: 10px; }
:focus-visible { outline-color: var(--focus); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--focus); }

/* tabele, meniji, ostalo */
table.t tbody tr:hover td { background: var(--hover); }
.chip button:hover { background: var(--hover-2); }
.chart .o { background: var(--chart-o); }
.meni > summary { background: var(--card); border-color: var(--line-soft); box-shadow: var(--shadow); }
.meni-vsebina, .fpop { background: var(--card); box-shadow: var(--pop-shadow); border-color: var(--line-soft); border-radius: 14px; }
.meni-vsebina a:hover, .meni-vsebina a.on, .meni-vsebina button:hover, .fpop-sort:hover, .fpop-v:hover, .dp summary:hover { background: var(--hover); }
.pdf-panel { box-shadow: var(--pop-shadow); }
.pdf-panel iframe { background: var(--pdf-bg); }
.flash.ok { border-color: transparent; }
.flash.napaka { border-color: transparent; }
.pasica { border: 0; }
.prijava-kartica { box-shadow: var(--shadow); }

/* preklop teme */
.tema-gumb { width: 40px; padding: 0; }
.tema-gumb .ik-sonce { display: none; }
:root[data-tema="temno"] .tema-gumb .ik-sonce { display: block; }
:root[data-tema="temno"] .tema-gumb .ik-luna { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema]) .tema-gumb .ik-sonce { display: block; }
  :root:not([data-tema]) .tema-gumb .ik-luna { display: none; }
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="svetlo"]) .card, :root:not([data-tema="svetlo"]) .kpi { border: 1px solid var(--line-soft); } }

/* portal: domača stran (meje, davki) */
.meje { display: flex; flex-direction: column; gap: 18px; }
.meja { display: flex; flex-direction: column; gap: 8px; }
.meja-glava { display: flex; justify-content: space-between; gap: 12px; }
.meja-glava b { font-weight: 600; text-align: right; }
.meja-trak { height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.meja-trak > div { height: 100%; border-radius: 4px; background: var(--accent); }
.meja-opis { font-size: 13px; color: var(--muted); }
.vrstice { display: flex; flex-direction: column; }
.vrstica { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.vrstica span { color: var(--muted); }
.vrstica b { font-weight: 500; text-align: right; }

/* gumb i z razlago (odpre oblaček, ne premakne vsebine) */
.info { display: inline-block; vertical-align: middle; position: relative; }
.info > summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-style: italic; margin-left: 4px; }
.info > summary::-webkit-details-marker { display: none; }
.info[open] > summary { background: var(--accent); border-color: var(--accent); color: #fff; }
.info-txt { position: absolute; z-index: 30; top: 28px; left: -8px; width: min(330px, 78vw); padding: 12px 14px; border-radius: 12px;
  background: var(--card); color: var(--muted); box-shadow: var(--pop-shadow); border: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.5; font-weight: 400; text-align: left; white-space: normal; }
.info-txt b { color: var(--ink); }
.kpi.ima-info { position: relative; }
.kpi.ima-info > .info { position: absolute; top: 16px; right: 16px; }
.kpi.ima-info > .info .info-txt { left: auto; right: -8px; }
.kpi-gumb { align-self: flex-start; margin-top: 8px; }

.vrstica b.znesek-dopl, .info-txt b.znesek-dopl { color: var(--late); }
.vrstica b.znesek-vrac, .info-txt b.znesek-vrac { color: var(--ok-ink); }

/* portal: plačilo v eni vrstici */
.placilo-celica { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.placilo-pop { position: relative; }
.placilo-pop > summary { list-style: none; }
.placilo-pop > summary::-webkit-details-marker { display: none; }
.placilo-pop[open] > summary { display: none; }
.placilo-okno { display: flex; align-items: center; gap: 6px; }
.placilo-okno input[type=date] { width: 150px; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.placilo-okno label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 0.23: realni dobiček, kalkulator s primerjavo, analitika */
.kpi .v .v-enota { font-size: 15px; font-weight: 500; color: var(--muted); }
.kpi .s b { color: var(--ink); }
.kalk-povzetek { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 16px 0 6px; }
.kalk-stolp { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.kalk-stolp.on { background: var(--accent-soft, var(--bg)); box-shadow: inset 0 0 0 1px var(--accent); }
.kalk-stolp .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kalk-stolp .l small { font-weight: 400; }
.kalk-promet { font-size: 13px; color: var(--muted); }
.kalk-v { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.kalk-puscica { align-self: center; font-size: 20px; color: var(--muted); }
.kalk-sklep { grid-column: 1 / -1; font-size: 14.5px; }
.kalk thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kalk td { vertical-align: middle; }
.kalk td:first-child { white-space: nowrap; }
.kalk-skupaj td { border-top: 2px solid var(--line-soft); }
.kalk-raz { font-weight: 600; white-space: nowrap; }
.kalk-raz.dobro, .kalk td .znesek-vrac, .kalk-sklep .znesek-vrac { color: var(--ok-ink); }
.kalk-raz.slabo, .kalk td .znesek-dopl, .kalk-sklep .znesek-dopl { color: var(--late); }
.kalk-raz.nevtral { color: var(--muted); }
.kalk-meje { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.kalk-meje > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.kalk .info-txt, .kalk-meje .info-txt { white-space: normal; font-weight: 400; }
@media (max-width: 700px) { .kalk-povzetek { grid-template-columns: 1fr; } .kalk-puscica { display: none; } .kalk td:first-child { white-space: normal; } }

.bar > span { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
.an-gumb { font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
button.an-kupec { display: block; width: 100%; padding: 8px 10px; margin: 0 -10px 4px; width: calc(100% + 20px); border-radius: 10px; }
button.an-kupec .an-kupec-glava { display: flex; }
button.an-kupec .an-pod { display: block; font-size: 13px; margin-top: 4px; }
button.an-kupec:hover, .an-pl:hover { background: var(--bg); }
.an-gumb.on { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.an-gumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.an-placila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.an-pl { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); }
.an-pl .l { font-size: 13px; color: var(--muted); }
.an-pl b { font-size: 17px; }
.an-pl .hint { font-size: 12.5px; }
.an-pl .znesek-dopl { color: var(--late); }
.an-pl .znesek-warn { color: var(--warn-bar); }
.an-racuni-noga { font-size: 13.5px; }
#an-racuni .card-head { padding-bottom: 0; }

.an-mesci { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.an-m { display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr 1.3fr; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.an-m .r { text-align: right; }
.an-m-glava { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: none; }
.an-m-ime { display: flex; align-items: center; gap: 6px; }
.an-m .an-lani { display: block; font-size: 12px; }
.an-m.prihodnji { opacity: .45; }
.an-m.tekoci { background: var(--bg); border-radius: 10px; }
.an-m-noga { border-bottom: 0; border-top: 2px solid var(--line); }
.an-raz { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.an-raz.gor { color: var(--ok-ink); background: color-mix(in srgb, var(--ok-ink) 12%, transparent); }
.an-raz.dol { color: var(--late); background: color-mix(in srgb, var(--late) 12%, transparent); }
@media (max-width: 700px) {
  .an-m { grid-template-columns: 1fr 1fr .9fr 1.2fr; font-size: 13.5px; gap: 6px; }
  .an-skrij { display: none; }
  .an-placila { grid-template-columns: 1fr; }
}
.kalk-wrap { overflow-x: auto; max-width: 100%; }
@media (max-width: 700px) {
  .kalk th:nth-child(4), .kalk td:nth-child(4) { display: none; }
  .kalk td, .kalk th { padding-left: 6px; padding-right: 6px; font-size: 13.5px; }
  .kalk td.r { white-space: nowrap; }
}
/* 0.23.1: kalkulator v dialogu, časovnica prispevkov */
.kalk-dialog { width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 18px; padding: 20px 22px;
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: auto; }
.kalk-dialog::backdrop { background: rgba(15, 17, 21, .45); }
.kalk-dialog .card-head { margin-bottom: 4px; }
@media (max-width: 700px) { .kalk-dialog { padding: 16px 14px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); } }
.prisp-cas { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin-top: 12px; }
.pc-del { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.pc-del.nov { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pc-obd { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pc-del b { font-size: 17px; }
.pc-op { font-size: 12px; color: var(--muted); }
.pc-puscica { align-self: center; color: var(--muted); }
.kalk-dialog:focus, .kalk-dialog:focus-visible { outline: none; }
.vrstica.brez-crte { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) {
  .kalk { width: 100%; table-layout: fixed; }
  .kalk td:first-child, .kalk th:first-child { width: 38%; }
  .kalk td, .kalk th { font-size: 13px; padding-left: 4px; padding-right: 4px; }
  .kalk th small { display: none; }
}
.kalk-dv small { font-size: inherit; }
.kalk-dv .nw { white-space: nowrap; }
@media (max-width: 700px) { .kalk td.r .kalk-dv { white-space: normal; } .kalk-dv small { display: block; font-size: 11.5px; } }
/* 0.24: opozorilo v meniju, vhodna stran */
.snav a { position: relative; }
.nav-opozorilo { margin-left: auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--late); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1; flex: none; }

.prijava-telo { padding: 0; place-items: stretch; }
.vhod { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vhod-znamka { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px;
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--side); border-right: 1px solid var(--line-soft); }
.vhod-znamka .logo .logo-ime { font-size: 26px; }
.vhod-besedilo { max-width: 460px; }
.vhod-besedilo h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.vhod-besedilo > p { color: var(--muted); font-size: 16.5px; line-height: 1.55; margin: 0 0 28px; }
.vhod-seznam { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.vhod-seznam li { display: flex; gap: 14px; align-items: flex-start; }
.vhod-seznam li > span:last-child { display: flex; flex-direction: column; color: var(--muted); font-size: 14.5px; }
.vhod-seznam b { color: var(--ink); font-size: 15.5px; }
.vhod-ik { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card);
  color: var(--accent); font-weight: 700; box-shadow: var(--shadow); }
.vhod-noga { display: flex; }
.vhod > .prijava-kartica { align-self: center; justify-self: center; margin: 40px 24px; padding: 32px; }
.vhod-logo-mob { display: none; }
.vhod-povezave { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.vhod-povezave a { text-decoration: none; }
.vhod-racunovodja { margin: 6px 0 0; font-size: 13px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.vhod-racunovodja a { color: var(--muted); }
.prijava-kartica form .actions { margin-top: 14px; }
@media (max-width: 860px) {
  .vhod { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
  .vhod-znamka { padding: 22px 20px 6px; border-right: 0; background: transparent; gap: 6px; position: relative; justify-content: flex-start; }
  .vhod-seznam, .vhod-besedilo > p { display: none; }
  .vhod-besedilo h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0; letter-spacing: 0; }
  .vhod-noga { position: absolute; top: 16px; right: 16px; }
  .vhod > .prijava-kartica { margin: 12px 16px 32px; padding: 22px 18px; justify-self: stretch; width: auto; align-self: start; }
}
.pc-del b small { font-size: 12px; font-weight: 500; color: var(--muted); }
/* 0.25: iskanje, razvrščanje in predogled računov */
.iskalnik { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.iskalnik input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 0; font-size: 15px; box-shadow: none; outline: none; color: var(--ink); }
.iskalnik input:focus { box-shadow: none; }
.iskalnik:focus-within { color: var(--accent); }
th .sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
th .sort::after { content: "↕"; font-size: 11px; opacity: .35; }
th .sort[data-smer="asc"]::after { content: "↑"; opacity: 1; color: var(--accent); }
th .sort[data-smer="desc"]::after { content: "↓"; opacity: 1; color: var(--accent); }
.racuni-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.racuni-split.odprt { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.racuni-split.odprt .placilo-celica { flex-wrap: wrap; white-space: normal; }
.racuni-split > .card { margin: 0; }
.racuni-split.odprt .racuni-tabela td:nth-child(3), .racuni-split.odprt .racuni-tabela th:nth-child(3),
.racuni-split.odprt .racuni-tabela td:nth-child(4), .racuni-split.odprt .racuni-tabela th:nth-child(4) { display: none; }
.predogled { position: sticky; top: 76px; display: flex; flex-direction: column; height: calc(100vh - 100px); overflow: hidden; }
.predogled[hidden] { display: none; }
.predogled-glava { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.predogled-glava b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.predogled-glava .actions { flex: none; margin: 0; }
.predogled iframe { flex: 1; width: 100%; border: 0; background: #525659; }
#portal-racuni tr.izbrana td { background: var(--accent-soft); }
@media (max-width: 900px) {
  .racuni-split.odprt { grid-template-columns: minmax(0, 1fr); }
  .predogled { position: fixed; inset: 8px; top: 8px; height: auto; z-index: 60; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
}
