

:root {
	--neutral-999: #000000;
}

.dark-screen {
	--neutral-999: #ffffff;
}

body.dark-screen .only-on-light, body:not(.dark-screen) .only-on-dark {
	display: none !important;
}

div.mainframe {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: horizontal;
	background-color: var(--bg-primary);
}

div.topmenu {
	width: 52px;
	flex-grow: 0;
	flex-shrink: 0;
	height: 100%;
	background-color: var(--alpha-bright-100);
	padding-top: 8px;
	text-align: center;
	z-index: 2;
	div.icon {
		width: 16px;
		height: 16px;
		padding: 4px;
	}
	img.company-logo {
		width: 32px;
		position: absolute;
		bottom: 90px;
		left: 10px;
		z-index: -1;
	}
	div {
		padding: 10px;
		height: 32px;
		width: 32px;
		div {
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 0px;
			height: 32px;
			width: 32px;
			border-radius: 4px;
			background-color: var(--bg-tag-secondary);
			font-size: 10px;
			span {
				color: var(--alpha-bright-100);
				font-weight: bold;
				display: inline-block;
				margin: auto;
			}
		}
	}
	> div:hover {
		background-color: var(--bg-neutral-faded);
	}
	> div.selected {
		border-left-width: 4px;
		border-left-style: solid;
		padding-left: 6px;
		background-color: var(--neutral-100);
	}
}

div.menu {
	z-index: 1;
	width: 202px;
	flex-grow: 0;
	flex-shrink: 0;
	height: 100%;
	padding-top: 4px;
	background-color: var(--neutral-100);
	overflow-y: auto;
 	transition: left 0.4s linear;	
 	> img {
		margin-left: auto;
		margin-right: auto; 
		height: 48px; 
		display: block;
 	}
	span.menutitle {
		margin-top: 16px;
		display: block;
		text-align: center;
		color: var(--neutral-600);
	}
}

div.menu.float-hide {
	position: absolute;
	left: -150px;
}

div.menu.float-show {
	position: absolute;
	left: 52px;
}

