.apl-select,
.apl-date {
    position: relative;
}

.apl-native {
    display: none !important;
}

.apl-select-trigger,
.apl-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
    color: #1b1b1b;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.apl-select-trigger:hover,
.apl-date-trigger:hover {
    border-color: #cfcfcf;
    background: #fff;
}

.apl-select-trigger:focus-visible,
.apl-date-trigger:focus-visible,
.apl-select.is-open .apl-select-trigger,
.apl-date.is-open .apl-date-trigger {
    outline: none;
    border-color: #01244c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 196, 240, .14);
}

.apl-select-trigger.is-placeholder,
.apl-date-trigger.is-placeholder {
    color: #1b1b1b80;
}

.apl-select-value,
.apl-date-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.apl-ui-chevron,
.apl-ui-icon {
    flex: 0 0 auto;
    color: #1b1b1b99;
    transition: transform .2s, color .2s;
}

.apl-select.is-open .apl-ui-chevron {
    transform: rotate(180deg);
    color: #01244c;
}

.apl-date.is-open .apl-ui-icon {
    color: #01244c;
}

.apl-field.is-invalid .apl-select-trigger,
.apl-field.is-invalid .apl-date-trigger {
    border-color: #d64545;
    background: #fff7f7;
}

.apl-ui-panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .28);
    animation: apl-ui-pop .16s ease-out;
}

.apl-ui-panel[hidden] {
    display: none;
}

@keyframes apl-ui-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.apl-select-panel {
    right: 0;
    padding: 6px;
}

.apl-select-search {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 1.5px solid #e6e6e6;
    border-radius: 7px;
    background: #fafafa;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.apl-select-search:focus {
    border-color: #01244c;
    background: #fff;
}

.apl-select-list {
    max-height: 264px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    overscroll-behavior: contain;
}

.apl-select-list li[role=option] {
    position: relative;
    padding: 10px 36px 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.apl-select-list li.is-active {
    background: rgba(0, 196, 240, .1);
    color: #01244c;
}

.apl-select-list li.is-selected {
    font-weight: 600;
    color: #01244c;
}

.apl-select-list li.is-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301244c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat;
}

.apl-select-empty {
    padding: 12px;
    color: #1b1b1b80;
    font-size: 14px;
}

.apl-date-panel {
    width: 312px;
    padding: 14px;
}

.apl-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.apl-date-nav,
.apl-date-title,
.apl-date-cell,
.apl-date-clear {
    border: 0;
    background: transparent;
    color: #1b1b1b;
    font: inherit;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.apl-date-nav {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.apl-date-nav:hover:not(:disabled),
.apl-date-title:hover:not(:disabled) {
    background: rgba(0, 196, 240, .1);
    color: #01244c;
}

.apl-date-nav:disabled {
    opacity: .3;
    cursor: default;
}

.apl-date-title {
    flex: 1;
    padding: 7px 10px;
    border-radius: 7px;
    font-family: "PPAgrandir", sans-serif;
    font-size: 16px;
}

.apl-date-title:disabled {
    cursor: default;
}

.apl-date-grid {
    display: grid;
    gap: 4px;
}

.apl-date-days {
    grid-template-columns: repeat(7, 1fr);
}

.apl-date-months,
.apl-date-years {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.apl-date-weekday {
    padding: 4px 0 6px;
    color: #1b1b1b80;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.apl-date-panel .apl-date-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.apl-date-panel .apl-date-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.apl-date-panel .apl-date-months .apl-date-cell,
.apl-date-panel .apl-date-years .apl-date-cell {
    height: 46px;
    font-size: 15px;
    font-weight: 500;
}

.apl-date-cell:hover:not(:disabled) {
    background: rgba(0, 196, 240, .12);
    color: #01244c;
}

.apl-date-cell.is-today {
    box-shadow: inset 0 0 0 1.5px #01244c;
}

.apl-date-cell.is-selected {
    background: #01244c;
    color: #fff;
    font-weight: 600;
}

.apl-date-cell:disabled {
    color: #1b1b1b33;
    cursor: default;
}

.apl-date-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.apl-date-clear {
    padding: 6px 10px;
    border-radius: 6px;
    color: #1b1b1b99;
    font-size: 13px;
    font-weight: 600;
}

.apl-date-clear:hover {
    background: #f4f4f4;
    color: #1b1b1b;
}

@media (max-width: 640px) {
    .apl-date-panel {
        width: min(312px, calc(100vw - 48px));
    }
}
