/* The main calendar widget.  DIV containing a table. */
.calendar {
	position: relative;
	display: none;
	border: 1px solid #D4D1BF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	box-shadow: 1px 2px 10px rgba(97,83,71,0.6);
	font-size: 10px;
	color: #615347;
	cursor: default;
	background: #E3E1D5;
	background-color: #E3E1D5;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#E3E1D5), to(#DEDCCD));
	background: -moz-linear-gradient(#E3E1D5, #DEDCCD);
	background: -ms-linear-gradient(#E3E1D5, #DEDCCD);
	background: -o-linear-gradient(#E3E1D5, #DEDCCD);
	background: linear-gradient(#E3E1D5, #DEDCCD);
}

.calendar table {
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-ms-border-radius: 6px;
	-o-border-radius: 6px;
	border-radius: 6px;
	font-size: 10px;
	color: #615347;
	cursor: default;
	border-collapse: separate;
	border-spacing: 1px;
}
.calendar td,
.calendar th {
	border: none;
	font: 11px Arial,Helvetica,sans-serif;
	margin: 2px;
	padding: 2px 2px 0;
}

/* Header part -- contains navigation buttons and day names. */

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  text-align: center;
  padding: 3px;
}

.calendar .nav {
	background: transparent url(images/menuarrow.gif) no-repeat 100% 100%;
	border: none;
	padding: 3px;
}
.calendar thead {
	-webkit-border-radius: 6px 6px 0 0;
	-moz-border-radius: 6px 6px 0 0;
	-ms-border-radius: 6px 6px 0 0;
	-o-border-radius: 6px 6px 0 0;
	border-radius: 6px 6px 0 0;
}
.calendar thead .title { /* This holds the current "month, year" */
  font-weight: bold;
  padding: 2px;
  border: 0px solid #615347;
  text-align: center;
}
.calendar thead td {
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	text-shadow: 0 1px 1px rgba(97,83,71,0.4);
}
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
	border-bottom: 1px solid #615347;
	background: #E3E1D5;
	color: #615347;
}
.calendar thead .headrow td {
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
}
.calendar thead .daynames { /* Row <TR> containing the day names */
	border-bottom: 1px solid #615347;
}

.calendar thead .name { /* Cells <TD> containing the day names */
	border-bottom: 1px solid #615347;
	background-color: #D4D1BF;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#D4D1BF), to(#C4C0B8));
	background: -moz-linear-gradient(#D4D1BF, #C4C0B8);
	background: -ms-linear-gradient(#D4D1BF, #C4C0B8);
	background: -o-linear-gradient(#D4D1BF, #C4C0B8);
	background: linear-gradient(#D4D1BF, #C4C0B8);
	padding: 2px;
	text-align: center;
}

.calendar thead .wn {
	border-bottom: 1px solid #615347;
	background-color: #D4D1BF;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#D4D1BF), to(#C4C0B8));
	background: -moz-linear-gradient(#D4D1BF, #C4C0B8);
	background: -ms-linear-gradient(#D4D1BF, #C4C0B8);
	background: -o-linear-gradient(#D4D1BF, #C4C0B8);
	background: linear-gradient(#D4D1BF, #C4C0B8);
	padding: 2px;
	text-align: center;
}
.calendar thead .weekend { /* How a weekend day name shows in header */
	color: #E52420;
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
	background-color: #9A8675;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#9A8675), to(#615347));
	background: -moz-linear-gradient(#9A8675, #615347);
	background: -ms-linear-gradient(#9A8675, #615347);
	background: -o-linear-gradient(#9A8675, #615347);
	background: linear-gradient(#9A8675, #615347);
	color: #F0EFE8;
}
.calendar thead .daynames .active {
	background-color: #9A8675;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#615347), to(#9A8675));
	background: -moz-linear-gradient(#615347, #9A8675);
	background: -ms-linear-gradient(#615347, #9A8675);
	background: -o-linear-gradient(#615347, #9A8675);
	background: linear-gradient(#615347, #9A8675);
}

.calendar thead .active { /* Active (pressed) buttons in header */
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	background-color: #D4D1BF;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#615347), to(#9A8675));
	background: -moz-linear-gradient(#615347, #9A8675);
	background: -ms-linear-gradient(#615347, #9A8675);
	background: -o-linear-gradient(#615347, #9A8675);
	background: linear-gradient(#615347, #9A8675);
	color: #F0EFE8;
}

/* The body part -- contains all the days in month. */
.calendar tbody .day.othermonth {
  font-size: 80%;
  color: #D4D1BF;
}
.calendar tbody .day.othermonth.oweekend {
  color: #D4D1BF;
}
.calendar tbody {
	background-color: #F0EFE8;
	border-left: none;
	border-right: none;
	border-bottom: 1px solid #9A8675;
	border-top: 1px solid #9A8675;
}
.calendar tbody .day { /* Cells <TD> containing month days dates */
  width: 2em;
  text-align: right;
  padding: 2px 4px 2px 2px;
}

.calendar table .wn {
  padding: 2px 8px 2px 2px;
  border-right: 1px solid #9A8675;
  background: #D4D1BF;
}
.calendar thead .wn {
	border-bottom: 1px solid #615347;
	background-color: #D4D1BF;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#D4D1BF), to(#C4C0B8));
	background: -moz-linear-gradient(#D4D1BF, #C4C0B8);
	background: -ms-linear-gradient(#D4D1BF, #C4C0B8);
	background: -o-linear-gradient(#D4D1BF, #C4C0B8);
	background: linear-gradient(#D4D1BF, #C4C0B8);
	padding: 2px;
	text-align: center;
}

.calendar tbody .rowhilite td {
	background: #E3E1D5;
}

.calendar tbody .rowhilite td.wn {
	color: #F0EFE8;
	background: #9A8675;
}


.calendar tbody td.weekend { /* Cells showing weekend days */
  color: #E52420;
}
.calendar tbody td.hilite { /* Hovered cells <TD> */
	color: #F0EFE8;
	background-color: #9A8675;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
	background-color: #9A8675;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

.calendar tbody td.selected { /* Cell showing selected date */
  font-weight: bold;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  background: #615347;
  color: #E3E1D5;
}

.calendar tbody td.today { /* Cell showing today date */
	font-weight: bold;
	text-shadow: 0 1px 1px rgba(97,83,71,0.4);
}

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

.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 {
	border-top: 1px solid #D4D1BF;
	-webkit-border-radius: 0 0 6px 6px;
	-moz-border-radius: 0 0 6px 6px;
	-ms-border-radius: 0 0 6px 6px;
	-o-border-radius: 0 0 6px 6px;
	border-radius: 0 0 6px 6px;
}
.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
	padding: 3px;
	border-top: 1px solid #D4D1BF;
	color: #615347;
	text-align: center;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
  padding: 1px;
  background: #E3E1D5;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  border: 1px solid #615347;
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo {
  position: absolute;
  display: none;
  width: 4em;
  top: 0px;
  left: 0px;
  cursor: default;
  border: 1px solid #D4D1BF;
  background: #E3E1D5;/*
  font-size: 90%;*/
  padding: 3px;
  z-index: 100;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
	text-align: center;
	margin: 1px 0;
	padding: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-o-border-radius: 2px;
	border-radius: 2px;
}

.calendar .combo .label-IEfix {
  width: 4em;
}

.calendar .combo .active {
	color: #F0EFE8;
	background: #9A8675;
}

.calendar .combo .hilite {
	color: #F0EFE8;
	background-color: #9A8675;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#9A8675), to(#615347));
	background: -moz-linear-gradient(#9A8675, #615347);
	background: -ms-linear-gradient(#9A8675, #615347);
	background: -o-linear-gradient(#9A8675, #615347);
	background: linear-gradient(#9A8675, #615347);
}

.calendar td.time {
  padding: 1px 0px;
  text-align: center;
  background-color: #E3E1D5;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 0px 3px 0px 4px;
  border: 1px solid #9A8675;
  font-weight: bold;
  background-color: #F0EFE8;
}

.calendar td.time .ampm {
  text-align: center;
}

.calendar td.time .colon {
  padding: 0px 2px 0px 3px;
  font-weight: bold;
}

.calendar td.time span.hilite {
  background-color: #9A8675;
  color: #F0EFE8;
}

.calendar td.time span.active {
  border-color: #E52420;
  background-color: #615347;
  color: #E52420;
}
