.v4-production-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 180px auto;gap:12px;align-items:center;margin:18px 0;padding:14px;background:#fff;border:1px solid #e7ebf2;border-radius:16px}.v4-production-search{position:relative}.v4-production-search span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8a95a8}.v4-production-search input{width:100%;padding-left:40px}.v4-production-tabs{display:flex;gap:4px;padding:4px;background:#f1f4f8;border-radius:12px}.v4-production-tabs button{border:0;background:transparent;padding:9px 14px;border-radius:9px;color:#647087;font-weight:600}.v4-production-tabs button.active{background:#fff;color:#246bfd;box-shadow:0 2px 8px rgba(25,43,76,.08)}
.v4-production-list{overflow:auto;border:1px solid #e7ebf2;border-radius:18px;background:#fff}.v4-production-list table{width:100%;border-collapse:collapse}.v4-production-list th{padding:12px 14px;background:#f7f9fc;color:#7c879b;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}.v4-production-list td{padding:15px 14px;border-top:1px solid #edf0f5;vertical-align:middle}.v4-production-list tbody tr{cursor:pointer;transition:.18s ease}.v4-production-list tbody tr:hover{background:#f8fbff}.v4-production-list small{display:block;margin-top:4px;color:#8a95a8}.v4-production-list .num{text-align:right;font-variant-numeric:tabular-nums}.v4-production-list .row-actions{display:flex;gap:6px;justify-content:flex-end}.v4-production-product{display:flex;align-items:center;gap:10px;min-width:180px}.v4-production-product img,.v4-production-product .placeholder{width:42px;height:42px;border-radius:10px;object-fit:cover;background:#eef3fb;display:grid;place-items:center;color:#6580aa;font-size:12px}.v4-progress{min-width:105px}.v4-progress div{height:5px;background:#edf1f6;border-radius:6px;overflow:hidden;margin-top:7px}.v4-progress i{display:block;height:100%;background:#246bfd;border-radius:inherit}
.production-sheet-v4{padding-bottom:36px}.production-sheet-v4 .back-link{margin-bottom:14px}.production-sheet-head-v4{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:24px 26px;background:#fff;border:1px solid #e5eaf2;border-radius:20px}.production-sheet-title-v4{display:flex;gap:16px;align-items:center}.production-sheet-mark-v4{width:54px;height:54px;border-radius:16px;background:#eaf1ff;color:#246bfd;display:grid;place-items:center;font-weight:800}.production-sheet-title-v4 small{color:#7c879b}.production-sheet-title-v4 h1{margin:3px 0 5px;font-size:28px;color:#15233a}.production-sheet-title-v4 p{margin:0;color:#69758b}.production-sheet-actions-v4{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.production-lock-v4{display:flex;justify-content:space-between;align-items:center;margin:14px 0;padding:11px 15px;border:1px solid #dfe7f2;border-radius:12px;background:#f7faff;color:#53627a}.production-lock-v4.editing{background:#fff8eb;border-color:#f5dca9;color:#8a5b13}
.production-block-v4{margin-top:14px;background:#fff;border:1px solid #e5eaf2;border-radius:18px;overflow:hidden}.production-block-head-v4{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid #e9edf3}.production-block-head-v4 h2{margin:0;font-size:17px;color:#18263d}.production-block-head-v4 span{font-size:13px;color:#8490a3}.production-meta-grid-v4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding:19px 20px}.production-meta-grid-v4 label,.production-requirements-v4 label{display:flex;flex-direction:column;gap:7px;color:#657187;font-size:13px}.production-meta-grid-v4 label.wide{grid-column:span 2}.production-meta-grid-v4 input,.production-meta-grid-v4 select,.production-requirements-v4 textarea{width:100%;min-height:42px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;padding:9px 11px;color:#1d2a3f}.production-meta-grid-v4 input:disabled,.production-meta-grid-v4 select:disabled,.production-requirements-v4 textarea:disabled{border-color:transparent;background:#f7f9fc;color:#28364c;opacity:1}.production-entry-wrap-v4{overflow:auto}.production-entry-table-v4{width:100%;min-width:1120px;border-collapse:collapse}.production-entry-table-v4 th{padding:12px 10px;background:#f6f8fb;color:#758196;font-size:12px;text-align:left;white-space:nowrap}.production-entry-table-v4 td{padding:11px 10px;border-top:1px solid #edf0f5;vertical-align:middle}.production-entry-table-v4 input{width:100%;min-width:72px;border:1px solid #dfe5ee;border-radius:8px;padding:8px 9px;background:#fff}.production-entry-table-v4 input:disabled{border-color:transparent;background:transparent;color:#223148;opacity:1}.production-entry-table-v4 .line-photo{width:50px;height:50px;border-radius:10px;object-fit:cover;background:#edf2f8}.production-entry-table-v4 .line-photo-empty{display:grid;place-items:center;color:#8a96a8;font-size:12px}.production-entry-table-v4 .num{text-align:right}.production-entry-table-v4 tfoot td{background:#f8faff;font-weight:700}.production-entry-table-v4 .req{min-width:190px}.production-requirements-v4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:19px 20px}.production-requirements-v4 textarea{min-height:92px;resize:vertical}.production-flow-v4{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:18px 20px}.production-flow-v4 button{position:relative;border:1px solid #dfe5ed;background:#fff;border-radius:12px;padding:12px 8px;color:#738095}.production-flow-v4 button.active{border-color:#246bfd;background:#edf4ff;color:#246bfd;font-weight:700}.production-flow-v4 button.done{border-color:#cce9dc;background:#f0faf5;color:#24815d}.production-flow-v4 button:disabled{cursor:default;opacity:1}.production-sheet-summary-v4{display:flex;justify-content:flex-end;gap:28px;padding:14px 20px;background:#f8faff;border-top:1px solid #e7ebf1}.production-sheet-summary-v4 span{color:#748096}.production-sheet-summary-v4 strong{margin-left:6px;color:#1c2b42;font-size:18px}
@media(max-width:1200px){.production-meta-grid-v4{grid-template-columns:repeat(2,minmax(0,1fr))}.production-requirements-v4{grid-template-columns:1fr}.v4-production-list{overflow:auto}.v4-production-list table{min-width:1050px}}@media(max-width:760px){.v4-production-toolbar{grid-template-columns:1fr}.production-sheet-head-v4{flex-direction:column}.production-sheet-actions-v4{justify-content:flex-start}.production-meta-grid-v4{grid-template-columns:1fr}.production-meta-grid-v4 label.wide{grid-column:auto}.production-flow-v4{grid-template-columns:1fr 1fr}.production-sheet-summary-v4{justify-content:flex-start;flex-wrap:wrap}}

/* 生产订单进度：阶段和数量分别显示，避免把完成数量误认成流程状态。 */
.production-workflow-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 12px}
.production-stage-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:3px 8px;min-height:104px;padding:17px 18px;text-align:left;background:#fff;border:1px solid #e5eaf2;border-radius:16px;color:#1c2b42;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.production-stage-card:hover{border-color:#a8c5ff;box-shadow:0 8px 24px rgba(41,91,171,.09);transform:translateY(-2px)}
.production-stage-card.active{border-color:#4080f8;background:#f2f7ff;box-shadow:inset 0 0 0 1px #4080f8}
.production-stage-card .stage-index{grid-column:1/-1;color:#a1adc0;font-size:11px;letter-spacing:.1em}
.production-stage-card .stage-name{font-size:15px;font-weight:700}.production-stage-card strong{grid-column:2;grid-row:2/4;font-size:28px;line-height:1;color:#1f66df}
.production-stage-card small{color:#7f8ba0;font-size:12px}
.production-attention-v4{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #e5eaf2;border-radius:14px;background:#fff}
.production-attention-v4 div{display:flex;gap:10px;align-items:baseline}.production-attention-v4 b{color:#172943}.production-attention-v4 span{font-size:12px;color:#8190a5}
.production-overdue-link{border:0;background:#f2f5fa;color:#66758b;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer}
.production-overdue-link.has-risk{background:#fff1ed;color:#bb513e}
.v4-production-toolbar{grid-template-columns:minmax(240px,1fr) 150px 150px auto;margin:12px 0}
.v4-production-toolbar select{min-width:0;width:100%}
.v4-production-toolbar select,.v4-production-search input{box-sizing:border-box;height:40px;border:1px solid #e2e5e9;border-radius:8px;background:#fff;color:#364152;font:inherit;font-size:13px;padding:0 12px;outline:none;transition:border-color .15s,box-shadow .15s}
.v4-production-search input{padding-left:36px}
.v4-production-toolbar select:focus,.v4-production-search input:focus,.production-date-filter:focus-within{border-color:#5894e8;box-shadow:0 0 0 3px #eaf2ff}
.v4-production-search input::placeholder{color:#89919c}
.v4-production-list tbody tr:hover{background:#f7faff}
.v4-production-list table{table-layout:auto}
.v4-production-list th{min-width:105px}.v4-production-list td{white-space:nowrap}.v4-production-list th:first-child{min-width:150px}
.v4-production-list td{padding:17px 14px}.v4-production-list td b,.v4-production-list td strong{display:block;color:#1c2c44;font-size:13px;line-height:1.45}.v4-production-list td strong{margin-top:7px;font-size:15px}
.v4-production-list .production-order-cell>b{color:#246bfd}.v4-production-list small{line-height:1.4;overflow-wrap:anywhere}
.production-list-product{display:flex;align-items:center;gap:8px;margin-top:5px}.production-list-product img{width:34px;height:34px;flex:none;border:1px solid #e7ebf2;border-radius:7px;object-fit:cover}.production-list-product small{margin-top:0}
.production-entry-table-v4 .line-photo{width:72px;height:72px;object-fit:contain}
.production-print-sheet .doc-table img{max-width:96px;max-height:88px}
.production-stage-rail{display:flex;gap:4px;margin-top:10px;max-width:154px}.production-stage-rail span{height:6px;flex:1;border-radius:8px;background:#e6ebf2}.production-stage-rail span.done{background:#91b7f8}.production-stage-rail span.current{background:#246bfd}
.v4-production-list .production-next-step{color:#5d6b7e;margin-top:8px}
.production-progress-cell .v4-progress{max-width:145px;margin-top:9px}.production-progress-cell .v4-progress div{margin:0}.production-progress-cell small{font-size:11px}
.production-progress-cell .production-check-needed{color:#bc4738;font-weight:700}
.deadline-overdue{color:#bc4738!important;font-weight:700}.deadline-soon{color:#bb721f!important;font-weight:700}.deadline-normal{color:#647c95!important}.deadline-done{color:#358464!important}.deadline-muted{color:#8a95a8!important}
.v4-production-list .row-actions{justify-content:flex-start;flex-wrap:wrap}.v4-production-list .row-actions button{white-space:nowrap}
.production-list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;color:#75839a;font-size:13px}.production-list-footer div{display:flex;gap:8px}.production-list-footer button:disabled{opacity:.45;cursor:default}
.production-overview-v4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:14px;overflow:hidden;border:1px solid #e5eaf2;border-radius:18px;background:#fff}
.production-overview-v4>div{display:flex;flex-direction:column;gap:7px;min-width:0;padding:18px 20px;border-right:1px solid #edf0f5}.production-overview-v4>div:last-child{border-right:0}
.production-overview-v4 small{color:#8190a4;font-size:12px}.production-overview-v4 strong{color:#1b2b43;font-size:17px;line-height:1.3;overflow-wrap:anywhere}.production-overview-v4 span:not(.production-stage-rail span){color:#76859a;font-size:12px}.production-overview-v4 .production-stage-rail{margin-top:3px}
.production-overview-v4 .production-check-needed{color:#bc4738!important;font-weight:700}
.production-quick-qty-list{display:grid;gap:8px;max-height:55vh;overflow:auto}.production-quick-qty-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(125px,.45fr) minmax(110px,.35fr);align-items:center;gap:12px;padding:10px 12px;border:1px solid #e5eaf2;border-radius:10px;background:#fff}.production-quick-qty-row>div{display:grid;gap:4px}.production-quick-qty-row b{color:#1c2c44}.production-quick-qty-row small{color:#7d899d;font-size:12px}.production-quick-qty-row label{display:grid;gap:5px;color:#657187;font-size:12px}.production-quick-qty-row input{box-sizing:border-box;width:100%;height:36px;border:1px solid #dfe5ee;border-radius:8px;padding:0 9px;color:#24334a}@media(max-width:650px){.production-quick-qty-row{grid-template-columns:1fr 1fr}.production-quick-qty-row>div{grid-column:1/-1}}
@media(max-width:1300px){.production-workflow-summary{gap:8px}.production-stage-card{padding:14px}.v4-production-list td{padding:15px 10px}.v4-production-list th{padding:12px 10px}}
@media(max-width:1050px){.v4-production-toolbar{grid-template-columns:minmax(240px,1fr) 140px 140px}.v4-production-tabs{grid-column:1/-1;justify-self:start}.v4-production-list table{min-width:870px}.production-overview-v4{grid-template-columns:repeat(2,minmax(0,1fr))}.production-overview-v4>div:nth-child(2){border-right:0}.production-overview-v4>div:nth-child(-n+2){border-bottom:1px solid #edf0f5}}
@media(max-width:760px){.production-workflow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.production-attention-v4,.production-attention-v4 div{align-items:flex-start;flex-direction:column}.v4-production-toolbar{grid-template-columns:1fr 1fr}.v4-production-search,.v4-production-tabs{grid-column:1/-1}.production-overview-v4{grid-template-columns:1fr}.production-overview-v4>div{border-right:0;border-bottom:1px solid #edf0f5}.production-overview-v4>div:last-child{border-bottom:0}}
.v4-production-toolbar{grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(135px,.65fr));}.v4-production-tabs{grid-column:1/-1;flex-wrap:wrap;align-items:center}.v4-production-tabs .production-columns-button{margin-left:auto;background:#fff;border:1px solid #dfe5ee;color:#53627a}.production-date-filter{min-height:40px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;color:#758196;font-size:12px;white-space:nowrap}.production-date-filter input{width:138px;min-width:0;border:0;outline:0;background:transparent;color:#26354b;font:inherit;font-size:12px}.v4-production-list td{vertical-align:middle}.v4-production-list td .v4-progress{max-width:150px}.production-list-image{width:42px;height:42px;object-fit:cover;border-radius:8px;background:#f1f3f5}.production-no-image{color:#9aa3b2;font-size:12px}.v4-production-list table{min-width:900px}@media(max-width:1050px){.v4-production-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.v4-production-search,.v4-production-tabs{grid-column:1/-1}.production-date-filter input{width:100%;flex:1}}@media(max-width:760px){.v4-production-toolbar{grid-template-columns:1fr}.v4-production-search,.v4-production-tabs{grid-column:1}.v4-production-tabs{width:100%}.v4-production-tabs .production-columns-button{margin-left:0}.production-date-filter input{width:100%;flex:1}.sales-filter-result{align-items:flex-start;flex-direction:column}}
@media(min-width:481px) and (max-width:760px){.v4-production-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.v4-production-search,.v4-production-tabs{grid-column:1/-1}}
