/* [TFH-802:TFH_USER_PROFILE_REFINED_LAYOUT:CSS-START] */
.tfh-users-entry-screen {
  overflow: hidden;
}

.tfh-users-entry-body {
  overflow: hidden;
  padding: 14px 18px;
}

.tfh-users-entry-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(480px, 1.35fr) minmax(360px, .9fr);
  gap: 16px;
}

.tfh-users-profile-card-vertical {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 16px;
  overflow: auto;
}

.tfh-users-profile-card-vertical .tfh-users-picture-panel {
  position: sticky;
  top: 0;
  align-self: start;
}

.tfh-users-fields-vertical {
  grid-template-columns: 1fr;
  align-content: start;
}

.tfh-users-fields-vertical .tfh-users-admin-toggle {
  grid-column: auto;
  order: -1;
}

.tfh-users-entry-inline-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
}

.tfh-users-access-stack {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, .72fr) minmax(300px, 1.28fr);
  gap: 14px;
  margin: 0;
}

.tfh-users-access-stack .tfh-users-access-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.tfh-users-access-stack .tfh-users-check-list {
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  position: relative;
  isolation: isolate;
  overscroll-behavior: contain;
}

.tfh-users-access-stack .tfh-users-check-list h3 {
  position: sticky;
  top: -8px;
  z-index: 10;
  margin: 0 -8px 5px;
  padding: 8px 10px;
  border-top: 1px solid #d2dee7;
  border-bottom: 1px solid #c5d4df;
  color: #24435e;
  background: #e8f0f6;
  box-shadow: 0 2px 4px rgba(19, 52, 78, .12);
}

.tfh-users-access-stack .tfh-users-check-list h3 + label {
  margin-top: 0;
}

.tfh-users-footer {
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .tfh-users-entry-body {
    overflow: auto;
  }

  .tfh-users-entry-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .tfh-users-profile-card-vertical {
    height: auto;
  }

  .tfh-users-access-stack {
    height: 720px;
  }
}

@media (max-width: 680px) {
  .tfh-users-profile-card-vertical {
    grid-template-columns: 1fr;
  }

  .tfh-users-profile-card-vertical .tfh-users-picture-panel {
    position: static;
  }

  .tfh-users-entry-inline-message {
    grid-column: auto;
  }
}
/* [TFH-802:TFH_USER_PROFILE_REFINED_LAYOUT:CSS-END] */
