.wrapper {
  background: #ffffff;
  border-radius: 8px 12px 12px 8px;
  display: flex;
  min-height: 48px;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease-in;
  position: relative;

  &.subItems {
    align-items: flex-start;

    &.active {
      margin-left: 8px;
      border-bottom-left-radius: 0;
      border-top-left-radius: 0;

      &.opened {
        border-bottom-left-radius: 8px;
      }
    }
  }

  .contentOuterWrapper {
    width: 100%;
    display: flex;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
    justify-content: space-between;

    &.subItems {
      padding-top: 0;
      padding-bottom: 0;
      flex-direction: column;
      align-items: flex-start;
    }

    .contentWrapper {
      padding-left: 24px;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      width: 100%;

      & .contentInnerWrapper {
        display: flex;
      }

      &.subItems {
        height: 48px;
        padding-right: 12px;
        align-items: center;
        justify-content: space-between;
      }

      &.active {
        padding-left: 16px;
      }
    }
  }

  &:hover {
    background: #cbcacd;
    transition: background-color 0.2s ease-in;

    &.active {
      background: #ffffff;
    }
  }

  &.active {
    .icon {
      color: #5b4dbe;
    }
    .title {
      color: #000000;
    }
  }

  .activeIndicator {
    width: 8px;
    min-height: 48px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    background: #5b4dbe;

    &.subItems {
      margin-left: -8px;
    }
  }
  .icon {
    margin-right: 10px;
  }
  .title {
    font-weight: bolder;
  }
  .icon,
  .title {
    color: #6e6e6e;
  }
}

.subItemsWrapper {
  padding-left: 27px;
  width: 95%;

  .subItem {
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    color: #6e6e6e;
    border-bottom: 1px solid #a1a0a0;
    transition: all 0.1s ease-in;

    &:hover {
      font-weight: bolder;
      border-bottom: 1px solid black;
      transition: all 0.1s ease-in;
    }

    &.lastSubItem {
      border-bottom: none;
    }
  }

  .subItemIcon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }
}
