/***********************************************************
WRITE HERE YOUR CUSTOM STYLES, THIS FILE WILL BE PARSED IN ADDITION TO css/styles_screen.css AND, IF YOU USE A THEME DIFFERENT THAN "CLASSIC", IN ADDITION TO THE CORRESPONDING CSS FILE (E.G. FOR THE THEME "BLACK", THE FILE IS css/theme_black.css)
***********************************************************/

:empty:not([type="text"]):not([name="Charity_Objects"]):not([name="NotesOnDonation"]):not([name="Research_notes"]) {
	padding: 0;
}

body {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	background-color: #f6f6f6;
	font-size: 0.9rem;
}

textarea {
	padding: 0.5rem;
}

#top_messages + p,
#top_messages + p + h1 + p,
.title_items_master_details + p {
	max-height: 1.5rem;
	overflow: hidden;
	transition: max-height .5s ease;
	display: none;
}

#top_messages + p:hover {
	max-height: max-content;
}

.table_interface_container_table_content h1 {
	display: inline-block;
}

.table_interface_container_table_content h1::first-letter {
	text-transform: uppercase;
}

.table_interface_container_table_content .subtitle {
	visibility: hidden;
	width: 0;
	overflow: hidden;
	display: inline-block;
	height: 0;
}

p:not(.repaint):empty {
	display: none;
}

#dadabik_main_form > br {
	display: none;
}

.form_fields_set + br, .form_fields_set + br + br {
	display: none;
}

/*body:not(.featuredTrustsDetails):not(.trustGrantDetails)*/ p:has(.subtitle) {
	/* position: relative; */
	overflow: visible !important;
	font-size: 1.4rem;
	line-height: 2rem;
	display: inline-block;
}

body.featuredTrustsDetails p:has(.subtitle),
body.trustGrantsDetails p:has(.subtitle) {
	/* overflow: hidden !important; */
	/* width: 0; */
	margin: 0;
	line-height: auto;
	font-size: 1rem;
	transform: translateY(.5rem);
}

body.featuredTrustsDetails .subtitle,
body.trustGrantsDetails .subtitle {
	display: none;
}

body.featuredTrustsSearch p:has(.subtitle)::before,
body.trustGrantsSearch p:has(.subtitle)::before {
	font-weight: 600;
	padding: 0.15rem 0 0 .5rem;
	margin-left: .5rem;
	border-left: 1px solid #b7b7b7;
}
body.featuredTrustsSearch p:has(.subtitle)::before {
	content: 'Search for UK-based grant-makers';
}
body.trustGrantsSearch p:has(.subtitle)::before {
	content: 'Search for grants made to UK-based charities';
}

h2 {
	font-size: 2.488rem;
	line-height: calc(2.488rem * 1.15);
	text-align: center;
}
h3 {
	font-size: 2.074rem;
	line-height: calc(2.074rem * 1.15);
	text-align: center;
}
h4 {
	font-size: 1.728rem;
	line-height: calc(1.728rem * 1.15);
}
h5 {
	font-size: 1.44rem;
	line-height: calc(1.44rem * 1.15);
}
h6 {
	font-size: 1.2rem;
	line-height: calc(1.2rem * 1.15);
}

.select_element.select_element_change_language {
	display: none !important;
}

.powered_by_dadabik {
	display: none;
}

table.main_table + br, table.main_table + br + br,
table.table_interface_container + br, table.table_interface_container + br + br {
	display: none;
}

#dadabik_main_form + br,
#dadabik_main_form + br + br,
#dadabik_main_form + br + br + br {
	display: none;
}

.select_element_search_boolean_operator + br {
	display: none;
}

	/*body.featuredTrustsSearch:not(.advancedSearchToolsExtended) #dadabik_main_form,
	body.trustGrantsSearch:not(.advancedSearchToolsExtended) #dadabik_main_form {
		padding-bottom: 300px;
	}

	body.featuredTrustsSearch.advancedSearchToolsExtended #dadabik_main_form,
	body.trustGrantsSearch.advancedSearchToolsExtended #dadabik_main_form {
		padding-bottom: 0;
	}*/

#dadabik_main_form {
	padding-bottom: 10rem;
}

.main-menu {
    min-width: 100px;
    width: 100%;
    display: block;
    position: static;
    margin: 0;
    margin-top: 0.5em;
    background-color: #505050;
    box-shadow: none;
}

.main_table_td {
	background-color: #eee;
}

.td_content {
	background: linear-gradient(180deg, #eee 0%, #f6f6f6 calc((100% / 12) * 11));
}

.table_interface_container {
	border-bottom: medium none;
}

.table_interface_container_tr_top_menu .main-menu {
    display: flex;
}

/* Remove header and footer borders */
.fixed-header, .fixed-footer {
	border: none;
}

/* Hide smallscreen menu (desktop menu has been fixed as constant in DDB styles_screen css */
.main-menu-container {
	display: none !important;
}

/* Hide smallscreen burger grippy and user profile footer */
.fixed-header,
.fixed-footer {
	display: none !important;
}

/* Styles below for smallscreen */
@media screen and (max-width: 768px) {
	/* Fix DDB menu layout, covers adv search, csv export, etc. */
	/*.td_content {
		margin-top: 61px;
	}	
	.main-menu {
		margin-top: 0;
	}*/
}

/* Hide Dadabik-generated menu */
.table_interface_container_tr_logo, .table_interface_container_tr_top_menu {
	display: none;
}

/* Hide CSV export (temporary - rmv before launch) */
body.featuredTrustsSearchResults .table-operation-buttons-group:nth-child(2) {
	/*display: none;
	opacity: 0;*/
}


/*Customise user menu*/
.user-info a.btn {
	border-radius: 50%;
	height: calc( 2rem + 24px);
	width: calc( 2rem + 24px);
}

.user-info .btn .fa {
	font-size: 2rem;
	padding: 12px;
}

/* Hide double click to edit message */
#double_click_tooltip {
	display: none;
}

/* 
* Styling results table 
*************************/
/* Quick search box */
.grid-quick-filter {
	margin: 2.1rem 1.5rem 2.2rem;
	border-radius: 1.5rem;
	padding: 1rem 1rem 1em;
	border: medium none;
	background-color: #7697bd;
	color: #fff;
}

.select_element select {
	/*background-color: #05305e;
	color: #fff;*/
	border: medium none;
	width: 100%;
}

/* Status boxes */
.grid-status {
	display: flex;
	align-items: center;
	align-content: flex-end;
	/*gap: 0 1rem;*/
	flex-flow: wrap;
	text-align: left;
	padding: 0;
	margin: 0;
}

.grid-status > div {
	margin: .5rem .5rem .75rem;
}

/*.grid-status::before {
	content: '';
	width: 100%;
	order: 1;
}*/

#resultsControls > div {
	margin: 0;
	padding: 0;
	width: auto;
}

#resultsControls > div.grid-status__pagination, 
#resultsControls > div.grid-status__found-items, 
#resultsControls > #tableOps,
#resultTableToggles {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

#resultsControls > #tableOps,
#resultsControls > .grid-status__found-items {
	/*margin-right: 1rem;*/
}

#resultTableToggles {
	/* margin-left: -1px; */
	/* padding-left: 1rem; */
}

#resultsControls .table-operation-buttons {
	margin-right: 5px;
	margin-top: 0; /*Strips old style*/
	/*padding-right: 12px;*/
}

#resultsControls .btn.btn-primary {
	background-color: #05305e;
	border-radius: calc(2.4rem / 2);
	color: #fff;
	text-decoration: none;
	display: inline-block;
	font-size: 0.9rem;
	position: relative;
	max-height: 2.4rem;
	overflow: hidden;
	padding: .55rem 12px 9px 1.5rem;
	font-weight: 600;
}

#resultsControls .table-operation-buttons .btn.btn-primary {
	padding-left: 12px;
}
	
#resultsControls .btn .fa-file-excel-o.fa-lg {
	transform: scale(.815);
}

	@media screen and (max-width: 767px) {
		#resultsControls .btn.btn-primary {
			max-width: 2.4rem;
		}
	}
#resultsControls > div.grid-status__pagination {
	margin-left: 2px;
}
#resultsControls > div.grid-status__pagination, 
#resultsControls > div.grid-status__found-items,
#resultTableToggles {
	/* color: #fff; */
	/* background-color: #05305e; */
	/*border-radius: 1rem;
	padding: 7px 12px 8px;
	height: 2.4rem;*/
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.grid-status__found-items .text--regular::after {
	content: '\2005';
}

/* Table */
form[name="results_display_mode_form"] select {
	background-color: transparent;
	border: 1px solid #c4c4c4;
}

.results th.results.newlyRegistered,
.results td[data-field="Newly_registered"] {
	display: none;
}

.results th.results.amount,
.results th.results.Amount,
.results td[data-field="Amount"],
.results th.results.lowerGiftBand,
.results th.results.LowerGiftBand,
.results td[data-field="GiftBandLower"],
.results th.results.upperGiftBand,
.results th.results.UpperGiftBand,
.results td[data-field="GiftBandUpper"] {
	display: none;
}

.results.grantDataAvailable a,
.results.registeredCharityNumber a {
	overflow: hidden;
	position: relative;
}
	.results.registeredCharityNumber a {
		max-width: 128px;
	}
	.results.grantDataAvailable a{
		max-width: 96px;
	}

.results.grantDataAvailable a:hover,
.results.registeredCharityNumber a:hover {
	max-width: fit-content;
}

.results.registeredCharityNumber a::before,
.results.grantDataAvailable a::before {
	content: '[...]';
	display: block;
	position: absolute;
	overflow: hidden;
	background-color: #eee;
	right: 0;
	padding-left: .125rem;
	box-shadow: -1px 0px 2px #eee;
	opacity: 1;
}

.results.grantDataAvailable a:hover::before,
.results.registeredCharityNumber a:hover::before {
	opacity: 0;
}

.grid table {
	overflow: hidden;
}

.grid table tbody {
	background-image: linear-gradient(105deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.667) 100%), linear-gradient(15deG, rgba(115, 148, 183, 1) 0%, rgba(115, 148, 183, 0) 100%);
;
	color: #ffffff;
	position: relative;
	z-index: 0;
}
	.grid table tbody::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: -1;
		background: #05305e;
		opacity: .5;
	}
	
.grid table tbody a {
	color: #ffd700;
}

/* Headers */
.grid table thead {
	background: #eee;
	color: black;
	position: relative;
	z-index: 1;
}

.grid table thead th.results {
	padding-top: 1rem;
	position: relative;
}

/* Rows */
.grid table tbody tr,
.grid table tbody tr.tr_highlighted_onmouseover > td {
	background-color: transparent;
}

.grid table tbody tr {
	background-color: transparent;
}

.grid table tbody tr:nth-child(2n),
.grid table tbody tr:nth-child(2n).tr_highlighted_onmouseover > td {
	background-color: transparent;
}

.grid table tbody tr:hover {
	background-color: rgba(0,0,0,0.3);
}

.grid table tbody tr:nth-child(2n) {
	background-color: rgba(0,0,0,0.1);
}

.grid table tbody tr:nth-child(2n):hover {
	background-color: rgba(0,0,0,0.35);
}

.grid table tbody tr.tr_highlighted_onclick > td,
.grid table tbody tr:nth-child(2n).tr_highlighted_onclick > td  {
	background-color: rgba(0,0,0,.25);
}

.results_grid_cell:not([data-field="TrustLink"]):hover::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -9999px;
	bottom: -9999px;
	background-color: rgba(0,0,0,0.15);
	z-index: -1;
}

.grid table tbody tr.tr_highlighted_onmouseover > td.controls_2, 
.grid table tbody tr.tr_highlighted_onclick > td.controls_2 {
	/*background-color: #5F81A7;
    background-color: rgba(0,0,0,0.0);*/
}

.grid table tbody tr.tr_highlighted_onmouseover > td.controls_2,
.grid table tbody tr.tr_highlighted_onclick > td.controls_2 {
	background-image: none;
}

/*Select option lists */
:root {
  --select-border: #777;
  --select-focus: blue;
  --select-arrow: var(--select-border);
}

/*Reset everything on select lists*/
.grid-status__pagination select {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	border: none;
	/* padding-top: 0; */
	/* margin: 0; */
	/* width: 100%; */
	font-family: inherit;
	font-size: inherit;
	cursor: inherit;
	/* line-height: inherit; */
	outline: none;
	/* height: 1rem; */
	/* background-color: #05305e; */
}
.grid-status__pagination .grid__label {
	display: none;
}

/*.select_element.select_element_records_per_page::after {
	content: '\25BC';
	position: relative;
	height: 0;
	width: 0;
	display: inline-block;
	border-top: 0.5rem solid white;
	border-left: 0.5rem solid transparent;
	border-right: 0.5rem solid transparent;
	top: -0.7rem;
	z-index: 1;
	cursor: pointer;
	transition: border-top .5s ease;
}


.select_element.select_element_records_per_page:hover::after {
	border-top: 0.5rem solid #ffd700;
}*/

/*#resultsControls > div.grid-status__pagination {
	display: flex;
	align-items: center;
	padding: 0 12px;
	max-height: 3.6rem;
}*/

.grid-status__pagination select {
	/* background-color: #05305e; */
	cursor: pointer;
	/*position: relative;
	top: -0.5rem;
	left: 1px;*/
	border: 1px solid #cfcfcf;
	border-radius: .5rem;
}

.select_element.select_element_records_per_page {
	display: inherit;
	min-width: 36px;
}

.select_element_records_per_page {
	max-width: 3.5rem;
}

.select_element_records_per_page::after {
	/*content: '\25BC';*/
}

a[name="TrustGrants"] .grid-status__found-items { /* Grants results on trust details page only */
	margin-right: .5rem;
	padding-left: 1rem;
}

#records_per_page_form_0 {
	display: flex;
	align-items: center;
	/* padding: 0 12px; */
	/* max-height: 3.6rem; */
	flex-wrap: nowrap;
	/* align-items: revert-layer; */
}
#records_per_page_form_0::after {
	content: '\00a0results\00a0per\00a0page';
	/* margin-left: 0.6rem; */
	position: relative;
	top: -2px;
}

.grid-status-bottom__pages {
	width: auto;
	display: block;
}

#resultsControls .text--regular::after {
	content: '\2005';
}

.grid-status__found-items, .grid-status__pagination, .grid-status__pages {
	padding: 0;
}

#resultsControls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
}
	#resultsControls #tableOps {
		order: 1;
	}
	#resultsControls .grid-status__found-items {
		order: 2;
	}
	#resultsControls .grid-status__pagination {
		order: 3;
	}


#resultsControls,
.grid-status__pages {
	/* padding: 1rem; */
}
/*@media screen and (max-width: 1100px) {
	#resultsControls,
	#resultTableToggles {
		border-bottom: 1px solid #c5c5c5;
	}
		#resultsControls {
			flex-basis: 100%;
		}
		#resultTableToggles {
			flex-basis: 100%;
		}
}*/
.grid-status__pages {
	text-align: left;
	flex-grow: 2;
	display: flex;
	align-items: center;
	flex-basis: 100%;
}
	@media screen and (min-width: 650px) {
		.grid-status__pages {
			border-top: 1px solid #c4c4c4;
			margin: 0 !important;
			padding: .5rem .5rem 0;
		}
	}
	.grid-status__pages .pagination {
		order: 1;
		margin: 0;
	}

	.grid-status__pages .grid__label {
		order: 2;
		margin-left: .5rem;
		margin-right: .5rem;
	}

	.grid-status__pages a {
		text-align: center;
	}
	
a.disabled-export {
	position: relative;
}

a.disabled-export::before {
	content: '';
	position: absolute;
	inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
	z-index: 1;
	background: transparent;
	cursor: not-allowed;
}

a.disabled-export span,
a.disabled-export li {
	opacity: 0.5;
}
	
