.calendars {
    background-color: #fff;
    color: #000;
    -moz-border-radius: 0.25em;
    /* font-size: 90%; */
    direction: ltr;
    -webkit-transform-origin: 50% 0 !important;
    transform-origin: 50% 0 !important;
    box-shadow: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
    border-radius: 16px;
    padding: 1rem;
}

.calendars-rtl {
    direction: rtl;
}

.calendars-popup {
    z-index: 1000;
}

.calendars-disable {
    position: absolute;
    z-index: 100;
    background-color: white;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.calendars a {
    color: #000;
    text-decoration: none;
}

    .calendars a.calendars-disabled {
        color: #888;
        cursor: auto;
    }

.calendars button {
    margin: 0.25em;
    padding: 0.125em 0em;
    background-color: #fcc;
    border: none;
    -moz-border-radius: 0.25em;
    -webkit-border-radius: 0.25em;
    border-radius: 0.25em;
    font-weight: bold;
}


.calendars-nav, .calendars-ctrl {
    /* float: left; */
    display: flex;
    /* width: 100%; */
    justify-content: space-between;
    background-color: #fff;
    color: #000;
    font-size: 90%;
    font-weight: bold;
    /* background-color: #016eb3; */
    /* align-content: flex-start; */
    align-items: center;
    /* text-align: center; */
}

[dir=ltr] .calendars-nav,[dir=ltr] .calendars-ctrl,
[dir=ltr] .calendars-month-header{
    flex-direction: row-reverse;
}


.calendars-ctrl {
    /* background-color: #600; */
    /* background-color: #016eb3; */
    display: none;
}

.calendars-cmd {
    width: 30%;
}

    .calendars-cmd:hover {
        /* background-color: #777; */
        /* background-color: #0093d2; */
    }

.calendars-ctrl .calendars-cmd:hover {
    /* background-color: #f08080; */
    /* background-color: #0093d2; */
}

.calendars-cmd-prevJump, .calendars-cmd-nextJump {
    width: 8%;
}

a.calendars-cmd {
    height: 2.5em;
    line-height: 2;
}

button.calendars-cmd {
    text-align: center;
}

.calendars-cmd-prev, .calendars-cmd-prevJump, .calendars-cmd-clear {
    float: left;
    padding-left: 2%;
}

.calendars-cmd-current, .calendars-cmd-today {
    /* float: left; */
    /* width: 35%; */
    /* text-align: center; */
}

.calendars-cmd-next, .calendars-cmd-nextJump, .calendars-cmd-close {
    float: right;
    padding-right: 2%;
    text-align: right;
}

.calendars-rtl .calendars-cmd-prev, .calendars-rtl .calendars-cmd-prevJump,
.calendars-rtl .calendars-cmd-clear {
    float: right;
    padding-left: 0%;
    padding-right: 2%;
    text-align: right;
}

.calendars-rtl .calendars-cmd-current, .calendars-rtl .calendars-cmd-today {
    float: right;
}

.calendars-rtl .calendars-cmd-next, .calendars-rtl .calendars-cmd-nextJump,
.calendars-rtl .calendars-cmd-close {
    float: left;
    padding-left: 2%;
    padding-right: 0%;
    text-align: left;
}

.calendars-month-nav {
    float: left;
    background-color: #777;
    text-align: center;
}

    .calendars-month-nav div {
        float: left;
        width: 12.5%;
        margin: 1%;
        padding: 1%;
    }

    .calendars-month-nav span {
        color: #888;
    }

.calendars-month-row {
    clear: left;
}

.calendars-month {
    float: left;
    width: 24em;
    /* border: 1px solid #444; */
    text-align: center;
}

.calendars-month-header, .calendars-month-header select, .calendars-month-header input {
    height: 2em;
    background-color: #fff;
    color: #999;
    font-weight: bold;
    color: #161616;
}

    .calendars-month-header select, .calendars-month-header input {
        height: 2.1em;
        border: none;
    }

    .calendars-month-header input {
        position: absolute;
        display: none;
    }

.calendars-month table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.calendars-month thead {
    /* border-bottom: 1px solid #aaa; */
}

.calendars-month th, .calendars-month td {
    /* margin: 0em; */
    /* padding: 0.33em; */
    /* font-weight: normal; */
    /* text-align: center; */
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    /* display: inline-block; */
    line-height: 2rem;
}

.calendars-month th {
    /* border: 1px solid #777; */
    /* border: 1px solid #ddd; */
}

    .calendars-month th, .calendars-month th a {
        background-color: #fff;
        color: #fff;
        color: #0a253e;
        padding: 1px 0px 7px;
    }

.calendars-month td {
    /* background-color: #eee; */
    /* border: 1px solid #ddd; */
}

    .calendars-month td.calendars-week {
        border: 1px solid #777;
    }

        .calendars-month td.calendars-week * {
            background-color: #777;
            color: #fff;
            border: none;
        }

.calendars-month a {
   display: flex
;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    padding: 0.15em;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    /* line-height: 3rem; */
    border-radius: 100%;
}

.calendars-month span {
    display: block;
    width: 100%;
    padding: 0.125em 0em;
}

.calendars-month td span {
    color: #888;
}

.calendars-month td .calendars-other-month {
    background-color: #fff;
}

.calendars-month td .calendars-weekend {
    /*  background-color: #ddd; */
}

.calendars-month td .calendars-today {
    background-color: #fff !important;
    color: #1b8354;
    border-radius: 100%;
    /* width: 3.3rem; */
    /* height: 3.3rem; */
    border: 2px solid #1B8355;
    font-weight: 700;
}

.calendars-month td .calendars-highlight {
    background-color: #F3F4F6;
    color: #161616;
}

.calendars-month td .calendars-selected {
    background-color: #1B8354;
    color: #fff;
}

.calendars-month th.calendars-week {
    background-color: #777;
    color: #fff;
}

.calendars-status {
    clear: both;
    background-color: #ddd;
    text-align: center;
}

.calendars-clear-fix {
    clear: both;
}

/*custom*/
.calendars-month-header select, .calendars-month-header input {
    height: 2em;
    border: none;
    padding-inline-start: 5px;
    width: inherit;
}

    .calendars-month-header select:first-child {
        /* float:  right; */
        direction: rtl;
    }

    .calendars-month-header select:last-child {
        float: left;
        border-left: 0;
        border-bottom: 0;
        direction: rtl;
    }
   html[dir=ltr] .calendars-month-header select:first-child {
        /* float:  right; */
        direction: ltr;
    }

   html[dir=ltr] .calendars-month-header select:last-child {
        float: right;
        border-right: 0;
        border-bottom: 0;
        direction: ltr;
    }


a.calendars-cmd {
    line-height: 2.3;
    padding: 0 0.5rem;
}

.calendars-month tr th:last-child {
    border-left: 0;
}

.calendars-month tr th:first-child {
    border-right: 0;
}


.calendars-month tr td:last-child {
    border-left: 0;
}

.calendars-month tr td:first-child {
    border-right: 0;
}

.calendars-month th span {
    color: var(--text-text-tertiary, #64748B);
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.calendars-month-header {
    padding: 1rem 0 0.5rem 0;
    height: 3.5rem;
}
