.filter_form {
    .filter_fields, .search-box {
        margin-bottom: 5px;
    }
    .filter_fields {
        // float: left;
    }
    .search-box {
        // float: right;
        margin: 0;
        input[type="search"] {
            float: left;
            height: 28px;
            margin: 0 4px 0 0;
            width: auto;
        }
        input[type="submit"] {}
    }
}
.sorting-indicator {
    display: block;
    visibility: hidden;
    width: 10px;
    height: 4px;
    margin-top: 8px;
    margin-left: 7px;
    &:before {
        content: "\f142";
        font: 400 20px/1 dashicons;
        speak: none;
        display: inline-block;
        padding: 0;
        top: -4px;
        left: -8px;
        line-height: 10px;
        position: relative;
        vertical-align: top;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-decoration: none!important;
        color: #444;
    }
}
.sorted.asc .sorting-indicator:before {
    content: "\f142";
}



.row-title {
    font-weight: 600;
}
.row-actions,
.row-actions-visible {
    padding: 2px 0 0;
}
.row-actions {
    color: #ddd;
    position: relative;
    left: -9999em;
}
tr:hover .row-actions {
    position: static;
}

table {
    &.striped {
        table, th, td {
            border: 0!important;
        }
    }
    &.widefat {
        border-spacing: 0;
        width: 100%;
        clear: both;
        margin: 0;
        border: 1px solid #e5e5e5;
        box-shadow: 0 1px 1px rgba(0,0,0,.04);
        background: #fff;
        * {
            word-wrap: break-word;
            outline: none;

            @media screen and (max-width: 782px) {
                word-wrap: normal;
            }
        }
        a, button.button-link {
            text-decoration: none;
        }
        td, th {
            padding: 8px 10px;
            color: #555;
        }
        td {
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
            line-height: inherit;
            vertical-align: top;

            &, ol, p, ul {
                line-height: 1.5em;
            }
        }
        th {
            .comment-grey-bubble {
                height: 16px;
                width: 16px;
                &:before {
                    content: "\f101";
                    font: 400 20px/.5 dashicons;
                    speak: none;
                    display: inline-block;
                    padding: 0;
                    top: 4px;
                    left: -4px;
                    position: relative;
                    vertical-align: top;
                    -webkit-font-smoothing: antialiased;
                    -moz-osx-font-smoothing: grayscale;
                    text-decoration: none!important;
                    color: #444;
                }
            }
            &.sortable,
            &.sorted {
                padding: 0;
                a {
                    display: block;
                    overflow: hidden;
                    padding: 8px;
                    span {
                        float: left;
                        cursor: pointer;
                    }
                }
            }
        }
        ol, ul, p,
        tfoot tr td,
        tfoot tr th,
        thead tr td,
        thead tr th {
            color: #32373c;
        }

        tfoot td,
        th,
        thead td {
            text-align: left;
            line-height: 1.3em;
            font-weight: 400;
            input {
                margin: 0 0 0 8px;
                padding: 0;
                vertical-align: text-top;
            }
            @media screen and (max-width: 782px) {
                input[type=checkbox] {
                    margin-bottom: 8px;
                }
            }
        }

        tfoot td,
        tfoot th,
        thead td,
        thead th{
            line-height: 1.4em;
        }

        .check-column {
            width: 25px;
            padding: 6px 0 25px;
            vertical-align: top;
        }
        .column-title {
            text-transform: none;
            letter-spacing: normal;
            strong {
                display: block;
                margin-bottom: .2em;
            }
        }

        tbody th.check-column,
        tfoot td.check-column,
        thead td.check-column {
            padding: 11px 0 0 8px;
            input[type=checkbox] {
                margin-right: 0;
            }
        }
        tfoot td.check-column,
        thead td.check-column {
            padding-top: 4px;
            vertical-align: middle;
            @media screen and (max-width: 782px) {
                padding-top: 10px;
                width: 37px;
            }
        }
        thead {
            td, th {
                border-bottom: 1px solid #e1e1e1!important;
            }
        }
        tfoot {
            td, th {
                border-top: 1px solid #e1e1e1!important;
            }
        }        

        th.asc a:focus span.sorting-indicator,
        th.asc:hover span.sorting-indicator,
        th.desc a:focus span.sorting-indicator,
        th.desc:hover span.sorting-indicator,
        th.sorted .sorting-indicator {
            visibility: visible;
        }
    }
    &.fixed {
        table-layout: fixed;

        .column-author,
        .column-date,
        .column-format,
        .column-links,
        .column-parent,
        .column-posts {
            width: 13%;
        }
        .column-categories,
        .column-rel,
        .column-response,
        .column-role,
        .column-tags {
            width: 15%;
        }
        .column-comments {
            width: 5.5em;
            padding: 8px 0;
            text-align: left;
        }
        @media screen and (max-width: 1100px) and (min-width: 782px), (max-width: 480px) {
            .column-date {
                width: 14%;
            }
        }
    }
    &.wp-list-table {
        a {
            transition: none;
        }
        .toggle-row {
            position: absolute;
            right: 8px;
            top: 10px;
            display: none;
            padding: 0;
            width: 40px;
            height: 40px;
            border: none;
            outline: 0;
            background: 0 0;
            &:hover {
                cursor: pointer;
            }
            &:before {
                position: absolute;
                top: -5px;
                left: 10px;
                border-radius: 50%;
                display: block;
                padding: 1px 2px 1px 0;
                color: #444;
                content: "\f140";
                font: 400 20px/1 dashicons;
                line-height: 1;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                speak: none;
            }
        }
        .is-expanded .toggle-row:before {
            content: "\f142";
        }
        @media screen and (max-width: 782px) {
            th.check-column {
                display: table-cell;
                width: 35px;
            }
            thead th.column-primary {
                width: 100%;
            }
            td.column-primary {
                padding-right: 50px;
            }
            th.column-primary~th,
            tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
                display: none;
            }
            tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
                position: relative;
                clear: both;
                display: block;
                width: auto!important;
            }
            .column-primary .toggle-row {
                display: block;
            }

            .is-expanded {
                td:not(.hidden) {
                    display: block!important;
                    overflow: hidden;
                }
            }

            tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
                padding: 3px 8px 3px 35%;
            }
            tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
                position: absolute;
                left: 10px;
                display: block;
                overflow: hidden;
                width: 32%;
                content: attr(data-colname);
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }
    }
    &.striped > tbody > :nth-child(odd) {
        background-color: #f9f9f9;
    }
}


