/* Omnisev Zaloge – barve: modra #13648B, rumena #FFCD05, bela, sive. Mobilno najprej, veliki gumbi za teren. */
@font-face { font-family: 'Inter'; src: url('../vendor/Inter-Medium.ttf') format('truetype'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/Inter-Bold.ttf') format('truetype'); font-weight: 700 900; font-display: swap; }
:root {
  --blue: #13648B; --blue-10: rgba(19,100,139,.10); --blue-18: rgba(19,100,139,.18); --blue-60: rgba(19,100,139,.6);
  --yel: #FFCD05; --yel-20: rgba(255,205,5,.22);
  --w: #FFFFFF; --g50: #F6F8FA; --g100: #EEF1F4; --g200: #E1E6EB; --g300: #C9D1D8; --g500: #7B8792; --g700: #3E4750; --g900: #161B20;
  --r: 16px; --r-sm: 12px; --sh: 0 1px 2px rgba(22,27,32,.06), 0 6px 20px rgba(22,27,32,.06);
  --tap: 52px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--g50); color: var(--g900); font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.4; }
body { min-height: 100vh; padding-bottom: calc(84px + var(--safe-b)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.muted { color: var(--g500); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

/* glava */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--blue); color: var(--w); padding: calc(10px + var(--safe-t)) 16px 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 0 var(--yel); }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.topbar .brand img { width: 32px; height: 32px; border-radius: 9px; }
.topbar .brand small { display: block; font-weight: 500; letter-spacing: 0; font-size: 12px; opacity: .85; }
.topbar .sp { flex: 1; }
.net { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; gap: 6px; }
.net::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yel); }
.net.off { background: var(--w); color: var(--blue); font-weight: 700; } .net.off::before { background: var(--g500); }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 6px 0 4px; letter-spacing: -.01em; } h2 { font-size: 18px; margin: 0 0 8px; } h3 { font-size: 15px; margin: 0 0 6px; }

/* kartice */
.card { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; border: 1px solid var(--g100); }
.card + .card { margin-top: 12px; }
.card.hero { background: var(--blue); color: var(--w); border: 0; position: relative; overflow: hidden; }
.card.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,205,5,.16); }
.card.hero .muted { color: rgba(255,255,255,.8); }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--g500); }
.hero .kicker { color: var(--yel); }

/* gumbi */
.btn { min-height: var(--tap); border-radius: 14px; border: 0; padding: 0 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: var(--g100); color: var(--g900); text-decoration: none; transition: transform .06s ease, filter .15s; }
.btn:active { transform: scale(.98); } .btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--blue); color: var(--w); }
.btn.accent { background: var(--yel); color: var(--g900); }
.btn.ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue-18); }
.btn.danger { background: var(--w); color: #9b1c1c; border: 2px solid #f0caca; }
.btn.block { width: 100%; } .btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.hero .btn.accent { box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.iconbtn { width: var(--tap); height: var(--tap); border-radius: 14px; border: 0; background: var(--g100); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; flex: none; }
.iconbtn.sm { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }

/* polja */
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--g700); margin-bottom: 6px; }
.in, select.in, textarea.in { width: 100%; min-height: var(--tap); border-radius: 14px; border: 2px solid var(--g200); background: var(--w); padding: 12px 14px; outline: none; transition: border-color .15s; }
.in:focus { border-color: var(--blue); }
textarea.in { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--blue); margin: 0; }
.seg { display: flex; background: var(--g100); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 46px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--g700); cursor: pointer; }
.seg button.on { background: var(--w); color: var(--blue); box-shadow: var(--sh); }

/* iskalnik strank */
.combo { position: relative; }
.combo .in { padding-left: 46px; font-size: 17px; }
.combo .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--g500); font-size: 20px; pointer-events: none; }
.dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--w); border-radius: var(--r); box-shadow: 0 12px 40px rgba(22,27,32,.18); border: 1px solid var(--g200); max-height: 60vh; overflow: auto; z-index: 30; }
.opt { padding: 12px 16px; min-height: 60px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; border-bottom: 1px solid var(--g100); }
.opt:last-child { border-bottom: 0; }
.opt.act, .opt:hover { background: var(--blue-10); }
.opt .nm { font-weight: 700; font-size: 16px; } .opt .ad { font-size: 12.5px; color: var(--g500); margin-top: 2px; }
.opt mark { background: var(--yel-20); color: inherit; border-radius: 3px; }
.cust { display: flex; gap: 12px; align-items: center; }
.cust .av { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-10); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.hero .cust .av { background: rgba(255,255,255,.16); color: var(--w); }
.cust .nm { font-weight: 800; font-size: 18px; } .cust .ad { font-size: 13px; color: var(--g500); }
.hero .cust .ad { color: rgba(255,255,255,.85); }

