#tableTabContainer {
	width: 100%;
	height: 100%;
	position: absolute;
}

#table_tabs, #table-tab, #table_pane, #stats_table_wrapper {
	height: 100%;
	width: 100%;
}

table.dataTables_scroll {
	height: calc(100% - 35px);
	overflow-y: hidden;
	overflow-x: auto;
}

#tableTabContainer #table_select_tag {
	padding-left: 0;
	z-index: 5;
}

/* We use SmartAdmin Production Table Sort Arrows. */
/* Override DataTable Arrows TODO: Check if this is needed */
/*table.dataTable thead {
	background-image: none !important;
}*/
/* Override jQueryUI Arrows */
table.dataTable thead th div.DataTables_sort_wrapper span {
	display: none !important;
}

/*
table.dataTable thead .sorting, table.dataTable thead .sorting_desc {
	background-image: none;
}*/

/*
.dataTables_scroll {
	height: calc(100% - 55px); //Top header row (years) + enough space for the scroll bar (on those browsers with a permanently visible one)
	width: 100%;
}

.dataTables_scroll>.dataTables_scrollBody {
	height: calc(100% - 75px); // Related to the height of .dataTables_scroll - If not set correctly, the rows at the end could be cut off
}
*/

/*
Fixes a bug in IE11 where the table scroll doesn't work (both vertical and horizontal).
It doesn't seem to correctly inherit the height/width values of grandparent elements and only sets the values correctly
if the direct parent has those values set (or passed in from their parent).
*/
.DTFC_ScrollWrapper {
	width: 100%;
	height: 100%;
}

/* Disable the above for printing since that seems to cause the table to be cut off */
@media print {
	.DTFC_ScrollWrapper {
		width: inherit;
		height: inherit;
	}
}

#stats_table {
	width: 100%;
}
/* #table_pane .dataTables_scroll>.dataTables_scrollHead table>thead>tr:nth-child(1)>th:nth-child(1)*/
/*#stats_table>tbody>tr:nth-child(1)>td:nth-child(1) {
	min-width: 80px;
}*/
/*  #table_pane .dataTables_scroll>.dataTables_scrollHead table>thead>tr:nth-child(1)>th:nth-child(2)*/
/*
#stats_table>tbody>tr:nth-child(1)>td:nth-child(2) {
	min-width: 100px;
}
 */

#stats_table tbody tr, table.DTFC_Cloned tbody tr,.dataTables_scrollHead table thead tr {
	cursor:pointer;
}

.dataTables_scroll td.highlight {
	background-color: whitesmoke !important;
}
/*
.dataTables_scrollHead thead tr.row_selected td{
	border-bottom: none;
	border-right: none;
}

.dataTables_scrollHead table{
	border-spacing: 1px;
}*/

.DTTT_Print .dataTables_scrollBody{
	height:100%!important;
}

/* Table Fixed Header CSS */
.dataTables_scroll>.dataTables_scrollHead>.dataTables_scrollHeadInner th,
.dataTable.DTFC_Cloned>thead>tr>th,
.dataTables_scrollHead
{
	background-color: #eaeaea;
}
.dataTables_scroll>.dataTables_scrollHead>.dataTables_scrollHeadInner tr:first-child th,
.dataTable.DTFC_Cloned>thead>tr:first-child>th.ui-state-default
{
	background: 50% 50% url(custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png)
}

.dataTables_scroll>.dataTables_scrollHead thead:nth-child(1) th {
	cursor: pointer;
}

#stats_table_filter {
	float: left;
	min-height: 35px;
}

#stats_table>tbody>tr>td {
	text-align: right;
}

#stats_table td,
#stats_table th,
table.DTFC_Cloned.display tbody tr:first-child td
{
	border-top: 1px solid #ddd;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

#stats_table tr.selected,
.DTFC_Cloned tr.selected
{
	border: none!important;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
	-ms-overflow-style: -ms-autohiding-scrollbar;
	border-bottom: 1px solid #ddd;
}

table.dataTable {
	border-collapse: collapse;
}

table.dataTable thead th  {
	border: 1px solid #d3d3d3;
	border-bottom: 1px solid #d3d3d3;
}

#stats_table>tbody>tr>td:first-child, #stats_table>tbody>tr>td:nth-child(2) {
	text-align: left;
}

div.dt-buttons {
	position: absolute;
	top: -32px;
	right: 32px;
}

.dataTables_wrapper .ui-toolbar {
	padding: 0;
}

.dataTables_wrapper div.ui-toolbar.ui-widget-header {
	border: none;
	background: none;
	margin-bottom: 0;
	float: left;
}

/* Set min-widths for the LGA and Trend columns to prevent word wrapping which can bring the fixed columns out of alignment */
.table-header-value.lga {
	min-width: 125px;
}
.table-header-value.trend {
	min-width: 125px;
}
.sorting .table-header-value.lga {
	min-width: 117px;
}
.sorting .table-header-value.trend {
	min-width: 116px;	/* 1 px less than the above since we need to take into account borders on both sides */
}
.table-cell-value.lga {
	min-width: 125px;
}
.table-cell-value.trend {
	min-width: 125px;
}

/* Hide the cloned DataTable column from displaying while we're printing */
@media print {
	table.dataTable.DTFC_Cloned {
		display: none;
	}
}

#stats_table tbody td {
	border-left: 1px solid white;
}

table.fixedHeader-floating {
	display: none;
}

div.dts div.dataTables_scrollBody {
	background: none;
}

.DTFC_Cloned {
	top : auto !important;
}

.DTFC_Cloned thead {
	display: none !important;
}

#stats_table_wrapper {
	padding-top: 36px;
}