div.cal-contain {
    position: absolute;
    width: auto;
}

div.calendar {
    width: auto;
    max-width: 170px;
    background-color: #F7F7F7;
    border: 1px solid #E0E0E0;
}

div.calendar table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

div.calendar table tr.year {
    background-color: #224CA6;
}

div.calendar table tr.month {
    background-color: #62ACF6;
}

div.calendar table tr.year td.title,
div.calendar table tr.month td.title {
    vertical-align: middle;
    text-align: center;
    font-size: 9pt;
    font-weight: bold;
    color: white;
    padding: 2px 0;
}

div.calendar table tr.month td.title {
    color: #323613;
}

div.calendar table td {
    padding: 0;
}

div.calendar table.day {
    width: 133px;
    margin: 5px;
    border-collapse: collapse;
    border: 0;
}

div.calendar table.day td {
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

div.calendar table.day td a {
	display: block;
	padding: 3px 4px;
    font-size: 9pt;
    text-decoration: none;
    color: black;
}

div.calendar table.day td a:hover {
    background-color: #666;
    color: white;
}

div.calendar table.day td.current a {
    background-color: #426CC6 !important;
    color: white;
}

div.calendar table.day tr.dow td {
    font-size: 8pt;
    font-weight: bold;
}

div.calendar table.day tr.dow td.sat {
    color: blue;
}

div.calendar table.day tr.dow td.sun {
    color: red;
}

div.calendar div.cal-year-down,
div.calendar div.cal-year-up,
div.calendar div.cal-month-down,
div.calendar div.cal-month-up {
    background-image: url('../images/calendar/year-down.gif');
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
    font-size: 1px;
    line-height: 16px;
    height: 16px;
    width: 20px;
}

div.calendar div.cal-year-up {
    background-image: url('../images/calendar/year-up.gif');
}

div.calendar div.cal-month-down {
    background-image: url('../images/calendar/month-down.gif');
}

div.calendar div.cal-month-up {
    background-image: url('../images/calendar/month-up.gif');
}

div.calendar tr.year a, div.calendar tr.month a {
    text-decoration: none;
}

input.datepicker_b {
    background-image: url('../images/calendar/cbutton.gif');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: 1px solid #777;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 0px;
    font-size: 0px;
    width: 50px;
    height: 22px;
    vertical-align: top;
    top: 2px;
}
