.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm {
  width: 14px;
  height: 14px;
}
.icon-lg {
  width: 20px;
  height: 20px;
}
.muted {
  color: var(--text-muted);
}
.secondary {
  color: var(--text-secondary);
}
.accent {
  color: var(--accent);
}
.success {
  color: var(--success);
}
.danger {
  color: var(--danger);
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 1000;
  padding: 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  transform: none;
}
.btn {
  height: var(--control-height);
  padding: 0 var(--space-3);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--surface);
  color: var(--text-primary);
}
.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.btn-danger {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}
.btn-icon {
  width: var(--control-height);
  padding: 0;
  flex-shrink: 0;
}
.btn-full {
  width: 100%;
}
.btn-link {
  padding: 0;
  height: auto;
  color: var(--text-secondary);
  border: 0;
  background: none;
  font-size: var(--text-sm);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}
.btn-link:hover {
  color: var(--accent);
}
.button-group,
.actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.spinning {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label,
.field-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.field-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-input);
  color: var(--text-primary);
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.textarea {
  height: 136px;
  padding: var(--space-3);
  line-height: 1.7;
  resize: vertical;
  min-height: 100px;
}
.input[readonly] {
  color: var(--text-secondary);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > .icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
}
.input-icon > .input {
  padding-left: var(--space-8);
}
.input-icon > kbd {
  position: absolute;
  right: 10px;
  color: var(--text-subtle);
  font-size: 10px;
  line-height: 17px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}
