html,
body {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
}

.lms,
.lms *,
.lms::before,
.lms::after,
.lms *::before,
.lms *::after {
  box-sizing: border-box;
}

.lms {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

.lms h1,
.lms h2,
.lms h3,
.lms h4,
.lms h5,
.lms h6 {
  margin-top: 0;
}

.lms p {
  margin-top: 0;
}

.lms-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.lms-left {
  border-right: 1px solid #e2e8f0;
  padding: 15px;
  color: #333333;
}

.lms-left__logo {
  width: 180px;
  height: 40px;
  margin-bottom: 30px;
  display: block;
}

.lms-left__ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lms-left__item + .lms-left__item {
  margin-top: 6px;
}

.lms-left__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  gap: 12px;
}

.lms-left__link.active {
  background-color: #3b82f6;
  color: #fff;
}

.lms-left__icon {
  width: 18px;
  height: 18px;
}

.lms-right {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lms-header {
  color: #718096;
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 12px;
  padding-right: 16px;
}

.lms-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lms-header__title {
  padding: 6px 12px;
}

.lms-header__button {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  padding: 6px 12px;
  background: transparent;
  font-size: inherit;
  color: inherit;
  border-bottom: 2px solid transparent;
}

.lms-header__button.active {
  color: #3b82f6;
  font-weight: 600;
  border-color: #3b82f6;
}

.lms-header-admin {
  color: #4b5563;
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 16px;
}

.lms-header-admin__name {
  font-size: 16px;
}

.lms-header-admin__position {
  font-size: 12px;
}

.lms-header-admin__avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  background-color: #3b82f6;
  border-radius: 50%;
  color: #ffffff;
}

.lms-footer {
  border-top: 1px solid #e2e8f0;
  padding: 15px;
  color: #333333;
  text-align: center;
}

.cm {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100%;
}

.cm__panel {
  border-right: 1px solid #e2e8f0;
}

.cm-programs {
  padding: 15px 15px 12px;
}

.cm-programs__title {
  text-transform: uppercase;
  color: #718096;
  font-weight: normal;
  font-size: 12px;
  margin-bottom: 8px;
}

.cm-programs__chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #333333;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.cm-programs__programs {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-top: 2px;
}

.cm-programs__courses {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-top: 2px;
}

.cm-programs__item + .cm-programs__item {
  margin-top: 2px;
}

.cm-programs__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.cm-programs__button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: transparent;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.cm-programs__button:disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(0.5);
}

.cm-programs__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cm-programs-item-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: -10px;
  width: calc(100% + 10px);
}

.cm-programs-item-add__input {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 8px;
  line-height: inherit;
  flex-grow: 1;
  min-width: 0;
}

.cm-programs-item-add__action {
  display: flex;
  gap: 2px;
}

