/* inoff. Shared Google-Calendar-style 1-Tap Date & Time Picker Modals
   Compact centered card on both mobile & desktop (no bloated full-screen empty space) */
.dpm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1450;
  background: rgba(28, 28, 22, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dpm-dialog {
  width: min(340px, calc(100vw - 32px));
  max-height: min(480px, 84dvh);
  background: #ffffff;
  border: 1px solid #d8d0c0;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(28, 28, 22, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}
.dpm-dialog.is-time {
  width: min(260px, calc(100vw - 32px));
  max-height: min(380px, 76dvh);
}
.dpm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #fdf9f0;
  border-bottom: 1px solid #e6dfd1;
  flex-shrink: 0;
}
.dpm-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #47626c;
  min-width: 0;
}
.dpm-title {
  margin: 0;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1c16;
  letter-spacing: 0.02em;
}
.dpm-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #59413a;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dpm-close:hover {
  background: #f3efe6;
  color: #1c1c16;
}
.dpm-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
  flex-shrink: 0;
}
.dpm-quick-chip {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #d8d0c0;
  background: #fdf9f0;
  color: #1c1c16;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.dpm-quick-chip:hover {
  background: #f3efe6;
  border-color: #47626c;
}
.dpm-quick-chip.is-selected {
  background: #f36a36;
  border-color: #f36a36;
  color: #ffffff;
}

.dpm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 14px 4px;
  flex-shrink: 0;
}
.dpm-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d8d0c0;
  background: #fdf9f0;
  color: #1c1c16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.dpm-nav-btn:hover {
  background: #f3efe6;
  border-color: #47626c;
}
.dpm-month-btn {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 4px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1c1c16;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dpm-month-btn:hover {
  background: #f3efe6;
}

.dpm-body {
  padding: 4px 14px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.dpm-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 4px;
}
.dpm-weekday {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #47626c;
  padding: 4px 0;
}
.dpm-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.dpm-day {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #1c1c16;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.dpm-day:hover {
  background: #f3efe6;
}
.dpm-day.is-outside {
  color: #9e9689;
}
.dpm-day.is-today {
  border-color: #d8d0c0;
  background: #fdf9f0;
  color: #47626c;
  font-weight: 700;
}
.dpm-day.is-selected {
  background: #f36a36;
  border-color: #f36a36;
  color: #ffffff;
  font-weight: 700;
}

.dpm-ym-wrap {
  display: grid;
  gap: 12px;
}
.dpm-year-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dpm-year-label {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.dpm-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dpm-month-cell {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #d8d0c0;
  background: #fdf9f0;
  color: #1c1c16;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.dpm-month-cell:hover {
  background: #f3efe6;
  border-color: #47626c;
}
.dpm-month-cell.is-selected {
  background: #f36a36;
  border-color: #f36a36;
  color: #ffffff;
}

/* Google Calendar style 15-minute Time slot list */
.dpm-time-list {
  display: grid;
  gap: 2px;
}
.dpm-time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1c1c16;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.dpm-time-slot:hover {
  background: #f3efe6;
}
.dpm-time-slot.is-selected {
  background: #f36a36;
  color: #ffffff;
  font-weight: 700;
}

/* Side-by-side Date + Time trigger row (Google Calendar layout, shared across all inoff. apps) */
.dpm-dt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.dpm-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8d0c0;
  border-radius: 10px;
  background: #fdf9f0;
  color: #1c1c16;
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.dpm-trigger:hover,
.dpm-trigger:focus-visible {
  outline: none;
  background: #ffffff;
  border-color: #f36a36;
}
.dpm-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dpm-trigger-placeholder {
  color: #7b7368;
}
.dpm-time-trigger {
  min-width: 108px;
}
