.material-icons {
	text-decoration: none;
}
.material-icons.small {
	font-size: 120%;
	line-height: 1;
}
.font_courier {
	font-family: 'Courier New', Courier, serif;
}
label:hover, .pointer:hover {
	cursor: pointer;
}
.nopointer:hover {
	cursor: default;
}
[disabled='disabled'], [disabled='disabled']:hover {
	background-color: var(--bg-disabled);
}
:focus:not(:focus-visible) {
	outline: none;
}
input[type='checkbox'], input[type='radio'] {
	position: absolute;
	display: inline-block;
	opacity: 0;
	width: 0;
	z-index: -1;
}
input[type='checkbox'] + span, input[type='checkbox'] + label, input[type='radio'] + label {
	display: inline-block;
}
input[type='checkbox'] + label span, input[type='radio'] + label span {
	vertical-align: middle;
}
input[type='checkbox'] + span::before, input[type='checkbox'] + label::before, input[type='radio'] + label::before, .webform_infotext_indicator::before {
	font-family: 'Material Icons';
	content: 'check_box_outline_blank';
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	color: var(--text-dark);
	margin-right: 10px;
	vertical-align: middle;
}
input[type='checkbox']:focus + span::before, input[type='checkbox']:focus + label::before, input[type='radio']:focus + label::before, .webform_field_yesno input[type='checkbox']:focus + label {
	color: var(--bg-default);
}
input[type='radio'] + label::before {
	content: 'radio_button_unchecked';
}
input[type='checkbox']:checked + span::before, input[type='checkbox']:checked + label::before {
	content: 'check_box';
}
input[type='radio']:checked + label::before {
	content: 'radio_button_checked';
}
input:not([type='checkbox'], [type='radio']), textarea, .webform_select_box {
	background-color: var(--bg-input);
}
input:not([type='checkbox'], [type='radio'])::placeholder, textarea::placeholder {
	font-style: italic;
}
input:not([type='checkbox'], [type='radio']):focus, textarea:focus, .webform_select_box:focus, .webform_selectmenu:focus, input:not([type='checkbox'],[type='radio']):focus-visible, textarea:focus-visible, .webform_select_box:focus-visible, .webform_selectmenu:focus-visible {
	outline: var(--bg-default) 2px solid;
	border-radius: 2px;
}
input:disabled, select:disabled, .ui-selectmenu-disabled {
	background-color: var(--bg-disabled);
	color: var(--text-disabled);
}
input:disabled + label {
	color: var(--text-disabled);
}
input:read-only, textarea:read-only {
	background-color: var(--bg-disabled);
	color: var(--text-disabled);
}
*:not([data-icon=""]) {
	&[data-iconposition="left"]::before, &[data-iconposition="right"]::after {
		display: inline-block;
		font-family: 'Material Icons';
		content: attr(data-icon);
		font-size: inherit;
		line-height: inherit;
		vertical-align: bottom;
	}
	&[data-iconposition="left"]::before {
		margin-right: 8px;
	}
	&[data-iconposition="right"]::after {
		margin-left: 8px;
	}
}
.w3-button:not([data-icon=""]) {
	&[data-iconposition="left"]::before, &[data-iconposition="right"]::after {
		font-size: 24px;
		line-height: 1;
		vertical-align: middle;
	}
}
.webform_field_yesno input[type='checkbox'] + label::before {
	content: 'toggle_off';
	font-size: 50px;
	line-height: .6;
	color: var(--bg-palered);
}
.webform_field_yesno input[type='checkbox']:checked + label::before {
	content: 'toggle_on';
	color: var(--bg-green);
}
.webform_content input[type='datetime-local'], .webform_content input[type='date'], .webform_content input[type='time'] {
	width: auto;
}
.webform_content, .webform_tabs, .webform, .webform_tab, .webform_block {
	position: relative;
	display: block;
}
.webform_content {
	overflow: hidden;
}
/* tabs */
.webform_tab {
	display: none;
	animation: fadeEffect .5s;
	&.currenttab, &.visibletab {
		display: block;
		&:not(.webform_header_tab, .webform_footer_tab) {
			min-height: 0;
			min-width: 0;
		}
	}
	& .webform_block {
		& > .webform_field:nth-child(1 of :not(.webform_field_hiddenfield)) {
			margin-top: 0 !important;
		}
		& > .webform_field:nth-child(1 of :not(.webform_field_hiddenfield)) {
			margin-bottom: 0 !important;
		}
		&.nomargin {
			& > .webform_field {
				margin-top: 0 !important;
				margin-bottom: 0 !important;
				& .webform_labelbox label {
					margin-top: 0 !important;
				}
				&.w3-padding:first-child {
					padding-left: 0 !important;
				}
				&.w3-padding:last-child {
					padding-right: 0 !important;
				}
			}
		}
	}
	& > .webform_block {
		& > .webform_fullblock, &:first-child > .webform_fullblock {
			margin: -16px -16px 0 -16px !important
		}
		& + .webform_block > .webform_fullblock {
			margin-top: 16px !important;
		}
		&:last-child > .webform_fullblock {
			margin-bottom: -16px !important;
		}
		& > .webform_field + .webform_fullblock {
			margin-top: 16px !important;
		}
	}
}
.webform_tab:not(.webform_header_tab) .webform_block:first-child  > .webform_field:first-child:not(.webform_fullblock) {
	& h1, & h2, & h3, & h4, & h5, & h6 {
		margin-top: 0 !important;
	}
}
/* form */
.webform_fullblock, .webform_tab > .webform_block > .webform_fullblock + .webform_field {
	margin-top: 32px !important;
}
.webform_fullwidth {
	margin-left: -16px !important;
	margin-right: -16px !important;
}
.webform_labelbox label {
	display: block;
	margin-top: 10px;
	margin-bottom: 2px;
	color: var(--text-between);
}
.webform_fieldbox {
	position: relative;
}
.webform_elementlist {
	min-height: 100px;
}
.webform_block > div:first-child .webform_labelbox label {
	margin-top: 0;
}
span.material-icons {
	vertical-align: middle;
}
.webform_labelbox label > span.material-icons.w3-margin-left, .w3-button > span.material-icons.w3-margin-left {
	margin-left: 8px !important;
}
.w3-button > span.material-icons.w3-margin-left {
	margin-right: -8px !important;
}
.webform_labelbox label > span.material-icons.w3-margin-right, .w3-button > span.material-icons.w3-margin-right {
	margin-right: 8px !important;
}
.w3-button > span.material-icons.w3-margin-right {
	margin-left: -8px !important;
}
.webform_requiredstring {
	margin-left: 8px;
}
.webform_infotext_indicator {
	margin-left: 8px;
}
.webform_infotext_indicator::before {
	content: 'info_outline';
	vertical-align: top;
}
.webform_infotext_indicator .w3-tag {
	display: none;
	position: absolute;
	top: 5px;
	left: 10px;
	box-sizing: border-box;
	width: 250px;
	z-index: 10;
}
.webform_field_hiddenfield {
	display: none;
}
/* searchblock */
.searchblock {
	display: flex;
	margin: 0 0 16px 0;
	& > div {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		align-self: end;
		margin-right: 10px;
		label {
			margin-top: 0;
		}
		&.rightalign {
			margin-left: auto;
			&~ div:last-child {
				margin-right: 0;
			}
		}
	}
}
/* fields */
.webform_selectdropdown, .webform_selectmenu_icon {
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
	min-height: 100%;
	width: auto;
	border: 0 none;
}
.webform hr {
	height: 1px;
	width: 100%;
	margin: 0;
}
.webform_field_checkbox .webform_fieldbox label, .webform_field_radiobutton .webform_fieldbox label, .webform_field_yesno .webform_fieldbox label {
	display: block;
	width: 100%;
	padding: 2px 0;
}
.w3-input.flexdatalist-alias {
	padding-right: 40px;
	&:disabled ~ .webform_selectdropdown {
		pointer-events: none;
	}
}
.w3-input.flexdatalist-multiple {
	padding: 4px 8px;
	& li.value {
		color: var(--text-dark);
		margin-top: 2px;
		margin-bottom: 2px;
	}
	& .w3-input {
		padding: 2px 4px;
	}
}
.webform_linkbox {
	& .webform_linkbox_buttons {
		position: absolute;
		top: 0;
		right: 0;
		background-color: var(--bg-white);
	}
	& .webform_linkbox_buttons span {
		position: relative;
		margin-left: 1px;
		overflow: visible;
		&:last-child {
			margin-left: 0;
		}
	}
	& .webform_linkbox_buttons span > div {
		position: absolute;
		top: 50%;
		left: 50%;
		padding: 5px;
		z-index: 1;
		display: none;
	}
	& .webform_linkbox_buttons span > div > span {
		vertical-align: top;
	}
}
.webform_slider_box, .webform_field_slider .ui-slider-range {
	position: relative;
	box-sizing: border-box;
	width: auto;
	height: 6px;
	border: 1px solid #aaa;
	border-radius: 2px;
	background-color: inherit;
	margin: 10px 30px;
	cursor: pointer;
}
.webform_slider_box .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 60px;
	height: 20px;
	top: 50%;
	margin-top: -10px;
	margin-left: -31px;
	text-align: center;
	line-height: 18px;
	font-size: 11px;
	border: 1px solid #444;
	background-color: var(--bg-lightgray);
	border-radius: 4px;
	box-shadow: 1px 1px 1px rgba(0,0,0,.2);
	color: var(--text-dark);
	box-sizing: border-box;
	overflow: hidden;
	cursor: ew-resize;
	-ms-touch-action: none;
	touch-action: none;
}
.webform_field_slider .ui-slider-range {
	background-color: var(--bg-gray);
	margin: 0;
	top: -1px;
}
.webform_field_slider.smallhandle .webform_slider_box {
	margin-left: 10px;
	margin-right: 10px;
}
.webform_field_slider.smallhandle .ui-slider-handle {
	width: 20px;
	margin-left: -11px;
}
.webform_field_slider .webform_slider_showinput {
	display: grid;
	grid-template-columns: 1fr 80px;
	align-items: center;
}
.webform_slider_value_box {
	display: block;
}
.webform_slider_value_title {
	font-weight: bold;
	font-style: italic;
	padding-right: 10px;
}
.webform_fileupload > input {
	width: 1px;
	height: 1px;
	opacity: 0;
	position: absolute;
	z-index: -1;
}
.webform_fileupload > span {
	display: inline-block;
	vertical-align: middle;
}
.webform_fileupload .file_info {
	max-width: 100%;
	width: 250px;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.webform_imageselect {
	position: relative;
	display: inline-block;
	vertical-align: top;
	width: 150px;
	height: 150px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: 1px solid #666;
}
.webform_imageselect input {
	position: absolute;
	z-index: -100;
}
.webform_imageselect span.material-icons {
	position: relative;
	float: right;
	margin-right: 0;
	margin-left: 0;
	cursor: pointer;
}
.webform_imageselect .showimage {
	display: none;
}
.webform_imageselect[data-imageset='1']:hover .showimage {
	display: block;
}
.webform_imageselect .showimage span.material-icons {
	float: left;
}
.webform_imageselect .iconimage {
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
}
.webform_imageselect .iconimage .material-icons {
	line-height: 150px;
	color: var(--text-between);
	float: none;
	cursor: default;
}
.webform_imageselect .imagedelete {
	display: none;
}
.webform_mediafile_box {
	display: flex;
	align-items: start;
	width: 100%;
	margin: 0 -8px;
	& .webform_mediafiles {
		display: block;
		width: auto;
		& .webform_mediafile, & .ui-sortable-placeholder {
			position: relative;
			display: inline-block;
			width: 170px !important;
			height: 170px !important;
			border: 1px solid var(--bg-gray);
			background-color: var(--bg-white);
			vertical-align: top;
			margin: 8px;
			background-position: center;
			background-repeat: no-repeat;
			background-size: auto;
			&:hover {
				cursor: default;
				& .buttons {
					display: block;
				}
				& .filename {
					background-color: rgba(255, 255, 255, .9);
				}
			}
			& .buttons {
				display: none;
				position: absolute;
				top: 0;
				right: 0;
				z-index: 10;
				width: 100%;
				text-align: center;
				& > div {
					position: relative;
					display: inline-block;
				}
			}
			& .filename {
				position: absolute;
				bottom: 0;
				left: 0;
				width: 100%;
				max-height: 100%;
				text-align: center;
				padding: 10px;
				color: var(--text-dark);
				background-color: rgba(255, 255, 255, .5);
				& span {
					display: block;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}
			& .filetype {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				color: var(--text-disabled);
			}
		}
		& .ui-sortable-placeholder {
			background-color: var(--bg-disabled);
		}
	}
	& .webform_mediafile_input {
		align-self: stretch;
		justify-self: start;
		margin: 8px;
		& .selectfile, & span {
			height: 100%;
			min-height: 150px;
		}
		& span {
			align-content: center;
		}
	}
}
.captcha_math_text {
	margin-right: 10px;
}
.captcha_image {
	margin-bottom: 5px;
}
.webform .input-clear-marker {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	cursor: pointer;
}
.webform .input-clear-marker::before {
	position: absolute;
	font-family: 'Material Icons';
	font-size: calc(100% + 5px);
	line-height: 1;
	left: auto;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	content: 'delete';
	color: var(--text-dark);
}
/* lists */
.webform_elementlist {
	border: 1px solid var(--bg-table-border);
	background-color: var(--bg-table-odd);
}
.webform_contenttable {
	width: 100%;
	display: table;
	position: relative;
}
.webform_elementlist {
	.table_row {
		display: table-row;
	}
	.table_sorting {
		.table_column {
			font-weight: bold;
			background-color: var(--bg-table-odd);
			vertical-align: middle;
		}
		.th-download-list {
			position: absolute;
			right: 0;
			&.position-head {
				top: 1px;
			}
			&.position-foot {
				bottom: 1px;
			}
		}
	}
	.table_row {
		position: relative;
		&:nth-child(odd) {
			background-color: var(--bg-table-odd);
		}
		&:nth-child(even) {
			background-color: var(--bg-table-even);
		}
		&:not(.table_sorting):hover {
			.table_column {
				background-color: var(--bg-mediumgray);
			}
		}
		&:last-child .table_column {
			border-bottom: 0 none;
		}
		&.buttons-hidden .buttonblock {
			display: none;
		}
	}
	.table_column {
		&:first-child {
			padding-left: 16px;
		}
		&.th-selection {
			width: 46px;
		}
		&.th-selection span::before, &.td-selection span::before {
			margin-right: 0;
			font-weight: normal;
		}
		display: table-cell;
		padding: 8px 8px;
		text-align: left;
		vertical-align: top;
		border-bottom: 1px solid var(--bg-table-border);
	}
	.td-buttons {
		padding-top: 0;
		padding-bottom: 0;
		padding-right: 0;
		& a {
			margin-left: 1px;
			box-shadow: none;
			outline: transparent;
		}
		.mobilebtnmarker {
			display: none;
		}
	}
	.newline {
		opacity: .5;
		width: 100%;
		display: block;
		&:hover {
			opacity: 1;
		}
		.table_column {
			vertical-align: middle;
			display: block;
			border-bottom: 0 none;
		}
		.button-normal:hover {
			cursor: pointer;
		}
		.material-icons, .webform_tabs .material-icons {
			font-size: inherit;
			line-height: inherit;
			margin-right: 10px;
		}
	}
	.fullblock {
		display: block;
		margin: -8px;
		padding: 8px;
		width: 100%;
		height: 100%;
		box-sizing: content-box;
		&.w3-border {
			padding: 7px;
		}
		.table_column:first-child & {
			margin: -8px -8px -8px -16px;
			padding: 8px 8px 8px 16px;
			&.w3-center {
				margin: -8px -8px -8px -16px;
				padding: 8px 12px 8px 12px;
			}
			&.w3-border {
				margin: -8px -8px -8px -16px;
				padding: 7px 7px 7px 15px;
				&.w3-center {
					margin: -8px -8px -8px -16px;
					padding: 7px 11px 7px 11px;
				}
			}
		}
	}
	.w3-tag {
		display: none;
		position: absolute;
		margin-left: 10px;
		box-sizing: border-box;
		width: auto;
	}
	.paging {
		text-align: center;
		.w3-button {
			margin-left: 1px;
			margin-right: 1px;
		}
		.pageselect {
			display: inline-block;
			input {
				display: inline-block;
				width: 44px;
				text-align: center;
			}
		}
	}
	.perpage, .selectable {
		display: block;
		width: 100px;
		padding-top: 8px;
		justify-self: right;
	}
	.selectable {
		display: grid;
		grid-template-columns: auto 1fr auto;
		justify-items: left;
		align-items: center;
		width: auto;
		padding-left: 8px;
		justify-self: left;
		select option:first-child {
			font-style: italic;
		}
		> span.material-icons {
			line-height: 40px;
			vertical-align: top;
			margin-right: 5px;
		}
		.webform_selectmenu {
			display: inline-block;
			width: auto;
			min-width: 150px;
			padding-left: 20px;
			padding-right: 30px;
			font-weight: normal;
			font-style: italic;
			.material-icons {
				margin-right: 0;
				padding-right: 0;
			}
		}
		.selectedtext {
			display: none;
		}
		.selectedtext.visible {
			display: inline-block;
			margin-left: 10px;
			font-weight: normal;
			font-style: italic;
		}
	}
	.placeholder {
		color: transparent !important;
		display: table-row;

		> div {
			display: table-cell;
		}
	}
	.webform_contenttable_footer {
		padding: 8px 8px;
		font-weight: bold;
		border-top: 1px solid var(--bg-table-border);
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		justify-items: center;
	}
}
@media (max-width: 1024px) {
	.webform_elementlist {
		.table_row .table_column {
			.buttonblock {
				position: absolute;
				top: 0;
				right: 0;
				width: auto;
				display: none;
			}
			&.td-buttons {
				.mobilebtnmarker {
					display: inline-block;
				}
				& .menu_open + .buttonblock {
					display: block;
				}
				& .material-icons {
					font-size: 21px;
				}
			}
		}
	}
}

.webform_content.tableform .webform_field {
	display: grid;
	grid-template-columns: 30% 1fr;
	grid-gap: 16px;
}
.webform_content.tableform .webform_field_divider, .webform_content.tableform .webform_field_yesno {
	grid-template-columns: 1fr;
}
.webform_content.tableform .webform_labelbox {
	vertical-align: top;
}
.webform_content.tableform .webform_labelbox label {
	margin-top: 8px !important;
}
.webform_confirmbuttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 16px;
	border-top: 1px solid var(--bg-mediumgray);
}
.webform_tab > .webform_block.webform_confirmbuttons > .webform_field:first-child, .webform_tab > .webform_block.webform_confirmbuttons > .webform_field:last-child {
	margin-top: 16px !important;
	margin-bottom: 0 !important;
}
.webform_confirmbuttons button {
	color: var(--text-dark);
	cursor: pointer;
	font-weight: bold;
	line-height: 20px;
	vertical-align: middle;
	display: block;
	margin: 0;
	min-width: 49.99%;
}
.webform_confirmbuttons .webform_field:last-child button {
	margin-left: auto !important;
}
.webform_confirmbuttons button span {
	margin-right: 10px;
	font-size: 20px;
	line-height: 18px;
}
.webform_content.tableform input, .webform_content.tableform select, .webform_content.tableform textarea, .webform_content.tableform .webform_contentlist, .webform_content.tableform .webform_selectmenu, .webform_content.tableform .werbform_autocompletebox {
	width: 100%;
}
.webform_fileupload_progress {
	position: relative;
}
.webform_fileupload_progress .progressbar {
	position: relative;
	background-color: var(--bg-gray);
}
.webform_fileupload_progress .progressbar .progressText {
	position: relative;
	display: block;
	color: var(--text-light);
	text-align: center;
}
.webform_fileupload_progress .progressbar .progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background-color: var(--bg-green);
}
.webform_fileupload_progress .progressinfo {
	position: relative;
	margin-top: 16px;
	text-align: center;
}
.webform_fileupload_dragdrop {
	position: relative;
	margin: 10px auto;
	height: 100px;
	border: 1px dashed var(--bg-gray);
	background-color: var(--bg-white);
	padding: 3px;
	color: var(--text-dark);
	text-align: center;
	line-height: 100px;
	cursor: pointer;
}
.webform_fileupload_dragdrop.dragover {
	padding: 0;
	border-width: 4px;
	background-color: var(--bg-lightgray);
}
.webform_errorcode {
	display: none;
}
.webform_errorcode > span {
	display: block;
}
.webform_markred .webform_errorcode {
	display: block;
}
.webform_response div {
	position: relative;
	padding-right: 40px;
}
.webform_response div:first-child {
	margin-top: 0;
}
.webform_response div:last-child {
	margin-bottom: 20px;
}
.webform_header_tab .webform_response div:first-child {
	margin-top: 32px;
}
.webform_header_tab .webform_response div:last-child {
	margin-bottom: 0;
}
.webform_response div p {
	padding: 10px 0;
}
.webform_response pre {
	overflow: auto;
}
.response_closer {
	position: absolute;
	font-size: 24px !important;
	right: 10px;
	top: 10px;
	opacity: .5;
}
.response_closer:hover {
	opacity: 1;
	cursor: pointer;
}
.webform_loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.1);
	z-index: 1000;
}
.webform_spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	margin: -10px 0 0 -30px;
	border: 10px solid #fff;
	border-radius: 50%;
	border-top: 10px solid #666;
	width: 60px;
	height: 60px;
	box-shadow: 0 0 4px rgba(0,0,0,.5);
	animation: spin 2s linear infinite;
}
@keyframes spin {
	0% {transform: rotate(0deg);}
	100% {transform: rotate(360deg);}
}
@keyframes fadeEffect {
	from {opacity: 0;}
	to {opacity: 1;}
}

