:root {
	/* Corporate palette */
	--opsi-magenta: #cb1e58;
	--opsi-magenta-dark: #a8164688;
	--opsi-black: #3f3f3e;
	--opsi-gray-dark: #4b4b49;
	--opsi-blue: #3f5aa6;
	--opsi-blue-dark: #2d4178;
	--opsi-gray-1: #b2b2b2;
	--opsi-gray-2: #e4e4e3;
	--opsi-gray-light: #e1e1e1;
	--opsi-white: #ffffff;
	--error: #bd1e1e;

	/* Derived UI tokens */
	--bg-page: #f4f4f3;
	--bg-card: #ffffff;
	--border-soft: #e4e4e3;
	--border-strong: #b2b2b2;
	--text-muted: #6c6c6a;
	--row-stripe: #f7f8fb;
	--row-hover: #fbeef3;
	--shadow-sm: 0 1px 3px rgba(63, 63, 62, 0.08);
	--shadow-md: 0 4px 14px rgba(63, 63, 62, 0.10);
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 8px;

	/* Fonts (corporate, with graceful fallbacks) */
	--font-header: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "Droid Sans Mono", "DejaVu Sans Mono", "Consolas", "Courier New", monospace;
}

html {
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
	font-family: var(--font-body);
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	width: 100%;
	margin: 0px;
	padding: 0px;
	background-color: var(--bg-page);
	color: var(--opsi-black);
	line-height: 1.5;
}

p {
	font-size: 15px;
}

#welcome-image {
	height: 40px;
	width: auto;
}

#interface-login-image {
	display: block;
	margin: 0 auto 8px auto;
	width: 200px;
	height: auto;
}

#interface-header-image {
	height: 40px;
	width: auto;
}

a:link,
a:visited,
a:active {
	color: var(--opsi-blue);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--opsi-magenta);
	text-decoration: none;
}

li {
	list-style-type: none;
}

div#welcome ul li,
div#tab-links ul li,
.content ul li {
	list-style-type: none;
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
}

div#welcome ul li::before,
div#tab-links ul li::before,
.content ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.6em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--opsi-magenta);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-header);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--opsi-black);
	line-height: 1.25;
}

.header {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	width: 92%;
	max-width: 1600px;
	margin: 0 auto 28px auto;
	padding: 14px 0 12px 0;
	border-bottom: 3px solid var(--opsi-magenta);
}

.header-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.header-title {
	font-size: 20px;
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.header-version {
	color: var(--opsi-magenta);
	font-size: 15px;
}

.header-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-left: auto;
}

.header-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: 3px 10px;
	font-size: 13px;
	box-shadow: var(--shadow-sm);
	max-width: 100%;
}

.header-meta-label {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
}

.header-meta-value {
	font-family: var(--font-mono);
	color: var(--opsi-black);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.header-logout-button:link,
a.header-logout-button:visited,
a.header-logout-button:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--opsi-magenta);
	color: #fff;
	border: 1px solid var(--opsi-magenta);
	border-radius: var(--radius-md);
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

a.header-logout-button:hover,
a.header-logout-button:focus {
	background: #fff;
	color: var(--opsi-magenta);
}

h1 {
	font-size: 20px;
	margin: 0;
	color: var(--opsi-black);
}

h2 {
	font-size: 15px;
	color: var(--opsi-black);
}

h3 {
	font-size: 17px;
	color: var(--opsi-black);
	margin-top: 28px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--opsi-magenta);
}

h4 {
	font-size: 14px;
	color: var(--opsi-black);
	margin: 4px 0 14px 0;
}

h5 {
	font-size: 13px;
	color: var(--opsi-gray-dark);
}

.content {
	width: 92%;
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
}

.overlay-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.overlay-backdrop.active {
	display: flex;
}

.overlay-dialog {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	padding: 28px;
	min-width: 320px;
	max-width: 600px;
}

