/* Heaven Bound v1.2.13.1 — Member and CG Leader dashboard components
 * Scope: authenticated modern portal only. No theme, body, print, or global
 * WordPress selectors are changed here.
 */

.hb-modern-portal .hb-modern-member-dashboard,
.hb-modern-portal .hb-modern-leader-dashboard {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--hb-portal-text);
}

/* Page heading: closely follows the approved dashboard reference while
 * remaining inside the portal canvas and normal document flow. */
.hb-modern-portal .hb-modern-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 22px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--hb-portal-border);
  border-radius: 0;
  background: transparent;
  color: var(--hb-portal-text);
  box-shadow: none;
}


.hb-modern-portal .hb-modern-dashboard-header .hb-mgr-header-top {
  width: 100%;
  align-items: flex-start;
}

.hb-modern-portal .hb-modern-dashboard-header h1 {
  margin: 2px 0 7px;
  color: var(--hb-portal-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hb-modern-portal .hb-modern-dashboard-header p {
  margin: 0;
  color: var(--hb-portal-muted);
}

.hb-modern-portal .hb-modern-dashboard-header .hb-member-eyebrow {
  margin-bottom: 5px;
  color: var(--hb-portal-primary);
  opacity: 1;
}

.hb-modern-portal .hb-modern-dashboard-header .hb-member-hero-actions,
.hb-modern-portal .hb-modern-dashboard-header .hb-mgr-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.hb-modern-portal .hb-modern-dashboard-header .hb-btn,
.hb-modern-portal .hb-modern-dashboard-header button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: none;
}

.hb-modern-portal .hb-modern-dashboard-header .hb-btn-secondary {
  border: 1px solid var(--hb-portal-border) !important;
  background: var(--hb-portal-card) !important;
  color: var(--hb-portal-secondary) !important;
}

.hb-modern-portal .hb-modern-dashboard-header .hb-btn-logout {
  border: 1px solid var(--hb-portal-danger) !important;
  border-color: color-mix(in srgb, var(--hb-portal-danger) 28%, white) !important;
  background: #fff0f0 !important;
  background: color-mix(in srgb, var(--hb-portal-danger) 7%, white) !important;
  color: var(--hb-portal-danger) !important;
}

/* Shared summary components. */
.hb-modern-portal .hb-portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.hb-modern-portal .hb-portal-stat-card {
  --hb-component-accent: var(--hb-portal-primary);
  --hb-component-tint: #edf4ff;
  position: relative;
  display: block;
  min-height: 108px;
  padding: 17px 70px 17px 17px;
  border: 1px solid var(--hb-portal-border);
  border-color: color-mix(in srgb, var(--hb-component-accent) 18%, var(--hb-portal-border));
  border-radius: 16px;
  background: var(--hb-portal-card);
  box-shadow: 0 6px 18px rgba(24, 39, 75, .045);
}

.hb-modern-portal .hb-portal-card-icon,
.hb-modern-portal .hb-portal-action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--hb-component-accent);
  background: var(--hb-component-tint);
  background: color-mix(in srgb, var(--hb-component-accent) 11%, white);
}

.hb-modern-portal .hb-portal-card-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.hb-modern-portal .hb-portal-card-icon svg {
  width: 23px;
  height: 23px;
}

.hb-modern-portal .hb-portal-stat-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.hb-modern-portal .hb-portal-stat-label {
  color: var(--hb-portal-muted);
  font-size: 12px;
  font-weight: 700;
}

.hb-modern-portal .hb-portal-stat-value {
  margin-top: 3px;
  color: var(--hb-portal-text);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.05;
}

.hb-modern-portal .hb-portal-stat-copy small {
  margin-top: 5px;
  color: var(--hb-portal-muted);
  font-size: 11px;
}

/* Shared action components. */
.hb-modern-portal .hb-portal-action-section {
  margin: 0 0 25px;
}

