.erp-production-sync{margin:0 0 18px;padding:16px;border:1px solid #b8ccbb;border-radius:12px;background:#f7faf5;min-width:0}
.erp-production-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:13px}.erp-production-heading h3{margin:2px 0 4px;font-size:20px}.erp-production-heading p{margin:0;color:#5c7066;font-size:13px}.erp-production-heading button{flex:none}
.erp-production-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:10px 0}.erp-production-status-grid span{padding:9px 10px;border:1px solid #d4e0d3;border-radius:8px;background:#fff}.erp-production-status-grid small,.erp-production-status-grid strong{display:block}.erp-production-status-grid small{font-size:11px;color:#687c71}.erp-production-status-grid strong{margin-top:2px;font-size:18px;color:#244b3d}
.erp-production-times{display:flex;flex-wrap:wrap;gap:5px 13px;margin:6px 0 12px;color:#5d7167;font-size:11px}.erp-production-times .failed,.erp-production-error{color:#a23d34}
.erp-production-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}.erp-production-controls label{display:grid;gap:3px;flex:1 1 280px;margin:0}.erp-production-controls label span{font-size:11px;color:#607369}.erp-production-controls input{width:100%;min-height:38px;box-sizing:border-box}.erp-production-controls>span{margin-left:auto;font-size:12px;color:#66786f}
.erp-production-tabs{display:flex;gap:7px;margin:12px 0 4px}.erp-production-tabs button{border:1px solid #bbccbc;background:#fff;color:#315447}.erp-production-tabs button.active{background:#244f40;color:#fff;border-color:#244f40}
.erp-production-orders{display:grid;gap:8px}.erp-production-order{border:1px solid #d1ddd0;border-radius:9px;background:#fff;overflow:hidden}.erp-production-order>summary{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1.5fr) minmax(90px,.5fr) auto;align-items:center;gap:10px;padding:11px 13px;cursor:pointer;list-style:none}.erp-production-order>summary::-webkit-details-marker{display:none}.erp-production-order>summary>span small,.erp-production-order>summary>span strong{display:block}.erp-production-order>summary>span small{font-size:10px;color:#738279}.erp-production-order>summary>span strong{font-size:13px;overflow-wrap:anywhere}.erp-production-mapped,.erp-production-pending,.erp-production-conflict{padding:4px 7px;border-radius:5px;font-size:11px;white-space:nowrap}.erp-production-mapped{background:#e4f2e8;color:#286044}.erp-production-pending{background:#f4edda;color:#805f19}.erp-production-conflict{background:#fae5e2;color:#9b3f36}
.erp-production-order-meta{display:flex;flex-wrap:wrap;gap:5px 16px;padding:9px 13px;background:#f3f7f2;color:#5c6f65;font-size:11px}.erp-production-lines{padding:9px 13px 13px}.erp-production-line{display:grid;grid-template-columns:minmax(180px,1.7fr) repeat(5,minmax(80px,.65fr));gap:8px;align-items:center;padding:8px 0;border-bottom:1px dashed #dbe3da;font-size:12px}.erp-production-line:last-child{border-bottom:0}.erp-production-line.heading{color:#66786e;font-size:10px;font-weight:700}.erp-production-line span{min-width:0;overflow-wrap:anywhere}.erp-production-line strong,.erp-production-line small{display:block}.erp-production-line small{margin-top:2px;color:#718078;font-size:10px}.erp-production-empty,.erp-production-no-lines{padding:16px;border:1px dashed #cbd7ca;border-radius:8px;color:#64776d}.erp-production-empty strong,.erp-production-empty small{display:block}.erp-production-empty small{margin-top:4px}
.erp-progress-products{display:grid;gap:8px}.erp-progress-product{border:1px solid #d1ddd0;border-radius:9px;background:#fff;overflow:hidden}.erp-progress-product>summary{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(110px,.7fr) minmax(120px,.8fr) minmax(90px,.5fr);gap:10px;padding:11px 13px;cursor:pointer;list-style:none}.erp-progress-product>summary::-webkit-details-marker{display:none}.erp-progress-product>summary small,.erp-progress-product>summary strong{display:block}.erp-progress-product>summary small{font-size:10px;color:#738279}.erp-progress-section{padding:10px 13px}.erp-progress-section h4,.erp-progress-facts h4{margin:0 0 7px;font-size:13px}.erp-progress-plan-wrap{overflow-x:auto}.erp-progress-plan{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1.2fr) repeat(3,minmax(90px,.6fr));min-width:680px;gap:8px;padding:7px 0;border-bottom:1px dashed #dbe3da;font-size:11px}.erp-progress-plan.heading{color:#66786e;font-size:10px;font-weight:700}.erp-progress-plan strong,.erp-progress-plan small{display:block}.erp-progress-plan small{color:#718078}.erp-progress-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 13px 13px}.erp-progress-facts section{padding:10px;border:1px solid #dbe4da;border-radius:7px;background:#f8faf7}.erp-progress-fact-list{display:grid;gap:5px;margin:0;padding:0;list-style:none}.erp-progress-fact-list li{display:grid;grid-template-columns:auto auto 1fr;gap:6px;align-items:baseline;font-size:11px}.erp-progress-fact-list small{color:#718078;overflow-wrap:anywhere}
@media(max-width:860px){.erp-production-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-production-order>summary,.erp-progress-product>summary{grid-template-columns:1fr 1fr}.erp-production-lines{overflow-x:auto}.erp-production-line{min-width:720px}.erp-progress-facts{grid-template-columns:1fr}}
@media(max-width:430px){.erp-production-sync{padding:11px}.erp-production-heading{display:grid}.erp-production-heading button{width:100%}.erp-production-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-production-tabs{display:grid;grid-template-columns:1fr 1fr}.erp-production-order>summary,.erp-progress-product>summary{grid-template-columns:1fr}.erp-production-order>summary>span.erp-production-mapped,.erp-production-order>summary>span.erp-production-pending,.erp-production-order>summary>span.erp-production-conflict{justify-self:start}.erp-production-lines{padding:7px 10px 10px}.erp-production-controls>*{flex:1 1 auto}.erp-production-controls label{flex-basis:100%}.erp-production-controls>span{flex-basis:100%;margin-left:0}}
