/* daterange.js — overlay full-screen (mobile) + tema de marca sobre Litepicker */

/* ===== Modal full-screen mobile ===== */
.dr-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    flex-direction: column;
}

.dr-overlay.is-open { display: flex; }

.dr-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f4;
}

.dr-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #16213e;
    font-size: 19px;
    cursor: pointer;
}

.dr-close:hover { background: #f1f3f7; }

.dr-head__text { display: flex; flex-direction: column; line-height: 1.25; }
.dr-title { font-size: 16px; font-weight: 800; color: #16213e; }
.dr-sub { font-size: 13px; color: #6b7280; }

.dr-cal { padding: 8px 10px 48px; }

body.dr-open { overflow: hidden; }

/* Litepicker inline en mobile: a todo el ancho, meses apilados verticalmente */
.dr-cal .litepicker { box-shadow: none; width: 100%; }
.dr-cal .litepicker .container__months,
.dr-cal .litepicker .month-item { box-shadow: none; width: 100% !important; max-width: none; }

/* ===== Tema de marca (#3276d8) sobre Litepicker (desktop + mobile) ===== */
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date,
.litepicker .container__days .day-item.is-start-date:hover,
.litepicker .container__days .day-item.is-end-date:hover {
    background-color: #3276d8 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.litepicker .container__days .day-item.is-in-range {
    background-color: rgba(50, 118, 216, .12) !important;
}

.litepicker .container__days .day-item:hover {
    box-shadow: inset 0 0 0 1px #3276d8 !important;
    color: #3276d8 !important;
}

.litepicker .button-previous-month:hover,
.litepicker .button-next-month:hover {
    color: #3276d8 !important;
}
