/* Adam logo */
.login-logo {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Alert Color Overrides - Use Adam CSS Variables
   ========================================================================== */

/* Warning alerts - Modern amber */
.alert-warning {
    background-color: var(--iq-light-warning);
    border-color: var(--iq-warning);
    color: var(--iq-warning-hover);
}

/* Info alerts - Professional grey (not blue) */
.alert-info {
    background-color: var(--iq-light-info);
    border-color: #dee2e6;
    color: var(--iq-info);
}

/* Success alerts */
.alert-success {
    background-color: var(--iq-light-success);
    border-color: var(--iq-success);
    color: #155724;
}

/* Danger alerts */
.alert-danger {
    background-color: var(--iq-light-danger);
    border-color: var(--iq-danger);
    color: #721c24;
}

/* Disabled field styling for better visibility */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Additional visual cue for disabled inputs */
.form-control:disabled:focus,
.form-control[readonly]:focus {
    box-shadow: none;
    border-color: #dee2e6 !important;
}

/* Global focus styles - Adam red instead of Bootstrap blue */
/* DISABLED - Testing if this causes tooltip persistence issues */
/*
.btn:focus,
.btn.focus,
.form-control:focus,
.custom-select:focus,
.custom-control-input:focus ~ .custom-control-label::before,
.custom-file-input:focus ~ .custom-file-label,
.page-link:focus,
.dropdown-item:focus,

.form-control:focus,
.custom-select:focus {
    border-color: #cd445a;
    box-shadow: 0 0 0 0.2rem rgba(193, 91, 91, 0.25);
}

.custom-control-input:focus ~ .custom-control-label::before {
    border-color: #cd445a;
    box-shadow: 0 0 0 0.2rem rgba(193, 91, 91, 0.25);
}
*/

/* ==========================================================================
   Focus States - Form Elements Only
   Targeted focus rings for accessibility on input fields, checkboxes,
   radio buttons, and toggle switches. Uses Adam's primary color.
   ========================================================================== */

/* Text inputs, textareas, and select dropdowns */
.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
.custom-select:focus {
    outline: none !important;
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

/* Checkboxes and radio buttons */
.custom-control-input:focus ~ .custom-control-label::before {
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

/* Toggle switches */
.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

/* File inputs */
.custom-file-input:focus ~ .custom-file-label {
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

/* End Focus States */

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #cd445a;
    background-color: #cd445a;
}

/*
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #cd445a;
}
*/

/* Custom switch styling - Adam pink theme */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #cd445a !important;
    border-color: #cd445a !important;
}

/*
.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
    border-color: #cd445a;
    box-shadow: 0 0 0 0.2rem rgba(193, 91, 91, 0.25);
}

.custom-switch .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #cd445a;
}
*/

/* Active/pressed state - when clicking and holding */
.custom-switch .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: rgba(193, 91, 91, 0.5) !important;
    border-color: #cd445a !important;
}

/* Button focus styles */
/* DISABLED - Testing if this causes tooltip persistence issues */
/*
.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(193, 91, 91, 0.5);
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(193, 91, 91, 0.5);
}
*/

/* Style for disabled select elements */
select.form-control:disabled {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    /* word-wrap: break-word; */
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    max-width: 300px;
    /* Set a maximum width for columns */
    white-space: normal;
    /* Allow text to wrap */
    /* word-break: break-word; */
    /* Break long words */
}

th {
    background-color: #f2f2f2;
}

ul {
    padding-left: 16px;
    /* Set left padding for list items */
}

.table-container,
.placeholder-container {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    min-height: 150px;
    overflow-x: auto;
    /* Enable horizontal scrolling if needed */
}

/* Responsive table */
@media screen and (max-width: 600px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    th,
    td {
        white-space: nowrap;
    }
}

/* Hide the original textarea content */
#text-content,
#social-functioning-content,
#own-work-content,
#physical-environment-content,
#dynamic-actions-content,
#static-postures-content,
#working-hours-content,
#relevant-items-content,
#compare-output {
    display: none;
}

/* Equal height helper for ISMS/compliance cards */
.compliance-section .tab-pane > .row {
    align-items: stretch;
    margin-bottom: 1rem;
}

.compliance-section .tab-pane > .row:last-child {
    margin-bottom: 0;
}

.compliance-section .tab-pane > .row > [class*="col-"] {
    display: flex;
}

.compliance-section .tab-pane > .row > [class*="col-"] > .iq-card,
.compliance-section .tab-pane > .row > [class*="col-"] > .iq-card-stretch {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.compliance-section .tab-pane > .row > [class*="col-"] > .iq-card .iq-card-body,
.compliance-section .tab-pane > .row > [class*="col-"] > .iq-card-stretch .iq-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}


/* Conversation thread styling */
.conversation-thread {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    max-width: 75%;
}

/* Common content style */
.message-content {
    line-height: 1.2;
}

/* AI message styling */
.ai-message {
    background-color: #e0e0e0;
    color: rgb(0, 0, 0);
    text-align: left;
    float: left;
    clear: both;
}

