:root {
	--color-hover:rgb(255, 128, 0);
	--text-line-height: 22px;
}

@font-face {
    font-family: "NotoSans";
    src: url('/fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-style:normal;
}

html, body {
	font-family: "NotoSans";
	height:100%;
	min-height:100%;
	background-color:#444;
	font-size:17px;
	line-height:var(--text-line-height);
}

#debug {
	display:none;
	position:fixed;
	bottom:0;
	left:0;
	width:50%;
	height:100px;
	overflow:auto;
	border:1px solid #000;
	background-color:#fff;
	color:#000;
}

.hide {
	display:none !important;
}

.overlay {
	position:fixed;
	left:0;
	top:0;
	height:100%;
	width:100%;
	background-color:rgba( 0, 0, 0, 0.85 );
	z-index:10;
}

	.overlay-content {
		position:fixed;
		left:50%;
		top:20px;
		max-height:calc(100vh - 40px);
		overflow:auto;
		width:640px;
		margin-left:-320px;
		background-color:#bbb;
		padding:0;
		z-index:20;
	}

		.overlay-content .column {
			position:relative;
			float:left;
			width:50%;
			padding:20px;
		}

			.overlay-content .column.full {
				width:100%;
			}

			.overlay-content .column.left {
				padding-right:10px;
			}

			.overlay-content .column.right {
				padding-left:10px;
			}

	.overlay-content label {
		position:relative;
		float:left;
		width:100%;
		font-size:16px;
		margin-top:10px;
		margin-bottom:4px;
		user-select:none;
	}

	.overlay-content label.right {
		position: absolute;
		width: auto;
		padding: 0;
		margin: 0;
		right: 0;
	}

	.overlay-content input,
	.overlay-content select,
	.overlay-content textarea {
		float:left;
		clear:both;
	}

	.overlay-content .clr-field {
		float:left;
		width:100%;
		clear:both;
	}

	.overlay_error {
		position:relative;
		float:left;
		width:100%;
		color:#ff0000;
		font-size:16px;
		margin-top:5px;
	}

.brains-main {
	position:relative;
	margin:0 auto;
	min-height:100%;
	min-width:320px;
	max-width:640px;
	box-shadow: 0 0.3em 1em #000;
	padding:40px 25px;
	background-color:#ccc;
	/*overflow:auto;*/
}

input, select {
	width:100%;
	background-color:#fff;
	padding:10px 20px;
	line-height: 1em;
	font-size:16px;
	border:none;
}

	input:focus, select:focus {
		outline:none;
	}

	input.mono {
		font-family: 'Courier New', Courier, monospace;
	}


textarea {
	width:100%;
	height:100px;
	resize:none;
	padding:10px 20px;
	white-space: nowrap;
	border:none;
}

	textarea:focus {
		outline:none;
	}

.checkbox-group {
	float:left;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	xfont-size: 14px;
	cursor: pointer;
	margin: 0;
}

.checkbox-group input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #fff;
	background: #fff;
	margin: 0 8px 0 0;
	vertical-align: middle;
	position: relative;
	cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked {
	background: #fff;
	border-color: #fff;
}

.checkbox-group input[type="checkbox"]:checked::before {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #000;
	font-size: 12px;
	font-weight: bold;
}

.checkbox-group input[type="checkbox"]:focus {
	/* outline: 2px solid #007bff; */
}

.checkbox-group input[type="checkbox"]:disabled {
	background: #f8f9fa;
	border-color: #e9ecef;
	cursor: not-allowed;
	opacity: 0.6;
}

.showpassword:hover {
	cursor:pointer;
	color:#ff0000;
}

.genpassword:hover {
	cursor:pointer;
	color:#00ffff;
}


.button {
	position:relative;
	float:left;
	background-color:#000;
	color:#efefef;
	padding:10px 20px;
	cursor:pointer;
	text-align: center;
}

.button:hover {
	background-color:#666;
}

.button.warn:hover {
	background-color:#ff0000;
}

.button.right {
	float:right;
}

#toolbar-filter {
	position:absolute;
	left:40px;
	top:0;
	width:200px;
}

	#filter {
		margin:4px 0 4px 0px;
		width:100%;
		padding:0 10px 0 30px;
		height:32px;
		line-height:32px;
	}

	#toolbar-filter .icon-search {
		position:absolute;
		left:5px;
		top:0;
		line-height:38px;
		font-size:18px;
	}

#toolbar {
	position:fixed;
	right:0;
	top:0;
	left:0;

	margin: 0 auto;
    height: 40px;
    min-width: 320px;
    max-width: 640px;
    box-shadow: 0 5px 10px #00000090;
    padding-top: 40px;
    background-color: #ccc;
    overflow: hidden;
	z-index:10;
	transition:height 0.2s ease;
}

#toolbar.open {
	height:160px;
}

#menu {
	position:absolute;
	left:0;
	top:0;
	line-height:40px;
	width:40px;
	height:40px;
	text-align: center;
}

#toolbar > .controls {
	position:absolute;
	right:0;
	top:0;
}

#toolbar > .controls > div {
	float:right;
	width:40px;
	height:40px;
	text-align: center;
	line-height: 40px;
}

#toolbar > .controls > div:hover {
	cursor:pointer;
}

	#menu:hover {
		color:var(--color-hover);
		cursor:pointer;
	}

	#logout:hover {
		color:#0dd;
	}

	#config:hover {
		color:#ddd;
	}

	#add:hover {
		color:#0d0;
    }


#toolbar .menu-entries {
	position:relative;
	padding-top:20px;
}

#toolbar .menu-entry {
	position:relative;
	line-height:20px;
	padding:5px 40px 5px 0;
}

	#toolbar .menu-entry:hover {
		cursor:pointer;
		color:var(--color-hover);
	}

#toolbar .menu-entry .icon {
	float:left;
	width:40px;
	text-align:center;
}

@media all and (max-width: 640px) {

    .overlay-content {
        position:fixed;
        left:0;
        top:0;
		right:0;
		bottom:0;
        width:100%;
        min-width: 320px;
        margin-left:0;
        padding:20px;
    }

		.overlay-content .column {
			width:100%;
		}
		.overlay-content .column.left {
			padding-right:20px;
		}

		.overlay-content .column.right {
			padding-left:20px;
		}
}
