#widgetModal *::-webkit-scrollbar {
    background-color: transparent;
    width: 9px;
    height: 9px;
    cursor: pointer;
}
#widgetModal *::-webkit-scrollbar-track {
    background-color: #ffffff2e;
}
#widgetModal *::-webkit-scrollbar-track:hover {
}
#widgetModal *::-webkit-scrollbar-thumb {
    background-color: #d2d2d2;
    border-radius: 16px;
}
#widgetModal *::-webkit-scrollbar-thumb:hover {
    background-color: #f4f4f4
}
#widgetModal *::-webkit-scrollbar-button {
    display:none
}

#widgetModal .modal-body{
    padding-top:0;
}

#report[data-id="0"] .edit-only{
    display: none;
}

#widgetModal {
    z-index: 10001;
}

.stats-widget-board{
    display: flex;
    flex: 1 1 auto;
    height: 100%;
}
.stats-element-panel {
    background-color: #313335;
    padding: 0 10px;
    height: 100%;
    width: 25%;
}
.stats-workspace-panel{
    height: 100%;
    flex-grow: 1;
}
.stats-report.new #filters{
    display:none;
}
.chart-title{
    margin: 5px;
}
.noData{
    display: block;
    width:100%;
    font-size: 30px;
    color:#bebebe;
    margin:15px;
    text-align: center;
}
.noData small{
    display: block;
    width:100%;
    font-size: 20px;
    color:#bebebe;
    margin:15px;
    text-align: center;
}
.prev-custom-treatment,
.prev-custom-query {
    color: #d1d1d1;
    cursor: pointer;
    display: inline-block;
    border: 1px solid #d1d1d1;
    background: transparent;
}
.prev-custom-treatment:hover,
.prev-custom-query:hover {
    border-color: #f3f3f3;
    color: #f3f3f3;
}
.chart-menu{
    padding:0;
    text-align: right;
    margin: 5px;
}
.chart-menu li{
    display: inline-block;
    cursor: pointer;
    color: #222222;
    list-style-type: none;
    padding: 5px;
    transition: all 0.15s ease-in-out;
    opacity: 0.5;
}
.chart-menu li:hover{
    opacity: 0.8;
}
.color-chooser{
    padding: .375rem;
    width: 38px;
}
.report-sheet-menu{
    padding: 0;
    margin: 0;
}
.report-sheet-menu li{
    display: inline-block;
    padding:10px;
    float: right;
}
.report .report-sheet-menu i{
    font-size: 14px;
}
.report-sheet-menu::after{
    content : ' ';
    display: block;
    clear: both;
}
.thead-inverse-blue th {
    color: #fff;
    background-color: #1d74ca;
}
.grid-stack > .grid-stack-item > .grid-stack-item-content{
    overflow-x: initial!important;
    /*overflow-y: initial!important;*/
}
.grid-stack > .grid-stack-item > .grid-stack-item-content > div.alert.alert-danger{
    cursor: pointer;
}
.report-title {
    text-align: center;
}
.report-title h5{
    display:inline;
}
.report-title i{
    margin-left: 10px;
}
.report > a{
    height: 165px;
    padding-top: 35px;
    text-transform: uppercase;
    color:#ffffff;
    font-weight: bold;
    display: block;
    text-decoration: none;
}
.report{
    background-color: #8bc34a;
    padding:0px 0px 10px 0px;
    width: 200px;
    height: 200px;
    text-align: center;
    color:#ffffff;
    /*font-size: 50px;*/
    display: block;
    margin:10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s ease-in-out;

}
.report:hover{
    opacity: 1;
}
.report i{
    display: block;
    font-size: 50px;
    color:#ffffff;
}
.report:hover {
    text-decoration: none;
    color:#ffffff;
}
.addReport,.importReport{
    padding-top: 60px;
    background-color: #c1c1c1;
}
.addReport i,.importReport i{
    font-size: 80px;
}
.statsCell{
    overflow: hidden;
    min-height: 100px;
    border-radius: 3px;
    text-align: center;
    padding: 15px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    background: #ffffff;
    width: 100%;
    margin:15px 0;
    box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
}
.statsCell.empty{
    background: #dedede;
}

