/**
 * Gel 2020.1
 * Advanced Form & Flex-Block Styles
 * @note Basic Form and Flex-Block styles are in main_tiny.css, main-above-fold.css and main-below-fold.css.
 * @version 2020.1.3 r 10
 * @created 2017-07-07 by Kelly Chisum
 * @modified 2021-11-10 by Grant Mosier
 */

/*
font-family: Montserrat, Verdana, sans-serif;
font-family: Georgia, Times New Roman, Times, serif;
Brick: #6e2405;
Light Brick: #83270e;
Olive: #737144;
Light Olive: #84824f;
Brown: #855914;
Light Brown: #966a25;
Gold: #c78500;
Medium Gold: #eda81c;
Light Gold: #ffd681;
Lighter Gold: #ffe4ac;
Off Black: #231f20;
Charcoal: #6a6969;
Light Grey: #e0e0e0;
*/

/* FORMS */
form {      /*ADDED for 2020.1*/
	border-radius: 3px;
}
.fieldsets-flex {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-left: -1.75em;
}
.fieldsets-flex.fieldsets-flex-block {
	margin-left: -1.75em;
}
.fieldsets-flex-block {
	flex: 1 0 90%;
	margin-left: 1.75em;
}
.fieldsets-flex-2 {
	flex: 1 0 40%;
}
fieldset.fieldset-open-close {
	margin-top: 3em;
	margin-bottom: .6em;
	padding: 0;
}
.fieldset-open, .fieldset-closed {        /*CHANGED FOR 2020.1*/
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	cursor: pointer;
	width: 100%;
	margin: 0 0 -.5em;
	padding: .8em 1.325em .4em;
}
.fieldset-open {        /*CHANGED FOR 2020.1*/
	background-color: #c78500;
}
.fieldset-closed {        /*CHANGED FOR 2020.1*/
	background-color: #404545;
	color: #FFF;
}
.toggle-arrow {        /*CHANGED FOR 2020.1*/
	content: "";
	position: absolute;
	top: .65em;
	right: 1em;
	width: 0;
	height: 0;
	border-top: 15px solid #e0e0e0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	-moz-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
	transition: -moz-transform .4s ease;
	transition: -webkit-transform .4s ease;
	transition: transform .4s ease;
}
.fieldset-closed .toggle-arrow {
	-moz-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
	transition: -moz-transform .4s ease;
	transition: -webkit-transform .4s ease;
	transition: transform .4s ease;
}
.fieldset-closed + .flex-toggle {
	display: none;
}
.flex-toggle {        /*CHANGED FOR 2020.1*/
	padding: 2em .5em 1em .5em;
}
.fieldset-open-close .flex-form {
	margin-top: -1em;
}
.flex-2-sm:first-child {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex: 0 5em;
	margin-right: 1.5em;
}
.flex-2-sm:last-child {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex: 0 5em;
	margin-left: 1.5em;
}
.flex-2 > div {
	flex: 1;
	margin-bottom: 0;
}
.fieldset-open-close + input[type='button'],
.fieldset-open-close + input[type='submit'] {
	margin-top: 2em;
}
.flex-date {        /*CHANGED FOR 2020.1*/
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	position: relative;
}
.flex-date label {
	width: 100%;
}
.flex-date input[type="text"] {
	flex: 1 0 90%;
	width: 90%;
	padding-right: 0;
}
.flex-date .ui-datepicker-trigger {
	position: unset;
}
.flex-date input + svg, .flex-date input + img {        /*CHANGED FOR 2020.1*/
	flex: 0 0 1.175em;
	width: 1.175em;
	height: 1.127em;
	margin: .5em 0 0 .5em;
	cursor: pointer;
	position: absolute;
	right: 10px;
	top: 1.25em;
}
.flex-times select {
	flex: 1 0 40%;
	width: 40%;
}
.flex-times select:first-of-type {
	margin-right: 1.25em;
}
.flex-times label {
	width: 100%;
}
.pos {
	color: #74B535;
}
.neg {
	color: #EF4136;
}
.flex-dollar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
}
.dollar {
	flex: 0;
	margin-right: .75em;
}
.flex-dollar input[type="text"] {
	flex: 1 0 0;
	width: auto;
}
.fieldsets-flex-2 .fieldsets-flex-block {
	flex: 1 0 auto;
	margin-left: 0;
}
.flex-value {
	margin: 0 0 0 0;
}
label.flex-subhead {
	margin: .8em 0 .4em 1.5em;
}
.flex-check-o {
	margin-top: .5em;
}
.flex-form > .flex-check-o {
	margin-left: 0;
}
.flex-block > .flex-block.flex-check-o {
	margin: .5em 0 0 -1.5em;
}
.flex-check-o .flex-check, .flex-check-sm .flex-check {
	flex: 0 0 auto;
	width: auto;
}
.flex-check-o > .flex-check:nth-of-type(n) {
	margin-bottom: 0;
	margin-left: 1.5em;
}
.flex-radio p {
	display: inline;
	width: auto;
	margin: 0 1.5em 0 .75em;
}
.flex-from-to {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	/*margin-left: 1.75em;*/
}
.flex-from-to, .flex-to {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
}
.flex-from-to label {
	/*width: 2em;*/
	margin-top: 0;
	margin-right: 1em;
}
.flex-from-to label:not(:first-child) {
	width: auto;
	margin-left: 1em;
}
.flex-from-to select,
.flex-from-to input[type="text"] {
	flex: 1;
	min-width: 4.5em;
	width: 100%;
}
.flex-from-to select + select,
.flex-from-to select:last-child {
	margin-right: 0;
}
.flex-from-to select + select {
	margin-left: .5em;
}
.flex-from-to input[type="text"]:first-child,
.flex-from-to select:first-child {
	margin-left: -1.75em;
	margin-right: 1em;
}
.flex-range {
	align-items: center;
}
.flex-range input[type="text"] {
	flex: 1 1 auto;
	width: 20%;
}
.flex-range label:nth-of-type(2) {
	width: auto;
	margin: 0 .75em;
}
.legend-buttons .button {
	float: right;
	margin: 0 0 0 1em;
	background: #E0E0E0;
	color: #404545;
	font-size: .66em;
}
.flex-form-full {
	width: 100%;
}
.form-start-date {
	margin-right: 2em;
}
@media screen and (min-width: 1000px) {
	.flex-table {
		margin-top: 1em;
		margin-bottom: .3em;
	}
	.flex-table .flex-block {
		margin-bottom: 0;
		padding: 0 0 0 1em;
		background: rgb(230, 230, 230);
		border-bottom: 1px solid rgb(200, 200, 200);
		font-size: .9em;
	}
	.flex-table .flex-block:first-of-type {
		background: #404545;
		color: #FFF;
	}
	.flex-table .flex-block:last-of-type {
		border: none;
	}
	.flex-table p {
		margin: 0 1em 0 0;
		padding: .1em 0 .15em;
	}
}
@media screen and (max-width: 1550px) {
	.fieldsets-flex {
		width: 100%;
		margin-left: -.875em;
	}
}
@media screen and (max-width: 1200px) {
	.fieldsets-flex {
		margin-left: 0;
	}
	.fieldsets-flex-block {
		flex: 1 0 100%;
		margin-left: 0;
	}
}
@media screen and (max-width: 1000px) {
	.flex-table .flex-block {
		border-bottom: 1px solid rgb(200, 200, 200);
	}
	.flex-table .flex-block:first-child {
		display: none;
	}
}
@media screen and (max-width: 750px) {
	.fieldsets-flex {
		display: block;
	}
	.flex-toggle {
		background-color: rgb(225, 225, 225) !important;
	}
	fieldset.fieldset-open-close {
		margin-top: 2em;
	}
	/*.flex-toggle {*/
	/*	display: block !important;*/
	/*	margin-top: -1.25em;*/
	/*}*/
	.fieldset-open, .fieldset-closed {
		font-size: 1.25em;
	}
	/*.toggle-arrow {*/
	/*	display: none;*/
	/*}*/
}
@media screen and (max-width: 582px) {
	.flex-from-to, .flex-to {
		display: block;
		width: unset;
		margin-top: 2em;
	}
	.form-start-date, .form-end-date {
		display: flex;
		flex: 1 1 100%;
		align-items: center;
	}
	.form-start-date {
		margin-right: unset;
	}
	.flex-from-to select {
		margin: unset;
	}
}
@media screen and (max-width: 450px) {
	.flex-2 .flex-2-sm {
		flex: 1 1 100%;
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}
}

