/*
 * Wspólne wskaźniki sortowania DataTables dla interfejsów 3.9.1 i 4.0.
 * Klasy nadaje DataTables, dlatego znaczniki pojawiają się wyłącznie na
 * kolumnach, które rzeczywiście można sortować.
 */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc,
table.dataTable thead th.sorting_asc_disabled,
table.dataTable thead th.sorting_desc_disabled,
table.display thead th.iac-sortable {
	position: relative;
	padding-right: 26px !important;
	background-image: none !important;
	cursor: pointer;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after,
table.dataTable thead th.sorting_asc_disabled::before,
table.dataTable thead th.sorting_asc_disabled::after,
table.dataTable thead th.sorting_desc_disabled::before,
table.dataTable thead th.sorting_desc_disabled::after,
table.display thead th.iac-sortable::before,
table.display thead th.iac-sortable::after {
	position: absolute;
	right: 7px;
	display: block;
	margin: 0;
	border: 0 !important;
	color: rgba(255, 255, 255, 0.48);
	font-size: 8px;
	line-height: 1;
	text-shadow: none;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_asc_disabled::before,
table.dataTable thead th.sorting_desc_disabled::before {
	top: calc(50% - 8px);
	content: "▲";
}

table.display thead th.iac-sortable::before {
	top: calc(50% - 8px);
	content: "▲";
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after,
table.dataTable thead th.sorting_asc_disabled::after,
table.dataTable thead th.sorting_desc_disabled::after {
	top: calc(50% + 1px);
	content: "▼";
}

table.display thead th.iac-sortable::after {
	top: calc(50% + 1px);
	content: "▼";
}

table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::after {
	color: #fff;
	opacity: 1;
}

table.display thead th.iac-sortable.iac-sorting-asc::before,
table.display thead th.iac-sortable.iac-sorting-desc::after {
	color: #fff;
	opacity: 1;
}

table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before {
	opacity: 0.24;
}

table.display thead th.iac-sortable.iac-sorting-asc::after,
table.display thead th.iac-sortable.iac-sorting-desc::before {
	opacity: 0.24;
}

table.dataTable thead th.sorting_asc_disabled::before,
table.dataTable thead th.sorting_desc_disabled::after {
	opacity: 0.18;
}

html.iac-local-391 table.dataTable thead th.sorting::before,
html.iac-local-391 table.dataTable thead th.sorting::after,
html.iac-local-391 table.dataTable thead th.sorting_asc::before,
html.iac-local-391 table.dataTable thead th.sorting_asc::after,
html.iac-local-391 table.dataTable thead th.sorting_desc::before,
html.iac-local-391 table.dataTable thead th.sorting_desc::after,
html.iac-local-391 table.dataTable thead th.sorting_asc_disabled::before,
html.iac-local-391 table.dataTable thead th.sorting_asc_disabled::after,
html.iac-local-391 table.dataTable thead th.sorting_desc_disabled::before,
html.iac-local-391 table.dataTable thead th.sorting_desc_disabled::after,
html.iac-local-391 table.display thead th.iac-sortable::before,
html.iac-local-391 table.display thead th.iac-sortable::after {
	color: rgba(51, 51, 51, 0.42);
}

html.iac-local-391 table.dataTable thead th.sorting_asc::before,
html.iac-local-391 table.dataTable thead th.sorting_desc::after {
	color: #1c4873;
	opacity: 1;
}

html.iac-local-391 table.display thead th.iac-sortable.iac-sorting-asc::before,
html.iac-local-391 table.display thead th.iac-sortable.iac-sorting-desc::after {
	color: #1c4873;
	opacity: 1;
}

table.dataTable thead th.sorting:focus-visible,
table.dataTable thead th.sorting_asc:focus-visible,
table.dataTable thead th.sorting_desc:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}

/* Drugi wiersz nagłówka służy wyłącznie filtrom i nigdy nie sortuje. */
table thead tr.iac-column-filters th {
	padding: 3px 4px !important;
	background: #eef1f2 !important;
	cursor: default !important;
}

table thead tr.iac-column-filters th::before,
table thead tr.iac-column-filters th::after {
	content: none !important;
}

.iac-column-filter {
	box-sizing: border-box;
	width: 100%;
	min-width: 38px;
	height: 24px;
	margin: 0;
	padding: 2px 5px;
	border: 1px solid #b8c0c4;
	border-radius: 2px;
	background: #fff;
	color: #333;
	font: 11px Arial, Helvetica, sans-serif;
}

.iac-column-filter:focus {
	border-color: #2c5884;
	outline: 1px solid #2c5884;
}

html:not(.iac-local-391) table thead tr.iac-column-filters th {
	background: #f4f7f6 !important;
}

html:not(.iac-local-391) .iac-column-filter:focus {
	border-color: #006b5a;
	outline-color: #006b5a;
}
