/*
	Dialog - overlay window Extranet2 style
	--------------------------------------------------
*/

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

.dialog--isOpen.dialog--isConfirmDialog body {
	overflow: auto;
}

.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,.3) none;
}

.dialogblockerwait {
	background: rgba(0,0,0,.35) url(/ui/uibase/img/loader-white.svg) no-repeat 50% / 3.5em;

}

/**
 * Outer container
 */

.pbdialogcontainer {
	border: 1px solid #fff;
	border-radius: 8px;
	text-align: left; /** reset body text-align center if necessary */
	background: #fff;
	box-shadow: var(--mi-shdw-5);
}

@keyframes showLoader {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.pbDialog__loader {
	position: absolute;
	left: 50%;
	top: 50%;
	display: block !important;
	margin-left: -21px;
	margin-top: -5px;
	z-index: 100;
	animation: showLoader .2s 1s forwards;
	opacity: 0;
}

/**
 * top bar
 */

.pbdialogcontainer .top {
	position: relative;
	z-index: 1; /** pos over resize handler */
	height: 48px;
	border-radius: 2px 2px 0 0;
}

.pbdialogcontainer--draggingEnabled .top {
	cursor: move;
}

.pbdialogcontainer--isConfirmDialog .top {
	position: absolute;
	width: 100%;
}

/**
 * top bar title
 */

.pbdialogcontainer .top span.title {
	display: block;
	padding: 0 60px 0 15px;
	font-size: 15px;
	line-height: 48px;
	color: #222;
	z-index: 2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

/**
 * buttons
 */

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

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

.pbdialogcontainer .top span.buttons a.maximize {
	display: block;
	float: left;
	margin-top: 9px;
	width: 30px;
	height: 30px;
	background: url(/ui/uibase/img/icon_maximize3.png) 50% 50% no-repeat;
	background-size: 14px;
	opacity: 0.5;
}

.pbdialogcontainer .top span.buttons a:hover {
	opacity: 1;
}

/**
 * middle
 */

.pbdialogcontainer .middle2 {
    margin-top: 1px;
    margin-bottom: -1px;
}

.pbdialogcontainer .middle3 {
    margin-left: 1px;
    margin-right: -1px;
}

.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: "";
}

.pbdialogcontainer--isConfirmDialog .middle1 {
	position: relative;
	z-index: 10;
}

/**
 * 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;
}
