/**
 * VMHS layout — structure (public + staff)
 * Complements vmhs-public-app.css and vmhs-ux.css
 */

/* ─── Page shell ─── */
.vmhs-public .main {
  display: flex;
  flex-direction: column;
}

.vmhs-page-shell {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .vmhs-page-shell { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.vmhs-public .app-page { padding-top: 0.5rem; padding-bottom: 2.5rem; }
.vmhs-public .app-page--after-hero { padding-top: 0; }

/* ─── Surfaces (cards) ─── */
.vmhs-public .app-card {
  border: 1.5px solid var(--app-border, #e2e8f0);
  border-radius: var(--app-radius-xl, 1.25rem);
  box-shadow: var(--app-shadow-sm);
  background: #fff;
  overflow: hidden;
}
.vmhs-app .card.card-stretch {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.75rem;
  box-shadow: none;
  background: #fff;
  overflow: visible;
}
.vmhs-public .app-card__body { padding: 1.5rem; }
.vmhs-public .vmhs-quick-stats-bar { width: 100%; }

@media (max-width: 767.98px) {
  .vmhs-public .app-page--after-hero .vmhs-quick-stats-bar { margin-left: 0; margin-right: 0; }
}
@media (min-width: 768px) {
  .vmhs-public .app-card__body { padding: 1.75rem 2rem; }
}

/* ─── Section rhythm ─── */
.vmhs-public .app-section { padding: 2.5rem 0; }
.vmhs-public .app-section--compact { padding: 2rem 0 2.5rem; }
.vmhs-public .app-section--tight { padding: 1.5rem 0 2rem; }
.vmhs-public .app-section__head {
  text-align: center;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.vmhs-public .app-section__head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.vmhs-public .app-section__head p {
  font-size: 1rem;
  color: var(--app-text-secondary, #4b5e72);
  margin: 0;
}

/* ─── Hero (home) — cleaner, less busy ─── */
.vmhs-public .app-hero {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.vmhs-public .app-hero .app-hero-card {
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.vmhs-public .app-hero .app-hero-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  max-width: 18ch;
}

.vmhs-public .app-hero .app-hero-card .app-hero-lead {
  font-size: 1.0625rem;
  max-width: 42ch;
  line-height: 1.55;
}

.vmhs-public .app-action-row {
  margin-top: 1.5rem;
}

.vmhs-public .app-action-btn {
  border-radius: 0.875rem;
}

.vmhs-public .app-hero .app-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .vmhs-public .app-hero .app-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Purpose / journey cards ─── */
.vmhs-public .guest-purpose-card,
.vmhs-public .app-journey-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vmhs-public .guest-purpose-card:hover,
.vmhs-public .app-journey-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #99f6e4;
}

.vmhs-public .guest-purpose-card {
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.vmhs-public .guest-purpose-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Compact link row (home) */
.vmhs-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem 0 0;
}

.vmhs-link-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vmhs-link-row a:hover {
  color: var(--vmhs-brand, #B7670F);
  border-color: #99f6e4;
  background: #f0fdfa;
}

/* Staff strip (home) — minimal */
.vmhs-staff-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  color: #64748b;
}

.vmhs-staff-strip strong {
  color: #0f172a;
  font-weight: 600;
}

/* Landing — explore section */
.vmhs-public .app-section__head--sub {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.vmhs-public .app-section__head--sub h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.vmhs-public .app-steps--landing {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.vmhs-public .app-steps--landing .app-step {
  text-align: left;
}

.vmhs-public .app-steps--landing .app-step__num {
  margin-bottom: 0.5rem;
}

.vmhs-public .vmhs-staff-strip--landing {
  margin-top: 2rem;
}

.vmhs-public .vmhs-staff-strip__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

/* ─── Inner page hero ─── */
.vmhs-public .app-page-hero-card {
  border-radius: 1rem;
}

.vmhs-public .app-page-hero-section {
  padding-bottom: 0;
}

/* ─── Header brand text ─── */
.vmhs-public .public-header .brand-link .brand-text-app {
  display: flex;
}

/* ─── Simpler desktop nav pills ─── */
.vmhs-public .nav-links--simple {
  gap: 0.4rem 0.55rem !important;
}

.vmhs-public .nav-links--simple > a,
.vmhs-public .nav-links--simple .nav-dropdown__toggle {
  font-size: 0.875rem !important;
}

.vmhs-public .nav-cta-primary {
  display: inline-flex !important;
  align-items: center;
  padding: 0.45rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--vmhs-brand, #B7670F), var(--vmhs-primary-hover, #92400e)) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(183, 103, 15, 0.35);
}

.vmhs-public .nav-cta-primary:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

/* ─── Staff dashboard layout ─── */
.vmhs-app .layout-section,
body[data-vmhs-theme] .layout-section {
  margin-bottom: 2rem;
}

.vmhs-app .layout-section:last-child,
body[data-vmhs-theme] .layout-section:last-child {
  margin-bottom: 0;
}

.vmhs-app .layout-section .row.g-4,
body[data-vmhs-theme] .layout-section .row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.vmhs-app .layout-section > [class*="col-"],
.vmhs-app .row.layout-section > [class*="col-"],
body[data-vmhs-theme] .layout-section > [class*="col-"],
body[data-vmhs-theme] .row.layout-section > [class*="col-"] {
  min-width: 0;
}

/* Columns as flex stacks so single-card tiles can equalize height */
.vmhs-app .row > [class*="col-"],
.vmhs-public .row > [class*="col-"],
body[data-vmhs-theme] .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vmhs-app .row > [class*="col-"] > .card,
.vmhs-app .row > [class*="col-"] > .metric-card,
.vmhs-public .row > [class*="col-"] > .app-card,
.vmhs-public .row > [class*="col-"] > .card,
body[data-vmhs-theme] .row > [class*="col-"] > .card,
body[data-vmhs-theme] .row > [class*="col-"] > .metric-card {
  width: 100%;
  min-height: 0;
}

/* Stacked cards in a column: size to content (ticket detail, forms, etc.) */
.vmhs-app .row > [class*="col-"] > .card:not(:only-child),
.vmhs-app .row > [class*="col-"] > .metric-card:not(:only-child),
.vmhs-public .row > [class*="col-"] > .card:not(:only-child),
.vmhs-public .row > [class*="col-"] > .app-card:not(:only-child),
body[data-vmhs-theme] .row > [class*="col-"] > .card:not(:only-child) {
  flex: 0 0 auto;
  height: auto;
  overflow: visible;
}

/* Single card in a column: fill sibling column height for dashboard tiles */
.vmhs-app .row > [class*="col-"] > .card:only-child,
.vmhs-app .row > [class*="col-"] > .metric-card:only-child,
.vmhs-public .row > [class*="col-"] > .app-card:only-child,
.vmhs-public .row > [class*="col-"] > .card:only-child,
body[data-vmhs-theme] .row > [class*="col-"] > .card:only-child,
body[data-vmhs-theme] .row > [class*="col-"] > .metric-card:only-child,
.vmhs-app .row > [class*="col-"] > .card.card-stretch:only-child,
.vmhs-app .row > [class*="col-"] > .card.h-100:only-child {
  flex: 1 1 auto;
  height: 100%;
}

.vmhs-app .pc-content,
body[data-vmhs-theme] .pc-content {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.vmhs-app .pc-content > .card,
.vmhs-app .layout-section > .card,
body[data-vmhs-theme] .pc-content > .card,
body[data-vmhs-theme] .layout-section > .card {
  margin-bottom: 0;
}

.vmhs-app .card > .card-body,
body[data-vmhs-theme] .card > .card-body {
  padding: 1.25rem 1.5rem;
}

.vmhs-app .card > .card-header,
.vmhs-app .card > .card-footer,
body[data-vmhs-theme] .card > .card-header,
body[data-vmhs-theme] .card > .card-footer {
  padding: 1rem 1.5rem;
}

.vmhs-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
}

.vmhs-quick-bar__label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.vmhs-quick-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vmhs-primary-hover, #92400e);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.vmhs-quick-bar a:hover {
  background: #ccfbf1;
  color: var(--vmhs-primary-dark, #7a4f0a);
}

/* Cleaner staff metric cards — compact KPI tiles */
.vmhs-app .metric-card,
body[data-vmhs-theme] .metric-card {
  padding: 0.85rem 1rem !important;
  gap: 0.5rem !important;
  border-radius: var(--vmhs-radius-lg, 0.875rem) !important;
  box-shadow: var(--vmhs-shadow-sm) !important;
}

.vmhs-app .metric-card > .d-flex.gap-3,
body[data-vmhs-theme] .metric-card > .d-flex.gap-3 {
  gap: 0.55rem !important;
}

.vmhs-app .metric-card .mt-2,
body[data-vmhs-theme] .metric-card .mt-2 {
  margin-top: 0.2rem !important;
}

.vmhs-app .metric-card .metric-progress,
body[data-vmhs-theme] .metric-card .metric-progress {
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.85;
  margin-top: 0 !important;
}

.vmhs-app .metric-card .metric-trend,
body[data-vmhs-theme] .metric-card .metric-trend {
  font-size: 0.8rem;
}

.vmhs-app .metric-card .badge,
body[data-vmhs-theme] .metric-card .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3em 0.6em;
  line-height: 1.2;
}

.vmhs-app .metric-card .metric-icon,
body[data-vmhs-theme] .metric-card .metric-icon {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.1rem !important;
  border-radius: 0.5rem !important;
}

.vmhs-app .metric-card .metric-value,
body[data-vmhs-theme] .metric-card .metric-value {
  font-size: 1.3rem !important;
  line-height: 1.05 !important;
}

.vmhs-app .metric-card .metric-note,
body[data-vmhs-theme] .metric-card .metric-note {
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
}

.vmhs-app .metric-card:hover,
body[data-vmhs-theme] .metric-card:hover {
  transform: translateY(-2px);
}

.vmhs-app .vmhs-kpi-row,
body[data-vmhs-theme] .vmhs-kpi-row {
  --bs-gutter-y: 0.75rem;
}

.vmhs-app .card.card-stretch > .card-body > h5,
.vmhs-app .card.card-stretch > .card-header h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vmhs-staff-hero .app-page-hero-card {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/* Tables — readable */
.vmhs-app .table thead th,
.vmhs-public .table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom-width: 1px;
}

/* Bottom nav — modern pill active */
.vmhs-public .app-bottom-nav a.is-active {
  color: var(--vmhs-brand, #B7670F);
}

.vmhs-public .app-bottom-nav a.is-active i {
  transform: scale(1.08);
}

/* Public ticket progress timeline */
.vmhs-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vmhs-timeline__item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  position: relative;
}

.vmhs-timeline__item--current .vmhs-timeline__icon {
  background: var(--vmhs-brand, #B7670F);
  color: #fff;
  box-shadow: 0 4px 12px rgba(183, 103, 15, 0.35);
}

.vmhs-timeline__item--current .vmhs-timeline__label {
  color: var(--vmhs-primary-hover, #92400e);
}

.vmhs-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.vmhs-timeline__icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--vmhs-brand, #B7670F);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 1;
}

.vmhs-timeline__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.vmhs-timeline__detail {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.vmhs-timeline__time {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* Compact public page title — base fallback; polish layer refines on .vmhs-public */
.vmhs-public-page-head {
  padding: 1rem 0 0.75rem;
  margin-bottom: 0;
}

.vmhs-public-page-head__title {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.vmhs-public-page-head__lead {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  max-width: 42rem;
}

/* Staff page title — plain fallback when desktop shell is off */
.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head {
  padding: 0.25rem 0 0;
  margin-bottom: 1.5rem;
}

.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head__crumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head__crumb a {
  color: var(--vmhs-brand, #B7670F);
  text-decoration: none;
}

.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head__crumb a:hover {
  text-decoration: underline;
}

.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.vmhs-app:not(.vmhs-desktop-shell) .vmhs-staff-page-head__lead {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ─── Card interiors — single shell, no stacked/double borders ─── */
.vmhs-app,
.vmhs-desktop-shell,
body[data-vmhs-theme] {
  --vmhs-surface-inset: 0.75rem;
  --vmhs-surface-inset-lg: 1rem;
  --vmhs-surface-inner-radius: calc(var(--vmhs-radius-md, 0.75rem) - 2px);
  --vmhs-surface-divider: rgba(226, 232, 240, 0.72);
}

/* Lighter header rule — avoids a thick band against the outer card edge */
.vmhs-app .card > .card-header,
.vmhs-desktop-shell .card > .card-header,
body[data-vmhs-theme] .card > .card-header {
  border-bottom: 1px solid var(--vmhs-surface-divider);
  background: transparent;
}

/* Header + flush list: one card shell, inset rows, no inner box border */
.vmhs-app .card > .card-header + .list-group,
.vmhs-app .card > .card-header + .list-group-flush,
.vmhs-desktop-shell .card > .card-header + .list-group,
.vmhs-desktop-shell .card > .card-header + .list-group-flush,
body[data-vmhs-theme] .card > .card-header + .list-group,
body[data-vmhs-theme] .card > .card-header + .list-group-flush {
  margin: 0;
  padding: 0.1rem 0 0.55rem;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

/* Flush list without header — still padded inside the card shell */
.vmhs-app .card > .list-group-flush:first-child,
.vmhs-app .card > .list-group:first-child,
.vmhs-desktop-shell .card > .list-group-flush:first-child,
.vmhs-desktop-shell .card > .list-group:first-child,
body[data-vmhs-theme] .card > .list-group-flush:first-child,
body[data-vmhs-theme] .card > .list-group:first-child {
  margin: 0;
  padding: 0.55rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.vmhs-app .card > .list-group-flush > .list-group-item,
.vmhs-app .card > .list-group > .list-group-item,
.vmhs-desktop-shell .card > .list-group-flush > .list-group-item,
.vmhs-desktop-shell .card > .list-group > .list-group-item,
body[data-vmhs-theme] .card > .list-group-flush > .list-group-item,
body[data-vmhs-theme] .card > .list-group > .list-group-item {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0.6rem 1.25rem;
  background: transparent !important;
  border-bottom: 1px solid var(--vmhs-surface-divider) !important;
}

.vmhs-app .card > .list-group-flush > .list-group-item:last-child,
.vmhs-app .card > .list-group > .list-group-item:last-child,
.vmhs-desktop-shell .card > .list-group-flush > .list-group-item:last-child,
.vmhs-desktop-shell .card > .list-group > .list-group-item:last-child,
body[data-vmhs-theme] .card > .list-group-flush > .list-group-item:last-child,
body[data-vmhs-theme] .card > .list-group > .list-group-item:last-child {
  border-bottom: none !important;
}

.vmhs-app .card .card-body > .list-group-flush,
.vmhs-app .card .card-body > .list-group,
.vmhs-desktop-shell .card .card-body > .list-group-flush,
.vmhs-desktop-shell .card .card-body > .list-group,
body[data-vmhs-theme] .card .card-body > .list-group-flush,
body[data-vmhs-theme] .card .card-body > .list-group {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.vmhs-app .card .card-body > .list-group-flush > .list-group-item,
.vmhs-app .card .card-body > .list-group > .list-group-item,
.vmhs-desktop-shell .card .card-body > .list-group-flush > .list-group-item,
.vmhs-desktop-shell .card .card-body > .list-group > .list-group-item,
body[data-vmhs-theme] .card .card-body > .list-group-flush > .list-group-item,
body[data-vmhs-theme] .card .card-body > .list-group > .list-group-item {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
  background: transparent !important;
  border-bottom: 1px solid var(--vmhs-surface-divider) !important;
}

.vmhs-app .card .card-body > .list-group-flush > .list-group-item:last-child,
.vmhs-app .card .card-body > .list-group > .list-group-item:last-child,
.vmhs-desktop-shell .card .card-body > .list-group-flush > .list-group-item:last-child,
.vmhs-desktop-shell .card .card-body > .list-group > .list-group-item:last-child,
body[data-vmhs-theme] .card .card-body > .list-group-flush > .list-group-item:last-child,
body[data-vmhs-theme] .card .card-body > .list-group > .list-group-item:last-child {
  border-bottom: none !important;
}

.vmhs-app .card > .list-group-flush + .card-footer,
.vmhs-app .card > .list-group + .card-footer,
.vmhs-desktop-shell .card > .list-group-flush + .card-footer,
.vmhs-desktop-shell .card > .list-group + .card-footer,
body[data-vmhs-theme] .card > .list-group-flush + .card-footer,
body[data-vmhs-theme] .card > .list-group + .card-footer {
  margin: 0;
  padding: 0.55rem 1.25rem 0.85rem;
  border: none;
  border-top: 1px solid var(--vmhs-surface-divider) !important;
  border-radius: 0;
  background: transparent;
}

/* card-body.p-0 used for simple lists — inset content, no inner wrapper border */
.vmhs-app .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)),
.vmhs-desktop-shell .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)),
body[data-vmhs-theme] .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) {
  padding: 0.55rem var(--vmhs-surface-inset) var(--vmhs-surface-inset) !important;
}

.vmhs-app .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group,
.vmhs-app .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group-flush,
.vmhs-desktop-shell .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group,
.vmhs-desktop-shell .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group-flush,
body[data-vmhs-theme] .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group,
body[data-vmhs-theme] .card .card-body.p-0:not(.vmhs-listing-table):not(:has(> .table-responsive)):not(:has(> table)) > .list-group-flush {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

/* Keep data tables full-bleed inside cards */
.vmhs-app .card .card-body.p-0.vmhs-listing-table,
.vmhs-app .card .card-body.p-0:has(> .table-responsive),
.vmhs-app .card .card-body.p-0:has(> table.table),
.vmhs-desktop-shell .card .card-body.p-0.vmhs-listing-table,
.vmhs-desktop-shell .card .card-body.p-0:has(> .table-responsive),
.vmhs-desktop-shell .card .card-body.p-0:has(> table.table),
body[data-vmhs-theme] .card .card-body.p-0.vmhs-listing-table,
body[data-vmhs-theme] .card .card-body.p-0:has(> .table-responsive),
body[data-vmhs-theme] .card .card-body.p-0:has(> table.table) {
  padding: 0 !important;
}

.vmhs-app .card .card-body.p-0:has(> .table-responsive) > .list-group,
.vmhs-app .card .card-body.p-0:has(> .table-responsive) > .list-group-flush,
.vmhs-desktop-shell .card .card-body.p-0:has(> .table-responsive) > .list-group,
.vmhs-desktop-shell .card .card-body.p-0:has(> .table-responsive) > .list-group-flush,
body[data-vmhs-theme] .card .card-body.p-0:has(> .table-responsive) > .list-group,
body[data-vmhs-theme] .card .card-body.p-0:has(> .table-responsive) > .list-group-flush {
  margin: 0;
  border: none;
  border-radius: 0;
}

/* Nested cards / bordered blocks inside a parent card body */
.vmhs-app .card .card-body > .card,
.vmhs-desktop-shell .card .card-body > .card,
body[data-vmhs-theme] .card .card-body > .card {
  border: 1px solid var(--vmhs-surface-divider) !important;
  box-shadow: none !important;
  border-radius: var(--vmhs-surface-inner-radius);
}

.vmhs-app .card .card-body > .card + .card,
.vmhs-app .card .card-body > .row > [class*="col-"] > .card + .card,
.vmhs-desktop-shell .card .card-body > .card + .card,
.vmhs-desktop-shell .card .card-body > .row > [class*="col-"] > .card + .card,
body[data-vmhs-theme] .card .card-body > .card + .card,
body[data-vmhs-theme] .card .card-body > .row > [class*="col-"] > .card + .card {
  margin-top: var(--vmhs-surface-inset);
}

.vmhs-app .card .card-body > .row.g-2,
.vmhs-app .card .card-body > .row.g-3,
.vmhs-app .card .card-body > .row.g-4,
.vmhs-desktop-shell .card .card-body > .row.g-2,
.vmhs-desktop-shell .card .card-body > .row.g-3,
.vmhs-desktop-shell .card .card-body > .row.g-4,
body[data-vmhs-theme] .card .card-body > .row.g-2,
body[data-vmhs-theme] .card .card-body > .row.g-3,
body[data-vmhs-theme] .card .card-body > .row.g-4 {
  margin-top: 0.15rem;
}

.vmhs-app .card .card-body .list-group.border,
.vmhs-app .card .card-body > .border.rounded,
.vmhs-desktop-shell .card .card-body .list-group.border,
.vmhs-desktop-shell .card .card-body > .border.rounded,
body[data-vmhs-theme] .card .card-body .list-group.border,
body[data-vmhs-theme] .card .card-body > .border.rounded {
  border-color: var(--vmhs-surface-divider) !important;
  box-shadow: none;
}

.vmhs-app .card .card-body .list-group-flush.border > .list-group-item,
.vmhs-desktop-shell .card .card-body .list-group-flush.border > .list-group-item,
body[data-vmhs-theme] .card .card-body .list-group-flush.border > .list-group-item {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--vmhs-surface-divider) !important;
}

.vmhs-app .card .card-body .list-group-flush.border > .list-group-item:last-child,
.vmhs-desktop-shell .card .card-body .list-group-flush.border > .list-group-item:last-child,
body[data-vmhs-theme] .card .card-body .list-group-flush.border > .list-group-item:last-child {
  border-bottom: none !important;
}

/* Bordered status tiles inside panel cards */
.vmhs-app .card.vmhs-status-panel > .card-body,
.vmhs-desktop-shell .card.vmhs-status-panel > .card-body,
body[data-vmhs-theme] .card.vmhs-status-panel > .card-body {
  padding: 0.85rem 1rem 1rem !important;
}

.vmhs-status-panel--compact > .card-body {
  padding: 0.85rem 1rem 1rem !important;
}

/* Intake sidebar rails — section padding provides inset; lists stay borderless */
.vmhs-intake-rail .vmhs-intake-rail__list {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  margin: 0;
}

.vmhs-visitor-profile-card > .card-body {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

/* Legacy slim footer — superseded by app-footer--minimal (vmhs-public-footer.css) */
