body {
	margin: 0;
	padding: 1em;
}
body.panel, body.slot-panel {
	padding: 0;
	overflow: hidden;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
}
.panel-wrapper {
	transform-origin: 0 0;
	transform: none;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	overflow: auto;
	margin: 0;
	padding: 0;
}
.slot-panel .panel-wrapper {
	padding: 0.5em;
}
.slot-panel .panel-wrapper.no-margin {
	padding: 0;
}

@media print {
	html, body {
		height: initial;
	}
	body.panel, body.slot-panel, .panel-wrapper {
		height: initial;
	}
}

header.panel-header {
	padding: 1em;
	padding-bottom: 0;
	margin-bottom: 1em;
}
header.panel-header .logo-box {
	float: left;
}
header.panel-header .ui.header {
	text-align: center;
	margin-top: 3px;
	margin-bottom: 0;
}
header.panel-header .ui.header.mini { font-size: 1.4rem; }
header.panel-header .ui.header.tiny { font-size: 1.6rem; }
header.panel-header .ui.header.small { font-size: 1.8rem; }
header.panel-header .ui.header.medium { font-size: 2.1rem; }
header.panel-header .ui.header.large { font-size: 2.5rem; }
header.panel-header .ui.header.huge { font-size: 3.1rem; }
header.panel-header .ui.header.massive { font-size: 3.8rem; }
header.panel-header .ui.menu {
	float: right;
	margin: 0;
}

.panel-grid header.ui.grid {
	flex-basis: 0;
}

.panel-grid {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	min-width: 0;
}

.panel-document {
	max-width: 100%;
	/* width: 970px; */
	margin-left: auto;
	margin-right: auto;
	height: max-content;
}

.panel-wrapper,
.slot-content-wrapper,
iframe.isolated-slot-content,
pre[class*='language-'] {
	scrollbar-width: thin;
}
.panel-wrapper::-webkit-scrollbar,
.slot-content-wrapper::-webkit-scrollbar,
iframe.isolated-slot-content::-webkit-scrollbar,
pre[class*='language-']::-webkit-scrollbar {
	width: 0.6em;
	height: 0.6em;
}

pre, pre[class*="language-"] {
	margin: 0;
	padding: 0;
	background-color: inherit;
}

blockquote {
	border-left: 0.5em solid #DDD;
	padding: 0.5em 1.25em;
	margin-left: 0;
}

.ui.header {
	margin-top: 0;
}

header.home-header {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: flex-start;
	align-content: flex-start;
	justify-content: flex-end;
}
.large-header {
	margin-bottom: 2em;
}
.large-header .logo-box {
	height: 6em;
	flex-grow: 1;
}
.large-header .logo-box .fitting-image {
	max-height: 100%;
	object-fit: contain;
	object-position: left;
}

#logout-button, .logout-button {
	margin-bottom: 0.5em;
}

#panel-logo {
	height: 42px;
	display: block;
}
.logo-box.mini #panel-logo { height: 28px; }
.logo-box.tiny #panel-logo { height: 32px; }
.logo-box.small #panel-logo { height: 36px; }
.logo-box.medium #panel-logo { height: 42px; }
.logo-box.large #panel-logo { height: 50px; }
.logo-box.huge #panel-logo { height: 60px; }
.logo-box.massive #panel-logo { height: 74px; }

.fitting-image {
	max-width: 95%;
	max-height: auto;
}

#panel {
	min-width: 0;
	min-height: 0;
	flex-grow: 1;
	padding: 0 1em 1em;
	padding: 0;
}
#panel.without-header .grid-layout {
	padding-top: 1em;
}
#panel.no-margin {
	padding: 0;
}

.layout-grid {
	transform-origin: 0 0;
	transform: none;
	box-sizing: border-box;
	height: 100%;
	width: 100%;
	display: grid;
	padding: 0 1em 1em;
	grid-gap: 0.75em;
	min-height: 0;
	min-width: 0;
}
#panel.without-header .layout-grid {
	padding-top: 1em;
}
.layout-grid.no-margin,
#panel.without-header .layout-grid.no-margin {
	padding: 0;
}
.layout-grid.no-gap {
	grid-gap: 0;
}

