.grid-designer {
    padding: 15px 0;

    height: 100%;

    &.paper-designer {

        .grid-designer__stage {
            height: 100%;

            .grid-designer__stage-body {
                display: flex;
                height: calc(100% - 41px);

                .grid-designer__stage-body-l {
                    background-color: #fff;
                    width: 320px;
                    padding: 5px 10px 10px 10px;
                    height: 100%;
                    overflow: auto;

                    .el-form-item {
                        margin-bottom: 5px;
                    }

                    .el-collapse {
                        border: none;
                    }
                }

                .grid-designer__stage-body-r {
                    flex: 1;
                    height: 100%;
                    overflow: auto;

                    .paper-designer-interpreter {
                        padding: 10px;
                        height: 100%;
                    }
                }
            }
        }
    }

    .grid-designer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 43px;
        border-bottom: 1px solid #ebedf0;
        padding: 0 10px;

        .grid-designer__header-l {
            color: #666;

            i {
                margin-right: 3px;
            }
        }
    }

    .grid-designer__body {
        display: flex;
        height: 100%;

        .grid-designer-item {
            display: flex;
            justify-content: center;
            align-items: center;
            color: #666;
            font-size: 24px;
            height: 100%;
            background-color: #fff;
            transition: 'background-color'.3s ease-in-out;

            &.grid-designer-item__active {
                background-color: #FEF9EE;
                transition: 'background-color'.3s ease-in-out;
            }

            &:hover {
                >i {
                    display: block;
                }
            }

            >i {
                position: absolute;
                top: 5px;

                cursor: pointer;
                display: none;
            }

            .edit {
                left: 5px;
            }

            .delete {
                right: 5px;
            }
        }

        .grid-designer__stage {
            flex: 1;
            border: 1px solid #ebedf0;
            display: flex;
            flex-direction: column;

            .grid-designer__stage-body {
                background-color: #f7f8f9;
                flex: 1;
            }
        }

        .grid-designer__panel {
            width: 340px;
            height: 100%;
            margin-left: 20px;
        }
    }

    .grid-designer__panel {
        border: 1px solid #ebedf0;
        border-radius: 2px;
    }

    .grid-panel {
        height: 100%;

        .grid-panel-tabs {
            display: flex;
            align-items: center;
            border-bottom: 1px solid #ebedf0;
            justify-content: space-between;
            padding: 0 10px;
        }

        .grid-panel-body {
            padding-top: 10px;
            height: calc(100% - 41px);
            overflow: auto;
        }
    }

    .designer-nav {
        .designer-nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: color .2s linear;

            &.designer-nav-item-active {
                color: @main-color;
                transition: color .2s linear;
            }

            &+.designer-nav-item {
                margin-top: 10px;
            }

            .designer-nav-item__body {
                display: flex;
                align-items: center;
                cursor: pointer;

                i {
                    width: 20px;
                }

                span {
                    width: 110px;
                    .show-a-line();
                }
            }

            .designer-nav-drag {
                cursor: grab;
                margin-left: 5px;
            }

            .designer-nav-del {
                cursor: pointer;
            }
        }
    }
}

.grid-designer-menu {
    padding: 0;
}

.grid-interpreter {
    height: 100%;

    .pso-grid-cpnt-wrapper {
        background-color: #fff;
        height: 100%;
        position: relative;

        .pso-grid-cpnt-wrapper-header {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            position: relative;

            span {
                font-size: 16px;
                letter-spacing: 1px;
            }

            i {
                font-size: 20px;
                color: #666;
                cursor: pointer;

                &:hover {
                    color: @main-color;
                }
            }
        }

        .pso-grid-cpnt-wrapper-body {
            height: calc(100% - 50px);
            position: relative;
        }
    }
}