/* Sales / Purchase list tables — prevent action column overlap and clipped dropdowns */
.table-list-actions {
    overflow-x: auto;
    overflow-y: visible;
}

.table-list-actions .rz-data-grid,
.table-list-actions .rz-grid-table-wrapper {
    overflow: visible !important;
}

.table-list-actions .table-action-cell,
.table-list-actions .rz-grid-table td:last-child,
.table-list-actions .rz-grid-table th:last-child {
    white-space: nowrap;
    width: 1%;
    min-width: 96px;
    text-align: center;
    vertical-align: middle;
    position: sticky;
    right: 0;
    z-index: 2;
    overflow: visible;
}

.table-list-actions .rz-grid-table thead th:last-child {
    z-index: 4;
    background-color: #E6EAED;
}

.table-list-actions.table-striped > tbody > tr > td.table-action-cell {
    background-color: var(--bs-table-bg, #fff);
}

.table-list-actions.table-striped > tbody > tr:nth-of-type(odd) > td.table-action-cell {
    background-color: var(--bs-table-striped-bg, rgba(0, 0, 0, 0.05));
}

.table-list-actions .rz-grid-table tbody tr:nth-child(odd) td:last-child {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-list-actions .rz-grid-table tbody tr:nth-child(even) td:last-child {
    background-color: #fff;
}

.table-list-actions .table-action-dropdown {
    display: inline-flex;
    justify-content: center;
}

.table-list-actions .table-action-dropdown .dropdown-menu {
    min-width: 11rem;
}

.table-list-actions .table-action-dropdown.show,
.table-list-actions .dropdown.show {
    z-index: 1055;
}

.table-list-actions .table-action-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}
