/* =================================================================
   SD DISTRIBUCIONES - MÓDULO DE INCIDENCIAS LOGÍSTICAS
   Estilos específicos para gestión de incidencias
   ================================================================= */

/* Tarjetas de estadísticas */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #0072CE;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card .icon {
    font-size: 32px;
    color: #0072CE;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Colores por tipo de stat */
.stat-card.blue { border-left-color: #0072CE; }
.stat-card.blue .icon { color: #0072CE; }

.stat-card.red { border-left-color: #DC2626; }
.stat-card.red .icon { color: #DC2626; }

.stat-card.orange { border-left-color: #F59E0B; }
.stat-card.orange .icon { color: #F59E0B; }

.stat-card.green { border-left-color: #10B981; }
.stat-card.green .icon { color: #10B981; }

/* Timeline de comentarios */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -5px;
    width: 2px;
    background: #E5E7EB;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Badges de incidencias */
.badge {
    font-weight: 500;
    padding: 4px 10px;
}

/* Botones SD */
.btn-sd-primary {
    background-color: #0072CE;
    border-color: #0072CE;
    color: white;
    font-weight: 500;
}

.btn-sd-primary:hover {
    background-color: #005BA1;
    border-color: #005BA1;
    color: white;
}

/* Filtros de incidencias */
.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #D1D5DB;
}

.form-select:focus, .form-control:focus {
    border-color: #0072CE;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
}

/* Cards */
.card {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Tabla de incidencias */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #F9FAFB;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #E5E7EB;
    padding: 12px 15px;
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background-color: #F9FAFB;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Estados con colores */
.bg-danger { background-color: #DC2626 !important; }
.bg-warning { background-color: #F59E0B !important; }
.bg-success { background-color: #10B981 !important; }
.bg-info { background-color: #3B82F6 !important; }
.bg-secondary { background-color: #6B7280 !important; }

.text-danger { color: #DC2626 !important; }
.text-warning { color: #F59E0B !important; }
.text-success { color: #10B981 !important; }
.text-info { color: #3B82F6 !important; }

/* Alertas */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #D1FAE5;
    border-left-color: #10B981;
    color: #065F46;
}

.alert-danger {
    background-color: #FEE2E2;
    border-left-color: #DC2626;
    color: #991B1B;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-card .number {
        font-size: 28px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* Utilidades adicionales */
.text-muted {
    color: #6B7280 !important;
}

.bg-light {
    background-color: #F9FAFB !important;
}

.border-light {
    border-color: #E5E7EB !important;
}

/* Progress bars pequeñas */
.progress {
    background-color: #E5E7EB;
    border-radius: 4px;
}

.progress-bar {
    background-color: #0072CE;
}
