/* -------------------------------------------------- */
/* The main calendar widget.  DIV containing a table. */
/* -------------------------------------------------- */

.calendar {
	position: relative;
	display: none;
	border-top: 2px solid #fff;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	border-left: 2px solid #fff;
	font-size: 11px;
	color: #999;
	cursor: default;
	background: #f8f8f8;
	font-family: tahoma,verdana,sans-serif;
}

/* Combo boxes (menus that display months/years for direct selection) */
.combo {
	position: absolute;
	display: none;
	width: 4em;
	top: 0px;
	left: 0px;
	cursor: default;
	border-top: 1px solid #fff;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	border-left: 1px solid #fff;
	background: #f8f8f8;
	font-size: smaller;
	padding: 1px;
}

.calendar table {
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
	font-size: 11px;
	color: #999;
	cursor: default;
	background: #f8f8f8;
	font-family: tahoma,verdana,sans-serif;
}

/* Header part -- contains navigation buttons and day names. */
/* "<<", "<", ">", ">>" buttons have this class */
.calendar .button {
	text-align: center;
	padding: 1px;
	border-top: 1px solid #fff;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	border-left: 1px solid #fff;
}

.combo .label {
	text-align: center;
	padding: 1px;
}

.combo .active {
	background: #F8F8F8;
	padding: 0px;
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
}

.combo .hilite {
	background: #999999;
	color: #91C7FF;
}

/* This holds the current "month, year" */
.calendar thead .title {
	font-weight: bold;
	padding: 1px;
	border: 1px solid #999;
	background: #999999;
	color: #fff;
	text-align: center;
}

/* Row <TR> containing navigation buttons */
.calendar thead .headrow {
}

/* Row <TR> containing the day names */
.calendar thead .daynames {
}

/* Cells <TD> containing the day names */ 
.calendar thead .name {
	border-bottom: 1px solid #999;
	padding: 2px;
	text-align: center;
	background: #E0E0E0;
}

/* How a weekend day name shows in header */
/* How do the buttons in header appear when hover */
.calendar thead .hilite {
	border-top: 2px solid #fff;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	border-left: 2px solid #fff;
	padding: 0px;
	background: #F8F8F8;
}

/* Active (pressed) buttons in header */
.calendar thead .active {
	padding: 2px 0px 0px 2px;
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
	background: #DBD7EF;
}

/* -------------------------------------------------- */
/* The body part -- contains all the days in month. */
/* -------------------------------------------------- */
/* Cells <TD> containing month days dates */
.calendar tbody .day {
	width: 2em;
	text-align: right;
	padding: 2px 4px 2px 2px;
}

.calendar table .wn {
	padding: 2px 3px 2px 2px;
	border-right: 1px solid #999;
	background: #E0E0E0;
}

.calendar tbody .disabled {
	color: #999;
}

/* Empty cells (the best is to hide them) */
.calendar tbody .emptycell {
	visibility: hidden;
}

/* Empty row (some months need less than 6 rows) */
.calendar tbody .emptyrow {
	display: none;
}

/* -------------------------------------------------- */
/* The footer part -- status bar and "Close" button   */
/* -------------------------------------------------- */
.calendar tfoot 
/* The <TR> in footer (only one right now) */
.footrow {
}

/* Tooltip (status bar) cell <TD> */
.calendar tfoot .ttip {
	background: #F3E9FA;
	padding: 1px;
	border: 1px solid #999;
	background: #91c7ff;
	color: #fff;
	text-align: center;
}

/* Hover style for buttons in footer */
.calendar tfoot .hilite {
	border-top: 1px solid #fff;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	border-left: 1px solid #fff;
	padding: 1px;
	background: #DADCEE;
}

/* Active (pressed) style for buttons in footer */
.calendar tfoot .active {
	padding: 2px 0px 0px 2px;
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
}

/* Hovered cells <TD> */
.calendar tbody td.hilite {
	padding: 1px 3px 1px 1px;
	border-top: 1px solid #fff;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	border-left: 1px solid #fff;
}

/* Active (pressed) cells <TD> */
.calendar tbody td.active {
	padding: 2px 2px 0px 2px;
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
}

/* Cell showing selected date */
.calendar tbody td.selected {
	font-weight: bold;
	border-top: 1px solid #999;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #999;
	padding: 2px 2px 0px 2px;
	background: #F8F8F8;
}

/* Cells showing weekend days */
/* Cell showing today date */
.calendar tbody td.today {
	font-weight: bold;
	color: #91C7ff;
}

.calendar thead .weekend, .calendar tbody td.weekend {
	color: #64AFFF;
}

.calendar tbody .rowhilite td, .calendar tbody .rowhilite td.wn {
	background: #F8F8F8;
}

