/* Dashboard overflow guard for desktop and narrow browser windows. */
html,
body,
.app-shell {
  max-width: 100%;
  overflow-x: hidden;
}

.main-content {
  min-width: 0;
  max-width: calc(100vw - 224px);
}

.notice,
.stats-grid,
.stat-card,
.promotion-alert-panel,
.two-col,
.panel,
.month-panel {
  min-width: 0;
  max-width: 100%;
}

.stats-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1450px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .main-content {
    max-width: calc(100vw - 200px);
  }
}

@media (max-width: 760px) {
  .main-content {
    max-width: calc(100vw - 76px);
  }

  .stats-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
