html {
  height: 100%;
  width: 100%;
  font-size: 14px;

  body {
    width: 100%;
    height: 100%;
    font-family: "微软雅黑", "Microsoft YaHei", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial,
      sans-serif;
    -webkit-font-smoothing: antialiased; /*chrome、safari*/
    -moz-osx-font-smoothing: grayscale; /*firefox*/
    -webkit-text-size-adjust: none;
    line-height: 1.5715;
    color: #515a6e;
  }
}

/* tailwindcss */
@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  scrollbar-width: thin;
  scrollbar-track-color: transparent;
}

@include scrollbar-normal;

/* handsontable 树画线 */
.ht-switcher-container {
  position: relative;
  width: 100%;
  height: 100%;

  &:hover {
    .tail-icon-wrap {
      opacity: 1 !important;
    }
  }

  .ht-switcher-wrap {
    display: flex;
    height: 100%;
    align-items: center;

    .head-icon-wrap,
    .text-icon-wrap,
    .text-behind-icon-wrap {
      display: inline-flex;
      align-items: center;
      padding-right: 2px !important;

      > .iconfont {
        line-height: 15px;
        font-size: 16px;
        width: 15px;
        height: 15px;
        color: $dark-blue;
      }
    }

    > .text {
      display: inline-flex;
      align-items: center;
      margin-left: 5px;
      font-size: 0;

      > .text-icon-wrap,
      > .text-behind-icon-wrap {
        padding: 0;

        > .iconfont {
          margin-right: 1px;
        }
      }

      > .text-behind-icon-wrap {
        margin-left: 3px;
      }

      > .content {
        font-size: 14px;
      }
    }

    > .tail-icon-wrap {
      transition: opacity 0.1s;
      /* opacity: 0; */
      padding-left: 6px;
      position: absolute;
      right: 0;
      color: $dark-blue;

      > .iconfont {
        /* cursor: pointer; */
        font-size: 16px;
        margin-right: 3px;
        padding: 3px;
        /* background-color: $white; */
        border-radius: 50%;

        &:hover {
          color: #0062cc;
        }
      }
    }

    // 线
    > .tree-line-wrap {
      display: inline-flex;
      height: 100%;

      > .tree-line {
        width: 1px;
        height: 100%;
        background-color: $light-grey;
        margin: 0 8px 0 6px;
      }
    }

    // 切换按钮 icon
    > .toggle-icon-wrap {
      position: relative;
      width: 16px;
      height: 100%;

      > .toggle-icon {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);

        &.ht-toggle-icon-expand,
        &.ht-toggle-icon-shrink {
          width: 12px;
          height: 12px;
          border: 1px solid $black;
          cursor: pointer;
          color: $black;
          background-color: $white;
        }

        &.ht-toggle-icon-expand {
          &::before {
            position: absolute;
            left: 0;
            top: -1.5px;
            content: "+";
            font-size: 13px;
            line-height: 12px;
          }
        }

        &.ht-toggle-icon-shrink {
          &::before {
            position: absolute;
            left: 2px;
            top: 5px;
            content: " ";
            width: 6px;
            height: 1px;
            background-color: $black;
          }
        }
      }

      > .toggle-icon-top-line,
      > .toggle-icon-right-line,
      > .toggle-icon-bottom-line {
        position: absolute;
        background-color: $black;
      }

      > .toggle-icon-top-line {
        top: 0;
        left: 6px;
        width: 1px;
        height: 50%;
        background-color: $light-grey;
      }

      > .toggle-icon-right-line {
        right: 0;
        top: 50%;
        margin-top: -0.5px;
        width: 10px;
        height: 1px;
        background-color: $light-grey;
      }

      > .toggle-icon-bottom-line {
        bottom: 0;
        left: 6px;
        width: 1px;
        height: 50%;
        background-color: $light-grey;
      }
    }
  }
}

/* handsontable indent renderer*/
.ht-indent-renderer {
  display: flex;
  align-items: center;
  height: 100%;
}

.handsontable.listbox td {
  border-color: transparent !important;
}

//自定义下拉框样式
.wcDropdown {
  display: flex;
  flex-direction: row-reverse;

  .wcDropdownText {
    overflow: hidden;
    flex: 1;
  }

  .htAutocompleteArrow {
    display: none;
  }
}

.current {
  .htAutocompleteArrow {
    display: block;
  }
}