.ai-message .message-timestamp-container i {
    font-size: 16px;
    margin-right: 8px;
    /* Space between icon and timestamp */
    color: #555;
    /* Optional: Customize AI icon color */
}

/* User message styling */
.user-message {
    background-color: #e7e7e7;
    color: rgb(0, 0, 0);
    text-align: right;
    float: right;
    clear: both;
}

.user-message .message-timestamp-container i {
    font-size: 32px;
    margin-right: 8px;
    /* Space between icon and timestamp */
    color: #cd445a;
    /* Optional: Customize User icon color */
}

/* Timestamp styling */
.message-timestamp {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* Timestamp container styling */
.message-timestamp-container {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between elements */
    position: relative;
}

.backward-icon {
    font-size: 16px;
    /* Small icon */
    color: #888;
    /* Subtle gray */
    cursor: pointer;
    transition: color 0.3s ease;
}

.backward-icon:hover {
    color: #555;
    /* Darker color on hover */
}

/* Spinner icon */
.spin-icon {
    font-size: 1.5rem;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form group styling */
form .form-group {
    clear: both;
}

form .form-group input {
    clear: both;
}

/* Modal container, hidden by default */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
}

/* Modal content box */
.custom-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
}

/* Close button */
.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Edit case modal: constrained XL width (1140px instead of theme's 90vw) */
#editCaseModal .modal-dialog {
    max-width: 1140px;
}

/* Override Bootstrap's .tab-content > .tab-pane direct-child selector for nested tab-panes.
   In the edit case modal, tab-panes are wrapped inside <form> elements, so Bootstrap's
   default selector doesn't reach them. The JS tab handler removes .active from cross-group
   panes; this CSS ensures they're hidden. */
#caseEditTabContent .tab-pane:not(.active) {
    display: none;
}

/* Style for the table inside the modal */
.custom-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    /* word-wrap: break-word; */
}

.custom-modal-body th,
.custom-modal-body td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.custom-modal-body th {
    background-color: #f2f2f2;
}

/* Button to trigger the modal */
.view-table-btn {
    background-color: #cacaca;
    color: rgb(0, 0, 0);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.view-table-btn:hover {
    background-color: #0056b3;
}

html {
    scroll-behavior: smooth;
}

.file-upload-container {
    display: flex;
    align-items: center;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-right: 10px;
}

.file-input-wrapper .file-input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
}

.file-input-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    display: inline-block;
    cursor: pointer;
}

.file-feedback {
    margin-top: 0.5rem;
}

.file-name {
    margin-right: 1rem;
}

/* Job Structure Upload Modal - File Status Card */
.file-status-card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.file-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.file-status-header .file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.file-status-header .file-info i {
    font-size: 1.25rem;
    color: var(--iq-primary);
}

.file-status-header .remove-file-btn {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.file-status-progress {
    min-height: 50px;
}

.file-status-progress .upload-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    padding: 0.5rem 0;
}

.file-status-progress .progress-container {
    padding: 0.25rem 0;
}

.file-status-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.file-status-progress .progress-bar {
    transition: width 0.3s ease;
}

.file-status-progress .processing-message {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #6c757d;
    min-height: 1.25rem;
}


.feedback-button {
    transition: all 0.3s ease;
}