.cm-programs-item-add__button {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cm-programs-item-add__icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.cm-programs-item-add__button--confirm .cm-programs-item-add__icon {
  color: #3b82f6;
}

.cm-action {
  padding: 0px 15px 15px;
}

.cm-action__button {
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  background-color: #f0f9ff;
  color: #3b82f6;
  font-size: 14px;
  border: 1px dashed #3b82f6;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.cm-action__button:disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(0.5);
}

.cm-action__icon {
  width: 16px;
  height: 16px;
}

.cm-header {
  min-height: 140px;
  display: grid;
  gap: 20px;
  grid-template-columns: 180px 1fr;
  background: linear-gradient(to right, rgb(255, 255, 255) 0%, #3b82f6 30%);
  color: rgb(255, 255, 255);
  padding: 16px;
}

.cm-header-upload {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-header-upload__preview {
  position: relative;
  max-width: 180px;
  height: 80px;
}

.cm-header-upload__image {
  -o-object-fit: contain;
  object-fit: contain;
  height: 100%;
  display: block;
}

.cm-header-upload__add {
  cursor: pointer;
  width: 120px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: inherit;
  padding: 16px;
}

.cm-header-upload__add:not([hidden]) {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.cm-header-upload__edit {
  cursor: pointer;
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  border: none;
  border-radius: 50%;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: #fff;
}

.cm-header-upload__icon {
  width: 14px;
  height: 14px;
}

.cm-header-content {
  position: relative;
}

.cm-header-content__copy {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: transparent;
  color: #fff;
  position: absolute;
  content: "";
  top: 4px;
  right: 0;
  padding: 0;
}

.cm-header-content__icon {
  width: 18px;
  height: 18px;
}

.cm-header-content__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cm-header-content__status {
  font-size: 12px;
  background-color: #2563eb;
  padding: 4px 8px;
  border-radius: 4px;
}

.cm-header-content__date {
  font-size: 13px;
}

.cm-header-content__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.cm-header-content__descr {
  font-size: 14px;
  margin-bottom: 12px;
}

.cm-header-content__stats {
  font-size: 14px;
}

.cm-tabs-nav {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  padding-left: 16px;
}

.cm-tabs-nav__button {
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: #718096;
  padding: 12px 16px;
}

.cm-tabs-nav__button.active {
  border-color: #3b82f6;
  color: #3b82f6;
}

.cm-tabs-nav__counter {
  background-color: #f1f5f9;
  border-radius: 50%;
  font-size: 12px;
  padding: 2px 8px;
}

.cm-tabs-content {
  padding: 16px;
}

.cm-tabs-content__tab {
  display: none;
}

.cm-tabs-content__tab.active {
  display: block;
}

.cm-tab-overview-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cm-tab-overview-header__search {
  position: relative;
}

.cm-tab-overview-header__icon-search {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #718096;
}

.cm-tab-overview-header__input {
  width: 250px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  padding: 8px 8px 8px 35px;
  margin: 0;
}

.cm-tab-overview-header__input::-moz-placeholder {
  color: #9ca3af;
}

.cm-tab-overview-header__input::placeholder {
  color: #9ca3af;
}

.cm-tab-overview-header__action {
  display: flex;
  gap: 8px;
}

.cm-tab-overview-header__lib {
  cursor: pointer;
  display: inline-block;
  background-color: #3b82f6;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: inherit;
  text-decoration: none;
  color: #fff;
  padding: 8px 16px;
}

.cm-tab-overview-header__grid {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  padding: 8px;
}

.cm-tab-overview-header__icon-grid {
  width: 16px;
  height: 16px;
  display: block;
}

.cm-tab-overview-content__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}

.cm-tab-overview-content__item {
  counter-increment: item;
}

.cm-tab-overview-content__item + .cm-tab-overview-content__item {
  margin-top: 16px;
}

.cm-tab-overview-content-item {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #333;
}

.cm-tab-overview-content-item__header {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  padding: 16px;
}

.cm-tab-overview-content-item__info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cm-tab-overview-content-item__counter {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3b82f6;
  border-radius: 50%;
  font-weight: bold;
  color: #ffffff;
}

.cm-tab-overview-content-item__counter:before {
  content: counter(item);
}

.cm-tab-overview-content-item__title {
  margin-bottom: 4px;
}

.cm-tab-overview-content-item__details {
  font-size: 13px;
  text-align: left;
  color: #718096;
}

.cm-tab-overview-content-item__toggle {
  width: 20px;
  height: 20px;
  color: #718096;
}

.cm-tab-overview-content-item.active .cm-tab-overview-content-item__toggle {
  transform: rotate(90deg);
}

.cm-tab-overview-content-item__content {
  display: none;
  padding: 8px 16px 16px 60px;
}

.cm-tab-overview-content-item.active .cm-tab-overview-content-item__content {
  display: block;
}

.cm-tab-overview-content-item__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-overview-content-item__lesson {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
}

.cm-tab-overview-content-item__lesson + .cm-tab-overview-content-item__lesson {
  margin-top: 4px;
}

.cm-tab-overview-content-item__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(241, 245, 249);
  border-radius: 50%;
}

.has-aside {
  display: grid;
  gap: 24px;
  grid-template-columns: 30% 1fr;
}

.cm-tab-aside {
  border-right: 1px solid #e2e8f0;
  padding-right: 24px;
}

.cm-tab-aside__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cm-tab-aside__search {
  position: relative;
  margin-bottom: 16px;
}

.cm-tab-aside__icon-search {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #718096;
}

.cm-tab-aside__input {
  width: 250px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  padding: 8px 8px 8px 35px;
  margin: 0;
}

.cm-tab-aside__input::-moz-placeholder {
  color: #9ca3af;
}

.cm-tab-aside__input::placeholder {
  color: #9ca3af;
}

.cm-tab-curators-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-aside-user {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
}

.cm-tab-aside-user__checkbox {
  margin: 0;
}

.cm-tab-aside-user__avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  background-color: #3b82f6;
  border-radius: 50%;
  color: #ffffff;
}

.cm-tab-students .cm-tab-aside-user__avatar {
  background-color: #8b5cf6;
}

.cm-tab-aside-user--green .cm-tab-aside-user__avatar {
  background-color: rgb(16, 185, 129);
}

.cm-tab-aside-user__name {
  font-weight: 500;
}

.cm-tab-aside-user__position {
  font-size: 12px;
  color: #718096;
}

.cm-tab-curators-selected__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cm-tab-curators-selected__subtitle {
  font-size: 14px;
  color: rgb(113, 128, 150);
  margin-bottom: 24px;
}

.cm-tab-curators-selected__hint {
  background-color: rgb(248, 250, 252);
  border-radius: 6px;
  text-align: center;
  color: rgb(113, 128, 150);
  padding: 24px;
}

.cm-tab-curators-selected__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-curators-selected__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(248, 250, 252);
  border-radius: 6px;
  padding: 16px;
}

