html {
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}


@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1550px !important;
    }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1500px !important;
    }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1800px !important;
    }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    background-image: url(../images/fondoUCAV.PNG);
    background-size: cover;    
    color: #003f62;
    margin-bottom: 60px;
    padding-top: 50px;
}
.table {
    color: #003f62 !important;
}
.table td .form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.table thead th,
.table tbody td {
    white-space: nowrap; /* Evita que el contenido se desborde */
}



/* Reducir padding y margen en las celdas */
#tablaOrdenable th,
#tablaOrdenable td {
    padding: 2px 4px !important; /* Reduce el padding */
    font-size: 12px !important; /* Ajusta el tamaño de fuente */
    line-height: 1 !important; /* Reduce la altura de línea */
    height: 24px !important; /* Establece una altura más pequeña */
    min-height: 24px !important;
}

/* Ajustar altura de las filas */
#tablaOrdenable tr {
    height: 24px !important;
    min-height: 24px !important;
}

/* Reducir altura de los selects y inputs */
#tablaOrdenable select,
#tablaOrdenable input {
    height: 20px !important; /* Reduce la altura */
    font-size: 11px !important;
    padding: 1px 3px !important;
}

/* Reducir tamaño de los botones */
#tablaOrdenable .btn {
    padding: 2px 6px !important;
    font-size: 10px !important;
}

/* Ajustar los checkboxes */
#tablaOrdenable .form-check-input {
    transform: scale(0.8); /* Reduce el tamaño de los checkboxes */
}

.fixed-table-container2 {
    max-height: 700px; /* Define la altura máxima del contenedor */
    overflow-y: auto; /* Activa el scroll vertical */
    border: 1px solid #ddd; /* Agrega un borde para separar la tabla */
}

.table-header-fixed2 {
    position: sticky;
    top: 0;
    background-color: white; /* Fondo para que no se superponga */
    z-index: 1000; /* Asegura que se quede encima */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Agrega un sombreado elegante */
}

.sticky-header {
    position: sticky;
    top: 0;
    background: white;    
    text-align: center;
}



.form-control {
    line-height: 1rem !important;
    padding: .30rem .75rem !important;
}
.form-select {
    line-height: 1.3rem !important;
    font-size: 0.9rem !important;
}
.form-switch .form-check-input {
    width: 3em !important;
}

.btn-warning {
    color: #fff;
    background-color: orange;
    border-color: #198754;
}
.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}
.btnAzul {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    background-image: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    line-height: 1.3rem;
    border-radius: 4px;
    user-select: none;
    font-size: 1rem;
    font-weight: bold;
    background-color: #003f62;
    border-color: #003f62;
    color: white;
    cursor: pointer;
}

.btnLightBlue {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    background-image: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    line-height: 0.5rem;
    border-radius: 4px;
    user-select: none;
    font-size: 1rem;
    font-weight: bold;
    background-color: #4D7290;
    border-color: #003f62;
    color: white;
    cursor: pointer;
}
    .btnLightBlue:hover {
        background-color: #4D7290 !important;
        border-color: #003f62;
        color: white;
        cursor: pointer;
    }
.btnWarning {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    background-image: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    line-height: 1rem;
    border-radius: 4px;
    user-select: none;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ffc107;
    border-color: #003f62;
    color: white;
    cursor: pointer;
}
.btnAzul:hover {
    color: white;
    background-color: #4D7290;
}
.login {
    border-color: #003f62;
    border: 1px solid;
    width: 20%;    
    margin: auto;   
    border-radius: 10px;
    padding-top: 25px;
    padding-bottom: 20px;
}
.imagenLogin { 
    text-align: center;
}
/* Estilo para la tabla */
table {
    background-color: white; /* Fondo blanco para la tabla */
    color: #003f62; /* Color del texto */
    border-collapse: collapse; /* Elimina espacios entre bordes */
    margin-bottom: 0 !important;
}

    /* Estilo para las celdas */
    table th, table td {
        padding: 10px; /* Espaciado interno de las celdas */
        text-align: left; /* Alineación del texto */
        border: 1px solid #ddd; /* Bordes sutiles entre celdas */
    }

    /* Estilo para los encabezados */
    table th {
        background-color: #f2f2f2; /* Fondo claro para los encabezados */
        font-weight: bold; /* Texto en negrita */
    }

    /* Estilo para filas alternas */
    /*table tr:nth-child(even) {
        background-color: red;*/ /* Fondo para filas pares */
    /*}*/

    /* Estilo para la fila cuando se pasa el ratón */
    /*table tr:hover {
        background-color: #f1f1f1;*/ /* Cambia el color de fondo al pasar el ratón */
    /*}*/

