@font-face {
	font-family: 'Open Sans';
	font-style: 'normal';
	font-weight: 400;
	src: url(/font/Open Sans.woff2) format('woff2');
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@keyframes fadeleftright {
	0% {
		left: -100%;
	}
	100% {
		left: 0;
	}
}
@keyframes colorize85 {
	0%,
	85% {
		filter: grayscale(1);
	}
	100% {
		filter: grayscale(0);
	}
}
@keyframes wiggle {
	0% {
		transform: rotate(-1deg);
		animation-timing-function: ease-in;
	}

	50% {
		transform: rotate(1.5deg);
		animation-timing-function: ease-out;
	}
}
@keyframes deleting {
	0% {
		opacity: 50%;
	}
	99% {
		opacity: 0%;
	}
	100% {
		display: none;
	}
}
@keyframes marquee {
	0% {
		transform: translateX(20%);
	}
	100% {
		transform: translateX(-115%);
	}
}
@keyframes widthToZero {
	0% {
		width: 100%;
	}
	100% {
		width: 0;
	}
}
.deleting {
	animation-name: deleting;
	animation-fill-mode: forwards;
	animation-duration: 10s;
}
.longclicked {
	animation-name: wiggle;
	animation-duration: .25s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}
.marquee {
	width: 100%;
	animation-name: marquee;
	animation-duration: 10s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	text-wrap: nowrap!important;
}
.progress {
	animation-name: widthToZero;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

#loading {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: clip;
}

#loading::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: 20vw;
	height: 100%;
	background-image: url(/img/favicon.svg);
	background-position: center;
	background-repeat: no-repeat;
	animation-name: colorize85;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
#loading::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	width: 200%;
	bottom: 0;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
	background-image: linear-gradient(90deg, rgba(255,255,255,0),  rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,1));
	animation-name: fadeleftright;
}
.umlaut-logo {
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url(/img/umlaut-full.svg);
}
.hidden,
.submithook {
	display: none!important;
}
.rtl {
	direction: rtl;
}
body {
	background-color: #f6f8fc;
	font-family:Open Sans,sans-serif;
	margin: 0;
	display: flex;
	flex-direction: row;
	min-height: 100vh; /* <!DOCTYPE html> breaks this..? */
}
#sidebar-box {
	flex: 0;
	transition-property: width;
	transition-delay: 0s;
	transition-duration: 1s;
	transition-timing-function: ease-out;
	width: 48px;
	z-index: 2;
}
#sidebar-box:has(#sidebar.expanded) {
	width: 100%;
}
#sidebar {
	background-color: #343e48;
	color: white;
	white-space: nowrap;
	min-height: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
