/* -----------start wpvr list page style------------ */
.wpvr-tour-list {
    background-color: #EDEBF4;

    .subsubsub {
        position: relative;
        z-index: 2;
    }

    #posts-filter {
        position: relative;
    }

    .wrap .page-title-action:active,
    .wrap .page-title-action {
        border-radius: 6px;
        background-color: #3F04FE;
        color: #FFF;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        padding: 15px 20px;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: none;
        outline: none;
    }

    .wrap .page-title-action:hover {
        background-color: #3F04FE;
        color: #FFF;
    }

    .wrap .page-title-action:before {
        content: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTMgMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNi41IDBjLjU1OCAwIDEuMDExLjQ1MyAxLjAxMSAxLjAxMVY1LjQ5aDQuNDc4YTEuMDExIDEuMDExIDAgMDEwIDIuMDIySDcuNTF2NC40NzhhMS4wMTEgMS4wMTEgMCAwMS0yLjAyMiAwVjcuNTFIMS4wMWExLjAxMSAxLjAxMSAwIDAxMC0yLjAyMmg0LjQ4VjEuMDFBMS4wMSAxLjAxIDAgMDE2LjUgMHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==);
        display: block;
        position: relative;
        width: 12px;
        height: auto;
    }


    /* -----start search box style----- */
    .search-box {
        position: absolute;
        top: 29px;
        right: 0;

        input[type="search"] {
            border-radius: 6px;
            border: 1px solid #D6CDF0;
            background-color: #FCFBFF;
            height: 40px;
            margin: 0;
            width: 240px;
            padding: 10px 40px 10px 15px;
            box-shadow: none;
            outline: none;
            color: #666666;
        }

        #search-submit {
            background: transparent;
            border: none;
            background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTggMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggc3Ryb2tlPSIjNjY2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNOC4yNSAxNWE2Ljc1IDYuNzUgMCAxMDAtMTMuNSA2Ljc1IDYuNzUgMCAwMDAgMTMuNXptNS45NDguNTE3Yy4zOTggMS4yIDEuMzA1IDEuMzIgMi4wMDMuMjcuNjM3LS45Ni4yMTctMS43NDctLjkzOC0xLjc0Ny0uODU1LS4wMDgtMS4zMzUuNjYtMS4wNjUgMS40Nzd6Ii8+PC9zdmc+");
            background-repeat: no-repeat;
            background-size: 18px;
            background-position: calc(100% - 12px) center;
            text-indent: -999px;
            font-size: 0px;
            line-height: 1;
            width: 40px;
            height: 38px;
            position: absolute;
            right: 0;
            padding: 0;
            z-index: 1;
        }

    }
    /* -----end search box style----- */


    /* -----start filter style----- */
    .tablenav {
        height: auto;

        .actions {
            select {
                border-radius: 6px;
                border: 1px solid #D6CDF0;
                background-color: #FCFBFF;
                padding: 12px 35px 12px 14px;
                line-height: 1;
                color: #73707D;
                font-size: 15px;
                font-weight: 400;
                background-position: calc(100% - 12px) 13px;
                box-shadow: none;
                outline: none;
            }

            input[type="submit"] {
                border-radius: 6px;
                border: 1px solid #D6CDF0;
                background-color: #FCFBFF;
                padding: 12px 14px;
                line-height: 1;
                color: #73707D;
                font-size: 15px;
                font-weight: 400;
                box-shadow: none;
                outline: none;
            }
        }

        &.top {
            margin-bottom: 10px;

            .tablenav-pages {
                display: none;
            }
        }

    }
    /* -----end filter style----- */


    /* -----start pagination style----- */
    .tablenav.top 
    .pagination-links {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .tablenav-pages {
        .tablenav-pages-navspan,
        a.button,
        .current-page {
            margin: 0 2px 0 0;
            font-size: 15px;
            text-align: center;
            border: 1px solid #d1d0d6;
            color: #73707D;
            border-radius: 6px;
            height: 36px;
            width: 36px;
            box-shadow: none;
            outline: none;
        }

        .tablenav-pages-navspan,
        a.button span {
            font-size: 20px;
        }
    }
    /* -----end pagination style----- */


    .widefat * {
        box-sizing: border-box;
    }

    table.wp-list-table {
        border: none;
        border-radius: 5px;
        background: #FFF;
        box-shadow: 0px 1px 1px 0px #1e007d1a;

        thead tr {
            box-shadow: 0px 1px 1px 0px #411abc14;
            position: relative;
        }

        tfoot th,
        tfoot td,
        thead th,
        thead td {
            border: none;
        }

        tfoot th,
        tfoot th a,
        thead th,
        thead th a {
            color: #73707D;
            font-size: 14px;
            font-weight: 500;
            line-height: 1;
        }

        tfoot,
        thead {
            td {
                padding: 15px 16px;
            }

            a {
                display: flex;
                align-items: center;
                gap: 15px;

                &:hover {
                    color: #3F04FE;
                }

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

        tfoot th.sortable a span, 
        tfoot th.sorted a span,
        thead th.sortable a span, 
        thead th.sorted a span {
            float: none;
            cursor: pointer;
        }

        .sorting-indicator {
            width: 10px;
            height: 9px;
            margin-top: 0;
            margin-left: 0;
        }

        .sorting-indicator:before {
            display: block;
            width: 8px;
            top: -7px;
            left: 0;
        }

        .sorting-indicator.asc:before {
            content: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgOCA1IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIHN0cm9rZT0iIzczNzA3RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEgNGwzLTMgMyAzIi8+PC9zdmc+);
        }

        .sorting-indicator.desc:before {
            content: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgOCA1IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIHN0cm9rZT0iIzczNzA3RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEgMWwzIDMgMy0zIi8+PC9zdmc+);
        }

        &.striped>tbody>:nth-child(odd) {
            background-color: #EFEDF5;
        }

        &.striped>tbody>:nth-child(even) {
            background-color: #F7F6FC;
        }

        tbody {
            .wpvr-thumbnail-image {
                border-radius: 5px;
                object-fit: cover;
                display: block;
            }

            th:first-child {
                border-left: 2px solid #ffffff;
            }

            td {
                color: #73707D;
                font-size: 15px;
                font-weight: 400;
                line-height: 1.3;
                vertical-align: middle;
                padding: 13px 10px;

                &:last-child {
                    border-right: 2px solid #ffffff;
                }
            }

        }

        tfoot td.check-column,
        thead td.check-column {
            padding: 15px 0 15px 24px;
        }

        tbody th.check-column {
            padding: 23px 0 15px 22px;
        }


        /* -------checkbox stle--------- */
        tfoot .check-column input[type="checkbox"],
        thead .check-column input[type="checkbox"],
        tbody .check-column input[type="checkbox"] {
            box-shadow: none;
            width: 18px;
            height: 18px;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            border: 1px solid #D6CDF0;
            background: #FFF;
            margin: 0;
        }

        tfoot .check-column input[type=checkbox]:checked::before,
        thead .check-column input[type=checkbox]:checked::before,
        tbody .check-column input[type=checkbox]:checked::before {
            height: 18px;
            width: 20px;
            position: relative;
            top: 1px;
            left: 1px;
        }

        .check-column input:hover+label, 
        .check-column label:hover {
            background: #00000000;
        }

        tfoot th.column-title a,
        thead th.column-title a {
            padding-left: 24px;
        }

        tbody {
            td.title {
                padding-left: 23px;

                .row-title {
                    color: #0E003C;
                    font-size: 15px;
                    font-weight: 500;
                    line-height: 1.2;
                    box-shadow: none;

                    &:hover {
                        color: #3F04FE;
                    }
                }

                .row-actions button,
                .row-actions a,
                .row-actions {
                    color: #73707D;
                    font-size: 13px;
                    font-weight: 400;
                    line-height: 1.2;
                }

                .row-actions button:hover,
                .row-actions a:hover {
                    color: #3F04FE;
                }

                .row-actions .trash a {
                    color: #FF1F1F;
                }

            }

            td.type {
                .tour-type {
                    display: flex;
                    align-items: center;
                    gap: 7px;
                }
            }
        }

        #author,
        #thumbnail {
            width: 12%;
        }

        tbody {
            td.author a {
                color: #73707D;
                font-weight: 400;
                text-decoration: underline;

                &:hover {
                    color: #3f05fe;
                }
            }

            td.date {
                font-size: 14px;
            }

            #wpvr-copy-shortcode-listing {
                display: flex;
                align-items: center;
                cursor: pointer;
                gap: 5px;
                position: relative;
                top: 2px;
            }

            .wpvr-listing-shortcode {
                display: flex;
                align-items: center;
                cursor: pointer;
                gap: 10px;
                position: relative;
                top: 2px;
            }

            .copy-shortcode-text {
                display: none;
                font-size: 12px;
                color: #27bb46;
            }

        }

    }

}


