/* NWRS workforce dashboard.
 *
 * Versioned in the filename so a cached stylesheet cannot outlive a layout
 * change: a new version is a new file, never an edited one under the same name.
 *
 * No @import, no url() to another origin, no web font. The strict CSP admits no
 * external stylesheet source and this file adds no dependency on one.
 *
 * Colours are checked against WCAG 2.1 AA on the shell's white surface:
 * --nwrs-ink on white is 15.3:1, --nwrs-quiet is 5.9:1, and the focus ring is a
 * 3:1 non-text contrast against both the surface and the control.
 */

.nwrs {
  --nwrs-ink: #16202b;
  --nwrs-quiet: #64748b;
  --nwrs-line: #d4dbe2;
  --nwrs-surface: #f6f8fa;
  --nwrs-accent: #10496b;
  --nwrs-alert: #7a2418;
  --nwrs-alert-surface: #fdf3f1;

  /* Phase 4C.26A-visual. The dashboard's own surface tokens, taken from the
     source tool's card treatment so the two read as one product rather than as
     a rebuild that drifted. `--nwrs-card-line` is the source's #dfe7ef and
     `--nwrs-shadow` its 4%-opacity lift; both sit on the shell's --hs-ground. */
  --nwrs-card-line: #dfe7ef;
  --nwrs-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  --nwrs-tab-ink: #52637a;
  --nwrs-tab-active-line: #9ec5fe;
  --nwrs-tab-active-bg: #eef6ff;
  --nwrs-kpi-ink: #26364d;

  color: var(--nwrs-ink);
  /* Wider than the 72rem the single-column layout used. Five KPI cards and a
     two-column analytical grid need the room, and the source tool fills the
     content area rather than sitting in a reading measure. Prose inside the
     cards is still constrained per block. */
  /* The shell's `.content` already supplies the source's 24px gutter and its
     `.content-inner` the 1560px cap, so the dashboard fills the column it is
     given rather than centring a narrower one inside it. The old 86rem here was
     a second, tighter cap and it is what made the page read as a document. */
  max-width: none;
  margin: 0;
  /* 12px each side: the source's tool bodies sit in a Bootstrap `.container`
     inside the shell's 24px gutter, and the panel's left edge and width are
     measured against that. Without it every card here is 24px wider than the
     reference's and starts 12px further left. */
  padding: 0 12px 2rem;
}

.nwrs h1 { font-size: 24px; font-weight: 700; color: #172033; line-height: 1.5; margin: 0 0 4px; }
.nwrs h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.nwrs-lede { color: var(--nwrs-quiet); margin: 0 0 1.5rem; }
.nwrs-quiet { color: var(--nwrs-quiet); }
.nwrs-code { font-variant-numeric: tabular-nums; font-weight: 600; }

.nwrs-breadcrumb { margin-bottom: 1rem; font-size: 0.9rem; }
.nwrs-breadcrumb a,
.nwrs-org-list a { color: var(--nwrs-accent); }

.nwrs-org-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.nwrs-org-list a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
  background: var(--nwrs-surface);
  text-decoration: none;
  font-weight: 600;
}
.nwrs-org-list a:hover { text-decoration: underline; }

/* The shared organisation selector.
 *
 * Phase 4C.26A-parity. A search field, a button and a list of links, styled to
 * match the census-month filter beside it because they are the same kind of
 * control: server-rendered form, no script, keyboard-native. The monolith's
 * equivalent is a JavaScript modal that downloads 6,149 practices; with
 * scripting off it does not exist, which is the defect this replaces.
 */
.nwrs-selector { margin: 0 0 2rem; }
.nwrs-selector-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--nwrs-surface);
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
}
.nwrs-selector-form .nwrs-field { flex: 1 1 20rem; }
.nwrs-field input[type="search"] {
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  width: 100%;
}
.nwrs-org-list a { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.nwrs-org-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* Phase 4C.26A-housekeeping. A membership with no code can be shown but not
   chosen, so it must not look like a control. */
.nwrs-org-static { cursor: default; }
.nwrs-org-code {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--nwrs-quiet);
  font-size: 0.9rem;
}
.nwrs-empty-line { margin: 0.5rem 0 0; }
.nwrs-resume, .nwrs-own { margin: 0 0 2rem; }
.nwrs-resume-link { font-weight: 600; }

/* Filters: a real form, so it works without JavaScript and with a keyboard. */
.nwrs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: var(--nwrs-surface);
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
}
.nwrs-field { display: flex; flex-direction: column; gap: 0.25rem; }
.nwrs-field label { font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 7px; }
.nwrs-field select {
  min-width: 170px;
  padding: 11px 13px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}
/* Measured from the source: 12px/20px padding, 6px radius, 16px at weight 800
   on `--hs-aqua`. The old 4px radius and weight 600 were this service's own. */
