/*
* 公共样式文件
*/

/* 定义滚动条的宽度 */
::-webkit-scrollbar{
    width: 8px;
}
/* 定义横向滚动条的高度 */
::-webkit-scrollbar:horizontal {
  height: 10px;
}
/* 滚动条的滑轨背景色 */
::-webkit-scrollbar-track{
    background-color: #f1f1f1;
}
::-webkit-scrollbar-track:horizontal{
    background-color: #f1f1f1;
}
/* 滚动条滚动轨迹背景 */
::-webkit-scrollbar-thumb{
    height: 8px;
    background-color: #c1c1c1;
    -webkit-border-radius: 6px;
}
::-webkit-scrollbar-thumb:horizontal{
    height: 10px;
    background-color: #c1c1c1;
    -webkit-border-radius: 6px;
}
/* 鼠标滑过滚动条背景色 */
::-webkit-scrollbar-thumb:hover{
  background-color: #a9a9a9;
}


body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, li, a, p, h1, h2, h3, h4,h5, h6, i, b, textarea, button, input, select, figure, figcaption {
  padding: 0;
  margin: 0;
  list-style: none;
  font-style: normal;
  text-decoration: none;
  border: none;
  font-family: "Microsoft YaHei","微软雅黑",Arial,"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB",sans-serif;
  -webkit-tap-highlight-color:transparent;
  -webkit-font-smoothing: antialiased;
  &:focus {
    outline: none;
  }
}
html,body{
  height: 100%;
  width: 100%;
  color: $color-text-regular;
  background-color: $bg;
  overflow: hidden;
  font-size: $text-font-size;
}

/* 左浮动 */
.left{
  float: left;
}

/* 右浮动 */
.right{
  float: right;
}

/* Dialog弹框取消蒙版效果 */
.v-modal {
  //display: none;
  background:rgba(0,0,0,1);
  opacity: 0.1;
}

