/* defaults */
body {
	--ff-c-space: clamp(5px,2vw,20px);
}

body,
textarea,
input {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	color: var(--text-color);
}

pre {
	font-family: 'Inter', sans-serif;
	margin: 0;
}

table {
	border-collapse: collapse;
}

a {
	color: var(--link-color);
	text-decoration: none;
	cursor: pointer;
}

address {
	font-style: inherit;
}

ul, li, p, h1,h2,h3,h4,h5,h6 {
	margin:0;
	padding:0;
	font-size: 16px;
	line-height: 1.25;
	font-weight: normal;
}

b {
	font-weight: bold;
}

li {
	list-style-type: none;
}

table td,
table th {
	text-align: left;
	vertical-align: top;
}

@media screen and (max-width : 900px) {
	body,
	textarea,
	input {
		font-size: 14px;
	}
	
	ul, li, p, h1,h2,h3,h4,h5,h6 {
		font-size: 14px;
	}
}

/* defaults end */

html {
	overflow-y: scroll;
}

body {
	background-color: var(--container-background);
	margin: 0;
}

.ff-screenshot body {
	background-color: var(--neutral-0);
}

html.ff-nested-iframe {
	overflow: auto;
}

.ff-iframe-content-viewer {
	border: 1px solid var(--input-text-border);
	margin: 0px;
	width: 100%;
	height: 100%;
	min-height: min(800px,calc(100vh - 400px));
}

.ff-hide {
	display:none;
}

.ff-nested-iframe body {
	background-color: transparent;
}

.container {
	margin: auto;
}

.form-print-group {
	margin-left: -10px;
	padding: 4px 10px;
	display: flex;
}

.form-print-group:nth-child(2n+1) {
	background-color: var(--table-alternate-row-background);
}

.form-print-group.ff-print-group-title {
	background-color: transparent;
	border-bottom: 1px solid var(--text-color);
	padding-top: 20px;
	padding-bottom: 2px;
}

.form-print-group.input-group-wrapped,
.form-print-group.ff-print-group-range {
	display: block;
}

.ff-print-value {
	color: var(--text-color);
	text-align: right;
	flex: 1;
}

.ff-txt-normal {
	font-style: normal;
	font-weight: normal;
}

.ff-txt-xxs {
	font-size: 10px;
}

.ff-txt-xs {
	font-size: 12px;
}

.ff-txt-s {
	font-size: 14px;
}

.ff-txt {
	font-size: 16px;
}

.ff-txt-xl {
	font-size: 20px;
}

.ff-txt-xxl {
	font-size: 24px;
}

.ff-txt-xxxl {
	font-size: 30px;
}

.ff-txt-warning {
	color: var(--warning-color);
}

.ff-indented-text {
	margin-left: 30px !important;
}

.ff-nowrap-text {
	white-space: nowrap;
}

.ff-preformatted-text {
	white-space: pre-line;
}

.ff-mod-no-margins {
	margin: 0 !important;
}

.ff-mod-flex-collapse {
	flex: none !important;
}

.ff-inline-row,
.ff-row {
	display: flex;
	flex-direction: row;
}

.ff-row > * { flex: 1 }

.ff-vertical-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ff-margin-top-s { margin-top: 5px; }
.ff-margin-top-m { margin-top: 10px; }
.ff-margin-top-l { margin-top: 30px; }
.ff-margin-top-xl { margin-top: 50px; }
.ff-margin-top-xxl { margin-top: 75px; }

.ff-padding-box {
	padding: 20px;
	box-sizing: border-box;
}

.ff-more-link {
    display: inline-block;
	color: var(--link-color);
	border-bottom: 1px solid var(--link-color);
	line-height: 22px;
	padding: 0;
	cursor: pointer;
	text-align: center;
}

.ff-more-link::after {
    content: '->';
    transform: rotate(90deg);
    display: inline-block;
    cursor: pointer;
	transition: transform 0.2s ease-in;
}

.ff-more-link.open::after {
    transform: rotate(-90deg);
}

.ff-list-bullets li {
	list-style-type: disc;
	list-style-position: outside;
	margin-left: 20px;
}

