.edit-data-source-wrap.conditional-view-wrapper {

    h4 {
        color: #1E1E1E;
        font-weight: 600;
        font-size: 20px;
        line-height: 26.6px;
        margin-bottom: 17px;
    }

    .table-view {

        &__list {
            gap: 24px;
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 60px;
        }

        &__item {
            flex: 1 1 220px;
            display: flex;
            flex-direction: column;
            border: none !important;
            outline: 0 !important;
            box-shadow: none !important;
            background-color: transparent !important;
            position: relative;

            &.active {

                .table-view__card {
                    border-color: #008717;

                    svg {
                        path {
                            fill: #008717;
                        }
                    }
                }

                .table-view__lable {

                    .radio-field {
                        border-width: 8px;
                        border-color: #008717;
                    }
                }
            }

            &.disabled {

                .table-view__card {
                    cursor: not-allowed;
                }

                .table-view__lable {

                    .radio-field {
                        cursor: default;
                    }
                }
            }
        }

        &__card {
            height: 100%;
            border-radius: 8px;
            padding: 16px 16px;
            margin-bottom: 15px;
            position: relative;
            background-color: #f7f7f7;
            border: 2px solid #ffffff;
            transition: all 0.3s ease;

            .icon-wrap {
                gap: 15px;
                display: flex;
                margin-bottom: 10px;
                align-items: center;
                justify-content: space-between;
                margin-top: 0px;
                margin-bottom: 50px;
                margin-left: -2px;
            }

            .icon {
                height: 30px;
                margin-right: auto;
                display: inline-flex;
                align-items: center;
            }

            .badge-wrap {
                gap: 5px;
                margin-left: auto;
                display: inline-flex;
                align-items: center;
                z-index: 100;

                /* Basic modal for popup video */
                .popupmodal {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0, 0, 0, 0.7);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    z-index: 1000;
                    overflow: hidden;
                }

                .modal-content {
                    background-color: #fff;
                    padding: 20px;
                    border-radius: 8px;
                    max-width: 80%;
                    max-height: 80%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    overflow: hidden;
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
                }

                iframe {
                    width: 600px;
                    height: 339px;
                    border: none;
                    max-width: 977px;
                    max-height: 600px;
                }

                .close-btn {
                    position: absolute;
                    top: -4px;
                    right: 10px;
                    background: none;
                    border: none;
                    font-size: 20px;
                    color: #333;
                    cursor: pointer;
                }



            }

            /* .beta-badge {
                outline: 0;
                color: #FFF;
                font-size: 10px;
                box-shadow: none;
                font-weight: 600;
                text-align: center;
                font-style: normal;
                line-height: normal;
                border: none !important;
                border-radius: 9.118px;
                text-transform: uppercase;
                background-color: #E91F63;
                box-shadow: none !important;
                padding: 2px 10px 3.126px 10.42px;
            } */

            .beta-badge {
                outline: 0;
                gap: 3px;
                color: #F00;
                background-color: rgba(255, 0, 0, 0.05);
                box-shadow: none;
                font-size: 11px;
                font-style: normal;
                font-weight: 600;
                line-height: normal;
                display: inline-flex;
                align-items: center;
                border-radius: 3.533px;
                padding: 2px 7px 2px 7px;
                border: 0.5px solid rgba(255, 0, 0, 0.05);
                box-shadow: none !important;
                transition: background-color 0.2s, color 0.2s;
                margin-left: 5px;

                &:hover {
                    color: #fff;
                    background-color: #F00;
                }
            }

            .tutorial-badge {
                outline: 0;
                gap: 3px;
                color: rgb(166, 1, 243);
                background-color: rgba(166, 1, 243, 0.05);
                box-shadow: none;
                font-size: 11px;
                font-style: normal;
                font-weight: 600;
                line-height: normal;
                display: inline-flex;
                align-items: center;
                border-radius: 3.533px;
                padding: 2px 7px 3px 7px;
                border: 0.5px solid rgba(166, 1, 243, 0.05);
                box-shadow: none !important;
                transition: all 0.3s ease;

                .icon {
                    height: auto;
                }

                svg {

                    path {
                        transition: all 0.3s ease;
                    }
                }

                &:hover {
                    color: #fff;
                    background-color: rgb(166, 1, 243);

                    svg {

                        path {
                            fill: #fff;
                        }
                    }
                }
            }

            .text {
                text-align: left;

                p {
                    color: #666873;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 140%;
                }
            }

            .btn-pro-lock,
            .btn-upcooming {
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                border: none;
            }

            .btn-upcooming {
                outline: 0;
                border: none !important;

                span {
                    color: #FFF;
                    font-size: 11px;
                    box-shadow: none;
                    font-weight: 600;
                    text-align: center;
                    font-style: normal;
                    line-height: 19px;
                    border-radius: 5px;
                    padding: 3px 10px 4px;
                    background-color: #3858E9;
                }
            }

            &:hover {
                box-shadow: rgb(240, 242, 248) 0px 0px 0px 5px;

                .btn-pro-lock,
                .btn-upcooming {
                    opacity: 1;
                    visibility: visible;
                }
            }
        }

        &__lable {
            gap: 4px;
            display: flex;
            align-items: flex-start;
            position: absolute;
            left: 17px;
            margin-top: 65px;

            .radio-field {
                height: 16px;
                width: 16px;
                margin-top: 1px;
                min-width: 16px;
                display: flex;
                cursor: pointer;
                align-items: center;
                border-radius: 500px;
                justify-content: center;
                border: 1.4px solid #CCD5DC;
                transition: all 0.3s ease;

                &::before {
                    content: "";
                    height: 8px;
                    width: 8px;
                    position: absolute;
                    border-radius: 500px;
                    background-color: #fff;
                }
            }

            .label-title {
                cursor: default;
                color: #1E1E1E;
                text-align: left;
                font-size: 16px;
                font-weight: 400;
                font-style: normal;
                line-height: normal;
            }
        }
    }

    .edit-form-group {

        .swptls-search-support {
            margin-top: 40px;

            .title {
                display: flex;
                color: #666873;
                font-size: 16px;
                font-weight: 400;
                line-height: 21px;
                font-style: normal;
                align-items: center;
                margin: 20px 0 15px 0;
            }

            .wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 10px 20px
            }

            .search-by-modes {
                display: flex;
                align-items: center;

                input[type="radio"] {
                    margin-right: 8px;
                    display: none;
                }

                input[type="radio"]:checked+.search-by-modes__lable {
                    border-color: #008717;

                    .radio-field {
                        border-width: 8px;
                        border-color: #008717;
                    }
                }


                &__lable {
                    gap: 4px;
                    display: flex;
                    cursor: pointer;
                    background: #ffffff;
                    border-radius: 6px;
                    padding: 12px 20px;
                    margin-bottom: 0;
                    align-items: flex-start;
                    border: 1px solid #ecf2f6;
                    transition: all 0.3s ease;

                    .radio-field {
                        height: 16px;
                        width: 16px;
                        margin-top: 1px;
                        min-width: 16px;
                        display: flex;
                        cursor: pointer;
                        align-items: center;
                        border-radius: 500px;
                        justify-content: center;
                        border: 1.4px solid #CCD5DC;
                        transition: all 0.3s ease;

                        &::before {
                            content: "";
                            height: 8px;
                            width: 8px;
                            position: absolute;
                            border-radius: 500px;
                            background-color: #fff;
                        }
                    }

                    .label-title {
                        cursor: default;
                        color: #1E1E1E;
                        text-align: left;
                        font-size: 14px;
                        font-weight: 400;
                        font-style: normal;
                        line-height: 16px;
                        font-weight: 400;
                        display: flex;
                        align-items: center;
                    }

                    &:hover {
                        box-shadow: rgb(240, 242, 248) 0px 0px 0px 5px;
                    }
                }
            }

            .preview-wrapper {
                margin-top: 20px;

                .preview-title {
                    display: flex;
                    color: #666873;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 19px;
                    font-style: normal;
                    align-items: center;
                    margin-bottom: 10px;

                    .caret {
                        padding: 5px;
                        display: inline-block;
                        margin-bottom: -1px;

                        svg {
                            transition: all 0.3s ease;
                        }

                        &.rotated {

                            svg {
                                transform: rotate(180deg);
                            }
                        }
                    }
                }

                .preview-gif {
                    max-width: 346px;

                    svg {
                        width: 100%;
                        height: auto;
                    }
                }
            }
        }


    }

    // Custom select 
    .condition-select-fields {
        max-width: 801px;

        label {
            font-size: 14px;
            color: #666873;
            margin-bottom: 10px;
            line-height: 19px;
        }

        .conditional-dropdown-select {
            position: relative;
            // width: 300px; 
            width: 100%;

            &.select-disabled {
                opacity: 0.3;
                cursor: not-allowed;

                .selected-options {
                    pointer-events: none;
                    cursor: not-allowed;
                }
            }

            .selected-options {
                gap: 5px;
                display: flex;
                color: #333;
                cursor: pointer;
                flex-wrap: wrap;
                overflow: hidden;
                border-radius: 6px;
                max-height: 100px;
                position: relative;
                background: #ffffff;
                padding: 15px 30px 15px 15px;
                border: 1px solid #ECF2F6;

                .selected-item {
                    height: 24px;
                    display: flex;
                    color: #666873;
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 53%;
                    border-radius: 500px;
                    align-items: center;
                    background: #E3E5E9;
                    justify-content: center;
                    padding: 0px 7px 0px 12px;


                    .remove-icon {
                        padding: 5px;

                        svg {

                            path {
                                transition: all 0.3s ease;
                            }
                        }

                        &:hover {

                            svg {

                                path {
                                    stroke: #c70000;
                                }
                            }
                        }
                    }
                }

                .select-arrow {
                    right: 10px;
                    position: absolute;
                    top: calc(50% - 10px);
                }
            }

            .dropdown-menu {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background-color: white;
                border: 1px solid #ccc;
                border-radius: 6px;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                z-index: 10;
                display: none;
                max-height: 200px;
                overflow-y: auto;
                width: 100%;
                scrollbar-width: thin;
                scrollbar-color: gray transparent;

                ::-webkit-scrollbar {
                    width: 8px;
                }

                ::-webkit-scrollbar-thumb {
                    background-color: gray;
                    border-radius: 10px;
                }

                ::-webkit-scrollbar-track {
                    background: transparent;
                }



                &.open {
                    // display: block;
                    display: flex;
                    flex-direction: column;
                }

                .dropdown-item {
                    display: flex;
                    align-items: center;
                    padding: 10px;
                    cursor: pointer;

                    label {
                        margin-bottom: 0;
                        cursor: pointer;
                    }

                    // Checkbox desgin 
                    input[type="checkbox"] {
                        position: relative;
                        border: 1px solid #bbbdca;
                        border-radius: 3px;
                        background: none;
                        cursor: pointer;
                        line-height: 0;
                        margin: 0 0.6em 0 0;
                        outline: 0;
                        padding: 0 !important;
                        vertical-align: text-top;
                        height: 19px;
                        width: 19px;
                        -webkit-appearance: none;
                        outline: none;
                        box-shadow: none;
                        box-sizing: border-box;

                        &:checked {
                            background-color: #008717;
                        }

                        &:checked::before {
                            content: "";
                            position: absolute;
                            right: 53%;
                            top: 50%;
                            width: 4px;
                            height: 10px;
                            border: solid #fff;
                            border-width: 0 2px 2px 0;
                            margin: -1px -1px 0 -1px;
                            transform: rotate(45deg) translate(-53%, -50%);
                            z-index: 2;
                        }

                        &:focus {
                            outline: none;
                            box-shadow: none;
                            border: 1px solid #bbbdca;
                        }
                    }



                    &:hover {
                        background-color: #f5f5f5;
                    }
                }

            }
        }
    }

}

