/* ============================================================
   RANGER — modal.css
   ============================================================ */

.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.25s ease, background-color 0.25s ease, visibility 0.25s ease;
}

    .tickets-block-delete {
        padding: 0px !important;
    }

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

.modal-standerd {
    background: var(--bg-primary);
    border-radius: 40px;
    min-width: 320px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    text-align: center;
    position: relative;
    width: 700px;
    /* height: 450px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: auto;
    transform: scale(0.95) translateY(-12px);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    overflow: hidden;
}

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

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

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

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

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: auto;
    gap: 16px;
    justify-content: center;
}

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

.modal-actions button {
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

.modal input[type="text"] {
    background: none !important;
    box-shadow: var(--shadow-sm);
}

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

.modal .btn.btn-delete:hover {
    background: #dc2626;
}

.modal .table-checkbox td {
    display: flex;
    flex-direction: column;
    gap: 16px;
    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: 0;
}

.modal-add-content,
.modal-edit-content,
.modal-delete-content {
    display: flex;
    flex-direction: column;
    /* width: 100%; */
    height: 100%;
        max-height: 80vh;
    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: flex-start;
    width: 100%;
    justify-content: flex-start;
}

.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;
    min-height: fit-content;
    height: 100%;
}

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

#division {
    min-width: 350px;
}

#modal-add form {
    gap: 0;
}

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

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

.btn.btn-cancel {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn.btn-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

span.btn.btn-cancel {
    font-family: var(--font-family);
    appearance: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: inline-block;
    font-size: var(--font-size);
    font-weight: 500;
    line-height: 20px;
    padding: 9px 15px;
    position: relative;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

/* ── HELPDESK MODAL ─────────────────────────────────────── */

#helpdeskModal .modal-standerd {
    width: 940px;
    height: 530px;
    background: var(--bg-primary);
    border-radius: 14px;
}

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

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

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

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

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

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

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

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

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

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

.headset-icon {
    padding: 8px;
    border-radius: 50%;
    color: var(--disabled);
    background: var(--bg-secondary);
    transition: all 0.25s ease;
}

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

#toggleAccessWrapper .headset-icon svg {
    display: flex;
    transition: color 0.25s ease;
}

#toggleAccessWrapper.active .headset-icon {
    background: var(--installed);
    color: white;
}

#accessToggleBtn {
    min-width: 140px;
    width: 140px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 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.2s;
    opacity: 1;
    min-width: 110px;
    color: var(--button-text) !important;
}

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

.status-text {
    display: inline-block;
    transition: opacity 0.2s;
    opacity: 1;
    min-width: 90px;
    color: var(--text-secondary) !important;
    font-size: 13px;
}

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

.column.contact-info {
    margin-top: 16px;
    gap: 8px;
}

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

.column.contact-info .row a {
    text-decoration: none;
    color: var(--link-color);
}

.content strong {
    font-weight: 500;
}

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

/* Tabel in grote modal */
.edit-company-role-modules table {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    max-width: 100%;
    border-collapse: collapse;
}

@media (max-width: 1550px) {
    .status-text {
        display: none;
    }
}

@media (max-width: 767px) {
.modal-standerd {
    border-radius: 20px;
    min-width: 97vw;
    width: 97vw;
    height: 75vh;
    overflow: auto;
}

.modal-body {
    height: 100%;
}

.modal-add-content, .modal-edit-content, .modal-delete-content {
    height: 100%;
}
}