:root{
  --el-color-primary: #EB3F57;
}

//全局样式
html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  .MyHome {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    @include font_black();
    .view {
      position: relative;
      overflow: hidden;
      .main {
        height: 100%;
        overflow: hidden;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        @include bg_gray_main();
        >#container {
          width: 100%;
          height: 100%;
        }
        >.window{
          height: 100%;
          padding: 10px;
          box-sizing: border-box;
          >.views{
            box-sizing: border-box;
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            overflow-y: auto;
          }
        }
      }
    }
  }
}

//修改element样式
.crm_input_basis.el-input__inner{
  height: 30px;
}
.crm_tab.el-table th > .cell{
  @include font_black();
  font-weight: bold;
}

//表格颜色
.crm_tab.el-table th.is-leaf {
  background-color: #F2F2F2;
}

.crm_tab_header.el-table th > .cell{
  @include font_black();
  font-weight: bold;
}

.crm_tab.el-table thead.is-group th{
  background-color: #F2F2F2;
}

//黑色主题表格
.crm_tab_black.crm_tab.el-table th.is-leaf{
  background-color: #6B7188;
}
.crm_tab_black.crm_tab.el-table th > .cell{
  color: #ffffff;
  font-weight: 400;
}
// // .crm_tab_black.el-table th, .el-table tr{

// // }
.crm_tab_black.el-table, .crm_tab_black .el-table__expanded-cell {
  background-color: transparent;
}
.crm_tab_black.el-table .el-table__row tr,.crm_tab_black.el-table .el-table__row td{
  background-color: #ffffff !important;
}
.crm_tab_black.el-table th, .crm_tab_black.el-table tr{
  background-color: transparent;
}
.crm_tab_black.el-tabl .el-table--border::after, .crm_tab_black.el-tabl .el-table--group::after, .crm_tab_black.el-table::before{
  background-color: transparent;
}
.crm_tab_black.crm_tab.el-table .el-table__body{
  // border-vertical-spacing: 10px;
  -webkit-border-vertical-spacing: 10px;  // 垂直间距
}
.crm_tab_black.el-table td, .crm_tab_black.el-table th.is-leaf {
  border-bottom: 1px solid #DEDEDE;
  border-top: 1px solid #DEDEDE;
}
.crm_tab_black.el-table .bor-l{
  border-left: 1px solid #DEDEDE;
  border-radius: 4px 0 0 4px;
}
.crm_tab_black.el-table .bor-r{
  border-right: 1px solid #DEDEDE;
  border-radius: 0 4px 4px 0;
}

//下拉icon
.crm_select_icon.el-select .el-input .el-select__caret{
  @include font_black();
  font-weight: bold;
}
.crm_select_icon_w.el-select .el-input .el-select__caret{
  @include font_white();
  font-weight: bold;
}
.crm_select_icon.el-cascader .el-input .el-input__icon{
  @include font_black();
  font-weight: bold;
}

.crm_select_icon_tran.el-select .el-input .el-select__caret{
  background-color: transparent;
  font-weight: bold;
}
.crm_select_icon_tran.el-select .el-input__inner{
  background-color: transparent;
  border: none;
  @include font_red_icon_1();
  font-weight: bold;
  font-size: 16px;
}
.crm_select_icon_tran.el-select .el-input .el-select__caret {
  @include font_black();
}

