@use 'sass:math';


* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
  -moz-user-select: text; //-moz-none
  -khtml-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  font-family: AliPuHui;
}
$lightThemColor: #3686ff;
html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-size: 14px;
  position: relative;
}

@mixin flex-row {
  display: flex;
  display: -webkit-flex;
  display: -moz-flex;
  /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;
  /* TWEENER - IE 10 */
}

@mixin flex-row-vc {
  display: flex;
  display: -webkit-flex;
  display: -moz-flex;
  /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;
  /* TWEENER - IE 10 */
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
}

//快捷布局
.df {
  @include flex-row;
}

.fdc {
  flex-direction: column;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
}

.f1 {
  flex: 1;
}

.fn {
  flex: none;
}

.fw {
  flex-wrap: wrap;
}

.jcc {
  justify-content: center;
}

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

.jcsa {
  justify-content: space-around;
}

.jcse {
  justify-content: space-evenly;
}

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

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

.aic {
  align-items: center;
}
.aifs {
  align-items: flex-start;
}






//外边距
.ml10 {
  margin-left: 0.1rem;
}

.ml20 {
  margin-left: 0.2rem;
}

.mr10 {
  margin-right: 0.1rem;
}

.mr20 {
  margin-right: 0.2rem;
}

.mb10 {
  margin-bottom: 10px;
}

.mb20 {
  margin-bottom: 0.2rem;
}
.mb20-px {
  margin-bottom: 20px;
}

.mb30 {
  margin-bottom: 0.3rem;
}

.mt10 {
  margin-top: 0.1rem;
}

.mt20 {
  margin-top: 0.2rem;
}

.mt40 {
  margin-top: 0.4rem;
}

.mb40 {
  margin-bottom: 0.4rem;
}

.mr40 {
  margin-right: 0.4rem;
}
.textBtn-B {
  font-weight: bold;
  color: $lightThemColor;
  cursor: pointer;
}
.fs22 {
  font-size: 22px;
}

.textBtn-R {
  font-weight: bold;
  color: #f8544b !important;
  cursor: pointer;
}
.no_wrap {
  white-space: nowrap;
}


/* 竖向弹性盒子 */
.flex-col {
  @include flex-row-vc;
  flex: 1;
  // height: 100%;
  &.expand {
    justify-content: space-between;
  }
  &.wrap {
    flex-wrap: wrap;
  }
}
/* 横向弹性盒子 */
.flex-row {
  @include flex-row;
  width: 100%;
  &.middle {
    align-items: center;
  }
  &.bottom {
    align-items: flex-end;
  }
  &.expand {
    justify-content: space-between;
  }
  &.wrap {
    flex-wrap: wrap;
  }
}
// 全局样式
.page-conatiner {
  overflow-x: hidden;
  .title {
    font-weight: bold;
    font-size: 0.18rem;
    overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .search-item {
    @include flex-row;
    align-items: center;
    white-space: nowrap;
    width: 24%;
    gap: 10px;
    .label {
      width: 0.8rem;
      min-width: 60px;
      white-space: pre-wrap;
      text-align: center;
      line-height: 24px;
      text-align: center;
    }
    .el-input,
    .el-select {
      width: 70% !important;
      .el-input {
        width: 100% !important;
      }
    }
    //
  }
  .search-item.short {
    width: 24%;
  }
  .table-container {
    flex: 1 1 auto;
    height: 0;
    .el-scrollbar {
      min-height: 50px;
    }
  }

  .page {
    width: 100%;
    margin-top: 0.2rem;
    display: flex;
    justify-content: flex-end;
  }
}


//   dialog弹出给body加了该类名,导致页面右侧偏移
.el-popup-parent--hidden {
  width: 100% !important;
  padding-right: 0px !important;
  overflow: hidden !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 0.04rem;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 0.04rem;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:horizontal {
  /*滚动条里面小方块*/
  border-radius: 0.1rem;
  background-color: rgba(145, 151, 155, 0.5);
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track:horizontal {
  /*滚动条里面轨道*/
  background: rgba(0, 0, 0, 0);
  border-radius: 0.1rem;
}
// 全局修改table表体内cell文字大小
.el-table__body {
  .cell {
    font-size: 14px;
  }
}
// 全局表头不换行
.el-table th > .cell {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  text-overflow: unset;
}

// 表格空数据居中显示
:deep(.el-table__empty-block) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  // .el-table__empty-text {
  //   color: #ffffff;
  // }
}


:deep(.el-form-item__content) {
  align-items: flex-start !important;
}
:deep(.el-input__wrapper) {
  overflow: hidden !important;
}
.textL {
  text-align: left;
}
.textC {
  text-align: center;
}
.textR {
  text-align: right;
}
.pr15 {
  padding-right: 15px;
}


:deep(.el-button--primary:not(.is-text)) {
  background-color: #5584ff !important ;
  color: #fff !important;
}
:deep(.el-button) {
  min-width: 96px !important ;
}
:deep(.el-dialog__footer) {
  padding: 10px 0;
  background: #f5f5f5;
}

:deep(.el-dialog--center .el-dialog__body) {
  padding: 32px !important;
}
