.cal_icon.gray {opacity: 0.5;}

div.datepicker {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    width: 196px;
    height: 147px;
    position: absolute;
    cursor: default;
    top: 0;
    left: 0;
    display: none;
}
.datepickerContainer {
    position: absolute;
}

/* Hide border divs by default */
.datepickerBorderT,
.datepickerBorderB,
.datepickerBorderL,
.datepickerBorderR,
.datepickerBorderTL,
.datepickerBorderTR,
.datepickerBorderBL,
.datepickerBorderBR {
    display:none;
}

.datepickerHidden {
    display: none;
}
div.datepicker table {
    border-collapse:collapse;
}
div.datepicker a {
    color: black;
    text-decoration: none;
    cursor: default;
    outline: none;
}
div.datepicker table td {
    text-align: center;
    padding: 0;
    margin: 0;
}
div.datepicker th {
    text-align: center;
    color: #666666;
    font-weight: normal;
    padding:0;
}
div.datepicker tbody a {
    display: block;
}
.datepickerDays a {
    width: 20px;
    line-height: 16px;
    height: 16px;
    padding-right: 2px;
}
.datepickerYears a,
.datepickerMonths a{
    width: 39px;
    line-height: 36px;
    height: 36px;
    text-align: center;
}
.datepickerMonths td:first-child a,
.datepickerMonths td:last-child a,
.datepickerYears td:first-child a,
.datepickerYears td:last-child a {
    width:38px;
}
td.datepickerNotInMonth a {
    color: #666666;
}
tbody.datepickerDays td.datepickerSelected{
    background: #136A9F;
}
tbody.datepickerDays td.datepickerNotInMonth.datepickerSelected {
    background: #17384d;
}
tbody.datepickerYears td.datepickerSelected,
tbody.datepickerMonths td.datepickerSelected{
    background: #17384d;
}
div.datepicker td.datepickerSelected a {
    color:white;
}
div.datepicker a:hover,
div.datepicker a:hover {
    color: #88c5eb;
}
div.datepicker td.datepickerNotInMonth a:hover {
    color: #999999;
}
.datepickerSpace div {
    width: 20px;
}
.datepickerBlock {
    vertical-align:top;
}
a.datepickerGoNext,
a.datepickerGoPrev,
a.datepickerMonth {
    text-align: center;
    height: 20px;
    line-height: 20px;
    float:left;
}
div.datepicker th a.datepickerGoNext,
div.datepicker th a.datepickerGoPrev {
    width: 20px;
    color: #666666;
    display:none;
}
div.datepicker th a.datepickerMonth {
    width:114px;
    display:block;
}
/* Only display the previous/next arrows on the first/last calendars */
div.datepicker .datepickerFirstView th a.datepickerGoPrev,
div.datepicker .datepickerLastView th a.datepickerGoNext {
    display:block;
}
/* Compensate for the space lost by not having a previous arrow */
div.datepicker th a.datepickerMonth {
    margin-left:20px;
}
div.datepicker .datepickerFirstView th a.datepickerMonth {
    margin-left:0;
}
/* Day mode calendar body */
table.datepickerViewDays tbody.datepickerMonths,
table.datepickerViewDays tbody.datepickerYears {
    display: none;
}
/* Month mode calendar body */
table.datepickerViewMonths tbody.datepickerDays,
table.datepickerViewMonths tbody.datepickerYears,
table.datepickerViewMonths tr.datepickerDoW {
    display: none;
}
/* Year mode calendar body */
table.datepickerViewYears tbody.datepickerDays,
table.datepickerViewYears tbody.datepickerMonths,
table.datepickerViewYears tr.datepickerDoW {
    display: none;
}
td.datepickerDisabled a,
td.datepickerDisabled.datepickerNotInMonth a{
    color: #555555;
}
td.datepickerDisabled a:hover {
    color: #333333;
}
/* Not used by default, calendar cells can be marked as special if desired (doesn't seem to be totally working) */
div.datepicker tbody.datepickerDays td.datepickerSpecial a {
    background: #770000;
    color:white;
}
div.datepicker tbody.datepickerDays td.datepickerSpecial.datepickerSelected a {
    background: #aa0000;
}

/* style the 'not in month' day cell away */
tbody.datepickerDays td.datepickerNotInMonth.datepickerSelected {
    background-color:transparent;
}
div.datepicker td.datepickerNotInMonth a span {
    display:none;
}
div.datepicker td.datepickerNotInMonth a:hover span {
    display:none;
}
div.datepicker tbody.datepickerDays td.datepickerNotInMonth:hover {
    background-color: transparent;
}

/* Datepicker border styling */
.datepicker {
    background-color: #F7F7F7;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;
    padding: 10px;
}

/* Tighten up the spacing between multiple calendars */
.datepickerSpace div {
    width:2px;
}

/* Grey background behind Month Name row, and blue text */
div.datepicker th {
    background-color:#DDDDDD;
}
div.datepicker th a.datepickerMonth {
    color:#008ED6;
    font-weight:normal;
}