div.mainarea {
	width: 100%;
	flex-grow: 1;
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

div.topline {
	width: 100%;
	height: 54px;
	border-bottom: solid 1px var(--neutral-100);
	padding: 8px 48px 8px 48px;
	box-sizing: border-box;
	display: flex;
	gap: 40px;
	flex-direction: horizontal;
	> div {
		display: inline-block;
		flex: 1 1 auto;
	}
	
	> div:nth-child(2) {
		img {
			display: inline-block;
			max-height: 32px;
		}
		button {
			vertical-align: 7px;
		}
		flex: 0 0 auto;
	}
}


div.workarea {
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	overflow: hidden;
	box-sizing: border-box;
}

div.workarea > div {
	height: 100%;
	width: 100%;
}

input.modal[type=button] {
	min-width: 70px;
}
button.outlined.rounded, button.ghost.rounded {
	border-radius: 99999px;
}

input.outlined.rounded.with_label[type=button] {
	padding-left: 7px;
	padding-right: 7px;
	border-radius: 99999px;
}

div.menu2.menu2-face {
	height: 34px;
	width: auto;
	padding-left: 7px;
	padding-right: 7px;
	border-radius: 99999px;
}

div.menu2.menu2-face div.menu2starter {
	width: auto;
	height: 34px;
	border: solid 1px var(--alpha-bright-transparent);
	padding: 1px;
	margin: 0px;
	div.icon {
		margin-top: 8px;
	}
}

div.menu2.menu2-face div.menu2starter:hover {
	border: solid 1px var(--bg-neutral-faded-hover);
	background-color: var(--bg-outlined-hover);
	border-radius: 99999px;
}


div.menu2.menu2-face {
	height: 32px;
	padding: 1px;
	border-radius: 99999px;
	margin-left: 12px;
}
div.menu2.menu2-face div.menu2starter svg {
	width: 18px;
}

div.my-face {
	background-image: url(../img/my-face);
	width: 31px;
	height: 32px;
	padding: 0px;
	background-size: contain;
	display: inline-block;
	border-radius: 99999px;
	border: solid 1px var(--bg-neutral-faded-hover);
	vertical-align: top;
	line-height: 29px;
}

button.ghost.with_icon.dropdown {
	padding-left: 0px;
	padding-right: 0px;
	margin-left: 0px;
}


div.databox div.container.multivalue.scrollable {
	overflow-y: auto;
}

div.databox.gray div.container div.element_border {
	background-color: var(--bg-neutral-faded);
	color: var(--fg-disabled);
}

div.databox.gray div.element_border button.icon-button div.selecticon svg {
	fill: var(--fg-disabled);
}

div.databox.gray div.container div.element_border:has(input:focus) {
	border: solid 1px var(--fg-disabled);
}

div.menu2 {
	 display: inline-block;
	 float:right;
	 cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
	 text-align: center;
}


div.menu2modal {
	display:none;
}

div.menu2modal table {
	width: 100%;
}

div.menu2modal.open {
    position: fixed;
    z-index: +32768;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(173, 216, 230);
    background-color: rgb(173, 216, 230, 0.1);
    display: block;
}

div.menu2modal.open div.menu2dropdown {
	display: block;
	position: absolute;
	border: solid 1px var(--bg-neutral-faded);
	border-radius: 8px;
	z-index: +1;
	background: var(--alpha-bright-100);
	text-align: left;
	box-shadow: 0px 1px 3px #00000018, 0px 0px 1px 0px #0000000c;
	min-width: 200px;
	
}

div.menu2modal.open div.menu2dropdown table {
	border-collapse: collapse;
	border: none;
}

div.menu2modal.open div.menu2dropdown tr td {
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 8px;
	padding-bottom: 8px;
	cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
	border-bottom: solid 1px var(--bg-neutral-faded);
	color: var(--bg-neutral);
	stroke: var(--bg-neutral);
}

div.menu2modal.open div.menu2dropdown tr td:hover {
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 8px;
	padding-bottom: 8px;
	cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
	background: var(--bg-neutral-faded);
}

div.menu2modal.open div.menu2dropdown tr.critical td {
	color: var(--bg-critical);
}

div.menu2modal.open div.menu2dropdown tr td svg,
div.menu2modal.open div.menu2dropdown tr td div.icon,
div.menu2modal.open div.menu2dropdown tr td img {
	margin-right: 8px;
	height: 18px;
	width: 18px;
	object-fit: cover;
	vertical-align: bottom;
}

div.menu2modal.open div.menu2dropdown tr:hover {
}

div.menu2modal.open div.menu2dropdown tr img.menu2rev {
	 display: none;
}

div.menu2modal.open div.menu2dropdown tr:hover img.menu2rev {
	 display: inline-block;
}

div.menu2modal.open div.menu2dropdown tr:hover img.menu2std {
	 display: none;
}

div.menu2 div.menu2starter {
	display: inline-block;
	height: 16px;
	width: 16px;
	margin: 4px;
	padding: 4px;
	background-color: transparent;
	cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
	border: solid 1px var(--bg-neutral-faded-hover);
	border-radius: 8px;
	background-image: none;
	box-shadow: none;
	svg {
		padding: 4px;
		height: 14px;
		width: 14px;;
		stroke: var(--bg-outlined-hover);
	}
}
div.menu2 div.menu2starter:hover {
	background-color: var(--bg-outlined-hover);
}


/** Left menu **/
div.menu3 {
	margin-top: 16px;
	padding: 4px;
	table {
		font-size: var(--size-xs);
		width: 100%;
		border-collapse: collapse;
		tr {
			td.menu3item {
				div.icon {
					display: none;
				}	
			}
			td.menu3item.menu3menu {
				font-weight: var(--weight-semi-bold);
				div.icon {
					width: 14px;
					height: 14px;
					margin-right: 4px; 
					display: inline-block;
				}	
			}
			td.first {
				color: var(--fg-neutral-faded);
				padding: 6px 10px 6px 10px;
				line-height: 18px;
				a {
					text-decoration: none;
					color: var(--fg-neutral-faded);
				}	
				span.tip {
				    margin-left: 8px;
				    border-radius: 4px;
				    background-color: var(--bg-tag-secondary-faded);
				    padding-left: 6px;
				    padding-right: 6px;
				}
			}
			td.second {
				width: 14px;
				div.menu3arrow {
					width: 14px;
					height: 14px;
					background-color: var(--fg-neutral-faded);
					mask-image: url(../zkau/web/v4/img/chevron-forward.svg);
					mask-type: alpha;
					mask-size: contain;
				 	transition: transform 0.2s linear ;
				}
			}
		}
		tr:hover td {
			background-color: var(--neutral-200);
		}
		tr.open td.second div.menu3arrow {
			transform: rotate(90deg);
		}
	}
}


/** forms **/
.card,  .single-face-card {
  width: 100%;
  height: 100%;
  position: relative;
/*
  transition: transform 1s;
  transform-style: preserve-3d ;
  */
  opacity: 1;
  overflow-anchor: none;
}

.card__face, .single-face-card {
  transition: left 1s;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-color: var(--alpha-bright-100);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 48px 12px 48px;
  box-sizing: border-box;
  top: 0px;
}

.card__face--front {
  pointer-events: auto;
  left: 0%;
  height: 100%;
}

.card__face--back {
  pointer-events: auto;
  height: 100%;
  left: 100%;
/*  transform: rotateY( 180deg );*/
}

div.card__face--resizelist {
	display: flex;
	flex-direction: column;
	div:nth-child(2) {
		flex-grow: 1;
		flex-shrink: 1;
	}
}

.card.is-flipped {
/*  transform: rotateY(180deg);*/
	.card__face--front {
	  left: -100%;
	}
	
	.card__face--back {
	  left: 0%;
	}
}

.card.is-flipped .card__face--front, .card__face--back {
	pointer-events: none;
	visibility: hidden;
}
.card.is-flipped .card__face--back, .card__face--front {
	pointer-events: auto;
    overflow-anchor: auto;
	visibility: visible;
}

/** Breadcrumps **/
div.navigation-bar {
	span {
		margin-right: 8px;
	}
	span.link {
		color: var(--fg-neutral-faded);
		cursor: url('../cursor/hand.svg'), pointer;
	}
	span.link:hover {
		font-weight: var(--weight-bold);
	}
	margin-bottom: 18px;
	min-height: 24px;
	font-size: var(--size-sm);
	width: 100%;
	img.progress {
		display: inline-block;
		height: 25px;
		width: 25px;
		background-color: transparent;
		padding: 0;
		border: none;
		background-image: none;
		box-shadow: none;
		float: right;
	}
	
	div.menu2-starter, button.icon-button, span.pager {
		float: right;
	}
}

div.navigation-bar.dummy {
	text-align: right;
}

textarea {
	resize: vertical;
}

/*** Menus ***/
div.menuoption.withsuboptions {
	min-height: 278px;
	input {
/*		float: right; */
	}
}

div.menuoptioncontainer {
	display: inline-block;
	width: 318px;
	box-sizing: border-box;
	margin-right: 16px;
	margin-top: 16px;
	vertical-align: top; 
	border: none;
	padding: 1px;
	background-color: var(--input-border-hover);
   	clip-path: polygon(0 8px, 3px 3px, 8px 0, 
   		calc(100% - 8px) 0, calc(100% - 3px) 3px, 100% 8px, 
   		100% calc(100% - 38px), calc(100% - 3px) calc(100% - 33px), 
   		8px 100%, 3px calc(100% - 3px), 0 calc(100% - 8px));
	div.menuoption {
		width: 100%;
		box-sizing: border-box;
		margin: 0px;
		vertical-align: top; 
		border: none;
		border-radius: 0px;
		background-color: var(--alpha-bright-100);
   	clip-path: polygon(0 8px, 3px 3px, 8px 0, 
   		calc(100% - 8px) 0, calc(100% - 3px) 3px, 100% 8px, 
   		100% calc(100% - 38px), calc(100% - 3px) calc(100% - 33px), 
   		8px 100%, 3px calc(100% - 3px), 0 calc(100% - 8px));
	}
}

div.menuoption {
	display: inline-block;
	width: 318px;
	padding: 0px 16px 0px 16px;
	box-sizing: border-box;
	margin-right: 16px;
	margin-top: 16px;
	vertical-align: top; 
/*	border: solid 1px var(--input-border-hover); */
	border-radius: 6px;
	padding: 20px 16px 20px 16px;
	
	span.menuoption-title {
		display: inline-block;
		width: calc(100% - 40px);
		vertical-align: top;
		margin-top: 5px;
		margin-left: 8px;
	}
	div.imgcover {
		background-color: var(--bg-tag-secondary-faded);
		display: inline-block;
		width: 28px;
		height: 28px;
		padding: 2px;
		div.icon {
			background-color: var(--secondary-600);
			width: 28px;
			height: 28px;
		}
	}
	
	div.menuoption-tip-shadow {
		position: absolute;
		width: 278px;
		span.menuoption-tip {
		    margin-left: 8px;
		    border-radius: 4px;
		    background-color: var(--bg-tag-secondary-faded);
		    padding-left: 6px;
		    padding-right: 6px;
		    float: right;
		    display: inline-block;
		}
	}
	
	span.menuoption-description {
		font-size: var(--size-xs);
		color: var(--fg-neutral-faded);
	}	
	
	div.menuoption-suboptions {
		padding-top: 16px;
		color: var(--neutral-900);
		overflow: hidden;
		div.menusuboption-title {
			margin-bottom: 0px;
			padding: 4px 8px 8px 8px;
			
			span {
			    cursor: url('../zkau/web/v4/cursor/hand.svg'), auto;
				margin-left: 4px;
				vertical-align: middle;
			}
		}
	}
}

div.menuoption:hover div.menuoption-suboptions div.menusuboption-title:hover {
	background-color: var(--bg-tag-secondary-faded);
}

div.menuoption:hover:not(:has(div.menusuboption-title:hover))  {
	background-color: var(--bg-tag-secondary-faded);
}

div.options.options-tiny {
	div.menuoption {
		border: none;
		text-align: center;
		padding: 8px 8px 0px 8px;
		margin: 4px;
		width: 96px;
		img {
			width: 64px;
			height: 64px;
			border: solid 1px var(--input-border-hover);
		    border-radius: 4px;
			display: block;
			margin-left: auto;
			margin-right: auto;
		}
		span.menuoption-title {
			font-size: var(--size-xs);
			margin-left: 0px;
			margin-right: 0px;
		}
	}
}
/** Search box **/
.attribute-search-box-remove:hover {
	opacity: 1;
}

span.search-box {
	margin-bottom: 12px;
	display: inline-block;
	width: 100%;
	> ul {
		padding-inline-start: 0px;
		> li.attribute-search-box {
			background-color: var(--alpha-bright-100);
		    border: 1px solid var(--bg-neutral-faded-hover);
		    border-radius: 8px; 
		    border-image: none;
		    height: 25px;
		    padding: 2px 4px 2px 0px;
		    margin: 2px 4px 2px 4px;
		    vertical-align: middle;
		    color: var(--bg-neutral-faded-hover);
		    a.remove-filter {
		    	text-decoration: none;
		    	vertical-align: super;
				.attribute-search-box-remove {
				    margin-left: 8px;
					cursor: pointer;
					opacity: 0.8;
					background-color: var(--fg-neutral);
				}
		    }
			> button,input[type='button'] {
				background-color: transparent;
			    border: none;
			    border-image: none;
			    padding: 4px;
			    margin: 0px;
			    cursor: pointer;
			    background-image: none;
			    box-shadow: none;
				div.criteria-wrap {
					max-width: 400px;
				    white-space: nowrap;
				    text-overflow: ellipsis;
				    overflow: hidden;
				    span.fieldLabel {
					    color: var(--fg-neutral);
				    }
				    span.value {
					    color: var(--fg-primary);
					    border-left: solid 1px var(--fg-primary);
					    padding-left: 8px;
					    margin-left: 8px;
					}
					div.icon {
						color: var(--fg-neutral);
					}
				}
			}
		}
	}
	div.search-popup {
		position: absolute;
	    z-index: 5;
	    margin-top: 28px;
	    color: var(--neutral-900);
		div.wc-search-popup-none {
			position: relative; 
			top: 2em; 
			background-color:var(--alpha-bright-100);
			border: solid 1px var(--bg-neutral-faded);
			border-radius: 8px;
			z-index: +1;
			background: var(--alpha-bright-100);
			text-align: left;
			box-shadow: 0px 1px 3px #00000018, 0px 0px 1px 0px #0000000c;
			min-width: 200px;
		}
	}
	input.with_label[type=button] {
	    margin: 2px 4px 2px 4px;
	    padding: 6px 9px 6px 9px;
	    vertical-align: middle;
	}
	button.with_icon {
	    vertical-align: middle;
	}
}

div.search-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: lightblue;
    height: 100%;
    z-index: 3;
    opacity: 0.1;
}


