/****************************************************
 The main calendar widget.  DIV containing a table. *
****************************************************/
.calendar {
    position:   relative;
    display:    none;
    border:     0px;
    background: #DEC89F;
}

.calendar table {
    border: 2px groove #111111;
    border: 2px groove;
    width:  150px;
}


/***********************************************************
 Header part -- contains navigation buttons and day names. *
***********************************************************/
.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
    text-align:    center;
    padding:       1px;
    border-top:    1px solid #F8F8F8;
    border-right:  1px solid #111111;
    border-bottom: 1px solid #111111;
    border-left:   1px solid #F8F8F8;
    background:    #DDDDDD;
}

.calendar .nav {
}

.calendar thead .title { /* This holds the current "month, year" */
    background-color:  #991517;
    font-weight:       bold;
    padding:           1px;
    border:            0px;
    color:             #FFE95F;
    text-align:        center;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
    background: #DDDDDD;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
}

.calendar thead .name { /* Cells <TD> containing the day names */
    border-bottom: 1px solid #111111;
    padding:       2px;
    text-align:    center;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
    color: #AAAAAA;
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
    background-color: #999999;
}

.calendar thead .active { /* Active (pressed) buttons in header */
}


/**************************************************
 The body part -- contains all the days in month. *
**************************************************/
.calendar tbody .day { /* Cells <TD> containing month days dates */
    text-align: right;
}

.calendar tbody .day.othermonth {

}

.calendar tbody .day.othermonth.oweekend {
}

.calendar table .wn {
    border-right: 1px solid #111111;
}

.calendar tbody .rowhilite td {
}

.calendar tbody .rowhilite td.wn {
}

.calendar tbody td.hilite { /* Hover cells <TD> */
    background-color: #991517 !important;
    cursor:           default;
    color:            #F8F8F8 !important;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
}

.calendar tbody td.selected { /* Cell showing selected date */
    color:  #991517;
    border: 1px solid #991517;
}

.calendar tbody td.weekend { /* Cells showing weekend days */
    color: #AAAAAA;
}

.calendar tbody td.today { /* Cell showing today date */
}

.calendar tbody .disabled {
    background-color: #AAAAAA;
    color:            #111111;
}

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
    visibility: hidden;
}

.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
    display: none;
}


/**************************************************
 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> */
    background-color: #991517;
    color:            #F8F8F8;
    text-align:       center;
}

.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;
    width:         45px;
    top:           0px;
    left:          0px;
    cursor:        default;
    border-top:    1px solid #F8F8F8;
    border-right:  1px solid #111111;
    border-bottom: 1px solid #111111;
    border-left:   1px solid #F8F8F8;
    background:    #DDDDDD;
    padding:       1px;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
    text-align: center;
    padding:    1px;
}

.calendar .combo .label-IEfix {
    width: 45px;
}

.calendar .combo .active {
}

.calendar .combo .hilite {
    background: #991517;
    color:      #F8F8F8;
}

.calendar td.time {
    background-color: #991517;
    border-top:       1px solid #111111;
    padding:          1px 0px;
    text-align:       center;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
    border:           1px solid #111111;
    padding:          0px 3px 0px 4px;
    font-weight:      bold;
    background-color: #F8F8F8;
}

.calendar td.time .ampm {
    text-align: center;
}

.calendar td.time .colon {
    padding:     0px 2px 0px 3px;
    font-weight: bold;
}

.calendar td.time span.hilite {
    background-color: #991517;
    border-color:     #111111;
    color:            #F8F8F8;
}

.calendar td.time span.active {
    border-color:     #111111;
    background-color: #F8F8F8;
    color:            #991517;
}