/*
  2026-10-16 rider category navigation
  Shared categories with a desktop sidebar and mobile/tablet quick navigation.
  Settlement values, payment states and database writes remain unchanged.
*/

.rider-mobile-quick-nav {
  display: none;
}

.rider-workspace-shell {
  display: contents;
}

.rider-workspace-shell:has(> #rider[hidden]) {
  display: none !important;
}

.rider-desktop-sidebar {
  display: none;
}

#rider {
  scroll-margin-top: 100px;
}

/* Keep one category visible on every viewport, without moving rider children. */
#rider[data-rider-mobile-view="settlement"] > :is(.rider-performance-group, .rider-account-group, .rider-notices-section),
#rider[data-rider-mobile-view="monthly"] > :is(.page-heading, .retention-note, .rider-settlement-state, .stats, .rider-detail-workspace, .rider-account-group, .rider-notices-section),
#rider[data-rider-mobile-view="settings"] > :is(.page-heading, .retention-note, .rider-settlement-state, .stats, .rider-detail-workspace, .rider-performance-group, .rider-notices-section),
#rider[data-rider-mobile-view="notices"] > :is(.page-heading, .retention-note, .rider-settlement-state, .stats, .rider-detail-workspace, .rider-performance-group, .rider-account-group) {
  display: none !important;
}

.rider-detail-inquiry-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.rider-detail-inquiry-actions[hidden] {
  display: none;
}

.rider-current-inquiry-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #d9e4f2;
  border-radius: 11px;
  background: #f7faff;
  color: #213b60;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rider-current-inquiry-button:hover {
  border-color: #b9cdec;
  background: #eef5ff;
  transform: translateY(-1px);
}

.rider-current-inquiry-button:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
}

.rider-current-inquiry-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rider-current-inquiry-button strong {
  color: #1d3659;
  font-size: 12px;
  font-weight: 850;
}

.rider-current-inquiry-button small {
  color: #718197;
  font-size: 9px;
  font-weight: 650;
}

.rider-current-inquiry-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: #3569ba;
  font-size: 13px;
  font-weight: 900;
}

.rider-current-inquiry-arrow {
  color: #4c73ad;
  font-size: 16px;
  font-weight: 800;
}

#rider .inquiry-settings {
  scroll-margin-top: 88px;
}

@media (max-width: 959px) {
  #rider > .rider-mobile-quick-nav {
    position: sticky;
    z-index: 4;
    top: 70px;
    display: grid;
    order: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
    padding: 7px;
    scroll-margin-top: 72px;
    border: 1px solid #dce5f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(27, 49, 82, .10);
    backdrop-filter: blur(12px);
  }

  .rider-mobile-quick-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 3px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #627188;
    font: inherit;
    cursor: pointer;
  }

  .rider-mobile-quick-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
    text-align: center;
  }

  .rider-mobile-quick-item b {
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rider-mobile-quick-item small {
    display: none;
  }

  .rider-mobile-quick-icon {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #dce5f0;
    border-radius: 9px;
    background: #fff;
    color: #55708f;
    font-size: 12px;
    font-weight: 900;
  }

  .rider-mobile-quick-item.is-active {
    border-color: #cbdcf5;
    background: #eef5ff;
    color: #214f92;
  }

  .rider-mobile-quick-item.is-active .rider-mobile-quick-icon {
    border-color: #b9d0f4;
    background: #dceaff;
    color: #245fac;
  }

}

@media (max-width: 620px) {
  .rider-detail-inquiry-actions {
    padding: 12px 15px 14px;
  }

  .rider-current-inquiry-button {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
  }

  .rider-current-inquiry-button > span:nth-child(2) {
    flex: 1 1 auto;
  }

  #rider .inquiry-settings {
    scroll-margin-top: 150px;
  }
}

