/* A campaign's join funnel (views/campaign/funnel*.js), at the foot of Overview. Every
   rule is .jf-*; the card around it is the app's .card. Drawn on Deploy Previews only,
   with sample data, as in the mockup's Funnel board (docs/prd-tiktok-partner-ops.md §7.7). */

.jf { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.jf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.jf-head .card-head { justify-content: flex-start; gap: 8px; margin-bottom: 2px; }
.jf-head p { margin: 0; }
.jf-src { display: flex; flex-direction: column; gap: 3px; }
.jf-src .input { min-width: 190px; }
.jf-tag { display: inline-block; padding: 0 6px; border: 1px dashed var(--warn); border-radius: 4px; color: var(--warn); font-size: 10px; font-weight: 600;
  letter-spacing: .02em; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.jf-banner { padding: 8px 12px; font-size: 12px; color: var(--muted); border: 1px dashed var(--warn); border-radius: 8px; }
.jf-banner strong { color: var(--text); }

/* The steps: a bar each against the first, CreatorTrack's in blue and TikTok's in green. */
.jf-steps { display: flex; flex-direction: column; gap: 10px; }
.jf-step { display: grid; grid-template-columns: 170px minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
.jf-label { font-weight: 600; }
.jf-from { font-size: 11px; color: var(--muted); }
.jf-track { height: 26px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.jf-fill { height: 100%; min-width: 2px; border-radius: 6px; background: var(--accent); }
.jf-fill.is-tiktok { background: var(--good); }
.jf-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jf-n b { font-size: 16px; }
.jf-pct { margin-left: 6px; font-size: 12px; color: var(--muted); }
.jf-pct.is-big { color: var(--warn); font-weight: 600; }
.jf-callout { border: 1px solid var(--warn); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.jf-callout b { color: var(--warn); }

/* By source. */
.jf-sub h5 { margin: 4px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jf-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.jf-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.jf-table th, .jf-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.jf-table thead th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.jf-table tbody th { font-weight: 600; }
.jf-table tbody tr:last-child > * { border-bottom: 0; }
.jf-table tr.is-on > * { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.jf-table .jf-num { text-align: right; font-variant-numeric: tabular-nums; }
.jf-waits { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.jf-note { margin: 0; }

@media (max-width: 860px) {
  .jf-step { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .jf-track { grid-column: 1 / -1; grid-row: 2; height: 18px; }
}
