﻿/* Bootstrap 5 compatible overrides */
.table.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .table.data-table thead th {
        cursor: pointer;
    }

    .table.data-table tbody tr:hover {
        background-color: #f8f9fa;
    }

.table-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

    .table-pagination .page-link {
        cursor: pointer;
    }


.pagination .page-item .page-link, .pagination .page-item.disabled .page-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.btn .btn-csv img, .btn .btn-excel img {
    transition: transform 0.2s ease-in-out;
}

.btn-csv:hover img, .btn-excel:hover img {
    transform: scale(1.1);
}

.sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    gap: 0;
}

    .sort-indicator.right {
        left: 8px;
        right: inherit;
    }

.sort-arrow {
    font-size: 25px;
    line-height: 9px;
    height: 9px;
    color: #6c757d;
    transition: color 0.2s ease;
    user-select: none;
}

.sort-active {
    color: #6c757d;
}

.sort-disabled {
    color: #6c757d;
    opacity: 0.4;
}


th {
    cursor: pointer;
}

    th:hover .sort-icon.inactive {
        opacity: 0.6;
    }

.table-dark {
    background-color: #1e1e2f;
    color: #f1f1f1;
    border-color: #3c3c4f;
}

    .table-dark.table-striped > tbody > tr:nth-of-type(odd) {
        background-color: #2a2a3d;
    }

    .table-dark.table-hover tbody tr:hover {
        background-color: #34344a;
        color: #ffffff;
    }

    .table-dark thead th {
        background-color: #262637;
        color: #ffffff;
        border-color: #3c3c4f;
        font-weight: 600;
    }

    .table-dark td, .table-dark th {
        border-width: 1px;
    }

    .table-dark tbody tr {
        border-bottom: 1px solid #3c3c4f;
    }

th {
    vertical-align: middle !important;
}
