/**
 * Tables
 * @author	CLARANET
 */

/* DataTables */

/* hide sorting arrows for unsorted columns until mouse hover the table */
table.table-data:not(:hover) thead th.sorting:before,
table.table-data:not(:hover) thead th.sorting:after {
	content: '';
}

/* match column colour to rest */
table.table-data thead.thead-dark th {
	background-color: #333;
	border-color	: #333;
}

/* style pagination */
.dataTables_paginate {
	float: right;
}

/* rows per page */
.dataTables_length {
	text-align: center;
}

/* make table actions into a vertical menu */
#table_actions_buttons .dt-buttons {
	display: block;
}

/* style table export messages to look more like toasts */
#datatables_buttons_info {
	position		: absolute;
	left			: auto;
	right			: 0;
	top				: 0;
	margin			: 1rem;
	max-width		: 350px;
	overflow		: hidden;
	border			: 1px solid rgba(0,0,0,.1);
	font-size		: .875rem;
	text-align		: left;
	background-color: #fff;
	background-clip	: padding-box;
	box-shadow		: 0 0.25rem 0.75rem rgba(0,0,0,.1);
	z-index			: 21;
}

	#datatables_buttons_info h2 {
		margin			: 0;
		padding			: 1rem;
		border-bottom	: 1px solid rgba(0,0,0,.05);
		font-size		: 1rem;
		font-weight		: bolder;
		color			: #6c757d;
		background-color: rgba(255,255,255,.85);
		background-clip	: padding-box;
	}

	#datatables_buttons_info > div {
		padding: 1rem;
	}

/* style show more/less details on a child row */
td.table-data-details i.more {
	display	: inline-block;
	cursor	: pointer;
}

td.table-data-details i.less {
	display: none;
}

tr.shown td.table-data-details i.more {
	display: none;
}

tr.shown td.table-data-details i.less {
	display	: inline-block;
	cursor	: pointer;
}