/* public/widgets/ht-range.css
   THE date range field (ht-range.js): one button with a calendar icon, "Sun, Nov 1 to Tue, Nov 17" and a muted
   day count. The calendar it opens is ht-calendar.css's. Tokens only; light and dark come from the token layer.
   No em or en dashes in this file. */
.htr { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.htr-field { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700;
  text-align: left; cursor: pointer; box-sizing: border-box; }
.htr-field:hover { border-color: var(--brand-royal); }
.htr-field:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htr-ico { flex: none; color: var(--ink-3); }
.htr-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htr-days { flex: none; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.htr-field.is-empty .htr-text { color: var(--ink-3); font-weight: 600; }
.htr-clear { appearance: none; border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 22px; line-height: 1; font-weight: 600; min-height: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
.htr-clear:hover { background: var(--surface-2); color: var(--ink); }
/* In a form column the field fills the row (mount option block: true). A narrow column (a filter panel) drops the
   day count so the days themselves are never cut off. */
.htr--block { display: flex; width: 100%; container-type: inline-size; }
.htr--block .htr-field { flex: 1; min-width: 0; }
.htr--block .htr-clear { flex: none; min-width: 44px; padding: 0 4px; }
@container (max-width: 360px) { .htr-days { display: none; } .htr-field { font-size: 13px; padding: 0 12px; gap: 8px; } }
@media (max-width: 560px) { .htr-field { font-size: 15px; } }
/* inline: true. The calendar under the field, in its own card (a dialog cannot hold a popover above it). */
.htr-inline { margin-top: 8px; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-sizing: border-box; max-width: 100%; }
.htr-inline-hint { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