/* style the day of week header cells */
div.datepicker th {
    color: black;
    font-weight: bold;
}
/* grey underline beneath day of week row */
div.datepicker table thead tr.datepickerDoW th {
    border-bottom: 1px solid #CCCCCC;
}

/* Black text, white background, and grey borders around day cells */
div.datepicker a,
div.datepicker a:hover {
    color: black;
}
div.datepicker table.datepickerViewDays,
div.datepicker table.datepickerViewMonths,
div.datepicker table.datepickerViewYears {
    background-color:white;
}
div.datepicker table tbody.datepickerDays td {
    border: 1px solid #F7F7F7;
    height: auto;
}

/* blue cell color for selected days */
tbody.datepickerDays td.datepickerSelected {
    background-color:#0077CC;
}

/* Grey out dates in the future */
div.datepicker td.datepickerFuture a {
    color:#DDDDDD;
}

/* yellow cell background on hover */
div.datepicker tbody.datepickerDays td:hover {
    background-color: #FFCC33;
}

/* Bold today's date */
div.datepicker td.datepickerToday a {
    font-weight:bold;
}

/* cells are wider in the clean style */
.datepickerYears a, .datepickerMonths a {
    width: 42px;
}
.datepickerMonths td:first-child a,
.datepickerYears td:first-child a {
    width:39px;
}
div.datepicker th a.datepickerMonth {
    width:121px;
}

/* Style the calendar custom widget */
#date-range, .date-range {
    position:relative;
}
#date-range-field, .date-range-field, #note_date-range-field{
    direction: ltr;
    width: inherit;
    height: 28px;
    overflow: hidden;
    position: relative;
    cursor:pointer;
    border: #cccccc 1px solid;
    background: #f3f3f3;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#d8d8d8));
    background-image: -webkit-linear-gradient(top, #fefefe, #d8d8d8);
    background-image: -moz-linear-gradient(top, #fefefe, #d8d8d8);
    background-image: -ms-linear-gradient(top, #fefefe, #d8d8d8);
    background-image: -o-linear-gradient(top, #fefefe, #d8d8d8);
    -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;
    transition: all 0.5s ease;
}
#date-range-field:hover, .date-range-field:hover, #note_date-range-field:hover {
    background: #ececec;
    -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;
}
#date-range-field a, .date-range-field a {
    color:#B2B2B2;
    text-align:center;
    display: block;
    position: absolute;
    width: 26px;
    height: 25px;
    top: 0;
    right: 0;
    text-decoration: none;
    padding-top:9px;
    border-radius: 0 3px 3px 0;
    font-size: 6pt;
}
#date-range-field span, .date-range-field span, #note_date-range-field span{
    font:bold 8pt Segoe UI,Tahoma;
    position: relative;
    top: 0;
    height: 30px;
    line-height: 30px;
    left: 5px;
    width: 250px;
    text-align: center;
}

#alt_datepicker_calendar{
    direction: ltr;
    position: absolute;
    overflow: hidden;
    width: 497px;
    height:178px;
    background-color: #F7F7F7;
    border: 1px solid #CCCCCC;
    border-radius: 0 3px 3px 3px;
    display:none;
    padding:10px 0 0 10px;
    z-index: 9999;
}
.datepicker-calendar, #comp_datepicker_calendar, #note-datepicker-calendar {
    direction: ltr;
    position: absolute;
    top: 23px;
    right: 0;
    overflow: hidden;
    width: 497px;
    height:178px;
    background-color: #F7F7F7;
    border: 1px solid #CCCCCC;
    border-radius: 0 3px 3px 3px;
    display:none;
    padding:10px 0 0 10px;
    z-index: 9999;
}

#note-datepicker-calendar {
    display: block;
    position: relative;
    width: 372px;
    height: 150px;
    top: 28px;
    position: absolute;
    display: none;
}

#note_date_box {
    position: relative;
}
#note_date-range-field {
    width: 250px;
    text-align: center;
}
/* Remove default border from the custom widget since we're adding our own. */
.datepicker-calendar div.datepicker,
#note-datepicker-calendar div.datepicker,
#alt_datepicker_calendar div.datepicker,
#comp_datepicker_calendar div.datepicker {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

#datepicker-calendar div.inner_options,
#note-datepicker-calendar div.inner_options,
#alt_datepicker_calendar div.inner_options,
#comp_datepicker_calendar div.inner_options{float: right; padding-top: 150px; padding-right: 10px;}

#predefined_settings li.custom a#apply {
    display: inline-block;
    margin: 0;
    margin-left: 3px;
    padding: 2px 7px 5px 7px;
    line-height: 21px;
    border-radius: 2px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    background: #0F1E5C !important;
}

#predefined_settings li.custom a#apply:hover {
    opacity: 0.85;
    background: #0e2ca7 !important;
}

#predefined_settings .wiz_content_input.from,
#predefined_settings .wiz_content_input.to {
    width: 70px;
    padding: 0 4px;
    line-height: 27px;
}
