:root {
    --blanco: #fff;
    --border-claro: #dddddd;
    --color-6: rgba(255, 255, 255, 0.2);
    --color-claro-10: #dfe5d7;
    --color-claro-1: #ccc;
    --color-claro-3: #f1f1f1;
    --color-claro-4: #fcfff4;
    --color-claro-5: #e0e0e0;
    --color-mostaza: #e0ae4a;
    --color-peligro: #e74c3c;
    --color-primario-oscuro: #7a8d3f;
    --color-primario: #98b051;
    --color-secundario-2: #9bad3e;
    --color-secundario: #95ad2e;
    --gris-claro-2: #8c8c8c;
    --gris-claro-7: #999;
    --gris-claro: #eeeeee;
    --gris-medio-8: #666;
    --texto-oscuro-9: #000;
    --texto-oscuro: #333;

    --size-h1: 32px;
    --padding-header: 15px;
}

:root {
    --accent-danger: #d9534f;
    --accent-info: #5bc0de;
    --accent-pdf: var(--color-peligro);
    --accent-success: #5cb85c;
    --accent-warning: #f0ad4e;
    --accent-word: #2980b9;
    --bg-light: #f9f9f9;
    --bg-white: var(--blanco);
    --border-color: #ddd;
    --danger-bg: #d9534f;
    --danger-color: var(--blanco);
    --primary-color: var(--color-primario);
    --primary-dark: var(--color-primario-oscuro);
    --primary-light: #b0c976;
    --primary-lighter: #d4e0b3;
    --shadow-lg: 0 6px 12px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --success-bg: #5cb85c;
    --success-color: var(--blanco);
    --text-dark: var(--texto-oscuro);
    --text-light: var(--gris-claro-7);
    --text-medium: var(--gris-medio-8);
    --text-muted: #6c757d;
    --white: var(--blanco);
}

html, body {
    background-color: var(--bg-light);
    height: 100%;
    font-size: 16px;
    margin: 0;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-thumb {
    background: #464646;
    border-radius: 2px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555;
}

*::-webkit-scrollbar-track {
    background: var(--color-claro-3);
    border-radius: 2px;
}

a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}

a.adicionar {
    background: var(--color-secundario);
    border-radius: 10px;
    border: none;
    box-shadow: 1px 2px 2px 1px var(--gris-claro-2);
    color: white;
    display: inline-block;
    margin: 10px 0 30px;
    padding: 5px 20px;
    text-decoration: none;
    text-transform: uppercase;
}

a.adicionar:hover {
    opacity: 0.8;
}

a.btn-action:hover,
a.btn-adicionar:hover,
a.btn-cancel:hover {
    color: white;
    text-decoration: none;
}

a.btn-default:hover {
    color: initial;
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

button[type=submit].btn-sm.btn-danger {
    background: var(--color-peligro);
    border-radius: 3px;
    border: 0;
    color: white;
    font-size: 12px;
    font-weight: normal;
    padding: 5px 10px;
    text-transform: none;
}

footer {
    flex-shrink: 0;
    background: var(--color-secundario-2);
    height: 60px;
    padding: 0 2.5%;
    position: relative;
    width: 100%;
}

footer #copy {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    text-align: center;
}

footer #copy #copyimage {
    display: inline-block;
    vertical-align: top;
}

footer #copy #copytext {
    color: white;
    display: inline-block;
    margin: 13px 0 0 25px;
    vertical-align: top;
}

footer #copy #copytext a {
    color: white;
}

footer #soporte {
    bottom: 4px;
    left: 2.5%;
    position: absolute;
}

footer #soporte a {
    color: white;
}

footer #soporte .btn-safetya {
    border: 1px solid white;
}

footer #soporte #texto-soporte {
    background: var(--color-secundario-2);
    border-radius: 10px;
    border: 3px solid white;
    bottom: 48px;
    color: white;
    display: none;
    left: 0;
    padding: 15px;
    position: absolute;
    width: 300px;
    font-size: 15px;
}

h1 {
    margin-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px 0;
    padding: 0;
}

h3.panel-title {
    font-weight: bold;
}

img {
    border: 0;
}

/*
 * Estilos globales para input, textarea y select (excepto botones)
 * Inspirado en los rediseños de módulos recientes
 */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    background: var(--blanco);
    border: 1.5px solid var(--primary-light);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-dark);
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-lighter);
}

textarea {
    min-height: 60px;
    resize: vertical;
}

select {
    min-width: 120px;
    max-width: 100%;
    cursor: pointer;
}

input[readonly], textarea[readonly], select[readonly] {
    background: var(--color-claro-3);
    color: var(--text-muted);
}

input[disabled], textarea[disabled], select[disabled] {
    background: var(--color-claro-1);
    color: var(--text-muted);
}

input.date-selected {
    animation: dateSelected 0.5s ease;
}

input[type=button].disabled {
    background-size: 100%;
    background: var(--color-mostaza) url(../img/loading.gif) no-repeat center center;
    text-indent: -3000px;
    width: 50px;
}

label.error {
    color: var(--color-peligro) !important;
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

table {
    margin: 0 0 10px 0;
}

table a.normal {
    color: var(--texto-oscuro);
    text-decoration: underline;
}

table tr td {
    position: relative;
}

table tr td .iradio_line-aero {
    width: 100%;
}

table tr td .popup {
    background: white;
    border-radius: 10px;
    border: 2px solid #6b6a6a;
    padding: 20px;
    position: absolute;
    top: 35px;
    width: 800px;
    z-index: 9;
}

table tr td .popupmini {
    background: white;
    border-radius: 10px;
    border: 2px solid #6b6a6a;
    padding: 5px 10px 10px 10px;
    position: absolute;
    right: 0;
    text-align: left;
    top: 35px;
    width: 400px;
    z-index: 9;
}

table tr td .popupmini .input {
    width: 100%;
}

table tr td .popupmini a {
    background: none;
    box-shadow: none;
    color: black;
    margin: 0 0 5px 0;
    padding: 0;
}

table tr th, table tr td {
    padding: 5px;
}

table tr.disabled {
    opacity: 0.6;
}

table tr.trtitulo {
    background: #a3f18f;
}

table tr:nth-child(even) {
    background: var(--gris-claro);
}

table.table-striped a {
    background: none;
    box-shadow: none;
    color: black;
    display:inherit;
    margin: 0;
    padding: 0;
    text-transform: none;
}

#activar {
    display: inline-block;
    text-align: right;
    vertical-align: top;
    width: 100%;
}

