main { padding-bottom: 2rem; }
#history { margin-top: 1rem; }
#event-fields .selectors label { margin-bottom: 0; }
#event-fields #reason { margin-bottom: .75rem; }
.scroll-table { overflow-x: auto; }
#history .history-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
#history .history-filters label { margin-bottom: 0; }
#history-filter-help { margin-bottom: 0; }
#history-table { max-height: 28rem; overflow: auto; }
#history-pages { margin-top: .75rem; }
#history [hidden] { display: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td { white-space: pre-wrap; overflow-wrap: anywhere; }
th:nth-child(3), th:nth-child(4), td:nth-child(3), td:nth-child(4) { min-width: 9rem; }
td:nth-child(6), td:nth-child(7) { min-width: 9rem; }

.line-stop-check { display: flex; align-items: center; gap: .55rem; }
.line-stop-check input[type="checkbox"] {
  appearance: auto;
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  margin: 0;
  padding: 0;
}
#line-stop-help { margin-top: 0; }
