/* Drawer de transfert d'un adhérent vers un autre club géré. */

.mt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1045;
}
.mt-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mt-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(440px, 100%);
    background: var(--surface-1);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1046;
    display: flex;
    flex-direction: column;
    padding-top: var(--navbar-height);
}
.mt-drawer.show {
    transform: translateX(0);
}

.mt-head {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.mt-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.mt-head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mt-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.mt-close:hover {
    color: var(--text);
}

.mt-frame {
    flex: 1 1 auto;
    overflow: auto;
    display: block;
}
.mt-body {
    padding: 1.1rem 1.2rem;
}

/* Adhérent concerné */
.mt-member {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    margin-bottom: 1rem;
}
.mt-member .m-av {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold-strong);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--border-strong);
}
.mt-member .nm {
    font-weight: 600;
}
.mt-member .sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

/* Champs */
.mt-field {
    margin-bottom: 0.9rem;
}
.mt-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.mt-field select {
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.9rem;
}
.mt-field select:focus {
    outline: none;
    border-color: var(--gold);
}

.mt-empty {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin: 0 0 1rem;
}

/* Flux club actuel -> nouveau club */
.transfer-flow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem 0;
}
.tf-club {
    flex: 1 1 0;
    text-align: center;
    padding: 0.6rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
}
.tf-club .lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}
.tf-club .nm {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.15rem;
}
.tf-club.from {
    opacity: 0.7;
}
.tf-club.to {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.tf-arrow {
    color: var(--gold);
    flex: 0 0 auto;
}

/* Offre du club d'accueil */
.mt-offer-block {
    margin: 0 0 1rem;
}
.mt-offer-context {
    font-size: 0.74rem;
    color: var(--text-faint);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.mt-offer-context .tag {
    color: var(--text);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
}
.mt-offer-empty {
    font-size: 0.82rem;
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid rgba(224, 171, 51, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.7rem;
}

/* Conséquences */
.mt-consequences {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.mt-consequences li {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 0;
}
.mt-consequences li svg {
    flex: 0 0 auto;
    margin-top: 0.18rem;
}
.mt-consequences .c-ok {
    color: var(--success);
}
.mt-consequences .c-warn {
    color: var(--warning);
}

/* Pied : actions */
.mt-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin: 0 -1.2rem -1.1rem;
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--border);
    background: var(--surface-1);
}
