/* Leads & sales (Pipeline, Bookings, Funnels, Events, People): the Leads & sales builder's styles (2.7.0). Tokens come from app.css. */

/* ------------------------------------------- the options row (sa-options.js) */
.sa-block { margin: 0 0 16px; }
.sa-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 8px 0 4px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.sa-opt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.sa-opt-l { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.sa-opt select { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 4px 8px;
  font: inherit; font-size: 13px; min-width: 0; max-width: 16rem; }
.sa-opt select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sa-opt.off { opacity: .6; }
.sa-opt.off select { cursor: not-allowed; }

/* one of a few: segmented, the chosen one filled */
.sa-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); padding: 2px; }
.sa-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ink-2); white-space: nowrap; }
.sa-seg button:hover { color: var(--ink); }
.sa-seg button[aria-pressed="true"] { background: var(--sel); color: var(--sel-ink); font-weight: 600; }
.sa-seg button:focus-visible, .sa-tog:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* on/off: small pills, any number on */
.sa-togs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sa-tog { border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 3px 10px;
  font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.sa-tog:hover { border-color: var(--ink-3); color: var(--ink); }
.sa-tog[aria-pressed="true"] { background: var(--sel); color: var(--sel-ink); border-color: var(--sel); font-weight: 600; }
.sa-tog[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* what the row counts from, and what it narrows */
.sa-says { margin: 4px 2px 0; max-width: 72rem; }
.sa-says + .sa-says { margin-top: 2px; }

/* ------------------------------------------ the lists of what is left out */
.sa-list { margin-top: 14px; }
.sa-list-body > .empty { margin: 0; }

/* ------------------------------------------------------- People: the search */
.sa-find { display: flex; gap: 8px; max-width: 36rem; margin: 6px 0 0; }
.sa-find .sa-find-in { flex: 1; min-width: 0; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; }
.sa-find .sa-find-in:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 767px) {
  .sa-opts { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px 12px; }
  .sa-opt { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; }
  .sa-opt select { max-width: none; width: 100%; }
  .sa-seg { justify-self: start; }
}

@media print {
  /* the notes under the row say what the page counts from and what it narrows */
  .sa-opts, .sa-find { display: none; }
}