//提示
.el-popover{
  max-width: 190px;
}
.infoPopover.el-popover {
  max-width: 450px !important;
  max-height: calc(100% - 80px);
  overflow: hidden;
  overflow-y: auto;
  .news-page {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: auto;
    padding-top: 10px;
    .newsPage:hover{
      @include bg_gray_main();
    }
    .newsPage.active{
      @include bg_gray_main();
    }
    .newsPage {
      border-bottom: 1px solid;
      text-align: left;
      padding-right: 10px;
      padding-top: 20px;
      padding-left: 10px;
      cursor: pointer;
      @include border_gray_4();
      .news-title {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        .tit-l{
          display: inline-block;
          width: 300px;
          font-weight: bold;
        }
        .tit-r{
          font-weight: bold;
          i{
            margin-right: 5px;
            font-weight: bold;
          }
        }
      }
      .readActive{
        opacity: 0.5;
      }
      .news-status{
        margin-bottom: 15px;
        font-weight: bold;
        i{
          font-weight: bold;
          font-size: 16px;
          margin-right: 5px;
        }
      }
      .news-status.red{
        @include font_red_icon_1();
      }
      .news-status.green{
        @include font_green_icon_1();
      }
      .news-content{
        margin-bottom: 15px;
        line-height: 1.5;
      }
    }
  }
  .noMore{
    text-align: center;
    width: 100%;
    height: 50px;
    line-height: 50px;
    @include bg_gray_main();
    cursor: pointer;
  }
}

//大图展示关闭
.el-image{
  .el-icon-circle-close{
    @include font_white();
  }
}

//圆角
.crm-border-radius{
  border-radius: 2px;
}

//搜索块
.crm_search {
  .el-form{
    display: flex;
    flex-wrap: wrap;
  }
  .crm_search_down {
    width: 200px;
  }
  .crm_date_pick{
    top: 1px;
  }
}

//title中的下拉
.crm_search_down_tit{
  width: 160px;
  .el-input__inner{
    border-radius: 2px;
  }
  .el-input.is-focus .el-input__inner,.el-input__inner:focus{
    @include border_white();
  }
}

//日期选择/开始结束
.crm_date_pick.el-input__inner {
  width: 250px !important;
}

//分页
.crm_pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-bottom: 10px;
  .crm_page_total {
    line-height: 32px;
    span {
      margin: 0 3px;
      font-size: 14px;
      color: #929292;
    }
  }
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  word-break: break-word!important;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

//小手
.crm-cursor {
  cursor: pointer;
  user-select: none;
}

//字体按钮
.crm-font-btn {
  cursor: pointer;
  user-select: none;
  color: rgba(64, 123, 158, 1);
}

.crm-font-btn:hover {
  color: rgba(64, 123, 158, 0.8);
}

//一行，...
.crm-one-font {
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

//2行，...(多行)
.crm-tow-font {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

//黑底title条
.crm-title-box{
  @include bg_gray_second();
  @include font_white();
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 2px;
  padding: 0 20px;
  .tit {
    font-size: 14px;
    font-weight: bold;
    @include font_white();
  }
}

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

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 6px;
  @include bg_main();
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  /*border-radius: 10px;*/
  background: #ededed;
}

//滑动
.slide-right-enter-active,
.slide-right-leave-active {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0, 0);
  transition: all .35s .1s linear;
}

.slide-right-enter {
  position: absolute;
  transform: translate(-100%, 0);
}

.slide-right-leave-active {
  position: absolute;
  transform: translate(100%, 0);
}

.slideinup-enter-active,
.slideinup-leave-active {
  opacity: .5;
  position: absolute;
  transform: translate(0, 0);
  transition: all .35s .1s linear;
}

.slideinup-enter {
  opacity: 0;
  position: absolute;
  transform: translate(0, -100%);
}

.slideinup-leave-active {
  opacity: 0;
  position: absolute;
  transform: translate(0, 100%);
}

.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}

//dialog
.dialog_header_w {
  width: 650px;
  .el-dialog__header {
    i{
      font-weight: bold;
      font-size: 18px;
    }
  }
  .el-dialog__body{
    text-align: center;
  }
  .dialog-footer {
    margin-top: 20px;
    .el-button{
      min-width: 100px;
    }
  }
}

.dialog_header_b {
  width: 500px;
  .el-dialog__header {
    @include bg_gray_6();
    @include font_white();
    font-weight: bold;
    font-size: 14px;
    .el-dialog__title {
      @include font_white();
    }
  }
  .dialog-footer {
    margin-top: 20px;
  }
}