.nwrs-button {
  padding: 12px 20px;
  border: 1px solid var(--hs-aqua, #0d5bb8);
  border-radius: 6px;
  background: var(--hs-aqua, #0d5bb8);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
}

/* One visible focus treatment for every interactive element. */
.nwrs a:focus-visible,
.nwrs select:focus-visible,
.nwrs button:focus-visible {
  outline: 3px solid var(--nwrs-accent);
  outline-offset: 2px;
}

.nwrs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.nwrs-stat {
  padding: 1rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
}
.nwrs-stat dt { font-size: 0.85rem; color: var(--nwrs-quiet); }
.nwrs-stat dd {
  margin: 0.25rem 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.nwrs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.nwrs-table caption {
  text-align: left;
  color: var(--nwrs-quiet);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}
.nwrs-table th,
.nwrs-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #edf2f7;
}
/* The source's table: 12px sentence-case heads on #f8fafc, 13px cells. */
.nwrs-table thead th {
  border-bottom: 1px solid #dfe7ef;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
}
.nwrs-table .nwrs-num { text-align: right; }

.nwrs-absent { color: var(--nwrs-quiet); }

.nwrs-empty,
.nwrs-problem {
  padding: 1.25rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
  background: var(--nwrs-surface);
}
.nwrs-problem {
  border-color: var(--nwrs-alert);
  background: var(--nwrs-alert-surface);
  color: var(--nwrs-alert);
}
.nwrs-empty h2,
.nwrs-problem h2 { margin-top: 0; }

/* Visually hidden, still announced. Carries "Not reported" beside every em dash. */
/* The scroll container is a containing block, Phase 4C.26.
 *
 * Without this, an absolutely-positioned descendant — `.nwrs-sr` below, which
 * is how "Not ranked" is announced — is laid out against the initial containing
 * block instead of the table. At 390px that puts a 1px box some 700px to the
 * right of the viewport, and the *document* gains a horizontal scrollbar while
 * every visible element measures correctly. It only appears on a page that has
 * something unranked to announce, which is why it survived the Phase 4C.16
 * screenshots: the fixtures then had a value for everything. */
.nwrs-table { position: relative; }

.nwrs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .nwrs { padding: 1rem 0.75rem 3rem; }
  .nwrs h1 { font-size: 1.4rem; }
  .nwrs-filters { flex-direction: column; align-items: stretch; }
  .nwrs-field select { min-width: 0; width: 100%; }
  /* The tables are wide by nature; scroll them rather than the document. */
  .nwrs-table { display: block; overflow-x: auto; white-space: nowrap; }
  /* The caption is a sentence, not a row: it wraps rather than being clipped
     at the edge of the scroll box. */
  .nwrs-table caption { white-space: normal; }
}

@media print {
  .nwrs-filters, .nwrs-breadcrumb { display: none; }
  .nwrs { max-width: none; padding: 0; }
  .nwrs-table { page-break-inside: avoid; }
  .nwrs-table tbody tr:nth-child(even) { background: transparent; }
}

/* Interpretation and methodology, Phase 4C.26.
 *
 * A description list rather than prose because each note is a term the reader
 * has just met in a table header, and a definition list is what a screen reader
 * announces that way. The block sits at the end of the document rather than
 * above the figures: a reader who needs it goes looking, and one who does not
 * is not made to scroll past it to reach the data. */
.nwrs-notes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nwrs-line);
  font-size: 0.925rem;
  color: var(--nwrs-quiet);
}
.nwrs-notes h2 { color: var(--nwrs-ink); }
.nwrs-notes p { margin: 0 0 0.75rem; max-width: 46rem; line-height: 1.6; }