/* Responsive styling */
@media (max-width: 1024px) {
    .table-conditional .mode-selection {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .table-conditional .mode-selection {
        flex: 1 1 100%; // Adjust to 1 item per row on mobile
        max-width: 100%;
    }
}


// Filter style ------------------

.filter-wise-settings,
.user-specific-settings {

    .switch-toggle.select-disabled {
        opacity: 0.3;
        pointer-events: none;
        cursor: not-allowed;
    }


    .column-filter-configuration,
    .user-filter-configuration {
        .title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            color: #2c3e50;
        }


        .add-filter-section {
            margin-bottom: 20px;

            .add-filter-btn {
                background: #008717;
                color: #ffffff;
                border: none;
                padding: 10px 20px;
                border-radius: 6px;
                cursor: pointer;
                font-weight: 500;
                transition: background-color 0.2s ease;

                &:hover {
                    background: #126E22;
                }

                &:disabled {
                    background: #6c757d;
                    cursor: not-allowed;
                }
            }
        }

        .existing-filters {
            .filter-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px;
                background: white;
                border: 1px solid #dee2e6;
                border-radius: 6px;
                margin-bottom: 10px;

                .filter-info {
                    flex: 1;

                    .filter-header {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        margin-bottom: 8px;
                        flex-wrap: wrap;

                        .filter-type-badge {
                            padding: 4px 8px;
                            border-radius: 4px;
                            font-size: 11px;
                            font-weight: 600;
                            text-transform: uppercase;

                            &.text {
                                background: #e3f2fd;
                                color: #1976d2;
                            }

                            &.select {
                                background: #f3e5f5;
                                color: #7b1fa2;
                            }

                            &.multi_select {
                                background: #e8f5e8;
                                color: #388e3c;
                            }
                        }

                        .column-info {
                            font-weight: 500;
                            color: #495057;
                        }

                        .user-field-info {
                            font-weight: 400;
                            color: #6b7280;
                            font-style: italic;
                        }

                        .badge {
                            padding: 2px 6px;
                            border-radius: 3px;
                            font-size: 10px;
                            font-weight: 600;
                            text-transform: uppercase;

                            &.strict {
                                background: #ffebee;
                                color: #c62828;
                            }

                            &.hidden {
                                background: #fff3e0;
                                color: #ef6c00;
                            }

                            &.locked {
                                background: #f3e5f5;
                                color: #7b1fa2;
                            }
                        }
                    }

                    .filter-details {
                        font-size: 13px;
                        color: #6c757d;
                        line-height: 1.4;
                    }
                }

                .filter-actions {
                    display: flex;
                    gap: 8px;

                    button {
                        padding: 6px 12px;
                        border: none;
                        border-radius: 4px;
                        cursor: pointer;
                        font-size: 12px;
                        font-weight: 500;
                        transition: background-color 0.2s ease;

                        &.edit-btn {
                            background: #008717;
                            color: #ffffff;

                            &:hover {
                                background: #126E22;
                            }
                        }

                        &.delete-btn {
                            background: #ffebee;
                            color: #c62828;

                            &:hover {
                                background: #ffcdd2;
                            }
                        }
                    }
                }
            }

            .no-filters {
                text-align: center;
                padding: 40px 20px;
                color: #6c757d;
                font-style: italic;
                background: #f8f9fa;
                border: 2px dashed #dee2e6;
                border-radius: 6px;
            }
        }
    }


    // Filter Modal styles
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;

        .modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

            .modal-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 20px;
                border-bottom: 1px solid #dee2e6;

                h3 {
                    margin: 0;
                    font-size: 18px;
                    font-weight: 600;
                    color: #2c3e50;
                }

                .close-btn {
                    background: none;
                    border: none;
                    font-size: 24px;
                    cursor: pointer;
                    color: #6c757d;
                    padding: 0;
                    width: 30px;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    &:hover {
                        color: #495057;
                    }
                }
            }

            .modal-body {
                padding: 20px;

                .form-group {
                    margin-bottom: 20px;

                    label {
                        display: block;
                        font-weight: 500;
                        margin-bottom: 8px;
                        color: #495057;
                    }

                    input,
                    select {
                        width: 100%;
                        padding: 8px 12px;
                        border: 1px solid #ced4da;
                        border-radius: 4px;
                        font-size: 14px;
                        box-sizing: border-box;

                        &:focus {
                            outline: none;
                            border-color: #007cba;
                            box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
                        }
                    }

                    select[multiple] {
                        min-height: 100px;
                    }

                    &.checkbox-group {
                        .checkbox-item {
                            display: flex;
                            align-items: center;
                            gap: 8px;
                            margin-bottom: 10px;

                            input[type="checkbox"] {
                                position: relative;
                                border: 1px solid #bbbdca;
                                border-radius: 3px;
                                background: none;
                                cursor: pointer;
                                line-height: 0;
                                margin: 0;
                                outline: 0;
                                padding: 0 !important;
                                vertical-align: text-top;
                                height: 19px;
                                width: 19px;
                                -webkit-appearance: none;
                                appearance: none;
                                outline: none;
                                box-shadow: none;
                                box-sizing: border-box;

                                &:checked {
                                    background-color: #008717;
                                    border-color: #008717;
                                }

                                &:checked::before {
                                    content: "";
                                    position: absolute;
                                    right: 53%;
                                    top: 50%;
                                    width: 4px;
                                    height: 10px;
                                    border: solid #fff;
                                    border-width: 0 2px 2px 0;
                                    margin: -1px -1px 0 -1px;
                                    transform: rotate(45deg) translate(-53%, -50%);
                                    z-index: 2;
                                }
                            }

                            label {
                                margin: 0;
                                font-weight: 400;
                                cursor: pointer;
                            }
                        }
                    }
                }
            }

            .modal-footer {
                display: flex;
                justify-content: flex-end;
                gap: 10px;
                padding: 20px;
                border-top: 1px solid #dee2e6;

                button {
                    padding: 10px 20px;
                    border: none;
                    border-radius: 4px;
                    cursor: pointer;
                    font-weight: 500;
                    transition: background-color 0.2s ease;

                    &.cancel-btn {
                        background: #6c757d;
                        color: white;

                        &:hover {
                            background: #5a6268;
                        }
                    }

                    &.save-btn {
                        background: #008717;
                        color: #ffffff;

                        &:hover {
                            background: #126E22;
                        }
                    }
                }
            }
        }
    }

}


