/**
 <!-- # Archivo: ValidarScore.css
# Ruta: static\css\SupYCtrol\IngDeControl\ValidarScore.css
# Descripción: Módulo para validar el Score descargado desde SharePoint
# Autor: Equipo de Desarrollo IGSA
# Fecha: 2025 -->
*/

/* Contenedor principal */
.container-fluid {
    padding: 20px;
}

/* Card principal */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

/* Botón de ejecución */
#btnEjecutarValidacion {
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#btnEjecutarValidacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

#btnEjecutarValidacion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner de carga */
#loadingSpinner {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

/* Textarea del resumen */
#txtResumen {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    resize: vertical;
    line-height: 1.4;
}

/* Mensaje de éxito */
#mensajeExito {
    border-radius: 8px;
    border-left: 5px solid #28a745;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabla de errores */
#tablaErrores {
    font-size: 14px;
}

#tablaErrores thead th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    border: none;
}

#tablaErrores tbody tr:hover {
    background-color: #f1f3f5;
    cursor: pointer;
}

#tablaErrores tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Botones de DataTables */
.dt-buttons {
    margin-bottom: 15px;
}

.dt-button {
    margin-right: 5px;
    border-radius: 5px;
}

/* Inputs de búsqueda en columnas */
#tablaErrores thead input {
    width: 100%;
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/* Paginación de DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px;
    margin: 0 2px;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: white !important;
    border: 1px solid #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    #btnEjecutarValidacion {
        font-size: 16px;
        padding: 10px 20px;
    }

    #txtResumen {
        font-size: 11px;
    }

    .dt-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .dt-button {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Colores de alerta según tipo de error */
.error-estructura {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.error-tipo-dato {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Tooltip personalizado */
[title] {
    position: relative;
    cursor: help;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 5rem;
    height: 5rem;
}