div.calendar {
    position: relative;
    z-index: 1111;
}

.calendar, .calendar table {
    font-size: 11px;
    color: #868683;
    cursor: default;
}

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

.calendar .button { 
    text-align: center;
    padding: 2px;
    font-size: 10px;
}

.calendar div {
    color: #868683;
}

.calendar thead tr {
    background: transparent url("/fancybox/bg_fbox_title.jpg");
    height: 41px;
}

.calendar thead .button div { 
    background: transparent url("/fancybox/fancybox.png") no-repeat -40px 0;
    height: 30px;
    width: 30px;
    position: relative;
    top: -20px;
    left: 17px;
    line-height: 30px;
    color: white;
}

.calendar thead .title { 
    font-weight: bold;
    text-align: center;
    padding: 2px;
    color: white;
    text-indent: 32px;
    font-size: 13px;
}

.calendar thead tr.headrow { 
    height: 25px;
    background: #e2e2e2;
}

.calendar thead tr.headrow .button div {
    position: static;
    background: none;
    color: inherit;
    line-height: 25px;
    height: auto;
    width: auto;
}

.calendar thead tr.headrow .prevprev div,
.calendar thead tr.headrow .prev div,
.calendar thead tr.headrow .next div,
.calendar thead tr.headrow .nextnext div {
    background: transparent url(../images/static/calendar_buttons.gif);
    height: 18px;
    width: 18px;
    line-height: 18px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    margin-left: 11px;
}

.calendar thead tr.headrow .prev div,
.calendar thead tr.headrow .nextnext div {
    margin-left: 0;
    margin-right: 11px;
}

.calendar thead .name { 
    border-top: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
    padding: 2px;
    text-align: center;
    font-size: 10px;
    color: #646460;
}

.calendar thead .weekend {
    color: #81900a;
}

.calendar thead .wn {
    color: #a4a788;
    border-left: 0;
}

.calendar thead tr.headrow .hilite div,
.calendar thead .hilite,
.calendar thead .active { 
    background-position: left bottom; /* TODO */
}

.calendar thead .daynames { 
    background: #f8f8f8;
    height: 30px;
}

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

.calendar tbody .day {
    border-top: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
    width: 35px;
    height: 30px;
    background: white;
    font-size: 10px;
    color: #868683;
    text-align: center;
}
.calendar tbody .day.othermonth {
    color: #d2d2d0;
}
.calendar tbody .day.othermonth.oweekend {
    color: #cdd39d;
}

.calendar table .wn {
    color: #a4a788;
    background: #f8f8f8;
}

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

.calendar tbody td.today {
    font-weight: bold;
}

.calendar tbody td.hilite {
    background: #ced560;
    color:white;
}

.calendar tbody td.active {
    background: #b4c00d;
    color:white;
}

.calendar tbody td.weekend {
    color: #a6b05a;
}

.calendar tbody td.selected {
    font-weight: bold;
    color:white;
    background: #b4c00d;
}

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

.calendar tbody .emptycell {
    visibility: hidden;
}

.calendar tbody .emptyrow {
    display: none;
}

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

.calendar tfoot .footrow {
    text-align: center;
    background: #e2e2e2;
    color: #9f9f9f;
    height: 30px;
}

.calendar tfoot .ttip { 
    color: #9f9f9f;
}

.calendar tfoot .hilite {
    color: #9f9f9f;
}

.calendar tfoot .active {
    color: #9f9f9f;
}

/* 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-width: 0 1px 1px 1px;
  border-style: solid;
  border-color: #797979;
  background: url("normal-bg.gif"); color: #000;
  z-index: 100;
  font-size: 90%;
}

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

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

.calendar .combo .hilite {
  background: url("hover-bg.gif"); color: #000;
}

.calendar .combo .active {
  color: #a6b05a;
  font-weight: bold;
}

.calendar td.time {
  border-top: 1px solid #eeeeee;
  padding: 1px 0px;
  text-align: center;
  background: white;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 0px 5px 0px 6px;
  font-weight: bold;
}

.calendar td.time .hour,
.calendar td.time .minute {
  font-family: monospace;
}

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

.calendar td.time .colon {
  padding: 0px 2px 0px 3px;
  font-weight: bold;
}

.calendar td.time span.hilite {
  color: #a6b05a;
}

.calendar td.time span.active {
  color: #a6b05a;
}
