/* datepick.css — власний календар для полів дати (js/datepick.js) */
.dp-native {
    display: none !important;
}

.dp {
    position: relative;
    min-width: 0;
}

.dp__field {
    display: flex;
    align-items: center;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: box-shadow .15s ease;
}

.dp__field:hover {
    box-shadow: 0 0 0 1px #8fa8d6, 0 3px 8px rgba(40, 59, 105, .08);
}

.dp__field:focus-within {
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .18), 0 3px 8px rgba(40, 59, 105, .08);
}

.dp__field.is-bad {
    box-shadow: 0 0 0 2px rgba(209, 43, 43, .6);
}

.dp__text {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    outline: none;
}

.dp__text::placeholder {
    color: #9ca3af;
}

.dp__btn {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    cursor: pointer;
}

.dp__btn:hover {
    background: #eef2fa;
}

.dp__btn:focus-visible,
.dp__btn[aria-expanded="true"] {
    outline: none;
    background: #e3eaf7;
}

.dp__ico {
    flex: 0 0 auto;
    color: #283b69;
}

.dp__pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: 296px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(31, 47, 85, .08), 0 14px 32px rgba(40, 59, 105, .20);
}

.dp__pop[hidden] {
    display: none;
}

.dp__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dp__ttl {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.dp__ys {
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.dp__ms {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 8px 0 10px;
    border: 0;
    border-radius: 9px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease;
}

.dp__ms:hover,
.dp__ms[aria-expanded="true"] {
    background: #dbe7fa;
}

.dp__chev {
    flex: 0 0 auto;
    color: #283b69;
    transition: transform .2s ease;
}

.dp__ms[aria-expanded="true"] .dp__chev {
    transform: rotate(180deg);
}

.dp__ys {
    width: 56px;
    padding: 0 4px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.dp__yw {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border-radius: 9px;
    background: #eaf1fc;
}

.dp__yw .dp__ys {
    width: 46px;
    padding: 0 2px 0 8px;
    border-radius: 9px 0 0 9px;
    background: transparent;
}

.dp__yb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 26px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: transparent;
    color: #283b69;
    cursor: pointer;
    transition: background .15s ease;
}

.dp__yb:hover,
.dp__yb[aria-expanded="true"] {
    background: #dbe7fa;
}

.dp__yb[aria-expanded="true"] .dp__chev {
    transform: rotate(180deg);
}

.dp__yb:focus-visible {
    outline: 2px solid #283b69;
    outline-offset: 1px;
}

.dp__list {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 228px;
    overflow-y: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(31, 47, 85, .08), 0 12px 28px rgba(40, 59, 105, .22);
}

.dp__list[hidden] {
    display: none;
}

.dp__li {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: left;
    cursor: pointer;
}

.dp__li:hover {
    background: #eaf1fc;
}

.dp__li.is-sel {
    background: #283b69;
    color: #fff;
    font-weight: 800;
}

.dp__li:focus-visible {
    outline: 2px solid #283b69;
    outline-offset: -2px;
}

.dp__ms:focus-visible,
.dp__ys:focus-visible {
    outline: 2px solid #283b69;
    outline-offset: 1px;
}

.dp__nav {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.dp__nav:hover {
    background: #dbe7fa;
}

.dp__wd,
.dp__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.dp__wd span {
    padding: 3px 0;
    color: #6b7280;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
}

.dp__d {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.dp__d:hover:not(:disabled) {
    background: #eaf1fc;
}

.dp__d:focus-visible {
    outline: 2px solid #283b69;
    outline-offset: 1px;
}

.dp__d.is-out {
    color: #aab3c8;
}

.dp__d.is-today {
    box-shadow: inset 0 0 0 2px #0f8b8d;
    font-weight: 800;
}

.dp__d.is-sel {
    background: #283b69;
    color: #fff;
    font-weight: 800;
}

.dp__d.is-dis {
    color: #c9cfdd;
    cursor: not-allowed;
}

.dp__ft {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef1f8;
}

.dp__ft button {
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #283b69;
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.dp__ft button:hover:not(:disabled) {
    background: #eaf1fc;
}

.dp__ft button:disabled {
    color: #b3bbcd;
    cursor: not-allowed;
}

.dp__list {
    scrollbar-width: thin;
    scrollbar-color: #b9c6e4 transparent;
}

.dp__list::-webkit-scrollbar {
    width: 8px;
}

.dp__list::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #c4d0ea;
}

.dp__list--m {
    max-height: 272px;
}
