/**
 * dtpicker.css — the VOGO date and time picker of the chat (dtpicker.js): quick days, the month calendar, the hours
 * and minutes as chips. VOGO blue (--vogo-icon-blue), Material chips, 7px corners; light and dark through the page's
 * variables (rag-ai.css). Desktop: a card by the field; phone (≤ 600 px): a bottom sheet.
 * @file_version 1.0.0
 */
.dtp { --dtp-blue: var(--vogo-icon-blue, #0F6CBD); position: fixed; inset: 0; z-index: 40; }
.dtp-card { position: fixed; width: 560px; max-width: calc(100vw - 16px); box-sizing: border-box; display: flex; flex-direction: column;
  gap: 12px; padding: 14px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }

/* Quick days: Azi, Mâine, Poimâine, Luni */
.dtp-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.dtp-chip { min-height: 34px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--fg); background: transparent;
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.dtp-chip small { color: var(--muted); font-size: 12px; }
.dtp-chip:hover:not(:disabled) { border-color: var(--dtp-blue); }
.dtp-chip.on { color: #fff; background: var(--dtp-blue); border-color: var(--dtp-blue); }
.dtp-chip.on small { color: rgba(255, 255, 255, .85); }
.dtp-chip:disabled { opacity: .35; cursor: default; }

/* The calendar on the left, the time on the right */
.dtp-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dtp-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dtp-month-name { font-weight: 700; font-size: 15px; }
.dtp-nav { width: 34px; height: 34px; font-size: 15px; color: var(--dtp-blue); background: transparent; border: 0; border-radius: 7px;
  cursor: pointer; }
.dtp-nav:hover:not(:disabled) { background: var(--bg); }
.dtp-nav:disabled { opacity: .3; cursor: default; }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dtp-head { padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.dtp-day { height: 34px; font: inherit; font-size: 14px; color: var(--fg); background: transparent; border: 0; border-radius: 50%;
  cursor: pointer; }
.dtp-day:hover:not(:disabled) { background: var(--bg); }
.dtp-day.today { color: var(--dtp-blue); font-weight: 700; box-shadow: inset 0 0 0 1px var(--dtp-blue); }
.dtp-day.on { color: #fff; background: var(--dtp-blue); }
.dtp-day:disabled { opacity: .3; cursor: default; }
.dtp-cap { margin: 2px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.dtp-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.dtp-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dtp-hours .dtp-chip, .dtp-mins .dtp-chip { padding: 0; }

/* The chosen moment, then Fără dată / Gata */
.dtp-foot { display: flex; align-items: center; gap: 8px; }
.dtp-sum { margin-right: auto; font-weight: 600; font-size: 14px; color: var(--dtp-blue); }
.dtp-btn { min-height: 40px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 7px; cursor: pointer; }
.dtp-btn.text { color: var(--dtp-blue); background: transparent; border: 0; }
.dtp-btn.filled { color: #fff; background: var(--dtp-blue); border: 1px solid var(--dtp-blue); }
.dtp-btn:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
  .dtp { background: rgba(0, 0, 0, .45); }
  .dtp-card { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
  .dtp-main { grid-template-columns: 1fr; gap: 10px; }
  .dtp-hours { grid-template-columns: repeat(8, 1fr); }
  .dtp-chip { font-size: 15px; }
}
