/* Registration Tracker — design-system Index/Compact-Detail surfaces.
   The status and event-type vocabularies replicate the prior surface
   exactly (tokens in design_tokens.css, kept for this module): solid
   pills mark action states (High Risk, Goal Met, Ahead); all other
   statuses are outlined colored text; event-type chips are color-coded
   by family (Live blue, Virtual pink, Webinar green, Meals orange). */

/* Status — shared geometry */
.rt-status {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
/* Solid pills (action states) */
.rt-status--critical { background: var(--status-high-risk-bg); color: var(--status-high-risk-text); }
.rt-status--complete { background: var(--status-goal-met-bg);  color: var(--status-goal-met-text); }
.rt-status--ahead    { background: var(--status-ahead-bg);     color: var(--status-ahead-text); }
/* Outlined colored text (informational states) */
.rt-status--outlined { background: white; border: 1px solid var(--color-gray-300); }
.rt-status--danger   { color: var(--status-medium-risk-text); }
.rt-status--behind   { color: var(--status-some-risk-text); }
.rt-status--on-track { color: var(--status-on-track-text); }
.rt-status--early    { color: var(--status-early-text); }
.rt-status--no-goal  { color: var(--status-no-goal-text); }
.rt-status--no-data  { color: var(--status-no-data-text); }

/* Event-type chip — color-coded by family */
.rt-type {
  display: inline-flex; align-items: center; padding: 0.25rem 0.5rem;
  border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
.rt-type--live    { background: var(--event-type-live-bg);    color: var(--event-type-live-text); }
.rt-type--virtual { background: var(--event-type-virtual-bg); color: var(--event-type-virtual-text); }
.rt-type--webinar { background: var(--event-type-webinar-bg); color: var(--event-type-webinar-text); }
.rt-type--meal    { background: var(--event-type-meal-bg);    color: var(--event-type-meal-text); }

/* Number emphasis in table cells */
.rt-num-primary { font-weight: 700; font-size: 15px; }
.rt-num-strong  { font-weight: 600; }

/* Ratio — deliberately discrete (small, muted), matching the prior surface */
.rt-ratio { font-size: 11.5px; color: var(--fg-muted); }

/* --------- Index table fit (no horizontal scroll) ---------
   The column set is fixed and well-defined, so each column gets a
   tailored width (sized to its actual content) and cells use tighter
   8px side padding. Long mono headers (WEEKLY NEEDED, DAYS UNTIL)
   wrap to two lines instead of forcing column width. */
.rt-index .cpv1-tbl th,
.rt-index .cpv1-tbl td { padding-left: 8px; padding-right: 8px; }
.rt-index .cpv1-tbl th { white-space: normal; line-height: 1.25; }
.rt-index .cpv1-tbl .rt-col-status { width: 112px; }
.rt-index .cpv1-tbl td.rt-col-status { text-align: center; }
.rt-index .cpv1-tbl .rt-col-ratio  { width: 50px; text-align: right; font-variant-numeric: tabular-nums; }
.rt-index .cpv1-tbl .rt-col-type   { width: 170px; }
.rt-index .cpv1-tbl .rt-col-date   { width: 142px; }
.rt-index .cpv1-tbl .rt-col-num    { width: 72px; }
.rt-index .cpv1-tbl .rt-col-num-sm { width: 60px; }
.rt-index .cpv1-tbl .rt-col-num-lg { width: 80px; }
/* Slimmer chip geometry on the index so the longest type
   ("Dinner: Night Before Live") fits its column */
.rt-index .rt-type { padding: 2px 6px; font-size: 11.5px; }

/* Pristine landing: the table renders at full natural height with no
   viewport, no resize handle, no landmark — so the wrap itself closes
   the card with the bottom rounding the landmark normally provides. */
.rt-index .rt-tbl-wrap--static { border-radius: 0 0 4px 4px; }

/* Reset-to-defaults in the page head — visible whenever the panel is
   engaged; returns to the bare path (and the static table with it). */
.rt-index .rt-reset-link { font-size: 12.5px; color: var(--fg-muted); text-decoration: none; margin-right: 14px; }
.rt-index .rt-reset-link:hover { color: var(--fg); text-decoration: underline; }

/* Compact-Detail field grid for the show page */
.rt-detail { max-width: 880px; margin: 0 auto; }
.rt-detail-head { margin: 4px 0 18px; }
.rt-detail-prefix { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); margin-bottom: 4px; }
.rt-detail-name { font-size: 22px; font-weight: 700; color: var(--fg); margin: 0 0 4px; }
.rt-detail-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-muted); }
.rt-section { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; }
.rt-section h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); margin: 0 0 10px; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.rt-field-l { font-size: 11.5px; color: var(--fg-muted); margin-bottom: 1px; }
.rt-field-v { font-size: 14px; color: var(--fg); }
.rt-field-v--big { font-size: 18px; font-weight: 700; }
