/* Skladišče – mobile-first slog */
:root {
  --bg: #eef2f6; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --brand: #1e3a5f; --accent: #ea580c; --accent-d: #c2410c; --ok: #15803d; --warn: #b45309; --warn-bg: #fff7ed; --err: #b91c1c;
  --radius: 14px; --tap: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--bg); padding-bottom: calc(80px + var(--safe-b)); }
a { color: #1d4ed8; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .4rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace; }
code { font-size: .9em; background: #f1f5f9; padding: .05rem .3rem; border-radius: 5px; }
.small { font-size: .85rem; } .muted { color: var(--muted); } .center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; } .ic-s { width: 15px; height: 15px; vertical-align: -2px; }

/* Zgornja vrstica */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff; padding: .5rem .75rem; padding-top: calc(.5rem + env(safe-area-inset-top, 0px)); min-height: 56px; }
.topbar-title { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-back, .topbar-logo { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 10px; }
.topbar-back:active { background: rgba(255,255,255,.15); }
.desk-nav { display: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: .9rem .9rem 1.5rem; }

/* Spodnja navigacija */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.tabbar a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabbar a.on { color: var(--accent); }
.tabbar .tab-scan .ic { width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: 50%; padding: 8px; box-sizing: content-box; margin-top: -22px; box-shadow: 0 3px 10px rgba(234,88,12,.45); border: 3px solid #fff; }
.badge { position: absolute; top: 5px; left: 56%; background: var(--accent); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; padding: 0 5px; }

/* Obvestila */
.flash { padding: .8rem 1rem; border-radius: 12px; margin-bottom: .8rem; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; transition: opacity .6s, max-height .6s, margin .6s, padding .6s; max-height: 400px; overflow: hidden; }
.flash.fade { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.flash-err { background: #fef2f2; color: var(--err); border-color: #fecaca; }
.flash-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* Kartice */
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.card-warn { border-left: 5px solid var(--warn); background: var(--warn-bg); }
.card-ok { border-left: 5px solid var(--ok); }
.card > p:first-child { margin-top: 0; }
.section-title { margin: 1.4rem .2rem .6rem; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.empty { text-align: center; color: var(--muted); padding: 1.6rem 1rem; margin: 0; }
.hint { color: var(--muted); font-size: .88rem; margin: .4rem 0; }

/* Gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .6rem 1rem; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.btn:active { transform: scale(.98); background: #f1f5f9; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-d); }
.btn-danger { color: var(--err); border-color: #fca5a5; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }
.btn-big { min-height: 60px; font-size: 1.08rem; }
.btn-small { min-height: 40px; padding: .35rem .8rem; font-size: .9rem; }
.btn-block-inline { width: 100%; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row.nowrap { flex-wrap: nowrap; } .row.nowrap > input { flex: 1; min-width: 0; }
.actions { display: grid; gap: .6rem; margin: 1rem 0; }
.actions-2 { grid-template-columns: 1fr 1fr; margin: 0; }
.actions-2 form { display: flex; }
.danger-zone { margin: 2rem 0 1rem; text-align: center; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: #f1f5f9; color: #334155; cursor: pointer; }
.icon-btn:active { background: #e2e8f0; }
.icon-del { color: var(--err); background: #fef2f2; }

/* Obrazci */
label { display: block; font-weight: 600; margin: .9rem 0 .35rem; }
.card > label:first-child, .card > h2 + label { margin-top: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: .7rem .8rem; min-height: var(--tap); border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink); }
input[type=file] { width: 100%; font: inherit; font-size: 15px; padding: .5rem 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(234,88,12,.3); border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; min-height: 44px; margin: .7rem 0; font-size: .95rem; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.form-actions { margin-top: 1.2rem; }
input.file-hidden { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; padding: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.seg label { margin: 0; font-weight: 500; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font-size: .95rem; }
.seg input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Šifra / naziv */
.input-code { font-size: 1.6rem !important; font-weight: 700; letter-spacing: .08em; min-height: 62px !important; }
.field-msg p { margin: .35rem 0 0; font-size: .9rem; }
.field-msg .warn { color: var(--warn); }
.field-msg .ok { color: var(--ok); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; align-items: center; }
.chips:empty { display: none; }
.chips-label { font-size: .8rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .6rem; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--line); font-size: .8rem; color: #334155; white-space: nowrap; }
.chip-link { min-height: 40px; padding: .3rem .85rem; font: inherit; font-size: .95rem; cursor: pointer; font-family: ui-monospace, Menlo, Consolas, monospace; }
.chip-link:active { background: #e2e8f0; }
.chip-sugg { font-family: inherit; white-space: normal; text-align: left; }
.chip-warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }

/* OCR */
.ocr-card { padding: .9rem; position: relative; overflow: hidden; }
.ocr-buttons .btn-primary { flex: 1; }
.btn-gal { width: 64px; padding: 0; flex: none; }
.ocr-preview { margin: 0 0 .7rem; border-radius: 10px; overflow: hidden; background: #0f172a; }
.ocr-preview img { display: block; width: 100%; max-height: 210px; object-fit: contain; }
.ocr-progress { margin: 0 0 .7rem; }
.ocr-progress .bar { height: 10px; background: #e2e8f0; border-radius: 6px; overflow: hidden; }
.ocr-progress .bar span { display: block; height: 100%; width: 2%; background: var(--accent); transition: width .3s; }
.ocr-progress p { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.ocr-msg { padding: .6rem .8rem; border-radius: 10px; margin: 0 0 .7rem; font-size: .95rem; }
.ocr-msg.ok { background: #ecfdf5; color: #065f46; }
.ocr-msg.warn { background: var(--warn-bg); color: #92400e; }
.ocr-msg.err { background: #fef2f2; color: var(--err); }
.ocr-raw { margin-top: .5rem; font-size: .85rem; }
.ocr-raw summary { cursor: pointer; color: var(--muted); min-height: 36px; display: flex; align-items: center; }
.ocr-raw pre { white-space: pre-wrap; background: #f8fafc; padding: .6rem; border-radius: 8px; margin: .3rem 0 0; }

/* Količina */
.qty { display: grid; grid-template-columns: 72px 1fr 72px; gap: .5rem; align-items: stretch; }
.qty-btn { border: 0; border-radius: 14px; background: #e2e8f0; color: var(--ink); min-height: 64px; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.qty-btn .ic { width: 32px; height: 32px; }
.qty-btn[data-step="1"] { background: var(--accent); color: #fff; }
.qty-btn:active { transform: scale(.94); filter: brightness(.92); }
.qty-field { text-align: center; font-size: 2rem !important; font-weight: 700; min-height: 64px !important; padding: .2rem !important; }

/* Kamera */
.cam { position: fixed; inset: 0; z-index: 100; background: #000; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-guide { position: absolute; left: 6%; right: 6%; top: 30%; aspect-ratio: 2.3 / 1; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); outline: 2px dashed rgba(255,255,255,.7); outline-offset: -2px; }
.cam-guide i { position: absolute; width: 34px; height: 34px; border: 5px solid #fbbf24; }
.cam-guide i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.cam-guide i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.cam-guide i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.cam-guide i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.cam-tip { position: absolute; left: 1rem; right: 1rem; top: calc(14% + env(safe-area-inset-top, 0px)); margin: 0; color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 3px #000; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 1.2rem 1rem calc(1.4rem + var(--safe-b)); }
.cam-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cam-btn.on { background: #fbbf24; color: #000; }
.cam-btn[hidden] { display: grid !important; visibility: hidden; }
.cam-shot { width: 82px; height: 82px; border-radius: 50%; border: 6px solid #fff; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 3px rgba(0,0,0,.3); }
.cam-shot:active { transform: scale(.92); }
body.cam-open { overflow: hidden; }

/* Domov / seznam */
.hero-empty { text-align: center; padding: 1.6rem 1rem; }
.hero-empty h2 { justify-content: center; margin-top: .5rem; }
.ic-hero { width: 56px; height: 56px; color: var(--accent); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; }
.list-head > div { display: flex; flex-direction: column; }
.list-title { font-size: 1.1rem; }
.quick { display: grid; grid-template-columns: 1.4fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.quick-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .5rem; min-height: 100px; padding: .9rem; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 700; font-size: 1.05rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.quick-btn .ic { width: 32px; height: 32px; color: var(--accent); }
.quick-scan { background: var(--accent); color: #fff; } .quick-scan .ic { color: #fff; }
.card-list { padding: .3rem .9rem; }
.li-list { list-style: none; margin: 0; padding: 0; }
.li-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main qty" "main act"; gap: .35rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.li-row:last-child { border-bottom: 0; }
.li-row.is-dup { background: linear-gradient(90deg, #fffbeb, transparent); }
.li-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.li-code { font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; }
.li-name { overflow-wrap: anywhere; }
.li-meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.li-note { font-style: italic; }
.li-qty { grid-area: qty; text-align: right; white-space: nowrap; align-self: start; }
.li-qty b { font-size: 1.5rem; }
.li-qty small { color: var(--muted); margin-left: .25rem; }
.li-act { grid-area: act; display: flex; justify-content: flex-end; align-self: end; gap: .4rem; }
.li-act form { margin: 0; }
.btn-send { margin-top: 1rem; }
/* »Zaključi in pošlji« vedno viden nad spodnjo navigacijo, ko ima seznam vrstice */
.send-bar { position: sticky; bottom: calc(62px + var(--safe-b) + .6rem); z-index: 25; margin: 1rem 0; }
.send-bar::before { content: ""; position: absolute; left: -1rem; right: -1rem; top: -.8rem; bottom: -.7rem; background: linear-gradient(to bottom, rgba(238,242,246,0), var(--bg) 35%); z-index: -1; pointer-events: none; }
.send-bar .btn-send { margin: 0; width: 100%; min-height: 60px; font-size: 1.12rem; box-shadow: 0 6px 18px rgba(234,88,12,.42); }
.send-bar .btn-send small { font-weight: 600; opacity: .9; }

/* Pošiljanje */
.mail-preview h2 { margin-bottom: .5rem; }
.mail-head { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; margin: 0 0 .7rem; font-size: .95rem; }
.mail-head dt { color: var(--muted); }
.mail-head dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin: 0; font-size: .8rem; line-height: 1.5; max-height: 380px; overflow-y: auto; }
.confirm-box.attention { animation: att 1.2s 2; box-shadow: 0 0 0 3px rgba(21,128,61,.35); }
/* Izbira prejemnika */
.rcpt-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.rcpt-head h2 { margin: 0; display: flex; align-items: center; gap: .4rem; }
.rcpt-opts { display: grid; gap: .5rem; }
.rcpt-opt { position: relative; display: flex; align-items: center; gap: .7rem; margin: 0; min-height: 60px; padding: .6rem .8rem; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.rcpt-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rcpt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rcpt-txt b { font-size: 1.05rem; overflow-wrap: anywhere; }
.rcpt-txt small { color: var(--muted); overflow-wrap: anywhere; }
.rcpt-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; color: transparent; }
.rcpt-opt:has(input:checked) { border-color: var(--accent); background: var(--warn-bg); }
.rcpt-opt input:checked ~ .rcpt-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.rcpt-opt input:focus-visible ~ .rcpt-txt { text-decoration: underline; }
.rcpt-pick.attention { animation: att2 1.2s 2; box-shadow: 0 0 0 3px rgba(234,88,12,.35); }
@keyframes att2 { 50% { box-shadow: 0 0 0 8px rgba(234,88,12,.18); } }
/* Prejemniki v Nastavitvah */
.rcpt-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.rcpt-list > li { border-bottom: 1px solid var(--line); }
.rcpt-list details > summary { list-style: none; display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .4rem 0; cursor: pointer; }
.rcpt-list details > summary::-webkit-details-marker { display: none; }
.rcpt-list .rcpt-txt .chip { align-self: flex-start; margin-top: .2rem; }
.rcpt-list .rcpt-form { padding: 0 0 .9rem; }
.rcpt-list .rcpt-form .actions-2 { margin-top: .6rem; }
.rcpt-add { margin-top: .4rem; }
.rcpt-add h3 { margin: .6rem 0 .2rem; font-size: 1rem; }
@keyframes att { 50% { box-shadow: 0 0 0 8px rgba(21,128,61,.18); } }

/* Arhiv */
.search { display: flex; background: #fff; border-radius: 14px; border: 2px solid #cbd5e1; overflow: hidden; }
.search:focus-within { border-color: var(--accent); }
.search input[type=search] { border: 0 !important; outline: 0 !important; border-radius: 0 !important; flex: 1; }
.search button { border: 0; background: var(--accent); color: #fff; width: 60px; display: grid; place-items: center; cursor: pointer; }
.result-count { margin: .7rem .2rem; font-size: .9rem; }
.arch-list { list-style: none; margin: 0 0 1rem; padding: .2rem .9rem; }
.arch-list li a { display: flex; align-items: center; gap: .8rem; min-height: 62px; color: var(--ink); border-bottom: 1px solid var(--line); padding: .4rem 0; }
.arch-list li:last-child a { border-bottom: 0; }
.arch-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: #f1f5f9; flex: none; line-height: 1.1; }
.arch-date b { font-size: 1.2rem; } .arch-date small { font-size: .7rem; color: var(--muted); }
.arch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.arch-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-list .ic:last-child { color: #94a3b8; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; }
.props { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0 0 1rem; }
.props dt { color: var(--muted); font-size: .9rem; }
.props dd { margin: 0; overflow-wrap: anywhere; }

/* Nastavitve */
.mini-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: .4rem 0 .6rem; }
.mini-table th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: .25rem .3rem; }
.mini-table td { padding: .25rem .3rem; border-bottom: 1px solid #f1f5f9; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-btn { display: flex; align-items: center; gap: .75rem; min-height: 54px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-list li:last-child a, .menu-list li:last-child .menu-btn { border-bottom: 0; }
.menu-list span { flex: 1; }
.menu-list .ic { color: var(--accent); }
.menu-list form { margin: 0; }
.menu-btn { width: 100%; background: none; border: 0; font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-align: left; }

/* Prijava */
.page-login { padding-bottom: 0; background: var(--brand); min-height: 100vh; }
.login-box { max-width: 400px; margin: 0 auto; padding: 3rem 1.2rem; text-align: center; color: #fff; }
.login-box h1 { margin: .6rem 0 0; font-size: 2rem; }
.login-box .muted { color: #cbd5e1; margin-top: .2rem; }
.login-box .card { text-align: left; color: var(--ink); margin-top: 1.5rem; }
.login-box .card label:first-of-type { margin-top: 0; }
.login-logo { border-radius: 20px; }

/* Namizje */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .send-bar { bottom: 1rem; }
  .tabbar { display: none; }
  .desk-nav { display: flex; gap: .2rem; }
  .desk-nav a { color: #cbd5e1; padding: .55rem .85rem; border-radius: 10px; font-weight: 600; }
  .desk-nav a.on, .desk-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .topbar { padding-left: max(1rem, calc(50% - 480px)); padding-right: max(1rem, calc(50% - 480px)); }
  .wrap { max-width: 960px; padding: 1.5rem 1rem; }
  .mail-body { font-size: .85rem; }
  .cam-guide { left: 20%; right: 20%; }
}

/* ---------- v2: delovni nalog ---------- */
.req { color: var(--err); font-weight: 700; }
.dn-new { text-align: left; }
.dn-new .ic-hero { display: block; margin: .2rem auto .3rem; }
.dn-new h2 { text-align: center; margin: .2rem 0 .3rem; }
.dn-new > p.muted { text-align: center; margin-top: 0; }
.input-dn { font-size: 1.35rem !important; font-weight: 700; letter-spacing: .02em; min-height: 60px !important; }
.dn-chips { margin: .6rem 0 1rem; }
.chip-link.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.dn-card { padding: 0; overflow: hidden; border-left: 5px solid var(--brand); }
.dn-card summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dn-card summary::-webkit-details-marker { display: none; }
.dn-text { display: flex; flex-direction: column; min-width: 0; }
.dn-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.dn-value { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.dn-edit-btn { flex: none; min-height: 40px; }
.dn-card[open] .dn-edit-btn { display: none; }
.dn-form { padding: 0 1rem 1rem; }
.dn-card-missing { border-left-color: var(--err); background: #fef2f2; }
.dn-card-missing .dn-value { color: var(--err); font-size: 1.1rem; }
.dn-card-missing .dn-label { color: var(--err); }
.dn-pill { display: flex; align-items: center; gap: .35rem; margin: 0 0 .7rem; padding: .45rem .8rem; border-radius: 999px; background: #e0e7ef; color: var(--brand); font-size: .9rem; width: fit-content; max-width: 100%; }
.dn-pill b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-pill-missing { background: #fef2f2; color: var(--err); }
.dn-send.dn-card-missing { border-left: 5px solid var(--err); }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; filter: grayscale(.6); }
.dn-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 .5rem; padding: 2px 0 4px; scrollbar-width: none; }
.dn-filter::-webkit-scrollbar { display: none; }
.dn-filter .chip-link, .dn-chips .chip-link { background: #fff; min-height: 38px; font-size: .9rem; flex: none; }
.dn-filter .chip-link.on, .dn-chips .chip-link.on { background: var(--brand); color: #fff; }
.chip-clear { font-family: inherit; }

/* ---------- v2: baza artiklov ---------- */
.known-badge { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: -.2rem 0 .5rem; }
.kb-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--ok); color: #fff; font-weight: 700; font-size: .9rem; padding: .25rem .7rem; border-radius: 999px; }
.kb-tag .ic { width: 16px; height: 16px; }
.known-badge small { color: var(--muted); font-size: .82rem; }
.hint.warn { color: var(--warn); }
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 8px 24px rgba(15,23,42,.16); overflow: hidden; max-height: 320px; overflow-y: auto; }
.ac-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; width: 100%; min-height: 52px; padding: .5rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.ac-item:last-child { border-bottom: 0; }
.ac-item:active, .ac-item:focus { background: #fff7ed; outline: none; }
.ac-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.ac-item small { color: var(--muted); font-size: .8rem; }
.art-list { list-style: none; margin: 0 0 1rem; padding: .1rem .9rem; }
.art-list li a { display: flex; align-items: center; gap: .6rem; min-height: 64px; padding: .55rem 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.art-list li:last-child a { border-bottom: 0; }
.art-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.art-main > b { font-size: 1.05rem; }
.art-name { font-size: .95rem; overflow-wrap: anywhere; }
.art-list .ic:last-child { color: #94a3b8; flex: none; }
.art-code { font-size: 1.5rem; font-weight: 700; margin: .1rem 0 .4rem; }
.seg-links { margin: 0 0 .5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.seg-links a { flex: none; }
.seg-links a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .8rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: var(--ink); font-size: .88rem; }
.seg-links a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.sub-title { margin: 1.2rem 0 .3rem; font-size: 1rem; }
.clear-actions { margin-top: .8rem; }
.clear-actions form { margin: 0; }
/* v2.2.3: kratko obvestilo v znački »Znan artikel«, ko je artikel prepoznan po črtni kodi (polja za črtno kodo ni več) */
.kb-bc { color: var(--ok); font-weight: 600; font-size: .85rem; }
/* v2.2.3: samodejno branje v kameri */
.cam-auto { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(118px + env(safe-area-inset-bottom, 0px)); margin: 0; padding: .3rem .8rem; border-radius: 999px; background: rgba(15,23,42,.65); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.cam-guide.auto-steady { outline-color: #22c55e; }
.cam-guide.auto-steady i { border-color: #22c55e; }
.cam-guide.auto-fire { outline: 4px solid #22c55e; }
