﻿thead th {
    height: 40px;
    position: sticky;
    top: 0;
    text-align: left;
    padding-left: 10px;
    background-color: rgb(139,197,82);
    color: white;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 46%;
}
tbody td {
    font-size: 0.8em;
    height: 30px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(241, 241, 241);
    padding-left: 10px;
    padding-right: 10px;
    font-family: 'Roboto';
    font-size: 0.8em !important;
    color: rgb(157,158,160);
}

tbody tr:nth-child(odd) {
    background: rgb(241,241,241);
}

table{
    width:100%;
    border-collapse:collapse;
}
.accion {
    cursor: pointer;
    background-image: url('../svg/editar.svg');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 46%;
}
.tr_even{background-color: rgb(241,241,241);}
::-webkit-scrollbar {width: 10px;}
::-webkit-scrollbar-track {background: rgb(241,241,241); border-radius: 10px;}
::-webkit-scrollbar-thumb {border-radius: 10px; background: rgb(139,197,82);}
::-webkit-scrollbar-thumb:hover {background: rgb(139,197,82);}
@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;
}

.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;
    font-size: 1.2em;
}

.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;
}
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        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);
    }
}
input {
    font-size: 16px;
    color: rgb(111, 112, 115);
    border-radius: 5px;
    height: 35px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(111,112,115);
    padding-left: 10px;
    font-family: 'VAG Rounded Std';
    font-weight: bold;
    font-style: normal;
    background-color: rgb(241,241,241);
}

.VAGRoundedStd {
    font-family: 'VAG Rounded Std';
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: darkgray;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    margin-left: 0px;
    min-height: 100%;
    font-family: VAG Rounded Std !important;
    font-weight: normal;
    font-style: normal;
    font-size: 1.0em;
    color: rgb(157,158,160);
    margin: auto;
    padding-left: 0px !important;
    display:flex;
    justify-content: center;

}

input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    border-radius: 3px !important;
    border-width: 2px;
    border-color: rgb(111, 112, 115) !important;
    height: auto !important;
    width: auto !important;
    margin-top: 6px;
    background-color: rgb(139,197,82);
}

input[type="radio"] {
    -webkit-appearance: radio !important;
    border-radius: 3px !important;
    border-width: 2px;
    border-color: rgb(111, 112, 115) !important;
    height: auto !important;
}

.ui-controlgroup > .ui-controlgroup-item {
    float: auto;
}

.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;
}
h2 {
    color: rgb(139,197,82);
    font-family: 'VAG Rounded Std';
    font-weight: bold;
    font-style: normal;
    text-align: center;
    /*margin: 25px;*/
}
h3 {
    color: rgb(139,197,82);
    font-family: 'VAG Rounded Std';
    font-weight: normal;
    font-style: normal;
    font-size: 90%;
}
.Logo {
    width: auto;
}

.popup form {
    margin: 6%;
}

.popup h3 {
    font-size: 100% !important;
    color: rgb(111, 112, 115) !important;
}
.grisclaro {
    color: rgb(157,158,160) !important;
    margin: 3px;
    position: absolute;
    margin-left: 10px;
}
.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_imagen {
    width: 97%;
    position: absolute;
    top: 30px;
    color: rgb(111, 112, 115);
    text-align: center;
    margin: 3%;
}

.popup_title {
    position: absolute;
    top: 120px;
    width: 100%;
}
.popup_message {
    position: absolute;
    top: 170px;
    color: rgb(111, 112, 115);
    text-align: center;
    margin: 3%;
}

.popup_close {
    background-image: url(../svg/cerrar_popup.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;
}

select {
    /* Reset Select */
    appearance: none;
    outline: 0;
    border: 0;
    box-shadow: none;
    /* Personalize */
    flex: 1;
    padding: 0 1em;
    color: rgb(111, 112, 115);
    background-color: rgb(241,241,241);
    background-image: none;
    cursor: pointer;
    font-family: Roboto;
}
    /* Remove IE arrow */
    select::-ms-expand {
        display: none;
    }
/* Custom Select wrapper */
.select {
  position: relative;
  display: flex;
  width: 44.6%;
  height: 2em;
  border-radius: 5px;
  overflow: hidden;
  margin-left: 3%;
  margin-top: 15px;
  /*margin-right: 3%;*/
  float: left;
  border-width: 1px;
  border-color: rgb(111, 112, 115);
  border-style: solid;
}

    /* Arrow */
.select::after {
  content: '\25BE';
  color: rgb(241,241,241);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4em;
  background-color: rgb(111, 112, 115);
  transition: .25s all ease;
  pointer-events: none;
}

    /* Transition */
    .select:hover::after {
        color: rgb(111, 112, 115);
    }

.input_select {
    font-size: 16px;
    color: rgb(111, 112, 115);
    border-radius: 5px;
    height: 35px;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(111,112,115);
    padding-left: 10px;
    font-family: 'VAG Rounded Std';
    font-weight: bold;
    font-style: normal;
    background-color: rgb(241,241,241);
}

.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;
    /*margin-left:-250px;
    margin-top:-332px;
    left:50%;
    top:50%;
    width: 413px !important;
    height: 735px !important;*/
}
.frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    background-color: white;
    color: rgb(111,112,115);

}
.framehead {
    margin-top: 15px;
    width: 80%;
    margin-left: 45px;
    color: rgb(111, 112, 115);
    font-family: 'VAG Rounded Std';
    font-size: 1.2em;
    height: 55px;
}
    .framehead .iconl {
        position: absolute;
        left: 0px;
        top: 0px;
        margin-top: 15px;
        margin-left: 2%;
        cursor: pointer;
    }
    .framehead .frameheadtitulo {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .framehead .frameheadsubtitulo{
        width: 80%;
        color: rgb(111, 112, 115);
        font-family: 'VAG Rounded Std';
        font-weight: bold;
        font-size: 0.8em;
    }

    .framehead .iconr {
        position: absolute;
        right: 0px;
        top: 0px;
        margin-top: 15px;
        margin-right: 3%;
    }
.framebody {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    top: 60px;
    overflow: auto;
}
    .framebody input {
        width: 97% ;
    }
    .framebody select {
        font-size: 16px;
        height: 45px;
        border-style: solid;
        border-width: 1px;
        padding-left: 10px;
        font-family: "VAG Rounded Std";
        font-weight: normal;
        font-style: normal;
        width: 99% !important;
        border-radius: 5px;
        /*margin-top: -5px;*/
    }


.framefood {
    position: absolute;
    height: 60px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    border-top-width: 1px;
    border-top-color: rgb(241, 241, 241);
    margin: 0;
    padding: 0;
    border-top-style: solid;
    padding-top: 10px;
    width: 100%;
}
.divbutton {
    float: left;
    width: 25%;
    height: 50px;
    text-align: center;
    color: rgb(139, 197, 82);
    cursor: pointer;
    font-size: 0.8em;
}
.textsearch {
    width: 92% !important;
    height: 40px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    background: url(lupa.svg) no-repeat;
    background-position-y: 45%;
    background-position-x: 97%;
    cursor: pointer;
    border: none;
    background-color: rgb(241,241,241);
    margin-left: 2%;
    font-size: 1.2em;
}
    /*A PARTIR DE AQUI LAS COSAS ESPECIFICAS, ARRIBA LAS GENERALES*/

/* Acceso: diseño mobile-first. Se limita a #login para no afectar a las pantallas internas. */
#login {
    display: flex;
    min-height: 100%;
    height: 100%;
    flex-direction: column;
    background: #f4f7f3;
}

#login-head {
    position: relative;
    min-height: 182px;
    padding: 32px 24px 74px;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    /* Degradado corporativo presente en la pantalla original de TiQApp. */
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

#login-head h2 {
    margin: 0;
    line-height: 1;
}

#login-head .Logo {
    width: 164px;
    max-width: 65%;
    height: auto;
}

#login-head .login-eyebrow {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .86);
    font-family: 'Roboto', sans-serif;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#login-body {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    max-width: 410px;
    margin: -43px auto 28px;
    padding: 28px 24px 30px;
    box-sizing: border-box;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .13);
}

#login-body h1 {
    margin: 0;
    color: #303a2d;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
}

#login-body .login-intro {
    margin: 8px 0 26px;
    color: #747d70;
    font-family: 'Roboto', sans-serif;
    font-size: .92rem;
    line-height: 1.45;
}

#login-body .login-field {
    position: relative;
    margin-bottom: 18px;
}

#login-body label {
    display: block;
    margin: 0 0 7px;
    color: #475142;
    font-family: 'Roboto', sans-serif;
    font-size: .87rem;
    font-weight: bold;
}

#login-body input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    color: #273024;
    background: #fbfcfa;
    border: 1px solid #bcc6b8;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#login-body input:focus {
    background: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .2);
}

#login-body .login-password-field input {
    padding-right: 52px;
}

#login-body #togglePassword {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 22px;
    height: 22px;
    padding: 1px;
    cursor: pointer;
}

