
/* Title Styles */
@import url('reports.css');
.center-title {
    text-align: center;
    /*margin-bottom: 20px;*/
    /*padding: 2px;*/
    list-style: none;
    background-color: #121e5e;
    border-radius: 4px;
    color: white;
}
.center-title .material-icons {
    font-size: 28px;
    vertical-align: middle;
    margin-right: 10px;
    color: white; /* Primary color */
}

/* Filter Section Styles */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* Adjusted gap for better spacing */
    margin-bottom: 10px;
    align-items: center;
 
}

.filter-item {
    display: flex;
    flex-direction: column;
    /*flex: 1;*/ /* Ensure filters expand to available space */
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.dropdown-width,
.date-input {
    width: 100%; /* Full width for better responsiveness */
  
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dropdown-width:focus,
.date-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Styles */
.btn-primary, .btn-secondary {
    font-size: 14px; /* Reduced font size for better fit */
    padding: 8px 16px; /* Reduced padding for a more compact design */
    border-radius: 6px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Data Display Styles */
.data-section {
    margin-bottom: 20px; /* Reduced margin for space efficiency */
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.data-section .row {
    margin-bottom: 12px; /* Adjusted margin */
}

.data-section strong {
    font-weight: 600;
    color: #212529;
}
/* 
/* Pagination Styles */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* Reduced padding for more space */
}

.page-info {
    font-size: 14px;
    color: #6c757d;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 12px; /* More space between filter items */
    }

    .dropdown-width, .date-input {
        max-width: 100%; /* Make inputs full width on small screens */
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Make buttons full width */
    }

    .table th, .table td {
        font-size: 12px; /* Smaller font size on smaller screens */
        padding: 0.5rem; /* Reduced padding */
    }

    .pagination-section {
        flex-direction: column; /* Stack pagination controls on small screens */
        align-items: flex-start;
    }
}

.table-wrapper {
    padding: 5px;
    border-radius: 8px;
  //  margin-bottom: 20px;
    overflow-x: auto; /* Optional, in case table-scroll is missing width */
}

.table-scroll {
    max-height: 500px;
    overflow: auto;
    /* Ensure scrollbars are not clipped or hidden */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

    /* Ensure horizontal scroll is triggered when needed */
    .table-scroll table {
        width: max-content; /* Let table expand horizontally */
        table-layout: auto; /* Let table grow naturally with columns */
        border-collapse: collapse;
        min-width: 100%;
    }

    /* Sticky header */
    .table-scroll thead th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa;
        z-index: 2;
    }
.table-scroll {
    padding-bottom: 10px; /* Give space below for scrollbar */
}


/* Table styling */
.table td,
.table th {
    padding: 0.5rem !important;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Sticky header */
.table thead.table-light th {
    background-color: #000 !important;
    color: #fff !important;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Responsive fix for smaller devices */
@media (max-width: 768px) {
    .table-scroll-container {
        overflow-x: auto;
    }

    .custom-scroll table,
    .table-header table {
        width: max-content;
    }

    .table td,
    .table th {
        font-size: 14px;
        min-width: 120px; /* Ensures spacing on small screens */
    }
}


:root {
    --primary-color: #0d6efd;
    --primary-hover-color: #0b5ed7;
    --secondary-color: #6c757d;
    --secondary-hover-color: #5a6268;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --subtle-border-color: #e9ecef;
    --text-color: #212529;
    --text-muted: #6c757d;
    --header-bg: #eef2f7;
    --header-text: #333;
    --hover-bg: #f1f5f9;
    --info-box-bg: #f8f9fa;
    --info-box-border: #e9ecef;
    --info-alert-bg: #e2e3e5;
    --info-alert-text: #41464b;
}

.material-icons {
    vertical-align: middle;
    font-size: 1.1rem;
}

.page-header-title {
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--subtle-border-color);
    margin-bottom: 1.25rem;
    text-align: center;
}

.form-label.small {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.15rem;
    display: block;
}

.form-select-sm {
    border-color: var(--border-color);
    font-size: 0.85rem;
    height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-select-sm:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.filter-select {
    min-width: 200px;
    width: auto;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .btn-primary:hover {
        background-color: var(--primary-hover-color);
        border-color: var(--primary-hover-color);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .btn-secondary .material-icons {
        color: white;
        font-size: 1.2em;
    }

    .btn-secondary:hover {
        background-color: var(--secondary-hover-color);
        border-color: var(--secondary-hover-color);
    }

.info-box {
    background-color: var(--info-box-bg);
    border: 1px solid var(--info-box-border);
    border-radius: 0.3rem;
    padding: 0.75rem;
}

    .info-box p {
        margin-bottom: 0.4rem;
        color: var(--text-color);
        font-size: 0.9rem;
    }

        .info-box p strong {
            color: #343a40;
            font-weight: 600;
            margin-right: 0.3rem;
        }

    .info-box .alert-secondary {
        background-color: var(--info-alert-bg);
        color: var(--info-alert-text);
        border-color: darken(var(--info-alert-bg), 5%);
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
        margin-bottom: 0;
        border-radius: 0.25rem;
    }

.table-wrapper {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    border: 1px solid var(--subtle-border-color);
}

.table-sm th, .table-sm td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
    border-color: var(--subtle-border-color);
    color: var(--text-color);
    font-size: 0.875rem;
    white-space: nowrap;
}

.table thead.table-light th {
    background-color: white;
    color: black;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    border-color: var(--border-color);
    border-bottom-width: 2px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0,0,0, 0.025);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.table-bordered th, .table-bordered td {
    border-color: var(--subtle-border-color);
}

.pagination-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--subtle-border-color);
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .btn-outline-primary:disabled {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-muted);
        opacity: 0.6;
    }

    .btn-outline-primary .material-icons {
        color: inherit;
        font-size: 1.2rem;
        position: relative;
        top: 1px;
    }

/*.loading-spinner-container {
    padding: 2rem 0;
}

.spinner-border {
    color: var(--primary-color);
    width: 2rem;
    height: 2rem;
}*/

.alert-no-data {
    margin-top: 1rem;
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
    text-align: center;
}


