.portal-storage-status[role="button"] { cursor:pointer; border-radius:8px; transition:background .15s; }
.is-viewer .suite-registration-entry,.portal-auth-pending .suite-registration-entry,.portal-unauthenticated .suite-registration-entry { display:none; }
.suite-registration-dialog { width:min(1100px,96vw); height:92vh; max-height:92vh; padding:0; border:1px solid #dce3eb; border-radius:12px; overflow:hidden; }
.suite-registration-dialog[open] { display:flex; flex-direction:column; }
.suite-registration-dialog::backdrop { background:#20352a77; }
.suite-registration-dialog header { display:flex; flex:0 0 auto; justify-content:space-between; align-items:center; padding:12px 18px; border-bottom:1px solid #dce3eb; font:13px 'Microsoft JhengHei',sans-serif; }
.suite-registration-dialog header button { width:30px; height:30px; border:1px solid #dce3eb; border-radius:6px; background:white; font-size:18px; cursor:pointer; }
.suite-registration-dialog iframe { flex:1; width:100%; min-height:0; border:0; }
.portal-storage-status[role="button"]:hover { background:#edf5f0; }
.portal-storage-status[role="button"]:focus-visible { outline:2px solid #258450; outline-offset:4px; }
.file-manager { width:min(1160px,94vw); max-width:94vw; max-height:88vh; padding:0; border:1px solid #dce3eb; border-radius:14px; background:#fff; color:#253247; box-shadow:0 18px 60px #152c2530; font:13px/1.5 "Microsoft JhengHei",sans-serif; }
.file-manager::backdrop { background:#20352a66; }
.file-manager .fm-icon { width:30px; height:30px; padding:6px; }
.file-manager .fm-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.document-preview-dialog,.document-checklist-dialog { width:min(1050px,94vw); max-height:90vh; padding:0; border:1px solid #dce3eb; border-radius:12px; font:13px 'Microsoft JhengHei',sans-serif; color:#29473b; }
.document-preview-dialog::backdrop,.document-checklist-dialog::backdrop { background:#20352a77; }
.document-preview-dialog header,.document-checklist-dialog header { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #dce3eb; background:#f8faf9; }
.document-preview-dialog iframe { width:100%; height:76vh; border:0; }
.document-preview-dialog button,.document-checklist-dialog button,.document-preview-dialog a { padding:6px 9px; border:1px solid #dce3eb; border-radius:6px; background:#fff; color:#29473b; font:inherit; cursor:pointer; text-decoration:none; }
.document-preview-dialog header button,.document-checklist-dialog header button { margin-left:8px; font-size:18px; }
.document-preview-dialog header a { display:inline-flex; vertical-align:middle; }
.document-preview-dialog header a svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.document-checklist-dialog p { margin:14px 18px; color:#738391; font-size:12px; line-height:1.6; }
.document-checklist-dialog [data-content] { padding:0 18px 18px; max-height:66vh; overflow:auto; }
.document-checklist-dialog section { padding:10px 0; border-bottom:1px solid #e6ece8; }
.document-checklist-dialog h4 { margin:0 0 8px; font-size:13px; }
.document-checklist-dialog [data-content] button { display:block; margin:7px 0; max-width:100%; text-align:left; overflow-wrap:anywhere; }
.document-checklist-dialog .provided { color:#23854c; }.document-checklist-dialog .pending { color:#9e742b; }
.crm-client-name { border:0; padding:0; background:none; color:#174d3c; text-align:left; font:600 13px 'Microsoft JhengHei',sans-serif; cursor:pointer; text-decoration:underline; text-decoration-color:#b5cbbf; text-underline-offset:3px; }
.crm-client-name:hover { color:#23854c; }
.client-document-heading,.client-document-file,.client-document-toolbar { display:flex; align-items:center; gap:8px; }
.client-document-heading { justify-content:space-between; }
.client-document-heading h4 { margin:0; }
.document-checklist-dialog [data-content] .client-document-file button:first-child { flex:1; }
.document-checklist-dialog [data-content] .fm-icon { display:inline-flex; flex:0 0 30px; width:30px; height:30px; padding:6px; margin:0; align-items:center; justify-content:center; }
.document-checklist-dialog .fm-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
.document-checklist-dialog .fm-upload-form[hidden] { display:none; }
.fm-upload-form { display:flex; gap:12px; flex-wrap:wrap; padding:14px 22px; background:#f4f8f5; border-block:1px solid #dce3eb; }
.fm-upload-form[hidden] { display:none; }
.fm-upload-form label { display:grid; gap:4px; font-size:12px; }
.fm-upload-form input,.fm-upload-form select,.fm-filename input { max-width:100%; padding:7px; border:1px solid #cfded4; border-radius:6px; font:inherit; }
.fm-upload-form small { flex-basis:100%; color:#728079; }
.fm-filename small { display:block; color:#728079; font-size:11px; overflow-wrap:anywhere; }
.file-manager-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; border-bottom:1px solid #dce3eb; background:#f8faf9; }
.file-manager h2 { margin:0; font-size:18px; }
.file-manager-header p { margin:4px 0 0; font-size:12px; color:#728079; }
.file-manager-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:16px 22px 8px; }
.file-manager-toolbar input[type="search"] { flex:1; min-width:220px; }
.file-manager-toolbar input[type="search"],.file-manager-toolbar select { height:36px; padding:6px 10px; border:1px solid #dce3eb; border-radius:8px; background:#fafbfc; color:inherit; font:inherit; }
.file-manager-toolbar label { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:12px; }
.file-manager-toolbar input[type="checkbox"] { width:15px; height:15px; accent-color:#23854c; }
.file-manager-message { margin:0; padding:0 22px 8px; color:#557269; min-height:22px; }
.file-manager-table-wrap { max-height:55vh; overflow:auto; margin:0 22px; border:1px solid #dce3eb; border-radius:8px; }
.file-manager table { width:100%; border-collapse:collapse; text-align:left; }
.file-manager th { position:sticky; top:0; background:#edf2f5; font-size:11px; font-weight:600; color:#60718a; z-index:1; }
.file-manager td,.file-manager th { padding:11px 12px; border-bottom:1px solid #e6ece8; vertical-align:middle; }
.file-manager td:nth-child(4),.file-manager td:nth-child(5) { white-space:nowrap; font-size:11px; }
.file-manager tr:last-child td { border-bottom:0; }
.file-manager tbody tr:hover { background:#fafcfb; }
.file-manager a { color:#276a49; text-decoration:none; }
.file-manager a:hover { text-decoration:underline; }
.fm-filename { min-width:160px; max-width:260px; overflow-wrap:anywhere; }
.fm-owner { min-width:190px; max-width:260px; overflow-wrap:anywhere; }
.fm-owner small { display:block; margin-top:4px; color:#738391; font-size:10px; }
.fm-version { display:block; margin-top:4px; font-size:10px; color:#728079; }
.fm-actions { display:flex; gap:5px; white-space:nowrap; }
.file-manager .fm-button { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:4px 9px; border:1px solid #dce3eb; border-radius:7px; background:#fff; color:#53665a; cursor:pointer; font:12px/1.3 "Microsoft JhengHei",sans-serif; text-decoration:none; }
.file-manager .fm-button:hover { background:#f1f7f2; border-color:#b9d4c0; }
.file-manager .fm-danger { color:#a34b4b; }
.file-manager .fm-danger:hover { background:#fff4f4; border-color:#e3baba; }
.file-manager .fm-button:disabled { opacity:.5; cursor:wait; }
.file-manager-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:14px 22px; color:#728079; font-size:11px; }
@media(max-width:760px) { .file-manager-header,.file-manager-toolbar,.file-manager-footer { padding-left:12px; padding-right:12px; } .file-manager-table-wrap { margin:0 12px; } .file-manager-toolbar input[type="search"] { flex-basis:100%; } .file-manager-table-wrap table { min-width:850px; } .portal-shell--admin .portal-sidebar-bottom .portal-storage-status[role="button"] { display:block; position:fixed; bottom:38px; left:8px; width:155px; background:#fff; padding:8px; border:1px solid #dce3eb; z-index:90; } .portal-shell--admin .portal-sidebar-bottom .portal-storage-status[role="button"] .portal-storage-meter { margin-top:5px; } .portal-shell--admin .portal-sidebar-bottom .portal-storage-status[role="button"] small { display:none; } }
.file-manager .fm-sort-heading{display:flex;align-items:center;gap:5px;background:transparent;border:0;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer}.file-manager td:nth-child(4){white-space:pre-line;line-height:1.6}
