/* documents.css — the Documents tab and Settings ▸ Documents (v0.48.0, the Flagler edition). rem only. */

.docs-list, .docs-files { list-style: none; margin: 0; padding: 0; }
.docs-list { display: grid; gap: .75rem; margin-top: .5rem; }
.docs-row { border: 1px solid var(--line); border-radius: 6px; background: var(--card, var(--bg)); padding: .75rem .9rem; }
.docs-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.docs-row__title { font-size: 1rem; overflow-wrap: anywhere; }
.docs-row__people, .docs-row__meta { margin: .25rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.docs-row__meta { color: var(--ink-soft); }
.docs-row__actions { margin: .5rem 0 0; }
.docs-row__say:empty { display: none; }
.docs-row__say { margin-top: .5rem; }
.docs-empty { padding: 1rem; color: var(--ink-soft); }

.docs-kind {
  display: inline-block; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--ink);
}
.docs-kind--accident { background: var(--warn-bg); border-color: var(--warn-line); color: #6b4a10; }
.docs-kind--request { background: var(--info-bg); border-color: var(--info-line); color: #1b3f6e; }
.docs-kind--agreement { background: var(--ok-bg); border-color: var(--ok-line); color: #1d5330; }

.docs-files { margin-top: .5rem; display: grid; gap: .25rem; }
.docs-file { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.docs-file__name { flex: 1 1 12rem; font-size: .9rem; overflow-wrap: anywhere; }
.docs-file .btn, .docs-row__actions .btn { min-height: 2.5rem; }

.docs-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

/* The preview: over the page, a frame under a bar. */
.docs-viewer { position: fixed; inset: 0; z-index: var(--z-dialog); display: flex; flex-direction: column; background: var(--bg); }
.docs-viewer[hidden] { display: none; }
.docs-viewer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.docs-viewer__title { flex: 1 1 10rem; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.docs-viewer__frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
.docs-viewer__say { margin: .75rem; }
.docs--viewing { overflow: hidden; }

/* The search form: the box across the top, the filters in a grid, the buttons on their own row. */
.docs-filters .filters__check { grid-column: 1 / -1; align-self: center; }
.docs-filters .filters__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-self: stretch; }
.docs-filters .filters__actions .btn { min-height: 2.75rem; }
.docs-filters .filters__f select, .docs-filters .filters__f input { min-height: 2.5rem; }

/* Settings ▸ Documents */
.docs-set { border: 1px solid var(--line); border-radius: 6px; padding: .75rem .9rem; margin: 0 0 1rem; }
.docs-health { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .9rem; }
.docs-health__line { overflow-wrap: anywhere; }
.docs-health__line--ok { color: #1d5330; }
.docs-health__line--warn { color: #7a4a00; }
.docs-health__line--info { color: var(--ink-soft); }

@media (max-width: 40rem) {
  .docs-row { padding: .65rem .7rem; }
  .docs-file .btn, .docs-row__actions .btn { flex: 1 1 8rem; }
}
