.tr_even{
	background-color: rgb(241,241,241);
}
.ui-button.redButton {
    background-color: rgb(139,197,82);
    color: white;    
    cursor:pointer;
}
.ui-button.greenButton {
    background-color: rgb(139,197,82);
    color: white;
    cursor:pointer;
}
.ui-selectmenu-button.ui-button {
    width: 80%;
    cursor:pointer;
}
.lds-ellipsis {
  margin-top:20%;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8BC552;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgb(241,241,241);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
  background: rgb(139,197,82);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(139,197,82);
}

/* Sin flechas */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
@font-face {
    font-family: 'Roboto';
    src: url('webfonts/Roboto-Bold.eot');
    src: url('webfonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
        url('webfonts/Roboto-Bold.woff2') format('woff2'),
        url('webfonts/Roboto-Bold.woff') format('woff'),
        url('webfonts/Roboto-Bold.ttf') format('truetype'),
        url('webfonts/Roboto-Bold.svg#Roboto-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('webfonts/Roboto-Regular.eot');
    src: url('webfonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
        url('webfonts/Roboto-Regular.woff2') format('woff2'),
        url('webfonts/Roboto-Regular.woff') format('woff'),
        url('webfonts/Roboto-Regular.ttf') format('truetype'),
        url('webfonts/Roboto-Regular.svg#Roboto-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VAG Rounded Std';
    src: url('webfonts/VAGRoundedStd-Bold.eot');
    src: url('webfonts/VAGRoundedStd-Bold.eot?#iefix') format('embedded-opentype'),
        url('webfonts/VAGRoundedStd-Bold.woff2') format('woff2'),
        url('webfonts/VAGRoundedStd-Bold.woff') format('woff'),
        url('webfonts/VAGRoundedStd-Bold.ttf') format('truetype'),
        url('webfonts/VAGRoundedStd-Bold.svg#VAGRoundedStd-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
#full-permisos-head {
    margin-top:5%;
}
#full-permisos-middle {
    top:15%;
    bottom:0px;
    left:0;
    right:0;
    overflow-y: auto;
    margin:15px;
    position:absolute
}
#full-permisos-middle button{
    color:white !important;
    min-width: 30%;
    margin-top: 5%;
    cursor:pointer;
}
h2{
    color: rgb(139,197,82);
    font-family: 'VAG Rounded Std'; font-weight: bold; font-style: normal;
    text-align: center;
    margin:10px;

}
h3{
    color: rgb(139,197,82);
    font-family: 'VAG Rounded Std'; 
    font-weight: normal; 
    font-style: normal;
    font-size:90%;
}

.ui-button {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background-color:rgb(139,197,82) !important;
    border-color:rgb(139,197,82) !important;
    color:white;
    font-family: 'VAG Rounded Std' !important; 
    font-weight: bold; 
    font-style: normal ;
    cursor:pointer;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
    border-bottom-right-radius: 20px;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl {
    border-bottom-left-radius: 20px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr {
    border-top-right-radius: 20px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl {
    border-top-left-radius: 20px;
}
input{
        font-size: 16px;
        color:rgb(111, 112, 115);
        border-radius: 10px;
        height:40px;
        border-style:solid;
        border-width:1px;
        border-color:rgb(111,112,115);
        padding-left:10px;
        font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
        background-color:rgb(241,241,241);
}
.VAGRoundedStd{
        font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
}
html {
    background-color: #21635e;
    background-image:
        radial-gradient(circle at 12% 12%, rgba(185, 235, 143, 0.72), transparent 29rem),
        radial-gradient(circle at 91% 87%, rgba(49, 145, 109, 0.55), transparent 31rem),
        linear-gradient(135deg, #163d42 0%, #21635e 47%, #79b848 100%);
}

body {
    background-color: #21635e;
    background-image:
        radial-gradient(circle at 12% 12%, rgba(185, 235, 143, 0.72), transparent 29rem),
        radial-gradient(circle at 91% 87%, rgba(49, 145, 109, 0.55), transparent 31rem),
        linear-gradient(135deg, #163d42 0%, #21635e 47%, #79b848 100%);
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	height: 100%;
	margin-left: 0px;
	min-height: 100%;
	font-family: 'Roboto';
    font-weight: normal; 
    font-style: normal;
	font-size:1.0em;
    color:rgb(157,158,160);
    /*color:rgb(111,112,15);*/
}

input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    border-radius: 0 !important;
    height: auto !important;
}
input[type="radio"] {
    -webkit-appearance: radio !important;
    border-radius: 0 !important;
    height: auto !important;
}


.ui-controlgroup > .ui-controlgroup-item {
    float: auto;
}

.cuadrado{
    width:100px;
    height:100px;
    padding-right:10px;
    padding-bottom:10px;
}
.rectagular{
    width:100%;
    height:50px;
    padding-right:10px;
    padding-bottom:10px;
}

.green{
    background-color: rgb(139,197,82) !important;
}
.red{
    background-color: red !important;
}

canvas {
	width: 70%;
	height: 50%;
	object-fit: fill;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    border: 1px solid rgb(111,112,115);
    margin-top: 0px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    overflow: hidden;
}
#full-permisos p {
    font-size: 80%;
    text-align: justify;
}
#btnnuevo_img {
    background-image: url(svg/menu-salir.svg?v=1);
    height: 38px;
    width: 38px;
}
#btnperfil_img {
    background-image: url(svg/menu-usuario.svg?v=1);
    height: 38px;
    width: 38px;
}
#btnfichaje_img {
    background-image: url(svg/menu-inicio.svg?v=1);
    height: 38px;
    width: 38px;
}
#btnregistro_img {
    background-image: url(svg/menu-registros.svg?v=1);
    height: 38px;
    width: 38px;
}
#btninfo_img {
    background-image: url(svg/menu-info.svg?v=1);
    height: 38px;
    width: 38px;
}

.full-height {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    position: fixed;
    border-bottom-style: solid;
    border-bottom-width: 0px;
    background-color: white;
    min-width: 200px;
    min-height: 200px;
    position: absolute;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(9, 42, 43, 0.34), 0 8px 20px rgba(9, 42, 43, 0.2);
    box-sizing: border-box;
}

#full-height,
#full-permisos {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 28px;
}

#main {
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    position: absolute;
}

#header {
    height: 13%;
    left: 0px;
    right: 0px;
    background: linear-gradient(115deg, #5f9f3a 0%, #88c84c 52%, #aedb6c 100%);
    font-size: 150%;
    color: white;
    position: absolute;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

#header::before,
#header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

#header::before {
    background: rgba(255, 255, 255, 0.14);
    height: 170px;
    right: -50px;
    top: -100px;
    width: 170px;
}

#header::after {
    background: rgba(25, 92, 47, 0.13);
    height: 130px;
    left: -60px;
    top: 35px;
    width: 130px;
}

#header img {
    filter: drop-shadow(0 2px 1px rgba(39, 92, 35, 0.12));
    position: relative;
    z-index: 1;
}

#body {
    background: linear-gradient(155deg, #ffffff 0%, #fbfdf8 100%);
    left: 0;
    right: 0;
    top: 13%;
    bottom: 12%;
    position: absolute;
}

#bodyinfo {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    align-content: center;
    overflow: auto;
    width: 95%;
    top: 0px;
    bottom: 0px;
    position: absolute;
    font-size: 15px;
    text-align: justify;
}

    #bodyinfo b {
        color: rgb(139,197,82);
    }

#bodyincidencias {
    overflow: hidden;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    position: absolute;
    font-family:'VAG Rounded Std';
    font-weight:normal;
    font-size:100%;
}
.inc_data{
    font-family:'Roboto';
    font-weight:normal;
    font-size:80%;
    float:left;
    min-width:25%;
}
.inc_title{
    margin-top:3%;
    font-family:'VAG Rounded Std';
    font-weight:bold;
    font-size:125%;
    float:left;
    min-width: 80%;
}

.inc_button_ok{
    float:right;
    bottom:0;
    margin-left: 1%;
    background-image: url(svg/b-ok.svg?v=1);
    height: 32px;
    width: 32px;
    cursor:pointer;
}
.inc_button_ko{
    background-image: url(svg/b-ko.svg?v=1);
    height: 32px;
    width: 32px;
    float:right;
    bottom:0;
    margin-left: 1%;
    cursor:pointer;
}

#tablaincidencias table tr th {
    color: rgb(139,197,82);
    font-size: 0.8em;
    text-align: left;
}
#tablaincidencias {
    padding-left: 2%;
    top: 10%;
    left: 0;
    right: 0;
    position: absolute;
}


#bodyinformes {
    overflow: hidden;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    position: absolute;
}
#tablainformes table tr th {
    color: rgb(139,197,82);
    font-size: 0.8em;
    text-align: left;
}
#tablainformes {
    padding-left: 2%;
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
}

#tablainformes table {
    text-align: left;
    vertical-align: central;
    width: 100%;
}

#bodyregistro {
    overflow: hidden;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    position: absolute;
}
#tablaregistro table tr {
    color: rgb(157,158,160);
    font-size: 1em;
    text-align: left;
    margin-bottom:2%;
    margin-top:2%;
}
#tablaregistro table th {
    color: rgb(139,197,82);
    font-size: 0.8em;
    margin-bottom:2%;
    margin-top:2%;
}
#inforegistro_filter{
    height:50px;
    width:100%;
    position:absolute;
}

.option_select{
    background-color:rgb(139,197,82) !important;
    color:white !important;
}
.option_normal{
    background-color:white !important;
    color:rgb(139,197,82) !important;
    border: 1px solid rgb(139,197,82);
}

#filtroregistro {
    font-size: 100%;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#listregistro {
    overflow: auto;
    width: 97%;
    top: 150px;
    bottom: 0;
    position: absolute;
}

#tablaregistro {
    padding-left: 2%;
    top: 0;
    left: 0;
    right: 3%;
    position: absolute;
}

#tablaregistro table {
    text-align: left;
    vertical-align: central;
    width: 100%;
}

#inforegistro {
    text-align: left;
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 0;
    height: 9%;
    color: rgb(139,197,82);
    overflow: hidden;
}

