/* The themed date picker that datepicker.js puts on every date input. */

.dp { position: relative; }
.dp .input { cursor: pointer; padding-right: 38px; }
.dp-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; color: var(--brand-text); cursor: pointer; }
.dp-ic svg { width: 16px; height: 16px; }

.dp-pop {
  position: absolute; z-index: 1000; width: 288px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--sh-pop);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
.dp-head b { font-size: var(--fs-s); }
.dp-nav { display: flex; gap: 4px; }
.dp-btn {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel);
  color: var(--ink-2); font-size: var(--fs-l); line-height: 1; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.dp-btn:hover { background: var(--panel-3); border-color: var(--line-strong); }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-days span { padding: 4px 0 6px; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); }
.dp-day {
  display: grid; place-items: center; height: 32px;
  border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink);
  font-size: var(--fs-xs); cursor: pointer; transition: background .12s ease;
}
.dp-day:hover { background: var(--panel-3); }
.dp-day.out { color: var(--ink-5); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--brand-line); }
.dp-day.sel, .dp-day.sel:hover { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.dp-day:disabled, .dp-day:disabled:hover { background: transparent; color: var(--ink-5); opacity: .45; cursor: default; }

.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding: 8px 2px 0; border-top: 1px solid var(--line-soft); }
.dp-link {
  padding: 3px 7px; border: 0; border-radius: var(--r-s); background: none; cursor: pointer;
  color: var(--brand-text); font-size: var(--fs-xs); font-weight: 600;
}
.dp-link:hover { background: var(--brand-soft); }

.dp-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.dp-preset {
  padding: 4px 10px; border: 0; border-radius: var(--r-full); background: var(--panel-3); cursor: pointer;
  color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500;
}
.dp-preset:hover { background: var(--brand-soft); color: var(--brand-text); }
