/* Lead activity (lead-activity.js): a partner's leads and what they did on each lead's page. Phone first: one card per
   lead, its timeline under it, nothing wider than the screen. Same paper-and-green palette as Partners. */
.la,.la-sheet{--la-ink:#1d2923;--la-muted:#637067;--la-line:#e0e6db;--la-red:#a33328;--la-red-bg:#fbeae7;--la-amber:#9a4f0f;--la-amber-bg:#fdf1e1;
  --la-green:#235d3b;--la-green-bg:#e3f1e3;--la-blue:#1d5b72;--la-blue-bg:#e4f1f6;--la-test:#56458a;--la-test-bg:#efebf8;
  --pb-green:#234c3a;--pb-muted:#637067;--pb-line:#e0e6db}
.la{color:var(--la-ink);min-width:0}
.la-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.la-head h2{margin:0;font-size:19px;font-weight:750;letter-spacing:-.4px;overflow-wrap:anywhere}
.la-refresh{flex:none}
/* Every <p> class below is under .la (two classes), so it beats .la p and the Partners page's .pb p (a class and an element). */
.la p{margin:0}
.la .la-loading,.la .la-empty,.la .la-nothing{color:var(--la-muted);font-size:14px}
.la .la-error{color:var(--la-red);font-size:14px;margin-bottom:8px}
.la .la-paused{background:var(--la-amber-bg);color:var(--la-amber);border-radius:8px;padding:8px 12px;margin-bottom:10px;font-size:14px}
/* Whose taps these are when their leads go to another number (13 Oct 2026: with the business they work for). */
.la .la-leads-to{color:var(--la-muted);font-size:14px;margin-bottom:10px;overflow-wrap:anywhere}

/* The counts: plain words, each in its colour, so who's acting on leads shows at a glance. */
.la .la-sum{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:12px;font-size:14px;color:var(--la-ink)}
.la-sum strong{width:100%;font-size:15px;color:var(--la-ink)}
.la-n{display:inline-flex;align-items:center;padding:3px 10px;border-radius:14px;font-size:13px;font-weight:600}
.la-n.is-called,.la-chip.is-called{background:var(--la-green-bg);color:var(--la-green)}
.la-n.is-opened,.la-chip.is-opened{background:var(--la-amber-bg);color:var(--la-amber)}
.la-n.is-not-opened,.la-chip.is-not-opened{background:var(--la-red-bg);color:var(--la-red)}
.la-n.is-reported,.la-chip.is-reported{background:var(--la-blue-bg);color:var(--la-blue)}
.la-chip.is-test{background:var(--la-test-bg);color:var(--la-test)}
.la-filters{margin-bottom:12px}
.la-filters button{min-height:44px}

/* One card per lead, its status's colour down its side. */
.la-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.la-item{border:1px solid var(--la-line);border-left:4px solid var(--la-line);border-radius:10px;padding:12px 14px;background:#fff;min-width:0}
.la-item.is-called{border-left-color:#3f8a5c}
.la-item.is-opened{border-left-color:#d99a4a}
.la-item.is-not-opened{border-left-color:#c8584b}
.la-item.is-reported{border-left-color:#3d86a3}
.la-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.la-item-head strong{font-size:16px;margin-right:auto;overflow-wrap:anywhere}
.la-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:14px;font-size:14px;font-weight:600;white-space:nowrap}
.la .la-what{font-size:14px;color:var(--la-ink);margin-top:2px;overflow-wrap:anywhere}
.la .la-sent{font-size:14px;color:var(--la-muted)}
.la .la-closed{font-size:14px;color:var(--la-muted);margin-top:6px}

/* The timeline: the day once, then the times. */
.la-timeline{list-style:none;margin:8px 0 0;padding:0 0 0 12px;border-left:2px solid var(--la-line);display:grid;gap:4px}
.la-entry{display:flex;flex-wrap:wrap;gap:0 8px;font-size:14px;line-height:1.45;min-width:0}
.la-entry time{font-variant-numeric:tabular-nums;color:var(--la-muted);white-space:nowrap}
.la-entry time::after{content:" ·"}
.la-text{color:var(--la-ink);overflow-wrap:anywhere}
.la-entry small{flex-basis:100%;color:var(--la-muted);font-size:14px}
.la-call .la-text,.la-whatsapp .la-text{font-weight:600}
.la-report .la-text{color:var(--la-blue);font-weight:600}
.la-more{margin-top:12px}
.la .la-foot{margin-top:12px;font-size:14px}

/* openLeadActivity: a sheet over the page (from the bottom on a phone). */
.la-sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,30,24,.45)}
.la-sheet-box{position:relative;width:min(640px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;border-radius:12px;background:#f7f8f4}
.la-sheet-box .la{margin:0;padding-top:44px}
.la-x{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:var(--la-ink);font-size:26px;line-height:1;cursor:pointer}
.la-x:focus-visible,.la button:focus-visible{outline:3px solid #679078;outline-offset:2px}

/* A number report waiting for the owner: Replace and Not replaced beside it, on Partners. */
.la-decide{margin-top:10px;justify-content:flex-start}
@media (max-width:640px){
  .la-item{padding:12px}
  .la-filters button{flex:1 1 auto}
  .la-sheet{align-items:flex-end;padding:8px 0 0}
  .la-sheet-box{width:100%;max-height:calc(100vh - 8px);max-height:calc(100dvh - 8px);border-radius:14px 14px 0 0}
}

/* "Mark as sent" on a link written and never marked as sent: the owner's own tap, a thumb's size, the words wrap. */
.la-mark{margin-top:8px;display:grid;gap:6px}
.la-mark .pb-btn{min-height:44px;white-space:normal}
.la .la-mark .pb-note{font-size:14px;color:var(--la-muted)}
.la .la-mark .la-ask{font-size:14px;font-weight:600;color:#7a430f;line-height:1.4;overflow-wrap:anywhere}
/* "Open homeowner ›": their record on Homeowners, a link-like button with a thumb-sized target. */
.la .la-open{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--pb-green);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.la .la-open:focus-visible{outline:3px solid #679078;outline-offset:2px}
