.wb-repricer-workspace:has(.wb-repricer-statistics:not([hidden])) {
  padding: 0;
}

.wb-repricer-statistics {
  height: auto;
  min-height: calc(100dvh - var(--wb-header-height));
}

.wb-repricer-statistics .wb-catalog-form {
  anchor-scope: --wb-calendar-toggle;
}

.wb-statistics-collection {
  box-sizing: border-box;
  inline-size: min(46rem, calc(100vw - 24px));
  max-block-size: calc(100dvh - 24px);
  overflow: auto;
  color: var(--wb-text);
  background: var(--wb-canvas);
  border: 1px solid var(--wb-soft-line);
  border-radius: 12px;
  padding: clamp(12px, 3vw, 22px);
}

.wb-statistics-collection table {
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wb-repricer-statistics .wb-catalog-summary {
  padding: 2px var(--wb-inset) 0;
  background: var(--wb-canvas);
}

.wb-repricer-statistics .wb-catalog-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 8px;
  padding: 0;
  overflow: visible;
}

.wb-repricer-statistics .wb-catalog-metric {
  min-height: 108px;
  padding: 11px 18px;
  box-shadow: 0 1px 2px #0f172a06;
}

.wb-repricer-statistics .wb-catalog-metric strong {
  margin: 4px 0 5px;
  font-size: 24px;
}

.wb-repricer-statistics .wb-catalog-evidence:not(:empty) {
  min-height: 0;
  margin: 14px 0 0;
  padding: 4px 0 8px;
  border: 0;
  background: transparent;
}

.wb-repricer-statistics .wb-catalog-toolbar {
  min-height: 48px;
}

.wb-statistics-results-count {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 var(--wb-inset) 12px;
  padding: 4px 10px;
  border: 1px solid var(--wb-soft-line);
  border-radius: 10px;
  background: var(--wb-subtle);
}

.wb-statistics-results-count .wb-catalog-count {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 650;
}

.wb-repricer-statistics .wb-statistics-results-count button {
  padding-inline: 8px;
  border-color: transparent;
  background: none;
  color: var(--wb-muted);
  font-weight: 500;
}

.wb-repricer-statistics .wb-catalog-results {
  min-height: 0;
  max-height: min(620px, 60dvh);
  flex: 0 1 auto;
}

.wb-repricer-statistics:not([data-has-pages]) .wb-catalog-footer {
  display: none;
}

.wb-catalog-results .wb-statistics-table :is(th, td)[data-column="title"] {
  left: 0;
  min-width: 282px;
  width: 282px;
  max-width: 282px;
  padding-left: 11px;
  text-align: left;
}

.wb-catalog-results .wb-statistics-table :is(th, td):nth-child(2) {
  left: auto;
  border-right: 0;
}

.wb-catalog-results .wb-statistics-table th:nth-child(2) {
  z-index: 2;
}

.wb-catalog-results .wb-statistics-table td:nth-child(2) {
  position: static;
  background: inherit;
}

.wb-catalog-results .wb-statistics-table th {
  height: 36px;
}

.wb-catalog-results .wb-statistics-table td {
  height: 66px;
  padding-block: 8px;
}

.wb-statistics-table [data-column="repricerAction"] {
  --wb-column-width: 155px;
}

.wb-statistics-table [data-column="managerName"] {
  --wb-column-width: 220px;
}

.wb-statistics-table :is([data-column="impressions"], [data-column="adImpressions"], [data-column="totalClicks"]) {
  --wb-column-width: 162px;
  text-align: right;
}

.wb-statistics-table .wb-catalog-photo-placeholder {
  width: 36px;
  height: 44px;
  flex-basis: 36px;
}

.wb-repricer-statistics .wb-catalog-photo-placeholder svg {
  width: 24px;
  height: 24px;
}

.wb-statistics-table .wb-catalog-product > span:last-child {
  gap: 1px;
}

.wb-statistics-table .wb-catalog-product strong {
  color: var(--wb-brand);
}

@media (max-width: 780px) {
  .wb-repricer-statistics .wb-catalog-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-repricer-statistics .wb-catalog-metric {
    min-height: 96px;
    padding-inline: 11px;
  }

  .wb-catalog-results .wb-statistics-table :is(th, td)[data-column="title"] {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }
}
