/* docs/SUBSCRIPTION-SPEC.md 10.5: styles for the alerts track's pages and partials (templates/subs/).
   Owner: alerts track. Loaded after app.css on every page; use the tokens app.css defines. */

/* The small "New" marker beside an item's dollars on Worth a look (subs/alerts.html new_badge). */
.new-badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--watch-line);
  border-radius: var(--radius-pill);
  background: var(--watch-bg);
  color: var(--watch-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* Setup's "Alerts" section: one row per source. */
.alerts-form { margin-top: var(--space-5); }
.alerts-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.alerts-fieldset > legend { margin-bottom: var(--space-2); padding: 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.alerts-table th.alerts-source { max-width: 28ch; color: var(--ink); font-weight: 600; text-align: left; white-space: normal; }
.alerts-table td.alerts-on { text-align: center; }
.alerts-table input[type="checkbox"] { width: 22px; height: 22px; }
.alerts-table input[type="number"] { width: 9ch; min-height: 40px; }
.alerts-table select { min-height: 40px; max-width: 100%; }

@media (forced-colors: active) {
  .new-badge { border: 1px solid CanvasText; }
}
