.sp-catalog-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sp-catalog-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sp-slate-200);
  border-radius: 0.75rem;
  background: var(--sp-surface);
  text-decoration: none;
  color: var(--sp-slate-800);
}

.sp-catalog-tile:hover,
.sp-catalog-tile.is-active {
  border-color: var(--sp-blue-400);
  box-shadow: 0 0 0 1px var(--sp-blue-tint);
}

.sp-catalog-tile__count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.sp-catalog-tile__label {
  font-size: 0.8125rem;
  color: var(--sp-slate-600);
}

.sp-catalog-tile--purple .sp-catalog-tile__count {
  color: var(--sp-purple);
}

.sp-catalog-tile--blue .sp-catalog-tile__count {
  color: var(--sp-blue-600);
}

.sp-catalog-search .form-control {
  max-width: 36rem;
}

.sp-catalog-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #eff6ff;
  border: 1px solid var(--sp-blue-300);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.sp-catalog-table tbody tr.sp-catalog-row {
  cursor: pointer;
}

.sp-catalog-name {
  font-weight: 600;
  color: var(--sp-slate-800);
}

.sp-catalog-sub {
  font-size: 0.8125rem;
  color: var(--sp-slate-500);
}

.sp-catalog-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--sp-slate-100);
  border: 1px solid var(--sp-slate-200);
  font-size: 0.75rem;
}

.sp-vis {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.sp-vis--on::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sp-success);
}

.sp-vis--hidden {
  color: var(--sp-slate-500);
}

.sp-vis--hidden::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--sp-slate-400);
  background: transparent;
}

.sp-catalog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--sp-slate-600);
}

.sp-catalog-check {
  width: 2.25rem;
}

.sp-catalog-check-list {
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--sp-slate-200);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.sp-catalog-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  background: var(--sp-slate-800);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 991.98px) {
  .sp-catalog-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* Patient info page content (editor and public page share these styles). */
.medication-guide-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.medication-guide-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}

.medication-guide-content > :first-child {
  margin-top: 0;
}

.medication-guide-content p,
.medication-guide-content ul,
.medication-guide-content ol {
  margin-bottom: 0.75rem;
}

.medication-guide-content blockquote {
  border-left: 4px solid var(--bs-primary, #2563eb);
  background: var(--bs-light, #f8fafc);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

.medication-guide-content blockquote > :last-child {
  margin-bottom: 0;
}
