:root{--ink:#252921;--muted:#777b70;--paper:#f6f5ef;--line:#e3e4da;--green:#315347;--lime:#d9e8af;--amber:#bf8130;--red:#af4e3f;--white:#fffefa;--radius:12px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);padding:9px 15px;font-weight:500;transition:background .15s}button:hover{background:#ebece3}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#244235}button.small{padding:5px 10px;font-size:12px}button.ghost{border:0;background:transparent;color:var(--muted)}button.danger{color:var(--red)}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #d7d9cd;border-radius:7px;background:white;color:var(--ink);min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #c0d3ad;outline-offset:1px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);cursor:pointer}textarea{resize:vertical;min-height:86px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;font-weight:600}h2{font-size:19px;font-weight:600}h3{font-size:15px}a{color:var(--green)}.boot{padding:80px;text-align:center}.layout{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#eeefe6;border-right:1px solid #dedfd4;padding:29px 18px;position:fixed;width:224px;height:100vh;display:flex;flex-direction:column;gap:22px}.wordmark{font-family:Georgia,serif;font-size:32px;font-weight:bold;letter-spacing:-2px;padding:0 14px}.wordmark span{display:block;font-family:inherit;font-size:10px;letter-spacing:3px;font-weight:normal;margin-top:4px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:6px}.nav button{text-align:left;border:0;background:transparent;padding:12px 16px;color:#626759;display:flex;align-items:center;gap:13px}.nav button.active{background:var(--green);color:white}.nav b{font-family:Georgia,serif;font-weight:normal;font-size:16px;opacity:.6}.sidebar-foot{margin-top:auto;padding:13px;font-size:12px;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#77924a;margin-right:6px}.main{grid-column:2;padding:0 38px 50px;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.topbar-right{display:flex;align-items:center;gap:10px}.avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#dfe4d3;color:var(--green)}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 26px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--green);margin-bottom:7px}.subtitle{color:var(--muted);margin-top:6px}.actions{display:flex;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stat{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:21px}.stat.focus{background:var(--green);color:#fff}.stat label{color:var(--muted);font-size:12px}.stat.focus label{color:#d6e1d6}.stat strong{display:block;font-size:35px;font-weight:500;font-family:Georgia,serif;line-height:1.4}.stat small{font-size:12px;color:var(--muted)}.stat.focus small{color:#d6e1d6}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:22px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:15px}.panel-body{padding:22px}.label{font-size:12px;color:var(--muted)}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px}.toolbar input{max-width:350px}.toolbar .tabs{margin-right:auto}.tabs{display:flex;gap:5px}.tabs button{background:transparent;border-color:transparent;color:var(--muted)}.tabs button.active{background:#e8eddf;border-color:#dbe2cd;color:var(--green)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#f4f5ef;color:var(--muted);font-size:11px;font-weight:500;white-space:nowrap}td,th{padding:14px 18px;border-bottom:1px solid #eeeee6;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8f9f3}td .secondary{display:block;color:var(--muted);font-size:11px;margin-top:3px;max-width:250px}.numeric{font-family:Georgia,"PingFang SC",serif;font-size:16px;font-variant-numeric:tabular-nums}.mono{font-family:Menlo,Consolas,monospace;font-size:11px}.badge{display:inline-block;border-radius:4px;padding:3px 8px;background:#edf1e4;color:#567040;font-size:11px;white-space:nowrap}.badge.warn{background:#f7eddd;color:#9b702c}.badge.bad{background:#f7e7e2;color:#a44b3d}.badge.neutral{background:#eeeee8;color:#777}.empty{text-align:center;padding:46px 24px;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:17px;font-weight:500;margin-bottom:7px}.empty button{margin-top:17px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.notice{padding:12px 16px;background:#edf1e4;border:1px solid #dce5cb;color:#586747;font-size:12px;border-radius:7px;margin-bottom:18px}.notice.warn{background:#fff6e8;border-color:#eddfc6;color:#97703a}.progress{height:5px;background:#e7e9df;border-radius:3px;overflow:hidden;width:100px;margin-top:6px}.progress i{display:block;height:100%;background:#78935a}.stock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.stock-card{padding:23px;border:1px solid var(--line);border-radius:9px;background:#fafbf6}.stock-card strong{font-family:Georgia,serif;font-size:33px;display:block;margin:8px 0}.stock-card .foot{display:flex;justify-content:space-between;align-items:center}.stepper{display:flex;gap:8px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid var(--line)}.stepper span{padding:5px 13px;color:var(--muted);border-radius:5px;background:#f1f2eb}.stepper span.current{background:var(--green);color:white}.detail-meta{display:flex;gap:28px;flex-wrap:wrap}.detail-meta strong{display:block;margin-top:4px;font-weight:500}.back{margin-top:24px}.summary-strip{display:flex;gap:10px;flex-wrap:wrap}.summary-strip span{background:#f3f4ec;border-radius:6px;padding:9px 14px}.login-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-hero{background:var(--green);color:#fff;padding:65px;display:flex;flex-direction:column;justify-content:space-between}.login-hero .wordmark{padding:0}.login-hero .wordmark span{color:#bcccb8}.login-hero h1{font-size:46px;line-height:1.35;font-weight:400}.login-hero p{color:#b7c8b9;max-width:350px;margin-top:23px}.login-aside{display:grid;place-items:center;padding:40px}.login-card{width:100%;max-width:380px}.login-card h2{font-size:25px;margin-bottom:7px}.login-card form{display:grid;gap:18px;margin-top:27px}.login-card button{padding:13px}.error{color:var(--red);font-size:12px;min-height:20px}.field{display:block}.field>span{display:block;font-size:12px;margin-bottom:6px;color:#616658}.field small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}dialog{border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);padding:0;max-width:min(1000px,94vw);width:740px;max-height:90vh;box-shadow:0 25px 100px #17201535}dialog.wide{width:1100px}dialog::backdrop{background:#1d291957;backdrop-filter:blur(2px)}.modal-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-body{padding:25px 27px;overflow:auto;max-height:66vh}.modal-foot{padding:16px 27px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);align-items:center}.modal-foot .error{margin-right:auto}.section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.editor-table td,.editor-table th{padding:8px}.editor-table input,.editor-table select{padding:7px 8px;font-size:12px}.editor-table td:first-child{min-width:180px}.editor-table input.short{min-width:74px}.editor-table .stock-col{min-width:100px}.editor-table .confirm{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}.editor-table textarea{padding:7px;min-height:36px;font-size:12px}.device-area{font-family:Menlo,monospace;font-size:12px;min-height:180px;white-space:pre}.device-count{font-size:12px;color:var(--muted);margin-top:8px}.footer-note{color:var(--muted);font-size:11px;margin-top:18px}.audit-preview{white-space:pre-wrap;font-family:Menlo,monospace;font-size:12px;background:#f4f5ee;padding:18px;overflow:auto}.toast-show{opacity:1!important;transform:translateY(0)!important}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,8px);background:#283c2d;color:white;border-radius:8px;padding:12px 22px;z-index:1000;opacity:0;transition:.2s;pointer-events:none}#toast.toast-show{transform:translate(-50%,0)!important}button:focus-visible{outline:2px solid #78935a;outline-offset:3px}.inline-help{font-size:11px;color:var(--muted);margin:10px 0}.danger-text{color:var(--red)}
@media(max-width:1100px){.sidebar{width:184px}.layout{grid-template-columns:184px 1fr}.main{padding:0 23px 35px}.stats{gap:10px}.stat{padding:16px}.login-hero{padding:40px}.grid2{grid-template-columns:1fr}.topbar-right>span{display:none}}@media(max-width:720px){.sidebar{position:static;width:auto;height:auto;padding:14px;gap:10px}.layout{display:block}.wordmark{font-size:26px}.wordmark span,.sidebar-foot{display:none}.nav{flex-direction:row;overflow:auto}.nav button{white-space:nowrap;padding:9px 12px}.nav b{display:none}.main{padding:0 16px 25px}.topbar{height:58px}.page-head{margin:24px 0 18px;align-items:flex-start;flex-direction:column}h1{font-size:25px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:28px}.form-grid{grid-template-columns:1fr}.login-wrap{display:block}.login-hero{padding:25px;min-height:240px}.login-hero h1{font-size:29px;margin-top:20px}.login-hero p{margin-top:12px}.login-hero .label{display:none}.login-aside{padding:32px 24px}.modal-body,.modal-head,.modal-foot{padding:17px}.toolbar{align-items:stretch;flex-direction:column}.tabs{overflow:auto}.panel-head{padding:15px}.modal-foot{flex-wrap:wrap}.modal-foot .error{width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
body{font-family:"PingFang SC","Heiti SC","黑体","Microsoft YaHei",sans-serif}
.wordmark,.wordmark span,.numeric,.stat strong{font-family:"PingFang SC","Heiti SC","黑体","Microsoft YaHei",sans-serif}
[hidden]{display:none!important}
.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:170px}
.notes-cell{max-width:220px;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
.material-picker{border:1px solid var(--line);border-radius:9px;background:#fafbf6;padding:12px;margin:0 0 14px}
.material-picker input{margin-bottom:10px}
.picker-list{max-height:260px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px}
.picker-option{text-align:left;display:flex;flex-direction:column;gap:2px;min-height:76px;padding:9px 11px}
.picker-option strong{font-size:12px;font-weight:600}
.picker-option .label{font-size:10px}
.editor-table tr.just-added{background:#e3efcf;transition:background 1.8s}
.check-label{display:flex;align-items:center;gap:5px;white-space:nowrap}

/* Quiet, content-first operations UI. */
:root{--ink:#1d1d1f;--muted:#6e6e73;--paper:#f5f5f7;--line:#e5e5e7;--green:#294d42;--white:#fff;--radius:14px}
body,button,input,select,textarea,.wordmark,.wordmark span,.numeric,.mono,.stat strong,.nav b{font-family:"Heiti SC","STHeiti","黑体","PingFang SC",sans-serif}
body{background:var(--paper);color:var(--ink);font-size:14px;line-height:1.5}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 16px;gap:28px}
.wordmark{font-size:29px;letter-spacing:-1.7px;font-weight:700}
.wordmark span{font-size:9px;letter-spacing:2.5px}
.nav{gap:5px}.nav button{border-radius:9px;color:#56565c;padding:11px 14px;gap:11px;font-weight:500}
.nav button.active{background:#e9f0ed;color:#24463c;font-weight:650}
.nav button:hover:not(.active){background:#f5f5f7}
.nav b{font-size:11px;color:#8d9290;font-weight:600;opacity:1}
.nav-count{margin-left:auto;background:#cf3e43;color:white;border-radius:999px;min-width:21px;height:21px;display:inline-grid;place-items:center;font-size:11px;font-weight:700;padding:0 5px}
.main{padding:0 38px 56px}.topbar{height:70px}.page-head{margin:34px 0 24px}
h1{font-size:28px;letter-spacing:-.7px;font-weight:700}h2{letter-spacing:-.2px}
.eyebrow{color:#708679;letter-spacing:1.5px}.subtitle{color:#77777d}
.panel,.stat{background:#fff;border-color:var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(15,20,18,.025)}
button{border-radius:9px}button:hover{background:#f3f5f3}button.primary:hover{background:#1e3d33}
button.small{font-size:13px}.row-actions{min-width:154px;gap:7px;flex-wrap:nowrap}
input,select,textarea{border-color:#d9d9dd;border-radius:9px}
input:focus,select:focus,textarea:focus{outline:2px solid #a9c5b4;outline-offset:0}
table{width:100%}th,td{font-family:"Heiti SC","STHeiti","黑体","PingFang SC",sans-serif;font-size:13px;line-height:1.5}th{letter-spacing:0;color:#77777d;font-weight:600}td{font-weight:400}
.text-link,.count-link,.inline-edit{border:0;background:transparent;padding:4px 0;font-size:13px;text-align:left;color:inherit;box-shadow:none}
.text-link{font-weight:600}.text-link:hover,.count-link:hover{background:none;color:var(--green);text-decoration:underline}
.count-link{color:var(--green);font-weight:600}
.inline-edit{display:inline-flex;align-items:center;gap:8px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
.inline-edit span{font-size:11px;opacity:0;color:#8b9991}.inline-edit:hover{background:none;color:var(--green)}.inline-edit:hover span,.inline-edit:focus-visible span{opacity:1}
.inline-input{width:100%;min-width:95px;padding:5px 8px;font-size:13px}.inline-input.invalid{border-color:#c54449}
.link-editor{min-width:190px;max-width:260px;padding:10px;border:1px solid #d9e5dc;background:#f9fbfa;border-radius:10px;box-shadow:0 8px 22px rgba(0,0,0,.07)}
.link-options{display:grid;gap:8px;max-height:170px;overflow:auto}.link-options label{display:flex;align-items:center;gap:8px;font-size:13px}.link-options input{width:16px;height:16px}
.link-actions{display:flex;gap:6px;margin-top:10px}
.expanded-row td{padding:0!important;background:#fbfcfb}.expanded-content{padding:22px 24px 25px;border-top:1px solid var(--line)}
.expanded-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.expanded-head strong{display:block;font-size:15px}.expanded-head .label{display:block;margin-top:3px}
.inline-meta{display:flex;gap:14px;margin-bottom:17px}.inline-meta label{font-size:12px;color:var(--muted);min-width:165px}.inline-meta input,.inline-meta select{display:block;margin-top:5px;padding:7px 9px;font-size:13px}
.task-inline{table-layout:auto}.task-inline th,.task-inline td{font-size:13px;padding:10px 8px}.task-inline input,.task-inline select,.task-inline textarea{font-size:13px;padding:6px 8px;min-width:110px}.task-inline .delivery-quantity{min-width:85px;width:95px}.task-inline .delivery-due{min-width:150px}.task-inline .delivery-notes{min-width:150px}.task-inline .check-label input{min-width:0;width:16px}
.inline-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px}.inline-footer .error{margin-right:auto}
.table-wrap:has(.inline-edit){overflow-x:auto}.table-wrap:has(.inline-edit)>table{min-width:1160px;table-layout:fixed}
.table-wrap:has(.inline-edit)>table th:nth-child(1){width:158px}.table-wrap:has(.inline-edit)>table th:nth-child(2){width:198px}.table-wrap:has(.inline-edit)>table th:nth-child(3){width:205px}.table-wrap:has(.inline-edit)>table th:nth-child(4){width:112px}.table-wrap:has(.inline-edit)>table th:nth-child(5){width:94px}.table-wrap:has(.inline-edit)>table th:nth-child(6){width:140px}.table-wrap:has(.inline-edit)>table th:nth-child(7){width:112px}.table-wrap:has(.inline-edit)>table th:nth-child(8){width:156px}
.table-wrap:has(.inline-edit)>table td{overflow-wrap:normal}.table-wrap:has(.inline-edit) .inline-edit{white-space:normal;word-break:break-word;line-height:1.4}.table-wrap:has(.inline-edit) td:first-child .inline-edit{word-break:normal;overflow-wrap:anywhere}
.table-wrap:has(.inline-edit)>table th:last-child,.table-wrap:has(.inline-edit)>table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-8px 0 14px -14px #9ba4a0}.table-wrap:has(.inline-edit)>table th:last-child{background:#f7f8f6}
.expanded-content>.table-wrap{overflow-x:auto}.expanded-content .task-inline{min-width:1320px;width:100%;table-layout:fixed}.expanded-content[data-type="production"] .task-inline th:nth-child(1){width:13%}.expanded-content[data-type="production"] .task-inline th:nth-child(2){width:17%}.expanded-content[data-type="production"] .task-inline th:nth-child(3){width:17%}.expanded-content[data-type="production"] .task-inline th:nth-child(4){width:11%}.expanded-content[data-type="production"] .task-inline th:nth-child(5){width:16%}.expanded-content[data-type="production"] .task-inline th:nth-child(6){width:8%}.expanded-content[data-type="production"] .task-inline th:nth-child(7){width:18%}.expanded-content[data-type="refurb"] .task-inline{min-width:1100px}
.expanded-content .task-inline td{vertical-align:middle}.expanded-content .task-inline input{width:100%}.expanded-content .task-inline .check-label{white-space:nowrap}
button[data-action="toggle-batch"]{white-space:nowrap}
.batch-list-row.expandable{cursor:pointer}
.batch-list-row.expandable:hover,.batch-list-row.expandable.is-open{background:#f5f8f6}
.batch-list-row.expandable:focus-visible{outline:2px solid #9bbbad;outline-offset:-2px}
.batch-chevron{width:30px;height:30px;padding:4px;display:inline-grid;place-items:center;border:0;background:transparent;color:var(--green);border-radius:7px}
.batch-chevron:hover{background:#e9f0ed}
.batch-chevron svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.batch-chevron.open svg{transform:rotate(180deg)}
@media(max-width:1400px){
  .expanded-content>.table-wrap{overflow:visible}.expanded-content .task-inline{display:block;min-width:0;width:100%}.expanded-content .task-inline thead{display:none}.expanded-content .task-inline tbody{display:grid;gap:10px}.expanded-content .task-inline tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:10px 14px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff}.expanded-content .task-inline td{display:block;padding:0;border:0;min-width:0;word-break:break-word}.expanded-content .task-inline td::before{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.expanded-content .task-inline td:nth-child(1)::before{content:"物料号"}.expanded-content .task-inline td:nth-child(2)::before{content:"物料名称"}.expanded-content .task-inline td:nth-child(3)::before{content:"供应商"}.expanded-content .task-inline td:nth-child(4)::before{content:"交付数量"}.expanded-content .task-inline td:nth-child(5)::before{content:"预计交付时间"}.expanded-content .task-inline td:nth-child(6)::before{content:"状态"}.expanded-content .task-inline td:nth-child(7){grid-column:1/-1}.expanded-content .task-inline td:nth-child(7)::before{content:"备注"}.expanded-content .task-inline input,.expanded-content .task-inline textarea{min-width:0;width:100%}.expanded-content .task-inline .delivery-quantity{width:100%}
  .expanded-content[data-type="refurb"] .task-inline td:nth-child(1)::before{content:"任务"}.expanded-content[data-type="refurb"] .task-inline td:nth-child(2)::before{content:"负责人"}.expanded-content[data-type="refurb"] .task-inline td:nth-child(3)::before{content:"计划日期"}.expanded-content[data-type="refurb"] .task-inline td:nth-child(4)::before{content:"状态"}.expanded-content[data-type="refurb"] .task-inline td:nth-child(5){grid-column:1/3}.expanded-content[data-type="refurb"] .task-inline td:nth-child(5)::before{content:"备注"}.expanded-content[data-type="refurb"] .task-inline td:nth-child(6)::before{content:"操作"}
}
@media(max-width:700px){.expanded-content .task-inline tr{grid-template-columns:1fr 1fr}.expanded-content .task-inline td:nth-child(3){grid-column:1/-1}}
@media(max-width:900px){.main{padding:0 18px 35px}.expanded-content{padding:18px}.inline-meta{flex-wrap:wrap}}

/* Readable operations UI with the original restrained Apple-style palette. */
:root{--ink:#1d1d1f;--muted:#6e6e73;--paper:#f5f5f7;--line:#e5e5e7;--green:#294d42;--lime:#e9f0ed;--white:#fff;--radius:16px}
html{scroll-behavior:smooth}
body{background:var(--paper);font-size:15px;line-height:1.5;letter-spacing:0;color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-size:14px;line-height:1.4}
button{border-color:#dedee2;border-radius:10px;font-weight:600;white-space:nowrap}
button:hover{background:#f2f3f5;border-color:#c9cbd0}
button.primary{background:var(--green);border-color:var(--green);color:#fff}
button.primary:hover{background:#1e3d33;border-color:#1e3d33}
button.small{font-size:13px;padding:7px 11px}
button.ghost:hover{background:#f2f3f5;color:var(--ink)}
h1{font-size:28px;line-height:1.23;font-weight:700;letter-spacing:-.65px}
h2{font-size:18px;line-height:1.35;font-weight:700;letter-spacing:-.3px}
h3{font-size:15px;font-weight:700}
.subtitle{font-size:14px;line-height:1.5;color:var(--muted);margin-top:7px}
.label,.footer-note,.inline-help{font-size:12px;line-height:1.45;color:var(--muted)}
.layout{grid-template-columns:202px minmax(0,1fr)}
.sidebar{width:202px;padding:25px 15px;background:#fff;gap:0;border-right:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:9px;padding:0 10px;margin-bottom:40px}
.brand-mark{width:30px;height:30px;display:grid;place-items:center;background:#e9f0ed;color:#294d42;border-radius:9px;font-size:20px;line-height:1}
.wordmark{font-size:24px;line-height:1;letter-spacing:-1.5px;padding:0;font-weight:750}
.wordmark span{font-size:10px;letter-spacing:2px;font-weight:650;color:#77777d;margin-top:4px}
.nav-group-label{font-size:11px;font-weight:650;letter-spacing:.4px;color:#8a8a91;padding:0 12px 10px}
.nav{gap:5px}.nav button{font-size:14px;min-height:42px;padding:9px 12px;gap:12px;border-radius:10px;color:#56565c}
.nav button.active{background:var(--lime);color:#24463c;font-weight:700}
.nav button:hover:not(.active){background:#f5f5f7}
.nav-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-count{background:#e64e55;color:#fff;min-width:22px;height:22px;font-size:12px;border:2px solid #fff}
.sidebar-foot{font-size:12px;padding:14px 12px}.dot{background:#789184;width:7px;height:7px}
.main{padding:0 32px 60px;max-width:1680px;margin:0 auto;width:100%}
.topbar{height:68px;font-size:13px;color:#77777d}
.breadcrumb{display:inline-flex;align-items:center;gap:9px}.breadcrumb span{color:#b7b7bd}.breadcrumb strong{font-weight:700;color:#333338}
.topbar-right{font-size:13px;gap:10px;color:#56565c}.topbar-right strong{font-weight:650}
.avatar{width:31px;height:31px;background:#e9f0ed;color:#294d42;border-radius:50%;font-size:13px;font-weight:700}
.page-head{margin:30px 0 24px;align-items:flex-end}.page-head .actions{align-items:center}
.panel,.stat{border:1px solid var(--line);box-shadow:0 2px 10px rgba(20,20,30,.025);border-radius:16px;background:#fff}
.panel{margin-bottom:18px}.panel-head{padding:19px 22px;border-color:var(--line)}
.panel-head p{font-size:13px;color:var(--muted);margin-top:4px}
.section-count{display:inline-flex;align-items:center;justify-content:center;background:#f0f1f3;color:#5f6269;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.toolbar{margin-bottom:18px;gap:14px}.toolbar input{height:42px;max-width:320px}
.tabs{gap:5px}.tabs button{font-size:14px;font-weight:600;padding:8px 12px;border-radius:9px}
.tabs button.active{background:var(--lime);color:#24463c;border-color:#d4e3db}
input,select,textarea{border-color:#d9d9dd;background:#fff;color:var(--ink);font-size:14px}
input:focus,select:focus,textarea:focus{outline:2px solid #a9c5b4;outline-offset:1px;border-color:#8eac9b}
table,th,td{font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums}
th{background:#f7f7f9;color:#707077;font-size:12px;font-weight:700;letter-spacing:.15px}
td,th{padding:13px 14px;border-bottom:1px solid #eeeef0}
tbody tr:hover{background:#fafafc}
td .secondary{font-size:12px;line-height:1.4}
.numeric{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
.mono{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.badge{border-radius:7px;background:#e9f0ed;color:#294d42;font-size:12px;font-weight:650;padding:5px 9px}
.badge.neutral{background:#f0f1ef;color:#6e756f}.badge.warn{background:#fff4e4;color:#966221}
.text-link,.count-link,.inline-edit{font-size:14px;line-height:1.45}
.inline-edit{min-height:32px}.inline-edit span{opacity:.35}.inline-edit:hover span{opacity:1}
.inline-input{font-size:14px;padding:7px 9px}
.cell-editor{position:fixed;z-index:1100;width:min(340px,calc(100vw - 24px));padding:6px;background:#fff;border:1px solid #d9d9dd;border-radius:11px;box-shadow:0 12px 32px rgba(20,25,22,.18)}
.cell-editor .inline-input{display:block;width:100%;height:36px;font-size:14px}
.inline-edit.editing{background:#e9f0ed;color:var(--green)}
.link-editor{position:fixed;z-index:1100;width:min(330px,calc(100vw - 24px));min-width:0;max-width:none;background:#fff;border-color:#d9d9dd;box-shadow:0 12px 32px rgba(20,25,22,.18)}
.link-options{max-height:190px}.link-options label{font-size:14px;padding:5px 0}
.link-hint{font-size:12px;color:var(--muted);margin-top:9px}
.row-actions{min-width:0;gap:7px;flex-wrap:nowrap}
.row-actions button{white-space:nowrap}
.modal-head{padding:22px 26px}.modal-body{padding:23px 26px}.modal-foot{padding:16px 26px}
.editor-table input,.editor-table select,.editor-table textarea{font-size:14px}
.material-picker{background:#f8f8fa;border-color:var(--line);border-radius:12px}
.picker-option{min-height:82px}.picker-option strong{font-size:14px}.picker-option .label{font-size:12px}
.check-label{font-size:14px}
.expanded-head strong{font-size:16px}.inline-meta label{font-size:12px}.inline-meta input,.inline-meta select{font-size:14px}
.task-inline th,.task-inline td,.task-inline input,.task-inline select,.task-inline textarea{font-size:14px}
.task-inline .delivery-notes{min-width:120px}
.expanded-content .task-inline .check-label{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px}
.expanded-content .task-inline .check-label input[type=checkbox]{width:18px;min-width:18px;height:18px;flex:0 0 18px}
.task-focus{animation:task-highlight 1.8s ease-out}
@keyframes task-highlight{0%{box-shadow:0 0 0 3px #a9c5b4;background:#f2f7f4}100%{box-shadow:0 0 0 0 transparent;background:#fff}}
.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
.overview-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:19px 21px;display:flex;flex-direction:column;min-height:138px}
.overview-card.accent{background:#e9f0ed;border-color:#dbe7e0}
.overview-kicker{font-size:12px;color:#6e6e73;font-weight:700}.overview-card.accent .overview-kicker{color:#456254}
.overview-card strong{font-size:38px;letter-spacing:-1.3px;line-height:1.15;margin-top:11px;font-weight:750;font-variant-numeric:tabular-nums}
.overview-card small{font-size:13px;letter-spacing:0;font-weight:600;margin-left:8px;color:#6e6e73}.overview-card.accent small{color:#536f5f}
.overview-note{font-size:12px;color:#7b7b82;margin-top:auto}.overview-card.accent .overview-note{color:#536f5f}
.batch-overview-list,.pending-list{display:block}
.batch-overview{display:grid;grid-template-columns:minmax(170px,2fr) minmax(70px,.7fr) minmax(105px,1fr) minmax(85px,.85fr) auto;gap:15px;align-items:center;padding:17px 21px;border-top:1px solid #eeeef0}
.batch-overview:first-child,.pending-item:first-child{border-top:0}
.batch-identity strong,.pending-material strong{display:block;font-size:15px;font-weight:700;line-height:1.4}
.batch-identity span,.pending-material span{display:block;font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.batch-fact>span,.pending-detail>span{display:block;font-size:12px;color:var(--muted);margin-bottom:3px;white-space:nowrap}
.batch-fact strong,.pending-detail strong{display:block;font-size:14px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.text-action{border:0;background:#f2f3f5;padding:8px 11px;color:#294d42;font-size:13px;font-weight:700;border-radius:9px;white-space:nowrap}
.text-action:hover{background:#e9f0ed;border-color:#e9f0ed}.text-action span{margin-left:4px}
.pending-item{display:grid;grid-template-columns:minmax(175px,2fr) minmax(100px,1fr) minmax(83px,.7fr) minmax(90px,.85fr) auto;gap:13px;align-items:center;padding:14px 21px;border-top:1px solid #eeeef0}
.pending-detail strong{font-size:13px}.pending-item .text-action{padding:7px 10px}
.linked-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
.linked-toolbar input{max-width:315px;height:39px}.compact-tabs button{font-size:13px;padding:7px 10px}
dialog.linked-dialog{width:min(1500px,96vw);max-width:96vw}
.linked-dialog .modal-body{max-height:74vh;padding:26px 32px 30px}
.linked-wrap{max-height:59vh;overflow:auto;border:1px solid var(--line);border-radius:11px}
.linked-wrap table{min-width:1320px;width:100%;table-layout:fixed}.linked-wrap thead th{position:sticky;top:0;z-index:1}
.linked-wrap th:nth-child(1){width:78px}.linked-wrap th:nth-child(2){width:155px}.linked-wrap th:nth-child(3){width:205px}.linked-wrap th:nth-child(4){width:395px}.linked-wrap th:nth-child(5){width:265px}.linked-wrap th:nth-child(6){width:105px}.linked-wrap th:nth-child(7){width:117px}
.linked-wrap td{overflow-wrap:anywhere}.linked-wrap td:nth-child(2),.linked-wrap td:nth-child(6),.linked-wrap td:nth-child(7){white-space:nowrap}
.batch-basics.production{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.editor-table:has(.purchase-col){min-width:940px}
.editor-table .purchase-col{min-width:126px}
.editor-table .purchase-col .recommended{display:block;margin-top:4px;white-space:nowrap;font-size:12px;color:#6e6e73}
.editor-table .stock-col{min-width:116px}
.batch-basics.production .field{min-width:0}
.filter-empty{text-align:center;color:var(--muted);font-size:14px;padding:40px 12px}
dialog:has(.linked-toolbar) .modal-foot{display:none}
.device-area{font-family:"Heiti SC","STHeiti","黑体","PingFang SC",sans-serif;font-size:14px}
.draft-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
.draft-notice .small{flex:none;background:#fff;color:var(--green)}
.draft-status{font-size:12px;color:var(--muted);white-space:nowrap}
@media(max-width:1250px){
  .table-wrap:has(.inline-edit){overflow:visible}.table-wrap:has(.inline-edit)>table{display:block;width:100%;min-width:0;table-layout:auto}.table-wrap:has(.inline-edit)>table thead{display:none}
  .table-wrap:has(.inline-edit)>table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
  .table-wrap:has(.inline-edit)>table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff;min-width:0;align-content:start}
  .table-wrap:has(.inline-edit)>table td{display:block;position:static!important;box-shadow:none!important;background:transparent!important;border:0;padding:0;min-width:0;font-size:14px;overflow-wrap:anywhere}
  .table-wrap:has(.inline-edit)>table td::before{display:block;margin-bottom:3px;color:#85858b;font-size:12px;font-weight:650}
  .table-wrap:has(.inline-edit)>table td:nth-child(1)::before{content:"物料号"}.table-wrap:has(.inline-edit)>table td:nth-child(2)::before{content:"物料名称"}.table-wrap:has(.inline-edit)>table td:nth-child(3)::before{content:"规格"}.table-wrap:has(.inline-edit)>table td:nth-child(4)::before{content:"供应商"}.table-wrap:has(.inline-edit)>table td:nth-child(5)::before{content:"库存"}.table-wrap:has(.inline-edit)>table td:nth-child(6)::before{content:"关联商品"}.table-wrap:has(.inline-edit)>table td:nth-child(7)::before{content:"更新时间"}
  .table-wrap:has(.inline-edit)>table td:nth-child(3),.table-wrap:has(.inline-edit)>table td:nth-child(6){grid-column:1/-1}
  .table-wrap:has(.inline-edit)>table td:nth-child(7){font-size:12px;color:var(--muted);align-self:end}
  .table-wrap:has(.inline-edit)>table td:nth-child(8){align-self:end;justify-self:end}.table-wrap:has(.inline-edit)>table td:nth-child(8)::before{display:none}
  .table-wrap:has(.inline-edit)>table td .inline-edit{font-size:14px;min-height:26px;max-width:100%;text-align:left;padding:0;word-break:break-word}
}
@media(max-width:1100px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px}.main{padding:0 22px 50px}.batch-overview{grid-template-columns:minmax(150px,2fr) minmax(60px,.7fr) minmax(95px,1fr) minmax(65px,.75fr) auto;gap:10px}.pending-item{grid-template-columns:minmax(165px,2fr) minmax(95px,1fr) minmax(73px,.7fr) minmax(84px,.85fr) auto;gap:10px}}
@media(max-width:900px){.batch-basics.production{grid-template-columns:repeat(2,minmax(0,1fr))}.linked-dialog .modal-body{padding:18px}}
@media(max-width:850px){.batch-overview,.pending-item{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.batch-identity,.pending-material{grid-column:1/-1}.batch-overview .text-action,.pending-item .text-action{grid-column:3;justify-self:end}.table-wrap:has(.inline-edit)>table tbody{grid-template-columns:1fr}.overview-card{min-height:120px}}
@media(max-width:720px){.sidebar{width:auto;padding:14px}.brand{margin-bottom:10px}.nav-group-label,.sidebar-foot{display:none}.nav{overflow:auto}.nav button{white-space:nowrap}.main{padding:0 16px 35px}.topbar{height:56px}.page-head{align-items:flex-start;margin:22px 0 20px}.overview-grid{gap:9px}.overview-card{padding:14px}.overview-card strong{font-size:32px}.linked-toolbar{flex-direction:column;align-items:stretch}.linked-toolbar input{max-width:none}.batch-basics.production{grid-template-columns:1fr}}

.shipping-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px}
.shipping-address-card{border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}
.shipping-address-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.shipping-address-head h3{font-size:14px;font-weight:600;margin:0}
.shipping-address-card dl{margin:0;display:grid;gap:9px;font-size:13px;line-height:1.7}
.shipping-address-card dl>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px}
.shipping-address-card dt{color:var(--muted)}.shipping-address-card dd{margin:0;overflow-wrap:anywhere}
@media(max-width:900px){.shipping-address-grid{grid-template-columns:1fr;padding:16px}}

.expanded-content{padding:25px 28px 28px}
.expanded-head{margin-bottom:21px}
.expanded-head-actions{display:flex;align-items:center;gap:14px}
.autosave-status{font-size:12px;color:#537464;white-space:nowrap}
.autosave-status.error{color:var(--red)}
.expanded-content .task-inline th{font-size:12px;padding:13px 12px}
.expanded-row .expanded-content .task-inline td{font-size:14px;line-height:1.5;padding:13px 12px!important;overflow-wrap:anywhere}
.expanded-content .task-inline input,.expanded-content .task-inline select,.expanded-content .task-inline textarea{height:40px;min-width:0;width:100%;font-size:14px;padding:8px 10px;border-radius:9px}
.expanded-content .task-inline .supplier-cell{line-height:1.5}
.expanded-content .task-inline .check-label{gap:7px;white-space:nowrap}
.expanded-content .task-inline .check-label input[type=checkbox]{width:18px;height:18px;min-width:18px;padding:0}
.expanded-content .task-inline .delivery-quantity,.expanded-content .task-inline .delivery-due,.expanded-content .task-inline .delivery-notes{min-width:0;width:100%}
@media(max-width:1400px){
  .expanded-content .task-inline{min-width:0;width:100%}
  .expanded-content .task-inline tr{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.2fr);gap:14px 18px;padding:18px}
  .expanded-row .expanded-content .task-inline td{padding:0!important}
  .expanded-content .task-inline td::before{font-size:12px}
}
@media(max-width:700px){.expanded-content{padding:18px}.expanded-head{align-items:flex-start;flex-direction:column}.expanded-head-actions{width:100%;justify-content:space-between}.expanded-content .task-inline tr{grid-template-columns:1fr 1fr}}

.sku-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:15px}
.sku-summary>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px 22px}
.sku-summary span{display:block;color:var(--muted);font-size:12px;font-weight:600}
.sku-summary strong{display:block;margin-top:8px;font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}
.sku-source{border:1px solid #dde8e1;background:#f1f6f3;color:#456254;border-radius:10px;padding:12px 16px;font-size:13px;line-height:1.6;margin-bottom:18px}
.sku-wrap{overflow-x:auto}.sku-table{min-width:1160px;width:100%;table-layout:fixed}
.sku-table th,.sku-table td{font-size:14px;padding:15px 13px;overflow-wrap:anywhere}
.sku-table th{font-size:12px}.sku-table th:nth-child(1){width:15%}.sku-table th:nth-child(2){width:19%}.sku-table th:nth-child(3){width:11%}.sku-table th:nth-child(4){width:15%}.sku-table th:nth-child(5){width:12%}.sku-table th:nth-child(6){width:13%}.sku-table th:nth-child(7){width:10%}.sku-table th:nth-child(8){width:5%}
.sku-row td:nth-child(2) strong{display:block;font-size:14px;font-weight:650}.sku-row td:nth-child(2) small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.sku-row td:nth-child(3),.sku-row td:nth-child(7){white-space:nowrap}.sku-row td:nth-child(4){color:var(--muted);font-size:13px}
.sku-expanded>td{padding:0!important;background:#fafbfa}.sku-detail{padding:24px 27px 27px}
.sku-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:20px}
.sku-detail-head strong{display:block;font-size:16px;font-weight:700}.sku-detail-head span{display:block;font-size:12px;color:var(--muted);margin-top:6px}
.sku-save-status{font-size:12px!important;color:#537464!important;white-space:nowrap;margin-top:0!important}.sku-save-status.error{color:var(--red)!important}
.sku-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.sku-plan-grid input{height:42px;font-size:14px}
.sku-formula{font-size:12px;color:#5d6861;line-height:1.65;margin:15px 0 20px}
.sku-warehouse{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px 18px;font-size:13px}
.sku-warehouse>strong{display:block;font-size:13px;margin-bottom:8px}.sku-warehouse>div{display:grid;grid-template-columns:minmax(160px,1fr) 110px 110px;gap:12px;padding:7px 0;border-top:1px solid var(--line)}
.sku-warehouse small{display:block;color:var(--muted);font-size:12px;margin-top:9px}.sku-warehouse p{color:var(--muted);margin:0}
@media(max-width:1050px){.sku-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1280px){
  .sku-table{display:block;min-width:0}.sku-table thead{display:none}.sku-table tbody{display:block}
  .sku-table tr.sku-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 14px;position:relative;padding:16px 56px 16px 16px;border-bottom:1px solid var(--line)}
  .sku-table tr.sku-row td{display:block;border:0;padding:2px 4px;min-width:0;white-space:normal}
  .sku-table tr.sku-row td::before{display:block;color:var(--muted);font-size:11px;font-weight:600;margin-bottom:3px}
  .sku-table tr.sku-row td:nth-child(1){grid-column:1}.sku-table tr.sku-row td:nth-child(2){grid-column:2/4}
  .sku-table tr.sku-row td:nth-child(3)::before{content:'可用库存'}.sku-table tr.sku-row td:nth-child(4)::before{content:'仓库'}
  .sku-table tr.sku-row td:nth-child(5)::before{content:'计划日均出库'}.sku-table tr.sku-row td:nth-child(6)::before{content:'预计可售天数'}
  .sku-table tr.sku-row td:nth-child(7)::before{content:'计划补货量'}
  .sku-table tr.sku-row td:nth-child(8){position:absolute;right:14px;top:17px}
  .sku-table tr.sku-expanded,.sku-table tr.sku-expanded td{display:block;width:100%}
}
@media(max-width:700px){.sku-summary{gap:8px}.sku-summary>div{padding:13px}.sku-summary strong{font-size:22px}.sku-detail{padding:17px}.sku-plan-grid{grid-template-columns:1fr}.sku-warehouse>div{grid-template-columns:1fr auto auto;gap:6px}}
