// @import "./common/var";

.znl-icon {
  color: #B3CFEB!important;
}
.znl-fromstyle {
  padding: 0 20px;
}
.znl-frombtns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  .fromsave {
    display: flex;
    align-items: center;
    .znl-from-content{
      &>div{
        display: flex;
        align-items: center;
      }
    }
    .el-button {
      margin-left: 5px!important;
      span {
          padding-left: 0px!important;
      }
    }
  }
  .el-button {
    padding-left: 10px;
    height: 22px;
    line-height: 14px;
    border: none;
    color: #555555;
    background-color: transparent;
    border-color: transparent;
    border-radius: 2px;
    &:hover {
      background-color: #F2F2F2;
      color: #555555;
      border: none;
    }
    span {
      position: relative;
      padding-left: 7px;
      color: rgba(51, 51, 51, 1);
    }
  }
  .el-dropdown {
      .el-button {
          span {
              padding-left: 3px;
          }
          &.znl-morebtn {
              padding-left: 0px;
              .znl-btn-more {
                  color: rgba(128, 128, 128, 1);
              }
          }
      }
  }
  .znl-line {
      margin: 0 3px;
  }
  .el-dropdown {
    &>div {
      display: flex;
      align-items: center;
      .znl-morebtn {
        span {
          height: 22px;
          line-height: 18px;
        }
      }
    }
  }
}

.znl-icon {
  color: #666;
}

.signal-page {
  .znl-grid {
    margin-bottom: 0;
  }
}

.znl-grid-component {
  height: 100%;
  background-color: #fff;
  &:last-child {
      margin-bottom: 0;
  }
  .znl-header {
    padding: 5px 15px 0 15px;
    height: 30px;
    line-height: 30px;
  }
  .znl-content {
      height: 100%;
  }
  .el-button+.el-button {
      margin-left: 0px;
  }
}

// 按钮组-更多
.el-dropdown-menu {
  font-size: 12px;
  .el-dropdown-menu__item {
    display: block;
    line-height: 25px;
    display: flex;
    align-items: center;
    .fa-icon {
      margin-right: 3px;
      color: #666;
      transform: scale(0.8);
    }
  }
}

// action-from下拉框
.el-select-dropdown {
  .el-scrollbar {
    .el-select-dropdown__wrap {
      margin-bottom: -8px!important;
      .el-scrollbar__view {
          padding: 0;
          .el-select-dropdown__item {
            margin: 0;
            background-color: #fff;
            &.selected {
              background-color: #ED9E00;
              &:hover {
                background-color: #ED9E00;
              }
            }
            &:hover {
              background-color: #F0F0F0;
            }
          }
        }
    }
  }
}

//loading
.el-loading-mask {
  background-color: rgba(0, 0, 0, 0);
    .el-loading-spinner {
      width: 220px;
      height: 60px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #333333;
      box-shadow: 2px 2px 10px;
      border-radius: 5px;
      .el-loading-text {
          color: #ee7700;
      }
      svg {
          circle {
              stroke: #ee7700;
          }
      }
    }
}

