/**
 * Styles pour la page de détail de facture (show).
 * Variables CSS pour compatibilité dark mode.
 */

/* Cartes */
.card-hover {
    transition: box-shadow 0.15s ease;
}

.card-hover:hover {
    box-shadow: var(--shadow-md) !important;
}

/* Badges statut */
.badge-statut {
    padding: 0.5rem 1rem;
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Montants */
.montant {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Tableau détails — thead uniquement */
.table-details thead th {
    white-space: nowrap;
    font-weight: 700;
    padding: 1rem 0.75rem;
}

.table-details td {
    font-size: 0.95rem;
    padding: 0.85rem 0.75rem;
}

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

.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 36px;
    bottom: -12px;
    width: 2px;
    background: var(--color-border, #e9ecef);
}

.timeline-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--color-bg-primary, #fff);
}

.timeline-marker i {
    font-size: 1rem;
}

/* Total TTC — bleu en light, blanc en dark */
.montant-total {
    color: var(--brand-primary, #3B82F6);
}

[data-theme="dark"] .montant-total,
body.dark-mode .montant-total {
    color: #fff;
}

/* Modal de paiement */
#paiementModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#paiementModal .form-control:focus,
#paiementModal .form-select:focus {
    border-color: var(--brand-primary, #3B82F6);
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb, 59, 130, 246), 0.1);
}
