﻿.pic-body {
    height: 100%;
    background-color: #FFF;
}

.pic-reader {
    color: #668899;
    font-size: 12px;
    padding: 8px;
    border-top: dashed 1px #CCC;
    margin-top: 32px;
}

    .pic-reader > dl {
        text-align: left;
    }

        .pic-reader > dl > dt {
            line-height: 27px;
        }

        .pic-reader > dl > dd {
            line-height: 21px;
        }

    .pic-reader > .section dd {
        text-indent: 24px;
    }

.pic-content {
    border: dashed 1px #CCC;
    height: calc(100% - 18px);
    width: calc(100% - 18px);
    margin: 9px;
    background-color: #F3F6F9;
    background-image: linear-gradient(to bottom, #EEF3FE, #F3F6F9);
    outline: 8px solid #F9FBFF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.pic-upload {
    display: inline-flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}



.hasPics .pic-content {
    display: none;
}

.hasPics .pic-items {
    display: flex;
}

.hasPics .c-b-w-show {
    background-color: #F9FBFF;
    background-image: linear-gradient(to bottom, #FFF, #E0F6F9);
}

.pic-upload > dt {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 68px;
}

    .pic-upload > dt > i {
        font-size: 58px;
        display: inline-flex;
        width: 60px;
        color: #FF7700;
    }

.pic-upload > dd {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pic-upload-btn {
    height: 42px !important;
    line-height: 42px !important;
    font-size: 16px;
    width: 300px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.pic-upload-msg {
    color: #AAAFB3;
    font-size: 16px;
    line-height: 32px;
}

.pic-upload-msg2 {
    font-size: 12px;
    color: #F70;
    line-height: 25px;
}

.pic-upload .upload_files {
    display: none;
}

.pic-items {
    display: none;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    overflow-y: scroll;
    flex-wrap: wrap;
    overflow-y:auto;
}

.pic-item {
    display: inline-flex;
    height: 120px;
    width: 320px;
    border-radius: 3px;
    justify-content: flex-start;
    align-items: center;
    padding: 5px;
    margin-left: 18px;
    margin-top: 18px;
    border: 1px solid rgba(0,187,51,0.4);
    border: 1px solid var(--color_comp);
    outline: 3px dotted rgba(0,0,0,0.03);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
}



    .pic-item.un-compression {
        --color_comp: rgba(0,170,255,0.5);
        background-color: #FFF;
    }

    .pic-item.compression-err {
        --color_comp: #F30;
        background-color: #FFF0EE;
    }

    .pic-item.checked {
        --color_comp: rgba(0,170,255,0.8);
        background-color: rgba(0,170,255,0.1);
    }


    .pic-item.compression-ok {
        --color_comp: rgba(0,187,51,0.4) !important;
        background-color: #F0F6FF !important;
    }



    .pic-item > * {
        height: 100px;
        display: inline-flex;
    }

    .pic-item > dt {
        width: 100px;
        margin-right: 5px;
        align-items: center;
        justify-content: center;
        position: relative;
        outline: 1px solid #ccc;
        background: url(/images/bgNull.gif) repeat center center;
        cursor: pointer;
    }

    .pic-item .pic-mask {
        position: absolute;
        left: 0px;
        top: 0px;
        display: none;
        width: 100%;
        height: 100%;
        z-index: 1;
        background-color: rgba(0,0,0,0.3);
        justify-content: center;
        align-items: center;
        animation: zoomIn 200ms;
    }

        .pic-item .pic-mask:before {
            content: "点击预览";
            color: #FFF;
        }

    .pic-item > dt:hover > .pic-mask {
        display: flex;
    }


    .pic-item > dt > .img {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #FFF;
        width: 100%;
        height: 100%;
        background: url(/images/nothum.png) rgba(0,0,0,0.4) center center no-repeat;
        background-size: contain;
    }

.pic-bar {
    display: none;
    position: absolute;
    width: 318px;
    height: 25px;
    left: -5px;
    top: -10px;
    background-color: rgba(0,187,51,0.4);
    background-color: var(--color_comp);
    padding-right: 8px;
    animation: fadeIn 500ms both;
    z-index: 1;
    justify-content: flex-end;
    align-items: center;
}

.pic-item:hover .pic-bar {
    display: flex;
}

.pic-bar > * {
    display: inline-flex;
    height: 100%;
    line-height: 100%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    color: #FFF;
}

    .pic-bar > *:hover {
        color: #FA0;
        text-shadow: 2px 2px 2px 2px #000;
    }


.pic-bar > .del {
    width: 20px;
}

.pic-item > dd {
    width: 260px;
    flex-direction: column;
    border-left: 1px dotted #DDDDDD;
    color: #668899;
    padding-left: 8px;
    padding-top: 2px;
    position: relative;
}

    .pic-item > dd > span {
        height: 21px;
        line-height: 21px;
        overflow: hidden;
        text-align: left;
        font-size: 12px;
    }

        .pic-item > dd > span > a {
            margin-left: 8px;
            color: #F70;
        }

            .pic-item > dd > span > a:hover {
                color: #F50;
                text-decoration: underline;
            }

.pic-inf > em {
    color: #00BB33;
    font-size: 14px;
}

.pic-inf a {
    color: #07F;
    margin-left: 18px;
}

    .pic-inf a:hover {
        color: #F70;
    }

.pic-item > dd > span b {
    font-weight: normal;
}


.pic-check {
    position: absolute;
    display: block;
    height: 60px;
    width: 60px;
    background-color: rgba(0,0,0,0);
    right: -5px;
    bottom: -10px;
    overflow: hidden;
    font-size: 24px;
    cursor: pointer;
}

    .pic-check:hover:after {
        color: rgba(255,255,255,0.9);
        content: "\E95E";
    }

.checked .pic-check:after {
    content: "\E929";
    color: #FFF;
}

.pic-check:before {
    position: absolute;
    display: block;
    transform: rotate(45deg);
    left: 60px;
    top: 0px;
    transform-origin: left top;
    width: 60px;
    height: 120px;
    background-color: rgba(0,187,51,0.4);
    background-color: var(--color_comp);
    content: ""
}

.pic-check:after {
    position: absolute;
    font-family: YNSDN;
    content: "\E999";
    color: rgba(255,255,255,0.6);
    bottom: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    content: "\E95E";
}

.pic-check.checked:after {
    content: "\E929";
}


/*pic-edit图片编辑区域开始*/

.pic-edit {
    display: none;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: url(/images/bgNull.gif) #FFF center center repeat;
    background-size: 8px;
    position: relative;
}

.hasPics .pic-edit {
    display: block;
}

.editor-main {
    position: absolute;
    display: block;
    top: 0px;
    left: 0px;
    height: 100%;
    width:100%;
}


    .editor-main > * {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .editor-main > .mask {
        z-index: 1001;
        pointer-events: none;
    }

.editor-pictrue {
    text-align: left;
}

#waters_editor {
    background-size:cover;
}

.editor-pictrue > *:not(.ui-resizeable-ghost) {
    position: absolute;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    transform-origin: top,left;
}


    .editor-pictrue > [data-type] > img {
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

.imgRect {
    height: 100%;
    width: 100%;
}

    .imgRect > .img {
        background: no-repeat rgba(0,0,0,0) center center;
        background-size: 100% 100%;
    }
/*水平翻转*/
.flipx {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    /*IE*/
    filter: FlipH;
}

/*垂直翻转*/
.flipy {
    -moz-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    transform: scaleY(-1);
    /*IE*/
    filter: FlipV;
}

    .e-r-box > h3 {
        display: block;
        height: 32px;
        line-height: 32px;
        text-align: left;
        font-weight: normal;
        font-size: 14px;
        padding-left: 22px;
        color: #90979F;

        border-bottom: 1px solid #D0D7DF;
    }

    .e-r-box > dl {
        display: flex;
        height: 36px;
    }

        .e-r-box > dl > * {
            display: inline-flex;
            align-items: center;
            height: 100%;
        }

        .e-r-box > dl > dt {
            width: 72px;
            justify-content: flex-end;
            padding-right: 5px;
            flex-shrink: 0;
            flex-grow: 0;
        }

        .e-r-box > dl > dd {
            flex-shrink: 1;
            flex-grow: 1;
        }

    .e-r-box input[type=text] {
        line-height: 25px;
        height: 25px;
        width: 80px;
    }

    .e-r-box > dl > dd > span {
        width: 100px;
        margin-right: 8px;
        text-align: left;
    }

        .e-r-box > dl > dd > span > select {
            width: 100%;
        }


    .e-r-box > dl > dd > em {
        width: 36px;
    }

    .e-r-box > dl > dd > i {
        margin-left: 3px;
        color: #90979F;
    }

.previewBox {
    display: flex;
    background-size: 100% 100%;
    height: 180px;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #CCC;
    overflow: hidden;
}

    .previewBox > canvas {
        max-height: 180px;
        max-width: 180px;
    }


.dlg-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}

    .dlg-content > li {
        display: inline-flex;
        height: 32px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-top: 8px;
    }

        .dlg-content > li > em {
            width: 32px;
            margin-right: 8px;
            flex-grow: 0;
            flex-shrink: 0;
            text-align: right;
            font-style: normal;
        }

        .dlg-content > li > span {
            flex-grow: 1;
            flex-shrink: 1;
        }

            .dlg-content > li > span > span {
                margin-right: 8px;
            }

    .dlg-content input, .dlg-content textarea {
        outline: none;
    }

.dlg-btnOk {
    margin-left: 40px;
}

.c-b-w-btns > p {
    margin-bottom: 8px;
    display: flex;
    height: 33px;
}

    .c-b-w-btns > p > button {
        display: inline-flex;
        align-items: center;
        height: 100%;
        flex-grow: 1;
        flex-shrink: 1;
    }

        .c-b-w-btns > p > button > i {
            margin-left: 32px;
            margin-right: 5px;
        }

.btn-selectALL, .btn-selectNone {
    justify-content: center;
}

.btn-compSelected, .btn-delSelected, .btn-download {
    justify-content: flex-start;
}


.pop-preview {
    width: 60%;
    height: 60%;
    top: calc(20%);
    left: calc(20%);
    background-color: #FFF;
    animation: zoomIn 300ms;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 1px #000;
    padding: 18px;
}

.viewBox {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

    .viewBox > dl {
        position: absolute;
        height: 100%;
        width: calc(50% - 10px);
        top: 0px;
        padding: 2px;
    }

    .viewBox > .original {
        left: 0px;
    }

    .viewBox > .comped {
        right: 0px;
    }

    .viewBox > dl > dt {
        position: relative;
        font-size: 14px;
        height: 32px;
        width: 100%;
        line-height: 32px;
        padding-left: 8px;
    }

    .viewBox > dl > dd {
        position: relative;
        border: 1px solid #accbd9;
        background: url(/images/bgNull.gif) #F9FBFF center center repeat;
        background-size: 8px;
        width: 100%;
        height: calc(100% - 32px);
    }

        .viewBox > dl > dd > .img {
            display: flex;
            justify-content: center;
            align-items: center;
            color: #FFF;
            width: 100%;
            height: 100%;
            background: url(/images/nothum.png) rgba(0,0,0,0.4) center center no-repeat;
            background-size: contain;
        }

            .viewBox > dl > dd > .img:before {
                content: "";
                display: block;
                width: 100%;
                height: 100%;
                background-color: rgba(0,0,0,0);
            }