#inforegistro_info {
    margin-left:3%;
    top:100px;
    font-size: 100%;
    height: 50px;
    float: left;
    width: 50%;
    display: flex;
    align-items: center;
    position:absolute;
    font-weight:bold;
    color:rgb(139,197,82);
}
#inforegistro_filter button{
    width:20%;
    margin-left:2%;
    margin-right:2%;
    font-size:80%;
}
.tbl_left{
    text-align:left;
}
.tbl_right{
    text-align:right;
}
#inforegistro_type button{
    width:40%;
    margin-left:2%;
    margin-right:2%;
    font-size:90%;
}
#inforegistro_type {
    right:0px;
    top:100px;
    font-size: 80%;
    height: 50px;
    float: right;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position:absolute;
}

#bodyfichaje {
    text-align: center;
    padding-top: 0px;
    align-content: center;
    overflow: auto;
    width: 100%;
    top: 0px;
    bottom: 0px;
    position: absolute;
}

#nif {
    text-transform: uppercase;
}

#bodyfichajelogin {
    width: min(82%, 342px);
    margin: clamp(20px, 6vh, 43px) auto 0;
    position: relative;
    font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
    color: #56645e;
    text-align: left;
}

.login-welcome {
    margin-bottom: 25px;
    text-align: center;
}

.login-eyebrow {
    color: #6eac3f;
    display: block;
    font-family: 'VAG Rounded Std';
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.01em;
}

.login-welcome p {
    color: #809087;
    font-family: 'Roboto';
    font-size: 0.88rem;
    line-height: 1.35;
    margin: 8px 0 0;
}

.login-fields {
    display: grid;
    gap: 8px;
}

.login-fields label {
    color: #506058;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.045em;
    margin-top: 7px;
    text-transform: uppercase;
}

#bodyfichajelogin input {
    background: #f6f8f4;
    border: 1px solid #d6e0d1;
    border-radius: 13px;
    box-sizing: border-box;
    color: #3c5045;
    height: 46px;
    padding: 0 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    width: 100%;
}

#bodyfichajelogin input:focus {
    background: #fff;
    border-color: #85c74e;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, 0.17);
    outline: none;
}

.login-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 24px;
}

#bodyfichajelogin #btn_login {
    border-radius: 13px;
    box-shadow: 0 8px 16px rgba(109, 169, 59, 0.23);
    min-height: 46px;
    padding: 0 34px;
    width: 100%;
}

#bodyfichajelogin .btn_link {
    background: transparent !important;
    border: 0 !important;
    color: #5d9e35 !important;
    font-family: 'Roboto' !important;
    font-size: 0.82rem;
    font-weight: bold;
    padding: 3px 6px;
    text-decoration: none;
}

#bodyfichajelogin .btn_link:hover,
#bodyfichajelogin .btn_link:focus {
    color: #3f7820 !important;
    text-decoration: underline;
}

.login-clock {
    border-top: 1px solid #e5ece1;
    margin-top: 24px;
    padding-top: 15px;
    text-align: center;
}

.login-clock .bodyrelojfecha {
    padding-top: 0;
}

.login-clock .bodyrelojhora {
    font-size: 2.15rem;
    letter-spacing: 0.02em;
    padding-top: 2px;
}

@media (min-width: 501px) and (min-height: 666px) {
    body {
        min-height: 100vh;
    }
}

@media (max-width: 500px), (max-height: 665px) {
    .full-height {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #header {
        height: 12%;
    }

    #body {
        top: 12%;
    }

    #bodyfichajelogin {
        margin-top: clamp(20px, 5vh, 38px);
    }
}

body.app-mobile-layout {
    background: #fff;
}

body.app-mobile-layout .full-height {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    #bodyfichajelogin input {
        transition: none;
    }
}

#bodyfichajetrabajador {
    margin: 0 0 0 0;
    font-size: 120%;
    font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
    color: rgb(111,112,115);
}

#bodyfichajeselectempresa {
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 5%;
    font-size: 120%;
}

#bodyfichajeempresa {
    margin: 0 0 0 0;
    padding-top: 2%;
    font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
    font-size: 100%;
    color:rgb(185,185,185);
}

.bodyrelojfecha {
    padding-top: 1%;
    font-size: 100%;
    color:rgb(185,185,185);
    font-family: 'VAG Rounded Std'; font-weight: normal; font-style: normal;
}

.bodyrelojhora {
    padding-top: 1%;
    font-size: 200%;
    color: rgb(111,112,115);
    font-family: 'VAG Rounded Std'; font-weight: bold; font-style: normal;
}
#bodyfichajefichar {
    bottom: 2%;
    left: 2%;
    right: 0;
    margin: 0 0 0 0;
    position: absolute;
    color: white;
    font-size: 120%;
}

#btnficharentrada {
    align-content: center;
    width: 50%;
    height: 50%;
    margin-bottom: 10px;
}

#btnficharsalida {
    align-content: center;
    width: 50%;
    height: 50%;
}

#btn_mdp_fin_jornada {
    min-width: 30%;
}

.btnficharsalida {
    min-width: 30%;
}

.btnficharincidencia {
    width: 100%;
    margin-bottom: 10px;
}

#boton_inc {
    margin-bottom: 10px;
    height: 50%;
    width: 60px;
}

#bodyperfil {
    text-align: center;
    padding-top: 0;
    align-content: center;
    width: 95%;
    top: 0px;
    bottom: 0px;
    /*position: absolute;*/
    padding-left: 5%;
    overflow-y:auto;
}

.chk_cookie {
    margin-bottom: 15px;
    margin-top: 15px;
}

.btn_cookie {
    float: right;
    margin-bottom: 5px;
}
#bodyperfil_menu{
    top:10%;
    bottom:0px;
    width:90%;
    position:absolute;
}
#bodyperfil_menu input{
    height: 30px;
}
#bodyperfil_menu h3{
    font-size: 90%;
    margin-bottom:0;
}
#bodyperfil p {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 100%;
}

#bodyperfil h1 {
    font-size: 100%;
    font-style: normal;
    color: rgb(139,197,82);
}


#bodyperfil table {
    margin: 0 auto;
    text-align: left;
}

#bodyperfil_menu .ui-accordion-content {
    padding-left: 10px;
    border-top: 0;
    /* overflow: auto; */
    padding-right: 10px;
    padding-bottom: 10px;
}

#bodyperfil_menu label {
    width: 100%;
    text-align: left;
}

#btn_eventualidad_viaje {
    width: 90%;
    margin-left: 5%;
}

#btn_eventualidad_noviaje {
    width: 90%;
    margin-left: 5%;
}

#cfg_recuerda {
    text-align: left;
    padding-left: 0px;
    margin-bottom: 10px;
    margin-left:5%;
}

    #cfg_recuerda label {
        padding-top: 10px;
    }

    #cfg_recuerda input {
        width: auto !important;
    }

#food {
    align-items: baseline;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12%;
    border-top: solid 0px;
    z-index: 0;
    background-color: white;
    overflow: no-display;
}

    #food .ui-button {
        height: 100%;
        width: 100%;
        padding-right: 2px;
        padding-left: 2px;
        background-color:white !important;
        border-width:0px !important;
    }

    #food button div {
        border-style: none;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
    }

    #food table {
        width: 100%;
        height: 100%;
    }

    #food td {
        border: 0px solid rgb(111,112,115);
    }


#botones_mdp input[type=button]{
    margin:5px;
    /*padding-top: 6px;*/
}
.opt_button{
    font-size:100%;
    min-width:35%;
    margin-top:1%;
    margin-bottom:1%;
}
.btn_inc_registro{
    background-image: url(svg/editar.svg?v=1);
    height: 23px;
    width: 24px;
    float:right;
    bottom:0;
    margin-left: 1%;
    cursor:pointer;
}
.btn_evt_registro{
    background-image: url(svg/editar.svg?v=1);
    height: 23px;
    width: 24px;
    float:right;
    bottom:0;
    margin-left: 1%;
    cursor:pointer;
}

.popup form{
    margin:6%;
}
.popup h3{
    font-size:100% !important;
    color:rgb(111, 112, 115) !important;
}
.popup{
    position:fixed;
    height:300px;
    width:300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 9999;
    background-color:white;
    border-color:rgb(139,197,82);
    border-width:1px;
    border-radius:10px;
    box-shadow: 5px 5px 5px darkgray;
    text-align:center;
}
.bigpopup{
    height:400px !important;
}
.popup_alert{
    background-image: url(svg/ico-error.svg?v=1);
    height: 93px;
    width: 112px;
    left: 94px;
    position: absolute;
    top: 30px;
}
.popup_info{
    background-image: url(svg/ico-info.svg?v=1);
    height: 93px;
    width: 112px;
    left: 94px;
    position: absolute;
    top: 30px;
}
.popup_title{
    position:absolute;
    top:120px;
    width:100%;
}
.popup_message{
    width:100%;
    position:absolute;
    top:170px;
    color:rgb(111, 112, 115);
    text-align:center;
}
.popup_close{
    background-image: url(svg/cerrar.svg?v=1);
    height: 22px;
    width: 22px;
    float:right;
    margin-top:10px;
    margin-right:10px;    
    cursor:pointer;
}
.overlay{
    background-color:rgb(241,241,241);
    opacity: 0.7;
    position:fixed;
    z-index:9000;
    width:100%;
    height:100%;  
    top:0;
    left:0; 
}
.ico_calendar{
    float:right;
    bottom:0;
    background-image: url(svg/editar.svg?v=1);
    height: 23px;
    width: 24px;
    cursor:pointer;
}
#frmincidencia_form input{
    height:20px !important;
    width:90px !important;
}
#boton_inc_frm_inc{
    text-align:left;
}
#frmincidencia{
    height:350px !important;
}
#frmincidencia button{
    position: absolute;
    bottom:   6%;
    left: 6%;
    min-width:90px;
}
#btn_inc_save{
    left: 120px !important;
}
#div_wait{
    height:150px !important     
}
.ui-button-disabled{
    background-color: rgb(232,232,232) !important;
    border-color: rgb(232,232,232) !important;
}
.ui-button.ui-state-active:hover, .ui-button:active, .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active{
    background-color: rgb(139,197,82) !important;
    border-color: rgb(139,197,82) !important;

}

/* Diseño adaptable del acceso: pantalla amplia, ventana compacta y móvil. */
:root {
    --tiq-ink: #365248;
    --tiq-muted: #6f877d;
    --tiq-green: #78b947;
    --tiq-soft-green: #f4f8f1;
}

.login-branding {
    display: none;
}

.login-card-header {
    display: none;
}

#full-height,
#full-permisos {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    inset: 0;
    min-height: 0;
    min-width: 0;
    position: fixed;
    width: 100vw;
}

body.login-screen #food {
    display: none !important;
}