span.search-box ul li {
	display: inline-block;
	margin-bottom: 5px
}

.searchbox-addcriteria {
	margin-bottom: 5px
}

.search-box textarea {
	width: 70%;
}

.search-box input.textsearch {
	padding-top: 9px;
	width: 70%
}


.search-box ul {
	display:inline;
}

div.frame {
	font-size: var(--size-sm);
	line-height: 22px;
	height: 100%;
}

div.button-container {
	text-align: right;
}

div.buttonbar {
	width: 100%;
	margin-bottom: 24px;
}

div.modal.search-popup > div.title {
	font-size: var(--size-xs);
    color: var(--bg-neutral); 	
    border-bottom: none;
}

div.modal.search-popup-none {
	border: none;
}

img.progress {
	width: 28px;
	height: 28px;
	vertical-align: bottom;
	margin-bottom: 8px;
}

div.workarea, div.workarea * {
    overflow-anchor: visible;
}

/** MenuPopup **/

div.menupopup {
	background: var(--alpha-bright-100);
	text-align: left;
	box-shadow: 0px 1px 3px #00000018, 0px 0px 1px 0px #0000000c;
	min-width: 200px;
	max-height: 50vh;
	overflow-y: auto;
    border: solid 1px var(--neutral-300);
    border-radius: 8px;
    background-color: var(--bg-primary);
   	table {
		min-width: 200px;
		border-collapse: collapse;
		border: none;
		tr.seld {
			background: inherit;
			border: none;
		}
		tr td.menu1 {
			display: none;
		}
		tr td {
			padding-left: 12px;
			padding-right: 12px;
			padding-top: 8px;
			padding-bottom: 8px;
			cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
			border-bottom: solid 1px var(--bg-neutral-faded);
			color: var(--bg-neutral);
			stroke: var(--bg-neutral);
			svg,img {
				margin-right: 8px;
				height: 18px;
				width: 18px;
				object-fit: cover;
				vertical-align: bottom;
			}
		}
		tr:hover td {
			cursor: url('../zkau/web/v4/cursor/pointer.svg'), auto;
			background: var(--bg-neutral-faded);
		}
	}
}


