
button {
	padding: .25em .5em;
	background: #500000;
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
button:disabled {
	background: rgba(170,170,170,0.2);
	cursor: default;
}
button:hover:not(:disabled) {
	background: #230101;
    color: #FFFFFF}

body > .form-container-parent {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.form-container {
    padding: 0;
    text-align: center;
    height: auto;
    overflow: hidden auto;
    width: auto;
    min-width: 25%;
    position: relative;
    /* display: flex;
    flex-direction: column; */
    max-height: 100%;
    background: #FFFFFF;
}
[data-slidedown] .form-container {
    overflow: hidden;
}
.form-container:not(form) {
	border-radius: 8px;
    border: 1px solid rgba(0,0,0,.1);
}
main#dashboard > .form-container-parent > .form-container,
section > .form-container-parent > .form-container {
	border: none;
	border-radius: 0;
}
.form-container > header {
	padding: 0;
	border-bottom: 1px solid rgba(0,0,0,.1);
}
.form-container > header > .form-title {
	padding: 1em 2em 0;
	margin-bottom: 1em;
}
.form-container > header > .form-title > * {
	/* padding: .25em 0; */
	width: 100%;
}

.form-pagination {
	overflow-x: auto;
	max-width: 100%;
	position: relative;
    margin: 1em 0;
}
.form-container > header > .form-pagination {
}
/*
.form-pagination .bar {
	background: #500000;
    padding: .05em 0;
    position: absolute;
    top: 1.1em;
    width: 0;
    left: 0;
    margin: 0 auto;
    right: 0;
}
[data-pages="2"] .bar {
	width: 50%;
}
[data-pages="3"] .bar,
[data-pages="4"] .bar,
[data-pages="5"] .bar {
	width: 70%;
}
[data-pages="6"] .bar,
[data-pages="7"] .bar,
[data-pages="8"] .bar {
	width: 90%;
}*/
.form-pagination .pagination {
	list-style: none;
    display: flex;
    padding: 0;
	margin: 2px;
    /* z-index: 1000;
    position: relative; */
}
.form-pagination .pagination li {
	margin: 0;
	padding: .25em .5em;
	transition: all 250ms ease-in-out;
	background: #fbf2f6;
	outline: 1px solid #500000;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}
.form-pagination .pagination li > * {
    margin: 0 .25em;
}
.form-pagination .pagination li > span[class^='sd-'] {
    margin: .25em .5em .25em .235em;
}
.form-pagination .pagination li.divider {
	padding: 0;
    height: .05em;
    flex-grow: 1;
	background: rgba(170,170,170,0.2);
    outline: none;
    align-self: center;
	min-width: 1em;
    border: none;
}
.form-pagination .pagination li.divider:first-of-type,
.form-pagination .pagination li.divider:last-of-type {
	height: 0;
	background: none;
}
.form-pagination .pagination li.divider.active {
    height: .125em;
	background: #500000;
}
.form-pagination .pagination li[data-pagelink].disabled {
	color: rgba(170,170,170,0.2);
	background: none;
	outline: 1px solid #FFF;
}
.form-pagination .pagination li[data-pagelink].clickable:hover {
	outline: 2px solid #500000;
}
.form-pagination .pagination li[data-pagelink].active {
	color: #FFFFFF;
	background: #500000;
}

.form-notification {
	transition: all 500ms ease-in-out;
	max-height: 0;
	opacity: 0;
	margin: 0 2em;
	/* height: 200px; */
}
header > .form-notification {
	margin-top: -1em;
}
footer > .form-notification {
}
.form-notification > .notification {
	box-shadow: inset 0 0 1px 1px #500000;
	color: #500000;
	background: #fbf2f6;
	border-radius: .25em;
	padding: .5em;
}
.form-notification.active > .notification:hover {
	box-shadow: inset 0 0 2px 2px #500000;
}
.form-notification > .notification.error {
	box-shadow: inset 0 0 1px 1px #fe3333;
	color: #fe3333;
	background: rgba(240,30,30,.1);
}
.form-notification > .notification.error:hover {
	box-shadow: inset 0 0 2px 2px #fe3333;
}
.form-notification.active {
	cursor: pointer;
	opacity: 1;
	max-height: 3em;
	margin: 1em 2em;
}


.form-container > footer {
	/* padding: 1em; */
	border-top: 1px solid rgba(0,0,0,.1);
	overflow: hidden;
    background: rgba(0,0,0,.1);
}
.form-container > footer > .form-buttons {
	display: flex;
	justify-content: space-between;
}

.form-pages {
	position: relative;
	transition: height 400ms ease-in-out;
    padding: 1em 0;
	overflow: hidden;
	background: #FFFFFF;
}
.form-pages header {
	margin: 0;
	padding: 0;
	text-align: center;
	width: 100%;
}
.form-pages > .page {
	position: absolute;
	transition: all 500ms ease-in-out;
	width: calc(100% - 2em);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	overflow-x: hidden;
	overflow-y: auto;
	top: 1em;
}
.form-pages > .page.first-page {
	position: relative;
	top: 0;
}

/* .form-container > .container:before, .form-container .container:after {
    content: "";
    display: table;
}
.form-container .container:after {
	clear: both;
}*/

.form-pages > .page.active {
	left: 1em;
}
.form-pages > .page.waiting {
	left: calc(100% + 1em);
}
.form-pages > .page.complete {
	left: calc(-100% - 1em);
}
.form-pages > .page > *:not(fieldset):not(header) {
	/* margin: 0 1em; */
	padding: .5em 0;
	width: 100%;
}
.form-pages.compact > .page > *:not(fieldset):not(header),
.form-pages > .page.compact > *:not(fieldset):not(header) {
	/* margin: 0 1em; */
	padding: .25em 0;
}
.form-pages fieldset {
    padding: 1em;
    margin: .5em 0;
	width: 100%;
	border: 2px solid gray;
	border-radius: 0.5em;
}
.form-pages fieldset > legend {
    font-weight: bold;
    padding: 0 .5em;
    font-size: 1.25em;
}
.form-pages fieldset > legend > ul {
    display: inline-block;
    vertical-align: bottom;
}
.form-pages fieldset > legend > ul > li {
    padding: 0 .125em;
}
.form-pages fieldset > div {
    width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}
.form-pages fieldset > div > div.divider {
    width: 100%;
    margin-top: .25em;
}
.form-pages fieldset > div > div:not(.divider) {
    width: 100%;
    padding: .5em 0 0;
}
.form-pages fieldset > div > div.field {
}
.form-pages.compact fieldset > div > div.field,
.form-pages .compact fieldset > div > div.field {
	padding: .25em 0;
}
.form-pages fieldset > div > div:not(.half):not(.third):not(.one-third):not(.two-thirds).field:first-of-type {
	margin-top: -0.5em;
}
.form-pages fieldset > div > div:not(.half):not(.third):not(.one-third):not(.two-thirds).field:last-of-type {
	padding-bottom: 0;
}
.form-pages fieldset.template {
	display: none;
}

/*
.form-pages > .page > div:last-of-type {
	flex-grow: 1;S
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 2em;
}
.container-logo {
	margin: 2em 0 1em;
} */

.form-pages p {
	margin-top: .5em;
}

.form-pages > .page > .half,
.form-pages > .page > fieldset > div > .half {
	width: 50%;
}
.form-pages > .page > .one-third,
.form-pages > .page > fieldset > div > .one-third,
.form-pages > .page > .third,
.form-pages > .page > fieldset > div > .third {
	width: 33%;
}
.form-pages > .page > .one-fourth,
.form-pages > .page > fieldset > div > .one-fourth,
.form-pages > .page > .quarter,
.form-pages > .page > fieldset > div > .quarter {
    width: 25%;
}
.form-pages > .page > .two-thirds,
.form-pages > .page > fieldset > div > .two-thirds {
	width: 66%;
}/**/

.form-container textarea {
	resize: vertical;
}

.form-container input,
.input,
.form-container textarea {
	width: calc(100% - 4px);
	padding: 1em .5em;
	margin: 2px;
	border-radius: 4px;
	border: gray 1px solid;
	outline: none;
}
.form-container .field > input {
    height: 3.25em;
}
.form-container .field > .input[type=display] {
    padding: .75em .5em;
    min-height: 2.75em;
}
.input {
	min-height: 3.25em;
	text-align: left;
}
.form-container input:disabled,
.form-container .input:disabled,
.form-container textarea:disabled {
	background: rgba(170,170,170,0.2);
}
.form-container .compact input,
.compact .input {
	padding: .5em 1em;
}
input[type=radio],
input[type=checkbox],
.input:not(:disabled):not([type=display]) {
	cursor: pointer;
}
.radiogroup.input,
.checkboxgroup.input,
.labelgroup-selector > label > input {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
}
.radiogroup.input.list,
.checkboxgroup.input.list {
    flex-flow: column;
    max-height: 20vh;
    overflow: auto;
    background: rgba(0,0,0,.1);
}

input:not([type="radio"]):not([type="checkbox"]):enabled:hover,
.form-container input:not([type="radio"]):not([type="checkbox"]):enabled:focus,
.form-container textarea:enabled:focus,
.form-container textarea:enabled:hover,
.form-container .input:enabled:focus,
.form-container .input:enabled:hover {
	border: #230101 2px solid;
	margin: 1px;
	background: #fbf2f6;
}
input:not([type="radio"]):not([type="checkbox"]):enabled:not(:required):not(.required):hover,
.form-container input:not([type="radio"]):not([type="checkbox"]):enabled:not(:required):not(.required):focus,
.form-container .input:enabled:focus,
.form-container .input:enabled:hover {
    height: calc(3.25em + 2px);
}
label:hover > input:enabled,
input[type="checkbox"]:enabled:focus,
input[type="radio"]:enabled:focus {
	transform: scale(1.75);
}
/*input:not([type="radio"]):not([type="checkbox"]):enabled:hover ~ label,
.form-container textarea:enabled:hover ~ label {
	background: #fbf2f6;
}*/
.form-container input[type='database']:focus,
.form-container textarea.json:focus,
.form-container .input:focus {
	border-radius: 0;
}
.form-container input:required,
.form-container textarea:required,
.form-container .input.required {
    border: #230101 2px solid;
    margin: 1px;
}
.form-container input:not(:placeholder-shown):invalid,
.form-container input.invalid,
.form-container .input.invalid,
.form-container textarea:invalid {
border: #fe3333 2px solid;
margin: 1px;
}
/*.form-container .fieldgroup .input {
    background: #134B8E;
}*/
label {
    cursor: pointer;
}
.label {
    padding: 0 .25em;
    text-align: left;
    font-size: .85em;
    color: #500000;
	margin-left: 1em;
	margin-top: .25em;
    cursor: pointer;
}
label.checkbox-label:not(.input),
label.radio-label,
label.radiogroup-label,
label.checkboxgroup-label {
	white-space: nowrap;
	text-align: left;
	padding: .5em .25em;
	cursor: pointer;
	color: #230101;
    background: rgba(0,0,0,.1);
    outline: 1px solid rgba(0,0,0,.1);
}
label.checkbox-label.purple,
label.radio-label.purple,
label.radiogroup-label.purple,
label.checkboxgroup-label.purple {
    /* box-shadow: inset 0 0 1px 1px #fe3333; */
    color: #552288;
    background: #f6f2fb;
}
label.checkbox-label.red,
label.radio-label.red,
label.radiogroup-label.red,
label.checkboxgroup-label.red {
    /* box-shadow: inset 0 0 1px 1px #fe3333; */
    color: #AA0000;
    background: #fee9e9;
}
label.checkbox-label.green,
label.radio-label.green,
label.radiogroup-label.green,
label.checkboxgroup-label.green {
    background: #f2fbf6;
    color: #228855;
    border-color: #228855;
}
label.checkbox-label.blue,
label.radio-label.blue,
label.radiogroup-label.blue,
label.checkboxgroup-label.blue {
    background: #f2f6fb;
    color: #225588;
    border-color: #225588;
}
label.checkbox-label.orange,
label.radio-label.orange,
label.radiogroup-label.orange,
label.checkboxgroup-label.orange {
    background: #ffe6cc;
    color: #f23300;
    border-color: #f23300;
}
label.checkbox-label.darkgrey,
label.radio-label.darkgrey,
label.radiogroup-label.darkgrey,
label.checkboxgroup-label.darkgrey {
    background: #eeeeee;
    color: #333333;
    border-color: #333333;
}
label.checkboxgroup-label.selected,
label.radiogroup-label.selected,
ul.options .selected,
.clickable.selected:not(button):not(.lightgray):not([class*="color-"]) {
	background: #230101;
	color: #FFFFFF;
}
label.checkbox-label,
label.radio-label {
	display: block;
}
:not(.list) > label.radiogroup-label,
:not(.list) > label.checkboxgroup-label {
	display: inline-block;
	padding: 1em .25em;
	flex-grow: 1;
	text-align: center;
	outline: 1px solid gray;
}
.compact label.radiogroup-label,
.compact label.checkboxgroup-label {
	padding: .5em .25em;
}
label.radiogroup-label.icons,
label.checkboxgroup-label.icons {
	padding: .5em;
}
label.radiogroup-label.icons span,
label.checkboxgroup-label.icons span {
	width: 1em;
}
label.radiogroup-label:first-of-type {

}
label.checkbox-label:hover,
label.radio-label:hover,
label.radiogroup-label:hover,
label.checkboxgroup-label:hover {
	cursor: pointer;
	background: #fbf2f6;
	color: #230101;
}
label.radiogroup-label.selected:hover,
label.checkboxgroup-label.selected:hover {
	cursor: pointer;
	background: #230101;
	color: #fbf2f6;
}
label.radiogroup-label.selected:hover {
	cursor: default;
	background: #230101;
	color: #FFFFFF;
}
label > input[type="checkbox"],
label > input[type="radio"] {
	width: 1%;
	min-width: .75em;
	display: inline-block;
	margin: 0 .5em;
	transform: scale(1.5);
}
.bullet-hidden label > input[type=radio],
.bullet-hidden label > input[type=checkbox] {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    min-width: auto;
    margin: 0;
    transform: none;
}
label > input[type="radio"].icon-checkbox,
label > input[type="checkbox"].icon-checkbox {
	display: none;
}
input[type="checkbox"] ~ label {
	width: 85%;
	display: inline-block;
	text-align: left;
}

.form-container input:not([type="radio"]):not([type="checkbox"]) ~ label,
.form-container:not(form) .input ~ label,
.form-container textarea ~ label,
.form-container:not(form) .input ~ .label {
    position: absolute;
	/* background: #FFFFFF; */
    padding: 1px .25em 0;
	transition-duration: 150ms;
	transition-timing-function: cubic-bezier(0.4,0,0.2,1);
	transition-property: top, left, font-size, color;
    left: 1em;
    top: calc(1.5em + 1px);
    font-size: 1em;
    color: gray;
	cursor: text;
}
.form-container input:not([type="radio"]):not([type="checkbox"]):disabled ~ label {
	/* background: rgb(244,244,244); */
}
.form-container fieldset input:not([type="radio"]):not([type="checkbox"]) ~ label,
.form-container fieldset .input ~ label,
.form-container fieldset textarea ~ label {
    top: calc(1.5em + 1px);
}
.form-container .compact input:not([type="radio"]):not([type="checkbox"]) ~ label,
.form-container .compact .input ~ label,
.form-container .compact textarea ~ label {
    top: calc(.55em + 1px);
}
.form-container input:not([type="radio"]):not([type="checkbox"]):focus ~ label,
.form-container input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown) ~ label,
.form-container .input:focus ~ label,
.form-container .input:not(:empty) ~ label,
.form-container textarea:focus ~ label,
.form-container textarea:not(:placeholder-shown) ~ label,
.form-container .fieldgroup .input ~ .label {
    left: 1em;
    top: .6em;
	background: #FFFFFF;
    font-size: .85em;
	font-weight: bold;
    color: #230101;
	line-height: 3px;
}
form.form-container > .field {
    margin-top: .5em;
}
form.form-container input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown) ~ label {
    top: 0;
}
.form-container .fieldgroup .input ~ .label {
    top: .4em;
    left: 0;
    text-shadow: -1px -1px 0 #FFFFFF, 1px -1px 0 #FFFFFF, -1px 1px 0 #FFFFFF, 1px 1px 0 #FFFFFF;
}
.form-container input:not([type="radio"]):not([type="checkbox"]):focus ~ label small,
.form-container input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown) ~ label small,
.form-container .input:focus ~ label small,
.form-container .input:not(:empty) ~ label small,
.form-container textarea:focus ~ label small,
.form-container textarea:not(:placeholder-shown) ~ label small {
    font-weight: normal;
}
.form-container fieldset input:not([type="radio"]):not([type="checkbox"]):focus ~ label,
.form-container fieldset input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown) ~ label,
.form-container fieldset .input:focus ~ label,
.form-container fieldset .input:not(:empty) ~ label,
.form-container fieldset textarea:focus ~ label,
.form-container fieldset textarea:not(:placeholder-shown) ~ label {
    top: .6em;
}
.form-container .compact input:not([type="radio"]):not([type="checkbox"]):focus ~ label,
.form-container .compact input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown) ~ label,
.form-container .compact .input:focus ~ label,
.form-container .compact .input:not(:empty) ~ label,
.form-container .compact textarea:focus ~ label,
.form-container .compact textarea:not(:placeholder-shown) ~ label {
    top: 0;
}
.form-container input ~ .text-input-button {
    position: absolute;
	/* background: #FFFFFF; */
    padding: .25em;
    right: calc(.25em + 2px);
    top: calc(.5em + 2px);
    font-size: 1.5em;
    color: gray;
	cursor: pointer;
}
.form-container input ~ .tooltip,
.form-container .input ~ .tooltip,
.form-container textarea ~ .tooltip {
	min-width: 50%;
    max-width: 95%;
	overflow: auto;
    padding: 0;
}
.form-container input ~ .text-input-button:hover {
	color: #500000;
}

