/**
 * עיצוב ה-datepicker - assets/css/datepicker.css
 *
 * מחליף את גיליון העיצוב של jQuery UI שנטען קודם מ-code.jquery.com.
 * ללא תמונות sprite וללא קריאות רשת חיצוניות.
 */

#ui-datepicker-div.ui-datepicker {
    display: none;
    width: 19em;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2d8ea;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(86, 56, 105, 0.18);
    font-size: 14px;
    line-height: 1.4;
    direction: rtl;
    box-sizing: border-box;
}

.ui-datepicker * {
    box-sizing: border-box;
}

/* כותרת */

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 4px 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0eaf5;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0 34px;
    text-align: center;
    line-height: 30px;
}

.ui-datepicker .ui-datepicker-title select {
    max-width: 46%;
    height: 30px;
    margin: 0 2px;
    padding: 0 4px;
    border: 1px solid #d9cee2;
    border-radius: 4px;
    background: #fdfff5;
    color: #563869;
    font-size: 13px;
}

/* חצי ניווט */

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 4px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.ui-datepicker .ui-datepicker-prev {
    right: 0;
    left: auto;
}

.ui-datepicker .ui-datepicker-next {
    left: 0;
    right: auto;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: #f4eefa;
}

.ui-datepicker .ui-datepicker-prev.ui-state-disabled,
.ui-datepicker .ui-datepicker-next.ui-state-disabled {
    opacity: 0.35;
    cursor: default;
    background: none;
}

/* החצים עצמם - ללא תמונות */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-indent: -9999px;
    position: relative;
}

.ui-datepicker .ui-datepicker-prev span:before,
.ui-datepicker .ui-datepicker-next span:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-top: 2px solid #9166ac;
    border-left: 2px solid #9166ac;
}

/* בתצוגת RTL "הקודם" יושב מימין ומצביע ימינה */
.ui-datepicker .ui-datepicker-prev span:before {
    transform: rotate(135deg);
    margin-left: -6px;
}

.ui-datepicker .ui-datepicker-next span:before {
    transform: rotate(-45deg);
    margin-left: -2px;
}

/* לוח החודש */

.ui-datepicker table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: none;
}

.ui-datepicker th {
    padding: 6px 0;
    border: 0;
    background: none;
    color: #9166ac;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ui-datepicker td {
    padding: 1px;
    border: 0;
    background: none;
    text-align: center;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 7px 0;
    border: 0;
    border-radius: 4px;
    color: #555555;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.ui-datepicker td a:hover {
    background: #f4eefa;
    color: #563869;
}

/* היום הנוכחי */
.ui-datepicker td.ui-datepicker-today a {
    background: #fdfff5;
    box-shadow: inset 0 0 0 1px #9166ac;
    color: #563869;
    font-weight: 600;
}

/* היום שנבחר */
.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td a.ui-state-active {
    background: #9166ac;
    color: #ffffff;
    font-weight: 600;
}

/* ימים מחודשים אחרים / לא ניתנים לבחירה */
.ui-datepicker td.ui-datepicker-other-month a,
.ui-datepicker td.ui-datepicker-other-month span {
    color: #b3b3b3;
}

.ui-datepicker td.ui-datepicker-unselectable span,
.ui-datepicker td.ui-state-disabled span {
    color: #cccccc;
    cursor: default;
}

/* לוח הכפתורים התחתון */

.ui-datepicker .ui-datepicker-buttonpane {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0eaf5;
    overflow: hidden;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    float: right;
    width: auto;
    margin: 0 0 0 6px;
    padding: 5px 12px;
    border: 1px solid #d9cee2;
    border-radius: 4px;
    background: #fdfff5;
    color: #563869;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #f4eefa;
    border-color: #9166ac;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close {
    float: left;
    margin: 0 6px 0 0;
}

/* טקסט לקוראי מסך בלבד */

.ui-helper-hidden-accessible {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
