/* =====================================================
   Выбор даты и времени (шторка). Оболочка (.sheet-overlay/.sheet)
   переиспользуется из meal_sheet.css — здесь только внутренности календаря.
   ===================================================== */
.dp-sheet { max-width: 420px; margin: 0 auto; }
.dp-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 10px;
}
.dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dp-month {
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
}
.dp-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dp-arrow:active { transform: scale(0.92); }
.dp-arrow svg { width: 18px; height: 18px; }

.dp-week,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dp-week {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
/* Клетки квадратные и не мельче 40px: календарь открывается пальцем, и на
   узких экранах промах по соседнему дню обиднее лишней высоты шторки. */
.dp-day {
  aspect-ratio: 1;
  min-height: 40px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dp-day:active { transform: scale(0.92); }
.dp-day.empty { background: none; pointer-events: none; }
.dp-day:disabled { color: var(--text-muted); opacity: 0.4; cursor: default; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dp-day.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.dp-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.dp-time svg { width: 17px; height: 17px; color: var(--text-muted); }
.dp-colon { font-weight: 800; color: var(--text-muted); }
.dp-select {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
}

.dp-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dp-actions button { flex: 1; }
.dp-cancel {
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.dp-cancel:active { transform: scale(0.97); }
