.profile {
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.role-menu {
  position: fixed;
  z-index: 60;
  right: 20px;
  top: 71px;
  width: 310px;
  background: #fff;
  border: 1px solid #e3deef;
  border-radius: 13px;
  box-shadow: 0 20px 50px rgba(25, 20, 39, 0.16);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: 0.16s;
}
.role-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.role-head {
  padding: 10px 10px 8px;
}
.role-head span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #826bad;
}
.role-head b,
.role-head small {
  display: block;
}
.role-head b {
  font-size: 12px;
  margin-top: 4px;
}
.role-head small {
  font-size: 8px;
  color: #8a929f;
  margin-top: 3px;
}
.role-option {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 9px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.role-option:hover {
  background: #f7f5fc;
}
.role-option.active {
  background: #f2eefc;
}
.role-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eee9ff;
  color: #7148df;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.role-option div:nth-child(2) {
  flex: 1;
}
.role-option b,
.role-option small {
  display: block;
}
.role-option b {
  font-size: 10px;
}
.role-option small {
  font-size: 8px;
  color: #89919e;
  margin-top: 3px;
}
.role-option > svg {
  width: 15px;
  color: #7447ee;
  opacity: 0;
}
.role-option.active > svg {
  opacity: 1;
}
.role-menu footer {
  border-top: 1px solid #eeeaf5;
  margin-top: 6px;
  padding: 10px;
  color: #76668f;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.role-menu footer svg {
  width: 13px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #eee9ff;
  color: #6840dc;
  font-size: 8px;
  font-weight: 700;
  margin-left: 7px;
  vertical-align: middle;
}
.role-chip svg {
  width: 10px;
}
.permission-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  margin-bottom: 14px;
  background: #f8f6fd;
  border: 1px solid #e5dff4;
  border-radius: 9px;
  color: #695d7e;
  font-size: 9px;
}
.permission-banner > svg {
  width: 15px;
  color: #7447ee;
}
.permission-banner b {
  color: #382d4e;
}
.permission-banner span {
  margin-left: auto;
  font-size: 8px;
  background: #fff;
  border: 1px solid #e5dff4;
  padding: 4px 7px;
  border-radius: 10px;
}
.workflow-strip {
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  overflow: auto;
  box-shadow: var(--shadow);
}
.workflow-strip > div {
  display: flex;
  align-items: center;
  min-width: max-content;
}
.workflow-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9aa1ac;
  font-size: 8px;
  font-weight: 600;
}
.workflow-step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f1f3;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
}
.workflow-step.done {
  color: #178764;
}
.workflow-step.done i {
  background: #e5f7ef;
  color: #0b966b;
}
.workflow-step.current {
  color: #6540d4;
}
.workflow-step.current i {
  background: #7447ee;
  color: #fff;
  box-shadow: 0 0 0 4px #eee9ff;
}
.workflow-line {
  width: 34px;
  height: 1px;
  background: #e1e4e8;
  margin: 0 7px;
}
.workflow-line.done {
  background: #7dcdb2;
}
.access-denied {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
}
.access-denied > div {
  max-width: 340px;
}
.access-denied span {
  width: 55px;
  height: 55px;
  border-radius: 15px;
  background: #f1edfb;
  color: #7447ee;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.access-denied svg {
  width: 25px;
}
.access-denied h2 {
  font-size: 17px;
  margin: 16px 0 6px;
}
.access-denied p {
  font-size: 10px;
  line-height: 1.6;
  color: #858d99;
}
.access-denied button {
  border: 0;
  background: #7447ee;
  color: white;
  border-radius: 8px;
  height: 37px;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 700;
  margin-top: 9px;
}
.readonly .module-primary {
  display: none;
}
.readonly .table-wrap tbody tr {
  cursor: default;
}
.masked-value {
  filter: blur(5px);
  user-select: none;
}
.permission-note {
  font-size: 8px;
  color: #986d18;
  background: #fff5dd;
  border: 1px solid #f6dfaa;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .role-menu {
    right: 8px;
    top: 62px;
    width: min(310px, calc(100vw - 16px));
  }
  .workflow-strip {
    padding: 12px;
  }
  .permission-banner span {
    display: none;
  }
}
