*{box-sizing:border-box} :root{font-family:Segoe UI,Arial,sans-serif;color:#172e24;background:#f1f4f5;font-size:16px} body{margin:0} button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #ccd5d1;border-radius:7px;padding:10px 15px;background:white;color:#173527;font-weight:600}button:hover{background:#edf3ed}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#234633;color:white;border-color:#234633}button.primary:hover{background:#316244}button.small{padding:7px 11px;font-size:14px}a{color:#1f6140;text-underline-offset:3px}header{min-height:76px;background:#173527;color:white;display:flex;align-items:center;gap:28px;padding:16px 36px}header a{color:white;text-decoration:none;font-size:14px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;letter-spacing:1px}.brand b{font-weight:400;opacity:.72;font-size:15px}.brand-icon{background:#d4f16e;color:#173527;border-radius:7px;width:36px;height:36px;display:grid;place-content:center}.mode{margin-left:auto;font-size:12px;letter-spacing:1px;color:#c5dabd;border:1px solid #4a6654;padding:7px 11px;border-radius:4px}main{max-width:1720px;margin:auto;padding:30px 36px 16px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#53695e;margin:0 0 8px}h1{font-size:34px;letter-spacing:-1px;margin:0}h2{font-size:21px;margin:0}h3{font-size:17px;margin:0}.muted{color:#586a62;margin:7px 0 0;line-height:1.5}.actions{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.operator{font-size:13px;color:#52655b;display:grid;gap:6px}input,select,textarea{border:1px solid #cbd6d0;border-radius:6px;padding:10px 11px;background:white;color:#173527;width:100%}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #aad781;outline-offset:2px}input[type=checkbox]{width:18px;height:18px;accent-color:#2e6445}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.metric{background:white;border:1px solid #dce3e0;border-radius:9px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between}.metric span{font-size:14px;color:#5b6b63}.metric strong{font-size:32px;font-weight:650}.metric:first-child{background:#e5ecd8;border-color:#d5e0c2}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:start}.orders-pane{background:white;border:1px solid #dce3e0;border-radius:9px;padding:19px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.count{background:#ebf1ed;padding:3px 8px;font-size:13px;border-radius:4px}.orders-pane input{font-size:14px;margin-bottom:15px}.order-card{width:100%;text-align:left;padding:15px;margin:0 0 9px;border:1px solid #dce3e0;border-left:3px solid transparent;font-weight:400;display:block}.order-card.active{background:#edf3e6;border-color:#c6d4bb;border-left:3px solid #4d7436}.order-card strong{display:block;font-size:15px;margin-bottom:5px}.order-card p{font-size:13px;margin:0 0 10px;line-height:1.4;color:#53645b}.order-card .row{display:flex;justify-content:space-between;gap:8px;align-items:center}.badge{display:inline-block;font-size:12px;font-weight:600;padding:4px 7px;border-radius:4px;background:#eff2ef;color:#52625a}.badge.review{background:#fff2d3;color:#7c5700}.badge.production{background:#e4edf8;color:#305e85}.badge.released{background:#dfeddd;color:#32603b}.badge.danger{background:#ffebe6;color:#9c3528}.folder-status{margin-top:20px;padding-top:18px;border-top:1px solid #e0e6e2;font-size:12px;color:#61716a}.folder-status p{overflow-wrap:anywhere;line-height:1.5}.detail{background:white;border:1px solid #dce3e0;border-radius:9px;min-height:580px;padding:26px}.detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.detail-head h2{font-size:26px}.detail-head p{font-size:15px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.chip{background:#f1f4f2;padding:7px 10px;border-radius:5px;font-size:13px}.flow{display:flex;flex-wrap:wrap;padding:22px 0 25px;gap:6px;border-top:1px solid #e0e6e2;border-bottom:1px solid #e0e6e2}.flow-step{text-align:center;position:relative;flex:1 1 90px;min-width:80px}.flow-circle{position:relative;z-index:1;display:grid;place-content:center;background:#edf1ee;color:#809185;border-radius:50%;width:35px;height:35px;margin:auto auto 9px;font-size:13px;border:1px solid #d8e1da}.flow-step.done .flow-circle{background:#3c704d;color:white;border-color:#3c704d}.flow-step.active .flow-circle{background:#d4ef95;border-color:#b1d674;color:#183925}.flow-step b{font-size:12px;font-weight:600;display:block;line-height:1.3}.flow-step small{display:block;font-size:11px;color:#647368;margin-top:5px}.notice{background:#fff8e6;border:1px solid #eee0b4;border-radius:6px;padding:14px 16px;font-size:14px;line-height:1.5;margin:20px 0}.notice.blue{background:#edf4f7;border-color:#d8e5eb}.notice.green{background:#edf4e7;border-color:#d6e3ca}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0 15px}.tabs{display:flex;gap:24px;border-bottom:1px solid #dce3e0;margin-top:20px;overflow:auto}.tabs button{border:0;border-radius:0;background:none;padding:13px 0;color:#68786e;font-size:14px;white-space:nowrap}.tabs button.active{border-bottom:3px solid #285537;color:#173527}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;padding:12px 10px;background:#f4f6f4;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#607065}td{padding:15px 10px;border-bottom:1px solid #e8ece9;vertical-align:top}td strong{font-size:14px}td small{display:block;color:#66746b;line-height:1.5;font-size:12px;margin-top:4px}td .num{font-variant-numeric:tabular-nums}.item-desc{max-width:340px;min-width:210px}.empty{text-align:center;padding:50px 20px;color:#607068;line-height:1.6}.empty h3{margin-bottom:10px;color:#173527}.progress{height:5px;background:#e2e9e4;border-radius:4px;overflow:hidden;margin:8px 0}.progress i{display:block;height:100%;background:#749751}.op-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:18px}.op-panel{border:1px solid #dce3e0;border-radius:7px;padding:13px;min-width:0}.op-panel strong{font-size:14px}.op-panel p{font-size:13px;color:#667569}.op-panel button{width:100%;margin-top:10px;font-size:13px}.file{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid #e6ece7;padding:14px 0;font-size:14px}.file>div{min-width:0}.file a{overflow-wrap:anywhere}.file small{font-size:12px;display:block;color:#6b786f;margin-top:5px}.file-type{font-size:11px;letter-spacing:.7px;padding:7px;border:1px solid #d5dfd6;border-radius:4px;flex-shrink:0;color:#56715f}.history{padding:14px 0;border-bottom:1px solid #e5eae6}.history b{font-size:14px}.history time{font-size:12px;color:#6d7b72;margin-left:10px}.history p{font-size:14px;line-height:1.5;margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.step-filter{max-width:240px}.subtext{font-size:13px;color:#68786e;line-height:1.5}.danger-text{color:#a54c31}footer{display:flex;gap:20px;justify-content:space-between;padding:20px 0;font-size:12px;color:#69776e}#error{padding:14px;background:#ffebe5;border:1px solid #e6b8ab;margin-bottom:15px;border-radius:6px}dialog{color:#173527;border:1px solid #c9d4cd;border-radius:12px;width:min(740px,calc(100vw - 28px));max-height:90vh;padding:28px;box-shadow:0 20px 80px #10281855}dialog::backdrop{background:#0e291c77}dialog h2{padding-right:28px;margin-bottom:10px}dialog .close{position:absolute;top:12px;right:12px;border:0;font-size:22px;padding:2px 10px}dialog label.field{display:grid;gap:7px;font-size:14px;margin-bottom:14px}dialog .fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}dialog .wide{grid-column:1/-1}dialog textarea{min-height:82px;resize:vertical}dialog .checks{display:flex;gap:15px;flex-wrap:wrap;margin:10px 0 20px}.check{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5}.check input{flex-shrink:0;margin-top:3px}.form-actions{display:flex;gap:12px;justify-content:flex-end;border-top:1px solid #e0e7e2;margin-top:20px;padding-top:20px}.form-error{background:#ffede8;color:#98371f;padding:12px;font-size:14px;border-radius:6px;margin:12px 0}.source{background:#f0f4f1;padding:12px;font-size:12px;overflow-wrap:anywhere;line-height:1.5;margin:12px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#173527;color:white;border-radius:8px;box-shadow:0 4px 20px #17352744;z-index:100;font-size:14px}.guide{max-width:850px;background:white;padding:36px;margin:30px auto;border-radius:10px;line-height:1.7}.guide h2{margin:26px 0 10px}.guide li{margin:8px 0}.print-only{display:none}@media(max-width:1050px){main{padding:24px 20px}.workspace{grid-template-columns:245px minmax(0,1fr)}.detail{padding:20px}.flow{row-gap:20px}}@media(max-width:720px){header{padding:15px 18px;gap:12px;flex-wrap:wrap}.mode{font-size:10px}.heading{display:block}.heading>.actions{margin-top:18px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:14px}.metric strong{font-size:27px}.workspace{grid-template-columns:1fr}#orders{display:flex;overflow:auto;gap:10px}.order-card{min-width:225px;margin-bottom:5px}.folder-status{display:none}.detail{padding:18px}.detail-head{flex-wrap:wrap}.op-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.flow-step b{font-size:12px}.tabs{gap:18px}footer{flex-direction:column;gap:12px}dialog .fields{grid-template-columns:1fr}.guide{margin:15px;padding:22px}h1{font-size:29px}}@media print{header,.heading,.metrics,.orders-pane,footer,.tabs,.actions,.toolbar button,#error,dialog,#toast,.flow,.chips,.notice{display:none!important}main,.detail{padding:0!important;margin:0!important;border:0!important;max-width:none}.workspace{display:block}.detail-head{margin:0 0 18px}.print-only{display:block}.table-wrap{overflow:visible}th,td{padding:7px;font-size:10px}td small{font-size:9px}.guide{margin:0;padding:0}button{display:none!important}}

.workspace>*{min-width:0} .orders-pane,#orders,.detail{max-width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:720px){.workspace{grid-template-columns:minmax(0,1fr)}.order-card{flex:0 0 225px}.tabs{max-width:100%}}
@media print{html,body{background:white!important}.detail{min-height:0!important}.detail-head .muted{display:none}}

.order-identity{display:block;line-height:1.45;overflow-wrap:anywhere}.order-identity>strong,.order-identity>span{display:block}.order-identity>strong{font-weight:750;margin:0}.order-identity>span{font-size:15px;font-weight:400}.order-identity>span:last-child{font-size:14px;color:#52655b}.order-card .order-identity{margin-bottom:12px}.order-card .order-identity>strong{font-size:15px;margin:0 0 2px}.order-card .order-identity>span{font-size:13px}.detail-head .order-identity>strong{font-size:26px;line-height:1.25;margin-bottom:5px}.detail-head .order-identity>span{font-size:18px}.detail-head .order-identity>span:last-child{font-size:17px}.folder-reference{display:block;color:#68786e;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere;margin:5px 0 10px}.modal-order{background:#f0f4f1;border-left:3px solid #719659;padding:12px 15px;margin:12px 0 20px}.modal-order .folder-reference{margin-bottom:0}.modal-order .order-identity>strong{font-size:18px}.purchase-source{background:#f0f5ed;padding:14px 10px}.file .badge{margin:5px 0 0 8px}dialog .field small{line-height:1.45;color:#68786e}.check+.check{margin-top:14px}@media print{.order-identity{break-inside:avoid}.detail-head .order-identity>strong{font-size:21px}.detail-head .order-identity>span,.detail-head .order-identity>span:last-child{font-size:14px}}

.head-actions{flex-wrap:wrap;justify-content:flex-end}.route-cell{min-width:180px;max-width:300px}.route-cell>button{margin-top:9px}.route-evidence{font-size:12px;line-height:1.5;margin:10px 0;color:#596d60}.route-evidence summary{cursor:pointer;font-weight:600}.route-evidence p{margin:7px 0}.route-evidence ul{padding-left:18px;margin:7px 0}.route-evidence a{overflow-wrap:anywhere}.route-evidence li+li{margin-top:5px}.plan-pending{margin-top:15px}@media(max-width:720px){.head-actions{justify-content:flex-start}.flow-step{flex-basis:85px}}

.spec-value{display:grid;gap:4px;margin-top:10px;padding:9px 10px;border:1px solid #dce3e0;border-radius:5px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.spec-label{font-size:11px;font-weight:650;color:#52655b}.spec-value small{margin:0}.spec-dimensions{white-space:pre-wrap}.spec-danger{color:#9a2c27;background:#fff0ed;border:1px solid #dfa29b;border-radius:5px;padding:9px 10px}.spec-danger .spec-label,.spec-danger small{color:#9a2c27}.spec-pending{background:#fff9eb;border-color:#e8d9ad}.spec-pending small{color:#7d5a16}.spec-evidence{margin:10px 0 12px}.spec-list-cell{min-width:200px;max-width:370px}.spec-list-cell .spec-value:first-child{margin-top:0}dialog .field.material-field{display:grid;align-content:start;gap:7px;font-size:14px;margin-bottom:14px}dialog .material-custom{display:grid;gap:7px;margin-top:5px;font-size:13px}dialog .material-custom[hidden]{display:none}dialog .material-field small{font-size:12px;line-height:1.5;color:#68786e}dialog .material-field .material-alert{color:#a42f27;font-weight:600}dialog .material-unresolved{border:2px solid #c43b31;background:#fff0ed;color:#942d26}dialog .spec-resolution{margin:4px 0 18px}dialog .spec-resolution .subtext{margin:8px 0 0}dialog .field textarea[name=dimensions]{min-height:107px}@media print{.spec-value{padding:5px 6px;font-size:10px;break-inside:avoid}.spec-value .spec-label{font-size:9px}.spec-danger{border:1px solid #9a2c27}.spec-pending{border:1px solid #9d8041}.spec-list-cell{min-width:0}}

.button-link{display:inline-block;border:1px solid #ccd5d1;border-radius:7px;padding:10px 15px;background:white;color:#173527;font-weight:600;text-decoration:none;text-align:center;line-height:1.4}.button-link.small{font-size:14px;padding:7px 11px}.button-link:hover{background:#edf3ed}.production-document-notice{display:flex;gap:18px;align-items:center;justify-content:space-between}.production-document-notice .button-link,.production-document>.button-link{flex-shrink:0}.production-document{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid #e5eae6}.production-document-info{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.production-document-info>strong{display:block;margin-bottom:7px;font-size:15px}.production-document-info p{margin:8px 0}.production-document-info small{color:#68786e}.document-warning{color:#945020;font-size:13px;line-height:1.5;margin:8px 0 0}.document-empty{padding:32px 16px;border:1px dashed #d5dfd6;border-radius:7px;margin-top:20px}.head-actions .button-link{max-width:230px}@media(max-width:720px){.production-document-notice,.production-document{align-items:flex-start;flex-direction:column}}@media print{.button-link{display:none!important}}

.production-document-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;justify-content:flex-end;max-width:245px}.production-document-actions .button-link{white-space:nowrap}@media(max-width:720px){.production-document-actions{justify-content:flex-start;max-width:100%}}
.production-sheet-toolbar{flex-direction:column;align-items:flex-start}.production-sheet-choices{width:100%;align-items:flex-start;gap:10px 20px}.production-sheet-choices>.actions{gap:8px}#production-item-preview{margin:16px 0}#production-item-preview small{display:block}
.production-batch-notice>.subtext{margin-bottom:12px}.production-batch-documents{display:grid;gap:12px}.production-batch-documents>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;border-top:1px solid #cad9cd}.production-batch-documents strong{font-size:13px;overflow-wrap:anywhere}@media(max-width:720px){.production-batch-documents>div{align-items:flex-start;flex-direction:column}}

.machine-plan{list-style:none;padding:0;margin:0;display:grid;gap:9px}.machine-plan li{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.machine-summary{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:4px 0 8px;color:#52655b}.machine-pending{color:#7d5a16}.machine-reference{background:#f5f7f5;border:1px solid #dce3e0;border-radius:6px;padding:12px;margin:14px 0;font-size:13px}.machine-reference .machine-plan{margin-top:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.machine-reference .subtext{margin:10px 0 0}.execution-cell{min-width:180px}.execution-spaces{display:grid;gap:5px;font-size:11px;line-height:1.5;margin:12px 0}.execution-spaces .writing-line{white-space:nowrap;margin-bottom:9px}.machine-write-space{display:block;white-space:nowrap;font-size:11px}.op-panel .machine-summary{margin:7px 0;min-height:36px}.machine-fields input{width:100%}@media print{.execution-cell{min-width:155px;break-inside:avoid}.execution-spaces,.machine-write-space{font-size:9px}.machine-summary{font-size:10px}.execution-spaces .writing-line{margin-bottom:12px}tr{break-inside:avoid}}

.production-item{padding:16px 0;border-bottom:1px solid #dce3e0}.production-item>.toolbar{margin:0 0 12px}.production-item .subtext{margin-bottom:0}.production-available,.last-production-entry{display:block;font-size:12px;line-height:1.5;margin-top:10px;color:#52655b}.last-production-entry{padding-top:8px;border-top:1px solid #e6ece7}.op-panel p b{color:#173527}.progress-summary{font-size:15px;font-weight:600;margin:15px 0}.production-entries-table{min-width:740px}.production-entries-table td{overflow-wrap:anywhere}.production-entries-table td:nth-child(2){max-width:235px}.production-entries-table td:nth-child(4){max-width:240px}.entry-reference{font-size:11px;line-height:1.5;color:#68786e;margin-top:7px}.entry-reference summary{cursor:pointer}.balance-preview-table{min-width:440px}.balance-preview-table td{line-height:1.6}.piece-document-actions{flex-wrap:wrap;gap:7px;margin:8px 0}.piece-document-actions .small{font-size:12px}.operation-location{display:inline-block;font-size:10px;font-weight:500;color:#647368;white-space:nowrap}.checks .operation-location{margin-top:2px}.op-panel>.operation-location{margin-left:4px}@media(max-width:720px){.production-item>.toolbar{align-items:flex-start}.piece-document-actions{width:100%}.progress-summary{font-size:14px}}@media print{.entry-reference{display:none}.production-entries-table{min-width:0}}

[hidden]{display:none!important}.flow-active .heading,.flow-active .metrics{display:none}.workspace-tabs{display:flex;gap:8px;margin:0 0 22px;border-bottom:1px solid #d2dcd6;padding-bottom:12px}.workspace-tabs button{border-color:transparent;background:transparent;padding:11px 18px;color:#607367}.workspace-tabs button.active{background:#234633;color:white;border-color:#234633}.view-label{font-size:11px;margin-left:8px;opacity:.8;font-weight:400}.factory-flow{min-width:0;background:#fff;border:1px solid #dce3e0;border-radius:9px;padding:24px}.kanban-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.kanban-heading h2{font-size:26px;letter-spacing:-.4px}.kanban-heading .eyebrow{font-size:11px}.kanban-heading-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.kanban-filters{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(200px,1.3fr) minmax(170px,1fr) minmax(150px,.9fr);gap:12px;margin:24px 0 16px}.kanban-filters label{display:grid;gap:6px;color:#52655b;font-size:12px;font-weight:600;min-width:0}.kanban-filters input,.kanban-filters select{font-size:13px;min-width:0}.kanban-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:13px;color:#52655b;border-top:1px solid #e4eae6;padding:14px 0 0}.kanban-summary b{font-size:17px;margin-right:3px;color:#173527}.kanban-auto{margin-left:auto;font-size:12px}.kanban-guidance{font-size:12px;line-height:1.6;color:#61736a;margin:12px 0 20px;max-width:1000px}.kanban-board{display:flex;gap:16px;overflow-x:auto;align-items:stretch;max-width:100%;padding:0 0 14px;scrollbar-color:#a9b9ae #edf2ef;scrollbar-width:thin;min-height:220px}.kanban-column{flex:0 0 296px;min-width:0;background:#f3f6f4;border:1px solid #dce5df;border-radius:8px;border-top:4px solid #4f7b62;display:flex;flex-direction:column}.kanban-column.review{border-top-color:#b58a2a;background:#faf7ef}.kanban-column.external{border-top-color:#8677a4;background:#f6f4fa}.kanban-column.final_review{border-top-color:#497795;background:#f1f6f9}.kanban-column.released{border-top-color:#6c9243;background:#f4f7ed}.kanban-column-head{padding:16px 14px 9px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.kanban-column-head h3{font-size:15px;line-height:1.35}.kanban-column-head span{display:block;font-size:11px;color:#6c7c72;margin-top:5px}.kanban-column-head>b{display:grid;place-content:center;min-width:27px;height:27px;border-radius:5px;background:#fff;border:1px solid #d8e2db;font-size:13px}.kanban-column-totals{font-size:12px;color:#586e60;margin:0 14px 12px;border-bottom:1px solid #dae4dd;padding-bottom:11px;font-variant-numeric:tabular-nums}.kanban-column-cards{padding:0 10px 10px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;max-height:68vh;min-height:110px;scrollbar-width:thin}.kanban-card{border:1px solid #d9e2dc;border-radius:7px;background:white;padding:14px;min-width:0;box-shadow:0 2px 3px #183b2410}.kanban-card.paused{border-color:#d68f7c;border-left:4px solid #c66046;padding-left:11px}.kanban-card-order{border-bottom:1px solid #edf1ee;padding-bottom:10px}.kanban-card .order-identity>strong{font-size:13px}.kanban-card .order-identity>span{font-size:11px}.kanban-card .order-identity>span:last-child{font-size:11px}.kanban-card .folder-reference{font-size:10px;margin-bottom:0}.kanban-card-piece{margin:12px 0}.kanban-item-number{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#688072;margin-bottom:5px}.kanban-card-piece>strong{display:block;font-size:15px;overflow-wrap:anywhere}.kanban-card-piece p{font-size:12px;line-height:1.45;color:#52685b;margin:4px 0 0;overflow-wrap:anywhere}.kanban-card-quantity{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 0}.kanban-card-quantity>strong{font-size:27px;line-height:1;white-space:nowrap;letter-spacing:-.5px}.kanban-card-quantity small{font-size:12px;letter-spacing:0;font-weight:400}.kanban-card-quantity>span{font-size:11px;line-height:1.4;text-align:right;color:#62766a;max-width:120px}.kanban-card-status{display:flex;gap:5px;flex-wrap:wrap}.kanban-card .badge{font-size:10px}.kanban-operation{font-size:12px;font-weight:650;line-height:1.5;margin:12px 0 4px}.kanban-operation .operation-location{font-size:10px;font-weight:400;margin-left:4px}.kanban-card .machine-summary{font-size:11px;margin:4px 0 10px}.kanban-card-totals{font-size:11px;line-height:1.6;color:#6c7d72;margin:10px 0}.kanban-time{display:grid;gap:3px;font-size:11px;line-height:1.5;border-top:1px solid #e8ede9;padding-top:10px;margin-top:10px}.kanban-time>b{font-weight:600;color:#4c6856}.kanban-time time{font-size:13px;font-weight:600}.kanban-time small{color:#708075;font-size:10px}.kanban-time.no-date{color:#7a6951;font-weight:400}.kanban-last-release{padding-top:6px;border-top:1px dashed #e0e7e1}.kanban-note{background:#fff4ef;border-radius:4px;font-size:11px;color:#915038;line-height:1.5;padding:8px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.kanban-pending{font-size:11px;color:#805f20;padding-left:15px;line-height:1.5;margin:12px 0}.kanban-pending li+li{margin-top:5px}.kanban-route{font-size:10px;line-height:1.5;color:#7b8b80;border-top:1px solid #edf1ee;padding-top:9px;margin:12px 0;overflow-wrap:anywhere}.kanban-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.kanban-card-actions button.small{font-size:11px;padding:6px 9px}.kanban-empty{padding:22px 9px;color:#7b8b80;font-size:12px;line-height:1.6;text-align:center}.kanban-summary .danger-text b{color:#a54c31}@media(max-width:1050px){.kanban-filters{grid-template-columns:1fr 1fr}.factory-flow{padding:20px}.kanban-heading{align-items:flex-start}.kanban-heading-actions{max-width:250px}}@media(max-width:720px){.workspace-tabs{margin-bottom:16px;gap:2px}.workspace-tabs button{padding:10px 12px;font-size:13px}.factory-flow{padding:16px}.kanban-heading{display:block}.kanban-heading h2{font-size:23px}.kanban-heading-actions{justify-content:space-between;max-width:none;margin-top:14px}.kanban-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.kanban-filters label:first-child,.kanban-filters label:last-child{grid-column:1/-1}.kanban-summary{gap:10px 16px}.kanban-auto{margin-left:0;width:100%}.kanban-board{gap:12px}.kanban-column{flex-basis:270px}.kanban-column-cards{max-height:70vh}.kanban-guidance{font-size:11px}}@media print{.workspace-tabs,.factory-flow{display:none!important}}
.kanban-order{background:#fff;border:1px solid #d9e2dc;border-radius:7px;box-shadow:0 2px 3px #183b2410;min-width:0}.kanban-order>summary{display:block;list-style:none;cursor:pointer;padding:14px;border-radius:7px}.kanban-order>summary::-webkit-details-marker{display:none}.kanban-order>summary:hover{background:#edf3ed}.kanban-order>summary:focus-visible{outline:3px solid #aad781;outline-offset:2px}.kanban-order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.kanban-order .order-identity{min-width:0}.kanban-order .order-identity>strong{font-size:14px}.kanban-order .order-identity>span{font-size:12px}.kanban-order-arrow{font-size:25px;line-height:1;color:#52735d;transform:rotate(0deg);transition:transform .15s}.kanban-order[open] .kanban-order-arrow{transform:rotate(90deg)}.kanban-order-count{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 0;font-size:11px;color:#667c6e}.kanban-order-count b{font-size:13px;color:#234633;overflow-wrap:anywhere}.kanban-order-hint{display:block;color:#51745d;font-size:10px;margin-top:9px}.kanban-order:not([open]) .when-open,.kanban-order[open] .when-closed{display:none}.kanban-order-alerts{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.kanban-order-alerts .badge{font-size:10px}.kanban-order.paused{border-color:#d68f7c;border-left:4px solid #c66046}.kanban-order .folder-reference{font-size:10px;margin-bottom:0}.kanban-order-pieces{display:flex;flex-direction:column;gap:10px;border-top:1px solid #dce5df;background:#edf2ee;padding:10px;border-radius:0 0 7px 7px}.kanban-order-pieces .kanban-card{box-shadow:none;padding:12px}.kanban-order-pieces .kanban-card-piece{margin-top:0}.kanban-order-pieces .kanban-card-piece>strong{font-size:14px}
.order-filters{display:grid;gap:10px;margin:0 0 17px;padding:0 0 15px;border-bottom:1px solid #dce3e0}.order-filters label,.piece-filters label{display:grid;gap:5px;font-size:11px;font-weight:600;color:#52655b;min-width:0}.order-filters input,.order-filters select,.piece-filters input,.piece-filters select{font-size:12px;min-width:0}.order-filters input{margin-bottom:0!important}.quantity-filter-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.order-filters p{font-size:11px;line-height:1.5;margin:0;color:#68786e}.order-filters p.danger-text{color:#a54c31}.order-filters>button{justify-self:start;font-size:11px}.order-quantity{display:block;margin-top:8px;font-size:11px;color:#597063}.piece-filters{display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(170px,1.4fr) minmax(90px,.65fr) minmax(90px,.65fr) auto;gap:10px;align-items:end;margin:16px 0 8px}.piece-filters button{font-size:12px;white-space:nowrap}.pieces-grid table{min-width:850px}.table-item-number{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#688072;margin-bottom:5px}.material-grid-column{min-width:210px;max-width:300px}.material-grid-cell{padding:8px;border:1px solid #dce3e0;border-radius:5px;background:#f5f8f5}.material-cell-trigger{display:block;text-align:left;font-size:13px;font-weight:500;line-height:1.5;width:100%;border:0;background:transparent;padding:5px;color:inherit;overflow-wrap:anywhere}.material-cell-trigger:not(:disabled):hover{background:#e4eedc;box-shadow:inset 0 0 0 1px #72986c}.material-cell-trigger:disabled{opacity:1;cursor:default}.material-grid-cell.spec-danger{background:#fff0ed;border-color:#dfa29b;color:#9a2c27}.material-grid-cell small{font-size:10px!important;margin:5px 0 0;line-height:1.5;color:inherit}.material-grid-editor{border:2px solid #60845c;border-radius:5px;padding:8px;background:#f6faf1;min-width:210px}.material-grid-editor input{font-size:13px}.material-grid-editor small{font-size:10px}.material-grid-actions{display:flex;gap:7px;margin-top:9px}.material-grid-actions button{font-size:11px;padding:6px 9px}.material-grid-error{font-size:11px;line-height:1.5;padding:7px;background:#fff0ed;color:#9a2c27;border-radius:4px;overflow-wrap:anywhere}@media(max-width:1100px){.piece-filters{grid-template-columns:1fr 1fr}.piece-filters button{justify-self:start}}@media(max-width:720px){.order-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.order-filters>label:first-child,.order-filters .quantity-filter-fields,.order-filters p{grid-column:1/-1}.piece-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.piece-filters label:first-child,.piece-filters label:nth-child(2){grid-column:1/-1}}@media print{.order-filters,.piece-filters,.material-grid-actions{display:none!important}}
.sheet-assignment{font-size:11px;line-height:1.5;margin-top:10px;padding-top:8px;border-top:1px dashed #d9a7a0;overflow-wrap:anywhere}.sheet-assignment>b,.sheet-assignment>span{display:block}.sheet-assignment>b{color:#9a2c27}.sheet-assignment small{display:block}.sheet-evidence{margin-top:8px}.sheet-evidence summary{cursor:pointer;font-size:11px}.sheet-evidence p{font-size:11px;line-height:1.5;white-space:pre-wrap}.sheet-confirmation{border-color:#dfa29b;background:#fff0ed;color:#9a2c27}.sheet-catalog-table table{min-width:560px}.sheet-catalog-table td{font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}.sheet-catalog-table td:first-child{width:28%}.sheet-catalog-table td:nth-child(2){width:42%}.sheet-catalog-table small{display:block;font-size:10px;color:#64776a}.sheet-catalog-table details{margin-top:7px;font-size:11px}.sheet-catalog-table summary{cursor:pointer}.sheet-similar-material{color:#9a2c27!important;background:#fff0ed;border:1px solid #dfa29b;padding:6px;border-radius:4px}

.kanban-order-wrapper{margin-bottom:12px}.kanban-order-wrapper .kanban-order{margin-bottom:0}.kanban-order-archive{padding:8px 10px;background:#eef3ed;border:1px solid #d7e0d6;border-top:0;border-radius:0 0 8px 8px}.kanban-order-archive button{width:100%}.kanban-board.archive-view{display:grid;grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(260px,360px));grid-auto-columns:auto;align-items:start;gap:16px;overflow:visible}.archived-order-card{padding:18px;background:white;border:1px solid #d7e0d6;border-radius:12px}.archived-order-card .order-identity{display:flex;flex-direction:column;gap:4px}.archived-order-card .subtext{line-height:1.6}.archive-order-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

.external-location-summary{display:flex;flex-direction:column;gap:6px;margin:12px 0;padding:10px;background:#eef4f8;border:1px solid #d4e0e8;border-radius:8px;font-size:12px}
.external-location-summary span{display:block}
.external-location-summary span small{display:block;margin-top:3px;color:var(--muted)}
.external-location-summary>small{font-size:11px;color:var(--muted)}
.external-open-remittance{padding:8px 0;border-top:1px solid #d4e0e8}
.external-deadline-summary{display:flex;flex-direction:column;gap:3px;margin:7px 0;font-size:12px}
.external-deadline-summary small{color:var(--muted)}
.external-deadline-late{border-left:3px solid var(--danger);padding-left:8px}
.external-deadline-late strong{font-size:12px}
.external-operation-actions{margin:10px 0;flex-wrap:wrap}
.external-services-table td:first-child b,.external-dispatch-table td:first-child b{display:block}
.external-services-table small,.external-dispatch-table small{display:block;margin:5px 0}
.external-services-table .external-location-summary{min-width:170px;margin:0}
.external-dispatch-table td{min-width:110px}
.external-dispatch-documents{align-items:flex-start;flex-direction:column;gap:8px;margin-top:10px;font-size:13px;line-height:1.4}
.external-return-history p{font-size:12px;line-height:1.5;border-top:1px solid var(--line);padding-top:8px}
.external-return-entry{padding:8px 0;border-top:1px solid var(--line)}.external-return-entry>p{border:0;padding:0}.external-return-quality{margin:9px 0;padding:10px;border:1px solid #d8e2db;background:#f6f8f6;border-radius:6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.external-quality-counts{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:8px 0}.external-quality-actions{flex-wrap:wrap;gap:7px}.external-quality-actions button{font-size:11px;padding:7px 8px}.external-quality-history{margin-top:10px}.external-quality-history summary{cursor:pointer}.external-quality-history a{display:block;margin-top:5px}.external-quality-legacy{color:#68786e;max-width:230px;line-height:1.5}.external-quality-hold{padding:9px 0;border-top:1px solid #d6e0d9;display:flex;flex-direction:column;gap:6px}.external-quality-hold>.external-return-quality{margin:0}.external-quality-photo{margin:16px 0;padding:14px;background:#f2f5f3;border:1px solid #d8e2db;border-radius:7px}.external-quality-photo input{max-width:100%}#return-photo-status{font-size:12px;line-height:1.5;margin:8px 0}#return-photo-preview{display:block;max-width:100%;max-height:260px;object-fit:contain;border:1px solid #cdd9d1;background:white;margin:10px 0}.external-return-inspection>p small{font-size:11px;overflow-wrap:anywhere}.external-return-inspection>.external-return-quality .external-quality-actions{display:none}.return-rework-cost{margin:16px 0}.return-rework-cost>summary{cursor:pointer;font-size:13px;color:#286344}.return-rework-cost .check{margin:14px 0}.kanban-card .external-return-quality{font-size:10px;padding:8px}.kanban-card .external-return-quality>small{font-size:9px}.kanban-card .external-quality-actions{gap:5px}.kanban-card .external-quality-actions button{font-size:10px;padding:6px}.external-dispatch-table .external-return-history{min-width:230px}
.external-catalog-table ul{margin:0;padding-left:18px}
.external-catalog-table li{margin:8px 0}
.external-cost-summary{display:flex;flex-direction:column;gap:5px;margin:12px 0;padding:10px;border:1px solid #d8e3d6;border-radius:7px;background:#f4f8f1;font-size:12px;line-height:1.5;min-width:170px}
.external-cost-summary small{font-size:10px;color:#52655b}
.external-cost-summary.weight-pending{background:#fff6ed;border-color:#dfba90;color:#885620}
.external-services-table .external-cost-summary{margin:0}
.external-services-table{min-width:1050px}
.external-cost-fields input{font-variant-numeric:tabular-nums}
.external-send-cost-fields{margin-top:18px;padding-top:16px;border-top:1px solid #d8e3d6}
.external-send-cost-fields h3{font-size:15px;margin-bottom:8px}
#save-external-cost-only{font-size:12px}
.external-dispatch-cost{min-width:170px;font-variant-numeric:tabular-nums;line-height:1.5}
.external-dispatch-cost details{font-size:11px;margin-top:8px}
.external-dispatch-cost summary{cursor:pointer}
.workspace-tabs{flex-wrap:wrap}.attention-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.attention-summary>div{padding:15px;background:#f3f6f3;border:1px solid #d7e2da;border-radius:7px}.attention-summary span{font-size:12px;color:#657b6d;display:block}.attention-summary strong{font-size:27px;display:block;margin-top:5px}.attention-filters{display:grid;grid-template-columns:1.4fr 1fr 1.2fr auto;gap:12px;align-items:end;margin:22px 0 12px}.attention-filters>label{display:grid;gap:7px;color:#52655b;font-size:12px;font-weight:600;min-width:0}.attention-filters input,.attention-filters select{min-width:0;width:100%;font-size:13px}.attention-filters>button{height:40px;white-space:nowrap}.attention-guidance{color:#61736a;font-size:12px;line-height:1.6;margin:12px 0 18px;max-width:1080px}.attention-guidance p{margin:8px 0}.attention-guidance summary{cursor:pointer}.attention-table{min-width:1030px}.attention-table th,.attention-table td{padding:12px 10px;font-size:12px;vertical-align:top;overflow-wrap:anywhere}.attention-table td:first-child{width:27%;min-width:240px;border-left:3px solid #8b9e91}.attention-table .attention-danger td:first-child{border-left-color:#b65339}.attention-table .attention-warning td:first-child{border-left-color:#ba8c2f}.attention-table td:nth-child(2){width:24%;min-width:220px}.attention-table td:nth-child(3){min-width:120px}.attention-table td:nth-child(4){min-width:75px}.attention-table td:nth-child(5){min-width:145px;max-width:210px}.attention-table p{font-size:12px;line-height:1.5;margin:8px 0}.attention-table small{display:block;font-size:10px;line-height:1.5;color:#68786e;margin-top:5px}.attention-table .order-identity strong{font-size:13px}.attention-table .order-identity span{font-size:12px}.attention-table .attention-piece{border-top:1px solid #e2e9e3;margin-top:9px;padding-top:6px}.attention-table .attention-item-reference{font-size:9px;color:#819186}.attention-table .badge{font-size:10px}.attention-table details{font-size:11px;line-height:1.5}.attention-table summary{cursor:pointer}.attention-table ul{padding-left:16px;margin:7px 0}.attention-target{outline:3px solid #b88c2d;outline-offset:-3px;background:#fff9e8!important;scroll-margin-top:24px}@media(max-width:900px){.attention-filters{grid-template-columns:1fr 1fr}.attention-filters>label:first-child{grid-column:1/-1}.attention-filters>button{width:max-content}}@media(max-width:600px){.attention-summary{gap:7px}.attention-summary>div{padding:11px}.attention-summary span{font-size:10px}.attention-summary strong{font-size:23px}.attention-filters{grid-template-columns:1fr}.attention-filters>label:first-child{grid-column:auto}}@media print{.attention-today{display:none!important}}
.external-charge-summary{min-width:210px;padding:11px 0;margin-top:12px;border-top:1px solid #cddbd2;font-size:12px;line-height:1.5}.external-charge-comparison{display:flex;flex-direction:column;gap:5px;font-variant-numeric:tabular-nums}.external-charge-comparison.above>span:last-child{color:#a54c31}.external-charge-comparison.below>span:last-child{color:#286344}.external-charge-comparison.same>span:last-child{color:#52655b}.external-charge-summary>button{margin-top:10px}.external-charge-history{margin-top:11px}.external-charge-history summary{cursor:pointer;font-size:12px}.external-charge-history p{border-top:1px solid #dce5df;padding:9px 0;font-size:12px;overflow-wrap:anywhere}.external-charge-history small,.external-charge-form>p small{display:block;margin-top:5px}.external-charge-form>.external-charge-comparison{padding:13px;background:#f2f6f2;border:1px solid #dce5df;border-radius:6px;margin:15px 0}.external-charge-form>p small{font-size:11px;overflow-wrap:anywhere}.external-charge-form .check{margin:13px 0}#external-charge-preview{font-size:13px;line-height:1.6}
.external-dispatch-cost details>b{display:block;margin-top:6px}
.kanban-card .external-cost-summary{font-size:10px;min-width:0;margin:10px 0;padding:8px}
.kanban-card .external-cost-summary small{font-size:9px}
.material-catalog-field label,.material-grid-editor>label{font-size:12px;font-weight:600;color:#52655b}.material-catalog-field>select{min-width:0}.material-grid-editor>label{display:block;margin:6px 0 4px}.material-grid-editor>select{font-size:12px;min-width:0}.material-grid-editor>small{display:block;line-height:1.5;margin-top:7px}.material-current-value{overflow-wrap:anywhere}.material-grid-editor .material-unresolved{border:2px solid #c43b31;background:#fff0ed;color:#942d26}.material-grid-editor>label:first-child{margin-top:0}
.bulk-confirmation-table table{min-width:650px}.bulk-confirmation-table td{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.bulk-confirmation-table td:first-child{min-width:160px;max-width:230px}.bulk-confirmation-table td:nth-child(3){min-width:145px;max-width:220px}.bulk-confirmation-table td:nth-child(4){min-width:110px;max-width:170px}.bulk-confirmation-table td:last-child{min-width:145px;max-width:220px}.bulk-confirmation-table td>small{font-size:10px}.bulk-confirmation-pending{padding-left:16px;margin:0;color:#9a2c27;font-size:11px}.bulk-confirmation-pending li+li{margin-top:5px}.bulk-confirmation-blocked{color:#9a2c27;background:#fff0ed;border-color:#dfa29b}
.item-billing-status{margin:8px 0;line-height:1.5}.item-billing-status small{display:block;font-size:11px;color:#52655b;margin-top:5px;overflow-wrap:anywhere}.item-billing-actions{justify-content:flex-end}.item-billing-actions .piece-document-actions{margin:0}.order-billing-summary{margin:16px 0;font-size:13px}.item-billing-preview{min-width:490px}.item-billing-preview td{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.item-billing-preview td:first-child{max-width:240px}.kanban-billing-count{display:block;color:#32603b;font-size:11px;margin-top:9px;font-weight:600}.kanban-card .item-billing-status small{font-size:10px}.pieces-grid td .item-billing-status+button{font-size:11px;margin:4px 0}
/* Programacao da equipe e cadastro simples */
.workspace-tabs{flex-wrap:wrap}.employee-filters{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) minmax(200px,1fr);gap:12px;margin:24px 0 16px}.employee-filters label{display:grid;gap:6px;font-size:12px;font-weight:600;color:#52655b;min-width:0}.employee-filters input,.employee-filters select{font-size:13px;min-width:0}.employee-column{flex-basis:318px}.employee-column-actions{padding:0 14px 14px}.employee-column-actions .button{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #cad6cc;border-radius:5px;padding:7px 11px;background:#fff;color:#234633;font-size:12px;font-weight:600}.employee-card-sequence{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:12px;font-weight:700;color:#365841;margin-bottom:10px}.employee-card-sequence .badge{font-size:10px;font-weight:500}.employee-pending{border-style:dashed;background:#fcfdfb}.assignment-summary{display:grid;gap:4px;font-size:11px;line-height:1.5;padding:10px;background:#f1f5ee;border:1px solid #dce6d7;border-radius:5px;margin:10px 0;overflow-wrap:anywhere}.assignment-summary small{font-size:10px}.assignment-fields{border:1px solid #d3dfd0;border-radius:7px;background:#f7faf4;padding:16px;margin:18px 0}.assignment-fields legend{font-size:13px;font-weight:650;color:#365841;padding:0 6px}.assignment-fields>.check{margin:0 0 16px}.assignment-fields .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-fields .fields>.field:last-child{grid-column:1/-1}.assignment-fields input:disabled,.assignment-fields select:disabled{opacity:.7;background:#edf1eb}.assignment-fields .subtext{margin-bottom:0}.assignment-fields .field small{font-weight:400;line-height:1.5}.registry-section{margin-top:28px}.registry-table{min-width:680px}.registry-table td{font-size:12px;line-height:1.5;overflow-wrap:anywhere;max-width:310px}.registry-table td:first-child{min-width:115px}.registry-table td small{display:block;margin-top:5px;font-size:11px;color:#5d7063}.registry-table td:last-child{width:80px}.machine-qualifications{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 16px}.machine-qualifications .check{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:8px;align-content:start}.machine-qualifications .check input{grid-row:1/3}.machine-qualifications .check small{grid-column:2;font-size:10px;font-weight:400;color:#6a7c6d;line-height:1.4;margin-top:3px}.op-panel .assignment-summary{margin:8px 0}.op-panel>button+button{margin-top:6px}
@media(max-width:850px){.employee-filters{grid-template-columns:1fr 1fr}.employee-filters label:first-child{grid-column:1/-1}}
@media(max-width:620px){.employee-filters{grid-template-columns:minmax(0,1fr)}.employee-filters label:first-child{grid-column:auto}.machine-qualifications{grid-template-columns:minmax(0,1fr)}.assignment-fields .fields{grid-template-columns:minmax(0,1fr)}.assignment-fields{padding:12px}.employee-column{flex-basis:280px}}
@media print{#employees-view,#registry-view{display:none!important}}
.inspection-summary{display:grid;gap:4px;font-size:11px;line-height:1.5;padding:10px;border:1px solid #ccdccc;border-radius:5px;background:#eef6ed;color:#365841;margin:10px 0}.inspection-summary small{font-weight:400;overflow-wrap:anywhere}.production-entries-table{min-width:900px}
.machine-fields>.field{min-width:0}.machine-fields select{min-width:0;max-width:100%;font-size:13px}.machine-fields>.field>small{font-size:11px;font-weight:400;line-height:1.5}.supplier-registry-table{min-width:590px}.supplier-registry-table td:first-child{min-width:180px}.supplier-registry-table td:nth-child(2){min-width:180px}#registry-view .kanban-heading>.actions{flex-wrap:wrap;justify-content:flex-end}
.bulk-resource-table th,.bulk-resource-table td{font-size:12px;padding:10px 8px}.bulk-resource-table td:first-child{min-width:135px}.bulk-resource-table td:last-child{min-width:190px}.bulk-resource-table td:last-child>b{display:block;margin-top:6px}.bulk-resource-table td:last-child>b:first-child{margin-top:0}.bulk-resource-table td small{font-size:11px}.bulk-resource-table td{overflow-wrap:anywhere}
dialog:has(.batch-external-send){width:min(1120px,calc(100vw - 28px))}.batch-external-table table{min-width:760px}.batch-external-table th,.batch-external-table td{font-size:12px;padding:11px 9px}.batch-external-table td:first-child{min-width:185px;max-width:260px;overflow-wrap:anywhere}.batch-external-table td:nth-child(2){min-width:65px}.batch-external-table td:nth-child(3){min-width:175px;max-width:210px}.batch-external-table td:last-child{width:42%;min-width:280px}.batch-external-table label.field{font-size:12px;margin:10px 0 3px}.batch-external-table .external-cost-summary{font-size:12px;margin:0 0 7px;gap:3px}.batch-send-cost-details{margin-top:12px}.batch-send-cost-details>summary{cursor:pointer;color:#286344;font-size:12px;line-height:1.5}.batch-send-cost-details .check{font-size:12px;margin-top:12px}.batch-send-cost-details .external-send-cost-fields{border:0;padding:0;margin:12px 0 0}.batch-send-cost-details h3{font-size:13px}.batch-send-cost-details .subtext{font-size:11px}.batch-send-cost-details .notice{padding:9px;font-size:12px;margin:10px 0}.batch-send-cost-details .fields{grid-template-columns:1fr;gap:0}.batch-send-reason{color:#865720}.batch-external-send #batch-send-summary{position:sticky;bottom:0;margin-bottom:0;z-index:1}

dialog:has(.batch-external-return){width:min(1120px,calc(100vw - 28px))}.batch-external-return-table table{min-width:850px}.batch-external-return-table th,.batch-external-return-table td{font-size:12px;padding:11px 9px;vertical-align:top}.batch-external-return-table td:first-child{min-width:165px;max-width:235px;overflow-wrap:anywhere}.batch-external-return-table td:nth-child(2){min-width:155px;max-width:210px;overflow-wrap:anywhere}.batch-external-return-table td:last-child{min-width:185px}.batch-external-return-table label.field{font-size:12px;margin:0 0 4px}.batch-external-return-table small{display:block;margin-top:4px}.batch-external-return #batch-return-summary{position:sticky;bottom:0;margin-bottom:0;z-index:1}

/* Atenção hoje: um cabeçalho por pedido, com seus próprios avisos abaixo. */
.attention-order-headings,.attention-order-group>summary{display:grid;grid-template-columns:minmax(230px,1fr) minmax(250px,1.4fr);gap:24px}.attention-order-headings{padding:0 19px 9px;font-size:12px;font-weight:700;color:#52655b}.attention-order-groups{display:grid;gap:12px}.attention-order-group{border:1px solid #d5dfd7;border-left:4px solid #8b9e91;border-radius:7px;background:#fff;overflow:hidden}.attention-group-danger{border-left-color:#b65339}.attention-group-warning{border-left-color:#ba8c2f}.attention-order-group>summary{padding:16px;cursor:pointer;list-style:none;align-items:center;background:#f7faf7}.attention-order-group>summary::-webkit-details-marker{display:none}.attention-order-group>summary:hover{background:#eef4ef}.attention-order-group>summary:focus-visible{outline:3px solid #b88c2d;outline-offset:-3px}.attention-order-identity{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.attention-order-identity strong{font-size:18px;color:#233d2d}.attention-order-identity span{font-size:12px;color:#52655b}.attention-order-identity small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#68786e}.attention-order-status{display:grid;justify-items:start;gap:6px;min-width:0;overflow-wrap:anywhere}.attention-order-status>small{font-size:11px;color:#61736a;line-height:1.5}.attention-order-prompt{display:flex;align-items:center;gap:9px;font-size:12px;color:#286344;font-weight:600}.attention-order-chevron{font-size:19px;line-height:1;transition:transform .12s}.attention-when-open{display:none}.attention-order-group[open]>summary .attention-when-open{display:inline}.attention-order-group[open]>summary .attention-when-closed{display:none}.attention-order-group[open]>summary .attention-order-chevron{transform:rotate(180deg)}.attention-order-body{padding:0 14px 14px;border-top:1px solid #dce5de}.attention-order-body .attention-table{margin-top:4px}.attention-order-body .attention-table caption{text-align:left;padding:12px 10px;font-size:11px;color:#61736a}.attention-order-body .attention-piece{border-top:0;margin-top:0;padding-top:0}.attention-order-body .attention-piece>b{display:block}.attention-order-body .attention-table td:nth-child(2){min-width:180px;width:21%}@media(max-width:600px){.attention-order-headings,.attention-order-group>summary{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:13px}.attention-order-headings{padding:0 14px 8px}.attention-order-group>summary{padding:13px 11px}.attention-order-identity strong{font-size:16px}.attention-order-identity span{font-size:11px}.attention-order-status>small{font-size:10px}.attention-order-prompt{font-size:11px}.attention-order-body{padding:0 6px 9px}}@media(prefers-reduced-motion:reduce){.attention-order-chevron{transition:none}}

/* Acesso individual e administração */
[hidden]{display:none!important}.auth-panel{min-height:80vh;display:grid;place-items:center;padding:28px 16px}.auth-card{width:min(100%,520px);background:#fff;border:1px solid #d7e2dd;border-radius:16px;padding:28px;box-shadow:0 12px 36px #1439250d}.auth-card h1{font-size:1.65rem}.auth-card form{display:grid;gap:16px}.auth-card fieldset{border:1px solid #d7e2dd;border-radius:10px;padding:14px;display:grid;gap:12px}.auth-card fieldset legend{font-weight:700}.session-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.session-tools #session-identity{font-size:.84rem;font-weight:600;color:#285342}.session-tools .operator{display:none}.registry-table td button+button{margin-left:6px}.auth-card button:focus-visible{outline:3px solid #c49f49;outline-offset:3px}@media(max-width:700px){.auth-card{padding:20px}.session-tools{width:100%}.session-tools #session-identity{width:100%}}

.flow-active .heading{display:flex;justify-content:flex-end;margin-bottom:18px}.flow-active .heading>div:first-child{display:none}.flow-active .heading .session-tools{display:flex}@media(max-width:700px){.flow-active .heading>.actions{width:100%}}

/* A fila pessoal apresenta somente as atividades atribuídas e habilitações próprias. */
.own-machines{padding:16px 20px;margin:16px 0;background:var(--surface,#fff);border:1px solid var(--border,#dce2e8);border-radius:12px}.own-machines h3{margin:0 0 8px}.own-machines p{margin:8px 0}.own-machines ul{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0;padding:0;list-style:none}.own-machines li{padding:10px 14px;border:1px solid var(--border,#dce2e8);border-radius:8px}.own-machines li span{display:block;font-size:12px;color:var(--muted,#64748b);margin-top:3px}.own-employee-board{display:grid;grid-template-columns:minmax(280px,1fr)}.own-employee-board .employee-column{width:100%;max-width:none}.own-employee-board .kanban-column-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;align-items:start}.own-piece-spec{font-size:13px;line-height:1.5}

.resource-operation-list{display:grid;gap:14px;margin:18px 0}.resource-operation{min-width:0;border:1px solid #dce3e0;border-radius:7px;padding:14px 15px;margin:0}.resource-operation>legend{padding:0 6px;font-size:14px;font-weight:700}.resource-selectors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.resource-operation .field{min-width:0}.resource-operation select{min-width:0;max-width:100%;font-size:13px}.resource-operation .resource-selectors>.field{margin-bottom:8px}.resource-help{display:block;font-size:11px;color:#68786e;line-height:1.5}.resource-external>.field{margin-bottom:0}@media(max-width:540px){.resource-selectors{grid-template-columns:minmax(0,1fr);gap:4px}.resource-operation{padding:12px}}

/* Cadastro de pedidos e anexos opcionais no proprio PCP. */
.order-create-button{width:100%;margin:0 0 16px}.order-attachments-picker{margin:18px 0;padding:16px;border:1px solid #d5dfd7;border-radius:8px;background:#f7faf7}.order-attachments-picker .field{margin:0 0 12px}.order-attachments-picker input[type=file]{width:100%;max-width:100%;padding:9px;background:#fff}.order-attachments-picker small{font-weight:400;line-height:1.5}.order-attachments-picker ul{margin:8px 0;padding-left:20px;overflow-wrap:anywhere}.order-attachments-picker li+li{margin-top:4px}#clear-order-attachments{margin-top:12px}.order-attachments-picker:has(input:disabled){opacity:.8}

/* PCP searchable controls — 2026-10-19 */
.pcp-combo{position:relative;display:block;min-width:0;width:100%}.pcp-combo[hidden]{display:none!important}.pcp-combo>.pcp-combo-input{width:100%;min-width:0;padding-right:36px;margin-bottom:0;font:inherit;cursor:text}.pcp-combo>.pcp-combo-input:disabled{cursor:not-allowed;background:#edf1eb;opacity:.7}.pcp-combo>.pcp-combo-input[aria-invalid=true]{border-color:#b14c35}.pcp-combo>.pcp-combo-native{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;border:0!important;overflow:hidden!important}.pcp-combo>.pcp-combo-toggle{position:absolute;right:3px;top:3px;bottom:3px;min-width:28px;width:28px;padding:0;margin:0;border:0;background:transparent;color:#4c6657;font:inherit;line-height:1;z-index:1}.pcp-combo>.pcp-combo-toggle:hover{background:#e9f0e5}.pcp-combo-popup{position:fixed;inset:auto;margin:0;padding:4px;z-index:2147483000;border:1px solid #aabdaf;border-radius:7px;box-shadow:0 7px 24px #142a2530;background:#fff;color:#173527;font:14px/1.35 'Segoe UI',Arial,sans-serif;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;max-width:calc(100vw - 16px)}.pcp-combo-popup[hidden]{display:none!important}.pcp-combo-option{padding:9px 10px;border-radius:4px;cursor:pointer;overflow-wrap:anywhere;white-space:normal;font-weight:400}.pcp-combo-option:hover,.pcp-combo-option.pcp-combo-active{background:#e8f1e1}.pcp-combo-option[aria-selected=true]{font-weight:650;color:#224b2b}.pcp-combo-option[aria-disabled=true]{color:#79867f;cursor:not-allowed;background:#f5f6f4}.pcp-combo-status{font-size:11px;color:#617268;border-top:1px solid #e1e8e1;margin-top:4px;padding:8px 10px;line-height:1.5}.pcp-combo-options{display:block}.piece-material-cell .pcp-combo{font-size:12px}.pcp-combo-popup::backdrop{background:transparent;pointer-events:none}@media print{.pcp-combo-popup,.pcp-combo-toggle{display:none!important}.pcp-combo>.pcp-combo-input{padding-right:10px}}
.pcp-combo:has(>.material-unresolved)>.pcp-combo-input{border:2px solid #c43b31;background:#fff0ed;color:#942d26}.pcp-combo:has(>.sheet-similar-material)>.pcp-combo-input{border-color:#dfa29b;background:#fff0ed;color:#9a2c27}.resource-operation .pcp-combo-input{font-size:13px}.material-grid-editor .pcp-combo-input{font-size:12px}.pcp-combo:has(>.step-filter){max-width:240px}

/* Cadastros separados por finalidade, com ações no contexto de cada seção. */
.registry-heading{margin-bottom:22px}.registry-heading h2{margin:0 0 8px;font-size:27px}.registry-heading .muted{margin:0}.registry-nav{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #dce5de;padding-bottom:16px;margin-bottom:24px}.registry-nav button{padding:11px 18px;border-color:transparent;background:#f3f6f3;color:#52655b;font-weight:600}.registry-nav button.active{background:#224b36;color:#fff}.registry-resource-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.registry-resource-actions p{font-size:14px;color:#68786e;margin:0}.registry-page [hidden]{display:none!important}.registry-page .registry-section{margin-top:0}.registry-page .registry-table button{white-space:nowrap;min-width:64px}.registry-page .registry-table td:last-child{white-space:nowrap}.registry-page .registry-table td:last-child button+button{margin-left:6px}
.catalog-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:start}.catalog-clients,.catalog-parts{min-width:0;border:1px solid #dce5de;border-radius:12px;background:#fff;padding:20px}.catalog-clients{background:#f7faf7}.catalog-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.catalog-card-heading h3{margin:0;font-size:19px;overflow-wrap:anywhere}.catalog-card-heading .eyebrow{margin:0 0 7px;font-size:10px}.catalog-card-heading .subtext{margin:7px 0 0}.catalog-card-heading>button{flex-shrink:0}.catalog-clients>#catalog-add-client{width:100%;margin-bottom:20px}.catalog-search{display:grid;gap:8px;font-size:12px;font-weight:600;color:#52655b;margin:0 0 20px}.catalog-search input{font-size:14px;font-weight:400;background:#fff;margin:0}.catalog-client-list{display:grid;gap:9px;max-height:580px;overflow:auto}.catalog-client-row{display:flex;gap:4px;align-items:center;padding:6px;border:1px solid #dce5de;border-radius:8px;background:#fff}.catalog-client-row.selected{border-color:#53826b;box-shadow:inset 3px 0 #53826b;background:#edf5ef}.catalog-client-row>button:first-child{flex:1;text-align:left;background:transparent;color:inherit;border:0;min-width:0;padding:10px}.catalog-client-row b{display:block;font-size:14px;overflow-wrap:anywhere}.catalog-client-row small{display:block;font-weight:400;font-size:11px;margin-top:5px;color:#68786e;overflow-wrap:anywhere}.catalog-client-row>button:last-child{padding:6px 8px;font-size:11px;border-color:transparent;background:transparent}.catalog-layout .registry-table td{overflow-wrap:anywhere;font-size:12px;padding:15px 10px;vertical-align:top}.catalog-layout .registry-table th{font-size:10px;padding:12px 10px}.catalog-layout .registry-table th:last-child,.catalog-layout .registry-table td:last-child{width:78px;min-width:78px}.catalog-layout .registry-table{min-width:580px}.catalog-empty{text-align:center;padding:45px 18px;color:#68786e;font-size:14px;line-height:1.6}.catalog-empty h4{color:#294c39;margin:12px 0 8px;font-size:17px}.catalog-empty p{margin:7px 0}.catalog-clients .catalog-empty{padding:25px 10px}.catalog-empty-symbol{font-size:30px;color:#6b8975}.cloud-folder{display:flex;align-items:center;justify-content:space-between;gap:16px}.cloud-folder p{margin:4px 0}
@media(max-width:1000px){.catalog-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.catalog-clients,.catalog-parts{padding:16px}.catalog-card-heading{align-items:flex-start;flex-wrap:wrap}.catalog-parts .catalog-card-heading>button{margin-top:0}}
@media(max-width:760px){.catalog-layout{grid-template-columns:minmax(0,1fr)}.catalog-client-list{max-height:260px}.registry-nav{gap:6px}.registry-nav button{flex:1 1 40%;padding:10px}.registry-resource-actions{align-items:flex-start;flex-direction:column}.cloud-folder{align-items:flex-start;flex-direction:column}}

/* Painel inicial: atalhos, carga por máquina e situação dos pedidos. */
.dashboard-view{min-width:0}.dashboard-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:26px 0 22px}.dashboard-top h2{font-size:28px;margin:0 0 8px}.dashboard-top p{margin:0}.dashboard-top .eyebrow{margin-bottom:8px}.dashboard-refresh{display:flex;align-items:center;gap:12px;font-size:12px;color:#68786e}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:24px}.dashboard-shortcuts button{text-align:left;padding:16px;border:1px solid #d9e3dc;border-radius:10px;background:#fff}.dashboard-shortcuts button:hover{border-color:#5f846a;background:#f7faf5}.dashboard-shortcuts strong{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 6px;font-size:15px}.dashboard-shortcuts small{font-size:12px;font-weight:400;line-height:1.5;color:#68786e}.dashboard-shortcut-number{font-size:11px;color:#6a846e;letter-spacing:1px}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.dashboard-metric{border:1px solid #d9e3dc;border-radius:10px;padding:20px;background:white;display:grid;gap:7px}.dashboard-metric:first-child{background:#e7efd8}.dashboard-metric>span{font-size:13px;color:#52655b}.dashboard-metric>strong{font-size:34px;line-height:1.2}.dashboard-metric>small{font-size:11px;color:#68786e}.dashboard-card{background:#fff;border:1px solid #d9e3dc;border-radius:12px;padding:24px;margin-bottom:24px;min-width:0}.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.dashboard-section-heading h3{font-size:19px;margin:0 0 7px}.dashboard-section-heading p{font-size:13px;color:#68786e;margin:0;line-height:1.5}.dashboard-tag{font-size:12px;white-space:nowrap;border:1px solid #d9e3dc;border-radius:20px;padding:8px 12px;color:#52655b}.dashboard-machine-chart{display:grid;gap:8px}.dashboard-machine{display:grid;grid-template-columns:minmax(160px,1fr) minmax(90px,2fr) 55px 110px;gap:18px;align-items:center;padding:13px 14px;background:#f8faf8;border:1px solid transparent;text-align:left;width:100%}.dashboard-machine:hover,.dashboard-machine.selected{background:#edf5e8;border-color:#8ba580}.dashboard-machine:disabled{opacity:1;cursor:default}.dashboard-machine-name b{display:block;font-size:14px}.dashboard-machine-name small{display:block;font-size:11px;font-weight:400;color:#68786e;margin-top:5px}.dashboard-bar,.dashboard-row-bar{display:block;height:12px;background:#e4ebe3;border-radius:8px;overflow:hidden}.dashboard-bar>span,.dashboard-row-bar>span{display:block;height:100%;border-radius:inherit;background:#729653}.dashboard-percent{font-size:15px;text-align:right}.dashboard-machine-count{text-align:right;font-size:12px}.dashboard-machine-count b{display:block}.dashboard-machine-count small{display:block;font-size:11px;color:#68786e;margin-top:5px;font-weight:400}.dashboard-footnote{font-size:11px;line-height:1.6;color:#68786e;margin:18px 0 0}.dashboard-orders{min-width:750px}.dashboard-orders td{font-size:13px;vertical-align:middle}.dashboard-orders td:first-child strong{display:block}.dashboard-orders td small{display:block;margin-top:6px}.dashboard-orders td:nth-last-child(2){min-width:95px}.dashboard-orders td:last-child{white-space:nowrap}.dashboard-row-bar{height:5px;margin-top:8px}.dashboard-places{display:flex;flex-wrap:wrap;gap:5px;max-width:250px}.dashboard-places span{display:inline-block;background:#f1f5f0;border:1px solid #dfe8dc;padding:5px 8px;border-radius:5px;font-size:11px}.dashboard-empty{text-align:center;padding:30px 16px;font-size:14px;color:#68786e;line-height:1.6}
@media(max-width:1000px){.dashboard-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-machine{grid-template-columns:minmax(140px,1fr) minmax(70px,1.5fr) 45px 90px;gap:12px}.dashboard-tag{white-space:normal}}
@media(max-width:640px){.dashboard-top,.dashboard-section-heading{align-items:flex-start;flex-direction:column}.dashboard-shortcuts,.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card{padding:16px}.dashboard-machine{grid-template-columns:minmax(0,1fr) 55px 90px;gap:10px}.dashboard-machine-name{grid-column:1/-1}.dashboard-bar{height:10px}.dashboard-shortcuts button{padding:13px}.dashboard-metric{padding:16px}}

.dashboard-active .heading>div:first-child{display:none}.dashboard-active .heading{justify-content:flex-end;margin-bottom:14px}.dashboard-active .heading>.actions{margin-top:0}.dashboard-active .dashboard-top{margin-top:20px}.dashboard-active .dashboard-shortcuts button{padding:13px 16px}.dashboard-active .dashboard-metric{padding:16px 20px}

/* Plano da peça: etapas e recursos na mesma página. */
.catalog-work-plan{margin:22px 0 14px;border:1px solid var(--line,#dce2e8);border-radius:12px;overflow:hidden}
.catalog-plan-heading{padding:16px 18px;background:#f4f7fa}.catalog-plan-heading h3{margin:0 0 6px}.catalog-plan-heading p{margin:0}
.catalog-plan-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(230px,1.4fr);gap:18px;align-items:center;padding:12px 18px;border-top:1px solid #e3e8ee;background:#fff}
.catalog-plan-row.is-selected{background:#f2f8ff}.catalog-plan-step{display:flex;align-items:center;gap:10px;margin:0}.catalog-plan-step small{display:block;color:#64748b;margin-top:3px}.catalog-plan-number{display:flex;align-items:center;justify-content:center;flex:0 0 26px;height:26px;border-radius:50%;background:#e2e8f0;color:#475569;font-size:12px;font-weight:700}.is-selected .catalog-plan-number{background:#1762a3;color:#fff}.catalog-plan-row .field{margin:0}.catalog-plan-row select:disabled{opacity:.5}
@media(max-width:640px){.catalog-plan-row{grid-template-columns:1fr;gap:10px}.catalog-plan-row .field{padding-left:34px}}

/* Unified work plan: selected operations reveal their resource controls. */
.order-work-plan{margin:22px 0}.order-work-plan h3{font-size:16px;margin:0 0 7px}.order-work-plan .checks{padding:12px 0 4px}.order-work-plan .resource-operation[hidden],.catalog-plan-row [data-catalog-plan-resource][hidden]{display:none!important}.order-work-plan .resource-operation{background:#f8fafc}.order-work-plan .resource-external{background:#faf8f3}.order-work-plan .resource-operation legend{font-size:15px}.work-plan-empty{padding:16px;background:#f4f7fa;border-radius:7px}.manufacturing-number{font-weight:700;color:#1762a3;letter-spacing:.03em}.order-work-plan .resource-operation-list{margin-top:18px}

.dashboard-orders .dashboard-of{white-space:nowrap}.dashboard-orders td:nth-child(2)>strong{display:block}.order-identity>strong.manufacturing-number{color:#1762a3}

/* Fila da máquina selecionada no painel. */
.dashboard-machine-orders{min-width:580px}.dashboard-machine-orders .dashboard-remaining strong{font-size:22px;font-variant-numeric:tabular-nums;color:#315d3b;margin-right:7px}.dashboard-remaining>span{color:#68786e;font-size:12px}#dashboard-machine-orders{scroll-margin-top:24px}#dashboard-machine-orders:focus-visible{outline:2px solid #729653;outline-offset:5px}

.dashboard-summary-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.dashboard-summary-actions button{white-space:nowrap}#dashboard-orders-summary{scroll-margin-top:24px}#dashboard-orders-summary:focus-visible{outline:2px solid #729653;outline-offset:5px}

/* Quantidades físicas por pedido, sem multiplicar pelas operações. */

/* Prazo do pedido: informação independente do status de produção. */
.order-delivery{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border:1px solid #dbe4de;border-radius:7px;background:#fff;font-size:14px}.order-delivery-label{color:#53665a}.order-delivery strong{font-variant-numeric:tabular-nums}.delivery-status{display:inline-block;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:700;white-space:nowrap}.delivery-late{background:#fce8e6;color:#a52b24}.delivery-on-time{background:#e6f2e8;color:#25673b}.delivery-closed{background:#edf1f4;color:#4a5d69}.order-delivery-empty{color:#68786e}.dashboard-order-summary{min-width:1160px}.dashboard-delivery{min-width:136px}

/* Filtro do resumo e da fila de máquina; o gráfico conserva o panorama geral. */
.dashboard-delivery-filter{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0 16px;padding:14px 18px;border:1px solid #dbe4de;background:#fff;border-radius:9px}.dashboard-delivery-filter>span{font-size:14px;font-weight:700}.dashboard-delivery-filter>div{display:flex;gap:6px;flex-wrap:wrap}.dashboard-delivery-filter button[aria-pressed="true"]{background:#234633;color:#fff;border-color:#234633}.dashboard-delivery-filter>small{margin-left:auto;color:#68786e;font-size:12px}.order-identity>span.order-client-name{font-weight:750;color:#173527}
@media(max-width:600px){.dashboard-delivery-filter{gap:10px}.dashboard-delivery-filter>small{margin-left:0;width:100%}}

/* Disponibilidade física: confirmação anterior à primeira operação. */
.material-availability{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin:8px 0}.material-availability button{font-size:12px}.kanban-card .material-availability{flex-direction:column}.kanban-card.waiting_material{border-left:4px solid #bf8a2d}

.material-release-card{padding:16px;background:#fffdf6;border:1px solid #e7d9b3;border-radius:8px;min-width:250px}.material-release-card p{font-size:12px;color:#68786e}.material-release-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.material-release-list{display:flex;gap:12px;overflow:auto;padding:0 0 14px}#employee-material-release:empty{display:none}

/* Arraste abre confirmações; a posição continua refletindo a produção registrada. */
.kanban-drag-handle{display:block;margin:0 0 10px auto;padding:5px 8px;border:1px dashed #a4b5a8;border-radius:5px;color:#526b59;background:#f5f8f4;font-size:11px;cursor:grab;font-weight:600}.kanban-drag-handle:active{cursor:grabbing}.kanban-drag-source{opacity:.55}.kanban-column.kanban-drop-ready{outline:2px dashed #709857;outline-offset:-3px}.kanban-column.kanban-drop-over{outline:3px solid #4c7b38;background:#e8f2df}.kanban-dragging .kanban-column{transition:background-color .15s}.kanban-confirmation-progress{padding:8px 12px;background:#f0f5e9;border-left:3px solid #729653}.inline-piece-intro{padding:8px 0 16px;color:#53665a;font-size:14px}

/* Quadro para pesagem na lista impressa de Zincagem e Pintura. */
.production-weight-box{display:grid;gap:8px;border:1px solid #465360;padding:9px 11px;margin:10px 0;min-width:145px;background:#fff;color:#17212a;break-inside:avoid}.production-weight-box>b{font-size:12px}.production-weight-box>span{font-size:13px;font-variant-numeric:tabular-nums}@media print{.production-weight-box{border:1pt solid #333;color:#000}.production-weight-box>span{font-size:10pt}}
/* Pedidos em largura inteira, com detalhes expandidos na própria linha. */
#orders-view.orders-full-list{display:block;min-width:0}#orders-view[hidden]{display:none!important}
#orders-view .orders-pane{position:static;width:100%;max-height:none;overflow:visible}
#orders-view #orders{display:block;overflow:visible;max-height:none}
#orders-view .section-title{margin-bottom:16px}#orders-view .order-create-button{display:inline-flex;margin:0 8px 16px 0;width:auto}
#orders-view .order-create-button[hidden]{display:none!important}#orders-view #search{width:100%;margin:0}
#orders-view .order-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1.5fr) minmax(160px,1fr) minmax(210px,1fr);align-items:end;gap:12px;margin-bottom:14px}
#orders-view .order-filters #order-filter-status{grid-column:1/-1;margin:0;font-size:12px}
.orders-list-help{font-size:13px;color:#68786e;margin:12px 0 18px}.orders-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 14px}.orders-list-heading h3{margin:0}
.orders-table-wrap{border:1px solid #dbe4de;border-radius:8px}.orders-table{width:100%;min-width:680px;table-layout:fixed;border-collapse:collapse}
.orders-table .col-of{width:12%}.orders-table .col-oc{width:14%}.orders-table .col-client{width:28%}.orders-table .col-quote{width:13%}.orders-table .col-status{width:21%}.orders-table .col-actions{width:12%}
.orders-table>thead>tr>th{background:#edf2ee;color:#43594d;font-size:11px;padding:14px 12px;text-align:left;white-space:normal}.orders-table>tbody>tr>td{padding:16px 12px;font-size:13px;vertical-align:middle;overflow-wrap:anywhere;border-bottom:1px solid #e5ebe7}
.orders-summary-row{cursor:pointer;background:white}.orders-summary-row:hover{background:#f5f8f3}.orders-summary-row.is-expanded{background:#edf4e8}.orders-of strong{color:#285b7c;font-size:14px;white-space:nowrap}.orders-client>strong{display:block;font-size:14px;color:#173527}.orders-client small,.orders-material-pending{display:block;margin-top:5px;font-size:12px;color:#68786e}.orders-table .badge{white-space:normal;line-height:1.4}
.orders-table .orders-detail-row>td{padding:0;background:#fafcf9;border-bottom:2px solid #b9ccad}.orders-detail-row[hidden],#detail[hidden],#order-detail-parking[hidden]{display:none!important}
#orders-view .detail{border:0;border-radius:0;box-shadow:none;margin:0;padding:24px;min-width:0;min-height:0;max-width:100%;background:#fff}
#orders-view .detail-head{gap:20px}#orders-view .detail .table-wrap{max-width:100%}#orders-view .folder-status{margin-top:18px}
@media(max-width:1000px){#orders-view .order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#orders-view .detail{padding:16px}}

body.orders-active .heading>div:first-child{display:none}body.orders-active #metrics{display:none}body.orders-active .heading{justify-content:flex-end;margin-bottom:18px}
#orders-view .section-title{display:inline-flex;vertical-align:middle;gap:12px;margin:0 24px 16px 0}#orders-view .section-title h2{margin:0}
.orders-filter-details{margin:0 0 10px}.orders-filter-details>summary{cursor:pointer;font-size:13px;font-weight:650;color:#52695b;padding:10px 0}.orders-filter-details[open]>summary{margin-bottom:10px}

.orders-summary-row>td:last-child{padding-left:6px;padding-right:6px}.orders-summary-row button[data-order]{white-space:nowrap;font-size:12px;padding:8px 10px}

/* Filas por máquina: prioridades por OF, independentes do avanço entre etapas. */
.machine-queues { margin: 22px 0; padding: 20px; background: #fff; border: 1px solid #d5e0d8; border-radius: 12px; }
.machine-queues-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.machine-queues-heading h3 { margin:0 0 5px; }
.machine-queues-heading p { margin:0; color:#53645b; font-size:13px; }
.machine-queue-machines { display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:12px; }
.machine-queue-machine { display:flex; flex-direction:column; gap:7px; text-align:left; padding:16px; background:#f6f9f7; border:1px solid #ccdad1; border-radius:9px; color:#183f2c; }
.machine-queue-machine:hover { border-color:#2c6e49; background:#edf5ef; }
.machine-queue-machine>span { font-size:11px; letter-spacing:.08em; }
.machine-queue-machine>strong { font-size:17px; }
.machine-queue-machine>small { color:#52645a; }
.machine-queue-machine>b { margin-top:5px; font-size:12px; }
.machine-queue-list { max-height:58vh; overflow:auto; padding:6px 4px; }
.machine-queue-item { display:grid; grid-template-columns:52px minmax(0,1fr) 100px; gap:14px; padding:16px 12px; margin:0 0 12px; border:1px solid #ccd9d0; border-radius:9px; background:#fff; }
.machine-queue-item:first-child { border-left:4px solid #2c6e49; background:#f3f8f4; }
.machine-queue-position { font-size:27px; font-weight:800; color:#235638; text-align:center; }
.machine-queue-position small { display:block; font-size:8px; letter-spacing:.05em; margin-top:5px; }
.machine-queue-order>strong,.machine-queue-order>b,.machine-queue-order>small { display:block; overflow-wrap:anywhere; }
.machine-queue-order>strong { font-size:17px; margin-bottom:4px; }
.machine-queue-order>b { font-size:15px; }
.machine-queue-order>small { color:#647168; margin-top:3px; }
.machine-queue-order p { margin:9px 0; font-size:13px; }
.machine-queue-order summary { cursor:pointer; color:#2c6341; font-size:12px; }
.machine-queue-piece { padding:8px 0; border-top:1px solid #e1e8e3; }
.machine-queue-moves { display:flex; flex-direction:column; gap:7px; }
.machine-queue-handle { cursor:grab; }
.machine-queue-item.queue-dragged { opacity:.45; }
.machine-queue-item.queue-before { box-shadow:0 -4px #32724c; }
.machine-queue-item.queue-after { box-shadow:0 4px #32724c; }
.queue-saving { opacity:.6; pointer-events:none; }
@media(max-width:650px){.machine-queues-heading{display:block}.machine-queues-heading>span{display:block;margin-top:10px}.machine-queue-item{grid-template-columns:35px minmax(0,1fr);gap:10px}.machine-queue-moves{grid-column:2;flex-direction:row;flex-wrap:wrap}}
.machine-queue-handle {touch-action:none;} .machine-queue-item {cursor:grab;} .machine-queue-item summary,.machine-queue-item button {cursor:pointer;}

.machine-queue-modes { display:flex; gap:8px; margin:12px 0; }
.machine-queue-modes [aria-pressed="true"] { background:#234f36; color:#fff; border-color:#234f36; }
.machine-queue-material { padding:5px 8px; background:#eaf2ec; border-radius:4px; color:#234f36; }
.machine-queue-piece-of { margin-bottom:6px; }
#modal:has(#machine-queue-list) { width:min(1050px,calc(100vw - 40px)); max-width:1050px; max-height:94vh; }
.machine-queue-item { padding:10px 12px; margin-bottom:9px; gap:12px; }
.machine-queue-order p { margin:5px 0; }
.machine-queue-order>strong { margin-bottom:2px; }
.machine-queue-material { padding:4px 7px; }
.machine-queue-order>small.machine-queue-piece-of { margin-bottom:3px; }

.machine-queue-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,.55fr) auto; gap:8px 12px; align-items:end; padding:10px 0; }
.machine-queue-filters[hidden] { display:none; }
.machine-queue-filters label { display:flex; flex-direction:column; gap:4px; font-size:12px; }
.machine-queue-filters select { width:100%; min-width:0; }
.machine-queue-filters p { grid-column:1/-1; margin:0; font-size:12px; color:#405b49; }
.machine-queue-filters>small { grid-column:1/-1; color:#5f7065; }
#modal:has(#machine-queue-list) .form-actions { margin:10px 0; }
.machine-queue-empty { padding:18px; background:#f4f7f5; border-radius:8px; }
@media(max-width:650px){.machine-queue-filters{grid-template-columns:1fr}.machine-queue-filters button{justify-self:start}}

.orders-summary-view { margin:24px 0; padding:24px; border:1px solid #d9e2dc; border-radius:12px; background:#fff; }
.orders-summary-filters { display:grid; grid-template-columns:minmax(250px,1fr) minmax(160px,.35fr) auto; gap:14px; align-items:end; margin:18px 0; }
.orders-summary-filters label {display:flex;flex-direction:column;gap:6px;font-size:13px}
.order-summary-table { width:100%; }
.order-summary-row { cursor:pointer; background:#d3e4f6; }
.order-summary-row:hover,.order-summary-row.expanded { background:#c1d8f1; }
.order-summary-row strong {font-size:15px}
.order-summary-row td>small,.order-summary-item-status small {display:block; margin-top:5px; color:#5a6c60;}
.order-summary-detail>td { padding:0 12px 18px; background:#f6f9f7; }
.order-summary-items {padding:18px 8px}
.order-summary-items-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.order-summary-items h3 {margin:0;font-size:16px}
.order-summary-items tbody td {vertical-align:top}
.order-summary-items td>small {display:block;color:#5b6e61;margin-top:5px;max-width:260px}
.order-summary-route {display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:300px}
/* Cores compartilhadas: somente etapas com saldo físico atual ficam coloridas. */
[data-operation-step] {--operation-color:#64748b;--operation-bg:#f1f5f9;--operation-ink:#475569}
.order-summary-operation {--operation-color:#64748b;--operation-bg:#f1f5f9;--operation-ink:#475569;display:flex;flex-direction:column;gap:4px;text-align:left;padding:9px 11px;border-radius:7px;border:1px solid var(--operation-color);border-left-width:4px;background:var(--operation-bg);color:#263442;min-width:110px}
.order-summary-operation.available[data-summary-point="Corte"], [data-operation-step="Corte"][data-operation-active="true"] {--operation-color:#475569;--operation-bg:#f1f5f9;--operation-ink:#334155}
.order-summary-operation.available[data-summary-point="Laser"], [data-operation-step="Laser"][data-operation-active="true"] {--operation-color:#2563eb;--operation-bg:#eff6ff;--operation-ink:#1e40af}
.order-summary-operation.available[data-summary-point="Dobra"], [data-operation-step="Dobra"][data-operation-active="true"] {--operation-color:#c2410c;--operation-bg:#fff7ed;--operation-ink:#9a3412}
.order-summary-operation.available[data-summary-point="Estamparia"], [data-operation-step="Estamparia"][data-operation-active="true"] {--operation-color:#9a6700;--operation-bg:#fefce8;--operation-ink:#854d0e}
.order-summary-operation.available[data-summary-point="Solda"], [data-operation-step="Solda"][data-operation-active="true"] {--operation-color:#c92a2a;--operation-bg:#fff1f2;--operation-ink:#9f1239}
.order-summary-operation.available[data-summary-point="Usinagem"], [data-operation-step="Usinagem"][data-operation-active="true"] {--operation-color:#0e7490;--operation-bg:#ecfeff;--operation-ink:#155e75}
.order-summary-operation.available[data-summary-point="Acabamento"], [data-operation-step="Acabamento"][data-operation-active="true"] {--operation-color:#047857;--operation-bg:#ecfdf5;--operation-ink:#065f46}
.order-summary-operation.available[data-summary-point="Zincagem"], [data-operation-step="Zincagem"][data-operation-active="true"] {--operation-color:#7c3aed;--operation-bg:#f5f3ff;--operation-ink:#5b21b6}
.order-summary-operation.available[data-summary-point="Pintura"], [data-operation-step="Pintura"][data-operation-active="true"] {--operation-color:#be185d;--operation-bg:#fdf2f8;--operation-ink:#9d174d}
.order-summary-operation.available {box-shadow:0 0 0 1px var(--operation-color)}
.order-summary-operation.paused {outline:2px dashed #b42318;outline-offset:2px}
.order-summary-operation.done {border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed}
.order-summary-operation:disabled {opacity:1;cursor:default}
.order-summary-operation:not(:disabled):hover {background:var(--operation-bg);filter:brightness(.97)}
.order-summary-operation:focus-visible {outline:3px solid #17263d;outline-offset:3px}
.order-summary-operation b {color:var(--operation-ink)}
.order-summary-operation b {font-size:12px}
.order-summary-operation span {font-size:13px}
.order-summary-operation small {font-size:10px;max-width:150px}
.order-summary-arrow {color:#819486}
@media(max-width:750px){.orders-summary-view{padding:14px}.orders-summary-filters{grid-template-columns:1fr}.order-summary-table{min-width:760px}.order-summary-route{min-width:260px}}

/* Mesmo padrão de operação na fábrica, filas e painel de máquinas. */
.kanban-column[data-operation-step] {border-top-color:var(--operation-color);background:var(--operation-bg)}
.kanban-column[data-operation-step] .kanban-column-head h3 {color:var(--operation-ink)}
.kanban-column[data-operation-step].kanban-drop-over {background:var(--operation-bg)}
.kanban-order[data-operation-step],.kanban-card[data-operation-step] {border-left:3px solid var(--operation-color)}
.kanban-order[data-operation-step]>summary {background:var(--operation-bg)}
.dashboard-machine[data-operation-step],.dashboard-machine[data-operation-step]:hover,.dashboard-machine[data-operation-step].selected {background:var(--operation-bg);border-color:var(--operation-color);border-left-width:4px}
.dashboard-machine[data-operation-step] .dashboard-machine-name b,.dashboard-machine[data-operation-step] .dashboard-percent {color:var(--operation-ink)}
.dashboard-machine[data-operation-step] .dashboard-bar {background:#e2e8f0}
.dashboard-machine[data-operation-step] .dashboard-bar>span {background:var(--operation-color)}
.dashboard-machine[data-operation-step].selected {box-shadow:0 0 0 2px var(--operation-color)}
.machine-queue-machine[data-operation-step],.machine-queue-machine[data-operation-step]:hover {background:var(--operation-bg);border-color:var(--operation-color);border-left-width:4px;color:var(--operation-ink)}
.machine-queue-item[data-operation-step],.machine-queue-item[data-operation-step]:first-child {background:var(--operation-bg);border-left:4px solid var(--operation-color)}
.machine-queue-item[data-operation-step] .machine-queue-position,.machine-queue-operation-title[data-operation-step] {color:var(--operation-ink)}
.machine-queue-item[data-operation-step] .machine-queue-material {background:white;color:#334155}
.machine-queue-item[data-operation-step]:first-child {box-shadow:inset 0 0 0 1px var(--operation-color)}

#kanban-board>.kanban-column:not([data-operation-step]) {border-top-color:#94a3b8;background:#f1f5f9}
#kanban-board>.kanban-column:not([data-operation-step]) .kanban-column-head h3 {color:#475569}

/* Situação logística dos serviços externos, separada da cor da operação. */
.kanban-external-waits {display:flex;flex-direction:column;gap:6px;margin:10px 0}
.kanban-external-wait {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid;border-left-width:4px;border-radius:5px}
button.kanban-external-wait {width:100%;text-align:left;cursor:pointer}
button.kanban-external-wait:hover {box-shadow:inset 0 0 0 1px currentColor}
button.kanban-external-wait:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.kanban-external-wait>b {font-size:12px;line-height:1.35;font-weight:800}
.kanban-external-wait>small {font-size:11px;font-weight:700;white-space:nowrap}
.kanban-external-waits .external-wait-send {color:#166534;background:#f0fdf4;border-color:#86b89b}
.kanban-external-waits .external-wait-return {color:#b91c1c;background:#fef2f2;border-color:#e5a2a2}

/* Fluxo em linhas, uma máquina por seção, sem alterar as filas. */
.factory-layout-controls {display:flex;gap:8px;margin:16px 0}
.factory-layout-controls [aria-pressed="true"] {background:#234633;color:white;border-color:#234633}
.kanban-board.factory-list-mode {display:flex;flex-direction:column;gap:20px;overflow:visible}
.factory-list-section {border:1px solid #d8e1dd;border-top:4px solid var(--operation-color,#64748b);border-radius:9px;background:white;min-width:0;overflow:hidden}
.factory-list-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 18px;background:var(--operation-bg,#f1f5f9)}
.factory-list-heading h3 {color:var(--operation-ink,#475569);font-size:20px;margin:0 0 5px}
.factory-list-heading p {margin:0;font-size:12px;color:#5c6a63}
.factory-list-row-heading,.factory-list-order>summary {display:grid;grid-template-columns:115px minmax(145px,.9fr) minmax(210px,1.5fr) 95px minmax(160px,1fr) 90px;gap:14px;align-items:start;padding:14px 16px}
.factory-list-row-heading {background:#f6f8f7;color:#5b6a62;font-size:10px;font-weight:700;text-transform:uppercase}
.factory-list-order.kanban-order {border:0;border-left:3px solid var(--operation-color);border-bottom:1px solid #dce5df;border-radius:0;margin:0;box-shadow:none}
.factory-list-order>summary>span {min-width:0;font-size:12px;overflow-wrap:anywhere}
.factory-list-order>summary strong {display:block;font-size:13px}
.factory-list-order>summary small {display:block;margin-top:5px;color:#5a6860;font-size:11px}
.factory-list-order>summary>span>span {display:block;margin-top:4px}
.factory-list-order>summary:hover {background:var(--operation-bg);filter:brightness(.985)}
.factory-list-order .factory-list-actions {display:flex;flex-direction:column;gap:8px;color:#526459;font-size:11px}
.factory-list-order .kanban-external-waits {margin:8px 0 0}
.factory-list-order .kanban-external-wait {flex-wrap:wrap;padding:6px;gap:3px}
.factory-list-order .kanban-external-wait>b {font-size:10px}
.factory-list-order .kanban-order-pieces {background:#f7f9f8;padding:18px}
.factory-list-order .kanban-card {background:white;max-width:none}
.factory-list-order .kanban-card-actions {display:flex;flex-wrap:wrap;gap:8px}
.factory-list-order .kanban-card-actions>button {width:auto}
.factory-list-rows>.material-release-card {margin:12px 16px}
@media(max-width:1050px){.factory-list-row-heading{display:none}.factory-list-order>summary{grid-template-columns:1fr 1fr;gap:12px}.factory-list-order>summary>[data-column]:before{content:attr(data-column);display:block;color:#6b7971;font-size:10px;text-transform:uppercase;margin-bottom:4px}.factory-list-order>summary>.factory-list-actions{flex-direction:row;grid-column:1/-1;align-items:center}.factory-list-heading{align-items:flex-start}.factory-list-heading h3{font-size:17px}}

.factory-list-order>summary>span>strong {white-space:normal;overflow-wrap:anywhere}

/* Duas visualizações explícitas e seleção por máquina, pedido e item. */
.factory-layout-controls {align-items:center;flex-wrap:wrap;padding:12px;border:1px solid #d9e2dd;border-radius:8px;background:white}
.factory-layout-controls>strong {font-size:13px;margin-right:8px}
.factory-list-tools {display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 0;margin-bottom:8px}
.factory-list-tools[hidden] {display:none}
.factory-list-tools>span {font-size:13px;margin-right:auto}
.factory-list-pick {display:flex;align-items:center;justify-content:center;margin:0!important;flex:0 0 24px;min-width:24px}
.factory-list-pick input {width:18px;height:18px;margin:0;cursor:pointer}
.factory-list-machine-title {flex:1;min-width:0}
.factory-list-machine-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.factory-list-row-heading,.factory-list-order>summary {grid-template-columns:24px 95px minmax(120px,.9fr) minmax(180px,1.5fr) 75px 75px minmax(130px,1fr) 85px;gap:10px}
.factory-list-order-heading {display:flex;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid #dae3df;border-bottom:1px solid #e1e7e3;background:#f8faf9}
.factory-list-order-heading>div {flex:1;min-width:0}
.factory-list-order-heading strong {font-size:13px}
.factory-list-order-heading small {display:block;font-size:11px;color:#5d6b63;margin-top:4px}
.factory-list-order-lines[hidden],.factory-list-machine-body[hidden] {display:none}
.factory-batch-table {max-height:48vh;overflow:auto;margin-top:14px}
#factory-batch-table input {min-width:95px}
#factory-batch-table th {position:sticky;top:0;z-index:1}
#modal:has(#factory-batch-table) {width:min(1180px,calc(100vw - 40px));max-width:1180px}
.material-release-card {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px}
.material-release-info {min-width:0;flex:1}
.material-release-info>p {margin:7px 0}
.material-release-card .material-release-actions {display:flex;flex-wrap:nowrap;gap:8px;align-items:center;justify-content:flex-end;margin:0;flex-shrink:0}
.material-release-actions>span {display:inline-flex}
.material-release-actions button {white-space:nowrap}
@media(max-width:1050px){.factory-list-order>summary{grid-template-columns:24px 1fr 1fr}.factory-list-order>summary>.factory-list-pick{grid-row:span 4}.factory-list-order>summary>.factory-list-actions{grid-column:2/-1}}
@media(max-width:800px){.material-release-card .material-release-actions{flex-wrap:wrap;max-width:52%;flex-shrink:1}.material-release-actions button{font-size:12px;padding:7px 9px}.factory-list-heading{flex-wrap:wrap}.factory-list-machine-actions{margin-left:auto}}

#kanban-board:not(.factory-list-mode) .material-release-card {display:block}
#kanban-board:not(.factory-list-mode) .material-release-actions {flex-wrap:wrap;justify-content:flex-start;margin-top:10px}
.factory-list-tools>small {flex-basis:100%;color:#637269;font-size:11px}

.factory-list-mode .material-release-info .order-identity,#employee-material-release .material-release-info .order-identity {display:flex;flex-wrap:wrap;gap:3px 10px;align-items:baseline}
.factory-list-mode .material-release-info .order-identity>span,#employee-material-release .material-release-info .order-identity>span {font-size:12px}
.factory-list-mode .material-release-info .order-identity>.order-client-name,#employee-material-release .material-release-info .order-identity>.order-client-name {font-size:13px}

.factory-queue-workspace[hidden],#factory-flow-filters[hidden],#kanban-board[hidden] {display:none!important}
.factory-queue-workspace {display:flex;flex-direction:column;gap:20px;margin:18px 0}
.factory-queue-top {display:flex;align-items:center;justify-content:space-between;gap:16px}
.factory-queue-top p {font-size:13px;color:#5b6c62;margin:6px 0}
.factory-queue-panel {padding:14px;min-width:0}
.factory-queue-preview .machine-queue-moves {display:none}
.factory-queue-preview .machine-queue-item {cursor:default;grid-template-columns:52px minmax(0,1fr)}
.factory-queue-workspace .machine-queue-list {max-height:none;overflow:visible}
.factory-queue-workspace .machine-queue-item {width:100%;padding:12px 14px;margin-bottom:10px;grid-template-columns:60px minmax(0,1fr) auto}
.factory-queue-workspace .machine-queue-moves {flex-direction:row;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end}
.factory-queue-workspace .machine-queue-order {display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr);gap:4px 16px}
.factory-queue-workspace .machine-queue-order>details {grid-column:1/-1}
.factory-queue-workspace .machine-queue-order>strong {font-size:16px}
.factory-queue-workspace .machine-queue-order>p {margin:4px 0}
.factory-queue-workspace .machine-queue-position {font-size:24px}
.factory-queue-pick {display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;margin-top:12px;font-weight:500}
.factory-queue-pick input {width:18px;height:18px;margin:0}
.factory-card-select,.factory-material-pick {display:flex;align-items:center;gap:7px;margin:8px 0;font-size:11px;font-weight:650}
.factory-card-select input,.factory-material-pick input {width:18px;height:18px;margin:0}
.factory-list-mode .factory-material-pick {margin:0;flex:0 0 22px}
.factory-list-mode .factory-material-pick>span {display:none}
.factory-list-machine-actions [data-factory-batch-group],.factory-list-machine-actions [data-factory-material-batch] {white-space:nowrap}
@media(max-width:850px){.factory-queue-workspace .machine-queue-item{grid-template-columns:45px minmax(0,1fr)}.factory-queue-workspace .machine-queue-order{display:block}.factory-queue-workspace .machine-queue-moves{grid-column:2;justify-content:flex-start}.factory-queue-workspace .machine-queue-preview .machine-queue-moves{display:none}}

/* Total integral da OF e saldo após liberações para faturamento. */
.order-quantity-balance{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;line-height:1.4;color:#4b5f69;margin-top:5px}
.order-quantity-balance>span{white-space:nowrap}
.order-quantity-balance b{color:#243d48;font-weight:750}
.kanban-order>summary>.order-quantity-balance{margin:8px 0}
.material-release-info>.order-quantity-balance{margin:4px 0 7px}
.order-summary-table .order-quantity-balance{min-width:145px;display:grid;gap:3px;margin-top:0}

/* Leitura da OF: lote integral primeiro, saldo físico nesta máquina depois. */
.factory-list-order-heading .order-quantity-balance{font-size:13px;gap:5px 22px;margin-top:7px}
.factory-list-order-heading .order-quantity-current{color:#1d4035}
.factory-list-order-heading .order-quantity-current b{font-size:14px}

.factory-list-order>summary>.factory-list-total,.factory-list-order>summary>.factory-list-quantity{font-variant-numeric:tabular-nums}

#factory-inspection-table input{min-width:90px}#factory-inspection-table th{position:sticky;top:0;z-index:1}#modal:has(#factory-inspection-table){width:min(1180px,calc(100vw - 40px));max-width:1180px}

.automatic-dispatch-documents{display:grid;gap:12px}.automatic-dispatch-documents>section{padding:16px;border:1px solid #cbdad1;border-radius:8px;background:#f3faf5}.automatic-dispatch-documents small{display:block;margin:6px 0 12px;color:#5e6d64}

/* Status do pedido: somente operações com peças na etapa atual. */
.order-location-tags{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center;max-width:100%}
.order-location-name{display:inline-block;border:1px solid var(--operation-color,#64748b);border-left-width:3px;border-radius:6px;padding:4px 7px;background:var(--operation-bg,#f1f5f9);color:var(--operation-ink,#475569);font-size:11px;font-weight:750;line-height:1.35;text-transform:uppercase;overflow-wrap:anywhere}
.order-location-name[data-location-kind="material"],.order-location-name[data-location-kind="review"],.order-location-name[data-location-kind="route"],.order-location-name[data-location-kind="final"]{--operation-color:#d97706;--operation-bg:#fffbeb;--operation-ink:#92400e}
.order-location-name[data-location-kind="ready"],.order-location-name[data-location-kind="released"]{--operation-color:#15803d;--operation-bg:#f0fdf4;--operation-ink:#166534}
.order-location-name[data-location-kind="unavailable"]{--operation-color:#b91c1c;--operation-bg:#fef2f2;--operation-ink:#991b1b}

.delivery-rescheduled{display:block;color:var(--muted,#607268);font-size:11px}.delivery-reschedule-button{display:block;margin-top:5px;white-space:normal}

.factory-final-actions {display:grid;gap:6px;margin-top:7px}
button.factory-final-action {display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;max-width:100%;text-align:left;line-height:1.3}
button.factory-final-action small {color:inherit;font-size:.85em}
button.factory-final-action-pending {background:#fff2cc;color:#634500;border-color:#e5c570}
button.factory-final-action-pending:hover {background:#ffe6a6}
button.factory-final-action-ready {background:#256446;color:#fff;border-color:#256446}
button.factory-final-action-ready:hover {background:#194c35}

#order-report-form {max-width:1000px;border:1px solid #dce3df;border-radius:10px;background:#fff;padding:22px}
.report-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}
.report-filters label {display:grid;gap:5px;font-size:13px;font-weight:600}
.report-order-filter {grid-column:1/-1}
.report-actions {margin-top:16px;align-items:center}
.report-actions .muted {margin:0}

.report-types {display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 18px;padding:10px 12px 12px;border:1px solid #dce3df;border-radius:7px}
.report-types legend {padding:0 4px;font-weight:600}
.report-types label {display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.report-types input {width:auto;margin:0}

.delivery-date-line,.delivery-split,.delivery-items-table small{display:block}.delivery-status.delivery-estimated{background:#fff2d8;color:#754e10}.delivery-items-table input[type=date]{min-width:9rem}
.order-delivery-action{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;text-align:left}
.order-delivery-action:hover{background:transparent;text-decoration:underline;text-underline-offset:2px}
.order-delivery-action:focus-visible{outline:2px solid #326546;outline-offset:3px}

.order-basic-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(155px,1fr)) auto;align-items:end;gap:12px;margin-bottom:14px}
.order-basic-filters label{display:grid;gap:5px;font-size:12px;font-weight:600;color:#52655b}
#orders-view .detail>.order-quantity-balance{margin-bottom:14px}
.print-menu{position:relative;display:inline-block;white-space:normal}
.print-menu>summary{cursor:pointer;width:max-content;padding:7px 11px;border:1px solid #b7c8bb;border-radius:6px;background:#fff;color:#254536;font-weight:700;font-size:13px}
.print-menu-options{position:absolute;top:calc(100% + 5px);left:0;z-index:10;display:grid;min-width:230px;max-width:min(310px,85vw);padding:6px;border:1px solid #c5d3c8;border-radius:8px;background:#fff;box-shadow:0 6px 20px #263a3224}
.dashboard-refresh .print-menu-options{left:auto;right:0}
.print-menu-options>button,.print-menu-options>a{display:block;width:100%;border:0;text-align:left;padding:8px;font:inherit;font-size:13px;line-height:1.35}
.pieces-grid .print-menu-options{position:static;margin-top:5px;min-width:160px;box-shadow:none}
#daily-production-result{margin-top:18px}
@media(max-width:780px){.order-basic-filters{grid-template-columns:1fr 1fr}.order-basic-filters label:first-child{grid-column:1/-1}.order-basic-filters button{justify-self:start}}
@media(max-width:480px){.dashboard-top{align-items:flex-start;flex-direction:column}.dashboard-refresh .print-menu-options{left:0;right:auto}}