input.textbox, textarea.text {
    background-color: var(--alpha-bright-100);
    background-image: none;
    border: solid 1px var(--input-border-default);
    border-radius: 8px;
    padding: 8px 12px 8px 12px;
    outline: none;
}

input.textbox:focus, textarea.text:focus {
    border: solid 1px var(--input-border-active);
}

/*** Popup ***/
div.ctxpopup {
	border: solid 1px var(--neutral-300);
	border-radius: 8px;
	background-color:  var(--bg-primary);
}

div.datatable.noselect, div.datatable.noselect div.tbodysa, 
div.datatable.noselect div.tablebody {
	border: none;
}

div.datatable.noselect div.tbodydiv div.row div.cell.selector {
	padding-left: 15px;
    width: auto;
}

div.datatable.noselect div.tbodydiv div.row.selected div.cell {
    background-color: var(--bg-primary);
}

div.datatable.noselect div.tbodydiv div.row.selected:hover div.cell ,
div.datatable.noselect div.tbodydiv div.row.selected:hover {
	background-color: var(--bg-disabled-faded);
}

div.datatable.noselect divtfoot {
	margin-top: 0px;
}


div.green-bg {
	padding: 4px;
	background-color: var(--bg-tag-secondary-faded);
    width: 16px;
    height: 16px;
    div.icon {
		background-color: var(--secondary-600);
    }
}