.layout-document {
	transform-origin: 0 0;
	transform: none;
	display: block;
	padding: 0 1em 1em;
}
.layout-document .slot,
.layout-document .slot.ui.segment {
	margin-bottom: 0.75em;
}
.layout-document .slot:last-child,
.layout-document .slot.ui.segment:last-child {
	margin-bottom: 0;
}
#panel.without-header .layout-document {
	padding-top: 1em;
}
.layout-document.no-margin,
#panel.without-header .layout-document.no-margin {
	padding: 0;
}
.layout-document.no-gap .slot,
.layout-document.no-gap .slot.ui.segment {
	margin: 0;
}

.slot,
.slot.ui.segment {
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: relative;
}
.layout-grid .slot,
.layout-grid .slot.ui.segment {
	display: flex;
	flex-direction: column;
}
.slot.without-border,
.slot.ui.segment.without-border {
	border: none;
	background: transparent;
	box-shadow: none;
}

.slot.maximized {
	grid-column: 1 / -1 !important;
	grid-row: 1 / -1 !important;
}

@media print {
	.slot-toolbar.ui.menu > .item {
		display: none;
	}
	.slot-toolbar.ui.menu .slot-toolbar-buttons.menu {
		display: none;
	}
	.slot-toolbar.ui.menu > .item.txt-title {
		display: inline-block;
	}
	.layout-document {
		display: block;
	}
	.layout-document .slot,
	.layout-document .slot.ui.segment {
		display: block;
		page-break-inside: avoid;
		page-break-after: auto;
	}
}

@media only screen and (max-width: 640px) {
	.panel-grid {
		height: inherit;
		min-height: 100vh;
		min-height: 100dvh;
	}
	.layout-grid {
		height: inherit;
		min-height: 100% !important;
		width: 100vw;
		display: block;
	}
	.layout-grid .slot,
	.layout-grid .slot.ui.segment {
		margin-bottom: 0.75em;
		max-height: 100vh;
		max-height: 100dvh;
	}
	.layout.no-gap .slot,
	.layout.no-gap .slot.ui.segment,
	.layout.no-margin .slot:last-child,
	.layout.no-margin .slot.ui.segment:last-child {
		margin-bottom: 0;
	}
	.slot.maximized,
	.slot.ui.segment.maximized {
		height: 100%;
	}
}

.slot-toolbar.ui.top {
	z-index: 2;
}
.slot.with-border .slot-toolbar.ui.menu {
	border-top: none;
}
.slot.without-border .slot-toolbar.ui.menu {
	margin: 0;
}

.slot-toolbar.ui.menu .item.txt-title {
	flex-grow: 1;
	flex-shrink: 1;
	justify-content: center;
	white-space: nowrap;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}
.slot-toolbar .txt-title:before {
	display: none;
}
.slot-toolbar .collapsed-buttons a {
	color: inherit;
}
.slot-toolbar.ui.menu .collapsed-buttons.ui.dropdown .menu > .item.buttons {
	text-align: center;
}

.slot-background {
	/* position: absolute; */
	min-width: 0;
	min-height: 0;
	flex-grow: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	justify-content: center;
	align-content: center;
	display: none;
}
.slot.without-border .slot-background {
	background-color: transparent;
}

.slot-id {
	display: none;
	color: #E0E0E0;
	font-weight: 800;
	font-size: calc(min(5vh, 5vw));
}
.layout-document .slot-id {
	font-size: 1.2em;
}

.slot.empty .slot-content-box {
	display: none;
}

.slot.empty .slot-background {
	display: grid;
}

.slot.empty .slot-background .slot-id {
	display: block;
}

.slot-content-box {
	flex-grow: 1;
	z-index: 1;
	padding: 0;
	overflow: hidden;
}
.slot-content-wrapper {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0.75em;
	overflow: auto;
}
.slot.without-border.without-toolbar .slot-content-wrapper {
	padding: 0;
}
.slot.without-border.with-toolbar .slot-content-wrapper {
	padding: 0.75em 0 0 0;
}
.slot.content-scale.fill .slot-content-wrapper,
.slot.content-scale.cover .slot-content-wrapper
{
	padding: 0;
}

iframe.isolated-slot-content {
	width: 100%;
	height: 100%;
	border: none;
	transform-origin: 0 0;
	transform: none;
}

