.new-count {
  gap: 8px;
}

.new-count:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.notifications {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.events-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (min-width: 1200px) {
  .notice.is-wide {
    grid-column: span 3;
  }
}

.home-balance,
.statistics {
  margin-top: 22px;
}

.home-balance:first-child,
[hidden] + .home-balance {
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric {
  padding: 26px;
  background: var(--white);
  border-radius: 18px;
  min-width: 0;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric-head > .icon {
  color: var(--muted);
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 3px;
}

.metric-note {
  font-size: 14px;
  color: var(--muted);
}

.bars {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 5px;
}

.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.bar {
  width: 100%;
  max-width: 34px;
  border-radius: 5px 5px 0 0;
  background: var(--gray);
  height: var(--height);
  position: relative;
}

.bar.is-peak {
  background: var(--blue);
}

.bar-col small {
  font-size: 14px;
  color: var(--muted);
}

.top-products {
  margin-top: 20px;
  background: var(--white);
  border-radius: 18px;
  padding: 26px;
}

.products-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.product-row {
  display: grid;
  grid-template-columns: 22px 58px minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  min-height: 89px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rank {
  color: var(--muted);
  font-size: 14px;
}

.product-photo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.product-name {
  line-height: 1.4;
}

.product-code {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.product-views {
  text-align: right;
}

.product-views strong {
  display: block;
  font-size: 18px;
}

.product-views span {
  font-size: 14px;
  color: var(--muted);
}

.stat-bottom {
  display: flex;
  gap: 20px;
}

.stat-bottom p {
  max-width: 360px;
}

@media (max-width: 1199px) {
  .stats-grid {
    gap: 16px;
  }
  .metric {
    padding: 20px;
  }
  .bars {
    gap: 10px;
  }
  .stat-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .top-products {
    padding: 20px;
  }
}

@media (max-width: 599px) {
  .new-count {
    white-space: nowrap;
  }
  .notifications {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-balance,
  .statistics {
    margin-top: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metric {
    padding: 20px;
  }
  .metric h3 {
    font-size: 18px;
  }
  .bars {
    height: 132px;
    gap: 20px;
  }
  .top-products {
    margin-top: 12px;
    padding: 20px;
  }
  .products-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
  }
  .product-row {
    grid-template-columns: 14px 42px minmax(0, 1fr) max-content;
    gap: 9px;
    min-height: 94px;
    padding: 14px 0;
  }
  .product-photo {
    width: 42px;
    height: 54px;
  }
  .product-name {
    font-size: 14px;
  }
  .product-code {
    font-size: 14px;
  }
  .product-views span {
    font-size: 14px;
  }
  .product-views strong {
    font-size: 18px;
  }
  .stat-bottom {
    gap: 18px;
    margin-top: 20px;
  }
  .stat-bottom .btn {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .product-row {
    grid-template-columns: 12px 34px minmax(0, 1fr) max-content;
    gap: 6px;
  }
  .top-products {
    padding: 16px;
  }
  .product-photo {
    width: 34px;
  }
  .bars {
    gap: 14px;
  }
}

.chart-value-1 {
  --height: 55.2%;
}

.chart-value-2 {
  --height: 60.1%;
}

.chart-value-3 {
  --height: 66.2%;
}

.chart-value-4 {
  --height: 57.4%;
}

.chart-value-5 {
  --height: 75.3%;
}

.chart-value-6 {
  --height: 70.3%;
}

.chart-value-7 {
  --height: 85%;
}

.chart-value-8 {
  --height: 30.9%;
}

.chart-value-9 {
  --height: 46.4%;
}

.chart-value-10 {
  --height: 38.6%;
}

.chart-value-11 {
  --height: 61.8%;
}

.chart-value-12 {
  --height: 54.1%;
}

.chart-value-13 {
  --height: 46.4%;
}

.chart-value-14 {
  --height: 85%;
}

.events-heading {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.events-heading .page-heading-actions {
  display: flex;
  width: auto;
}

.new-count {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 14px;
  white-space: nowrap;
}

.new-count:before {
  display: none;
}

.stat-bottom {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.stat-bottom .btn {
  width: auto;
}

.bars {
  height: 155px;
  padding-top: 10px;
}

.bar-col {
  gap: 5px;
}

.bar-number {
  font-size: 14px;
  color: var(--muted);
}

.bar-col:has(.is-peak) .bar-number {
  color: var(--blue);
}

.chart-legend {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend:before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--blue);
}

.new-count {
  font-weight: 400;
}

.bar-col:has(.is-peak) .bar-number {
  font-weight: 400;
}

.statistics {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stat-bottom {
  margin-top: auto;
  padding-top: 24px;
}
@media (min-width: 600px) and (max-width: 959px) {
  .statistics .stats-grid {
    gap: 16px;
  }
  .statistics .top-products {
    margin-top: 16px;
  }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .statistics .stats-grid {
    gap: 16px;
  }
  .statistics .top-products {
    margin-top: 16px;
  }
}
@media (max-width: 599px) {
  .stat-bottom {
    padding-top: 20px;
  }
}
