/* Only foreground changes: original action dimensions, background and handlers stay intact. */
@layer sy-destructive-text {
html body #root button[data-sy-destructive-text],
html[data-sy-mobile] body #root .sy-card-actions button[data-sy-destructive-text],
html body [role=button][data-sy-destructive-text]{color:#b55348!important}
}

/* Warehouse custom orders only; designer and service grids retain their sizing. */
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table)>table{table-layout:fixed!important}
/* Preserve the original 1396-unit total and all other 12 column ratios. Transfer only 4+12 units into actions. */
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) col.wh-custom-album-col{width:calc(100% * 80 / 1396)!important}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) col.wh-custom-tracking-col{width:calc(100% * 138 / 1396)!important}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) col:nth-child(15){width:calc(100% * 110 / 1396)!important}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) :is(.wh-custom-album-cell,.wh-custom-tracking-cell){padding-inline:2px!important;white-space:nowrap!important;overflow-wrap:normal!important}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-album-cell button,
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-tracking-cell :is(span,button){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-tracking-cell .wh-tracking{width:max-content;max-width:none;display:inline-block}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-album-cell{padding-inline:1px!important}
/* Extra-long waybills remain one line and selectable/scrollable without stealing width from unrelated columns. */
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-tracking-cell>div>span:first-child:not(:has(button)){max-width:100%;overflow-x:auto;overflow-y:hidden}
#root .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-action-cell .wh-compact-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px}
#root .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-action-cell .wh-row-actions{display:contents}
#root .wh-workbench .wh-panel .wh-custom-table:not(.wh-designer-custom-table) .wh-custom-action-cell button{white-space:nowrap!important;overflow-wrap:normal!important}
#root .wh-custom-table:not(.wh-designer-custom-table) tr.wh-layout-urgent>td{background:#f8d7d2!important}
html[data-sy-mobile] body #root .sy-order-card[data-urgent=true]{background:#fff2ee!important}
