
:root {
	--transparent: transparent;
	--white: #fff;
	--black: #000;
	--black-semi-transparent: rgba(0, 0, 0, 0.5);

	--c1: #01689b;
	--c2: #41b0e8;
	--c3: #3398ca;
	--accent: #e17000;

	--grey-lightest: #f9f9f9;
	--grey-lighter: #f3f3f3;
	--grey-light: #eee;
	--grey-medium: #ccc;
	--grey-dark: #777;
	--grey-darker: #555;

	--success: #819f00;
	--warn: #d00;

	--msg-scs-text: var(--success);

	--msg-wrn-text: var(--warn);
	--msg-wrn-bfr-text: var(--white);
	--msg-wrn-bfr-bkg: var(--warn);

	--sync-txt: var(--warn);
	--sync-brd: none;
	--sync-bkg: #fff5ee;

	--hdr-bold-txt: var(--c2);
	--hdr-brd-top: 1px solid var(--grey-light);
	--hdr-brd-btm: 2px solid var(--c1);

	--h3-txt: var(--grey-darker);
	--h3-brd: 1px solid var(--grey-medium);

	--main-txt: var(--black);
	--main-bkg: var(--white);

	--title-txt: var(--black);

	--element-txt: var(--black);
	--element-brd: var(--grey-light);
	--element-bkg: var(--white);
	--element-phold: var(--grey-dark);

	--button-txt: var(--black);
	--button-brd: 1px solid var(--grey-dark);
	--button-bkg: linear-gradient(#e9e9e9 0%, #d7d7d7 100%);
	--button-hvr-brd: 1px solid #26a0da;
	--button-hvr-bkg: #a6f4ff;
	--button-txt-disabled: var(--grey-medium);
	--button-brd-disabled: 1px solid var(--grey-light);
	--button-bkg-disabled: var(--grey-lighter);

	--link: #01689b;
	--link-hvr: #01496d;
	--link-vst: #848;

	--menu-brd: var(--grey-light);
	--menu-bkg: linear-gradient(to bottom, var(--white) 50%, var(--grey-lighter) 100%);
	--menu-shd: 0 8px 6px -6px rgba(33, 33, 33, 0.5);

	--instruct-bkg: #f1f8ff;

	--hint-txt: var(--grey-darker);
	--hint-txt-bld: var(--c1);
	--hint-bkg: var(--grey-lightest);

	--menu-icon-txt: var(--grey-darker);
	--menu-icon-bkg: var(--grey-lightest);
	--menu-icon-hvr-bkg: #f1f8ff;

	--upload-svg: url(upload.svg);
	--download-svg: url(download.svg);
	--import-svg: url(import.svg);
	--export-svg: url(export.svg);
	--email-svg: url(email.svg);
	--accounts-svg: url(accounts.svg);
	--intro-svg: url(intro.svg);
	--profile-svg: url(profile.svg);
	--logoff-svg: url(logoff.svg);

	--dl-img-flt: none;

	--scroll-brd: 1px solid var(--grey-lighter);
	--scroll-bkg: var(--grey-lightest);

	--list-hi: var(--accent);
	--list-hvr-bkg: var(--grey-light);

	--draft-state: var(--grey-dark);
	--inactive-state: var(--grey-dark);

	--form-lbl: var(--grey-dark);

	--period-txt: var(--grey-dark);

	--dtree-sld: var(--list-hi);
	--dtree-hvr: var(--list-hvr-bkg);

	--ctree-brd: 1px solid var(--grey-light);
	--ctree-item-brd: 1px solid var(--white);
	--ctree-item-fxd: var(--grey-lightest);
	--ctree-item-foc: var(--instruct-bkg);
	--ctree-item-aft: var(--c2);
	--ctree-srch-img: none;

	--doctype-hdr-txt: var(--c1);
	--doctype-hdr-brd: 1px solid var(--grey-light);

	--footer-brd: 1px solid var(--grey-light);
	--footer-txt: var(--grey-medium);
}

body {
	font-family: arial, sans-serif;
	color: var(--main-txt);
	background-color: var(--main-bkg);
}

h1, h2, h3, h4 {
	font-family: arial, sans-serif;
	font-weight: normal;
}

h2, h3 {
	color: var(--title-txt);
}

h3 {
	color: var(--h3-txt);
}

h3 span.actions {
	font-size: 80%;
}

h4 {
	color: var(--menu-icon-txt);
	margin-top: 0em;
}

a, a:visited {
	color: var(--link);
	text-decoration: none;
	cursor: pointer;
}

a:hover {
	color: var(--link-hvr);
	text-decoration: underline;
}

a.last {
	color: var(--link-vst);
}

b {
	;
}

p {
	margin: 0;
	padding: 0.7em 0 0 0;
}

ul {
	list-style-type: square;
}

input[type=submit],
input[type=text],
input[type=search],
input[type=password],
span.text input,
select,
span.dropdown select,
span.text textarea,
textarea {
	color: var(--element-txt);
	padding: 2px 0.3em;
	margin-left: 0;
	margin-right: 0.2em;
	border: 1px solid var(--element-brd);
	background-color: var(--element-bkg);
}

select,
span.dropdown select {
	padding: 1px 0.3em;
}

button,
input[type=submit],
input[type=button] {
	color: var(--button-txt);
	padding: 2px 0.4em;
	margin-left: 0;
	border: var(--button-brd);
	background: var(--button-bkg);
}

button:hover,
input[type=submit]:hover,
input[type=button]:hover {
	border: var(--button-hvr-brd);
	background: var(--button-hvr-bkg);
}

button:disabled,
input[type=submit]:disabled,
input[type=button]:disabled {
	color: var(--button-txt-disabled);
	padding: 2px 0.4em;
	border: var(--button-brd-disabled);
	background: var(--button-bkg-disabled);
}

input::placeholder {
	color: var(--element-phold);
}

.hidden {
	display: none;
}

.comment {
	color: var(--warn);
}

.sync {
	color: var(--sync-txt);
	margin: 2em 0em;
	border-top: var(--sync-brd);
	border-bottom: var(--sync-brd);
	background-color: var(--sync-bkg);
}

.periods {
	font-size: 85%;
	color: var(--period-txt);
}

#container {
	;
}

