/* Sticky DataGrid Headers - Apply to any RadzenDataGrid */

/* Make DataGrid header sticky */
.rz-datatable-scrollable-view .rz-datatable-scrollable-header-box {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure header stays on top when scrolling */
.sticky-header .rz-datatable-scrollable-header-box {
    position: sticky !important;
    top: 60px; /* Adjust based on your navbar height */
    z-index: 100;
}

/* For Radzen DataGrid */
.rz-grid .rz-grid-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Alternative sticky header class */
.sticky-table-header .rz-grid-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f8f9fa;
}

/* Ensure proper stacking */
.sticky-table-header .rz-grid-table thead th {
    background-color: #f8f9fa;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rz-grid .rz-grid-table thead {
        top: 0;
    }
    
    .sticky-header .rz-datatable-scrollable-header-box {
        top: 0;
    }
}

/* Fix for scrollable containers */
.grid-container {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    position: relative;
}

/* Sticky header for custom tables */
.table-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
