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

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

.container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, #14161f 0%, rgba(20, 22, 31, 0) 95.52%);
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 20px 14px 20px;
  color: #b4b7c1;

  .title_left {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    font-weight: 500px;
    cursor: pointer;

    .app_icon_drop {
      font-size: 12px;
      transform: rotate(90deg);
      margin-right: 12px;
      transition: all 0.3s ease;
    }

    .app_list {
      width: 56px;
      margin-left: 10px;
    }
  }

  .addIcon {
    font-size: 14px;
    color: var(--easyv-text-3);
    cursor: pointer;
    display: inline-block;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    text-align: center;
    vertical-align: middle;

    &:hover {
      color: var(--easyv-text-3);
    }
  }
}

.addIcon {
  font-size: 14px;
  color: var(--easyv-text-3);
  cursor: pointer;
  display: inline-block;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  text-align: center;
  vertical-align: middle;

  &:hover {
    color: var(--easyv-text-3);
  }
}

.menu {
  color: var(--easyv-text-2);
  font-size: 14px;
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
  max-height: calc(100vh - 288px);

  .menuItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(180, 183, 193, 1);
    font-family: PingFang SC;
    font-style: normal;
    font-weight: normal;
    height: 40px;
    line-height: 40px;
    padding: 0px 20px 0px 56px;
    cursor: pointer;
    .input();

    p:nth-child(2) {
      width: 22px;
      text-align: center;
    }

    &.inputItem {
      line-height: 58px;

      input {
        height: 28px;
      }
    }

    .nameContainer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 143px;
      height: 48px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      input {
        height: 28px;
      }
    }

    .rightIcon {
      width: 22px;
      text-align: center;
      position: relative;
    }

    .groupedCount {
      visibility: visible;
    }

    .deleteIcon {
      margin-left: 8px;
      font-size: 14px;
      display: none;
    }

    .editIcon {
      margin-left: 8px;
      font-size: 14px;
      display: none;
    }

    .editName {
      height: 48px;
      padding: 0px;
      max-width: 100%;

      p {
        flex: unset;
      }
    }

    &:hover {
      font-weight: 500px;
      color: #fff;
      background: rgba(255, 255, 255, 0.08);

      .editName {
        color: #fff;
        font-weight: 500px;
      }

      .deleteIcon {
        color: #3a89fe;
        display: inline;
      }

      .editIcon {
        color: #3a89fe;
        display: inline;
      }

      .groupedCount {
        visibility: hidden;
      }

      .rightIcon {
        width: inherit;
      }
    }

    &.active {
      color: rgba(255, 255, 255, 1);
      font-weight: 500;
      // background: linear-gradient(90deg, #3a89fe 0%, rgba(58, 137, 254, 0) 100%);
      background: #3a89fe;

      &:hover {
        .deleteIcon {
          color: #fff;
        }

        .editIcon {
          color: #fff;
        }
      }
    }
  }

  .dropContainer {
    border: 1px dashed transparent;

    &.isDragging {
      border-color: var(--easyv-primary-color);

      .active {
        border-top-color: var(--easyv-primary-color);
        border-bottom-color: var(--easyv-primary-color);
      }

      .isFirst.active {
        border-top-color: transparent;
      }

      .isLast.active {
        border-bottom-color: transparent;
      }

      :global(.isOver) {
        .menuItem {
          background: linear-gradient(90deg, rgba(81, 92, 118, 0.56) 0%, rgba(41, 43, 56, 0.3) 100%);
          color: var(--easyv-primary-color);

          .editName {
            color: var(--easyv-primary-color);
          }
        }
      }
    }
  }
}

.appNum {
  width: 256px;
  padding: 0 40px;
  box-sizing: border-box;
  height: 88px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  bottom: 0;

  :global {
    .easyv-progress-bg {
      height: 4px !important;
    }
  }
}

.appNumHeader {
  padding: 21px 0px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.appNumText {
  width: 66px;
  height: 22px;
  white-space: nowrap;
  display: flex;
  align-items: center;

  &:first-child {
    font-family: PingFang SC;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #ffffff;
  }

  svg {
    width: 14px;
    height: 14px;
    color: #b4b7c1;
  }
}

.currentNum {
  font-family: PingFang SC;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: #ffffff;
}

.totalNum {
  font-family: PingFang SC;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  color: #b4b7c1;
}

.content {
  font-size: 12px;
  color: #b4b7c1;

  .coTitle {
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .price {
    display: flex;
    height: 40px;
    margin-bottom: 20px;

    .money {
      color: #ff9447;
      font-size: 28px;
      line-height: 40px;
      font-weight: 500;
    }

    .unit {
      font-size: 14px;
      line-height: 46px;
    }

    .btn {
      width: 56px;
      height: 25px;
      color: #ff9447;
      border: 1px solid #ff9447;
      text-align: center;
      line-height: 23px;
      margin: 7px 10px;
      border-radius: 3px;
    }
  }
}