@media (min-width: 621px) and (max-width: 959px) {
  #rider > .rider-mobile-quick-nav {
    top: 84px;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px;
  }

  .rider-mobile-quick-item {
    flex-direction: row;
    min-height: 62px;
    gap: 9px;
    padding: 9px 8px;
  }

  .rider-mobile-quick-item > span:last-child {
    text-align: left;
  }

  .rider-mobile-quick-item b {
    font-size: 12px;
  }

  .rider-mobile-quick-item small {
    display: block;
    color: #8291a7;
    font-size: 9px;
    line-height: 1.4;
  }

  #rider .rider-mobile-quick-item[data-rider-mobile-view="notices"] > span:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: start;
    gap: 2px 4px;
  }

  #rider .rider-mobile-quick-item[data-rider-mobile-view="notices"] small {
    grid-column: 1 / -1;
  }

  #rider .inquiry-settings {
    scroll-margin-top: 174px;
  }
}

@media (min-width: 960px) {
  body:has(#rider:not([hidden])) main {
    width: calc(100% - 48px);
    max-width: 1440px;
    padding: 28px 0 36px;
  }

  body:has(#rider:not([hidden])) .header-inner {
    width: calc(100% - 48px);
    max-width: 1440px;
    padding-inline: 0;
  }

  .rider-workspace-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    min-width: 0;
  }

  .rider-workspace-shell > #rider {
    min-width: 0;
    width: 100%;
    max-width: none !important;
    margin: 0;
  }

  .rider-desktop-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    min-width: 0;
    min-height: 0;
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 21px;
    background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
    box-shadow: 0 14px 32px rgba(24, 45, 76, .07);
  }

  .rider-sidebar-brand {
    flex: 0 0 auto;
    padding: 23px 22px 21px;
    border-bottom: 1px solid #e5ebf3;
    background: rgba(248, 250, 253, .82);
  }

  .rider-sidebar-brand > span,
  .rider-sidebar-brand strong,
  .rider-sidebar-brand small {
    display: block;
  }

  .rider-sidebar-brand > span {
    margin-bottom: 7px;
    color: #6d87ad;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
  }

  .rider-sidebar-brand strong {
    color: #182d49;
    font-size: 19px;
    font-weight: 850;
  }

  .rider-sidebar-brand small {
    margin-top: 5px;
    color: #8b98aa;
    font-size: 10px;
  }

  .rider-desktop-nav {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 21px 12px;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b6c5d9 transparent;
  }

  .rider-desktop-nav::-webkit-scrollbar {
    width: 7px;
  }

  .rider-desktop-nav::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: #b6c5d9;
    background-clip: padding-box;
  }

  .rider-sidebar-label {
    padding: 0 11px 5px;
    color: #9aa6b7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
  }

  .rider-desktop-item {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 65px;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #53657e;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .rider-desktop-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .rider-desktop-item b {
    color: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
  }

  .rider-desktop-item small {
    color: #8b98aa;
    font-size: 10px;
    line-height: 1.45;
  }

  .rider-desktop-item > .rider-mobile-quick-icon {
    display: grid;
    width: 35px;
    height: 39px;
    flex: 0 0 35px;
    place-items: center;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: #f0f4f9;
    color: #60799b;
    font-size: 17px;
    font-weight: 850;
  }

  .rider-desktop-item:hover {
    border-color: #e2e8f1;
    background: #f4f7fb;
    color: #263f63;
  }

  .rider-desktop-item.is-active {
    border-color: #cbdcf6;
    background: linear-gradient(105deg, #eef4ff, #e7f0ff);
    color: #2457a7;
    box-shadow: inset 3px 0 0 #3470d3, 0 5px 13px rgba(48, 99, 184, .07);
  }

  .rider-desktop-item.is-active > .rider-mobile-quick-icon {
    border-color: #c6d8f5;
    background: #dfeaff;
    color: #2b62ba;
  }

  .rider-desktop-item:focus-visible {
    outline: 3px solid #9abdf2;
    outline-offset: 2px;
  }

  .rider-sidebar-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 17px 22px;
    border-top: 1px solid #e5ebf3;
    background: rgba(248, 250, 253, .88);
  }

  .rider-sidebar-footer > i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #34b28e;
    box-shadow: 0 0 0 4px #e6f6ef;
  }

  .rider-sidebar-footer span,
  .rider-sidebar-footer b,
  .rider-sidebar-footer small {
    display: block;
  }

  .rider-sidebar-footer b {
    color: #52647d;
    font-size: 10px;
    font-weight: 750;
  }

  .rider-sidebar-footer small {
    margin-top: 3px;
    color: #8d99aa;
    font-size: 9px;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  #rider > .rider-detail-workspace > .settlement-card-action--embedded {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
}

