/* 權限管理的分頁、成員與拒絕提示；只影響指定元件。 */
.permui-organization nav[aria-label="組織與權限分頁"] {overflow-x:auto; overscroll-behavior-x:contain; max-width:100%;}
.permui-organization nav[aria-label="組織與權限分頁"] button {flex-shrink:0; white-space:nowrap;}
.permui-organization .overflow-x-auto>button {flex-shrink:0; white-space:nowrap;}
.permui-grant-table {max-width:100%; overflow-x:auto;}
.permui-grant-table table {min-width:720px!important; table-layout:auto!important;}
.permui-grant-table th {white-space:nowrap; word-break:normal;}
.permui-grant-table td {overflow-wrap:anywhere;}
.permui-loading {padding:32px 20px; min-height:160px; color:#475569;}
.permui-readonly {font-size:12px;color:#64748b;display:block;width:100%;text-align:right;white-space:normal;}
.permui-chat-denied {margin:40px auto; padding:24px; width:min(680px,calc(100% - 32px)); border:1px solid #d6b273; border-radius:12px; background:#fffaf0; color:#422f14;}
.permui-chat-denied p:first-child {font-size:18px;font-weight:600;margin-bottom:12px;}
.permui-chat-denied textarea {display:block;width:100%;padding:12px;margin-top:20px;border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9;color:#64748b;cursor:not-allowed;}
@media(max-width:640px){
 .permui-organization {padding-left:16px!important;padding-right:16px!important;}
 .permui-members .overflow-x-auto {overflow-x:visible;padding:12px;}
 .permui-member-table {min-width:0!important; width:100%; border:0;overflow:visible;}
 .permui-member-table>div:first-child {display:none!important;}
 .permui-member-table>div:last-child {display:grid;gap:12px;border:0;}
 .permui-member-row {display:flex!important;flex-wrap:wrap;gap:10px!important;padding:16px!important;border:1px solid #cbd5e1!important;border-radius:12px;background:#fff;}
 .permui-member-row>div:first-child {width:100%;min-width:0;}
 .permui-member-row>div:first-child .truncate {white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;}
 .permui-member-row>div:last-child {width:100%;justify-content:flex-end;flex-wrap:wrap;padding-top:8px;border-top:1px solid #e2e8f0;}
 .permui-member-row .ant-space-item {flex-shrink:0;}
 .permui-organization .ant-modal-title {white-space:normal;overflow-wrap:anywhere;}
 .permui-readonly {text-align:left;}
 .permui-denied-layout>.ant-layout-sider {display:none!important;}
 .permui-denied-layout>.ant-layout {min-width:0;width:100%;}
}
.dark .permui-member-row{background:#0f172a;}
