/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

/**
Use a more readable tab size (opinionated).
*/

:root {
  -moz-tab-size: 4;
  tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

body {
	display: grid;
	font-family: Calibri, Arial, Helvetica, sans-serif;
	overflow: hidden;
}

.fa, .far, .fas {
    box-sizing: content-box;
}

.navbar { grid-area: navbar; }
.navbar-extension-container { grid-area: main-container; }
#popup-container { grid-area: main-container; }
#loadbar {grid-area: main-container;}
#menu-container { grid-area: menu-container; }
#main-container { grid-area: main-container; }
#notification { grid-area: main-container; }
#navbar-extension-overlay { grid-area: main-container; }

.container-body {
	width: 100vw;
	height: 100vh;
	display: grid;
	grid-template-areas:
		'menu-container navbar'
		'menu-container loadbar'
		'menu-container extension-container'
		'menu-container main-container';
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto 1fr auto;
}

#menu-container {
    z-index: 5;
    height: 100%;
    width: 0;
    background-color: black;
}

#menu-container.open #menu {
	transform: translateX(0%);
	opacity: 1;
	pointer-events: all;
}
#menu-container.open + #menu-overlay {
	opacity: 1;
	pointer-events: all;
}

#menu {
	z-index: 2;
	height: 100%;
	width: max-content;
	transform: translateX(-110%);
	transition: transform .2s, opacity .2s;
	overflow: auto;
	scroll-behavior: smooth;
	border-right: 1px solid;
}

#side-brand {
	align-items: center;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 3rem;
}

#side-brand > svg {
    margin-bottom: 1rem;
	width: 4rem;
	height: 4rem;
}

#side-brand .title {
    margin: 0;
}

.mini-menu {
    display: flex;
    align-content: center;
    justify-content: center;
    padding-bottom: 1rem;
}

.mini-menu .icon {
    border: 1px solid #757575;
    border-radius: 50%;
    margin: .2rem;
    font-size: .7rem;
	cursor: pointer;
}

.mini-menu .icon:hover {
	border-color: #014cb7;
    background-color: #014cb7;
    color: white;
}

h1 {
	margin-bottom: 1rem;
}

.title {
	display: block;
	font-size: 1.35rem;
    line-height: 1.5rem;
	font-family: "Segoe UI", Roboto, Calibri, Arial, Helveticata, sans-serif;
    margin: 0;
}

#menu-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
    transition: opacity .2s;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

#menu > .menu-list {
	padding: 0 1rem 1rem 1rem;
}

/* `visibility: hidden` to keep sidebar width */
#menu > .menu-list.hidden {
    visibility: hidden;
    height: 0;
    padding: 0 1rem 0 1rem;
}

.menu-list {
	display: grid;
	justify-items: stretch;
	column-gap: .75rem;
	padding: 0 .75rem;
	overflow: hidden;
	opacity: 1;
	grid-template-columns: auto 1fr auto;
    user-select: none;
}

.menu-list * {
    color: inherit;
    text-decoration: inherit;
}

.menu-list [data-columns='2'] + .text {
    grid-column-start: 2;
    grid-column-end: 4;
}

.menu-list > .menu-list {
	padding-left: 1.25rem;
    grid-column-start: 1;
    grid-column-end: 4;
}

.menu-list .icon {
	align-self: center;
    justify-self: center;
    border-radius: 50%;
    padding: 0.75rem;
	width: 1rem;
	height: 1rem;
    text-align: center;
	transition: background-color .2s;
}

.menu-list > .right {
    margin-left: 2rem;
}

.menu-list > .text {
    align-self: center;
    white-space: nowrap;
}

.item-container {
	display: flex;
	flex-direction: column;
}

.menu-list hr {
    width: 100%;
    margin-top: .75rem;
    margin-bottom: .75rem;
    border: none;
    border-bottom: 1px solid;
	grid-column: span 3;
}

