body {
  font-family: Manrope;
  font-weight: regular;
  font-size: clamp(14px, 0.9vw, 16px);
  color: #072635;
  margin: 18px;
  background: #F6F7F8 0% 0% no-repeat padding-box;
}
.triangle-up {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #072635;
}
.triangle-down {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #072635;
}
h2 {
  margin-left: 20px;
  font-weight: bolder;
  font-size: clamp(18px, 1.5vw, 24px);
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.app {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "hdr hdr hdr" "patients main right";
  gap: 32px;
  min-height: calc(100dvh - (18px * 2));
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
}
.app .hdr {
  grid-area: hdr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background-color: white;
  border-radius: 70px;
  padding: 12px 32px;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
}
.app .hdr .user hr {
  height: 44px;
  border: none;
  border-left: 1px solid #EDEDED;
  margin: 0;
}
.app .hdr .user .flex-row {
  gap: 12px;
  align-items: center;
}
.app .hdr .user .user-wrap {
  gap: 8px;
}
.app .hdr .user .user-name {
  font-size: 14px;
  font-weight: bold;
}
.app .hdr .user .user-role {
  font-size: 14px;
  color: #707070;
}
.app .hdr .user-image {
  background-image: url(/assets/img/senior-woman-doctor-and-portrait-smile-for-health-2023-11-27-05-18-16-utc.png);
  height: 44px;
  width: 44px;
  background-repeat: no-repeat;
}
.app .hdr .user-settings {
  background-image: url(/assets/img/svg/settings_FILL0_wght300_GRAD0_opsz24.svg);
  height: 20px;
  width: 20px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.app .hdr .user-more {
  background-image: url(/assets/img/svg/more_vert_FILL0_wght300_GRAD0_opsz24.svg);
  height: 18px;
  width: 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.app .hdr #nav-menu {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.app .hdr #nav-menu .nav-item {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 41px;
  gap: 9px;
  font-weight: bold;
  cursor: pointer;
}
.app .hdr #nav-menu .nav-item.is-active {
  background-color: #01F0D0;
}
.app .hdr img {
  height: 17px;
  width: auto;
  align-self: center;
}
.app .hdr .left {
  justify-self: start;
}
.app .hdr .left img {
  height: 100%;
}
.app .hdr .center {
  justify-self: center;
  width: max-content;
  max-width: min(100ch, 80vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app .hdr .user {
  justify-self: end;
}
.app .patients {
  grid-area: patients;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 72px - 32px - (18px * 2));
  min-height: 0;
  gap: 24px;
  overflow: hidden;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
}
.app .patients h2 {
  margin: 24px 24px 0px 20px;
  font-weight: bolder;
  font-size: 24px;
}
.app .patients .patient-list {
  padding: 0;
  margin: 0;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.app .patients .patient-list .patient-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fff;
  min-width: 0;
  transition: background 100ms ease-in-out;
  cursor: pointer;
  height: 48px;
}
.app .patients .patient-list .patient-item.is-active {
  background: #D8FCF7 0% 0% no-repeat padding-box;
}
.app .patients .patient-list .patient-item:hover {
  background-color: #F6F7F8;
}
.app .patients .patient-list .patient-item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.app .patients .patient-list .patient-item .patient-name {
  font-weight: bold;
}
.app .patients .patient-list .patient-item .patient-info {
  color: #707070;
}
.app .patients .patient-list .patient-item .patient-info .info {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app .patients .patient-list .patient-item .actions {
  margin-left: auto;
}
.app .patients .patient-list .patient-item .actions .more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}
.app .patients .patient-list .patient-item .actions .more-btn .icon-ellipsis {
  width: 20px;
  height: 20px;
  display: block;
}
.app .main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 32px;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  height: 1055px;
}
.app .main .diag-history-card {
  background: #F4F0FE 0% 0% no-repeat padding-box;
}
.app .main .diag-history-card.card {
  padding: 0;
}
.app .main .diag-history {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app .main .diag-history h2 {
  margin: 0px 0px 20px 0px;
}
.app .main .diag-history .chart-wrap {
  position: relative;
  border-radius: 12px;
  background: #F4F0FE 0% 0% no-repeat padding-box;
  display: flex;
  padding: 16px;
  flex-direction: row;
  gap: 16px;
  max-height: 298px;
}
.app .main .diag-history .chart-wrap .range-select {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-right: 48px;
}
.app .main .diag-history .chart-wrap .range-select span {
  align-self: flex-end;
}
.app .main .diag-history .chart-wrap .range-select img {
  width: 12px;
  height: 6px;
  align-self: flex-end;
  margin-bottom: 6px;
}
.app .main .diag-history .chart-wrap .flex-column {
  flex: 1 1 auto;
  min-width: 0;
  height: clamp(260px, 40vh, calc(298px - (20px * 2)));
  gap: 28px;
}
.app .main .diag-history .chart-wrap .flex-column .flex-row {
  flex: 0 0 auto;
  justify-content: space-between;
}
.app .main .diag-history .chart-wrap .flex-column .chart-area {
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 900px) {
  .app .main .diag-history .chart-wrap .flex-column {
    grid-template-columns: 1fr;
  }
}
.app .main .diag-history .chart-wrap #bpChart {
  width: 100% !important;
  height: 100% !important;
  /* fill the area above */
  display: block;
}
.app .main .diag-history .chart-wrap .column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app .main .diag-history .chart-wrap .bp-summary {
  display: flex;
  flex-direction: column;
  width: 35%;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-date {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 8px;
}
.app .main .diag-history .chart-wrap .bp-summary .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-dot.bp-sys {
  background: #e56ad6;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-dot.bp-dia {
  background: #7b6cf6;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-value {
  font-size: 22px;
  font-weight: bold;
}
.app .main .diag-history .chart-wrap .bp-summary .bp-level {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
.app .main .diag-history .chart-wrap .bp-summary hr {
  border: none;
  border-top: 1px solid #CBC8D4;
  margin: 12px 0;
}
.app .main .diag-history .chart-wrap h3 {
  margin: 0;
  font-size: 18px;
}
.app .main .kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.app .main .kpis .card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
  box-shadow: none;
  padding: 16px;
}
.app .main .kpis .card img {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}
.app .main .kpis .card .flex-row {
  gap: 4px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: bolder;
}
.app .main .kpis .card .kpi-label {
  font-size: clamp(12px, 1vw, 16px);
}
.app .main .kpis .card .kpi-level {
  font-size: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app .main .kpis #kpi-respiratory {
  background: #E0F3FA 0% 0% no-repeat padding-box;
}
.app .main .kpis #kpi-temperature {
  background: #FFE6E9 0% 0% no-repeat padding-box;
}
.app .main .kpis #kpi-heart {
  background: #FFE6F1 0% 0% no-repeat padding-box;
}
.app .main .diag-list {
  min-height: 260px;
  overflow: hidden;
}
.app .main .diag-list.flex-column {
  gap: 40px;
}
.app .main .diag-list .diag-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app .main .diag-list .diag-wrap .diag-header {
  justify-content: space-between;
  background-color: #F6F7F8;
  border-radius: 24px;
  padding: 16px;
  font-size: 14px;
  font-weight: bold;
}
.app .main .diag-list .diag-wrap .diag-header.grid-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  gap: 16px;
  padding-right: 32px;
}
.app .main .diag-list .diag-wrap .diag-items {
  display: flex;
  flex-direction: column;
  height: calc(100% - (20px * 4));
  overflow-y: scroll;
  overflow-x: hidden;
}
.app .main .diag-list .diag-wrap .diag-items .grid-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.app .main .diag-list .diag-wrap .diag-items .diag-separator {
  border: none;
  border-top: 1px solid #f4efef;
  margin: 4px 0;
}
.app .main .diag-list h2 {
  margin: 0;
}
.app .right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: -14px;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  height: 1069px;
}
.app .right .profile {
  top: 32px;
  max-height: calc(100dvh - (32px * 2) - 64px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.app .right .profile button {
  background: #01F0D0 0% 0% no-repeat padding-box;
  padding: 11px 40px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 41px;
  align-self: center;
  margin: 40px 0 12px 0;
  border: none;
  cursor: pointer;
  transition: background 100ms ease-in-out;
}
.app .right .profile button:hover {
  background: #8bfced;
}
.app .right .profile .profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  margin-top: 12px;
  gap: 24px;
}
.app .right .profile .profile-header #profile-name {
  font-size: 24px;
  font-weight: bolder;
}
.app .right .profile .profile-pic {
  width: 200px;
  height: 200px;
}
.app .right .profile .profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app .right .profile .profile-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app .right .profile .profile-body .profile-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.app .right .profile .profile-body .profile-item .flex-column {
  gap: 4px;
}
.app .right .profile .profile-body .profile-item .thumbnail {
  width: 42px;
  height: 42px;
}
.app .right .profile .profile-body .profile-item .profile-label {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #6b7280;
}
.app .right .profile .profile-body .profile-item .profile-value {
  font-weight: bold;
  font-size: 14px;
}
.app .lab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app .lab h2 {
  margin: 0;
}
.app .lab .lab-items .lab-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  transition: background-color 100ms ease-in-out;
}
.app .lab .lab-items .lab-row:hover {
  background-color: #F6F7F8;
}
.app .lab .lab-items .lab-row button {
  border: none;
  background: transparent;
  cursor: pointer;
}
.app .lab .lab-items .lab-row.is-active {
  background-color: #F6F7F8;
}
.app .lab .lab-items .lab-row .lab-download img {
  height: 20px;
  aspect-ratio: 1;
}
.shadow {
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
}
.card,
.diag-history,
.diag-list,
.lab,
.profile {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.02);
}
@media (max-width: 1200px) {
  .app .main .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "hdr" "patients" "right" "main";
  }
  .app .main .kpis {
    grid-template-columns: 1fr;
  }
  .app .patients,
  .app .profile {
    position: static;
    max-height: none;
  }
}