#login-body #autenticar {
    display: flex;
    width: 100%;
    height: 52px;
    margin: 28px 0 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 7px 14px rgba(93, 153, 49, .22);
    color: #ffffff;
    cursor: pointer;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#login-body #autenticar:hover,
#login-body #autenticar:focus {
    background: linear-gradient(135deg, #6cab40 0%, #7fbd4b 100%);
    box-shadow: 0 9px 17px rgba(93, 153, 49, .3);
}

#login-body #autenticar:active {
    transform: translateY(1px);
}

#login-body #instalar-app {
    display: none;
    width: 100%;
    height: auto;
    margin: 16px 0 0;
    padding: 0;
    color: #6eaf3d;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: .92rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

#login-body #instalar-app:hover,
#login-body #instalar-app:focus {
    color: #57952d;
    background: transparent;
    text-decoration: underline;
}

/* La PWA instalada utiliza todo el viewport disponible. El navegador conserva
   el lienzo enmarcado para mantener la previsualización de escritorio. */
@media (display-mode: standalone), (display-mode: fullscreen) {
    html,
    body {
        width: 100%;
        min-width: 0;
        min-height: 100%;
        background-color: #f4f7f3;
    }

    .full-height {
        width: 100vw !important;
        height: 100dvh !important;
        min-width: 0;
        min-height: 100dvh;
    }
}

.registro-fecha,
.registro-hora {
    white-space: nowrap;
}

@media (max-width: 380px) {
    #registro #tabla-registro tbody td:first-child {
        height: auto;
        min-height: 44px;
        padding-top: 6px;
        padding-bottom: 6px;
        white-space: normal;
    }

    #registro-lista table tbody td:first-child .registro-fecha,
    #registro-lista table tbody td:first-child .registro-hora {
        display: block;
    }

    #registro-lista table tbody td:first-child .registro-separador {
        display: none;
    }
}

@media (min-width: 640px) {
    #login-head {
        min-height: 244px;
        padding-top: 48px;
    }

    #login-body {
        margin-top: -62px;
    }
}

/* Selección de empresa: lista táctil, preparada para pantallas móviles. */
#empresas {
    display: flex;
    height: 100%;
    flex-direction: column;
    background: #f4f7f3;
}

#empresas-head {
    position: relative;
    min-height: 192px;
    padding: 24px 24px 58px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

.empresas-toolbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
}

.empresas-toolbar .Logo {
    width: 144px;
    max-width: 60%;
    height: auto;
}

#img_menu_salir {
    position: absolute;
    top: 23px;
    right: 20px;
    display: inline-flex;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .48) !important;
    border-radius: 11px;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1;
    transition: background-color .18s ease, border-color .18s ease;
}

.empresas-title {
    margin-top: 17px;
    text-align: center;
}

.empresas-title p {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.empresas-title h1 {
    margin: 0;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    line-height: 1.2;
}

#empresas-body {
    position: relative;
    flex: 0 1 auto;
    height: min(416px, calc(100% - 284px));
    max-height: 416px;
    min-height: 0;
    margin: -34px 20px 14px;
    padding: 25px 18px 18px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#empresas-body::-webkit-scrollbar {
    width: 8px;
}

#empresas-body::-webkit-scrollbar-track,
#empresas-body::-webkit-scrollbar-corner {
    background: transparent;
}

#empresas-body::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

/* Centros de trabajo: cabecera degradada compartida con las fichas. */
#centros .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, #8bc552 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#centros .framehead .iconl {
    top: 24px;
    left: 22px;
    filter: none;
}

#centros .framehead .iconr {
    top: 20px;
    right: 22px;
    filter: none;
}

#centros .frameheadtitulo {
    padding: 47px 42px 0;
    color: #ffffff;
    font-size: 1.38rem;
    line-height: 1.2;
    text-align: center;
}

#centros .frameheadsubtitulo {
    margin-top: 4px;
    color: rgba(255, 255, 255, .88);
    text-align: center;
}

#centros .framebody {
    top: 164px;
}

#centro-busca {
    margin-top: -34px;
}

/* La lista de centros comparte exactamente la cabecera de las fichas. */
#centros .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#centros .framehead .iconl,
#centros .framehead .iconr {
    filter: none;
}

#centros .framehead .iconl {
    top: 24px;
    left: 22px;
}

#centros .framehead .iconr {
    top: 20px;
    right: 22px;
}

#centros .frameheadtitulo {
    padding: 47px 42px 0;
    color: #ffffff;
    font-size: 1.38rem;
    line-height: 1.2;
    text-align: center;
}

#centros .frameheadsubtitulo {
    margin-top: 4px;
    color: rgba(255, 255, 255, .88);
    text-align: center;
}

#centros .framebody {
    top: 164px;
}

#centro-busca {
    margin-top: -34px;
}

/* Cabecera de Centros alineada con la ficha de datos del centro. */
#centros .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, #8bc552 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#centros .framehead .iconl {
    top: 24px;
    left: 22px;
    filter: none;
}

#centros .framehead .iconr {
    top: 20px;
    right: 22px;
    filter: none;
}

#centros .frameheadtitulo {
    padding: 47px 42px 0;
    color: #ffffff;
    font-size: 1.38rem;
    line-height: 1.2;
    text-align: center;
}

#centros .frameheadsubtitulo {
    margin-top: 4px;
    color: rgba(255, 255, 255, .88);
    text-align: center;
}

#centros .framebody {
    top: 164px;
}

#centro-busca {
    margin-top: -34px;
}

.empresas-intro {
    margin: 0 0 19px;
    color: #747d70;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

#empresas-list {
    display: grid;
    gap: 11px;
}

.empresa-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 9px;
    align-items: center;
}

#empresas-body .boton_seleccion_empresa {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 12px 16px;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: #354033 !important;
    background: #ffffff !important;
    border: 1px solid #d8e1d4 !important;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(41, 68, 31, .05);
    font-family: 'Roboto', sans-serif !important;
    font-size: .96rem;
    font-weight: bold;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#empresas-body .boton_seleccion_empresa:hover,
#empresas-body .boton_seleccion_empresa:focus {
    border-color: #8bc552 !important;
    box-shadow: 0 5px 13px rgba(41, 68, 31, .12);
}

#empresas-body .boton_seleccion_empresa:active {
    transform: translateY(1px);
}

#empresas-body .empresa-edit {
    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: #eef6e8;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
}

#empresas-body .empresa-edit:hover,
#empresas-body .empresa-edit:focus {
    background: #e1f0d6;
}

#empresas-body .empresa-edit img {
    width: 21px;
    height: 21px;
}

#empresas-add {
    display: flex;
    min-height: 77px;
    padding: 11px 20px 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    color: #578e32;
    background: #ffffff;
    border-top: 1px solid #e7ece5;
    cursor: pointer;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: bold;
}

#empresas-add:hover,
#empresas-add:focus {
    background: #f8fbf6;
}

.empresas-add-icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    background: #eef6e8;
    border-radius: 50%;
}

.empresas-add-icon img {
    width: 18px;
    height: 18px;
}

/* Ficha de empresa: mismo lenguaje visual que el acceso y la selección. */
#frm_empresa {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#frm_empresa .framehead {
    position: relative;
    width: auto;
    height: 164px;
    min-height: 164px;
    margin: 0;
    padding: 26px 24px 56px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

#frm_empresa .framehead .iconl,
#frm_empresa .framehead .iconr {
    top: 24px;
    width: 30px;
    height: 30px;
    margin: 0;
}

#frm_empresa .framehead .iconl {
    left: 22px;
}

#frm_empresa .framehead .iconr {
    right: 22px;
}

#frm_empresa .frameheadtitulo {
    padding: 47px 42px 0;
    overflow: visible;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.empresa-form-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#frm_empresa .framebody {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin: -34px 20px 0;
    padding: 25px 19px 20px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#frm_empresa .framebody form {
    margin: 0;
}

.empresa-form-intro {
    margin: 0 0 21px;
    color: #747d70;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

.empresa-form-fields {
    display: grid;
    gap: 15px;
}

.empresa-form-field label,
.empresa-settings legend {
    display: block;
    margin: 0 0 7px;
    color: #354033;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    font-weight: bold;
}

#frm_empresa .empresa-form-field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    color: #354033;
    background: #fbfcfa;
    border: 1px solid #cfdccc;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#frm_empresa .empresa-form-field input:focus {
    background: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .20);
}

.empresa-settings {
    margin: 25px 0 0;
    padding: 18px 16px 6px;
    background: #f8fbf6;
    border: 1px solid #e0eadc;
    border-radius: 15px;
}

.empresa-settings legend {
    width: auto;
    padding: 0 5px;
}

#frm_empresa .empresa-settings .container {
    min-height: 26px;
    margin: 0 0 15px;
    padding: 3px 0 0 39px;
    color: #52604d !important;
    font-family: 'Roboto', sans-serif;
    font-size: .92rem;
    font-weight: normal;
    line-height: 1.35;
}

