/* Ячейки - дни других месяцев и года других десятилетий */
.air-datepicker-cell.-year-.-other-decade-,
.air-datepicker-cell.-day-.-other-month- {
    color: #cccccc;
}

.air-datepicker-cell.-year-.-other-decade-:hover,
.air-datepicker-cell.-day-.-other-month-:hover {
    color: #bbbbbb;
}

.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,
.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month- {
    color: #cccccc;
}

.-selected-.air-datepicker-cell.-year-.-other-decade-,
.-selected-.air-datepicker-cell.-day-.-other-month- {
    color: #fff;
    background: #92e0a1;
}

.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,
.-selected-.-focus-.air-datepicker-cell.-day-.-other-month- {
    background: #7ed38c;
}

.-in-range-.air-datepicker-cell.-year-.-other-decade-,
.-in-range-.air-datepicker-cell.-day-.-other-month- {
    background-color: rgba(49, 197, 93, 0.1);
    color: #121212;
}

.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,
.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month- {
    background-color: rgba(49, 197, 93, 0.2);
}

.air-datepicker-cell.-year-.-other-decade-:empty,
.air-datepicker-cell.-day-.-other-month-:empty {
    background: none;
    border: none;
}

/* Общие стили ячеек */
.air-datepicker-cell {
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.air-datepicker-cell.-focus- {
    background: #F1F1F1;
}

.air-datepicker-cell.-current- {
    color: #ff3938;
}

.air-datepicker-cell.-current-.-focus- {
    color: #121212;
}

.air-datepicker-cell.-current-.-in-range- {
    color: #ff3938;
}

.air-datepicker-cell.-disabled- {
    cursor: default;
    color: #999999;
}

.air-datepicker-cell.-disabled-.-focus- {
    color: #999999;
}

.air-datepicker-cell.-disabled-.-in-range- {
    color: #888888;
}

.air-datepicker-cell.-disabled-.-current-.-focus- {
    color: #999999;
}

.air-datepicker-cell.-in-range- {
    background: rgba(49, 197, 93, 0.1);
    border-radius: 0;
}

.air-datepicker-cell.-in-range-:hover,
.air-datepicker-cell.-in-range-.-focus- {
    background: rgba(49, 197, 93, 0.2);
}

.air-datepicker-cell.-range-from- {
    border: 1px solid #31c55d;
    background-color: rgba(49, 197, 93, 0.1);
    border-radius: 4px 0 0 4px;
}

.air-datepicker-cell.-range-to- {
    border: 1px solid #31c55d;
    background-color: rgba(49, 197, 93, 0.1);
    border-radius: 0 4px 4px 0;
}

.air-datepicker-cell.-range-to-.-range-from- {
    border-radius: 4px;
}

.air-datepicker-cell.-selected- {
    color: #fff;
    border: none;
    background: #31c55d;
}

.air-datepicker-cell.-selected-.-current- {
    color: #fff;
    background: #31c55d;
}

.air-datepicker-cell.-selected-.-focus- {
    background: #2bb552;
}

/* Тело календаря */
.air-datepicker-body {
    transition: all 0.3s ease-out;
}

.air-datepicker-body.-hidden- {
    display: none;
}

.air-datepicker-body--day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 8px 0 3px;
}

.air-datepicker-body--day-name {
    color: #ff3938;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8em;
}

.air-datepicker-body--day-name.-clickable- {
    cursor: pointer;
}

.air-datepicker-body--day-name.-clickable-:hover {
    color: #31c55d;
}

.air-datepicker-body--cells {
    display: grid;
}

.air-datepicker-body--cells.-days- {
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 32px;
}

.air-datepicker-body--cells.-months- {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 42px;
}

.air-datepicker-body--cells.-years- {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 56px;
}

/* Навигация */
.air-datepicker-nav {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
    min-height: 32px;
    padding: 4px;
    box-sizing: content-box;
}

.-only-timepicker- .air-datepicker-nav {
    display: none;
}

