/***
Customized Bootstrap Modal 
***/
.modal .h4, h4 {
    font-size: 18px;
}
.modal {
	z-index: 10050;
	outline: none;
	overflow-y: auto !important;
	/* Fix content shifting to the right on modal open due to scrollbar closed */
}

.page-portlet-fullscreen .modal {
	z-index: 10060;
}

.modal .modal-header {
	border-bottom: 1px solid #EFEFEF;
}

.modal .modal-header h3 {
	font-weight: 300;
}

.modal .modal-header .close {
	margin: 0;
	padding: 0;
	margin-top: 0px !important;
}

.modal.draggable-modal .modal-header {
	cursor: move;
}

.modal .modal-dialog {
	z-index: 10051;
}

.modal>.loading {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
}

.modal.in .page-loading {
	display: none;
}

.modal-open {
	overflow-y: auto !important;
}

.modal-open-noscroll {
	overflow-y: hidden !important;
}

.modal-backdrop {
	border: 0;
	outline: none;
	z-index: 10049;
}

.page-portlet-fullscreen .modal-backdrop {
	z-index: 10059;
}

.modal-backdrop,
.modal-backdrop.fade.in {
	background-color: #333 !important;
}


/* Full width modal */

.modal-full.modal-dialog {
	width: 99%;
}

@media (max-width: 768px) {
	.modal-full.modal-dialog {
		width: auto;
	}
}

.modal .modal-content {
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-o-border-radius: 2px;
	border-radius: 2px;
	border: 0;
}

.modal .modal-content .modal-title {
	font-weight: 400;
}

.modal .modal-content .modal-footer {
	border: 0;
}

.modal-backdrop.in {
	opacity: 0.2;
	filter: alpha(opacity=20);
}


/***
Bootstrap bootbox
***/
.bootbox .modal-content {
	padding: 0.75rem;
}
.bootbox .modal-content .modal-body{
	    padding: 0.25rem;
}
.bootbox .modal-content .bootbox-close-button.close {
    margin-right: -5px !important;
    margin-top: -10px !important;
    /*font-size: 25px;*/ 
    position: absolute;
    right: 21px;
}

/***
Bootstrap Modal
***/


/* fix: content shifting to the right on modal open */

.modal-open.page-overflow .page-container,
.modal-open.page-overflow .page-container .navbar-fixed-top,
.modal-open.page-overflow .page-container .navbar-fixed-bottom,
.modal-open.page-overflow .modal-scrollable {
	overflow-y: auto !important;
}

.modal-scrollable {
	overflow: hidden !important;
}


/* BS 3.3.1 fix */

.modal-backdrop {
	position: fixed;
	bottom: 0;
}

.modal-scrollable {
	overflow: hidden !important;
	z-index: 10051;
	overflow-y: scroll !important;
}

.modal {
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-o-border-radius: 2px;
	border-radius: 2px;
	border: 0 !important;
}

.modal .modal-body {
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-o-border-radius: 2px;
	border-radius: 2px;
	border: 0;
}

.modal .modal-title {
	font-weight: 400;
}

.modal .modal-footer {
	border: 0 !important;
}

.modal-backdrop,
.modal-backdrop.fade.in {
	opacity: 0.2;
	filter: alpha(opacity=20);
}

.my-modal .modal-dialog {
	width: 1000px;
	height: 90%;
	overflow-y: hidden;
}

.modal .modal-content {
	height: 100%;
}

.my-modal .modal-body {
	height: 100%;
}

.my-modal .bootbox-body {
	height: 100%;
}


/***
Customized Bootstrap Close Icon 
***/

.close {
	display: inline-block;
	margin-top: 0px;
	margin-right: 0px;
	width: 9px;
	height: 9px;
	/*background-repeat: no-repeat !important;*/
	/*text-indent: -10000px;*/
	outline: none;
	/*background-image: url("../img/remove-icon-small.png") !important;*/
}

.my-submodal .modal-dialog {
	width: 900px;
	height: 90%;
	overflow-y: hidden;
}

.modal .modal-content {
	height: 99%;
}

.my-submodal .modal-body {
	height: 99%;
}

.my-submodal .bootbox-body {
	height: 94%;
}



/*bootstrap*/

.close {
	float: right;
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
	filter: alpha(opacity=20);
	opacity: .2
}

