/* Dashboard date-range picker. The React control is a static label; this replaces it. */
.aea-dash .aea-range[data-aea-dash-native] {
  display: none !important;
}
.aea-dash-range {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 30;
}
.aea-dash-range-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #d7e2e6;
  border-radius: 999px;
  background: #f8fafc;
  color: #134e4a;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.aea-dash-range-btn svg {
  flex: none;
  color: #0f766e;
  pointer-events: none;
}
.aea-dash-range.is-open .aea-dash-range-btn {
  border-color: #99f6e4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.aea-dash-cal {
  position: fixed;
  z-index: 4100;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid #d7e2e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}
.aea-dash-cal h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aea-dash-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.aea-dash-presets button {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #134e4a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.aea-dash-presets button:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
}
.aea-dash-presets button.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.aea-dash-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aea-dash-custom label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.aea-dash-custom input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  font: inherit;
  color: #134e4a;
}
.aea-dash-cal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.aea-dash-cal-actions button {
  margin: 0;
  padding: 7px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.aea-dash-cal-actions .aea-dash-ghost {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}
.aea-dash-cal-actions .aea-dash-go {
  border: 0;
  background: #0f766e;
  color: #fff;
}
.aea-dash .aea-bookings tbody[data-aea-dash-hidden] {
  display: none !important;
}
.aea-dash-empty {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
}

/* The React dashboard ships sample figures; only recorded data is shown. */
.aea-dash[data-aea-dash-real] .aea-revenue > .aea-chart,
.aea-dash[data-aea-dash-real] .aea-revenue .aea-select,
.aea-dash[data-aea-dash-real] .aea-status > .aea-donut-wrap:not([data-aea-dash-live]),
.aea-dash[data-aea-dash-real] .aea-activity > .aea-timeline:not([data-aea-dash-live]),
.aea-dash[data-aea-dash-real] .aea-bookings tbody:not([data-aea-dash-live]) {
  display: none !important;
}
.aea-dash-chart .aea-chart {
  display: block;
  width: 100%;
  height: auto;
}
.aea-dash-note {
  margin: 4px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}
.aea-dash .aea-kpi small[data-aea-dash-trend='down'] {
  color: #b91c1c;
}
.aea-dash .aea-kpi small[data-aea-dash-trend='down'] svg {
  transform: scaleY(-1);
}
.aea-dash .aea-kpi small[data-aea-dash-trend='none'] svg {
  display: none;
}
.aea-dash .aea-timeline-icon.kind-refund {
  background: #fee2e2;
  color: #b91c1c;
}
.aea-dash .aea-timeline-icon.kind-voucher {
  background: #ede9fe;
  color: #6d28d9;
}
.aea-dash .aea-timeline-icon.kind-review {
  background: #fef3c7;
  color: #b45309;
}
.aea-dash .aea-timeline > li.aea-dash-empty {
  display: block;
  list-style: none;
}