#activar .anhos {
    float: left;
    margin-bottom: 20px;
}

#activar .anhos #buscar label {
    display: none;
}

#activar .anhos form .fila {
    display: inline-block;
}

#activar .anhos label {
    display: inline-block;
}

#activar li {
    display: inline-block;
    list-style: none;
    margin-bottom: 10px;
    vertical-align: top;
}

#activar li a {
    background: var(--color-secundario);
    border-radius: 10px;
    border: none;
    box-shadow: 1px 2px 2px 1px var(--gris-claro-2);
    color: white;
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 3px 5px;
    text-decoration: none;
    text-transform: uppercase;
}

#activar li a:hover,
#activar li a.actual {
    background: var(--color-mostaza);
}

#anuncio {
    border-radius: 10px;
    border: 1px solid var(--color-claro-1);
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    width: 50%;
}

#botonguardar {
    vertical-align: top;
}

#buscaravanzada .fechas .fila {
    display: inline-block;
    vertical-align: top;
    width: 33%;
}

#buscaravanzada .fechas .fila .item {
    display: inline-block;
    vertical-align: top;
    width: 49%;
}

#buscaravanzada .filtro .fila {
    display: inline-block;
    vertical-align: top;
    width: 33%;
}

#buscaravanzada .filtro .fila select[multiple=multiple] {
    min-height: 200px;
}

#cajaries {
    height: 650px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
    width: 600px;
}

#cajaries .barra {
    float: left;
    width: 200px;
}

#cajaries .barra .colores {
    height: 600px;
    overflow: hidden;
}

#cajaries .barra .titulo {
    font-weight: bold;
    height: 50px;
    line-height: 50px;
    text-align: center;
    text-transform: uppercase;
}

#cajaries .linea50 {
    border-top: 1px dashed grey;
    position: absolute;
    top: 350px;
    width: 100%;
}

#condicionopcion .radiolabel {
    margin: 0 20px 0 5px;
}

#condicionopcion input[type=radio] {
    height: 20px;
    width: 20px;
}

#content {
    flex: 1 0 auto;
    padding: 10px 0 50px 0;
}

#content .dropzone {
    border-radius: 10px;
    border: 2px dashed rgba(0,0,0,0.3);
}

#cuestionario {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

#cuestionario .enviar {
    margin: 60px 0 15px 0;
}

#cuestionario .ficha .filas .respuestas .respuesta {
    text-align: left;
}

#cuestionario .filas {
    display: inline-block;
    padding: 15px 0;
    vertical-align: top;
    width: 100%;
}

#cuestionario .filas .numero {
    float: left;
    font-weight: bold;
    width: 5%;
}

#cuestionario .filas .pregunta {
    float: left;
    margin-right: 2%;
    width: 48%;
}

#cuestionario .filas .respuestas {
    float: left;
    width: 45%;
}

#cuestionario .filas .respuestas .respuesta {
    float: left;
    text-align: center;
}

#cuestionario .filas .respuestas .respuesta input[type=radio],
#cuestionario .filas .respuestas .respuesta input[type=checkbox] {
    height: 20px;
    width: 20px;
}

#cuestionario .filas .respuestas .respuesta input[type=text],
#cuestionario .filas .respuestas .respuesta select,
#cuestionario .filas .respuestas .respuesta textarea {
    background: white;
    border: 1px solid var(--gris-claro);
}

#cuestionario .filas .respuestas .respuesta label.nombre {
    display: none;
}

#cuestionario .instruccion {
    font-size: 18px;
    margin:	60px 0 30px 0;
}

#cuestionario .mynormal:hover {
    background: var(--gris-claro);
}

#cuestionario .mynormal:nth-child(even) {
    background: var(--color-claro-3);
}

#cuestionario.informe .filas .respuestas {
    float: left;
    font-weight: bold;
    margin-right: 2%;
    text-align: right;
    width: 43%;
}

#elcontrol .controles {
    border-bottom: 1px solid var(--gris-claro);
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
}

#elcontrol .controles .titulo {
    font-size: 18px;
    font-weight: 600;
}

#empresaprint {
    display: none;
}

#filtros {
    display: inline-block;
}

#filtros #buscar {
    display: inline-block;
}

#filtros #buscar input[type=submit], #filtros #buscar button[type=button] {
    padding: 7px 10px;
}

#filtros #buscar input[type=text] {
    width: 100%;
}

#filtros .fila {
    display: inline-block;
    margin-left: 20px;
}

#filtros .fila label {
    display: none;
}

#filtros-tarea {
    display: inline-block;
    margin-bottom: 30px;
    vertical-align: top;
    width: 100%;
}

#filtros-tarea select {
    margin-bottom: 10px;
}

#grafica {
    padding-top: 40px;
}

#htmltabla tr.amarillo {
    background: rgba(239, 255, 0, 0.3);
}

#htmltabla tr.amarillo:hover,
#htmltabla tr.amarillo.hover {
    background: #efff00;
}

#htmltabla tr.rojo {
    background: rgba(255, 0, 0, 0.3);
}

#htmltabla tr.rojo:hover,
#htmltabla tr.rojo.hover {
    background: #911717;
    color: white;
}