/*** TABLES ***/
div.datatable .thead tr td.statusColumn {
	width: 80px;
	text-align: center;	
}

div.datatable .thead tr td.shortColumn {
	width: 160px;
	text-align: center;	
}

div.datatable div.cell.statusColumn {
	width: 80px;
	text-align: center;	
}

div.datatable div.cell.statusColumn img {
	vertical-align: middle;
	border-radius: 9999999px;
}
img.small-picture {
	max-height: 20px;
	max-width: 20px;
}

div.datatree .thead div.column.statusColumn {
	width: 80px;
	flex: none;
}

div.datatree .thead div.column.shortColumn {
	width: 160px;
	flex: none;
}

div.datatree div.tree-itemholder div.tree-cell button div.icon {
	margin-right: 0px;
}

img.icon {
	width: 16px;
	height: 16px;
}


div.collapser.open {
   	transform: rotate(90deg);		
}

/** Flex panes **/
div.tabpanel.flex-tabpanel {
	width: 100%;
	height: 100%;
}

div.card__face.card__face--front,
div.flex-tabpanel > div,
div.flex-table-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

div.card__face.card__face--front > div,
div.flex-tabpanel > div > div,
div.flex-table-container > div {
	flex: 0 0 auto;
}

div.card__face.card__face--front > div.datatable,
div.flex-table-container > div.datatable,
div.flex-tabpanel > div > div.datatable,
div.card__face.card__face--front > div.datatree,
div.flex-table-container > div.datatree {
	flex: 1 1 min-content;
}

div.flex-table-container > div[z\.type="zul.tab.Tabbox"] {
	flex: 1 1 min-content;
	display: flex;
	flex-direction: column;
	> div {
		flex: 0 0 auto;
	}
	> div.tabpanels {
		flex: 1 1 min-content;
		div.tabpanel {
			width: 100%;
			height: 100%;
			> div {
				width: 100%;
				height: 100%;
				> span {
					width: 100%;
					height: 100%;
					display: block;
				}
			}
		}
	}
}

div.teast {
	z-index: 10;
}

div.toast div.toastcontent {
	background-color: var(--secondary-50);
} 

div.toast div.toasticon div.icon {
	background-color: var(--secondary-600);
}

div.datatree div.tbody > div.tree-itemholder button {
	font-size: var(--size-xs);
	line-height: 16px;
	vertical-align: 3px;
	margin-top: -3px;
} 

div.datatree div.tbody > div.tree-itemholder button.small-button {
	line-height: 12px;
	vertical-align: 0px;
	margin-top: 0px;
} 

div.datatree div.tbody div.tree-itemholder button.autohide {
	visibility: hidden;
}

div.datatree div.tbody div.tree-itemholder:hover button.autohide {
	visibility: visible;
}

div.datatable.hideFirstCol div.tbodydiv table.tbody tr td:nth-child(2),
div.datatable.hideFirstCol .thead tr td:nth-child(2)  {
	display:none;
	width: 0px;
}

/*** FOLD ***/
div.fold div.foldheader img.foldicon {
	padding: 4px;
	width: 16px;
	cursor: pointer;	
	vertical-align: top;
}

div.fold div.foldbody {
	padding-left: 32px;
}

div.fold div.foldheader img.foldicon {
	vertical-align: middle;
	transition: transform 0.5s;
}

div.fold div.foldbody {
	visibility: collapse;
	opacity: 0;
	transition: visibility 0.5s, opacity 0.5s, heigth 0.5s, position 1s;
	height: 0px;
	position: absolute;
}

div.fold.unfold div.foldbody {
	visibility: visible;
	opacity: 1;
	height: auto;
	position: unset;
}

div.fold.unfold div.foldheader img.foldicon {
	transform: rotate(90deg);
}


