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

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

.ie7 .dialogblocker,
.ie8 .dialogblocker {
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
}

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

.pbdialogcontainer {
	border: 1px solid #fff;
	border-radius: 2px;
	text-align: left; /** reset body text-align center if necessary */
	background: #fff;
	-moz-box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
	-webkit-box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
	box-shadow: 0 25px 15px -5px rgba(0, 0, 0, 0.15), 0 9px 15px -7px rgba(0, 0, 0, 0.6);
}

/**
 * top bar
 */
.pbdialogcontainer .top {
	position: relative;
	z-index: 1; /** pos over resize handler */
	height: 30px;
	background: hsl(180, 2%, 85%);
	-webkit-border-radius: 2px 2px 0 0;
	border-bottom: 1px solid #ddd;
	border-radius: 2px 2px 0 0;
	cursor: move;
}

/**
 * top bar title
 */
.pbdialogcontainer .top span.title {
	font-weight: bold;
	position: absolute;
	top: 7px;
	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;
	border-left: 1px solid #ddd;
	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;
}
