.class-code-page__title-row,
.class-code-page__title-copy,
.class-code-page__actions,
.class-code-list__controls,
.class-code-list__icon,
.class-code-modal__header,
.class-code-modal__actions,
.class-code-modal__loading,
.class-code-modal__usage {
  align-items: center;
  display: flex;
}

.class-code-page__heading {
  padding-bottom: 1rem;
}

.class-code-page__title-row {
  gap: 1rem;
  justify-content: space-between;
}

.class-code-page__title-copy {
  gap: .75rem;
  min-width: 0;
}

.class-code-page__title-copy .header-menu-responsive {
  margin: 0;
}

.class-code-page__title-copy h3,
.class-code-modal__header h4 {
  color: #25324b;
  letter-spacing: 0;
}

.class-code-page__title-copy h3 {
  margin-bottom: .2rem;
}

.class-code-page__actions {
  flex: 0 0 auto;
  gap: .6rem;
}

.class-code-list__controls {
  flex: 0 1 760px;
  gap: .65rem;
  justify-content: flex-end;
  min-width: 0;
}

.class-code-list__controls > .form-select {
  flex: 0 0 150px;
  min-height: 40px;
}

.class-code-list .entity-list__search {
  flex: 0 1 340px;
}

.class-code-list .entity-list__columns,
.class-code-list .entity-list__row,
.class-code-list .entity-list__skeleton-row {
  grid-template-columns: minmax(210px, 1.25fr) minmax(110px, .7fr) minmax(105px, .7fr) minmax(160px, .95fr) 48px;
}

.class-code-list__icon {
  background: #edf1ff;
  border-radius: 5px;
  color: #435ebe;
  flex: 0 0 auto;
  font-size: 1.1rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.class-code-list__status {
  border-radius: 4px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  padding: .33rem .5rem;
}

.class-code-list__status--draft {
  background: #eef1f5;
  color: #5f6b7a;
}

.class-code-list__status--published {
  background: #eef4ff;
  color: #365bb7;
}

.class-code-list__status--active {
  background: #e8f7ee;
  color: #217044;
}

.class-code-list__status--inactive {
  background: #fceaea;
  color: #b42318;
}

.class-code-list__updated {
  color: #667085;
  font-size: .8rem;
}

.class-code-modal-backdrop {
  align-items: center;
  background: rgba(27, 36, 59, .52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1100;
}

.class-code-modal {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .24);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  width: min(100%, 520px);
}

.class-code-modal__header,
.class-code-modal__actions {
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.class-code-modal__header {
  border-bottom: 1px solid #e5e7ef;
  gap: 1rem;
}

.class-code-modal__header h4 {
  font-size: 1rem;
  margin: 0 0 .2rem;
}

.class-code-modal__header p {
  color: #7c8aa5;
  font-size: .8rem;
  margin: 0;
}

.class-code-modal__close {
  align-items: center;
  border: 1px solid #d8deea;
  color: #5f6b7a;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.class-code-modal__body {
  padding: 1.25rem;
}

.class-code-modal__body .alert {
  font-size: .84rem;
}

.class-code-modal__usage {
  background: #f7f9fc;
  border: 1px solid #e5e7ef;
  border-radius: 5px;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-top: 1.25rem;
  padding: .75rem .85rem;
}

.class-code-modal__usage span,
.class-code-modal__usage small {
  color: #667085;
  font-size: .75rem;
}

.class-code-modal__usage strong {
  color: #25324b;
  font-size: .92rem;
}

.class-code-modal__usage small {
  flex-basis: 100%;
}

.class-code-modal__actions {
  background: #f8f9fc;
  border-top: 1px solid #e5e7ef;
  gap: .6rem;
}

.class-code-modal__loading {
  color: #667085;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  min-height: 260px;
}

body.theme-dark .class-code-page__title-copy h3,
body.theme-dark .class-code-modal__header h4,
body.theme-dark .class-code-modal__usage strong {
  color: #f1f2f8;
}

body.theme-dark .class-code-list__icon {
  background: #2c3150;
  color: #9eafff;
}

body.theme-dark .class-code-modal,
body.theme-dark .class-code-modal__usage {
  background: #1e1e2d;
  border-color: #35354f;
}

body.theme-dark .class-code-modal__header,
body.theme-dark .class-code-modal__actions {
  border-color: #35354f;
}

body.theme-dark .class-code-modal__actions {
  background: #242436;
}

body.theme-dark .class-code-modal__header p,
body.theme-dark .class-code-modal__usage span,
body.theme-dark .class-code-modal__usage small,
body.theme-dark .class-code-modal__loading {
  color: #a7aac2;
}

body.theme-dark .class-code-modal__close {
  border-color: #53536c;
  color: #c5c8db;
}

body.theme-dark .class-code-list__status--draft {
  background: #343547;
  color: #d1d5df;
}

body.theme-dark .class-code-list__status--published {
  background: #293553;
  color: #b9c9ff;
}

body.theme-dark .class-code-list__status--active {
  background: #203d32;
  color: #98e0b6;
}

body.theme-dark .class-code-list__status--inactive {
  background: #4a2b31;
  color: #f7b9bd;
}

@media (max-width: 991.98px) {
  .class-code-list__controls {
    flex-basis: 620px;
  }

  .class-code-list .entity-list__columns,
  .class-code-list .entity-list__row,
  .class-code-list .entity-list__skeleton-row {
    grid-template-columns: minmax(180px, 1.1fr) minmax(90px, .65fr) 90px minmax(135px, .85fr) 44px;
  }
}

@media (max-width: 767.98px) {
  .class-code-page__title-row,
  .class-code-page__title-copy {
    align-items: flex-start;
  }

  .class-code-page__title-copy h3 {
    font-size: 1.35rem;
  }

  .class-code-page__title-copy .text-subtitle,
  .class-code-page__actions span {
    display: none;
  }

  .class-code-page__actions .btn {
    align-items: center;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .class-code-list__controls {
    align-items: stretch;
    flex-basis: 100%;
    flex-wrap: wrap;
    width: 100%;
  }

  .class-code-list__controls > .form-select {
    flex: 1 1 calc(50% - .35rem);
  }

  .class-code-list .entity-list__search {
    flex: 1 1 100%;
  }

  .class-code-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .class-code-modal {
    border-radius: 6px 6px 0 0;
    max-height: min(88vh, 680px);
    width: 100%;
  }
}
