/**
 * @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved.
 * @package Focus/Finance
 * This package can be modified by the licencee, but the license is non-transferrable.
 */

.genericPopup {
	position: fixed;
	z-index: 999;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-align: center;
}

.genericPopup:before {
	content: '';
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: transparent;
	background: rgba(0, 0, 0, .25);
}

.genericPopup:after {
	content: '';
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

.genericPopupContent {
	position: relative;
	z-index: 2;
	display: inline-block;
	vertical-align: middle;
	margin: -13px;
	max-width: 95%;
	max-height: 95%;
	text-align: left;
}

.genericPopupClose {
	position: absolute;
	z-index: 3;
	bottom: 100%;
	right: 100%;
	margin: -13px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	border: 3px solid #FFF;
	border-radius: 100%;
	background-color: #666;
	box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.15);
	color: #FFF;
	text-align: center;
	font-weight: bold;
	cursor: pointer;

	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

.genericPopupClose:hover {
	background-color: #888;
}

.genericPopup .genericPopupElement {
	display: block !important;
	margin: 0 !important;
	max-height: 90vh;
	max-width: 90vw;
	box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.15);
	border: 4px solid rgba(102, 170, 221, 0.5);
	overflow: auto;
}
