// 自定义表单页面样式
.aui-form-custom-wrap {
    position: relative;

    .header {
        position: relative;
        flex: 0 0 35px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        font-weight: 700;
        line-height: 1;
        border-bottom: 1px solid @border-color;

        .header-btn-group {
            position: absolute;
            right: 10px;
            top: 5px;
            .ivu-btn {
                margin-left: 6px;
            }
        }
    }

    .aui-form-content {
        box-sizing: border-box;
        background-color: @white;
        border: 1px solid @border-color;
        border-radius: 4px; 
        box-shadow: @border-shadow-color;
    }

    .aui-form-custom-left {
        float: left;
        width: 200px;
        font-size: 14px;
       

        & > .aui-form-custom-util-wrap {
            padding-bottom: 10px;
        }

        .aui-form-custom-util {
            position: relative;
            padding-left: 34px;
            padding: 14px 24px;
            line-height: 1;
            display: flex;
            align-items: center;
            cursor: pointer;
            outline: 0;
            transition: all .2s ease-in-out;
            &:not(.active):hover {
                color: @primary-color;
                background: #f0faff;
                .ivu-icon {
                    &::before {
                        content: '\F330';
                    }
                }
            }
            &.active {
                color: @primary-color;
                background: #f0faff;
                z-index: 2;
                border-right: 1px solid @primary-color; 
            }
        }
        
    }

    .aui-form-custom-right {
        position: relative;
        margin-left: 220px;
        height: calc(~"100vh - 275px");
       
        .aui-custom-content {
            position: absolute;
            left: 0;
            top: 35px;
            right: 0;
            bottom: 0;
            margin: auto;
            padding: 20px 0px 10px 10px;;
            overflow-y: auto; 
            overflow-x: hidden; 
            background-color: @bg-color-heavy;
            scroll-behavior:smooth;
            &::-webkit-scrollbar {
                width: 3px;
            }
        }

        // 默认icon
        .aui-custom-default {
        }

        // 右侧单项表单展示
        .aui-form-custom-form-wrap {
            .ivu-card-body {
                padding: 10px;
            }
            .aui-form-custom-item-title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding-bottom: 5px;
                border-bottom: 1px solid @border-color;
            }
            .preIcon {
                display: flex;
                align-items: center;
            }
            .aui-form-custom-item-form {
                padding: 20px 70px 20px 0;
            }
        }
    }
}
// 媒体查询自定义控件右侧模块高度，xxl 时右侧内容添加固定高度，内容滚动
@media (min-width: 1600px) {
    .aui-form-custom-form-wrap {
        .aui-form-custom-item-form {
            height: 300px;
            overflow-x: hidden;
            overflow-y: auto;
            &::-webkit-scrollbar {
                width: 3px;
            }
        }
    }
}

// 自定义表单弹框样式
.custom-config-modal {
    .ivu-form-item {
        margin-bottom: 20px;
    }
    .custom-config-required {
        float: left;
        line-height: 30px;
        font-size: 14px;
        font-weight: 700;
    }
    .aui-remove-form {
        margin-left: 5px;
        font-size: 24px;
        color: red;
        cursor: pointer;
        &:hover {
            color: tint(red, 30%);
        }
        &:active {
            color: tint(red, 20%);
        }
        &:focus {
            box-shadow: 0 0 0 2px rgba(45,140,240,.2);
        }
    }
}