.cut-color-row{min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0}.cut-color-row legend{font-weight:700}.cut-color-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.cut-color-tools label{max-width:200px}.cut-color-row .sales-size-cell input[type=checkbox]{width:auto}.cut-color-row [data-cut-message]{color:#922}.cut-color-row .sales-size-grid{margin-top:8px}.cut-color-row small{display:block}
.production-orders{display:grid;gap:14px}.production-order{border:2px solid #8999ab;border-radius:10px;padding:14px;background:#fff}.production-order header,.production-pending{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.production-order header{margin-bottom:12px}.production-order header strong{font-size:1.1rem}.production-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}.production-stage{display:flex;flex-direction:column;gap:9px;border:2px solid #657a93;padding:12px;border-radius:8px;background:#f7faff;min-width:0}.production-stage bdi{font-weight:700;font-size:1.15rem}.production-stage button{white-space:normal}.production-pending{border:2px solid #b78c36;background:#fff9e9;border-radius:8px;padding:10px;margin:8px 0}.production-document details{border:1px solid #9ba9b9;border-radius:6px;margin:10px 0;padding:10px}.production-document summary{cursor:pointer;font-weight:700;line-height:1.8}.production-table table{table-layout:fixed;width:100%;min-width:0!important}.production-table th,.production-table td{border:2px solid #8999ab;white-space:normal;overflow-wrap:anywhere;padding:9px}.production-table small{display:block}.production-table input{width:100%;min-width:0;text-align:center}.production-table th:first-child{width:40%}.production-table .table-scroll{overflow:visible}.production-table input[type=number]{direction:ltr}.production-workspace .pager{margin-top:12px}@media print{[data-production]{display:none!important}.production-stage,.production-pending{break-inside:avoid;background:white}.production-document details{display:block}}
.production-order-title{flex:1 1 22rem;min-width:0;overflow-wrap:anywhere;line-height:1.7}
.set-component-name{display:block;color:#195d70;font-size:.95em;margin-top:4px}.production-set-balances{border:2px solid #2879b8;border-radius:8px;padding:10px;margin-block:12px}.production-component-history{margin-block:14px}.production-stage bdi{white-space:normal}
.production-component-edit{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-block:14px}.production-component-edit article{min-width:0;border:2px solid #8999ab;border-radius:8px;padding:12px}.production-component-edit small{display:block;margin-top:6px}.production-component-edit input{width:100%;text-align:center;min-width:100px}.production-component-edit p{margin-block:10px}.production-component-edit label{display:grid;gap:7px}
.production-reversals{border:2px solid #ad762b;border-radius:8px;padding:12px;margin:14px 0;min-width:0;overflow-wrap:anywhere}.production-reversals>p{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.production-reversals button{white-space:normal}.sales-size-grid [data-reverse-line]{min-width:0;max-width:100%}
.production-correction{min-width:0;border:2px solid #ad762b;border-radius:8px;background:#fffbf2;padding:12px;margin:10px 0;overflow-wrap:anywhere}.production-correction select{max-width:100%}.production-correction [hidden]{display:none!important}
.work-order-notes{border:2px solid #b98526;border-radius:8px;background:#fff9e9;padding:10px 12px;margin:8px 0;color:#503a15;min-width:0;overflow-wrap:anywhere}
.work-order-notes p{margin:5px 0;line-height:1.7;color:inherit}.work-order-notes span{white-space:pre-wrap}
@page productionOrderSheet{size:A4 portrait;margin:10mm}
@page workOrderSheet{size:A4 landscape;margin:10mm}
@media print{
 html:has(.printing-account .production-print,.printing-account .work-order-print),body.printing-account:has(.production-print,.work-order-print){background:#fff!important}
 body.printing-account .work-order-print{page:workOrderSheet}
 body.printing-account :is(.production-print,.work-order-print){font-size:12pt;line-height:1.5;color:#111}
 body.printing-account :is(.production-print,.work-order-print) h1{font-size:20pt}
 body.printing-account :is(.production-print,.work-order-print) h2{font-size:17pt;break-after:avoid}
 body.printing-account :is(.production-print,.work-order-print) h3{font-size:14pt;break-after:avoid}
 body.printing-account :is(.production-print,.work-order-print) :is(p,summary,.hint,.notice,.work-order-notes){font-size:12pt;color:#111}
 body.printing-account :is(.production-print,.work-order-print) :is(table,th,td){font-size:11pt!important;line-height:1.45;min-width:0!important;white-space:normal!important}
 body.printing-account :is(.production-print,.work-order-print) :is(th,td){padding:7px 6px;border:1px solid #475569}
 body.printing-account :is(.production-print,.work-order-print) :is(small,.set-component-name){font-size:10pt;color:#111}
 body.printing-account :is(.production-print,.work-order-print) .table-scroll{overflow:visible}
 body.printing-account :is(.production-print,.work-order-print) thead{display:table-header-group}
 body.printing-account :is(.production-print,.work-order-print) tr{break-inside:avoid}
 body.printing-account :is(.production-print,.work-order-print) .production-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.printing-account :is(.production-print,.work-order-print) .production-stage{padding:8px}
 body.printing-account .work-order-print .cut-plan-document table{table-layout:auto;width:100%;min-width:0!important}
}
@media print{.production-print{page:productionOrderSheet}.production-print .work-order-notes{font-size:10pt}.production-print summary{list-style:none}}
@media print{.work-order-notes{border:2px solid #111;background:#fff;color:#111}.work-order-notes>strong{break-after:avoid}.production-print h2,.production-print h3,.production-print summary{break-after:avoid}.production-print .production-document details{overflow:visible}.production-print .production-stage{padding:5px}.production-print .production-stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}}
.order-overviews{display:grid;gap:.7rem}
.weight-comparison{min-width:0;margin-block:18px;padding:12px;border:2px solid #8999ab;border-radius:8px;background:#fff}.weight-comparison table{min-width:0!important;width:100%;table-layout:fixed}.weight-comparison th,.weight-comparison td{white-space:normal;overflow-wrap:anywhere;border:1px solid #a3afba;padding:8px 5px;text-align:center}.weight-comparison small{display:block;margin-top:4px}.weight-breakdown{margin-bottom:20px}.weight-breakdown th:first-child{width:32%}.weight-breakdown th:nth-child(2){width:10%}.weight-breakdown td:first-child{text-align:right}.weight-comparison h3{margin-top:8px}@media(max-width:600px){.weight-comparison{padding:6px}.weight-comparison th,.weight-comparison td{font-size:11px;padding:6px 3px}}@media print{.weight-comparison{border-color:#555;padding:8px;font-size:9pt}.weight-comparison tr{break-inside:avoid}.weight-comparison .table-scroll{overflow:visible}.weight-comparison thead{display:table-header-group}}
.order-overview{display:grid;gap:.55rem;min-width:0;padding:.85rem 1rem;border:1px solid #b5c1c9;border-radius:.65rem;background:#fff}
.weight-cell-label{display:none}.weight-cell-value bdi{white-space:nowrap}@media screen and (max-width:640px){.weight-comparison .table-scroll{overflow:visible}.weight-comparison table,.weight-comparison tbody{display:block}.weight-comparison thead{display:none}.weight-comparison tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #8999ab;border-radius:6px;margin:10px 0;overflow:hidden}.weight-comparison td{display:block;min-width:0;padding:8px;font-size:13px;overflow-wrap:break-word;border:0;background:#fff!important}.weight-comparison td:first-child{grid-column:1/-1;text-align:right;background:#eef4f9!important}.weight-cell-label{display:block;font-weight:700;color:#53677b;font-size:11px;margin-bottom:5px}.weight-cell-value{display:block}.weight-breakdown td:last-child{grid-column:1/-1}}
.order-overview header,.order-overview-meta,.order-stage-labels{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem 1rem}
.order-overview header button:first-child{font-weight:750;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start}
.order-overview-meta,.order-overview small{color:#465a67;font-size:.85rem}
.order-stage-bar{display:block;width:100%;height:.75rem;border-radius:1rem;background:#edf0f2}
.order-stage-labels{padding:0;margin:0;list-style:none;font-size:.88rem}
.order-stage-labels li{display:inline-flex;align-items:center;gap:.28rem}
.order-stage-labels strong{margin-inline-start:.12rem}
.order-stage-labels i{width:.65rem;height:.65rem;border-radius:2px;background:var(--stage-color)}
.order-stage-bar rect{fill:var(--stage-color)}
.order-stage-control{--stage-color:#e6ae28}
.order-stage-production{--stage-color:#8755b0}
.order-stage-packing{--stage-color:#2879b8}
.order-stage-finished{--stage-color:#268459}
.order-overview order-delivery-alert:not([hidden]){display:inline-block;margin-inline-start:auto;padding:.25rem .65rem;border-left:4px solid #b3212c;border-radius:.3rem;background:#fff0ef;color:#891c26;font-size:.84rem;font-weight:700}
