.factoryConsoleV2 .productionOperatorLog{margin-top:0}.factoryConsoleV2{color:#172033;background:#eef3f7;min-height:100vh;padding:10px 12px 22px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.factoryConsoleV2 *,.factoryConsoleV2 :before,.factoryConsoleV2 :after{box-sizing:border-box}.factoryConsoleShell{gap:7px;width:min(1720px,100%);margin:0 auto;display:grid}.factoryConsoleHeader{color:#fff;background:linear-gradient(135deg,#243543,#334653);border:1px solid #1f3345;border-radius:7px;justify-content:space-between;align-items:center;gap:12px;min-height:40px;padding:6px 10px;display:flex}.factoryConsoleHeader h1{letter-spacing:-.015em;margin:0;font-size:20px;font-weight:700}.factoryProvider{background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;grid-template-columns:10px 1fr auto;align-items:center;gap:7px;min-width:210px;min-height:28px;padding:4px 9px;font-size:10px;display:grid}.factoryProvider i{background:#94a3b8;border-radius:50%;width:9px;height:9px}.factoryProvider.online i{background:#22c55e;box-shadow:0 0 0 3px #22c55e24}.factoryProvider.offline i{background:#ef4444}.factoryProvider b{font-size:12px}.factoryConsoleNotice{color:#475569;background:#fff;border:1px solid #d6e0e8;border-radius:7px;gap:4px;padding:12px;display:grid}.factoryConsoleNotice b{color:#b91c1c}.productionSiteSelection.is-collapsed .operatorPanelBody{display:none}.productionTreeToolbar button{color:#334155;cursor:pointer;background:#fff;border:1px solid #c9d5df;border-radius:5px;min-height:26px;padding:0 8px;font-size:9px;font-weight:750}.productionTreeToolbar button:disabled{opacity:.45;cursor:not-allowed}.productionTreeToolbar .commitProductionSet{color:#fff;background:#2563eb;border-color:#2563eb}.selectionHint{color:#607080;margin:0 0 7px;font-size:9px}.productionTreeToolbar{justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px;display:flex}.productionTreeToolbar>div{flex-wrap:wrap;gap:5px;display:flex}.productionTreeToolbar>span{color:#51606f;white-space:nowrap;font-size:9px}.productionTree{scrollbar-width:thin;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:6px;max-height:320px;display:grid;overflow:auto}.productionTreeFacility,.productionTreePpu{background:#fbfdff;border:1px solid #dce5ed;border-radius:6px;overflow:hidden}.productionTreeFacility>summary,.productionTreePpu>summary{cursor:pointer;color:#23384a;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:32px;padding:5px 7px;list-style-position:inside;display:grid}.productionTreeFacility>summary{background:#eef5fb;font-size:11px;font-weight:800}.productionTreePpu>summary{background:#f8fbfd;min-height:29px;font-size:10px}.productionTreeFacility>summary::marker{color:#2563eb;font-size:10px}.productionTreePpu>summary::marker{color:#2563eb;font-size:10px}.productionTreeFacility>summary input,.productionTreePpu>summary input,.productionTreeSites input{accent-color:#2563eb}.productionTreeFacility>summary small,.productionTreePpu>summary small{color:#657482;font-size:8px;font-weight:600}.productionTreePpus{gap:5px;padding:5px;display:grid}.productionTreeSites{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px 6px 7px 24px;display:grid}.productionTreeSites label{color:#51606f;cursor:pointer;background:#fff;border:1px solid #dbe4ec;border-radius:5px;align-items:center;gap:4px;min-height:25px;padding:3px 5px;font-size:8px;display:flex}.productionTreeSites label.selected{color:#1d4ed8;background:#eff7ff;border-color:#8ec5ff}.factoryWarning,.factoryRuntimeError{color:#a92727;background:#fff5f5;border:1px solid #f0b5b5;border-radius:6px;min-height:34px;padding:7px 10px;font-size:9px}.factoryWarning{justify-content:space-between;align-items:center;gap:8px;display:flex}.factoryWarning button{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px}.factoryLiveStatus{--site-card-w:88px;--site-card-h:61px;--site-led:18px}.factoryLiveStatus.density-comfortable{--site-card-w:80px;--site-card-h:58px;--site-led:17px}.factoryLiveStatus.density-compact{--site-card-w:72px;--site-card-h:54px;--site-led:16px}.factoryLiveStatus.density-dense{--site-card-w:64px;--site-card-h:50px;--site-led:14px}.factoryLiveStatus .operatorPanelBody{padding-top:6px}.factoryLegend{color:#536273;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;margin-bottom:6px;font-size:8px;display:flex}.factoryLegend span{align-items:center;gap:4px;display:inline-flex}.factoryLegend i,.factorySiteLed i{background:#38bdf8;border-radius:50%;box-shadow:inset 0 1px 1px #ffffffb3,0 0 4px #38bdf859}.factoryLegend i{width:8px;height:8px}.factoryLegend i[data-state=ready],.factorySiteLed[data-state=ready] i{background:#38bdf8}.factoryLegend i[data-state=running],.factorySiteLed[data-state=running] i{background:#f59e0b;box-shadow:0 0 7px #f59e0b80}.factorySiteLed[data-state=running] i{animation:1s ease-in-out infinite factoryRunningPulse}@keyframes factoryRunningPulse{0%,to{opacity:1;box-shadow:0 0 8px #f59e0bb8}50%{opacity:.2;box-shadow:none}}.factoryLegend i[data-state=success],.factorySiteLed[data-state=success] i{background:#22c55e;box-shadow:0 0 7px #22c55e73}.factoryLegend i[data-state=faulted],.factorySiteLed[data-state=faulted] i{background:#ef4444;box-shadow:0 0 7px #ef444480}.factoryLegend i[data-state=error],.factorySiteLed[data-state=error] i{background:#b91c1c;box-shadow:0 0 7px #b91c1c7a}.factorySiteLed[data-state=stopped] i{background:#f97316}.factoryLegend i[data-state=cancelled],.factorySiteLed[data-state=cancelled] i{box-shadow:none;background:#94a3b8}.factoryLegend i[data-state=disabled],.factorySiteLed[data-state=disabled] i{box-shadow:none;background:#6b7280}.factoryEmptySet{color:#607080;padding:14px;font-size:10px}.factoryFacilityStack{gap:6px;display:grid}.factoryFacilityGroup{background:#fbfdff;border:1px solid #dce5ed;border-radius:6px;overflow:hidden}.factoryFacilityGroup>header{background:#f4f8fb;border-bottom:1px solid #e2e9ef;justify-content:space-between;align-items:center;gap:8px;min-height:28px;padding:4px 8px;display:flex}.factoryFacilityGroup>header b{color:#1d4ed8;font-size:10px}.factoryFacilityGroup>header span{color:#607080;font-size:8px}.factoryFacilitySelection{align-items:center;gap:6px;min-width:0;display:flex}.factoryFacilitySelection input{margin:0}.factoryPpuRows{flex-wrap:wrap;align-items:flex-start;gap:7px;padding:7px;display:flex}.factoryPpuRow{width:max-content;min-width:0;max-width:100%;min-height:calc(var(--site-card-h) + 42px);background:#fff;border:1px solid #dce5ed;border-radius:6px;grid-template-columns:minmax(0,1fr);align-items:start;gap:6px;padding:6px 7px 7px;display:grid}.factoryPpuRowHeader{grid-template-columns:18px minmax(0,1fr);align-items:center;gap:6px;min-width:0;display:grid}.factoryPpuRowHeader input{accent-color:#2563eb;width:15px;height:15px}.factoryPpuRowHeader b,.factoryPpuRowHeader small{display:block}.factoryPpuRowHeader b{text-overflow:ellipsis;white-space:nowrap;color:#1d4ed8;font-size:10px;overflow:hidden}.factoryPpuRowHeader small{color:#607080;margin-top:2px;font-size:7px}.factoryPpuMessage{color:#607080;font-size:9px}.factoryPpuMessage.error{color:#b91c1c}.factorySiteLedGrid{flex-wrap:wrap;justify-content:start;align-items:center;gap:5px;min-width:0;display:flex}.factorySiteLedCard{width:var(--site-card-w);height:var(--site-card-h);background:#fff;border:1px solid #d6e0e8;border-radius:5px;grid-template-rows:auto 1fr auto;align-items:center;padding:4px 5px;display:grid;overflow:hidden}.factorySiteLedCard.batch-excluded{background:#f7f8f9;border-style:dashed}.factorySiteLedCard.state-running{background:#fffaf0;border-color:#efc36a}.factorySiteLedCard.state-success{background:#f5fcf7;border-color:#7bd89b}.factorySiteLedCard.state-faulted,.factorySiteLedCard.state-error{background:#fff5f5;border-color:#ee9b9b}.factorySiteLedCard.state-disabled{background:#f2f4f6;border-color:#cbd5df}.factorySiteLedCardTop{grid-template-columns:14px minmax(0,1fr);align-items:center;gap:3px;min-width:0;display:grid}.factorySiteLedCardTop input{accent-color:#2563eb;width:12px;height:12px;margin:0}.factorySiteLedCardTop b{text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#172033;min-width:0;font-size:8px;line-height:1;overflow:hidden}.factorySiteLed{width:calc(var(--site-led) + 6px);height:calc(var(--site-led) + 6px);background:#e8eef3;border-radius:50%;justify-self:center;place-items:center;display:grid;box-shadow:inset 0 -1px 3px #0f172a2e}.factorySiteLed i{width:var(--site-led);height:var(--site-led)}.factorySiteLedCard>small{text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#607080;min-width:0;font-size:6px;line-height:1;overflow:hidden}.factoryConsoleV2 .productionLogCard{margin-top:0}[data-theme=dark] .factoryConsoleV2{background:var(--navy);color:var(--text)}[data-theme=dark] .factoryConsoleNotice,[data-theme=dark] .factoryConsoleV2 .operatorPanel,[data-theme=dark] .productionTreeFacility,[data-theme=dark] .productionTreePpu,[data-theme=dark] .productionTreeSites label,[data-theme=dark] .factoryFacilityGroup,[data-theme=dark] .factoryPpuRow,[data-theme=dark] .factorySiteLedCard{background:var(--panel);border-color:var(--line)}[data-theme=dark] .factoryConsoleV2 .operatorPanelHeader,[data-theme=dark] .productionTreeFacility>summary,[data-theme=dark] .productionTreePpu>summary,[data-theme=dark] .factoryFacilityGroup>header,[data-theme=dark] .factorySiteLed{background:var(--panel-2);border-color:var(--line)}[data-theme=dark] .productionTreeToolbar button:not(.commitProductionSet){border-color:var(--line-strong);background:var(--panel);color:var(--text-soft)}[data-theme=dark] .factorySiteLedCardTop b{color:var(--text)}[data-theme=dark] .factoryConsoleNotice,[data-theme=dark] .selectionHint,[data-theme=dark] .productionTreeToolbar>span,[data-theme=dark] .productionTreeFacility>summary small,[data-theme=dark] .productionTreePpu>summary small,[data-theme=dark] .productionTreeSites label,[data-theme=dark] .factoryLegend,[data-theme=dark] .factoryFacilityGroup>header span,[data-theme=dark] .factoryPpuRowHeader small,[data-theme=dark] .factoryPpuMessage,[data-theme=dark] .factorySiteLedCard>small,[data-theme=dark] .factoryEmptySet{color:var(--muted)}[data-theme=dark] .productionTreeFacility>summary,[data-theme=dark] .productionTreePpu>summary{color:var(--text-soft)}[data-theme=dark] .productionTreeSites label.selected{color:#8ec5ff;background:#102c45}[data-theme=dark] .factorySiteLedCard.batch-excluded{background:var(--panel-2)}[data-theme=dark] .factorySiteLedCard.state-running{background:#2c2617}[data-theme=dark] .factorySiteLedCard.state-success{background:#10261a}[data-theme=dark] .factorySiteLedCard.state-faulted,[data-theme=dark] .factorySiteLedCard.state-error,[data-theme=dark] .factoryWarning,[data-theme=dark] .factoryRuntimeError{background:#30191d}@media (width<=760px){.factoryConsoleV2{padding:8px}.factoryConsoleHeader{flex-direction:column;align-items:flex-start}.factoryProvider{width:100%}.productionTree{grid-template-columns:1fr}.productionTreeSites{grid-template-columns:repeat(2,minmax(0,1fr))}.factoryPpuRow{width:min(max-content, 100%)}}
