:root{font:12px Tahoma,'Segoe UI',Arial,sans-serif;color:#152c45;background:#faf9e9;--line:#c6cdd0;--muted:#737775;--green:#345d38}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select{outline-offset:2px}button{cursor:pointer;border:1px solid #b9b79b;background:linear-gradient(#fffef7,#ebe8cd);border-radius:2px;padding:4px 9px;font-weight:400;min-height:25px}button:hover{background:#fff3c4;border-color:#9b8e4e}button:focus-visible,a:focus-visible{outline:2px solid #b49d38}button.primary{background:linear-gradient(#fff6cf,#e6d795);border-color:#b2a363;color:#222}button.danger{color:#923d31}button:disabled{opacity:.45;cursor:not-allowed}a{color:#254a70;text-decoration:none}a:hover{text-decoration:underline}.shell{display:block;min-height:100vh}.sidebar{display:flex;align-items:center;gap:20px;background:linear-gradient(#f8f5df,#eae6c5);border-bottom:1px solid #b7b291;padding:5px 12px;position:sticky;top:0;z-index:5}.brand{font-size:15px;font-weight:700;letter-spacing:.3px;color:#474625;white-space:nowrap}.brand small,.nav-caption,.sidebar-bottom{display:none}.nav{display:flex;gap:3px;overflow:auto;scrollbar-width:thin}.nav button{display:flex;align-items:center;gap:5px;white-space:nowrap;background:transparent;border:1px solid transparent;padding:5px 10px;min-height:27px}.nav button.active{background:#fffbed;border-color:#aaa37b;color:#202f40;font-weight:700}.nav button:hover{background:#fdf8dd;border-color:#c4bd94}.nav button span{color:#70734b}.workspace{min-width:0}.topbar{height:31px;background:#f6f5e7;border-bottom:1px solid #d6d4bc;display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:10px}.breadcrumb{font-size:11px;color:#767968}.user{display:flex;align-items:center;gap:9px;font-size:11px}.user>span:not(.avatar){display:flex;gap:8px;align-items:center}.user br,.avatar{display:none}.user button{font-size:11px;min-height:21px;padding:2px 7px}main{padding:10px 12px;max-width:none;margin:0}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.eyebrow{display:none}h1{font-size:18px;font-weight:600;letter-spacing:0;margin:0}h2{font-size:12px;font-weight:700;margin:0}h3{font-size:12px;margin:0 0 8px}.subtitle{color:#73766c;font-size:11px;line-height:1.5;margin:4px 0 0}.heading .subtitle{display:none}.demo{padding:5px 8px;background:#fff9df;border:1px solid #d9cea0;border-radius:1px;color:#83764c;font-size:10px;line-height:1.3;margin-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px}.stat{background:#fffef4;border:1px solid #c9c6ae;border-radius:1px;padding:8px 10px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 8px}.stat .label{font-size:11px;color:#626859}.stat strong{font-size:20px;display:block;margin:0;grid-column:2;grid-row:1/3;font-weight:600;letter-spacing:0;white-space:nowrap}.stat small{font-size:10px;color:#848574}.stat.highlight{background:#f7f0d1;border-color:#d0c28d}.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:10px;margin-bottom:0}.split>div{min-width:0}.card{border:1px solid #b9bdaf;border-radius:0;background:white;margin-bottom:10px;overflow:hidden;max-width:100%}.card-head{padding:6px 8px;min-height:30px;display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid #c5c4a9;background:linear-gradient(#faf8e8,#eeeacd)}.card-head small{font-size:10px;color:#7b7c65}.table-wrap{overflow:auto;max-height:calc(100vh - 218px);scrollbar-width:thin}table{border-collapse:separate;border-spacing:0;width:100%;font-size:11px;white-space:nowrap;line-height:1.2}th{text-align:left;color:#61542d;font-weight:400;font-size:11px;background:linear-gradient(#fffef4,#ebe7c6);padding:4px 6px;border-bottom:1px solid #bdb995;border-right:1px solid #c8c5a6;position:sticky;top:0;z-index:1}td{padding:3px 6px;border-bottom:1px solid #cbd4d8;border-right:1px solid #cbd4d8;height:23px;background:#fff}th:last-child,td:last-child{border-right:0}tr:nth-child(odd) td{background:#f1f7f2}tr:hover td{background:#fff4c6}tr:last-child td{border-bottom:0}td strong{display:inline;font-size:11px;font-weight:400}td small{color:#737e7d;display:inline;font-size:10px;margin-left:8px}td .small{vertical-align:middle}td:nth-child(n+2){font-variant-numeric:tabular-nums}.num{text-align:right;font-variant-numeric:tabular-nums}.pill{padding:0;border-radius:0;font-size:11px;display:inline;background:transparent;color:#6f756e;font-weight:600}.pill.green{background:transparent;color:#00602b}.pill.orange{background:transparent;color:#90702d}.pill.blue{background:transparent;color:#1a4b82}.pill.red{background:transparent;color:#a53e31}.timeline{padding:0 9px}.delivery{padding:8px 0;border-bottom:1px solid #d4d9ca}.delivery:last-child{border:0}.delivery-top{display:flex;justify-content:space-between;gap:8px;font-size:11px}.delivery-top strong{font-weight:600}.delivery p{font-size:11px;color:#7b8072;margin:5px 0}.progress{height:3px;background:#eaeddf;margin-top:6px}.progress i{height:100%;display:block;background:#91ab83}.toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:7px}.toolbar input{flex:1;min-width:180px;max-width:350px}input,select,textarea{border:1px solid #b9bda9;border-radius:1px;padding:4px 6px;background:white;min-width:0;width:100%;min-height:25px;color:#152c45}input:focus,select:focus,textarea:focus{outline:1px solid #ad9952;background:#fffef3}label{display:block;font-size:11px;color:#56614f;margin-bottom:9px}label input,label select,label textarea{display:block;margin-top:3px}dialog{border:1px solid #969880;border-radius:2px;padding:14px;width:720px;max-width:95vw;max-height:92vh;background:#faf9e9;box-shadow:0 5px 24px #17261735}dialog::backdrop{background:#26322355}dialog h2{font-size:15px;margin:-14px -14px 12px;padding:9px 12px;background:linear-gradient(#fcf7d9,#e5deb3);border-bottom:1px solid #b9b28d}dialog table{border:1px solid #bcc6c6}dialog p{font-size:12px;line-height:1.5;margin:8px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.actions{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid #d6d3b9;padding-top:10px;margin-top:12px}.line-entry{display:grid;grid-template-columns:1fr 75px 28px;gap:5px;margin-bottom:5px}.line-entry button{padding:2px}.login{max-width:390px;margin:12vh auto;background:#faf9e9;padding:24px;border:1px solid #b4b292;border-radius:2px;box-shadow:0 4px 20px #302e1712}.login .brand{margin-bottom:18px}.login h1{font-size:19px;margin-bottom:14px}.login .subtitle{display:block}#toast{position:fixed;bottom:16px;right:16px;max-width:460px;background:#fffbe5;color:#364029;border:1px solid #b3b08a;padding:9px 14px;border-radius:2px;display:none;z-index:100;box-shadow:0 3px 12px #0002}#toast.error{background:#fff0e8;color:#932b20;border-color:#c19487}.empty{padding:22px;color:#8b9085;text-align:center}.muted{color:#7a8075}.detail{padding:10px}.detail p{line-height:1.5;font-size:12px}.stack{display:flex;gap:5px;flex-wrap:wrap}button.small{font-size:10px;min-height:19px;padding:1px 6px}.number{color:#215833;font-weight:600}.notice{padding:7px 9px;border-bottom:1px solid #d9dece;font-size:11px}.notice small{display:inline;color:#8c9086;font-size:10px;margin-left:10px}.mobile-label,.print-title{display:none}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}details summary{cursor:pointer;color:#4d664d}
@media(max-width:900px){.sidebar{gap:8px;padding:5px 8px}.nav button{padding:5px 7px}.split{grid-template-columns:1fr}.stat{display:block}.stat strong{margin:4px 0}.brand{font-size:13px}.table-wrap{max-height:calc(100vh - 240px)}}
@media(max-width:600px){.sidebar{display:block;position:static}.brand{padding:2px 4px 5px}.nav{gap:2px}.nav button{padding:7px;min-height:32px}.topbar{padding:0 8px;height:33px}.breadcrumb{font-size:10px}.user{font-size:10px;gap:4px}.user .muted{display:none}main{padding:8px}.heading{gap:8px}h1{font-size:16px}.heading>button{font-size:11px;white-space:nowrap}.stats{grid-template-columns:1fr 1fr;gap:6px}.stat{padding:7px}.stat strong{font-size:20px}.form-grid{grid-template-columns:1fr}button,input,select{min-height:30px}button.small{min-height:26px}.toolbar{gap:5px}.toolbar input{max-width:none}.card-head{padding:6px}.demo{font-size:10px}.table-wrap{max-height:60vh}.login{margin:8vh 12px}.line-entry{grid-template-columns:minmax(0,1fr) 58px 30px}.user button{min-height:24px}dialog{padding:12px}dialog h2{margin:-12px -12px 12px}}
@media print{.sidebar,.topbar,.toolbar,.demo,.heading button,.actions,.no-print,#toast{display:none!important}.shell{display:block}main{padding:0}.card{border:0}.card-head{background:white}.print-title{display:block}body{background:white}.table-wrap{overflow:visible;max-height:none}dialog{position:static;max-height:none;max-width:none;width:100%;box-shadow:none;background:white}body:has(dialog[open]) #app{display:none}button{display:none!important}td,th{background:white!important;color:black!important}th{position:static}}
.toolbar select{width:240px;max-width:100%;text-overflow:ellipsis}.group-count{padding:6px 9px;color:#76775d;font-size:11px}.stock-section{border-top:1px solid #bfc5b1}.stock-section>summary{padding:7px 9px;background:#eeecd5;color:#42472e;font-size:12px;font-weight:600;cursor:pointer}.stock-section summary span{font-weight:400;color:#7b806f;margin-left:8px;font-size:10px}.stock-subgroup{margin:0 0 0 14px;border-top:1px solid #d1d6c5}.stock-subgroup>summary{padding:6px 9px;background:#f6f7ed;white-space:normal;line-height:1.5;font-size:11px;cursor:pointer}.stock-subgroup .table-wrap{max-height:400px}[data-product],[data-client]{cursor:pointer}.stock-section[open]>summary{border-bottom:1px solid #bfc5b1}dialog:has([name="full_name"]){width:850px}@media(max-width:600px){.toolbar select{flex:1;width:150px}.stock-subgroup{margin-left:7px}}
.purchase-tabs{display:flex;gap:4px;margin:8px 0 0}.purchase-tabs button{border-bottom:0;border-radius:3px 3px 0 0;padding:7px 14px}.purchase-tabs button.active{background:#fffdf2;font-weight:700}.purchase-general{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:18px;padding:8px 0 16px}.purchase-general label{margin-bottom:4px}.purchase-product-name{white-space:normal;min-width:220px;max-width:430px}.receipt-qty{width:92px;min-height:25px;padding:3px 6px;text-align:right;background:#fffce9}.receipt-help{padding:8px;border-bottom:1px solid #c9c9b4;font-size:11px}.receipt-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px;background:#f7f5e2;border-top:1px solid #c4c6b5}.receipt-footer .primary{margin-left:auto}.purchase-receipt .table-wrap{max-height:calc(100vh - 335px)}@media(max-width:750px){.purchase-general{grid-template-columns:1fr 1fr}.purchase-receipt .table-wrap{max-height:60vh}.receipt-footer .primary{margin-left:0}.purchase-tabs button{padding:8px}}@media print{.purchase-tabs,.receipt-footer,.receipt-help{display:none!important}.purchase-receipt .table-wrap{max-height:none}.receipt-qty{border:0;background:white}}
/* Compact supply ledger */
.purchase-receipt{max-width:1320px;margin-left:auto;margin-right:auto}.purchase-receipt table{table-layout:fixed;font-size:11px}.purchase-receipt th{white-space:normal;text-align:center;padding:4px;line-height:1.2}.purchase-receipt td{padding:2px 4px;height:22px;text-align:center;white-space:normal;overflow-wrap:anywhere}.purchase-receipt th:nth-child(1){width:110px}.purchase-receipt th:nth-child(2){width:30%}.purchase-receipt th:nth-child(3){width:34px}.purchase-receipt td:nth-child(1),.purchase-receipt td:nth-child(2){text-align:right}.purchase-receipt .purchase-product-name{min-width:0;max-width:none}.purchase-receipt .receipt-qty{width:62px;max-width:100%;min-height:21px;padding:1px 3px;text-align:center}.purchase-receipt .num{text-align:center}.purchase-receipt .receipt-footer{padding:6px;gap:6px;font-size:11px}.purchase-receipt .receipt-footer .primary{margin-left:0}.purchase-receipt .card-head{padding:5px 7px}.purchase-receipt .receipt-help{padding:5px 7px}.purchase-receipt .table-wrap{overflow:auto}.purchase-receipt th:nth-child(n+4){width:84px}.shortage-card .receipt-footer button{margin-left:auto}
#purchasePrintRoot{display:none}dialog:has(#purchaseDocument){width:920px;max-width:96vw}#purchaseDocument{background:white;color:#111;padding:20px;font:12px Arial,sans-serif}#purchaseDocument .document-heading{display:flex;justify-content:space-between;border-bottom:2px solid #333;padding-bottom:8px;margin-bottom:15px}#purchaseDocument .document-heading b{font-size:18px;display:block}#purchaseDocument .document-heading span{font-size:10px}#purchaseDocument h1{font-size:19px;text-align:center;margin:12px 0}#purchaseDocument .document-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}#purchaseDocument .document-table{table-layout:fixed;width:100%;border-collapse:collapse;font:11px Arial,sans-serif;white-space:normal}#purchaseDocument .document-table th,#purchaseDocument .document-table td{border:1px solid #777;padding:5px 4px;white-space:normal;overflow-wrap:anywhere;text-align:center;color:#111;background:#fff;height:auto;position:static;font-size:11px}#purchaseDocument .document-table th{background:#eee;font-weight:700}#purchaseDocument .document-table td:nth-child(1),#purchaseDocument .document-table td:nth-child(2){text-align:right}#purchaseDocument .document-totals{margin-top:12px;line-height:1.8;text-align:right;break-inside:avoid}#purchaseDocument .document-note{font-size:10px;color:#555;margin:12px 0}#purchaseDocument .document-signatures{display:flex;justify-content:space-between;margin-top:25px;font-size:11px;break-inside:avoid}@media(max-width:850px){.purchase-receipt table{min-width:950px}.purchase-receipt .table-wrap{max-height:60vh}#purchaseDocument{padding:8px}.purchase-tabs{flex-wrap:wrap}}
@media print{body.printing-purchase>#app,body.printing-purchase>#dialog,body.printing-purchase>#toast{display:none!important}body.printing-purchase>#purchasePrintRoot{display:block!important;width:100%;margin:0;padding:0}body.printing-purchase{background:white!important}#purchasePrintRoot #purchaseDocument{padding:0;font-size:10pt}#purchasePrintRoot #purchaseDocument .document-table{min-width:0;width:100%;font-size:8pt}#purchasePrintRoot #purchaseDocument th,#purchasePrintRoot #purchaseDocument td{font-size:8pt;padding:4px 3px}#purchasePrintRoot thead{display:table-header-group}#purchasePrintRoot tr{break-inside:avoid}#purchasePrintRoot .document-heading,#purchasePrintRoot h1,#purchasePrintRoot .document-meta{break-inside:avoid;break-after:avoid}@page{size:A4 portrait;margin:12mm}}
/* One aligned supply workspace: names take the remaining width. */
.supply-workspace{max-width:1400px;margin:0 auto}.supply-workspace .purchase-receipt{max-width:none;margin-left:0;margin-right:0}.purchase-receipt th:nth-child(2){width:auto}.purchase-receipt th:nth-child(n+4){width:72px}.purchase-receipt th:nth-child(9){width:90px}.purchase-receipt th:nth-child(8){width:68px}.purchase-receipt td small{display:block;margin:2px 0;font-size:9px}.purchase-receipt td{vertical-align:middle}.claim-product{min-width:220px;max-width:380px;white-space:normal;overflow-wrap:anywhere}.claim-note{min-width:120px;max-width:220px;white-space:normal;overflow-wrap:anywhere}.closed-claims{margin:10px 0;padding:8px;border:1px solid #c6c6af}.closed-claims>summary{margin-bottom:8px}#purchaseDocument .document-table td small{display:block;margin:2px 0;font-size:9px}.supply-workspace>.subtitle{margin:6px 0}.purchase-tabs{margin-bottom:0}
dialog:has(.supplier-order),dialog:has(#stockReport){width:1200px;max-width:96vw}.supplier-order table{table-layout:fixed;white-space:normal}.supplier-order th:nth-child(1){width:120px}.supplier-order th:nth-child(2){width:auto}.supplier-order th:nth-child(n+3){width:110px}.supplier-order th:last-child{width:40px}.supplier-order td{overflow-wrap:anywhere}.supplier-order input[type=number]{text-align:right}.supplier-order .table-wrap{max-height:48vh}.material-table{font-size:11px;white-space:normal}.material-table td,.material-table th{padding:4px;text-align:right}.material-table td:nth-child(2){text-align:left;min-width:210px}.material-table th:first-child{min-width:95px}.material-table th{min-width:64px}.material-table .report-group td{background:#ece8c9;font-weight:bold;text-align:left}.material-table [data-report-product]{cursor:pointer}#stockReport .table-wrap{max-height:58vh}#purchaseDocument:has(.material-table){font-size:10px}#purchaseDocument .material-table th,#purchaseDocument .material-table td{border:1px solid #aaa;font-size:9px;position:static;min-width:0}#purchaseDocument .material-table{border-collapse:collapse;width:100%;table-layout:fixed}#purchaseDocument .material-table th:nth-child(2){width:24%}@media print{body.printing-material #purchasePrintRoot{page:material}body.printing-material #purchaseDocument .material-table{font-size:8pt}body.printing-material #purchaseDocument .material-table td{overflow-wrap:anywhere}@page material{size:A4 landscape;margin:10mm}}
.supplier-order th:last-child:not(:nth-child(6)){width:130px}#purchaseDocument .document-table td:nth-child(3){text-align:left}
.material-table{table-layout:fixed}.material-table th:nth-child(1){width:100px}.material-table th:nth-child(2){width:25%}.material-table th:nth-child(3){width:34px}.material-table td{overflow-wrap:anywhere}.supplier-order th:nth-child(3):not(:last-child){width:40px}
/* Ledger is the main warehouse workspace. */
.stock-period{align-items:flex-end}.stock-period label{margin:0;display:flex;align-items:center;gap:6px}.stock-period input{width:145px;margin:0}.stock-ledger{max-height:calc(100vh - 265px)}
.material-table{table-layout:fixed;min-width:1100px}.material-table th{white-space:normal;overflow-wrap:normal;line-height:1.25;text-align:center!important;min-width:0!important;width:80px!important}.material-table th:nth-child(1){width:38px!important}.material-table th:nth-child(2){width:110px!important}.material-table th:nth-child(3){width:auto!important}.material-table th:nth-child(4){width:34px!important}.material-table td{min-width:0!important;text-align:right;vertical-align:middle}.material-table td:nth-child(1),.material-table td:nth-child(4){text-align:center}.material-table td:nth-child(2),.material-table td:nth-child(3){text-align:left}.material-table td:nth-child(3){overflow-wrap:anywhere}.material-table .report-group td{text-align:left}
.numbered-table .row-number{width:36px!important;min-width:36px;text-align:center!important;color:#72776c}.numbered-table th{white-space:normal;text-align:center;line-height:1.25}
.purchase-receipt .numbered-table th{width:72px}.purchase-receipt .numbered-table th:nth-child(2){width:110px}.purchase-receipt .numbered-table th:nth-child(3){width:auto}.purchase-receipt .numbered-table th:nth-child(4){width:34px}.purchase-receipt .numbered-table th:nth-child(10){width:90px}.purchase-receipt .numbered-table td:nth-child(3){text-align:left}.purchase-receipt .numbered-table td:nth-child(1){text-align:center}
.supplier-order .numbered-table th:nth-child(2){width:115px}.supplier-order .numbered-table th:nth-child(3){width:auto}.supplier-order .numbered-table th:nth-child(4){width:40px}.supplier-order .numbered-table th:nth-child(5),.supplier-order .numbered-table th:nth-child(6){width:110px}.supplier-order .numbered-table th:nth-child(7){width:40px}.supplier-order .numbered-table th:last-child:nth-child(4){width:130px}
#purchaseDocument .document-table td:nth-child(1),#purchaseDocument .document-table td:nth-child(2){text-align:left}
#purchaseDocument .material-table{min-width:0}#purchaseDocument .material-table th{width:7%!important}#purchaseDocument .material-table th:nth-child(1){width:3%!important}#purchaseDocument .material-table th:nth-child(2){width:10%!important}#purchaseDocument .material-table th:nth-child(3){width:28%!important}#purchaseDocument .material-table th:nth-child(4){width:3%!important}
/* Unit weight and packaging norms in the material ledger. */
.material-table{min-width:1380px}#purchaseDocument .material-table{min-width:0}#purchaseDocument .material-table th{width:5.1%!important}#purchaseDocument .material-table th:nth-child(1){width:3%!important}#purchaseDocument .material-table th:nth-child(2){width:10%!important}#purchaseDocument .material-table th:nth-child(3){width:27.9%!important}#purchaseDocument .material-table th:nth-child(4){width:3%!important}
.material-table:has(.request-cell){min-width:1510px}.material-table .request-cell{width:120px;background:#fff8d7;position:sticky;right:0;border-left:1px solid #b5a561}.request-cell input{width:100%;text-align:right;background:#fffef3}.request-cell .request-stock{display:block;margin:3px 0;font-size:10px;text-align:left;line-height:1.4}.material-table tr.request-low .request-stock{background:#ffebc5;color:#854311}.material-table tr.request-covered .request-stock{background:#dcefdc;color:#20562d}.material-table tr.request-selected td:nth-child(8){background:#fff0bf;font-weight:bold}.material-table:has(.request-cell) th:last-child{width:120px!important;position:sticky;right:0;z-index:3}#warehouseRequestCount{font-size:11px}#supplierMessage{white-space:pre-wrap;line-height:1.5;resize:vertical}
dialog:has(.order-fulfillment){width:1250px;max-width:96vw}.order-fulfillment table{table-layout:fixed;white-space:normal}.order-fulfillment th{width:90px}.order-fulfillment th:nth-child(2){width:110px}.order-fulfillment th:nth-child(3){width:auto}.order-fulfillment td{text-align:center;overflow-wrap:anywhere}.order-fulfillment td:nth-child(3){text-align:left}.order-fulfillment input{text-align:right}.order-fulfillment .table-wrap{max-height:55vh}#purchaseDocument .numbered-table{white-space:normal}#purchaseDocument .numbered-table td,#purchaseDocument .numbered-table th{position:static;border:1px solid #999}
/* Stock ledger alignment and key quantities. */
.material-table td,.material-table th{ text-align:center!important;vertical-align:middle}.material-table td input{text-align:center}.material-table tr[data-report-product] td:nth-child(8),.material-table th:nth-child(8){background:#dfeeda!important;font-weight:700!important}.material-table .report-group td{font-weight:700}.reserve-toolbar{margin-top:8px}.reserve-report table{white-space:normal;table-layout:fixed;min-width:1100px}.reserve-report th{width:75px;text-align:center}.reserve-report th:nth-child(2){width:140px}.reserve-report th:nth-child(4){width:100px}.reserve-report th:nth-child(5){width:auto}.reserve-report th:nth-child(6){width:34px}.reserve-report td{text-align:center;overflow-wrap:anywhere}.reserve-report td:nth-child(2),.reserve-report td:nth-child(5){text-align:left}.reserve-report td:nth-child(7){background:#e7f1e1;font-weight:bold}.reserve-report td:nth-child(8){background:#e6eff8;font-weight:bold}.reserve-totals{padding:8px;border-top:1px solid #b9bdaf}.reserve-report .table-wrap{max-height:65vh}#purchaseDocument .reserve-report table{min-width:0;font-size:9px}#purchaseDocument .reserve-report th{width:6%;font-size:9px}#purchaseDocument .reserve-report th:nth-child(2){width:12%}#purchaseDocument .reserve-report th:nth-child(4){width:10%}#purchaseDocument .reserve-report th:nth-child(5){width:20%}#purchaseDocument .reserve-report th:nth-child(6){width:4%}@media print{.reserve-report .table-wrap{max-height:none;overflow:visible}.material-table tr[data-report-product] td:nth-child(10),.material-table tr[data-report-product] td:nth-child(8){print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.material-table tr.material-total td.closing-stock{background:#dfeeda!important;font-weight:700}
dialog:has(.order-picker){width:1540px;max-width:97vw;padding:14px}.picker-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:10px;margin-bottom:14px}.picker-groups{max-height:340px;overflow:auto;border:1px solid #c9c9b4;background:#f5f4e7}.picker-groups button{display:block;width:100%;text-align:left;white-space:normal;background:transparent;border:0;border-bottom:1px solid #dedfcc;padding:6px 8px;line-height:1.35}.picker-groups .active{background:#e6eddd;font-weight:bold}.picker-groups summary{display:flex;align-items:center}.picker-groups summary button{flex:1}.picker-groups .picker-subgroup{padding-left:18px;font-size:11px}.picker-layout section{min-width:0}.picker-layout .toolbar input{min-width:120px;flex:1}.picker-layout .toolbar select{width:180px}.order-picker table{table-layout:fixed;white-space:normal;font-size:12px}.order-picker th{width:76px;font-size:11px}.order-picker th:nth-child(2){width:105px}.order-picker th:nth-child(3){width:auto}.order-picker th:nth-child(4){width:32px}.order-picker th:last-child{width:35px}.order-picker td{padding:4px;overflow-wrap:anywhere}.order-picker input[type=number]{text-align:center;padding:3px;width:100%;min-height:26px}.order-picker td:nth-child(n+4){text-align:center}.order-picker .table-wrap{max-height:280px}.order-picker #draftLines .table-wrap{max-height:220px}.picker-total{padding:8px;text-align:right;background:#f0edda;border:1px solid #c9c9b4}.picker-available{color:#25613b;font-weight:bold}.picker-deficit{color:#954719!important;background:#fff0d7!important;font-weight:bold}@media(max-width:1000px){.picker-layout{grid-template-columns:160px minmax(0,1fr)}.order-picker table{min-width:840px}.picker-layout .toolbar select{width:160px}}@media(max-width:650px){.picker-layout{display:block}.picker-groups{max-height:140px;margin-bottom:8px}}
/* Compact picker with a wider group navigator. */
dialog:has(.order-picker){width:1400px}.picker-layout{grid-template-columns:270px minmax(0,1fr)}.picker-groups{max-height:350px}.order-picker th{width:65px}.order-picker th:nth-child(2){width:100px}.order-picker th:nth-child(3){width:240px}.order-picker th:nth-child(4){width:32px}.order-picker th:last-child{width:32px}.order-picker table{min-width:860px}.picker-layout .toolbar select{width:160px}.picker-layout .toolbar input{max-width:none}.picker-quantity-dialog{width:430px;max-width:94vw}.picker-quantity-dialog p{white-space:normal}.picker-quantity-dialog input{font-size:16px;text-align:center}.picker-quantity-dialog::backdrop{background:#26322333}[data-pick-row]{cursor:pointer}@media(max-width:1000px){.picker-layout{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:650px){.picker-layout{display:block}}
.status-shipped{background:#dbefdc!important;color:#14592c!important;padding:3px 7px;border:1px solid #96bc98;border-radius:3px;font-weight:700}.orders-ledger td:nth-child(4),.orders-ledger td:nth-child(5){text-align:center}.orders-ledger th{text-align:center}[data-order-open],[data-supply-open]{cursor:pointer}[data-order-open]:focus,[data-supply-open]:focus{outline:2px solid #af994a;outline-offset:-2px}.audit-panel{margin:12px 0;border:1px solid #b9bdaf;padding:9px}.audit-panel>summary{font-weight:bold;padding:3px}.report-links{padding:8px;background:#f2efd9;border:1px solid #c9c4a4}.material-table td:nth-child(2),.material-table td:nth-child(3){text-align:center!important}[data-client] td:nth-child(4),[data-client] td:nth-child(11){text-align:center}
#purchaseDocument.invoice-document{font:12px Arial,sans-serif;color:#000;padding:24px}#purchaseDocument.invoice-document .invoice-terms{text-align:center;font-size:10px;margin:0 5% 26px;line-height:1.35}#purchaseDocument.invoice-document h1{text-align:left;font-size:20px;border-bottom:2px solid #333;padding-bottom:15px;margin:26px 0 12px}.invoice-bank,.invoice-lines{width:100%;border-collapse:collapse;table-layout:fixed;white-space:normal}.invoice-bank td,.invoice-lines td,.invoice-lines th{border:1px solid #333;background:white!important;color:#000;padding:3px;overflow-wrap:anywhere;position:static;font-size:11px;height:auto}.invoice-bank td{vertical-align:top}.invoice-bank td:not(:first-child){text-align:center}.invoice-lines th{text-align:center;font-weight:bold}.invoice-lines td:nth-child(4),.invoice-lines td:nth-child(n+6){text-align:right}.invoice-lines td:first-child{text-align:center}.invoice-parties{display:grid;grid-template-columns:85px 1fr;gap:12px 8px;margin:12px 0 16px;line-height:1.35}.invoice-totals{text-align:right;font-weight:bold;margin:10px 0 24px;line-height:1.7;break-inside:avoid}.invoice-totals div{display:flex;justify-content:flex-end;gap:20px}.invoice-totals b{min-width:110px}.invoice-signature{display:flex;gap:20px;align-items:end;border-top:2px solid #333;padding-top:12px;margin-top:14px;break-inside:avoid}.invoice-footnote{font-size:10px!important}.invoice-warning{color:#8a4a16}@media print{#purchasePrintRoot #purchaseDocument.invoice-document{font-size:10pt;padding:0}.invoice-lines thead{display:table-header-group}.invoice-lines tr{break-inside:avoid}.invoice-bank{break-inside:avoid}.invoice-lines td,.invoice-lines th{font-size:8pt!important}.invoice-signature{font-size:9pt}}
/* Align product identifiers and group captions in the material ledger. */
.material-table tr[data-report-product] td:nth-child(2),
.material-table tr[data-report-product] td:nth-child(3),
.material-table th:nth-child(2),
.material-table th:nth-child(3),
.material-table .report-group td:first-child{text-align:left!important}
/* Full workspace forms with an always reachable footer. */
@media screen{
.nav .calculator-nav{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;color:inherit;text-decoration:none;border:1px solid transparent;font-size:12px;white-space:nowrap}.nav .calculator-nav:hover{background:#f7f2d7;border-color:#aaa68c}
#dialog{width:calc(100vw - 24px)!important;max-width:none!important;height:calc(100dvh - 24px);max-height:none!important;padding:0!important;overflow:hidden}
#dialogBody{height:100%;display:flex;flex-direction:column;min-height:0}#dialogBody>h2{margin:0!important;flex:none;padding:11px 14px}
#modalForm{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.modal-scroll-content{flex:1;min-height:0;overflow:auto;padding:14px;scrollbar-gutter:stable}
#modalForm>.modal-footer{flex:none;position:relative;z-index:10;margin:0!important;padding:10px 14px!important;background:#faf9e9;border-top:1px solid #bab99e;box-shadow:0 -3px 10px #3331}
.modal-scroll-content .table-wrap{max-height:none}.modal-scroll-content .order-picker .table-wrap{max-height:32vh}.modal-scroll-content .order-picker #draftLines .table-wrap{max-height:25vh}
#dialog .modal-footer button{min-height:32px}.modal-scroll-content .actions{position:sticky;bottom:0;background:#faf9e9;padding:8px;z-index:3}
.client-analytics-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.client-analytics-toolbar label{margin:0}.client-analytics-toolbar input{width:145px}.client-analytics-toolbar select{width:240px}
.client-analytics-table{white-space:nowrap}.client-analytics-table th{text-align:center}.client-analytics-table td:nth-child(n+3){text-align:center}
}
@media print{#dialogBody,#modalForm,.modal-scroll-content{display:block;height:auto;overflow:visible}.modal-scroll-content{padding:0}}
@media screen{.receipt-footer{position:sticky;bottom:0;z-index:5;box-shadow:0 -3px 8px #30301012}.client-report-shortcut{margin-bottom:7px}}
/* Reports occupy the workspace; concise tables retain visible action bars. */
@media screen{
.reports-workspace{width:100%}.report-info{margin-top:12px;padding:12px;border:1px solid #ccc7a8;background:#fffdf0}.report-info p{margin:6px 0 10px;font-size:12px;line-height:1.45}
.report-links{display:flex;flex-wrap:wrap;gap:6px}.report-links button{padding:7px 10px}
#dialog{inset:0!important;margin:auto!important;width:760px!important;max-width:92vw!important;height:fit-content!important;max-height:86dvh!important;border-radius:6px;box-shadow:0 12px 48px #17261740}
#dialog:has(.client-analytics-toolbar,.order-picker,.order-fulfillment,.supplier-order,#stockReport){width:1180px!important}
#dialogBody{height:auto;max-height:calc(86dvh - 2px)}
#modalForm{overflow:hidden;flex:0 1 auto}
.modal-scroll-content{flex:0 1 auto}
#modalForm>.modal-footer{padding:6px 10px!important;box-shadow:none}
#dialog .modal-footer button{min-height:25px}
@media(max-width:650px){#dialog{max-width:96vw!important;max-height:92dvh!important}#dialogBody{max-height:calc(92dvh - 2px)}}
#dialogBody>h2{padding:8px 12px!important;font-size:14px}.modal-scroll-content{padding:10px!important}.modal-footer{padding:8px 12px!important}
.client-analytics-table table{table-layout:fixed;min-width:1140px;width:100%;white-space:normal}.client-analytics-table th{width:80px;font-size:10px;padding:5px 3px;line-height:1.25}.client-analytics-table td{font-size:11px;padding:4px 3px;overflow-wrap:normal;white-space:nowrap}.client-analytics-table th:first-child{width:28px}.client-analytics-table th:nth-child(2){width:auto;min-width:300px;text-align:left}.client-analytics-table td:nth-child(2){white-space:normal;word-break:normal;text-align:left}.client-analytics-table th:nth-child(3){width:95px}.client-analytics-table th:nth-child(4){width:48px}.client-analytics-table th:nth-child(5){width:62px}.client-analytics-table th:nth-child(7),.client-analytics-table th:nth-child(10){width:48px}.client-analytics-table .table-wrap{max-height:none}
.client-analytics-toolbar{position:sticky;top:-10px;background:#faf9e9;z-index:4;padding:4px 0 8px;border-bottom:1px solid #dbd8bc}
}
@media screen{.client-analytics-toolbar .demo-filter{display:flex;gap:5px;align-items:center;font-size:11px;padding-bottom:5px}.client-analytics-toolbar .demo-filter input{width:14px;height:14px;min-height:0;margin:0}}

/* Content-based defaults; specialized document column widths take precedence. */
:where(.numbered-table th[data-column-width="name"]){width:auto;min-width:240px;text-align:left}
:where(.numbered-table td[data-column-width="name"]){white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:left}
:where(.numbered-table th[data-column-width="compact"]){width:1%;min-width:64px;white-space:normal}
:where(.numbered-table td[data-column-width="compact"]){white-space:nowrap;overflow-wrap:normal}
:where(.numbered-table .row-number){width:28px;min-width:28px}

/* Three ERP themes. Strict retains the original stylesheet. */
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.theme-option{display:flex;gap:12px;align-items:center;text-align:left;padding:12px;background:#fff;white-space:normal;border:1px solid #c7ccd2;border-radius:8px}.theme-option[aria-pressed=true]{outline:2px solid #2874da;outline-offset:1px;background:#f5f9ff}.theme-option b{display:block;font-size:14px;margin-bottom:5px}.theme-option small{display:block;line-height:1.5;color:#667080}.theme-note{margin:0;padding:0 12px 12px;color:#687080;font-size:11px}.theme-sample{width:64px;height:50px;flex:none;padding:7px;background:#f0f2f5;border:1px solid #d7dce2;border-radius:5px}.theme-sample i{display:block;height:6px;margin-bottom:6px;background:#fff;border:1px solid #dce1e7}.theme-sample-strict{background:#f3eed5;border-radius:0}.theme-sample-strict i:first-child{background:#d8d0a1}.theme-sample-soft i:first-child{background:#464e58}.theme-sample-easy i{border-radius:4px}.theme-sample-easy i:first-child{background:#2563eb}
@media screen{
html[data-erp-theme=soft],html[data-erp-theme=easy]{font-family:'Segoe UI',Arial,sans-serif;color:#252c36;background:#f3f4f6;--line:#dce0e5;--muted:#717985}
html[data-erp-theme=soft]{font-size:13px}
html[data-erp-theme=easy]{font-size:15px}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.sidebar,.topbar){background:#fff;border-color:#dce0e5}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.card,dialog,.login){background:#fff;border-color:#dce0e5;border-radius:8px}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.card-head,th,dialog h2){background:#f5f6f8;color:#424b58;border-color:#dce0e5}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(button,input,select,textarea){border-color:#cdd3dc;border-radius:6px;background:#fff;color:#283548}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) button:hover{background:#eef3fa;border-color:#9dafc5}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(button.primary,.nav button.active,.purchase-tabs button.active){background:#e8f0fc;border-color:#b8cdef;color:#1f539a}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.report-links,.report-info,.picker-total){background:#f6f7f9;border-color:#dce0e5;border-radius:6px}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) #modalForm>.modal-footer,html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.modal-scroll-content .actions,.client-analytics-toolbar){background:#fff;border-color:#dce0e5}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) td{border-color:#e0e4ea;background:#fff}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) tr:nth-child(odd) td{background:#f7f9fb}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) tr:hover td{background:#edf3fb}
html[data-erp-theme=soft] :is(table,th,td,label,.toolbar,.user){font-size:12px}
html[data-erp-theme=soft] :is(button,input,select){min-height:30px}
html[data-erp-theme=soft] :is(td,th){padding:5px 6px}
html[data-erp-theme=easy] :is(button,input,select,textarea){font-size:15px;min-height:44px;padding:9px 12px;border-radius:10px}
html[data-erp-theme=easy] :is(table,th,td,label,.pill,td strong,.client-analytics-table td,.client-analytics-table th){font-size:14px;line-height:1.4}
html[data-erp-theme=easy] :is(th,td){padding:8px 7px}
html[data-erp-theme=easy] :is(h1,h2,h3){font-size:18px}
html[data-erp-theme=easy] :is(.nav button,.nav .calculator-nav,#dialog .modal-footer button){min-height:44px;font-size:15px}
html[data-erp-theme=easy] :is(.topbar,.user){height:auto;min-height:44px;font-size:13px}
html[data-erp-theme=easy] .pill{display:inline-block;border-radius:6px;padding:4px 7px;font-weight:700}
html[data-erp-theme=easy] .pill.green{background:#d9f4e3;color:#09672c}
html[data-erp-theme=easy] .pill.orange{background:#fff0c2;color:#805000}
html[data-erp-theme=easy] .pill.blue{background:#deebff;color:#144eaa}
html[data-erp-theme=easy] .pill.red{background:#ffe0e0;color:#a12121}
html[data-erp-theme=easy] .client-analytics-table table{min-width:1370px}
html[data-erp-theme=easy] .client-analytics-table th{width:100px}
html[data-erp-theme=easy] .client-analytics-table th:nth-child(2){width:auto}
html[data-erp-theme=easy] .client-analytics-table th:nth-child(3){width:120px}
html[data-erp-theme=easy] .client-analytics-table th:first-child{width:36px}
html[data-erp-theme=easy] input[type=checkbox]{min-height:22px;width:22px;height:22px;padding:0}
html[data-erp-theme=easy] .client-analytics-toolbar{gap:10px}
@media(max-width:850px){.theme-options{grid-template-columns:1fr}html[data-erp-theme=easy] .split{grid-template-columns:1fr}html[data-erp-theme=easy] .nav{padding-bottom:4px}html[data-erp-theme=easy] .toolbar{gap:8px}}
}
/* Compact customer order picker: flexible names, bounded numeric columns. */
#dialog:has(.order-picker){width:1120px!important;max-width:calc(100vw - 24px)!important;padding:10px!important;box-sizing:border-box;overflow-x:hidden}
#dialog:has(.order-picker) .modal-scroll-content{min-width:0;overflow-x:hidden}
#dialog .order-picker{font-size:11.5px;min-width:0}
#dialog .order-picker .picker-layout{grid-template-columns:185px minmax(0,1fr);gap:8px;margin-bottom:8px}
#dialog .order-picker .picker-groups{max-height:300px}
#dialog .order-picker .picker-groups button{font-size:11px;padding:3px 5px;line-height:1.2;min-height:24px}
#dialog .order-picker .toolbar{gap:5px;flex-wrap:wrap}
#dialog .order-picker .toolbar input,#dialog .order-picker .toolbar select{width:145px;min-width:0;max-width:100%;font-size:11.5px;min-height:26px;padding:3px 5px;box-sizing:border-box}
#dialog .order-picker input[type=file]{width:230px}
#dialog .order-picker table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:11px!important}
#dialog .order-picker table th,#dialog .order-picker table td{min-width:0!important;padding:2px 3px!important;line-height:1.2;font-size:11px!important;height:auto;white-space:normal;overflow-wrap:anywhere}
#dialog .order-picker table th{width:8%!important;text-align:center}
#dialog .order-picker table th:first-child{width:4%!important}
#dialog .order-picker table th:nth-child(2){width:12%!important}
#dialog .order-picker table th:nth-child(3){width:27%!important}
#dialog .order-picker table th:nth-child(4){width:5%!important}
#dialog .order-picker table th:last-child{width:4%!important}
#dialog .order-picker td:nth-child(2),#dialog .order-picker td:nth-child(3){text-align:left}
#dialog .order-picker input[type=number]{width:100%;min-width:0;min-height:23px;height:23px;font-size:11px;padding:1px 2px;box-sizing:border-box}
#dialog .order-picker button{font-size:11px;min-height:24px;padding:2px 6px}
#dialog .order-picker h3{font-size:12px;margin:7px 0}
#dialog .order-picker .picker-total{padding:5px;font-size:12px}
#dialog #clientImportPreview table th:nth-child(3){width:60%!important}
#dialog #clientImportPreview table th:last-child{width:15%!important}
@media(max-width:950px){#dialog .order-picker .picker-layout{grid-template-columns:155px minmax(0,1fr)}}
@media(max-width:760px){#dialog .order-picker .picker-layout{display:block}#dialog .order-picker .picker-groups{max-height:100px;margin-bottom:6px}#dialog .order-picker table thead{display:none}#dialog .order-picker table,#dialog .order-picker table tbody{display:block}#dialog .order-picker table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #ccd0d4;padding:5px}#dialog .order-picker table td{display:block!important;max-width:100%;border:0;min-width:0!important}#dialog .order-picker table td:before{content:attr(data-column-label);display:block;font-size:10px;color:#666}#dialog .order-picker table td:nth-child(3){grid-column:1/-1}#dialog .order-picker input[type=number],#dialog .order-picker button{min-height:32px}#dialog .order-picker .toolbar label{max-width:100%}}
/* Softer luminance with clearer text and table boundaries. */
@media screen{
html[data-erp-theme=soft]{--erp-canvas:#e3e7e2;--erp-surface:#f2f2ed;--erp-head:#d7ded6;--erp-stripe:#e8ece6;--erp-border:#a9b4a8;--erp-ink:#26342d;--erp-muted:#4d5d52;--erp-active:#355e4b;--erp-hover:#dce6dc}
html[data-erp-theme=easy]{--erp-canvas:#dfe6ec;--erp-surface:#eff2f5;--erp-head:#d0dce7;--erp-stripe:#e3eaf0;--erp-border:#9faebd;--erp-ink:#213447;--erp-muted:#485d70;--erp-active:#315d7c;--erp-hover:#d5e2ec}
html:is([data-erp-theme=soft],[data-erp-theme=easy]){background:var(--erp-canvas);color:var(--erp-ink);--muted:var(--erp-muted);--line:var(--erp-border)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) body{background:var(--erp-canvas);color:var(--erp-ink)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.sidebar,.topbar,.card,dialog,.login,.modal-scroll-content,.picker-groups){background:var(--erp-surface);border-color:var(--erp-border);color:var(--erp-ink)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.card-head,th,dialog h2,.picker-total,.report-info){background:var(--erp-head);border-color:var(--erp-border);color:var(--erp-ink)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(button,input,select,textarea){background:var(--erp-surface);border-color:var(--erp-border);color:var(--erp-ink)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(input,textarea)::placeholder{color:var(--erp-muted);opacity:1}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.muted,.subtitle,label,.theme-note,.theme-option small){color:var(--erp-muted)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) td{background:var(--erp-surface);border-color:var(--erp-border);color:var(--erp-ink)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) tr:nth-child(odd) td{background:var(--erp-stripe)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) tr:hover td,html:is([data-erp-theme=soft],[data-erp-theme=easy]) button:hover{background:var(--erp-hover);border-color:var(--erp-active)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(button.primary,.nav button.active,.purchase-tabs button.active){background:var(--erp-active);color:#fff;border-color:var(--erp-active)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) #modalForm>.modal-footer,html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(.modal-scroll-content .actions,.client-analytics-toolbar){background:var(--erp-head);border-color:var(--erp-border)}
html:is([data-erp-theme=soft],[data-erp-theme=easy]) :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--erp-active);outline-offset:2px}
}

@media screen{.material-table{min-width:1080px}.material-table:has(.request-cell){min-width:1200px}}
.price-up{color:#b42318;font-weight:600}.price-down{color:#087443;font-weight:600}#supplierComparison{min-width:850px}.order-filters label,.reserve-toolbar label{display:flex;gap:6px;align-items:center}
#dialog:has(#supplierComparison){width:min(1280px,96vw);max-width:96vw}#supplierComparison{min-width:0}#supplierComparison .table-wrap{max-width:100%;overflow-x:auto}#supplierComparison table{min-width:1050px}
table tbody tr[tabindex="0"]:focus-visible td{outline:2px solid #b49d38;outline-offset:-2px;background:#fff4c6}

.table-filter{width:100%;box-sizing:border-box;margin:0 0 6px;padding:6px 8px;border:1px solid #d8ddd4;border-radius:5px;background:#fff;font-size:12px}.table-filter:focus{border-color:#78998b;outline:2px solid #dce9df}.numbered-table th[data-sort-index]{cursor:pointer}.numbered-table th[data-sort-index]:hover{background:#eef3ec}

/* Исправление таблицы заказов: чекбокс не растягивает ячейку, колонки совпадают с заголовками. */
.numbered-table input[type=checkbox]{width:18px;min-width:18px;height:18px;display:inline-block;vertical-align:middle;margin:0 4px 0 0;padding:0}
.orders-compact-workspace .orders-ledger table{table-layout:fixed;min-width:760px}
.orders-compact-workspace .orders-ledger th:nth-child(2){width:175px;min-width:175px}
.orders-compact-workspace .orders-ledger th:nth-child(3){width:125px;min-width:125px}
.orders-compact-workspace .orders-ledger th:nth-child(4){width:auto;min-width:190px;text-align:left}
.orders-compact-workspace .orders-ledger th:nth-child(5){width:105px;min-width:105px;text-align:right}
.orders-compact-workspace .orders-ledger th:nth-child(6){width:130px;min-width:130px;text-align:center}
.orders-compact-workspace .orders-ledger td:nth-child(2),.orders-compact-workspace .orders-ledger td:nth-child(3),.orders-compact-workspace .orders-ledger td:nth-child(4){text-align:left;vertical-align:middle}
.orders-compact-workspace .orders-ledger td:nth-child(5){text-align:right;white-space:nowrap}
.orders-compact-workspace .orders-ledger td:nth-child(6){text-align:center;white-space:nowrap}
@media(max-width:800px){.orders-compact-workspace .orders-ledger table{min-width:680px}.orders-compact-workspace .orders-ledger th:nth-child(4){min-width:145px}.orders-compact-workspace .orders-ledger th:nth-child(6){min-width:105px}}

.material-table tr.liquidation-row td,.numbered-table tr.liquidation-row td{background:transparent!important;color:#b85c00!important}.liquidation-row .pill.orange{background:transparent!important;color:inherit!important;border:0!important;padding:0;font-weight:600}
/* Shipment form Z-2: fixed print layout, with VAT and signatures. */
dialog:has(#purchaseDocument.z2-document){width:1200px;max-width:96vw}
.z2-document{font:12px Arial,sans-serif;color:#000;background:#fff;padding:18px}.z2-reference{text-align:right;font-size:10px}.z2-document h1{font-size:19px;text-align:center}.z2-number{text-align:right;margin:12px 0}.z2-parties,.z2-lines{width:100%;border-collapse:collapse;table-layout:fixed;white-space:normal}.z2-document th,.z2-document td{border:1px solid #333;padding:4px;font:11px Arial,sans-serif;color:#000;background:#fff;position:static;overflow-wrap:anywhere;vertical-align:top}.z2-document th{text-align:center}.z2-lines td:nth-child(n+5){text-align:right}.z2-total{font-weight:bold}.z2-signatures{display:grid;grid-template-columns:1fr 1fr;gap:24px;break-inside:avoid}.client-analytics-table+ h3{margin-top:24px}#clientAnalyticsResult details{margin:12px 0}#clientAnalyticsResult summary{cursor:pointer;font-weight:bold;padding:10px;background:#eef1e9}
@media print{body.printing-purchase #purchasePrintRoot:has(.z2-document){page:shipment-z2}#purchasePrintRoot .z2-document{padding:0;font-size:10pt}#purchasePrintRoot .z2-document th,#purchasePrintRoot .z2-document td{font-size:8pt!important}#purchasePrintRoot .z2-lines thead{display:table-header-group}#purchasePrintRoot .z2-lines tr{break-inside:avoid}@page shipment-z2{size:A4 landscape;margin:10mm}}
/* Price approval and persistent workflow messages. */
.wf-navbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.wf-navbar a{font-size:12px;padding:4px 8px}.wf-warning{background:#fff0d1!important;color:#765015!important;padding:9px;border:1px solid #dfc58f;border-radius:4px}.wf-order-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px;background:var(--erp-head,#e3e6ea);border-radius:4px}.wf-order-summary small{width:100%;color:var(--erp-muted,#5c6673)}.wf-price-sheet input[type=number]{width:112px;min-height:29px;text-align:right}.wf-price-sheet [data-wf-selected]{width:18px}.wf-price-sheet td small{display:block;margin:4px 0;color:#986018}.wf-totals{padding:10px;background:var(--erp-head,#e3e6ea);line-height:1.8!important}.wf-hash{display:block;overflow-wrap:anywhere;font-size:11px}.wf-notification{padding:10px;border-bottom:1px solid #c5ccd4}.wf-notification.unread{border-left:4px solid #4d7291}#dialog:has(.wf-price-sheet){width:1280px}
