/* Compact attachment rows and a native upload disclosure in the card header. */
.reback .workspace-theme .document-panel { position:relative; min-width:0; margin:0; }
.reback .workspace-theme .document-panel > .card-head { min-height:60px; padding:12px 145px 12px 16px; margin:0; display:flex; align-items:center; border-bottom:1px solid var(--ws-border); }
.reback .workspace-theme .document-panel > .card-head h2 { margin:0; font-size:14px; font-weight:650; }
.reback .workspace-theme .document-panel :is(.document-upload-disclosure,.document-upload-shell) { margin:0; padding:0; border:0; }
.reback .workspace-theme .document-panel :is(.document-upload-disclosure,.document-upload-shell) > summary { position:absolute; right:14px; top:12px; display:inline-flex; align-items:center; gap:6px; min-height:36px; width:auto; padding:7px 10px; border:1px solid var(--ws-border); border-radius:7px; background:var(--ws-surface); color:var(--ws-accent); font-size:12px; font-weight:600; cursor:pointer; list-style:none; }
.reback .workspace-theme .document-panel summary::-webkit-details-marker { display:none; }
.reback .workspace-theme .document-panel :is(.document-upload-disclosure,.document-upload-shell) > summary::marker { content:''; }
.reback .workspace-theme .document-panel :is(.document-upload-disclosure,.document-upload-shell)[open] > summary { background:var(--ws-accent-soft); border-color:var(--ws-accent); }
.reback .workspace-theme .document-panel .document-upload { margin:0; padding:14px 16px; border-bottom:1px solid var(--ws-border); display:grid; gap:12px; }
.reback .workspace-theme .document-panel .document-dropzone { min-height:0; padding:14px; gap:8px; border-radius:8px; }
.reback .workspace-theme .document-panel .document-dropzone > strong { font-size:12px; }
.reback .workspace-theme .document-panel .document-dropzone > svg { display:none; }
.reback .workspace-theme .document-panel .document-upload-fields { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; margin:0; }
.reback .workspace-theme .document-panel .document-tag-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.reback .workspace-theme .document-panel .field { min-width:0; margin:0; gap:5px; }
.reback .workspace-theme .document-panel .field > label { font-size:12px; margin:0; }
.reback .workspace-theme .document-panel :is(.document-list,.document-list.list) { list-style:none; margin:0; padding:0; }
.reback .workspace-theme .document-panel .document-list-item { display:flex; align-items:center; gap:12px; padding:12px 16px; margin:0; min-height:0; border-bottom:1px solid var(--ws-border); }
.reback .workspace-theme .document-panel .document-list-item:last-child { border-bottom:0; }
.reback .workspace-theme .document-file-icon { --file-color:#475569; --file-bg:#f1f5f9; position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 34px; width:34px; height:38px; color:var(--file-color); vertical-align:middle; }
.reback .workspace-theme .document-file-icon > svg { display:block; width:30px; height:36px; }
.reback .workspace-theme .document-file-paper { fill:var(--file-bg); }
.reback .workspace-theme .document-file-kind { position:absolute; right:0; bottom:0; min-width:26px; padding:2px 3px; border-radius:3px; background:var(--file-color); color:#fff; text-align:center; font-size:12px; font-weight:750; line-height:1.3; letter-spacing:.02em; }
.reback .workspace-theme .document-file-icon--pdf { --file-color:#c53030; --file-bg:#fff1f1; }
.reback .workspace-theme .document-file-icon--word { --file-color:#245cc5; --file-bg:#edf3ff; }
.reback .workspace-theme .document-file-icon--spreadsheet { --file-color:#187344; --file-bg:#ecf8f0; }
.reback .workspace-theme .document-file-icon--presentation { --file-color:#b54a16; --file-bg:#fff4ec; }
.reback .workspace-theme .document-file-icon--image { --file-color:#7950b5; --file-bg:#f6f0ff; }
.reback .workspace-theme .document-file-icon--archive { --file-color:#926316; --file-bg:#fff8e6; }
.reback .workspace-theme .document-file-icon--audio { --file-color:#a02d74; --file-bg:#fff0f8; }
.reback .workspace-theme .document-file-icon--video { --file-color:#0d7584; --file-bg:#e9fafb; }
.reback .workspace-theme .document-file-icon--text { --file-color:#475569; --file-bg:#f1f5f9; }
.reback .workspace-theme .business-signed-file-heading { display:flex; align-items:center; gap:10px; min-width:0; }
.reback .workspace-theme .business-signed-file-heading > strong { min-width:0; overflow-wrap:anywhere; }
.reback .workspace-theme .document-panel .document-file-info { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.reback .workspace-theme .document-panel .document-file-info > .row-link { font-size:13px; line-height:1.45; font-weight:600; }
.reback .workspace-theme .document-panel .document-file-info > .small { font-size:12px; margin-top:3px; }
.reback .workspace-theme .document-panel .document-tags { display:inline-flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.reback .workspace-theme .document-panel .document-tags:empty { display:none; }
.reback .workspace-theme .document-panel .document-tags .pill { padding:2px 6px; font-size:12px; }
.reback .workspace-theme .document-panel .document-tag-editor { margin-top:4px; padding:0; border:0; font-size:12px; }
.reback .workspace-theme .document-panel .document-tag-editor > summary { width:fit-content; min-height:24px; font-size:12px; cursor:pointer; }
.reback .workspace-theme .document-panel .document-tag-editor form { display:grid; gap:8px; padding-top:10px; margin:0; }
.reback .workspace-theme .document-panel .document-file-actions { display:flex; flex:0 0 auto; align-items:center; gap:6px; flex-wrap:wrap; }
.reback .workspace-theme .document-panel .document-file-actions form { margin:0; }
.reback .workspace-theme .document-panel .document-file-actions .btn { min-height:32px; padding:6px 9px; font-size:12px; }
.reback .workspace-theme .document-panel .empty-state { min-height:0; padding:20px 16px; text-align:left; }
.reback .workspace-theme .document-panel .empty-state strong { font-size:13px; }
.reback .workspace-theme .document-panel .empty-state p { margin:4px 0 0; font-size:12px; }
@media(max-width:767px) {
 .reback .workspace-theme .document-panel > .card-head { min-height:64px; padding-left:12px; padding-right:130px; }
 .reback .workspace-theme .document-panel :is(.document-upload-disclosure,.document-upload-shell) > summary { top:10px; right:10px; min-height:44px; padding:8px; }
 .reback .workspace-theme .document-panel .document-upload { padding:12px; }
 .reback .workspace-theme .document-panel .document-list-item { padding:12px; align-items:start; flex-wrap:wrap; gap:9px; }
 .reback .workspace-theme .document-panel .document-file-info { flex-basis:calc(100% - 50px); }
 .reback .workspace-theme .document-panel .document-file-actions { margin-left:43px; }
 .reback .workspace-theme .document-panel :is(.document-file-actions .btn,.document-tag-editor > summary,.document-upload button) { min-height:44px; }
 .reback .workspace-theme .document-panel :is(.document-upload-fields,.document-tag-fields) { grid-template-columns:minmax(0,1fr); }
}