.nwrs-notes-list { margin: 0; max-width: 46rem; }
.nwrs-notes-list > div { margin-bottom: 0.9rem; }
.nwrs-notes-list dt {
  color: var(--nwrs-ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.nwrs-notes-list dd { margin: 0; line-height: 1.6; }

@media (max-width: 40rem) {
  .nwrs-notes { margin-top: 2rem; }
}

@media print {
  /* The methodology is the part of the page a printed copy most needs: a figure
     without its basis is what makes a printout misleading later. */
  .nwrs-notes { break-inside: avoid; border-top: 1px solid #000; }
}

/* The restored analytical core, Phase 4C.26A.
 *
 * Series colours are custom properties so `charts.v2.js` reads them from here
 * rather than carrying a second palette that drifts. All four are checked
 * against WCAG 2.1 AA on the card surface, and colour is never the only signal:
 * every series is labelled, every axis titled, and the table beneath a chart
 * carries the values. */
.nwrs {
  --nwrs-series-1: #10496b;
  --nwrs-series-2: #1d6b52;
  --nwrs-series-3: #8a4b1f;
  --nwrs-series-4: #4c3f7a;
  --nwrs-highlight: #7a2418;
}

.nwrs-lede-tight { margin: 0 0 1rem; max-width: 46rem; line-height: 1.55; }
.nwrs-subheading { font-size: 1rem; margin: 1.75rem 0 0.35rem; color: var(--nwrs-ink); }

/* The capacity cards. `auto-fit` rather than a fixed count, so the row reflows
   at any width instead of at three chosen breakpoints. */
.nwrs-stats-wide { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.nwrs-stat-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--nwrs-quiet);
}

/* A chart box has a height because a canvas without one collapses to nothing;
   `hidden` until the script has something to draw, so no empty frame is left
   behind when JavaScript never arrives. */
.nwrs-chart {
  position: relative;
  height: 20rem;
  margin: 0.75rem 0 0;
  padding: 0;
}
.nwrs-chart canvas { max-width: 100%; }

.nwrs-row-selected { background: var(--nwrs-surface); font-weight: 600; }
.nwrs-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  background: var(--nwrs-highlight);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 0.05rem;
}

@media (max-width: 40rem) {
  .nwrs-chart { height: 16rem; }
  .nwrs-stats-wide { grid-template-columns: 1fr; }
}

@media print {
  /* A canvas prints as a bitmap of whatever size it happened to be on screen,
     and the table beside it is the better record anyway. */
  .nwrs-chart { display: none; }
}

/* The six-section navigation, Phase 4C.26A-layout.
 *
 * Links styled as tabs, not tabs pretending to be links. There is no
 * `role="tablist"` in the markup and there is none implied here: what this
 * styles is a list of anchors in a navigation landmark.
 *
 * On a narrow screen the strip scrolls inside itself rather than widening the
 * document. That is the same rule the tables follow — a wide thing scrolls in
 * its own box, and the page never gains a horizontal scrollbar. */


/* Underline as well as colour: the current section must not be signalled by
   colour alone. `aria-current` carries it for a screen reader. */


/* No `text-transform` here, and that is the fix rather than a preference.
 *
 * The badge read "NOT MIGRATED" through an uppercase transform, and the tab
 * around it came out about 9px narrower than its own `scrollWidth` at every
 * width — because intrinsic sizing measures the text in the DOM, "Not
 * migrated", while the box renders the transformed text, which is wider. The
 * shortfall was exactly the difference, and it is why the active Risk and Pack
 * tabs painted their badge over the tab beside them.
 *
 * `min-width: max-content` on the link cannot fix that: max-content was itself
 * the under-measurement. Removing the transform makes the measured text and the
 * rendered text the same string, which is the only version of this that stays
 * fixed. Sentence case also stops a screen reader meeting a word in caps. */


/* ---------------------------------------------------------------------------
 * Phase 4C.26A-visual: the dashboard layout
 * ---------------------------------------------------------------------------
 * The owner's correction was that the extracted page read as a simplified
 * replacement for `app.haresign.net` rather than its successor: the census
 * selector sat alone in a large sparse panel, the headline measures were two
 * plain figures below it, and the principal numbers fell below the fold.
 *
 * The source tool's hierarchy is restored here — filter panel, identity, a row
 * of principal measures, compact tabs, then the analysis in columns — using
 * this service's own tokens. What is *not* copied is the source's mechanism:
 * its tabs are scripted panels that render all six and hide five, and its
 * selector is a JavaScript modal over a 440KB download. These are links and a
 * form, and they keep working with scripting off.
 */

/* The organisation and filter panel, above the analysis and full width. */


/* The two organisation triggers sit together and read as one control group,
   which is how the source pairs its practice and PCN chips. */

/* The organisation sits first and reads as the subject of the panel; the
   month and the actions follow it, clustered rather than pushed to the far
   edge. The source spreads them across the full width because three further
   controls — Baseline, Compare to and Include PCN staff — sit between; none of
   those calculations is migrated, and right-aligning around the gap they would
   fill is what made this panel read as empty. */


/* The principal measures. Five across, as the source has them.
   Its breakpoints exactly — 1199px to three, 991px to two, 575px to one — so
   the row reflows at the same widths as every other dashboard in the estate. */


/* Decorative: every icon is paired with a text label in the same card, so it
   is hidden from assistive technology rather than described twice. */


/* The analysis, in columns on a desktop. */


/* Each analytical block is a card, which is what gives the page its density
   and separates one measure from the next. */


/* Identity: the organisation the figures belong to, between the filter panel
   and the measures. */


/* Tabs. Links styled as tabs, never ARIA tab roles — see `_sections.html`. */
/* Padding, not margin, keeps the focus ring of a scrolled tab inside the
   scroll box instead of clipped by it. */

/* The tab row, Phase 4C.26A-visual-2.
 *
 * `flex-wrap: nowrap` with `flex: 0 0 auto` on every item is the fix for the
 * defect the owner caught: a flex item's default `min-width: auto` stops it
 * shrinking below its *content*, but the active tab's 1px border and the
 * padding around it are not content, so at the widths where the row was a few
 * pixels over, the browser compressed the items and the active tab's
 * background painted across the label beside it. Items that cannot shrink at
 * all overflow instead, and the row scrolls — which is what the container's
 * `overflow-x: auto` was always for.
 */

/* The badge is a sibling of the link, so the item is the row that holds both. */

/* Inline layout, not flex, and this is the fix that finally held.
 *
 * The tab was an `inline-flex` box asking for `width: max-content` and
 * `min-width: max-content`, and every active tab still came out 10px narrower
 * than its own `scrollWidth` — at all six sections and all seven widths — so
 * the label spilled past its own outline. Four attempts at making the flex
 * intrinsic size correct all failed: a definite `flex-basis` on the icon,
 * wrapping the label in a real element rather than an anonymous flex item,
 * dropping `text-transform`, and moving to a font weight that is not
 * synthesised. Each was a plausible cause and none of them was the cause.
 *
 * An inline-block whose children are inline is measured by the inline layout
 * algorithm, which has no intrinsic-sizing step to get wrong: the box is the
 * sum of what is in it. `white-space: nowrap` keeps the tab on one line, and
 * the row still scrolls because the items still cannot shrink.
 *
 * Kept because it is measured, not because it is elegant:
 * `ops/browser/geometry.py` asserts `scrollWidth <= clientWidth` on every tab
 * at every width, which is the check that caught all of this and the one that
 * would catch a regression back to flex.
 */


/* Underline as well as colour: the current section must not be signalled by
   colour alone. `aria-current` carries it for a screen reader. */


/* No `text-transform` here, and that is the fix rather than a preference.
 *
 * The badge read "NOT MIGRATED" through an uppercase transform, and the tab
 * around it came out about 9px narrower than its own `scrollWidth` at every
 * width — because intrinsic sizing measures the text in the DOM, "Not
 * migrated", while the box renders the transformed text, which is wider. The
 * shortfall was exactly the difference, and it is why the active Risk and Pack
 * tabs painted their badge over the tab beside them.
 *
 * `min-width: max-content` on the link cannot fix that: max-content was itself
 * the under-measurement. Removing the transform makes the measured text and the
 * rendered text the same string, which is the only version of this that stays
 * fixed. Sentence case also stops a screen reader meeting a word in caps. */

.nwrs-pending {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px dashed var(--nwrs-line);
  border-radius: 6px;
  background: var(--nwrs-surface);
  max-width: 46rem;
}
.nwrs-pending h2 { margin-top: 0; }
.nwrs-pending p { line-height: 1.6; max-width: 42rem; }


@media print {
  /* A printed section is the one being read; the other five are links to
     nowhere on paper. */
}

/* ---------------------------------------------------------------------------
 * Phase 4C.26A-visual: the dashboard layout
 * ---------------------------------------------------------------------------
 * The owner's correction was that the extracted page read as a simplified
 * replacement for `app.haresign.net` rather than its successor: the census
 * selector sat alone in a large sparse panel, the headline measures were two
 * plain figures below it, and the principal numbers fell below the fold.
 *
 * The source tool's hierarchy is restored here — filter panel, identity, a row
 * of principal measures, compact tabs, then the analysis in columns — using
 * this service's own tokens. What is *not* copied is the source's mechanism:
 * its tabs are scripted panels that render all six and hide five, and its
 * selector is a JavaScript modal over a 440KB download. These are links and a
 * form, and they keep working with scripting off.
 */

/* The organisation and filter panel, above the analysis and full width. */
.nwrs-filterbar {
  background: #fff;
  border: 1px solid var(--nwrs-card-line);
  border-radius: 8px;
  box-shadow: var(--nwrs-shadow);
  padding: 18px;
  margin: 0 0 1.25rem;
}
.nwrs-filterbar fieldset {
  /* A fieldset groups the controls for assistive technology, and draws a
     border by default. The panel already is the box. */
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.nwrs-filterbar-legend {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px;
  padding: 0;
}
.nwrs-filterbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
/* The two organisation triggers sit together and read as one control group,
   which is how the source pairs its practice and PCN chips. */
.nwrs-filterbar-org {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
/* The organisation sits first and reads as the subject of the panel; the
   month and the actions follow it, clustered rather than pushed to the far
   edge. The source spreads them across the full width because three further
   controls — Baseline, Compare to and Include PCN staff — sit between; none of
   those calculations is migrated, and right-aligning around the gap they would
   fill is what made this panel read as empty. */
.nwrs-filterbar-org { max-width: 34rem; }
.nwrs-filterbar .nwrs-field { margin: 0; }
/* Phase 4C.26C: wraps, so the script-off share field can take its own line. */
.nwrs-filterbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.nwrs-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}
.nwrs-button-secondary:hover { border-color: var(--nwrs-border-strong, #c8d0dd); }
.nwrs-source-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nwrs-quiet);
  max-width: 62rem;
}

/* The principal measures. Five across, as the source has them.
   Its breakpoints exactly — 1199px to three, 991px to two, 575px to one — so
   the row reflows at the same widths as every other dashboard in the estate. */
.nwrs-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0;
}
.nwrs-kpi {
  background: #fff;
  border: 1px solid var(--nwrs-card-line);
  border-radius: 8px;
  box-shadow: var(--nwrs-shadow);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 6.5rem;
}
.nwrs-kpi-text { min-width: 0; }
.nwrs-kpi dt,
.nwrs-kpi-label {
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nwrs-tab-ink);
  margin: 0;
}
.nwrs-kpi dd,
.nwrs-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nwrs-kpi-ink);
  line-height: 1;
  margin: 0.5rem 0 0;
  font-variant-numeric: tabular-nums;
}
.nwrs-kpi-note {
  font-size: 0.6875rem;
  color: #7b8ca3;
  margin: 0.45rem 0 0;
  line-height: 1.3;
}
/* Decorative: every icon is paired with a text label in the same card, so it
   is hidden from assistive technology rather than described twice. */
