/* Sumto – vmesnik */
:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --panel-2: #fafbfd;
  --ink: #0f1629;
  --ink-2: #3b4459;
  --muted: #7a8399;
  --line: #e8eaf1;
  --line-2: #f0f1f6;
  --accent: #5b5bd6;
  --accent-2: #7c6cf2;
  --accent-soft: #eeeefd;
  --accent-ink: #ffffff;
  --ok: #12a150;
  --ok-soft: #e6f6ec;
  --warn: #d97706;
  --warn-soft: #fdf3e2;
  --bad: #e11d48;
  --bad-soft: #fde8ee;
  --info: #0e7cc2;
  --info-soft: #e5f2fb;
  --side: #0e1120;
  --side-2: #171b30;
  --side-ink: #a9b0c9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 22, 41, .04), 0 4px 16px rgba(16, 22, 41, .05);
  --shadow-lg: 0 12px 40px rgba(16, 22, 41, .18);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d17; --panel: #131626; --panel-2: #171a2c; --ink: #eceef6; --ink-2: #c3c8da; --muted: #8990a8;
    --line: #242840; --line-2: #1c2034; --accent: #8b87ff; --accent-2: #a78bfa; --accent-soft: #23234a;
    --ok: #34d399; --ok-soft: #0f2a22; --warn: #fbbf24; --warn-soft: #2d2412; --bad: #fb7185; --bad-soft: #321621;
    --info: #60b8f0; --info-soft: #11263a; --side: #080a13; --side-2: #12152a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- ogrodje ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
aside.side {
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  color: var(--side-ink); padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
}
.logo { display: flex; align-items: center; gap: 11px; padding: 2px 10px 18px; min-height: 58.9px; }   /* the block was two lines high (Sumto and the company): the one line keeps its height, so that nothing under it moves (N4) */
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 18px rgba(91, 91, 214, .45);
}
.logo-mark svg.i { width: 19px; height: 19px; stroke-width: 2.2; }
.logo b { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.035em; display: block; line-height: 1.1; }
img.logo-mark { background: none; padding: 0; object-fit: contain; }
.logo small { display: block; font-size: 12px; color: var(--side-ink); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.menu { display: flex; flex-direction: column; gap: 2px; }
nav.menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--side-ink); font-weight: 500; transition: background .15s, color .15s; position: relative;
}
nav.menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
nav.menu a.on { background: rgba(139, 135, 255, .16); color: #fff; }
nav.menu a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-2); }
.side .spacer { flex: 1; }
.side .new-btn { width: 100%; justify-content: center; padding: 11px; }
.side .foot { font-size: 11.5px; color: #5c6480; padding: 10px 12px 0; }

main { padding: 28px 36px 60px; max-width: 1320px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; font-weight: 700; }
.page-head p { margin: 3px 0 0; color: var(--muted); }
.page-head .grow { flex: 1; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.crumb:hover { color: var(--accent); }

/* ---------- gradniki ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 650; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; }
.card h3 .sub { color: var(--muted); font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.kpi .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.kpi .ico svg.i { width: 16px; height: 16px; }
.kpi .val { font-size: 24px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.kpi .note { font-size: 12px; color: var(--muted); }
.t-accent { background: var(--accent-soft); color: var(--accent); }
.t-ok { background: var(--ok-soft); color: var(--ok); }
.t-warn { background: var(--warn-soft); color: var(--warn); }
.t-bad { background: var(--bad-soft); color: var(--bad); }
.t-info { background: var(--info-soft); color: var(--info); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }          /* a longer word of another language scrolls the strip, it does not widen the page (DV-22) */
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 550; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16,22,41,.12); }
.seg .cnt { font-size: 11px; background: var(--line); color: var(--ink-2); border-radius: 99px; padding: 0 6px; font-weight: 600; }
.seg button.on .cnt { background: var(--accent-soft); color: var(--accent); }
.search { position: relative; }
.search svg.i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 32px; width: 220px; }
.range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

button, .btn {
  font: inherit; font-weight: 550; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .15s, background .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
button:hover, .btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
button:active, .btn:active { transform: translateY(1px); }
button svg.i, .btn svg.i { width: 16px; height: 16px; }
button.primary, .btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 4px 14px rgba(91, 91, 214, .32);
}
button.primary:hover, .btn.primary:hover { box-shadow: 0 6px 20px rgba(91, 91, 214, .42); }
button.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--line-2); }
button.danger { color: var(--bad); }
button.danger:hover { background: var(--bad-soft); border-color: transparent; }
button.icon { padding: 7px; }
button.small { padding: 5px 9px; font-size: 12.5px; }
.btn-list { display: flex; flex-direction: column; gap: 6px; }
.btn-list button { justify-content: flex-start; width: 100%; }