#stats-query-tables > ul > li{
    list-style-type: none;
    cursor: pointer;
}
#stats-query-tables > ul > li > ul{
    list-style-type: none;
    padding-left:10px;
}
#stats-query-tables > ul > li > ul > li{
    padding: 2px 2px 2px 5px;
    font-size: 11px;
}

.statistic-configure .statsCell:hover{
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
}
.statsCell .addData{
    margin:40px;
    font-size: 60px;
    color:#bebebe;
    display:none;
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}
.statsCell:hover .addData{
    opacity: 1;
}

.statsCell.empty .addData{
    display:block;
}

#widgetModal{
    color:#A0A0A0;
    padding-right: 0!important;
}

#widgetModal .form-control, #widgetModal .form-control-sm{
   background-color: #282828;
    border: 1px solid #201e1e;
    color: #5582af;
}

#widgetModal label{
    color: #A0A0A0;
}

#widgetModal .modal-dialog{
    max-width:100%;
    margin:0;
    height:100%;
}
#widgetModal .modal-content{
    border-radius: 0;
    height:100%;
}
#widgetModal .modal-body{
    padding-bottom:0;
    border-radius: none;
}
#widgetModal .modal-header{
    display: none;
}
#widgetModal .modal-footer{
    display:none;
    border:0;
}
#widgetModal .modal-body{
    background-color:#414141;
}
#widgetModal .tab-pane {
    padding: 15px;
}
#widgetTab .tab-pane{
    min-height: 675px;
}
#widget #workspace{
    background-color:#414141;
    height: 100%;
    width: 50%;
    max-height: 100%;
    padding-left: 0;
    padding-right: 0;
}
/** Gestion couleurs onglets module stats **/
#widgetModal .nav.nav-tabs{
    border-bottom: 1px solid #414141;
}
#widgetModal ul.nav.nav-tabs > li.nav-item{
}
#widgetModal ul.nav.nav-tabs > li.nav-item > a.nav-link{
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    color:#A0A0A0;
    background-color: #414141;
    transition: all .1s ease-in-out;
}
#widgetModal ul.nav.nav-tabs > li.nav-item > a.nav-link.active{
    border: 1px solid #414141;
    border-bottom: 1px solid #505050;
}
#widgetModal ul.nav.nav-tabs > li.nav-item > a.nav-link.active,
#widgetModal ul.nav.nav-tabs > li.nav-item > a.nav-link:hover{
    background-color:#505050;
    color:#D1D1D1;
}
#widgetModal .nav-tabs .nav-link:focus,
#widgetModal .nav-tabs .nav-link:hover {
    border-color: #414141;
}

/** Onglets couleur inversée **/
#widgetModal ul.nav.nav-tabs.inverted{
    border-bottom: 1px solid #505050;
}
#widgetModal ul.nav.nav-tabs.inverted > li.nav-item > a.nav-link.active{
    border: 1px solid #505050;
    border-bottom: 1px solid #414141;
}
#widgetModal ul.nav.nav-tabs.inverted > li.nav-item > a.nav-link{
    background-color: #505050;
}
#widgetModal ul.nav.nav-tabs.inverted + .tab-content,
#widgetModal ul.nav.nav-tabs.inverted > li.nav-item > a.nav-link.active,
#widgetModal ul.nav.nav-tabs.inverted > li.nav-item > a.nav-link:hover{
    background-color:#414141;
}
#widgetModal .workspace > .query-area,
#widgetModal .workspace > .tools-area {
    padding-right: 0
}
#widgetModal .nav-tabs.inverted .nav-link:focus,
#widgetModal .nav-tabs.inverted .nav-link:hover {
    border-color: #505050;
}
#widgetModal .tools-area .tab-content > .tab-pane {
    height: 762px;
    padding-left: 0;
    overflow-x: auto;
}
.module-statistic #workspace #save-overlay {
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #ffffff6e;
    position: absolute;
    z-index: 5;
}
.module-statistic #workspace #save-overlay > i {
    z-index: 10;
    color: #fff;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
}
#editorOutput {
    font-size: 0.9em;
}
#output-panel pre,
#editorOutput pre,
#output pre,
#preview-panel pre,
#widgetTabContent,
#widgetModal .widget-btn:hover{
    background-color:#505050;
    color:#D1D1D1;
}
#server-status code.error-code,
#output-panel code.error-code,
#editorOutput code.error-code,
#output code.error-code,
#preview-panel code.error-code{
    display: block;
    width: 100%;
    margin: auto;
    font-size: 14px;
    color: #ff808c;
    background-color: #222;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
}

