@import url(../../../../styles/common/easyvCommon.less);

.container {
  width: 330px;
  height: 100vh;
  background: var(--easyv-background-6);
  z-index: 1;

  .header {
    height: 36px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    background: #3d404c;
    position: relative;

    span:last-child {
      cursor: pointer;
    }
  }

  .content {
    padding: 12px;

    .contentTitle {
      height: 48px;
      font-size: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      line-height: 24px;
      font-weight: 600;
      font-family: 'PingFang SC';
      font-style: normal;
      color: #fff;
      padding-bottom: 12px;

      .contentLeft {
        display: flex;
        align-self: center;

        >span {
          padding-right: 12px;
        }
      }

      .switchIcon {

        width: 94px;
        display: flex;
        align-self: center;
        justify-content: space-between;

        .iconSpan {
          display: flex;
          align-items: center;
          justify-content: space-evenly;
          width: 45px;
          height: 24px;
          border: 1px solid rgba(255, 255, 255, 0.05);
          border-radius: 28px;
          background: #333641;
          cursor: pointer;
        }

        .iconSpan:nth-child(1) {
          svg {
            color: rgb(232, 71, 80);
          }
        }

        .iconSpan:nth-child(2) {
          svg {
            color: #3a89fe;
          }
        }

        .selected {
          background: #3A89FE;

          svg {
            color: #fff !important;
          }
        }
      }

      .icon {
        cursor: pointer;
        color: #B4B7C1;
        display: flex;
        align-items: center;
        font-size: 14px;

        &:hover {
          color: #3a89fe;
        }
      }
    }
  }



  .listContainer {
    max-height: calc(100vh - 36px - 48px - 44px);
    padding: 0;

    .itemContainer {
      padding: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);

      .itemHeader {
        height: 16px;
        width: 100%;
        display: flex;
        align-items: center;
        font-size: 12px;

        .itemNameContainer {
          height: 16px;
          line-height: 16px;

          .itemName {
            display: inline-block;
            height: 16px;
            padding: 0 8px;
            font-weight: 600;
            color: #ffffff;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 267px;
            padding-left: 4px;
            cursor: pointer;

            &:hover {
              .component-title {
                font-weight: 600;
                color: #3A89FE;
                cursor: pointer;
              }
            }
          }

          svg {
            color: #b4b7c1;
            cursor: pointer;
          }

          svg:hover {
            color: #3a89fe;
          }
        }
      }

      .textOverflow {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /*! autoprefixer: off */
        -webkit-box-orient: vertical;
      }

      .filterErrorContainer {
        padding-top: 6px;
        padding-left: 46px;
        font-weight: 400;
        font-size: 12px;
        line-height: 18px;
        color: #b4b7c1;
      }
    }

    .itemContainer:nth-child(1) {
      border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .emptyContainer {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;

      p {
        padding-top: 13px;
      }
    }
  }
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  display: inline-block;
  width: 14px;
  height: 14px;
}

.icon:hover {
  color: #3a89fe;
}

.error-icon {
  .icon();
  width: 20px;
  text-align: center;

  svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: rgb(232, 71, 80);
  }
}

.info-icon {
  .icon();
  width: 20px;
  text-align: center;

  svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #3a89fe;
  }
}

.down-icon {
  .icon();
  cursor: pointer;
  margin-right: 8px;
}

.search_input {
  .easyvSearchInput();
  background: var(--easyv-background-6);

  :global {
    .easyv-gui-btn .anticon {
      color: #b4b7c1;
    }

    .easyv-gui-input {
      background-color: var(--easyv-background-6);
    }

    .easyv-gui-input-group-addon {
      background-color: var(--easyv-background-6);
    }

    .easyv-gui-btn-icon-only {
      background-color: var(--easyv-background-6);
    }
  }
}