/* HELEN & SONS / Four actionable KPI cards in one horizontal row. */
/* Desktop: four equal cards. Mobile: retain one row and swipe horizontally. */
html #page-overview .dashboard-metrics {
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
}
html #page-overview .dashboard-metrics .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1vw, 14px) !important;
  width: 100%;
  margin-bottom: 0 !important;
}
html #page-overview .metric-grid .metric-card.metric-link {
  min-width: 0 !important;
  min-height: 193px !important;
  padding: 15px !important;
  border-radius: 24px !important;
}
html #page-overview .metric-card .metric-title {
  font-size: 12px !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}
html #page-overview .metric-card > strong {
  font-size: clamp(36px, 3vw, 53px) !important;
  margin-top: 7px !important;
}
html #page-overview .metric-card .studio-card-footer {gap: 3px !important;}
html #page-overview .metric-card .studio-card-footer span {min-width: 0; height: 18px; border-radius: 7px;}
@media (min-width: 901px) and (max-width: 1150px) {
  html #page-overview .metric-grid .metric-card.metric-link {padding: 13px !important;min-height: 188px !important;}
  html #page-overview .metric-card .metric-title {font-size: 11px !important;}
  html #page-overview .metric-card .studio-card-footer span {height: 15px;}
}
@media (max-width: 900px) {
  html #page-overview .dashboard-metrics {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  html #page-overview .dashboard-metrics .metric-grid {
    grid-template-columns: repeat(4, minmax(205px, 1fr)) !important;
    width: max-content;
    min-width: 100%;
  }
  html #page-overview .metric-grid .metric-card.metric-link {
    min-height: 187px !important;
    scroll-snap-align: start;
  }
}
@media (max-width: 480px) {
  html #page-overview .dashboard-metrics .metric-grid {
    grid-template-columns: repeat(4, minmax(215px, 1fr)) !important;
  }
}
