﻿/* Contenedor del pager (la tabla interna del GridView se mete aquí) */
.gv-pager {
    padding: 0.75rem 1rem; /* margen interior para que respire */
    background-color: #f4f6f9; /* estilo AdminLTE claro */
    text-align: center; /* centramos el pager */
}

    /* La tabla que genera el GridView para el pager */
    .gv-pager table {
        margin: 0 auto;
        border-collapse: collapse;
    }

    /* Quitamos “ruido” de los TD del pager */
    .gv-pager td {
        padding: 0;
        border: none;
    }

    /* Enlaces de paginación (las páginas que NO son la actual) */
    .gv-pager a {
        display: inline-block;
        min-width: 32px;
        padding: 4px 10px;
        margin: 0 3px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: #ffffff;
        color: #007bff;
        text-decoration: none;
        font-size: 0.85rem;
    }

        /* Hover sobre enlaces de página */
        .gv-pager a:hover {
            background-color: #007bff;
            color: #ffffff;
        }

    /* Página actual (el GridView suele renderizarla como <span>) */
    .gv-pager span {
        display: inline-block;
        min-width: 32px;
        padding: 4px 10px;
        margin: 0 3px;
        border-radius: 4px;
        border: 1px solid #007bff;
        background-color: #007bff;
        color: #ffffff;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Por si AdminLTE/Bootstrap mete subrayados raros */
    .gv-pager a,
    .gv-pager a:visited,
    .gv-pager a:focus {
        text-decoration: none;
    }


/* ---- Encabezado en línea ---- */

/* Contenedor de columnas */
.tres_columnas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch; /* 🔑 iguala la altura de las columnas */
}

    /* Cada columna ocupa 33% */
    .tres_columnas .columna {
        flex: 1 0 32%;
        display: flex;
        align-items: stretch;
    }
    

        /* Estilo para los asp:Label */
        .tres_columnas .columna span {
            width: 100%;
            /*display: flex;*/
            align-items: center;
            justify-content: center;
            padding: 10px;
            border-radius: 5px;
            font-family: sans-serif;
            text-align: center;
            box-sizing: border-box;
        }
    /* Colores específicos */
    .tres_columnas .list-group-item-success {
        background-color: #d4edda;
        color: #155724;
        list-style-type: none;
    }

    .tres_columnas .list-group-item-warning {
        background-color: #fff3cd;
        color: #856404;
        list-style-type: none;
    }

    .tres_columnas .list-group-item-danger {
        background-color: #f8d7da;
        color: #721c24;
        list-style-type: none;
    }

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .tres_columnas .columna {
        flex: 0 0 100%;
    }
}



.capa_busqueda_and_boton {
    width: 95%;
    display: flex;
    gap: 10px;
}

.capa_busqueda_drop {
    width: 95%;
}

.capa_busqueda_and_boton .form-control {
    flex: 1 1 auto; /* ocupa todo el ancho libre */
    min-width: 0; /* evita desbordes */
}

.capa_busqueda_and_boton .btn {
    flex: 0 0 auto;
}

/* 2ª fila: dropdown ocupa todo el ancho disponible */
.capa_busqueda_drop {
    width: 95%;
}

    .capa_busqueda_drop .form-select {
        width: 100%;
    }
/* Loader spinning dots */
/* Contenedor principal: fila flexible que puede envolver */
/* ==== Layout principal en flex, sin floats ==== */
/* ==== Contenedor principal ==== */
/* ==== Contenedor principal ==== */
.capa_estados_al {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
}

    /* Anula floats */
    .capa_estados_al .container_estados_iz,
    .capa_estados_al .container_estados_dr {
        float: none !important;
    }

    /* Columna izquierda (lista) flexible */
    .capa_estados_al .container_estados_iz {
        flex: 1 1 670px;
        min-width: 320px;
    }

    /* Columna derecha (buscador) */
    .capa_estados_al .container_estados_dr {
        flex: 0 0 300px;
        min-width: 260px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: left;
    }

        /* TextBox (ocupa todo menos el botón) */
        .capa_estados_al .container_estados_dr .form-control {
            flex: 1 1 auto;
            min-width: 0;
            height: 34px;
            box-sizing: border-box;
        }

        /* Botón fijo a 100px */
        .capa_estados_al .container_estados_dr .input-group-addon,
        .capa_estados_al .container_estados_dr button,
        .capa_estados_al .container_estados_dr a {
            flex: 0 0 100px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            /*padding: 0 12px;*/
            border: 1px solid #ced4da;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
            box-sizing: border-box;
        }