@media (min-width: 960px) and (max-height: 480px) {
  .rider-sidebar-brand,
  .rider-sidebar-footer {
    display: none;
  }
}

@media print {
  .rider-workspace-shell {
    display: block;
  }

  .rider-desktop-sidebar,
  #rider > .rider-mobile-quick-nav {
    display: none !important;
  }

  body:has(#rider:not([hidden])) main,
  .rider-workspace-shell > #rider {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }
}

@media (max-width: 360px) {
  #rider > .rider-mobile-quick-nav {
    gap: 5px;
    padding: 6px;
  }

  .rider-mobile-quick-item {
    min-height: 61px;
    gap: 3px;
    padding-inline: 3px;
  }

  .rider-mobile-quick-item b {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rider-current-inquiry-button {
    transition: none;
  }
}

/* BEGIN rider settlement browser presentation. 2026-10-18
   View-only: existing records, amounts, exports and category routes are retained. */
#rider > .rider-settlement-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px 22px;
  align-items: start;
  min-width: 0;
  margin-bottom: 12px;
}
#rider .rider-period-browser {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: none;
}
#rider .rider-period-browser > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  color: #3d608c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
#rider .rider-period-browser > summary::-webkit-details-marker { display: none; }
#rider .rider-period-browser > summary::after {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin: 0 2px 3px auto;
  border-right: 2px solid #7289a7;
  border-bottom: 2px solid #7289a7;
  transform: rotate(45deg);
}
#rider .rider-period-browser[open] > summary { border-bottom: 1px solid #e3ebf5; }
#rider .rider-period-browser[open] > summary::after { margin-top: 5px; transform: rotate(225deg); }
#rider #rider-period-browser-title { flex: 0 0 auto; }
#rider .rider-period-browser-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 12px;
}
#rider .rider-period-browser-heading p {
  margin: 0;
  color: #203b5e;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -.025em;
}
#rider .rider-period-browser-heading button {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  background: #f7faff;
  color: #365b88;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
#rider .rider-period-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0 12px 12px;
}
#rider .rider-period-filter-grid label,
#rider .rider-period-control > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #526780;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
#rider .rider-period-browser select,
#rider .rider-period-control > select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 44px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 30px 10px 12px !important;
  border: 1px solid #cedbeb;
  border-radius: 9px;
  background-color: #fff;
  color: #213c5f;
  font: inherit;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
}
#rider .rider-period-control {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 0;
  gap: 6px;
  border: 0;
}
#rider .rider-period-control #rider-period-current {
  color: #536b88;
  font-size: 12px;
  line-height: 1.5;
}
#rider .rider-period-filter-summary {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #60758f;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#rider .rider-period-browser :is(button, select, summary):focus-visible,
#rider .rider-period-control > select:focus-visible {
  outline: 3px solid #91b6eb;
  outline-offset: 3px;
}
#rider .rider-period-browser :is(button, select):disabled {
  cursor: not-allowed;
  opacity: .65;
}
#rider .stats .pay-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center !important;
  gap: 8px 16px;
  min-height: 168px !important;
}
#rider .stats .pay-card #rider-pay-title { grid-column: 1; grid-row: 1; align-self: center; }
#rider .stats .pay-card #rider-pay {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#rider .stats .pay-card > small { grid-column: 1; grid-row: 3; margin: 0 !important; }
#rider .stats .pay-card .pay-card-status {
  position: static !important;
  grid-column: 2;
  grid-row: 1 / 4;
  justify-self: end;
  align-self: center;
  min-height: 32px !important;
  padding: 0 11px !important;
  transform: none !important;
}
#rider .stats .pay-card #rider-payment-date {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 1px 0 0;
  color: #d8e8ff;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#rider .stats .pay-card #rider-payment-date[hidden] { display: none !important; }