.nwrs-kpi-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fb;
  color: var(--nwrs-kpi-ink);
  flex: 0 0 auto;
}
.nwrs-kpi-icon svg { width: 1.125rem; height: 1.125rem; }

/* The analysis, in columns on a desktop. */
.nwrs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* Each analytical block is a card, which is what gives the page its density
   and separates one measure from the next. */
.nwrs-card {
  background: #fff;
  border: 1px solid var(--nwrs-card-line);
  border-radius: 8px;
  box-shadow: var(--nwrs-shadow);
  padding: 1.125rem;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.nwrs-grid-2 > .nwrs-card { margin: 0; }
/* Phase 4C.26C: a grid item's automatic minimum is its content, so one wide
   table could stretch its column past the page; its own scroll container is
   what should take the overflow. */
.nwrs-grid-2 > * { min-width: 0; }
.nwrs-card > h2 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #172033; }
.nwrs-card > :last-child { margin-bottom: 0; }

/* Identity: the organisation the figures belong to, between the filter panel
   and the measures. */
.nwrs-identity { margin: 0 0 0.25rem; }

/* Tabs. Links styled as tabs, never ARIA tab roles — see `_sections.html`. */
/* Padding, not margin, keeps the focus ring of a scrolled tab inside the
   scroll box instead of clipped by it. */

/* The tab row, Phase 4C.26A-visual-2.
 *
 * `flex-wrap: nowrap` with `flex: 0 0 auto` on every item is the fix for the
 * defect the owner caught: a flex item's default `min-width: auto` stops it
 * shrinking below its *content*, but the active tab's 1px border and the
 * padding around it are not content, so at the widths where the row was a few
 * pixels over, the browser compressed the items and the active tab's
 * background painted across the label beside it. Items that cannot shrink at
 * all overflow instead, and the row scrolls — which is what the container's
 * `overflow-x: auto` was always for.
 */

/* The badge is a sibling of the link, so the item is the row that holds both. */

/* `width: max-content` is the second half of the overflow fix.
 *
 * An `inline-flex` box is shrink-to-fit: it takes the *available* width when
 * that is less than its preferred width. Inside a row that is already at its
 * limit, the two sections carrying a "Not migrated" flag were handed less space
 * than their own content needs, and the flag — a flex item that cannot shrink —
 * spilled past the tab's right edge and drew over the next one. Asking for the
 * intrinsic width instead means the row overflows and scrolls, which it is
 * built to do, rather than the tab overflowing, which it is not. */


/* Weight 700, not the source's 800, and the reason is measurable.
 *
 * This service names `DM Sans` first and falls back to the system stack on
 * purpose — a `@font-face` pointing at Google Fonts would be a remote
 * dependency and a CSP violation, so the font is used where it is already
 * installed and the fallback is used everywhere else. The fallback has 400 and
 * 700 faces and no 800, so a weight of 800 is *synthesised*: the browser
 * smears the glyphs bolder at paint time, and the painted text comes out wider
 * than the metrics the layout was computed from.
 *
 * On the active tab that produced a constant 10px of label spilling past its
 * own outline, at every width, on every section — the defect the owner
 * photographed twice. It is not a flex bug and no amount of `max-content`
 * touches it; the box was correct for the text it was told about.
 *
 * 700 is a real face, so nothing is synthesised and the box fits its text.
 * `font-synthesis-weight: none` makes that explicit rather than implicit: if a
 * later change asks for a weight the fallback lacks, the text stays light
 * instead of silently overflowing again.
 */

/* `flex-basis` is a length, not `auto`, and that is the fix.
 *
 * These icons are `<svg>` with a `viewBox` and no `width`/`height` attributes,
 * so they have no intrinsic width — and with `flex-basis: auto` the box's
 * `max-content` was computed as label + padding + border, omitting the icon and
 * the gap beside it entirely. The tab was then 22px narrower than its contents
 * and the label spilled past its own outline. A definite basis is a width the
 * intrinsic calculation cannot skip. The SVGs also carry `width`/`height`
 * attributes now, so the same is true before the stylesheet loads. */

/* A real flex item, not an anonymous one made from a text node: anonymous items
   are what the intrinsic width of this box got wrong. */


/* Stated in px, not rem, and deliberately.
   These mirror `_dashboard_styles.html` in the source, whose breakpoints are
   px; expressed in rem they would shift with the reader's root font size and
   stop being the same breakpoints. Everything else here stays in rem. */
@media (max-width: 1199px) {
  .nwrs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .nwrs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nwrs-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  /* One column, as the source does. Two cards across a 390px phone left each
     measure about 163px, which is narrower than its own uppercase label. */
  .nwrs-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 46rem) {
  .nwrs-filterbar-org { margin-inline-end: 0; }
  .nwrs-filterbar-row > * { width: 100%; }
  .nwrs-filterbar-actions > * { flex: 1; }
  .nwrs-orgpick { max-width: none; }
}

@media print {
  /* On paper the filter panel and the measures are the reader's own context,
     and the tabs are links to nowhere. The analysis is what prints. */
  .nwrs-filterbar { display: none; }
  .nwrs-card,
  .nwrs-kpi {
    box-shadow: none;
    border-color: #cbd5e1;
    break-inside: avoid;
  }
  .nwrs-grid-2 { grid-template-columns: 1fr; }
}

/* A table wider than the card it sits in scrolls inside that card.
 *
 * The rule under `max-width: 40rem` already did this for phones, where every
 * table is too wide. Two columns on a desktop reproduce the same problem at
 * 1440px: the six-column headline table is wider than half the content area,
 * and without this it painted over the card beside it. Scoped to cards so the
 * full-width sections keep ordinary table layout when they fit.
 */
.nwrs-card .nwrs-table-scroll {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.nwrs-card .nwrs-table-scroll > .nwrs-table { margin-bottom: 0; }

/* A table in a grid column runs tighter than one across the page.
 *
 * Phase 4C.26A-visual. Six columns at half of 1128px is the tightest place a
 * table appears here, and at the full-width type scale it needed a scrollbar to
 * show its last column — which reads as truncation rather than as a scroll
 * region. The source's tables are 13px with 11px/12px cells for the same
 * reason. The scroll region stays, for the narrower viewports where it is still
 * needed. */
.nwrs-grid-2 .nwrs-table { font-size: 0.8125rem; }
.nwrs-grid-2 .nwrs-table th,
.nwrs-grid-2 .nwrs-table td { padding: 0.5rem 0.5rem; }
.nwrs-grid-2 .nwrs-table thead th { font-size: 0.72rem; }

/* National position: the reference's headline-figure-and-bar treatment.
 *
 * Phase 4C.26A-visual. Every value in it is text; the bar is decorative and
 * marked `aria-hidden`, because a band of ten coloured segments tells a screen
 * reader nothing that the pills beside it do not say in words. */
.nwrs-position-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.75rem 0 0;
  color: var(--nwrs-kpi-ink);
  font-variant-numeric: tabular-nums;
}
.nwrs-position-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nwrs-quiet);
  letter-spacing: 0.02em;
}
.nwrs-position-bar {
  display: flex;
  gap: 3px;
  margin: 0.9rem 0 0;
}
.nwrs-position-band {
  flex: 1 1 0;
  height: 10px;
  border-radius: 3px;
  background: #e3e9f1;
}
.nwrs-position-band.is-selected { background: var(--nwrs-accent); }
.nwrs-position-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}
.nwrs-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nwrs-card-line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}
.nwrs-pill.is-strong {
  border-color: var(--nwrs-tab-active-line);
  background: var(--nwrs-tab-active-bg);
  color: var(--nwrs-accent);
}