/* autocomplete */
.webform_autocomplete, .webform_selectmenu_menu {
	position: absolute;
	top: 8px;
	left: -8px;
	z-Index: 100;
}
.webform_selectmenu {
	position: relative;
	display: block;
	max-width: 100%;
	overflow: hidden;
	cursor: pointer;
	padding-right: 40px;
}
.webform_selectmenu_menu {
	display: none;
}
.webform_selectmenu_menu_open {
	display: block;
	max-width: calc(100% - 32px);
	z-index: 10100;
}
.webform_selectmenu_icon {
	padding: 8px 8px 0 0;
}
.webform_tabs .w3-button {
	line-height: 150%;
}
.webform_tabs .w3-button span {
	font-size: 160%;
}
.webform_tab .w3-row {
	display: flex;
}
.webform_tab .w3-row > .w3-half {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	align-self: end;
}
.webform_autocomplete, .webform_selectmenu_menu ul {
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	list-style-type: none;
	margin: 0;
	padding: 0;
	border-spacing: 0;
  border-collapse: inherit;
	background-color: var(--bg-white);
	border: 1px solid var(--bg-mediumgray);
	box-shadow: 0 4px 5px rgba(0,0,0,.15);
}
.webform_selectmenu_menu ul {
	margin-top: -1px;
	margin-bottom: 20px;
	max-width: 100%;
}
.webform_autocomplete li, .webform_selectmenu_menu li:not(.ui-menu-item), .webform_selectmenu_menu li div {
	background-color: var(--bg-white);
	border-bottom: 1px solid #ccc;
	padding: 8px 15px;
	font-size: 14px;
	line-height: 20px;
	border-bottom: 1px solid var(--bg-mediumgray);
	color: var(--text-dark);
}
.webform_selectmenu_menu.webform_selectmenu_optgroup li div {
	padding-left: 30px;
}
.webform_selectmenu_menu.webform_selectmenu_optgroup .ui-selectmenu-optgroup {
	background-color: var(--bg-disabled);
	color: var(--text-dark) !important;
}
.webform_selectmenu_menu .ui-state-disabled div {
	color: var(--text-disabled);
	font-style: italic;
}
.webform_autocomplete li:last-child, .webform_selectmenu_menu li:last-child div {
	border: 0;
}
.webform_autocomplete li span {
	font-weight: bold;
	color: var(--text-marked);
}
.webform_autocomplete li.marked, .webform_autocomplete li:hover, .webform_autocomplete li.marked span, .webform_autocomplete li:hover span, .webform_selectmenu_menu .ui-state-active, .webform_selectmenu_menu li:hover {
	background-color: var(--bg-default);
	color: var(--text-light);
	cursor: pointer;
}
.webform_autocomplete li i, .webform_selectmenu_menu li i {
	font-weight: normal !important;
	background-color: var(--bg-gray) !important;
	padding: 1px 3px;
	font-style: normal;
	display: block;
}
.webform_autocomplete li.marked i, .webform_autocomplete li:hover i, .webform_selectmenu_menu li.marked i, .webform_selectmenu_menu li:hover i {
	background-color: var(--bg-marked) !important;
}
.webform_password {
	position: relative;
}
.webform_password span {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 1em;
	height: 1em;
	transform: translateY(-50%);
	color: var(--text-between);
	display: block;
	cursor: pointer;
}
.webform_password span:hover {
	color: var(--text-dark);
}
.webform .leftblock, .webform .rightblock {
	display: inline-block;
	width: 50%;
}
.webform .rightblock {
	margin-left: -4px;
}
.webform .leftblock .webform_field, .webform .rightblock .webform_field {
	display: block;
}
.webform .webform_maxlength::before {
	content: '(';
	display: inline-block;
}
.webform .webform_maxlength::after {
	content: ')';
	display: inline-block;
}
.webform .webform_maxlength {
	display: inline-block;
	margin-left: 10px;
}
.webform .webform_field.monospace .webform_fieldbox {
	font-family: monospace;
}