#rider .stats .pay-card .pay-card-status strong { max-width: 110px; white-space: normal !important; line-height: 1.3 !important; }
#rider .detail-card > table th::before {
  content: none !important;
  display: none !important;
}
#rider #rider-detail .rider-detail-group > th {
  padding: 11px 14px !important;
  border-top: 1px solid #dce5ef !important;
  border-bottom: 1px solid #dce5ef !important;
  background: #edf3fa !important;
  color: #34577f !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.5;
  text-align: left;
  letter-spacing: -.015em;
}
#rider #rider-detail .rider-detail-group:first-child > th { border-top: 0 !important; }
#rider #rider-detail .rider-detail-subtotal > th,
#rider #rider-detail .rider-detail-subtotal > td {
  border-top: 1px solid #d3deec !important;
  border-bottom: 1px solid #d3deec !important;
  background: #f5f8fc !important;
  color: #1e3c60 !important;
  font-weight: 850 !important;
}
#rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th {
  padding-left: 28px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}
#rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td { font-weight: 700 !important; }
#rider #rider-detail .rider-detail-subtotal > th,
#rider .detail-card > table tfoot th { padding-left: 14px !important; }
#rider #rider-detail tr:not(.rider-detail-group) > th { overflow-wrap: anywhere; }
#rider #rider-detail tr:not(.rider-detail-group) > td { font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
  #rider > .rider-settlement-heading { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 620px) {
  #rider .rider-period-browser { border-radius: 9px; }
  #rider .rider-period-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #rider .rider-period-filter-grid > label:last-child { grid-column: 1 / -1; }
  #rider .rider-period-browser select { font-size: 12px !important; }
  #rider .stats .pay-card { gap: 8px 10px; min-height: 156px !important; }
  #rider #rider-detail .rider-detail-group > th { padding: 10px 11px !important; }
  #rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th { padding-left: 23px !important; }
  #rider #rider-detail .rider-detail-subtotal > th,
  #rider .detail-card > table tfoot th { padding-left: 11px !important; }
}
@media (max-width: 360px) {
  #rider .stats .pay-card #rider-pay { font-size: 24px !important; }
}
/* END rider settlement browser presentation. */

/* BEGIN premium rider statement. 2026-10-18 */
#rider > .detail-card {
  border: 1px solid #e1e8f0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 16px 48px rgba(22, 43, 72, .06) !important;
}
#rider .detail-card .section-title {
  padding: 28px 30px 10px !important;
  border: 0 !important;
  background: #fff !important;
}
#rider .detail-card .section-title > div::before {
  color: #657890 !important;
  font-size: 9px;
  letter-spacing: .18em;
}
#rider .detail-card .section-title h2 {
  color: #172d48 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
}
#rider .detail-card .section-title p { color: #64768d !important; line-height: 1.7; }
#rider .detail-card > table {
  width: calc(100% - 60px) !important;
  margin: 0 30px 28px !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