.grid-status-bottom__pages + br + .btn.btn-primary,
#top_messages + p + h1 + p + br + .btn.btn-primary  {
	margin-left: 1rem;
}

.pagination__separator {
	max-width: 0;
}

.pagination__current-page, .pagination__to-page {
	aspect-ratio: 1/1;
	height: 2.4rem;
	padding: 0;
	line-height: 2.4rem;
	width: 2.4rem;
	display: inline-block;
	margin: 0px 0px;
	border: medium none;
	border-radius: 50%;
}
	.pagination__current-page,
	.pagination__current-page:hover {
		background-color: #7697bd;
		text-decoration: none;
		color: #fff;
	}
	.pagination__to-page {
		color: #fff;
		background-color: #05305e;
		transition: color .5s ease, background-color .5s ease;
	}
	.pagination__to-page:hover,
	.pagination__to-page:active,
	.pagination__to-page:focus {
		background-color: #ffd700;
		color: #0a1a2c;
	}
	
/* Show Embed URL and Revisions - REMOVE */
button[onclick="if (document.getElementById('embed_code').style.display  === 'none'){document.getElementById('embed_code').style.display = 'block';}else{document.getElementById('embed_code').style.display = 'none'}"] {
	display: none;
}

.btn.btn-primary.show_revisions {
	display: none;
}
	
/* Advanced search page */
.noUi-target {
	background: transparent !important;
}

.form_row:not(#Row-Main-group):not(#Row-Other-groups):not(#Row-Force-password-change) .form_input_element div:not(.input-overlay) {
	height: 1.45rem;
	background-color: rgba(0,0,0,.3);
	border-radius: 0.725rem;
	width: 3.4rem;
	overflow: hidden;
	/* position: relative; */
	padding-top: 1.45rem;
	transition: background-color 1s ease, box-shadow 1s ease;
	box-shadow: 0 0 0 2px inset #05305e;
}

.form_row:not(#Row-Main-group):not(#Row-Other-groups):not(#Row-Force-password-change) .form_input_element.active div {
	background-color: #3c6356;
	box-shadow: 0 0 0 2px inset #05305e;
}

.UK-map-container-wrapper:has(#Scotland.active) #Regional_Scotland div,
.UK-map-container-wrapper:has(#Wales.active) #Regional_Wales div,
.UK-map-container-wrapper:has(#NorthernIreland.active) #Regional_NorthernIreland div,
.UK-map-container-wrapper:has(#EastMidlands.active) #Regional_EastMidlands div,
.UK-map-container-wrapper:has(#EastOfEngland.active) #Regional_EastOfEngland div,
.UK-map-container-wrapper:has(#GreaterLondon.active) #Regional_GreaterLondon div,
.UK-map-container-wrapper:has(#NorthEastEngland.active) #Regional_NorthEastEngland div,
.UK-map-container-wrapper:has(#NorthWestEngland.active) #Regional_NorthWestEngland div,
.UK-map-container-wrapper:has(#SouthEastEngland.active) #Regional_SouthEastEngland div,
.UK-map-container-wrapper:has(#SouthWestEngland.active) #Regional_SouthWestEngland div,
.UK-map-container-wrapper:has(#WestMidlandsRegion.active) #Regional_WestMidlandsRegion div,
.UK-map-container-wrapper:has(#YorkshireAndTheHumber.active) #Regional_YorkshireAndTheHumber div {
	/*background-color: #3c6356 !important;
	box-shadow: 0 0 0 2px inset #05305e !important;*/
}

input[type="radio"][value="No"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	z-index: 999;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
}
input[type="radio"][value="No"]:checked,
input[type="radio"][value="Removed"]:checked {
	cursor: default;
}
input[type="radio"][value="Yes"] {
	position: absolute;
	cursor: pointer;
	appearance: none;
	background-color: #A4A4A4;
	margin: 0;
	font: inherit;
	aspect-ratio: 1/1;
	height: 100%;
	border: 0.15rem solid #05305e;
	border-radius: 50%;
	left: 0;
	top: 0;
	z-index: 999;
	transition: left 1s ease, background-color 1s ease, background-position 1s ease, outline 1s ease;
	background-image: url('/assets/yes_no_sprite.png');
	background-size: auto 100%;
	background-position: 0% center;
	background-repeat: repeat-x;
	outline: 1px solid rgba(255,255,255,0);
}
input[type="radio"][value="Yes"]::after {
	content: '';
	display: block;
	height: 100%;
	width: 200%;
}
span.form_input_element.active input[type="radio"][value="Yes"]::after {
	position: relative;
	left: -100%;
}
input[type="radio"][value="Yes"]:not(:checked) {
	z-index: 9999;
}
input[type="radio"][value="Yes"]:checked {
	background-color: #ffffff;
	left: 32px;
	z-index: 9;
	transform: scale(1.01);
	background-position: -100% center;
	outline: 1px solid rgba(255,255,255,1);
}

input[type="radio"][value="No"]:checked::before {
	content: 'No';
	position: relative;
	display: inline-block;
}
.form_input_element.active input[type="radio"][value="Yes"]:checked {
	z-index: 9;
}
.form_input_element.active input[type="radio"][value="No"]:checked {
	z-index: 999999;
}

#Corporate-Foundation label:nth-of-type(2) {
	visibility: hidden;
	display: block;/*###*/
}
#Corporate-Foundation label:nth-of-type(2)::before {
	content: 'Exclude funders which will not accept unsolicited applications';
	display: block;
	visibility: visible;
	margin-bottom: -2.6rem;/*###*/
}

/*Trust status picker*/
#dadabik_main_form #Trust-Status {
	height: calc((3.4rem * 1.333) + 10px);
	align-items: flex-start;
	margin-top: 1rem;
	margin-bottom: 1rem;
}
#Trust_Status div {
	width: auto;
	overflow: visible;
	padding-top: 0;
	display: inline-grid;
	grid-template-columns: repeat(3, 80px [line]);
	grid-template-rows: [start] 2rem [line] auto [end];
	text-align: center;
	background: none;
}
	#Trust_Status div::after {
		content: '';
		position: absolute;
		background: #05305e;
		width: calc(100% - ( 3.4rem * 2 ) );
		height: 0.75rem;
		top: 0.9rem;
		left: 3.4rem;
	}
	#Trust_Status div input,
	#Trust_Status div span {
		margin: 0;		
	}
	#Trust_Status div span {
		margin-top: 0.5rem;
	}
	#Trust_Status div input[type="radio"] {
		appearance: none;
		background-color: #a4a4a4;
		border: 0.15rem solid #05305e;
		aspect-ratio: 1/1;
		height: 100%;
		border-radius: 50%;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		cursor: pointer;
		margin: 0;
		z-index: 9;
		font: inherit;
		transition: background-color 1s ease, background-position 1s ease;
		background-image: url('/assets/yes_no_sprite.png');
		background-size: auto 100%;
		background-position: 0% center;
		background-repeat: repeat-x;;
	}
	#Trust_Status div input[type="radio"]:checked {
		background-color: #fff;
		background-position: -100% center;
	}
	#Trust_Status div input[name="Active"] {
		order: 1;
	}
	#Trust_Status div input[name="Newly registered"] {
		order: 2;
	}
	#Trust_Status div input[name="Removed"] {
		order: 3;
	}
	#Trust_Status div span.active {
		order: 4;
	}
	#Trust_Status div span.newlyregistered {
		order: 5;
	}
	#Trust_Status div span.removed {
		order: 6;
	}

/*input[type="radio"][value="Removed"]:checked::before {
	content: 'Removed';
	position: relative;
	display: inline-block;
}*/

/*.form_input_element div:has(input[type="radio"][value="Yes"])::before,
.form_input_element div:has(input[type="radio"][value="No"])::before,
.form_input_element div:has(input[type="radio"][value="Active"])::before,
.form_input_element div:has(input[type="radio"][value="Removed"])::before {
	content: '';
	position: absolute;
	display: inline-block;
	left: -4rem;
	top: 0rem;
	transition: opacity 1s ease;
	opacity: 0;
}
.form_input_element div:has(input[type="radio"][value="Yes"]:checked)::before,
.form_input_element div:has(input[type="radio"][value="No"]:checked)::before,
.form_input_element div:has(input[type="radio"][value="Active"]:checked)::before,
.form_input_element div:has(input[type="radio"][value="Removed"]:checked)::before {
	opacity: 1;
}
.form_input_element div:has(input[type="radio"][value="Yes"]:checked)::before {
	content: 'Yes';
}
.form_input_element div:has(input[type="radio"][value="No"]:checked)::before {
	content: 'No';
}
.form_input_element div:has(input[type="radio"][value="Active"]:checked)::before {
	content: 'Active';
}
.form_input_element div:has(input[type="radio"][value="Removed"]:checked)::before {
	content: 'Removed';
}*/




/* 
* Styling login field
*************************/
.table_interface_container_login {
    animation: 4s ease 0s fadein;
}

@keyframes fadein {
    0% { 
		opacity: 0; 
	}
    50% {
		opacity: 0;
	}
    100% {
		opacity: 1; 
	}
}

@-webkit-keyframes fadein {
    0% { 
		opacity: 0; 
	}
    50% {
		opacity: 0;
	}
    100% {
		opacity: 1; 
	}
}

/* 
* Styling quick search fields
*************************/
.quick-filter-block:nth-last-child(-n+24) {
	/*display: none;*/
}

/* 
* Styling advanced search page - Grants
*************************/
#cont_field_button_hint_NotesOnDonation,
#NotesOnDonation,
input[name="NotesOnDonation"] {
	width: 100%;
}

#dadabik_main_form #Row-Donation-notes {
	margin: 4rem auto 0;
}

.advanced-search-section-wrapper #giftBandSlider,
#howMuchGrants.advanced-search-section-wrapper #Row-Upper-Gift-Band,
.advanced-search-section-wrapper #donation-year-radio-buttons-wrapper/*,
.advanced-search-section-wrapper #Row-Donation-notes*/ {
	display: none;
}

.advanced-search-section-wrapper.active #giftBandSlider/*,
.advanced-search-section-wrapper.active #Row-Donation-notes*/ {
	display: block;
}

.advanced-search-section-wrapper #donation-year-radio-buttons-wrapper {
	display: flex;
}

#howMuchGrants.advanced-search-section-wrapper.active #Row-Upper-Gift-Band {
	display: grid;
}

/* 
* Styling advanced search page - Trusts
*************************/
.select_element.select_element_search_boolean_operator {
	flex-basis: 264px;
}

.select_element.select_element_search_boolean_operator select {
	text-align: center;
	cursor: pointer;
	border: 1px solid #cfcfcf;
	border-top-left-radius: .5rem;
	border-top-right-radius: 0;
	border-bottom-left-radius: .5rem;
	border-bottom-right-radius: 0;
	background-color: transparent;
	height: 2.4rem;
}

/*@media screen and (max-wdith: 767pc) {
	.select_element.select_element_search_boolean_operator select {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}
}*/

label, .null_checkbox_cell, .form_input_element, .form_row, .form_hint, .previous_next_container, .form_fields_set {
	position: relative;
}

@media screen and (max-width: 767px) {
	label, .null_checkbox_cell, .form_input_element, .form_row, .form_hint, /*.previous_next_container,*/ .form_fields_set {
		/*display: table-cell;*/
		max-width: 100%;
		/*position: relative;*/
	}
}

.previous_next_container {
	/* transform: translateY(-6px); */
	height: 2.4rem;
	margin-left: .5rem;
}

body.featuredTrustsDetails .previous_next_container {
	display: none;
}

.previous_next_container a {
	/* color: rgb(255, 255, 255); */
	color: rgb(5, 48, 94);
	background-color: rgb(5, 48, 94);
	transition: color 0.5s, background-color 0.5s;
	border-radius: calc(2.4rem / 2);
	text-decoration: none;
	display: inline-block;
	font-size: 0.9rem;
	position: relative;
	overflow: hidden;
	max-height: 2.4rem;
	max-width: 2.4rem;
	border: medium none;
}
.previous_next_container a:after {
	color: rgb(255, 255, 255);
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	text-align: center;
	line-height: 2.4rem;
}
.previous_next_container a:hover:after {
	color: rgb(10, 26, 44);
}
.previous_next_container a:first-child:after {
	content: '<';
	transform: translateX(-5%) translateY(-3%);
}
.previous_next_container a:last-child:after {
	content: '>';
	transform: translateX(5%) translateY(-3%);
}

.previous_next_container a:hover, 
.previous_next_container a:active, 
.previous_next_container a:focus {
	background-color: rgb(255, 215, 0);
	/* color: rgb(10, 26, 44); */
	color: rgb(255, 215, 0);
}

body:not(.userManagement) .previous_next_container a:first-child {
	margin-right: -.5rem;
}

label {
	margin: 0;
	padding: 6px 12px 6px 0;
}

.form_fields_set {
	display: block;
}

body.featuredTrustsSearch .form_fields_set,
body.trustGrantsSearch .form_fields_set {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	padding-bottom: 1rem;
}

body.featuredTrustsSearch .form_fields_set > div,
body.trustGrantsSearch .form_fields_set > div {
	flex-basis: calc(50% - .5rem);
	flex-grow: 1;
	min-width: 720px;
	padding: 2rem 3rem 4rem;
}

.search_operator {
	padding: 0;
	vertical-align: middle;
}

.advanced-search-section-wrapper {
	padding: 1.5rem 1rem 4rem;
	border-radius: 1rem;
	border: 1px solid #ccc;
	margin: 0;
	position: relative;
	color: #fff;
}

#what {
	background-image: linear-gradient(#354b63 0%, #2e455e 100%);
}

#howMuch {
	background-image: linear-gradient(#2e455e 0%, #263e58 100%);
}

#where {
	background-image: linear-gradient(#263e58 0%, #1f3853 100%);
}

#who {
	background-image: linear-gradient(#1f3853 0%, #18324e 100%);
}


#fromGrants {
	background-image: linear-gradient(#1f3853 0%, #2B435C 100%);
}

#toGrants {
	background-image: linear-gradient(#2B435C 0%, #223A55 100%);
}

#howMuchGrants {
	background-image: linear-gradient(#223A55 0%, #18324e 100%);
}

/*#what::before,
#howMuch::before,
#where::before,
#who::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;*/
	/*z-index: -1;*/
	/*background: #05305e;
	opacity: .5;
}*/

.toggleActive {
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	color: #c5c5c5;
	border-bottom: 1px dotted #c5c5c5;
}
	.toggleActive:hover,
	.toggleActive:active,
	.toggleActive:focus {
		color: #fefefe;
		border-bottom: 1px dotted #fefefe;	
	}	
	.advanced-search-section-wrapper .toggleActive::before {
		content: '+ show ';
	}	
	.advanced-search-section-wrapper.active .toggleActive::before {
		content: '- hide ';
	}

.advanced-search-section-wrapper:not(#where) h2 {
	margin-bottom: 2.5rem;
}
.advanced-search-section-wrapper#where:not(.active) h2 {
	margin-bottom: 2.5rem;
}

.overflownY {
	position: relative;
}
	.overflownY::before {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background-image: linear-gradient(180deg, rgba(25,51,79,0) 0%, rgba(25,51,79,0) 90%, rgba(25,51,79,1) 100%);
		/* backdrop-filter: opacity(0); */
		/* mask: linear-gradient(transparent, transparent 70%, black 90%); */
		z-index: 9;
		box-shadow: rgba(25,51,79,1) 0 0 12px;
	}
	.overflownY.active::before {
		background-image: linear-gradient(180deg, rgba(25,51,79,0) 0%, rgba(25,51,79,0) 90%, rgba(25,51,79,0) 100%);
		box-shadow: rgba(25,51,79,0) 0 0 12px;
	}

.overflowYToggleLink {
	position: absolute;
	bottom: 0;
	z-index: 99;
}
	.overflowYToggleLink:hover {
		cursor: pointer;
	}
	.overflownY:not(.active) .overflowYToggleLink::before {
		content: 'Show';
	}
	.overflownY.active .overflowYToggleLink::before {
		content: 'Hide';
	}


