table {
    border-collapse: collapse;
    border-spacing: 0;
}

.datatable.loading:after {
    content: '';
    background: #dadada url('../images/loader.gif') no-repeat center;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    z-index: 105;
    display: block;
}

.datatable {
    position: relative;
    display: block;
    opacity: 1;
}

.datatable .pagination {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    list-style-type: none;
    width: 100%;
    display: inline-block;
    text-align: center;
}

.datatable .page {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    padding: 4px;
    background: white;
    cursor: pointer;
    border: 1px solid transparent;
    color: black;
}


.datatable .page.next,
.datatable .page.last,
.datatable .page.previous,
.datatable .page.first {
    width: 72px;
}
.datatable .page.hide {
    display: none;
}

.datatable .page.active {
    background: green;
    color: white;
    cursor: not-allowed;
}

.datatable .page:hover {
    border: 1px solid green;
}

.datatable table {
    width: 100%;
}

.datatable th, .datatable td {
    border: 1px solid black;
}

.datatable th.sort {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    background: url('../images/sort_both.png') no-repeat center right;
}

.datatable th.sort.asc {
    background: url('../images/sort_asc.png') no-repeat center right;
}

.datatable th.sort.desc {
    background: url('../images/sort_desc.png') no-repeat center right;
}

.hide {
    display: none;
}