.overlay-title {
	margin: 0 0 12px 0;
	color: var(--opsi-magenta);
	font-size: 16px;
}

.overlay-message {
	margin: 0 0 20px 0;
}

.overlay-body {
	margin: 0 0 20px 0;
}

.overlay-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

#link-list {
	width: 250px;
	margin: 50px auto 0px auto;
	font-size: 20px;
}

#jsonrpc-method-doc {
	margin: 0px 0px 0px 20px;
	font-size: 13px;
}

.jsonrpc-deprecated-method {
	color: var(--error);
}

#jsonrpc-request-table>tr>td {
	padding-right: 5px;
}

#jsonrpc-request-table>tr>td>input,
select {
	width: 500px;
}

.adminpage-box {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: 22px 26px;
	margin: 18px 0px;
	overflow: auto;
}

.jsonrpc-request,
.jsonrpc-result,
.json-result,
.redis-result,
.config-values,
.route-values,
.memory-values,
.messagebus-result {
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.55;
	background: #f6f7f9;
	color: var(--opsi-black);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	margin: 16px 0px;
	overflow: auto;
}

#jsonrpc-request-error {
	font-size: 14px;
	color: var(--error);
	margin: 5px 0px 0px 5px;
}

.rpc-table,
.audit-log-table,
.session-table,
.user-table,
.host-table,
.locked-products-table,
.addon-table {
	table-layout: auto;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin: 6px 0 16px 0;
	font-family: var(--font-body);
}

.rpc-th,
.audit-log-th,
.session-th,
.user-th,
.host-th,
.locked-products-th,
.addon-th,
.failed-addon-th {
	font-family: var(--font-header);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 700;
	text-align: left;
	padding: 11px 14px;
	color: var(--opsi-white);
	background-color: var(--opsi-black);
	border: none;
	border-bottom: 2px solid var(--opsi-magenta);
	white-space: nowrap;
}

.rpc-td,
.audit-log-td,
.session-td,
.user-td,
.host-td,
.locked-products-td,
.addon-td,
.failed-addon-td,
.error-addon-td,
.rpc-error-td,
.rpc-deprecated-td {
	font-size: 13px;
	text-align: left;
	padding: 9px 14px;
	color: var(--opsi-black);
	border: none;
	border-bottom: 1px solid var(--border-soft);
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.rpc-table tr:nth-child(even) td,
.audit-log-table tr:nth-child(even) td,
.session-table tr:nth-child(even) td,
.user-table tr:nth-child(even) td,
.host-table tr:nth-child(even) td,
.locked-products-table tr:nth-child(even) td,
.addon-table tr:nth-child(even) td {
	background-color: var(--row-stripe);
}

.rpc-table tr:hover td,
.audit-log-table tr:hover td,
.session-table tr:hover td,
.user-table tr:hover td,
.host-table tr:hover td,
.locked-products-table tr:hover td,
.addon-table tr:hover td {
	background-color: var(--row-hover);
}

.rpc-error-td {
	color: var(--opsi-magenta);
}

.rpc-deprecated-td {
	color: #c2660a;
}

.mfa-active {
	color: #2e7d32;
}

.mfa-inactive-warn {
	color: #c2660a;
}

.user-connected,
.host-connected {
	color: #2e7d32;
}

.failed-addon-th {
	background-color: var(--opsi-magenta);
	border-bottom-color: #8e1540;
}

.error-addon-td {
	color: var(--error);
}

/* Style the tab */
.tab {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	background-color: var(--opsi-black);
	border-radius: var(--radius-md);
	margin-top: 10px;
	box-shadow: var(--shadow-sm);
}

/* Style the buttons that are used to open the tab content */
.tablink {
	color: var(--opsi-gray-2);
	font-family: var(--font-header);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 11.5px;
	font-weight: 600;
	padding: 13px 15px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.tablink:link,
.tablink:visited {
	color: var(--opsi-gray-2);
}

.tablink:hover {
	background-color: rgba(203, 30, 88, 0.20);
	color: var(--opsi-white);
}

.tablink:active,
.tablink.active {
	color: var(--opsi-white);
	background-color: var(--opsi-magenta);
	border-bottom-color: var(--opsi-white);
}

/* Style the tab content */
.tabcontent {
	display: none;
	padding-bottom: 25px;
}

.fitheight {
	height: calc(100vh - 280px);
}

.maximize {
	position: fixed;
	top: 0;
	left: 0;
	width: calc(100vw - 10px);
	height: calc(100vh - 60px);
	padding-left: 10px;
	background-color: #f1f1f1;
}

.json_string {
	color: green;
}

.json_number {
	color: darkorange;
}

.json_boolean {
	color: blue;
}

.json_null {
	color: magenta;
}

.json_key {
	color: red;
}

/* Log viewer */
.LEVEL_SECRET {
	color: #6e5a00;
}

.LEVEL_TRACE {
	color: #8b8f8a;
}

.LEVEL_DEBUG {
	color: #d0d7cf;
}

.LEVEL_INFO {
	color: #eeeeec;
}

.LEVEL_NOTICE {
	color: #8ae234;
}

.LEVEL_WARNING {
	color: #f6b925;
}

.LEVEL_ERROR {
	color: #c90000;
}

.LEVEL_CRITICAL {
	color: #ff0000;
}

.LEVEL_ESSENTIAL {
	color: #34e2e2;
}

#log-level-filter {
	max-width: 60px;
}

#log-settings {
	display: flex;
	margin: 15px 0px 0px 0px;
}

