.targets-intro{display:flex;align-items:center;gap:18px;padding:24px;border-radius:16px;background:linear-gradient(120deg,#eff6ff,#f0fdfa);border:1px solid #dbeafe}.targets-symbol{display:grid;place-items:center;background:white;border-radius:14px;color:#2563eb;width:58px;height:58px;flex-shrink:0}.targets-intro h2{font-size:22px;margin:0 0 6px}.targets-intro p{margin:0;color:#64748b;max-width:720px;line-height:1.6}.targets-toolbar{display:flex;align-items:center;gap:24px;margin:24px 0;color:#64748b;font-size:13px}.targets-toolbar label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#334155}.targets-toolbar input{padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:white}.targets-list{display:grid;gap:10px}.target-editor{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 22px;border:1px solid #e2e8f0;background:white;border-radius:12px}.target-machine{display:flex;align-items:center;gap:13px;flex:1;min-width:220px}.target-machine-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eff6ff;color:#3b82f6}.target-machine h3{font-size:15px;margin:0 0 5px}.target-machine small{color:#64748b;font-size:11px}.target-input{display:flex;align-items:center;gap:9px;color:#64748b;font-size:12px}.target-input input{width:115px;padding:11px;border:1px solid #cbd5e1;border-radius:8px;font-size:18px;font-weight:650;color:#0f172a}.target-saved{display:flex;align-items:center;color:#15803d;font-size:12px}.target-error{color:#b91c1c;flex-basis:100%}.target-override{flex-basis:100%;color:#92400e}.targets-footnote{font-size:12px;color:#64748b;margin-top:18px}.production-kpi{border-radius:16px!important;padding:24px!important;margin:24px 0!important;background:#fff!important}.production-kpi>h3{font-size:20px!important;color:#0f172a}.production-kpi>label{display:flex;align-items:center;gap:10px;font-size:12px;color:#64748b;margin:10px 0 18px}.production-kpi>label input{padding:8px;border:1px solid #e2e8f0;border-radius:7px}.progress-overview{display:flex;align-items:center;justify-content:space-between;margin:12px 0 18px;color:#64748b;font-size:12px}.progress-overview>span{display:flex;align-items:center;gap:7px}.live-dot{height:7px;width:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px #d1fae5}.production-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:14px}.production-progress-card{padding:19px;border:1px solid #e2e8f0;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fafc);transition:box-shadow .2s}.production-progress-card:hover{box-shadow:0 5px 20px #0f172a0a}.progress-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.progress-card-title h4{margin:0 0 4px;font-size:14px;color:#0f172a}.progress-card-title small{color:#94a3b8;font-size:10px;letter-spacing:.06em}.progress-state{display:flex;align-items:center;gap:4px;font-size:10px;color:#b91c1c;white-space:nowrap}.achieved .progress-state{color:#15803d}.unconfigured .progress-state{color:#64748b}.progress-number{display:flex;align-items:baseline;gap:5px;margin:19px 0 12px}.progress-number strong{font-size:32px;letter-spacing:-1px;color:#0f172a;line-height:1}.progress-number span{color:#94a3b8;font-size:12px}.progress-number b{margin-left:auto;font-size:14px;color:#b91c1c}.achieved .progress-number b{color:#15803d}.unconfigured .progress-number b{color:#94a3b8}.production-progress-card progress{display:block;width:100%;height:8px;appearance:none;border:0;border-radius:8px;overflow:hidden;background:#f1f5f9}.production-progress-card progress::-webkit-progress-bar{background:#f1f5f9}.production-progress-card progress::-webkit-progress-value{background:linear-gradient(90deg,#fb7185,#ef4444);border-radius:8px;transition:width .4s}.production-progress-card progress::-moz-progress-bar{background:#ef4444}.achieved progress::-webkit-progress-value{background:linear-gradient(90deg,#34d399,#059669)}.achieved progress::-moz-progress-bar{background:#10b981}.unconfigured progress::-webkit-progress-value{background:#94a3b8}.progress-detail{display:flex;justify-content:space-between;gap:8px;color:#64748b;font-size:11px;margin-top:11px}.progress-detail>span{display:flex;gap:4px;align-items:center}.production-kpi details{margin-top:20px;border-top:1px solid #eef2f6;padding-top:15px}.production-kpi details summary{cursor:pointer;color:#64748b;font-size:12px}.compact .progress-number{margin:8px 0}.compact .progress-number strong{font-size:24px}.compact .production-progress-card{padding:12px}.machine-main .production-kpi{margin:10px 16px!important;padding:14px!important}.machine-main .production-kpi>h3{font-size:13px!important}.machine-main .progress-overview{margin:5px 0 10px}@media(max-width:600px){.target-editor{padding:15px}.target-machine{flex-basis:100%}.targets-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.production-kpi{padding:16px!important}.production-progress{grid-template-columns:1fr}.targets-intro{padding:18px}.targets-intro h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.production-progress-card,.production-progress-card progress::-webkit-progress-value{transition:none}}
.wastage-modal { background:white; border-radius:16px; padding:28px; width:min(760px,96vw); max-height:94dvh; overflow:auto; box-shadow:0 20px 70px #0b20344d; }
.wastage-modal h2 { font-size:24px; margin:0 0 16px; }
.wastage-context { background:#f1f5f9; padding:14px; border-radius:8px; margin-bottom:18px; }
.wastage-context p { margin:5px 0; }
.wastage-fields { border:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.wastage-fields label,.wastage-filters label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:600; }
.wastage-fields input,.wastage-fields select,.wastage-fields textarea,.wastage-filters input,.wastage-filters select { border:1px solid #cbd5e1; background:white; border-radius:7px; padding:12px; min-height:46px; color:#172635; width:100%; }
.wastage-fields textarea { min-height:80px; resize:vertical; }
.wastage-fields .wide { grid-column:1/-1; }
.wastage-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:20px; }
.wastage-actions button,.record-wastage { min-height:44px; }
.record-wastage { border:1px solid #528bc2; background:#fff; color:#12548d; border-radius:6px; padding:7px 10px; font-size:12px; font-weight:600; white-space:normal; }
.wastage-success { background:#e2f5e7; padding:16px; color:#17672e; border-radius:8px; }
.wastage-filters { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); gap:12px; padding:18px; border:1px solid #e2e8f0; border-radius:10px; background:white; margin-bottom:20px; }
.wastage-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0; }
.wastage-chart { padding:18px; background:white; border:1px solid #e2e8f0; border-radius:10px; max-height:340px; overflow:auto; }
.wastage-chart h3 { margin:0 0 16px; }
.wastage-bar { margin-bottom:10px; font-size:12px; }
.wastage-bar>div { display:flex; justify-content:space-between; gap:12px; }
.wastage-bar meter { width:100%; height:16px; accent-color:#297bd5; }
.wastage-table { min-width:1750px; }
.wastage-table td { white-space:normal; overflow-wrap:anywhere; max-width:230px; }
.recent-wastage { margin:14px; padding:14px; border:1px solid #d7e1eb; border-radius:8px; }
.recent-wastage li { margin:10px 0; }
@media(max-width:1050px) { .wastage-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .wastage-charts { grid-template-columns:1fr; } }
@media(max-width:550px) { .wastage-fields { grid-template-columns:1fr; } .wastage-modal { padding:18px; } }

.manual-badge{display:inline-block;margin:4px 0;padding:2px 5px;border:1px solid #9ca9b9;border-radius:4px;background:#eef2f7;color:#344154;font-size:10px;font-weight:700;letter-spacing:.04em}.manual-review{color:#8b570c;white-space:normal;max-width:180px}
.machine-shell{min-height:100vh;background:#f8f9fb;color:#202b37;font-family:"Segoe UI",Arial,sans-serif;--machine-navy:#1d2a36;--machine-sidebar:224px;--machine-top:74px}
.machine-header{height:var(--machine-top);background:var(--machine-navy);color:#f6f7fa;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #35414d;position:sticky;top:0;z-index:5}.machine-brand{display:flex;align-items:center;gap:12px}.machine-brand>svg{color:#3993f5}.machine-brand strong{font-size:19px;letter-spacing:.2px}.machine-brand span{display:block;font-size:13px;color:#9ba8b5;margin-top:2px}.machine-header-right{display:flex;align-items:center;gap:22px}.machine-connection{font-size:12px;color:#b9c7d4}.machine-current{display:flex;gap:12px;align-items:center;padding:10px 16px;border:1px solid #45505d;border-radius:7px;font-size:15px}.machine-header button{background:transparent;color:white}
.machine-sidebar{position:fixed;top:var(--machine-top);bottom:0;left:0;width:var(--machine-sidebar);background:var(--machine-navy);color:#e7ebf1;display:flex;flex-direction:column;overflow-y:auto;border-right:1px solid #43505a}.machine-date-nav{padding:14px 16px 20px;display:grid;gap:2px}.machine-date-nav button{background:transparent;color:#eef1f6;justify-content:flex-start;gap:14px;text-align:left;font-size:13px;padding:6px}.machine-date-nav .selected-date{color:#90c6ff}.machine-sidebar h2{font-size:12px;letter-spacing:.8px;color:#93a0ad;font-weight:600;padding:13px 17px 10px}.machine-sidebar nav{display:grid}.machine-link{border-radius:0;min-height:48px;padding:9px 16px;background:transparent;color:#edf0f5;text-align:left;justify-content:flex-start;gap:12px;width:100%;font-size:13px}.machine-link>svg{flex-shrink:0}.machine-link>span{flex:1;line-height:1.3}.machine-link b{background:#3d4a56;min-width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:600}.machine-link.selected{background:#2b84ee;color:white}.machine-link.selected b{background:#e4f2ff;color:#2379d4}.machine-link:hover:not(:disabled):not(.selected){background:#2b3a49}.machine-link:disabled{opacity:.55}.machine-sidebar-bottom{margin-top:auto;padding:22px 16px 24px}.machine-sidebar-bottom button{border:1px solid #485460;border-radius:6px;white-space:nowrap;width:100%;background:transparent;color:#edf1f5;font-size:13px}.machine-sidebar-bottom>span{font-size:12px;color:#a7b8c8}
.machine-main{margin:0 0 0 var(--machine-sidebar);padding:0;max-width:none;min-width:0}.machine-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 17px 18px 25px;border-bottom:1px solid #e8ebef;background:#fcfcfd}.machine-title{display:flex;align-items:center;gap:24px;min-width:0}.machine-title>svg{flex-shrink:0}.machine-title h1{font-size:32px;font-weight:700;letter-spacing:-.6px;line-height:1.2}.machine-title p{font-size:14px;color:#78818e;margin-top:6px}.machine-title p span{padding:0 10px}.machine-summary{display:flex;gap:14px}.machine-stat{width:140px;min-height:66px;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center}.machine-stat strong{font-size:28px;line-height:1.1;font-weight:700}.machine-stat span{font-size:13px;margin-top:3px}.machine-stat.green{background:#e7f7e8;color:#14662b}.machine-stat.blue{background:#e8f2ff;color:#1665b6}.machine-stat.grey{background:#eceef3;color:#55606d}.machine-preview-notice{padding:7px 24px;background:#eef4fa;color:#556b80;border-bottom:1px solid #dde6ef;font-size:11px;line-height:1.5}.machine-preview-notice button{min-height:28px;margin-left:14px;background:transparent;text-decoration:underline;color:#2169b0}.machine-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px 14px 24px}.machine-calendar{display:flex;align-items:center;gap:10px;font-size:13px}.machine-calendar strong{font-weight:600}.machine-search{display:flex;align-items:center;border:1px solid #d2d8e1;border-radius:6px;padding:0 10px;color:#8b95a4;width:290px;background:#fff;gap:8px}.machine-search input{border:0;background:transparent;outline:none;min-width:0;width:100%;font-size:13px;min-height:36px}.machine-search:focus-within{outline:2px solid #2d88ec}
.machine-schedule{margin:0 16px 0 14px;background:white}.machine-schedule .table-scroll{max-height:calc(100vh - 310px);min-height:110px;border:1px solid #e1e5eb;border-radius:3px}.machine-schedule table{table-layout:fixed;min-width:1230px;width:100%;font-size:13px;color:#202b36}.machine-schedule th{text-transform:none;letter-spacing:0;color:#26313f;background:linear-gradient(#f6f7fa,#e9edf3);font-size:12px;font-weight:600;white-space:normal;line-height:1.25;text-align:center;height:49px;padding:7px 6px;border-right:1px solid #dfe3ea}.machine-schedule td{padding:5px 7px;height:48px;border:1px solid #e6e9ee;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}.machine-schedule tr:nth-child(even):not(.completed-row) td{background:#f3f7fb}.machine-schedule .completed-row td{background:#e2f7e3;border-color:#d4e9d7}.machine-schedule .completed-row:hover td{background:#d9f2dd}.machine-schedule .order{color:#192631;font-weight:750;font-size:14px}.machine-schedule .product-cell{min-width:0;max-width:none;text-align:left}.machine-schedule .notes-cell{min-width:0;max-width:none;text-align:left;font-size:12px}.machine-schedule .completion-target{justify-content:center;min-height:44px;width:44px;gap:0}.machine-schedule .completion-target input{width:23px;height:23px;min-height:23px;margin:0;accent-color:#07882d}.machine-schedule .completion-target span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.machine-schedule .row-error{min-width:125px;position:relative;background:#fff3f1;padding:6px;z-index:2}.machine-schedule td small{font-size:10px;color:#75818e;margin-top:3px}.machine-schedule .status{border-radius:20px;font-size:12px;padding:3px 10px;background:#e5e8ed;color:#384453;line-height:1.35;white-space:normal}.machine-schedule .status.confirmed{background:#74c981;color:white}.machine-schedule .status.picking{background:#acd4ff;color:#1763b1}.machine-schedule .status.issue{background:#ffe1df;color:#9b3434}.machine-schedule .quantity{font-weight:500}.machine-empty{text-align:center;padding:40px;color:#778493}.machine-footer{display:flex;align-items:center;justify-content:space-between;padding:23px 24px;color:#6f7b8b;font-size:12px;gap:15px}.machine-footer>div{display:flex;gap:18px}.machine-footer>div>span{display:flex;align-items:center;gap:7px}.machine-footer i{display:inline-block;width:15px;height:15px;background:white;border:1px solid #e0e5eb;border-radius:4px}.machine-footer i.legend-completed{background:#d5f2da;border-color:#d5f2da}
@media(min-width:1500px){.machine-schedule table{font-size:14px}.machine-schedule td{height:52px}}
@media(max-width:1150px){.machine-shell{--machine-sidebar:200px}.machine-heading{padding-left:18px;gap:12px}.machine-title{gap:12px}.machine-title h1{font-size:27px}.machine-title>svg{width:38px}.machine-title p{font-size:12px}.machine-title p span{padding:0 4px}.machine-stat{width:102px}.machine-summary{gap:8px}.machine-stat span{font-size:11px}.machine-link{padding:8px 12px;gap:9px;font-size:12px}}
@media(max-width:800px){.machine-shell{--machine-sidebar:180px}.machine-header{padding:0 12px}.machine-brand strong{font-size:16px}.machine-current{font-size:12px;padding:8px}.machine-connection{display:none}.machine-heading{align-items:flex-start;flex-direction:column}.machine-summary{width:100%}.machine-stat{flex:1;min-height:58px}.machine-title h1{font-size:26px}.machine-toolbar{align-items:flex-start;flex-direction:column;gap:12px;padding-left:15px}.machine-search{width:100%}.machine-footer{align-items:flex-start;flex-direction:column;padding:16px}.machine-schedule .table-scroll{max-height:60vh}.machine-sidebar-bottom{padding:15px 8px}.machine-sidebar-bottom button{font-size:11px}.machine-link{font-size:11px;gap:7px}.machine-link svg{width:18px}.machine-date-nav{padding:10px}.machine-date-nav button{font-size:11px;gap:9px}}
@media(max-width:550px){.machine-shell{--machine-sidebar:145px}.machine-brand span,.machine-current svg{display:none}.machine-brand{gap:7px}.machine-brand>svg{width:27px}.machine-brand strong{font-size:13px}.machine-current{font-size:11px;padding:5px}.machine-header-right{gap:5px}.machine-link{padding:8px;gap:5px}.machine-link b{min-width:20px;width:20px;height:20px;font-size:10px}.machine-heading{padding:14px 10px}.machine-title>svg{display:none}.machine-title h1{font-size:23px}.machine-stat strong{font-size:23px}.machine-stat span{font-size:10px}.machine-stat{width:auto}.machine-preview-notice{padding:7px 10px}}
/* Preserve readable column widths; smaller screens scroll horizontally. */
.machine-schedule table{min-width:1286px}.machine-schedule td:first-child{padding:0}.machine-schedule .completion-target{margin:auto}.machine-schedule .completion-target input{width:26px;height:26px;min-height:26px}.machine-schedule td{padding-top:3px;padding-bottom:3px;height:44px}.machine-schedule .table-scroll{max-height:calc(100vh - 325px)}
.machine-schedule table{min-width:1358px}.machine-schedule .quantity .secondary{font-size:11px;overflow-wrap:normal;word-break:normal;padding:6px;min-width:96px}

.machine-range{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.machine-range label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.machine-range input{min-height:44px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#1e293b}.machine-range button{min-height:44px}.machine-range small{flex-basis:100%;color:#64748b}.machine-day-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 12px;margin:0;background:#eef3f8;color:#1e293b;font-size:15px}.machine-day-heading span{font-size:12px;font-weight:400}
/* Stage 10: one schedule scroll area and compact workstation controls. */
.machine-shell{--machine-top:56px;height:100dvh;overflow:hidden}.machine-main{height:calc(100dvh - var(--machine-top));display:flex;flex-direction:column;overflow:hidden}.machine-heading{padding:9px 14px;gap:12px;flex-shrink:0}.machine-title h1{font-size:25px}.machine-title>svg{width:32px;height:32px}.machine-title{gap:12px}.machine-title p{margin-top:3px;font-size:12px}.machine-stat{min-height:49px;width:105px}.machine-stat strong{font-size:23px}.machine-stat span{font-size:11px}.machine-toolbar{padding:7px 14px;gap:10px}.machine-range{padding:7px 14px;gap:8px}.machine-range label{font-size:11px;gap:2px}.machine-range small{display:none}.machine-schedule{flex:1;min-height:120px;display:flex;flex-direction:column;margin:0 12px}.machine-schedule .table-scroll{flex:1;max-height:none!important;min-height:0;overflow:auto;isolation:isolate}.machine-schedule table{min-width:1460px;border-collapse:separate;border-spacing:0}.machine-schedule th{position:sticky;top:0;z-index:3}.machine-schedule .scheduled-date-cell,.machine-schedule .production-order-cell{position:sticky;z-index:2;background:#fff}.machine-schedule .scheduled-date-cell{left:0}.machine-schedule .production-order-cell{left:95px;box-shadow:2px 0 3px #20343815}.machine-schedule th:nth-child(2){left:0;z-index:4}.machine-schedule th:nth-child(4){left:95px;z-index:4}.machine-footer{padding:7px 14px;flex-shrink:0}.machine-main>.recent-wastage{margin:4px 14px;max-height:90px;overflow:auto}.machine-main>.production-kpi{margin:5px 14px!important;padding:8px 12px!important;flex-shrink:0}.machine-main .progress-overview,.machine-main .progress-card-title small,.machine-main .progress-card-title h4,.machine-main .production-kpi>small{display:none}.machine-main .production-progress-card{display:grid;grid-template-columns:1fr 2fr 2fr;gap:10px;align-items:center;padding:6px 8px}.machine-main .progress-number{margin:0}.machine-main .progress-number strong{font-size:21px}.machine-main .progress-detail{margin:0}.machine-main .production-progress-card progress{grid-column:2/4}.machine-main .production-kpi>h3{font-size:12px!important;margin-bottom:5px}.navigation-toggle{min-width:44px;font-size:22px;background:transparent;color:inherit}.machine-header .navigation-toggle{margin-right:10px}.machine-brand{margin-right:auto}.machine-shell.nav-collapsed{--machine-sidebar:64px}.nav-collapsed .machine-sidebar .machine-link>span,.nav-collapsed .machine-sidebar .machine-link>b,.nav-collapsed .machine-date-nav span,.nav-collapsed .machine-sidebar h2,.nav-collapsed .machine-sidebar-bottom{display:none}.nav-collapsed .machine-link{justify-content:center;padding:8px}.nav-collapsed .machine-date-nav{padding:8px}.navigation-scrim{display:none}
@media(max-width:700px){.machine-shell,.machine-shell.nav-collapsed{--machine-sidebar:0px}.machine-sidebar{display:none;width:240px;z-index:30;top:56px}.nav-open .machine-sidebar{display:flex}.nav-open .machine-sidebar .machine-link>span,.nav-open .machine-sidebar .machine-link>b,.nav-open .machine-date-nav span,.nav-open .machine-sidebar h2,.nav-open .machine-sidebar-bottom{display:initial}.nav-open .machine-link{justify-content:flex-start}.navigation-scrim{display:block;position:fixed;inset:56px 0 0;z-index:25;background:#0006;width:100%;height:calc(100% - 56px)}.machine-heading{flex-direction:row;align-items:center;gap:7px}.machine-title h1{font-size:18px}.machine-title p{font-size:10px}.machine-title>svg{display:none}.machine-stat{width:55px;min-height:42px}.machine-stat strong{font-size:18px}.machine-stat span{font-size:8px}.machine-toolbar{flex-direction:row;flex-wrap:wrap}.machine-calendar{font-size:11px}.machine-search{width:100%;display:flex}.machine-range{gap:5px}.machine-range input{max-width:145px}.machine-range button{font-size:10px;padding:5px}.machine-range label{flex:1}.machine-current{display:none}.machine-footer{font-size:10px;flex-direction:row}.machine-footer>div{display:none}.machine-main .production-progress-card{grid-template-columns:1fr 2fr}.machine-main .production-progress-card progress{grid-column:1/3}.machine-main .progress-detail{grid-column:1/3}.machine-main .production-kpi{margin:4px 12px!important}.machine-brand strong{font-size:15px}}
.machine-main .production-progress-card{grid-template-columns:110px minmax(170px,1fr) minmax(100px,1fr) auto;gap:12px;border:0;background:transparent;padding:2px 0}.machine-main .production-progress-card progress{grid-column:auto}.machine-main .progress-detail{grid-column:auto}.machine-main .production-progress{display:block}.machine-main .recent-wastage{padding:7px 10px}.machine-main .machine-toolbar,.machine-main .machine-range{flex-shrink:0}.machine-main .production-kpi>h3{margin:0 0 6px!important}
@media(max-width:700px){.machine-main .production-progress-card{grid-template-columns:90px 1fr;gap:5px 10px}.machine-main .production-progress-card progress{grid-column:1/3}.machine-main .progress-detail{grid-column:1/3}.machine-summary{width:auto}.machine-stat{flex:none}.machine-heading{padding:8px 10px}.machine-main .machine-title h1{font-size:17px}}
.machine-schedule table{width:1460px;min-width:1460px;max-width:1460px}
.machine-schedule .completion-target{position:relative}.machine-schedule th{overflow:hidden}
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Segoe UI", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .fixed {
    position: fixed;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .items-center {
    align-items: center;
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .rounded {
    border-radius: .25rem;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

.auth-screen {
  background: #162d31;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 36px;
}

.auth-card > svg {
  color: #24796d;
  margin-bottom: 18px;
}

.auth-card h1 {
  font-size: 28px;
}

.auth-card p {
  color: #70868a;
  margin: 12px 0 24px;
  line-height: 1.7;
}

.auth-card form {
  gap: 18px;
  display: grid;
}

.auth-card label {
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.auth-card input {
  border: 1px solid #cddcdb;
  border-radius: 6px;
  width: 100%;
  padding: 10px;
}

.auth-card small {
  color: #80969a;
  line-height: 1.7;
}

.auth-card > .text-button {
  margin-left: 15px;
}

.session-tools {
  align-items: center;
  gap: 15px;
  display: flex;
}

.connection.connected span {
  background: #238466;
}

.completed-row td {
  background: #e4f3e7;
  border-top-color: #cde3d2;
}

.completed-row:hover td {
  background: #dcefe1;
}

.completion-target {
  cursor: pointer;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-size: 11px;
  display: flex;
}

.completion-target input {
  accent-color: #24796d;
  cursor: pointer;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 9px;
}

.completion-target input:disabled {
  cursor: not-allowed;
}

.pick-editor {
  min-width: 215px;
}

.pick-editor form {
  gap: 6px;
  display: flex;
}

.pick-editor input {
  background: #fff;
  border: 1px solid #cbdad7;
  border-radius: 5px;
  width: 140px;
  padding: 8px;
  font-size: 12px;
}

.pick-editor .text-button {
  min-height: 32px;
  font-size: 10px;
}

.row-error {
  white-space: normal;
  color: #a53c30;
  max-width: 240px;
  margin-top: 7px;
  font-size: 11px;
}

.import-date {
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  font-weight: 600;
  display: flex;
}

.import-date select {
  background: #fff;
  border: 1px solid #cbdad7;
  border-radius: 5px;
  padding: 8px 16px;
}

.import-review {
  background: #f2f7f5;
  border: 1px solid #d2e4dc;
  border-radius: 8px;
  margin-top: 20px;
  padding: 20px;
}

.import-review details {
  margin: 15px 0;
  font-size: 12px;
}

.import-review summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

.import-review ul {
  max-height: 220px;
  padding-left: 22px;
  list-style: outside;
  overflow: auto;
}

.import-confirm {
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
}

.import-confirm input {
  accent-color: #24796d;
  width: 24px;
  min-width: 24px;
}

.station-card progress {
  accent-color: #24796d;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  display: block;
}

:root {
  font-family: var(--font-sans);
  color: #203438;
  font-synthesis: none;
  background: #f5f7f8;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #30a896;
}

button, input, select {
  min-height: 44px;
}

button {
  transition: background .15s;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  letter-spacing: -1.1px;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
}

h2 {
  letter-spacing: -.3px;
  font-size: 18px;
  font-weight: 650;
}

h3 {
  font-weight: 600;
}

small {
  font-size: 11px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  color: #f4f8f8;
  background: #162d31;
  flex-direction: column;
  flex: none;
  width: 240px;
  padding: 32px 18px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  align-items: center;
  gap: 12px;
  padding: 0 8px 44px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.15;
  display: flex;
}

.brand span {
  letter-spacing: 3.6px;
  color: #a9c0c2;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 500;
  display: block;
}

.brand-icon {
  color: #94d8c4;
  background: #2a4549;
  border-radius: 10px;
  place-items: center;
  width: 42px;
  height: 44px;
  display: grid;
}

.nav-label {
  letter-spacing: 1.7px;
  color: #809e9f;
  padding: 0 15px 13px;
  font-size: 10px;
}

.sidebar nav {
  gap: 5px;
  display: grid;
}

.nav-item {
  color: #b7c9cb;
  text-align: left;
  background: none;
  border-radius: 7px;
  justify-content: flex-start;
  padding: 12px 14px;
}

.nav-item span {
  flex: 1;
}

.nav-item:hover {
  background: #243f43;
}

.nav-item.active {
  color: #fff;
  background: #2c514f;
  box-shadow: inset 3px 0 #6ed4b8;
}

.sidebar-note {
  background: #203b3f;
  border: 1px solid #365054;
  border-radius: 9px;
  margin: auto 7px 26px;
  padding: 18px 15px;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note p {
  color: #a5bdbf;
  margin: 12px 0 5px;
  font-size: 12px;
  line-height: 1.7;
}

.sidebar-note button {
  color: #8fdcc7;
  background: none;
  justify-content: flex-start;
  padding: 0;
  font-size: 12px;
}

.sidebar-footer {
  color: #dce9e9;
  text-align: left;
  background: none;
  border-top: 1px solid #31494d;
  justify-content: flex-start;
  padding: 18px 6px 0;
  font-size: 12px;
}

.sidebar-footer span {
  color: #88a5a8;
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

.sidebar-footer > svg {
  margin-left: auto;
}

.avatar {
  background: #3b565a;
  border-radius: 50%;
  place-items: center;
  width: 35px;
  height: 35px;
  font-size: 11px;
  display: grid;
}

.workspace {
  flex: 1;
  min-width: 0;
  margin-left: 240px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e1e7e8;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 36px;
  display: flex;
}

.breadcrumb {
  color: #7b898c;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  display: flex;
}

.breadcrumb strong {
  color: #354b50;
  font-weight: 500;
}

.connection {
  color: #687c80;
  border: 1px solid #e3e8e8;
  border-radius: 5px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 11px;
  display: flex;
}

.connection span {
  background: #85979a;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

main {
  max-width: 1800px;
  margin: auto;
  padding: 33px 36px 20px;
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  display: flex;
}

.eyebrow {
  letter-spacing: 1.65px;
  color: #7a8c90;
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 650;
}

.page-heading p {
  color: #73858a;
  margin-top: 8px;
  font-size: 13px;
}

.primary {
  color: #fff;
  white-space: nowrap;
  background: #24796d;
  border-radius: 6px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 600;
}

.primary:hover:not(:disabled) {
  background: #1c6359;
}

.secondary {
  color: #41565b;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 550;
}

.secondary:hover:not(:disabled) {
  background: #f0f5f4;
}

.text-button {
  color: #24796d;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.overview-date {
  color: #71868a;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
}

.section-kicker {
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 650;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  display: grid;
}

.metric {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 9px;
  padding: 18px 20px;
  box-shadow: 0 2px 3px #193d4503;
}

.metric-label {
  color: #64787c;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.metric-symbol {
  color: #8a9b9e;
  background: #f1f4f5;
  border-radius: 7px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

.metric-symbol.teal {
  color: #398e7b;
  background: #e7f3ee;
}

.metric > strong {
  margin: 12px 0 9px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  display: block;
}

.metric > small {
  color: #8a999d;
  font-size: 10px;
  display: block;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

.section-heading p {
  color: #819095;
  margin-top: 5px;
  font-size: 12px;
}

.stations-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.station-card {
  text-align: left;
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  padding: 14px 15px 15px;
  display: block;
}

.station-card:hover {
  background: #f0f7f4;
  border-color: #9fc7ba;
}

.station-top {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}

.station-top > svg {
  color: #aab8bb;
  margin-left: auto;
}

.station-number {
  color: #508279;
  background: #edf5f2;
  border-radius: 4px;
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 600;
}

.station-code {
  color: #82969a;
  letter-spacing: .65px;
  font-size: 9px;
}

.station-card h3 {
  margin-bottom: 13px;
  font-size: 13px;
}

.station-bottom {
  border-top: 1px solid #edf1f1;
  justify-content: space-between;
  align-items: center;
  padding-top: 11px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}

.station-bottom small {
  color: #809197;
  font-size: 10px;
  font-weight: 400;
}

.schedule-heading {
  margin-top: 30px;
}

.schedule-panel {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 9px;
  overflow: hidden;
}

.filters {
  border-bottom: 1px solid #e9eeee;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 17px;
  display: flex;
}

.search {
  color: #85999d;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  padding: 0 11px;
  display: flex;
}

.search input {
  background: none;
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.search:focus-within {
  outline: 2px solid #30a896;
}

.filters select, .station-picker select {
  color: #536b70;
  background: #fff;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  padding: 0 28px 0 12px;
  font-size: 12px;
}

.row-count {
  color: #7e9296;
  padding-left: 6px;
  font-size: 11px;
}

.table-scroll {
  max-height: 650px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}

th {
  color: #768c91;
  letter-spacing: .45px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  background: #f7f9f9;
  padding: 13px 16px;
  font-size: 10px;
  font-weight: 650;
  position: sticky;
  top: 0;
}

td {
  white-space: nowrap;
  border-top: 1px solid #edf1f1;
  padding: 15px 16px;
  line-height: 1.5;
}

td small {
  color: #87999d;
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

td strong {
  font-weight: 600;
}

.order {
  color: #306b63;
}

.product-cell {
  white-space: normal;
  min-width: 230px;
  max-width: 330px;
}

.notes-cell {
  white-space: normal;
  min-width: 280px;
  max-width: 420px;
}

.quantity {
  font-weight: 650;
}

.status {
  color: #75898e;
  background: #eff2f3;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  display: inline-block;
}

.status.confirmed {
  color: #27785f;
  background: #e9f4ed;
}

.status.open {
  color: #987129;
  background: #fbf2db;
}

.empty {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  display: flex;
}

.empty-icon {
  color: #599184;
  background: #edf4f2;
  border-radius: 16px;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  display: grid;
}

.empty h3 {
  font-size: 16px;
}

.empty p {
  color: #85969b;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.7;
}

.table-footer {
  color: #8b9ca0;
  background: #fdfefe;
  border-top: 1px solid #e9eeee;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  font-size: 10px;
  display: flex;
}

.table-footer > span:first-child {
  align-items: center;
  gap: 6px;
  display: flex;
}

.main-footer {
  letter-spacing: 1px;
  color: #9caaad;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 9px;
  display: flex;
}

.main-footer span {
  letter-spacing: 0;
}

.notice, .info-strip {
  color: #477a6b;
  background: #eaf3f1;
  border: 1px solid #cce0d9;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
}

.notice button {
  background: none;
  margin-left: auto;
}

.import-steps {
  color: #9badb0;
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
}

.step {
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.step b {
  font-weight: 500;
}

.step.current {
  color: #237e6b;
}

.upload-zone {
  text-align: center;
  background: #f0f6f3;
  border: 1px dashed #b8cfca;
  border-radius: 10px;
  padding: 35px;
}

.upload-icon {
  color: #448d7b;
  justify-content: center;
  margin-bottom: 10px;
  display: flex;
}

.upload-zone p {
  color: #81938f;
  margin: 12px 0 20px;
  font-size: 12px;
  line-height: 1.8;
}

.validation {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  margin-top: 20px;
  padding: 22px;
}

.validation p {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}

.error-list {
  color: #9a4938;
  background: #fff0ec;
  border-radius: 6px;
  max-height: 250px;
  padding: 10px 15px;
  overflow: auto;
}

.warning {
  color: #987129;
}

.muted {
  color: #8b9da0;
}

.station-picker {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  padding: 18px;
  display: flex;
}

.station-picker label {
  font-size: 12px;
  font-weight: 600;
}

.station-picker span {
  color: #8a9da0;
  font-size: 11px;
}

.copy-actions {
  border-bottom: 1px solid #e9eeee;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px;
  display: flex;
}

.copy-actions small {
  color: #8a9da0;
  width: 100%;
  padding-top: 5px;
}

.modal-backdrop {
  z-index: 10;
  background: #10292e80;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.setup-modal {
  color: #416762;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 35px;
  position: relative;
}

.setup-modal h2 {
  margin: 14px 0;
}

.setup-modal p {
  color: #80918f;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.8;
}

.setup-modal dl {
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.8;
}

.setup-modal dt {
  margin-top: 12px;
  font-weight: 650;
}

.setup-modal dd {
  color: #81928f;
  margin: 0;
}

.close {
  color: #8a999a;
  background: none;
  position: absolute;
  top: 12px;
  right: 15px;
}

@media (min-width: 1500px) {
  .stations-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 26px 13px;
  }

  .workspace {
    margin-left: 210px;
  }

  main {
    padding: 28px 24px;
  }

  .topbar {
    padding: 0 24px;
  }

  .stations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics {
    gap: 10px;
  }

  .metric {
    padding: 15px;
  }

  .page-heading {
    align-items: flex-start;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 850px) {
  .sidebar {
    width: 100%;
    padding: 16px 18px;
    position: static;
  }

  .brand {
    padding: 0 0 17px;
    font-size: 18px;
  }

  .brand span {
    font-size: 8px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .sidebar nav {
    gap: 5px;
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    white-space: nowrap;
    min-height: 46px;
    padding: 10px;
    font-size: 12px;
  }

  .nav-item > svg:last-child:not(:first-child), .sidebar-note, .sidebar-footer, .nav-label {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    height: 52px;
    padding: 0 22px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  main {
    padding: 24px 22px;
  }

  .station-picker {
    flex-wrap: wrap;
  }

  .page-heading {
    gap: 15px;
  }

  .page-heading .primary {
    min-height: 46px;
  }

  .table-scroll {
    max-height: 65vh;
  }
}

@media (max-width: 580px) {
  main {
    padding: 24px 15px;
  }

  .page-heading {
    flex-direction: column;
  }

  h1 {
    font-size: 27px;
  }

  .stations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .filters > * {
    flex: 1;
  }

  .filters .row-count {
    flex-basis: 100%;
  }

  .table-footer {
    flex-direction: column;
  }

  .import-steps {
    gap: 8px;
    padding: 15px;
  }

  .step {
    gap: 5px;
    font-size: 10px;
  }

  .station-picker select {
    max-width: 100%;
  }

  .main-footer {
    gap: 16px;
    font-size: 8px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric > small {
    font-size: 9px;
  }
}

.production-kpi {
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}

.production-kpi h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.kpi-grid {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.kpi-card {
  background: #f0f2f5;
  border-radius: 6px;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 210px;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
}

.kpi-card.on-target {
  color: #145b2d;
  background: #e1f5e5;
}

.kpi-card.below-target {
  color: #8c2424;
  background: #fff0f0;
}

.production-history {
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.production-history small {
  display: block;
}

.wastage-modal fieldset {
  border: 0;
  gap: 12px;
  padding: 0;
  display: grid;
}

.wastage-modal label {
  gap: 5px;
  display: grid;
}

.wastage-modal input, .wastage-modal select, .wastage-modal textarea {
  min-height: 44px;
  padding: 10px;
}

.quantity .secondary {
  white-space: normal;
  min-height: 44px;
}

.machine-main > .production-kpi {
  margin: 8px 16px;
}

.machine-main .kpi-card {
  flex-flow: wrap;
  gap: 12px;
}

.production-kpi summary {
  cursor: pointer;
  padding: 12px;
}

.production-modal {
  max-height: 90dvh;
  position: relative;
  overflow: auto;
  padding-top: 55px !important;
}

.production-modal > .close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  font-size: 28px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.modal-cancel {
  justify-content: flex-end;
  margin-top: 16px;
  display: flex;
}

.danger-button, .delete-job {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 14px;
}

.schedule-admin {
  border: 1px solid #fecdd3;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 20px;
}

.schedule-admin p {
  color: #64748b;
  margin: 8px 0 14px;
}

.archive-review {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  margin: 12px 0;
  padding: 15px;
}

.archive-review button {
  margin: 6px;
}

.app-shell .navigation-toggle {
  color: #334155;
}

.app-shell.nav-collapsed .sidebar {
  width: 72px;
  padding: 20px 10px;
}

.app-shell.nav-collapsed .workspace {
  margin-left: 72px;
}

.app-shell.nav-collapsed .sidebar .nav-item span, .app-shell.nav-collapsed .sidebar .nav-item svg:last-child:not(:first-child), .app-shell.nav-collapsed .sidebar .brand > div:last-child, .app-shell.nav-collapsed .sidebar-note, .app-shell.nav-collapsed .sidebar-footer, .app-shell.nav-collapsed .nav-label {
  display: none;
}

.app-shell.nav-collapsed .brand {
  padding: 0 0 25px;
}

.app-shell.nav-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.app-shell .sidebar {
  z-index: 30;
  overflow-y: auto;
}

.app-shell .topbar {
  z-index: 20;
  gap: 12px;
  position: sticky;
  top: 0;
}

.app-shell .breadcrumb {
  margin-right: auto;
}

@media (min-width: 701px) and (max-width: 1000px) {
  .app-shell .sidebar {
    width: 220px;
    display: flex;
  }

  .app-shell .workspace {
    margin-left: 220px;
  }

  .app-shell.nav-collapsed .workspace {
    margin-left: 72px;
  }

  .app-shell.nav-collapsed .sidebar {
    width: 72px;
  }
}

@media (max-width: 700px) {
  .app-shell .sidebar, .app-shell.nav-collapsed .sidebar {
    width: 240px;
    display: none;
    top: 52px;
  }

  .app-shell.nav-open .sidebar {
    display: flex;
  }

  .app-shell .workspace, .app-shell.nav-collapsed .workspace {
    margin-left: 0;
  }

  .app-shell.nav-open .sidebar .nav-item span, .app-shell.nav-open .sidebar .brand > div:last-child {
    display: initial;
  }

  .app-shell .sidebar .nav-item {
    justify-content: flex-start;
  }

  .app-shell .navigation-scrim {
    inset: 52px 0 0;
  }

  .app-shell .topbar {
    padding: 0 12px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
/* Stage 12 shared visual language. Business rules and database APIs are unchanged. */
:root{--pc-bg:#f7f8fc;--pc-surface:#fff;--pc-text:#252637;--pc-muted:#657084;--pc-border:#e6e8ef;--pc-accent:#6548df;--pc-accent-soft:#eee9ff;--pc-success:#137c59;--pc-success-soft:#eefaf4;--pc-warning:#97610b;--pc-warning-soft:#fff7e8;--pc-danger:#b53549;--pc-radius:12px;--pc-shadow:0 2px 8px #25263704;color:var(--pc-text);background:var(--pc-bg);font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px}
body{background:var(--pc-bg);color:var(--pc-text)}h1{font-size:27px;letter-spacing:-.7px}h2{font-size:18px}button,input,select,textarea{font:inherit;border-radius:8px}button{min-height:44px;transition:none}input,select,textarea{color:var(--pc-text);border:1px solid var(--pc-border);background:var(--pc-surface);padding:9px 12px;min-height:44px}input[type=checkbox]{padding:0;accent-color:var(--pc-accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #8065ed;outline-offset:3px}.primary,button.primary{background:var(--pc-accent);color:white;border:1px solid var(--pc-accent);box-shadow:none}.primary:hover{background:#5334cc}.secondary,button.secondary{background:white;border:1px solid var(--pc-border);color:#45495d;box-shadow:none}.text-button{color:var(--pc-accent)}button:disabled{opacity:.55}.danger-button,.delete-job{color:var(--pc-danger);background:#fff5f6;border:1px solid #efd4d9}.notice,.info-strip{background:#f0edfd;color:#514080;border:1px solid #e0d9f8;border-radius:var(--pc-radius)}.row-error,[role=alert]{color:var(--pc-danger)}
.sidebar{width:206px;padding:24px 12px 14px;background:#f2f4f9;border-right:1px solid var(--pc-border);color:var(--pc-text)}.workspace{margin-left:206px}.brand{font-size:16px;padding:0 6px 28px;gap:10px}.brand span{color:#42465a;letter-spacing:1.2px;font-size:11px}.brand-icon{background:transparent;color:var(--pc-accent);width:30px}.nav-label{color:var(--pc-muted);font-size:10px}.nav-item{color:#53586c;border-radius:8px;font-size:13px;padding:10px 12px}.nav-item:hover{background:#e9e7f4}.nav-item.active{background:var(--pc-accent-soft);color:#5739cd;box-shadow:inset 3px 0 var(--pc-accent)}.sidebar-note{background:transparent;border:0;padding:12px 4px;margin-bottom:10px}.sidebar-note p,.sidebar-footer span{color:var(--pc-muted)}.sidebar-note button{color:var(--pc-accent)}.sidebar-footer{color:var(--pc-text);border-color:var(--pc-border)}.avatar{background:var(--pc-accent);color:white;flex-shrink:0}.topbar{height:64px;padding:0 22px;gap:14px;background:white;border-color:var(--pc-border)}.global-search{display:flex;align-items:center;gap:9px;max-width:420px;flex:1;border:1px solid var(--pc-border);border-radius:8px;padding:0 11px;color:var(--pc-muted)}.global-search input{border:0;min-width:0;width:100%;padding:9px 0;background:transparent}.global-date{margin-left:auto;max-width:180px}.profile-chip{background:transparent;text-align:left;font-size:12px;gap:8px;white-space:nowrap}.profile-chip small{display:block;color:var(--pc-muted);text-transform:capitalize;font-size:11px}.session-tools{gap:8px}.navigation-toggle{color:#66687c;font-size:15px}.workspace>main{padding:24px;max-width:1800px}.page-heading{margin-bottom:22px;gap:12px;align-items:center}.page-heading>div{flex:1}.eyebrow{display:none}.page-heading p{color:var(--pc-muted);font-size:13px;margin-top:6px}.page-heading .secondary{background:var(--pc-accent);color:white;border-color:var(--pc-accent)}.page-heading .primary{background:white;color:#42465a;border-color:var(--pc-border)}.overview-date{margin-bottom:12px}.section-kicker{color:var(--pc-muted)}.metric,.station-card,.schedule-panel,.production-kpi,.validation,.target-editor,.wastage-summary>*,.wastage-chart{background:white;border:1px solid var(--pc-border);border-radius:var(--pc-radius);box-shadow:var(--pc-shadow)}.metrics{gap:12px}.metric{padding:18px}.metric-label{color:#42465a}.metric strong{font-size:30px;color:#252637}.metric small{color:var(--pc-muted)}.metric-symbol,.metric-symbol.teal{color:var(--pc-accent);background:var(--pc-accent-soft);border-radius:10px}.metric:nth-child(2) .metric-symbol{color:var(--pc-success);background:#e2f6ed}.metric:nth-child(4) .metric-symbol{color:var(--pc-warning);background:var(--pc-warning-soft)}.stations-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.station-card{padding:14px;text-align:left;color:var(--pc-text)}.station-card:hover{border-color:#c8baf5;background:#fdfcff}.station-number{color:var(--pc-accent);background:var(--pc-accent-soft)}.station-code,.station-bottom small{color:var(--pc-muted)}.station-card h3{font-size:14px;margin:12px 0}.station-card progress{accent-color:var(--pc-accent)}.section-heading{margin:22px 0 13px}.section-heading p{color:var(--pc-muted)}
.table-scroll{border-color:var(--pc-border)}table{font-size:13px}th{background:#f8f9fc;color:#606779;border-color:var(--pc-border);font-size:11px;text-transform:none;letter-spacing:0;padding:12px 10px}td{padding:10px;border-color:#edf0f5;color:#35394a}.order{color:#26283a}.status,.machine-schedule .status{border-radius:6px;background:#f0f1f5;color:#525b6c;font-size:11px;font-weight:600;padding:4px 8px}.status.confirmed,.machine-schedule .status.confirmed{background:#ddf5e9;color:#157a56}.status.picking,.machine-schedule .status.picking{background:#fff1d7;color:#8c5c09}.status.issue,.machine-schedule .status.issue{background:#ffe7eb;color:#ac3447}.completed-row td,.machine-schedule .completed-row td{background:var(--pc-success-soft);border-color:#e7f1ed}.completed-row:hover td,.machine-schedule .completed-row:hover td{background:#e5f7ed}.partial-indicator{display:block;color:var(--pc-warning);background:var(--pc-warning-soft);border-radius:5px;padding:3px;font-size:10px}.partial-row td:first-child{box-shadow:inset 3px 0 #d49a31}.urgent-row td:first-child{box-shadow:inset 3px 0 #ce5367}.urgent-row .notes-cell{color:#ad3548}.manual-badge{background:var(--pc-accent-soft);color:#6243c4}.completion-target input{accent-color:var(--pc-success)}.filters{padding:14px;gap:10px;background:white}.filters input,.filters select{border-color:var(--pc-border)}.table-footer,.main-footer{color:var(--pc-muted);border-color:var(--pc-border)}.empty-icon{background:var(--pc-accent-soft);color:var(--pc-accent)}.empty{padding:38px 20px}
.production-kpi{padding:18px!important;margin:22px 0!important;border-radius:var(--pc-radius)!important}.production-kpi>h3{font-size:17px!important}.production-progress-card{border-color:var(--pc-border);box-shadow:none;background:white;padding:15px;border-radius:10px}.production-progress-card:hover{box-shadow:none}.progress-number strong{font-size:27px}.progress-number span,.progress-card-title small{color:var(--pc-muted)}.progress-detail{color:#656d7d}.production-progress-card progress::-webkit-progress-value{background:#d65d73}.achieved progress::-webkit-progress-value{background:#199e77}.targets-intro{background:#f2efff;border:1px solid #e7e0ff;border-radius:var(--pc-radius);padding:20px}.targets-symbol,.target-machine-icon{color:var(--pc-accent);background:#f0ebff}.target-editor{padding:14px 18px}.target-input input{font-size:18px}.target-machine small{color:var(--pc-muted)}.targets-toolbar{margin:18px 0}.target-saved{color:var(--pc-success)}.wastage-filters{background:white;border-color:var(--pc-border)}.wastage-chart{padding:18px}.wastage-context{background:#f7f7fb;border:1px solid var(--pc-border)}.wastage-success{color:var(--pc-success);background:var(--pc-success-soft)}.wastage-actions{gap:10px}.import-steps{background:white;border:1px solid var(--pc-border);border-radius:var(--pc-radius);padding:18px}.step.current{color:var(--pc-accent)}.upload-zone{background:white;border:1px dashed #c9c1e5;border-radius:var(--pc-radius);padding:30px}.upload-icon{color:var(--pc-accent)}.import-review{background:#f8f7fd;border-color:#e3ddf5}.schedule-admin{background:#fffafb;border:1px solid #f0dfe3;border-radius:var(--pc-radius);padding:16px;margin:20px 0}.schedule-admin h2{font-size:15px}.schedule-admin p{color:var(--pc-muted);font-size:12px}.auth-screen{background:var(--pc-bg)}.auth-card{border:1px solid var(--pc-border);box-shadow:var(--pc-shadow)}.auth-card>svg{color:var(--pc-accent)}.modal-backdrop{background:#25233955;z-index:100;padding:18px}.wastage-modal,.setup-modal{border:1px solid var(--pc-border);border-radius:16px;box-shadow:0 10px 40px #29233a18;color:var(--pc-text);padding:26px;max-height:94dvh}.wastage-modal h2{font-size:21px;padding-right:42px}.close{color:#66687a;border:1px solid var(--pc-border);background:white;border-radius:8px;min-width:44px;min-height:44px}.wastage-fields label,.wastage-filters label{color:#4b5265}.wastage-fields input,.wastage-fields select,.wastage-fields textarea{border-color:var(--pc-border)}
/* Workstation: shared language, with schedule density taking priority. */
.machine-shell{--machine-navy:#fff;--machine-sidebar:206px;--machine-top:54px;background:var(--pc-bg);color:var(--pc-text);font-family:inherit}.machine-header{background:white;color:var(--pc-text);border-color:var(--pc-border);height:54px;padding:0 14px}.machine-header button{color:#56566c}.machine-brand strong{font-size:16px}.machine-brand span{display:none}.machine-brand>svg{color:var(--pc-accent)}.machine-header-right{gap:12px}.machine-current{display:none}.machine-connection{color:var(--pc-success);font-size:12px}.machine-connection:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px}.expand-schedule{border:1px solid var(--pc-border)!important;border-radius:8px;min-height:38px;padding:7px 12px;font-size:12px;background:white!important}.expand-schedule[aria-pressed=true]{color:var(--pc-accent);background:var(--pc-accent-soft)!important}.machine-sidebar{background:#f2f4f9;color:#56586b;border-color:var(--pc-border)}.machine-sidebar h2{color:var(--pc-muted);font-size:10px;padding:12px 16px}.machine-date-nav{padding:10px 12px}.machine-date-nav button{color:#575b70;font-size:12px}.machine-link{color:#555b6e;font-size:12px;border-radius:7px;width:calc(100% - 16px);margin:2px 8px;padding:8px 10px;min-height:42px}.machine-link.selected{background:var(--pc-accent-soft);color:var(--pc-accent)}.machine-link:hover:not(:disabled):not(.selected){background:#e9eaf3}.machine-link b{background:#e9ebf2;color:#606779;font-size:10px;height:21px;min-width:21px}.machine-link.selected b{background:#e1d8fc;color:#6240d2}.machine-sidebar-bottom button{color:#5a526f;border-color:#ddd9e9;background:white;white-space:normal}.machine-title h1{font-size:26px;color:#262637}.machine-title>svg{color:var(--pc-accent);background:var(--pc-accent-soft);padding:7px;width:44px;height:44px;border-radius:10px}.machine-title p{color:var(--pc-muted);font-size:11px}.machine-heading{padding:14px 16px;border:0}.machine-summary{gap:8px}.machine-stat,.machine-stat.green,.machine-stat.blue,.machine-stat.grey{background:white;border:1px solid var(--pc-border);border-radius:9px;min-height:58px;width:112px;color:#35394d}.machine-stat strong{font-size:23px}.machine-stat span{font-size:10px;color:#687084}.machine-stat.green strong{color:var(--pc-success)}.machine-stat.blue strong{color:var(--pc-accent)}.machine-main>.production-kpi{margin:0 16px 8px!important;padding:8px 12px!important;border-radius:9px!important}.machine-main .production-kpi>h3{display:none}.machine-main .production-progress-card{border:0;background:transparent;padding:0;grid-template-columns:95px minmax(150px,1fr) minmax(90px,1fr) auto}.machine-main .progress-number strong{font-size:18px}.machine-main .progress-number span{font-size:11px}.machine-main .progress-state{font-size:10px}.machine-toolbar{padding:6px 16px}.machine-search{border-color:var(--pc-border);background:white;max-width:420px;width:45%}.machine-calendar{font-size:12px;color:#545b70}.machine-range{background:transparent;padding:6px 16px 10px;border:0;gap:8px}.machine-range label{font-size:10px;color:var(--pc-muted)}.machine-range input{border-color:var(--pc-border);padding:7px 9px}.machine-range button{font-size:11px}.machine-schedule{margin:0 14px;border-radius:10px;background:white}.machine-schedule .table-scroll{border:1px solid var(--pc-border);border-radius:10px}.machine-schedule table{font-size:13px}.machine-schedule th{background:#f8f9fc;color:#62677b;font-size:11px;height:44px;border:0;border-bottom:1px solid var(--pc-border);padding:8px 6px;line-height:1.3}.machine-schedule td{border:0;border-bottom:1px solid #edf0f5;padding:7px 8px;height:56px;line-height:1.4;color:#32394b;overflow-wrap:break-word}.machine-schedule tr:nth-child(even):not(.completed-row) td{background:#fcfcfe}.machine-schedule .scheduled-date-cell,.machine-schedule .production-order-cell{background:white}.machine-schedule .production-order-cell{box-shadow:2px 0 4px #25263708}.machine-schedule .order{font-size:13px;font-weight:650}.machine-schedule .notes-cell{font-size:12px}.machine-schedule .quantity .secondary{padding:4px 7px;font-size:10px;min-width:0;min-height:36px}.machine-schedule .completion-target input{accent-color:var(--pc-success);width:25px;height:25px;min-height:25px}.machine-schedule .record-wastage{background:white;color:var(--pc-accent);border:1px solid #e4ddfa;border-radius:7px;font-size:11px;min-height:44px}.machine-footer{font-size:11px;color:var(--pc-muted);padding:8px 16px}.machine-main>.recent-wastage{background:white;border-color:var(--pc-border);font-size:11px;padding:7px 12px}.machine-preview-notice{background:#f0edfd;color:#635184}.machine-shell.nav-collapsed{--machine-sidebar:64px}
.schedule-expanded .machine-heading{padding:6px 16px;min-height:38px}.schedule-expanded .machine-title h1{font-size:18px}.schedule-expanded .machine-title p,.schedule-expanded .machine-title>svg,.schedule-expanded .machine-summary,.schedule-expanded .recent-wastage{display:none}.schedule-expanded .machine-main>.production-kpi{margin:0 16px 4px!important;padding:5px 10px!important}.schedule-expanded .machine-toolbar{padding:4px 16px}.schedule-expanded .machine-range{padding:4px 16px 6px}.schedule-expanded .machine-range label{flex-direction:row;align-items:center}.schedule-expanded .machine-range input{min-height:36px;max-width:142px}.schedule-expanded .machine-range button{min-height:36px}.schedule-expanded .machine-range button:nth-of-type(2){display:none}.schedule-expanded .machine-footer{padding:5px 16px}.machine-shell.schedule-expanded .machine-sidebar-bottom{display:none}
@media(min-width:701px) and (max-width:1000px){.sidebar{width:206px}.workspace{margin-left:206px}.topbar{padding:0 14px;gap:8px}.profile-chip>span:last-child{display:none}.global-search{max-width:280px}.machine-title h1{font-size:22px}.machine-stat{width:88px}.machine-main .progress-detail{font-size:10px}}
@media(max-width:700px){.sidebar{position:fixed;display:none;width:240px;height:100dvh;z-index:40}.nav-open .sidebar{display:flex}.sidebar nav{display:grid;overflow:visible}.workspace{margin-left:0}.topbar{height:58px;padding:0 10px;gap:8px}.global-search{max-width:none}.global-search input{font-size:12px}.global-date,.profile-chip,.topbar .connection{display:none}.session-tools{gap:0}.workspace>main{padding:18px 12px}.page-heading{flex-direction:row;flex-wrap:wrap;gap:8px}.page-heading>div{flex-basis:100%}.page-heading h1{font-size:24px}.page-heading button{font-size:12px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{padding:13px}.metric strong{font-size:25px}.metric-label{font-size:11px}.metric-symbol{width:26px;height:26px}.stations-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.station-card{padding:12px}.station-bottom{flex-wrap:wrap;gap:5px}.production-progress{grid-template-columns:1fr}.production-kpi{padding:14px!important}.targets-toolbar{gap:12px}.import-steps{padding:12px;flex-wrap:wrap}.machine-shell,.machine-shell.nav-collapsed{--machine-sidebar:0px}.machine-header{padding:0 8px;gap:4px}.machine-brand strong{font-size:13px}.machine-brand>svg{width:23px}.machine-header-right{gap:6px}.expand-schedule{padding:5px 8px;font-size:10px}.machine-connection{display:none}.machine-heading{padding:10px 12px;gap:7px}.machine-title h1{font-size:18px}.machine-summary{gap:4px}.machine-stat,.machine-stat.green,.machine-stat.blue,.machine-stat.grey{width:48px;min-height:48px}.machine-stat strong{font-size:18px}.machine-stat span{font-size:8px}.machine-title p{font-size:9px}.machine-main>.production-kpi{margin:0 12px 6px!important}.machine-main .production-progress-card{grid-template-columns:88px 1fr;gap:5px}.machine-main .progress-detail{display:none}.machine-toolbar{padding:5px 12px;gap:5px}.machine-search{width:100%;max-width:none}.machine-range{padding:5px 12px 8px;gap:5px}.machine-range label{flex:1}.machine-range input{width:100%;max-width:none;padding:7px;min-width:0}.machine-range button{font-size:10px}.machine-schedule{margin:0 8px}.machine-footer{font-size:10px;padding:6px 10px}.machine-sidebar{top:54px}.navigation-scrim{top:54px}.schedule-expanded .machine-toolbar .machine-search{display:none}.schedule-expanded .machine-range label{display:flex;flex:1;flex-direction:column}.schedule-expanded .machine-range input{max-width:none}.schedule-expanded .machine-range button{min-height:44px}.modal-backdrop{padding:10px}.wastage-modal,.setup-modal{padding:20px 16px;width:100%;max-height:95dvh}.wastage-fields{grid-template-columns:1fr}.wastage-fields .wide{grid-column:auto}}
@media(max-height:500px){.machine-heading{padding:5px 12px}.machine-summary{display:none}.machine-main>.production-kpi{margin:0 12px 3px!important}.machine-toolbar{padding:3px 12px}.machine-range{padding:3px 12px;flex-wrap:nowrap}.machine-range label{flex-direction:row;align-items:center}.machine-range input{max-width:140px;min-height:36px}.machine-range button{min-height:36px}.machine-range button:nth-of-type(2),.recent-wastage{display:none}.machine-schedule{min-height:80px}.machine-title h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.station-card{padding:11px 13px}.station-card h3{margin:8px 0}.station-bottom{padding-top:8px}.station-card progress{appearance:none;background:#efedf6;border:0;border-radius:6px;height:5px;margin-top:9px}.station-card progress::-webkit-progress-bar{background:#efedf6;border-radius:6px}.station-card progress::-webkit-progress-value{background:#8b70ed;border-radius:6px}.metric{padding:15px 18px}.metric>strong{margin:8px 0}.target-editor{min-height:76px}.machine-schedule td small{color:#626d80}.machine-schedule .status{white-space:normal}.schedule-expanded .machine-connection{display:inline-flex}
@media(max-width:700px){.machine-connection{display:inline-flex;font-size:10px;white-space:nowrap}.machine-brand strong{font-size:12px}.machine-header-right{gap:4px}.machine-brand{gap:5px}.machine-header .navigation-toggle{margin-right:3px}.expand-schedule{min-width:44px}}
.wastage-bar meter{width:100%;height:10px}.wastage-bar meter::-webkit-meter-bar{background:#efedf6;border:0;border-radius:5px}.wastage-bar meter::-webkit-meter-optimum-value{background:#9177e9;border-radius:5px}
