.dialog--isOpen body {
    overflow: hidden;
}

html body#empty {
    margin: 0;
    padding: 0 15px;
}

.enlarge-image {
    display: block;/** icon over enlargable image */
}

.imageInDialog {
    position: relative;
}

.has-js .enlarge-image {
    position: absolute;
    left: -999em;
}

.has-js .imageInDialog:hover .enlarge-image {
    right: 1px;
}

.imageInDialog img:hover {
    cursor: url(/ui/uibase/cursor/enlarge.cur), url(/ui/uibase/cursor/enlarge.png), pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    box-shadow: 0 2px 7px -2px #000;
}

.dialogblocker {
    background: rgba(0,0,0,0.5) none;
}

.dialogblockerwait {
    background: rgba(0, 0, 0, 0.5) url(##pathui##/img/loading.svg) no-repeat 50% 50%;
}

.pbdialogcontainer {
    border-radius: 3px;
    text-align: left; /** reset body text-align center if necessary */
    background: #fff;
    box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

@media screen and (max-width: 460px) {
    .dialog--isOpen {
        overflow: hidden;
        background: url(##pathui##/img/loading.svg) no-repeat 50% 50%;
    }
}

@media (max-width: 460px) {
    .pbdialogcontainer {
        top: 1vw !important;
        left: 1vw !important;
        width: 98vw !important;
        height: 98vh !important;
    }

    .middle3 {
        height: 98vh !important;
        width: 98vw !important;
    }
}

@media (max-height: 460px) {
    .pbdialogcontainer {
        top: 1vw !important;
        left: 1vw !important;
        width: 98vw !important;
        height: 98vh !important;
    }

    .middle3 {
        height: 98vh !important;
        width: 98vw !important;
    }
}

/**
 * top bar
 */
.pbdialogcontainer .top {
    position: relative;
    z-index: 1; /** pos over resize handler */
    height: 0;
    cursor: move;
}

/**
 * top bar title
 */
.pbdialogcontainer .top span.title {
    font-weight: bold;
    position: absolute;
    top: 3px;
    left: 15px;
    font-size: 11px;
    color: #666;
    cursor: default;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 50px;
}

.pbdialogcontainer .top span.title img {
    margin-right: 4px;
    vertical-align: top;
}

/**
 * buttons
 */
.pbdialogcontainer .top span.buttons {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    text-align: right;
}

.pbdialogcontainer .top .buttons a {
    text-align: left;
    text-indent: -999em;
}

.pbdialogcontainer .top span.buttons a.close {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    background: url(/ui/uibase/img/icon_close2.png) 50% 50% no-repeat;
    opacity: 0.9;
}

.pbdialogcontainer .top span.buttons a.maximize {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    border-left: 1px solid #ddd;
    background: url(/ui/uibase/img/icon_maximize2.png) 50% 50% no-repeat;
    opacity: 0.9;
}

.pbdialogcontainer .top span.buttons a:hover {
    background-color: #fff;
    opacity: 1;
}

/**
 * middle
 */
.pbdialogcontainer .middle2::before {
    position: absolute;
    top: -10px;
    left: -16px;
    height: 98%;
    width: 100%;
    border: 16px solid rgba(0,0,0,0); /** Contents cover all of dialogbox. Dialogbox must have border for resize handler */
    border-bottom-width: 20px;
    content: '';
}

/**
 * bottom edge
 */
.pbdialogcontainer .bottom {
    height: 0;
}

.pbdialogcontainer .bottom div {
    position: relative;
    left: -18px;
    width: 18px;
    height: 16px;
}

.pbdialogcontainer .bottom span.resize-ridge {
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: url(/ui/uibase/img/dialog_resize_ridge.png);
    cursor: se-resize;
}

/**
 * Notices
 * Notices allways open in #empty variant...
 */

#empty .notice li {
    padding-right: 9em; /** space to place the closebutton */
}

#empty .notice span.closebutton {
    background: none;
    text-indent: 0;
    width: auto;
    font-size: .9em;
    height: auto;
    line-height: 1.2em;
}
