/* Student Documents Plugin Styles v5 */

/* 
 * IMPORTANTE: Este plugin requiere Font Awesome para los iconos de WhatsApp
 * Asegúrese de que Font Awesome esté cargado en su tema o agregue esta línea al header:
 * <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 */

#cbta256-student-documents-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Sección de búsqueda */
.cbta256-search-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cbta256-search-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.cbta256-search-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

#cbta256-student-search {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#cbta256-student-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cbta256-clear-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.cbta256-clear-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.3);
}

/* Resultados de búsqueda */
#cbta256-search-results {
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cbta256-search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.cbta256-search-result-item:hover {
    background-color: #f8f9fa;
}

.cbta256-search-result-item:last-child {
    border-bottom: none;
}

/* CORRECCIÓN: Cambiar de .result-photo a .cbta256-result-photo */
.cbta256-result-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ddd;
    flex-shrink: 0; /* Evitar que se comprima */
    background-color: #f8f9fa; /* Color de fondo para SVG */
}

/* Mejorar visualización de imágenes placeholder */
.cbta256-student-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: #f8f9fa; /* Color de fondo para SVG */
}

.cbta256-verification-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #155724;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa; /* Color de fondo para SVG */
}

.cbta256-result-info {
    flex-grow: 1;
}

.cbta256-result-info strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.cbta256-result-info small {
    color: #7f8c8d;
    display: block;
    margin-top: 3px;
}

.cbta256-search-alert-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.cbta256-search-alert-badge.cbta256-warning {
    background: #f39c12;
    color: white;
}

.cbta256-search-alert-badge.cbta256-critical {
    background: #e74c3c;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cbta256-no-results {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Detalles del estudiante */
#cbta256-student-details {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cbta256-student-info {
    display: flex;
    padding: 30px;
   background: linear-gradient(135deg, #439975 0%, #01512f 100%);
    color: white;
}

.cbta256-student-photo {
    margin-right: 30px;
}

.cbta256-student-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cbta256-student-data {
    flex-grow: 1;
}

.cbta256-student-data h3 {
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 15px;
}

.cbta256-student-data p {
    margin: 8px 0;
    font-size: 1.1em;
}

.cbta256-student-data a {
    color: #f1c40f;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cbta256-student-data a:hover {
    color: #f39c12;
}

.cbta256-student-data a i.fa-whatsapp {
    font-size: 16px;
}

/* NUEVO: Estilos para campo de celular editable */
#cbta256-student-phone-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 1.1em;
    width: 150px;
    margin-right: 10px;
}

#cbta256-student-phone-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #f1c40f;
    box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.3);
}

#cbta256-student-phone-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Estadísticas del período */
.cbta256-period-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cbta256-period-stats h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
    font-size: 1.2em;
    text-align: center;
}

.cbta256-stats-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cbta256-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cbta256FadeInUp 0.6s ease;
}

.cbta256-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cbta256-stat-item.cbta256-pases {
    border-left: 4px solid #e74c3c;
}

.cbta256-stat-item.cbta256-justificantes {
    border-left: 4px solid #3498db;
}

.cbta256-stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.cbta256-stat-item.cbta256-pases .cbta256-stat-number {
    color: #e74c3c;
}

.cbta256-stat-item.cbta256-justificantes .cbta256-stat-number {
    color: #3498db;
}

.cbta256-stat-label {
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 500;
}

.cbta256-period-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Alertas para estadísticas */
.cbta256-stat-item.cbta256-alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: #f39c12;
    position: relative;
}

.cbta256-stat-item.cbta256-alert-warning::before {
    content: "⚠️";
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.8em;
}

.cbta256-stat-item.cbta256-alert-danger {
    background: linear-gradient(135deg, #f8d7da, #ff7675);
    border-left-color: #e74c3c;
    position: relative;
}

.cbta256-stat-item.cbta256-alert-danger::before {
    content: "🚨";
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.8em;
}

.cbta256-stat-item.cbta256-alert-warning .cbta256-stat-number,
.cbta256-stat-item.cbta256-alert-warning .cbta256-stat-label {
    color: #856404;
}

.cbta256-stat-item.cbta256-alert-danger .cbta256-stat-number,
.cbta256-stat-item.cbta256-alert-danger .cbta256-stat-label {
    color: #721c24;
}

/* Animaciones para estadísticas */
@keyframes cbta256FadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltips para alertas */
.cbta256-stat-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Sección de contactos */
.cbta256-contacts-section {
    padding: 30px;
    background: #f8f9fa;
}

.cbta256-contacts-section h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.cbta256-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.cbta256-contact-item label {
    min-width: 150px;
    font-weight: bold;
    color: #34495e;
}

.cbta256-contact-item input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.cbta256-contact-item input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.cbta256-contact-item a {
    padding: 8px 12px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cbta256-contact-item a:hover {
    background: #128c7e;
}

.cbta256-contact-item a i.fa-whatsapp {
    font-size: 16px;
}

#cbta256-save-contacts {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

#cbta256-save-contacts:hover {
    background: #229954;
}

/* NUEVO: Estilos para modal de confirmación */
.cbta256-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbta256-confirmation-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: cbta256ModalSlideIn 0.3s ease;
}

