* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: var(--font), sans-serif;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  line-height: normal;
}
a {
  text-decoration: none;
  color: var(--PRIMARY);
  font-family: var(--font);
  cursor: pointer;
}
td a {
  color: var(--PRIMARY);
}
mat-progress-bar {
  color: var(--PRIMARY);
}
.sln-max-width {
  width: 100%;
}
.sln-navigation-panel {
  margin-bottom: 0;
  padding: 0 12px;
  li {
    list-style-type: none;
    position: relative;
    a {
      text-decoration: none;
      padding-bottom: 1px;
      color: var(--DARK-GREY);
      cursor: pointer;
      letter-spacing: 0.01em;
      font-size: 14px;
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-end;
      margin-bottom: 12px;
      img {
        margin-right: 10px;
      }
      .sln-scoring-navigation-icon {
        background-size: 18px;
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        margin-right: 5px;
      }
    }
    a:before {
      content: "│";
      position: absolute;
      left: 5.5px;
      margin-top: 19px;
      font-size: 10px;
    }
    a:hover {
      color: var(--PRIMARY);
    }
  }
  li:last-child {
    a:before {
      content: none;
    }
  }

  &--sections {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;

    li a {
      margin-bottom: 0;
      padding: 12px;
      border-radius: 6px;
      flex-direction: row;
      justify-content: flex-start;
      font-family: var(--font-medium);
      line-height: 14px;
      transition: background 0.15s ease, color 0.15s ease;
      font-size: 12px;

      &:before {
        content: none;
      }

      &:hover {
        background: var(--TAB-ACTIVE-BG, #3469f40d);
      }

      &.is-active {
        background: var(--TAB-ACTIVE-BG, #3469f40d);
        color: var(--PRIMARY);
      }
    }
  }
}
// общий стиль для текста информирования
.sln-common-info {
  color: var(--DARK-GREY);
  font-size: 15px;
}

// ========== registrate-page =========
.form-group {
  width: 100%;
  margin-bottom: 0;
}
.notification {
  position: absolute;
  height: 7px;
  width: 7px;
  background-color: #337ab7;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 1px;
}
.notification-message {
  position: absolute;
  height: 7px;
  width: 7px;
  background-color: #337ab7;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 1px;
  margin-left: -7px;
}
// контекстное меню, отображение строки текста с иконкой
.sln-context-menu-row {
  display: flex;
  align-items: center;
}

.sln-user-card-avatar-menu {
  .mat-mdc-menu-item {
    min-height: 40px;
    gap: 8px;

    &:hover:not([disabled]) {
      background: var(--TAB-ACTIVE-BG, #3469f40d) !important;
    }

    svg,
    .mat-mdc-menu-submenu-icon,
    .mat-mdc-menu-item-submenu-icon,
    .mat-menu-submenu-icon,
    .mdc-menu-item__submenu-icon,
    .mdc-list-item__end {
      display: none !important;
    }
  }
}

.cdk-overlay-pane:has(.sln-avatar-color-picker),
.cdk-overlay-pane.sln-user-card-color-menu,
.mat-mdc-menu-panel.sln-user-card-color-menu {
  max-width: none !important;
  min-width: 340px;
  overflow: visible;
  margin-left: -10px !important;
}

.sln-user-card-color-menu {
  .mat-mdc-menu-content {
    padding: 0;
  }
}

.sln-avatar-color-picker {
  width: 340px;
  padding: 16px;
  box-sizing: border-box;
}

.sln-avatar-color-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-bold);
  font-size: 16px;
  color: var(--DARK-GREY);
}

.sln-avatar-color-picker__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  .sln-common-cross-table {
    width: 16px;
    height: 16px;
    background-size: 16px;
  }
}

.sln-avatar-color-picker__caption {
  margin: 12px 0 8px;
  font-size: 13px;
  color: #191F29;
}

.sln-avatar-color-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.sln-avatar-color-picker__swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;

  &.is-selected::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 9px;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
  }
}

.sln-avatar-color-picker__random {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 0;
  border: none;
  background: none;
  color: var(--PRIMARY);
  font-family: var(--font-medium);
  font-size: 14px;
  cursor: pointer;

  .sln-common-change-sequence {
    width: 18px;
    height: 18px;
    background-size: 16px;
  }
}

.sln-avatar-color-picker__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sln-avatar-color-picker__cancel,
.sln-avatar-color-picker__apply {
  min-height: 45px;
  border: none;
  border-radius: var(--BTN-RADIUS, 12px);
  font-family: var(--font-medium);
  font-size: 12px;
  cursor: pointer;
  line-height: 14px;
}

.sln-avatar-color-picker__cancel {
  background: #4453710D;
  color: var(--DARK-GREY);
}

.sln-avatar-color-picker__apply {
  background: var(--PRIMARY);
  color: var(--WHITE);
}

// переопределение для checkbox
.sln-combobox-hide-option-check {
  .mat-pseudo-checkbox {
    display: none !important;
  }
}
