.course-participants-page__heading {
  padding-bottom: 1rem;
}

.course-participants-page__title-row,
.course-participants-page__title-copy {
  align-items: center;
  display: flex;
}

.course-participants-page__title-row {
  gap: 1rem;
  justify-content: space-between;
}

.course-participants-page__title-copy {
  gap: .75rem;
  min-width: 0;
}

.course-participants-page__title-copy .header-menu-responsive {
  margin: 0;
}

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

.course-participants-page__back {
  flex: 0 0 auto;
  white-space: nowrap;
}

.course-participant-list .entity-list__columns,
.course-participant-list .entity-list__row,
.course-participant-list .entity-list__skeleton-row {
  gap: .9rem;
  grid-template-columns: minmax(250px, 1.65fr) minmax(145px, .9fr) minmax(90px, .55fr) minmax(180px, 1.1fr) minmax(145px, .85fr) 42px;
}

.course-participant-filters {
  align-items: end;
  gap: .75rem;
}

.course-participant-filter {
  display: flex;
  flex: 0 1 160px;
  flex-direction: column;
  gap: .3rem;
  min-width: 125px;
}

.course-participant-filter--class {
  flex-basis: 190px;
  order: -1;
}

.course-participant-filter--number {
  flex-basis: 130px;
}

.course-participant-filter--inactive {
  flex-basis: 145px;
}

