.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: var(--frontend-space-3);
}

.dashboard-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--frontend-space-2);
  justify-content: space-between;
}

.dashboard-card-header-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--frontend-space-2);
  justify-content: flex-end;
}

.dashboard-card-subtitle {
  font-size: var(--frontend-font-size-xs);
  margin: 0;
  opacity: 0.72;
}

.dashboard-chart-expand-button {
  bottom: var(--frontend-space-2);
  height: 1.7rem;
  left: var(--frontend-space-2);
  min-height: 0;
  min-width: 0;
  padding: 0;
  position: absolute;
  width: 1.7rem;
  z-index: 5;
}

.dashboard-chart-expand-button .heroicon {
  height: 0.78rem;
  line-height: 1;
  width: 0.78rem;
}

.dashboard-chart-expand-host {
  position: relative;
}

.dashboard-chart-modal__box {
  max-width: min(96vw, 92rem);
  overflow-x: hidden;
  width: min(96vw, 92rem);
}

.dashboard-chart-modal[open] {
  display: grid;
  opacity: 1;
  padding: var(--frontend-space-3);
  pointer-events: auto;
  place-items: center;
  visibility: visible;
}

.dashboard-chart-modal::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.dashboard-chart-modal__header {
  align-items: center;
  display: flex;
  gap: var(--frontend-space-3);
  justify-content: space-between;
  margin-bottom: var(--frontend-space-3);
}

.dashboard-chart-modal__grid {
  display: grid;
  gap: var(--frontend-space-3);
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-chart-modal__grid[data-chart-count="2"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.dashboard-chart-modal__chart-title {
  font-size: var(--frontend-font-size-sm);
  font-weight: 600;
  margin: 0 0 var(--frontend-space-2);
}

.dashboard-chart-modal__chart {
  height: min(70vh, 44rem);
  min-height: 28rem;
  width: 100%;
}

.dashboard-chart-modal__grid[data-chart-count="2"] .dashboard-chart-modal__chart {
  height: min(62vh, 38rem);
}
