/**
 * Gel 2022.0
 * 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 2022.0.7
 * @created 2017-07-07 by Kelly Chisum
 * @modified 2022-02-18 by Fritz Green
 */


/* 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 {
	box-sizing: border-box;
	cursor: pointer;
	width: 100%;
	margin: 0 0 -.5em;
	padding-left: 1.25em;
	padding-bottom: .5em;
	padding-top: .5em;
	border-radius: 3px;
}
.fieldset-open {
	background-color: #E0E0E0;
}
.fieldset-closed {
	background-color: #404545;
	color: #FFF;
}
.toggle-arrow {
	content: "";
	position: absolute;
	top: .65em;
	right: 1em;
	width: 0;
	height: 0;
	border-top: 15px solid #404545;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	/*transform: rotate(0deg);*/
}
.fieldset-closed .toggle-arrow {
	border-top: 15px solid #fff;
	transform: rotate(180deg);
}
.fieldset-closed + .flex-toggle {
	display: none;
}
.flex-toggle {
	padding: 2em 1.5em 1em 0;
}
.fieldset-open-close .flex-form {
	margin-top: -1em;
}
.fieldset-open-close .flex-form.flex-form-inline {
	margin-top: unset;
}
.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-2.flex-check, .flex-3.flex-check {
	align-self: flex-end;
	padding-bottom: 0.8em;
}

.flex-date {
	position: relative;
}
.flex-date label {
	width: 100%;
}
.flex-date input + svg, .flex-date input + img {
	position: absolute;
	right: 0.4em;
	top: 2.1em;
	width: 1.7em;
	height: 1.7em;
	cursor: pointer;
}
.transaction-search-advanced .ui-datepicker-trigger {
	top: 1em;
}
.flex-times select {
	flex: 1 0 40%;
	width: 40%;
}
.flex-times select:first-of-type {
	margin-right: 1.25em;
}

.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%;
}
.flex-from-to label {
	flex: 0 1 5%;
	white-space: nowrap;
}
.flex-from-to label:first-of-type {
	margin-right: 1em;
}
.flex-from-to label:not(:first-child) {
	text-align: center;
}
.flex-from-to select, .flex-from-to input[type="text"] {
	flex: 1;
	margin: 0.5em 0;
}
.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;
}

.flex-contextual-ctnr {
	margin-top: 1em;
}

.flex-block > .flex-thbn {
	margin: 0.75em 0;
}
.legend-buttons .button {
	float: right;
	margin: 0 0 0 1em;
	background: #E0E0E0;
	color: #404545;
	font-size: .66em;
}
#personal-info .flex-2 {
	align-items: end;
}

@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: 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;
}

/* DATEPICKER */
.ui-datepicker-trigger {
	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: #363845;
	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: #363845 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;
}