.tooltip_content {
	white-space: pre-wrap !important;
	padding: 1rem !important;
	border-radius: 1rem !important;
	border: 1px solid #ccc !important;
	background-color: #d5d5d5 !important;
	color: #404040 !important;
	text-shadow: none !important;
	width: 300px !important;
	/* right: calc(-300px - .5rem) !important; */
	z-index: 999 !important;
	left: 0 !important;
	transform: translate(0, 2.7rem);
}

.form_row > label + span::after,
.form_row > span::after {
	opacity: 0;
	transition: opacity 0.3s;
	content: '';
	max-height: 0;
	width: 0;
	padding: 0;
	margin: 0;
}

body.featuredTrustsSearch label[for="No_Unsolicited_Applications"] {
	visibility: hidden;
}

body.featuredTrustsSearch label[for="No_Unsolicited_Applications"] span::before {
	content: 'Exclude funders that do not accept unsolicited applications';
	visibility: visible;
	color: #fff;
}

.detail_page_label[for="No_Unsolicited_Applications"] {
	visibility: hidden;
}

.detail_page_label[for="No_Unsolicited_Applications"]::before {
	content: 'Will this trust refuse unsolicited applications?';
	visibility: visible;
}

body.featuredTrustsSearch label[for="Accepts_Unsolicited_Applications"] {
	/*visibility: hidden;*/
}

body.featuredTrustsSearch label[for="Accepts_Unsolicited_Applications"] span::before {
	/*content: 'Accepts unsolicited applications';*/
	visibility: visible;
	color: #fff;
}

.detail_page_label[for="Accepts_Unsolicited_Applications"] {
	visibility: hidden;
	max-height: 3.3rem;
}

.detail_page_label[for="Accepts_Unsolicited_Applications"]::before {
	content: 'Will this trust accept unsolicited applications?';
	visibility: visible;
}

body.featuredTrustsSearch .form_row > label[for="National"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_National::after,
body.featuredTrustsSearch .form_row > label[for="Overseas"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Overseas::after,
body.featuredTrustsSearch .form_row > label[for="Corporate_Foundation"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Corporate_Foundation::after,
body.featuredTrustsSearch .form_row > label[for="NoUnsolicitedApplications"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_No_Unsolicited_Applications::after,
body.featuredTrustsSearch .form_row > label[for="AcceptsUnsolicitedApplications"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Accepts_Unsolicited_Applications::after,
body.featuredTrustsSearch .form_row > label[for="Foundations_of_Wealth"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Foundations_of_Wealth::after,
body.featuredTrustsSearch .form_row > label[for="Trustee_Names"] + span#cont_field_button_hint_Trustee_Names::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Charity_Objects::after,
body.featuredTrustsSearch .form_row > label[for="Charity_Objects"] + span::after,
body.featuredTrustsSearch span#cont_field_button_hint_Trustee_Names::after,
body.featuredTrustsSearch .form_row > label[for="Research_notes"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Research_notes::after,
body.featuredTrustsSearch .form_row > label[for="Newly_registered"] + span::after,
body.featuredTrustsSearch .form_row > label + span#cont_field_button_hint_Newly_registered::after {
	position: absolute;
	white-space: pre-wrap;
	padding: 1rem;
	border-radius: 1rem;
	border: 1px solid #ccc;
	background-color: rgba(213,213,213,.95);
	color: #404040;
	text-shadow: none;
	width: 300px;
	z-index: -1;
	top: 0;
	opacity: 0;
	max-height: 300px;
	transform: translate(calc(-100% + 3.7rem), calc(-100% - .1rem));
}
body.featuredTrustsSearch label[for="National"]:hover + span#cont_field_button_hint_National::after, 
body.featuredTrustsSearch span#cont_field_button_hint_National:hover::after,
body.featuredTrustsSearch label[for="Overseas"]:hover + span#cont_field_button_hint_Overseas::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Overseas:hover::after,
body.featuredTrustsSearch label[for="Corporate_Foundation"]:hover + span#cont_field_button_hint_Corporate_Foundation::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Corporate_Foundation:hover::after,
body.featuredTrustsSearch label[for="No_Unsolicited_Applications"]:hover + span#cont_field_button_hint_No_Unsolicited_Applications::after, 
body.featuredTrustsSearch span#cont_field_button_hint_No_Unsolicited_Applications:hover::after,
body.featuredTrustsSearch label[for="Accepts_Unsolicited_Applications"]:hover + span#cont_field_button_hint_Accepts_Unsolicited_Applications::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Accepts_Unsolicited_Applications:hover::after,
body.featuredTrustsSearch label[for="Foundations_of_Wealth"]:hover + span#cont_field_button_hint_Foundations_of_Wealth::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Foundations_of_Wealth:hover::after,
body.featuredTrustsSearch label[for="Trustee_Names"]:hover + span#cont_field_button_hint_Trustee_Names::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Trustee_Names:hover::after,
body.featuredTrustsSearch label[for="Research_notes"]:hover + span#cont_field_button_hint_Research_notes::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Research_notes:hover::after,
body.featuredTrustsSearch label[for="Newly_registered"]:hover + span#cont_field_button_hint_Newly_registered::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Newly_registered:hover::after {
	opacity: 1 !important;
	z-index: 9999 !important;
}

body.featuredTrustsSearch label[for="Overseas"]:hover + span#cont_field_button_hint_Overseas::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Overseas:hover::after {
	content: 'Enable this option to search for grant makers who will explicitly fund overseas activities.';
}

body.featuredTrustsSearch label[for="National"]:hover + span#cont_field_button_hint_National::after, 
body.featuredTrustsSearch span#cont_field_button_hint_National:hover::after {
	content: 'Enable this option to search for grant makers who will explicitly fund activities nationally (i.e. anywhere in the UK).';
}

body.featuredTrustsSearch label[for="Corporate_Foundation"]:hover + span#cont_field_button_hint_Corporate_Foundation::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Corporate_Foundation:hover::after {
	content: 'Enable this option to restrict your search to funders which are corporate foundations.';
}

body.featuredTrustsSearch label[for="No_Unsolicited_Applications"]:hover + span#cont_field_button_hint_No_Unsolicited_Applications::after, 
body.featuredTrustsSearch span#cont_field_button_hint_No_Unsolicited_Applications:hover::after {
	content: 'Enable this option to restrict your search to funders which accept unsolicited applications.';
}

body.featuredTrustsSearch label[for="Accepts_Unsolicited_Applications"]:hover + span#cont_field_button_hint_Accepts_Unsolicited_Applications::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Accepts_Unsolicited_Applications:hover::after {
	content: 'Enable this option to restrict your search to funders which accept unsolicited applications.';
}

body.featuredTrustsSearch label[for="Foundations_of_Wealth"]:hover + span#cont_field_button_hint_Foundations_of_Wealth::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Foundations_of_Wealth:hover::after {
	content: 'Enable this option to restrict your search to funders which have been included in Factary\'s \'Foundations of Wealth\' report.';
}

body.featuredTrustsSearch label[for="Trustee_Names"]:hover + span#cont_field_button_hint_Trustee_Names::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Trustee_Names:hover::after {
	content: 'Use this field to search by trustee name. Note that the search will be performed using the exact phrase entered.';
}

body.featuredTrustsSearch label[for="Research_notes"]:hover + span#cont_field_button_hint_Research_notes::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Research_notes:hover::after {
	content: 'Use this field to search within the historical research notes compiled by Factary when the funder was featured in the monthly NTU report. These include information on the aims and objectives of the trusts as well as trustee biographies. Note that the search will be return all trusts whose notes contain an exact matching phrase.';
}

body.featuredTrustsSearch label[for="Newly_registered"]:hover + span#cont_field_button_hint_Newly_registered::after, 
body.featuredTrustsSearch span#cont_field_button_hint_Newly_registered:hover::after {
	content: 'Use this field to restrict your search to those funders that are still classified as newly registered with the Charity Commission and are yet to submit their first set of accounts.';
}

#howMuch::after {
	content: 'Use the slider and/or the inputs above to search for funders by grant size.''\A''\A''The left-hand handle controls smallest grant amount, while the right-hand handle controls average grant amount. We recommend searching for either smallest OR average grant amount, but not both together, as this will return a small number of results.''\A''\A''Note that searching for a grant amount will exclude all trusts on the database for which there is no grant data. (You can also search against latest expenditure using the advanced functions - the majority of trusts on the database have this data.)';
	white-space: pre-wrap;
	margin: 1.7rem auto 0;
	max-width: 700px;
	/* display: none; */
	display: block;
	padding: 1rem;
	border-radius: 1rem;
	/* border: 1px solid #ccc; */
	background-color: rgba(0,0,0,0.3);
}

#howMuch.active::after {
	/*display: block;*/
}

#cont_field_button_hint_Smallest_Grant_Amount,
#cont_field_button_hint_Average_Grant_Amount,
#cont_field_button_hint_GiftBandLower,
#cont_field_button_hint_GiftBandUpper {
	position: relative;
}

#cont_field_button_hint_Smallest_Grant_Amount::before,
#cont_field_button_hint_Average_Grant_Amount::before,
#cont_field_button_hint_GiftBandLower::before,
#cont_field_button_hint_GiftBandUpper::before {
	content: '';
	position: absolute;
	display: block;
	width: 105%;
	border: 1px dotted rgba(255,255,255,0.5);
	height: calc((100% / 6) * 8.5);
	border-radius: .75rem;
	transform: translateY(-.75rem) translateX(-2.5%);
}

.noUi-target {
	border: 0px solid #D3D3D3 !important;
	box-shadow: inset 0 1px 1px rgba(255,255,255,.1) !important;
}


#howMuch.active #Row-Latest-Total-Expenditure,
#Row-Donation-Year,
#Row-Recipient,
#Row-Amount {
	display: flex;
}

#howMuch.active #Row-Latest-Total-Expenditure,
body:not(.trustGrantsSearch) #Row-Donation-Year,
#Row-Recipient,
#Row-Amount {
	flex-wrap: nowrap;
}

body.trustGrantsSearch #Row-Donation-Year {
	/* flex-wrap: wrap; */
	display: none;
}

#YearDonationYear, #YearDonationYear > input {
	max-width: 0;
	padding: 0;
	border: 0;
	visibility: hidden;
}

#donation-year-radio-buttons-wrapper {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
}

.donation-year-radio-button {
	width: calc(100% / 5);
	padding: 0;
	margin: 0;
}

.donation-year-radio-button.\32 01 {
	width: calc( (100% / 5) * 2.5 );
}

.donation-year-radio-button.\32 02 {
	width: calc( (100% / 5) * 2.5 );
}

#donation-year-radio-buttons-wrapper label {
	min-width: 100% !important;
	padding: 6px 12px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.donation-year-radio-button input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	margin: 0 .33rem 0 0;
	width: 2.075rem;
	height: 2.075rem;
	/* transform: translateY(calc(100% / 3)); */
	box-shadow: none;
	border: 3px solid #05305e;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 1s ease, background-position 1s ease, outline 1s ease;
	background-color: #a4a4a4;
	background-image: url('/assets/yes_no_sprite.png');
	background-size: auto 100%;
	background-position: 0% center;
	background-repeat: repeat-x;
	/* transform-origin: center center; */
	outline: 1px solid rgba(255,255,255,0);
}

.donation-year-radio-button input[type="radio"]:checked {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	border: 3px solid #05305e;
	/*transform: translateY(calc(100% / 3)) scale(1.01);*/
	transform: scale(1.01);
	background-position: -100% center;
	outline: 1px solid rgba(255,255,255,1);
}

#Row-Latest-Total-Expenditure label {
	width: calc((100% - 244px) / 2 );
	text-align: right;
}

body:not(.trustGrantsDetails) #Row-Donation-Year > label[for="YearDonationYear"] {
	display: none;
}

#Row-Recipient label,
#Row-Amount label {
	/* width: calc((100% - 224px) / 2 ); */
	text-align: right;
}
@media screen and (min-width: 1489px) {
	#Row-Recipient label {
		width: calc((100% - 400px) / 2 );
		min-width: 0 !important;
		text-align: right;
	}
}

#howMuch #latestTotalExpenditureAmountSlider,
#howMuch #Row-Latest-Total-Expenditure,
#where #interactive-world-map-container,
.advanced-search-section-wrapper #Row-Africa,
.advanced-search-section-wrapper #Row-Scotland,
#where #UKMap {
	display: none;
}

#howMuch.active #latestTotalExpenditureAmountSlider,
#where.active #interactive-world-map-container  {
	display: block;
}

#howMuch #Row-Average-Grant-Amount,
#howMuchGrants #Row-Upper-Gift-Band {
	display: grid;
	grid-template-columns: repeat(2, auto [line]);
	grid-template-rows: repeat(2, auto [line]);
	justify-content: space-between;
}
.advanced-search-section-wrapper .form_row#Row-Average-Grant-Amount label,
.advanced-search-section-wrapper .form_row#Row-Upper-Gift-Band label {
	text-align: center;
	padding: 0.1rem 0.4rem 0.3rem;
	width: max-content;
	margin: 0 auto;
	/* border-left: 1px dotted rgba(255,255,255,0.5); */
	/* border-right: 1px dotted rgba(255,255,255,0.5); */
	background-color: #2c425c;
	z-index: 9;
}
.advanced-search-section-wrapper .form_row#Row-Average-Grant-Amount label {
	background-color: #2c425c;
}
.advanced-search-section-wrapper .form_row#Row-Upper-Gift-Band label {
	background-color: #1c3551;
}

.advanced-search-section-wrapper label[for="Smallest_Grant_Amount"],
.advanced-search-section-wrapper label[for="GiftBandLower"] {
	order: 1;
}
.advanced-search-section-wrapper label[for="Average_Grant_Amount"],
.advanced-search-section-wrapper label[for="GiftBandUpper"] {
	order: 2;
}
.advanced-search-section-wrapper span#cont_field_button_hint_Smallest_Grant_Amount,
.advanced-search-section-wrapper span#cont_field_button_hint_GiftBandLower {
	order: 3;
}
.advanced-search-section-wrapper span#cont_field_button_hint_Average_Grant_Amount,
.advanced-search-section-wrapper span#cont_field_button_hint_GiftBandUpper {
	order: 4;
}
#where.advanced-search-section-wrapper.active #Row-Africa,
#where.advanced-search-section-wrapper.active #Row-Scotland,
#where.active #UKMap {
	display: flex;
}
.form_row#Row-Overseas > * {
	display: inline-block;
}
#where:not(.active) #Row-Overseas.form_row {
	display: block;
}
#where.active #Row-Overseas.form_row {
	display: none;
}

body.featuredTrustsSearch #Row-Overseas.form_row::after {
	content: 'If you wish to search by region, both nationally and internationally, open the advanced functions by using the link at the top right of this search section to access our map tools.';
	white-space: pre-wrap;
	margin: 1.7rem auto 0;
	max-width: 700px;
	display: block;
	padding: 1rem;
	border-radius: 1rem;
	/* border: 1px solid #ccc; */
	background-color: rgba(0,0,0,0.3);
}

body.featuredTrustsSearch  #Row-Overseas.form_row.active::after {
	display: none;
}

#gift-band-slider-wrapper::after {
	content: 'Note that searching for a gift amount will exclude all gifts on the database for which there is no specific amount recorded.''\A''\A''If you wish to search for gift amounts without excluding those non-specified gifts, we suggest searching against your other criteria, and downloading a .csv file. Then you can filter the results in your spreadsheet program.';
	white-space: pre-wrap;
	margin: 1.7rem auto 0;
	/*max-width: 700px;*/
	/*display: none;*/
	display: block;
	padding: 1rem;
	border-radius: 1rem;
	/*border: 1px solid #ccc;*/
	background-color: rgba(0,0,0,0.3);
}

