/* Shared semantic collection presentation; domain cell content remains page-owned. */
:is(.collection, #report-root .collection) {
  --collection-line: var(--border, #dbe3e8);
  --collection-wash: var(--surface-alt, #f5f8fa);
  --collection-ink: var(--text, #172d3e);
  --collection-accent: var(--accent, #176c71);
  color: var(--collection-ink);
}
:is(.collection, #report-root .collection) .collection-toolbar,
:is(.collection, #report-root .collection) .collection-controls,
:is(.collection, #report-root .collection) .collection-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
:is(.collection, #report-root .collection) .collection-toolbar {
  margin-block: 0.75rem;
  gap: 0.65rem;
  width: 100%;
}
:is(.collection, #report-root .collection) .collection-controls {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}
:is(.collection, #report-root .collection) .collection-filters {
  width: 100%;
}
:is(.collection, #report-root .collection) .collection-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
:is(.collection, #report-root .collection) .collection-toolbar button,
:is(.collection, #report-root .collection) .collection-toolbar select,
:is(.collection, #report-root .collection) .collection-toolbar input,
:is(.collection, #report-root .collection) .collection-toolbar summary {
  font: inherit;
  font-size: 0.8125rem;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid var(--collection-line);
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  min-height: 2rem;
}
:is(.collection, #report-root .collection) .collection-toolbar button,
:is(.collection, #report-root .collection) .collection-toolbar summary {
  cursor: pointer;
}
:is(.collection, #report-root .collection) .collection-toolbar button:disabled {
  opacity: 0.5;
  cursor: default;
}
:is(.collection, #report-root .collection)
  :is(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--collection-accent);
  outline-offset: 2px;
}
:is(.collection, #report-root .collection) .collection-status {
  flex-basis: 100%;
  font-size: 0.8125rem;
  margin: 0;
  min-height: 0;
}
:is(.collection, #report-root .collection) .collection-status:empty {
  display: none;
}
:is(.collection, #report-root .collection) .collection-modified {
  font-size: 0.75rem;
  font-style: italic;
}
:is(.collection, #report-root .collection) .collection-menu {
  position: relative;
}
:is(.collection, #report-root .collection) .collection-menu summary {
  list-style: none;
}
:is(.collection, #report-root .collection)
  .collection-menu
  summary::-webkit-details-marker {
  display: none;
}
:is(.collection, #report-root .collection) .collection-menu[open] > summary {
  background: var(--collection-wash);
}
:is(.collection, #report-root .collection) .collection-menu-panel {
  position: absolute;
  inset-block-start: calc(100% + 0.25rem);
  inset-inline-start: 0;
  inset-inline-end: auto;
  z-index: 40;
  box-sizing: border-box;
  min-width: min(20rem, calc(100vw - 2rem));
  max-width: min(38rem, 85vw);
  max-height: 65vh;
  overflow: auto;
  padding: 0.75rem;
  background: var(--surface, #fff);
  border: 1px solid var(--collection-line);
  border-radius: 0.4rem;
  box-shadow: 0 5px 20px #0002;
  font-size: 0.8125rem;
}
:is(.collection, #report-root .collection) .collection-column-option {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.3rem 0;
}
:is(.collection, #report-root .collection) .collection-column-option label {
  flex: 1;
  min-width: 9rem;
}
:is(.collection, #report-root .collection)
  .collection-column-option
  input[type="number"] {
  width: 5rem;
}
:is(.collection, #report-root .collection)
  .collection-column-option
  input[type="checkbox"] {
  min-height: unset;
}
:is(.collection, #report-root .collection) .collection-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--collection-line);
  border-radius: 0.4rem;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) caption {
  text-align: start;
  font-weight: 600;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) th,
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--collection-line);
  border-right: 0;
  vertical-align: middle;
  text-align: start;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) th {
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  background: var(--collection-wash);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) th button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}
:is(.collection, #report-root .collection)
  .collection-table:not(.collection-table--report)
  tbody
  > tr:not(.detail):not(.aggrow)
  > td {
  background: transparent;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) tbody > tr.sel,
:is(.collection, #report-root .collection)
  .collection-table:not(.collection-table--report)
  tbody
  > tr[aria-selected="true"],
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) tbody tr:hover {
  background: var(--collection-wash);
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) tbody tr:focus {
  outline: 2px solid var(--collection-accent);
  outline-offset: -2px;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) .num,
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) .numeric,
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) [data-numeric] {
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) [hidden] {
  display: none !important;
}
:is(.collection, #report-root .collection) .collection-table:not(.collection-table--report) tfoot {
  font-weight: 600;
  background: var(--collection-wash);
}
:is(.collection, #report-root .collection)[data-density="compact"]
  .collection-table:not(.collection-table--report)
  :is(th, td) {
  padding: 0.35rem 0.65rem;
}
:is(.collection, #report-root .collection)
  .collection-table:not(.collection-table--report)
  [data-collection-empty] {
  padding: 2rem;
  text-align: center;
}
:is(.collection, #report-root .collection) .collection-sr-only {
  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: 640px) {
  :is(.collection, #report-root .collection) .collection-controls {
    gap: 0.4rem;
  }
  :is(.collection, #report-root .collection) .collection-menu-panel {
    inset-inline-start: 0;
    inset-inline-end: auto;
    min-width: min(17rem, calc(100vw - 2rem));
  }
  :is(.collection, #report-root .collection) .collection-toolbar button {
    padding: 0.4rem;
  }
}
@media print {
  :is(.collection, #report-root .collection) .collection-toolbar {
    display: none !important;
  }
  :is(.collection, #report-root .collection) .collection-scroll {
    overflow: visible;
    border: 0;
  }
  :is(.collection, #report-root .collection) .collection-table thead {
    display: table-header-group;
  }
  :is(.collection, #report-root .collection) .collection-table tr {
    break-inside: avoid;
  }
}

:is(.collection, #report-root .collection) .collection-open {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--collection-accent);
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
:is(.collection, #report-root .collection) .collection-open:hover {
  text-decoration: underline;
}

/* Compact toolbar composition is shared; the page supplies its mount location. */
:is(.collection, #report-root .collection) .collection-toolbar--compact,
:is(.collection, #report-root .collection) .collection-toolbar--compact > .collection-controls {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
:is(.collection, #report-root .collection) .collection-toolbar--compact > .collection-status {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface, #fff);
  z-index: 41;
}
:is(.collection, #report-root .collection) .collection-toolbar--compact { position: relative; }

/* The report preset inherits the established report.css table appearance.
   Shared state, semantic attributes and controls do not dictate its visual skin. */
#report-root .collection-table--report .collection-sort,
#report-root .collection-table--report .collection-open {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  min-height: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
}
#report-root .collection-table--report [hidden] { display: none !important; }
#report-root .collection-table--report tbody tr:focus {
  outline: 2px solid var(--series-1);
  outline-offset: -2px;
}
#report-root .collection[data-density="comfortable"] .collection-table--report td {
  padding-top: 8px;
  padding-bottom: 8px;
}
/* Explicit layout rules must not reveal controls disabled for a presentation. */
:is(.collection, #report-root .collection) .collection-toolbar [hidden] {
  display: none !important;
}
/* Shared Display surface: table-defined fields, switches and property chips. */
:is(.collection, #report-root .collection) .collection-display-panel {
  width: 324px;
  min-width: 0;
  max-width: calc(100vw - 24px);
  max-height: min(78vh, 760px);
  padding: 0;
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 30px #0002;
  font-size: 12px;
  color: var(--ink, var(--collection-ink));
}
:is(.collection, #report-root .collection) .collection-display-section {
  padding: 14px 16px;
  margin: 0;
  border-bottom: 1px solid var(--collection-line);
}
:is(.collection, #report-root .collection) .collection-display-section:last-child { border-bottom: 0; }
:is(.collection, #report-root .collection) .collection-display-section h4 {
  font: inherit;
  font-weight: 600;
  margin: 0 0 10px;
  color: inherit;
}
:is(.collection, #report-root .collection) .collection-presentations {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
:is(.collection, #report-root .collection) .collection-presentations button {
  flex: 1;
  min-height: 28px;
  border-radius: 18px;
  padding: 3px 10px;
  font-size: 12px;
  background: var(--collection-wash);
}
:is(.collection, #report-root .collection) .collection-presentations [aria-pressed="true"] {
  background: var(--ring, #e7ebef);
  color: var(--ink, var(--collection-ink));
  font-weight: 600;
}
:is(.collection, #report-root .collection) label.collection-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  width: 100%;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted, #68717d);
}
:is(.collection, #report-root .collection) .collection-option-row > span { min-width: 0; }
:is(.collection, #report-root .collection) .collection-option-row select {
  flex: 0 1 148px;
  width: 148px;
  min-width: 0;
  min-height: 25px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 12px;
  background: var(--collection-wash);
  color: var(--ink, var(--collection-ink));
}
:is(.collection, #report-root .collection) input.collection-switch {
  appearance: none;
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #91969c;
  cursor: pointer;
}
:is(.collection, #report-root .collection) input.collection-switch::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
}
:is(.collection, #report-root .collection) input.collection-switch:checked { background: var(--series-1, #6366f1); }
:is(.collection, #report-root .collection) input.collection-switch:checked::before { transform: translateX(12px); }
:is(.collection, #report-root .collection) .collection-property-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -27px 0 12px 120px;
}
:is(.collection, #report-root .collection) .collection-property-actions button {
  padding: 0;
  min-height: 18px;
  font-size: 10px;
  color: var(--muted, #68717d);
  border: 0;
  background: transparent;
}
:is(.collection, #report-root .collection) .collection-property-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
:is(.collection, #report-root .collection) label.collection-property-pill {
  display: inline-flex;
  position: relative;
  margin: 0;
  padding: 0;
  gap: 0;
  font-size: 11px;
  font-weight: 500;
}
:is(.collection, #report-root .collection) .collection-property-pill span {
  display: block;
  padding: 4px 8px;
  border: 1px solid var(--collection-line);
  border-radius: 15px;
  line-height: 1.1;
  color: var(--muted, #68717d);
  background: transparent;
}
:is(.collection, #report-root .collection) .collection-property-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
:is(.collection, #report-root .collection) .collection-property-pill input:checked + span {
  color: var(--ink, var(--collection-ink));
  background: var(--ring, #e7ebef);
  border-color: transparent;
}
:is(.collection, #report-root .collection) .collection-property-pill input:focus-visible + span {
  outline: 2px solid var(--collection-accent);
  outline-offset: 2px;
}
:is(.collection, #report-root .collection) .collection-property-pill input:disabled { cursor: default; }
:is(.collection, #report-root .collection) .collection-column-layout > summary {
  border: 0;
  padding: 6px 0;
  background: transparent;
  min-height: 0;
  font-size: 11px;
  color: var(--muted, #68717d);
  border-radius: 0;
}
:is(.collection, #report-root .collection) .collection-column-layout { margin-top: 8px; }
:is(.collection, #report-root .collection) .collection-column-layout-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}
:is(.collection, #report-root .collection) .collection-column-layout-row > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(.collection, #report-root .collection) .collection-column-layout-row button {
  padding: 2px 5px;
  min-height: 25px;
}
:is(.collection, #report-root .collection) .collection-column-layout-row input {
  width: 54px;
  min-width: 0;
  padding: 2px 4px;
  min-height: 25px;
  font-size: 11px;
}

:is(.collection, #report-root .collection) .collection-views {
  width: 100%;
  min-width: 17rem;
}
:is(.collection, #report-root .collection) .collection-views-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--collection-line);
}
:is(.collection, #report-root .collection) .collection-views-header .collection-modified {
  margin-right: auto;
}
:is(.collection, #report-root .collection) .collection-view-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}
:is(.collection, #report-root .collection) .collection-view-row .collection-view-name {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
}
:is(.collection, #report-root .collection) .collection-view-row .collection-view-name:hover,
:is(.collection, #report-root .collection) .collection-view-row .collection-view-name[aria-pressed="true"] {
  background: var(--collection-wash);
  color: var(--collection-accent);
}
:is(.collection, #report-root .collection) .collection-view-default {
  font-size: 0.7rem;
  color: var(--muted, #667085);
}
:is(.collection, #report-root .collection) .collection-view-row .collection-view-more {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.15rem;
}
:is(.collection, #report-root .collection) .collection-views-empty {
  color: var(--muted, #667085);
  padding: 0.5rem;
}

:is(.collection, #report-root .collection) .collection-views-title {
  margin: 0;
  font: inherit;
  font-weight: 600;
}
:is(.collection, #report-root .collection) .collection-views-header .collection-view-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
}
:is(.collection, #report-root .collection) .collection-view-copy svg {
  display: block;
  flex-shrink: 0;
}

:is(.collection, #report-root .collection) .collection-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
}
:is(.collection, #report-root .collection) .collection-icon-button svg {
  display: block;
  flex-shrink: 0;
}

/* Native page skins can opt into shared density without replacing their row styling. */
:is(.collection, #report-root .collection)[data-density="compact"] [data-collection-table] td {
  padding-block: 5px;
}

/* Shared table header: search/actions above filters/count, as in Loan book.
   Pages provide the inputs, filter chips and results; geometry belongs here. */
.collection-workbench {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface, var(--card, #fff));
  border: 1px solid var(--ring, var(--line, #dbe3e8));
  border-radius: 10px 10px 0 0; padding: 9px 12px; margin-top: 10px;
}
.collection-workbench__row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0;
}
.collection-workbench__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.collection-workbench__query { min-height: 26px; }
.collection-workbench__query > :first-child:not(.collection-workbench__count) { flex: 1 1 auto; min-width: 0; }
.collection-workbench__filters > form { padding: 0; border: 0; }
.collection-workbench__count { margin-left: auto; flex: 0 1 auto; min-width: 0; padding-left: 10px; }
.collection-workbench__count > * { white-space: normal; }
.collection-search { position: relative; display: flex; flex: 1 1 320px; min-width: min(200px, 100%); max-width: 640px; }
.collection-search input[type=search] {
  box-sizing: border-box; width: 100%; min-width: 0; padding: 7px 30px 7px 10px;
  background: var(--page, var(--bg, #f4f6f9)); color: var(--ink);
  border: 1px solid var(--ring, var(--line, #dbe3e8)); border-radius: 8px; font: inherit; font-size: 13px;
}
.collection-search__key, .collection-filter-key {
  pointer-events: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; font-weight: 600; line-height: 1; color: var(--muted);
  background: var(--page, var(--bg, #f4f6f9)); border: 1px solid var(--ring, var(--line, #dbe3e8));
  border-radius: 4px; padding: 3px 5px;
}
.collection-search__key { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }
.collection-search:focus-within .collection-search__key { display: none; }

/* One filter renderer and visual treatment for client and server collections. */
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box; min-width: 0; max-width: calc(100vw - 24px);
  overflow: auto; background: var(--surface, var(--card, #fff)); color: var(--ink, #172d3e);
  border: 1px solid var(--ring, var(--line, #dbe3e8)); border-radius: 10px;
  padding: 6px; box-shadow: 0 8px 28px rgb(0 0 0 / .22); font: 13px/1.4 system-ui, sans-serif;
}
.collection-filter-menu::backdrop { background: transparent; }
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu input {
  width: 100%; box-sizing: border-box; background: transparent; border: 0;
  border-bottom: 1px solid var(--grid, var(--line, #dbe3e8)); border-radius: 0;
  padding: 7px 8px 8px; font: inherit; color: inherit; margin-bottom: 4px;
}
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .opts { max-height: 270px; overflow-y: auto; }
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; box-sizing: border-box;
  text-align: left; border: 0; background: none; color: inherit; font: inherit;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .item:is(:hover,.active) { background: var(--wash, var(--bg, #f4f6f9)); }
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .n { margin-left: auto; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; padding-left: 10px; }
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .ck { width: 14px; flex: none; text-align: center; color: var(--series-1, var(--blue)); font-weight: 700; }
:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu .back { display: block; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 5px 8px 2px; cursor: pointer; }
:is(.collection-filter-chips, #report-root .collection-filter-chips) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
:is(.collection-filter-chips, #report-root .collection-filter-chips) .fchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 9px; max-width: 100%; box-sizing: border-box;
  background: var(--surface, var(--card, #fff)); border: 1px solid var(--ring, var(--line, #dbe3e8));
  border-radius: 8px; color: var(--muted); font: 12.5px/1.4 system-ui, sans-serif;
}
:is(.collection-filter-chips, #report-root .collection-filter-chips) .filter-chip-edit { border: 0; background: none; padding: 0; min-width: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
:is(.collection-filter-chips, #report-root .collection-filter-chips) .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 5px; border-radius: 5px; }
:is(.collection-filter-chips, #report-root .collection-filter-chips) .addf { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px dashed var(--muted); border-radius: 8px; background: transparent; color: var(--muted); font: 12.5px/1.4 system-ui, sans-serif; cursor: pointer; }
:is(.collection-filter-chips, .collection-filter-menu, #report-root .collection-filter-chips, #report-root .collection-filter-menu) .fkbd { font: 600 11px/1 ui-monospace, monospace; color: var(--muted); border: 1px solid var(--ring, var(--line, #dbe3e8)); border-radius: 4px; padding: 2px 4px; }

:is(.collection-filter-menu, #report-root .collection-filter-menu).fmenu input:focus-visible { outline: 2px solid var(--collection-accent, #176c71); outline-offset: -2px; }

/* Typed cells share alignment and content styling across Jinja and browser renderers. */
.collection-table [data-numeric] { text-align: right; font-variant-numeric: tabular-nums; }
.collection-table .collection-cell-link { color: inherit; font-weight: 500; text-decoration: none; }
.collection-table .collection-cell-link:hover { text-decoration: underline; }
.collection-table .collection-cell-secondary { color: var(--muted, #637485); font-size: .85rem; }
.collection-table .collection-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border: 1px solid var(--line, #d8dee6); border-radius: 4px;
  padding: 1px 6px; color: var(--navy, #172d3e);
}
.collection-table .collection-badge--muted { color: var(--muted, #637485); }
.collection-table .collection-badge--danger { color: #8a1f1f; border-color: currentColor; }
.collection-table .collection-badge--success { color: #236b42; border-color: currentColor; }
.collection-table .collection-badge--warning { color: #855c16; border-color: currentColor; }

/* Default grouped-table skin; page definitions may retain existing class names. */
.collection-table .collection-group td { background:var(--surface-alt, #f3f6f8); border-top:1px solid var(--line, #d8dee6); font-weight:600; }
.collection-table .collection-group-count { margin-left:8px; color:var(--muted, #637485); font-size:.8em; font-weight:400; white-space:nowrap; }
.collection-table .collection-member { padding-left:25px; }
.collection-table .collection-rollup { margin-left:4px; color:var(--muted, #637485); font-size:.8em; font-weight:400; }
