/* ============================================
   G2T BUSINESS — TRAVELERS STYLES
   ============================================ */
/* --- Correction du 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%;
}


/* --- Conteneur principal --- */
.business-travelers {
    max-width: 1200px;
    margin: 0 auto;
}

.business-travelers h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

/* --- En-tête --- */
.travelers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.travelers-header .btn-add {
    background: linear-gradient(135deg, #003580, #0057b8);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 87, 184, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.travelers-header .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 87, 184, 0.3);
}

/* --- Tableau --- */
.travelers-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,33,71,0.04);
}

.travelers-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.travelers-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.travelers-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.travelers-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #0f172a;
}

.travelers-table tbody tr {
    transition: background 0.2s;
}

.travelers-table tbody tr:hover {
    background: #f8fafc;
}

.travelers-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Badges --- */
.traveler-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.traveler-type-badge.adult {
    background: #e0f2fe;
    color: #0369a1;
}

.traveler-type-badge.child {
    background: #fef3d7;
    color: #92400e;
}

.traveler-type-badge.infant {
    background: #fce7f3;
    color: #9d174d;
}

.passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #0f172a;
}

.passport-badge.warning {
    background: #fef3d7;
    color: #92400e;
}

.passport-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* --- Actions --- */
.travelers-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.travelers-actions .btn-icon {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.travelers-actions .btn-icon.edit {
    color: #0057b8;
}

.travelers-actions .btn-icon.edit:hover {
    background: #e8f0fe;
}

.travelers-actions .btn-icon.delete {
    color: #e14e52;
}

.travelers-actions .btn-icon.delete:hover {
    background: #fde8e8;
}

/* --- Pagination --- */
.travelers-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.travelers-pagination .pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.travelers-pagination .pagination-btn:hover:not(:disabled) {
    background: #003580;
    color: #fff;
    border-color: #003580;
}

.travelers-pagination .pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.travelers-pagination .pagination-info {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
}

/* --- Modal améliorée --- */
.traveler-modal .business-modal__content {
    max-width: 680px;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,20,45,0.2);
    animation: modalSlideIn 0.3s ease forwards;
}

.traveler-modal .business-form {
    padding: 24px 28px 32px;
    box-shadow: none;
    border: none;
    max-width: 100%;
}

.traveler-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.traveler-modal .form-group {
    margin-bottom: 14px;
}

.traveler-modal .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.traveler-modal .form-group label .required {
    color: #e14e52;
}

.traveler-modal .form-group input,
.traveler-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dfe6ef;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.traveler-modal .form-group input:focus,
.traveler-modal .form-group select:focus {
    border-color: #0057b8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,87,184,0.08);
}

.traveler-modal .form-group .helper-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.traveler-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.traveler-modal .form-actions .btn-cancel {
    background: transparent;
    border: 1.5px solid #dfe6ef;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    color: #0f172a;
}

.traveler-modal .form-actions .btn-cancel:hover {
    background: #f1f5f9;
}

.traveler-modal .form-actions .btn-submit {
    background: linear-gradient(135deg, #003580, #0057b8);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.traveler-modal .form-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,87,184,0.25);
}

.traveler-modal .form-actions .btn-submit:active {
    transform: scale(0.95);
}

.traveler-modal .form-actions .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Animation --- */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .travelers-header {
        flex-direction: column;
        align-items: stretch;
    }
    .travelers-header .btn-add {
        justify-content: center;
    }
    .travelers-table {
        min-width: 600px;
        font-size: 13px;
    }
    .travelers-table th,
    .travelers-table td {
        padding: 10px 12px;
    }
    .traveler-modal .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .traveler-modal .business-form {
        padding: 16px;
    }
    .traveler-modal .form-actions {
        flex-direction: column;
    }
    .traveler-modal .form-actions .btn-cancel,
    .traveler-modal .form-actions .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .travelers-table {
        min-width: 480px;
        font-size: 12px;
    }
    .travelers-table th,
    .travelers-table td {
        padding: 8px 10px;
    }
    .travelers-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    .travelers-pagination .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}