﻿/* Jquery DataTables */
/* GENERAL LAYOUT */


/* NESTED TABLE BUTTONS */

.icon::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

td.details-control::before {
    cursor: pointer;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f105";
}

tr.shown td.details-control::before {
    cursor: pointer;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f107";
}

/* DataTables Bootstrap 4 fixes */

/* PAGINATION FIXES */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #fff;
    padding: 0em 0em;
    margin-left: 0px;
    border: 0px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #fff;
    background: none;
    padding: 0em 0em;
    margin-left: 0px;
    border: 0px;
}

.dataTables_wrapper .dataTables_paginate .disabled.paginate_button,
.dataTables_wrapper .dataTables_paginate .disabled.paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .disabled.paginate_button:active {
    border: 0px;
}

/* CORRECT FILTER/LENGTH LAYOUT */

div.dataTables_wrapper div.dataTables_length label {
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

div.dataTables_wrapper div.dataTables_length select {
    width: auto;
    display: inline-block;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
}

div.dataTables_length {
    margin-right: 1em;
}

/* NESTED TABLES */

.nested-table {
    border: 1px solid #ddd;
    width: 100% !important;
}

.dataTable .dataTables_wrapper {
    margin-top: -9px;
    margin-right: -11px;
    margin-left: -12px;
    margin-bottom: -9px;
}

div.slider {
    display: none;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid #bbb;
}

table.dataTable.nested-table thead th,
table.dataTable.nested-table thead td {
    border: none;
    border-bottom: 1px solid #bbb;
}

table.dataTable.nested-table tbody tr:first-child th,
table.dataTable.nested-table tbody tr:first-child td {
    border-top: none;
}

table.dataTable.nested-table tbody th,
table.dataTable.nested-table tbody td {
    border-right: none;
}

table.dataTable.no-footer {
    border-bottom: 1px solid #bbb;
}

table.dataTable.nested-table tbody tr.odd,
table.dataTable.nested-table tbody tr.odd {
    background-color: #fff;
    border-top: none;
}

table.dataTable.nested-table tbody tr {
    background-color: #fff;
    border: none;
}

/* MISC LAYOUT FIXES */

table.dataTable {
    border-collapse: collapse;
}

    table.dataTable tbody td.no-padding {
        padding: 0;
    }

/* TOP BUTTON GRID FUNCTIONS */

.btn-grid-function {
    background-color: #fff;
}

.btn-grid-function.disabled {
    border-color: #007bff;
    cursor: default;
}

.highlight-cell {
    font-weight: bold;
    color: red;
}

.btn-cell-width {
    width: 100%;
}
