/* Version 1.3.1 */
/**
* GLOBAL THEME
*/

:root {
	--row-width: 95em;
	--sidebar-width: 20em;

	--screen-md: 40em;
	--screen-lg: 60em;
	--screen-xl: 80em;

	--color-neutral: #4299e1;
	--color-error: #e53e3e;
	--color-warning: #ed8936;
	--color-success: #48bb78;
	--color-focus: #347ebb;

	--color-blue: #4299e1;
	--color-green: #48bb78;
	--color-orange: #ed8936;
	--color-red: #e53e3e;

	--accent-primary: #0053a0;
	--accent-secondary: #e2383f;
	--color-primary: #3d4b60;

	--inputRadius: 0.5em;
	--shadow-light: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
}

body {
	background: var(--color-background, #eee);
	color: var(--text-color);
	font-size: var(--text-size, 16px);
	line-height: var(--text-lineHeight, 1.4);
	font-family: var(--text-font, "Open Sans", Arial, sans-serif);
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
}

button:not(.dw-controlButton):focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--color-focus);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
	color: var(--heading-color);
	font-size: var(--heading-size, 16px);
	font-family: var(--heading-font, "Open Sans", Arial, sans-serif);
	font-weight: var(--heading-weight, bold);
	line-height: var(--heading-lineHeight);
	margin: 0 0 0.5em;
}

p {
	color: var(--color-primary);
	margin-bottom: 1em;
	line-height: 1.5;
}

hr {
	border: none;
	border-top: 0.1em solid #ddd;
	margin: 1.5em 0;
}

.section-title h1 {
	font-size: 2em;
}