.hb-modern-portal .hb-portal-section-heading {
  margin-bottom: 13px;
}

.hb-modern-portal .hb-portal-section-heading h2 {
  margin: 0;
  color: var(--hb-portal-text);
  font-size: 20px;
  line-height: 1.25;
}

.hb-modern-portal .hb-portal-section-heading p {
  margin: 5px 0 0;
  color: var(--hb-portal-muted);
  font-size: 13px;
}

.hb-modern-portal .hb-portal-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.hb-modern-portal .hb-portal-action-card {
  --hb-component-accent: var(--hb-portal-primary);
  --hb-component-tint: #edf4ff;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  border: 1px solid var(--hb-portal-border);
  border-color: color-mix(in srgb, var(--hb-component-accent) 20%, var(--hb-portal-border));
  border-radius: 17px;
  background: var(--hb-component-tint);
  background: color-mix(in srgb, var(--hb-component-accent) 6%, white);
  box-shadow: none;
  color: var(--hb-portal-text);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.hb-modern-portal .hb-portal-action-card:hover {
  border-color: color-mix(in srgb, var(--hb-component-accent) 48%, var(--hb-portal-border));
  box-shadow: 0 10px 24px rgba(24, 39, 75, .08);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.hb-modern-portal .hb-portal-action-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hb-component-accent) 38%, transparent);
  outline-offset: 3px;
  border-color: var(--hb-component-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-component-accent) 14%, transparent);
  text-decoration: none !important;
}

.hb-modern-portal .hb-portal-action-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.hb-modern-portal .hb-portal-action-icon svg {
  width: 25px;
  height: 25px;
}

.hb-modern-portal .hb-portal-action-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hb-modern-portal .hb-portal-action-copy h3,
.hb-modern-portal .hb-portal-action-title {
  display: block;
  margin: 0;
  color: var(--hb-portal-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.hb-modern-portal .hb-portal-action-copy p,
.hb-modern-portal .hb-portal-action-description {
  display: block;
  margin: 8px 0 0;
  color: var(--hb-portal-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.hb-modern-portal .hb-portal-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--hb-component-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.hb-modern-portal .hb-portal-action-card:hover .hb-portal-action-link,
.hb-modern-portal .hb-portal-action-card:focus-visible .hb-portal-action-link {
  text-decoration: underline !important;
}

.hb-modern-portal .hb-portal-action-link svg {
  width: 17px;
  height: 17px;
}

.hb-modern-portal .hb-portal-tone-blue {
  --hb-component-accent: var(--hb-portal-primary);
  --hb-component-tint: #edf4ff;
}
.hb-modern-portal .hb-portal-tone-green {
  --hb-component-accent: var(--hb-portal-green);
  --hb-component-tint: #edf9f2;
}
.hb-modern-portal .hb-portal-tone-purple {
  --hb-component-accent: var(--hb-portal-purple);
  --hb-component-tint: #f3effd;
}
.hb-modern-portal .hb-portal-tone-orange {
  --hb-component-accent: var(--hb-portal-orange);
  --hb-component-tint: #fff5e9;
}
.hb-modern-portal .hb-portal-tone-red {
  --hb-component-accent: var(--hb-portal-danger);
  --hb-component-tint: #fff0f0;
}
.hb-modern-portal .hb-portal-tone-navy {
  --hb-component-accent: var(--hb-portal-secondary);
  --hb-component-tint: #eef3f8;
}

/* Convert the existing Member navigation into a compact secondary tool row. */
.hb-modern-portal .hb-modern-member-dashboard .hb-member-nav {
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hb-modern-portal .hb-modern-member-dashboard .hb-member-nav a {
  padding: 8px 12px;
  border: 1px solid var(--hb-portal-border);
  border-radius: 999px;
  background: var(--hb-portal-card);
  color: var(--hb-portal-secondary);
  font-size: 12px;
}

.hb-modern-portal .hb-modern-member-dashboard .hb-member-nav a:hover,
.hb-modern-portal .hb-modern-member-dashboard .hb-member-nav a:focus {
  border-color: var(--hb-portal-primary);
  background: color-mix(in srgb, var(--hb-portal-primary) 7%, white);
  color: var(--hb-portal-primary);
}

/* Existing functional sections are retained, but visually harmonized. */
.hb-modern-portal .hb-modern-member-dashboard .hb-member-card,
.hb-modern-portal .hb-modern-leader-dashboard .hb-card,
.hb-modern-portal .hb-modern-leader-dashboard .hb-member-card {
  border: 1px solid var(--hb-portal-border);
  border-radius: 17px;
  background: var(--hb-portal-card);
  box-shadow: 0 6px 18px rgba(24, 39, 75, .04);
}

.hb-modern-portal .hb-modern-member-dashboard .hb-member-card h2,
.hb-modern-portal .hb-modern-leader-dashboard .hb-card h2,
.hb-modern-portal .hb-modern-leader-dashboard .hb-member-card h2 {
  color: var(--hb-portal-text);
}

.hb-modern-portal .hb-modern-member-dashboard #hb-devotional {
  border-top: 4px solid var(--hb-portal-primary);
}
.hb-modern-portal .hb-modern-member-dashboard #hb-daily-checkin {
  border-top: 4px solid var(--hb-portal-green);
}
.hb-modern-portal .hb-modern-member-dashboard #hb-prayer-wall {
  border-top: 4px solid var(--hb-portal-purple);
}
.hb-modern-portal .hb-modern-member-dashboard #hb-member-updates > .hb-member-card:first-child {
  border-top: 4px solid var(--hb-portal-orange);
}
.hb-modern-portal .hb-modern-member-dashboard #hb-member-updates > .hb-member-card:last-child {
  border-top: 4px solid var(--hb-portal-green);
}
.hb-modern-portal .hb-modern-member-dashboard #hb-my-profile {
  border-top: 4px solid var(--hb-portal-secondary);
}

