/* Shared text actions; cards, icon-only controls and choices remain independent. */
button.shared-action{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:36px;max-width:100%;height:auto;padding:6px 9px;border:0!important;border-radius:5px;background:transparent!important;box-shadow:none!important;color:#8b0015!important;font-size:13px!important;font-weight:700;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
button.shared-action:not(:has(svg)):not(:has(.wf-icon))::before{content:'•';display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 16px;font:700 16px/1 Arial,sans-serif;color:currentColor}
button.shared-action[data-shared-action=add]:not(:has(svg))::before{content:'+'}
button.shared-action[data-shared-action=remove]:not(:has(svg))::before{content:'−'}
button.shared-action[data-shared-action=edit]:not(:has(svg))::before{content:'✎'}
button.shared-action[data-shared-action=upload]:not(:has(svg))::before{content:'↑'}
button.shared-action[data-shared-action=print]:not(:has(svg))::before{content:'▤'}
button.shared-action[data-shared-action=search]:not(:has(svg))::before{content:'⌕'}
button.shared-action[data-shared-action=settings]:not(:has(svg))::before{content:'⚙'}
button.shared-action[data-shared-action=confirm]:not(:has(svg))::before{content:'✓'}
button.shared-action svg,button.shared-action .wf-icon{width:16px;height:16px;flex:0 0 16px}
button.shared-action:hover:not(:disabled){background:#f8e8ed!important}
button.shared-action:focus-visible{outline:1px solid currentColor;outline-offset:2px}
button.shared-action:is([aria-pressed=true],[aria-selected=true],[aria-current=page],.active,.selected){background:#f4dce2!important;color:#750017!important}
button.shared-action:disabled,button.shared-action[aria-disabled=true]{color:#78696e!important;opacity:.6;cursor:not-allowed}
button.shared-action[aria-busy=true]{opacity:.7;cursor:progress}
button.shared-action[data-shared-action=remove]:not(:disabled){color:#a11b32!important}
:is(.wf-header,.ra-header,.customer-header,.topbar,.deal-slide) button.shared-action{color:#fff!important}
:is(.wf-header,.ra-header,.customer-header,.topbar,.deal-slide) button.shared-action:hover:not(:disabled){background:#ffffff24!important}
:is(.wf-header,.ra-header,.customer-header,.topbar,.deal-slide) button.shared-action:is([aria-pressed=true],[aria-selected=true]){background:#ffffffdf!important;color:#750017!important}
:is(.wf-header,.ra-header,.customer-header,.topbar,.deal-slide) button.shared-action:disabled{color:#fff!important;opacity:.55}
@media(max-width:700px),(pointer:coarse){button.shared-action{min-height:44px}}
/* Menus and notifications inside dark headers have light surfaces. */
:is(.wf-notifications,.rider-menu div) button.shared-action{color:#8b0015!important}
:is(.wf-notifications,.rider-menu div) button.shared-action:hover:not(:disabled){background:#f8e8ed!important}

/* Keep adjacent table actions together and avoid tall rows from stacked forms. */
:is(.wf-table, .rd-table, .report-workspace) td > form:has(> button):not(:has(input:not([type=hidden]),select,textarea)){display:inline-flex;vertical-align:middle;width:auto;max-width:100%;margin:0}
:is(.wf-table, .rd-table, .report-workspace) td > button.shared-action,
:is(.wf-table, .rd-table, .report-workspace) td > form > button.shared-action{width:auto;white-space:nowrap;min-height:32px;padding:4px 5px;gap:4px}
.wf-main .iw-balances > .wf-table{overflow-x:auto}
.wf-main .iw-balances > .wf-table > table{min-width:960px}
.wf-main .iw-balances th:nth-child(1){width:19%}
.wf-main .iw-balances th:nth-child(2){width:12%}
.wf-main .iw-balances th:nth-child(3),.wf-main .iw-balances th:nth-child(4),.wf-main .iw-balances th:nth-child(5){width:12%}
.wf-main .iw-balances th:nth-child(6){width:9%}
.wf-main .iw-balances th:nth-child(7){width:24%}
.wf-main .iw-balances .iw-stock-actions{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:3px}
.wf-main .iw-balances .iw-stock-actions form{display:inline-flex;flex:0 0 auto;width:auto;margin:0}
.wf-main .iw-balances .iw-stock-actions button.shared-action{flex:0 0 auto;width:auto;min-height:32px;padding:4px 5px;gap:4px;white-space:nowrap}
@media(max-width:700px),(pointer:coarse){:is(.wf-table,.rd-table,.report-workspace) td > button.shared-action,:is(.wf-table,.rd-table,.report-workspace) td > form > button.shared-action,.wf-main .iw-balances .iw-stock-actions button.shared-action{min-height:44px}}

/* Menu option choices keep their controls in one aligned, scrollable row. */
body.wf-screen-menu .po-editor,body.wf-screen-menu .po-group-editor{min-width:0;max-width:100%}
body.wf-screen-menu .po-editor-heading{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;min-width:0}
body.wf-screen-menu .po-editor-heading h3{margin-right:auto}
body.wf-screen-menu .po-group-header-scroll,body.wf-screen-menu .po-editor [data-po-choices]{display:block;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
body.wf-screen-menu .po-group-header{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:max-content}
body.wf-screen-menu .po-group-header>label:first-child{flex:0 0 160px;min-width:0;margin:0}
body.wf-screen-menu .po-group-header [data-po-group-name]{width:160px;max-width:160px}
body.wf-screen-menu .po-group-header .iw-check{flex:0 0 auto;white-space:nowrap;margin:0}
body.wf-screen-menu .po-editor [data-po-choices]{margin:5px 0}
body.wf-screen-menu .po-editor [data-po-choice]{display:grid;grid-template-columns:160px 330px max-content;align-items:center;gap:6px;min-width:650px;max-width:none;width:100%;margin:0;padding:3px 0}
body.wf-screen-menu .po-editor [data-po-choice-name]{width:160px;min-width:0;max-width:160px}
body.wf-screen-menu .po-editor [data-choice-photo]{min-width:0}
body.wf-screen-menu .po-choice-photo{display:grid;grid-template-columns:32px 120px 125px;align-items:center;gap:4px;min-width:0;flex-wrap:nowrap}
body.wf-screen-menu .po-choice-photo>img{grid-column:1;width:32px;height:32px;object-fit:contain}
body.wf-screen-menu .po-choice-photo [data-pick-menu-image]{grid-column:2}
body.wf-screen-menu .po-choice-photo [data-choice-photo-remove]{grid-column:3}
body.wf-screen-menu .po-choice-photo [data-photo-status]{grid-column:1 / -1;white-space:normal;font-size:12px}
body.wf-screen-menu .po-editor :is(.po-group-header,[data-po-choice],.po-editor-heading) button{flex:0 0 auto;min-height:32px;padding:4px 5px;gap:4px;font-size:12px!important;white-space:nowrap}

/* Choice rows fit their panel; remove actions remain labelled icon buttons. */
body.wf-screen-menu .po-group-header-scroll,body.wf-screen-menu .po-editor [data-po-choices]{overflow:visible}
body.wf-screen-menu .po-group-header{width:100%;min-width:0;gap:4px}
body.wf-screen-menu .po-group-header>label:first-child{flex:1 1 120px;min-width:0;max-width:140px}
body.wf-screen-menu .po-group-header [data-po-group-name]{width:100%;min-width:0;max-width:140px}
body.wf-screen-menu .po-editor [data-po-choice]{display:flex;flex-wrap:nowrap;align-items:center;gap:3px;min-width:0;max-width:100%;width:100%}
body.wf-screen-menu .po-editor [data-po-choice-name]{flex:1 1 125px;width:125px;min-width:0;max-width:140px}
body.wf-screen-menu .po-editor [data-choice-photo]{flex:0 0 auto;min-width:0}
body.wf-screen-menu .po-choice-photo{display:flex;align-items:center;flex-wrap:nowrap;gap:3px}
body.wf-screen-menu .po-choice-photo>img{flex:0 0 26px;width:26px;height:26px}
body.wf-screen-menu .po-editor :is([data-po-remove-group],[data-po-remove-choice],[data-choice-photo-remove]){display:inline-flex;flex:0 0 24px;align-items:center;justify-content:center;width:24px;min-width:24px;max-width:24px;min-height:28px;padding:2px;font-size:16px!important;line-height:1}
body.wf-screen-menu .po-editor :is([data-po-remove-group],[data-po-remove-choice],[data-choice-photo-remove])::before{content:none!important;display:none!important}
body.wf-screen-menu .po-editor [data-pick-menu-image]{flex:0 0 auto;min-width:0;min-height:28px;padding:2px 3px;gap:2px;font-size:12px!important;white-space:nowrap}
body.wf-screen-menu .po-editor [data-pick-menu-image]::before{width:12px;height:12px;flex-basis:12px;font-size:12px!important}
body.wf-screen-menu .po-choice-photo [data-photo-status]{flex:0 1 auto;min-width:0;font-size:11px}
body.wf-screen-menu .po-editor [data-choice-photo-remove][hidden]{display:none!important}
