/* Match the compact receipt/invoice list toolbar without changing intake hooks. */
#filesTab .manager-files-head{justify-content:flex-start;gap:6px 10px;flex-wrap:wrap;min-height:32px;min-width:0;margin:0 0 4px;padding:0}
#filesTab .manager-files-head h2{flex:0 0 auto;margin:0;white-space:nowrap}
#filesTab .manager-files-head label{display:flex;align-items:center;gap:5px;margin:0;white-space:nowrap;min-width:0}
#filesTab .manager-files-head input,#filesTab .manager-files-head select{box-sizing:border-box;width:136px;min-width:0;max-width:136px;height:28px;padding:4px 6px}
#filesTab .manager-files-head [data-files-search]{width:180px;max-width:180px}
#filesTab .manager-files-head [data-files-shipment]{width:140px;max-width:140px}
#filesTab .manager-files-head button{flex:0 0 auto;min-height:28px;padding:4px 9px;white-space:nowrap}
#filesTab .manager-files-drop{display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;padding:2px 6px;border:1px dashed #8ab6d6;border-radius:4px;background:#f5faff;font-size:12px}
#filesTab .manager-files-drop span{white-space:nowrap;color:#475467}
#filesTab .manager-files-drop.dragover{background:#dceeff;border-color:#087db5}
#filesTab .manager-files-channels{display:flex;gap:6px 16px;flex-wrap:wrap;margin:3px 0 5px;font-size:12px;overflow-wrap:anywhere}
#filesTab [data-files-status]{margin:4px 0;font-size:12px}
#filesTab [data-files-status]:empty{display:none}
@media(min-width:900px){
 #filesTab:not(.has-onec-detail)>.manager-onec-window-bar{float:right;margin:0 0 0 10px}
 #filesTab [data-files-list-view]>.manager-files-list-wrap{clear:both}
}
@media(max-width:700px){
 #filesTab .manager-files-head label{flex:1 1 170px}
 #filesTab .manager-files-head input,#filesTab .manager-files-head select{flex:1 1 0;width:0;max-width:none}
 #filesTab .manager-files-drop{flex:1 1 100%;flex-wrap:wrap}
 #filesTab .manager-files-drop span{white-space:normal}
}
/* The inbox uses the same table and badge primitives as supplier invoices. */
.manager-files-table{width:100%;border-collapse:collapse}
#filesTab .manager-files-table.onec-lite-table{width:100%;min-width:1280px;table-layout:fixed;font-size:inherit}
#filesTab .manager-files-table.onec-lite-table th:nth-child(1){width:11%}
#filesTab .manager-files-table.onec-lite-table th:nth-child(2){width:25%}
#filesTab .manager-files-table.onec-lite-table th:nth-child(3){width:21%}
#filesTab .manager-files-table.onec-lite-table th:nth-child(4){width:11%}
#filesTab .manager-files-table.onec-lite-table th:nth-child(5){width:10%}
#filesTab .manager-files-table.onec-lite-table th:nth-child(6){width:22%}
#filesTab .manager-files-table.onec-lite-table td{overflow-wrap:anywhere}
#filesTab .manager-files-table .manager-file-date{white-space:nowrap}
#filesTab .manager-files-table .manager-file-original{color:#667085}
#filesTab .manager-files-table .manager-file-name a{color:inherit;text-decoration:none;font-weight:700}
#filesTab .manager-files-table .manager-file-name a:hover{text-decoration:underline;color:#175cd3}
#filesTab .manager-files-table .manager-file-statuses{white-space:normal;line-height:1.25}
#filesTab .manager-files-table tr.manager-file-pending{background-image:repeating-linear-gradient(135deg,rgba(71,84,103,.08) 0 6px,transparent 6px 12px)}
#filesTab .manager-file-badge.is-green{border-color:#abefc6;background:#ecfdf3;color:#067647}
#filesTab .manager-file-badge.is-red{border-color:#fecdca;background:#fef3f2;color:#b42318}
#filesTab .manager-files-table tr:focus-visible{outline:2px solid #2b7bbb;outline-offset:-2px}
.manager-file-error{color:#b42222}.manager-file-main{padding:15px;background:#f8fbff;border:1px solid #d5e0ea}.manager-file-main p{margin:12px 0}.manager-files-tabs{display:flex;gap:3px;margin:12px 0}.manager-files-tabs button[aria-selected=true]{background:#007ab5;color:#fff}.manager-file-chat{background:#deedf5;min-height:180px;padding:15px;display:flex;flex-direction:column;gap:8px}.manager-file-chat .supplier-invoice-social-entry{max-width:85%;width:max-content}.manager-file-chat .supplier-invoice-social-message{background:white;border-radius:10px;padding:10px;box-shadow:0 1px 2px #b7cbdc}.manager-file-chat textarea{width:100%;min-height:70px}.manager-file-chat [data-file-chat-composer]{width:100%;margin-top:auto}.manager-file-chat .supplier-invoice-social-message-body{white-space:pre-wrap;overflow-wrap:anywhere}.manager-file-chat small{color:#6b879b}.manager-files-card-title{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.manager-files-card-title strong{flex:1}

/* The header launcher retains the normal tab routing and access checks. */
.manager-brand .manager-files-launcher{flex:0 0 auto;border:1px solid #b8c9dd;border-radius:4px;padding:6px 12px;font-size:12px;white-space:nowrap}.manager-brand .manager-files-launcher.active{background:#e6f3ff;border-color:#007ab5;color:#005b8b;box-shadow:inset 0 -2px 0 #007ab5}body.manager-access-loading .manager-files-launcher{display:none!important}
