@import "element-variables.scss";
@import "transition.scss";

html, body {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: Arial,"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",sans-serif;
  background-color: rgb(228,240,255);
  height: 100%;
  width: 100%;
}
div{
  word-break:break-all
}
.omit {
  /* 一行省略 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.el-message {
  white-space: pre-line;
}
.omit_2 {
  /*2行省略 */
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}

$header-height: 60px;

// 过滤组件长度
$filter-item-width: 250px;
// 范围选择过滤组件长度
$filter-item-range-width: 400px;
// 左侧过滤树组件每一项高度
$tree-node-height: 40px;
// 高级管理表单标题高度
$advanced-title-height: 50px;
$border-color: rgb(216, 220, 229);
$menuHover: rgba(255,255,255,0.3);
$menu-background-color: transparent;
$tabs-header-margin-bottom: 25px;
$tab-header-background-color: #F6F7F9;
$image-item-width: 65px;
$box-padding-size: 25px;
$table-header-row-height: 44px;
$table-row-height: 50px;
$--small-font-size-base: 12px !default;
$--medium-font-size-base: 14px !default;

/**
 * 弹窗样式，封装的layer的弹窗
 **/
body .layer-dialog .layui-layer-title{
  border-radius: 4px 4px 0px 0px;
  border:1px solid #01000000;
}

