/* The compact department row is a phone-only dashboard treatment. */
@media (max-width: 600px) {
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36px auto;
    justify-items: center;
    min-height: 76px;
    gap: 4px;
    padding: 6px 0;
    text-align: center;
    border-color: transparent;
    background: transparent;
  }
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department-icon {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }
  .dashboard-mobile-refresh .overview-department-icon:has(img[src*="kitchen-modern-duotone-"]) { --department-mark: url('./mobile-home-minimal-kitchen-20261201-r1.png'); }
  .dashboard-mobile-refresh .overview-department-icon:has(img[src*="bar-modern-duotone-"]) { --department-mark: url('./mobile-home-minimal-bar-20261201-r1.png'); }
  .dashboard-mobile-refresh .overview-department-icon:has(img[src*="grill-modern-duotone-"]) { --department-mark: url('./mobile-home-minimal-grill-20261201-r1.png'); }
  .dashboard-mobile-refresh .overview-department-icon:has(img[src*="household-modern-duotone-"]) { --department-mark: url('./mobile-home-minimal-household-20261201-r1.png'); }
  @supports selector(:has(img)) {
    html body .dashboard-overview.dashboard-mobile-refresh .overview-department-icon {
      background: var(--department-mark) center / contain no-repeat;
    }
    html[data-theme='light'] body .dashboard-overview.dashboard-mobile-refresh .overview-department-icon {
      background: var(--home-text);
      -webkit-mask: var(--department-mark) center / contain no-repeat;
      mask: var(--department-mark) center / contain no-repeat;
    }
    html body .dashboard-overview.dashboard-mobile-refresh .overview-department-icon:has(
      img[src*="kitchen-modern-duotone-"], img[src*="bar-modern-duotone-"],
      img[src*="grill-modern-duotone-"], img[src*="household-modern-duotone-"]
    ) img { display: none; }
  }
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department-copy small,
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department > strong { display: none; }
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department-copy {
    display: block;
    grid-column: 1;
    grid-row: 2;
  }
  html body .dashboard-overview.dashboard-mobile-refresh .overview-mobile-order:nth-child(n+3) { display: grid; }
}
@media (max-width: 350px) {
  html body .dashboard-overview.dashboard-mobile-refresh .overview-department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
