﻿#ydbody {
    display: flex;
    flex-direction: row;
}

#leftmenu {
    width: 180px;
    background-color: #f0f0f0;
    height: 100%;
    z-index: 10;
    border-right: 1px solid #d2d2d2;
    flex-shrink: 0;
    flex-grow: 0;
}

    #leftmenu ul li a {
        color: #000;
        padding: 10px 30px;
        display: block;
        text-decoration: none;
        cursor: pointer;
    }

        #leftmenu ul li a:hover {
            background-color: #e8e8e8;
        }
#divMain{
    flex-shrink: 1;
    flex-grow: 1;
    display:flex;
    flex-direction:column;
}
#location {
    flex-shrink: 0;
    flex-grow: 0;
    line-height: 40px;
    height: 40px;
    background-color: #f7f7f7;
    overflow: hidden;
    border-bottom: 1px solid #d2d2d2;
    padding: 0 21px;
    z-index: 5;
}

    #location > div {
        font-size: 12px;
    }

        #location > div > a {
            text-decoration: none;
            cursor: pointer;
        }

            #location > div > a.gt::before {
                content: '';
                display: inline-block;
                width: 7px;
                height: 7px;
                border-top: 1px solid #000000;
                border-right: 1px solid #000000;
                transform: rotate(45deg);
                margin: auto 10px;
                cursor: default;
            }

    #location > span {
        padding: 2px 5px 0px 5px;
        float: right;
    }

    #location > a {
        background-image: url(/Clients/images/btn_icon.gif);
        float: right;
        width: 32px;
        height: 30px;
        margin-top: 5px;
        border: none;
        border-radius: 3px;
    }

    #location > .listStyle {
        background-position: -66px -237px;
    }

        #location > .listStyle:hover {
            background-position: -89px -140px;
        }

        #location > .listStyle.active {
            background-position: -66px -267px;
        }

    #location > .blockStyle {
        background-position: -100px -267px;
        margin-right: 10px;
    }

        #location > .blockStyle:hover {
            background-position: -123px -140px;
        }

        #location > .blockStyle.active {
            background-position: -100px -237px;
        }

