/* .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color: #f0f4fd !important;
} */
:root .ant-menu-submenu-inline > .ant-menu-submenu-title:after {
  font-size: 16px;
}

.ant-tooltip-inner {
  max-width: 500px;
}

.common-menu {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  a {
    text-decoration: none;
    color: inherit;
    display: block;
    &:before {
      position: absolute;
      background-color: transparent;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      content: '';
    }
  }
  .icon + span {
    transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  &-left,
  &-new,
  &-right {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #DCE1E6;
    background-color: #FAFDFF;
    .ant-menu {
      background-color: #FAFDFF;
      .icon {
        font-size: 18px !important;
        width: 18px;
        height: 18px;
        margin-right: 17px;
      }
      &-item,
      &-submenu > .ant-menu-submenu-title {
        padding: 0 15px !important;
        color: #818999;
        font-size: 14px;
        .ant-menu-submenu-arrow{
          display: none;
        }
        .common-menu-down {
          background-image: url('img/lower-ash.svg');
          height: 100%;
          background-repeat: no-repeat;
          background-size: auto 6px;
          position: absolute;
          top: 45%;
          right: -2px;
          width: 10px;
        }
      }
      &-submenu > .ant-menu-submenu-title:hover {
        padding: 0 15px !important;
        color: #2196F3;
        .common-menu-down {
          background-image: url('img/lower-blue.svg');
          height: 100%;
          background-repeat: no-repeat;
          background-size: auto 6px;
          position: absolute;
          top: 45%;
          right: -2px;
          width: 10px;
        }
      }
      &-submenu > .ant-menu-submenu-title:active {
        color: #2196F3;
        background-color: rgba(0, 0, 0, 0.04);
      }
      &-item {
        color: rgba(0, 0, 0, .65);
        left: 0;
        display: flex;
        align-items: center;
        > a:hover {
          color: #2196F3;
        }
      }
    }
    &-header {
      display: flex;
      padding: 0 12px;
      height: 58px;
      line-height: 57px;
      border-bottom: 1px solid #DCE1E6;
      font-size: 18px;
      align-items: center;
      flex-shrink: 0;
      color: rgba(0, 0, 0, .65);
      white-space: nowrap;
      .icon {
        width: 18px;
        height: 18px;
        margin-right: 14px;
        color: #3C4D73;
      }
      .common-menu-reght-header-span {
        color: #3C4D73;
        font-weight: 600;
        width: 88px;
        font-size: 18px;
      }
    }
    &-content {
      height: 100%;
      overflow: auto;
      overflow-x: hidden;
      flex-grow: 1;
    }
  }
  &-left {
    position: absolute;
    width: 250px;
    height: 100%;
    z-index: 998;
    transition: all 0.25s;
    left: -250px;
    &.expanded {
      left: 0;
    }
    .ant-menu .ant-menu-item {
      color: #818999;
      font-size: 14px;
      &-selected,
      &-selected:hover {
        color: #fff;
        background-color: #2196F3;
      }
    }
    &-header {
      cursor: pointer;
      position: relative;
      div {
        width: 100%;
        display: flex;
        align-items: center;
      }
    }
  }
  &-new {
    position: absolute;
    width: 50px;
    height: 100%;
    z-index: 988;
    transition: all 0.25s;
    left: -280px;
    .ant-menu {
      .icon{
        width: auto;
        height: auto;
      }
    }
    ul {
      border-right: none
    }
    &.expanded {
      left: 0;
    }
    .ant-menu .ant-menu-item {
      color: #818999;
      font-size: 14px;
      &-selected,
      &-selected:hover {
        color: #fff;
        background-color: #2196F3;
      }
    }
  }

  //.common-menu-right-content::-webkit-scrollbar {
  //  width: 3px;
  //}
  .common-menu-right-content::-webkit-scrollbar-thumb {
    background: #C3CAD9 !important;
  }
  .common-menu-right-content::-webkit-scrollbar-thumb:hover {
    background: #69758C !important;
  }

  &-right {
    width: 200px;
    transition: width 0.5s;
    //margin-left: 50px;
    .ant-menu {
      border-right: 0;
      &-sub {
        background: #FAFDFF;
      }
      &-submenu-active {
        background-color: transparent;
      }
      &-selected:after,
      &-item-selected:after {
        display: none;
      }
      .ant-menu-item {
        color: #818999;
        font-size: 14px;
        &-selected,
        &-selected:hover {
          color: #2196F3;
        }
      }
    }
    .ant-menu-item-selected,
    .ant-menu-vertical .ant-menu-submenu-selected,
    &-popup .ant-menu-item-selected {
      color: #2196F3;
      background-color: rgba(228, 242, 253, 1) !important;
    }
    &-popup.ant-menu-submenu-open {
      .ant-menu-submenu-title {
        color: #2196F3;
        .common-menu-down {
          background-image: url('img/down.svg');
          height: 100%;
          background-repeat: no-repeat;
          background-size: auto 12px;
          position: absolute;
          top: 40%;
          right: -2px;
          width: 10px;
        }
      }
      .ant-menu-submenu-title:hover {
        padding: 0 15px !important;
        color: #2196F3;
        .common-menu-down {
        background-image: url('img/down.svg');
        height: 100%;
        background-repeat: no-repeat;
        background-size: auto 12px;
        position: absolute;
        top: 40%;
        right: -2px;
        width: 10px;
        }
      }
    }
    &-popup.ant-menu-submenu-popup {
      .ant-menu {
        box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.20), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
        min-width: 130px;
        &-item {
          padding-left: 0;
          padding-right: 20px;
        }
      }
    }

    &-footer {
      border-top: 1px solid #DCE1E6;
      height: 50px;
      line-height: 49px;
      padding: 0 12px;
      cursor: pointer;
    }

    &.collapsed {
      width: 50px;
      .ant-menu-inline-collapsed {
        width: 50px;
      }
      .icon + span {
        max-width: 0;
        display: inline-block;
        opacity: 0;
      }
      .common-menu-right-footer .icon {
        transform: scale(-1);
      }
    }
  }
  &-mask {
    z-index: 997;
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.48;
  }
}