#widgetModal .error-trace{
    display: none;
}
#widgetModal[data-isadmin="0"] .error-trace{
    display: block;
}

#server-status code.success-code,
#output-panel code.success-code,
#editorOutput code.success-code,
#output code.success-code,
#preview-panel code.success-code{
    color: #6bcf6b;
}
#edit-panel hr {
    margin: 0.375rem 0;
}
#widgetCloseBtn{
    margin-top: -50px;
}
#widgetModal .widget-btn{
    transition: all 0.15s ease-in-out;
    cursor:pointer;
    color:#A0A0A0;
    text-shadow:none;
    padding: 5px 10px;
    opacity: inherit;
    text-align: center;
    border-radius: 2px;
}
#widgetModal .widget-btn-sm{
    padding:2px 4px 2px 4px;
    font-size:11px;
}
#widgetModal th .widget-btn-sm{
    margin-top: 10px;
}
.widget-tree{
    margin:10px 0 0 0;
    font-size:13px;
}

#view.stats-widget-element i{
    font-size: 2rem;
}
ul#view.stats-widget-element {
    text-align: center;
}

ul#view.stats-widget-element li {
    cursor: pointer;
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 1px 5px 0;
    transition: all 0.15s ease-in-out;
    background-color: #282828;
    padding: 0.3em;
    text-align: center;
    display: inline-block;
}
.widget-tree .view-block h5{
       text-align: center;
}
.widget-tree .view-block{
    padding:10px 0 10px 0;
    margin:-10px;
    background-color:rgba(73, 73, 73, 0.5);
}

#widgetTabContent{
    height: 100%;

}

.table-tree{
    font-size:13px;
}
.widget-tree i:not(.no-margin), .table-tree i{
    margin: 0 5px 0 0;
}
#widgetProperties{
    cursor:pointer;
    display:inline;
}
#widgetProperties:hover{
    color:#D1D1D1;
    transition: color 0.1s ease-in-out;
}
#widgetProperties:hover:after{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f013";
    font-size: 13px;
    margin-left: 5px;
}
#widgetModal #elements tbody tr{
    cursor: pointer;
}
.stats-widget-element input{
    width: 100%;
}
.stats-widget-element select{
    font-size:13px;
    width:100px;
}
.stats-widget-element #label{
    height: 31px;
}

.stats-widget-element tbody td:first-child{
    white-space: nowrap;
    text-overflow: ellipsis;
    width: auto;
    overflow: hidden;
    display: block;
}


