.modalbox
{
	display:none;
	position:absolute;
	z-index:999;
	overflow:hidden;
	background:#ffffff;
	/*border:1px solid #333;
	*/
	-moz-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Firefox */
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Safari и Chrome */
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Параметры тени */
	/*filter: progid:DXImageTransform.Microsoft.shadow(direction=120, color=#000000, strength=10);*/
	min-width: 300px;
    min-height: 100px;
}
.modalbox .modalbox_header
{
	height:48px;
	background:#001422;
	/*background-image:url('/templates/korabel2/images/modalbox/modalbox_header_bg.png');*/
	/*padding:14px;*/
	position:relative;
	/*width:100%;*/
	cursor:move;
	display:block;
	overflow:hidden;
}
.modalbox .modalbox_header .title
{
	margin-right: 44px;
    margin-left: 14px;
	font:normal 24px/30px 'PT Serif',Geneva,Kalimati,sans-serif;
	line-height: 50px;
	color:#fff;
	word-wrap:normal;
}
.modalbox .modalbox_header .closer
{
	width:20px;
	height:20px;
/*	float:right;*/
	position:absolute;
	right:10px;
	top:15px;
	/*padding:15px;*/
	/*margin-right:30px;*/
	/*
	padding:8px 8px 0 0;*/
}
.modalbox .modalbox_header .closer span
{
	position:relative;
	display:block;
	width:20px;
	height:20px;
/*	background-image:url('/templates/korabel2/images/modalbox/modalbox_header_closer.png');
*/	cursor:pointer;
	color: #fff;
    font-size: 22px;
}
.modalbox .modalbox_body
{
	background:#f8f8f8;
	overflow-y:auto;
	overflow-x:hidden;
	padding:10px;
	box-sizing: border-box;
}

@media screen and (max-width: 800px){
	.modalbox .modalbox_body
	{
		padding:5px;
	}
	.modalbox .modalbox_header .title
	{
		font-size:20px;
	}
}

/*.modalbox .modalbox_body .mb_button{
	position:relative;
	display:block;
	float:left;
	margin:0;
	padding:5px;
	
	color:#454545;
	text-decoration: none; 
    text-align: center;
    font: bold 11px/normal 'lucida grande', tahoma, verdana, arial, sans-serif; 
    white-space: nowrap; 
	
	background-color: #eee;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#e3e3e3));
    background-image: -moz-linear-gradient(#f5f5f5, #e3e3e3);
    background-image: -o-linear-gradient(#f5f5f5, #e3e3e3);
    background-image: linear-gradient(#f5f5f5, #e3e3e3);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5', EndColorStr='#e3e3e3');
	-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
    -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
	
	border: 1px solid #a4a4a4;
	border-radius:2px;
	cursor:pointer;
}

.modalbox .modalbox_body .mb_button:hover,
.modalbox .modalbox_body .mb_button:focus,
.modalbox .modalbox_body .mb_button:active {
    border-color:#777;
	text-decoration: none; 
}
.modalbox .modalbox_body .mb_button:active {
    border-color: #aaa;
    background: #ddd;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.modalbox .modalbox_body .mb_button.blue
{
	border-color: #29447E;
    color: #fff;

	
    background-color: #253643;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#253643), to(#0d202f));
    background-image: -moz-linear-gradient(#253643, #0d202f);
    background-image: -o-linear-gradient(#253643, #0d202f);
    background-image: linear-gradient(#253643, #0d202f);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#253643', EndColorStr='#0d202f'); 
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #2b406d;
    -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #2b406d;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #2b406d;
}
.modalbox .modalbox_body .mb_button.blue:active{
    border-color: #29447E;
    background: #091925;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
*/

.modalbox_overlay 
{
/*	width:100%;
	height:100%;
*/	position: fixed;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
}

.myalert_overlay
{
	top:0; left:0;
	position:fixed;
	display:none;
	z-index:780;
	width:100%;
	height:100%;
	background:#000;
}
.myalert{
	position:fixed;
	display:none;
	width:300px;
	
	background:#4a4a4a;
	border:2px solid #2e2e2e;
	
	left:50%; top:50%;
	/*margin-left:-151px;*/
	z-index:789;
	
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	
	-webkit-box-shadow:0 0 7px rgba(0,0,0,.3);
	-moz-box-shadow:0 0 7px rgba(0,0,0,.3);
	-o-box-shadow:0 0 7px rgba(0,0,0,.3);
	box-shadow:0 0 7px rgba(0,0,0,.3);
	
	padding:0 15px;
	color:#fff;
}
.myalert .myalert_title{
	position:relative;
	display:block;
	width:100%;
	line-height:18px;
	font-size:16px;
	font-weight:bold;
	padding:10px 0 5px 0;
	border-bottom:1px dotted #f0f0f0;
	float:left;
}
.myalert .myalert_title .myalert_icon
{
	position:relative;
	display:block;
	width:16px;
	height:16px;
	margin:2px 5px 2px 0;
	float:left;
}
.myalert .myalert_title .myalert_icon.ok{
	background-image:url('myalert_iok.png');
}
.myalert .myalert_title .myalert_icon.warning{
	background-image:url('myalert_iwarning.png');
}
.myalert .myalert_title span{
	position:relative;
	display:block;
	float:left;
	
}
.myalert .myalert_body{
	position:relative;
	display:block;
	line-height:14px;
	font-size:12px;
	padding:5px 0;
	float:left;
}
.myalert .myalert_footer{
	position:relative;
	display:block;
	width:100%;
	height:45px;
	margin-top:15px;
	float:left;
}
.myalert .button_ok{
	position:relative;
	display:inline-block;
	width:92px;
	height:92px;
	left:50%;
	margin-left:-41px;
	background-image:url('myalert_ok.png');
	background-repeat:no-repeat;
	background-position:0 0;
}
.myalert .button_ok:hover{
	background-position:0 -93px;
}


/* fixes New */
.kfwcw_td{
	padding:0;
	vertical-align:top;
}
.kfwcw_td.top{
	/*height:71px;*/
	height:30px;
}

.modalbox .modalbox_body input[type=button].modalstyle,
.modalbox .modalbox_body input[type=submit].modalstyle{
	position:relative;
	cursor:pointer;
	padding:5px 15px;
	background-color:#ededed;
	background-color:rgba(237, 237, 237, .75);
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 2px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75);
	color: #444;
	text-shadow: 0 1px 0 #F0F0F0;
}
.modalbox .modalbox_body input[type=button].modalstyle:hover,
.modalbox .modalbox_body input[type=submit].modalstyle:hover{
	background-color:#f0f0f0;
	background-color:rgba(240, 240, 240, .75);
	border-color: rgba(0, 0, 0, 0.3);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95);
	color: #000;
}
.modalbox .modalbox_body input[type=button].modalstyle:active,
.modalbox .modalbox_body input[type=submit].modalstyle:active{
	background-color:rgba(231, 231, 231, .75);
	box-shadow: none;
	text-shadow: none;
}