.people-list-page__options,
.access-profile-page__title-row,
.access-profile-page__title-copy,
.access-profile-page__actions,
.access-profile-list__controls,
.access-profile-list__icon,
.access-profile-form-loading,
.access-profile-form__section-header--modules,
.access-profile-module__header,
.access-profile-module__identity,
.access-profile-module__icon,
.access-profile-module__summary,
.access-profile-module__summary > div,
.access-profile-permission,
.access-profile-permission__check,
.access-profile-form__actions,
.access-profile-form__actions > div {
  align-items: center;
  display: flex;
}

.people-list-page__options {
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.access-profile-page__heading {
  padding-bottom: 1rem;
}

.access-profile-page__title-row {
  gap: 1rem;
  justify-content: space-between;
}

.access-profile-page__title-copy {
  gap: .75rem;
  min-width: 0;
}

.access-profile-page__title-copy .header-menu-responsive {
  margin: 0;
}

.access-profile-page__title-copy h3 {
  color: #25324b;
  letter-spacing: 0;
  margin-bottom: .2rem;
}

.access-profile-page__actions {
  flex: 0 0 auto;
  gap: .6rem;
}

.access-profile-list__controls {
  flex: 0 1 680px;
  gap: .65rem;
  justify-content: flex-end;
  min-width: 0;
}

.access-profile-list__controls > .form-select {
  flex: 0 0 170px;
  min-height: 40px;
}

.access-profile-list .entity-list__search {
  flex: 0 1 430px;
}

.access-profile-list .entity-list__columns,
.access-profile-list .entity-list__row,
.access-profile-list .entity-list__skeleton-row {
  grid-template-columns: minmax(210px, 1.25fr) minmax(260px, 1.7fr) minmax(90px, .55fr) minmax(100px, .65fr) 48px;
}

.access-profile-list__icon,
.access-profile-module__icon {
  background: #edf1ff;
  color: #435ebe;
  flex: 0 0 auto;
  justify-content: center;
}

.access-profile-list__icon {
  border-radius: 5px;
  font-size: 1.1rem;
  height: 42px;
  width: 42px;
}

.access-profile-list__description span:last-child {
  display: -webkit-box;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.access-profile-form,
.access-profile-form-loading {
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 6px;
}

.access-profile-form-loading {
  color: #667085;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  min-height: 280px;
}

.access-profile-form {
  overflow: hidden;
}

.access-profile-form > .alert {
  border-radius: 0;
  margin: 0;
}

.access-profile-form__section {
  padding: 1.35rem 1.5rem;
}

.access-profile-form__section + .access-profile-form__section {
  border-top: 1px solid #e5e7ef;
}

.access-profile-form__section-header {
  margin-bottom: 1.15rem;
}

.access-profile-form__section-header h4 {
  color: #25324b;
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: .2rem;
}

.access-profile-form__section-header p {
  color: #7c8aa5;
  font-size: .82rem;
  margin: 0;
}

.access-profile-form__section-header--modules {
  gap: 1rem;
  justify-content: space-between;
}

.access-profile-form__catalog-count {
  background: #eef2ff;
  border-radius: 4px;
  color: #435ebe;
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .55rem;
}

.access-profile-form__empty {
  min-height: 220px;
}

.access-profile-module-group + .access-profile-module-group {
  margin-top: 1.5rem;
}

.access-profile-module-group > h5 {
  color: #5c6880;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.access-profile-module-list {
  display: grid;
  gap: .75rem;
}

.access-profile-module {
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  overflow: hidden;
}

.access-profile-module__header {
  background: #f8f9fc;
  border-bottom: 1px solid #e7eaf0;
  gap: 1rem;
  justify-content: space-between;
  min-height: 64px;
  padding: .65rem .8rem;
}

.access-profile-module__identity {
  gap: .65rem;
  min-width: 0;
}

.access-profile-module__identity > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.access-profile-module__identity strong {
  color: #25324b;
  font-size: .86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-profile-module__identity span {
  color: #7c8aa5;
  font-size: .7rem;
}

.access-profile-module__icon {
  border-radius: 4px;
  height: 38px;
  width: 38px;
}

.access-profile-module__summary {
  color: #667085;
  flex: 0 0 auto;
  font-size: .72rem;
  gap: .75rem;
}

.access-profile-module__summary > div {
  gap: .35rem;
}

.access-profile-permissions {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .75rem .8rem;
}

.access-profile-permission {
  border: 1px solid #e2e6ee;
  border-radius: 5px;
  cursor: pointer;
  gap: .55rem;
  min-height: 52px;
  padding: .5rem .6rem;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.access-profile-permission:hover {
  background: #fafbff;
  border-color: #cfd7e8;
}

.access-profile-permission:focus-within {
  box-shadow: 0 0 0 3px rgba(67, 94, 190, .16);
}

.access-profile-permission--selected {
  background: #f2f5ff;
  border-color: #9cace5;
}

.access-profile-permission > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.access-profile-permission__check {
  border: 1px solid #cbd2df;
  border-radius: 4px;
  color: transparent;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.access-profile-permission--selected .access-profile-permission__check {
  background: #435ebe;
  border-color: #435ebe;
  color: #fff;
}

.access-profile-permission__check i {
  font-size: .78rem;
  line-height: 1;
}

.access-profile-permission__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.access-profile-permission__copy strong {
  color: #344054;
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.access-profile-permission__copy small {
  color: #8a95a9;
  font-size: .64rem;
  margin-top: .1rem;
}

.access-profile-permission input:disabled + .access-profile-permission__check {
  opacity: .75;
}

.access-profile-permission--readonly {
  cursor: default;
}

.access-profile-form__actions {
  background: #f8f9fc;
  border-top: 1px solid #e5e7ef;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
  padding: .85rem 1.5rem;
}

.access-profile-form__actions > div {
  gap: .55rem;
}

body.theme-dark .access-profile-page__title-copy h3,
body.theme-dark .access-profile-form__section-header h4,
body.theme-dark .access-profile-module__identity strong,
body.theme-dark .access-profile-permission__copy strong {
  color: #f1f2f8;
}

body.theme-dark .access-profile-form,
body.theme-dark .access-profile-form-loading,
body.theme-dark .access-profile-module {
  background: #1e1e2d;
  border-color: #35354f;
}

body.theme-dark .access-profile-form__section + .access-profile-form__section,
body.theme-dark .access-profile-module__header,
body.theme-dark .access-profile-form__actions {
  border-color: #35354f;
}

body.theme-dark .access-profile-module__header,
body.theme-dark .access-profile-form__actions {
  background: #242436;
}

body.theme-dark .access-profile-form__section-header p,
body.theme-dark .access-profile-module__identity span,
body.theme-dark .access-profile-module__summary,
body.theme-dark .access-profile-form-loading {
  color: #a7aac2;
}

body.theme-dark .access-profile-list__icon,
body.theme-dark .access-profile-module__icon {
  background: #2c3150;
  color: #9eafff;
}

body.theme-dark .access-profile-form__catalog-count {
  background: #2c3150;
  color: #b8c3ff;
}

body.theme-dark .access-profile-permission {
  background: #1e1e2d;
  border-color: #41415c;
}

body.theme-dark .access-profile-permission:hover {
  background: #282839;
  border-color: #555573;
}

body.theme-dark .access-profile-permission--selected {
  background: #2a2f4c;
  border-color: #7183d1;
}

body.theme-dark .access-profile-permission__check {
  border-color: #65657f;
}

@media (max-width: 1199.98px) {
  .access-profile-permissions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .access-profile-list .entity-list__columns,
  .access-profile-list .entity-list__row,
  .access-profile-list .entity-list__skeleton-row {
    grid-template-columns: minmax(190px, 1.2fr) minmax(200px, 1.4fr) 80px 90px 44px;
  }

  .access-profile-list__controls {
    flex-basis: 560px;
  }

  .access-profile-permissions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .people-list-page__header-actions {
    gap: .35rem;
  }

  .people-list-page__options,
  .access-profile-page__create {
    align-items: center;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .access-profile-page__create span {
    display: none;
  }

  .access-profile-page__title-row,
  .access-profile-page__title-copy {
    align-items: flex-start;
  }

  .access-profile-page__title-copy h3 {
    font-size: 1.35rem;
  }

  .access-profile-page__title-copy .text-subtitle {
    display: none;
  }

  .access-profile-page__actions > .btn-light-secondary {
    align-items: center;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .access-profile-page__actions > .btn-light-secondary span {
    display: none;
  }

  .access-profile-list__controls {
    align-items: stretch;
    flex-basis: auto;
    flex-direction: column;
    width: 100%;
  }

  .access-profile-list__controls > .form-select,
  .access-profile-list .entity-list__search {
    flex-basis: auto;
    width: 100%;
  }

  .access-profile-list .entity-list__row,
  .access-profile-list .entity-list__skeleton-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .access-profile-list__description span:last-child {
    -webkit-line-clamp: 3;
  }

  .access-profile-form__section {
    padding: 1rem;
  }

  .access-profile-form__section-header--modules,
  .access-profile-module__header,
  .access-profile-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .access-profile-form__catalog-count {
    align-self: flex-start;
  }

  .access-profile-module__summary {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .access-profile-permissions {
    grid-template-columns: minmax(0, 1fr);
    padding: .65rem;
  }

  .access-profile-form__actions {
    padding: .85rem 1rem;
  }

  .access-profile-form__actions > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-profile-form__actions > div .btn:only-child {
    grid-column: 1 / -1;
  }
}
