/* ============================================
   CORRECTION SCROLL HORIZONTAL
   ============================================ */
.business-page {
    overflow-x: hidden;
    max-width: 100vw;
}

.business-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.business-sidebar::-webkit-scrollbar {
    width: 4px;
}
.business-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.business-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.business-main {
    max-width: 100%;
    overflow-x: hidden;
}

.business-main > * {
    max-width: 100%;
}

/* ============================================
   STYLES POUR LA PAGE RÉSERVATIONS BUSINESS
   ============================================ */

/* En-tête de la section réservation */
.business-reservation-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--business-white);
    border-radius: var(--business-radius-md);
    border: 1px solid var(--business-border);
}

/* ============================================
   SÉLECTEUR DE VOYAGEURS (MULTI-SÉLECTION)
   ============================================ */
.traveler-selector-wrapper {
    background: var(--business-white);
    padding: 16px 20px;
    border-radius: var(--business-radius-md);
    border: 1px solid var(--business-border);
    margin-bottom: 20px;
}

.traveler-selector-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.traveler-selector-header label {
    font-weight: 600;
    font-size: 14px;
    color: var(--business-text);
}

.traveler-selector-header .badge {
    background: var(--business-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Barre de recherche */
#traveler-search {
    flex: 1;
    min-width: 180px;
    padding: 8px 14px;
    border: 2px solid var(--business-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

#traveler-search:focus {
    border-color: var(--business-primary-light);
    box-shadow: 0 0 0 3px rgba(0,87,184,0.12);
    outline: none;
}

/* Conteneur des checkboxes */
#traveler-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    padding: 8px 4px;
    scroll-behavior: smooth;
    border-top: 1px solid var(--business-border);
    margin-top: 8px;
    padding-top: 12px;
}

/* Scroll personnalisé */
#traveler-list::-webkit-scrollbar {
    width: 6px;
}
#traveler-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#traveler-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
#traveler-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Style des checkboxes */
.traveler-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 2px solid var(--business-border);
    border-radius: 20px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.traveler-checkbox input[type="checkbox"] {
    display: none;
}

.traveler-checkbox .checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--business-border);
    background: white;
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
}

.traveler-checkbox .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.traveler-checkbox.selected {
    border-color: var(--business-primary);
    background: #f0f7ff;
}

.traveler-checkbox.selected .checkmark {
    background: var(--business-primary);
    border-color: var(--business-primary);
}

.traveler-checkbox.selected .checkmark::after {
    opacity: 1;
}

.traveler-checkbox:hover {
    border-color: var(--business-primary-light);
    background: #f5f9ff;
}

.traveler-checkbox .traveler-name {
    font-weight: 500;
    color: var(--business-text);
}

.traveler-checkbox .traveler-email {
    font-size: 11px;
    color: var(--business-text-secondary);
    margin-left: 2px;
}

/* Cacher l'email sur mobile */
@media (max-width: 600px) {
    .traveler-checkbox .traveler-email {
        display: none;
    }
    .traveler-checkbox {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* Actions */
.traveler-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.traveler-actions .btn-business {
    white-space: nowrap;
}

/* Badge dans le header principal */
.business-badge {
    background: #003580;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    display: inline-block;
}

/* ============================================
   TABLEAU
   ============================================ */
.business-table .status.confirmed {
    background: #e0f2e9;
    color: #065f46;
}
.business-table .status.pending {
    background: #fef3d7;
    color: #b45309;
}
.business-table .status.cancelled {
    background: #fde2e2;
    color: #991b1b;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .traveler-selector-header {
        flex-direction: column;
        align-items: stretch;
    }
    #traveler-search {
        width: 100%;
    }
    .traveler-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .traveler-actions .btn-business {
        text-align: center;
        justify-content: center;
    }
    
    .header-inner .business-badge {
        display: none !important;
    }
}

/* ============================================
   MODAL D'APPROBATION
   ============================================ */
.business-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.business-modal.active {
    display: flex;
}

.business-modal__content {
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease forwards;
    padding: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.business-modal__header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.business-modal__header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.business-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

.business-modal__close:hover {
    color: #ef4444;
}

.business-modal .business-form {
    padding: 24px;
}

.business-modal .form-group {
    margin-bottom: 20px;
}

.business-modal .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 6px;
}

.business-modal .form-group .required {
    color: #ef4444;
    margin-left: 2px;
}

.business-modal .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dfe6ef;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
    color: #0f172a;
}

.business-modal .form-control:focus {
    outline: none;
    border-color: #003580;
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.1);
}

.business-modal .form-control::placeholder {
    color: #94a3b8;
}

.business-modal .form-group small {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.business-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
    margin-top: 8px;
}

.business-modal .btn-cancel {
    padding: 10px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}

.business-modal .btn-cancel:hover {
    background: #e2e8f0;
}

.business-modal .btn-business.primary {
    padding: 10px 24px;
    background: #003580;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.business-modal .btn-business.primary:hover {
    background: #002a66;
}

.business-modal .btn-business.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .business-modal {
        padding: 10px;
    }
    .business-modal__content {
        max-width: 100%;
        border-radius: 12px;
    }
    .business-modal__header h2 {
        font-size: 18px;
    }
    .business-modal .form-actions {
        flex-direction: column;
    }
    .business-modal .btn-cancel,
    .business-modal .btn-business.primary {
        width: 100%;
        text-align: center;
    }
}

