/* layout相关 */
.ebz-page-container {
    height: 100%;
    padding: 0;
}
.ebz-page-header {
    height: auto;
    padding: 0;
}
.ebz-page-aside {
    width: 260px;
    padding: 0;
    overflow: hidden;
}
.ebz-page-main {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
}
.ebz-page-footer {
    padding: 0;
    height: auto;
}
.ebz-page-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none !important;

  .el-card__header {
      height: 40px;
      line-height: 40px;
      font-size: 13px;
      padding: 0 16px;
  }
  .el-card__body {
      position: relative;
      flex-grow: 1;
      overflow: auto;
      padding: 16px;
  }
  .el-tree-node__label {
      font-size: 13px;
  }
}
.ebz-page-aside + .ebz-page-container,
.ebz-page-aside + .ebz-page-main {
    margin-left: 12px;
}
.ebz-page-main + .ebz-page-aside {
    margin-left: 12px;
}
.ebz-page-header + .ebz-page-container,
.ebz-page-header + .ebz-page-main {
    margin-top: 12px;
}
.ebz-page-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;

    .el-tabs__header {
        margin-bottom: 12px;
        padding: 0;

        .el-tabs__item {
            font-size: 14px;
            height: 32px;
            line-height: 25px;
        }
    }
    .el-tabs__content {
        flex-grow: 1;
    }
    .el-tab-pane {
        height: 100%;
    }
}
.ebz-page-tabs.el-tabs--left {
    flex-direction: row;
}
.ebz-page-dialog {
    height: 500px;
    overflow: hidden;

    /*
    .el-dialog__body {
        height: calc(100% - 200px);
    }
    */
}

/*------------------elementPlus------------------*/
/* drawer dialog */
.el-drawer {
    box-sizing: border-box;
    .el-drawer__header {
      font-size: 18px;
        margin: 0;
        padding: 20px;
        font-weight: bold;
    }
    .el-drawer__body {
        padding: 0 20px 20px 20px;
        overflow-x: hidden;
        overflow-y: auto;
    }
}
.el-dialog {
    display: flex;
    flex-direction: column;
}
.el-dialog .el-dialog__body {
    flex-grow: 1;
    overflow: hidden;
}

/* form相关 */
.el-input__inner{
  border-radius: 3px;
}

.el-form {
  .el-form-item__label {
    font-size: $ebz-font-size-default;
  }
  // 输入框
  .el-input .el-input__inner{
    font-size: $ebz-font-size-default;
  }
  //日期组件
  .el-date-editor {
      width: 100% !important;

      .el-range-separator, .el-range-input{
        font-size: $ebz-font-size-default;
      }
  }
  //下拉组件
  .el-select {
      width: 100% !important;
  }
  .el-autocomplete{
      width: 100% !important;
  }
  .ck-editor{
      width: 100% !important;
  }
}

/* 按钮 */
.el-button{
  cursor: pointer;
  border: 0 none;
  border-radius: 2px;
  font-size: $ebz-font-size-default;

  &.el-button--default{
    border: 0 none;
    border-radius: 2px;
    font-size: $ebz-font-size-default;
    height: 28px;
  }

  &.el-button--primary{
    border: 0 none;
    border-radius: 2px;

    &:hover{
      border: 0;
    }
  }

  &.el-button--text{
    border: 0;

    &:hover{
      border: 0;
    }
  }
}

/* table */
button + .el-table{
  margin-top: 12px;
}

.el-table{
  tr{
    height: 45px;

    td.el-table-fixed-column--right, th.el-table-fixed-column--right{
      padding-left: 4px;
    }
  }

  th.el-table__cell {
    font-size: 12px;
  }
}

.el-message-box__btns {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;

    .el-button {
        &:first-child {
            margin-left: 10px;
        }
        &:last-child {
            margin-left: 0px;
        }
    }
}
.ebz-page-tree {
    .el-tree-node {
        position: relative;
        //padding-left: 16px;
        &:last-child {
            &:before {
                height: 38px;
            }
        }
        &:before {
            content: "";
            left: 3px;
            position: absolute;
            right: auto;
            border-width: 1px;
            border-left: 1px dashed #dcdfe6;
            bottom: 0px;
            height: 100%;
            top: -26px;
            width: 1px;
            opacity: 0.5;
        }
        &:after {
            content: "";
            left: 3px;
            position: absolute;
            right: auto;
            border-width: 1px;
            border-top: 1px dashed #dcdfe6;
            height: 20px;
            top: 12px;
            width: 12px;
            opacity: 0.5;
        }
    }
    .el-tree-node__children {
        padding-left: 8px;
    }
    & > .el-tree-node:before {
        border-left: none;
    }
    & > .el-tree-node:after {
        border-top: none;
    }
    .el-tree-node__content {
        .is-leaf {
            &:before {
                content: "";
                opacity: 0.5;
                display: block;
                width: 3px;
                height: 3px;
                border-radius: 3px; /**控制形状**/
                background-color: #c0c4cc; /**控制图标颜色**/
                position: absolute; /**图标与文字距离**/
                left: 17px;
                top: 10px;
            }
        }
    }
}
.ebz-page-btns {
    margin-bottom: 10px;
}
.ebz-page-treeselect {
    height: 30px;
    .vue-treeselect__control {
        height: 28px;
        line-height: 28px;
        .vue-treeselect__value-container {
            .vue-treeselect__single-value {
                color: rgb(96, 98, 102);
            }
            .vue-treeselect__single-value,
            .vue-treeselect__placeholder {
                line-height: 28px;
                font-size: 12px;
                padding-left: 10px;
            }
        }
    }
}

/* fieldset */
/*
fieldset {
    position: relative;
    padding: 30px 20px 10px 20px;
    margin-top: 20px;
    border: 0 none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    &:before {
        content: "";
        position: absolute;
        height: 1px;
        border-top: 1px solid #ccc;
        top: 0;
        left: 0;
        right: 0;
    }

    legend {
        position: absolute;
        padding: 0 15px;
        top: 0;
        z-index: 1;
        width: auto;
        margin: 0;
        left: 20px;
        background: #fff;
        border: 0 none;
        top: -7px;
        font-size: 14px;
    }
}
*/
/* scrollbar */
.el-scrollbar__bar.is-vertical {
  width: 4px;
  right: 0;
}

