/** 导航样式抽取 **/
.index-container {
  .ant-menu {
    .ant-menu-submenu-title {
      font-size: @riten-font-size-14;
      color: #FFFFFF;
    }
    .ant-menu-item {
      display: flex;
      align-items: center;
      font-size: @riten-font-size-14;
      color: #FFFFFF;
      .iconfont, i {
        font-size: @riten-font-size-16;
        margin-right: 0.429rem; // 6px;
      }
    }
  }
  .first-menu-container {
    height: 100%;
    width: 6.286rem; // 88px;
    background: #16191F;
    .logo {
      height: 6.286rem; // 88px
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .logo-container {
        width: 2.429rem; // 34px;
        height: 2.429rem; // 34px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        .riten-avatar {
          width: 100%;
          height: 100%;
          line-height: 1;
        }
      }
      .tenant-title {
        text-align: center;
        margin-top: 6px;
        font-size: @riten-font-size-12;
        color: #B9BABC;
      }
      .icon-logo-riten {
        width: 4.286rem; // 60px;
        height: auto;
      }
    }
    .ant-menu {
      flex: 1;
      height: 100%;
      min-height: 0;
      background: none;
      overflow-x: hidden;
      overflow-y: auto;
      .ant-menu-item,
      .sub-menu-others {
        padding: 0 0 0 0.857rem !important; // 0 12px;
        margin: 0;
        &:not(:first-child) {
          margin-top: 4px;
        }
        &:hover,
        &.menu-item-hover {
          color: #FFFFFF;
          background: rgba(255, 255, 255, 0.1);
        }
        &.ant-menu-item-selected {
          background: @riten-nice-blue;
        }
      }
      .sub-menu-others {
        padding: 0 !important;
        &.sub-menu-others-active {
          background: @riten-nice-blue;
        }
        .ant-menu-submenu-title {
          margin: 0;
          text-align: center;
          color: #FFFFFF !important;
          .ant-menu-submenu-arrow {
            display: none;
          }
        }
      }
    }
  }
  .second-menu-container {
    height: 100%;
    width: 8.571rem; // 120px;
    .menu-title {
      height: 3.429rem; // 48px;
      line-height: 3.429rem; // 48px;
      padding: 0 1.857rem;
      font-size: @riten-font-size-14;
      color: #212122;
      border-right: 1px solid #F1F1F1;
      border-bottom: 1px solid #F1F1F1;
    }
    .ant-menu {
      flex: 1;
      height: 100%;
      min-height: 0;
      background: none;
      border-color: #F1F1F1;
      padding-top: calc(0.714rem - 4px); // 10px - 4px
      overflow-x: hidden;
      overflow-y: auto;
      .ant-menu-submenu-title {
        color: #333333;
        padding-left: 1.857rem !important; // 26px;
        padding-right: @riten-font-size-16 !important;
        .ant-menu-submenu-arrow {
          position: absolute;
          left: 12px;
          &, &:before, &:after {
            background: #999999 !important;
          }
        }
      }
      .ant-menu-item {
        color: #333333;
        padding: 0 @riten-font-size-12 0 @riten-font-size-16 !important;
        margin: 4px 0.714rem; // 10px;
        width: calc(100% - 1.429rem); // 20px;
        border-radius: 2px;
        &.ant-menu-item-active {
          background: #E6F2FD;
          .sub-menu-item-title {
            color: @riten-nice-blue;
          }
        }
        &.ant-menu-item-selected {
          background: rgba(7, 126, 244, 0.1);
          color: @riten-nice-blue;
        }
        &:after {
          display: none;
        }
      }
      .ant-menu-sub {
        overflow: hidden;
        padding: 0;
        .ant-menu-item {
          padding: 0 @riten-font-size-16 !important;
          color: #999999;
          margin-left: 0.714rem; // 10px;
          margin-right: 0.714rem; // 10px;
          width: calc(100% - 1.429rem); // 20px;
          border-radius: 2px;
          &.ant-menu-item-selected {
            background: rgba(7, 126, 244, 0.1);
            color: #1890ff;
          }
          &:after {
            display: none;
          }
        }
      }
    }
    &.hover-second-menu-container {
      position: absolute;
      left: 6.286rem; // 88px;
      z-index: 10;
      background: #FFFFFF;
    }
    &.inside-menu-container {
      .menu-title {
        color: @riten-nice-blue;
        cursor: pointer;
        .iconfont, i {
          margin-right: @riten-font-size-12;
        }
      }
    }
  }
  .layout-container {
    .layout-header {
      .go-back-icon{
        position: relative;
        color: #077EF4;
        margin-right: 3rem;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        &:after {
          content: '';
          position: absolute;
          right: -1.5rem;
          top: 0;
          height: 100%;
          width: 1px;
          background: #F1F1F1;
        }
      }
      .current-title {
        font-size: @riten-font-size-14;
        color: #212122;
      }
      .ant-dropdown-link {
        cursor: pointer;
        .iconfont, i {
          margin-left: 4px;
          font-size: @riten-font-size-12;
        }
      }
    }
    .layout-content {
      overflow-x: hidden;
      overflow-y: hidden;
    }
  }
}
.ant-menu-submenu-popup {
  .ant-menu {
    background: #FFFFFF !important;
    min-width: 240px !important;
    padding: 14px 0 !important;
    .sub-menu-item-others {
      position: relative;
      display: flex;
      align-items: center;
      height: 52px;
      padding: 0 24px;
      margin: 0 !important;
      &:not(:last-child):before {
        content: '';
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: #F1F1F1;
      }
      .icon-container {
        width: 32px;
        height: 32px;
        background: #589BF6;
        border-radius: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
        .iconfont, i {
          margin: 0;
          font-size: 16px;
          color: #FFFFFF;
        }
      }
      .sub-menu-item-title {
        margin-left: 14px;
        color: #212122;
      }
      &.ant-menu-item-active {
        background: #E6F2FD;
        .sub-menu-item-title {
          color: @riten-nice-blue;
        }
      }
      &.ant-menu-item-selected {
        background: rgba(7, 126, 244, 0.1);
        .sub-menu-item-title {
          color: @riten-nice-blue;
        }
      }
    }
  }
}