//开关
.crm_switch .el-switch__label {
  position: absolute;
  display: none;
  max-width: 25px;
  overflow: hidden;
  color: #FFFFFF!important;
}
.crm_switch.crm_switch_width .el-switch__label {
  position: absolute;
  display: none;
  max-width: 50px;
  overflow: hidden;
  color: #FFFFFF!important;
}
/*打开时文字位置设置*/
.crm_switch .el-switch__label--right {
  z-index: 1;
  left: -3px;
}
/*关闭时文字位置设置*/
.crm_switch .el-switch__label--left {
  z-index: 1;
  right: 0;
}
/*显示文字*/
.crm_switch .el-switch__label.is-active {
  display: block;
}
.crm_switch.el-switch .el-switch__core {
  width: 50px !important;
  overflow: hidden;
}
.crm_switch.crm_switch_width.el-switch .el-switch__core {
  width: 75px !important;
  overflow: hidden;
}
.crm_switch.el-switch.is-checked .el-switch__core::after{
  z-index: 2;
}

//消息提示框样式
.el-message.crm_message {
  padding: 0;
  border: none;
  height: 40px;
  line-height: 40px;
  .el-message__icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    color: #ffffff;
  }
  .el-message__content {
    margin-right: 10px;
    width: calc(100% - 40px);
    text-align: center;
  }
}

//成功
.el-message.crm_message.crm_msg_suc {
  .el-message__icon {
    background-color: #45CE61;
  }
  .el-message__content {
    color: #45CE61;
  }
}

//失败
.el-message.crm_message.crm_msg_err {
  .el-message__icon {
    background-color: #EB3F57;
  }
  .el-message__content {
    color: #EB3F57;
  }
}

//警告
.el-message.crm_message.crm_msg_war {
  .el-message__icon {
    background-color: #EB3F57;
  }
  .el-message__content {
    color: #EB3F57;
  }
}

.animate__fadeInUp {

}

// 消息提示框
.crm_message_box.el-message-box {
  width: 480px;
  height: auto;
  min-height: 200px;
  text-align: center;
  box-shadow: 0 6px 20px 0 rgba(201, 193, 193, .5);
  border-radius: 4px;
  .el-message-box__header {
    border-bottom: 1px solid rgba(226, 226, 226, 1);
    .el-message-box__title {
      line-height: 20px;
      color: rgba(0, 0, 0, 1);
      font-size: 16px;
    }
    .el-message-box__headerbtn {
      display: none;
    }
  }
  .el-message-box__content {
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 16px;
    color: rgba(102, 102, 102, 1);
  }
  .el-message-box__btns {
    margin-bottom: 10px;
    text-align: center;
    .el-button {
      width: 100px;
      height: 36px;
      font-size: 14px;
    }
  }
}

//遮罩
.crm_verified_info_mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 48, 67, 0.65);
  z-index: 89;
}

//表格加载
.el-loading-mask {
  .el-icon-loading{
    font-size: 28px;
  }
}

//状态颜色
.crm_state_blue {
  background-color: #368FEC;
}
.crm_state_green {
  background-color: #87D068;
}
.crm_state_gray {
  background-color: #A1A1A1;
}
.crm_state_red {
  background-color: #EB3F57;
}

//去左边框
.crm-border-left-no{
  border-left: none!important;
  .el-input__inner, .el-button{
    border-left: none;
  }
}

//去圆角
.crm-border-radius-no{
  border-radius: 0!important;
  .el-input__inner, .el-button{
    border-radius: 0;
  }
}

//
.el-dropdown__popper.el-popper{
  width: max-content;
}

