.user-access-tabs {
  border-bottom: 1px solid #e9eaf0;
  display: flex;
  gap: 18px;
  margin: -5px 0 20px;
}

.user-access-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #9699aa;
  cursor: pointer;
  font:600 12px "DM Sans";
  padding: 0 1px 11px;
}

.user-access-tabs button.active {
  border-color: #6e63e8;
  color: #6259d2;
}

[data-user-access-panel][hidden] {
  display: none;
}

.role-access-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.role-access-heading p {
  color: #6e63e8;
  font-size:10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.role-access-heading h3 {
  font:700 16px "Plus Jakarta Sans";
  margin: 0;
}

.role-access-heading > div > span {
  color: #9b9eae;
  display: block;
  font-size:11px;
  margin-top: 6px;
}

.role-count-badge {
  align-items: center;
  background: #f3f1ff;
  border-radius: 8px;
  display: flex;
  gap: 7px;
  padding: 8px 10px;
}

.role-count-badge strong {
  color: #665cda;
  font:700 17px "Plus Jakarta Sans";
}

.role-count-badge span {
  color: #8b86b7;
  font-size:10px;
}

.role-matrix-note {
  align-items: flex-start;
  background: #f8f8fc;
  border: 1px solid #eeeeF4;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  margin-top: 17px;
  padding: 10px 12px;
}

.role-matrix-note > span {
  background: #e8e5ff;
  border-radius: 50%;
  color: #655bd7;
  flex: 0 0 auto;
  font-size:10px;
  font-weight: 700;
  height: 17px;
  line-height: 17px;
  text-align: center;
  width: 17px;
}

.role-matrix-note p {
  color: #8e92a3;
  font-size:10px;
  line-height: 1.55;
  margin: 1px 0 0;
}

.role-matrix-note strong {
  color: #62667a;
}

.role-matrix-scroll {
  margin-top: 14px;
  overflow-x: auto;
}

.role-access-card table {
  border-collapse: collapse;
  min-width: 950px;
  width: 100%;
}

.role-access-card th,
.role-access-card td {
  border-bottom: 1px solid #ececf2;
}

.role-access-card th {
  color: #a2a5b4;
  font-size:10px;
  padding: 10px 7px;
  text-align: center;
  vertical-align: bottom;
}

.role-access-card th:first-child {
  min-width: 205px;
  padding-left: 0;
  text-align: left;
  width: 25%;
}

.role-access-card td {
  padding: 11px 7px;
  text-align: center;
}

.role-access-card td:first-child {
  padding-left: 0;
  text-align: left;
}

.role-column-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 92px;
}

.role-column-head > i {
  border-radius: 50%;
  font-size:9px;
  font-style: normal;
  font-weight: 700;
  height: 24px;
  line-height: 24px;
  width: 24px;
}

.role-column-head > i.purple { background: #ebe8ff; color: #675ddd; }
.role-column-head > i.blue { background: #e7f2ff; color: #4e8fd0; }
.role-column-head > i.orange { background: #fff0db; color: #dd9140; }
.role-column-head > i.teal { background: #e3f7f4; color: #24a191; }
.role-column-head > i.green { background: #e8f7ea; color: #44a65a; }
.role-column-head > i.red { background: #ffebed; color: #df6871; }

.role-column-head > strong {
  color: #62667a;
  font-size:10px;
  margin-top: 5px;
}

.role-column-head > label {
  align-items: center;
  color: #aaaDBa;
  cursor: pointer;
  display: flex;
  font-size:9px;
  gap: 3px;
  margin-top: 6px;
}

.role-column-head input {
  accent-color: #6e63e8;
  height: 10px;
  margin: 0;
  width: 10px;
}

.role-module {
  align-items: center;
  display: flex;
  gap: 8px;
}

.role-module > i {
  background: #f0efff;
  border-radius: 6px;
  color: #6c62db;
  flex: 0 0 auto;
  font-size:10px;
  font-style: normal;
  font-weight: 700;
  height: 26px;
  line-height: 26px;
  text-align: center;
  width: 26px;
}

.role-module strong,
.role-module small {
  display: block;
}

.role-module strong {
  color: #5d6174;
  font-size:11px;
}

.role-module small {
  color: #a0a3b2;
  font-size:9px;
  margin-top: 3px;
}

.matrix-check {
  cursor: pointer;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.matrix-check input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.matrix-check span {
  background: #fff;
  border: 1px solid #d9dbe4;
  border-radius: 5px;
  display: block;
  height: 18px;
  position: relative;
  transition: 0.15s;
  width: 18px;
}

.matrix-check input:checked + span {
  background: #6e63e8;
  border-color: #6e63e8;
}

.matrix-check input:checked + span::after {
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  height: 7px;
  left: 6px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 3px;
}

.matrix-check input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(110, 99, 232, 0.17);
}

.matrix-check input:disabled + span {
  background: #d9d6fb;
  border-color: #d9d6fb;
  cursor: not-allowed;
}

.role-access-footer {
  align-items: center;
  color: #9a9dad;
  display: flex;
  font-size:10px;
  justify-content: space-between;
  padding-top: 14px;
}

.role-access-summary > span > i {
  background: #c9cbd4;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 4px;
  width: 6px;
}

.role-access-summary > span > i.dirty {
  background: #e5a044;
}

.role-access-summary > span strong {
  color: #62667a;
}

.role-access-summary > span b {
  color: #9a9dad;
  font-weight: 500;
}

.role-access-summary > span {
  display: block;
}

.role-access-summary > small {
  color: #a2a5b4;
  display: block;
  font-size:9px;
  margin-top: 4px;
}

.role-access-footer > div {
  display: flex;
  gap: 7px;
}

.role-access-footer button {
  border-radius: 6px;
  cursor: pointer;
  font:600 11px "DM Sans";
  padding: 8px 10px;
}

.role-reset-button {
  background: #fff;
  border: 1px solid #dfe0e8;
  color: #73778a;
}

.role-save-button {
  background: #6e63e8;
  border: 1px solid #6e63e8;
  color: #fff;
}

.role-access-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 700px) {
  .role-access-heading {
    gap: 12px;
  }

  .role-access-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .role-access-footer > div,
  .role-access-footer button {
    width: 100%;
  }
}
