#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    // margin-left: $sideBarWidth;
    position: relative;
    background-color: #dfe3ea;
  }

  .sidebar-container {
    width: 150px;
    // transition: width 0.28s;
    // width: $sideBarWidth !important;
    background-color: #041741;
    // height: 100%;
    padding: 16px 0 32px 0;
    // border-radius: 6px;
    position: fixed;
    font-size: 0px;
    top: 47px;
    // bottom: 0;
    left: 0%;
    bottom: 0%;
    z-index: 1001;
    // overflow: hidden;
    box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
      padding-bottom: 10px;
    }

    .ant-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .ant-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .ant-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .ant-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      > div {
        background: #041741 !important;
      }
    }

    // menu hover
    // .submenu-title-noDropdown,
    .ant-submenu__title {
      &:hover {
        background-color: #2d67e3 !important;
      }
    }

    .submenu-title-noDropdown {
      &:hover {
        // background-color: initial !important;
        background: #2d67e3 !important;
      }
    }

    .is-active > .ant-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .ant-submenu > .ant-submenu__title,
    & .ant-submenu .ant-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;
      &:hover {
        // background-color: $subMenuHover !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 150px;
    }

    .main-container {
      margin-left: 0;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;
      background-color: #041741 !important;
      .ant-tooltip {
        padding: 0 !important;
        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }
      }
    }

    .ant-submenu {
      overflow: hidden;

      & > .ant-submenu__title {
        background-color: #041741 !important;
        padding: 0 !important;
        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .ant-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .ant-menu--collapse {
      .ant-submenu {
        & > .ant-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .ant-menu--collapse .ant-menu .ant-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.ant-menu--vertical {
  & > .ant-menu {
    .svg-icon {
      margin-right: 16px;
    }
    .sub-el-icon {
      margin-right: 12px;
      // margin-left: -2px;
    }
  }
  // .ant-menu-item .is-active .submenu-title-noDropdown{
  //   background-color: red !important;
  // }
  .nest-menu .ant-submenu > .ant-submenu__title,
  .ant-menu-item {
    &:hover {
      // you can use $subMenuHover
      // background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .ant-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 2px;
    }
  }
}