/* AUTOCOMPLETER OVERRIDES */
.ui-autocomplete {
	max-height: 25em;
	overflow: scroll;
	font-size: .85em !important;
}
ul.ui-autocomplete {
	z-index: 2000;
}
.ui-autocomplete li span {
	font-size: .95em !important;
	font-weight: bold;
}
.ui-autocomplete li {
	position: relative;
	margin-top: -1px !important;
	margin-bottom: -1px !important;
	padding: .5em 1em !important;
	border-top: 1px solid #222;
	border-bottom: 1px solid #222;
}
.ui-autocomplete li:hover {
	background: #AFD9F7;
}
.ui-state-active {
	border: 1px solid #AFD9F7 !important;
	background: #AFD9F7 !important;
}
.ui-state-active, .ui-state-active:before, .ui-state-active:after, .ui-autocomplete li:before, .ui-autocomplete li:after {
	-moz-transition: background .0s ease,
	color .0s ease,
	fill .0s ease,
	border-color .0s ease,
	-moz-transform .0s ease,
	opacity .0s ease;
	-webkit-transition: background .0s ease,
	color .0s ease,
	fill .0s ease,
	border-color .0s ease,
	-webkit-transform .0s ease,
	opacity .0s ease;
	transition: background .0s ease,
	color .0s ease,
	fill .0s ease,
	border-color .0s ease,
	transform .0s ease,
	opacity .0s ease;
}

