.ctl-theme-table-main-wrapper th,
.ctl-theme-table-main-wrapper td{
    position: relative;
}

.ctl-theme-table-main-wrapper table.table td.sorting,
.ctl-theme-table-main-wrapper table.table th.sorting{
    padding-right: 1.5rem;
}

.ctl-theme-table-main-wrapper table.table th.sorting{
    cursor: pointer;    
}

.ctl-theme-table-main-wrapper table.table th.sorting:before,
.ctl-theme-table-main-wrapper table.table th.sorting:after{
    position: absolute;
    display: block;
    opacity: .3;
    
    /*right: 0.75em;*/
    right: 0.5em;
    font-family: 'ctl-wp-studio-icons';
    font-weight: 900;
    font-size: 1rem;    

    z-index: 1;
}

.ctl-theme-table-main-wrapper table.table th.sorting:before{    
    content: "\e808";
	top: .4em;
}

.ctl-theme-table-main-wrapper table.table th.sorting:after{
    content: "\e807";
	top: 1.0em;
}

.ctl-theme-table-main-wrapper table.table-sm th.sorting:before{
	top: .0em;
}

.ctl-theme-table-main-wrapper table.table-sm th.sorting:after{
    top: .6em;
}

.ctl-theme-table-main-wrapper table.table th.sorting.sort-desc:after{
    opacity: 1;
}

.ctl-theme-table-main-wrapper table.table th.sorting.sort-asc:before{
    opacity: 1;
}

.ctl-theme-table-main-wrapper table.ctlgrouptablecols{
    margin-bottom: 0px;
    box-sizing: border-box;
} 

.ctl-theme-table-main-wrapper table.ctlgrouptablecols .editable{
    cursor: pointer;
}

.ctl-theme-tables-scrollable-wrapper,
.ctlgrouptablecols{
    margin: 0 auto;
}