#rider #rider-detail > tr,
#rider #rider-detail > tr:nth-child(even),
#rider #rider-detail > tr:hover {
  background: transparent !important;
  box-shadow: none !important;
}
#rider #rider-detail > tr > th,
#rider #rider-detail > tr > td {
  padding: 10px 0 !important;
  border: 0 !important;
  background: transparent !important;
  vertical-align: middle;
}
#rider #rider-detail > tr > td { text-align: right !important; white-space: nowrap; }
#rider #rider-detail .rider-detail-group > th {
  padding: 24px 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #60738d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .025em;
}
#rider #rider-detail .rider-detail-group:first-child > th { padding-top: 14px !important; }
#rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th {
  padding-left: 8px !important;
  color: #485e78 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.6;
}
#rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td {
  color: #1b314e !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
#rider #rider-detail .rider-detail-subtotal > th,
#rider #rider-detail .rider-detail-subtotal > td {
  padding: 18px 0 8px !important;
  border: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  background: transparent !important;
  color: #18314e !important;
  font-weight: 800 !important;
}
#rider #rider-detail .rider-detail-subtotal > td { font-size: 18px !important; }
#rider #rider-detail > tr:last-child:not(.rider-detail-group) > th,
#rider #rider-detail > tr:last-child:not(.rider-detail-group) > td { padding-bottom: 26px !important; }
#rider .detail-card > table tfoot,
#rider .detail-card > table tfoot tr { border: 0 !important; background: transparent !important; }
#rider .detail-card > table tfoot th,
#rider .detail-card > table tfoot td {
  padding: 22px 20px !important;
  border: 0 !important;
  background: #172f4d !important;
  color: #fff !important;
}
#rider .detail-card > table tfoot th {
  border-radius: 17px 0 0 17px;
  color: #d7e1ef !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.5;
}
#rider .detail-card > table tfoot td { border-radius: 0 17px 17px 0; text-align: right !important; }
#rider .detail-card > table tfoot #rider-final {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 850 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em !important;
}
@media (max-width: 620px) {
  #rider > .detail-card { border-radius: 20px !important; }
  #rider .detail-card .section-title { padding: 23px 18px 8px !important; }
  #rider .detail-card .section-title h2 { font-size: 20px !important; }
  #rider .detail-card > table { width: calc(100% - 36px) !important; margin: 0 18px 20px !important; }
  #rider #rider-detail .rider-detail-group > th { padding: 21px 0 8px !important; font-size: 11px !important; }
  #rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th { font-size: 13px !important; }
  #rider #rider-detail tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td { font-size: 14px !important; }
  #rider #rider-detail .rider-detail-subtotal > td { font-size: 16px !important; }
  #rider .detail-card > table tfoot tr { padding: 0 !important; align-items: stretch !important; }
  #rider .detail-card > table tfoot th,
  #rider .detail-card > table tfoot td { padding: 18px 15px !important; align-content: center; }
  #rider .detail-card > table tfoot #rider-final { font-size: 23px !important; }
}
@media print {
  #rider .detail-card > table tfoot th,
  #rider .detail-card > table tfoot td,
  #rider .detail-card > table tfoot #rider-final {
    border-top: 1px solid #b8c5d5 !important;
    background: #fff !important;
    color: #172f4d !important;
  }
}
/* END premium rider statement. */

