/* Espaciado superior para evitar que el header tape el contenido */
.single-page-custom {
    padding-top: 60px !important; 
    margin-top: 0px !important;
}

/* Título Principal */
.titulo-seccion {
    color: #003366;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 1.8rem;
}

/* Labels de inputs */
.form-label {
    font-weight: 700;
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 2px;
    display: block;
    text-transform: uppercase;
}

/* Botones y Formulario */
.btn-azul-cbr { background-color: #003366 !important; color: white !important; border: none; }
.btn-gris-cbr { background-color: #6c757d !important; color: white !important; border: none; }

.form-control-sm { border-radius: 4px !important; border: 1px solid #bbb; }

/* Contenedor con doble scroll (Horizontal y Vertical) */
.tablescroll {
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: 250px; /* Altura máxima solicitada */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

/* Cabecera Fija */
.tablescroll table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #003366 !important; /* Mismo azul institucional */
    color: white;
    box-shadow: inset 0 -1px 0 #dee2e6; /* Línea divisoria inferior */
}

.table thead.fondo-azul {
    background-color: #003366 !important;
    color: white;
    font-size: 0.8rem;
}

@media screen and (max-width: 780px) {
    .single-page-custom { padding-top: 110px !important; }
    .titulo-seccion { font-size: 1.5rem; }
    
    /* Forzar ancho de tabla en móvil */
    .tablescroll table {
        min-width: 900px !important;
    }
    .tablescroll th, .tablescroll td {
        white-space: nowrap;
        font-size: 0.8rem !important;
    }
}

/* Estilo estético para el scrollbar */
.tablescroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.tablescroll::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 10px;
}
.tablescroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}