/* ==========================================================================
   Alert recipients. Loaded after thresholds.css: the scope picker reuses its
   .th-scope buttons so the two screens read as one feature. Existing tokens
   only -- --stop for critical, --warn for warning, as on the chart.
   ========================================================================== */

.rc-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.rc-list {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.rc-list h3 { margin: 0 0 8px; font-size: 0.95rem; }
/* Colour plus the heading word: colour is never the only signal. */
.rc-critical { border-left-color: var(--stop); }
.rc-warning  { border-left-color: var(--warn); }

.rc-rules { list-style: none; margin: 0; padding: 0; }
.rc-rule {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 8px 0;
  border-top: 1px solid var(--line);
}
.rc-rule:first-child { border-top: 0; }
.rc-who { min-width: 0; }
.rc-empty { color: var(--muted, inherit); opacity: 0.8; margin: 4px 0; }

.rc-problem {
  margin-top: 4px; padding: 6px 9px;
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.rc-count {
  font-size: 0.75rem; font-weight: 600;
  padding: 0 7px; border-radius: 999px;
  background: var(--accent-soft); color: inherit;
}
.rc-ro { font-size: 0.75rem; font-weight: 500; opacity: 0.7; }

.rc-sample { margin: 0 0 6px; }
.rc-sample span {
  display: block; font-size: 0.8rem; opacity: 0.75; margin-bottom: 2px;
}
.rc-sample q {
  display: block; quotes: none;
  padding: 8px 11px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-family: inherit;
}
.rc-fine { font-size: 0.88rem; opacity: 0.85; margin: 6px 0; }
.rc-h3 { font-size: 0.95rem; margin: 14px 0 6px; }

.rc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rc-table th, .rc-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left;
}
.rc-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.rc-form { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.rc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
