/**
 * Tarixdən-tarixə aralıq seçici — qlobal
 * (bax: public/assets/js/date-range.js)
 *
 * Səhifədəki `date_from` + `date_to` cütlüyü bir qutuya çevrilir; qutuya
 * klikləndikdə iki aylıq təqvim + hazır aralıqlar paneli açılır.
 */

.xdr-hidden { display: none !important; }

.xdr-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;   /* grid xanasında (ətraflı filtr paneli) daşmasın */
}

.xdr-input {
    cursor: pointer;
    min-width: 190px;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 20px;
    text-overflow: ellipsis;
}
.xdr-input::placeholder { color: #9aa5b1; }
.xdr-wrap.is-set .xdr-input { font-weight: 600; color: #234; }

.xdr-clear {
    position: absolute;
    right: 3px;
    border: 0;
    background: none;
    color: #b0392c;
    font-size: 11px;
    line-height: 1;
    padding: 2px 3px;
    cursor: pointer;
}
.xdr-clear[hidden] { display: none; }

/* ── Panel ── */
.xdr-panel {
    position: fixed;
    z-index: 5200;
    display: none;
    background: #fdfcf8;
    border: 1px solid #a7c8ea;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .28);
    font-size: 12px;
    color: #234;
}
.xdr-panel.show { display: flex; }

.xdr-presets {
    width: 128px;
    flex: none;
    border-right: 1px solid #dbe4ee;
    background: #f4f8fc;
    padding: 5px 0;
}
.xdr-preset {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 10px;
    font-size: 11px;
    background: none;
    border: 0;
    cursor: pointer;
    color: #234;
}
.xdr-preset:hover { background: #e5f1fd; }
.xdr-preset.active { background: #3d6188; color: #fff; }

.xdr-body { padding: 8px 10px 8px; }

.xdr-months { display: flex; gap: 16px; }
.xdr-cal { width: 190px; }

.xdr-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: #1f5a7a;
    padding: 1px 0 6px;
}
.xdr-nav {
    border: 0;
    background: none;
    cursor: pointer;
    color: #3d6188;
    padding: 0 6px;
    font-size: 13px;
    line-height: 1;
}
.xdr-nav:hover { color: #17456a; }
.xdr-nav.xdr-nav-hidden { visibility: hidden; }

.xdr-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.xdr-dow {
    font-size: 9px;
    color: #8a97a5;
    text-align: center;
    padding: 2px 0 4px;
    text-transform: uppercase;
}
.xdr-day {
    border: 0;
    background: none;
    font-size: 11px;
    padding: 4px 0;
    cursor: pointer;
    color: #234;
    font-family: inherit;
}
.xdr-day.out { color: #c9ced4; }
.xdr-day:hover:not(:disabled) { background: #d7e8f8; }
.xdr-day.in-range { background: #e5f1fd; }
.xdr-day.edge { background: #3d6188; color: #fff; font-weight: bold; }
.xdr-day.today:not(.edge) { box-shadow: inset 0 0 0 1px #e0a020; }
.xdr-day:disabled { color: #e0e4e8; cursor: default; }

.xdr-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px solid #dbe4ee;
    padding-top: 7px;
}
.xdr-sel {
    font-size: 11px;
    color: #3d6188;
    font-weight: bold;
    margin-right: auto;
    white-space: nowrap;
}
.xdr-hint { font-size: 10px; color: #8a97a5; margin-right: auto; }

@media (max-width: 620px) {
    .xdr-months { flex-direction: column; gap: 8px; }
    .xdr-presets { width: 108px; }
}
