/* Scoped presentation: keep native columns, persistence and per-row execution. */
@media(min-width:768px){
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.toolbar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:12px!important}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;padding:10px 12px!important}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar>.group-toggle {display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:32px!important;margin:0!important;padding:0 6px!important}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .product-mode-panel {flex:0 0 100%!important;width:100%!important;margin:4px 0 0!important;padding:0!important}
}
html body .xl-column-panel-r245.el-popper {
  position:fixed!important;inset:88px 20px auto auto!important;transform:none!important;
  width:420px!important;max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - 112px)!important;overflow:auto!important;
  padding:0!important;background:var(--xl-ref-surface,#fff)!important;opacity:1!important;
  border:1px solid var(--xl-ref-border,#d9dfe5)!important;border-radius:14px!important;
  box-shadow:0 16px 48px rgba(18,38,32,.18)!important;z-index:3200!important;
  color:var(--xl-ref-text,#21332c)!important;font-size:13px!important;
}
/* Older theme/table rules use #app specificity; override only this new control. */
html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .table-wrap button.row-switch.xl-direct-status {background:var(--xl-ref-primary-soft,#eef3ed)!important;color:var(--xl-ref-primary,#315d49)!important;border:1px solid var(--xl-ref-border,#bdc8c2)!important;width:auto!important;min-width:54px!important;height:28px!important;border-radius:7px!important;padding:0 8px!important}
html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .table-wrap button.row-switch.xl-direct-status.active {background:#fff2ee!important;border-color:#ecc8bf!important;color:#934d3d!important}
html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .table-wrap button.row-switch.xl-direct-status.busy {background:var(--xl-ref-primary-soft,#eef3ed)!important;color:var(--xl-ref-primary,#315d49)!important}
html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .table-wrap button.row-switch.xl-direct-status>span {position:static!important;transform:none!important;background:transparent!important;width:auto!important;height:auto!important;box-shadow:none!important;font-size:12px!important;color:inherit!important}
@media(max-width:767px){
 html[data-xl-mobile-board][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>header {display:flex!important}
 html[data-xl-mobile-board][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 [data-xl-columns-done],
 html[data-xl-mobile-board][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 [data-xl-sort-note] {display:none!important}
 html[data-xl-mobile-board][data-xl-mobile-sorting][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>.xl-column-grid-heading {grid-template-columns:minmax(100px,1fr) 88px 64px!important;gap:6px!important;min-height:0!important}
 html[data-xl-mobile-board][data-xl-mobile-sorting][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>.xl-column-setting-row {grid-template-columns:minmax(100px,1fr) 88px 29px 29px!important;gap:6px!important;min-height:44px!important}
 html[data-xl-mobile-board][data-xl-mobile-sorting][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>.xl-column-setting-row>.el-input-number {display:inline-flex!important;grid-column:2!important;grid-row:auto!important;width:88px!important}
 html[data-xl-mobile-board][data-xl-mobile-sorting][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>.xl-column-setting-row>button {font-size:14px!important;min-width:29px!important;min-height:32px!important}
 html[data-xl-mobile-board][data-xl-mobile-sorting][data-xl-mobile-font][data-xl-mobile-density][data-xl-theme][data-xl-density] :is(body,#app) .xl-column-panel-r245 .column-settings>.xl-column-setting-row>button::after {content:none!important}
}
html body .xl-column-panel-r245 .el-popper__arrow {display:none!important}
html body .xl-column-panel-r245 .column-settings {padding:0 14px 14px!important;max-height:none!important;overflow:visible!important;display:block!important}
html body .xl-column-panel-r245 .column-settings>header {
  display:flex!important;align-items:center!important;gap:8px!important;
  position:sticky!important;top:0!important;z-index:2!important;
  margin:0 -14px 10px!important;padding:14px!important;
  background:var(--xl-ref-primary-soft,#eef3ed)!important;border-bottom:1px solid var(--xl-ref-border,#d9dfe5)!important;
}
html body .xl-column-panel-r245 header>b {flex:1!important;font-size:15px!important;color:var(--xl-ref-text,#21332c)!important;white-space:nowrap}
html body .xl-column-panel-r245 .xl-column-hint {margin:0 0 12px!important;line-height:1.6!important;color:var(--xl-ref-muted,#617167)!important;font-size:12px!important}
html body .xl-column-panel-r245 .xl-column-grid-heading {
  display:grid!important;grid-template-columns:minmax(120px,1fr) 104px 72px!important;gap:8px!important;
  padding:8px 0!important;border-bottom:1px solid var(--xl-ref-border,#d9dfe5)!important;
  color:var(--xl-ref-muted,#617167)!important;font-size:12px!important;
}
html body .xl-column-panel-r245 .xl-column-setting-row {
  display:grid!important;grid-template-columns:minmax(120px,1fr) 104px 32px 32px!important;
  align-items:center!important;gap:8px!important;min-height:44px!important;
  margin:0!important;padding:6px 0!important;border-bottom:1px solid var(--xl-ref-divider,#eef0ee)!important;
}
html body .xl-column-panel-r245 .el-checkbox {margin:0!important;min-width:0!important;width:auto!important;height:32px!important}
html body .xl-column-panel-r245 .el-checkbox__label {font-size:13px!important;padding-left:8px!important;white-space:nowrap!important}
html body .xl-column-panel-r245 .el-input-number {width:104px!important;margin:0!important;min-width:0!important}
html body .xl-column-panel-r245 .el-input-number .el-input__wrapper {padding-left:6px!important;background:var(--xl-ref-surface,#fff)!important;box-shadow:0 0 0 1px var(--xl-ref-border,#d9dfe5) inset!important;opacity:1!important}
html body .xl-column-panel-r245 button {height:30px!important;min-width:30px!important;margin:0!important;border-radius:7px!important;background:var(--xl-ref-primary-soft,#eef3ed)!important;border:1px solid var(--xl-ref-border,#d9dfe5)!important;color:var(--xl-ref-primary,#315d49)!important;box-shadow:none!important;padding:0 8px!important;font-size:12px!important}
html body .xl-column-panel-r245 button:disabled {opacity:.4!important;cursor:not-allowed!important}
html body .xl-column-panel-r245 .xl-column-setting-row>button {padding:0!important}
html body .xl-column-panel-r245 .xl-column-unit,
html body .xl-column-panel-r245 [data-xl-sort-note],
html body .xl-column-panel-r245 [data-xl-columns-done] {display:none!important}
html body .xl-column-panel-r245 button:focus-visible,
html body .xl-product-mode-exit:focus-visible,
html body .xl-direct-status:focus-visible {outline:2px solid var(--xl-ref-primary,#315d49)!important;outline-offset:2px!important}
html body .product-mode-header {display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;padding:10px 12px!important;background:var(--xl-ref-primary-soft,#eef3ed)!important;border:1px solid var(--xl-ref-border,#d9dfe5)!important;border-radius:10px!important}
html body .product-mode-copy {flex:1!important;min-width:160px!important;display:flex!important;flex-direction:column!important;gap:4px!important}
html body .product-mode-copy>b {font-size:13px!important}
html body .product-mode-copy>small {font-size:12px!important;color:var(--xl-ref-muted,#617167)!important;line-height:1.5!important}
html body .product-manage-button,html body .xl-product-mode-exit {font-size:12px!important;border-radius:7px!important;padding:6px 10px!important;background:var(--xl-ref-surface,#fff)!important;border:1px solid var(--xl-ref-border,#d9dfe5)!important;color:var(--xl-ref-primary,#315d49)!important;white-space:nowrap!important}
html body .product-summary-row .product-name-toggle {display:flex!important;flex-direction:column!important;gap:5px!important;background:transparent!important;border:0!important;text-align:left!important;padding:4px 0!important;max-width:100%!important}
html body .product-summary-row .product-name-toggle>b {font-size:13px!important;line-height:1.5!important;white-space:normal!important}
html body .product-summary-row .product-name-toggle>small {font-size:11px!important;color:var(--xl-ref-muted,#617167)!important}
html body .product-tree-toggle {display:flex!important;align-items:center!important;gap:5px!important;background:transparent!important;border:0!important;color:var(--xl-ref-primary,#315d49)!important;font-size:11px!important;padding:4px 0!important;white-space:nowrap!important}
html body .product-tree-chevron {display:grid!important;place-items:center!important;width:20px!important;height:20px!important;border-radius:6px!important;background:var(--xl-ref-primary-soft,#eef3ed)!important;font-size:16px!important}
html body button.row-switch.xl-direct-status {width:auto!important;min-width:54px!important;height:28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 8px!important;border-radius:7px!important;border:1px solid var(--xl-ref-border,#d9dfe5)!important;background:var(--xl-ref-primary-soft,#eef3ed)!important;color:var(--xl-ref-primary,#315d49)!important;vertical-align:middle!important}
html body button.row-switch.xl-direct-status.active {background:#fff2ee!important;border-color:#ecc8bf!important;color:#934d3d!important}
html body button.row-switch.xl-direct-status.busy {background:var(--xl-ref-primary-soft,#eef3ed)!important;color:var(--xl-ref-primary,#315d49)!important}
html body button.row-switch.xl-direct-status>span.xl-direct-status-label {position:static!important;transform:none!important;background:transparent!important;width:auto!important;height:auto!important;border-radius:0!important;box-shadow:none!important;font-size:12px!important;font-weight:600!important;line-height:1!important}
@media(max-width:767px){
 html body .xl-column-panel-r245.el-popper {inset:64px 12px auto 12px!important;width:auto!important;max-height:calc(100dvh - 140px)!important;max-width:none!important;zoom:1!important}
 html body .xl-column-panel-r245 .column-settings {padding:0 12px 12px!important}
 html body .xl-column-panel-r245 .column-settings>header {margin:0 -12px 10px!important;padding:12px!important}
 html body .xl-column-panel-r245 .xl-column-grid-heading {grid-template-columns:minmax(100px,1fr) 88px 64px!important;gap:6px!important}
 html body .xl-column-panel-r245 .xl-column-setting-row {grid-template-columns:minmax(100px,1fr) 88px 29px 29px!important;gap:6px!important}
 html body .xl-column-panel-r245 .el-input-number {width:88px!important}
 html body .xl-column-panel-r245 .column-settings button {min-width:29px!important}
 html body .product-mode-header {gap:8px!important}
}
