/* LIST NAMES (Paul, 16 Oct 2026: "Isn't the Open button pointless… wasting space? Same with Manage").
   On every staff list the company / record name IS the way in: no separate Open / Manage / View button
   where the name already opens the same thing. The name reads as a link (bold, accent, a › after it)
   and is a generous tap target on a touch screen. Linked from base.html after app.css, so it wins
   ties against the Tailwind utilities.

   iOS rules kept: nothing here transforms, filters or backdrop-filters anything, and the extra tap
   area is padding on an inline box (no layout change, no horizontal overflow at 375px). */
.name-link { color: #10B981; font-weight: 700; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: rgba(16,185,129,0.18); border-radius: 4px; }
.name-link::after { content: "\00A0\203A"; display: inline; margin-left: 0.1em; font-weight: 800;
  color: rgba(16,185,129,0.7); text-decoration: none; }
.name-link:hover { color: #6EE7B7; text-decoration: underline; text-underline-offset: 2px; }
.name-link:hover::after { color: #6EE7B7; }
.name-link:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
/* a touch screen: the hit box grows to ~44px tall without moving anything */
@media (pointer: coarse) {
  .name-link { padding: 10px 0; }
}
/* A name kept to one line (the Prospects / Leads List density): the words are cut short with "…" and
   the › stays visible after them. The words sit in .nl-t inside the link. */
.dz-scope[data-density="list"] .name-link { display: inline-flex; align-items: baseline; max-width: 100%; }
.dz-scope[data-density="list"] .name-link > .nl-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-scope[data-density="list"] .name-link::after { flex: none; }

/* PROSPECTS on a phone, List density: the name fills the row (the old 44px "›" Manage cell is gone), as
   one 44px-tall tap target. */
@media (max-width: 767px) {
  .dz-scope[data-density="list"] .pc-name > .name-link { display: flex; min-height: 44px; align-items: center; padding: 0; }
  .dz-scope[data-density="list"] .pc-name > .name-link > .nl-t { flex: 0 1 auto; }
  .dz-scope[data-density="compact"] .pc-name > .name-link { display: inline-block; padding: 8px 0; }
}

/* LEAD STAGE TABS (Paul, 27 Oct 2026; services/lead_tabs.py, staff/leads/list.html): Warm (orange) ·
   Working claim (blue) · Submitted (purple) · Won (green) · Dead (grey) · All. Each tab is a coloured pill
   with its count; the active one is filled solid in its colour. On a phone the bar scrolls sideways (the
   page never does) and every tab is a 44px target. The same tones colour the stage pill on each row, the
   chip on the lead record and the Kanban card (.lt-chip). iOS rules: no transform/filter here. */
.lt-orange  { --lt: #FB923C; --lt-bg: rgba(251,146,60,0.10); --lt-bd: rgba(251,146,60,0.45); --lt-tint: rgba(251,146,60,0.18); }
.lt-blue    { --lt: #60A5FA; --lt-bg: rgba(96,165,250,0.10); --lt-bd: rgba(96,165,250,0.45); --lt-tint: rgba(96,165,250,0.18); }
.lt-purple  { --lt: #A78BFA; --lt-bg: rgba(167,139,250,0.10); --lt-bd: rgba(167,139,250,0.45); --lt-tint: rgba(167,139,250,0.18); }
.lt-green   { --lt: #34D399; --lt-bg: rgba(52,211,153,0.10); --lt-bd: rgba(52,211,153,0.45); --lt-tint: rgba(52,211,153,0.18); }
.lt-grey    { --lt: #9CA3AF; --lt-bg: rgba(156,163,175,0.08); --lt-bd: rgba(156,163,175,0.40); --lt-tint: rgba(156,163,175,0.16); }
.lt-neutral { --lt: #E5E7EB; --lt-bg: rgba(255,255,255,0.04); --lt-bd: rgba(255,255,255,0.22); --lt-tint: rgba(255,255,255,0.10); }

.lt-bar { position: relative; display: flex; gap: 8px; max-width: 100%; min-width: 0; margin: 0 0 14px;
  padding: 3px 3px 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.lt-bar::-webkit-scrollbar { display: none; }
.lt-tab { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 16px; border-radius: 9999px; border: 1.5px solid var(--lt-bd);
  background: var(--lt-bg); color: var(--lt); font-size: 13px; font-weight: 700; white-space: nowrap;
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s; }
.lt-tab:hover { background: var(--lt-tint); }
.lt-tab:focus-visible { outline: 2px solid var(--lt); outline-offset: 2px; }
.lt-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 7px; border-radius: 9999px; background: var(--lt-tint); color: var(--lt); font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums; }
.lt-tab.is-active { background: var(--lt); border-color: var(--lt); color: #0A0F0E; font-weight: 800;
  box-shadow: 0 0 0 3px var(--lt-tint); }
.lt-tab.is-active .lt-count { background: rgba(10,15,14,0.22); color: #0A0F0E; }
.lt-neutral.lt-tab.is-active { background: #F3F4F6; border-color: #F3F4F6; }
/* MORE TABS THIS WAY (27 Oct 2026): while the bar can still scroll right, its right edge fades out (a mask,
   no transform), so it's obvious there are more tabs. The list page's script sets .lt-more. */
.lt-bar.lt-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
@media (max-width: 767px) {
  .lt-bar { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
  .lt-tab { min-height: 44px; }
}

/* the stage pill / record chip / Kanban card chip in its tab's colour */
.pill.lt-chip, .g-tag.lt-chip, .lt-chip { background: var(--lt-tint); color: var(--lt); border-color: var(--lt-bd); }
.g-tag.lt-chip::before { background: var(--lt); }
