/* Workbench layout, using existing theme tokens and semantic accents. */
.schedule-view[data-schedule-view="control"].hub-empty {display:block!important;overflow:auto}
.wb-no-runs {display:none}.hub-empty>.wb-no-runs {display:flex;flex-direction:column;align-items:flex-start;gap:12px;box-sizing:border-box;height:auto;min-height:190px;padding:28px;border:1px solid var(--schedule-border,#d5dfe9);border-radius:5px;background:var(--schedule-panel,#fff)}
.hub-empty>.wb-no-runs p {margin:0;line-height:1.6}
.hub-empty>:not(.wb-no-runs) {display:none!important}.wb-no-runs strong {font-size:18px}.wb-no-runs p {margin:14px 0;color:var(--schedule-muted,#67798d)}
[data-schedule-view="workbench"].is-active {display:flex;flex-direction:column;gap:8px;min-height:0;height:100%;overflow:auto}
[data-schedule-view="workbench"] .workbench-command-strip {flex:none;height:auto;min-height:112px;grid-template-columns:125px 280px 175px minmax(300px,1fr) 135px 150px 125px;padding:10px 12px;gap:9px}
[data-schedule-view="workbench"] .workbench-command-strip .schedule-field {display:grid;grid-template-columns:minmax(0,1fr);width:auto;min-width:0}
[data-schedule-view="workbench"] .workbench-command-strip .omni-combobox {min-width:0;width:100%}
[data-schedule-view="workbench"] .hub-naming-fields {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.wb-period {display:flex;align-items:center;gap:6px}
.wb-period input {min-width:0;width:calc(50% - 10px)}
[data-schedule-view="workbench"] .workbench-layout {flex:1 0 420px;height:auto;min-height:420px;grid-template-columns:minmax(0,1fr);gap:10px}
[data-schedule-view="workbench"] .workbench-layout.wb-details-open {grid-template-columns:minmax(0,1fr) 350px}
[data-schedule-view="workbench"] .parameter-workspace[hidden] {display:none}
[data-schedule-view="workbench"] .parameter-workspace {min-width:0;grid-template-rows:53px auto minmax(0,1fr) auto}
[data-schedule-view="workbench"] .parameter-tabs {display:flex;flex-wrap:wrap;height:auto;flex:none;gap:0;border-bottom:1px solid var(--schedule-border,#d5dfe9)}
[data-schedule-view="workbench"] .parameter-tabs button {min-width:25%;flex:1 1 auto;font-size:11px;min-height:30px;padding:6px}
[data-schedule-view="workbench"] .parameter-body {padding:12px;overflow:auto}
[data-schedule-view="workbench"] .parameter-heading {padding:10px 12px}
[data-schedule-view="workbench"] .parameter-validation {flex:none;background:var(--schedule-panel,#f7f9fc);padding:9px 12px}
[data-schedule-view="workbench"] .parameter-validation ul {display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 0}
[data-schedule-view="workbench"] .workbench-grid-shell {min-width:0;grid-template-rows:auto minmax(0,1fr) 28px}
[data-schedule-view="workbench"] .omni-grid-titlebar {display:flex;align-items:center;flex-wrap:wrap;gap:7px 16px;min-height:64px;padding:8px 10px}
[data-schedule-view="workbench"] .omni-grid-title {width:auto;flex:1 0 260px}
[data-schedule-view="workbench"] .omni-grid-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.wb-grid-edit-hint {width:100%;font-size:11px;color:var(--schedule-muted,#67798d)}
.wb-details-toggle[aria-expanded="true"] {background:var(--schedule-success-soft);color:var(--schedule-success)}
[data-schedule-view="workbench"] .omni-grid-head .omni-grid-head-label {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-scheduling-input-grid] .omni-grid-cell[data-column-key="lotSize"],
[data-scheduling-input-grid] .omni-grid-cell[data-column-key="puckSize"],
[data-scheduling-input-grid] .omni-grid-cell[data-column-key="bufferHours"] {background-color:color-mix(in srgb,var(--schedule-success,#168878) 5%,var(--schedule-panel,#fff))}
[data-scheduling-input-grid] .omni-grid-head [data-column-key="lotSize"],
[data-scheduling-input-grid] .omni-grid-head [data-column-key="puckSize"],
[data-scheduling-input-grid] .omni-grid-head [data-column-key="bufferHours"] {box-shadow:inset 0 -2px var(--schedule-success,#168878)}
[data-schedule-view="workbench"] .omni-grid-header {background:#f4f6f9;color:#263950}
[data-schedule-view="workbench"] .workbench-readiness {flex:none;height:32px;min-height:32px}
[data-schedule-view="workbench"] .workbench-readiness.wb-needs-review {background:var(--schedule-panel,#f8fafc);border-color:#d7e0e8}
.wb-execution-bar {flex:none;position:sticky;bottom:0;z-index:4;display:flex;align-items:center;gap:8px;min-height:52px;padding:8px 12px;border:1px solid var(--schedule-border,#d5dfe9);background:var(--schedule-panel,#fff);border-top:2px solid #168878}
.wb-execution-summary {min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;font-size:12px}
.wb-execution-summary span {font-size:11px;color:var(--schedule-muted,#67798d);line-height:1.4}
.wb-execution-summary .is-warning {color:var(--schedule-warning)}
.wb-execution-bar .is-primary {background:#087f79;border-color:#087f79;color:#fff;min-width:132px}
.wb-order-summary {display:grid;grid-template-columns:1fr auto;gap:4px;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--schedule-border,#d5dfe9)}
.wb-order-summary strong {font-size:15px}.wb-order-summary span,.wb-order-summary small {font-size:11px;color:var(--schedule-muted,#67798d)}
.wb-order-summary b {grid-row:1;grid-column:2;color:var(--schedule-success)}
.wb-order-summary small {grid-column:1/-1}
.wb-route {display:flex;flex-direction:column;gap:9px;margin:12px 0}
.wb-route-step {border-left:2px solid #c7d4df;padding:0 0 0 10px}
.wb-route-step header {display:flex;align-items:center;gap:8px;min-height:24px}
.wb-route-step header strong {font-size:12px}.wb-step-number {font-size:10px;color:var(--schedule-muted,#67798d);font-variant-numeric:tabular-nums}
.wb-route-step header b {font-size:10px;color:#a96219;background:#fff3db;padding:2px 5px;border-radius:3px;margin-left:auto}
.wb-route-step.is-ccr {border-left-color:#c68232}
.wb-route-step small {font-size:10px;line-height:1.5;color:var(--schedule-muted,#67798d)}
.wb-machines {display:flex;gap:5px;flex-wrap:wrap;margin:3px 0}
.wb-machines span {border:1px solid var(--schedule-border,#d5dfe9);border-radius:3px;padding:3px 6px;font-size:11px;background:var(--schedule-panel,#fff)}
.wb-route-step .parameter-section {padding:8px 0;gap:8px}
.wb-note {font-size:11px;line-height:1.65;color:var(--schedule-muted,#67798d);margin:10px 0}
.wb-batch-chain {display:flex;align-items:center;justify-content:space-between;padding:15px 12px;margin:12px 0 18px;background:var(--schedule-panel,#f2f7fa);border:1px solid var(--schedule-border,#d5dfe9);border-radius:4px}
.wb-batch-chain div {display:flex;flex-direction:column;gap:7px;text-align:center}.wb-batch-chain strong {font-size:22px;color:var(--schedule-success)}.wb-batch-chain small {font-size:11px}
.wb-calendar section {display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--schedule-border,#d5dfe9);font-size:11px}
.wb-calendar section div {display:flex;gap:6px}.wb-calendar section span {background:var(--schedule-success-soft);color:var(--schedule-success);padding:5px;border-radius:3px}
.wb-order-dialog,.wb-bulk-dialog {background:var(--schedule-panel,#fff);color:var(--schedule-text,#24364c);border:1px solid var(--schedule-border,#d5dfe9);border-radius:6px;box-shadow:0 18px 60px #10243940}
.wb-order-dialog {width:1360px;max-width:calc(100vw - 48px);height:min(690px,90vh);max-height:90vh;padding:0;overflow:hidden}
.wb-order-dialog[open] {display:flex;flex-direction:column}
.wb-order-dialog::backdrop,.wb-bulk-dialog::backdrop {background:#142d4866}
.wb-order-dialog>header,.wb-order-dialog>.wb-dialog-actions {flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}
.wb-order-dialog>header {border-bottom:1px solid var(--schedule-border,#d5dfe9)}
.wb-order-dialog header strong {font-size:17px}.wb-order-dialog header p {font-size:12px;color:var(--schedule-muted,#67798d);margin:6px 0 0}
.wb-candidate-filters {display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px 18px 10px}
.wb-candidate-filters .schedule-field {width:145px}.wb-candidate-filters .wb-candidate-search {flex:1;min-width:240px}
.wb-candidate-meta {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 18px 10px;font-size:12px;flex-wrap:wrap}
.wb-candidate-meta small {color:var(--schedule-muted,#67798d);font-size:11px}
.wb-candidate-grid-shell {flex:1;min-height:140px;min-width:0;width:calc(100% - 36px);box-sizing:border-box;margin:0 18px;display:grid;grid-template-rows:minmax(0,1fr) 28px;overflow:hidden;border:1px solid var(--schedule-border,#d5dfe9)}
.wb-candidate-grid-shell .omni-grid-scroll {min-height:0;overflow:auto}
.wb-candidate-grid-shell .omni-grid-footer {display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;padding:0 10px;white-space:nowrap}
.wb-dialog-actions {border-top:1px solid var(--schedule-border,#d5dfe9);margin-top:12px}
.wb-dialog-actions .is-primary {background:#087f79;border-color:#087f79;color:#fff;min-width:132px}
.wb-dialog-actions .is-primary:disabled {opacity:.45;cursor:default}
.wb-bulk-dialog {width:600px;max-width:calc(100vw - 48px);padding:18px}
.wb-bulk-dialog header,.wb-bulk-dialog footer {display:flex;align-items:center;justify-content:space-between;gap:12px}.wb-bulk-dialog header strong {font-size:17px}
.wb-bulk-dialog>p {font-size:12px;line-height:1.6}
.wb-bulk-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.wb-bulk-fields .schedule-field {min-width:0;width:auto}
.wb-bulk-error {color:var(--schedule-danger,#b84336);min-height:20px;max-height:140px;overflow:auto}
.wb-bulk-dialog footer {padding-top:14px;font-size:11px;color:var(--schedule-muted,#67798d)}
[data-schedule-view="workbench"] input[type="number"] {appearance:textfield}
[data-schedule-view="workbench"] input[type="number"]::-webkit-inner-spin-button,[data-schedule-view="workbench"] input[type="number"]::-webkit-outer-spin-button {appearance:none;margin:0}
@media(max-width:1500px) {[data-schedule-view="workbench"] .workbench-command-strip {grid-template-columns:125px minmax(270px,1fr) 175px minmax(280px,1fr)}.workbench-command-actions {align-self:end}}
@media(max-width:1200px) {[data-schedule-view="workbench"] .workbench-command-strip {grid-template-columns:175px minmax(300px,1fr)}[data-schedule-view="workbench"] .workbench-layout.wb-details-open {flex:none;grid-template-columns:minmax(0,1fr);height:auto}[data-schedule-view="workbench"] .wb-details-open .workbench-grid-shell {height:410px}[data-schedule-view="workbench"] .parameter-workspace {height:500px}.wb-execution-bar {flex-wrap:wrap}.wb-execution-summary {flex-basis:100%}}