.button {
	border-radius: var(--button-radius, 100em);
	border: var(--button-border, none);
	background-color: var(--button-color, --color-neutral, #4299e1);
	color: var(--button-textColor, #fff);
	transition: background-color 0.3s ease, filter 0.3s ease;
	cursor: pointer;
}

.button:hover:not(:disabled) {
	background-color: var(--button-colorHover, #4299e166);
	color: var(--button-textColorHover, #fff);
}

.button:disabled {
	background-color: #8d8d8d;
	/* pointer-events: none; */
	cursor: not-allowed;
}

/* Content Navigation */
.content-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	background-color: var(--sidebar-background);
	color: var(--sidebar-textColor, black);
}

.content-nav .logo {
	display: inline-flex;
	align-items: center;
	padding: 0.75em;
}

.content-nav .logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 200px;
}

.content-nav button {
	display: block;
	text-align: center;
	cursor: pointer;
}

.pill {
	background-color: transparent;
	font-weight: bolder;
	border: solid 2px var(--button-color, black);
	color: var(--color-primary);
}

.pill:hover {
	background-color: var(--button-color, black);
	color: white;
}

.content-nav nav {
	position: fixed;
	z-index: 1;
	top: 0;
	right: 0;
	width: 15em;
	height: 100vh;
	overflow-y: auto;
	background: var(--sidebar-background, #515d70);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.3s ease;
	padding-top: 1em;
}

.content-nav nav:focus-within,
.sidebar-open .content-nav nav {
	transform: none;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.content-nav a {
	position: relative;
	padding: 1em 1.5em;
	color: var(--sidebar-textColor, black);
	text-decoration: none;
	font-size: 1.25em;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.content-nav a:hover {
	color: var(--color-focus, --color-blue, black);
}

.content-nav a:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--color-focus);
	display: flex;
	align-items: center;
	justify-items: auto;
	gap: 0.5em;
}

.content-nav li a {
	display: flex;
	align-items: center;
	padding-right: 2em;
}

.content-nav li a:hover::after {
	opacity: 1;
}

.content-nav li a::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	margin-top: -0.5em;
	right: 2em;
	width: 1em;
	height: 1em;
	font-size: 1rem;
	background-color: #fff;
	opacity: 0.2;
	transition: opacity 0.3s ease;
	clip-path: path(
		"M12.73 7.38L5.4.26a.93.93 0 00-1.28 0l-.85.83a.86.86 0 000 1.24L9.06 8l-5.8 5.67a.86.86 0 000 1.24l.85.83c.36.35.93.35 1.28 0l7.33-7.12a.86.86 0 000-1.24z"
	);
}

.content-nav li a svg {
	display: block;
	width: 1em;
	height: 1em;
	margin-right: 1em;
	/* opacity: .15; */
}

.content-nav li a.is-current {
	border-left: 4px solid var(--color-focus, --color-neutral);
}

/* Form Running Actions (Actions/Transforms/Operations) */
.content-nav nav.action-list li {
	margin: 1em 1.5em;
}

.content-nav nav.action-list button {
	display: block;
	width: 100%;
}

.content-nav nav.action-list .logout-list {
	margin: 0;
}

/* Logout Buttons (Menu List / Sidebar) */
.content-nav .logout-button {
	width: calc(100% - 3em);
	padding: 1em 1.5em;
	margin-left: 1.5em;
	display: flex;
	align-items: center;
	justify-items: auto;
	gap: 0.5em;
}

.logout-button svg {
	background-color: rgba(255, 255, 255, 0.15);
	height: 18px;
	width: 18px;
}

.user-actions {
	display: none;
	padding: 1.5em 0;
	margin-top: auto;
	background-color: rgba(255, 255, 255, 0.025);
}

.content-nav .logout-list {
	padding: 1.5em;
}

.user-actions .active-username {
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 1.25em;
	margin-bottom: 1em;
}

.user-actions .active-username.is-shown {
	display: flex;
}

.user-actions .active-username svg {
	display: block;
	font-size: 1.5em;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
}

.username {
    max-width: 226px;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Mobile Menu Toggle */
.nav-toggle {
	color: #fff;
	align-self: center;
	padding: 1em;
	margin: 0.75em;
	background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle svg {
	display: block;
	width: 1em;
	height: 1em;
}

button.nav-overlay {
	display: none;
	position: absolute;
	z-index: 150;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 0;
	transition: background-color 0.3s ease;
	font-size: 0;
}

button.nav-overlay:hover {
	background-color: rgba(0, 0, 0, 0.25);
}

button.nav-overlay:focus {
	box-shadow: none;
}

.sidebar-open button.nav-overlay {
	display: block;
}

/* Screen: Laptop-up */
@media screen and (min-width: 60em) {
	.content-wrap .content-nav {
		width: var(--sidebar-width);
		min-width: var(--sidebar-width);
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-start;
	}

	.content-wrap .content-nav .logo {
		padding: var(--sidebar-logoPadding, 3em 1.5em 2em);
	}

	.content-wrap .content-nav .logo svg {
		max-width: 200px;
	}

	.content-wrap .content-nav nav {
		position: static;
		width: auto;
		background: transparent;
		transition: none;
		transform: none;
		box-shadow: none;
		padding-top: 0;
	}

	.sidebar-open button.nav-overlay {
		display: none;
	}

	.content-nav .logout-list {
		display: none;
	}

	.content-wrap .user-actions {
		display: block;
	}

	body.has-navigation {
		padding-left: var(--sidebar-width);
	}
}

/* Status Tags */
.status-tag {
	background-color: #ddd;
	color: var(--color-primary);
}

.status-tag.status-save,
.status-tag.status-saved {
	background-color: var(--color-warning);
	color: #fff;
}

.status-tag.status-processing {
	background-color: var(--color-neutral);
	color: #fff;
}

.status-tag.status-processed,
.status-tag.status-complete,
.status-tag.status-completed {
	background-color: var(--color-success);
	color: #fff;
}

.status-tag.status-debug {
	background-color: rebeccapurple;
	color: #fff;
}

/* Page Notification */
.notification-container {
	display: none;
	position: fixed;
	z-index: 999;
	top: 100%;
	left: 0;
	width: 100%;
	padding: 0 0.5em;
}

.notification-container.is-shown {
	display: flex;
	justify-content: center;
	align-items: center;
}

.page-notification {
	display: inline-flex;
	align-items: center;
	padding: 0.75em 1em;
	background: var(--color-error);
	color: #fff;
	font-size: 1em;
	border-radius: 0.5em 0.5em 0 0;
	transform: translateY(-100%);
}

.page-notification span {
	display: inline-block;
	padding: 0 0.5em;
	line-height: 1.2;
}

.page-notification button {
	display: none;
	padding: 0.5em 1em;
	margin-left: 0.75em;
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background-color 0.25s ease;
}

.page-notification button:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.page-notification button.is-shown {
	display: block;
}

@media screen and (min-width: 60em) {
	.notification-container {
		top: auto;
		bottom: 100%;
	}

	.page-notification {
		border-radius: 0 0 0.5em 0.5em;
		transform: translateY(100%);
	}
}

/* Layout Skeletons */
.skeleton-block {
	position: relative;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.05);
	border-radius: var(--inputRadius);
	height: 10em;
	/* Default height */
}

.skeleton-block::after {
	content: "";
	position: absolute;
	display: block;
	top: 0;
	right: -100%;
	width: 50%;
	height: 100%;
	background: white;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 1) 25%,
		rgba(255, 255, 255, 1) 75%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: loading-skeleton 2s infinite linear;
}

.login-details .skeleton-block {
	height: unset;
}

.watermark {
	position: absolute;
	bottom: 8%;
	left: 0;
	right: 0;
	height: 50px;
	font-size: 50px;
	text-align: center;
	color: rgba(112, 112, 112, 0.5);
	text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.4);
	pointer-events: none;
	user-select: none;
	z-index: 2;
}

.sideways {
	writing-mode: vertical-lr;
	left: unset;
	right: 10px;
	width: 50px;
	height: unset;
}

#reset-password {
	padding: 5px;
	margin: 0 auto 1em;
	text-align: center;
	text-decoration-line: underline;
	opacity: .6;
}

#login-guest-button {
	
}

/* Loading dots */
.loading-dots {
	position: relative;
	line-height: 1;
	opacity: 0.25;
}

.loading-dots,
.loading-dots::before,
.loading-dots::after {
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	animation: fade-loop 1s infinite;
	background: rgba(0, 0, 0, 1);
}

.loading-dots::before,
.loading-dots::after {
	content: "";
	position: absolute;
	top: 0;
	left: 150%;
	font-size: 1em;
	animation-delay: 0.25s;
}

.loading-dots::after {
	left: 300%;
	animation-delay: 0.5s;
}

/* Animations */
.spin {
	animation: spin 2s linear infinite;
}

.spin-stepped {
	animation: spin 1s steps(8) infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(359deg);
	}
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fade-up {
	0% {
		opacity: 0;
		transform: translateY(5px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes loading-skeleton {
	0% {
		opacity: 0;
		left: -50%;
	}

	50% {
		opacity: 0.5;
		left: 50%;
	}

	100% {
		opacity: 0;
		left: 150%;
	}
}

@keyframes fade-loop {
	0% {
		background: rgba(0, 0, 0, 1);
	}

	50% {
		background: rgba(0, 0, 0, 0.1);
	}
}