.ctl-theme-tables-scrollable-wrapper{
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.ctl-theme-tables-scrollable-wrapper th,
.ctl-theme-tables-scrollable-wrapper td{
    display: table-cell;
    position: relative;
    
    vertical-align: top;
    box-sizing: border-box;
}

.ctl-theme-tables-scrollable-wrapper td{
    white-space: nowrap;
}

.ctl-theme-tables-wrapper{
    overflow-x: auto;
    box-sizing: border-box;
    min-height: 80px;
}

.ctl-theme-table-main-wrapper .table.ctlgrouptablecols th,
.ctl-theme-table-main-wrapper .table.ctlgrouptablecols td{
	min-width: 50px;
}

.ctl-theme-table-main-wrapper .table-cell-data{
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

.ctl-theme-table-main-wrapper .ctl-table-cell-data{
    position: relative;
}

.ctl-theme-table-main-wrapper .table td .ctl-table-cell-data{
    word-break: break-word;
    white-space: normal !important;
    display: inline-block;
}

.ctl-theme-table-main-wrapper .table td .ctl-table-cell-data .post-status{
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.ctl-theme-table-main-wrapper .table tr{
    margin-top : 0px !important;
    margin-bottom : 0px !important;
    margin-left : 30px !important;
    margin-right : 30px !important;
}

.ctl-theme-table-main-wrapper td .ctl-table-cell-data{
    font-size: 14px;
}

.ctl-theme-table-main-wrapper table.table tr td:first-child > div,
.ctl-theme-table-main-wrapper table.table tr th:first-child > div{
    padding-left: 20px;
}

.ctl-theme-table-main-wrapper table.table tr td:last-child:not(.sorting) > div,
.ctl-theme-table-main-wrapper table.table tr th:last-child:not(.sorting) > div {
    padding-right: 20px;
}

.ctlgrouptablecols.table thead th{
    vertical-align: top;
}

.table tfoot > tr:first-child td{
    border-top: 2px solid #dee2e6;
}

.ctl-table-row-actions > *{
    margin-right: 10px;
}
.ctl-table-row-actions > *:last-child{
    margin-right: 0px;
}


.ctl-theme-table-main-wrapper .table-footer-actions .btn{
    margin-right: 10px;
    margin-bottom: 10px;;
}

/*
.table-footer-actions .btn.btn-export-csv{
    margin-right: 0px;
    float: right;
}*/

.ctl-theme-table-main-wrapper .table-footer-actions .btn-text,
.ctl-theme-table-main-wrapper .ctl-table-row-actions .btn-text{
    margin-left: 5px!important;
}

.ctl-theme-table-main-wrapper tr[data-resource-id=table-fake-row]{
    display: none !important;
}

.ctl-table-instant-filters > label{
    margin-right: 15px;
    margin-bottom: 0px;
    display: inline-block;
}

.ctl-table-instant-filters ul{
    margin: 0px;
    padding: 0px;
    list-style: none;
    display: inline-block;
}


.ctl-table-instant-filters li > label{
    display: inline-block;
    margin: 0px;
}

.ctl-table-instant-filters li{
    display: inline-block;
    margin-right: 15px;
}

.ctl-table-instant-filters .custom-control-label{
    cursor: pointer;
}

.ctl-table-instant-filters .custom-control-inline{
    margin-right: 0px;
}

.ctl-table-instant-filters li:last-child{
    margin-right: 0px;
}

.ctl-theme-tables-search-in-table .input-group{
    align-items: start;
}

.ctl-theme-tables-list-attachments li{
    word-break: break-all;
    white-space: normal !important;
}

.ctl-table-cards .ctlgrouptablecols tbody tr td.ctl-table-td-actions:first-child{
	display: none !important;
}

.ctl-theme-table-main-wrapper .ctlgrouptablecols tfoot td{
    font-weight: bold;
}

.bp-up-to-sm .table-footer-actions .btn-action-maximize .btn-text,
.bp-up-to-sm .table-footer-actions .btn-export-csv .btn-text,
.bp-up-to-sm .table-footer-actions .btn-action-print .btn-text,
.bp-up-to-sm .table-footer-actions .ctl-table-action-toggle-view .btn-text,
.bp-up-to-sm .table-footer-actions .btn-refresh-page .btn-text{
    display: none;
}

.ctl-table-th-cell-festivity .ctl-table-cell-data{
    color: #f00;
}

.ctl-theme-tables-inline-list-items{
    margin: 0px;
}

.ctl-theme-tables-inline-list-items li{
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

@media print{    
    .ctl-theme-table-main-wrapper table th.sorting:before,
    .ctl-theme-table-main-wrapper table th.sorting:after{
        display: none !important;
    }
}

    .ctl-table-cards .ctlgrouptablecols{
        background: none !important;
        border: none !important;

        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;    
    }

    .ctl-table-cards .ctlgrouptablecols thead, .ctl-table-cards .ctlgrouptablecols tfoot {
        display: none;
    }

    .ctl-table-cards.ctl-table-cards-distribution-6 .ctlgrouptablecols .tr{
        -ms-flex: 0 0 16.666%;
        flex: 0 0 16.666%;
        max-width: 16.666%;  
    }

    .ctl-table-cards.ctl-table-cards-distribution-5 .ctlgrouptablecols tr{
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;  
    }

    .ctl-table-cards.ctl-table-cards-distribution-4 .ctlgrouptablecols tr{
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;  
    }

    .ctl-table-cards.ctl-table-cards-distribution-3 .ctlgrouptablecols tr{
        -ms-flex: 0 0 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;  
    }

    .ctl-table-cards.ctl-table-cards-distribution-2 .ctlgrouptablecols tr{
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;  
    }  
    
    .ctl-table-cards.ctl-table-cards-distribution-1 .ctlgrouptablecols tr{
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;  
    }      

    .ctl-table-cards .ctlgrouptablecols tr{
        position: relative;
        display: block;
        /* padding: 30px; */       
        margin-bottom: 15px;
    }

    .ctl-table-cards .ctlgrouptablecols tr:after{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0px;
        top: 0px;
        border-radius: .25rem;
        border: 1px solid grey;
        z-index: -1;
    } 

    .ctl-table-cards .ctlgrouptablecols tfoot tr:before{
        content:attr(data-title);
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .ctl-table-cards .ctlgrouptablecols tbody,
    .ctl-table-cards .ctlgrouptablecols tfoot {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        /*
        margin-right: -15px;
        margin-left: -15px; */
    }

    .ctl-table-cards.ctl-table-cards-alignment-left .ctlgrouptablecols tbody{
        justify-content: left;
    }
    .ctl-table-cards.ctl-table-cards-alignment-center .ctlgrouptablecols tbody{
        justify-content: center;
    }        
    .ctl-table-cards.ctl-table-cards-alignment-right .ctlgrouptablecols tbody{
        justify-content: right;
    }

    .ctl-table-cards .ctlgrouptablecols td:not(.ctl-table-footer-td-display-none, .d-none) {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        text-align: left !important;
    }

    table.table .ctl-card-content-title{
        display: none;
    }

    label.ctl-card-content-title{
        margin-bottom: 0px;
    }

    .ctl-table-cards td label.ctl-card-content-title{
        font-size: 12px;
        font-weight: bold;;
    }

    .ctl-table-cards .ctl-table-cell-data{
        width: 100% !important;
        word-break: break-all;
        word-break: break-word;
        white-space: normal !important;
    }

    .ctl-table-cards .cardinality{
        display: none !important;
    }

    .ctl-table-cards .ctl-theme-tables-wrapper{
        overflow-x: hidden;
    }    

    @media (max-width: 1200px){

        .ctl-table-cards.ctl-table-cards-distribution-6 .ctlgrouptablecols tr{
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;  
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 .ctlgrouptablecols tr{
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;             
        }

        .ctl-table-cards.ctl-table-cards-distribution-4 .ctlgrouptablecols tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-3 .ctlgrouptablecols tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-2 .ctlgrouptablecols tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%;  
        }           
    }

    @media (max-width: 992px){
        .ctl-table-cards.ctl-table-cards-distribution-6 .ctlgrouptablecols tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 .ctlgrouptablecols tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-4 .ctlgrouptablecols tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }                    
        
        .ctl-table-cards.ctl-table-cards-distribution-3 .ctlgrouptablecols tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%;  
        }       
        
        .ctlgrouptablecols.table-sm td, .ctlgrouptablecols.table-sm th{
            padding: 0.2rem;
        }        

        .ctlgrouptablecols.table-sm tfoot td,
        .ctlgrouptablecols.table-sm .ctl-table-cell-data{
            font-size: 12px;
            line-height: 18px;
        }

        .ctlgrouptablecols.table-sm .ctl-table-row-actions .btn{
            padding: 2px 5px;
            font-size: 12px;        
        }

        .ctl-theme-table-main-wrapper table.table.table-sm th.sorting:before, .ctl-theme-table-main-wrapper table.table.table-sm th.sorting:after{
            font-size: 0.8rem;
        }        
    }

    @media (max-width: 768px){
        .ctl-table-cards.ctl-table-cards-distribution-6 .ctlgrouptablecols tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 .ctlgrouptablecols tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }     
        
        .ctl-table-cards.ctl-table-cards-distribution-4 .ctlgrouptablecols tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%;  
        }           
    }
    
    @media (max-width: 576px){
        .ctl-table-cards.ctl-table-cards-distribution-6 .ctlgrouptablecols tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%; 
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 .ctlgrouptablecols tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%; 
        }          
    }    


