:root {
	--background: #ffffff;
	--background_: #f5f9fe;
	--border: #dce0e4;
	--hint: #aaaaaa;
	--black: #000000;
	--white: #ffffff;
	--header: #4285f4;
	--link: #4285f4;
	--button: #34a853;
	--blue: #4285f4;
	--red: #ea4335;
	--green: #34a853;
	--yellow: #fbbc05;
	--yellow_: #ffffff;
	--yellow_border: #eaaf05;
	--padding: 8px;
	--padding_: 4px;
	--input_margin_bottom:  16px;
	--font_size: 17px;
	--line_height: 1.75;
	--icon_size: 20px;
	--radius: 4px;
	--max_width: 480px;
}
@font-face { font-family: "icons"; src: url("icons.ttf?26"); }
@font-face { font-family: "font"; src: url("SegoeUI.ttf"); }
* {
	font-family: 'font', tahoma;
	font-size: var(--font_size);
	line-height: var(--line_height);
	color: var(--black);
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none; 
}
body, form, div {
	margin: 0;
	padding: 0;
}
th {
	font-weight: normal;
}
a:link, a:visited, a:hover, a:active {
	text-decoration: none;
	color: var(--link);
}
*[onclick] {
	cursor: pointer;
}
.icon {
	font-family: 'icons';
	font-size: var(--icon_size);
	line-height: var(--line_height);
}
.nobr {
	white-space: nowrap;
}
iframe {
	border: 1px solid var(--color1_border);
	border-radius: var(--radius);
	width: 100%;
	height: 0;
}
.balance {
	text-align: right;
}
.minus {
	color: var(--red);
}

/* Header ================================================= */

.header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
}

.main_header {
	background-color: var(--header);
}
.main_header *, .main_header a:link, .main_header a:visited, .main_header a:hover, .main_header a:active {
	color: var(--white);

}

.sub_header {
	background-color: var(--background);
	border-bottom: 1px solid var(--border);
}
.sub_header *, .sub_header a:link, .sub_header a:visited, .sub_header a:hover, .sub_header a:active {
	color: var(--black);
}

.main_header a:link, .main_header a:visited, .main_header a:hover, .main_header a:active,
.sub_header a:link, .sub_header a:visited, .sub_header a:hover, .sub_header a:active {
	display: inline-block;
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
	padding-left: 0;
	padding-right: calc( var(--padding) * 1.5 );
}
.sub_header td:last-child a:link, .sub_header td:last-child a:visited, .sub_header td:last-child a:hover, .sub_header td:last-child a:active {
	display: inline-block;
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
	padding-left: calc( var(--padding) * 1.5 );
	padding-right: calc( var(--padding) * 1.5 );
}


/* Loading ================================================ */

.loading {
	text-align: left;
	padding: 0;
}
.loading img {
	height: 16px;
}

/* Menu =================================================== */

.menu {
	position: absolute;
	width: 100vw;
	height: calc(100vh - 2 * var(--icon_size) * var(--line_height) - 4 * var(--padding_) - 1px);
	z-index: 100;
}
.menu div {
	position: absolute;
	background-color: var(--background);
	max-height: calc(100vh - 2 * var(--icon_size) * var(--line_height) - 4 * var(--padding_) - 1px);
	overflow-x: hidden;
	overflow-y: auto;
	border-left: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.menu a:link, .menu a:visited, .menu a:hover, .menu a:active {
	display: block;
	min-width: 180px;
	padding-top: var(--padding);
	padding-bottom: var(--padding);
	padding-left: 18px;
	padding-right: 0;
	background-color: var(--background);
	color: var(--link);
	border-right: 4px solid var(--background);
}
.menu .icon {
	display: inline-block;
	padding-left: calc( var(--padding) * 1.5 );
	padding-right: calc( var(--padding) * 1.5 - 4px );
	color: var(--black);
}
.menu a:not(:last-child):link, .menu a:not(:last-child):visited, .menu a:not(:last-child):hover, .menu a:not(:last-child):active {
	border-bottom: 1px dashed var(--border);
}
.menu a:hover, .menu a:active {
	border-right: 4px solid var(--black);
}
.menu a.selected:link, .menu a.selected:visited, .menu a.selected:hover, .menu a.selected:active {
	border-right: 4px solid var(--black);
}


/* Content ================================================ */

.content {
	margin-top: calc( 2 * var(--icon_size) * var(--line_height) + 4 * var(--padding_) + 1px + var(--padding) );
	margin-bottom: var(--padding);
	margin-left: var(--padding);
	margin-right: var(--padding);
}

/* Title ================================================== */

.title0 {
	display: block;
	background-color: var(--background_);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--padding_);
	text-align: center;
	margin-bottom: var(--padding);
}

