/* The family's calendar for server-drawn pages, with datepicker.js. The app's own is DateInput
   (apps/equidetails_web/src/components/ui/). Tokens come from tokens.css, so dark mode flips
   with the page. */

/* The field: a button that stands where a text box would. A page sets its own height and radius
   by styling .eqd-datefield (social.css gives it the text boxes' 46px). */
.eqd-datefield {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 46px; padding: 0 12px; box-sizing: border-box;
  font: inherit; font-size: 16px; line-height: 1.25; text-align: left;
  color: var(--eqd-ink, #16202a); background: var(--eqd-surface, #fffdf9);
  border: 1px solid var(--eqd-line, #ded7c9); border-radius: 10px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.eqd-datefield:focus-visible { outline: none; border-color: var(--eqd-brass-text, #8a6a30); box-shadow: 0 0 0 3px var(--eqd-brass-soft, rgba(194, 162, 90, 0.16)); }
.eqd-datefield[aria-expanded="true"] { border-color: var(--eqd-brass-text, #8a6a30); }
.eqd-datefield__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eqd-datefield__label.is-empty { color: var(--eqd-muted, #5c6672); }
.eqd-datefield__glyph { width: 16px; height: 16px; flex-shrink: 0; color: var(--eqd-muted, #5c6672); opacity: .7; }
.eqd-datefield:hover .eqd-datefield__glyph, .eqd-datefield:focus .eqd-datefield__glyph { opacity: 1; }

/* The calendar that pops over it. */
.eqd-cal {
  position: fixed; z-index: 1000; overflow: hidden; box-sizing: border-box;
  border-radius: 16px; border: 1px solid var(--eqd-line, #ded7c9);
  background: var(--eqd-surface, #fffdf9); color: var(--eqd-ink, #16202a);
  box-shadow: 0 18px 40px rgba(16, 35, 61, 0.16);
  font-family: var(--eqd-font-sans, Inter, system-ui, sans-serif);
}
.eqd-cal[hidden] { display: none; }
.eqd-cal * { box-sizing: border-box; }
.eqd-cal__head { border-bottom: 1px solid var(--eqd-line, #ded7c9); background: var(--eqd-ground, #f7f3ea); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eqd-cal__nav { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--eqd-line, #ded7c9); background: var(--eqd-surface, #fffdf9); color: var(--eqd-ink, #16202a); font: inherit; font-size: 18px; cursor: pointer; }
.eqd-cal__nav:hover { background: var(--eqd-hunter-soft, rgba(30, 74, 56, 0.1)); }
.eqd-cal__month { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.eqd-cal__month input { width: 76px; height: 36px; border-radius: 6px; border: 1px solid var(--eqd-line, #ded7c9); background: var(--eqd-surface, #fffdf9); text-align: center; font: inherit; font-size: 14px; font-weight: 600; color: var(--eqd-ink, #16202a); }
.eqd-cal__body { padding: 16px; }
.eqd-cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--eqd-muted, #5c6672); }
.eqd-cal__weekdays span { padding: 4px 0; }
.eqd-cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.eqd-cal__day { height: 40px; padding: 0; border-radius: 6px; border: 1px solid transparent; background: transparent; font: inherit; font-size: 14px; color: var(--eqd-ink, #16202a); cursor: pointer; }
.eqd-cal__day:hover { background: var(--eqd-hunter-soft, rgba(30, 74, 56, 0.1)); }
.eqd-cal__day.is-outside { color: var(--eqd-muted, #5c6672); opacity: .55; }
.eqd-cal__day.is-today { border-color: var(--eqd-brass-text, #8a6a30); font-weight: 600; }
.eqd-cal__day.is-picked { background: var(--eqd-hunter, #1e4a38); border-color: var(--eqd-hunter, #1e4a38); color: #fff; font-weight: 600; opacity: 1; }
.eqd-cal__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--eqd-line, #ded7c9); }
.eqd-cal__clear, .eqd-cal__today { border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.eqd-cal__clear { border: 1px solid var(--eqd-line, #ded7c9); background: var(--eqd-surface, #fffdf9); color: var(--eqd-ink, #16202a); }
.eqd-cal__today { border: 1px solid var(--eqd-hunter, #1e4a38); background: var(--eqd-hunter, #1e4a38); color: #fff; }