input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 11px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { width: 100%; min-height: 62px; resize: vertical; }
input[type=date] { min-width: 140px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; }
thead th { white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--panel-2); border-bottom: 1px solid var(--line); }
tbody td { border-bottom: 1px solid var(--line-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; transition: background .12s; }
tr.click:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
tfoot td { font-weight: 650; border-top: 1px solid var(--line); background: var(--panel-2); }
.table-wrap { overflow-x: auto; }
.doc-no { white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; color: #fff; }
.who .n { font-weight: 550; }
.who .s { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: .55; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.paid { color: var(--ok); background: var(--ok-soft); }
.pill.unpaid { color: var(--warn); background: var(--warn-soft); }
.pill.pastdue { color: var(--bad); background: var(--bad-soft); }
.pill.refund { color: var(--info); background: var(--info-soft); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 650; color: var(--ink-2); background: var(--line-2); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.muted { color: var(--muted); }
.neg { color: var(--bad); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px 18px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- urejanje računa ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.editor > *, .stack > *, .costsum > * { min-width: 0; }                                  /* a wide table (the lines of a cost) scrolls in its card and does not widen the page */
.two.even.costsum { grid-template-columns: 1fr; }                                        /* the table of the months has six columns: the two cards one under the other, so that its last column is not behind the scroll (DV-25) */
.costsum th, .costsum td { padding-left: 8px; padding-right: 8px; }
.side-col { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.total-card { padding: 22px; background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; border: 0; }
.total-card .lbl { opacity: .8; font-size: 12.5px; font-weight: 550; }
.total-card .big { font-size: 32px; font-weight: 750; letter-spacing: -.03em; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.total-card .row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.18); font-variant-numeric: tabular-nums; }
.total-card .pill { background: rgba(255,255,255,.18); color: #fff; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width .3s; }

.items { border-collapse: separate; border-spacing: 0; }
.items thead th { padding: 10px 8px; }
.items thead th:first-child { padding-left: 16px; }
.items td { padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.items td:first-child { padding-left: 12px; }
.items input { width: 100%; padding: 7px 9px; border-color: transparent; background: transparent; }
.items input:hover { border-color: var(--line); background: var(--panel); }
.items input:focus { background: var(--panel); }
.items input.r { text-align: right; }
.items .amt { font-weight: 600; padding-right: 14px; }
.items .c-name { min-width: 200px; }
.items .c-n { width: 88px; }
.items .c-unit { width: 70px; }
.items .c-x { width: 44px; }
.items select { width: 100%; padding: 7px 9px; border-color: transparent; background-color: transparent; }
.items select:hover, .items select:focus { border-color: var(--line); background-color: var(--panel); }
.items tr.new select { border-color: var(--line); background-color: var(--panel); }
.items .c-reason { width: 132px; }
.items select.rsn { max-width: 132px; text-overflow: ellipsis; }
table.costlines { min-width: 1060px; }
table.costlines td select, table.costlines th { font-size: 13px; }
table.costlines select[name=vat_treatment] { min-width: 190px; }
table.costlines select[name=grid_class] { min-width: 136px; }
table.costlines input[name=category] { min-width: 96px; }
.items tr.new td { background: var(--panel-2); border-bottom: 0; }
.items tr.new input { border-color: var(--line); background: var(--panel); }
.items tr.new td:first-child { border-bottom-left-radius: var(--radius); }
.items tr.new td:last-child { border-bottom-right-radius: var(--radius); }
.items tr .del { opacity: 0; transition: opacity .15s; }
.items tr:hover .del, .items tr .del:focus { opacity: 1; }
.sumbox { display: flex; justify-content: flex-end; padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.totals { width: min(340px, 100%); }
.totals td { padding: 4px 0; border: 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.grand td { font-size: 17px; font-weight: 750; padding-top: 10px; border-top: 1px solid var(--line); letter-spacing: -.015em; }

.pay-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pay-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.pay-item .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.pay-item .ico svg.i { width: 15px; height: 15px; }
.pay-item .grow { flex: 1; min-width: 0; }
.pay-item b { font-variant-numeric: tabular-nums; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-form input, .pay-form select { width: 100%; }
.pay-form .full { grid-column: 1 / -1; }
.pay-form button { justify-content: center; }

/* ---------- statistika ---------- */
.chart-wrap { position: relative; height: 280px; }
.chart { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .bar { transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 18px; }
.two.even { grid-template-columns: 1fr 1fr; }
.meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }

/* ---------- prihodki in stroški (DV-25): statistika ---------- */
.sec-h { margin: 2px 0 14px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.sec-h p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; max-width: 80ch; }
.icsec { margin-bottom: 26px; }
.ic-diff { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.ic-diff svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.ic-diff.neg { color: var(--bad); }
/* the head of the statistics (DV-34): the years and a range of days; the error of a range is said under the boxes */
.statctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; min-width: 0; max-width: 100%; }   /* (min-width: it is an item of the page head, and without it the strip of the years - five and more do not fit a phone - made it, and the PAGE, as wide as all the years in a row: a sideways scroll of the whole page at 375 px; round 6) */
.statctl .seg { flex-wrap: wrap; }                                                       /* (the years go on a second line, none waits behind a scroll - as the choices of the comparison do) */
.statctl .range input { min-width: 0; }
.stat-err { flex: 1 1 100%; text-align: right; color: var(--bad); font-size: 12.5px; }
.stat-err:empty { display: none; }
/* the comparison with a year ago: what is compared, and a table of this period, a year ago, the difference and the percent */
.cmpsec { margin-bottom: 26px; }
.cmpsec .sec-h p.ic-basis { color: var(--ink-2); font-size: 13px; }
.cmpctl { margin: 0 0 12px; }
.cmpctl .seg { flex-wrap: wrap; }                                                         /* (five choices do not fit a phone in one line: they go on a second line, none waits behind a scroll) */
.ic-cmp td { white-space: nowrap; }                                                      /* (the heads may wrap: "ENO LETO PREJ" is wider than any figure under it) */
.ic-cmp td small { margin-left: 4px; }
.nowrap-1 td:first-child { white-space: nowrap; }                                         /* the months of a range: "nov 2025" stays on one line */
.ic-cmp tr.ic-ahead td { color: var(--muted); }
.ic-diff.neu { color: var(--ink-2); }
.ic-legend2 { margin: 8px 0 0; font-size: 12.5px; }
.kpi .ic-diff svg.i { width: 20px; height: 20px; }
.kpi .ic-diff.pos { color: var(--ok); }
.ic-table th { white-space: normal; }
.ic-table td { white-space: nowrap; padding-top: 7px; padding-bottom: 7px; }
.ic-diff.zero { color: var(--muted); font-weight: 500; }
.ic-chartbox { height: 340px; position: relative; }
.ic-chartbox svg { display: block; max-width: 100%; }
.ic-legend { flex-wrap: wrap; gap: 6px 16px; }
.ic-sw-inc { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ic-sw-exp { background: var(--warn); }
.ic-sw-pos { background: var(--ok); }
.ic-sw-neg { background: repeating-linear-gradient(135deg, var(--bad) 0 2px, var(--panel) 2px 4px); outline: 1px solid var(--bad); outline-offset: -1px; }
.ic-break { margin-bottom: 18px; }
.ic-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ic-cols h3 { margin-bottom: 10px; }
.ic-dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-variant-numeric: tabular-nums; }
.ic-dl dt { color: var(--muted); }
.ic-dl dd { margin: 0; text-align: right; }
.ic-dl dd.b { font-weight: 700; }
.ic-none .empty { padding: 28px 20px; }
.ic-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ic-more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.ic-more[open] summary { margin-bottom: 10px; }
.ic-wide { font-size: 12.5px; }
.ic-wide th, .ic-wide td { padding: 7px 5px; white-space: nowrap; }
.ic-wide th:first-child, .ic-wide td:first-child { padding-left: 10px; }
.ic-wide thead th { text-align: right; font-size: 10.5px; letter-spacing: .03em; }
.ic-wide thead th:first-child { text-align: left; }
.ic-wide thead th.ic-grp { text-align: center; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .ic-cols { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .ic-table th { font-size: 10.5px; letter-spacing: .02em; }
  .ic-table th, .ic-table td { padding-left: 5px; padding-right: 5px; }
  .ic-table th:first-child, .ic-table td:first-child { padding-left: 10px; }
  .ic-table th:last-child, .ic-table td:last-child { padding-right: 8px; }
  .ic-table td { font-size: 12.5px; }
  .ic-table .ic-diff svg.i { display: none; }
  .ic-chartbox { height: 240px; }
  .statctl { flex: 1 1 100%; justify-content: flex-start; }
  .stat-err { text-align: left; }
  .ic-cmp td small { display: block; margin-left: 0; }
}
@media (max-width: 400px) { .ic-table th, .ic-table td { padding-left: 3px; padding-right: 3px; } }     /* the table of the months in Dutch is 10 px wider than its card at 375 px: the last figure was cut by the scroll (first and last cell keep their own padding above) */

/* ---------- prihodki in stroški (DV-25): stikalo med seznamoma, pas z vsotami, oznake strani ---------- */
.flowbar { display: grid; gap: 10px; margin-bottom: 18px; }
.flowseg { justify-self: start; }
.flowseg button svg.i { width: 15px; height: 15px; }
.flowseg button.flow-inv svg.i { color: var(--accent); }
.flowseg button.flow-cost svg.i { color: var(--warn); }
.flowseg button.on { color: var(--ink); }
.flowseg button.on.flow-inv { background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.flowseg button.on.flow-cost { background: var(--warn-soft); box-shadow: inset 0 -3px 0 var(--warn); }
.flowstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.flowstrip .fs-cell { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; min-width: 0; border-left: 1px solid var(--line); }
.flowstrip .fs-cell:first-child { border-left: 0; }
.fs-lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.fs-lbl svg.i { width: 14px; height: 14px; }
.fs-cell.inv .fs-lbl svg.i { color: var(--accent); }
.fs-cell.cost .fs-lbl svg.i { color: var(--warn); }
.fs-val { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-val small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fs-cell.dif.pos .ic-diff { color: var(--ok); }
.fs-cap { grid-column: 1 / -1; padding: 7px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.flowtag { display: inline-flex; align-items: center; gap: 5px; vertical-align: 4px; margin-left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line); }
.flowtag svg.i { width: 13px; height: 13px; }
.flowtag.inv { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.flowtag.inv svg.i { color: var(--accent); }
.flowtag.cost { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.flowtag.cost svg.i { color: var(--warn); }
.flowbanner { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 14px; margin-bottom: 16px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-left: 5px solid var(--warn); background: var(--warn-soft); color: var(--ink); }
.flowbanner svg.i { color: var(--warn); }
.flowbanner span { color: var(--ink-2); }
tr.cost-row td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.flowico { display: inline-grid; place-items: center; margin-right: 8px; color: var(--warn); vertical-align: -3px; }
.flowico svg.i { width: 16px; height: 16px; }
.refline { display: inline-flex; align-items: center; white-space: nowrap; }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .flowbar .flowseg { justify-self: stretch; }
  .flowbar .flowseg button { flex: 1 1 0; justify-content: center; white-space: normal; text-align: center; padding: 6px 8px; line-height: 1.25; }
  .flowstrip .fs-cell { padding: 9px 10px; }
  .fs-val { font-size: clamp(12.5px, 3.8vw, 15px); }
  .fs-val small { display: none; }
  .flowstrip .ic-diff svg.i { display: none; }
  .fs-cap { padding: 6px 10px; }
  .flowtag { margin-left: 8px; margin-top: 4px; }
  table.mcards tr.cost-row { box-shadow: inset 4px 0 0 var(--warn); }
  table.mcards tr.cost-row td:first-child { box-shadow: none; }
}

/* ---------- the period of the list of the issued invoices (DV-34): the line above the toolbar, in every company ---------- */
.perline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.perline > svg.i { width: 16px; height: 16px; color: var(--accent); flex: none; }
.perline .seg button { padding: 4px 11px; font-size: 12.5px; }
.perline-out { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: auto; color: var(--ink-2); }
@media (max-width: 700px) {
  .perline { padding: 10px 12px; }
  .perline-out { margin-left: 0; flex: 1 1 100%; }
}

/* ---------- ostalo ---------- */
.empty { text-align: center; color: var(--muted); padding: 56px 20px; }
.empty .big-ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty .big-ico svg.i { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty p { margin: 0 0 16px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; margin: 0 0 12px; }
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.settings-grid:last-of-type { border-bottom: 0; }
.settings-grid h4 { margin: 0 0 4px; font-size: 14.5px; }
.settings-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.logo-drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; }
.logo-drop img { max-height: 52px; max-width: 160px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; margin-top: 18px; }

dialog { border: 0; border-radius: 18px; background: var(--panel); color: var(--ink); padding: 26px 28px 22px; width: min(700px, 94vw); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10, 12, 25, .45); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
dialog .dsub { margin: 0 0 20px; color: var(--muted); }
dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: all .2s; pointer-events: none; z-index: 50; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; font-weight: 550; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--bad); color: #fff; }
.fade-in { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- odzivnost ---------- */
@media (max-width: 1380px) {
  .editor { grid-template-columns: 1fr; }
  .side-col { position: static; display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; order: -1; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .side-col { grid-template-columns: 1fr; }
  .two, .two.even { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  aside.side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; z-index: 10; overflow-x: auto; }
  .logo { padding: 0 8px 0 0; min-height: 0; }
  .logo small, .side .spacer, .side .foot, .side .new-btn span { display: none; }
  nav.menu { flex-direction: row; }
  nav.menu a span { display: none; }
  nav.menu a.on::before { display: none; }
  .side .new-btn { width: auto; }
  .logo { order: -2; }
  main { padding: 20px 16px 50px; }
  .settings-grid { grid-template-columns: 1fr; gap: 12px; }
  .grid.g3 { grid-template-columns: 1fr; }
  .search input { width: 160px; }
}
svg.i.flip { transform: scaleX(-1); }
dialog.wide { width: min(1180px, 96vw); max-height: 94vh; } .review { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; } .review .preview { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; min-height: 60vh; overflow: hidden; display: grid; place-items: center; } .review .preview iframe, .review .preview img { width: 100%; height: 72vh; border: 0; object-fit: contain; } @media (max-width: 900px) { .review { grid-template-columns: 1fr; } .review .preview iframe, .review .preview img { height: 45vh; } } .drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); transition: all .15s; cursor: pointer; } .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .amt-in { color: var(--ok); font-weight: 650; } .amt-out { color: var(--ink); font-weight: 650; } .tag.labour { color: var(--info); background: var(--info-soft); border-color: transparent; } .acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; } .progress-row { display: flex; align-items: center; gap: 10px; } .ai-note { font-size: 12px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }

.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; padding: 0; box-shadow: none; }
.sw.on { border-color: var(--panel); outline: 2px solid var(--ink); }

/* ---------- izbira podjetja, arhivirana podjetja ---------- */
.entwrap { position: relative; margin: 0 2px 10px; }
.entpick { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: #fff; text-align: left; box-shadow: none; }
.entpick:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.entpick .grow { flex: 1; min-width: 0; } .entpick b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entpick small { display: block; font-size: 11.5px; color: var(--side-ink); font-weight: 500; } .entpick > svg.i { color: var(--side-ink); width: 15px; }
.entdot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.entmenu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); color: var(--ink); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: 70vh; overflow: auto; min-width: 260px; }
.entitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.entitem:hover { background: var(--line-2); } .entitem.on { background: var(--accent-soft); }
.entitem .grow { flex: 1; min-width: 0; } .entitem b { display: block; font-size: 13px; } .entitem small { display: block; font-size: 11.5px; color: var(--muted); }
.entrow { display: flex; align-items: center; gap: 2px; } .entrow .entitem { flex: 1; min-width: 0; }
.entgear { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); flex: none; }
.entgear:hover { background: var(--line-2); color: var(--ink); } .entgear svg.i { width: 15px; height: 15px; }
/* portfelj: arhivirana podjetja (zložljivo) */
details.pfarch { margin-top: 18px; }
details.pfarch > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; }
details.pfarch > summary::-webkit-details-marker { display: none; }
details.pfarch > summary svg.i { color: var(--muted); }
.pfarchlist { padding: 0 18px 8px; }
.archrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.archrow .grow { flex: 1; min-width: 200px; }
/* značka zanesljivosti se prelomi, da ne seže pod gumba Uredi / Odpri */
@media (max-width: 820px) { .entwrap { margin: 0 8px 0 0; min-width: 160px; } }

/* ---------- M1: zaklepanje, banner, oznake ---------- */
.pill.lock { color: var(--accent); background: var(--accent-soft); }
.tag.lock { padding: 1px 4px; color: var(--accent); background: var(--accent-soft); border-color: transparent; vertical-align: middle; }
.tag.lock svg.i { width: 11px; height: 11px; }
.tag.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; text-transform: none; letter-spacing: 0; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); margin-bottom: 16px; font-weight: 550; }
.banner svg.i { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; background: var(--accent-soft); color: var(--accent); border: 0; font-weight: 550; }
.chip svg.i { width: 13px; height: 13px; }
.chip .x { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.chip.fact { background: var(--warn-soft); color: var(--warn); flex-wrap: wrap; }

/* ---------- delovni list (mreža kot Excel, pasice, okna) ---------- */
.wl-tabs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -10px 0 12px; }
.wl-tabs .seg { flex-wrap: wrap; }
.wl-month { display: inline-flex; align-items: center; gap: 4px; }
.wl-mname { position: relative; display: inline-block; padding: 7px 12px; border-radius: var(--radius-sm); font-weight: 700; min-width: 140px; text-align: center; cursor: pointer; }
.wl-mname:hover { background: var(--line-2); }
.wl-mname input { position: absolute; inset: 0; width: 100%; min-width: 0; opacity: 0; padding: 0; border: 0; cursor: pointer; }
.wl-kpi { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.wl-kpi b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wl-banners { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 0; }
.wl-banners:empty { display: none; }
.wl-banners .banner, .wl-sec .banner, #wbOut .banner, #wiOut .banner { margin: 0 0 6px; align-items: flex-start; font-weight: 500; }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner .grow { flex: 1; min-width: 0; }
.wl-bbtn { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; }
.wl-wrap { overflow-x: auto; padding: 8px 0 4px; }
.wl-foothint { padding: 6px 16px 12px; }
table.wl { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
table.wl thead th { padding: 8px 6px; }
table.wl td { padding: 2px 3px; border-bottom: 1px solid var(--line-2); background: var(--panel); }
table.wl input, table.wl select { width: 100%; padding: 5px 7px; border-color: transparent; background: transparent; font-variant-numeric: tabular-nums; }
table.wl input:hover, table.wl select:hover { border-color: var(--line); background: var(--panel); }
table.wl input:focus, table.wl select:focus { background: var(--panel); }
table.wl input.r { text-align: right; }
table.wl input:disabled { color: var(--ink-2); cursor: not-allowed; }
table.wl td.c-com input { width: 124px; } table.wl td.c-st select { width: 106px; } table.wl td.c-ord input { width: 116px; } table.wl td.c-q input { width: 80px; }
table.wl thead th.c-q { white-space: normal; line-height: 1.25; vertical-align: bottom; max-width: 96px; }
table.wl .c-inv { min-width: 170px; } table.wl .c-lib { min-width: 110px; } table.wl .c-x { width: 38px; }
table.wl .c-ord { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
table.wl thead th.c-ord { z-index: 2; }
table.wl tr.wl-price th { background: var(--panel); text-transform: none; letter-spacing: 0; padding: 6px 3px 2px; border-bottom: 0; }
table.wl tr.wl-price input { font-weight: 650; }
table.wl tr.wl-open td { background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
table.wl tr.wl-fix td { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
table.wl tr.wl-fix input, table.wl tr.wl-fix select { color: var(--ink-2); }
table.wl tr.wl-cancelled input, table.wl tr.wl-cancelled select { text-decoration: line-through; color: var(--muted); }
table.wl tr.wl-new td { background: var(--panel-2); }
table.wl tr.wl-flash td { animation: wlflash 2.4s ease-out; }
@keyframes wlflash { 0%, 50% { background: var(--accent-soft); } }
table.wl tfoot td { padding: 7px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.wl tfoot td.num { text-align: right; }
table.wl tfoot tr.prov td { color: var(--muted); font-style: italic; }
table.wl tfoot tr.wl-excl td { font-weight: 500; color: var(--muted); font-size: 12.5px; white-space: normal; }
table.wl tfoot td.wl-flab { text-align: right; font-weight: 600; }
table.wl tfoot td.wl-ftot { font-weight: 650; }
.wl-billout { padding: 10px 16px 0; }
.wl-billout .wl-excl { margin-top: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.wl-billbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.wl-billbar .grow { flex: 1; }
.wl-billout button:disabled, #dlg button.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.wl-ord { display: flex; align-items: center; gap: 2px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 190px; }
.wl-chips .chip { padding: 2px 8px; }
.wl-chips .tag { text-transform: none; letter-spacing: 0; }
.wl-chips .tag.lock svg.i { width: 11px; height: 11px; }
.chip.wl-off { background: var(--line-2); color: var(--muted); }
.wl-menu { position: absolute; z-index: 45; width: 250px; padding: 10px; }
.wl-menu .field { margin-bottom: 8px; }
.wl-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 8px; }
.wl-checks label, label.wl-check { display: inline-flex; gap: 7px; align-items: center; font-weight: 550; cursor: pointer; }
.wl-checks input, .wl-check input, table.wl-lines input[type=checkbox], #wcT input[type=checkbox] { width: auto; padding: 0; }
table.wl-lines th, table.wl-lines td { padding: 6px 10px; }
#wcT th, #wcT td { padding: 6px 5px; }
table.wl-lines tr.warn td { background: var(--warn-soft); }
table.wl-lines .tag { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.wl-scroll { max-height: 48vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; }
.wl-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre; overflow-x: auto; }
.wl-sec { margin-top: 14px; }
.wl-sec h4 { margin: 0 0 6px; font-size: 13px; }
.wl-billhead { margin: 10px 0; font-size: 14px; }
.wl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.wl-bar .grow { flex: 1; }
.wl-counters { font-size: 14px; }
.wl-cnt.ok b { color: var(--ok); }
.wl-ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.crumb.wl-crumb { margin-left: 16px; }
.wl-lines [hidden], .wl-checks [hidden], .wl-chips [hidden] { display: none !important; }
.wl-lib { margin: 12px 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.wl-libhead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.wl-libhead .grow { flex: 1; }
.wl-libhead svg.i { width: 15px; height: 15px; }
.wl-libsec { margin-top: 12px; }
.wl-libsec h4 { margin: 0 0 2px; font-size: 13px; }
.wl-libsec ul { margin: 4px 0 0; padding: 0; list-style: none; }
.wl-libsec li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.wl-libsec li .grow { flex: 1; min-width: 260px; overflow-wrap: anywhere; }
.wl-libsec .wl-bbtn { margin-left: 0; }
table.wl td.c-lib .hint { white-space: normal; }

/* ---------- prijava, moj račun, uporabniki, dostop s telefona (docs/NACRT-MOBILNO-FURS-SUMUP.md §2) ---------- */
[hidden] { display: none !important; }
body.auth-on .app { display: none !important; }
.auth-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(1100px 560px at 50% -12%, var(--accent-soft), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 28px 24px 22px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-logo img { width: 36px; height: 36px; }
.auth-logo b { font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.auth-card > p.muted { margin: 0 0 18px; }
.auth-card > .primary { width: 100%; min-height: 48px; justify-content: center; font-size: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.auth-form input { font-size: 16px; min-height: 48px; width: 100%; }   /* 16 px: iOS ob vnosu ne poveča strani */
.auth-form button { min-height: 48px; justify-content: center; font-size: 16px; width: 100%; }
.auth-msg { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-weight: 550; }
.auth-msg.empty { display: none; }
.auth-card .hint { margin: 16px 0 0; }
.side .foot .userbox { display: flex; align-items: center; gap: 8px; color: var(--side-ink); font-weight: 550; font-size: 13px; }
.side .foot .userbox:hover { color: #fff; }
.side .foot .userbox span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entsep { height: 1px; background: var(--line); margin: 6px 4px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
ol.steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.cmd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.cmd code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; overflow-wrap: anywhere; }
table.users .row-actions { flex-wrap: nowrap; }
.auth-msg.info { background: var(--info-soft); color: var(--info); }
/* stalno obvestilo na zaslonu prijave / prve nastavitve (ločeno od .auth-msg, kamor gredo napake obrazca) */
.auth-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 550; margin-bottom: 12px; }
.auth-note code { overflow-wrap: anywhere; }
.auth-form button:disabled { opacity: .6; cursor: progress; }
.field input:disabled, .field select:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }
table.users .who .n { white-space: nowrap; }
table.users td .s { font-size: 12px; }
/* ---------- telefon (docs/NACRT-MOBILNO-FURS-SUMUP.md §3): 360–430 px, spodnji meni, Več, hitri račun, plačila ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.bnav { display: none; }
.m-only { display: none; }
dialog.sheet { width: min(440px, 100vw); padding: 0; overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head b { flex: 1; font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 6px 10px calc(14px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-sec { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sheet-sec:last-child { border-bottom: 0; }
.sheet-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; padding: 6px 8px; }
.sheet-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px; border-radius: 12px; color: var(--ink); }
.sheet-item:hover, .sheet-item:focus-visible { background: var(--line-2); }
.sheet-item.on { background: var(--accent-soft); }
.sheet-item > svg.i { color: var(--muted); width: 20px; height: 20px; }
.sheet-item.on > svg.i { color: var(--accent); }
.sheet-item > .entdot { margin: 0 5px; }
.sheet-item .grow { flex: 1; min-width: 0; }
.sheet-item b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-item small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-mods { display: flex; width: 100%; margin: 4px 0; }
.sheet-mods a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.sheet-mods a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 22, 41, .12); }

/* hitri račun (#/nov) in zaslon po izdaji (#/izdan/<id>) */
.qk { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.qk-top { display: flex; align-items: center; gap: 10px; }
.qk-top h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; flex: 1; }
.qk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qk-steps a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 5px 2px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--muted); background: var(--line-2); text-align: center; }
.qk-steps a i { font-style: normal; font-size: 11px; opacity: .8; }
.qk-steps a.done { color: var(--ink-2); }
.qk-steps a.on { background: var(--accent-soft); color: var(--accent); }
.qk-steps a.off { pointer-events: none; opacity: .55; }
.qk-big { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; min-height: 72px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--panel); color: var(--ink); text-align: left; font-size: 15px; white-space: normal; box-shadow: var(--shadow); }
.qk-big:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.qk-big.on { border-color: var(--accent); background: var(--accent-soft); }
.qk-big .grow { flex: 1; min-width: 0; }
.qk-big b { display: block; font-size: 16px; }
.qk-big small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.qk-big > svg.i { color: var(--muted); }
.qk-big .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.qk-big .ico svg.i { width: 22px; height: 22px; }
.qk-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.qk-who b { color: var(--ink); }
.qk-who a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.qk-list { display: flex; flex-direction: column; margin: 8px 0; }
.qk-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; background: transparent; text-align: left; white-space: normal; box-shadow: none; }
.qk-pick:hover { background: var(--line-2); border-color: var(--line-2); }
.qk-pick.on { background: var(--accent-soft); }
.qk-pick .grow { flex: 1; min-width: 0; }
.qk-pick .n { display: block; font-weight: 600; overflow-wrap: anywhere; }
.qk-pick small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.qk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.qk-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 86px;
  padding: 12px; white-space: normal; text-align: left; border-radius: 14px; box-shadow: var(--shadow); }
.qk-tile b { font-size: 15px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; padding-right: 24px; }
.qk-tile .p { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.qk-tile .p small { color: var(--muted); font-weight: 500; }
.qk-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.qk-tile .badge { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--accent);
  color: var(--accent-ink); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.qk-lines { padding: 4px 16px; }
.qk-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amt" "unit step"; gap: 4px 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--line-2); }
.qk-line:last-child { border-bottom: 0; }
.qk-line .nm { grid-area: name; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.qk-line .am { grid-area: amt; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qk-line .un { grid-area: unit; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.qk-line .stepper { grid-area: step; justify-self: end; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.stepper button { border: 0; border-radius: 0; width: 44px; min-height: 44px; padding: 0; justify-content: center; background: transparent; box-shadow: none; }
.stepper button:hover { background: var(--line-2); }
.stepper input { width: 58px; min-height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  border-radius: 0; padding: 0 4px; font-variant-numeric: tabular-nums; }
.qk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qk-form .wide { grid-column: 1 / -1; }
.qk-form .acts { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.qk-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.qk-bar .sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.qk-bar .sum small { color: var(--muted); font-size: 12px; font-weight: 600; }
.qk-bar .sum b { font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qk-bar .primary { min-height: 52px; padding: 0 20px; font-size: 16px; justify-content: center; }
.qk-bar .primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.qk-sum { padding: 16px; }
.qk-sum dl.kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin-bottom: 12px; }
.qk-sum .ln { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.qk-sum .ln span { min-width: 0; overflow-wrap: anywhere; }
.qk-sum .ln small { display: block; font-size: 12.5px; }
.qk-sum .ln b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qk-sum .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.qk-sum .tot b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qk-sum .sub { display: flex; justify-content: space-between; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.qk-change { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.qk-change .out { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.qk-done { text-align: center; }
.qk-ok { width: 72px; height: 72px; border-radius: 50%; margin: 8px auto 0; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.qk-ok svg.i { width: 36px; height: 36px; }
.qk-done h1 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.qk-done .amt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.qk-done .amt small { font-size: 15px; color: var(--muted); font-weight: 600; }
.qk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qk-acts > * { justify-content: center; min-height: 52px; font-size: 15px; }
.qk-acts .wide { grid-column: 1 / -1; }
[aria-busy="true"] { opacity: .65; cursor: progress; }

/* plačila (#/payments) */
.pay-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pay-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.pay-tile span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pay-tile span svg.i { width: 15px; height: 15px; }
.pay-tile b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-tile small { color: var(--muted); font-size: 12px; }
.pay-tile.total { background: var(--accent-soft); border-color: transparent; }
.pay-tile.total b, .pay-tile.total span { color: var(--accent); }
.plist { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.prow:last-child { border-bottom: 0; }
a.prow:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.prow .grow { flex: 1; min-width: 0; }
/* odprti račun: številka, kupec in rok so ena tarča za dotik (vsaj 44 px), gumb »Plačano« ostane ločen */
.prow a.plink { display: flex; flex-direction: column; justify-content: center; align-self: stretch; min-height: 44px; }
.prow a.plink .nm { color: var(--accent); }
.prow a.plink small.neg { color: var(--bad); }
.prow .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .nm b { font-variant-numeric: tabular-nums; }
.prow small { display: block; color: var(--muted); font-size: 12.5px; }
.prow .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.prow .ico svg.i { width: 17px; height: 17px; }

/* telefon: do 700 px širine ali telefon na ležeče (zaslon na dotik, nizek) – isti pogoj kot isPhone() v app.js */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  /* ogrodje: zgornja vrstica (logotip, podjetje, asistent) + spodnji meni; stranski meni je v »Več« */
  .app { display: block; min-height: 100vh; min-height: 100dvh; }
  aside.side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 8px; overflow: visible;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  aside.side .logo { order: 0; padding: 0; gap: 0; }
  aside.side .logo > div { display: none; }
  aside.side .logo-mark { width: 34px; height: 34px; }
  .entwrap, #entPick { order: 1; flex: 1; min-width: 0; margin: 0; }
  .entpick { min-height: 44px; padding: 6px 10px; }
  .entpick small { display: none; }
  #entMenu { display: none !important; }
  #modSwitch, nav.menu, .side .spacer, .side .new-btn, .side .foot { display: none !important; }
  main { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); max-width: 100%; }
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(16, 22, 41, .06); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 56px; padding: 4px 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; box-shadow: none; white-space: nowrap; }
  .bnav a span, .bnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bnav a:active, .bnav button:active { background: var(--line-2); transform: none; }
  .bnav .on { color: var(--accent); }
  .bnav svg.i { width: 28px; height: 28px; padding: 3px; }
  .bnav .bnav-new svg.i { width: 46px; height: 28px; padding: 4px 12px; border-radius: 99px; color: var(--accent-ink); stroke-width: 2.4;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); box-shadow: 0 3px 10px rgba(91, 91, 214, .35); }
  dialog.sheet { width: 100%; max-width: 100%; height: auto; max-height: 88dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; padding: 0; }
  dialog.sheet[open] { animation: sheetup .2s ease-out; }

  /* dotik: vsaj 44 px, 16 px pisava v poljih (iOS ob vnosu ne poveča strani) */
  /* :where – brez specifičnosti: sestavine z večjo višino (prijava 48 px, hitri račun 52 px) ostanejo večje */
  :where(button, .btn, select, input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file])) { min-height: 44px; }
  :where(button.icon, button.small.icon, .row-actions button) { min-width: 44px; justify-content: center; }
  input, select, textarea { font-size: 16px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  label.wl-check, .wl-checks label { min-height: 44px; }
  .row-actions { opacity: 1; flex-wrap: wrap; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; min-height: 44px; }
  .entgear { width: 44px; height: 44px; }

  /* strani */
  .page-head { margin-bottom: 16px; gap: 10px; align-items: flex-start; }
  .page-head > div:first-child { flex: 1 1 100%; min-width: 0; }
  .page-head h1 { font-size: 22px; overflow-wrap: anywhere; }
  .page-head .grow { display: none; }
  .page-head > .btn, .page-head > button { flex: 1 1 auto; justify-content: center; }
  .crumb { min-height: 44px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 12px 14px; gap: 4px; }
  .kpi .lbl { font-size: 12px; gap: 6px; }
  .kpi .ico { width: 26px; height: 26px; }
  .kpi .val { font-size: 19px; overflow-wrap: anywhere; }
  .kpi .val small { font-size: 11.5px; }
  .card-pad { padding: 16px; }
  .toolbar { padding: 10px 12px; gap: 8px; }
  .toolbar .grow { display: none; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .range { flex: 1 1 100%; }
  .range input { flex: 1; min-width: 0; width: 0; }
  input[type=date] { min-width: 0; }
  th, td { padding: 10px 12px; }
  .settings-grid { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .two, .two.even, .two[style] { grid-template-columns: 1fr !important; }
  /* elementi mreže ne smejo biti širši od zaslona (tabela v kartici se pomika v svojem okvirju) */
  .two > *, .grid > *, .stack > *, .editor > *, .side-col > *, .kpis > *, .acc-grid > * { min-width: 0; }
  .logo-drop { flex-wrap: wrap; }
  .pill { max-width: 100%; }
  .page-head .pill { white-space: normal; }
  /* tabele brez lastnega okvirja (davki, najem, DDV, moj dohodek): pomikajo se same, stran ostane v širini zaslona */
  table.list { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  td > button:not(.icon), td > .btn { white-space: normal; text-align: left; }
  .side-col { grid-template-columns: 1fr; }
  .grid.g3 { grid-template-columns: 1fr; }
  .chart-wrap { height: 220px; }
  .legend { flex-wrap: wrap; gap: 6px 14px; }
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .save-bar > span { flex: 1 1 100%; }
  .save-bar button { flex: 1; justify-content: center; }
  .toast { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); justify-content: center; text-align: center; }
  .qk-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .m-only { display: inline; }
  .d-only { display: none !important; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .qk-sum dl.kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
  .qk-sum dl.kv dd { margin-bottom: 0; }
  .cmd code { flex: 1 1 100%; }
  .wl-month { flex-wrap: wrap; }
  .wl-mname { min-width: 0; }
  .wl-menu { left: 8px !important; right: 8px; width: auto; }
  .banner { align-items: flex-start; flex-wrap: wrap; }
  .archrow .grow { min-width: 0; flex-basis: 100%; }
  .wl-libsec li .grow { min-width: 0; }

  /* okna: čez cel zaslon, gumbi spodaj */
  dialog:not(.sheet), dialog.wide { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0;
    padding: calc(16px + env(safe-area-inset-top)) 16px 0; }
  dialog:not(.sheet) > form { display: flex; flex-direction: column; min-height: 100%; }
  dialog .dialog-actions { position: sticky; bottom: 0; z-index: 2; margin: auto -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line); }
  dialog .dialog-actions button { flex: 1; justify-content: center; }
  dialog h2 { font-size: 19px; }
  .review .preview { min-height: 0; }

  /* seznami kot kartice: računi, partnerji, storitve */
  table.mcards thead { display: none; }
  table.mcards, table.mcards tbody, table.mcards tfoot { display: block; }
  table.mcards tr { display: grid; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); align-items: center; }
  table.mcards td { display: block; padding: 0; border: 0; min-width: 0; }
  table.mcards tbody tr:last-child { border-bottom: 0; }
  table.mcards select[data-shop-mode], table.mcards select[data-shop-credits] { padding-left: 9px; padding-right: 9px; }          /* the mode and the credits of a key of the shop API: the longest label needs 1 px more than the select has at 375 px in Inter (found by tools/ui_shop.js) */
  table.invlist tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no total" "who st" "date open"; }
  table.invlist .c-no { grid-area: no; }
  table.invlist .c-who { grid-area: who; }
  table.invlist .c-who .avatar { width: 26px; height: 26px; font-size: 10.5px; }
  table.invlist .c-who .who { min-width: 0; }
  table.invlist .c-who .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.invlist .c-total { grid-area: total; text-align: right; }
  table.invlist .c-st { grid-area: st; justify-self: end; }
  table.invlist .c-date { grid-area: date; font-size: 12.5px; }
  table.invlist .c-due { display: none; }
  table.invlist .c-open { grid-area: open; text-align: right; font-size: 12.5px; }
  table.invlist tfoot tr { display: flex; flex-wrap: wrap; gap: 2px 14px; background: var(--panel-2); }
  table.invlist tfoot td { background: transparent; border: 0; }
  table.invlist tfoot td:first-child { flex: 1 1 100%; }
  table.invlist tfoot td:empty { display: none; }
  table.plist-t tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who open" "total total" "act act"; }
  table.plist-t .p-who { grid-area: who; }
  table.plist-t .p-tax, table.plist-t .p-days, table.plist-t .p-count { display: none; }
  table.plist-t .p-total { grid-area: total; font-size: 12.5px; color: var(--muted); text-align: left; }
  table.plist-t .p-open { grid-area: open; text-align: right; }
  table.plist-t .p-act { grid-area: act; }
  table.plist-t .row-actions { justify-content: flex-start; }
  table.slist-t tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "meta act"; }
  table.slist-t .s-name { grid-area: name; }
  table.slist-t .s-price { grid-area: price; text-align: right; }
  table.slist-t .s-code, table.slist-t .s-vat { display: none; }
  table.slist-t .s-unit { grid-area: meta; font-size: 12.5px; }
  table.slist-t .s-act { grid-area: act; }

  /* postavke računa: vrstica kot kartica (naziv čez celo širino, številke v mreži) */
  table.items thead { display: none; }
  table.items, table.items tbody { display: block; }
  table.items tr { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; padding: 12px 14px;
    border-bottom: 1px solid var(--line-2); }
  table.items td, table.items td:first-child { display: block; padding: 0; border: 0; }
  table.items td.it-name { grid-column: 1 / -1; padding-right: 50px; }
  table.items td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 0 2px 2px; }
  table.items input, table.items select { border-color: var(--line); background-color: var(--panel); }
  table.items select.rsn { max-width: none; }
  table.costlines { min-width: 0; }
  table.costlines select[name=vat_treatment], table.costlines select[name=grid_class], table.costlines input[name=category] { min-width: 0; }     /* the cells of the card are a third of the width: a minimum of 190 px spilled over the next one */
  table.items td.amt { align-self: end; text-align: right; padding: 0 2px 12px; }
  table.items td.it-x { position: absolute; top: 12px; right: 12px; }
  table.items tr .del { opacity: 1; }
  table.items tr.new td.it-x { position: static; grid-column: 1 / -1; }
  table.items tr.new td.it-x button { width: 100%; }
  table.items tr.new td.amt { display: none; }
  table.items tr.new td.it-name { padding-right: 0; }
  table.items tr.new { background: var(--panel-2); }
  table.items tr.new td { background: transparent; }
  .sumbox { padding: 14px 16px; }

  .qk { gap: 12px; }
}
@keyframes sheetup { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
  .qk-steps a { font-size: 11px; }
  .bnav a, .bnav button { font-size: 11px; }
}

/* davčno potrjevanje (FURS): okvir z ZOI / EOR in koda QR na zaslonu (izpis: print.css .fqr) */
.fiscal-box h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fiscal-box dl.kv dd { overflow-wrap: anywhere; }
.fqr-screen svg { width: 120px; height: 120px; display: block; background: #fff; border-radius: 6px; }
.qk-fis { text-align: left; margin: 14px 0; }
/* SumUp Solo: okno plačila na terminalu (stanje, gumbi v več vrsticah na telefonu) */
.su-pay .banner { margin: 6px 0 0; }
.su-acts { flex-wrap: wrap; }
/* Stripe (DV-30): okno plačila s kodo QR, trak testnega načina, seznam plačil za izbiro, rezultat preizkusa */
.st-pay .st-qr { display: block; width: min(100%, 264px); margin: 14px auto 6px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.st-pay .st-qr svg { display: block; width: 100%; height: auto; }
.st-pay .st-scan { text-align: center; margin: 4px 0 10px; font-weight: 600; }
.st-pay .st-url input { width: 100%; font-size: 12px; color: var(--muted); }
.st-pay .st-acts { flex-wrap: wrap; }
.st-pay .st-dash { margin: 10px 0 0; text-align: center; }
.st-test { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); font-weight: 600; }
.st-cands { display: grid; gap: 8px; margin: 10px 0; }
.st-cand { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.st-cand.match { border-color: var(--ok); }
.st-cand.off { opacity: .72; cursor: default; }
.st-cand .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-test-res { margin-top: 10px; }
.st-checks { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.st-checks li { display: flex; gap: 8px; align-items: flex-start; }
.st-checks li.ok svg.i { color: var(--ok); }
.st-checks li.bad svg.i { color: var(--bad); }
.st-checks li.unk svg.i { color: var(--warn, var(--bad)); }
@media (max-width: 720px) {
  .st-pay .st-qr { width: min(56vw, 216px); margin-top: 6px; padding: 8px; }
  .st-pay .st-acts button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .st-pay .st-acts button[data-stp="app"], .st-pay .st-acts button[data-stp="find"], .st-pay .st-acts button[data-stp="open"] { flex-basis: 100%; }
}
.su-spin { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: suspin .8s linear infinite; }
@keyframes suspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .su-spin { animation: none; border-right-color: currentColor; opacity: .5; } }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  dialog .su-acts button { flex: 1 1 100%; }
}
/* ---------- spletna trgovina (WooCommerce): #/shop, #/shop/<id>, #/company/woo ---------- */
.kpis.shop-kpis { grid-template-columns: repeat(3, 1fr); }
.kpi .kpi-cta { margin-top: 4px; }
.kpi .kpi-cta button { width: 100%; justify-content: center; }
.kpi .kpi-cta button:disabled, .wact button:disabled, #wSync:disabled, #wSyncNow:disabled { opacity: .5; cursor: default; box-shadow: none; }
.banner > div { min-width: 0; }
.banner > div div { font-weight: 500; margin-top: 2px; }
.banner.wfiscal, .banner:has(> div) { align-items: flex-start; }
.banner code, .wtable code, .wpol code { font-size: 12px; background: color-mix(in srgb, currentColor 10%, transparent); padding: 0 4px; border-radius: 4px; overflow-wrap: anywhere; }
.wstat { display: inline; }
.wstat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.wstat.ok::before { background: var(--ok); }
.wstat.run::before { display: none; }
.wstat.warn { color: var(--warn); } .wstat.warn::before { background: var(--warn); }
.wstat.bad { color: var(--bad); font-weight: 600; } .wstat.bad::before { background: var(--bad); }
.wstat svg.i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.tag.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; text-transform: none; letter-spacing: 0; }
.tag.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; text-transform: none; letter-spacing: 0; }
.pill.mute { color: var(--muted); background: var(--line-2); }
.sync { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.sync svg.i { width: 13px; height: 13px; }
.sync.ok { color: var(--ok); } .sync.pending { color: var(--info); } .sync.bad { color: var(--bad); }
.total-card .sync { margin-left: 0; color: #fff; }
#wTabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.wtable td { vertical-align: top; }
.wtable .wgw { font-weight: 550; margin-bottom: 3px; }
.wtable .wflags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.wtable .wmatch { min-width: 170px; max-width: 280px; }
.wtable .wmatch .tag { margin-top: 2px; }
.wact-cell { width: 1%; white-space: nowrap; }
.wact { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.btn.small { padding: 5px 9px; font-size: 12.5px; }
.wmore { display: flex; gap: 10px; align-items: center; justify-content: center; border-top: 1px solid var(--line); padding: 12px 16px; }
.popmenu { position: fixed; z-index: 70; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.popmenu a, .popmenu button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; width: 100%; box-shadow: none; }
.popmenu a:hover, .popmenu button:hover, .popmenu a:focus-visible, .popmenu button:focus-visible { background: var(--line-2); outline: none; }
.popmenu svg.i { width: 16px; height: 16px; color: var(--muted); }
.wdetail .side-col { position: static; }
.wchecks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wchecks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.wchecks li .grow { flex: 1; min-width: 0; }
.wchecks .chk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 12px; }
.wchecks li.ok .chk { color: var(--ok); background: var(--ok-soft); }
.wchecks li.bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.wchecks li.bad .chk { color: var(--bad); background: var(--bad-soft); }
.wapprove { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
dialog h3 > svg.i:first-child { margin-right: 7px; vertical-align: -3px; }
.wapprove label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.wapprove input[type=radio] { margin-top: 3px; }
table.kv td { padding: 5px 0; border: 0; vertical-align: top; }
table.kv td:first-child { width: 38%; padding-right: 12px; }
.wtl { list-style: none; margin: 0; padding: 0; }
.wtl li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.wtl li:last-child { border-bottom: 0; }
.wtl time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 118px; }
.wtl li > div { min-width: 0; overflow-wrap: anywhere; }
.wtx-list { display: flex; flex-direction: column; gap: 8px; }
.wtx { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wtx input { margin-top: 4px; }
.wtx:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wtx .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wprev th, .wprev td { padding: 7px 10px; }
.wcand td { vertical-align: top; }
.wbulk { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.wbulk td { padding: 7px 12px; }
.chip.wchip { padding: 6px 12px; font-size: 13px; }
.wgrid { display: flex; flex-direction: column; gap: 18px; }
.wgrid > .card { min-width: 0; }
.wgrid dl.kv dd { font-weight: 500; }
.wsave { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 12px; flex-wrap: wrap; }
.wsave .grow { flex: 1; min-width: 200px; }
.wpol td, .wpol th { padding: 8px 10px; vertical-align: middle; }
.wpol tr.wunknown td { background: var(--warn-soft); }
.wpol select { width: 100%; min-width: 150px; }
.wpol tr.wtick td { padding-top: 0; border-top: 0; }
.wpol tr.wtick label { display: flex; gap: 8px; align-items: center; color: var(--warn); font-weight: 550; }
details.whelp { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.whelp > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.whelp ol { padding-left: 20px; line-height: 1.7; color: var(--ink-2); }
details.whelp pre.code { max-height: 260px; overflow: auto; font-size: 11.5px; line-height: 1.5; background: var(--line-2); padding: 8px 10px; border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 2px 0; }
.wcheck { display: flex; gap: 8px; align-items: center; font-weight: 550; cursor: pointer; }
.wauto { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.wauto h4 { margin: 0 0 6px; font-size: 14px; }
.wauto .wcheck { align-items: flex-start; font-weight: 500; margin: 6px 0; }
.wauto .wcheck input { margin-top: 3px; flex: none; }
.wauto .wcheck .hint { display: inline; }
.wonb ol { padding-left: 20px; color: var(--ink-2); line-height: 1.75; }
.toast.act { pointer-events: auto; }
.toast .tact { color: inherit; text-decoration: underline; font-weight: 700; margin-left: 6px; white-space: nowrap; }
svg.i.spin { animation: wspin 1s linear infinite; }
@keyframes wspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { svg.i.spin { animation: none; } }
@media (max-width: 1100px) { .kpis.shop-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .kpis.shop-kpis { grid-template-columns: 1fr; } .wtl li { flex-direction: column; gap: 2px; } .wtl time { min-width: 0; }
  .wpol thead { display: none; }
  .wpol tr[data-gw] { display: block; border-top: 1px solid var(--line); }
  .wpol tr[data-gw] td { display: block; border: 0; padding: 4px 4px; }
  .wpol tr[data-gw] td:first-child { padding-top: 12px; }
  .wpol tr.wtick td { display: block; }
}
/* ---------- nov račun na eni strani (#/nov-racun) ---------- */
.ni { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.ni > *, .ni .stack > * { min-width: 0; }
.ni-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.card h3.ni-h { margin-top: 22px; }
.ni-pick { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.ni-combo { position: relative; flex: 1 1 260px; min-width: 0; }
.ni-combo input { width: 100%; }
.ni-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.ni-opt { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.ni-opt .avatar { width: 26px; height: 26px; font-size: 10.5px; }
.ni-opt .grow { display: flex; flex-direction: column; min-width: 0; }
.ni-opt .n { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni-opt .s { font-size: 12px; color: var(--muted); }
.ni-opt.on, .ni-opt:hover { background: var(--accent-soft); }
.ni-opt.add { color: var(--accent); font-weight: 600; border-top: 1px solid var(--line-2); margin-top: 2px; }
.ni-none { padding: 8px 10px; color: var(--muted); }
.ni-info { margin-top: 10px; min-height: 30px; }
.ni-info .s { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ni-more { margin-top: 16px; }
.ni-more > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.ni-more > .grid { margin-top: 12px; }
.ni-addline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 4px; }
.ni-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ni-actions button { width: 100%; justify-content: center; }
.total-card .ni-ell { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ožje okno: tabela postavk potrebuje celo širino, znesek in gumbi so pod postavkami (na telefonu drug pod drugim) */
@media (max-width: 1240px) { .ni { grid-template-columns: 1fr; } .ni-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 700px) { .ni-side { grid-template-columns: 1fr; } }

/* ---------- Nastavitve računov: logotip na računu (višina, poravnava, predogled glave v merilu 1 : 1) ---------- */
.logo-drop { flex-wrap: wrap; }                  /* ozko okno z logotipom: gumba gresta v novo vrstico (prej čez rob strani) */
.lg-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.lg-ctl input[type=range] { flex: 1 1 180px; min-width: 140px; accent-color: var(--accent); }
.lg-v { min-width: 52px; font-variant-numeric: tabular-nums; }
.lg-pv-wrap { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--line-2); overflow: hidden; }
.lg-paper { width: 186mm; padding: 4mm; background: #fff; color: #111627; box-shadow: 0 2px 10px rgba(14, 17, 32, .12);
  font: 9.6pt/1.45 "Inter", "Segoe UI", Arial, sans-serif; }
.lg-row { display: flex; align-items: flex-start; margin-bottom: 5mm; }
.lg-row.center { justify-content: center; }
.lg-row.right { justify-content: flex-end; }
.lg-row img, .lg-row .lg-ph { margin-bottom: 0; }
.lg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.lg-iss { font-size: 8.8pt; color: #6b7285; line-height: 1.55; }
.lg-iss b { display: block; font-size: 12.5pt; color: #111627; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1mm; }
.lg-iss img, .lg-iss .lg-ph { display: block; margin-bottom: 3mm; }
.lg-paper img { display: block; }
.lg-ph { display: grid; place-items: center; border: 1.5px dashed #b9bdcc; border-radius: 2mm; color: #9aa0b4; font-size: 8pt; }
.lg-doc { text-align: right; }
.lg-doc .k { font-size: 25pt; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.lg-doc .n { margin-top: 2mm; font-size: 11pt; font-weight: 600; color: #5b5bd6; }

/* naročnine (DV-16): seznam kot kartice na telefonu (isti pogoj kot glavni @media) */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  table.sublist tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name total" "who st" "next next" "att att"; }
  table.sublist .s-name { grid-area: name; }
  table.sublist .s-who { grid-area: who; color: var(--muted); }
  table.sublist .s-total { grid-area: total; text-align: right; }
  table.sublist .s-st { grid-area: st; justify-self: end; text-align: right; }
  table.sublist .s-next { grid-area: next; font-size: 12.5px; }
  table.sublist .s-att { grid-area: att; }
  table.sublist .s-att:empty { display: none; }
}

/* pošta (DV-17): seznam prejetih sporočil (kartice na telefonu), glava in besedilo sporočila */
table.maillist td.m-who { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.maillist td.m-subj { overflow-wrap: anywhere; }
table.maillist tr.unread td.m-who, table.maillist tr.unread td.m-subj { font-weight: 650; }
table.maillist .mb-clip, .mb-att .mb-clip { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: var(--muted); }
.mb-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.mb-bar select { max-width: 220px; }
.mb-search { display: flex; gap: 8px; flex: 1 1 260px; min-width: 0; }
.mb-search input { flex: 1; min-width: 0; }
.mb-count { margin-left: auto; }
.mb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mb-head { display: grid; gap: 6px; margin-bottom: 18px; }
.mb-h { display: flex; gap: 12px; }
.mb-k { flex: 0 0 90px; color: var(--muted); }
.mb-v { min-width: 0; overflow-wrap: anywhere; }
.mb-att { display: inline-block; margin-right: 12px; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px 20px; font-size: 14.5px; line-height: 1.55; max-height: 70vh; overflow: auto; }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  table.maillist tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who date" "subj subj" "flags size"; }
  table.maillist .m-who { grid-area: who; color: var(--muted); max-width: none; }
  table.maillist .m-date { grid-area: date; justify-self: end; font-size: 12.5px; }
  table.maillist .m-subj { grid-area: subj; }
  table.maillist .m-flags { grid-area: flags; }
  table.maillist .m-flags:empty { display: none; }
  table.maillist .m-size { grid-area: size; justify-self: end; font-size: 12.5px; color: var(--muted); }
  .mb-h { flex-direction: column; gap: 0; }
  .mb-k { flex: none; }
}

/* pošta v2 (DV-17): čipi, napredno iskanje, vrstica aktivnih filtrov, »Naloži več«, izbirnik računa pri odgovoru */
.mb-bar select#mbSort { max-width: 190px; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.pk-chips { padding: 0; margin: 10px 0 8px; }
.mb-chip { border-radius: 99px; padding: 6px 14px; min-height: 34px; font-size: 13px; font-weight: 550; background: var(--panel); color: var(--ink-2); }
.mb-chip.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mb-chip.on::before { content: "\2713"; margin-right: 6px; font-weight: 700; }
.mb-adv { margin: 12px 16px 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel-2); }
.mb-adv .hint { margin-top: 8px; }
.mb-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 16px 6px; font-size: 13px; }
.mb-x { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 6px 3px 11px; font-size: 12.5px; font-weight: 550; background: var(--accent-soft); color: var(--accent); border-color: transparent; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.mb-x svg.i { width: 14px; height: 14px; }
.mb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mb-jump { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-jump label { color: var(--muted); font-size: 13px; }
.pk-only { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 4px 0 8px; }
.pk-head { margin: 4px 0 6px; }
.pk-list { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 340px; background: var(--panel); }
.pk-empty { padding: 16px; color: var(--muted); }
.pk-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "box main amt" "box who meta"; gap: 3px 12px; align-items: center; padding: 10px 14px; min-height: 58px; border-top: 1px solid var(--line); cursor: pointer; }
.pk-row:first-child { border-top: 0; }
.pk-row:hover { background: var(--panel-2); }
.pk-row.on { background: var(--accent-soft); }
.pk-row.act { outline: 2px solid var(--accent); outline-offset: -2px; }
.pk-box { grid-area: box; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--accent-ink); font-size: 14px; font-weight: 800; line-height: 1; background: var(--panel); }
.pk-row.on .pk-box { background: var(--accent); border-color: var(--accent); }
.pk-main { grid-area: main; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.pk-amt { grid-area: amt; font-weight: 650; text-align: right; white-space: nowrap; }
.pk-who { grid-area: who; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.pk-meta { grid-area: meta; color: var(--muted); font-size: 12.5px; text-align: right; }
.pk-kind { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.pk-kind.k-storno, .pk-kind.k-credit { color: var(--info); background: var(--info-soft); border-color: transparent; }
.pk-sel { margin-top: 12px; display: grid; gap: 6px; }
.pk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.pk-pick-who { color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.pk-pick-amt { font-weight: 650; }
.pk-pick .pk-pick-dates { flex-basis: 100%; font-size: 12.5px; }
.pk-pick button { margin-left: auto; }
.pk-sum { display: grid; gap: 6px; }
.pk-warn { border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.pk-warn.red { border: 2px solid var(--bad); color: var(--bad); background: var(--bad-soft); }
.pk-warn.amber { border: 2px solid var(--warn); color: var(--warn); background: var(--warn-soft); }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .mb-chips { padding: 10px 12px 0; }
  .pk-chips { padding: 0; }
  .mb-active, .mb-foot { padding-left: 12px; padding-right: 12px; }
  .mb-adv { margin: 10px 12px 0; }
  .mb-chip { min-height: 40px; padding: 8px 14px; }
  .pk-row { min-height: 64px; grid-template-areas: "box main main" "box who amt" "box meta meta"; }
  .pk-meta { text-align: left; }
  .mb-jump { margin-left: 0; }
}

/* ---------- branje naloženih računov (Sumto PHP, DV-27): nalaganje in pregled osnutka ---------- */
/* besedilo v barvi zaupanja: barva znaka, potemnjena (svetla tema) ali posvetljena (temna) z barvo besedila, da ima besedilo majhne velikosti kontrast 4,5 (barve znakov same imajo 3) */
:root { --ok-ink: var(--ok); --warn-ink: var(--warn); --bad-ink: var(--bad); --info-ink: var(--info); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root { --ok-ink: color-mix(in srgb, var(--ok) 60%, var(--ink)); --warn-ink: color-mix(in srgb, var(--warn) 60%, var(--ink)); --bad-ink: color-mix(in srgb, var(--bad) 75%, var(--ink)); --info-ink: color-mix(in srgb, var(--info) 60%, var(--ink)); }
}
.in-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--panel-2); transition: border-color .15s, background .15s; }
.in-drop.over, .in-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.in-drop .big-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.in-drop .big-ico svg.i { width: 24px; height: 24px; }
.in-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.in-btns .btn { cursor: pointer; }
.in-tray { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.in-tray:empty { margin-top: 0; }
.in-page { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.in-page img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); transition: transform .2s; }
.in-file { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.in-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-acts { display: flex; gap: 4px; }
.in-go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.in-msg { margin-top: 10px; min-height: 22px; font-weight: 550; }
.in-msg .bad, .hint.bad, .field .hint .bad { color: var(--bad-ink); }
.in-two > * { min-width: 0; }
.in-privacy { margin-top: 12px; }
.rd-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-privacy { margin: 4px 0 10px; padding-left: 20px; }
.rd-privacy li { margin: 6px 0; overflow-wrap: anywhere; }
#rdOn .wl-check, #rdConn .wl-check { align-items: flex-start; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: inspin .8s linear infinite; vertical-align: -1px; }
@keyframes inspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-top-color: var(--accent); } .in-page img { transition: none; } }
.rv-counter { margin-top: 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--line-2); }
.rv-sent pre { max-height: 220px; overflow: auto; font-size: 11.5px; background: var(--line-2); padding: 8px 10px; border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; }
.rv-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.rv-split > * { min-width: 0; }
.rv-docwrap { position: sticky; top: 16px; padding: 0; overflow: hidden; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.rv-docwrap.shut .rv-body { display: none; }
.rv-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-pages { display: inline-flex; gap: 4px; }
.rv-pages button { min-width: 30px; padding: 4px 8px; }
.rv-pages button.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.rv-body { overflow: auto; flex: 1; min-height: 240px; }
.rv-xml { padding: 18px; min-height: 0; }
.rv-pdf { width: 100%; height: calc(100vh - 110px); border: 0; display: block; background: #fff; }
.rv-img { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.rv-img img { display: block; max-width: 100%; height: auto; }
.rv-box { position: absolute; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; pointer-events: none; }
.rv-svg { width: 100%; height: auto; display: block; color: var(--ink); background: var(--panel); }
.rv-svg text { fill: currentColor; }
.rv-svg .hi { fill: var(--accent); fill-opacity: .25; stroke: var(--accent); stroke-width: 2; }
.rv-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rv-main > * { min-width: 0; }
.rv-main .editor { grid-template-columns: minmax(0, 1fr); }
.rv-main .side-col { position: static; order: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.rv-main .side-col > * { min-width: 0; }
.rv-main .pay-item .grow { min-width: 0; overflow-wrap: anywhere; }
.rv-main .side-col .rv-amounts { grid-column: 1 / -1; }
.rv-amounts .totals { width: 100%; }
.rv-amounts .totals td { padding: 5px 8px; vertical-align: middle; }
.rv-amounts .totals td:first-child { padding-left: 12px; }
.rv-amounts .totals td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rv-amounts .totals td:last-child { text-align: right; padding-right: 0; }
.rv-panel h3 { margin: 0; }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-route { margin: 4px 0 8px; }
.rv-notes { margin: 4px 0 8px; padding-left: 18px; color: var(--ink-2); }
.rv-flags { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-flag { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: var(--radius-sm); }
.rv-flag.red { background: var(--bad-soft); color: var(--bad-ink); }
.rv-flag.amber { background: var(--warn-soft); color: var(--warn-ink); }
.rv-flag.info { background: var(--info-soft); color: var(--info-ink); }
.rv-flag.acked { opacity: .7; }
.rv-flag .lv svg { margin-top: 2px; }
.rv-flag .grow { color: var(--ink); }
.rv-f { border-left: 3px solid transparent; padding-left: 8px; border-radius: 4px; }
.rv-f.cf-green { border-left-color: var(--ok); }
.rv-f.cf-amber { border-left-color: var(--warn); background: var(--warn-soft); }
.rv-f.cf-red { border-left-color: var(--bad); background: var(--bad-soft); }
.rv-amounts tr.rv-f { border-left: 0; }
.rv-amounts tr.rv-f.cf-green td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.rv-amounts tr.rv-f.cf-amber td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.rv-amounts tr.rv-f.cf-red td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.rv-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11.5px; }
.rv-src { padding: 1px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.rv-src.green { color: var(--ok-ink); background: var(--ok-soft); }
.rv-src.amber { color: var(--warn-ink); background: var(--warn-soft); }
.rv-src.red { color: var(--bad-ink); background: var(--bad-soft); }
.rv-alt { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 11.5px; text-align: left; }
.rv-grps, .rv-acts, .rv-sup, .rv-mem { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.rv-grp.green { color: var(--ok-ink); }
.rv-grp.done { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.rv-why ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 900px) {
  .rv-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rv-docwrap { position: static; max-height: none; }
  .rv-pdf { height: 55vh; }
  .rv-body { max-height: 55vh; }
}

/* termini (samo Sumto PHP, DV-34): koledar osebja, podatki rezervacije, nastavitve. Stanje termina pove besedilo in oblika (črtkan rob = čaka, rdeč levi rob = čaka plačilo, prečrtano = odpovedano), ne samo barva. */
.ap-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ap-bar .grow { flex: 1 1 auto; min-width: 0; }
.ap-bar input[type=date], .ap-bar select { width: auto; max-width: 100%; }
.ap-period { font-weight: 650; overflow-wrap: anywhere; }
.ap-grid { display: grid; grid-template-columns: 52px minmax(0, 1fr); overflow-x: auto; }
.ap-axis { position: relative; }
.ap-axis span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.ap-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); }
.ap-grid[data-kind=week] .ap-cols { grid-auto-columns: minmax(96px, 1fr); }
.ap-col { border-left: 1px solid var(--line); min-width: 0; }
.ap-colh { height: 46px; padding: 6px 8px; font-weight: 650; font-size: 13px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ap-colh span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-colh small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-colh.today { color: var(--accent); }
.ap-colb { position: relative; cursor: copy; }
.ap-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); pointer-events: none; }
.ap-blk { position: absolute; box-sizing: border-box; border-radius: 8px; padding: 2px 6px; font: inherit; font-size: 11.5px; line-height: 1.2; text-align: left; overflow: hidden; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; white-space: nowrap; }
.ap-blk:hover { border-color: var(--accent-2); }
.ap-blk > b, .ap-blk > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ap-blk > b { font-weight: 650; }
.ap-blk .ap-st { color: var(--ink-2); }
.ap-blk.st-held, .ap-blk.st-pending_payment, .ap-blk.st-awaiting_transfer, .ap-blk.st-awaiting_order { border-style: dashed; background: repeating-linear-gradient(135deg, var(--accent-soft) 0 6px, var(--panel) 6px 12px); }
.ap-blk.st-pending_payment, .ap-blk.st-awaiting_transfer, .ap-blk.st-awaiting_order { border-left: 4px solid var(--bad); }
.ap-blk.st-cancelled, .ap-blk.st-expired { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.ap-blk.st-cancelled b, .ap-blk.st-expired b { text-decoration: line-through; }
.ap-blk.st-completed { background: var(--ok-soft); border-color: var(--ok); }
.ap-blk.st-no_show { background: var(--bad-soft); border-color: var(--bad); border-style: dotted; }
.ap-blk.att, .ap-item.att { box-shadow: inset 0 0 0 2px var(--warn); }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ap-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.ap-badge.st-held, .ap-badge.st-pending_payment, .ap-badge.st-awaiting_transfer, .ap-badge.st-awaiting_order { border-style: dashed; color: var(--warn); background: var(--warn-soft); }
.ap-badge.st-confirmed { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.ap-badge.st-completed { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.ap-badge.st-no_show { color: var(--bad); background: var(--bad-soft); border-style: dotted; }
.ap-badge.st-cancelled, .ap-badge.st-expired { text-decoration: line-through; }
.ap-days { padding: 0; }
.ap-day > h3 { margin: 0; padding: 10px 14px; font-size: 13.5px; background: var(--panel-2); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ap-day > h3.today { color: var(--accent); }
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-dlg h2, .ap-dlg .dsub { overflow-wrap: anywhere; }
.ap-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-width: 0; white-space: normal; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ap-item.st-held, .ap-item.st-pending_payment, .ap-item.st-awaiting_transfer, .ap-item.st-awaiting_order { border-left: 4px dashed var(--warn); }
.ap-item.st-cancelled .ap-what, .ap-item.st-expired .ap-what { text-decoration: line-through; color: var(--muted); }
.ap-item .ap-t { flex: none; width: 46px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ap-item .ap-t small { display: block; font-weight: 500; color: var(--muted); }
.ap-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-chip { display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--line-2); border: 1px solid var(--line); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-none { padding: 12px 14px; color: var(--muted); font-size: 13px; }
.ap-dl { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; }
.ap-dl dt { color: var(--muted); font-size: 12.5px; }
.ap-dl dd { margin: 0; overflow-wrap: anywhere; }
.ap-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ap-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--panel-2); }
.ap-panel:empty { display: none; }
.ap-hist { font-size: 12.5px; }
.ap-hist td { padding: 6px 8px; vertical-align: top; overflow-wrap: anywhere; }
.ap-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-slot { padding: 5px 10px; font-variant-numeric: tabular-nums; }
.ap-slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.ap-slot.on::before { content: '✓'; margin-right: 4px; }
.ap-err { margin: 0 0 12px; }
.ap-err:empty { display: none; }
.ap-bad, .ap-bad input { border-color: var(--bad) !important; }
.ap-hours { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.ap-sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; border: 1px solid var(--line); }
.ap-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ap-check input { width: auto; }
.ap-sub { font-size: 15px; margin: 22px 0 8px; }
.ap-fs { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 12px 0; min-width: 0; }
.ap-fs legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
#apS-snippet { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; }
@media (max-width: 760px) {
  .ap-bar { padding: 10px 12px; }
  .ap-bar .seg { order: 1; }
  .ap-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ap-dl dd { margin-bottom: 8px; }
  .ap-hours { grid-template-columns: minmax(0, 1fr); }
}
