/**
 * main div
 */
div#dh_calendar {
    cursor: pointer;
    font-family: Arial,sans-serif;
    font-size: 12px;
    padding: 1px 1px 0;
    position: absolute;
    background-color: white;
    z-index: 1000;
}

/**
 * table that holds the days
 */
div#dh_calendar table#dh_cal_day_table,
div#dh_calendar table#dh_cal_day_table thead,
div#dh_calendar table#dh_cal_day_table tbody {
    border: 1px solid #668BB0;
    border-collapse: collapse;
    border-spacing: 0px;
    font-family: Arial,sans-serif;
    font-size: 12px;
    margin: 0px;
    padding: 0px;
    width: 250px;
    white-space: nowrap;
}

/**
 * size for td and th
 */
div#dh_calendar td,
div#dh_calendar th {
    height: 19px;
    margin: 0px;
    padding: 0px;
    vertical-align: middle;
    width: 30px;
}

/**
 * titlebar with arrows and month/year
 */
table#dh_cal_day_table tr#dh_cal_day_title_bar th {
    background-color: #668BB0;
    cursor: default;
    width: auto; /* workaround ie width and colspan problem */
}


table#dh_cal_day_table tr#dh_cal_day_title_bar td {
    white-space: nowrap;
}

/**
 * title row for the time
 */
div#dh_calendar table#dh_cal_day_table tr#dh_cal_time_title td {
    background-color: #668BB0;
    cursor: default;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
    width: auto; /* workaround ie width and colspan problem */
}

/**
 * inputfield in title
 */
div#dh_calendar input {
    background-color: #e5e5e5;
    border: 0px;
    font-family: Arial,sans-serif;
    font-size: 12px;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
    margin-left: 5px;
    text-align: center;
    vertical-align: middle;
    width: 28px;
}

/**
 * left aligned arrow
 */
div#dh_calendar table#dh_cal_day_table td span.left {
    display: block;
    float: left;
    margin-left: 4px;
    padding-right: 3px;
    text-align: left;
    font-size: 12px;
}

/**
 * right aligned arrow
 */
div#dh_calendar table#dh_cal_day_table td span.right {
    display: block;
    padding-left: 3px;
    margin-right: 3px;
    text-align: right;
    font-size: 12px;
}

/**
 * input elements in time row
 */
div#dh_calendar tr#dh_cal_day_time input {
    background-color: #e5e5e5;
    margin: 0px;
}
/**
 * Ok button in time row
 */
div#dh_calendar tr#dh_cal_day_time td.ok_string {
    color: #CC0000;
    text-align: center;
}

/**
 * the 2 td elements holding input field in time
 */
div#dh_calendar tr#dh_cal_day_time td.td_input {
    background-color: #e5e5e5;
}

/**
 * holds the week day (Mon, Tue, etc.)
 */
table#dh_cal_day_table tr#dh_cal_day_title td {
    cursor: default;
    text-align: center;
}

/**
 * td settings for our table
 */
div#dh_calendar table#dh_cal_day_table td {
    border: 1px solid #668BB0;
    text-align: right;
    padding: 0 2px 0 0;
}

/**
 * td settings for the bottom today bar
 */
table#dh_cal_day_table tr#dh_cal_day_today td {
    border: 1px solid #668BB0;
    text-align: center;
    width: auto; /* workaround ie width and colspan problem */
}

/**
 * represents today in our table
 */
table#dh_cal_day_table td.today {
/*    background-color: #CC0000;*/
    font-size: 12px;
    font-weight: bold;
}

/**
 * the arrows
 */
div#dh_calendar table#dh_cal_day_table th#dh_cal_nav_prev_month,
div#dh_calendar table#dh_cal_day_table th#dh_cal_nav_next_month {
    cursor: pointer;
}

/**
 * td settings for the weeks
 */
div#dh_calendar table#dh_cal_day_table td.week {
    background-color: #668BB0;
    color: #000000;
    cursor: default;
}

/**
 * td settings for the selected day
 */
div#dh_calendar table#dh_cal_day_table td.active_day {
    background-color: #CC0000;
}

/**
 * hover effect for all selectable elements
 */
table#dh_cal_day_table tr.dh_cal_days td:hover,
table#dh_cal_day_table tr#dh_cal_day_title_bar th#dh_cal_nav_prev_month:hover,
table#dh_cal_day_table tr#dh_cal_day_title_bar th#dh_cal_nav_next_month:hover,
table#dh_cal_day_table tr#dh_cal_day_today td:hover {
    color: #CC0000;
}

/**
 * active day already has this background so we need to change the hover
 */
table#dh_cal_day_table tr.dh_cal_days td.active_day:hover {
    color: #668BB0;
}

/**
 * all the days in previous month
 */
table#dh_cal_day_table td.prev_month {
    color: #888888;
}

/**
 * all the days in the next month
 */
table#dh_cal_day_table td.next_month {
    color: #888888;
}

/**
 * hide some things
 */
.hidden {
    display: none;
    visibility: hidden;
}

/**
 * and display it
 */
.visible {
    display: block;
    visibility: visible;
}

/* ie 7 hacks */
*+html div#dh_calendar table#dh_cal_day_table thead input {
    /* ie 7 seems to have a problem with vertical-align
       and text / inputfields */
    margin-bottom: 2px;
}

/* and fix the previous ie7 hack on Opera... */
html>/**/body div#dh_calendar table#dh_cal_day_table thead input {
    margin-bottom: 0px;
}

/* ie 6 margin bug on time arrows */
* html div#dh_calendar table#dh_cal_day_table td span.right {
    margin-right: 1px;
}