/* ── Masterclass Funnel ────────────────────────────────────────── */

.mf-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 24px;
    margin-bottom: 12px;
}

.mf-toolbar .form-select { min-width: 260px; }
.mf-toolbar input[type="date"] { width: auto; }

.mf-toolbar .btn-outline-secondary {
    font-weight: 600;
    border-color: var(--linen-dark);
    color: var(--text-secondary);
}
.mf-toolbar .btn-outline-secondary.active,
.mf-toolbar .btn-outline-secondary:hover {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--linen);
}

.mf-note { margin: 0 0.25rem 14px; }

.mf-alert {
    margin-bottom: 14px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--desert-dark);
    background: var(--linen-light);
    border: 1px solid var(--desert-light);
    border-left: 4px solid var(--desert);
    border-radius: 6px;
}
.mf-alert ul { margin: 4px 0 0; padding-left: 18px; }

.mf-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.mf-table-scroll { overflow-x: auto; }

/* The All table has twelve columns: tighter cells, and long names may wrap */
#mf-table thead th,
#mf-table tbody td { padding: 10px 10px; }
#mf-table tbody td:first-child { white-space: normal; min-width: 180px; }
#mf-table tfoot .mf-muted { color: var(--linen-dark); }

/* % of pageviews with a bar underneath: the bar is decoration, the number is the value */
.mf-bar-cell { min-width: 160px; }
.mf-bar {
    height: 6px;
    margin-top: 4px;
    background: var(--linen-dark);
    border-radius: 3px;
    overflow: hidden;
}
.mf-bar > span {
    display: block;
    height: 100%;
    min-width: 2px;
    background: var(--forest);
    border-radius: 3px;
}

.mf-step-n {
    display: inline-block;
    width: 1.4em;
    color: var(--text-muted);
    font-weight: 700;
}

.mf-drill {
    background: none;
    border: 0;
    padding: 0;
    color: var(--forest);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.mf-drill:hover { text-decoration: underline; }

.mf-sub { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.mf-error { color: var(--desert-dark); font-size: 0.8rem; }
.mf-muted { color: var(--text-muted); }
.mf-table-scroll.tp-table-scroll { min-height: 0; }
