@font-face {
	font-family: 'icons';
	src: url('/fonts/icons/icomoon.eot');
	src: url('/fonts/icons/icomoon.eot#iefix') format('embedded-opentype'),
		url('/fonts/icons/icomoon.ttf') format('truetype'),
		url('/fonts/icons/icomoon.woff') format('woff'),
		url('/fonts/icons/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-stretch: 100%;
	font-display: swap;
	src: url(https://fonts.gstatic.com/s/opensans/v35/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	font-stretch: 100%;
	font-display: swap;
	src: url(https://fonts.gstatic.com/s/opensans/v35/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body, input, textarea, select {
	font-family: Open Sans, sans-serif;
}
a {
	cursor: pointer;
	color: #41639b;
}
[data-icon]:before {
	display: inline-block;
	font-family: icons;
	content: attr(data-icon);
	vertical-align: baseline;
	margin-right: 7px;
}
.wrap {
	position: relative;
	width: 96%;
	max-width: calc(100vh * 1.8);
	padding: 10px 10px 0 10px;
	margin: 0 auto;
	text-align: left;
}
.wrap.narrow {
	max-width: 1280px;
	display: flex;
}
.controls {
	position: absolute;
	left: 20px;
	top: 10px;
	z-index: 300;
	width: 250px;
	background: rgba(230, 230, 230, 1);
	opacity: 0.7;
	padding: 10px 15px;
	transition: opacity 0.5s ease;
}
.controls h4 {
	font-weight: 300;
	margin-bottom: 10px;
}
.controls p {
	margin-bottom: 10px;
}
.controls select.samples {
	height: 100px;
}
.controls:hover {
	opacity: 1;
}
.controls input, .controls select {
	width: 100%;
}
.controls label {
	display: block;
}
.map {
	position: relative;
	margin: 10 0 20px;
	box-shadow: 1px 1px 7px #00000066;
	overflow: hidden;
	background: #c9dcea;
	--scale: 1;
}
.map svg {
	cursor: grab;
}
.map.dragging svg {
	cursor: grabbing;
}
.map [data-layer][data-type="admixture"].hidden {
	z-index: 0;
}
.map canvas[data-layer="observations"].hidden {
	display: none;
}
.main-menu .datasets [data-action="toggle-observations"] {
	font-size: 18px;
	cursor: pointer;
}
.main-menu .datasets [data-action="toggle-observations"].hidden:before {
	content: 'I';
}
.bars-overlay [data-layer].hidden {
	display: none;
}
.map [data-layer][data-type="background"] {
	position: relative;
	z-index: 1;
}
.map [data-layer][data-type="samples"], .map [data-layer][data-type="polygons"], .map [data-layer][data-type="observations"] {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
}
.map [data-layer][data-type="admixture"] {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
}
.map .loading {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	justify-content: center;
	align-items: center;
	font-size: 36px;
	width: 100%;
	text-align: center;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.5);
}
.map .loading.show {
	display: flex;
}
.map svg circle.sample-selection {
	pointer-events: none;
}
.tooltip-mouse {
	position: absolute;
	user-select: none;
	background: #0003;
	z-index: 100;
	display: none;
	color: #fff;
	font-size: 14px;
	width: 200px;
	padding: 5px 7px;
}
.tooltip-mouse.follow {
	display: block;
}
line.chromosome {
	stroke: rgba(100, 100, 100, 0.5);
	stroke-width: 3px;
}
text.chromosome-label {
	font-size: 12px;
}
circle.variant {
	fill: #bc0;
	stroke: #fc0;
	stroke-width: 2px;
}
rect.variant-range {
	fill: #f90;
	stroke: #f90;
	stroke-width: 5px; 
}
polyline.line-plot {
	stroke-width: 3px;
}
rect.water {
	fill: rgba(149, 193, 243, 1);
}
polygon.land {
	fill: rgba(148, 249, 186, 1);
	/*stroke: rgba(105, 122, 91, 0.3);*/
}
[data-layer] circle.individual {
	cursor: pointer;
}
[data-layer] circle.individual, [data-layer] circle.corner {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	transform: scale(calc(1.1 * var(--scale)));
}
[data-layer] circle.corner {
	cursor: move;
	transform: scale(calc(2 * var(--scale)));
}
[data-layer] polygon[data-polygon] {
	stroke-width: calc(3 * var(--scale));
	cursor: pointer;
}
.map.draw-polygon svg {
	cursor: crosshair;
}
.map [data-layer~="bg"].hidden polygon.land {
	stroke: none;
}
.map [data-layer~="samples"].individuals-hidden .individual {
	opacity: 0;
}
.map.hide-polygons [data-polygon] {
	fill: none;
}
.selector {
	box-sizing: border-box;
	display: none;
	position: absolute;
	z-index: 200;
	background: #5c616cc9;
	font-size: 12px;
	cursor: grab;
}
.selector.moving {
	cursor: grabbing;
}
.selector.show {
	display: block;
}
.panels .selector {
	border-width: 0 2px;
	height: 100%;
}
.selector .slider {
	background: #5c616c;
	height: 99%;
	padding: 0 5px;
	font-size: 11px;
	color: #fff;
	cursor: col-resize;
	user-select: none;
	position: absolute;
	border: 1px solid #878787;
}
.slider.right {
	right: -12px;
}
.slider.left {
	left: -12px;
}
.left {
	float: left;
}
.right {
	float: right;
}
.clear {
	clear: both;
}
.bars-overlay {
	position: absolute;
	z-index: 20;
	bottom: 15%;
	left: 5%;
	width: 90%;
}
.bars-overlay [data-layer] {
	position: absolute;
}
.structure.highlight-mode rect {
	opacity: 0.5;
}
.structure.highlight-mode .highlight {
	opacity: 1;
}
.map-container {
	position: relative;
}
.sample-info {
position: absolute;
    display: none;
    overflow: hidden;
    z-index: 100;
    width: 200px;
    background: #eee;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: 1px 1px 7px #00000040;
}
.sample-info.show {
	display: block;
}
.sample-info h5 {
	background: #ddd;
	padding: 5px 8px;
	font-size: 14px;
	font-weight: 400;
}
.sample-info>a {
    display: block;
    padding: 4px 8px;
    font-weight: 300;
    color: #000;
}
.sample-info>a:empty {
    background-color: #ddd;
    text-align: center;
}
.sample-info>a:empty:before {
    content: '...';
    font-family: monospace;
}
.sample-info span.value {
    float: right;
}
.copy-link {
    font-size: 14px;
    background: #eee;
    border: 1px solid #aaa;
    padding: 2px 5px;
    width: 100%;
    margin: 5px 0;
    cursor: pointer;
    outline: none;
}
.data-field {
	display: inline-block;
	width: 100%;
	font-weight: 300;
}
.data-field div {
	padding: 4px 8px;
	box-sizing: border-box;
	overflow: hidden;
}
.data-field .label {
	float: left;
	width: 40%;
}
.data-field .data {
	float: left;
	width: 60%;
}
.button {
    display: inline-block;
    padding: 7px 10px;
    margin: 3px 3px 3px 3px;
    color: #fff;
    background: #7189c5;
    border-radius: 3px;
}
.form-footer {
    padding: 3px 10px;
}

.button.disabled {
    background: #ccc;
    cursor: not-allowed;
}
.button.active {
	background: #f90;
	color: #fff;
}
[data-polygon].selected {
	stroke: rgba(255, 255, 0, 1);
	stroke-width: 5px;
}
.main-menu {
	position: absolute;
	user-select: none;
	z-index: 50;
	font-size: 14px;
	border-radius: 3px;
	background: #fff;
	box-shadow: 1px 1px 7px rgb(0 0 0 / 10%);
	width: 250px;
	left: 3%;
	top: 5%;
	opacity: 0.8;
	transition: 0.5s ease opacity;
}
.main-menu:hover {
	opacity: 1;
}
.main-menu.minimized .content, .main-menu.minimized .sub-heading {
	display: none;
}
.main-menu .header {
	line-height: 32px;
	height: 34px;
	font-size: 16px;
	background: #ddd;
	padding: 0 5px 0 10px;
}
.main-menu h1 {
	font-weight: 300;
	font-size: inherit;
}
.main-menu [data-action="minimize"], .plot [data-action="minimize"], .data-overlays [data-action="minimize"] {
	display: inline-block;
	border-bottom: 2px solid #41639b;
	width: 13px;
	height: 22px;
	margin-right: 6px;
	cursor: pointer;
}
.data-overlays [data-action="minimize"] {
	height: 16px;
	margin-top: 5px;
}
.main-menu .content a:not(.close) {
	display: block;
	cursor: pointer;
	padding: 7px 5px 7px 10px;
	border-bottom: 1px solid rgba(50, 50, 50, 0.2);
}
.main-menu .content a.selected {
	background: #ff990055;
}
.main-menu .content a:not(.close).hidden {
	background: #ddd;
	color: #555;
}
.main-menu .content a:not(.close):last-child {
	border: 0;
}
.sub-heading {
	cursor: pointer;
	padding: 0 5px 0 10px;
	line-height: 31px;
	background: #f3f3f3;
}
.main-menu .content a[data-icon]:before {
    font-size: 18px;
    float: left;
}
.sample-filters {
	display: none;
    overflow: hidden;
    padding: 5px 10px;
}
[data-num-filters="0"] {
	display: none;
}
.sample-filters.show:not(:empty) {
	display: block;
}
.sample-filters span {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 5px;
    margin: 0 3px 3px 0;
}
.sample-filters a[data-remove-filter] {
    float: right;
    font-size: 9px;
    line-height: 16px;
    padding-left: 7px;
    color: #555;
}
[data-action="hide-polygons"] {
    font-size: 20px;
}
[data-action="hide-polygons"].hidden:before {
    content: 'I';
}
.sub-heading a[data-icon] {
    font-size: 18px;
}
.sub-heading a[data-icon="+"] {
    font-size: 16px;
}
.sub-heading a[data-icon="v"] {
    font-size: 28px;
}
.sub-heading a[data-action="show-table"] {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.floating-controls {
	position: absolute;
	bottom: 20%;
	left: 3%;
	z-index: 40;
	background: #fff;
	opacity: 0.8;
	box-shadow: 1px 1px 7px rgb(0 0 0 / 10%);
}
.floating-controls a {
	display: block;
	font-family: icons;
	font-size: 18px;
	user-select: none;
	width: 30px;
	text-align: center;
	line-height: 30px;
	border-bottom: 1px solid #ddd;
}
.context-menu {
	position: absolute;
	z-index: 100;
	display: none;
	font-size: 14px;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);
	width: 130px;
	right: 0;
}
.context-menu.show {
	display: block;
}
.context-menu a {
	display: block;
	cursor: pointer;
	padding: 6px 10px;
	border-bottom: 1px solid #eee;
}
.context-menu a:last-child {
	border: 0;
}
.context-menu a:hover {
	background: #f5f5f5;
}
.tiny-input {
position: absolute;
    width: 60px;
    border-radius: 3px;
    padding: 2px;
    background: #777;
    z-index: 1002;
}
.tiny-input input {
	background: #fff;
	font-size: 15px;
	width: 100%;
	padding: 2px 5px;
	border: none;
	border-radius: 3px;
}
.data-overlays {
	position: absolute;
	user-select: none;
	z-index: 50;
	font-size: 14px;
	border-radius: 3px;
	background: #fff;
	box-shadow: 1px 1px 7px rgb(0 0 0 / 10%);
	width: 250px;
	right: 3%;
	top: 5%;
	transition: 0.5s ease opacity;
}
.data-overlays .header {
	line-height: 26px;
	font-size: 12px;
	padding: 0 10px;
	font-weight: 300;
	font-size: inherit;
	background: #eee;
	border-bottom: 1px solid #eee;
	border-radius: 0 3px 0 0;
}
.data-overlays .select {
	font-size: 14px;
}
.data-overlays .select>div {
	display: none;
	cursor: pointer;
	color: #41639b;
	padding: 5px 10px;
	line-height: 22px;
}
.data-overlays .select>div.active {
	display: block;
}
.data-overlays.open div {
	display: block;
}
.data-overlays .select>div .channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	vertical-align: middle;
	margin-right: 7px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.data-overlays .select>div:not(.active) .channel-icon {
	border-style: dashed;
}
.data-overlays .select>div .channel-icon svg {
	width: 12px;
	height: 12px;
}
.data-overlays .select>div .property-label {
	vertical-align: middle;
}
.data-overlays .select>div select {
	background: #ffffff88;
	font-family: inherit;
	font-size: 13px;
	border: 1px solid #41639b;
	outline: 0;
	margin-left: 6px;
	height: 21px;
}
.data-overlays .select>div .inline-colorbar:empty {
	display: none;
}
.data-overlays .select>div .inline-colorbar {
	margin-top: 3px;
	margin-left: 0;
}
.data-overlays .inline-colorbar .colorbar {
	position: relative;
	padding: 6px 4px;
}
.data-overlays .colorbar-scale {
	position: relative;
	height: 20px;
	width: 100%;
	background: linear-gradient(to right, #fff, #000);
}
.colorbar-scale>div {
	cursor: pointer;
    border: 1px solid #777;
	font-size: 14px;
    height: 24px;
    border-radius: 5px;
    padding: 1px 4px;
    position: absolute;
    top: -2px;
}
.colorbar-scale .x-mid {
    width: 14px;
    background-color: #909090;
	border-color: #000;
    left: 47%;
	cursor: ew-resize;
}
.colorbar-scale .x-mid:before {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    border: 1px solid #000;
    border-width: 0 1px;
    width: 2px;
    height: 8px;
}
.colorbar.fixed .x-min, .colorbar.fixed .x-mid, .colorbar.fixed .x-max {
	display: none;
}
.colorbar.shape-legend .colorbar-scale {
	background: none;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.colorbar.shape-legend .shape-item {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	color: #555;
	padding: 1px 4px;
	background: #f5f5f5;
	border-radius: 3px;
}
.colorbar.shape-legend .shape-item .shape-icon {
	font-size: 13px;
	color: #333;
}
.data-overlays .x-min {
	left: -4px;
	color: #000;
	background-color: #fff;
	text-shadow: 1px 1px #fff;
}
.data-overlays .x-max {
	right: -4px;
	color: #fff;
	background-color: #000;
	text-shadow: 1px 1px #000;
}
.popup {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 10%;
	width: 70%;
	max-height: 80%;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
	background: #f5f5f5;
	border-radius: 3px;
	font-size: 14px;
	z-index: 1000;
	left: 20%;
}
.popup.narrow {
	width: 50%;
	left: 25%;
}
a.checkbox:before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid #41639b;
    position: absolute;
    left: 6px;
    top: 8px;
    border-radius: 3px;
}

a.checkbox {
    position: relative;
    padding-left: 23px !important;
}

a.checkbox.checked:after {
    content: '';
    position: absolute;
    left: 9px;
    top: 11px;
    background: #41639b;
    width: 6px;
    height: 6px;
    border-radius: 1px;
}

.tabbed-content [data-tab-content] {
	display: none;
	position: relative;
}
.tabbed-content [data-tab-content].selected {
	display: block;
}
.tabbed-content [data-tab-content]:empty:before {
	display: block;
	content: 'No data to show';
	text-align: center;
	padding: 7px 10px;
}
.panels.tabbed-content [data-tab-content] {
	display: block;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}
.panels.tabbed-content [data-tab-content]:nth-child(2) {
	position: relative;
}
.panels.tabbed-content [data-tab-content].selected {
	z-index: 10;
	visibility: visible;
}
.panels.tabbed-content [data-tab-content] {
	border: 2px solid #222;
}
.popup .header {
}
.popup .cols {
	flex: 1;
	display: flex;
	min-height: 0;
}
.popup .content {
	flex: 1;
    background: #fff;
    padding: 10px 15px;
}
.popup .content .empty {
    text-align: center;
    padding: 140px 0;
    font-size: 20px;
}
.popup.aggrid .content {
	padding: 8px;
}
.popup .tabs {
	flex: 1;
}
.popup [data-tab-content] {
	flex: 4;
	background: #fff;
	padding: 10px 15px;
	box-sizing: border-box;
	overflow-y: auto;
}
.popup [data-tab] {
	padding: 10px 15px;
	display: block;
}
.form .button, .form [data-action="submit"], .form [data-action="login"], .form [data-action="search"] {
	float: right;
	padding: 5px 8px;
	background: #37a;
	color: #fff;
}
.form [data-action="submit"].disabled, .form [data-action="login"].disabled, .form [data-action="search"].disabled {
	cursor: not-allowed;
	background: #ccc;
}
.popup [data-tab].selected {
	background: #fff;
}
.popup h3 {
	padding: 10px 15px;
	margin: 0;
	line-height: 20px;
}
.popup [data-action="close"] {
	float: right;
	line-height: 20px;
	margin: 10px;
}
.popup [data-action="minimize"] {
	display: inline-block;
	border-bottom: 2px solid #41639b;
	width: 13px;
	min-height: 16px;
	line-height: 20px;
	margin: 10px;
	margin-right: 6px;
}
.popup [data-action="minimize"]:before {
	font-family: icons;
	font-size: 16px;
}
.minimized-tables .popup [data-action="minimize"] {
	border-bottom: 0;
}
.minimized-tables .popup [data-action="minimize"]:before {
	content: '3';
}
.form .errors div {
	padding: 10px 15px;
	background: #fcc;
	border: 1px solid #ba0000;
	margin-bottom: 10px;
}
.form label {
	display: inline-block;
	font-size: 16px;
	width: 50%;
	vertical-align: top;
}
.form input, .form select, .form textarea {
	width: 50%;
}
.form input[type="text"], .form input[type="password"], .form select {
	background: #f3f3f3;
	padding: 4px 8px;
	font-size: 16px;
	border: 1px solid #aaa;
}
.form input[type="text"].error {
	background: #ba000044;
}
.form input[type="text"].valid {
	background: #00ba0044;
}
.form .field {
	position: relative;
	margin-bottom: 15px;
}
.form .field.definition label {
	display: block;
	width: auto;
	margin-bottom: 4px;
}
.form .field.definition textarea {
	width: 100%;
	box-sizing: border-box;
	background: #f3f3f3;
	border: 1px solid #aaa;
	padding: 4px 8px;
	font-family: monospace;
	font-size: 14px;
	resize: vertical;
}
.form h4 {
	font-size: 18px;
}
.form p {
	font-size: 16px;
	margin: 5px 0;
}
.form.loading:before {
	content: '';
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff9;
}
.form.loading {
	cursor: progress;
}
.search-results {
	position: absolute;
	top: 28px;
	right: 0;
	z-index: 100;
	width: 50%;
	border: 1px solid #bbb;
}
.search-results a {
	background: #eee;
	padding: 5px 10px;
	display: block;
	font-size: 16px;
}
[data-tab-content] .col {
	width: 50%;
	display: inline-block;
	padding: 7px 10px;
	box-sizing: border-box;
	border-bottom: 1px solid #eee;
	overflow: hidden;
}
[data-analysis-type] {
    display: inline-block;
	cursor: initial;
    width: 49.5%;
	color: #333;
    position: relative;
    margin: 0 1% 1% 0;
    padding: 10px 15px 10px 43px;
    background: #f5f5f5;
}
[data-analysis-type]:nth-child(2n) {
	margin-right: 0;
}
[data-analysis-type]:before {
    content: '';
    height: 18px;
    width: 18px;
    position: absolute;
    border: 1px solid #777;
    border-radius: 8px;
    left: 11px;
	cursor: pointer;
	top: 20px;
    background: #fff;
    box-shadow: 1px 1px 7px #00000019;
}

[data-analysis-type].selected:after {
    content: '';
    height: 12px;
    width: 12px;
    position: absolute;
    left: 15px;
    top: 24px;
    background: #5292cd;
    border-radius: 5px;
}
[data-analysis-type] .description {
    font-size: 14px;
    color: #333;
    display: block;
    padding-top: 5px;
	font-weight: 300;
}
[data-analysis-type] .parameters {
    padding: 0 5px;
}
[data-analysis-cohort], .edit-variants {
    background: #eee;
    padding: 3px 9px;
    color: #333;
    font-size: 16px;
    text-decoration: underline;
}
.col textarea {
	font-size: 11px;
	width: 100%;
}
[data-cols="2"] .col, .row[data-cols="2"] .col {
	width: 50%;
}
[data-cols="3"] .col {
	width: 33.33%;
}
[data-cols="4"] .col {
	width: 25%;
}
[data-tab-content] .col.wide {
	width: 100%;
}
.row:last-child .col {
	border: 0;
}
[data-tab-content] .header {
	font-weight: 700;
}
.upload-area {
	cursor: pointer;
	text-align: center;
	padding: 50px 0;
	font-size: 20px;
	color: #444;
	background: #f5f5f5;
	border: 2px dashed #aaa;
	margin: 15px 0;
}
.uploaded-files {
	margin: 10px 0 3px;
}
.uploaded-files>div {
	margin: 0 0 7px;
	padding: 7px 10px;
	background: #eee;
	box-sizing: border-box;
	font-size: 16px;
	display: inline-block;
	width: 100%;
}
.uploaded-files>div>div {
	float: left;
	width: 50%;
}
.uploaded-files .status {
	text-align: right;
}
.moveable .header {
	cursor: move;
}
.ag-grid-container {
	width: 100%;
	height: 100%;
}
.plot {
	position: absolute;
	top: 15%;
	width: 50%;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
	background: #fff;
	font-size: 14px;
	z-index: 1001;
	left: 25%;
}
.plot.hide {
	display: none;
}
.plot .text {
	font-size: 16px;
	padding: 10px;
	margin: 0;
}
.plot .text p {
	margin: 0 0 7px;
}
.plot .content {
	padding: 15px 15px 40px 50px;
}
.popup img {
	max-width: 100%;
}
.popup .img-content {
	position: relative;
}
.img-content .error {
	padding: 10px;
	font-family: monospace;
	font-size: 11px;
}
.plot .draw {
	position: relative;
	border: 1px solid #333;
	border-width: 0 0 1px 1px;
}
.popup .loader {
	position: absolute;
	top: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 1);
}
.popup .loader circle:nth-child(1) {
	transform-origin: center;
	animation: rotate 1.5s linear infinite;
}
.popup .loader circle:nth-child(2) {
	transform-origin: center;
	animation: rotate 1s linear infinite;
}
.popup .loader .loader-text {
	margin-top: 12px;
	color: #555;
	font-size: 18px;
}
.plot-options {
	display: none;
	position: absolute;
	left: 10px;
	bottom: 44px;
	z-index: 30;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
	padding: 10px 14px;
	flex-direction: column;
	gap: 8px;
	min-width: 240px;
}
.plot-options.show {
	display: flex;
}
.plot-options label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: #333;
}
.plot-options select {
	padding: 3px 7px;
	background: #f9f9f9;
	color: #41639b;
	border-radius: 4px;
	border: 1px solid #c9d0e5;
	outline: 0;
	font-size: 14px;
	font-family: 'Open Sans';
}
.popup-footer {
	background: #eee;
	padding: 5px;
}
.popup-footer a {
	position: relative;
    display: inline-block;
    padding: 4px 7px;
    background: #f9f9f9;
    color: #41639b;
    border-radius: 4px;
    border: 1px solid #c9d0e5;
}
.popup-footer a.selected {
    background: #41639b;
    color: #fff;
}
.popup-footer a.disabled {
    cursor: not-allowed;
    background: #eee;
    color: #999;
    border-color: #ccc;
}
[data-action="show-code"][data-error]:after {
    content: '!';
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0px 6px;
    background: #ba0000;
    color: #fff;
    font-size: 11px;
    border-radius: 12px;
}
.popup-footer select {
    display: inline-block;
    padding: 3px 7px;
    background: #f9f9f9;
    color: #41639b;
    border-radius: 4px;
    border: 1px solid #c9d0e5;
    outline: 0;
    line-height: 0;
    font-size: 14px;
    font-family: 'Open Sans';
}
.popup-footer a + a {
    margin-right: 5px;
}
.popup .overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.1);
}
.popup .overlay .progress {
	float: none;
	top: 46%;
	margin: 0 auto;
}
.popup .overlay a {
	color: #555;
	cursor: pointer;
	background: #eee;
	padding: 2px 5px;
	border-radius: 5px;
}
.popup .legend-hover {
	top: 5px;
	right: -140px;
}
.plot.loading a {
	cursor: wait;
}
.panels {
	position: absolute;
	user-select: none;
	width: 100%;
	bottom: 0;
	z-index: 10;
	background: #222;
}
.panels .tabs {
	position: absolute;
	bottom: 100%;
	right: 0;
}
.panels .tabs [data-tab] {
	background: #222222;
	opacity: 0.8;
	color: #fff;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 5px 0 0 0;
	display: inline-block;
	margin-left: 1px;
	font-size: 15px;
	font-weight: 300;
	line-height: 24px;
	text-decoration: underline;
}
.panels .tabs [data-tab].selected {
	opacity: 1;
	text-decoration: none;
}
.minimized-tables .popup .cols, .minimized-tables .popup .content, .minimized-tables .popup .img-content, .minimized-tables .popup-footer, .minimized-tables .popup .form-footer {
	display: none;
}
.minimized-tables {
	position: absolute;
	bottom: 101%;
	height: 50px;
	width: 60%;
	left: 5px;
}
.minimized-tables .popup {
	height: auto !important;
	left: auto;
	width: 220px;
	position: relative;
	right: auto;
	margin-right: 5px;
	float: left;
}
.minimized-tables .popup h3 {
	font-size: 15px;
	font-weight: 300;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}
