/* Table header */
.fi-ta-table thead {
    position: sticky !important;
    top: 0;
    z-index: 9;
    /*
        Keep header above inline action buttons (edit, delete, etc.)
        but below filter dropdown menus.

        - Filament 3.x: z-index 10 conflicts with filter dropdowns.
        - Filament 4.x: z-index 10 works fine.

        Choosing 9 ensures consistent behavior across both versions.
    */
}

.dark .fi-ta-table thead {
    background-color: rgb(24, 24, 27);
}

/* Table content container
   - Filament 3.x: .fi-ta-content
   - Filament 4.x: .fi-ta-content-ctn
*/
.fi-ta-content,
.fi-ta-content-ctn {
    max-height: calc(100vh - 20rem);
    overflow-y: auto;
    position: relative;
}
