/* Datatable header */
div.datatable-header,
div.datatable-footer {
    padding: 0 1.5rem;
}
@media (max-width: 768px) {
    div.datatable-header div.dataTables_filter {
        text-align: left;
    }
    div.datatable-header div.dataTables_filter select.custom-select {
        width: calc(100% - 48px);
    }
    div.datatable-header div.dataTables_filter > label {
        width: calc(100% - 48px);
    }
    div.datatable-header div.dataTables_filter > label > input {
        margin-left: 0;
        width: 100%;
    }
}

/* Datatable */
div.table-responsive table.table {
    width: 100% !important;
}
table.table.dataTable.stripe tr.even {
    background: #f6fafc;
}
table.table.dataTable tbody td {
    vertical-align: middle;
}
table.table.dataTable.stripe td,
table.table.dataTable.stripe td {
    border-top: 0;
}

/* Datatatable loading indicator */
div.datatable-loading-spinner {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 50%;
    transform: translateY(-25px);
    height: 50px;
    text-align: center;
    font-size: 2em;
    color: #cc52c2;
}


/* Datatable pagination for big screens */
@media only screen and (min-width: 600px) {
    div.datatable-container ul.pagination {
        padding-bottom: 5px;
    }
    div.datatable-container .page-link {
        width: 38px;
        text-align: center;
        height: 38px;
        line-height: 1.85em;
        border-radius: 19px!important;
        margin-left: 10px;
        box-shadow: 0px 3px 6px #2C28281C;
        font-size: 0.85em;
    }
}
div.datatable-container .page-item.active .page-link {
    background-color: #7764E4;
}


/* Datatable inputs */
#bootstrap-override-1 div.datatable-header input.form-control {
    box-shadow: 0px 3px 6px #1717172D;
    border: 1px solid #172B4D;
    border-radius: 25px;
    padding: 20px;
}
#bootstrap-override-1 div.datatable-header select.form-control {
     box-shadow: 0px 3px 6px #1717172D;
     border: 1px solid #172B4D;
     border-radius: 25px;
     padding: 0 15px;
     width: 170px;
     height: 42px;
}
#bootstrap-override-1 div.datatable-header select.form-control:focus,
#bootstrap-override-1 div.datatable-header input.form-control:focus {
    border: solid 1px #3B86FF;
}

/* Datatable refresh button */
div.datatable-refresh-button {
    background: #F7FAFC 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #172B4D;
    height: 42px;
    width: 42px;
    vertical-align: top;
    border-radius: 25px;
    margin-left: 6px;
    cursor: pointer;
    position: relative;
}
div.datatable-refresh-button svg {
    position: absolute;
    left: 8px;
    top: 8px;
}
div.datatable-refresh-button:hover {
    background-color: #2DCE98;
}
div.datatable-refresh-button:hover svg {
    stroke: #fff;
}

/* Datatable action buttons */
table.dataTable td.action-buttons-column {
    padding-right: 0;
    padding-left: 0;
}
div.action-button-container {
    width: 100%;
    text-align: center;
}
table.dataTable button.action-button {
    background: #F7FAFC 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #172B4D;
    height: 42px;
    width: 42px;
    vertical-align: top;
    border-radius: 25px;
    margin-left: 4px;
    cursor: pointer;
    position: relative;
    outline: 0;
}
table.dataTable button.action-button:first-child {
    margin-left: 0;
}
table.dataTable button.action-button:hover {
    background-color: #2DCE98;
}
table.dataTable button.action-button.release-tool {
    transform: rotateY(180deg);
}
table.dataTable button.action-button.service-tool:hover {
    background-color: #11CDEF;
}
table.dataTable button.action-button.reserve-tool:hover {
    background-color: #F53C56;
}
table.dataTable button.action-button:hover svg {
    stroke: #fff;
}

/* Datatable user avatar */
table.dataTable div.user-datatable-avatar {
    box-shadow: 0px 3px 6px #00000029;
    /*border: 1px solid #172B4D;*/
    height: 42px;
    width: 42px;
    vertical-align: top;
    border-radius: 25px;
    margin-left: 0;
    position: relative;
    outline: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Datatable overrides */
table.dataTable thead th {
    background-color: #F1F3F9;
    border-color: #F1F3F9;
    text-transform: uppercase;
    font-size: 0.8em;
    color: #8898AA;
}
table.dataTable thead th:nth-child(2),
table.dataTable tbody tr td:nth-child(2) {
    padding-left: 1rem;
}
table.dataTable.collapsed thead th:nth-child(2),
table.dataTable.collapsed tbody tr td:nth-child(2) {
    padding-left: 10px;
}
table.dataTable thead th:first-child,
table.dataTable tbody tr td:first-child {
    padding-left: 20px;
}
table.dataTable tr td.control:before {
    background-color: #11CDEF!important;
    line-height: 16px!important;
}
table.dataTable tr.parent td.control:before {
    background-color: red!important;
}