.log-setting {
	margin: 0px 25px 0px 0px;
}

#log-container {
	width: 100%;
	height: calc(100% - 50px);
	margin: 10px;
	overflow: scroll;
	line-height: 1.0;
	background-color: black;
	color: white;
}

#log-msg-container {
	position: absolute;
	width: 400px;
	height: 50px;
	top: 50%;
	left: calc(50% - 200px);
	font-size: 24px;
	font-weight: bold;
	background-color: #000000aa;
	display: flex;
	align-items: center;
	text-align: center;
	justify-content: center;
	visibility: hidden;
}

.log-line {
	display: inline-table;
	white-space: nowrap;
	clear: both;
	float: left;
	font-family: monospace;
	height: 1.2em;
}

.log-line-hidden {
	display: none;
}

.log-record {
	display: flow-root;
	white-space: pre;
}

.log-record-control {
	display: inline-flex;
	float: left;
	width: 5em;
	user-select: none;
	overflow: hidden;
	height: 1.2em;
}

.log-record-collapse {
	display: inline-block;
	padding-left: 5px;
	width: 1em;
}

.log-line-multiline>*>.log-record-collapse::after {
	content: "⯆";
}

.log-line-multiline-collapsed>*>.log-record-collapse::after {
	content: "⯈";
}

.log-record-line-id {
	display: inline-block;
	width: 3em;
	text-align: right;
	color: #666666;
}

.log-line-multiline-collapsed>*>.log-record-message {
	display: inline-flex;
	height: 1.2em;
	overflow: hidden;
}

#terminal-xterm {
	width: 100%;
	height: 100%;
	margin-top: 10px;
}

#tab-terminal {
	height: auto;
}

#terminal {
	margin-top: 10px;
	margin-bottom: 25px;
}

#terminal-upload {
	padding: 5px 0px 25px 0px;
}

#terminal-file-upload {
	display: none;
}

.terminal-file-upload {
	cursor: pointer;
}


#terminal-control {
	font-size: 0.9em;
	line-height: 2.1;
}

#terminal-control label {
	margin-right: 8px;
}

#terminal-control select,
#terminal-control input[type=text] {
	margin-right: 25px;
}

#terminal-control .terminal-file-upload {
	display: inline-block;
	margin-top: 12px;
	margin-right: 0;
}

.upload-active {
	animation-name: upload-bg-color;
	animation-duration: 1s;
	animation-iteration-count: infinite;
}

