/* ========================================================================== */
/* 03D.2.1 — Shared custom range calendar                                     */
/* ========================================================================== */
.range-calendar {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--c-slate-200);
  border-radius: 14px;
  background: var(--c-white);
}
.range-calendar__head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 7px;
  color: var(--c-slate-900);
}
.range-calendar__head strong {
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}
.range-calendar__nav { display: flex; gap: 4px; }
.range-calendar__nav button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--c-slate-200);
  border-radius: 9px;
  background: var(--c-white);
  color: var(--c-slate-700);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.range-calendar__nav button:hover:not(:disabled) { border-color: var(--c-indigo-400); color: var(--c-indigo-600); }
.range-calendar__nav button:disabled { opacity: .32; cursor: default; }
.range-calendar__weekdays,
.range-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.range-calendar__weekdays { margin-bottom: 3px; }
.range-calendar__weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: var(--c-slate-400);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.range-calendar__grid { row-gap: 3px; }
.range-calendar__day-cell {
  position: relative;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.range-calendar__day-cell.is-in-range { background: var(--c-indigo-50); }
.range-calendar__day-cell.is-range-start { background: linear-gradient(90deg, transparent 0 50%, var(--c-indigo-50) 50% 100%); }
.range-calendar__day-cell.is-range-end { background: linear-gradient(90deg, var(--c-indigo-50) 0 50%, transparent 50% 100%); }
.range-calendar__day {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-slate-800);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.range-calendar__day:hover:not(:disabled) { background: var(--c-indigo-50); color: var(--c-indigo-600); }
.range-calendar__day.is-start,
.range-calendar__day.is-end,
.range-calendar__day.is-selected {
  background: var(--c-indigo-600);
  color: var(--c-white);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .2);
}
.range-calendar__day:disabled { color: var(--c-slate-300); cursor: default; }
.range-calendar__day-cell.is-outside .range-calendar__day { color: var(--c-slate-300); }
.range-calendar__day-cell.is-outside .range-calendar__day:disabled { color: var(--c-slate-200); }

.date-time-popover__date-button,
.vehicle-detail__editor-date-button {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--c-slate-200);
  border-radius: 10px;
  background: var(--c-white);
  color: var(--c-slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.date-time-popover__date-button:hover,
.vehicle-detail__editor-date-button:hover { border-color: var(--c-indigo-300); }
.date-time-popover__date-button .icon,
.vehicle-detail__editor-date-button .icon { width: 16px; height: 16px; color: var(--c-slate-500); flex: 0 0 auto; }

.vehicle-detail__editor-calendar {
  margin-top: 12px;
  max-width: 430px;
}

@media (max-width: 767px) {
  .range-calendar { padding: 9px 8px; }
  .range-calendar__day-cell { height: 38px; }
  .range-calendar__day { width: 36px; height: 36px; font-size: 12px; }
  .vehicle-detail__editor-calendar { max-width: none; }
}