// ****************** 样式调整 **********************
.znl-grid-component{
  &.isActivity{
    height: auto;
  }
  &.animation{
    .znl-refresh-loading{
      animation: 1s rainbow infinite;
      background-color: #1BB934;
      color: #fff!important;
      border-radius: 50%!important;
    }
    &>.el-loading-mask{
      &>.el-loading-spinner{
        background-color: transparent;
        box-shadow: none;
        &>.circular{
          display: none;
        }
      }
    }
  }
  .pagination-slot{
    position: relative;
    min-width: 0!important;
    span{
      min-width: 0;
    }
    .jumper-span{
      position: relative;
      font-size: 12px!important;
      // padding-left: 21px;
      .current-index{
        font-size: 12px;
      }
      input{
        width: 24px;
        height: 16px;
        // position: absolute;
        right: 0;
        font-size: 12px;
        font-weight: 600;
        display: none;
        &:focus{
          outline: none;
        }
      }
      input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
          -webkit-appearance: none !important;
      }
      input[type="number"]{-moz-appearance:textfield;}
      }
    &:hover{
      input{
        display: block;
      }
      .jumper-span{
        padding-left: 0px;
      }
      .current-index{
        display: none;
      }
    }
  }
}
// 表格主体
.znl-content{
  display: flex;
  flex-direction: column;
  .isFieldsSearch {
    // 搜索栏
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    // 分隔线
    .lineSeparateOut {
      color: #ccc;
      float: right;
      margin: 0 3px;
      transform: scale(0.8)
    }
    .znl-line {
      color: rgba(128, 128, 128, 0.5);
      display: inline-block;
      height: 13px;
      width: 1px;
      background-color: rgba(128, 128, 128, 0.5);
      position: relative; // top: 2px;
      margin: 0 0px 0 0px;
    }
  }
  .rightbtns {
      position: absolute;
      right: 5px;
      display: flex;
      align-items: center;
      .el-button{
        border: none;
      }
      .gridSave {
        float: right;
        margin-left: 3px;
        display: flex;
        align-items: center;
    } 
    // 刷新设置
    .pull-right-regresh {
        float: right;
        height: 38px;
        display: flex;
        align-items: center;
        .znl-icons {
            padding: 1px;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            color: gray;
            display: inline-block;
            border-radius: 2px;
            position: relative;
            transform: scale(0.9);
            text-decoration: none;
            margin-left: 2px;
            &:hover {
                background-color: #1BB934;
                color: #fff;
            }
            &.znl-setting {
                margin-left: -5px;
                &:hover {
                    background-color: #EE7700;
                    color: #fff;
                }
            }
            .fa-icon {
                position: absolute;
                top: 2px;
                right: 6px;
            }
            i {
                font-size: 16px !important;
            }
        }
    } 
    // 选择提示
    .selectedReminder {
      float: right;
      color: rgba(153, 153, 153, 1); // margin: 0 5px;
      font-size: 12px;
      height: 38px;
      line-height: 38px;
      margin-right: 0px;
      margin-left: 5px;
    }
  }
  .znl-action-form{
    height: 38px;
  }
  .base-flex-grid{
    flex: 1;
    height: 100%;
  }
  .action-flex-grid{
    flex: 1;
    height: 100%;
    .base-flex-grid{
      height: 100%;
    }
  }
}
@keyframes rainbow {
  0% { transform: rotate(0) }
  10% { transform: rotate(36deg) }
  20% { transform: rotate(72deg) }
  30% { transform: rotate(108deg) }
  40% { transform: rotate(144deg) }
  40% { transform: rotate(180deg) }
  60% { transform: rotate(216deg) }
  70% { transform: rotate(252deg) }
  80% { transform: rotate(288deg) }
  90% { transform: rotate(324deg) }
  100% { transform: rotate(360deg) }
}
// body容器
.znl-table-body-wrapper{
  flex: 1;
  display: flex;
  flex-direction: column;
}
// 保存取消
.znl-save-revocation {
  position: relative; // top: -1px;
  overflow: hidden;
  display: inline-block;
  margin: 0 3px;
  width: 18px;
  height: 22px;
  display: flex;
  // 有编辑状态
  &.hasEditRows {
    .znl-btn-save {
      background-color: #ED9E00;
      position: absolute;
      left: 0;
      span {
        color: #fff;
      }
      &:hover {
        background-color: #EE7700;
      }
    }
    .znl-revocation {
      // background-color: #F0F0F0;

      &:hover {
        &+.znl-btn-save {
          background-color: #F0F0F0;
          span {
            color: #999;
          }
        }
        background-color: #EE7700;
        .iconfont {
          color: #fff;
        }
      }
    }
  }
}
// 保存
.znl-grid-save{
  margin-right: 2px;
  position: relative;
  z-index: 10;
}
.znl-btn-save {
  position: absolute;
  left: 0;
  padding: 5px 0;
  color: #666;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  transition: none;
  width: 32px;
  text-align: center;
  span {
    color: #999;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0;
  } 
  &:hover{
    background-color: #fff;
  }
}
// 撤销
.znl-revocation {
  position: absolute;
  right: 0;
  padding: 0px 0;
  width: 20px;
  height: 22px;
  margin-left: -5px!important;
  // border-top-left-radius: 0px;
  // border-bottom-left-radius: 0px;
  transition: none; 
  span{
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 22px;
  }
  .iconfont {
      color: #999;
      font-weight: 600;
  }
  &:hover{
    background-color: #fff;
  }
}
// 关闭按钮
.znl-btn-close {
  padding: 4px 5px;
  margin-left: -2px; // border-radius: 50%;
  margin-right: 2px;
  &:hover {
    background-color: transparent;
  }
  &.isActive:hover {
    background-color: #ED9E00;
    &>span>span {
        color: #fff;
    }
  }
  >span {
    padding-left: 0px;
    >span {
        padding-left: 0px;
        font-size: 10px;
        transform: scale(0.7) translateX(-1px);
        color: rgba(153, 153, 153, 1);
    }
  }
}
// 头部
.znl-gridModuleHeader {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  // 按钮组
  .actionBtns {
    display: flex;
    align-items: center;
    .el-dropdown {
      .el-button {
        span {
          padding-left: 3px;
        }
        &.znl-morebtn {
          padding-left: 0px;
          .znl-btn-more {
            color: rgba(128, 128, 128, 1);
          }
        }
      }
    }
    .znl-line {
      margin: 0 3px;
    }
    .el-dropdown {
      &>div {
        display: flex;
        align-items: center;
        .znl-morebtn {
          span {
            height: 22px;
            line-height: 22px;
          }
        }
      }
    }
  }
  .heading-slot>div{
    display: flex;
    align-items: center;
    &>*{
      margin-right: 5px;
    }
  }
}
.znl-components-btn.el-button {
  padding: 0;
  padding-left: 10px;
  padding-right: 5px;
  height: 22px;
  line-height: 22px;
  border: none;
  span {
    position: relative;
    padding-left: 7px;
    color: rgba(51, 51, 51, 1);
    svg,
    i {
      position: absolute;
      left: -7px;
      font-size: 12px;
    }
  }
}
// 标题
.znl-header-text {
  &.bottom-line{
    border-bottom: 2px solid #666666;
  }
  font-size: 14px;
  margin-right: 15px;
  color: #666666;
  font-family: "Microsoft YaHei", Tahoma, Arial;
  display: inline-block;
  padding: 0px 10px 0 0px;
  position: relative;
  top: 0px;
  font-weight: bold;
  position: relative;
  &.header-title{
    cursor: pointer;
  }
  .icon-table_error_ic {
    color: #ED9E00;
    font-weight: 100;
    position: relative;
    top: 1px;
  }
  .znl-icons.tableActivity{
    text-decoration: none;
    display: inline-block;
    color: gray;
    transform: scale(0.8);
    .iconfont{
      font-size: 12px;
    }
  }
} 