/* ---------------------------------------------------------------------------
 * The section tabs — one definition, and that is half the fix
 * ---------------------------------------------------------------------------
 * Phase 4C.26A-visual-2. This block existed three times in this file, each copy
 * a little different, all three in the cascade at once. That is how the owner's
 * overlap survived four attempts at fixing it: the edits landed on one copy
 * while another still applied. The real defect was a leftover rule from the
 * original tab design — an `::after` underline carrying `margin: 0.4rem -0.9rem
 * -0.55rem`, a block child 28.8px wider than the tab that drew it, which is
 * what pushed the active tab's content past its own outline.
 *
 * So: one definition, no pseudo-element, and inline layout rather than flex —
 * an inline-block whose children are inline is measured by the sum of what is
 * in it, with no intrinsic-sizing step to disagree with itself.
 *
 * The active section is not signalled by colour alone: it has a filled
 * background, a border and a heavier weight, and `aria-current="true"` carries
 * it for a screen reader.
 *
 * `ops/browser/geometry.py` asserts `scrollWidth <= clientWidth` on every tab at
 * seven widths and that no two adjacent tabs intersect. That check is what
 * found this, and it is what stops it coming back.
 */
.nwrs-sections {
  background: #fff;
  border: 1px solid var(--nwrs-card-line);
  border-radius: 8px;
  box-shadow: var(--nwrs-shadow);
  padding: 6px;
  margin: 16px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.nwrs-sections ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The item is the row that holds the link and, where there is one, the badge
   beside it. The badge is outside the anchor so the active background covers
   the tab and stops there. */
.nwrs-sections li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nwrs-section-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--nwrs-tab-ink);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.nwrs-section-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.4rem;
  vertical-align: -0.2em;
}
.nwrs-section-label { display: inline; }
.nwrs-section-link:hover { background: #f6f8fb; }
.nwrs-section-link.is-current {
  background: var(--nwrs-tab-active-bg);
  border-color: var(--nwrs-tab-active-line);
  color: #0d5bb8;
  font-weight: 800;
}
.nwrs-section-link.is-pending { color: var(--nwrs-quiet); }
.nwrs-section-link:focus-visible {
  outline: 3px solid var(--nwrs-accent);
  outline-offset: -2px;
}
.nwrs-section-flag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 3px;
  background: var(--nwrs-surface);
  color: var(--nwrs-quiet);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 46rem) {
  .nwrs-section-link { padding: 0.5rem 0.6rem; }
  /* The badge is the first thing to go on a phone: the label is what a reader
     navigates by, and each section's own page says it is not migrated. */
  .nwrs-section-flag { display: none; }
}

