/* The main calendar widget.  DIV containing a table. */

#calendar-container{
	border-top: 1px solid #999;
}

div.calendar 	{ 
	position: relative; 	
	border-left: 1px solid #999999; 
	border-bottom: 1px solid #999999; 
	border-right: 1px solid #999999;
}

.calendar, .calendar table {
	color: #333;
	cursor: default;
	background: #EAEAEA;
}

.calendar table {
	width: 100%;
	border-collapse: collapse;
}

/* Header part -- contains navigation buttons and day names. */

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
	text-align: center;    /* They are the navigation buttons */
	/* padding: 2px;          Make the buttons seem like they're pressing */
}

.calendar td {
	cursor:pointer;
}

.calendar thead tr {
	background: #E2E2E4;
	color:#333;
	height: 22px;
}

.calendar thead .title { /* This holds the current "month, year" */
	text-align: center;
	color:#333;
	padding: 2px;
	cursor:default;
	background:#e2e2e4;
	font-size: 0.75em;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
	/* color: #fff;*/
}
.calendar thead, .calendar thead .headrow td, .calendar tr, .calendar td {
	vertical-align: middle;
}
.calendar thead .headrow .next {
	background:#E2E2E4 url(../img/bg_calendarnext.gif) no-repeat right 2px;
}
.calendar thead .headrow .previous {
	background:#E2E2E4 url(../img/bg_calendarprevious.gif) no-repeat 0 2px;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
	background: #FFF !important;
	height: 23px;
	font-size: 0.625em;
}

.calendar thead .daynames td { /* Extra push for IE */
	background: #FFF !important;
}

.calendar thead .name { /* Cells <TD> containing the day names */
	text-align: center;
	color:#666;
	text-transform: uppercase;
	font-weight: bold;		
	border-top: 1px solid #999999;
}

/* The body part -- contains all the days in month. */
.calendar .daysrow{	
}

.calendar tbody{
	background: #CCC;
}

.calendar tbody, .calendar table, .calendar tr, .calendar td{
	text-align: center !important;
}


.calendar tbody .day{ /* Cells <TD> containing month days dates */
	color: #333;
	text-align: center;
	font-size: 0.625em;	
	width: 22px;
	font-weight: bold;
	padding-bottom: 0 !important;
	background: #CCC;
}

.calendar tbody .day a { 
	color: #333;
	display: block;
	padding: 4px 4px;
	margin-top: 1px;
	margin-left: 1px;
	background: #F4F4F4;
	text-decoration: none;
}

.calendar tbody .day a:hover {
	color:#000;
	background: #fff;
}

.calendar tbody .day.over a{
	color: #837f7f;
}
.calendar tbody .day.notexist a{
	color: #999999;
}
.calendar tbody tr.today{
	background: #F4F4F4;
	height: 24px;
}

.calendar tbody tr.today td{
	background: #F4F4F4;
}

.calendar tbody .day.todayborder  { 
	
}
.calendar tbody .day.todayborder a { 	
	background-color:#E4E4E2;
	color:#333333;
}

/*  a.whitelink { color:white; text-decoration:none; padding-left: 10px; } */

.calendar tbody .day.special a {
	color: #630000;
}
.calendar tbody .day.othermonth.special a {
	color: #fff;
}

.calendar table .wn {
	padding: 2px 3px 2px 2px;
	border-right: 1px solid #000;
	background: #bdf;
}

.calendar tbody tr.today td {
	text-align:left;
	color:#A50019;
	padding:2px 0 2px 0px;
	border-top: 1px solid #CCC;
	cursor:pointer;
	font-size: 0.688em;
	text-align: center;
}

.calendar tbody tr.today td a {
	color:#A50019 !important;	
}

.calendar tbody .day.selected a{ /* Cell showing today date */
	background-color: #A50019;
	color: #fff;
}


.calendar tbody .disabled { color: #999; }

.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) */
	text-align: center;
	background: #556;
	color: #fff;
	display:none;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
	background: #fff;
	color: #445;
	border-top: 1px solid #556;
	padding: 1px;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
	background: #aaf;
	border: 1px solid #04f;
	color: #000;
	padding: 1px;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
	background: #77c;
	padding: 2px 0px 0px 2px;
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo {
	position: absolute;
	display: none;
	top: 0px;
	left: 0px;
	width: 4em;
	cursor: default;
	border: 1px solid #fff;
	background: #860000;
	color: #fff;
	font-size: 90%;
	z-index: 100;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
	text-align: center;
	padding: 1px;
}

.calendar .combo .label-IEfix {
	width: 4em;
}

.calendar .combo .hilite {
	background: #fff;
	color: #000;
}

.calendar .combo .active {
	background: #fff;
	color: #000;
	font-weight: bold;
}

.calendar td.time {
	border-top: 1px solid #000;
	padding: 1px 0px;
	text-align: center;
	background-color: #f4f0e8;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
	padding: 0px 3px 0px 4px;
	border: 1px solid #889;
	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: #667;
	color: #fff;
}

.calendar td.time span.active {
	border-color: #f00;
	background-color: #000;
	color: #0f0;
}

.totime, .totime:hover {
	color: #FFFFFF;
	text-decoration: none;
}

