/* Readable request and activity lists, with one shared mobile layout. */
.request-summary { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: -.5rem 0 1.7rem; color: var(--muted); font-size: .9rem; }
.request-summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.records-list { min-width: 0; }
.list-toolbar { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .3fr) minmax(10rem, .3fr); gap: 1rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; }
.list-toolbar > div { min-width: 0; }
.list-toolbar label { display: block; margin-bottom: .4rem; color: var(--ink-soft); font-size: .875rem; font-weight: 650; }
.list-toolbar :is(input, select) { display: block; min-width: 0; width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid var(--line-strong); border-radius: .25rem; color: var(--ink); background: #fff; font: inherit; font-size: 1rem; }
.list-toolbar :is(input, select):focus-visible, .records-list :is(a, button, summary):focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.list-result-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; }
.list-result-bar p { margin: 0; color: var(--muted); font-size: .9rem; }
.list-text-button { border: 0; background: transparent; color: var(--link); font: inherit; text-decoration: underline; min-height: 44px; padding: .4rem; cursor: pointer; }
.readable-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-size: 1rem; line-height: 1.5; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.readable-table thead th { background: #eaf0ec; color: #344d43; padding: .8rem 1.15rem; font-size: .8rem; font-weight: 700; text-align: left; border-bottom: 1px solid var(--line); }
.readable-table th, .readable-table td { min-width: 0; overflow-wrap: anywhere; }
.readable-table tbody :is(th, td) { padding: 1.1rem 1.15rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.readable-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.readable-table tbody tr:nth-child(even) { background: #f6f8f5; }
.readable-table tbody tr:focus-within { background: #edf4ed; }
.readable-table tbody th { font-weight: 400; }
.request-table th:first-child { width: 43%; }
.request-table th:nth-child(2) { width: 20%; }
.request-table th:nth-child(3) { width: 16%; }
.activity-table th:first-child { width: 40%; }
.activity-table th:nth-child(2) { width: 26%; }
.activity-table th:nth-child(3) { width: 21%; }
.request-name { display: block; color: var(--link); font-size: 1.04rem; font-weight: 700; line-height: 1.45; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.request-reference { display: block; margin-top: .4rem; color: var(--ink-soft); font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.readable-table a.request-reference { margin-top: 0; color: var(--link); text-underline-offset: 3px; }
.list-secondary { display: block; margin-top: .4rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.activity-name { font-weight: 700; }
.activity-reason { margin: .4rem 0 0; color: var(--ink-soft); font-size: .9375rem; font-weight: 400; }
.list-details { margin-top: .35rem; font-size: .875rem; font-weight: 400; }
.list-details summary { display: list-item; width: fit-content; min-height: 44px; padding-block: .65rem; color: var(--link); cursor: pointer; font-weight: 600; }
.list-details[open] summary { margin-bottom: .2rem; }
.list-details > div { padding: .8rem; border-left: 2px solid var(--line-strong); background: #fff; color: var(--ink-soft); }
.list-details p { margin: 0 0 .8rem; white-space: pre-wrap; }
.list-details dl { margin: 0; }
.list-details dt { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .7rem; }
.list-details dt:first-child { margin-top: 0; }
.list-details dd { margin: .15rem 0 0; }
.list-details code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-size: .76rem; }
.readable-table .status-badge { max-width: 100%; white-space: normal; font-size: .8rem; line-height: 1.4; }
.readable-table .duplicate-queue-flag { display: inline-block; margin-top: .4rem; }
.list-pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1rem; padding-top: 1.25rem; font-size: .9rem; }
.list-pagination button { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--line-strong); background: #fff; border-radius: .25rem; color: var(--link); font: inherit; cursor: pointer; }
.list-pagination button:disabled { opacity: .5; cursor: default; }
.list-footnote { font-size: .82rem; color: var(--muted); line-height: 1.6; margin: 1rem 0; max-width: 85ch; }
.list-footnote a { color: var(--link); }
@media (max-width: 64rem) {
  .list-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-search { grid-column: 1 / -1; }
  .readable-table { border: 0; background: transparent; }
  .readable-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .readable-table tbody { display: grid; gap: 1rem; }
  .readable-table tr { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
  .readable-table tbody tr:nth-child(even) { background: var(--paper); }
  .readable-table tbody :is(th, td) { display: block; width: auto; padding: .65rem 1.1rem; border-bottom: 0; }
  .readable-table tbody th.list-primary { width: auto; padding-top: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .readable-table tbody td:last-child { padding-bottom: 1.1rem; }
  .readable-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .76rem; font-weight: 650; margin-bottom: .2rem; }
  .readable-table .list-secondary { margin-top: .15rem; }
  .request-name { font-size: 1.1rem; }
}
@media (max-width: 30rem) {
  .list-toolbar { padding: 1rem; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .list-search { grid-column: auto; }
  .request-summary { font-size: .82rem; gap: .4rem 1rem; }
  .list-pagination { justify-content: space-between; gap: .5rem; }
  .list-pagination button { padding-inline: .75rem; }
  .list-result-bar { flex-wrap: wrap; gap: 0; padding-block: .5rem; }
}
.records-list [hidden] { display: none !important; }