@media print {
  /* A printed section is the one being read; the other five are links to
     nowhere on paper. */
  .nwrs-sections { display: none; }
}

/* A selectable row on the unselected explorer.
 *
 * Phase 4C.26A-selection. Each row is a submit button inside its own form
 * rather than a link, because choosing a practice is a state change that posts
 * to the shared endpoint — and because a link would put the code in an address.
 * Styled to read as the row it replaces: a button that looks like a button here
 * would say "this does something to the page" when it means "go here". */
.nwrs-org-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--nwrs-line);
  border-radius: 6px;
  background: var(--nwrs-surface);
  color: var(--nwrs-accent);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.nwrs-org-choice:hover { border-color: var(--nwrs-accent); }
.nwrs-org-choice:focus-visible {
  outline: 3px solid var(--nwrs-accent);
  outline-offset: 2px;
}
.nwrs-org-choice .nwrs-org-name { flex: 1 1 auto; }


/* Phase 4C.26C: the restored sections, the selector module and the evidence pack.
 *
 * Every status here is a word as well as a colour — chips carry their level in
 * text and deltas carry their sign — so nothing depends on colour alone. The
 * greens and reds are the series tokens above, checked against AA on the card. */
.nwrs-grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .nwrs-grid-3 { grid-template-columns: 1fr; } }