@media screen and (max-width: 1199px) {
    .wpvr-tour-list table.wp-list-table #type,
    .wpvr-tour-list table.wp-list-table #thumbnail {
        display: none;
    }

    .wpvr-tour-list table.wp-list-table tbody .column-type,
    .wpvr-tour-list table.wp-list-table tbody .column-thumbnail {
        display: none;
    }

    .wpvr-tour-list table.wp-list-table tfoot .column-type,
    .wpvr-tour-list table.wp-list-table tfoot .column-thumbnail {
        display: none;
    }
}


@media screen and (max-width: 782px) {
    .wpvr-tour-list .search-box {
        left: 0;
        right: inherit;
        width: 240px;
    }
    .wpvr-tour-list .search-box input[type=search] {
        width: 100%;
    }
    
    .wpvr-tour-list .search-box #search-submit {
        margin: 0;
    }

    .wpvr-tour-list table.wp-list-table tbody th.check-column {
        padding: 15px 0 15px 22px;
    }

    .wpvr-tour-list .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .wpvr-tour-list .wp-list-table td.column-date {
        padding-bottom: 15px !important;
    }

    .wpvr-tour-list .tablenav .tablenav-pages .button, 
    .wpvr-tour-list .tablenav .tablenav-pages .tablenav-pages-navspan {
        padding: 6px 8px;
    }

    .wpvr-tour-list .tablenav.bottom .tablenav-pages {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .wpvr-tour-list .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
        left: 23px;
    }

}


/* 
.wp-list-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    border-collapse: collapse;
}

.wp-list-table thead,
.wp-list-table tr {
    display: none;
}

.wp-list-table tbody tr {
    display: block;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp-list-table tbody tr td {
    display: block;
    margin-bottom: 10px;
}

.wp-list-table .column-thumbnail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
} */
