﻿
input:focus {
    outline: 2px solid green;
}

.form-floating {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
}

.form-control[type="file"] {
    display: block;
    width: 100%;
    padding: 60px 20px;
    border: 2px dashed #12A74B;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    appearance: none;
}

    .form-control[type="file"]::file-selector-button {
        display: none;
    }

    .form-control[type="file"]:hover {
        background-color: #f0fff8;
        border-color: #12A74B;
    }

    .form-control[type="file"]::before {
        content: "Arrastra tus archivos aquí o haz clic para seleccionar";
        white-space: pre-line;
        display: block;
        font-size: 18px;
        color: #444;
        pointer-events: none;
    }

/* ********************************************************************************  Contenido páginas **********************************************************  */

.fondoSA {
    background-image: url("../images/background/FondoSA.png");
    background-size: contain;
    background-repeat: no-repeat;
   /* background-position: right;*/
}

.fondoST {
    background-image: url("../images/background/FondoST.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoDUA {
    background-image: url("../images/background/FondoDUA.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoAF {
    background-image: url("../images/background/FondoAF.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoBL {
    background-image: url("../images/background/FondoBL.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoNEE {
    background-image: url("../images/background/FondoNEE.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoAT {
    background-image: url("../images/background/FondoAT.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoDX {
    background-image: url("../images/background/FondoDX.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoLE {
    background-image: url("../images/background/FondoLE.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoDE {
    background-image: url("../images/background/FondoDE.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoJU {
    background-image: url("../images/background/FondoJU.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoCU {
    background-image: url("../images/background/FondoCU.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoPC {
    background-image: url("../images/background/FondoPC.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoPE {
    background-image: url("../images/background/FondoPE.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoRU {
    background-image: url("../images/background/FondoRU.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoFB {
    background-image: url("../images/background/FondoFB.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoEM {
    background-image: url("../images/background/FondoEM.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoNW {
    background-image: url("../images/background/FondoNW.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoPS {
    background-image: url("../images/background/FondoPS.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoUD {
    background-image: url("../images/background/FondoUD.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoUDA {
    background-image: url("../images/background/FondoUD.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.fondoAUD {
    background-image: url("../images/background/FondoAUD.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: right;*/
}

.image-right-corner {
    max-width: 200px;
}



@media (max-width: 900px) {
    .image-right-corner {
        display: none;
    }
}




/* ********************************************************************************  NUEVO CSS  **********************************************************  */





.texto-personalizado {
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.25em;
    word-spacing: 0.25em;
}

.texto-personalizado-dos {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 25px;
    line-height: 2;
}



.text-primary {
    color: #13A74B !important;
}

.text-secondary {
    color: #7F7E83 !important;
}

.bg-primary {
    background-color: #13A74B !important;
}




.btn-primary {
    color: #fff;
    background-color: #13A74B;
    border-color: #13A74B;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #008943;
        border-color: #008943;
    }

    .btn-primary:focus {
        color: #fff;
        background-color: #008943;
        border-color: #008943;
    }

.btn-outline-primary {
    color: #13A74B;
    border-color: #13A74B;
}

    .btn-outline-primary:hover {
        color: #008943;
        background-color: #fff;
        border-color: #008943;
    }

    .btn-outline-primary:focus {
        color: #008943;
        border-color: #008943;
    }

.btn-primary:active {
    color: #fff;
    background-color: #008943;
    border-color: #008943;
}

.btn-primary.active {
    color: #fff;
    background-color: #008943;
    border-color: #008943;
}

.btn-primary:disabled {
    color: #fff;
    background-color: #13A74B;
    border-color: #13A74B;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #13A74B;
    border-color: #13A74B;
}

.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #13A74B;
    border-color: #13A74B;
}


.rounded-top {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.rounded-bottom {
    border-bottom-right-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.form-check-input:checked {
    background-color: #13A74B;
    border-color: #13A74B;
}


ul li a {
    color: white;
}

    ul li a:hover {
        color: white;
    }



/* ********************************************************************************  Barra lateral HEDIA  **********************************************************  */
#sidebar {
    min-width: 300px;
    max-width: 300px;
    background: #13A74B;
    color: #fff;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    position: relative;
}

    #sidebar.active {
        margin-left: -300px;
    }

    #sidebar ul li {
        font-size: 16px;
        list-style-type: none;
        background-color: white;
        margin: 10px 0px;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

        #sidebar ul li a {
            padding: 10px 10px;
            display: block;
            background: #13A74B;
            text-decoration: none;
        }




            #sidebar ul li a:active {
                color: #FFBA00;
            }

    #sidebar .custom-menu {
        display: inline-block;
        position: sticky;
        top: 20px;
        left: 300px;
        margin-right: -20px;
        -webkit-transition: 0.3s;
        -o-transition: 0.3s;
        transition: 0.3s;
        z-index: 9;
    }

        #sidebar .custom-menu .btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            position: relative;
            cursor: pointer;
        }

            #sidebar .custom-menu .btn i {
                margin-right: -40px;
                font-size: 14px;
            }

            #sidebar .custom-menu .btn.btn-primary {
                background: transparent;
                border-color: transparent;
            }

                /*#sidebar .custom-menu .btn.btn-primary:after {
                z-index: -1;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                content: '';
                width: 65px;
                background: #13A74B;
                border-radius: 10px;
            }*/

                #sidebar .custom-menu .btn.btn-primary:after {
                    z-index: -1;
                    position: absolute;
                    top: 0;
                    left: 30px;
                    right: 0;
                    bottom: 0;
                    content: '';
                    width: 37px;
                    background: #13A74B;
                    border-radius: 10px;
                }



#sidebarCollapse .fa-bars {
    color: white;
}


.p-pad {
    padding: 40px 0px 0px 30px;
}

img.icono-menu {
    width: 21px;
    s margin-right: 5px;
}


button.boton-cerrar-sesion.logout-sin-estilos {
    background: none;
    color: white;
    font-size: 16px;
}


.resaltadomenu {
    color: #FBAA24;
}


#menu-dos {
    max-height: 80vh; /* Establece una altura máxima para el menú */
    overflow-y: auto; /* Permite el desplazamiento vertical si el contenido excede la altura máxima */
}


div#menu {
    margin-top: 25px;
    margin-left: 50px;
    background: none;
    color: white;
    font-size: 16px;
}

.contenedor-menu {
    position: fixed;
    top: 20px;
    width: 300px;
    height: 100%;
}


#imagenlogo {
    text-align: center;
}


.boton-menu-lateral {
    border-radius: 8px 0 0 8px;
    width: 100%;
    text-align: left;
}


/* nuevo menu - barra lateral */
button.btn.btn-link {
    color: #13A74B;
    text-decoration: none;
}

.menu-card-body {
    background: #13A74B;
    padding: 0.2rem;
}




.menu-card {
    background-color: #fff;
    border: none;
    margin: 10px 0;
    border-radius: 8px 0 0px 8px;
}





.wrapper {
    display: flex;
}

/*#sidebar {
    flex: 0 0 auto;*/ /* El nav ocupará solo el espacio necesario */
/*}*/

.custom {
    flex: 1; /* La clase custom ocupará todo el espacio restante */
}



.accordion-button:not(.collapsed) {
    color: #000000;
    background-color: #edeeef;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}





button.boton-cerrar-sesion {
    color: #13A74B;
    border: 0;
    list-style-type: none;
    background-color: white;
    margin: 4px 0px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn:focus {
    box-shadow: none !important;
}



button.btn.btn-toggle.align-items-center.rounded {
    color: #13A74B;
    font-size: 12px;
    font-weight: 600;
}

.izq {
    text-align: left;
}

ul.btn-toggle-nav.list-unstyled.fw-normal.pb-1.small {
    background: #13A74B;
    padding-left: 10px;
}


.form-control:focus {
    box-shadow: none;
}



.form-control {
    appearance: auto;
}



/******************************************** Footer ****************************************************/

footer.border-top {
    background: #13A74B;
    border-top: none;
}

.border-top {
    border-top: none;
}









/* ***************************************************************************   Pagina login    *********************************************************************************** */
.barra-logo {
    width: 100%;
    text-align: center;
    background-color: white;
    border-bottom: 1px solid #555555;
}

    .barra-logo img {
        height: 100px;
    }

.contenedor-login {
    display: flex;
    margin: 3%;
}

.fondo-color-principal {
    background-color: #95CD84;
}

div#content.fondo-color-principal {
    background-color: #95CD84;
    min-height: 90vh;
}

.columna1 {
    flex: 1;
    display: flex;
    flex-basis: 55%;
    align-items: center;
    justify-content: center;
    /*    background-image: url(../images/background/login-imagen.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;*/
}

.columna2 {
    flex: 1;
    flex-basis: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}




.imagen-form-login {
    width: 118px;
}

img.logo-form-login {
    width: 30px;
    margin: 5px;
}

.h1-login {
    color: #13A74B;
    text-align: left;
    font-size: 6rem;
    line-height: 6rem;
    margin: 61px;
}


.login-form {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
}

    .login-form .form-control {
        background: #F7F7F7;
        border: 1px solid #ECECEC;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .login-form .btn-primary {
        background-color: #13A74B;
        border-color: #13A74B;
        border-radius: 4px;
        padding: 10px 20px;
        width: 100%;
    }

.logo-footer {
    max-width: 100px;
}

.footer-login {
    position: relative;
    background: #ebeaea;
}


ul.footer-lista {
    list-style-type: none;
    margin: 0 auto;
}

    ul.footer-lista li {
        margin: 10px;
    }

        ul.footer-lista li a {
            color: #7F7E83;
        }


.login-form .form-check-label {
    user-select: none;
}

.acceso {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
    padding: 5px 8px;
}




@media (max-width: 768px) {
    .contenedor-login {
        display: flex;
        flex-direction: column;
    }

    .h1-login {
        color: #13A74B;
        text-align: left;
        font-size: 3rem;
        line-height: 3rem;
        margin: 61px;
    }
}

























/* ******************************************* resultados filtrado *************************  */
label.form-check-label {
    padding: 6px;
}

.form-check .form-check-input {
    margin-top: 10px;
}


.dropdown-menu.show {
    padding: 10px;
}

input#SearchBarSub {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}





/* **********************************  POPUP *****************************************++ */


.panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    padding: 5%;
    background: #0000004d;
    box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.75);
}

    .panel div {
        display: flex;
        flex-direction: column;
        background: white;
        width: 100%;
        margin: 0 auto;
        z-index: 1000;
    }

    .panel[data-on='on'] {
        transform: scale(1);
    }

    .panel[data-on='off'] {
        transform: scale(0);
    }


.hedia-response {
    border-radius: 8px;
    box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.75);
    max-height: 80vh;
    overflow-y: auto;
    padding: 3% 12%;
}

    .hedia-response h1 {
        text-align: center;
        text-decoration: underline #13A74B;
        color: #13A74B;
        font-size: 2.8rem;
        font-weight: 600;
        margin: 20px 0px;
    }

    .hedia-response h2 {
        color: #13A74B;
        background-color: #13A74B26;
        font-weight: 600;
        font-size: 2.5rem;
        margin: 20px 0px;
        border-left: 8px solid #13A74B;
        padding: 5px 10px;
    }

    .hedia-response h3 {
        color: #7F7E83;
        background-color: unset;
        font-weight: 500;
        font-size: 2rem;
        border-left: 2px solid;
        padding: 5px 10px;
    }

    .hedia-response h4 {
        color: #7F7E83;
        background-color: unset;
    }


    .hedia-response::-webkit-scrollbar {
        width: 10px; /* Ancho del scroll */
    }

    .hedia-response::-webkit-scrollbar-thumb {
        background-color: #13A74B; /* Color verde del thumb */
        border: none; /* Elimina los bordes del thumb */
        border-radius: 8px;
    }

.cerrar-popup {
    width: 34px;
    background: #13A74B;
    color: white;
    margin-left: auto;
    border-radius: 100%;
}

.logo-popup {
    width: 300px;
    margin: 0 auto;
}

ul.lista-popup {
    list-style: none;
}

    ul.lista-popup li {
        margin: 5px;
    }

    ul.lista-popup a {
        text-decoration: none;
    }

.icono-popup {
    background: #13A74B;
    padding: 8px;
    border-radius: 50px;
    color: white;
}



/* *****************************************  LOADER  *****************************************  */

.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 9999;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #13A74B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ***************************************** Paginas back ***************************************** */
td {
    border: none;
}

.table-bordered th {
    border-style: none;
}

.table-bordered td {
    border-style: none;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgb(0 165 81 / 6%);
    color: var(--bs-table-striped-color);
}

.icono-acciones-editar {
    margin: 10px;
    color: #ccc;
    text-decoration: none;
}

    .icono-acciones-editar:hover {
        color: #13A74B;
    }

.icono-acciones-cerrar {
    margin: 10px;
    color: #ccc;
    text-decoration: none;
}

    .icono-acciones-cerrar:hover {
        color: red;
    }

/* ******************************************* Unidad Didactica ******************************************* */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

thead th {
    background-color: #13A74B;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

tbody tr {
    background-color: #f9f9f9;
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.3s ease;
}

    tbody tr:hover {
        background-color: #e0f7e0;
    }

.fila-desactivada {
    background-color: #e6e6e6 !important;
}

td input[type="text"],
td select {
    width: 100%;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-sizing: border-box;
}

    td input[type="text"]:focus,
    td select:focus {
        border-color: #13A74B;
        outline: none;
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #13A74B;
}

    input:checked + .slider:before {
        transform: translateX(14px);
    }

.fila-desactivada {
    background-color: lightgray;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(14px);
    }



/* ******************************************* general ****************************************************/


.accordion-button:focus {
    box-shadow: 0 0 0 .15rem RGBA(0, 165, 81, 0.5) !important;
}


/* Asegura que el html y el body ocupen toda la pantalla */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Configura el contenedor principal como flexible */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.min-vh-100 {
    min-height: 100vh !important; /* Mínima altura para ocupar toda la pantalla */
}

.flex-grow-1 {
    flex: 1 0 auto !important; /* Permite que el contenido principal se expanda */
}

/* scroll menu */

.menu-card-body {
    max-height: 320px; /* Ajusta la altura según sea necesario */
    overflow-y: auto; /* Activa el scroll vertical */
    padding-right: 5px; /* Opcional: evita que el scroll se superponga con el contenido */
}

    /* Personalizar scrollbar (opcional) */
    .menu-card-body::-webkit-scrollbar {
        width: 6px;
    }

    .menu-card-body::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

        .menu-card-body::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }






.hedia-response-popupmini {
    border-radius: 8px;
    box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.75);
    max-height: 80vh;
    max-width: 60%;
    overflow-y: auto;
    padding: 3% 6%;
}





.contenedor-graficas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

    .contenedor-graficas canvas {
        max-width: 300px;
        width: 100%;
        height: auto;
        max-height: 300px;
        overflow: auto;
    }

    .contenedor-graficas > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }



#sidebar ul li {
    font-weight: 700;
}

button.btn.btn-link {
    font-weight: 700;
}
a.resaltadomenu.loader-btn.texto-largo {
    font-size: 16px;
}

/* ******************************************* Input file ****************************************************/

#drop-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-family: sans-serif;
    color: #888;
}

    #drop-area.highlight {
        border-color: #0066cc;
        background-color: #f0f8ff;
    }


.form-floating {
    text-align: center;
    margin: 16px auto;
    max-width: 1200px;
    font-size: 1rem;
    color: #212529;
}

.form-control[type="file"] {
    display: block;
    width: 100%;
    padding: 60px 20px;
    border: 2px dashed #12A74B;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-weight: normal;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    appearance: none;
}

    .form-control[type="file"]::file-selector-button {
        display: none;
    }

    .form-control[type="file"]:hover {
        background-color: #f0fff8;
        border-color: #12A74B;
    }

    .form-control[type="file"]::before {
        content: "";
        white-space: pre-line;
        display: block;
        font-size: 16px;
        color: #444;
        pointer-events: none;
    }

.label-drop-area {
    font-size: 1.2rem;
    color: #000;
}

label.ms-2.label-drop-area {
    font-size: 1.2rem;
    color: #000000;
    opacity: initial;
    margin: 5px 0px;
}

input#fileAudit {
    color: #b2b2b2;
    font-size: 0.85rem;
}