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

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

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

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

.invite-user-button {
  background: #6e63e8;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 5px 12px rgba(110, 99, 232, 0.2);
  color: #fff;
  cursor: pointer;
  font:600 12px "DM Sans";
  padding: 10px 12px;
}

.invite-user-button span {
  font-size:16px;
  margin-right: 3px;
}

.user-table-toolbar {
  align-items: end;
  border-bottom: 1px solid #ebecf2;
  display: flex;
  gap: 9px;
  margin-top: 19px;
  padding-bottom: 13px;
}

.user-table-toolbar label > span {
  color: #9ca0b0;
  display: block;
  font-size:10px;
  margin-bottom: 5px;
}

.user-table-toolbar select {
  background: #fff;
  border: 1px solid #e4e5ec;
  border-radius: 6px;
  color: #676b7e;
  font:14px "DM Sans";
  height: 32px;
  padding: 0 25px 0 9px;
}

.user-table-toolbar .user-search {
  align-items: center;
  border: 1px solid #e4e5ec;
  border-radius: 6px;
  display: flex;
  margin-right: auto;
  padding: 0 9px;
}

.user-search > span {
  color: #a0a3b2;
  font-size:18px !important;
  margin: 0 4px 0 0 !important;
}

.user-search input {
  border: 0;
  color: #555a70;
  font:14px "DM Sans";
  height: 30px;
  outline: 0;
  width: 180px;
}

.user-table-scroll {
  overflow-x: auto;
}

.user-management-card table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.user-management-card th {
  border-bottom: 1px solid #ebecf2;
  color: #a3a6b5;
  font-size:10px;
  padding: 13px 9px;
  text-align: left;
  white-space: nowrap;
}

.user-management-card td {
  border-bottom: 1px solid #f0f1f5;
  color: #7c8093;
  font-size:11px;
  padding: 12px 9px;
  white-space: nowrap;
}

.user-management-card th:first-child,
.user-management-card td:first-child {
  padding-left: 0;
}

.user-management-card th:last-child,
.user-management-card td:last-child {
  padding-right: 0;
  text-align: right;
}

.managed-user {
  align-items: center;
  display: flex;
  gap: 9px;
}

.managed-user > i {
  border-radius: 50%;
  font-size:10px;
  font-style: normal;
  font-weight: 700;
  height: 29px;
  line-height: 29px;
  text-align: center;
  width: 29px;
}

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

.managed-user strong,
.managed-user small {
  display: block;
}

.managed-user strong {
  color: #55596e;
  font-size:12px;
}

.managed-user small {
  color: #a0a3b2;
  font-size:10px;
  margin-top: 3px;
}

.user-role {
  color: #666a7d;
  font-size:11px;
}

.user-scope,
.user-last-active {
  color: #898d9e;
}

.user-status {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size:10px;
  font-weight: 600;
  gap: 5px;
  padding: 5px 7px;
}