.btn-outline-grey {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-grey:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Link buttons - Adam primary red instead of Bootstrap blue */
.btn-link {
    color: var(--iq-primary);
}

.btn-link:hover {
    color: #b83d4f;
    text-decoration: none;
}

.btn-link:focus,
.btn-link.focus {
    text-decoration: none;
    box-shadow: none;
}

.feedback-button i {
    margin: 5px;
}

.spinner {
    display: none;
    /* Ensure it is hidden initially */
    margin-left: 10px;
    /* Consistent spacing between button and spinner */
    margin-bottom: 3px;
    align-self: center;
    align-items: center;
    /* For vertical alignment when using flexbox */
    stroke: #cd445a;
}

.custom-spinner {
    width: 24px;
    /* Match button height for proper alignment */
    height: 24px;
    /* Match width for symmetry */
    vertical-align: middle;
    /* Align with text or button height */
}


.custom-spinner .spinner_V8m1 {
    transform-origin: center;
    animation: spinner_zKoa 2s linear infinite;
    stroke: #cd445a;
}

.custom-spinner .spinner_V8m1 circle {
    stroke-linecap: round;
    animation: spinner_YpZS 1.5s ease-in-out infinite;
}

@keyframes spinner_zKoa {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner_YpZS {
    0% {
        stroke-dasharray: 0 150;
        stroke-dashoffset: 0;
    }

    47.5% {
        stroke-dasharray: 42 150;
        stroke-dashoffset: -16;
    }

    95%,
    100% {
        stroke-dasharray: 42 150;
        stroke-dashoffset: -59;
    }
}


.iq-header-title {
    margin-top: 10px;
}

.disabled-navbar {
    --iq-body-text: rgb(201, 201, 201) !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn:disabled {
    background-color: #b5b5b5 !important;
    color: #ffffff !important;
    border-color: #b5b5b5 !important;
}
.acties .btn:disabled {
    background-color: #b5b5b5 !important;
    color: #ffffff !important;
    border-color: #b5b5b5 !important;
}

/* Override general disabled styling for outline buttons in action columns */
.acties .btn:disabled.btn-outline-primary,
.acties .btn.disabled.btn-outline-primary,
.actions-column .btn:disabled.btn-outline-primary,
.actions-column .btn.disabled.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--iq-primary) !important;
    color: var(--iq-primary) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-secondary,
.acties .btn.disabled.btn-outline-secondary,
.actions-column .btn:disabled.btn-outline-secondary,
.actions-column .btn.disabled.btn-outline-secondary {
    background-color: transparent !important;
    border-color: var(--iq-secondary) !important;
    color: var(--iq-secondary) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-success,
.acties .btn.disabled.btn-outline-success,
.actions-column .btn:disabled.btn-outline-success,
.actions-column .btn.disabled.btn-outline-success {
    background-color: transparent !important;
    border-color: var(--iq-success) !important;
    color: var(--iq-success) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-danger,
.acties .btn.disabled.btn-outline-danger,
.actions-column .btn:disabled.btn-outline-danger,
.actions-column .btn.disabled.btn-outline-danger {
    background-color: transparent !important;
    border-color: var(--iq-danger) !important;
    color: var(--iq-danger) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-warning,
.acties .btn.disabled.btn-outline-warning,
.actions-column .btn:disabled.btn-outline-warning,
.actions-column .btn.disabled.btn-outline-warning {
    background-color: transparent !important;
    border-color: var(--iq-warning) !important;
    color: var(--iq-warning) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-info,
.acties .btn.disabled.btn-outline-info,
.actions-column .btn:disabled.btn-outline-info,
.actions-column .btn.disabled.btn-outline-info {
    background-color: transparent !important;
    border-color: var(--iq-info) !important;
    color: var(--iq-info) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-light,
.acties .btn.disabled.btn-outline-light,
.actions-column .btn:disabled.btn-outline-light,
.actions-column .btn.disabled.btn-outline-light {
    background-color: transparent !important;
    border-color: var(--iq-light) !important;
    color: var(--iq-light) !important;
    opacity: 0.4;
}

.acties .btn:disabled.btn-outline-dark,
.acties .btn.disabled.btn-outline-dark,
.actions-column .btn:disabled.btn-outline-dark,
.actions-column .btn.disabled.btn-outline-dark {
    background-color: transparent !important;
    border-color: var(--iq-dark) !important;
    color: var(--iq-dark) !important;
    opacity: 0.4;
}

/* Fix for disabled button tooltips - use pointer-events carefully */
.btn.disabled {
    pointer-events: none;
}

/* But allow pointer events just for the title tooltip */
.btn.disabled[title] {
    pointer-events: auto;
    cursor: not-allowed;
}

/* CSS for Adam. */
span.adam-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

span.adam-logo .name {
    color: black;
    text-transform: lowercase !important;
}

span.adam-logo .dot {
    color: #cd445a;
    margin-left: 0px;
}

/* CSS for panels of equal height */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-col {
    display: flex;
    flex-direction: column;
}

.equal-height-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equal-height-card .iq-card-body {
    flex: 1;
}

/*CSS for positioning of drop down results field */

.search-container {
    width: 100%;
    position: relative;
}

#colFormLabel {
    width: 100%;
}

#dropdownList {
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#dropdownList .list-group-item {
    white-space: pre !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.list-group-item:active {
    background-color: #e9ecef;
}

strong {
    font-weight: bold;
}

/*Aligned separate tables */

.aligned-table {
    table-layout: fixed;
    width: 100%;
}

.aligned-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.aligned-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dashboard specific table adjustments */
#active-cases-table td:nth-child(5),
#on-hold-cases-table td:nth-child(5),
#closed-cases-table td:nth-child(5) {
    /* Documents column - prevent wrapping */
    white-space: nowrap;
    overflow: visible;
}

#active-cases-table td:nth-child(6),
#on-hold-cases-table td:nth-child(6),
#closed-cases-table td:nth-child(6) {
    /* Actions column - ensure full visibility */
    overflow: visible;
    white-space: nowrap;
}

#active-cases-table .btn-group,
#on-hold-cases-table .btn-group,
#closed-cases-table .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
}

#active-cases-table .btn-group .btn,
#on-hold-cases-table .btn-group .btn,
#closed-cases-table .btn-group .btn {
    width: auto !important;
    flex: none !important;
}

/*Thinner form inputs*/

.thin-input {
    height: 36px !important;
    /* Force height to 36px */
    padding: 6px 12px;
    /* Adjust padding if necessary */
    font-size: 14px;
    /* Keep font size consistent */
}

/* Preserve thin-input styling when validation states are applied */
.thin-input.is-invalid,
.thin-input.is-valid {
    height: 36px !important;
    padding: 6px 12px;
    font-size: 14px;
}

/*highlight color*/

.active>a {
    font-weight: bold;
    /* Optional: Make the text bold for emphasis */
}


.tooltip-icon {
    color: #d7d7d7 !important;
    /* Subdued grey color */
    text-decoration: none;
    /* Removes underline if any */
}

.tooltip-icon:hover {
    color: #5a6268 !important;
    /* Slightly darker grey on hover */
}

label {
    white-space: nowrap;
}

.custom-striped tbody tr:nth-child(even) {
    background-color: #f9f9f9;
    /* Light grey for even rows */
}

.custom-striped tbody tr:nth-child(odd) {
    background-color: #ffffff;
    /* White for odd rows */
}


.date-item {
    display: flex;
    margin-bottom: 4px;
}

.date-item:last-child {
    margin-bottom: 0;
}

.date-item strong {
    min-width: 100px;
    text-align: left;
    /* Adjust this to ensure all labels are the same width */
}


/* General styling for table */
#relevant-items-container .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* Volgnummer column styling */
#relevant-items-container .column-volgnummer {
    width: 10%;
    /* Set the width as needed */
    text-align: center;
    font-weight: bold;
}

/* Functie column styling */
#relevant-items-container .column-functie {
    width: 30%;
    text-align: left;
    color: #333;
    font-style: italic;
}

