.chart-canvas-wrap {
  width: 100%;
  overflow-x: auto;
}

.traffic-canvas {
  display: block;
  min-width: 320px;
}

.comparison-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 16px;
}

.comparison-legend > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.comparison-legend i {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  flex: none;
}

.comparison-legend span,
.comparison-legend b,
.comparison-legend small {
  display: block;
  min-width: 0;
}

.comparison-legend b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.comparison-legend small {
  color: var(--muted);
  font-size: 11px;
}

.chart-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.chart-pagination span {
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.chart-pagination button:last-child {
  justify-self: stretch;
}

.chart-pagination button:disabled {
  opacity: .4;
}

@media (max-width: 520px) {
  .comparison-legend {
    grid-template-columns: 1fr;
  }

  .chart-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .chart-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.daily-date {
  color: var(--muted);
  font-size: 12px;
}

.daily-date input {
  min-width: 145px;
  margin-top: 3px;
  padding: 7px 9px;
}

.daily-account {
  margin: 16px 0;
}

.daily-account > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.daily-account > div span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.daily-account > div span i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.daily-account > em {
  display: block;
  height: 11px;
  margin: 6px 0;
  overflow: hidden;
  border-radius: 99px;
  background: var(--bg);
}

.daily-account > em > i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 99px;
}

.daily-account small {
  color: var(--muted);
}