#sidebar .spacer {
	flex: 1;
}
#sidebar .spacer.border-top {
	border-top: 1px solid white;
}
#sidebar .spacer.border-bottom {
	border-bottom: 1px solid white;
}
.sidebar-entry {
	flex: 0;
	display: flex;
	min-height: 4em;
	cursor: pointer;
	user-select: none;
    text-decoration: none;
	color: inherit;
}
.sidebar-entry.active {
	background-color: #00a84f66;
}
.sidebar-entry > * {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.sidebar-entry .icon {
	width: 30px;
	height: 30px;
	min-width: 30px;
	font-size: 30px;
	margin: auto 8px auto 8px;
	text-align: center;
}
.sidebar-entry .label {
	line-height: 48px;
	margin-left: 5px;
	margin-right: 20px;
}
#root {
	flex: 1;
}
.topbar {
	background-color: white;
	display: flex;
	height: 4em;
	border-bottom: 1px solid rgba(0,0,0,.075);
	justify-content: space-between;
	overflow-x: clip;
}
body:has(#sidebar-box #sidebar.expanded) .topbar {
	position: relative;
	max-width: 100%;
}
.topbar .side-box {
	width: 4em;
	flex: 0;
	overflow: visible;
	z-index: 3;
	height: 100%;
}
.topbar .logo {
	min-width: 10em;
	margin-right: 1em;
	margin-left: 1em;
	height: 100%;
}
.topbar > .title {
	flex: 0;
    min-width: fit-content;
    background-color: inherit;
	text-align: center;
	line-height: 4em;
	overflow: clip;
	z-index: 1;
	user-select: none;
}
.user-badge {
	display: flex;
	height: 100%;
	user-select: none;
}
.user-badge.masquerading .label {
	font-style: italic;
	color: red;
}
.user-badge.masquerading .favicon {
	outline: .2em solid red;
    box-sizing: border-box;
}
.user-badge > * {
	height: 100%;
}
.user-badge .label {
	color: #757e93;
}
.user-badge .label,
.user-badge .favicon {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.user-badge .favicon {
	transform: scale(0.6);
	border-radius: 50%;
	font-size: 1.5em;
	cursor: default;;
	position: relative;
}
.user-badge.masquerading.menu:after {
	color: red;
}
.user-badge.menu:has(.menu-container):after {
	content: "⌃";
	padding-top: 7px;
	padding-bottom: 0px;
}
.user-badge.menu:after {
	content: "⌄";
	padding-top: 0px;
	padding-bottom: 7px;
	padding-right: 10px;
	width: 5px;
	display: flex;
	align-items: center;
}
.user-badge.menu,
.user-badge.menu .favicon {
	cursor: pointer;
}
.user-badge .menu-wrapper {
	width: 0px;
	margin-top: 100%;
    z-index: 2;
}
.user-badge .menu-container {
	display: flex;
	flex-direction: column;
	min-width: fit-content;
	text-align: left;
	text-wrap: nowrap;
    z-index: 2;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 0px 0 rgba(0, 0, 0, 0.12);
	padding: .5em;
	background-color: white;
}
.user-badge .menu-container > * {
	background-color: inherit;
	line-height: 3em;
	font-size: .9em;
	padding: 0 3em 0 1em;
	border-top: none;
	border-right: none;
	display: flex;
	flex-direction: row-reverse;
}
.user-badge .menu-container img {
	height: 1em;
	width: 1em;
	padding: 1em 1em 1em 0;
}
.user-badge .menu-container > *:hover {
	color: white;
	background-color: #00a84f;
}
.user-badge .menu-container > *:hover img {
	filter: invert(1);
}
.menu-shroud {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	cursor: default;
}

.checktree-box ul {
	list-style-type: none;
}
.checktree-children {
	margin-left: 1em;
	padding-left: 1em;
	border-left: 1px solid #bbb;
}
.checktree-row .checktree-row:before {
	content: "—";
	margin-left: -1.1em;
	color: #bbb;
}
.checktree-row input[type="checkbox"] {
	cursor: pointer;
}
.checktree-row input[type="checkbox"]:after {
	padding-left: 150%;
	content: attr(data-label);
}
.checktree-row input[type="checkbox"]:checked {
	font-weight: bold;
}

.clickable,
.longclickable {
	cursor: pointer;
}

.datagroup {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8em, 16em));
	padding: 1em;
	flex: 1;
	justify-content: center;
}
.datagroup > * {
	margin-left: 1em;
	margin-bottom: 1em;
}
.datagroup.firstsummary > *:first-child {
	grid-row-start: 1000 span;
	height: min-content;
}
.tile {
/* 	overflow: clip; */
	outline: 1px solid #717a90;
	border: 5px solid white; /* needed for marquee clipping offset */
	background-color: white;
	position: relative;
	display: grid;
	padding: 1.5em;
	padding-right: 2em;
	border-radius: 4px;
	white-space: nowrap;
	grid-template-columns: 5em auto;
	grid-template:
		'graphic title';
}