.hb-modern-portal .hb-modern-leader-dashboard #hbl-monitoring-section {
  border-top: 4px solid var(--hb-portal-primary);
}
.hb-modern-portal .hb-modern-leader-dashboard #hb-officer-tasks {
  border-top: 4px solid var(--hb-portal-purple);
}
.hb-modern-portal .hb-modern-leader-dashboard #hbl-people-section {
  border-top: 4px solid var(--hb-portal-green);
}
.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-assignment-card {
  border-top: 4px solid var(--hb-portal-orange);
}
.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-caregroup-card {
  border-top: 4px solid var(--hb-portal-secondary);
}

.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-small-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-small-summary span,
.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-hierarchy span,
.hb-modern-portal .hb-modern-leader-dashboard .hb-leader-identity-summary > div,
.hb-modern-portal .hb-modern-member-dashboard .hb-profile-list > div {
  border: 1px solid var(--hb-portal-border);
  background: color-mix(in srgb, var(--hb-portal-surface) 68%, white);
}

/* Forms and controls stay within their cards at every width. */
.hb-modern-portal .hb-modern-member-dashboard input,
.hb-modern-portal .hb-modern-member-dashboard select,
.hb-modern-portal .hb-modern-member-dashboard textarea,
.hb-modern-portal .hb-modern-leader-dashboard input,
.hb-modern-portal .hb-modern-leader-dashboard select,
.hb-modern-portal .hb-modern-leader-dashboard textarea {
  max-width: 100%;
}

.hb-modern-portal .hb-modern-member-dashboard input:focus,
.hb-modern-portal .hb-modern-member-dashboard select:focus,
.hb-modern-portal .hb-modern-member-dashboard textarea:focus,
.hb-modern-portal .hb-modern-leader-dashboard input:focus,
.hb-modern-portal .hb-modern-leader-dashboard select:focus,
.hb-modern-portal .hb-modern-leader-dashboard textarea:focus {
  border-color: var(--hb-portal-primary);
  outline: 3px solid color-mix(in srgb, var(--hb-portal-primary) 15%, transparent);
}

