/* calendar root element */
#calroot {
	/* place on top of other elements. set a higher value if nessessary */
	z-index: 10000;

	margin-top: -1px;
	width: 205px;
	background-color: #fff;
}

#calbody {
	border: 1px solid @drk_grey;
	.border-bottom-radius(@brd_rad);
}

/* head. contains title, prev/next month controls and possible month/year selectors */
#calhead {
	padding: 2px 0;
	height: 20px;
	background: @drk_grey;
	.border-top-radius(@brd_rad);
}

#caltitle {
	font-size: 1.1em;
	color: white;
	float: left;
	text-align: center;
	width: 162px;
	line-height: 20px;
}

#calnext, #calprev {
	display: block;
	width: 20px;
	height: 20px;
	background: transparent url(../datetime-sprite.png) no-repeat scroll 0 -20px;
	float: left;
	cursor: pointer;
}

#calnext {
	background-position: 0 0;
	float: right;
}

#calprev.caldisabled, #calnext.caldisabled {
	visibility: hidden;
}

/* year/month selector */
#caltitle select {
	font-size: 10px;
}

/* names of the days */
#caldays {
	height: 18px;
	border-bottom: 1px solid #ddd;
}

#caldays span {
	display: block;
	float: left;
	width: 29px;
	text-align: center;
}

/* container for weeks */
#calweeks {
	margin-top: 4px;

	.sly-has-time & {
		border-bottom: 1px solid #ddd;
	}
}

/* single week */
.calweek {
	clear: left;
	height: 22px;
}

/* single day */
.calweek a {
	display: block;
	float: left;
	width: 28px;
	height: 20px;
	text-decoration: none;
	margin-left: 1px;
	text-align: center;
	line-height: 20px;
	color: @drk_grey;
	.border-radius(3px);
}

/* different states */
.calweek a:hover, .calfocus {
	background-color: @md_grey;
	color: white;
}

/* sunday */
a.calsun {
	color: red;
}

/* offmonth day */
a.caloff {
	color: #ccc;
}

a.caloff:hover {
	background-color: rgb(245, 245, 250);
}


/* unselecteble day */
a.caldisabled {
	background-color: #efefef !important;
	color: #ccc	!important;
	cursor: default;
}

/* current day */
#calcurrent {
	background-color: @link_color;
	color: #fff;
}

/* today */
#caltoday {
	background-color: @md_grey;
	color: #fff;
}

/* drag handle */
.sly-jqt-handle {
	height: 13px;
	position: absolute;
	top: -5px;
	width: 12px;
	cursor: pointer;
	background: @md_grey;
	border: 1px solid @drk_grey;
	.border-radius(@brd_rad);
}

/* datetime sliders */
.sly-date-slider {
	width: 150px;
	height: 7px;
	cursor: pointer;
	position: relative;
	float: left;
	margin: 8px 2px;
	background: @lt_grey;
	border: 1px solid @md_grey;
	.border-radius(2px);
}

.sly-date-range {
	width: 20px;
	margin: 3px 0 3px 3px;
	border: 0 none;
	text-align: right;
}

/* input[type=range] sliders */
.sly-range-slider {
	width: 150px;
	height: 7px;
	cursor: pointer;
	position: relative;
	float: left;
	margin: 8px 2px;
	background: @lt_grey;
	border: 1px solid @md_grey;
	.border-radius(2px);
}

.sly-range-range {
	margin: 3px 0 3px 3px;
	border: 0 none;
}
