/* List controls shared by customer, order and invoice tables. */
[hidden] { display: none !important; }
select.form-control {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23606c7e' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 7px;
}
.dropdown-toggle { padding-right: 16px; }
.dropdown-toggle::after { margin-left: 10px; }
.row-actions-menu.is-open {
    display: block;
    position: fixed;
    z-index: 1040;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: none;
    box-sizing: border-box;
    width: 240px;
    min-width: 0;
    max-width: calc(100vw - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 8px 28px #22334d26;
}
.row-actions-menu .dropdown-item { padding: 9px 18px; font-size: 12px; }
.row-actions-menu .dropdown-item:disabled { color: #929baa; cursor: default; }
.bulk-selection { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.bulk-selection .btn { text-transform: none; letter-spacing: normal; }
.selection-column-label { margin-left: auto; }
.customer-status { width: auto; min-width: 105px; height: 32px; border-color: transparent; font-weight: 600; }
select.customer-status.badge-active { background-color: #e9f6ef; color: #337b55; }
select.customer-status.badge-inactive { background-color: #f9eae9; color: #a35751; }
.commission-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.searchable-select { position: relative; }
.searchable-select > input { width: 100%; }
.searchable-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1060; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 6px 18px #22334d20; }
.searchable-option { display: block; width: 100%; border: 0; background: white; text-align: left; padding: 10px 12px; color: var(--ink); cursor: pointer; }
.searchable-option:hover, .searchable-option[aria-selected="true"] { background: #edf1ff; color: var(--accent); }
.searchable-empty { padding: 12px; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
#payments, #post-payment { scroll-margin-top: 100px; }
@media (max-width: 600px) { .commission-fields { grid-template-columns: 1fr; } }
@media print { .bulk-selection .btn, .row-actions-menu { display: none !important; } }