body.login-screen #body {
    bottom: 0;
}

body.login-screen #bodyfichaje > h2 {
    display: none;
}

/* Ordenador amplio: identidad a la izquierda y acceso a la derecha. */
body.login-screen:not(.compact-layout) #header {
    display: none;
}

body.login-screen:not(.compact-layout) #body {
    inset: 0;
    background: #fbfdfb;
}

body.login-screen:not(.compact-layout) .login-branding {
    align-items: center;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.11) 0 13%, transparent 13.2%),
        radial-gradient(circle at 90% 88%, rgba(222, 248, 139, 0.22) 0 10%, transparent 10.2%),
        linear-gradient(135deg, #178660 0%, #56af60 58%, #9bd34c 100%);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 50%;
    z-index: 3;
}

body.login-screen:not(.compact-layout) .login-branding::before {
    border: 82px solid rgba(18, 113, 82, 0.28);
    border-radius: 50%;
    content: '';
    height: min(46vw, 510px);
    left: min(-15vw, -155px);
    position: absolute;
    top: calc(50% - min(23vw, 255px));
    width: min(46vw, 510px);
}

body.login-screen:not(.compact-layout) .login-branding img {
    max-width: min(42vw, 405px);
    position: relative;
    width: 68%;
    z-index: 1;
}

body.login-screen:not(.compact-layout) #bodyfichaje {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 50%;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 4;
}

body.login-screen:not(.compact-layout) #bodyfichajelogin {
    background: #fff;
    border: 1px solid #e0e9df;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(44, 89, 59, 0.14);
    margin: 32px auto;
    max-width: 390px;
    padding: 34px 36px 30px;
    width: min(72%, 390px);
}

body.login-screen:not(.compact-layout) .login-welcome {
    margin-bottom: 23px;
}

/* Ventana normal, estrecha o móvil: cabecera y tarjeta apiladas. */
body.login-screen.compact-layout #header {
    display: none;
}

body.login-screen.compact-layout #body {
    background: #f6f9f5;
    bottom: 0;
    overflow-y: auto;
    top: 0;
}

body.login-screen.compact-layout #bodyfichaje {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: visible;
    padding: 30px 0 42px;
    position: relative;
}

body.login-screen.compact-layout #bodyfichajelogin {
    background: #fff;
    border: 1px solid #e0e9df;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(44, 89, 59, 0.13);
    margin: 0 auto;
    max-width: 370px;
    padding: 29px 28px 26px;
    overflow: hidden;
    width: min(78%, 370px);
}

body.login-screen.compact-layout .login-card-header {
    align-items: center;
    background: linear-gradient(115deg, #5f9f3a 0%, #88c84c 52%, #aedb6c 100%);
    display: flex;
    height: 118px;
    justify-content: center;
    margin: -29px -28px 25px;
    overflow: hidden;
    position: relative;
}

body.login-screen.compact-layout .login-card-header::before,
body.login-screen.compact-layout .login-card-header::after {
    border-radius: 50%;
    content: '';
    position: absolute;
}

body.login-screen.compact-layout .login-card-header::before {
    background: rgba(25, 104, 54, 0.16);
    height: 150px;
    left: -55px;
    top: 38px;
    width: 150px;
}

body.login-screen.compact-layout .login-card-header::after {
    background: rgba(255, 255, 255, 0.14);
    height: 145px;
    right: -48px;
    top: -74px;
    width: 145px;
}

body.login-screen.compact-layout .login-card-header img {
    max-height: 67px;
    max-width: 64%;
    position: relative;
    width: 190px;
    z-index: 1;
}

body.login-screen.compact-layout .login-clock {
    margin-top: 20px;
}

body.app-mobile-layout.login-screen #bodyfichaje {
    padding-bottom: 28px;
    padding-top: 22px;
}

body.app-mobile-layout.login-screen #bodyfichajelogin {
    border-radius: 17px;
    padding: 25px 22px 22px;
    width: calc(100% - 44px);
}

body.app-mobile-layout.login-screen .login-card-header {
    height: 108px;
    margin: -25px -22px 22px;
}

@media (max-width: 380px) {
    body.login-screen.compact-layout #bodyfichajelogin {
        padding: 23px 19px 20px;
        width: calc(100% - 38px);
    }

    body.login-screen.compact-layout .login-card-header {
        height: 100px;
        margin: -23px -19px 20px;
    }

    body.login-screen .login-welcome {
        margin-bottom: 17px;
    }

    body.login-screen .login-clock {
        margin-top: 16px;
    }
}

/* Pantalla de bienvenida y permisos. */
#full-permisos {
    background: #f6f9f5;
    overflow-y: auto;
}

#full-permisos-head {
    align-items: center;
    background: linear-gradient(115deg, #5f9f3a 0%, #88c84c 52%, #aedb6c 100%);
    display: flex;
    height: clamp(135px, 22vw, 180px);
    justify-content: center;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#full-permisos-head::before,
#full-permisos-head::after {
    border-radius: 50%;
    content: '';
    position: absolute;
}

#full-permisos-head::before {
    background: rgba(25, 104, 54, 0.16);
    height: 180px;
    left: -70px;
    top: 35px;
    width: 180px;
}

#full-permisos-head::after {
    background: rgba(255, 255, 255, 0.14);
    height: 165px;
    right: -55px;
    top: -85px;
    width: 165px;
}

#full-permisos-head h2 {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    gap: 7px;
    margin: 0;
    position: relative;
    z-index: 1;
}

#full-permisos-head h2 img {
    height: auto !important;
    margin: 0 !important;
    vertical-align: middle !important;
    width: clamp(110px, 16vw, 160px) !important;
}

#full-permisos-middle {
    background: #fff;
    border: 1px solid #e0e9df;
    border-radius: 20px;
    bottom: auto;
    box-shadow: 0 18px 36px rgba(44, 89, 59, 0.13);
    box-sizing: border-box;
    color: #65746c;
    left: auto;
    margin: 28px auto;
    max-width: 620px;
    padding: 27px 29px 25px;
    position: relative;
    right: auto;
    top: auto;
    width: min(84%, 620px);
}

#full-permisos p {
    font-size: 0.91rem;
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: left;
}

#full-permisos-middle button {
    border-radius: 13px;
    box-shadow: 0 8px 16px rgba(109, 169, 59, 0.21);
    margin: 8px 0 0;
    min-height: 46px;
    min-width: 0;
    width: min(100%, 330px);
}

@media (min-width: 1000px) and (min-height: 700px) {
    #full-permisos {
        background: #fbfdfb;
        overflow: hidden;
    }

    #full-permisos::before {
        background:
            radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.11) 0 13%, transparent 13.2%),
            radial-gradient(circle at 90% 88%, rgba(222, 248, 139, 0.22) 0 10%, transparent 10.2%),
            linear-gradient(135deg, #178660 0%, #56af60 58%, #9bd34c 100%);
        bottom: 0;
        content: '';
        left: 0;
        position: absolute;
        top: 0;
        width: 50%;
    }

    #full-permisos-head {
        background: transparent;
        bottom: 0;
        height: auto;
        left: 0;
        position: absolute;
        top: 0;
        width: 50%;
        z-index: 1;
    }

    #full-permisos-head::before {
        border: 82px solid rgba(18, 113, 82, 0.28);
        height: min(46vw, 510px);
        left: min(-15vw, -155px);
        top: calc(50% - min(23vw, 255px));
        width: min(46vw, 510px);
    }

    #full-permisos-head::after {
        display: none;
    }

    #full-permisos-head h2 {
        font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    }

    #full-permisos-head h2 img {
        width: clamp(155px, 17vw, 230px) !important;
    }

    #full-permisos-middle {
        left: 75%;
        margin: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 32px 36px 29px;
        position: absolute;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(39%, 560px);
    }
}

/* Paleta y tipografía compartidas entre acceso y bienvenida. */
.login-welcome p,
#full-permisos p {
    color: var(--tiq-muted);
    font-family: 'Roboto';
    font-size: 0.92rem;
}

.login-fields label {
    color: var(--tiq-ink);
    font-size: 0.84rem;
}

.login-eyebrow,
#bodyfichaje h2 {
    color: var(--tiq-green);
}

.bodyrelojfecha {
    color: var(--tiq-muted);
}

.bodyrelojhora {
    color: var(--tiq-ink);
}

/* Acceso unificado: fondo de marca, logotipo superior y tarjeta central. */
body.login-screen.compact-layout #full-height {
    background:
        radial-gradient(circle at 7% 22%, rgba(255, 255, 255, 0.12) 0 10%, transparent 10.2%),
        radial-gradient(circle at 93% 87%, rgba(221, 248, 138, 0.24) 0 12%, transparent 12.2%),
        radial-gradient(circle at 21% 92%, rgba(18, 111, 80, 0.24) 0 18%, transparent 18.2%),
        linear-gradient(135deg, #178660 0%, #56af60 58%, #9bd34c 100%);
}

body.login-screen.compact-layout .login-branding,
body.login-screen.compact-layout .login-card-header {
    display: none !important;
}

body.login-screen.compact-layout #header {
    background: transparent;
    display: flex;
    height: clamp(100px, 15vh, 132px);
}

body.login-screen.compact-layout #header::before,
body.login-screen.compact-layout #header::after {
    display: none;
}

body.login-screen.compact-layout #header img {
    filter: drop-shadow(0 2px 1px rgba(21, 94, 49, 0.16));
    max-height: 62px;
    max-width: min(62vw, 235px);
}

body.login-screen.compact-layout #body {
    background: transparent;
    bottom: 0;
    left: 0;
    overflow: auto;
    right: 0;
    top: clamp(100px, 15vh, 132px);
}

body.login-screen.compact-layout #bodyfichaje {
    align-items: center;
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    height: auto;
    justify-content: center;
    left: 0;
    min-height: 0;
    overflow: auto;
    padding: 24px;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

body.login-screen.compact-layout #bodyfichajelogin {
    background: #fff;
    border: 1px solid rgba(222, 234, 220, 0.95);
    border-radius: 22px;
    box-shadow: 0 22px 46px rgba(17, 84, 56, 0.23);
    margin: auto;
    max-width: 390px;
    overflow: hidden;
    padding: 32px 34px 29px;
    width: min(82%, 390px);
}

body.login-screen .login-welcome {
    margin-bottom: 23px;
}

body.login-screen .login-clock {
    margin-top: 21px;
}

body.app-mobile-layout.login-screen #bodyfichaje {
    padding: 18px;
}

