/* modal styles */
.common-modal {
	display:none;position:fixed;z-index:10998;left:0;top:0;width:100%;height:100%;;overflow:auto;cursor:pointer;
	background-color:rgba(0,0,0,0.3);
}

.common-modal-animation{
	background-color:rgba(0,0,0,0.3);
	-webkit-transition: translate3d(0,0,0);
	-webkit-backface-visibility: hidden;
	/*
	background:url('/resources/img/bg_gray_line_mask.png');
	
	*/
}

.modal-content {
	/*position: fixed;*/
	position:relative;
	/*
    z-index:10998;
    top:0;
    left:0;
	right: 0;
	bottom: 0;
	*/
	margin: auto;
	width: 100%;
	height:100%;
	max-width: 90%;
	margin-left:auto;
	margin-right:auto;
	min-height: 160px;
	max-height: 90%;
	margin-top: 5%;
	margin-bottom: 5%;
    background-color: #fff;
    border-radius: 5px;
	border: 1px solid rgba(0,0,0,0.3);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
    box-sizing:border-box;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    cursor:default;
    overflow-y:auto;
}
.extra-double-large-modal > .modal-content{
	max-width: 1400px;
	margin-left:auto;
	margin-right:auto;
	max-height: 740px;
	margin-top: calc(50vh - 370px);
	margin-bottom: calc(50vh - 370px);
}
.extra-large-modal > .modal-content{
	max-width: 800px;
	margin-left:auto;
	margin-right:auto;
	max-height: 740px;
	margin-top: calc(50vh - 370px);
	margin-bottom: calc(50vh - 370px);
}
.large-modal > .modal-content{
	max-width: 640px;
	margin-left:auto;
	margin-right:auto;
	max-height: 740px;
	margin-top: calc(50vh - 370px);
	margin-bottom: calc(50vh - 370px);
}
.medium-modal > .modal-content{
	max-width: 480px;
	margin-left:auto;
	margin-right:auto;
	max-height: 480px;
	margin-top: calc(50vh - 240px);
	margin-bottom: calc(50vh - 240px);
}
.small-modal > .modal-content{
	max-width: 320px;
	margin-left:auto;
	margin-right:auto;
	max-height: 320px;
	margin-top: calc(50vh - 160px);
	margin-bottom: calc(50vh - 160px);
}
.calculator-modal > .modal-content{
	max-width: 1600px;
	margin-left:auto;
	margin-right:auto;
	max-height: 860px;
	margin-top: calc(50vh - 430px);
	margin-bottom: calc(50vh - 430px);
}
.calculator-modal .modal-body{
	padding:0px !important;
	height: calc(100% - 3.6rem) !important;
}
.modal-content .modal-header{
	background-color: #434f5d;
    padding: 0.7rem 1.2rem;
    cursor:move;
}
.modal-content .modal-header h2{
	float:left;
	font-size:1.4rem;
	font-weight: 400;
	color:#fff;
	vertical-align: middle;
}
.modal-content .modal-header .modal-close{
	float:right;
	right:1.4rem;
    padding: 0px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    cursor:pointer;
    vertical-align: middle;
}

.modal-body{
	padding: 1.5rem;
	height: calc(100% - 110px);
}
.modal-body-split{
	clear: both;
	padding:0px;
}
.modal-body-split > div {
	padding:15px;
	box-sizing: border-box;
}
.modal-body > .modal-body-30{
	float:left;
	width:30%;
	height: 100%;
	overflow: auto;
}
.modal-body > .modal-body-40{
	float:left;
	width:40%;
	height: 100%;
	overflow: auto;
}
.modal-body > .modal-body-50{
	float:left;
	width:50%;
	height: 100%;
	overflow: auto;
}
.modal-body > .modal-body-60{
	float:left;
	width:60%;
	height: 100%;
	overflow: auto;
}
.modal-body > .modal-body-70{
	float:left;
	width:70%;
	height: 100%;
	overflow: auto;
}
.modal-body .title-txt {
    font-weight: 600;
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}
.modal-body .title-txt:after{
    content: "";
    margin-top: 0.7rem;
    border-top: 1px solid #313131;
    display: block;
    width: 100%;
    max-width: 3rem;
    margin-left: auto;
    margin-right: auto;
}
.modal-body form label{
	display: block;
	padding: 0.3rem 0;
	margin: 0.3rem 0;
	border-bottom:1px solid #ddd;
	
}
.modal-body form label[data-mandatory=Y] span:after{
	content: "*";
	color:red;
}
.modal-body form label span{
	display: inline-block;
	font-weight: 600;
	min-width:120px;
	margin-right:1rem;
}
.modal-body form label input{
	display: inline-block;
	min-width: 300px; 	
}
.modal-body form label input[type=checkbox]{
	min-width: auto;
}
.modal-body form label select{
	display: inline-block;
	min-width: 150px; 	
}
.modal-body form div.form-button-wrapper{
	text-align: center;
	padding: 0.4rem;
	margin-top:1rem;
}
.modal-body form div.form-button-wrapper > input{
	padding: 0.6rem 1.8rem;
	border:1px solid #00aab9;
	border-radius:3px;
	background-color: #00aab9;
	color:#fff;
	font-weight: 600;
	cursor:pointer;
}

.modal-footer{
    margin-top: 0;
    padding: 0 1.5rem 1.5rem;
    border-top: 0;
    text-align: center;
}