/* Estilos generales del dashboard */
.consignaciones-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* Responsive */
@media (max-width: 768px) {
    .consignaciones-dashboard {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px !important;
    }
    
    .stat-card .numero {
        font-size: 20px !important;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr !important;
    }
    
    .tabla-clientes, .tabla-clientes-completa, .jornadas-table, .cons-table {
        font-size: 11px;
    }
    
    .tabla-clientes th, .tabla-clientes td,
    .tabla-clientes-completa th, .tabla-clientes-completa td,
    .jornadas-table th, .jornadas-table td,
    .cons-table th, .cons-table td {
        padding: 6px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    .filtros input, .filtros select {
        width: 100%;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 10% auto !important;
        padding: 15px !important;
    }
}

/* Badges */
.badge-pagado {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

.badge-parcial {
    background: #ffc107;
    color: #333;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

.badge-debe, .baddeuda {
    background: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

.badpago {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Botones */
.btn-primary {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-warning {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Tablas responsivas */
.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}