/* Toelichting column styling */
#relevant-items-container .column-toelichting {
    width: 60%;
    text-align: left;
    color: #555;
    line-height: 1.4;
}

/* Optional striped rows styling */
#relevant-items-container .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

#relevant-items-container .table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

/* Disabling level selector */
.level-selector[data-disabled="true"] .handle,
.level-selector[data-disabled="true"] .level-marker {
    cursor: default;
}

#employerDropdownList {
    max-height: 600px;
    overflow-y: auto;
    width: 80%;
    position: absolute;
    z-index: 1000;
}

.search-container {
    width: 100%;
    position: relative;
}


/* Prevent layout shift when modal opens by always reserving scrollbar space */
html {
    scrollbar-gutter: stable;
}

/* Prevent scrolling on body when modal is open */
body.modal-open {
    overflow: hidden;
    /* Keep the scrollbar gutter to prevent content shift */
    scrollbar-gutter: stable;
}

/* Allow scrolling within modal content */
.modal {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Ensure modal content doesn't overflow horizontally */
.modal-content {
    max-width: 100%;
    overflow-x: hidden;
}


.pagination .page-link:hover {
    color: #cd445a;
    /* Your app's red color */
    background-color: #f5f5f5;
    border-color: #cd445a;
}

.pagination .page-link {
    color: #6c757d;
    /* Default gray color */
}

/* For the active/current page */
.pagination .active .page-link {
    background-color: #cd445a;
    /* Your app's red color */
    border-color: #cd445a;
    color: #fff;
}

/* Soft grey focus outline for pagination */
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.12);
    outline: none;
}

/* First, let's ensure all parent containers can handle sticky positioning */
.content-page {
    position: relative !important;
    overflow: visible !important;
}

.container-fluid {
    position: relative !important;
    overflow: visible !important;
}

.iq-card {
    position: relative !important;
    overflow: visible !important;
}

.iq-card-body {
    position: relative !important;
    overflow: visible !important;
}


/* Toolbar styling */
.sticky-toolbar {
    position: sticky !important;
    top: 73px !important;
    background: white !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 16px !important;
    margin: 0 !important;
}


/* Sidebar menu items */
.iq-sidebar {
    z-index: 1030 !important;
    /* Higher than toolbar */
}

/* Expanded submenu items */
.iq-submenu.collapse.show,
.iq-menu .collapse.show {
    position: relative;
    z-index: 1101 !important;
    /* Higher than sidebar */
}


.table-container {
    position: relative;
    overflow: auto;
    max-height: calc(100vh - 74px);
    /* Adjust based on your needs */
}

.sticky-header {
    position: sticky;
    top: 73px;
    /* Accounts for navbar height */
    z-index: 100;
    background-color: #f9f9f9;
    /* Or match your design's background */
    /* Optional: add shadow for better separation */
    border-bottom: 1px solid #dee2e6;
}

.sticky-header tr {
    border-bottom: 1px solid #dee2e6;
    background-color: #f9f9f9;
}

.sticky-header th {
    position: sticky;
    top: 73px;
    z-index: 100;
    background-color: #f9f9f9;
    border-bottom: 1px solid #dee2e6 !important;
    /* Force the border */
    box-shadow: inset 0 -1px 0 #dee2e6;
    /* Alternative way to show border */
}

/* If you need to handle horizontal scroll */
.table {
    width: 100%;
    margin-bottom: 0;
    /* Remove default bootstrap margin if needed */
}

.custom-radio {
    display: inline-flex;
    /* allow alignment */
    align-items: center;
    padding: 8px;
    /* expands the click area */
    cursor: pointer;
}

.custom-radio input[type="radio"] {
    display: none;
    /* hide the default radio */
}

.custom-radio span {
    height: 16px;
    width: 16px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 8px;
}

