.invoice-products .table-wrap{overflow-x:auto;overflow-y:visible}.invoice-table{width:100%!important;min-width:1420px!important;table-layout:fixed!important}.invoice-table th,.invoice-table td{box-sizing:border-box}.invoice-table input,.invoice-table select{width:100%!important;min-width:0!important;box-sizing:border-box}.invoice-table th:nth-child(1),.invoice-table td:nth-child(1){width:44px!important}.invoice-table .placement-area-head,.invoice-table .placement-area-cell{width:112px!important;min-width:112px!important}.invoice-table .processing-note-head,.invoice-table .processing-note-cell{width:172px!important;min-width:172px!important}.invoice-table th:nth-child(4),.invoice-table td:nth-child(4){width:142px!important}.invoice-table th:nth-child(5),.invoice-table td:nth-child(5){width:118px!important}.invoice-table th:nth-child(6),.invoice-table td:nth-child(6){width:132px!important}.invoice-table th:nth-child(7),.invoice-table td:nth-child(7){width:105px!important}.invoice-table th:nth-child(8),.invoice-table td:nth-child(8){width:72px!important}.invoice-table th:nth-child(9),.invoice-table td:nth-child(9){width:92px!important}.invoice-table th:nth-child(10),.invoice-table td:nth-child(10){width:108px!important}.invoice-table th:nth-child(11),.invoice-table td:nth-child(11){width:92px!important}.invoice-table th:nth-child(12),.invoice-table td:nth-child(12){width:128px!important;text-align:right!important;white-space:nowrap}.invoice-table th:nth-child(13),.invoice-table td:nth-child(13){width:48px!important}.invoice-table .discount-input{display:grid!important;grid-template-columns:minmax(52px,1fr) 18px!important;align-items:center!important;gap:3px!important}.invoice-table .discount-input input{text-align:center!important}.processing-note-cell input{background:#fffdf7!important;border-color:#dfc89e!important}.processing-note-cell input::placeholder{color:#9a7846}.sale-doc-table .placement-area-head,.sale-doc-table .placement-area-show,.sale-doc-table .processing-note-head,.sale-doc-table .processing-note-show{min-width:82px;white-space:normal;line-height:1.35}.delivery-note-button{border-color:#c7923e!important;color:#8b5b13!important;background:#fffaf0!important}
.delivery-note-dialog{width:min(1500px,97vw)!important;max-width:none!important;height:min(94vh,920px)!important;overflow:auto!important}.delivery-document{width:1120px;min-height:740px;margin:0 auto;padding:32px 38px;background:#fff;color:#172722;font-family:"Microsoft YaHei",sans-serif;box-sizing:border-box}.delivery-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid #176a55;padding-bottom:18px}.delivery-head small{letter-spacing:4px;color:#b47a24}.delivery-head h1{font-size:32px;margin:8px 0 2px}.delivery-head p{color:#71817c;margin:0}.delivery-head>div:last-child{display:grid;gap:6px;text-align:right}.delivery-head>div:last-child b{font-size:30px;color:#176a55}.delivery-customer{display:grid;grid-template-columns:1fr 1fr 2fr;margin:20px 0;border:1px solid #d9e4df;border-radius:12px;background:#f6faf8}.delivery-customer>div{padding:14px 18px;border-right:1px solid #d9e4df;display:grid;gap:5px}.delivery-customer>div:last-child{border:0}.delivery-customer label{font-size:13px;color:#73817d}.delivery-document table{width:100%;border-collapse:collapse;table-layout:fixed}.delivery-document th{padding:12px 7px;background:#176a55;color:#fff;border:1px solid #b7cec6}.delivery-document td{padding:13px 7px;border:1px solid #ccd9d4;text-align:center;overflow-wrap:anywhere}.delivery-document tbody tr:nth-child(even){background:#f4f8f6}.delivery-document tfoot td{text-align:right;background:#eef6f2}.delivery-document th:nth-child(1){width:45px}.delivery-document th:nth-child(2){width:105px}.delivery-document th:nth-child(3){width:125px}.delivery-document th:nth-child(4){width:110px}.delivery-document th:nth-child(5){width:105px}.delivery-document th:nth-child(6){width:190px}.delivery-document th:nth-child(7){width:55px}.delivery-document th:nth-child(8){width:90px}.delivery-document th:nth-child(9){width:50px}.delivery-foot{display:grid;grid-template-columns:1.2fr 2fr;gap:28px;margin-top:20px;padding-top:16px;border-top:2px solid #176a55}.delivery-foot p{margin:6px 0;white-space:pre-wrap}.delivery-foot>div:last-child{display:flex;justify-content:space-between;align-items:end;font-size:14px}.delivery-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:12px;padding:14px 24px;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(13,59,47,.1)}
@media(max-width:700px){.invoice-table{min-width:1380px!important}.delivery-note-dialog{width:100vw!important;height:100vh!important}.delivery-document{transform-origin:top left}}
.delivery-items-v2{width:100%;table-layout:auto!important}.delivery-items-v2 th,.delivery-items-v2 td{width:auto!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;vertical-align:middle}.delivery-items-v2 th:nth-child(1),.delivery-items-v2 th:nth-child(10),.delivery-items-v2 th:nth-child(11){white-space:nowrap!important}.delivery-items-v2 .delivery-qty{font-size:16px;color:var(--store-theme,#176a55);white-space:nowrap!important}.delivery-processing-cell{text-align:left!important;padding:8px 10px!important;min-width:150px;max-width:290px}.delivery-processing-list{display:flex;flex-direction:column;gap:7px;width:100%;min-width:0}.delivery-processing-list>div{display:grid;grid-template-columns:19px minmax(0,1fr);gap:6px;align-items:start;line-height:1.35;width:100%;min-width:0}.delivery-processing-list i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--store-theme-soft,#e8f3ef);color:var(--store-theme,#176a55);font-size:10px;font-style:normal;font-weight:700}.delivery-processing-list span{display:flex;flex-wrap:wrap;gap:3px 8px;min-width:0;overflow-wrap:anywhere}.delivery-processing-list b{font-weight:650}.delivery-processing-list em{font-style:normal;color:var(--store-theme,#176a55);font-weight:700;white-space:nowrap}.delivery-no-processing{color:#8a9893}
@media print{@page{size:A4 landscape;margin:8mm}body{margin:0}.delivery-document{width:281mm;min-height:194mm;padding:6mm;box-shadow:none}.delivery-actions{display:none!important}}
.processing-detail-button{width:100%;min-height:42px;padding:7px 9px;border:1px solid #d7bf91;border-radius:8px;background:#fffaf0;color:#8b5b13;font-size:12px;line-height:1.35;white-space:normal;cursor:pointer}.processing-detail-button:hover{border-color:#b47a24;background:#fff5df}.processing-editor-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(9,35,29,.56);backdrop-filter:blur(5px)}.processing-editor-card{width:min(760px,96vw);border-radius:20px;background:#fff;box-shadow:0 28px 90px rgba(5,30,24,.38);overflow:hidden;animation:dialogIn .28s cubic-bezier(.2,1.15,.4,1)}.processing-editor-head{display:flex;justify-content:space-between;align-items:flex-start;padding:25px 28px 20px;background:linear-gradient(135deg,var(--store-theme-soft,#edf6f2),#fff)}.processing-editor-head small{letter-spacing:3px;color:#b47a24}.processing-editor-head h2{margin:5px 0;font-size:25px}.processing-editor-head p{margin:0;color:#74827d}.processing-editor-close{width:38px;height:38px;border:0;border-radius:50%;font-size:25px;background:#eef3f1;color:#5c6c66;cursor:pointer}.processing-order-total{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:20px 28px 4px;padding:14px;border:1px dashed #b8cec5;border-radius:12px;background:#f8fbfa}.processing-order-total span{color:#72807c}.processing-order-total strong{font-size:27px;color:var(--store-theme,#155c49)}.processing-order-total em{font-style:normal}.processing-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding:20px 28px}.processing-editor-grid label{display:grid;gap:7px}.processing-editor-grid label>span{font-size:13px;color:#596963}.processing-editor-grid input,.processing-editor-grid textarea{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #dce5e1;border-radius:9px;background:#fcfdfc;font:inherit}.processing-editor-grid .span2{grid-column:1/-1}.processing-check{display:flex;justify-content:space-between;margin:0 28px;padding:13px 15px;border-radius:10px;background:#f4f8f6}.processing-check-value{color:var(--store-theme,#155c49)}.processing-check-value.invalid{color:#bf4a40}.processing-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px;padding:17px 28px;border-top:1px solid #e4ebe7}.processing-editor-actions button{min-width:110px}.delivery-document th:nth-child(1){width:38px}.delivery-document th:nth-child(2){width:86px}.delivery-document th:nth-child(3){width:105px}.delivery-document th:nth-child(4){width:88px}.delivery-document th:nth-child(5){width:88px}.delivery-document th:nth-child(6),.delivery-document th:nth-child(7){width:58px}.delivery-document th:nth-child(8){width:170px}.delivery-document th:nth-child(9){width:48px}.delivery-document th:nth-child(10){width:72px}.delivery-document th:nth-child(11){width:42px}@media(max-width:600px){.processing-editor-grid{grid-template-columns:1fr}.processing-editor-grid .span2{grid-column:auto}}
.processing-inline-row td{padding:0!important;border-top:0!important;background:color-mix(in srgb,var(--primary,#176b57) 4%,#fff)!important}.processing-inline-empty,.processing-inline-detail{min-height:44px;display:flex;align-items:center;gap:14px;padding:8px 14px 8px 52px;border-left:3px solid color-mix(in srgb,var(--primary,#176b57) 55%,transparent);font-size:13px}.processing-inline-empty b,.processing-inline-detail b{color:var(--primary,#176b57);min-width:112px}.processing-inline-empty span{color:#83908c;flex:1}.processing-inline-detail span{padding:4px 9px;border-radius:999px;background:#fff;border:1px solid #dce7e3;white-space:nowrap}.processing-inline-detail strong{margin-left:auto;color:var(--primary,#176b57);white-space:nowrap}.processing-inline-detail em{font-style:normal;color:#7a8582;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.processing-inline-row button{border:1px solid color-mix(in srgb,var(--primary,#176b57) 30%,#dce7e3);background:#fff;color:var(--primary,#176b57);border-radius:8px;padding:6px 12px;cursor:pointer;white-space:nowrap}.processing-editor-grid select{width:100%;height:44px;border:1px solid #dce7e3;border-radius:9px;background:#fff;padding:0 12px}@media(max-width:800px){.processing-inline-empty,.processing-inline-detail{padding-left:12px;gap:7px;flex-wrap:wrap}.processing-inline-detail strong{margin-left:0}.processing-inline-detail em{max-width:100%}}
.processing-inline-multi{padding:8px 14px 9px 52px;border-left:3px solid color-mix(in srgb,var(--primary,#176b57) 55%,transparent)}.processing-inline-title{display:flex;align-items:center;gap:14px;margin-bottom:7px}.processing-inline-title>b{color:var(--primary,#176b57);min-width:112px}.processing-inline-title>span{color:#6f7d79}.processing-inline-title>strong{margin-left:auto;color:var(--primary,#176b57)}.processing-operation-chip{display:inline-flex;align-items:center;gap:7px;margin:3px 7px 3px 0;padding:5px 9px;background:#fff;border:1px solid #dce7e3;border-radius:9px;font-size:12px}.processing-operation-chip i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--primary,#176b57);color:#fff;font-style:normal}.processing-operation-chip em{font-style:normal;color:#77827f}.processing-editor-multi{width:min(1180px,96vw)!important}.processing-qty-pair{display:grid;grid-template-columns:1fr auto 1fr auto;align-items:end;gap:14px;padding:20px 28px;background:#f7faf9;border-bottom:1px solid #e3ebe8}.processing-qty-pair label span{display:block;margin-bottom:8px;color:#63736e}.processing-qty-pair input{width:100%;height:48px;border:1px solid #d7e2de;border-radius:10px;padding:0 14px;font-size:18px}.processing-qty-pair>div{padding-bottom:14px;font-weight:700;color:var(--primary,#176b57)}.processing-operations-head{display:flex;align-items:center;justify-content:space-between;padding:20px 28px 10px}.processing-operations-head h3,.processing-operations-head p{margin:0}.processing-operations-head p{margin-top:4px;color:#7c8885;font-size:13px}.processing-operations{padding:0 28px 14px;max-height:42vh;overflow:auto}.processing-operation-row{display:grid;grid-template-columns:34px 100px minmax(190px,1.5fr) minmax(130px,1fr) 125px 115px 135px 38px;gap:9px;align-items:end;padding:12px;margin-bottom:9px;border:1px solid #dfe8e5;border-radius:12px;background:#fbfdfc}.processing-operation-row label span{display:block;margin-bottom:6px;font-size:12px;color:#6e7b77}.processing-operation-row input{width:100%;height:40px;border:1px solid #d8e3df;border-radius:8px;padding:0 9px}.processing-operation-row .op-index{align-self:center;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--primary,#176b57) 12%,#fff);color:var(--primary,#176b57);font-weight:700}.processing-operation-row .op-total{align-self:center;text-align:right;color:var(--primary,#176b57);white-space:nowrap}.processing-operation-row .op-remove{align-self:center}.processing-editor-multi .processing-check{margin:0 28px 18px}.processing-operation-v3 .op-cutting-preview{grid-column:2/-2;min-height:0}.cutting-preview{display:flex;align-items:center;gap:14px;margin-top:3px;padding:10px 12px;border:1px dashed color-mix(in srgb,var(--store-theme,#176b57) 28%,#dce7e3);border-radius:10px;background:color-mix(in srgb,var(--store-theme,#176b57) 4%,#fff)}.cutting-preview svg{width:112px;height:70px;flex:0 0 auto}.cutting-preview rect{fill:#fff;stroke:var(--store-theme,#176b57);stroke-width:2}.cutting-preview line{stroke:#d07b46;stroke-width:2;stroke-dasharray:5 3}.cutting-preview div{display:grid;gap:3px}.cutting-preview b{color:var(--store-theme,#176b57)}.cutting-preview span{color:#6f7c78;font-size:12px}@media(max-width:900px){.processing-operation-row{grid-template-columns:34px 1fr 1fr}.processing-operation-row .op-method-wrap{grid-column:span 2}.processing-inline-multi{padding-left:12px}.processing-inline-title{flex-wrap:wrap}.processing-inline-title>strong{margin-left:0}.processing-qty-pair{grid-template-columns:1fr 1fr}.processing-qty-pair>div{display:none}.processing-operation-v3 .op-cutting-preview{grid-column:1/-1}.cutting-preview{align-items:flex-start}}