.course-participant-filter label {
  color: #65718a;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.course-participant-filter .form-control,
.course-participant-filter .form-select,
.course-participant-filter .input-group-text {
  min-height: 36px;
}

.course-participant-filters__apply {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  justify-content: center;
  min-height: 36px;
}

.course-participant-filter-error {
  align-items: center;
  background: #fff5d8;
  border-bottom: 1px solid #eedba6;
  color: #805c00;
  display: flex;
  font-size: .78rem;
  gap: .45rem;
  padding: .65rem 1.25rem;
}

.course-participant-filter-chips {
  align-items: center;
  background: #f9faff;
  border-bottom: 1px solid #e7eaf0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 48px;
  padding: .55rem 1.25rem;
}

.course-participant-entry {
  border-bottom: 1px solid #edf0f5;
}

.course-participant-entry > .entity-list__row {
  border-bottom: 0;
}

.course-participant-identity {
  align-items: flex-start;
}

.course-participant-avatar-fallback {
  align-items: center;
  color: #435ebe;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  justify-content: center;
}

.course-participant-contact {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  margin-top: .3rem;
  max-width: 100%;
}

.course-participant-contact a {
  color: #5f6f8d;
  display: block;
  font-size: .7rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-participant-contact a:hover,
.course-participant-contact a:focus-visible {
  color: #435ebe;
}

.course-participant-user-status {
  font-size: .62rem;
  margin-top: .35rem;
  padding: .2rem .35rem;
}

.course-participant-progress > div {
  min-width: 0;
  width: 100%;
}

.course-participant-progress__copy {
  align-items: center;
  display: flex;
  gap: .4rem;
  justify-content: space-between;
  margin-bottom: .35rem;
}

.course-participant-progress__copy strong {
  color: #25324b;
  font-size: .86rem;
}

.course-participant-progress .progress {
  background: #e8ecf3;
  height: 6px;
  width: 100%;
}

.course-progress-status {
  border-radius: 4px;
  display: inline-flex;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .24rem .35rem;
  width: fit-content;
}

.course-progress-status--completed {
  background: #e8f7ef;
  color: #157347;
}

.progress-bar.course-progress-status--completed {
  background: #198754;
}

.course-progress-status--progress {
  background: #e8efff;
  color: #3156b3;
}

.progress-bar.course-progress-status--progress {
  background: #435ebe;
}

.course-progress-status--not-started {
  background: #edf0f5;
  color: #68758b;
}

.progress-bar.course-progress-status--not-started {
  background: #8994a8;
}

.course-participant-classes > div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.course-participant-classes strong {
  color: #25324b;
  font-size: .86rem;
}

.course-participant-classes small,
.course-participant-answers > small {
  color: #7c8aa5;
  font-size: .67rem;
  margin-top: .18rem;
}

.course-participant-answers {
  align-items: flex-start;
  flex-direction: column;
}

.course-participant-answer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.course-answer-metric {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  gap: .22rem;
  padding: .22rem .32rem;
}

.course-answer-metric--correct {
  background: #e8f7ef;
  color: #157347;
}

.course-answer-metric--incorrect {
  background: #fdebed;
  color: #b02a37;
}

.course-answer-metric--awaiting {
  background: #fff5d8;
  color: #805c00;
}

.course-participant-last-activity > span:not(.entity-list__mobile-label) {
  display: inline-flex;
  flex-direction: column;
  font-size: .74rem;
  gap: .25rem;
  line-height: 1.35;
}

.course-participant-never-accessed {
  color: #8a6570;
  font-weight: 600;
}

.course-participant-detail {
  background: #f8f9fc;
  border-top: 1px solid #edf0f5;
  padding: 1rem 1.25rem 1.25rem;
}

.course-participant-detail__loading,
.course-participant-detail__error {
  align-items: center;
  color: #65718a;
  display: flex;
  font-size: .8rem;
  gap: .5rem;
  min-height: 64px;
}

.course-participant-detail__error {
  color: #a32936;
  justify-content: space-between;
}

.course-participant-detail__summary {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.course-participant-detail__summary > div {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .65rem .75rem;
}

.course-participant-detail__summary span {
  color: #7b879d;
  font-size: .65rem;
  line-height: 1.25;
}

.course-participant-detail__summary strong {
  color: #25324b;
  font-size: .95rem;
  margin-top: .25rem;
}

.course-participant-section {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 6px;
  margin-top: .75rem;
  overflow: hidden;
}

.course-participant-section__header {
  align-items: center;
  background: #f2f4f8;
  border-bottom: 1px solid #e3e7ef;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: .55rem .8rem;
}

.course-participant-section__header > div {
  align-items: center;
  display: flex;
  gap: .5rem;
  min-width: 0;
}

.course-participant-section__header strong {
  color: #25324b;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-participant-section__header small {
  color: #7b879d;
  font-size: .68rem;
}

.course-participant-section__order {
  align-items: center;
  background: #e4e9f8;
  border-radius: 4px;
  color: #435ebe;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: .67rem;
  font-weight: 700;
  height: 24px;
  justify-content: center;
}

.course-participant-class {
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  display: grid;
  gap: .7rem;
  grid-template-columns: 24px minmax(160px, 1.35fr) minmax(115px, .8fr) minmax(210px, 1.25fr) minmax(75px, .5fr) minmax(120px, .7fr);
  min-height: 60px;
  padding: .55rem .8rem;
}

.course-participant-class:last-child {
  border-bottom: 0;
}

.course-participant-class__icon {
  color: #77839a;
  font-size: 1rem;
}

.course-participant-class__identity,
.course-participant-class__status,
.course-participant-class__performance {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-participant-class__identity strong {
  color: #25324b;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-participant-class__identity small,
.course-participant-class__status small,
.course-participant-class__performance small,
.course-participant-class time {
  color: #7b879d;
  font-size: .64rem;
  margin-top: .18rem;
}

.course-participant-class__answers {
  display: flex;
  flex-wrap: wrap;
  font-size: .66rem;
  gap: .2rem .55rem;
}

.course-participant-class__performance strong {
  color: #25324b;
  font-size: .8rem;
}

.course-participant-detail__empty {
  align-items: center;
  color: #7b879d;
  display: flex;
  font-size: .8rem;
  gap: .45rem;
  justify-content: center;
  min-height: 80px;
}

body.theme-dark .course-participants-page__title-copy h3,
body.theme-dark .course-participant-progress__copy strong,
body.theme-dark .course-participant-classes strong,
body.theme-dark .course-participant-detail__summary strong,
body.theme-dark .course-participant-section__header strong,
body.theme-dark .course-participant-class__identity strong,
body.theme-dark .course-participant-class__performance strong {
  color: #f1f2f8;
}

body.theme-dark .course-participant-filter label,
body.theme-dark .course-participant-contact a,
body.theme-dark .course-participant-classes small,
body.theme-dark .course-participant-answers > small,
body.theme-dark .course-participant-detail__loading,
body.theme-dark .course-participant-section__header small,
body.theme-dark .course-participant-class__identity small,
body.theme-dark .course-participant-class__status small,
body.theme-dark .course-participant-class__performance small,
body.theme-dark .course-participant-class time,
body.theme-dark .course-participant-detail__empty {
  color: #aeb4c5;
}

body.theme-dark .course-participant-filter-chips,
body.theme-dark .course-participant-detail {
  background: #242436;
  border-color: #35354f;
}

body.theme-dark .course-participant-entry,
body.theme-dark .course-participant-detail,
body.theme-dark .course-participant-section,
body.theme-dark .course-participant-section__header,
body.theme-dark .course-participant-class {
  border-color: #3b3b54;
}

body.theme-dark .course-participant-detail__summary > div,
body.theme-dark .course-participant-section {
  background: #1e1e2d;
  border-color: #3b3b54;
}

body.theme-dark .course-participant-section__header {
  background: #2a2a3d;
}

body.theme-dark .course-participant-filter-error {
  background: #463d24;
  border-color: #66582d;
  color: #f2d67c;
}

@media (max-width: 1199.98px) {
  .course-participant-list .entity-list__columns,
  .course-participant-list .entity-list__row,
  .course-participant-list .entity-list__skeleton-row {
    gap: .65rem;
    grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .85fr) minmax(82px, .5fr) minmax(155px, 1fr) minmax(125px, .8fr) 40px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .course-participant-class {
    grid-template-columns: 22px minmax(150px, 1.2fr) minmax(105px, .75fr) minmax(180px, 1fr) minmax(70px, .45fr);
  }

  .course-participant-class time {
    display: none;
  }
}

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

  .course-participants-page__title-copy h3 {
    font-size: 1.3rem;
  }

  .course-participants-page__title-copy .text-subtitle {
    display: none;
  }

  .course-participants-page__back {
    align-items: center;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .course-participants-page__back span,
  .course-participant-list__search-label {
    display: none;
  }

  .course-participant-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-participant-filter,
  .course-participant-filter--class,
  .course-participant-filter--number,
  .course-participant-filter--inactive {
    min-width: 0;
    width: 100%;
  }

  .course-participant-filter--class {
    grid-column: 1 / -1;
  }

  .course-participant-filters__apply {
    align-self: end;
    min-height: 36px;
  }

  .course-participant-filter-error,
  .course-participant-filter-chips {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .course-participant-list .entity-list__row,
  .course-participant-list .entity-list__skeleton-row {
    gap: .65rem .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: .9rem;
  }

  .course-participant-list .entity-list__person {
    grid-column: 1;
  }

  .course-participant-list .entity-list__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .course-participant-list .entity-list__cell {
    grid-column: 1 / -1;
  }

  .course-participant-contact a {
    max-width: min(230px, 62vw);
  }

  .course-participant-progress > div {
    max-width: 240px;
  }

  .course-participant-answers {
    align-items: flex-start;
  }

  .course-participant-last-activity > span:not(.entity-list__mobile-label) {
    flex-direction: row;
  }

  .course-participant-detail {
    padding: .85rem .9rem 1rem;
  }

  .course-participant-detail__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-participant-class {
    align-items: start;
    gap: .45rem .6rem;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    padding: .7rem;
  }

  .course-participant-class__identity {
    grid-column: 2;
  }

  .course-participant-class__status {
    align-items: flex-end;
    grid-column: 3;
  }

  .course-participant-class__answers {
    grid-column: 2 / -1;
  }

  .course-participant-class__performance {
    align-items: baseline;
    flex-direction: row;
    gap: .35rem;
    grid-column: 2 / -1;
  }

  .course-participant-class time {
    display: block;
    grid-column: 2 / -1;
  }
}

@media (max-width: 420px) {
  .course-participant-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-participant-filter--class {
    grid-column: auto;
  }

  .course-participant-detail__summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
