.d4p-wrap {
    &.d4p-with-table {
        ul.subsubsub {
            margin: 0;
        }

        .search-box {
            margin: 0 0 1em;
        }

        .tablenav {
            height: auto;
            margin: 1em 0;
            padding: 0;

            .tablenav-pages {
                margin-bottom: 0;
            }

            &.top {
                display: flex;
                column-gap: 1em;
                row-gap: 2em;
                align-items: center;
                flex-wrap: wrap;

                > div {
                    float: none;
                    padding: 0;
                    margin: 0;
                }

                .actions {
                    display: flex;
                    gap: .5em;
                    flex-wrap: wrap;

                    * {
                        margin: 0;
                    }
                }

                .actions:not(.bulkactions) {
                    flex-grow: 1;
                }

                .clear {
                    display: none;
                }

                @media screen and (max-width: 782px) {
                    .actions {
                        flex-grow: 1;
                        justify-content: center;
                    }
                }
            }
        }
    }
}

.d4p-grid-hide-bulkactions .actions.bulkactions {
    display: none;
}

.d4p-grid-alternative-view-search {
    display: flex;
    column-gap: 2em;
    row-gap: .5em;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    .subsubsub {
        flex-grow: 1;
    }

    > * {
        float: none !important;
        margin: 0 !important;
    }

    p.search-box {
        input {
            margin-bottom: 0;
        }
    }
}