.menu-list > *:not(.menu-list) {
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.menu-list > .icon,
.menu-list > .text {
	cursor: pointer;
}

.menu-list > *[data-cr-menu-opened] + * + * {
    transition: transform .5s, background-color .2s;
}

.menu-list > *[data-cr-menu-opened=false] + * + * {
    transform: rotate(270deg);
}

.menu-list > *[data-cr-menu-opened] + * + * + .menu-list {
    transition: height .2s, opacity .2s;
}

.menu-list > *[data-cr-menu-opened=false] + * + * + .menu-list {
    height: 0;
	opacity: 0;
}

.overlay {
	position: fixed;
	background-color: rgba(0, 0, 0, 0.25);
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#popup-container {
	z-index: 0;
	overflow: auto;
	pointer-events: none;
	position: relative;
}

#popup-container .overlay {
    transition: opacity .2s;
    opacity: 0;
}

#popup-container.active .overlay {
    opacity: 1;
}

#popup {
	margin: 2rem;
	margin-top: 0;
	margin-bottom: 2rem;
	background: #f0f0f0;
	box-shadow: 0 0.2rem 0.5rem 0 rgba(0,0,0,.16), 0 0.2rem 1rem 0 rgba(0,0,0,.12);
	pointer-events: all;
	position: absolute;
	right: 0;
	left: 0;
	border-radius: 0 0 .5rem .5rem;
    opacity: 0;
	transform: translateY(-110%);
	transition: transform .2s, opacity .2s;
    max-height: calc(100% - 1rem);
    overflow: auto;
}

#popup-container.active #popup {
    opacity: 1;
	transform: translateY(0%);
}

.navbar span {
    margin-right: 0;
    white-space: pre;
}

i {
	font-size: 1rem;
	padding: .5rem;
	text-align: center;
}

.card .titlebar .icon {
	width: 1rem;
    height: 1rem;
}

.navbar {
	margin: 0;
	display: flex;
	justify-content: space-between;
    width: 100%;
	z-index: 3;
	border-bottom: 1px solid;
}

.navbar .title {
    padding: 0.75rem;
}

.navbar .menu-list {
	grid-template-columns: auto 1fr;
}

.navbar > div {
	display: flex;
}

.navbar > .left {
	margin-left: .75rem;
}

.navbar > .right {
	margin-right: .75rem;
}

.navbar #menu-button {
	padding-right: 0;
}

.navbar #menu-button .menu-list {
	grid-template-columns: auto;
	padding-left: 0;
	padding-right: 0;
}

.navbar .item {
	display: grid;
	align-content: center;
	padding: .5rem;
	line-height: 2;
	cursor: pointer;
    text-decoration: none;
}

#profile-image {
    justify-content: center;
    align-items: center;
    display: flex;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background-color: white;
    border: 1px solid #757575;
}

#main-container {
	overflow: auto;
	scroll-behavior: smooth;
}

.main [data-page] {
	scroll-margin: 2rem;
}

.navbar-extension-container {
	z-index: 2;
	pointer-events: none;
	max-height: 100vh;
}
.navbar-extension {
	position: fixed;
	right: 0;
	z-index: 1;
}

.navbar-extension > .sidenav {
	position: fixed;
	right: 0;
	max-height: calc(100% - 5rem);
	border: 1px solid;
	border-top-width: 0;
	padding: 1rem;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	border-radius: 0 0 0 .5rem;
	transform: translateY(-110%);
	transition: transform .2s, opacity .2s;
	overflow: auto;
	scroll-behavior: smooth;
}
.navbar-extension > .sidenav.active {
	transform: translateY(0%);
}

.navbar-extension > .sidenav > .title, 
.navbar-extension > .sidenav > .subtitle {
    margin: 0 1rem 1rem 1rem;
}

