/* Call pipeline (pages/calls.js): a board of the onboarding stages, one column each, a card per client. The six
   stages fit a desktop window; a narrower one scrolls the board sideways in itself, so the window never does. */
.calls { --violet: #5b3fc4; --orange: #a8480a; --magenta: #9a2fa3; --indigo: #3d4fc9; }
:root[data-theme="dark"] .calls { --violet: #a78bfa; --orange: #ff8a3d; --magenta: #d46ad8; --indigo: #8b9aff; }

.calls-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.calls-col { background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 200px; min-width: 0; }
.calls-colh { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 12px 4px; }
.calls-colh b { flex: none; font: 400 12px var(--mono); color: var(--faint); }
/* above the phone's wide columns a head gives its chip the room to show each of the six stage names whole at 1440
   beside a two-digit count: its hue names the stage, so it drops the dot, and the board's gap is tighter. The ellipsis guards a
   longer stage ClickUp may add, so the count keeps its place */
@media (min-width: 761px) {
  .calls-board { gap: 12px; }
  .calls-colh { padding: 4px 2px 12px 0; gap: 4px; }
  .calls-colh .calls-tg { display: block; min-width: 0; padding: 0 7px; overflow: hidden; text-overflow: ellipsis; }
  .calls-colh .calls-tg::before { display: none; }
}
.calls-card { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast); }
.calls-card:last-child { margin-bottom: 0; }
.calls-card:hover { border-color: var(--line2); background: var(--raise); }
.calls-card > b { font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.calls-m { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; min-height: 22px; }
.calls-hint, .calls-when { color: var(--text3); font-size: 12.5px; }
.calls-when.late { color: var(--bad); font-weight: 600; }
.calls-av { margin-left: auto; width: 22px; height: 22px; font: 700 9px var(--sans); }
.calls-none { padding: 26px 8px; text-align: center; color: var(--faint); font-size: 13px; }

/* a stage or a call status: one tag in its option's hue, led by a dot */
.calls-tg { --tc: var(--text3); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; line-height: 20px; padding: 0 9px 0 8px; border-radius: 999px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 24%, transparent); white-space: nowrap; }
.calls-tg::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.calls-h-green { --tc: var(--ok); } .calls-h-yellow { --tc: var(--warn); } .calls-h-red { --tc: var(--bad); } .calls-h-blue { --tc: var(--wait); }
.calls-h-violet { --tc: var(--violet); } .calls-h-orange { --tc: var(--orange); } .calls-h-magenta { --tc: var(--magenta); } .calls-h-indigo { --tc: var(--indigo); }

.calls-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 10px; }
.calls-note svg { color: var(--warn); margin-top: 3px; }
.calls-note p { margin: 0; color: var(--text2); } .calls-note b { color: var(--text); } .calls-note small { display: block; color: var(--text3); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .calls-board { grid-auto-columns: 82vw; scroll-snap-type: x proximity; }
  .calls-col { scroll-snap-align: start; }
}