#main {
	color: var(--main-txt);
	max-width: 72em;
	min-height: 29em;
	margin: 0em auto;
	padding: 0 0.5em;
	background-color: var(--main-bkg);
}

header {
	z-index: 5;
	position: sticky;
	top: 0px;
	text-align: left;
	border: none;
	background-color: var(--main-bkg);
	border-bottom: var(--hdr-brd-btm);
}

header h1 {
	font-family: arial, sans-serif;
	font-size: 150%;
	font-weight: normal;
	color: var(--c1);
	margin: 0;
	padding: 0.3em 0.6em;
	border-top: var(--hdr-brd-top);
}

header h2.subheader {
	font-size: 120%;
	color: var(--c1);
    margin: 0 0 0.5em 0;
    padding: 0 0.8em;
}

header b {
	color: var(--hdr-bold-txt);
	font-weight: normal;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 2.5em;
	color: var(--c1);
	margin-left: -0.7em;
	padding: 0 0 0 0.8em;
}

nav span.button a {
	font-size: 120%;
	color: var(--c1);
	padding: 0.5em;
	padding-left: 0.6em;
	text-decoration: none;
}

nav span.button a:hover {
	color: var(--c2);
	border-bottom: 1px solid var(--c2);
	text-decoration: none;
}

div.dark {
	display: flex;
	align-items: center;
}

span.darkmode-toggle {
	font-size: 120%;
	padding: 0.2em 0 0.2em 0.5em;
	cursor: pointer;
}

span.darkmode-toggle:hover {
	color: var(--c2);
}

div.instruct {
	line-height: 1.3;
	color: var(--main-txt);
	margin: 0 -1em 0.5em -1em;
	padding: 1em;
	background-color: var(--instruct-bkg);
	border-radius: 0 0 0.5em 0.5em	;
}

div.text, div.intro-text {
	max-width: 45em;
}

div.intro-text {
	line-height: 1.3em;
	margin: 1em 0;
}