.navbar-extension > .sidenav > .menu-list {
	padding-right: .75rem;
}
#navbar-extension-overlay {
    transition: opacity .2s;
    opacity: 0;
    pointer-events: none;
	z-index: 1;
}

.active {
	opacity: 1 !important;
	pointer-events: all !important;
}

table {
	width: calc(100% + 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
	margin-left: -1rem;
	margin-right: -1rem;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: break-word;
	border-spacing: 0;
}

table:not(:last-child) {
	margin-bottom: 2rem;
}

table th, table td {
	border-width: 0;
	padding: .25rem;
}

table th {
    text-align: right;
    width: 50%;
}

table small.text-muted {
    margin-left: 1rem;
}

.card {
	margin-top: 2rem;
	margin-bottom: 2rem;
	margin-left: 2rem;
	margin-right: 2rem;
	border: 1px solid;
    border-radius: .5rem;
    overflow: hidden;
}

.card > .titlebar {
	border-bottom: 1px solid;
}

.card > .titlebar,
.card .footer,
#popup-footer {
	display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

.card .card-block:last-child {
	padding-bottom: 1rem;
}

#popup-footer,
.card .footer {
	margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid;
}
#popup-footer {
    border-radius: 0 0 .5rem .5rem;
}

.card .titlebar > *,
.card .footer > *,
#popup-footer > * {
    display: flex;
	flex-wrap: wrap;
    gap: .5rem;
}

.card .titlebar .left,
.card .footer .left {
	justify-content: flex-start;
    margin-right: auto;
}
.card .titlebar .right,
.card .footer .right {
	justify-content: flex-end;
    margin-left: auto;
}

.card > .titlebar .item {
	display: flex;
	line-height: 2;
}

.card > .titlebar > .right > .item {
	cursor: pointer;
}

.card > .titlebar > * > .item > span {
	margin-left: .25rem;
	margin-right: .5rem;
}

.card-block {
	padding-top: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.center-text {
    text-align: center;
}

.title i {
	padding-right: 1rem;
    padding-left: 0;
	width: 1rem;
    text-align: center;
}

.subtitle {
    margin-top: .25rem;
    margin-bottom: 1rem;
}

button {
	display: inline-block;
    white-space: nowrap;
    padding: .3rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    border: 1px solid;
	border-radius: .2rem;
}
button:hover {
	border: 1px solid;
}

button.round {
	border-radius: 1.5rem;
}
button.primary {
    border-color: #014cb7;
    border-width: 1px;
}
button.primary:hover {
	background-color: #014cb7;
    color: white;
}

input[type="text"], 
input[type="password"],
input[type="email"] {
    border-radius: .25rem;
    padding: 0.35rem .5rem;
    background: #fff;
    color: #333;
    outline: none;
    border: 1px solid #d1d1d1;
}

#loadbar {
	z-index: 3;
	pointer-events: none;
	position: relative;
	overflow: hidden;
}

#loadbar:after {
	content: " ";
	display: block;
	height: 2px;
	width: 0;
	position: absolute;
	animation: loading 3s linear infinite;
	background: #014cb7;
}

#loadbar.loading:after {
	width: 25%;
	animation: loading 3s linear infinite;
}

#loadbar.done:after {
    width: 100%;
    animation: loadingDone .5s;
    animation-fill-mode: forwards;
}

@keyframes loading {
    from {
        left:-25%;
    }
    to {
        left:100%;
    }
}

@keyframes loadingDone {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#notification {
    z-index: 2;
    display: grid;
    grid-template-rows: 1fr auto;
    pointer-events: none;
}

#notification > div {
	margin: 2rem;
	text-align: center;
    grid-row: 2;
}

#notification > div > div {
	display: inline-block;
	padding: .5rem 1rem;
	border-radius: .5rem;
	backdrop-filter: blur(.1rem);
	animation: backgroundPulse 2s infinite alternate;
	transition: opacity .5s;
	border: 1px solid;
    opacity: 1;
}

