.kcmp-ant-tooltip {
  .kcmp-ant-tooltip-content {
    position: relative;
    right: 8px;
  }
}

.userPannel {
  width: 100px;
  background-color: white;

  .userPannelTab {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 30px;
    font-size: 14px;
    font-family: SourceHanSansCN-Normal, SourceHanSansCN;
    font-weight: 400;
    color:#17181A;
    cursor: pointer;
    padding-left: 12px;
    border-radius: 2px;


    &>span {
      &:last-child{
        margin-left: 8px;
      }
    }

    &:hover {
      background-color: #F5F7FA;
    }

    &:last-child {
      border-bottom: none;
    }
  }
}

.kcmp-ant-tooltip {
  padding-top: 0 !important;

  .kcmp-ant-tooltip-content {
    .kcmp-ant-tooltip-arrow {
      display: none;
    }

    .kcmp-ant-tooltip-inner {
      border-radius: 4px;
    }
  }
}

.topBar {
  position: relative;
  z-index: 999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width:1280px;
  height: 48px;
  padding-left: 16px;
  background: #3377FF;

  * {
    line-height: normal;
  }

  .logoWrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 400px;

    .logo {
      width: 120px;
      height: 24px;
    }

    .systemTitle {
      cursor: pointer;
      font-size: 16px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: #FFFFFF;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .menu {
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 32px;
      height: 32px;
      border-radius: 4px;
      margin-right: 8px;
      transition: all 0.3s ease-in;
      background: rgba(254, 255, 255, 0);


      &>img {
        width: 16px;
        height: 16px;
      }

      &.active {
        background: rgba(254, 255, 255, 0.1);
      }

      &:hover {
        background: rgba(254, 255, 255, 0.1);
      }
    }

    &>span {
      font-size: 14px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: #FFFFFF;
    }
  }


  .userRelaInfoWrap {
    display: flex;
    width: 55%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;


    .tabWrap {
      display: flex;
      width: 60%;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      margin-right: 8px;

      .tab {
        display: flex;
        max-width: 180px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 2%;
        border-radius: 4px;
        opacity: 0.8;
        margin-right: 1%;
        cursor: pointer;
        box-sizing: border-box;

        .tabText {
          width: 100%;
          font-size: 14px;
          font-family: SourceHanSansCN-Medium, SourceHanSansCN;
          font-weight: 500;
          color: #ffffff;
          white-space: nowrap;
          overflow-x: hidden;
          text-overflow: ellipsis;
        }

        .closeIconWrap {
          display: none;
          justify-content: center;
          align-items: center;
          padding: 0px 9px;

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

        &:hover {
          background: #5387ee;
        }

        &.on {
          opacity: 1;
          background: #1963FA;
        }

        &:last-child {
          margin-right: 0;
        }
      }
    }

    .tabMore {
      position: relative;
      z-index: 999;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 4px;
      margin-right: 8px;

      .morePannel {
        position: absolute;
        z-index: 999;
        top: 40px;
        width: 116px;
        background: #F5F7FA;
        box-shadow: 0px 10px 20px 0px rgba(31, 71, 153, 0.2);
        border-radius: 0px 0px 8px 8px;
        opacity: 0.98;
        padding: 8px;

        .moreItem {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          height: 32px;
          background: #FFFFFF;
          border-radius: 4px;
          padding: 8px;

          span {
            font-size: 12px;
            font-family: SourceHanSansCN-Normal, SourceHanSansCN;
            font-weight: 400;
            color: #17181A;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          &:hover {
            background: #3376FE;

            span {
              color: #ffffff;
            }
          }

        }
      }

      &::after {
        position: relative;
        // top: 3px;
        // left: 6px;
        display: inline-block;
        content: '';
        width: 32px;
        height: 32px;
        background: url('../../../public/images/threePoint_white_more.png');
        background-size: 24px 24px;
        background-position: center center;
        background-repeat: no-repeat;
      }

      &.active {
        background: rgba(249, 248, 248, .1);
      }
    }

    .notification {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      margin-right: 8px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 4px;

      .notificationIcon {
        width: 16px;
        height: 16px;
      }

      &:hover {
        background: rgba(249, 248, 248, .1);
      }
    }

    .user {
      cursor: pointer;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      //margin-left: 16px;
      height: 48px;
      padding-right: 16px;
      padding-left: 8px;
      background: linear-gradient(90deg, #66A6FF 0%, #3366FF 100%);
      border-radius: 24px 0px 0px 24px;

      .avator {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        margin-right: 8px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #FFFFFF;
        img {
          width: 101%;
          height: 101%;
        }
      }

      .info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        .hospName {
          height: 13px;
          line-height: 13px;
          font-size: 12px;
          font-family: SourceHanSansCN-Normal, SourceHanSansCN;
          font-weight: 400;
          color: #FFFFFF;
          margin-bottom: 7px;
          opacity: .9;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .name {
          height: 13px;
          line-height: 13px;
          font-size: 12px;
          font-family: SourceHanSansCN-Medium, SourceHanSansCN;
          font-weight: 500;
          color: #FFFFFF;
        }
      }

      .arrow {
        width: 11px;
        height: 7px;
        transition: all 0.3s ease-in;

        &.on {
          transform: rotate(180deg);
        }
      }
    }
  }

  .panel {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: absolute;
    top: 48px;
    left:170px;
    min-height: 140px;
    width:980px;
    background: #F5F7FA;
    box-shadow: 0px 10px 20px 0px rgba(31, 71, 153, 0.2);
    border-radius: 0px 0px 8px 8px;
    opacity: 0.98;
    overflow: hidden;

    .left {
      width: 140px;
      padding-top: 16px;
      padding-bottom: 16px;
      background-color: #ffffff;

      .typeBlock {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 108px;
        height: 108px;
        margin: 0 auto;
        border-radius: 4px;

        &>.typeBlockIcon {
          width: 40px;
          height: 40px;
          margin-bottom: 8px;
        }

        &>span {
          font-size: 12px;
          font-family: SourceHanSansCN-Normal, SourceHanSansCN;
          font-weight: 400;
          color: #515866;
        }

        &:nth-child(1){

          .typeBlockIcon {
                background: url('../../../public/images/jingyiyiliao_gray.png');
                background-size: contain;
          }

          &.active {
            background: #F2F7FF;
            .typeBlockIcon {
              background: url('../../../public/images/jingyiyiliao.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }

          &:hover {
            // background: #F5F7FA;
            .typeBlockIcon {
              background: url('../../../public/images/jingyiyiliao.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }
        }
        &:nth-child(2){

          .typeBlockIcon {
                background: url('../../../public/images/HBI_gray.png');
                background-size: contain;
          }

          &.active {
            background:#F2F7FF;
            .typeBlockIcon {
              background: url('../../../public/images/HBI.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }

          &:hover {
            .typeBlockIcon {
              background: url('../../../public/images/HBI.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }
        }
        &:nth-child(3){

          .typeBlockIcon {
                background: url('../../../public/images/zhongtaiguanli_gray.png');
                background-size: contain;
          }

          &.active {
            background:#F2F7FF;
            .typeBlockIcon {
              background: url('../../../public/images/zhongtaiguanli.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }

          &:hover{
            .typeBlockIcon {
              background: url('../../../public/images/zhongtaiguanli.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }
        }
        &:nth-child(4){

          .typeBlockIcon {
                background: url('../../../public/images/guanlizhongxin_gray.png');
                background-size: contain;
          }

          &.active {
            background:#F2F7FF;
            .typeBlockIcon {
              background: url('../../../public/images/guanlizhongxin.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }

          &:hover{
            .typeBlockIcon {
              background: url('../../../public/images/guanlizhongxin.png');
              background-size: contain;
            }
  
            &>span {
              color: #3376FE;
            }
          }
        }
      }
      
    }

    .right {
      position: relative;
      width: calc(100% - 140px);
      height: 100%;
      padding: 2% 2.5%;

      .panelCloseBtn {
        position: absolute;
        width: 12px;
        height: 12px;
        cursor: pointer;
        top:16px;
        right:16px;
        background: url('../../../public/images/close.png');
        background-size: contain;
      }

      .row {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 16px;

        .channelIcon {
          width: 24px;
          height: 24px;
          margin-right:17px;
        }

        .rowDetail {
          width: 100%;

          .channelName {
            display: inline-block;
            font-size: 14px;
            font-family: SourceHanSansCN-Normal, SourceHanSansCN;
            font-weight: 400;
            color: #7A8599;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.3s ease-in;

            &:hover {
              color: #3376FE;
            }
          }

          .channelList {
            display: flex;
            width: 100%;
            min-height: 30px;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;

            .systemTab {
              width:180px;
              height: 32px;
              line-height: 32px;
              background: #FFFFFF;
              border-radius: 4px;
              font-size: 12px;
              font-family: SourceHanSansCN-Normal, SourceHanSansCN;
              font-weight: 400;
              color: #17181A;
              padding-left: 8px;
              margin-right: 1%;
              cursor: pointer;
              transition: all 0.3 ease-in;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              margin-bottom: 8px;

              &.on {
                color: white;
                background: linear-gradient(90deg, #3376FE 0%, #66A6FF 100%);
              }

              &:hover {
                color: white;
                background: linear-gradient(90deg, #3376FE 0%, #66A6FF 100%);
              }
            }
          }
        }

        &:last-child {
            margin-bottom: 0;
        }
      }
    }
  }
}
