/* Pass-center cards must size from their complete content, not from the flex viewport. */
@media (min-width: 761px) {
  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view .customer-railway-management {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view .customer-railway-management-results {
    display: block !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view #customerRailwayReportCards.customer-railway-report-cards {
    display: grid !important;
    flex: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 18px 18px 28px !important;
    overflow: visible !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view .customer-railway-report-card {
    align-self: stretch !important;
    height: max-content !important;
    min-height: max-content !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view .customer-railway-report-card dl {
    align-content: start;
    gap: 13px 20px;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view #customerRailwayManagementPager:not(:empty) {
    position: static !important;
    display: flex !important;
    flex: none !important;
    min-height: 58px !important;
  }
}

@media (min-width: 1680px) {
  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view #customerRailwayReportCards.customer-railway-report-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view #customerRailwayReportCards.customer-railway-report-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  body.customer-portal #customer#customer #customerRailwayManagementView#customerRailwayManagementView.is-card-view .customer-railway-report-card {
    height: max-content !important;
    min-height: max-content !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }
}
