.periods {
  max-width: 100%;
  flex-wrap: wrap;
}

.periods .date-period,
.periods .range-period {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: 0.16s;
}

.periods .date-period.active,
.periods .range-period.active {
  background: var(--orange);
  color: #fff;
}

.date-period input,
.range-period input {
  width: 132px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 5px 7px;
  border-radius: 6px;
  font: inherit;
  color-scheme: dark;
}

.date-period.active input,
.range-period.active input {
  border-color: rgba(255, 255, 255, 0.4);
}

.range-separator {
  color: inherit;
  font-size: 11px;
}

.pdf-download {
  appearance: none;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
  padding: 10px 15px;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pdf-download:hover {
  background: var(--orange2);
}

.refresh {
  min-width: 132px;
  white-space: nowrap;
}

.refresh:hover:not(:disabled) {
  border-color: var(--orange);
}

.refresh:disabled {
  cursor: wait;
  opacity: 0.72;
}

.refresh.is-running {
  color: var(--orange2);
}

@media (max-width: 580px) {
  .periods {
    width: 100%;
    flex-wrap: wrap;
  }

  .periods .date-period,
  .periods .range-period {
    flex: 1 0 100%;
  }

  .range-period input {
    min-width: 0;
    width: 118px;
  }
}
