/* General Table Styling */
table.responsive-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

table.responsive-table th, 
table.responsive-table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: center;
}

table.responsive-table tr th {
    background-color: red; /* Red header background */
    color: white !important;          /* White text */
    font-weight: bold;
    cursor: pointer;
}

/* Link Styling */
.table td a {
    color: #007bff;
    text-decoration: none;
}

.table thead th {
	vertical-align: middle !important;
}

.table td a:hover {
    text-decoration: underline;
}
.table-responsive{
    overflow-x: initial !important;
}
/* Bordered and Striped Table */
.table-bordered {
    border: 1px solid #ddd;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* Light background for striped rows */
}

/* Responsive Display for Small Screens */
@media screen and (max-width: 768px) {
    table.responsive-table thead {
        display: none;
    }
	
	.table-responsive{
        overflow-x: auto !important;
    }

    table.responsive-table,
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    table.responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table.responsive-table td::before {
        content: attr(data-label); /* Show data label on small screens */
        position: absolute;
        left: 10px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
}

/* Sorting Icons */
.sort-icon {
    margin-left: 5px;
    font-size: 14px;
    display: inline-block;
    opacity: 0.5;
}

.sortable.asc .sort-icon::before {
    content: "▲"; /* Ascending arrow */
    opacity: 1;
}

.sortable.desc .sort-icon::before {
    content: "▼";
    opacity: 1;
}

.sortable:hover {
    cursor: pointer;
}

.sortable::after {
    content: "\2195"; 
    padding-left: 5px;
    font-size: 0.8em;
}

.sortable.asc::after {
    content: "\2191"; 
}

.sortable.desc::after {
    content: "\2193";
}

.pagination .page-item.active .page-link {
    background-color: red;
    border-color: red;
}

.pagination .page-item.disabled .page-link {
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.color-white{
	color: white !important;
}
