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

.jscalendar {
  position: relative;
  display: none;
  padding: 0.25em;
  border-width: 0.1em;
  border-style: solid;
  border-color: #eee #888 #888 #eee;
  font-size: 0.6em;
  color: #000;
  cursor: default;
  background: #d9d9d9;
  font-family: tahoma,verdana,sans-serif;
}

.jscalendar table {
  color: #000;
  cursor: default;
  background: #f0f0f0;
  font-family: tahoma,verdana,sans-serif;
  border-width: 0.1em;
  border-style: solid;
  border-color: #888 #eee #eee #888;
}

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

.jscalendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  text-align: center;
  padding: 0.05em;
  border-width: 0.1em;
  border-style: solid;
  border-color: #fff #888 #888 #fff;
  background-color:#d9d9d9;
}

.jscalendar thead .title { /* This holds the current "month, year" */
  padding: 0.2em;
  color: #000;
  text-align: center;
  border-width: 0.1em;
  border-style: solid;
  border-color: #fff #888 #888 #fff;
  background-color:#d9d9d9;
}

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

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

.jscalendar thead .name { /* Cells <TD> containing the day names */
  border-bottom: 0.05em solid #888;
  padding: 0.1em;
  text-align: center;
  background: #f0f0f0;
}

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

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

.jscalendar thead .active { /* Active (pressed) buttons in header */
  background-color: #DA1816;
  color:#fff;
}

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

.jscalendar tbody .day { /* Cells <TD> containing month days dates */
  width: 2em;
  text-align: right;
  padding: 0.1em 0.2em 0.1em 0.1em;
}
.jscalendar tbody .day.othermonth {
  font-size: 80%;
  color: #aaa;
}
.jscalendar tbody .day.othermonth.oweekend {
  color: #faa;
}

.jscalendar table .wn {
  padding: 0.1em 0.15em 0.1em 0.1em;
  border-right: 0.05em solid #888;
  background: #f0f0f0;
}

.jscalendar table .name.wn {
  padding: 0.1em 0.15em 0.1em 0.1em;
  border-right: 0.05em solid #f0f0f0;
  background: #f0f0f0;
  color:#f0f0f0;
}


.jscalendar tbody .rowhilite td {
  background: #d9d9d9;
}

.jscalendar tbody .rowhilite td.wn {
  background: #d9d9d9;
}

.jscalendar tbody td.weekend { /* Cells showing weekend days */
  color: #871;
}

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

.jscalendar tbody td.weekend.selected,
.jscalendar tbody td.selected { /* Cell showing selected date */
    background-color: #DA1816;
    color:#fff;
}

.jscalendar tbody td.today { /* Cell showing today date */
  font-weight: bold; 
}

.jscalendar tbody td.hilite { /* Hovered cells <TD> */
  padding: 0.05em 0.15em 0.05em 0.05em;
  background-color: #DA1816;
  color:#fff;
}

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

.jscalendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  visibility: hidden;
}

.jscalendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  display: none;
}

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

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

.jscalendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  padding: 0.2em;
  border-width: 0.1em;
  border-style: solid;
  border-color: #fff #d9d9d9 #d9d9d9 #d9d9d9;
  background-color:#d9d9d9;
  color: #666;
  text-align: center;
}

.jscalendar tfoot .hilite { /* Hover style for buttons in footer */
  background: #d9d9d9;
}

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

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

.jscalendar .combo {
  position: absolute;
  display: none;
  width: 4em;
  top: 0px;
  left: 0px;
  cursor: default;
  border-top: 0.05em solid #fff;
  border-right: 0.05em solid #000;
  border-bottom: 0.05em solid #000;
  border-left: 0.05em solid #fff;
  background: #d9d9d9;
  font-size: 90%;
  padding: 0.05em;
  z-index: 100;
}

.jscalendar .combo .label,
.jscalendar .combo .label-IEfix {
  text-align: center;
  padding: 0.05em;
}

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

.jscalendar .combo .active {
  padding: 0px;
  border:0.05em solid #DA1816;
}

.jscalendar .combo .hilite {
  background: #DA1816;
  color: #fff;
}

.jscalendar td.time {
  border-top: 0.1em solid #fff;
  text-align: center;
  background-color: #d9d9d9;
  height:2.1em;
}

.jscalendar td.time .hour,
.jscalendar td.time .minute,
.jscalendar td.time .ampm {
  padding: 0.05em 0.5em 0.05em 0.5em;
  border-width: 0.1em;
  border-style: inset;
  font-weight: bold;
  background-color: #fff;
}

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

.jscalendar td.time .colon {
  padding: 0.05em 0.25em 0.05em 0.35em;
  font-weight: bold;
}

.jscalendar td.time span.hilite {
  color: #DA1816;
}

.jscalendar td.time span.active {
  border-color: #DA1816;
  background-color: #DA1816;
  color: #fff;
}