/* ========================================================= */
/* BASE ET UTILITAIRES GLOBALES (Depuis style.css et header.php) */
/* ========================================================= */

/* Reset et base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f8f9fa; 
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Généralités Formulaires */
.form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #764ba2;
}

/* Boutons Action Tableau */
.btn-modifier, .btn-supprimer, .btn-bloquer {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 0 2px;
}

.btn-modifier { background: #4CAF50; color: white; }
.btn-supprimer { background: #f44336; color: white; }
.btn-bloquer { background: #ff9800; color: white; }

/* Alertes */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

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

.alert-info-gains {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

/* Empty State */
.empty-state-alert {
    text-align: center; 
    padding: 40px; 
    background: #f8d7da; 
    color: #721c24; 
    border-radius: 10px;
}

.empty-state-alert-light {
    background: #f8f9fa;
    color: #666;
    padding: 30px;
}

.empty-state-icon {
    font-size: 3rem; 
    margin-bottom: 10px;
}


/* ========================================================= */
/* HEADER & NAVIGATION (Depuis header.php) */
/* ========================================================= */

.header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav { 
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
}

.nav h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Menu Hamburger (caché par défaut sur Desktop) */
.menu-toggle {
    display: none; /* CORRECTION: Cacher le bouton sur Desktop */
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.nav-links { 
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Info utilisateur */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 15px;
    margin-left: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-deconnexion {
    background: rgba(255,255,255,0.1) !important;
}


/* ========================================================= */
/* PAGE LOGIN (Depuis login.php) */
/* ========================================================= */

body.login-page { 
    /* Style pour centrer le contenu de la page de connexion */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.login-container { 
    background: white; 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px;
}

.logo { 
    text-align: center; 
    margin-bottom: 30px; 
    color: #333; 
}

.form-group label { 
    color: #555; 
    font-weight: 600;
}

.login-container input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    font-size: 16px;
}

.login-container button { 
    width: 100%; 
    padding: 12px; 
    background: #667eea; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: 600;
}

.login-container button:hover { 
    background: #764ba2; 
}

.error { 
    color: red; 
    text-align: center; 
    margin-top: 10px; 
    padding: 10px;
    background: #ffe6e6;
    border-radius: 5px;
}

/* ========================================================= */
/* PAGE DASHBOARD (Depuis dashboard.php) */
/* ========================================================= */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.welcome-message {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: inline-block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stats-grid-two-cols {
    grid-template-columns: 1fr 1fr;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #667eea;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-card-danger {
    border-left: 5px solid #dc3545 !important;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.stat-trend {
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

.trend-up { background: #d4edda; color: #155724; }
.trend-down { background: #f8d7da; color: #721c24; }

/* Sections */
.dashboard-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lots Gagnants */
.winners-grid {
    display: grid;
    gap: 15px;
}

.winner-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s;
}

.winner-card:hover {
    background: #e9ecef;
}

.winner-boules {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.boule {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.winner-info {
    flex: 1;
}

.winner-tirage {
    font-weight: 600;
    color: #333;
}

.winner-date {
    color: #666;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
    display: block; /* S'assurer que le lien est un bloc */
}

.action-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-text {
    font-weight: 600;
}


/* ========================================================= */
/* PAGE VENTES (Depuis ventes.php) */
/* ========================================================= */

.ventes-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.vendeur-info {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333;
    background: #e9ecef;
    border-radius: 8px;
}

.vendeur-info strong {
    color: #28a745;
}

/* Navigation par onglets */
.ventes-tabs {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    color: #6c757d;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem; 
    min-width: 0; 
}

.tab-btn.active {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

/* Contenu des onglets */
.tab-content {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Formulaire de création de fiche */
.selection-tirage {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

/* Ligne de vente */
.ligne-vente {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1fr 40px; 
    gap: 5px; 
    margin-bottom: 5px; 
    align-items: center;
    padding: 5px 0; 
    background: #fff;
    border-bottom: 1px dashed #eee;
}

.ligne-vente select, .ligne-vente input {
     padding: 8px !important;
     font-size: 0.85rem !important; 
     height: 38px; 
     width: 100%; 
}

.btn-supprimer {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0; 
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    height: 38px; 
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: 100%; 
}

/* Bouton d'ajout de ligne compact */
.add-line-button-compact {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1fr 40px; 
    gap: 5px;
    width: 100%;
    margin-top: 5px; 
    padding: 5px 0;
    margin-bottom: 15px;
}

.add-line-button-compact .empty-col {
    visibility: hidden; 
    height: 1px;
}

.add-line-button-compact button {
    grid-column: 3 / span 2; 
    width: 100%; 
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    height: 38px;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Actions Rapides Grappe */
.actions-rapides {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 10px;
    margin: 15px 0;
}

.btn-action-rapide { 
    background: #17a2b8 !important; 
    color: white;
    border: none;
    padding: 12px 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem; 
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-vider {
    background: #dc3545 !important;
}

/* Prix Auto Section */
.prix-auto-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    align-items: center;
}

.prix-auto-section .form-group {
    grid-column: span 2; 
    margin-bottom: 0;
}

.prix-actions-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-prix-auto, .btn-mariage-auto {
    padding: 12px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none; 
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer; 
}

.btn-prix-auto {
    background: #28a745 !important;
    color: white !important;
}

.btn-mariage-auto {
    background: #667eea !important;
    color: white !important;
}

/* Total Section */
.total-section {
    background: #eaf8ed;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    border-left: 5px solid #28a745;
}

.montant-total {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.btn-enregistrer {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    padding: 12px 25px; 
    border-radius: 8px;
    border: none;
    color: white;
    transition: all 0.3s;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.btn-enregistrer:disabled {
    background: #adb5bd !important;
    cursor: not-allowed;
    box-shadow: none;
}


/* Historique des ventes et Rapports - Tableau */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 20px 0;
}

.data-table th, .data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.statut-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.statut-active { background: #d4edda; color: #155724; }
.statut-gagnante { background: #fff3cd; color: #856404; }
.statut-paye { background: #d1ecf1; color: #0c5460; }


.btn-action-icon {
    background: #6c757d; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 0.8rem;
    margin-left: 5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 25px;
}

.btn-action-view {
    background: #6c757d; 
}

.btn-rejouer {
    background: #007bff; 
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 25px;
}

/* Rapports & Historique - Contrôles */
.rapport-header-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
}

.rapport-header-controls label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.rapport-header-controls .date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-rapport-action {
    padding: 10px;
    border-radius: 6px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-rapport-action-success {
    background: #28a745 !important;
}

.btn-imprimer-rapport {
    background: #17a2b8;
}

.historique-date-range {
    font-size: 0.9rem; 
    color: #6c757d; 
    text-align: center; 
    margin-top: 5px;
}


/* Lots Gagnants */
.gagnants-info-text {
    text-align: center; 
    color: #666; 
    font-size: 0.9rem;
}

.lots-gagnants-section {
    background: #fff3cd; 
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lots-gagnants-white {
    background: white !important; 
    border: none !important; 
    padding: 0 !important;
}

.lots-gagnants-section h3 {
    font-size: 1.1rem;
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ffd866;
    padding-bottom: 5px;
}

.lots-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lot-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 5px 0;
    margin-top: 10px;
    border-bottom: 1px dashed #ffeeba;
}

.lot-item-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.lot-result {
    font-size: 1.1rem;
    font-weight: bold;
    color: #dc3545; 
    text-align: right;
}

.lot-info {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
}

.lot-info-left {
    text-align: left !important;
}

/* Rapports Vendeur */
.rapport-stats-header {
    color: #28a745; 
    margin-top: 0; 
    font-size: 1.3rem;
}

.rapport-stats-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 20px;
}

.stat-card-blue {
    background: #f1f7fe; 
    border-left: 5px solid #667eea;
}

.stat-card-success {
    background: #eaf8ed; 
    border-left: 5px solid #28a745;
}

.stat-card-warning {
    background: white; 
    border-left: 5px solid #ffc107;
}

.stat-card-danger-border {
    background: #f8f9fa; 
    border: 2px solid #dc3545; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-icon-large {
    font-size: 2rem; 
    margin-bottom: 5px;
}

.stat-number-large {
    font-size: 1.2rem; 
    font-weight: bold; 
    color: #333;
}

.stat-number-medium {
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #333;
}

.stat-label-small {
    color: #666; 
    font-size: 0.85rem;
}

.stat-label-bold {
    font-weight: bold;
    color: #333;
}

.rapport-card-full-width {
    grid-column: span 2;
    padding: 20px !important;
}

.btn-detail-gagnantes {
    background: #ffc107; 
    color: #333; 
    padding: 8px 15px; 
    border: none; 
    border-radius: 5px; 
    margin-top: 10px; 
    cursor: pointer;
    font-weight: 600;
}

.rapport-complementaire-info {
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 8px;
}

.rapport-complementaire-info h3 {
    margin-top: 0;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.info-line {
    font-size: 0.9rem; 
    margin-bottom: 5px;
}

.info-line-highlight {
    font-size: 0.9rem; 
    font-weight: bold; 
    color: #28a745;
}


/* ========================================================= */
/* RESPONSIVE (Configuration du Menu Hamburger) */
/* ========================================================= */

@media (max-width: 1024px) {
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Global */
    .form-row {
        flex-direction: column;
    }
    
    /* Header (Règles spécifiques au Mobile/Hamburger) */
    .nav {
        flex-direction: row; /* Aligner le logo et le bouton */
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .menu-toggle {
        display: block; /* CORRECTION: Affiche le bouton hamburger sur mobile */
        order: 2; 
    }
    
    .nav h1 {
        order: 1;
        flex-grow: 1; 
    }

    /* Le menu complet est caché par défaut sur mobile */
    .nav-links {
        display: none; /* CACHE le menu par défaut */
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        order: 3; 
    }
    
    /* Affiche le menu quand la classe 'show' est ajoutée par le JS */
    .nav-links.show {
        display: flex; /* CORRECTION: Force l'affichage de la colonne */
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
    
    .user-info {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    /* Dashboard */
    .dashboard-container {
        padding: 15px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .winner-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .winner-boules {
        margin-right: 0;
        justify-content: center;
    }
    
    /* Ventes */
    .rapport-header-controls {
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .nav h1 {
        font-size: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .dashboard-section {
        padding: 20px;
    }
    
    .ventes-container {
        padding: 5px;
    }
}

.statut-annuler {
    background-color: #e74c3c !important; /* Rouge pour les fiches annulées */
    color: white !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}


.pointes-container-modern {
    margin: 15px 0;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pointes-title {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #444;
    text-transform: uppercase;
}

.pointes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 boutons par ligne sur mobile */
    gap: 8px;
}

.btn-pointe-style {
    padding: 10px 5px;
    background-color: #4a69bd; /* Bleu élégant assorti au système */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 0 #324a85; /* Effet de profondeur */
}

.btn-pointe-style:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-pointe-style:hover {
    background-color: #3c56a4;
}