/* NAV regime (business dates >= NAV_REGIME_START; nav-regime.js).
   While a NAV-regime date has no Mailroom NAV row yet, nav-regime.js
   applyPendingClass puts `nav-pending` on <html>: every region marked
   data-nav-gated shows nothing computed until the NAV lands. visibility (not
   display) keeps the page layout from jumping when the NAV arrives. */
html.nav-pending [data-nav-gated] {
  visibility: hidden !important;
}
/* Portfolio page: the hidden register keeps its width, so on a wide desktop
   it would still overflow the (un-gated) scrolling card around it — a card
   with nothing visible to focus, which Chrome then makes a keyboard tab stop
   with a focus ring that pans invisible columns. Pending only: clip it. */
html.nav-pending .portfolio-page-workspace[data-nav-gated] {
  overflow: hidden !important;
}

/* FUNDSIM · counterparty group rows in the limits table (NAV regime only,
   fund-simulation.js renderRuleSummary): they follow the bank rows and reuse
   the bank rows' status chips and Over/Low row tints. The name column is a
   fixed 24% of a nowrap table, so a group's name may wrap and its neutral
   "Group" tag sits on its own line under it instead of running into the
   Used / Limit column. A thin top rule sets the first group row off from the
   banks. */
.limit-summary-table tr:not(.limit-group-row) + tr.limit-group-row td {
  border-top: 1px solid rgba(103, 232, 215, 0.22);
}
.limit-summary-table tr.limit-group-row td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
.limit-group-tag {
  display: block;
  width: max-content;
  margin-top: 3px;
  padding: 1px 6px;
  border: 1px solid rgba(139, 151, 170, 0.45);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* FUNDSIM · Portfolio register, NAV regime (fund-simulation.js renderExcelRows
   adds .nav-maturity-columns only on NAV-regime dates). Two columns,
   "Maturity amount" and "Maturity MOP Equivalent", sit after "MOP Equivalent",
   so the styles.css min-widths keyed by position (sized for the 10 stored
   headers) would land on the wrong columns: the two new amounts get the amount
   columns' width, and the share / rate columns keep the widths they had as
   columns 9 and 10. A legacy date never carries the class. The register wrap
   already scrolls horizontally (also at <=900px, where its first column is
   sticky), so the wider table pans instead of squeezing. */
/* Twelve columns only fit a wide desktop without panning if the long
   headers may break onto two lines (the header row keeps its height) and the
   amount columns shrink to the width of a formatted amount. */
.portfolio-page .fund-excel-table.nav-maturity-columns thead th:nth-child(n + 5) {
  white-space: normal !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(3) {
  min-width: 108px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(5) {
  min-width: 64px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(6) {
  min-width: 88px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(7),
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(8),
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(9) {
  min-width: 118px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(10) {
  min-width: 126px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(11) {
  min-width: 78px !important;
}
.portfolio-page .fund-excel-table.nav-maturity-columns th:nth-child(12) {
  min-width: 92px !important;
}