/* ==== Ítems del CheckBoxList ==== */
#Check_estados {
    display: block;
    width: 100%;
    padding-left: 20px;
}

    #Check_estados input[type="checkbox"] {
        margin-right: 6px;
        vertical-align: middle;
    }

    #Check_estados label {
        display: inline-block;
        vertical-align: middle;
        font-weight: 600;
        font-size: small;
        padding: 2px 0;
        width: 150px; /* ancho fijo */
        white-space: nowrap; /* sin salto de línea */
        overflow: hidden; /* oculta lo que sobra */
        text-overflow: ellipsis; /* muestra "..." */
    }

/* ==== Responsive ==== */
@media (max-width: 992px) {
    .capa_estados_al .container_estados_dr {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .capa_estados_al {
        gap: 8px;
    }

        .capa_estados_al .container_estados_dr {
            gap: 6px;
        }

    #Check_estados label {
        font-size: 0.9rem;
    }

    #Check_estados label {
        display: inline-block;
        vertical-align: middle;
        font-weight: 600;
        font-size: smaller;
        padding: 2px 0;
        width: 100px; /* ancho fijo */
        white-space: nowrap; /* sin salto de línea */
        overflow: hidden; /* oculta lo que sobra */
        text-overflow: ellipsis; /* muestra "..." */
    }
}



.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
    }

        .lds-roller div:after {
            content: "";
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #fff;
            margin: -4px 0 0 -4px;
        }

        .lds-roller div:nth-child(1) {
            animation-delay: -0.036s;
        }

            .lds-roller div:nth-child(1):after {
                top: 63px;
                left: 63px;
            }

        .lds-roller div:nth-child(2) {
            animation-delay: -0.072s;
        }

            .lds-roller div:nth-child(2):after {
                top: 68px;
                left: 56px;
            }

        .lds-roller div:nth-child(3) {
            animation-delay: -0.108s;
        }

            .lds-roller div:nth-child(3):after {
                top: 71px;
                left: 48px;
            }

        .lds-roller div:nth-child(4) {
            animation-delay: -0.144s;
        }

            .lds-roller div:nth-child(4):after {
                top: 72px;
                left: 40px;
            }

        .lds-roller div:nth-child(5) {
            animation-delay: -0.180s;
        }

            .lds-roller div:nth-child(5):after {
                top: 71px;
                left: 32px;
            }

        .lds-roller div:nth-child(6) {
            animation-delay: -0.216s;
        }

            .lds-roller div:nth-child(6):after {
                top: 68px;
                left: 24px;
            }

        .lds-roller div:nth-child(7) {
            animation-delay: -0.252s;
        }

            .lds-roller div:nth-child(7):after {
                top: 63px;
                left: 17px;
            }

        .lds-roller div:nth-child(8) {
            animation-delay: -0.288s;
        }

            .lds-roller div:nth-child(8):after {
                top: 56px;
                left: 12px;
            }

@keyframes lds-roller {
    to {
        transform: rotate(360deg);
    }
}

/* Alerta de error más accesible */
.aviso_danger {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    width: 100%;
    height: 60px;
    text-align: center;
}

/* Lista de estados*/
.lista_estados2 {
    min-width: 400px;
}

    .lista_estados2 label {
        display: inline-grid;
        max-width: 100%;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: small;
        padding: 2px;
        vertical-align: top;
        column-width: 220px;
    }

/* Elementos globales */
* {
    box-sizing: border-box;
}

/* Galería */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px;
    min-height: 1500px;
}

    .gallery img {
        width: 250px;
        height: auto;
        max-width: 700px;
        max-height: 1024px;
        object-fit: contain;
        margin: 10px;
    }

/* Formularios de alumno */
.f_alumno {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1280px;
    padding: 1rem;
    gap: 1rem;
}

.f_alumno_todo {
    display: grid;
    width: 100%;
    max-width: 1350px;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    padding: 0;
    gap: 1rem;
}

/* Grupos de formulario */
.grupo_form,
.grupo_form-70,
.grupo_form-30,
.grupo_form-50,
.grupo_form_todo {
    text-align: left;
    width: 30%;
    max-width: 800px;
}

.grupo_form-70 {
    width: 70%;
    min-width: 300px;
}