body.app-mobile-layout.login-screen #bodyfichajelogin {
    border-radius: 19px;
    padding: 27px 24px 24px;
    width: calc(100% - 36px);
}

/* Avisos de acceso: el mismo diálogo se usa para recuperar y validar el PIN. */
.overlay {
    background: rgba(27, 56, 43, .38);
    opacity: 1;
    backdrop-filter: blur(5px);
}

#alertbox,
#infobox,
#infoboxbig {
    box-sizing: border-box;
    width: min(calc(100vw - 40px), 390px);
    height: auto !important;
    min-height: 260px;
    padding: 34px 32px 30px;
    border: 1px solid rgba(77, 121, 84, .18);
    border-radius: 24px;
    box-shadow: 0 24px 52px rgba(28, 59, 42, .25);
    color: var(--tiq-ink);
    text-align: center;
}

#alertbox .popup_alert,
#infobox .popup_info,
#infoboxbig .popup_info {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #edf7e7;
    place-items: center;
}

#alertbox .popup_alert::before {
    color: var(--tiq-green);
    content: "!";
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

#infobox .popup_info::before,
#infoboxbig .popup_info::before {
    color: var(--tiq-green);
    content: "i";
    font-family: Georgia, serif;
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

#alertbox .popup_title,
#infobox .popup_title,
#infoboxbig .popup_title,
#alertbox .popup_message,
#infobox .popup_message,
#infoboxbig .popup_message {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
}

#alertbox .popup_title h2,
#infobox .popup_title h2,
#infoboxbig .popup_title h2 {
    margin: 0;
    color: var(--tiq-ink);
    font-size: 1.35rem;
    letter-spacing: 0;
}

#alertbox .popup_message,
#infobox .popup_message,
#infoboxbig .popup_message {
    margin-top: 10px;
    color: var(--tiq-muted);
    font-family: Roboto, Arial, sans-serif;
    font-size: .98rem;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

#alertbox .popup_close,
#infobox .popup_close,
#infoboxbig .popup_close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    background: none;
    color: #779084;
    cursor: pointer;
    float: none;
}

#alertbox .popup_close::before,
#alertbox .popup_close::after,
#infobox .popup_close::before,
#infobox .popup_close::after,
#infoboxbig .popup_close::before,
#infoboxbig .popup_close::after {
    position: absolute;
    top: 15px;
    left: 7px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

#alertbox .popup_close::before,
#infobox .popup_close::before,
#infoboxbig .popup_close::before { transform: rotate(45deg); }

#alertbox .popup_close::after,
#infobox .popup_close::after,
#infoboxbig .popup_close::after { transform: rotate(-45deg); }

#alertbox .popup_close:hover,
#infobox .popup_close:hover,
#infoboxbig .popup_close:hover {
    background: #edf7e7;
    color: #4e9b47;
}

@media (max-width: 380px) {
    #alertbox,
    #infobox,
    #infoboxbig {
        width: calc(100vw - 28px);
        min-height: 240px;
        padding: 30px 24px 26px;
        border-radius: 20px;
    }
}

/* Pantalla de fichaje: se conserva el formato de aplicación móvil también en escritorio. */
body:not(.login-screen) {
    background: #fff;
    min-height: 100vh;
}

body:not(.login-screen) #full-height {
    --active-header-height: clamp(94px, 13vh, 112px);
    --active-footer-height: clamp(82px, 12vh, 102px);
    position: relative;
    inset: auto;
    width: min(100vw, 500px);
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

body:not(.login-screen) #header {
    height: var(--active-header-height);
    min-height: 0;
    background:
        radial-gradient(
            circle 100px at 95% -10%,
            rgba(210, 239, 142, 0.35) 0 99%,
            transparent 100%
        ),
        linear-gradient(
            110deg,
            #3b9d58 0%,
            #65b94f 55%,
            #91cd4b 100%
        );
}

body:not(.login-screen) #body {
    top: var(--active-header-height);
    bottom: var(--active-footer-height);
}

body:not(.login-screen) #food {
    height: var(--active-footer-height);
    border-top: 1px solid #edf2e9;
    box-shadow: 0 -8px 24px rgba(37, 89, 54, .05);
}

body:not(.login-screen) #bodyfichajetrabajador {
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--tiq-ink);
}

body:not(.login-screen) #bodyfichajeempresa,
body:not(.login-screen) .bodyrelojfecha {
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .02em;
}

body:not(.login-screen) .bodyrelojhora {
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .025em;
    color: var(--tiq-ink);
}

body:not(.login-screen) #bodyfichajefichar .ui-button {
    min-height: 44px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(89, 159, 59, .14);
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
}

body:not(.login-screen) #bodyfichajefichar .ui-button:disabled,
body:not(.login-screen) #food .ui-button {
    box-shadow: none;
}

/* La información de jornada se equilibra con las acciones ancladas al pie. */
body:not(.login-screen) #bodyfichaje > h2,
body:not(.login-screen) #body_frame_left {
    transform: translateY(clamp(-76px, -9vh, -48px));
}

/* Información LOPD: contenido legible y ordenado dentro de una tarjeta. */
body:not(.login-screen) #body:has(#bodyinfo:not([style*="display: none"])) {
    overflow: hidden;
}

body:not(.login-screen) #bodyinfo {
    box-sizing: border-box;
    top: 18px;
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    padding: 25px 21px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid #dfeadf;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 32px rgba(40, 91, 57, .10);
    color: var(--tiq-muted);
    font-family: Roboto, Arial, sans-serif;
    font-size: .91rem;
    line-height: 1.45;
    text-align: left;
}

body:not(.login-screen) #bodyinfo h2 {
    margin: 0 0 20px;
    color: var(--tiq-green);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: center;
}

body:not(.login-screen) #bodyinfo p {
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:not(.login-screen) #bodyinfo p:last-child {
    padding-bottom: 0;
}

body:not(.login-screen) #bodyinfo b {
    display: block;
    margin-bottom: 3px;
    color: var(--tiq-green);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .96rem;
    font-weight: 700;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar {
    width: 8px;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar-track {
    margin: 0;
    background: transparent;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

/* Registro: filtros y tabla con la jerarquía visual de la consola renovada. */
body:not(.login-screen) #bodyregistro {
    top: 16px;
    right: 16px;
    bottom: 16px;
    left: 16px;
    overflow: hidden;
    border: 1px solid #dfeadf;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(40, 91, 57, .10);
}

body:not(.login-screen) #bodyregistro > center {
    display: block;
    padding: 22px 16px 11px;
}

body:not(.login-screen) #bodyregistro h2 {
    margin: 0;
    color: var(--tiq-green);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .01em;
}

body:not(.login-screen) #cabeceraregistro {
    position: relative;
    height: 92px;
}

body:not(.login-screen) #inforegistro_filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    position: relative;
    width: auto;
    height: auto;
    padding: 0 14px;
}

body:not(.login-screen) #inforegistro_filter button,
body:not(.login-screen) #inforegistro_type button {
    box-sizing: border-box;
    height: 32px;
    margin: 0;
    border-radius: 17px;
    font-family: Roboto, Arial, sans-serif;
    font-size: .69rem;
    font-weight: 700;
}

body:not(.login-screen) #inforegistro_filter button {
    width: auto;
}

body:not(.login-screen) #inforegistro_type {
    top: 47px;
    right: 14px;
    width: 45%;
    height: 32px;
}

body:not(.login-screen) #inforegistro_type button {
    width: 48%;
}

body:not(.login-screen) #inforegistro_info {
    top: 47px;
    left: 14px;
    width: 43%;
    height: 32px;
    margin: 0;
    color: var(--tiq-green);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .95rem;
    font-weight: 700;
}

body:not(.login-screen) #listregistro {
    top: 151px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    overflow-y: auto;
    scrollbar-color: #8bc552 transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar {
    width: 8px;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 99px;
    background: #8bc552;
}

body:not(.login-screen) #tablaregistro {
    position: relative;
    right: auto;
    padding: 0;
}

body:not(.login-screen) #tablaregistro table {
    border-collapse: separate;
    border-spacing: 0 5px;
    table-layout: fixed;
}

body:not(.login-screen) #tablaregistro table tr {
    color: #687567;
    font-family: Roboto, Arial, sans-serif;
    font-size: .88rem;
}

body:not(.login-screen) #tablaregistro table td {
    height: 38px;
    padding: 0 11px;
    border-top: 1px solid #e8efe5;
    border-bottom: 1px solid #e8efe5;
    background: #f8faf7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.login-screen) #tablaregistro table td:first-child {
    border-left: 1px solid #e8efe5;
    border-radius: 11px 0 0 11px;
}

body:not(.login-screen) #tablaregistro table td:last-child {
    border-right: 1px solid #e8efe5;
    border-radius: 0 11px 11px 0;
}

body:not(.login-screen) #tablaregistro table tr.tr_even td {
    background: #fff;
}

body:not(.login-screen) #tablaregistro table th {
    height: 38px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
}

body:not(.login-screen) #tablaregistro table tr:has(th) {
    background: linear-gradient(90deg, #21825c 0%, #8bc552 100%);
}

body:not(.login-screen) #tablaregistro table th:first-child {
    border-radius: 11px 0 0 11px;
}

body:not(.login-screen) #tablaregistro table th:last-child {
    border-radius: 0 11px 11px 0;
}

body:not(.login-screen) .registro-activo {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #52af54;
    box-shadow: 0 0 0 3px rgba(82, 175, 84, .16);
    vertical-align: middle;
}

/* Perfil: acordeones, formularios y acciones con una presentación más clara. */
body:not(.login-screen) #bodyperfil {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 22px 16px 28px;
    overflow-y: auto;
    color: var(--tiq-ink);
    font-family: Roboto, Arial, sans-serif;
}

body:not(.login-screen) #bodyperfil > h2 {
    margin: 0 0 20px;
    color: var(--tiq-green);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: .01em;
}

body:not(.login-screen) #bodyperfil_menu {
    position: relative;
    top: auto;
    bottom: auto;
    width: min(100%, 440px);
    margin: 0 auto;
    text-align: left;
}

body:not(.login-screen) #bodyperfil_menu .ui-accordion-header {
    box-sizing: border-box;
    min-height: 46px;
    margin: 0 0 8px;
    padding: 13px 38px 13px 16px;
    border: 1px solid #d7e3d3;
    border-radius: 15px;
    background: #fff;
    color: var(--tiq-ink);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}

