/* Pay helper: source-backed classification lookup and full dated schedules. */
.pay-panel {
  --pay-blue: var(--blue, #005daa);
  --pay-ink: var(--ink, #142d41);
  --pay-muted: var(--muted, #52697b);
  --pay-line: var(--line, #dbe4eb);
  --pay-green: #087c36;
  --pay-selected: #e8f4ec;
  min-width: 0;
  padding: 3px 0 28px;
  color: var(--pay-ink);
  font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  scroll-margin-top: calc(var(--header-height, 80px) + 16px);
}

.pay-heading { margin-bottom: 22px; }
.pay-heading h1 {
  margin: 8px 0 10px;
  font-size: clamp(27px, 2.8vw, 36px);
  line-height: 1.2;
  letter-spacing: -.8px;
}
.pay-heading > p {
  max-width: 70ch;
  margin: 0;
  color: var(--pay-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pay-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: 12px;
  box-shadow: 0 3px 10px #173d5b03;
}
.pay-field { min-width: 0; }
.pay-field > label,
.pay-field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--pay-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.pay-field input,
.pay-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #acbfcd;
  border-radius: 7px;
  background-color: #fff;
  color: var(--pay-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.pay-field input::placeholder { color: var(--pay-muted); opacity: 1; }
.pay-field select:not([size]) { padding-right: 28px; }
.pay-field input:focus-visible,
.pay-field select:focus-visible {
  outline: 3px solid var(--pay-blue);
  outline-offset: 3px;
}
.pay-classification-input-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.pay-classification-input-row input { min-width: 0; flex: 1; }
.pay-classification-clear {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #6c8191;
  border-radius: 7px;
  background: #fff;
  color: var(--pay-blue);
  font: inherit;
  cursor: pointer;
}
.pay-classification-clear:focus-visible { outline: 3px solid var(--pay-blue); outline-offset: 3px; }
.pay-classification-results { min-width: 0; margin-top: 8px; }
.pay-classification-clear[hidden],
.pay-classification-results[hidden],
.pay-classification-options[hidden],
.pay-classification-empty[hidden] { display: none; }
.pay-field-hint,
.pay-classification-count {
  margin: 8px 0 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.65;
}
.pay-field-hint a { color: var(--pay-blue); }
.pay-classification-source { color: #294c64; font-weight: 650; }
.pay-effective-label { margin-top: 16px; font-weight: 650; }
.pay-effective-text {
  margin: 6px 0 0;
  padding: 12px 13px;
  border: 1px solid #d9e4ec;
  border-radius: 6px;
  background: #f5f9fc;
  color: #294c64;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Suggestions stay in page flow, with their own scroll area on narrow screens. */
.pay-classification-options {
  max-height: min(18rem, 35vh);
  max-height: min(18rem, 35dvh);
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #6c8191;
  border-radius: 7px;
  background: #fff;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #6c8191 #f8fafb;
}
.pay-classification-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--pay-ink);
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pay-classification-option:hover { background: #eff5fa; }
.pay-classification-option[aria-selected="true"] {
  background: #eaf3fa;
  color: #00487f;
  box-shadow: inset 3px 0 #10ac4e;
  font-weight: 700;
  outline: 2px solid var(--pay-blue);
  outline-offset: -2px;
}
.pay-classification-option:focus-visible {
  outline: 3px solid var(--pay-blue);
  outline-offset: -3px;
}
.pay-classification-empty {
  margin: 0;
  padding: 12px;
  border: 1px solid #6c8191;
  border-radius: 7px;
  color: var(--pay-muted);
  background: #f5f9fc;
  font-size: 1rem;
  line-height: 1.6;
}

.pay-selection-note {
  margin: 18px 0 25px;
  padding: 15px 18px;
  border: 1px solid #c8dece;
  border-left: 4px solid #10ac4e;
  border-radius: 7px;
  background: #f0f8f2;
  color: #173e28;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.pay-selection-note p { margin: 0; }
.pay-selection-note p + p { margin-top: 5px; }
.pay-selection-note strong { font-weight: 750; }
.pay-selection-note .pay-selection-detail {
  display: block;
  margin-top: 4px;
  color: #395845;
  font-size: 12px;
}
.pay-selection-note .pay-na-explanation {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #c4dacb;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.pay-selection-note .pay-review-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #c6d6e1;
  border-left: 3px solid var(--pay-blue);
  border-radius: 4px;
  background: #fff;
  color: #294c64;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.pay-selection-note.is-empty {
  border-color: #d4e1eb;
  border-left-color: var(--pay-blue);
  background: #edf4f9;
  color: #294c64;
}

.pay-table-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0 0 10px;
}
.pay-table-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.35px;
}
.pay-schedule-label {
  margin: 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pay-scroll-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pay-scroll-hint svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--pay-blue);
  flex-shrink: 0;
}
.pay-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 72dvh;
  overflow: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #bccdd9;
  border-radius: 9px;
  background: #fff;
  scrollbar-width: auto;
  scrollbar-color: #91a9bb #eef3f7;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}
.pay-table-wrap:focus-visible {
  outline: 3px solid var(--pay-blue);
  outline-offset: 4px;
}
.pay-table {
  width: 100%;
  min-width: max-content;
  margin: 0;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  color: #203747;
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.pay-table caption:not(.sr-only) {
  padding: 15px 18px;
  color: var(--pay-ink);
  background: #f4f8fb;
  border-bottom: 1px solid var(--pay-line);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  caption-side: top;
}
.pay-table th,
.pay-table td {
  padding: 12px 15px;
  min-width: 94px;
  border-right: 1px solid #e5ebf0;
  border-bottom: 1px solid #dfe7ed;
  background: #fff;
  text-align: right;
  white-space: nowrap;
}
.pay-table tr > :last-child { border-right: 0; }
.pay-table tbody tr:last-child > * { border-bottom: 0; }
.pay-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom-color: #bccdd9;
  background: #eaf2f8;
  color: #174967;
  font-size: 12px;
  font-weight: 700;
}
.pay-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 100px;
  padding-left: 16px;
  padding-right: 16px;
  border-right: 2px solid #bdcdd8;
  background: #f5f8fa;
  color: var(--pay-ink);
  text-align: left;
  font-weight: 700;
}
.pay-table thead tr > :first-child {
  z-index: 4;
  background: #e3edf5;
  color: #174967;
}
.pay-table tbody tr:nth-child(even) > td { background: #fafcfd; }
.pay-table tbody tr:hover > td { background: #f1f6fa; }
.pay-table .pay-row-selected > td,
.pay-table .pay-row-selected:nth-child(even) > td,
.pay-table .pay-row-selected:hover > td {
  border-top: 1px solid #a2c8af;
  border-bottom: 1px solid #a2c8af;
  background: var(--pay-selected);
  color: #153f27;
  font-weight: 700;
}
.pay-table .pay-row-selected > :first-child {
  border-top: 1px solid #a2c8af;
  border-bottom: 1px solid #a2c8af;
  background: #d9eddf;
  color: #153f27;
  box-shadow: inset 4px 0 #087c36;
}
.pay-selected-badge {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 5px;
  border: 1px solid #087c36;
  border-radius: 3px;
  background: #fff;
  color: #08642c;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pay-unavailable { color: var(--pay-muted); font-weight: 400; }

.pay-source-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 16px 0 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pay-source-links > span { font-weight: 600; }
.pay-source-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: var(--pay-blue);
  text-underline-offset: 3px;
  font-weight: 650;
}
.pay-source-links a svg { width: 13px; height: 13px; }
.pay-source-links a:focus-visible {
  outline: 3px solid var(--pay-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.pay-table-note,
.pay-error,
.pay-empty {
  margin: 13px 0 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.7;
}
.pay-error {
  padding: 15px 18px;
  border: 1px solid #c5d6e3;
  border-radius: 8px;
  background: #fff;
  color: var(--pay-ink);
}
.pay-error p { margin: 0 0 12px; }
.pay-error > a { display: inline-block; margin-right: 18px; }
.pay-error .pay-retry { margin-top: 5px; }
.pay-related-sources { display: grid; gap: 14px; margin-top: 22px; }
.pay-source-context {
  min-width: 0;
  padding: 19px 21px;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
}
.pay-source-context h3 { margin: 0 0 10px; color: var(--pay-ink); font-size: 15px; line-height: 1.5; }
.pay-source-excerpt {
  margin: 0 0 12px;
  padding-left: 13px;
  border-left: 3px solid #c7d8e5;
  color: #294658;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pay-source-context > a { color: var(--pay-blue); font-size: 12px; font-weight: 650; }

@media (max-width: 1100px) {
  .pay-controls { grid-template-columns: minmax(0, 1.25fr) minmax(190px, 1fr); gap: 18px; padding: 20px; }
  .pay-table th, .pay-table td { padding: 11px 13px; min-width: 90px; }
}
@media (max-width: 650px) {
  .pay-controls { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 20px; }
  .pay-heading > p { font-size: 13px; }
  .pay-field input, .pay-field select { font-size: 16px; }
  .pay-field > label { font-size: 14px; }
  .pay-selection-note { padding: 13px 15px; font-size: 13px; }
  .pay-selection-note .pay-selection-detail { font-size: 12px; }
  .pay-table-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pay-table-heading h2 { font-size: 20px; }
  .pay-table-wrap { max-height: 66dvh; border-radius: 7px; }
  .pay-table { font-size: 13px; }
  .pay-table th, .pay-table td { padding: 11px 12px; min-width: 88px; }
  .pay-table tr > :first-child { min-width: 90px; padding-left: 13px; padding-right: 13px; }
  .pay-scroll-hint { font-size: 11px; }
  .pay-source-links { gap: 7px 14px; font-size: 11px; }
  .pay-source-links a { min-height: 38px; }
  .pay-table-note { font-size: 11px; }
  .pay-source-context { padding: 17px; }
  .pay-source-excerpt { font-size: 12px; }
}
@media (max-width: 380px) {
  .pay-controls { padding: 17px; }
  .pay-heading h1 { font-size: 27px; }
  .pay-table { font-size: 12px; }
  .pay-table th, .pay-table td { min-width: 84px; }
}
@media (forced-colors: active) {
  .pay-table .pay-row-selected > *,
  .pay-table .pay-row-selected > :first-child { outline: 1px solid Highlight; outline-offset: -1px; }
  .pay-selected-badge { border-color: Highlight; }
  .pay-classification-option[aria-selected="true"] { outline: 2px solid Highlight; background: Highlight; color: HighlightText; }
}
@media print {
  .pay-controls, .pay-scroll-hint { display: none !important; }
  .pay-panel { display: block; padding: 0; }
  .pay-table-wrap { overflow: visible; max-height: none; border: 0; border-radius: 0; }
  .pay-table { font-size: 8pt; min-width: 0; width: 100%; }
  .pay-table th, .pay-table td { min-width: 0; padding: 5px; background: #fff !important; color: #000 !important; }
  .pay-table thead th, .pay-table tr > :first-child { position: static; min-width: 0; }
  .pay-selected-badge { color: #000; border-color: #000; }
  .pay-selection-note { break-inside: avoid; background: #fff; border: 1px solid #777; }
  .pay-table thead { display: table-header-group; }
  .pay-table tr { break-inside: avoid; }
}

/* Accessibility refinements shared across every pay schedule and classification. */
.pay-field input,.pay-field select{border-color:#6c8191;font-size:1rem;line-height:1.5}
.pay-field>label,.pay-heading>p,.pay-selection-note{font-size:1rem;line-height:1.7}
.pay-field-hint,.pay-classification-count,.pay-effective-text,.pay-selection-note .pay-selection-detail,.pay-selection-note .pay-na-explanation,.pay-selection-note .pay-review-note,.pay-schedule-label,.pay-scroll-hint,.pay-source-links,.pay-table-note,.pay-source-context>a,.pay-source-excerpt{font-size:.875rem;line-height:1.7}
.pay-source-links a,.pay-source-context>a,.pay-error>a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.pay-source-links{align-items:flex-start}
.pay-source-links a{white-space:normal;display:inline-block;padding:10px 0}
.pay-related-sources>h2{margin:0;font-size:1.25rem;line-height:1.5}
.pay-source-context h3{font-size:1rem;line-height:1.5}
.pay-selected-badge{font-size:.75rem;line-height:1.5}
.pay-table,.pay-table thead th{font-size:.875rem;line-height:1.6}
.pay-table-wrap{scroll-padding-top:60px;scroll-padding-bottom:12px}
@media(max-width:650px){.pay-controls{padding:16px}.pay-table{font-size:.875rem}.pay-table thead th{font-size:.875rem}.pay-field>label,.pay-heading>p,.pay-selection-note{font-size:1rem}.pay-table-note,.pay-scroll-hint,.pay-source-links,.pay-source-excerpt{font-size:.875rem}.pay-source-context{padding:16px}}
@media print{.pay-field-hint,.pay-source-links,.pay-table-note,.pay-source-context>a{font-size:9pt}.pay-table,.pay-table thead th{font-size:8pt}.pay-source-context>a{min-height:0}}

/* Compact overview plus a larger, source-backed selected-grade summary. */
.pay-table {
  width: 100%;
  min-width: max-content;
  font-size: .875rem;
  line-height: 1.5;
}
.pay-table th,
.pay-table td {
  min-width: 4rem;
  padding: 9px 7px;
}
.pay-table thead th {
  padding: 10px 7px;
  font-size: .875rem;
  line-height: 1.5;
}
.pay-table tr > :first-child {
  min-width: 4.75rem;
  padding-left: 10px;
  padding-right: 10px;
}
.pay-table .pay-row-selected > td,
.pay-table .pay-row-selected > :first-child {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
}
.pay-selected-summary {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 22px;
  border: 2px solid #087c36;
  border-radius: 10px;
  background: #fff;
  color: #142d41;
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--header-height, 80px) + 20px);
}
.pay-selected-summary h2 {
  margin: 0 0 10px;
  color: #142d41;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
}
.pay-selected-context {
  margin: 0 0 14px;
  color: #294c64;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
.pay-selected-effective {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid #005daa;
  background: #f5f9fc;
  color: #294c64;
  font-size: .9375rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pay-selected-rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.pay-selected-rate {
  min-width: 0;
  padding: 12px;
  border: 1px solid #6c8191;
  border-radius: 7px;
  background: #f0f8f2;
}
.pay-selected-rate dt {
  margin: 0 0 5px;
  color: #395845;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.pay-selected-rate dd {
  margin: 0;
  color: #153f27;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  overflow-wrap: normal;
  word-break: normal;
}
.pay-selected-caution {
  margin: 16px 0 0;
  color: #294c64;
  font-size: .9375rem;
  line-height: 1.7;
}
@media (max-width: 650px) {
  .pay-selected-summary { padding: 16px; margin-bottom: 22px; }
  .pay-selected-summary h2 { font-size: 1.375rem; }
  .pay-selected-rate { padding: 11px; }
  .pay-selected-effective { padding: 11px 12px; }
}
@media (max-width: 340px) {
  .pay-selected-summary { padding: 12px; }
  .pay-selected-rates { gap: 8px; }
  .pay-selected-rate { padding: 10px; }
}
@media (forced-colors: active) {
  .pay-selected-summary { border-color: Highlight; background: Canvas; color: CanvasText; }
  .pay-selected-summary h2,
  .pay-selected-context,
  .pay-selected-effective,
  .pay-selected-caution,
  .pay-selected-rate dt,
  .pay-selected-rate dd { color: CanvasText; }
  .pay-selected-rate { border-color: CanvasText; background: Canvas; }
  .pay-selected-effective { border-left-color: Highlight; background: Canvas; }
}
@media print {
  .pay-selected-summary { margin: 0 0 14pt; padding: 10pt; border: 1pt solid #000; border-radius: 0; background: #fff; color: #000; }
  .pay-selected-summary h2 { font-size: 14pt; color: #000; break-after: avoid; }
  .pay-selected-context,
  .pay-selected-effective,
  .pay-selected-caution { color: #000; font-size: 10pt; line-height: 1.5; }
  .pay-selected-effective { background: #fff; border-left-color: #000; padding: 5pt 8pt; }
  .pay-selected-rates { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6pt; }
  .pay-selected-rate { padding: 6pt; border-color: #777; background: #fff; break-inside: avoid; }
  .pay-selected-rate dt { font-size: 10pt; color: #000; }
  .pay-selected-rate dd { font-size: 14pt; color: #000; }
  .pay-table { min-width: 0; width: 100%; max-width: 100%; font-size: 8pt; }
  .pay-table th,
  .pay-table td,
  .pay-table thead th,
  .pay-table tr > :first-child { min-width: 0; padding: 4pt 3pt; font-size: 8pt; white-space: normal; }
  .pay-table .pay-row-selected > td,
  .pay-table .pay-row-selected > :first-child { padding-top: 5pt; padding-bottom: 5pt; font-size: 9pt; }
}

@media print {
  /* Print only the active reader view; selected pay summaries may paginate. */
  .reader[hidden] { display: none !important; }
}

/* Keep all eleven selected steps in one equal-size, locally scrollable row. */
.pay-selected-scroll-hint {
  margin: 0 0 10px;
  color: #294c64;
  font-size: .9375rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.pay-selected-rates-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  scroll-padding-inline: 3px;
}
.pay-selected-rates-scroll:focus-visible {
  outline: 3px solid #005daa;
  outline-offset: 4px;
  border-radius: 3px;
}
.pay-selected-rates {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 10rem;
  align-items: stretch;
  width: max-content;
  max-width: none;
  min-width: 0;
  gap: 10px;
  padding: 4px 3px 8px;
}
.pay-selected-rate {
  min-height: 7rem;
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: start;
}
.pay-selected-rate dd {
  font-size: 1.5rem;
  font-weight: 600;
  overflow-wrap: normal;
  word-break: normal;
}
@media (forced-colors: active) {
  .pay-selected-rates-scroll:focus-visible { outline-color: Highlight; }
}
@media print {
  .pay-selected-scroll-hint { display: none; }
  .pay-selected-rates-scroll { width: 100%; max-width: 100%; overflow: visible; }
  .pay-selected-rates {
    width: 100%;
    max-width: 100%;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6pt;
    padding: 0;
  }
  .pay-selected-rate { min-height: 0; break-inside: avoid; }
  .pay-selected-rate dd { font-size: 14pt; font-weight: 600; }
}
