/* ============================================
   ESTILOS PARA REPORTES DE TICKETS
   ============================================ */

/* Métricas principales */
.metric-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: white;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
}

.metric-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Elementos de reporte */
.estado-item,
.prioridad-item,
.categoria-item,
.tecnico-item {
    padding: 10px;
    border-radius: 5px;
    background: #f8f9fa;
}

.area-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.area-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

/* Barras de progreso personalizadas */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Tabla de reportes */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.reporte-general table,
.reporte-sla table {
    margin-bottom: 0;
}

.reporte-general thead,
.reporte-sla thead {
    background: #f8f9fa;
}

.reporte-general th,
.reporte-sla th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

.reporte-general td,
.reporte-sla td {
    vertical-align: middle;
    padding: 10px 8px;
}

/* Filtros de reporte */
.reporte-filtros {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reporte-filtros .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* Tabs de reportes */
.nav-tabs-reportes {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.nav-tabs-reportes .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs-reportes .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.nav-tabs-reportes .nav-link.active {
    color: #007bff;
    background: white;
    border-bottom: 3px solid #007bff;
}

/* Badges personalizados */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reporte-resumen > *,
.reporte-general > *,
.reporte-sla > * {
    animation: fadeIn 0.5s ease;
}

/* Botones de exportación */
.btn-export {
    margin-right: 10px;
}

.btn-export i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 15px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .nav-tabs-reportes .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Impresión */
@media print {
    .btn, .nav-tabs, .reporte-filtros {
        display: none !important;
    }
    
    .metric-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
}

/* Loader específico */
.reporte-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.reporte-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Cards de información */
.info-card {
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.info-card h6 {
    color: #007bff;
    margin-bottom: 10px;
}

/* Estadísticas destacadas */
.stat-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat-highlight h4 {
    margin: 0;
    font-weight: 700;
}

.stat-highlight p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}
