/* Compact operational columns: a header names each function, a row holds only its control. */
#cmz-store-workbench .wb-table{min-width:960px;width:100%;table-layout:fixed}
#cmz-store-workbench .wb-table th,#cmz-store-workbench .wb-table td{box-sizing:border-box;padding-left:5px;padding-right:5px}
#cmz-store-workbench .wb-table th:first-child,#cmz-store-workbench .wb-table td:first-child{width:172px}
#cmz-store-workbench .wb-table th.sa-metric-heading{width:62px;font-size:11px;white-space:nowrap}
#cmz-store-workbench .wb-table .wb-data-state{width:74px;font-size:10px}
#cmz-store-workbench .wb-table .wb-store-actions{width:30px}
#cmz-store-workbench .wb-table th.sa-automation-heading,#cmz-store-workbench .wb-table th.sa-message-heading,#cmz-store-workbench .wb-table th.sa-appeal-heading{width:74px;min-width:0;text-align:center;font-size:11px;white-space:nowrap}
#cmz-store-workbench .wb-table .sa-automation-cell{padding:5px 6px;white-space:normal;text-align:left;border-left:1px solid #edf1f6}
.sa-automation-heading .sa-row-button{font-size:12px;line-height:16px;margin-left:2px;padding:0;color:#788da1;vertical-align:middle}
.sa-row-platform{display:flex;align-items:center;font-size:10px;color:#657e94;margin:0 0 4px;line-height:17px;min-width:0}
.sa-row-platform[hidden]{display:none}.sa-row-platform select{width:100%;max-width:100%;min-width:0;font:inherit;font-size:10px;color:#42647d;background:transparent;border:0;padding:0 14px 1px 0;border-radius:0;text-overflow:ellipsis}
.sa-row-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:center}
.sa-row-feature{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:28px;position:relative}
.sa-toggle{appearance:none;display:inline-flex;align-items:center;position:relative;width:42px;height:22px;flex:0 0 42px;border:0;border-radius:13px;background:#b5c2ce;cursor:pointer;padding:0;vertical-align:middle}
.sa-toggle-knob{display:block;position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #28476412;pointer-events:none}
.sa-toggle[aria-checked=true]{background:#24936b}.sa-toggle[aria-checked=true] .sa-toggle-knob{left:23px}.sa-toggle:disabled{opacity:.4;cursor:not-allowed}
.sa-meal-box{display:flex;align-items:center;gap:1px;box-sizing:border-box;width:66px;height:26px;border:1px solid #7ab69d;border-radius:13px;background:#f5fbf8;color:#33825f;padding:1px 2px 1px 4px;font-size:10px;position:relative}
.sa-meal-box.sa-meal-pending{border-style:dashed;background:#fff}
.sa-meal-minutes{appearance:textfield;-moz-appearance:textfield;display:block;box-sizing:border-box;min-width:0;flex:1;width:30px;height:22px;padding:0;border:0;outline:0;background:transparent;color:#286e51;font:inherit;font-size:12px;text-align:center}
.sa-meal-minutes::-webkit-inner-spin-button,.sa-meal-minutes::-webkit-outer-spin-button{appearance:none;margin:0}
.sa-meal-off{border:0;background:transparent;color:#60927c;border-radius:50%;cursor:pointer;width:14px;height:19px;padding:0;font-size:13px;line-height:19px;opacity:0}.sa-meal-box:hover .sa-meal-off,.sa-meal-box:focus-within .sa-meal-off{opacity:1}
.sa-setting-icon{border:0;background:transparent;color:#6d859b;font-size:16px;line-height:20px;width:14px;height:24px;padding:0;cursor:pointer;border-radius:4px;opacity:0}.sa-row-feature:hover .sa-setting-icon,.sa-row-feature:focus-within .sa-setting-icon,.sa-setting-icon:focus-visible{opacity:1}
.sa-row-foot{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-height:0;height:0;position:relative}.sa-row-foot.sa-has-note{height:auto;min-height:18px;margin-top:3px}
.sa-row-note{font-size:10px;line-height:1.4;color:#6b8398;overflow-wrap:anywhere;flex:1;min-width:0}.sa-row-note:empty{display:none}.sa-row-note.sa-error,.sa-error{color:#b44338}
.sa-row-button{border:0;background:transparent;color:#467399;font:inherit;font-size:10px;line-height:19px;padding:0 3px;cursor:pointer;white-space:nowrap;border-radius:4px}.sa-row-button:hover{background:#edf4fb;color:#245f91}.sa-row-button[hidden]{display:none}.sa-row-button:disabled,.sa-setting-icon:disabled{opacity:.4;cursor:wait}
.sa-row-save{font-weight:600}.sa-row-stop{color:#bd4540;position:absolute;right:-2px;bottom:1px;opacity:0;line-height:15px;width:17px;height:17px;padding:0;background:#fff}.sa-automation-cell:hover .sa-row-stop,.sa-row-stop:focus-visible,.sa-has-note .sa-row-stop{opacity:1}.sa-has-note .sa-row-stop{position:static;flex:0 0 17px}
.sa-toggle:focus-visible,.sa-row-button:focus-visible,.sa-setting-icon:focus-visible,.sa-meal-off:focus-visible,.sa-row-platform select:focus-visible,.sa-meal-box:focus-within{outline:2px solid #326aca;outline-offset:2px}
.sa-dialog input[type=text],.sa-dialog input[type=password],.sa-dialog input[type=number],.sa-dialog textarea{box-sizing:border-box;display:block;width:100%;margin:12px 0;padding:10px;border:1px solid #cfdced;border-radius:8px;color:#244668;font:inherit}.sa-dialog textarea{resize:vertical}.sa-dialog .wb-button{margin:5px 5px 0 0}.sa-dialog-scope{font-size:13px;color:#42647d;margin:8px 0}.sa-dialog .sa-error{font-size:13px}
@media(hover:none){.sa-setting-icon,.sa-meal-off{opacity:1}.sa-row-feature{min-height:34px}}

.sa-summary[data-state=on]{background:#24936b}.sa-summary[data-state=on] .sa-toggle-knob{left:23px}
.sa-summary[data-state=partial]{background:#d4a12b}.sa-summary[data-state=partial] .sa-toggle-knob{left:13px}
.sa-summary[data-state=off]{background:#b5c2ce}.sa-summary:focus-visible{outline:2px solid #326aca;outline-offset:2px}

.sa-meal-box:not(.sa-meal-pending){background:#e1f2e9;border-color:#24936b;color:#216647}
/* Keep the existing store tools on one line and reduce only the visual controls. */
#cmz-store-workbench .wb-table{min-width:920px}
#cmz-store-workbench .wb-table th.sa-meal-heading{width:76px}
#cmz-store-workbench .wb-table th.sa-message-heading,#cmz-store-workbench .wb-table th.sa-appeal-heading{width:60px}
.sa-row-features{grid-template-columns:1.25fr 1fr 1fr;gap:6px}
.sa-toggle{width:32px;height:18px;flex-basis:32px}
.sa-toggle::after{content:'';position:absolute;inset:-4px}
.sa-toggle-knob{width:12px;height:12px;top:3px;left:3px}
.sa-toggle[aria-checked=true] .sa-toggle-knob,.sa-summary[data-state=on] .sa-toggle-knob{left:17px}
.sa-summary[data-state=partial] .sa-toggle-knob{left:10px}
.sa-meal-box{width:58px;height:24px;padding-left:3px}.sa-meal-minutes{height:20px;font-size:11px}
#cmz-store-workbench .wb-store-inline-tools{flex-wrap:nowrap;gap:4px;min-width:0}
#cmz-store-workbench .wb-store-inline-tools .wb-store-platforms{flex-wrap:nowrap;gap:3px;flex:0 0 auto}
#cmz-store-workbench .wb-store-platforms .wb-store-platform{width:20px;height:20px;min-width:20px;padding:2px}
#cmz-store-workbench .wb-store-platforms .wb-store-platform img{width:16px;height:16px}
#cmz-store-workbench .wb-store-inline-tools .wb-store-binding{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;padding:0;line-height:20px}
#cmz-store-workbench .wb-table td:first-child .wb-store-inline-tools .wb-store-tools{flex:0 0 auto;float:none;white-space:nowrap;margin:0 0 0 auto;padding:0 1px!important;font-size:10px!important;line-height:20px}

/* Saved minutes remain visible without changing the switch state. */
.sa-meal-saved-time{display:inline-block;flex:0 0 auto;white-space:nowrap;font-size:10px;line-height:18px;color:#526e87;font-variant-numeric:tabular-nums;pointer-events:none}

/* Override general form padding so the compact numeric editor keeps usable text space. */
#cmz-store-workbench .sa-automation-cell .sa-meal-box{flex:0 0 58px;min-width:58px;gap:1px;padding:1px 2px 1px 3px}
#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes{box-sizing:border-box;flex:1 1 28px;min-width:28px;width:28px;height:20px;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#216647;-webkit-text-fill-color:#216647;font-family:inherit;font-size:12px;font-weight:600;line-height:20px;text-align:center;text-indent:0;box-shadow:none;outline:none}
#cmz-store-workbench .sa-meal-box>span{flex:0 0 auto;line-height:20px}
#cmz-store-workbench .sa-meal-box .sa-meal-off{flex:0 0 12px;width:12px;min-width:0;padding:0;margin:0}

/* Match the three control centers to their table headers; adornments do not shift controls. */
#cmz-store-workbench .wb-table td.sa-automation-cell{padding-left:0;padding-right:0}
#cmz-store-workbench .sa-row-features{grid-template-columns:76fr 60fr 60fr;gap:0}
#cmz-store-workbench .sa-row-feature{justify-content:center}
#cmz-store-workbench .sa-row-feature>.sa-meal-saved-time{position:absolute;left:calc(50% + 19px);top:50%;transform:translateY(-50%);margin:0}
#cmz-store-workbench .sa-row-feature>.sa-setting-icon{position:absolute;left:calc(50% + 18px);top:50%;transform:translateY(-50%);margin:0}
#cmz-store-workbench .sa-row-foot{padding-left:6px;padding-right:6px}

/* The minute editor is one quiet control, without nested focus rings or a mouse close icon. */
#cmz-store-workbench .sa-automation-cell .sa-meal-box,#cmz-store-workbench .sa-automation-cell .sa-meal-box:focus-within{width:48px;min-width:48px;flex-basis:48px;border:0;outline:0;box-shadow:none;background:#e1f2e9;border-radius:10px;padding:1px 4px}
#cmz-store-workbench .sa-automation-cell .sa-meal-box:focus-within{background:#cce8d9}
#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes,#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes:focus,#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes:focus-visible{border:0;outline:0;box-shadow:none;background:transparent}
#cmz-store-workbench .sa-meal-box .sa-meal-off{position:absolute;left:100%;top:2px;opacity:0;pointer-events:none;outline:0}
#cmz-store-workbench .sa-meal-box .sa-meal-off:focus-visible{opacity:1;pointer-events:auto;background:#e1f2e9}

#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes:focus,#cmz-store-workbench .sa-automation-cell input.sa-meal-minutes:focus-visible{box-shadow:none!important;outline:none!important;border:0!important}

/* Keep metric numbers in their original table text color. Status remains in the status column. */
#cmz-store-workbench .wb-table td .wb-stale{color:inherit}
/* Partial activation uses yellow with the knob at the on-side, never in the middle. */
#cmz-store-workbench .sa-summary[data-state=partial] .sa-toggle-knob{left:17px}

/* Expanded platform identity is centered beneath its store, within the store column. */
#cmz-store-workbench .wb-table .wb-platform-row td:first-child{padding-left:5px;padding-right:5px;text-align:center}
#cmz-store-workbench .wb-table .wb-platform-row td:first-child .wb-child-line{justify-content:center;width:100%;margin:0}
#cmz-store-workbench .wb-table .wb-platform-row .wb-detail-label{flex:0 1 auto;text-align:center}
