 /* --- SCREEN STYLES (NO CHANGES HERE) --- */
    .accordion-header-bg {
        border-radius: 10px;
        background-color: #000 !important;
    }
    .sticky-export-bar {
        top: 0;  padding: 10px;
        display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 1rem;
    }
    .btn-export {
        padding: 8px 18px; font-weight: 500; border-radius: 50px; transition: all 0.2s ease-in-out;
        display: flex; align-items: center; border: none; color: #fff; background: #4a4a4a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .btn-export:hover {
        transform: translateY(-2px); background: #3a3a3a; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    .icon-fix { width: 20px; text-align: center; margin-right: 5px; }
    
    /* Hides the print-only header on the screen */
    .print-header {
        display: none;
    }

    @media (max-width: 768px) {
        .btn-export span { display: none; }
        .sticky-export-bar { justify-content: center; }
    }

    /* --- UPDATED PRINT STYLES --- */
    @media print {
        /* General Setup */
        body * {
            visibility: hidden;
        }
        #reportCard, #reportCard * {
            visibility: visible;
        }
        #reportCard {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            margin: 0;
            border: none;
            box-shadow: none;
        }

        /* Hide screen-only elements */
       

        /* Show and style print-only elements */
        .print-header {
            display: block;
            text-align: center;
            margin-bottom: 25px;
        }
        
        /* Style section titles (h6) for printing */
        #reportCard h6 {
            font-weight: bold !important;
            font-size: 14pt;
            color: #000;
            margin-top: 20px;
            margin-bottom: 5px;
        }

        /* Table, Header, and Cell Styles */
        #reportCard table {
            width: 100%;
            border-collapse: collapse;
        }
        #reportCard table, #reportCard th, #reportCard td {
            border: 1px solid #000 !important;
            color: #000 !important;
        }
        #reportCard tbody td, #reportCard tbody th {
           font-weight: 600; /* Bolder text for readability */
           font-size: 10pt;
        }
        
        /* Ensure table headers are black with white text */
        #reportCard .table-dark {
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
        #reportCard .table-dark th {
            background-color: #000 !important;
            color: #fff !important;
            font-weight: bold;
            font-size: 11pt;
        }
    }



    /* --- UPDATED PRINT STYLES --- */
@media print {
    /* General Setup */
    body * {
        visibility: hidden;
    }
    #reportCard, #reportCard * {
        visibility: visible;
    }
    #reportCard {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    /* Hide screen-only elements */
  

    /* Show and style print-only elements */
    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 5px;  /* ✅ Reduced from 25px to 5px */
        margin-top: 0;       /* ✅ Ensure no top gap */
        padding: 0;          /* ✅ Remove internal spacing */
    }

    /* Style section titles (h6) for printing */
    #reportCard h6 {
        font-weight: bold !important;
        font-size: 14pt;
        color: #000;
        margin-top: 10px;    /* Slightly reduced top margin */
        margin-bottom: 3px;  /* Reduced bottom margin */
        page-break-after: avoid;
    }

    /* Table, Header, and Cell Styles */
    #reportCard table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: avoid;
    }
    #reportCard table, #reportCard th, #reportCard td {
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    #reportCard tbody td, #reportCard tbody th {
       font-weight: 600; 
       font-size: 10pt;
    }

    /* Ensure table headers are black with white text */
    #reportCard .table-dark {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    #reportCard .table-dark th {
        background-color: #000 !important;
        color: #fff !important;
        font-weight: bold;
        font-size: 11pt;
    }
}


/* --- CORRECTED PRINT STYLES --- */
@media print {
    /* Hide elements marked with the 'no-print' class */
    .no-print {
        display: none !important;
    }

    /* Ensure the main content card is positioned correctly for printing */
    #reportCard {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    /* Show and style the print-only header */
    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Style the section titles (h6) for printing */
    #reportCard h6 {
        font-weight: bold !important;
        font-size: 14pt;
        color: #000;
        margin-top: 20px;
        margin-bottom: 5px;
        page-break-after: avoid; /* Prevents a page break right after a title */
    }

    /* General table styling for printing */
    #reportCard table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: avoid; /* Tries to keep tables from splitting across pages */
    }

    #reportCard table, 
    #reportCard th, 
    #reportCard td {
        border: 1px solid #000 !important;
        color: #000 !important;
    }

    #reportCard tbody td, 
    #reportCard tbody th {
       font-weight: 600;
       font-size: 10pt;
    }
    
    /* Force the dark table header to print with background colors */
    #reportCard .table-dark {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    #reportCard .table-dark th {
        background-color: #000 !important;
        color: #fff !important;
        font-weight: bold;
        font-size: 11pt;
    }
}
.sticky-export-bar {
   
    top: 0;
    
    padding: 10px;
   
    display: flex;
    justify-content: flex-start; /* ✅ Changed from flex-end */
    gap: 10px;
    margin-bottom: 1rem;
}





   .table-container {
        background: #fff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .controls {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
    }

    .entries-control select {
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .pagination {
        margin-top: 10px;
        text-align: end;
    }

    .pagination button {
        /* background: black; */
        color: white;
        border: none;
        padding: 5px 10px;
        margin: 0 3px;
        
        cursor: pointer;
    }

    .pagination button.active {
        background: #007bff;
    }



    .entries-control label,
    .entries-control span {
        font-size: 14px;
        color: #000;
    }

    #entriesSelect {
        height: 32px;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 2px 6px;
    }
   

.entries-control label {
    margin: 0;
    font-weight: 500;
}

.entries-control select {
    width: 80px;
}

.entries-control span {
    margin-left: 3px;
}

.search-control {
    margin-bottom: 10px;
    text-align: right;
}

.search-control input {
    padding: 5px;
    width: 220px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-control button {
    padding: 5px 10px;
    background: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-control button:hover {
    background: #333;
}




