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

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

.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;    
}

.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 th,
.ctl-theme-table-main-wrapper 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 .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;
}


.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-theme-tables-action-view-record .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 tfoot{
    display: none;
}

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

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

.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;
}


@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 thead, .tfoot {
        display: none;
    }

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

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

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

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

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

    .ctl-table-cards tr{
        position: relative;
        padding: 30px;
    }

    .ctl-table-cards tr:before{
        content: "";
        position: absolute;
        width: calc( 100% - 30px );
        height: calc( 100% - 30px );
        left: 15px;
        top: 15px;
        border-radius: .25rem;
        border: 1px solid grey;
        z-index: -1;
    } 
    
    .ctl-table-cards tbody {
        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 tbody{
        justify-content: left;
    }
    .ctl-table-cards.ctl-table-cards-alignment-center tbody{
        justify-content: center;
    }        
    .ctl-table-cards.ctl-table-cards-alignment-right tbody{
        justify-content: right;
    }

    .ctl-table-cards td {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
    }

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

    .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 tr{
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;  
        }

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

        .ctl-table-cards.ctl-table-cards-distribution-4 tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-3 tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-2 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 tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 tr{
            -ms-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            max-width: 33.333%;  
        }   
        
        .ctl-table-cards.ctl-table-cards-distribution-4 tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }                    
        
        .ctl-table-cards.ctl-table-cards-distribution-3 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 tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }

        .ctl-table-cards.ctl-table-cards-distribution-5 tr{
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;  
        }     
        
        .ctl-table-cards.ctl-table-cards-distribution-4 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 tr{
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%; 
        }

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