.grupo_form-30 {
    width: 30%;
    min-width: 200px;
    max-width: 50%;
}

.grupo_form-50 {
    width: 50%;
    min-width: 49%;
}



@media (max-width: 768px) {
    .grupo_form-70, .grupo_form-30 {
        text-align: left;
        width: 85%;
        min-width: 300px;
        max-width: 800px;
    }
}

/* Estilo campos lista */
.lista_grupo_f {
    display: inline-block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.43;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Data-list imágenes */
.Datalist1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

    .Datalist1 img {
        width: 250px;
        height: auto;
        margin: 10px;
        object-fit: cover;
    }

/* Inputs inline */
.dos_inputs_inline {
    display: inline-flex;
    gap: 1%;
}

    .dos_inputs_inline .textbox {
        width: 75%;
        min-width: 150px;
        max-width: 250px;
        font-size: 14px;
        height: 34px;
        line-height: 1.43;
        color: #555;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 0 6px;
        box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    .dos_inputs_inline .imagebutton {
        width: 24%;
        max-width: 30px;
        vertical-align: middle;
    }

/* Cabecera */
.contenidor_cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
}

/* ——— CONTENEDOR PRINCIPAL ——— */
.contenidor_cabecera {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    flex-wrap: nowrap; /* evita saltos mientras cabe */
}

/* ——— TITULAR ——— */
.texto_cabecera {
    width: fit-content;
    max-width: 35%;
    float: left;
    padding: 5pt;
}

    .texto_cabecera h1 {
        font-size: 15pt;
    }

.botones_cabecera {
    display: inline-block;
}

/* ——— MENÚ ——— */
.menu-cabecera {
    float: right;
}

/* Botonera visible por defecto (pantallas grandes) 
.botones_cabecera {
    display: flex;
    gap: .5rem; /* separación entre botones */
}

*/
/* Icono ☰ oculto por defecto */
.menu-cabecera summary {
    display: none;
    list-style: none;
}

.menu-cabecera summary::-webkit-details-marker {
    display: none;
}
/* quita triángulo */

@media (min-width: 1468px) {

    /* 1️⃣  Ocultar el icono ▸/☰ y asegurar que los botones SIEMPRE se vean  */
    .menu-cabecera summary {
        display: none; /* fuera el botón hamburguesa           */
    }

    .menu-cabecera {
        display: flex !important; /* ¡mostrar siempre la botonera!        */
    }
}

/* ——— VISTA REDUCIDA ——— */
@media(max-width:1468px) {
    .texto_cabecera {
        width: fit-content;
        max-width: 75%;
        float: left;
        padding: 5pt;
    }
    /* Ocultamos la botonera… */
    .botones_cabecera {
        display: none;
    }

    /* …y mostramos el icono */
    .menu-cabecera summary {
        display: inline-flex;
        cursor: pointer;
        align-items: center;
        padding: .35rem .6rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #fff;
    }

        .menu-cabecera summary::before {
            content: "\2630"; /* ☰ */
            font-size: 1.5rem;
            line-height: 1;
        }

    /* Cuando el <details> está abierto mostramos la lista en vertical */
    .menu-cabecera[open] .botones_cabecera {
        display: flex;
        flex-direction: column;
        /* position: absolute; */
        top: 100%; /* justo debajo del icono */
        right: 0;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-top: .5rem;
        padding: .5rem;
        gap: .5rem;
        z-index: 1000; /* sobre el resto */
    }
}
/* Contenedores de notas */
.contenedores_notas {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

.nota_final {
    flex: 0 0 140px;
}

.listado_situaciones {
    flex: 0 1 90%;
    max-width: 90%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

    .listado_situaciones table {
        width: max-content;
        white-space: nowrap;
    }

    .listado_situaciones th,
    .listado_situaciones td {
        word-break: break-word;
    }

@media (max-width: 1699.98px) {
    .listado_situaciones {
        flex: 0 1 70%;
        max-width: 75%;
    }
}

@media (max-width: 1199.98px) {
    .listado_situaciones {
        flex: 0 1 50%;
        max-width: 75%;
    }
}

@media (max-width: 991.98px) {
    .listado_situaciones {
        flex: 0 1 30%;
        max-width: 60%;
    }
}

@media (max-width: 767.98px) {
    .listado_situaciones {
        max-width: 40%;
    }
}

/* Diálogo modal */
.modal-dialog {
    padding: 10px;
}
