﻿.advanced-search-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -4px 0px 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

.advanced-search-modal.show {
    right: 0;
}

.adv-close-prop {
    font-size: 24px;
}

.modal-body {
    padding: 0rem;
    position: relative;
}

.validation-message {
    margin: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 14px;
}

.validation-message.danger {
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.modal-content {
    border: 0px;
}

.accordion {
    border: none;
}

.accordion-button:focus {
    border-color: #FFFFFF !important;
    box-shadow: 0rem #FFFFFF;
}

.accordion-item {
    border: none;
    /*margin-bottom: 0.5rem;*/
    border-bottom: 1px solid #E5E7EB;
}

.accordion-button {
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
    color: var(--Grey-500, #5A5A5A);
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.035px;
}

.accordion-button:not(.collapsed) {
    background-color: #FFFFFF;
    color: #111827;
    box-shadow: none;
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
    color: var(--Grey-500, #5A5A5A);
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.035px;
}

.accordion-button::after, .accordion-button:not(.collapsed)::after {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23111827' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 0 16px;
}

/* Advanced Search floating fields — match SearchBar.razor.css (quick search) */
.advanced-search-modal .input-field-wrapper,
.advanced-search-modal .select-field-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

    .advanced-search-modal .input-field-wrapper .form-control,
    .advanced-search-modal .input-field-wrapper input.form-control,
    .advanced-search-modal .select-field-wrapper .form-select {
        margin-bottom: 0 !important;
        display: block;
        width: 100%;
        height: 44px;
        padding: 14px;
        font-size: 14px;
        line-height: 1.2;
        border: 1px solid var(--Grey-500, #5A5A5A);
        border-radius: 4px;
        background-color: #fff;
        font-family: "Avenir Next LT Pro", sans-serif;
        gap: 0;
    }

        .advanced-search-modal .input-field-wrapper input:focus,
        .advanced-search-modal .input-field-wrapper .form-control:focus,
        .advanced-search-modal .select-field-wrapper .form-select:focus,
        .advanced-search-modal .select-field-wrapper select:focus {
            outline: none;
            border: 1px solid #666;
            border-radius: 4px;
            background-color: #fff;
            box-shadow: none;
        }

    .advanced-search-modal .select-field-wrapper .form-select {
        padding-right: 30px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%235A5A5A' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        color: #1A1A1A;
        cursor: pointer;
    }

    .advanced-search-modal .input-field-wrapper .floating-label,
    .advanced-search-modal .select-field-wrapper .floating-label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #777;
        pointer-events: none;
        transition: all 0.2s ease;
        background-color: transparent;
        font-family: "Avenir Next LT Pro", sans-serif;
        font-weight: 400;
        z-index: 2;
        padding: 0 4px;
        line-height: 1.2;
        margin: 0;
    }

        .advanced-search-modal .input-field-wrapper .floating-label.label-float,
        .advanced-search-modal .select-field-wrapper .floating-label.label-float {
            top: -8px;
            transform: translateY(0);
            font-size: 12px;
            color: #5A5A5A;
            background-color: #fff;
            z-index: 5;
            padding: 0 4px;
        }

    .advanced-search-modal .input-field-wrapper input:focus + .floating-label,
    .advanced-search-modal .input-field-wrapper input:not(:placeholder-shown) + .floating-label,
    .advanced-search-modal .input-field-wrapper .form-control:focus + .floating-label,
    .advanced-search-modal .input-field-wrapper .form-control:not(:placeholder-shown) + .floating-label,
    .advanced-search-modal .select-field-wrapper select.form-select:focus + .floating-label,
    .advanced-search-modal .select-field-wrapper select:focus + .floating-label {
        top: -8px;
        transform: translateY(0);
        font-size: 12px;
        background-color: #fff;
        font-family: "Avenir Next LT Pro", sans-serif;
        font-style: normal;
        font-weight: 400;
        padding: 0 4px;
        z-index: 5;
        color: #5A5A5A;
    }

    .advanced-search-modal .select-field-wrapper .floating-label.label-float {
        background-color: #fff;
        z-index: 5;
    }

.advanced-search-modal .document-input-field.input-field-wrapper .form-control,
.advanced-search-modal .document-input-field.select-field-wrapper .form-select {
    height: 44px;
}

/* Date inputs — same as SearchBar.razor.css */
.advanced-search-modal .input-field-wrapper input[type="date"] + .floating-label {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 2;
    background: transparent;
    pointer-events: none;
    width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #777;
}

    .advanced-search-modal .input-field-wrapper input[type="date"]:focus + .floating-label,
    .advanced-search-modal .input-field-wrapper input[type="date"]:not(:placeholder-shown) + .floating-label,
    .advanced-search-modal .input-field-wrapper input[type="date"] + .floating-label.label-float {
        top: -8px;
        transform: translateY(0);
        font-size: 12px;
        background: #fff;
        z-index: 5;
        left: 12px;
        width: auto;
        color: #5A5A5A;
    }


.form-control, .form-select {
    margin-bottom: 1rem;
    border: 1px solid #5A5A5A !important;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: flex;
    padding: 16px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.form-control:focus, .form-select:focus {
    border-color: none !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #5A5A5A;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Avenir Next LT Pro';
}

.input-group {
    gap: 0.5rem;
}

.input-group .form-control,
.input-group .form-select {
    color: #5A5A5A;
    font-size: 14px;
    font-family: 'Avenir Next LT Pro';
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.state-dropdown {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23111827' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.form-check {
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #5F44FB;
    font-family: 'Avenir Next LT Pro';
}

.form-check:hover {
    border-color: #5F44FB;
    background-color: #F8F7FF;
    box-shadow: 0 2px 8px rgba(95, 68, 251, 0.12);
}
.form-check:focus-within {
    border-color: #5F44FB;
    background-color: #F8F7FF;
    box-shadow: 0 0 0 3px rgba(95, 68, 251, 0.1);
    outline: none;
}

.form-check-input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    margin-right: 0.5rem;
    border: 2px solid #D1D5DB;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: #5F44FB;
    border-color: #5F44FB;
}

.form-check-input[type="radio"]:checked + .form-check-label {
    color: #5F44FB;
}

.form-check-input[type="radio"] + img {
    margin-right: 16px;
}

.form-check-label {
    font-size: 0.875rem;
    color: #5A5A5A;
    margin: 0;
    cursor: pointer;
    font-family: 'Avenir Next LT Pro';
}

.custom-date {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    font-family: 'Avenir Next LT Pro';
}

.date-range-info {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    width: 24px !important;
    height: 24px !important;
    padding: 0;
    padding-left: 40px !important;
    margin: 0;
    cursor: pointer;
}

/* Date inputs floating label styles */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.date-inputs .filter-input-wrapper {
    position: relative;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    height: 56px;
}

.date-inputs .filter-input-wrapper:focus-within {
    border-color: #5F44FB;
    box-shadow: 0 0 0 2px rgba(95, 68, 251, 0.2);
}

.date-inputs .floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease-in-out;
    color: #5A5A5A;
    font-size: 14px;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    z-index: 1;
}

.date-inputs .label-float {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: #5F44FB;
}

.date-inputs .filter-input-text {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 8px 40px 8px 16px;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

.date-inputs .filter-input-text:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.date-inputs .filter-dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5A5A5A;
    pointer-events: none;
}

.date-inputs .filter-dropdown-icon i {
    font-size: 20px;
}

.adv-date-picker {
    color: #5A5A5A;
    font-family: 'Avenir Next LT Pro';
}

.modal-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.btn-link {
    background: none;
    border: none;
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: #5F44FB;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Avenir Next LT Pro';
    font-style: normal;
}

.btn-primary {
    font-family: "Avenir Next LT Pro";
    display: flex;
    min-height: 40px;
    justify-content: center;
    align-items: center;
    background-color: #5F44FB;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0.375rem;
    min-width: 80px;
    color: #FFF;
    min-height: 40px;
    padding: 8px 12px;
}

.btn-primary:hover {
    border-radius: var(--Radius, 4px);
    border: 1px solid var(--Zelis-Brand-Bright-Blue-400, #9987FF);
    background: var(--Zelis-Brand-Bright-Blue-100, #E6E2FF);
    color: var(--Zelis-Brand-Bright-Blue-700, #5F44FB);
}

/* Document section styles */
.document-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.document-input-field {
    position: relative;
}

.document-input-field .form-control,
.document-input-field .form-select {
    height: 48px;
    font-size: 14px;
    border: 1px solid #5A5A5A;
    border-radius: 8px;
    width: 100%;
    background-color: white;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.document-input-field .form-control {
    padding: 16px;
}

.document-input-field .form-select {
    padding: 8px 16px;
}

.document-input-field .form-control::placeholder {
    color: #5A5A5A;
    font-size: 14px;
    font-family: 'Avenir Next LT Pro';
}

.document-input-field.select-wrapper {
    position: relative;
}

.document-input-field .form-select {
    padding-right: 40px; /* Space for the arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none; /* Remove default arrow */
    cursor: pointer;
    color: #5A5A5A;
    font-size: 14px;
    font-family: 'Avenir Next LT Pro';
}

.document-input-field .select-arrow {
    position: absolute;
    right: 16px;
    top: 41%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-input-field .select-arrow i {
    font-size: 13px;
    color: #1A1A1A;
}

.document-input-field .form-control:hover,
.document-input-field .form-select:hover {
    border-color: #5F44FB;
}

.document-input-field .form-control:focus,
.document-input-field .form-select:focus {
    border-color: #5F44FB;
    box-shadow: 0 0 0 2px rgba(95, 68, 251, 0.2);
    outline: none;
}

/* Hide default select arrow in IE */
.document-input-field .form-select::-ms-expand {
    display: none;
}

/* Hide default select arrow in modern browsers */
.document-input-field .form-select::-webkit-select-arrow {
    display: none;
}

.document-input-field .form-select option {
    color: #374151;
    padding: 8px;
    font-size: 14px;
}

.bradius {
    border-radius: 4px !important;
}
/* Header */
.advanced-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #E5E5E5;
    background: white;
    z-index: 100;
    flex-shrink: 0;
}

.modal-title {
    color: #000;
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.08px;
}

.btn-close {
    margin-top: -11px !important;
    background: none;
    border: none;
    font-size: 24px;
    color: #5A5A5A;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #1A1A1A;
}

.btn-close:focus,
.btn-close:focus-visible,
.btn-close:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Actions */
.advanced-search-actions {
    border-bottom: 1px solid var(--Grey-300, #D9D9D9);
    display: flex;
    padding: 12px 12px 12px 8px;
    flex-direction: row;
    gap: 4px;
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear {
    background: transparent;
    color: #5F44FB;
    display: flex;
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
}

.btn-clear:hover {
    background: #E6E2FF;
}

/* Custom date picker section with floating labels */
.custom-date {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    font-family: 'Avenir Next LT Pro';
}

.custom-date-picker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Floating labels for date inputs */
.custom-date .form-floating {
    position: relative;
}

.custom-date .form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    margin-bottom: 0;
    border: 1px solid #5A5A5A;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    color: #374151;
}

.custom-date .form-floating > .form-control:focus {
    border-color: #5F44FB;
    box-shadow: 0 0 0 2px rgba(95, 68, 251, 0.2);
}

.custom-date .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #5A5A5A;
    font-size: 0.875rem;
    line-height: 1.25;
    opacity: 0.65;
    background: white;
}

.custom-date .form-floating > .form-control:focus ~ label,
.custom-date .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    height: 20px;
    margin-top: -13px;
    margin-left: 15px;
}

.custom-date .form-floating > .form-control.is-invalid {
    border-color: #DC2626;
}

.custom-date .form-floating > .form-control.is-invalid:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.custom-date .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #DC2626;
}
/* Responsive adjustments */
@media (max-width: 480px) {
    .advanced-search-modal {
        max-width: 100%;
    }
}

/* =============================================== */
/* PERFECT: Status Checkbox Grid Layout Styles    */
/* =============================================== */

.status-checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 24px 24px 24px;
    background-color: #FFFFFF;
    box-sizing: border-box;
}

.checkbox-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.status-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 24px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    gap: 12px;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #374151;
    margin: 0;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.status-checkbox-item:hover {
    border-color: #5F44FB;
    background-color: #F8F7FF;
    box-shadow: 0 2px 8px rgba(95, 68, 251, 0.12);
}

.status-checkbox-item:focus-within {
    border-color: #5F44FB;
    background-color: #F8F7FF;
    box-shadow: 0 0 0 3px rgba(95, 68, 251, 0.1);
    outline: none;
}

/* PERFECT: Checkbox styling with bright white checkmark */
.status-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 2px solid #5F44FB;
    border-radius: 4px;
    background-color: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    outline: none;
}

/* Unchecked state - white background with purple border */
.status-checkbox-item input[type="checkbox"]:not(:checked) {
    background-color: #FFFFFF;
    border: 2px solid #5F44FB;
}

/* ENHANCED: Checked state with brighter, more prominent white checkmark */
.status-checkbox-item input[type="checkbox"]:checked {
    background-color: #5F44FB;
    border-color: #5F44FB;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z' stroke='%23FFFFFF' stroke-width='0.5' fill='%23FFFFFF'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px; /* Increased from 12px to 14px for better visibility */
}

.status-checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid #5F44FB;
    outline-offset: 2px;
}

.checkbox-label {
    flex: 1;
    user-select: none;
    cursor: pointer;
    margin: 0;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #374151;
}

/* Remove any default margins or padding that might interfere */
.status-checkbox-grid *,
.status-checkbox-grid *::before,
.status-checkbox-grid *::after {
    box-sizing: border-box;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .checkbox-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .status-checkbox-grid {
        padding: 4px 20px 16px 20px;
        gap: 12px;
    }

    .status-checkbox-item {
        padding: 16px 20px;
        min-height: 56px;
    }
}

/* Override any conflicting accordion or form styles specifically */
.accordion-body .status-checkbox-grid {
    margin: 0 !important;
    padding: 8px 24px 24px 24px !important;
    background: #FFFFFF !important;
}

.accordion-body .status-checkbox-item {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
}

.accordion-body .status-checkbox-item:hover {
    background-color: #F8F7FF !important;
    border-color: #5F44FB !important;
}

/* ENHANCED: Accordion checkboxes with brighter white checkmarks */
.accordion-body .status-checkbox-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #FFFFFF !important;
    border: 2px solid #5F44FB !important;
    border-radius: 4px !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.accordion-body .status-checkbox-item input[type="checkbox"]:checked {
    background-color: #5F44FB !important;
    border-color: #5F44FB !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z' stroke='%23FFFFFF' stroke-width='0.5' fill='%23FFFFFF'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important; /* Larger, brighter checkmark */
}

.accordion-body .status-checkbox-item input[type="checkbox"]:not(:checked) {
    background-color: #FFFFFF !important;
    border: 2px solid #5F44FB !important;
    background-image: none !important;
}

/* Additional override to reduce accordion body padding specifically for status section */
.accordion-item:has(.status-checkbox-grid) .accordion-body {
    padding: 0 !important;
}

/* Alternative approach - target the specific status accordion body */
.accordion-collapse:has(.status-checkbox-grid) .accordion-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* =============================================== */
/* Status Description Input Field Styles          */
/* Final specifications matching Figma            */
/* =============================================== */

/* Status description frame container - full width like other inputs */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper {
    position: relative;
    width: 100%;
    margin-top: 8px;
    margin-left: -24px;      /* Extend beyond grid padding */
    margin-right: -24px;     /* Extend beyond grid padding */
    padding: 0 24px;         /* Add back padding for content */
    width: calc(100% + 48px); /* Compensate for negative margins */
    margin-bottom: 1rem;     /* Match other input fields */
    box-sizing: border-box;
}

/* Status description search icon */
.status-checkbox-grid .status-description-icon {
    position: absolute;
    left: 36px;              /* 24px wrapper padding + 12px spacing */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    z-index: 3;
    pointer-events: none;
    fill: var(--Zelis-Brand-Bright-Blue-700, #5F44FB);
}

/* Status description input - FINAL specifications */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .form-control {
    display: flex;
    height: 44px;
    padding: 16px 16px 16px 50px; /* 12px base + 24px icon + 10px gap + 4px adjustment */
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid var(--Grey-500, #5A5A5A);
    background-color: #fff;
    /* Input text styling - matches other inputs */
    color: #1A1A1A !important;
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.035px;
    /* Additional properties */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

/* Focus state - maintains styling */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .form-control:focus {
    outline: none;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: none;
    /* Maintain text color on focus - matches other inputs */
    color: #1A1A1A !important;
}

/* Blur state - ensure text color remains dark when losing focus */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .form-control:not(:focus) {
    color: #1A1A1A !important;
}

/* Floating label - matches other Advanced Search labels */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .floating-label {
    position: absolute;
    left: 65px;              /* 24px wrapper padding + 12px base + 24px icon + 10px gap - 5px adjustment */
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #777;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: transparent;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-weight: 400;
    z-index: 2;
    padding: 0 4px;
    line-height: 1.2;
    margin: 0;
}

/* Floating label when active */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .floating-label.label-float {
    top: -8px;
    transform: translateY(0);
    font-size: 12px;
    color: #5A5A5A;
    background-color: #fff;
    z-index: 5;
    padding: 0 4px;
}

/* Focus / has-value state for floating labels */
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .form-control:focus + .floating-label,
.status-checkbox-grid .input-field-wrapper.status-description-wrapper .form-control:not(:placeholder-shown) + .floating-label {
    top: -8px;
    transform: translateY(0);
    font-size: 12px;
    background-color: #fff;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-style: normal;
    font-weight: 400;
    padding: 0 4px;
    z-index: 5;
    color: #5A5A5A;
}

/* Force proper styling for all checkbox states */
.status-checkbox-item input[type="checkbox"],
.accordion-body .status-checkbox-item input[type="checkbox"] {
    border-color: #5F44FB !important;
}

/* Remove any ::before or ::after pseudo-elements that might interfere */
.status-checkbox-item input[type="checkbox"]::before,
.status-checkbox-item input[type="checkbox"]::after,
.accordion-body .status-checkbox-item input[type="checkbox"]::before,
.accordion-body .status-checkbox-item input[type="checkbox"]::after {
    display: none !important;
    content: none !important;
}

/* Final override for perfect appearance with brighter checkmarks */
input[type="checkbox"].status-checkbox,
input[type="checkbox"].status-checkbox::before,
input[type="checkbox"].status-checkbox::after {
    content: none !important;
    display: block !important;
}

input[type="checkbox"].status-checkbox:checked {
    background-color: #5F44FB !important;
    border-color: #5F44FB !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z' stroke='%23FFFFFF' stroke-width='0.5' fill='%23FFFFFF'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
}

input[type="checkbox"].status-checkbox:not(:checked) {
    background-color: #FFFFFF !important;
    border: 2px solid #5F44FB !important;
    background-image: none !important;
}

/* Alternative brighter checkmark option using a thicker stroke */
.status-checkbox-item input[type="checkbox"]:checked.bright-check {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z' stroke='%23FFFFFF' stroke-width='1.5' fill='%23FFFFFF'/%3e%3c/svg%3e") !important;
}

/* Ensure no text-based checkmarks interfere */
.status-checkbox-item input[type="checkbox"]:checked::before,
.accordion-body .status-checkbox-item input[type="checkbox"]:checked::before {
    content: '' !important;
    display: none !important;
}

.advanced-search-modal .accordion-button:focus,
.advanced-search-modal .accordion-button:focus-visible,
.advanced-search-modal .accordion-button:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

:root {
    overflow: hidden;
}