body:not(.login-screen) #bodyperfil_menu .ui-accordion-header.ui-state-active {
    margin-bottom: 0;
    border-color: transparent;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(110deg, #78b849 0%, #8bc552 100%);
    color: #fff;
}

body:not(.login-screen) #bodyperfil_menu .ui-accordion-header-icon {
    right: 15px;
    left: auto;
    margin-top: -8px;
}

body:not(.login-screen) #bodyperfil_menu .ui-accordion-content {
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 18px 16px 19px;
    border: 1px solid #dfeadf;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(40, 91, 57, .08);
    color: var(--tiq-muted);
    font-size: .91rem;
    line-height: 1.4;
}

body:not(.login-screen) #cfg_recuerda_marco > p {
    margin: 0 0 13px;
    color: #7b8a80;
    font-size: .82rem;
}

body:not(.login-screen) #cfg_recuerda {
    margin: 0;
    padding: 0;
}

body:not(.login-screen) #cfg_recuerda label {
    display: inline-block;
    width: auto;
    padding: 5px 0;
    color: var(--tiq-ink);
    font-size: .94rem;
}

body:not(.login-screen) #bodyperfil_menu table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

body:not(.login-screen) #bodyperfil_menu td {
    vertical-align: middle;
}

body:not(.login-screen) #bodyperfil_menu td:first-child {
    width: 48%;
    padding-right: 10px;
    color: var(--tiq-ink);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
}

body:not(.login-screen) #bodyperfil_menu input[type="password"],
body:not(.login-screen) #bodyperfil_menu input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #ccd9c7;
    border-radius: 11px;
    background: #fbfdf9;
    color: var(--tiq-ink);
    font-family: Roboto, Arial, sans-serif;
    outline: none;
}

body:not(.login-screen) #bodyperfil_menu input[type="password"]:focus,
body:not(.login-screen) #bodyperfil_menu input[type="email"]:focus {
    border-color: #78b94a;
    box-shadow: 0 0 0 3px rgba(139, 197, 82, .18);
}

body:not(.login-screen) #btncambiopin,
body:not(.login-screen) #btnguardaremail,
body:not(.login-screen) #bodyperfil_menu .opt_button,
body:not(.login-screen) #Opt_AdministrarINF_div button {
    min-height: 38px;
    margin: 2px 0;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    box-shadow: 0 7px 15px rgba(89, 159, 59, .16);
    color: #fff;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
}

body:not(.login-screen) #bodyperfil_menu .opt_button {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 8px auto;
    padding: 0 16px;
}

/* App visual system: presentation only; clock-in and authentication are unchanged. */
:root {
    --app-surface: #fff;
    --app-background: #f4f8f1;
    --app-border: #e0e9df;
    --app-radius: 20px;
    --app-shadow: 0 12px 34px rgba(40, 91, 57, .08);
}
button, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible,
.ui-accordion-header:focus-visible {
    outline: 3px solid #21825c;
    outline-offset: 3px;
}
body:not(.login-screen) { background: var(--app-background); display: flow-root; margin: 0; }
body:not(.login-screen) #full-height {
    --active-header-height: 96px;
    --active-footer-height: calc(76px + env(safe-area-inset-bottom, 0px));
    background: var(--app-background);
}
body:not(.login-screen) #header { border: 0; }
body:not(.login-screen) #header img { max-height: 48px; width: 154px; }
body:not(.login-screen) #body { background: var(--app-background); overflow: hidden; }
body:not(.login-screen) #food {
    box-sizing: border-box;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--app-border);
    box-shadow: 0 -4px 20px rgba(40, 91, 57, .04);
}
#food table { table-layout: fixed; border-spacing: 3px 0; }
body:not(.login-screen) #food .ui-button {
    border: 0; border-radius: 14px; padding: 6px 0;
    color: var(--tiq-muted); font: 500 11px Roboto, Arial, sans-serif;
}
#food button div {
    position: static; transform: none; width: 27px; height: 27px;
    margin: 0 auto 5px; background-size: contain; background-repeat: no-repeat;
}
#food .nav-label { display: block; line-height: 15px; }
body:has(#bodyfichaje:not([style*="display: none"])) #food #btnfichaje,
body:has(#bodyregistro:not([style*="display: none"])) #food #btnregistro,
body:has(#bodyinfo:not([style*="display: none"])) #food #btninfo,
body:has(#bodyperfil:not([style*="display: none"])) #food #btnperfil {
    background: #edf5e7 !important; color: #21825c;
}
body:not(.login-screen) #bodyfichaje {
    box-sizing: border-box; inset: 0; width: 100%;
    padding: 28px 22px; overflow-y: auto; overflow-x: hidden;
    align-content: center;
}
body:not(.login-screen) #bodyfichaje > h2,
body:not(.login-screen) #body_frame_left { transform: none; }
body:not(.login-screen) #bodyfichaje > h2 {
    margin: 0 0 22px; font-size: 1.4rem; line-height: 1.25;
}
body:not(.login-screen) #body_frame_left {
    padding: 22px 16px; border: 1px solid var(--app-border);
    border-radius: var(--app-radius); background: #fff; box-shadow: var(--app-shadow);
}
body:not(.login-screen) #bodyfichajetrabajador { line-height: 1.4; }
body:not(.login-screen) #bodyfichajeempresa { margin: 6px 0 0; line-height: 1.4; }
body:not(.login-screen) #bodyreloj { margin: 20px 0 0; }
body:not(.login-screen) #bodyreloj .bodyrelojhora {
    padding-top: 5px; font-size: 2.45rem; line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
body:not(.login-screen) #bodyfichajeselectempresacombo {
    max-width: 100%; min-height: 42px; margin: 10px 0;
    border: 1px solid var(--app-border); border-radius: 10px; color: var(--tiq-ink);
}
body:not(.login-screen) #canvas { max-width: 100%; height: auto; }
body:not(.login-screen) #body_frame_right { margin-top: 24px; }
body:not(.login-screen) #bodyfichajefichar { position: static; font-size: 1rem; }
body:not(.login-screen) #bodyfichajefichar .ui-button {
    min-height: 48px; height: auto; border-radius: 13px; padding: 12px 10px;
    box-sizing: border-box; font-size: 1rem; line-height: 1.25;
    box-shadow: 0 5px 12px rgba(89,159,59,.12);
}
body:not(.login-screen) #btnficharentrada,
body:not(.login-screen) #btnficharsalida { width: 100%; margin: 0 0 10px; }
body:not(.login-screen) #bodyfichajefichar:has(#boton_inc:not([style*="display: none"])) #btnficharentrada {
    width: calc(100% - 64px);
}
body:not(.login-screen) #boton_inc { width: 54px; margin: 0 0 10px 5px; }
body:not(.login-screen) #botones_mdp {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
body:not(.login-screen) #botones_mdp input[type=button] {
    width: 100%; min-width: 0; margin: 0; padding: 12px 4px; font-size: .85rem;
    white-space: normal;
}
body:not(.login-screen) #bodyfichajefichar .ui-state-disabled,
body:not(.login-screen) #bodyfichajefichar .ui-button:disabled {
    background: #e8eee5; color: #71806c; box-shadow: none; opacity: 1;
}
body:not(.login-screen) #bodyinfo,
body:not(.login-screen) #bodyregistro,
body:not(.login-screen) #bodyperfil,
body:not(.login-screen) #bodyincidencias,
body:not(.login-screen) #bodyinformes {
    box-sizing: border-box; position: absolute; inset: 16px; width: auto;
    border: 1px solid var(--app-border); border-radius: var(--app-radius);
    background: #fff; box-shadow: var(--app-shadow); align-content: normal;
}
body:not(.login-screen) #bodyinfo,
body:not(.login-screen) #bodyperfil,
body:not(.login-screen) #bodyincidencias,
body:not(.login-screen) #bodyinformes { padding: 24px 20px; overflow-y: auto; overflow-x: hidden; }
body:not(.login-screen) #bodyinfo p { margin: 0 0 23px; padding: 0; line-height: 1.6; text-align: left; }
body:not(.login-screen) #bodyinfo p b { margin-bottom: 5px; }
#bodyinfo p b + br { display: none; }
body:not(.login-screen) #bodyinfo h2,
body:not(.login-screen) #bodyperfil > h2 { margin: 0 0 24px; font-size: 1.35rem; }
body:not(.login-screen) #bodyregistro { overflow: hidden; }
body:not(.login-screen) #bodyregistro > center { padding: 23px 12px 18px; }
body:not(.login-screen) #cabeceraregistro { height: auto; padding: 0 14px 14px; }
body:not(.login-screen) #inforegistro_filter {
    padding: 4px; gap: 3px; background: #f0f5eb; border-radius: 12px;
}
body:not(.login-screen) #inforegistro_filter button,
body:not(.login-screen) #inforegistro_type button { border-radius: 9px; min-height: 36px; border: 0; font-size: .72rem; }
body:not(.login-screen) #inforegistro_info {
    position: static; width: auto; height: auto; min-height: 20px;
    margin: 16px 0 12px; line-height: 1.5; color: var(--tiq-ink); font-size: .86rem;
}
body:not(.login-screen) #inforegistro_type {
    position: static; width: 100%; height: auto; display: flex; gap: 8px;
}
body:not(.login-screen) #inforegistro_type button { flex: 1; width: auto; }
body:not(.login-screen) #bodyregistro:not([style*="display: none"]) { display: flex; flex-direction: column; }
body:not(.login-screen) #listregistro {
    position: relative; inset: auto; flex: 1; min-height: 0;
    margin: 0 10px 12px; width: auto; padding: 0 2px;
}
body:not(.login-screen) #tablaregistro table { font-variant-numeric: tabular-nums; }
body:not(.login-screen) #tablaregistro table td { padding: 10px 6px; height: auto; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.4; }
body:not(.login-screen) .registro-fecha { display: block; }
body:not(.login-screen) .registro-dia { display: block; margin-top: 1px; color: #7c8f87; font-family: 'VAG Rounded Std', Arial, sans-serif; font-size: .72rem; font-weight: 600; }
body:not(.login-screen) #tablaregistro .registro-accion { width: 76px; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
body:not(.login-screen) #tablaregistro table th { padding: 0 6px; }
body:not(.login-screen) #tablaregistro table:has(th) th:first-child { width: 28%; }
/* Keep the totals visually balanced: the last column is centred in its own track. */
body:not(.login-screen) #tablaregistro table:has(th) th:not(:first-child),
body:not(.login-screen) #tablaregistro table:has(th) td:not(:first-child) { text-align: center; }
body:not(.login-screen) #tablaregistro table:has(th) th:last-child,
body:not(.login-screen) #tablaregistro table:has(th) td:last-child { padding-left: 10px; padding-right: 10px; }
body:not(.login-screen) #tablaregistro table tr:has(th) {
    background: linear-gradient(90deg, #2f9568 0%, #58aa60 52%, #8bc552 100%);
}
body:not(.login-screen) #tablaregistro table:not(:has(th)) td:first-child { width: 65%; }
body:not(.login-screen) #bodyperfil_menu { width: 100%; }
body:not(.login-screen) #bodyperfil_menu .ui-accordion-header { text-align: left; min-height: 50px; padding-top: 16px; padding-bottom: 16px; }
body:not(.login-screen) #bodyperfil_menu .ui-accordion-content { padding: 20px 16px; text-align: left; box-shadow: none; }
body:not(.login-screen) #cfg_recuerda label { padding: 10px 0; font-size: .86rem; vertical-align: middle; }
body:not(.login-screen) #bodyperfil_menu table tr,
body:not(.login-screen) #bodyperfil_menu table td { display: block; width: 100%; box-sizing: border-box; }
body:not(.login-screen) #bodyperfil_menu table td:first-child { width: 100%; padding: 0; margin-bottom: 6px; }
body:not(.login-screen) #bodyperfil_menu table tr { margin-bottom: 14px; }
body:not(.login-screen) #bodyperfil_menu table tr:has(td:empty):not(:has(input, button)) { display: none; }
body:not(.login-screen) #bodyperfil_menu input[type=password],
body:not(.login-screen) #bodyperfil_menu input[type=email] { height: 44px; }
body:not(.login-screen) #btncambiopin,
body:not(.login-screen) #btnguardaremail,
body:not(.login-screen) #bodyperfil_menu .opt_button,
body:not(.login-screen) #Opt_AdministrarINF_div button { width: 100%; min-height: 44px; border-radius: 12px; white-space: normal; }
#bodyperfil_menu .opt_button + br { display: none; }
#bodyinfo, #bodyperfil, #listregistro, #bodyfichaje, #bodyincidencias, #bodyinformes {
    overscroll-behavior: contain;
}
body:not(.login-screen) #bodyinfo::-webkit-scrollbar-button,
body:not(.login-screen) #bodyinfo::-webkit-scrollbar-button:single-button,
body:not(.login-screen) #bodyinfo::-webkit-scrollbar-button:vertical:decrement,
body:not(.login-screen) #bodyinfo::-webkit-scrollbar-button:vertical:increment {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar {
    width: 8px;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar-thumb {
    background: #8bc552;
    border-radius: 4px;
}