/* MODAL BOX */
/* Important Note: To override these default modal styles, initialize the MagnificPopup modal with the mainClass option to add a class that will undo these styles.*/
.mfp-wrap .mfp-container .mfp-content {
	width: 90vw;
	max-width: 1200px;
	padding: 1em 2em;
	background: #FFF;
}

/* TINY MCE STYLES */ /*Commented out as I am not sure it is relavent at the moment, I haven't seen any differences since removing – AS*/
/*Moved to main_tiny.css 2020.1*/

/*.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {*/
/*	border: 1px dashed #BBB;*/
/*}*/
/*a.mceItemAnchor {*/
/*	width: 12px;*/
/*	padding-left: 12px;*/
/*	background: url(../default/img/items.gif) no-repeat bottom left;*/
/*	line-height: 6px;*/
/*	overflow: hidden;*/
/*}*/
/*img.mceItemAnchor {*/
/*	width: 12px;*/
/*	height: 12px;*/
/*	background: url(../default/img/items.gif) no-repeat;*/
/*}*/
/*table {*/
/*	cursor: default;*/
/*}*/
/*table td, table th {*/
/*	cursor: text;*/
/*}*/
/*ins {*/
/*	border-bottom: 1px solid green;*/
/*	color: green;*/
/*	text-decoration: none;*/
/*}*/
/*del {*/
/*	color: red;*/
/*	text-decoration: line-through;*/
/*}*/
/*cite {*/
/*	border-bottom: 1px dashed blue;*/
/*}*/
/*acronym {*/
/*	border-bottom: 1px dotted #CCC;*/
/*	cursor: help;*/
/*}*/
/*abbr, html\:abbr {*/
/*	border-bottom: 1px dashed #CCC;*/
/*	cursor: help;*/
/*}*/

/* DATEPICKER */
input[type="text"].hasDatepicker {
	flex: 1;
	width: auto;
}
.ui-datepicker-trigger{
	margin-left: 5px;
	cursor: pointer;
}
table.ui-datepicker-calendar {
	border-collapse: separate;
}
.ui-datepicker-calendar td {
	border: 1px solid transparent;
}
#ui-datepicker-div {
	font-size: .9em;
}
#ui-datepicker-div * {
	font-weight: normal;
	font-style: normal;
}
a.ui-datepicker-prev.ui-corner-all {
	position: absolute;
	top: .6em;
	left: .5em;
	width: 0;
	height: 0;
	background: none;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-right: 10px solid #FFF;
	border-left: none;
	border-radius: 0;
	cursor: pointer;
}
a.ui-datepicker-next.ui-corner-all {
	position: absolute;
	top: .6em;
	right: .5em;
	width: 0;
	height: 0;
	background: none;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #FFF;
	border-right: none;
	border-radius: 0;
	cursor: pointer;
}
a.ui-datepicker-prev.ui-corner-all span,
a.ui-datepicker-next.ui-corner-all span {
	display: none;
	background: none;
}
.ui-datepicker table,
.ui-datepicker tr {
	background: none;
}
.ui-datepicker .ui-datepicker-calendar th {
	width: 20px !important;
	padding: .25em 0;
}
.ui-datepicker .ui-datepicker-calendar td a {
	border: 1px solid #D3D3D3 !important;
	color: #222;
	text-align: center;
}
.ui-datepicker .ui-datepicker-calendar td a:hover {
	background: rgb(200, 200, 200);
	border-color: rgb(100, 100, 100);
	color: #222;
}
.ui-datepicker .ui-datepicker-calendar .ui-state-highlight {
	background: none;
	border: none;
}
.ui-datepicker .ui-datepicker-calendar a.ui-state-highlight {
	background: #6e2405;
	border: none;
	color: #FFF;
}
.ui-datepicker .ui-datepicker-calendar .ui-state-highlight a,
.ui-datepicker .ui-datepicker-calendar .ui-state-highlight.ui-datepicker-today a {
	background: #6e2405 none;
	color: #FFF;
	border: none;
}
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
	background: #FFE8AA;
	color: #222;
}
.ui-datepicker .ui-datepicker-other-month {
	background: #CCC
}

/* MISC */
#checkAll {
	cursor: pointer;
}