/*  Author: Marina Popova, marina@imperia.net, based on the aqua style of the original:
    Distributed as part of The Coolest DHTML Calendar
    Author: Mihai Bazon, www.bazon.net/mishoo
    Copyright Dynarch.com 2005, www.dynarch.com
*/

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

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

.calendar, .calendar table {
    border: 1px solid #163660;    
    color: #000;
    cursor: default;
    background-color: #dde8f8;   
}

.calendar {
    border-color: #163660;    
}

.calendar table td, .calendar table th  {
    font-size: 12px;
    font-family: verdana, arial, helvetica, sans-serif;
    padding: 2px;
}
/* **************************************************************** 
 Header part -- contains navigation buttons and day names. 
 **************************************************************** */

.calendar .calendar_button { /* "<<", "<", ">", ">>" buttons have this class */
    text-align: center;    /* They are the navigation buttons */
    /*font-weight: bold;*/
    border-bottom: 1px solid #163660;
    color: #c2f3fb;
}

.calendar .nav {
    font-family: verdana, arial, helvetica, sans-serif;
}

.calendar .nav div {
    background: transparent url("menuarrow1.gif") no-repeat 100% 100%;
    margin-left: -6px;  
}

.calendar thead td {
   /*padding: 2px 3px;*/
}
.calendar thead {
    background: #4a6ea0 url("bg_thead1.png") repeat-x 0 0%;    
}

.calendar thead .title { /* This holds the current "month, year" */
    text-align: center; 
   /* font-weight: bold;*/
    color: #c2f3fb;    
    border-bottom: 1px solid #163660;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
    border-bottom: 1px solid #163660;
    color: #000;
}
.calendar thead tr.daynames {
    background: #335787 url("bg_theaddays.png") repeat-x 0 0%;    
}

.calendar thead tr.daynames td {
    width: 1.9em;
}
.calendar thead tr.daynames td.wn {
    width: 1.5em;
}
.calendar thead .name { /* Cells <TD> containing the day names */
    border-bottom: 1px solid #163660;    
    text-align: center;
    color: #fff;
    border-left: 1px solid #163660;
}

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

.calendar thead .hilite { /* How do the buttons in header appear when hover */
   background: url("hover_all.gif") repeat-x;
}

.calendar thead .active { /* Active (pressed) buttons in header */
    background: url("active-bg.gif"); 
    color: #fff;    
    border-bottom: 1px solid #797979;
}

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

.calendar tbody .day { /* Cells <TD> containing month days dates */
    font-family: verdana, arial, helvetica, tahoma, sans-serif;
    color: #000;
    text-align: center;    
}
.calendar tbody .day.othermonth {    
    color: #999;
}
.calendar tbody .day.othermonth.oweekend {
    color: #f99;
}

.calendar table tbody .wn {
    background-color:#cedcf0;
}
.calendar tbody .rowhilite td,
.calendar tbody .rowhilite td.wn {
    background: url("bg_rowhover1.gif") transparent;
}

.calendar tbody td.today {
    font-weight: bold; /* background: url("today-bg.gif") no-repeat 70% 50%; */
}

.calendar tbody td.hilite { /* Hovered cells <TD> */
    background: url("active-bg1.gif") 0% 0% repeat-x; 
}

.calendar tbody td.active { /* Active (pressed) cells <TD> 
padding: 2px 2px 0px 2px;*/
}

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

.calendar tbody td.selected { /* Cell showing selected date */
    font-weight: bold;
    border: 1px solid #1b3961;
    background: url("active-bg1a.gif") 0% 0% repeat-x; 
    color: #163660;
}

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

.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) */
    text-align: center;
    background: #565;
    color: #fff;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */    
    background: #5478a9 url("bg_tfooter.png") repeat-x bottom left;
    color: #fff;
    border-top: 1px solid #163660;
    vertical-align: top;
    /*height: 5ex;*/
}

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

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

/* 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: 500;
    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-bg1.png"); color: #000;
}

.calendar .combo .active {
    background: url("active-bg.gif"); color: #fff;
    font-weight: bold;
}

.calendar td.time {
    border-top: 1px solid #163660;    
    text-align: center;
    background: #658abb url("bg_time.png") repeat-x bottom left;
    color: #c2f3fb;
    font-weight: normal;
}

.calendar span.hour,
.calendar span.minute,
.calendar span.ampm,
.calendar span.colon {
    color: #c2f3fb;
    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 {
    font-weight: bold;
}
.calendar td.time span {
    padding: 2px 3px;
}
.calendar td.time span.hilite {
    background: url("hover_all.gif") repeat-x;
    color: #fff;
    padding: 2px 3px;
}

.calendar td.time span.active {
    background: url("active-bg.gif"); color: #fff;
}
