/* Product states and genuine previews, layered on the approved i-industry design. */
[data-screen-id="checkout.decision"]{min-width:0;overflow-wrap:anywhere}
[data-screen-id="checkout.decision"] dl{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:8px 16px;margin:0}
[data-screen-id="checkout.decision"] dd{margin:0;min-width:0}
[data-screen-id="checkout.decision"] code{font-size:12px;overflow-wrap:anywhere}
[data-screen-id="checkout.decision"] .table-wrap{max-width:100%;overflow-x:auto}
[data-screen-id="checkout.decision"] table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0;text-align:left}
[data-screen-id="checkout.decision"] caption{text-align:left;font-weight:600;padding:8px 0;color:var(--muted)}
[data-screen-id="checkout.decision"] th,[data-screen-id="checkout.decision"] td{padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
[data-screen-id="checkout.decision"] td{white-space:nowrap;font-variant-numeric:tabular-nums}
[data-screen-id="checkout.decision"] th[scope="row"]{min-width:130px}
@media(max-width:480px){[data-screen-id="checkout.decision"] dl{grid-template-columns:minmax(0,1fr)}
 [data-screen-id="checkout.decision"] dd{margin-bottom:8px}
 [data-screen-id="checkout.decision"] .btn{white-space:normal;width:100%}
}
.product-thumbnail{width:64px;height:64px;display:grid;place-items:center;background:#f2f5f9;border:1px solid #e2e8f0;border-radius:7px;color:#7890a7;flex-shrink:0;overflow:hidden}
.product-thumbnail img{width:100%;height:100%;object-fit:contain}
.product-thumbnail.large{width:100%;height:250px}
.admin-compact-preview .product-thumbnail{width:52px;height:52px}

.product-detail-meta{margin-bottom:var(--space-3)}
.product-queue-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}
.product-queue-row:last-child{border-bottom:0}
.product-queue-row h3{margin:3px 0 7px}
.product-provider{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3);padding:var(--space-2) 0;border-bottom:1px solid var(--line-soft)}
.product-lots{padding-bottom:var(--space-4);border-bottom:1px solid var(--line);margin-bottom:var(--space-4)}
.product-lots:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.product-lots>form{margin-top:var(--space-2)}
.product-upload-receipt{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 0}
.product-upload-receipt span{margin-left:auto}

