/* THE DOCUMENTS TAB'S OWN HEAD ROW (Marc, this iteration). It replaced a title, a
   description and a second empty state, so this row is now all the chrome the tab has above
   the shared table: the live region on the left and the attach control on the right. The
   `[data-document-status]:empty { display: none }` rule below already keeps the region out
   of the row when it has nothing to say, which is why the control is alone at the right
   end on a normal load. */
.documents-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.documents-head .document-attachments { margin: 0 0 0 auto; }

.document-attachments { margin: 12px 0; }
.document-attachment-list { list-style: none; padding: 0; margin: 8px 0; }
.document-attachment-list li { margin: 6px 0; }
[data-document-editor] { padding: 16px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-sm, 4px); display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
[data-document-editor][hidden], [data-document-details][hidden] { display: none; }
[data-document-editor] label { display: grid; gap: 6px; max-width: 100%; }
[data-document-editor] input, [data-document-editor] select { max-width: 100%; }
[data-document-status] { font-size: 13px; white-space: pre-wrap; }
[data-document-status]:empty { display: none; }
section[data-document-details] { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-sm, 4px); }
section[data-document-details] li { margin: 8px 0; }
section[data-document-details] button { margin: 0 8px 8px 0; }

.document-panel { min-width: 0; }
.document-panel .table-wrap { overflow-x: auto; }
