/* Torro date and time fields (datepick.js) — no browser pickers anywhere.
   The button wears the field's own class; the default field look below is adjusted per place where a field draws itself differently. */
.dp__btn { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--color-field); color: var(--color-ink);
  font: inherit; font-size: 16px; font-weight: 400; }
.dp__btn { justify-content: flex-start; gap: 10px; font-variant-numeric: tabular-nums; }
.dp__btn .sel__val { color: var(--color-ink); font-weight: 400; }
.dp__btn .sel__val.is-ph { color: var(--color-ink-muted); }
.dp__ico { flex: none; width: 18px; height: 18px; color: var(--color-ink-muted); }
.dp__btn:focus-visible, .dp__btn[aria-expanded="true"] { outline: none; background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
@media (hover: hover) { .dp__btn:not(:disabled):hover { background-color: var(--color-hover); } .dp__btn[aria-expanded="true"]:hover { background: var(--color-surface); } }

/* fields that style their own text */
.fld .dp__btn { height: 44px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-field); }
.fld .dp__btn .sel__val { font-size: var(--fs-field); color: var(--color-ink); }
.fld .dp__btn .sel__val.is-ph { color: var(--color-ink-muted); }
.iv-busy__add .dp__btn { flex: 1; width: auto; height: 44px; border-radius: 10px; font-size: var(--fs-field); }
.dm-time__box .dp__btn { flex: 1; height: 100%; padding: 0; background: none; box-shadow: none; }
.dm-time__box .dp__btn .dp__ico { display: none; }
.dp__btn.hl-field__input { height: 52px; padding: 0 16px; border-radius: 14px; font-size: 16px; }
/* offer form: the field box is drawn by the page — the button is a transparent layer over it */
.of2-date .dp__btn { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52px; padding: 0; opacity: 0; background: none; }
.of2-date:has(.of2-was:not([hidden])) .dp__btn { bottom: 22px; }

/* ---------- The picker ---------- */
.dp-pop { padding: 12px; max-height: none; overflow: visible; }
.dp-panel { padding: 8px 12px 12px; }
.dp-body { display: flex; flex-direction: column; }
.dp-head { display: flex; align-items: center; gap: 4px; padding: 2px 2px 8px; }
.dp-title { flex: 1; display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 36px; padding: 0 8px; margin-left: -6px; border: 0; border-radius: 10px; background: none;
  color: var(--color-ink); font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-align: left; cursor: pointer; justify-content: flex-start; }
.dp-title__chev { width: 14px; height: 14px; color: var(--color-ink-muted); transition: transform .15s ease; }
.dp-title.is-up .dp-title__chev { transform: rotate(180deg); }
.dp-nav { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--color-ink); cursor: pointer; }
.dp-nav svg { width: 18px; height: 18px; }
.dp-nav:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .dp-title:hover, .dp-nav:not(:disabled):hover { background: var(--color-hover); } }
.dp-title:focus-visible, .dp-nav:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--color-ink); }

.dp-wk, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-wk span { height: 28px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-muted); }
.dp-grid { row-gap: 2px; }
.dp-d { position: relative; height: 40px; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-d > span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 2px auto; border-radius: 50%; transition: background-color .12s ease; }
.dp-d.is-pad { pointer-events: none; }
.dp-d:disabled { color: var(--color-ink-muted); opacity: .4; cursor: default; }
.dp-d.is-today > span { color: var(--color-accent); font-weight: 800; }
.dp-d.is-sel > span, .dp-d.is-end > span { background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }
/* a From/To stretch: one soft band from end to end */
.dp-d.in-range::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: color-mix(in srgb, var(--color-accent) 14%, transparent); }
.dp-d.is-lo::before { left: 50%; }
.dp-d.is-hi::before { right: 50%; }
@media (hover: hover) { .dp-d:not(:disabled):not(.is-sel):not(.is-end):hover > span { background: var(--color-hover); } }
.dp-d:focus-visible { outline: none; }
.dp-d:focus-visible > span { box-shadow: 0 0 0 2px var(--color-ink); }

.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 8px; border-top: var(--hairline) solid var(--color-line); }
.dp-link { height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--color-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .dp-link:hover { background: var(--color-hover); } }

.dp-years, .dp-months { display: grid; gap: 6px; }
.dp-years { grid-template-columns: repeat(4, 1fr); max-height: 264px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.dp-months { grid-template-columns: repeat(3, 1fr); padding: 2px; }
.dp-y, .dp-mo { height: 44px; border: 0; border-radius: 12px; background: none; color: var(--color-ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-y.is-today, .dp-mo.is-today { color: var(--color-accent); font-weight: 800; }
.dp-y.is-sel, .dp-mo.is-sel { background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }
.dp-mo:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .dp-y:not(.is-sel):hover, .dp-mo:not(.is-sel):not(:disabled):hover { background: var(--color-hover); } }
.dp-y:focus-visible, .dp-mo:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-ink); }

.dp-times { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; margin: -6px; padding: 0; }
.dp-pop:has(.dp-times) { padding: 6px; }
.dp-t { font-variant-numeric: tabular-nums; }
.dp-t.is-sel { font-weight: 700; }

/* phones: bigger targets in the sheet */
.dp-panel .dp-d { height: 46px; }
.dp-panel .dp-d > span { width: 42px; height: 42px; font-size: 17px; }
.dp-panel .dp-title { font-size: 18px; height: 44px; }
.dp-panel .dp-nav { width: 44px; height: 44px; }
.dp-panel .dp-years { max-height: 50dvh; }
.dp-panel .dp-y, .dp-panel .dp-mo { height: 50px; font-size: 17px; }
.dp-panel .dp-times { max-height: 50dvh; margin: 0; }
.dp-panel .dp-link { height: 44px; font-size: 16px; }
