@mixin app_name {
  -webkit-box-flex: 1;
  flex: auto;
  padding-right: 5px;
  overflow: hidden;
  color: #525967;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.menu_item {
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  .logo_title {
    position: relative;
    height: 54px;
    background: left center;
    background-size: 100% 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 75px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    .menu_change_container {
      position: absolute;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
      z-index: 99;
      display: flex;
      align-items: center;
      .menu_change_image {
        width: 20px;
        height: 20px;
      }
      .slider {
        margin: 0 16px;
        width: 1px;
        height: 18px;
        background: #eaeaec;
      }
    }

    img {
      width: 24px;
      height: 24px;
    }

    .title {
      font-weight: 600;
      vertical-align: middle;
      color: #1e1d2c;
      padding: 0 6px;
      font-size: 16px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .paddingLeft31 {
    padding-left: 31px;
  }

  .paddingLeftInstance {
    padding-left: 20px;
  }

  .menu_box {
    border: none;
  }

  .menu_group {
    .noChildMenu {
      box-sizing: border-box;
      line-height: 40px;
      height: 40px;
      &.is-active {
        background: #e7f4ff !important;
        color: #3a86ff !important;
      }

      &:hover {
        background-color: #e7f4ff !important;
      }

      ::v-deep {
        .el-submenu__icon-arrow {
          display: none !important;
        }

        > ul {
          &:hover {
            display: none !important;
          }
        }
      }
    }

    > li {
      .menu_title {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        width: 100%;
        align-items: center;
        .el-icon-null, .el-icon-{
          margin-right: 11px;
        }
        .fireflyiconLevel1{
          width: 18px;
        }
        i {
          margin-right: 10px;
          font-size: 18px;
        }

        span {
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      ::v-deep {
        .el-submenu__title {
          position: relative;
          line-height: 40px;
          height: 40px;
          box-sizing: border-box;
          white-space: nowrap;

          .el-submenu__icon-arrow {
            position: absolute;
            color: #62606e !important;
            right: 20px;
            font-weight: 700;
            top: 50%;
            margin-top: -7px;
            font-size: 12px;
          }

          &:hover {
            background-color: #e7f4ff !important;
          }
        }

        .menu_list {
          > li {
            display: block;
            padding-left: 64px !important;
            line-height: 40px !important;
            height: 40px !important;
            overflow: hidden;
            text-overflow: ellipsis;
            &.is-active {
              background: #e7f4ff !important;
              color: #45b2ff !important;
            }
            &:hover {
              background-color: #e7f4ff !important;
            }
          }
          .menu_child_title {
            padding-left: 30px;
            padding-right: 10px;
            display: flex;
            flex-direction: row;
            i {
              font-size: 18px;
            }
            span {
              overflow: hidden;
              text-overflow: ellipsis;
              font-size: 14px;
            }
          }
        }
      }
    }
  }

  ::v-deep {
    .el-scrollbar__bar {
      display: none;
    }
  }
}

.drawer_container {
  width: 100%;
  height: 100%;

  .drawer_header {
    width: 100%;
    height: 64px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .back_to_base_app {
      cursor: pointer;
      width: 100px;
      height: 32px;
      padding: 0 20px 0 16px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      background: #e7f7f6;
      border-radius: 25px;
      color: #0db3a6;

      &:hover {
        color: #00a597;
      }
      .back_text {
        margin-left: 5px;
        font-size: 14px;
        font-weight: 500;
      }
    }

    .el-icon-close {
      cursor: pointer;
      width: 24px;
      height: 24px;
      border-radius: 5px;
      line-height: 24px;
      text-align: center;
      color: #666;
      font-size: 18px;

      &:hover {
        background: #f1f1f1;
        color: #222;
      }
    }
  }

  .drawer_search {
    width: 100%;
    height: 32px;
    padding: 0 20px;
    box-sizing: border-box;
    :deep(.el-input--medium .el-input__inner) {
      height: 32px;
      line-height: 32px;
      background: #ebecee;
      border: none;
      border-radius: 16px;
      font-size: 14px;

      &::placeholder {
        color: #b1b1b1;
      }
    }
    :deep(.el-input--medium .el-input__icon) {
      color: #525967;
      font-size: 16px;
      line-height: 32px;
    }
  }

  .app_handle_container {
    width: 100%;
    height: calc(100vh - 116px);
    margin-top: 20px;
    overflow-y: auto;
  }

  .my_app_text {
    margin: 15px 0 0;
    height: 36px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    color: #141e31;
    font-weight: 500;
    font-size: 16px;
  }

  .marginTop0 {
    margin-top: 0;
  }

  .drawer_app_container {
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 0 20px 20px 12px;
    box-sizing: border-box;
    .has_nodata {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translateX(-50%);
      color: #999;
      font-size: 13px;
    }
    .collapse_content {
      .collapse_group_name {
        cursor: pointer;
        width: 100%;
        height: 32px;
        padding-left: 8px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        border-radius: 5px;
        user-select: none;
        &:hover {
          background: #f0f1f4;
        }
        .el-icon-caret-right {
          color: #777;
          font-size: 16px;
          transform: rotate(0deg);
          transition: all 0.4s;
        }
        .rorate_90 {
          transform: rotate(90deg);
          transition: all 0.4s;
        }
        .app_name {
          padding-left: 5px;
          @include app_name();
        }
      }
      .collapse_item_content {
        transition: all 0.5s;
        .collapse_item {
          cursor: pointer;
          width: 100%;
          height: 48px;
          padding: 0 10px 0 26px;
          box-sizing: border-box;
          border-radius: 5px;
          display: flex;
          align-items: center;
          user-select: none;
          &:hover {
            background: #f0f1f4;
            box-shadow: 2px 2px 5px #bbb;
          }
          .app_icon_bg {
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
          }
          .app_name {
            @include app_name();
            padding-left: 15px;
          }
        }
      }
    }
  }
}

:deep(.el-drawer__body) {
  padding: 0 !important;
}

.openSide {
  
  .menu_child_list {
    width: 100%;
    line-height: 40px !important;
    height: 40px !important;
    padding-left: 90px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    &.is-active {
      background: #e7f4ff !important;
      color: #45b2ff !important;
    }
  }
}

.hideSide {
  min-width: 88px;
  .paddingLeftInstance {
    padding-left: 32px;
  }
  :deep(.menu_title) {
    width: auto !important;
  }
  .noChildMenu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .logo_title {
    min-width: 88px;
    .title {
      display: none;
    }
  }
  :deep(.el-submenu__title) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu_group {
    > li {
      text-align: center;
      padding: none;
      margin: none;
      min-width: 88px;
      .menu_title {
        box-sizing: border-box;
        span {
          display: none;
        }
        i {
          margin-right: 0;
        }
      }
      ::v-deep {
        .el-submenu__title {
          .el-submenu__icon-arrow {
            display: none;
          }
        }
      }
    }
  }

  .el-menu--collapse {
    width: 88px;
  }
}

.scrollbar_box {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 20px;
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: rgba(40, 44, 52, 0.1);
    border: 3px solid transparent;
    border-radius: 7px;
  }
  ::v-deep {
    .el-scrollbar__wrap {
      overflow-x: hidden !important;
    }
  }
  .scrollbar-wrap {
    overflow: hidden !important;
    .el-scrollbar__view {
    }
  }
}

.menu_list {
  li {
    &:hover {
      background-color: #e7f4ff !important;
    }
  }
}
.menu_child {
  .el-submenu__title {
    &:hover {
      background-color: #e7f4ff !important;
    }
  }
}

.hideSide .menu_child_list {
  padding-left: 45px !important;
}

::v-deep .nest_menu .el-submenu__title {
  &:hover {
    background: #ecf7ff !important;
  }
}
