.production-layout main{min-width:0}.production-layout .page-head{margin-bottom:16px;align-items:center;min-height:58px}.production-layout .page-head h1{font-size:1.3rem;margin:3px 0}.production-layout .page-head p{font-size:.8rem;margin:4px 0}.production-layout .eyebrow{font-size:.62rem;letter-spacing:.1em}.production-layout .topbar{min-height:44px;height:auto;margin-bottom:12px}.production-layout .panel-head{padding:14px 18px}.production-layout .panel-head h2{font-size:.98rem}.production-layout .panel-head p{font-size:.75rem;margin:5px 0}.shipment-summary th,.shipment-summary td,.production-matrix th,.production-matrix td,.production-stock th,.production-stock td{padding:13px 16px;font-size:.8rem;vertical-align:middle}.shipment-summary th:first-child{width:145px}.shipment-summary th:nth-child(2){width:170px}.shipment-summary th:last-child{width:240px}.production-note{display:block;min-height:55px;width:100%;max-width:440px;text-align:left;white-space:pre-wrap;font-size:.8rem;background:#fbfcf9;overflow-wrap:anywhere;border:1px solid #d5dfcf}.production-meter{display:flex;gap:12px;align-items:center}.production-meter strong{font-size:1rem;min-width:42px}.production-meter progress{width:100%;height:15px;accent-color:#326e54;border:0;border-radius:4px;overflow:hidden;background:#e7ede4}.production-meter progress::-webkit-progress-bar{background:#e7ede4}.production-meter progress::-webkit-progress-value{background:#326e54}.production-footnote{padding:0 18px 12px;font-size:.72rem;color:#617362}.production-group-select{min-width:240px;max-width:460px;font-size:.75rem}.production-group-select select{min-width:0;width:100%;font-size:.8rem}.production-matrix{min-width:780px;table-layout:fixed}.production-matrix th:first-child{width:25%}.production-matrix th:nth-child(2){width:19%}.production-matrix td{overflow-wrap:anywhere}.production-matrix .order-link{white-space:normal;text-align:left;line-height:1.5}.production-matrix small{font-size:.72rem;line-height:1.6}.production-row-note{white-space:pre-wrap;max-height:72px;overflow:auto}.production-stage{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;min-height:58px;padding:8px 6px;border-radius:7px;font-size:.8rem;background:#fafbf8;border:1px solid #dce4d7;color:#586a5a}.production-stage small{display:block;font-size:.72rem}.production-stage.complete{background:#e8f3e8;border-color:#a6c8a4;color:#245b36}.production-stage.working{background:#eef4fb;border-color:#b1c9df;color:#295c86}.production-stage.warning{background:#fff6e2;border-color:#dec78e;color:#795e1a}.production-stage.neutral{color:#8a9487;border-style:dashed}.stage-name{display:none}.production-alert{color:#974630}.production-stage-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}.production-stage-strip .stage-name{display:block}.production-legacy{margin:16px 0}.production-legacy>summary{padding:14px;font-size:.8rem;cursor:pointer}.production-stock table{min-width:680px}.production-stock .panel-head button{font-size:.8rem}.production-orders{scroll-margin-top:24px}
@media(min-width:781px){.production-layout .sidebar{width:190px;padding-left:14px;padding-right:14px}.production-layout main{margin-left:190px;padding-left:22px;padding-right:22px}.production-layout .brand{font-size:1.2rem}.production-layout .nav-item{font-size:.82rem;padding-left:12px;padding-right:10px}.production-layout .brand small{font-size:.65rem}}
@media(max-width:780px){.production-layout .page-head{min-height:0;display:flex;flex-wrap:wrap;margin-bottom:12px}.production-layout .page-head h1{font-size:1.2rem}.production-layout .topbar{margin-bottom:8px}.production-layout .panel-head{padding:12px}.production-group-select{min-width:0;max-width:100%;width:100%}.production-group-select select{font-size:16px}.production-note{min-height:44px;max-width:none;padding:8px}.production-meter{gap:8px}.production-meter strong{font-size:.9rem}.shipment-summary .mobile-stack td:last-child{min-height:90px}.production-matrix.mobile-stack tbody{padding:0 10px 10px}.production-matrix.mobile-stack tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:7px;gap:0}.production-matrix.mobile-stack td{display:block;width:auto;min-height:0;padding:7px 9px;border:0;grid-column:auto}.production-matrix.mobile-stack td:before{display:none}.production-matrix.mobile-stack td:nth-child(1),.production-matrix.mobile-stack td:nth-child(2){grid-column:1/-1}.production-matrix.mobile-stack td:nth-child(2){display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.production-matrix.mobile-stack td:nth-child(2) .production-row-note{width:100%}.production-matrix.mobile-stack td[colspan]{grid-column:1/-1;padding:20px}.production-matrix .stage-name{display:block;font-size:.72rem}.production-stage{min-height:72px}.production-stage-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.production-stock .mobile-stack td{padding-left:112px}.production-footnote{padding:0 12px 12px}.production-orders{scroll-margin-top:75px}}

@media(max-width:780px){.production-matrix .order-link,.production-matrix .ghost{min-height:44px}}

.production-filters{display:flex;flex-wrap:wrap;gap:10px;max-width:660px}.production-filters .production-group-select{flex:1;min-width:200px}.production-filter-note{width:100%;font-size:.75rem}.production-matrix td.production-stage-cell{vertical-align:top;padding-top:16px}.production-matrix .production-stage{min-height:68px;box-sizing:border-box}.extra-order-item{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:end;margin:12px 0}.extra-order-item select{width:100%}@media(max-width:780px){.production-filters{width:100%;max-width:none}.production-filters .production-group-select{min-width:0;flex-basis:100%}.extra-order-item{grid-template-columns:minmax(0,1fr) 90px}.extra-order-item button{grid-column:1/-1}.production-matrix.mobile-stack td.production-stage-cell{padding-top:7px}}

.production-order-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-bottom:1px solid #e6eae2;font-size:.8rem}.customer-order-item{padding:16px;border:1px solid #dce4d7;border-radius:8px;margin-bottom:14px}.customer-order-item select{width:100%}.customer-order-item .remove-customer-item{margin-top:8px}@media(max-width:780px){.production-order-actions{padding:12px}.production-order-actions .primary{min-height:44px}.customer-order-item{padding:12px}.customer-order-item input,.customer-order-item select,.customer-order-item textarea{font-size:16px}}

/* Reuse the catalog photo viewer beside the product identity on every device. */
.production-product-identity{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:6px}
.production-product-photo{flex:0 0 64px;min-width:0}
.production-matrix .production-product-photo .photo-thumb,.production-matrix .production-product-photo .photo-empty{box-sizing:border-box;width:64px;min-height:74px;padding:4px;gap:2px}
.production-matrix .production-product-photo img{width:54px;height:52px;object-fit:contain}
.production-matrix .production-product-photo span{font-size:.625rem;line-height:1.3}
.production-matrix .production-product-name{flex:1;min-width:0;max-width:100%;padding:0;overflow-wrap:anywhere}
@media(max-width:780px){.production-product-identity{gap:12px}.production-matrix.mobile-stack .production-product-name{min-height:44px;align-self:center}.production-product-photo .photo-thumb{touch-action:manipulation}}

/* Keep mobile summary labels in normal flow so longer values cannot overlap them. */
@media(max-width:780px){
 .shipment-summary .mobile-stack td{display:block;position:static;padding:12px;min-height:0;line-height:1.5}
 .shipment-summary .mobile-stack td:before{position:static;display:block;width:auto;margin-bottom:6px;line-height:1.4}
 .shipment-summary .mobile-stack td:last-child{min-height:0}
 .shipment-summary .mobile-stack td[colspan]:before{display:none}
 .shipment-summary .production-meter{margin-bottom:10px}
 .shipment-summary .production-meter progress{flex:1;min-width:0}
 .shipment-summary .actions{flex-wrap:wrap;gap:8px}
 .shipment-summary .panel-head{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .shipment-summary .panel-head>.actions{width:100%;justify-content:space-between}
 .shipment-summary .mobile-stack .actions button{min-height:44px}
}

/* Keep add/remove controls adjacent and touch-friendly. */
.production-item-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.production-order-actions>span{overflow-wrap:anywhere}
@media(max-width:780px){.production-item-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.production-item-actions button{min-width:0;min-height:44px;padding:8px;white-space:normal}}
