/*
    El siguiente archivo de estilos contiene los estilos generales de la aplicación.

    Colores:
        #FFFFFF (Blanco - Fondos y Textos en botones)
        #B03407 (Ladrillo - Botones Primarios)
        #000000 (Negro - 12% de opacidad para bordes - 60% de opacidad para textos claros - 87% de opacidad para textos)
        #B90C0C (Rojo - Acciones de peligro)
        #F6F6F6 (Gris - 87% de opacidad para el fondo)
    
    Font-Family: Darker Grotesque;


*/
@font-face {
    font-family: 'Darker Grotesque';
    src: url('../fonts/DarkerGrotesque-Regular.ttf');
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Darker Grotesque';
    color: rgba(0, 0, 0, 0.87);
    /* Convierto 1rem a 19px */
    font-size: 19px;
    scroll-behavior: smooth;
}

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active
{
    box-shadow: 0 0 0 30px white inset !important;
 -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Estilos generales de los textos */

h1,h2,h3{
    text-align: center;
    margin: 0.5rem 0;
}

h1{
    font-size: 1.5rem;
}

h2{
    font-size: 1.3rem;
}

h3{
    font-size: 1.15rem;
}

h5{
    margin: 0;
}

p{
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

a{
    text-decoration: none;
    color: rgba(0, 0, 0, 0.87);
    font-weight: bold;
}

a:hover{
    text-decoration: none;
    color: white;
}

/* Estilos de botones */
.boton-principal,
.boton-aceptar,
.boton-cancelar{
    height: 42px;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 900;
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0.15px;
    transition: all 0.2s ease-in-out;
    padding: 0 1rem;
}

.boton-principal{
    background-color: #B03407;
}

.boton-principal-modificado{
    background-color: initial;
    border: 2px solid #B03407;
    color: #333;
}

.boton-principal-right{
    margin: 0 0 0 auto !important;
}

.boton-principal:hover{
    opacity: 0.9;
    color: white;
}

.boton-principal-modificado:hover{
    background-color:#B03407;
}

.boton-aceptar{
    background-color: #037523;
    ;
    transition: all 0.2s ease-in-out;
}

.boton-aceptar:hover{
    opacity: 0.8;
}

.boton-cancelar{
    background-color: #B90C0C;
    transition: all 0.2s ease-in-out;
}

.boton-cancelar:hover{
    opacity: 0.8;
    color: white;
}

.mensaje-advertencia{
    position: absolute;
    width: 50%;
    left: 25%;
    top: 45%;
    background: #F7F7F7;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

/* Estilos de formularios */
.dropdown-item.active, .dropdown-item:active{
    background-color: initial;
}

.form-control,
.form-select{
    margin: 0.5rem 0 !important;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.5rem;
}

.form-control:focus,
.form-select:focus{
    color: #212529;
    background-color: #fff;
    border-color: #B03407;
    outline: 0;
    box-shadow: 0 0 0 .15rem #F1CDC1;
}

.form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    margin: auto;
}

.aceptar-cancelar{
    display: flex;
    position: relative;
    grid-column-start: 1;
    grid-column-end: 3;
    margin: 1rem 0;
}

.aceptar-cancelar a{
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.form-group:nth-of-type(odd){
    margin-left: 2rem;
}

.form-group:nth-of-type(even){
    margin-right: 2rem;
}

.table tbody tr:hover{
    cursor: pointer;
}

.form-group.select{
    grid-column-start: 1;
    grid-column-end: 3;
}

.form-group.select:nth-of-type(odd){
    margin-left: 0;
    margin-right: 1rem;
}

.form-group.select select{
    font-size: 0.9rem;
    font-weight: 500;
    min-width: fit-content;
}

.bootstrap-select>.dropdown-toggle{
    height: 37.58px;
    padding: 0.175rem 0.375rem;
}

.restablecer-contraseña-button{
    width: calc(100% - 2rem);
    height: 1.5rem;
}

span.obligatorio{
    color: red;
}

.doble{
    grid-column-start: 1;
    grid-column-end: 3;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('../img/calendario.svg');
}

.form-check.form-switch{
    margin-top: 0.5rem;
}

.form-check-input:checked{
    background-color: #F1B8A4;
    border-color: #F1B8A4;
}

.form-switch .form-check-input:checked{
    background-image: url("../img/Toggle.svg");
    background-position: right center;
}

.form-check-input:focus {
    border-color: #F1B8A4;
    outline: 0;
    box-shadow: 0 0 0 .25rem #F1B8A4;
}

.form-switch .form-check-input:focus {
    background-image: url("../img/Toggle.svg");
}

.form-group span .ayuda-formulario{
    vertical-align: unset;
    padding: 0;
    font-size: 0.9rem;
}

.edicion-legajo{
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.edicion-legajo .form{
    width: 65%;
    margin: 0;
}

.edicion-legajo .legajo-kpis{
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.edicion-legajo .legajo-kpis .card{
    width: 90%;
    height: 84px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    justify-content: space-evenly;
    padding: 0.5rem;
}

.edicion-legajo .legajo-kpis .card p{
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.bootstrap-select .btn:not(.bs-placeholder) {
    white-space: normal!important;
    word-wrap: break-word!important;
}

#crear-etiqueta{
    width: 28px;
    cursor: pointer;
    position: relative;
    top: -2.3rem;
    right: calc(-100% + 2rem);
}
/* Estructura de la pagina */
.row{
    --bs-gutter-x: 0;
}

.content{
    padding: 1rem;
    background-color: #F7F7F7;
    height: 93vh;
    overflow: auto;
}

.content h1{
    text-align: left;
}

.content h2{
    text-align: left;
}

/* Estilos para el menu de opciones en tablas */
.menu-opciones{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.menu-opciones .left{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.menu-opciones .boton-principal,
.menu-opciones .boton-cancelar,
.menu-opciones .boton-aceptar{
    display: flex;
    align-items: center;
    margin: 0.25rem;
}

.menu-opciones .right{
    display: flex;
    flex-direction: column;
}

.menu-opciones .right .filters{
    display: flex;
    align-items: center;
}

.menu-opciones .right .filters > *{
    margin: 0;
    margin-right: 0.5rem;
}

.menu-opciones .right .filters form:last-of-type{
    margin-right: 0;
}

/* Estilo de las tablas */
table{
    text-align: center;
    background-color: white;
    border: 1px solid #e6e6e6;
    font-size: 0.9rem;
}

th,td{
    padding: 0.5rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

table thead th{
    position: sticky;
    top: 0;
    background-color: white !important;
}

td a:hover{
    text-decoration: underline;
    color: #333;
}

thead{
    border-bottom: 1.1px solid #e6e6e6;
}

/* Pagination */
.content nav{
    margin-top: 1rem;
    border: none;
}

.content nav .page-item.active .page-link{
    background-color: #B03407;
    border-color: #B03407;
}

.content nav .page-link{
    color: #B03407;
}

/* End Pagination */
.active{
    background-color: #F5F5F5;
}

.active-important{
    background-color: #F5F5F5 !important;
}

.subrayado{
    text-decoration: underline;
}

.justificado{
    text-align: justify;
}

.alert{
    margin: 0;
}

.spinner{
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 10000;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner .spinner-border{
    width: 5rem;
    height: 5rem;
}
/* Resumen de bienvenida */
.resumen-container{
    width: 85%;
    margin: 2rem auto 0 auto;
}

.pendientes{
    display: flex;
}

.pending-card{
    height: auto !important;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0rem;
    padding: 1rem;
    flex-grow: 1;
    margin: 1% !important;
}

.pendientes .pending-card p{
    font-size: 1rem;
}

.pending-card .mas{
    position: absolute;
    top: 10%;
    right: 10%;
}

.resumen-container .recibos,
.resumen-container .notificaciones{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: min-content;
    padding: 3%;
}

.resumen-container .recibos .recibos-pendientes,
.resumen-container .notificaciones .notificaciones-pendientes{
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #00000060;
    ;
    width: 100%;
}

.resumen-container a:hover{
    text-decoration: underline;
    color: #B03407;
}

.resumen-container .recibos .ver-todo,
.resumen-container .notificaciones .ver-todo{
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    width: fit-content;
    padding: 0 1.5rem;
    margin-top: 0.5rem;
    align-self: end;
    font-size: 16px;
    height: 30px;
    display: flex;
    align-items: center;
}

.resumen-container .recibos .ver-todo:hover,
.resumen-container .notificaciones .ver-todo:hover{
    text-decoration: none;
    color: white;
}
/* Tablero kpi */
.tablero_kpi{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.card{
    width: 300px;
    height: 200px;
    margin: 1rem;
    align-items: center;
}

.card p{
    margin: 0;
    padding: 0;
}

.card-header{
    background-color: white;
    border-bottom: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .periodicidad{
    background: rgba(0, 0, 0, 0.6);border-radius: 4px;
    color: white;
    padding: 0.1rem 0.75rem;
}

.card-body{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card-body p{
    font-size: 1rem;
    font-weight: bold;
}

.card-body .kpi{
    font-size: 2rem;
    font-weight: normal;
}

.notificacion{
    margin: 1rem 0; 
    display: flex;
    flex: 1 1 auto;
    max-height: 72%;
}

.notificacion .info-container,
.notificacion .comentarios-container{
    width: 50%;
}

.tag{
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 32px;
    background: rgba(33, 33, 33, 0.08);
    border-radius: 16px;
}

.notificacion p{
    margin: 0.5rem 0;
}

.notificacion a:hover:not(#responder){
    color: #B03407;
    text-decoration: underline;
}

.comentarios-container{
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 7px;
}

.comentarios{
    flex: 1 1 auto;
    overflow-y: scroll;
}

.single-comment{
    border-bottom: 1px solid lightgrey;
    display: flex;
    padding-bottom: 0.5rem;
    font-weight: bold;
    justify-content: space-between;
    align-items: center;
    margin-right: 0.5rem;
}

.single-comment div{
    display: flex;
    flex-direction: column;
}

.single-comment div p{
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

textarea[name=comment]{
    resize: none;
    box-shadow: none;
}

.enviar-mensaje{
    position: absolute;
    right: 3rem;
    cursor: pointer;
}

.respuesta{
    height: 93vh;
}

/* Mobile Media Queries */
@media (max-width: 768px){
    .form{
        grid-template-columns: 1fr;
        width: 100% !important;
        margin: auto;
    }

    .aceptar-cancelar{
        justify-content: center;
        grid-column-start: unset;
        grid-column-end: unset;
        flex-wrap: wrap;
    }

    .form-group{
        margin: 0 !important;
    }

    .doble{
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .restablecer-contraseña-button{
        width: 100%;
    }

    .boton-principal-right{
        margin: 0 !important;
    }

    .mobile-simple{
        grid-column-start: unset;
        grid-column-end: unset;
    }

    .form-group.select select{
        font-size: 0.8rem;
    }

    .resumen-container{
        width: 100%;
    }

    .resumen-container .recibos,
    .resumen-container .notificaciones{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .pendientes .pending-card p{
        font-size: 0.8rem;
    }

    .pending-card{
        margin: 2% !important;
    }

    #crear-etiqueta{
        position: initial;
    }

    .notificacion{
        flex-direction: column;
    }

    .notificacion .info-container,
    .notificacion .comentarios-container{
        width: 100%;
    }
}

/* Mobile Media Queries */
@media (max-width: 576px){
    .menu-opciones{
        flex-direction: column;
    }
}
