.drp-modal {
    position: fixed;
    inset: 0;
    z-index: 7600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.36);
}

.drp-modal[aria-hidden="false"] {
    display: flex;
}

.drp-card {
    width: min(1040px, 96vw);
    border-radius: 16px;
    border: 1px solid #d4deeb;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
}

.drp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.drp-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.drp-close {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #334155;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.drp-close:hover,
.drp-close:focus,
.drp-close:focus-visible,
.drp-close:active {
    background: transparent;
    color: #334155;
    box-shadow: none;
    outline: none;
}

.drp-body {
    padding: 12px 14px;
    display: grid;
    gap: 12px;
    overflow: auto;
}

.drp-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.drp-toolbar-center {
    display: grid;
    justify-items: center;
    gap: 0;
}

.drp-month-header-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.drp-year-select {
    min-width: 78px;
    width: 78px;
    padding: 4px 20px 4px 8px;
    border: 1px solid #d4deeb;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.drp-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: capitalize;
    text-align: center;
}

.drp-month-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #334155;
    cursor: pointer;
    padding: 0;
}

.drp-month-nav:hover,
.drp-month-nav:focus,
.drp-month-nav:focus-visible,
.drp-month-nav:active {
    background: transparent;
    color: #334155;
    box-shadow: none;
    outline: none;
}

.drp-month-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drp-grid-wrap {
    border: 1px solid #d4deeb;
    border-radius: 12px;
    overflow: hidden;
}

.drp-weekdays {
    display: grid;
    grid-template-columns: 44px repeat(7, 1fr);
    background: #eef3f9;
    border-bottom: 1px solid #e2e8f0;
}

.drp-weekdays > div {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    padding: 8px 0;
}

.drp-grid {
    display: grid;
}

.drp-week-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    min-height: 56px;
    border-bottom: 1px solid #edf2f7;
}

.drp-week-row:last-child {
    border-bottom: none;
}

.drp-week-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.drp-days-wrap {
    position: relative;
}

.drp-days-layer {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 56px;
}

.drp-day {
    border: none;
    border-right: 1px solid #edf2f7;
    border-radius: 0;
    background: transparent;
    min-height: 56px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1;
    padding: 6px 10px 0;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}

.drp-day:last-child {
    border-right: none;
}

.drp-day.is-out-month {
    color: #94a3b8;
}

.drp-day.is-in-range {
    background: transparent;
    color: #334155;
}

.drp-day:hover,
.drp-day:focus,
.drp-day:focus-visible,
.drp-day:active {
    background: transparent;
    color: #334155;
    outline: none;
}

.drp-day.is-range-start,
.drp-day.is-range-end {
    font-weight: 700;
}

.drp-range-bar {
    position: absolute;
    top: 32px;
    height: 20px;
    border-radius: 4px;
    background: #1c7ed6;
    border: 1px solid #1c7ed6;
    z-index: 3;
    cursor: move;
}

.drp-range-handle {
    position: absolute;
    top: 0;
    width: 14px;
    height: 100%;
    border-radius: 0;
    background: transparent;
    cursor: ew-resize;
}

.drp-range-handle.is-left {
    left: 0;
}

.drp-range-handle.is-right {
    right: 0;
}

.drp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
}

.drp-actions-left,
.drp-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.drp-actions button.is-disabled,
.drp-actions button:disabled {
    opacity: 0.45;
    pointer-events: none;
}