#notification > div > div.hidden {
    opacity: 0;
}

.timeline {
	grid-template-columns: auto auto 1fr;
	display: grid;
	justify-items: stretch;
	justify-content: center;
	width: 49rem;
}

.timeline .datetime {
	text-align: right;
	margin-left: 3rem;
	margin-right: 1rem;
}

.timeline .datetime .time,
.timeline .event .message {
	font-size: 1.2rem;
	font-weight: bold;
}

.timeline .status {
	position: relative;
	width: 1.5rem;
}

.timeline .status .line {
	border-left: 4px solid #c8c8c8;
	height: 100%;
	width: 100%;
	display: block;
	position: absolute;
	margin-left: 10px;
	margin-top: 18.5px;
}

.timeline .status .indicator {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 4px solid #c8c8c8;
	position: absolute;
	background: #ededed;
	z-index: 99;
	display: flex;
	justify-content: center;
	align-items: center;
}

.timeline .status .indicator .inner {
	width: 8px;
	height: 8px;
	border-radius: 8px;
}

.timeline .status.info .indicator .inner {
	background-color: #014cb7;
}

.timeline .status.error .indicator {
	border-color: #540101;
}
.timeline .status.error .indicator .inner {
	background-color: #ee1111;
}

.timeline .status.warning .indicator {
	border-color: #543F01;
}
.timeline .status.warning .indicator .inner {
	background-color: #ab6c11;
}

.timeline .event {
	/* overflow: hidden; */
	margin-left: 1rem;
	margin-bottom: 1rem;
}

.timeline .event.last {
	margin-bottom: 0;
}

.timeline .event .properties {
	margin-top: 1rem;
}

.json-viewer {
	border: 1px solid red;
}

.timeline .stacktrace {
	margin-top: 1rem;
}

.timeline [data-hidden="true"] .content {
	display: none;
}

.timeline [data-hidden="true"] .icon .fa-inverse {
	transform: rotate(270deg);
}

.timeline .toggler .icon {
	font-size: .5rem;
	margin-right: .25rem;
}

.timeline .content {
	white-space: pre-wrap;
	overflow-wrap: break-word;
	margin-top: .25rem;
	margin-left: 0.5rem;
	border-left: .25rem solid grey;
	padding-left: .75rem;
}

@keyframes fadeIn {
	0%   {opacity: 0;}
	100% {opacity: 1;}
}


@keyframes fadeOut {
	0%   {opacity: 1;}
	100% {opacity: 0;}
}

html {
	font-size: calc(12px + .25vw);
}

@media only screen and (max-width: 499px) {
	.navbar .right .item {
		grid-template-columns: auto;
	}
	.navbar .right .item .text {
		display: none;
	}
}

@media only screen and (max-width: 699px) {
	.navbar .right .item {
		grid-template-columns: auto;
	}
	.navbar .right .item .text {
		display: none;
	}
	.navbar .right .item .menu-list {
        column-gap: 0;
    }
}

@media only screen and (min-width: 1000px) {
	#menu-container {
		width: initial;
	}
	#menu-container #menu {
		transform: translateX(0%);
		width: initial;
		transition: initial;
	}
	#menu-container + #menu-overlay {
		opacity: 0;
	}
	#menu-container + * + .navbar #menu-button {
		display: none;
	}

	#menu-container.open + #menu-overlay {
		opacity: 0;
		pointer-events: none;
	}
}

@media only screen and (min-width: 2000px) {
    html {
        font-size: calc(12px + .30vw);
    }
}

@media only screen and (min-width: 3000px) {
    html {
        font-size: calc(12px + .35vw);
    }
}

@media only screen and (min-width: 4000px) {
    html {
        font-size: calc(12px + .40vw);
    }
}

@media only screen and (min-width: 6000px) {
    html {
        font-size: calc(12px + .45vw);
    }
}

/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-cyrillic.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-greek.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