// action-form
.znl-action-form {
  height: 38px;
  font-size: 12px;
  padding-left: 10px;
  display: block; 
  align-items: center;
  &>div {
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    &>* {
        margin-right: 5px;
    }
  }
}

// 顶部分器
.znl-header-pagination{
  padding: 0 5px;
  color: #666;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  &>span{
    font-size: 12px!important;
    text-align: center;
  }
  &.jumperShow{
    .el-pagination__jump{
      display: inline-block!important;
    }
  }
  .el-pagination__jump{
    width: 20px;
    margin: 0;
    min-width: 39px!important;
    display: none!important;
    position: absolute;
    right: 74px;
    .el-input{
      position: absolute;
      top: 0;
      left: 0;
      padding: 0;
      margin: 0;
      width: 100%;
      background-color: #fff;
      .el-input__inner{
        padding: 0 3px;
        position: absolute;
        top: 0;
        right: -17px;
        height: 26px;
        line-height: 26px;
        width: 30px;
        font-size: 12px;
        font-weight: 900;
      }
    }
  }
  .btn-prev,.btn-next{
    padding: 0;
    line-height: 16px;
    height: 16px;
    min-width: 16px;
    background-color: transparent;
    border-radius: 2px;
    &:hover{
      background-color: #EE7700!important;
      color: #fff!important;
    }
    &:disabled{
      &:hover{
        background-color: transparent!important;
      }
    }
  }
  button.disabled{
    background-color: transparent;
  }  
  &.el-pagination button:not([class*=disabled]):hover {
    color: #303133;
    background-color: #DBDBDB;
  }
}


.znl-table_base-case{
  display: block;
  height: 100%;
  overflow: hidden;
}
.znl-table-plug{
  float: left;
  height: 100%;
  overflow-y: auto;
}