/* Calendar picker — works with both the website and admin colour tokens. */
.dp-field { position: relative; }
.dp-btn { display: flex !important; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.dp-btn .dp-ic { display: inline-grid; place-items: center; color: var(--brand); flex: none; }
.dp-btn .dp-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-btn.dp-empty .dp-txt { color: var(--muted); }
.dp-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.dp-invalid .dp-btn { border-color: var(--err) !important; }
.dp-invalid::after { content: "Please choose a date."; display: block; color: var(--err); font-size: 13px; margin-top: 5px; }

.dp-pop { position: fixed; z-index: 300; width: 318px; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule, var(--line)); border-radius: 14px;
  box-shadow: 0 20px 50px -16px rgba(16, 32, 63, .4), 0 2px 6px rgba(16, 32, 63, .08); font: 400 14px/1.4 Inter, system-ui, sans-serif; }
.dp-pop.dp-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding: 16px 16px 22px; }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-title { flex: 1; display: flex; justify-content: center; gap: 4px; }
.dp-sel { appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink); font: 600 14.5px Inter, system-ui, sans-serif; padding: 6px 8px; border-radius: 8px; cursor: pointer; text-align: center; }
.dp-sel:hover, .dp-sel:focus { background: var(--paper-2, var(--hover)); outline: none; border-color: var(--rule, var(--line)); }
.dp-nav { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2, var(--ink)); cursor: pointer; }
.dp-nav:hover:not([disabled]) { background: var(--paper-2, var(--hover)); color: var(--ink); }
.dp-nav[disabled] { opacity: .3; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.dp-day { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 500 14px Inter, system-ui, sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.dp-day:hover:not([disabled]) { background: var(--paper-2, var(--hover)); }
.dp-day:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dp-day.out { color: var(--muted); opacity: .55; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 700; }
.dp-day.sel, .dp-day.sel:hover { background: var(--brand); color: #fff; box-shadow: none; font-weight: 700; }
.dp-day[disabled] { color: var(--muted); opacity: .35; cursor: not-allowed; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.dp-time { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule, var(--line)); }
.dp-time span { flex: 1; color: var(--muted); font-size: 13px; font-weight: 600; }
.dp-time .dp-sel { border-color: var(--rule, var(--line)); min-width: 52px; }
.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule, var(--line)); }
.dp-foot span { display: flex; gap: 6px; }
.dp-link { border: 0; background: transparent; color: var(--brand); font: 600 13.5px Inter, system-ui, sans-serif; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.dp-link:hover { background: var(--paper-2, var(--hover)); }
.dp-done { border: 0; background: var(--brand); color: #fff; font: 600 13.5px Inter, system-ui, sans-serif; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