div.intro-text h3 {
	color: var(--accent);
}

section.main {
	padding: 0 1em 1em 1em;
}

footer {
	font-size: 90%;
	color: var(--footer-txt);
	text-align: right;
	max-width: 79em;
	padding: 0.5em 0.5em;
	margin: 0.2em auto 0.2em auto;
	border-top: var(--footer-brd);
}

div.hint:empty,
div.tip:empty {
	display: none;
}

div.hint,
div.tip {
	margin: 0.5em 0em;
	padding: 0.5em;
	color: var(--hint-txt);
	border: none;
	background-color: var(--hint-bkg);
}

div.hint b,
div.tip b {
	color: var(--hint-txt-bld);
}

.flex {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1em;
	row-gap: 1em;
}

.grid {
	display: grid;
}

.grid.docs,
.grid.accounts {
	grid-template-columns: 50% 50%;
	column-gap: 1em;
	margin-right: 1em;
}

.lpanel, .rpanel {
	width: 30em;
}

.mpanel {
	max-width: 40em;
}

div.notfound {
	font-style: italic;
	text-align: center;
	margin: 0.5em;
}

span.brin {
	font-family: monospace;
}

span.organisation-inactive {
	color: var(--inactive-state);
}

span.fresh::after {
	display: inline-block;
	position: relative;
	content: "\1F7B3";
	color: var(--success);
	margin-left: 0.5em;
	border-radius: 1em;
}

div.filters {
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.3em;
	align-items: center;
	justify-content: space-between;
	margin-right: -0.1em;
}

span.account-draft span.desc,
span.account-invited span.desc {
	font-size: 80%;
	margin-left: 0.5em
}

div.menu_icons {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1em;
	row-gap: 1em;
	margin-bottom: 1em;
	user-select: none;
}

div.menu_icon {
	width: 8em;
	text-align: center;
	padding: 1em 0.8em;
	border-radius: 8px;
	background-color: var(--menu-icon-bkg);
}

div.menu_icon:not(.disabled) {
	cursor: pointer;
}

div.menu_icon div.icon {
	background-size: 48px;
	background-repeat: no-repeat;
	background-position: center;
	width: 100%;
	height: 48px;
	margin-bottom: 0.5em;
}

div.menu_icon div.icon.upload {
	background-image: var(--upload-svg);
}

div.menu_icon div.icon.download {
	background-image: var(--download-svg);
}

div.menu_icon div.icon.import {
	background-image: var(--import-svg);
}

div.menu_icon div.icon.export {
	background-image: var(--export-svg);
}

div.menu_icon div.icon.email {
	background-image: var(--email-svg);
}

div.menu_icon div.icon.accounts {
	background-image: var(--accounts-svg);
}

div.menu_icon div.icon.intro {
	background-image: var(--intro-svg);
}

div.menu_icon div.icon.profile {
	background-image: var(--profile-svg);
}

div.menu_icon div.icon.logoff {
	background-image: var(--logoff-svg);
}

div.menu_icon div.icon.leaves {
	font-size: 250%;
	margin-bottom: 0.2em;
	filter: grayscale();
}

div.menu_icon:not(.disabled):hover {
	background-color: var(--menu-icon-hvr-bkg);
}

div.menu_icon div.label {
	color: var(--menu-icon-txt);
	text-align: center;
	vertical-align: bottom;
}

div.factset-source {
	;
}

div.factset-source,
div.factset-remark {
	margin: 0.5em;
}

div.factset-remark {
	font-style: italic;
	color: var(--hint-txt);
}

/* scrollable containers */

div.scroll,
div.scroll_select {
	color: var(--main-txt);
	overflow-y: scroll;
	overflow-x: hidden;
	max-height: 20em;
	text-wrap: nowrap;
	margin: 0.5em 0;
	border: var(--scroll-brd);
	background-color: var(--scroll-bkg);
}

div.scroll_select {
	width: 30em;
	height: 8.7em;
	margin: 0;
	border: none;
	border-bottom: var(--scroll-brd);
	background-color: var(--transparent);
}

/* ltable */

table.ltable td.key {
	color: var(--form-lbl);
	padding-right: 1em;
}