.advanced-search-section-wrapper .form_row {
	/* display: table-row; */
	/* flex-wrap: nowrap; */
	/* align-content: start; */
	/* justify-content: space-between; */
	justify-content: start;
	display: flex;
	align-content: center;
	align-items: center;
	min-height: 2.7rem;
	line-height: 1.2rem;
}

#dadabik_main_form .form_row {
	max-width: 700px;
	margin: 0 auto;
}

@media screen and (min-width: 900px) {
	#dadabik_main_form #what .form_row {
		/*transform: translateX(-75px);*/
	}
}

@media screen and (min-width: 1241px) {
	#dadabik_main_form #UKMap .rows-container .form_row {
		text-align: right;
	}
}

@media screen and (max-width: 1240px) {
	#dadabik_main_form #UKMap .rows-container .form_row {
		max-width: 400px;
	}
}

#dadabik_main_form #Row-Corporate-Foundation {
	/*margin-top: 1.5rem;*/
}

.advanced-search-section-wrapper:not(#what):not(#howMuch) .form_row:not(#Row-Upper-Gift-Band):not(#Row-Africa):not(#Row-Overseas):not(#Row-Donation-notes) label {
	min-width: 200px;
	text-align: right;
	max-width: 200px;
}

advanced-search-section-wrapper:not(#what) .form_row:not(#Row-Africa):not(#Row-Overseas) label {
	min-width: 200px;
}

#who .form_row span + label {
	margin-left: 1.2rem;
}

/*Ensures textarea (nested in following) can be expanded to 100% of ultimate parent*/
#cont_field_button_hint_Charity_Objects,
#cont_field_button_hint_NotesOnDonation,
#cont_field_button_hint_Trustee_Names,
#cont_field_button_hint_Research_notes,
span#Charity_Objects,
span#Research_notes,
span#Trustee_Names,
span#NotesOnDonation {
	width: 100%;
	display: block;
}
#who textarea, 
#howMuchGrants textarea {
	width: 100%;
	min-width: 280px;
	max-width: 400px;
}

#interactive-world-map-container + div label {
	margin-left: 2rem;
	text-align: right;
}

/*#Africa, 
#Overseas {
	justify-content: space-evenly;
}*/

.advanced-search-section-wrapper #Row-Overseas label {
	width: calc((700px / 3) - 3.4rem);
	text-align: right;
}
@media screen and (min-width: 900px) {
	.advanced-search-section-wrapper #Row-Overseas {
		/*transform: translateX(-75px);*/
	}
}

.form_row:has(#Animals) label,
.form_row:has(#Christianity) label,
.form_row:has(#Disability) label,
.form_row:has(#Emergency_Services) label,
.form_row:has(#Health) label,
.form_row:has(#Hospices) label,
.form_row:has(#Islam) label,
.form_row:has(#Other_Religions) label,
.form_row:has(#Welfare) label,
.form_row:has(#Women) label,
.form_row:has(#T1-National) label,
.form_row:has(#T1-NotDefined) label/*,
/*.form_row:has(#T2Regional-Scotland) label,
.form_row:has(#T2Regional-EastMidlands) label,
.form_row:has(#T2Regional-NorthEastEngland) label,
.form_row:has(#T2Regional-SouthWestEngland) label,
.form_row:has(#T2Overseas-Africa) label*/ {
	width: 100%;
	display: inline-block;
	padding: 6px 12px 6px 0;
	text-align: right;
	min-width: auto;
}

/*Aligns the last radio button and label in the center (will require change if new radios added*/
#what .form_row:last-child label {
	width: 57.5% !important;
}

.css_form .select_element_select_type {
    width: 100%;
    float: none;
    min-width: 220px;
}

#cont_field_button_hint_Charity_Name,
#Charity_Name,
#Charity-Name,
input[name="Charity_Name"],
input[name="Trustee_Names"],
input[name="Recipient"] {
	width: 100%;
	min-width: 400px;
	max-width: 400px;
}

.btn, input[type="button"], input[type="submit"] {
	height: 2.4rem;
	border-radius: calc(2.4rem / 2);
}

#dadabik_main_form .btn.btn-primary,
.button_form[value="Go back"],
.button_form[value="Save >>"],
#dadabik_main_form input[type="submit"] {
	width: 100%;
	/* padding: 0.7rem; */
	display: block;
	min-width: 100%;
	transition: background-color 1s ease;
}
#dadabik_main_form div:not(.search-functions-wrapper) .btn.btn-primary,
.button_form[value="Go back"],
.button_form[value="Save >>"],
#dadabik_main_form input[type="submit"] {
	margin-bottom: 6px;
	margin-top: 6px;
}

.button_form[value="Go back"],
.button_form[value="Save >>"],
#dadabik_main_form input[type="submit"] {
	margin-bottom: 10px;
}

.button_form[value="Save >>"] {
	margin-bottom: 6px;
}

.button_form[value="Go back"] {
	/*background-color: #633c49;*/
	background-color: #05305e;
	background-color: #3c6356;
	transition: background-color 1s ease;
	/*margin-bottom: 1.5rem;*/
}
	.button_form[value="Go back"]:hover {
		/*background-color: #5c2c3c;*/
		background-color: #05305e;
		background-color: #325348;
	}

body.featuredTrustsSearch .button_form[value="Go back"],
body.trustGrantsSearch .button_form[value="Go back"] {
	background-color: #05305e;
}
	body.featuredTrustsSearch .button_form[value="Go back"]:hover,
	body.trustGrantsSearch .button_form[value="Go back"]:hover {
		background-color: #18324e;
	}

#upperSearch .btn.btn-primary[type="submit"] {
	flex-basis: calc(100% - 264px);
	min-width: calc(100% - 264px);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

#dadabik_main_form .btn.btn-primary {
	background-color: #05305e;
}

.btn-primary + .button_form {
	margin-top: 4px;
}

#dadabik_main_form .btn.btn-primary[type="submit"],
#dadabik_main_form .button_form[value="Save + Go back"] {
	background-color: #3c6356;
	transition: background-color 1s ease;
}
	#dadabik_main_form .btn.btn-primary[type="submit"]:hover,
#dadabik_main_form .button_form[value="Save + Go back"]:hover {
		background-color: #325348;
	}

#upperSearch {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 0;
	animation-name: eyeCatchGlow;
	animation-duration: 4s; 
	animation-timing-function: ease-out; 
	animation-delay: 0s;
	animation-direction: normal;
	animation-iteration-count: 1;
	border-top-left-radius: .5rem;
	border-bottom-left-radius: .5rem;
	border-top-right-radius: calc(2.4rem / 2);
	border-bottom-right-radius: calc(2.4rem / 2);
}
@keyframes eyeCatchGlow {
	0% {
		outline: .25rem solid rgba(255, 215, 0, 0);
	}
	5% {
		outline: .25rem solid rgba(255, 215, 0, 1);
	}
	100% {
		outline: .25rem solid rgba(255, 215, 0, 0);
	}
}

#upperSearch .btn.btn-primary {
	flex-basis: calc(100% - 264px);
	flex-grow: 1;
	flex-shrink: 1;
	min-width: calc(100% - 264px);
}

.radio-button-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1.5rem;
}

	.radio-button-wrapper > div {
		flex-basis: 33%;
	}

#who-radio-buttons {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	transform: translateX(-1.8rem);
}

.noUi-horizontal {
	margin: 2rem auto 1.5rem;
	max-width: 700px;
}

	:not(.advanced-search-section-wrapper) #grantAmountSlider {
		/*display: none;*/
	}

.slider-wrapper, 
.advanced-search-section-wrapper.active #latest-total-expenditure-slider-wrapper, 
.advanced-search-section-wrapper.active #gift-band-slider-wrapper,
#donation-year-radio-buttons-wrapper {
	position: relative;
	border-radius: 1rem;
	padding: 2rem 1.5rem 2rem;
	margin-top: 2.5rem;
	margin-right: -1.5rem;
	margin-bottom: 0;
	margin-left: -1.5rem;
	border: 1px dotted rgba(255,255,255,0.5);
	background-image: linear-gradient(10deg, rgba(90, 145, 206, .0625) 0%, rgba(90, 145, 206, .0625) 5%, rgba(90, 145, 206, 0) 30%, rgba(53, 75, 99, 0) 60%, rgba(53, 75, 99, .3) 100%);
}
@media screen and (min-width: 800px) {
	.slider-wrapper,
	.advanced-search-section-wrapper.active #latest-total-expenditure-slider-wrapper,
	.advanced-search-section-wrapper.active #gift-band-slider-wrapper,
	#donation-year-radio-buttons-wrapper {
		margin-right: auto;
		margin-left: auto;
		max-width: calc(790px);
	}
}

#latest-total-expenditure-slider-wrapper,
#gift-band-slider-wrapper {
	padding: 0;
	border: none;
	margin: 0 auto;
}

#latest-total-expenditure-slider-wrapper::before, 
#grant-amount-slider-wrapper::before,
#donation-year-radio-buttons-wrapper::before {
	position: absolute;
	top: 0px;
	transform: translateY(-66%) translateX(.3rem);
	padding: 0 0.4rem 0.15rem;
	border-left: 1px dotted rgba(255,255,255,0.5);
	border-right: 1px dotted rgba(255,255,255,0.5);
	/* line-height: 1.6rem; */
}

#grant-amount-slider-wrapper::before {
	content: 'Amount';
}

#donation-year-radio-buttons-wrapper::before {
	content: 'Donation Year';
	background-color: #203854;
	/*box-shadow: 0 0 1rem 0.4rem #203854;*/
}
body.featuredTrustsSearch #grant-amount-slider-wrapper::before {
	background-color: #2c445d;
	/*box-shadow: 0 0 1rem 0.4rem #2c445d;*/
}
body.trustGrantsSearch #grant-amount-slider-wrapper::before {
	background-color: #1f3753;
	/*box-shadow: 0 0 1rem 0.4rem #1f3753;*/
}
#howMuch.active #latest-total-expenditure-slider-wrapper::before {
	content: 'Latest Expenditure';
	background-color: #2d445d;
}

.noUi-connect,
.noUi-connects {
	background-color: #05305e !important;
	background-color: rgba(0,0,0,.3) !important;
	border: medium none;
}

.noUi-connects {
	border-radius: 9px;
}

.noUi-horizontal .noUi-handle {
	height: 2.075rem !important;
	width: 2.075rem !important;
	background-color: #a4a4a4;
	box-shadow: none;
	border: 3px solid #05305e;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	top: -8px !important;
	cursor: pointer;
	transition: background-color 1s ease, opacity 1s ease;
	opacity: 1;
}
	.noUi-horizontal .noUi-handle.handle-active {
		background-color: #ffffff;
	}
	#grantAmountSlider .noUi-handle:not(.active) {
		/*opacity: 0;*/
	}

#grantAmountSlider.noUi-horizontal .noUi-handle-lower,
#giftBandSlider.noUi-horizontal .noUi-handle-lower {
	border-radius: 0 1.0325rem 1.0325rem 0;
	width: calc(1.0325rem + 5px) !important;
}
#grantAmountSlider.noUi-horizontal .noUi-handle-upper,
#giftBandSlider.noUi-horizontal .noUi-handle-upper {
	border-radius: 1.0325rem 0 0 1.0325rem;
	width: calc(1.0325rem + 5px) !important;
}

.noUi-handle::after, .noUi-handle::before {
	content: "";
	display: block;
	position: absolute;
	height: 14px;
	width: 1px;
	background: none !important;
	top: 6.5px;
}

.noUi-handle::before {
	left: calc(50% - 2px) !important;
}

.noUi-handle::after {
	left: calc(50% + 2px) !important;
}

input[name="SmallestGrantAmount"]:disabled,
input[name="AverageGrantAmount"]:disabled {
    cursor: text;
	pointer-events: auto;
}

#UKMap {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-items: center;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	/*margin-top: 4rem;*/
}

#UKMap h3 {
	align-self: auto;
	flex-basis: 100%;
	flex-shrink: 0;
	flex-grow: 1;
}

#interactive-world-map-container {
	width: 100%;
	aspect-ratio: 1 / .5;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
	margin-top: 4rem;
}

#interactive-map-container {
	height: 100%;
	min-width: 319px;
	aspect-ratio: 1 / 1.509;
	width: 49%;
	max-width: 600px;
}
@media screen and (max-width: 1100px) {
	#interactive-map-container {
		/*width: 50%;
		min-width: 359px;*/
	}
}

.interactive-map {
	/* width: 75%; */
	/* aspect-ratio: 1 / 1.6; */
	position: relative;
	margin: 0 auto;
	width: 100%;
	height: 100%;
}

.interactive-map a {
	position: absolute;
	line-height: 0.85rem;
	font-size: 0.7rem;
	color: #fefefe;
	text-align: center;
	text-decoration: none;
	padding: 1rem;
	transition: color 1s ease;
}
	.interactive-map a:hover {
		color: #0a1a2c;
	}
/*@media screen and (max-width: 1100px) {
	.interactive-map a {
		font-size: 0.7rem;
		line-height: 0.85rem;
	}
}*/

#interactive-world-map a span.region:not(.regionName),
#interactive-UK-map a {
	border-radius: 1rem;
	background-color: #496585;
	transition: background-color 1s ease, z-index 1s ease;
	/*box-shadow: 0px 0px 0 6px rgb(73, 101, 133, 0);*/
}
	#interactive-UK-map a:hover, 
	#interactive-UK-map a:active, 
	#interactive-UK-map a.active, 
	#interactive-world-map a:hover span.region:not(.regionName), 
	#interactive-world-map a:active span.region:not(.regionName), 
	#interactive-world-map a.active span.region:not(.regionName) {
		z-index: 999;
		transition: background-color 1s ease, z-index 1s ease 0s;
	}
	#interactive-UK-map a:hover, 
	#interactive-world-map a:hover span.region:not(.regionName) {
		background-color: #ffd700;
	}
	#interactive-UK-map a:active, 
	#interactive-UK-map a.active, 
	#interactive-UK-map a.active:hover, 
	#interactive-world-map a:active span.region:not(.regionName), 
	#interactive-world-map a.active span.region:not(.regionName),
	#interactive-world-map a.active:hover span.region:not(.regionName) {
		background-color: #05305e;
		background-color: rgba(0,0,0,.3);
		color: #ffffff;
}

.interactive-map a span {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
}

.interactive-map a span:not(.region) {
	transform: translate(-50%, -50%);
}

.regionName {
	z-index: 9999;
}

#AfricaRegion {
	top: 33%;
	height: 52%;
	width: 21%;
	left: 39%;
	z-index: 9;
}
	#AfricaRegion .region1 {
		left: 0%;
		height: 48%;
		width: 100%;
		top: 0%;
	}
	#AfricaRegion .region2 {
		left: 37%;
		height: 50%;
		width: 49%;
		top: 48%;
	}

#AmericasRegion {
	top: 5%;
	height: 94%;
	width: 31%;
	left: 1%;
	z-index: 9;
}
	#AmericasRegion .region1 {
		left: 7%;
		height: 27%;
		width: 81%;
		top: 1%;
	}
	#AmericasRegion .region2 {
		left: 17%;
		height: 22%;
		width: 50%;
		top: 28%;
	}
		#AmericasRegion .region3 {
			left: 51%;
			height: 26%;
			width: 50%;
		top: 50%;
	}
	#AmericasRegion .region4 {
		left: 64%;
		height: 25%;
		width: 25%;
		top: 76%;
	}

#AsiaPacificRegion {
	top: 33%;
	height: 63%;
	width: 39%;
	left: 60%;
	z-index: 9;
}
	#AsiaPacificRegion .region1 {
		left: 0%;
		height: 32%;
		width: 60%;
		top: 0%;
	}
	#AsiaPacificRegion .region2 {
		left: 44%;
		height: 18%;
		width: 38%;
		top: 35%;
	}
	#AsiaPacificRegion .region3 {
		left: 52%;
		height: 32%;
		width: 36%;
		top: 56%;
	}
	#AsiaPacificRegion .region4 {
		left: 88%;
		height: 13%;
		width: 13%;
		top: 84%;
	}