/** Monitor **/
div.graphjs {
	display: inline-block;
}
/*** Columns ***/
div.datatable .thead tr td.statusColumn {
	width: 100px;
	text-align: center;
}

div.datatable .thead tr td.datetimeColumn {
	width: 160px;
	text-align: right;
}

div.datatable .thead tr td.dateColumn {
	width: 120px;
	text-align: right;
}


div.datatable {
	div.pct {
		background-color: var(--tertiary-200);
	}
	.thead tr td.statusColumn span {
		flex: 1 1 auto;
		text-align: center;
	}
	div.row.grayed {
		color: var(--neutral-500);
	}
	div.row.bold {
		font-weight: var(--weight-bold);
	}
	div.cell.yellow {
		background-color: #ffff40;
	}
	div.cell.red {
		background-color: #ff4040;
	}
	div.cell.green {
		background-color: #40ff40;
	}
	div.cell.critical {
		color: var(--bg-critical)
	}
}

/* GRID */
div.grid {
    display: flex;
    flex-direction: column;
    min-height: 70px;
    outline: none;
}

div.grid-head th {
    background-color: var(--bg-disabled-faded);
    color: var(--fg-neutral-faded);
    font-weight: var(--weight-medium);
    padding: 8px 12px;
    text-align: left;
    border-bottom: solid 1px var(--bg-neutral-faded-hover);
    font-size: 16px !important;
    border-color: var(--bg-neutral-faded-hover);
}

div.grid-head th:not(:last-child) {
    border-right: none;
}


/** Legacy grid **/

tr.odd td.gc, tr.odd {
	background-color: inherit;
}	

td.gc {
	vertical-align: top;
}




div.datatable.condensed {
	div.tbodydiv div.row div.cell {
		padding: 1px 1px 1px 8px;
		height: 20px;
		border-right-color: transparent;
		border-bottom-color: transparent;
		font-family: monospace;
		font-size: 12px;
	}
}

div.datatable.condensed:focus div.tbodysa div.tbodydiv div.row.keyboardSelected,
div.datatable.condensed:has(:focus) div.tbodysa div.tbodydiv div.row.keyboardSelected {
	div.cell {
		border-top: solid 1px var(--fg-primary);
		padding-top: 0px;
		border-bottom: solid 1px var(--fg-primary);
	}
	div.cell:nth-child(1) {
		border-left: solid 1px var(--fg-primary);
		padding-left: 7px;
		border-top-left-radius: 4px;
		border-bottom-left-radius: 4px;
	}
	div.cell:last-child {
		border-right: solid 1px var(--fg-primary);
		border-top-right-radius: 4px;
		border-bottom-right-radius: 4px;
	}
}

/**** UPLOAD WINDOW ****/
.inputfile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.inputfile + label {
	padding: 5px 9px 5px 9px;
	background-color: var(--fg-primary);
	border: none;
	border-radius: 8px;
	color: var(--bg-primary);
	margin: 4px;
	border: solid 1px transparent;
}

.inputfile + label:hover {
	background-color: var(--fg-primary-hover);
}

.inputfile + label:focus {
	box-shadow: 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px var(--fg-primary);
	outline: none;
}

div.uploader {
	width: 100%; 
	padding-bottom: 48px; 
	text-align: center; 
	padding-top: 48px;
	input {
		margin-left: 96px;
	}
}

div.uploader-addbutton {
	display: inline-block;
}

div.uploader-addbutton.outline {
	.inputfile + label {
		background-color: inherit;
		border: solid 1px var(--bg-neutral-faded-hover);
		color: var(--fg-neutral);
	}
	.inputfile + label:hover {
		background-color: var(--bg-outlined-hover);
	}
	.inputfile + label:focus {
		background-color: var(--bg-outlined-hover);
	}
}
/*** Attributes card **/
div.attributes-card {
	background-color: var(--neutral-50);
	border-radius: 12px;
	padding: 8px 8px 0px 8px;
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
	
	div.datatable, 
	div.datatable div.tablebody .thead, 
	div.datatable .thead,
	div.datatree .thead {
		background-color: var(--alpha-bright-100);
	}
}

div.attributes-card div.datatable,
div.datatable.attributes {
	background-color: var(--alpha-bright-100);
	div.tablebody {
		border-radius: 8px;
		.thead {
			border-radius: 8px;
		}
		div.tbodysa {
			border-radius: 8px;
			div.tbodydiv {
				
				div.cell {
					padding: 0px;
					input:not([type=checkbox]) {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 3px 12px 3px 12px;
						outline: none;
						box-sizing: border-box;
					}
					textarea {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 8px 12px 3px 12px;
						outline: none;
						overflow-anchor: none;
						resize: none;
						box-sizing: border-box;
					}
					select {
						border: none;
						background: inherit;
						outline: none;
						margin: 0px;
						vertical-align: middle;
						line-height: 26px;
						min-height: 26px;
						flex: max-content;
						width: 100%;
						height: 100%;
						color:var(--neutral-900);
						padding: -1px 0px 1px 0px;
						box-sizing: border-box;
					}
					select.arrows {
						text-align: center;
						font-size: var(--size-lg);
						font-weight: var(--weight-regular);
					}
					input[type=checkbox] {
						margin: 10px 12px 3px 12px;
						outline: none;
						flex: 0 0 auto;
					}
				}
				div.row:hover div.cell,
				div.row.selected div.cell {
					background-color: inherit;
				}
			}
		}
	}
}

