/**
* @description Versión revisada de css fichapp con estilos renovados
* @version 1.1 (25w34b)
*/
/*******************************************************************************
*                               MARK: [Principal]                              *
*******************************************************************************/
@import "flex.css";

* {
    font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif !important;
}

:root {
    --rojo: #c70039;
    --principal: #acbf12;
    --principal-opacidad: rgb(172 191 18 /.8);
    --azul: rgb(3 94 177);
    --verde: #02814a;
    --negro: #141500;
}

:root,
:hover,
:focus,
:active {
    accent-color: var(--principal-opacidad);
}

::selection {
    background-color: var(--principal);
    color: rgb(228, 228, 228);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #eee;
    min-height: 90vh;
    overflow-x: hidden;
    margin: 0;
}

abbr {
    cursor: help;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}
h1,h2,h3,h4{
    margin: 0;
}

a:where(:hover, :focus) {
    text-decoration: underline !important;
}

/* Colores */

.dorado {
    color: #F4B400;
    fill: #F4B400;
}

.eliminar,
.rojo {
    color: var(--rojo);
    fill: var(--rojo) !important;
}

.negro {
    color: rgba(32 32 32 / .8);
}

.verde {
    color: #167c02;
    fill: #167c02;
}

.blanco {
    color: #f9f9f9;
    fill: #f9f9f9;
}
.resaltado{
    color: var(--azul);
}
.principal{
    color: var(--principal);
    fill: var(--principal);
}

/*******************************************************************************
*                                MARK: [Header]                                *
*******************************************************************************/
#menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background-color: white;
    position: absolute;
    top: 0;
    width: 100%;
    height: 8rem;
    box-shadow: rgba(0 0 0 / .1) 0px 4px 12px;
}

#logo {
    width: 12vh;
}

#enlacesmenu{
    display: flex;
    flex-direction: row;
    align-items: center;
}

#menu a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--negro);
    font-size: 1.3rem;
    gap: .5rem;
    border-radius: .3rem;
    padding: 1rem .4rem;
 }
 
 #menu a,
 #menu a svg {
    transition: .5s;
 }
 
 #menu a {
    width: 8rem;
    height: 6rem;
 }

 #sectionima>a{
    width: fit-content;
}
 
 #menu a:where(:focus, :hover) {
    background-color: var(--principal-opacidad);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
 }
 
 #menu a svg {
    font-size: 1.4rem;
    fill: var(--azul);
    background-color: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 2rem;
    height: 2rem;
 }
 
 #menu a:where(:focus, :hover) svg {
    fill: var(--azul);
 }
 
 #menu a:active {
    outline: 3px solid white;
    /*Modificado beta 24w22b*/
    background-color: #c70039;
 }

/*******************************************************************************
*                                MARK: [Cuerpo]                                *
*******************************************************************************/
main,
#cuerpo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    padding: 2rem 1rem;
    box-shadow: rgba(0 0 0 / .24) 0px 3px 8px;
    width: 100%;
    margin-top: 8rem;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}
/**/
/*Botones*/
.btn-p,
.btn-s,
.btn-t,
.btn-d {
   border: none;
   font-size: 1.4rem;
   text-decoration: none;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   padding: .5rem 1rem;
   min-width: 8rem;
   cursor: pointer;
   transition: .3s;
   user-select: none;
}

.btn-p {
   background-color: var(--azul-fuerte);
   color: white;
   border-radius: .3rem;
   box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2);
}

.btn-s {
   background-color: transparent;
   color: var(--azul-fuerte);
   outline: 1px solid #a7c8e9d0;
   border-radius: .3rem;
}

.btn-t {
   background-color: transparent;
   color: #484848;
   font-size: 1.1rem;
   font-weight: bold;
}

.btn-d {
   color: white;
   background-color: #f05a5a;
   border-radius: .3rem;
}

.btn-p:where(:hover,:focus){
   background-color: white;
   color: var(--negro) !important;
}


label svg {
    font-size: 1.6rem;
}



.borde {
    filter: drop-shadow(.1px .1px 0 black) drop-shadow(-.1px -.1px 0 black);
    transition: .2s;
}

a svg,
button.borrar {
    transition: .3s;
}

a svg:hover {
    transform: scale(1.2);
}

.modificar,
.azul {
    color: cornflowerblue;
    transition: .3s;
}

.modificar {
    background-color: white;
    padding: .2rem;
    border-radius: .3rem;
}

.modificar:where(:focus, :hover) {
    background-color: #dfdfdf;
}


#mensaje,
#notificar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 6rem;
    opacity: 0;
    left: -20rem;
    padding: .5rem .8rem;
    border-radius: .4rem;
    color: white;
    animation-name: notificar;
    animation-duration: 10s;
    z-index: 2;
}

#mensaje svg {
    margin-right: .5rem;
    fill: white;
}

#mensaje span{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fichado {
    background-color: darkolivegreen;
}

.fallo {
    background-color: var(--rojo);
}

.verificado {
    background-color: rebeccapurple;
}