#widgetModal .stats-widget-element tr.active,
#widgetModal .stats-widget-element tbody tr:hover{
    background-color: #505050;
    color:#D1D1D1;
}
#widgetModal .stats-widget-element,
#widgetModal .stats-widget-element > thead,
#widgetModal .stats-widget-element td,
#widgetModal .stats-widget-element tr,
#widgetModal .stats-widget-element th {
    border:0;
}
#widgetModal .stats-widget-element tr{
    transition: background 0.15s ease-in-out;
}
#widgetModal .stats-widget-element td,
#widgetModal .stats-widget-element th {
    padding: 0.25em;
    font-weight: normal;
    vertical-align: middle;
    color: #A0A0A0;
}
ul.stats-widget-element{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
ul.stats-widget-element li.table-tree{
    background-color: #505050;
}
ul.stats-widget-element li{
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    background-color: #414141;
    padding: 0.3em;
}
ul.stats-widget-element li p{
   margin:0;
   padding:0;
}
ul.stats-widget-element li.table-tree:hover{
    background-color: #747474;
    color:#FFF;
}
ul.stats-widget-element li:hover{
    background-color: #505050;
    color:#D1D1D1;
}
ul.stats-widget-element li.selected {
    background-color: #007bff!important;
    color:#ffffff;
}

#preview-panel{
    overflow: auto;
}

#preview-panel table{
    background-color:#FFF;
    color:#000;
}

/*
.CodeMirror-gutter-elt {left: -29px !important}
*/

.widgetBlock .grid-stack-item-content{
    background:#dedede;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}
.statistic-configure .widgetBlock .grid-stack-item-content.active,.statistic-configure .widgetBlock .grid-stack-item-content.active:hover{
    box-shadow: 0px 0px 10px orange;
    -webkit-box-shadow: 0px 0px 10px orange;
    -moz-box-shadow:    0px 0px 10px orange;
}


#report.statistic-configure .ui-icon-gripsmall-diagonal-se{
    display: inline-block;
}

.statistic-configure .grid-stack-item-content:hover{
    box-shadow: 0px 0px 10px #cecece;
}
.widgetBlock .dataTables_wrapper {
    padding: 0 1rem;
}
.widgetBlock .widgetMenu{
    margin:-30px 0 0 0;
    padding:0;
    font-size: 40px;
    color:#ffffff;
    list-style-type: none;
    width: 100%;
    text-align: center;
    position:absolute;
    top:50%;
    left:0;
}

.widgetBlock .widgetMenu li{
    /*margin:30% 0 0 0;*/
    opacity: 0.3;
    cursor: pointer;
    color:#bfbfbf;
    display: inline-block;
    transition: all 0.15s ease-in-out;
}

.widgetBlock .widgetMenu li:hover{
    color:#cecece;
    opacity: 0.8;
}

.module-statistic.section-report .CodeMirror {
    padding: 0;
}

.outPreview{
    max-height: 150px;
}

#connection{
    margin-left:5px;
}

#database-add{
    margin-left:5px;
    cursor:pointer;
    color:#D1D1D1;
}

#database-add:before{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f067";
    font-size:13px;
    margin-left:4px;
}

#database-add:hover{
    color:#F3F3F3;
}

.table.dataTable.no-footer{
    border:0;
}

#statsTabContent #label{
    border-radius:0;
    width:400px;
}


#statsTabContent #filterTable{
    background: #ffffff;
}

#statsTabContent #filterTable tbody tr{
    cursor:move;
}


.widgetBlock-print{
    position:inherit!important;
    width:100%!important;
    display: block!important;
}


.widgetBlock-print .grid-stack>.grid-stack-item>.grid-stack-item-content{
    overflow: inherit!important;
    width:100%!important;
}


.stats-widget-element code {
    padding: 0 3px;
    font-size: 80%;
    color: #509cd7;
    background-color: #333;
    border-radius: 3px;
}


@media (min-width: 1541px){
    #stats-query-tables {
        height: 720px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 1540px){
    #stats-query-tables {
        height: 550px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* PRINT MODE */
@media print{
    .container-fluid{
        padding-top: 0px;
    }
    .filter-form label{
        font-size:11px;
        font-weight: bold;
    }
    .filter-form input{
        border: 0;
        padding: 0px;
        margin:0;
        font-size:11px;
    }
    .filter-form .col-xl-2{
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

}
