@charset "UTF-8";
/* MMC ERP — tema autoservisa DARA (izvedena iz teme ELEKTRO, isti raspored i funkcije).
   Učitava se preko tenant.php > profile_overrides > 'theme_css' => 'theme-dara.css' (poslije style.css / pos.css).
   Boje: crvena #b0101f / #d7192d, grafit #1f2328, narančasti naglasak #f39200. */
:root{
  --mikro-yellow:#d7192d;--mikro-yellow2:#b0101f;--mikro-navy:#1f2328;
  --mkr-accent:#d7192d!important;--mkr-accent-2:#b0101f!important;
  --elektro-blue:#b0101f;--elektro-blue-2:#d7192d;--elektro-navy:#1f2328;--elektro-amber:#f39200;
}

/* ERP: bočni izbornik, nadzorna ploča */
html body .app-sidebar .brand strong .mikro-word{color:#ff7a3d!important}
html body .side-nav>a.active,html body .side-nav a.active,html body .side-group[open]>summary{background:linear-gradient(90deg,#d7192d,#b0101f)!important;color:#fff!important}
html body .side-nav>a.active .side-icon,html body .side-nav a.active .side-icon,html body .side-group[open]>summary .side-icon{color:#fff!important}
html body .quick-pos,html body .exec-new{background:linear-gradient(135deg,#d7192d,#b0101f)!important;color:#fff!important;border-color:#b0101f!important}
html body .login-values span:after{background:var(--elektro-amber)!important}

/* Kasa (online i offline) */
html body .pos39-product-price button,html body .pos39-cat.active,html body .pos39-pay-primary,html body .pos39-search button{
  background:linear-gradient(135deg,#d7192d,#b0101f)!important;border-color:#b0101f!important;color:#fff!important}
html body .pos39-cat.active span,html body .pos39-cat.active b{color:#fff!important}
html body .pos39-product-price button:disabled{background:#dfe8f2!important;border-color:#cfdbe8!important;color:#8aa0b8!important}
html body .pos39-retail-logo{background:#fbeced!important;border-color:#e6a3a9!important;color:#b0101f!important}
html body .pos39-line-newest{border-color:rgba(215,25,45,.38)!important}
html body .pos39-product.pos-card-add:focus-visible{outline-color:#d7192d!important}
html body .pos39-theme-toggle,html body .pos39-top-stats a{color:#b0101f}

/* Prijava */
html body .login-stage.login-elektro .login-card form>button{background:linear-gradient(90deg,#1f2328,#d7192d)!important}
html body .login-stage.login-elektro .login-options a{color:#f39200!important}

/* ===== DARA: kompaktan prikaz (manji font, redovi u jednoj liniji) ===== */
html body main.app-main{font-size:14px}
html body main.app-main>header.app-header h1,html body .mmc-title-row h1{font-size:22px!important;letter-spacing:-.2px}
html body main.app-main h2{font-size:18px}
/* Zaglavlje pri skrolanju: oštra linija umjesto mekane sjene (sjena je mutila red ispod) */
html body.mmc-scrolled main.app-main>header.app-header{box-shadow:none!important;border-bottom:1px solid #d5deea!important}
html body main.app-main>header.app-header{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Tabele: manji font, manje razmake, bez prelamanja u drugi red */
html body main.app-main table{font-size:13px!important}
html body main.app-main table th{font-size:12px!important;padding:7px 10px!important;white-space:nowrap}
html body main.app-main table td{padding:6px 10px!important;white-space:nowrap;line-height:1.35}
html body main.app-main table td .badge,html body main.app-main table td .status{font-size:11px!important;padding:2px 8px!important}
html body main.app-main table td a{white-space:nowrap}
/* Duži opisi i napomene smiju se prelomiti */
html body main.app-main table td.wrap,html body main.app-main table td.note,html body main.app-main table td .muted,html body main.app-main table td textarea{white-space:normal}
html body main.app-main .table-wrap,html body main.app-main .tablewrap{overflow-x:auto}

/* ===== DARA: kalkulacija — kompaktan, poslovni prikaz ===== */
html body .purchase-head{padding:14px 18px!important}
html body .purchase-head h2{font-size:19px!important;margin:0!important}
html body .purchase-head .muted{font-size:13px;margin:2px 0 0}
html body .purchase-head .doc-actions .btn,html body .purchase-head .doc-actions button{padding:7px 13px!important;font-size:13px!important;min-height:0!important;border-radius:8px!important}
html body .purchase-invoice-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
html body .purchase-invoice-summary .invoice-kpi{padding:8px 12px!important;border-radius:9px!important}
html body .purchase-invoice-summary .invoice-kpi span{font-size:10.5px!important;margin-bottom:3px!important}
html body .purchase-invoice-summary .invoice-kpi b{font-size:16px!important}
html body .purchase-invoice-summary .invoice-kpi small{font-size:11px}
html body .calc-readiness{margin:8px 0 10px!important;padding:7px 12px!important;font-size:13px;border-radius:9px!important}
html body .mmc-entry-actions .btn,html body .mmc-entry-actions a{padding:7px 13px!important;font-size:13px!important;min-height:0!important}
@media (max-width:1100px){html body .purchase-invoice-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Forma za dodavanje stavke: skrivena dok se ne klikne "+ Dodaj stavku" ili "Uredi" */
html body #item-form.purchase-item-entry{display:none}
html body #item-form.purchase-item-entry:target{display:block}
html body #item-form.purchase-item-entry{padding:14px 18px!important}
html body #item-form h2{font-size:16px!important}

/* Tabela stavki */
html body .ecalc{padding:14px 18px!important}
html body .ecalc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:8px}
html body .ecalc-head h2{font-size:16px!important;margin:0}
html body .ecalc-head p{margin:3px 0 0;font-size:12.5px}
html body .ecalc-count{display:inline-block;min-width:22px;padding:1px 7px;border-radius:10px;background:#fbeced;color:#b0101f;font-size:12px;text-align:center;vertical-align:2px}
html body .ecalc-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
html body .ecalc-tools .btn{padding:5px 10px!important;font-size:12.5px!important;min-height:0!important;border-radius:7px!important}
html body .ecalc-bulk{display:flex;gap:4px;align-items:center;font-size:12.5px;color:#475467;margin:0}
html body .ecalc-bulk input{box-sizing:border-box!important;width:64px!important;padding:2px 6px!important;font-size:12.5px!important;min-height:0!important;height:27px!important;margin:0!important}
html body .ecalc-wrap{border:1px solid #dbe4ee;border-radius:10px;overflow:auto}
html body main.app-main table.ecalc-table{width:100%;border-collapse:collapse;font-size:12.5px!important;margin:0}
html body main.app-main table.ecalc-table th{background:#f3f6fb;color:#475467;font-size:10.5px!important;text-transform:uppercase;letter-spacing:.2px;font-weight:700;padding:6px 7px!important;border-bottom:1px solid #dbe4ee;white-space:nowrap;position:sticky;top:0;z-index:1}
html body main.app-main table.ecalc-table td{padding:3px 7px!important;border-bottom:1px solid #eef2f7;white-space:nowrap;vertical-align:middle;line-height:1.3}
html body main.app-main table.ecalc-table tbody tr:hover td{background:#f8fafd}
html body main.app-main table.ecalc-table .r{text-align:right;font-variant-numeric:tabular-nums}
html body main.app-main table.ecalc-table .c{text-align:center}
html body main.app-main table.ecalc-table td.sku{color:#b0101f;font-weight:600;font-size:12px}
html body main.app-main table.ecalc-table td.name{max-width:300px;overflow:hidden;text-overflow:ellipsis}
html body main.app-main table.ecalc-table th.ecalc-edit-col,html body main.app-main table.ecalc-table td.ecalc-edit-col{background:#fffbea}
html body main.app-main table.ecalc-table thead th.ecalc-edit-col{background:#fff3c4;color:#6b4e00}
html body main.app-main table.ecalc-table .ecalc-in{box-sizing:border-box!important;width:78px!important;text-align:right;padding:2px 6px!important;height:25px!important;min-height:0!important;margin:0!important;box-shadow:none!important;font-size:12.5px!important;border:1px solid #d5deea;border-radius:6px;background:#fff;font-variant-numeric:tabular-nums}
html body main.app-main table.ecalc-table .ecalc-in:focus{border-color:#d7192d;outline:2px solid rgba(215,25,45,.18)}
html body main.app-main table.ecalc-table .ecalc-mpc{font-weight:700}
html body main.app-main table.ecalc-table tr.ecalc-changed td.ecalc-edit-col{background:#e8f6ec}
html body main.app-main table.ecalc-table tr.ecalc-neg td[data-ecalc-mamt]{color:#f39200;font-weight:700}
html body main.app-main table.ecalc-table td.act{text-align:right;padding-right:6px!important}
html body main.app-main table.ecalc-table .ecalc-act{display:inline-block;border:0;background:none;color:#d7192d;font-size:12px;cursor:pointer;padding:2px 5px;text-decoration:none}
html body main.app-main table.ecalc-table .ecalc-act.del{color:#b42318;font-size:15px;line-height:1}
html body main.app-main table.ecalc-table tfoot td{background:#f3f6fb;border-top:1px solid #dbe4ee;padding:6px 8px!important;font-size:12.5px}
html body main.app-main table.ecalc-table tr.ecalc-diff td{background:#fff8ec;color:#694817;font-size:12px}
html body .ecalc-save{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:10px}
html body .ecalc-save .btn{padding:8px 18px!important;font-size:13.5px!important;min-height:0!important}

/* ===== DARA: ispis kalkulacije (Pregled / ispis, PDF) — čista tabela umjesto grid rasporeda ===== */
html body .calc-calc .calc-table{display:table!important;table-layout:fixed!important;width:100%!important;border-collapse:collapse!important;font-size:6.7pt!important}
html body .calc-calc .calc-table thead{display:table-header-group!important}
html body .calc-calc .calc-table tbody{display:table-row-group!important}
html body .calc-calc .calc-table tr{display:table-row!important;grid-template-columns:none!important}
html body .calc-calc .calc-table th,html body .calc-calc .calc-table td{display:table-cell!important;grid-column:auto!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important}
/* zaglavlja: ista veličina, isti stil, poravnata na dno */
html body .calc-calc .calc-table th{font-size:6.1pt!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;color:#344054!important;line-height:1.15!important;vertical-align:bottom!important;padding:1.4mm .9mm 1.2mm!important;border-bottom:.35mm solid #1f2a37!important;border-top:0!important;background:#f3f6fb!important;white-space:normal!important}
html body .calc-calc .calc-table td{font-size:6.7pt!important;line-height:1.2!important;vertical-align:top!important;padding:1.1mm .9mm!important;border-bottom:.15mm solid #d0d7e2!important;white-space:nowrap!important}
html body .calc-calc .calc-table th .calc-cell,html body .calc-calc .calc-table td .calc-cell{display:block!important;padding:0!important;white-space:inherit!important}
/* poravnanje: tekst lijevo, brojevi desno */
html body .calc-calc .calc-table th,html body .calc-calc .calc-table td,html body .calc-calc .calc-table th .calc-cell,html body .calc-calc .calc-table td .calc-cell{text-align:right!important;justify-content:flex-end!important;font-variant-numeric:tabular-nums}
html body .calc-calc .calc-table th:nth-child(-n+3),html body .calc-calc .calc-table td:nth-child(-n+3),html body .calc-calc .calc-table th:nth-child(-n+3) .calc-cell,html body .calc-calc .calc-table td:nth-child(-n+3) .calc-cell{text-align:left!important;justify-content:flex-start!important}
html body .calc-calc .calc-table th:nth-child(1),html body .calc-calc .calc-table td:nth-child(1),html body .calc-calc .calc-table th:nth-child(1) .calc-cell,html body .calc-calc .calc-table td:nth-child(1) .calc-cell,
html body .calc-calc .calc-table th:nth-child(4),html body .calc-calc .calc-table td:nth-child(4),html body .calc-calc .calc-table th:nth-child(4) .calc-cell,html body .calc-calc .calc-table td:nth-child(4) .calc-cell{text-align:center!important;justify-content:center!important}
/* naziv artikla se prelama u svojoj koloni i ne prelazi u JMJ */
html body .calc-calc .calc-table td:nth-child(3),html body .calc-calc .calc-table td.name{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
/* širine kolona (18 kolona = 100 %) */
html body .calc-calc .calc-table col:nth-child(1),html body .calc-calc .calc-table th:nth-child(1){width:2.6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(2),html body .calc-calc .calc-table th:nth-child(2){width:5%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(3),html body .calc-calc .calc-table th:nth-child(3){width:20.4%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(4),html body .calc-calc .calc-table th:nth-child(4){width:3%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(5),html body .calc-calc .calc-table th:nth-child(5){width:4.4%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(6),html body .calc-calc .calc-table th:nth-child(6){width:5.8%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(7),html body .calc-calc .calc-table th:nth-child(7){width:5.6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(8),html body .calc-calc .calc-table th:nth-child(8){width:3.8%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(9),html body .calc-calc .calc-table th:nth-child(9){width:5.2%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(10),html body .calc-calc .calc-table th:nth-child(10){width:4.2%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(11),html body .calc-calc .calc-table th:nth-child(11){width:6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(12),html body .calc-calc .calc-table th:nth-child(12){width:3.8%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(13),html body .calc-calc .calc-table th:nth-child(13){width:5.2%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(14),html body .calc-calc .calc-table th:nth-child(14){width:5.6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(15),html body .calc-calc .calc-table th:nth-child(15){width:5%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(16),html body .calc-calc .calc-table th:nth-child(16){width:6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(17),html body .calc-calc .calc-table th:nth-child(17){width:5.6%!important;min-width:0!important;max-width:none!important}
html body .calc-calc .calc-table col:nth-child(18),html body .calc-calc .calc-table th:nth-child(18){width:2.8%!important;min-width:0!important;max-width:none!important}
/* red ukupno */
html body .calc-calc .calc-table tr.total td{font-weight:700!important;border-top:.35mm solid #1f2a37!important;border-bottom:0!important;padding-top:1.4mm!important;background:#f8fafc!important}
html body .calc-calc .calc-table tr.total td:first-child{text-align:left!important}
html body .calc-calc .calc-table td .calc-vin{white-space:normal!important;font-size:5.8pt;color:#475467}
/* tabela stavki na ekranu: mirnija zaglavlja */
html body main.app-main table.ecalc-table th{text-transform:none!important;font-size:11.5px!important;letter-spacing:0!important;font-weight:600!important;color:#344054!important;vertical-align:bottom}
html body .calc-calc .calc-table tr.total td:not(:first-child),html body .calc-calc .calc-table tr.total td:not(:first-child) .calc-cell{text-align:right!important;justify-content:flex-end!important}
html body .calc-calc .calc-signatures{position:static!important;margin-top:7mm!important;break-inside:avoid!important}
html body .calc-calc .calc-generated{position:static!important;margin-top:1mm!important;text-align:right;break-before:avoid!important}
html body .calc-calc .calc-table td:nth-child(17){font-weight:700!important}
html body .calc-calc .calc-table tr.total td:nth-child(17){font-weight:400!important}

/* ===== DARA: tabela stavki staje u prozor (v2) ===== */
html body main.app-main .ecalc-wrap{overflow-x:auto}
html body main.app-main table.ecalc-table{table-layout:auto!important;width:100%!important;font-size:12px!important}
html body main.app-main table.ecalc-table th{font-size:11px!important;padding:5px 5px!important;line-height:1.15!important}
html body main.app-main table.ecalc-table td{font-size:12px!important;padding:2px 5px!important;line-height:1.25!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
html body main.app-main table.ecalc-table td.sku{font-size:11px!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;width:1%}
html body main.app-main table.ecalc-table td.name{white-space:normal!important;min-width:180px;max-width:none!important;overflow:visible!important;text-overflow:clip!important}
html body main.app-main table.ecalc-table .ecalc-in{width:58px!important;height:23px!important;font-size:12px!important;padding:1px 4px!important}
html body main.app-main table.ecalc-table .ecalc-mpc{width:70px!important}
html body main.app-main table.ecalc-table td.c,html body main.app-main table.ecalc-table td.r{width:1%}
html body main.app-main table.ecalc-table td.act{width:1%;padding-left:2px!important}
html body main.app-main table.ecalc-table .ecalc-act{padding:1px 3px!important;font-size:11.5px!important}
html body main.app-main .ecalc-head h2{font-size:15px!important}
html body main.app-main .ecalc-tools .btn{padding:4px 9px!important;font-size:12px!important}
html body main.app-main .ecalc-bulk input{width:56px!important;height:25px!important}

/* polja marže/MPC bez strelica gore-dolje */
html body main.app-main table.ecalc-table .ecalc-in{-moz-appearance:textfield!important;appearance:textfield!important}
html body main.app-main table.ecalc-table .ecalc-in::-webkit-outer-spin-button,html body main.app-main table.ecalc-table .ecalc-in::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
html body main.app-main table.ecalc-table .ecalc-in::selection{background:#d7192d;color:#fff}

/* ===== Sortiranje tabela klikom na naslov kolone ===== */
html body main.app-main th.ts-th{cursor:pointer;user-select:none;white-space:nowrap}
html body main.app-main th.ts-th:hover{color:#b0101f!important}
html body main.app-main th.ts-th::after{content:"↕";display:inline-block;margin-left:5px;font-size:.85em;opacity:.28;font-weight:400}
html body main.app-main th.ts-th.ts-asc::after{content:"▲";opacity:.9;color:#b0101f}
html body main.app-main th.ts-th.ts-desc::after{content:"▼";opacity:.9;color:#b0101f}
html body main.app-main th.ts-th:focus-visible{outline:2px solid #d7192d;outline-offset:-2px}
@media print{html body main.app-main th.ts-th::after{display:none}}
/* iznosi uz desni rub (kolone koje table-sort.js prepozna kao iznose) */
html body main.app-main table th.ts-num,html body main.app-main table td.ts-num{text-align:right!important;font-variant-numeric:tabular-nums}
html body main.app-main table th.ts-num{padding-right:14px!important}
html body main.app-main table td.ts-num{padding-right:14px!important}

/* ===== Pregled dokumenata: kompaktno, bez vodoravnog skrolanja ===== */
html body main.app-main table.documents-table{width:100%!important;table-layout:auto!important;font-size:12.5px!important}
html body main.app-main table.documents-table th{font-size:11px!important;padding:6px 7px!important}
html body main.app-main table.documents-table td{padding:4px 7px!important;vertical-align:middle!important;white-space:nowrap!important}
html body main.app-main table.documents-table td.doc-partner{white-space:normal!important;min-width:160px;max-width:380px;line-height:1.25}
html body main.app-main table.documents-table .status-pill{font-size:10.5px!important;padding:2px 8px!important;line-height:1.4!important}
html body main.app-main table.documents-table td.num{text-align:right!important}
html body main.app-main table.documents-table .doc-row-actions{white-space:nowrap!important;width:1%;text-align:right!important}
html body main.app-main table.documents-table .doc-mini-btn{display:inline-block!important;padding:3px 9px!important;font-size:11.5px!important;min-height:0!important;line-height:1.5!important;border-radius:6px!important;margin-left:4px!important}
html body main.app-main table.documents-table .doc-row-actions-head{text-align:right!important}
/* Povećaj pregled na računaru: list se uveća, a vodoravni klizač se pojavi samo tada */
html body .calc-mobile-viewport.calc-desktop-zoom{overflow:auto!important;max-width:100%!important;padding-bottom:8px}
html body .calc-mobile-viewport.calc-desktop-zoom .calc-mobile-stage{position:relative;margin:0!important;overflow:visible!important}
html body .calc-mobile-viewport.calc-desktop-zoom .calc-calc{margin:0!important}
@media print{html body .calc-calc{transform:none!important}html body .calc-mobile-stage{width:auto!important;height:auto!important}}

/* ===== Artikli: kompaktna lista bez vodoravnog skrolanja ===== */
html body main.app-main table.products-table{width:100%!important;table-layout:auto!important;font-size:12.5px!important}
html body main.app-main table.products-table th{font-size:11px!important;padding:6px 7px!important;white-space:nowrap}
html body main.app-main table.products-table td{padding:3px 7px!important;vertical-align:middle!important;white-space:nowrap!important}
html body main.app-main table.products-table td.prod-name{white-space:normal!important;min-width:220px;line-height:1.25}
html body main.app-main table.products-table td.prod-name b{font-weight:600}
html body main.app-main table.products-table input[type=checkbox]{width:15px;height:15px;margin:0}
html body main.app-main table.products-table td:last-child{width:1%}
html body main.app-main table.products-table td:last-child>div{gap:4px!important}
html body main.app-main table.products-table .btn.small,html body main.app-main table.products-table button.small{padding:3px 9px!important;font-size:11.5px!important;min-height:0!important;line-height:1.5!important;border-radius:6px!important}
html body main.app-main table.products-table td:nth-last-child(2),html body main.app-main table.products-table td:nth-last-child(3){text-align:right!important}
html body main.app-main table.products-table th:nth-last-child(2),html body main.app-main table.products-table th:nth-last-child(3){text-align:right!important}

/* ===== Kartica artikla: dvije kolone, kompaktno ===== */
html body main.app-main .prod-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:start}
html body main.app-main .prod-col{display:flex;flex-direction:column;gap:14px;min-width:0}
html body main.app-main .prod-col>section,html body main.app-main .prod-col>form{margin:0!important;padding:14px 16px!important;border-radius:12px!important;width:auto!important;max-width:none!important}
html body main.app-main .prod-col h2{font-size:15px!important;margin:0 0 2px!important}
html body main.app-main .prod-col .section-head{margin-bottom:8px!important;gap:8px}
html body main.app-main .prod-col .section-head p.muted,html body main.app-main .prod-col>section>p.muted{font-size:12px!important;margin:2px 0 6px!important}
html body main.app-main .prod-col .section-head .btn{padding:5px 10px!important;font-size:12px!important;min-height:0!important}
html body main.app-main .prod-col label{font-size:12.5px!important;margin-bottom:0!important}
html body main.app-main .prod-col input:not([type=checkbox]):not([type=radio]):not([type=file]),html body main.app-main .prod-col select,html body main.app-main .prod-col textarea{padding:6px 9px!important;font-size:13px!important;min-height:0!important;height:auto!important;border-radius:8px!important}
html body main.app-main .prod-col .formgrid{gap:8px 12px!important}
html body main.app-main .prod-col .entry-mode-switch{padding:6px 10px!important;margin-bottom:6px!important}
html body main.app-main .prod-col .tabbar{margin:6px 0 8px!important}
html body main.app-main .prod-col .tabbar button{padding:5px 12px!important;font-size:12.5px!important;min-height:0!important}
html body main.app-main .prod-col .form-actions{margin-top:8px!important}
html body main.app-main .prod-col .form-actions button,html body main.app-main .prod-col button,html body main.app-main .prod-col .btn{padding:6px 12px!important;font-size:12.5px!important;min-height:0!important;border-radius:8px!important}
html body main.app-main .prod-col table{font-size:12.5px!important}
html body main.app-main .prod-col table th{font-size:10.5px!important;padding:5px 6px!important}
html body main.app-main .prod-col table td{padding:4px 6px!important}
html body main.app-main .prod-col .inlineform{gap:6px!important;flex-wrap:wrap}
html body main.app-main .prod-col .inlineform input,html body main.app-main .prod-col .inlineform select{flex:1 1 110px;min-width:0!important;width:auto!important}
/* slike: manji upload okvir i sličice */
html body main.app-main .prod-col #images [class*=drop],html body main.app-main .prod-col #images .upload-zone,html body main.app-main .prod-col #images label.file-drop{padding:10px!important}
html body main.app-main .prod-col #images img{max-height:150px;object-fit:contain}
/* prazna kretanja: samo naslov u jednom redu */
html body main.app-main .prod-col #movements.prod-empty .tablewrap{display:none}
html body main.app-main .prod-col #movements.prod-empty::after{content:"Još nema skladišnih kretanja.";display:block;font-size:12.5px;color:#667085}
html body main.app-main .product-top-actions{margin:0 0 8px!important}
html body main.app-main .product-top-actions .btn{padding:6px 12px!important;font-size:12.5px!important}
html body main.app-main .prod-col #images .image-upload{display:flex!important;gap:8px!important;align-items:stretch!important;margin:4px 0 8px!important}
html body main.app-main .prod-col #images .dropzone{flex:1;padding:8px 12px!important;min-height:0!important;display:flex!important;flex-direction:column;gap:3px;align-items:flex-start!important;text-align:left!important}
html body main.app-main .prod-col #images .dropzone b{font-size:12.5px!important}
html body main.app-main .prod-col #images .dropzone span{font-size:11.5px!important}
html body main.app-main .prod-col #images .dropzone input[type=file]{font-size:12px!important;padding:3px!important;margin-top:2px}
html body main.app-main .prod-col #images .image-gallery{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;gap:8px!important;margin-top:8px!important}
html body main.app-main .prod-col #images .image-tile{padding:6px!important;border-radius:9px!important}
html body main.app-main .prod-col #images .image-preview img{max-height:130px!important;width:100%!important;object-fit:contain}
html body main.app-main .prod-col #images .image-meta{font-size:11px!important;gap:4px!important;margin:4px 0!important}
html body main.app-main .prod-col #images .image-actions{gap:4px!important}

/* ===== Kartica artikla v2: ujednačena polja, tabovi i razmaci ===== */
html body main.app-main .prod-grid{--pc-h:34px;--pc-fs:13px;font-size:13px}
html body main.app-main .prod-grid .prod-col h2{font-size:15px!important;font-weight:700!important;line-height:1.3!important}
html body main.app-main .prod-grid .prod-col p.muted,html body main.app-main .prod-grid .prod-col small,html body main.app-main .prod-grid .prod-col .pim-drop-hint{font-size:12px!important;line-height:1.4!important;color:#667085!important}
/* polja: ista visina, isti font, ista pozicija ispod labele */
html body main.app-main .prod-grid .prod-col form.formcard .formgrid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px 14px!important;align-items:start!important}
html body main.app-main .prod-grid .prod-col form.formcard .formgrid>label{display:flex!important;flex-direction:column!important;gap:4px!important;font-size:12px!important;font-weight:600!important;color:#344054!important;margin:0!important;padding:0!important}
html body main.app-main .prod-grid .prod-col form.formcard .formgrid>label.span2,html body main.app-main .prod-grid .prod-col form.formcard .formgrid>.span2{grid-column:1 / -1!important}
html body main.app-main .prod-grid .prod-col input:not([type=checkbox]):not([type=radio]):not([type=file]),
html body main.app-main .prod-grid .prod-col select,
html body main.app-main .prod-grid .prod-col .smart-combo-input{box-sizing:border-box!important;height:var(--pc-h)!important;min-height:var(--pc-h)!important;padding:0 10px!important;margin:0!important;font-size:var(--pc-fs)!important;line-height:calc(var(--pc-h) - 2px)!important;border:1px solid #cfd8e3!important;border-radius:8px!important;background-color:#fff!important;box-shadow:none!important;width:100%!important}
html body main.app-main .prod-grid .prod-col .smart-combo{margin:0!important}
html body main.app-main .prod-grid .prod-col .smart-combo:after{font-size:14px!important;right:11px!important}
html body main.app-main .prod-grid .prod-col select{padding-right:28px!important}
html body main.app-main .prod-grid .prod-col textarea{font-size:var(--pc-fs)!important;padding:7px 10px!important;border-radius:8px!important;min-height:70px!important}
html body main.app-main .prod-grid .prod-col input:focus,html body main.app-main .prod-grid .prod-col select:focus,html body main.app-main .prod-grid .prod-col .smart-combo-input:focus{border-color:#d7192d!important;outline:2px solid rgba(215,25,45,.15)!important}
html body main.app-main .prod-grid .prod-col form.formcard .formgrid>label small{font-weight:400!important;font-size:11px!important;margin-top:1px!important}
/* minimalni unos i tabovi: jedan uredan red */
html body main.app-main .prod-grid .prod-col .entry-mode-switch{display:flex!important;align-items:center!important;gap:10px!important;padding:7px 12px!important;margin:0 0 10px!important;border-radius:9px!important}
html body main.app-main .prod-grid .prod-col .entry-mode-switch b{font-size:13px!important}
html body main.app-main .prod-grid .prod-col .entry-mode-switch small,html body main.app-main .prod-grid .prod-col .entry-mode-switch span>span{font-size:11px!important}
html body main.app-main .prod-grid .prod-col .entry-mode-switch input[type=checkbox]{width:18px!important;height:18px!important}
html body main.app-main .prod-grid .prod-col .tabbar{display:flex!important;gap:4px!important;padding:3px!important;margin:0 0 12px!important;background:#eef2f7!important;border-radius:9px!important;border:0!important;width:max-content!important}
html body main.app-main .prod-grid .prod-col .tabbar button{height:28px!important;min-height:0!important;padding:0 16px!important;font-size:12.5px!important;font-weight:600!important;border-radius:7px!important;border:0!important;background:transparent!important;color:#475467!important;box-shadow:none!important}
html body main.app-main .prod-grid .prod-col .tabbar button.active,html body main.app-main .prod-grid .prod-col .tabbar button[aria-selected=true],html body main.app-main .prod-grid .prod-col .tabbar button.on{background:#fff!important;color:#0b1f3a!important;box-shadow:0 1px 3px rgba(16,24,40,.12)!important}
/* dugmad: ista visina */
html body main.app-main .prod-grid .prod-col button,html body main.app-main .prod-grid .prod-col .btn{height:var(--pc-h)!important;min-height:0!important;padding:0 14px!important;font-size:12.5px!important;font-weight:600!important;line-height:var(--pc-h)!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;white-space:nowrap}
html body main.app-main .prod-grid .prod-col .tabbar button{height:28px!important;line-height:28px!important}
html body main.app-main .prod-grid .prod-col .btn.small,html body main.app-main .prod-grid .prod-col button.small{height:28px!important;line-height:28px!important;padding:0 10px!important;font-size:12px!important}
html body main.app-main .prod-grid .prod-col .form-actions{display:flex!important;justify-content:flex-end!important;margin:12px 0 0!important;padding:0!important}
/* tabele u karticama */
html body main.app-main .prod-grid .prod-col table th{font-size:10.5px!important;letter-spacing:.2px;padding:6px 7px!important;color:#667085!important}
html body main.app-main .prod-grid .prod-col table td{font-size:12.5px!important;padding:5px 7px!important}
html body main.app-main .prod-grid .prod-col details summary{font-size:12.5px!important;font-weight:600!important;padding:6px 0!important}
html body main.app-main .prod-grid .prod-col .inlineform{display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:nowrap!important;margin-top:8px!important}
html body main.app-main .prod-grid .prod-col .inlineform>input,html body main.app-main .prod-grid .prod-col .inlineform>select{flex:1 1 0!important;min-width:0!important}
html body main.app-main .prod-grid .prod-col .inlineform .checks{display:flex!important;align-items:center;gap:5px;font-size:12px!important;white-space:nowrap;margin:0!important}
/* slike */
html body main.app-main .prod-grid .prod-col #images .section-head .badge{white-space:nowrap!important;font-size:11px!important;padding:2px 8px!important;height:auto!important}
html body main.app-main .prod-grid .prod-col #images .image-upload{display:flex!important;gap:8px!important;align-items:center!important;margin:6px 0 6px!important}
html body main.app-main .prod-grid .prod-col #images .dropzone{flex:1!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:2px 10px!important;padding:6px 10px!important;min-height:0!important;border-radius:9px!important}
html body main.app-main .prod-grid .prod-col #images .dropzone b{font-size:12.5px!important}
html body main.app-main .prod-grid .prod-col #images .dropzone span{font-size:11.5px!important;color:#667085}
html body main.app-main .prod-grid .prod-col #images .dropzone input[type=file]{flex:1 1 100%!important;font-size:12px!important;height:auto!important;min-height:0!important;padding:3px 6px!important;margin:2px 0 0!important;border-radius:6px!important}
html body main.app-main .prod-grid .prod-col #images .image-upload>button{align-self:stretch!important;height:auto!important;min-height:var(--pc-h)!important}
html body main.app-main .prod-grid .prod-col #images .pim-sg{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:6px 0 8px!important}
html body main.app-main .prod-grid .prod-col #images .pim-drop-hint{margin:0!important;flex:1 1 220px}
html body main.app-main .prod-grid .prod-col #images .image-gallery{grid-template-columns:repeat(auto-fill,minmax(130px,150px))!important}
html body main.app-main .prod-grid .prod-col #images .image-tile{display:flex!important;flex-direction:column!important;gap:4px!important}
html body main.app-main .prod-grid .prod-col #images .image-preview{border-radius:7px!important;overflow:hidden}
html body main.app-main .prod-grid .prod-col #images .image-preview img{max-height:120px!important}
html body main.app-main .prod-grid .prod-col #images .image-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4px!important}
html body main.app-main .prod-grid .prod-col #images .image-meta small{font-size:10.5px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body main.app-main .prod-grid .prod-col #images .status-pill{font-size:10.5px!important;padding:1px 7px!important}

/* ===== Kartica artikla v3: jedna kolona, #prodGrid ima prednost nad starim stilovima ===== */
html body #prodGrid{display:block!important;--pc-h:34px;--pc-fs:13px;font-size:13px!important}
html body #prodGrid .prod-col{display:flex!important;flex-direction:column!important;gap:12px!important}
html body #prodGrid .prod-col>section,html body #prodGrid .prod-col>form{margin:0!important;padding:14px 18px!important;border-radius:12px!important;max-width:none!important;width:auto!important;box-sizing:border-box}
html body #prodGrid h2{font-size:15px!important;font-weight:700!important;line-height:1.3!important;margin:0!important}
html body #prodGrid .section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin:0 0 8px!important}
html body #prodGrid p.muted,html body #prodGrid .pim-drop-hint{font-size:12px!important;line-height:1.4!important;color:#667085!important;margin:2px 0 6px!important}
html body #prodGrid label{font-size:12px!important;font-weight:600!important;color:#344054!important}
html body #prodGrid small{font-size:11px!important;font-weight:400!important;color:#667085!important}
/* polja: ista visina i font */
html body #prodGrid input:not([type=checkbox]):not([type=radio]):not([type=file]),html body #prodGrid select,html body #prodGrid .smart-combo-input{box-sizing:border-box!important;height:var(--pc-h)!important;min-height:var(--pc-h)!important;max-height:var(--pc-h)!important;padding:0 10px!important;margin:0!important;font-family:inherit!important;font-size:var(--pc-fs)!important;font-weight:400!important;line-height:normal!important;color:#101828!important;border:1px solid #cfd8e3!important;border-radius:8px!important;background-color:#fff!important;box-shadow:none!important;width:100%!important}
html body #prodGrid select{padding-right:28px!important}
html body #prodGrid .smart-combo{margin:0!important;width:100%!important}
html body #prodGrid .smart-combo:after{font-size:14px!important;right:11px!important}
html body #prodGrid textarea{font-family:inherit!important;font-size:var(--pc-fs)!important;line-height:1.45!important;padding:7px 10px!important;border:1px solid #cfd8e3!important;border-radius:8px!important;min-height:60px!important;height:60px;width:100%!important;box-sizing:border-box!important;margin:0!important}
html body #prodGrid input:focus,html body #prodGrid select:focus,html body #prodGrid textarea:focus,html body #prodGrid .smart-combo-input:focus{border-color:#d7192d!important;outline:2px solid rgba(215,25,45,.15)!important}
/* forma: 4 kolone na širokom ekranu, labele iznad polja */
html body #prodGrid form.formcard .formgrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 14px!important;align-items:start!important}
html body #prodGrid form.formcard .formgrid>label{display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;padding:0!important;min-width:0}
html body #prodGrid form.formcard .formgrid>label.span2,html body #prodGrid form.formcard .formgrid>.span2{grid-column:span 2!important}
html body #prodGrid form.formcard .formgrid>label:has(textarea){grid-column:1 / -1!important}
html body #prodGrid form.formcard .formgrid>label:has(input[name=name]){grid-column:span 2!important}
html body #prodGrid form.formcard .formgrid>label a,html body #prodGrid form.formcard .formgrid a.small-link{font-size:11.5px!important;font-weight:500!important}
/* kvačice (Neaktivan, praćenje zalihe…) u jednom redu, lijevo */
html body #prodGrid form.formcard .formgrid>label:has(>input[type=checkbox]),html body #prodGrid label.checks{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;align-self:center!important;text-align:left!important}
html body #prodGrid input[type=checkbox]{width:16px!important;height:16px!important;margin:0!important;flex:none}
/* minimalni unos + tabovi u istom redu */
html body #prodGrid .entry-mode-switch{display:flex!important;align-items:center!important;gap:10px!important;padding:6px 12px!important;margin:0 0 10px!important;border-radius:9px!important}
html body #prodGrid .entry-mode-switch b{font-size:13px!important}
html body #prodGrid .tabbar{display:inline-flex!important;gap:3px!important;padding:3px!important;margin:0 0 12px!important;background:#eef2f7!important;border-radius:9px!important;border:0!important;width:auto!important}
html body #prodGrid .tabbar button{height:28px!important;line-height:28px!important;min-height:0!important;padding:0 16px!important;font-size:12.5px!important;font-weight:600!important;border-radius:7px!important;border:0!important;background:transparent!important;color:#475467!important;box-shadow:none!important}
html body #prodGrid .tabbar button.active{background:#fff!important;color:#0b1f3a!important;box-shadow:0 1px 3px rgba(16,24,40,.14)!important}
/* dugmad */
html body #prodGrid button:not(.tabbar button),html body #prodGrid .btn{height:var(--pc-h)!important;line-height:var(--pc-h)!important;min-height:0!important;padding:0 14px!important;font-size:12.5px!important;font-weight:600!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
html body #prodGrid .btn.small,html body #prodGrid button.small{height:28px!important;line-height:28px!important;padding:0 10px!important;font-size:12px!important}
html body #prodGrid .form-actions{display:flex!important;justify-content:flex-end!important;margin:12px 0 0!important;padding:0!important}
/* tabele */
html body #prodGrid table{width:100%!important;font-size:12.5px!important}
html body #prodGrid table th{font-size:10.5px!important;padding:6px 8px!important;color:#667085!important;white-space:nowrap}
html body #prodGrid table td{font-size:12.5px!important;padding:5px 8px!important}
html body #prodGrid details summary{font-size:12.5px!important;font-weight:600!important;padding:6px 0!important;cursor:pointer}
/* red za unos ispod tabele: polja i dugme poravnati */
html body #prodGrid .inlineform{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:nowrap!important;margin-top:8px!important}
html body #prodGrid .inlineform>input,html body #prodGrid .inlineform>select,html body #prodGrid .inlineform>.smart-combo{flex:1 1 0!important;min-width:0!important}
html body #prodGrid .inlineform>button,html body #prodGrid .inlineform>label.checks{flex:none!important;width:auto!important}
html body #prodGrid .supplier-manual-form>select{flex:2 1 0!important}html body #prodGrid .supplier-manual-form>input[name=lead_time_days]{flex:0 0 110px!important}
/* slike */
html body #prodGrid #images .badge{white-space:nowrap!important;font-size:11px!important;padding:2px 8px!important;height:auto!important;line-height:1.6!important}
html body #prodGrid #images .image-upload{display:flex!important;gap:8px!important;align-items:stretch!important;margin:4px 0 6px!important}
html body #prodGrid #images .dropzone{flex:1!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;padding:6px 10px!important;min-height:0!important;border-radius:9px!important}
html body #prodGrid #images .dropzone b{font-size:12.5px!important;white-space:nowrap}
html body #prodGrid #images .dropzone span{font-size:11.5px!important;color:#667085;white-space:nowrap}
html body #prodGrid #images .dropzone input[type=file]{flex:1!important;font-size:12px!important;height:auto!important;min-height:0!important;padding:3px 6px!important;margin:0!important;border-radius:6px!important}
html body #prodGrid #images .image-upload>button{height:auto!important;line-height:1!important}
html body #prodGrid #images .pim-sg{display:flex!important;align-items:center!important;gap:12px!important;margin:6px 0 8px!important}
html body #prodGrid #images .pim-drop-hint{margin:0!important}
html body #prodGrid #images .image-gallery{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:6px!important}
html body #prodGrid #images .image-tile{width:150px!important;padding:6px!important;border-radius:9px!important;display:flex!important;flex-direction:column!important;gap:4px!important}
html body #prodGrid #images .image-preview img{max-height:110px!important;width:100%!important;object-fit:contain}
html body #prodGrid #images .image-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;margin:0!important}
html body #prodGrid #images .image-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #prodGrid #images .status-pill{font-size:10.5px!important;padding:1px 7px!important}
html body #prodGrid #movements.prod-empty .tablewrap{display:none!important}
html body #prodGrid #movements.prod-empty::after{content:"Još nema skladišnih kretanja.";display:block;font-size:12px;color:#667085}
@media (max-width:1100px){html body #prodGrid form.formcard .formgrid{grid-template-columns:1fr 1fr!important}}

/* ===== Kompaktne forme za unos (svi dokumenti i šifrarnici) ===== */
html body main.app-main{--fx-h:34px;--fx-fs:13px}
html body main.app-main>section,html body main.app-main>.formcard,html body main.app-main section.output-new{padding:16px 20px!important;border-radius:12px!important}
html body main.app-main>section>h2,html body main.app-main>section .section-head h2,html body main.app-main .formcard>h2{font-size:17px!important;margin:0 0 2px!important;line-height:1.3!important}
html body main.app-main>section .section-head{margin-bottom:10px!important}
html body main.app-main>section .section-head p.muted,html body main.app-main>section>p.muted{font-size:12.5px!important;margin:2px 0 0!important}
/* mreža polja: više kolona, manji razmaci */
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid):not(.moto-reg-grid){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:10px 14px!important;align-items:start!important}
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>label{display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;padding:0!important;font-size:12px!important;font-weight:600!important;color:#344054!important;min-width:0}
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>label:has(select[name=customer_id],select[name=supplier_id],select[name=partner_id],input[name=name],input[name=address]),
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>.span2,html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>label.span2{grid-column:span 2!important}
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>label:has(textarea){grid-column:span 2!important}
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>.span-all{grid-column:1 / -1!important}
/* polja iste visine */
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,.smart-combo-input){box-sizing:border-box!important;height:var(--fx-h)!important;min-height:var(--fx-h)!important;padding:0 10px!important;margin:0!important;font-family:inherit!important;font-size:var(--fx-fs)!important;font-weight:400!important;line-height:normal!important;border-radius:8px!important;width:100%!important}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) select{padding-right:28px!important}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) input[type=date]{font-family:inherit!important;letter-spacing:0!important}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) textarea{box-sizing:border-box!important;font-family:inherit!important;font-size:var(--fx-fs)!important;line-height:1.45!important;padding:7px 10px!important;min-height:var(--fx-h)!important;height:var(--fx-h);border-radius:8px!important;margin:0!important;width:100%!important;resize:vertical}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) textarea:focus{height:72px}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) label:has(>input[type=checkbox]){flex-direction:row!important;align-items:center!important;gap:7px!important;align-self:center!important}
/* dugme za spremanje: normalne veličine, u svom redu, desno */
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>button{grid-column:auto / -1!important;justify-self:end!important;align-self:end!important;width:auto!important}
html body main.app-main :is(form.formgrid,.formcard .formgrid,section .formgrid)>.form-actions{grid-column:1 / -1!important;justify-self:end!important;width:auto!important}
html body main.app-main :is(form.formgrid,.formcard,section .formgrid) button:not(.tabbar button):not(.smart-combo-option):not(.ecalc-act),html body main.app-main .formcard .btn{height:var(--fx-h)!important;min-height:0!important;padding:0 18px!important;font-size:13px!important;font-weight:600!important;border-radius:8px!important;line-height:1!important}
html body main.app-main .formcard .form-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:12px 0 0!important}

/* Uvoz računa dobavljača na novoj kalkulaciji */
html body main.app-main section.einv-import{margin-bottom:12px;border-left:3px solid #b0101f}
html body main.app-main section.einv-import .section-head h2{font-size:15px;margin:0}
html body main.app-main section.einv-import .section-head p{font-size:12px;margin:2px 0 0}
html body main.app-main section.einv-import form.einv-form{grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(200px,1.4fr) auto!important;align-items:end}
html body main.app-main section.einv-import form.einv-form label.einv-file{grid-column:auto!important}
html body main.app-main section.einv-import input[type=file]{height:34px;padding:5px 6px;font-size:12px;background:#f6f8fc;border:1px dashed #c7a1a5}
html body main.app-main section.einv-import .einv-warn{font-size:12px;color:#8a5a00;background:#fff7e0;border:1px solid #f0d58a;padding:6px 8px;border-radius:6px;margin:6px 0}
html body main.app-main section.einv-import details.einv-help{margin-top:6px;font-size:12px}
html body main.app-main section.einv-import details.einv-help summary{cursor:pointer;color:#b0101f}
@media (max-width:900px){html body main.app-main section.einv-import form.einv-form{grid-template-columns:1fr 1fr!important}}
html body main.app-main section.einv-import form.einv-form>button{grid-column:auto!important;justify-self:stretch!important;height:34px;margin:0!important;white-space:nowrap}
html body main.app-main section.einv-import .section-head .badge{white-space:nowrap;align-self:flex-start}
html body main.app-main #uvoz-racuna form.einv-form{display:flex!important;flex-wrap:wrap;gap:10px;align-items:flex-end}
html body main.app-main #uvoz-racuna form.einv-form>label{flex:1 1 200px;min-width:160px;margin:0}
html body main.app-main #uvoz-racuna form.einv-form>label.einv-file{flex:2 1 260px}
html body main.app-main #uvoz-racuna form.einv-form>button{flex:0 0 auto;padding:0 18px}

/* Korisnici: forma i prava pristupa */
html body main.app-main section.user-editor{max-width:none}
html body main.app-main form.user-form{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:10px 14px!important;align-items:end}
html body main.app-main form.user-form>label.span2,html body main.app-main form.user-form>.span2{grid-column:1/-1!important}
html body main.app-main form.user-form small.muted{font-weight:400;font-size:11px}
html body main.app-main .user-permissions{grid-column:1/-1!important;padding:12px 14px;border-radius:10px;background:#f7f9fc;margin:4px 0}
html body main.app-main .user-permissions .permission-head{align-items:center;margin-bottom:10px}
html body main.app-main .user-permissions .permission-head h3{font-size:14px;margin:0}
html body main.app-main .user-permissions .permission-head p{font-size:12px;margin:2px 0 0;max-width:640px}
html body main.app-main .user-permissions .permission-head [data-role-preset]{white-space:nowrap;height:32px;padding:0 12px;font-size:12px}
html body main.app-main .permission-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;align-items:start}
html body main.app-main .permission-group{position:relative;margin:0!important;padding:30px 10px 8px!important;border:1px solid #dbe3ee!important;border-radius:8px!important;background:#fff;min-width:0;border-top:3px solid #b0101f!important}
html body main.app-main .permission-group.perm-none{border-top-color:#c9d2df!important}
html body main.app-main .permission-group legend{position:absolute;top:7px;left:10px;padding:0!important;font-size:12.5px;font-weight:700;color:#0b2a5b;text-transform:none}
html body main.app-main .perm-group-tools{position:absolute;top:5px;right:8px;display:flex;align-items:center;gap:6px}
html body main.app-main .perm-count{font-size:11px;color:#5b6b82;font-variant-numeric:tabular-nums}
html body main.app-main button.perm-toggle{all:unset;cursor:pointer;font-size:11px;font-weight:600;color:#b0101f;padding:2px 7px;border:1px solid #ead0d3;border-radius:5px;background:#fcf4f4}
html body main.app-main button.perm-toggle:hover{background:#e3eafa}
html body main.app-main .permission-group .permission-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 10px!important}
html body main.app-main .permission-group .permission-check{min-height:26px!important;font-size:12.5px!important;font-weight:500!important;line-height:1.2;gap:7px!important;padding:2px 0;cursor:pointer}
html body main.app-main .permission-group .permission-check input{width:15px!important;height:15px!important;min-width:15px!important;margin:0!important;accent-color:#b0101f}
html body main.app-main .permission-group .permission-check:has(input:not(:checked)) span{color:#6b778a}
html body main.app-main .user-permissions .permission-note{margin-top:10px;padding:7px 10px;font-size:11.5px}
html body main.app-main form.user-form label.checks{display:flex!important;align-items:center;gap:8px;flex-direction:row}
html body main.app-main form.user-form .form-actions{display:flex;gap:8px;justify-content:flex-end}
@media(max-width:700px){html body main.app-main .permission-group .permission-grid{grid-template-columns:1fr!important}}
html body main.app-main :is(#new-user,#edit-user) form.user-form{max-width:none!important;width:auto!important}
html body main.app-main :is(#new-user,#edit-user) form.user-form>.user-permissions,html body main.app-main :is(#new-user,#edit-user) form.user-form>label.span2,html body main.app-main :is(#new-user,#edit-user) form.user-form>.span2{grid-column:1/-1!important}
html body main.app-main :is(#new-user,#edit-user) form.user-form>label:has(input[name=name]){grid-column:span 1!important}
html body main.app-main :is(#new-user,#edit-user) .permission-group button.perm-toggle{all:unset;cursor:pointer;font-size:11px;font-weight:600;color:#b0101f;padding:1px 8px;border:1px solid #ead0d3;border-radius:5px;background:#fcf4f4;line-height:18px;min-height:0;height:auto}
html body main.app-main :is(#new-user,#edit-user) form.user-form textarea{height:34px;min-height:34px}
html body main.app-main :is(#new-user,#edit-user) form.user-form>.password-hint{grid-column:span 2!important;font-size:12px;padding:6px 10px}
html body main.app-main :is(#new-user,#edit-user) form.user-form>label.checks{grid-column:span 1!important}
html body main.app-main :is(#new-user,#edit-user) form.user-form>.form-actions{grid-column:auto/-1!important;align-self:center}
html body main.app-main :is(#new-user,#edit-user)>h2{margin-bottom:2px}
html body main.app-main :is(#new-user,#edit-user)>p.muted{margin:0 0 10px;font-size:12px}
@media(min-width:1200px){html body main.app-main :is(#new-user,#edit-user) form.user-form{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
html body main.app-main :is(#new-user,#edit-user) .permission-groups{display:block!important;columns:4 290px;column-gap:10px}
html body main.app-main :is(#new-user,#edit-user) .permission-group{break-inside:avoid;margin:0 0 10px!important;display:block;width:100%;box-sizing:border-box;padding:34px 10px 8px!important}
html body main.app-main :is(#new-user,#edit-user) .permission-group .perm-group-tools{top:6px}
html body main.app-main :is(#new-user,#edit-user) .permission-group button.perm-toggle,html body main.app-main :is(#new-user,#edit-user) .permission-group button.perm-toggle:hover{font-size:11px!important;padding:0 8px!important;height:20px!important;min-height:20px!important;line-height:18px!important;box-shadow:none!important;width:auto!important;min-width:0!important;color:#b0101f!important}

html body main.app-main label[hidden]{display:none!important}
html body main.app-main section.sale-note-edit{padding:12px 16px}
html body main.app-main .sale-note-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
html body main.app-main .sale-note-head h2{font-size:15px;margin:0}
html body main.app-main .sale-note-head .muted{font-size:12px}
html body main.app-main section.sale-note-edit textarea{width:100%;min-height:64px;height:auto;font-size:13px;line-height:1.4;resize:vertical}
html body main.app-main .sale-note-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}

/* Ispis kalkulacije: sigurne margine (pisači ne printaju zadnjih ~5 mm ruba) */
@media print{
  @page{size:A4 landscape;margin:10mm 10mm 9mm!important}
  html body .calc-calc,html body .calc-calc-v543,html body .calc-calc-v544,html body .calc-calc-v5645,html body .calc-calc-v576,html body .calc-calc-v5688-dense{
    width:277mm!important;max-width:277mm!important;min-height:188mm!important;margin:0 auto!important;padding:0!important;box-sizing:border-box!important;overflow:visible!important}
  html body .calc-calc .calc-table{width:100%!important;table-layout:fixed!important}
  html body .calc-calc .calc-generated{padding-right:1mm!important;text-align:right!important}
  html body .calc-calc .calc-company{padding-left:.5mm!important}
}

/* Fiskalizacija — prikaz trgovca */
html body main.app-main section.fiscal-op-device .fiscal-op-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:6px 0 10px}
html body main.app-main section.fiscal-op-device .fiscal-op-form>label{margin:0;min-width:260px}
html body main.app-main section.fiscal-op-device .fiscal-op-form>label.checks{min-width:0;display:flex;align-items:center;gap:8px;height:34px}
html body main.app-main .fiscal-op-bridge .badge{font-size:13px;padding:6px 10px}
html body main.app-main .fiscal-op-bridge .badge.ok{background:#e9f8ef;color:#146c3a}
html body main.app-main .fiscal-op-bridge .badge.warn{background:#fff4e0;color:#8a4b00}
html body main.app-main .fiscal-op-install{margin-top:12px;padding:12px 14px;border:1px dashed #c7a1a5;border-radius:8px;background:#f7f9fc}
html body main.app-main .fiscal-op-install h3{margin:0 0 6px;font-size:14px}
html body main.app-main .fiscal-op-install ol{margin:0 0 6px 18px;padding:0;font-size:13px;line-height:1.9}
html body main.app-main .fiscal-op-install .btn{padding:3px 10px;font-size:12px}

/* ===== Kartica artikla v4: kompaktnije (17.11.) ===== */
html body main.app-main .product-top-actions{display:none!important} /* isto što i "Pregled / kartica" u gornjoj traci */
html body main.app-main nav.mmc-entry-actions{margin:0 0 10px!important;gap:6px!important}
html body main.app-main nav.mmc-entry-actions .btn{height:32px!important;line-height:32px!important;padding:0 12px!important;font-size:12.5px!important;min-height:0!important}
html body #prodGrid .prod-col{gap:10px!important}
html body #prodGrid .prod-col>section,html body #prodGrid .prod-col>form{padding:12px 16px!important}
/* Minimalni unos + tabovi u istom redu */
html body #prodGrid label.entry-mode-switch{display:inline-flex!important;vertical-align:middle!important;width:auto!important;padding:0 10px!important;height:34px!important;margin:0 10px 10px 0!important;background:#fcf4f4!important;border:1px solid #dbe3ee!important;border-radius:9px!important;gap:7px!important}
html body #prodGrid label.entry-mode-switch small{display:none!important}
html body #prodGrid label.entry-mode-switch b{font-size:12.5px!important;font-weight:600!important;white-space:nowrap}
html body #prodGrid .tabbar{vertical-align:middle!important;margin:0 0 10px!important}
/* polja */
html body #prodGrid form.formcard .formgrid{gap:8px 12px!important}
html body #prodGrid form.formcard .formgrid>label{gap:3px!important}
html body #prodGrid form.formcard .formgrid>label small,html body #prodGrid form.formcard .formgrid>small{font-size:10.5px!important;line-height:1.25!important;margin:0!important}
html body #prodGrid form.formcard .formgrid>label:has(textarea){grid-column:span 2!important}
html body #prodGrid form.formcard .formgrid textarea{min-height:34px!important;height:34px!important;resize:vertical;transition:height .15s}
html body #prodGrid form.formcard .formgrid textarea:focus{height:90px!important}
html body #prodGrid form.formcard .formgrid>label:has(>input[type=checkbox]){align-self:end!important;height:34px!important}
html body #prodGrid .form-actions{margin:8px 0 0!important}

/* Padajuće liste (smart-combo): stavke poravnate lijevo */
html body .smart-combo-panel,html body .smart-combo-panel *{text-align:left!important}
html body .smart-combo-panel .smart-combo-option,html body .smart-combo-option{display:flex!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;padding:7px 12px!important;font-size:13px!important;font-weight:500!important;min-height:0!important;line-height:1.3!important}
html body select,html body select option{text-align:left!important;text-align-last:left!important}

/* Padajuće liste v2: lijevo poravnanje jače od #prodGrid/button pravila (:is s #id podiže specifičnost) */
html body .smart-combo-panel button:is(#_x,.smart-combo-option),
html body main.app-main .smart-combo-panel button:is(#_x,.smart-combo-option){display:block!important;width:100%!important;height:auto!important;min-height:0!important;line-height:1.3!important;text-align:left!important;justify-content:flex-start!important;padding:7px 12px!important;margin:0!important;font-size:13px!important;font-weight:500!important;color:#1d2939!important;background:#fff!important;border:0!important;border-radius:6px!important;box-shadow:none!important;white-space:normal!important;text-transform:none!important;letter-spacing:0!important}
html body .smart-combo-panel button:is(#_x,.smart-combo-option):hover,
html body .smart-combo-panel button:is(#_x,.smart-combo-option).active,
html body .smart-combo-panel button:is(#_x,.smart-combo-option)[aria-selected=true]{background:#eef3fc!important;color:#b0101f!important}
html body .smart-combo-panel{padding:4px!important;border-radius:9px!important}

/* Ljepša strelica: tanki chevron (SVG) za smart-combo i obične selecte */
html body .smart-combo:is(#_x,.smart-combo):after{content:""!important;width:12px!important;height:12px!important;right:11px!important;font-size:0!important;
  background:no-repeat center/12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;transition:transform .15s}
html body .smart-combo:is(#_x,.smart-combo):has(.smart-combo-panel.open):after{transform:translateY(-50%) rotate(180deg)!important}
html body main.app-main select:is(#_x,select):not([multiple]):not([size]){-webkit-appearance:none!important;appearance:none!important;padding-right:30px!important;
  background:#fff no-repeat right 10px center/12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}

/* Listanje kalkulacija */
html body main.app-main .doc-actions .pnav{display:inline-flex;align-items:center;gap:4px;margin-right:8px;padding-right:10px;border-right:1px solid #dbe3ee}
html body main.app-main .doc-actions .pnav .pnav-btn{width:34px!important;min-width:34px!important;padding:0!important;justify-content:center;font-size:20px!important;line-height:30px!important;font-weight:600!important}
html body main.app-main .doc-actions .pnav .pnav-btn.disabled{opacity:.35;pointer-events:none}
html body main.app-main .doc-actions .pnav-pos{font-size:12px;color:#667085;min-width:46px;text-align:center;font-variant-numeric:tabular-nums}
html body main.app-main .ecalc-table td.sku a{color:#b0101f;text-decoration:none;font-weight:600}
html body main.app-main .ecalc-table td.sku a:hover{text-decoration:underline}

/* ===== Artikli — kartice (inspiracija: Proxy.ba) ===== */
html body main.app-main .pcards-switch{display:inline-flex;gap:6px;align-items:center}
html body main.app-main .pcards-switch .btn{height:32px!important;line-height:32px!important;padding:0 12px!important;font-size:12.5px!important;min-height:0!important}
html body main.app-main .pcards-switch .btn.active{background:#fbecec!important;color:#b0101f!important;border:1px solid #ead0d3!important;pointer-events:none}
html body main.app-main .pcards-switch-top{display:flex;justify-content:flex-end;margin:0 0 8px}
html body main.app-main section.pcards-head{padding:14px 18px 0!important;margin-bottom:10px}
html body main.app-main .pcards-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
html body main.app-main .pcards-title h2{margin:0;font-size:18px}
html body main.app-main .pcards-title p{margin:2px 0 0;font-size:12.5px}
html body main.app-main .pcards-tabs{display:flex;gap:22px;border-bottom:1px solid #e4e9f0;margin:12px 0 0}
html body main.app-main .pcards-tabs a{padding:8px 2px;font-size:13.5px;font-weight:600;color:#475467;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
html body main.app-main .pcards-tabs a.active{color:#0b1f3a;border-bottom-color:#b0101f}
html body main.app-main form.pcards-search{display:flex!important;gap:10px;align-items:center;padding:12px 0 14px;flex-wrap:wrap}
html body main.app-main form.pcards-search .pcards-q{flex:1 1 360px;position:relative;margin:0}
html body main.app-main form.pcards-search .pcards-q span{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#98a2b3;font-size:17px;pointer-events:none}
html body main.app-main form.pcards-search .pcards-q input{width:100%;height:38px!important;padding-left:34px!important;border-radius:8px!important}
html body main.app-main form.pcards-search select{flex:0 0 240px;height:38px!important;width:auto!important}
html body main.app-main form.pcards-search .btn{height:38px!important;line-height:38px!important;padding:0 20px!important;background:#2f5d7c!important;color:#fff!important;border:0!important}
html body main.app-main form.pcards-search .pcards-clear{font-size:12.5px;color:#667085}
html body main.app-main section.pcards-list{display:flex;flex-direction:column;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body main.app-main article.pcard{display:grid;grid-template-columns:96px minmax(0,1fr) 230px;gap:16px;align-items:start;background:#fff;border:1px solid #e4e9f0;border-radius:10px;padding:12px 16px;transition:box-shadow .15s,border-color .15s}
html body main.app-main article.pcard:hover{border-color:#ead0d3;box-shadow:0 2px 10px rgba(16,24,40,.06)}
html body main.app-main .pcard-img{width:96px;height:96px;border:1px solid #e4e9f0;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}
html body main.app-main .pcard-img img{max-width:100%;max-height:100%;object-fit:contain}
html body main.app-main .pcard-noimg{font-size:30px;font-weight:700;color:#ead0d3}
html body main.app-main .pcard-body{min-width:0;display:flex;flex-direction:column;gap:4px}
html body main.app-main a.pcard-name{font-size:15px;font-weight:700;color:#d7192d;text-decoration:none;line-height:1.3}
html body main.app-main a.pcard-name:hover{text-decoration:underline}
html body main.app-main .pcard-path{font-size:12.5px;color:#667085}
html body main.app-main .pcard-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#344054}
html body main.app-main .pcard-meta .pill{font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px}
html body main.app-main .pcard-meta .pill.ok{background:#e9f8ef;color:#146c3a}
html body main.app-main .pcard-meta .pill.no{background:#fdecec;color:#b42318}
html body main.app-main .pcard-meta .pill.info{background:#fdeeee;color:#d7192d}
html body main.app-main .pcard-links{display:flex;gap:16px;margin-top:2px}
html body main.app-main .pcard-links a{font-size:12.5px;font-weight:600;color:#d7192d;text-decoration:none}
html body main.app-main .pcard-links a:hover{text-decoration:underline}
html body main.app-main .pcard-price{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border-left:1px solid #eef2f6;padding-left:16px;min-height:96px}
html body main.app-main .pcard-price b{font-size:19px;color:#0b1f3a;font-variant-numeric:tabular-nums}
html body main.app-main .pcard-price small{font-size:11.5px;color:#667085}
html body main.app-main .pcard-price .pcard-draft{color:#b54708}
html body main.app-main .pcard-price .pcard-nc{margin-top:auto;color:#475467}
html body main.app-main .pcards-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:14px 0;font-size:13px;color:#475467}
html body main.app-main .pcards-empty{padding:30px;text-align:center;background:#fff;border-radius:10px}
@media(max-width:800px){html body main.app-main article.pcard{grid-template-columns:72px minmax(0,1fr)}html body main.app-main .pcard-img{width:72px;height:72px}html body main.app-main .pcard-price{grid-column:1/-1;border-left:0;padding-left:0;min-height:0;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:baseline}}

/* ===== Kartica artikla (kretanja) ===== */
html body main.app-main .pc-head{align-items:center!important;margin:0 0 10px!important}
html body main.app-main .pc-head h2{display:none}
html body main.app-main .pc-head p.muted{margin:0;font-size:14px;color:#344054}
html body main.app-main .pc-head p.muted b{color:#0b1f3a}
html body main.app-main section.pc-filter-card{max-width:none!important;padding:12px 16px!important;margin:0 0 12px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter){display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:10px 14px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label:not(.pc-chk){flex:0 0 170px;margin:0;display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label:has(select){flex:0 0 210px}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter) input:not([type=checkbox]),html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter) select{height:34px!important;min-height:0!important;font-size:13px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label.pc-chk{flex:none!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;height:34px;padding:0 10px;margin:0!important;border:1px solid #dbe3ee;border-radius:8px;background:#f7f9fc;font-size:12.5px;font-weight:500;white-space:nowrap;cursor:pointer;grid-column:auto!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label.pc-chk:has(input:checked){background:#fbecec;border-color:#b9c9ea;color:#b0101f}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label.pc-chk input{width:15px!important;height:15px!important;margin:0!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>div{display:flex;gap:6px;margin-left:auto}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>div button{height:34px!important;line-height:34px!important;padding:0 16px!important;min-height:0!important;font-size:13px!important}
/* list kartice — samo ekran; ispis ostaje originalni A4 */
@media screen{
html body main.app-main article.product-card-print{max-width:none!important;width:auto!important;margin:0!important;padding:18px 22px!important;background:#fff;border:1px solid #e4e9f0;border-radius:12px;box-shadow:none!important}
html body main.app-main article.product-card-print h1{font-size:18px!important;margin:10px 0!important;letter-spacing:.3px}
html body main.app-main article.product-card-print .pc-company{font-size:12px;display:flex;flex-direction:column;gap:1px;border-top:0!important;padding-top:0!important}
html body main.app-main article.product-card-print .pc-meta{display:grid!important;grid-template-columns:1fr 1.4fr;gap:6px 30px;font-size:12.5px;margin:0 0 8px}
html body main.app-main article.product-card-print .pc-meta>div{display:flex!important;flex-direction:column;gap:3px}
html body main.app-main article.product-card-print .pc-opening{font-size:12px;margin:6px 0 8px;color:#475467}
html body main.app-main table.pc-table{width:100%!important;table-layout:fixed;border-collapse:collapse;font-size:12px}
html body main.app-main table.pc-table th{font-size:10.5px!important;font-weight:700;letter-spacing:.3px;color:#475467;text-transform:uppercase;padding:6px 8px!important;white-space:normal!important;line-height:1.2;vertical-align:bottom;border-bottom:1px solid #d0d5dd;background:#f7f9fc;text-align:center}
html body main.app-main table.pc-table thead tr:first-child th[rowspan]{text-align:left}
html body main.app-main table.pc-table thead tr:first-child th:nth-child(1){width:9%}
html body main.app-main table.pc-table thead tr:first-child th:nth-child(2){width:15%}
html body main.app-main table.pc-table thead tr:first-child th:nth-child(3){width:15%}
html body main.app-main table.pc-table td{padding:5px 8px!important;border-bottom:1px solid #eef2f6;overflow:hidden;text-overflow:ellipsis}
html body main.app-main table.pc-table td.num,html body main.app-main table.pc-table th.num{text-align:right;font-variant-numeric:tabular-nums}
html body main.app-main table.pc-table tfoot th{background:#f7f9fc;border-top:1px solid #d0d5dd;font-size:11.5px!important;text-align:right}
html body main.app-main table.pc-table tfoot th:first-child{text-align:left}
html body main.app-main table.pc-table tbody tr:hover td{background:#fafbfd}
}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label:not(.pc-chk){flex:0 0 150px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label:has(select){flex:0 0 180px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label.pc-chk{padding:0 10px!important;gap:6px!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>div{flex:none!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>label.pc-chk,html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter)>div{align-self:flex-end!important}
html body main.app-main section.pc-filter-card form:is(#_x,.pc-filter){gap:10px!important}

/* Ispis kartice artikla: uvijek prava tablica (bez mobilnih "kartica"), A4 položeno */
@media print{
  html body table:is(#_x,.pc-table){display:table!important;width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:9.5pt!important;border:0!important;box-shadow:none!important;background:none!important}
  html body table:is(#_x,.pc-table)>thead{display:table-header-group!important}
  html body table:is(#_x,.pc-table)>tbody{display:table-row-group!important}
  html body table:is(#_x,.pc-table)>tfoot{display:table-footer-group!important}
  html body table:is(#_x,.pc-table) tr{display:table-row!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;margin:0!important;padding:0!important;position:static!important}
  html body table:is(#_x,.pc-table) th,html body table:is(#_x,.pc-table) td{display:table-cell!important;position:static!important;width:auto;padding:4px 5px!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:9pt!important;line-height:1.25!important;vertical-align:middle!important;white-space:normal!important;text-transform:none}
  html body table:is(#_x,.pc-table) td::before,html body table:is(#_x,.pc-table) th::before{content:none!important;display:none!important}
  html body table:is(#_x,.pc-table) thead th{font-weight:700!important;font-size:8pt!important;text-transform:uppercase!important;text-align:center!important}
  html body table:is(#_x,.pc-table) thead tr:first-child th{border-top:1.4px solid #222!important}
  html body table:is(#_x,.pc-table) thead tr:last-child th,html body table:is(#_x,.pc-table) thead th[rowspan]{border-bottom:1px solid #555!important}
  html body table:is(#_x,.pc-table) thead th[rowspan]{text-align:left!important}
  html body table:is(#_x,.pc-table) thead tr:first-child th:nth-child(1){width:10%}
  html body table:is(#_x,.pc-table) thead tr:first-child th:nth-child(2){width:15%}
  html body table:is(#_x,.pc-table) thead tr:first-child th:nth-child(3){width:15%}
  html body table:is(#_x,.pc-table) tbody td{border-bottom:.5px solid #ddd!important}
  html body table:is(#_x,.pc-table) .num{text-align:right!important;white-space:nowrap!important}
  html body table:is(#_x,.pc-table) tfoot th{border-top:1.4px solid #222!important;text-align:right!important;font-size:9pt!important}
  html body table:is(#_x,.pc-table) tfoot th:first-child{text-align:left!important}
  html body article.product-card-print{width:100%!important;max-width:none!important;padding:0!important;border:0!important}
}

/* Status NACRT: plava oznaka (umjesto žute) */
html body .badge:is(#_x,.draft){background:#e8effd!important;color:#d7192d!important;border:1px solid #b9cdf3!important;box-shadow:none!important}

/* ===== Kalkulacija na jednom ekranu (19.11.) ===== */
/* šifra artikla uvijek u jednom redu */
html body main.app-main table.ecalc-table td.sku{min-width:68px!important;width:68px!important}
html body main.app-main table.ecalc-table td.sku a{display:inline!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
/* KPI kartice zaglavlja: niže */
html body main.app-main .invoice-kpis{gap:8px!important;margin-top:8px!important}
html body main.app-main .invoice-kpi{padding:7px 12px!important;min-height:0!important;border-radius:9px!important}
html body main.app-main .invoice-kpi span{font-size:10.5px!important}
html body main.app-main .invoice-kpi b{font-size:15px!important;margin-top:1px!important}
html body main.app-main .invoice-kpi small{font-size:10.5px!important;margin-top:1px!important}
/* poruka "spremna za knjiženje" */
html body main.app-main section.invoice-reconciliation,html body main.app-main .invoice-ok,html body main.app-main .purchase-ready{padding:6px 12px!important;margin:8px 0!important;font-size:12.5px!important}
/* uvoz računa u jednom redu */
html body main.app-main section.scan-import-card{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap;padding:10px 16px!important;margin:10px 0!important}
html body main.app-main section.scan-import-card>.section-head{flex:1 1 360px;margin:0!important;padding:0!important}
html body main.app-main section.scan-import-card>.section-head h2{font-size:14px!important;margin:0!important}
html body main.app-main section.scan-import-card>.section-head p{font-size:12px!important;margin:1px 0 0!important}
html body main.app-main section.scan-import-card>.section-head .badge{display:none}
html body main.app-main section.scan-import-card form{display:flex!important;align-items:center!important;gap:8px!important;flex:0 1 auto;margin:0!important;flex-wrap:wrap}
html body main.app-main section.scan-import-card label.scan-file-picker{display:flex!important;align-items:center;margin:0!important;padding:0!important;border:0!important;background:none!important;min-height:0!important}
html body main.app-main section.scan-import-card label.scan-file-picker>span{display:none!important}
html body main.app-main section.scan-import-card input[type=file]{width:300px!important;height:34px!important;padding:4px 6px!important;font-size:12px!important;border:1px dashed #c7a1a5!important;border-radius:8px!important;background:#f7f9fc!important;margin:0!important}
html body main.app-main section.scan-import-card form button,html body main.app-main section.scan-import-card form .btn{height:34px!important;min-height:0!important;padding:0 14px!important;font-size:12.5px!important;margin:0!important}
html body main.app-main section.scan-import-card>p,html body main.app-main section.scan-import-card>.muted{flex-basis:100%;font-size:11.5px!important;margin:0!important}
/* stavke */
html body main.app-main section.ecalc,html body .ecalc{padding:10px 16px!important;margin-top:10px!important}
html body main.app-main .ecalc-foot,html body main.app-main .ecalc-save{margin-top:8px!important}

/* ===== Brzi unos partnera ===== */
html body main.app-main a.qp-link{display:inline-block;margin-top:3px;font-size:11.5px;font-weight:600;color:#d7192d;text-decoration:none;align-self:flex-start}
html body main.app-main a.qp-link:hover{text-decoration:underline}
html body main.app-main label.qp-flash .smart-combo-input,html body main.app-main label.qp-flash select{box-shadow:0 0 0 3px rgba(22,163,74,.35)!important;transition:box-shadow .3s}
html body .smart-combo-panel button.smart-combo-add{display:block!important;width:100%!important;text-align:left!important;margin-top:4px!important;padding:8px 12px!important;border:0!important;border-top:1px solid #eef2f6!important;border-radius:0 0 6px 6px!important;background:#f7f9fc!important;color:#d7192d!important;font-weight:700!important;font-size:13px!important;cursor:pointer;height:auto!important;min-height:0!important;box-shadow:none!important}
html body .smart-combo-panel button.smart-combo-add:hover{background:#fdeeee!important}
.qp-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.45);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px}
.qp-backdrop[hidden]{display:none!important}
.qp-card{width:min(620px,100%);background:#fff;border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.3);padding:16px 18px;font-size:13px}
.qp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.qp-head h3{margin:0;font-size:16px;color:#0b1f3a}
.qp-card button.qp-x{all:unset;cursor:pointer;font-size:22px;line-height:1;color:#667085;padding:2px 8px;border-radius:6px}
.qp-card button.qp-x:hover{background:#f2f4f7}
.qp-type,.qp-roles{display:flex;gap:16px;margin:4px 0 10px}
.qp-type label,.qp-roles label{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;font-weight:600;font-size:13px;cursor:pointer}
.qp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.qp-grid label{display:flex!important;flex-direction:column;gap:3px;font-size:12px;font-weight:600;color:#344054;margin:0}
.qp-grid label.qp-wide{grid-column:1/-1}
.qp-grid input{height:34px!important;min-height:0!important;padding:5px 9px!important;font-size:13px!important;font-weight:400!important;border:1px solid #d0d5dd;border-radius:8px;width:100%;box-sizing:border-box}
.qp-grid input:focus{outline:0;border-color:#d7192d;box-shadow:0 0 0 3px rgba(215,25,45,.15)}
.qp-card.qp-person .qp-co{display:none!important}
.qp-err{margin:6px 0 0;padding:7px 10px;border-radius:8px;background:#fdecec;color:#b42318;font-size:12.5px}
.qp-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.qp-actions .btn{height:34px!important;line-height:34px!important;padding:0 16px!important;min-height:0!important;font-size:13px!important}
@media(max-width:560px){.qp-grid{grid-template-columns:1fr}}
.qp-type label,.qp-roles label{white-space:nowrap}

/* ===== DARA: grafitni bočni izbornik (autoservis) ===== */
html body .app-sidebar{background:linear-gradient(180deg,#1b1e22 0%,#2a2e34 100%)!important}