.air-datepicker-nav--title,
.air-datepicker-nav--action {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.air-datepicker-nav--action {
    width: 32px;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.air-datepicker-nav--action:hover {
    background: #F1F1F1;
}

.air-datepicker-nav--action:active {
    background: #e0e0e0;
}

.air-datepicker-nav--action.-disabled- {
    visibility: hidden;
}

.air-datepicker-nav--action svg {
    width: 32px;
    height: 32px;
}

.air-datepicker-nav--action path {
    fill: none;
    stroke: #666666;
    stroke-width: 2px;
}

.air-datepicker-nav--title {
    border-radius: 4px;
    padding: 0 8px;
}

.air-datepicker-nav--title i {
    font-style: normal;
    color: #666666;
    margin-left: 0.3em;
}

.air-datepicker-nav--title:hover {
    background: #F1F1F1;
}

.air-datepicker-nav--title:active {
    background: #e0e0e0;
}

.air-datepicker-nav--title.-disabled- {
    cursor: default;
    background: none;
}

/* Кнопки */
.air-datepicker-buttons {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
}

.air-datepicker-button {
    display: inline-flex;
    color: #31c55d;
    border-radius: 4px;
    cursor: pointer;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0);
}

.air-datepicker-button:hover {
    color: #121212;
    background: #F1F1F1;
}

.air-datepicker-button:focus {
    color: #121212;
    background: #F1F1F1;
    outline: none;
}

.air-datepicker-button:active {
    background: #e0e0e0;
}

.air-datepicker-button span {
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Время */
.air-datepicker-time {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-column-gap: 12px;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.-only-timepicker- .air-datepicker-time {
    border-top: none;
}

.air-datepicker-time--current {
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 14px;
    text-align: center;
}

.air-datepicker-time--current-colon {
    margin: 0 2px 3px;
    line-height: 1;
}

.air-datepicker-time--current-hours,
.air-datepicker-time--current-minutes {
    line-height: 1;
    font-size: 19px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    position: relative;
    z-index: 1;
}

.air-datepicker-time--current-hours:after,
.air-datepicker-time--current-minutes:after {
    content: "";
    background: #F1F1F1;
    border-radius: 4px;
    position: absolute;
    left: -2px;
    top: -3px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    opacity: 0;
}

.air-datepicker-time--current-hours.-focus-:after,
.air-datepicker-time--current-minutes.-focus-:after {
    opacity: 1;
}

.air-datepicker-time--current-ampm {
    text-transform: uppercase;
    align-self: flex-end;
    color: #666666;
    margin-left: 6px;
    font-size: 11px;
    margin-bottom: 1px;
}

.air-datepicker-time--row {
    display: flex;
    align-items: center;
    font-size: 11px;
    height: 17px;
    background: linear-gradient(to right, #cccccc, #cccccc) left 50% / 100% 1px no-repeat;
}

.air-datepicker-time--row:first-child {
    margin-bottom: 4px;
}

.air-datepicker-time--row input[type=range] {
    background: none;
    cursor: pointer;
    flex: 1;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
}

.air-datepicker-time--row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

.air-datepicker-time--row input[type=range]::-ms-tooltip {
    display: none;
}

.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb {
    border-color: #999999;
}

.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb {
    border-color: #999999;
}

.air-datepicker-time--row input[type=range]:hover::-ms-thumb {
    border-color: #999999;
}

.air-datepicker-time--row input[type=range]:focus {
    outline: none;
}

.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb {
    background: #31c55d;
    border-color: #31c55d;
}

.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb {
    background: #31c55d;
    border-color: #31c55d;
}

.air-datepicker-time--row input[type=range]:focus::-ms-thumb {
    background: #31c55d;
    border-color: #31c55d;
}

.air-datepicker-time--row input[type=range]::-webkit-slider-thumb {
    box-sizing: border-box;
    height: 12px;
    width: 12px;
    border-radius: 3px;
    border: 1px solid #cccccc;
    background: #fff;
    cursor: pointer;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}

.air-datepicker-time--row input[type=range]::-moz-range-thumb {
    box-sizing: border-box;
    height: 12px;
    width: 12px;
    border-radius: 3px;
    border: 1px solid #cccccc;
    background: #fff;
    cursor: pointer;
    -moz-transition: background 0.3s;
    transition: background 0.3s;
}

.air-datepicker-time--row input[type=range]::-ms-thumb {
    box-sizing: border-box;
    height: 12px;
    width: 12px;
    border-radius: 3px;
    border: 1px solid #cccccc;
    background: #fff;
    cursor: pointer;
    -ms-transition: background 0.3s;
    transition: background 0.3s;
}

.air-datepicker-time--row input[type=range]::-webkit-slider-thumb {
    margin-top: -6px;
}

.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track {
    border: none;
    height: 1px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0);
    background: rgba(0, 0, 0, 0);
}

.air-datepicker-time--row input[type=range]::-moz-range-track {
    border: none;
    height: 1px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0);
    background: rgba(0, 0, 0, 0);
}

.air-datepicker-time--row input[type=range]::-ms-track {
    border: none;
    height: 1px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0);
    background: rgba(0, 0, 0, 0);
}

.air-datepicker-time--row input[type=range]::-ms-fill-lower {
    background: rgba(0, 0, 0, 0);
}

.air-datepicker-time--row input[type=range]::-ms-fill-upper {
    background: rgba(0, 0, 0, 0);
}

/* Основной календарь */
.air-datepicker {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-sizing: content-box;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, max-content);
    grid-template-areas: "nav" "body" "timepicker" "buttons";
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 14px;
    color: #121212;
    width: 246px;
    position: absolute;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    z-index: 100;
}

.air-datepicker:not(.-custom-position-) {
    opacity: 0;
}

.air-datepicker.-from-top- {
    transform: translateY(-8px);
}

.air-datepicker.-from-right- {
    transform: translateX(8px);
}

.air-datepicker.-from-bottom- {
    transform: translateY(8px);
}

.air-datepicker.-from-left- {
    transform: translateX(-8px);
}

.air-datepicker.-active-:not(.-custom-position-) {
    transform: translate(0, 0);
    opacity: 1;
}

.air-datepicker.-active-.-custom-position- {
    transition: none;
}