#htmltabla tr.verde {
    background: rgba(38, 142, 56, 0.3);
}

#htmltabla tr.verde:hover,
#htmltabla tr.verde.hover {
    background: #196426;
    color: white;
}

#htmltabla tr:hover,
#htmltabla tr.hover {
    background: #ded290;
}

#lasnormas {
    padding: 30px 0;
}

#lasnormas .normas .articulos {
    padding: 20px 0;
}

#lasnormas .normas .articulos .articulo {
    position: relative;
}

#lasnormas .normas .articulos .articulo .openmore {
    position: absolute;
    right: 5px;
    top: 5px;
}

#lasnormas .normas .articulos .articulo .openmore a {
    color: white;
    text-decoration: none;
}

#lasnormas .normas .revisa {
    text-align: right;
}

#laspersonasrequiere {
    border-radius: 10px;
    padding: 20px 20px 5px 20px;
}

#matrizcliente .descripcion .norma, 
.matrizcliente .descripcion .norma {
    font-size: 12px;
    font-style: italic;
    margin: 10px 0 0 0;
}

#matrizcliente .descripcion, 
.matrizcliente .descripcion {
    border-radius: 10px;
    border: 1px solid var(--gris-claro);
    margin: 10px 0 0 0;
    padding: 15px 30px;
}

#matrizcliente .matriz .button a, 
.matrizcliente .matriz .button a {
    color: var(--color-mostaza);
}

#matrizcliente .matriz .button, 
.matrizcliente .matriz .button {
    display: inline-block;
    font-size: 20px;
    text-align: right;
    vertical-align: middle;
    width: 8%;
}

#matrizcliente .matriz .input input, 
.matrizcliente .matriz .input input {
    height: 30px;
    width: 30px;
}

#matrizcliente .matriz .input, 
.matrizcliente .matriz .input {
    display: inline-block;
    vertical-align: middle;
    width: 4%;
}

#matrizcliente .matriz .text .titulo, 
.matrizcliente .matriz .text .titulo {
    font-size: 10px;
}

#matrizcliente .matriz .text, 
.matrizcliente .matriz .text {
    display: inline-block;
    vertical-align: top;
    width: 86%;
}

#matrizcliente .matriz, 
.matrizcliente .matriz {
    margin-bottom: 10px;
}

#matrizcliente .matriz:hover, 
.matrizcliente .matriz:hover {
    background: var(--color-claro-3);
}

#matrizriesgo input[type=checkbox],
#matrizriesgo input[type=radio] {
    height: 20px;
    width: 20px;
}

#mi-ayuda {
    background: var(--color-primario);
    border-radius: 100%;
    border: 1px solid white;
    color: white;
    display: block;
    font-size: 40px;
    height: 55px;
    line-height: 55px;
    position: fixed;
    right: 0;
    text-align: center;
    top: 20%;
    width: 55px;
    z-index: 999;
}

#mi-ayuda #the-links {
    background: var(--color-claro-3);
    border-radius: 5px;
    border: 1px solid var(--gris-claro);
    max-height: 500px;
    overflow-y: auto;
    padding: 15px 15px 5px 15px;
    position: absolute;
    right: 0;
    text-align: left;
    width: 280px;
}

#mi-ayuda #the-links a {
    font-size: 15px;
    line-height: normal;
}

#mi-ayuda a {
    text-decoration: none;
}

#mi-ayuda a span {
    color: white;
    display: block;
    line-height: 55px;
}

#mi-ayuda:hover {
    background: var(--color-mostaza);
}

#minifootercopy {
    background: var(--gris-claro) !important;
    bottom: 0;
    color: black;
    display: none;
    font-size: 12px;
    left: 0;
    line-height: 45px;
    padding: 5px 5%;
    position: fixed;
    width: 100%;
}

#modificaractividad label {
    display: none;
}

#modificaractividadfila #num0 {
    display: none;
}

#modificaractividad a
{
	background: #95AD2E;
	border: none;
	border-radius: 10px;
	box-shadow: 1px 2px 2px 1px #8C8C8C;
	color: white;
	display: inline-block;
	margin: 0 0 5px 0;
	padding: 3px 5px;
	text-decoration: none;
	text-transform: uppercase;
}

#navigation {
    margin: 15px 0;
}

#navigation a {
    background: var(--color-secundario);
    border-radius: 10px;
    border: none;
    box-shadow: 1px 2px 2px 1px var(--gris-claro-2);
    color: white;
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 3px 5px;
    text-decoration: none;
    text-transform: uppercase;
}

#navigation a:hover,
#navigation a.seleccionado {
    background: var(--color-mostaza);
}

#nuevosestados {
    border-radius: 10px;
    border: 3px dotted var(--color-claro-1);
    height: 50vh;
    margin-bottom: 20px;
    overflow-y: auto;
    padding: 2%;
    text-align: left;
}

#nuevosestados .matrizcliente .matriz {
    position: relative;
}

#portipo {
    margin-top: 100px;
}

#reportemaquinas h2 {
    border-bottom: 1px solid var(--color-claro-1);
    margin: 80px 0 15px 0;
    padding-bottom: 5px;
}

#requisito-empresa .requisito a {
    color: var(--color-secundario-2);
}

#requisito-empresa .requisito input[type="checkbox"] {
    height: 20px;
    width: 20px;
}

#requisito-empresa .requisito label {
    vertical-align: middle;
}

#seleccionar-empresa .flex {
    align-items: center;
}

#seleccionar-empresa .flex .logo {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100px;
    margin-right: 5%;
    width: 100px;
}

#seleccionar-empresa .flex .name {
    color: var(--texto-oscuro);
    font-size: 25px;
    text-transform: uppercase;
}

#tablacopia li {
    float: left;
    font-size: 10px;
    width: 33%;
}