.user-status i {
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.user-status.active { background: #e8f7ef; color: #32996d; }
.user-status.active i { background: #39aa7a; }
.user-status.inactive { background: #f0f1f4; color: #858a99; }
.user-status.inactive i { background: #9296a3; }
.user-status.invited { background: #fff2dc; color: #ce8737; }
.user-status.invited i { background: #df9848; }

.user-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.user-row-actions button {
  background: #fff;
  border: 1px solid #e3e4eb;
  border-radius: 5px;
  color: #6e63d7;
  cursor: pointer;
  font:600 10px "DM Sans";
  padding: 6px 8px;
}

.user-row-actions .user-more-action {
  color: #9699a9;
  font-size:16px;
  height: 26px;
  padding: 0;
  width: 26px;
}

.user-table-empty {
  color: #9a9dad;
  padding: 45px 20px;
  text-align: center;
}

.user-table-empty > span {
  display: block;
  font-size:28px;
}

.user-table-empty strong {
  color: #64687c;
  display: block;
  font-size:13px;
  margin-top: 8px;
}

.user-table-empty p {
  font-size:11px;
  margin: 5px 0 0;
}

.user-table-footer {
  align-items: center;
  color: #9da0af;
  display: flex;
  font-size:11px;
  justify-content: space-between;
  padding-top: 13px;
}

.user-table-footer strong {
  color: #62667a;
}

.user-table-footer i {
  background: #e4a34c;
  border-radius: 50%;
  display: inline-block;
  height: 5px;
  margin-right: 4px;
  width: 5px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

body.modal-open {
  overflow: hidden;
}

.user-modal[hidden] {
  display: none;
}

.user-confirm-modal[hidden] {
  display: none;
}

.user-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.user-confirm-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 55;
}

.user-modal-backdrop {
  background: rgba(28, 30, 47, 0.48);
  inset: 0;
  position: absolute;
}

.user-modal-dialog {
  animation: userModalIn 0.2s ease;
  background: #fff;
  border: 1px solid #e7e8ef;
  border-radius: 13px;
  box-shadow: 0 24px 70px rgba(25, 28, 48, 0.2);
  max-height: calc(100vh - 40px);
  max-width: 520px;
  overflow-y: auto;
  position: relative;
  width: 100%;
}

.user-modal-dialog > header {
  align-items: flex-start;
  border-bottom: 1px solid #ececf2;
  display: flex;
  justify-content: space-between;
  padding: 21px 23px 17px;
}

.user-modal-dialog > header p {
  color: #6e63e8;
  font-size:10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.user-modal-dialog > header h3 {
  font:700 18px "Plus Jakarta Sans";
  margin: 0;
}

.user-modal-dialog > header span {
  color: #989bab;
  display: block;
  font-size:11px;
  line-height: 1.5;
  margin-top: 6px;
}

.user-modal-dialog > header button {
  background: #f5f5f8;
  border: 0;
  border-radius: 6px;
  color: #85899a;
  cursor: pointer;
  flex: 0 0 auto;
  font-size:20px;
  height: 28px;
  margin-left: 15px;
  width: 28px;
}

.user-modal-dialog form {
  padding: 20px 23px 22px;
}

.user-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-form-field.full {
  grid-column: 1 / -1;
}

.user-form-field > span {
  color: #5e6276;
  display: block;
  font-size:11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.user-form-field > span b {
  color: #df6973;
}

.user-form-field input,
.user-form-field select {
  background: #fff;
  border: 1px solid #dfe1e9;
  border-radius: 7px;
  color: #55596d;
  font:14px "DM Sans";
  height: 37px;
  outline: none;
  padding: 0 11px;
  width: 100%;
}

.user-form-field input:focus,
.user-form-field select:focus {
  border-color: #8178e7;
  box-shadow: 0 0 0 3px rgba(110, 99, 232, 0.1);
}

.user-form-field input.invalid,
.user-form-field select.invalid {
  border-color: #df6973;
  box-shadow: 0 0 0 3px rgba(223, 105, 115, 0.08);
}

.user-form-field > small {
  color: #d65c67;
  display: block;
  font-size:10px;
  min-height: 10px;
  padding-top: 4px;
}

.user-invite-option {
  align-items: flex-start;
  background: #f8f8fc;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 11px;
}

.user-invite-option input {
  accent-color: #6e63e8;
  margin: 2px 0 0;
}

.user-invite-option strong,
.user-invite-option small {
  display: block;
}

.user-invite-option strong {
  color: #5d6174;
  font-size:11px;
}

.user-invite-option small {
  color: #979aaa;
  font-size:10px;
  margin-top: 4px;
}

.user-modal-dialog form > footer {
  border-top: 1px solid #ededf2;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
}

.user-modal-dialog form > footer button {
  border-radius: 7px;
  cursor: pointer;
  font:600 12px "DM Sans";
  padding: 9px 13px;
}

.user-modal-cancel {
  background: #fff;
  border: 1px solid #dedfe7;
  color: #73778a;
}

.user-modal-submit {
  background: #6e63e8;
  border: 1px solid #6e63e8;
  color: #fff;
}

.user-confirm-dialog {
  animation: userModalIn 0.2s ease;
  background: #fff;
  border: 1px solid #e7e8ef;
  border-radius: 13px;
  box-shadow: 0 24px 70px rgba(25, 28, 48, 0.22);
  max-width: 390px;
  padding: 25px;
  position: relative;
  text-align: center;
  width: 100%;
}

.user-confirm-icon {
  background: #ffebed;
  border-radius: 50%;
  color: #dc636d;
  display: inline-block;
  font-size:17px;
  font-weight: 700;
  height: 40px;
  line-height: 40px;
  width: 40px;
}

.user-confirm-dialog h3 {
  font:700 18px "Plus Jakarta Sans";
  margin: 14px 0 7px;
}

.user-confirm-dialog p {
  color: #8f93a4;
  font-size:12px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 310px;
}

.user-confirm-dialog p strong {
  color: #5c6073;
}

.user-confirm-dialog > div:last-child {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.user-confirm-dialog button {
  border-radius: 7px;
  cursor: pointer;
  font:600 12px "DM Sans";
  padding: 9px 13px;
}

.user-deactivate-confirm {
  background: #dc636d;
  border: 1px solid #dc636d;
  color: #fff;
}

@keyframes userModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .user-table-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .user-table-toolbar .user-search {
    flex-basis: 100%;
    margin: 0;
  }

  .user-search input {
    width: 100%;
  }
}

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

  .invite-user-button {
    white-space: nowrap;
  }

  .user-table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .user-management-heading {
    display: block;
  }

  .invite-user-button {
    margin-top: 13px;
    width: 100%;
  }

  .user-table-toolbar > label:not(.user-search) {
    flex: 1;
  }

  .user-table-toolbar select {
    width: 100%;
  }

  .user-modal {
    align-items: flex-end;
    padding: 0;
  }

  .user-modal-dialog {
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .user-form-field.full {
    grid-column: auto;
  }
}