.ff-cite {
	color: var(--text-color);
	line-height: 1.2;
	
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.ff-cite::before { content: '\00ab'; }
.ff-cite::after { content: '\00bb'; }

/* basic layout */

.ff-wide.flowform-head,
.ff-main.flowform-head {
	background-color: var(--header-background);
	height: 80px;
	box-shadow: 0 0 20px var(--header-shadow);
	position: fixed;
	width: 100%;
	z-index: 5;
	top: 0;
	left: 0;
}

.ff-wide.flowform-head .ff-header,
.ff-main.flowform-head .ff-header {
	max-width: var(--content-max-width);
	box-sizing: border-box;
	
	position: relative;
	margin: auto;
	background: var(--logo-background);
	background-repeat: no-repeat;
	background-size: auto 50%;
	background-position: 30px center;
	height: 100%;
	display: flex;
	justify-content: flex-end;
}

.ff-main.flowform-head .ff-header {
	
}

.ff-app-mode {
	color: var(--link-color);
	font-size: 40px;
	line-height: 45px;
	margin-right: 22.5px;
	padding: 0;
	width: 45px;
	height: 45px;
	text-align: center;
	display: block;
}

.flowform-head .ff-app-mode-icon {
	font-size: 40px;
	line-height: 40px;
	position: absolute;
	top: 0;
	left: -50px;
	opacity: 0.5;
	line-height: 80px;
}

.ff-wide.flowform-body,
.ff-main.flowform-body {
	margin-top: 120px;
}

.ff-wide.flowform,
.ff-main.flowform {
	position: relative;
}

.ff-main > .flow {
	margin-bottom: 100px;
}

@media print {
	.ff-main > .flow {
		margin-bottom: 0;
	}
}

.modal-open {
	overflow:hidden !important;
}

.ff-state-new {
	opacity: 0;
	transition: opacity 0.25s ease-in;
}

.ff-state-present {
	opacity: 1;
	transition: opacity 0.25s ease-in;	
}

.ff-bg-global {
	width: 50%;
	max-width: 400px;
	margin: 50px auto;
}

.flowform-subtitle,
.ff-header-title,
.ff-slim .form-input-title h3,
.ff-main-action p {
	font-weight: normal;
	font-style: normal;
	color: var(--text-color);
	font-size: 20px;
	line-height: 1.2;
	margin-top: 13px; 
	margin-bottom: 35px;
	display: block;
	text-align: left;
}

.ff-header-title {
	order: 2;
}

@media screen and (max-width : 900px) {
	.flowform-subtitle,
	.ff-header-title,
	.ff-slim .form-input-title h3 {
		font-size: 16px;
		margin-bottom: 15px;
	}
}

.ff-list > br {
	display: none;
}

.ff-list > li {
	list-style-type: none;
	margin: 5px;
}

.ff-list > li:before {
	content: 's';
	font-family: 'HypothekeIcons';
	color: var(--link-color);
	margin-right: 10px;
}

.form-input-panel ul > br,
.flowform-input-icon-content dl > br,
.flowform-input-icon-content dl + br,
.flowform-input-icon-content ul + br,
.flowform-input-icon-content ul > br {
	display:none;
}

.flowform-input-icon-content dl,
.flowform-input-icon-content ul {
	padding: 0;
	margin: 0;
	list-style-position: inside;
}

.flowform-input-icon-content dt {
	float:left;
	margin-right: 5px;
	font-weight: bold;
}

.flowform-input-icon-content dd {
	margin-bottom: 5px;
	-webkit-margin-start: 0;
}

/* floating-alert-box */
.floating-box-anchor {
	position: relative
}

.floating-box-background {
	background-color: var(--floating-box-background-layer);
	width: 100vw;
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 1000;
}

.floating-box {
	position: fixed;
	z-index: 1001;
	top: 50vh;
	left: 50vw;
	min-width: 350px;
	transform: translateY(-50%) translateX(-50%);
	overflow: hidden;
}

.alert-box {
	background-color: var(--box-background);
}

.alert-box {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 40px;
}

.alert-box.alert-danger p {
	color: var(--text-color);
}

.alert-box.alert-danger h5 {
	color: var(--title-color);
}

.alert-box h5 {
	font-size: 20px;
	line-height: 1.2;
}

.alert-box p {
	flex: 100;
}

.alert-box:before {
	font-family: 'HypothekeIcons';
	color: var(--warning-color);
	opacity: 0.2;
	position: absolute;
	right: -25px;
	bottom: -25px;
	width: 150px;
	height: 150px;
	font-size: 150px;
	line-height: 150px;
}

.alert-danger:before { content: '3'; }


.alert-box .buttongroup-final {
	margin-top: 40px;
}

.alert-box-row {
	flex-direction: row;
}

.alert-box-row > * {
	padding: 0 10px;
	flex: 1;
}

/* popover */

.hui-popover {
	display:none;
}

.hui-popover.hui-po-visible {
	display:block;
}

/* flowform-loader */

.flowform-loader-parent {
	
}

.flowform-loader {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

.flowform-loader-local {
	margin: auto;
	width: 30px;
	height: 46px;
	background: var(--loader-background);
	background-repeat: no-repeat;
	background-size: 100%;
}

.flowform-loader-visual,
.flowform-loader-content {
	width: 30px;
	height: 46px;
	background: var(--loader-background);
	background-repeat: no-repeat;
	background-size: 100%;
}

.flowform-loader-content {
	opacity: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 100px;
}

.flowform-loader.visible .flowform-loader-content {
	opacity: 1;
}

.ff-background-job-progress-box .flowform-loader-visual {
	margin: 0 auto 20px auto;
}

.ff-background-job-progress-task {
	text-align: center;
}

.ff-background-job-progress-task [data-name=object] {
    margin: 15px 0;
    display: block;
    font-weight: bold;
}

.ff-background-job-progress-task [data-name=status] {
	text-align: center;
}

.failed .floating-box [data-name=status] {
    color: var(--warning-color);
}

.ff-background-job-frame {
	display: none;
}


/* editable-number */
.editing-number {
	position:relative;
}

.editing-number input {
	position: absolute;
	border: 0 none;
	padding: 0;
	outline: none;
	background-color: transparent;
	color: inherit;
	text-align: right;
	font-size: inherit;
	line-height: inherit;
}

.editing-number.editable-percentage input {
	width: calc(100% - 11px);
	right: 11px;
}

.editing-number.editable-percentage::after {
	content: '%';
}

.editing-number.editable-chf input {
	width: calc(100% - 25px);
	right: 25px;
	padding: 0;
}

.editing-number.editable-chf input {
	padding-right: 3px;
}

.editing-number.editable-chf::after {
	content: ' CHF';
}

.ff-attention-pulse {
  animation: ff-attention-pulse 1s 10 ease-in-out;
}

@keyframes ff-attention-pulse {
	0% { box-shadow: 3px 3px 10px rgba(72, 181, 139, 0.2); }
	50% { box-shadow: 3px 3px 15px rgba(72, 181, 139, 0.99); }
	100% { box-shadow: 3px 3px 10px rgba(72, 181, 139, 0.2); }
}

.flowform-translation-input {
	width: 100%;
	border: none;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	background-color: rgba(255,255,255,0.1);
	outline: 0 none;
}

.ff-delayed-image {
	opacity: 0;
}

.ff-showing-delayed-image {
	opacity: 1;
	transition: all 0.5s ease-out;
}

.ff-comment {
	color: var(--comment-color);
	font-size: 12px;
}

.print-logo {
	display:none;
}

.print-disclaimer,
.print-help {
	display: none;
}

.ff-limited-height-50 {
	max-height: 50vh;
	box-sizing: border-box;
}

.ff-limited-height-75 {
	max-height: 75vh;
	box-sizing: border-box;
}

.ff-scrollable {
	scrollbar-width: thin;
	scrollbar-color: var(--form-scrollbar-color) var(--box-background);
}

.ff-scrollable-transparent {
	scrollbar-color: var(--form-scrollbar-color) transparent;
}

.ff-scrollable-y {
	overflow-y: scroll;
	max-height: 100%;
}

.ff-scrollable-x {
	overflow-x: scroll;
}

.ff-scrollable::-webkit-scrollbar-thumb {
    background: var(--form-scrollbar-color);
}

.ff-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.ff-scrollable-y::-webkit-scrollbar {
    width: 5px;
}

.ff-scrollable-x::-webkit-scrollbar {
    height: 5px;
}

.ff-badge {
    border-radius: 14px;
    background-color: var(--badge-background);
    color: var(--badge-color);
    padding: 5px 10px;
    text-align: center;
	
	font-size: 12px;
	line-height: 12px;
	white-space: nowrap;
}

.ff-badge-inline {
	display: inline-block;
}

.ff-badge.ff-badge-success {
	background-color: var(--badge-success-background);
}

.ff-badge.ff-badge-warning {
	background-color: var(--badge-warning-background);
}

.ff-tab-content {
    display: none;
}

.ff-tab-content.active {
    display: block;
}

.ff-json-editor-view {
	height: 50vh;
}

.flowform-action {
	cursor: pointer;
}