/* Date picker: replaces the browser's small built-in one (see js/datepicker.js). Large touch targets, a bottom sheet on phones. */
.tw-dp { position: relative; }
.tw-dp-input {
  background-color: #fff; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234b5b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.tw-dp-backdrop { display: none; }
.tw-dp-pop {
  position: absolute; z-index: 1060; top: calc(100% + .4rem); left: 0; width: 22rem; max-width: calc(100vw - 2rem);
  background: #fff; border: 1px solid var(--tw-line, #e1e7ee); border-radius: .9rem; padding: .6rem;
  box-shadow: 0 .75rem 2rem rgba(18, 38, 63, .18);
}
.tw-dp-pop[hidden] { display: none; }
.tw-dp-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.tw-dp-title { font-weight: 700; font-size: 1.05rem; }
.tw-dp-nav {
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent; color: var(--tw-ink, #1a2b3c);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.tw-dp-nav:hover:not(:disabled) { background: var(--tw-tint, #f3f6fa); }
.tw-dp-nav:disabled { color: #b8c2cc; cursor: default; }
.tw-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .1rem; text-align: center; }
.tw-dp-dow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tw-muted, #4b5b6b); padding: .2rem 0; }
.tw-dp-pad { height: 2.25rem; }
.tw-dp-day {
  height: 2.25rem; border: 0; border-radius: .5rem; background: transparent; font: inherit; font-size: 1rem;
  color: var(--tw-ink, #1a2b3c); cursor: pointer; font-variant-numeric: tabular-nums;
}
.tw-dp-day:hover:not(:disabled) { background: var(--tw-tint, #f3f6fa); }
.tw-dp-day:disabled { color: #c3ccd5; cursor: default; }
.tw-dp-day.tw-dp-today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tw-accent, #0a64e8) 45%, transparent); }
.tw-dp-day.tw-dp-selected, .tw-dp-day.tw-dp-selected:hover { background: var(--tw-accent, #0a64e8); color: #fff; font-weight: 700; }
.tw-dp-day:focus-visible, .tw-dp-nav:focus-visible { outline: 3px solid color-mix(in srgb, var(--tw-accent, #0a64e8) 55%, transparent); outline-offset: 1px; }

@media (max-width: 575.98px) {
  .tw-dp-backdrop { display: block; position: fixed; inset: 0; z-index: 1059; background: rgba(10, 20, 35, .45); }
  .tw-dp-backdrop[hidden] { display: none; }
  .tw-dp-pop {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    border-radius: 1rem 1rem 0 0; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom));
  }
  .tw-dp-day, .tw-dp-pad { height: 2.6rem; }
}