@keyframes notificar {
    0% {}

    10%,
    70% {
        left: 2rem;
        opacity: 1;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }

    75%,
    100% {
        left: -5rem;
        opacity: 0;
    }

}

#nada {
    background-color: #1a73e8;
    border: 2px solid black;
    border-radius: .4rem;
    padding: .1rem 1rem;
    margin-top: 2rem;
    color: white;
}

.pre {
    display: none !important;
}

.no-seleccionable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*Ficha cada empleado beta 0.13*/
table,
tr,
td {
    empty-cells: hide;
}

.ficha {
    padding: .5rem;
    background-color: rgba(221, 200, 200, .1);
    border-radius: .4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.ficha header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.ficha form {
    border: none;
    padding: 0;
}

.ficha form button {
    font-size: 1rem !important;
    border: none;
    box-shadow: none;
    filter: none;
}

.encabezadoficha {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.encabezadoficha h3 {
    margin-left: 2rem;
}

.modificadoresficha {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

fieldset{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

legend{
    height: fit-content;
}

/* Details */

details {
    border-radius: 4px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    max-height: 2.5em;
    padding: 0.5em 0.5em 0;
 }
 
 summary:where(:hover, :focus) {
    cursor: pointer;
 }
 
 
 summary {
    font-weight: bold;
    margin: -.4em -.4em 0;
    padding: 0.5em;
    text-align: left;
    background-color: var(--gris);
    transition: .5s;
    border-radius: .3rem;
 }
 
 details[open] {
    max-height: 9999rem;
    padding: 0.5em;
    background-color: whitesmoke;
    animation: .3s desplegando 1 ease-in;
 }
 
 details[open] summary {
    background-color: var(--principal);
    margin-bottom: .5rem;
 }
 
 @keyframes desplegando {
    from {
       max-height: 3rem;
    }
 
    to {
       max-height: 50rem;
    }
 }


/*Dialogs*/
#showdialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0 / .3);
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: none;
    opacity: 1;
    animation: .2s aparecer 1 ease-in-out;
 }
 
 .desaparecer {
    opacity: 1;
    animation: .3s desaparecer 1 ease-in-out;
 }
 
 /*Animación aparecer*/
 @keyframes aparecer {
    from {
       opacity: 0;
    }
 
    to {
       opacity: 1;
    }
 }
 
 /*Animación desaparecer*/
 @keyframes desaparecer {
    from {
       opacity: 1;
    }
 
    to {
       opacity: 0;
    }
 }
 
 dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: .3rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
    gap: 0;
    opacity: 1;
    animation: .2s aparecer-arriba 1 ease-in-out;
    max-height: 90%;
 }
 
 .desaparecer-abajo {
    opacity: 1;
    margin-top: 0;
    animation: .3s desaparecer-abajo 1 ease-in-out;
 }
 
 /*Animación aparecer arriba*/
 @keyframes aparecer-arriba {
    from {
       opacity: 0;
       margin-top: 5rem;
    }
 
    to {
       opacity: 1;
       margin-top: 0;
    }
 }
 
 /*Animación desaparecer abajo*/
 @keyframes desaparecer-abajo {
    from {
       opacity: 1;
       margin-top: 0;
    }
 
    to {
       opacity: 0;
       margin-top: 5rem;
    }
 }
 
 dialog header {
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: -2.5rem;
 }
 
 dialog b {
    color: var(--rojo);
 }

/*******************************************************************************
*                              MARK: [Formulario]                              *
*******************************************************************************/

label{
    font-size: 1.5rem;
    color: var(--negro);
    opacity: .9;
}

/*Actualizado 25w34b*/
input,
select {
   font-size: 1.4rem;
   box-shadow: inset 0 2px 4px 0 hsla(0, 0%, 0%, 0.1);
   border-radius: .3rem;
   border:none;
   padding: .2rem;
   transition: .3s;
   outline: 1px solid #ccc;
}

/*Actualizado 25w34b*/
:is(input, select):where(:focus,:hover) {
   outline: 1px solid #696969;
}
/*Actualizado 25w34b*/
input[type="radio"]{
    outline: none;
}
/*Actualizado 25w34b*/
input#password{
    padding: .05rem;
    border-radius: 0;
    border-top-left-radius: .3rem;
    border-bottom-left-radius: .3rem;
    margin-top: .1rem;
}

input:valid{
    border-color: var(--verde);
    background-color: rgba(117, 204, 46, 0.1);
    box-shadow: none;
}
input:invalid{
    border-color: var(--rojo);
    background-color: rgb(204 46 46 /.1);
}

#login input{
    width: 20rem;
    height: 2.5rem;
}

#login #password{
    width: calc(20rem - 3rem);
}


#horario {
    padding-top: 3rem;
}

#horario,
.horas,
.opcioneshoras,
#formulariohoras,
#fichaje {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    margin-top: -2rem;
}


#horario,
.opcioneshoras {
    flex-direction: column !important;
}


.horas {
    margin-top: -1.5rem;
}

