
.calendar { border:1px solid #e5e8ee; color:#000; background:#fff; font-size: 130%; padding: 4px; }
.calendar * { text-align:center;  }
.calendar table		{ margin:0; border-collapse:collapse; width:210px !important; overflow:hidden; }
.calendar table th	{ width:auto; height:auto; padding:1px 1px; margin:0; border:none; }
.calendar table td	{ width:auto; height:auto; padding:1px 1px; margin:0; border:none; }

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

.calendar .button { /* "?", "x" buttons have this class */
  border-color: #e5e8ee;
  background:#fff;
}

.calendar .nav { /* "<<", "<", ">", ">>" buttons have this class */
   xborder:1px solid #666;
   xborder-left:none;
   xborder-right:none;
   xbackground:#e5e8ee;
}

.calendar thead .title { /* This holds the current "month, year" */
   font-weight:bold; 
   background-color: #fff;
   color: #001C54;
}

.calendar thead .headrow td { /* Row <TR> containing navigation buttons */
   border-top: 4px solid #D80028; 
   background-color: #e5e8ee;
   border-bottom: 4px solid #fff; 
}

.calendar thead .daynames { /* Row <TR> containing the day names */
}

.calendar thead .name { /* Cells <TD> containing the day names */
  background:#fff;
  border-bottom:1px solid #001C54;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
  background:#f2f2f2;
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
   background-color: #fef5da !important;
}

.calendar thead .active { /* Active (pressed) buttons in header */
  background:#e6ecf2 !important;
}

/* The body part -- contains all the days in month. */

.calendar tbody .day.othermonth {
  color: #333;
}
.calendar tbody .day.othermonth.oweekend {
  color: #633;
}

.calendar table .wn {
   background:#fff;
   border-right:1px solid #001C54;
}

.calendar tbody .rowhilite td {
}

.calendar tbody .rowhilite td.wn {
}


.calendar tbody td.weekend { /* Cells showing weekend days */
  background:#f2f2f2;
}

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

.calendar tbody td.hilite { /* Hovered cells <TD> */
   background-color: #fef5da;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
}

.calendar tbody td.selected { /* Cell showing selected date */
  background:#e6ecf2;
  color: #003c6e;
}

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

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
}

.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
}

/* 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> */
   border-top:1px solid #e5e8ee; 
   background:#fff;
   color:#777;
   width:50px;
   overflow:hidden;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
}

/* 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 #e5e8ee;
  background:#f6f6f6;
  font-size:90%;
  padding: 4px;
}

.calendar .combo .active {
  background-color: #eaeff4;
}

.calendar .combo .hilite {
  background-color: #fef5da;
  color: #000;
}
.calendar .history {
   width:6em !important; 
}

/* time */

.emptyrow   { display:none; }
.edges { background-color: #fffbee; }

.between {
   background-color: #fffbee;
}

.calendar tbody .disabled { text-decoration: line-through; color:#999; cursor:default; }

.calendar tbody .false,
.calendar .combo,
.calendar thead .button,
.calendar thead .day.name {
cursor:pointer; _cursor:hand; 
}
