/*
 * Sprite-Assignment
 */

.ui-datepicker-prev, .ui-datepicker-next {
    background-repeat: no-repeat;
    background-image: url(../images/sprite_global.png);
    _background-image: url(../images/sprite_global.gif);
}

/*
 * Calendar
 */

.ui-datepicker {
    display: none;
    width: 460px !important;
    padding: 5px 0 10px 5px;
    margin: 10px 0 0 -217px;
    background-color: #5C5C5C;
    box-shadow: 0 0 5px #777;
    -moz-box-shadow: 0 0 5px #777;
    -webkit-box-shadow: 0 0 5px #777;
    z-index: 50 !important;
    _width: 458px !important;
    _height: 238px;
    _overflow: hidden;
}

@media screen and /*! YUI-Compressor */ (-webkit-min-device-pixel-ratio:0) {
    .ui-datepicker {
        width: 450px !important;
    }
}

.ui-datepicker:before {
    content: "";
    position: absolute;
    right: 222px;
    top: -10px;
    width: 0;
    height: 0;
    border-bottom: 10px solid #5C5C5C;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.ui-datepicker-group {
    float: left;
    width: 220px;
    margin-right: 5px;
}

.ui-datepicker table {
    width: 100%;
}

/*
 * Calendar Head
 */

.ui-datepicker-header {
    font-size: 14px;
}

.ui-datepicker-title {
    padding: 8px 0 10px;
}

.ui-datepicker-title span {
    color: #fff;
}

/* Calendar Head Links */

.ui-datepicker-prev, .ui-datepicker-next {
    position: absolute;
    top: 13px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ui-datepicker-prev {
    left: 9px;
    background-position: -16px -589px;
}

.ui-datepicker-next {
    right: 9px;
    background-position: -17px -603px;
}

.ui-datepicker-prev.ui-state-disabled,
.ui-datepicker-next.ui-state-disabled {
    opacity: 0.5;
}

.ui-state-disabled {
    cursor: default;
}

.ui-datepicker-prev span, .ui-datepicker-next span {
    display: none;
}

/*
 * Calendar Content
 */

.ui-datepicker-calendar {
    display: block;
    padding-left: 6px;
    border-top: none;
}

.ui-datepicker th {
    text-transform: uppercase;
    font-size: 10px;
    text-align: center;
    height: 17px;
    padding: 10px 0 2px;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #bbb;
    background-color: #eaeaea;
}


.ui-datepicker-calendar thead th span {
    color: #727272;
    padding-top: 15px;
}

.ui-datepicker tbody tr:first-child {
    border-top: 1px solid #bbb;
}

.ui-datepicker tbody tr td {
    padding: 0;
    border-right: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
    background: #ececec;
    background: -moz-linear-gradient(top, #ececec 0%, #dedede 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ececec), color-stop(100%,#dedede));
    background: -webkit-linear-gradient(top, #ececec 0%,#dedede 100%);
    background: -ms-linear-gradient(top, #ececec 0%,#dedede 100%);
    background: linear-gradient(to bottom, #ececec 0%,#dedede 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#dedede',GradientType=0 );
}

.ui-datepicker tbody tr:last-child {
    border-bottom: 0;
}

.ui-datepicker td span, .ui-datepicker .ui-datepicker-calendar td a {
    color: #727272;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    width: 30px;
    padding: 7px 0;
    text-decoration: none;
}

.ui-datepicker-calendar .ui-state-active,
.ui-datepicker-calendar .ui-state-active:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: -1px;
    border: 1px solid;
    border-color: #FFD533 #D18700 #D18700 #FFD533;
    background: #ffca00;
    background: -moz-linear-gradient(top, #ffca00 0%, #f7a000 100%) !important;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffca00), color-stop(100%,#f7a000)) !important;
    background: -webkit-linear-gradient(top, #ffca00 0%,#f7a000 100%) !important;
    background: -ms-linear-gradient(top, #ffca00 0%,#f7a000 100%) !important;
    background: linear-gradient(to bottom, #ffca00 0%,#f7a000 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffca00', endColorstr='#f7a000',GradientType=0 ) !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.ui-datepicker-calendar td * {
    text-decoration: none;
    display: block;
    padding: 0 0;
}

.ui-datepicker-calendar .ui-state-hover {
    background: #ffca00;
    background: -moz-linear-gradient(top, #ffca00 0%, #f7a000 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffca00), color-stop(100%,#f7a000));
    background: -webkit-linear-gradient(top, #ffca00 0%,#f7a000 100%);
    background: -o-linear-gradient(top, #ffca00 0%,#f7a000 100%);
    background: -ms-linear-gradient(top, #ffca00 0%,#f7a000 100%);
    background: linear-gradient(to bottom, #ffca00 0%,#f7a000 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffca00', endColorstr='#f7a000',GradientType=0 );
    -moz-box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2);
}

td.ui-state-disabled {
    background: #f1f1f1;
}

td.ui-state-disabled span {
    color: #ACACAC;
    text-decoration: line-through;
}

.ui-datepicker-calendar td.ui-datepicker-other-month span {
    color: #dadada;
    font-weight: normal;
    text-decoration: none;
}

.ui-datepicker-calendar td.ui-datepicker-other-month {
    font-weight: normal;
    background: #fafafa !important;
}

/*
 * Calendar Bottom
 */

.ui-datepicker-row-break {
    clear: both;
}

button.ui-datepicker-close {
    text-align: right;
    text-decoration: underline;
    float: right;
    padding: 4px 2px 2px 0;
}

button.ui-datepicker-close:hover {
    text-decoration: none;
}

button.ui-datepicker-current {
    display: none;
}

/* Webkit Fixes */
@media screen and/*!YUI-Compresser */(-webkit-min-device-pixel-ratio:0) {
    .ui-datepicker-calendar {
        padding-left: 0;
    }

    .ui-datepicker-calendar td {
        padding: 1px 3px;
    }

    .ui-datepicker-calendar td * {
        padding: 2px 4px;
    }
}