.pso-form-upload {
    position: relative;

    .pso-form-upload__trigger {
        cursor: pointer;
        user-select: none;
    }

    .pso-form-upload__files {
        margin-top: 10px;
        height: 100px;
    }
}

.pso-upload-wrapper {
    padding: 0;
    margin-bottom: 0 !important;
}

.pso-upload__list {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: auto;

    .pso-upload__list-item {
        position: relative;
        width: 100px;
        height: 100px;
        box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.1);
        background: #fff;
        flex-basis: 100px;
        flex-shrink: 0;

        @media (max-width: @screen-sm-min) {
            .pso-upload__list-panel {
                opacity: 1 !important;
            }
        }

        &:hover {
            .pso-upload__list-panel {
                opacity: 1;
            }
        }

        .pso-upload__list-item-fix {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .pso-upload__list-item__progress {
            display: flex;
            justify-content: center;
            flex-direction: column;
            width: 100%;
            height: 100%;

            .el-progress {
                display: flex;
                justify-content: center;
                flex-direction: column;
                flex: 1;
                align-items: center;
            }
        }

        .pso-upload__list-info {
            display: flex;
            justify-content: center;
            flex-direction: column;
            width: 100%;
            height: 100%;

            .pso-upload__list-info__bg {
                flex: 1;
                background-repeat: no-repeat;
                background-position: 50%;
            }
        }

        .pso-upload__list-progress__name,
        .pso-upload__list-info__name {
            height: 30px;
            line-height: 30px;
            text-align: center;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding: 0 5px;
            overflow: hidden;
            font-size: 12px;
        }

        .pso-upload__list-panel {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            transition: opacity 0.3s;
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: space-around;

            .pso-upload__list-panel__item {
                cursor: pointer;
                color: #fff;
                font-size: 18px;
            }
        }
    }
}

.pso-file-viewer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100vh;
    z-index: 9999;
    color: #fff;

    .pso-file-viewer__header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        background-color: rgba(36, 35, 35, 0.9);
        position: relative;

        .pso-file-viewer__header-number {
            position: absolute;
            left: 50%;
        }

        .pso-file-viewer__header-title {
            color: #fff;
        }

        .pso-file-viewer__fun {
            display: flex;
            align-items: center;

            >i {
                font-size: 20px;
                cursor: pointer;

                &+i {
                    margin-left: 20px;
                }
            }
        }
    }

    @media (max-width: @screen-md-min) {
        .pso-file-viewer__body {
            flex-direction: column;

            .pso-file-viewer__body-menu {
                display: flex;
                height: 80px !important;
                width: 100% !important;
                padding: 0 !important;
                flex-basis: 80px;
                flex-shrink: 0;

                .pso-file-viewer__menu-item {
                    flex-basis: 80px;
                    flex-shrink: 0;
                    margin-top: 0 !important;
                }
            }
        }
    }

    .pso-file-viewer__body {
        display: flex;
        height: calc(100% - 60px);
        background-color: rgba(36, 35, 35, 0.85);

        .pso-file-viewer__body-menu {
            width: 100px;
            height: 100%;
            overflow: auto;
            background-color: rgba(36, 35, 35, 0.34);
            padding: 10px;

            .pso-file-viewer__menu-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                height: 80px;
                width: 80px;
                overflow: hidden;
                cursor: pointer;

                &.active {
                    border: 3px solid #409eff;
                }

                &+.pso-file-viewer__menu-item {
                    margin-top: 10px;
                }

                >img {
                    height: 44px;
                    width: 44px;
                }

                >span {
                    margin-top: 3px;
                    font-size: 12px;
                    line-height: 16px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    width: 90%;
                    text-align: center;
                }
            }
        }

        .pso-file-viewer__body-carousel {
            flex: 1;
            width: 100%;
            height: 100%;
        }
    }
}

.pso-file-viewer__fun-tip {
    z-index: 99999 !important;
}