/*
 * Panel layout corrections for the home pages (LEIS-1021).
 *
 * `.bz-stats` is `repeat(4, minmax(0, 1fr))` because the Travel Policy page
 * runs it the full width of a 1320px container. "Company at a glance" sits in
 * the admin home's 340px sidebar instead, where four columns leaves roughly
 * 70px per tile — the 48px icon takes nearly all of it and the label, figure
 * and sub-line collapse to nothing. Rendered, that reads as four empty boxes,
 * which is what it did before this file existed.
 *
 * Two up is also what the design shows, so this is not a workaround for a
 * layout that wanted to be four across.
 */

.home-glance .bz-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  gap: 12px;
}

.home-glance .bz-stat {
  gap: 10px;
  padding: 14px 14px 14px 18px;
}

/* 48px is sized for a full-width tile; here it would still crowd the figure. */
.home-glance .bz-stat-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 15px;
}

.home-glance .bz-stat strong {
  font-size: 20px;
}

.home-glance .bz-stat small,
.home-glance .bz-stat em {
  font-size: 11px;
  line-height: 1.3;
}

/* The money tiles carry "$1,671" — never break that across two lines. */
.home-glance .bz-stat strong {
  white-space: nowrap;
}

/* A tile that links somewhere should say so on hover, like the queue's do. */
.home-glance a.bz-stat:hover {
  border-color: var(--bz-border-strong);
}

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