div,
nav,
a,
footer,
button,
input {
	display: flex;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 300;
}

a {
	text-decoration: none;
	color: inherit;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

.container-outer {
	width: 100%;
	height: 100%;
	flex-direction: row;
	align-items: stretch;
	background: #1D3557;
}

.nav-bar {
	flex-direction: column;
	width: 140px;
	align-items: stretch;
	color: #fff;
	padding: 16px;
	gap: 8px;
	flex-shrink: 0;
	z-index: 2;
}

.logo {
	margin: 6px 0 6px 0;
	align-self: center;
}

.nav-link {
	font-weight: 700;
	align-items: center;
	justify-content: center;
	height: 45px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
}

button.nav-link {
	border: 1px solid #8bbfd3;
	background: none;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font-weight: 400;
}

.nav-link:hover {
	background: #2b466d;
}

.nav-link.active {
	background: #314f79;
}

.divider {
	flex-grow: 1;
}

.copyright {
	margin-top: 16px;
	font-size: 14px;
	align-items: center;
	color: #5a78a1;
	flex-direction: column;
}

.copyright>div {
	font-weight: 700;
}

.right-panels {
	flex-grow: 1;
	flex-direction: column;
	align-items: stretch;
	overflow: scroll;
	padding: 16px 16px 16px 0px;
	gap: 16px;
}

.panel-scroll-hider {
	position: absolute;
	width: 100%;
	height: 100px;
	top: -50px;
	background: #1D3557;
}

.container-inner {
	flex-grow: 1;
	border-radius: 10px;
	background: #2f4c74;
	flex-direction: column;
}

.container-inner.scrolling {
	height: 0;
	z-index: 2;
}

.container-inner:not(.sticky) {
	overflow: hidden;
}

.container-inner.shrink {
	flex-grow: 0;
}

.container-inner.sticky {
	border: 1px solid #496fa4;
	position: sticky;
	top: 0;
	z-index: 3;
	filter: drop-shadow(0 0 9px #293a53);
}

.table-scroll {
	flex-grow: 1;
	position: relative;
	overflow-y: scroll;
	justify-content: flex-start;
	flex-direction: column;
	border-radius: 0 0 10px 10px;
}

.title-bar {
	position: relative;
	z-index: 3;
	flex-shrink: 0;
	height: 60px;
	align-items: center;
	padding: 0 8px 0px 16px;
	gap: 8px;
}

.title-text {
	font-size: 20px;
	color: #fff;
	align-items: center;
	gap: 16px;
}

.title-bar .search-bar {
	padding: 8px 12px;
	border: 1px solid #7494c0;
	background: #4e6e9c;
	color: #fff;
	border-radius: 8px;
}

.title-bar .dropdown {
	height: 40px;
	flex-grow: 0;
	color: #fff;
}

.title-bar .button {
	height: 40px;
	padding: 8px 12px;
	border: 1px solid #7494c0;
	background: transparent;
	display: flex;
	align-items: center;
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
}

.title-bar .button:hover {
	background: #415e88;
}

.title-bar .button:active {
	background: #375277;
}

.empty {
	color: #fff;
	padding: 16px;
}

.instances-table {
	min-width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.instances-table tr {
	border-right: 1px solid #ccc;
	height: 44px;
}

.instances-table thead>tr {
	color: #fff;
	z-index: 2;
	border-collapse: separate;
	border-spacing: 0;
	position: sticky;
	position: sticky;
	top: 0;
}

.instances-table thead th {
	background: #4e6e9c;
	position: relative;
}

.instances-table thead th.sortable .caret {
	margin-left: 8px;
	visibility: hidden;
}

.instances-table thead th.sortable:hover {
	background: #5d7daa;
	position: relative;
	cursor: pointer;
}

.instances-table thead th.sortable:hover .caret,
.instances-table thead th.sortable.active .caret {
	visibility: visible;
}

.instances-table thead th:after {
	content: "";
	position: absolute;
	right: -1px;
	top: 0px;
	width: 100%;
	height: calc(100% - 1px);
	border: 1px solid #7494c0;
}

.instances-table thead th:first-child {
	background: #619eb6;
}

.instances-table thead th:first-child.sortable:hover {
	background: #71aec7;
	position: relative;
	cursor: pointer;
}

.instances-table thead th:first-child:after {
	right: -2px;
	border: 1px solid #77b5ce;
}

.instances-table tbody tr:nth-child(odd)>td {
	background-color: #385783;
	border-right: 1px solid #4e6e9c;
	border-bottom: 1px solid #4e6e9c;
}

.instances-table tbody tr:nth-child(even)>td {
	background-color: #2f4c74;
	border-right: 1px solid #4e6e9c;
	border-bottom: 1px solid #4e6e9c;
}

.instances-table tbody tr:nth-child(odd)>td:first-child {
	background-color: #467f96;
	border: none;
}

.instances-table tbody tr:nth-child(even)>td:first-child {
	background-color: #386e83;
	border: none;
}

.instances-table th,
.instances-table td {
	text-align: left;
	padding: 0 12px;
	border-right: 1px solid #4e6e9c;
	color: #fff;
	border-left: none;
	white-space: nowrap;
	background-clip: padding-box;
}

.instances-table td:first-child,
.instances-table th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

.instances-table td:first-child:after,
.instances-table th:first-child:after {
	content: "";
	position: absolute;
	right: -1px;
	top: 0px;
	width: 100%;
	height: calc(100% - 1px);
	border-right: 1px solid #679fb4;
	border-bottom: 1px solid #679fb4;
}

.instances-table th {
	font-weight: 400;
	color: #ddd;
	border-right: 1px solid #fff;
}

.instances-table .actions {
	min-width: 200px;
}

.instances-table .actions>.dropdown {
	height: 32px;
	width: 100%;
}

.instances-table .state>div {
	padding: 4px;
	font-weight: 700;
	border-radius: 4px;
	font-size: 12px;
	justify-content: center;
}


.instances-table .state .stopped,
.instances-table .state .offline,
.instances-table .state .unknown {
	background: #778da9;
}

.instances-table .state .error {
	background: #ef233c;
}

.instances-table .state .error {
	background: #ef233c;
}

.instances-table .state .running {
	background: #43aa8b;
}

.instances-table .state .warning {
	background: #ffc300;
	color: #1D3557;
}

.footer {
	background: #ddd;
	color: #1D3557;
	height: 45px;
	align-items: center;
	padding: 0 16px;
	gap: 16px;
	position: sticky;
	bottom: 0;
	flex-shrink: 0;
}

.chart-row {
	gap: 16px;
}

.chart-row .chart-outer {
	flex-basis: 50%;
	padding: 16px;
	border-radius: 10px;
	background: #2f4c74;
}

.login-outer {
	flex-grow: 1;
	align-items: center;
	justify-content: center;
}

.login {
	display: flex;
	padding: 16px;
	background: #2f4c74;
	border-radius: 10px;
	border: 1px solid #617da5;
	flex-direction: column;
	gap: 16px;
}

.login input {
	padding: 8px;
	width: 300px;
	border: 1px solid #617da5;
	background: #3e5e8b;
	border-radius: 10px;
	color: #fff;
}

.login button {
	padding: 8px 16px;
	border: 1px solid #8bbfd3;
	background: #619eb6;
	border-radius: 10px;
	color: #fff;
	align-self: flex-end;
	cursor: pointer;
}

.login button:hover {
	background: #4b8297;
}

.login button:active {
	background: #325d6e;
}

.login-error {
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #e00;
	color: #fff;
}

.login-error:empty {
	display: none;
}

.event-row {
	gap: 16px;
	min-height: 400px;
	align-items: stretch;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.event-row .container-inner {
	height: auto;
}

.event-row .container-inner .table-scroll {
	max-height: 600px;
}

.event-row tr:hover .delete-event-button-outer {
	display: flex;
}

.event-row tr {
	position: relative;
}

.delete-event-button-outer {
	display: none;
	position: absolute;
	height: 100%;
	top: 0;
	right: 10px;
	align-items: center;
}

.delete-event-button {
	width: 22px;
	cursor: pointer;
	transition: transform 0.1s ease;
}

.delete-event-button:hover {
	transform: scale(1.1, 1.1);
}

.delete-event-button:active {
	transform: scale(0.9, 0.9);
}

.actions-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 300px;
	padding: 16px;
}

.actions-list button {
	position: relative;
	display: block;
	padding: 8px;
	text-align: center;
	cursor: pointer;
	background: none;
	border: 1px solid #7494c0;
	border-radius: 10px;
	color: #fff;
}

.actions-list button:hover {
	background: rgba(255, 255, 255, 0.1);
}

.actions-list button:active {
	background: rgba(255, 255, 255, 0.15);
}

.actions-list button .loader {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: #2f4c74;
	border-radius: 10px;
}

.actions-list button.htmx-request .loader {
	display: flex;
}

.actions-container {
	height: 100%;
	flex-grow: 1;
	display: flex;
	align-items: stretch;
}

.actions-container .right {
	flex-grow: 1;
	background: #375681;
}

.actions-persistent-title {
	color: #fff;
	font-size: 18;
}

.actions-persistent-row {
	gap: 16px;
}

.actions-persistent-row button {
	flex-grow: 1;
}

.actions-persistent-row button.enabled {
	background: #43aa8b;
	border-color: #85dac0;
}