/*********相对定位********/
.relative {
  position: relative;
}

/*********滚动********/
.scrollbar {
  overflow: overlay;
}

/*********浮动********/
.fl {
  float: left;
}

.fr {
  float: right;
}

/*********手型********/
.pointer {
  cursor: pointer;
}

/*********文字位置********/
.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.strong {
  font-weight: bold;
}

/*********flex********/
.flex {
  display: flex;
}

.flex-grow1 {
  flex-grow: 1;
}

.shrink0 {
  flex-shrink: 0;
}

.flex-warp {
  flex-wrap: wrap;
}

.dir-column {
  flex-direction: column;
}

.just-between {
  justify-content: space-between;
}

.just-center {
  justify-content: center;
}

.just-end {
  justify-content: flex-end;
}

.just-start {
  justify-content: flex-start;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

/*********文字省略********/
.nowrap {
  white-space: nowrap;
}

.texx1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.texx2 {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.texx3 {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hidden {
  overflow: hidden;
}

.hide {
  display: none;
}

.show {
  display: block;
}

/*********字体大小和边距********/
@for $i from 1 through 100 {

  //字体大小
  .f#{$i} {
    font-size: #{$i}px;
  }

  //外边距
  .mg#{$i} {
    margin: #{$i}px;
  }

  .mt#{$i} {
    margin-top: #{$i}px;
  }

  .mr#{$i} {
    margin-right: #{$i}px;
  }

  .ml#{$i} {
    margin-left: #{$i}px;
  }

  .mb#{$i} {
    margin-bottom: #{$i}px;
  }

  //内边距
  .pd#{$i} {
    padding: #{$i}px;
  }

  .pt#{$i} {
    padding-top: #{$i}px;
  }

  .pl#{$i} {
    padding-left: #{$i}px;
  }

  .pr#{$i} {
    padding-right: #{$i}px;
  }

  .pb#{$i} {
    padding-bottom: #{$i}px;
  }

  //宽度
  .w#{$i} {
    width: #{$i}px;
  }

  .ww#{$i} {
    width: #{$i}+"%";
  }

  //高度
  .h#{$i} {
    height: #{$i}px;
  }

  .hh#{$i} {
    height: #{$i}+"%";
  }

  .lh#{$i} {
    line-height: #{$i}px;
  }

  //圆角
  .brad#{$i} {
    border-radius: #{$i}px;
  }
}

.clearfix {
  clear: both;
}

