:root{font-family:'Microsoft YaHei',sans-serif;color:#293b48;background:#f3f5f7;font-size:14px}*{box-sizing:border-box}body{margin:0}header{height:64px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid #e0e7eb}header span,.muted,small{color:#72828d}aside{position:absolute;top:64px;bottom:0;width:185px;background:white;padding:18px 10px}aside button,summary{padding:11px 12px;cursor:pointer}aside button{display:block;width:100%;text-align:left;border:0}aside details button{padding-left:30px}aside button.active{background:#e6f7f8;color:#078994}main{margin-left:185px;padding:26px}h1{font-size:23px;font-weight:500;margin:4px 0 18px;overflow-wrap:anywhere}h2{font-size:16px;font-weight:500;margin:12px 0 16px}.title,.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.actions{justify-content:flex-end;margin-bottom:15px}.actions span{margin-right:auto}.panel{padding:22px;background:white;border:1px solid #e0e7eb;border-radius:6px;margin-bottom:16px}button,.button,input,select,textarea{font:inherit;border:1px solid #d6e0e6;border-radius:4px;padding:9px 12px;background:white;color:inherit}button,.button{cursor:pointer}.primary{background:#099da9;color:white;border-color:#099da9}button:disabled{opacity:.45;cursor:wait}label{display:block;margin-bottom:14px}label input,label select{display:block;width:100%;margin-top:7px}a{color:#088f9b;cursor:pointer}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;margin:15px 0}th,td{text-align:left;border-bottom:1px solid #e1e8ec;padding:12px 10px;white-space:nowrap}th{background:#f3f6f8;font-weight:500}td input{width:125px}td input[data-key="spec"]{width:220px}.split{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(400px,1.15fr);gap:18px}.split>.panel{min-width:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}.preview img{width:100%;height:auto}.preview iframe{width:100%;height:680px;border:1px solid #e1e8ec}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;font-size:12px}#notice{padding:13px;background:#e3f5f6;margin-bottom:15px;white-space:pre-wrap}#settings-form{max-width:760px}#warnings{padding-left:22px;color:#94610c}[hidden]{display:none!important}@media(max-width:1000px){.split{grid-template-columns:1fr}aside{width:155px}main{margin-left:155px}}
#drop-cover{position:fixed;inset:76px 22px 22px 198px;z-index:1000;display:grid;place-items:center;background:rgba(232,249,250,.96);border:3px dashed #099da9;border-radius:12px;color:#087d87;font-size:25px;pointer-events:none}
input[aria-invalid="true"]{border-color:#ce4a38;background:#fff4f1}#warnings{color:#a33926}
.board-tabs{display:flex;gap:6px;background:white;border-bottom:1px solid #dce5e9;margin:-10px 0 14px;padding:0 12px}.board-tabs button{border:0;border-radius:0;padding:13px 18px}.board-tabs button.active{color:#078f9a;border-bottom:3px solid #099da9}.board-filter{display:flex;align-items:end;gap:10px;padding:14px;margin-bottom:12px}.board-filter label{margin:0;min-width:150px}.board-filter input,.board-filter select{margin-top:5px;width:100%}.board-toolbar{display:flex;align-items:center;gap:9px;background:white;padding:14px;margin-bottom:1px;overflow:auto}.board-toolbar strong{margin-left:auto;white-space:nowrap}.purchase-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:4px 16px}.formula-box{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;background:#f3f8fa;border:1px solid #dce8ec;padding:14px;margin:8px 0 16px;border-radius:4px}#board-list .panel{border-radius:0;padding:0 12px}#board-list table{min-width:1750px}#board-list th,#board-list td{padding:10px 9px}td select{min-width:120px}@media(max-width:1200px){.purchase-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.board-filter{flex-wrap:wrap}}
#board-list .board-filter{display:grid;grid-template-columns:minmax(170px,1.15fr) minmax(150px,.9fr) minmax(170px,1.05fr) minmax(170px,1.05fr) minmax(160px,.9fr) minmax(150px,.85fr) 76px 76px;align-items:end;gap:12px;padding:16px 18px;margin-bottom:12px;border:1px solid #d9e7eb;background:#fff;box-shadow:0 2px 8px rgba(34,71,82,.06)}#board-list .board-filter label{min-width:0;margin:0;color:#334b55;font-weight:600}#board-list .board-filter input,#board-list .board-filter select{box-sizing:border-box;width:100%;height:38px;margin-top:7px;border:1px solid #cbdde3;border-radius:4px;background:#fff;padding:0 11px;transition:border-color .15s,box-shadow .15s}#board-list .board-filter input:focus,#board-list .board-filter select:focus{border-color:#0aa1ad;box-shadow:0 0 0 3px rgba(10,161,173,.11);outline:0}#board-list .board-filter>button{height:38px;border-radius:4px;padding:0 15px;white-space:nowrap}@media(max-width:1450px){#board-list .board-filter{grid-template-columns:repeat(4,minmax(160px,1fr))}#board-list .board-filter>button{min-width:90px}}@media(max-width:900px){#board-list .board-filter{grid-template-columns:repeat(2,minmax(160px,1fr))}}
.pending-purchase td{background:#fff4bf}.pending-purchase td:first-child{color:#8a6200;font-weight:600}
.board-buy-top{display:flex;gap:9px;background:white;padding:15px;margin-bottom:1px}.danger{background:#e83832;color:white;border-color:#e83832}.board-buy-table{padding:0;min-height:620px;margin:0}.board-buy-table table{min-width:2100px;margin:0}.board-buy-footer{position:sticky;bottom:0;display:flex;justify-content:center;align-items:center;gap:12px;background:white;border-top:1px solid #dce5e9;padding:14px;overflow:auto}.board-buy-footer span,.board-buy-footer button{white-space:nowrap}
.purchase-grid{grid-template-columns:repeat(3,minmax(250px,1fr));gap:8px 36px}#board-form .title{background:#fff;border-top:5px solid #777;padding:14px 20px;border-bottom:1px solid #d7e0e5}#board-form .title small{display:none}#board-form .title h1{font-size:20px;margin:0}#board-form .panel{border-radius:0;min-height:calc(100vh - 95px);padding:20px 48px}.close-button{border:0;background:transparent;color:#7d878c;font-size:26px;line-height:1;padding:4px 8px}.field-block{display:flex;flex-direction:column;gap:7px;color:#27343a;font-size:14px}.segment{display:flex;gap:10px}.segment button{flex:1;background:#fff;border:1px solid #bdcbd2;color:#5e686d;padding:11px 10px;border-radius:4px}.segment button.active{background:#18b3cb;border-color:#18b3cb;color:#fff;font-weight:600}.segment button:disabled{cursor:not-allowed;opacity:.65}.purchase-summary{margin-top:18px;text-align:right;font-size:15px}.purchase-summary strong{color:#f22929;margin-left:16px}.purchase-actions{justify-content:flex-end}.purchase-actions button{min-width:90px}@media(max-width:1200px){.purchase-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
.material-filter{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:12px}.material-filter label{margin:0}.material-toolbar{display:flex;gap:9px;background:white;padding:16px 18px;margin-bottom:1px}.material-table{border-radius:0;padding:0 12px;min-height:550px}.material-table table{min-width:1450px;margin-top:0}.material-table th{background:#dcecef}.material-table a{cursor:pointer}.delete-link{color:#e52c2c}.material-form-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:10px 30px}.material-form-grid .span-all{grid-column:1/-1}@media(max-width:1100px){.material-filter{grid-template-columns:repeat(2,minmax(170px,1fr))}.material-form-grid{grid-template-columns:repeat(2,minmax(200px,1fr))}}
.material-form-titlebar{background:#fff;border-top:5px solid #777;padding:14px 20px;border-bottom:1px solid #d7e0e5}.material-form-titlebar h1{font-size:19px;margin:0}.material-batch-form{border-radius:0;min-height:250px;padding:20px 18px}.material-entry-table{min-width:1450px;margin:0}.material-entry-table th{background:#eef1f7;padding:10px 8px}.material-entry-table td{border:0;padding:8px}.material-entry-table td:nth-child(1){width:230px}.material-entry-table td:nth-child(2){width:180px}.material-entry-table td:nth-child(3){width:210px}.material-entry-table td:nth-child(4),.material-entry-table td:nth-child(5),.material-entry-table td:nth-child(6){width:135px}.material-entry-table td:nth-child(7){width:130px}.material-entry-table td:nth-child(8){width:190px}.material-entry-table input{width:100%}.material-spec-pair{display:flex;gap:6px}.material-spec-pair select{min-width:0;flex:1}.round-add,.round-remove{width:29px;height:29px;border-radius:50%;padding:0;background:#3159df;color:#fff;border-color:#3159df;font-size:20px;line-height:1}.round-remove{background:#e14a45;border-color:#e14a45;margin-left:5px}.material-form-actions{margin:42px 0 0}.material-form-actions button{min-width:88px}
.material-price-panel{border-radius:0;padding:20px 18px;max-width:920px;min-height:260px}.material-price-table{margin:0}.material-price-table th{background:#dcecef}.material-price-table td,.material-price-table th{padding:10px 16px}.material-price-table td:first-child{width:60px}.material-price-table input{width:190px}
.trend-card{border-radius:0;padding:22px;max-width:1100px}.trend-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.trend-summary span{background:#f3f8fa;border:1px solid #dce8ec;padding:16px;border-radius:5px}.trend-summary strong{display:block;color:#0795a1;font-size:22px;margin-top:8px}.price-chart{height:320px;border:1px solid #e0e8ec;background:#fff;padding:8px;margin-bottom:20px;display:grid;place-items:center;color:#83919a}.price-chart svg{width:100%;height:100%}.chart-grid{stroke:#dfe7eb;stroke-width:1}.price-line{fill:none;stroke:#12a7b5;stroke-width:3}.price-dot{fill:#fff;stroke:#12a7b5;stroke-width:3}.price-chart text{fill:#61717a;font-size:12px}.chart-value{fill:#087f89!important;font-weight:600}.chart-date{font-size:11px!important}.trend-history th{background:#dcecef}.price-up{color:#e04b3f}.price-down{color:#07966e}@media(max-width:900px){.trend-summary{grid-template-columns:repeat(2,1fr)}}
.supplier-filter{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(140px,.7fr) auto auto;align-items:end;gap:14px;margin-bottom:12px}.supplier-filter label{margin:0}.supplier-table{border-radius:0;padding:0 12px;min-height:550px}.supplier-table table{min-width:1500px;margin-top:0}.supplier-table th{background:#dcecef}.supplier-table a{cursor:pointer}.supplier-form-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:10px 30px;border-radius:0;padding:24px}.supplier-form-grid .span-all{grid-column:1/-1}@media(max-width:1100px){.supplier-filter{grid-template-columns:repeat(2,minmax(170px,1fr))}.supplier-form-grid{grid-template-columns:repeat(2,minmax(200px,1fr))}}
.material-entry-table td>select{width:100%}
#board-form .panel{padding:14px 24px;min-height:calc(100vh - 85px)}#board-form .purchase-grid{gap:2px 24px}#board-form .purchase-grid label{margin-bottom:8px}#board-form input,#board-form select,#board-form textarea{padding:7px 10px}#board-form .field-block{gap:5px}#board-form .segment button{padding:8px 8px}#board-form .formula-box{padding:10px 12px;margin:7px 0 10px}.carton-dimensions{grid-column:1/-1}.dimension-fields{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:7px;align-items:center}.dimension-fields b{color:#7d898f;font-weight:400}#board-form textarea{width:100%}#board-form .purchase-summary{margin-top:8px}

.row-actions{display:flex;gap:8px;align-items:center}.row-actions button{white-space:nowrap}
.item-actions{display:flex;gap:6px}.item-actions button{white-space:nowrap;padding:8px 10px}
.spec-convert{position:relative;width:220px}.spec-convert input{width:100%!important;padding-right:38px}.spec-convert .convert-icon{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:29px;height:29px;padding:0;border:0;background:transparent;color:#0795a1;font-size:20px;font-weight:700;line-height:29px}.spec-convert .convert-icon:hover{background:#e6f7f8}
.product-tabs{display:flex;gap:6px;background:#fff;border-bottom:1px solid #dce5e9;padding:0 12px;margin:-10px 0 14px}.product-tabs button{border:0;border-radius:0;padding:13px 18px}.product-tabs button.active{color:#078f9a;border-bottom:3px solid #099da9}.product-filter{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:12px}.product-filter label{margin:0}.product-toolbar{display:flex;gap:9px;background:#fff;padding:16px 18px;margin-bottom:1px}.product-table{border-radius:0;padding:0 12px;min-height:520px}.product-table table{min-width:1500px;margin-top:0}.product-table th{background:#dcecef}.product-table a{cursor:pointer;margin-right:10px}.product-form-titlebar{background:#fff;border-top:5px solid #777;padding:14px 20px;border-bottom:1px solid #d7e0e5}.product-form-titlebar h1{font-size:20px;margin:3px 0 0}.product-form-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:8px 30px;border-radius:0;padding:24px;min-height:calc(100vh - 110px)}.product-form-grid .span-all{grid-column:1/-1}.product-spec .product-spec-title{display:inline;margin:0}.product-spec .required-mark{color:#e53935;font-style:normal}.product-spec .required-mark[hidden]{display:none}.product-spec .product-spec-inputs{display:flex;align-items:center;gap:7px;margin-top:7px}.product-spec .product-spec-inputs input{margin:0;min-width:0}.product-spec b{font-weight:400;color:#7a888f}@media(max-width:1100px){.product-filter,.product-form-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
.product-filter{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(300px,1.6fr) minmax(160px,1fr) minmax(150px,1fr) auto auto}.filter-spec{display:flex;align-items:center;gap:5px;margin-top:7px}.filter-spec input{min-width:0;margin:0}.filter-spec b{font-weight:400;color:#7b878d}.product-table table{min-width:2250px}.product-row-actions{display:flex;gap:7px}.product-row-actions a{margin:0}.product-toolbar{align-items:center}
.product-form-unit{display:flex;align-items:center;gap:10px}.product-editor{display:grid;grid-template-columns:minmax(760px,1fr) 360px;gap:22px;background:#fff;min-height:calc(100vh - 100px);padding:22px 28px 80px}.product-editor-main{min-width:0}.product-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:6px 28px}.product-basic-grid label{margin-bottom:8px}.product-basic-grid input,.product-basic-grid select{margin-top:6px}.process-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0 16px}.process-row label{display:flex;align-items:center;gap:5px;margin:0}.process-row input{width:auto;margin:0}.product-print-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;align-items:end}.product-print-grid label{min-width:0}.product-print-grid input,.product-print-grid select{width:100%}.product-note{margin:2px 0 14px}.section-title{border-left:4px solid #16b4c6;padding-left:10px;margin:18px 0 14px}.product-price-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}.product-material-card{border:1px solid #dce5e9}.product-material-tabs{display:flex;gap:4px;padding:0 10px}.product-material-tabs button{border:0;border-radius:0}.product-material-tabs button.active{color:#128fa0;border-bottom:2px solid #16afc0}.product-material-head,.product-material-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(175px,1.35fr) minmax(120px,.8fr) minmax(250px,1.7fr) minmax(100px,.65fr);gap:12px;align-items:center;padding:10px 14px}.product-material-head{background:#dcecef;font-weight:600}.product-material-row>span{display:flex;gap:5px}.product-material-row select{min-width:70px}.product-material-row input{width:100%}.product-material-price-input{min-width:0;text-align:right}.product-material-row .product-spec{display:block;min-width:0}.product-material-row .product-spec>span{display:flex;align-items:center;gap:6px;width:100%;min-width:0;flex-wrap:nowrap}.product-material-row .product-spec input{flex:1 1 0;width:0;min-width:0;margin:0}.product-material-row .product-spec b{flex:0 0 auto}.product-cost-table{margin-top:24px;border:1px solid #ccd8de}.product-cost-table>div{display:grid;grid-template-columns:90px 1fr 2fr 1fr 1fr 1fr 1fr 1fr}.product-cost-table b,.product-cost-table span,.product-cost-table strong{padding:11px;border-right:1px solid #ccd8de;text-align:center}.product-cost-table>div:first-child{background:#f3f6f8}.product-cost-margin{color:#f05a24}.product-art-panel{position:static;width:auto;background:#fff;padding:0;border:1px solid #dce5e9;height:fit-content}.product-art-panel h3{font-size:15px;border-left:4px solid #16b4c6;padding-left:9px;margin:16px}.product-upload{display:grid;place-items:center;width:92px;height:92px;border:1px dashed #9fb1bb;font-size:38px;color:#8596a0;margin:12px 16px}.dieline-preview{padding:18px;display:flex;align-items:center;gap:12px}.dieline-box{display:grid;grid-template-columns:repeat(4,45px);width:180px;height:75px;border:2px solid #536a78}.dieline-box i{border-right:1px dashed #536a78}.dieline-size{font-size:12px}.product-savebar{position:fixed;left:185px;right:0;bottom:0;z-index:20;display:flex;justify-content:center;align-items:center;gap:16px;background:#fff;border-top:1px solid #d7e0e5;padding:12px}.product-savebar label{display:flex;align-items:center;gap:5px;margin:0}.product-savebar input{width:auto;margin:0}.product-savebar select{width:auto}.product-savebar button{min-width:80px}@media(max-width:1200px){.product-editor{grid-template-columns:1fr}.product-basic-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.product-art-panel{display:none}.product-print-grid{grid-template-columns:repeat(2,1fr)}}

.customer-filter{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:12px}.customer-filter label{margin:0}.customer-table{border-radius:0;padding:0 12px;min-height:550px}.customer-table .scroll{border:1px solid #d7e2e7}.customer-table table{min-width:1490px;margin-top:0;table-layout:fixed}.customer-table th{background:#dcecef;white-space:nowrap;text-align:center}.customer-table th,.customer-table td{box-sizing:border-box;padding:10px 8px;vertical-align:middle}.customer-table tbody tr:hover td{background:#f3fafb}.customer-table a{cursor:pointer}.customer-table th:nth-child(1),.customer-table td:nth-child(1){width:44px;text-align:center}.customer-table th:nth-child(2),.customer-table td:nth-child(2){width:142px}.customer-table th:nth-child(3),.customer-table td:nth-child(3){width:92px}.customer-table th:nth-child(4),.customer-table td:nth-child(4){width:130px}.customer-table th:nth-child(5),.customer-table td:nth-child(5){width:105px}.customer-table th:nth-child(6),.customer-table td:nth-child(6){width:82px}.customer-table th:nth-child(7),.customer-table td:nth-child(7){width:118px}.customer-table th:nth-child(8),.customer-table td:nth-child(8){width:250px}.customer-table th:nth-child(9),.customer-table td:nth-child(9){width:165px}.customer-table th:nth-child(10),.customer-table td:nth-child(10){width:105px}.customer-table th:nth-child(11),.customer-table td:nth-child(11){width:88px}.customer-table th:nth-child(12),.customer-table td:nth-child(12){width:68px;text-align:center}.customer-table th:nth-child(13),.customer-table td:nth-child(13){width:150px}.customer-table td:nth-child(n+3){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-row-actions{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.customer-row-actions a{margin:0}.customer-row-actions .delete-link{color:#e23b35}.customer-form-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:12px 30px;border-radius:0;padding:24px}.customer-form-grid .span-all{grid-column:1/-1}.customer-form-grid .span-2{grid-column:span 2}@media(max-width:1100px){.customer-filter{grid-template-columns:repeat(2,minmax(170px,1fr))}.customer-form-grid{grid-template-columns:repeat(2,minmax(200px,1fr))}.customer-form-grid .span-2{grid-column:1/-1}}

.suite-editor{background:#fff;min-height:calc(100vh - 105px);padding:20px 28px 90px}.suite-basic{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:30px}.suite-section-title{display:flex;align-items:center;gap:18px;border-left:4px solid #16b4c6;padding-left:9px;margin:20px 0 12px}.suite-section-title h2{font-size:17px;margin:0}.suite-section-title span{color:#4e5e66}.suite-items{padding:0;border-radius:0}.suite-items table{min-width:1450px;margin:0}.suite-items th{background:#dcecef}.suite-items td{vertical-align:middle}.suite-item-actions{display:flex;gap:8px}.suite-item-actions button{padding:6px 8px}.suite-item-name{display:flex;gap:6px;align-items:center}.suite-item-name input{min-width:230px}.suite-item-name button{white-space:nowrap}.suite-price-row{display:grid;grid-template-columns:1fr 1fr auto;gap:70px;align-items:end;max-width:1350px}.suite-price-row label{position:relative}.suite-price-row label span{position:absolute;right:10px;bottom:9px;color:#718088}.suite-price-row label input{padding-right:55px}.suite-price-row button{color:#345bde;border:0}.suite-profit-table{border:1px solid #b9c6cd;margin-top:10px}.suite-profit-table>div{display:grid;grid-template-columns:150px 1fr 1.6fr 1.4fr 1.6fr 1.4fr 1.6fr}.suite-profit-table b,.suite-profit-table span,.suite-profit-table strong{padding:11px;border-right:1px solid #b9c6cd;border-bottom:1px solid #b9c6cd;text-align:center}.suite-profit-table>div:first-child{background:#f3f6f8}.suite-note{display:block;margin-top:18px}@media(max-width:1100px){.suite-basic{grid-template-columns:1fr}.suite-price-row{grid-template-columns:1fr}.suite-profit-table{overflow:auto}.suite-profit-table>div{min-width:1000px}}

.suite-item-name .link-button{border:0;background:transparent;color:#168fa2;padding:5px 2px;white-space:nowrap}.suite-item-name .link-button:hover{text-decoration:underline}
.material-master-form{border-radius:0;min-height:430px;padding:22px 26px}.material-core-card,.material-quotes-card{border:1px solid #d9e4e8;background:#fff}.material-core-card h2,.material-quotes-title h2{font-size:17px;margin:0}.material-core-card h2{padding:15px 18px;border-left:4px solid #16b4c6;border-bottom:1px solid #e2eaed}.material-core-grid{display:grid;grid-template-columns:1.5fr .7fr .7fr 1.2fr 2fr;gap:18px;padding:18px}.material-core-grid label{margin:0}.material-core-note{min-width:220px}.material-quotes-card{margin-top:18px}.material-quotes-title{display:flex;align-items:center;justify-content:space-between;padding:14px 18px}.material-quotes-title>div{border-left:4px solid #16b4c6;padding-left:10px}.material-quotes-title p{margin:4px 0 0;color:#728087}.material-quote-table{margin:0;min-width:900px}.material-quote-table th{background:#dcecef}.material-quote-table th,.material-quote-table td{padding:10px 14px}.material-quote-table th:first-child{width:30%}.material-quote-table th:nth-child(2){width:22%}.material-quote-table input,.material-quote-table select{width:100%;margin:0}.material-quote-remove{background:transparent;border:0;padding:7px}.material-master-form .material-form-actions{justify-content:flex-end;margin-top:24px}@media(max-width:1100px){.material-core-grid{grid-template-columns:repeat(2,minmax(190px,1fr))}.material-core-note{grid-column:1/-1}}

.draft-error td{background:#fff6f3}.draft-error td:nth-child(4){color:#d83a2f;font-weight:600}

.board-buy-table td select{min-width:150px;margin:0;padding:6px 8px}

.board-buy-table .board-weight-input{min-width:170px;width:100%;margin:0;padding:6px 8px}

.board-buy-table .board-quantity-input{min-width:90px;width:100%;margin:0;padding:6px 8px}
.purchase-list-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:14px 18px;margin-bottom:14px}.purchase-list-toolbar>div{display:flex;gap:10px}.purchase-document{background:#fff;border:1px solid #ccd8de;margin:0 auto 22px;max-width:1500px;padding:28px 32px;box-shadow:0 2px 8px #20313a14}.purchase-document-title{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #253b46;padding-bottom:14px}.purchase-document-title small{color:#677780}.purchase-document-title h1{font-size:27px;letter-spacing:4px;margin:5px 0 0}.purchase-document-title>strong{border:1px solid #e1a61c;color:#9a6b00;background:#fff7d7;padding:7px 17px;border-radius:18px}.purchase-document-meta{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #cbd7dd;border-bottom:0;margin-top:18px}.purchase-document-meta div{padding:10px 14px;border-right:1px solid #cbd7dd}.purchase-document-meta div:last-child{border:0}.purchase-document-meta span{display:block;color:#78868d;font-size:12px;margin-bottom:4px}.purchase-list-table{margin:0;min-width:1250px;border:1px solid #cbd7dd}.purchase-list-table th{background:#dcecef;white-space:nowrap}.purchase-list-table td,.purchase-list-table th{padding:10px 9px;border:1px solid #cbd7dd}.purchase-list-table td:nth-child(n+6):nth-child(-n+10){text-align:right}.purchase-document-summary{display:flex;justify-content:flex-end;gap:34px;background:#f5f8f9;border:1px solid #cbd7dd;border-top:0;padding:14px}.purchase-document-summary b{color:#0b7f89}.purchase-document-sign{display:flex;justify-content:space-between;padding:38px 28px 8px;color:#52646d}@media print{header,aside,.purchase-list-toolbar,#notice{display:none!important}main{margin:0!important;padding:0!important}.purchase-document{box-shadow:none;border:0;page-break-after:always;margin:0;max-width:none}.purchase-document:last-child{page-break-after:auto}}
.handwritten-purchase{max-width:1120px;padding:34px 42px;color:#18282f}.handwritten-title{display:flex;justify-content:space-between;align-items:end;border-bottom:2px solid #263b45;padding:0 0 14px;font-size:20px}.handwritten-title strong{font-size:28px;margin-left:8px}.handwritten-title small{color:#728087}.handwritten-material{display:flex;align-items:center;gap:8px;padding:18px 4px;font-size:18px}.handwritten-material strong{font-size:22px;letter-spacing:1px}.handwritten-table{min-width:0;width:100%;margin:0;border:2px solid #536873}.handwritten-table th{background:#eef4f6;font-size:14px}.handwritten-table th,.handwritten-table td{border:1px solid #8fa0a8;padding:13px 10px}.handwritten-table th:first-child,.handwritten-table td:first-child{width:65px;text-align:center;font-weight:700}.handwritten-table th:nth-child(2){width:30%}.handwritten-table td:nth-child(n+3){text-align:center;font-size:15px}.handwritten-note{display:flex;justify-content:space-between;gap:24px;border:1px solid #8fa0a8;border-top:0;padding:16px 18px;min-height:58px}.handwritten-note>div{display:flex;gap:7px}.handwritten-note>strong{white-space:nowrap;font-size:17px}.handwritten-footer{display:flex;justify-content:flex-end;gap:28px;padding:38px 8px 2px;font-size:16px;font-weight:600}@media print{.handwritten-purchase{padding:12mm 10mm}.handwritten-table{font-size:11pt}}
.handwritten-purchase:has(.hybrid-purchase-table){max-width:1580px}.hybrid-purchase-meta{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #9cacb4;border-bottom:0}.hybrid-purchase-meta>div{padding:10px 14px;border-right:1px solid #9cacb4}.hybrid-purchase-meta>div:last-child{border-right:0}.hybrid-purchase-meta span{display:block;color:#718087;font-size:12px;margin-bottom:3px}.hybrid-purchase-table{min-width:1450px}.hybrid-purchase-table th:nth-child(-n+6){background:#d8ebef}.hybrid-purchase-table th:nth-child(n+7){background:#eef3f5;color:#53656e}.hybrid-purchase-table td:nth-child(n+6):nth-child(-n+10){text-align:right}.handwritten-note{align-items:center}.hybrid-totals{display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:20px!important}.hybrid-totals b{color:#087f89}.handwritten-footer{align-items:center}.handwritten-footer strong{margin-left:auto}
.purchase-production-body{display:grid;grid-template-columns:minmax(780px,1fr) 310px;gap:16px;align-items:stretch}.purchase-production-body .hybrid-purchase-table{min-width:0}.purchase-reference{border:1px solid #8fa0a8;background:#fbfcfd;padding:14px 16px}.purchase-reference h3{margin:0 0 10px;padding-bottom:9px;border-bottom:1px solid #cbd6db;font-size:16px}.purchase-reference>div{display:grid;grid-template-columns:32px 1fr;gap:4px 8px;padding:10px 0;border-bottom:1px dashed #d5dfe3}.purchase-reference>div:last-child{border-bottom:0}.purchase-reference b{grid-row:1/4;color:#087f89}.purchase-output-count{grid-column:2;color:#087f89;font-size:12px;font-weight:600;line-height:1.2}.purchase-reference span,.purchase-reference strong{overflow-wrap:anywhere}.purchase-reference span{font-size:13px;color:#52656e}.purchase-reference strong{font-size:14px}.purchase-note-editor{display:grid;grid-template-columns:auto auto minmax(240px,1fr) auto;gap:12px;align-items:center;border:1px solid #8fa0a8;border-top:0;padding:13px 16px}.purchase-note-tags{display:flex;flex-wrap:wrap;gap:7px}.purchase-note-tags button{padding:5px 10px;border:1px solid #8ab8bf;background:#edf8f9;color:#087f89;border-radius:14px}.purchase-note-editor textarea{width:100%;min-height:48px;resize:vertical;margin:0}.purchase-note-editor .hybrid-totals{white-space:nowrap}@media(max-width:1150px){.purchase-production-body{grid-template-columns:1fr}.purchase-note-editor{grid-template-columns:auto 1fr}.purchase-note-editor textarea,.purchase-note-editor .hybrid-totals{grid-column:1/-1}}@media print{.purchase-production-body{grid-template-columns:minmax(0,1fr) 68mm}.purchase-note-tags{display:none}.purchase-note-editor{grid-template-columns:auto 1fr auto}.purchase-note-editor textarea{border:0;resize:none}}
.purchase-production-body{gap:26px;align-items:start}.purchase-reference{border:0;background:transparent;padding:0 4px}.purchase-reference h3{border-bottom:2px solid #263b45;padding:8px 0 10px}.purchase-reference>div{padding:12px 0}.purchase-row-note{width:150px;min-width:130px;margin:0;padding:7px 8px}.purchase-list-row-totals{display:flex;justify-content:flex-end;gap:22px;border-top:1px solid #8fa0a8;padding:12px 4px 0;margin-top:12px}.purchase-list-row-totals b{color:#087f89}.purchase-production-body .hybrid-purchase-table th:last-child{min-width:165px}
.purchase-sheet-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0}.purchase-sheet-main{min-width:0;padding-right:26px}.purchase-sheet-layout>.purchase-reference{border-left:2px solid #d24b4b;padding:12px 0 12px 22px;min-height:100%;align-self:stretch}.purchase-sheet-main .hybrid-purchase-table{min-width:0}.purchase-sheet-main .handwritten-footer{padding-top:38px}.purchase-sheet-main .purchase-list-row-totals{margin-top:18px}@media(max-width:1150px){.purchase-sheet-layout{grid-template-columns:1fr}.purchase-sheet-main{padding-right:0}.purchase-sheet-layout>.purchase-reference{border-left:0;border-top:2px solid #d24b4b;margin-top:20px;padding:16px 0 0}}@media print{.purchase-sheet-layout{grid-template-columns:minmax(0,1fr) 68mm}.purchase-sheet-main{padding-right:7mm}.purchase-sheet-layout>.purchase-reference{padding-left:6mm}}
.purchase-delivery-input{width:132px;min-width:122px;margin:0;padding:7px 6px}
.purchase-sheet-layout>.purchase-reference{position:relative}.purchase-sheet-layout>.purchase-reference>div{position:absolute;left:22px;right:0;display:grid;align-content:center;padding:4px 0;margin:0;box-sizing:border-box}.purchase-sheet-layout>.purchase-reference>div span,.purchase-sheet-layout>.purchase-reference>div strong{font-size:12px;line-height:1.25}.purchase-sheet-layout>.purchase-reference>div strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:1150px){.purchase-sheet-layout>.purchase-reference>div{position:static;height:auto!important}}
.purchase-production-body .hybrid-purchase-table th:nth-child(3),.purchase-production-body .hybrid-purchase-table td:nth-child(3){min-width:150px}
.purchase-material-sections{display:flex;flex-direction:column;gap:18px}.purchase-material-section .material-section-label{padding:14px 4px 10px}.purchase-material-section+.purchase-material-section{border-top:1px solid #8fa0a8;padding-top:4px}.purchase-material-section .hybrid-purchase-table{margin:0}.purchase-production-body .hybrid-purchase-table th:nth-child(3),.purchase-production-body .hybrid-purchase-table td:nth-child(3){min-width:0}
.board-buy-table .board-square-price-input{min-width:90px;width:100%;margin:0;padding:6px 8px}
.purchase-document .handwritten-table th,.purchase-document .hybrid-purchase-table th:nth-child(-n+6),.purchase-document .hybrid-purchase-table th:nth-child(n+7){background:#fff!important;color:#18282f}
.purchase-row-note-wrap{display:grid;grid-template-columns:88px minmax(140px,1fr);gap:6px;align-items:start}.purchase-note-preset{width:88px;min-width:0;margin:0;padding:7px 5px}.purchase-row-note{width:100%;min-width:140px;min-height:34px;height:34px;margin:0;padding:7px 8px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box}.purchase-sheet-main .hybrid-purchase-table th:last-child{min-width:250px}
.purchase-row-note-wrap{display:block}.purchase-row-note-wrap .purchase-row-note{min-width:220px}
.purchase-row-note-wrap{position:relative}.purchase-note-quick{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;display:flex;flex-wrap:wrap;gap:5px;padding:7px;background:#fff;border:1px solid #aebdc5;border-radius:4px;box-shadow:0 4px 12px #20313a24}.purchase-note-quick[hidden]{display:none}.purchase-note-quick button{padding:5px 8px;border:1px solid #8ab8bf;background:#edf8f9;color:#087f89;border-radius:13px;white-space:nowrap}
.purchase-document .handwritten-title strong{font-size:22px}.purchase-document .material-section-label strong{font-size:18px}.purchase-document .material-section-label{font-size:15px}

.purchase-order-link{border:0;background:transparent;color:#087f89;padding:2px 0;text-decoration:underline;font-weight:700;white-space:nowrap;cursor:pointer}.purchase-order-link:hover{color:#045e65}
#board-list th:first-child,#board-list td:first-child{width:36px;min-width:36px;max-width:36px;padding-left:4px;padding-right:4px;text-align:center}#board-list th:first-child input,#board-list td:first-child input{display:block;width:15px;height:15px;margin:0 auto}


.board-buy-table th,.board-buy-table td{vertical-align:middle}.board-buy-table th:nth-child(2),.board-buy-table td:nth-child(2){width:38px;min-width:38px;text-align:center;padding-left:5px;padding-right:5px}.board-buy-table th:nth-child(3),.board-buy-table td:nth-child(3){width:104px;min-width:104px}.board-row-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}.board-row-actions button{padding:5px 8px;margin:0}.board-edit-button{color:#078f9a;border-color:#8fc9ce;background:#f4fbfc}.board-buy-table td select{min-width:112px;width:112px;padding:6px 24px 6px 7px}.board-buy-table .board-quantity-input,.board-buy-table .board-square-price-input{min-width:76px;width:76px}.board-buy-table .board-weight-input{min-width:150px;width:150px}

.received-purchase td{background:#e8f5fb;color:#244754}.received-purchase td:first-child{color:#087f89}

.dieline-box i:last-child{border-right:0}

.dieline-box{position:relative;display:block;overflow:hidden}.dieline-box .dieline-line{position:absolute;display:block;margin:0;padding:0}.dieline-box .dieline-line.vertical{top:0;bottom:0;width:0;border-right:2px solid #536a78}.dieline-box .dieline-line.horizontal{left:0;right:0;height:0;border-top:1px dashed #536a78}
.dieline-box .dieline-line.horizontal{border-right:0}

.formula-status{display:block;min-height:16px;margin-top:4px;font-size:12px;color:#6b7b83}.formula-status.error{color:#d93025}.formula-status.valid{color:#16865a}#product-crease-formula[aria-invalid="true"]{border-color:#d93025;background:#fff7f6}

/* Product editor layout */
.product-editor-main{display:flex;flex-direction:column;gap:18px}
.product-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;padding:18px 20px 20px;border:1px solid #d7e2e7;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(39,68,82,.05)}
.product-basic-grid .product-group-title{grid-column:1/-1;margin:4px 0 0;padding:0 0 9px 11px;border-left:4px solid #13a9b9;border-bottom:1px solid #e2eaee;font-size:16px;color:#273f4a}
.product-basic-grid .product-group-title:not(:first-child){margin-top:10px}
.product-basic-grid .product-layout-field{margin:0;min-width:0;padding:0;color:#334c57;font-weight:600}
.product-basic-grid .product-layout-field input,.product-basic-grid .product-layout-field select{height:38px;margin-top:6px;background:#fbfdfe;border-color:#cfdce2;font-weight:400}
.product-basic-grid .product-layout-field input:focus,.product-basic-grid .product-layout-field select:focus{background:#fff;border-color:#12aabd;box-shadow:0 0 0 2px rgba(18,170,189,.10)}
.product-basic-grid .product-spec{align-self:start}
.product-basic-grid .product-spec .product-spec-inputs{height:38px;margin-top:6px}
.product-basic-grid .product-spec .product-spec-inputs input{height:38px}
.product-basic-grid .formula-status{font-weight:400;line-height:1.35}
.product-editor-main>.process-row,.product-editor-main>.product-print-grid,.product-editor-main>.product-note{margin:0;padding:16px 20px;border:1px solid #d7e2e7;border-radius:8px;background:#fff}
.product-editor-main>.process-row{gap:18px}
.product-editor-main>.product-print-grid{padding-top:18px;padding-bottom:18px}
.product-editor-main>.product-note textarea{margin-top:7px}
.product-note-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.product-note-row>.product-note{display:grid;margin:0;padding:16px 20px;border:1px solid #d7e2e7;border-radius:8px;background:#fff}
.product-note-row>.product-note textarea{box-sizing:border-box;width:100%;margin-top:7px;resize:vertical}
@media(max-width:800px){.product-note-row{grid-template-columns:1fr}}
.product-editor-main>.section-title{margin:2px 0 -6px;font-size:17px}
.product-price-grid{padding:18px 20px;border:1px solid #d7e2e7;border-radius:8px;background:#fff;gap:18px}
.product-price-grid.has-minimum-order{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-material-card{border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(39,68,82,.04)}
.product-cost-table{margin-top:0;border-radius:8px;overflow:hidden;background:#fff}
.product-art-panel{border-radius:8px;box-shadow:0 2px 8px rgba(39,68,82,.05)}
.product-art-files{display:flex;flex-direction:column;gap:8px;max-height:230px;overflow-y:auto;margin:0 16px 18px;padding-right:2px}.product-art-empty{color:#8798a1;font-size:13px;padding:2px 0}.product-art-file{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:9px 10px;border:1px solid #dce5e9;border-radius:6px;background:#f7fafb}.product-art-file a{display:block;min-width:0;color:#078da0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.product-art-file a::before{content:'📄';margin-right:7px}.product-art-panel .product-art-file button{display:inline-flex;width:auto;min-width:0;align-items:center;justify-content:center;flex:0 0 auto;padding:5px 9px;font-size:12px;line-height:1.2;white-space:nowrap;border-radius:4px}
.process-position-actions{display:flex;align-items:center;gap:5px}.process-position-actions b{min-width:20px;text-align:center}.process-position-actions button{width:27px;height:27px;padding:0;color:#078f9a;border-color:#9bcbd0;background:#f3fbfc}.process-position-actions button:disabled{color:#9aa9af;cursor:not-allowed}
.process-default-cell{text-align:center}.process-default-cell input{width:17px;height:17px;margin:0;cursor:pointer}
@media(max-width:1200px){.product-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.product-basic-grid{grid-template-columns:1fr}.product-editor{padding-left:14px;padding-right:14px}.product-print-grid,.product-price-grid{grid-template-columns:1fr}}


/* 套装产品父子行 */
.product-select-cell{white-space:nowrap}.suite-expand-toggle{width:22px;height:22px;margin-right:5px;padding:0;border:0;background:transparent;color:#536b75;font-size:20px;line-height:20px;vertical-align:middle;cursor:pointer}.suite-parent-row{background:#f8fbfc}.suite-parent-row td{font-weight:500}.suite-child-row{background:#fff}.suite-child-row td{border-top-color:#e5ecef;color:#435861}.suite-child-row td:first-child{border-left:3px solid #12a7b4}.suite-child-actions{padding-left:14px!important;white-space:nowrap}.suite-child-actions strong{display:inline-block;min-width:42px;color:#172f38}.suite-child-actions a{margin-left:10px}

/* 产品档案表格固定列，保证套装父子行严格对齐 */
.product-table table{width:2250px;min-width:2250px;table-layout:fixed}
.product-table th,.product-table td{box-sizing:border-box;vertical-align:middle}
.product-table th:nth-child(1),.product-table td:nth-child(1){width:62px;min-width:62px;max-width:62px;padding-left:5px;padding-right:5px;text-align:center}
.product-table th:nth-child(2),.product-table td:nth-child(2){width:125px}
.product-table th:nth-child(3),.product-table td:nth-child(3){width:245px}
.product-table th:nth-child(4),.product-table td:nth-child(4){width:90px}
.product-table th:nth-child(5),.product-table td:nth-child(5){width:90px}
.product-table th:nth-child(6),.product-table td:nth-child(6){width:310px}
.product-table th:nth-child(7),.product-table td:nth-child(7){width:125px}
.product-table th:nth-child(8),.product-table td:nth-child(8){width:110px}
.product-table th:nth-child(9),.product-table td:nth-child(9){width:90px}
.product-table th:nth-child(10),.product-table td:nth-child(10){width:155px}
.product-table th:nth-child(n+11),.product-table td:nth-child(n+11){width:134px}
.product-select-cell{white-space:nowrap;text-align:left!important}
.product-select-cell input{width:15px;height:15px;margin:0;vertical-align:middle}
.suite-expand-toggle{width:20px;height:20px;margin:0 5px 0 0;font-size:18px}
.suite-child-row td{height:38px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suite-child-row td:first-child{border-left:3px solid #12a7b4}

/* 套装行保持标准表格单元格，分隔线按整行连续绘制 */
.product-table td.product-row-actions{display:table-cell;white-space:nowrap}
.product-table td.product-row-actions a{display:inline-block;margin-right:7px}
.product-table .suite-child-row{border-bottom:1px solid #e1e8ec}
.product-table .suite-child-row td{border-bottom:0}
.product-table .suite-child-row:last-of-type{border-bottom:1px solid #d5e0e5}


/* 手动新增纸板采购：按业务步骤分区 */
#board-form{background:#f4f7f9}
#board-form .title{position:sticky;top:0;z-index:5;border-top:0;border-left:5px solid #16a9bd;box-shadow:0 1px 5px rgba(36,66,80,.08)}
#board-form .panel{background:transparent;padding:18px 26px 34px}
#board-form .purchase-grid{display:block}
.board-form-section{margin-bottom:15px;border:1px solid #d5e1e6;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(35,64,78,.04);overflow:hidden}
.board-form-section h2{margin:0;padding:11px 16px;border-bottom:1px solid #deeaee;background:#f5fafb;color:#27424e;font-size:15px;font-weight:700}
.board-form-section h2:before{content:'';display:inline-block;width:4px;height:16px;margin-right:9px;border-radius:2px;background:#16adbf;vertical-align:-3px}
.board-section-grid{display:grid;gap:12px 18px;padding:15px 16px 17px;align-items:end}
.board-section-grid label,.board-section-grid .field-block{min-width:0;margin:0!important}
.board-section-grid input,.board-section-grid select{width:100%;margin-top:6px}
.board-section-material .board-section-grid{grid-template-columns:1.05fr 1.35fr 1.2fr .62fr .68fr .8fr}
.board-section-order .board-section-grid{grid-template-columns:1.35fr 1.35fr .65fr .85fr}
.board-section-structure .board-section-grid{grid-template-columns:.75fr 1.35fr 1.05fr 1.55fr;align-items:start}
.board-section-size .board-section-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}
#board-form .segment{margin-top:6px;gap:7px}
#board-form .segment button{min-height:36px;padding:7px 8px;white-space:nowrap}
#board-form .formula-box{display:grid;grid-template-columns:1fr 1fr .8fr .8fr;gap:0;margin:0 0 15px;padding:0;border:1px solid #cfe0e6;border-radius:8px;background:#fff;overflow:hidden}
#board-form .formula-box>div{padding:13px 16px;border-right:1px solid #dce8ec;background:#f3fafc}
#board-form .formula-box>div:last-child{border-right:0}
#board-form .formula-box span{color:#087f8c;font-weight:700}
#board-form>form>label{display:block;padding:14px 16px 16px;border:1px solid #d5e1e6;border-radius:8px;background:#fff}
#board-form textarea{min-height:66px;margin-top:7px;resize:vertical}
#board-form .purchase-summary{padding:12px 16px;margin-top:12px;border-radius:7px;background:#eef8fa;font-size:16px}
#board-form .purchase-actions{margin-top:10px}
@media(max-width:1250px){.board-section-material .board-section-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.board-section-structure .board-section-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.board-section-size .board-section-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}#board-form .formula-box{grid-template-columns:repeat(2,1fr)}}

/* 送货管理 */
.delivery-filters{display:grid;grid-template-columns:1.15fr 1.15fr .9fr .75fr 1fr 1fr auto auto;gap:14px;align-items:end;margin-bottom:12px}.delivery-filters label{margin:0}.delivery-toolbar{display:flex;align-items:center;gap:9px;padding:14px 16px;background:#fff;margin-bottom:1px}.delivery-toolbar span{margin-left:auto;color:#40535d}.delivery-toolbar span b{color:#e24a35}.delivery-table{padding:0 12px;border-radius:0;min-height:520px}.delivery-table table{min-width:1380px;margin:0}.delivery-table th{background:#dcecef}.delivery-row-actions{display:flex;gap:10px}.delivery-row-actions a{cursor:pointer;color:#078f9a}.delivery-editor{background:#fff;min-height:calc(100vh - 100px);padding:18px 24px 80px}.delivery-form-title{background:#fff;border-top:5px solid #777;padding:13px 20px;border-bottom:1px solid #d7e0e5}.delivery-smart-source{display:flex;align-items:end;gap:18px;padding:12px 16px;margin-bottom:14px;border:1px solid #badfe5;border-radius:7px;background:#f0fafb}.delivery-smart-source label{min-width:420px;margin:0}.delivery-smart-source span{color:#52707b}.delivery-document-head{display:flex;justify-content:space-between;align-items:end;padding:8px 10px 15px;border-bottom:2px solid #506773}.delivery-document-head>div{display:flex;align-items:center;gap:14px;margin:auto;font-size:20px}.delivery-document-head strong{font-size:21px}.delivery-document-head input{width:160px;margin-left:8px}.delivery-info-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:10px 24px;padding:16px 10px}.delivery-info-grid .span-2{grid-column:span 2}.delivery-items-toolbar{display:flex;align-items:center;gap:9px;padding:10px;background:#f5f9fa;border:1px solid #d6e2e7;border-bottom:0}.delivery-items-toolbar strong{margin-right:auto}.delivery-items{border:1px solid #c9d6dc;min-height:230px}.delivery-items table{min-width:1740px;margin:0}.delivery-items th{background:#dcecef;white-space:nowrap}.delivery-items td{padding:5px}.delivery-items td:nth-child(1),.delivery-items td:nth-child(2){width:55px;text-align:center}.delivery-items td:nth-child(3){width:55px;text-align:center}.delivery-items td:nth-child(4){width:220px}.delivery-items td:nth-child(5){width:165px}.delivery-items td:nth-child(6){width:155px}.delivery-items td:nth-child(7){width:75px}.delivery-items td:nth-child(8){width:95px}.delivery-items td:nth-child(9),.delivery-items td:nth-child(10),.delivery-items td:nth-child(11),.delivery-items td:nth-child(12){width:105px}.delivery-items td:nth-child(13){width:180px}.delivery-items td:nth-child(14){width:75px}.delivery-items input{width:100%;margin:0}.delivery-items input[readonly]{background:#f4f7f8;font-weight:600}.delivery-items button{padding:7px 9px}.delivery-totals{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border:1px solid #c9d6dc;border-top:0;font-size:17px}.delivery-totals strong,.delivery-totals b{color:#172b34}.delivery-totals b:last-child{font-size:20px}.delivery-bottom-grid{display:grid;grid-template-columns:1fr 1fr .7fr;gap:12px 28px;padding:18px 10px}.delivery-bottom-grid .span-all{grid-column:1/-1}.delivery-form-actions{justify-content:center;position:sticky;bottom:0;padding:12px;background:#fff;border-top:1px solid #d7e0e5}.delivery-form-actions button{min-width:100px}@media(max-width:1200px){.delivery-filters{grid-template-columns:repeat(3,minmax(160px,1fr))}.delivery-toolbar{flex-wrap:wrap}.delivery-toolbar span{width:100%;margin:4px 0 0}.delivery-info-grid{grid-template-columns:repeat(2,1fr)}.delivery-info-grid .span-2{grid-column:1/-1}.delivery-bottom-grid{grid-template-columns:repeat(2,1fr)}}

.delivery-print-settings-panel{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px;border:1px solid #cfe0e6;border-bottom:0;background:#fff}.delivery-print-settings-panel[hidden]{display:none}.delivery-print-settings-panel label{display:flex;align-items:center;gap:5px;margin:0}.delivery-print-settings-panel input{width:auto;margin:0}.delivery-items td:nth-child(1) input,.delivery-items td:nth-child(2) input{width:auto}

.delivery-receipt-editor{display:grid;gap:16px}.delivery-receipt-summary{display:grid;grid-template-columns:1fr 1fr 240px;gap:18px;align-items:end;padding:12px 0}.delivery-receipt-summary label{display:grid;gap:6px}.delivery-receipt-editor table{min-width:900px}.delivery-receipt-editor th,.delivery-receipt-editor td{text-align:center}.delivery-receipt-editor td input{width:100%}.delivery-receipt-total{text-align:right;font-size:16px}.delivery-receipt-diff.has-difference,#delivery-receipt-difference.has-difference{color:#d9363e;font-weight:700}@media(max-width:900px){.delivery-receipt-summary{grid-template-columns:1fr}}

.delivery-receipt-difference-panel{margin-top:18px;padding:16px;border:1px solid #efb8b8;background:#fff8f7;border-radius:4px}.delivery-receipt-difference-panel h3{margin:0 0 6px;color:#b4232b}.delivery-receipt-difference-meta{margin:0 0 12px;color:#667780}.delivery-receipt-difference-panel table{width:100%;border-collapse:collapse}.delivery-receipt-difference-panel th,.delivery-receipt-difference-panel td{padding:9px 10px;border:1px solid #e4caca;text-align:center}.delivery-receipt-difference-panel .has-difference{color:#d9363e;font-weight:700}

#delivery-form.is-readonly input:not([type=hidden]),#delivery-form.is-readonly textarea,#delivery-form.is-readonly select{background:#f4f6f7;color:#33454d;cursor:default}

/* Delivery item editor: balanced widths for the current 13-column layout. */
.delivery-items table{min-width:1590px;table-layout:fixed}
.delivery-items th,.delivery-items td{box-sizing:border-box;vertical-align:middle}
.delivery-items th{padding:10px 7px;text-align:center}
.delivery-items td{padding:5px 4px}
.delivery-items th:nth-child(1),.delivery-items td:nth-child(1){width:52px;text-align:center}
.delivery-items th:nth-child(2),.delivery-items td:nth-child(2){width:54px;text-align:center}
.delivery-items th:nth-child(3),.delivery-items td:nth-child(3){width:220px;text-align:left}
.delivery-items th:nth-child(4),.delivery-items td:nth-child(4){width:180px}
.delivery-items th:nth-child(5),.delivery-items td:nth-child(5){width:180px}
.delivery-items th:nth-child(6),.delivery-items td:nth-child(6){width:120px}
.delivery-items th:nth-child(7),.delivery-items td:nth-child(7){width:150px}
.delivery-items th:nth-child(8),.delivery-items td:nth-child(8){width:70px;text-align:center}
.delivery-items th:nth-child(9),.delivery-items td:nth-child(9){width:90px}
.delivery-items th:nth-child(10),.delivery-items td:nth-child(10){width:95px}
.delivery-items th:nth-child(11),.delivery-items td:nth-child(11){width:95px}
.delivery-items th:nth-child(12),.delivery-items td:nth-child(12){width:105px}
.delivery-items th:nth-child(13),.delivery-items td:nth-child(13){width:180px}
.delivery-items input{min-width:0;padding:7px 8px}
.delivery-items td:nth-child(1) input{margin:auto}
.delivery-items td:nth-child(2){font-weight:600;color:#536670}
/* Smart delivery recognition workspace. */
.delivery-smart-header{display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:5px solid #777;border-bottom:1px solid #d7e0e5;padding:12px 20px}
.delivery-smart-header h1{margin:3px 0 0;font-size:21px}
.delivery-smart-layout{display:grid;grid-template-columns:330px minmax(760px,1fr);gap:14px;min-height:calc(100vh - 120px);padding-top:14px}
aside.delivery-smart-upload{position:static;inset:auto;width:auto;background:#fff;border:1px solid #dce5e9;border-radius:6px;padding:22px;min-height:690px}
.delivery-smart-upload h2{font-size:20px;margin:0 0 8px}.delivery-smart-upload>p{color:#71818a;line-height:1.65;margin:0 0 18px}
.delivery-smart-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;height:170px;margin:0;border:2px dashed #9fc7cd;border-radius:8px;background:#f5fbfc;color:#425963;cursor:pointer;transition:.18s}
.delivery-smart-drop:hover{border-color:#10a5b1;background:#edf9fa}.delivery-smart-drop strong{font-size:44px;line-height:1;color:#15a8b5;font-weight:300}.delivery-smart-drop b{font-size:16px;margin:10px 0 6px}.delivery-smart-drop span{font-size:12px;color:#809098}
.delivery-smart-file-info{margin:14px 0;padding:10px 12px;border-radius:4px;background:#eef7f8;color:#49636d;overflow-wrap:anywhere}
.delivery-smart-preview{display:grid;place-items:center;min-height:265px;max-height:350px;overflow:auto;border:1px solid #e0e8ec;background:#f6f7f8;padding:12px}.delivery-smart-preview p{color:#8a999f;text-align:center}.delivery-smart-preview img{display:block;max-width:100%;max-height:320px;object-fit:contain}.delivery-smart-sheet-card{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}.delivery-smart-sheet-card strong{font-size:28px;color:#168e9a}.delivery-smart-sheet-card span{font-weight:600;overflow-wrap:anywhere}.delivery-smart-sheet-card small{color:#809098}
.delivery-smart-help{display:flex;flex-direction:column;gap:6px;margin-top:16px;padding:12px;border-left:4px solid #18a9b5;background:#f4f9fa}.delivery-smart-help span{color:#667a84;line-height:1.55}
.delivery-smart-result{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dce5e9;border-radius:6px;overflow:hidden}
.delivery-smart-fields{display:grid;grid-template-columns:1.4fr .75fr 1fr 1fr;gap:12px 18px;padding:18px 20px 8px}.delivery-smart-fields label{margin:0}.delivery-smart-fields .span-2{grid-column:span 2}
.delivery-smart-table-toolbar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f4f9fa;border-top:1px solid #d9e5e9;border-bottom:1px solid #d0dce1}.delivery-smart-table-toolbar strong{margin-right:4px}.delivery-smart-table-toolbar span{margin-right:auto;color:#718189}.delivery-smart-table-toolbar span.success{color:#078f65;font-weight:600}
.delivery-smart-table{flex:1;min-height:390px}.delivery-smart-table table{min-width:1470px;margin:0;table-layout:fixed}.delivery-smart-table th{background:#dcecef;text-align:center;padding:10px 7px}.delivery-smart-table td{padding:5px 4px;vertical-align:middle}.delivery-smart-table input{width:100%;min-width:0;margin:0;padding:7px 8px}.delivery-smart-table td:first-child input{width:auto;margin:auto}.delivery-smart-table th:nth-child(1),.delivery-smart-table td:nth-child(1){width:52px;text-align:center}.delivery-smart-table th:nth-child(2),.delivery-smart-table td:nth-child(2){width:54px;text-align:center}.delivery-smart-table th:nth-child(3),.delivery-smart-table td:nth-child(3){width:220px}.delivery-smart-table th:nth-child(4),.delivery-smart-table td:nth-child(4){width:180px}.delivery-smart-table th:nth-child(5),.delivery-smart-table td:nth-child(5){width:180px}.delivery-smart-table th:nth-child(6),.delivery-smart-table td:nth-child(6){width:150px}.delivery-smart-table th:nth-child(7),.delivery-smart-table td:nth-child(7){width:70px}.delivery-smart-table th:nth-child(8),.delivery-smart-table td:nth-child(8){width:90px}.delivery-smart-table th:nth-child(9),.delivery-smart-table td:nth-child(9),.delivery-smart-table th:nth-child(10),.delivery-smart-table td:nth-child(10){width:95px}.delivery-smart-table th:nth-child(11),.delivery-smart-table td:nth-child(11){width:105px}.delivery-smart-table th:nth-child(12),.delivery-smart-table td:nth-child(12){width:180px}
.delivery-smart-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d8e3e7;padding:14px 18px;background:#fff}.delivery-smart-footer>div{display:flex;align-items:center;gap:24px}.delivery-smart-footer b{font-size:18px}.delivery-smart-footer strong{font-size:16px;color:#203943}.delivery-smart-footer button{min-width:96px}
@media(max-width:1200px){.delivery-smart-layout{grid-template-columns:270px minmax(680px,1fr)}.delivery-smart-fields{grid-template-columns:repeat(2,1fr)}}

/* 首页快速导航 */
#home{min-height:calc(100vh - 116px)}
.home-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px;padding:4px 2px}
.home-heading h1{margin:4px 0 0;font-size:25px;font-weight:600;color:#203944}
.home-heading p{margin:0 0 4px;color:#7a8a92}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:18px;padding:24px;background:#fff;border:1px solid #e0e7eb;border-radius:8px;box-shadow:0 2px 9px rgba(38,66,78,.04)}
.home-quick-card{display:flex;min-height:190px;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:24px 18px;border:1px solid transparent;border-radius:9px;background:#fff;text-align:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.home-quick-card:hover{transform:translateY(-2px);border-color:#bfe4e7;box-shadow:0 8px 20px rgba(23,113,122,.10)}
.home-quick-icon{display:grid;place-items:center;width:66px;height:66px;margin-bottom:4px;border-radius:14px;background:#ebfafa;color:#22b6c1;font-size:23px;font-weight:800;letter-spacing:-1px}
.home-quick-card strong{font-size:18px;color:#2e4651}
.home-quick-card small{max-width:220px;color:#839198;line-height:1.55}
@media(max-width:1100px){.home-quick-grid{grid-template-columns:repeat(2,minmax(190px,1fr))}}
@media(max-width:650px){.home-heading{align-items:flex-start;flex-direction:column;gap:8px}.home-quick-grid{grid-template-columns:1fr;padding:14px}.home-quick-card{min-height:150px}}


/* 智能录单统一入口 */
#smart-entry-page{min-height:calc(100vh - 116px);background:#fff;border:1px solid #dfe7eb;border-radius:8px;overflow:hidden}
.smart-entry-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 10px}.smart-entry-header h1{margin:4px 0 0}
.smart-entry-tabs{display:flex;gap:4px;padding:0 22px;border-bottom:1px solid #dce6ea}.smart-entry-tabs button{min-width:170px;border:0;border-radius:0;padding:14px 20px;background:transparent;color:#60727b;font-weight:600}.smart-entry-tabs button.active{color:#0795a1;border-bottom:3px solid #0aa3af}
.smart-entry-panel{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(330px,1.15fr);align-items:center;gap:70px;max-width:1050px;min-height:420px;margin:0 auto;padding:48px 55px 70px}
.smart-entry-copy{text-align:center}.smart-entry-icon{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 18px;border-radius:18px;background:#ebfafa;color:#1db2bd;font-size:28px;font-weight:800}.smart-entry-copy h2{font-size:23px;font-weight:600;margin:0 0 12px}.smart-entry-copy p{margin:0;color:#74858d;line-height:1.8}
.smart-entry-drop{display:flex;min-height:230px;margin:0;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:2px dashed #9fcbd0;border-radius:12px;background:#f5fbfc;cursor:pointer;transition:.16s}.smart-entry-drop:hover{border-color:#0aa3af;background:#edf9fa}.smart-entry-drop strong{color:#078f9a;font-size:18px}.smart-entry-drop span{color:#829198}
@media(max-width:900px){.smart-entry-panel{grid-template-columns:1fr;gap:28px;padding:35px 24px}.smart-entry-tabs button{min-width:0;flex:1}}


/* 订单识别核对：与送货单智能录单统一的工作区 */
#detail{min-height:calc(100vh - 116px);background:#f4f7f9;border:1px solid #dce5e9;border-radius:6px;overflow:hidden}
#detail>.title{padding:12px 20px;background:#fff;border-top:5px solid #777;border-bottom:1px solid #d7e0e5}
#detail>.title h1{margin:3px 0 0;font-size:21px;font-weight:600}
#detail>.title #back{border:0;background:transparent;color:#7d878c;font-size:14px}
#detail>.actions{margin:0;padding:10px 20px;background:#fff;border-bottom:1px solid #d7e2e7}
#detail>.actions #status{display:inline-flex;align-items:center;padding:5px 12px;border-radius:15px;background:#eef8f9;color:#078f9a;font-weight:600}
#detail>.actions button{min-width:92px}
#detail>.muted{margin:0;padding:10px 20px;background:#f7fbfc;border-bottom:1px solid #dce6ea}
#detail>.split{grid-template-columns:360px minmax(760px,1fr);gap:14px;min-height:690px;padding:14px}
#detail>.split>.panel{min-width:0;margin:0;border-color:#dce5e9;border-radius:6px;box-shadow:none;background:#fff}
#detail>.split>.preview{padding:18px}
#detail>.split>.preview>.title{padding:0 0 12px;border-bottom:1px solid #e1e9ed}
#detail>.split>.preview>.title h2{margin:0;font-size:16px;font-weight:600}
#detail #preview{margin-top:14px;min-height:570px;background:#f5f7f8;border:1px solid #e0e8ec;overflow:hidden}
#detail .preview iframe{display:block;width:100%;height:640px;border:0;background:#f5f7f8}
#detail .preview img{display:block;max-width:100%;max-height:640px;margin:auto;object-fit:contain}
#detail>.split>.panel:last-child{padding:18px 20px;overflow:hidden}
#detail>.split>.panel:last-child>h2{margin:0 0 12px;padding-left:10px;border-left:4px solid #16adbf;font-size:17px;font-weight:600}
#detail>.split>.panel:last-child>h2:not(:first-child){margin-top:22px}
#detail .fields{grid-template-columns:repeat(3,minmax(170px,1fr));gap:10px 18px;padding:14px 16px 2px;background:#f8fbfc;border:1px solid #dce7eb;border-radius:6px}
#detail .fields label{margin:0 0 12px;color:#445a64;font-weight:600}
#detail .fields input{height:38px;margin-top:6px;background:#fff;font-weight:400}
#detail .scroll{border:1px solid #d4e0e5;min-height:270px}
#detail table{min-width:1560px;margin:0;table-layout:fixed}
#detail th{padding:10px 8px;background:#dcecef;text-align:center}
#detail td{padding:5px 4px;vertical-align:middle}
#detail td input,#detail td select{width:100%;min-width:0;margin:0;padding:7px 8px}
#detail #add{margin-top:10px;color:#087f89;border-color:#9bcbd0;background:#f4fbfc}
#detail #warnings{margin:0;padding:12px 18px 12px 34px;border:1px solid #efd7c9;border-radius:5px;background:#fff9f5;line-height:1.65}
#detail details{margin-top:12px;padding:10px 12px;border:1px solid #dce5e9;border-radius:5px;background:#f8fafb}
@media(max-width:1250px){#detail>.split{grid-template-columns:300px minmax(680px,1fr)}#detail .fields{grid-template-columns:repeat(2,minmax(170px,1fr))}}


/* 原文件图片缩放与拖动 */
.preview-head-actions{display:flex;align-items:center;gap:10px}.preview-controls{display:flex;align-items:center;gap:3px}.preview-controls[hidden]{display:none}.preview-controls button{min-width:28px;height:28px;padding:2px 7px;border-color:#b9d5d9;background:#f4fbfc;color:#087f89}.preview-controls #preview-zoom-reset{min-width:54px;font-size:12px}
#detail #preview{height:640px;min-height:640px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;touch-action:none;user-select:none}
#detail #preview>img{display:block;width:100%;height:auto;max-width:none;max-height:none;transform-origin:center center;cursor:grab;will-change:transform;transition:transform .08s ease-out}
#detail #preview>img.is-zoomed{cursor:grab}#detail #preview>img.is-dragging{cursor:grabbing;transition:none}



/* 对账单 */
.statement-filters{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:12px}.statement-filters label{margin:0}.statement-toolbar{display:flex;align-items:center;gap:9px;background:#fff;padding:16px 18px;margin-bottom:1px}.statement-toolbar>span{margin-left:auto}.statement-toolbar b{color:#e53935}.statement-table{border-radius:0;padding:0 12px;min-height:520px}.statement-table table{min-width:1250px}.statement-table th{background:#dcecef}.statement-row-actions{display:flex;gap:10px}.statement-row-actions a{cursor:pointer;color:#078f9a}.statement-form-title{border-top:5px solid #777;background:#fff}.statement-editor{background:#fff;padding:22px 28px 90px;min-height:calc(100vh - 110px)}.statement-heading{display:flex;justify-content:center;align-items:center;gap:12px;font-size:22px;padding:5px 0 22px}.statement-heading strong{min-width:430px;text-align:center;border:1px solid #aebcc3;padding:8px 20px}.statement-form-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;max-width:1050px;margin:0 auto 18px}.statement-form-summary{display:flex;justify-content:space-between;gap:28px;padding:12px 4px;font-size:16px}.statement-form-summary b{color:#087f89}.statement-detail-table{border:1px solid #ccd8de;min-height:360px}.statement-detail-table table{min-width:1450px;margin:0}.statement-detail-table th{background:#dcecef;white-space:nowrap}.statement-detail-table td:nth-child(n+9){text-align:right}.statement-note{display:block;margin-top:18px}.statement-note textarea{max-width:600px}.statement-form-actions{position:fixed;left:185px;right:0;bottom:0;z-index:20;display:flex;justify-content:flex-end;gap:12px;background:#fff;border-top:1px solid #d7e0e5;padding:12px 28px}@media(max-width:1100px){.statement-filters{grid-template-columns:repeat(2,minmax(160px,1fr))}.statement-form-filters{grid-template-columns:1fr}.statement-heading strong{min-width:0}.statement-toolbar{flex-wrap:wrap}.statement-toolbar>span{width:100%;margin-left:0}}
@media print{header,aside,.statement-form-title,.statement-form-filters,.statement-form-actions,#notice{display:none!important}main{margin:0!important;padding:0!important}.statement-editor{padding:8mm;min-height:0}.statement-detail-table{min-height:0;overflow:visible}.statement-detail-table table{min-width:0;font-size:9pt}.statement-note textarea{border:0;resize:none}}

.statement-tabs{display:flex;gap:8px;margin:0 0 12px}.statement-tabs button.active{background:#089ca8;color:#fff;border-color:#089ca8}.statement-detail-actions{display:flex;justify-content:flex-end;margin:8px 0}.statement-detail-table th:first-child,.statement-detail-table td:first-child{width:42px;text-align:center}#stmt-deferred-panel .statement-table{margin-top:0}

.statement-defer-dialog{width:min(460px,calc(100vw - 32px));border:0;border-radius:8px;padding:0;box-shadow:0 18px 60px #18313b55}.statement-defer-dialog::backdrop{background:#18313b66}.statement-defer-dialog form{display:grid;gap:16px;padding:24px}.statement-defer-dialog h3,.statement-defer-dialog p{margin:0}.statement-defer-info{display:flex;justify-content:space-between;padding:12px;background:#f1f7f8;border-radius:4px}.statement-defer-dialog label{display:grid;gap:6px}

body.auth-pending>header,body.auth-pending>aside,body.auth-pending>main{display:none}.login-page{position:fixed;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,#eef7f8,#dcebed);z-index:1000}.login-page[hidden]{display:none}.login-card{width:min(380px,calc(100vw - 32px));display:grid;gap:16px;background:#fff;padding:34px;border-radius:12px;box-shadow:0 18px 55px #17343e2e}.login-brand{color:#078d98;font-weight:700}.login-card h1,.login-card p{margin:0}.login-card label{display:grid;gap:7px}.login-card input{height:42px}.login-card button{height:42px}.login-error{min-height:20px;color:#c73535}.login-card small{color:#71838b;text-align:center}header #current-user{margin-left:auto}header #logout{margin-left:12px;background:transparent;border-color:#cad6da}.employee-toolbar{display:flex;align-items:center;gap:16px}.employee-toolbar span{color:#667b84}.employee-active{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.employee-active input{width:auto}.employee-actions{display:flex;gap:6px;justify-content:center}

/* 客户档案复选框对齐 */
.customer-table th:first-child,.customer-table td:first-child{padding:0!important;text-align:center!important;vertical-align:middle!important}
.customer-table th:first-child input[type=checkbox],.customer-table td:first-child input[type=checkbox]{display:block;width:16px;height:16px;min-width:16px;margin:0 auto;padding:0;vertical-align:middle}


/* 客户档案表头与数据按列对齐 */
.customer-table th{text-align:left}
.customer-table th:nth-child(1),.customer-table td:nth-child(1),.customer-table th:nth-child(2),.customer-table td:nth-child(2),.customer-table th:nth-child(12),.customer-table td:nth-child(12){text-align:center}


/* 对账单列表复选框对齐 */
#statement-list .statement-table th:first-child,#statement-list .statement-table td:first-child{width:46px;padding:0!important;text-align:center!important;vertical-align:middle!important}
#statement-list .statement-table th:first-child input[type=checkbox],#statement-list .statement-table td:first-child input[type=checkbox]{display:block;width:16px;height:16px;min-width:16px;margin:0 auto;padding:0;vertical-align:middle}


/* 全站选择框统一样式 */
input[type=checkbox],input[type=radio]{box-sizing:border-box;accent-color:#079da8;cursor:pointer}
table th:has(input[type=checkbox]),table td:has(input[type=checkbox]){text-align:center!important;vertical-align:middle!important}
table th input[type=checkbox],table td input[type=checkbox]{display:block;width:16px!important;height:16px!important;min-width:16px!important;margin:0 auto!important;padding:0!important}
.process-row label,.delivery-print-settings-panel label,.employee-active,.product-savebar label{display:inline-flex;align-items:center;gap:7px}
.process-row input[type=checkbox],.delivery-print-settings-panel input[type=checkbox],.employee-active input[type=checkbox],.product-savebar input[type=radio]{flex:0 0 16px;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;padding:0!important}


/* 客户订单日期筛选 */
.order-filter{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px auto;align-items:end;gap:14px;margin-bottom:10px}.order-filter label{margin:0}.order-filter input{width:100%;margin-top:7px}.order-filter button{min-width:72px}@media(max-width:900px){.order-filter{grid-template-columns:1fr 1fr}.order-filter label:first-child{grid-column:1/-1}}


/* 订单核对明细列排版 */
#detail #items td{vertical-align:middle}#detail #items td:nth-child(5){min-width:230px}#detail #items td:nth-child(6){width:132px;min-width:132px}#detail #items td:nth-child(6) select{display:block;width:116px!important;min-width:116px!important;margin:0;padding-right:28px}#detail #items td:nth-child(7){min-width:115px}#detail #items td:nth-child(8){min-width:100px}#detail #items input,#detail #items select{box-sizing:border-box}


/* 订单核对：固定表头与输入列宽，避免尺寸单位与相邻字段重叠 */
#detail table{min-width:1710px;table-layout:fixed}
#detail #item-head th,#detail #items td{box-sizing:border-box;padding:6px 7px;vertical-align:middle}
#detail #item-head th:nth-child(1),#detail #items td:nth-child(1){width:72px}
#detail #item-head th:nth-child(2),#detail #items td:nth-child(2){width:145px}
#detail #item-head th:nth-child(3),#detail #items td:nth-child(3){width:112px}
#detail #item-head th:nth-child(4),#detail #items td:nth-child(4){width:225px}
#detail #item-head th:nth-child(5),#detail #items td:nth-child(5){width:245px;min-width:245px}
#detail #item-head th:nth-child(6),#detail #items td:nth-child(6){width:145px;min-width:145px}
#detail #item-head th:nth-child(7),#detail #items td:nth-child(7){width:105px;min-width:105px}
#detail #item-head th:nth-child(8),#detail #items td:nth-child(8){width:112px;min-width:112px}
#detail #item-head th:nth-child(9),#detail #items td:nth-child(9){width:135px}
#detail #item-head th:nth-child(10),#detail #items td:nth-child(10),#detail #item-head th:nth-child(11),#detail #items td:nth-child(11),#detail #item-head th:nth-child(12),#detail #items td:nth-child(12){width:115px}
#detail #item-head th:nth-child(13),#detail #items td:nth-child(13){width:130px}
#detail #items td>input,#detail #items td>select,#detail #items .spec-convert{display:block;width:100%!important;min-width:0!important;max-width:100%;margin:0}
#detail #items td:nth-child(6) select{width:100%!important;min-width:0!important;padding-right:30px}

/* 纸板合并采购 */
.board-buy-top{flex-wrap:wrap}
.board-row-actions{display:flex;gap:6px;min-width:250px}
.board-row-actions button{padding:6px 8px;white-space:nowrap}

/* 产品批量改价 */
.product-batch-price-dialog{width:min(1050px,94vw);border:0;border-radius:8px;padding:0;box-shadow:0 18px 55px #26374055}
.product-batch-price-dialog::backdrop{background:#1e2d3566}
.product-batch-price-dialog form{padding:22px}
.product-batch-price-dialog h3{margin:0 0 8px;font-size:20px}
.product-batch-price-controls{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:16px;margin:18px 0}
.product-batch-price-controls label{margin:0}
.product-batch-price-table{min-width:900px;margin:0}
.product-batch-price-table th{background:#dcecef}
.product-batch-price-table td:nth-child(n+3){text-align:right}
.product-batch-price-table .batch-price-warning td{background:#fff3e8;color:#a34b00}
@media(max-width:800px){.product-batch-price-controls{grid-template-columns:1fr}}
.product-batch-price-dialog{width:min(1280px,96vw)}
.product-batch-price-table{min-width:1160px}
.product-batch-price-table td{vertical-align:middle}
.product-batch-price-table input{width:105px;min-width:90px;padding:7px 8px;text-align:right;background:#f3f6f8}
.product-batch-price-table input.is-editable{background:#fff;border-color:#079aa6;box-shadow:0 0 0 1px #079aa622}
.product-batch-price-table .price-up{color:#d23a32;font-weight:600}
.product-batch-price-table .price-down{color:#07865e;font-weight:600}
.product-batch-price-table .profit-negative{color:#d23a32;font-weight:600}

/* 全局数字输入框：隐藏浏览器自带上下调节箭头 */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}

/* 辅助物料档案 */
.aux-material-filter{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:12px}.aux-material-filter label{margin:0}.aux-material-table{border-radius:0;padding:0 12px;min-height:540px}.aux-material-table table{min-width:1550px;margin:0}.aux-material-table th{background:#dcecef;white-space:nowrap}.aux-material-table a{cursor:pointer;margin-right:12px}.aux-material-form{max-width:1180px;margin:18px auto;padding:28px 34px}.aux-material-form-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px 48px}.aux-material-form-grid label{margin:0}.aux-material-form-grid .span-all{grid-column:1/-1}.input-suffix{position:relative}.input-suffix input{padding-right:58px}.input-suffix span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#77858c}.aux-spec-label{grid-column:1/-1}.aux-spec-inputs{display:flex;align-items:center;gap:7px}.aux-spec-inputs input{min-width:0;flex:1}.aux-spec-inputs b{font-weight:400;color:#687981}.aux-note-grid{display:grid;grid-template-columns:95px repeat(2,minmax(210px,1fr));gap:14px;align-items:center}.aux-note-grid span{grid-row:1/3;font-weight:600}.aux-material-actions{justify-content:flex-end;margin-top:34px}.aux-material-actions button{min-width:90px}@media(max-width:1200px){.aux-material-filter{grid-template-columns:repeat(2,minmax(170px,1fr))}.aux-material-form-grid{grid-template-columns:1fr}.aux-material-form-grid .span-all,.aux-spec-label{grid-column:1}.aux-note-grid{grid-template-columns:1fr}.aux-note-grid span{grid-row:auto}}

/* 物料档案表单分区布局 */
.aux-material-form{max-width:1280px;padding:26px 32px 30px;border-top:3px solid #1597a6;box-shadow:0 8px 24px rgba(25,55,70,.06)}
.aux-material-form-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px 20px;align-items:end}
.aux-material-section-title{grid-column:1/-1;margin:5px 0 0;padding:0 0 9px 11px;border-bottom:1px solid #d9e5e9;border-left:4px solid #10a3b2;color:#244652;font-size:16px;line-height:1}
.aux-material-form-grid>label{grid-column:span 6}
.aux-material-form-grid>label:has(#aux-material-customer),.aux-material-form-grid>label:has(#aux-material-type),.aux-material-form-grid>label:has(#aux-material-customer-code),.aux-material-form-grid>label:has(#aux-material-suite-code),.aux-material-form-grid>label:has(#aux-material-name){grid-column:span 4}
.aux-material-form-grid>label:has(#aux-material-purchase-square-price),.aux-material-form-grid>label:has(#aux-material-purchase-price),.aux-material-form-grid>label:has(#aux-material-sale-square-price),.aux-material-form-grid>label:has(#aux-material-sale-price){grid-column:span 3}
.aux-material-form-grid>.aux-spec-label{grid-column:1/-1}
.aux-material-form-grid>.aux-note-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.aux-note-grid>span{display:none}
.aux-material-actions{padding-top:20px;margin-top:22px;border-top:1px solid #d9e5e9}
@media(max-width:1200px){.aux-material-form-grid>label,.aux-material-form-grid>label:has(#aux-material-customer),.aux-material-form-grid>label:has(#aux-material-customer-code),.aux-material-form-grid>label:has(#aux-material-name),.aux-material-form-grid>label:has(#aux-material-purchase-square-price),.aux-material-form-grid>label:has(#aux-material-purchase-price),.aux-material-form-grid>label:has(#aux-material-sale-square-price),.aux-material-form-grid>label:has(#aux-material-sale-price){grid-column:span 6}.aux-material-form-grid>.aux-spec-label,.aux-material-form-grid>.aux-note-grid{grid-column:1/-1}}

.aux-material-form-grid>.aux-drawing-card{grid-column:1/-1;display:grid;grid-template-columns:220px minmax(260px,1fr) auto;gap:18px;align-items:center;padding:16px;border:1px solid #d9e5e9;border-radius:6px;background:#f8fbfc}.aux-drawing-card>span{grid-column:1/-1;font-weight:600}.aux-drawing-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:105px;border:1px dashed #91aab4;border-radius:5px;background:#fff;color:#5c737d;cursor:pointer}.aux-drawing-drop strong{font-size:28px;color:#149eae;line-height:1}.aux-drawing-drop small{margin-top:5px;color:#87979e}.aux-drawing-preview{display:flex;align-items:center;gap:16px;min-height:105px}.aux-drawing-preview img{width:140px;height:96px;object-fit:contain;border:1px solid #d9e5e9;background:#fff}.aux-drawing-preview a{color:#078b9a}.aux-drawing-card>button{width:auto}@media(max-width:900px){.aux-material-form-grid>.aux-drawing-card{grid-template-columns:1fr}.aux-drawing-card>span{grid-column:auto}}

.delivery-field-map-dialog{width:min(960px,calc(100vw - 40px));max-height:90vh;border:0;border-radius:8px;padding:0;box-shadow:0 18px 55px #18384d55}.delivery-field-map-dialog::backdrop{background:#18384d66}.delivery-field-map-dialog form{padding:22px}.dialog-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #dce8ed;padding-bottom:12px}.dialog-head h2{margin:0 0 6px}.dialog-head p{margin:0;color:#607885}.delivery-map-source{display:grid;grid-template-columns:2fr 1fr 2fr;gap:14px;margin:18px 0}.delivery-map-source label,.delivery-map-grid label{display:grid;gap:6px}.delivery-map-preview{padding:12px;background:#f3f8fa;border:1px solid #d7e6eb;border-radius:5px}.delivery-map-preview div{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.delivery-map-preview span{background:#fff;border:1px solid #cbdde4;border-radius:4px;padding:5px 8px}.delivery-map-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.delivery-map-grid label:nth-child(-n+2){font-weight:600}@media(max-width:800px){.delivery-map-source,.delivery-map-grid{grid-template-columns:1fr}}

.board-buy-table>h3{margin:0;padding:12px 8px;border-bottom:2px solid #109eaa;color:#294b58;font-size:16px}.board-buy-table+ .board-buy-table{margin-top:14px}

#material-purchase-form-page{background:#f4f7f9}.material-purchase-title{background:#fff;border-left:5px solid #16a9bd;padding:14px 20px;border-bottom:1px solid #d7e0e5}.material-purchase-title h1{margin:3px 0 0}.material-purchase-form{max-width:1180px;margin:18px auto;padding:28px 34px}.material-purchase-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px 24px}.material-purchase-grid label{margin:0}.material-purchase-grid .span-all{grid-column:1/-1}.material-purchase-grid input[readonly]{background:#f4f7f8;color:#5f7078}@media(max-width:1100px){.material-purchase-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}

.aux-material-form-grid>label:has(#aux-material-purchase-square-price),.aux-material-form-grid>label:has(#aux-material-purchase-price){display:none}.aux-material-form-grid>.aux-supplier-quotes{grid-column:1/-1;border:1px solid #d9e5e9;border-radius:7px;background:#fff;padding:14px}.aux-supplier-quote-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.aux-supplier-quote-columns,.aux-supplier-quote-row{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;gap:10px;align-items:center}.aux-supplier-quote-columns{padding:7px 4px;color:#61737c;background:#f3f8fa}.aux-supplier-quote-row{padding:8px 4px;border-bottom:1px solid #e3eaed}.aux-supplier-quote-row input{width:100%}.aux-supplier-quote-row button{padding:7px 12px}

.aux-supplier-quote-actions{display:flex;gap:6px;align-items:center}.aux-supplier-quote-actions button{white-space:nowrap}.aux-supplier-quote-actions .primary:disabled{opacity:1;cursor:default}
.supplier-category-field{display:flex;flex-direction:column;gap:7px;color:#27343a;font-size:14px}.supplier-category-checks{display:flex;align-items:center;gap:22px;min-height:38px;padding:7px 12px;border:1px solid #c8d5dc;border-radius:4px;background:#fff}.supplier-category-checks label{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0;white-space:nowrap}.supplier-category-checks input{width:auto;margin:0}
.process-supplier-quotes{border:1px solid #b9d5df;border-radius:5px;overflow:hidden}.process-quote-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#f4fafc}.process-quote-columns,.process-quote-row{display:grid;grid-template-columns:1.3fr repeat(3,.8fr) 1.4fr auto;gap:8px;align-items:center;padding:8px 12px}.process-quote-columns{background:#eaf3f5;color:#52666f;font-size:13px}.process-quote-row{border-top:1px solid #e1eaee}.process-quote-row input,.process-quote-row select{width:100%}.process-quote-empty{padding:16px;text-align:center;color:#7a898f}
.process-quote-columns.process-quote-columns-enhanced,.process-quote-row.process-quote-row-enhanced{grid-template-columns:1.25fr repeat(3,minmax(125px,.85fr)) 1.2fr auto}.process-fee-field{display:grid;grid-template-columns:auto 1fr;gap:6px;align-items:center}.process-fee-field input[type=checkbox],.process-fee-field input[type=radio]{width:auto;margin:0}
.process-fee-field input[type=number]:disabled{background:#eef1f3;color:#9aa5aa;cursor:not-allowed}
#product-process-cost{cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
.purchase-price-toggle{cursor:pointer;color:#087f8c;font-weight:600;text-decoration:underline dotted;text-underline-offset:3px;user-select:none}.purchase-price-toggle:hover{background:#e7f7fa}.purchase-price-unavailable{cursor:not-allowed;color:#8b989e}
.product-material-row-secondary{border-top:1px dashed #b9cbd2;background:#f8fbfc;position:relative}
#product-material-add-2{margin-left:auto;color:#078d9d;border:1px solid #9fcbd2;background:#fff}
.process-quote-columns.process-quote-columns-enhanced.has-film-type,.process-quote-row.process-quote-row-enhanced.has-film-type{grid-template-columns:1.1fr .7fr repeat(3,minmax(120px,.8fr)) 1.1fr auto}
.board-section-material .board-section-grid,.board-secondary-material-row{grid-template-columns:repeat(8,minmax(0,1fr))}.board-secondary-material-row{display:grid;gap:12px;margin-top:10px;padding-top:12px;border-top:1px dashed #bdd7de}.board-secondary-material-row[hidden]{display:none}.board-secondary-material-row label{display:flex;flex-direction:column;gap:6px}
.customer-filter{grid-template-columns:repeat(3,minmax(180px,1fr)) auto auto}
.customer-filter{grid-template-columns:minmax(280px,1.6fr) minmax(210px,1fr) minmax(190px,.9fr) 86px 86px;gap:16px;padding:18px 20px;margin-bottom:14px;border:1px solid #d8e5e9;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(31,73,86,.06)}.customer-filter label{display:grid;gap:7px;color:#405861;font-weight:600}.customer-filter input,.customer-filter select{height:40px;border-color:#cbdce2;border-radius:5px;background:#fbfdfe}.customer-filter input:focus,.customer-filter select:focus{border-color:#0b9eaa;box-shadow:0 0 0 3px rgba(11,158,170,.1)}.customer-filter button{height:40px;min-width:86px;border-radius:5px;font-weight:600}.customer-filter #customer-reset{background:#fff;border-color:#b9cbd1;color:#536c75}@media(max-width:1050px){.customer-filter{grid-template-columns:repeat(2,minmax(200px,1fr))}.customer-filter button{width:100%}}@media(max-width:650px){.customer-filter{grid-template-columns:1fr;padding:14px}.customer-filter button{width:100%}}
.product-filter{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr) 86px 86px;gap:16px;padding:18px 20px;margin-bottom:14px;border:1px solid #d8e5e9;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(31,73,86,.06)}
.product-filter label{display:grid;gap:7px;color:#405861;font-weight:600}
.product-filter input,.product-filter select{height:40px;border-color:#cbdce2;border-radius:5px;background:#fbfdfe}
.product-filter input:focus,.product-filter select:focus{border-color:#0b9eaa;box-shadow:0 0 0 3px rgba(11,158,170,.1)}
.product-filter button{height:40px;min-width:86px;border-radius:5px;font-weight:600}
.product-filter #product-reset{background:#fff;border-color:#b9cbd1;color:#536c75}
@media(max-width:1050px){.product-filter{grid-template-columns:repeat(2,minmax(200px,1fr))}.product-filter button{width:100%}}
@media(max-width:650px){.product-filter{grid-template-columns:1fr;padding:14px}.product-filter button{width:100%}}
.aux-material-filter{grid-template-columns:minmax(180px,1.15fr) minmax(180px,1.15fr) minmax(160px,1fr) minmax(180px,1.05fr) minmax(140px,.8fr) 86px 86px;gap:16px;padding:18px 20px;margin-bottom:14px;border:1px solid #d8e5e9;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(31,73,86,.06)}
.aux-material-filter label{display:grid;gap:7px;color:#405861;font-weight:600}
.aux-material-filter input,.aux-material-filter select{height:40px;border-color:#cbdce2;border-radius:5px;background:#fbfdfe}
.aux-material-filter input:focus,.aux-material-filter select:focus{border-color:#0b9eaa;box-shadow:0 0 0 3px rgba(11,158,170,.1)}
.aux-material-filter button{height:40px;min-width:86px;border-radius:5px;font-weight:600}
.aux-material-filter #aux-material-reset{background:#fff;border-color:#b9cbd1;color:#536c75}
@media(max-width:1250px){.aux-material-filter{grid-template-columns:repeat(3,minmax(180px,1fr))}.aux-material-filter button{width:100%}}
@media(max-width:800px){.aux-material-filter{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:560px){.aux-material-filter{grid-template-columns:1fr;padding:14px}.aux-material-filter button{width:100%}}
.delivery-document-head .delivery-company-input{width:min(520px,55vw);min-width:360px;margin:0;padding:4px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:center}
.delivery-company-input:hover{border-color:#b8cbd2;background:#fff}
.delivery-company-input:focus{border-color:#0b9eaa;background:#fff;box-shadow:0 0 0 3px rgba(11,158,170,.1);outline:0}
@media(max-width:800px){.delivery-document-head .delivery-company-input{width:50vw;min-width:220px}}
.statement-filters{grid-template-columns:repeat(2,minmax(190px,1fr)) minmax(300px,1.4fr) auto auto}
.statement-filters label:has(#stmt-filter-no){display:none}
.statement-date-range{display:grid;grid-template-columns:minmax(125px,1fr) auto minmax(125px,1fr);align-items:center;gap:8px}
.statement-date-range input{width:100%;min-width:0;box-sizing:border-box}
.statement-date-separator{color:#647b84;font-size:13px;text-align:center}
@media(max-width:1100px){.statement-filters{grid-template-columns:repeat(2,minmax(170px,1fr))}}
@media(max-width:600px){.statement-filters{grid-template-columns:1fr}}

/* 产品套装行：为展开按钮和选择框保留独立空间 */
#product-list .product-table th:first-child,
#product-list .product-table td.product-select-cell{
  width:72px;
  min-width:72px;
  box-sizing:border-box;
  text-align:center!important;
}
#product-list .product-select-cell{
  padding-left:7px;
  padding-right:7px;
}
#product-list .suite-parent-row .product-select-cell{
  display:table-cell;
  position:relative;
  white-space:nowrap;
}
#product-list .suite-parent-row .product-select-cell input[type="checkbox"]{
  position:relative;
  z-index:1;
}
#product-list .suite-parent-row .suite-expand-toggle{
  position:absolute;
  top:50%;
  left:calc(50% + 13px);
  width:20px;
  height:20px;
  transform:translateY(-50%);
}
#product-list .suite-expand-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  flex:0 0 20px;
  margin:0;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#168c99;
  font-size:0;
  line-height:1;
  vertical-align:middle;
  box-shadow:none;
  transition:background-color .15s,border-color .15s,transform .15s;
}
#product-list .suite-expand-toggle::before{
  content:'›';
  display:block;
  font-size:21px;
  line-height:1;
  transform:rotate(0deg);
  transform-origin:center;
  transition:transform .15s ease;
}
#product-list .suite-expand-toggle[aria-expanded="true"]::before{
  transform:rotate(90deg);
}
#product-list .suite-expand-toggle:hover{
  background:transparent;
  color:#087985;
}
#product-list .suite-expand-toggle[aria-expanded="true"]{
  background:transparent;
  color:#087985;
}
#product-list .product-select-cell input[type="checkbox"]{
  flex:0 0 15px;
  margin:0;
  vertical-align:middle;
}
#suite-calculate-price{display:none!important}
.suite-price-row label:has(#suite-square-price){display:none!important}
.suite-profit-table>div{grid-template-columns:1.15fr 1.7fr .7fr 1fr 1fr 1fr 1fr 1fr 1.25fr}
.suite-profit-table .suite-profit-summary{background:#eaf5f7;font-weight:700}
.suite-profit-table .suite-profit-child:nth-child(even){background:#fafcfd}
.suite-profit-table .suite-profit-child span:first-child{text-align:center;font-weight:600}
.suite-item-name .link-button:disabled{color:#a9b5ba!important;cursor:not-allowed;opacity:.65;text-decoration:none}
.suite-process-cost-source{cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
#board-list .board-filter{grid-template-columns:minmax(150px,1fr) minmax(130px,.8fr) minmax(145px,.9fr) minmax(145px,.9fr) minmax(280px,1.55fr) minmax(135px,.8fr) 76px 76px}
#board-list .board-filter .board-date-range{display:grid;grid-template-columns:minmax(125px,1fr) 22px minmax(125px,1fr);align-items:center;margin-top:7px}
#board-list .board-filter .board-date-range input{min-width:0;margin-top:0;padding:0 8px}
#board-list .board-filter .board-date-range i{color:#70858d;font-style:normal;text-align:center}
@media(max-width:1450px){#board-list .board-filter{grid-template-columns:repeat(3,minmax(180px,1fr))}#board-list .board-filter label:has(.board-date-range){grid-column:span 2}}
.order-field-map-dialog{width:min(1080px,calc(100vw - 36px))}.order-field-map-dialog form{max-height:88vh;overflow:auto}.order-map-source{display:grid;grid-template-columns:1fr 1.4fr 1.4fr;gap:14px;margin:18px 0}.order-map-source label{margin:0}.order-map-section{border-top:1px solid #dce8ed;padding-top:12px;margin-top:14px}.order-map-section h3{margin:0 0 12px;border-left:4px solid #16b4c6;padding-left:9px}.order-map-meta{grid-template-columns:repeat(3,1fr)}.order-map-meta label{display:grid;grid-template-columns:1fr;gap:6px}.order-map-meta input{width:100%;margin:0;background:#fffdf4;border-color:#d8c98f}.order-field-map-dialog .delivery-map-grid select{min-width:0;width:100%}@media(max-width:800px){.order-map-source,.order-map-meta{grid-template-columns:1fr}}
/* Material category was restored after the material master form redesign. */
.material-core-grid:has(#material-core-category){grid-template-columns:1.35fr .9fr .6fr .65fr 1.15fr 1.8fr}

/* Keep list search bars visually stable on wide online displays. */
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters){
  display:flex!important;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:flex-start;
  gap:16px;
}
:where(.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters).panel{
  padding:18px 20px!important;
  margin-bottom:14px!important;
  border:1px solid #d8e5e9!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(31,73,86,.06)!important;
}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label{
  flex:0 0 200px!important;
  width:200px!important;
  min-width:200px!important;
  max-width:200px!important;
  margin:0;
  display:grid;
  gap:7px;
  color:#405861;
  font-weight:600;
}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label input,
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label select{
  box-sizing:border-box;
  width:100%!important;
  height:40px!important;
  border-color:#cbdce2;
  border-radius:5px;
  background:#fbfdfe;
}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label input:focus,
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label select:focus{
  border-color:#0b9eaa;
  box-shadow:0 0 0 3px rgba(11,158,170,.1);
  outline:0;
}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>button{
  flex:0 0 86px!important;
  width:86px!important;
  min-width:86px!important;
  max-width:86px!important;
  height:40px;
  align-self:flex-end;
  border-radius:5px;
  font-weight:600;
  padding-left:10px;
  padding-right:10px;
  white-space:nowrap;
}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>button:not(.primary){
  background:#fff;
  border-color:#b9cbd1;
  color:#536c75;
}
.order-filter>label:first-child{flex-basis:280px!important;width:280px!important;min-width:280px!important;max-width:280px!important}
.product-filter>label:has(.filter-spec){flex-basis:300px!important;width:300px!important;min-width:300px!important;max-width:300px!important}
#board-list .board-filter>label:has(.board-date-range){flex-basis:300px!important;width:300px!important;min-width:300px!important;max-width:300px!important}
@media(max-width:560px){
  :where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label,
  .order-filter>label:first-child,
  .product-filter>label:has(.filter-spec),
  #board-list .board-filter>label:has(.board-date-range){flex-basis:100%!important;width:100%!important;min-width:0!important;max-width:none!important}
  :where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>button{flex:1 1 calc(50% - 8px)!important;width:auto!important;max-width:none!important}
}
.delivery-filters>label:has(.delivery-date-range){flex-basis:300px!important;width:300px!important;min-width:300px!important;max-width:300px!important}
.delivery-date-range{display:grid;grid-template-columns:1fr 22px 1fr;align-items:center;margin-top:7px}
.delivery-date-range input{box-sizing:border-box;width:100%!important;min-width:0;margin:0!important;padding-left:8px;padding-right:8px}
.delivery-date-range i{color:#70858d;font-style:normal;text-align:center}
@media(max-width:560px){.delivery-filters>label:has(.delivery-date-range){flex-basis:100%!important;width:100%!important;min-width:0!important;max-width:none!important}}
.delivery-filters>label:has(#df-product),.delivery-filters>label:has(#df-order){display:none!important}
.statement-filters>label:has(.statement-date-range){flex:0 0 320px!important;width:320px!important;min-width:320px!important;max-width:320px!important}
.statement-filters .statement-date-range{grid-template-columns:minmax(135px,1fr) 22px minmax(135px,1fr);gap:4px}
.statement-filters .statement-date-range input{margin-top:0}
@media(max-width:560px){.statement-filters>label:has(.statement-date-range){flex-basis:100%!important;width:100%!important;min-width:0!important;max-width:none!important}}
.product-material-cost-source{cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
#notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px 10px 13px}
.notice-close{flex:0 0 28px;width:28px;height:28px;padding:0;border:0;background:transparent;color:#607780;font-size:22px;line-height:28px;text-align:center;border-radius:4px}
.notice-close:hover{background:#ccebee;color:#24434b}
.board-receive-reason-editor{display:grid;gap:6px;min-width:280px}
.board-receive-reason-editor>input{width:100%}
.board-receive-reason-tags{display:flex;flex-wrap:wrap;gap:6px}
.board-receive-reason-tags button{padding:4px 9px;border-color:#8ab8bf;background:#edf8f9;color:#087f89;border-radius:13px;font-size:12px;white-space:nowrap}
.purchase-reference-detail{grid-column:2;color:#52656e;font-size:11px;line-height:1.25;white-space:pre-wrap;overflow-wrap:anywhere}
.purchase-product-size{font-weight:700;color:#18282f}
.purchase-sheet-main .hybrid-purchase-table tbody tr{height:72px}
.purchase-sheet-main .hybrid-purchase-table tbody td{padding-top:16px;padding-bottom:16px;font-size:17px}
.purchase-sheet-main .hybrid-purchase-table tbody input,.purchase-sheet-main .hybrid-purchase-table tbody textarea{font-size:16px}
.purchase-sheet-layout>.purchase-reference>div b{font-size:15px}
.purchase-sheet-layout>.purchase-reference>div span{font-size:16px;line-height:1.4}
.purchase-sheet-layout>.purchase-reference>div strong{font-size:17px;line-height:1.4}
.purchase-sheet-layout>.purchase-reference>div .purchase-reference-detail{font-size:15px;line-height:1.4}
.statement-analysis-meta{display:flex;flex-wrap:wrap;gap:18px 44px;margin-bottom:12px}
.statement-analysis-summary{display:grid;grid-template-columns:repeat(9,minmax(135px,1fr));gap:12px;margin:0 0 14px}
.statement-analysis-summary>div{padding:15px 16px;border:1px solid #d7e5ea;border-radius:5px;background:#fff;box-shadow:0 1px 2px #17333d0a}
.statement-analysis-summary span{display:block;margin-bottom:8px;color:#647982;font-size:13px}
.statement-analysis-summary strong{font-size:21px;color:#173843}
.statement-analysis-summary>div:nth-child(3) strong,.statement-analysis-summary>div:nth-child(4) strong,.statement-analysis-summary>div:nth-child(5) strong,.statement-analysis-summary>div:nth-child(6) strong{color:#9a6414}
.statement-analysis-summary>div:nth-child(8) strong,.statement-analysis-summary>div:nth-child(9) strong{color:#078b97}
.statement-analysis-warning{margin:0 0 12px;padding:10px 13px;border:1px solid #e5c576;border-radius:4px;background:#fff8dd;color:#775411}
.statement-analysis-table{padding:0}
.statement-analysis-table .scroll{max-height:calc(100vh - 350px)}
.statement-analysis-table table{min-width:1550px}
.statement-analysis-table th,.statement-analysis-table td{white-space:nowrap;text-align:right}
.statement-analysis-table th:nth-child(-n+5),.statement-analysis-table td:nth-child(-n+5),.statement-analysis-table th:last-child,.statement-analysis-table td:last-child{text-align:left}
.statement-analysis-source{cursor:help;color:#087f8b;text-decoration:underline dotted;text-underline-offset:3px}
.statement-analysis-negative{color:#d94141;font-weight:700}
.statement-analysis-overhead{min-width:0}
.statement-analysis-cost-input{display:flex;align-items:center;gap:6px}
.statement-analysis-cost-input input{min-width:0;width:76px;height:32px;padding:4px 7px;font-size:16px;font-weight:700;color:#173843}
.statement-analysis-cost-input b{white-space:nowrap;color:#536a73;font-size:12px}
.statement-analysis-cost-input button{flex:0 0 30px;width:30px;height:30px;padding:0;border-color:#9bc4ca;background:#eff9fa;font-size:15px;line-height:28px}
.statement-analysis-overhead small{display:block;margin-top:7px;color:#627780;font-size:11px;line-height:1.35}
.statement-analysis-process-count,.statement-analysis-formula{cursor:help;color:#087f8b;text-decoration:underline dotted;text-underline-offset:3px}
.statement-row-actions a{cursor:pointer}
@media(max-width:1400px){.statement-analysis-summary{grid-template-columns:repeat(4,minmax(140px,1fr))}}
@media(max-width:760px){.statement-analysis-summary{grid-template-columns:repeat(2,minmax(130px,1fr))}}
.transit-order-filter>span{margin-left:auto;padding-bottom:9px;color:#526871}
.transit-order-filter>span b{color:#008f9b}
.transit-order-table{padding:0}
.transit-order-table .scroll{max-height:calc(100vh - 245px)}
.transit-order-table table{min-width:1420px}
.transit-order-table th,.transit-order-table td{white-space:nowrap}
.transit-order-table .transit-number{text-align:right;font-variant-numeric:tabular-nums}
.transit-order-table .transit-remaining{color:#008b98;font-weight:700}
@media(max-width:700px){.transit-order-filter>span{width:100%;margin-left:0}}
:where(.order-filter,.transit-order-filter,.product-filter,.customer-filter,.aux-material-filter,.material-filter,.supplier-filter,#board-list .board-filter,.delivery-filters,.statement-filters)>label select{
  -webkit-appearance:none;
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#55717a 50%),linear-gradient(135deg,#55717a 50%,transparent 50%)!important;
  background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
  padding-right:28px!important;
  cursor:pointer;
}
.quick-choice-input{background-image:linear-gradient(45deg,transparent 50%,#55717a 50%),linear-gradient(135deg,#55717a 50%,transparent 50%)!important;background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;padding-right:28px!important;cursor:pointer}
.quick-choice-panel{position:fixed;z-index:10000;box-sizing:border-box;max-height:280px;overflow:auto;padding:5px;border:1px solid #9bb7c0;border-radius:5px;background:#fff;box-shadow:0 10px 28px rgba(18,48,58,.2)}
.quick-choice-panel[hidden]{display:none}
.quick-choice-panel button{display:flex;width:100%;min-height:36px;align-items:center;justify-content:space-between;gap:14px;padding:7px 10px;border:0;border-radius:3px;background:#fff;color:#193640;text-align:left;white-space:normal}
.quick-choice-panel button:hover,.quick-choice-panel button.active{background:#e5f5f7;color:#007f8b}
.quick-choice-panel button strong{font-weight:500}
.quick-choice-panel button small{color:#70858d;font-size:11px}
.quick-choice-empty{padding:10px;color:#7a8c93;text-align:center}