#frm_empresa .empresa-settings .checkmark {
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    background: #edf2ea;
    border: 1px solid #d9e3d5;
    border-radius: 8px;
}

#frm_empresa .empresa-settings .container:hover input ~ .checkmark {
    background: #e1f0d6;
}

#frm_empresa .empresa-settings .container .checkmark:after {
    left: 9px;
    top: 5px;
}

#frm_empresa .framefood {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    min-height: 78px;
    margin: 0;
    padding: 12px 20px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e7ece5;
}

#frm_empresa .empresa-action {
    display: inline-flex;
    float: none;
    width: auto;
    height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
}

#frm_empresa .empresa-action img.button {
    width: 22px;
    height: 22px;
}

#frm_empresa .empresa-action-delete {
    color: #778072;
    background: #f4f7f3;
    border: 1px solid #dce5d8;
}

#frm_empresa .empresa-action-save {
    flex: 1 1 auto;
    color: #ffffff;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    box-shadow: 0 5px 11px rgba(88, 151, 52, .22);
}

#frm_empresa .empresa-action-save img.button {
    filter: brightness(0) invert(1);
}
#registro-busca{
    margin-top:10px;
    margin-bottom:5px;
}
#registro-lista {
    /*overflow-y: scroll;
    height: 433px;*/
}
#centros .framefood div{
    float: none;
}
#centro-busca {
    margin-top: 10px;
    margin-bottom: 10px;
}

#trabajadores .framefood div {
    float: none;
}
#trabajadores-busca {
    margin-top: 10px;
    margin-bottom: 10px;
}
#permisos .framefood div {
    float: none;
}
#permisos-busca {
    margin-top: 10px;
    margin-bottom: 10px;
}
.boton_informe {
    width: 90%;
    width: 90%;
    background-color: white !important;
    border-width: 2px !important;
    border-color: rgb(111,112,115) !important;
    color: rgb(111,112,115) !important;
    min-height: 43px;
    margin-top: 10px;
    margin-left:5%;
    font-size: 1em;
    font-style: normal;
}

/*.boton_filtros {
    display: flex;
    width: 20%;
    position: relative;
    float: right;
    margin-left: 3%;
    margin-right: 3%;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 1em !important;
}*/

#botones-filtro {
    width: 100%;
    margin-top: 55px;
    position: relative;
    text-align: right;
    font-size: 0.8em;
}




form {
    margin-left: 5%;
    margin-right: 5%;
}


.field-icon {
    float: right;
    margin-left: -25px;
    margin-top: -25px;
    position: relative;
    z-index: 2;
}

.container {
    padding-top: 3px;
    margin: auto;
}

input:checked ~ .checkmark {
    background-color: rgb(139,197,82) !important;
}

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1.0em;
    margin-left: 5%;
    margin-top: 5%;
    color: rgb(157,158,160) !important;
}

    /* escondemos el default checkbox */
    .container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* creamos un custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px
}

/* Al pasar el mouse encima, lo ponemos gris */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* creamos el marcador (escondido al no seleccionar) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* mostramos el marcador al seleccionar */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* estilo del marcador */
.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.altura_lista {
    var clientHeight = ;

    height: calc( 100% - 60px - 182px) !important;
}
.orange td{
    color:orange !important;
}
.blue td{
    color:dodgerblue !important;
}
#btn_filtros {
    font-size: 0.8em;
    width: 98px;
    margin-top: 15px;
    margin-right: 3%;
}
.btn_left {
  float: left;
  margin: 3px 0 10px 5px;
  font-size: 1em;
}

.btn_right {
  float: right;
  margin: 3px 15px 10px 0;
  font-size: 1em;
}

.gris {
    color: rgb(157, 158, 160) !important;
    border-color: rgb(157, 158, 160) !important;
    background-color: rgb(241,241,241) !important;
}
.correct_select{
    border-style: none;
    margin-top: -5px;
}
#infobox{
    height:400px !important;
}

input[type=text]:disabled {
    color: rgb(157, 158, 160)!important
}
#frm_reg_mapa {
    /* height: 0px; */
    position: absolute;
    overflow: hidden;
    top: 265px;
    bottom: 0px;
    /* right: 5%; */
    /* left: 5%; */
    width: 87%;
}
#registro-lista table tbody td{
    cursor:pointer;
}
.TieneImagen {
    background: url(/svg/lupa.svg) no-repeat;
    background-position-y: 45%;
    background-position-x: 97%;
    cursor: pointer;
    background-color: rgb(241,241,241);
}
.framebody select option {
  font-family: 'Roboto';
}

/* Registro: cabecera, filtros y tabla adaptados al diseño móvil actual. */
#registro {
    background: #f4f7f3;
}

#registro .framehead {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 85px;
    margin: 0;
    padding: 20px 59px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e7ece5;
}

#registro .framehead .iconl {
    top: 25px;
    left: 18px;
    width: 27px;
    height: 27px;
    margin: 0;
}

#registro .framehead .frameheadtitulo {
    color: #354033;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.25;
}

#registro .framehead .frameheadsubtitulo {
    width: auto;
    margin-top: 2px;
    color: #74806f;
    font-family: 'Roboto', sans-serif;
    font-size: .82rem;
    font-weight: normal;
}

#registro .framehead .iconr {
    top: 20px;
    right: 17px;
    width: 36px;
    height: 36px;
    margin: 0;
}

#registro .framebody {
    top: 85px;
    bottom: 76px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#registro-busca {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 14px 16px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e7ece5;
}

#registro-busca .textsearch {
    grid-column: 1 / -1;
    width: 100% !important;
    height: 45px;
    margin: 0;
    padding-right: 43px;
    box-sizing: border-box;
    background-color: #f1f4f0;
    background-position-x: calc(100% - 15px);
    border: 1px solid transparent;
    border-radius: 13px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#registro-busca .textsearch:focus {
    background-color: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .2);
}

#registro-busca .select {
    float: none;
    width: auto;
    height: 45px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #ccd7c8;
    border-radius: 12px;
}

#registro-busca .select select {
    height: 100%;
    margin: 0 !important;
    padding: 0 39px 0 12px;
    color: #485344;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
    line-height: 43px;
    text-align: left;
    text-align-last: left;
}

#registro-busca .select::after {
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: #5f6a5a;
    background: transparent;
    font-size: .9rem;
}

#botones-filtro {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: auto;
    margin: 0;
    text-align: initial;
}

#botones-filtro button,
#botones-filtro .btn_left,
#botones-filtro .btn_right {
    float: none;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0 5px;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif !important;
    font-size: .72rem;
    font-weight: bold;
    white-space: nowrap;
}

#botones-filtro .gris {
    color: #65705f !important;
    background: #eff3ed !important;
    border-color: #eff3ed !important;
}

#registro #botones-filtro button:not(.gris) {
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 9px rgba(93, 153, 49, .18);
}

#registro-lista {
    flex: 1 1 auto;
    min-height: 0;
    margin: 13px 16px 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e9df;
    border-radius: 14px;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#registro-lista::-webkit-scrollbar {
    width: 8px;
}

#registro-lista::-webkit-scrollbar-track,
#registro-lista::-webkit-scrollbar-corner {
    background: transparent;
}

#registro-lista::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

#registro-lista::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

#registro #tabla-registro {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    table-layout: fixed;
}

#registro #tabla-registro thead {
    display: table;
    width: 100%;
    flex: 0 0 44px;
    table-layout: fixed;
}

#registro #tabla-registro thead {
    position: static;
    z-index: 4;
    background: linear-gradient(to right, #21825c 0%, rgb(139, 197, 82) 100%);
    box-shadow: 0 2px 5px rgba(41, 68, 31, .12);
}

#registro #tabla-registro tbody {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#registro #tabla-registro tbody::-webkit-scrollbar {
    width: 8px;
}

#registro #tabla-registro tbody::-webkit-scrollbar-track,
#registro #tabla-registro tbody::-webkit-scrollbar-corner {
    background: transparent;
}

#registro #tabla-registro tbody::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

#registro #tabla-registro tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

#registro #tabla-registro thead th {
    position: static;
    height: 44px;
    padding: 0 11px;
    background: transparent;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: bold;
}

#registro #tabla-registro thead th:first-child {
    width: 25%;
    border-radius: 13px 0 0 0;
}

#registro #tabla-registro thead th:last-child {
    width: 22%;
    border-radius: 0 13px 0 0;
}

#registro #tabla-registro tbody td {
    height: 44px;
    padding: 0 11px;
    overflow: hidden;
    color: #697467;
    background: #ffffff;
    border-bottom-color: #edf1eb;
    font-family: 'Roboto', sans-serif;
    font-size: .76rem !important;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#registro #tabla-registro tbody td:nth-child(2) {
    text-overflow: ellipsis;
}

#registro #tabla-registro tbody td:last-child {
    text-overflow: clip;
}

.registro-dia {
    display: block;
    color: #879184;
    font-size: .88em;
    text-transform: capitalize;
}

#registro #tabla-registro tbody tr:nth-child(odd) td {
    background: #f7f9f6;
}

