/* History filters, paging and compact rows. Shared workspace styles stay intact. */
.history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  align-items: end;
  gap: 12px 16px;
  padding: 16px 20px 8px;
  border-top: 1px solid var(--line);
}
.history-filters label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.history-filters .lfw-input { width: 100%; min-width: 0; height: 38px; padding: 6px 9px; }
.history-filters > .btn { justify-self: start; }
.history-filter-note { padding: 0 20px 16px; color: var(--muted); font-size: 12px; }
.history-pagination { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
#jobs-page-range { margin-right: auto; font-size: 13px; color: var(--muted); }
.jobs-mobile-details { margin-top: 8px; font-size: 12px; white-space: normal; }
.jobs-mobile-details summary { cursor: pointer; color: var(--muted); width: fit-content; }
.jobs-mobile-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.jobs-mobile-details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 10px 0 0; }
.jobs-mobile-details dt { color: var(--muted); }
.jobs-mobile-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.jobs-table td { vertical-align: top; }

@media (max-width: 760px) {
  .jobs-table-panel .panel-head { flex-wrap: wrap; gap: 12px; }
  .jobs-table-panel .panel-head .find { flex: 1 1 100%; width: 100%; }
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .history-filters label:first-child { grid-column: 1 / -1; }
  .history-filter-note { padding: 0 16px 16px; }
  .jobs-table-panel .lfw-table-wrap { overflow: visible; }
  .jobs-table { display: block; min-width: 0; width: 100%; table-layout: auto; }
  .jobs-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .jobs-table tbody { display: block; }
  .jobs-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 10px; border-bottom: 1px solid var(--line); }
  .jobs-table tr[hidden] { display: none; }
  .jobs-table td:nth-child(n) { display: block; width: auto; min-width: 0; padding: 0; border: 0; text-align: left; white-space: normal; }
  .jobs-table td:nth-child(3), .jobs-table td:nth-child(4), .jobs-table td:nth-child(5) { display: none; }
  .jobs-table td:nth-child(1) > .doc { white-space: normal; overflow-wrap: anywhere; }
  .jobs-table td:nth-child(1) > .jobs-doc-meta { white-space: normal; }
  .jobs-table .jobs-action-cell .row-actions { justify-content: flex-start; }
  .jobs-table .jobs-action-cell .btn { min-height: 40px; }
  .jobs-table .rowchev, .jobs-table td:nth-child(1) > .mono.col-sec { display: none; }
  .history-pagination { flex-wrap: wrap; padding: 16px; }
  #jobs-page-range { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .history-filters { grid-template-columns: minmax(0, 1fr); }
}