.cbta256-confirmation-content h4 {
    margin-top: 0;
    color: #e67e22;
    font-size: 1.3em;
}

.cbta256-confirmation-content p {
    margin: 15px 0;
    color: #2c3e50;
    line-height: 1.5;
}

.cbta256-confirmation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.cbta256-confirm-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cbta256-confirm-btn:hover {
    background: #c0392b;
}

.cbta256-cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cbta256-cancel-btn:hover {
    background: #7f8c8d;
}

/* Acciones de documentos */
.cbta256-document-actions {
    padding: 30px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
}

.cbta256-document-name-preview {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: left;
}

.cbta256-document-name-preview small {
    color: #0c5460;
    font-size: 14px;
}

#cbta256-document-name-preview {
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.cbta256-doc-button {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cbta256-pase-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cbta256-pase-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.cbta256-just-btn {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.cbta256-just-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Modal */
#cbta256-document-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbta256-modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: cbta256ModalSlideIn 0.3s ease;
}

.cbta256-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.cbta256-close:hover {
    color: #333;
}

#cbta256-modal-title {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 25px;
}

.cbta256-form-group {
    margin-bottom: 20px;
}

.cbta256-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

/* NUEVO: Estilos para campos obligatorios */
.cbta256-required {
    color: #e74c3c;
    font-weight: bold;
}

.cbta256-form-group select,
.cbta256-form-group textarea,
.cbta256-form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.cbta256-form-group select:focus,
.cbta256-form-group textarea:focus,
.cbta256-form-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Estilos para campos obligatorios que están vacíos */
.cbta256-form-group select:invalid,
.cbta256-form-group textarea:invalid,
.cbta256-form-group input[type="text"]:invalid {
    border-color: #e74c3c;
}

.cbta256-form-group textarea {
    height: 80px;
    resize: vertical;
}

#cbta256-document-form button[type="submit"] {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cbta256-document-form button[type="submit"]:hover {
    background: #229954;
}

#cbta256-document-form button[type="submit"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Contenedor oculto para generar PDF */
#cbta256-preview-content {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

#cbta256-preview-content {
    padding: 20px;
}

/* Verificación de documentos */
#cbta256-verify-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.cbta256-verify-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cbta256-verify-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

#cbta256-folio-input {
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    text-transform: uppercase;
    margin-right: 10px;
}

#cbta256-folio-input:focus {
    outline: none;
    border-color: #3498db;
}

#cbta256-verify-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cbta256-verify-btn:hover {
    background: #2980b9;
}

#cbta256-verify-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.cbta256-verify-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.cbta256-verify-success h4 {
    margin-top: 0;
    color: #155724;
}

.cbta256-verify-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.cbta256-verify-error h4 {
    margin-top: 0;
    color: #721c24;
}

.cbta256-document-info p {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #c3e6cb;
}

.cbta256-document-info p:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cbta256-search-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    #cbta256-student-search {
        width: 100%;
    }
    
    .cbta256-clear-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cbta256-student-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cbta256-student-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .cbta256-contact-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cbta256-contact-item label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .cbta256-doc-button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .cbta256-document-name-preview {
        text-align: center;
        margin-bottom: 15px;
    }
    
    #cbta256-document-name-preview {
        display: block;
        margin-top: 5px;
        word-break: break-all;
    }
    
    #cbta256-print-document,
    .cbta256-whatsapp-btn {
        width: 100%;
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .cbta256-verify-section input,
    .cbta256-verify-section button {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
    }
    
    .cbta256-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* Estilos responsivos para verificación */
    .cbta256-verification-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cbta256-verification-photo {
        align-self: center;
        margin-bottom: 15px;
    }

    /* Responsive para campo de celular */
    #cbta256-student-phone-input {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cbta256ModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#cbta256-student-details {
    animation: fadeIn 0.5s ease;
}

