/* Iteration overrides */
button,
textarea {
  font: inherit;
}

.logo-mark {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: none;
}

.logo-mark::after {
  display: none;
}

.search-actions button,
.list-toolbar button,
.actions button,
.session-links button {
  white-space: nowrap;
  word-break: keep-all;
}

.search-actions {
  min-width: 96px;
}

.search-actions button {
  min-width: 78px;
  padding: 0 10px;
}

.course-status {
  display: inline-block;
  padding: 3px 9px;
}

.course-status.on {
  color: #13865b;
  background: #e9f8f2;
}

.course-status.off {
  color: #8b95a5;
  background: #f1f2f4;
}

.session-modal {
  width: min(820px, 76vw);
}

.session-form {
  padding-bottom: 30px;
}

.qr-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: start;
  gap: 14px;
}

.qr-row textarea {
  width: 100%;
  height: 85px;
  padding: 12px;
  border: 0;
  outline: none;
  resize: vertical;
  color: #4d586b;
  background: var(--field);
}

.qr-upload {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-upload small {
  color: #8290a2;
  font-size: 11px;
}

.qr-upload .qr-plus {
  font-size: 30px;
  line-height: 1;
}

.qr-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.qr-upload.has-image img {
  display: block;
}

.qr-upload.has-image .qr-plus,
.qr-upload.has-image small {
  display: none;
}

.sales-select {
  position: relative;
  width: 100%;
}

.sales-select > button {
  width: 100%;
  height: 36px;
  padding: 0 13px;
  border: 0;
  color: #485365;
  background: var(--field);
  text-align: left;
}

.sales-select > button span {
  float: right;
}

.sales-menu {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 0;
  right: 0;
  display: none;
  padding: 7px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 42, 56, 0.12);
}

.sales-menu.open {
  display: block;
}

.sales-menu label {
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sales-menu label:hover {
  background: #f4f7fb;
}

.sales-menu input {
  width: auto !important;
  height: auto !important;
}

.lesson-picker {
  margin: 20px 0 0;
  border: 1px solid var(--line);
}

.lesson-picker-head {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f5f7fa;
}

.lesson-picker-head strong,
.lesson-picker-head span {
  display: block;
}

.lesson-picker-head strong {
  font-size: 13px;
}

.lesson-picker-head strong em {
  margin-right: 4px;
  color: #ed4646;
  font-style: normal;
}

.lesson-picker-head span {
  margin-top: 3px;
  color: #8a95a6;
  font-size: 11px;
}

.lesson-picker-list {
  padding: 0 14px;
}

.pick-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 205px;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #edf0f3;
}

.pick-row:last-child {
  border-bottom: 0;
}

.pick-row > label {
  display: grid;
  grid-template-columns: 20px 55px 1fr;
  align-items: center;
}

.pick-row b {
  color: #536074;
}

.pick-row span {
  color: #3d4758;
}

.pick-row .publish-time {
  height: 35px;
  padding: 0 9px;
  border: 1px solid #dfe3e8;
  background: #fff;
}

.pick-row .publish-time:disabled {
  color: #aeb5c0;
  background: #f3f4f6;
}

.option-select {
  position: relative;
  width: 100%;
}

.option-select > button {
  width: 100%;
  min-height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe3e9;
  color: #485365;
  background: #fff;
  text-align: left;
}

.option-select > button:focus,
.option-select.open > button {
  border-color: var(--blue);
}

.option-select > button i {
  font-style: normal;
}

.option-drawer {
  position: absolute;
  z-index: 8;
  top: 42px;
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(34, 42, 56, 0.13);
}

.option-drawer.open {
  display: block;
}

.option-search {
  height: 43px;
  margin: 8px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe3e9;
  background: #fff;
}

.option-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: none;
}

.option-search b {
  padding: 0 13px;
  color: #697587;
}

.option-list {
  max-height: 250px;
  overflow: auto;
}

.option-list label {
  min-height: 54px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-list label:hover {
  background: #f3f5f8;
}

.option-list label.unavailable {
  color: #9ca4b1;
}

.option-list input {
  width: 17px !important;
  height: 17px !important;
  flex: none;
}

.option-list span,
.option-list strong,
.option-list small {
  display: block;
}

.option-list strong {
  font-weight: 500;
}

.option-list small {
  margin-top: 3px;
  color: #929baa;
}

.resource-layer {
  z-index: 40;
}

.resource-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1160px, 88vw);
  height: min(790px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  background: #fff;
  transform: translate(-50%, -48%);
  transition: 0.2s;
  box-shadow: 0 15px 50px rgba(20, 25, 35, 0.2);
}

.resource-layer.open .resource-modal {
  transform: translate(-50%, -50%);
}

.resource-modal > header {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.resource-modal > header button {
  margin-left: auto;
  border: 0;
  color: #586375;
  background: transparent;
  font-size: 21px;
}

.resource-body {
  min-height: 0;
  flex: 1;
  padding: 24px 36px;
  background: #f3f4f6;
}

.resource-toolbar {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.resource-toolbar > div {
  width: 230px;
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--field);
}

.resource-toolbar input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: none;
  background: transparent;
}

.resource-toolbar span {
  padding: 0 12px;
}