@keyframes upload-bg-color {
	0% {
		background-color: #00000000;
	}

	50% {
		background-color: #ffffff55;
	}

	100% {
		background-color: #00000000;
	}
}

table tbody tr td {
	font-size: 14px;
}

button,
input[type=button],
input[type=submit] {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--opsi-white);
	background-color: var(--opsi-blue);
	border: 1px solid var(--opsi-blue);
	border-radius: var(--radius-sm);
	padding: 8px 16px;
	margin-top: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover {
	background-color: var(--opsi-blue-dark);
	border-color: var(--opsi-blue-dark);
}

button:active,
input[type=button]:active,
input[type=submit]:active {
	background-color: var(--opsi-blue-dark);
	transform: translateY(1px);
}

button:disabled,
input[type=button]:disabled,
input[type=submit]:disabled {
	background-color: var(--opsi-gray-1);
	border-color: var(--opsi-gray-1);
	cursor: not-allowed;
}

input[type=text],
input[type=password],
input[type=number],
input[type=search],
input[type=email],
select,
textarea {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--opsi-black);
	background-color: var(--opsi-white);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: 7px 10px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--opsi-magenta);
	box-shadow: 0 0 0 3px rgba(203, 30, 88, 0.15);
}

input[type=file] {
	font-family: var(--font-body);
	font-size: 13px;
}

input[type=checkbox],
input[type=radio] {
	accent-color: var(--opsi-magenta);
	width: 15px;
	height: 15px;
	vertical-align: middle;
	cursor: pointer;
}

label {
	font-size: 14px;
}

button.loading,
input.loading {
	background-image: linear-gradient(to right, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
	background-size: 200% 100%;
	animation: loading 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	opacity: .45;
	pointer-events: none;
}


@keyframes loading {
	0% {
		background-position: 0;
	}

	50% {
		background-position: -30%;
	}

	80% {
		background-position: -100%;
	}

	100% {
		background-position: -200%;
	}
}


.table-loading-container {
	position: relative;
}

.audit-log-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	margin-bottom: 16px;
}

.audit-log-filters label,
.audit-log-filter-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: var(--text-muted);
}

.audit-log-filters select,
.audit-log-filters input {
	width: 260px;
	padding: 6px 8px;
	font-size: 14px;
}

.multi-select-dropdown {
	position: relative;
	width: 260px;
}

.multi-select-dropdown-button {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 7px 32px 7px 10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	color: var(--opsi-black);
	background-color: var(--opsi-white);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.multi-select-dropdown-button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--opsi-gray-dark);
	transform: translateY(-40%);
}

.multi-select-dropdown-button:hover,
.multi-select-dropdown-button:focus {
	color: var(--opsi-black);
	background-color: var(--opsi-white);
	border-color: var(--opsi-magenta);
	box-shadow: 0 0 0 3px rgba(203, 30, 88, 0.15);
}

.multi-select-dropdown-menu {
	display: none;
	position: fixed;
	z-index: 1000;
	min-width: 260px;
	max-height: 260px;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 6px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
}

.audit-log-filters .multi-select-dropdown-item {
	display: flex;
	align-items: center;
	flex-direction: row;
	gap: 8px;
	padding: 7px 8px;
	border-radius: var(--radius-sm);
	color: var(--opsi-black);
	cursor: pointer;
	white-space: nowrap;
}

.audit-log-filters .multi-select-dropdown-item:hover {
	background-color: var(--row-hover);
}

.audit-log-filters .multi-select-dropdown-item input {
	width: 15px;
	padding: 0;
	margin: 0;
	flex: 0 0 auto;
}

#audit-log-table-div {
	overflow-x: auto;
	overflow-y: hidden;
}

.table-loading-container:has(> .table-loading-overlay) {
	min-height: 120px;
}

.table-loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.65);
	z-index: 5;
}