/* ResizeObserver-backed responsive classes from modern-portal.js. These make
 * the dashboard respond to the real embedded portal width even in browsers
 * without CSS container-query support. */
.hb-modern-portal.hb-modern-compact .hb-portal-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hb-modern-portal.hb-modern-compact .hb-portal-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hb-modern-portal.hb-modern-compact .hb-portal-action-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.hb-modern-portal.hb-modern-compact .hb-modern-dashboard-header {
  flex-direction: column;
  gap: 15px;
}
.hb-modern-portal.hb-modern-compact .hb-modern-dashboard-header .hb-member-hero-actions,
.hb-modern-portal.hb-modern-compact .hb-modern-dashboard-header .hb-mgr-header-actions {
  width: 100%;
  justify-content: flex-start;
}
.hb-modern-portal.hb-modern-compact .hb-modern-dashboard-header .hb-btn,
.hb-modern-portal.hb-modern-compact .hb-modern-dashboard-header button {
  flex: 1 1 180px;
  text-align: center;
}

/* v1.2.18.4: Give the external Spiritual Growth app cards more usable width inside
 * the authenticated Member Dashboard. The measured portal classes respond to
 * the real theme container, so tablets receive a controlled breakout and
 * phones receive a slightly wider one without crossing the portal boundary. */
.hb-modern-portal.hb-modern-compact .hb-modern-member-dashboard > .hb-external-devotional-member,
.hb-modern-portal.hb-modern-compact .hb-modern-member-dashboard > .hb-external-bible-lessons-member,
.hb-modern-portal.hb-modern-compact .hb-modern-member-dashboard > .hb-external-gracenotes-member {
  width: calc(100% + 16px);
  max-width: calc(100% + 16px);
  margin-right: -8px;
  margin-left: -8px;
  padding-right: 12px;
  padding-left: 12px;
}

.hb-modern-portal.hb-modern-narrow .hb-modern-member-dashboard > .hb-external-devotional-member,
.hb-modern-portal.hb-modern-narrow .hb-modern-member-dashboard > .hb-external-bible-lessons-member,
.hb-modern-portal.hb-modern-narrow .hb-modern-member-dashboard > .hb-external-gracenotes-member {
  width: calc(100% + 20px);
  max-width: calc(100% + 20px);
  margin-right: -10px;
  margin-left: -10px;
  padding-right: 10px;
  padding-left: 10px;
}

/* v1.2.18.6: Use more of the measured portal width for Official Record entry
 * on tablets and phones. Scope is limited to Quarterly Monitoring in the
 * authenticated Leader/Manager portal; desktop and print remain unchanged. */
.hb-modern-portal.hb-modern-compact :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-mgr-monitoring-inner {
  padding-right: 12px;
  padding-left: 12px;
}

.hb-modern-portal.hb-modern-compact :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-mgr-sabbath-calendar-form {
  padding-right: 10px;
  padding-left: 10px;
}

.hb-modern-portal.hb-modern-compact :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) :is(.hb-official-record-front, .hb-official-record-back) {
  padding-right: 12px;
  padding-left: 12px;
}

