/* timeframe.css -- timeframe modal, calendar */

/* ── Timeframe Modal ─────────────────────────────────────────────────── */
#timeframe-modal { position: fixed; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; width: 820px; max-width: 95vw; overflow: hidden; z-index: 61; box-shadow: var(--shadow-lg); }
.tf-presets { width: 11rem; flex-shrink: 0; border-right: 1px solid var(--border); padding: 0.5rem 0; overflow-y: auto; }
.tf-presets li { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; border-radius: 0; transition: background 0.1s, color 0.1s; }
.tf-presets li:hover { background: var(--bg-elevated); }
.tf-presets li.active { color: var(--green); }
.tf-presets li.active .tf-check { opacity: 1; }
.tf-check { opacity: 0; color: var(--green); font-size: 0.75rem; }
.tf-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tf-calendars { display: flex; gap: 0; padding: 1rem 1rem 0.5rem; flex: 1; }
.tf-cal { flex: 1; min-width: 0; }
.tf-cal:first-child { padding-right: 0.75rem; border-right: 1px solid var(--border); }
.tf-cal:last-child { padding-left: 0.75rem; }
.tf-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.tf-cal-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); text-align: center; flex: 1; }
.tf-nav-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.2rem 0.4rem; border-radius: var(--r); line-height: 1; font-size: 0.875rem; transition: color 0.1s, background 0.1s; }
.tf-nav-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.tf-day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tf-day-name { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; padding-bottom: 0.4rem; }
.tf-day { text-align: center; font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); padding: 0.3rem 0; border-radius: 50%; cursor: pointer; transition: background 0.1s, color 0.1s; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.tf-day:hover:not(.tf-day--empty):not(.tf-day--selected) { background: var(--bg-elevated); color: var(--text-primary); }
.tf-day--empty { cursor: default; }
.tf-day--selected { background: var(--green); color: #000; font-weight: 700; border-radius: 50%; }
.tf-day--in-range { background: rgba(74,222,128,0.12); color: var(--text-primary); border-radius: 0; }
.tf-day--range-start { background: var(--green); color: #000; font-weight: 700; border-radius: 50% 0 0 50%; }
.tf-day--range-end { background: var(--green); color: #000; font-weight: 700; border-radius: 0 50% 50% 0; }
.tf-day--today { font-weight: 700; color: var(--green); }
.tf-day--today.tf-day--selected, .tf-day--today.tf-day--range-start, .tf-day--today.tf-day--range-end { color: #000; }
.tf-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-top: 1px solid var(--border); gap: 0.75rem; }
.tf-range-label { font-size: 0.8125rem; color: var(--text-muted); flex: 1; }
