.calendar-wrapper {
    border: 1px solid #c2c2c2;
}

.calendar-wrapper:not(.disabled):hover,
.calendar-wrapper:not(.disabled):focus,
.calendar-wrapper:not(.disabled):active,
.calendar-wrapper:not(.disabled).active {
    border-color: #0072bc !important;
    border-width: 2px !important;
    outline: none;
}

.calendar-wrapper.disabled {
    border-color: #c2c2c2 !important;
    background-color: #F0F0F0 !important;
    pointer-events: none;
    /* opacity: 0.6; */
}

.calendar-wrapper.disabled .calendar-input,
.calendar-wrapper.disabled .calendar-display-text,
.calendar-wrapper.disabled .calendar-prefix {
    color: #333 !important;
    cursor: not-allowed !important;
}

.calendar-popup {
    margin-top: 4px;
    border-radius: 12px;
    background: var(--white, #fff);
    box-shadow: 0 20px 24px 20px rgba(10, 13, 18, 0.08),
        0 8px 8px -4px rgba(10, 13, 18, 0.03);
    background-clip: border-box;
    overflow: hidden;
    min-width: 300px;
    max-width: 300px;
}

.calendar-wrapper.is-invalid {
    border: 1px solid #f04438 !important;
    background-color: #fff;
}

.calendar-wrapper.is-invalid:focus {
    box-shadow: none;
}

.calendar-error {
    color: var(--error-700, #f04438);
    margin-top: 4px;
}

.calendar-error[style*="display: none"] {
    margin-top: 0 !important;
}

.custom-datepicker-popup {
    border: none !important;
    margin-top: 4px;
}

.calendar-input {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
}
.calendar-input::placeholder {
    color: #c2c2c2;
    font-size: 16px;
    font-weight: 500;
}

.common-label {
    color: #858585;
    font-size: 16px;
    font-weight: 500 !important;
}

.calendar-popup .calendar-day.is-disabled,
.calendar-popup .calendar-day[aria-disabled="true"],
.calendar-popup .calendar-day:disabled,
.calendar-popup .calendar-day.is-disabled:hover,
.calendar-popup .calendar-day[aria-disabled="true"]:hover,
.calendar-popup .calendar-day:disabled:hover,
.calendar-popup .calendar-day.is-disabled.btn-primary,
.calendar-popup .calendar-day[aria-disabled="true"].btn-primary,
.calendar-popup .calendar-day:disabled.btn-primary {
    color: #bbbbbb !important;
    background: none !important;
}

.calendar-wrapper.selected {
    border: 1px solid #0072bc !important;
    background: #e5f1f8 !important;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.04);
}

.calendar-wrapper.selected .calendar-display-text,
.calendar-wrapper.selected .calendar-prefix {
    color: #0072bc !important;
    font-weight: 500;
}

.btn-select-calendar {
    color: #0072bc !important;
    background: #e5f1f8 !important;
    font-weight: 600;
}

/* ════════════════════════════════════════════
   Month Range Picker
════════════════════════════════════════════ */
.month-range-wrapper {
    cursor: pointer;
}

.month-range-display {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
}

/* popup */
.month-range-popup {
    display: none;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 242px;
}

.month-range-popup.mrp-open {
    display: block;
}

/* header row */
.mrp-header {
    display: flex;
    border-bottom: 1px solid #d6d6d6;
    background: #fff;
}

.mrp-header-col {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* body — two drums side by side */
.mrp-body {
    position: relative;
    display: flex;
    background: #fff;
}

.mrp-drum-col {
    flex: 1;
    height: 336px; /* 7 × 48px */
    overflow: hidden;
    padding: 0 5px;
    touch-action: none;
    user-select: none;
}

.mrp-drum-col:first-child { border-right: 0.5px solid #f0f0f0; }
.mrp-drum-col:last-child  { border-left:  0.5px solid #f0f0f0; }

.mrp-drum-inner {
    will-change: transform;
}

.mrp-drum-item {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.1s;
}

.mrp-drum-item.mrp-selected { cursor: ns-resize; }
.mrp-drum-col:active .mrp-drum-item { cursor: grabbing; }

/* selection indicator lines at center slot */
.mrp-center-mark {
    position: absolute;
    left: 0;
    right: 0;
    top: 144px; /* 3 × 48 */
    height: 48px;
    pointer-events: none;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    z-index: 1;
}

/* footer buttons */
.mrp-footer {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #d6d6d6;
    background: #fff;
}

/* make both buttons equal-width and fit the 32px row */
.mrp-footer .btn {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.04);
}

/* error state */
.month-range-error {
    color: var(--error-700, #f04438);
    margin-top: 4px;
}
