#app {

  .main-container {
    min-height: calc(100% - 64px);
    transition: margin-left .28s;
    // margin-left: $sideBarWidth;
    position: relative;
    top: 64px;
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    // background-color: $menuBg;
    // background: url('../assets/images/sidebar.png') no-repeat;
    // background-size: 100% 100%;
    height: calc(100% - 64px);
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    border-right: 1px solid #dadada;

    .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;
    }

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

    .el-scrollbar {
      height: 100%;
      width: 180px;
    }

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

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .close {
      display: flex;
      justify-content: center;
      align-items: center;
    }

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

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        // background-color: $menuHover !important;
        // background: linear-gradient(90deg, #6898ef,#416593) !important
      }
    }

    .is-active>.el-submenu__title {
      color: black !important;
      // background: linear-gradient(90deg, #6898ef,#416593) !important
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      // min-width: $sideBarWidth !important;
      // background-color: $subMenuBg !important;
      // color: #fff !important;

      &:hover {
        // background: linear-gradient(90deg, #6898ef,#416593) !important
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 30px !important;
      .el-submenu {
        overflow: hidden;
  
        &>.el-submenu__title {
          padding: 0 !important;
  
          .svg-icon {
            margin-left: 20px;
          }
  
          .el-submenu__icon-arrow {
            display: none;
          }
        }
      }
  
      .el-menu--collapse {
        .el-submenu {
          &>.el-submenu__title {
            &>span {
              height: 0;
              width: 0;
              overflow: hidden;
              visibility: hidden;
              display: inline-block;
            }
          }
        }
      }
    }

    .main-container {
      margin-left: 30px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

  }

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

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

    .sidebar-container {
      transition: transform .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;
    }
  }
}

.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // background-color: $menuHover !important;
      // background: linear-gradient(90deg, #6898ef,#416593) !important
    }
  }

  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

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

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

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


.custom-popper-list{
  ul{
    min-width: 120px !important;
    li{
      width: 100%;
      height: 40px;
      line-height: 40px;
      color: #666666;
      text-align: center;
      font-size: 14px;
      padding: 0 4px !important;
      &.is-active {
        color: #333;
        background: #ecf2ff;
        border-right: 4px solid #1a69e4;
      }
      &:hover {
        color: #2d74e7;
      }
    }
  }
}