.nwrs-field-label { display: block; margin-bottom: 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--nwrs-quiet); }
.nwrs-check { display: flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; font-weight: 600; cursor: pointer; }
.nwrs-check input { width: 1.1rem; height: 1.1rem; }
.nwrs-copy-status { font-size: 0.85rem; color: var(--nwrs-quiet); }
/* A flex item's automatic minimum is its content, which for a text field is
   its intrinsic size: without `min-width: 0` on the label the field could not
   shrink below it, and the page scrolled sideways at 390px with script off. */
.nwrs-share-fallback { display: flex; flex: 1 1 100%; flex-direction: column; gap: 0.25rem; min-width: 0; font-size: 0.8rem; font-weight: 700; }
.nwrs-share-field { box-sizing: border-box; min-width: 0; width: 100%; max-width: 28rem; font: inherit; font-size: 0.85rem; }

.nwrs-heading-note { font-size: 0.85rem; font-weight: 400; }
.nwrs-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.nwrs-card-figure { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--nwrs-accent); }
.nwrs-table .nwrs-row-total th, .nwrs-table .nwrs-row-total td { font-weight: 800; }

.nwrs-chip { display: inline-block; padding: 5px 9px; font-weight: 800; border-radius: 999px; border: 1px solid var(--nwrs-line); font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: var(--nwrs-ink); background: #fff; }
.nwrs-chip.is-good { color: var(--nwrs-series-2); border-color: #9fd3bf; background: #eefaf5; }
.nwrs-chip.is-watch { color: var(--nwrs-series-3); border-color: #e6c29e; background: #fdf6ee; }
.nwrs-chip.is-warning { color: var(--nwrs-alert); border-color: #e7b3a8; background: var(--nwrs-alert-surface); }
.nwrs-chip.is-risk { color: #fff; border-color: var(--nwrs-alert); background: var(--nwrs-alert); }
.nwrs-chip.is-unavailable, .nwrs-chip.is-stable { color: var(--nwrs-quiet); }

.nwrs-event-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.nwrs-event { border: 1px solid var(--nwrs-card-line); border-radius: 8px; padding: 0.75rem 0.9rem; min-width: 0; }
.nwrs-event-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin: 0; font-weight: 700; color: var(--nwrs-ink); }
.nwrs-event p:not(.nwrs-event-title) { margin: 0.35rem 0 0; color: var(--nwrs-quiet); font-size: 0.875rem; line-height: 1.5; overflow-wrap: anywhere; }

.nwrs-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.nwrs-delta.is-increase { color: var(--nwrs-series-2); }
.nwrs-delta.is-decrease { color: var(--nwrs-alert); }
.nwrs-delta.is-stable, .nwrs-delta.is-unavailable { color: var(--nwrs-quiet); }

.nwrs-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.nwrs-summary-strip > div { border: 1px solid var(--nwrs-card-line); border-radius: 8px; padding: 0.7rem 0.85rem; background: #fff; min-width: 0; }
.nwrs-summary-strip dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nwrs-quiet); font-weight: 700; }
.nwrs-summary-strip dd { margin: 0.25rem 0 0; font-size: 1.3rem; font-weight: 800; color: var(--nwrs-kpi-ink); }

.nwrs-overlay { border-left: 4px solid var(--nwrs-accent); }
.nwrs-inline-form { margin: 0.75rem 0 0; }
.nwrs-link-button { background: none; border: 0; padding: 0; color: var(--nwrs-accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.nwrs-link-button:focus-visible { outline: 3px solid var(--nwrs-accent); outline-offset: 2px; }

.nwrs-position-row { margin-bottom: 1.25rem; }
.nwrs-position-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.5rem; }
.nwrs-position-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--nwrs-tab-ink); }
.nwrs-position-figure { font-size: 1.4rem; font-weight: 900; color: var(--nwrs-accent); }

.nwrs-travel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.nwrs-travel > div { border: 1px solid var(--nwrs-card-line); border-radius: 8px; padding: 0.85rem; text-align: center; }
.nwrs-travel dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--nwrs-tab-ink); }
.nwrs-travel dd { margin: 0.35rem 0 0; font-size: 1.25rem; }
@media (max-width: 575px) { .nwrs-travel { grid-template-columns: 1fr; } }