.cm-tab-curators-selected__item + .cm-tab-curators-selected__item {
  margin-top: 12px;
}

.cm-tab-curators-selected__user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cm-tab-curators-selected__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(59, 130, 246);
  border-radius: 50%;
  font-weight: bold;
  color: rgb(255, 255, 255);
  flex-shrink: 0;
}

.cm-tab-curators-selected__name {
  font-weight: 600;
}

.cm-tab-curators-selected__position {
  font-size: 13px;
  color: rgb(113, 128, 150);
}

.cm-tab-curators-selected__action {
  display: flex;
  align-items: center;
}

.cm-tab-curators-selected__checked {
  color: rgb(113, 128, 150);
  margin-right: 12px;
}

.cm-tab-curators-selected__button {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: transparent;
  font-size: 0;
  color: rgb(113, 128, 150);
  padding: 0;
  margin: 0;
}

.cm-tab-curators-selected__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cm-tab-students-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-students-aside__item + .cm-tab-students-aside__item {
  margin-top: 4px;
}

.cm-tab-students-selected__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cm-tab-students-selected__subtitle {
  font-size: 14px;
  color: rgb(113, 128, 150);
  margin-bottom: 24px;
}

.cm-tab-students-selected__tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.cm-tab-students-selected__filter {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: transparent;
  border-radius: 4px;
  color: rgb(113, 128, 150);
  padding: 8px 16px;
}

.cm-tab-students-selected__filter.active {
  background-color: rgb(241, 245, 249);
  font-weight: bold;
  color: #333333;
}

.cm-tab-students-selected__hint {
  background-color: rgb(248, 250, 252);
  border-radius: 6px;
  text-align: center;
  color: rgb(113, 128, 150);
  padding: 24px;
}

.cm-tab-students-selected__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-students-selected__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(248, 250, 252);
  border-radius: 6px;
  padding: 16px;
}

.cm-tab-students-selected__item + .cm-tab-students-selected__item {
  margin-top: 12px;
}

.cm-tab-students-selected__info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cm-tab-students-selected__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(139, 92, 246);
  border-radius: 50%;
  font-weight: bold;
  color: rgb(255, 255, 255);
  flex-shrink: 0;
}

.cm-tab-students-selected__name {
  font-weight: 600;
}

.cm-tab-students-selected__action {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cm-tab-students-selected__progress {
  color: rgb(113, 128, 150);
}

.cm-tab-students-selected__checked {
  color: rgb(113, 128, 150);
  margin-right: 12px;
}

.cm-tab-students-selected__button {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  line-height: inherit;
  font-size: inherit;
  background-color: transparent;
  font-size: 0;
  color: rgb(113, 128, 150);
  padding: 0;
  margin: 0;
}

.cm-tab-students-selected__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cm-tab-access-aside__filter {
  margin-bottom: 4px;
}

.cm-tab-access-aside__choose {
  display: flex;
  gap: 12px;
  padding: 8px;
  margin-bottom: 4px;
}

.cm-tab-access-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tab-access-aside__item + .cm-tab-access-aside__item {
  margin-top: 4px;
}

.cm-tab-access-selected__section {
  margin-bottom: 24px;
}

.cm-tab-access-selected__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cm-tab-access-selected__edit {
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background-color: rgb(241, 245, 249);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: rgb(71, 85, 105);
  padding: 6px 12px;
}

.cm-tab-access-selected__icon-edit {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cm-tab-access-selected__subtitle {
  font-size: 14px;
  color: rgb(113, 128, 150);
  margin-bottom: 16px;
}

.cm-tab-access-selected__hint {
  background-color: rgb(248, 250, 252);
  border-radius: 6px;
  text-align: center;
  color: rgb(113, 128, 150);
  padding: 24px;
}

.cm-tab-access-table {
  width: 100%;
  border-collapse: collapse;
}

.cm-tab-access-table th {
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  text-align: left;
  color: #475569;
  padding: 12px 8px;
}

.cm-tab-access-table th:nth-child(2),
.cm-tab-access-table th:nth-child(3),
.cm-tab-access-table td:nth-child(2),
.cm-tab-access-table td:nth-child(3) {
  text-align: center;
}

.cm-tab-access-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 8px;
}

.cm-tab-access-table__user {
  display: flex;
  align-items: center;
}

.cm-tab-access-table__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f97316;
  border-radius: 50%;
  font-weight: bold;
  color: #fff;
  margin-right: 12px;
  flex-shrink: 0;
}

