/* Webnet Accounts R05.5 — shared action accessibility and finishing layer.
   Presentation only; preserves all Filament and Livewire click handlers and permissions. */
:root{--wa-r55-forest:#153e34;--wa-r55-ink:#18372f;--wa-r55-paper:#fffefa;--wa-r55-line:#e5e1d8;--wa-r55-copper:#aa7548}
/* Stop global flex and overflow rules from pushing action controls outside visible viewport. */
.filament-tables-container,.filament-tables-table-container{position:relative;max-width:100%;}
.filament-tables-table-container{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#b8c7bf #f3f3ef;scrollbar-width:thin}
/* Filament 2 uses a dedicated table action cell. Keep it visible on the right edge
   as users scroll horizontally; high contrast and a clear vertical separator. */
.filament-tables-table th.filament-tables-actions-header-cell,
.filament-tables-table td.filament-tables-actions-cell,
.filament-tables-table th[class*="actions-header"],
.filament-tables-table td[class*="actions-cell"]{
 position:sticky!important;right:0!important;z-index:7!important;
 background:var(--wa-r55-paper)!important;
 box-shadow:-9px 0 17px -15px rgba(13,46,36,.65),-1px 0 0 var(--wa-r55-line)!important;
 min-width:9rem!important;max-width:18rem;
}
.filament-tables-table thead th.filament-tables-actions-header-cell,
.filament-tables-table thead th[class*="actions-header"]{z-index:9!important;background:var(--wa-r55-forest)!important;color:#f9f7ef!important;}
.filament-tables-table tbody tr:hover td.filament-tables-actions-cell,
.filament-tables-table tbody tr:hover td[class*="actions-cell"]{background:#f2f5ef!important}
.filament-tables-table td.filament-tables-actions-cell>div,
.filament-tables-table td[class*="actions-cell"]>div{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:.4rem!important;flex-wrap:wrap!important}
.filament-tables-table .filament-tables-actions-cell button,
.filament-tables-table .filament-tables-actions-cell a,
.filament-tables-table td[class*="actions-cell"] button,
.filament-tables-table td[class*="actions-cell"] a{
 border-radius:9px!important;min-height:32px;padding:.35rem .6rem!important;
 font-weight:700!important;font-size:12px!important;line-height:1.15!important;
 text-decoration:none!important;transition:background .14s ease,box-shadow .14s ease!important;
}
.filament-tables-table td[class*="actions-cell"] :is(button,a):focus-visible{outline:2px solid var(--wa-r55-copper)!important;outline-offset:2px!important}
/* Keep action popovers and menus in front of sticky columns. */
.filament-tables-container [role="menu"],.filament-tables-container [role="dialog"],.filament-tables-container .filament-dropdown-panel{z-index:45!important}
/* Polished approval and reversal confirmation modals across modules. */
.filament-modal-window{border-radius:20px!important;box-shadow:0 28px 70px rgba(9,35,29,.2)!important;overflow:visible}
.filament-modal-window .filament-modal-header{border-bottom:1px solid var(--wa-r55-line)!important;padding-bottom:1.1rem!important}
.filament-modal-window :is(input,textarea,select):focus-visible{outline:2px solid var(--wa-r55-copper)!important;outline-offset:1px}
/* Responsive action buttons: never make approval, cancel, or reversal icon-only. */
@media(max-width:767px){
 .filament-tables-table td[class*="actions-cell"],.filament-tables-table th[class*="actions-header"]{min-width:8rem!important;max-width:13rem!important}
 .filament-tables-table td[class*="actions-cell"] :is(button,a){font-size:11px!important;padding:.3rem .42rem!important}
}
/* Ledger-specific horizontal controls: preserve data while keeping wrappers usable. */
#universal-ledger .ul-table-wrap,.dca-statement-table,.cpw-table{max-width:100%;scrollbar-width:thin;scrollbar-color:#b8c7bf #f3f3ef}
