.js-td-checkbox {
    width: 2.5rem;
    padding: 0;
    text-align: left;
}

.table-row-selected .js-selected > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: #ffffe2;
}

.table-order-click, .table-pagination-click, .table-bulk-action {
    cursor: pointer;
}

.table-container {
    position: relative;
}
.table-form-overflow {
    overflow: auto;
    margin-bottom: 1rem;
}
.table-form-overflow .table {
    margin-bottom: 0;
}

.card-body .card-body-overflow {
    overflow: auto;
    margin-bottom: 1rem;
}


.table-container th.th-small {
    width: 1%;
}
.table-head-link {
    color: #000;
    text-decoration: none;
}
.thead-dark .table-head-link, .table-dark .table-head-link {
    color: #FFF;
}

.thead-dark .bi-head-sort, .table-dark .bi-head-sort {
    color: #FFF;
}



th .link-action {
    color: #000;
    text-decoration: none;
}

.table-footer-gray > tr > td {
    color: #FFF;
    background-color: #adbdcd;
    font-weight: bold;
}

.table-hover>tbody>tr:hover>*,
.table-hover.table-striped>tbody>tr:hover>* {
    background-color: #fff8ab !important;
    --bs-table-bg-state: #fff8ab !important;
}

/* Default selection style - giallo chiaro */
.js-selected,
.js-selected > td {
    background-color: #fff8ab !important;
}

/* Selection per tabelle striped - giallo più scuro */
.table-striped > tbody > .js-selected,
.table-striped > tbody > .js-selected > td {
    background-color: #fff066 !important;
}

/* Header Colors System - Override Bootstrap variables */
.table-header-primary,
.table-header-primary > tr > th {
    --bs-table-bg: #0d6efd !important;
    --bs-table-bg-state: #0d6efd !important;
    --bs-table-bg-type: #0d6efd !important;
    --bs-table-accent-bg: #0d6efd !important;
    --bs-table-color: white !important;
    --bs-table-color-state: white !important;
    --bs-table-color-type: white !important;
    background-color: #0d6efd !important;
    color: white !important;
}

.table-header-secondary,
.table-header-secondary > tr > th {
    --bs-table-bg: #6c757d !important;
    --bs-table-bg-state: #6c757d !important;
    --bs-table-bg-type: #6c757d !important;
    --bs-table-accent-bg: #6c757d !important;
    --bs-table-color: white !important;
    --bs-table-color-state: white !important;
    --bs-table-color-type: white !important;
    background-color: #6c757d !important;
    color: white !important;
}

.table-header-success,
.table-header-success > tr > th {
    --bs-table-bg: #198754 !important;
    --bs-table-bg-state: #198754 !important;
    --bs-table-bg-type: #198754 !important;
    --bs-table-accent-bg: #198754 !important;
    --bs-table-color: white !important;
    --bs-table-color-state: white !important;
    --bs-table-color-type: white !important;
    background-color: #198754 !important;
    color: white !important;
}

.table-header-danger,
.table-header-danger > tr > th {
    --bs-table-bg: #dc3545 !important;
    --bs-table-bg-state: #dc3545 !important;
    --bs-table-bg-type: #dc3545 !important;
    --bs-table-accent-bg: #dc3545 !important;
    --bs-table-color: white !important;
    --bs-table-color-state: white !important;
    --bs-table-color-type: white !important;
    background-color: #dc3545 !important;
    color: white !important;
}

.table-header-warning,
.table-header-warning > tr > th {
    --bs-table-bg: #ffc107 !important;
    --bs-table-bg-state: #ffc107 !important;
    --bs-table-bg-type: #ffc107 !important;
    --bs-table-accent-bg: #ffc107 !important;
    --bs-table-color: #000 !important;
    --bs-table-color-state: #000 !important;
    --bs-table-color-type: #000 !important;
    background-color: #ffc107 !important;
    color: #000 !important;
}

.table-header-info,
.table-header-info > tr > th {
    --bs-table-bg: #0dcaf0 !important;
    --bs-table-bg-state: #0dcaf0 !important;
    --bs-table-bg-type: #0dcaf0 !important;
    --bs-table-accent-bg: #0dcaf0 !important;
    --bs-table-color: #000 !important;
    --bs-table-color-state: #000 !important;
    --bs-table-color-type: #000 !important;
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.table-header-light,
.table-header-light > tr > th {
    --bs-table-bg: #f8f9fa !important;
    --bs-table-bg-state: #f8f9fa !important;
    --bs-table-bg-type: #f8f9fa !important;
    --bs-table-accent-bg: #f8f9fa !important;
    --bs-table-color: #000 !important;
    --bs-table-color-state: #000 !important;
    --bs-table-color-type: #000 !important;
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.table-header-dark,
.table-header-dark > tr > th {
    --bs-table-bg: #212529 !important;
    --bs-table-bg-state: #212529 !important;
    --bs-table-bg-type: #212529 !important;
    --bs-table-accent-bg: #212529 !important;
    --bs-table-color: white !important;
    --bs-table-color-state: white !important;
    --bs-table-color-type: white !important;
    background-color: #212529 !important;
    color: white !important;
}

/* Header Colors - Text and Icons */
.table-header-primary .table-head-link,
.table-header-primary .link-action,
.table-header-primary .bi {
    color: white !important;
}

.table-header-secondary .table-head-link,
.table-header-secondary .link-action,
.table-header-secondary .bi {
    color: white !important;
}

.table-header-success .table-head-link,
.table-header-success .link-action,
.table-header-success .bi {
    color: white !important;
}

.table-header-danger .table-head-link,
.table-header-danger .link-action,
.table-header-danger .bi {
    color: white !important;
}

.table-header-warning .table-head-link,
.table-header-warning .link-action,
.table-header-warning .bi {
    color: #000 !important;
}

.table-header-info .table-head-link,
.table-header-info .link-action,
.table-header-info .bi {
    color: #000 !important;
}

.table-header-light .table-head-link,
.table-header-light .link-action,
.table-header-light .bi {
    color: #000 !important;
}

.table-header-dark .table-head-link,
.table-header-dark .link-action,
.table-header-dark .bi {
    color: white !important;
}