.slot-content {
	border: none;
	min-width: 0;
	min-height: 0;
	max-width: 100%;
	display: block;
	transform-origin: top left;
	transform: none;
	transition:
		transform 0.5s
	;
}
.slot-content > audio {
	width: 100%;
}
.slot-content > img,
.slot-content > svg,
.slot-content > video
{
	display: block;
}
.slot.content-scale .slot-content {
	width: 100%;
	overflow-x: hidden;
	height: auto;
}
.layout-grid .slot.content-scale .slot-content {
	height: 100%;
	overflow-y: hidden;
}
.slot.content-scale .slot-content > img,
.slot.content-scale .slot-content > video
{
	height: auto;
	width: 100%;
	display: block;
	margin: 0 auto;
}
.layout-document .slot.content-scale.scale-down .slot-content > img,
.layout-document .slot.content-scale.scale-down .slot-content > video
{
	width: auto;
	max-width: 100%;
}
.layout-document .slot.content-scale.contain .slot-content > img,
.layout-document .slot.content-scale.contain .slot-content > video,
.layout-document .slot.content-scale.fill .slot-content > img,
.layout-document .slot.content-scale.fill .slot-content > video,
.layout-document .slot.content-scale.cover .slot-content > img,
.layout-document .slot.content-scale.cover .slot-content > video
{
	width: 100%;
}
.layout-grid .slot.content-scale .slot-content > img,
.layout-grid .slot.content-scale .slot-content > video
{
	height: 100%;
	margin: 0;
}
.layout-grid .slot.content-scale.scale-down .slot-content > img,
.layout-grid .slot.content-scale.scale-down .slot-content > video
{
	object-fit: scale-down;
}
.layout-grid .slot.content-scale.contain .slot-content > img,
.layout-grid .slot.content-scale.contain .slot-content > video
{
	object-fit: contain;
}
.layout-grid .slot.content-scale.fill .slot-content > img,
.layout-grid .slot.content-scale.fill .slot-content > video
{
	object-fit: fill;
}
.layout-grid .slot.content-scale.cover .slot-content > img,
.layout-grid .slot.content-scale.cover .slot-content > video
{
	object-fit: cover;
}

.slot.content-align .slot-content > img,
.slot.content-align .slot-content > video
{
	display: block;
}
.slot.content-align .slot-content-wrapper { display: flex; }
.slot.content-align.top.left .slot-content-wrapper { align-items: flex-start; justify-content: flex-start; }
.slot.content-align.top.center .slot-content-wrapper { align-items: flex-start; justify-content: center; }
.slot.content-align.top.right .slot-content-wrapper { align-items: flex-start; justify-content: flex-end; }
.slot.content-align.middle.left .slot-content-wrapper { align-items: center; justify-content: flex-start; }
.slot.content-align.middle.center .slot-content-wrapper { align-items: center; justify-content: center; }
.slot.content-align.middle.right .slot-content-wrapper { align-items: center; justify-content: flex-end; }
.slot.content-align.bottom.left .slot-content-wrapper { align-items: flex-end; justify-content: flex-start; }
.slot.content-align.bottom.center .slot-content-wrapper { align-items: flex-end; justify-content: center; }
.slot.content-align.bottom.right .slot-content-wrapper { align-items: flex-end; justify-content: flex-end; }

.slot.content-align .slot-content { width: auto; height: auto; }
.slot.content-align.top.left .slot-content { transform-origin: top left; }
.slot.content-align.top.center .slot-content { transform-origin: top center; }
.slot.content-align.top.right .slot-content { transform-origin: top right; }
.slot.content-align.middle.left .slot-content { transform-origin: center left; }
.slot.content-align.middle.center .slot-content { transform-origin: center center; }
.slot.content-align.middle.right .slot-content { transform-origin: center right; }
.slot.content-align.bottom.left .slot-content { transform-origin: bottom left; }
.slot.content-align.bottom.center .slot-content { transform-origin: bottom center; }
.slot.content-align.bottom.right .slot-content { transform-origin: bottom right; }

.slot.content-align.zoom .slot-content-wrapper { overflow: hidden; }

.text-line {
	font-family: Consolas, Courier, monospace;
	white-space: pre;
}
