/* AI pisarna – sodoben, pregleden vmesnik */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fff4ec;
  --ok: #15803d; --ok-soft: #ecfdf3;
  --warn: #b45309; --warn-soft: #fffbeb;
  --err: #dc2626; --err-soft: #fef2f2;
  --info: #2563eb; --info-soft: #eff6ff;
  --side-bg: #0f172a; --side-text: #cbd5e1; --side-muted: #64748b; --side-hover: rgba(255,255,255,.06);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 30px -12px rgba(15,23,42,.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --panel: #111827; --panel-2: #0f172a; --text: #e5e7eb; --muted: #94a3b8;
    --line: #1f2937; --line-strong: #334155; --accent: #fb923c; --accent-hover: #fdba74; --accent-ink: #1c0d02;
    --accent-soft: rgba(251,146,60,.12); --ok: #4ade80; --ok-soft: rgba(74,222,128,.1); --warn: #fbbf24;
    --warn-soft: rgba(251,191,36,.1); --err: #f87171; --err-soft: rgba(248,113,113,.1); --info: #60a5fa;
    --info-soft: rgba(96,165,250,.1); --side-bg: #020617; --shadow: none; --shadow-lg: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1 { font-size: 1.6rem; margin: 0 0 .2rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.02rem; margin: 0 0 .8rem; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .92rem; margin: 1.1rem 0 .5rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* Postavitev */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-text); padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: .7rem; align-items: center; padding: .2rem .55rem 1.3rem; font-weight: 700; color: #fff; font-size: 1rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; box-shadow: 0 4px 12px rgba(234,88,12,.35); }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--side-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: .9rem .75rem .35rem; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 8px; color: var(--side-text); font-weight: 500; position: relative; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.on { background: rgba(249,115,22,.14); color: #fdba74; }
