.payroll-page { background: #f7faf9; }
.payroll-page .document-shell { width: min(1180px, calc(100% - 40px)); }
.payroll-page main { padding-top: 26px; }
.pay-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 28px; }
.pay-heading h1 { font-size: 2rem; line-height: 1.5; margin: 0; }
.pay-heading p { margin: 6px 0 0; line-height: 1.8; font-size: 1rem; color: #526b63; }
.pay-heading .pay-eyebrow { font-size: .875rem; font-weight: 700; color: #287254; margin: 0 0 4px; }
.pay-basis-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; color: #396e63; text-underline-offset: 5px; }
.pay-tool-nav { border-block: 1px solid #cdded7; }
.pay-tool-nav [role="tablist"] { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pay-tool-nav [role="tab"] { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 62px; padding: 10px 8px; background: transparent; border-bottom: 3px solid transparent; color: #526b63; font-size: .9375rem; font-weight: 500; word-break: keep-all; }
.pay-tool-nav [role="tab"]:hover { background: #eaf2ef; }
.pay-tool-nav [aria-selected="true"] { border-bottom-color: #287856; background: #e1f0e7; color: #1f6044; font-weight: 700; }
.pay-privacy { display: flex; align-items: start; flex-wrap: wrap; gap: 4px 8px; color: #547064; font-size: .875rem; line-height: 1.8; margin: 16px 0 24px; }
.pay-privacy .icon { width: 17px; height: 17px; margin-top: 3px; }
.pay-privacy a { color: #416875; text-underline-offset: 3px; }
.pay-panel { outline-offset: 5px; }
.pay-workbench { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; border-block: 1px solid #d3e0dc; background: #fff; }
.pay-entry { padding: 24px 30px 28px 0; min-width: 0; }
.pay-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-panel h2 { margin: 0; font-size: 1.25rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.pay-icon-action { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: #526b63; background: #fff; border: 1px solid #d4e1da; border-radius: 5px; }
.pay-icon-action:hover { background: #ecf4ef; }
.pay-description { color: #5c706a; font-size: .9375rem; line-height: 1.8; margin: 8px 0 22px; word-break: keep-all; overflow-wrap: anywhere; }
.pay-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.pay-field { min-width: 0; }
.pay-field > label { display: block; margin-bottom: 7px; font-size: .875rem; line-height: 1.7; font-weight: 500; color: #36584b; }
.pay-field input, .pay-field select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #bdcfc5; border-radius: 4px; background: #fff; padding: 10px 12px; font-size: 1rem; color: #273f36; font-variant-numeric: tabular-nums; }
.pay-field select { padding-right: 24px; }
.pay-field small { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.75; color: #61766d; overflow-wrap: anywhere; }
.pay-input-unit { position: relative; }
.pay-input-unit input { padding-right: 48px; }
.pay-input-unit > span { position: absolute; right: 12px; top: 12px; color: #6e8177; font-size: .875rem; pointer-events: none; }
.pay-field input:focus-visible, .pay-field select:focus-visible { outline: 2px solid #288464; outline-offset: 2px; }
.pay-insurance { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 0; border-top: 1px solid #e0e9e4; margin: 22px 0 0; padding: 14px 0 0; min-width: 0; }
.pay-insurance legend { float: left; width: 100%; margin-bottom: 8px; font-size: .875rem; color: #526d60; }
.pay-check { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .875rem; line-height: 1.7; color: #385847; }
.pay-check input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #2c8060; margin: 0; }
.pay-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.pay-submit-row span { font-size: .8125rem; color: #6a7d73; }
.pay-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 24px; border: 1px solid #216949; border-radius: 5px; font-size: .9375rem; font-weight: 700; background: #287b57; color: #fff; }
.pay-submit:hover { background: #206144; }
.pay-error { border-left: 3px solid #ad4955; padding: 12px; background: #fbecf0; color: #923c48; font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
.pay-inline-notice { margin-bottom: 20px; padding: 12px 14px; background: #eef4fa; color: #405f73; font-size: .875rem; line-height: 1.8; border-left: 3px solid #8fb0c5; }
.pay-result { background: #eef5f8; border-left: 1px solid #d1e1e5; padding: 26px 28px; min-width: 0; align-self: stretch; }
.pay-result-kicker { color: #466c7b; font-size: .8125rem; font-weight: 600; margin: 0 0 18px; }
.pay-result-empty { display: flex; flex-direction: column; align-items: start; justify-content: center; min-height: 210px; color: #577480; gap: 8px; }
.pay-result-empty .icon { width: 30px; height: 30px; margin-bottom: 8px; }
.pay-result-empty strong { font-size: 1.125rem; }
.pay-result-empty p { margin: 0; font-size: .875rem; line-height: 1.8; }
.pay-result-lead { padding-bottom: 18px; }
.pay-result-lead > p { color: #4a6875; font-size: .9375rem; margin: 0 0 8px; }
.pay-result-lead strong { display: block; font-size: 1.875rem; line-height: 1.5; font-weight: 700; color: #234b5e; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-result-lead small { display: block; color: #5b7581; font-size: .8125rem; line-height: 1.8; margin-top: 6px; }
.pay-distribution { display: flex; height: 8px; width: 100%; overflow: hidden; background: #cedfe5; }
.pay-distribution > span:first-child { background: #88bfa9; }
.pay-distribution > span:last-child { background: #dba6b0; }
.pay-distribution-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: #546e79; margin: 8px 0 18px; }
.pay-breakdown { margin: 0; border-top: 1px solid #cfdee5; }
.pay-breakdown > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dce7eb; font-size: .875rem; line-height: 1.7; align-items: start; }
.pay-breakdown dt { color: #4d6874; min-width: 0; overflow-wrap: anywhere; }
.pay-breakdown dd { margin: 0; color: #2d505d; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 215px; }
.pay-breakdown > div:last-child { font-weight: 700; }
.pay-result-note { margin: 16px 0 0; font-size: .8125rem; line-height: 1.9; color: #526f7d; }
.pay-result-note.is-warning { color: #854956; border-left: 2px solid #d6a0ab; padding-left: 10px; }
.pay-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; padding: 8px 14px; margin-top: 20px; background: #fff; border: 1px solid #b6cfd8; border-radius: 4px; color: #365c6e; font-size: .875rem; }
.pay-download:hover { background: #e4eef3; }
.pay-result-caution { font-size: .8125rem; line-height: 1.9; color: #607785; margin: 16px 0 0; }
.pay-method { padding: 30px 0 10px; max-width: 960px; font-size: .9375rem; line-height: 1.95; color: #4b665b; word-break: keep-all; overflow-wrap: anywhere; }
.pay-method h3 { font-size: 1.0625rem; color: #325343; margin: 0 0 14px; }
.pay-method p { margin: 0 0 14px; }
.pay-method details { border-block: 1px solid #d5e3db; margin-top: 20px; padding: 12px 0; }
.pay-method summary { cursor: pointer; min-height: 32px; font-weight: 500; }
.pay-method a, .pay-policy a { color: #2c6b56; text-underline-offset: 4px; overflow-wrap: anywhere; }
.pay-sources { padding-left: 22px; font-size: .875rem; line-height: 1.9; }
.pay-sources li { padding: 4px 0; }
.pay-policy { border-top: 1px solid #cadbd2; padding-top: 28px; margin-top: 24px; scroll-margin-top: 24px; }
.pay-policy h2 { font-size: 1.25rem; margin: 0 0 22px; }
.pay-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pay-policy h3 { font-size: .9375rem; margin: 0 0 10px; color: #365746; }
.pay-policy p { margin: 0; color: #587065; font-size: .875rem; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .pay-tool-nav [role="tab"] { flex-direction: column; gap: 5px; font-size: .875rem; min-height: 76px; }
  .pay-entry { padding-right: 22px; }
  .pay-result { padding: 24px 20px; }
}
@media (max-width: 760px) {
  .payroll-page .document-shell { width: calc(100% - 32px); }
  .payroll-page main { padding-top: 20px; }
  .pay-heading { padding-bottom: 20px; gap: 8px; }
  .pay-heading h1 { font-size: 1.625rem; }
  .pay-heading > div { width: 100%; }
  .pay-basis-link { font-size: .8125rem; min-height: 36px; }
  .pay-heading p { font-size: .9375rem; }
  .pay-tool-nav [role="tablist"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay-tool-nav [role="tab"] { flex-direction: row; min-height: 52px; padding: 10px 4px; gap: 5px; border-bottom-width: 2px; font-size: .8125rem; }
  .pay-tool-nav .icon { width: 17px; height: 17px; }
  .pay-privacy { margin: 14px 0 20px; font-size: .8125rem; }
  .pay-workbench { grid-template-columns: minmax(0, 1fr); }
  .pay-entry { padding: 18px 0 24px; background: #f7faf9; }
  .pay-panel h2 { font-size: 1.125rem; }
  .pay-description { font-size: .875rem; margin-bottom: 20px; }
  .pay-fields { gap: 16px 14px; }
  .pay-field:has(select[id$="-direction"]) { grid-column: 1 / -1; }
  .pay-field > label { font-size: .8125rem; }
  .pay-field small { font-size: .8125rem; }
  .pay-result { border-left: 0; border-top: 1px solid #d0e0e6; padding: 22px 18px; }
  .pay-result-lead strong { font-size: 1.75rem; }
  .pay-result-empty { min-height: 160px; }
  .pay-submit { flex: 1 1 160px; }
  .pay-submit-row span { flex-shrink: 0; }
  .pay-policy-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pay-method { font-size: .875rem; padding-top: 24px; }
}
@media (max-width: 380px) {
  .pay-fields { grid-template-columns: minmax(0, 1fr); }
  .pay-tool-nav [role="tab"] { flex-direction: column; min-height: 70px; }
  .pay-breakdown > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pay-breakdown dd { max-width: none; }
}
