/*by default I hide the original table to avoid the optical effect of building the table */
table.data-table,
.catflow-layout.catflow-preview table.data-table {
    /* display: none !important; */
    table-layout: auto;
}

.data-table.catflow-data-bound {
    visibility: hidden;
    display: none;
}

/*to display in layout editor*/
.catflow-layout .data-table.catflow-data-bound {
    visibility: visible;
    display: table;
}

table.data-table:not(.scrolx-activated) {
    width: 100% !important;
}

table.data-table.scrolx-activated {
    table-layout: fixed;
    min-width: 100%;
}

table.data-table .advanced_search_row .form-control {
    width: 100% !important;
}

table.data-table .advanced_search_row .hideCell {
    display: none !important;
}

.data-table .length_filter .right {
    text-align: right;
}

.data-table .length_filter .right .dataTables_filter {
    display: inline-block;
}

.data-table .length_filter .right .custom_combo {
    margin-right: 15px;
    cursor: pointer;
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
}

span.catflow-data-text.trim_one_line {
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.data-table div.dataTables_wrapper .dataTables_info {
    white-space: normal;
}

table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
    font-family: auto !important;
}

.data-table .length_filter .right .advanced_search_btn,
.data-table .length_filter .right .custom_view_btn,
.data-table .length_filter .right .save_btn {
    margin-left: 15px;
    cursor: pointer;
    color: #007ab8;
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
    line-height: 28px;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  cursor: pointer;
  *cursor: hand;
  background-repeat: no-repeat;
  background-position: 98% center;
  background-size: 9px;
} 

table.dataTable thead .sorting:after {
    opacity: 0 !important;
    content: "" !important;
}

table.dataTable thead .sorting_asc:after {
    content: "" !important;
}

table.dataTable thead .sorting_desc:after {
    content: "" !important;
}

table.dataTable thead .sorting {
    background-image: url("icons/sort_both.svg");
}

table.dataTable thead .sorting_asc {
    background-image: url("icons/sort_asc.svg");
}

table.dataTable thead .sorting_desc {
    background-image: url("icons/sort_desc.svg");
}

table.dataTable thead .sorting_asc_disabled {
    background-image: url("icons/sort_asc_disabled.svg");
}

table.dataTable thead .sorting_desc_disabled {
    background-image: url("icons/sort_desc_disabled.svg");
}

/*per gestire le date*/
table.data-table .catflow-data-text.date-hidden {
    font-size: 0;
}
table.data-table .catflow-data-text.date-hidden .date-insert-content:before {
    content: attr(catflow-data-text-content);
}

.data-table .container-dropView {
  position: relative;
}
.data-table .container-dropView .dropView {
    font-size: 1.2em;
    position: absolute;
    width: auto;
    right: 0;
    background-color: rgb(255, 255, 255);
    padding: 0.5em 1em;
    border: 1px solid #007ab8;
    border-radius: 10px;
    z-index: 5;
    cursor: default;
    color: #000000;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
} 
.data-table .container-dropView .dropView .viewLabel {
    display: block;
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.2em;
    padding-top: 0.15em;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.4em;
    font-weight: normal;
} 
.data-table .dropView .viewLabel input {
    position: absolute;
    z-index: -1;
    opacity: 0;
} 
.data-table .dropView .viewLabel .customCheckbox {
    position: absolute;
    top: 0.3em;
    left: 0;
    height: 1em;
    width: 1em;
    background: #ffffff;
    border: 1px solid #6a6d72;
    border-radius: 0px;
}
.data-table .dropView .viewLabel .customCheckbox:after {
    content: '';
    left: 0.25em;
    top: 0;
    width: 0.25em;
    height: 0.6em;
    border: solid #00a76d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.data-table .dropView .viewLabel input:checked ~ .customCheckbox:after {
    display: block;
}

/*select rows checkbox*/
table.dataTable tbody>tr.selected, 
table.dataTable tbody>tr>.selected {
    background-color: #f5f5f5 !important;
}
table.dataTable tbody tr.selected {
    color: #000000 !important;
}
table.dataTable tbody td.select-checkbox, 
table.dataTable tbody th.select-checkbox {
    width: 16px !important;
}
table.dataTable tbody td.select-checkbox:before, 
table.dataTable tbody th.select-checkbox:before {
    position: relative !important;
    background-color: #ffffff !important;
    top: 0 !important;
    left: calc(50% - 8px) !important;
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 0 !important;
    border-color: #6a6d72 !important;
}
table.dataTable tbody tr.selected td.select-checkbox:after, 
table.dataTable tbody tr.selected th.select-checkbox:after {
    margin: -6px !important;
    text-shadow: none !important;
    text-align: left !important;
    left: calc(50% + 3px) !important;
    top: -9px !important;
    width: 4px !important;
    height: 10px !important;
    border: solid #00a76d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: unset !important;
    position: relative !important;
    content: '' !important;
}

/*alert*/
.containerAlert {
    position: fixed;
    width: 100%;
    margin: 0 auto;
    height: auto;
    left: 0;
    top: 30px;
    z-index: 10000;
    text-align: center;
}
.alert {
    display: inline-block;
    max-width: 50%;
}