/* Bootstrap 5 Inspired Table and Grid Styling */

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6; /* Bootstrap border color */
    border-radius: 0.375rem; /* Rounded corners */
    overflow: hidden;
}

thead th {
    background-color: #f8f9fa; /* Light gray background for header */
    color: #212529; /* Dark text color */
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease-in-out;
}

tbody tr:hover {
    background-color: #f1f3f5; /* Light hover effect */
}

tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: #495057; /* Bootstrap secondary text color */
}

tfoot td {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    border-top: 2px solid #dee2e6;
}

/* Checkbox Column */
[data-checkbox-cell] input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2); /* Larger checkboxes */
}

/* Filter Dropdown */
.dropdown-menu {
    padding: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.dropdown-menu .form-control {
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* Smaller input size */
}

.dropdown-menu .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Buttons */
button {
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

button:hover {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: #fff;
}

/* Responsive Design */
@media (max-width: 767px) {
    table {
        font-size: 0.875rem; /* Smaller font size for mobile */
    }

    thead th {
        font-size: 0.875rem;
    }

    tbody td {
        font-size: 0.875rem;
    }
}

/* Bootstrap 5 Inspired Table Body Styling */

/* Table Body Styling */
tbody tr {
    border-bottom: 1px solid #dee2e6; /* Bootstrap border color */
    transition: background-color 0.2s ease-in-out;
}

tbody tr:hover {
    background-color: #f8f9fa; /* Light hover effect */
}

tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: #495057; /* Bootstrap secondary text color */
    text-align: left;
}

/* Checkbox Column */
[data-checkbox-cell] input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2); /* Larger checkboxes for better usability */
}

/* Details Link */
.details-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 1.4rem; /* 0.875rem; */
    font-weight: 800;
    color: #fff;
    background-color: #0d6efd; /* Bootstrap primary color */
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}
.details-badge span {
    margin-left: 0.5rem; /* Adds spacing between the glyphicon and the text */
}
.details-badge .glyphicon {
    font-size: 0.9rem; /* Adjust the size to make it smaller */
    vertical-align: middle; /* Align it properly with the text */
}
/**/
.details-badge:hover {
    background-color: #0b5ed7; /* Darker primary color on hover */
    text-decoration: none;
}

/* Center Align for Specific Fields */
[data-field="ORDERS_ACCEPTED"] {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 767px) {
    tbody td {
        font-size: 0.875rem; /* Smaller font size for mobile */
    }

    .details-badge {
        font-size: 0.75rem; /* Smaller badge size for mobile */
    }
}