﻿

/*Scrollable menu opcion*/
.scrollable-menu {
    height: auto;
    max-height: 300px;
    overflow-x: hidden;
}

.dt-button-collection {
    max-height: 250px;
    overflow-y: scroll;
}


table.ncgdrawtable {
    clear: both;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: separate !important;
}

    table.ncgdrawtable thead tr:nth-child(1) {
        background-color: #f8f9fa;
        /*background-color: #faf1ee;*/
        font-size: 14px;
    }

table.table-bordered.ncgdrawtable tbody th, table.table-bordered.ncgdrawtable tbody td {
    border-bottom-width: 0;
}

table.table-bordered.ncgdrawtable th, table.table-bordered.ncgdrawtable td {
    border-left-width: 0;
}

.ncgGruporow {
    cursor: pointer;
    background-color: #dee2e6;
    font-weight: bold;
    border-color: orangered;
}

    .ncgGruporow:hover {
        cursor: pointer;
        background-color: #c8d2dc;
        font-weight: bold;
        border-color: #7a7777;
        border-width: 1px;
        border-style: solid;
        color: #510a12;
    }

.ncgGruporowcounterLabel {
    background-color: #ff5d48 !important;
    border-radius: 0.25rem !important;
    color: honeydew;
    font-weight: bold;
    font-size: 11px;
}

.ncgdrawtable > .ncgGruporowcounterLabel:focus {
    background-color: #bd2130 !important;
}

.d-none {
    display: none !important;
}

.ncgd-grabbed {
    box-shadow: 0 0 13px #f21010;
    color: #5c1208;
    background-color: #febea5;
}

.ncgdrawtable tbody tr.ngcd-trSelected {
    background-color: #B0BED9;
}

    .ncgdrawtable tbody tr.ngcd-trSelected:hover {
        background-color: #8997AD;
        /*background-color: blue;*/
        color: white;
    }
.ncgdrawtable tbody tr.check-row-selected {
    background-color: #B0BED9;
}

    .ncgdrawtable tbody tr.check-row-selected:hover {
        background-color: #8997AD;
        /*background-color: blue;*/
        color: white;
    }

.ncgdrawtable tbody tr.selected-checked {
    background-color: #B0BED9;
}

.table-hover tbody tr:hover {
    color: #212529;
    background-color: #d2e4f7;
    /*rgba(0, 0, 0, 0.075);*/
    box-shadow: 0 0 10px #f7b0a7;
}
/*tr:hover{
     background-color: #d2e4f7;
     box-shadow: 0 0 10px #f7b0a7;
}*/
.ncgd-grabReorder {
    cursor: grab !important;
}

.ncgd-cSorter {
    cursor: alias !important;
}

.ncgd-grabCursor, .ncgd-grabCursor * {
    cursor: grabbing !important;
}

/*Table dta priority****************************************************************/
@media screen and (max-width: 1225px) and (min-width: 1045px) {
    /*.ncgd-table-priority {       
        width:100%;
    }*/
    .ncgd-table-priority .priority-5 {
        display: none;
    }
}

