html body .direto-ind-date-popover {
  --calendar-surface: #0b1721;
  --calendar-text: #e2e8f0;
  --calendar-muted: #a6bacb;
  --calendar-border: #355364;
  --calendar-day: #122432;
  --calendar-selected: #22d3ee;
  --calendar-selected-text: #04212b;
  --calendar-range: #164457;
  --calendar-range-text: #ecfeff;
  --calendar-hover: #21576c;
  --calendar-help: #122b38;
  position: fixed !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  z-index: 1000;
  overflow-y: auto;
  max-height: calc(100dvh - 32px) !important;
  width: 360px !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box;
  padding: 16px !important;
  border: 1px solid var(--calendar-border) !important;
  border-radius: 18px !important;
  background: var(--calendar-surface) !important;
  color: var(--calendar-text) !important;
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%) !important;
}

html[data-operation-theme="audivita"] body .direto-ind-date-popover {
  --calendar-surface: #ffffff;
  --calendar-text: #2a1d3e;
  --calendar-muted: #625276;
  --calendar-border: #c4b5fd;
  --calendar-day: #faf8ff;
  --calendar-selected: #6d28d9;
  --calendar-selected-text: #ffffff;
  --calendar-range: #e9ddff;
  --calendar-range-text: #4c1d95;
  --calendar-hover: #d8c7fa;
  --calendar-help: #f4efff;
  box-shadow: 0 18px 48px rgb(42 29 62 / 18%) !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-head {
  gap: 12px;
  margin-bottom: 12px;
}

html body .direto-ind-date-popover .direto-ind-calendar-head strong {
  color: var(--calendar-text) !important;
  font-size: 14px !important;
  font-weight: 800;
}

html body .direto-ind-date-popover .direto-ind-calendar-head button {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--calendar-border) !important;
  border-radius: 10px !important;
  background: var(--calendar-day) !important;
  color: var(--calendar-text) !important;
  font-size: 24px !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-week,
html body .direto-ind-date-popover .direto-ind-calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-week {
  margin-bottom: 8px;
}

html body .direto-ind-date-popover .direto-ind-calendar-week span {
  color: var(--calendar-muted) !important;
  font-size: 10px !important;
  font-weight: 800;
  text-align: center;
}

html body .direto-ind-date-popover .direto-ind-calendar-day,
html body .direto-ind-date-popover .direto-ind-calendar-blank {
  width: 100% !important;
  height: 42px !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

html body .direto-ind-date-popover .direto-ind-calendar-day {
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  background: var(--calendar-day) !important;
  color: var(--calendar-text) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-day.is-in-range {
  border-color: var(--calendar-border) !important;
  background: var(--calendar-range) !important;
  color: var(--calendar-range-text) !important;
  font-weight: 850 !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-day:hover:not(.is-selected) {
  border-color: var(--calendar-selected) !important;
  background: var(--calendar-hover) !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-day.is-today:not(.is-selected) {
  border-color: var(--calendar-selected) !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-day.is-today::after {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

html body .direto-ind-date-popover .direto-ind-calendar-day.is-selected {
  border-color: var(--calendar-selected) !important;
  background: var(--calendar-selected) !important;
  color: var(--calendar-selected-text) !important;
  box-shadow: 0 3px 8px rgb(0 0 0 / 16%) !important;
  font-weight: 900 !important;
}

html body .direto-ind-date-popover button:focus-visible {
  outline: 3px solid var(--calendar-selected) !important;
  outline-offset: 2px !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-help {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px !important;
  border: 1px solid var(--calendar-border) !important;
  border-radius: 12px !important;
  background: var(--calendar-help) !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-help b {
  color: var(--calendar-text) !important;
  font-size: 12px !important;
}

html body .direto-ind-date-popover .direto-ind-calendar-help span {
  color: var(--calendar-muted) !important;
  font-size: 11px !important;
  line-height: 1.5;
}

html body .direto-ind-range-trigger {
  anchor-name: --indicators-period;
}

@supports (top: clamp(16px, anchor(bottom), calc(100dvh - 490px))) {
  html body .direto-ind-date-popover {
    position-anchor: --indicators-period;
    top: clamp(16px, anchor(bottom), calc(100dvh - 490px)) !important;
    right: max(16px, anchor(right)) !important;
    left: auto !important;
    transform: none;
  }
}

@media (forced-colors: active) {
  html body .direto-ind-date-popover .direto-ind-calendar-day.is-selected {
    border-color: Highlight !important;
    background: Highlight !important;
    color: HighlightText !important;
    forced-color-adjust: none;
  }

  html body .direto-ind-date-popover .direto-ind-calendar-day.is-in-range {
    border-color: Highlight !important;
    background: Canvas !important;
    color: CanvasText !important;
  }
}
