
.calendar { border:1px solid #666; color:#666; background:#fff; font-size:1em; }
.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: #d4d0c8 #404040 #404040 #d4d0c8;
  background:#adadad;
}

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

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

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
}

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

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

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

.calendar thead .hilite { /* How do the buttons in header appear when hover */
}

.calendar thead .active { /* Active (pressed) buttons in header */
}

/* 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:#eee;
   border-right:1px solid #666;
}

.calendar tbody .rowhilite td {
}

.calendar tbody .rowhilite td.wn {
}

.calendar tbody td.hilite { /* Hovered cells <TD> */
}

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

.calendar tbody td.selected { /* Cell showing selected date */
  background:#e4e0d8;
}

.calendar tbody td.weekend { /* Cells showing weekend days */
  color: #333;
}

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

.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 #666; 
   background:#e1e1e1;
   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 #636363;
  background:#f6f6f6;
  font-size:90%;
}

.calendar .combo .active {
  background-color: #c4c0b8;
  border-color: #404040 #d4d0c8 #d4d0c8 #404040;
}

.calendar .combo .hilite {
  background-color: #048;
  color: #fea;
}
.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; 
}
