.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, background-color 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  visibility: visible;
}

#toggleAccessWrapper.active .headset-icon {
  background: var(--installed) !important;
  border-radius: 50%; 

}

.modal-standerd {
  background: var(--bg-primary, #fff);
  border-radius: 12px 12px 0px 0px;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  width: 750px;
  height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: auto;
  transform: scale(0.8) translateY(-20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.modal.show .modal-standerd {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header p {
  height: 100%;
}

.modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  /* Dit zorgt voor de scroll wanneer nodig */
  gap: 20px;
  justify-content: center;
}

.modal-header {
  font-size: 24px !important;
  background: var(--huisstijlkleur);
  color: white !important;
  border-radius: 8px 8px 0px 0px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-bottom: 0px;
}

body .modal-header p {
  color: white !important;
  color: white !important;
  font-size: 18px !important;
  line-height: normal;
}

.modal-actions {
  display: flex !important;
  justify-content: end !important;
  gap: 10px !important;
  flex-direction: row !important;
  padding: 20px !important;
  background-color: var(--bg-secondary);
  border-radius: 0px 0px 20px 20px;
  max-height: 80px;
  align-self: flex-end;
  margin-top: auto;
  position: fixed;
  bottom: -75px;
  width: 100%;
  right: 0;
}

.modal .table-checkbox td {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--table-bg) !important;
}

.modal .table-checkbox label {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}


.modal .table-checkbox input{
  margin-bottom: 0px;
}


.modal-icon {
  font-size: 32px;
  color: white !important;
  margin-top: -5px !important;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.modal input {
  max-width: 100%;
}


.modal input[type="text"] {
  background: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modal .btn.btn-delete {
  background: #ff4d4d;
  color: white;
}

.modal-add-content,
.modal-edit-content,
.modal-delete-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 10px;
  justify-content: space-between;
}

.modal-add-content div,
.modal-edit-content div,
.modal-delete-content div {
  padding: 20px;
  display: flex;
  flex-direction: column;
   gap: 3px;
  align-items: start;
  width: 100%;
  justify-content: start;
}


.modal.exact-division-select .modal-add,
.modal#modal-delete .modal-delete {
  width: 550px;
  height: 400px;
}

#division {
  min-width: 350px;
}

.modal.exact-division-select .modal-add .modal-header p,
.modal#modal-delete .modal-delete .modal-header p,
.modal.exact-division-select .modal-add .modal-header i,
.modal#modal-delete .modal-delete .modal-header i {
  line-height: 40px !important;
  font-size: 20px !important;
}

#modal-add form {
  gap: 0px;
}

.modal form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modal select {
  width: 100%;
  max-width: 100%;
  padding: 12px;
}

.btn.btn-cancel {
  background: var(--bg-primary);
  color: var(--text-dark);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

span.btn.btn-cancel {
  font-family: var(--font-family);
  appearance: none;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
  display: inline-block;
  font-size: var(--font-size);
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 10px 15px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  cursor: pointer;
}


/* helpdesk */

#helpdeskModal .modal-standerd {
  width: 950px;
  height: 540px;
  background: var(--bg-primary);
      border-radius: 20px;
}

#helpdeskModal .modal-header p {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#helpdeskModal .modal-header {
  flex-direction: row;
  justify-content: space-between;
}

.faq .title {
  margin: 20px;
  padding: 10px !important;
}

#helpdeskModal .faq {
  width: 100%;
  overflow-y: auto;
  position: relative;
  height: 100%;
}

#helpdeskModal .access {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 0px 12px 12px 0px;
}

#helpdeskModal .modal-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0px;
}

.column.contact-info {
  margin-top: 20px;
  gap: 10px;
}

.column.contact-info .row strong {
  width: 100px;
  display: inline-block;
  color: var(--text-dark);
}

.column.contact-info .row a {
  text-decoration: none;
}

#helpdeskModal .title {
    text-align: left;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--huisstijlkleur);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--huisstijlkleur);
}

#helpdeskModal .content {
  font-size: var(--font-size);
  text-align: left;
  gap: 0px;
  color: var(--text-primary);
}

#helpdeskModal .access-button {
  display: flex;
}

.headset-icon {
  padding: 10px;
}

.toggle-access {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-primary);
  border-radius: 8px;
}

#toggleAccessWrapper .headset-icon,
#toggleAccessWrapper .headset-icon svg {
  transition: all 0.3s ease;
}

#toggleAccessWrapper .headset-icon svg {
  display: flex;
}

#toggleAccessWrapper .headset-icon {
  border-radius: 50%;
  color: var(--disabled);
  background: var(--bg-secondary);
}

#toggleAccessWrapper.active .headset-icon {
  background: var(--installed);
  border-radius: 50%;

}

#toggleAccessWrapper.active .headset-icon svg {
  color: white;
}




.content strong {
  font-weight: 500;
}

.headset-icon-wrapper {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#accessToggleBtn {
  min-width: 140px;
  width: 140px;
  transition: width 0.3s cubic-bezier(.4, 0, .2, 1), background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  background: var(--huisstijlkleur);
  border: none
}

.toggle-access.active #accessToggleBtn {
  width: 165px;
}

#accessToggleBtn .btn-text {
  display: inline-block;
  transition: opacity 0.25s;
  opacity: 1;
  min-width: 110px;
  color: var(--button-text) !important;
}

#accessToggleBtn .btn-text.fading {
  opacity: 0;
}

.status-text {
  display: inline-block;
  transition: opacity 0.25s;
  opacity: 1;
  min-width: 90px;
  /* voorkomt verspringen */
  color: var(--text-secondary) !important;
}

.status-text.fading {
  opacity: 0;
}

/* Table-large */
.edit-company-role-modules table {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;

}

.modal-add-content>div:first-child,
.modal-edit-content>div:first-child,
.modal-delete-content>div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 10px;
  /* Remove height: 100% to allow content to determine size */
  min-height: fit-content;
  height: 100%;
}

body .faq-question h3 {
    margin: 0;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    text-align: left;
}