/* ============================================================
   Ward summary panel (#1325 item 3)
   ------------------------------------------------------------
   "Which wards produce the most errors" — a ranked readout that
   sits beside a review queue on the conflicts and integrity
   consoles. It is a portlet with a table, so almost everything
   comes from _cards.css and _data-display.css; what is here is
   the inline date range, the lead paragraph, and the footnote.

   Colour is deliberately limited to text tokens that already flip
   in dark mode — the panel introduces no fill of its own, so
   there is nothing to knock back for the dark theme.
   ============================================================ */

.ng-ward-summary__lead {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 78ch;
}

/* The date range sits on one row and wraps as a whole, so a narrow
   viewport never leaves a lone Apply button under two inputs. */
.ng-ward-summary__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.ng-ward-summary__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ng-ward-summary__field label {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.ng-ward-summary__field input {
  width: 140px;
}

/* Counts are compared down the column, so they are tabular and
   right-aligned; the ward names beside them stay left. */
.ng-ward-summary__table td.ng-ward-summary__count,
.ng-ward-summary__table th.ng-ward-summary__count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ng-ward-summary__note {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}
