.permission-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;background:linear-gradient(110deg,#effaf5,#f2f4ff);border:1px solid #e5edf1;border-radius:10px;margin-bottom:12px}.permission-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.permission-toolbar label{font-size:10px;font-weight:700;color:#53647a}.role-preset{font-size:9px;color:#7f8ba0}.permission-lock{display:flex;align-items:center;gap:11px;padding:12px 14px;background:#eef9f3;border:1px solid #dceddf;border-radius:9px;margin:0 0 12px}.permission-lock b{display:block;font-size:11px;color:#28715b}.permission-lock small{display:block;color:#71877f;font-size:9px;line-height:1.5;margin-top:4px}.lock-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#daf2e5;color:#278368;flex:none}.permission-table-wrap{max-height:63vh;overflow:auto;border:1px solid #e8edf5;border-radius:9px;background:white}.permission-table{min-width:1040px}.permission-table th{position:sticky;top:0;z-index:1;background:#f5f8fc;padding:10px 8px;text-align:center}.permission-table th:first-child{text-align:left;min-width:245px}.permission-table td{padding:8px;text-align:center;border-bottom:1px solid #f0f2f6}.permission-table td:first-child{text-align:left}.permission-table td:first-child b{display:block;color:#35465d;font-size:10px}.permission-table td:first-child small{display:block;margin-top:3px;color:#9aa5b2;font-size:8px}.permission-toggle{min-width:73px;border:1px solid transparent;border-radius:6px;padding:5px 6px;font:600 8px 'DM Sans';transition:transform .14s,box-shadow .14s}.permission-toggle:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 3px 8px #36496717}.permission-toggle.grant{background:#e6f7ee;border-color:#d6efdf;color:#207d5b}.permission-toggle.revoke{background:#fff0ef;border-color:#f3dfdc;color:#b86060}.permission-toggle.is-default{background:#f1f4f8;border-color:#e7ebf0;color:#728096}.permission-toggle:disabled{cursor:default;opacity:.85}.permission-legend{display:flex;gap:16px;flex-wrap:wrap;margin:12px 2px 0;color:#79879a;font-size:9px}.permission-legend span{display:flex;align-items:center;gap:6px}.legend-swatch{width:9px;height:9px;border-radius:3px;background:#e6f7ee}.legend-swatch.default{background:#f1f4f8}.legend-swatch.allow{background:#e6f7ee}.legend-swatch.deny{background:#fff0ef}.permission-disclaimer{color:#8b96a6;font-size:9px;line-height:1.6;margin:12px 2px 0}.tenant-card{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eff2f6}.tenant-card:last-child{border-bottom:0}.tenant-card.chooser{width:100%;text-align:left;background:white;border:1px solid #e8edf4;border-radius:9px;padding:11px;margin:8px 0;transition:background .15s,border-color .15s}.tenant-card.chooser:hover{background:#f5fbf8;border-color:#b9e5d7}.tenant-avatar{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#e3f6ed,#e9edff);color:#51799b;display:grid;place-items:center;font-weight:700;font-size:10px;flex:none}.tenant-copy{display:grid;gap:4px;flex:1;min-width:0}.tenant-copy b{font-size:10px;color:#374860}.tenant-copy small{font-size:9px;color:#8995a5}.tenant-inline{display:flex;align-items:center;gap:9px}.tenant-inline b{font-size:10px;color:#32445c}.tenant-chooser{max-height:360px;overflow:auto}.plan-card{display:flex;flex-direction:column;align-items:flex-start}.plan-card h2{font:700 18px Manrope;margin:12px 0 5px;color:#2d3d56}.plan-card p,.plan-card li{font-size:9px;line-height:1.55;color:#7f8ba0}.plan-card ul{padding-left:16px;min-height:60px}.plan-card .btn{margin-top:auto}.reject-link{color:#bd6c6b}.reject-link:hover{color:#a7484d}.permission-table-wrap+ .permission-legend{padding-bottom:4px}
@media(max-width:700px){.permission-toolbar{align-items:flex-start;flex-direction:column}.permission-toolbar>div{align-items:flex-start;flex-direction:column}.permission-table-wrap{max-height:55vh}.tenant-card{flex-wrap:wrap}.tenant-card .filter-button{margin-left:43px}}

/* Company tenant management actions */
.tenant-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.tenant-actions .table-link{padding:4px 0}

/* Master account company and user administration */
.admin-logo-preview{display:flex;align-items:center;gap:12px;margin:8px 0 12px;color:var(--muted,#64748b);font-size:12px}
.admin-logo-preview img{width:52px;height:52px;object-fit:contain;border:1px solid var(--border,#e2e8f0);border-radius:12px;background:#fff;padding:4px}
.admin-logo-preview .tenant-avatar{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px}
.admin-users-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 16px;color:var(--muted,#64748b);font-size:12px}
.admin-users-loading{padding:22px 0;color:var(--muted,#64748b)}
.admin-users-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--border,#e2e8f0);border-radius:12px}
.admin-users-table{width:100%;border-collapse:collapse;min-width:640px}
.admin-users-table th,.admin-users-table td{padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--border,#e2e8f0);font-size:12px}
.admin-users-table th{font-size:10px;letter-spacing:.06em;color:var(--muted,#64748b);background:var(--panel-soft,#f8fafc)}
.admin-users-table tr:last-child td{border-bottom:0}
.admin-users-table td:first-child{min-width:185px}
.admin-users-table td:first-child b,.admin-users-table td:first-child small{display:block}
.admin-users-table td:first-child small{margin-top:3px;color:var(--muted,#64748b);overflow-wrap:anywhere}
.owner-user-badge{display:inline-block;margin-top:5px;padding:3px 6px;border-radius:5px;background:#eaf4ff;color:#225d93;font-size:9px;font-weight:700;letter-spacing:.04em}
.status-muted{background:#f1f5f9;color:#64748b}
.admin-checkbox-label{display:flex;align-items:center;gap:9px;font-weight:600}
.admin-checkbox-label input{width:16px;height:16px}
.admin-user-meta{padding:10px 12px;border:1px solid var(--border,#e2e8f0);border-radius:9px;color:var(--muted,#64748b);font-size:12px;overflow-wrap:anywhere}
@media(max-width:680px){.admin-users-toolbar{align-items:flex-start;flex-direction:column}.tenant-actions{flex-wrap:wrap;gap:8px}.admin-users-table{min-width:560px}}

/* Tenant white-label theme variables; disabled tenants retain Medora defaults. */
.btn-primary { background: var(--tenant-primary, #2563eb); border-color: var(--tenant-primary, #2563eb); }
.nav-item.active { color: var(--tenant-primary, #2563eb); }

.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