#tablero-control .amarillo {
    background: #faffb3;
}

#tablero-control .naranja {
    background: #ffb480;
}

#tablero-control .rojo {
    background: #ffb3b3;
}

#tablero-control .verde {
    background: #beddc3;
}

#tablero-control td, #tablero-control th {
    text-align: center;
}

#tablero-control tr td:first-child, #tablero-control tr th:first-child {
    text-align: left;
}

#tareas-masivas .select {
    display: none;
}

#tareas-masivas .select input {
    height: 20px;
    margin: 5px;
    width: 20px;
}

#tareas-masivas .select.show {
    display: table-cell !important;
}

#tareas-masivas-opciones {
    display: none;
    text-align: center;
}

#tareas-masivas-responsable {
    border-radius: 15px;
    border: 2px solid var(--color-primario);
    display: none;
    padding: 20px 40px;
    text-align: left;
}

#theasociation ul {
    background: #eee;
    list-style-type: none;
    margin: 0;
    min-height: 380px;
    padding: 10px;
}

#theasociation ul li {
    cursor: move;
    padding: 5px;
    position: relative;
}

#theasociation ul li a {
    position: absolute;
    right: 5px;
    top: 25%;
}

#thesearch {
    padding: 30px 0 30px 0;
    text-align: center;
}

#thesearch .row {
    text-align: left;
}

#thesearch label {
    text-align: center;
}

#tipos {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

#tipos .tipo {
    border-radius: 10px;
    border: 1px solid var(--gris-claro);
    margin-bottom: 20px;
}

#tipos .tipo .normas {
    padding: 15px 2%;
}

#tipos .tipo .normas .norma {
    border-radius: 5px;
    border: 2px solid var(--color-claro-1);
    display: inline-block;
    margin-bottom: 20px;
    margin-right: 1%;
    padding: 1%;
    vertical-align: top;
    width: 30%;
}

#tipos .tipo .normas .norma .obli {
    color: green;
}

#tipos .tipo .normas .norma.revi {
    border-color: green;
}

#tipos .tipo .normas a {
    color: black;
}

#tipos .tipo h2 {
    background: var(--color-mostaza);
    color: white;
    padding: 15px 2%;
}

#verificacion {
    width: 30px;
}

#words .impar {
    background: white;
}

#words .par {
    background: var(--gris-claro);
}

#words .ventana {
    background: white;
}

#words .ventana .informacion {
    border-radius: 10px;
    border: 2px solid var(--gris-claro);
    padding: 10px;
}



.abutton {
    background: var(--color-secundario);
    border-radius: 10px;
    border: none;
    box-shadow: 1px 2px 2px 1px var(--gris-claro-2);
    color: white;
    display: inline-block;
    margin: 0 0 5px 0;
    padding: 3px 5px;
    text-decoration: none;
    text-transform: uppercase;
}

.articulo {
    border-radius: 10px;
    border: 1px solid var(--gris-claro);
    margin-bottom:10px;
    padding: 15px 2%;
}

.articulo .data {
    display: inline-block;
    vertical-align: top;
    width: 80%;
}

.articulo .data .descripcion {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0 2% 0 0;
    vertical-align: top;
    width: 67%;
}

.articulo .data .identificador {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 10px;
    vertical-align: top;
    width: 100%;
}

.articulo .data .requiere {
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: top;
    width: 30%;
}

.articulo .opciones {
    display: inline-block;
    vertical-align: top;
    width: 19%;
}

.articulo.nivel1 {
    background: rgba(204,204,204, 0.9);
}

.articulo.nivel2 {
    background: rgba(204,204,204, 0.7);
}

.articulo.nivel3 {
    background: rgba(204,204,204, 0.5);
}

.articulo.nivel4 {
    background: rgba(204,204,204, 0.3);
}

.articulo.nivel5 {
    background: rgba(204,204,204, 0.1);
}

.articulo.nivel6 {
    background: rgba(204,204,204, 0);
}

.ayuda {
    background: var(--color-claro-3);
    border-radius: 10px;
    border: 1px solid var(--gris-claro);
    margin: 0 auto 20px;
    padding: 15px 4%;
    width: 100%;
}

.borrar
{
	display: inline-block;
}

.box {
    background: white;
    border-radius: 10px;
    border: 2px solid var(--gris-claro);
    left: 0;
    padding: 2% 4%;
    position: absolute;
    top: 40px;
    width: 92%;
}

.box .ocultar {
    background: none;
    box-shadow: none;
    color: red;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
}

.boxfijo {
    background: white;
    border-radius: 10px;
    border: 2px solid var(--gris-claro);
    left: 0;
    padding: 10px 20px;
    position: absolute;
    top: 40px;
    width: 450px;
    z-index: 9999;
}

/* === Botones globales reutilizables === */
.btn-safetya,
.btn-safetya-cancel {
    min-width: 160px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 32px;
    border: none;
}
.btn-safetya {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}
.btn-safetya:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    text-decoration: none;
}
.btn-safetya-cancel {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: var(--text-dark);
    text-decoration: none;
}
.btn-safetya-cancel:hover {
    background: linear-gradient(135deg, #bdbdbd 0%, #e0e0e0 100%);
    color: var(--primary-dark);
    text-decoration: none;
}

/* Botón secundario con borde */
.btn-safetya-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 42px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-safetya-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-safetya-secondary:active {
    transform: translateY(0);
}

.btn-safetya-secondary i {
    font-size: 1.1em;
}

.btn-safetya .fa,
.btn-safetya-cancel .fa {
    margin-right: 5px;
    height: 18px;
}

.btn-safetya span {
    white-space: nowrap;
}

.btn-volver {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
}

.btn-volver .fa{
    font-size: 1.1em;
}

.btn-action {
    align-items: center;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--color-secundario);
    box-shadow: 1px 2px 2px 1px var(--gris-claro-2);
    color: var(--blanco);
    margin-left: 5px;
    margin-bottom: 5px;
    justify-content: center;
}