.tile:has(.description) {
	grid-template:
		'graphic title'
		'graphic description';
}
.tile.clickable:hover {
	filter: drop-shadow(2px 4px 6px black);
}
.tile.longclickable:hover {
	filter: drop-shadow(2px 4px 6px #005226);
}
.tile.clickable.longclickable:hover {
	filter: drop-shadow(2px 4px 6px #00a84f);
}
.tile.longclickable.delete-only:hover {
	filter: drop-shadow(2px 4px 6px red);
}
.tile.clickable.longclickable.delete-only:hover {
	filter: drop-shadow(2px 4px 6px sandybrown);
}

.tile[disabled] {
	pointer-events: none;
	color: #888;
	filter: opacity(0.75);
	border: 1px solid #cfcfcf;
}
.tile > .badge {
	border-radius: 50%;
	border-width: .2em;
	border-style: solid;
	width: 2em;
	height: 2em;
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%);
	text-align: center;
	margin: auto;
	line-height: 2em;
	font-weight: bold;
}
.tile > .badge.error {
	border-color: firebrick;
	background-color: orangered;
	color: white;
}
.tile > .badge.info {
	border-color: blue;
	background-color: dodgerblue;
	color: white;
}
.tile > .badge.success {
	border-color: green;
	background-color: limegreen;
	color: white;
}
.text-wrapper {
	overflow: clip;
	min-width: 0;
	max-width: 100%;
	margin: auto;
}
.text-wrapper:has(.title) {
	grid-area: title;
}
.text-wrapper:has(.description) {
	grid-area: description;
}
.text-wrapper > * {
    width: fit-content;
}
.tile > .graphic {
	z-index: 2;
	min-width: 4em;
	grid-area: graphic;
	margin-right: 1em;
	width: 4em;
	height: 4em;
}
.tile > .graphic > * {
	width: 100%;
	height: 100%;
}
.tile .title {
	color: black;
	grid-area: title;
	font-weight: bold;
	font-size: 1em;
}
.tile .description {
	margin-top: 1em;
	color: #717a90;
	grid-area: description;
	font-size: .9em;
	white-space: break-spaces;
	container-name: tile-description;
}
.graphic.image {
	width: auto;
    height: 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
.graphic.image:empty {
	background-size: contain;
}
.loading {
	filter: blur(5px);
}
.flexrow {
	display: flex;
	width: 100%;
	max-width: 100vw;
	flex-wrap: wrap;
}
.flexrow > *:first-child {
	margin-right: 0;
}
.flexrow > * {
	flex: 1;
	background-color: white;
	margin: 1em;
}
@container tile-description {
	* {
		font-size: 1em;
	}
}
/* hide root when modal open */
#root:has(+ #modals:not(:empty)) {
	overflow: hidden;
	max-height: 100vh;
	max-width: 100vw;
}
#modals:not(:empty) {
	display: flex;
	justify-content: center;
	flex-direction: column;
	background-color: rgba(0,0,0,0.6);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	backdrop-filter: blur(10px);
	overflow: hidden;
	z-index: 3;
}
#modals > .modal {
    align-self: center;
	width: 60vw;
	overflow: auto;
	position: relative;
	background-color: white;
	display: flex;
	border-radius: 5px;
	flex-direction: column;
	filter: drop-shadow(2px 4px 6px black);
}
#modals form {
	overflow: auto;
}
#modals > .modal.fullsize {
	height: 96vh;
	width: 96vw;
}
.modal .header {
	text-align: center;
	line-height: 2em;
	min-height: 2em;
	font-size: 1.5em;
	border-bottom: 1px solid #eee;
	border-radius: inherit;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	font-weight: bold;
	pointer-events: none;
	user-select: none;
	background-color: #f6f8fc;
	white-space: pre;
	text-overflow: ellipsis;
	overflow: clip;
	padding-right: 1em
}
.modal .footer {
	line-height: 2em;
	font-size: 1.5em;
	border-radius: inherit;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: 1px solid #eee;
	display: flex;
}
.modal:has(.submission-error:not(:empty)) {
	outline: 2px solid red;
}
.modal:has(.submission-error:not(:empty)) .header {
	background-color: red;
	color: white;
	border-bottom-color: red;
}
.modal .submission-error {
	min-height: 3em;
	text-align: center;
	border: 1px solid red;
	background-color: mistyrose;
	color: black;
	border-radius: 2px;
	border-right: 0;
	border-left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	user-select: none;
	cursor: pointer;
}
.modal .submission-error:empty {
	height: 0em;
	min-height: unset;
	opacity: 0;
	border: none!important;
}
.modal .footer > .spacer {
	color: rgba(0,0,0,0);
	flex: 1;
}
.modal .footer > .spacer::before {
	content: "|\00a0\00a0";
}
.modal form {
	flex: 1;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.modal .footer button.danger {
	background-color: crimson;
}
.modal .footer button.info {
	background-color: blue;
}
.modal .footer button {
	margin: .5em;
	border: 1px solid #eee;
	border-radius: 5px;
	background-color: #00a84f;
	color: white;
	cursor: pointer;
}
.modal .footer button:hover {
	filter: brightness(1.2);
}
.modal:not(.undismissable) .header:after {
	content: "×";
	position: absolute;
	right: 0;
	padding-right: 10px;
	pointer-events: all;
}
.modal:not(.undismissable) .header:hover::after {
	cursor: pointer;
}

.modal .body {
	padding: 4em 2em 1em 2em; /* 1em + 3em for the submission-error */
	flex: 2;
}
.modal:has(.submission-error:not(:empty)) .body {
	padding: 1em 2em 1em 2em;
}
.modal .body .input-row:not(.nogrid) {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-areas:
		'label input'
		'_     error';
	line-height: 3em;
	margin-top: 1em;
}

.modal .body .input-row.nolabel label {
	display: none;
}
.modal .body .input-row > *:has(.ace_editor) {
	width: 100%;
	height: 45em;
}
.modal .body .input-row .ace_editor {
	width: 100%;
	height: 100%;
	margin-top: 0;
	margin-bottom: 0;
}
.modal .body .input-row label {
	grid-area: label;
	font-weight: bold;
	line-height: 2em;
	margin: auto 0 auto 0;
}
.modal .body .input-row .error-text {
	grid-area: error;
}
.modal .body .input-row > input,
.modal .body .input-row > select,
.modal .body .input-row > .multiselect-container select {
	grid-area: input;
	line-height: 2em;
	max-height: 2em;
}
.modal .body .input-row > select,
.modal .body .input-row .multiselect-container > select {
	min-height: 2.5em;
	max-height: 2.5em;
	width: 100%;
}
.modal .body .input-row > input.error {
	background-color: mistyrose;
}
.modal .body .input-row > .error-text {
	display: block;
	font-size: .7em;
	color: red;
	line-height: 1.4em;
	min-height: 1.4em;
}
.multiselect-tag-box {
	display: flex;
	flex-wrap: wrap;
}
.multiselect-tag {
	white-space: nowrap;
	border-radius: 0.75em;
	font-size: .75em;
	padding: 0 0.5em 0 0.5em;
	margin-top: 0.75em;
	margin-right: 0.5em;
	background-color: black;
	color: white;
	user-select: none;
	line-height: 2.5em;
}
.multiselect-tag [data-action="remove-tag"] {
	cursor: pointer;
	margin-left: .25em;
	margin-right: .25em;
	font-size: 1.5em;
	vertical-align: bottom;
}
button[disabled],
button.disabled {
	filter: grayscale(1);
	border: none;
	outline: none;
	pointer-events: none;
	user-select: none;
}
.modal.loading {
	filter: blur(5px);
}
/* custom inputs */
.radio-group {
	display: flex;
	line-height: 2em;
}
.radio-input-wrapper {
	flex: 1;
	position: relative;
	border: 1px solid #ddd;
	border-radius: 3px;
}
.radio-input-wrapper:not(:first-child) {
	border-left: none;
}
.radio-input-wrapper:after {
	content: attr(data-label);
	text-align: center;
	display: inline-block;
	width: 100%;
}
.radio-input-wrapper input[type="radio"] {
	width: 100%;
	appearance: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
}
.radio-input-wrapper:has(input[type="radio"]:not(:checked)) {
	color: #222;
}
.radio-input-wrapper:has(input[type="radio"]:checked) {
	background-color: var(--data-bgcolor-checked, #fbfcfe);
	color: var(--data-fgcolor-checked, black);
	border: 1px solid #222;
	text-shadow:0px 0px 1px var(--data-fgcolor-checked, black); /* bold-like, but does not change width */
}
.icon-picker {
	min-width: 0;
/* 	overflow: clip; */
	max-width:100%;
	display: flex;
	flex-direction: column;
	--icon-size: 6em;
}
.icon-picker .color-row {
	display: none!important;
}
.icon-picker .fg-color {
	grid-area: fgColor;
}
.icon-picker .icon-box {
	display: flex;
}
.icon-picker .bg-color {
	grid-area: bgColor;
}
.icon-picker .icon-box .unfocused {
	opacity: 0.2;
}
.icon-picker .icon-box {
	grid-area: iconBox;
	overflow-x: scroll;
	-ms-overflow-style: none;  /* IE and Edge */
	user-select: none;
	scroll-snap-type: x mandatory;
	padding: 2px 50% 2px 50%;
}
.icon-picker .icon-box::-webkit-scrollbar {
	display: none;
}
.icon-picker .icon-box > * {
	scroll-snap-align: center;
	width: var(--icon-size);
	height: var(--icon-size);
	aspect-ratio: 1/1;
}
.icon-picker .icon-box > *:not(.upload-image) {
	transform: scale(0.8);
}
.icon-picker .color-row {
	display: flex;
}
.icon-picker .color-tile {
	width: 2em;
	height: 2em;
	border: 5px solid white;
}
.icon-picker .color-tile.selected {
	border: 5px solid black;
}
.icon-picker .upload-image {
	margin: auto;
	background-color: inherit;
	border-radius: 12px;
}
.icon-picker .upload-image:hover {
	background-color: #00a84f;
	color: white;
	cursor: pointer;
}
/* tabs */
.tab-nav {
	display: flex;
}
.tab-nav > .tab {
	flex: 1;
	text-align: center;
	cursor: pointer;
	user-select: none;
	border: 1px solid #eee;
	line-height: 2em;
	background-color: #f6f8fc;
}
.tab.selected {
	font-weight: bold;
	background-color: inherit;
	border-bottom: none;
}
/* messages */
#messages {
	position: absolute;
	bottom: 16px;
	right: 16px;
	left: 64px;
	z-index: 3;
}
.message {
	display: flex;
	flex-direction: column;
/* 	min-width: 25vw; */
	border-width: 1px;
	border-style: solid;
	margin-top: 2vw;
}
.message.error {
	border-color: red;
}
.message.error .title {
	background-color: orangered;
}
.message.success {
	border-color: green;
}
.message.success .title {
	background-color: mediumseagreen;
}
.message.info {
	border-color: blue;
}
.message.info .title {
	background-color: dodgerblue;
}
.message .title {
	font-weight: bold;
	border-radius: inherit;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: inherit;
	color: white;
	font-size: 1em;
	line-height: 2em;
	display: flex;
	justify-content: center;
	white-space: nowrap;
	overflow: clip;
	position: relative;
	width: 100%;
	user-select: none;
}
.message .title::after {
	content: "×";
	width: 0;
	position: absolute;
	right: 0;
	padding-right: 15px;
	cursor: pointer;
	background-color: inherit;
}
.message .body {
	text-align: center;
	padding: 1em;
	flex: 1;
	background-color: white;
	white-space-collapse: preserve-breaks;
}
.message .progress {
	height: 0px;
	width: 100%;
	border-width: 1px;
	border-style: solid;
	border-color: inherit;
}

/* mobile */
@media only screen and (max-width: 668px) {
	.topbar .logo {
		background-image: url(/img/umlaut-min.svg);
		min-width: 3em;
	}
	.topbar .user-badge .label {
		display: none;
	}
	#modals > .modal {
		width: 98vw;
		max-height: 98vh;
	}
	.modal .body .input-row label {
		display: block;
	}
	.modal .body .input-row:not(.nogrid) {
		grid-template-columns: 1fr;
		grid-template-areas:
			'label'
			'input'
			'error';
	}
}