//侧边弹出窗
#Drawer.InfoBox {
  width: 450px;
  height: 100%;
  padding-bottom: 15px;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  box-shadow: 0 3px 5px 0 rgba(49, 49, 49, 0.35);
  position: fixed;
  background-color: #FFFFFF;
  z-index: 100;
  overflow: hidden;
  overflow-y: auto;
  top: 0;
  right: -455px;
  -webkit-transition: all 0.6s;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  transition: all 0.6s;

  .header {
    text-align: left;
    height: 25px;
    line-height: 25px;
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    @include bg_gray_main();
    .title {
      font-weight: bold;
    }
    i.el-icon-close {
      text-align: right !important;
      font-weight: bold;
      margin-right: 7px;
    }
  }
  .btn {
    display: inline-block;
    padding: 10px;
    @include bg_red();
    color: #FFFFFF;
    border-radius: 2px;
    text-align: center;
    min-width: 120px;
    margin: 25px 0;
  }
  .channel{
    text-align: left!important;
    .btn {
      display: inline;
      padding: 10px;
      background-color: #368FEC;
      color: #FFFFFF;
      border-radius: 2px;
      text-align: center;
      min-width: 120px;
      margin: 25px 0;
    }
  }
  .channel-tit{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    background-color: #F2F2F2;
    padding: 0 15px;
    box-sizing: border-box;
    .add{
      border: 1px dashed #368FEC;
      color: #368FEC;
      line-height: 20px;
      display: inline-block;
      width: 20px;
      height: 20px;
      font-weight: bold;
      i{
        font-weight: bold;
        font-size: 12px;
      }
    }
  }
  .prompt{
    p{
      line-height: 1.7;
      font-size: 12px;
    }

  }
  .crm_label_top{
    display: flex;
    justify-content: space-between;
    .title{
      font-weight: bold;
      font-size: 14px;
    }
    .des{
      font-size: 12px;
      .btn-font{
        font-weight: bold;
        text-decoration: underline;
      }
    }
  }
  .QrCode{
    display: inline-block;
    i{
      font-size: 48px;
      margin: 15px 10px;
    }
    img{
      width: 100px;
      height: 100px;
      border: 8px solid;
      @include border_gray();
    }
  }
  .QrCodeblockchain{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    .btn{
      line-height: 1.5;
    }
    img{
      width: 100%;
    }
    img.el-image-viewer__img{
      width: 700px;
    }
    a{
      color: #ffffff;
    }
  }
  .bankCardUpdate{
    .updatePrompt{
      line-height: 1.8;
      i{
        margin-right: 10px;
      }
    }
  }
  .avatar-uploader {
    border: 1px dashed;
    @include border_gray_6();
    margin: 0;
    width: 200px;
    height: 110px;
    line-height: 80px;
    display: inline-block;
    overflow: hidden;
    .el-upload {
      width: 100%;
    }
    .imgSize{
      width: 100%;
      line-height: 20px;
      position: relative;
      bottom: 25px;
      font-size: 12px;
      @include font_gray_2();
    }
    .el-icon-picture-outline {
      font-size: 26px;
      @include font_gray_2();
    }
  }
  .avatar-uploaderOther.fileOther {
    display: inline-block;
    margin-bottom: 20px;
    .el-upload{
      display: inline-block;
    }
  }
  #files{
    width: 100%;
    border: 1px dashed;
    @include border_gray_6();
    margin-bottom: 20px;
    display: flex;
    .options{
      flex: 1;
      padding: 8px;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-content: center;
      align-items: center;
      .el-button{
        min-width: 100px;
        max-height: 30px;
        padding: 0;
        line-height: 30px;
        span,a{
          display: inline-block;
          height: 100%;
          width: 100%;
          @include font_black();
        }
      }
    }
  }
  .avatar-uploaderOther.fileOthers {
    display: block;
    width: 100px;
    height: 60px;
    border: 1px dashed;
    @include border_gray_6();
    .el-upload{
      display: inline-block;
      width: 100%;
      height: 100%;
    }
  }
  .AgencyAgreement{
    text-decoration: underline;
    @include font_blue_btn_1();
  }
}
#Drawer.InfoBox.active {
  right: 0;
}
#Drawer.InfoBox {
  .avatar-uploader {
    .el-upload {
      width: 100%;
      height: 100%;
    }
  }
  .el-form-item__label {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 15px;
  }
  .el-form {
    border-top: 1px solid #E4E4E4;
    padding: 10px 20px;
    text-align: left;
    position: relative;
    .el-form-item {
      margin-bottom: 5px;
    }
  }
  .el-select {
    width: 100%;
  }
  .el-date-editor.el-input {
    width: 100%;
  }
  .el-upload {
    width: 100%;
  }
  .channel{
    .el-input__inner {
      text-align: left;
    }
  }
  .el-row{
    .el-form-item{
      margin: 5px;
    }
    .el-form-item__label {
      font-size: 12px;
      font-weight: bold;
      line-height: 1.5;
      margin-top: 15px;
    }
  }
  .el-table__expanded-cell {
    padding: 15px 40px;
  }
  .stateBtn{
    @include font_white();
    padding: 2px 4px;
    border-radius: 2px;
  }
  .stateBtn:hover{
    opacity: 0.8;
  }
}