//右侧区
.stage-wrapper {
  height: calc(100vh - 145px);
  color: #333;
  display: flex;
  flex-direction: column;

  // background: #7cd0ec;
  .tip {
    color: var(--el-color-primary);
    display: inline-block;

    .el-icon {
      margin: 13px 3px 0 0;
      float: left;
      font-size: 16px;
      font-weight: bold;
    }
  }


  .no-file {
    color: #777;
  }

  .countdown {
    color: #c40000;
  }

  .el-dialog__body {
    max-height: 73vh;
    overflow-x: hidden;
  }

  .el-link.el-link--primary {
    &::after {
      display: none;
    }

    &+.el-link {
      margin: 0 5px;
    }
  }

  .el-button--primary:hover {
    background-color: var(--el-color-primary);
    border-color: var(--el-color-primary);
    opacity: 0.9;
  }

  .el-link--primary:hover {
    color: var(--el-color-primary);
    opacity: 0.9;
  }

  .header {
    height: 94px;
    background: #fff;

    .topper {
      height: 44px;
      line-height: 44px;
      border-bottom: 1px solid #e6e6e6;
      padding: 0 13px;
      position: relative;

      &::before {
        content: "";
        top: 1px;
        left: 1px;
        width: 0;
        height: 0;
        border-top: 9px solid #006e4a;
        border-right: 9px solid transparent;
        z-index: 9;
        position: absolute;
      }

      .base {
        font-weight: bold;
        margin-right: 20px;
        display: inline-block;

        .el-icon {
          color: #777;
        }
      }
    }

    .bottom {
      height: 48px;
      padding: 8px 63px 0 13px;
      position: relative;
      overflow: hidden;

      .el-tabs {
        .el-tabs__header {
          margin-bottom: 0;
          border-bottom: 0;

          .el-tabs__nav {
            border: none;
          }

          .el-tabs__item {
            background: var(--el-table-cell-bmx-backgroundcolor);
            border-top: 2px solid #fff;
            border-bottom: 2px solid #fff;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
            line-height: 38px;
            margin: 0 1px;

            &.is-active {
              background: var(--el-color-primary);
              color: #fff;
              border-top: 2px solid var(--el-color-primary);
              border-bottom: 2px solid var(--el-color-primary);
            }
          }
        }
      }

      .toggle {
        position: absolute;
        z-index: 9;
        height: 40px;
        line-height: 40px;
        color: var(--el-color-primary);
        right: 13px;
        top: 10px;
        cursor: pointer;
        z-index: 9;

        .el-icon {
          margin-left: 5px;
          float: right;
          margin-top: 14px;
          transform: rotate(90deg);
          transition: all 0.25s ease;
        }

        &.active {
          .el-icon {
            transform: rotate(-90deg);
          }
        }
      }
    }
  }

  .title {
    height: 24px;
    line-height: 24px;
    // padding-left: 10px; // 这个会导致点击不到展开树
    position: relative;
    margin-bottom: 5px;

    &::after {
      content: "";
      background: #006e4a;
      height: 16px;
      width: 3px;
      position: absolute;
      z-index: 9;
      left: 0;
      top: 4px;
    }
  }

  .el-form {
    display: block;
  }

  .content {

    // flex: 1;
    // display: flex;
    // flex-direction: column;
    .el-button+.el-button {
      margin-left: 0;
    }

    position: relative;

    .has-update {
      .el-badge__content {
        font-size: 9px;
        background: #c40000;
        top: 8px;
      }
    }

    .box {
      // flex: 1;
      padding-top: 10px;

      .topper,
      .bottom {
        background: #fff;
      }

      .query {
        padding: 10px 13px;
        height: 60px;
        line-height: 40px;

        .countdown {
          margin-left: 20px;
        }

        // .tip {
        //   .el-icon {
        //     margin-top: 18px;
        //   }
        // }
        .el-select {
          margin-right: 5px;
        }
      }

      .pt8 {
        padding: 10px 0;
      }
    }

    &.scroll {
      height: 100%;
      overflow-y: auto;
    }

    .bases {
      .item {
        width: 347px;
        float: left;
        padding: 5px;

        .inner {
          background: #d2f2e5;
          border-radius: 4px;
          padding: 5px 20px;
          display: flex;

          .icon {
            width: 60px;
            height: 60px;
            border: none;
            margin-top: 3px;
          }

          .info {
            flex: 1;

            p {
              padding-left: 30px;
              margin: 0;

              &.name {
                font-size: 18px;
              }

              &.count {
                font-size: 24px;
                font-weight: 500;
              }
            }
          }
        }
      }
    }

    .devices {
      .k-line {
        background: #eef6f6;
        border-radius: 4px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
        text-align: center;
        margin: 0 5px;
      }

      .item {
        width: 33.33%;
        float: left;
        padding: 5px 3px;

        .inner {
          background: #eef6f6;
          border-radius: 4px;
          padding: 5px 20px;

          p {
            margin: 0;

            &.name {
              font-size: 16px;
            }

            &.count {
              font-size: 26px;
              padding-bottom: 1px;
            }
          }
        }
      }
    }
  }
}

#mergeTable .el-table__body tr:hover>td.el-table__cell {
  background: #fff !important;
}

.edit-excel-pop {
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 10px;
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;

  &::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
  }

  .edit-excel-hd {
    height: 44px;
    padding: 0 10px;
    border-bottom: 1px solid #ccc;
    background: #fff;
  }

  .edit-excel-bd {
    flex: 1;
    position: relative;

    .luckysheet_info_detail {

      /* display: none!important; */
      .luckysheet_info_detail_back,
      .luckysheet-share-logo {
        display: none;
      }
    }

    .luckysheet-sheets-scroll {
      display: none !important;
    }
  }
}

#luckysheet-sheets-leftscroll,
#luckysheet-sheets-rightscroll {
  padding: 0 5px;
}

.luckysheet-sheet-area {
  line-height: 31px;
}