#{$parent-class} {
    #submission-table {
        .button {
            padding: 8px 15px !important;
            // border: none !important;
        }

        /* Base styles for form */
        .smform-submisson-filter-form {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: #f4f4f4;
            border: 1px solid $border;
            border-radius: 5px;

            .data_filter {
                display: flex;
                flex-wrap: wrap;
                align-items: center;

                .bulk-actions {
                    // margin-right: 20px;

                    // select#bulk-action {
                    //     padding: 5px;
                    //     border: 1px solid rgba($primary, 0.37);
                    //     border-radius: 3px;
                    //     padding-left: 10px;
                    //     padding-right: 30px;

                    //     &:focus {
                    //         border-color: $primary;
                    //         outline: none;
                    //         box-shadow: none;
                    //     }
                    // }

                    input#do-action.button {
                        background-color: $blue;
                        color: $white;
                        border: none;
                        padding: 5px 10px;
                        border-radius: 3px;
                        cursor: pointer;
                        transition: background-color 0.3s;

                        &:hover {
                            background-color: $blue2;
                        }
                    }
                }

                select,
                input#filter-user-type,
                select#filter-form-title,
                input#filter-location,
                input#filter-start-date,
                input#filter-end-date {
                    margin-right: 10px;
                    padding: 3px 10px;
                    border: 1px solid rgba($primary, 0.37);
                    border-radius: 3px;
                    min-width: 150px;
                    color: #646987;

                    &:focus {
                        border-color: $primary;
                        outline: none;
                        box-shadow: none;
                    }

                    @include respond (xl) {
                        min-width: 140px;
                    }
                }

                input[type="submit"].button {
                    background-color: $blue;
                    color: $white;
                    border: none;
                    padding: 5px 10px;
                    border-radius: 3px;
                    cursor: pointer;
                    transition: background-color 0.3s;

                    &:hover {
                        background-color: $blue2;
                    }
                }
            }
            .total__mail {
                display: block;
                background: #7f56d9;
                color: #fff;
                margin-left: 40px;
                height: 36px;
                width: 50px;
                font-size: 16px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 5px;
                font-weight: 600;
            }
            .export-meta {
                display: flex;
                align-items: center;
                background: rgba(127, 86, 217, 0.17);
                padding: 4px 6px;
                margin-top: 6px;
                text-align: center;
                border-radius: 5px;
                margin-left: auto;

                button {
                    box-sizing: content-box;
                    width: 25px;
                    aspect-ratio: 1/1.5;
                    cursor: pointer;
                    transition: all 0.3s ease-in-out;
                    border-radius: 5px;
                    padding: 0 5px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: none;
                    background-color: transparent;
                    opacity: 0.8;
                    @include outline(none);

                    img {
                        width: 100%;
                    }

                    &:hover {
                        opacity: 1;
                        background-color: #ffffffb4;
                        box-shadow: 1px 1px 12px rgba(#000, 0.25);
                        //   border: 1px solid $primary !important;
                    }

                    // &.dashicons-media-spreadsheet{
                    //     background-color: #4DB6AC;
                    // }
                    // &.dashicons-pdf{
                    //     background-color: #f70000;
                    // }
                    // &.dashicons-media-document{
                    //     background-color: #21a366;
                    // }
                }

            }
        }

        .disabled {
            cursor: not-allowed;
            opacity: 0.6;
            pointer-events: none;
            filter: grayscale(0.5);
        }


        /* Base styles for data-table-footer */
        .data-table-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background-color: #f4f4f4;
            border-top: 1px solid $border;
            box-shadow: 0 0 14px rgba(197, 197, 197, 0.6705882353);
        }

        /* Styles for items-per-page-form */
        #items-per-page-form {
            display: flex;
            align-items: center;


            label {
                margin-right: 10px;
            }

            input#items-per-page {
                padding: 5px;
                border: 1px solid $border;
                border-radius: 3px;
                width: 50px;
            }

            input[type="submit"].button.button-primary {
                background-color: $blue;
                color: $white;
                border: none;
                padding: 5px 10px;
                border-radius: 3px;
                cursor: pointer;
                transition: background-color 0.3s;

                &:hover {
                    background-color: $blue2;
                }
            }
        }

        /* Styles for pagination */
        .pagination {
            ul.pagination {
                list-style: none;
                margin: 0;
                padding: 0;

                li {
                    display: inline-block;
                    margin-right: 5px;


                    a {
                        display: block;
                        padding: 5px 10px;
                        background-color: $white;
                        border: 1px solid $border;
                        border-radius: 3px;
                        text-decoration: none;
                        color: $blue;
                        transition: background-color 0.3s;

                        &.active {
                            background: $primary !important;
                            border: 1px solid $primary !important;
                        }

                        &:hover {
                            background: $primary !important;
                            border: 1px solid $primary !important;
                        }
                    }

                    &.active {
                        a {
                            background: $primary !important;
                            border: 1px solid $primary !important;
                            padding: 5px 10px;
                            outline: none;
                            transition: all 300ms;
                            line-height: inherit !important;
                            font-size: 14px !important;
                            font-weight: 600;
                            color: $white;
                        }
                    }

                    a.next {
                        margin-right: 0;
                    }
                }
            }
        }



        /* Base styles for the widefat table */
        /* Materialize-style SCSS for the widefat table */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            margin: 20px 0;
            &::-webkit-scrollbar {
                height: 5px;
            }
        }
        table.formit_data_table {
            width: 100%;
            min-width: max-content;
            border-collapse: collapse;
            background-color: $white;
            border-radius: 4px;
            border: 1px solid #e0e0e0;

            thead {
                background-color: #f5f5f5;

                tr {
                    th {
                        padding: 10px;
                        text-align: left;
                        font-weight: bold;
                        border-bottom: 1px solid #e0e0e0;
                        color: #333;

                        input[type="checkbox"]#select-all {
                            margin-right: 5px;
                            position: relative;
                            top: 3px;
                        }
                    }
                }
            }

            tbody {
                tr {
                    td {
                        padding: 10px;
                        border-bottom: 1px solid #e0e0e0;

                        input[type="checkbox"] {
                            margin-left: 8px !important;
                        }

                        &.date-and-time {
                            font-style: italic;
                            color: #888;
                        }
                        a {
                            display: inline-block;
                            border-radius: 4px;
                            background-color: #fff;
                            color: rgba($primary, 0.75);
                            text-decoration: none;
                            margin-right: 10px;
                            transition: $transition;
                            position: relative;
                            &::before {
                                content: '';
                                width: 30px;
                                aspect-ratio: 1/1;
                                border-radius: 4px;
                                background-color: $primary;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%) scale(0);
                                opacity: 0;
                                transition: $transition;
                            }
                            
                            &.delete-single {
                                &::before {
                                    background-color: #e7240a;
                                }
                            }
                            &.edit-single {
                                &::before {
                                    background-color: #585858;
                                }
                            }


                            i {
                                font-size: 18px;
                                position: relative;
                                top: 2px;
                            }

                            &:hover {
                                &::before {
                                    opacity: 1;
                                    transform: translate(-50%, -50%) scale(1);
                                }
                                color: #fff;
                            }
                        }
                    }
                }
            }
        }
    }

    // submission filter style responsive
    .bulk-actions {
        @include respond(xl) {
            width: 100%;
        }
    }

    form.smform-submisson-filter-form {
        .data_filter {
            gap: 6px;
            margin-bottom: 0 !important;

            select,
            input {
                margin-right: 0 !important;
            }
        }
    }

    @include respond(tabport) {
        form.smform-submisson-filter-form {
            .data_filter {
                display: flex;
                flex-direction: column;
                align-items: stretch !important;
                gap: 6px;
                width: 100%;

                select,
                input {
                    max-width: unset;
                }
            }

            .bulk-actions {
                display: flex;
                align-items: flex-start;
                gap: 6px;
            }

            .bulk-actions #do-action {
                margin-bottom: 0 !important;
            }
        }
    }
    .not-found-submmisions {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 700px;
        .not-found-data {
            svg{
                display: block;
            }
            h2{
                margin: 0 auto;
                display: block;
                text-align: center;
            }
            p{
                display: block;
                a{

                }
            }
            display: inline-block;
            text-align: center;
        }
    }
}