/* Date range picker: month/year selectors, edge arrows, per-day markers. */

.tv-calendar-row {
  display: grid;
  align-items: start;
  gap: 6px;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
}

.tv-cal-nav {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.tv-cal-nav:hover { background: var(--surface-3); }

.tv-month-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
}

.tv-month-head span { color: var(--text-2); font-weight: 500; }

.tv-month-head--pickers { gap: 6px; }

.tv-month-select {
  width: auto;
  min-height: 30px;
  padding: 0 24px 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.tv-month-select:hover { border-color: var(--border); background: var(--surface-2); }

.tv-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 36px;
  font-size: 14px;
}

.tv-day-dots { display: flex; gap: 3px; height: 5px; }

.tv-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.tv-dot--check { background: var(--primary); }
.tv-dot--change { background: var(--danger); }
.tv-day.is-edge .tv-dot { background: #fff; }

.tv-date-input { position: relative; display: block; }
.tv-date-input input { padding-right: 38px; cursor: default; }

.tv-date-input i {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--text-3);
  font-size: 15px;
  font-style: normal;
  transform: translateY(-50%);
}

.tv-dates-spacer { flex: 1; min-height: 8px; }

.tv-max-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
}

.tv-max-row select { width: auto; min-width: 78px; min-height: 36px; }

#dates-mode { font-weight: 600; }

.tv-date-head { min-width: 92px; }
.tv-date-head small { display: block; color: var(--text-2); font-weight: 500; }
.tv-date-head .tv-date-count { color: #5b6b80; font-size: 11.5px; }

/* Date range control lives in the project bar, mirroring the reference tool. */
.tv-daterange {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tv-daterange:hover { background: rgba(79, 140, 255, 0.22); }
.tv-daterange i { font-size: 15px; font-style: normal; }
.tv-daterange b { color: var(--text-3); font-size: 12px; font-weight: 400; }

.tv-calendar-row.is-dimmed { opacity: 0.4; pointer-events: none; }

.tv-run-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
