.job-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass);
  color: var(--muted);
  font-size: 12px;
}

.job-history-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-history-controls button,
.job-history-controls input {
  min-height: 34px;
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  background: var(--glass-soft);
  color: var(--text);
  font: inherit;
}

.job-history-controls button {
  padding: 0 9px;
  cursor: pointer;
}

.job-history-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}

.job-history-controls input {
  box-sizing: border-box;
  width: 56px;
  padding: 0 5px;
  text-align: center;
}

.queue-overview[data-idle-hidden="true"] {
  display: none !important;
}

.job-history-pagination[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .job-history-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-history-controls {
    width: 100%;
    flex-wrap: wrap;
  }
}