table.ltable td.value {
	;
}

/* regular trees */

div.display-tree div.tleaf {
	user-select: none;
}

div.display-tree div.tleaf > div.tleaf {
	padding-left: 1.2em;
}

div.display-tree div.tleaf > div.tleaf div.tcaption {
	position: relative;
	display: list-item;
	list-style-type: square;
	margin-left: 1em;
}

div.display-tree div.tleaf > div.tleaf div.tcaption.hilighted {
	list-style-type: none;
}

div.display-tree div.tcaption {
	white-space: nowrap;
	padding: 0.14em;
    margin: 0.1em 0 0.1em 0.2em;
	cursor: pointer;
}

div.display-tree div.tcaption.hilighted {
	color: var(--dtree-sld);
}

div.display-tree div.tcaption:hover {
	background-color: var(--dtree-hvr);
}

/* compact trees */

input.flashed {
	color: var(--white);
	background-color: var(--c1);
}

div.display-compact-tree {
	position: relative;
	margin: 0;
	padding: 0;
	overflow-y: auto;
}

div.display-compact-tree div.controls {
	margin: 0.2em 0 0.5em 0;
}

div.display-compact-tree div.controls input {
	margin-right: 0.1em;
}

div.display-compact-tree div.controls input[type=text] {
	width: 9em;
}

div.display-compact-tree div.listing {
	overflow-y: scroll;
	overflow-x: hidden;
	max-height: 22em;
	border: var(--ctree-brd);
}

div.display-compact-tree ul {
	user-select: none;
	list-style-type: none;
	margin: 0;
	padding: 0 0.1em 0 0.1em;
}

div.display-compact-tree ul li {
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	margin: 0.1em 0;
	padding: 0.2em 0.5em 0.2em 1.3em;
	border: var(--ctree-item-brd);
}

div.display-compact-tree ul li.fixed {
	padding-left: 0.5em;
	background-color: var(--ctree-item-fxd);
}

div.display-compact-tree ul li.focussed,
div.display-compact-tree ul li.hilighted {
	background-color: var(--ctree-item-foc);
}

div.display-compact-tree ul li.focussed::after,
div.display-compact-tree ul li.hilighted::after {
	color: var(--ctree-item-aft);
	content: '\276E';
	font-size: 110%;
	position: absolute;
	right: 0.3em;
}

div.display-compact-tree ul li:hover {
	border-bottom: 1px dotted var(--grey-medium);
}

div.display-compact-tree button img {
	height: 1em;
	vertical-align: middle;
	filter: var(--ctree-srch-img);
}

div.display-compact-tree * b {
	font-weight: normal;
	color: var(--c1);
}

/* lvs/display-objects */

div.display-objects ul,
div.menu_list.docs ul {
	margin: 0;
	padding: 0.3em 0;
	user-select: none;
}

div.menu_list.docs ul {
	margin-left: -0.5em;
	margin-bottom: 1em;
}

div.display-objects li,
div.menu_list.docs li {
	list-style-type: square;
	padding: 0.14em;
	margin: 0.1em 0 0.1em 1.7em;
	cursor: pointer;
}

div.menu_list.docs li {
	color: var(--main-txt);
	padding: 0.1em;
}

div.display-objects.list li:hover {
	background-color: var(--list-hvr-bkg);
}

div.display-objects.list li.hilighted,
div.menu_list.docs li.hilighted {
	list-style-type: none;
	position: relative;
	color: var(--list-hi);
}

div.display-tree div.tleaf > div.tleaf div.tcaption.hilighted::before,
div.display-objects.list li.hilighted::before,
div.menu_list.docs li.hilighted::before {
	content: "";
	/* position the checkbox */
	position: absolute;
	left: -16px;
	top: 0.1em;
	/* setting the checkbox */
	/* short arm */
	width: 5px;
	border-bottom: 3px solid var(--list-hi);
	/* long arm */
	height: 11px;
	border-right: 3px solid var(--list-hi);
	/* rotate the mirrored L to make it a checkbox */
	transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
}

div.display-objects.garden {
	text-overflow: ellipsis;
	overflow-x: hidden;
	border: none;
	background-color: var(--transparent);
}