#filelist {
    flex-shrink: 1;
    flex-grow: 1;
    overflow:auto;
}

    #filelist .panel {
        margin: 10px;
        border: 1px solid transparent;
        border-radius: 4px;
        -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
        border-color: #dddddd;
    }

    #filelist .panel-heading {
        border-bottom: 1px solid transparent;
        border-top-right-radius: 3px;
        border-top-left-radius: 3px;
        color: #333333;
        background-color: #f5f5f5;
        border-color: #dddddd;
        padding: 0;
        height: 40px;
        overflow: hidden;
    }

        #filelist .panel-heading > span {
            padding: 10px;
            height: 40px;
            float: left;
            position: relative;
            cursor: pointer;
        }

            #filelist .panel-heading > span:hover {
                background-color: #e8f5fd;
            }

            #filelist .panel-heading > span a {
                display: block;
                width: 20px;
                height: 20px;
                background-image: url(/Clients/images/btn_icon.gif);
                position: absolute;
                top: 10px;
                left: 75px;
                z-index: 100;
            }

            #filelist .panel-heading > span:first-child {
                width: 50%;
                padding: 0 0 0 10px;
            }

                #filelist .panel-heading > span:first-child > input {
                    vertical-align: sub;
                    cursor: default;
                }

                #filelist .panel-heading > span:first-child > label {
                    position: absolute;
                    width: 20px;
                    height: 20px;
                    top: 11px;
                    left: 6px;
                    z-index: 11;
                    background-color: transparent;
                }

                #filelist .panel-heading > span:first-child > span {
                    display: inline-block;
                    padding-left: 7px;
                    width: calc(100% - 20px);
                    padding: 10px;
                }

                    #filelist .panel-heading > span:first-child > span > a {
                        left: 85px;
                    }

    #filelist .panel-body {
        overflow: auto;
        padding: 0;
        margin: 0;
    }

        #filelist .panel-body .listStyle {
            padding-top: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid #ddd;
            font-size: 13px;
            height: 36px;
        }

            #filelist .panel-body .listStyle:last-child {
                border-bottom: none;
            }

            #filelist .panel-body .listStyle:hover, #filelist .panel-body .listStyle.active {
                background-color: #f0f8fd;
            }

            #filelist .panel-body .listStyle > span {
                float: left;
                padding: 0px 10px;
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }

                #filelist .panel-body .listStyle > span > input[type=checkbox] {
                    margin: 3px 7px 3px 0;
                }

                #filelist .panel-body .listStyle > span > label {
                    display: inline-block;
                    width: 22px;
                    height: 21px;
                    background-image: url(/Clients/images/sprite_list_icon.gif);
                    background-position: -4px -2px;
                    vertical-align: top;
                    margin-top: 1px;
                }

                #filelist .panel-body .listStyle > span > span {
                    cursor: pointer;
                }

                #filelist .panel-body .listStyle > span > input[type=text] {
                    color: #555;
                    background-color: #fff;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
                    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
                    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
                    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
                    vertical-align: top;
                    display: inline-block;
                    height: 22px;
                    line-height: 22px;
                    font-size: 14px;
                    padding: 0px 5px;
                    width: 220px;
                }

                    #filelist .panel-body .listStyle > span > input[type=text]:focus {
                        border-color: #66afe9;
                        outline: 0;
                        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
                        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
                    }

                #filelist .panel-body .listStyle > span > a {
                    cursor: pointer;
                    text-decoration: none;
                    vertical-align: top;
                    display: inline-block;
                    width: 22px;
                    height: 21px;
                    background-image: url(/Clients/images/btn_icon.gif);
                    background-position: 0px -513px;
                }

                    #filelist .panel-body .listStyle > span > a:last-child {
                        background-position: -27px -513px;
                    }

        #filelist .panel-body .blockStyle {
            width: 140px;
            height: 140px;
            float: left;
            position: relative;
            margin: 10px;
        }

            #filelist .panel-body .blockStyle > input[type=checkbox] {
                visibility: hidden;
                margin: 3px;
            }

            #filelist .panel-body .blockStyle > div {
                margin: auto;
                width: 92px;
                height: 92px;
                background-image: url(/Clients/images/property_icon_101.png);
                background-position: -24px 0;
                cursor: pointer;
            }

            #filelist .panel-body .blockStyle > p {
                text-align: center;
                overflow: hidden;
            }

            #filelist .panel-body .blockStyle:hover, #filelist .panel-body .blockStyle.active {
                box-shadow: 0px 0px 1px #89d1ff;
                border-radius: 5px;
                background-color: #f0f8fd;
            }

                #filelist .panel-body .blockStyle:hover input[type=checkbox], #filelist .panel-body .blockStyle.active input[type=checkbox] {
                    visibility: visible;
                    z-index: 11;
                }


.preview {
    z-index: 1002;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
}

    .preview a {
        position: absolute;
        z-index: 10;
        top: 0px;
        right: 0px;
        width: 30px;
        height: 30px;
        text-decoration: none;
        color: red;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        text-align: center;
        cursor: pointer;
        line-height: 30px;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;
        font-size: 30px;
    }

        .preview a span {
            display: block;
            width: 30px;
            height: 30px;
            transform: rotate(45deg);
            -ms-transform: rotate(45deg); /* IE 9 */
            -webkit-transform: rotate(45deg); /* Safari and Chrome */
            -o-transform: rotate(45deg); /* Opera */
            -moz-transform: rotate(45deg); /* Firefox */
        }

        .preview a:hover {
            background: red;
            color: white;
        }

#attachlink {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
    user-select: text;
}

    #attachlink div {
        margin-left: calc(50% - 95px);
        margin-top: 15%;
        width: 190px;
        height: 190px;
        background-color: white;
        padding: 20px;
    }

    #attachlink p {
        margin-top: 20px;
        text-align: center;
        color: white;
    }

#attachview {
}

    #attachview > img {
        max-width: 100%;
        max-height: 100%;
        position: absolute;
        box-shadow: 0 0 20px 2px #fff;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

#attachplay {
}

    #attachplay > video {
        max-width: 100%;
        max-height: 100%;
        position: absolute;
        box-shadow: 0 0 20px 2px #fff;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