.select {
  appearance: auto;
}
.checkbox {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-error {
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-hover);
  border-radius: var(--radius-md);
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-secondary);
  background: var(--surface-raised);
  white-space: nowrap;
}
.badge-status {
  border: 0;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 5px 8px;
}
.badge-success {
  color: var(--success);
  background: var(--success-soft);
}
.badge-warning {
  color: var(--warning);
  background: var(--warning-soft);
}
.badge-neutral {
  color: var(--text-secondary);
  background: var(--neutral-soft);
}
.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-dot {
  width: 6px;
  height: 6px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  flex-shrink: 0;
}
.avatar-lg {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  font-size: var(--text-section);
}
.avatar-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}
.tabs {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 42px;
  overflow-x: auto;
  overflow-y: hidden;
}
.tab {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
  padding: 0 0 13px;
  margin-bottom: -1px;
}
.tab[aria-selected="true"] {
  color: var(--text-primary);
  border-color: var(--accent);
}
.tab:hover {
  color: var(--text-primary);
}
.tab-count {
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 5px;
}
.segmented {
  display: flex;
  background: var(--background);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
}
.segment {
  border: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 5px;
  height: 27px;
  font-size: var(--text-xs);
}
.segment[aria-pressed="true"] {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.segment:hover {
  color: var(--text-primary);
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.section-head p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 5px;
}
.panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--background);
  overflow: hidden;
}
.panel-pad {
  padding: var(--space-6);
}
.panel-heading {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.panel-heading p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}
.separator {
  height: 1px;
  background: var(--border-subtle);
  border: 0;
  margin: var(--space-6) 0;
}
.info-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.info-note > .icon {
  margin-top: 2px;
  color: var(--text-muted);
}
.info-note-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.info-note-success {
  background: var(--success-soft);
  color: var(--success);
}
.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-primary);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: var(--text-sm);
  text-align: left;
}
.data-table th {
  height: 39px;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  background: var(--sidebar-secondary);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: var(--space-5);
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: var(--space-5);
}
.data-table td {
  height: var(--row-height);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  transition: background var(--transition);
}
.data-table tbody tr:hover {
  background: var(--surface-raised);
}
.data-table .col-check {
  width: 36px;
  padding-right: 0;
}
.data-table .col-actions {
  text-align: right;
}
.instance-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 500;
}
.instance-name small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: 5px;
}
.instance-name:hover .instance-title {
  color: var(--accent);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--text-xs);
  min-height: 46px;
}
.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.table-toolbar .input-icon {
  max-width: 270px;
  flex: 1;
}
.table-filters {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.table-filters .select {
  width: auto;
  min-width: 140px;
}
.selected-count {
  color: var(--accent);
  font-size: var(--text-sm);
}
.empty-state {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 206px;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.empty-state h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 270px;
  line-height: 1.7;
}
.empty-state .btn {
  margin-top: var(--space-5);
}
.skeleton {
  height: 14px;
  border-radius: 4px;
  background: var(--surface);
  animation: breathe 1.5s ease-in-out infinite;
}
.skeleton-line {
  margin: 12px 0;
  width: 70%;
}
.skeleton-short {
  width: 40%;
}
@keyframes breathe {
  50% {
    opacity: 0.4;
  }
}
.dropdown-wrap {
  position: relative;
}
.dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  min-width: 175px;
  padding: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--text-secondary);
  text-align: left;
  font-size: var(--text-sm);
}
.dropdown-item:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.dropdown-item.danger {
  color: var(--danger);
}
.dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: 4px;
}
.dropdown-fixed {
  position: fixed;
  top: auto;
  right: auto;
  z-index: 60;
}
.modal {
  color: var(--text-primary);
  background: var(--sidebar-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow-modal);
}
.modal::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(3px);
}
.modal-wide {
  width: min(640px, calc(100vw - 32px));
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.modal-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--accent);
}
.modal-header h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.modal-header p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.7;
}
.modal-header .btn-icon {
  margin-top: -5px;
  margin-right: -8px;
}
.modal-body {
  padding: var(--space-6);
}
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  background: var(--surface-raised);
}
.modal-footer .field-note {
  margin-right: auto;
  align-self: center;
}
.modal [role="alert"]:empty {
  display: none;
}
.modal [role="alert"] {
  margin-bottom: var(--space-4);
}
.toast-host {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 100;
  max-width: min(400px, calc(100vw - 32px));
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.toast > .icon {
  color: var(--success);
  margin-top: 2px;
}
.toast-error > .icon {
  color: var(--danger);
}
.toast .btn-icon {
  height: 22px;
  width: 22px;
  margin: -2px -4px -2px auto;
}
.switch-row {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.switch-row:last-child {
  border-bottom: 0;
}
.switch-row strong {
  display: block;
  font-weight: 500;
  font-size: var(--text-base);
  margin-bottom: 5px;
}
.switch-row p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 450px;
}
.switch {
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-hover);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch-mark {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-left: 2px;
  pointer-events: none;
  transition:
    transform var(--transition),
    background var(--transition);
}
.switch:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .switch-mark {
  background: var(--on-accent);
  transform: translateX(12px);
}
.switch:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.code-block {
  background: var(--surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.code-block pre {
  margin: 0;
  padding: var(--space-5);
  font-size: var(--text-xs);
  line-height: 1.95;
  color: var(--text-secondary);
  overflow-x: auto;
  tab-size: 2;
}
.code-key {
  color: var(--accent);
}
.code-string {
  color: var(--success);
}
.code-comment {
  color: var(--text-subtle);
}

#main:focus {
  outline: none;
}

/* Administração de usuários e permissões. */
.access-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.access-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.access-stat-icon,
.access-role-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text-secondary);
}
.access-stat > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.access-stat > div > span {
  color: var(--text-secondary);
  font-size: 12px;
}
.access-stat strong {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.access-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.access-person > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.access-person strong {
  font-size: 12px;
  font-weight: 550;
}
.access-person small {
  color: var(--text-secondary);
  font-size: 11px;
}
.access-you {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 10px;
  margin-left: 8px;
}
.access-factor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  white-space: nowrap;
}
.access-factor.is-ready {
  color: var(--success);
}
.access-table {
  min-width: 850px;
}
.access-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.access-role {
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-width: 0;
}
.access-role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.access-role-icon.is-admin {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.access-role h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.access-role > p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.access-role-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 22px 0;
  margin-top: auto;
}
.access-role-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.access-role footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  min-height: 49px;
  display: flex;
  align-items: center;
}
.access-role footer .actions {
  width: 100%;
  justify-content: space-between;
}
.access-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.access-matrix-head h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.access-matrix-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}
.access-permission-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.access-permission-group {
  margin: 0;
  padding: 8px 12px 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.access-permission-group legend {
  padding: 0 6px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 550;
}
.access-permission {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 4px;
  cursor: pointer;
  border-radius: 6px;
}
.access-permission:hover {
  background: var(--neutral-soft);
}
.access-permission .checkbox {
  flex-shrink: 0;
  margin-top: 1px;
}
.access-permission strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}
.access-permission small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}
.access-permission-sensitive {
  margin-top: 4px;
  padding: 10px 8px;
  background: var(--warning-soft);
}
.access-permission-sensitive small {
  color: var(--warning);
}
.access-role-modal {
  width: min(760px, calc(100vw - 32px));
}
@media (max-width: 1000px) {
  .access-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .access-summary {
    gap: 8px;
  }
  .access-stat {
    padding: 12px;
    gap: 0;
  }
  .access-stat-icon {
    display: none;
  }
  .access-stat > div > span {
    font-size: 10px;
    min-height: 26px;
  }
  .access-stat strong {
    font-size: 23px;
  }
  .access-roles,
  .access-permission-groups {
    grid-template-columns: 1fr;
  }
  .access-role {
    padding: 20px;
  }
  .access-matrix-head {
    align-items: flex-start;
  }
  .access-matrix-head > .btn {
    white-space: normal;
  }
}
