.ui-datepicker {
    box-shadow: 5px 5px 18px rgba(0, 0, 0, 0.2);
    font-family: 'RexxSystems', Arial, Helvetica, Verdana, sans-serif;
    font-size: 13px;
    height: auto !important;
    margin: 5px auto 0;
    padding: 10px;
    border-radius: var(--rexx-portlet-border-radius);
}

.ui-datepicker a {
    text-decoration: none;
}

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

.ui-datepicker-header {
    background: #f5f5f5 none repeat scroll 0 0;
    color: #666;
    height: 40px;
    line-height: 40px;
    margin: -10px -10px 10px;
    border-top-left-radius: var(--rexx-portlet-border-radius) !important;
    border-top-right-radius: var(--rexx-portlet-border-radius) !important;
}

.ui-datepicker-title {
    text-align: center;
}

.ui-datepicker-prev, .ui-datepicker-next {
    background: none !important;
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    color: var(--rexx-font-color) !important;
}

.ui-datepicker-prev:before {
    content: "\f104";
    font-family: 'Font Awesome 5 Pro';
}

.ui-datepicker-prev {
    float: left;
}

.ui-datepicker-prev > * {
    display: none;
}

.ui-datepicker-next:before {
    content: "\f105";
    font-family: 'Font Awesome 5 Pro';
}

.ui-datepicker-next {
    float: right;
}

.ui-datepicker-next > * {
    display: none;
}

.ui-datepicker thead {
    background-color: #f7f7f7;
    background-image: -moz-linear-gradient(top, #f7f7f7 0%, #f1f1f1 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f7f7f7), color-stop(100%, #f1f1f1));
    background-image: -webkit-linear-gradient(top, #f7f7f7 0%, #f1f1f1 100%);
    background-image: -o-linear-gradient(top, #f7f7f7 0%, #f1f1f1 100%);
    background-image: -ms-linear-gradient(top, #f7f7f7 0%, #f1f1f1 100%);
    background-image: linear-gradient(top, #f7f7f7 0%, #f1f1f1 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f1f1f1', GradientType=0);
}

.ui-datepicker th {
    text-transform: uppercase;
    font-size: 11px;
    padding: 0;
    color: var(--rexx-blue);
    text-align: center;
    height: 30px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.ui-datepicker th:last-child {
    border-right: 0 none;
}

.ui-datepicker tbody td {
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 0;
    margin: 0;
}

.ui-datepicker tbody td:last-child {
    border-right: 0 none;
}

.ui-datepicker tbody tr {
    padding: 0;
    margin: 0;
}

.ui-datepicker tbody tr:last-child {
}

.ui-datepicker td span, .ui-datepicker td a {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: #666;
}

.ui-datepicker-calendar .ui-state-default {
    border: var(--rexx-border);
    background: #ededed;
    background: -moz-linear-gradient(top, #ededed 0%, #dedede 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ededed), color-stop(100%, #dedede));
    background: -webkit-linear-gradient(top, #ededed 0%, #dedede 100%);
    background: -o-linear-gradient(top, #ededed 0%, #dedede 100%);
    background: -ms-linear-gradient(top, #ededed 0%, #dedede 100%);
    background: linear-gradient(top, #ededed 0%, #dedede 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dedede', GradientType=0);
}

.ui-datepicker-calendar .ui-state-hover {
    background: #f5f5f5;
}

.ui-datepicker-calendar .ui-state-active:hover {
    background: var(--rexx-blue-light);
}

.ui-datepicker-calendar .ui-state-active {
    background: #0077b3;
    color: #fff;
    border: 1px solid #0077b3;
    position: relative;
}

.ui-datepicker-calendar .ui-datepicker-today .ui-state-active {
    background: #0077b3 !important;
    color: #fff6e3 !important;
    border: 1px solid #faebcc !important;
    position: relative;
}

.ui-datepicker-unselectable .ui-state-default {
    background: #f4f4f4;
    color: #b4b3b3;
}

.ui-datepicker-calendar td:first-child .ui-state-active {
}

.ui-datepicker-calendar td:last-child .ui-state-active {
}

.ui-datepicker-calendar tr:last-child .ui-state-active {
}

.ui-datepicker-header .ui-icon {
    background: none !important;
}

.ui-datepicker-header .ui-state-hover {
    border: none !important;
}

.ui-datepicker-header select {
    margin: 4px !important;
}

.ui-datepicker-calendar .ui-state-highlight {
    border-color: #888;
}

.ui-datepicker {
    display: none;
}

.ui-datepicker td.holiday,
.ui-datepicker td.holiday a.ui-state-default {
    background: #fdd;;
}

.ui-datepicker td.ui-datepicker-week-end {
    background: #e8f7ff;
}

/* Format Other Month */
.ui-datepicker-other-month a.ui-state-default {
    opacity: .5;
}