.resource-workspace {
  height: calc(100% - 80px);
  margin-top: 16px;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 16px;
}

.resource-workspace aside,
.resource-workspace main {
  overflow: auto;
  background: #fff;
}

.resource-workspace aside {
  padding: 17px;
}

.resource-aside-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resource-aside-title button {
  border: 0;
  color: var(--blue);
  background: transparent;
}

.resource-search {
  height: 36px;
  margin: 16px 0 9px;
  padding: 8px 12px;
  color: #687587;
  background: var(--field);
  text-align: right;
}

.resource-workspace ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-workspace li {
  padding: 10px 8px;
  cursor: pointer;
}

.resource-workspace li.active {
  color: var(--blue);
  background: #eef4ff;
}

.resource-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #a1a8b4;
  text-align: center;
}

.resource-empty i {
  font-size: 38px;
  font-style: normal;
}

.resource-placeholders {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
}

.resource-placeholder {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  text-align: left;
}

.resource-placeholder i {
  height: 118px;
  display: grid;
  place-items: center;
  color: #a6aebb;
  background: #eef0f3;
  font-size: 27px;
  font-style: normal;
}

.resource-placeholder span {
  padding: 8px;
  display: block;
  color: #606b7d;
}

.resource-placeholder.selected {
  border-color: var(--blue);
}

.resource-modal > footer {
  height: 65px;
  padding: 13px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.resource-selected {
  color: var(--blue) !important;
  border-color: #8bb3ff !important;
  background: #eef5ff !important;
  font-size: 13px !important;
}

.student-page {
  padding: 8px 10px;
}

.student-stats {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.student-stats > div {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}

.student-stats > div:last-child {
  border-right: 0;
}

.student-stats span,
.student-stats strong {
  display: block;
}

.student-stats span {
  color: #8791a1;
}

.student-stats strong {
  margin-top: 5px;
  font-size: 22px;
}

.student-toolbar {
  padding: 16px;
  display: flex;
  gap: 12px;
  background: #f6f7f9;
}

.student-toolbar input,
.student-toolbar select {
  height: 37px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  background: #fff;
}

.student-toolbar input {
  width: 310px;
}

.student-table {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
}

.student-table table {
  min-width: 1450px;
}

.student-table td {
  height: 72px;
}

.session-summary {
  grid-template-columns: 26px minmax(235px, 1.5fr) 100px 145px 90px 300px;
}

.session-links {
  flex-wrap: nowrap;
}

.cell-select {
  position: relative;
  display: inline-block;
  min-width: 92px;
}

.cell-select-button {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #dfe3e9;
  border-radius: 2px;
  color: #485365;
  background: #fff;
  white-space: nowrap;
}

.cell-select-button:hover {
  color: var(--blue);
  border-color: #8bb3ff;
}

.cell-select-drawer {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  left: 50%;
  width: 132px;
  display: none;
  padding: 6px;
  border: 1px solid #dfe3e9;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(34, 42, 56, 0.14);
  transform: translateX(-50%);
}

.cell-select-drawer.open {
  display: grid;
}

.cell-select-drawer button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  color: #485365;
  background: #fff;
  text-align: left;
  white-space: nowrap;
}

.cell-select-drawer button:hover {
  color: var(--blue);
  background: #eef4ff;
}

.data-page {
  padding: 8px 10px;
}

.data-metrics {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.data-metrics > div {
  min-height: 112px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.data-metrics > div:last-child {
  border-right: 0;
}

.data-metrics span,
.data-metrics strong,
.data-metrics small {
  display: block;
}

.data-metrics span,
.data-metrics small {
  color: #8791a1;
}

.data-metrics strong {
  margin: 5px 0 2px;
  color: #303747;
  font-size: 25px;
}

.data-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.data-grid > section,
.data-detail {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.data-grid h3,
.data-detail h3 {
  margin: 0 0 18px;
  font-size: 15px;
}

.order-status-bars > div {
  margin: 15px 0;
}

.order-status-bars p {
  margin: 0 0 7px;
  display: flex;
  justify-content: space-between;
}

.order-status-bars i {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f4;
}

.order-status-bars i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue);
}

.conversion-card {
  min-height: 128px;
  padding: 18px;
  color: #55749f;
  background: #f1f6ff;
}

.conversion-card span,
.conversion-card strong {
  display: block;
}

.conversion-card strong {
  margin-top: 6px;
  color: #245eb9;
  font-size: 27px;
}

.conversion-card p {
  margin: 10px 0 0;
}

.data-detail {
  overflow: auto;
}

.data-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-detail table {
  min-width: 900px;
}

.data-detail td {
  height: 65px;
}

@media (max-width: 1400px) {
  .session-summary {
    grid-template-columns: 25px minmax(210px, 1.4fr) 90px 125px 80px 270px;
  }
}

.student-table td:first-child {
  min-width: 150px;
}

.student-table td strong,
.student-table td small {
  display: block;
}

.student-table td small {
  margin-top: 4px;
  color: #929ba9;
}

.inline-select {
  padding: 5px 8px;
  border: 1px solid #dfe3e8;
  color: #566174;
  background: #fff;
}

.refund {
  color: #df5252;
}