body:not(.login-screen) #bodyinfo::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
body.login-screen #bodyfichajelogin { border-radius: 24px; box-shadow: 0 18px 54px rgba(27,80,47,.14); }
#bodyfichajelogin .login-fields input { min-height: 48px; border-radius: 12px; }
#bodyfichajelogin #btn_login {
    border: 0; border-radius: 12px; min-height: 48px;
    background: #8bc552; color: #fff; font: 700 1rem 'VAG Rounded Std', Arial, sans-serif;
}
body:not(.login-screen) #inforegistro_filter button,
body:not(.login-screen) #inforegistro_type button {
    background: #f0f5eb; color: var(--tiq-ink);
    font-family: 'VAG Rounded Std', Arial, sans-serif;
}
body:not(.login-screen) #cabeceraregistro button.option_select {
    background: #8bc552; color: #fff; box-shadow: 0 3px 8px rgba(89,159,59,.12);
}
#full-permisos-middle { line-height: 1.65; }
#full-permisos-middle #btn_entendido { min-height: 46px; border-radius: 12px; }
#alertbox, #infobox, #infoboxbig, #frmincidencia, .ui-dialog {
    border: 1px solid var(--app-border); border-radius: 22px;
    box-shadow: 0 24px 70px rgba(27,80,47,.2);
    max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box;
}
.popup_message { line-height: 1.55; }
.ui-dialog .ui-dialog-titlebar { border: 0; background: #edf5e7; color: var(--tiq-ink); border-radius: 14px; padding: 14px; }
.ui-dialog .ui-dialog-content { padding: 18px 12px; }
#frmincidencia input:not([type=hidden]) { max-width: 100%; min-height: 42px; border: 1px solid var(--app-border); border-radius: 10px; }
@media (min-width: 501px) and (max-width: 699px) and (min-height: 650px) {
    body:not(.login-screen) #full-height {
        border-radius: 0 0 28px 28px;
        border: 1px solid var(--app-border);
        box-shadow: 0 20px 65px rgba(40,91,57,.12);
    }
}
@media (min-width: 700px) and (min-height: 650px) {
    body:not(.login-screen) #full-height {
        margin: 24px auto; height: calc(100dvh - 48px); max-height: 920px;
        border-radius: 28px; border: 1px solid var(--app-border);
        box-shadow: 0 20px 65px rgba(40,91,57,.12);
    }
}
@media (max-width: 380px) {
    body:not(.login-screen) #bodyfichaje { padding: 20px 14px; }
    body:not(.login-screen) #bodyinfo,
    body:not(.login-screen) #bodyperfil { inset: 10px; padding: 20px 14px; }
    body:not(.login-screen) #bodyregistro { inset: 10px; }
    body:not(.login-screen) #botones_mdp { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-height: 650px) {
    body:not(.login-screen) #full-height { --active-header-height: 72px; --active-footer-height: 68px; }
    body:not(.login-screen) #bodyfichaje { padding-top: 18px; padding-bottom: 18px; }
    body:not(.login-screen) #bodyfichaje > h2 { margin-bottom: 14px; }
    body:not(.login-screen) #body_frame_left { padding: 16px; }
    body:not(.login-screen) #body_frame_right { margin-top: 16px; }
}

/* =========================================================
   Información LOPD: scrollbar interior sin flechas
   La tarjeta (#bodyinfo) permanece fija y el scroll lo hace
   un contenedor interior separado.
   ========================================================= */

body:not(.login-screen) #bodyinfo {
    padding: 0 !important;
    overflow: hidden !important;
}

body:not(.login-screen) #bodyinfo .bodyinfo-scroll {
    position: absolute;
    top: 24px;
    right: 10px;
    bottom: 24px;
    left: 20px;
    box-sizing: border-box;
    padding-right: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar {
    width: 8px;
}

body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 0;
    border-radius: 4px;
}

body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-button,
body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-button:single-button,
body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-button:vertical:decrement,
body:not(.login-screen) #bodyinfo .bodyinfo-scroll::-webkit-scrollbar-button:vertical:increment {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* En pantallas muy estrechas conserva el mismo margen visual. */
@media (max-width: 380px) {
    body:not(.login-screen) #bodyinfo .bodyinfo-scroll {
        top: 20px;
        right: 8px;
        bottom: 20px;
        left: 14px;
        padding-right: 8px;
    }
}

/* =========================================================
   Registro: scrollbar limpio, sin flechas + cabecera fija
   ========================================================= */

body:not(.login-screen) #listregistro {
    scrollbar-width: auto;
    scrollbar-color: auto;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar {
    width: 6px;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 0;
    border-radius: 99px;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-button,
body:not(.login-screen) #listregistro::-webkit-scrollbar-button:single-button,
body:not(.login-screen) #listregistro::-webkit-scrollbar-button:vertical:decrement,
body:not(.login-screen) #listregistro::-webkit-scrollbar-button:vertical:increment,
body:not(.login-screen) #listregistro::-webkit-scrollbar-button:vertical:start:decrement,
body:not(.login-screen) #listregistro::-webkit-scrollbar-button:vertical:end:increment {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body:not(.login-screen) #tablaregistro table tr:has(th) {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(90deg, #21825c 0%, #8bc552 100%);
}

/* =========================================================
   Registro: ajuste final de cabecera y scrollbar
   - Más aire a la izquierda de "Fecha"
   - El recorrido visible del scrollbar empieza bajo la cabecera
   - La cabecera cubre visualmente el hueco del scrollbar
   ========================================================= */

/* Un poco más de margen interior en la primera columna. */
body:not(.login-screen) #tablaregistro table:has(th) th:first-child,
body:not(.login-screen) #tablaregistro table:has(th) td:first-child {
    padding-left: 14px !important;
}

/* La pista del scroll comienza después de la cabecera (38px). */
body:not(.login-screen) #listregistro::-webkit-scrollbar-track {
    margin-top: 38px;
    background: transparent;
}

/* Extiende visualmente el extremo verde de la cabecera sobre los 6px
   reservados para el scrollbar. */
body:not(.login-screen) #tablaregistro table:has(th) th:first-child,
body:not(.login-screen) #tablaregistro table:has(th) td:first-child {
    padding-left: 14px !important;
}

body:not(.login-screen) #listregistro::-webkit-scrollbar-track {
    margin-top: 38px;
    background: transparent;
}

/* Bienvenida: permitir llegar siempre al botón en móvil */
#full-permisos {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    /* Mejor que 100vh en navegadores móviles */
    height: 100dvh;
    min-height: 100dvh;

    /* Espacio para barras del navegador / safe area */
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

@media (max-width: 500px), (max-height: 665px) {

    #full-permisos {
        height: 100dvh;
        min-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    #full-permisos-middle {
        margin-top: 18px;
        margin-bottom: 32px;
    }

    #btn_entendido {
        margin-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   LOGIN MÓVIL
   Cualquier pantalla estrecha usa SIEMPRE el layout compacto,
   tanto en navegador como instalada como PWA.
   ========================================================= */

