
.viewform-open {
    overflow: hidden;
}

    body.viewform-open,
    .viewform-open .navbar-fixed-top,
    .viewform-open .navbar-fixed-bottom {
        margin-right: 15px;
    }

.viewform-header:hover {
    cursor: move;
}

.viewform {
    position: fixed;
    /*top: 100px;
    left: 150px;*/
    /*right: 0;*/
    /*bottom: 0;*/
    /*z-index: 100;*/
    display: none;
    /*overflow: auto;*/
    /*overflow-y: scroll;*/
    padding: 0,0,0,0;
    margin-right: auto;
    margin-left: auto;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

    .viewform.fade .viewform-dialog {
        -webkit-transform: translate(0, -25%);
        -ms-transform: translate(0, -25%);
        transform: translate(0, -25%);
        -webkit-transition: -webkit-transform 0.3s ease-out;
        -moz-transition: -moz-transform 0.3s ease-out;
        -o-transition: -o-transform 0.3s ease-out;
        transition: transform 0.3s ease-out;
    }

    .viewform.in .viewform-dialog {
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        transform: translate(0, 0);
    }

.viewform-dialog {
    z-index: 1050;
    width: auto;
    padding: 0px;
    margin-right: auto;
    margin-left: auto;
}

.viewform-content {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #999999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    outline: none;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
}

.viewform-backdrop {
    border: 1px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    background-color: #000000;
}

    .viewform-backdrop.fade {
        border: 10px;
        opacity: 0;
        filter: alpha(opacity=0);
    }

    .viewform-backdrop.in {
        border: 10px;
        opacity: 0.5;
        filter: alpha(opacity=50);
    }

.viewform-header {
    min-height: 16.428571429px;
    padding: 5px;
    border-bottom: 1px solid #e5e5e5;
}

.viewform-header-btn-close {
    float: right;
    opacity: 0.2;
    cursor: pointer;
    background: 0 0;
    border: 0;
    margin-top: 3px;
    margin-right: 5px;
}

.viewform-title {
    margin: 0;
    line-height: 1.428571429;
}

.viewform-body {
    position: relative;
    padding: 10px;
}

.viewform-footer {
    padding: 5px 20px 5px; /*vincent:20px 20px 20px;*/
    /*vincent:margin-top: 15px;*/
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

    .viewform-footer:before,
    .viewform-footer:after {
        display: table;
        content: " ";
    }

    .viewform-footer:after {
        clear: both;
    }

    .viewform-footer:before,
    .viewform-footer:after {
        display: table;
        content: " ";
    }

    .viewform-footer:after {
        clear: both;
    }

    .viewform-footer .btn + .btn {
        margin-bottom: 0;
        margin-left: 5px;
    }

    .viewform-footer .btn-group .btn + .btn {
        margin-left: -1px;
    }

    .viewform-footer .btn-block + .btn-block {
        margin-left: 0;
    }

@media screen and (min-width: 768px) {
    .viewform-dialog {
        right: auto;
        left: 50%;
        width: auto; /*vincent:auto;old value:600px;*/
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .viewform-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
}