/* tinyMCE fix */
.tox.tox-tinymce-aux {
	z-index: 11000;
}
/* UI control */
.ui-helper-hidden-accessible {display:none;}
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3);
	z-index: 1000;
}
.ui-tooltip, .ui-datepicker, .ui-dialog {
	position: absolute;
	width: auto;
	z-index: 10999;
	display: none;
	cursor: default;
	word-break: break-word;
}
.ui-tooltip {
	top: -9999px;
	left: -9999px;
}
.ui-dialog {
	position: fixed;
	max-height: 90vh;
	max-width: 95vw;
	overflow: hidden;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
}
.ui-dialog-title {
	width: auto;
	font-weight: bold;
}
.ui-dialog-titlebar-close:hover {
	cursor: pointer;
}
.ui-dialog-content {
	overflow: auto;
	min-height: 60px !important;
}
.ui-dialog .dialogbox .webform_content, .ui-dialog .dialogbox .webform, .ui-dialog .webform_content:not(.webform_notabs) form.webform {
	height: 100% !important;
	overflow: auto;
}
/* dialog resizing */
.ui-draggable .ui-dialog-titlebar {
	cursor: move;
}
.ui-dialog .ui-resizable-n {
	height: 2px;
	top: 0;
}
.ui-dialog .ui-resizable-e {
	width: 2px;
	right: 0;
}
.ui-dialog .ui-resizable-s {
	height: 2px;
	bottom: 0;
}
.ui-dialog .ui-resizable-w {
	width: 2px;
	left: 0;
}
.ui-dialog .ui-resizable-se,
.ui-dialog .ui-resizable-sw,
.ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw {
	width: 7px;
	height: 7px;
}
.ui-dialog .ui-resizable-se {
	right: 0;
	bottom: 0;
}
.ui-dialog .ui-resizable-sw {
	left: 0;
	bottom: 0;
}
.ui-dialog .ui-resizable-ne {
	right: 0;
	top: 0;
}
.ui-dialog .ui-resizable-nw {
	left: 0;
	top: 0;
}
.ui-draggable .ui-dialog-titlebar {
	position: relative;
	cursor: move;
	z-index: 1001;
}
.ui-draggable-handle {
	-ms-touch-action: none;
	touch-action: none;
}
.ui-resizable {
	position: relative;
}
.ui-resizable-handle {
	position: absolute;
	font-size: 0.1px;
	display: block;
	-ms-touch-action: none;
	touch-action: none;
}
.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
	display: none;
}
.ui-resizable-n {
	cursor: n-resize;
	height: 7px;
	width: 100%;
	top: -5px;
	left: 0;
}
.ui-resizable-s {
	cursor: s-resize;
	height: 7px;
	width: 100%;
	bottom: -5px;
	left: 0;
}
.ui-resizable-e {
	cursor: e-resize;
	width: 7px;
	right: -5px;
	top: 0;
	height: 100%;
}
.ui-resizable-w {
	cursor: w-resize;
	width: 7px;
	left: -5px;
	top: 0;
	height: 100%;
}
.ui-resizable-se {
	cursor: se-resize;
	width: 12px;
	height: 12px;
	right: 1px;
	bottom: 1px;
}
.ui-resizable-sw {
	cursor: sw-resize;
	width: 9px;
	height: 9px;
	left: -5px;
	bottom: -5px;
}
.ui-resizable-nw {
	cursor: nw-resize;
	width: 9px;
	height: 9px;
	left: -5px;
	top: -5px;
}
.ui-resizable-ne {
	cursor: ne-resize;
	width: 9px;
	height: 9px;
	right: -5px;
	top: -5px;
}