.form-container button {
	padding: .75em 1em;
	font-weight: bold;
	transition: all 500ms ease-in-out;
}
.form-container button.go-back {

}
.form-container button.next {
	align-self: flex-end;
}

.form-container [data-map] {
	min-height: 250px;
	height: 30vh;
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 0.25em;
}

.tooltip pre {
	text-align: left;
}

@supports (-webkit-overflow-scrolling: touch) {
	select,
	textarea,
	input {
		font-size: 16px;
	}
}
@media screen and (max-width: 600px) {
	.form-container-parent {
		padding: 0;
		overflow: hidden;
		font-size: 1.25rem;
	}
	.form-container {
		width: 100%;
		height: 100%;
		min-width: 400px;
		overflow-y: auto;
		border: none;
	}
	.form-pages > .page {
		width: calc(100% - 1em);
	}
    .form-pages > .page.active {
		left: .5em;
	}
    .form-pages fieldset {
        padding: .5em;
    }
    .form-container input:not([type="radio"]):not([type="checkbox"]) ~ label,
    .form-container .input ~ label,
    .form-container textarea ~ label,
    .form-container .input ~ .label,
    .form-container fieldset input:not([type="radio"]):not([type="checkbox"]) ~ label,
    .form-container fieldset .input ~ label,
    .form-container fieldset textarea ~ label {
        font-size: .95em;
        top: calc(1.65em + 2px);
    }
    .mobile-whole {
        width: 100% !important;
    }
	.mobile-half {
		width: 50% !important;
	}
	/*.form-container input ~ .tooltip {
		min-width: 50%;
		max-width: 95%;
		overflow: auto;
	}*/
}
@media screen and (max-width: 360px) {
	.form-container > header > .form-title {
		padding: 1em 1em 0;
	}
	.form-notification.active {
		margin: 1em 1em;
	}
	.form-container-parent {
		font-size: 1rem;
	}
	.form-container {
		min-width: 25%;
	}
	.form-pages > .page {
		width: calc(100% - 2em);
	}
	.form-pages > .page.active {
		left: 1em;
	}
	.form-container input,
	.form-container textarea {
		font-size: 16px;
	}
}

@media print {
	.form-container input:not([type="radio"]):not([type="checkbox"]) ~ label,
	.form-container textarea ~ label {
		left: 1em;
		top: 0;
		font-size: .85em;
		color: #230101;
	}
}