/* Patient safety context is distinct from amber documentation reminders. */
.appointment-quality-marker.is-clinical {
  color: #b42332;
  background: #fff1f2;
  border-color: #e9a1aa;
}

.clinical-alert-symbol { font-size: 15px; font-weight: 800; line-height: 1; }

.clinical-alert-badge,
.client-clinical-alerts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.clinical-alert-badge {
  justify-content: flex-start;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9f2332;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.clinical-alert-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff1f2;
}

.clinical-alert-badge svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.clinical-alert-badge {
  /* Keep the touch target generous, independently of the compact visible label. */
  min-height: 44px;
  cursor: pointer;
}

button.clinical-alert-badge:hover .clinical-alert-label { background: #ffe4e7; }

button.clinical-alert-badge:focus-visible {
  outline: 2px solid #b42332;
  outline-offset: 2px;
}

.client-clinical-alerts { min-width: 0; }
.client-clinical-alerts:empty { display: none; }
.client-directory-quality .clinical-alert-badge { font-size: 11px; }
.client-directory-quality .clinical-alert-label { padding: 3px 6px; }

.clinical-alert-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  button.clinical-alert-badge { min-height: 28px; }
}

@media (min-width: 761px) {
  .client-card-main { flex-wrap: wrap; }
  .client-card-main h1 { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  .client-clinical-alerts { display: flex; grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 2px; }
  .clinical-alert-badge { font-size: 12px; }
}
