/* Layout sito avanzato per i clienti reali. */
.website-primary-grid--wide,
.website-primary-grid:has(.top-pages-table--history) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.website-primary-grid--wide > .dashboard-card,
.website-primary-grid:has(.top-pages-table--history) > .dashboard-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.website-primary-grid--wide .website-trend-focus__chart,
.website-primary-grid--wide .website-trend-focus__chart .multi-chart,
.website-primary-grid--wide .website-trend-focus__chart .multi-chart__svg,
.website-primary-grid:has(.top-pages-table--history) .website-trend-focus__chart,
.website-primary-grid:has(.top-pages-table--history) .website-trend-focus__chart .multi-chart,
.website-primary-grid:has(.top-pages-table--history) .website-trend-focus__chart .multi-chart__svg {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.website-primary-grid--wide .website-trend-focus__chart .multi-chart__svg,
.website-primary-grid:has(.top-pages-table--history) .website-trend-focus__chart .multi-chart__svg {
  height: auto;
  display: block;
}

.website-primary-grid:has(.top-pages-table--history) .top-pages-table--history .top-pages-table__head,
.website-primary-grid:has(.top-pages-table--history) .top-pages-table--history .top-pages-table__row {
  grid-template-columns: minmax(320px, 1.8fr) repeat(4, minmax(90px, 0.55fr));
  min-width: 720px;
}

@media (max-width: 760px) {
  .website-primary-grid--wide .website-trend-focus__chart .multi-chart__svg,
  .website-primary-grid:has(.top-pages-table--history) .website-trend-focus__chart .multi-chart__svg {
    height: 240px;
  }

  .website-primary-grid:has(.top-pages-table--history) .top-pages-table--history .top-pages-table__head,
  .website-primary-grid:has(.top-pages-table--history) .top-pages-table--history .top-pages-table__row {
    grid-template-columns: minmax(220px, 1fr) repeat(4, 72px);
    min-width: 560px;
  }
}