div.display-objects.select {
	overflow-y: initial;
	height: initial;
	margin: 0 0 0 -0.5em;
}

/* lvs/link_document */

span.link-document img {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	filter: var(--dl-img-flt);
}

/* ui/actionbar */

div.actionbar {
	display: inline-block;
}

div.actionbar ul li {
	color: var(--c1);
	display: inline-block;
	padding: 0.3em 0.5em;
	margin-right: 0.2em;
	margin-bottom: 0;
	background-color: var(--instruct-bkg);
	border-radius: 8px;
}

div.actionbar ul li.enabled:hover {
	color: var(--c2);
	background-color: var(--instruct-bkg);
}

div.actionbar ul li.header {
	color: var(--main-txt);
}

div.actionbar ul li + li.header {
	margin-top: 0;
}

/* ui/menu */

div.menu ul {
	z-index: 10;
	right: 0.2em;
	top: 1.5em;
	text-align: right;
	min-width: max-content;
	border: 1px solid var(--menu-brd);
	background-image: var(--menu-bkg);
	box-shadow: var(--menu-shd);
}

div.menu ul li {
	color: var(--link);
}

div.menu ul li:hover {
	color: var(--link-hvr);
}

/* ui/menu_list */

div.menu_list.docs {
	margin-top: 0.5em;
	padding: 0.5em 0;
	border-top: var(--scroll-brd);
}

div.menu_list.docs div.header {
	font-size: 120%;
	color: var(--doctype-hdr-txt);
	width: 100%;
	margin-top: 0;
	padding-left: 0;
	border-bottom: var(--doctype-hdr-brd);
}

/* ui/data_grid */

div.bounces table {
	table-layout: fixed;
	width: 34em;
	margin: 0.5em 0.5em 0.5em -0.1em;
	border: none;
}

div.bounces table tr th {
	color: var(--c1);
	padding-right: 0.5em;
	background-color: var(--main-bkg);
	border-bottom: 1px solid var(--c1);
}

div.bounces table tr:hover {
	background-color: var(--instruct-bkg);
}

div.bounces table tr.hilighted {
	color: var(--list-hi);
	background-color: var(--main-bkg);
}

div.bounces table tr.hilighted:hover {
	background-color: var(--instruct-bkg);
}

div.bounces table tr th.col1 {
}

div.bounces table tr th.col2 {
	width: 6em;
}

div.bounces table tr th.col3 {
	width: 6em;
}

div.bounces table tr th.col2,
div.bounces table tr td.col2,
div.bounces table tr th.col3,
div.bounces table tr td.col3 {
	text-align: right;
}

div.bounces table tr td {
	padding-right: 0.5em;
	border-bottom: 1px solid var(--menu-brd);
}

div.bounces table tr td.col1 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

div.bounce-response {
	font-family: monospace;
	font-size: 1.1em;
}

/* ui/dialog */

dialog div.dialog-actions {
	text-align: right;
}

/* ui/message */

div.msg-success {
	color: var(--msg-scs-text);
}

div.msg-success::before {
	border-color: var(--msg-scs-text);
}

div.msg-warning {
	color: var(--msg-wrn-text);
}

div.msg-warning::before {
	color: var(--msg-wrn-bfr-text);
	background-color: var(--msg-wrn-bfr-bkg);
}

/* pg/form */

div.form {
	margin: 1em 0 0.5em 0;
}

div.form div.label,
div.form td.label {
	color: var(--form-lbl);
	padding-left: 0;
}

div.form div.navigation {
	margin: 1em 0 0.5em 0;
}

@media screen and (max-width: 768px) {

.grid.docs,
.grid.accounts {
	grid-template-columns: 100%;
	column-gap: 1em;
	margin-right: 0;
}

.lpanel, .rpanel {
	width: 100%;
}

}

