﻿/* datatable buttons */


.dt-buttons button.buttons-img {
    width: 32px;
    height: 28px;
    background-color: transparent;
    border: none;
}

.dt-buttons {
    margin-bottom: 0.33em;
}

.dt-buttons button {
    margin-right: 0.33em;
}

.dt-buttons button.buttons-img {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.dt-buttons button.buttons-img:hover {
    border: none;
    background-color: #CFD8E9;
}

.dt-buttons button.buttons-columns {
    background-image: url("/zoneworksxt/style/theme/default/column_display_black.png");
}

.dt-buttons button.buttons-export {
    background-image: url("/zoneworksxt/style/theme/default/export_black.png");
}

.dt-buttons button:not(.buttons-img) {
    color: black !important;
    background: #969696 !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
}

.dt-buttons button:not(.buttons-img):hover {
    color: white !important;
    background: black !important;
}

.dt-buttons button.disabled:not(.buttons-img),
.dt-buttons button.disabled:not(.buttons-img):hover,
.dt-buttons button.disabled:not(.buttons-img):active,
.dt-buttons button.disabled:not(.buttons-img):focus {
    background: #969696 !important;
    color: black !important;
    cursor: not-allowed;
    filter: alpha(opacity = 65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

.dt-button-collection .dt-button {
    background-color: #EEEEEE !important;
    color: #222222 !important;
    font-size: 17px !important;
    font-family: 'Segoe UI';
}

.dt-button-collection .dt-button:hover,
.dt-button-collection .dt-button.active {
    background-color: #CFD8E9 !important;
    color: #0b0f1e !important;
    outline: none !important;
}
.dt-length {
    display: inline;
    margin-left: 10px;
}

.dt-search {
    float: right;
}

.dt-search input {
    padding: 0.1em 0.5em;
    height: auto;
}

/* header */
.dt-scroll-head {
    background: black;
    color: #eee; 
    padding: 0.3em 0;
}

.dt-scroll-head th {
    padding-top: 0px;
    padding-bottom: 0px;
}

table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}


table.dataTable thead th {
    --bs-table-bg: transparent;
    --bs-table-color: #eee;
    --bs-border-width: 0px;
    font-weight: normal;
}
table.dataTable tbody td {
    --bs-border-width: 0px;
}

table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-stripe), 0.02);
}

table.table.dataTable.table-striped > tbody > tr.selected > * {
    --dt-row-selected: 176, 190, 217;    
    --dt-row-selected-text: 0,0,0;
}

table.dataTable thead th .dt-column-order::before,
table.dataTable thead th .dt-column-order::after {
    opacity: 0.5 !important;
    margin: 1px;
}

table.dataTable thead th.dt-ordering-asc .dt-column-order::before {
    opacity: 1 !important;
}

table.dataTable thead th.dt-ordering-desc .dt-column-order::after {
    opacity: 1 !important;
}

/* body */
table.dataTable td {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.dt-scroll-body {
    border-left: 1px solid #909090;
    border-right: 1px solid #909090;
    --bs-border-color: 1px solid #909090;
}

#dt-main .dt-scroll-body,
#dt-right .dt-scroll-body {
    background: #fff;
}

table.dataTable tbody tr {
    cursor: pointer;
}
table.dataTable tbody tr > td {
    vertical-align: middle;
}

.dt-device-icon {
    width: 38px;
    height: 38px;
    margin: 4px;
}

/* footer */
.datatables_footer {
    min-height: 30px;
}
.datatables_footer .dt-info {
    float: left;
}

.datatables_footer .dt-paging {
    float: right;
}
    
/* sub row */

.dt-subrow-btns {
    float: left;
    margin: 2px;
}

.dt-subrow-btns > .img-btn {
    width: 24px !important;
}

.child-row h2 {
    font-weight: bold;
    font-size: 1em;
    margin: 0 0 5px 0;
}


.dt-icon {
    border: none;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    height: 18px;
    min-width: 18px;
}

.dt-icon-notes {
    background-image: url(image/notes.png);
}

.dt-icon-check {
    background-image: url(image/check.png);
}

