body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.login-container {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ============================================
   OPCIONES DE POSICIONAMIENTO DEL LOGO
   Descomenta la opción que quieras probar y comenta las demás
   ============================================ */

/* OPCIÓN 1: Logo arriba del contenedor, centrado, tamaño mediano */
/*.login-logo {
    max-width: 250px;
    height: auto;
    margin: 20px auto 30px auto;
    display: block;
}
*/

/* OPCIÓN 12: Logo arriba grande con poco espacio (APLICADA) */
.login-logo {
    max-width: 520px;
    height: auto;
    margin: 30px auto 10px auto;
    display: block;
}


/* OPCIÓN 3: Logo en la parte superior de la página, centrado, grande */
/*
.login-logo {
    max-width: 350px;
    height: auto;
    margin: 40px auto 20px auto;
    display: block;
    position: relative;
}
*/

/* OPCIÓN 4: Logo arriba pero más pequeño y compacto */
/*
.login-logo {
    max-width: 200px;
    height: auto;
    margin: 15px auto 20px auto;
    display: block;
}
*/

/* OPCIÓN 5: Logo con más separación superior, tamaño grande */
/*
.login-logo {
    max-width: 300px;
    height: auto;
    margin: 60px auto 30px auto;
    display: block;
}
*/

/* OPCIÓN 6: Logo muy arriba, tamaño extra grande */
/*
.login-logo {
    max-width: 400px;
    height: auto;
    margin: 50px auto 40px auto;
    display: block;
}
*/

.dashboard {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

h1, h2 {
    font-weight: 700;
    color: #2e7d32;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #43a047;
    outline: none;
}

button, .search-btn, .pdf-search-btn {
    background: linear-gradient(90deg, #43a047 0%, #388e3c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}

button:hover, .search-btn:hover, .pdf-search-btn:hover {
    background: linear-gradient(90deg, #388e3c 0%, #43a047 100%);
    box-shadow: 0 4px 16px rgba(67,160,71,0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.pdf-viewer {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

.pdf-container {
    width: 100%;
    height: 650px;
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.canvas-container {
    display: none;
}

.signature-container {
    background-color: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 10px;
    text-align: center;
}

.signature-preview {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
    max-width: 100%;
    max-height: 120px;
    display: block;
    margin: 0 auto;
}

.signature-input {
    display: none;
}

.signature-buttons {
    margin-top: 10px;
}

.signature-placeholder {
    background: #e0e0e0;
    color: #888;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.signature-placeholder:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.hidden {
    display: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    font-weight: bold;
}

.logout-btn {
    background-color: #f44336;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.tab-buttons {
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.pdf-section {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: #f5f5f5;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.toggle-btn {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: #e9e9e9;
}

.toggle-btn.expanded {
    background-color: #e9e9e9;
}

.pdf-content {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    background-color: white;
}

.pdf-thumbnail, .pdf-item {
    background: #f1f8e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(67,160,71,0.05);
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-thumbnail:hover, .pdf-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(67,160,71,0.12);
}

.pdf-thumbnail img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
}

.pdf-thumbnail div {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.pdf-search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pdf-search-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pdf-search-btn:hover {
    background-color: #45a049;
}

.comparison-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.comparison-container > div {
    flex: 1;
    min-width: 300px;
}

#excel-row-viewer {
    min-height: 350px;
    max-height: 650px;
    overflow-y: auto;
}

.validation-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.validation-btn:hover {
    background-color: #45a049;
}

.estado-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 10px;
}

.estado-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.estado-select option {
    padding: 8px;
}

.estado-select option[value="SIN REVISION"] {
    background-color: #ffebee;
}

.estado-select option[value="PENDIENTE"] {
    background-color: #fff3e0;
}

.estado-select option[value="REVISADO"] {
    background-color: #e8f5e9;
}

.estado-select option[value="REVISADO ANALISTA"] {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.estado-select option[value="RECHAZADO"] {
    background-color: #ffebee;
    color: #c62828;
}

.estado-select option[value="AUTORIZADO"] {
    background-color: #e3f2fd;
}

.user-status {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #e8f5e9;
    color: #2e7d32;
    margin-left: 10px;
    font-size: 0.9em;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-online {
    background-color: #4caf50;
}

.status-offline {
    background-color: #f44336;
}

.real-time-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.editing-indicator {
    font-style: italic;
    color: #666;
    margin-left: 10px;
}

.confirmador-layout {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 25px;
    padding: 20px;
    height: calc(100vh - 100px);
}

.empleados-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.empleado-card {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.empleado-card:hover {
    background-color: #f5f5f5;
}

.empleado-card.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.empleado-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.estado-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.documentos-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
    overflow-y: auto;
}

.pdf-viewer {
    display: none;
    width: 100%;
    height: 650px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin: 0 auto;
    padding: 15px;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.firma-section {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.firma-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.firma-btn:hover {
    background-color: #45a049;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #45a049;
}

.empleado-card {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.empleado-card.sin-revision {
    background-color: #ffebee;
}

.empleado-card.pendiente {
    background-color: #fff3e0;
}

.empleado-card.revisado {
    background-color: #e8f5e9;
}

.empleado-card.revisado-analista {
    background-color: #c8e6c9;
    border-left: 4px solid #66bb6a;
}

.empleado-card.autorizado {
    background-color: #e3f2fd;
}

.firma-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.firma-btn {
    width: auto;
    min-width: 180px;
}

.confirmador-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
}

.empleado-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.empleado-details.active {
    display: block;
}

.empleado-info {
    margin-bottom: 20px;
}

.empleado-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.info-item {
    margin-bottom: 15px;
    min-width: 0; /* Permite que el contenido se ajuste */
}

.info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    display: block;
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: 22px;
    line-height: 1.5;
    color: #212529;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.info-item span:hover {
    background: #e9ecef;
}

.pdf-section {
    margin-top: 20px;
}

.pdf-search {
    margin-bottom: 15px;
}

.pdf-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.pdf-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.pdf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pdf-icon {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 5px;
}

.pdf-name {
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

.search-container {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#no-docs-message {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.firma-section {
    margin-top: 30px;
}

.signature-container {
    width: 300px;
    height: 150px;
    border: 1px solid #ddd;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.signature-preview {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.approve-all-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.approve-all-btn:hover {
    background-color: #45a049;
}

.estado-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    color: #666;
}

.header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #666;
    margin-bottom: 15px;
}

.empleados-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empleado-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.empleado-card .empleado-nombre {
    font-weight: bold;
    margin-bottom: 5px;
}

.empleado-card .empleado-estado {
    font-size: 0.9em;
    color: #666;
}

.empleado-card.sin-revision {
    border-left: 4px solid #ff5252;
}

.empleado-card.pendiente {
    border-left: 4px solid #ffd740;
}

.empleado-card.revisado {
    border-left: 4px solid #4caf50;
}

.empleado-card.autorizado {
    border-left: 4px solid #2196f3;
}

.empleado-card.rechazado {
    border-left: 4px solid #f44336;
}

.pdf-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pdf-viewer-content {
    background: white;
    width: 90%;
    height: 90%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.pdf-viewer-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.pdf-container {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.firma-section {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.firma-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.firma-btn:hover {
    background: #45a049;
}

.signature-preview-container {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

select.form-control {
    background-color: #fff;
    cursor: pointer;
}

select.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.form-group {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

select[data-estado] option[value="SIN REVISION"] {
    background-color: #ffebee;
}

select[data-estado] option[value="PENDIENTE"] {
    background-color: #fff3e0;
}

select[data-estado] option[value="REVISADO"] {
    background-color: #e8f5e9;
}

select[data-estado] option[value="REVISADO ANALISTA"] {
    background-color: #c8e6c9;
    color: #1b5e20;
}

select[data-estado] option[value="AUTORIZADO"] {
    background-color: #e3f2fd;
}

.empleado-card {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.empleado-nombre {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.empleado-info {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.empleado-estado {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.sin-revision .empleado-estado {
    background-color: #ffebee;
    color: #c62828;
}

.pendiente .empleado-estado {
    background-color: #fff3e0;
    color: #ef6c00;
}

.revisado .empleado-estado {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.revisado-analista .empleado-estado {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.rechazado .empleado-estado {
    background-color: #ffebee;
    color: #c62828;
}

.autorizado .empleado-estado {
    background-color: #e3f2fd;
    color: #1565c0;
}

.rechazado .empleado-estado {
    background-color: #ffebee;
    color: #c62828;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    background: #fafafa;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.login-container {
    max-width: 400px;
    margin: 10px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo {
    max-width: 340px;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}

.dashboard {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

h1, h2 {
    font-weight: 700;
    color: #2e7d32;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #43a047;
    outline: none;
}

button, .search-btn, .pdf-search-btn {
    background: linear-gradient(90deg, #43a047 0%, #388e3c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}

button:hover, .search-btn:hover, .pdf-search-btn:hover {
    background: linear-gradient(90deg, #388e3c 0%, #43a047 100%);
    box-shadow: 0 4px 16px rgba(67,160,71,0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.pdf-viewer {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

.pdf-container {
    width: 100%;
    height: 650px;
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.canvas-container {
    display: none;
}

.signature-container {
    background-color: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 10px;
    text-align: center;
}

.signature-preview {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
    max-width: 100%;
    max-height: 120px;
    display: block;
    margin: 0 auto;
}

.signature-input {
    display: none;
}

.signature-buttons {
    margin-top: 10px;
}

.signature-placeholder {
    background: #e0e0e0;
    color: #888;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.signature-placeholder:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.hidden {
    display: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    font-weight: bold;
}

.logout-btn {
    background-color: #f44336;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.tab-buttons {
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.pdf-section {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: #f5f5f5;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.toggle-btn {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: #e9e9e9;
}

.toggle-btn.expanded {
    background-color: #e9e9e9;
}

.pdf-content {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    background-color: white;
}

.pdf-thumbnail, .pdf-item {
    background: #f1f8e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(67,160,71,0.05);
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-thumbnail:hover, .pdf-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(67,160,71,0.12);
}

.pdf-thumbnail img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
}

.pdf-thumbnail div {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.pdf-search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pdf-search-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pdf-search-btn:hover {
    background-color: #45a049;
}

.comparison-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.comparison-container > div {
    flex: 1;
    min-width: 300px;
}

#excel-row-viewer {
    min-height: 350px;
    max-height: 650px;
    overflow-y: auto;
}

.validation-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.validation-btn:hover {
    background-color: #45a049;
}

.estado-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 10px;
}

.estado-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.estado-select option {
    padding: 8px;
}

.estado-select option[value="SIN REVISION"] {
    background-color: #ffebee;
}

.estado-select option[value="PENDIENTE"] {
    background-color: #fff3e0;
}

.estado-select option[value="REVISADO"] {
    background-color: #e8f5e9;
}

.estado-select option[value="REVISADO ANALISTA"] {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.estado-select option[value="RECHAZADO"] {
    background-color: #ffebee;
    color: #c62828;
}

.estado-select option[value="AUTORIZADO"] {
    background-color: #e3f2fd;
}

.user-status {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #e8f5e9;
    color: #2e7d32;
    margin-left: 10px;
    font-size: 0.9em;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-online {
    background-color: #4caf50;
}

.status-offline {
    background-color: #f44336;
}

.real-time-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.editing-indicator {
    font-style: italic;
    color: #666;
    margin-left: 10px;
}

.confirmador-layout {
    display: grid;
    grid-template-columns: 300px 1fr 400px;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 100px);
}

.empleados-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.empleado-card {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.empleado-card:hover {
    background-color: #f5f5f5;
}

.empleado-card.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.empleado-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.estado-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.documentos-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
    overflow-y: auto;
}

.pdf-viewer {
    display: none;
    width: 100%;
    height: 650px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin: 0 auto;
    padding: 15px;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.firma-section {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.firma-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.firma-btn:hover {
    background-color: #45a049;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #45a049;
}

.empleado-card {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.empleado-card.sin-revision {
    background-color: #ffebee;
}

.empleado-card.pendiente {
    background-color: #fff3e0;
}

.empleado-card.revisado {
    background-color: #e8f5e9;
}

.empleado-card.revisado-analista {
    background-color: #c8e6c9;
    border-left: 4px solid #66bb6a;
}

.empleado-card.autorizado {
    background-color: #e3f2fd;
}

.firma-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.firma-btn {
    width: auto;
    min-width: 180px;
}

.confirmador-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
}

.empleado-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.empleado-details.active {
    display: block;
}

.empleado-info {
    margin-bottom: 20px;
}

.empleado-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    margin-bottom: 10px;
}

.info-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.info-item span {
    display: block;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.pdf-section {
    margin-top: 20px;
}

.pdf-search {
    margin-bottom: 15px;
}

.pdf-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.pdf-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.pdf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pdf-icon {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 5px;
}

.pdf-name {
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

.search-container {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#no-docs-message {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.firma-section {
    margin-top: 30px;
}

.signature-container {
    width: 300px;
    height: 150px;
    border: 1px solid #ddd;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.signature-preview {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.approve-all-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.approve-all-btn:hover {
    background-color: #45a049;
}

.estado-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    color: #666;
}

.header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #666;
    margin-bottom: 15px;
}

.empleados-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empleado-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.empleado-card .empleado-nombre {
    font-weight: bold;
    margin-bottom: 5px;
}

.empleado-card .empleado-estado {
    font-size: 0.9em;
    color: #666;
}

.empleado-card.sin-revision {
    border-left: 4px solid #ff5252;
}

.empleado-card.pendiente {
    border-left: 4px solid #ffd740;
}

.empleado-card.revisado {
    border-left: 4px solid #4caf50;
}

.empleado-card.autorizado {
    border-left: 4px solid #2196f3;
}

.empleado-card.rechazado {
    border-left: 4px solid #f44336;
}

.pdf-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pdf-viewer-content {
    background: white;
    width: 90%;
    height: 90%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.pdf-viewer-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.pdf-container {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.firma-section {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.firma-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.firma-btn:hover {
    background: #45a049;
}

.signature-preview-container {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

select.form-control {
    background-color: #fff;
    cursor: pointer;
}

select.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.form-group {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

select[data-estado] option[value="SIN REVISION"] {
    background-color: #ffebee;
}

select[data-estado] option[value="PENDIENTE"] {
    background-color: #fff3e0;
}

select[data-estado] option[value="REVISADO"] {
    background-color: #e8f5e9;
}

select[data-estado] option[value="REVISADO ANALISTA"] {
    background-color: #c8e6c9;
    color: #1b5e20;
}

select[data-estado] option[value="AUTORIZADO"] {
    background-color: #e3f2fd;
}

.empleado-card {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.empleado-nombre {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.empleado-info {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.empleado-estado {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.sin-revision .empleado-estado {
    background-color: #ffebee;
    color: #c62828;
}

.pendiente .empleado-estado {
    background-color: #fff3e0;
    color: #ef6c00;
}

.revisado .empleado-estado {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.revisado-analista .empleado-estado {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.rechazado .empleado-estado {
    background-color: #ffebee;
    color: #c62828;
}

.autorizado .empleado-estado {
    background-color: #e3f2fd;
    color: #1565c0;
}
#modal-cambio-contrasena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
}

#modal-cambio-contrasena .modal-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Estilos para el selector de paneles del administrador */
.header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.panel-selector:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

.panel-selector:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#admin-navigation {
    display: none;
}

/* Mejoras de espaciado y organización */
.comparison-container {
    padding: 20px 0;
}

.filters-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

/* Estilos para el panel de gestión del servidor */
.pdf-management-panel {
    transition: all 0.3s ease;
}

.server-panel-toggle {
    transition: all 0.3s ease;
}

.server-panel-toggle:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.server-panel-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

#server-pdfs-container {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Mejoras para items de PDF del servidor */
.server-pdf-item {
    transition: all 0.2s ease;
}

.server-pdf-item:hover {
    background-color: #f5f5f5 !important;
    transform: translateX(3px);
}

/* Espaciado mejorado entre secciones */
.form-group {
    margin-bottom: 20px;
}

#excel-data {
    padding-top: 10px;
}

.pdf-section {
    margin-top: 25px;
}

/* Mejora visual de botones dentro del panel */
.pdf-management-panel button.btn {
    transition: all 0.2s ease;
    font-size: 13px;
}

.pdf-management-panel button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Separadores visuales */
.pdf-management-panel::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin-bottom: 20px;
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .filters-container > div:first-child {
        grid-template-columns: 1fr !important;
    }
}

/* Mejoras específicas para directora.html */
.empleados-section {
    position: relative;
}

.empleados-section h2 {
    color: #2e7d32;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.empleados-list {
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.empleado-details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.empleado-info h3,
.pdf-section h3,
.firma-section h3 {
    color: #555;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Mejorar botones en directora */
.download-btn {
    transition: all 0.2s ease;
    font-weight: 600;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
    background: #45a049 !important;
}

/* Espaciado entre secciones principales */
.confirmador-content > div {
    gap: 20px;
}

/* Mejorar la apariencia de los mensajes sin docs */
#no-docs-message {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ffa726;
    font-weight: 500;
}

/* Mejorar grid de información */
.info-grid {
    gap: 12px;
}

/* Separador visual entre secciones */
.pdf-section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin-bottom: 20px;
}

.firma-section {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

/* Estilos para PDFs clickeables (con checkbox) */
.pdf-item-clickeable {
    cursor: pointer !important;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid transparent !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px !important;
}

.pdf-item-clickeable:hover {
    background-color: #f0f8f0 !important;
    border-color: #4CAF50 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
}

.pdf-item-clickeable:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15) !important;
}

/* Estilo cuando el checkbox está seleccionado */
.pdf-item-clickeable .pdf-checkbox:checked ~ .pdf-icon,
.pdf-item-clickeable:has(.pdf-checkbox:checked) {
    background-color: #e8f5e9 !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

/* Para navegadores que no soportan :has() */
.pdf-item-clickeable.selected {
    background-color: #e8f5e9 !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

.pdf-checkbox-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    pointer-events: auto;
}

.pdf-item-clickeable .pdf-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4CAF50;
    pointer-events: auto;
}

.pdf-item-clickeable .pdf-icon {
    font-size: 48px !important;
    margin-top: 5px;
    margin-bottom: 5px;
}

.pdf-item-clickeable .pdf-name {
    font-size: 12px;
    color: #333;
    word-break: break-word;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

/* =====================================================
   DASHBOARD DE MÉTRICAS
   ===================================================== */

.dashboard-page {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header del Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header h1 i {
    color: #6C63FF;
}

.dashboard-header .subtitle {
    color: #a0a0a0;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #e0e0e0;
}

.role-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.2);
    color: #6C63FF;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-admin { background: rgba(255, 107, 107, 0.2); color: #FF6B6B; }
.role-badge.role-directorarh { background: rgba(78, 205, 196, 0.2); color: #4ECDC4; }
.role-badge.role-rh { background: rgba(69, 183, 209, 0.2); color: #45B7D1; }
.role-badge.role-elaborador { background: rgba(150, 111, 214, 0.2); color: #966FD6; }

.btn-back {
    background: linear-gradient(135deg, #6C63FF, #5a52d5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

/* Sección de Filtros */
.filters-section {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #a0a0a0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.filter-group select:focus {
    border-color: #6C63FF;
}

.filter-group select option {
    background: #1a1a2e;
    color: #fff;
}

.btn-refresh {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-refresh:hover {
    background: rgba(76, 175, 80, 0.3);
}

/* Tarjetas de Métricas */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-total .card-icon { background: linear-gradient(135deg, #6C63FF, #5a52d5); color: #fff; }
.card-success .card-icon { background: linear-gradient(135deg, #4CAF50, #45a049); color: #fff; }
.card-warning .card-icon { background: linear-gradient(135deg, #FF9800, #f57c00); color: #fff; }
.card-danger .card-icon { background: linear-gradient(135deg, #f44336, #d32f2f); color: #fff; }
.card-info .card-icon { background: linear-gradient(135deg, #2196F3, #1976D2); color: #fff; }

.card-content {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.card-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 4px;
}

/* Paneles de Tiempo */
.time-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.time-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-elaborador .panel-header {
    background: linear-gradient(90deg, rgba(150, 111, 214, 0.2), transparent);
}

.panel-rh .panel-header {
    background: linear-gradient(90deg, rgba(69, 183, 209, 0.2), transparent);
}

.panel-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-elaborador .panel-header h3 i { color: #966FD6; }
.panel-rh .panel-header h3 i { color: #45B7D1; }

.time-limit {
    font-size: 0.8rem;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.panel-body {
    padding: 24px;
}

.time-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #808080;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.progress-container {
    margin-bottom: 16px;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.meta-text {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-style: italic;
    display: block;
}

.excedidos-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sección de Gráficas */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-container h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container h3 i {
    color: #6C63FF;
}

/* Sección de Detalle */
.detail-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.detail-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-header h3 i {
    color: #6C63FF;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.search-box i {
    color: #a0a0a0;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    width: 200px;
}

.search-box input::placeholder {
    color: #606060;
}

.table-responsive {
    overflow-x: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th,
.detail-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #a0a0a0;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-table td {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.detail-table tbody tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

.no-data {
    text-align: center;
    color: #606060;
    padding: 40px !important;
}

/* Status badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-autorizado { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.status-revisado-analista { background: rgba(33, 150, 243, 0.2); color: #2196F3; }
.status-revisado { background: rgba(3, 169, 244, 0.2); color: #03A9F4; }
.status-pendiente { background: rgba(255, 152, 0, 0.2); color: #FF9800; }
.status-rechazado { background: rgba(244, 67, 54, 0.2); color: #f44336; }
.status-sin-revision { background: rgba(158, 158, 158, 0.2); color: #9E9E9E; }

/* Indicadores */
.indicator-success { color: #4CAF50; }
.indicator-warning { color: #FF9800; }
.indicator-danger { color: #f44336; }
.indicator-info { color: #2196F3; }

/* Sección de Indicador de Contrataciones Rechazadas y/o Pendientes */
.indicator-section {
    margin-bottom: 30px;
}

.indicator-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator-header h3 i {
    color: #FF9800;
}

.indicator-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.indicator-body {
    padding: 24px;
}

.indicator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.indicator-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.indicator-label {
    display: block;
    font-size: 0.75rem;
    color: #808080;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.indicator-progress-container {
    margin-top: 20px;
}

.indicator-progress-bar {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.indicator-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 8px;
    position: relative;
}

/* Línea de meta al 5% */
.indicator-progress-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.indicator-status {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

.indicator-status.status-success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.indicator-status.status-danger {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.indicator-status i {
    margin-right: 6px;
}

/* Badge de sede */
.sede-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(108, 99, 255, 0.15);
    color: #8B85FF;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-refresh {
        margin-left: 0;
    }
    
    .time-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-panels,
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
}

/* Botón Dashboard en paneles */
.btn-dashboard {
    background: linear-gradient(135deg, #6C63FF, #5a52d5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 10px 0;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-dashboard i {
    font-size: 1.1rem;
}

/* ============================================
   PANEL DE CONTROL DE TIEMPO
   ============================================ */
.tiempo-control-panel {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.cronometro-tiempo {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.cronometro-tiempo.normal {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 200, 83, 0.4);
}

.cronometro-tiempo.advertencia {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.4);
    animation: pulse-warning 1s ease-in-out infinite;
}

.cronometro-tiempo.excedido {
    background: linear-gradient(135deg, #f44336 0%, #ff5722 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.4);
    animation: pulse-danger 0.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

.btn-tiempo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tiempo i {
    font-size: 0.85rem;
}

.btn-tiempo.btn-iniciar {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.btn-tiempo.btn-iniciar:hover {
    background: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

.btn-tiempo.btn-pausar {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
}

.btn-tiempo.btn-pausar:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-tiempo.btn-reanudar {
    background: linear-gradient(135deg, #2196F3 0%, #42a5f5 100%);
    color: white;
}

.btn-tiempo.btn-reanudar:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #64b5f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-tiempo.btn-finalizar {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
}

.btn-tiempo.btn-finalizar:hover {
    background: linear-gradient(135deg, #e57373 0%, #ef9a9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* ============================================
   LOGO FLOTANTE PARA OTRAS PÁGINAS
   Añade esta clase a un img en cualquier página
   ============================================ */
.floating-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 120px;
    height: auto;
    z-index: 999;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.floating-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Versión más pequeña del logo flotante */
.floating-logo-small {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 80px;
    height: auto;
    z-index: 999;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.floating-logo-small:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Versión más grande del logo flotante */
.floating-logo-large {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 150px;
    height: auto;
    z-index: 999;
    opacity: 0.85;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.floating-logo-large:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}