#registro #tabla-registro tbody tr.orange td {
    color: #d77b29 !important;
}

#registro #tabla-registro tbody tr.blue td {
    color: #2d7cbe !important;
}

#registro .framefood {
    display: flex;
    height: 76px;
    padding: 7px 9px 8px;
    align-items: center;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e2e9df;
    box-shadow: 0 -7px 20px rgba(41, 68, 31, .05);
}

#registro .framefood .divbutton {
    float: none;
    height: auto;
    flex: 1 1 25%;
    color: #578e32;
    font-family: 'Roboto', sans-serif;
    font-size: .68rem;
    font-weight: bold;
    line-height: 1.15;
}

#registro .framefood .divbutton img {
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
}

/* Resumen de horas: estado compacto para dejar espacio al nombre. */
#registro-lista.tabla-resumen-horas #tabla-registro thead th:first-child {
    width: 23%;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:nth-child(2) {
    width: 45%;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:nth-child(3) {
    width: 22%;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:last-child,
#registro-lista.tabla-resumen-horas #tabla-registro tbody td.estado-activo {
    width: 10%;
    min-width: 30px;
    padding-right: 5px;
    padding-left: 5px;
    text-align: center;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:last-child {
    border-radius: 0 13px 0 0;
}

.indicador-activo {
    display: inline-block;
    width: 10px;
    height: 10px;
    vertical-align: middle;
    background: #78b849;
    border: 2px solid #e1f0d6;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(86, 143, 50, .18);
}

/* Configuración: paneles independientes, sin dejar visible el registro por debajo. */
#configuracion,
#frm_cambiopass,
#permisos,
#frm_permiso {
    background: #f4f7f3;
}

#configuracion .framehead,
#frm_cambiopass .framehead,
#permisos .framehead,
#frm_permiso .framehead {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 86px;
    margin: 0;
    padding: 20px 58px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e6ece4;
}

#configuracion .framehead .iconl,
#frm_cambiopass .framehead .iconl,
#permisos .framehead .iconl,
#frm_permiso .framehead .iconl {
    top: 24px;
    left: 18px;
    width: 27px;
    height: 27px;
    margin: 0;
}

#configuracion .framehead .iconr,
#frm_cambiopass .framehead .iconr,
#permisos .framehead .iconr,
#frm_permiso .framehead .iconr {
    top: 20px;
    right: 18px;
    width: 38px;
    height: 38px;
    margin: 0;
}

#configuracion .frameheadtitulo,
#frm_cambiopass .frameheadtitulo,
#permisos .frameheadtitulo,
#frm_permiso .frameheadtitulo {
    color: #354033;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.15;
    text-transform: none;
}

#configuracion .frameheadsubtitulo,
#frm_cambiopass .frameheadsubtitulo,
#permisos .frameheadsubtitulo,
#frm_permiso .frameheadsubtitulo {
    margin-top: 4px;
    color: #697467;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: normal;
}

#configuracion .framebody,
#frm_cambiopass .framebody,
#permisos .framebody,
#frm_permiso .framebody {
    top: 86px;
    bottom: 74px;
    padding: 18px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

#configuracion .framebody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    bottom: 0;
}

#configuracion .framefood {
    display: none;
}

#configuracion .framebody > p {
    display: none;
}

#configuracion .boton_informe {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #d6e3d1 !important;
    border-radius: 13px;
    color: #354033 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(52, 77, 42, .08);
    font-family: 'Roboto', sans-serif !important;
    font-size: .9rem;
    font-weight: bold;
    text-align: left;
}

#configuracion .boton_informe::after {
    content: '›';
    float: right;
    color: #8bc552;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1;
}

#configuracion .btn_descarga_backup,
#configuracion .btn_cambiopass,
#configuracion .btn_permisos {
    display: block;
    width: 100%;
}

#frm_cambiopass form,
#frm_permiso form {
    margin: 0;
}

#frm_cambiopass label,
#frm_permiso label {
    display: block;
    margin: 0 0 6px;
    color: #566052;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: bold;
}

#frm_cambiopass input,
#frm_permiso input,
#frm_permiso select {
    width: 100%;
    height: 46px;
    margin: 0 0 16px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #ccdaca;
    border-radius: 11px;
    color: #354033;
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
}

#frm_cambiopass input:focus,
#frm_permiso input:focus,
#frm_permiso select:focus {
    outline: none;
    border-color: #8bc552;
    box-shadow: 0 0 0 3px rgba(139, 197, 82, .18);
}

#frm_cambiopass .framefood,
#frm_permiso .framefood {
    height: 74px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: #ffffff;
}

#frm_cambiopass #pas-grabar,
#frm_permiso #per-grabar,
#frm_permiso #per-borrar {
    color: #6aa83e;
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
}

#permisos .framebody {
    padding: 14px 16px 12px;
}

#permisos-busca {
    margin: 0 0 12px;
}

#permisos-busca .textsearch {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 42px 0 14px;
    box-sizing: border-box;
    border: 0;
    border-radius: 22px;
    color: #354033;
    background: #edf2ed url('../svg/lupa.svg') no-repeat right 14px center;
    background-size: 18px;
    font-size: .88rem;
    font-weight: normal;
}

#permisos-lista {
    height: auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce7d9;
    border-radius: 14px;
    background: #ffffff;
}

#permisos-lista table {
    width: 100%;
    table-layout: fixed;
}

#permisos-lista th {
    height: 44px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(to right, #21825c 0%, #8bc552 100%);
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    text-align: left;
}

#permisos-lista td {
    height: 44px;
    padding: 0 12px;
    color: #697467;
    border-bottom: 1px solid #edf1eb;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    cursor: pointer;
}

#permisos-lista tr:nth-child(even) td {
    background: #f7f9f6;
}

#permisos .framefood {
    height: 74px;
    padding: 8px 0;
    box-sizing: border-box;
    background: #ffffff;
}

#permisos-add {
    float: none;
    margin: 0 auto;
    color: #6aa83e;
    font-family: 'Roboto', sans-serif;
    font-size: .72rem;
    font-weight: bold;
}

/* Popup de descarga: mismo lenguaje visual que el resto de la app. */
#infobox {
    width: min(86%, 340px) !important;
    height: 400px !important;
    padding: 24px 20px 20px !important;
    box-sizing: border-box;
    border: 1px solid #e1e9de !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(35, 54, 30, .2) !important;
}

#infobox .popup_info {
    top: 28px;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    background-size: contain;
}

#infobox .popup_title {
    top: 132px;
    color: #78b849;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
}

#infobox .popup_title h2 {
    margin: 0;
    color: #78b849;
    font-size: 1.25rem;
    text-align: center;
}

#infobox .popup_message {
    top: 178px;
    right: 20px;
    left: 20px;
    width: auto;
    margin: 0;
}

#infobox .popup_message br {
    line-height: 1.1;
}

#infobox .popup-confirm-text {
    display: block;
    min-height: 72px;
    padding: 0 8px;
    color: #697467;
    font-family: 'Roboto', sans-serif;
    font-size: .86rem;
    line-height: 1.45;
    text-align: center;
}

#infobox .popup-confirm-text strong {
    color: #566052;
    font-weight: bold;
}

#infobox .popup-confirm-actions {
    display: flex;
    width: 100%;
    margin-top: 12px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#infobox .popup-confirm-actions .option_normal {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0 10px;
}

/* Informes: filtros y acciones presentados como tarjetas limpias. */
#informes {
    background: #f4f7f3;
}

#informes .framehead {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 86px;
    margin: 0;
    padding: 20px 58px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e6ece4;
}

#informes .framehead .iconl {
    top: 24px;
    left: 18px;
    width: 27px;
    height: 27px;
    margin: 0;
}

#informes .framehead .iconr {
    top: 20px;
    right: 18px;
    width: 38px;
    height: 38px;
    margin: 0;
}

#informes .frameheadtitulo {
    color: #354033;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.15;
}

#informes .frameheadsubtitulo {
    margin-top: 4px;
    color: #697467;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: normal;
}

#informes .framebody {
    top: 86px;
    bottom: 0;
    padding: 18px 16px 22px;
    box-sizing: border-box;
    overflow-y: auto;
}

#informes .framefood {
    display: none;
}

#informes-busca {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 16px;
}

#informes-busca .select {
    width: 100%;
    height: 46px;
    margin: 0;
    border: 1px solid #ccdaca;
    border-radius: 12px;
    background: #ffffff;
}

#informes-busca select {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 34px 0 13px;
    box-sizing: border-box;
    color: #566052;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    font-weight: bold;
}

#informes-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid transparent;
}

#informes-botones::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #21825c 0%, #8bc552 100%);
}

#informes-botones::after {
    content: 'Descargar informe';
    position: absolute;
    top: -10px;
    left: 12px;
    padding: 0 8px;
    color: #6aa83e;
    background: #f4f7f3;
    font-family: 'Roboto', sans-serif;
    font-size: .68rem;
    font-weight: bold;
}

