/*
// file:	layout-basic.css
// version:	2.0 (dtb)
*/

html {
	overflow: auto;
}

/*body {
	background: white;
	background: var(--panel);
}*/

#logo-host {
	display: none;
}

.hidden-mini {
	display: none;
}
.iconize-mini .icon + .label {
	position: absolute;
	z-index: -99;
	left: -9999px;
	top: 0;
	width: 180px;
	width: intrinsic;
	width: -moz-max-content;
	width: max-content;
	max-width: 180px;
	padding: 4px;
	font-size: 0.9em;
	
	--background: var(--panel);
	--border: var(--panel-border);
	--text: var(--panel-text);
	
	color: black;
	color: var(--text, black);
	background: white;
	background: var(--background, white);
	border-width: 1px;
	border-radius: 3px;
	
	opacity: 0;
	transition: opacity 0.15s;
}
@media (hover: hover) {
	.iconize-mini *:hover > .icon + .label,
	.iconize-mini .button:hover .icon + .label {
		z-index: 9;
		opacity: 1;
		top: 100%;
		left: 100%;
		margin: 6px;
		transition: opacity 0.15s 0.5s;
	}
}
.iconize-mini .button:disabled .icon + .label {
	display: none;
}

/* HEADER =================================================================== */
h1 {
	font-size: 1.3em;
	line-height: 1;
}
#page-header,
#view-menu {
	padding: 0;
}
#page-header {
	border-bottom-width: 1px;
}
#page-title {
	padding: .6em 14px .6em 10px; /* .6em = 0.5 * (target - h1.font-size)em */
	background: inherit;
	transform: translate(-2px);
	z-index: 3;
}
body { padding-left: 2.25em; } /* make room for vertical view-menu */
body.no-target { padding-left: 0; }

#view-menu {
	position: fixed;
	left: 0;
	top: 0;
	box-sizing: border-box;
	width: 2.25em;
	height: 100%;
	padding-top: 3em;
	background: inherit;
	border-right-width: 1px;
	-webkit-flex-direction: column;
	flex-direction: column;
	z-index: 2;
}
#tools-menu {
	margin-right: 0;
}
#site-nav .button,
#tools-menu .button {
	box-sizing: content-box;
	margin: 0 1px;
	border-width: 0;
	min-width: 2em;
	width: 2.5em;
	height: 100%;
}
#view-menu .button {
	box-sizing: content-box;
	margin-left: 0;
	width: 100%;
	height: 2.5em;
	min-width: 2em;
}
/*#site-nav .button:hover,
#tools-menu .button:hover {
	border-bottom: none;
}*/
#tools-menu .pressed,
#tools-menu .pressed:hover,
#view-menu .pressed,
#view-menu .pressed:hover {
	border-width: 1px;
	border-radius: 0;
	background: white;
	background: var(--background, white);
}
#tools-menu .pressed,
#tools-menu .pressed:hover {
	border-width: 0 1px;
	margin: 0;
}
#view-menu .pressed,
#view-menu .pressed:hover {
	border-left: none;
	border-right: 1px solid white;
	border-right-color: var(--background, white);
}

/* MAIN ===================================================================== */
body {
	background: transparent;
}
#main-container {
	display: block;
}
#main-content {
	margin: 0;
	min-width: 0;
	width: auto;
}

#main-content section.panel {
	box-shadow: none;
	border-radius: 0;
	margin: 0;
	border-width: 0;
	padding: 8px;
}
section.panel > header h2 {
	display: none;
}
section.panel > header > *:not(:first-child) {
	margin-left: 8px;
}
#main-controls section > header:not(.group-header),
#main-content section > header {
	--active: inherit;
	--background: inherit;
	--hover: inherit;
	--text: inherit;
	background: transparent;
	color: inherit;
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
}

#main-controls,
#main-controls-host {
	margin: 0;
	width: 100%;
	max-width: none;
	border-radius: 0;
	border: 0;
	box-shadow: none;
}
#main-controls-host #main-controls section.panel {
	border-radius: 0;
}

#search-container {
	margin-top: 0;
}

#intro-head {
	margin-top: 1em;
}

#fields-section {
	position:relative;
	box-sizing: border-box;
	padding-bottom: 0;
	padding-right: 50%;
	padding-right: calc(100% - 20em);
}
#globals-section {
	padding-bottom: 1em;
}
.field-bar {
	border-right-width: 1px;
	/*width: 50%;
	width: calc(20em);
	max-width: 50%;*/
}
.field-bar:not(:last-child) {
	font-weight: 500;
	padding: 0 9px 0 8px;
	border-width: 1px 0;
	background: #eee;
	background: var(--active, #eee);
}
#fields-section > header + section {
	margin-top: -8px;
}
#fields-section .group-header {
	padding-left: 8px;
}
#fields-section .group-header .button {
	display: none;
}
#data-section .collapsed header .icon {
	-webkit-transform: rotate(0);
	transform: rotate(0);
}
section.collapsed .field-list {
	display: initial;
}
.field-list .field-properties {
	box-sizing: border-box;
	width: 50%;
	min-width: 50%;
	width: calc(100% - 20em - 8px);
	min-width: calc(100% - 20em - 8px);
	padding: 8px;
}
#globals-section {
	padding: 0 0 0 2px;
}
#globals-section h3 {
	display: none;
}
.field-list .field-properties {
	position: fixed;
	height: 100%;
	top: 0;
	right: -2.25em;
	padding-top: 4em;
	padding-right: 2.25em;
	padding-right: calc(2.25em + 8px);
	background: #eee;
	background: var(--active, #eee);
	background-image: linear-gradient(90deg, #eee, white 1em);
	background-image: linear-gradient(
		90deg,
		var(--active, #eee),
		var(--background, white) 1em
		);
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	z-index: 1;
}

.field-properties header {
	display: none;
}
.field-properties .metadata {
	margin-top: auto;
}

/* ETC. ===================================================================== */
.help-btn {
	display: none;
}

#page-footer {
	display: none;
}
