.history-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 15px;
  background:
    radial-gradient(ellipse at 98% 0%, #0a57aacc, transparent 40%),
    var(--panel);
}

.history-filters > .icon-tile { align-self: center; }
.history-filters label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.history-filters select { width: min(100%, 220px); }
.history-dates { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.history-dates label { min-width: 0; }
.history-body { padding: 12px 14px 15px; }
.history-body th { background: #16325a; }
.history-body th:first-child { border-radius: 8px 0 0 0; }
.history-body th:last-child { border-radius: 0 8px 0 0; }
.history-body tbody td { font-size: 14px; }
.history-body tr:nth-child(even) td { background: #0f376a; }
.history-body tbody td:first-child { white-space: nowrap; }
.history-body tbody td:first-child { border-radius: 7px 0 0 7px; }
.history-body tbody td:last-child { border-radius: 0 7px 7px 0; }

.history-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 15px;
  background: #173e6d;
  color: #cce5ff;
  font-size: 12px;
  font-weight: 700;
}

.history-tag[data-result="valid"], .history-tag[data-result="draft"] { background: #105052; color: #c1ffe8; }
.history-tag[data-result="invalid"], .history-tag[data-result="malformed"],
.history-tag[data-result="unreadable"] { background: #5c303e; color: #ffe1e0; }

.history-empty {
  display: grid;
  justify-items: center;
  padding: 7px 13px 25px;
  border-radius: 0 0 10px 10px;
  background: radial-gradient(ellipse at 50% 32%, #0c3572, transparent 67%);
  text-align: center;
}
.history-empty .art { --art-width: 188px; }
.history-empty h2 { margin-bottom: 6px; }
.history-empty p { font-size: 14px; }
.history-empty .button { margin-top: 3px; }
#history-message { padding-inline: 12px; }

@media (max-width: 680px) {
  .history-filters { align-items: start; }
  .history-filters > .icon-tile { display: none; }
  .history-filters > label, .history-filters select { width: 100%; }
  .history-dates { width: 100%; }
  .history-dates label { flex: 1 1 0; }
  .history-body { padding-inline: 6px; }
  .history-body th, .history-body td { padding: 9px 5px; font-size: 11px; }
  .history-body .history-tag { padding-inline: 5px; font-size: 10px; }
}

@media print {
  .history-filters, .history-empty .art, .history-empty .button { display: none; }
  .history-body th, .history-body tbody td, .history-body .history-tag { color: #161616; background: white; }
}