.nwrs-note { border-left: 3px solid var(--nwrs-accent); background: var(--nwrs-surface); padding: 0.75rem 1rem; margin: 0 0 1rem; line-height: 1.55; }
.nwrs-print-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.nwrs-pack h3 { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; }
.nwrs-pack-brand { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--nwrs-ink); padding-bottom: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.nwrs-pack-brand img { height: 36px; width: auto; }
.nwrs-pack-brand p { margin: 0; }
.nwrs-pack-head { display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nwrs-pack-head h2 { margin: 0.3rem 0 0.25rem; }
.nwrs-pack-period { margin: 0.2rem 0; font-weight: 800; color: var(--nwrs-ink); }
.nwrs-pack-head p { margin-bottom: 0; }

@media print {
  .nwrs-filterbar, .nwrs-sections, .nwrs-print-actions, .nwrs-copy-link, .nwrs-copy-status,
  .nwrs-inline-form, .nwrs-notes { display: none !important; }
  .nwrs-card, .nwrs-event, .nwrs-summary-strip > div { box-shadow: none; break-inside: avoid; }
  /* The pack is one long card; kept whole it was pushed to page two. */
  .nwrs-pack { border: 0; padding: 0; break-inside: auto !important; }
  .nwrs-chart canvas { max-width: 100%; }
  .nwrs-chip, .nwrs-delta { color: #000 !important; background: transparent !important; border-color: #000 !important; }
}

/* Phase 4C.26D: monolith presentation parity.
 *
 * The source's chart box is unframed inside its card, the composition is one
 * stacked strip with a legend, and the national position is a thin bar. Colours
 * are the source's own. Each is a class here because the policy refuses a style
 * attribute; none changes what a figure says.
 */
.nwrs-chart.nwrs-chart-strip { height: 44px; margin: 0.25rem 0 1.1rem; }
.nwrs-legend { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.65rem; }
.nwrs-legend li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 13px; color: #334155; }
.nwrs-legend-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.nwrs-legend-value { font-weight: 800; }
.nwrs-swatch { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; display: inline-block; }
.nwrs-swatch-gp { background: #0d5bb8; }
.nwrs-swatch-nurse { background: #00a651; }
.nwrs-swatch-dpc { background: #00b4d9; }
.nwrs-swatch-admin { background: #e52520; }
.nwrs-tone-gp { color: #0d5bb8; }
.nwrs-tone-nurse { color: #00a651; }
.nwrs-tone-dpc { color: #00b4d9; }
.nwrs-tone-admin { color: #e52520; }
.nwrs-tone-clinical { color: #16a34a; }
.nwrs-position-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 0.5rem; }
.nwrs-position-label { font-size: 11px; font-weight: 700; color: #52637a; text-transform: uppercase; letter-spacing: 0.07em; }
.nwrs-position-figure { font-size: 22px; font-weight: 900; line-height: 1; }
progress.nwrs-meter {
  display: block; width: 100%; height: 5px; margin: 0 0 0.6rem; border: 0; border-radius: 999px;
  overflow: hidden; background: #e2e8f0; -webkit-appearance: none; appearance: none;
}
progress.nwrs-meter::-webkit-progress-bar { background: #e2e8f0; border-radius: 999px; }
progress.nwrs-meter::-webkit-progress-value { background: currentColor; border-radius: 999px; }
progress.nwrs-meter::-moz-progress-bar { background: currentColor; border-radius: 999px; }
.nwrs-pill.is-good { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.nwrs-pill.is-watch { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.nwrs-pill.is-warning { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.nwrs-data { margin: 0 0 0.9rem; font-size: 0.8125rem; }
.nwrs-data > summary { cursor: pointer; color: var(--nwrs-quiet); }
.nwrs-card > .nwrs-lede-tight { font-size: 12px; margin: -6px 0 14px; }
.nwrs-table-plain tbody th { font-weight: 400; }
.nwrs-table-plain tbody td { font-weight: 800; }
.nwrs-card > p.nwrs-quiet { font-size: 12px; }
.nwrs-table-plain td.nwrs-num { text-align: right; }
.nwrs-th-sub { font-weight: 400; }
.nwrs-iqr { color: #94a3b8; font-size: 11px; }
.nwrs-table .nwrs-row-self th, .nwrs-table .nwrs-row-self td { background: #f3f8ff; font-weight: 800; }
.nwrs-peer-table th, .nwrs-peer-table td { white-space: nowrap; }
.nwrs-peer-table th, .nwrs-peer-table td { padding: 11px 8px; }
.nwrs-card-head h2 { margin: 0; font-size: 16px; font-weight: 800; color: #172033; }
.nwrs-card-figure { font-size: 20px; }
.nwrs-figure-gp { color: #0d5bb8; }
.nwrs-figure-clinical { color: #16a34a; }
.nwrs-figure-admin { color: #64748b; }
.nwrs-table tbody th { font-weight: 400; text-align: left; }
.nwrs-table tfoot th, .nwrs-table tfoot td { font-weight: 800; background: #f8fafc; border-bottom: 1px solid #edf2f7; text-align: left; }
.nwrs-table tfoot td.nwrs-num { text-align: right; }
.nwrs-card .nwrs-table caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nwrs-chart.nwrs-chart-260 { height: 260px; }
.nwrs-chart.nwrs-chart-220 { height: 220px; }
@media (max-width: 40rem) {
  /* Two columns: wrap the label rather than scroll the value out of sight. */
  .nwrs-table.nwrs-table-plain { display: table; white-space: normal; }
}
