.staff-container {
  margin: 1rem;
}

/* Search Bar */
.staff-search-container {
  display: flex;
  gap: 8px;
}

.staff-search-container input {
  border-radius: 0 !important;
}

.staff-search-container #search-button {
  height: 40px;
}

/* Sorting */
#sort-name {
  background: none;
  border: none;
}

#sort-name i {
  color: #676767;
}

/* Staff Header */
.staff-header {
  display: flex;
  margin-top: 34px;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.staff-header .staff-members-lenght {
  font-size: 20px;
  font-weight: 600;
  color: #016d89;
}

.staff-header #add-new-member:hover,
.staff-header #add-new-member:focus {
  background-color: #016d89;
  border-color: #016d89;
}

.staff-header #add-new-member {
  position: relative;
  background-color: #cd6c33;
  border-color: #cd6c33;
}

/* Staff Results */

#staff-results {
  margin-top: 34px;
  margin-bottom: 34px;
}

/* Mobile Card View */
.staff-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid #a5a5a5;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 8px;
}

.staff-card .header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-card .member-name {
  font-size: 16px;
  font-weight: 600;
  color: black;
}

.staff-card strong {
  color: #016d89;
}

.avatar-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #b8bf95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  color: white;
}

.staff-avatar {
  transform: translateY(2px);
}

.staff-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0071bc;
}

.staff-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.edit-button {
  background: none;
  border: none;
  color: #0071bc;
  cursor: pointer;
}

/* Pagination */
.staff-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

#staff-pagination {
  border-color: #016d89;
  border-radius: 0;
  padding: 8px;
}

.staff-page-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-color: #016d89;
  border-radius: 0 !important;
}

.staff-page-selection,
.staff-lenght-pages {
  text-wrap: nowrap;
  color: #016d89;
}

#staff-previous-page,
#staff-next-page {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  text-decoration: underline;
  text-decoration-color: #016d89;
  color: #016d89;
}

/* Desktop Table View */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.staff-table .member-name {
  font-size: 16px;
  font-weight: 600;
  color: black;
}

.staff-table th,
.staff-table td {
  border: none !important;
  background-color: none !important;
  background: none !important;
  padding: 0.8rem;
  text-align: left;
  vertical-align: middle;
}

.staff-table th {
  background: none;
  font-weight: normal;
  color: #676767;
}

.staff-table td {
  color: black;
}

.staff-table tr {
  border-bottom: 1px solid #a5a5a5;
}

.staff-table .no-pl {
  padding-left: 0;
}

.table-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-avatar .avatar-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #b8bf95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  color: white;
}

.table-avatar .avatar {
  transform: translateY(2px);
}

.staff-pagination-container button.disabled {
  color: grey !important;
  text-decoration-color: grey !important;
  cursor: not-allowed !important;
  opacity: 0.5;
}

.disabled {
  color: grey;
  pointer-events: none;
  opacity: 0.5;
}

.staff-table .toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.staff-table .toggle input {
  display: none;
}

.staff-table .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d9d9d9;
  transition: 0.4s;
  border-radius: 20px;
}

.staff-table .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #676767;
  transition: 0.4s;
  border-radius: 50%;
}

.staff-table input:checked + .slider {
  background-color: #3e90a3;
}

.staff-table input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.staff-table .staff-delete-button {
  background: none !important;
  border: none !important;
}

.staff-table .staff-delete-button i {
  color: #016d89;
}

/* Add member modals */

#modal-invite-member-step1 .custom-modal-buttons {
  margin-top: 20px;
}

/* Step */
#modal-invite-member-step1 .custom-modal-content,
#modal-invite-member-step2 .custom-modal-content,
#modal-invite-member-step3 .custom-modal-content,
#modal-invite-member-step3b .custom-modal-content,
#modal-invite-member-step4 .custom-modal-content,
#modal-invite-member-request-sent .custom-modal-content,
#modal-invite-member-step1c .custom-modal-content,
#modal-invite-member-step1d .custom-modal-content,
#modal-invite-member-step1e .custom-modal-content,
#modal-invite-member-step4b .custom-modal-content,
#modal-invite-member-step2c .custom-modal-content,
#modal-invite-member-step2e .custom-modal-content,
#modal-invite-member-step2d .custom-modal-content,
#modal-invite-member-step2b .custom-modal-content,
#modal-job-draft-created .custom-modal-content,
#modal-unpublish-job-listing .custom-modal-buttons {
  border-radius: unset;
}

