/* Portal controls stay above the story's decorative stacking contexts. */
[data-radix-popper-content-wrapper]:has(.bh-date-popover) {z-index:100!important}
.bh-date-popover {
  box-sizing:border-box;
  width:min(330px,calc(100vw - 24px));
  max-height:min(440px,var(--radix-popover-content-available-height,80dvh));
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px;
  color:#f8ecd1;
  background:#163739;
  border:1px solid #b59b69;
  border-radius:12px;
  box-shadow:0 12px 38px #00121666;
  color-scheme:dark;
}
.bh-date-popover input {box-sizing:border-box;width:100%;height:42px;background:#f4ecd9;color:#263a32;border-color:#b6a173;border-radius:6px;padding:9px 12px;font:16px/1.3 var(--atlas-ui,system-ui)}
.bh-date-popover input::placeholder {color:#61695d}
.bh-date-popover .mb-3 {margin-bottom:4px}
.bh-date-popover [role=grid] {background:transparent;margin-inline:auto;border-spacing:0}
.bh-date-popover [role=grid] td {padding:1px}
.bh-date-popover [role=grid] button {height:36px;width:36px;border-radius:7px;min-height:36px;padding:0;color:#f6e6c6;font-size:14px}
.bh-date-popover [role=grid] button:hover {background:#3d5550}
.bh-date-popover [role=grid] button[aria-selected=true],.bh-date-popover [role=grid] td[data-selected] button{background:#e2be7b;color:#21352b}
.bh-date-popover button:disabled{opacity:.35}
.bh-date-popover select {color:#f6e7c8;color-scheme:dark;min-height:38px}
.bh-date-popover select option {color:#21352b;background:#fff7e5}
.bh-date-popover :focus-visible {outline:2px solid #efc575;outline-offset:2px}
.bh-date-trigger {width:100%;min-height:44px}
html body input:-webkit-autofill { -webkit-box-shadow:0 0 0 1000px #f4ecd9 inset;-webkit-text-fill-color:#263a32;caret-color:#263a32 }
.atlas-home-grid form select {min-width:0;max-width:100%;padding-inline:.65rem}
.atlas-home-grid form [class*="gap-"]:has(>select) {min-width:0}
@media(max-width:480px) {
 .bh-date-popover {width:min(330px,calc(100vw - 24px));max-height:min(420px,var(--radix-popover-content-available-height,76dvh))}
}
.bh-date-trigger {flex:none;align-self:start;height:48px;white-space:normal;text-align:start}
.bh-date-popover input[aria-invalid=true] {border:2px solid #d87b65;box-shadow:0 0 0 1px #d87b65}
.bh-date-popover .mb-3:has(input[aria-invalid=true]) [aria-live] {color:#ffcab9;font-size:13px;font-weight:600;line-height:1.4;margin-block:7px 3px}
