/*
 * OSCAR look for DataTables 3, matching the old DataTables 1.9/1.10 stylesheet the app used:
 * compact cells, left-aligned numbers/dates, normal-weight headers and jQuery UI sort icons.
 * Load after the DataTables CSS (see element/datatable_ui).
 */
table.dataTable.display {
	--dt-header_padding: 3px 3px 3px 10px;
	--dt-body_padding: 4px 3px;
}
table.dataTable.display th.dt-type-numeric, table.dataTable.display th.dt-type-date,
table.dataTable.display td.dt-type-numeric, table.dataTable.display td.dt-type-date {
	text-align: left;
}
table.dataTable.display th.dt-type-numeric div.dt-column-header,
table.dataTable.display th.dt-type-date div.dt-column-header {
	flex-direction: row;
}
div.dt-jqueryui table.dataTable thead > tr > th.ui-widget-header {
	font-weight: normal;
}

/* jQuery UI sort icons instead of the CSS arrows */
div.dt-jqueryui table.dataTable thead > tr > th .dt-column-order {
	width: 16px;
	height: 16px;
	align-self: center;
	background: url("images/ui-icons_888888_256x240.png") -128px 0 no-repeat;
}
div.dt-jqueryui table.dataTable thead > tr > th .dt-column-order:before,
div.dt-jqueryui table.dataTable thead > tr > th .dt-column-order:after {
	display: none;
}
div.dt-jqueryui table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order {
	background-position: 0 -16px;
}
div.dt-jqueryui table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order {
	background-position: -64px -16px;
}
div.dt-jqueryui table.dataTable thead > tr > th.dt-orderable-none:not(.dt-ordering-asc, .dt-ordering-desc) .dt-column-order {
	background: none;
}

/* Users/home history table: space between "Showing x to y" and the table, as before */
div.history-toolbar {
	padding: 3px 0 23px 0;
}

/* DataTables 3 marks the active page button with "current", which styles.css uses for the
   green "operational" tag icon */
.dt-paging .dt-paging-button.current {
	background-image: none;
}