.btn-action:hover {
    opacity: 0.8;
}

.btn-eliminar {
    background: var(--accent-danger);
    color: var(--blanco);
}

.btn-limpiar {
    background: #f39c12;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    padding: 8px 15px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-limpiar:active {
    background: #d35400;
    transform: translateY(1px);
}

.btn-limpiar:hover {
    background: #e67e22;
}

.btn-modificar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: var(--white);
}

.btn-nuevo {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
}

.busquedas {
    float:  right;
    text-align: right;
    width: 40%;
}

.card-formularios {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s 0.2s backwards;
}

.center {
    text-align: center;
}

.checkbox2-actions {
    font-size: 13px;
    font-weight: normal;
}

.checkbox2-actions a {
    color: var(--color-primario);
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox2-actions a:hover {
    color: #7a8f3e;
    text-decoration: underline;
}

.checkbox2-container {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--color-claro-5);
    margin-bottom: 20px;
    padding: 15px;
}

.checkbox2-container h3 {
    align-items: center;
    border-bottom: 2px solid var(--color-primario);
    color: var(--texto-oscuro);
    display: flex;
    justify-content: space-between;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
}

.checkbox2-count {
    color: var(--gris-medio-8);
    font-size: 12px;
    font-style: italic;
    margin-top: 10px;
}

.checkbox2-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 10px;
}