.table-loading-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-radius: var(--radius-md);
	background: var(--bg-card);
	box-shadow: var(--shadow-sm);
	color: var(--text-muted);
	font-size: 14px;
	z-index: 6;
}

.table-loading-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--opsi-gray-2);
	border-top-color: var(--opsi-magenta);
	border-radius: 50%;
	animation: table-loading-spin 0.8s linear infinite;
}

@keyframes table-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

@media screen and (max-width: 1090px) {
	.header {
		margin-bottom: 24px;
	}
}

@media screen and (max-width: 650px) {
	.header {
		margin-bottom: 24px;
		gap: 14px;
	}

	.header-title {
		font-size: 17px;
	}

	.content,
	.header {
		width: 94%;
	}

	.adminpage-box {
		padding: 16px 16px;
	}
}

table#licensing-info-table {
	table-layout: auto;
	border-spacing: 0px;
	border-collapse: separate;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin: 6px 0 16px 0;
}

table#licensing-info-table td {
	font-size: 13px;
	border: none;
	border-bottom: 1px solid var(--border-soft);
	text-align: left;
	padding: 9px 14px;
	color: var(--opsi-black);
}

td.licensing-info-key {
	font-weight: bold;
}

.lic-state-valid {
	color: var(--opsi-black);
}

.lic-state-replaced_by_non_core {
	color: #bd1e1e;
}

.lic-state-expired {
	color: #bd1e1e;
}

.lic-state-not_yet_valid {
	color: #bd781e;
}

.lic-state-revoked {
	color: #c24747;
}

.lic-state-invalid_signature {
	color: #bd1e1e;
}

table#licensing-dates-table {
	table-layout: auto;
	border-spacing: 0px;
	border-collapse: separate;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin: 6px 0 16px 0;
}

div#licensing-info,
div#license-upload {
	padding-top: 25px;
	padding-bottom: 25px;
}

table#licensing-dates-table td {
	font-size: 13px;
	border: none;
	border-bottom: 1px solid var(--border-soft);
	text-align: left;
	padding: 9px 14px;
	color: var(--opsi-black);
}

table#licensing-dates-table th {
	font-family: var(--font-header);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 700;
	border: none;
	border-bottom: 2px solid var(--opsi-magenta);
	text-align: left;
	padding: 11px 14px;
	color: var(--opsi-white);
	background-color: var(--opsi-black);
}

table#licensing-dates-table tr:hover td {
	background: var(--row-hover);
}

table#licensing-dates-table td.licensed {
	color: #40853d;
}

table#licensing-dates-table td.close_to_limit {
	color: #bd781e;
}

table#licensing-dates-table td.over_limit {
	color: #bd1e1e;
}

table#licensing-dates-table td.free {
	color: #3d8582;
}

table#licensing-dates-table td.changed {
	font-weight: bold;
}

table#licensing-dates-table th.active,
table#licensing-dates-table td.active {
	background-color: #ecfff0;
}


div#notifications {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 100;
	max-width: 440px;
}

span.close-notification {
	text-align: right;
	float: right;
	cursor: pointer;
	font-weight: 900;
	font-size: 1.2em;
	margin-left: 12px;
	color: var(--text-muted);
}

span.close-notification:after {
	content: "\00d7";
}

div#notifications p {
	display: flex;
	margin-right: 25px;
	white-space: pre-wrap;
}

div#notifications div {
	padding: 14px 18px;
	margin-bottom: 14px;
	background-color: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-left: 4px solid var(--opsi-blue);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	color: var(--opsi-black);
}

div#notifications div.error {
	background-color: var(--bg-card);
	border-left-color: var(--error);
	color: var(--opsi-black);
}

div#notifications div.warning {
	background-color: var(--bg-card);
	border-left-color: #c2660a;
	color: var(--opsi-black);
}

div#notifications div.success {
	background-color: var(--bg-card);
	border-left-color: #2e7d32;
	color: var(--opsi-black);
}