// 侧滑入的表单面板演示
@media screen and (min-width: $screen-max-width) {
  .slide-form-panel {
    right: calc((100% - #{$screen-max-width}) / 2) !important;
  }
}
.slide-form-panel {
  position: fixed;
  right: 0px;
  top: $header-height;
  z-index: 100;
  width: 900px;
  height: calc(100% - #{$header-height});
  background: $background-color;
  box-shadow: -2px 0 10px 0 #888888;
  .form-panel-title {
    position: relative;
    border-bottom: 1px solid $table-split-line-color;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    .form-panel-title-desc {
      position: relative;
      width: calc(100% - 50px);
      height: 100%;
      .form-panel-title-desc-text {
        position: absolute;
        width: auto;
        height: 100%;
        left: 20px;
        display: flex;
        align-items: center;
        color: $color-text-primary;
        font-size: $title-font-size;
        font-weight: bold;
      }
      .form-panel-title-desc-button {
        position: absolute;
        width: auto;
        height: 100%;
        right: 0px;
        display: flex;
        align-items: center;
        .plain-button {
          height: 100%;
          padding: 0px 12px;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          font-size: $text-font-size;
          .plain-button-icon {
            color: #999;
            .font_family {
              font-size: 16px !important;
            }
          }
          .plain-button-text {
            margin-left: 3px;
            color: #666;
          }
          &:hover {
            background-color: #EEEEEE;
            .plain-button-icon {
              color: #666;
            }
            .plain-button-text {
              color: #333;
            }
          }
        }
        .el-icon-arrow-down {
          margin-left: 5px;
        }
      }
    }
    .form-panel-title-close {
      position: relative;
      width: 49px;
      height: 100%;
      border-left: 1px solid $table-split-line-color;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
    }
    .form-panel-title-close:hover {
      color: $button-close-hover-color;
    }
  }
  .form-panel-content-wrapper {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 0 15px;
    height: calc(100% - 60px);
    overflow: hidden auto;
    & > .el-form {
      margin-top: 10px;
      padding-top: 5px;
      background-color: $white-color;
      border-top: 1px solid $form-split-line-color;
      border-left: 1px solid $form-split-line-color;
      border-right: 1px solid $form-split-line-color;
      overflow-x: hidden;
      .el-form-item {
        margin-bottom: 0px;
        padding-right: 15px;
        //border-bottom: 1px solid $form-split-line-color;
        .el-form-item__label, .el-form-item__content {
          line-height: 40px;
          color: $color-text-secondary;
          font-size: $text-font-size !important;
        }
      }
      .el-form-item:after{
        content:"";
        width:10000px;
        height:0;
        border-bottom: 1px solid $form-split-line-color;
      }
      .el-input, .el-select, .el-autocomplete {
        width: 100%;
      }
      .el-input__inner, .el-textarea__inner {
        border: 1px solid transparent;
        -webkit-transition: none;
        transition: none;
      }
      .el-input__inner:hover, .el-textarea__inner:hover {
        border: 1px solid $table-split-line-color;
      }

      .el-input {
        .el-select__caret {
          visibility: hidden;
        }
      }

      .el-input:hover {
        .el-select__caret {
          visibility: visible;
        }
      }
    }
    & > .el-form.el-form--inline {
      border-bottom: 1px solid $form-split-line-color;
      padding-left: 10px;
      .el-form-item:after{
        content:"";
        width:0px;
        height:0;
        border-bottom: 0px solid $form-split-line-color;
      }
    }
    & > .el-table {
      margin-top: 10px;
    }
  }
}
.slide-fade-form-panel-enter-active {
  transition: all .3s linear;
}
.slide-fade-form-panel-leave-active {
  transition: all .3s linear;
}
.slide-fade-form-panel-enter, .slide-fade-form-panel-leave-to {
  transform: translateX(100%);
  opacity: 0;
}

/* 页面容器布局、样式 */
.full-size {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  .main-header {
    position: relative;
    width: 100%;
    height: 40px;
  }
  .main-content {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    .main-content-table-wrapper {
      position: relative;
      width: calc(100% - 2px);
      height: calc(100% - 42px);
      border : 1px solid #E4E4E4;
      border-radius: 2px;
      .el-table {
        height: 100%;
        display: flex;
        flex-direction: column;
      }
      .el-table__body-wrapper {
        flex: auto;
        overflow-y: auto !important;
      }
    }
    .main-content-page {
      position: relative;
      width: 100%;
      height: 32px;
      padding-top: 10px;
    }
  }
  .main-tree {
    position: relative;
    width: 260px;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-right: 1px solid $table-split-line-color;
    overflow: auto;
    display: inline-block;
    background-color: $white-color;
    .btn-trigger {
      display: inline-block;
      margin-left: 3px;
      width: 12px;
      height: 12px;
      line-height: 12px;
      border: 1px solid #CCCCCC;
      border-radius: 50%;
      color: #CCCCCC;
      text-align: center;
      i {
        font-size: 12px;
        color: #CCCCCC;
      }
    }
    .el-tree-node > .el-tree-node__children {
      overflow: visible !important;
    }
  }
  .main-text {
    position: relative;
    width: calc(100% - 285px);
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    display: inline-block;
  }
}

/* 卡片公共样式 */
.el-card {
  position: relative;
  width: 100%;
  .card-header {
    position: relative;
    width: 100%;
    height: 39px;
    display: flex;
    border-bottom: 1px solid $form-split-line-color;
    .card-header-name {
      position: relative;
      width: 50%;
      height: 100%;
      font-size: $title-font-size;
      color: $color-text-primary;
      font-weight: bold;
    }
    .card-header-button {
      position: relative;
      width: 50%;
      height: 100%;
      text-align: right;
    }
  }
  .card-con {
    position: relative;
    width: 100%;
  }
}

/* 弹出框公用样式 */
.el-dialog {
  .el-dialog__header {
    position: relative;
    width: calc(100% - 30px);
    height: 42px;
    border-bottom: 1px solid $table-split-line-color;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    background-color: $white-color;

    .custom-el-dialog-header-title {
      display: flex;
      height: 100%;
      width: calc(100% - 35px);
      justify-content: space-between;
      align-items: center;
      span:first-child {
      }
      .plain-button {
        height: 100%;
        padding: 0px 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: $text-font-size;
        .plain-button-icon {
          color: #999;
          .font_family {
            font-size: 16px !important;
          }
        }
        .plain-button-text {
          margin-left: 3px;
          color: #666;
        }
        &:hover {
          background-color: #EEEEEE;
          .plain-button-icon {
            color: #666;
          }
          .plain-button-text {
            color: #333;
          }
        }
      }

    }

    .el-dialog__title {
      font-size: $title-font-size;
      font-weight: bold;
      line-height: normal;
      color: $color-text-regular;
    }
    .el-dialog__headerbtn {
      border-left: 1px solid $table-split-line-color;
      padding-left: 10px;
      position: absolute;
      right: 12px;
      top: 0;
      height: 100%;
      display: flex;
      align-items: center;
      .el-dialog__close {
        color: $color-text-regular;
        font-size: 20px;
        font-weight: 400;
        line-height: normal;
      }
      .el-dialog__close:hover {
        color: $button-close-hover-color;
      }
    }
  }
  .el-dialog__body {
     //position: relative;
     //width: 100%;
     //height: 100%;
     //padding: 10px;
   }
}
.el-table {
  height: 100%;
  td, th.is-leaf {
    border-bottom: 1px solid #f4f4f4 !important;
  }
}
.el-table__body-wrapper {
  height: calc(100% - 42px);
  overflow-y: auto !important;
}
.el-table.no-table-header {
  .el-table__body-wrapper {
    height: calc(100%);
    overflow-y: auto !important;
  }
}
/** 自定义图片按钮增间距 */
.el-button [class*=font_family] + span {
  margin-left: 5px;
}
/** 按钮图标大小定义 */
.el-button--mini .font_family {
  font-size: 12px !important;
}

.fixed-header {
  height: 50px;
  line-height: 50px;
  width: 100%;
  top: -10px;
  right: 0;
  z-index: 99;
  position: absolute;
  background: $white-color;
  box-shadow: 2px 1px 5px rgba(0,0,0,0.15);
}

.CodeMirror {
  border: 1px solid $table-split-line-color;
  height: calc(100% - 45px) !important;
  line-height: 30px;
  font-size: 13px;
  color: #666 !important;
}

.CodeMirror-scroll {
  height: 100% !important;
  overflow-y: hidden;
  overflow-x: auto;
}

.mark-header {
  background: #1fa655;
}
.mark-header1 {
  background: #2C97DD;
}

.cell-error-color {
  color: #F05870;
}

.g2-slider {
  width: calc(100% - 40px);
  padding: 0 20px;
  .el-slider__button {
    width: 0px;
    height: 0px;
    border-top: 0px solid #1E89EB;
    border-left: 0px solid #1E89EB;
    border-bottom: 10px solid #1E89EB;
    border-right: 10px solid transparent;
    border-radius: 0%;
  }
  .el-slider__button-wrapper {
    transform: translateX(-35%);
    top: -6px;
  }
}

.media-popper {
  min-width: 30px  !important;
  padding: 5px !important;
}

.avatar-popper {
  padding: 10px 0px 10px 0px !important;
}

.media-dialog {
  .el-dialog__body {
    padding: 0px 0px;
  }
}
.notify-dialog {
  .el-dialog__body {
    padding: 0px 0px;
  }
  .el-dialog {
    margin-left: 45%;
  }
}

.system-notify-tabls {
  .el-tabs--left .el-tabs__active-bar.is-left {
    height: 58px !important;
  }
  .el-tabs__item {
    height: 58px;
    border-bottom: 1px solid #EEEEEE;
    padding: 10px 50px 0px 15px;
  }
  .el-tabs--left .el-tabs__item.is-left {

    text-align: left !important;
  }
  .el-tabs__item:hover {
    color: #333333 !important;
  }
  .el-tabs__item.is-active {
    background: #edf9ff;
    color: #333333 !important;
  }
  height: 620px;
  .tabls-content {
    padding: 18px;
    height: 100%;
    .tabls-top {
      height: 150px;
    }
    .tabls-bottom {
      line-height: 20px;
      height: calc(100% - 150px);
      overflow: auto;
      li {
        min-height: 60px;
        border-bottom: 1px solid #EEEEEE;
        line-height: 20px
      }
      .title {
        font-size: 13px;
        color: #333333;
        padding-top: 12px
      }
      .title-desc {
        font-size: 12px;
        color: #999999;
      }
    }
  }
}
.sacebass{
  .el-submenu .el-menu-item {
    height: 38px !important;
    line-height: 38px !important;
  }
  .el-menu-item {
    height: 40px !important;
    line-height: 40px !important;
    font-size: $text-font-size !important;
    &:hover {
      background-color: #F0FAFF !important;
    }
    // color: $menu-text-color !important;
    color: #4a4a4a !important;
  }
  .el-submenu__title {
    height: 40px !important;
    line-height: 40px !important;
    width: 200px !important;
    &:hover {
      background-color: #F0FAFF;
      // background-color: $menu-hover-color !important;
    }
    // color: $menu-text-color !important;
    color: #4a4a4a;
  }
  .el-menu-item.is-active {
    background-color: #F0FAFF !important;
    padding-left: 16px !important;
    border-left: 4px solid #F0FAFF !important;
    color: #4a4a4a !important;
  }
  .el-submenu .el-menu-item.is-active{
    background-color: #F0FAFF !important;
    padding-left: 36px !important;
    color: #4a4a4a !important;
  }

  .el-scrollbar__wrap {
    overflow: hidden scroll !important;
  }
  .nav-scroll {
    position: relative;
    background-color: #F0FAFF;
    width: $menu-width;
    height: 100%;
    float: left;
    padding-top: 15px;
    & .el-menu {
      background-color: #FFFFFF;
      border-right: none !important;
    }
  }
}