/* značke */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--g100); color: var(--g700); white-space: nowrap; }
.chip.blue { background: var(--blue-10); color: var(--blue); } .chip.yel { background: var(--yel); color: var(--g900); }
.chip.warn { background: var(--yel-20); color: var(--g900); border: 1px solid var(--yel); }
.chip.grey { background: var(--g100); color: var(--g500); }

/* parametri */
.params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .params { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.param { background: var(--g50); border-radius: var(--r-sm); padding: 10px; border: 1px solid var(--g100); }
.param .lb { font-size: 12px; color: var(--g700); font-weight: 700; min-height: 30px; }
.param .in { min-height: 46px; padding: 8px 10px; font-weight: 700; }
.param .src { font-size: 11px; color: var(--g500); margin-top: 4px; }
.param .src.ponudba, .param .src.racun { color: var(--blue); }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '▾'; margin-left: auto; color: var(--g500); transition: transform .2s; }
details.acc[open] > summary::after { transform: rotate(180deg); }

/* postavke */
.cat { margin: 18px 4px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.line { background: var(--w); border-radius: var(--r); border: 1px solid var(--g100); box-shadow: var(--sh); padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.line + .line { margin-top: 8px; }
.line.edited { border-color: var(--yel); box-shadow: 0 0 0 2px var(--yel-20); }
.line .nm { font-weight: 700; font-size: 15px; } .line .meta { font-size: 12px; color: var(--g500); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.stepper { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.stepper .in { width: 96px; text-align: center; font-weight: 800; font-size: 18px; min-height: 52px; padding: 6px; }
.stepper .unit { width: 34px; font-size: 13px; color: var(--g500); font-weight: 700; }
.stepper .iconbtn { background: var(--blue-10); color: var(--blue); font-weight: 900; }
.stepper .sp { flex: 1; }
@media (min-width: 560px) { .stepper { grid-column: auto; } .line { grid-template-columns: 1fr auto; } }

/* fotografije, podpis */
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photo { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; position: relative; background: var(--g100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22,27,32,.7); color: #fff; cursor: pointer; }
.photo.add { display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--blue); font-weight: 700; font-size: 12px; border: 2px dashed var(--blue-18); background: var(--w); cursor: pointer; }
.photo.add span { font-size: 28px; }
.sig { width: 100%; height: 170px; border-radius: var(--r-sm); border: 2px dashed var(--g300); background: var(--w); touch-action: none; display: block; }

/* spodnja vrstica */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--w); border-top: 1px solid var(--g200); display: flex; padding: 6px 6px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; text-decoration: none; color: var(--g500); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 11.5px; font-weight: 700; border-radius: 12px; }
.tabbar a .i { font-size: 22px; line-height: 1; }
.tabbar a.on { color: var(--blue); background: var(--blue-10); }
.tabbar a.fab .i { background: var(--yel); color: var(--g900); width: 46px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.stickybar { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 15; margin-top: 16px; background: linear-gradient(to top, var(--g50) 70%, rgba(246,248,250,0)); padding: 12px 0 4px; }

/* seznami */
.list { background: var(--w); border-radius: var(--r); border: 1px solid var(--g100); box-shadow: var(--sh); overflow: hidden; }
.li { padding: 14px 16px; border-bottom: 1px solid var(--g100); display: flex; gap: 12px; align-items: center; min-height: 64px; cursor: pointer; text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; } .li:active { background: var(--g50); }
.li .t { font-weight: 700; } .li .s { font-size: 12.5px; color: var(--g500); }
.empty { text-align: center; color: var(--g500); padding: 28px 16px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tb th { text-align: left; font-size: 12px; color: var(--g500); font-weight: 700; padding: 8px; border-bottom: 2px solid var(--g200); position: sticky; top: 0; background: var(--w); }
table.tb td { padding: 10px 8px; border-bottom: 1px solid var(--g100); vertical-align: top; }
table.tb td.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.tabs a { white-space: nowrap; text-decoration: none; padding: 10px 14px; border-radius: 12px; background: var(--w); border: 1px solid var(--g200); color: var(--g700); font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.tabs a.on { background: var(--blue); color: var(--w); border-color: var(--blue); }
.badge { background: var(--yel); color: var(--g900); border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }

/* modalno okno / spodnji list */
.sheet-bg { position: fixed; inset: 0; background: rgba(22,27,32,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--w); width: 100%; max-width: 760px; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 8px 16px calc(16px + var(--safe-b)); overflow: auto; animation: up .2s ease; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--g300); margin: 6px auto 12px; }
@media (min-width: 760px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); background: var(--g900); color: var(--w); padding: 12px 18px; border-radius: 14px; z-index: 60; font-weight: 600; font-size: 14px; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .2s; }
.toast.ok { background: var(--blue); } .toast.err { background: #8a1c1c; }
.banner { background: var(--yel-20); border: 1px solid var(--yel); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; }
.banner.blue { background: var(--blue-10); border-color: var(--blue-18); }
.draftband { background: #fff; border: 2px solid var(--yel); color: var(--g900); padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; }

/* prijava */
.auth { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; }
.auth .logo { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 10px 30px rgba(19,100,139,.3); }
.auth .hero-t { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 4px; }
.gbtn { background: var(--w); border: 2px solid var(--g200); color: var(--g900); }
.gbtn svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--g500); font-size: 13px; margin: 14px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--g200); }
.stat { background: var(--w); border-radius: var(--r); border: 1px solid var(--g100); padding: 14px; box-shadow: var(--sh); }
.stat b { display: block; font-size: 24px; color: var(--blue); } .stat span { font-size: 12px; color: var(--g500); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--blue-18); border-top-color: var(--blue); border-radius: 50%; animation: sp .8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
/* --- v2 (30. 11. 2026): ocene, datum sl-SI, izvor, kartice zaloge, mobilna poročila --- */
.line.ocena { border-color: var(--yel); background: #fffdf2; }
.line .izvor { min-height: 36px; padding: 4px 8px; font-size: 12.5px; width: auto; max-width: 190px; }
.line-sub { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stepper .btn.sm { min-width: 76px; }
.in.need { border-color: var(--yel); box-shadow: 0 0 0 2px var(--yel-20); }
.banner.danger { background: #fdecec; border-color: #d33; color: #5a1010; }
.banner + .banner, .banner + .card, .card + .banner { margin-top: 10px; }
.dc { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dc .dc-in { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dc .dc-val { font-weight: 600; }
.stickybar .small { margin-bottom: 6px; } .stickybar .ok { color: #1a7f37; font-weight: 700; }
.bar-spacer { height: 120px; }
.pendingbar { background: var(--yel); color: var(--g900); font-weight: 700; border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.stockcards { display: grid; gap: 10px; margin-top: 10px; }
.stockcard { background: var(--w); border: 1px solid var(--g100); border-radius: var(--r); box-shadow: var(--sh); padding: 12px; }
.stockcard.low { border-color: var(--yel); box-shadow: 0 0 0 2px var(--yel-20); }
.stockcard .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.stockcard .grid .in { min-height: 40px; padding: 6px 8px; }
@media (min-width: 720px) { .stockcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stockcard .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.repcards { display: grid; gap: 8px; } .repcard { background: var(--w); border: 1px solid var(--g100); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.repcard .q { font-weight: 800; text-align: right; } .repcard .s { color: var(--g500); font-size: 12px; }
@media (max-width: 420px) { .tabs { overflow-x: auto; white-space: nowrap; } }
/* 1.1.1: podpis ob odstopanju, deljeni artikli */
.warn-text { color: #9a5b00; font-weight: 600; }
.chip.dvojno { background: #fff1d6; color: #8a4b00; border-color: #f0b44c; }
/* 1.2.0 prevzem zaloge */
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 1 1 44%; min-height: 44px; padding: 4px 6px; font-size: 14px; }
.ok-banner { background: #e7f6ec; border-color: #9ad3ac; color: #145c2e; }
.table-wrap { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th, table.mini td { padding: 6px 8px; border-bottom: 1px solid var(--g100); text-align: left; vertical-align: top; }
table.mini td.n, table.mini th.n { text-align: right; white-space: nowrap; }
table.mini td.neg { color: #b42318; font-weight: 700; }
#tabbar a { min-width: 0; }