#cbta256-search-results {
    animation: fadeIn 0.3s ease;
}

.cbta256-search-result-item {
    transition: all 0.2s ease;
}

/* Estilos de impresión */
@media print {
    #cbta256-student-documents-container,
    #cbta256-verify-container {
        padding: 0;
        margin: 0;
        max-width: none;
    }
    
    .cbta256-search-section,
    .cbta256-contacts-section,
    .cbta256-document-actions {
        display: none !important;
    }
    
    #cbta256-document-preview {
        box-shadow: none;
        border-radius: 0;
    }
    
    #cbta256-document-preview h3 {
        display: none;
    }
    
    .cbta256-document-container {
        margin: 0 !important;
        padding: 8mm !important;
        width: 210mm !important;
        height: 140mm !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        box-sizing: border-box !important;
        page-break-after: always;
    }
    
    /* Reducir espaciado en impresión */
    .cbta256-document-container p {
        margin: 1px 0 !important;
        line-height: 1.1 !important;
    }
    
    .cbta256-document-container h2 {
        margin: 0 0 2px 0 !important;
        line-height: 1.0 !important;
    }
    
    .cbta256-document-header {
        margin-bottom: 4px !important;
    }
    
    .cbta256-document-footer {
        margin-top: 4px !important;
    }
    
    /* Ajustar para formato media carta */
    @page {
        size: 21.59cm 14cm;
        margin: 0;
    }
}

/* Estilos específicos para documento media carta */
.cbta256-document-container {
    max-width: 210mm;
    min-height: 140mm;
    font-size: 12px;
    line-height: 1.1;
    padding: 8mm;
    box-sizing: border-box;
}

.cbta256-document-container p {
    margin: 2px 0;
    line-height: 1.1;
}

.cbta256-document-container h2 {
    line-height: 1.0;
}

/* Estilos para verificación con foto */
.cbta256-verification-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cbta256-verification-photo {
    flex-shrink: 0;
}

.cbta256-verification-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #155724;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cbta256-verification-info {
    flex-grow: 1;
}

.cbta256-verification-info h5 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 1.2em;
}

/* NUEVO: Estilos para página de consulta de documentos */
#cbta256-documents-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.cbta256-documents-list-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 30px;
}

.cbta256-documents-list-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cbta256-documents-list-photo {
    flex-shrink: 0;
}

.cbta256-documents-list-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
}

.cbta256-documents-list-info {
    flex-grow: 1;
}

.cbta256-documents-list-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.cbta256-documents-list-info p {
    margin: 5px 0;
    opacity: 0.9;
}

.cbta256-documents-period-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cbta256-documents-content {
    padding: 30px;
}

.cbta256-documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cbta256-documents-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbta256-documents-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cbta256-documents-table tr:last-child td {
    border-bottom: none;
}

.cbta256-documents-table tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.cbta256-document-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.cbta256-document-type-badge.cbta256-pase {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cbta256-document-type-badge.cbta256-justificante {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.cbta256-reprint-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbta256-reprint-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cbta256-reprint-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cbta256-no-documents {
    text-align: center;
    padding: 60px 30px;
    color: #7f8c8d;
}

.cbta256-no-documents i {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.cbta256-no-documents h4 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.cbta256-no-documents p {
    margin: 0;
    font-style: italic;
}

.cbta256-documents-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.cbta256-summary-card {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cbta256-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cbta256-summary-card.cbta256-pases-summary {
    border-left-color: #e74c3c;
}

.cbta256-summary-card.cbta256-justificantes-summary {
    border-left-color: #3498db;
}

.cbta256-summary-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1;
}

.cbta256-summary-card.cbta256-pases-summary .cbta256-summary-number {
    color: #e74c3c;
}

.cbta256-summary-card.cbta256-justificantes-summary .cbta256-summary-number {
    color: #3498db;
}

.cbta256-summary-label {
    font-size: 1em;
    color: #2c3e50;
    font-weight: 600;
}

.cbta256-date-badge {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #dee2e6;
}

.cbta256-folio-badge {
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Loading spinner para botones de reimpresión */
.cbta256-loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: cbta256Spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes cbta256Spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive para tabla de documentos */
@media (max-width: 768px) {
    .cbta256-documents-table {
        font-size: 12px;
    }
    
    .cbta256-documents-table th,
    .cbta256-documents-table td {
        padding: 10px 8px;
    }
    
    .cbta256-documents-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .cbta256-documents-list-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cbta256-documents-list-photo {
        align-self: center;
    }
    
    .cbta256-reprint-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}