#EuropeRegion {
	top: 2%;
	height: 29%;
	width: 59%;
	left: 32%;
	z-index: 9;
}
	#EuropeRegion .region1 {
		left: 16%;
		height: 47%;
		width: 15%;
		top: 52%;
	}
	#EuropeRegion .region2 {
		left: 24%;
		height: 30%;
		width: 16%;
		top: 18%;
	}
	#EuropeRegion .region3 {
		left: 31%;
		height: 54%;
		width: 9%;
		top: 48%;
	}
	#EuropeRegion .region4 {
		left: 40%;
		height: 96%;
		width: 56%;
		top: 11%;
	}

.advanced-search-section-wrapper #Registered-Charity-Number label,
.advanced-search-section-wrapper #Grant-maker-name label,
.advanced-search-section-wrapper #Trustee-information label,
.advanced-search-section-wrapper #Trust-Status label,
.advanced-search-section-wrapper #Corporate-Foundation label,
.advanced-search-section-wrapper #Foundation-of-Wealth label {
	width: calc((700px / 4) - 3.4rem);
	text-align: right;
}

@media screen and (max-width: 1100px) {
	a#NorthEastEngland span,
	a#NorthWestEngland span,
	a#WestMidlandsRegion span/*,
	a#EastMidlands span,
	a#EastOfEngland span,
	a#GreaterLondon span,
	a#SouthEastEngland span,
	a#SouthWestEngland span*/ {
		color: #000;
	}

.interactive-map a#NorthEastEngland.active span,
.interactive-map a#NorthWestEngland.active span,
.interactive-map a#WestMidlandsRegion.active span {
	text-decoration: underline;
}
	
	a#NorthEastEngland span::after,
	a#NorthWestEngland span::after,
	a#WestMidlandsRegion span::after/*,
	a#EastMidlands span::after,
	a#EastOfEngland span::after,
	a#GreaterLondon span::after,
	a#SouthEastEngland span::after,
	a#SouthWestEngland span::after*/ {
		content: '';
		position: absolute;
		background-color: #000;
		height: 1px;
	}
}

.advanced-search-section-wrapper #Scotland {
	top: 4%;
	height: 39%;
	width: 31%;
	left: 30%;
	z-index: 9;
}

.advanced-search-section-wrapper #Wales {
	top: 59%;
	height: 20%;
	width: 20%;
	left: 34%;
	z-index: 9;
}

.advanced-search-section-wrapper #NorthernIreland {
	top: 39%;
	height: 13%;
	left: 3%;
	width: 24%;
	z-index: 9;
}

.advanced-search-section-wrapper #EastMidlands {
	top: 59%;
	height: 7.5%;
	left: 66%;
	width: 19%;
	z-index: 9;
}

.advanced-search-section-wrapper #EastOfEngland {
	top: 66.5%;
	height: 6.5%;
	left: 66%;
	width: 21%;
	z-index: 9;
}

.advanced-search-section-wrapper #GreaterLondon {
	top: 73%;
	height: 6%;
	left: 66%;
	width: 16%;
	z-index: 99;
}

.advanced-search-section-wrapper #NorthEastEngland {
	top: 34%;
	height: 13%;
	left: 61%;
	width: 11%;
	z-index: 99;
}
@media screen and (max-width: 1100px) {
	a#NorthEastEngland span {
		left: 80px;
	}
	
	a#NorthEastEngland span::after {
		width: 41px;
		/* transform: translateX(-9px); */
		left: -36px;
		top: 50%;
	}
}

.advanced-search-section-wrapper #NorthWestEngland {
	top: 43%;
	height: 16%;
	left: 49%;
	width: 12%;
	z-index: 99;
}
@media screen and (max-width: 1100px) {
	a#NorthWestEngland span {
		position: absolute;
		left: -40px;
		width: 80px;
	}
	
	a#NorthWestEngland span::after {
		width: 30px;
		transform: translateX(12px);
	}
}

.advanced-search-section-wrapper #SouthEastEngland {
	top: 79%;
	height: 8%;
	left: 65%;
	width: 31%;
	z-index: 9;
}

.advanced-search-section-wrapper #SouthWestEngland {
	top: 81%;
	height: 8%;
	left: 28%;
	width: 37%;
	z-index: 9;
}

.advanced-search-section-wrapper #WestMidlandsRegion {
	top: 59%;
	height: 20%;
	left: 54%;
	width: 12%;
	z-index: 9;
}
@media screen and (max-width: 1100px) {
	a#WestMidlandsRegion span {
		position: absolute;
		left: -120px;
		width: 90px;
		top: -10px;
	}
	
	a#WestMidlandsRegion span::after {
		width: 145px;
		transform: translate(6px,5px) rotate(28deg);
		transform-origin: top left;
		height: 0.55px;
	}
}

.advanced-search-section-wrapper #YorkshireAndTheHumber {
	top: 47%;
	left: 61%;
	width: 19%;
	height: 12%;
	z-index: 9;
}

.rows-container {
	width: 49%;
	min-width: 300px;
}

.rows-container > .form_row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	aspect-ratio: 1 / 1.6;
	/* align-items: start; */
	min-width: 320px;
	margin: 0;
	gap: .25rem 0;
}


.interative-map .form_row label {
	/* width: 100%; */
	/* padding: 6px 12px 6px 0; */
	/* text-align: right; */
	/* min-width: auto; */
	width: calc(100% - (8rem - 6px));
}

/* Results table*/
/*Strip built-in styles*/
body.featuredTrustsSearchResults .td_content,
body.trustGrantsSearchResults .td_content {
	padding: 0;
}
	body.featuredTrustsSearchResults .td_content h1,
	body.trustGrantsSearchResults .td_content h1 {
		padding: 0 1rem; /*Compensates for the removal of passing above*/
	}

.grid table tbody th, .grid table tbody td {
	padding: 0;
}

.results_grid_cell br {
	display: none;
}

.grid table thead, .grid table tbody, .grid table tfoot {
	border: none;
}

.grid table {
	border: none;
	border-collapse: collapse;
	table-layout: auto;
}

.grid .table-scroll table {
	width: -moz-available;
	width: -webkit-fill-available;
}

.grid table tbody tr > td.controls_2 {
	width: auto;
}

/*New styles*/
/*Results table styles*/
.table-scroll {
	margin: 0;
}
.table-scroll tbody {
	border-radius: 1rem;
}

	.table-scroll.financial th.latestIncome,
	.table-scroll.financial td[data-field="Latest_Income"] {
		box-shadow: -10px 0 0 rgba(0,0,0,0);
		padding-right: .625rem;
	} 
	.table-scroll.financial th.largestGrantAmount,
	.table-scroll.financial td[data-field="Largest_Grant_Amount"] {
		/*border-left: 10px solid #eee;*/
		padding-left: calc(.5rem + 10px) !important;
	} 

.grid table tbody th, .grid table tbody td {
	padding: .5rem .625rem;
	position: relative;
}
	.grid table tbody td[data-field="Latest_Income"],
	.grid table tbody td[data-field="Latest_Total_Expenditure"],
	.grid table tbody td[data-field="Amount"],
	.grid table tbody td[data-field="GiftBandUpper"],
	.grid table tbody td[data-field="GiftBandLower"] {
		padding-right: 1.8rem;
	}

th.RegisteredCharityNumber {
	word-wrap: break-word;
	max-width: 120px;
	overflow: hidden;
	background-color: #eee;
}
	th.RegisteredCharityNumber:hover {
		overflow: visible;
		max-width: 320px;
	}
	th.RegisteredCharityNumber a {
		position: relative;
	}
	th.RegisteredCharityNumber a::before {
		content: '[...]';
		position: absolute;
		display: block;
		background-color: #eee;
		right: 0;
		box-shadow: 0 0px 2px 4px #eee;
		opacity: 1;
	}
	
	th.RegisteredCharityNumber:hover a::before {
		opacity: 0;
	}

.grid-status .btn-xs {
	text-align: left;
	/* max-height: 1.2rem; */
	/* line-height: 1rem; */
	overflow: hidden;
	/* max-width: 110px; */
	background-color: #633c49;
	/*position: relative;
	top: -7px;*/
	margin-left: 0.5rem;
	padding: 8px 12px 5px;
	max-height: 2.4rem;
	border-radius: calc(2.4rem / 2);
}

.btn {
	font-size: .9rem;
	padding: 8px 12px 5px;
}

.table-operation-buttons .operation-buttons-text {
	margin-left: -6px;
}

.btn.btn-xs.btn-secondary::before {
	content: '\2716\2004';
}

.btn-secondary:focus, .btn-secondary:hover, .btn-secondary:active {
	color: white;
	box-shadow: 0 0 0 1px white;
	background-color: #633c49;
}

.grid-status .btn-xs i::after {
	/*content: 'CLEAR\00a0SEARCH';*/
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	margin: 0 1rem 0 .3rem;
}

#checked_ids_container {
	visibility: hidden;
	margin-left: -8rem;
}
#checked_ids_counter_container::after {
	content: ' selected';
}

	#checked_ids_container * {
		visibility: visible;
}

td[data-field="TrustLink"] a {
	width: 2.4rem;
	height: 2.4rem;
	display: inline-block;
	overflow: hidden;
	border-radius: 1.2rem;
	background-image: url('/assets/info_icon.png');
	background-position: 0 0;
	background-size: cover;
	position: relative;
}

td[data-field="TrustLink"] a span {
	opacity: 0;
}

td[data-field="TrustLink"] a::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background-image: url('/assets/info_icon_hover.png');
	opacity: 0;
	transition: opacity 1s ease;
	background-position: 0 0;
	background-size: cover;
}

td[data-field="TrustLink"] a:hover::after {
	opacity: 1;
}

#search_url {
	background-image: linear-gradient(#354b63 0%, #18324e 100%);
	padding: 1.5rem;
	color: #ededed;
	border-radius: 1rem;
	margin: 1rem;
	border: none;
}

/* Show and hide fields*/
/*Links*/
a.resultsInfoToggle {
	color: #fff;
	background-color: #05305e;
	transition: color .5s ease, background-color .5s ease;
	border-radius: calc(2.4rem / 2);
	text-decoration: none;
	display: inline-block;
	font-size: 0.9rem;
	position: relative;
	width: auto;
	/* max-width: 2.4rem; */
	max-height: 2.4rem;
	overflow: hidden;
	padding: 8px 12px 9px;
	font-weight: 600;
}
	@media screen and (max-width: 767px) {
		a.resultsInfoToggle {
			max-width: 2.4rem;
			color: #05305e;
		}
	}

	a#geographyToggle {
		padding-left: 1.8rem;
	}
	#resultTableToggles a.resultsInfoToggle::before,
	#resultTableToggles a.resultsInfoToggle::after {
		width: auto;
		transition: max-width 1.5s ease;
		max-height: 0;
		max-width: 100px;
		max-height: 2.4rem;
	}	
	@media screen and (min-width: 767px) {
		#resultTableToggles a.resultsInfoToggle span::after {
			content: 'Show\2004';
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
			font-weight: 600;
		}

		.grid-status.financial #resultTableToggles a.resultsInfoToggle span::after {
			content: 'Hide\2004';
		}
	}
	@media screen and (min-width: 999px) {
		#resultTableToggles a.resultsInfoToggle::after {
			content: ' info';
		}		
	}
	@media screen and (min-width: 1400px) {
		#resultTableToggles a.resultsInfoToggle::after {
			content: ' information';
		}		
	}
	
.resultsInfoToggle .fas {
	/* position: absolute; */
	/* left: 0.75rem; */
	/* top: 50%; */
	/* transform: translateY(-50%); */
	color: #ffffff;
	/* margin-right: 1rem; */
	margin-bottom: 9999px;
}
	/*.resultsInfoToggle #financialToggle .fas {
		left: .85rem;
	}*/
.resultsInfoToggle .fas::before {
	margin-right: .4rem;
}
	@media screen and (max-width: 767px) {
		.resultsInfoToggle .fas::before  {
			position: relative;
			left: 2px;
			top: 1px;
		}
	}
	/*.resultsInfoToggle #financialToggle .fas {
		left: .85rem;
	}*/

.grid-status.financial a#financialToggle {
	background-color: #7697bd;
	text-decoration: none;
	/* color: #7697bd; */
}

.grid-status.activity a#activityToggle {
	background-color: #7697bd;
	text-decoration: none;
	color: #7697bd;
}
	.grid-status.activity a#activityToggle::before {
		content: 'Hide ';
	}

.grid-status.geography a#geographyToggle {
	background-color: #7697bd;
	text-decoration: none;
	color: #7697bd;
}
	.grid-status.geography a#geographyToggle::before {
		content: 'Hide ';
	}
	
	
/*New styles*/
td.results_grid_cell[data-field="Charity_Name"] {
	text-transform: uppercase;
	font-weight: 600;
}

#charityName .listDataItemContent {
	font-weight: 600;
	text-transform: uppercase;
}

#sortDivWrapper {
	position: absolute;
	display: flex;
	flex-wrap: nowrap;
	transform: translateY(0);
	overflow: hidden;
}
	.results.donationSummary #sortDivWrapper,
	.results.DonationSummary #sortDivWrapper {
		max-height: 0;
	}
	.results.donationSummary:hover #sortDivWrapper,
	.results.DonationSummary:hover #sortDivWrapper {
		max-height: 999px;
	}
	#sortDivWrapper div {
		height: 100%;
		background-color: #eee;
	}
	#sortDivWrapper div:hover {
		background-color: #bfbfbf;
	}
	#amountSort {
		order: 1;
	}
	#lowerGiftBandSort {
		order: 2;
	}
	#upperGiftBandSort {
		order: 3;
	}
	
	#sortDivWrapper a {
		text-decoration: none;
		/*background-color: #eee;*/
		padding: 1rem .625rem;
		display: inline-block;
	}
		#sortDivWrapper .sortUp a,
		#sortDivWrapper .sortDown a {
			padding: 1rem .625rem 1rem 0;
		}
	#sortDivWrapper div:first-child a {
		padding-left: 1rem;
	}
	#sortDivWrapper div:last-child a {
		padding-right: 1rem;
	}
	#sortDivWrapper a:hover {
		/*background-color: #bfbfbf;*/
	}
	
.sortingUpApplied,
.sortingDownApplied {
	font-weight: 700 !important;
}
	.sortingUpApplied .amountSummarySortField,
	.sortingDownApplied .amountSummarySortField {
		font-weight: 500;
	}
	.sortingUpApplied .amountSummarySortField.sortUp,
	.sortingDownApplied .amountSummarySortField.sortDown {
		font-weight: 700;
	}

.sortingUpApplied > a::before,
.amountSummarySortField.sortUp::before {
	content: '\2191\0020';
	padding-left: 1rem;
}
.sortingDownApplied > a::before,
.amountSummarySortField.sortDown::before {
	content: '\2193\0020';
	padding-left: 1rem;
}