.hb-modern-portal.hb-modern-compact :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-record-card-back-subsection {
  padding-right: 10px;
  padding-left: 10px;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) {
  width: calc(100% + 16px);
  max-width: calc(100% + 16px);
  margin-right: -8px;
  margin-left: -8px;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-mgr-section-header {
  padding-right: 12px;
  padding-left: 12px;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-mgr-monitoring-inner,
.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-mgr-sabbath-calendar-form,
.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) :is(.hb-official-record-front, .hb-official-record-back),
.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-record-card-back-subsection {
  padding-right: 8px;
  padding-left: 8px;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-inline-sabbath-calendar.hb-inline-calendar-ready {
  padding: 8px;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) .hb-inline-calendar-weekdays span {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.hb-modern-portal.hb-modern-narrow :is(
  .hb-modern-leader-dashboard #hbl-monitoring-section,
  .hb-modern-manager-dashboard #hbm-monitoring-section
) :is(.hb-record-card-roster-table, .hb-record-card-back-devotional-table) tr {
  padding: 10px !important;
}

.hb-modern-portal.hb-modern-narrow .hb-portal-summary-grid,
.hb-modern-portal.hb-modern-narrow .hb-portal-action-grid {
  grid-template-columns: 1fr;
}
.hb-modern-portal.hb-modern-narrow .hb-portal-action-card:last-child:nth-child(odd) {
  grid-column: auto;
}
.hb-modern-portal.hb-modern-narrow .hb-modern-dashboard-header .hb-btn,
.hb-modern-portal.hb-modern-narrow .hb-modern-dashboard-header button {
  flex-basis: 100%;
  width: 100%;
}
.hb-modern-portal.hb-modern-narrow .hb-modern-member-dashboard .hb-member-nav a {
  flex: 1 1 calc(50% - 7px);
  text-align: center;
}
.hb-modern-portal.hb-modern-narrow .hb-modern-leader-dashboard .hb-leader-small-summary {
  grid-template-columns: 1fr;
}

/* Container-first responsiveness: reacts to the real portal width inside the
 * active WordPress theme, not merely the browser viewport. */
@container hbportal (max-width: 1050px) {
  .hb-modern-portal .hb-portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-modern-portal .hb-portal-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-modern-portal .hb-portal-action-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@container hbportal (max-width: 720px) {
  .hb-modern-portal .hb-modern-dashboard-header {
    flex-direction: column;
    gap: 15px;
  }

  .hb-modern-portal .hb-modern-dashboard-header .hb-member-hero-actions,
  .hb-modern-portal .hb-modern-dashboard-header .hb-mgr-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hb-modern-portal .hb-modern-dashboard-header .hb-btn,
  .hb-modern-portal .hb-modern-dashboard-header button {
    flex: 1 1 180px;
    text-align: center;
  }

  .hb-modern-portal .hb-portal-action-card {
    min-height: 190px;
  }
}

@container hbportal (max-width: 640px) {
  .hb-modern-portal .hb-portal-action-grid {
    grid-template-columns: 1fr;
  }

  .hb-modern-portal .hb-portal-action-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@container hbportal (max-width: 520px) {
  .hb-modern-portal .hb-portal-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hb-modern-portal .hb-portal-stat-card {
    min-height: 94px;
    padding: 14px 66px 14px 14px;
  }

  .hb-modern-portal .hb-modern-dashboard-header h1 {
    font-size: 28px;
  }

  .hb-modern-portal .hb-modern-dashboard-header .hb-btn,
  .hb-modern-portal .hb-modern-dashboard-header button {
    flex-basis: 100%;
    width: 100%;
  }

  .hb-modern-portal .hb-modern-member-dashboard .hb-member-nav a {
    flex: 1 1 calc(50% - 7px);
    text-align: center;
  }

  .hb-modern-portal .hb-modern-leader-dashboard .hb-leader-small-summary {
    grid-template-columns: 1fr;
  }
}

/* Media-query fallbacks for browsers without container query support. */
@media (max-width: 900px) {
  .hb-modern-portal .hb-portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hb-modern-portal .hb-portal-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hb-modern-portal .hb-portal-action-grid {
    grid-template-columns: 1fr;
  }
  .hb-modern-portal .hb-portal-action-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .hb-modern-portal .hb-portal-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .hb-modern-portal .hb-portal-summary-grid,
  .hb-modern-portal .hb-portal-action-section {
    display: none !important;
  }
}
