.erp-date-enhanced {
    font-variant-numeric: tabular-nums;
}

.erp-date-enhanced::-webkit-calendar-picker-indicator {
    display: none;
}

.date-popover:not(.erp-date-picker-popover) {
    display: none !important;
}

.erp-date-picker-popover {
    position: fixed;
    z-index: 9999;
    display: none;
    width: 352px;
    padding: 12px;
    border: 1px solid #e9edf3;
    border-radius: 12px;
    background: #fff;
    color: #515a6e;
    box-shadow: 0 18px 48px rgba(26, 34, 51, .18);
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
}

.erp-date-picker-popover.open {
    display: block;
}

.erp-dp-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.erp-dp-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #17233d;
    font-weight: 700;
    min-width: 0;
}

.erp-dp-nav,
.erp-dp-year-step,
.erp-dp-action {
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f6f7fb;
    color: #515a6e;
    cursor: pointer;
    font: inherit;
}

.erp-dp-nav {
    width: 36px;
    font-size: 20px;
    line-height: 1;
}

.erp-dp-year-step {
    width: 28px;
    font-size: 18px;
    line-height: 1;
}

.erp-dp-nav:hover,
.erp-dp-year-step:hover,
.erp-dp-action:hover {
    background: #fff2df;
    color: #d9892b;
}

.erp-dp-year,
.erp-dp-month {
    height: 32px;
    border: 1px solid #dcdee2;
    border-radius: 8px;
    background: #fff;
    color: #17233d;
    font: inherit;
    font-weight: 700;
    outline: 0;
}

.erp-dp-year {
    width: 72px;
    padding: 0 8px;
    text-align: center;
}

.erp-dp-month {
    width: 58px;
    padding: 0 6px;
}

.erp-dp-year:focus,
.erp-dp-month:focus {
    border-color: #e6b47d;
    box-shadow: 0 0 0 3px rgba(230, 180, 125, .16);
}

.erp-dp-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.erp-dp-action {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
}

.erp-dp-week,
.erp-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.erp-dp-week span {
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ea7b4;
    font-size: 12px;
}

.erp-dp-day {
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #515a6e;
    cursor: pointer;
    font: inherit;
}

.erp-dp-day:hover {
    background: #fff7e8;
    color: #d9892b;
}

.erp-dp-day.muted {
    color: #c5c8ce;
}

.erp-dp-day.today {
    color: #d9892b;
    font-weight: 700;
}

.erp-dp-day.selected {
    background: #e6b47d;
    color: #fff;
    box-shadow: 0 8px 18px rgba(230, 180, 125, .38);
}

.erp-dp-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.erp-dp-time {
    width: 58px;
    height: 30px;
    border: 1px solid #dcdee2;
    border-radius: 8px;
    color: #515a6e;
    text-align: center;
    outline: 0;
}

.erp-dp-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 760px), (pointer: coarse) {
    .erp-date-picker-popover.open {
        left: 12px !important;
        right: 12px;
        top: auto !important;
        bottom: 12px;
        width: auto;
        border-radius: 16px;
    }

    .erp-dp-head {
        grid-template-columns: 40px 1fr 40px;
    }

    .erp-dp-nav,
    .erp-dp-action {
        height: 38px;
    }

    .erp-dp-day {
        height: 42px;
        font-size: 15px;
    }
}