/* Estilo para resaltar el fondo del select cuando tiene un valor seleccionado */
.highlight-background {
    background-color: #f0f0f0; /* Color de fondo, puedes personalizarlo */
}
/* Esto asegura que las options no hereden el fondo del select */
.form-select option {
    background-color: white; /* Color de fondo de las opciones (opcional) */
}

.bg-red {
    background-color: #ff5757;
}

.bg-yellow {
    background-color: #fffdb2;
}

.bg-green {
    background-color: #beffb2;
}

.bg-red:hover {
    background-color: #cb4a4a;
}

.bg-yellow:hover {
    background-color: #d2df8c;
}

.bg-green:hover {
    background-color: #90df8c;
}

.pagination-link {
    cursor: pointer; /* Cambia el cursor a mano cuando se pasa el mouse sobre los enlaces */
}


.legend-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.legend-item {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.table > :not(caption) > * > * {
    padding: .3rem .3rem !important;
}
    /**************************************************/
    /***************ESTILOS GENÉRICOS******************/
    .navbar {
    color: #fff;
    background-color: #003f62 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Asegura que esté sobre otros elementos */  
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para efecto visual */
}

.navbar-light .navbar-nav .nav-link, .navbar-light .navbar-nav .show > .nav-link {
    color: white !important;
}
.nav-link.active {
    color: white !important;
    font-weight:700;
}
.page-link {
    color: #003f62 !important;

}
.page-item.active .page-link {    
    color: white !important;
    background-color: #003f62 !important;
    border-color: #003f62 !important;
}
.text-dark {
    --bs-text-opacity: 1;
    color: white !important;
}
.dropdown-menu {
    background-color: #003f62 !important;
    
}
.fw-bold {
    font-weight: 700 !important;
}
.bBottom {
    border-bottom: 1px solid #003f62;
}

.bBottom2 {
    border-bottom: 2px solid #003f62;
}

.tAlignC {
    text-align: center;
}

.tAlignR {
    text-align: right;
}

.tAlignJ {
    text-align: justify;
}

.mw70 {
    max-width: 70%;
}

.mw90 {
    max-width: 90%;
}

.mw100 {
    max-width: 100%;
}

.fRight {
    float: right;
}

.fLeft {
    float: left;
}

.w100 {
    width: 100%;
}

.w90 {
    width: 90%;
}

.w80 {
    width: 80%;
}

.w70 {
    width: 70%;
}

.w60 {
    width: 60%;
}

.w50 {
    width: 50%;
}

.w40 {
    width: 40%;
}

.w30 {
    width: 30%;
}

.w20 {
    width: 20%;
}

.w15 {
    width: 15%;
}

.w10 {
    width: 10%;
}

.w5 {
    width: 5%;
}

.w3 {
    width: 3%;
}
.mt5 {
    margin-top: 5%;
}
.mt15 {
    margin-top: 15%;
}
.mt25 {
    margin-top: 25%;
}
/**********ESTILOS DE COMBOS********/
.custom-multiselect {
    position: relative;        
}

.select-box {
    border: 1px solid #ccc;
    padding: 4px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 5px;
}

.select-box:hover {
    background-color: #f0f0f0;
}

.arrow-down {
    float: right;
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-top: 5px;
}

.checkbox-list {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1;
    max-height: 150px;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkbox-list label {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
}

.checkbox-list label:hover {
    background-color: #e9e9e9;
}
.asignatura-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.copy-icon {
    margin-left: 5px;
    font-size: 1rem;
    color: #17a2b8; /* Azul Bootstrap */
    cursor: pointer;
}


/******************************COLORES CELDAS POR ASIGNATURAS****************************************/

/* Solo afecta la celda, no el tr */
.codigo-pad-cell {
    padding: 5px;
    text-align: center;
}

/* Colores específicos */
.codigo-pad-cell.bg-red {
    background-color: #dc3545 !important; /* Rojo */
    color: white !important;
}

.codigo-pad-cell.bg-green {
    background-color: #28a745 !important; /* Verde */
    color: white !important;
}

.codigo-pad-cell.bg-yellow {
    background-color: #ffc107 !important; /* Amarillo */
    color: black !important;
}
.hidden-row {
    display: none !important;
}
.bg-purple {
    background-color: #AA00FF !important; /* Color morado exacto */
    color: black !important; /* Texto en negro */
}

.bg-pink {
    background-color: #FF66B2 !important;
}

.bg-lightblue {
    background-color: #66CCFF !important;
}
.custom-link {
    text-decoration: underline; /* Mantiene el subrayado */
    color: inherit; /* Usa el color del texto del padre en vez del azul */
}

.custom-link:visited {
    color: inherit; /* Evita que el enlace cambie de color al ser visitado */
}

.custom-link:hover {
    color: inherit; /* Mantiene el color al pasar el ratón por encima */
}


/********************************GESTIÓN CALENDARIO******************/
.mes-calendario {
    flex: 1;
    min-width: 150px;
    min-height: 300px; /* Ajusta según el tamaño estándar cuando hay varios meses */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ====== CALENDARIO: estilos coherentes con btnAzul + actividad especial más visible ====== */

/* Botones de modo */
.btn-modo-cal {
    border-radius: .375rem;
    padding: .25rem .6rem;
    font-weight: 600;
}

/* Cuando el botón está activo (clases) usamos tu azul */
.btn-modo-cal-activo-clases {
    background-color: #003f62 !important; /* tu azul (ajústalo si tu btnAzul es otro) */
    border-color: #003f62 !important;
    color: #fff !important;
}

/* Cuando el botón está inactivo (clases) */
.btn-modo-cal-inactivo-clases {
    background: transparent !important;
    border: 1px solid #003f62 !important;
    color: #003f62 !important;
}

/* Botón actividad especial activo (amarillo, pero con borde fuerte) */
.btn-modo-cal-activo-actividad {
    background-color: #ffc107 !important;
    border: 2px solid #e0b300 !important;
    color: #111 !important;
}

/* Inactivo actividad */
.btn-modo-cal-inactivo-actividad {
    background: transparent !important;
    border: 2px solid #e0b300 !important;
    color: #a07800 !important;
}

/* Leyenda: cuadros un poco más grandes */
.legend-box {
    width: 26px !important;
    height: 20px !important;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,.15);
}

/* Leyenda actividad: borde más grueso para que se vea */
.legend-actividad {
    border: 4px solid #e0b300 !important;
    box-shadow: 0 0 0 2px rgba(224,179,0,.25);
}
/* =========================================================
   LAYOUT NUEVO: topbar + offcanvas lateral
   Pegar al final de site.css
   ========================================================= */

.app-topbar {
    background-color: #003f62 !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
    min-height: 58px;
}

    .app-topbar .navbar-brand,
    .app-topbar .nav-link,
    .app-topbar .navbar-text,
    .app-topbar .btn-link {
        color: #fff !important;
    }

    .app-topbar .navbar-brand {
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .app-topbar .nav-link {
        font-weight: 500;
        opacity: .95;
    }

        .app-topbar .nav-link:hover,
        .app-topbar .nav-link.active {
            opacity: 1;
            text-decoration: none;
        }

    .app-topbar .navbar-toggler {
        border-color: rgba(255,255,255,.25);
    }

    .app-topbar .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

/* Accesos rápidos superiores */
.app-shortcuts {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

    .app-shortcuts .nav-link {
        padding: .45rem .7rem;
        border-radius: .5rem;
        white-space: nowrap;
    }

        .app-shortcuts .nav-link:hover,
        .app-shortcuts .nav-link.active {
            background: rgba(255,255,255,.12);
            color: #fff !important;
        }

/* Botón menú */
.btn-app-menu {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .6rem;
    padding: .45rem .8rem;
    font-weight: 600;
    white-space: nowrap;
}

    .btn-app-menu:hover {
        background: rgba(255,255,255,.20);
        color: #fff;
        border-color: rgba(255,255,255,.28);
    }

/* Chip sesión */
.app-user-chip {
    color: #fff;
    font-size: .92rem;
    white-space: nowrap;
}

    .app-user-chip strong {
        font-weight: 700;
    }

/* Offcanvas lateral */
.app-offcanvas {
    width: 340px !important;
}

    .app-offcanvas .offcanvas-header {
        background: #003f62;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .app-offcanvas .btn-close {
        filter: brightness(0) invert(1);
    }

    .app-offcanvas .offcanvas-body {
        background: #fff;
    }

/* Secciones del menú */
.app-menu-section {
    margin-bottom: 1.25rem;
}

.app-menu-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .55rem;
    padding-left: .2rem;
}

.app-menu-list {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.app-menu-link {
    display: block;
    text-decoration: none;
    color: #003f62;
    padding: .7rem .85rem;
    border-radius: .65rem;
    transition: background-color .15s ease, color .15s ease;
    font-weight: 500;
}

    .app-menu-link:hover {
        background: #eef4f8;
        color: #003f62;
    }

    .app-menu-link.active {
        background: #003f62;
        color: #fff !important;
    }

.app-menu-subtle {
    font-size: .88rem;
    color: #66717c;
    margin-top: .15rem;
}

/* Dropdown ajustes */
.dropdown-menu-darkish {
    background-color: #003f62 !important;
    border: 0;
    min-width: 14rem;
}

    .dropdown-menu-darkish .dropdown-item {
        color: #fff !important;
    }

        .dropdown-menu-darkish .dropdown-item:hover,
        .dropdown-menu-darkish .dropdown-item:focus,
        .dropdown-menu-darkish .dropdown-item.active {
            background-color: rgba(255,255,255,.12) !important;
            color: #fff !important;
        }

/* Ajuste del contenido principal */
.app-main-container {
    min-height: calc(100vh - 140px);
}

/* En móvil ocultamos shortcuts para no saturar */
@media (max-width: 991.98px) {
    .app-shortcuts {
        display: none;
    }

    .app-user-chip {
        display: none;
    }
}

/* En embed ocultamos topbar y offcanvas */
body.is-embed .app-topbar,
body.is-embed .app-offcanvas {
    display: none !important;
}

.filtro-dinamico {
    min-height: 70px;
    min-width: 220px;
    transition: opacity .18s ease, visibility .18s ease;
}

.filtro-dinamico.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.filtro-dinamico.is-visible {
    opacity: 1;
    visibility: visible;
}

select.is-loading {
    opacity: .75;
}
.filtros-horario {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
}

.filtro-item {
    flex: 0 0 auto;
}

    .filtro-item .form-label {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .filtro-item .form-select {
        min-width: auto;
    }

/* anchos concretos */
.filtro-ciclo {
    width: 125px;
}

.filtro-facultad {
    width: 260px;
}

.filtro-titulacion {
    width: 520px;
}

.filtro-curso {
    width: 130px;
}

.filtro-semestre {
    width: 150px;
}

.filtro-grupo {
    width: 150px;
}

.filtro-mencion {
    width: 150px;
}

/* para que el texto largo de titulación no haga crecer demasiado */
#grado {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
