.statistics-tabs {
  display: flex;
  gap: 24px;
  margin: -5px 0 16px;
  border-bottom: 1px solid var(--line);
}
.statistics-tab {
  position: relative;
  padding: 11px 2px 12px;
  border: 0;
  background: transparent;
  color: #63718e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.statistics-tab:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: '';
}
.statistics-tab.active {
  color: var(--navy);
}
.statistics-tab.active:after {
  background: var(--navy);
}
.statistics-panel[hidden] {
  display: none;
}
.statistics-panel {
  margin-bottom: 14px;
  padding: 15px 16px;
}
.statistics-picker,
.ranking-filters label {
  display: grid;
  gap: 5px;
  color: #63718e;
  font-size: 11px;
}
.statistics-picker input,
.ranking-filters input,
.ranking-filters select {
  min-width: 145px;
}
.statistics-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}
.statistics-totals article {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.statistics-totals span {
  display: block;
  color: #63718e;
  font-size: 11px;
}
.statistics-totals strong {
  display: block;
  margin-top: 5px;
  color: #092556;
  font-size: 24px;
}
.monthly-chart {
  display: flex;
  align-items: end;
  gap: 3px;
  min-height: 190px;
  margin: 0 0 8px;
  padding: 12px 8px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  background: linear-gradient(#fff, #fafcff);
  overflow-x: auto;
  justify-content: center;
}
.chart-day {
  display: grid;
  flex: 0 0 23px;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2px;
  height: 164px;
}
.chart-bar {
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}
.chart-bar.eyes {
  background: #df2924;
}
.chart-bar.away {
  background: #ed7b17;
}
.statistics-page .legend.eyes {
  background: #df2924;
}
.statistics-page .legend.away {
  background: #ed7b17;
}
.ranking-panel {
  margin-bottom: 0;
}
.ranking-filters {
  display: flex;
  align-items: end;
  gap: 11px;
}
.statistics-page .page-status:not(:empty) {
  display: block;
  margin: 0 0 14px;
  padding: 9px 12px;
  border-left: 3px solid #2860ad;
  border-radius: 4px;
  background: #edf4ff;
  color: #244e8d;
  font-weight: 650;
}
.statistics-page .page-status.error {
  border-left-color: var(--red);
  background: #fff0ef;
  color: #b42620;
}
@media (max-width: 767px) {
  .statistics-tabs {
    gap: 14px;
    overflow-x: auto;
  }
  .statistics-tab {
    flex: 0 0 auto;
  }
  .statistics-panel {
    padding: 12px;
  }
  .statistics-totals {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .ranking-filters {
    width: 100%;
    flex-wrap: wrap;
  }
  .statistics-picker {
    width: 100%;
  }
  .statistics-picker input {
    width: 100%;
  }
  .statistics-page .panel-title {
    gap: 13px;
  }
  .monthly-chart {
    min-height: 165px;
  }
  .chart-day {
    height: 138px;
  }
}