#informes-botones::after {
    content: none;
}

#informes-botones a {
    display: block;
    width: 100%;
    text-decoration: none !important;
}

#informes-botones .boton_informe {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d6e3d1 !important;
    border-radius: 13px;
    color: #354033 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(52, 77, 42, .08);
    font-family: 'Roboto', sans-serif !important;
    font-size: .86rem;
    font-weight: bold;
    text-align: left;
    text-decoration: none !important;
}

#informes-botones .boton_informe::after {
    content: '↓';
    float: right;
    color: #8bc552;
    font-size: 1.15rem;
    font-weight: normal;
}

#informes .framebody > p {
    display: none;
}

#informes .container {
    display: block;
    min-height: 26px;
    margin: 16px 0 0 !important;
    padding: 3px 0 0 35px !important;
    line-height: 22px;
    color: #697467;
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    font-weight: normal;
}

#informes-busca .select::after {
    top: 0;
    right: 11px;
    height: 44px;
    padding: 0;
    color: #6d7969;
    background: transparent;
    font-size: .7rem;
    line-height: 44px;
}

#informes-busca select.correct_select {
    margin-top: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 44px;
}

#informes .container .checkmark {
    top: 1px;
    left: 0;
}

/* Informes usa exactamente el mismo selector visual que Registro. */
#informes .framebody {
    padding: 14px 16px 12px;
}

#informes-busca .select {
    float: none;
    width: auto;
    height: 45px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ccd7c8;
    border-radius: 12px;
}

#informes-busca .select select {
    height: 100%;
    margin: 0 !important;
    padding: 0 39px 0 12px;
    color: #485344;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
    line-height: 43px;
    text-align: left;
    text-align-last: left;
}

#informes-busca .select::after {
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: #5f6a5a;
    background: transparent;
    font-size: .9rem;
    line-height: 1;
}

#informes-botones .boton_informe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.2;
}

#informes .container {
    display: flex;
    min-height: 30px;
    margin: 16px 0 0 !important;
    padding: 0 0 0 35px !important;
    align-items: center;
    line-height: 1.2;
}

#informes .container .checkmark {
    top: 50%;
    transform: translateY(-50%);
}

/* Registro: cabecera y filas comparten exactamente las mismas columnas. */
#registro #tabla-registro thead th:first-child,
#registro #tabla-registro tbody td:first-child {
    width: 21%;
    padding-left: 9px;
    padding-right: 7px;
}

#registro #tabla-registro thead th:nth-child(2),
#registro #tabla-registro tbody td:nth-child(2) {
    width: 62%;
    padding-left: 8px;
    padding-right: 8px;
    text-align: left;
}

#registro #tabla-registro thead th:last-child,
#registro #tabla-registro tbody td:last-child {
    width: 17%;
    padding-left: 7px;
    padding-right: 7px;
}

#registro #tabla-registro tbody td {
    text-align: left;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:first-child,
#registro-lista.tabla-resumen-horas #tabla-registro tbody td:first-child { width: 23%; }

#registro-lista.tabla-resumen-horas #tabla-registro thead th:nth-child(2),
#registro-lista.tabla-resumen-horas #tabla-registro tbody td:nth-child(2) { width: 45%; }

#registro-lista.tabla-resumen-horas #tabla-registro thead th:nth-child(3),
#registro-lista.tabla-resumen-horas #tabla-registro tbody td:nth-child(3) { width: 22%; }

#registro-lista.tabla-resumen-horas #tabla-registro thead th:last-child,
#registro-lista.tabla-resumen-horas #tabla-registro tbody td:last-child { width: 10%; }

/* Fichas: acciones ancladas abajo con separación visible respecto al panel. */
#frm_centro .framebody,
#frm_trabajador .framebody {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    margin-bottom: 14px;
}

#registro #tabla-registro thead th,
#registro #tabla-registro tbody td {
    box-sizing: border-box;
}

#registro #tabla-registro thead th:last-child,
#registro #tabla-registro tbody td:last-child {
    padding-left: 9px;
}

#registro-lista.tabla-resumen-horas #tabla-registro thead th:nth-child(3),
#registro-lista.tabla-resumen-horas #tabla-registro tbody td:nth-child(3) {
    padding-left: 9px;
    padding-right: 7px;
}

#frm_cambiopass .framefood .divbutton:not(#pas-grabar) {
    display: none;
}

#frm_cambiopass #pas-grabar {
    display: flex;
    float: none;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    box-shadow: 0 5px 11px rgba(88, 151, 52, .22);
    font-size: .86rem;
}

#frm_cambiopass #pas-grabar img.button {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* Cambio de contraseña: formulario agrupado en una tarjeta como las fichas. */
#frm_cambiopass .framebody {
    padding: 18px 16px 0;
    overflow: hidden;
}

#frm_cambiopass .framebody form {
    margin: 0;
    padding: 22px 16px 6px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e0eadc;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(41, 68, 31, .08);
}

#frm_cambiopass .framefood {
    height: 78px;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background: #f4f7f3;
    border-top: 0;
}

#frm_cambiopass #pas-grabar {
    width: 100%;
    height: 48px;
    margin: 0;
    border-radius: 13px;
}

#infobox .option_normal,
#infobox_message .option_normal {
    min-width: 112px;
    height: 42px;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 22px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: .82rem;
    font-weight: bold;
}

#infobox_message {
    color: #697467;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    line-height: 1.35;
    text-align: center;
}

/* Centros de trabajo: listado y ficha adaptados al diseño móvil. */
#centros {
    background: #f4f7f3;
}

#centros .framehead {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 85px;
    margin: 0;
    padding: 20px 59px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e7ece5;
}

#centros .framehead .iconl {
    top: 25px;
    left: 18px;
    width: 27px;
    height: 27px;
    margin: 0;
}

#centros .framehead .frameheadtitulo {
    color: #354033;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.25;
}

#centros .framehead .frameheadsubtitulo {
    width: auto;
    margin-top: 2px;
    color: #74806f;
    font-family: 'Roboto', sans-serif;
    font-size: .82rem;
    font-weight: normal;
}

#centros .framehead .iconr {
    top: 20px;
    right: 17px;
    width: 36px;
    height: 36px;
    margin: 0;
}

#centros .framebody {
    top: 85px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#centro-busca {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px 10px;
}

#centro-busca .textsearch {
    width: 100%;
    height: 44px;
    padding: 0 43px 0 14px;
    box-sizing: border-box;
    color: #485344;
    background-color: #f1f4f0;
    background-position-x: calc(100% - 15px);
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#centro-busca .textsearch:focus {
    background-color: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .20);
}

#centro-lista {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 16px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e2e9df;
    border-radius: 14px;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#centro-lista::-webkit-scrollbar {
    width: 8px;
}

#centro-lista::-webkit-scrollbar-track,
#centro-lista::-webkit-scrollbar-corner {
    background: transparent;
}

#centro-lista::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

#centro-lista table {
    table-layout: fixed;
}

#centro-lista thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 44px;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(to right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 13px 13px 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: bold;
}

#centro-lista tbody td {
    height: 47px;
    padding: 0 43px 0 14px;
    overflow: hidden;
    color: #52604d;
    background-color: #ffffff;
    background-position-x: calc(100% - 15px);
    border-bottom-color: #edf1eb;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem !important;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#centro-lista tbody tr:nth-child(odd) td {
    background-color: #f7f9f6;
}

#centros-add {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 54px;
    margin: 10px auto 8px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #578e32;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    font-weight: bold;
}

#centros-add:hover,
#centros-add:focus {
    background: #eef6e8;
}

.centros-add-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: #eef6e8;
    border-radius: 50%;
}

.centros-add-icon img {
    width: 18px;
    height: 18px;
}

#centros .centros-nav {
    display: flex;
    height: 76px;
    padding: 7px 9px 8px;
    align-items: center;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e2e9df;
    box-shadow: 0 -7px 20px rgba(41, 68, 31, .05);
}

#centros .centros-nav .divbutton {
    float: none;
    height: auto;
    flex: 1 1 25%;
    color: #578e32;
    font-family: 'Roboto', sans-serif;
    font-size: .68rem;
    font-weight: bold;
    line-height: 1.15;
}

#centros .centros-nav .divbutton img {
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
}

#centros .centros-nav-current {
    color: #397d31 !important;
}

#frm_centro {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#frm_centro .framehead {
    position: relative;
    width: auto;
    height: 164px;
    min-height: 164px;
    margin: 0;
    padding: 26px 24px 56px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

#frm_centro .framehead .iconl,
#frm_centro .framehead .iconr {
    top: 24px;
    width: 30px;
    height: 30px;
    margin: 0;
}

#frm_centro .framehead .iconl { left: 22px; }
#frm_centro .framehead .iconr { right: 22px; }

#frm_centro .frameheadtitulo {
    padding: 47px 42px 0;
    overflow: visible;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.centro-form-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#frm_centro .framebody {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin: -34px 20px 0;
    padding: 25px 19px 20px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