/*Activities*/
.results.animals, .results_grid_cell[data-field="Animals"],
.results.armedForces, .results_grid_cell[data-field="Armed_Forces"],
.results.artsCulture, .results_grid_cell[data-field="Arts_Culture"],
.results.childrenYouth, .results_grid_cell[data-field="Children_Youth"],
.results.christianity, .results_grid_cell[data-field="Christianity"],
.results.community, .results_grid_cell[data-field="Community"],
.results.disability, .results_grid_cell[data-field="Disability"],
.results.educationTraining, .results_grid_cell[data-field="Education_Training"],
.results.elderly, .results_grid_cell[data-field="Elderly"],
.results.emergencyServices, .results_grid_cell[data-field="Emergency_Services"],
.results.environment, .results_grid_cell[data-field="Environment"],
.results.generalCharitablePurposes, .results_grid_cell[data-field="General_Charitable_Purposes"],
.results.health, .results_grid_cell[data-field="Health"],
.results.heritage, .results_grid_cell[data-field="Heritage"],
.results.higherEducation, .results_grid_cell[data-field="Higher_Education"],
.results.hospices, .results_grid_cell[data-field="Hospices"],
.results.housing, .results_grid_cell[data-field="Housing"],
.results.internationalDevelopment, .results_grid_cell[data-field="International_Development"],
.results.islam, .results_grid_cell[data-field="Islam"],
.results.judaism, .results_grid_cell[data-field="Judaism"],
.results.mentalHealth, .results_grid_cell[data-field="Mental_Health"],
.results.otherReligions, .results_grid_cell[data-field="Other_Religions"],
.results.politicalBody, .results_grid_cell[data-field="Political_Body"],
.results.research, .results_grid_cell[data-field="Research"],
.results.rightsLawConflict, .results_grid_cell[data-field="Rights_Law_Conflict"],
.results.sportsRecreation, .results_grid_cell[data-field="Sports_Recreation"],
.results.welfare, .results_grid_cell[data-field="Welfare"],
.results.women, .results_grid_cell[data-field="Women"] {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	margin-bottom: 0;
	transition: max-width .5s ease, opacity .5s ease;
	
}
	.table-scroll.activity .results.animals, .table-scroll.activity .results_grid_cell[data-field="Animals"],
	.table-scroll.activity .results.armedForces, .table-scroll.activity .results_grid_cell[data-field="Armed_Forces"],
	.table-scroll.activity .results.artsCulture, .table-scroll.activity .results_grid_cell[data-field="Arts_Culture"],
	.table-scroll.activity .results.childrenYouth, .table-scroll.activity .results_grid_cell[data-field="Children_Youth"],
	.table-scroll.activity .results.christianity, .table-scroll.activity .results_grid_cell[data-field="Christianity"],
	.table-scroll.activity .results.community, .table-scroll.activity .results_grid_cell[data-field="Community"],
	.table-scroll.activity .results.disability, .table-scroll.activity .results_grid_cell[data-field="Disability"],
	.table-scroll.activity .results.educationTraining, .table-scroll.activity .results_grid_cell[data-field="Education_Training"],
	.table-scroll.activity .results.elderly, .table-scroll.activity .results_grid_cell[data-field="Elderly"],
	.table-scroll.activity .results.emergencyServices, .table-scroll.activity .results_grid_cell[data-field="Emergency_Services"],
	.table-scroll.activity .results.environment, .table-scroll.activity .results_grid_cell[data-field="Environment"],
	.table-scroll.activity .results.generalCharitablePurposes, .table-scroll.activity .results_grid_cell[data-field="General_Charitable_Purposes"],
	.table-scroll.activity .results.health, .table-scroll.activity .results_grid_cell[data-field="Health"],
	.table-scroll.activity .results.heritage, .table-scroll.activity .results_grid_cell[data-field="Heritage"],
	.table-scroll.activity .results.higherEducation, .table-scroll.activity .results_grid_cell[data-field="Higher_Education"],
	.table-scroll.activity .results.hospices, .table-scroll.activity .results_grid_cell[data-field="Hospices"],
	.table-scroll.activity .results.housing, .table-scroll.activity .results_grid_cell[data-field="Housing"],
	.table-scroll.activity .results.internationalDevelopment, .table-scroll.activity .results_grid_cell[data-field="International_Development"],
	.table-scroll.activity .results.islam, .table-scroll.activity .results_grid_cell[data-field="Islam"],
	.table-scroll.activity .results.judaism, .table-scroll.activity .results_grid_cell[data-field="Judaism"],
	.table-scroll.activity .results.mentalHealth, .table-scroll.activity .results_grid_cell[data-field="Mental_Health"],
	.table-scroll.activity .results.otherReligions, .table-scroll.activity .results_grid_cell[data-field="Other_Religions"],
	.table-scroll.activity .results.politicalBody, .table-scroll.activity .results_grid_cell[data-field="Political_Body"],
	.table-scroll.activity .results.research, .table-scroll.activity .results_grid_cell[data-field="Research"],
	.table-scroll.activity .results.rightsLawConflict, .table-scroll.activity .results_grid_cell[data-field="Rights_Law_Conflict"],
	.table-scroll.activity .results.sportsRecreation, .table-scroll.activity .results_grid_cell[data-field="Sports_Recreation"],
	.table-scroll.activity .results.welfare, .table-scroll.activity .results_grid_cell[data-field="Welfare"],
	.table-scroll.activity .results.women, .table-scroll.activity .results_grid_cell[data-field="Women"] {
		max-width: 9999px;
		opacity: 1;
	}

/* List view*/
#formOrder {
	background-color: #eee;
	padding: 0 0 .5rem .5rem;
	position: relative;
	display: none;
}

body.listView #formOrder {
	padding: .5rem;
	position: relative;
}

body.listView #formOrder form {
	position: relative;
}

input[value="sort"] {
	text-transform: capitalize;
}

#formOrder input[value="sort"] {
	height: 2.4rem;
	margin: 0 0 0 .333rem;
	top: 0;
	position: absolute;
	border-radius: calc(2.4rem / 2);
	padding-left: 1rem;
	padding-right: 1rem;
}

body.listView .details_pane {
	background: transparent;
	color: #fff;
	margin: 0;
	padding: 1rem .5rem 1rem;
	position: relative;
}
	body.listView .details_pane:hover {
		background-color: rgba(0,0,0,0.2) !important;
	}
body.listView .details_pane:nth-child(2n) {
	background-color: rgba(0,0,0,0.1);
}
body.listView .table-scroll {
	background-image: linear-gradient(105deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.667) 100%), linear-gradient(15deG, rgba(115, 148, 183, 1) 0%, rgba(115, 148, 183, 0) 100%);
	position: relative;
}
body.listView .table-scroll::before {
	background-color: #05305e;
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 0;
	opacity: .5;
}
body.listView .table-scroll > * {
	z-index: 1;
	position: relative;
}

.controls_1 > a.onlyscreen,
.controls_2 > a.onlyscreen,
body.listView .details_pane a.onlyscreen {
	width: 2.4rem;
	height: 2.4rem;
	background-color: #05305e;
	border-radius: 50%;
	line-height: 2.4rem;
	text-align: center;
	position: relative;
	display: inline-block;
	color: #ffd700;
	transition: color 1s ease, background-color 1s ease;
	padding-top: 3px;
}
.controls_1 > a.onlyscreen:hover,
.controls_2 > a.onlyscreen:hover,
body.listView .details_pane a.onlyscreen:hover {
	background-color: #ffd700 !important;
	color: #05305e !important;
}

.controls_1 > a.onlyscreen:visited,
.controls_2 > a.onlyscreen:visited {
	border: 1px solid red;
}

body.listView .details_pane a.onlyscreen {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
}

body.listView .table-scroll #animals,
body.listView .table-scroll #armedForces,
body.listView .table-scroll #artsAmpCulture,
body.listView .table-scroll #childrenAmpYouth,
body.listView .table-scroll #christianity,
body.listView .table-scroll #community,
body.listView .table-scroll #disability,
body.listView .table-scroll #educationAmpTraining,
body.listView .table-scroll #elderly,
body.listView .table-scroll #emergencyServices,
body.listView .table-scroll #environment,
body.listView .table-scroll #generalCharitablePurposes,
body.listView .table-scroll #health,
body.listView .table-scroll #heritage,
body.listView .table-scroll #higherEducation,
body.listView .table-scroll #hospices,
body.listView .table-scroll #housing,
body.listView .table-scroll #internationalDevelopment,
body.listView .table-scroll #islam,
body.listView .table-scroll #judaism,
body.listView .table-scroll #mentalHealth,
body.listView .table-scroll #otherReligions,
body.listView .table-scroll #politicalBody,
body.listView .table-scroll #research,
body.listView .table-scroll #rightsLawAmpConflict,
body.listView .table-scroll #sportsAmpRecreation,
body.listView .table-scroll #welfare,
body.listView .table-scroll #women {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-bottom: 0;
	transition: max-height .5s ease, opacity .5s ease, margin-bottom .5s ease;
}
	body.listView .table-scroll.activity #animals,
	body.listView .table-scroll.activity #armedForces,
	body.listView .table-scroll.activity #artsAmpCulture,
	body.listView .table-scroll.activity #childrenAmpYouth,
	body.listView .table-scroll.activity #christianity,
	body.listView .table-scroll.activity #community,
	body.listView .table-scroll.activity #disability,
	body.listView .table-scroll.activity #educationAmpTraining,
	body.listView .table-scroll.activity #elderly,
	body.listView .table-scroll.activity #emergencyServices,
	body.listView .table-scroll.activity #environment,
	body.listView .table-scroll.activity #generalCharitablePurposes,
	body.listView .table-scroll.activity #health,
	body.listView .table-scroll.activity #heritage,
	body.listView .table-scroll.activity #higherEducation,
	body.listView .table-scroll.activity #hospices,
	body.listView .table-scroll.activity #housing,
	body.listView .table-scroll.activity #internationalDevelopment,
	body.listView .table-scroll.activity #islam,
	body.listView .table-scroll.activity #judaism,
	body.listView .table-scroll.activity #mentalHealth,
	body.listView .table-scroll.activity #otherReligions,
	body.listView .table-scroll.activity #politicalBody,
	body.listView .table-scroll.activity #research,
	body.listView .table-scroll.activity #rightsLawAmpConflict,
	body.listView .table-scroll.activity #sportsAmpRecreation,
	body.listView .table-scroll.activity #welfare,
	body.listView .table-scroll.activity #women {
		max-height: 9999px;
		opacity: 1;
		margin-bottom: .25rem;
	}

	

/*Geography*/
.results.northernIreland, .results_grid_cell[data-field="Regional_NorthernIreland"],
.results.scotland, .results_grid_cell[data-field="Regional_Scotland"],
.results.wales, .results_grid_cell[data-field="Regional_Wales"],
.results.eastMidlands, .results_grid_cell[data-field="Regional_EastMidlands"],
.results.eastOfEngland, .results_grid_cell[data-field="Regional_EastOfEngland"],
.results.greaterLondon, .results_grid_cell[data-field="Regional_GreaterLondon"],
.results.northEastEngland, .results_grid_cell[data-field="Regional_NorthEastEngland"],
.results.northWestEngland, .results_grid_cell[data-field="Regional_NorthWestEngland"],
.results.southEastEngland, .results_grid_cell[data-field="Regional_SouthEastEngland"],
.results.southWestEngland, .results_grid_cell[data-field="Regional_SouthWestEngland"],
.results.westMidlandsRegion, .results_grid_cell[data-field="Regional_WestMidlandsRegion"],
.results.yorkshireTheHumber, .results_grid_cell[data-field="Regional_YorkshireAndTheHumber"],
.results.africa, .results_grid_cell[data-field="Overseas_Africa"],
.results.americas, .results_grid_cell[data-field="Overseas_Americas"],
.results.asiaPacific, .results_grid_cell[data-field="Overseas_AsiaPacific"],
.results.europe, .results_grid_cell[data-field="Overseas_Europe"] {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width .5s ease, opacity .5s ease;
}
	.table-scroll.geography .results.northernIreland, .table-scroll.geography .results_grid_cell[data-field="Regional_NorthernIreland"],
	.table-scroll.geography .results.scotland, .table-scroll.geography .results_grid_cell[data-field="Regional_Scotland"],
	.table-scroll.geography .results.wales, .table-scroll.geography .results_grid_cell[data-field="Regional_Wales"],
	.table-scroll.geography .results.eastMidlands, .table-scroll.geography .results_grid_cell[data-field="Regional_EastMidlands"],
	.table-scroll.geography .results.regionalEastOfEngland, .table-scroll.geography .results_grid_cell[data-field="Regional_EastOfEngland"],
	.table-scroll.geography .results.greaterLondon, .table-scroll.geography .results_grid_cell[data-field="Regional_GreaterLondon"],
	.table-scroll.geography .results.northEastEngland, .table-scroll.geography .results_grid_cell[data-field="Regional_NorthEastEngland"],
	.table-scroll.geography .results.northWestEngland, .table-scroll.geography .results_grid_cell[data-field="Regional_NorthWestEngland"],
	.table-scroll.geography .results.southEastEngland, .table-scroll.geography .results_grid_cell[data-field="Regional_SouthEastEngland"],
	.table-scroll.geography .results.southWestEngland, .table-scroll.geography .results_grid_cell[data-field="Regional_SouthWestEngland"],
	.table-scroll.geography .results.westMidlandsRegion, .table-scroll.geography .results_grid_cell[data-field="Regional_WestMidlandsRegion"],
	.table-scroll.geography .results.yorkshireTheHumber, .table-scroll.geography .results_grid_cell[data-field="Regional_YorkshireAndTheHumber"],
	.table-scroll.geography .results.africa, .table-scroll.geography .results_grid_cell[data-field="Overseas_Africa"],
	.table-scroll.geography .results.americas, .table-scroll.geography .results_grid_cell[data-field="Overseas_Americas"],
	.table-scroll.geography .results.asiaPacific, .table-scroll.geography .results_grid_cell[data-field="Overseas_AsiaPacific"],
	.table-scroll.geography .results.europe, .table-scroll.geography .results_grid_cell[data-field="Overseas_Europe"] {
		max-width: 9999px;
		opacity: 1;
	}
	
body.listView .table-scroll #northernIreland,
body.listView .table-scroll #scotland,
body.listView .table-scroll #wales,
body.listView .table-scroll #eastMidlands,
body.listView .table-scroll #regionalEastOfEngland,
body.listView .table-scroll #greaterLondon,
body.listView .table-scroll #northEastEngland,
body.listView .table-scroll #northWestEngland,
body.listView .table-scroll #southEastEngland,
body.listView .table-scroll #southWestEngland,
body.listView .table-scroll #westMidlandsRegion,
body.listView .table-scroll #yorkshireAmpTheHumber,
body.listView .table-scroll #africa,
body.listView .table-scroll #americas,
body.listView .table-scroll #asiaPacific,
body.listView .table-scroll #europe {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-bottom: 0;
	transition: max-height .5s ease, opacity .5s ease, margin-bottom .5s ease;
}
	body.listView .table-scroll.geography #northernIreland,
	body.listView .table-scroll.geography #scotland,
	body.listView .table-scroll.geography #wales,
	body.listView .table-scroll.geography #eastMidlands,
	body.listView .table-scroll.geography #regionalEastOfEngland,
	body.listView .table-scroll.geography #greaterLondon,
	body.listView .table-scroll.geography #northEastEngland,
	body.listView .table-scroll.geography #northWestEngland,
	body.listView .table-scroll.geography #southEastEngland,
	body.listView .table-scroll.geography #southWestEngland,
	body.listView .table-scroll.geography #westMidlandsRegion,
	body.listView .table-scroll.geography #yorkshireAmpTheHumber,
	body.listView .table-scroll.geography #africa,
	body.listView .table-scroll.geography #americas,
	body.listView .table-scroll.geography #asiaPacific,
	body.listView .table-scroll.geography #europe {
		max-height: 9999px;
		opacity: 1;
		margin-bottom: .25rem;
	}

