/**
 * 重写element-ui的样式
 */

// dialog
.el-dialog {
    .el-dialog__header {
        text-align: left!important;
        background-color: #3c76e2;
        padding-top: 10px;
        .el-dialog__title {
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            display: -webkit-flex;
            display: flex;
            justify-content: space-between;
        }
    }
    .el-dialog__body {
        padding: 10px 30px 10px 30px;
    }
    .el-dialog__footer {
        border-top: 1px solid #dfdfdf;
        text-align: center;
        .el-button--primary {
            background: #0078ce;
            border-color: #0078ce;
            &:hover {
                background: #008be2;
                border-color: #008be2;
            }
            &:active {
                background: #0059a0;
                border-color: #0059a0;
            }
        }
    }
}
// 时间范围选择器
.el-date-editor .el-range-separator {
    width: auto;

    .el-input__inner {
        padding-right: 15px!important;
    }
}
// table
.el-table {
    .el-button--text {
        padding: 0;
    }

    // table表格header对齐方式、加粗、字体大小修改
    .el-table__header-wrapper, .el-table__fixed, .el-table__fixed-right {
        .el-table__header {
            th {
                height: 32px;
                line-height: 32px;
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #232323;
                background-color: #f6f6f6;
                padding: 0!important;
            }
        }
    }

    // table表格body字体大小
    .el-table__body-wrapper {
        .el-table__body {
            tbody {
                .el-table__row {
                    td{
                        .cell {
                            div {
                                span {
                                    font-size: 14px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// tree
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    background-color: #38adff;
    color: #fff;
}
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content .el-button--text {
    color: #fff!important;
}
.el-tree {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    >.el-tree-node {
        min-width:100%;
        display: inline-block !important;
    }
    .el-tree-node__expand-icon {
        font-size: 18px;
        /*color: #999;*/
    }
    .custom-tree-node {
        flex: 1;
        display: flex;
        align-items: center;
        /*justify-content: space-between;*/
        font-size: 14px;
        padding-right: 8px;
        .el-button--text {
            margin-right: 0px;
            font-size: 12px;
            &:last-child {
                margin-left: 5px;
                margin-right: 0px;
            }
        }
    }
}
// 表单label位置为top的reset
.el-form--label-top .el-form-item__label {
    padding-bottom: 0;
}

// confirm对话框间距调整
.el-message-box {
    padding-bottom: 20px;

    .el-message-box__content{
        padding-top: 25px;
    }

    .el-message-box__btns {
        padding-top: 25px;
    }
}

// element 超出隐藏显示样式修改
.el-tooltip__popper {
    max-width: 500px !important;
}

// 解决element table 表头错位问题
body .el-table th.gutter{
    display: table-cell!important;
}
 
body .el-table colgroup.gutter{
    display: table-cell!important;
}
