/* HMS-848/850 — Sustainability dashboard. The page previously had no
   stylesheet: summary metrics and the profiles table rendered as bare
   semantic markup. */

.sustainability-dashboard__section-title {
  font-size: 1.125rem;
  font-weight: var(--wa-font-weight-semibold);
  color: var(--wa-color-text-normal);
  margin: var(--wa-space-l) 0 var(--wa-space-s);
}

.sustainability-dashboard__certifications {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sustainability-dashboard__certifications li {
  margin: var(--wa-space-2xs) 0;
  font-size: 0.9375rem;
  color: var(--wa-color-text-normal);
}

/* Pagination row under the profiles table: Show-per-page left, record count
   centered, page nav right — the same 3-zone contract as the on-site and
   VIP-verifications footers. Stacks on narrow screens. */
.sustainability-dashboard__table-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: var(--wa-space-s);
  font-size: 0.875rem;
  color: var(--wa-color-text-quiet);
}

.sustainability-dashboard__per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  margin: 0;
  white-space: nowrap;
}

/* 6rem, not the usual 4.5rem: the combobox padding + chevron leave ~11px for
   the value at 4.5rem, which clips even "20" (HMS-1707 QA retest). */
.sustainability-dashboard__per-page wa-select {
  width: 6rem;
}

.sustainability-dashboard__showing {
  justify-self: center;
  white-space: nowrap;
}

.sustainability-dashboard__pagination {
  justify-self: end;
  display: flex;
  gap: var(--wa-space-m);
}

@media (max-width: 40rem) {
  .sustainability-dashboard__table-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.sustainability-dashboard__pagination .series-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.sustainability-dashboard__pagination .series-nav a {
  min-width: 2rem;
  text-align: center;
  padding: 2px var(--wa-space-xs, 4px);
  border-radius: var(--wa-border-radius-m);
  color: var(--wa-color-text-normal);
  text-decoration: none;
  font-size: var(--wa-font-size-s, 0.875rem);
}

.sustainability-dashboard__pagination .series-nav a[href]:hover {
  background: var(--wa-color-surface-lowered);
}

.sustainability-dashboard__pagination .series-nav a[aria-current="page"] {
  background: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
}

.sustainability-dashboard__pagination .series-nav a[aria-disabled]:not([aria-current="page"]) {
  opacity: 0.4;
  cursor: default;
}
