/* ==========================================================================
   Aumento exclusivo de tamaño de fuente en los datos de las tablas (tbody td)
   Sin aplicar negritas (font-weight normal)
   ========================================================================== */

/* Datos de las tablas: solo aumenta la fuente sin negritas */
table tbody td,
.table tbody td,
.table-custom tbody td,
.footable tbody td,
table tbody td *,
.table tbody td *,
.table-custom tbody td * {
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* Inputs y controles dentro de los datos de la tabla */
table tbody td input,
table tbody td select {
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Encabezados / Nombres de columnas de las tablas: se mantienen en tamaño normal y sin negritas */
table thead th,
.table thead th,
.table-custom thead th,
.footable thead th {
    font-size: 12px !important;
    font-weight: 400 !important;
}


/* ==========================================================================
   Corrección de parpadeo / vibración en el menú lateral izquierdo inferior
   ========================================================================== */

/* 1. Desplegar hacia arriba los submenús de los últimos 6 elementos para evitar salir de pantalla */
.sidebar-sm #sidebar #navigation > li:nth-last-child(-n+6) > ul,
.sidebar-sm-forced #sidebar #navigation > li:nth-last-child(-n+6) > ul,
.sidebar-xs #sidebar #navigation > li:nth-last-child(-n+6) > ul,
.sidebar-xs-forced #sidebar #navigation > li:nth-last-child(-n+6) > ul {
    top: auto !important;
    bottom: 0 !important;
}

/* 2. Controlar la altura máxima y scrollbar en submenús del menú colapsado */
.sidebar-sm #sidebar #navigation > li.dropdown:hover > ul,
.sidebar-sm-forced #sidebar #navigation > li.dropdown:hover > ul,
.sidebar-xs #sidebar #navigation > li.dropdown:hover > ul,
.sidebar-xs-forced #sidebar #navigation > li.dropdown:hover > ul {
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}




/* 3. Estabilizar aceleración GPU para eliminar micro-parpadeos */
#sidebar,
#sidebar-wrap,
#navigation,
#navigation > li,
#navigation > li > ul {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}


/* ==========================================================================
   Reloj en el header: ocultar lupa (::after) y centrar verticalmente
   ========================================================================== */

/* Quitar el ícono de lupa del header search (ya no es un buscador) */
#header #main-search::after {
    display: none !important;
    content: '' !important;
}

/* Centrar verticalmente el contenido del reloj dentro del header */
#header #main-search {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