.closebtn {
	margin-left: 15px;
	color: white;
	font-weight: bold;
	float: right;
	font-size: 22px;
	line-height: 20px;
	cursor: pointer;
	transition: 0.3s;
}

.closebtn:hover {
	color: black;
}

body.login {
	height: 100%;
	width: 100%;
	background-color: var(--bg-page);
}

div.login-form {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	width: 350px;
	border: 1px solid var(--border-soft);
	border-top: 4px solid var(--opsi-magenta);
	border-radius: var(--radius-lg);
	padding: 40px 38px 44px 38px;
	background-color: var(--bg-card);
	box-shadow: var(--shadow-md);
}

div.login-form h1 {
	margin: 6px 0 22px 0;
	text-align: center;
	font-size: 18px;
}

div.login-form input {
	font-size: 15px;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	outline: none;
}

div.login-form input:focus {
	border-color: var(--opsi-magenta);
	box-shadow: 0 0 0 3px rgba(203, 30, 88, 0.15);
}

div.login-form button {
	font-size: 15px;
	font-weight: 700;
	margin-top: 24px;
	padding: 11px;
	width: 100%;
	background-color: var(--opsi-magenta);
	border-color: var(--opsi-magenta);
}

div.login-form button:hover {
	background-color: #a8164a;
	border-color: #a8164a;
}

div.login-form button#saml_login_button {
	background-color: var(--opsi-blue);
	border-color: var(--opsi-blue);
	margin-top: 12px;
}

div.login-form button#saml_login_button:hover {
	background-color: var(--opsi-blue-dark);
	border-color: var(--opsi-blue-dark);
}

div#login_error {
	margin-top: 20px;
	color: var(--error);
	text-align: center;
	font-size: 14px;
}


#messagebus-container {
	grid-auto-columns: minmax(40%, 1fr);
	grid-auto-flow: column;
	display: grid;
	column-gap: 25px;
	row-gap: 5px;
	overflow: hidden"

}

#messagebus-message-send,
#messagebus-message-out,
#messagebus-message-in {
	width: 100%;
	margin: 5px 0px 5px 0px;
	background-color: #1e1e1e;
	color: white;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 500;
	border: 1px solid #1e1e1e;
	border-radius: var(--radius-md);
	padding: 12px 14px;
	box-sizing: border-box;
	overflow: auto;
}

#messagebus-message-out,
#messagebus-message-in {
	height: 500px;
}

#messagebus-message-send {
	height: 300px;
}

.message_string {
	color: #ce714d;
}

.message_number {
	color: #90d16d;
}

.message_boolean {
	color: #3fddbe;
}

.message_null {
	color: #a03232;
}

.message_key {
	color: #4ebdf8;
}


.rpc-cache-table {
	table-layout: auto;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin: 6px 0 16px 0;
	font-family: var(--font-body);
}

.rpc-cache-th {
	font-family: var(--font-header);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 700;
	border: none;
	border-bottom: 2px solid var(--opsi-blue-dark);
	text-align: left;
	padding: 11px 14px;
	color: var(--opsi-white);
	background-color: var(--opsi-blue);
}

.rpc-cache-td {
	font-size: 13px;
	border: none;
	border-bottom: 1px solid var(--border-soft);
	text-align: left;
	padding: 9px 14px;
	color: var(--opsi-black);
}

.rpc-cache-table tr:hover td {
	background-color: var(--row-hover);
}


.action-menu-button {
	padding: 5px 12px;
	margin: 0;
	font-size: 12px;
	background-color: var(--opsi-gray-dark);
	border-color: var(--opsi-gray-dark);
}

.action-menu-button:hover {
	background-color: var(--opsi-black);
	border-color: var(--opsi-black);
}

.action-menu-items {
	display: none;
	position: fixed;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 6px;
	z-index: 1000;
	min-width: 220px;
}

.action-menu-item {
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: 13px;
}

.action-menu-item:hover {
	color: var(--opsi-magenta);
	background-color: var(--row-hover);
}