.product-error{margin-bottom:20px}
.product-loading{display:flex;gap:12px;align-items:center;min-height:160px;justify-content:center;color:var(--muted)}
.form-error[hidden]{display:none}
.product-refresh-banner{padding:10px 15px;margin-bottom:20px;background:#fdf7e9;border:1px solid #f2e3b6;border-radius:8px}
.customer-upload-zone{width:100%;text-align:left}
.customer-upload-zone .muted{display:block;font-size:12px;margin-top:5px}
.portal-sidebar[aria-hidden=true]{pointer-events:none}

.stl-viewer{width:100%;color:var(--ink)}
.viewer-heading,.viewer-footer{display:flex;justify-content:space-between;gap:15px;align-items:center}
.viewer-stage{height:360px;position:relative;margin:15px 0;background:#f2f6fa;border-radius:10px;overflow:hidden}
.viewer-stage canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.viewer-stage canvas[hidden]{display:none}
.viewer-stage canvas:active{cursor:grabbing}
.viewer-status{padding:16px;color:var(--muted)}
.stl-viewer[data-state=ready] .viewer-status{position:absolute;bottom:0;left:0;margin:0;padding:5px 12px;font-size:var(--text-xs);pointer-events:none}
.viewer-controls{display:flex;flex-wrap:wrap;gap:6px}
.viewer-controls button{border:1px solid var(--line);background:#fff;color:#3d5572;border-radius:6px;padding:7px 10px;min-height:36px}
.viewer-controls button[aria-pressed=true]{background:var(--accent-soft);border-color:#b5cff3}
.viewer-tools{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}
.viewer-hint,.viewer-footer{font-size:var(--text-xs);color:var(--muted);margin-top:16px}
.viewer-material{font-size:var(--text-xs);color:var(--muted)}

@media(max-width:699px){.product-queue-row{align-items:start;flex-wrap:wrap;gap:12px}



 .product-thumbnail{width:48px;height:48px}
 .admin-compact-preview .product-thumbnail{width:48px;height:48px}




 .viewer-stage{height:250px}
 .viewer-tools{margin-left:0}
 .viewer-footer{flex-wrap:wrap}
 .viewer-controls button{min-height:44px}
}
.product-list-pager{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4);flex-wrap:wrap;padding:var(--space-2) var(--space-4);border-top:1px solid var(--line);font-size:var(--text-xs);color:var(--muted)}
.product-list-pager .btn{min-height:var(--control-height-sm);padding:4px 10px;font-size:var(--text-xs)}
.product-draft-explanation{margin:0;font-size:var(--text-sm);color:var(--muted)}
.product-manual-line{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.product-manual-line+.product-manual-line{margin-top:14px}
.product-manual-library{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.product-manual-library>.field{flex:1;min-width:180px}
.product-identity-label{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-bottom:5px;letter-spacing:.02em}
.data-table td.product-document-identity{min-width:190px;padding-right:28px}
.data-table td.product-order-identity{min-width:170px;border-left:1px solid var(--line);padding-left:24px}
.product-document-identity>strong,.product-order-identity>.text-link{display:block;line-height:1.5;overflow-wrap:anywhere}
/* W1 planning stays compact inside the existing case summary. */
.workflow-panel{margin-top:20px;min-width:0}
/* D4: panel Prvé odoslanie pod súhrnom prípadu má rovnaký odstup ako KROS a plán úkonov (pri 375 px sa dotýkal Posledných udalostí). */
[data-screen-id="first-dispatch.panel"]{margin-top:20px}
.workflow-panel .panel-head{flex-wrap:wrap;gap:10px}
.workflow-panel .panel-body{min-width:0}
.workflow-panel p,.workflow-panel summary,.workflow-panel li{overflow-wrap:anywhere}
.workflow-panel fieldset{display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0}
.workflow-panel fieldset .field,.workflow-panel fieldset p{margin:0}
.workflow-panel fieldset>.btn{justify-self:start}
.workflow-panel fieldset:disabled{opacity:.65}
.workflow-panel .btn{white-space:normal;text-align:left}
.workflow-item,.workflow-history{min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff}
.workflow-item>summary,.workflow-history>summary{padding:13px 16px;cursor:pointer;line-height:1.6}
.workflow-item[open]>summary,.workflow-history[open]>summary{border-bottom:1px solid var(--line)}
.workflow-item>.stack,.workflow-history>ol,.workflow-history>p,.workflow-history>.cluster{margin:14px 16px}
.workflow-item>.stack{gap:12px}
.workflow-item>.stack>p{margin:0}
.workflow-item .grid-2{align-items:start;gap:20px}
.workflow-history li{margin-bottom:14px;padding-left:3px}
.workflow-history li>p{margin:5px 0 0}
@media(max-width:699px){.workflow-panel .panel-head>.btn,.workflow-panel fieldset>.btn{width:100%}
 .workflow-item .grid-2{grid-template-columns:minmax(0,1fr)}
 .workflow-item>summary,.workflow-history>summary{padding:12px}
 .workflow-item>.stack,.workflow-history>p,.workflow-history>.cluster{margin:12px}
}
.upload-format-hint{font-size:12px;line-height:1.6;margin:8px 0 16px;overflow-wrap:anywhere}
/* Statistics use existing portal tokens and never change order/model surfaces. */
.statistics{display:grid;gap:var(--space-4);min-width:0;color:var(--ink)}
.statistics-panel,.statistics-message{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--space-4);min-width:0}
.statistics :is(button,input,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.statistics-period{margin:0;font-size:var(--text-sm);line-height:1.5;overflow-wrap:anywhere}
.statistics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3);margin:0}
.statistics-metric{min-width:0}
.statistics-metrics>.statistics-metric{padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.statistics-metric dt{font-size:var(--text-xs);color:var(--muted);font-weight:600}
.statistics-metric dd{margin:4px 0 0;font-size:var(--text-2xl);font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.statistics-metric dd small{display:block;margin-top:4px;font-size:var(--text-xs);line-height:1.45;font-weight:400;color:var(--muted)}
.statistics-value-note,.statistics-unknown{margin:0;line-height:1.55;font-size:var(--text-sm)}
.statistics-unknown{border-left:3px solid var(--accent);padding:var(--space-2) var(--space-3);background:var(--accent-soft);border-radius:0 var(--radius-control) var(--radius-control) 0}
.statistics-panel h2{margin:0 0 4px;font-size:var(--text-lg)}
.statistics-panel p{margin:0 0 var(--space-2);font-size:var(--text-sm);line-height:1.55}
.statistics-panel>p:last-child{margin-bottom:0}
.statistics-chart{display:block;width:100%;height:140px;color:var(--accent);margin-top:var(--space-2)}
.statistics-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);align-items:start}
.statistics-side{display:grid;gap:var(--space-4);align-content:start;min-width:0}
/* W12-ST3 and ST4: the production section (STAT-S02, web/statistics-production.js) under the other statistics. */
.statistics-production-overview{display:grid;gap:var(--space-4);min-width:0}
.statistics-production-overview>h2{margin:0;font-size:var(--text-lg)}
.statistics-production-overview>p{margin:0;font-size:var(--text-sm);line-height:1.55}
.statistics-panel h3{margin:0 0 4px;font-size:var(--text-md)}
details.statistics-panel{padding-block:var(--space-2)}
.statistics-panel[aria-labelledby="statistics-production"]{container-type:inline-size}
.statistics-production{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin:var(--space-3) 0 0}
.statistics-production>.statistics-metric{padding:var(--space-2) var(--space-3);border:1px solid var(--line-soft);border-radius:var(--radius-control);background:var(--surface-2)}
.statistics table{width:100%;border-collapse:collapse;text-align:left;font-size:var(--text-sm)}
.statistics caption{text-align:left;font-size:var(--text-xs);color:var(--muted);padding:0 0 var(--space-2)}
.statistics :is(th,td){padding:6px 8px;border-bottom:1px solid var(--line-soft);font-variant-numeric:tabular-nums}
.statistics thead th{font-size:var(--text-xs);color:var(--muted);background:var(--surface-2);border-bottom-color:var(--line)}
.statistics thead th:not(:first-child){text-align:right}
.statistics tbody th{font-weight:500}
.statistics td{text-align:right}
.statistics .table-scroll{overflow-x:auto;max-width:100%}
.statistics summary{display:flex;align-items:center;min-height:32px;cursor:pointer;font-size:var(--text-sm);font-weight:600;line-height:1.5}
.statistics details[open]>summary{margin-bottom:var(--space-2)}
.statistics-definitions{margin:0}
.statistics-definitions dt{font-size:var(--text-sm);font-weight:600;margin-top:var(--space-3)}
.statistics-definitions dd{margin:2px 0 0;font-size:var(--text-sm);line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
@container (min-width:500px){.statistics-production{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1100px){.statistics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:899px){.statistics-columns{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:699px){.statistics-panel,.statistics-message{padding:var(--space-3) 14px}
 .statistics summary{min-height:44px}
}
@media(max-width:339px){.statistics-metrics{grid-template-columns:minmax(0,1fr)}
}
/* Customer/auth language preference; no application or admin layout changes. */
.customer-locale-switch{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;margin:0;color:var(--muted);font-size:var(--text-xs);line-height:1.4}
.customer-locale-switch select{min-height:var(--control-height-sm);max-width:132px;border:1px solid var(--line);border-radius:var(--radius-control);padding:4px 25px 4px 9px;background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-sm);cursor:pointer}
/* Customer dialogs: the language select is a compact right-aligned row above the form. */
.customer-locale-modal{display:flex;justify-content:flex-end;margin:0 0 var(--space-2)}
@media(max-width:699px){.topbar-tools .customer-locale-switch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .topbar-tools .customer-locale-switch select{max-width:124px}
}
/* Customer viewer action: a quiet blue outline at the shared control height (44px under 700px). */
.btn.product-viewer-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:100%;min-height:var(--control-height);padding:6px 12px;border:1px solid #b8cde7;border-radius:var(--radius-control);background:#f7faff;color:#174b86;font-size:var(--text-sm);font-weight:600;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.btn.product-viewer-button:hover{background:#edf4ff;border-color:#82a9dc;color:#123e72}
.btn.product-viewer-button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(forced-colors:active){.btn.product-viewer-button:focus-visible{outline-color:Highlight}}
.btn.product-viewer-button:disabled,.btn.product-viewer-button[aria-disabled="true"]{opacity:1;background:#f1f3f6;border-color:#d4dce5;color:#64758a;cursor:not-allowed}
.btn.product-viewer-button .product-viewer-icon,.btn.product-viewer-button>svg{display:inline-grid;place-items:center;flex:0 0 auto;width:auto;height:auto;padding:0;background:none;color:var(--accent)}
.btn.product-viewer-button .product-viewer-icon>svg{display:block;width:var(--icon-sm);height:var(--icon-sm)}
.btn.product-viewer-button:is(:disabled,[aria-disabled="true"]) .product-viewer-icon,.btn.product-viewer-button:is(:disabled,[aria-disabled="true"])>svg{color:#64758a}
/* Issued NET/tax/GROSS figures stay distinct without changing price semantics. */
.product-price-summary{display:grid;gap:0;min-width:0;margin:0;padding:12px 15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);font-variant-numeric:tabular-nums}
.product-price-row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;min-width:0;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.product-price-row:last-child{border-bottom:0}
.product-price-row :is(dt,dd,span,strong){margin:0;min-width:0;line-height:1.5;overflow-wrap:anywhere}
.product-price-row :is(dt,span){flex:1 1 120px;color:var(--muted);font-size:var(--text-sm)}
.product-price-row :is(dd,strong){margin-left:auto;text-align:right;color:var(--ink);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.product-price-components{min-width:0;padding-block:4px}
.product-price-components .product-price-row{padding:5px 0;border:0}
.product-price-components .product-price-row :is(dt,dd,span,strong){font-size:var(--text-xs)}
.product-price-total{margin-top:3px;padding-top:12px;border-top:1px solid var(--line);border-bottom:0}
.product-price-total :is(dt,span){color:var(--ink);font-size:var(--text-sm);font-weight:700}
.product-price-total :is(dd,strong){color:var(--ink);font-size:16px;font-weight:700;letter-spacing:-.01em}
.product-price-primary{margin:8px 0;padding:10px 12px;border:0;border-radius:var(--radius-control);background:var(--accent);color:var(--surface)}
.product-price-primary :is(dt,span){color:var(--surface);font-size:var(--text-sm);font-weight:600}
.product-price-primary :is(dd,strong){color:var(--surface);font-size:var(--text-3xl);font-weight:700;letter-spacing:-.4px}
/* R7: dlaždica akcentu iba pri úplnej cene; bez nej (indicative, unknown) neutrálna plocha ako súčet kalkulačky. */
.product-price-summary:not([data-price-state="known"]) .product-price-primary{background:var(--surface-2)}
.product-price-summary:not([data-price-state="known"]) .product-price-primary :is(dt,span){color:var(--ink)}
.product-price-summary:not([data-price-state="known"]) .product-price-primary :is(dd,strong){color:var(--ink);font-size:var(--text-lg);letter-spacing:0}
.product-price-note{margin:8px 0 0;color:var(--muted);font-size:var(--text-xs);line-height:1.5;overflow-wrap:anywhere}
@media(max-width:640px){
 .product-price-summary{padding:10px 12px}
 .product-price-row{gap:4px 10px}
 .product-price-total:not(.product-price-primary) :is(dd,strong){font-size:15px}
}
/* Compact list prices retain both tax bases; model rows may wrap below quantity. */
.product-price-compact{display:grid;gap:3px;min-width:0;max-width:100%;font-variant-numeric:tabular-nums;line-height:1.5}
.product-price-compact strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.product-price-compact :is(small,span){font-size:12px;color:var(--muted);white-space:normal;overflow-wrap:anywhere}

@media(max-width:699px){.aw-visual .btn{white-space:normal;overflow-wrap:anywhere}
}
/* The case header already shows the order ID; the page h1 stays for assistive technology.
   Only the back action stays visible: a tight row with a 44px touch target on phones. */
.workspace:has(.aw-visual)>.page-heading{justify-content:flex-start;gap:0;margin-bottom:var(--space-2)}
.workspace:has(.aw-visual)>.page-heading>div:first-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.workspace:has(.aw-visual)>.page-heading>.page-actions>.btn{min-height:28px;padding:2px 0;font-size:var(--text-sm)}
@media(max-width:699px){.workspace:has(.aw-visual)>.page-heading>.page-actions>.btn{min-height:44px;margin-block:-8px}
}
[data-visual-section]{scroll-margin-top:160px}
/* Targets of the header shortcuts and the strip CTAs land below the sticky case header (up to ~210px tall at 1200px). */
.aw-visual details[data-admin-detail="status"],.aw-visual form[data-submit="message"],.aw-visual [data-screen-id="operations.production-detail"] :is(form[data-submit="status-start"],form[data-submit="production-add"],[data-action="lot-modal"]){scroll-margin-top:calc(var(--topbar-height) + var(--space-2) + 216px)}
[data-visual-section]:focus-visible{outline:3px solid #93b4ff;outline-offset:4px}
@media(max-width:1000px){[data-visual-section]{scroll-margin-top:80px}
}
@media(max-width:1199px),(max-height:759px){.aw-visual details[data-admin-detail="status"],.aw-visual form[data-submit="message"],.aw-visual [data-screen-id="operations.production-detail"] :is(form[data-submit="status-start"],form[data-submit="production-add"],[data-action="lot-modal"]){scroll-margin-top:80px}
}

/* Server-provided repair evidence; independent of note, price and model assets. */
.model-repair-notice{margin:.65rem 0;max-width:100%;min-width:0;overflow-wrap:anywhere;font-weight:400}
.model-repair-notice>summary{cursor:pointer;line-height:1.6}
.model-repair-notice>summary:focus-visible{outline:2px solid var(--primary,#2359a8);outline-offset:3px}
.model-repair-notice-badge{display:inline-block;padding:.1rem .45rem;border-radius:.35rem;background:#e9f2ff;color:#194c88;font-size:.78rem;font-weight:600;white-space:normal}
.model-repair-notice p{margin:.5rem 0}
.model-repair-notice dl{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.5rem 0;font-size:.85rem}
.model-repair-notice dl div{display:flex;gap:.35rem}
.model-repair-notice dd{margin:0}
.model-repair-notice-hint{margin-left:.45rem;font-size:.8rem}
/* NF1 v1.1 knižnica modelov: hľadanie, filtre a poradie verzie nad zoznamom customer-library-row. */
.customer-library-controls{padding:var(--space-3) var(--space-4)}
.customer-library-controls>form.stack{gap:var(--space-3)}
.customer-library-fields{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(140px,1fr));gap:var(--space-2) var(--space-4)}
.customer-library-version{margin:2px 0 0;font-size:var(--text-xs);color:var(--muted)}
@media(max-width:900px){.customer-library-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-library-fields>.field:first-child{grid-column:1/-1}}
@media(max-width:560px){.customer-library-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-library-fields>.field:last-child{grid-column:1/-1}.customer-library-controls{padding:var(--space-3)}}
/* Bod E (K9-ORCH-422): the company proposal by IČO spans the whole contact grid (web/company-lookup.js). */
.company-lookup,.company-lookup-row{grid-column:1/-1;min-width:0}