/* El desplazamiento de la ficha empieza dentro de la tarjeta, bajo la curva superior. */
#frm_trabajador .framebody {
    overflow: hidden;
}

#frm_trabajador .framebody form {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    box-sizing: border-box;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#frm_trabajador .framebody form::-webkit-scrollbar {
    width: 8px;
}

#frm_trabajador .framebody form::-webkit-scrollbar-track,
#frm_trabajador .framebody form::-webkit-scrollbar-corner {
    background: transparent;
}

#frm_trabajador .framebody form::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

#frm_trabajador .framebody {
    padding-bottom: 0;
}

#frm_centro .framebody form { margin: 0; }

.centro-form-intro {
    margin: 0 0 21px;
    color: #747d70;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

.centro-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #354033;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    font-weight: bold;
}

#frm_centro .centro-form-field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    color: #354033;
    background: #fbfcfa;
    border: 1px solid #cfdccc;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#frm_centro .centro-form-field input:focus {
    background: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .20);
}

#frm_centro .framefood {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    min-height: 78px;
    margin: 0;
    padding: 12px 20px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e7ece5;
}

#frm_centro .centro-action {
    display: inline-flex;
    float: none;
    width: auto;
    height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
}

#frm_centro .centro-action img.button {
    width: 22px;
    height: 22px;
}

#frm_centro .centro-action-delete {
    color: #778072;
    background: #f4f7f3;
    border: 1px solid #dce5d8;
}

#frm_centro .centro-action-save {
    flex: 1 1 auto;
    color: #ffffff;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    box-shadow: 0 5px 11px rgba(88, 151, 52, .22);
}

#frm_centro .centro-action-save img.button {
    filter: brightness(0) invert(1);
}

/* Ficha de trabajador. */
#frm_trabajador {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#frm_trabajador .framehead {
    position: relative;
    width: auto;
    height: 164px;
    min-height: 164px;
    margin: 0;
    padding: 26px 24px 56px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

#frm_trabajador .framehead .iconl,
#frm_trabajador .framehead .iconr {
    top: 24px;
    width: 30px;
    height: 30px;
    margin: 0;
}

#frm_trabajador .framehead .iconl { left: 22px; }
#frm_trabajador .framehead .iconr { right: 22px; }

#frm_trabajador .frameheadtitulo {
    padding: 47px 42px 0;
    overflow: visible;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.trabajador-form-eyebrow {
    display: block;
    margin-bottom: 7px;
    overflow: hidden;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .10em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

#frm_trabajador .framebody {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin: -34px 20px 0;
    padding: 25px 19px 20px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#frm_trabajador .framebody form { margin: 0; }

.trabajador-form-intro {
    margin: 0 0 21px;
    color: #747d70;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

.trabajador-form-fields {
    display: grid;
    gap: 15px;
}

.trabajador-form-field label,
.trabajador-settings legend {
    display: block;
    margin: 0 0 7px;
    color: #354033;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    font-weight: bold;
}

#frm_trabajador .trabajador-form-field input,
#frm_trabajador .trabajador-form-field select {
    width: 100% !important;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    color: #354033;
    background: #fbfcfa;
    border: 1px solid #cfdccc;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: .95rem;
    font-weight: normal;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#frm_trabajador .trabajador-form-field select {
    appearance: auto;
    cursor: pointer;
}

#frm_trabajador .trabajador-form-field input:focus,
#frm_trabajador .trabajador-form-field select:focus {
    background: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .20);
}

#frm_trabajador .trabajador-form-field input:disabled {
    color: #707a6d !important;
    background: #f1f4f0;
    border-color: #e0e8dd;
}

.trabajador-settings {
    margin: 25px 0 18px;
    padding: 18px 16px 6px;
    background: #f8fbf6;
    border: 1px solid #e0eadc;
    border-radius: 15px;
}

.trabajador-settings legend {
    width: auto;
    padding: 0 5px;
}

#frm_trabajador .trabajador-settings .container {
    min-height: 26px;
    margin: 0 0 15px;
    padding: 3px 0 0 39px;
    color: #52604d !important;
    font-family: 'Roboto', sans-serif;
    font-size: .92rem;
    font-weight: normal;
    line-height: 1.35;
}

#frm_trabajador .trabajador-settings .checkmark {
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    background: #edf2ea;
    border: 1px solid #d9e3d5;
    border-radius: 8px;
}

#frm_trabajador .trabajador-settings .container:hover input ~ .checkmark {
    background: #e1f0d6;
}

#frm_trabajador .trabajador-settings .container .checkmark:after {
    left: 9px;
    top: 5px;
}

#frm_trabajador .trabajador-reset {
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 0 14px;
    color: #578e32 !important;
    background: #eef6e8 !important;
    border: 1px solid #d7e7cd !important;
    border-radius: 12px;
    box-shadow: none !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: .88rem !important;
    font-weight: bold;
}

#frm_trabajador .framefood {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    min-height: 78px;
    margin: 0;
    padding: 12px 20px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e7ece5;
}

#frm_trabajador .trabajador-action {
    display: inline-flex;
    float: none;
    width: auto;
    height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
}

#frm_trabajador .trabajador-action img.button {
    width: 22px;
    height: 22px;
}

#frm_trabajador .trabajador-action-delete {
    color: #778072;
    background: #f4f7f3;
    border: 1px solid #dce5d8;
}

#frm_trabajador .trabajador-action-save {
    flex: 1 1 auto;
    color: #ffffff;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%);
    box-shadow: 0 5px 11px rgba(88, 151, 52, .22);
}

#frm_trabajador .trabajador-action-save img.button {
    filter: brightness(0) invert(1);
}

/* La ficha del centro termina al acabar el formulario; no estira el panel vacío. */
#frm_centro .framebody {
    flex: 0 1 auto;
    height: auto;
    max-height: calc(100% - 242px);
}

/* Override final: el pie debe permanecer abajo, con separación del panel. */
#frm_centro .framebody,
#frm_trabajador .framebody {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 14px !important;
    border-radius: 20px !important;
}

/* El popup informativo se adapta al contenido y no deja espacio sobrante. */
#infobox {
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 20px 22px !important;
}

#infobox .popup_info {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 11px;
    transform: none;
}

#infobox .popup_title {
    position: relative;
    top: auto;
    width: auto;
    margin: 0 0 14px;
}

#infobox .popup_message {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 0;
}

#infobox .popup-confirm-text {
    min-height: 0;
}

/* Listado de trabajadores. */
#trabajadores {
    background: #f4f7f3;
}

#trabajadores .framehead {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 85px;
    margin: 0;
    padding: 20px 59px 12px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e7ece5;
}

#trabajadores .framehead .iconl {
    top: 25px;
    left: 18px;
    width: 27px;
    height: 27px;
    margin: 0;
}

#trabajadores .framehead .frameheadtitulo {
    color: #354033;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.25;
}

#trabajadores .framehead .frameheadsubtitulo {
    width: auto;
    margin-top: 2px;
    color: #74806f;
    font-family: 'Roboto', sans-serif;
    font-size: .82rem;
    font-weight: normal;
}

#trabajadores .framehead .iconr {
    top: 20px;
    right: 17px;
    width: 36px;
    height: 36px;
    margin: 0;
}

#trabajadores .framebody {
    top: 85px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#trabajadores-busca {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px 10px;
}

#trabajadores-busca .textsearch {
    width: 100%;
    height: 44px;
    padding: 0 43px 0 14px;
    box-sizing: border-box;
    color: #485344;
    background-color: #f1f4f0;
    background-position-x: calc(100% - 15px);
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#trabajadores-busca .textsearch:focus {
    background-color: #ffffff;
    border-color: #78b94a;
    box-shadow: 0 0 0 4px rgba(139, 197, 82, .20);
}

#trabajadores-lista {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 16px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e2e9df;
    border-radius: 14px;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#trabajadores-lista::-webkit-scrollbar {
    width: 8px;
}

#trabajadores-lista::-webkit-scrollbar-track,
#trabajadores-lista::-webkit-scrollbar-corner {
    background: transparent;
}

#trabajadores-lista::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

#trabajadores-lista table {
    table-layout: fixed;
}

#trabajadores-lista thead {
    background: linear-gradient(to right, #21825c 0%, rgb(139, 197, 82) 100%);
}

#trabajadores-lista thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 44px;
    padding: 0 14px;
    color: #ffffff;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: bold;
}

#trabajadores-lista thead th:first-child {
    width: 28%;
    border-radius: 13px 0 0 0;
}

#trabajadores-lista thead th:last-child {
    border-radius: 0 13px 0 0;
}

#trabajadores-lista tbody td {
    height: 47px;
    padding: 0 14px;
    overflow: hidden;
    color: #52604d;
    background-color: #ffffff;
    border-bottom-color: #edf1eb;
    font-family: 'Roboto', sans-serif;
    font-size: .82rem !important;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#trabajadores-lista tbody td.accion {
    padding-right: 43px;
    background-position-x: calc(100% - 15px);
}