// ========== NEW: Column Filter Slide-in Modal Styles ==========

.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999999;
    display: flex;
    justify-content: flex-end;
}

.filter-modal-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px; // Increased from 450px
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;

    &.slide-in {
        transform: translateX(0);
    }

    .column-tag {
        display: inline-block;
        margin-left: 8px;
        padding: 4px 10px;
        border-radius: 999px;
        background-color: #ffffff;
        color: #008717;
        font-size: 0.9em;
        font-weight: 500;
        border: 1px solid #008717;

        // optional subtle effect
        line-height: 1;
    }

    .modal-header {
        padding: 20px 24px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;

        h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #1e1e1e;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #666;
            line-height: 1;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s;

            &:hover {
                background: #e0e0e0;
                color: #000;
            }
        }
    }

    .modal-body {
        flex: 1;
        padding: 24px;
        overflow-y: auto;

        .form-group {
            // margin-bottom: 24px;

            label {
                display: block;
                margin-bottom: 8px;
                font-weight: 600;
                font-size: 14px;
                color: #374151;
            }

            select,
            input[type="text"] {
                width: 100%;
                padding: 10px 12px;
                border: 1px solid #d1d5db;
                border-radius: 6px;
                font-size: 14px;
                transition: border-color 0.2s;
                margin-bottom: 20px;

                &:focus {
                    outline: none;
                    border-color: #007bff;
                    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
                }
            }

            select[multiple] {
                min-height: 120px;
            }
        }

        .checkbox-group {
            .checkbox-item {
                margin-bottom: 16px;
                display: flex;
                align-items: flex-start;
                gap: 10px;

                input[type="checkbox"] {
                    position: relative;
                    border: 1px solid #bbbdca;
                    border-radius: 5px;
                    background: none;
                    cursor: pointer;
                    line-height: 0;
                    margin: 0 0.6em 0 0;
                    outline: 0;
                    padding: 0 !important;
                    vertical-align: text-top;
                    height: 19px;
                    width: 19px;
                    -webkit-appearance: none;
                    outline: none;
                    box-shadow: none;
                    box-sizing: border-box;

                    &:checked {
                        background-color: #008717;
                    }

                    &:checked::before {
                        content: "";
                        position: absolute;
                        right: 53%;
                        top: 50%;
                        width: 4px;
                        height: 10px;
                        border: solid #fff;
                        border-width: 0 2px 2px 0;
                        margin: -1px -1px 0 -1px;
                        transform: rotate(45deg) translate(-53%, -50%);
                        z-index: 2;
                    }

                    &:focus {
                        outline: none;
                        box-shadow: none;
                        border: 1px solid #bbbdca;
                    }
                }

                label {
                    font-style: normal;
                    font-weight: 400;
                    font-size: 16px;
                    line-height: 16px;
                    color: #1e1e1e;
                    margin-bottom: 0;
                }
            }
        }
    }

    .modal-footer {
        padding: 20px 24px;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        background: #f8f9fa;

        button {
            padding: 10px 20px;
            border: 1px solid #E1E4EA;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;

            &.delete-btn {
                border-radius: 6px;
                background: #FFFFFF;


                &:hover {
                    background: #f3eded;
                }
            }

            &.cancel-btn {
                background: #f5f5f5;
                color: #333;

                &:hover {
                    background: #e0e0e0;
                }
            }

            &.save-btn {
                background: #008717;
                color: white;

                &:hover {
                    background: #126E22;
                }
            }
        }
    }
}