.checkbox2-item {
    align-items: center;
    background: white;
    border-radius: 6px;
    border: 2px solid var(--color-claro-5);
    cursor: pointer;
    display: flex;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox2-item .checkbox2-checkmark {
    background: white;
    border-radius: 4px;
    border: 2px solid var(--color-claro-1);
    display: inline-block;
    flex-shrink: 0;
    height: 22px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    width: 22px;
}

.checkbox2-item .checkbox2-checkmark:after {
    border-width: 0 2px 2px 0;
    border: solid white;
    content: "";
    display: none;
    height: 11px;
    left: 6px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 6px;
}

.checkbox2-item .checkbox2-label {
    color: var(--texto-oscuro);
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

.checkbox2-item input[type="checkbox"] {
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.checkbox2-item input[type="checkbox"]:checked ~ .checkbox2-checkmark {
    background: var(--color-primario);
    border-color: var(--color-primario);
}

.checkbox2-item input[type="checkbox"]:checked ~ .checkbox2-checkmark:after {
    display: block;
}

.checkbox2-item input[type="checkbox"]:checked ~ .checkbox2-label {
    color: var(--color-primario);
    font-weight: 600;
}

.checkbox2-item:hover {
    background: #f0f7e6;
    border-color: var(--color-primario);
    box-shadow: 0 2px 8px rgba(152, 176, 81, 0.2);
    transform: translateY(-2px);
}

.checkbox3 {
    display: inline-block;
    margin-right: 10px;
}

.checklist {
    display:  inline-block;
    height: 30px;
    margin: 0 0 10px 0 !important;
    vertical-align: middle;
    width: 30px;
}

.color5 {
    background: rgba(218,77,70, 0.2);
}

.color6 {
    background: #ffc;
}

.color7 {
    background: rgba(0,0,0,0.1);
}

.container {
    width: 100%;
}

.container-formularios {
    background-color: var(--bg-light);
    border-radius: 10px;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

.container-normal {
    background-color: var(--bg-light);
    margin: 0 auto;
    max-width: 1600px;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

/* Ajustes del select2 del filtro cargo */
.container-normal .select2-container, 
.container-formularios .select2-container { width: 100% !important; }
.container-normal .select2-container .select2-selection--single, 
.container-formularios .select2-container .select2-selection--single {
  height: 44px;
  border: 1.5px solid var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: border 0.2s, box-shadow 0.2s;
}
.container-normal .select2-container--default .select2-selection--single .select2-selection__rendered, 
.container-formularios .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding-left: 12px;
  color: var(--text-dark);
}
.container-normal .select2-container--default .select2-selection--single .select2-selection__arrow, 
.container-formularios .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 8px;
}
.container-normal.select2-container--default.select2-container--focus .select2-selection--single,
.container-normal .select2-container--default .select2-selection--single:focus, 
.container-formularios .select2-container--default.select2-container--focus .select2-selection--single, 
.container-formularios .select2-container--default .select2-selection--single:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-lighter);
  outline: none;
}

.container-formularios .help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.container-formularios .help-text::before {
    content: 'ℹ️';
    font-size: 13px;
}

.container-formularios .help-text.error {
    color: var(--accent-danger);
}

.counter-normal{
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-normal::before {
    content: "📊";
    font-size: 18px;
}

/* === Mejoras visuales para el dropdown de select2 === */
.select2-container .select2-dropdown {
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid var(--primary-color, #1976d2);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
    font-family: inherit;
    font-size: 15px;
    padding: 0;
    overflow: hidden;
}
.select2-container .select2-results__options {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #1976d2) #e3eafc;
}
.select2-container .select2-results__option {
    padding: 10px 18px;
    color: var(--text-dark, #222);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
}
.select2-container .select2-results__option--highlighted {
    background: var(--primary-color, #1976d2);
    color: #fff;
}
.select2-container .select2-results__option[aria-selected=true] {
    background: #e3eafc;
    color: var(--primary-dark, #0d47a1);
}
.select2-container .select2-results__option--disabled {
    color: #bdbdbd;
    background: #f5f5f5;
    cursor: not-allowed;
}
.select2-search--dropdown .select2-search__field{
    width: calc(100% - 32px);
}
.select2-search--dropdown .select2-search__field:focus-visible
{
    outline: 2px solid var(--primary-color);
}
.select2-container .select2-search--dropdown .select2-search__field {
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    padding: 7px 12px;
    margin: 8px;
    font-size: 15px;
}
.select2-container .select2-results__option--highlighted[aria-selected=true] {
    background: linear-gradient(90deg, var(--primary-color, #1976d2) 60%, #e3eafc 100%);
    color: #fff;
}

.data {
    margin: 0 0 10px 0;
}

.data label {
    font-weight: bold;
}

.date-icon {
    color: var(--color-primario);
    cursor: pointer;
    font-size: 18px;
    pointer-events: auto;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.date-icon i {
    display: block;
}

.date-icon:hover {
    color: var(--color-primario-oscuro);
    transform: translateY(-50%) scale(1.15);
}

.dias .fila {
    display: inline-block;
    padding-right: 3%;
}

.displayinblock {
    display: inline-block;
}

.dropup .dropdown-menu {
    bottom: auto !important;
    top: 0 !important;
}

.dropup .dropdown-menu .form-check .form-check-input {
    left: 2px !important;
}

.encajar {
    border-radius: 10px;
    border: 2px solid var(--gris-claro);
    padding: 15px 3% 5px;
}

.error {
    color: red;
    display: block;
}

.error_message,
.error-message {
    color: red;
}

.fila {
    margin: 0 0 15px 0;
}

.fila19 {
    display: inline-block;
    margin: 0 0 15px 0;
    vertical-align: top;
    width: 19%;
}

.fila2 {
    display: inline-block;
    margin: 0 1% 15px 0;
    vertical-align: top;
    width: 48%;
}

.fila3 {
    display: inline-block;
    margin: 0 1% 15px 0;
    vertical-align: top;
    width: 32%;
}

.fila40 {
    display: inline-block;
    margin: 0 1% 15px 0;
    vertical-align: top;
    width: 39%;
}

.fila80 {
    display: inline-block;
    margin: 0 1% 15px 0;
    vertical-align: top;
    width: 79%;
}

/*
 * Reusable: File upload (Drag & Drop) component
 * Classes also target legacy module classes to ensure backward compatibility
 */
.file-upload
{
    margin-bottom: 15px;
}

.file-upload .file-upload-input{
    visibility: hidden;
}

.file-dropzone,
.adicionar-multiple-dropzone {
	border: 2px dashed var(--border-color);
	border-radius: 12px;
	padding: 24px;
	background: linear-gradient(to right, var(--bg-light), var(--white));
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.file-dropzone:hover,
.file-dropzone.is-dragover,
.file-dropzone:focus,
.adicionar-multiple-dropzone:hover,
.adicionar-multiple-dropzone.is-dragover,
.adicionar-multiple-dropzone:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px var(--primary-lighter);
	outline: none;
}

.file-dropzone.has-file,
.adicionar-multiple-dropzone.has-file {
	border-color: var(--accent-success);
	background: linear-gradient(to right, rgba(92, 184, 92, 0.05), var(--white));
}

.file-dropzone-icon,
.adicionar-multiple-dropzone-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-lighter);
	color: var(--primary-dark);
	box-shadow: var(--shadow-sm);
	flex: 0 0 auto;
}

.file-dropzone-icon .fa,
.adicionar-multiple-dropzone-icon .fa {
	font-size: 20px;
}

.file-dropzone-text,
.adicionar-multiple-dropzone-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.file-dropzone-text strong,
.adicionar-multiple-dropzone-text strong {
	color: var(--text-dark);
}

.file-dropzone-text span,
.adicionar-multiple-dropzone-text span {
	color: var(--text-muted);
	font-size: 14px;
}

.file-dropzone-text small,
.adicionar-multiple-dropzone-text small {
	color: var(--text-muted);
}

.file-selected-name,
.adicionar-multiple-file-name {
	margin-top: 6px;
	font-size: 13px;
	color: var(--text-dark);
}

.file-preview .table-safetya-container,
.adicionar-multiple-preview .table-safetya-container {
	max-height: 280px;
	overflow: auto;
}

.filtros-ciclo
{
    position: relative;
}

.filtros-ciclo-label
{
    position: absolute;
    top: -25px;
}

.filtros-normal{
    display: flex; 
    flex: 1 1 0; 
    align-items: 
    center; gap: 10px;
}

.filtros-normal-label{
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: 18px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.flex {
    display: flex;
}

.flex.search .fila {
    margin-right: 20px;
}

.flex.search .fila.thecheck {
    margin-top: 30px;
}

.form-control {
    display: initial;
}

.form-group-date {
    position: relative;
}

.form-group-date input[type="text"] {
    padding-right: 45px;
}

.gestion .nombre {
    font-size: 14px;
}

.green {
    color: green;
}

.icheckbox_line-aero, .iradio_line-aero {
    margin: 0 0 5px 0;
}

.icheckbox_line-green, .iradio_line-green {
    border-radius: 15px;
    margin: 0 0 5px 0;
    padding: 15px 15px 15px 38px;
}

.inactive {
    color: #808080;
    font-style: italic;
}

.informe {
    margin-bottom: 100px;
}

.informe .empty {
    display: none;
}

.informe .normal {
    background: white;
}

.informe .normal.par {
    background: var(--gris-claro);
}

.informe .title {
    text-align: center;
    text-transform: uppercase;
}

.informe .trash {
    font-style: italic;
}

.inside {
    background: white;
    padding: 20px 1%;
}

.iradio_line-aero .error {
    position: absolute;
    right: 0;
    top: 50px;
}

.ladescripcion {
    font-size: 14px;
}

.linksprint {
    color: black;
    font-size: 10px;
    font-style: italic;
    text-align: right;
}

.linksprint a {
    color: black;
}

.matriz-buscar-container .glyphicon-new-window:before {
    color: white;
}

.matrizfila.impar {
    background: var(--gris-claro);
}

.matrizfila.par {
    background: none;
}

.mensajes {
    background: #900;
    border-radius: 10px;
    color: white;
    display: inline-block;
    padding: 5px 10px;
}

.mimenu .icon {
    display: none;
}

.mini {
    display: block;
    font-size: 13px;
    font-weight: bold;
}

.mod-user {
    align-items: flex-start;
    justify-content: flex-start;
}

.mod-user .page {
    margin-right: 5em;
}

.module-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--padding-header) 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

.module-header h1 {
    margin: 0 0 10px 0;
    font-size: var(--size-h1);
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-header h1 .module-header-icon {
    font-size: 36px;
    margin-right: 10px;
}

.module-header p {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.mybutton {
    background: var(--color-mostaza);
    border-radius: 15px;
    border: 1px solid var(--border-claro);
    color: white;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.mybutton:hover {
    background: var(--texto-oscuro);
    color: white;
    text-decoration: none;
}

.mycheckbox.nombre {
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: middle;
}

.myhide {
    display: none;
}

.negrilla {
    font-weight: bold;
}

.nivel1 {
    margin-left: 0;
}

.nivel10 {
    margin-left: 18%;
}

.nivel11 {
    margin-left: 20%;
}

.nivel12 {
    margin-left: 22%;
}

.nivel2 {
    margin-left: 2%;
}

.nivel3 {
    margin-left: 4%;
}

.nivel4 {
    margin-left: 6%;
}

.nivel5 {
    margin-left: 8%;
}

.nivel6 {
    margin-left: 10%;
}

.nivel7 {
    margin-left: 12%;
}

.nivel8 {
    margin-left: 14%;
}

.nivel9 {
    margin-left: 16%;
}

.nombre {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.oculto {
    display: none;
}

.padding10 {
    padding: 10px;
}

.page-link,
.pagination>li>a, 
.pagination>li>span,
.page-link:hover,
.pagination>li>a:focus, .pagination>li>a:hover, .pagination>li>span:focus, .pagination>li>span:hover {
    color: var(--color-secundario);
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover,
.page-item.active .page-link {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
}

.pagination-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.red {
    color: red;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.reques a {
    float: right;
    margin-top: 20px;
}

.right {
    text-align: right;
}

.selectables {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.selectables li {
    background: var(--gris-claro);
    border-radius: 10px;
    color: black;
    display: inline-block;
    font-size: 12px;
    margin: 0 10px 10px 0;
    padding: 10px 20px;
    vertical-align: top;
}

.selectables li.ui-selected {
    background: green;
    color: white;
}

.separador {
    padding: 50px 0;
}

.show#tareas-masivas-opciones {
    display: block;
}

.slideThree {
    background: var(--color-claro-1);
    border-radius: 50px;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px var(--color-6);
    height: 26px;
    margin: 0 0 10px 0;
    position: relative;
    width: 80px;
}

.slideThree input[type=checkbox] {
    visibility: hidden;
}

.slideThree input[type=checkbox]:checked + label {
    left: 43px;
}

.slideThree label {
    -webkit-transition: all 0.4s ease;
    background: -webkit-linear-gradient(top, var(--color-claro-4) 0%, var(--color-claro-10) 40%, #b3bead 100%);
    background: linear-gradient(to bottom, var(--color-claro-4) 0%, var(--color-claro-10) 40%, #b3bead 100%);
    background: var(--color-claro-4);
    border-radius: 50px;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: block;
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: all 0.4s ease;
    width: 34px;
    z-index: 1;
}

.slideThree:after {
    color: var(--texto-oscuro-9);
    content: 'NO';
    font-weight: bold;
    font: 12px/26px Arial, sans-serif;
    position: absolute;
    right: 10px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.slideThree:before {
    color: green;
    content: 'SI';
    font-weight: bold;
    font: 12px/26px Arial, sans-serif;
    left: 10px;
    position: absolute;
    z-index: 0;
}

.submit-wrapper {
    display: flex; 
    gap: 16px; 
    justify-content: center;
    margin-top: 28px;
    text-align: center;
    padding-top: 18px;
}

/* === Tablas globales SafetYA === */
.table-safetya-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: auto;
    margin-bottom: 20px;
}
.table-safetya {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--white);
}
.table-safetya thead {
    background: var(--primary-lighter);
    position: sticky;
    top: 0;
    z-index: 5;
}
.table-safetya thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.table-safetya thead th:first-child {
    text-align: center;
}
.table-safetya tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}
.table-safetya tbody tr:hover {
    background: var(--bg-light);
}
.table-safetya tbody td {
    padding: 15px;
    color: var(--text-dark);
}
.table-safetya tbody tr.selected {
    background: rgba(152, 176, 81, 0.1);
}
.table-safetya td input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--primary-color);
}
.table-safetya-label {
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.table-safetya-label:hover {
    color: var(--primary-color);
}

/* === Tabs globales reutilizables === */
.module-tabs,
.personas-tabs {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.tab-container {
    display: flex;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.tab-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    text-align: center;
}

.tab-link:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.tab-link.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.tab-link.active:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.tdcopy {
    position: relative;
}

.tdcopy .novisible {
    display: none;
    position: absolute;
    right: 0;
    top: 8px;
}

.terminos {
    float: left;
    width: 60%;
}

.third {
    display: inline-block;
    vertical-align: top;
    width: 25%;
}

.third .caja {
    padding-bottom:  20px;
}

.third .caja .subcaja {
    padding-left: 5%;
}

.third .caja .subcaja label {
    font-weight: 400;
    max-width: 90%;
    vertical-align: middle;
}

.third .caja .subcaja label.dominio {
    font-style: italic;
    font-weight: bold;
}

.third .caja a {
    color: black;
    text-decoration: underline;
}

.third .caja input {
    height: 20px;
    width: 20px;
}

.third .mensaje {
    color: red;
    padding-bottom: 15px;
}

.third .micaja {
    background: #eaeaea;
    border-radius: 10px;
    border: 1px solid var(--gris-claro);
    margin-bottom: 20px;
    padding: 3%;
}

.third h3 {
    padding: 0 0 20px 0;
    text-align: center;
}

/* Toolbar de Acciones */
.toolbar-botones {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.toolbar-botones-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-botones-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Contador de Contratos */
.toolbar-botones-counter {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-botones-counter::before {
    content: "📊";
    font-size: 18px;
}

.twothird {
    display: inline-block;
    vertical-align: top;
    width: 74%;
}

.ui-datepicker {
    animation: datepickerSlideIn 0.3s ease-out;
    background: var(--blanco);
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 0;
    width: 320px;
}

.ui-datepicker-buttonpane {
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 15px;
}

.ui-datepicker-buttonpane button {
    background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-oscuro) 100%);
    border-radius: 8px;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.ui-datepicker-buttonpane button.ui-datepicker-current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.ui-datepicker-buttonpane button.ui-datepicker-current:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ui-datepicker-buttonpane button:hover {
    background: linear-gradient(135deg, var(--color-primario-oscuro) 0%, #6a7d35 100%);
    box-shadow: 0 4px 12px rgba(152, 176, 81, 0.3);
    transform: translateY(-2px);
}

.ui-datepicker-calendar {
    border-collapse: separate;
    border-spacing: 4px;
    padding: 15px;
    width: 100%;
}

.ui-datepicker-calendar tbody td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker-calendar tbody td a,
.ui-datepicker-calendar tbody td span {
    align-items: center;
    background: transparent;
    border-radius: 50%;
    border: none;
    color: var(--texto-oscuro);
    display: flex;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 36px;
}

.ui-datepicker-calendar tbody td a:hover {
    background: rgba(152, 176, 81, 0.15);
    transform: scale(1.1);
}

.ui-datepicker-calendar thead th {
    color: var(--color-primario);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    text-transform: uppercase;
}

.ui-datepicker-current-day a,
.ui-datepicker-calendar tbody td a.ui-state-active {
    background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-oscuro) 100%);
    box-shadow: 0 2px 8px rgba(152, 176, 81, 0.4);
    color: var(--blanco);
    font-weight: 600;
    transform: scale(1.1);
}

.ui-datepicker-header {
    align-items: center;
    background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-oscuro) 100%);
    border-radius: 12px 12px 0 0;
    border: none;
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.ui-datepicker-month option,
.ui-datepicker-year option {
    background: var(--blanco);
    color: var(--texto-oscuro);
}

.ui-datepicker-month,
.ui-datepicker-year {
    background: var(--color-6);
    border-radius: 6px;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    padding: 5px 8px;
}

.ui-datepicker-next {
    right: auto;
}

.ui-datepicker-next::before {
    color: white;
    content: '›';
}

.ui-datepicker-other-month {
    opacity: 0.4;
}

.ui-datepicker-other-month a {
    color: var(--gris-claro-7);
}

.ui-datepicker-prev {
    left: auto;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    align-items: center;
    background: var(--color-6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    height: 32px;
    justify-content: center;
    margin: 0;
    position: relative;
    top: auto;
    transition: all 0.3s ease;
    width: 32px;
}

.ui-datepicker-prev::before {
    color: white;
    content: '‹';
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ui-datepicker-title {
    align-items: center;
    display: flex;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
}

.ui-datepicker-today a {
    background: rgba(152, 176, 81, 0.1);
    border: 2px solid rgba(152, 176, 81, 0.3);
    font-weight: 600;
}

.ui-datepicker-unselectable span {
    color: var(--color-claro-1);
    cursor: not-allowed;
}

/* Lista de items sortables */
.ui-sortable {
    background: var(--bg-light);
    list-style-type: none;
    margin: 0;
    min-height: 400px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

/* Scrollbar personalizado para las listas */
.ui-sortable::-webkit-scrollbar {
    width: 8px;
}

.ui-sortable::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.ui-sortable::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ui-sortable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Items individuales en la lista */
.ui-sortable .ui-state-default {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: move;
    padding: 5px 18px;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    min-height: 60px;
}

.ui-sortable .ui-state-default:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ui-sortable .ui-state-default:active {
    cursor: grabbing;
}

/* Texto del item */
.ui-sortable .ui-state-default span {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    padding-right: 10px;
}

/* Botón de acción en el item */
.ui-sortable .ui-state-default a {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ui-sortable .ui-state-default a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.ui-sortable .ui-state-default a:active {
    transform: scale(0.95);
}

/* Icono de agregar (columna derecha) */
.ui-sortable .ui-state-default a.add-icon:hover {
    background: rgba(40, 167, 69, 0.7);
    color: var(--success-color);
}

.ui-sortable .ui-state-default a.remove-icon:hover {
    background: rgba(220, 53, 69, 0.7);
    color: var(--success-color);
}

/* Placeholder cuando se arrastra */
.ui-sortable .ui-state-default.ui-sortable-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    visibility: visible !important;
    height: 56px;
}

.ui-sortable .ui-state-default.ui-sortable-helper {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
    opacity: 0.9;
}

.usuarios#filtros select {
    width: 300px;
}

.vars {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

.vars .link {
    background: var(--color-primario);
    border-radius: 50%;
    color: white;
    float: right;
    margin-top: 30px;
}

.versions {
    height: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dateSelected {
  50% {
      background-color: rgba(152, 176, 81, 0.2);
  }
  100% {
      background-color: transparent;
  }
  0% {
      background-color: transparent;
  }
}
@keyframes datepickerSlideIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
}

/* Estados vacíos */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

.alert-dismissable .close, .alert-dismissible .close{
    top: -12px;
}

@media print {
  .no-print {
    display: none !important;
  }
}