/* Wrapping version for step 6 with long labels */
.custom-radio-wrap {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    cursor: pointer;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.custom-radio-wrap input[type="radio"] {
    display: none;
}

.custom-radio-wrap span {
    height: 16px;
    width: 16px;
    min-width: 16px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    display: block;
    position: relative;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.custom-radio-wrap input[type="radio"]:checked+span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #cd445a;
    border-radius: 50%;
}

.custom-radio input[type="radio"]:checked+span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    background-color: #cd445a;
    border-radius: 50%;
}

/* Center radio buttons in assessment tables (step 6) */
#expertAssessmentContent td.text-center .custom-radio {
    display: inline-flex;
    width: auto;
    justify-content: center;
    margin: 0 auto;
}

#expertAssessmentContent td.text-center .custom-radio span {
    margin-right: 0;
}

/* Add to your custom-styles.css */
.modal-backdrop {
    z-index: 1040;
  }
  .modal {
    z-index: 1050;
  }


/* Active reminder - light red background */
/* .reminder-link.status-active {
    background-color: rgba(206, 70, 92, 0.1) !important;
    color: #495057 !important;
} */

/* Active reminder hover - slightly darker */
/* .reminder-link.status-active:hover {
    background-color: rgba(206, 70, 92, 0.2) !important;
    color: #495057 !important;
} */

/* Overdue reminder - primary red background with white text */
.reminder-link.status-overdue {
    background-color: #cd445a !important;
    color: #ffffff !important;
}

/* Overdue reminder hover - darker red */
.reminder-link.status-overdue:hover {
    background-color: #b83b4f !important; /* Darker shade of the red */
    color: #ffffff !important;
}

/* Completed reminder - light grey background */
/* .reminder-link.status-completed {
    background-color: #f2f2f2 !important;
    color: #495057 !important;
} */

/* Completed reminder hover - slightly darker grey */
/* .reminder-link.status-completed:hover {
    background-color: #e5e5e5 !important;
    color: #495057 !important;
}
 */



/* Slight position adjustments if needed */
.btn .fa-bell {

    margin-left: 2px; /* May need horizontal adjustment */
}

.btn .fa-bell-o {

    margin-left: 2px; /* May need horizontal adjustment */
}

.btn .fa-bell-slash-o {

    margin-left: 2px; /* May need horizontal adjustment */
}

/* External Contractor Disabled Styles */
.external-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.external-disabled a {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    text-decoration: none !important;
}