#modal-invite-member-step1 h2,
#modal-invite-member-step2 h2,
#modal-invite-member-step3 h2,
#modal-invite-member-step3b h2,
#modal-invite-member-step4 h2,
#modal-invite-member-request-sent h2,
#modal-invite-member-step1c h2,
#modal-invite-member-step1d h2,
#modal-invite-member-step1e h2,
#modal-invite-member-step4b h2,
#modal-invite-member-step2c h2,
#modal-invite-member-step2e h2,
#modal-invite-member-step2d h2,
#modal-invite-member-step2b h2,
#modal-job-draft-created h2,
#modal-unpublish-job-listing h2 {
  color: #016d89;
  font-weight: 600;
}

#modal-invite-member-step1 h2, #modal-unpublish-job-listing h2 {
  margin-bottom: 20px;
}

#modal-invite-member-step1 p,
#modal-invite-member-step2 p,
#modal-invite-member-step3 p,
#modal-invite-member-step3b p,
#modal-invite-member-step2b p,
#modal-invite-member-step1 label,
#modal-invite-member-step2 label,
#modal-invite-member-step3 label,
#modal-invite-member-step3b label {
  color: #676767;
  font-weight: 600;
}

#modal-invite-member-step1 input,
#modal-invite-member-step2 input,
#modal-invite-member-step3 input,
#modal-invite-member-step3b input {
  border-radius: unset;
}

#modal-invite-member-step1 .step1-search-functionality-container {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

#modal-invite-member-step1 .step1-last-p {
  margin: 20px 0;
}

/* Step 2 */

#modal-invite-member-step2 .step2-name-email-container {
  display: flex;
  flex-direction: column;
}

#modal-invite-member-step2 h2 {
  margin-bottom: 32px;
}

#modal-invite-member-step2 .step2-name-email-container {
  margin-bottom: 20px;
}

#modal-invite-member-step2 .step2-name-email-container,
#modal-invite-member-step2 label {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step 3 */
#modal-invite-member-step3 .step3-custom-html-container,
#modal-invite-member-step3b .step3-custom-html-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

#modal-invite-member-step3 .step3-roles-inputs-container,
#modal-invite-member-step3b .step3-roles-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#modal-invite-member-step3 input:checked,
#modal-invite-member-step3b input:checked {
  accent-color: #016d89 !important;
}

#modal-invite-member-step3 .step3-roles-container,
#modal-invite-member-step3b .step3-roles-container {
  display: flex;
  flex-direction: column;
}

#modal-invite-member-step3 .step3-roles-container label,
#modal-invite-member-step3b .step3-roles-container label,
#modal-invite-member-step3 .step3-site-manager-container label,
#modal-invite-member-step3b .step3-site-manager-container label {
  font-weight: normal;
  display: flex;
  gap: 17px;
}

#modal-invite-member-step3 h2,
#modal-invite-member-step3b h2 {
  margin-bottom: 20px;
}

#modal-invite-member-step3 p,
#modal-invite-member-step3b p {
  margin-bottom: 20px;
}

/* Step 4 */
#modal-invite-member-step4 h2,
#modal-invite-member-request-sent h2,
#modal-invite-member-step1c h2,
#modal-invite-member-step1d h2,
#modal-invite-member-step1e h2,
#modal-invite-member-step4b h2,
#modal-invite-member-step2c h2,
#modal-invite-member-step2e h2,
#modal-invite-member-step2d h2,
#modal-job-draft-created h2 {
  margin-bottom: 32px;
}

/* Step 2B */

#modal-invite-member-step2b .table-avatar {
  display: flex;
  gap: 12px;
  flex-direction: column;
  margin: 20px 0;
}

#modal-invite-member-step2b .avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 8px;
}

#modal-invite-member-step2b .member-info {
  display: flex;
  gap: 4px;
  flex-direction: column;
  justify-content: space-between;
}

#modal-invite-member-step2b p {
  margin-bottom: 0;
}

#modal-invite-member-step2b .member-name {
  font-size: 20px;
}

#modal-invite-member-step2b #search-result-email,
#modal-invite-member-step2b #search-result-msc {
  font-weight: normal;
}

/* Cancel, Back, and Next buttons */

#modal-invite-member-step1 .custom-modal-buttons,
#modal-invite-member-step2 .custom-modal-buttons,
#modal-invite-member-step3 .custom-modal-buttons,
#modal-invite-member-step3b .custom-modal-buttons,
#modal-invite-member-step4 .custom-modal-buttons,
#modal-invite-member-request-sent .custom-modal-buttons,
#modal-invite-member-step1c .custom-modal-buttons,
#modal-invite-member-step1d .custom-modal-buttons,
#modal-invite-member-step1e .custom-modal-buttons,
#modal-invite-member-step4b .custom-modal-buttons,
#modal-invite-member-step2c .custom-modal-buttons,
#modal-invite-member-step2e .custom-modal-buttons,
#modal-invite-member-step2d .custom-modal-buttons,
#modal-invite-member-step2b .custom-modal-buttons,
#modal-unpublish-job-listing .custom-modal-buttons,
#modal-job-draft-created .custom-modal-buttons {
  flex-direction: column;
  gap: 12px;
}

