/* Styles pour les badges de statut des factures */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-cree {
    background-color: #6c757d;
    color: white;
}

.badge-envoye {
    background-color: #0d6efd;
    color: white;
}

.badge-paye {
    background-color: #198754;
    color: white;
}

.badge-annule {
    background-color: #dc3545;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Hover effects */
.badge:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Styles pour le sélecteur de statut - Version minimaliste */
.statut-select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Style minimaliste et épuré pour le sélecteur de statut */
.statut-select-container .statut-select {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #212529;
    background-image: none;
    transition: all 0.2s ease;
    cursor: pointer;
    /* Supprimer toutes les flèches personnalisées */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Flèche personnalisée simple et unique */
.statut-select-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6c757d;
    pointer-events: none;
    z-index: 1;
}

.statut-select-container .statut-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.statut-select-container .statut-select:hover {
    border-color: #adb5bd;
}

.statut-select-container .statut-select:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

.statut-preview {
    display: none;
}

.statut-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.statut-badge i {
    font-size: 0.6rem;
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

/* Animation de pulsation pour l'indicateur */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Styles spécifiques pour chaque statut */
.statut-badge.badge-cree {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: 1px solid #495057;
}

.statut-badge.badge-envoye {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border: 1px solid #0b5ed7;
}

.statut-badge.badge-paye {
    background: linear-gradient(135deg, #198754, #146c43);
    color: white;
    border: 1px solid #146c43;
}

.statut-badge.badge-annule {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
    border: 1px solid #b02a37;
}

/* Hover effects */
.statut-select-container .statut-select:hover {
    border-color: #adb5bd;
}

.statut-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive pour le sélecteur de statut */
@media (max-width: 768px) {
    .statut-select-container .statut-select {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .statut-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .statut-preview {
        right: 0.5rem;
    }
} 