.el-popper.el-cascader__dropdown{
  max-width: 1200px;
  width: auto;
  .el-cascader-panel{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .el-cascader-menu,.el-cascader-menu__wrap{
    width: 300px;
    height: 300px;
  }
}

//表头英文时按单词换行
.el-table thead th > .cell{
  word-break: break-word!important;
}


//自动换行的tabs
.crm_tabs{
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #E4E7ED;
  .crm_tabs_btn{
    margin: 0 10px;
    height: 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 40px;
    display: inline-block;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    position: relative;
  }
  .crm_tabs_btn:first-child{
    margin-left: 0;
  }
  .crm_tabs_btn:last-child{
    margin-right: 0;
  }
  .crm_tabs_btn.active{
    color: #EB3F57;
  }
  .crm_tabs_btn.active::after{
    content: '';
    width: 100%;
    height: 2px;
    background-color: #EB3F57;
    position: absolute;
    bottom: -2px;
    left: 0;
  }
}


@media screen and (max-width:768px) {
  .el-dialog__wrapper {
    .dialog_header_w {
      width: 80%;
    }
  }
}


.mb20{
  @include marBot (20px)
}
.mb30{
  @include marBot (30px)
}


// 统一 select 和 input 的宽度
.el-select,
.el-input,
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
  //min-width: 192px;
}

.el-select .el-input {
  width: 100%;
}

.el-input__inner,.el-input__wrapper {
  width: 100%;
}

.el-button{
  line-height: 1;
}
.el-button--primary {
  color: #fff;
  background-color: #eb3f57;
  border-color: #eb3f57
}

.el-button--primary:focus,.el-button--primary:hover {
  background-color: #ef6579;
  border-color: #ef6579;
  color: #fff
}

.el-button--primary.is-active,.el-button--primary:active {
  background-color: #d4394e;
  border-color: #d4394e;
  color: #fff
}

.el-button:active {
  color: #fff;
  border-color: #d4394e;
  outline: 0
}
.el-input {
  height: 40px;
}


.el-form-item--default .el-form-item__content {
  width: 100%;
  line-height: 40px;
  position: relative;
  font-size: 14px
}

.el-select__wrapper{
  height: 100%;
}
.el-select-dropdown__item{
  padding: 0 32px 0 20px;
  &.is-selected {
    //color: #eb3f57;
    font-weight: 700;
  }
}

.el-input{
  --el-input-focus-border-color: ;
}
.el-select__wrapper.is-focused{
  --focus-border-color: ;
}
.el-select{
  --el-select-input-focus-border-color: ;
}

.el-input-number{
  width: 100%;
  .el-input__inner{
    text-align: left!important;
    &::placeholder {
      text-align: left;
    }
  }
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