.title1 {
	0display: block;
	0background-color: var(--background_);
	0border: 1px solid var(--border);
	0border-radius: var(--radius);
	0padding: var(--padding_);
	0text-align: center;
	0margin-bottom: var(--padding);
	
	text-align: center;
	max-width: var(--max_width);
	margin: 0 auto;
	border-bottom: 3px solid var(--black);
	0padding-top: var(--padding);
	padding-bottom: var(--padding);
	margin-bottom: var(--input_margin_bottom);
}

.title {
	display: block;
	background-color: var(--blue);
	border: 1px solid var(--blue);
	color: var(--white);
	border-radius: var(--radius);
	padding: var(--padding_);
	text-align: center;
	margin-bottom: var(--padding);
}

.title * {
	color: var(--white);
}

.block {
	display: block;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--padding_);
	margin-bottom: var(--padding);
	background-color: var(--background_);
	margin-bottom: var(--input_margin_bottom);
}

.block label:last-child {
	margin-bottom: 0;
}


/* Popup ====================================================== */

#popup {
	transition: 0.5s;
	transition-timing-function: ease-in-out;
	position: fixed;
	top: -200%;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	z-index: 8888;
}
#popup #popup_content {
	display: inline-block;
	background-color: var(--background);
	border-radius: var(--radius);
	box-shadow: 0 0 20px 0 #000000;
	border: 1px solid var(--border);
	text-align: justify;
	text-justify: inter-word;
	overflow: auto;
	margin: 4vmin;
	padding: 0;
	max-height: calc(100vh - 8vmin - 2 * var(--padding));
	min-width: 300px;
	max-width: 400px;
}
#popup .popup_msg {
	color: var(--black);
	padding: var(--padding);
}
#popup .popup_msg ul {
	margin: var(--padding);
	padding: 0;
	padding-right: 16px;
}
#popup .popup_msg li {
	
}
#popup .popup_buttons {
	border-top: 1px solid var(--border);
}
#popup .popup_button, #popup a.popup_button:link, #popup a.popup_button:visited, #popup a.popup_button:hover, #popup a.popup_button:active {
	display: block;
	color: var(--link);
	padding: var(--padding);
	text-align: center;
}

/* Form =================================================== */

.form {
	max-width: var(--max_width);
	margin: 0 auto;
	text-align: right;
}
.form label {
	display: block;
	margin-bottom: var(--input_margin_bottom);
}
.form a {
	display: block;
	margin-bottom: var(--input_margin_bottom);
}
.form input:not([type='checkbox']), .form .input, select, textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background-color: var(--background);
	padding: var(--padding_);
	-webkit-appearance: none;
	-moz-appearance: none;
}
.form input[type='checkbox'] {
	margin-left: var(--padding);
	margin-right: 0;
	margin-top: var(--padding);
	margin-bottom: var(--padding);
}
.form input[type='date'] {
	text-align: center;
}
button, .button, a.button {
	display: block;
	width: 100%;
	font-weight: normal;
	background-color: var(--button);
	border: 1px solid var(--button);
	border-radius: var(--radius);
	color: var(--background);
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
	padding-left: var(--padding);
	padding-right: var(--padding);
	text-align: center;
	margin-bottom: var(--input_margin_bottom);
}
a.button {
	width: auto;
}
button *, .button *, a.button * {
	color: var(--background);
}
select {
	height: 38px;
}
textarea {
	field-sizing: content;
	min-height: calc( var(--font_size) * var(--line_height) * 4 + 2 * var(--padding_) + 2px );
}

