/* Patient appointments portal — public, clinical. */

.hms-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #5a7182;
}
.hms-portal-card {
  background: #fff;
  border: 1px solid var(--line, #d5e2ea);
  border-radius: 16px;
  padding: 1.1rem;
}
.hms-portal-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hms-portal-nav { display: flex; gap: 0.9rem; }
.hms-record-hero { margin-bottom: 1.2rem; }
.hms-chip--admitted, .hms-chip--opd { background: #e7f1f5; }
.hms-chip--discharged { background: #e7f4ee; }
.hms-chip--pending_documents { background: #f6f1e8; }
.hms-chip--awaiting_payment { background: #f8eaea; }
.hms-chip--awaiting_embassy { background: #ece8f6; }
.hms-portal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.hms-portal-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hms-portal-item .hms-btn { align-self: center; }
.hms-portal-actions { display: flex; gap: 0.4rem; align-items: flex-start; }
.hms-portal-flash {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #e7f4ee;
}
.hms-portal-flash.is-error { background: #f8eaea; }
.hms-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.hms-chip--pending { background: #f6f1e8; }
.hms-chip--confirmed { background: #e7f4ee; }
.hms-chip--cancelled { background: #f8eaea; }
.hms-chip--issued { background: #e7f4ee; }
.hms-chip--collected { background: #e7f1f5; }
.hms-chip--authorized, .hms-chip--approved, .hms-chip--settled, .hms-chip--ready, .hms-chip--delivered, .hms-chip--active { background: #e7f4ee; }
.hms-chip--preauth, .hms-chip--submitted, .hms-chip--preparing { background: #e7f1f5; }
.hms-chip--draft, .hms-chip--requested { background: #f6f1e8; }
.hms-chip--rejected, .hms-chip--npo, .hms-chip--expired { background: #f8eaea; }
.hms-chip--diabetic { background: #ece8f6; }
.hms-portal-form { display: grid; gap: 0.75rem; margin: 1rem 0; max-width: 28rem; }
.hms-portal-dialog {
  border: 0;
  border-radius: 16px;
  padding: 1.2rem;
  width: min(28rem, 92vw);
}
.hms-portal-dialog::backdrop { background: rgba(15, 74, 99, 0.4); }
.hms-portal-dialog label { display: grid; gap: 0.3rem; margin: 0.6rem 0; font-weight: 650; }
.hms-portal-dialog input,
.hms-portal-dialog select {
  border: 1px solid #d5e2ea;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
}
.hms-portal-dialog__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; }

.hms-portal .login-username,
.hms-portal .login-password,
.hms-portal .login-submit { display: grid; gap: 0.3rem; margin: 0.6rem 0; }
.hms-portal input[type="text"],
.hms-portal input[type="password"] {
  border: 1px solid #d5e2ea;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

.hms-signin-card {
  max-width: 28rem;
  margin: 2rem auto;
}
.hms-signin-card h1 { margin: 0.2rem 0 0.6rem; font-size: 1.6rem; }
.hms-signin-form { display: grid; gap: 0.8rem; margin: 1rem 0; }
.hms-signin-form label { display: grid; gap: 0.3rem; font-weight: 650; }
.hms-signin-form input[type="text"],
.hms-signin-form input[type="password"] {
  border: 1px solid #d5e2ea;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
}
.hms-signin-remember {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500 !important;
}
.hms-signin-form .hms-btn { justify-self: start; }
.hms-captcha { margin: 0.4rem 0; }
.hms-captcha__row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hms-captcha__image {
  display: block;
  width: 180px;
  height: 56px;
  border: 1px solid #d5cfc4;
  border-radius: 6px;
  background: #f4f1ea;
}
.hms-captcha__refresh {
  border: 0;
  background: transparent;
  color: #0f4a63;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.hms-lab-flag { color: #b42318; font-weight: 800; }
.hms-lab-table { width: 100%; border-collapse: collapse; margin: 0.7rem 0; font-size: 0.92rem; }
.hms-lab-table th,
.hms-lab-table td { border-bottom: 1px solid #d5e2ea; text-align: left; padding: 0.35rem 0.3rem; }
.hms-study-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 22, 32, 0.78);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.hms-study-viewer[hidden] { display: none !important; }
.hms-study-viewer__panel {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  overflow: auto;
}
.hms-study-viewer__panel img { max-width: 100%; height: auto; display: block; }

input.hms-password-mask {
  font-size: 1.7rem;
  letter-spacing: 0.3em;
  font-family: ui-monospace, Consolas, monospace;
}
.hms-account-photo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.hms-account-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #d5e2ea;
}
