@import url("variables.css");
body {
    font-family: Arial, sans-serif;
    background: #fff;
    
}
button{
    background-color:var(--azul-principal) ;
    border-color: var(--azul-hover);
    border-radius: 3px;
    color: #fff;
}

.container {
    width: 95%;
    margin: auto;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.acciones button,
.acciones select {
    margin-left: 10px;
    padding: 5px 10px;
}

/* FILTROS */
.filtros {
    margin-bottom: 10px;
}
/* ===============================
   TABLA - HEADER FIJO
================================ */
/* ===============================
   TABLA - HEADER FIJO
================================ */
.table-container {
    max-height: 500px; /* ajusta según necesites */
    overflow-y: auto;
    border-radius: 5px;
    /* borde exterior rojo opcional */
    border: 2px solid #881f1f; 
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

/* Encabezado fijo y visible */
thead {
    background-color: var(--rojo-principal); 
    color: #ffffff;
    font-size: 12px;
}

thead th {
    position: sticky;
    top: 0; /* se pega arriba */
    z-index: 3; /* asegurar que quede sobre las filas */
    background-color: var(--rojo-principal); /* respeta tu rojo */
    color: #ffffff; /* letras blancas */
    font-weight: bold;
    border: 1px solid #881f1f; /* borde rojo de cada celda */
    padding: 8px;
    text-align: center;
}

/* Celdas normales */
th, td {
    border: 1px solid #881f1f; /* borde rojo de cada celda */
    padding: 5px;
    text-align: center;
}


/* FOOTER */
.footer {
    margin-top: 10px;
    text-align: right;
}

.btn-total {
    padding: 5px 15px;
}


/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 350px;
    border-radius: 5px;
}

/* Fila de encabezado de semana */
.fila-semana {
    background-color: #f0f0f0;
    font-weight: bold;
    cursor: pointer;
}

.fila-semana:hover {
    background-color: #e0e0e0;
}

/* Flecha de despliegue */
.fila-semana .flecha {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

/* Filas de vales por semana inicialmente ocultas */
[class^="vales-"] {
    display: none;
}

/* Opcional: resaltar fila al pasar el mouse */
[class^="vales-"]:hover {
    background-color: #f9f9f9;
}

.titulo-toggle {
    cursor: pointer;
    user-select: none;
    margin-top: 15px;
}

.titulo-toggle .flecha {
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease;
}


/* ===============================
   BOTONES MODAL APROBAR / RECHAZAR
================================ */

.acciones-modal {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* base */
.btn-accion {
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 18px;              /* 🔥 icono grande */
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* APROBAR */
.btn-aprobar {
    background-color: #d4edda;
    color: #198754;               /* verde Bootstrap */
}

.btn-aprobar:hover {
    background-color: #198754;
    color: #fff;
    transform: scale(1.15);
}

/* RECHAZAR */
.btn-rechazar {
    background-color: #f8d7da;
    color: #dc3545;               /* rojo Bootstrap */
}

.btn-rechazar:hover {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.15);
}

/* efecto click */
.btn-accion:active {
    transform: scale(1.05);
}


/* ===============================
   MODAL AUTORIZAR VALES (ESPECÍFICO)
================================ */

/* overlay (hereda .modal pero agrega respiro) */
.modal-autorizar {
    padding: 40px 20px;          /* 🔥 separación arriba y abajo */
    box-sizing: border-box;
}

/* caja del modal */
.modal-autorizar-content {
    width: 500px;                /* más ancho */
    max-height: 75vh;            /* 🔥 NO se pega arriba/abajo */
    overflow-y: auto;            /* scroll interno */
    border-radius: 10px;
    box-sizing: border-box;
}

/* ===============================
   HEADER MODAL AUTORIZAR
================================ */
/* ===============================
   MODAL AUTORIZAR AVANZADO
================================ */

/* overlay con respiro */
.modal-autorizar {
    padding: 40px 20px;
    box-sizing: border-box;
}

/* modal content debe ser referencia */
.modal-autorizar-content {
    position: relative;   /* 🔥 CLAVE */
    width: 500px;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 10px;
}

/* X fuera pero pegada */
.modal-close-float {
    position: absolute;
    top: -5px;           /* 👈 fuera */
    right: -5px;         /* 👈 fuera */
    width: 32px;
    height: 32px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    transition: transform .2s ease, background .2s ease;
}

.modal-close-float:hover {
    background: #b02a37;
    transform: scale(1.15);
}


/* ===============================
   BOTÓN NOTIFICACIONES
================================ */

.btn-notificaciones {
    background: transparent !important;   /* 🔥 rompe azul */
    border: none !important;
    color: #333;

    position: relative;
    font-size: 20px;
    cursor: pointer;
}

/* icono campana */
.btn-notificaciones i {
    font-size: 30px;
}

/* hover */
.btn-notificaciones:hover {
    color: #dc3545; /* rojo elegante */
}

/* badge contador */
.btn-notificaciones .badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}


/* ===============================
   EXPORTAR DATOS
================================ */

.dropdown-exportar {
    position: relative;
    display: inline-block;
}

#btnExportar {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* menú */
.menu-exportar {
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.menu-exportar button {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: left;
    color: #333;
    cursor: pointer;
}

.menu-exportar button:hover {
    background: #f2f2f2;
}

.menu-exportar hr {
    margin: 6px 0;
    border: none;
    border-top: 1px solid #ddd;
}