.nav a.on::before { content: ""; position: absolute; left: -.8rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #f97316; }
.nav .ico { display: inline-flex; opacity: .9; }
.nav .count { margin-left: auto; background: #f97316; color: #fff; border-radius: 99px; font-size: .7rem; padding: .05rem .5rem; font-weight: 700; }
.nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: .7rem .5rem; }
.side-foot { margin-top: auto; padding: .9rem .6rem .2rem; font-size: .82rem; color: var(--side-muted); border-top: 1px solid rgba(255,255,255,.07); }
.side-foot .who { color: var(--side-text); font-weight: 600; display: block; margin-bottom: .35rem; overflow: hidden; text-overflow: ellipsis; }
.side-foot a, .side-foot .linkbtn { color: var(--side-muted); background: none; border: 0; font: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.side-foot a:hover, .side-foot .linkbtn:hover { color: #fff; }
.side-foot .ai-tag { border-color: rgba(255,255,255,.15); color: var(--side-muted); }
.main { padding: 2rem 2.4rem 4rem; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.topbar p.muted { margin: .15rem 0 0; }
.mobile-bar { display: none; }
.banner { background: #1e293b; color: #fde68a; padding: .55rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 1.1rem 1rem 6rem; }
  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; padding: .5rem 0 .55rem; font-size: .68rem; color: var(--muted); gap: 3px; font-weight: 500; }
  .mobile-bar a.on { color: var(--accent); font-weight: 650; }
  .mobile-bar .ico { display: inline-flex; }
  h1 { font-size: 1.35rem; }
}

/* Kartice in mreže */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head a { font-size: .85rem; font-weight: 600; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .split, .g3 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2 { grid-template-columns: minmax(0, 1fr); } .kpi .v { font-size: 1.3rem; } .kpi { padding: .8rem .9rem; } }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); position: relative; }
.kpi .l { color: var(--muted); font-size: .8rem; font-weight: 550; display: flex; align-items: center; gap: .45rem; }
.kpi .l .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.kpi .v { font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin-top: .55rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: .78rem; margin-top: .25rem; }

/* Gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: background .12s, border-color .12s, color .12s; }
.btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(234,88,12,.3); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { filter: brightness(1.08); color: #fff; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: .3rem .65rem; min-height: 30px; font-size: .8rem; }
.btn.lg { padding: .75rem 1.3rem; font-size: 1rem; min-height: 48px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.inline { display: inline; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Obrazci */
label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .35rem; color: var(--text); }
.field { margin-bottom: 1rem; }
.hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; min-height: 40px; transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=file] { font: inherit; font-size: .85rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: .2rem; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-strong); border-radius: 99px; padding: .25rem .75rem; font-size: .8rem; background: var(--panel); cursor: pointer; font-weight: 550; margin: 0; }
.chip input { margin: 0; accent-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .35rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filters input[type=search] { max-width: 300px; }
.filters select { width: auto; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1rem; background: var(--panel); border: 1px solid var(--line); padding: .25rem; border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs a { padding: .4rem .8rem; color: var(--muted); border-radius: 7px; font-weight: 600; font-size: .84rem; }
.tabs a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a:hover { color: var(--text); }

/* Tabele */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; white-space: nowrap; background: var(--panel-2); }
.card[style*="padding:0"] table th:first-child { border-top-left-radius: var(--radius); }
.card[style*="padding:0"] table th:last-child { border-top-right-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--panel-2); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tfoot td { font-weight: 700; }

/* Oznake */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 650; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.novo, .badge.poslana, .badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.v_obdelavi, .badge.osnutek, .badge.warn, .badge.normalna { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.ponudba { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.dobljeno, .badge.sprejeta, .badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.izgubljeno, .badge.zavrnjena, .badge.spam, .badge.err, .badge.visoka { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge.potekla, .badge.nizka { background: var(--panel-2); color: var(--muted); }
.badge.normalna { display: none; }
.ai-tag { font-size: .68rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 .4rem; font-weight: 600; letter-spacing: .02em; }

/* Sporočila */
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: .9rem; font-weight: 500; border: 1px solid transparent; font-size: .9rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 20%, transparent); }
.flash.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 20%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .big { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: .7rem; color: var(--muted); }
.empty .big .icon { width: 24px; height: 24px; }

/* Seznami */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .8rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; }
.list a.title:hover { color: var(--accent); }
.list .meta { font-size: .8rem; color: var(--muted); }
.src { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.timeline li { padding: .45rem 0 .45rem 1.1rem; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .9rem; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.timeline .when { color: var(--muted); font-size: .74rem; display: block; }
.timeline a { color: var(--text); }
.timeline a:hover { color: var(--accent); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .84rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.quote-text { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; max-height: 340px; overflow: auto; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumbs a { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; font-size: .72rem; text-align: center; color: var(--muted); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #fb923c, #ea580c); border-radius: 99px; }
.missing { padding-left: 1.1rem; }
.missing li { color: var(--warn); margin-bottom: .2rem; }

/* Urejevalnik ponudbe */
.lines input, .lines select { min-height: 36px; padding: .35rem .55rem; }
.lines td { padding: .4rem .35rem; vertical-align: middle; }
.lines .c-desc { min-width: 260px; }
.lines .c-qty input { width: 92px; text-align: right; }
.lines .c-unit select { width: 84px; }
.lines .c-price input { width: 104px; text-align: right; }
.lines .c-sum { width: 112px; font-weight: 600; }
.lines tr.review { background: var(--warn-soft); }
.lines .drag { cursor: grab; color: var(--line-strong); user-select: none; padding: 0 .2rem; width: 20px; }
.lines .drag:hover { color: var(--muted); }
.totals { margin-left: auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--text); margin-top: .35rem; padding-top: .55rem; letter-spacing: -.01em; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); padding: .8rem 0; border-top: 1px solid var(--line); margin-top: 1rem; z-index: 5; }
@media (max-width: 900px) { .sticky-actions { bottom: 58px; } }

/* Teren */
.mic { width: 100%; padding: 1.15rem; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .5rem; }
.mic .icon { width: 22px; height: 22px; }
.mic.rec { background: var(--err); border-color: var(--err); border-style: solid; color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .82; } }
.room { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .85rem; background: var(--panel); box-shadow: var(--shadow); }
.room-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.room-head input { font-weight: 700; }
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.dims label { font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
@media (max-width: 560px) { .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0; }
.metrics span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: .2rem .6rem; font-size: .8rem; }
.metrics b { font-variant-numeric: tabular-nums; }
.room.deleted { opacity: .45; }
details summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--accent); margin: .3rem 0; }

/* Javne strani */
.public { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.public.embed { padding: .5rem; max-width: none; }
.public-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.public-head img { max-height: 56px; max-width: 160px; }
.public-head .who { font-weight: 700; font-size: 1.15rem; }
.notice { font-size: .78rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Prijava */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg); }
.auth .card { width: 100%; max-width: 410px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth .brand { color: var(--text); padding: 0 0 1.3rem; }
.auth .brand small { color: var(--muted); }

.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.02rem; background: var(--panel-2); padding: .35rem .6rem; border-radius: 6px; border: 1px dashed var(--accent); user-select: all; display: inline-block; }
.copy { cursor: pointer; }
@media print { .side, .mobile-bar, .sticky-actions, .topbar .actions { display: none !important; } .shell { display: block; } }

/* Postavke ponudbe na telefonu: vsaka postavka kot kartica */
@media (max-width: 700px) {
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr { display: grid; grid-template-columns: 1fr 84px 1fr; gap: .45rem; padding: .75rem 0; border-bottom: 1px solid var(--line); position: relative; }
  .lines td { border: 0; padding: 0; }
  .lines td.drag { display: none; }
  .lines td.c-desc { grid-column: 1 / -1; padding-right: 42px; min-width: 0; }
  .lines .c-qty input, .lines .c-price input, .lines .c-unit select { width: 100%; }
  .lines td.c-qty::before, .lines td.c-unit::before, .lines td.c-price::before { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
  .lines td.c-qty::before { content: "Količina"; }
  .lines td.c-unit::before { content: "Enota"; }
  .lines td.c-price::before { content: "Cena €"; }
  .lines td.c-sum { grid-column: 1 / -1; text-align: right; font-weight: 700; width: auto; }
  .lines td:last-child { position: absolute; top: .75rem; right: 0; }
  .lines tr.review { background: var(--warn-soft); padding: .75rem .5rem; border-radius: 10px; }
  .lines tr.review td:last-child { right: .5rem; }
}

@media (max-width: 560px) { .list li { flex-wrap: wrap; } .list li .grow { flex-basis: calc(100% - 50px); } .list li > .row { margin-left: 46px; } }