.external-disabled .btn {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Specific styling for disabled navbar items */
.external-disabled.iq-menu li {
    opacity: 0.5 !important;
}

.external-disabled.iq-menu li a {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Disabled table columns */
.external-disabled-column {
    opacity: 0.3 !important;
    color: #999 !important;
}

/* Tooltip for disabled items */
.external-disabled[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

/* Workflow Communication Entry Formatting */
.workflow-communication-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    margin: 10px 0;
}

.workflow-communication-content h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Email status indicators */
.email-status-success {
    color: #28a745;
    font-weight: 600;
    background-color: #d4edda;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.email-status-failed {
    color: #dc3545;
    font-weight: 600;
    background-color: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* General entry content formatting for structured text */
.entry-content-formatted {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Required field indicators */
label.required::after {
    content: " *";
    color: #cd445a;
    font-weight: bold;
}

/* For labels that already have other pseudo-elements, use a span */
label.required > span.required-indicator::after {
    content: " *";
    color: #cd445a;
    font-weight: bold;
}

/* For checkbox and radio labels with required class */
.custom-control-label.required::after {
    content: " *";
    color: #cd445a;
    font-weight: bold;
}

/* Form validation error containers - Fixed height to prevent layout shift */
.form-error-container {
    min-height: 1.2em; /* Reserve space for one line of error text */
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.form-error-container .invalid-feedback {
    font-size: 0.875em;
    color: #dc3545;
    margin: 0;
    line-height: 1.2;
}

/* Preserve thin-input styling when validation states are applied */
.thin-input.is-invalid,
.thin-input.is-valid {
    height: 36px !important;
    padding: 6px 12px;
    font-size: 14px;
}

/* Form groups with error containers should have consistent spacing */
.form-group .form-error-container:empty {
    /* When no error is shown, still reserve the space */
    visibility: hidden;
}

/* Inline editor validation styles */
.editable.is-invalid,
.validate-field.is-invalid,
.kfml-point-text.is-invalid,
.document-textarea.is-invalid {
    border: 1px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Contact dropdown borders and alignment */
#contactDropdown,
#intermediaryContactDropdown,
#edit_contactDropdown,
#edit_intermediaryContactDropdown {
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Ensure form-group containers have relative positioning for dropdowns */
.form-group:has(#contactDropdown),
.form-group:has(#intermediaryContactDropdown),
.form-group:has(#edit_contactDropdown),
.form-group:has(#edit_intermediaryContactDropdown) {
    position: relative !important;
}

.editable.is-invalid:focus,
.validate-field.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Validation feedback for inline editors */
.editable + .invalid-feedback,
.validate-field + .invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Date selector validation */
.date-container.has-error {
    border: 1px solid #dc3545;
    border-radius: 0.25rem;
    padding: 0.25rem;
    background-color: #fff5f5;
}

/* Validation summary in modals */
.validation-summary {
    margin-bottom: 1rem;
}

/* KFML textarea validation */
.kfml-point.has-error .kfml-point-text {
    border-color: #dc3545;
}

/* KFML drag and drop styles */
.kfml-point .drag-handle {
    cursor: grab;
    padding: 0.25rem;
    color: #6c757d;
    transition: all 0.2s ease;
    /* Chrome/WebKit fix: explicitly enable dragging for dynamically created elements */
    -webkit-user-drag: element;
    user-select: none;
    touch-action: none;
}

.kfml-point .drag-handle:hover {
    color: #495057;
    transform: scale(1.1);
}

.kfml-point .drag-handle:active,
.kfml-point.dragging .drag-handle {
    cursor: grabbing;
    color: #343a40;
}

/* Ensure text selection works in KFML textareas */
.kfml-point-text {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Prevent accidental dragging from other elements */
.kfml-point-name,
.kfml-point button,
.kfml-point textarea,
.kfml-point input {
    user-select: auto;
    -webkit-user-drag: none;
}

/* Visual feedback during dragging */
.kfml-point.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    transition: opacity 0.2s, transform 0.2s;
}

/* Match Functiehuis job-profile-card styling exactly */
.kfml-point {
    background: rgb(255, 255, 255) !important;
    border: 1px solid rgb(224, 224, 224) !important;
    border-radius: 6px !important;
    margin: 10px 0px !important;
    padding: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.kfml-point:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #cd445a !important;
}

/* SortableJS ghost element - shows drop position with red dashed border */
.kfml-point.sortable-ghost {
    background-color: #f8f9fa !important;
    border: 2px dashed #cd445a !important;
    border-radius: 6px !important;
    opacity: 1 !important;
    box-shadow: none !important;
    min-height: 60px !important;
    height: auto !important;
}

/* Hide content inside the ghost placeholder */
.kfml-point.sortable-ghost * {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Element being dragged - slightly transparent and elevated */
.kfml-point.sortable-chosen {
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* During actual drag operation - the element follows cursor */
.kfml-point.sortable-drag {
    opacity: 0.95;
    background: white;
}

/* Legacy placeholder - hide completely if created by old code */
.kfml-placeholder,
#kfml-drag-placeholder {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* Legacy dragging state - hide completely */
.kfml-point.dragging {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Prevent any legacy drop-zone elements from showing */
.drop-zone,
.drop-indicator {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* Cross-rubric drag drop zone highlighting */
.kfml-rubric.drop-zone-highlight {
    background-color: rgba(205, 68, 90, 0.05);
    border: 2px solid rgba(205, 68, 90, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kfml-rubric.drag-active {
    transition: all 0.2s ease;
}

/* KFML Mapping Badge Wrapper */
.mapping-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* KFML Mapping Badges */
.mapping-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 4px;
    vertical-align: middle;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clickable badges */
.mapping-badge.clickable-badge {
    cursor: pointer;
}

.mapping-badge.clickable-badge:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.mapping-badge i {
    font-size: 10px;
}

/* CBBS mapped point badge - Grey colors (for linked badges) */
.cbbs-badge {
    background-color: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
    text-transform: none; /* Don't uppercase the CBBS point name */
    /* Allow text to wrap if needed instead of truncating */
    white-space: normal;
    max-width: none;
}

.cbbs-badge:hover {
    background-color: #d6d8db;
}

/* Custom/unmapped point badge - Adam's red/pink colors (for Niet gekoppeld) */
.aangepast-badge {
    background-color: rgba(205, 68, 90, 0.1);
    color: #cd445a;
    border: 1px solid rgba(205, 68, 90, 0.3);
    text-transform: none; /* Show as title case "Niet gekoppeld" */
    letter-spacing: 0; /* No letter spacing needed for title case */
}

/* Mapping expansion panel - inline accordion style */
.mapping-expansion {
    margin-top: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    animation: expandDown 0.2s ease-out;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
}

.mapping-expansion-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
}

.mapping-expansion-label {
    font-size: 13px;
    color: #6c757d;
}

.mapping-expansion .cbbs-select {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    padding: 4px;
}

.mapping-expansion .cbbs-select option {
    padding: 8px 10px;
    border-radius: 3px;
    margin: 2px 0;
    cursor: pointer;
    color: #333;
    background-color: white !important;
    background: white !important;
}

/* Hover state - light red/pink */
.mapping-expansion .cbbs-select option:hover {
    background-color: rgba(205, 68, 90, 0.1) !important;
    background: rgba(205, 68, 90, 0.1) !important;
}

/* Active/clicked selection state - Adam's red/pink */
.mapping-expansion .cbbs-select option:checked,
.mapping-expansion .cbbs-select option:active,
.mapping-expansion .cbbs-select option:focus,
.mapping-expansion .cbbs-select:focus option:checked,
.mapping-expansion .cbbs-select:active option:checked,
.mapping-expansion .cbbs-select option[selected] {
    background-color: #cd445a !important;
    background: #cd445a !important;
    color: white !important;
    font-weight: 600 !important;
    background-image: none !important;
    outline: none !important;
}

/* Keep red background when hovering over selected item */
.mapping-expansion .cbbs-select option:checked:hover,
.mapping-expansion .cbbs-select option:active:hover {
    background-color: #cd445a !important;
    background: #cd445a !important;
}

/* Remove default browser focus styles and override with Adam's colors */
.mapping-expansion .cbbs-select:focus {
    outline: none !important;
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

/* Force remove Bootstrap's select focus styles */
.mapping-expansion .form-control.cbbs-select:focus {
    border-color: #cd445a !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 68, 90, 0.25) !important;
}

.mapping-expansion .btn {
    font-size: 12px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.mapping-expansion .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mapping-expansion .btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* KFML remove and add point buttons */
.remove-point-btn {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.remove-point-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.add-assessment-point-btn {
    transition: all 0.2s ease;
}

.add-assessment-point-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-assessment-point-btn:active {
    transform: translateY(0);
}

/* KFML Processing Status Display Styles */
.processing-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.processing-status .spinner-border {
    margin-right: 10px;
}

/* Fix spinner and icon alignment with text in alerts and status messages */
.alert .spinner-border-sm,
.alert .fas,
.point-analysis-status .spinner-border-sm,
.point-analysis-status .fas {
    flex-shrink: 0; /* Prevent icon/spinner from shrinking */
}

/* Use flexbox for consistent alignment in all alert and status messages */
.alert.alert-info,
.alert.alert-success,
.alert.alert-danger,
.point-analysis-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.processing-status i {
    margin-right: 10px;
    font-size: 16px;
}

/* Status variant: Processing (Blue) */
.status-processing {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.status-processing .spinner-border,
.status-processing i {
    color: #17a2b8;
}

/* Status variant: Success (Green) */
.status-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.status-success i {
    color: #28a745;
}

/* Status variant: Error (Red) */
.status-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.status-error i {
    color: #dc3545;
}

/* Status variant: Warning (Yellow) */
.status-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.status-warning i {
    color: #ffc107;
}

/* Resume modal specific validation styles */
#resumeAnalysisModal .table td.is-invalid {
    background-color: #fff5f5;
    position: relative;
}

#resumeAnalysisModal .table td.is-invalid::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background-color: #dc3545;
}

/* ==========================================
   Compact Column Auto-Sizing
   ==========================================
   Use class="compact-column" on any th/td to make it fit tightly to content
   ========================================== */

/* Auto-size columns marked as compact columns */
.compact-column,
th.compact-column,
td.compact-column {
    width: 1%;
    white-space: nowrap;
}

/* Optional: Right-align compact columns with many buttons/actions */
td.compact-column.text-right {
    text-align: right;
}

/* Ensure buttons in compact columns don't wrap */
.compact-column .btn {
    white-space: nowrap;
    margin-left: 4px;
}

/* First button in compact column doesn't need left margin */
.compact-column .btn:first-child {
    margin-left: 0;
}

/* For button groups in compact columns */
.compact-column .btn-group {
    white-space: nowrap;
}

/* Optional: Add padding to compact column headers for better alignment */
th.compact-column {
    padding-right: 15px;
    padding-left: 15px;
}

/* Fix DataTables auto-alignment for Data rapportage column header */
table.dataTable thead th:nth-child(3) {
    text-align: left !important;
}

/* DataTables 2.3.6 - Restore sorting indicators to right side of cell */
table.dataTable thead > tr > th.dt-orderable-asc,
table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > th.dt-ordering-asc,
table.dataTable thead > tr > th.dt-ordering-desc,
table.dataTable thead > tr > td.dt-orderable-asc,
table.dataTable thead > tr > td.dt-orderable-desc,
table.dataTable thead > tr > td.dt-ordering-asc,
table.dataTable thead > tr > td.dt-ordering-desc {
    position: relative;
    padding-right: 26px !important;
}

table.dataTable thead > tr > th .dt-column-order,
table.dataTable thead > tr > td .dt-column-order {
    position: absolute !important;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================
   CBBS Education Levels Table Styling
   ==========================================*/

/* CBBS table general styling */
.cbbs-table {
    font-size: 0.9rem;
    border-collapse: collapse;
    border: 2px solid var(--iq-dark);
}

/* CBBS table header - Adam primary red */
.cbbs-table thead th {
    background-color: var(--iq-primary);
    color: white;
    font-weight: 600;
    padding: 12px 10px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* CBBS table body cells - thin borders by default */
.cbbs-table tbody td {
    padding: 10px;
    vertical-align: top;
    border: 1px solid #dee2e6;
    line-height: 1.5;
}

/* Info row (note about education duration) */
.cbbs-info-row {
    background-color: var(--iq-light-secondary) !important;
}

/* Competency level blocks - no background colors for clean look */
/* ELEMENTAIR block (CBBS 1-2) */
.cbbs-block-elementair {
}

/* LAGER block (CBBS 3) */
.cbbs-block-lager {
}

/* MIDDELBAAR block (CBBS 4-5) */
.cbbs-block-middelbaar {
}

/* HOGER block (CBBS 6) */
.cbbs-block-hoger {
}

/* WETENSCHAPPELIJK block (CBBS 7) */
.cbbs-block-wetenschappelijk {
}

/* Thick borders BETWEEN competency level blocks */
/* After LAGER block (before MIDDELBAAR) */
.cbbs-block-lager:last-of-type td {
    border-bottom: 3px solid var(--iq-dark) !important;
}

/* After MIDDELBAAR block (before HOGER) */
.cbbs-block-middelbaar:last-of-type td {
    border-bottom: 3px solid var(--iq-dark) !important;
}

/* After HOGER block (before WETENSCHAPPELIJK) */
.cbbs-block-hoger:last-of-type td {
    border-bottom: 3px solid var(--iq-dark) !important;
}

/* Continuation rows - thinner top border or no border */
.cbbs-continuation-row td {
    border-top: 1px dashed #dee2e6 !important;
}

/* Empty cells in continuation rows */
.cbbs-table tbody td:empty {
    background-color: transparent;
}

/* Level number column - use Adam's dark color */
.cbbs-table tbody td.cbbs-level-col {
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    color: var(--iq-dark);
}

/* Hover effect on rows - slightly darker shade of block color */
.cbbs-table tbody tr:hover td {
    filter: brightness(0.95);
}

/* Prevent hover on info row */
.cbbs-info-row:hover td {
    filter: none !important;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure proper spacing around the table */
.cbbs-table + .mt-3 {
    margin-top: 1.5rem !important;
}

/* Link styling in source reference - Adam primary */
.cbbs-table + .mt-3 a {
    color: var(--iq-primary);
    text-decoration: none;
}

.cbbs-table + .mt-3 a:hover {
    color: var(--iq-primary-hover);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .cbbs-table {
        font-size: 0.8rem;
    }

    .cbbs-table thead th {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .cbbs-table tbody td {
        padding: 8px 6px;
    }
}

/* Auto-save indicators for case details */
.save-indicator {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.save-indicator.saving-spinner {
    color: #cd445a;
}

.save-indicator.save-success-msg {
    animation: fadeIn 0.3s ease-in;
}

.save-indicator.save-error-msg {
    animation: shake 0.3s ease-in;
}

input.saving,
select.saving,
textarea.saving {
    border-color: #cd445a;
    background-color: rgba(205, 68, 90, 0.05);
}

input.save-success,
select.save-success,
textarea.save-success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

input.save-error,
select.save-error,
textarea.save-error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Financial Summary Pills (Financieel tab in case modal)
   ========================================================================== */

.fin-summary-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fin-summary-pill {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: #fff;
}

.fin-summary-pill small {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
}

.fin-summary-pill strong,
.fin-summary-pill .badge {
    font-size: 0.9rem;
}

.fin-summary-pill { border: 1.5px solid rgba(205, 68, 90, 0.4); }

/* Invoice cards in Financieel tab — prominent section styling */
#invoice-accordion .card {
    border: 1px solid #dee2e6;
    border-left: 3px solid rgba(205, 68, 90, 0.35);
    border-radius: 4px;
}

#invoice-accordion .card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#invoice-accordion .card.border-danger {
    border-left: 3px solid #dc3545;
}

/* Adam target progress badges - shades of Adam red */
.badge-adam-target-full {
    background-color: #cd445a;
    color: #ffffff;
}

.badge-adam-target-high {
    background-color: #cd445a;
    color: #ffffff;
}

.badge-adam-target-medium {
    background-color: #d4888e;
    color: #ffffff;
}

.badge-adam-target-low {
    background-color: #e8b8bb;
    color: #5a3a3d;
}

/* ==========================================================================
   DataTables Processing Indicator
   ========================================================================== */

/* Processing indicator container */
div.dt-processing {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 1050 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    font-size: 1.1rem !important;
    color: #6c757d !important;
}

/* Change DataTables 2.x default dots to Adam red */
div.dt-processing > div:last-child > div {
    background: #dc3545 !important;
}

/* Remove extra margin from DataTables container rows */
div.dt-container > div.row {
    margin-bottom: 0;
}

/* ==========================================================================
   Disabled + Checked Radio Buttons
   ==========================================================================
   Washed-out version of Adam primary color for disabled but selected radio buttons.
   Used in contact management tables where a contact may be selected as addressee
   but is no longer linked to the case.

   Uses 10% opacity for background, 20% for border, 30% for inner dot.
   Reference: STYLE_GUIDE.md opacity variants
*/
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: rgba(205, 68, 90, 0.1) !important;
    border-color: rgba(205, 68, 90, 0.2) !important;
}
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23cd445a' fill-opacity='0.3'/%3e%3c/svg%3e") !important;
}

/* Modal contact table: compact checkbox/radio controls */
.contact-table-control {
    padding-left: 0 !important;
    min-height: 16px;
    width: 16px;
    margin: 0 auto;
}
.contact-table-control .custom-control-label {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
}
.contact-table-control .custom-control-label::before,
.contact-table-control .custom-control-label::after {
    left: 0;
    top: 0;
}
