@font-face {
  font-family: "Genuine";
  src: url('../../../../assets/font/Genuine-2.ttf');
}
@font-face {
  font-family: "Inter";
  src: url('../../../../assets/font/Inter-Medium.otf');
}
@font-face {
  font-family: "Inter-Regular";
  src: url('../../../../assets/font/Inter-Regular.otf');
}
@font-face {
  font-family: "Inter-Semi Bold";
  src: url('../../../../assets/font/Inter-SemiBold.otf');
}


*{
  outline:none;
}
html,body {
  .scrollbar();
  line-height: initial!important;
  width: 100%;
}
body{
  min-width: calc(100% - 6px);
}
html,body, ol,ul,dl, p {
  list-style: none;
  margin: 0;
  padding: 0;
}
input,
textarea{
  -webkit-appearance: none;
}
.semi-bold{
  font-family: Inter-Semi Bold, Inter;
}
.roboto{
  font-family: Roboto;
}
.roboto-medium{
  font-family: Roboto-Medium;
}
.roboto-bold{
  font-family: Roboto-Bold;
}
.roboto-regular{
  font-family: Roboto-Regular;
}
.content-1600-default,
.content-1600{
  max-width: 1600px;
  margin: 0 auto;
}
.content-1200-default,
.content-1200{
  max-width: 1200px;
  margin: 0 auto;
}
.content-996-default,
.content-996{
  max-width: 996px;
  margin: 0 auto;
}
.content-800-default,
.content-800{
  max-width: 800px;
  margin: 0 auto;
}
.position-r {
  position: relative;
}

.cursor-p {
  cursor: pointer;
}

.display-n {
  display: none;
}

.display-f {
  display: flex;
}
.display-inline-f {
  display: inline-flex;
}

.display-b {
  display: block;
}

.display-i-b {
  display: inline-block;
}
.display-i-f {
  display: inline-flex;
}


.flex-1 {
  min-width: 0;
  flex: 1;
}
.flex {
  display: flex;
}

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

.flex-a-baseline {
  align-items: baseline;
}

.flex-j-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}
.float-l{
  float: left;
}
.float-r{
  float: right;
}
.align-i-center {
  align-items: center;
}
.justify-space-between {
  justify-content: space-between;
}
.justify-flex-center {
  justify-content: center;
}
.justify-flex-start {
  justify-content: flex-start;
}
.justify-flex-end {
  justify-content: flex-end;
}

.f-s-12{
  font-size: 12px;
}
.f-s-14{
  font-size: 14px;
}
.f-s-16{
  font-size: 16px;
}
.f-s-18{
  font-size: 18px;
}
.f-s-20{
  font-size: 20px;
}
.f-s-22{
  font-size: 22px;
}
.f-s-24{
  font-size: 24px;
}
.f-s-26{
  font-size: 26px;
}
.f-s-28{
  font-size: 28px;
}
.f-s-30{
  font-size: 30px;
}
.f-s-34{
  font-size: 34px;
}
.f-s-40{
  font-size: 40px;
}
.f-s-60{
  font-size: 60px;
}

.font-w-4{
  font-weight: 400;
}
.font-w-5{
  font-weight: 500;
}
.font-w-6{
  font-weight: 600;
}

.clearfix{
  .clearfix();
}
.clearfix-row{
  .clearfix-row();
}
.break-all{
  word-break: break-all;
}
.break-word{
  word-break: break-word;
}
.white-space-n{
  white-space: nowrap;
}
.text-d-underline{
  text-decoration: underline;
}
.text-a-l{
  text-align: left;
}
.text-a-r{
  text-align: right;
}
.text-a-c{
  text-align: center;
}
.v-a-t {
  vertical-align: top;
}

.v-a-b {
  vertical-align: bottom;
}