#modal-invite-member-step1 .cancel-button,
#modal-invite-member-step1c .cancel-button,
#modal-invite-member-step1d .cancel-button,
#modal-invite-member-step1e .cancel-button,
#modal-invite-member-step2 .back-button,
#modal-invite-member-step3 .back-button,
#modal-invite-member-step3b .back-button,
#modal-invite-member-step2b .back-button,
#modal-unpublish-job-listing .cancel-button{
  background: #949494;
  border: #949494;
}

#modal-invite-member-step1 .cancel-button:hover,
#modal-invite-member-step1c .cancel-button:hover,
#modal-invite-member-step1d .cancel-button:hover,
#modal-invite-member-step1e .cancel-button:hover,
#modal-unpublish-job-listing .cancel-button:hover,
#modal-invite-member-step2 .back-button:hover,
#modal-invite-member-step3 .back-button:hover,
#modal-invite-member-step3b .back-button:hover,
#modal-invite-member-step2b .back-button:hover {
  background: #838383;
  border: #838383;
}

.search-error-container,
.send-invitation-error-container,
.delete-member-error-container,
.invite-new-member-error-container,
.add-site-admin-error-container,
.remove-site-admin-error-container,
.invite-new-member-name-email-error-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #b3261e;
  background: #b3261e;
  color: white;
  margin-top: 10px;
  padding: 5px 10px;
}
.search-error-container i,
.send-invitation-error-container i,
.delete-member-error-container i,
.invite-new-member-error-container i,
.add-site-admin-error-container i,
.remove-site-admin-error-container i,
.invite-new-member-name-email-error-container i {
  cursor: pointer;
}

.invite-new-member-name-email-error-container {
  margin-bottom: 10px;
}

/* Member card */

/* Responsive Behavior */
@media (min-width: 768px) {
  .staff-card {
    display: none;
  }

  .staff-table {
    display: table;
  }

  .staff-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Step 1 */
  #modal-invite-member-step1 .step1-search-functionality-container {
    flex-direction: row;
  }

  /* Step 2B */
  #modal-invite-member-step2b .table-avatar {
    flex-direction: row;
    gap: 28px;
  }

  #modal-invite-member-step2b .member-info {
    gap: unset;
    height: 90px;
  }

  /* Cancel, Back, and Next buttons */

  #modal-invite-member-step1 .custom-modal-buttons,
  #modal-invite-member-step2 .custom-modal-buttons,
  #modal-invite-member-step3 .custom-modal-buttons,
  #modal-invite-member-step3b .custom-modal-buttons,
  #modal-invite-member-step4 .custom-modal-buttons,
  #modal-invite-member-request-sent .custom-modal-buttons,
  #modal-invite-member-step1c .custom-modal-buttons,
  #modal-invite-member-step1d .custom-modal-buttons,
  #modal-invite-member-step1e .custom-modal-buttons,
  #modal-invite-member-step4b .custom-modal-buttons,
  #modal-invite-member-step2c .custom-modal-buttons,
  #modal-invite-member-step2e .custom-modal-buttons,
  #modal-invite-member-step2d .custom-modal-buttons,
  #modal-invite-member-step2b .custom-modal-buttons,
  #modal-unpublish-job-listing .custom-modal-buttons,
  #modal-job-draft-created .custom-modal-buttons {
    flex-direction: row-reverse;
  }

  #modal-invite-member-step1 .custom-modal-buttons button,
  #modal-invite-member-step2 .custom-modal-buttons button,
  #modal-invite-member-step3 .custom-modal-buttons button,
  #modal-invite-member-step3b .custom-modal-buttons button,
  #modal-invite-member-step4 .custom-modal-buttons button,
  #modal-invite-member-request-sent .custom-modal-buttons button,
  #modal-invite-member-step1c .custom-modal-buttons button,
  #modal-invite-member-step1d .custom-modal-buttons button,
  #modal-invite-member-step1e .custom-modal-buttons button,
  #modal-invite-member-step4b .custom-modal-buttons button,
  #modal-invite-member-step2c .custom-modal-buttons button,
  #modal-invite-member-step2e .custom-modal-buttons button,
  #modal-invite-member-step2d .custom-modal-buttons button,
  #modal-invite-member-step2b .custom-modal-buttons button,
  #modal-unpublish-job-listing .custom-modal-buttons button,
  #modal-job-draft-created .custom-modal-buttons button {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .staff-table {
    display: none;
  }
}