/*Financials*/
.results.largestGrantAmount, .results_grid_cell[data-field="Largest_Grant_Amount"]:not(.sort),
.results.smallestGrantAmount, .results_grid_cell[data-field="Smallest_Grant_Amount"]:not(.sort),
.results.averageGrantAmount, .results_grid_cell[data-field="Average_Grant_Amount"]:not(.sort),
.results.numberOfGrants, .results_grid_cell[data-field="Number_of_Grants"]:not(.sort),
.results.latestIncome, .results_grid_cell[data-field="Latest_Income"]:not(.sort),
/*.results.latestTotalExpenditure, .results_grid_cell[data-field="Latest_Total_Expenditure"]:not(.sort),*/
.results.latestFinancialYearEnd, .results_grid_cell[data-field="Latest_Financial_Year_End"]:not(.sort) {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width .5s ease, opacity .5s ease;
}
	.table-scroll.financial .results.largestGrantAmount, .table-scroll.financial .results_grid_cell[data-field="Largest_Grant_Amount"],
	.table-scroll.financial .results.smallestGrantAmount, .table-scroll.financial .results_grid_cell[data-field="Smallest_Grant_Amount"],
	.table-scroll.financial .results.averageGrantAmount, .table-scroll.financial .results_grid_cell[data-field="Average_Grant_Amount"],
	.table-scroll.financial .results.numberOfGrants, .table-scroll.financial .results_grid_cell[data-field="Number_of_Grants"],
	.table-scroll.financial .results.latestIncome, .table-scroll.financial .results_grid_cell[data-field="Latest_Income"],
	/*.table-scroll.financial .results.latestTotalExpenditure, .table-scroll.financial .results_grid_cell[data-field="Latest_Total_Expenditure"],*/
	.table-scroll.financial .results.latestFinancialYearEnd, .table-scroll.financial .results_grid_cell[data-field="Latest_Financial_Year_End"] {
		max-width: 9999px;
		opacity: 1;
		overflow: visible;
	}
	
body.listView .table-scroll #largestGrantAmount,
body.listView .table-scroll #averageGrantAmount,
body.listView .table-scroll #smallestGrantAmount,
body.listView .table-scroll #numberOfGrants,
body.listView .table-scroll #latestIncome,
body.listView .table-scroll #latestTotalExpenditure,
body.listView .table-scroll #latestFinancialYearEnd {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-bottom: 0;
	transition: max-height .5s ease, opacity .5s ease, margin-bottom .5s ease;
}
	body.listView .table-scroll.financial #largestGrantAmount:not(.emptyItem),
	body.listView .table-scroll.financial #averageGrantAmount:not(.emptyItem),
	body.listView .table-scroll.financial #smallestGrantAmount:not(.emptyItem),
	body.listView .table-scroll.financial #numberOfGrants:not(.emptyItem),
	body.listView .table-scroll.financial #latestIncome:not(.emptyItem),
	body.listView .table-scroll.financial #latestTotalExpenditure:not(.emptyItem),
	body.listView .table-scroll.financial #latestFinancialYearEnd:not(.emptyItem) {
		max-height: 9999px;
		opacity: 1;	
		margin-bottom: .25rem;
	}
	
.table-scroll.activity .results_grid_cell[data-field="Animals"],
.table-scroll.activity .results_grid_cell[data-field="Armed_Forces"],
.table-scroll.activity .results_grid_cell[data-field="Arts_Culture"],
.table-scroll.activity .results_grid_cell[data-field="Children_Youth"],
.table-scroll.activity .results_grid_cell[data-field="Christianity"],
.table-scroll.activity .results_grid_cell[data-field="Community"],
.table-scroll.activity .results_grid_cell[data-field="Disability"],
.table-scroll.activity .results_grid_cell[data-field="Education_Training"],
.table-scroll.activity .results_grid_cell[data-field="Elderly"],
.table-scroll.activity .results_grid_cell[data-field="Emergency_Services"],
.table-scroll.activity .results_grid_cell[data-field="Environment"],
.table-scroll.activity .results_grid_cell[data-field="General_Charitable_Purposes"],
.table-scroll.activity .results_grid_cell[data-field="Health"],
.table-scroll.activity .results_grid_cell[data-field="Heritage"],
.table-scroll.activity .results_grid_cell[data-field="Higher_Education"],
.table-scroll.activity .results_grid_cell[data-field="Hospices"],
.table-scroll.activity .results_grid_cell[data-field="Housing"],
.table-scroll.activity .results_grid_cell[data-field="International_Development"],
.table-scroll.activity .results_grid_cell[data-field="Islam"],
.table-scroll.activity .results_grid_cell[data-field="Judaism"],
.table-scroll.activity .results_grid_cell[data-field="Mental_Health"],
.table-scroll.activity .results_grid_cell[data-field="Other_Religions"],
.table-scroll.activity .results_grid_cell[data-field="Political_Body"],
.table-scroll.activity .results_grid_cell[data-field="Research"],
.table-scroll.activity .results_grid_cell[data-field="Rights_Law_Conflict"],
.table-scroll.activity .results_grid_cell[data-field="Sports_Recreation"],
.table-scroll.activity .results_grid_cell[data-field="Welfare"],
.table-scroll.activity .results_grid_cell[data-field="Women"],
.table-scroll.geography .results_grid_cell[data-field="Regional_NorthernIreland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_Scotland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_Wales"],
.table-scroll.geography .results_grid_cell[data-field="Regional_EastMidlands"],
.table-scroll.geography .results_grid_cell[data-field="Regional_EastOfEngland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_GreaterLondon"],
.table-scroll.geography .results_grid_cell[data-field="Regional_NorthEastEngland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_NorthWestEngland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_SouthEastEngland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_SouthWestEngland"],
.table-scroll.geography .results_grid_cell[data-field="Regional_WestMidlandsRegion"],
.table-scroll.geography .results_grid_cell[data-field="Regional_YorkshireAndTheHumber"],
.table-scroll.geography .results_grid_cell[data-field="Overseas_Africa"],
.table-scroll.geography .results_grid_cell[data-field="Overseas_Americas"],
.table-scroll.geography .results_grid_cell[data-field="Overseas_AsiaPacific"],
.table-scroll.geography .results_grid_cell[data-field="Overseas_Europe"],
.table-scroll.financial .results_grid_cell[data-field="Largest_Grant_Amount"],
.table-scroll.financial .results_grid_cell[data-field="Smallest_Grant_Amount"],
.table-scroll.financial .results_grid_cell[data-field="Average_Grant_Amount"],
.table-scroll.financial .results_grid_cell[data-field="Number_of_Grants"],
.table-scroll.financial .results_grid_cell[data-field="Latest_Income"],
.table-scroll.financial .results_grid_cell[data-field="Latest_Total_Expenditure"],
.table-scroll.financial .results_grid_cell[data-field="Latest_Financial_Year_End"] {
	max-width: 9999px;
	opacity: 1;
	animation-name: fade;
	animation-duration: 3s; 
	animation-timing-function: ease-out; 
	animation-delay: 0s;
	animation-direction: normal;
	animation-iteration-count: 1;
}

th.grantDataAvailable.extraneous, .results_grid_cell[data-field="Grant_Data_Available"].extraneous {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width .5s ease, opacity .5s ease;
}
	th.grantDataAvailable:not(.extraneous), .results_grid_cell[data-field="Grant_Data_Available"]:not(.extraneous) {
		max-width: 9999px;
		opacity: 1;
	}

@keyframes fade {
	0% {
		outline: .25rem solid rgba(255,255,255,.8);
	}
	100% {
		outline: .25rem solid rgba(255,255,255,0);
	}
}

table.results td[data-field="Largest_Grant_Amount"]:not(.empty),
table.results td[data-field="Average_Grant_Amount"]:not(.empty),
table.results td[data-field="Smallest_Grant_Amount"]:not(.empty),
table.results td[data-field="Amount"]:not(.empty),
table.results td[data-field="GiftBandUpper"]:not(.empty),
table.results td[data-field="GiftBandLower"]:not(.empty),
table.results td[data-field="Number_of_Grants"]:not(.empty),
table.results td[data-field="Latest_Income"]:not(.empty),
table.results td[data-field="Latest_Total_Expenditure"]:not(.empty),
table.results td[data-field="Latest_Financial_Year_End"]:not(.empty) {
	text-align: right;
}

table.results td[data-field="Largest_Grant_Amount"]:not(.empty)::before,
table.results td[data-field="Average_Grant_Amount"]:not(.empty)::before,
table.results td[data-field="Smallest_Grant_Amount"]:not(.empty)::before,
table.results td[data-field="Amount"]:not(.empty)::before,
table.results td[data-field="GiftBandUpper"]:not(.empty)::before,
table.results td[data-field="GiftBandLower"]:not(.empty)::before,
table.results td[data-field="Latest_Income"]:not(.empty)::before,
table.results td[data-field="Latest_Total_Expenditure"]:not(.empty)::before {
	content: '\00A3';
}

table.results tr:has(td[data-field="Latest_Financial_Year_End"].empty) td[data-field="Latest_Income"].empty::before { 
	/*content: 'Newly\00a0registered';*/
}

body.trustGrantsDetails #Row-Amount .form_input_element::before,
body.trustGrantsDetails #Row-Upper-Gift-Band .form_input_element::before,
body.trustGrantsDetails #Row-Lower-Gift-Band .form_input_element::before {
	content: '\00A3';
}

body.listView #largestGrantAmount .listDataItemContent::before,
body.listView #averageGrantAmount .listDataItemContent::before,
body.listView #smallestGrantAmount .listDataItemContent::before,
body.listView #latestIncome .listDataItemContent::before,
body.listView #latestTotalExpenditure .listDataItemContent::before {
	content: '\00A3';
}

body.listView #largestGrantAmount .listDataItemContent,
body.listView #averageGrantAmount .listDataItemContent,
body.listView #smallestGrantAmount .listDataItemContent,
body.listView #latestIncome .listDataItemContent,
body.listView #latestTotalExpenditure .listDataItemContent {
	/*text-align: right;
	margin-right: 40%;*/
}

/* Results page, list view */
.details_pane {
	padding-bottom: 1rem;
}

.details_pane_inner_wrapper {
	max-width: calc(736px + 4.5rem);
	margin: 0 auto;
	position: relative;
	padding-left: 3.5rem;
	/* display: flex; */
	/* flex-direction: column; */
	/* flex-wrap: nowrap; */
}

.listDataItem {
	display: flex;
}

.details_pane > a,
.listDataItem {
	margin-bottom: .25rem;
}

.listDataItem.emptyItem {
	display: none;	
}

.listDataItemName {
	flex-basis: 50%;
	max-width: 320px;
	min-width: 180px;
	font-weight: 600;
}

.listDataItemContent {
	flex-basis: 70%;
}


/*Details page*/
body.featuredTrustsDetails h1{
	margin-left: 1rem;
}

body.featuredTrustsDetails .form_fields_set {
	/* background-image: linear-gradient(#354b63 0%, #18324e 100%); 
	/* padding: 6.5rem 3rem 4rem; 
	/* color: #ededed; 
	/* border-radius: 1rem; 
	/* margin-left: 1rem; 
	/* margin-right: 1rem; 
}
body.featuredTrustsDetails .form_fields_set {
	/*columns: 1;
}
	@media screen and (min-width: 1020px) {
		body.featuredTrustsDetails .form_fields_set {
			/*columns: 2;
		}
	}
	@media screen and (min-width: 1500px) {
		body.featuredTrustsDetails .form_fields_set {
			/*columns: 3;
		}
	}

body.featuredTrustsDetails .td_content {
	padding: 0;
}

body.featuredTrustsDetails .css_form {
	margin-left: 1rem;
	margin-right: 1rem;
}

body.featuredTrustsDetails .css_form:nth-of-type(2) {
	display: none; /* Hide second 'go back' button on details page */
}

.title_items_master_details {
	margin-left: 1rem;
}	

body.featuredTrustsDetails a[name="TrustGrants"] {
	margin: 0 -1rem;
	display: block;
}

a[name="TrustGrants"] thead { /*For embedded grants table*/
	background-color: #f5f5f5;
}

a[name="TrustGrants"] > p {
	margin-left: 1rem;
	margin-right: 1rem;
}

.details-section-wrapper {
	padding: 1.5rem 1rem 4rem;
	border-radius: 1rem;
	border: 1px solid #ccc;
	margin: 0;
	position: relative;
	color: #fff;
}

body.featuredTrustsDetails .form_fields_set {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0;
}

#sub-details-wrapper h2 {
	font-size: 0.9rem;
	text-transform: uppercase;
	font-weight: 650;
	margin: 0.25rem 0 1rem 0;
	line-height: 1rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px dotted rgba(255,255,255,0.25);
}

@media screen and (max-width: 1240px) {
	body.featuredTrustsDetails .form_fields_set > div {
		flex-basis: calc(100%);
		flex-grow: 1;
	}
}

#basicInfo {
	background-image: linear-gradient(#354b63 0%, #2e455e 100%);
}

#contactInfo {
	background-image: linear-gradient(#2e455e 0%, #263e58 100%);
}

#activitiesInfo {
	background-image: linear-gradient(#263e58 0%, #1f3853 100%);
}

#geographyInfo {
	background-image: linear-gradient(#1f3853 0%, #18324e 100%);
}

body.featuredTrustsDetails #name-row-wrapper {
	/* margin-top: -4.5rem; */
	width: calc(100%);
	/* position: absolute; */
	border-bottom: 1px dotted rgba(255,255,255,0.5);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	display: flex;
	flex-wrap: wrap;
}

#name-row-wrapper > div {
	flex-basis: 50%;
}

#additional-basic-details {
	display: flex;
	flex-wrap: wrap;
}

#additional-basic-details > div {
	flex-basis: 50%;
}

body.featuredTrustsDetails .form_fields_set a {
	color: #ededed;
	border-bottom: 2px solid #ffd700;
	text-decoration: none;
}
body.featuredTrustsDetails .form_fields_set a:active,
body.featuredTrustsDetails .form_fields_set a:hover {
	border-bottom: 4px solid #ffd700;
}
body.featuredTrustsDetails .form_fields_set a:visited {
	color: #ccc;
}

body.featuredTrustsDetails #Row-PDF-link a {
	overflow: hidden;
	max-height: 1.8rem;
	display: inline-block;
	width: 1.8rem;
	border-bottom: none;
	border: none;
	line-height: 999rem;
	background-image: url('/assets/link.png');
	background-size: cover;
	background-repeat: no-repeat;
}

body.featuredTrustsDetails .form_row {
	break-inside: avoid;
	display: flex;
}

body.featuredTrustsDetails .form_row:nth-child(n+7):nth-child(-n+12) { /* Keeps address block together (to some extent) */
	break-inside: avoid;
}

body.featuredTrustsDetails #Row-Address-Line-1:not(:has(.form_input_element:empty)) .detail_page_label::before {
	content: 'Address';
	visibility: visible;
	position: absolute;
}

body.featuredTrustsDetails #Row-Address-Postcode:not(:has(.form_input_element:empty)) .detail_page_label::before {
	content: 'Postcode';
	visibility: visible;
	position: absolute;
}

/*@media screen and (min-width: 768px) {
	body.featuredTrustsDetails #Row-Address-Line-1 .detail_page_label::before {
		right: 12px;
	}
}*/

body.featuredTrustsDetails #Row-Address-Line-1 .detail_page_label,
body.featuredTrustsDetails #Row-Address-Postcode .detail_page_label {
	visibility: hidden;
	position: relative;
}
body.featuredTrustsDetails #Row-Address-Line-2 .detail_page_label,
body.featuredTrustsDetails #Row-Address-Line-3 .detail_page_label,
body.featuredTrustsDetails #Row-Address-Line-4 .detail_page_label,
body.featuredTrustsDetails #Row-Address-Line-5 .detail_page_label,
body.featuredTrustsDetails #Row-Address-Postcode .detail_page_label {
	visibility: hidden;
}

body.featuredTrustsDetails .form_row:has(.form_input_element:empty),
body.trustGrantsDetails .form_row:has(.form_input_element:empty) {
	height: 0;
	visibility: hidden;
}

body.featuredTrustsDetails #Row-Newly-Registered.notNewlyRegistered {
	display: none;
}

#Row-PDF-link {
	margin-top: 1rem;
}

#financial-details-chart-wrapper {
	position: relative;
	width: 100%;
	margin-top: 1rem;
}

