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

div.calendar { position: relative; }

.calendar, .calendar table {
  border: 1px solid #556;
  color: #000;
}

.calendar .nav {
  background: #778 url(menuarrow.gif) no-repeat 100% 100%;
}

.calendar thead .title { /* This holds the current "month, year" */
  background: #fff;
  color: #000;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
  background: #778;
  color: #fff;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
  background: #C80203;
}

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

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

.calendar thead .hilite { /* How do the buttons in header appear when hover */
  background-color: #D1D1D1;
  color: #000;
  border: 1px solid #04f;
}

.calendar thead .active { /* Active (pressed) buttons in header */
  background-color: #77c;
}

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

.calendar tbody .day { /* Cells <TD> containing month days dates */
  color: #FFFFFF;
  background-color:#D1D1D1;
}
.calendar tbody .day.othermonth {
  color: #bbb;
}
.calendar tbody .day.othermonth.oweekend {
  color: #fbb;
}

.calendar table .wn {
  border-right: 1px solid #000;
  background: #C80203;
}

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

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

.calendar tbody td.hilite { /* Hovered cells <TD> */
  background: #B1B1B1;
  border: 1px solid #bbb;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
  background: #cde;
}

.calendar tbody td.selected { /* Cell showing today date */
  border: 1px solid #A1A1A1;
  background: #818181;
  color: #FF0000;
}

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

.calendar tbody td.today { /* Cell showing selected date */
  color: #000000;
}

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

/* The footer part -- status bar and "Close" button */

.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
  background: #556;
  color: #fff;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  background: #fff;
  color: #445;
  border-top: 1px solid #556;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
  background: #aaf;
  border: 1px solid #04f;
  color: #000;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  background: #77c;
}

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

.calendar .combo {
  border: 1px solid #655;
  background: #A5A5A5;
  color: #000;
}

.calendar .combo .hilite {
  background: #acf;
}

.calendar .combo .active {
  border-top: 1px solid #46a;
  border-bottom: 1px solid #46a;
  background: #D1D1D1;
}

.calendar td.time {
  border-top: 1px solid #000;
  background-color: #f4f0e8;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  border: 1px solid #889;
  background-color: #fff;
}

.calendar td.time span.hilite {
  border-color: #000;
  background-color: #667;
  color: #fff;
}

.calendar td.time span.active {
  border-color: #f00;
  background-color: #000;
  color: #0f0;
}
