/* Cold start forecasts: a read-only audit list of cold-start forecasts. Loaded
   via the app-wide stylesheet_link_tag :app glob (no per-view link tag, see
   design-system §19). Modeled on forecast_by_sku.css. */

.csf-subtitle {
  margin: -0.25rem 0 1rem;
  color: var(--muted);
  font-size: 13px;
  max-width: 80ch;
  line-height: 1.5;
}
.csf-select {
  max-width: 260px;
}

/* ── Summary strip: totals, then counts by source and by flag (each a filter link) ── */
.csf-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.csf-summary-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.csf-summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.csf-summary-total {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.csf-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1px 8px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.csf-summary-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.csf-summary-chip-count {
  font-weight: 700;
}

/* ── Table ── */
.csf-table {
  font-size: 12px;
  white-space: nowrap;
}
.csf-table th,
.csf-table td {
  padding: 0.4rem 0.55rem;
  vertical-align: top;
}
.csf-table .csf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.csf-table th.csf-num {
  text-align: right;
}
.csf-table .csf-muted {
  color: var(--muted);
}
.csf-table .csf-strong {
  font-weight: 700;
}
/* Long text cells wrap instead of widening the table. */
.csf-table .csf-wrap {
  min-width: 200px;
  max-width: 320px;
  white-space: normal;
}
.csf-prod-cell {
  min-width: 220px;
  white-space: normal;
}
.csf-prod-link {
  font-weight: 500;
  color: var(--ink);
}
.csf-variant-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.csf-table .csf-vendor {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* "How it was built" columns get a quiet tint so the eye finds them. */
.csf-table .csf-prov {
  background: var(--surface-alt);
}

.csf-flag {
  display: inline-block;
  margin: 0 4px 2px 0;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--amber-tint, var(--surface-alt));
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  cursor: help;
}
.csf-card-link {
  color: var(--blue);
}

.csf-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.csf-empty p {
  margin: 0 0 0.75rem;
}

.csf-table th.csf-cc-head {
  text-align: left;
}
.csf-table td.csf-cc-cell {
  text-align: left;
  color: var(--ink);
}
