// 视图
.pso-view {
    height: 100%;
    width: 100%;
    background-color: #fff;
    display: flex;

    @media (max-width: @screen-md-min) {

        .pso-view-header,
        .pso-view-fun {
            align-items: flex-start !important;
        }

        .pso-view-header {
            flex-direction: column !important;
        }

        .pso-view-fun {
            flex-direction: column-reverse !important;
        }

        .pso-view-fun-r {
            overflow: auto;
            width: 100%;
            margin-top: 10px;
        }

        .view-data-fun {
            display: flex !important;
        }

        .pso-view-header__r {
            width: 100%;
            margin-top: 5px;

            .el-tabs__item {
                padding: 0 15px;
            }
        }

        .pso-view-header__l {
            width: 100%;
        }

        .pso-view-table {
            margin-top: 10px;
        }
    }

    &.pso-view__expand {
        >.pso-view-extend {
            width: 200px;
            transition: width 0.3s ease-in-out;
        }

        >.pso-view-body {
            width: calc(100% - 200px);
            transition: width 0.3s ease-in-out;
        }

        &.pso-view__expand-wider {
            >.pso-view-extend {
                width: 240px;
            }

            >.pso-view-body {
                width: calc(100% - 240px);
            }
        }
    }


    .pso-view-extend {
        width: 0;
        overflow: hidden;
        transition: width 0.3s ease-in-out;
        overflow-y: auto;

        .pso-tree {
            padding: 10px 0 0 10px;
        }
    }

    .pso-view-body {
        width: 100%;
        padding: 10px;
        overflow: auto;
        transition: width 0.3s ease-in-out;

        .pso-view-header {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .pso-view-header__l {
                margin-bottom: 10px;
                display: flex;
                align-items: center;
            }

            .pso-view-header__r {
                margin-bottom: 10px;
            }

            .pso-view-title {
                display: flex;
                align-items: center;
                color: #666;

                >i {
                    font-size: 18px;
                }

                >span {
                    font-weight: bold;
                    font-size: 17px;
                    margin-left: 5px;
                    .show-a-line();
                }

                .pso-view-header-tip {
                    display: flex;
                    align-items: center;
                    font-size: 12px;
                    color: #999;
                    margin-left: 10px;
                }
            }

            .pso-view-authtab {
                margin-top: -5px;
            }

            .el-tabs__header {
                margin: 0;
            }

            .el-tabs__nav-wrap::after {
                content: none;
            }
        }

        .pso-view-switch {
            display: flex;
        }

        .pso-view-viewtab {
            display: flex;
            align-items: center;
            overflow: auto;
            padding-top: 6px;
            margin-top: -6px;

            .el-badge {
                .el-badge__content {
                    line-height: 15px;
                }

                &+.el-badge {
                    margin-left: 10px;
                }

                &+.el-tag {
                    margin-left: 10px;
                }
            }

            .el-tag {
                cursor: pointer;

                &+.el-tag {
                    margin-left: 10px;
                }

                &+.el-badge {
                    margin-left: 10px;
                }

            }

            .el-badge__content {
                top: 3px;
                right: 14px;
            }

        }

        .pso-view-sorttag {
            margin-top: 10px;

            .el-tag {
                &+.el-tag {
                    margin-left: 10px;
                }
            }
        }

        .view-table-fun {
            display: flex;
            align-items: center;

            .el-input {
                width: 150px;
            }
        }

        .pso-view-fun {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .pso-view-fun-r {
                min-height: 40px;
                align-items: center;
                display: flex;
            }
        }

        .pso-view-table {

            .pso-view-table__footer {
                margin-top: 10px;
                background-color: #fff;
            }

        }
    }
}

.pso-src-mini {
    .pso-upload__list {
        .pso-upload__list-item {
            width: 60px;
            height: 60px;
            flex-basis: 60px;
        }

        .pso-upload__list-info__bg {
            background-size: auto 100%;
        }
    }
}

.view-data-fun {
    display: flex;
    align-items: center;

    .view-data-fun__actions,
    .el-dropdown,
    button {

        &+.view-data-fun__actions,
        &+.el-dropdown,
        &+button {
            margin-left: 10px;
        }
    }

    .el-dropdown,
    >span,
    >button {
        &+.view-data-fun__actions {
            margin-left: 10px;
        }

        &+.el-dropdown,
        &+span,
        &+button {
            margin-left: 10px;
        }
    }
}

.pso-view-mgt {
    .el-tabs {
        width: 100%;
    }

    .pso-view-viewtab {
        margin-top: 20px;

        .el-tabs__header {
            margin-bottom: 1px;
        }
    }

    .pso-view-fun {
        padding-right: 10px;
    }

    >.pso-view-body {
        padding: 10px 0 0 10px;

        >.pso-view-header {
            padding-right: 10px;
        }

        >.pso-view-table {
            height: calc(100% - 90px);
            overflow: auto;
            padding: 0 10px 0 0;

            .pso-view-body {
                padding: 10px 10px 0 0;
            }
        }
    }
}

.pso-view-user {
    >.pso-view-body {
        >.pso-view-table {
            height: calc(100% - 34px);
            overflow: auto;
            padding: 0 10px 0 0;
        }
    }
}

.pso-switch-panel {
    max-height: 300px;
    overflow: scroll;

    .pso-switch-panel__item {
        &+.pso-switch-panel__item {
            margin-top: 15px;
        }
    }

    .el-switch {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

//旗帜标签
.tag-flag-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;

    &+.tag-flag-box {
        margin-left: 2px;
    }
}

.modifier-placeholder-wrapper {}

.modifier-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 99%;
    position: relative;

    .modifier-flag {
        display: flex;
        align-items: center;
    }

    .modifier-file {
        width: 100%;


    }

    .modifier-value {
        width: 100%;
    }

    .modifier-trigger {
        cursor: pointer;
        font-size: 16px;

        &:hover {
            color: @main-color
        }
    }
}

.modifier {
    position: fixed;
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);

    .modifier-confirm {
        position: absolute;
        top: -13px;
        right: -13px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100%;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 4px 2px;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        background: #67C23A;

        &:hover {
            transition: all 0.3s ease-in-out;
            background: #fff;

            i {
                transition: all 0.3s ease-in-out;
                color: #67C23A;
                font-size: 20px;
            }
        }

        i {
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease-in-out;
            color: #fff;
        }
    }

    .el-input__inner,
    .el-textarea__inner {
        border-radius: 0;
    }

    .el-input__inner {
        height: 41px;
        line-height: 41px;
    }

    .el-form-item {
        margin: 0 !important;
    }

    .pso-form-row {
        >div {
            margin: 0 !important;
        }
    }

    .pso-number {
        width: 100%;
    }

    .el-form-item__content {
        min-height: 40px;
    }

    input,
    textarea {
        min-height: 41px !important;
        border-width: 2px;
    }
}


.pso-formTable-formViewer {
    padding: 15px;
}

.form-view__column-ast {
    .el-form-item__content {
        line-height: inherit !important;
    }

    .el-form-item {
        margin: 0;
    }

    .pso-form-asstable-table {
        margin: 0;
    }

    .el-tag {
        height: 21px;
        line-height: 21px;
    }
}

.pso-view-withtop {
    height: 100%;

    .pso-view-top {
        height: 40px;
        display: flex;
        align-items: center;
        padding: 0 10px;

        .pso-typebar {
            flex: 1;
        }
    }

    .pso-view {
        height: calc(100% - 40px);
    }
}