.role-panel {
  margin-top: 28px;
}

.role-panel[hidden] {
  display: none;
}

.role-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.role-search {
  width: min(370px, 100%);
}

.role-table {
  width: 100%;
  border-collapse: collapse;
}

.role-table th {
  padding: 13px 16px;
  color: #625d70;
  background: #f6f4f9;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.role-table td {
  padding: 14px 16px;
  border-top: 1px solid #ece9f1;
  color: #393647;
  font-size: 13px;
  vertical-align: middle;
}

.role-table tbody tr:hover {
  background: #fcfbff;
}

.role-name {
  font-weight: 700;
  color: #282536;
}

.role-count {
  width: 150px;
  text-align: center;
}

.role-actions {
  width: 120px;
}

.role-editor {
  width: 100%;
  margin-top: 2px;
  color: var(--text);
  background: #fff;
}

.role-editor[hidden] {
  display: none;
}

.role-editor .dialog-header {
  padding: 0 0 20px;
}

.role-editor .dialog-body {
  display: block;
  padding: 24px 0;
}

.role-editor .dialog-footer {
  padding: 18px 0 0;
}

.role-editor .dialog-close {
  flex: 0 0 auto;
  border: 1px solid #ddd9e6;
  background: #fff;
}

.permission-section {
  margin-top: 22px;
}

.permission-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.permission-heading h3 {
  margin: 0;
  font-size: 15px;
}

.permission-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2dfe9;
  border-radius: 12px;
}

.permission-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.permission-table th {
  padding: 10px 12px;
  color: #594f76;
  background: #f4eff9;
  font-size: 11.5px;
  text-align: center;
}

.permission-table th:first-child {
  text-align: left;
}

.permission-table td {
  padding: 9px 12px;
  border-top: 1px solid #ece9f1;
  font-size: 12px;
  text-align: center;
}

.permission-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.permission-group td {
  color: var(--brand);
  background: #faf8fd;
  font-weight: 800 !important;
}

.permission-check {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
}
