/* Immunization Scheduler (All Ages) – custom styles */

#app {
  max-width: 1800px;
  margin: 0 auto;
  padding: 1rem;
}

.card-header h5 {
  font-size: 1rem;
}

.table th,
.table td {
  font-size: 0.875rem;
  vertical-align: middle;
}

.form-check-label {
  font-size: 0.875rem;
}

#age-banner {
  font-size: 1rem;
}

/* Sidebar panel styling */
#patient-sidebar .card {
  border-right: 2px solid #dee2e6;
}

@media (min-width: 768px) {
  #patient-sidebar {
    border-right: 1px solid #dee2e6;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .card-body {
    padding: 0.75rem;
  }
}

/* Limit sticky panel height on tall screens */
@media (min-height: 600px) {
  .position-sticky {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

/* Restore Bootstrap flex grid inside the Patient Information card
   (Quarto removes display:flex from .row globally) */
#patient-sidebar .card-body .row {
  display: flex;
  flex-wrap: wrap;
}
#patient-sidebar .card-body .row > .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}
#patient-sidebar .card-body .row > .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
