
:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#0f172a;background:#f8fafc;font-size:14px;
  --nav:#0f172a;--nav-border:#1e293b;--blue:#2563eb;--blue-dark:#1d4ed8;
  --text:#0f172a;--muted:#64748b;--line:#e2e8f0;--background:#f8fafc;
  --soft:#f1f5f9;--shadow:0 8px 28px rgba(15,23,42,.045);
  font-synthesis:none;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
a:hover{text-decoration:none}
svg.ico{width:19px;height:19px;flex:0 0 auto;display:inline-block;vertical-align:middle}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
[hidden]{display:none!important}
.app-shell{min-height:100vh;background:#f8fafc}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:286px;background:var(--nav);border-right:1px solid var(--nav-border);display:flex;flex-direction:column;z-index:70;color:#fff;box-shadow:8px 0 30px rgba(15,23,42,.05)}
.sidebar-brand{display:flex;align-items:center;gap:12px;min-height:82px;padding:16px 19px;border-bottom:1px solid rgba(255,255,255,.09)}
.sidebar-logo{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:white;background:linear-gradient(135deg,#3b82f6,#4f46e5);box-shadow:0 9px 22px rgba(37,99,235,.28)}
.sidebar-logo .ico{width:26px;height:26px}
.sidebar-brand-copy{min-width:0}
.sidebar-brand-copy strong{display:block;font-size:19px;letter-spacing:-.035em;line-height:1.2;font-weight:850}
.sidebar-brand-copy small{display:block;font-size:11px;letter-spacing:.025em;color:#94a3b8;font-weight:650;margin-top:3px}
.sidebar-search{display:flex;align-items:center;height:46px;gap:9px;margin:20px 15px 9px;padding:0 12px;background:#1e293b;border:1px solid rgba(255,255,255,.065);border-radius:12px;color:#94a3b8;flex:0 0 auto}
.sidebar-search .ico{width:17px;height:17px}
.sidebar-search input{margin:0;padding:0;width:100%;border:0;background:transparent;color:white;outline:none;box-shadow:none;height:100%;font-size:13px;min-width:0}
.sidebar-search input::placeholder{color:#94a3b8}
.sidebar-search:focus-within{border-color:#64748b;background:#263548}


.sidebar-menu{overflow-y:auto;flex:1;padding:6px 12px 18px;scrollbar-width:thin;scrollbar-color:#475569 transparent;overscroll-behavior:contain}
.sidebar-section{margin:11px 0 19px}
.sidebar-section-label{padding:0 13px;margin-bottom:11px;letter-spacing:.11em;font-size:10px;font-weight:850;color:#64748b}
.side-link{width:100%;min-height:44px;padding:0 13px;display:flex;align-items:center;gap:12px;margin-bottom:3px;border-radius:11px;color:#aab8cb;font-size:13px;font-weight:650;transition:background .15s,color .15s}
.side-link .ico{width:18px;height:18px;opacity:.85}
.side-link:hover{color:white;background:rgba(255,255,255,.07)}
.side-link.current{color:#fff;background:#283e63;font-weight:800;box-shadow:inset 3px 0 #60a5fa}
.side-link.current .ico{opacity:1;color:#93c5fd}
.nav-active-indicator{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#93c5fd}
.sidebar-no-results{font-size:13px;color:#94a3b8;padding:15px}
.sidebar-footer{padding:14px;border-top:1px solid rgba(255,255,255,.085)}
.sidebar-user{display:flex;gap:10px;align-items:center;padding:7px 9px 13px;min-width:0}
.sidebar-user>span:last-child{min-width:0}
.sidebar-user strong,.sidebar-user small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user strong{font-size:13px;font-weight:800}
.sidebar-user small{margin-top:3px;color:#94a3b8;font-size:11px}
.avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#dbeafe;color:#1d4ed8;font-size:15px;font-weight:900;flex-shrink:0}
.avatar-sidebar{background:#334155;color:#e2e8f0}
.sidebar-logout{display:flex;align-items:center;gap:11px;width:100%;height:43px;background:none;border:0;border-radius:11px;color:#fda4af;padding:0 11px;font-size:13px;font-weight:800}
.sidebar-logout:hover{background:rgba(244,63,94,.11);color:#fecdd3}
.app-workspace{margin-left:286px;min-width:0;min-height:100vh;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:40;height:68px;min-height:68px;padding:0 25px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:14px;box-shadow:0 1px 6px rgba(15,23,42,.025)}
.topbar-shortcuts{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.shortcuts-label{font-size:10px;font-weight:900;letter-spacing:.12em;color:#94a3b8;margin-right:10px;white-space:nowrap}
.shortcut{min-height:35px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border-radius:10px;background:#f1f5f9;font-weight:800;font-size:12px;color:#475569;white-space:nowrap;transition:.15s}
.shortcut .ico{width:15px;height:15px}
.shortcut:hover{background:#e2e8f0}
.shortcut-primary{color:#1d4ed8;background:#eff6ff}
.shortcut-primary:hover{background:#dbeafe}
.topbar-account{margin-left:auto;display:flex;align-items:center;gap:11px}
.topbar-account-copy{text-align:right;max-width:175px}
.topbar-account-copy small,.topbar-account-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-account-copy small{color:#94a3b8;font-size:10px;font-weight:650}
.topbar-account-copy strong{color:#0f172a;font-size:13px;font-weight:850;margin-top:2px}
.topbar-account .avatar{height:39px;width:39px}
.mobile-brand,.menu-toggle,.menu-backdrop{display:none}
.page-wrap{width:min(100%,1530px);padding:32px clamp(18px,3vw,42px) 35px;margin:0 auto;flex:1;min-width:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 26px}
.page-heading h1{font-size:clamp(25px,2.8vw,33px);letter-spacing:-.046em;margin:6px 0 0;font-weight:850;line-height:1.18}
.eyebrow{color:#2563eb;letter-spacing:.115em;font-size:10px;font-weight:900}
.heading-user{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;font-size:12px;color:#475569;font-weight:800;white-space:nowrap}
.heading-user .ico{color:#64748b;width:17px;height:17px}
.page-footer{padding:16px 25px 25px;text-align:center;font-size:11px;color:#94a3b8}
.page-footer span{padding:0 5px}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:23px;margin:0 0 20px;box-shadow:var(--shadow);min-width:0}
.panel h2{font-size:19px;font-weight:850;letter-spacing:-.026em;margin:0 0 12px}
.panel h3{font-size:15px;font-weight:850;margin:22px 0 15px}
.panel p{color:#64748b;line-height:1.65}
.narrow{max-width:780px;margin-left:auto;margin-right:auto}
.card-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.card-title h2{margin:0;font-size:18px}
.card-title p{margin:4px 0 0;font-size:12px;color:#94a3b8;line-height:1.45}
.card-icon{height:43px;width:43px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;color:#2563eb;background:#eff6ff}
.card-icon.soft{background:#f1f5f9;color:#475569}
.card-icon.amber{background:#fff7ed;color:#ea580c}
label{display:block;font-size:12px;font-weight:750;color:#334155;margin:14px 0}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{width:100%;min-width:0;display:block;height:46px;border:1px solid #dbe4ef;border-radius:11px;padding:10px 13px;margin-top:7px;background:#fff;color:#0f172a;font-size:14px;transition:border .15s,box-shadow .15s}
textarea{height:auto;min-height:92px;resize:vertical}
input[type=file]{display:block;max-width:100%;margin-top:7px;font-size:13px}
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,select:focus,textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.09)}
/* Izoliran iskalnik v temnem meniju: osnovna pravila za obrazce ga ne smejo pobeliti. */
.app-sidebar .sidebar-search input[type="search"]{
 appearance:none;-webkit-appearance:none;
 width:100%;min-width:0;height:100%;min-height:0;
 margin:0;padding:0;border:0;border-radius:0;
 background:transparent;color:#f8fafc;caret-color:#93c5fd;
 font-size:16px;line-height:1.35;box-shadow:none;outline:0;
}
.app-sidebar .sidebar-search input[type="search"]::placeholder{color:#94a3b8;opacity:1}
.app-sidebar .sidebar-search input[type="search"]:focus{
 margin:0;padding:0;border:0;border-radius:0;background:transparent;
 color:#f8fafc;outline:0;box-shadow:none;
}
.app-sidebar .sidebar-search input[type="search"]::-webkit-search-decoration,
.app-sidebar .sidebar-search input[type="search"]::-webkit-search-cancel-button{
 -webkit-appearance:none;
}
#app-sidebar:focus{outline:none}
input::placeholder,textarea::placeholder{color:#94a3b8}
input:disabled,select:disabled,textarea:disabled{background:#f8fafc;color:#64748b}
input[type=checkbox]{width:18px;height:18px;accent-color:#2563eb;margin:0;flex:0 0 auto}
button,.button{appearance:none;border:0;border-radius:11px;min-height:43px;background:#2563eb;color:white;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:13px;line-height:1.25;cursor:pointer;vertical-align:middle;box-shadow:0 6px 14px rgba(37,99,235,.1)}
button:hover,.button:hover{background:#1d4ed8}
button .ico,.button .ico{width:17px;height:17px}
button.secondary,.button.secondary{background:#eff6ff;color:#1d4ed8;box-shadow:none}
button.secondary:hover,.button.secondary:hover{background:#dbeafe}
button.danger,.button.danger{background:#dc2626;color:white;box-shadow:none}
button.danger:hover,.button.danger:hover{background:#b91c1c}
button.link{padding:0;min-height:0;border:0;box-shadow:none;background:transparent;color:inherit}
.inline{display:inline-flex;margin:0}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px}
.actions .inline{margin:0}
.accounting-archive-info{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:12px;font-weight:750;color:#475569;padding:7px 10px;background:#f1f5f9;border-radius:10px}
.accounting-archive-info.is-recorded{color:#166534;background:#dcfce7}
.accounting-archive-info .ico{width:16px;height:16px}
.accounting-action-history{margin:0 0 17px;color:#475569;font-size:12px}
.accounting-action-history summary{cursor:pointer;font-weight:750;display:inline-flex;align-items:center;gap:7px}
.accounting-action-history .ico{width:16px;height:16px}
.accounting-action-history ul{margin:11px 0;padding-left:18px;line-height:1.7}
.muted{color:#64748b;font-size:13px}
.notice,.warning,.error{display:flex;gap:12px;align-items:flex-start;padding:15px 17px;border-radius:13px;margin:0 0 21px;font-size:13px;line-height:1.5}
.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}
.warning p{margin:5px 0 0;color:inherit}
.notice .ico,.warning .ico,.error .ico{width:19px;height:19px;flex:0 0 auto}
.warning ul{padding-left:20px;margin-bottom:0}
.warning a{font-weight:850;text-decoration:underline}
/* Prostovoljni prenos datuma računa v manjkajoči rok plačila. */
.review-warnings{display:block;min-width:0}
.review-warnings>strong{display:block;font-weight:850;margin-bottom:10px}
.review-warnings>ul{margin:0 0 12px;padding-left:20px}
.review-warnings>ul:last-child{margin-bottom:0}
.due-date-suggestion{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.due-date-suggestion-text{flex:1 1 190px;min-width:0}
.due-date-suggestion-text strong{display:block;font-size:13px;font-weight:850}
.review-warnings .due-date-suggestion-text p{margin:3px 0 0;color:inherit;font-size:12px;line-height:1.5}
.due-date-suggestion-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
button.due-date-accept{min-height:36px;padding:8px 18px;border-radius:9px;background:#92400e;color:#fff;box-shadow:none;font-size:12px;font-weight:800}
button.due-date-accept:hover{background:#78350f}
button.due-date-dismiss{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #e9d5a2;border-radius:9px;background:transparent;color:#92400e;box-shadow:none}
button.due-date-dismiss:hover{background:#fef3c7}
.due-date-dismiss .ico{width:16px;height:16px}
.review-warnings .due-date-suggestion-error{flex:1 0 100%;margin:0;color:#9a3412;font-size:12px;font-weight:750}
.review-warnings .due-date-suggestion-error[hidden]{display:none}
@media(max-width:480px){
 .due-date-suggestion{align-items:flex-start}
 .due-date-suggestion-actions{margin-left:auto}
}
.row-between,.section-title{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;margin:0 0 15px}
.row-between h2,.section-title h2{margin:0;font-size:18px;font-weight:850}
.section-title{margin:0 0 17px}
.section-title h2{margin-top:6px}
.dashboard-hero{position:relative;display:flex;align-items:center;overflow:hidden;min-height:245px;border-radius:20px;background:linear-gradient(112deg,#172554 0%,#1e40af 57%,#3b82f6 100%);color:#fff;margin-bottom:28px;padding:35px 37px;box-shadow:0 14px 34px rgba(37,99,235,.15)}
.dashboard-hero::before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-112px;top:-170px;background:rgba(255,255,255,.07)}
.dashboard-hero::after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:210px;bottom:-210px;background:rgba(255,255,255,.05)}
.hero-copy{position:relative;z-index:1;max-width:590px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:7px;letter-spacing:.11em;font-size:10px;font-weight:900;color:#bfdbfe}
.hero-eyebrow .ico{width:15px;height:15px}
.hero-copy h2{font-size:clamp(25px,3vw,36px);letter-spacing:-.045em;line-height:1.13;margin:15px 0 12px;max-width:530px;font-weight:850}
.hero-copy p{font-size:13px;line-height:1.65;max-width:480px;color:#dbeafe;margin:0 0 22px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.hero-main{background:#fff;color:#1d4ed8;box-shadow:0 10px 22px rgba(15,23,42,.1)}
.hero-main:hover{background:#eff6ff}
.hero-subtle{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:white;box-shadow:none}
.hero-subtle:hover{background:rgba(255,255,255,.2)}
.hero-illustration{position:absolute;right:6%;top:18%;width:230px;height:230px;transform:rotate(8deg);pointer-events:none}
.hero-paper{width:160px;height:195px;background:#fff;border-radius:14px;padding:25px;color:#2563eb;box-shadow:0 24px 35px rgba(15,23,42,.22)}
.hero-paper>.ico{height:41px;width:41px}
.hero-paper span{display:block;width:105px;height:9px;background:#dbeafe;border-radius:20px;margin-top:17px}
.hero-paper span:nth-of-type(2){width:84px}.hero-paper span:nth-of-type(3){width:66px}
.hero-spark,.hero-check{position:absolute;display:grid;place-items:center;border-radius:15px;box-shadow:0 15px 25px rgba(15,23,42,.15)}
.hero-spark{right:14px;top:10px;background:#fbbf24;color:#713f12;height:58px;width:58px;transform:rotate(-14deg)}
.hero-check{right:25px;bottom:19px;width:48px;height:48px;background:#22c55e;color:white}
.hero-spark .ico,.hero-check .ico{width:27px;height:27px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}
.metric-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:180px;padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:var(--shadow);transition:transform .14s,box-shadow .14s}
.metric-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.09)}
.metric-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px}
.tone-blue{background:#eff6ff;color:#2563eb}.tone-amber{background:#fff7ed;color:#ea580c}.tone-rose{background:#fff1f2;color:#e11d48}
.metric-label{color:#64748b;font-size:12px;font-weight:750;margin-top:16px}
.metric-card strong{font-weight:900;font-size:33px;letter-spacing:-.04em;margin-top:4px}
.metric-card small{color:#94a3b8;margin-top:auto;font-size:11px;padding-top:8px}
.metric-chevron{position:absolute;top:27px;right:21px;color:#94a3b8;width:16px!important;height:16px!important}
.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:16px}
.steps{display:grid;gap:2px}
.steps>div{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid #f1f5f9}
.steps>div:last-child{border:0}
.step-number{height:37px;width:37px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:900}
.steps strong,.steps small{display:block}.steps strong{font-size:13px;font-weight:850}.steps small{font-size:12px;color:#64748b;margin-top:4px;line-height:1.5}
.info-panel>p{margin-top:12px}
.inline-action{display:inline-flex;align-items:center;gap:8px;color:#2563eb;font-weight:850;font-size:13px;margin-top:12px}
.inline-action .ico{width:15px;height:15px}
.upload-intro{margin-bottom:22px}.upload-intro h2{font-size:21px;letter-spacing:-.03em;margin:8px 0}.upload-intro p{color:#64748b;font-size:13px}
.upload-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(285px,.75fr);gap:17px;align-items:start}
.upload-layout>.panel{margin:0}
.upload-layout>.panel:only-child{grid-column:1 / -1;width:100%;max-width:980px}
.upload-page.page-wrap{padding-top:20px}
.upload-page .page-heading{margin-bottom:16px}
.upload-page .page-heading h1{margin-top:0}
.upload-page .scan-entry{padding:21px}
.upload-page .scan-entry .card-title{margin-bottom:17px}
.upload-page .scan-entry .scan-buttons{margin-top:0}
.upload-page .scan-entry .scan-buttons button{width:100%}
/* Compact, full-width accordion. Keep native disclosure semantics and prevent inline wrapping. */
.upload-page .scan-alternatives{display:block;width:100%;margin-top:16px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;overflow:hidden}
.upload-page .scan-alternatives>summary{display:flex;align-items:center;gap:11px;min-height:62px;padding:12px 14px;list-style:none;cursor:pointer;color:#334155;-webkit-tap-highlight-color:transparent}
.upload-page .scan-alternatives>summary::-webkit-details-marker{display:none}
.upload-page .scan-alternatives>summary::marker{content:""}
.upload-page .scan-alternatives>summary:hover{background:#f1f5f9}
.upload-page .scan-alternatives[open]>summary{background:#eff6ff;border-bottom:1px solid #dbeafe}
.upload-page .scan-alternatives-summary-icon{width:37px;height:37px;border-radius:11px;flex:0 0 37px;display:grid;place-items:center;background:#e2e8f0;color:#475569}
.upload-page .scan-alternatives[open] .scan-alternatives-summary-icon{background:#dbeafe;color:#2563eb}
.upload-page .scan-alternatives-summary-icon .ico{width:19px;height:19px}
.upload-page .scan-alternatives-summary-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;text-align:left}
.upload-page .scan-alternatives-summary-copy strong{font-size:13px;font-weight:800;line-height:1.4;color:#334155}
.upload-page .scan-alternatives-summary-copy small{font-size:11px;color:#64748b;line-height:1.4}
.upload-page .scan-alternatives-chevron{display:flex;align-items:center;justify-content:center;margin-left:auto;color:#64748b;transition:transform .2s}
.upload-page .scan-alternatives[open] .scan-alternatives-chevron{transform:rotate(90deg)}
.upload-page .scan-alternatives-body{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;min-width:0;padding:12px}
.upload-page .scan-alternatives-body>.scan-alt-option{appearance:none;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-width:0;min-height:65px;padding:11px 12px;margin:0;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:none;color:#334155;text-align:left;white-space:normal;text-decoration:none}
.upload-page .scan-alternatives-body>.scan-alt-option:hover{background:#eff6ff;border-color:#bfdbfe}
.upload-page .scan-alt-option-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:#eff6ff;color:#2563eb}
.upload-page .scan-alt-option-icon .ico{width:19px;height:19px}
.upload-page .scan-alt-option-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0}
.upload-page .scan-alt-option-copy strong{font-size:13px;font-weight:800;line-height:1.35;color:#1e293b}
.upload-page .scan-alt-option-copy small{font-size:11px;font-weight:500;line-height:1.4;color:#64748b}
.upload-page .scan-alt-option>.ico{width:16px;height:16px;margin-left:auto;flex:0 0 16px;color:#94a3b8}
.upload-page .scan-alternatives-body>.scan-alt-quick{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;min-width:0;margin:0;padding:13px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.upload-page .scan-alt-quick-heading{display:flex;align-items:center;gap:12px;width:100%;min-width:0}
.upload-page .scan-alt-file-pick{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:43px;padding:9px 12px;margin:0;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;text-align:center;cursor:pointer}
.upload-page .scan-alt-file-pick .ico{width:17px;height:17px}
.upload-page .scan-alt-file-pick:focus-within{outline:3px solid #bfdbfe;outline-offset:2px}
.upload-page .scan-alt-file-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.upload-page .scan-alt-quick>.scan-alt-read{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:43px;margin:0;padding:9px 12px;background:#2563eb;color:white;border-radius:10px;font-size:12px;font-weight:800;box-shadow:none}
.upload-page .scan-alt-quick>.scan-alt-read:hover{background:#1d4ed8}
@media(max-width:700px){.upload-page .scan-alternatives>summary{padding:10px 12px;min-height:59px}.upload-page .scan-alternatives-body{padding:10px;gap:8px}.upload-page .scan-alternatives-summary-copy strong{font-size:12px}}
@media(max-width:700px){
 .upload-page.page-wrap{padding-top:16px}
 .upload-page .page-heading{margin-bottom:13px}
 .upload-page .scan-entry{padding:16px}
}
.upload-layout>.scanner-screen{max-width:100%;width:100%;margin:0;min-width:0}
.upload-layout>.scanner-screen:only-child{grid-column:1 / -1;max-width:980px}
.upload-layout>.scanner-screen:not([data-scan-stage="intro"]){grid-column:1 / -1}
.scan-entry .card-title{margin-bottom:16px}
.scan-entry .scan-buttons button:first-child{min-height:52px;flex:1}
.scan-entry .camera-input{position:relative;display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:white;font-weight:800;cursor:pointer}
.scan-entry .camera-quick button{margin-top:10px}
.scanner-screen .scan-step{scroll-margin-top:90px}
.drop-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;position:relative;width:100%;min-height:260px;padding:20px;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:15px;text-align:center;cursor:pointer;margin:0;transition:.2s}
.drop-zone:hover,.drop-zone.is-dragover{border-color:#60a5fa;background:#eff6ff}
.drop-zone strong{font-size:15px;color:#334155;font-weight:850}
.drop-zone small{font-size:12px;color:#94a3b8;line-height:1.5}
.drop-zone .drop-icon{width:55px;height:55px;background:#dbeafe;color:#2563eb;display:grid;place-items:center;border-radius:16px;margin-bottom:7px}
.drop-zone .drop-icon .ico{width:27px;height:27px}
.drop-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.drop-zone:focus-within{border-color:#2563eb;outline:3px solid #bfdbfe}
.selected-files{font-size:12px;color:#475569;line-height:1.8}
.selected-files:not(:empty){padding:10px 0}
.upload-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.upload-footer>span{display:inline-flex;align-items:center;gap:7px;color:#94a3b8;font-size:11px;max-width:240px;line-height:1.4}
.upload-footer>span .ico{width:17px;height:17px;color:#64748b}
.camera-panel>p{font-size:13px;margin-top:0}
.camera-panel .camera-input{position:relative;border:1px solid #cbd5e1;background:#f8fafc;min-height:65px;border-radius:12px;display:flex;align-items:center;gap:12px;padding:16px;color:#334155;font-weight:800;cursor:pointer}
.camera-input input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}
.camera-panel button{margin-top:12px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.form-grid label{min-width:0}
.filters{display:grid;grid-template-columns:minmax(150px,2fr) repeat(2,minmax(120px,1fr)) minmax(120px,1fr) auto;gap:11px;align-items:end}
.filters>label{margin:0}.filters>button{margin:0 0 1px}
.table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #e2e8f0;border-radius:13px}
.table-scroll::-webkit-scrollbar{height:8px}
.table-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}
table{width:100%;border-collapse:separate;border-spacing:0;min-width:640px;font-size:13px}
th{background:#f8fafc;text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:850;color:#64748b;white-space:nowrap}
th,td{text-align:left;padding:15px 14px;border-bottom:1px solid #edf2f7;vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8fafc}
td{font-weight:600;color:#334155}
td a{font-weight:800;color:#2563eb}
td .button{min-height:34px}
table td input:not([type=checkbox]):not([type=radio]):not([type=file]){margin:0;font-size:12px;height:37px;min-width:80px;padding:6px 8px}
table td input[name=line_description]{min-width:190px}
.split{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(460px,1.18fr);align-items:start;gap:18px}
.split>.panel{margin:0}
.document-preview{width:100%;min-height:690px;display:block;border:1px solid #e2e8f0;border-radius:12px;background:#f1f5f9}
.split .panel:first-child{position:sticky;top:86px}
.permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 25px}
.check{display:flex;align-items:center;gap:11px;min-height:42px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;margin:0;font-size:12px;font-weight:700;color:#334155}
.check:hover{border-color:#bfdbfe;background:#eff6ff}
.details{display:grid;grid-template-columns:175px 1fr;column-gap:18px;margin:0 0 20px}
.details dt,.details dd{border-bottom:1px solid #f1f5f9;padding:13px 0;margin:0}
.details dt{color:#64748b;font-size:12px;font-weight:750}
.details dd{color:#0f172a;font-weight:850;overflow-wrap:anywhere}
.required{color:#e11d48;font-weight:900}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(350px,.93fr) minmax(420px,1.07fr);background:white}
.login-brand-panel{position:relative;overflow:hidden;background:linear-gradient(148deg,#020617,#0f172a 61%,#172554);color:#fff;padding:48px clamp(35px,4vw,70px);display:flex;flex-direction:column;justify-content:space-between}
.login-brand-panel::after{content:"";position:absolute;height:400px;width:400px;right:-200px;bottom:-140px;background:rgba(37,99,235,.12);border-radius:50%}
.login-brand-top{display:flex;align-items:center;gap:13px;position:relative;z-index:1}
.login-brand-top strong,.login-brand-top small,.login-mobile-brand strong,.login-mobile-brand small{display:block}
.login-brand-top strong{font-size:18px;font-weight:850}
.login-brand-top small{font-size:12px;color:#94a3b8;margin-top:4px}
.login-logo{width:52px;height:52px}
.login-brand-copy{position:relative;z-index:1;margin-top:16vh;max-width:560px}
.login-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#93c5fd;font-weight:850;font-size:11px;letter-spacing:.12em}
.login-eyebrow .ico{width:17px;height:17px}
.login-brand-copy h1{font-size:clamp(40px,4.4vw,66px);line-height:1.04;letter-spacing:-.065em;margin:19px 0 21px;font-weight:900}
.login-brand-copy h1 em{font-style:normal;color:#93c5fd}
.login-brand-copy p{max-width:410px;color:#cbd5e1;line-height:1.8;font-size:15px}
.login-brand-features{display:flex;flex-wrap:wrap;gap:11px;margin-top:31px}
.login-brand-features span{display:inline-flex;align-items:center;gap:7px;padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.045);font-size:11px;font-weight:700;color:#dbeafe}
.login-brand-features .ico{width:15px;height:15px}
.login-bottom{position:relative;z-index:1;color:#64748b;font-size:12px}
.login-bottom span{padding:0 5px}
.login-form-panel{display:grid;place-items:center;padding:28px;background:#f8fafc;min-width:0}
.login-card{width:min(100%,480px);padding:42px;background:#fff;border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 24px 70px rgba(15,23,42,.075)}
.login-mobile-brand{display:none;align-items:center;gap:11px;margin-bottom:25px}
.login-mobile-brand strong{font-weight:850;font-size:17px}
.login-mobile-brand small{font-size:11px;color:#94a3b8;margin-top:3px}
.login-form-eyebrow{font-size:11px;color:#2563eb;letter-spacing:.12em;font-weight:900}
.login-card h2{font-size:31px;letter-spacing:-.045em;margin:10px 0}
.login-card>p{font-size:13px;line-height:1.65}
.login-form{display:grid;gap:17px;margin-top:24px}
.login-form label{margin:0;font-weight:800}
.field-input{margin-top:8px;height:50px;border:1px solid #dbe4ef;display:flex;align-items:center;gap:10px;padding:0 13px;border-radius:12px;color:#94a3b8}
.field-input .ico{width:18px;height:18px}
.field-input:focus-within{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.09)}
.field-input input:not([type=checkbox]):not([type=radio]):not([type=file]){border:0;outline:0;box-shadow:none!important;margin:0;padding:0;height:100%;background:transparent}
.login-submit{width:100%;height:50px;margin-top:4px;border-radius:12px;font-size:14px}
.login-card-footer{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:27px;padding-top:21px;border-top:1px solid #f1f5f9;color:#94a3b8;font-size:11px;font-weight:650}
.login-card-footer .ico{width:16px;height:16px}
@media(max-width:1350px){
 .split{grid-template-columns:1fr}
 .split .panel:first-child{position:static}
 .document-preview{min-height:475px}
 .hero-illustration{right:3%}
}
@media(max-width:1190px){
 .dashboard-bottom{grid-template-columns:1fr}
 .upload-layout{grid-template-columns:1fr}
}
@media(max-width:1090px){
 .app-sidebar{transform:translateX(-103%);transition:transform .22s ease;box-shadow:none}
 .app-sidebar.menu-open{transform:translateX(0);box-shadow:16px 0 45px rgba(2,6,23,.3)}
 .menu-backdrop.menu-open{display:block;position:fixed;inset:0;background:rgba(2,6,23,.62);z-index:65;backdrop-filter:blur(2px)}
 .app-workspace{margin-left:0}
 .menu-toggle{display:grid;place-items:center;width:43px;height:43px;min-height:43px;padding:0;background:#f8fafc;color:#334155;border:1px solid #e2e8f0;box-shadow:none;flex:0 0 auto}
 .menu-toggle:hover{background:#e2e8f0;color:#0f172a}
 .mobile-brand{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:900;letter-spacing:-.03em}
 .mobile-logo{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:white;background:linear-gradient(135deg,#3b82f6,#4f46e5)}
 .mobile-logo .ico{width:19px;height:19px}
 .topbar{padding:0 15px}
 .topbar-shortcuts{display:none}
 .topbar-account{margin-left:auto}
 .page-wrap{padding:25px 21px 34px}
}
@media(max-width:780px){
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-hero{padding:29px 26px}
 .hero-illustration{opacity:.28;right:-60px}
 .hero-copy{max-width:590px}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters>label:first-child{grid-column:1/-1}
 .filters>button{width:100%}
}
@media(max-width:700px){
 .login-shell{display:block}
 .login-brand-panel{display:none}
 .login-form-panel{min-height:100vh;padding:16px}
 .login-card{padding:28px 23px;border-radius:20px}
 .login-card h2{font-size:27px}
 .login-mobile-brand{display:flex}
 .page-wrap{padding:22px 14px 30px}
 .page-heading{align-items:start;margin-bottom:22px}
 .page-heading h1{font-size:27px}
 .heading-user{display:none}
 .topbar{height:62px;min-height:62px;padding:0 12px}
 .topbar-account-copy{display:none}
 .topbar-account .avatar{width:36px;height:36px}
 .panel{border-radius:16px;padding:18px;margin-bottom:15px}
 .form-grid,.permissions{grid-template-columns:1fr}
 .metrics{gap:10px}
 .metric-card{min-height:150px;padding:14px;border-radius:15px}
 .metric-icon{height:38px;width:38px}
 .metric-label{margin-top:13px}
 .metric-card strong{font-size:28px}
 .metric-card small{font-size:10px}
 .dashboard-hero{padding:28px 21px;min-height:252px;border-radius:17px}
 .hero-copy h2{font-size:27px}
 .hero-copy p{font-size:12px}
 .hero-illustration{display:none}
 .hero-actions{flex-direction:column;align-items:stretch}
 .hero-actions .button{width:100%}
 .upload-footer{flex-direction:column;align-items:stretch}
 .upload-footer>span{max-width:none}
 .upload-footer button{width:100%}
 .drop-zone{min-height:220px}
 .details{grid-template-columns:115px 1fr;column-gap:11px}
 .document-preview{min-height:410px}
 .table-scroll.mobile-cards{border:0;overflow:visible}
 .mobile-cards table,.mobile-cards tbody,.mobile-cards tr{display:block;min-width:0;width:100%}
 .mobile-cards thead{display:none}
 .mobile-cards tr{position:relative;margin:0 0 11px;padding:14px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.035)}
 .mobile-cards tbody tr:hover{background:#fff}
 .mobile-cards td{display:flex;align-items:baseline;justify-content:space-between;gap:14px;border-bottom:1px solid #f1f5f9;padding:8px 0;text-align:right;font-size:12px;max-width:100%;overflow-wrap:anywhere}
 .mobile-cards td:last-child{border:0}
 .mobile-cards td::before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;text-align:left;font-weight:800;flex:0 0 40%}
 .mobile-cards td a{display:inline-flex;justify-content:center;align-items:center;min-height:33px;padding:0 13px;background:#eff6ff;border-radius:9px}
}
@media(max-width:380px){
 .mobile-brand{font-size:14px}
 .metric-card{padding:12px}
 .metric-card strong{font-size:25px}
 .page-wrap{padding:19px 11px}
 .panel{padding:14px}
 .dashboard-hero{padding:24px 17px}
 .details{grid-template-columns:1fr;gap:0}
 .details dt{border:0;padding:10px 0 2px}
 .details dd{padding:2px 0 10px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* Mobile-ready archive list and upload polish */
.count-pill{display:inline-flex;justify-content:center;align-items:center;min-width:27px;height:27px;padding:0 9px;margin-left:5px;vertical-align:middle;border-radius:9px;font-size:12px;font-weight:900;color:#2563eb;background:#eff6ff}
.state-pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:6px 10px;font-weight:850;font-size:11px;border-radius:9px}
.state-pill::before{content:"";height:6px;width:6px;border-radius:50%;background:currentColor}
.state-saved{color:#15803d;background:#f0fdf4}
.state-draft{color:#92400e;background:#fffbeb}
.state-error{color:#be123c;background:#fff1f2}
.empty-state{padding:35px 22px;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cbd5e1;border-radius:15px;background:#f8fafc;color:#64748b}
.empty-state>.ico{width:41px;height:41px;margin:0 0 14px;color:#94a3b8}
.empty-state strong{font-size:15px;color:#334155}
.empty-state p{max-width:360px;font-size:12px;line-height:1.6;margin:7px 0 15px}
.empty-state .button{min-height:40px}
.selected-files strong{font-size:12px;color:#334155}
.selected-files ul{margin:5px 0;padding:0 0 0 18px}
.selected-files li{overflow-wrap:anywhere}
button:disabled{opacity:.65;cursor:progress}
table td a .ico{width:13px;height:13px}
@media(max-width:700px){
 .mobile-cards .state-pill{font-size:11px}
 .mobile-cards td:nth-child(2) strong{max-width:100%;overflow-wrap:anywhere}
 .row-between>.button{width:100%}
 .empty-state{min-height:200px;padding:24px 15px}
 .row-between h2{margin-top:6px}
 .filters>button{grid-column:1/-1}
}


/* Scanner is integrated into the existing slate/blue responsive DND shell. */
.scan-launch{width:100%;justify-content:center;min-height:52px;margin:10px 0 13px}
.camera-quick{padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;margin-top:14px}
.camera-quick summary{font-weight:800;color:#475569;cursor:pointer;line-height:1.6;font-size:12px}
.camera-quick form{margin-top:12px}
.camera-quick .camera-input{margin:10px 0}
.scanner-screen{width:100%;max-width:1050px;min-width:0;margin:0 auto;overflow-x:clip}
.scanner-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.scanner-header h2{font-weight:900;font-size:24px;letter-spacing:-.035em;margin:6px 0 8px}
.scanner-header p{font-size:13px;color:#64748b;line-height:1.6;margin:0;max-width:600px}
.scanner-screen>.scan-status{font-size:13px;font-weight:700;border-radius:11px;margin:0;line-height:1.5;color:#2563eb}
.scanner-screen>.scan-status:not(:empty){padding:13px 15px;margin:0 0 16px;border:1px solid #bfdbfe;background:#eff6ff}
.scanner-screen>.scan-status.scan-status-error:not(:empty){background:#fff1f2;border-color:#fecdd3;color:#be123c}
.scan-step{background:#fff;border-radius:19px;border:1px solid #e2e8f0;box-shadow:0 10px 32px rgba(15,23,42,.045);padding:25px;width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere}
.scan-step h3{font-size:18px;font-weight:900;letter-spacing:-.025em;margin:0 0 10px;color:#0f172a}
.scan-step>p{font-size:13px;line-height:1.7;color:#64748b}
.scan-welcome-icon{width:66px;height:66px;border-radius:19px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;margin-bottom:16px}
.scan-welcome-icon .ico{width:32px;height:32px}
.scan-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.scan-buttons button{min-height:46px}
.scan-step .muted{font-size:12px;line-height:1.6}
.scan-live{position:relative;display:block;isolation:isolate;width:100%;max-width:100%;min-width:0;height:clamp(260px,58dvh,690px);overflow:hidden;border-radius:16px;background:#020617}
.scan-live video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;max-width:100%;max-height:100%;object-fit:contain;background:#020617}
.scan-live-guide{position:absolute;pointer-events:none;width:75%;height:78%;inset:11% 12.5%;border:2px dashed rgba(255,255,255,.68);border-radius:15px;box-shadow:0 0 0 999px rgba(2,6,23,.18)}
 .scan-editor-stage{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;overflow:hidden;background:#101827;border-radius:15px;padding:12px;min-height:230px}
.scan-editor-stage>[data-scan-canvas]{max-width:100%;max-height:60vh;width:auto;height:auto;touch-action:none;cursor:crosshair;display:block;border-radius:5px;box-shadow:0 4px 25px rgba(0,0,0,.2)}
.scan-editor-stage>[data-scan-canvas]:active{cursor:grabbing}
.scan-magnifier{position:absolute;z-index:4;display:block;width:clamp(112px,30vw,152px);aspect-ratio:1;border-radius:50%;border:3px solid #f8fafc;outline:2px solid #2563eb;box-shadow:0 8px 26px rgba(2,6,23,.45);background:#172033;overflow:hidden;pointer-events:none;user-select:none}
.scan-magnifier[hidden]{display:none}
.scan-magnifier canvas{display:block;width:100%;height:100%}
.scan-magnifier[data-corner="top-left"]{top:14px;left:14px}
.scan-magnifier[data-corner="top-right"]{top:14px;right:14px}
.scan-magnifier[data-corner="bottom-left"]{bottom:14px;left:14px}
.scan-magnifier[data-corner="bottom-right"]{bottom:14px;right:14px}
.scan-magnifier::after{content:"3×";position:absolute;right:12px;bottom:9px;padding:2px 6px;border-radius:8px;background:rgba(15,23,42,.76);color:#fff;font-size:11px;font-weight:800;line-height:1.3}
.scan-settings{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:15px}
.scan-settings label{margin:0}
.scan-page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.scan-page{border:1px solid #e2e8f0;background:#f8fafc;padding:10px;border-radius:13px;display:flex;flex-direction:column;align-items:stretch;gap:9px}
.scan-page img{height:190px;width:100%;object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:8px}
.scan-page span{font-size:12px;color:#334155;font-weight:800}
.scan-remove{background:#fff1f2;color:#be123c;box-shadow:none;border:1px solid #fecdd3;padding:6px 10px;min-height:34px;font-size:12px}
.scan-remove:hover{background:#ffe4e6;color:#9f1239}
.scan-export{margin-top:22px;padding:17px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px}
.scan-export label{margin:0}
.scan-export p{margin:8px 0 0}
.scan-finish{background:#16a34a;color:#fff}
.scan-finish:hover{background:#15803d}
.scan-capture-buttons button:first-child{min-width:165px}
@media(max-width:750px){
 .scanner-header{align-items:start;flex-direction:column}
 .scanner-header h2{font-size:22px}
 .scan-step{padding:17px;border-radius:15px}
 .scan-buttons{flex-direction:column;align-items:stretch}
 .scan-buttons button{width:100%;min-height:49px}
 .scan-settings{grid-template-columns:1fr}
 .scan-editor-stage{padding:7px}
 .scan-editor-stage>[data-scan-canvas]{max-height:57vh}
 .scan-page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .scan-page img{height:165px}
  .scan-live{height:clamp(240px,58dvh,680px)}
}
@media(max-width:360px){.scan-page img{height:130px}}

/* Mobilni skener mora ohraniti širino zaslona tudi pri 4K video toku. */
@media(max-width:750px){
 .app-workspace:has(.scanner-screen[data-scan-stage="live"]) .page-heading{display:none}
 .scanner-screen[data-scan-stage="live"] .scanner-header{display:none}
 .scanner-screen[data-scan-stage="live"] .scan-step[data-scan-live]{padding:12px;border-radius:16px}
 .scanner-screen[data-scan-stage="live"] .scan-step[data-scan-live]>h3{font-size:15px;margin:0 0 10px}
 .scanner-screen[data-scan-stage="live"] .scan-live{height:clamp(260px,58dvh,680px);max-height:calc(100dvh - 200px)}
 .scanner-screen[data-scan-stage="live"] .scan-capture-buttons{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;margin:12px 0 0;padding:10px 0 2px;position:sticky;bottom:0;background:#fff;z-index:5}
 .scanner-screen[data-scan-stage="live"] .scan-capture-buttons button{width:100%;min-width:0;min-height:54px;font-size:14px}
 .scanner-screen[data-scan-stage="live"] .scan-capture-buttons button:last-child{width:auto;min-height:48px;padding:9px 13px}
 .scan-editor-stage>[data-scan-canvas]{max-width:100%;width:auto;height:auto;min-width:0;object-fit:contain}
}



/* Same-origin browser PDF preview with a PDF.js canvas fallback on mobile. */
.pdf-preview{width:100%;min-width:0;max-width:100%;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#f8fafc}
.pdf-preview-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px;background:#fff;border-bottom:1px solid #e2e8f0}
.pdf-preview-header>span{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:850;color:#334155}
.pdf-preview-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pdf-preview-header .button{font-size:12px;min-height:36px;padding:8px 12px;box-shadow:none}
.pdf-preview-header .ico{width:15px;height:15px}
.pdf-preview-surface{--pdf-preview-height:clamp(620px,75vh,920px);--pdf-preview-min-height:620px;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;min-width:0;max-width:100%;min-height:var(--pdf-preview-min-height);padding:0;background:#e8edf4;overflow:hidden}
.pdf-preview [hidden]{display:none!important}
.pdf-preview [data-pdf-mobile-pages]{display:none}
@media (max-width:900px), (pointer:coarse){
 /* Never embed a raw PDF on mobile Chromium; use a readable HTML image view. */
 .pdf-preview:not(.is-canvas-preview) [data-pdf-native]{display:none!important}
 .pdf-preview:not(.is-canvas-preview) [data-pdf-mobile-pages]{
  display:block!important;width:100%;height:clamp(440px,72dvh,860px);min-height:440px;border:0;background:#e8edf4
 }
}
.pdf-preview-surface iframe{display:block;flex:0 0 auto;width:100%;max-width:100%;height:var(--pdf-preview-height);min-height:var(--pdf-preview-min-height);border:0;background:#fff}
.pdf-preview.is-canvas-preview .pdf-preview-surface{box-sizing:border-box;align-items:flex-start;min-height:var(--pdf-preview-min-height);height:var(--pdf-preview-height);max-height:var(--pdf-preview-height);padding:12px;overflow:auto;scrollbar-gutter:stable}
.pdf-preview-surface canvas{display:block;max-width:none;flex:0 0 auto;margin:0 auto;box-sizing:content-box;height:auto;box-shadow:0 3px 17px rgba(15,23,42,.14);background:#fff;border:1px solid #cbd5e1;border-radius:3px}
.pdf-preview-surface img[data-pdf-fallback]{display:block;max-width:none;flex:0 0 auto;margin:0 auto;box-sizing:content-box;height:auto;box-shadow:0 3px 17px rgba(15,23,42,.14);background:#fff;border:1px solid #cbd5e1;border-radius:3px}
.pdf-preview-status{position:sticky;top:12px;left:12px;z-index:3;flex:0 0 auto;width:max-content;max-width:100%;margin:0;padding:8px 12px;border-radius:8px;background:rgba(255,255,255,.95);color:#475569;font-size:13px;font-weight:700;text-align:center;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.pdf-preview-status:empty{display:none}
.pdf-preview-error{max-width:100%;padding:18px;text-align:center;color:#475569}
.pdf-preview-error p{color:#475569;overflow-wrap:anywhere}
.pdf-preview-error a{display:inline-block;margin-top:10px;color:#1d4ed8;font-weight:800;text-decoration:underline}
.pdf-preview-navigation{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px;background:#fff;border-top:1px solid #e2e8f0}
.pdf-preview-navigation button{min-height:38px;font-size:12px;padding:8px 12px;box-shadow:none}
.pdf-preview-navigation span{white-space:nowrap;color:#475569;font-size:12px;font-weight:700}
.pdf-preview-navigation button:disabled{opacity:.4;cursor:not-allowed}
.pdf-error-notice{min-width:0;width:100%;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.pdf-error-notice>div{min-width:0;flex:1;overflow-wrap:anywhere}
.pdf-error-notice p{margin:8px 0 0;color:inherit;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
@media(max-width:700px){
 .pdf-preview-header{align-items:stretch;flex-direction:column}
 .pdf-preview-header .button{width:100%;text-align:center}
 .pdf-preview-surface{--pdf-preview-height:clamp(400px,58dvh,650px);--pdf-preview-min-height:400px;min-height:var(--pdf-preview-min-height);padding:0}
 .pdf-preview.is-canvas-preview .pdf-preview-surface{padding:7px}
 .pdf-preview-surface iframe{height:var(--pdf-preview-height);min-height:var(--pdf-preview-min-height)}
 .pdf-preview-header-actions{width:100%;justify-content:stretch}
 .pdf-preview-header-actions>.button{flex:1}
 .pdf-preview-navigation{gap:7px}
 .pdf-preview-navigation button{flex:1;min-width:0}
 .pdf-preview-navigation span{order:-1;flex-basis:100%;text-align:center}
}

.scan-quality-hint:not([hidden]){display:block;margin:12px 0 0;padding:12px 14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;color:#9a3412;font-size:13px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}

/* Vloge in individualne izjeme */
.access-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.access-tabs a{padding:11px 17px;border:1px solid #dbe4ef;border-radius:12px;text-decoration:none;font-weight:700;color:#52647e;background:#fff}
.access-tabs a[aria-current="page"]{background:#eaf2ff;color:#1d54cc;border-color:#aac8fa}
.override-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px;margin-bottom:22px}
.override-field{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc;font-size:.86rem;font-weight:650}
.override-field select{width:100%;min-height:40px;background:#fff}
.override-field small{color:#6a778c;font-weight:400}
@media(max-width:600px){.access-tabs a{flex:1;text-align:center}.override-grid{grid-template-columns:1fr}}

/* Masovni uvoz */
.bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:16px}
.bulk-progress{height:9px;background:var(--line,#e2e8f0);border-radius:20px;overflow:hidden;margin-top:12px}
.bulk-progress>div{width:0;height:100%;background:#17855a;transition:width .15s}
.bulk-errors{margin-top:12px;color:#a12d2d;overflow-wrap:anywhere}
.bulk-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.bulk-metrics>div{padding:14px;border:1px solid var(--line,#e2e8f0);border-radius:12px}
.bulk-metrics strong{display:block;font-size:24px;font-weight:750}
.bulk-metrics small{display:block;opacity:.72}
.bulk-result{margin:0 0 12px;overflow-wrap:anywhere}
.bulk-result a{font-weight:700}
.bulk-warning{margin-top:5px;color:#98591a;font-size:.875rem;overflow-wrap:anywhere}
@media(max-width:700px){.bulk-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pregled računov in individualno označevanje računovodske obdelave */
.accounting-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
.accounting-summary>div{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:15px;padding:19px}
.accounting-summary small{display:block;color:#64748b;font-weight:750;margin-bottom:9px}
.accounting-summary strong{display:block;font-size:26px;font-weight:850}
.accounting-meta{font-size:12px;color:#475569}
.accounting-history{margin-top:18px;color:#475569}
.accounting-history summary{font-weight:750;cursor:pointer}
.accounting-history li{margin:9px 0;font-size:12px;line-height:1.5}
.accounting-choice{display:block;border:1px solid #e2e8f0;border-radius:13px;padding:14px 16px;cursor:pointer}
.accounting-choice .check{display:flex;align-items:center;gap:9px;font-weight:800;margin:0}
.accounting-choice input[type=radio]{width:19px;height:19px;flex:0 0 19px;margin:0;accent-color:var(--theme-link,#2563eb)}
.accounting-choice small{display:block;margin:8px 0 0 27px;color:#64748b;line-height:1.5;font-size:12px}
.accounting-choice:has(input:checked){border-color:#60a5fa;background:#eff6ff}

/* Pregleden modal za nastavitev označevanja računov pri prvem izvozu. */
.accounting-dialog{
 width:min(520px,calc(100vw - 32px));max-height:min(90vh,760px);
 overflow-y:auto;overflow-x:hidden;padding:0;
 border:1px solid var(--theme-border,#e2e8f0);border-radius:20px;
 background:var(--theme-surface,#fff);color:var(--theme-text,#0f172a);
 box-shadow:0 30px 90px rgba(15,23,42,.24);
}
.accounting-dialog::backdrop{background:rgba(15,23,42,.52)}
.accounting-dialog-header{display:flex;align-items:center;gap:15px;padding:27px 28px 10px}
.accounting-dialog-hero-icon{
 width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;
 border-radius:14px;background:var(--theme-soft,#eff6ff);color:var(--theme-link,#2563eb)
}
.accounting-dialog-hero-icon .ico{width:24px;height:24px}
.accounting-dialog-eyebrow{display:block;margin-bottom:5px;font-size:10px;font-weight:850;letter-spacing:.09em;color:var(--theme-link,#2563eb)}
.accounting-dialog h2{margin:0;font-size:21px;line-height:1.2;letter-spacing:-.025em;font-weight:850;color:inherit}
.accounting-dialog-description{margin:0;padding:0 28px 18px;color:var(--theme-muted,#64748b);font-size:13px;line-height:1.6}
.accounting-dialog-form{padding:0 28px 26px}
.accounting-dialog-options{min-width:0;display:grid;gap:10px;border:0;margin:0;padding:0}
.accounting-dialog-options legend{float:none;width:100%;padding:0 0 9px;margin:0;font-size:12px;font-weight:800;color:var(--theme-text,#334155)}
.accounting-dialog-option{
 display:flex;align-items:center;gap:13px;min-width:0;margin:0;padding:15px;
 border:1px solid var(--theme-border,#e2e8f0);border-radius:14px;
 background:var(--theme-surface,#fff);color:var(--theme-text,#0f172a);
 cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s;
}
.accounting-dialog-option:hover{border-color:var(--theme-link,#2563eb);background:var(--theme-soft,#eff6ff)}
.accounting-dialog-option:has(input:checked){
 border-color:var(--theme-link,#2563eb);background:var(--theme-soft,#eff6ff);
 box-shadow:0 0 0 2px rgba(37,99,235,.07)
}
.accounting-dialog-option:focus-within{outline:2px solid var(--theme-link,#2563eb);outline-offset:2px}
.accounting-option-icon{
 width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;
 border-radius:11px;background:var(--theme-soft,#f1f5f9);color:var(--theme-muted,#64748b)
}
.accounting-dialog-option:has(input:checked) .accounting-option-icon{
 color:var(--theme-link,#2563eb);background:var(--theme-surface,#fff)
}
.accounting-option-icon .ico{width:20px;height:20px}
.accounting-option-text{display:block;flex:1;min-width:0}
.accounting-option-text strong{display:block;margin-bottom:4px;font-size:14px;line-height:1.25;font-weight:800}
.accounting-option-text small{display:block;font-size:12px;line-height:1.45;color:var(--theme-muted,#64748b);font-weight:450}
.accounting-dialog-option input[type=radio]{
 display:block;flex:0 0 20px;width:20px;height:20px;min-width:20px;
 margin:0;padding:0;border:0;appearance:auto;-webkit-appearance:radio;
 background:transparent;box-shadow:none;accent-color:var(--theme-link,#2563eb);cursor:pointer;
}
.accounting-dialog-note{display:flex;align-items:flex-start;gap:8px;margin:17px 0 0;color:var(--theme-muted,#64748b);font-size:12px;line-height:1.5}
.accounting-dialog-note .ico{width:16px;height:16px;margin-top:1px;flex:0 0 16px;color:var(--theme-link,#2563eb)}
.accounting-dialog-actions{display:flex;align-items:center;gap:10px;margin:21px 0 0}
.accounting-dialog-actions button{min-height:45px;box-shadow:none;white-space:normal}
.accounting-dialog-actions button[type=submit]{flex:1}
.accounting-dialog-error{margin:12px 0 0;font-size:12px;line-height:1.5;color:#be123c}
.accounting-dialog-error:empty{display:none}
@media(max-width:680px){
 .accounting-summary{gap:8px}.accounting-summary>div{padding:12px}.accounting-summary strong{font-size:22px}.accounting-summary small{font-size:10px}
 .accounting-dialog{width:calc(100vw - 24px);border-radius:17px}
 .accounting-dialog-header{gap:11px;padding:22px 19px 10px}
 .accounting-dialog-hero-icon{width:40px;height:40px;flex-basis:40px;border-radius:11px}
 .accounting-dialog h2{font-size:19px}
 .accounting-dialog-description{padding:0 19px 16px}
 .accounting-dialog-form{padding:0 19px 20px}
 .accounting-dialog-option{gap:10px;padding:13px 11px}
 .accounting-option-icon{width:36px;height:36px;flex-basis:36px}
 .accounting-dialog-actions{flex-direction:column}
 .accounting-dialog-actions button{width:100%}
}

/* Varnost ob spremembi pravic: neshranjene spremembe uporabnika se ne zavržejo. */
.access-changed-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #bfcee1;border-radius:12px;background:#f8fafc;padding:12px 16px;margin-bottom:18px;color:#213047;font-weight:600}
.access-changed-notice button{white-space:nowrap}


/* Zgodovina dokumenta je samostojna ikona ob naslovu; brez nove vrstice. */
.page-heading-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0}
.page-heading:has(.document-history-heading-button) .page-heading-right{align-self:flex-end;flex:0 0 auto;flex-wrap:nowrap}
.document-history-heading-button{
 width:44px;height:44px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
 border:1px solid #dbe4ef;border-radius:12px;background:#fff;color:#475569;
 box-shadow:0 2px 8px rgba(15,23,42,.025);transition:background .15s,border-color .15s,color .15s
}
.document-history-heading-button .ico{width:21px;height:21px}
.document-history-heading-button:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.document-history-heading-button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
/* Isti obstoječi gumb za vnos, zdaj poravnan med izvoze, urejanje in koš. */
.document-accounting-action{margin:0}
button.accounting-quick-button,.accounting-quick-readonly{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:43px;border:1px solid #cbd5e1;border-radius:11px;
 padding:10px 17px;background:#f1f5f9;color:#475569;box-shadow:none;
 font-size:13px;font-weight:800;line-height:1.25;white-space:normal;text-align:center
}
button.accounting-quick-button:hover{background:#e2e8f0;color:#334155}
button.accounting-quick-button.is-recorded,.accounting-quick-readonly.is-recorded{
 background:#dcfce7;border-color:#86efac;color:#166534;box-shadow:none
}
button.accounting-quick-button.is-recorded:hover{background:#bbf7d0;color:#14532d}
.accounting-quick-button .ico,.accounting-quick-readonly .ico{width:17px;height:17px;flex-shrink:0}
@media(max-width:700px){
 .page-heading:has(.document-history-heading-button){flex-direction:row;align-items:center;gap:12px}
 .page-heading:has(.document-history-heading-button)>div:first-child{min-width:0}
 .page-heading:has(.document-history-heading-button) .page-heading-right{margin-left:auto;width:auto}
 .document-history-heading-button{width:42px;height:42px;min-width:42px;min-height:42px}
}
@media(max-width:420px){
 button.accounting-quick-button,.accounting-quick-readonly{font-size:12px;padding:10px 12px}
}

/* Ikona brisanja osnutka: umirjeno rdeča, brez širokega opozorilnega gumba. */
.document-row-actions{display:inline-flex;align-items:center;gap:12px;white-space:nowrap}
.document-row-actions .inline{flex:0 0 auto}
button.draft-trash-button,html.theme-enabled button.draft-trash-button{
 width:40px;min-width:40px;height:40px;min-height:40px;aspect-ratio:1 / 1;
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;
 padding:0;border:1px solid #f7dce1;border-radius:11px;
 background:#fff3f4;color:#c34050;box-shadow:none;
 transition:background-color .16s ease,border-color .16s ease,color .16s ease
}
button.draft-trash-button .ico{width:19px;height:19px}
button.draft-trash-button:hover,html.theme-enabled button.draft-trash-button:hover{
 background:#ffe4e7;border-color:#f5bdc4;color:#a92437
}
@media(max-width:700px){
 .mobile-cards td .document-row-actions{justify-content:flex-end;flex-wrap:wrap;white-space:normal}
}

/* Razmiki in dosegljiva dejanja na manjših zaslonih */
.panel > .actions:empty{display:none}
.panel > .actions:not(:empty){margin-bottom:21px}
.row-between > :first-child,.actions > *{min-width:0;max-width:100%}
.document-row-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}
.accounting-mobile-select-all{display:none}
@media(max-width:700px){
 .accounting-mobile-select-all{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 13px;padding:12px 14px;background:var(--soft,#f8fafc);border:1px solid var(--line,#e2e8f0);border-radius:12px;font-size:13px;font-weight:750;cursor:pointer}
 .accounting-mobile-select-all input[type=checkbox]{width:21px;height:21px;flex:0 0 21px}
 .accounting-bulk-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch;margin:16px 0 0}
 .accounting-bulk-actions button{width:100%;min-height:46px;white-space:normal}
 .accounting-bulk-actions [data-accounting-selected-count]{line-height:1.5}
 .mobile-cards td[data-label="Dejanje"]{align-items:center;min-width:0}
 .mobile-cards td .document-row-actions a{min-height:44px;padding:8px 12px}
 .access-tabs a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .panel .row-between{row-gap:13px}
}
@media(max-width:480px){
 .accounting-summary{grid-template-columns:minmax(0,1fr);gap:10px}
 .accounting-summary>div{padding:14px 16px}
}


/* Preverjanje dobavitelja: ločeno od opozoril, dostopno tudi na mobilnih napravah. */
.supplier-lookup-panel{border:1px solid #cbd5e1;background:#f8fafc;border-radius:14px;padding:16px;margin:16px 0;color:#1e293b}
.supplier-lookup-panel>strong{display:block;font-size:1.03rem;margin-bottom:8px}
.supplier-lookup-panel>p{margin:6px 0 12px;line-height:1.5}
.supplier-results{display:grid;gap:12px;margin:14px 0}
.supplier-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid #dbe3ed;border-radius:12px;background:#fff}
.supplier-result>div{flex:1 1 215px;min-width:0;overflow-wrap:anywhere}
.supplier-result strong{display:block;margin-bottom:4px}
.supplier-result small{display:block;margin-top:7px}
.supplier-result-diff{font-size:.88rem;color:#9a3412;margin-top:8px}
.supplier-result button{flex:0 0 auto;max-width:100%}
.supplier-manual{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.supplier-manual [data-supplier-choice-status]{font-size:.9rem;color:#475569}
.supplier-lookup-panel button.supplier-choice-active{border-color:#0f766e;background:#ccfbf1;color:#115e59}
@media(max-width:620px){.supplier-lookup-panel{padding:12px}.supplier-result{align-items:stretch}.supplier-result button,.supplier-manual button{width:100%;white-space:normal}.supplier-manual{align-items:stretch}}
/* Enoten, zmeren odmik gumbov neposredno pod tabelami po vsej aplikaciji. */
.table-scroll + :is(.actions,.bulk-actions,.button,button){margin-top:12px}


/* Razvrščanje dokumentov in pregled AI; umirjeni kontrolniki v glavi. */
table[data-sortable-documents] th .document-sort-button,
html.theme-enabled table[data-sortable-documents] th .document-sort-button{
 min-height:33px;min-width:0;width:100%;justify-content:flex-start;gap:5px;padding:5px 0;
 background:transparent;border:0;box-shadow:none;color:inherit;font-size:inherit;
 text-transform:inherit;letter-spacing:inherit;font-weight:inherit;border-radius:5px;white-space:nowrap
}
table[data-sortable-documents] th .document-sort-button:hover{color:#1d4ed8;background:transparent}
table[data-sortable-documents] th .document-sort-button span{opacity:.5;font-size:13px}
table[data-sortable-documents] th[aria-sort]:not([aria-sort="none"]) .document-sort-button{color:#1d4ed8}
table[data-sortable-documents] th[aria-sort]:not([aria-sort="none"]) .document-sort-button span{opacity:1}
.document-ai-info{font-size:12px;margin:13px 0 16px;line-height:1.5}
.document-ai-info strong{color:#334155}
.document-check-cell input[type=checkbox]{width:19px;height:19px}
.document-check-cell input:disabled{opacity:.33;cursor:not-allowed}
.document-sort-mobile{display:none}
.draft-bulk-actions{gap:12px;flex-wrap:wrap;margin-top:18px}
.draft-bulk-actions button{min-height:43px}
.draft-bulk-actions .muted{font-size:12px}
@media(max-width:700px){
 .document-sort-mobile{display:block;margin:4px 0 13px;padding:0;font-size:12px}
 .document-sort-mobile select{margin-top:6px;height:42px}
 .mobile-cards .document-check-cell{align-items:center}
 .mobile-cards .document-check-cell::before{align-self:center}
 .draft-bulk-actions{margin-top:16px}
 .draft-bulk-actions button{width:100%}
}

/* Ročno iskanje dobavitelja po ID za DDV: lupa ostane ob vnosnem polju. */
.vat-lookup-field{min-width:0}
.vat-lookup-field>label{margin:14px 0 7px}
.vat-lookup-row{position:relative;display:block;width:100%;min-width:0;height:46px}
#supplier-vat-id{display:block;box-sizing:border-box;width:100%;min-width:0;height:46px;margin:0;padding-right:58px}
button.vat-lookup-button{position:absolute;right:1px;top:1px;bottom:1px;transform:none;display:grid;place-items:center;width:46px;height:44px;min-height:0;margin:0;padding:0;border:0;border-left:1px solid #dbe4ef;border-radius:0 10px 10px 0;background:#eff6ff;color:#1d4ed8;box-shadow:none}
button.vat-lookup-button:hover{background:#dbeafe;border-color:#93c5fd}
button.vat-lookup-button:disabled{opacity:.5;cursor:wait}
.vat-lookup-button .ico{width:18px;height:18px}
.vat-lookup-results{grid-column:1/-1;min-width:0;margin:3px 0 12px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}
.vat-lookup-results[hidden]{display:none}
.vat-lookup-message{font-size:12px;font-weight:700;color:#475569;margin:2px 0 12px;line-height:1.5}
.vat-lookup-message:last-child{margin-bottom:0}
.vat-lookup-candidate{min-width:0;border:1px solid #dbe3ed;border-radius:12px;background:#fff;padding:14px;margin-top:12px}
.vat-lookup-candidate>strong{display:block;font-size:14px}
.vat-lookup-candidate>p{font-size:12px;margin:5px 0;color:#64748b}
.vat-lookup-candidate>small{display:block;color:#475569;line-height:1.5}
.vat-lookup-candidate>.vat-lookup-mapping-hint{margin:11px 0 8px;color:#475569;font-size:12px;line-height:1.5}
.vat-lookup-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.vat-lookup-map-row{display:flex;align-items:start;gap:9px;margin:0;padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;cursor:pointer;min-width:0}
.vat-lookup-map-row input[type=checkbox]{margin:3px 0 0;flex:0 0 auto}
.vat-lookup-map-row span{min-width:0;overflow-wrap:anywhere}
.vat-lookup-map-row strong{display:block;font-size:12px}
.vat-lookup-map-row small{display:block;margin-top:4px;font-size:11px;color:#64748b;line-height:1.45}
button.vat-lookup-apply{margin-top:12px;min-height:38px;padding:8px 14px;font-size:12px}
@media(max-width:650px){.vat-lookup-map{grid-template-columns:1fr}.vat-lookup-results{padding:11px}button.vat-lookup-apply{width:100%}}

/* Zaporedni pregled izbranih osnutkov: kompakten prikaz napredka brez spreminjanja obrazca. */

/* Pregled prejetih racunov: dodajanje vrstic in avtomatski seštevki. */
.review-lines-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 12px}
.review-lines-heading h3{margin:0;flex:1 1 auto}
.review-line-count{font-size:11px;font-weight:750;color:#64748b;white-space:nowrap}
.review-lines-heading button.review-add-line{margin:0;min-height:36px;padding:7px 12px;font-size:12px;white-space:nowrap}
.review-totals-note{margin:4px 0 12px;font-size:12px;line-height:1.5;color:#64748b}
/* Kompakten vnos globalnega popusta: preprosti polji in kratek povzetek. */
.review-global-discount{margin:14px 0 12px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.review-global-discount h3{margin:0;font-size:13px;line-height:1.35;font-weight:800;color:#0f172a}
.review-discount-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:9px}
.review-discount-controls label{display:block;margin:0;font-size:11px;line-height:1.4;color:#475569;font-weight:700}
.review-discount-controls .review-discount-mode{flex:0 1 205px;min-width:160px;max-width:205px}
.review-discount-controls .review-discount-value{flex:0 0 112px;width:112px}
.review-global-discount .review-discount-controls select,.review-global-discount .review-discount-controls input[name="global_discount_value"]{width:100%;height:36px;min-height:36px;margin-top:4px;padding:6px 10px;border-radius:9px;font-size:12px}
.review-global-discount .review-discount-info{margin:9px 0 0;color:#475569;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:430px){.review-global-discount{padding:11px 12px}.review-discount-controls{gap:8px}.review-discount-controls .review-discount-mode{flex:1 1 155px;min-width:140px}.review-discount-controls .review-discount-value{flex:0 0 100px;width:100px}}

/* Davčna razčlenitev prejetega računa, prikazana tudi na ozkih zaslonih. */
.review-vat-breakdown{min-width:0;margin:16px 0 17px;padding:14px 16px;border:1px solid #dce4ee;border-radius:13px;background:#f8fafc}
.review-vat-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-bottom:11px}
.review-vat-head h3{margin:0;font-size:14px;line-height:1.5;font-weight:800;color:#0f172a}
.review-vat-head span{font-size:11px;font-weight:600;color:#64748b}
.review-vat-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.review-vat-breakdown table{width:100%;min-width:440px;margin:0;border-collapse:collapse;font-variant-numeric:tabular-nums}
.review-vat-breakdown th,.review-vat-breakdown td{padding:9px 10px;border-bottom:1px solid #dce4ee;font-size:12px;line-height:1.4}
.review-vat-breakdown thead th{font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#64748b;background:transparent;white-space:nowrap}
.review-vat-breakdown tbody th,.review-vat-breakdown tfoot th{text-align:left;font-weight:700;white-space:nowrap;color:#334155}
.review-vat-breakdown td{text-align:right;white-space:nowrap;color:#0f172a}
.review-vat-breakdown thead th:not(:first-child){text-align:right}
.review-vat-breakdown tfoot th,.review-vat-breakdown tfoot td{font-weight:850;border-top:2px solid #cbd5e1;border-bottom:0}
.review-vat-breakdown tfoot[hidden],.review-vat-special[hidden]{display:none}
.review-vat-breakdown .review-vat-empty{padding:15px 10px;text-align:left;white-space:normal;color:#64748b;font-weight:500}
.review-vat-special{margin:11px 0 0;font-size:12px;line-height:1.5;color:#9a3412}
@media(max-width:650px){.review-vat-breakdown{padding:12px}.review-vat-breakdown th,.review-vat-breakdown td{padding:8px 9px}}
.form-grid input[name="total_net"][readonly],
.form-grid input[name="total_vat"][readonly],
.form-grid input[name="total_gross"][readonly]{background:#f8fafc;color:#0f172a;font-weight:750;cursor:default}
@media(max-width:650px){
 .review-lines-heading{align-items:flex-start}
 .review-lines-heading h3{flex:1 1 100%}
 .review-lines-heading button.review-add-line{flex:1 1 auto}
}
.review-batch-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:17px 19px;margin:0 0 20px;border:1px solid #d8e5f9;border-radius:16px;background:#f3f7ff}
.review-batch-copy{display:flex;flex:1 1 320px;flex-direction:column;gap:5px;min-width:0}
.review-batch-copy strong{color:#1d4ed8;font-size:15px}
.review-batch-copy span{color:#475569;font-size:13px;line-height:1.5}
.review-batch-bar .button{flex:0 0 auto;white-space:normal;text-align:center}
.review-batch-bar progress{display:block;flex:1 1 100%;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;accent-color:#2563eb}
@media(max-width:650px){.review-batch-bar{padding:14px;gap:12px}.review-batch-copy{flex-basis:100%}.review-batch-bar .button{width:100%}}

/* Naslovi stolpcev so navadne besedilne povezave z majhnimi puščicami. */
table[data-sortable-documents] th a.document-sort-link,
html.theme-enabled table[data-sortable-documents] th a.document-sort-link{
 display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;
 min-height:30px;max-width:100%;padding:0;margin:0;border:0;border-radius:0;
 background:transparent!important;box-shadow:none!important;
 color:inherit;font:inherit;font-size:inherit;font-weight:inherit;
 letter-spacing:inherit;text-transform:inherit;text-decoration:none;
 white-space:nowrap;cursor:pointer
}
table[data-sortable-documents] th a.document-sort-link:hover,
html.theme-enabled table[data-sortable-documents] th a.document-sort-link:hover{
 background:transparent!important;color:var(--theme-link,#1d4ed8);text-decoration:none
}
table[data-sortable-documents] th a.document-sort-link span{font-size:12px;font-weight:800;opacity:.55;line-height:1}
table[data-sortable-documents] th[aria-sort]:not([aria-sort="none"]) a.document-sort-link span{opacity:1}
table[data-sortable-documents] th a.document-sort-link:focus-visible{outline:2px solid var(--theme-link,#2563eb);outline-offset:3px}
@media(min-width:701px){.page-wrap .document-sort-mobile{display:none!important}}


/* Preverjanje računa: uporabniško opozorilo brez menjave strani ali izgube vnosov. */
.review-error-dialog{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid #e2e8f0;border-radius:18px;padding:23px;background:#fff;color:#0f172a;box-shadow:0 24px 75px rgba(15,23,42,.22)}
.review-error-dialog::backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(3px)}
.review-error-header{display:flex;align-items:center;gap:13px;margin-bottom:17px}
.review-error-symbol{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:#fff7ed;border:1px solid #fed7aa;color:#c2410c;font-size:22px;font-weight:850}
.review-error-dialog .review-error-header h2{font-size:18px;line-height:1.3;margin:0 0 3px;font-weight:850}
.review-error-header p{margin:0;color:#64748b;font-size:12px}
.review-error-dialog .review-error-message{font-size:14px;line-height:1.55;font-weight:730;color:#9a3412;padding:12px 14px;border-radius:12px;border:1px solid #fed7aa;background:#fffaf5;margin:0 0 12px;overflow-wrap:anywhere}
.review-error-dialog .review-error-help{font-size:12px;line-height:1.55;color:#475569;margin:0 0 19px}
.review-error-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.review-error-actions button{min-height:40px}
.review-inline-error{border:1px solid #fed7aa;border-radius:12px;background:#fffaf5;padding:14px;margin:14px 0;color:#9a3412}
.review-inline-error strong{display:block;font-size:14px}
.review-inline-error p{margin:6px 0;font-size:13px;color:#9a3412}
form[data-review-form] [data-review-invalid]{border-color:#ea580c!important;box-shadow:0 0 0 3px rgba(234,88,12,.14)!important;background:#fffaf5}
@media(max-width:550px){
 .review-error-dialog{padding:18px}
 .review-error-actions{display:grid;grid-template-columns:1fr 1fr}
 .review-error-actions button{width:100%;padding:10px 8px}
}

/* Ujemanje dobavitelja: uporabnik izbere preverjeni zapis v pojavnem oknu. */
.review-supplier-dialog{width:min(570px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid #e2e8f0;border-radius:18px;padding:24px;background:#fff;color:#0f172a;box-shadow:0 24px 75px rgba(15,23,42,.22)}
.review-supplier-dialog::backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(3px)}
.review-supplier-dialog .review-error-header h2{font-size:19px;line-height:1.3;margin:0 0 3px;font-weight:850}
.review-supplier-symbol{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:23px;font-weight:850}
.review-supplier-description{font-size:14px;line-height:1.55;color:#334155;margin:0 0 16px}
.review-supplier-options{display:grid;gap:10px;margin:12px 0 14px}
.review-supplier-option{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid #dbe3ed;border-radius:12px;padding:13px;background:#f8fafc}
.review-supplier-option-details{flex:1 1 220px;min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.review-supplier-option-details strong{display:block;font-size:14px;margin-bottom:3px}
.review-supplier-option-details small{display:block;color:#64748b;margin-top:3px}
.review-supplier-option button{flex:0 0 auto;min-height:39px;max-width:100%}
.review-supplier-help{font-size:12px;line-height:1.55;color:#64748b;margin:0 0 16px}
.review-supplier-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.review-supplier-actions button{white-space:normal;min-height:40px}
@media(max-width:550px){.review-supplier-dialog{padding:17px}.review-supplier-option{align-items:stretch}.review-supplier-option button{width:100%}.review-supplier-actions{display:grid;grid-template-columns:1fr}.review-supplier-actions button{width:100%}}

/* Ime in avatar sta povezava do lastnega profila brez spremembe glave strani. */
.sidebar-user,.topbar-account{text-decoration:none}
.sidebar-user:focus-visible,.topbar-account:focus-visible{outline:2px solid #2563eb;outline-offset:3px;border-radius:10px}

/* Prva prijava: usmerjen obrazec brez dostopa do drugih razdelkov. */
.first-login-flow{max-width:720px;margin:0 auto}
.first-login-flow .settings-welcome{display:flex;gap:16px;align-items:flex-start;padding:21px;border:1px solid var(--line);border-radius:16px;background:#eff6ff;margin-bottom:19px}
.first-login-flow .settings-welcome>.ico{width:29px;height:29px;flex-shrink:0;color:#2563eb}
.first-login-flow .settings-welcome h2{font-size:19px;margin:0 0 8px}
.first-login-flow .settings-welcome p{color:#475569;font-size:13px;margin:0;line-height:1.6}
.first-login-flow .settings-profile-form{max-width:100%}
.first-login-flow .settings-profile-form button{width:100%}
.first-login-hint{text-align:center;font-size:13px}
@media(max-width:480px){.first-login-flow .settings-welcome{padding:16px}}

/* Lokalno shranjen dobavitelj: nezahtevna informacija neposredno pod nazivom. */
.supplier-memory-field{min-width:0}
.supplier-memory-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:5px;font-size:12px;color:#475569;line-height:1.45}
.supplier-memory-feedback[hidden]{display:none}
.supplier-memory-feedback button{width:auto;min-height:28px;padding:3px 9px;font-size:12px}

/* Samodejno predlagani kraj je shranljiva vrednost z nežno sivo barvo. */
form[data-review-form] input[name="supplier_city"].postal-autofilled{color:#94a3b8}

/* Ostro povečanje PDF v preverjanju dokumentov */
.pdf-preview-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;background:#f1f5f9;border-bottom:1px solid #dbe4ef}
.pdf-preview-toolbar button{min-height:34px;min-width:38px;padding:5px 9px;font-size:19px;font-weight:750;line-height:1;background:#fff;color:#334155;border:1px solid #cbd5e1;border-radius:7px;cursor:pointer}
.pdf-preview-toolbar select{width:auto;min-width:148px;max-width:210px;min-height:34px;padding:5px 8px;font-size:12px;font-weight:700;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155}
.pdf-preview-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.pdf-preview.is-canvas-preview .pdf-preview-surface canvas{max-width:none!important;max-height:none!important;object-fit:none;image-rendering:auto}
@media(max-width:700px){.pdf-preview-toolbar{gap:6px;padding:6px}.pdf-preview-toolbar select{min-width:120px}}

/* Enotna časovnica za vse dogodke dokumenta, tudi na ozkih zaslonih. */
.document-history-list{list-style:none!important;margin:12px 0!important;padding:0!important;display:grid;gap:0}
.document-history-event{list-style:none;margin:0!important;padding:11px 0!important;border-bottom:1px solid #e2e8f0;min-width:0;overflow-wrap:anywhere}
.document-history-event:last-child{border-bottom:none}
.document-history-event-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px}
.document-history-event-heading strong{font-size:13px;color:#172033;font-weight:750}
.document-history-event-heading time{font-size:11px;color:#64748b;white-space:nowrap}
.document-history-actor{display:block;color:#475569;font-size:12px;margin-top:4px}
.document-history-note{font-size:12px;color:#64748b;margin-top:3px;line-height:1.5}
.document-history-all{display:inline-flex;margin-top:11px;font-size:12px;font-weight:750;color:#2356bf;text-decoration:none}
.document-history-all:hover{text-decoration:underline}
.accounting-quick-popover .accounting-history{padding-top:13px}
.accounting-quick-popover .document-history-list{max-height:230px;overflow-y:auto}
.accounting-quick-popover .document-history-event{padding:9px 0!important}
.accounting-action-history .document-history-list{max-height:310px;overflow-y:auto}
.document-history-page{max-width:900px;margin-inline:auto}
.document-history-page h2{margin:17px 0 8px}
.document-history-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:20px}
.document-history-pages .button{font-size:12px}
@media(max-width:780px){
 .accounting-quick-popover .document-history-event-heading{display:block}
 .accounting-quick-popover .document-history-event-heading time{display:block;margin-top:3px}
 .document-history-page{padding:19px}
}