.darkmode {
	--c1: #adf;
	--c2: var(--grey-light);
	--accent: #ffdb75;

	--grey-base: #445;

	--grey-blue-lightest: #dde;
	--grey-blue-lighter: #889;
	--grey-blue-light: #778;
	--grey-blue-medium: #667;
	--grey-blue-dark: #556;
	--grey-blue-darker: #334;
	--grey-blue-darkest: #223;

	--success: #8e8;
	--warn: #ffc363;

	--msg-scs-text: var(--success);

	--msg-wrn-text: var(--warn);
	--msg-wrn-bfr-text: var(--grey-base);
	--msg-wrn-bfr-bkg: var(--warn);

	--sync-txt: var(--warn);
	--sync-bkg: var(--grey-blue-darker);

	--hdr-bold-txt: var(--grey-light);
	--hdr-brd-top: 1px solid var(--grey-blue-dark);
	--hdr-brd-btm: 2px solid var(--c1);

	--h3-txt: var(--grey-blue-lightest);
	--h3-brd: 1px solid var(--grey-blue-dark);

	--main-txt: var(--white);
	--main-bkg: var(--grey-base);

	--title-txt: var(--grey-blue-lightest);

	--element-txt: var(--white);
	--element-brd: var(--grey-blue-medium);
	--element-bkg: var(--grey-blue-dark);
	--element-phold: var(--grey-blue-lighter);

	--button-txt: var(--grey-lighter);
	--button-brd: 1px solid var(--grey-blue-lighter);
	--button-bkg: linear-gradient(var(--grey-blue-light) 0%, var(--grey-blue-medium) 100%);
	--button-hvr-brd: 1px solid var(--grey-medium);
	--button-hvr-bkg: var(--grey-blue-lighter);
	--button-txt-disabled: var(--grey-blue-lighter);
	--button-brd-disabled: 1px solid var(--grey-blue-medium);
	--button-bkg-disabled: var(--grey-blue-dark);

	--link: var(--c1);
	--link-hvr: #dde;
	--link-vst: #848;

	--menu-brd: var(--grey-blue-medium);
	--menu-bkg: linear-gradient(to bottom, var(--grey-blue-medium) 30%, var(--grey-blue-dark) 100%);
	--menu-shd: 0 8px 6px -6px var(--black-semi-transparent);

	--instruct-bkg: var(--grey-blue-dark);

	--hint-txt: var(--grey-blue-lightest);
	--hint-txt-bld: var(--c1);
	--hint-bkg: var(--grey-blue-darker);

	--menu-icon-txt: var(--grey-blue-lightest);
	--menu-icon-bkg: var(--grey-blue-dark);
	--menu-icon-hvr-bkg: var(--grey-blue-darker);

	--upload-svg: url(upload-dm.svg);
	--download-svg: url(download-dm.svg);
	--import-svg: url(import-dm.svg);
	--export-svg: url(export-dm.svg);
	--email-svg: url(email-dm.svg);
	--accounts-svg: url(accounts-dm.svg);
	--intro-svg: url(intro-dm.svg);
	--profile-svg: url(profile-dm.svg);
	--logoff-svg: url(logoff-dm.svg);

	--dl-img-flt: contrast(0.5) brightness(2);

	--scroll-brd: 1px solid var(--grey-blue-dark);
	--scroll-bkg: var(--grey-blue-darker);

	--list-hi: var(--accent);
	--list-hvr-bkg: var(--grey-blue-dark);

	--draft-state: var(--grey-blue-lighter);
	--inactive-state: var(--grey-blue-lighter);

	--form-lbl: var(--grey-blue-lightest);

	--period-txt: var(--grey-blue-lightest);

	--dtree-sld: var(--list-hi);
	--dtree-hvr: var(--list-hvr-bkg);

	--ctree-brd: 1px solid var(--grey-darker);
	--ctree-item-brd: 1px solid var(--transparent);
	--ctree-item-fxd: var(--grey-blue-dark);
	--ctree-item-foc: var(--grey-blue-light);
	--ctree-item-aft: var(--c1);
	--ctree-srch-img: brightness(3.5);

	--doctype-hdr-txt: var(--grey-blue-lightest);
	--doctype-hdr-brd: 1px solid var(--grey-blue-dark);

	--footer-txt: var(--grey-blue-medium);
	--footer-brd: 1px solid var(--grey-blue-dark);
}
