/* MTN Share Header styling */
.mtn-share-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    color: white !important;
}

.ph-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Vendor Visibility Modal - Position at top */
.modal-dialog-top {
    margin-top: 30px !important;
    margin-bottom: auto !important;
}

/* ── How It Works ── */
.fw-how-it-works { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.fw-hiw-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-weight: 600; font-size: 0.95em; color: #334155; text-decoration: none !important; cursor: pointer; transition: background 0.2s; }
.fw-hiw-toggle:hover { background: #f8fafc; color: #334155; }
.fw-hiw-toggle[aria-expanded="true"] .fw-hiw-arrow { transform: rotate(180deg); }
.fw-hiw-arrow { font-size: 0.75em; transition: transform 0.3s ease; color: #94a3b8; }
.fw-hiw-body { padding: 0 20px 20px; }
.fw-hiw-steps { display: flex; flex-direction: column; gap: 16px; }
.fw-hiw-step { display: flex; align-items: flex-start; gap: 14px; }
.fw-hiw-step-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fw-hiw-step strong { display: block; font-size: 0.9em; color: #1e293b; margin-bottom: 2px; }
.fw-hiw-step p { margin: 0; font-size: 0.82em; color: #64748b; line-height: 1.5; }

.team-activity-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.team-activity-filters label {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.manage-team-tabs .nav-link {
    color: var(--primary);
    border-color: transparent;
}

.manage-team-tabs .nav-link.active {
    color: var(--primary);
    background: #fff;
    border-color: var(--primary) var(--primary) #fff;
    font-weight: 600;
}

/* Keep the team form actions available while the long permissions list scrolls. */
.manage-team-member-dialog .modal-content {
    max-height: calc(100vh - 2rem);
}

/* The form sits between Bootstrap's flex content and scrollable body. */
.manage-team-member-dialog .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.manage-team-member-dialog .modal-body {
    min-height: 0;
    overflow-y: auto;
}

.manage-team-member-dialog .modal-footer {
    flex-shrink: 0;
    background: #fff;
}

@media (max-width: 575.98px) {
    .manage-team-member-dialog .modal-content {
        max-height: calc(100vh - 1rem);
    }
}
