/* Wailo Entreprise — login closer to mobile app DA */
.fi-simple-main-ctn form .fi-btn {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 9999px !important;
    background: #5a7ba5 !important;
    border-color: #5a7ba5 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.fi-simple-main-ctn form .fi-btn:hover {
    background: #6d8db3 !important;
    border-color: #6d8db3 !important;
}

.fi-simple-main-ctn form .fi-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(90, 123, 165, 0.18) !important;
}

.fi-simple-main-ctn .fi-input-wrp,
.fi-simple-main-ctn .fi-select-input,
.fi-simple-main-ctn .fi-input {
    border-radius: 14px !important;
}

/* ====== B2B-01 — Panel membres mobile-first ====== */
[x-cloak] { display: none !important; }

.b2b-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 4px;
}

/* ---- Carte offre ---- */
.b2b-offer-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eef0f4;
}
.b2b-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.b2b-offer-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a2740;
    margin: 0;
}
.b2b-plan-badge {
    background: #e8f0fb;
    color: #5a7ba5;
    font-weight: 700;
    font-size: .82rem;
    padding: 6px 14px;
    border-radius: 9999px;
    white-space: nowrap;
}
.b2b-seats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.b2b-seats-total-text {
    margin: 12px 0 0;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: #6b7a93;
}
.b2b-seat-stat {
    text-align: center;
    background: #f7f9fc;
    border-radius: 14px;
    padding: 16px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.b2b-seat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a2740;
    line-height: 1;
}
.b2b-seat-label {
    font-size: .78rem;
    color: #6b7a93;
    font-weight: 600;
}

/* ---- Demande de licences ---- */
.b2b-license-request {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef0f4;
}
.b2b-license-label {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: #4a5a76;
    margin-bottom: 10px;
}
.b2b-license-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.b2b-license-input {
    width: 72px;
    min-height: 44px;
    border: 2px solid #e0e6f0;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2740;
    background: #fff;
}
.b2b-license-input:focus {
    border-color: #5a7ba5;
    outline: none;
}

/* ---- Boutons ---- */
.b2b-btn-primary {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 9999px;
    background: #5a7ba5;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    transition: background .15s;
}
.b2b-btn-primary:hover {
    background: #6d8db3;
}
.b2b-btn-primary:active {
    background: #4a6a92;
}
.b2b-btn-revoke {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    background: transparent;
    color: #d9534f;
    font-weight: 700;
    font-size: .85rem;
    border: 1.5px solid #f0c4c2;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.b2b-btn-revoke:hover {
    background: #fdf2f2;
    border-color: #d9534f;
}
.b2b-btn-demote {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    background: transparent;
    color: #5a7ba5;
    font-weight: 700;
    font-size: .85rem;
    border: 1.5px solid #c9d6e8;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.b2b-btn-demote:hover {
    background: #eef3fa;
    border-color: #5a7ba5;
}

/* ---- Invitations en attente (sièges réservés) ---- */
.b2b-invite-form {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eef0f4;
}
.b2b-invite-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.b2b-invite-input {
    flex: 1;
    min-width: 200px;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid #e0e6f0;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 600;
    color: #1a2740;
    background: #fff;
}
.b2b-invite-input:focus {
    border-color: #5a7ba5;
    outline: none;
}
.b2b-invite-btn {
    flex: 0 0 auto;
}
.b2b-invite-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.b2b-invite-hint,
.b2b-empty-hint {
    margin: 10px 0 0;
    font-size: .8rem;
    color: #8896ab;
}
.b2b-empty-hint {
    margin: 0;
    padding: 4px;
}
.b2b-invite-avatar {
    background: #e8f0fb;
    color: #5a7ba5;
}
.b2b-invite-actions {
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Titre section membres ---- */
.b2b-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2740;
    margin: 0;
}

/* ---- Grille des cartes membres ---- */
.b2b-members-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 680px) {
    .b2b-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .b2b-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Carte membre ---- */
.b2b-member-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #eef0f4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.b2b-member-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.b2b-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #5a7ba5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.b2b-member-info {
    flex: 1;
    min-width: 0;
}
.b2b-member-name {
    font-weight: 700;
    font-size: .98rem;
    color: #1a2740;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.b2b-member-email {
    font-size: .82rem;
    color: #6b7a93;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Tags / badges membre ---- */
.b2b-member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.b2b-tag {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}
.b2b-tag-admin {
    background: #fef3e2;
    color: #b7791f;
}
.b2b-tag-owner {
    background: #fdeee8;
    color: #c05621;
}
.b2b-tag-member {
    background: #eef0f4;
    color: #6b7a93;
}
.b2b-tag-plan {
    background: #e8f0fb;
    color: #5a7ba5;
}
.b2b-tag-date {
    background: #f0f4f8;
    color: #8896ab;
}
.b2b-self-badge {
    font-size: .76rem;
    font-weight: 700;
    color: #5a7ba5;
}

/* ---- Zone action ---- */
.b2b-member-action {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* ---- Modal de confirmation ---- */
.b2b-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.b2b-modal {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.b2b-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2740;
}
.b2b-modal-desc {
    font-size: .9rem;
    color: #6b7a93;
    line-height: 1.5;
}
.b2b-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.b2b-btn-cancel {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #f0f4f8;
    color: #4a5a76;
    font-weight: 700;
    font-size: .88rem;
    border: none;
    cursor: pointer;
}
.b2b-btn-cancel:hover {
    background: #e6ecf3;
}
.b2b-btn-danger {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #d9534f;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    border: none;
    cursor: pointer;
}
.b2b-btn-danger:hover {
    background: #c9484a;
}