.cm-tab-access-table__info {
  display: flex;
  flex-direction: column;
}

.cm-tab-access-table__name {
  font-weight: 600;
}

.cm-tab-access-table__position {
  font-size: 13px;
  color: #718096;
}

.cm-tab-access-table__del {
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  color: #94a3b8;
}

.cm-tab-access-table__icon-del {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cm-tab-action {
  margin-top: 32px;
}

.cm-tab-action:not([hidden]) {
  display: flex;
  justify-content: flex-end;
}

.cm-tab-action__button {
  cursor: pointer;
  display: inline-block;
  background-color: rgb(226, 232, 240);
  border: medium;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
  color: rgb(71, 85, 105);
  padding: 8px 16px;
  margin-right: 8px;
}

.cm-tab-action__button--save {
  background-color: rgb(59, 130, 246);
  color: rgb(255, 255, 255);
}

.cm-tab-access-dropdown {
  position: relative;
  display: inline-block;
}

.cm-tab-access-dropdown__button {
  cursor: pointer;
  min-width: 166px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background-color: rgb(241, 245, 249);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: rgb(71, 85, 105);
  padding: 6px 12px;
}

.cm-tab-access-dropdown__icon-edit {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cm-tab-access-dropdown__menu {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  list-style: none;
  padding: 4px 0;
  margin-top: 4px;
  width: 100%;
}

.cm-tab-access-dropdown__option {
  cursor: pointer;
  color: #475569;
  padding: 6px 12px;
}

.cm-tab-access-dropdown__option:hover {
  background: #f1f5f9;
}

.cm-tab-publication__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cm-tab-publication__descr {
  color: rgb(113, 128, 150);
  margin-bottom: 16px;
  font-size: 14px;
}

.cm-tab-publication__toggle {
  cursor: pointer;
  display: inline-block;
  background-color: rgb(226, 232, 240);
  border: medium;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
  color: rgb(71, 85, 105);
  padding: 8px 16px;
  min-width: 222px;
}

.cm-tab-publication__toggle.to-publish {
  background-color: rgb(59, 130, 246);
  color: rgb(255, 255, 255);
}

.cm-tab-settings__section + .cm-tab-settings__section {
  margin-top: 30px;
}

.cm-tab-settings__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cm-tab-settings__descr {
  color: rgb(113, 128, 150);
  margin-bottom: 16px;
  font-size: 14px;
}

.cm-tab-settings__types {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-bottom: 20px;
}

.cm-tab-settings-type__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cm-tab-settings-type__descr {
  color: rgb(113, 128, 150);
  margin-bottom: 16px;
  font-size: 14px;
}

.cm-tab-settings-dropdown {
  position: relative;
  display: inline-block;
}

.cm-tab-settings-dropdown__button {
  cursor: pointer;
  min-width: 271px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background-color: rgb(241, 245, 249);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  color: rgb(71, 85, 105);
  padding: 6px 12px;
  justify-content: space-between;
}

.cm-tab-settings-dropdown__icon-edit {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cm-tab-settings-dropdown__menu {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  list-style: none;
  padding: 4px 0;
  margin-top: 4px;
  width: 100%;
}

.cm-tab-settings-dropdown__option {
  cursor: pointer;
  color: #475569;
  padding: 6px 12px;
}

.cm-tab-settings-dropdown__option:hover {
  background: #f1f5f9;
}

.cm-tab-settings-days {
  font-size: 14px;
}

.cm-tab-settings-days__label {
  display: block;
  margin-bottom: 8px;
  color: #718096;
  font-size: 14px;
}

.cm-tab-settings-days__choose {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 220px;
}

.cm-tab-settings-days__icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #718096;
}

.cm-tab-settings-days__input {
  width: 100%;
  padding: 8px 8px 8px 35px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: transparent;
}

.cm-tab-settings-days__input::-moz-placeholder {
  color: #9ca3af;
}

.cm-tab-settings-days__input::placeholder {
  color: #9ca3af;
}

.cm-programs-context {
  position: absolute;
  z-index: 1000;
  min-width: 160px;
  display: none;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.cm-programs-context__button {
  cursor: pointer;
  width: 100%;
  display: block;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  text-align: left;
  color: #333333;
  padding: 6px 8px;
}
.cm-programs-context__button:hover {
  background-color: #f3f4f6;
}
.cm-programs-context__button--del {
  color: #b91c1c;
}
.cm-programs-context__button--del:hover {
  background-color: #fee2e2;
}

/* Мобильная версия */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #4b5563;
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

.mobile-programs-button {
  display: none;
  background: #f0f9ff;
  border: 1px dashed #3b82f6;
  color: #3b82f6;
  padding: 8px 16px;
  margin: 16px 16px 0 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  align-items: center;
  gap: 8px;
  width: auto;
}

.mobile-programs-button svg {
  width: 16px;
  height: 16px;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20;
  display: none;
}

.overlay.active {
  display: block;
}


.lms-layout {
  position: relative;
}

.lms-left {
  background: white;
  z-index: 40;
}

.lms-header {
  position: relative;
}

.cm__panel {
  background: white;
  z-index: 30;
}


.cm-tabs-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cm-tabs-nav::-webkit-scrollbar {
  display: none;
}

.cm-tabs-nav__button {
  white-space: nowrap;
}


.cm-tab-overview-header {
  flex-wrap: wrap;
  gap: 16px;
}

.cm-tab-overview-header__search {
  flex: 1;
  min-width: 250px;
}

.cm-tab-overview-header__input {
  width: 100%;
}


@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }

  .mobile-programs-button {
    display: flex;
  }

  .lms-layout {
    grid-template-columns: 1fr!important; /* HYPER_X*/
  }

  .lms-left {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 50;
    overflow-y: auto;
  }

  .lms-left.active {
    left: 0;
  }

  .lms-header {
    padding: 8px 16px 12px 16px;
  }

  .lms-header-admin__info {
    display: none;
  }

  .cm {
    grid-template-columns: 1fr;
  }

  .cm__panel {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    transition: right 0.3s ease;
    z-index: 50;
    overflow-y: auto;
  }

  .cm__panel.active {
    right: 0;
  }

  .cm-header {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 16px;
  }

  .cm-header-upload {
    justify-content: flex-start;
  }

  .cm-header-upload__add {
    width: 100px;
    height: 60px;
    font-size: 11px;
  }

  .cm-header-content__title {
    font-size: 20px;
  }

  .cm-tabs-nav {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cm-tabs-nav__button {
    padding: 12px 12px;
    font-size: 12px; /*14*/ /* HYPER_X*/
  }

  .cm-tabs-content {
    padding: 12px;
  }

  .cm-tab-overview-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-tab-overview-header__search {
    min-width: auto;
  }

  .cm-tab-overview-header__action {
    justify-content: flex-end;
  }

  .cm-tab-overview-content-item__content {
    padding-left: 16px;
  }

  .cm-tab-overview-content-item__info {
    gap: 12px;
  }

  .cm-tab-overview-content-item__counter {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .cm-tab-action {
    flex-direction: column;
    gap: 8px;
  }

  .cm-tab-action__button {
    margin-right: 0;
    text-align: center;
  }

  .lms-footer {
    padding: 12px;
    font-size: 14px;
  }


  .has-aside {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cm-tab-aside {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: 16px;
  }

  .cm-tab-aside__input {
    width: 100%;
  }


  .cm-tab-overview-header__lib {
    font-size: 12px;
    padding: 6px 12px;
  }

  .cm-tab-overview-header__grid {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .cm-header {
    padding: 12px;
  }

  .cm-header-content__title {
    font-size: 18px;
  }

  .cm-tabs-nav__button {
    padding: 8px;
    font-size: 10px; /*13*/ /* HYPER_X*/
  }

  .cm-tabs-content {
    padding: 8px;
  }

  .cm-tab-overview-header {
    margin-bottom: 16px;
  }

  .cm-tab-overview-content-item__header {
    padding: 12px;
  }

  .cm-tab-overview-content-item__info {
    gap: 8px;
  }

  .cm-tab-overview-content-item__counter {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .lms-header__title {
    display: none;
  }

  .cm-tab-overview-header__action {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .cm-tab-overview-header__lib,
  .cm-tab-overview-header__grid {
    width: 100%;
    text-align: center;
  }
}