@media (max-width: 700px) {

    body.login-screen #full-height {
    background:
        /* círculo claro superior izquierdo */
        radial-gradient(
            circle 145px at 15% 16%,
            rgba(177, 220, 117, 0.32) 0 99%,
            transparent 100%
        ),

        /* círculo interior izquierdo */
        radial-gradient(
            circle 255px at 4% 58%,
            rgba(42, 143, 78, 0.30) 0 99%,
            transparent 100%
        ),

        /* círculo exterior izquierdo */
        radial-gradient(
            circle 340px at 4% 58%,
            rgba(32, 128, 73, 0.20) 0 99%,
            transparent 100%
        ),

        /* círculo lima inferior derecho */
        radial-gradient(
            circle 125px at 91% 89%,
            rgba(184, 230, 92, 0.55) 0 99%,
            transparent 100%
        ),

        /* base: misma familia que la app */
        linear-gradient(
            145deg,
            #3b9d58 0%,
            #65b94f 52%,
            #91cd4b 100%
        ) !important;
}

    /* Nunca mostrar la mitad izquierda del layout de escritorio */
    body.login-screen .login-branding {
        display: none !important;
    }

    /* Logo superior */
    body.login-screen #header {
        background: transparent !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 120px !important;
        inset: 0 0 auto 0 !important;
    }

    body.login-screen #header::before,
    body.login-screen #header::after {
        display: none !important;
    }

    body.login-screen #header img {
        max-height: 62px;
        max-width: min(62vw, 235px);
    }

    /* Zona bajo el logo */
    body.login-screen #body {
        background: transparent !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 120px !important;
        overflow-y: auto;
    }

    body.login-screen #bodyfichaje {
        position: absolute !important;
        inset: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        width: auto !important;
        height: auto !important;

        padding: 10px 18px 28px !important;
        overflow-y: auto;
    }

    /* Tarjeta del login */
    body.login-screen #bodyfichajelogin {
        background: #fff;
        border: 1px solid rgba(222, 234, 220, 0.95);
        border-radius: 22px;
        box-shadow: 0 22px 46px rgba(17, 84, 56, 0.23);

        box-sizing: border-box;
        margin: auto !important;

        max-width: 390px;
        width: calc(100% - 36px) !important;

        padding: 27px 24px 24px !important;
        overflow: hidden;
    }

    /* El header interno de la tarjeta no se usa en este diseño */
    body.login-screen .login-card-header {
        display: none !important;
    }
}

@media (max-width: 700px) {
    body.login-screen #bodyfichajelogin {
        transform: translateY(-6vh);
    }
}

/* =========================================================
   MODAL NOTIFICAR INCIDENCIA - estilo moderno TiQApp
   ========================================================= */

#frmincidencia {
    width: min(calc(100vw - 32px), 390px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 32px) !important;

    padding: 0 !important;
    overflow: hidden !important;

    border: 1px solid var(--app-border) !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(27, 80, 47, .22) !important;

    text-align: left !important;
}

#frmincidencia_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;

    margin: 0 !important;
    padding: 26px 24px 22px !important;
    box-sizing: border-box;
}

#frmincidencia_titulo {
    margin: 0 0 4px !important;
    padding: 0 !important;

    color: var(--tiq-ink) !important;
    font-family: 'VAG Rounded Std', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Tabla del formulario */
#frmincidencia_form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

#frmincidencia_form td {
    padding: 0;
    vertical-align: middle;
}

#frmincidencia_form td:first-child {
    width: 44%;
    padding-right: 10px;
    color: var(--tiq-muted);
    font-family: Roboto, Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.3;
    text-align: right;
}

#frmincidencia_form td:last-child {
    width: 56%;
}

/* Inputs */
#frmincidencia input:not([type="hidden"]) {
    width: calc(100% - 34px) !important;
    max-width: none !important;
    min-height: 44px !important;
    height: 44px !important;

    box-sizing: border-box;
    padding: 0 12px !important;

    border: 1px solid #d6e0d1 !important;
    border-radius: 12px !important;
    background: #f6f8f4 !important;

    color: #4c5f55 !important;
    font-family: 'VAG Rounded Std', Arial, sans-serif !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
}

#frmincidencia input:not([type="hidden"]):focus {
    border-color: #85c74e !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .16) !important;
    outline: none !important;
}

/* Icono editar junto al campo */
#frmincidencia .ico_calendar {
    float: right;
    width: 28px;
    height: 28px;
    margin: 8px 0 0 6px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;

    border-radius: 8px;
    cursor: pointer;
}

/* Botonera */
#frmincidencia_form {
    position: relative;
    padding-bottom: 78px !important;
}

#frmincidencia button {
    position: absolute !important;
    bottom: 22px !important;

    min-width: 0 !important;
    height: 42px !important;
    padding: 0 18px !important;

    border: 0 !important;
    border-radius: 21px !important;

    font-family: 'VAG Rounded Std', Arial, sans-serif !important;
    font-size: .92rem !important;
    font-weight: 700 !important;

    box-shadow: none !important;
    cursor: pointer;
}

#btn_inc_cancel {
    left: 24px !important;
    background: #eef3eb !important;
    color: var(--tiq-ink) !important;
}

#btn_inc_cancel:hover,
#btn_inc_cancel:focus {
    background: #e4ecdf !important;
}

#btn_inc_save {
    left: auto !important;
    right: 24px !important;

    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%) !important;
    color: #fff !important;
    box-shadow: 0 7px 15px rgba(89, 159, 59, .16) !important;
}

#btn_inc_save:hover,
#btn_inc_save:focus {
    filter: brightness(.98);
}

@media (max-width: 420px) {
    #frmincidencia {
        width: calc(100vw - 24px) !important;
        border-radius: 20px !important;
    }

    #frmincidencia_form {
        gap: 14px;
        padding: 22px 18px 76px !important;
    }

    #frmincidencia_form td:first-child {
        width: 42%;
        padding-right: 8px;
        font-size: .84rem;
    }

    #frmincidencia_form td:last-child {
        width: 58%;
    }

    #btn_inc_cancel {
        left: 18px !important;
    }

    #btn_inc_save {
        right: 18px !important;
    }
}

/* Selector de eventualidades: dialogo compacto y accesible en movil. */
.ui-dialog.eventualidades-dialog {
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e7d8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(27, 80, 47, .24);
}

.eventualidades-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(105deg, #21825c, #8bc552);
    color: #fff;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.eventualidades-dialog .ui-dialog-title {
    margin: 0;
}

.eventualidades-dialog .ui-dialog-titlebar-close {
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    margin: -17px 0 0;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.eventualidades-dialog .ui-dialog-titlebar-close:hover,
.eventualidades-dialog .ui-dialog-titlebar-close:focus {
    background: rgba(255, 255, 255, .28);
}

.eventualidades-dialog .ui-dialog-titlebar-close .ui-icon {
    filter: brightness(0) invert(1);
}

.eventualidades-dialog .ui-dialog-content {
    max-height: calc(100dvh - 150px);
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

#frm_inc_buttons_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#frm_inc_buttons_form .btnficharincidencia {
    width: calc(100% - 24px);
    justify-self: center;
    min-height: 50px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #8bc552;
    border-radius: 8px;
    background: #8bc552;
    color: #fff;
    box-shadow: none;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .98rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

#frm_inc_buttons_form .btnficharincidencia:hover,
#frm_inc_buttons_form .btnficharincidencia:focus {
    border-color: #6eae3e;
    background: #6eae3e;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(139, 197, 82, .14);
    outline: none;
}

.eventualidades-dialog .ui-dialog-buttonpane {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid #e2eee2;
    background: #f8fbf7;
}

.eventualidades-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
}

.eventualidades-dialog .ui-dialog-buttonpane button {
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #b8dcb8;
    border-radius: 8px;
    background: #fff;
    color: #28704d;
    box-shadow: none;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
}

.eventualidades-dialog .ui-dialog-buttonpane button:hover,
.eventualidades-dialog .ui-dialog-buttonpane button:focus {
    background: #edf7e9;
}

@media (max-width: 500px) {
    .ui-dialog.eventualidades-dialog {
        border-radius: 14px;
    }

    .eventualidades-dialog .ui-dialog-titlebar {
        min-height: 54px;
        padding: 0 14px;
    }

    .eventualidades-dialog .ui-dialog-content {
        max-height: calc(100dvh - 140px);
        padding: 14px;
    }

    #frm_inc_buttons_form .btnficharincidencia {
        min-height: 48px;
        font-size: .94rem;
    }
}

/* Aviso de mantenimiento compartido con el manager. */
#maintenance_notice.maintenance-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;
    box-sizing: border-box;
    display: flex;
    width: min(calc(100vw - 28px), 520px);
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    flex-direction: column;
    color: var(--tiq-ink);
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(27, 65, 46, .3);
    text-align: left;
    transform: translate(-50%, -50%);
}
#maintenance_notice[style*="display:none"],
#maintenance_notice[style*="display: none"] {
    display: none;
}
.maintenance-header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(105deg, #2f8c5a, #8bce48);
}
.maintenance-header h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    letter-spacing: 0;
}
.maintenance-content {
    padding: 20px 22px 17px;
    overflow-y: auto;
}
.maintenance-schedule {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 13px 14px;
    border: 1px solid #d8e8d9;
    border-radius: 10px;
    background: #f2f8f1;
}
.maintenance-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 56px;
    height: 56px;
    color: #fff;
    border-radius: 9px;
    background: #328d5a;
}
.maintenance-date strong {
    font-size: 24px;
    line-height: 1;
}
.maintenance-date span {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
}
.maintenance-time {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}
.maintenance-time strong {
    color: #183f30;
    font-size: 15px;
}
.maintenance-time span {
    color: var(--tiq-muted);
    font-size: 12px;
    line-height: 1.4;
}
.maintenance-content p {
    margin: 0 0 11px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}
.maintenance-content .maintenance-lead {
    color: #183f30;
    font-weight: 700;
}
.maintenance-content .maintenance-note {
    margin-bottom: 0;
    color: var(--tiq-muted);
}
.maintenance-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e3eee4;
    background: #f8fbf7;
}
#maintenance_notice .maintenance-actions button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 750;
    border-radius: 10px;
}
#maintenance_dismiss {
    color: #367d4a;
    border: 1px solid #bcd9bf;
    background: #fff;
}
#maintenance_accept {
    color: #fff;
    border: 1px solid #7cbf49;
    background: #81c64a;
    box-shadow: 0 7px 14px rgba(92, 165, 57, .18);
}
@media (max-width: 380px) {
    #maintenance_notice.maintenance-popup {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }
    .maintenance-header {
        min-height: 54px;
        padding: 0 16px;
    }
    .maintenance-content { padding: 15px 14px 14px; }
    .maintenance-schedule {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }
    .maintenance-date {
        width: 50px;
        height: 50px;
    }
    .maintenance-actions { padding: 10px; }
    #maintenance_notice .maintenance-actions button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Cambio obligatorio de PIN: una vista de acceso independiente del perfil normal. */
body.pin-change-required #food {
    display: none !important;
}

body.pin-change-required #body {
    bottom: 0;
}

body.pin-change-required #bodyperfil {
    inset: 16px;
    display: block;
    padding: 28px 20px;
}