div.datatable.attributes:focus div.tbodysa div.tbodydiv div.row.keyboardSelected,
div.datatable.attributes:has(:focus) div.tbodysa div.tbodydiv div.row.keyboardSelected {
	div.cell {
		padding-top: 0px;
	}
	div.cell:nth-child(1) {
		padding-left: 0px;
	}
	div.cell:last-child {
	}
}


div.datatable.trigger {
	background-color: var(--alpha-bright-100);
	div.tablebody {
		div.tbodysa {
			div.tbodydiv {
				div.cell {
					padding: 0px;
					input:not([type=checkbox]) {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 3px 12px 3px 12px;
						outline: none;
						box-sizing: border-box;
					}
					textarea {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 8px 12px 3px 12px;
						outline: none;
						overflow-anchor: none;
						resize: none;
						box-sizing: border-box;
					}
					select {
						border: none;
						background: inherit;
						outline: none;
						margin: 0px;
						vertical-align: middle;
						line-height: 26px;
						min-height: 26px;
						flex: max-content;
						width: 100%;
						color:var(--neutral-900);
						padding: -1px 0px 1px 0px;
						box-sizing: border-box;
					}
					select.arrows {
						text-align: center;
						font-size: var(--size-lg);
						font-weight: var(--weight-regular);
					}
					input[type=checkbox] {
						margin: 10px 12px 3px 12px;
						outline: none;
						flex: 0 0 auto;
					}
				}
				div.row:hover div.cell,
				div.row.selected div.cell {
					background-color: inherit;
				}
			}
		}
	}
}

div.datatree.method {
	background-color: var(--alpha-bright-100);
	div.tbodysa {
		div.tbody {
			div.tree-itemholder {
				div.tree-label{
					padding: 0px;
					input:not([type=checkbox]) {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 11px 12px 11px 12px;
						outline: none;
						box-sizing: border-box;
					}
					textarea {
						flex: 1 1 auto;
						width: 100%;
						height: 100%;
						border: none;
						padding: 8px 12px 3px 12px;
						outline: none;
						overflow-anchor: none;
						resize: none;
						box-sizing: border-box;
					}
					select {
						border: none;
						background: inherit;
						outline: none;
						margin: 0px;
						vertical-align: middle;
						line-height: 26px;
						min-height: 26px;
						flex: max-content;
						width: 100%;
						color:var(--neutral-900);
						padding: -1px 0px 1px 0px;
						box-sizing: border-box;
					}
					select.arrows {
						text-align: center;
						font-size: var(--size-lg);
						font-weight: var(--weight-regular);
					}
					input[type=checkbox] {
						margin: 10px 12px 3px 12px;
						outline: none;
						flex: 0 0 auto;
					}
				}
				div.tree-label.selected,
				div.tree-label:hover {
					background-color: inherit;
				}
			}
		}
	}
}

/*** Codemirror ***/
div.text {
	border: solid 1px var(--input-border-default);
	border-radius: 8px;
	background: inherit;
}

/*** Agent log ***/
div.datatree pre {
	margin: 0px;
}

div.databox[disabled=disabled].ghost div.container div.element_border {
	background-color: inherit;
}

div.databox[disabled=disabled].ghost.critical div.container div.element_border input {
	color: var(--fg-critical);
}

div.section {
	div.separator-with-buttons {
		display: flex; 
		width: 100%;
		flex-direction: row;
		div.databox.databox_separator {
			flex: 1 1 auto;
		}
		button {
	 		vertical-align: 4px;
	 		flex: 0 0 auto;
	 	}
	}	
}

div.section.collapsed {
	div.separator-with-buttons {
		button {
			display: none;
	 	}
	}	
}

/*** Codemirror ***/
div.CodeMirror {
	* {	font-family: monospace, "Courier new"; } 
	font-size: 12px; 
	div.CodeMirror-code {margin-left: 0px; }
	div.CodeMirror-linenumber {font-size: 14px} 
}
/** Search popup **/

div.main-search.ctxpopup {
	padding: 8px 12px 8px 12px;
	box-sizing: border-box;
	span.search-header {
		margin-top: 8px;
		margin-bottom: 4px;
		display: block;
		font-weight: var(--weight-bold);
	}
	div.search-option:hover,
	div.search-more:hover {
		background-color: var(--neutral-100);
	}
	div.search-more {
		text-align: right;
	}
}