.v-a-m {
  vertical-align: middle;
}
.o-hidden{
  overflow: hidden;
}
.text-overflow{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.radius-4{
  border-radius: 4px;
}
.color-515cce{
  color:#515cce;
}
.color-000{
  color:#000;
}
.color-333{
  color:#333;
}
.color-666{
  color:#666;
}
.color-999{
  color:#999;
}
.color-bababa{
  color:#bababa;
}
.color-9AA5B5{
  color:#9AA5B5;
}

.color-theme{
  color:@color-theme;
}
.color-t1{
  color:@color-t1;
}
.color-t2{
  color:@color-t2;
}
.color-t3{
  color:@color-t3;
}
.color-t4{
  color:@color-t4;
}
.color-border{
  color:@color-border;
}
.color-split-line{
  color:@color-split-line;
}
.color-b{
  color:@color-b;
}
.color-w{
  color:@color-w;
}
.color-red{
  color: #F53F3F;
}




.m-t-3{
  margin-top: 3px;
}
.m-t-4{
  margin-top: 4px;
}
.m-t-6{
  margin-top: 6px;
}
.m-t-8{
  margin-top: 8px;
}
.m-t-10{
  margin-top: 10px;
}
.m-t-12{
  margin-top: 12px;
}
.m-t-16{
  margin-top: 16px;
}
.m-t-24{
  margin-top: 24px;
}
.m-t-30{
  margin-top: 30px;
}
.m-t-36{
  margin-top: 36px;
}
.m-t-70{
  margin-top: 70px;
}
.m-t-80{
  margin-top: 80px;
}
.m-t-165{
  margin-top: 165px;
}

.m-b-4{
  margin-bottom: 4px;
}
.m-b-6{
  margin-bottom: 6px;
}
.m-b-8{
  margin-bottom: 8px;
}
.m-b-12{
  margin-bottom: 12px;
}
.m-b-16{
  margin-bottom: 16px;
}
.m-b-18{
  margin-bottom: 18px;
}
.m-b-20{
  margin-bottom: 20px;
}
.m-b-24{
  margin-bottom: 24px;
}
.m-b-50{
  margin-bottom: 50px;
}

.m-l-2{
  margin-left: 2px;
}
.m-l-4{
  margin-left: 4px;
}
.m-l-5{
  margin-left: 5px;
}
.m-l-6{
  margin-left: 6px;
}
.m-l-8{
  margin-left: 8px;
}
.m-l-12{
  margin-left: 12px;
}
.m-l-16{
  margin-left: 16px;
}
.m-l-24{
  margin-left: 24px;
}

.m-r-5{
  margin-right: 5px;
}
.m-r-6{
  margin-right: 6px;
}
.m-r-8{
  margin-right: 8px;
}
.m-r-12{
  margin-right: 12px;
}
.m-r-16{
  margin-right: 16px;
}
.m-r-24{
  margin-right: 24px;
}


.p-t-6{
  padding-top: 6px;
}
.p-t-8{
  padding-top: 8px;
}
.p-t-10{
  padding-top: 10px;
}
.p-t-12{
  padding-top: 12px;
}
.p-t-16{
  padding-top: 16px;
}
.p-t-24{
  padding-top: 24px;
}
.p-t-30{
  padding-top: 30px;
}
.p-t-60{
  padding-top: 60px;
}
.p-t-70{
  padding-top: 70px;
}
.p-t-105{
  padding-top: 105px;
}
.p-t-130{
  padding-top: 130px;
}

.p-b-6{
  padding-bottom: 6px;
}
.p-b-8{
  padding-bottom: 8px;
}
.p-b-12{
  padding-bottom: 12px;
}
.p-b-16{
  padding-bottom: 16px;
}
.p-b-24{
  padding-bottom: 24px;
}
.p-b-30{
  padding-bottom: 30px;
}
.p-b-35{
  padding-bottom: 35px;
}
.p-b-60{
  padding-bottom: 60px;
}
.p-b-105{
  padding-bottom: 105px;
}
.p-b-200{
  padding-bottom: 200px;
}

.p-l-6{
  padding-left: 6px;
}
.p-l-8{
  padding-left: 8px;
}
.p-l-12{
  padding-left: 12px;
}
.p-l-16{
  padding-left: 16px;
}
.p-l-24{
  padding-left: 24px;
}

.p-r-6{
  padding-right: 6px;
}
.p-r-8{
  padding-right: 8px;
}
.p-r-12{
  padding-right: 12px;
}
.p-r-16{
  padding-right: 16px;
}
.p-r-24{
  padding-right: 24px;
}

.line-h-16{
  line-height: 16px;
}
.line-h-18{
  line-height: 18px;
}
.line-h-20{
  line-height: 20px;
}
.line-h-24{
  line-height: 24px;
}
.line-h-34{
  line-height: 34px;
}
.line-h-35{
  line-height: 35px;
}

.w-17{
  width: 17px;
}
.w-120{
  width: 120px;
}
.w-bar-100{
  width: 100%;
}
.h-bar-100{
  height: 100%;
}


.min-w-120{
  min-width: 120px;
}

.child-img-100{
  & img{
    max-width: 100%;
  }
}
.child-img-80{
  & img{
    max-width: 80%;
  }
}
.child-img-hide{
  & img{
    display: none;
  }
}
.required-tip{
  font-family: SimSun, sans-serif;
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  line-height: 1;
}
.b-link{
  .transition(all .2s ease);
  color: @color-t1;
  &:hover{
    color:@color-theme;
  }
}
.button-vs{
  .transition(all .1s ease);
  background: linear-gradient(140deg, #67C8FF 0%, #43AEF2 38%, #1B90E4 100%)!important;
  box-shadow: 0px 4px 6px 0px rgba(163,215,250,0.6), inset 0px -4px 0px 0px #007AD0;
  font-family: PingFang SC-Medium, PingFang SC;
  color: #FFF!important;
  justify-content: center;
  border-radius: 34px;
  line-height: 44px;
  min-width: 164px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  height: 44px;
  padding: 0;
  border: 0;
  &::before{
    display: none!important;
  }
  &.on{
    background: linear-gradient(140deg, #84CBF3 0%, #73BEEF 38%, #6DBBF3 100%)!important;
    box-shadow: 0px 4px 6px 0px rgba(163,215,250,0.6), inset 0px -4px 0px 0px #4CADF2;
  }
  &:not(.ant-btn-loading){
    &:hover{
      .transform(translateY(1px));
      box-shadow: 0px 4px 6px 0px rgba(163,215,250,0.6), inset 0px -3px 0px 0px #007AD0;
    }
    &:active{
      .transform(translateY(2px));
      box-shadow: 0px 4px 6px 0px rgba(163,215,250,0.6), inset 0px -2px 0px 0px #007AD0;
    }
  }
}
.odds-fn(@name,@color){
  @{name}{
    background-color:@color;
  }
}

.keyframes(odds-up,{
  .odds-fn(100%,rgba(255, 68, 68, 0.12));
});
.keyframes(odds-down,{
  .odds-fn(100%,rgba(35, 134, 224, 0.12));
});
.keyframes(odds-up-tick,{
  .odds-fn(0%,rgba(255, 68, 68, .12));
  .odds-fn(30%,rgba(255, 68, 68, .8));
  .odds-fn(100%,rgba(255, 68, 68, .12));
});
.keyframes(odds-down-tick,{
  .odds-fn(0%,rgba(35, 134, 224, .12));
  .odds-fn(50%,rgba(35, 134, 224, .8));
  .odds-fn(100%,rgba(35, 134, 224, .12));
});
.keyframes(tick-s,{
  0%{
    opacity: 0;
  }
  40%{
    opacity: 1;
  }
  60%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
});
.tick-s{
  &::before{
    .animation(tick-s,1s,0,infinite);
    content: "'";
  }
}

.picker-box{
  border: 1px solid @color-t4;
  display: inline-flex;
  align-items: center;
  line-height: 30px;
  flex-wrap: wrap;
  & .text{
    padding: 0 0 0 12px;
  }
}
@media screen and (max-width: 1600px) {
  .content-1600 {
    margin: 0 14px;
  }
}
@media screen and (max-width: 1200px) {
  .content-1200 {
    margin: 0 14px;
  }
}
@media screen and (max-width: 996px) {
  .content-996 {
    margin: 0 14px;
  }
}

@media screen and (max-width: 800px) {
  .content-800 {
    margin: 0 14px;
  }
}
.ant-select-dropdown{
    .ant-select-item-option-selected{
      .ant-select-item-option-content{
        div{
          p{
            &:first-of-type{
              position: relative;
              &::after{
                content: '✓';
                position: absolute;
                top: 0;
                right: 0;
                width: 14px;
                height: 14px;
                color: #6957f4;
              }
            }
          }
        }
      }
      .ant-select-item-option-state{
        display: none;
      }
    }
    .rc-virtual-list-holder-inner{
      max-width: 300px;
    }
}

// 1行文本的省略
.one-line {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}


.select-label{
  border: 1px solid #E5E6EB;
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 12px;
  border-radius: 4px;
  & .label{
    color: var(--crm-ui-color-text-tertiary);
    white-space: nowrap;
    // margin-top: 2px;
    font-size: 14px;
  }
  &:hover{
    border-color: #4096ff;
  }
  .ant-select{
    .ant-select-selection-item{
      text-align: left;
    }
  }
}

.w-200 {
  width: 200px;
}
.w-450 {
  width: 450px;
}

.h-450 {
  height: 450px;
}
// resetUI

.client-page{
  .crm-ui-table-content{
    table{
      .crm-ui-table-tbody{
          z-index: 1;
          &:deep(.crm-ui-table-expanded-row){
          z-index: 2;
          .crm-ui-table-expanded-row-fixed{
            margin: -12px -8px -12px -2px;
            &:deep(.crm-ui-table-wrapper){
              z-index: 3;
              .crm-ui-spin-container{
                z-index: 4;
                .crm-ui-table{
                  margin-inline: 0px -8px !important;
                  .crm-ui-table-cell{
                    // &:nth-child(2){
                      // width: 84px;
                      // background: transparent;
                      // &::after{
                      //   box-shadow: none;
                      // }
                    // }
                    &:last-of-type{
                      background: transparent;
                      &::after{
                        box-shadow: none;
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
