/* Load drawer → Documents tab: list (table) view. */
#detail.detail-workspace .ws-doc-list-card,.ws-doc-list-card{background:transparent;padding:0;margin:6px 0 12px}
.ws-doc-list-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.ws-doc-list-header h3{margin:0;font-size:14px;font-weight:600;color:#1f2d3a}
.ws-doc-list-header h3 b{font-weight:700;margin-left:4px}
.detail-workspace .ws-doc-list-header .ws-doc-add{background:#fff;color:#2b3a48;border:1px solid #c9d3dc;border-radius:6px;padding:7px 14px;font-size:13px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.detail-workspace .ws-doc-list-header .ws-doc-add:hover{background:#f3f7fb;border-color:#9fb4c7}

.ws-doc-table-wrap{border:1px solid #d5dde5;border-radius:8px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-height:240px}
.ws-doc-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;color:#1f2d3a}
.ws-doc-table thead th{background:#f5f7f9;color:#5d6b78;font-weight:600;text-align:left;padding:10px 8px;border-bottom:1px solid #d5dde5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-doc-table thead th+th{border-left:1px solid #e3e8ed}
.ws-doc-table th.ws-doc-check,.ws-doc-table td.ws-doc-check{width:44px;text-align:center;padding:6px 0}
.ws-doc-table thead th:nth-child(2){width:34%}
.ws-doc-table thead th:nth-child(4){width:92px}
.ws-doc-table tbody td{padding:5px 8px;border-bottom:1px solid #edf0f3;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-doc-table tr.ws-document{cursor:pointer}
.ws-doc-table tr.ws-document:hover>td,.ws-doc-table tr.ws-doc-open>td{background:#f4f8fc}
.ws-doc-table tr.ws-document>td.ws-doc-check{border-right:1px solid #edf0f3}
.detail-workspace .ws-doc-table input[type=checkbox]{appearance:auto;accent-color:#2387e6;width:17px;height:17px;min-width:17px;padding:0;margin:0;cursor:pointer;vertical-align:middle}
.detail-workspace .ws-doc-table .ws-doc-type-toggle{background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;text-align:left;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-workspace .ws-doc-table .ws-doc-type-toggle:focus-visible,.ws-doc-table .ws-document-link:focus-visible{outline:2px solid #1484dc;outline-offset:2px;border-radius:3px}
.ws-doc-name .ws-doc-lock{display:inline-flex;vertical-align:middle;color:#5d6b78;margin-right:6px}
.ws-doc-name .ws-doc-lock.ws-doc-shared{color:#5d6b78}
.ws-doc-table .ws-document-link{color:#1f2d3a!important;text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 24px);vertical-align:middle;display:inline-block!important;overflow-wrap:normal}
.ws-doc-table .ws-document-link:hover{color:#1765b1!important;text-decoration:underline!important}
.ws-doc-date{color:#1f2d3a}
.ws-doc-empty td{color:#6b7a88;text-align:center;padding:24px 8px!important}

.ws-doc-details>td{background:#f8fafc;padding:4px 14px 12px!important;white-space:normal!important;border-bottom:1px solid #e3e8ed}
.ws-doc-details-body .ws-document-sharing{margin:8px 0}
.ws-doc-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.detail-workspace .ws-doc-detail-actions button{margin:0}

.ws-doc-table-footer{margin-top:auto;border-top:1px solid #d5dde5;padding:12px 14px;text-align:right;font-size:13px;color:#1f2d3a}
.ws-document-bulk.ws-document-bulk-idle{display:none}
.ws-doc-list-card .ws-document-bulk{margin:-4px 0 12px}
.ws-doc-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ws-doc-upload-heading h3{margin:0}
.ws-batch-upload[hidden]{display:none!important}
