.modal {
  z-index: 2050 !important;
}

.users--edit-modal,
.users--new-modal,
.roles--edit-modal,
.table--add-record-modal,
.table--edit-record-modal,
.table--settings-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5000;

  .modal--container {
    position: absolute;
    background-color: white;
    margin: auto;
    width: 35%;
    height: 100%;
    right: 0;
    border-radius: 0;
    border: solid 0.5px #979797;
    -webkit-animation-name: animate-right;
    -webkit-animation-duration: 0.4s;
    animation-name: animate-right;
    animation-duration: 0.4s;
  }

  .modal--close-btn {
    padding: 0;
    float: right;
    font-size: 18px;
    cursor: pointer;
  }

  .modal--content-container {
    padding: 36px 50px;
    background-color: white;
  }

  .modal--content {
    padding-top: 20px;

    &:first-child {
      margin-bottom: -20px;
    }

    .row {
      margin: 20px -15px;
    }

    p {
      margin: 0;
    }

    h6 {
      margin: 0;
    }
  }

  .user--activate-toggle {
    padding-top: 20px;
  }

  .user--activate-toggle,
  .role--setting-toggle {
    float: right;
    padding-right: 10px;
  }

  .user--team-dropdown,
  .user--password-field {
    float: right;

    #admin_user_password {
      width: 100%;
    }
  }

  .user--password-invalid {
    color: $info-red;
  }

  .user--password-valid {
    color: $boring-green;
  }

  .user--delete-btn,
  .user--save-btn {
    float: right;

    .btn--delete-user,
    .btn--save-user {
      width: 137px;
      border-radius: 5px;
    }

    .btn--delete-user {
      background-color: $dark-salmon;
    }
  }

  .record--save-btn {
    float: right;

    .btn--save-record {
      width: 137px;
      border-radius: 5px;
      background-color: #59c27c;
      border-color: #59c27c;
    }
  }

  .user--modal-input,
  .role--modal-input,
  .record--modal-input {
    cursor: auto;
    background: none;
    border: none;
    border-bottom: 1px solid $gray;
    width: 30%;
    font-weight: normal;
  }

  .role--modal-input,
  .record--modal-input {
    width: 80%;
    text-align: right;
    padding-right: 0;
  }

  .record--modal-input {
    width: 100%;
    border-bottom: 1px solid #979797;
  }

  @-webkit-keyframes animate-right {
    from {
      right: -300px;
      opacity: 0;
    }

    to {
      right: 0;
      opacity: 1;
    }
  }

  @keyframes animate-right {
    from {
      right: -300px;
      opacity: 0;
    }

    to {
      right: 0;
      opacity: 1;
    }
  }
}

.table--settings-modal > .modal--container {
  width: 50%;
}

.users--edit-modal {
  .modal--content {
    padding-top: 0;
  }
}

.users--new-modal,
.users--edit-modal {
  .user--modal-input {
    width: 45%;
  }

  #admin_user_email {
    width: 90%;
  }
}

.edit--record-panel,
.add--record-panel {
  padding: 0;
  background-color: $gray !important;
  border: none;
  border-radius: 0;
}

.modal-footer {
  text-align: start;
}
