/* The main calendar widget.  DIV containing a table. */

div.calendar {
	position: relative;
}

.calendar {
	font-size: 11px;
	color: #333;
	cursor: default;
	background: #FFF;
	font-family: tahoma,verdana,sans-serif;
}

.calendar table {
	border: 1px solid #CCC;
	font-size: 11px;
	color: #333;
	cursor: default;
	background: #FFF;
	font-family: tahoma,verdana,sans-serif;
}

/* Header part -- contains navigation buttons and day names. */

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
	height: 20px;
	text-align: center;
	padding: 2px;
	border-top: 1px solid #FFF;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	border-left: 1px solid #FFF;
	background-color: #DDD;
	color: #666;
}

.calendar .nav {
	border-top: 1px solid #FFF;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	border-left: 1px solid #FFF;
	background: #DDD;
}

.calendar thead .title { /* Top cell with Month, Year */
	color: #333;
	padding: 2px;
	border-top: 1px solid #FFF;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	border-left: 1px solid #FFF;
	background-color: #DDD;
	text-align: center;
	height: 20px;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
}

.calendar thead .daynames { /* Row <TR> containing the day names */
}

.calendar thead .name {
	/* Cells <TD> containing the day names */
	height: 20px;
	width: 20px;
	text-align: center;
	padding: 2px;
	color: #FFF;
	background: #777;
	border-top: 1px solid #AAA;
	border-right: 1px solid #666;
	border-bottom: 1px solid #666;
	border-left: 1px solid #AAA;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
	border-top: 1px solid #FFF;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	border-left: 1px solid #FFF;
	padding: 2px;
	background-color: #FAFAFA;
	color: #333;
}

.calendar thead .active { /* Active (pressed) buttons in header */
	border-top: 1px solid #888;
	border-right: 1px solid #EEE;
	border-bottom: 1px solid #EEE;
	border-left: 1px solid #888;
	padding: 3px 1px 1px 3px;
	background-color: #BBB;
}

/* The body part -- contains all the days in month. */

.calendar tbody .day { /* Cells <TD> containing month days dates */
	height: 20px;
	width: 20px;
	text-align: center;
	padding: 3px;
}

.calendar tbody .day.othermonth {
	color: #bbb;
}

.calendar tbody .day.othermonth.oweekend {
	color: #fbb;
}

.calendar table .wn {
	padding: 2px 3px 2px 2px;
	border-right: 1px solid #AAA;
	background: #EEE;
	color: #666;
}

.calendar tbody .rowhilite td {
	background: #F8F8EA;
}

.calendar tbody .rowhilite td.wn {
	background: #F8F8EA;
}

.calendar tbody td.hilite {
	/* Hovered cells <TD> */
	padding: 3px;
	background: #F3F2C7;
}

.calendar tbody td.active {
	/* Active (pressed) cells <TD> */
	padding: 3px 1px 1px 3px;
	border-top: 1px solid #666;
	border-right: 1px solid #EEE;
	border-bottom: 1px solid #EEE;
	border-left: 1px solid #666;
	background: #EAE89D;
}

.calendar tbody td.selected { /* Cell showing selected date */
	padding: 2px;
	border: 1px solid #C8C16C;
	background: #EAE89D;
}

.calendar tbody td.weekend { /* Cells showing weekend days */
}

.calendar tbody td.today {
	/* Cell showing today date */
	font-weight: bold;
}

.calendar tbody .disabled {
	color: #222;
}

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  visibility: hidden;
}

.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  display: none;
}

/* The footer part -- status bar and "Close" button */

.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
	height: 20px;
	background: #DDD;
	padding: 4px;
	text-align: center;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
  background: #faa;
  border: 1px solid #f40;
  padding: 3px;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  background: #c77;
  padding: 2px 0px 0px 2px;
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo {
	position: absolute;
	display: none;
	width: 24px;
	top: 0px;
	left: 0px;
	cursor: default;
	border: 1px solid #AAA;
	background: #F8F8EA;
	color: #333;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
	text-align: center;
	padding: 2px;
}

.calendar .combo .label-IEfix {
	width: 24px;
}

.calendar .combo .hilite {
	background: #EAE89D;
	padding: 2px;
}

.calendar .combo .active {
	background: #EAE89D;
	padding: 2px;
}

.calendar td.time {
  border-top: 1px solid #a88;
  padding: 1px 0px;
  text-align: center;
  background-color: #fed;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 0px 3px 0px 4px;
  border: 1px solid #988;
  font-weight: bold;
  background-color: #fff;
}

.calendar td.time .ampm {
  text-align: center;
}

.calendar td.time .colon {
  padding: 0px 2px 0px 3px;
  font-weight: bold;
}

.calendar td.time span.hilite {
  border-color: #000;
  background-color: #866;
  color: #fff;
}

.calendar td.time span.active {
  border-color: #f00;
  background-color: #000;
  color: #0f0;
}