#financial-details-chart-wrapper canvas:first-child {
	margin: 1.6rem 0;
}
#financial-details-chart-wrapper canvas:last-child {
	margin: 1.6rem 0 0;
}

#details-maps {
	position: relative;
	display: flex;
	width: calc((100% / 3) * 2);
	margin: 0 auto;
	max-width: 1000px;
}
 @media screen and (max-width: 641px) {
	#details-maps {
		flex-wrap: wrap;
	}
}

#details-maps > div {
	position: relative;
}

#details-maps a {
	cursor: ;
	position: absolute;
	line-height: 1.05rem;
	font-size: 0.8rem;
	color: #fefefe;
	text-align: center;
	text-decoration: none;
	padding: 1rem;
}

.interactive-map a span:not(.region) {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
}

.interactive-map a span:not(.region) {
	transform: translate(-50%, -53%);
}

#UK-map a,
#world-map a span {
	border-radius: 1rem;
	background-color: #496585;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
}
	#UK-map a.active,
	#world-map a.active span {
		background-color: #05305e;
	}

#details-maps a span:not(.region) {
	transform: translate(-50%, -50%);
}

#details-maps #UK-map {
	height: 100%;
	min-width: 320px;
	aspect-ratio: 1 / 1.509;
	width: 50%;
	max-width: 600px;
}

#details-maps #world-map {
	min-height: 321px;
	aspect-ratio: 2 / 1;
	height: 60%;
	width: 60%;
	margin-top: 10%;
}

#details-maps #UK-map span {
	position: absolute;
	top: 50%;
	left: 50%;
}

#details-maps #UK-map #Scotland {
	top: 4%;
	height: 39%;
	width: 31%;
	left: 30%;
	z-index: 9;
}

#details-maps #UK-map #Wales {
	top: 59%;
	height: 20%;
	width: 20%;
	left: 34%;
	z-index: 9;
}

#details-maps #UK-map #NorthernIreland {
	top: 39%;
	height: 13%;
	left: 3%;
	width: 24%;
	z-index: 9;
}

#details-maps #UK-map #EastMidlands {
	top: 59%;
	height: 7.5%;
	left: 66%;
	width: 19%;
	z-index: 9;
}

#details-maps #UK-map #EastOfEngland {
	top: 66.5%;
	height: 6.5%;
	left: 66%;
	width: 21%;
	z-index: 9;
}

#details-maps #UK-map #GreaterLondon {
	top: 73%;
	height: 6%;
	left: 66%;
	width: 16%;
	z-index: 99;
}

#details-maps #UK-map #NorthEastEngland {
	top: 34%;
	height: 13%;
	left: 61%;
	width: 11%;
	z-index: 99;
}
@media screen and (max-width: 1100px) {
	a#NorthEastEngland span {
		left: 80px;
	}
	
	a#NorthEastEngland span::after {
		width: 41px;
		/* transform: translateX(-9px); */
		left: -36px;
		top: 50%;
	}
}

#details-maps #UK-map #NorthWestEngland {
	top: 43%;
	height: 16%;
	left: 49%;
	width: 12%;
	z-index: 99;
}
@media screen and (max-width: 1100px) {
	a#NorthWestEngland span {
		position: absolute;
		left: -40px;
		width: 80px;
	}
	
	a#NorthWestEngland span::after {
		width: 30px;
		transform: translateX(12px);
	}
}

#details-maps #UK-map #SouthEastEngland {
	top: 79%;
	height: 8%;
	left: 65%;
	width: 31%;
	z-index: 9;
}

#details-maps #UK-map #SouthWestEngland {
	top: 81%;
	height: 8%;
	left: 28%;
	width: 37%;
	z-index: 9;
}

#details-maps #UK-map #WestMidlandsRegion {
	top: 59%;
	height: 20%;
	left: 54%;
	width: 12%;
	z-index: 9;
}
@media screen and (max-width: 1100px) {
	a#WestMidlandsRegion span {
		position: absolute;
		left: -120px;
		width: 90px;
		top: -10px;
	}
	
	a#WestMidlandsRegion span::after {
		width: 145px;
		transform: translate(6px,5px) rotate(28deg);
		transform-origin: top left;
		height: 0.55px;
	}
}

#details-maps #UK-map #YorkshireAndTheHumber {
	top: 47%;
	left: 61%;
	width: 19%;
	height: 12%;
	z-index: 9;
}



body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Animals, 
body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Overseas,
body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Northern-Ireland,
body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Africa,
body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Year-end-Date-Year-5 {
	display: grid;
	grid-template-rows: [first] auto [last];
}

	@media screen and (max-width: 719px) {
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Animals, 
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Overseas,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Northern-Ireland,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Africa,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Year-end-Date-Year-5 {
			grid-template-columns: [first] 220px [separator1] 12px [separator2] auto [separator3] 0 [last];
		}
		
		
	}
	@media screen and (min-width: 720px) and (max-width: 999px) {
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Animals, 
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Overseas,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Northern-Ireland,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Africa {
			grid-template-columns: [first] 220px [separator1] 12px [separator2] auto [separator3] 0 [middle1] 220px [separator4] 12px [separator5] auto [separator6] 0 [last];
		}
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Year-end-Date-Year-5 {
			grid-template-columns: [first] 220px [separator1] 12px [separator2] auto [separator3] 0 [last];
		}
	}
	@media screen and (min-width: 1000px) {
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Animals, 
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Overseas,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Northern-Ireland,
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Africa {
			grid-template-columns: [first] 220px [separator1] 12px [separator2] auto [separator3] 0 [middle1] 220px [separator4] 12px [separator5] auto [separator6] 0 [middle2] 220px [separator7] 12px [separator8] auto [separator9] 0 [last];
		}
		body:not(.featuredTrustsSearch):not(.trustGrantsSearch) .form_fields_set #Year-end-Date-Year-5 {
			grid-template-columns: [first] 220px [separator1] 12px [separator2] calc( ( 100% / 6 ) - ( ( 220px + 12px ) * 3 ) ) [separator3] 0 [middle1] 220px [separator4] 12px [separator5] auto [separator6] 0 [middle2] 220px [separator7] 12px [separator8] auto [separator9] 0 [last];
		}
	}
	
body:not(.featuredTrustsSearch) #Row-Largest-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch) #Row-Average-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch) #Row-Smallest-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch) #Row-Latest-Total-Expenditure .form_input_element::before,
body:not(.featuredTrustsSearch) #Row-Latest-Income .form_input_element::before {
	content: '\00A3';
}	
body:not(.featuredTrustsSearch):not(.featuredTrustsDetails) #Row-Largest-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch):not(.featuredTrustsDetails) #Row-Average-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch):not(.featuredTrustsDetails) #Row-Smallest-Grant-Amount .form_input_element::before,
body:not(.featuredTrustsSearch):not(.featuredTrustsDetails) #Row-Latest-Total-Expenditure .form_input_element::before,
body:not(.featuredTrustsSearch):not(.featuredTrustsDetails) #Row-Latest-Income .form_input_element::before {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translate(0,calc(-50%));
	color: #000;
}

body.featuredTrustsSearch #Row-Largest-Grant-Amount .form_input_element::before,
body.featuredTrustsSearch #Row-Average-Grant-Amount .form_input_element::before,
body.featuredTrustsSearch #Row-Smallest-Grant-Amount .form_input_element::before,
body.featuredTrustsSearch #Row-Latest-Total-Expenditure .form_input_element::before,
body.featuredTrustsSearch #Row-Latest-Income .form_input_element::before,
body.trustGrantsSearch #Row-Amount .form_input_element::before,
body.trustGrantsSearch #Row-Upper-Gift-Band .form_input_element::before {
	content: '\00A3';
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translate(0,calc(-50%));
	color: #000;
}

body.featuredTrustsSearch input[name="Average_Grant_Amount"],
body.featuredTrustsSearch input[name="Smallest_Grant_Amount"],
body.featuredTrustsSearch input[name="Latest_Income"],
body.featuredTrustsSearch input[name="Latest_Total_Expenditure"],
body.trustGrantsSearch input[name="Amount"],
body.trustGrantsSearch input[name="GiftBandLower"],
body.trustGrantsSearch input[name="GiftBandUpper"] {
	padding-left: 1.2rem;
}

#Row-Largest-Grant-Amount .form_input_element:empty::before,
#Row-Average-Grant-Amount .form_input_element:empty::before,
#Row-Smallest-Grant-Amount .form_input_element:empty::before,
#Row-Latest-Total-Expenditure .form_input_element:empty::before,
#Row-Latest-Total-Income .form_input_element:empty::before {
	content: '';
}

.results_grid_cell[data-source="TrustGrants"][data-field="Amount"]:not(.empty)::before {
	content: '\00A3';
}

.results_grid_cell span {
	padding: 0.33rem .62rem;
	border-radius: 0.43rem/0.99rem;
}
	.results_grid_cell.no span {
		background-color: rgba(99,60,73,.9);
	}
	.results_grid_cell.yes span {
		background-color: rgba(74,97,89,.9);
	}

/*New styles*/
.form_fields_set > div:not(.advanced-search-section-wrapper):not(.details-section-wrapper) {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-items: stretch;
	gap: 1rem;
}

.form_fields_set > div:not(.advanced-search-section-wrapper) .form_input_element {
	flex-grow: 1;
	flex-basis: 220px;
}
body.featuredTrustsDetails .form_fields_set > div:not(.advanced-search-section-wrapper) .form_input_element {
	flex-basis: 200px;
}
	body.featuredTrustsDetails .form_fields_set #Row-Charity-Objectives .form_input_element {
		flex-basis: 220px !important;
		text-transform: uppercase;
	}

#sub-details-wrapper > div {
	flex-basis: 25%;
	flex-grow: 2;
}

.detail_page_label {
	text-align: left !important;
	flex-grow: 0;
	flex-basis: 220px;
	padding: 6px 0;
}
	body.featuredTrustsDetails #Row-Charity-Name .form_input_element {
		font-weight: 650;
	}
	
#Row-Charity-Objectives {
	max-height: calc(((1rem * 1.45) * 10) + 8px);
	overflow: hidden;
}

#Row-Charity-Objectives.active {
	max-height: fit-content;
	overflow: hidden;
	padding-bottom: 1.4rem;
}
	
body.trustGrantsSearchResults table.results .controls_2 + .zeropad,
body.trustGrantsSearchResults table.results .controls_1,
body.trustGrantsSearchResults table.results .controls_2,
body.trustGrantsSearchResults table.results .controls_1 + .zeropad,

body.featuredTrustsDetails table.results .controls_2 + .zeropad,
body.featuredTrustsDetails table.results .controls_1,
body.featuredTrustsDetails table.results .controls_2,
body.featuredTrustsDetails table.results .controls_1 + .zeropad {
	display: none;
	opacity: 0;
}

/*body.trustGrantsSearchResults .results .classicGridList {
	display: none;
}*/
body.trustGrantsSearchResults .results .TrustLink {
	opacity: 0;
	cursor: default;
	display: none;
}

body.trustGrantsSearchResults .tr_results_header .gridList + .zeropad,
body.trustGrantsSearchResults .tr_results_header .classicGridList + .zeropad,
body.trustGrantsSearchResults .tr_results_header th form,
body.trustGrantsSearchResults .tr_results_header .trustLink,
body.trustGrantsSearchResults .tr_results_header .trustLink.sortUp,
body.trustGrantsSearchResults .tr_results_header .trustLink.sortDown,

body.featuredTrustsDetails .tr_results_header .gridList + .zeropad,
body.featuredTrustsDetails .tr_results_header .classicGridList + .zeropad,
body.featuredTrustsDetails .tr_results_header th form,
body.featuredTrustsDetails .tr_results_header .trustLink {
	display: none;
	opacity: 0;
}

/* New User Regsitration Page */
body.userManagement h1 {
	text-align: center;
	width: 100%;
}

body.userManagement h1::before {
	content: 'Add new ';
}

body.userManagement p:has(.previous_next_container) {
	text-align: center;
	width: 100%;
	transform: translateX(-.9rem);
	margin: 0;
}

body.userManagement .grid-status__pagination {
	margin-left: 1rem;
	padding-bottom: 1rem;
}

body.userManagement .grid-status__found-items {
	padding-bottom: 1rem;
}

body.userManagement .form_fields_set {
	background-image: linear-gradient(rgb(53, 75, 99) 0%, rgb(24, 50, 78) 100%);
	padding: 2.5rem 3rem 4rem;
	color: rgb(237, 237, 237);
	border-radius: 1rem;
	max-width: 800px;
	margin: 0 auto;
}

body.userManagement .form_row:not(#Row-Force-password-change):not(#Row-Other-groups) {
	max-height: 2.9rem;
}

#Row-Main-group:hover::after,
#Row-Other-groups:hover::after,
#Row-Password-hash:hover::after,
#Row-Force-password-change:hover::after {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	background: #ccc;
	border: 1px solid #666;
	color: #333;
	padding: 1rem;
	border-radius: 4px;
	max-width: 280px;
	transform: translateY(-100%);
	white-space: pre-wrap;
}
#Row-Main-group:hover::after {
	content: 'In essentially all cases this should be set to \'default\', indicating a standard user. This should ONLY be set to \'admin\' when registering a member of Factary staff.';
}
#Row-Other-groups:hover::after {
	content: 'This can be left blank - we have no need to make use of groups other than \'admin\' and \'default\' for now.';
}
#Row-Password-hash:hover::after {
	content: 'DO NOT enter a password directly in this input - if you do the password will be saved un-hidden on the database.\A\ATo enter a password, first click on the red \'Crypter\' link to the right. This will open a dialogue in a new window. Enter the password in this new dialogue, click \'Encrypt it!\', and the password will be inserted in an encrypted form in this input (\'Password (hash)\').';
}
#Row-Force-password-change:hover::after {
	content: 'This stage isn\'t necessary for our purposes (\'LDAP\' refers to users on a local network, by the way). But given that user details and logging in/out is governed via Wordpress, we don\'t need or want users to be re-generating their passwords.\A\A(The \'Save\' button won\'t appear until this is set to \'no\'.)';
}

body.userManagement .form_row label {
	min-width: 120px;
	max-width: 200px;
	width: 100%;
}

body.userManagement .select_element select {
	border: 1px solid #ccc;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border: 1px solid #ccc;
	border-radius: 4px;
}

#Row-Other-groups .form_hint a {
	position: relative;
	display: inline-block;
}

#Row-Other-groups .form_hint a::before {
	content: '?';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	display: inline-block;
	background-color: rgb(255, 215, 0);
	text-align: center;
	color: #263961;
	font-weight: 600;
}

input[name="password_user"] {
	padding-left: 4px !important;
}

#Row-Password-hash .form_hint a {
	background-color: #633c49;
	max-height: 2.4rem;
	display: inline-block;
	border-radius: 1.2rem;
	color: #fff;
	padding: 0.4rem .6rem 0.5rem;
	font-weight: 600;
	text-decoration: none;
}

#Row-Password-hash .form_hint a:first-letter {
	text-transform: uppercase;
}

body.userManagement .button_form[value="Go back"] {
	margin-bottom: 6px;
}

.save_buttons_container br {
	display: none;
}

.form_fields_set + .save_buttons_container::after {
	content: ' (check this to insert another user straight after this one)';
}

#cont_field_button_hint_force_password_change_user:has(input[value="yes"]:checked) {
	background: #d61f1f;
	border-radius: 0;
}

body.userManagement .save_buttons_container {
	margin-top: 10px;
	text-align: center;
	font-weight: 600;
}

.form_fields_set:has(.form_row span #force_password_change_user input[value="yes"]:checked) + .save_buttons_container input[type="submit"] {
	height: 0;
	overflow: hidden;
}

#Row-Accept-terms---1,
#Row-Accept-terms---2,
#Row-Accept-terms---3 {
	display: none;
}