/*** Accounts tree ***/
div.datatree {
	div.tree-label.dashed {
		div.tree-cell {
			text-decoration: line-through;
		}
	}
	div.tree-label.grayed {
		div.tree-cell {
			color: var(--neutral-400);
		}
	}
}



select.select {
	border: solid 1px var(--input-border-default);
    border-radius: 8px;
    padding: 8px 12px 8px 12px;
	background: inherit;
}

div.datatable {
	div.row.dashed div.cell {
			text-decoration: line-through;
	}
}
/*** MERGE USERS ***/

div.merge {
	width: 100%;
	div.databox {
		word-break: break-all;		
		min-height: 30px;
		background-color: transparent;
		div.element_border {
			background-color: transparent;
		}
	}
}
div.merge.reverse,
div.merge.reverse div.databox,
div.merge.reverse div.databox input ,
div.merge.reverse div.databox span.name,
div.merge.reverse div.databox select {
	background-color: var(--secondary-300);
}
div.merge.hidden {
	visibility: hidden;
}

/*** Lang fields ***/
div.databox.langfield {
	div.label {min-width: 100px; font-size: var(--size-xs); line-height: 18px;}
	div.container.element_border,
	div.container div.element_border {
		padding: 4px 8px 4px 8px;
	}
	div.container.element_border div.input,
	div.container div.element_border textarea {
		font-size: var(--size-xs); line-height: 18px;
	}

	margin-bottom: 0px;
}



button.small-button {
	padding: 4px;
}


	
div.datatable.noellipsis {
	div.cell {
	    text-overflow: clip;
	}
}

div.wizard-bar {
	margin-bottom: 16px;
}


/** Big checkboxes **/
span.big input[type="checkbox"] {
	width: 25px;
	height: 25px;
}
span.big input[type="checkbox"]::before {
	width: 20px; 
	height: 20px;
}

/** radio buttons **/
span.radio.inline {
	display: inline-block;
}


.onlypc, .onlymobile { display: none}
@media only screen and (max-width: 1023px) {
	.onlymobile { display: initial}	
}
@media only screen and (min-width: 1024px) {
	.onlypc { display: initial}	
}

div.databox.noborder div.container div.element_border, 
div.databox.noborder div.container.element_border {
	border: none;
	padding: 8px 0px 8px 0px;
}


span.fakelabel {
    font-size: var(--size-sm);
    font-weight: var(--weight-regular);
    line-height: 22px;
    display: block;
    margin-bottom: 6px;
    color: var(--neutral-600);
}

a.bookmark {
	display: block;
	color: var(--fg-neutral);
}

div.sticky {
	position: sticky;
	top: -24px;
	background-color: var(--alpha-bright-100);
	z-index: 1;	
}

div.datatree div.tree-itemholder div.tree-cell div.icon ,
div.datatree div.tree-itemholder div.tree-label div.icon {
    margin-right: 8px;
}

div.datatree div.tbodysa div.tbody div.tree-itemholder div.tree-label {
	padding: 1px;
	> div {
		margin-top: 0px;
	}
	> div.icon {
	    margin-top: 0px;
	}
	> div:nth-child(1) {
		margin-left: 0px;
	}
	> div.tree-label:nth-child(1) {
		margin-left: 24px;
	}
}


div.datatree:focus div.tbodysa div.tbody div.tree-itemholder.keyboardSelected div.tree-label,
div.datatree:has(:focus) div.tbodysa div.tbody div.tree-itemholder.keyboardSelected div.tree-label{
	padding: 0px;
	border: solid 1px var(--fg-primary);
	border-radius: 4px;
	> div {
		margin-top: 0px;
	}
	> div.icon {
	    margin-top: 0px;
	}
	> div:nth-child(1) {
		margin-left: 0px;
	}
	> div.tree-label:nth-child(1) {
		margin-left: 24px;
	}
}


div.datatree div.tbody div.tree-label div.tree-cell, div.datatree div.tbody div.tree-label.no-columns {
	line-height: 32px;
	height: 32px;
}

div.form-title {
	display: flex; width: 100%; flex-direction: row; margin-bottom: 20px; gap: 20px;
}

/* Mobile portrait */
@media only screen and (max-width: 800px) {
	div.menu.pinned {
		display: none;
	}
	
	div.topmenu > button {
		display: none;
	}
	div.card, div.card__face, div.frame {
		padding: 4px;
	}
	
	div.topline {
		padding: 4px;
	}
	div.menu.float-show {
		right: 0px;
		width: auto;
	}
}

/* Mobile landscape */
@media only screen and (max-height: 800px) {
	div.form-title {
		display: flex; width: 100%; flex-direction: row; margin-bottom: 5px; gap: 5px;
	}
	div.card, div.card__face, div.frame, div.topline {
		padding-top: 4px;
		padding-bottom: 4px;
	}
}



div.datatable.fastscroll div.tbodysa {
	scroll-behavior: auto;
}


div.lastexecution {
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: clip;
}