.datatable {
    background: #fff;
}

.datatable .dt-search {
    /* Contains the floated search box (without clipping it) and leaves room above the table header. */
    display: flow-root;
    height: auto !important;   /* the library fixes it at 32px, which cut off the search box */
    padding: 2px 0;
    margin-bottom: 14px;
}
/* Only the data rows scroll: the search box above and the page numbers below stay where they are, and the header row
   stays at the top of the scrolling area. */
.datatable .dt-table {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}
.datatable .dt-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
/* The library clips the table (overflow: hidden), which stops a sticky header working. */
.datatable .dt-table table {
    overflow: visible !important;
}
.datatable .dt-search input {
    float: right;
    border: 1px solid #d9cbb5 !important;
    border-radius: 8px !important;
    outline: none;
    padding: 0 12px !important;
    line-height: 36px !important;
    margin: 0 !important;
    height: 36px !important;
    min-height: 0 !important;
    background: #fff !important;
    width: 240px;
    max-width: 100%;
    font-size: 14px;
    transition: border-color .1s;
}
.datatable .dt-search input:focus {
    border-color: #CF7E19 !important;
    box-shadow: 0 0 0 2px rgba(207,126,25,.15);
}
.datatable .dt-search input::-moz-placeholder {
    color: #9e9e9e;
    line-height: 24px;
}
.datatable .dt-search input::placeholder {
    color: #9e9e9e;
    line-height: 24px;
}

.datatable thead:not([style*='hidden']) th {
    padding: 8px 0px 8px 16px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: #CF7E19;
}
.datatable .dt-table th.sortable {
    cursor: pointer;
}
.datatable .dt-table th.sortable span {
    padding-right: 16px;
    position: relative;
}
.datatable .dt-table th.sortable span:before,
.datatable .dt-table th.sortable span:after {
    border: 4px solid transparent;
    content: '';
    display: block;
    height: 0;
    right: 0;
    top: 50%;
    position: absolute;
    width: 0;
}
.datatable .dt-table th.sortable span:before {
    border-bottom-color: #bdbdbd;
    margin-top: -9px;
}
.datatable .dt-table th.sortable span:after {
    border-top-color: #bdbdbd;
    margin-top: 1px;
}
.datatable .dt-table th.sortable.asc:not(.desc) span:before {
    border-bottom-color: #616161;
}
.datatable .dt-table th.sortable.desc:not(.asc) span:after {
    border-top-color: #616161;
}
.datatable .dt-table th.filter {
    padding: 0;
    margin: 0;
    background-image: none;
    border: 1px solid #fafafa;
}
.datatable .dt-table th.filter input {
    background: #fff;
    height: 24px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: center;
    outline: none;
    border-radius: 0;
    font-size: 14px;
}
.datatable .dt-table th.filter input::-moz-placeholder {
    color: #bdbdbd;
    font-style: italic;
    font-size: 13px;
}
.datatable .dt-table th.filter input::placeholder {
    color: #bdbdbd;
    font-style: italic;
    font-size: 13px;
}

.datatable .dt-table {
    border-bottom: 1px solid #bdbdbd;
    scrollbar-width: thin;
}
.datatable .dt-table::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.datatable .dt-table::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.datatable .dt-table::-webkit-scrollbar-thumb {
    background: #c2c2c2;
}
.datatable .dt-table::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}
.datatable .dt-table::-webkit-scrollbar-track-piece:start {
    top: 40px;
}
.datatable .dt-table table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    margin-bottom: 6px;
}
.datatable .dt-table tbody tr {
    transition: all, 0.3s;
}
.datatable .dt-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}
.datatable .dt-table tbody tr:hover {
    background: #eee;
}

.datatable .dt-pagination {
    background: #fff;
    flex-direction: row-reverse;
}

.datatable .dt-pagination-buttons {
    height: 32px;
    margin-left: 16px;
}
.datatable .dt-pagination-buttons button {
    background: #eee;
    height: 32px;
    width: 32px;
    color: #424242;
    font-size: 13px;
    margin: 0 4px 0 0;
    padding: 0;
    transition: all, .2s;
    line-height: 32px;
    border: 1px solid #bdbdbd;
    outline: none;
    cursor: pointer;
    border-radius:2px;
}
.datatable .dt-pagination-buttons button:not(.text) {
    border-radius:50%;
    height: 24px;
    width: 24px;
    line-height: 24px;
    margin: 4px 4px 0 0;
}

.datatable .dt-pagination-buttons button:last-child {
    border-right: 1px solid #bdbdbd;
}
.datatable .dt-pagination-buttons button:not(.active):hover {
    background: #fafafa;
}
.datatable .dt-pagination-buttons button.text {
    width: auto;
    min-width: 70px;
}
.datatable .dt-pagination-buttons button.ellipse:hover {
    background: inherit;
    cursor: default;
}
.datatable .dt-pagination-buttons button.active {
    background: #333;
    color: #fafafa;
    font-weight: bold;
}
.datatable .dt-pagination-buttons button.disabled:hover {
    cursor: default;
}
.datatable .dt-pagination-buttons.mobile button.disabled {
    color: #bdbdbd;
}
.datatable .dt-pagination-buttons.mobile button {
    font-weight: bold;
}

.datatable .dt-pagination-rowcount {
    color: #616161;
    line-height: 32px;
    margin-right: 16px;
    font-size: 14px;
}

/* Readable header (white on Halfi orange) and light cell borders. */
.datatable .dt-table thead th {
    color: #fff !important;
    font-weight: 600;
}
.datatable .dt-table th,
.datatable .dt-table td {
    border-color: #efe5d6 !important;
}
.datatable .dt-search input {
    width: 260px !important;
}