.pageeditor-edit {
	.design-tab {
		.webform_field > .webform_labelbox	label {
			font-weight: bold;
		}
	}
}

.spacingmatrix {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-gap: 10px 30px;

	.matrix {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-template-rows: auto auto auto;
		gap: 5px;
		width: fit-content;

		input {
			max-width: 70px;
			text-align: center;
		}
		.matrixdot0 { grid-column: 2; grid-row: 1; }
    .matrixdot1 { grid-column: 3; grid-row: 2; }
    .matrixdot2 { grid-column: 2; grid-row: 3; }
    .matrixdot3 { grid-column: 1; grid-row: 2; }
    .center {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        background-color: transparent;
    }
	}

	.preview {
		grid-column: 1 / 3;
		input {
			width: 100%;
		}
	}
}

.color-selector {
	margin: 10px 0;

	.color-mode {
		display: flex;
		grid-gap: 20px;
	}

	.color-inputs {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas: "inputs preview";
		gap: 15px;
		align-items: center;
		margin: 15px 0;

		.inputs {
			display: flex;
			grid-gap: 20px;
		}

		.color-input-group {
			label {
				display: block;
			}
			> div {
				display: flex;
				align-items: center;
				gap: 10px;
			}
			input[type="color"] {
				width: 50px;
				height: 40px;
				border: 2px solid #ddd;
				border-radius: 4px;
				cursor: pointer;
			}
			input[type="text"] {
				width: 100px;
			}
		}

		.gradient-options {
			label {
				display: block;
			}
		}

		.color-preview {
			grid-area: preview;
			justify-self: end;
			width: 100%;
			max-width: 200px;
			height: 100px;
			border: 2px solid #ddd;
			border-radius: 8px;
			margin-top: 15px;
			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
			background-size: cover !important;
			background-position: center !important;
		}
	}
}