.tablenav {
    clear: both;
    margin: 6px 0 4px;
    vertical-align: middle;
    display: inline-block;
    width: 100%;
    input, select {
        max-width: 200px;
        height: 28px;
    }
    .actions {
        float: left;
        padding: 2px 8px 0 0;
        margin: 0;
        select {
            float: left;
        }
    }
    .displaying-num {
        margin-right: 7px;
    }
    .tablenav-pages {
        float: right;
        margin-top: 3px;
        cursor: default;
        color: #555;

        a,
        &-navspan,
        .page-numbers {
            display: inline-block;
            border: 1px solid #ccc;
            padding: 0;
            background: #e5e5e5;
            font-size: 16px;
            font-weight: 400;
            text-align: center;
            min-width: 28px;
            min-height: 28px;
            line-height: 26px;
            margin-left: 3px;
        }
        a {
            &:focus, &:hover {
                border-color: #5b9dd9;
                color: #fff;
                background: #00a0d2;
                box-shadow: none;
                outline: 0;
            }
        }
        &-navspan {
            border-color: #ddd;
            background: #f7f7f7;
            color: #a0a5aa;
        }
        .page-numbers {
            &.prev, &.next {
                float: none;
                border-radius: 0;
            }
        }
    }
    #table-paging {
        margin-left: 2px;
    }
    .current-page {
        min-width: 28px;
        min-height: 28px;
        line-height: 26px;
        margin: 0 2px 0 0;
        padding: 0 8px;
        text-align: center;
        display: inline-block;
        width: auto;
    }
    .total-pages {
        margin-right: 2px;
    }
    .no-pages, &.one-page .pagination-links {
        display: none;
    }
    &.one-page {
        .displaying-num {
            display: inline-block;
            margin-top: 5px;
            margin-right: 0;
        }
    }

    @media screen and (max-width: 782px) {
        &.top {
            .actions , .displaying-num, .tablenav-pages.one-page {
                display: none;
            }
        }
        &.bottom {
            position: relative;
            margin-top: 15px;
            .displaying-num {
                position: absolute;
                right: 0;
                top: 11px;
                margin: 0;
            }
        }
        .tablenav-pages {
            width: 100%;
            height: auto;
            text-align: center;
            margin: 0 0 25px;
            .pagination-links a,
            &-navspan {
                padding: 6px 10px;
                min-width: 40px;
                font-size: 18px;
            }
            .pagination-links {
                font-size: 16px;
                .current-page {
                    padding: 6px 10px;
                    font-size: 16px;
                    position: relative;
                    top: -1px;
                }
            }
        }
    }
}