#document-list-status { padding: .75rem .85rem 0; margin: 0; font-size: .85rem; color: var(--muted, #64748b); overflow-wrap: anywhere; }
.document-list { min-width: 0; padding: .85rem; }
.document-filters { display: flex; flex-wrap: wrap; align-items: start; gap: .6rem; margin: 0 0 .8rem; }
.document-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.document-status-filters { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1 0 100%; min-width: 0; }
.document-status-filters .button { flex: 0 1 auto; min-height: 40px; padding: .45rem .7rem; margin: 0; font-size: .82rem; line-height: 1.25; letter-spacing: normal; text-transform: none; }
.document-status-filters button[aria-pressed="true"] { color: var(--blue, #244bd4); border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; }
.document-search { display: flex; flex: 1 1 12rem; min-width: 0; gap: .35rem; }
.document-search label { flex: 1 1 0; min-width: 0; }
.document-search input { width: 100%; min-width: 0; min-height: 42px; }
.document-search .document-search-submit { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 42px; min-width: 42px; min-height: 42px; padding: .5rem; margin: 0; }
.document-more-filters { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.document-more-filters > summary { display: list-item; padding: .65rem .2rem; min-height: 42px; font-size: .85rem; cursor: pointer; overflow-wrap: anywhere; }
.document-more-count { display: inline-block; padding: 0 .35rem; border-radius: 1rem; background: var(--soft, #f1f4f9); font-variant-numeric: tabular-nums; }
.document-more-filters[open] { flex-basis: 100%; }
.document-more-content { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: .75rem; border: 1px solid var(--line, #cbd5e1); border-radius: .65rem; }
.document-more-content > label, .document-dates label { display: flex; flex-direction: column; gap: .3rem; min-width: 0; font-size: .82rem; }
.document-more-content > label { flex: 1 1 10rem; }
.document-more-content input, .document-more-content select { width: 100%; max-width: 100%; min-width: 0; }
.document-date-filters { border: 0; padding: 0; margin: 0; min-width: 0; flex: 2 1 20rem; }
.document-date-filters legend { padding: 0; margin-bottom: .4rem; font-size: .82rem; font-weight: 600; }
.document-dates { display: flex; flex-wrap: wrap; gap: .6rem; }
.document-dates label { flex: 1 1 8rem; }
.document-more-content .document-apply { margin: 0; min-height: 42px; }
.document-active-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block: .6rem .85rem; min-width: 0; }
.document-filter-chip { display: inline-flex; gap: .65rem; align-items: center; max-width: 100%; min-height: 36px; padding: .4rem .65rem; background: var(--surface, transparent); color: inherit; border: 1px solid var(--line, #cbd5e1); border-radius: 999px; overflow-wrap: anywhere; text-align: left; cursor: pointer; }
.document-filter-chip span { flex-shrink: 0; }
.document-results, .document-table { min-width: 0; max-width: 100%; }
.document-table table { width: 100%; }
.document-open { text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.document-kind { display: block; font-size: .8rem; font-weight: 400; color: var(--muted, #64748b); margin-top: .2rem; }
.document-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.document-cards { display: none; list-style: none; padding: 0; margin: 0; gap: .75rem; }
.document-card { min-width: 0; border: 1px solid var(--line, #cbd5e1); border-radius: .75rem; padding: 1rem; }
.document-card-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.document-card-heading .badge { flex-shrink: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.document-contact { margin: .9rem 0; overflow-wrap: anywhere; }
.document-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.document-card dt { color: var(--muted, #64748b); font-size: .8rem; margin-bottom: .25rem; }
.document-card dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.document-empty { text-align: center; padding: 2rem 1rem; }
.document-empty h3 { margin-top: 0; }
.document-list[data-document-view="cards"] .document-table { display: none; }
.document-list[data-document-view="cards"] .document-cards { display: grid; }
@media (max-width: 700px) {
  .document-list { padding: .75rem; }
  .document-list[data-document-view="auto"] .document-table { display: none; }
  .document-list[data-document-view="auto"] .document-cards { display: grid; }
  .document-filters { gap: .45rem; }
  .document-status-filters { gap: .2rem; }
  .document-status-filters .button { flex: 1 1 auto; padding: .45rem .35rem; font-size: .76rem; }
  .document-search { flex-basis: 8rem; }
  .document-search input { padding-inline: .55rem; }
  .document-more-filters > summary { font-size: .8rem; }
  .document-card { padding: .85rem; }
  .document-card-heading { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .document-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-card dl > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .document-more-content { padding: .6rem; }
}
/* Applied saved-view columns use bounded numeric widths, never user CSS. */
.document-table table { table-layout: fixed; min-width: 100%; }
.document-table th,.document-table td { overflow-wrap: anywhere; }
.document-card dl > .document-card-heading { grid-column: 1 / -1; }
.document-card-field .badge { display: inline-block; white-space: normal; overflow-wrap: anywhere; }
.document-search-matches { font-size: .82rem; color: var(--muted, #64748b); margin-top: .5rem; overflow-wrap: anywhere; }
.document-match-title { font-weight: 600; }
.document-search-matches ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.document-search-matches mark {
  color: var(--ink, #172237);
  background: var(--soft, #eaf0ff);
  background: color-mix(in srgb, var(--blue, #244bd4) 24%, var(--surface, #fff));
  border-radius: .15rem;
  font-weight: 650;
}
@media (forced-colors: active) {
  .document-search-matches mark {
    color: HighlightText;
    background: Highlight;
    forced-color-adjust: none;
  }
}
.document-matches-row td { padding-top: 0; }