.close:focus,
.close:hover {
	color: #000;
	text-decoration: none;
	cursor: pointer;
	filter: alpha(opacity=50);
	opacity: .5
}

button.close {
	-webkit-appearance: none;
	padding: 0;
	cursor: pointer;
	background: 0 0;
	border: 0
}

.modal-open {
	overflow: hidden
}

.modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	display: none;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	outline: 0
}

.modal.fade .modal-dialog {
	-webkit-transition: -webkit-transform .3s ease-out;
	-o-transition: -o-transform .3s ease-out;
	transition: transform .3s ease-out;
	-webkit-transform: translate(0, -25%);
	-ms-transform: translate(0, -25%);
	-o-transform: translate(0, -25%);
	transform: translate(0, -25%)
}

.modal.in .modal-dialog {
	-webkit-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	transform: translate(0, 0)
}

.modal-open .modal {
	overflow-x: hidden;
	overflow-y: auto
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: 10px
}

.modal-content {
	position: relative;
	background-color: #fff;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	border: 1px solid #999;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 6px;
	outline: 0;
	-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
	box-shadow: 0 3px 9px rgba(0, 0, 0, .5)
}

.modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	background-color: #000
}

.modal-backdrop.fade {
	filter: alpha(opacity=0);
	opacity: 0
}

.modal-backdrop.in {
	filter: alpha(opacity=50);
	opacity: .5
}

.modal .modal-header {
	min-height: 33px;
	padding: 0.25rem;
	border-bottom: 1px solid #e5e5e5
}

.modal .modal-header .close {
	margin-top: -2px
}

.modal .modal-title {
	margin: 0;
	/*line-height: 1.42857143px;*/
}

.modal .modal-body {
	position: relative;
	padding: 0.25rem
}

.modal .modal-footer {
	padding: 15px;
	text-align: right;
	border-top: 1px solid #e5e5e5
}

.modal-footer .btn+.btn {
	margin-bottom: 0;
	margin-left: 5px
}

.modal-footer .btn-group .btn+.btn {
	margin-left: -1px
}

.modal-footer .btn-block+.btn-block {
	margin-left: 0
}

.modal-scrollbar-measure {
	position: absolute;
	top: -9999px;
	width: 50px;
	height: 50px;
	overflow: scroll
}


/*晓枫*/
@media (min-width: 576px){
	.modal .modal-dialog {
		max-width: 570px;
		width: 560px;
		margin: 30px auto 0;
	}
}

@media (min-width:768px) {
	.modal .modal-dialog {
		max-width: 760px;
		width: 750px;
		margin: 30px auto 0;
	}
	.modal .modal-content {
		-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
		box-shadow: 0 5px 15px rgba(0, 0, 0, .5)
	}
	.modal .modal-sm {
		width: 300px
	}
}

@media (min-width:900px) {
	.my-modal .modal-dialog {
		max-width: 850px;
		width: 800px;
	}
}
@media (min-width:1000px) {
	.my-modal .modal-dialog {
		max-width: 950px;
		width: 900px;
	}
}
@media (min-width:1100px) {
	.my-modal .modal-dialog {
		max-width: 1050px;
		width: 1000px;
	}
}
@media (min-width:1200px) {
	.my-modal .modal-dialog {
		max-width: 1150px;
		width: 1100px;
	}
}
@media (min-width:1300px) {
	.my-modal .modal-dialog {
		max-width: 1250px;
		width: 1200px;
	}
}
@media (min-width:1400px) {
	.my-modal .modal-dialog {
		max-width: 1350px;
		width: 1300px;
	}
}
@media (min-width:1500px) {
	.my-modal .modal-dialog {
		max-width: 1450px;
		width: 1400px;
	}
}
@media (min-width:1600px) {
	.my-modal .modal-dialog {
		max-width: 1550px;
		width: 1500px;
	}
}
@media (min-width:1700px) {
	.my-modal .modal-dialog {
		max-width: 1650px;
		width: 1600px;
	}
}
@media (min-width:1800px) {
	.my-modal .modal-dialog {
		max-width: 1750px;
		width: 1700px;
	}
}
@media (min-width:1900px) {
	.my-modal .modal-dialog {
		max-width: 1850px;
		width: 1800px;
	}
}
.fade.in {
    opacity: 1;
}

.bootbox_.modal-content {
	border: none;
	box-shadow: none;
}
.bootbox_ .modal-footer {
	justify-content: space-around;
}