#trabajadores-lista tbody tr:nth-child(odd) td {
    background-color: #f7f9f6;
}

#trabajadores-add {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 54px;
    margin: 10px auto 8px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #578e32;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    font-weight: bold;
}

#trabajadores-add:hover,
#trabajadores-add:focus {
    background: #eef6e8;
}

.trabajadores-add-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: #eef6e8;
    border-radius: 50%;
}

.trabajadores-add-icon img {
    width: 18px;
    height: 18px;
}

/* Cabecera final de Centros: misma composición que Datos del centro. */
#centros .framehead { height:164px; min-height:164px; padding:26px 42px 56px; background:linear-gradient(to bottom right,#21825c 0%,rgb(139,197,82) 100%); border-bottom:0; border-radius:0 0 32px 32px; }
#centros .framehead .iconl { top:24px; left:22px; filter:none; }
#centros .framehead .iconr { top:20px; right:22px; filter:none; }
#centros .frameheadtitulo { padding:47px 42px 0; color:#fff; font-size:1.38rem; line-height:1.2; text-align:center; }
#centros .frameheadsubtitulo { margin-top:4px; color:rgba(255,255,255,.88); text-align:center; }
#centros .framebody { top:164px; }
#centro-busca { margin-top:-34px; }

/* Centros de trabajo: cabecera degradada compartida con las fichas. */
#centros .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, #8bc552 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#centros .framehead .iconl {
    top: 24px;
    left: 22px;
    filter: none;
}

#centros .framehead .iconr {
    top: 20px;
    right: 22px;
    filter: none;
}

#centros .frameheadtitulo {
    padding: 47px 42px 0;
    color: #ffffff;
    font-size: 1.38rem;
    line-height: 1.2;
    text-align: center;
}

#centros .frameheadsubtitulo {
    margin-top: 4px;
    color: rgba(255, 255, 255, .88);
    text-align: center;
}

#centros .framebody {
    top: 164px;
}

#centro-busca { margin-top: -34px; }
#centros .framebody { z-index: 3; }

/* Listado de centros: el encabezado usa la jerarquía visual de la ficha. */
#centros .framehead .frameheadtitulo {
    padding: 47px 42px 0;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

#centros .framehead .frameheadsubtitulo {
    margin-top: 7px;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

/* El buscador es la tarjeta que se superpone a la curva inferior. */
#centros .framebody {
    overflow: visible;
}

#centro-busca {
    position: relative;
    z-index: 4;
    margin: -34px 20px 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#centro-busca .textsearch {
    height: 42px;
    background-color: #f1f4f0;
    border-radius: 12px;
}

/* Cabeceras de las pantallas principales: mismo patrón que Datos del centro. */
#trabajadores .framehead,
#configuracion .framehead,
#informes .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#trabajadores .framehead .iconl,
#configuracion .framehead .iconl,
#informes .framehead .iconl {
    top: 24px;
    left: 22px;
    width: 30px;
    height: 30px;
}

#trabajadores .framehead .iconr,
#configuracion .framehead .iconr,
#informes .framehead .iconr,
#frm_centro .framehead .iconr {
    top: 20px;
    right: 22px;
    width: 36px;
    height: 36px;
}

/* Empresa como antetítulo y nombre de cada sección como título. */
#trabajadores .framehead .frameheadtitulo,
#informes .framehead .frameheadtitulo {
    padding: 47px 42px 0;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

#trabajadores .framehead .frameheadsubtitulo,
#informes .framehead .frameheadsubtitulo {
    margin-top: 7px;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

/* Configuración no lleva razón social: el único título ocupa la posición principal. */
#configuracion .framehead .frameheadtitulo {
    padding: 53px 42px 0;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

#trabajadores .framebody,
#configuracion .framebody,
#informes .framebody {
    top: 164px;
}

/* Búsqueda y filtros se convierten en tarjetas flotantes, como el panel de la ficha. */
#trabajadores .framebody,
#informes .framebody {
    z-index: 3;
    overflow: visible;
}

#trabajadores-busca,
#informes-busca {
    position: relative;
    z-index: 4;
    margin: -34px 20px 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#trabajadores-busca .textsearch {
    height: 42px;
}

#informes-busca {
    gap: 10px;
}

#informes .framebody {
    padding: 0 16px 22px;
}

#informes .informe-actions {
    margin-top: 0;
}

/* Registro: misma cabecera, conservando la altura útil mediante filtros flotantes. */
#registro .framehead {
    height: 164px;
    min-height: 164px;
    padding: 26px 42px 56px;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-bottom: 0;
    border-radius: 0 0 32px 32px;
}

#registro .framehead .iconl {
    top: 24px;
    left: 22px;
    width: 30px;
    height: 30px;
}

#registro .framehead .iconr {
    top: 20px;
    right: 22px;
    width: 36px;
    height: 36px;
}

#registro .framehead .frameheadtitulo {
    padding: 47px 42px 0;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

#registro .framehead .frameheadsubtitulo {
    margin-top: 7px;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

#registro .framebody {
    top: 164px;
    z-index: 3;
    overflow: visible;
}

#registro-busca {
    position: relative;
    z-index: 4;
    margin: -34px 20px 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#registro-lista {
    margin-top: 0;
}

/* Filtros de Registro plegables: cerrados liberan altura para la tabla. */
#registro-filtros-toggle {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: -17px;
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #578e32;
    background: #ffffff;
    border: 1px solid #d7e5d2;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(41, 68, 31, .14);
    cursor: pointer;
}

#registro-filtros-toggle img {
    width: 17px;
    height: 20px;
}

.registro-filtros-toggle-label,
.registro-filtros-toggle-chevron {
    display: none;
}

#registro-busca.filtros-colapsados {
    display: flex;
    min-height: 52px;
    height: 52px;
    padding: 0 14px;
    align-items: center;
}

#registro-busca.filtros-colapsados .textsearch,
#registro-busca.filtros-colapsados .select,
#registro-busca.filtros-colapsados #botones-filtro {
    display: none;
}

#registro-busca.filtros-colapsados #registro-filtros-toggle {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 42px;
    padding: 0 8px;
    justify-content: flex-start;
    gap: 9px;
    background: #f1f6ee;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    font-weight: bold;
}

#registro-busca.filtros-colapsados .registro-filtros-toggle-label {
    display: inline;
}

#registro-busca.filtros-colapsados .registro-filtros-toggle-chevron {
    display: block;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid #78b849;
    border-bottom: 2px solid #78b849;
    transform: rotate(45deg) translateY(-2px);
}

/* La barra de la ficha de trabajador queda cerca del borde, sin rozar los campos. */
#frm_trabajador .framebody {
    padding-right: 7px;
}

#frm_trabajador .framebody form {
    padding-right: 10px;
}

/* El alta de empresa se ancla siempre al pie de la pantalla. */
#empresas-add {
    margin-top: auto;
}

/* El control flotante se repliega desde arriba; la vista cerrada es neutra. */
#registro-filtros-toggle {
    top: -17px;
    bottom: auto;
    color: #ffffff;
    background: linear-gradient(135deg, #78b849 0%, #8bc552 100%) !important;
    border-color: #ffffff;
}

#registro-filtros-toggle img {
    display: none;
}

#registro-filtros-toggle::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(225deg);
}

#registro-busca.filtros-colapsados #registro-filtros-toggle {
    color: #578e32;
    background: transparent !important;
    border: 0 !important;
    top: auto;
}

#registro-busca.filtros-colapsados #registro-filtros-toggle::before {
    display: none;
}

#registro-busca.filtros-colapsados #registro-filtros-toggle img {
    display: block;
}

/* El título de Configuración puede partirse cuando el ancho lo exige. */
#configuracion .framehead .frameheadtitulo {
    width: 100%;
    padding: 45px 38px 0;
    box-sizing: border-box;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Los títulos ocupan todo el ancho útil antes de centrarse. */
#centros .framehead .frameheadtitulo,
#centros .framehead .frameheadsubtitulo,
#trabajadores .framehead .frameheadtitulo,
#trabajadores .framehead .frameheadsubtitulo,
#informes .framehead .frameheadtitulo,
#informes .framehead .frameheadsubtitulo {
    width: 100%;
    box-sizing: border-box;
}

/* Ficha de registro: mismo encabezado y tarjeta de campos que el resto de fichas. */
#frm_registro {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7f3;
}

#frm_registro .framehead {
    position: relative;
    width: auto;
    height: 164px;
    min-height: 164px;
    margin: 0;
    padding: 26px 24px 56px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom right, #21825c 0%, rgb(139, 197, 82) 100%);
    border-radius: 0 0 32px 32px;
}

#frm_registro .framehead .iconl {
    top: 24px;
    left: 22px;
    width: 30px;
    height: 30px;
    margin: 0;
}

#frm_registro .framehead .iconr {
    top: 20px;
    right: 22px;
    width: 36px;
    height: 36px;
    margin: 0;
}

