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

.calendar {
  position: relative;
  display: none;
  border: 2px solid #425A66;
  font-size: 11px;
  color: #425A66;
  cursor: default;
  background: #DFE5E8;
  font-family: tahoma,verdana,sans-serif;}

.calendar table {
  border: 1px solid #fff;
  font-size: 11px;
  color: #425A66;
  cursor: default;
  background: #DFE5E8;
  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 #425A66;
  border-bottom: 1px solid #425A66;
  border-left: 1px solid #fff;}

.calendar thead .title { /* This holds the current "month, year" */
  font-weight: bold;
  padding: 1px;
  border: 1px solid #425A66;
  background: #8BAAB9;
  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 #425A66;
  padding: 2px;
  text-align: center;
  background: #f4f0e8;}
  
/* How a weekend day name shows in header */
.calendar thead .weekend {color: #FF6A07;}

/* How do the buttons in header appear when hover */
.calendar thead .hilite { 
  border-top: 2px solid #fff;
  border-right: 2px solid #425A66;
  border-bottom: 2px solid #425A66;
  border-left: 2px solid #fff;
  padding: 0;
  background: #e4e0d8;}
  
/* Active (pressed) buttons in header */
.calendar thead .active { 
  padding: 2px 0px 0px 2px;
  border-top: 1px solid #425A66;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #425A66;
  background: #c4c0b8;}

/***************************************** 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 #425A66;
  background: #f4f0e8;}

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

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

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

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

/* Cell showing selected date */
.calendar tbody td.selected { 
  font-weight: bold;
  border-top: 1px solid #425A66;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #425A66;
  padding: 2px 2px 0px 2px;
  background: #e4e0d8;}
  
/* Cells showing weekend days */
.calendar tbody td.weekend {color: FF6A07;}

.calendar tbody td.today { /* Cell showing today date */
  font-weight: bold;
  color: #00f;}

.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 */

/* The <TR> in footer (only one right now) */
.calendar tfoot .footrow {}

/* Tooltip (status bar) cell <TD> */
.calendar tfoot .ttip { 
  background: #f4f0e8;
  padding: 1px;
  border: 1px solid #425A66;
  background: #8BAAB9;
  color: #fff;
  text-align: center;}

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

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

/* 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 #425A66;
  border-bottom: 1px solid #425A66;
  border-left: 1px solid #fff;
  background: #e4e0d8;
  font-size: smaller;
  padding: 1px;}

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

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

.combo .hilite {
  background: #048;
  color: #fea;}