body.pin-change-required #bodyperfil > h2 {
    margin-bottom: 8px;
    color: #27845d;
    font-size: 1.45rem;
    text-align: center;
}

body.pin-change-required #bodyperfil > h2::after {
    content: "Actualiza tu acceso";
}

body.pin-change-required #bodyperfil > h2 {
    font-size: 0;
}

body.pin-change-required #bodyperfil > h2::after {
    font-size: 1.45rem;
}

body.pin-change-required #bodyperfil_menu {
    width: min(100%, 390px);
}

body.pin-change-required #cfg_recuerda_label,
body.pin-change-required #cfg_recuerda_marco,
body.pin-change-required #bodyperfil_menu > h3:not(#pin-change-heading),
body.pin-change-required #bodyperfil_menu > h3:not(#pin-change-heading) + .ui-accordion-content {
    display: none !important;
}

body.pin-change-required #pin-change-heading {
    display: none !important;
}

body.pin-change-required #bodyperfil_menu #pin-change-panel {
    display: block !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

.pin-change-form {
    display: grid;
    gap: 20px;
}

.pin-change-intro {
    display: none;
}

body.pin-change-required .pin-change-intro {
    display: block;
    text-align: center;
}

body.pin-change-required .pin-change-intro strong {
    display: block;
    color: #72b347;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: 1.16rem;
}

body.pin-change-required .pin-change-intro p {
    margin: 7px 0 0;
    color: #557069;
    font-size: .93rem;
    line-height: 1.45;
}

.pin-fields,
.pin-recovery {
    display: grid;
    gap: 8px;
}

.pin-fields label,
.pin-recovery label {
    margin-top: 5px;
    color: #294f48;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
}

.pin-change-form input[type="password"],
.pin-change-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #ccd9c7;
    border-radius: 11px;
    background: #f8faf6;
    color: #244c45;
    font-family: Roboto, Arial, sans-serif;
    font-size: 1rem;
    outline: none;
}

.pin-change-form input:focus {
    border-color: #63ad58;
    box-shadow: 0 0 0 3px rgba(99, 173, 88, .16);
}

.pin-change-form #btncambiopin,
.pin-change-form #btnguardaremail {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: #8bc552;
    color: #fff;
    font-family: 'VAG Rounded Std', Arial, sans-serif;
    font-size: .98rem;
    font-weight: 700;
}

.pin-change-form #btncambiopin:hover,
.pin-change-form #btnguardaremail:hover {
    background: #78b849;
}

.pin-recovery {
    padding-top: 18px;
    border-top: 0;
}

@media (max-width: 380px) {
    body.pin-change-required #bodyperfil {
        inset: 10px;
        padding: 22px 14px;
    }

    .pin-change-form {
        gap: 16px;
    }
}

/* =========================================================
   MODAL INCIDENCIA - 2 filas x 3 columnas
   Etiqueta | Campo | Editar
   ========================================================= */

#frmincidencia_form table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
}

#frmincidencia_form tr {
    display: table-row !important;
}

#frmincidencia_form td {
    display: table-cell !important;
    vertical-align: middle !important;
    padding: 0 !important;
}

#frmincidencia_form td:first-child {
    width: 42% !important;
    padding-right: 12px !important;
    text-align: right !important;
    white-space: nowrap !important;
    color: var(--tiq-muted) !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: .9rem !important;
}

/* La segunda celda contiene realmente el input + el icono.
   La convertimos en una fila flex para que queden en la misma línea. */
#frmincidencia_form td:last-child {
    width: 58% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;

    /* neutraliza el &nbsp; del HTML para que no cree separación extra */
    font-size: 0 !important;
}

#frmincidencia input:not([type="hidden"]) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;

    font-size: .92rem !important;
}

#frmincidencia .ico_calendar {
    float: none !important;
    flex: 0 0 28px !important;

    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;

    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 22px 22px !important;
}

@media (max-width: 420px) {
    #frmincidencia_form td:first-child {
        width: 40% !important;
        padding-right: 8px !important;
        font-size: .82rem !important;
    }

    #frmincidencia_form td:last-child {
        width: 60% !important;
        gap: 6px !important;
    }

    #frmincidencia .ico_calendar {
        flex-basis: 26px !important;
        width: 26px !important;
        height: 26px !important;
        background-size: 20px 20px !important;
    }
}

/* =========================================================
   MODAL INCIDENCIA - campos con ancho suficiente
   para mostrar la fecha completa
   ========================================================= */

#frmincidencia_form td:first-child {
    width: 36% !important;
}

#frmincidencia_form td:last-child {
    width: 64% !important;
}

#frmincidencia input:not([type="hidden"]) {
    flex: 1 1 132px !important;
    min-width: 132px !important;
    width: 132px !important;
    max-width: 100% !important;
}

/* El campo de hora no necesita tanto, pero mantener el mismo ancho
   deja las dos filas visualmente alineadas. */
#frmincidencia_fecha,
#frmincidencia_hora {
    width: 132px !important;
    min-width: 132px !important;
}

@media (max-width: 420px) {
    #frmincidencia_form td:first-child {
        width: 36% !important;
    }

    #frmincidencia_form td:last-child {
        width: 64% !important;
    }

    #frmincidencia input:not([type="hidden"]),
    #frmincidencia_fecha,
    #frmincidencia_hora {
        flex-basis: 124px !important;
        width: 124px !important;
        min-width: 124px !important;
    }
}

/* =========================================================
   SELECTORES DE FECHA Y HORA - estilo moderno TiQApp
   jQuery UI Datepicker + Timepicker
   ========================================================= */

/* ---------- CONTENEDORES ---------- */

.ui-datepicker,
.ui-timepicker-div,
.ui-timepicker-table {
    font-family: Roboto, Arial, sans-serif !important;
}

.ui-datepicker {
    width: 292px !important;
    padding: 12px !important;

    border: 1px solid var(--app-border) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 20px 48px rgba(27, 80, 47, .20) !important;

    box-sizing: border-box !important;
    overflow: hidden;
}

/* El selector de hora de este plugin suele dibujarse como tabla independiente. */
.ui-timepicker-table {
    padding: 10px !important;

    border: 1px solid var(--app-border) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 20px 48px rgba(27, 80, 47, .20) !important;

    box-sizing: border-box !important;
    overflow: hidden;
}


/* ---------- DATEPICKER: CABECERA ---------- */

.ui-datepicker .ui-datepicker-header {
    position: relative !important;
    padding: 8px 38px !important;

    border: 0 !important;
    border-radius: 14px !important;
    background: #edf5e7 !important;

    color: var(--tiq-ink) !important;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0 !important;
    line-height: 30px !important;

    color: var(--tiq-ink) !important;
    font-family: 'VAG Rounded Std', Arial, sans-serif !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Botones anterior / siguiente */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 7px !important;

    width: 30px !important;
    height: 30px !important;

    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;

    cursor: pointer !important;
}

.ui-datepicker .ui-datepicker-prev {
    left: 7px !important;
}

.ui-datepicker .ui-datepicker-next {
    right: 7px !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: #dfeeda !important;
}

/* Ocultamos la imagen antigua del icono de jQuery UI y dibujamos flechas limpias */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none !important;
}

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 8px;
    height: 8px;

    border-top: 2px solid #6f877d;
    border-right: 2px solid #6f877d;

    content: "";
}

.ui-datepicker .ui-datepicker-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.ui-datepicker .ui-datepicker-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}


/* ---------- DATEPICKER: CALENDARIO ---------- */

.ui-datepicker table {
    width: 100% !important;
    margin: 8px 0 0 !important;
    border-collapse: separate !important;
    border-spacing: 3px !important;
}

.ui-datepicker th {
    padding: 5px 0 7px !important;

    color: var(--tiq-muted) !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.ui-datepicker td {
    padding: 0 !important;
    border: 0 !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;
    margin: auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;

    color: var(--tiq-ink) !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.ui-datepicker td a:hover {
    background: #edf5e7 !important;
    color: #3d7d42 !important;
}

/* Día seleccionado */
.ui-datepicker td .ui-state-active,
.ui-datepicker td.ui-datepicker-current-day a {
    background: #8bc552 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 12px rgba(89, 159, 59, .18) !important;
}

/* Hoy, si no coincide con el seleccionado */
.ui-datepicker td.ui-datepicker-today a:not(.ui-state-active) {
    border: 1px solid #8bc552 !important;
    color: #4f943d !important;
    font-weight: 700 !important;
}

/* Días fuera de mes / deshabilitados */
.ui-datepicker td.ui-datepicker-other-month span,
.ui-datepicker td.ui-state-disabled span {
    color: #bdc8c1 !important;
    opacity: .65 !important;
}


/* ---------- TIMEPICKER ---------- */

/* Cabeceras Hora / Minuto */
.ui-timepicker-table th,
.ui-timepicker-table .ui-timepicker-title {
    color: var(--tiq-ink) !important;
    font-family: 'VAG Rounded Std', Arial, sans-serif !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
}

.ui-timepicker-table .ui-timepicker-title {
    padding: 7px 10px !important;

    border: 0 !important;
    border-radius: 12px !important;
    background: #edf5e7 !important;
}

/* Separación entre bloques Hora y Minuto */
.ui-timepicker-table td {
    padding: 2px !important;
    border: 0 !important;
}

/* Botones numéricos */
.ui-timepicker-table td a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 34px !important;
    height: 32px !important;
    padding: 0 5px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 9px !important;
    background: #f6f8f4 !important;

    color: var(--tiq-ink) !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;

    cursor: pointer !important;
}

.ui-timepicker-table td a:hover {
    background: #edf5e7 !important;
    color: #3d7d42 !important;
}

/* Hora/minuto seleccionado */
.ui-timepicker-table td a.ui-state-active,
.ui-timepicker-table td.ui-state-active a {
    background: #8bc552 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 12px rgba(89, 159, 59, .18) !important;
}


/* ---------- AJUSTE PARA MÓVIL ---------- */

@media (max-width: 420px) {
    .ui-datepicker {
        width: min(calc(100vw - 28px), 292px) !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .ui-datepicker td a,
    .ui-datepicker td span {
        width: 30px !important;
        height: 30px !important;
    }

    .ui-timepicker-table {
        max-width: calc(100vw - 28px) !important;
        padding: 8px !important;
        border-radius: 18px !important;
    }

    .ui-timepicker-table td a {
        min-width: 31px !important;
        height: 30px !important;
        padding: 0 4px !important;
    }
}
