/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* CRL dashboard — supplemental styles */
.crl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.crl-card {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  background: var(--surface, #fff);
}
.crl-card h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.crl-card .total {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: .25rem 0;
}
.crl-card .freshness {
  font-size: .8rem;
  color: var(--muted, #656d76);
  margin-bottom: .75rem;
}
.crl-card .freshness.stale {
  color: #cf222e;
}
.reason-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.reason-table th,
.reason-table td {
  text-align: left;
  padding: .2rem .4rem;
  border-bottom: 1px solid var(--border, #d0d7de);
}
.reason-table th { font-weight: 600; }
.reason-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.chart-wrap {
  margin: 2rem 0;
  max-width: 720px;
}
.meta-line {
  font-size: .8rem;
  color: var(--muted, #656d76);
  margin-bottom: 1.5rem;
}
#error-msg {
  color: #cf222e;
}
.hidden { display: none; }
.section-intro {
  font-size: .9rem;
  color: var(--muted, #656d76);
  margin: .25rem 0 1.25rem;
}
.chart-wrap--sm {
  max-width: 480px;
}
.chart-wrap--heatmap {
  max-width: 720px;
  overflow-x: auto;
}
.chart-wrap--heatmap canvas {
  min-width: 480px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin: 1rem 0 1.5rem;
  padding: .75rem 1rem;
  background: var(--surface-alt, #f6f8fa);
  border: 1px solid var(--border, #d0d7de);
  border-radius: 6px;
}
.filter-label {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .83rem;
  cursor: pointer;
  padding: .2rem .5rem;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 4px;
  background: var(--surface, #fff);
  user-select: none;
}
.filter-chip:has(input:checked) {
  background: var(--accent-soft, #ddf4ff);
  border-color: var(--accent, #0969da);
}