.horas label {
    color: #202020;
}

.opcioneshoras {
    margin: 2rem 1rem;
    gap: 1rem;
}

select::-ms-expand {
    display: none;
}

select {
    background: #f0f0f0;
}

select,
option {
    font-size: 1.5rem !important;
}

select:hover,
option:hover {
    background: #dfdfdf;
    cursor: pointer;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    border-radius: .4rem;
}

option {
    text-align: center;

}

form button,
.btn,
.btn-peque {
    color: black !important;
    background-color: white;
    padding: .3rem;
    font-size: 1.2rem;
    border-radius: .5rem;
    transition: .5s;
    border: none;
    box-shadow: 2px 2px 5px rgb(109, 109, 109);
    font-size: 2rem;
}

:is(form button, .btn, .btn-peque):hover {
    cursor: pointer;
    background-color: rgb(230 230 230);
    box-shadow: none;
}

.btn-peque {
    font-size: 1.4rem;
    text-decoration: none !important;
}

/*.form-row:nth-of-type(2),
.form-row:nth-of-type(3) {
    margin-top: 2rem;
}*/


#campocontra {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#mostrarcontra {
    box-shadow: none;
    background: var(--principal);
    width: 3rem;
    border-radius:  0 .3rem .3rem 0;
    height: 2.75rem;
    fill: whitesmoke;
    padding-top: 0;
}


#mostrarcontra:hover {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    fill: white !important;
}


.editarhoras {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.editarhoras span {
    font-size: 1.4rem !important;
}

#formulariohoras {
    margin-top: 2rem;
    text-align: center;
}

#formulariohoras form {
    flex-direction: row;
    gap: 2rem;
}

#boton {
    margin-top: 2rem;
}

#boton:hover {
    margin-bottom: 1px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#pin {
    border-radius: .4rem;
}

/*Recaptcha*/
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: -2px !important;
    bottom: 20px !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/*******************************************************************************
*                                 MARK: [Tabla]                                *
*******************************************************************************/
/*Actualizado 25w34b*/
table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ccc;
    border-radius: .5rem;
    overflow: hidden;
    font-size: 1.2rem;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}
/*Actualizado 25w34b*/
th,
td {
    padding: 8px;
}

thead tr td {
    font-weight: bold;
}

td {
    text-align: center;
    padding: .4rem;
}

.gap {
    gap: .3rem;
}

td:hover {
    background-color: rgb(26 115 232 / .6);
}

thead tr {
    background-color: rgb(210 210 210 / .8) !important;
}

tr:nth-child(even) {
    background-color: rgb(3 94 177 / .2);
}

tr:nth-child(odd) {
    background-color: rgb(2 129 74 / .2);
}

.nuevo {
    background-color: rgba(47, 104, 1, 0.8);
    border: 4px solid rgba(255, 215, 0, .9);
    color: white;
}

td a svg {
    color: #F4B400;
}

.nopuntual {
    background-color: var(--azul);
    color: white;
    font-weight: bold;
    animation-name: vivo;
    animation-iteration-count: infinite;
    animation-duration: 6s;
}

@keyframes vivo {
    0% {
        background-color: rgb(204, 46, 46);
    }

    50% {
        background-color: rgb(129, 24, 24);
    }

    100% {
        background-color: rgb(204, 46, 46);
    }
}

/*******************************************************************************
*                               MARK: [Imprimir]                               *
*******************************************************************************/
#cuerpo.impr {
    margin-top: 0 !important;
    box-shadow: none;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#cuerpo .pagina table tbody tr td {
    font-size: .8rem !important;
    padding: .1rem;
}

#imprbody,
.impr {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.impr {
    display: flex;
    justify-content: flex-start !important;
}

.pagina:first-child {
    display: none;
}

.pagina {
    height: 21cm !important;
}

.pagina table {
    /*margin-top: .5cm;*/
}

.encabezadopag {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.encabezadopag section:first-child {
    display: flex;
    justify-content: space-between;
}


/*******************************************************************************
*                                   [Versión]                                  *
*******************************************************************************/

#muestraversion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: .5rem;
    right: 1rem;
    background-color: ghostwhite;
    border-radius: .4rem;
    padding: .2rem .5rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#muestraversion span {
    color: #202020;
}

/*******************************************************************************
*                              MARK: [Responsive]                              *
*******************************************************************************/
@media (max-width:900px) {
    #cuerpo {
        margin-top: 9rem !important;
        padding: 2rem 1rem;
        width: 100%;
    }
}

@media (max-width:700px) {

    h1,
    h2 {
        text-align: center;
    }

    #menu {
        height: 8rem;
        flex-direction: column;
    }

    #enlacesmenu {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        align-content: center;
        line-height: 2rem;
    }

    table,
    td,
    tr {
        font-size: .6rem;
    }

    td {
        padding: 0;
    }

    .horas {
        flex-direction: column;
        gap: 0;
    }

    .opcioneshoras {
        margin: .3rem 1rem;
    }
}