:root{font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:#203044;background:#f3f6f9;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.app{display:flex;min-height:100vh}.sidebar{width:236px;background:#17324a;color:#d6e1eb;flex:none;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{height:82px;display:flex;align-items:center;gap:12px;padding:0 22px;color:white;border-bottom:1px solid #ffffff18}.brand-mark{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#17a7a0;color:white;font-weight:800;font-size:21px}.brand strong{display:block;font-size:18px;letter-spacing:.5px}.brand small{display:block;margin-top:2px;color:#a9c0d1;font-size:12px}.side-scroll{overflow:auto;padding:18px 12px 30px;flex:1}.nav-group{margin-bottom:15px}.nav-title{font-size:12px;letter-spacing:1px;color:#8fb0c3;padding:7px 12px}.nav-item{width:100%;text-align:left;border:0;background:transparent;color:#d6e1eb;border-radius:7px;padding:9px 12px;margin:1px 0;font-size:14px;display:flex;align-items:center;gap:10px}.nav-item:hover,.nav-item.active{background:#2b5069;color:#fff}.nav-item.active{box-shadow:inset 3px 0 #36c4b2}.nav-icon{width:17px;color:#9bd0d6;text-align:center}.side-foot{border-top:1px solid #ffffff18;padding:17px 18px;font-size:12px;color:#a9c0d1}.dot{display:inline-block;width:7px;height:7px;background:#40bd91;border-radius:50%;margin-right:5px}.link{border:0;background:none;color:#9ee2e0;float:right;font-size:12px}.main{min-width:0;flex:1}.topbar{height:66px;background:#fff;border-bottom:1px solid #e3e9ee;display:flex;align-items:center;padding:0 30px;gap:16px;position:sticky;top:0;z-index:5}.crumb{font-size:16px;font-weight:700}.top-actions{margin-left:auto;display:flex;align-items:center;gap:18px;color:#6b7a89;font-size:13px}.top-actions select{border:1px solid #d8e2e9;border-radius:6px;padding:6px;color:#274257;background:white;margin-left:5px}.avatar{background:#dff4f1;color:#088b87;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700}.icon-btn{border:0;background:none;color:#607b8d;font-size:18px;display:none}main{max-width:1530px;margin:auto;padding:27px 30px 60px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:21px}.eyebrow{font-size:12px;color:#158b88;font-weight:700;letter-spacing:1px;margin:0 0 7px}.page-head h1{font-size:25px;margin:0;color:#172c3e;letter-spacing:.2px}.sub{color:#7b8b99;font-size:13px;margin:7px 0 0}.actions{display:flex;gap:9px;flex-wrap:wrap}.btn{border:1px solid #d7e1e8;background:#fff;color:#345266;padding:9px 15px;border-radius:7px;font-weight:600;font-size:13px}.btn:hover{background:#edf6f7}.btn.primary{border-color:#159b96;background:#159b96;color:#fff}.btn.primary:hover{background:#0c8581}.btn.danger{color:#ba5151;border-color:#edcdcd}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{background:#fff;border:1px solid #e1e9ee;border-radius:10px;padding:19px 20px;box-shadow:0 2px 9px #19384b07}.metric small{color:#738696;font-size:13px}.metric strong{display:block;font-size:27px;margin:8px 0 5px;color:#19384b}.metric span{font-size:12px;color:#8797a3}.metric.alert strong{color:#d4832e}.grid-two{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.panel{background:#fff;border:1px solid #e1e9ee;border-radius:10px;box-shadow:0 2px 9px #19384b07;margin-bottom:18px;overflow:hidden}.panel-title{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f4;font-weight:700;color:#253e52}.panel-title small{color:#8292a0;font-weight:400}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;padding:18px}.quick{border:1px solid #e2e9ee;background:#f9fbfc;border-radius:8px;text-align:left;padding:15px;color:#284a5e}.quick b{display:block;margin-bottom:7px}.quick span{font-size:12px;color:#8395a2}.quick:hover{border-color:#50b5ac;background:#f1faf9}.toolbar{padding:14px 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{border:1px solid #dce5eb;border-radius:7px;padding:9px 12px;min-width:220px;background:white}.toolbar .right{margin-left:auto;color:#8092a0;font-size:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{background:#f8fafb;color:#708494;font-size:13px;text-align:left;font-weight:600;padding:12px 15px;border-bottom:1px solid #e8eef2}td{padding:13px 15px;border-bottom:1px solid #eef2f4;color:#354d60;font-size:13px}tbody tr:hover{background:#fbfdfd}tbody tr:last-child td{border-bottom:0}.id-link{color:#088d89;font-weight:700;background:none;border:0;padding:0}.status{border-radius:20px;padding:4px 8px;font-size:12px;font-weight:600}.status.draft{background:#e9eef2;color:#657687}.status.reviewed{background:#e4f4fb;color:#2187ad}.status.done{background:#e3f5ed;color:#168c68}.status.void{background:#f6e8e8;color:#b96262}.empty{padding:45px 20px;text-align:center;color:#8a9aaa}.empty b{display:block;color:#435d6d;margin-bottom:7px}.tag{display:inline-block;background:#eaf4f4;color:#318383;border-radius:4px;padding:3px 6px;margin:2px;font-size:12px}.warning{color:#c27827;font-weight:600}.muted{color:#8b9ba8}.small-action{border:0;background:none;color:#168f8a;font-size:12px;margin-right:8px}.small-action.danger{color:#bd6b63}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 18px}.field label{display:block;font-size:13px;color:#526778;margin-bottom:7px;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #d8e3ea;border-radius:7px;padding:10px;background:white;color:#233e50;outline:0;min-height:40px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#22a7a1;box-shadow:0 0 0 3px #23aaa014}.field textarea{min-height:80px}.field.full{grid-column:1/-1}.hint{color:#8b9aa5;font-size:12px;margin-top:6px}.multi{display:flex;gap:7px;flex-wrap:wrap;padding:9px;border:1px solid #d8e3ea;border-radius:7px;min-height:42px}.multi label{display:flex;align-items:center;gap:4px;margin:0;font-weight:400;font-size:12px;background:#f1f7f7;border-radius:5px;padding:4px 8px;color:#436676}.multi input{width:auto;min-height:0}.overlay{position:fixed;inset:0;background:#0c233b80;z-index:20;display:flex;justify-content:flex-end}.drawer{width:min(640px,100vw);height:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-10px 0 32px #102d3b27}.drawer.wide{width:min(850px,100vw)}.drawer-head{padding:22px 26px;border-bottom:1px solid #e5ecef;display:flex;justify-content:space-between;align-items:center}.drawer-head h2{margin:0;font-size:20px}.close{border:0;background:#f0f4f6;border-radius:6px;width:30px;height:30px;font-size:19px;color:#597080}.drawer-body{padding:25px 26px;overflow:auto;flex:1}.drawer-foot{padding:16px 26px;border-top:1px solid #e5ecef;display:flex;justify-content:flex-end;gap:9px}.section-label{font-size:13px;font-weight:700;color:#284b5d;margin:24px 0 12px}.detail-pair{display:grid;grid-template-columns:145px 1fr;padding:9px 0;border-bottom:1px solid #f0f3f5;font-size:13px;gap:15px}.detail-pair span:first-child{color:#8293a0}.banner{background:#eff9f7;border:1px solid #cfebe6;padding:12px 16px;color:#31756f;border-radius:8px;font-size:13px;margin-bottom:18px}.banner.warn{background:#fff8ec;border-color:#f5e4ca;color:#a46e29}.workflow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#648092;font-size:13px}.workflow span{background:#f1f5f7;padding:8px 11px;border-radius:6px}.guide h3{color:#1d4759;margin:24px 0 9px}.guide p,.guide li{line-height:1.7;color:#4f6574;font-size:14px}.guide table{white-space:normal}.guide td,.guide th{vertical-align:top;line-height:1.5}.guide code{background:#edf3f5;padding:2px 5px;border-radius:3px;font-size:12px}.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.role-grid div{background:#f7fafb;padding:10px;border-radius:6px;font-size:13px}.login-note{font-size:12px;color:#b06a55;margin-top:10px}#toast{position:fixed;right:24px;bottom:22px;z-index:30;background:#263f50;color:#fff;padding:11px 17px;border-radius:7px;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;font-size:13px}#toast.show{opacity:1;transform:none}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}}@media(max-width:750px){.sidebar{position:fixed;left:-240px;z-index:10;transition:left .2s}.sidebar.open{left:0}.icon-btn{display:block}.date{display:none}.topbar{padding:0 15px}.top-actions{gap:8px}.top-actions label{font-size:0}.top-actions select{font-size:12px}.avatar{display:none}main{padding:22px 15px}.page-head{flex-direction:column}.cards{gap:9px}.metric{padding:15px}.metric strong{font-size:22px}.quick-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
.option-picker{position:relative;border:1px solid #d8e3ea;border-radius:7px;background:#fff}.option-picker[open]{border-color:#22a7a1}.option-picker summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:40px;padding:9px 11px;cursor:pointer;color:#506879}.option-picker summary::-webkit-details-marker{display:none}.picker-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-panel{padding:9px;border-top:1px solid #e6eef2}.picker-choices{max-height:170px;overflow:auto;display:flex;flex-direction:column;gap:3px}.picker-choices label{display:flex;align-items:center;gap:8px;margin:0;padding:7px 6px;border-radius:5px;font-weight:400;cursor:pointer}.picker-choices label:hover{background:#f1f8f8}.picker-choices input{width:auto;min-height:0;accent-color:#159b96}.picker-add{display:flex;gap:7px;margin-top:9px}.picker-add .option-input{flex:1;min-width:0;min-height:36px;border:1px solid #d8e3ea;border-radius:6px;padding:7px 9px}.picker-add .btn{padding:7px 11px}.option-section{padding:3px 0 19px;border-bottom:1px solid #eef2f4}.option-section h3{font-size:15px;color:#294a5b;margin:17px 0 10px}.option-tags{display:flex;flex-wrap:wrap;gap:5px}.remove-option{border:0;background:none;color:#7c9c9d;font-size:16px;line-height:1;margin-left:3px}.remove-option:hover{color:#bd5151}
.drawer.wide{width:min(1280px,100vw)}.doc-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 18px;margin-bottom:19px}.doc-top .field{min-width:0}.view-top{background:#f7fafb;border:1px solid #e6edf1;border-radius:8px;padding:15px}.view-top>div{display:flex;flex-direction:column;gap:4px}.view-top small{color:#79909e;font-size:12px}.view-top strong{color:#28465a;font-size:14px}.entry-table{white-space:normal;table-layout:fixed}.entry-table th:first-child{width:160px}.entry-table td{padding:10px}.entry-table .field > label{display:none}.entry-table .field input,.entry-table .field select{max-width:480px}.readonly{background:#f1f5f7!important;color:#627887!important}.doc-grid{border:1px solid #e5ecf0;border-radius:8px;max-width:100%}.entry-lines{min-width:1250px;white-space:normal}.entry-lines th{font-size:12px;white-space:nowrap;padding:10px;vertical-align:middle;background:#eaf2f6;color:#3e6680}.entry-lines td{padding:7px;vertical-align:top}.entry-lines td input,.entry-lines td select{border:1px solid #d8e3ea;border-radius:5px;background:#fff;padding:8px;min-width:0;width:100%;font-size:13px}.entry-lines td:first-child{width:38px;color:#8798a4}.entry-lines td:nth-child(2){min-width:160px}.entry-lines td:nth-child(3){min-width:120px}.entry-lines td:nth-child(4){min-width:115px}.entry-lines td:nth-child(5),.entry-lines td:nth-child(6),.entry-lines td:nth-child(7){min-width:145px}.entry-lines td:nth-child(8){min-width:95px}.entry-lines td:nth-child(9){min-width:85px}.entry-lines td:last-child{min-width:85px}.entry-lines .option-picker{min-width:135px}.entry-lines .option-picker summary{font-size:12px;min-height:34px;padding:7px}.entry-lines .picker-panel{min-width:200px}.entry-lines .row-combo{display:flex;flex-direction:column;gap:5px}.entry-lines .row-combo .row-mark{min-width:135px}.entry-lines .row-amount,.entry-lines .row-stock{white-space:nowrap;padding-top:16px}.grid-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 2px 21px;gap:15px}.grid-footer strong{font-size:16px;color:#1d5366}.doc-grid .option-picker[open]{position:relative;z-index:3}.doc-grid .picker-panel{background:#fff;box-shadow:0 7px 18px #23455a1b}.entry-lines .small-action{white-space:nowrap}.entry-table .option-picker{max-width:480px}.entry-table .option-picker summary{min-height:40px}.doc-top textarea{min-height:55px}@media(max-width:1000px){.doc-top{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.doc-top{grid-template-columns:1fr}.drawer.wide .drawer-body{padding:16px}.entry-table th:first-child{width:105px}}
.export-tray[hidden]{display:none}.export-tray{position:fixed;z-index:40;left:50%;bottom:20px;transform:translateX(-50%);width:min(680px,calc(100vw - 28px));display:flex;align-items:center;gap:18px;background:#173c50;color:#fff;padding:15px 17px;border-radius:11px;box-shadow:0 14px 36px #142d3e52}.export-tray>div{min-width:0;flex:1}.export-tray strong{display:block;font-size:15px}.export-tray small{display:block;color:#c4dce5;font-size:12px;overflow-wrap:anywhere;margin-top:3px}.export-tray .btn{display:inline-block;text-decoration:none;white-space:normal;overflow-wrap:anywhere;max-width:45%;text-align:center}.export-tray .close{flex:none;background:#345a6b;color:#fff}@media(max-width:600px){.export-tray{align-items:flex-start;flex-wrap:wrap}.export-tray .btn{max-width:calc(100% - 48px)}}
.sub-nav{padding-left:43px;font-size:13px;color:#b5cbd8}.sub-nav.active{background:#2b5069}.category-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:16px 18px 2px}.category-tab{border:1px solid #dce8ec;background:#f8fbfc;color:#4d6a7b;border-radius:20px;padding:7px 12px;font-size:13px}.category-tab span{margin-left:6px;font-size:12px;color:#8ca1ae}.category-tab.active{background:#dff5f1;color:#087b76;border-color:#8ed5c9;font-weight:700}.category-tab.active span{color:#238d82}

.picker-done{display:block;width:100%;margin-top:8px;border:0;border-radius:6px;background:#e9f6f5;color:#117c79;padding:8px;cursor:pointer;font-size:13px;font-weight:600}.picker-done:hover{background:#d8efed}

.picker-empty{padding:9px;color:#718997;font-size:13px}

/* Compact forms: keep ordinary records in the viewport on desktop. */
@media(min-width:900px){.overlay{align-items:center;justify-content:center;padding:12px}.drawer,.drawer.wide{width:min(98vw,1500px);height:min(96vh,920px);border-radius:13px;overflow:hidden;box-shadow:0 24px 70px #0d2a3b55}.drawer-body{padding:12px 18px}.drawer-head{padding:11px 18px;background:linear-gradient(135deg,#e9f6f5,#edf3fb)}.drawer-foot{padding:9px 18px;background:#f5f9fb}.doc-top{gap:7px 12px;margin-bottom:10px}}
.drawer-head h2{color:#21465a;font-size:18px}.drawer-body{background:linear-gradient(#f9fcfd,#f3f8fa)}.drawer-body form{background:#fff;border:1px solid #e1ebf0;border-radius:10px;padding:10px;box-shadow:0 5px 16px #244c6414}.entry-table{border-collapse:separate;border-spacing:0 3px}.entry-table th,.entry-table td{border-bottom:0;padding:5px 8px}.entry-table th{width:105px!important;background:#eaf3f7;border-radius:6px;color:#38586b}.entry-table td{background:#f9fbfd;border-radius:6px}.entry-table .field input,.entry-table .field select,.entry-table .option-picker{max-width:none;width:100%}.entry-table .field input,.entry-table .field select{min-height:34px;padding:6px 9px}.entry-table .option-picker summary{min-height:34px;padding:6px 9px}.entry-table .picker-choices label{display:flex;min-height:30px}.entry-table .picker-choices input{width:auto;min-height:0}.option-picker[open]{box-shadow:0 7px 20px #204b6326;z-index:4}.entry-lines{min-width:1100px}.entry-lines th{padding:6px;font-size:12px}.entry-lines td{padding:5px}.entry-lines td input,.entry-lines td select{padding:5px;min-height:32px}.section-label{margin:10px 0 6px}.field label{margin-bottom:3px}.field input,.field select{min-height:34px;padding:6px 9px}.grid-footer{padding:8px 2px 10px}.drawer-body .table-wrap{border-radius:8px}.drawer-body .entry-table th:first-child{width:105px}
@media(max-width:899px){.entry-table th{width:92px!important}.entry-table td{min-width:145px}.entry-table .option-picker{min-width:145px}.drawer-body{padding:12px}.drawer-head,.drawer-foot{padding:12px}}

.master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.master-card{min-width:0;padding:10px 12px;background:linear-gradient(145deg,#fff,#f5fafc);border:1px solid #d8e7ed;border-radius:10px;box-shadow:0 3px 8px #244d6414,0 1px 2px #244d6412}.master-card .field{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:9px;min-width:0}.master-card .field>label{display:block;margin:0;color:#2c5870;font-size:13px}.master-card .field>input,.master-card .field>select,.master-card .field>.option-picker{width:100%;min-width:0;max-width:none}.master-card .field>input,.master-card .field>select{min-height:34px;padding:6px 9px}.master-card .option-picker summary{min-height:34px;padding:6px 9px}.master-card .picker-choices label{display:flex}.master-card .picker-choices input{width:auto;min-height:0}.master-card .option-picker[open]{box-shadow:0 9px 22px #244d6429}.master-grid .master-card:nth-child(4n+1),.master-grid .master-card:nth-child(4n+2){border-left:3px solid #46b9b1}.master-grid .master-card:nth-child(4n+3),.master-grid .master-card:nth-child(4n+4){border-left:3px solid #79a8d2}
@media(max-width:850px){.master-grid{grid-template-columns:1fr}.master-card .field{grid-template-columns:100px minmax(0,1fr)}}
@media(min-width:900px){.doc-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.doc-top .field{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:8px;padding:7px 10px;border:1px solid #dbe8ef;border-left:3px solid #5cb9b3;border-radius:9px;background:linear-gradient(145deg,#fff,#f4f9fc);box-shadow:0 3px 9px #244d6414}.doc-top .field>label{margin:0;color:#2c5870}.doc-top .field>input,.doc-top .field>select{min-width:0}}

/* Product form: one label on the left and one control on the right per row. */
.product-grid{grid-template-columns:1fr;gap:4px}.product-grid .master-card{padding:3px 9px;border-radius:7px;box-shadow:0 2px 5px #244d6412}.product-grid .master-card .field{grid-template-columns:125px minmax(0,1fr);gap:10px}.product-grid .master-card .field>label{font-size:13px;font-weight:700}.product-grid .master-card .field>input,.product-grid .master-card .field>select{min-height:31px;padding:4px 8px}.product-grid .master-card .option-picker summary{min-height:31px;padding:4px 8px}.product-grid .master-card:nth-child(odd){border-left:3px solid #46b9b1}.product-grid .master-card:nth-child(even){border-left:3px solid #79a8d2}
@media(min-width:900px){.drawer.product-form-drawer{width:min(760px,94vw);height:min(96vh,790px)}.product-form-drawer .drawer-body{padding:8px 13px}.product-form-drawer .drawer-body form{padding:7px}}
@media(max-width:899px){.product-grid{grid-template-columns:1fr}.product-grid .master-card .field{grid-template-columns:100px minmax(0,1fr)}}
/* Dark form surfaces, including document entry and master records. */
.drawer,.drawer-body,.drawer-foot,.drawer-head{background:#152636;color:#e7f0f5}.drawer-head{background:linear-gradient(135deg,#203d51,#162b3c);border-bottom-color:#3d5667}.drawer-head h2{color:#f3f9fc}.drawer-foot{background:#1b3345;border-top-color:#3d5667}.drawer-body{background:linear-gradient(155deg,#192e40,#102332)}.drawer-body form{background:#1d3547;border-color:#3d5869;box-shadow:0 8px 26px #06152255}.drawer-body .master-card,.drawer-body .doc-top .field{background:linear-gradient(145deg,#29485b,#1e394b);border-color:#496577;box-shadow:0 3px 12px #071b2b55}.drawer-body .master-card .field>label,.drawer-body .doc-top .field>label,.drawer-body .field>label,.drawer-body .section-label,.drawer-body .option-section h3{color:#d6eaf3}.drawer-body .field input,.drawer-body .field select,.drawer-body .field textarea,.drawer-body .entry-lines td input,.drawer-body .entry-lines td select,.drawer-body .picker-add input{background:#102838;color:#eef8fc;border-color:#547185}.drawer-body input::placeholder,.drawer-body textarea::placeholder{color:#9bb7c5}.drawer-body select option{background:#142e40;color:#eef8fc}.drawer-body .readonly{background:#345065!important;color:#d5e4ec!important}.drawer-body .option-picker{background:#102b3c;border-color:#527389;color:#e7f2f7}.drawer-body .option-picker summary{color:#e7f2f7}.drawer-body .picker-panel{background:#183649;border-color:#527389;box-shadow:0 12px 26px #06172499}.drawer-body .picker-choices label{color:#e3f1f6}.drawer-body .picker-choices label:hover{background:#31566a}.drawer-body .picker-empty,.drawer-body .hint{color:#a9c4d1}.drawer-body .entry-lines th,.drawer-body .entry-table th{background:#315167;color:#e2f1f6;border-color:#547185}.drawer-body .entry-lines td,.drawer-body .entry-table td{background:#1e394b;color:#e3eff5;border-color:#496577}.drawer-body .entry-lines tbody tr:hover{background:#29485b}.drawer-body .doc-grid,.drawer-body .table-wrap{border-color:#496577}.drawer-body .grid-footer strong,.drawer-body .view-top strong{color:#f1f9fb}.drawer-body .view-top{background:#29475a;border-color:#557184}.drawer-body .view-top small{color:#bfd5e1}.drawer-body .banner{background:#254d56;border-color:#49828a;color:#dcf2ef}.drawer-body .banner.warn{background:#55422d;border-color:#96744b;color:#ffe5b9}.drawer-body .tag{background:#315c69;color:#e1f3f3}.drawer-body .option-section{border-color:#496577}.drawer-body .btn,.drawer-foot .btn{background:#294b5f;color:#eef8fc;border-color:#608092}.drawer-body .btn:hover,.drawer-foot .btn:hover{background:#365e71}.drawer-foot .btn.primary{background:#19a49b;border-color:#33c4b7;color:#082a32}.drawer-body .small-action{color:#7cddd0}.drawer-body .small-action.danger{color:#ffaaa2}.drawer-body .picker-done{background:#286b6e;color:#e7fbf7}.drawer-body .picker-done:hover{background:#328185}.drawer .close{background:#355568;color:#f5fbff}.drawer-body .role-grid div{background:#284559;color:#e7f2f7}
/* Balanced form palette and shorter inputs. */
.drawer,.drawer-body{background:#eaf1f5;color:#213d50}.drawer-head,.drawer-foot{background:#203b50;color:#f1f8fb}.drawer-body{background:linear-gradient(145deg,#eef5f8,#dde9ef)}.drawer-body form{background:#f8fbfd;border-color:#cbdde6;box-shadow:0 8px 22px #183b5120}.drawer-body .master-card,.drawer-body .doc-top .field{background:linear-gradient(145deg,#fff,#e9f3f7);border-color:#c9dce5;box-shadow:0 3px 9px #183b511b}.drawer-body .master-card .field>label,.drawer-body .doc-top .field>label,.drawer-body .field>label,.drawer-body .section-label,.drawer-body .option-section h3{color:#294b60}.drawer-body .field input,.drawer-body .field select,.drawer-body .field textarea,.drawer-body .entry-lines td input,.drawer-body .entry-lines td select,.drawer-body .picker-add input{background:#fff;color:#203d50;border-color:#9bb8c7}.drawer-body input::placeholder,.drawer-body textarea::placeholder{color:#7894a3}.drawer-body select option{background:#fff;color:#203d50}.drawer-body .readonly{background:#dce8ee!important;color:#4e6979!important}.drawer-body .option-picker{background:#fff;border-color:#9bb8c7;color:#203d50}.drawer-body .option-picker summary{color:#294b60}.drawer-body .picker-panel{background:#f8fcfd;border-color:#bfd4df;box-shadow:0 12px 24px #173b5140}.drawer-body .picker-choices label{color:#294b60}.drawer-body .picker-choices label:hover{background:#e2f2f3}.drawer-body .picker-empty,.drawer-body .hint{color:#617f90}.drawer-body .entry-lines th{background:#294a60;color:#f0f7fa;border-color:#496f83}.drawer-body .entry-lines td,.drawer-body .entry-table td{background:#f6fafc;color:#29495c;border-color:#d5e3e9}.drawer-body .entry-lines tbody tr:hover{background:#eaf4f6}.drawer-body .doc-grid,.drawer-body .table-wrap{border-color:#c2d8e2}.drawer-body .grid-footer strong,.drawer-body .view-top strong{color:#25475c}.drawer-body .view-top{background:#dceaf0;border-color:#bdd1dc}.drawer-body .view-top small{color:#607e90}.drawer-body .banner{background:#e3f4f0;border-color:#abdbd3;color:#286e66}.drawer-body .banner.warn{background:#fdf0db;border-color:#edcea0;color:#895c22}.drawer-body .tag{background:#dceff0;color:#286d72}.drawer-body .option-section{border-color:#d5e3e9}.drawer-body .btn{background:#e1edf2;color:#294e62;border-color:#9dbdcb}.drawer-body .btn:hover{background:#d1e4ed}.drawer-body .small-action{color:#187e80}.drawer-body .small-action.danger{color:#b45151}.drawer-body .picker-done{background:#d5eeec;color:#166f69}.drawer-body .picker-done:hover{background:#bee2df}.drawer-body .role-grid div{background:#e0edf2;color:#294a5f}.drawer-body .field input:not([type=checkbox]),.drawer-body .field select,.drawer-body .field textarea{width:min(50%,480px)}.drawer-body .master-card .field>input,.drawer-body .master-card .field>select,.drawer-body .master-card .field>.option-picker{width:min(50%,480px)}.drawer-body .doc-top .field>input,.drawer-body .doc-top .field>select{width:min(50%,480px)}.drawer-body .entry-lines td input,.drawer-body .entry-lines td select{width:100%}.drawer-body .picker-choices input[type=checkbox]{width:auto}.drawer-body .option-picker .option-input{width:100%}.drawer-body .quick-new-product{display:block;border:0;background:transparent;color:#137e83;font-size:12px;padding:5px 0 0;text-align:left}.quick-product-overlay{position:fixed;inset:0;z-index:27;background:#071e2db0;display:grid;place-items:center;padding:12px}.quick-product-card{width:min(760px,96vw);max-height:96vh;overflow:auto;background:#eaf1f5;border-radius:12px;box-shadow:0 22px 60px #071b2f88}.quick-product-card form{padding:12px;max-height:calc(96vh - 118px);overflow:auto}.quick-product-card .master-card{background:#f8fcfd;border:1px solid #cbdde6}.quick-product-card .field>label{color:#294b60}.quick-product-card .field input,.quick-product-card .field select{background:#fff;color:#203d50;border:1px solid #9bb8c7;border-radius:6px}.quick-product-card .field>input,.quick-product-card .field>select,.quick-product-card .field>.option-picker{width:min(50%,480px)}.quick-product-card .option-picker{background:#fff;color:#203d50}.quick-product-card .picker-choices label{display:flex;color:#294b60}.quick-product-card .drawer-foot .btn.primary{background:#19a49b;border-color:#19a49b;color:#082a32}
@media(max-width:899px){.drawer-body .field input:not([type=checkbox]),.drawer-body .field select,.drawer-body .field textarea,.drawer-body .master-card .field>input,.drawer-body .master-card .field>select,.drawer-body .master-card .field>.option-picker,.quick-product-card .field>input,.quick-product-card .field>select,.quick-product-card .field>.option-picker{width:100%}}
.page-bottom{display:flex;justify-content:flex-end;padding:14px 2px 30px}.page-print{background:#234b60;color:#fff;border-color:#234b60}.col-resizer{position:absolute;right:-5px;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;z-index:2}.col-resizer::after{content:"";position:absolute;top:22%;bottom:22%;left:4px;border-left:2px solid #59aaa9}.col-resizer:hover::after{border-color:#f3b755}.entry-lines th,.panel th,.entry-table th{position:relative}.drawer-body .entry-lines input:disabled,.drawer-body .entry-lines select:disabled{opacity:1;background:#e0eaf0;color:#38596c}.drawer-body .entry-lines .option-picker:has(input:disabled){background:#e0eaf0}.drawer-body .field input:read-only,.drawer-body .field textarea:read-only{background:#e0eaf0;color:#38596c}.drawer-body .field select:disabled{opacity:1;background:#e0eaf0;color:#38596c}.drawer-body .quick-new-product[hidden],.drawer-body #addLine[hidden]{display:none}
@media print{body{background:#fff!important;color:#000!important}.sidebar,.topbar,.page-head .actions,.page-bottom,.drawer-head .close,.drawer-foot,.col-resizer,#exportTray,#toast,.small-action,.quick-new-product{display:none!important}.app{display:block}.main{width:100%}main{max-width:none;padding:0}.panel,.drawer,.drawer-body,.drawer-body form,.master-card{box-shadow:none!important;background:#fff!important;color:#000!important;border-color:#aaa!important}body:has(#modalRoot .drawer) .app{display:none!important}body:has(#modalRoot .drawer) #modalRoot{display:block!important}.overlay{position:static;background:#fff;padding:0;display:block}.drawer,.drawer.wide,.drawer.product-form-drawer{width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important}.drawer-body{overflow:visible!important;padding:0!important}.drawer-body form{overflow:visible!important}.drawer-head{background:#fff!important;color:#000!important;border:0;padding:8px 0}.drawer-head h2{color:#000!important}.table-wrap{overflow:visible!important}.entry-lines{width:100%!important;min-width:0!important}.entry-lines th,.entry-lines td{background:#fff!important;color:#000!important;border:1px solid #999!important}.entry-lines input,.entry-lines select,.field input,.field select{border:0!important;background:#fff!important;color:#000!important}.option-picker{border:0!important;background:#fff!important}.option-picker summary{color:#000!important}.option-picker .picker-panel{display:none!important}}
.master-card,.doc-top .field{position:relative}.row-width-handle{position:absolute;right:-4px;top:22%;bottom:22%;width:9px;cursor:ew-resize;touch-action:none;z-index:3}.row-width-handle::after{content:"";position:absolute;left:4px;top:0;bottom:0;border-left:2px solid #5fa8ae}.row-width-handle:hover::after{border-color:#d39b4b}@media print{.row-width-handle{display:none!important}}
/* Print forms on their target paper without clipping table columns. */
@media print{html,body{margin:0!important;padding:0!important}.drawer-body,.drawer-body form,.panel{break-inside:auto!important}.drawer-body .master-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2mm!important}.drawer-body .master-card{padding:1mm 2mm!important;break-inside:avoid}.drawer-body .field input,.drawer-body .field select,.drawer-body .field textarea{width:100%!important;max-width:none!important;min-height:0!important;padding:0!important}.doc-top{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1mm!important}.doc-top .field{padding:1mm!important;box-shadow:none!important}.doc-grid{border:0!important}.entry-lines{table-layout:auto!important;width:100%!important;min-width:0!important;border-collapse:collapse!important;white-space:normal!important}.entry-lines colgroup{display:none!important}.entry-lines th,.entry-lines td{min-width:0!important;width:auto!important;padding:1mm!important;font-size:8pt!important;line-height:1.15!important;word-break:break-word!important;white-space:normal!important}.entry-lines td input,.entry-lines td select{width:100%!important;min-width:0!important;padding:0!important;font-size:8pt!important}.entry-lines .option-picker{min-width:0!important}.entry-lines .option-picker summary{min-height:0!important;padding:0!important;font-size:8pt!important}.entry-lines .row-combo{gap:0!important}.section-label{margin:2mm 0 1mm!important}.grid-footer{padding:1mm 0!important}.drawer-body .hint{font-size:8pt!important}.quick-new-product,#addLine,.remove-line{display:none!important}body.print-ticket .drawer-head{padding:0 0 1mm!important}body.print-ticket .drawer-head h2{font-size:10pt!important}body.print-ticket .drawer-body form{padding:0!important;border:0!important}body.print-ticket .doc-top{grid-template-columns:repeat(4,minmax(0,1fr))!important}body.print-ticket .doc-top .field{font-size:7pt!important}body.print-ticket .entry-lines th,body.print-ticket .entry-lines td,body.print-ticket .entry-lines td input,body.print-ticket .entry-lines td select{font-size:7pt!important;padding:.6mm!important}body.print-ticket .entry-lines .option-picker summary{font-size:7pt!important}body.print-ticket .grid-footer{font-size:8pt!important}}
.entry-lines.sales-auto-fit{min-width:0}.entry-lines.sales-auto-fit td{min-width:0!important}.entry-lines.sales-auto-fit td input,.entry-lines.sales-auto-fit td select{min-width:0}.entry-lines.sales-auto-fit .option-picker,.entry-lines.sales-auto-fit .picker-panel{min-width:0}
@media print{.outbound-print-hide{display:none!important}}

@page ticket-detail{size:21.6cm 9.3cm;margin:0.4cm}
@media print{body.print-ticket .drawer,body.print-ticket .panel{page:ticket-detail;max-width:20.8cm!important}body.print-ticket .doc-top,body.print-ticket .view-top{break-inside:avoid}body.print-ticket .entry-lines thead{display:table-header-group}body.print-ticket .entry-lines tr{break-inside:avoid}}
.entry-lines tr.new-variant .row-stock{color:#b46c19;font-weight:700;background:#fff3dc}
.product-suggestions{position:fixed;z-index:60;width:min(520px,calc(100vw - 16px));max-height:300px;overflow:auto;background:#fff;border:1px solid #8eb4c6;border-radius:9px;box-shadow:0 18px 44px #112d4266;padding:5px}.product-suggestions button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e2edf2;background:#fff;padding:9px 10px;color:#254a60}.product-suggestions button:hover,.product-suggestions button:focus{background:#e8f5f5}.product-suggestions strong{display:block;font-size:13px}.product-suggestions span{display:block;font-size:12px;line-height:1.5;color:#56768a;white-space:normal}.product-no-results{padding:13px;color:#617e8e;font-size:13px}@media print{.product-suggestions{display:none!important}}
.drawer:has(.sales-order-form){width:min(1100px,98vw)}.sales-order-form .doc-top{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-tab{font-size:13px;font-weight:700;color:#185c82;background:#d7eaf5;border:1px solid #a8c8da;border-bottom:0;padding:8px 15px;width:max-content;border-radius:7px 7px 0 0}.sales-tab-muted{display:none}.sales-order-form .doc-top{border-top:3px solid #3f98c5;border-radius:0 8px 8px 8px}.sales-order-form .sales-status{padding:7px 10px;color:#1d647f;font-weight:700;background:#e9f5f8;border-radius:5px;min-height:36px}.sales-order-form .entry-lines{min-width:0;width:100%;table-layout:fixed}.sales-order-form .entry-lines th{background:#367ca4;color:#fff;padding:9px 10px}.sales-order-form .entry-lines td{vertical-align:top;padding:8px 9px}.sales-order-form .entry-lines th:nth-child(1){width:45px}.sales-order-form .entry-lines th:nth-child(2){width:25%}.sales-order-form .entry-lines th:nth-child(3){width:34%}.sales-order-form .entry-lines th:nth-child(4),.sales-order-form .entry-lines th:nth-child(5){width:12%}.sales-order-form .model-entry{display:flex;gap:8px;align-items:center}.sales-order-form .model-entry .line-product{min-width:100px;flex:1}.sales-order-form .line-name{font-size:12px;color:#527487;white-space:normal}.sales-order-form .sales-spec{display:block;white-space:normal;line-height:1.5;min-height:30px}.sales-order-form .sales-more{font-size:11px;margin-top:3px}.sales-order-form .sales-more summary{color:#197b91;cursor:pointer}.sales-order-form .sales-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;background:#e9f3f7;padding:9px;border-radius:6px;white-space:normal}.sales-order-form .sales-more-grid label{font-size:11px;color:#45687c}.sales-order-form .sales-more-grid input,.sales-order-form .sales-more-grid select{margin-top:3px;min-height:30px}.sales-order-form .sales-shipped{color:#4a7181;font-weight:700}.sales-order-form .remove-line{margin-top:5px}.sales-order-form .row-note{min-width:70px}@media(max-width:700px){.sales-order-form .doc-top{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-order-form .entry-lines{min-width:700px}}@media print{.sales-order-form .sales-more,.sales-order-form .quick-new-product,.sales-order-form .remove-line{display:none!important}.sales-order-form .entry-lines{min-width:0!important}.sales-order-form .doc-top{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
.sales-order-form .doc-top.sales-header{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sales-order-form .sales-add-slot{display:flex;align-items:end;justify-content:flex-start}.sales-order-form .sales-add-slot .btn{min-width:120px;min-height:38px}.sales-related{font-size:12px;color:#42738a;margin:8px 0}.sales-related summary{cursor:pointer}.sales-related .field{margin-top:8px}.product-select-overlay{position:fixed;inset:0;z-index:26;background:#102738b8;display:grid;place-items:center;padding:14px}.product-select-card{width:min(1050px,98vw);height:min(740px,95vh);background:#f4f9fb;border-radius:12px;box-shadow:0 24px 70px #071b2e88;display:flex;flex-direction:column;overflow:hidden}.product-select-head{background:linear-gradient(110deg,#204c69,#3885aa);color:#fff;padding:14px 19px;display:flex;align-items:center;justify-content:space-between}.product-select-head h2{margin:0;font-size:19px}.product-select-tools{display:flex;gap:10px;padding:13px 18px;border-bottom:1px solid #c9dce5}.product-select-tools input{flex:1;min-width:0;border:1px solid #a7c2d0;border-radius:6px;padding:9px 12px}.product-select-list{flex:1;overflow:auto;padding:12px 18px}.product-select-item{display:grid;grid-template-columns:24px minmax(170px,1fr) minmax(170px,1.8fr) 90px;gap:10px;align-items:center;background:#fff;border:1px solid #d8e6ec;border-radius:7px;margin-bottom:7px;padding:10px;color:#244b60;cursor:pointer}.product-select-item:hover{background:#eaf5f8}.product-select-item strong{font-size:13px}.product-select-item span{color:#59798b;font-size:12px}.product-select-item em{font-style:normal;color:#168386;font-size:12px;text-align:right}.product-select-empty{padding:42px;text-align:center;color:#637f8e}.product-select-foot{display:flex;align-items:center;gap:10px;padding:13px 18px;background:#e7f1f5;border-top:1px solid #c5dbe5}.product-select-foot span{margin-right:auto;color:#45697a}@media(max-width:700px){.sales-order-form .doc-top.sales-header{grid-template-columns:repeat(2,minmax(0,1fr))}.product-select-item{grid-template-columns:24px 1fr 65px}.product-select-item span{grid-column:2/-1}.product-select-tools{flex-wrap:wrap}.product-select-tools input{flex-basis:100%}}@media print{.sales-order-form .doc-top.sales-header{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sales-add-slot,.sales-related,.product-select-overlay{display:none!important}}
.product-select-tools{align-items:end}.product-select-tools label{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;color:#345b70;font-size:12px;font-weight:700}.product-select-tools label input{width:100%;min-height:36px;font-weight:400}.product-select-tools .select-default-qty{flex:0 0 128px}.product-select-list{min-height:120px}.product-select-item{grid-template-columns:24px minmax(160px,1fr) minmax(180px,1.7fr) 75px 105px}.product-select-item .product-choice-qty{width:100%;border:1px solid #a5c2d0;border-radius:5px;padding:6px;color:#24475b}.selector-new-product{border-top:1px solid #c6dae4;padding:11px 18px;overflow:auto;max-height:53%;background:#eef6f9}.selector-new-product>summary{color:#176b88;font-weight:700;cursor:pointer}.selector-new-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.selector-new-fields>label,.selector-new-fields>.selector-ear{display:flex;flex-direction:column;gap:5px;color:#345b70;font-size:12px;font-weight:700}.selector-new-fields input,.selector-new-fields select{min-width:0;width:100%;padding:7px;border:1px solid #a8c5d2;border-radius:5px;background:#fff;color:#24465a}.selector-new-fields .option-picker{background:#fff;border:1px solid #a8c5d2;border-radius:5px}.selector-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.selector-option-grid section{background:#fff;border:1px solid #c9dfe8;border-radius:7px;padding:10px;min-width:0}.selector-option-grid h3{margin:0 0 8px;color:#285d78;font-size:13px}.selector-option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:160px;overflow:auto}.selector-option-list label{display:flex;gap:5px;align-items:center;padding:4px 5px;background:#f3f8fa;border-radius:4px;color:#365a6c;font-size:12px;cursor:pointer}.selector-new-product>.btn{margin:8px 0 2px}.selector-new-product .hint{margin:10px 0 0}@media(max-width:700px){.product-select-tools{flex-wrap:wrap}.product-select-tools label{flex:1 1 42%}.product-select-tools .select-default-qty{flex:1 1 100px}.product-select-item{grid-template-columns:24px 1fr 70px}.product-select-item span{grid-column:2/-1}.product-select-item .product-choice-qty{grid-column:3}.selector-new-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.selector-option-grid{grid-template-columns:1fr}}
.sales-order-form .entry-lines th:nth-child(4){width:18%}.sales-order-form .entry-lines th:nth-child(5),.sales-order-form .entry-lines th:nth-child(6){width:11%}.sales-order-form .sales-ear-cell .option-picker{min-width:0}.sales-order-form .sales-ear-cell .picker-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-order-form .sales-ear-cell .picker-panel{min-width:190px}.sales-order-form .sales-ear-cell .picker-choices{max-height:170px;overflow:auto}@media print{.sales-order-form .sales-ear-cell .option-picker{border:0!important}.sales-order-form .sales-ear-cell summary{padding:0!important}}
.sales-order-form .entry-lines th:nth-child(7){width:11%}.outbound-print-top{display:none}@media print{.drawer:has(.outbound-print-top) .doc-top,.drawer:has(.outbound-print-top) .view-top{display:none!important}.outbound-print-top{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4mm;align-items:center;margin:1mm 0 2mm;padding:1mm 0;border-bottom:1px solid #777;color:#000;font-size:9pt}.outbound-print-top span{white-space:nowrap}.outbound-print-top strong{font-weight:600;margin-left:2mm}.drawer:has(.outbound-print-top) .section-label{margin-top:1mm!important}}
.drawer-body .outbound-detail-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:center;padding:12px 16px;margin:8px 0 16px;background:#e4f0f5;border:1px solid #bdd4df;border-radius:7px;color:#294a60;font-size:13px}.outbound-detail-head span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outbound-detail-head strong{margin-left:6px;color:#1f4054}@media(max-width:680px){.drawer-body .outbound-detail-head{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.drawer-body .outbound-detail-head{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:1mm 0 2mm!important;padding:1mm 0!important;background:#fff!important;border:0!important;border-bottom:1px solid #777!important;border-radius:0!important;color:#000!important}.outbound-detail-head strong{color:#000!important}}
@media print{.drawer:has(.outbound-print-top) .banner{display:none!important}}
.selector-new-fields .selector-warehouse-field{grid-column:1/-1;display:flex;flex-direction:column;gap:7px;color:#345b70;font-size:12px}.selector-warehouse-options{display:flex;flex-wrap:wrap;gap:7px}.selector-warehouse-options label{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #bfd5df;border-radius:6px;background:#fff;color:#31566a;cursor:pointer}.selector-warehouse-options input{width:auto!important;min-width:0!important;margin:0}.selector-warehouse-options label:has(input:checked){background:#dff4ef;border-color:#59b4a6}

/* New product forms: soft grey raised cards and a highlighted name field. */
.product-form-drawer .drawer-body,.quick-product-card form,.selector-new-product{background:#e8eaed!important;color:#171717!important}
.product-form-drawer .drawer-body form,.quick-product-card form{border:1px solid #cbd0d5;border-radius:10px;padding:14px;background:linear-gradient(145deg,#f2f3f5,#e3e6e9)!important;box-shadow:inset 2px 2px 5px #c8cdd2,inset -2px -2px 5px #fff}
.product-form-drawer .master-card,.quick-product-card .master-card,.selector-new-fields>label,.selector-option-grid section{background:linear-gradient(145deg,#f9fafb,#e2e5e8)!important;border:1px solid #c9cdd1!important;border-radius:8px;box-shadow:3px 4px 8px #c8cdd2,-2px -2px 5px #fff;color:#171717!important}
.product-form-drawer .drawer-body label,.product-form-drawer .drawer-body .field,.quick-product-card form label,.quick-product-card form .field,.selector-new-product label,.selector-new-product h3,.selector-new-product strong,.selector-new-product summary,.selector-new-product .hint{color:#171717!important}
.product-form-drawer [name="产品名称"],.quick-product-card [name="产品名称"],#newProductName{background:#fff0a3!important;color:#111!important;border:1px solid #b99b43!important;box-shadow:inset 2px 2px 4px #d4be70,inset -1px -1px 3px #fff9d7!important}
.product-form-drawer [name="产品名称"]:focus,.quick-product-card [name="产品名称"]:focus,#newProductName:focus{outline:2px solid #d3ac33;outline-offset:1px}
.selector-new-product{border:1px solid #c5cbd0!important;box-shadow:inset 2px 2px 5px #cbd0d4,inset -2px -2px 5px #fff!important}

/* Sales order summary follows the blue desktop ledger in the reference. */
.order-summary{border:1px solid #76a8c5;background:#d9ecf6;box-shadow:0 8px 24px #214d6630;overflow:hidden;color:#153e59}
.order-summary-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px;background:linear-gradient(180deg,#e8f3fb,#c9e2f1);border-bottom:3px solid #7fb6d0}
.order-summary-top strong{font-family:"Microsoft YaHei",sans-serif;font-size:22px;letter-spacing:2px;color:#132e46}
.order-summary-actions{display:flex;gap:7px;flex-wrap:wrap}.order-summary-actions .btn{padding:6px 12px;border:1px solid #7faec8;border-radius:2px;background:linear-gradient(#f5fbff,#cae6f5);color:#1b587a;box-shadow:inset 1px 1px #fff,1px 2px 3px #456e8655}
.order-summary-filters{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:7px 13px;padding:12px 17px;background:linear-gradient(110deg,#d8ecf5,#6ab1d5);border-bottom:2px solid #689fc0;align-items:end}
.order-summary-filters label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px;font-weight:700;color:#173e59}.order-summary-filters input,.order-summary-filters select{min-width:0;flex:1;width:100%;height:30px;padding:3px 6px;border:1px solid #86aeca;border-radius:1px;background:#f6fbff;color:#123e5b;box-shadow:inset 1px 2px 3px #56799133}.order-summary-filters .summary-search{grid-column:span 3}.order-summary-filters .summary-count{font-size:12px;color:#174961;white-space:nowrap}
.order-summary-scroll{overflow:auto;max-height:min(68vh,690px);background:#f8fbfd}.order-summary-table{width:100%;min-width:1350px;border-collapse:collapse;table-layout:fixed;white-space:nowrap}.order-summary-table th,.order-summary-table td{border:1px solid #81a9bf;padding:6px 7px;font-size:12px;color:#143b54;overflow:hidden;text-overflow:ellipsis}.order-summary-table thead th{position:sticky;top:0;z-index:2;background:linear-gradient(#9dd0e8,#66a9cb);font-weight:700;color:#123b56}.order-summary-table tbody tr:nth-child(odd){background:#f4f8fa}.order-summary-table tbody tr:nth-child(even){background:#fff6b9}.order-summary-table tbody tr:hover{background:#2878ad!important}.order-summary-table tbody tr:hover td{color:#fff}.order-summary-table .summary-index{width:45px;text-align:right}.order-summary-table th:nth-child(2){width:105px}.order-summary-table th:nth-child(3){width:108px}.order-summary-table th:nth-child(4){width:84px}.order-summary-table th:nth-child(5){width:155px}.order-summary-table th:nth-child(6){width:160px}.order-summary-table th:nth-child(7){width:270px}.order-summary-table th:nth-child(8),.order-summary-table th:nth-child(9),.order-summary-table th:nth-child(10){width:95px}.order-summary-table th:nth-child(11){width:130px}.order-summary-table th:nth-child(12){width:90px}.order-summary-table th:nth-child(13){width:110px}.order-summary-table .summary-number{text-align:right;font-variant-numeric:tabular-nums}.order-summary-table .summary-empty{text-align:center;padding:30px}.order-summary-table tfoot th,.order-summary-table tfoot td{position:sticky;bottom:0;background:#d6e9f3;border-top:2px solid #5f91ac;font-weight:700;color:#133d56}
@media(max-width:1000px){.order-summary-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.order-summary-filters .summary-search{grid-column:span 2}}@media(max-width:600px){.order-summary-filters{grid-template-columns:1fr 1fr}.order-summary-filters .summary-search{grid-column:span 2}.order-summary-top{align-items:flex-start;flex-direction:column}}
@media print{.order-summary{border:0;box-shadow:none}.order-summary-top{background:#fff!important;border:0;padding:0 0 4mm}.order-summary-actions,.order-summary-filters{display:none!important}.order-summary-scroll{max-height:none;overflow:visible}.order-summary-table{min-width:0!important;width:100%!important;table-layout:auto!important}.order-summary-table colgroup{display:none}.order-summary-table th,.order-summary-table td{font-size:7pt!important;padding:1mm!important;white-space:normal;overflow:visible;word-break:break-word;background:#fff!important;color:#000!important;border-color:#777!important}.order-summary-table thead th,.order-summary-table tfoot th,.order-summary-table tfoot td{position:static;background:#e6edf2!important;color:#000!important}.order-summary-table tbody tr{break-inside:avoid}}

.sales-order-form .sales-remaining,.entry-lines .outbound-remaining{font-weight:700;color:#176e83;font-variant-numeric:tabular-nums}.drawer-foot .form-print:disabled{opacity:.48;cursor:not-allowed}.sales-order-form .entry-lines th:nth-child(8){width:11%}

/* Seven collapsible module bands and the illustrated module landing pages. */
.sidebar{background:linear-gradient(100deg,#071c42 0%,#084579 58%,#0a315f 100%)}.side-scroll{padding:12px 8px 28px}.dashboard-link{margin-bottom:12px}.nav-accordion{margin:2px 0 5px}.nav-group-head{display:flex;align-items:stretch;min-height:46px;border:1px solid #4083ad;border-radius:3px;background:linear-gradient(180deg,#206997,#0b426f 55%,#092b56);box-shadow:inset 1px 1px #8ec3dc70,0 2px 5px #00132d55}.nav-group-head:hover,.nav-accordion:has(.nav-group-link.active) .nav-group-head{background:linear-gradient(#2c80af,#105985 55%,#0a3b69)}.nav-group-link,.nav-group-toggle{border:0;background:transparent;color:#eef9ff}.nav-group-link{display:flex;align-items:center;gap:10px;text-align:left;flex:1;min-width:0;padding:8px 11px;font-size:14px;font-weight:700}.nav-group-link.active{color:#fff8c6}.nav-group-icon{width:22px;height:22px;display:grid;place-items:center;background:linear-gradient(#8ed0e9,#3b85b1);border-radius:4px;color:#07375c;font-size:15px;box-shadow:0 1px 3px #001a34}.nav-group-toggle{width:34px;border-left:1px solid #75a9ca55;font-size:21px;line-height:1}.nav-chevron{display:inline-block;transition:transform .18s}.nav-accordion.expanded .nav-chevron{transform:rotate(180deg)}.nav-group-items{padding:4px 0 6px 8px;background:#062d59aa;border-left:2px solid #53a5ce;margin-left:5px}.nav-group-items[hidden]{display:none}.nav-group-items .nav-item{font-size:13px;padding:7px 10px;min-height:34px;margin:1px 0;border-radius:3px;color:#d4e8f7}.nav-group-items .nav-item:hover,.nav-group-items .nav-item.active{background:linear-gradient(90deg,#1c6e9d,#135077);color:#fff}.nav-item-mark{width:5px;height:5px;background:#77b8d8;border-radius:50%;margin-right:2px}.nav-group-items .sub-nav{padding-left:32px;font-size:12px;color:#a9d5e9}.nav-group-items .sub-nav::before{content:"└";margin-right:7px;color:#5ca4c8}
.module-hub{min-height:610px;border:1px solid #d4e3ec;border-radius:6px;background:linear-gradient(135deg,#fff,#f9fcfe);box-shadow:0 6px 20px #123b5715;padding:0 28px 44px}.module-hub-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 4px 14px;color:#123f69;font-size:16px;font-weight:700}.module-hub-heading small{font-size:12px;color:#7196ad}.module-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:180px;max-width:950px;margin:15px auto 25px;align-items:center;justify-items:center}.module-hub-tile{border:0;background:transparent;color:#122f4b;display:flex;flex-direction:column;align-items:center;gap:12px;padding:15px 22px;border-radius:12px;min-width:130px;font-size:16px}.module-hub-tile:hover,.module-hub-tile:focus-visible{background:#eaf5fb;outline:1px solid #bdd9e8}.module-hub-icon{display:grid;place-items:center;width:70px;height:64px;font-size:37px;line-height:1;color:#083f70;background:radial-gradient(circle at 28% 20%,#f8ffff,#88bee0 55%,#4685b2);border:1px solid #5c9ac0;border-radius:12px;box-shadow:inset 2px 2px #fff9,inset -3px -3px #23618c65,3px 6px 8px #315d7b3b}.module-hub-icon.tone-1{color:#356528;background:radial-gradient(circle at 25% 20%,#fff,#c4e2a1,#7faa60)}.module-hub-icon.tone-2{color:#a75b12;background:radial-gradient(circle at 25% 20%,#fff,#f8dba3,#d2a152)}.module-hub-icon.tone-3{color:#146e80;background:radial-gradient(circle at 25% 20%,#fff,#b9e4ed,#77abc7)}.module-hub-icon.tone-4{color:#3c5d94;background:radial-gradient(circle at 25% 20%,#fff,#cfdef6,#83a5d2)}.module-hub-icon.tone-5{color:#39733e;background:radial-gradient(circle at 25% 20%,#fff,#ccecca,#78bb8d)}.module-hub-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;max-width:950px;margin:0 auto;border-top:3px solid #5aadd0;padding:20px 10px}.module-hub-links button{border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;color:#175783;font-size:14px;font-weight:700;padding:5px}.module-hub-links button:hover{text-decoration:underline;color:#0a7aa8}.module-link-icon{color:#77a9c4;font-size:20px}
@media(max-width:700px){.module-hub{padding:0 12px 28px;min-height:0}.module-hub-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:140px}.module-hub-links{grid-template-columns:repeat(2,1fr);gap:8px}.module-hub-tile{font-size:13px;min-width:0}.module-hub-icon{width:56px;height:54px;font-size:28px}}@media print{.module-hub{box-shadow:none;border:0}.module-hub-grid{grid-auto-rows:105px}.module-hub-tile,.module-hub-links button{color:#000!important}}

.return-signature-field{display:grid;grid-template-columns:105px minmax(0,280px);align-items:center;gap:10px;margin-top:10px}.return-signature-field label{margin:0}.return-signature-field input{width:100%!important;min-width:0}.return-detail-footer{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;padding:12px 16px;background:#edf5f8;border:1px solid #c7dce6;border-radius:8px}.return-detail-footer small{display:block;color:#5c7888;font-size:12px;margin-bottom:6px}.return-detail-footer strong{color:#213e50;white-space:pre-wrap}@media print{.return-detail-footer{background:#fff!important;border:0;border-top:1px solid #777;border-radius:0;padding:2mm 0}.return-detail-footer small,.return-detail-footer strong{color:#000!important}.return-signature-field{grid-template-columns:24mm 1fr!important}}

.inventory-panel{background:#e9edf1;border:1px solid #91a9bb;box-shadow:inset 2px 2px 5px #fff,0 7px 18px #183c5860}.inventory-toolbar{background:linear-gradient(145deg,#e7edf2,#d1dce5);border-bottom:2px solid #7897ad;box-shadow:inset 1px 1px #fff,0 3px 6px #46627442;align-items:end}.inventory-toolbar label{display:flex;flex-direction:column;gap:4px;color:#123d61;font-size:12px;font-weight:700;min-width:125px}.inventory-toolbar label:first-child{flex:1 1 260px}.inventory-toolbar label:not(:first-child){flex:1 1 155px}.inventory-toolbar select,.inventory-toolbar .search{width:100%;min-width:0;min-height:35px;border:1px solid #819eb2;border-radius:5px;padding:6px 9px;background:#f9fbfc;color:#163a55;box-shadow:inset 2px 2px 4px #aebfcc77,inset -1px -1px 2px #fff}.inventory-result-count{font-size:12px;color:#3c617b;padding:8px 4px}.inventory-panel .table-wrap{background:#eff2f5}.inventory-panel table{border-collapse:separate;border-spacing:0}.inventory-panel th{background:linear-gradient(#285b81,#123b61);color:#fff;border-right:1px solid #7099b6;border-bottom:2px solid #0d2e51;box-shadow:inset 0 1px #83abc2;font-weight:700}.inventory-panel td{background:#f1f3f5;color:#162f44;border-right:1px solid #d0d9df;border-bottom:1px solid #c5d0d8;box-shadow:inset 0 1px #fff}.inventory-panel tbody tr:nth-child(even) td{background:#e4e9ee}.inventory-panel tbody tr:hover td{background:#d1e3ee}.inventory-panel td:nth-last-child(3){font-weight:700;color:#144f75}
.product-suggestions.transfer-suggestions{width:min(700px,calc(100vw - 16px))}.transfer-suggestions button{display:flex;align-items:center;gap:12px;white-space:nowrap}.transfer-suggestions strong{display:inline-block;flex:none;max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#183e5a}.transfer-suggestions span{display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b6b7b}.drawer:has(.entry-lines) .line-product{white-space:nowrap;text-overflow:ellipsis}@media(max-width:700px){.inventory-toolbar label{flex:1 1 45%}.transfer-suggestions button{gap:6px}.transfer-suggestions strong{max-width:35%}}@media print{.inventory-panel,.inventory-toolbar,.inventory-panel td,.inventory-panel th{box-shadow:none!important;background:#fff!important;color:#000!important}}
.production-plan-form .doc-top{grid-template-columns:repeat(3,minmax(0,1fr))}
.production-plan-form .priority-field{grid-column:3;grid-row:1}
.production-plan-form .row-order-qty{background:#eef3f7!important;color:#314b60!important;cursor:default}
@media(max-width:700px){.production-plan-form .doc-top{grid-template-columns:repeat(2,minmax(0,1fr))}.production-plan-form .priority-field{grid-column:2;grid-row:1}}
@media print{body.print-ticket .production-plan-form .doc-top{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.print-ticket .production-plan-form .priority-field{grid-column:3!important;grid-row:1!important}}
.view-top:has(.plan-view-priority){grid-template-columns:repeat(4,minmax(0,1fr))}
.view-top .plan-view-priority{grid-column:4;grid-row:1}
@media print{body.print-ticket .view-top .plan-view-priority{grid-column:4!important;grid-row:1!important}}

.storage-warning{margin:0 0 16px;padding:11px 15px;border:1px solid #d69c41;border-radius:8px;background:#fff0d5;color:#804b0d;font-weight:700}
.production-summary .order-summary-filters{grid-template-columns:minmax(260px,1fr) auto}.production-summary .order-summary-table{min-width:1650px}.production-summary .summary-sort{display:block;width:100%;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer;padding:0;white-space:nowrap}.production-summary .summary-sort:hover{color:#006da0;text-decoration:underline}
@media print{
 body.print-ticket .production-plan-form .doc-top,body.print-ticket .production-plan-detail .view-top{gap:1mm 2mm!important;margin-bottom:1mm!important;padding:1mm!important}
 body.print-ticket .production-plan-form .doc-top .field input,body.print-ticket .production-plan-form .doc-top .field select{height:5mm!important;min-height:0!important;padding:.4mm 1mm!important;font-size:7pt!important}
 body.print-ticket .production-plan-form .entry-lines,body.print-ticket .production-plan-detail .entry-lines{width:100%!important;max-width:20.8cm!important;table-layout:fixed!important;white-space:normal!important}
 body.print-ticket .production-plan-form .entry-lines colgroup,body.print-ticket .production-plan-detail .entry-lines colgroup{display:none!important}
 body.print-ticket .production-plan-form .entry-lines th,body.print-ticket .production-plan-form .entry-lines td,body.print-ticket .production-plan-detail .entry-lines th,body.print-ticket .production-plan-detail .entry-lines td{font-size:6pt!important;line-height:1.15!important;padding:.4mm!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body.print-ticket .production-plan-form .entry-lines input,body.print-ticket .production-plan-form .entry-lines select{width:100%!important;min-width:0!important;max-width:100%!important;font-size:6pt!important;padding:0!important;border:0!important}
 body.print-ticket .production-plan-form .entry-lines th:last-child,body.print-ticket .production-plan-form .entry-lines td:last-child{display:none!important}
 body.print-ticket .production-plan-detail .banner{display:none!important}
 body.print-ticket .production-plan-form .section-label,body.print-ticket .production-plan-detail .section-label{margin:1mm 0!important;padding:0!important}
}
.material-issue-row .issue-material-name{font-weight:700;color:#204b65}.material-issue-row .issue-required,.material-issue-row .issue-stock{font-weight:600;white-space:nowrap}.material-issue-row .issue-product{min-width:180px}
@media print{body.print-ticket .material-issue-row .issue-product{min-width:0!important;width:100%!important;border:0!important}body.print-ticket .production-plan-form .row-material-qty{font-weight:700}body.print-ticket .production-plan-form .entry-lines th,body.print-ticket .production-plan-form .entry-lines td,body.print-ticket .production-plan-detail .entry-lines th,body.print-ticket .production-plan-detail .entry-lines td{font-size:5.6pt!important}}
.material-issue-row .issue-source-name{font-weight:700;color:#24485e;min-width:115px}
@media print{
 body.print-ticket .material-issue-form .entry-lines,body.print-ticket .material-issue-detail .entry-lines{width:100%!important;max-width:20.8cm!important;table-layout:fixed!important;white-space:normal!important}
 body.print-ticket .material-issue-form .entry-lines colgroup,body.print-ticket .material-issue-detail .entry-lines colgroup{display:none!important}
 body.print-ticket .material-issue-form .entry-lines th,body.print-ticket .material-issue-form .entry-lines td,body.print-ticket .material-issue-detail .entry-lines th,body.print-ticket .material-issue-detail .entry-lines td{font-size:5.5pt!important;line-height:1.12!important;padding:.4mm!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body.print-ticket .material-issue-form .entry-lines input,body.print-ticket .material-issue-form .entry-lines select{width:100%!important;min-width:0!important;max-width:100%!important;font-size:5.5pt!important;padding:0!important;border:0!important}
 body.print-ticket .material-issue-form .entry-lines th:last-child,body.print-ticket .material-issue-form .entry-lines td:last-child{display:none!important}
 body.print-ticket .material-issue-detail .banner{display:none!important}
}
.inventory-panel th .inventory-sort{display:block;width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:700;padding:0;white-space:nowrap}.inventory-panel th .inventory-sort:hover,.inventory-panel th .inventory-sort:focus-visible{color:#bcf4f1;text-decoration:underline;outline-offset:3px}.product-inventory-panel .small-action{color:#086f84}.product-inventory-panel .small-action.danger{color:#a84242}
.nav-child-head{display:flex;align-items:center;position:relative}.nav-child-head>.nav-item{min-width:0;flex:1;padding-right:3px}.nav-child-toggle{flex:none;width:30px;height:34px;border:0;border-radius:6px;background:transparent;color:#a9c7d4;font-size:17px;display:grid;place-items:center}.nav-child-toggle:hover{background:#2b5069;color:#fff}.nav-child-toggle[aria-expanded="true"] span{transform:rotate(180deg)}.nav-child-items[hidden]{display:none}.nav-child-items .sub-nav{padding-left:43px}
.purchase-product-result{display:flex;align-items:center;gap:12px;width:100%;padding:12px 16px;border:0;border-bottom:1px solid #dce7ec;background:#fff;text-align:left;color:#2a4758}.purchase-product-result:hover,.purchase-product-result:focus-visible{background:#e8f5f5}.purchase-product-result strong{min-width:145px;color:#153e56}.purchase-product-result span{min-width:0;flex:1;color:#607d8d;overflow:hidden;text-overflow:ellipsis}.purchase-product-result em{font-style:normal;color:#126f78;font-weight:700}.purchase-product-overlay .product-select-tools label{flex:1}.purchase-product-overlay .product-select-list{max-height:55vh;overflow:auto}
.product-select-tools #productCategoryFilter{width:100%;min-width:0;min-height:36px;border:1px solid #a7c2d0;border-radius:6px;padding:7px 10px;background:#fff;color:#24465a;font:inherit;font-weight:400}
.production-plan-form .entry-lines td.plan-material-cell,.production-plan-detail .entry-lines td.plan-material-cell,.material-issue-form .entry-lines td.issue-material-name,.material-issue-detail .entry-lines td.issue-material-name{background:#d9f1f4!important;color:#07556d!important;font-weight:800!important;box-shadow:inset 3px 0 #0b889b}.plan-material-cell .row-用料,.plan-material-cell .plan-blank-code{color:#07556d!important;font-weight:800!important}.plan-pickup-signature{display:none}@media print{body.print-ticket .production-plan-form .plan-pickup-signature,body.print-ticket .production-plan-detail .plan-pickup-signature{display:flex!important;align-items:end;gap:3mm;margin:3mm 0 0 auto;width:65mm;font-size:9pt;color:#111;break-inside:avoid}body.print-ticket .plan-pickup-signature i{flex:1;height:8mm;border-bottom:1px solid #111}body.print-ticket .material-issue-form .entry-lines td.issue-material-name,body.print-ticket .material-issue-detail .entry-lines td.issue-material-name{background:#d9f1f4!important;color:#07556d!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.sales-summary .order-summary-table thead th[data-summary-column]{cursor:grab;white-space:nowrap}.sales-summary .order-summary-table thead th.summary-dragging{opacity:.45}.sales-summary .order-summary-table thead th.summary-drop-target{box-shadow:inset 3px 0 #0a8a9c;background:#d8f1f3!important}.summary-drag-grip{margin-left:5px;color:#6c90a0;font-weight:700;letter-spacing:-2px;cursor:grab}.production-plan-detail .plan-receipt-action{text-align:center;white-space:nowrap}@media print{body.print-ticket .production-plan-detail .entry-lines .plan-receipt-action{display:none!important}}
@media print{.summary-drag-grip{display:none!important}}
.production-plan-form .plan-blank-tag,.production-plan-detail .plan-blank-tag{display:inline-block;margin-left:6px;padding:1px 5px;border-radius:4px;background:#d7eaf7;color:#145e86;font-size:11px;font-weight:700;vertical-align:middle}@media print{body.print-ticket .plan-blank-tag{padding:0;background:none;color:#111;font-size:7pt}}
/* Purchase order entry follows the new-product form's grey raised surfaces. */
.purchase-order-drawer{width:min(1180px,98vw)}.purchase-order-drawer .drawer-body{background:#e8eaed!important;color:#171717!important;padding:15px 18px}.purchase-order-drawer .drawer-body form{background:linear-gradient(145deg,#f2f3f5,#e3e6e9)!important;border:1px solid #cbd0d5;border-radius:10px;box-shadow:inset 2px 2px 5px #c8cdd2,inset -2px -2px 5px #fff;padding:15px}.purchase-order-drawer .doc-top{gap:9px;margin-bottom:14px}.purchase-order-drawer .doc-top .field{background:linear-gradient(145deg,#f9fafb,#e2e5e8)!important;border:1px solid #c9cdd1!important;border-radius:8px;box-shadow:3px 4px 8px #c8cdd2,-2px -2px 5px #fff;padding:9px 11px;color:#171717}.purchase-order-drawer .drawer-body .field>label,.purchase-order-drawer .drawer-body .section-label{color:#171717!important;font-weight:700}.purchase-order-drawer .doc-top .field>input,.purchase-order-drawer .doc-top .field>select{width:100%;max-width:none;background:#fff!important;color:#171717!important;border-color:#b8c1c8!important}.purchase-order-drawer .section-label{margin:13px 0 9px}.purchase-order-drawer .doc-grid{background:#e8eaed;border:1px solid #cbd0d5;border-radius:8px;padding:5px}.purchase-order-drawer .entry-lines{border-collapse:separate;border-spacing:0 5px}.purchase-order-drawer .entry-lines th{background:#cdd3d9!important;color:#253746!important;border:1px solid #bfc7ce!important;padding:8px 9px}.purchase-order-drawer .entry-lines td{background:linear-gradient(145deg,#f9fafb,#e3e7ea)!important;color:#171717!important;border-top:1px solid #fff!important;border-bottom:1px solid #c8ced4!important;padding:8px 7px}.purchase-order-drawer .entry-lines td input,.purchase-order-drawer .entry-lines td select,.purchase-order-drawer .option-picker{background:#fff!important;color:#171717!important;border:1px solid #adb9c3!important;border-radius:5px}.purchase-order-drawer .entry-lines .line-product{background:#fff0a3!important;color:#111!important;border:1px solid #b99b43!important;box-shadow:inset 2px 2px 4px #d4be70,inset -1px -1px 3px #fff9d7!important}.purchase-order-drawer .entry-lines .line-product:focus{outline:2px solid #d3ac33;outline-offset:1px}.purchase-order-drawer .grid-footer{color:#253746}.purchase-order-drawer .drawer-body textarea{width:100%!important;max-width:none;background:#fff!important;color:#171717!important;border-color:#b8c1c8!important}.purchase-order-drawer .drawer-body .picker-panel{background:#f7f8f9!important;color:#171717!important}.purchase-order-drawer .drawer-body .picker-choices label{color:#171717!important}@media(max-width:700px){.purchase-order-drawer .drawer-body{padding:9px}.purchase-order-drawer .drawer-body form{padding:9px}.purchase-order-drawer .doc-top{grid-template-columns:1fr 1fr}.purchase-order-drawer .entry-lines{min-width:980px}}@media print{.purchase-order-drawer .drawer-body,.purchase-order-drawer .drawer-body form,.purchase-order-drawer .doc-top .field,.purchase-order-drawer .entry-lines td,.purchase-order-drawer .entry-lines th{background:#fff!important;color:#000!important;box-shadow:none!important}}
.purchase-order-form .row-spec-manual{display:none;width:100%;min-width:135px}.purchase-order-form.purchase-simple .row-spec-manual{display:block}.purchase-order-form.purchase-simple [data-multi="规格"]{display:none}.purchase-order-form.purchase-simple .entry-lines th:nth-child(6),.purchase-order-form.purchase-simple .entry-lines td:nth-child(6),.purchase-order-form.purchase-simple .entry-lines th:nth-child(7),.purchase-order-form.purchase-simple .entry-lines td:nth-child(7){display:none}
@media print{.purchase-order-form.purchase-simple .entry-lines th:nth-child(6),.purchase-order-form.purchase-simple .entry-lines td:nth-child(6),.purchase-order-form.purchase-simple .entry-lines th:nth-child(7),.purchase-order-form.purchase-simple .entry-lines td:nth-child(7){display:none!important}}
.purchase-order-form #purchaseNewProduct[hidden]{display:none!important}

.purchase-order-form .row-spec-manual{display:block}
.purchase-order-form [data-multi="规格"]{display:none}
.purchase-receipt-form .entry-lines th:nth-child(6),.purchase-receipt-form .entry-lines td:nth-child(6),.purchase-receipt-form .entry-lines th:nth-child(7),.purchase-receipt-form .entry-lines td:nth-child(7){display:none}

.inventory-panel .table-wrap{background:#edf2f6}.inventory-panel table th{background:#dbe6ed;color:#173d59}.inventory-panel table td{background:#f7fafc;border-bottom:1px solid #d5e1e8}.inventory-panel table tbody tr:nth-child(even) td{background:#eaf1f6}.report-sort{width:100%;text-align:left}

.receipt-remaining{display:block;white-space:nowrap;color:#41657a;font-size:11px;margin-top:4px}

.purchase-quick-product select[name="类别"]~.picker-add{display:none!important}

.document-totals{margin-top:14px;padding:11px 15px;text-align:right;font-size:15px;font-weight:700;color:#173e5c;background:#e8f1f6;border:1px solid #b8cedb;border-radius:8px}

.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0}.detail-heading .section-label{margin:0}.detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.common-report .order-summary-table{min-width:900px;width:max-content;min-width:100%;table-layout:auto}.common-report .order-summary-table th{width:auto!important;min-width:95px}.common-report .order-summary-table th:first-child{min-width:120px}.common-report .order-summary-scroll{border:0;border-radius:0}.common-report .report-sort{border:0;background:transparent;color:inherit;font-weight:700;padding:0}.common-report .order-summary-filters .summary-search{grid-column:span 2}

.production-summary .order-summary-filters{grid-template-columns:repeat(3,minmax(150px,1fr)) minmax(260px,2fr) auto}

.doc-header-sort{display:block;width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:700;padding:0;cursor:pointer}.doc-header-sort:hover{text-decoration:underline;color:#006b9d}.document-list-table th[draggable],.panel table th:has(.doc-header-sort){cursor:grab}.panel table th.doc-dragging{opacity:.45}

@media screen{
.document-panel{border:1px solid #76a8c5;background:#d9ecf6;box-shadow:0 8px 24px #214d6630;overflow:hidden}
.document-panel-count{color:#1a4a69;font-size:13px;font-weight:700}
.document-panel .document-toolbar{background:linear-gradient(110deg,#d8ecf5,#6ab1d5);border-bottom:2px solid #689fc0;padding:12px 17px;display:flex;align-items:center;gap:12px}
.document-panel .document-toolbar .search{height:32px;background:#f6fbff;color:#123e5b;border:1px solid #86aeca;box-shadow:inset 1px 2px 3px #56799133}
.document-panel .document-toolbar input.search{flex:1 1 300px;max-width:500px}.document-panel .document-toolbar .right{margin-left:auto;color:#174961;font-size:12px}
.document-panel .order-summary-scroll{border:0;border-radius:0;max-height:min(68vh,690px)}
.document-panel .order-summary-table{width:max-content;min-width:100%;table-layout:auto;white-space:nowrap}
.document-panel .order-summary-table th{width:auto!important;min-width:95px}.document-panel .order-summary-table th:first-child{min-width:120px}
.drawer:has(#docForm) .drawer-head,.drawer:has(#financeForm) .drawer-head{background:linear-gradient(180deg,#e8f3fb,#c9e2f1)!important;border-bottom:3px solid #7fb6d0;color:#153e59!important}
.drawer:has(#docForm) .drawer-head h2,.drawer:has(#financeForm) .drawer-head h2{color:#132e46!important}
.drawer:has(#docForm) .drawer-body,.drawer:has(#financeForm) .drawer-body,.purchase-order-drawer:has(#docForm) .drawer-body{background:#d9ecf6!important;color:#153e59!important}
.drawer:has(#docForm) .drawer-body form,.drawer:has(#financeForm) .drawer-body form,.purchase-order-drawer:has(#docForm) .drawer-body form{background:#f8fbfd!important;border:1px solid #76a8c5!important;box-shadow:0 5px 18px #214d6630!important}
.drawer:has(#docForm) .doc-top .field,.drawer:has(#financeForm) .doc-top .field,.purchase-order-drawer:has(#docForm) .doc-top .field{background:linear-gradient(#f5fbff,#dbeef8)!important;border:1px solid #9dc5db!important;box-shadow:inset 1px 1px #fff,0 2px 5px #40667a25!important;color:#153e59!important}
.drawer:has(#docForm) .section-label,.drawer:has(#financeForm) .section-label,.purchase-order-drawer:has(#docForm) .drawer-body .section-label{background:linear-gradient(#e8f3fb,#c9e2f1)!important;color:#123b56!important;border-bottom:2px solid #7fb6d0!important;padding:9px 12px;border-radius:4px}
.drawer:has(#docForm) .entry-lines th,.drawer:has(#financeForm) .entry-lines th,.purchase-order-drawer:has(#docForm) .entry-lines th{background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;border-color:#81a9bf!important}
.drawer:has(#docForm) .entry-lines tbody tr:nth-child(odd),.drawer:has(#financeForm) .entry-lines tbody tr:nth-child(odd){background:#f4f8fa!important}
.drawer:has(#docForm) .entry-lines tbody tr:nth-child(even),.drawer:has(#financeForm) .entry-lines tbody tr:nth-child(even){background:#fff6b9!important}
.drawer:has(#docForm) .drawer-foot,.drawer:has(#financeForm) .drawer-foot{background:linear-gradient(#e8f3fb,#c9e2f1)!important;border-top:2px solid #7fb6d0!important;color:#153e59!important}
}
@media screen{
.drawer[data-doc-id] .drawer-head{background:linear-gradient(180deg,#e8f3fb,#c9e2f1)!important;border-bottom:3px solid #7fb6d0;color:#153e59!important}
.drawer[data-doc-id] .drawer-head h2{color:#132e46!important}
.drawer[data-doc-id] .drawer-body{background:#d9ecf6!important;color:#153e59!important}
.drawer[data-doc-id] .view-top,.drawer[data-doc-id] .doc-grid,.drawer[data-doc-id] .table-wrap{background:#f8fbfd;border-color:#81a9bf}
.drawer[data-doc-id] .section-label{background:linear-gradient(#e8f3fb,#c9e2f1);color:#123b56;border-bottom:2px solid #7fb6d0;padding:9px 12px;border-radius:4px}
.drawer[data-doc-id] .entry-lines th{background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;border-color:#81a9bf!important}
.drawer[data-doc-id] .entry-lines tbody tr:nth-child(odd){background:#f4f8fa}
.drawer[data-doc-id] .entry-lines tbody tr:nth-child(even){background:#fff6b9}
.drawer[data-doc-id] .drawer-foot{background:linear-gradient(#e8f3fb,#c9e2f1)!important;border-top:2px solid #7fb6d0!important;color:#153e59!important}
}

.stock-summary-action{align-self:end;white-space:nowrap;background:linear-gradient(#f5fbff,#cae6f5);color:#1b587a;border-color:#7faec8}.stock-summary{margin:16px;border:1px solid #76a8c5;background:#f8fbfd;box-shadow:0 4px 12px #214d6624}.stock-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:linear-gradient(#e8f3fb,#c9e2f1);border-bottom:2px solid #7fb6d0}.stock-summary-head strong{display:block;color:#123b56;font-size:17px}.stock-summary-head small{display:block;color:#41657a;margin-top:3px}.stock-summary .table-wrap{max-height:420px}.stock-summary tbody tr:last-child td{font-weight:700;background:#d6e9f3;border-top:2px solid #5f91ac}

.stock-summary-table{width:100%;border-collapse:collapse}.stock-summary-table th,.stock-summary-table td{padding:9px 12px;border:1px solid #81a9bf}.stock-summary-table th{background:linear-gradient(#9dd0e8,#66a9cb);color:#123b56}.stock-summary-table tr[data-stock-summary]{cursor:pointer}.stock-summary-table tr[data-stock-summary]:hover td{background:#d9ecf6}.stock-summary-table .stock-summary-total td{font-weight:700;background:#d6e9f3;border-top:2px solid #5f91ac}
@media screen{.overlay:has(.stock-detail-drawer){justify-content:center;align-items:center;padding:12px}.drawer.stock-detail-drawer,.drawer.stock-detail-drawer.wide{width:min(400px,calc(100vw - 24px));height:auto;max-height:calc(100vh - 24px);border-radius:10px;overflow:hidden}.stock-detail-drawer .drawer-head{padding:14px 16px}.stock-detail-drawer .drawer-head h2{font-size:16px}.stock-detail-drawer .drawer-body{flex:0 1 auto;min-height:0;padding:10px 16px;overflow:auto}.stock-detail-drawer .drawer-body .hint{margin:2px 0 10px}.stock-detail-drawer th,.stock-detail-drawer td{padding:8px 10px}.stock-detail-drawer .drawer-foot{padding:10px 16px}}
@media screen{.stock-detail-drawer .table-wrap{width:100%;max-width:100%;overflow-x:hidden}.stock-detail-drawer .table-wrap table{width:100%!important;min-width:0!important;table-layout:fixed!important}.stock-detail-drawer .table-wrap th:first-child,.stock-detail-drawer .table-wrap td:first-child{width:58%!important}.stock-detail-drawer .table-wrap th:nth-child(2),.stock-detail-drawer .table-wrap td:nth-child(2){width:42%!important;text-align:right}.stock-detail-drawer .table-wrap th,.stock-detail-drawer .table-wrap td{white-space:normal;overflow-wrap:anywhere;padding:7px 8px}.product-inventory-panel tr[data-product-row]{cursor:pointer}.product-inventory-panel tr[data-product-row]:hover td{background:#d5eaf4}}
@media screen{.stock-summary-table .stock-sort{border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;white-space:nowrap;padding:0;cursor:pointer}.stock-summary-table .stock-sort:hover{text-decoration:underline}.stock-summary-table th.stock-qty{background:linear-gradient(#178b9a,#0a6d82)!important;color:#fff!important}.stock-summary-table td.stock-qty{background:#d5f1eb!important;color:#075b58!important;font-weight:800;font-size:14px}.stock-summary-table .stock-summary-total td.stock-qty{background:#b8e5db!important}.stock-summary-table .stock-correct{padding:5px 9px;white-space:nowrap}.stock-detail-drawer table colgroup,.stock-detail-drawer .col-resizer{display:none!important}.stock-detail-drawer .table-wrap table{display:table;width:100%!important;max-width:100%!important}.stock-detail-drawer .table-wrap tr{display:table-row}.stock-detail-drawer .table-wrap th,.stock-detail-drawer .table-wrap td{display:table-cell;overflow:visible!important}.stock-detail-drawer .table-wrap td:nth-child(2){color:#173f55!important;font-weight:700!important}}
@media screen{.overlay:has(.stock-correction-drawer){justify-content:center;align-items:center;padding:12px}.drawer.stock-correction-drawer,.drawer.stock-correction-drawer.wide{width:min(370px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100vh - 24px);border-radius:12px;overflow:hidden}.stock-correction-drawer .drawer-head{padding:12px 16px}.stock-correction-drawer .drawer-head h2{font-size:16px}.stock-correction-drawer .drawer-body{flex:0 1 auto;min-height:0;overflow:auto;padding:12px 16px}.stock-correction-drawer .drawer-body form{padding:12px}.stock-correction-drawer .field{margin-bottom:9px}.stock-correction-drawer .field label{margin-bottom:3px}.stock-correction-drawer .field input,.stock-correction-drawer .field select{min-height:32px;padding:5px 8px}.stock-correction-drawer .field textarea{min-height:48px;padding:6px 8px}.stock-correction-drawer .drawer-foot{padding:9px 16px}.product-image-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:#f8fbfc;border:1px solid #c5d4dc;border-radius:9px;padding:14px;color:#254658}.product-image-card strong{font-size:15px}.product-image-preview{width:100%;aspect-ratio:1/1;max-height:330px;border:1px dashed #93adbd;border-radius:8px;background:#edf3f6;display:grid;place-items:center;overflow:hidden;color:#6a8291}.product-image-preview img{width:100%;height:100%;object-fit:contain}.product-image-card small{color:#68808d;font-size:11px}.product-image-upload{display:inline-block}}
@media screen{.stock-correction-drawer .stock-correction-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stock-correction-drawer .stock-correction-pair section{min-width:0;padding:10px;border:1px solid #d9e4e8;border-radius:8px}.stock-correction-drawer .stock-correction-pair h3{font-size:13px;margin:0 0 9px}.drawer.stock-correction-drawer,.drawer.stock-correction-drawer.wide{width:min(620px,calc(100vw - 24px))!important}}@media screen and (max-width:520px){.stock-correction-drawer .stock-correction-pair{grid-template-columns:1fr}}
@media screen and (min-width:900px){.drawer.product-form-drawer:has(.product-image-card){width:min(1050px,96vw);height:min(96vh,790px)}.product-form-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,34%);gap:12px;align-items:start}.product-form-layout .product-image-card{position:sticky;top:0}}
@media screen and (max-width:899px){.product-form-layout{display:grid;grid-template-columns:1fr;gap:12px}.product-image-preview{max-height:260px}}
.material-issue-form .issue-stock{font-weight:800;color:#0a6b76;background:#d9f3ec;min-width:88px;text-align:right;font-variant-numeric:tabular-nums}.material-issue-form .entry-lines th:nth-last-child(3){min-width:88px}
.production-plan-form .entry-lines th[hidden],.production-plan-form .entry-lines td[hidden],.production-plan-detail .entry-lines th[hidden],.production-plan-detail .entry-lines td[hidden]{display:none!important}.production-plan-form .entry-lines th.plan-sortable{cursor:pointer}.production-plan-form .entry-lines th.plan-sortable:hover,.production-plan-form .entry-lines th.plan-sorted{background:#236f92!important;color:#fff!important}
@media print{body.print-ticket .production-plan-form .entry-lines .plan-print-hide,body.print-ticket .production-plan-detail .entry-lines .plan-print-hide,body.print-ticket .production-plan-form .plan-print-meta>div:has([data-plan-meta="number"]),body.print-ticket .production-plan-form .plan-print-meta>div:has([data-plan-meta="order"]),body.print-ticket .production-plan-detail .plan-print-meta>div:has([data-plan-meta="number"]),body.print-ticket .production-plan-detail .plan-print-meta>div:has([data-plan-meta="order"]),body.print-ticket .drawer:has(.production-plan-form) .drawer-head,body.print-ticket .drawer.production-plan-detail .drawer-head{display:none!important}}
.issue-print-strip{display:none}
@media print{body.print-ticket .material-issue-form .doc-top,body.print-ticket .material-issue-detail .view-top{gap:.5mm 1.5mm!important;margin:0 0 1mm!important;padding:.5mm 1mm!important;font-size:6.5pt!important}body.print-ticket .material-issue-form .doc-top .field,body.print-ticket .material-issue-detail .view-top>div{padding:0!important;font-size:6.5pt!important}body.print-ticket .material-issue-form .doc-top input,body.print-ticket .material-issue-form .doc-top select{min-height:0!important;height:4mm!important;padding:0!important;font-size:6.5pt!important}body.print-ticket .material-issue-form .drawer-head,body.print-ticket .material-issue-detail .drawer-head{padding:0!important}body.print-ticket .material-issue-form .section-label,body.print-ticket .material-issue-detail .section-label{margin:.8mm 0!important;font-size:7pt!important}body.print-ticket .issue-print-strip{display:flex!important;justify-content:space-between;align-items:end;margin:1mm 0 1.5mm;padding:0 1mm;font-size:8pt;font-weight:700}body.print-ticket .issue-print-strip i{display:inline-block;width:42mm;border-bottom:1px solid #222;height:3mm;vertical-align:bottom}body.print-ticket .material-issue-form .entry-lines th,body.print-ticket .material-issue-form .entry-lines td,body.print-ticket .material-issue-detail .entry-lines th,body.print-ticket .material-issue-detail .entry-lines td{font-size:8pt!important;line-height:1.2!important;padding:.65mm!important}body.print-ticket .material-issue-form .entry-lines input,body.print-ticket .material-issue-form .entry-lines select{font-size:8pt!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(10),body.print-ticket .material-issue-form .entry-lines td:nth-child(10),body.print-ticket .material-issue-detail .entry-lines th:nth-child(9),body.print-ticket .material-issue-detail .entry-lines td:nth-child(9){display:none!important}body.print-ticket .material-issue-form .hint,body.print-ticket .material-issue-detail .banner{display:none!important}}
@media print{body.print-ticket .material-issue-form .issue-stock-column,body.print-ticket .material-issue-form .issue-stock,body.print-ticket .material-issue-detail .issue-stock-column,body.print-ticket .material-issue-detail .issue-stock,body.print-ticket .material-issue-form .document-totals,body.print-ticket .material-issue-detail .document-totals{display:none!important}}
@media print{body.print-ticket .production-plan-form .doc-top,body.print-ticket .production-plan-detail .view-top{gap:.5mm 1.5mm!important;margin:0 0 1mm!important;padding:.5mm 1mm!important}body.print-ticket .production-plan-form .doc-top .field,body.print-ticket .production-plan-detail .view-top>div{padding:0!important;font-size:6.5pt!important}body.print-ticket .production-plan-form .doc-top input,body.print-ticket .production-plan-form .doc-top select{height:4mm!important;min-height:0!important;padding:0!important;font-size:6.5pt!important}body.print-ticket .production-plan-form .section-label,body.print-ticket .production-plan-detail .section-label{margin:1mm 0!important;font-size:7pt!important}body.print-ticket .production-plan-form .entry-lines th,body.print-ticket .production-plan-form .entry-lines td,body.print-ticket .production-plan-detail .entry-lines th,body.print-ticket .production-plan-detail .entry-lines td{font-size:8pt!important;line-height:1.2!important;padding:.65mm!important}body.print-ticket .production-plan-form .entry-lines input,body.print-ticket .production-plan-form .entry-lines select{font-size:8pt!important}body.print-ticket .production-plan-form .plan-progress-col,body.print-ticket .production-plan-form .plan-progress-cell,body.print-ticket .production-plan-form .plan-note-col,body.print-ticket .production-plan-form .plan-note-cell,body.print-ticket .production-plan-detail .plan-progress-col,body.print-ticket .production-plan-detail .plan-progress-cell,body.print-ticket .production-plan-detail .plan-note-col,body.print-ticket .production-plan-detail .plan-note-cell,body.print-ticket .production-plan-form .document-totals,body.print-ticket .production-plan-detail .document-totals{display:none!important}}
.production-plan-form .entry-lines .option-picker{pointer-events:none}.production-plan-form .entry-lines input:disabled,.production-plan-form .entry-lines select:disabled{opacity:1;background:#edf2f5;color:#344c5d}.production-plan-form .entry-lines .row-qty,.production-plan-form .entry-lines .row-note{background:#fff!important;color:#183d52!important}.production-plan-form .entry-lines .picker-summary{color:#254c62}
.production-plan-form .plan-actual-issued,.production-plan-detail .plan-actual-issued{font-weight:700;text-align:right;color:#145e6f;background:#e8f5f3}
@media print{body.print-ticket .production-plan-form .entry-lines,body.print-ticket .production-plan-detail .entry-lines{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;background:#fff!important}body.print-ticket .production-plan-form .entry-lines th,body.print-ticket .production-plan-form .entry-lines td,body.print-ticket .production-plan-detail .entry-lines th,body.print-ticket .production-plan-detail .entry-lines td{background:#fff!important;color:#111!important;border:1px solid #555!important;box-shadow:none!important;font-size:8pt!important;line-height:1.25!important;padding:.8mm 1mm!important;vertical-align:middle!important}body.print-ticket .production-plan-form .entry-lines thead th,body.print-ticket .production-plan-detail .entry-lines thead th{font-weight:700!important;border-bottom:1.5px solid #111!important}body.print-ticket .production-plan-form .entry-lines input,body.print-ticket .production-plan-form .entry-lines select,body.print-ticket .production-plan-form .entry-lines .option-picker,body.print-ticket .production-plan-form .entry-lines .picker-summary{background:none!important;color:#111!important;border:0!important;box-shadow:none!important;font-size:8pt!important;font-weight:inherit!important}body.print-ticket .production-plan-form .entry-lines .option-picker summary{padding:0!important}body.print-ticket .production-plan-form .entry-lines .option-picker summary>span:last-child{display:none!important}body.print-ticket .production-plan-form .doc-top,body.print-ticket .production-plan-detail .view-top{background:#fff!important;border:0!important;box-shadow:none!important;color:#111!important;padding:0!important;margin:0 0 2mm!important}body.print-ticket .production-plan-form .doc-top .field,body.print-ticket .production-plan-detail .view-top>div{background:none!important;border:0!important;box-shadow:none!important;color:#111!important}body.print-ticket .production-plan-form .section-label,body.print-ticket .production-plan-detail .section-label{display:none!important}body.print-ticket .production-plan-detail .banner,body.print-ticket .production-plan-form .hint{display:none!important}body.print-ticket .production-plan-form .entry-lines .plan-actual-issued,body.print-ticket .production-plan-detail .entry-lines .plan-actual-issued{font-weight:700!important}body.print-ticket .plan-compact-print .production-plan-form .entry-lines th:first-child,body.print-ticket .plan-compact-print .production-plan-form .entry-lines td:first-child,body.print-ticket .plan-compact-print .production-plan-form .entry-lines th:nth-child(2),body.print-ticket .plan-compact-print .production-plan-form .entry-lines td:nth-child(2),body.print-ticket .plan-compact-print.production-plan-detail .entry-lines th:first-child,body.print-ticket .plan-compact-print.production-plan-detail .entry-lines td:first-child{display:none!important}}
@media print{body.print-ticket .material-issue-form .entry-lines th:first-child,body.print-ticket .material-issue-form .entry-lines td:first-child{display:none!important}body.print-ticket .material-issue-form .entry-lines,body.print-ticket .material-issue-detail .entry-lines{width:100%!important;max-width:20.8cm!important;table-layout:fixed!important;border-collapse:collapse!important;background:#fff!important}body.print-ticket .material-issue-form .entry-lines th,body.print-ticket .material-issue-form .entry-lines td,body.print-ticket .material-issue-detail .entry-lines th,body.print-ticket .material-issue-detail .entry-lines td{background:#fff!important;color:#111!important;border:1px solid #555!important;box-shadow:none!important;vertical-align:middle!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;font-size:8pt!important;line-height:1.25!important;padding:.8mm 1mm!important}body.print-ticket .material-issue-form .entry-lines thead th,body.print-ticket .material-issue-detail .entry-lines thead th{font-weight:700!important;border-bottom:1.5px solid #111!important}body.print-ticket .material-issue-form .entry-lines input{font-size:8pt!important;color:#111!important;background:none!important;border:0!important;box-shadow:none!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(2),body.print-ticket .material-issue-detail .entry-lines th:nth-child(1){width:17%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(3),body.print-ticket .material-issue-detail .entry-lines th:nth-child(2){width:11%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(4),body.print-ticket .material-issue-detail .entry-lines th:nth-child(3){width:13%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(5),body.print-ticket .material-issue-detail .entry-lines th:nth-child(4){width:11%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(6),body.print-ticket .material-issue-detail .entry-lines th:nth-child(5){width:9%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(7),body.print-ticket .material-issue-detail .entry-lines th:nth-child(6){width:16%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(8),body.print-ticket .material-issue-form .entry-lines th:nth-child(9),body.print-ticket .material-issue-detail .entry-lines th:nth-child(7),body.print-ticket .material-issue-detail .entry-lines th:nth-child(8){width:8%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(11),body.print-ticket .material-issue-detail .entry-lines th:nth-child(10){width:7%!important}body.print-ticket .material-issue-form .entry-lines th:nth-child(7),body.print-ticket .material-issue-form .entry-lines td:nth-child(7),body.print-ticket .material-issue-detail .entry-lines th:nth-child(6),body.print-ticket .material-issue-detail .entry-lines td:nth-child(6){border-left:2.5px solid #111!important;padding-left:2mm!important}body.print-ticket .material-issue-form .doc-top,body.print-ticket .material-issue-detail .view-top{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1mm 2mm!important}body.print-ticket .material-issue-form .doc-top .field,body.print-ticket .material-issue-detail .view-top>div{min-width:0!important;overflow:hidden!important}}
@media print{body.print-ticket .material-issue-form .doc-top .field,body.print-ticket .material-issue-detail .view-top>div{overflow:visible!important;overflow-wrap:anywhere!important}body.print-ticket .material-issue-form .entry-lines .row-qty{width:100%!important;text-align:right!important}body.print-ticket .material-issue-detail .entry-lines td:nth-child(7),body.print-ticket .material-issue-detail .entry-lines td:nth-child(8),body.print-ticket .material-issue-form .entry-lines td:nth-child(8),body.print-ticket .material-issue-form .entry-lines td:nth-child(9){text-align:right!important}}
.plan-linked-info{display:flex;gap:22px;flex-wrap:wrap;margin:3px 0 10px;padding:8px 12px;background:#edf6f8;border:1px solid #b9d5dd;border-radius:6px;color:#31566a;font-size:13px}.plan-linked-info strong{color:#173b50}.plan-print-meta{display:none}
@media print{body.print-ticket .production-plan-form .doc-top,body.print-ticket .production-plan-detail .view-top,body.print-ticket .production-plan-form .plan-linked-info,body.print-ticket .production-plan-detail .plan-linked-info{display:none!important}body.print-ticket .production-plan-form .plan-print-meta,body.print-ticket .production-plan-detail .plan-print-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5mm 3mm;margin:1mm 0 2.5mm;padding:1mm 0 2mm;border-bottom:1px solid #555;color:#111;background:#fff}body.print-ticket .plan-print-meta>div{display:flex;align-items:baseline;gap:1mm;min-width:0;font-size:7.5pt;overflow-wrap:anywhere}body.print-ticket .plan-print-meta small{font-size:7pt;color:#333;white-space:nowrap}body.print-ticket .plan-print-meta strong{font-size:8pt;color:#111;font-weight:700}body.print-ticket .production-plan-form .entry-lines th:nth-child(2),body.print-ticket .production-plan-form .entry-lines td:nth-child(2),body.print-ticket .production-plan-detail .entry-lines th:first-child,body.print-ticket .production-plan-detail .entry-lines td:first-child{display:none!important}body.print-ticket .production-plan-form .doc-grid,body.print-ticket .production-plan-detail .doc-grid{border:0!important;overflow:visible!important}body.print-ticket .production-plan-form .entry-lines,body.print-ticket .production-plan-detail .entry-lines{border-collapse:collapse!important;border:1px solid #333!important;width:100%!important;table-layout:fixed!important}body.print-ticket .production-plan-form .entry-lines th,body.print-ticket .production-plan-form .entry-lines td,body.print-ticket .production-plan-detail .entry-lines th,body.print-ticket .production-plan-detail .entry-lines td{border:1px solid #555!important;word-break:normal!important;overflow-wrap:anywhere!important;vertical-align:middle!important}}
.issue-state{display:inline-block;padding:3px 8px;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}.issue-state.issued{background:#dff3e9;color:#126b4f}.issue-state.pending{background:#fff0d9;color:#916018}.document-toolbar #issueStatusFilter{min-width:115px}
.issue-state.partial{background:#fff0d9;color:#96601a}

@media screen{.sales-stock-trigger{border:0;background:#e3f5f2;color:#087b72;border-radius:6px;padding:5px 10px;font-weight:700;cursor:pointer;min-width:42px}.sales-stock-trigger:hover{background:#bfeae1;text-decoration:underline}.sales-stock-overlay{position:fixed;inset:0;z-index:9999;background:#102b3d80;display:grid;place-items:center;padding:16px}.sales-stock-card{width:min(400px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 18px 50px #09283766}.sales-stock-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;background:#e9f6f5}.sales-stock-head strong{font-size:16px}.sales-stock-head .close{border:0;background:none;font-size:24px;line-height:1}.sales-stock-body{padding:12px 17px 17px}.sales-stock-body p{margin:0 0 10px;color:#647487}.sales-stock-body .table-wrap{overflow:visible}.sales-stock-body table{width:100%!important;min-width:0!important;table-layout:fixed}.sales-stock-body colgroup,.sales-stock-body .col-resizer{display:none!important}.sales-stock-body th,.sales-stock-body td{padding:8px;white-space:normal}.sales-stock-body th:last-child,.sales-stock-body td:last-child{text-align:right}}

@media screen{.sales-summary .summary-sort{display:block;width:100%;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer;padding:0;white-space:nowrap}.sales-summary .summary-sort:hover{color:#006da0;text-decoration:underline}}

@media screen{.sales-order-form .entry-lines.sales-auto-fit th{width:auto!important}.sales-order-form .sales-product-code{font-weight:700;color:#246b82;white-space:nowrap}}

@media screen{.sales-order-form .sales-finished-stock,.sales-order-form .sales-blank-stock,.sales-order-form .sales-raw-stock{font-weight:700;color:#176e83;font-variant-numeric:tabular-nums}}

/* Sales order attributes have dedicated columns after specification. */
.sales-order-form .entry-lines{table-layout:auto;min-width:1480px}
.sales-order-form .entry-lines th:nth-child(2),.sales-order-form .entry-lines th:nth-child(3),.sales-order-form .entry-lines th:nth-child(4),.sales-order-form .entry-lines th:nth-child(5){width:auto}
.sales-order-form .sales-mark,.sales-order-form .sales-process{min-width:90px;white-space:normal}

/* Separate shipped quantity from the live inventory columns in sales orders. */
.sales-order-form .entry-lines :is(th,td):nth-child(10),
.drawer:has(.sales-line-plan-status) .entry-lines :is(th,td):nth-child(10){
  box-shadow:inset 1px 0 #9bb5c3;
}
.outbound-price-head{min-width:98px}
.outbound-price-head .small-action{display:block;margin:0 auto 5px;white-space:nowrap}
.outbound-price-head span{display:block}

/* Compact document editing and detail views across sales, purchasing, production,
   inventory, and finance. Keep this screen-only so printed forms retain their layout. */
@media screen{
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .drawer-head{padding:8px 16px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .drawer-body{padding:9px 12px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .drawer-foot{padding:7px 14px;gap:7px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .drawer-foot .btn{padding:7px 11px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .drawer-body form{padding:8px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .doc-top{gap:6px 9px;margin-bottom:8px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .doc-top .field{padding:5px 8px;gap:5px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .view-top{padding:8px 10px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .view-top>div{gap:1px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .section-label{margin:6px 0 4px;padding:5px 9px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .detail-heading{margin:5px 0;gap:7px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines th{padding:5px 7px;font-size:13px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines td{padding:4px 6px;font-size:14px;line-height:1.35;vertical-align:middle}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines td input,
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines td select{padding:5px 7px;min-height:32px;font-size:14px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines .option-picker summary{min-height:32px;padding:5px 7px;font-size:14px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines .row-amount,
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .entry-lines .row-stock{padding-top:0}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .grid-footer{padding:6px 2px 8px;gap:8px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .document-totals{margin-top:7px;padding:7px 10px}
  .drawer:is(:has(#docForm),:has(#financeForm),[data-doc-id]) .hint{margin:6px 0}
  .drawer:has(.sales-order-form) .sales-order-form .entry-lines th{padding:5px 7px}
  .drawer:has(.sales-order-form) .sales-order-form .entry-lines td{padding:4px 6px}
}

@media print{.drawer:has(.sales-order-form) .sales-order-related-ref,.drawer[data-doc-id]:has(.sales-order-related-ref) .sales-order-related-ref{display:none!important}}

@media print{.drawer[data-doc-id] .sales-plan-action{display:none!important}}

@media screen{.sales-line-plan-status{display:inline-block;white-space:nowrap;padding:4px 9px;border-radius:14px;font-size:13px;font-weight:700}.sales-line-plan-status.planned{background:#dff2ed;color:#116c58}.sales-line-plan-status.unplanned{background:#fff0d7;color:#895b18}.sales-plan-action{white-space:nowrap;min-width:70px}.sales-plan-done{color:#718b9b}}

/* Production material issue ticket: compact header and ruled detail table. */
@media print{
  body.print-ticket .material-issue-form .issue-plan-ref,
  body.print-ticket .material-issue-detail .issue-plan-ref{display:none!important}
  body.print-ticket .material-issue-form .doc-top .field:has([name="单号"]),
  body.print-ticket .material-issue-detail .view-top .issue-print-number{grid-column:4;grid-row:1;text-align:right!important}
  body.print-ticket .material-issue-form .entry-lines,
  body.print-ticket .material-issue-detail .entry-lines{border:1.5px solid #222!important;border-collapse:collapse!important}
  body.print-ticket .material-issue-form .entry-lines th,
  body.print-ticket .material-issue-form .entry-lines td,
  body.print-ticket .material-issue-detail .entry-lines th,
  body.print-ticket .material-issue-detail .entry-lines td{border:1px solid #555!important}
  body.print-ticket .material-issue-form .entry-lines thead th,
  body.print-ticket .material-issue-detail .entry-lines thead th{border-bottom:1.5px solid #222!important;font-weight:700!important}
}
.finished-blank-card[hidden]{display:none!important}
.finished-blank-card small{display:block;margin-top:6px;color:#5c7888;line-height:1.4}
.production-plan-form .doc-top .field[hidden]{display:none!important}
.production-plan-form .entry-lines{table-layout:auto;min-width:100%;width:max-content}
.production-plan-form .entry-lines td input:not(.row-order-qty){max-width:380px}
.production-plan-form .entry-lines .line-product{min-width:170px}
.production-plan-form .detail-heading{justify-content:flex-start}
.production-plan-form .detail-heading .detail-actions{margin-left:0}
.purchase-product-overlay .product-select-tools select{min-width:140px;border:1px solid #a7c2d0;border-radius:6px;padding:9px 12px;background:#fff;color:#203d50}
.production-plan-form .entry-lines [hidden]{display:none!important}
.workshop-emphasis{display:inline-block;padding:3px 9px;border-radius:6px;background:#d9f1f4;color:#07556d!important;font-weight:800;box-shadow:inset 3px 0 #0b889b}
.production-plan-form .workshop-field select{border:2px solid #0b889b!important;background:#d9f1f4!important;color:#07556d!important;font-weight:800}
.production-plan-form .workshop-field>label{color:#07556d!important;font-weight:800}
@media print{.workshop-emphasis{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.production-stage-history [data-stage-doc]{color:#c43b0b!important;background:#fff0dd;border:1px solid #e98c50;font-weight:800;margin-left:10px}
.workshop-report-footer{display:flex;justify-content:space-between;align-items:center;padding:18px;gap:16px}
@media print{.workshop-summary .order-summary-filters,.workshop-report-footer button{display:none!important}.workshop-summary table{width:100%;font-size:10px;border-collapse:collapse}.workshop-summary th,.workshop-summary td{border:1px solid #777;padding:5px}.workshop-report-footer{padding:8px 0}}

.workshop-summary .order-summary-table{table-layout:auto;min-width:1300px}.workshop-summary .order-summary-table th{width:auto;min-width:90px}.workshop-summary .order-summary-table th.summary-index{min-width:45px;width:45px}.workshop-summary .order-summary-table th:nth-child(6){min-width:150px}.workshop-summary .order-summary-table th:nth-child(7){min-width:150px}.workshop-summary .workshop-report-footer{background:#e8f3fb;border-top:1px solid #81a9bf;color:#143b54}

@media print{
 .workshop-summary{width:100%!important;max-width:100%!important;padding:0!important;overflow:visible!important}
 .workshop-summary .order-summary-scroll{width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important}
 .workshop-summary .order-summary-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;white-space:normal!important}
 .workshop-summary .order-summary-table th,.workshop-summary .order-summary-table td{min-width:0!important;max-width:none!important;height:auto!important;padding:0.8mm 0.6mm!important;font-size:var(--workshop-print-font,8pt)!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .workshop-summary .order-summary-table th:nth-child(1){width:3%!important}
 .workshop-summary .order-summary-table th:nth-child(2),.workshop-summary .order-summary-table th:nth-child(3){width:9%!important}
 .workshop-summary .order-summary-table th:nth-child(4){width:10%!important}
 .workshop-summary .order-summary-table th:nth-child(5){width:9%!important}
 .workshop-summary .order-summary-table th:nth-child(6),.workshop-summary .order-summary-table th:nth-child(7){width:13%!important}
 .workshop-summary .order-summary-table th:nth-child(8){width:7%!important}
 .workshop-summary .order-summary-table th:nth-child(9){width:8%!important}
 .workshop-summary .order-summary-table th:nth-child(10),.workshop-summary .order-summary-table th:nth-child(11){width:7%!important}
 .workshop-summary .order-summary-table th:nth-child(12){width:5%!important}
 .workshop-summary thead{display:table-header-group!important}
 .workshop-summary tfoot{display:table-row-group!important}
 .workshop-summary tr{break-inside:avoid;page-break-inside:avoid}
 .workshop-summary .order-summary-top strong{font-size:14pt!important}
 .workshop-summary .workshop-report-footer{font-size:8pt!important;flex-wrap:wrap!important;background:#fff!important}
}

@media screen{
 .drawer:has(.sales-order-form),.drawer.sales-order-detail{background:#f0f7fb;border:1px solid #81a9bf}
 .drawer:has(.sales-order-form) .drawer-head,.sales-order-detail .drawer-head{background:linear-gradient(180deg,#e8f3fb,#c9e2f1);border-bottom:3px solid #7fb6d0;color:#132e46}
 .drawer:has(.sales-order-form) .drawer-head h2,.sales-order-detail .drawer-head h2{color:#132e46;font-size:22px;font-weight:700;letter-spacing:1px}
 .sales-order-form .doc-top,.sales-order-detail .doc-top{background:#e8f3fb;border:1px solid #81a9bf;border-top:3px solid #7fb6d0;color:#143b54}
 .sales-order-form .section-label,.sales-order-detail .section-label{color:#143b54;font-weight:700}
 .sales-order-form .doc-grid,.sales-order-detail .doc-grid{border:1px solid #81a9bf;background:#f8fbfd}
 .sales-order-form .entry-lines,.sales-order-detail .entry-lines{border-collapse:collapse;color:#143b54}
 .sales-order-form .entry-lines th,.sales-order-detail .entry-lines th{background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;font-size:12px;font-weight:700;border:1px solid #81a9bf;padding:7px 8px;white-space:nowrap}
 .sales-order-form .entry-lines td,.sales-order-detail .entry-lines td{border:1px solid #81a9bf;padding:6px 7px;font-size:12px;line-height:1.5;color:#143b54;vertical-align:middle}
 .sales-order-form .entry-lines tbody tr:nth-child(odd),.sales-order-detail .entry-lines tbody tr:nth-child(odd){background:#f4f8fa}
 .sales-order-form .entry-lines tbody tr:nth-child(even),.sales-order-detail .entry-lines tbody tr:nth-child(even){background:#fff6b9}
 .sales-order-form .entry-lines tbody tr:hover,.sales-order-detail .entry-lines tbody tr:hover{background:#d3eafa!important}
 .sales-order-form .entry-lines td:nth-child(n+8):nth-child(-n+12),.sales-order-detail .entry-lines td:nth-child(n+8):nth-child(-n+12){text-align:right;font-variant-numeric:tabular-nums}
 .sales-order-form .entry-lines .row-qty{text-align:right;font-variant-numeric:tabular-nums}
 .sales-order-form .entry-lines input,.sales-order-form .entry-lines select{color:#143b54;border-color:#81a9bf;background:#ffffffd9;font-size:12px}
 .sales-order-form .sales-stock-trigger,.sales-order-detail .sales-stock-trigger{color:#176a99;font-weight:700;font-variant-numeric:tabular-nums}
 .sales-order-form .document-totals,.sales-order-detail .document-totals{background:#dcecf5;border:1px solid #81a9bf;color:#143b54;font-weight:700;padding:10px 12px}
 .sales-order-detail .sales-line-plan-status{display:inline-block;background:#e1eef8;color:#195d83;border:1px solid #90b5cc;border-radius:4px;padding:3px 7px;white-space:nowrap}
}

/* Sales summary: two filter rows and compact centered column headings. */
.sales-summary .sales-summary-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 17px}
.sales-summary .summary-filter-row{display:grid;grid-template-columns:minmax(280px,340px) minmax(150px,190px) minmax(150px,190px) minmax(130px,170px);gap:6px 12px;align-items:center}

.sales-summary .summary-date-range{display:flex;gap:10px;min-width:0}.sales-summary .summary-date-range label{flex:1;min-width:0}
.sales-summary .summary-filter-row label{gap:4px;font-size:12px}.sales-summary .summary-filter-row input,.sales-summary .summary-filter-row select{height:27px;padding:2px 4px;font-size:12px}.sales-summary .summary-date-range{gap:6px}.sales-summary .summary-date-range label:first-child{flex:1.3}.sales-summary .summary-date-range label:last-child{flex:1}
.sales-summary .summary-filter-row .summary-search{grid-column:auto}.sales-summary .summary-count{align-self:flex-end}
.sales-summary .order-summary-table thead th{text-align:center;vertical-align:middle;padding:3px 6px;line-height:1.15}
.sales-summary .order-summary-table thead .summary-sort{display:inline-block;width:auto;text-align:center;line-height:1.15;padding:0;vertical-align:middle}
.sales-summary .order-summary-table thead .summary-drag-grip{display:inline;vertical-align:middle;line-height:1;margin-left:3px}
@media(max-width:900px){.sales-summary .summary-filter-top,.sales-summary .summary-filter-bottom{grid-template-columns:1fr 1fr}.sales-summary .summary-date-range{grid-column:1/-1}}
@media(max-width:550px){.sales-summary .summary-filter-top,.sales-summary .summary-filter-bottom{grid-template-columns:1fr}.sales-summary .summary-date-range{flex-wrap:wrap}.sales-summary .summary-date-range label{flex-basis:100%}}

.sales-summary .order-summary-table tbody td.summary-finished-status{color:#d71920;font-weight:700}

@media screen{
.sales-orders-compact .page-head{margin-bottom:8px;gap:8px}.sales-orders-compact .page-head h1{font-size:20px;margin:0}.sales-orders-compact .page-head p{margin:3px 0;font-size:12px}
.sales-orders-compact .panel{padding:10px}.sales-orders-compact .toolbar{padding:6px 8px;gap:6px;margin-bottom:6px;flex-wrap:wrap}.sales-orders-compact .toolbar input,.sales-orders-compact .toolbar select{height:28px;min-height:28px;padding:3px 7px;font-size:12px}.sales-orders-compact .toolbar .search{max-width:240px}
.sales-orders-compact table th,.sales-orders-compact table td{padding:5px 7px;font-size:12px;line-height:1.25;vertical-align:middle}.sales-orders-compact table th{text-align:center}.sales-orders-compact .btn,.sales-orders-compact table button{padding:3px 7px;font-size:12px;min-height:25px;line-height:1.25}.sales-orders-compact .actions{gap:4px}.sales-orders-compact .badge,.sales-orders-compact .status{padding:2px 5px;font-size:11px}
.sales-order-form .doc-top.sales-header{gap:6px;padding:8px}.sales-order-form .field label{font-size:12px;margin-bottom:3px}.sales-order-form .doc-top input,.sales-order-form .doc-top select{height:29px;min-height:29px;padding:3px 6px;font-size:12px}.sales-order-form .sales-add-slot .btn{min-height:29px;min-width:100px;padding:4px 8px}.sales-order-form .entry-lines th,.sales-order-form .entry-lines td,.sales-order-detail .entry-lines th,.sales-order-detail .entry-lines td{padding:4px 6px;font-size:12px;line-height:1.2}.sales-order-form .entry-lines input,.sales-order-form .entry-lines select{min-height:26px;height:26px;padding:2px 4px}.sales-order-form .sales-spec{min-height:24px;line-height:1.2}.sales-order-form .model-entry{gap:4px}.sales-order-form .sales-more-grid{gap:4px;padding:5px}.sales-order-form .sales-status{min-height:28px;padding:4px 7px}.sales-order-form .document-totals,.sales-order-detail .document-totals{padding:6px 8px}.sales-order-detail .btn,.sales-order-form .entry-lines .btn{padding:3px 6px;font-size:12px;min-height:25px}
}

.movement-detail thead th{white-space:nowrap;text-align:center}.movement-detail .inventory-sort{display:inline-block;width:auto}.movement-detail .summary-drop-target{background:#b7dff5!important}.movement-detail table{min-width:1450px}

@media screen{.plan-customer-emphasis,.plan-customer-emphasis strong,.production-plan-form [name="planParty"],.production-plan-form [data-plan-meta="customer"]{color:#c64412!important;font-weight:700}.production-plan-form [name="planParty"]{background:#fff3e9!important;border-color:#df9b6b!important}.plan-customer-emphasis small{color:#64748b;font-weight:400}}

@media screen{
input.search,input[type="search"],input[id*="Search"],input[id*="search"],.summary-search input,.toolbar input,.toolbar select,.order-summary-filters input,.order-summary-filters select,.product-select-tools input,.product-select-tools select{background:#fff3b0!important;border-color:#d7b84b!important;color:#493d15!important;box-shadow:inset 0 1px 2px #b69a3020}
input.search:focus,input[type="search"]:focus,input[id*="Search"]:focus,input[id*="search"]:focus,.toolbar input:focus,.toolbar select:focus,.order-summary-filters input:focus,.order-summary-filters select:focus{background:#fff8cf!important;outline-color:#c99b16}
}

.movement-query-filters{grid-template-columns:repeat(4,minmax(160px,1fr));gap:7px 12px;padding:10px}.movement-query-filters .summary-search{grid-column:auto}.movement-query-filters .btn{height:28px;padding:3px 10px}@media(max-width:1000px){.movement-query-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.movement-query-filters{grid-template-columns:1fr 1fr}}

.production-summary .production-summary-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 17px}.production-summary .production-filter-row{display:grid;grid-template-columns:minmax(280px,340px) minmax(180px,250px) minmax(150px,190px);gap:6px 12px;align-items:center}.production-summary .production-date-range{display:flex;gap:6px;min-width:0}.production-summary .production-date-range label{flex:1;min-width:0}.production-summary .production-date-range label:first-child{flex:1.3}.production-summary .production-filter-row label{font-size:12px;gap:4px}.production-summary .production-filter-row input,.production-summary .production-filter-row select{height:27px;font-size:12px;padding:2px 4px}.production-summary .production-filter-row .summary-search{grid-column:auto}.production-summary .production-filter-row .summary-count{text-align:right}@media(max-width:900px){.production-summary .production-filter-row{grid-template-columns:1fr 1fr}.production-summary .production-date-range{grid-column:1/-1}}@media(max-width:550px){.production-summary .production-filter-row{grid-template-columns:1fr}.production-summary .production-date-range{flex-wrap:wrap}}

@media screen{
.plan-customer-emphasis,.plan-customer-emphasis strong,.production-plan-form [name="planParty"],.production-plan-form [data-plan-meta="customer"]{color:#246684!important;font-weight:600}
.production-plan-form [name="planParty"]{background:#edf6fa!important;border-color:#9cbfce!important}
td.plan-customer-emphasis{background:#eaf4f8!important}
.plan-customer-emphasis strong{display:inline-block;background:#edf6fa;border-radius:4px;padding:2px 6px;line-height:1.4}
.plan-customer-emphasis small{color:#64748b;font-weight:400}
}

.movement-totals{display:flex;flex-wrap:wrap;gap:12px 30px;padding:12px;background:#e6f2f8;color:#215773;font-weight:700}

@media screen{
.drawer.sales-order-detail{width:min(1480px,98vw);background:#f8fbfd;border:1px solid #81a9bf;border-radius:3px}
.sales-order-detail .drawer-head{background:linear-gradient(#e9f5fb,#b9dced);border-bottom:2px solid #689fc0;padding:10px 16px}.sales-order-detail .drawer-head h2{font-size:18px;letter-spacing:0}
.sales-order-detail .drawer-body{padding:12px 16px}.sales-order-detail .doc-top.view-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;padding:10px 14px;background:linear-gradient(110deg,#d8ecf5,#6ab1d5);border:1px solid #81a9bf;border-bottom:2px solid #689fc0;border-radius:0}.sales-order-detail .view-top small{font-size:12px;color:#173e59}.sales-order-detail .view-top strong{font-size:13px;color:#143b54}
.sales-order-detail .doc-grid{border-radius:0;overflow:auto}.sales-order-detail .entry-lines{width:100%;white-space:nowrap;background:#f8fbfd}.sales-order-detail .entry-lines thead th{padding:3px 6px;text-align:center;vertical-align:middle;line-height:1.15;background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;border:1px solid #81a9bf}.sales-order-detail .entry-lines td{padding:5px 7px;font-size:12px;line-height:1.25;border:1px solid #81a9bf}.sales-order-detail .entry-lines tbody tr:nth-child(odd){background:#f4f8fa}.sales-order-detail .entry-lines tbody tr:nth-child(even){background:#fff6b9}.sales-order-detail .entry-lines tbody tr:hover{background:#2878ad!important}.sales-order-detail .entry-lines tbody tr:hover td,.sales-order-detail .entry-lines tbody tr:hover .sales-stock-trigger{color:#fff}.sales-order-detail .entry-lines tbody tr:hover .small-action{background:#f4faff;color:#195d83}
.sales-order-detail .document-totals{background:#d6e9f3;border:1px solid #81a9bf;border-top:2px solid #5f91ac;border-radius:0;color:#133d56;padding:8px 12px}.sales-order-detail .drawer-foot{background:#e8f3fb;border-top:1px solid #81a9bf;gap:7px}.sales-order-detail .drawer-foot .btn{border-radius:2px;border-color:#7faec8;background:linear-gradient(#f5fbff,#cae6f5);color:#1b587a}.sales-order-detail .drawer-foot .btn.danger{color:#b33737}
}
@media screen and (max-width:650px){.sales-order-detail .doc-top.view-top{grid-template-columns:repeat(2,minmax(0,1fr))}}

.price-breakdown{display:block;white-space:normal;font-size:12px;color:#246684;line-height:1.35;margin-top:4px;max-width:220px}#productPriceForm [hidden]{display:none!important}

.price-prefill{margin-bottom:16px}.price-prefill .order-summary-table{min-width:800px;table-layout:auto}.price-prefill .order-summary-table th{width:auto!important;min-width:100px}.price-prefill input{width:100%;min-width:80px;height:28px;border:1px solid #9bb8ca;background:#fff;padding:3px 6px;text-align:right}.price-prefill .hint{padding:8px 12px}.price-prefill .order-summary-filters{display:flex;flex-wrap:wrap}

.price-prefill .order-summary-table{min-width:0;width:max-content;table-layout:fixed}.price-prefill .order-summary-table th{min-width:34px!important;width:48px!important;padding:4px 3px;font-size:12px}.price-prefill .order-summary-table th:first-child{width:110px!important}.price-prefill .order-summary-table td{padding:3px}.price-prefill input{width:100%;min-width:0;padding:2px 3px;font-size:12px}.price-prefill .price-sheet-name{text-align:left}

.sales-outbound-form .price-breakdown,.sales-outbound-detail .price-breakdown{display:none!important}.sales-outbound-form .row-price{font-weight:700;color:#246684}.production-plan-detail .view-top .plan-customer-emphasis{background:#edf6fa}

@media screen{.production-plan-detail .doc-top.view-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px}.production-plan-detail .doc-top.view-top>div:nth-child(1){grid-column:1;grid-row:1}.production-plan-detail .doc-top.view-top>div:nth-child(4){grid-column:1;grid-row:2}}

.price-header-row{display:grid;grid-template-columns:1fr 110px 1fr auto;gap:8px;margin:8px 0}.price-header-row input,.price-header-row select{min-width:0;padding:6px}.bulk-choice{display:inline-flex;align-items:center;gap:5px;margin:6px 14px 6px 0}.price-prefill .order-summary-actions{flex-wrap:wrap}

.bulk-product-dialog{width:min(850px,96vw)}.bulk-product-dialog .drawer-body{padding:10px 14px}.bulk-product-dialog .hint{margin:4px 0 8px}.bulk-product-compare table{width:100%;border-collapse:collapse;table-layout:fixed}.bulk-product-compare th,.bulk-product-compare td{border:1px solid #adc5d2;padding:3px 7px;font-size:12px;line-height:1.2}.bulk-product-compare th{background:#d8eaf4;text-align:center;height:26px}.bulk-product-compare th:first-child{width:120px}.bulk-product-compare td:nth-child(2){background:#f0f5f8;overflow-wrap:anywhere;color:#516574}.bulk-product-compare td:nth-child(3){background:#fff9dc}.bulk-product-compare td label{display:flex;align-items:center;gap:5px}.bulk-product-compare input:not([type=checkbox]){height:25px;min-height:25px;width:100%;padding:2px 5px;border:1px solid #aac0ce;font-size:12px}.bulk-product-dialog .bulk-choice{margin:3px 12px 3px 0;font-size:12px}
@media screen{
.drawer.bulk-product-dialog{width:min(780px,calc(100vw - 20px));max-width:calc(100vw - 20px);box-sizing:border-box;overflow-x:hidden}
.bulk-product-dialog .drawer-body{min-width:0;padding:8px 10px;overflow-x:hidden}
.bulk-product-compare{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
.bulk-product-compare table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed!important}
.bulk-product-compare th:first-child{width:95px}.bulk-product-compare th:nth-child(2),.bulk-product-compare th:nth-child(3){width:calc((100% - 95px)/2)}
.bulk-product-compare th,.bulk-product-compare td{min-width:0;padding:2px 5px;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;font-size:12px}
.bulk-product-compare input:not([type=checkbox]){box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:24px;min-height:24px}
.bulk-product-dialog .bulk-choice{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-width:0}.bulk-product-dialog .drawer-foot{flex-wrap:wrap}
}
@media screen and (max-width:500px){.bulk-product-compare th:first-child{width:76px}.bulk-product-compare th:nth-child(2),.bulk-product-compare th:nth-child(3){width:calc((100% - 76px)/2)}.bulk-product-dialog .drawer-head h2{font-size:17px}}
.bulk-product-compare table col{width:auto!important}.bulk-product-compare table col:first-child{width:95px!important}.bulk-product-compare .col-resizer{display:none!important}

.product-custom-section{margin-top:12px;padding:10px;border:1px solid #aac5d5;background:#f0f7fb;border-radius:5px}.product-custom-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#246684}.custom-column-actions{display:flex;gap:8px;margin-top:4px}.product-custom-card input{width:100%;min-width:0}.product-custom-section .master-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:650px){.product-custom-section .master-grid{grid-template-columns:1fr 1fr}}

/* Keep sales order entry and detail sheets aligned with the summary report. */
@media screen {
 .drawer:has(.sales-order-form),.drawer.sales-order-detail{background:#d9ecf6;border:1px solid #76a8c5;border-radius:3px;box-shadow:0 8px 24px #214d6630}
 .drawer:has(.sales-order-form) .drawer-head,.sales-order-detail .drawer-head{background:linear-gradient(180deg,#e8f3fb,#c9e2f1);border-bottom:3px solid #7fb6d0;padding:12px 17px}
 .drawer:has(.sales-order-form) .drawer-head h2,.sales-order-detail .drawer-head h2{font-family:"Microsoft YaHei",sans-serif;font-size:22px;letter-spacing:2px;color:#132e46}
 .drawer:has(.sales-order-form) .drawer-body,.sales-order-detail .drawer-body{padding:12px 17px}
 .sales-order-form .sales-tab{background:#c9e2f1;border-color:#81a9bf;color:#143b54;border-radius:2px 2px 0 0;padding:5px 12px}
 .sales-order-form .doc-top.sales-header,.sales-order-detail .doc-top.view-top{background:linear-gradient(110deg,#d8ecf5,#6ab1d5);border:1px solid #81a9bf;border-bottom:2px solid #689fc0;border-radius:0;gap:7px 13px;padding:10px 12px}
 .sales-order-form .field label,.sales-order-detail .view-top small{font-size:12px;font-weight:700;color:#173e59}
 .sales-order-form .doc-grid,.sales-order-detail .doc-grid{background:#f8fbfd;border:1px solid #81a9bf;border-radius:0}
 .sales-order-form .entry-lines,.sales-order-detail .entry-lines{border-collapse:collapse;color:#143b54}
 .sales-order-form .entry-lines thead th,.sales-order-detail .entry-lines thead th{background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;text-align:center;vertical-align:middle;font-size:12px;font-weight:700;line-height:1.15;padding:3px 6px;border:1px solid #81a9bf}
 .sales-order-form .entry-lines tbody td,.sales-order-detail .entry-lines tbody td{border:1px solid #81a9bf;padding:6px 7px;font-size:12px;line-height:1.25;vertical-align:middle}
 .sales-order-form .entry-lines tbody tr:nth-child(odd),.sales-order-detail .entry-lines tbody tr:nth-child(odd){background:#f4f8fa}
 .sales-order-form .entry-lines tbody tr:nth-child(even),.sales-order-detail .entry-lines tbody tr:nth-child(even){background:#fff6b9}
 .sales-order-form .entry-lines tbody tr:hover,.sales-order-detail .entry-lines tbody tr:hover{background:#2878ad!important}
 .sales-order-form .entry-lines tbody tr:hover td,.sales-order-detail .entry-lines tbody tr:hover td,.sales-order-form .entry-lines tbody tr:hover .sales-stock-trigger,.sales-order-detail .entry-lines tbody tr:hover .sales-stock-trigger,.sales-order-form .entry-lines tbody tr:hover .sales-spec,.sales-order-form .entry-lines tbody tr:hover .sales-mark,.sales-order-form .entry-lines tbody tr:hover .sales-process{color:#fff}
 .sales-order-form .entry-lines tbody tr:hover .small-action,.sales-order-detail .entry-lines tbody tr:hover .small-action{background:#f4faff;color:#195d83}
 .sales-order-form .document-totals,.sales-order-detail .document-totals{background:#d6e9f3;border:1px solid #81a9bf;border-top:2px solid #5f91ac;border-radius:0;color:#133d56;font-weight:700;padding:8px 12px}
 .drawer:has(.sales-order-form) .drawer-foot,.sales-order-detail .drawer-foot{background:#e8f3fb;border-top:1px solid #81a9bf;gap:7px}
 .drawer:has(.sales-order-form) .drawer-foot .btn,.sales-order-detail .drawer-foot .btn,.sales-order-form .sales-add-slot .btn{border:1px solid #7faec8;border-radius:2px;background:linear-gradient(#f5fbff,#cae6f5);color:#1b587a;box-shadow:inset 1px 1px #fff,1px 2px 3px #456e8655}
 .sales-order-detail .drawer-foot .btn.danger{color:#b33737}
}
.plan-suggested-qty{display:block;margin-top:4px;padding:3px 5px;border:1px solid #7bb4c8;border-radius:3px;background:#e2f3f8;color:#185c77;font-size:12px;white-space:nowrap;line-height:1.3}.plan-suggested-qty[hidden]{display:none}.plan-suggested-qty strong{color:#c65316;font-weight:700;margin-left:4px}
.selector-product-code{display:block;color:#19799c;font-size:12px;font-weight:700;margin-bottom:3px}.product-select-item strong{min-width:0;white-space:normal;overflow-wrap:anywhere}
.outbound-summary .outbound-summary-filters{grid-template-columns:190px 170px minmax(220px,320px) 1fr}.outbound-summary .order-summary-table{min-width:1600px}.outbound-summary .order-summary-table th{width:auto!important}.outbound-summary .order-summary-table th:nth-child(5){width:240px!important}.outbound-summary .order-summary-table th:nth-child(10){width:140px!important}
#outboundPrintRoot{position:absolute;left:-10000px;top:0;width:277mm;background:#fff;color:#000;font-family:"Microsoft YaHei",sans-serif}.outbound-print-page{width:277mm;height:188mm;box-sizing:border-box;overflow:hidden;break-after:page;page-break-after:always}.outbound-print-page:last-child{break-after:auto;page-break-after:auto}.outbound-print-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 3mm;gap:10mm;font-size:12px}.outbound-print-heading h2{font-size:16px;margin:0}.outbound-print-page table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;line-height:1.3}.outbound-print-page th,.outbound-print-page td{border:1px solid #555;padding:1.2mm 1mm;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.outbound-print-page th{text-align:center;font-weight:700}.outbound-print-page td:nth-child(7),.outbound-print-page td:nth-child(8),.outbound-print-page td:nth-child(9){text-align:right;font-variant-numeric:tabular-nums}.outbound-print-page tfoot{font-weight:700}.outbound-print-page tr{break-inside:avoid;page-break-inside:avoid}
@media print{body.printing-outbound-summary>*:not(#outboundPrintRoot){display:none!important}body.printing-outbound-summary #outboundPrintRoot{display:block!important;position:static;left:auto;top:auto;width:277mm}body.printing-outbound-summary .outbound-print-page{margin:0;padding:0;box-shadow:none}body.printing-outbound-summary .outbound-print-page tfoot{display:table-row-group}}
@media(max-width:700px){.outbound-summary .outbound-summary-filters{grid-template-columns:1fr 1fr}.outbound-summary .outbound-summary-filters label:nth-child(3){grid-column:1/-1}}
.outbound-summary .outbound-summary-filters{grid-template-columns:190px 170px minmax(220px,320px)}.outbound-summary-filters .summary-count{grid-column:1/-1}.outbound-print-heading{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2mm;align-items:center;min-height:10mm;padding-bottom:3mm}.outbound-print-heading strong{grid-column:1;overflow-wrap:anywhere}.outbound-print-heading h2{grid-column:2;text-align:center;font-size:18px;white-space:nowrap}.outbound-print-page td:first-child,.outbound-print-page th:first-child{padding-left:0.5mm;padding-right:0.5mm}.outbound-print-page tbody td:nth-child(4){font-size:10px;overflow-wrap:anywhere}
@media(max-width:700px){.outbound-summary .outbound-summary-filters{grid-template-columns:1fr 1fr}}
.outbound-view-options{display:flex;align-items:center;gap:14px;grid-column:1/-1;color:#173e59;font-size:12px;font-weight:700}.outbound-view-options label{display:inline-flex;align-items:center;gap:5px}.outbound-summary .outbound-view-options input{width:15px;height:15px;flex:none;box-shadow:none;accent-color:#246f9e}
.drawer:has(.compact-finance-form){width:min(850px,96vw)}.compact-finance-form .doc-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}.compact-finance-form .field label{font-size:12px;margin-bottom:3px}.compact-finance-form .field input,.compact-finance-form .field select{min-height:28px;height:28px;padding:3px 6px;font-size:12px}.compact-finance-form .section-label{padding:5px 0;margin:6px 0;font-size:13px}.compact-finance-form .entry-lines{min-width:0;width:100%;table-layout:fixed}.compact-finance-form .entry-lines th,.compact-finance-form .entry-lines td{padding:4px 6px;font-size:12px}.compact-finance-form .entry-lines input{min-height:28px;height:28px;padding:3px 5px;font-size:12px;width:100%}.compact-finance-form .document-totals{padding:6px 8px;margin-top:7px}.compact-finance-form .finance-sales-reference{grid-column:span 2}.compact-finance-form .finance-month-checkbox{display:flex;align-items:center;gap:5px}.compact-finance-form .finance-month-checkbox input{width:14px;min-height:14px;height:14px;accent-color:#267ca1}.compact-finance-form .finance-month-filter input[hidden]{display:none}@media(max-width:600px){.compact-finance-form .doc-top{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-finance-form .finance-sales-reference{grid-column:1/-1}}
.outbound-summary .order-summary-table tfoot td{ text-align:right;font-variant-numeric:tabular-nums}.outbound-print-page tfoot [data-page-qty],.outbound-print-page tfoot [data-page-amount]{text-align:right;font-variant-numeric:tabular-nums}.outbound-print-page tfoot [data-total-label]{text-align:right}.outbound-summary-print .outbound-print-page tbody td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}
.outbound-summary .order-summary-table tfoot .outbound-total-label,.outbound-print-page tfoot [data-total-label]{text-align:left}.compact-finance-form .finance-purchase-reference{grid-column:span 2}.finance-receipt-choices{max-height:130px;overflow:auto;border:1px solid #9ab6c7;background:#f8fbfd;padding:4px 6px;border-radius:3px}.compact-finance-form .finance-receipt-choices label{display:flex;align-items:center;gap:6px;font-weight:400;margin:2px 0;min-height:22px}.compact-finance-form .finance-receipt-choices input{width:14px;height:14px;min-height:14px;flex:none;accent-color:#267ca1}.finance-receipt-choices .hint{font-size:12px;margin:0}@media(max-width:600px){.compact-finance-form .finance-purchase-reference{grid-column:1/-1}}
.drawer:has(.compact-finance-form):has(.finance-linked-table){width:min(1200px,97vw)}.finance-linked-table table{width:100%;min-width:950px}.finance-linked-table th,.finance-linked-table td{padding:4px 6px;font-size:12px;line-height:1.25}.compact-balance-report{padding:8px}.compact-balance-report table{width:100%;min-width:650px}.compact-balance-report th,.compact-balance-report td{padding:4px 7px;font-size:12px;line-height:1.25}.compact-balance-report tbody td:nth-child(3),.compact-balance-report tbody td:nth-child(4),.compact-balance-report tbody td:nth-child(5){text-align:right}
.account-party-link{color:#19729c;font-weight:700;cursor:pointer}.account-party-link:hover{background:#e1f0f7;text-decoration:underline}.party-account .doc-top{grid-template-columns:2fr 1fr;gap:8px;padding:8px}.party-account .field input{height:29px;min-height:29px;padding:3px 6px}.party-account table{width:100%;min-width:680px}.party-account th,.party-account td{padding:5px 7px;font-size:12px}.party-account #partyAccountFigures{margin:10px 0;background:#eaf4f9;border:1px solid #92b9ca}.party-account #partyAccountFigures td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
@media screen{
 .finance-pages .panel,.finance-pages .order-summary{border:1px solid #81a9bf;background:#f1f4f6;box-shadow:0 4px 14px #214d6618}.finance-pages .order-summary-top,.finance-pages .panel-title{background:linear-gradient(#e8f3fb,#c9e2f1);color:#143b54;border-bottom:2px solid #7fb6d0}.finance-pages .toolbar,.finance-pages .order-summary-filters{background:linear-gradient(110deg,#d8ecf5,#6ab1d5);padding:8px 12px;border-bottom:1px solid #81a9bf}
 .finance-pages table,.finance-detail table,.drawer:has(.compact-finance-form) table,.party-account table{border-collapse:collapse;color:#143b54;background:#f1f3f5}.finance-pages table th,.finance-pages table td,.finance-detail table th,.finance-detail table td,.drawer:has(.compact-finance-form) table th,.drawer:has(.compact-finance-form) table td,.party-account table th,.party-account table td{border:1px solid #81a9bf;padding:5px 7px;font-size:12px;line-height:1.25}
 .finance-pages table thead th,.finance-detail table thead th,.drawer:has(.compact-finance-form) table thead th,.party-account table thead th{background:linear-gradient(#9dd0e8,#66a9cb)!important;color:#123b56!important;text-align:center;font-weight:700;padding:3px 6px}.finance-pages table tbody tr,.finance-detail table tbody tr,.drawer:has(.compact-finance-form) table tbody tr,.party-account table tbody tr{background:#f1f3f5!important}.finance-pages table tbody tr:nth-child(even),.finance-detail table tbody tr:nth-child(even),.drawer:has(.compact-finance-form) table tbody tr:nth-child(even),.party-account table tbody tr:nth-child(even){background:#e9edf0!important}.finance-pages table tbody td,.finance-detail table tbody td,.drawer:has(.compact-finance-form) table tbody td,.party-account table tbody td{color:#143b54!important}.finance-pages table tbody tr:hover,.finance-detail table tbody tr:hover,.drawer:has(.compact-finance-form) table tbody tr:hover,.party-account table tbody tr:hover{background:#dcebf3!important}
 .finance-pages table tfoot td,.finance-pages table tfoot th,.finance-detail .document-totals,.drawer:has(.compact-finance-form) .document-totals{background:#d6e9f3;border:1px solid #81a9bf;color:#133d56;font-weight:700}.finance-detail .drawer-head,.drawer:has(.compact-finance-form) .drawer-head,.drawer:has(.party-account) .drawer-head{background:linear-gradient(#e8f3fb,#c9e2f1);color:#143b54;border-bottom:2px solid #7fb6d0}.finance-detail .doc-top,.compact-finance-form .doc-top,.party-account .doc-top{background:#e6f0f6;border:1px solid #81a9bf}.finance-detail .drawer-foot,.drawer:has(.compact-finance-form) .drawer-foot{background:#e8f3fb;border-top:1px solid #81a9bf}
}

.compact-party-account .doc-top{display:flex;gap:12px;padding:8px;margin-bottom:8px;background:linear-gradient(110deg,#d8ecf5,#6ab1d5)}.compact-party-account .field{margin:0;max-width:230px}.compact-party-account .field label{font-size:12px;margin-bottom:3px}.compact-party-account input{height:29px;padding:3px 6px;font-size:12px}.compact-party-account .account-month-range{max-width:none}.account-month-range>div{display:flex;align-items:center;gap:5px}.compact-party-account table td:not(:first-child){text-align:right}.account-range-total{display:flex;justify-content:space-between;gap:12px;padding:7px;background:#d6e9f3;border:1px solid #81a9bf;color:#143b54;font-size:12px;font-weight:700}.drawer:has(.compact-party-account) .drawer-body{padding:12px}.drawer:has(.compact-party-account) .drawer-foot{padding:8px 12px;background:#e8f3fb}@media(max-width:640px){.compact-party-account .doc-top{flex-wrap:wrap}.account-month-range input{width:135px}.account-range-total{flex-wrap:wrap}}

.receivable-detail .receivable-summary-table thead th,.drawer:has(.receivable-form) .entry-lines thead th{background:linear-gradient(#b9dff1,#75b6d7)!important;color:#0d4669!important;font-size:14px;padding:10px 12px!important}.receivable-detail .receivable-summary-table tbody td,.drawer:has(.receivable-form) .entry-lines tbody td{background:#fff5d6!important;color:#174c6b!important;font-size:15px;font-weight:600;padding:14px 12px!important;line-height:1.5!important}.drawer:has(.receivable-form) .entry-lines input{height:40px;background:#fffbea;color:#174c6b;font-size:15px}.receivable-detail .receivable-summary-table td:nth-child(2),.drawer:has(.receivable-form) .entry-lines td:nth-child(2) input{color:#b45309!important;font-weight:700}

.compact-finance-form>.table-wrap,.compact-finance-form #financeLinkedDetails .table-wrap{width:100%;max-width:100%;margin-left:0;margin-right:0;border-radius:0;box-sizing:border-box}.compact-finance-form .entry-lines{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse}.compact-finance-form .entry-lines th:first-child,.compact-finance-form .entry-lines td:first-child{width:75%;min-width:0}.compact-finance-form .entry-lines th:last-child,.compact-finance-form .entry-lines td:last-child{width:25%;min-width:0}.compact-finance-form #financeLinkedDetails,.compact-finance-form .finance-linked-table{width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0}.compact-finance-form .finance-linked-table table{width:100%;min-width:0;table-layout:fixed}.compact-finance-form .finance-linked-table th,.compact-finance-form .finance-linked-table td{white-space:normal;overflow-wrap:anywhere}.compact-finance-form .document-totals{margin-left:0;margin-right:0;border-radius:0}

/* 月度收付款：蓝色表头、浅灰主体、金额分色 */
.drawer:has(.compact-party-account) .drawer-head{background:linear-gradient(120deg,#c8e8f6,#76b9dc);border-bottom:2px solid #438db4}.compact-party-account .doc-top .field:first-child{background:#e3f2fb;border-color:#79b4d3}.compact-party-account .doc-top .field:first-child input{color:#125b83;font-weight:700;background:#f1f9ff}.compact-party-account .account-month-range input{background:#fff6cc;border-color:#c9b764}.compact-party-account #partyAccountDocs table thead th{background:linear-gradient(#a5d6ec,#6aaed0)!important;color:#153e58!important;padding:7px!important}.compact-party-account #partyAccountDocs table tbody td{padding:8px!important}.compact-party-account #partyAccountDocs table tbody td:first-child{background:#e2eef6!important;color:#225b7d!important;font-weight:700}.compact-party-account #partyAccountDocs table tbody td:nth-child(3){color:#a66d20!important}.compact-party-account #partyAccountDocs table tbody td:nth-child(4){color:#1e5c86!important;font-weight:700}.compact-party-account #partyAccountDocs table tbody td:nth-child(5){background:#e6f3ec!important;color:#28734e!important;font-weight:700}.compact-party-account #partyAccountDocs table tbody td:nth-child(6){background:#fff0d9!important;color:#a65b20!important;font-weight:700}.compact-party-account .account-range-total{background:linear-gradient(110deg,#dceef9,#c5e1f0);border-top:2px solid #6da5c5;padding:9px;color:#184c70}

.drawer:has(.compact-party-account){width:min(1000px,100vw)}.drawer:has(.compact-party-account) .drawer-head{padding:9px 12px}.drawer:has(.compact-party-account) .drawer-head h2{font-size:16px}.drawer:has(.compact-party-account) .drawer-body{padding:8px}.compact-party-account .doc-top{gap:8px;padding:5px;margin-bottom:5px}.compact-party-account .doc-top .field{padding:4px 6px;box-shadow:none}.compact-party-account input{height:27px;min-height:27px;padding:3px 5px}.compact-party-account #partyAccountDocs table thead th{padding:4px 6px!important;font-size:12px;line-height:1.2}.compact-party-account #partyAccountDocs table tbody td{padding:5px 6px!important;font-size:12px;line-height:1.2}.compact-party-account .account-range-total{padding:6px;font-size:12px}.drawer:has(.compact-party-account) .drawer-foot{padding:6px 10px;gap:6px}.drawer:has(.compact-party-account) .drawer-foot .btn{padding:5px 10px;font-size:12px}

.finance-pages:has(.compact-balance-report) .page-head{padding:8px 0;margin-bottom:8px;align-items:center}.finance-pages:has(.compact-balance-report) .page-head h1{font-size:20px;margin:2px 0}.finance-pages:has(.compact-balance-report) .page-head .sub{font-size:12px;margin:3px 0}.finance-pages:has(.compact-balance-report) .page-head .eyebrow{margin:0;font-size:11px}.finance-pages .compact-balance-report{padding:4px;margin:0}.finance-pages .compact-balance-report table th,.finance-pages .compact-balance-report table td{padding:3px 6px;font-size:12px;line-height:1.2}.finance-pages .compact-balance-report .inventory-sort{padding:0;min-height:22px;font-size:12px}.finance-pages:has(.compact-balance-report) .btn{padding:5px 10px;font-size:12px}.finance-pages:has(.compact-balance-report) .page-bottom{padding:6px 0;margin-top:6px}@media print{.finance-pages .compact-balance-report{border:0;padding:0;box-shadow:none}.finance-pages .compact-balance-report table{width:100%!important;min-width:0!important;table-layout:fixed}.finance-pages .compact-balance-report th,.finance-pages .compact-balance-report td{overflow-wrap:anywhere;white-space:normal;font-size:10px!important;padding:4px!important}.finance-pages .compact-balance-report thead{display:table-header-group}.finance-pages .compact-balance-report tr{break-inside:avoid}}

/* 打印取消屏幕滚动高度与用户拖动列宽，允许完整分页 */
@media print{
html,body,.app,.main,main,#content{height:auto!important;max-height:none!important;overflow:visible!important;min-width:0!important}
#content .panel,#content .order-summary,#content .table-wrap,#content .order-summary-scroll,.drawer .table-wrap,.drawer .doc-grid,.drawer .finance-linked-table,.drawer #financeLinkedDetails{height:auto!important;max-height:none!important;overflow:visible!important;max-width:100%!important;min-width:0!important}
.drawer,.drawer.wide{max-width:100%!important;display:block!important}.drawer-body{height:auto!important;max-height:none!important;flex:none!important}
table.print-fit-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;white-space:normal!important;border-collapse:collapse!important}
table.print-fit-table col,table.print-fit-table th,table.print-fit-table td{width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;height:auto!important;padding:1mm .8mm!important;font-size:8pt!important;line-height:1.3!important}
table.print-fit-table thead{display:table-header-group!important}table.print-fit-table tfoot{display:table-row-group!important}table.print-fit-table tr{break-inside:avoid;page-break-inside:avoid}
table.print-fit-table th button{white-space:normal!important;width:100%!important;padding:0!important;font:inherit!important;color:inherit!important;background:none!important;border:0!important;text-align:inherit!important}
table.print-fit-table input,table.print-fit-table select{min-width:0!important;width:100%!important;padding:0!important;font-size:8pt!important}
.order-summary-filters,.document-toolbar,.toolbar,.production-stage-history button{display:none!important}
}


@media print{.plan-stage-trail{display:block}.plan-stage-chip{display:block;border:0;background:none;padding:1px}.stage-index{margin-right:4px}.stage-status{margin-left:5px}}

@media screen{
.production-stage-history{border:1px solid #bdcfdd;border-radius:6px;background:#f3f6f8;padding:9px;margin:8px 0}.production-stage-history .section-label{margin:0 0 6px;color:#2d5873}.stage-color-guide{display:flex;gap:6px;margin-bottom:8px;font-size:11px}.stage-color-guide span{padding:2px 7px;border-radius:4px;background:#fff0ce;color:#96631b}.stage-color-guide span:nth-child(2){background:#e0eef9;color:#326786}.stage-color-guide span:nth-child(3){background:#e2f1e8;color:#327355}.stage-color-guide span:nth-child(4){background:#e9ecef;color:#717b84}.stage-record{border:1px solid #ccd9e2;border-left:4px solid #739ab3;border-radius:5px;margin:6px 0;background:white}.stage-record.pending{border-left-color:#cfac58}.stage-record.done{border-left-color:#70a888}.stage-record.stopped{border-left-color:#a0a8b0}.stage-record summary{display:flex;align-items:center;gap:9px;padding:8px 10px;background:#e8f1f7;color:#345d76;cursor:pointer}.stage-record.pending summary{background:#fcf5e5}.stage-record.done summary{background:#edf6f0}.stage-record.stopped summary{background:#f0f2f4}.stage-record-number{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #c5d5df;font-size:12px;font-weight:700}.stage-record-name{font-weight:700;font-size:13px;flex:1}.stage-record-status{background:#fff;border-radius:4px;padding:3px 7px;font-size:12px;font-weight:600}.stage-record.pending .stage-record-status{color:#97691c}.stage-record.active .stage-record-status{color:#2b6992}.stage-record.done .stage-record-status{color:#2a7552}.stage-record.stopped .stage-record-status{color:#73808a}.production-stage-history [data-stage-doc]{color:#936118!important;background:#fff3d9!important;border:1px solid #d5b878!important;border-radius:4px;padding:4px 8px;font-size:12px;margin:0!important}.stage-record .table-wrap{padding:6px}.stage-record table th{background:#e3edf4;color:#31576f;text-align:center;font-size:12px;padding:5px;border:1px solid #c4d5e0}.stage-record table td{background:#fafbfd;color:#354d60;font-size:12px;padding:5px;border:1px solid #dce4eb}.stage-record table tr:nth-child(even) td{background:#f0f4f7}
}@media print{.stage-color-guide{display:none}.stage-record summary{color:#000;background:#fff}.stage-record-number{margin-right:5px}.stage-record-status{margin-left:10px}}

@media screen{
.production-stage-history{padding:10px;background:#f4f7fa;border:1px solid #b9cbd9;border-radius:6px}.production-stage-history .section-label{font-size:14px;margin:0 0 8px}.production-stage-history .stage-color-guide{margin-bottom:10px}.production-stage-history .stage-record{margin:7px 0;border-width:1px;border-left-width:4px;border-radius:5px;overflow:hidden}.production-stage-history .stage-record summary{display:grid;grid-template-columns:26px minmax(160px,1fr) 90px 70px 88px;gap:10px;align-items:center;padding:9px 12px;min-height:45px;list-style:none}.production-stage-history .stage-record summary::-webkit-details-marker{display:none}.stage-record-name{overflow-wrap:anywhere}.production-stage-history .stage-record-status{text-align:center;font-size:12px;padding:4px 6px}.stage-expand-hint{text-align:center;color:#6a8293;font-size:11px}.stage-record[open] .stage-expand-hint{font-size:0}.stage-record[open] .stage-expand-hint:after{content:'收起明细';font-size:11px}.production-stage-history [data-stage-doc]{width:88px;white-space:nowrap;text-align:center;margin:0!important}.production-stage-history .stage-record .table-wrap{padding:8px;background:#fff;overflow:auto}.production-stage-history .stage-record table{width:100%;min-width:1000px;table-layout:fixed;white-space:normal}.production-stage-history .stage-record table th,.production-stage-history .stage-record table td{padding:6px 5px;text-align:center;vertical-align:middle;overflow-wrap:anywhere;line-height:1.35}.production-stage-history .stage-record table th{background:#dceaf4;font-size:11px}.production-stage-history .stage-record table td{font-size:12px}.production-stage-history .stage-record table th:nth-child(2){width:15%}.production-stage-history .stage-record table th:last-child{width:16%}@media(max-width:700px){.production-stage-history .stage-record summary{grid-template-columns:22px minmax(80px,1fr) 74px 78px;gap:5px;padding:7px}.stage-expand-hint{display:none}.production-stage-history [data-stage-doc]{width:78px}}
}

@media screen{
.production-stage-history{padding:10px;background:#f4f7fa;border:1px solid #b9cbd9;border-radius:6px}.production-stage-history .section-label{font-size:14px;margin:0 0 8px}.production-stage-history .stage-color-guide{margin-bottom:10px}.production-stage-history .stage-record{margin:7px 0;border-width:1px;border-left-width:4px;border-radius:5px;overflow:hidden}.production-stage-history .stage-record summary{display:grid;grid-template-columns:26px minmax(160px,1fr) 90px 70px 88px;gap:10px;align-items:center;padding:9px 12px;min-height:45px;list-style:none}.production-stage-history .stage-record summary::-webkit-details-marker{display:none}.stage-record-name{overflow-wrap:anywhere}.production-stage-history .stage-record-status{text-align:center;font-size:12px;padding:4px 6px}.stage-expand-hint{text-align:center;color:#6a8293;font-size:11px}.stage-record[open] .stage-expand-hint{font-size:0}.stage-record[open] .stage-expand-hint:after{content:'收起明细';font-size:11px}.production-stage-history [data-stage-doc]{width:88px;white-space:nowrap;text-align:center;margin:0!important}.production-stage-history .stage-record .table-wrap{padding:8px;background:#fff;overflow:auto}.production-stage-history .stage-record table{width:100%;min-width:1000px;table-layout:fixed;white-space:normal}.production-stage-history .stage-record table th,.production-stage-history .stage-record table td{padding:6px 5px;text-align:center;vertical-align:middle;overflow-wrap:anywhere;line-height:1.35}.production-stage-history .stage-record table th{background:#dceaf4;font-size:11px}.production-stage-history .stage-record table td{font-size:12px}.production-stage-history .stage-record table th:nth-child(2){width:15%}.production-stage-history .stage-record table th:last-child{width:16%}
}@media screen and (max-width:700px){.production-stage-history .stage-record summary{grid-template-columns:22px minmax(80px,1fr) 74px 78px;gap:5px;padding:7px}.stage-expand-hint{display:none}.production-stage-history [data-stage-doc]{width:78px}}

.permission-modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:12px}.permission-modules section{border:1px solid #bdd1df;border-radius:5px;background:#f4f7fa;padding:8px}.permission-modules h3{margin:0 0 7px;color:#315d78;font-size:13px}.permission-modules label{display:flex;align-items:center;gap:6px;font-size:12px;padding:4px;color:#37566b}.role-permission-panel select{padding:5px;border:1px solid #a8c4d5;border-radius:4px}

.operator-warehouses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #bed1df;background:#edf4f8;margin-bottom:12px}.operator-warehouses label{font-size:13px;color:#325b73;display:flex;gap:6px;align-items:center}@media(max-width:650px){.operator-warehouses{grid-template-columns:1fr}}
