/*
 * Iframe used for IE only. The calendar DIV is placed in this iframe
 * to ensure that any combo-boxes that sit behind the calendar popup
 * do not show through the calendar div (to combat IE bug).
 */
iframe#calendar-container-iframe {
  z-index:3;
  position: absolute;
  top: 0px;
  left: 0px;
  display: none;
  height: 216px;
}

/* IE iframe with 1 calendar month. */
iframe.calendar-container-iframe-1 {
  width: 183px;
}

/* IE iframe with 2 calendar month1. */
iframe.calendar-container-iframe-2 {
  width: 358px;
}

/* IE iframe with 3 calendar months. */
iframe.calendar-container-iframe-3 {
  width: 533px;
}

/* IE iframe with 4 calendar months. */
iframe.calendar-container-iframe-4 {
  width: 708px;
}

/* Main calendar container div - this is the frame the user sees. */
div#calendar-container {
  border: solid 1px #808080;
  background-color: #f2f2f2;
  z-index: 14;
  position: absolute;
  top: 0px;
  left: 0px;
  height: 187px;
  display: none;
  float: left;
}

/* Main calendar div with 1 calendar month. */
div.calendar-container-1 {
  width: 181px;
}

/* Main calendar div with 2 calendar months. */
div.calendar-container-2 {
  width: 356px;
}

/* Main calendar div with 3 calendar months. */
div.calendar-container-3 {
  width: 531px;
}

/* Main calendar div with 4 calendar months. */
div.calendar-container-4 {
  width: 706px;
}

/* Padding between outer frame and calendar month DIVs. */
div#calendar-container div.cal-padding {
  padding-top: 0.2em;
  padding-left: 0.3em;
}

/* Calendar month div. */
div.calendar {
  background-color: #f2f2f2;
  display: inline;
  float: left;
  height: 181px;
  width: 175px;
  padding: 0;
  margin: 0;
  border: none;
  font-family: Verdana, Arial;
  font-size: 11px;
}

/* Calendar header div (contains month text and prev/next buttons). */
div.calendar div.months {
  display: block;
  width: 175px;
  height: 18px;
  text-align: center;
}

/* Previous month button/arrow. */ 
div.calendar div.months div.prev {
  width: 25px;
  display: inline;
  float: left;
  cursor: pointer;
  margin-top: 5px;
}

/* Month/year text display div. */
div.calendar div.months div.this {
  font-weight: bold;
  font-family: arial; 
  width: 125px;
  display: inline;
  float: left;
  margin-top: 5px;
}

/* Next month button/arrow. */ 
div.calendar div.months div.next {
  width: 25px;
  display: inline;
  float: right;
  cursor: pointer;
  margin-top: 5px;
}

/* Calendar grid container. */
div.calendar div.calendar-grid { 
  width: 15em;
  border-bottom: solid 1px #cccccc;
}

/* Calendar grid row. */
div.calendar div.row { 
  width: 16em;
  height: 1.95em;
  display: block;
  clear: both;
}

/*
 * Calendar grid cell. Note that borders are set on these divs,
 * while cell sizes are set on the 'box' div. This ensures that the
 * cell sizes are consistent across Mozilla-based browers and IE.
 */
div.calendar div.row span.cell { 
  display: inline;
  float: left;
  border-top: solid 1px #cccccc;
  border-right: solid 1px #cccccc;
}

/* Cell to the left in a row. */
div.calendar div.row span.cell-left { 
  border-left: solid 1px #cccccc;
}

/* Cell in the bottom row. */
div.calendar div.row span.cell-bottom { 
  border-bottom: solid 1px #cccccc;
}

/* Cell in header row. */
div.calendar div.calheader span.cell { 
  border-top: solid 1px #f2f2f2;
  border-right: solid 1px #f2f2f2;
  font-weight: bold;
}

/* Cell to the left in header row. */
div.calendar div.calheader span.cell-left { 
  border-left: solid 1px white;
}

/* Box that sits inside a cell (determines its size). */
div.calendar div.row span.cell div.box { 
  width: 2.09em;
  height: 1.95em;
  line-height: 1.95em;
  text-align: center;
}

/* Normal, selectable calendar day. */
div.calendar span.cell div.calendar-day-normal {
  background-color: #ffffff;
  color: #0066cc;
  cursor: pointer;
}

/* Normal, selectable calendar day - mouse over style. */
div.calendar span.cell div.calendar-day-normal:hover { 
  background-color: #0066cc;
  color: #ffffff;
  cursor: pointer;
} 

/* Current calendar day (today). */
div.calendar span.cell div.calendar-day-today {
  background-color: #EBEBEB;
  color: #7F8A93;
  cursor: pointer;
  font-weight: bold;
}

/* Current calendar day (today) - mouse over style. */
div.calendar span.cell div.calendar-day-today:hover {
  background-color: #0066cc;
  color: #7F8A93;
  cursor: pointer;
  font-weight: bold;
}

/* Currently selected calendar day. */
div.calendar span.cell div.calendar-day-selected {
  background-color: #ffffff;
  color: #FF5C00;
  cursor: pointer;
  font-weight: bold;
}

/* Currently selected calendar day - mouse over style. */
div.calendar span.cell div.calendar-day-selected:hover {
  background-color: #0066cc;
  color: #FF5C00;
  cursor: pointer;
  font-weight: bold;
}

/* Calendar day that cannot be selected (before allowed date). */
div.calendar span.cell div.calendar-day-before {
  background-color: #cccccc;
  color: #a8a8a8;
  cursor: pointer;
}

/*
 * Calendar day that is in another month. Note that you might want to hide
 * these dates by setting the foreground and background colours to be the
 * same colour.
 */
div.calendar span.cell div.calendar-day-other {
  background-color: #cccccc;
  color: #a8a8a8;
}

/* Calendar input field (displayed on page). */
input.date {
  width: 90%;
  text-align: left;
  /*background-color: white;*/
  height: 25px;
}

/*
 * Rows containing control functions - fits in below calendar months.
 * Control functions are:
 *  - "Match any" (reset) button.
 *  - Time-of-day input field (for combined date and time input).
 */
div.calendar-controls div.controls-row {
  clear: both;
  height: 19px;
  width: 100%;
  display: block;
}

/* "Match any" button. */
div.calendar-controls div.controls-row div.anybutton {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  cursor: pointer;
  width: 130px;
  height: 16px;
  text-align: center;
  color: #999999;
  font-family: Verdana, Arial;
  text-align: center;
  padding: 0px;
}

/* Time-of-day input field. */
div.calendar-controls div.controls-row input.calclock {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  width: 132px;
  height: 18px;
  color: #000000;
  font-family: Verdana, Arial;
  text-align: center;
  padding: 0px;
}

/* Used to ensure that DIVs wrap to the next line. */
div.clear { 
  clear: both;
  height: 0px;
}

.leftcell-sidebar-date {
	/* width: 80%; */
	width: 38px;
	/* float: right; */
	float: left;
	clear:both;
	text-align:center;
	padding: 0;
	line-height:1.5;
	vertical-align:middle;
	height:30px;
	margin-bottom:5px;
}

.rightcell-sidebar-date {
	width:200px;
	float:right;
	text-align:left;
	/* font-weight:bold; */
	vertical-align:middle;
	min-height:30px;
	margin-bottom:5px;
}
