// #409EFF: #409EFF;
// #ecf5ff: #ecf5ff;

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.fa-icon {
  width: auto;
  height: 1em;
  /* 或任意其它字体大小相对值 */

  /* 要在 Safari 中正常工作，需要再引入如下两行代码 */
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.oa-center-container {
  background-color: #F5F4F5;
  align-items: center;
  height: 100%;
  width: 20%;
  .btn-bar {
    height:245px;
    line-height: 45px;
    font-size: 18px;
    border-bottom: solid 2px #e4e7ed;
    text-align: right;
    
  }

  .el-main {
    padding: 0;
    position: relative;
    
  }
}

.components-list {
  padding: 8px 0;
  width: 100%;
  height: 100%;

  .widget-cate {
    padding: 8px 12px;
    font-size: 13px;
  }

  ul {
    position: relative;
    overflow: hidden;
    padding: 0 10px 10px;
    margin: 0;
  }

  .form-edit-widget-label {
    font-size: 12px;
    display: block;
    width: 48%;
    line-height: 26px;
    position: relative;
    float: left;
    left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 1%;
    color: #333;
    border-radius: 2px;
    padding-left: 10px;
    

    &:hover {
      color: #409EFF;
      border: 1px dashed #409EFF;
    }

    &>a {
      display: block;
      cursor: move;
      background: #F4F6FC;
      padding-left: 10px;

      .icon {
        margin-right: 6px;
        margin-left: 8px;
        font-size: 13px;
        display: inline-block;
        vertical-align: middle;
        
      }

      span {
        display: inline-block;
        vertical-align: middle;
        
      }
    }
  }
}

.widget-form-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height:100%;
  overflow-y: scroll;
  .widget-form-list {
    height: 550px;
    margin: 24px 10px;
    .widget-view {
      margin: 0;
      position: relative;
      border-left: 5px solid transparent;
      background-color: #ffffff;
      margin: 16px 0;

      &.is_req {
        .el-form-item__label::before {
          content: '*';
          color: #f56c6c;
          margin-right: 4px;
        }
      }

      &:after {
        position: absolute;
        left: 0px;
        right: 0px;
        bottom: 0px;
        top: 0px;
        display: block;
        z-index: 1001;
      }

      &:hover {
        border-left: 5px solid #ecf5ff;
      }

      &.active {
        border-left: 5px solid #409EFF;
      }
    }

    .widget-action-delete {
      position: absolute;
      right: -3px;
      top: -3px;
      z-index: 1009;
      background-color: #409EFF;
      padding: 2px;
      color: #ffffff;
      cursor: pointer;
    }

    .widget-action-clone {
      position: absolute;
      right: 70px;
      bottom: -35px;
      z-index: 1009;
    }
  }

  .widget-grid {
    background: #F4F6FC;
    position: relative;
    border-left: 5px solid transparent;
    margin: 0 !important;

    &.active {
      border-left: 5px solid #409EFF;
    }
  }

  .widget-grid-container {
    &.ghost {
      &::after {
        background: #fff;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        display: block;
        z-index: 10;
        content: '';
      }
    }
  }

  .ghost {
    background: #fff;
    border: 1px dashed #409EFF;

    &::after {
      background: #fff;
    }
  }

  li.ghost {
    height: 30px;
    list-style: none;
    font-size: 0;
  }
}

.widget-config-container {
  width: 400px !important;
  position: relative;

  .el-header {
    border-bottom: solid 2px #e4e7ed;
    padding: 0 5px;
  }

  .config-tab {
    height: 45px;
    line-height: 45px;
    display: inline-block;
    width: 145px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    cursor: pointer;

    &.active {
      border-bottom: solid 2px #409EFF;
    }
  }

  .config-content {
    min-width: 00px;
    padding: 20px;
    height: 550px;

    .el-form-item__label {
      padding: 0;
      font-weight: 500;
    }
  }

  .ghost {
    background: #fff;
    border: 1px dashed #409EFF;

    &::after {
      background: #fff;
      display: block;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  ul {
    margin: 0;
    padding: 0;
  }

  li.ghost {
    list-style: none;
    font-size: 0;
    display: block;
    position: relative;
  }
}

.viewer-container {
  z-index: 99999 !important;
}