/* KANZ_CALENDAR_SATURDAY_RTL_V3 */

.kanz-date-wrapper,
.kanz-date-wrapper *,
.kanz-calendar-popup,
.kanz-calendar-popup * {
    box-sizing: border-box !important;
}

.kanz-date-wrapper {
    position: relative !important;
    width: 100% !important;
}

button.kanz-date-display {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 43px !important;

    margin: 0 !important;
    padding: 8px 42px 8px 12px !important;

    border: 1px solid #bad2df !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #0b3557 !important;

    direction: ltr !important;
    text-align: center !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;

    white-space: nowrap !important;
    cursor: pointer !important;
}

button.kanz-date-display:hover {
    border-color: #149cc1 !important;
}

button.kanz-date-display:focus {
    outline: none !important;
    border-color: #149cc1 !important;
    box-shadow:
        0 0 0 3px
        rgba(20, 156, 193, .16) !important;
}

button.kanz-date-display.is-empty {
    color: #788b95 !important;
    font-weight: 700 !important;
}

button.kanz-date-display.is-invalid {
    border-color: #dc3545 !important;
    box-shadow:
        0 0 0 3px
        rgba(220, 53, 69, .18) !important;
}

button.kanz-date-display:disabled {
    background: #edf1f4 !important;
    cursor: not-allowed !important;
    opacity: .75;
}

.kanz-date-icon {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    z-index: 2 !important;

    transform: translateY(-50%) !important;
    pointer-events: none !important;

    font-size: 17px !important;
}

.kanz-calendar-popup {
    position: fixed !important;
    z-index: 2147483000 !important;

    display: none;
    width: 360px !important;
    max-width: calc(100vw - 16px) !important;

    padding: 12px !important;
    overflow: hidden !important;

    border: 1px solid #a9cfdd !important;
    border-radius: 15px !important;

    background: #ffffff !important;
    box-shadow:
        0 14px 38px
        rgba(11, 53, 87, .28) !important;

    direction: rtl !important;
    font-family: Tahoma, Arial, sans-serif !important;
}

.kanz-calendar-popup.is-open {
    display: block !important;
}

.kanz-calendar-header {
    display: grid !important;
    grid-template-columns:
        38px minmax(105px, 1fr)
        minmax(82px, 1fr) 38px !important;

    gap: 6px !important;
    align-items: center !important;

    width: 100% !important;
    margin-bottom: 9px !important;

    direction: rtl !important;
}

.kanz-calendar-header button,
.kanz-calendar-header select {
    width: 100% !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 6px !important;

    border: 1px solid #b9d6e1 !important;
    border-radius: 9px !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-weight: 900 !important;
}

.kanz-calendar-header select {
    background: #f7fbfd !important;
    color: #0b4f6c !important;
}

.kanz-calendar-header button {
    padding: 0 !important;

    border-color: #149cc1 !important;
    background: #149cc1 !important;
    color: #ffffff !important;

    font-size: 19px !important;
    cursor: pointer !important;
}

.kanz-calendar-weekdays,
.kanz-calendar-days {
    display: grid !important;
    grid-template-columns:
        repeat(7, minmax(0, 1fr)) !important;

    grid-auto-flow: row !important;

    width: 100% !important;

    column-gap: 5px !important;
    row-gap: 6px !important;

    /*
     * أول عنصر يظهر في أقصى اليمين:
     * السبت ثم الأحد حتى الجمعة.
     */
    direction: rtl !important;

    align-items: center !important;
    justify-items: stretch !important;
}

.kanz-calendar-weekdays {
    margin: 5px 0 8px !important;
}

.kanz-calendar-weekday {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    color: #526b78 !important;

    direction: rtl !important;
    text-align: center !important;
    white-space: nowrap !important;

    font-size: 10px !important;
    font-weight: 900 !important;
}

.kanz-calendar-day,
.kanz-calendar-empty {
    width: 100% !important;
    min-width: 0 !important;
    height: 35px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.kanz-calendar-day {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: #149cc1 !important;
    color: #ffffff !important;

    line-height: 1 !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

.kanz-calendar-day:hover {
    background: #0b6f91 !important;
}

.kanz-calendar-day.is-selected {
    background: #087f5b !important;
    box-shadow:
        inset 0 0 0 2px #064e3b !important;
}

.kanz-calendar-day.is-today {
    box-shadow:
        inset 0 0 0 2px #f39c12 !important;
}

.kanz-calendar-day.is-disabled {
    background: #e4ebef !important;
    color: #82949d !important;
    cursor: not-allowed !important;
}

.kanz-calendar-empty {
    visibility: hidden !important;
    pointer-events: none !important;
}

.kanz-calendar-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    gap: 8px !important;

    width: 100% !important;
    margin-top: 10px !important;
}

.kanz-calendar-footer button {
    width: 100% !important;
    height: 36px !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: #149cc1 !important;
    color: #ffffff !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

.kanz-calendar-footer button:last-child {
    background: #657786 !important;
}

@media (max-width: 390px) {
    .kanz-calendar-popup {
        width: calc(100vw - 16px) !important;
        padding: 9px !important;
    }

    .kanz-calendar-weekdays,
    .kanz-calendar-days {
        column-gap: 4px !important;
        row-gap: 5px !important;
    }

    .kanz-calendar-day,
    .kanz-calendar-empty {
        height: 33px !important;
    }

    .kanz-calendar-weekday {
        font-size: 9px !important;
    }
}
