
table {

	border-collapse: separate;
	border: 1px solid #9DABCE;
	border-width: 0px 0px 1px 1px;
	margin: 10px auto;
	font-size: 16px;
}
table th:nth-of-type(1n+1) {
text-align: center;
width:41px;
height: 41px;
text-align: center;
background: #104E8B !important; 
font-size: 13px;
font-weight: 500; 
color: #ffffff;
border: 1px solid #fff; /* Рамка вокруг ячеек */
}

td, th {
	width: 41px;
	height: 41px;
	text-align: center;
	vertical-align: middle;
	background: url(../img/cells.png);
	color: #444;
	position: relative;
}
th {
	height: 41px;
	font-weight: bold;
	font-size: 13px;
}
td:hover, th:hover {
	background-position: 0px -41px;
	color: #222;
}

td.date_has_event {
	background-position: -41px 0px;
	color: white;
}
td.date_has_event1 {
	background-position: -0px 0px;
	color: white;
	
}
td.date_has_event2 {
	background-position: 0px 0px;
	color: white;
}

td.date_has_event:hover {
	background-position: -41px -41px;

}
td.date_has_event1:hover {
	background-position: 0px -41px;
}
td.date_has_event2:hover {
	background-position: 0px -41px;
}


td.padding {
	background: url(../img/calpad.jpg);
}
td.today {
	background-position: 41px 0px;
	color: white;
}
td.today:hover {
	background-position: 41px -41px;
}
.events, .events1 {
	position: relative;
}
.events2 {
	position: relative;
}


.events ul, .events1 ul {
	text-align: left;
	position: absolute;
	display: none;
	z-index: 1000;
	padding: 10px;
	background: #E7ECF2 url(../img/popup.png) no-repeat;
	color: white;
	border: 1px solid white;
	font-size: 15px;
	width: 350%;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	-border-radius: 3px;
	list-style: none;
	color: #444444;
	-webkit-box-shadow: 0px 8px 8px #333;
}
.events2 ul {
	text-align: left;
	position: absolute;
	display: none;
	z-index: 1000;
	padding: 10px;
	background: #E7ECF2 url(../img/popup.png) no-repeat;
	color: white;
	border: 1px solid white;
	font-size: 15px;
	width: 350%;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	-border-radius: 3px;
	list-style: none;
	color: #444444;
	-webkit-box-shadow: 0px 8px 8px #333;
}


.events li span, .events1 li span {
	display: inline;
	font-size: 12px;
	text-align: justify;
	color: #555;
}
.events2 li span {
	display: inline;
	font-size: 12px;
	text-align: justify;
	color: #555;
}
.events li span.title, .events1 li span.title {
	color: #222;
}
.events li:before, .events1 li:before {
	display:none !important;
}
.events2 li span.title {
	color: #222;
}

.events li, .events1 li {
	padding-bottom: 5px;
	list-style:none !important;
	margin:0 !important;
	line-height: 16px !important;
}
.events2 li {
	padding-bottom: 5px;
	list-style:none !important;
	margin:0 !important;
	line-height: 16px !important;
}