/* BEGIN grouped rider statement surfaces. 2026-10-18 */
#rider .detail-card .section-title { padding: 24px 24px 18px !important; }
#rider .detail-card > table {
  display: block;
  width: calc(100% - 48px) !important;
  margin: 0 24px 24px !important;
}
#rider .detail-card > table > tbody,
#rider .detail-card > table > tfoot { display: block; width: 100%; }
#rider #rider-detail > tr,
#rider .detail-card > table tfoot > tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch !important;
  min-height: 0 !important;
  margin: 0 !important;
}
#rider #rider-detail > tr > th,
#rider #rider-detail > tr > td {
  min-width: 0;
  width: auto !important;
  padding: 0 !important;
  align-content: center;
}
#rider #rider-detail > tr.rider-detail-group {
  margin-top: 14px !important;
  padding: 14px 18px 10px !important;
  border: 1px solid #dfe7f0 !important;
  border-bottom: 0 !important;
  border-radius: 14px 14px 0 0;
  background: #f5f8fc !important;
}
#rider #rider-detail > .rider-detail-group:first-child { margin-top: 0 !important; }
#rider #rider-detail > .rider-detail-group > th {
  grid-column: 1 / -1;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #e2e9f2 !important;
  color: #294765 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em;
}
#rider #rider-detail > .rider-detail-group:first-child > th { padding-top: 0 !important; }
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) {
  padding: 9px 18px !important;
  border: 1px solid #dfe7f0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: #f5f8fc !important;
  gap: 16px;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th,
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td { padding: 0 !important; }
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th {
  padding-left: 0 !important;
  color: #465d77 !important;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-group),
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-subtotal),
#rider #rider-detail > tr:last-child:not(.rider-detail-group):not(.rider-detail-subtotal) {
  padding-bottom: 16px !important;
  border-bottom: 1px solid #dfe7f0 !important;
  border-radius: 0 0 14px 14px;
}
#rider #rider-detail > tr.rider-detail-subtotal {
  margin-top: 12px !important;
  padding: 16px 18px !important;
  border: 1px solid #d5e0ee !important;
  border-radius: 12px;
  background: #eaf0f8 !important;
  gap: 16px;
}
#rider #rider-detail > .rider-detail-subtotal > th,
#rider #rider-detail > .rider-detail-subtotal > td {
  padding: 0 !important;
  border: 0 !important;
}
#rider .detail-card > table > tfoot { margin-top: 16px; }
#rider .detail-card > table tfoot > tr { padding: 0 !important; }
#rider .detail-card > table tfoot th,
#rider .detail-card > table tfoot td { width: auto !important; min-width: 0; align-content: center; }
@media (max-width: 620px) {
  #rider .detail-card .section-title { padding: 22px 16px 16px !important; }
  #rider .detail-card > table { width: calc(100% - 32px) !important; margin: 0 16px 20px !important; }
  #rider #rider-detail > tr.rider-detail-group { padding: 13px 13px 8px !important; margin-top: 12px !important; }
  #rider #rider-detail > .rider-detail-group > th { font-size: 12px !important; padding-bottom: 9px !important; }
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) { padding: 9px 13px !important; gap: 10px; }
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-group),
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-subtotal),
  #rider #rider-detail > tr:last-child:not(.rider-detail-group):not(.rider-detail-subtotal) { padding-bottom: 14px !important; }
  #rider #rider-detail > tr.rider-detail-subtotal { padding: 14px 13px !important; gap: 10px; }
  #rider #rider-detail > .rider-detail-group:first-child { margin-top: 0 !important; }
}
@media print {
  #rider #rider-detail > tr,
  #rider #rider-detail > tr.rider-detail-group,
  #rider #rider-detail > tr.rider-detail-subtotal,
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) { background: #fff !important; }
}
/* END grouped rider statement surfaces. */

