/* Estilos específicos para tablas de Filament */
/* Estos estilos solo se aplican a tablas que tengan la clase 'filament-tanques-table' */



/* Forzar estilos en tablas con clase específica */
.filament-tanques-table .fi-ta-table,
.filament-tanques-table .fi-ta-table-wrapper,
.filament-tanques-table .fi-ta-table-container,
.filament-tanques-table [data-filament-table],
.filament-tanques-table .fi-ta-container {
    max-height: calc(100vh - 280px) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    display: block !important;
}


/* Encabezados fijos para tablas con clase específica */
.filament-tanques-table .fi-ta-table thead,
.filament-tanques-table .fi-ta-table-wrapper thead,
.filament-tanques-table [data-filament-table] thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;

}

.filament-tanques-table .fi-ta-table thead th,
.filament-tanques-table .fi-ta-table-wrapper thead th,
.filament-tanques-table [data-filament-table] thead th,
.filament-tanques-table .fi-ta-header-cell {
    position: sticky !important;
    top: 0 !important;

    z-index: 2 !important;
    font-weight: 600 !important;
    color: #374151 !important;
    padding: 12px 16px !important;
    white-space: nowrap !important;
}


/* Modo oscuro para tablas con clase específica */
.dark .filament-tanques-table .fi-ta-table thead th,
.dark .filament-tanques-table .fi-ta-table-wrapper thead th,
.dark .filament-tanques-table [data-filament-table] thead th,
.dark .filament-tanques-table .fi-ta-header-cell {

    color: #f9fafb !important;

}

.dark .filament-tanques-table .fi-ta-table thead,
.dark .filament-tanques-table .fi-ta-table-wrapper thead,
.dark .filament-tanques-table [data-filament-table] thead {
    background: #242427 !important;
}


@media (max-width: 768px) {
    .filament-tanques-table .fi-ta-table,
    .filament-tanques-table .fi-ta-table-wrapper,
    .filament-tanques-table .fi-ta-table-container,
    .filament-tanques-table [data-filament-table],
    .filament-tanques-table .fi-ta-container {
        max-height: calc(100vh - 365px) !important;
    }

}


/* Reducir tamaño de fuente en todas las celdas */
.tanques-compact-table .fi-ta-table tbody td,
.tanques-compact-table .fi-ta-table-wrapper tbody td,
.tanques-compact-table [data-filament-table] tbody td,
.tanques-compact-table .fi-ta-table thead th,
.tanques-compact-table .fi-ta-table-wrapper thead th,
.tanques-compact-table [data-filament-table] thead th,
.tanques-compact-table .fi-ta-table tbody td *,
.tanques-compact-table .fi-ta-table-wrapper tbody td *,
.tanques-compact-table [data-filament-table] tbody td *,
.tanques-compact-table .fi-ta-table tbody td span,
.tanques-compact-table .fi-ta-table-wrapper tbody td span,
.tanques-compact-table [data-filament-table] tbody td span,
.tanques-compact-table .fi-ta-table tbody td div,
.tanques-compact-table .fi-ta-table-wrapper tbody td div,
.tanques-compact-table [data-filament-table] tbody td div {
    font-size: 0.7rem !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
