:root{
    --alto-header: 5rem;
    --ancho-sidebar:160px;
    --ancho-sidebar-contraido:5rem;
}

body{
    margin: 0;
    font-family: sans-serif;
    line-height: 1.5;
    color: #222;
    background-color: #fafafa;
    overflow: hidden;
    height: 100vh;
}

header{
    position: sticky;
    background-color: #edc912;
    color:#fff;
    height: var(--alto-header);
    padding: 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top:0;
    z-index: 1000;
}

.encabezado__logo{
    height: 100%;
    display: flex;
    align-items: center;
}

.encabezado__logo img{
    height: 100%;
    width: auto;
    display: block;
}

.encabezado__busqueda{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex:4;
    min-width:0;
}

.encabezado__usuario{
    display: flex;
    align-items: center;
    height: 100%;
}

.barra-busqueda{
    position: relative;
    width: min(70%, 42rem);
}

.barra-busqueda__contenedor{
    height: 2rem;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.barra-busqueda__input{
    flex:1;
    min-width: 0;
    padding-left: 0.5rem;
    outline: none;
    border: none;
}

.barra-busqueda__boton{
    flex: 0 0 2.5rem;
    height: 100%;
    background-color: rgb(240, 240, 240);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border:none;
    cursor:pointer;
}

.barra-busqueda__boton:hover{
    background-color: rgb(230, 230, 230);
}

.barra-busqueda__boton img{
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.barra-busqueda__resultados{
    position:absolute;
    top:100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 100;
    background-color: #5f5d5d;
    display:none
}

.menu-usuario__nombre{
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem;
    border-left: 1px solid #fff;
    height: 100%;
    color: inherit;
    background-color: inherit;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.menu-usuario__notificaciones{
    min-width: 11rem;
    justify-content: center;
    position: relative;
}

.menu-usuario__notificaciones-contenido{
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.menu-usuario__notificaciones-icono{
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.menu-usuario__notificaciones:hover .menu-usuario__notificaciones-icono{
    background-color: rgba(255,255,255,0.24);
    transform: translateY(-1px);
    cursor: pointer;
}

.menu-usuario__notificaciones-icono svg{
    width: 1.3rem;
    height: 1.3rem;
}

.menu-usuario__notificaciones-badge{
    position: absolute;
    top: -0.18rem;
    right: -0.18rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background-color: #d63b3b;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #edc912;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    box-sizing: border-box;
    line-height: 1;
    padding: 0;
}

.menu-usuario__notificaciones-texto{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.menu-usuario__notificaciones-label{
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.menu-usuario__notificaciones-valor{
    font-size: 0.98rem;
    font-weight: 700;
    margin-top: 0.16rem;
}

.menu-usuario__logout{
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: center;
    height: 100%;
    padding: 1rem 1.15rem;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    color: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.18s ease;
}

.menu-usuario__logout:hover{
    background-color:#edba12;
    cursor: pointer;
}

.menu-usuario__logout-icono{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.menu-usuario__logout-icono svg{
    width: 100%;
    height: 100%;
}

.menu-usuario__logout-texto{
    line-height: 1;
}

.layout{
    display: flex;
    height: calc(100vh - var(--alto-header));
}

.sidebar{
    width: var(--ancho-sidebar);
    position: sticky;
    top: var(--alto-header);
    background: #bdbcbc;
    transition: width 0.22s ease;
    overflow: hidden;
}

.menu-lateral{
    
}

.contenido-principal{
    flex:1;
    overflow-y: auto;
}

.menu-lateral ul{
    padding:0;
    margin: 0;
    list-style: none;
}

.menu-lateral ul li button{
    display: flex;
    color:inherit;
    width: 100%;
    background-color: inherit;
    border: none;
    border-bottom: 1px solid #fff;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    gap:0.3rem;
    transition: background-color 0.18s ease, gap 0.18s ease, padding 0.18s ease;
}

.menu-lateral ul li button img{
    width: 2.3rem;
    height: 2.3rem;
    width: auto;
    display: block;
}

.menu-lateral__boton-icono{
    width: 2.3rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-lateral__boton-icono svg{
    width: 1.9rem;
    height: 1.9rem;
}

.menu-lateral__boton-icono--toggle svg{
    width: 1.9rem;
    height: 1.9rem;
    transition: transform 0.22s ease;
}

.menu-lateral__boton-texto{
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.16s ease, max-width 0.22s ease, margin 0.18s ease;
    max-width: 8rem;
}

.menu-lateral ul li button:hover{
    background-color: #a9a8a8;
    cursor: pointer;
}

.menu-lateral__boton--activa{
    background-color: #d7d4d4 !important;
    font-weight: 700;
    box-shadow: inset 0.28rem 0 0 #c98a1d;
    
}

.layout--sidebar-contraido .sidebar{
    width: var(--ancho-sidebar-contraido);
}

.layout--sidebar-contraido .menu-lateral ul li button{
    gap: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.layout--sidebar-contraido .menu-lateral__boton-texto{
    opacity: 0;
    max-width: 0;
    margin: 0;
}

.layout--sidebar-contraido .menu-lateral__boton-icono--toggle svg{
    transform: rotate(180deg);
}


.panel-vista{
    box-sizing: border-box;
    padding: 1.3rem 1.5rem 0.95rem;
    /*border-bottom: 0.1rem dashed #7e7c7c;*/
    margin-bottom: 1rem;
}

.panel-vista h2{
    margin:0;
    display: inline-flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #1d2430;
    line-height: 1.1;
}

.panel-vista h2::after{
    content: "";
    width: 3.35rem;
    height: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #4672c4 0%, #7396d8 100%);
}

.boton{
    height:2rem;
    width: 11rem;
    border: none;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    padding: 0;
    box-sizing: border-box;
    padding-right: 1rem;
    border: 1px solid black;
}

.boton:hover{
	    cursor: pointer;
}

.boton:disabled{
	    cursor: not-allowed;
	    opacity: 0.75;
}

.boton--cargando{
	    box-shadow: none;
}

.boton img{
    width: 2.3rem;
    height: 2.3rem;
    width: auto;
    display: block;
}

.boton--primario{
    color:white;
    background-color: #4672c4;
}

.boton--primario:hover{
    background-color: #2b60c4;
}

.boton--secundario{
    color:black;
    background-color: rgb(162, 160, 160);
}

.boton--secundario:hover{
    background-color: #7e7c7c;
}

.boton--terciario{
    color:black;
    background-color: #edc912;
}

.boton--terciario:hover{
    background-color: #c8a90e;
}

.lista-entidades{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px,1fr));
    gap:2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/*
.tarjeta-entidad{
    font-size: 0.8rem;
    background-color: #f0f0f0;
    display: flex;
    list-style: none;
    border: 0.6px solid rgb(160, 158, 158);
    border-radius:12px;
    align-items: center;
    justify-content: space-between;
    padding-right:1rem ;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.tarjeta-entidad img{
    padding: 1rem;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.tarjeta-entidad:hover{
    cursor: pointer;
    background-color: #dadada;
    outline: 1px solid black;
}

.tarjeta-entidad p{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex:1;
    min-width: 0;
}
*/
/*Indicadores de estado*/

.indicador-estado-documento{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.indicador-estado-documento svg{
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.estado--correcto{
    color: #00f048;
}

.estado--advertencia{
    color: #f6e606;
}

.estado--emergencia{
    color: #d62e2e;
}

.estado--caducado{
    color: #ea1c1c;
}

.estado--sin_subir{
    color: #ea1c1c;
}

.indicador-estado-documento.estado--caducado svg,
.indicador-estado-documento.estado--sin_subir svg{
    filter: drop-shadow(0 0 6px rgba(214, 82, 82, 0.18));
}

.oculto{
    display: none !important;
}

.contenedor-carga-activa{
    position: relative;
}

.capa-carga-contenedor{
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(16, 22, 28, 0.74);
    backdrop-filter: blur(3px);
}

.capa-carga-contenedor__contenido{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: #fff4c9;
}

.capa-carga-contenedor__mensaje{
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.carga-excavadora{
    position: relative;
    width: 15rem;
    height: 7rem;
}

.carga-excavadora__vehiculo{
    position: absolute;
    left: 1rem;
    bottom: 1.4rem;
    width: 10rem;
    height: 4.8rem;
    animation: carga-excavadora-balanceo 1.8s ease-in-out infinite;
}

.carga-excavadora__cuerpo{
    position: absolute;
    left: 2rem;
    bottom: 1.3rem;
    width: 3.4rem;
    height: 1.6rem;
    border-radius: 0.5rem;
    background: #f6c61a;
    border: 2px solid #1f2328;
}

.carga-excavadora__cabina{
    position: absolute;
    left: 4.3rem;
    bottom: 2.15rem;
    width: 1.9rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #f8d85a, #f0b800);
    border: 2px solid #1f2328;
    border-radius: 0.35rem 0.55rem 0.25rem 0.25rem;
}

.carga-excavadora__oruga{
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: 5.8rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #30343a;
    border: 2px solid #11161a;
}

.carga-excavadora__oruga::before,
.carga-excavadora__oruga::after{
    content: "";
    position: absolute;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #81878f;
    transform: translateY(-50%);
}

.carga-excavadora__oruga::before{
    left: 0.8rem;
}

.carga-excavadora__oruga::after{
    right: 0.8rem;
}

.carga-excavadora__brazo-base,
.carga-excavadora__brazo-medio{
    position: absolute;
    height: 0.55rem;
    border-radius: 999px;
    background: #f6c61a;
    border: 2px solid #1f2328;
}

.carga-excavadora__brazo-base{
    left: 5.6rem;
    bottom: 2.45rem;
    width: 3.2rem;
    transform-origin: 0.5rem 50%;
    animation: carga-excavadora-brazo-base 1.8s ease-in-out infinite;
}

.carga-excavadora__brazo-medio{
    left: 8.35rem;
    bottom: 1.7rem;
    width: 2.7rem;
    transform-origin: 0.45rem 50%;
    animation: carga-excavadora-brazo-medio 1.8s ease-in-out infinite;
}

.carga-excavadora__pala{
    position: absolute;
    left: 10.8rem;
    bottom: 0.95rem;
    width: 1.2rem;
    height: 1.25rem;
    background: #f6c61a;
    border: 2px solid #1f2328;
    border-radius: 0.25rem 0.25rem 0.55rem 0.55rem;
    clip-path: polygon(0 0, 100% 15%, 80% 100%, 20% 100%);
    transform-origin: 0.35rem 0.25rem;
    animation: carga-excavadora-pala 1.8s ease-in-out infinite;
}

.carga-excavadora__suelo{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c5a2c, #936c38 50%, #7c5a2c);
}

.carga-excavadora__monticulo{
    position: absolute;
    right: 0.9rem;
    bottom: 0.95rem;
    width: 2.3rem;
    height: 0.8rem;
    border-radius: 55% 45% 35% 35%;
    background: #c3924d;
    animation: carga-excavadora-monticulo 1.8s ease-in-out infinite;
}

@keyframes carga-excavadora-balanceo{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(2px);
    }
}

@keyframes carga-excavadora-brazo-base{
    0%, 100%{
        transform: rotate(-22deg);
    }
    50%{
        transform: rotate(6deg);
    }
}

@keyframes carga-excavadora-brazo-medio{
    0%, 100%{
        transform: rotate(32deg);
    }
    50%{
        transform: rotate(-10deg);
    }
}

@keyframes carga-excavadora-pala{
    0%, 100%{
        transform: rotate(14deg);
    }
    50%{
        transform: rotate(-28deg) translateY(0.15rem);
    }
}

@keyframes carga-excavadora-monticulo{
    0%, 100%{
        transform: scaleX(0.9);
        opacity: 0.75;
    }
    50%{
        transform: scaleX(1.08) translateX(-0.2rem);
        opacity: 1;
    }
}

/*Vista registro*/
.vista-registro h2{
    padding: 2rem;
    margin: 0;
    padding-bottom:1rem ;
}

.vista-registro__acciones{
    display: flex;
    align-items: center;
    border-bottom: 0.1rem dashed #7e7c7c;
    border-top: 0.1rem dashed #7e7c7c;
    padding: 2rem;
    padding-top:0.8rem ;
    gap: 0.7rem;
}

.vista-registro__contenido{
    padding: 2rem;
}

/*Formularios*/
.formulario{
    width: 60%;
    min-width: 250px;
    padding: 2rem;
    border: 0.15rem solid #2b60c4;
    border-radius: 15px;
    padding-top: 0;
}

form > * + * {
    margin-top: 1rem;
}

.formulario__titulo{
    font-size: 1.5rem;
}

.formulario__grupo{
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap:0.1rem;
    margin-bottom: 1rem;
}



.formulario__grupo-fila{
    font-size: 0.8rem;
    display: flex;
    margin-bottom: 1rem;
    gap: 0.1rem;
    align-items: center;
    padding-left: 0.3rem;
}

.formulario__campo{
    height: 1.6rem;
    border-radius: 12px;
    padding: 0.3rem;
    appearance: none;
    border: 1.5px solid rgb(110, 109, 109);
}

.formulario__campo:disabled{
    background-color: #ececec;
    border-color: #c7c7c7;
    color: #7b7b7b;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.formulario__campo:disabled::placeholder{
    color: #9c9c9c;
}

.error-campo{
		    border: 1.5px solid rgb(227, 43, 43);
}

.subida-archivo__boton.error-campo{
	    border: 1.5px solid rgb(227, 43, 43);
	    background-color: #fff2f2;
	    color: #b32727;
}

.mensaje-error-campo{
    margin: 0.35rem 0 0 0;
    font-size: 0.8rem;
    line-height: 1.25;
    color: #b32727;
    font-weight: 600;
}

.formulario__acciones{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}
.formulario__grupo--check{
    margin-top: 1.5rem;
}

.formulario-check{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #222;
}

.formulario-check__input{
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #7a7a7a;
    border-radius: 6px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.formulario-check__input:hover{
    border-color: #5f5f5f;
    background-color: #efefef;
}

.formulario-check__input:checked{
    background-color: #4672c4;
    border-color: #4672c4;
}

.formulario-check__input:checked::after{
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.formulario-check__input:focus-visible{
    box-shadow: 0 0 0 3px rgba(70, 114, 196, 0.20);
}

.formulario-check__texto{
    line-height: 1.2;
}

.formulario-imagen-entidad{
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.subida-archivo__boton.formulario-imagen-entidad__boton svg{
    width: 1.15rem;
    height: 1.15rem;
}

.subida-archivo__boton.formulario-imagen-entidad__boton{
    width: 34px;
    height: 34px;
    background-color: #f3f3f3;
    border-color: #9b9b9b;
    color: #4a4a4a;
}

.subida-archivo__boton.formulario-imagen-entidad__boton:hover{
    background-color: #e8e8e8;
}

.formulario-imagen-entidad__texto{
    font-size: 0.95rem;
    line-height: 1.2;
    color: #222;
    cursor: pointer;
}

.formulario__documento{
    background-color: #edc912;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 15px;
}

.formulario__documento p{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    margin: 0;
}

.formulario__documento-contenido{
    display: flex;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.formulario__documento .formulario__fecha-documento{
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

/*Registrar trabajadores*/
/* Vista registrar trabajador */
.formulario-registrar-trabajador{
    width: 100%;
    min-width: 0;
    padding-top: 0;
    margin: 0;
}

.formulario-registrar-trabajador__contenido{
    border: 1.5px solid #4672c4;
    border-radius: 10px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 2rem;
    align-items: start;
}

.formulario-registrar-trabajador__datos{
    min-width: 0;
}

.formulario-documentos-entidad{
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.formulario-documentos-entidad__tabla-contenedor{
    width: 100%;
    overflow-x: auto;
}

.formulario-documentos-entidad__tabla{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 14px;
    overflow: hidden;
}

.formulario-documentos-entidad__tabla thead{
    background-color: #f2f2f2;
}

.formulario-documentos-entidad__tabla th,
.formulario-documentos-entidad__tabla td{
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e3e3e3;
}

.formulario-documentos-entidad__tabla tbody tr:last-child td{
    border-bottom: none;
}

.formulario-documentos-entidad__tabla th{
    font-size: 0.9rem;
    font-weight: 700;
}

.formulario-documentos-entidad__columna-documento{
    width: 38%;
}

.formulario-documentos-entidad__columna-fecha{
    width: 24%;
}

.formulario-documentos-entidad__columna-fecha input[type="date"]{
    font-size: 0.8rem;
}

.formulario-documentos-entidad__columna-adjunto{
    width: 18%;
}

.formulario-documentos-entidad__columna-eliminar{
    width: 20%;
    text-align: center !important;
}

.formulario-documentos-entidad__campo{
    width: 100%;
    min-height: 34px;
    padding: 0.3rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: transparent;
    font-size: 0.96rem;
    line-height: 1.4;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.formulario-documentos-entidad__campo--editable{
    cursor: text;
}

.formulario-documentos-entidad__campo--editable:hover{
    background-color: #f3f3f3;
    border-color: #d3d3d3;
}

.formulario-documentos-entidad__campo--editable:focus{
    background-color: #ffffff;
    border-color: #4672c4;
    box-shadow: 0 0 0 3px rgba(70, 114, 196, 0.12);
}

.formulario-documentos-entidad__campo--bloqueado{
    font-weight: 600;
    color: #2d2d2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.formulario-documentos-entidad__campo--sin-fecha{
    color: #6f6f6f;
    font-style: italic;
}

.formulario-documentos-entidad__subida{
    display: flex;
    align-items: center;
    justify-content: center;
}

.formulario-documentos-entidad__subida-boton{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #f3f3f3;
    border: 1px solid #8e8e8e;
}

.formulario-documentos-entidad__subida-boton:hover{
    background-color: #e8e8e8;
}

.formulario-documentos-entidad__subida-boton svg{
    width: 18px;
    height: 18px;
}

.formulario-documentos-entidad__eliminar-boton{
    width: 38px;
    height: 38px;
    border: 1px solid #8e8e8e;
    border-radius: 10px;
    background-color: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.formulario-documentos-entidad__eliminar-boton:hover{
    background-color: #ececec;
}

.formulario-documentos-entidad__eliminar-boton svg{
    width: 18px;
    height: 18px;
}

.formulario-documentos-entidad__acciones{
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.formulario-documentos-entidad__boton-anadir{
    width: auto;
    min-width: 3rem;
    height: 3rem;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    background-color: #cccbcb;
}

.formulario-documentos-entidad__boton-anadir svg{
    width: 1.4rem;
    height: 100%;
}

.formulario-registrar-trabajador__acciones-finales{
    margin-top: 2rem;
}

@media (max-width: 1100px){
    .formulario-registrar-trabajador__contenido{
        grid-template-columns: 1fr;
    }
}

/* checkboxes */

.checkbox{
    display: flex;
    align-items: center;
    gap:0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding-left: 0.3rem;
    margin-bottom: 1rem;
}

.checkbox input{
    display: none;
}

.checkbox__box{
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2 ease;
}

.checkbox input:checked + .checkbox__box{
    background-color: #facc15;
    border-color: #facc15;
}

/* Marca interior */
.checkbox input:checked + .checkbox__box::after {
  content: "✓";
  color: white;
  font-size: 13px;
  display: block;
  text-align: center;
  line-height: 18px;
}

/*Input de tipo fichero*/

.subida-archivo__input{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.subida-archivo__boton{
    width: 40px;
    height: 40px;
    border: 1px solid black;
    background-color: #a2a0a0;
    border-radius: 6.5px;
    transition: all ease 0.05s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subida-archivo__boton:hover{
    background-color: #7e7c7c;
    cursor: pointer;
}

.subida-archivo__icono-check{
    display: none;
}

.subida-archivo__boton.subido{
    background-color: #4672c4;
    color: white;
}

.subida-archivo__boton.subido .subida-archivo__icono-upload{
    display: none;
}

.subida-archivo__boton.subido .subida-archivo__icono-check{
    display: block;
}

/* Ajuste para usarlo con texto dentro del modal */
.subida-archivo__boton--texto{
    width: fit-content;
    min-width: 12rem;
    height: 3rem;
    padding: 0 1rem;
    gap: 0.65rem;
    border-radius: 0.9rem;
    background-color: #f8f8f8;
    border: 1.5px solid #8f8f8f;
    color: #222;
    justify-content: flex-start;
}

.subida-archivo__boton--texto:hover{
    background-color: #efefef;
}

.subida-archivo__boton--texto svg{
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.subida-archivo__texto{
    font-size: 1rem;
    font-weight: 600;
}

.subida-archivo__boton--texto.subido{
    background-color: #4672c4;
    border-color: #4672c4;
    color: white;
}

/*Botón añadir documento*/
.boton-anadir-documento{
    display: flex;
    align-items: center;
    justify-content: center;
}


.boton-anadir-documento button:hover{
    cursor: pointer;
}

/*Seccion importante de muestra de datos*/
.vista-detalle__datos{
    display: flex;
    justify-content: space-between;
    padding: 4rem;
}

.vista-detalle__panel-principal{
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.vista-detalle__perfil{
    display: flex;
    gap: 2rem;
}

.vista-detalle__perfil img{
    width: 10rem;
    height: 13rem;
    border: 0.7px solid black;
    object-fit: cover;
}

.vista-detalle__perfil-lectura{
    min-width: 18rem;
    max-width: 26rem;
}

.vista-detalle__perfil-lectura h2{
    margin: 0 0 0.8rem 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

.vista-detalle__perfil-datos{
    width: 100%;
}

.vista-detalle__dato-linea{
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.48rem 0;
    border-bottom: 1px solid #e1e1e1;
}

.vista-detalle__dato-linea:last-child{
    border-bottom: none;
}

.vista-detalle__dato-etiqueta{
    font-size: 0.58rem;
    line-height: 1;
    color: #a7a6a6;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vista-detalle__dato-valor{
    font-size: 0.95rem;
    line-height: 1.25;
    color: #222;
}

.vista-detalle__botones-edicion{
    display: flex;
    flex-direction: row;
    gap:0.6rem
}

/*Modo de edición: Pulsado pero no interactuado*/
.vista-detalle__botones-edicion .boton--primario{
    width: 6rem;
    padding-left:0.3rem ;
    gap: 0.3rem;
}

.vista-detalle__botones-edicion .boton--secundario{
    width: 6rem;
    color: white;
    
    gap: 0.15rem;
}

.vista-detalle__botones-edicion .boton--terciario{
    width: 6rem;
    color: white;
    padding-left:0.3rem ;
    gap: 0.3rem;
}

.vista-detalle__botones-edicion #botonEdicionAltaBaja{
    width: 8.5rem;
    color: white;
}

.boton--alta-estado{
    background-color: #1f9d55;
    border-color: #1f9d55;
}

.boton--alta-estado:hover{
    background-color: #178547;
    border-color: #178547;
}

.boton--baja-estado{
    background-color: #c63b3b;
    border-color: #c63b3b;
}

.boton--baja-estado:hover{
    background-color: #ac2f2f;
    border-color: #ac2f2f;
}

.vista-detalle__botones-edicion svg{
    width: 24px;
    height: 24px;
}

.formulario__campo-edicion{
    background: transparent;
    border: 1px solid rgb(189, 189, 189);
    border-radius: 10px;
    padding: 0.4rem;
    outline: none;
}

.formulario__campo-edicion:hover{
    background-color: #ebebeb;
    border: 1px solid #cbcbcb;
    border-radius: 10px;
}

.formulario__campo-edicion:focus{
    background-color:#f7f5f5 ;
    border: 1px solid #9f9d9d;
    border-radius: 10px;
}

/*Documentos en ventana de información*/
/*Documentos en ventana de información*/
.vista-detalle__documentos{
    padding: 0 4rem 2rem 4rem;
    padding-bottom: 10rem;
}
.vista-detalle__boton-anadir-documento{
    width: auto;
    height: auto;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    background-color: #cccbcb;

}

.vista-detalle__boton-anadir-documento svg{
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.vista-detalle__documentos-filtros{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: auto;
}

.vista-detalle__documentos-filtro{
    display: flex;
    align-items: center;
}

.vista-detalle__documentos-input,
.vista-detalle__documentos-select{
    height: 2rem;
    border-radius: 10px;
    padding: 0 0.75rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.vista-detalle__documentos-input{
    min-width: 16rem;
}

.vista-detalle__documentos-select{
    min-width: 11rem;
}

.vista-detalle__documentos-input:focus,
.vista-detalle__documentos-select:focus{
    border-color: #4672c4;
    
}

.vista-detalle__documentos-tabla-contenedor{
    width: 100%;
    overflow-x: auto;
    min-height: 60vh;
    
}

.vista-detalle__documentos-tabla{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 0.7px solid rgb(176, 174, 174);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.vista-detalle__documentos-tabla th,
.vista-detalle__documentos-tabla td{
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 0.7px solid rgb(220, 220, 220);
}

.vista-detalle__documentos-tabla th{
    background-color: #f3f3f3;
    font-weight: 600;
}

.vista-detalle__documentos-tabla th:first-child,
.vista-detalle__documentos-tabla td:first-child{
    width: 3.5rem;
}

.vista-detalle__documentos-tabla th:nth-child(3),
.vista-detalle__documentos-tabla td:nth-child(3){
    width: 10rem;
}

.vista-detalle__documentos-tabla th:nth-child(4),
.vista-detalle__documentos-tabla td:nth-child(4){
    width: 12rem;
}

.vista-detalle__documentos-tabla tbody tr:hover{
    background-color: #fafafa;
}

.vista-detalle__documentos-tabla tbody tr.tarjeta-documento--foco-pendiente{
    animation: resaltar-documento-pendiente 2.6s ease;
}

.vista-detalle__documentos-tabla tbody tr.tarjeta-documento--foco-pendiente td{
    background-color: #fff4bf;
}

@keyframes resaltar-documento-pendiente{
    0%{
        box-shadow: inset 0 0 0 999px rgba(237, 201, 18, 0.42);
    }
    100%{
        box-shadow: inset 0 0 0 999px rgba(237, 201, 18, 0);
    }
}

.vista-detalle__documentos-tabla tbody tr:last-child td{
    border-bottom: none;
}

.vista-detalle__fila-estado td{
    padding: 2.2rem 1rem;
    text-align: center;
    color: #555;
    font-weight: 600;
    background-color: #fbfbfb;
}

.vista-detalle__fila-estado--error td{
    color: #a11f1f;
    background-color: #fdecec;
}

.vista-detalle__documento-estado{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vista-detalle__documento-nombre-texto{
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vista-detalle__documento-acciones{
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.boton-documento svg{
    width: 1.5rem;
    height: 1.5rem;
}

.boton-documento--deshabilitado{
    opacity: 0.42;
}

.boton-documento--deshabilitado svg:hover{
    color: inherit;
    cursor: default;
}

.boton-documento svg:hover{
    color:rgb(166, 164, 164);
    cursor:pointer
}

/*Modal edición de fichero*/
.modal{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal.oculto{
    display: none;
}

.modal__fondo{
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(3px);
}

.modal__contenido{
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
    border-radius: 2rem;
    padding: 2.4rem 2.6rem 2.2rem 2.6rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__cerrar{
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid #8f8f8f;
    border-radius: 0.8rem;
    background-color: #f9f9f9;
    color: #111;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.modal__cerrar:hover{
    background-color: #ececec;
    transform: translateY(-1px);
}

.modal__titulo{
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c5c5c;
}

.modal__cabecera{
    margin-top: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__nombre-documento{
    margin: 0.9rem 0 0 0;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    color: #171717;
    max-width: 85%;
}

.modal__subtexto{
    margin: 0.8rem 0 0 0;
    font-size: 0.98rem;
    color: #666;
}

.modal__formulario{
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.modal__grupo{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 26rem;
}

.modal__label{
    font-size: 1.15rem;
    font-weight: 700;
    color: #2a2a2a;
}

.modal__input{
    width: 100%;
    height: 3.7rem;
    padding: 0 1rem;
    border: 2px solid #4672c4;
    border-radius: 1rem;
    background-color: #fcfcfc;
    font-size: 1.1rem;
    color: #222;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.modal__input:hover{
    background-color: white;
}

.modal__input:focus{
    border-color: #4672c4;
    box-shadow: 0 0 0 4px rgba(70, 114, 196, 0.14);
    background-color: white;
}

.modal__acciones{
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.modal__mensaje-estado{
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background-color: #fdecec;
    border: 1px solid #efc3c3;
    color: #a11f1f;
    font-size: 0.95rem;
    font-weight: 600;
}

.modal__boton-guardar{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 13rem;
    height: 3.8rem;
    padding: 0 1.8rem;
    border: 2px solid #111;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #f0cf09 0%, #e3c000 100%);
    color: #111;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal__boton-guardar svg{
    width: 1.5rem;
    height: 1.5rem;
}

.modal__boton-guardar:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
    background: linear-gradient(180deg, #f5d71b 0%, #e8c700 100%);
}

.modal__boton-guardar:active{
    transform: translateY(0);
}

.modal__subida-archivo{
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.modal__subida-archivo-boton{
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.8rem;
    background-color: #f8f8f8;
    border: 1.5px solid #4672c4;
    color: #222;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.modal__subida-archivo-boton:hover{
    background-color: #b4c4df;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}
.modal__subida-archivo-boton svg{
    width: 1.2rem;
    height: 1.2rem;
}

.modal-resultado__cabecera{
    padding-right: 4rem;
}

.modal-resultado__titulo{
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: #171717;
}

.modal-resultado__mensaje{
    margin: 0.9rem 0 0 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.45;
}

.modal-resultado__lista{
    margin: 0 0 1rem 0;
    padding-left: 1.2rem;
    color: #333;
}

.modal-resultado__lista li + li{
    margin-top: 0.45rem;
}

.modal-resultado--error{
    border-top: 8px solid #d63b3b;
}

.modal-resultado--exito{
    border-top: 8px solid #2f9d58;
}

.modal-resultado--advertencia{
    border-top: 8px solid #edc912;
}

/*Modal pendientes*/
.modal-pendientes{
    max-width: 1720px;
    width: calc(95% - 3rem);
    height: calc(95% - 3rem);
    max-height: calc(100vh - 3rem);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-pendientes__cabecera{
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.modal-pendientes .modal__titulo{
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c5c5c;
}

.modal-pendientes__filtros{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.modal-pendientes__filtro{
    display: flex;
    align-items: center;
}

.modal-pendientes__input,
.modal-pendientes__select{
    height: 2.4rem;
    border-radius: 10px;
    padding: 0 0.9rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.modal-pendientes__input{
    min-width: 18rem;
}

.modal-pendientes__select{
    min-width: 12rem;
}

.modal-pendientes__input:focus,
.modal-pendientes__select:focus{
    border-color: #4672c4;
}

.modal-pendientes__tabla-contenedor{
    border: 1px solid #c9c9c9;
    border-radius: 1rem;
    overflow-x: auto;
    overflow-y: scroll;
    background-color: #fff;
    flex: 1;
    min-height: 0;
}

.modal-pendientes__tabla{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.82rem;
}

.modal-pendientes__tabla thead th{
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f3f3f3;
    font-weight: 700;
    color: #222;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #d9d9d9;
}

.modal-pendientes__tabla tbody td{
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #e4e4e4;
    vertical-align: middle;
    color: #2c2c2c;
}

.modal-pendientes__tabla tbody tr:last-child td{
    border-bottom: none;
}

.modal-pendientes__tabla tbody tr:hover{
    background-color: #fafafa;
}

.modal-pendientes__fila-estado td{
    padding: 2.2rem 1rem !important;
    text-align: center !important;
    color: #555;
    font-weight: 600;
    background-color: #fbfbfb;
}

.modal-pendientes__fila-estado--error td{
    color: #9b2c2c;
    background-color: #fff3f3;
}

.modal-pendientes__col-estado{
    width: 72px;
}

.modal-pendientes__col-documento{
    width: 24%;
}

.modal-pendientes__col-entidad{
    width: 28%;
}

.modal-pendientes__col-tipo{
    width: 95px;
}

.modal-pendientes__col-caducidad{
    width: 140px;
}

.modal-pendientes__col-accion{
    width: 90px;
}

.modal-pendientes__tabla td:nth-child(1),
.modal-pendientes__tabla th:nth-child(1),
.modal-pendientes__tabla td:nth-child(4),
.modal-pendientes__tabla th:nth-child(4),
.modal-pendientes__tabla td:nth-child(6),
.modal-pendientes__tabla th:nth-child(6){
    text-align: center;
}

.modal-pendientes__tabla td:nth-child(4){
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.modal-pendientes__tipo-icono{
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-pendientes__boton-ir{
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #9f9f9f;
    border-radius: 0.8rem;
    background-color: #f5f5f5;
    color: #111;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.modal-pendientes__boton-ir:hover{
    background-color: #ececec;
    transform: translateY(-1px);
}

.modal-pendientes__boton-ir:disabled,
.modal-pendientes__boton-ir--deshabilitado{
    background-color: #efefef;
    color: #9a9a9a;
    border-color: #d2d2d2;
    cursor: not-allowed;
    transform: none;
    opacity: 0.72;
}

.modal-pendientes__boton-ir:disabled:hover,
.modal-pendientes__boton-ir--deshabilitado:hover{
    background-color: #efefef;
    transform: none;
}

@media (max-width: 1100px){
    .modal-pendientes{
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        padding: 1.2rem;
    }

    .modal-pendientes__input{
        min-width: 14rem;
    }

    .modal-pendientes__select{
        min-width: 10rem;
    }

    .modal-pendientes__tabla{
        font-size: 0.76rem;
    }

    .modal-pendientes__tabla thead th,
    .modal-pendientes__tabla tbody td{
        padding: 0.65rem 0.7rem;
    }

    .modal-pendientes__tipo-icono{
        width: 1.7rem;
        height: 1.7rem;
    }
}

/*Vista máquinas tabla*/
/*Modal historial*/
.modal-historial{
    max-width: 1360px;
    width: calc(92% - 3rem);
    height: calc(82% - 3rem);
    max-height: calc(100vh - 3rem);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-historial__cabecera{
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.modal-historial__tabla-contenedor{
    border: 1px solid #c9c9c9;
    border-radius: 1rem;
    overflow-x: auto;
    overflow-y: auto;
    background-color: #fff;
    flex: 1;
    min-height: 0;
}

.modal-historial__tabla{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.84rem;
}

.modal-historial__tabla thead th{
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f3f3f3;
    font-weight: 700;
    color: #222;
    text-align: left;
    padding: 0.78rem 0.85rem;
    border-bottom: 1px solid #d9d9d9;
}

.modal-historial__tabla tbody td{
    padding: 0.74rem 0.85rem;
    border-bottom: 1px solid #e4e4e4;
    vertical-align: middle;
    color: #2c2c2c;
}

.modal-historial__tabla tbody tr:last-child td{
    border-bottom: none;
}

.modal-historial__tabla tbody tr:hover{
    background-color: #fafafa;
}

.modal-historial__col-nombre{
    width: 42%;
}

.modal-historial__col-introduccion{
    width: 22%;
}

.modal-historial__col-expiracion{
    width: 18%;
}

.modal-historial__col-acciones{
    width: 18%;
}

.modal-historial__tabla td:nth-child(4),
.modal-historial__tabla th:nth-child(4){
    text-align: center;
}

.modal-historial__nombre-documento{
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-historial__documento-acciones{
    justify-content: center;
}

.modal-historial__fila-estado td{
    padding: 2.2rem 1rem !important;
    text-align: center !important;
    color: #555;
    font-weight: 600;
    background-color: #fbfbfb;
}

.modal-historial__fila-estado--error td{
    color: #9b2c2c;
    background-color: #fff3f3;
}

@media (max-width: 1100px){
    .modal-historial{
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        padding: 1.2rem;
    }

    .modal-historial__tabla{
        font-size: 0.77rem;
    }

    .modal-historial__tabla thead th,
    .modal-historial__tabla tbody td{
        padding: 0.66rem 0.7rem;
    }
}

/*Vista mÃ¡quinas tabla*/
.vista-maquinas__filtros{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
}

.vista-maquinas__filtro{
    display: flex;
    align-items: center;
}

.vista-maquinas__filtros-controles{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 32rem;
}

.vista-maquinas__filtros-accion{
    display: flex;
    align-items: center;
    margin-left: auto;
}

.vista-maquinas__input,
.vista-maquinas__select{
    height: 2.4rem;
    border-radius: 10px;
    padding: 0 0.9rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.vista-maquinas__input{
    min-width: 18rem;
}

.vista-maquinas__select{
    min-width: 12rem;
}

.vista-maquinas__input:focus,
.vista-maquinas__select:focus{
    border-color: #4672c4;
}

.vista-maquina__contenido{
    padding: 1rem 1.5rem 10rem;
    min-height: 60vh;
}

.vista-maquinas__tabla-contenedor{
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2b60c4;
    border-radius: 10px;
}

.vista-maquinas__tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 0.7px solid rgb(176, 174, 174);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.vista-maquinas__tabla th,
.vista-maquinas__tabla td{
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 0.7px solid rgb(220, 220, 220);
}

.vista-maquinas__tabla th{
    background-color: #f3f3f3;
    font-weight: 600;
}

.vista-maquinas__tabla tbody tr:hover{
    background-color: #f0efef;
    cursor: pointer;
}

.vista-maquinas__tabla tbody tr.vista-maquinas__fila--baja{
    background-color: #fff3f3;
}

.vista-maquinas__tabla tbody tr.vista-maquinas__fila--baja:hover{
    background-color: #fde5e5;
}

.vista-maquinas__tabla tbody tr:last-child td{
    border-bottom: none;
}

.vista-maquinas__foto{
    width: 3.2rem;
    height: 3.2rem;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.vista-maquinas__fila td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-maquinas__estado,
.vista-maquinas__matricula{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vista-maquinas__estado{
    font-weight: 700;
}

.vista-maquinas__estado-icono,
.vista-maquinas__matricula-icono{
    flex-shrink: 0;
}

.vista-maquinas__estado-icono{
    width: 1rem;
    height: 1rem;
}

.vista-maquinas__matricula-icono{
    width: 1.1rem;
    height: 1.1rem;
}

.vista-maquinas__estado--alta{
    color: #1d8a3f;
}

.vista-maquinas__estado--baja{
    color: #b53434;
}

.vista-maquinas__matricula--activa{
    color: #2a2a2a;
}

.vista-maquinas__matricula--inactiva{
    color: #7b7b7b;
}

.vista-maquinas__fila-estado td{
    text-align: center;
    color: #666;
    padding: 1.25rem 1rem;
}

@media (max-width: 900px){
    .panel-vista{
        padding: 1rem 1rem 0.8rem;
    }

    .vista-maquinas__input{
        min-width: 14rem;
    }

    .vista-maquinas__select{
        min-width: 10rem;
    }

    .vista-maquinas__tabla th,
    .vista-maquinas__tabla td{
        padding: 0.8rem 0.75rem;
        font-size: 0.92rem;
    }

    .vista-maquinas__foto{
        width: 2.8rem;
        height: 2.8rem;
    }

    .vista-maquinas__filtros-accion{
        width: 100%;
        margin-left: 0;
    }

    .vista-maquinas__boton-registro{
        width: 100%;
    }
}

/*Vista vehículos tabla*/
.vista-vehiculos__filtros{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
}

.vista-vehiculos__filtro{
    display: flex;
    align-items: center;
}

.vista-vehiculos__filtros-controles{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 32rem;
}

.vista-vehiculos__filtros-accion{
    display: flex;
    align-items: center;
    margin-left: auto;
}

.vista-vehiculos__input,
.vista-vehiculos__select{
    height: 2.4rem;
    border-radius: 10px;
    padding: 0 0.9rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.vista-vehiculos__input{
    min-width: 18rem;
}

.vista-vehiculos__select{
    min-width: 12rem;
}

.vista-vehiculos__input:focus,
.vista-vehiculos__select:focus{
    border-color: #4672c4;
}

.vista-vehiculos__contenido{
    padding: 1rem 1.5rem 10rem;
    min-height: 60vh;
}

.vista-vehiculos__tabla-contenedor{
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2b60c4;
    border-radius: 10px;
}

.vista-vehiculos__tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 0.7px solid rgb(176, 174, 174);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.vista-vehiculos__tabla th,
.vista-vehiculos__tabla td{
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 0.7px solid rgb(220, 220, 220);
}

.vista-vehiculos__tabla th{
    background-color: #f3f3f3;
    font-weight: 600;
}

.vista-vehiculos__tabla tbody tr:hover{
    background-color: #f0efef;
    cursor: pointer;
}

.vista-vehiculos__tabla tbody tr.vista-vehiculos__fila--baja{
    background-color: #fff3f3;
}

.vista-vehiculos__tabla tbody tr.vista-vehiculos__fila--baja:hover{
    background-color: #fde5e5;
}

.vista-vehiculos__tabla tbody tr:last-child td{
    border-bottom: none;
}

.vista-vehiculos__foto{
    width: 3.2rem;
    height: 3.2rem;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.vista-vehiculos__fila td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-vehiculos__estado{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.vista-vehiculos__estado-icono{
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.vista-vehiculos__estado--alta{
    color: #1d8a3f;
}

.vista-vehiculos__estado--baja{
    color: #b53434;
}

.vista-vehiculos__fila-estado td{
    text-align: center;
    color: #666;
    padding: 1.25rem 1rem;
}

@media (max-width: 900px){
    .vista-vehiculos__input{
        min-width: 14rem;
    }

    .vista-vehiculos__select{
        min-width: 10rem;
    }

    .vista-vehiculos__tabla th,
    .vista-vehiculos__tabla td{
        padding: 0.8rem 0.75rem;
        font-size: 0.92rem;
    }

    .vista-vehiculos__foto{
        width: 2.8rem;
        height: 2.8rem;
    }

    .vista-vehiculos__filtros-accion{
        width: 100%;
        margin-left: 0;
    }

    .vista-vehiculos__boton-registro{
        width: 100%;
    }
}

/*Vista trabajador tabla*/
/* Vista trabajadores en formato tabla */
.vista-trabajadores__filtros{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
}

.vista-trabajadores__filtro{
    display: flex;
    align-items: center;
}

.vista-trabajadores__filtros-controles{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 32rem;
}

.vista-trabajadores__filtros-accion{
    display: flex;
    align-items: center;
    margin-left: auto;
}

.vista-trabajadores__input,
.vista-trabajadores__select{
    height: 2.4rem;
    border-radius: 10px;
    padding: 0 0.9rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.vista-trabajadores__input{
    min-width: 18rem;
}

.vista-trabajadores__select{
    min-width: 12rem;
}

.vista-trabajadores__input:focus,
.vista-trabajadores__select:focus{
    border-color: #4672c4;
}

.vista-trabajadores__contenido{
    padding: 1rem 1.5rem 10rem;
    min-height: 60vh;
}

.vista-trabajadores__boton-registro,
.vista-maquinas__boton-registro,
.vista-vehiculos__boton-registro{
    width: auto;
    min-width: 11rem;
    height: 2.4rem;
    padding: 0 0.95rem;
    gap: 0.55rem;
    justify-content: center;
}

.vista-trabajadores__tabla-contenedor{
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2b60c4;
    border-radius: 10px;
    
}

.vista-trabajadores__tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 0.7px solid rgb(176, 174, 174);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.vista-trabajadores__tabla th,
.vista-trabajadores__tabla td{
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 0.7px solid rgb(220, 220, 220);
}

.vista-trabajadores__tabla th{
    background-color: #f3f3f3;
    font-weight: 600;
}

.vista-trabajadores__tabla tbody tr:hover{
    background-color: #f0efef;
    cursor: pointer;
}

.vista-trabajadores__tabla tbody tr.vista-trabajadores__fila--baja{
    background-color: #fff3f3;
}

.vista-trabajadores__tabla tbody tr.vista-trabajadores__fila--baja:hover{
    background-color: #fde5e5;
}

.vista-trabajadores__tabla tbody tr:last-child td{
    border-bottom: none;
}

.vista-trabajadores__foto{
    width: 3.2rem;
    height: 3.2rem;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.vista-trabajadores__fila td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-trabajadores__estado{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.vista-trabajadores__estado-icono{
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.vista-trabajadores__estado--alta{
    color: #1d8a3f;
}

.vista-trabajadores__estado--baja{
    color: #b53434;
}

@media (max-width: 900px){
    .vista-trabajadores__input{
        min-width: 14rem;
    }

    .vista-trabajadores__select{
        min-width: 10rem;
    }

    .vista-trabajadores__tabla th,
    .vista-trabajadores__tabla td{
        padding: 0.8rem 0.75rem;
        font-size: 0.92rem;
    }

    .vista-trabajadores__foto{
        width: 2.8rem;
        height: 2.8rem;
    }

    .vista-trabajadores__filtros-accion{
        width: 100%;
        margin-left: 0;
    }

    .vista-trabajadores__boton-registro{
        width: 100%;
    }
}

/*Vista logs*/
.vista-logs__contenido{
    padding: 1rem 1.5rem 10rem;
    min-height: 60vh;
}

.vista-logs__filtros{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
}

.vista-logs__filtros-columnas{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    flex: 1 1 48rem;
}

.vista-logs__columna{
    display: grid;
    gap: 1rem;
    align-content: start;
}

.vista-logs__columna--admin{
    /* Preparado para ocultarse cuando exista control real de roles. */
    position: relative;
}

.vista-logs__filtro{
    display: flex;
    align-items: center;
}

.vista-logs__filtro--apilado{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.vista-logs__label{
    margin: 0;
    font-size: 0.8rem;
    color: #222;
}

.vista-logs__filtros-accion{
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: auto;
}

.vista-logs__input,
.vista-logs__select{
    height: 2.4rem;
    border-radius: 10px;
    padding: 0 0.9rem;
    border: 1.5px solid rgb(110, 109, 109);
    background-color: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.vista-logs__input{
    min-width: 15rem;
}

.vista-logs__input--compacto{
    min-width: 9rem;
}

.vista-logs__input--amplio{
    min-width: 22rem;
}

.vista-logs__select{
    min-width: 12rem;
}

.vista-logs__select--compacto{
    min-width: 9.5rem;
}

.vista-logs__input:focus,
.vista-logs__select:focus{
    border-color: #4672c4;
}

.vista-logs__boton-accion{
    width: auto;
    min-width: 9rem;
    height: 2.4rem;
    padding: 0 0.95rem;
    gap: 0.55rem;
    justify-content: center;
    padding-right: 0.95rem;
}

.vista-logs__boton-accion svg{
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    display: block;
}

.vista-logs__resumen{
    margin-bottom: 0.9rem;
    color: #4b4b4b;
    font-size: 0.95rem;
}

.vista-logs__tabla-contenedor{
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2b60c4;
    border-radius: 10px;
}

.vista-logs__tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 0.7px solid rgb(176, 174, 174);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.10);
}

.vista-logs__tabla th,
.vista-logs__tabla td{
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 0.7px solid rgb(220, 220, 220);
}

.vista-logs__tabla th{
    background-color: #f3f3f3;
    font-weight: 600;
}

.vista-logs__tabla tbody tr:hover{
    background-color: #f0efef;
    cursor: pointer;
}

.vista-logs__tabla tbody tr:last-child td{
    border-bottom: none;
}

.vista-logs__tabla td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-logs__tabla th:nth-child(1),
.vista-logs__tabla td:nth-child(1){
    width: 16%;
}

.vista-logs__tabla th:nth-child(2),
.vista-logs__tabla td:nth-child(2){
    width: 18%;
}

.vista-logs__tabla th:nth-child(3),
.vista-logs__tabla td:nth-child(3){
    width: 18%;
}

.vista-logs__tabla th:nth-child(4),
.vista-logs__tabla td:nth-child(4){
    width: 48%;
}

.vista-logs__celda-mensaje{
    max-width: none;
}

.vista-logs__resultado{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.vista-logs__resultado--exito{
    color: #1d8a3f;
}

.vista-logs__resultado--error{
    color: #c63b3b;
}

.vista-logs__resultado-icono{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.vista-logs__resultado-icono svg{
    width: 1rem;
    height: 1rem;
}

.vista-logs__fila-estado td{
    text-align: center;
    color: #666;
    padding: 1.25rem 1rem;
}

.vista-logs__fila-estado--error td{
    color: #b53434;
}

.vista-logs__paginacion{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.vista-logs__paginacion-boton{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.55rem;
    padding: 0 0.95rem;
    border: none;
    border-radius: 999px;
    background-color: #4672c4;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.vista-logs__paginacion-boton:hover{
    background-color: #305cae;
    transform: translateY(-1px);
}

.vista-logs__paginacion-boton:disabled{
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.vista-logs__paginacion-icono{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vista-logs__paginacion-icono svg{
    width: 1.1rem;
    height: 1.1rem;
}

.vista-logs__paginacion-texto{
    color: #4b4b4b;
    font-weight: 600;
}

.modal-log-detalle{
    width: min(42rem, calc(100vw - 2rem));
    max-width: 42rem;
    max-height: 78vh;
    overflow-y: auto;
}

.modal-log-detalle__cabecera{
    align-items: flex-start;
}

.modal-log-detalle__bloques{
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-log-detalle__bloque{
    display: grid;
    gap: 0.35rem;
}

.modal-log-detalle__etiqueta{
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6e6d6d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-log-detalle__texto{
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: #f7f7f7;
    border: 1px solid #dfdfdf;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    color: #272727;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.45;
    max-height: 12rem;
    overflow: auto;
}

@media (max-width: 900px){
    .vista-logs__input{
        min-width: 14rem;
    }

    .vista-logs__filtros-columnas{
        grid-template-columns: 1fr;
    }

    .vista-logs__input--compacto,
    .vista-logs__select--compacto{
        min-width: 10rem;
    }

    .vista-logs__input--amplio{
        min-width: 14rem;
    }

    .vista-logs__select{
        min-width: 10rem;
    }

    .vista-logs__tabla th,
    .vista-logs__tabla td{
        padding: 0.8rem 0.75rem;
        font-size: 0.92rem;
    }

    .vista-logs__filtros-accion{
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .vista-logs__boton-accion{
        width: 100%;
    }

    .modal-log-detalle__bloques{
        grid-template-columns: 1fr;
    }

    .vista-logs__paginacion{
        justify-content: flex-start;
    }
}

.pantalla-login{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at top, rgba(255, 214, 102, 0.18), transparent 32%),
        linear-gradient(180deg, #f8f7f3 0%, #f1efe7 100%);
}

.pantalla-login__panel{
    width: min(100%, 26rem);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(27, 33, 40, 0.08);
    border-radius: 22px;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 48px rgba(33, 37, 41, 0.08);
}

.pantalla-login__cabecera{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.pantalla-login__logo{
    width: 12rem;
    height: 5rem;
    object-fit: contain;
}

.pantalla-login__titulo{
    margin: 0;
    font-size: 1.85rem;
}

.pantalla-login__subtitulo{
    margin: 0;
    color: #5d6670;
    line-height: 1.5;
}

.pantalla-login__formulario{
    display: flex;
    flex-direction: column;
    
}

.pantalla-login__mensaje{
    padding: 0.8rem 0.95rem;
    border: 1px solid #efb0b0;
    border-radius: 12px;
    background-color: #fff2f2;
    color: #9e2f2f;
    font-size: 0.95rem;
}

.pantalla-login__boton{
    justify-content: center;
}

@media (max-width: 640px){
    .pantalla-login__panel{
        padding: 1.6rem 1.1rem;
        border-radius: 18px;
    }

    .pantalla-login__titulo{
        font-size: 1.55rem;
    }
}

.vista-busqueda{
    padding: 1.35rem 1.5rem 5rem;
}

.vista-busqueda__cabecera{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1rem;
}

.vista-busqueda__termino{
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d2430;
}

.vista-busqueda__resumen{
    margin: 0;
    color: #5f6772;
    font-size: 0.98rem;
}

.vista-busqueda__estado{
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px dashed #c8d4ea;
    background-color: #f4f8ff;
    color: #35538e;
    font-weight: 600;
}

.vista-busqueda__estado--error{
    border-style: solid;
    border-color: #e3b1b1;
    background-color: #fff3f3;
    color: #a13737;
}

.vista-busqueda__lista{
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.vista-busqueda__resultado{
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1.3px solid rgba(62, 110, 198, 0.16);
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(20, 36, 74, 0.08);
    cursor: pointer;
    text-align: left;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.vista-busqueda__resultado:hover{
    transform: translateY(-3px);
    border-color: rgba(70, 114, 196, 0.34);
    box-shadow: 0 14px 26px rgba(20, 36, 74, 0.12);
}

.vista-busqueda__resultado:focus-visible{
    outline: 2px solid #4672c4;
    outline-offset: 2px;
}

.vista-busqueda__resultado-media{
    flex-shrink: 0;
    
}

.vista-busqueda__media,
.vista-busqueda__imagen{
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 12px;
}

.vista-busqueda__imagen{
    display: block;
    object-fit: cover;
}

.vista-busqueda__media{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.1px solid #4672c4;
}

.vista-busqueda__media--documento{
    background: linear-gradient(180deg, #edf3ff 0%, #dce8ff 100%);
    color: #4672c4;
    box-shadow: inset 0 0 0 1px rgba(70, 114, 196, 0.18);
    
}

.vista-busqueda__media--documento svg{
    width: 1.65rem;
    height: 1.65rem;
}

.vista-busqueda__resultado-contenido{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    
}

.vista-busqueda__resultado-principal{
    font-size: 1rem;
    font-weight: 700;
    color: #1f2632;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-busqueda__resultado-auxiliar{
    font-size: 0.92rem;
    color: #4f5e74;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-busqueda__resultado-secundario{
    font-size: 0.9rem;
    color: #6f7783;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-busqueda__resultado-tipo{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 14px;
    background-color: #fbfcff;
    color: #4672c4;
    border:0.1px solid #4672c4;
    box-shadow: inset 0 0 0 1px rgba(70, 114, 196, 0.12);
}

.vista-busqueda__resultado-tipo-icono{
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    display: block;
}

.vista-busqueda__paginacion{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.vista-busqueda__paginacion-boton{
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.7rem;
    padding: 0 1rem;
    border: 1px solid rgba(70, 114, 196, 0.28);
    border-radius: 12px;
    background-color: #eef3ff;
    color: #4672c4;
    font-weight: 700;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.vista-busqueda__paginacion-boton:hover:not(:disabled){
    background-color: #dfe9ff;
    border-color: rgba(70, 114, 196, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(70, 114, 196, 0.16);
    cursor: pointer;
}

.vista-busqueda__paginacion-boton:disabled{
    opacity: 0.48;
    cursor: default;
    box-shadow: none;
}

.vista-busqueda__paginacion-icono{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vista-busqueda__paginacion-icono svg{
    width: 1.1rem;
    height: 1.1rem;
}

.vista-busqueda__paginacion-texto{
    color: #445064;
    font-weight: 600;
}

@media (max-width: 760px){
    .vista-busqueda{
        padding: 1rem 1rem 4rem;
    }

    .vista-busqueda__resultado{
        grid-template-columns: auto 1fr;
        gap: 0.85rem;
    }

    .vista-busqueda__resultado-tipo{
        grid-column: 2;
        justify-self: start;
    }

    .vista-busqueda__paginacion{
        justify-content: center;
    }

    .vista-busqueda__paginacion-texto{
        width: 100%;
        text-align: center;
        order: -1;
    }
}