/* BEGIN cohesive rider statement. 2026-10-18 */
/* One statement surface; saved rows and amounts are never hidden or reordered. */
#rider > .detail-card {
  border-color: #e0e6ee !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 28px rgba(27, 48, 75, .045) !important;
}
#rider .detail-card .section-title {
  padding: 24px 26px 18px !important;
}
#rider .detail-card .section-title > div::before {
  color: #657890 !important;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .12em;
}
#rider .detail-card .section-title h2 {
  font-size: 20px !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
}
#rider .detail-card > table {
  width: calc(100% - 52px) !important;
  margin: 0 26px 24px !important;
}
#rider #rider-detail > tr.rider-detail-group {
  margin-top: 18px !important;
  padding: 16px 0 8px !important;
  border: 0 !important;
  border-top: 1px solid #e8edf3 !important;
  border-radius: 0;
  background: transparent !important;
}
#rider #rider-detail > .rider-detail-group:first-child {
  margin-top: 0 !important;
  padding-top: 4px !important;
  border-top: 0 !important;
}
#rider #rider-detail > .rider-detail-group > th {
  padding: 0 0 4px !important;
  border: 0 !important;
  color: #64758b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) {
  padding: 8px 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  gap: 18px;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th,
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td {
  padding: 0 !important;
  line-height: 1.55;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th {
  color: #53657b !important;
  font-size: 14px !important;
  font-weight: 450 !important;
  letter-spacing: -.015em;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td {
  max-width: min(48vw, 280px);
  color: #213852 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
}
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-group),
#rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal):has(+ .rider-detail-subtotal),
#rider #rider-detail > tr:last-child:not(.rider-detail-group):not(.rider-detail-subtotal) {
  padding-bottom: 8px !important;
  border: 0 !important;
  border-radius: 0;
}
#rider #rider-detail > tr.rider-detail-subtotal {
  margin-top: 10px !important;
  padding: 13px 0 !important;
  border: 0 !important;
  border-top: 1px solid #dce5ef !important;
  border-bottom: 1px solid #dce5ef !important;
  border-radius: 0;
  background: transparent !important;
  gap: 18px;
}
#rider #rider-detail > .rider-detail-subtotal > th {
  color: #263f5d !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
#rider #rider-detail > .rider-detail-subtotal > td {
  color: #1b3554 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}
#rider #rider-detail > .rider-detail-subtotal + tr.rider-detail-group {
  margin-top: 8px !important;
  padding-top: 12px !important;
  border-top: 0 !important;
}
#rider .detail-card > table > tfoot {
  margin-top: 18px;
}
#rider .detail-card > table tfoot th,
#rider .detail-card > table tfoot td {
  padding: 18px 18px !important;
  background: #1b3554 !important;
}
#rider .detail-card > table tfoot th {
  border-radius: 12px 0 0 12px;
  color: #e0e9f4 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
#rider .detail-card > table tfoot td {
  border-radius: 0 12px 12px 0;
}
#rider .detail-card > table tfoot #rider-final {
  max-width: min(48vw, 340px);
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 750 !important;
  line-height: 1.25;
  letter-spacing: -.035em;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  #rider > .detail-card { border-radius: 16px !important; }
  #rider .detail-card .section-title { padding: 20px 18px 16px !important; }
  #rider .detail-card .section-title h2 { font-size: 19px !important; }
  #rider .detail-card > table { width: calc(100% - 36px) !important; margin: 0 18px 20px !important; }
  #rider #rider-detail > tr.rider-detail-group { margin-top: 16px !important; padding: 14px 0 6px !important; }
  #rider #rider-detail > .rider-detail-group:first-child { margin-top: 0 !important; padding-top: 2px !important; }
  #rider #rider-detail > .rider-detail-group > th { font-size: 11px !important; padding-bottom: 4px !important; }
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) { padding: 7px 0 !important; gap: 12px; }
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > th { font-size: 13px !important; }
  #rider #rider-detail > tr:not(.rider-detail-group):not(.rider-detail-subtotal) > td { font-size: 14px !important; }
  #rider #rider-detail > tr.rider-detail-subtotal { padding: 12px 0 !important; gap: 12px; }
  #rider #rider-detail > .rider-detail-subtotal > td { font-size: 16px !important; }
  #rider .detail-card > table tfoot th,
  #rider .detail-card > table tfoot td { padding: 16px 14px !important; }
  #rider .detail-card > table tfoot #rider-final { font-size: 23px !important; }
}
@media print {
  #rider > .detail-card { box-shadow: none !important; }
  #rider .detail-card > table tfoot th,
  #rider .detail-card > table tfoot td,
  #rider .detail-card > table tfoot #rider-final {
    background: #fff !important;
    color: #172d48 !important;
  }
}
/* END cohesive rider statement. */
