.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding-top: 74px;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
	transition: opacity 400ms ease-in;
	display: none;
	font: normal 22px Calibri;
	text-align: center;
}

.modalDialog a {
	cursor: pointer;
}


.modalDialog > .modalCal {
	display: inline-block;
	margin-top: 200px;
	width: 600px;
	background-color: white;
	padding: 0;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.cal_head {
	padding-top: 20px;
	color: white;
}
.cal_edit {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url("/img/table/edit.png");
	background-position: center;
	background-size: auto;
	background-repeat: no-repeat;
}
.cal_edit:hover {
	background-image: url("/img/table/edit_h.png");
}

.cal_date {
	display: inline-block;
	width: 540px;
	text-align: right;
}
.cal_title {
	padding-top: 20px;
	padding-bottom: 20px;
	margin-left: 20px;
	text-align: left;
}
.cal_center {
	padding-top: 20px;
	padding-bottom: 20px;
}
.cal_time, .cal_place, .cal_comment {
	display: block;
	width: 560px;
	height: 20px;
	padding: 0 20px;
	text-align: left;
}
.cal_comment {
	padding-top: 20px;
}

.modalDialog > .modalCenter {
	display: inline-block;
	width: 600px;
	background-color: #9adcfc;
	padding: 20px 0;
}
.modalDialog > .modalCenterWide {
	width: 710px;
}
.modalDialog > .modalCenter p{
	margin-bottom: 5px;
	color: #3d4552;
}
.modalDialog > .modalCenter hr {
	margin: 0;
	height: 1px;
	border: 0;
	background-color: #8ccff4;
}
.modalDialog > .modalCenter .inputs span{
	display: inline-block;
	font: normal 16px Ubuntu;
	margin-left: 50px;
	text-align: left;
	width: 410px;
	color: #3d4552;
}
.modalDialog > .modalCenterWide .inputs span{
	width: 510px;
}
.modalDialog > .modalCenter .inputs input, .modalDialog > .modalCenter .inputs select{
	font: normal 14px Ubuntu;
	border: 1px solid #6fb4e3;
	margin: 0;
	margin-right: 50px;
	outline: none;
	text-align: center;
	background-color: #fff;
	color: #3d4552;
	padding: 3px;
}
.modalDialog > .modalCenter .inputs input {
	height: 22px;
	width: 77px;
}
.modalDialog > .modalCenter .inputs select {
	height: 30px;
	width: 85px;
}

.modalDialog > .modalCenter .center{
	text-align: center;
}
.modalDialog > .modalCenter .center span{
	text-align: center;
}
.modalDialog > .modalCenter .left{
	text-align: left;
}

.modalDialog > .modalCenter .big span{
	width: 348px;
}
.modalDialog > .modalCenterWide .big span{
	width: 170px;
}
.modalDialog > .modalCenter .big input{
	width: 130px;
}
.modalDialog > .modalCenter .big select{
	width: 138px;
}
.modalDialog > .modalCenterWide .big input{
	width: 408px;
}
.modalDialog > .modalCenterWide .big select{
	width: 440px;
}
.modalDialog > .modalCenter .centerSeparate, .modalDialog > .modalCenterWide .centerSeparate{
	background-color: #bae7fd;
	border-top: 1px solid #8ccff4;
	border-bottom: 1px solid #8ccff4;
	margin-bottom: 30px;
}
.modalDialog > .modalCenter .centerSeparate span, .modalDialog > .modalCenterWide .centerSeparate span {
	width: 270px;
	text-align: right;
	margin-right: 8px;
	margin-left: 0;
}
.modalDialog > .modalCenter .centerSeparate input, .modalDialog > .modalCenterWide .centerSeparate input {
	width: 100px;
}
.modalDialog > .modalCenter .empty {
	height: 30px;
}

.modalDialog > .modalCenter .wide span{
	width: 480px;
	margin-right: 50px;
}
.modalDialog > .modalCenterWide .wide span{
	width: 600px;
}
.modalDialog > .modalCenter .wide input{
	width: 475px;
	margin-left: 50px;
}
.modalDialog  > .modalCenter .wide input[type="file"]{
	padding: 3px;
	width: 492px;
	height: 22px;
}
.modalDialog > .modalCenter .wide select{
	width: 495px;
	margin-left: 50px;
}

.modalDialog > .modalCenter .column{
	display: inline-block;
	vertical-align: top;
	width:50%;
}
.modalDialog > .modalCenter .column span{
	width: 170px;
}
.modalDialog > .modalCenter .column:first-child span{
	margin-left: 50px;
}
.modalDialog > .modalCenter .column:first-child input{
	margin-right: 0;
}
.modalDialog > .modalCenter .column:last-child span{
	margin-left: 0;
}
.modalDialog > .modalCenter .column:last-child input{
	margin-right: 50px;
}
.switcher {
	position: relative;
	margin-top: 15px;
	margin: 0 auto;
	padding: 0;
	text-align: center;
	
	/*width: 70px;*/
	width: -moz-fit-content;
	width: fit-content;
}
.switcher:before {
	content: "";
	display: block;
	
	position: absolute;
	top: -5px;
	left: -30px;
	height: 21px;
	width: 20px;
	
	background-image: url(../img/switcher/flag_red.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}
.switcher:after {
	content: "";
	display: block;
	
	position: absolute;
	top: -5px;
	left: 75px;
	height: 21px;
	width: 20px;
	
	background-image: url(../img/switcher/flag_green.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.switcher[before], .switcher[after]{
	/*width: 100%;*/
}
.switcher[before]:before{
	content:attr(before) !important;
	background-image: none;
	font: normal 16px Ubuntu;
	color: #3d4552;
	left: -50px;
	width: -moz-fit-content;
	width: fit-content;
}
.switcher[after]:after{
	content:attr(after) !important;
	background-image: none;
	font: normal 16px Ubuntu;
	color: #3d4552;
	width: -moz-fit-content;
	width: fit-content;
}


.switcher > input {
	display: none;
}

/*Текстовый блок справа*/
.switcher > label {
	position: relative;
	
	display: inline-block;
	line-height: 12px;
	vertical-align: top;
	
	padding-left: 75px;

	font-size: 14px;
	color: #ccc;
	cursor: pointer;

	

	transition: color .1s linear;
}
/*полоска на заднем плане*/
.switcher > label:before {
	content: "";
	display: block;
	width: 66px;
	height: 14px;

	background-color: #859aa8;
	border-radius: 10px;

	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;

	transition: background-color .1s linear;
}
/*кружок*/
.switcher > label:after {
	content: "";
	display: block;
	width: 22px;
	height: 22px;

	background-color: #fa7678;
	border-radius: 50%;

	position: absolute;
	top: -4px;
	left: -4px;
	z-index: 2;

	transition: transform .1s linear;
}
/*Текстовый блок справа когда checked*/
.switcher > input:checked + label {
	color: #000;
}
/*полоска на заднем плане когда checked*/
.switcher > input:checked + label:before {
	background-color: #e5e5e5;
}
/*кружок когда checked*/
.switcher > input:checked + label:after {
	background-color: #00a651;
	transform: translateX(52px);
}





.modalDialog .modalBottom {
	width: 100%;
	height: 50px;
	border-top: solid 1px #e5e8ee;
	text-align: center;
}
.modalDialog .modalBottom > a{
	display: inline-block;
	line-height: 40px;
	padding: 5px;
	margin: 5px;
	text-decoration: none;
}
.modalDialog .modalBottom > input[type="submit"]{
	cursor: pointer;
	width: 150px;
	height: 40px;
	background-color: #14b0e7;
	color: white;
	text-align: center;
}
.modalDialog .modalBottom > .save:hover{
	
}

.modalDialog .modalBottom > .close {
	cursor: pointer;
	width: 150px;
	height: 40px;
	color: #7e848c;
}
.modalDialog .modalBottom > .close:hover {
	
}