/* The patient list, from the receptionist deck's .ptitle / .psearch / .prow. */
#akashic-health-records-patient-portal-root .ahr-patients__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

#akashic-health-records-patient-portal-root .ahr-patients__head .ahr-view-title {
  flex: 1;
  margin: 0;
}

#akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__import {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
}

#akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__add {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 13px;
  gap: 7px;
}

#akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__add svg {
  width: 14px;
  height: 14px;
}

/* The deck's .psearch sits 14px above the first row; the shared Paginator's default is 16px. */
#akashic-health-records-patient-portal-root .ahr-patients__list .ahr-paginator__search {
  margin-bottom: 14px;
}

#akashic-health-records-patient-portal-root .ahr-patients__list [data-slot="search-control"] input {
  height: 44px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}

#akashic-health-records-patient-portal-root .ahr-patients__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

#akashic-health-records-patient-portal-root .ahr-patients__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  margin: 0 0 4px;
  padding: 8px 12px;
  background: var(--surface);
  box-shadow: var(--ak-card-lift);
}

#akashic-health-records-patient-portal-root .ahr-patients__row:hover {
  background: var(--line-soft);
}

#akashic-health-records-patient-portal-root .ahr-patients__open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .ahr-patients__open .ahr-inbox-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 13px;
}

#akashic-health-records-patient-portal-root .ahr-patients__who {
  min-width: 0;
}

#akashic-health-records-patient-portal-root .ahr-patients .ahr-patients__name {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: var(--ak-heading-weight);
  line-height: 21.7px;
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .ahr-patients .ahr-patients__sum {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__quick {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 2px;
  background: var(--surface);
  font-size: 13px;
  gap: 6px;
}

#akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__quick svg {
  width: 14px;
  height: 14px;
}

/* A phone keeps the zap and drops the label. */
@media (max-width: 639px) {
  #akashic-health-records-patient-portal-root .ahr-patients__row,
  #akashic-health-records-patient-portal-root .ahr-patients__open {
    gap: 11px;
  }

  #akashic-health-records-patient-portal-root .ahr-patients__row {
    padding: 10px 12px;
  }

  #akashic-health-records-patient-portal-root .ahr-patients .btn.ahr-patients__quick {
    min-height: 30px;
    padding: 7px;
  }

  /* Outranks the root rule that keeps every icon button's label inline. */
  #akashic-health-records-patient-portal-root .ahr-patients button.btn > svg + span.ahr-patients__quick-label {
    display: none;
  }
}