#frm_registro .framehead .frameheadtitulo {
    width: 100%;
    padding: 47px 42px 0;
    box-sizing: border-box;
    overflow: visible;
    color: rgba(255, 255, 255, .84);
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: .12em;
    text-align: center;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: normal;
}

#frm_registro .framehead .frameheadsubtitulo {
    width: 100%;
    margin-top: 7px;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    font-size: 1.38rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

#frm_registro .framebody {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin: -34px 20px 20px;
    padding: 25px 19px 20px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7ece5;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(41, 68, 31, .11);
}

#frm_registro .framefood {
    display: none;
}

#frm_registro_form {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 0 12px;
    margin: 0;
}

#frm_registro_form > input[type=hidden],
#frm_registro_form > p {
    display: none;
}

#frm_registro_form > label,
#frm_registro_form > input,
#frm_registro_form > #frm_reg_mapa {
    grid-column: 1 / -1;
}

#frm_registro_form > div:not(#frm_reg_mapa) {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

#frm_registro_form label {
    display: block;
    margin: 16px 0 7px;
    color: #414c3e;
    font-family: 'Roboto', sans-serif;
    font-size: .76rem;
    font-weight: bold;
}

#frm_registro_form > label:first-of-type {
    margin-top: 0;
}

#frm_registro_form input[type=text] {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    box-sizing: border-box;
    color: #485344;
    background: #f1f4f0;
    border: 1px solid #d5e1d1;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    font-weight: normal;
}

#frm_registro_form > div:not(#frm_reg_mapa) input[type=text] {
    font-size: .84rem;
}

#frm_reg_mapa {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 180px;
    margin-top: 0;
    overflow: hidden;
    background: #f7f9f6;
    border: 1px solid #e1e9de;
    border-radius: 14px;
}

/* Cabeceras compactas: textos alineados entre volver y la Q para ganar altura útil. */
#centros .framehead,
#trabajadores .framehead,
#informes .framehead,
#configuracion .framehead,
#registro .framehead,
#frm_centro .framehead,
#frm_trabajador .framehead,
#frm_registro .framehead {
    height: 118px;
    min-height: 118px;
    padding: 18px 22px 36px;
}

#centros .framehead .iconl,
#trabajadores .framehead .iconl,
#informes .framehead .iconl,
#configuracion .framehead .iconl,
#registro .framehead .iconl,
#frm_centro .framehead .iconl,
#frm_trabajador .framehead .iconl,
#frm_registro .framehead .iconl {
    top: 24px;
    left: 22px;
}

#centros .framehead .iconr,
#trabajadores .framehead .iconr,
#informes .framehead .iconr,
#configuracion .framehead .iconr,
#registro .framehead .iconr,
#frm_centro .framehead .iconr,
#frm_trabajador .framehead .iconr,
#frm_registro .framehead .iconr {
    top: 20px;
    right: 22px;
}

#centros .framehead .frameheadtitulo,
#trabajadores .framehead .frameheadtitulo,
#informes .framehead .frameheadtitulo,
#registro .framehead .frameheadtitulo,
#frm_registro .framehead .frameheadtitulo {
    width: 100%;
    padding: 22px 66px 0;
    box-sizing: border-box;
}

#centros .framehead .frameheadsubtitulo,
#trabajadores .framehead .frameheadsubtitulo,
#informes .framehead .frameheadsubtitulo,
#registro .framehead .frameheadsubtitulo,
#frm_registro .framehead .frameheadsubtitulo {
    width: 100%;
    margin-top: 3px;
    box-sizing: border-box;
    font-size: 1.2rem;
}

#frm_centro .framehead .frameheadtitulo,
#frm_trabajador .framehead .frameheadtitulo {
    width: 100%;
    padding: 22px 66px 0;
    box-sizing: border-box;
    font-size: 1.2rem;
}

#frm_centro .centro-form-eyebrow,
#frm_trabajador .trabajador-form-eyebrow {
    margin-bottom: 4px;
}

#configuracion .framehead .frameheadtitulo {
    width: 100%;
    padding: 27px 66px 0;
    box-sizing: border-box;
    font-size: 1.1rem;
    line-height: 1.15;
}

#centros .framebody,
#trabajadores .framebody,
#informes .framebody,
#configuracion .framebody,
#registro .framebody {
    top: 118px;
}

/* Ficha de empresa: desplazamiento a la derecha y cierre separado del pie. */
#frm_empresa .framebody {
    margin-bottom: 14px;
    padding-right: 7px;
    border-radius: 20px;
    overflow: hidden;
}

#frm_empresa .framebody form {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    box-sizing: border-box;
    scrollbar-color: #8bc552 transparent;
    scrollbar-width: thin;
}

#frm_empresa .framebody form::-webkit-scrollbar {
    width: 8px;
}

#frm_empresa .framebody form::-webkit-scrollbar-track,
#frm_empresa .framebody form::-webkit-scrollbar-corner {
    background: transparent;
}

#frm_empresa .framebody form::-webkit-scrollbar-thumb {
    background: #8bc552;
    border: 2px solid #ffffff;
    border-radius: 99px;
}

/* Compatibilidad visual con las funciones incorporadas en v5. */
#login-body #btn_olvide_password {
    display: block;
    width: 100%;
    min-height: 24px;
    margin: 16px 0 0;
    padding: 0;
    color: #5f9f36 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

#login-body #btn_olvide_password:hover,
#login-body #btn_olvide_password:focus {
    color: #477f27 !important;
    background: transparent !important;
    text-decoration: underline;
}

#empresas-head .empresas-salir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#empresas-head .empresas-salir img {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
}

#empresas-head .empresas-salir:hover,
#empresas-head .empresas-salir:focus {
    background: rgba(255, 255, 255, .22) !important;
    border-color: rgba(255, 255, 255, .72) !important;
    outline: none;
}

#informes-busca > .container,
#informe-trabajadores-div {
    grid-column: 1 / -1;
}

#informe-trabajadores-div {
    width: 100%;
    padding: 13px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d7e2d3;
    border-radius: 12px;
}

#informe-trabajadores-buscar {
    width: 100% !important;
    height: 42px;
    margin: 0 0 10px !important;
    padding: 0 12px;
    box-sizing: border-box;
    color: #485344;
    background: #fbfcfa;
    border: 1px solid #ccd7c8;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: .86rem;
    outline: none;
}

#informe-trabajadores-div a {
    color: #5b9635;
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    font-weight: bold;
}

#informe-trabajadores {
    max-height: 180px;
    margin-top: 9px;
    overflow-y: auto;
    border-top: 1px solid #e7ece5;
}

#informe-trabajadores .fila_checkbox_trabajador {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 8px 2px !important;
    box-sizing: border-box;
    color: #485344;
    border-bottom: 1px solid #eef2ec;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
}

#informe-trabajadores .fila_checkbox_trabajador input {
    margin-right: 6px;
}

#frm_permiso #per-reset-password {
    display: inline-flex;
    width: auto;
    min-width: 0;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #578e32;
    background: #eef6e8;
    border: 1px solid #d7e7cd;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: .76rem;
    font-weight: bold;
}

#frm_permiso #per-reset-password img {
    width: 20px;
    height: 20px;
}

@media (max-width: 420px) {
    #frm_permiso #per-reset-password {
        flex: 1 1 100%;
        order: 3;
    }
}

/* Aviso de mantenimiento compartido con la aplicación y 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), 480px);
    max-height: calc(100dvh - 28px);
    flex-direction: column;
    overflow: hidden;
    color: #284d3d;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    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;
    min-height: 58px;
    padding: 0 22px;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(105deg, #2f8c5a, #8bce48);
}

.maintenance-header h2 {
    margin: 0;
    color: #ffffff;
    font-family: 'VAG Rounded Std', 'Roboto', sans-serif;
    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);
    margin-bottom: 18px;
    padding: 13px 14px;
    align-items: center;
    gap: 13px;
    border: 1px solid #d8e8d9;
    border-radius: 10px;
    background: #f2f8f1;
}

.maintenance-date {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    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: bold;
}

.maintenance-time {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.maintenance-time strong {
    color: #183f30;
    font-size: 15px;
}

.maintenance-time span {
    color: #577065;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.maintenance-content p {
    margin: 0 0 11px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.maintenance-content .maintenance-lead {
    color: #183f30;
    font-weight: bold;
}

.maintenance-content .maintenance-note {
    margin-bottom: 0;
    color: #577065;
}

.maintenance-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 16px;
    gap: 8px;
    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-family: 'Roboto', sans-serif !important;
    font-size: 13px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

#maintenance_dismiss {
    color: #367d4a !important;
    border: 1px solid #bcd9bf !important;
    background: #ffffff !important;
}

#maintenance_accept {
    color: #ffffff !important;
    border: 1px solid #7cbf49 !important;
    background: #81c64a !important;
    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);
        padding: 11px;
        gap: 10px;
    }

    .maintenance-date {
        width: 50px;
        height: 50px;
    }

    .maintenance-actions {
        padding: 10px;
    }

    #maintenance_notice .maintenance-actions button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }
}