@media screen and (max-width: 1045px) and (min-width: 835px) {
    /*.ncgd-table-priority {      
        width:100%;
    }*/
    .ncgd-table-priority .priority-5 {
        display: none;
    }

    .ncgd-table-priority .priority-4 {
        display: none;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }

    @media screen and (max-width: 835px) and (min-width: 300px) {
        /*@media screen and (max-width: 565px) and (min-width: 300px) {*/
        /*.ncgd-table-priority {       
        width:100%;
    }*/
        .ncgd-table-priority .priority-5 {
            display: none;
        }

        .ncgd-table-priority .priority-4 {
            display: none;
        }

        .ncgd-table-priority .priority-3 {
            display: none;
        }
    }

    @media screen and (max-width: 300px) {
        .ncgd-table-priority {
            width: 100%;
        }

            .ncgd-table-priority .priority-5 {
                display: none;
            }

            .ncgd-table-priority.priority-4 {
                display: none;
            }

            .ncgd-table-priority .priority-3 {
                display: none;
            }

            .ncgd-table-priority .priority-2 {
                display: none;
            }
    }
    /*Table dta priority****************************************************************/

    /*Table Split**********************************************************************************/
    /*https://jsfiddle.net/RMarsh/bzuasLcz/3/*/

    @media (max-width: 575.98px) {
        .ncgd-table-split.table-responsive-sm {
            position: relative;
            overflow-x: hidden;
        }
        /* .ncg-search {
            width: 100px;
        }*/
    }

    @media (max-width: 767.98px) {
        .ncgd-table-split.table-responsive-md {
            position: relative;
            overflow-x: hidden;
        }

        .ncg-search {
            width: 130px;
        }
    }

    @media (max-width: 991.98px) {
        .ncgd-table-split.table-responsive-lg {
            position: relative;
            overflow-x: hidden;
        }
    }

    @media (max-width: 1199.98px) {
        .ncgd-table-split.table-responsive-xl {
            position: relative;
            overflow-x: hidden;
        }
    }

    .table-wrapper-ncgdrawtable-responsive.ncgd-table-split.table-responsive {
        position: relative;
        overflow-x: hidden;
    }



    .ncgd-table-split thead {
        position: relative;
        display: inline-block;
        width: 96.5%;
        overflow: visible;
    }

        .ncgd-table-split thead tr th:nth-child(1) {
            position: relative;
            display: block;
            background-color: #88b;
        }


    .ncgd-table-split tbody {
        position: relative;
        display: block;
        /*width:1000px;*/ /*Se pasa desde el drawtable*/
        height: 250px;
        overflow: scroll;
    }
        /*tr:not(.ncgGrupotrow)*/
        .ncgd-table-split tbody tr td:nth-child(1) {
            position: relative;
            display: block;
            background-color: #99a;
        }

            .ncgd-table-split tbody tr td:nth-child(1):hover {
                color: #1258e9;
                background-color: #d2e4f7;
                box-shadow: 0 0 10px #f7b0a7;
            }

    /*Table Split**********************************************************************************/
    .btn-group-xs > .btn, .btn-xs {
        padding: 1px 5px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
    }

    text-wrap {
        white-space: normal !important;
    }

    text-nowrap {
        white-space: nowrap !important;
    }

    text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /*td {
        word-wrap: break-word;
        word-break:break-all;
        white-space: normal;
    }*/
    td {
        word-wrap: break-word;
        word-break: break-all;
        white-space: nowrap !important;
    }

    .dropdown-item {
        white-space: nowrap !important;
    }


    /* Absolute Center Spinner ********************************************************************************************/
    .ncgd-spiner-loading {
        position: fixed;
        z-index: 999;
        height: 2em;
        width: 2em;
        overflow: show;
        margin: auto;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        vertical-align: middle;
    }

        /* Transparent Overlay */
        .ncgd-spiner-loading:before {
            content: '';
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*z-index: 2;*/
            /*background-color: rgba(0,0,0,0.3);*/
            /*background-color: rgba(255, 255, 255, 0.3);*/
        }

    .ncgd-spiner-loading-body {
        border: 1px solid;
        width: 250px;
        height: auto;
        content: none;
        background-color: #daedf3;
        border-radius: 8px;
        color: #060652;
        vertical-align: middle;
        margin-left: -110px;
    }

    .ncgd-spiner-overlay-content {
        position: absolute;
        /*top: 250px; se carga en el spinner
        left: 22px;
        width: 3277px;
        height: 83px;*/
        z-index: 998;
        opacity: 0.7;
        background-color: #fff;
    }
    /* Absolute Center Spinner ********************************************************************************************/

    /************************/
    /* Estilo responsivo para los botones del SweetAlert2 */
    
