/* ================== Plugin admin area styles ================== */

.form-table .project-regions-table th {
	padding: 8px 10px;
}

.project-regions-table.striped > tbody > :nth-child(1) {
	background: #e9e9e9;
}

.contractor_delete {
	color: #a00;
	font-size: 13px;
}

.contractor_delete:hover {
	text-decoration: underline;
	color: #a00;
}

/* ================== Filter styling ================== */

.filter-title {
	font-weight: bold;
	font-size: 18px;
	margin: 0 auto 0 0;
}

.members-filter {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 15px 0 20px;
	padding: 15px;
	background: #072900;
	color: #fff;
}

.members-filter .filter {
	margin-left: 10px;
	font-size: 14px;
}

.members-filter select {
	margin-left: 15px;
	padding: 5px;
}

.members-filter button {
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background: #ed5704;
	color: #fff;
	padding: 10px 15px 12px;
	border-radius: 4px;
	font-weight: bold;
	margin-left: 15px;
	transition: all 0.2s ease-in-out;
	font-size: 16px;
}

.members-filter button:hover {
	cursor: pointer;
	background: #ba4404;
}

.members-filter #contractors-clear {
	background: #fff;
	color: #072900;
}

.members-filter #contractors-clear:hover {
	background: #cccccc;
}

.filter-results {
	margin-bottom: 15px;
	font-size: 16px;
	text-align: center;
}

.filter-results b {
	color: #ed5704;
}

@media only screen and (max-width: 1020px) {
	.members-filter .filter {
		display: flex;
		flex-direction: column;
	}

	.members-filter select {
		margin-left: 0;
	}

	.members-filter {
		align-items: flex-end;
	}

	.filter-title {
		align-self: flex-start;
	}
}

@media only screen and (max-width: 820px) {
	.filter-title {
		flex: 100%;
	}

	.button-group {
		margin-left: auto;
	}

	.members-filter .filter {
		margin-left: 0;
		margin-right: 10px;
	}
}

@media only screen and (max-width: 820px) {
	.members-filter {
		padding: 20px;
	}

	.filter-title {
		flex: 100%;
		margin-bottom: 10px;
	}

	.members-filter .filter {
		flex: 50%;
		margin-right: 0;
		margin-bottom: 20px;
		padding-right: 10px;
	}

	.button-group {
		flex: 100%;
	}

	.members-filter button {
		margin-left: 0;
		margin-right: 20px;
	}
}

/* ================== Table styling ================== */

.fam-table {
	font-size: 14px;
	border: 0 !important;
	width: 100%;
	border-collapse: collapse !important;
	line-height: 1.33;
}

.fam-table .nowrap {
	white-space: nowrap;
}

.fam-table td,
.fam-table th {
	padding: 10px 10px !important;
}

.fam-table td,
.fam-table tr {
	border: 0 !important;
}

.fam-table tr:nth-child(even) {
	background-color: #fff;
}

@media only screen and (max-width: 920px) {
	/* Force table to not be like tables anymore */
	.fam-table table,
	.fam-table thead,
	.fam-table tbody,
	.fam-table th,
	.fam-table td,
	.fam-table tr {
		display: block !important;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	.fam-table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.fam-table td,
	.fam-table th {
		padding: 5px 10px !important;
	}

	.fam-table tr {
		background: #fff;
		margin-bottom: 15px;
	}

	.fam-table td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #d7d7d7 !important;
		position: relative;
		padding-left: 50% !important;
	}

	.fam-table td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 10;
		left: 10px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
	}

	/*
	Label the data
	*/
	.fam-table.contractors td:nth-of-type(1):before {
		content: 'Name:';
	}
	.fam-table.contractors td:nth-of-type(2):before {
		content: 'Location:';
	}
	.fam-table.contractors td:nth-of-type(3):before {
		content: 'Postcode:';
	}
	.fam-table.contractors td:nth-of-type(4):before {
		content: 'Telephone:';
	}
	.fam-table.contractors td:nth-of-type(5):before {
		content: 'Email:';
	}

	.fam-table.associates td:nth-of-type(1):before {
		content: 'Name:';
	}
	.fam-table.associates td:nth-of-type(2):before {
		content: 'Telephone:';
	}
	.fam-table.associates td:nth-of-type(3):before {
		content: 'Email:';
	}

	.fam-table.designers td:nth-of-type(1):before {
		content: 'Name:';
	}
	.fam-table.designers td:nth-of-type(2):before {
		content: 'Telephone:';
	}
	.fam-table.designers td:nth-of-type(3):before {
		content: 'Email:';
	}
}

@media only screen and (max-width: 600px) {
	.fam-table {
		font-size: 13px;
	}

	.fam-table .nowrap {
		white-space: normal;
	}

	.fam-table td {
		padding-left: 35% !important;
	}
}

/* ================== LDS Spinner ================== */

.loading-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.loader {
	margin-left: 8px;
	border: 5px solid #c8c8c8; /* Light grey */
	border-top: 5px solid #ed5704; /* Blue */
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
