/*
 * Report Archive Calendar: Air Datepicker (self-hosted, /css/vendor/) themed to
 * the report page design. Loaded after the library's stylesheet.
 *
 * Days with a report are the enabled cells (calendar.js disables every other
 * day): bright, with a gold dot. The current report's day is the selected
 * cell, filled gold. Days without a report and days of other months are dim.
 */

.fss-archive-island {
  display: block;
}

/* Air Datepicker declares every --adp-* custom property on .air-datepicker
   itself (not :root), so overrides must target that element, with higher
   specificity than the library's single-class selector. */
.fss-archive-island .air-datepicker {
  --adp-width: 100%;
  --adp-padding: 0;
  --adp-background-color: transparent;
  --adp-color: #F2EEE3;
  --adp-color-secondary: #6F6B60;
  --adp-color-other-month: #4A4740;
  --adp-color-disabled: #6F6B60;
  --adp-color-disabled-in-range: #6F6B60;
  --adp-color-current-date: #F2EEE3;
  --adp-accent-color: #B4A272;
  --adp-day-name-color: #6F6B60;
  --adp-day-name-color-hover: #6F6B60;
  --adp-background-color-hover: rgba(180, 162, 114, 0.12);
  --adp-background-color-active: rgba(180, 162, 114, 0.25);
  --adp-background-color-in-range: rgba(180, 162, 114, 0.1);
  --adp-background-color-selected-other-month: rgba(180, 162, 114, 0.5);
  --adp-cell-background-color-selected: #B4A272;
  --adp-cell-background-color-selected-hover: #B4A272;
  --adp-border-color: transparent;
  --adp-border-color-inner: transparent;
  --adp-border-color-inline: transparent;
  --adp-border-radius: 6px;
  --adp-day-cell-height: 30px;
  --adp-nav-height: 32px;
  --adp-nav-arrow-color: #B4A272;
  --adp-nav-color-secondary: #8A8578;
  --adp-font-family: Montserrat, system-ui, sans-serif;
  --adp-font-size: 12px;

  width: 100%;
  box-shadow: none;
  border: 0;
  position: static;
}

/* Month header: "September 2026" between bordered arrow buttons. */
.fss-archive-island .air-datepicker-nav {
  padding: 0 0 6px;
  border-bottom: 0;
}

.fss-archive-island .air-datepicker-nav--title {
  font-size: 13px;
  font-weight: 600;
  color: #F2EEE3;
}

.fss-archive-island .air-datepicker-nav--title i {
  color: inherit;
}

.fss-archive-island .air-datepicker-nav--action {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(180, 162, 114, 0.25);
  border-radius: 6px;
}

.fss-archive-island .air-datepicker-nav--action.-disabled- {
  border-color: rgba(180, 162, 114, 0.1);
  opacity: 0.45;
}

.fss-archive-island .air-datepicker-nav--action path {
  stroke: #B4A272;
}

.fss-archive-island .air-datepicker-body--day-name {
  height: 30px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fss-archive-island .air-datepicker-body--cells.-days- {
  gap: 2px 0;
}

.fss-archive-island .air-datepicker-cell.-day- {
  position: relative;
}

/* Days with a report (enabled cells), except the current one. */
.fss-archive-island .air-datepicker-cell.-day-:not(.-disabled-):not(.-selected-):not(.-other-month-) {
  font-weight: 600;
}

.fss-archive-island .air-datepicker-cell.-day-:not(.-disabled-):not(.-selected-):not(.-other-month-)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #B4A272;
}

/* Air Datepicker hardcodes color:#fff for selected cells (not a variable);
   dark text on the gold fill. */
.fss-archive-island .air-datepicker-cell.-selected-,
.fss-archive-island .air-datepicker-cell.-selected-.-current- {
  color: #0A0906;
  font-weight: 600;
}

/* The current report's day: clicking it does nothing (calendar.js). */
.fss-archive-island .air-datepicker-cell.-day-.-selected- {
  cursor: default;
}

/* Today is only highlighted by the library; here it looks like any other
   day (dim unless it has a report). */
.fss-archive-island .air-datepicker-cell.-current-.-disabled- {
  color: #6F6B60;
}

.fss-archive-island .air-datepicker-cell.-current-.-other-month- {
  color: #4A4740;
}

/* CLS guard: room for a six-week month before the calendar renders. */
.fss-archive-calendar {
  min-height: 252px;
}

.fss-archive-calendar--fallback {
  min-height: 0;
}

.fss-archive-calendar:not(.is-ready) .fss-archive-grid {
  visibility: hidden;
}

.fss-archive-calendar.is-ready .fss-archive-grid {
  visibility: visible;
}

.fss-archive-calendar--fallback .fss-archive-fallback__date {
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: #F2EEE3;
}
