/* ==========================================================================
   Organization Portal workspaces: Team & access, roles & permissions, Logs & monitoring.
   WaselOne design tokens (--rg-*) with fallbacks; logical properties for RTL.
   ========================================================================== */

/* ---------- shared chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip-muted { background: #eef2f6; color: #475569; }
.chip-info { background: #e0f2fe; color: #075985; }
.chip-warning { background: #fef3c7; color: #92400e; }
.chip-danger { background: #fee2e2; color: #991b1b; }
.chip-pending { background: #ede9fe; color: #5b21b6; }
.muted { color: var(--rg-text-muted, #64748b); }
.small { font-size: .8rem; }
.mono { font-family: var(--rg-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size: .82em; }
.nowrap { white-space: nowrap; }
.text-danger { color: #b91c1c; }
.btn-danger-outline { color: #b91c1c !important; border-color: #fca5a5 !important; }
.btn-danger-outline:hover:not(:disabled) { background: #fef2f2 !important; }
.btn-danger-text { color: #b91c1c !important; }

.status-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #eef2f6; color: #334155; white-space: nowrap; }
.status-chip.lg { font-size: .85rem; padding: 4px 12px; }
.status-active, .status-delivered, .status-accepted { background: #d1fae5; color: #065f46; }
.status-read { background: #dbeafe; color: #1e40af; }
.status-sent, .status-sending { background: #e0f2fe; color: #075985; }
.status-queued, .status-pending { background: #fef3c7; color: #92400e; }
.status-failed, .status-revoked { background: #fee2e2; color: #991b1b; }
.status-suspended, .status-expired { background: #f1f5f9; color: #64748b; }
.status-received { background: #ede9fe; color: #5b21b6; }

.role-chip { display: inline-flex; padding: 2px 10px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: #f1f5f9; color: #334155; }
.role-owner { background: #0b192c; color: #fff; }
.role-admin { background: #d1fae5; color: #065f46; }
.role-manager { background: #e0f2fe; color: #075985; }
.role-custom { background: #ede9fe; color: #5b21b6; }

/* ---------- page notices ---------- */
.team-notice { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.team-notice > span { flex: 1; }
.team-notice-close { background: none; border: 0; cursor: pointer; color: inherit; display: inline-flex; padding: 4px; }
.access-denied-card { padding: 32px; }

/* ---------- members ---------- */
.team-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.team-kpi { background: var(--rg-surface, #fff); border: 1px solid var(--rg-border, #e2e8f0); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.team-kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--rg-heading, #0b192c); }
.team-kpi-label { font-size: .78rem; color: var(--rg-text-muted, #64748b); }
.team-table-card { padding: 0 !important; overflow: hidden; }
.team-toolbar, .monitor-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rg-border, #e2e8f0); }
.team-search { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; padding: 0 12px; height: 38px; border: 1px solid var(--rg-border, #e2e8f0); border-radius: 8px; background: var(--rg-surface, #fff); color: var(--rg-text-muted, #64748b); }
.team-search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font: inherit; color: var(--rg-text, #0f172a); }
.team-search:focus-within { border-color: var(--rg-primary, #10b981); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.team-filter, .monitor-filters select.form-control { width: auto; min-width: 150px; height: 38px; }
.team-count { margin-inline-start: auto; font-size: .8rem; color: var(--rg-text-muted, #64748b); }
.team-invite-note { margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; font-size: .75rem; font-weight: 700; }
.member-name { font-weight: 600; color: var(--rg-heading, #0f172a); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member-email { font-size: .8rem; color: var(--rg-text-muted, #64748b); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions-col { text-align: end; }

/* ---------- role options (invite / change role) ---------- */
.role-options { display: grid; gap: 8px; }
.role-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rg-border, #e2e8f0); border-radius: 10px; cursor: pointer; background: var(--rg-surface, #fff); transition: border-color .15s, background .15s; }
.role-option:hover { border-color: #a7f3d0; }
.role-option.is-selected { border-color: var(--rg-primary, #10b981); background: rgba(16, 185, 129, .06); box-shadow: 0 0 0 1px var(--rg-primary, #10b981) inset; }
.role-option input { margin-top: 3px; accent-color: var(--rg-primary, #10b981); }
.role-option-body { display: grid; gap: 2px; }
.role-option-name { font-weight: 600; color: var(--rg-heading, #0f172a); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.role-option-desc { font-size: .8rem; color: var(--rg-text-muted, #64748b); }
.role-change-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.role-preview { position: sticky; top: 0; border: 1px solid var(--rg-border, #e2e8f0); border-radius: 12px; padding: 14px 16px; background: var(--rg-surface-muted, #f8fafc); display: grid; gap: 8px; }
.role-preview h4 { margin: 0 0 4px; font-size: .9rem; }
.role-preview-area { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--rg-border, #e2e8f0); }
.role-preview-area:last-child { border-bottom: 0; }
.role-preview-area.is-none { opacity: .55; }
.role-preview-title { font-weight: 600; font-size: .82rem; display: flex; justify-content: space-between; }
.role-preview-perms { font-size: .76rem; color: #047857; }
@media (max-width: 900px) { .role-change-layout { grid-template-columns: 1fr; } .role-preview { position: static; } }

/* ---------- invitation link ---------- */
.invite-ready { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .3); color: #065f46; margin-bottom: 16px; }
.invite-link-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 8px; }
.invite-link-row input { flex: 1; min-width: 0; }

/* ---------- teams ---------- */
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.team-card { display: flex; flex-direction: column; gap: 8px; padding: 18px !important; }
.team-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.team-card-head h3 { margin: 0; font-size: 1.02rem; }
.team-card-desc { margin: 0; color: var(--rg-text-muted, #64748b); font-size: .85rem; flex: 1; }
.team-card-foot { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--rg-border, #e2e8f0); padding-top: 10px; }
.team-card-foot .btn:first-child { margin-inline-end: auto; }
.team-add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.team-add-row select:first-child { flex: 1 1 280px; }
.team-role-select { width: auto; flex: 0 0 140px; }
.team-member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team-member-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rg-border, #e2e8f0); border-radius: 10px; }
.team-member-main { display: grid; flex: 1; min-width: 0; }

/* ---------- roles & permissions split workspace ---------- */
.access-split { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; height: calc(100dvh - 260px); min-height: 520px; }
.access-pane { display: flex; flex-direction: column; min-height: 0; background: var(--rg-surface, #fff); border: 1px solid var(--rg-border, #e2e8f0); border-radius: 14px; overflow: hidden; }
.access-pane-head { flex: 0 0 auto; display: grid; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rg-border, #e2e8f0); background: var(--rg-surface, #fff); }
.access-pane-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.access-pane-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--rg-heading, #0b192c); }
.access-new-role { margin-inline-start: auto; }
.access-pane-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; overscroll-behavior: contain; }
.access-role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.access-role { width: 100%; text-align: start; display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.access-role:hover { background: var(--rg-surface-muted, #f8fafc); }
.access-role.is-active { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .35); }
.access-role-name { font-weight: 600; color: var(--rg-heading, #0f172a); }
.access-role-meta { display: flex; gap: 10px; align-items: center; font-size: .74rem; color: var(--rg-text-muted, #64748b); }
.access-role-meta span { display: inline-flex; align-items: center; gap: 3px; }
.access-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; padding: 2px 6px; border-radius: 6px; background: #f1f5f9; color: #475569; unicode-bidi: isolate; }
.access-counts { margin-inline-start: auto; font-size: .8rem; font-weight: 600; color: #047857; }
.access-role-desc { margin: 0; font-size: .82rem; color: var(--rg-text-muted, #64748b); }
.access-role-name-input { flex: 1 1 240px; max-width: 360px; font-weight: 600; }
.access-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.access-filters input { flex: 1 1 220px; }
.access-filters select { width: auto; min-width: 160px; }
.access-list-toggle { display: none; }
.access-readonly, .access-warning { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .84rem; }
.access-readonly { background: #f1f5f9; color: #334155; }
.access-readonly .btn { margin-inline-start: auto; }
.access-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.access-group { border: 1px solid var(--rg-border, #e2e8f0); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.access-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; background: var(--rg-surface-muted, #f8fafc); }
.access-group-toggle { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: start; }
.access-group-title { font-weight: 700; }
.access-group-count { font-size: .78rem; color: var(--rg-text-muted, #64748b); }
.access-chevron { transition: transform .15s; }
[dir="rtl"] .access-chevron { transform: scaleX(-1); }
.access-group.is-open .access-chevron { transform: rotate(90deg); }
.access-group-actions { display: flex; gap: 4px; }
.access-perms { list-style: none; margin: 0; padding: 0; }
.access-perm { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name code badges" "desc desc desc"; gap: 2px 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--rg-border, #eef2f6); }
.access-perm.is-changed { background: rgba(124, 58, 237, .04); }
.access-perm.is-dangerous .access-perm-name { color: #9a3412; }
.access-perm .perm-switch { grid-area: name; }
.access-perm .access-code { grid-area: code; }
.access-perm-badges { grid-area: badges; display: flex; gap: 4px; }
.access-perm-desc { grid-area: desc; font-size: .78rem; color: var(--rg-text-muted, #64748b); padding-inline-start: 48px; }
.access-perm-name { font-weight: 600; font-size: .88rem; }
.perm-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.perm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perm-switch-track { position: relative; flex: 0 0 36px; height: 20px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.perm-switch-track::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.perm-switch input:checked + .perm-switch-track { background: var(--rg-primary, #10b981); }
.perm-switch input:checked + .perm-switch-track::after { inset-inline-start: 18px; }
.perm-switch input:focus-visible + .perm-switch-track { outline: 2px solid var(--rg-primary, #10b981); outline-offset: 2px; }
.perm-switch input:disabled + .perm-switch-track { opacity: .55; cursor: not-allowed; }
.access-actionbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--rg-border, #e2e8f0); background: var(--rg-surface-muted, #f8fafc); }
.access-actionbar.is-dirty { background: #f5f3ff; border-top-color: #ddd6fe; }
.access-dirty-text { margin-inline-end: auto; font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; color: var(--rg-text-muted, #64748b); }
.access-actionbar.is-dirty .access-dirty-text { color: #5b21b6; font-weight: 600; }
@media (max-width: 960px) {
    .access-split { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .access-roles { display: none; }
    .access-split.is-list-open .access-roles { display: flex; max-height: 50dvh; }
    .access-list-toggle { display: inline-flex; }
    .access-detail { min-height: 70dvh; }
}

/* ---------- monitor ---------- */
.monitor-live { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; cursor: pointer; }
.monitor-live input { accent-color: var(--rg-primary, #10b981); }
.monitor-range { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px !important; margin-bottom: 16px; }
.monitor-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--rg-border, #e2e8f0); background: var(--rg-surface, #fff); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--rg-text, #334155); }
.chip-btn.is-active { background: #0b192c; border-color: #0b192c; color: #fff; }
.monitor-dates { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.monitor-dates label { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--rg-text-muted, #64748b); }
.monitor-dates input { width: auto; height: 36px; }
.tab-badge-danger { background: #fee2e2 !important; color: #991b1b !important; }
.monitor-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.monitor-kpi { display: grid; gap: 2px; text-align: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rg-border, #e2e8f0); background: var(--rg-surface, #fff); font: inherit; color: inherit; border-top: 3px solid #cbd5e1; }
.monitor-kpi.is-link { cursor: pointer; }
.monitor-kpi.is-link:hover { box-shadow: 0 6px 16px -8px rgba(11, 25, 44, .25); }
.monitor-kpi.tone-ok { border-top-color: #10b981; }
.monitor-kpi.tone-info { border-top-color: #3b82f6; }
.monitor-kpi.tone-bad { border-top-color: #ef4444; }
.kpi-label { font-size: .76rem; color: var(--rg-text-muted, #64748b); font-weight: 600; }
.kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--rg-heading, #0b192c); }
.kpi-sub { font-size: .74rem; color: var(--rg-text-muted, #64748b); }
.monitor-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.monitor-grid h3 { margin: 0 0 12px; font-size: .95rem; }
.monitor-grid h3.mt { margin-top: 20px; }
@media (max-width: 1100px) { .monitor-grid { grid-template-columns: 1fr; } }
.day-bars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding: 8px 0 22px; border-bottom: 1px solid var(--rg-border, #e2e8f0); }
.day-bar { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 4px; }
.day-stack { width: 100%; max-width: 28px; min-height: 2px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; background: #f1f5f9; }
.day-stack .seg { display: block; min-height: 0; }
.day-label { position: absolute; bottom: -20px; font-size: .62rem; color: var(--rg-text-muted, #94a3b8); white-space: nowrap; }
.seg-sent { background: #38bdf8; }
.seg-delivered { background: #10b981; }
.seg-read { background: #3b82f6; }
.seg-failed { background: #ef4444; }
.seg-received { background: #a78bfa; }
.seg-queued, .seg-sending { background: #f59e0b; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .76rem; color: var(--rg-text-muted, #64748b); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-list, .error-list, .related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar-row, .error-row, .related-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: start; }
.bar-row:hover, .error-row:hover, .related-row:hover { background: var(--rg-surface-muted, #f8fafc); }
.bar-row .status-chip { flex: 0 0 100px; justify-content: center; }
.bar-track { flex: 1; height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.bar-count { font-weight: 700; font-size: .84rem; min-width: 48px; text-align: end; }
.error-text { flex: 1; font-size: .82rem; color: #991b1b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-table-card { padding: 0 !important; overflow: hidden; }
.monitor-table td { vertical-align: middle; }
.monitor-table tr.is-clickable { cursor: pointer; }
.monitor-table tr.is-clickable:hover td { background: var(--rg-surface-muted, #f8fafc); }
.monitor-table tr.is-clickable:focus-visible { outline: 2px solid var(--rg-primary, #10b981); outline-offset: -2px; }
.cell-clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; }
.dir-outgoing { color: #0369a1; }
.dir-incoming { color: #6d28d9; }
.segmented { display: inline-flex; border: 1px solid var(--rg-border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; background: var(--rg-surface, #fff); padding: 8px 14px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--rg-text, #334155); }
.segmented button + button { border-inline-start: 1px solid var(--rg-border, #e2e8f0); }
.segmented button.is-active { background: #0b192c; color: #fff; }

/* ---------- detail panels ---------- */
.detail-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.detail-error { margin-bottom: 14px; }
.detail-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0 0 18px; font-size: .86rem; }
.detail-facts dt { color: var(--rg-text-muted, #64748b); font-weight: 600; }
.detail-facts dd { margin: 0; word-break: break-word; }
.copy-line { display: flex; align-items: center; gap: 6px; }
.modal-body h4 { font-size: .9rem; margin: 18px 0 10px; }
.status-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.status-timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 7px; width: 2px; background: var(--rg-border, #e2e8f0); }
.status-timeline .step { position: relative; display: grid; grid-template-columns: 16px 120px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 6px 0; }
.step-dot { width: 16px; height: 16px; border-radius: 50%; background: #cbd5e1; border: 3px solid var(--rg-surface, #fff); box-shadow: 0 0 0 1px #cbd5e1; z-index: 1; }
.step.step-delivered .step-dot { background: #10b981; box-shadow: 0 0 0 1px #10b981; }
.step.step-read .step-dot { background: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.step.step-sent .step-dot { background: #38bdf8; box-shadow: 0 0 0 1px #38bdf8; }
.step.step-failed .step-dot { background: #ef4444; box-shadow: 0 0 0 1px #ef4444; }
.step.step-received .step-dot { background: #a78bfa; box-shadow: 0 0 0 1px #a78bfa; }
.step-status { font-weight: 700; font-size: .86rem; }
.step-time { color: var(--rg-text-muted, #64748b); }
.step-detail { grid-column: 2 / -1; font-size: .8rem; color: #991b1b; }
.json-head { display: flex; align-items: center; justify-content: space-between; }
.json-block { margin: 0; padding: 12px 14px; max-height: 420px; overflow: auto; border-radius: 10px; background: #0b192c; color: #e2e8f0; font-size: .78rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; text-align: start; }
.audit-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .audit-diff { grid-template-columns: 1fr; } .detail-facts { grid-template-columns: 1fr; } }

/* ---------- nav skeleton while permissions load ---------- */
.nav-skeleton { display: grid; gap: 10px; padding: 8px 4px; }
.nav-skeleton-row { display: block; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.branch-pill { border-color: #6366f1 !important; color: #4338ca !important; font-weight: 500; }
.skeleton-cell { padding: 0 !important; }

/* Radio cards and fieldsets inside forms: the theme styles every form input as a full-width block. */
.role-option { display: flex !important; flex-direction: row !important; align-items: flex-start; }
.role-option input[type="radio"] { width: auto !important; min-width: 0; height: auto; flex: 0 0 auto; display: inline-block; margin: 3px 0 0; box-shadow: none; padding: 0; }
fieldset.form-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.form-group > legend { padding: 0; margin-bottom: 8px; float: none; width: auto; }