body .layer-dialog .layui-layer-setwin {color: #ffffff}

body .layer-dialog {
  border-radius: 4px;
  border:1px solid #01000000;
}

body .layer-dialog .layui-layer-content {
  padding: $box-padding-size;
}

body .layer-dialog.one_to_one_query .layui-layer-content {
  padding: 0px;
}

body .layer-dialog.layui-layer-iframe .layui-layer-content {
  padding: 0px!important;
}
/**
 * 左树右表弹窗样式
 */
body .layer-advance-dialog {
  border-radius: 4px;
  border:1px solid #01000000;
  background-color: #F8F8F8;
}

body .layer-advance-dialog .layui-layer-title{
  border-radius: 4px 4px 0px 0px;
  border:1px solid #01000000;
}

body .layer-advance-dialog .layui-layer-content {
  padding: 5px 15px;
}

/**
 * 全屏弹窗样式
 */
body .fullscreen-dialog {
  border-radius: 0px;
  border: none;
  background-color: #F8F8F8;
}

body .fullscreen-dialog .layui-layer-title {
  display: none;
}

body .fullscreen-dialog .layui-layer-setwin {
  display: none;
}

body .fullscreen-dialog .layui-layer-content {
  padding: 0px;
  height: 100vh!important;
}
.el-button--text,.el-button--text:hover,.el-cascader-node.in-active-path, .el-cascader-node.is-selectable.in-checked-path, .el-cascader-node.is-active{
  color: $--color-primary;
}
.lmp-project {
  .el-button--primary {
    background-color: $--color-primary;
    border-color:$--color-primary ;
  }
  .el-button--primary.is-plain {
    color: #0092FF;
    background: #e6f4ff;
    border-color: #99d3ff;
}
.el-button--primary.is-plain:hover, .el-button--primary.is-plain:focus {
  background: #0092FF;
  border-color: #0092FF;
  color: #FFFFFF;
}
  // .el-button.is-plain:hover, .el-button.is-plain:focus{
  //   background: #FFFFFF;
  //   border-color: $--color-primary;
  //   color: $--color-primary;
  // }
  .el-button--danger.is-plain:hover, .el-button--danger.is-plain:focus {
    background: #F56C6C;
    border-color: #F56C6C;
    color: #FFFFFF;
}
  .el-select-dropdown__item.selected{
    color: $--color-primary;
  }
  .el-select .el-input.is-focus .el-input__inner,.el-select .el-input__inner:focus,.el-input__inner:focus,.el-cascader .el-input.is-focus .el-input__inner,.el-cascader .el-input .el-input__inner:focus,.el-radio__inner:hover{
    border-color : $--color-primary;
  }
  .el-radio__input.is-checked .el-radio__inner {
    border-color: $--color-primary;
    background: $--color-primary;
}
  .el-main {
    padding: 0px;
  }
  .flex-box {
    flex-wrap: wrap;
  }
  .scrollbar_dropdown__wrap {
    overflow-x: hidden!important;
  }

  .icon-btn.el-button {
    font-size: 18px;
    padding: 5px 0px;
  }

  .default-padding-box {
    padding: $box-padding-size;
  }

  .padding-no-top {
    padding: 0px $box-padding-size $box-padding-size $box-padding-size;
  }

  .default-border {
    border: 1px solid $--border-color-base;
  }

  .default-border-left {
    border-left: 1px solid $--border-color-base;
  }

  .default-border-right {
    border-right: 1px solid $--border-color-base;
  }

  .default-border-top {
    border-top: 1px solid $--border-color-base;
  }

  .default-border-bottom {
    border-bottom: 1px solid $--border-color-base;
  }

  .page-close-box {
    position: absolute;
    // background: $--color-primary;
    height: 42px;
    width: 42px;
    right: -0;
    top:-0;
    text-align: center;
    cursor: pointer;
    img {
      position: absolute;
      right: 4px;
      top: 4px;
    }
    &::before{
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      right: 0;
      top: 0;
      border: 20px solid $--color-primary;
      border-color: $--color-primary $--color-primary transparent transparent;
    }
  }

  .el-button + .btn-import, .btn-import + .el-button {
    margin-left: 10px!important;
  }

   /**
   * 过滤组件样式
   **/
   .mask-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    z-index: 10;
  }

  .filter-box {
    position: relative;
    background-color: white;
    padding: $box-padding-size $box-padding-size 0px $box-padding-size;
    z-index: 20;
  }

  .advance-filter-box {
    padding-bottom: 25px;
  }

  .filter-item {
    width: $filter-item-width;
  }

  .cascader-item {
    width: 160px!important;
  }

  .is-range, .is-search {
    width: $filter-item-range-width;
  }

  .table-operation-box {
    align-self: flex-end;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .table-check-box {
    margin-right: 7px;
  }

  /**
   * 左侧树状组件的样式，用户高级管理表单以及用户管理表单
   **/
  .advanced-left-box {
    border-right: 1px solid $border-color;
    .el-tree-node__content {
      height: $tree-node-height;
    }

    .tree-node-item {
      height: $tree-node-height;
      line-height: $tree-node-height;
      width: 100%;

      .tree-node-menu {
        display: none;
        float: right;
        padding-right: 10px;
        color: red!important;
      }

      &:hover .tree-node-menu {
        display: block;
      }
    }

    .el-tree-node .el-button+.el-button {
      margin-left: 5px;
    }
  }
  /**
   * form表单输入组件宽度
   **/
  .full-width-input, .attribute-collapse {
    .el-select {
      width: 100%;
    }

    .el-input {
      width: 100%;
    }

    .el-cascader {
      width: 100%;
    }

    .el-date-editor {
      width: 100%;
    }

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

  .el-form-item.el-form-item--mini {
    min-height: 29px;
  }

  .el-form-item.el-form-item--small {
    min-height: 33px;
  }

  .el-form-item.el-form-item--medium {
    min-height: 37px;
  }

  .el-form-item.el-form-item--default {
    min-height: 41px;
  }

  .el-aside {
    overflow: visible;
  }

  .el-menu {
    border-right-width: 0px;
  }

  .sidebar-bg {
    box-shadow: 0 1px 4px rgba(0,21,41,.08)!important;
  }

  .sidebar-title {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0px 20px;
  }

  .sidebar-title-text {
    font-size: 18px;
    color: $--color-sidebar-title-text;
    padding-left: 15px;
  }

  @if global-variable-exists(--color-menu-item-active-text-color) {
    .el-menu:not(.el-menu--horizontal) .el-menu-item.is-active {
      color: $--color-menu-item-active-text-color!important;
    }

    .el-menu:not(.el-menu--horizontal) .el-submenu__title i {
      color: $--color-menu-item-active-text-color;
    }
  }

  @if global-variable-exists(--color-menu-item-active-background) {
    .el-menu:not(.el-menu--horizontal) .el-menu-item.is-active {
      @if global-variable-exists(--color-menu-item-active-background-to) {
        background: linear-gradient(to left, $--color-menu-item-active-background, $--color-menu-item-active-background-to);
      } @else {
        background: $--color-menu-item-active-background;
      }
    }
    .el-menu:not(.el-menu--horizontal) .el-menu-item:hover {
      @if global-variable-exists(--color-menu-item-active-background-to) {
        // background: linear-gradient(to left, $--color-menu-item-active-background, $--color-menu-item-active-background-to);
       color:$--color-primary;
      } @else {
        background: $--color-menu-item-active-background;
      }
    }
  }

  @if global-variable-exists(--color-submenu-background) {
    .left-menu .el-submenu .el-menu {
      background-color: $--color-submenu-background;
    }
  }

  /**
   * 多tab页表单，tab样式
   **/
  .el-tabs__header {
    margin: 0 0 20px;
  }
  /**
   * 表格表头背景色
   **/
  .el-container .table-header-gray, .has-gutter .gutter, .layui-layer  .table-header-gray {
    background-color: $tab-header-background-color;
  }

  /**
   * 操作按钮颜色
   **/
  .table-btn.delete {
    color: #F56C6C;
  }

  .table-btn.delete:hover {
    color: #F78989;
  }

  .table-btn.delete:disabled {
    color: #DCDFE6;
  }

  .table-btn.success {
    color: #67C23A;
  }

  .table-btn.success:hover {
    color: #85CE61;
  }

  .table-btn.success:disabled {
    color: #DCDFE6;
  }

  .table-btn.warning {
    color: #E6A23C;
  }

  .table-btn.warning:hover {
    color: #EBB563;
  }

  .table-btn.success:disabled {
    color: #DCDFE6;
  }

  /**
   * 图片上传以及显示样式
   **/
  .upload-image-item {
    font-size: 28px;
    color: #8c939d;
    width: $image-item-width;
    height: $image-item-width;
    text-align: center;
    display: block;

    .el-upload i {
      line-height: $image-item-width;
    }
  }

  .upload-image-multi {
    display: inline;
  }

  .upload-image-item .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .upload-image-item .el-upload:hover {
    border-color: #409eff;
  }

  .upload-image-show {
    width: $image-item-width;
    height: $image-item-width;
    display: inline;
  }

  .table-cell-image {
    width: $image-item-width;
    height: $image-item-width;
    line-height: $image-item-width;
    text-align: center;
    font-size: $image-item-width;
    color: #606266;
    margin: 0px 5px;
  }

  .upload-image-list .el-upload-list__item {
    width: $image-item-width;
    height: $image-item-width;
    line-height: $image-item-width;
  }

  .upload-image-item .el-upload-list--picture-card .el-upload-list__item {
    width: $image-item-width;
    height: $image-item-width;
  }

  .upload-image-item .el-upload.el-upload--text {
    width: $image-item-width;
    height: $image-item-width;
  }

  .upload-image-item .el-upload--picture-card {
    width: $image-item-width;
    height: $image-item-width;
    line-height: $image-item-width;
  }
  /**
   *
   **/
  $header-menu-height: 32px;

  .sidebar {
    height: 100%;
    background-color: $--color-menu-background;
    // overflow: hidden;
    box-shadow: 0px 1px 4px rgba(0,21,41,.08);
  }

  .header {
    display: flex;
    align-items: center;
    height: $header-height;
    background-color: white;
    position: relative;
  }

  .header .menu-column {
    margin-right: 20px;
    .el-menu-item.is-active {
      border-left: 0px solid #47ba5a;
    }
  }

  .header-menu {
    float: right;
    height: $header-menu-height;
    line-height: $header-menu-height;
    display: flex;
    justify-content: flex-end;
    flex-grow: 1
  }

  .header-img {
    width: $header-menu-height;
    height: $header-menu-height;
    border-radius: 50%;
    margin-left: 14px;
    float: right;
  }

  .el-menu--horizontal.el-menu {
    background-color: white;
  }

  .el-menu--horizontal > .el-menu-item {
    height: 40px;
    line-height: 40px;
  }

  .el-menu.el-menu--horizontal {
    border-bottom: none;
  }

  .user-dropdown {
    color: $--color-text-secondary;
    cursor: pointer;
    font-size: 12px;
  }
  .user-dropdown-item {
    font-size: 12px;
    color: $--color-text-primary;

    .el-badge {
      margin-top: -8px;
      margin-left: 10px;
      height: 20px;
    }
  }

  .hamburger-container {
    line-height: 70px;
    height: $header-height;
    float: left;
    padding: 0 10px;
  }


  .tree-select {
    .el-tree-node__content {
      height: 34px;
      line-height: 34px;
      padding-right: 10px;
    }
  }

  .tree-select.single-select-tree {
    .el-tree-node.is-current > .el-tree-node__content > .el-tree-node__label {
      color: $--color-primary;
      font-weight: 700;
    }
  }

  .operation-cell {
    color: #006CDC;
    cursor: pointer;
    text-decoration: underline;
  }

  .single-select-tree {
    min-width: 200px!important;
  }

  .base-card-header {
    display: flex;
    align-items: center;
    height: 50px;
    line-height: 50px;

    .header-title {
      font-size: 14px;
      font-weight: 500;
      color: #282828;
    }
  }

  .base-card-operation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
  }

  .el-card__header {
    padding: 0px 16px;
  }
  .el-card__body {
    padding: 16px;
  }

  .custom-cascader {
    width: 200px!important;
  }

  .no-scroll {
    overflow: hidden;
  }

  .custom-scroll .el-scrollbar__view {
    overflow: hidden!important;
  }

  .upload-img-del {
    position: absolute;
    height: 20px;
    width: 20px;
    line-height: 20px;
    font-size: 16px;
    top: 2px;
    right: 2px;
    color: #C0C4CC;
  }

  .upload-img-del:hover {
    color: #EF5E1C;
  }

  .input-label {
    display: inline-block;
    height: 29px;
    line-height: 28px;
  }

  .input-progress {
    height: 29px;
    display: flex;
    align-items: center;
  }

  .input-item {
    width: 100%!important;
  }

  .table-header-gray {
    background: rgba(237,237,237,1);
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0px;
    line-height: 28px;
  }

  .el-select--mini .el-input__inner {
    min-height: 28px;
  }

  .step-header {
    .title {
      font-size: 18px;
      height: 60px;
      line-height: 60px;
      flex-grow: 1;
      flex-shrink: 0;
      background: white;
      div {
        display: inline-block;
      }
      .header-logo {
        border-radius: 8px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        width: 40px;
        background: rgba(255,119,0,0.1);
        margin-right: 8px;
        font-size: 28px;
      }
      .logo {
        font-size: 20px;
        color: #FDA834;
        margin-right: 8px;;
        display: inline-block;
        padding-left: 0;
      }
    }
    .step {
      flex-grow: 0;
      flex-shrink: 0;
      padding: 0px 50px;
      background: white;
    }
    .operation {
      flex-grow: 1;
      flex-shrink: 0;
      background: white;
    }
  }

  .widget-item {
    position: relative;
    border: 1px dashed rgba(0,0,0,0);
  }
  .widget-item.active {
    border: 1px dashed $--color-primary-light-4;
    background: $--color-primary-light-9;
  }
}

.vxe-table--render-default.border--full .vxe-body--column {
  background-size: 1px 100%,100% 0px!important;
  border-bottom: 1px solid #e8eaec;
}

.vxe-table--render-default.border--inner .vxe-body--column {
  background-size: 0px 100%,100% 0px!important;
  border-bottom: 1px solid #e8eaec;
}

.third-party-dlg {
  display: flex;
  flex-direction: column;
}

.third-party-dlg .form-box {
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 50px;
}
.third-party-dlg .menu-box {
  flex-grow: 0;
  flex-shrink: 0;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #DDDEE0;
  border-radius: 7px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

.el-popper.preview-popper {
  display: none;
}

.ml20 {
  margin-left: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mt20 {
  margin-top: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.pl20 {
  padding-left: 20px;
}

.pr20 {
  padding-right: 20px;
}

.pt20 {
  padding-top: 20px;
}

.pb20 {
  padding-bottom: 20px;
}

.gutter-left {
  padding-left: 20px;
}

.gutter-right {
  padding-right: 20px;
}

.gutter-top {
  padding-top: 20px;
}

.gutter-bottom {
  padding-bottom: 20px;
}

.advance-box {
  display: flex;
  flex-direction: row !important;
  .header-title{
    font-weight: bold !important;
  }
  .module-node-item:hover{
    .module-node-menu{
      opacity: 1 !important;
    }
  }
  .module-node-menu{
    opacity: 0;
    transition: 0.3s;
    &>.el-button{
      margin-left: 4px;
    }
    img:nth-child(2){display: none;}
  }
  .el-tree-node__content{
    border-radius: 4px;
  }
  .is-current>.el-tree-node__content .module-node-menu{
    img:nth-child(1){display: none;}
    img:nth-child(2){display: inline;}
    i{
      color: $--color-primary;
    }
  }
  .el-card__header{
    padding-top: 16px;
    padding-bottom: 16px;
    // border-bottom: 1px solid #e8e8e8;
    border: 0;
    position: relative;
  }
  .el-aside{
    .el-card__header::after{
      content: '';
      display: block;
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: -1px;
      height: 1px;
      background-color: #e8e8e8;
    }
  }
  .base-card-header {
    height: auto !important;
    line-height: 1;
  }

  .is-current>.el-tree-node__content .tree-node-item,.is-current>.el-tree-node__content .text{
    color: $--color-primary;
  }

  .el-tree-node__expand-icon{
    color: #333333;
  }
  .el-tree-node__expand-icon.is-leaf{
    color: transparent;
  }
}

.el-tree-node__expand-icon{
  color: #333333;
}

.el-tabs__content {
  overflow: initial;
}
.el-radio-group{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.el-radio{
  vertical-align: middle;
  .el-radio__inner{
    width: 16px;
    height: 16px;
    vertical-align: middle;
  }
  &.is-checked .el-radio__label{
    color: $--color-primary;
  }
  .el-radio__inner::after{
    width: 8px;
    height: 8px;
  }
}
.el-form-item{
  margin-bottom: 16px;
}

.base-card-operation{
  .el-button.advance-icon-btn:hover, .el-button.advance-icon-btn:focus{
    border-color: #DCDFE6;
    background-color: white;
  }
}
.vxe-table--render-default .vxe-tree--node-btn{
  color: #333333 !important;
}
.vxe-table .vxe-body--row, .vxe-table .vxe-table .vxe-body--row td, .el-table td{
  color: #333333;
}
.vxe-table .vxe-header--row, .vxe-table th, .el-table th{
  height:  $table-header-row-height;
  padding: 0 !important;
  color: #333333 !important;
  .cell{
    color: #333333 !important;
    font-weight: bold !important;
  }
}
.vxe-table th .vxe-checkbox--icon{
  position: relative;
  top: -1px;
}
.vxe-table.vxe-table--render-default .vxe-table--border-line{
  border-width: 0px 0 1px 0;
}
.border-bottom-0 .vxe-table--border-line{
  border-bottom: 0 !important;
}
.vxe-table .vxe-cell--sort{
  height: 1.1em !important;
  top: -1px;
}
.vxe-table .vxe-cell--sort i{
  font-size: 12px;
  cursor: pointer;
}
.vxe-table .col--seq .vxe-cell--tree-node{
  padding-left: 0 !important;
}
.el-input-number input.el-input__inner{
  text-align: left;
}
.vxe-table.vxe-table--render-default{
  .is--indeterminate.vxe-cell--checkbox, .is--checked, .vxe-cell--checkbox:not(.is--disabled):hover{
    .vxe-checkbox--icon{
      color: $--color-primary !important;
    }
  }
}
.table-empty{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  img{
    width: 120px;
  }
  span{
    display: block;
    position: relative;
    top: -12px;
    color: #999999;
    line-height: 1;
  }
}
.el-input-number.number-center input{
  text-align: center !important;
}
.el-tabs .el-tabs__item.is-active{
  font-weight: bold !important;
}
.container-small, [class^="el-"][class*="small"]{
  font-size: $--small-font-size-base;
  font-weight: normal;
  .el-input input,.el-radio__label,.el-checkbox__label,.el-switch__label *,.el-upload-list__item,.el-upload__tip,.vxe-cell--label,.vxe-cell--title,.el-tabs__item,.el-breadcrumb,.el-pager li,.el-pagination__total,label,.el-table .cell,.user-dropdown,.el-select-dropdown__item,.el-cascader-node__label,.vxe-table--render-default.size--small,.el-tree-node__label,.el-dropdown-menu__item,.table-btn,.unified-font,.custom-label,.el-link span,.group-title,.el-radio-button__inner,.el-collapse-item__header{
    font-size: $--small-font-size-base;
    font-weight: normal;
  }
  .vxe-cell--title{
    font-weight: bold;
  }
  .base-card-header .header-title,.base-card-header .el-dropdown span{
    font-size: 14px;
  }
  .el-radio__label{
    padding-left: 4px;
    vertical-align: middle;
  }
  .el-radio-group{
    min-height: 32px;
  }
}
.container-medium, [class^="el-"][class*="medium"]{
  font-size: $--medium-font-size-base;
  font-weight: normal;
  .el-input input,.el-radio__label,.el-checkbox__label,.el-switch__label *,.el-upload-list__item,.el-upload__tip,.vxe-cell--label,.vxe-cell--title,.el-tabs__item,.el-breadcrumb,.el-pager li,.el-pagination__total,label,.el-table .cell,.user-dropdown,.el-select-dropdown__item,.el-cascader-node__label,.vxe-table--render-default.size--small,.el-tree-node__label,.el-dropdown-menu__item,.table-btn,.unified-font,.custom-label,.el-link span,.group-title,.el-radio-button__inner,.el-collapse-item__header{
    font-size: $--medium-font-size-base;
    font-weight: normal;
  }
  .vxe-cell--title{
    font-weight: bold;
  }
  .base-card-header .header-title,.base-card-header .el-dropdown span{
    font-size: 16px;
  }
  .el-radio__label{
    padding-left: 4px;
    vertical-align: middle;
  }
  .el-radio-group{
    min-height: 36px;
  }
}

.radio-table {
  display: block;
}

.el-message-box__content {
  max-height: 500px;
  word-break:break-all;
  overflow: auto;
}