.ctl-table-cards label.ctl-card-content-title{
    width: 30% !important;
    display: inline-block;
    position: relative;
}

.ctl-table-cards .ctl-table-cell-data{
    width: 70% !important;
    display: inline-block;
    text-align: right;
}

.ctl-table-cards .ctl-table-cell-data.ctl-table-row-actions{
    width: 100% !important;
    display: flex;
}

.ctl-table-cards .ctl-table-cell-data.ctl-table-row-actions .btn{
	width: 100%;
}

.ctl-table-cards .ctlgrouptablecols tfoot tr td,
.ctl-table-cards .ctlgrouptablecols tbody tr td{
    border-top: 1px solid #dedede;
}

.ctl-table-cards .ctlgrouptablecols tbody tr td,
.ctl-table-cards .ctlgrouptablecols tfoot tr td{
    padding: 5px 15px;
}

.ctl-table-cards .ctlgrouptablecols tbody tr td:first-child,
.ctl-table-cards .ctlgrouptablecols tfoot tr td:first-child{
    padding-top: 15px;
}

.ctl-table-cards .ctlgrouptablecols tbody tr td:last-child,
.ctl-table-cards .ctlgrouptablecols tfoot tr td:last-child{
    padding-bottom: 15px;
}

.ctl-table-cards .ctlgrouptablecols tfoot tr td.ctl-table-footer-td-display-none + td{
    border-top: none;
}

.ctl-table-cards .ctlgrouptablecols tfoot tr td:first-child,
.ctl-table-cards .ctlgrouptablecols tfoot tr td:last-child,
.ctl-table-cards .ctlgrouptablecols tbody tr td:first-child{
    border-top: none;
}

.ctl-table-cards .ctlgrouptablecols tbody tr td.ctl-table-row-actions:last-child{
    border-top: none;
}

.ctl-table-cards .ctl-table-footer-td-display-none{
    display: none !important;
}

.ctl-table-cards .ctlgrouptablecols td.tbl-td-post-sorting{
    display: none !important;
}

.ctl-table-cards .btn-delete-selected-rows,
.ctl-table-cards .multiple-selection{
    display: none !important;
}

.ctl-table-cards .ctl-card-cell-data-full-100 .ctl-table-cell-data{
    width: 100% !important;
    display: inline-block;
    text-align: inherit !important;
}

.bp-up-to-md .ctl-theme-tables-btn-today .btn-text {
    display: none;
}