/* Table ================================================== */

.table {
	width: 100%;
	margin: 0;
	padding: 0;
	border-spacing: 0;
	0border-collapse: collapse;
	margin-bottom: var(--input_margin_bottom);
}
.table th, .table td {
	padding: var(--padding_);
	border-top: 1px solid var(--border);
	border-right: 1px solid var(--border);
}
.table tr:first-child th:first-child, .table tr:first-child td:first-child {
	border-top-right-radius: var(--radius);
}
.table tr:first-child th:last-child, .table tr:first-child td:last-child {
	border-top-left-radius: var(--radius);
}
.table tr:last-child th:first-child, .table tr:last-child td:first-child {
	border-bottom-right-radius: var(--radius);
}
.table tr:last-child th:last-child, .table tr:last-child td:last-child {
	border-bottom-left-radius: var(--radius);
}
.table tr th:last-child, .table tr td:last-child {
	border-left: 1px solid var(--border);
}
.table tr:last-child th, .table tr:last-child td {
	border-bottom: 1px solid var(--border);
}
.table th {
	background-color: var(--blue);
	color: var(--white);
}
.table th * {
	color: var(--white);
}
.table tr:nth-child(even) td {
	background-color: var(--background);
}
.table tr:nth-child(odd) td {
	background-color: var(--background_);
}
.table .fit {
	width: 1%;
	white-space: nowrap;
}
.table a:link, .table a:visited, .table a:hover, .table a:active {
	display: block;
	text-align: center;
}
.table .button_td {
	padding-left: var(--padding);
	padding-right: var(--padding);
	color: var(--link);
	text-align: center;
}


/* Help =================================================== */

.help {
	display: block;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: var(--padding);
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
	padding-left: var(--padding);
	padding-right: var(--padding);
	text-align: center;
}
.help ul, .help ol {
	display: block;
	margin: 0 auto;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 20px;
}
.help ul li, .help ol li {
	text-align: right;
}


/* Tree =================================================== */

.tree {
	width: 100%;
	margin-top: 0;
	margin-bottom: var(--input_margin_bottom);
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}
.tree .icon {
	font-size: var(--font_size);
	line-height: var(--line_height);
}
.tree ul {
	margin: 0;
	padding: 0;
}
.tree li {
	list-style: none;
	margin-top: var(--padding);
	margin-bottom: var(--padding);
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}
.tree ul ul {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 36px;
	padding: 0;
}
.tree table {
	border: 1px solid var(--border);
	background-color: var(--background);
	border-radius: var(--radius);
}
.tree table td {
	white-space: nowrap;
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
	padding-left: var(--padding);
	padding-right: 0;
}
.tree table td:first-child {
	font-family: Courier;
	font-weight: bold;
	padding-left: 12px;
	padding-right: 12px;
}
.tree .tree_buttons {
	margin: 0;
	padding: 0;
	border: 0;
	margin-bottom: var(--padding);
}
.tree table.tree_buttons td {
	margin: 0;
	padding: 0;
}
.tree .tree_button, .tree .tree_hide_button {
	display: inline-block;
	width: 38px;
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: var(--padding);
	background-color: var(--button);
	border: 1px solid var(--button);
	border-radius: var(--radius);
	color: var(--background);
	padding-top: var(--padding_);
	padding-bottom: var(--padding_);
}
.tree .tree_hide_button {
	font-family: 'icons';
	font-size: var(--icon_size);
	line-height: 1.48;
}
.tree label, .tree a {
	margin: 0;
}
.tree .tree_selected {
	background-color: var(--background_);
	border:1px solid var(--border);
}
.tree input[type='text'] {
	width: 40px;
	height: 32px;
	text-align: center;
}

.tree_item {
	border: 1px solid var(--border);
	background-color: var(--background);
	border-radius: var(--radius);
	margin-bottom: var(--padding);
}
.tree_item td {
	white-space: nowrap;
	padding: var(--padding_);
}
