:root{color-scheme:light;--green:#087c4b;--green-dark:#075c3a;--green-soft:#e7f5ee;--orange:#f56646;--ink:#18231e;--muted:#68736e;--line:#dbe3df;--surface:#fff;--background:#f3f6f4;--yellow:#fff3c4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--background)}body{margin:0;color:var(--ink);background:var(--background);letter-spacing:0}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}
.auth-gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#eef3f0}.auth-panel{width:min(380px,100%);padding:24px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.12)}.auth-panel img{display:block;width:150px;height:52px;margin:0 auto 14px;object-fit:contain}.auth-panel h1{margin:0 0 20px;text-align:center;font-size:20px}.auth-panel label+label{margin-top:14px}.auth-panel button{width:100%;margin-top:18px}.auth-panel p{min-height:18px;margin:10px 0 0;color:#a13b2c;text-align:center;font-size:12px}.auth-panel .auth-info{color:var(--muted);font-size:13px;line-height:1.45}.auth-toggle{min-height:32px!important;margin-top:10px!important}
.app-header{position:sticky;top:0;z-index:20;min-height:76px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:12px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.brand-logo{display:block;width:88px;height:32px;object-fit:contain}.header-title p{margin:0 0 3px;color:var(--green-dark);font-size:10px;font-weight:800}.header-title h1{margin:0;font-size:17px;line-height:1.2}.header-actions{display:grid;justify-items:end;gap:3px}.header-actions span{max-width:110px;color:var(--muted);font-size:9px;text-align:right;overflow-wrap:anywhere}.header-actions button{padding:3px;color:var(--green-dark);background:transparent;border:0;font-size:10px;font-weight:700}
main{width:min(760px,100%);margin:0 auto;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.view{display:none}.view.active{display:block}
.summary-band{display:grid;grid-template-columns:1fr 1fr;color:#fff;background:var(--green-dark)}.summary-band div{min-width:0;padding:15px 16px}.summary-band div+div{border-left:1px solid rgba(255,255,255,.22)}.summary-band span{display:block;margin-bottom:4px;font-size:11px;opacity:.78}.summary-band strong{display:block;font-size:18px;overflow-wrap:anywhere}
.panel{margin:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.section-heading,.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading{margin-bottom:15px}.section-heading h2,.page-heading h2{margin:0;font-size:18px}.live-dot{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:11px;font-weight:750}.live-dot:before{content:"";width:7px;height:7px;background:var(--green);border-radius:50%}
label{display:block;min-width:0}label>span,legend{display:block;margin:0 0 7px;color:#4f5b55;font-size:12px;font-weight:700}input,select,textarea{width:100%;min-height:46px;padding:11px 12px;color:var(--ink);background:#fbfcfb;border:1px solid #cdd7d2;border-radius:6px;outline:none}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(8,124,75,.12)}.field-hint{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.35}.stepper-input{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}.stepper-input input{text-align:center}.stepper-input button{min-height:46px;color:var(--green-dark);background:#fff;border:1px solid #b9c9c1;border-radius:6px;font-size:18px;font-weight:900}.panel>label+label,.panel>label+fieldset,.panel>fieldset+label,.panel>.contact-grid+label{margin-top:14px}.measurement-grid,.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.measurement-grid+label{margin-top:14px}.phone-suggest-wrap{position:relative}.phone-suggestions{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:25;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 28px rgba(14,31,23,.14)}.phone-suggestions button{display:grid;width:100%;gap:3px;padding:10px 12px;color:var(--ink);background:#fff;border:0;border-bottom:1px solid #eef3f0;text-align:left}.phone-suggestions button:last-child{border-bottom:0}.phone-suggestions button:hover,.phone-suggestions button:focus{background:#f3faf6;outline:none}.phone-suggestions strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.phone-suggestions span{color:var(--muted);font-size:11px;line-height:1.25;overflow-wrap:anywhere}
fieldset{margin:14px 0 0;padding:0;border:0}fieldset small{display:block;margin-top:6px;color:var(--muted);font-size:11px}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#edf1ef;border-radius:7px}.segmented label{position:relative}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented span{display:grid;min-height:38px;margin:0;place-items:center;color:#52605a;border-radius:5px;font-size:13px}.segmented input:checked+span{color:var(--green-dark);background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.form-actions button{width:100%}.lookup-status{min-height:17px;margin:6px 0 0;color:var(--muted);font-size:12px}
.result-panel{margin:12px;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:8px}.result-panel>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:12px;align-items:baseline;padding:11px 14px;border-bottom:1px solid #e8eeeb}.result-panel span{color:var(--muted);font-size:12px}.result-panel strong{text-align:right;font-size:14px;overflow-wrap:anywhere}.result-panel .grand-total{padding-top:14px;padding-bottom:14px;background:var(--green-soft);border-bottom:0}.result-panel .grand-total strong{color:var(--green-dark);font-size:19px}#calculatorView .result-panel{margin-bottom:96px}.warning{display:none;margin:0;padding:11px 14px;color:#704d00;background:var(--yellow);font-size:12px}.warning.visible{display:block}
.action-bar{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom));z-index:10;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px;background:rgba(243,246,244,.94);backdrop-filter:blur(12px)}.primary-button,.secondary-button{min-height:46px;padding:9px 10px;border-radius:6px;font-weight:800}.action-bar button{font-size:12px;line-height:1.2}.primary-button{color:#fff;background:var(--green);border:1px solid var(--green)}.secondary-button{color:var(--green-dark);background:#fff;border:1px solid #b9c9c1}.text-button{padding:8px 2px;color:var(--green);background:transparent;border:0;font-weight:750}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(7,1fr);min-height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.97);border-top:1px solid var(--line);backdrop-filter:blur(14px)}.bottom-nav button{display:grid;place-items:center;align-content:center;gap:3px;color:#6c7772;background:transparent;border:0;font-size:8px;font-weight:750}.bottom-nav button.active{color:var(--green)}.bottom-nav span{display:grid;min-height:22px;place-items:center;font-size:10px;line-height:1;font-weight:850}
.page-heading{padding:22px 16px 10px}.page-heading p{margin:0 0 4px;color:var(--muted);font-size:11px}.operation-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:4px 12px 8px;padding:4px;background:#e5ebe8;border-radius:7px}.operation-tabs button{min-height:38px;color:#59655f;background:transparent;border:0;border-radius:5px;font-weight:750}.operation-tabs button.active{color:var(--green-dark);background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.orders-list,.operations-list{padding:2px 12px 20px}.order-card,.operation-card{margin:10px 0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:8px}.order-card header,.operation-card header{display:flex;justify-content:space-between;gap:12px}.order-card h3,.operation-card h3{margin:0;font-size:15px}.order-card time,.operation-card header span{color:var(--muted);font-size:11px}.order-card p,.operation-card p{margin:7px 0 0;color:var(--muted);font-size:12px}.order-card footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid #e8eeeb}.order-card footer strong{color:var(--green-dark)}.status-select{width:auto;max-width:56%;min-height:36px;padding:6px 28px 6px 8px;font-size:12px}.status-pill{padding:4px 7px;border-radius:5px;background:#edf1ef;font-weight:750}.status-completed{color:#087c4b;background:#e7f5ee}.status-failed{color:#9f2f20;background:#fff0ed}.status-printing,.status-claimed{color:#715000;background:#fff3c4}.error-text{color:#9f2f20!important}.empty-state{padding:52px 20px;text-align:center;color:var(--muted)}.order-search{position:sticky;top:86px;z-index:4;padding:8px 0;background:var(--background)}.orders-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:8px}.orders-table{width:100%;min-width:850px;border-collapse:collapse;font-size:12px}.orders-table th,.orders-table td{padding:8px;border-bottom:1px solid #e8eeeb;text-align:left;vertical-align:top}.orders-table th{position:sticky;top:0;z-index:1;color:#4f5b55;background:#f3f6f4;font-weight:800}.orders-table input,.orders-table select{min-height:36px;padding:7px 8px;border-radius:5px;font-size:12px}.orders-table .money-cell{font-weight:850;color:var(--green-dark);white-space:nowrap}.orders-table .row-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:126px}.orders-table .row-actions button{min-height:36px;padding:7px 8px;border-radius:5px;font-size:12px;font-weight:800}.orders-table .save-order{color:#fff;background:var(--green);border:1px solid var(--green)}.orders-table .delete-order{color:#9f2f20;background:#fff7f5;border:1px solid #f3b0a4}
.box-layout{padding-bottom:20px}.box-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:2px 12px 0}.box-style-card{min-width:0;padding:10px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;text-align:left}.box-style-card.active{border-color:var(--green);box-shadow:0 0 0 3px rgba(8,124,75,.12)}.box-style-card .box-svg{height:110px;margin:0 0 8px;background:#f8faf9}.box-style-card strong{display:block;font-size:13px;line-height:1.25}.box-style-card span{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.25}.box-input-panel{margin-top:12px}.box-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.box-preview-grid>div>span{display:block;margin-bottom:7px;color:#4f5b55;font-size:12px;font-weight:700}.box-svg{display:grid;place-items:center;min-height:148px;overflow:hidden;background:#fff;border:1px solid #dbe3df;border-radius:8px}.box-svg svg{width:100%;max-width:180px;height:100%;max-height:160px}.box-svg img{display:block;width:100%;height:100%;object-fit:contain}.box-svg.die{background:#fbfffd}.box-config-panel button{width:100%;margin-top:12px}.box-result-panel strong{text-align:left;font-size:13px;line-height:1.35}.box-result-panel .grand-total strong{text-align:right;font-size:18px}
.box-cut-panel button{width:100%;margin-top:12px}.layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.layout-options button{margin:0;padding:10px;color:#33423b;background:#fff;border:1px solid var(--line);border-radius:6px;text-align:left;font-size:12px;line-height:1.3}.layout-options button.active{color:var(--green-dark);border-color:var(--green);box-shadow:0 0 0 3px rgba(8,124,75,.12)}.layout-options strong{display:block;margin-bottom:3px;font-size:13px}.layout-options span{display:block;color:var(--muted)}.layout-options span+span{margin-top:2px}.cut-suggestion{margin:12px 0 0;padding:10px 12px;color:#40504a;background:#f8faf9;border:1px solid var(--line);border-radius:6px;font-size:12px;line-height:1.35}.cut-order-wrap{width:210mm;min-height:297mm;margin:10px auto 28px}.cut-order-sheet{width:210mm;min-height:297mm;padding:15mm;color:#151f1a;background:#fff;box-shadow:0 2px 16px rgba(0,0,0,.14);font-family:Arial,sans-serif}.cut-order-sheet header{display:grid;grid-template-columns:42mm 1fr;gap:10mm;align-items:center;padding-bottom:8mm;border-bottom:2px solid var(--green)}.cut-order-sheet img{width:38mm;height:14mm;object-fit:contain}.cut-order-sheet p{margin:0 0 3mm;color:var(--green-dark);font-size:10px;font-weight:800}.cut-order-sheet h2{margin:0;font-size:22px}.cut-order-meta{display:grid;grid-template-columns:1fr 1fr;gap:4mm;margin:8mm 0}.cut-order-meta div{padding:4mm;border:1px solid #cfd9d4}.cut-order-meta span{display:block;margin-bottom:2mm;color:#5a6660;font-size:10px;font-weight:700}.cut-order-meta strong{font-size:13px}.cut-order-table{width:100%;border-collapse:collapse;font-size:13px}.cut-order-table th,.cut-order-table td{padding:4mm;border:1px solid #73887d;text-align:left;vertical-align:top}.cut-order-table th{width:45mm;background:#e7f5ee}.cut-order-sheet footer{display:flex;justify-content:space-around;margin-top:20mm;padding-top:8mm;text-align:center;font-size:12px}
.factory-tabs{grid-template-columns:repeat(6,1fr)}.factory-tabs button{font-size:10px}.factory-panel{padding-bottom:18px}.compact-panel{margin-top:8px}.compact-panel form+form{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.mini-result{margin-top:12px;padding:12px;background:#f8faf9;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:13px;line-height:1.35}.qr-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center}.qr-box{display:grid;width:92px;height:92px;place-items:center;padding:5px;background:#fff;border:1px solid var(--line);border-radius:6px}.qr-box svg{display:block;width:82px;height:82px}.qr-fallback{font-size:8px;line-height:1.1;overflow-wrap:anywhere}.qr-card h3{margin:0 0 5px;font-size:15px}.qr-card p{margin:4px 0;color:var(--muted);font-size:12px}.meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.meta-grid div{padding:9px;background:#f8faf9;border:1px solid #edf1ef;border-radius:6px}.meta-grid span{display:block;color:var(--muted);font-size:10px}.meta-grid strong{display:block;margin-top:3px;font-size:13px;overflow-wrap:anywhere}.alert-card{border-color:#f1d58a;background:#fffdf4}.danger-card{border-color:#f3b0a4;background:#fff7f5}.status-normal{color:#087c4b;background:#e7f5ee}.status-watch{color:#715000;background:#fff3c4}.status-urgent{color:#9f2f20;background:#fff0ed}.bom-result-panel strong{text-align:left;line-height:1.45}.forecast-bar{height:8px;margin-top:10px;overflow:hidden;background:#e7ece9;border-radius:999px}.forecast-bar span{display:block;height:100%;background:var(--green);border-radius:999px}.forecast-bar.warn span{background:#d79b10}.forecast-bar.danger span{background:#d64b36}
dialog{width:100%;max-width:100%;height:100%;max-height:100%;margin:0;padding:0;background:#dfe4e1;border:0}dialog::backdrop{background:rgba(0,0,0,.32)}.dialog-toolbar{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}.dialog-toolbar button{font-size:12px}.quote-sheet-wrap{width:297mm;height:210mm;margin:10px auto 28px}.a4-sheet{display:flex;flex-direction:column;width:297mm;min-height:210mm;margin:0;padding:0;transform-origin:top left;color:#101813;background:#fff;box-shadow:0 2px 16px rgba(0,0,0,.14);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}.quote-brand-header{height:70mm;flex:0 0 70mm;background:#fff url("assets/quotation-template.png") top center/100% auto no-repeat;filter:saturate(1.16) contrast(1.06)}.quote-body{display:flex;flex:1;flex-direction:column;padding:4.5mm 10mm 3mm}.quote-heading-block{position:relative;display:block;min-height:18mm;margin-bottom:2.5mm}.quote-title{width:100%;text-align:center}.quote-title strong{display:inline-block;color:#008a47;font-size:27px;line-height:1;font-weight:800}.quote-title span{display:block;margin-top:2mm;color:#363f3a;font-size:16px;font-weight:700}.quote-meta{position:absolute;right:0;top:.8mm;width:74mm;font-size:10px;color:#101813}.quote-meta div{display:grid;grid-template-columns:40mm 1fr;gap:3mm;align-items:end;margin:1.5mm 0}.quote-meta span{font-weight:700}.quote-meta em,.quote-customer-lines em,.quote-table em,.signatures em{color:#4f5b55;font-weight:500}.quote-meta strong,.quote-customer-lines strong{min-height:4mm;border-bottom:1px dotted #303b35;font-weight:700}.quote-customer-lines{display:grid;gap:1.3mm;margin-bottom:2mm;font-size:10px;color:#101813}.quote-customer-lines>div{display:grid;grid-template-columns:44mm 1fr;gap:3mm;align-items:end}.quote-customer-lines .quote-contact-line{grid-template-columns:44mm 1fr 15mm 1fr}.quote-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9.3px;color:#101813}.quote-table th,.quote-table td{padding:4px;border:1px solid #587768;text-align:center;overflow-wrap:anywhere}.quote-table th{color:#fff;background:#008a47;font-weight:800}.quote-table td{font-weight:600}.quote-table th em{color:#f0fff6;font-weight:600}.quote-table th:nth-child(1){width:5%}.quote-table th:nth-child(2){width:18%}.quote-table th:nth-child(3){width:21%}.quote-table th:nth-child(4){width:7%}.quote-table th:nth-child(5){width:9%}.quote-table th:nth-child(6),.quote-table th:nth-child(7){width:13%}.quote-table th:nth-child(8){width:14%}.quote-lower{display:grid;grid-template-columns:1fr 74mm;gap:8mm;align-items:start;margin-top:2mm}.quote-totals{border:1px solid #587768;border-bottom:0}.quote-totals div{display:flex;justify-content:space-between;gap:10px;padding:4px 7px;border-bottom:1px solid #587768;font-size:10px;font-weight:700}.quote-totals div:last-child{color:#005f32;background:#ddf3e7}.terms p{margin:1.2mm 0;color:#2f3934;font-size:9px;font-weight:600}.signatures{display:flex;justify-content:space-around;margin-top:auto;padding-top:2mm;text-align:center;font-size:9px}.signatures strong{font-weight:800}.quote-brand-footer{height:18mm;flex:0 0 18mm;background:#fff url("assets/quotation-template.png") bottom center/100% auto no-repeat;filter:saturate(1.16) contrast(1.06)}
.toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));z-index:60;max-width:calc(100% - 32px);padding:11px 16px;color:#fff;background:#1c2822;border-radius:6px;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:.2s ease;font-size:13px}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){.app-header{padding-left:max(24px,calc((100% - 760px)/2));padding-right:max(24px,calc((100% - 760px)/2))}.bottom-nav{left:50%;right:auto;width:760px;transform:translateX(-50%)}}
@media print{@page{size:A4 landscape;margin:0}body *{visibility:hidden!important}dialog,dialog[open],#quoteSheetWrap,#quoteSheetWrap *,#printArea,#printArea *{visibility:visible!important}dialog{position:static;display:block;width:auto;height:auto;overflow:visible;background:#fff}.dialog-toolbar{display:none}.quote-sheet-wrap{width:297mm!important;height:210mm!important;margin:0!important}.a4-sheet{width:297mm;min-height:210mm;margin:0;transform:none!important;box-shadow:none}}
.orders-table tr.new-order-row td{background:#e8f7ee}
.orders-table tr.new-order-row td:first-child{box-shadow:inset 4px 0 0 var(--green)}
.order-search{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}
.order-search span{grid-column:1/-1;color:var(--muted);font-size:12px}
.delete-selected-button,.select-visible-button{min-height:42px;padding:8px 10px;border-radius:6px;font-size:12px;font-weight:800}
.select-visible-button{color:var(--green-dark);background:#fff;border:1px solid #b8cbc2}
.delete-selected-button{color:#9f2f20;background:#fff7f5;border:1px solid #f3b0a4}
.delete-selected-button:disabled{color:#97a19c;background:#f4f7f5;border-color:#d8e0dc}
.orders-table .select-cell{width:38px;text-align:center}
.orders-table .select-cell input{width:20px;min-width:20px;height:20px;min-height:20px;padding:0}
.orders-table .row-actions{grid-template-columns:1fr 1fr 1fr 1fr}
.order-check{display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 8px;border:1px solid #b8cbc2;border-radius:5px;color:var(--green-dark);background:#fff;font-size:12px;font-weight:800}
.order-check input{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important}
.open-order-link{padding:0;color:var(--green-dark);background:transparent;border:0;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:2px}
.orders-table .open-order{color:var(--green-dark);background:#fff;border:1px solid #b8cbc2}
.orders-table .print-order{color:#0f5f3c;background:#e8f7ee;border:1px solid #b8cbc2}
.orders-table .order-actions-wide{grid-template-columns:1fr 1fr 1fr;min-width:250px}
.order-sheet.a5-sheet{width:210mm;min-height:148mm}
.order-sheet.a5-sheet .quote-brand-header{height:34mm;flex-basis:34mm}
.order-sheet.a5-sheet .quote-brand-footer{height:10mm;flex-basis:10mm}
.order-sheet.a5-sheet .quote-body{padding:3mm 7mm 2mm}
.order-sheet.a5-sheet .quote-title strong{font-size:20px}.order-sheet.a5-sheet .quote-title span{font-size:11px}
.order-sheet.a5-sheet .quote-heading-block{min-height:13mm}.order-sheet.a5-sheet .quote-meta{width:56mm;font-size:8px}.order-sheet.a5-sheet .quote-meta div{grid-template-columns:27mm 1fr;margin:.8mm 0}
.order-sheet.a5-sheet .quote-customer-lines{gap:.8mm;margin-bottom:1.4mm;font-size:8px}.order-sheet.a5-sheet .quote-customer-lines>div{grid-template-columns:30mm 1fr}
.order-sheet.a5-sheet .quote-table{font-size:7px}.order-sheet.a5-sheet .quote-table th,.order-sheet.a5-sheet .quote-table td{padding:2px}
.order-sheet.a5-sheet .quote-lower{grid-template-columns:1fr 56mm;gap:4mm;margin-top:1.4mm}.order-sheet.a5-sheet .terms p{font-size:7px;margin:.7mm 0}.order-sheet.a5-sheet .quote-totals div{font-size:7px;padding:2px 4px}.order-sheet.a5-sheet .signatures{font-size:7px;padding-top:1mm}
@media(min-width:1100px){
  main{width:min(1360px,calc(100% - 96px));padding-bottom:32px}
  .app-header{grid-template-columns:120px minmax(0,1fr) auto;padding-left:max(48px,calc((100% - 1360px)/2));padding-right:max(48px,calc((100% - 1360px)/2))}
  .brand-logo{width:120px;height:40px}.header-title h1{font-size:22px}.header-title p{font-size:12px}.header-actions span{max-width:220px;font-size:11px}.header-actions button{font-size:12px}
  .bottom-nav{left:50%;right:auto;width:min(1100px,calc(100% - 96px));transform:translateX(-50%);border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0}
  .page-heading{padding:28px 8px 14px}.operation-tabs{margin:4px 0 14px}.orders-list,.operations-list{padding:2px 0 28px}.order-search{top:92px;grid-template-columns:minmax(360px,1fr) auto auto;margin-bottom:10px}
  .orders-table-wrap{overflow-x:visible}.orders-table{min-width:0;table-layout:fixed;font-size:13px}.orders-table th,.orders-table td{padding:9px 10px;vertical-align:middle}
  .orders-table th:nth-child(1){width:105px}.orders-table th:nth-child(2){width:135px}.orders-table th:nth-child(3){width:115px}.orders-table th:nth-child(4){width:150px}.orders-table th:nth-child(5){width:78px}.orders-table th:nth-child(6){width:92px}.orders-table th:nth-child(7){width:130px}.orders-table th:nth-child(8){width:110px}.orders-table th:nth-child(9){width:300px}
  .orders-table input,.orders-table select{min-width:0;font-size:13px}.orders-table .row-actions{min-width:0}.orders-table .order-actions-wide{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.orders-table .row-actions button,.order-check{min-height:34px;padding:6px;font-size:12px}
  #calculatorView .result-panel{margin-bottom:12px}.action-bar{position:static;margin:12px 0 28px;padding:0;background:transparent;backdrop-filter:none}
  .calculator-grid,.box-input-grid,.admin-grid,.factory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.summary-band{border-radius:0 0 8px 8px;overflow:hidden}
}