.air-datepicker.-inline- {
    border-color: #d0d0d0;
    box-shadow: none;
    position: static;
    left: auto;
    right: auto;
    opacity: 1;
    transform: none;
}

.air-datepicker.-inline- .air-datepicker--pointer {
    display: none;
}

.air-datepicker.-is-mobile- {
    font-size: 16px;
    day-cell-height: 38px;
    month-cell-height: 48px;
    year-cell-height: 64px;
    nav-height: 40px;
    nav-action-size: 40px;
    position: fixed;
    width: 320px;
    border: none;
}

.air-datepicker.-is-mobile- * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.air-datepicker.-is-mobile- .air-datepicker--pointer {
    display: none;
}

.air-datepicker.-is-mobile-:not(.-custom-position-) {
    transform: translate(-50%, calc(-50% + 8px));
}

.air-datepicker.-is-mobile-.-active-:not(.-custom-position-) {
    transform: translate(-50%, -50%);
}

.air-datepicker.-custom-position- {
    transition: none;
}

.air-datepicker-global-container {
    position: absolute;
    left: 0;
    top: 0;
}

/* Указатель */
.air-datepicker--pointer {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: -1;
}

.air-datepicker--pointer:after {
    content: "";
    position: absolute;
    background: #fff;
    border-top: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    border-top-right-radius: 2px;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
}

.-top-left- .air-datepicker--pointer,
.-top-center- .air-datepicker--pointer,
.-top-right- .air-datepicker--pointer,
[data-popper-placement^=top] .air-datepicker--pointer {
    top: calc(100% - 5px + 1px);
}

.-top-left- .air-datepicker--pointer:after,
.-top-center- .air-datepicker--pointer:after,
.-top-right- .air-datepicker--pointer:after,
[data-popper-placement^=top] .air-datepicker--pointer:after {
    transform: rotate(135deg);
}

.-right-top- .air-datepicker--pointer,
.-right-center- .air-datepicker--pointer,
.-right-bottom- .air-datepicker--pointer,
[data-popper-placement^=right] .air-datepicker--pointer {
    right: calc(100% - 5px + 1px);
}

.-right-top- .air-datepicker--pointer:after,
.-right-center- .air-datepicker--pointer:after,
.-right-bottom- .air-datepicker--pointer:after,
[data-popper-placement^=right] .air-datepicker--pointer:after {
    transform: rotate(225deg);
}

.-bottom-left- .air-datepicker--pointer,
.-bottom-center- .air-datepicker--pointer,
.-bottom-right- .air-datepicker--pointer,
[data-popper-placement^=bottom] .air-datepicker--pointer {
    bottom: calc(100% - 5px + 1px);
}

.-bottom-left- .air-datepicker--pointer:after,
.-bottom-center- .air-datepicker--pointer:after,
.-bottom-right- .air-datepicker--pointer:after,
[data-popper-placement^=bottom] .air-datepicker--pointer:after {
    transform: rotate(315deg);
}

.-left-top- .air-datepicker--pointer,
.-left-center- .air-datepicker--pointer,
.-left-bottom- .air-datepicker--pointer,
[data-popper-placement^=left] .air-datepicker--pointer {
    left: calc(100% - 5px + 1px);
}

.-left-top- .air-datepicker--pointer:after,
.-left-center- .air-datepicker--pointer:after,
.-left-bottom- .air-datepicker--pointer:after,
[data-popper-placement^=left] .air-datepicker--pointer:after {
    transform: rotate(45deg);
}

.-top-left- .air-datepicker--pointer,
.-bottom-left- .air-datepicker--pointer {
    left: 14px;
}

.-top-right- .air-datepicker--pointer,
.-bottom-right- .air-datepicker--pointer {
    right: 14px;
}

.-top-center- .air-datepicker--pointer,
.-bottom-center- .air-datepicker--pointer {
    left: calc(50% - 10px/2);
}

.-left-top- .air-datepicker--pointer,
.-right-top- .air-datepicker--pointer {
    top: 14px;
}

.-left-bottom- .air-datepicker--pointer,
.-right-bottom- .air-datepicker--pointer {
    bottom: 14px;
}

.-left-center- .air-datepicker--pointer,
.-right-center- .air-datepicker--pointer {
    top: calc(50% - 10px/2);
}

/* Области календаря */
.air-datepicker--navigation {
    grid-area: nav;
}

.air-datepicker--content {
    box-sizing: content-box;
    padding: 4px;
    grid-area: body;
}

.-only-timepicker- .air-datepicker--content {
    display: none;
}

.air-datepicker--time {
    grid-area: timepicker;
}

.air-datepicker--buttons {
    grid-area: buttons;
}

.air-datepicker--buttons,
.air-datepicker--time {
    padding: 4px;
    border-top: 1px solid #eaeaea;
}

/* Оверлей */
.air-datepicker-overlay {
    position: fixed;
    background: rgba(0, 0, 0, 0.3);
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.3s ease-out, left 0s, height 0s, width 0s;
    transition-delay: 0s, 0.3s, 0.3s, 0.3s;
    z-index: 99;
}

.air-datepicker-overlay.-active- {
    opacity: 1;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-out, height 0s, width 0s;
}