// Column filter settings icon
.column-filter-settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #666;
    transition: color 0.2s;
    vertical-align: middle;

    &:hover {
        color: #007bff;
    }

    svg {
        width: 16px;
        height: 16px;
    }
}


button.swptls-button.save-btn {
    outline: 0;
    border: 0;
    z-index: 50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: none;
    font-weight: 600;
    position: relative;
    text-align: center;
    font-style: normal;
    padding: 12px 12px;
    border-radius: 8px;
    line-height: normal;
    transition: all 0.3s ease;
    background-color: #008717;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;

    &:hover {
        background-color: #126E22;
    }
}

// ── Configure Column Filter Modal — Redesign ─────────────────────────────────

.filter-modal {

    // Toggle row — shared by all toggles
    .filter-toggle-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;

        label {
            font-size: 14px;
            font-weight: 500;
            color: #1a1a2e;
            cursor: pointer;
            user-select: none;
            margin-bottom: 0;
        }
    }

    // Toggle switch
    .toggle-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex-shrink: 0;
        cursor: pointer;

        input[type="checkbox"] {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }

        .toggle-track {
            position: absolute;
            inset: 0;
            background: #d1d5db;
            border-radius: 999px;
            transition: background 200ms ease;
            cursor: pointer;

            &::after {
                content: '';
                position: absolute;
                width: 18px;
                height: 18px;
                border-radius: 50%;
                background: #ffffff;
                top: 3px;
                left: 3px;
                transition: transform 200ms ease;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            }
        }

        input:checked+.toggle-track {
            background: #6c63ff;

            &::after {
                transform: translateX(18px);
            }
        }

        input:focus-visible+.toggle-track {
            outline: 2px solid #6c63ff;
            outline-offset: 2px;
        }
    }

    // Collapsible default value wrapper
    .filter-default-value-wrapper {
        background: #f4f5f7;
        border-radius: 8px;
        padding: 14px 16px;
        margin-top: 4px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        animation: filterSectionFadeIn 180ms ease forwards;

        .filter-hint-text {
            font-size: 13px;
            color: #6b7280;
            margin: 0;
        }

        .filter-lock-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #374151;
            cursor: pointer;
            font-weight: 400;
            margin-bottom: 0;

            input[type="checkbox"] {
                position: relative;
                border: 1px solid #bbbdca;
                border-radius: 3px;
                background: none;
                cursor: pointer;
                line-height: 0;
                margin: 0 0.6em 0 0;
                outline: 0;
                padding: 0 !important;
                vertical-align: text-top;
                height: 19px;
                width: 19px;
                -webkit-appearance: none;
                outline: none;
                box-shadow: none;
                box-sizing: border-box;

                &:checked {
                    background-color: #008717;
                }

                &:checked::before {
                    content: "";
                    position: absolute;
                    right: 53%;
                    top: 50%;
                    width: 4px;
                    height: 10px;
                    border: solid #fff;
                    border-width: 0 2px 2px 0;
                    margin: -1px -1px 0 -1px;
                    transform: rotate(45deg) translate(-53%, -50%);
                    z-index: 2;
                }

                &:focus {
                    outline: none;
                    box-shadow: none;
                    border: 1px solid #bbbdca;
                }
            }

        }
    }

    // Validation error
    .filter-error-alert {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #dc2626;
        line-height: 1.5;
        margin-top: -15px;

        svg {
            flex-shrink: 0;
            margin-top: 1px;
        }
    }
}

// Footer redesign
.filter-modal-footer {
    .delete-btn.filter-btn-reset {
        display: flex;
        align-items: center;
        gap: 3px;
        justify-content: center;
        text-align: center;
        align-items: center;

        svg {
            flex-shrink: 0;
            margin-top: 4px;
        }

        &.is-disabled,
        &:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
    }

    .save-btn.filter-btn-save {

        &.is-disabled,
        &:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
    }
}

// Fade-in animation for collapsible sections
@keyframes filterSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .filter-default-value-wrapper {
        animation: none;
    }

    .toggle-switch .toggle-track,
    .toggle-switch .toggle-track::after {
        transition: none;
    }
}

// Responsive adjustments
@media (max-width: 768px) {
    .filter-modal-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}