[data-tab] select {
	background: #ffffff88;
	font-family: inherit;
	font-size: inherit;
	border: 1px solid #41639b;
	outline: 0;
	margin-left: 7px;
	height: 24px;
}
.variants-plot {
	border-bottom: 1px solid #999;
}
.timeline-plot rect {
	stroke: #333333;
}
.panel .axis-label {
	position: absolute;
	width: 100%;
	font-size: 13px;
	text-align: center;
}
.panel .axis-label.label-x {
	bottom: -25px;
}
.panel .axis-label.label-y {
	transform: rotate(-90deg);
	transform-origin: 0 100%;
	left: -5px;
	bottom: -50%;
}
.panel .axis-label.label-y {
	width: 5%;
}
.panel .axis-tick {
	position: absolute;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.panel .axis-tick.ymax, .panel .axis-tick.ymin, .panel .axis-tick.min {
	left: 3px;
	opacity: 0.8;
}
.panel .axis-tick.ymax {
	top: 3px;
}
.panel .axis-tick.ymin {
	bottom: 3px;
}
.panel .axis-tick.xmin, .panel .axis-tick.xmax, .panel .axis-tick.min {
	bottom: -20px;
}
.panel .axis-tick.xmax {
	right: 0;
}
[data-tab-content="timeline"] .axis-tick.ymax, [data-tab-content="timeline"] .axis-tick.ymin {
	display: none;
}
.text {
	flex: 4;
	padding: 20px 0;
}
.text .section {
	margin: 0 0 40px;
}
.text h2 {
	font-size: 28px;
	font-weight: 300;
	margin: 0 0 10px;
}
.text h3 {
	font-size: 22px;
	font-weight: 300;
	margin: 0 0 8px;
}
.text p {
	line-height: 1.6;
	margin: 0 0 20px;
}
.text .figure {
	margin: 0 0 20px;
}
.text .figure img {
	width: 100%;
}
.toc {
	flex: 1;
	padding: 20px 0;
}
.toc .guide {
	position: fixed;
}
.toc h3 {
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 10px;
}
.toc ol {
	padding-left: 15px;
	line-height: 2;
}
.footer {
	user-select: none;
	margin: 20px 0;
	text-align: center;
}
.code-console {
    display: none;
    position: fixed;
    bottom: 0;
    height: 300px;
    width: 100%;
    z-index: 1001;
    background: #272822;
    box-shadow: 0px -1px 7px #00000040;
}
.code-console .resize {
    height: 10px;
    left: 0;
	z-index: 100;
    width: 100%;
    cursor: ns-resize;
    position: absolute;
    top: -32px;
    user-select: none;
}
.code-console.show {
	display: block;
}
.code-console .header {
    background: #eee;
    font-size: 14px;
	overflow: hidden;
    width: 100%;
    padding: 4px 5px;
	position: absolute;
	height: 28px;
	top: -28px;
}

.code-console .commands a {
    padding: 3px 8px;
    font-size: 13px;
}

.code-console .title {
    float: left;
}

.code-console .commands a:before {
    font-size: 11px;
    margin-right: 4px;
}
.code-console .errors>div {
    white-space: pre-wrap;
    font-size: 12px;
    font-family: monospace;
}
.code-console .errors {
	display: none;
    padding: 8px 15px;
    background: #272822;
    color: #fff;
	height: 100%;
	overflow-y: auto;
}
.code-console.show-errors .errors {
	display: block;
}
.code-console.show-errors .code {
	display: none;
}
.code-console .errors-meta a {
    padding: 0 5px;
    font-size: 13px;
    margin-left: 5px;
    color: #ba0000;
    font-weight: 400;
    text-decoration: underline;
    font-family: monospace;
}
.code-console .errors-meta a:before {
    content: 'X';
    color: #fff;
    display: inline-block;
    position: relative;
    background: #ba0000;
    border-radius: 50%;
    padding: 3px 5px;
    font-size: 7px;
    margin-right: 5px;
    top: -2px;
}
@media (max-width: 1600px) {
	.popup {
		width: 70%;
		left: 15%;
		top: 10%;
	}
}
@media (max-width: 1200px) {
	.popup {
		width: 80%;
		left: 10%;
		top: 10%;
	}
}
.form .cluster-fields {
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
}
.form .cluster-field {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 36px;
	padding: 0 12px;
	border-top: 1px solid #eee;
}
.form .cluster-field>label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	cursor: pointer;
}
.form .cluster-field input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: none;
	margin: 0;
	cursor: pointer;
}
.form .cluster-field input.weight {
	width: 70px;
	flex: none;
	text-align: right;
}
.form .cluster-field.header {
	background: #f5f5f5;
	border-top: 0;
	border-radius: 3px 3px 0 0;
}
.form .cluster-field.header>label {
	font-weight: bold;
	cursor: default;
}
.form .cluster-field.header .weight-header {
	width: 70px;
	flex: none;
	text-align: right;
	font-weight: bold;
}
.form .cluster-add {
	margin-bottom: 15px;
}
.form .cluster-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	clear: both;
}
.form .cluster-actions .button {
	float: none;
	margin: 0;
	min-width: 100px;
	text-align: center;
}
.button.working {
	pointer-events: none;
	position: relative;
	color: transparent;
	opacity: 0.8;
}
.button.working:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	margin: -8px 0 0 -8px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: rotate 0.8s linear infinite;
}
.column-chooser {
	position: relative;
	display: inline-block;
	float: right;
}
.column-chooser .column-list {
	display: none;
	position: absolute;
	bottom: 100%;
	right: 0;
	z-index: 200;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: 1px 1px 7px rgb(0 0 0 / 15%);
	max-height: 300px;
	overflow-y: auto;
	min-width: 220px;
	padding: 6px 10px;
}
.column-chooser.show .column-list {
	display: block;
}
.column-chooser .column-list label {
	display: flex;
	align-items: center;
	gap: 7px;
	line-height: 24px;
	cursor: pointer;
	white-space: nowrap;
}
