:root {
	--app-bg-color: #f0f0f0;
	--app-fg-color: #777;

	--theme-color-a: #3388d8;
	--theme-color-b: #245c91;
	--theme-color-c: rgb(238, 242, 247);

	--standard-border: 1px solid rgba(0, 0, 0, 0.25);
	--light-border: 1px solid rgba(0, 0, 0, 0.1);
}

@font-face {
	font-family: Main;
	src: url('/fonts/source-sans-pro/SourceSansPro-Regular.ttf');
	font-style: normal;
}

@font-face {
	font-family: Main;
	src: url('/fonts/source-sans-pro/SourceSansPro-Bold.ttf');
	font-weight: bold;
}

@font-face {
	font-family: MainLight;
	src: url('/fonts/source-sans-pro/SourceSansPro-Light.ttf');
	/* font-style: normal; */
}

@font-face {
	font-family: MainBlack;
	src: url('/fonts/source-sans-pro/SourceSansPro-Black.ttf');
	/* font-weight: bold; */
}

:root {
	font-family: Main, Helvetica, Arial, sans-serif;
	font-size: 16px;

	color: var(--app-fg-color);
	background-color: var(--app-bg-color);

	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
}

/*
------------------------------------------------
*/
html,
body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	overflow: hidden;
	padding: 0px;
	margin: 0px;
}

/*
------------------------------------------------
*/

h1 {
	font-size: 1.5rem;
	margin: 0px;
	color: var(--theme-color-a);
}

h2 {
	font-size: 1.25rem;
	margin: 0px;
}

ul {
	margin-top: 5px;
}

/*
------------------------------------------------
*/
row {
	display: flex;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
}

#app,
column,
scroll,
scroll-content,
form,
label {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
}

#app,
.expand {
	flex: 1;
}

expander {
	display: flex;
	box-sizing: border-box;
}

column>expander {
	margin: auto 0px;
}

row>expander {
	margin: 0px auto;
}

space {
	display: flex;
	box-sizing: border-box;
	width: 5px;
	height: 5px;
}

double-space {
	display: flex;
	box-sizing: border-box;
	min-width: 10px;
	min-height: 10px;
}

.expanded {
	flex: 1;
}

table {
	border-spacing: 0px;
}

pre {
	font-family: inherit;
}

hr {
	width: 100%;
	color: #f2eeee;
}

@media screen and (max-width: 530px) {
	row.responsive {
		flex-direction: column;
	}

	row.responsive>expander {
		margin: none;
	}
}

/*
------------------------------------------------
*/

.children-spacing>* {
	margin-bottom: 10px;
}

form>button {
	margin-top: 15px;
}

label {
	/* font-family: MainLight; */
	color: var(--theme-color-a);
	font-weight: bold;
	font-size: 0.9rem;
}

label input {
	flex: 1;
}

label>small {
	color: gray;
	font-weight: normal;
	font-size: 0.8rem;
}

label>row>*:not(:first-child):not(:last-child) {
	border-radius: 0px;
}

label>row>*:not(:last-child) {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-right: none;
}

label>row>*:last-child:not(:first-child) {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
}

label>input[type=checkbox] {
	margin-right: auto;
}

label.checkbox {
	display: flex;
	flex-direction: row;
	width: fit-content;
}

label.checkbox>input {
	margin-right: 10px;
}

label.checkbox.readonly {
	pointer-events: none;
}

label.checkbox.readonly>input {
	opacity: 0.5;
}

/*
------------------------------------------------
*/

scroll {
	overflow: auto;
}

scroll>scroll-content {
	min-width: unset;
	min-height: unset;
}


/*
------------------------------------------------
*/
input,
select,
textarea {
	outline: none;
	border-radius: 5px;
	border: var(--standard-border);
	padding: 5px 10px;
	background-color: rgb(236, 244, 250);
	background-image: linear-gradient(#f2f2f2, white, #fdfdfd);
}

td select,
td input {
	background: none;
	border: none;
	padding: 5px 0px;
	width: calc(100% - 20px);
}

textarea:hover,
input:hover {
	border-color: var(--theme-color-a);
}

textarea:focus,
input:focus {
	border-color: var(--theme-color-a);
	background-image: none;
}

select:disabled,
textarea:disabled,
input:disabled {
	border: var(--standard-border);
	color: #aaa3a3;
	background-color: #ddd;
	background-image: none;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
	color: gray;
}

input[readonly],
textarea[readonly] {
	background: #0000000a;
}

/*
------------------------------------------------
*/
.form-grid>row {
	gap: 10px;
}

.form-grid>row>label {
	flex: 1;
}

.form-grid>row,
.form-grid>label {
	margin: 8px 0px;
}

@media screen and (max-width: 530px) {
	.form-grid>row {
		flex-direction: column !important;
	}
}

/*
------------------------------------------------
*/
button {
	font-family: Main;
	background-image: linear-gradient(#e4e4e4, #dfdfdf);
	border-radius: 5px;
	border: var(--standard-border);
	padding: 5px 10px;
	color: #333;
	text-transform: uppercase;
	color: #666;
	font-weight: bold;
	cursor: pointer;
	outline: none;
}

button:hover {
	border-color: var(--theme-color-a);
}

button:active {
	border-color: var(--theme-color-a);
	background-image: linear-gradient(#dfdfdf, #e4e4e4);
}

button:disabled {
	pointer-events: none;
	opacity: 0.5;
}

button.primary {
	color: white;
	background-image: linear-gradient(#3388d8, #1870b8);
}

button.primary:active {
	background-image: linear-gradient(#1870b8, #1870b8);
}

button.cancel {
	color: white;
	background-image: linear-gradient(#e1405a, #c93057);
}

button.cancel:active {
	background-image: linear-gradient(#a7193d, #b81840);
}


/*
------------------------------------------------
*/
.lds-ellipsis {
	display: inline-block;
	position: relative;
	/* width: 80px; */
	/* height: 80px; */
}

.lds-ellipsis div {
	position: absolute;
	/* top: 33px; */
	top: -5px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #80858b;
	animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
	left: 8px;
	animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
	left: 8px;
	animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
	left: 32px;
	animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
	left: 56px;
	animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
	0% {
		transform: scale(0);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes lds-ellipsis3 {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(0);
	}
}

@keyframes lds-ellipsis2 {
	0% {
		transform: translate(0, 0);
	}

	100% {
		transform: translate(24px, 0);
	}
}


/*
------------------------------------------------
*/
a,
a:visited {
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.75;
	color: var(--theme-color-a);
}

a:active {
	color: var(--theme-color-b);
}

a:hover {
	opacity: 1.0;
}

td>a {
	padding-right: 5px;
}

/*
------------------------------------------------
*/
.card {
	min-width: auto;
	white-space: nowrap;
	border-radius: 5px;
	border: var(--standard-border);
	padding: 7px 15px;
	background-color: white;
}

/*
------------------------------------------------
*/

:root {
	--dark: #78fad1;
	--light: #ffffff;
	--success: #0abf30;
	--error: #e24d4c;
	--warning: #e9bd0c;
	--info: #3498db;
	--random: #eb43ff;
}

.warning-color {
	color: var(--warning);
}

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

.primary-color {
	color: #3498db;
}

.success-color {
	color: var(--success);
}

#notifications {
	position: fixed;
	top: 30px;
	right: 20px;
	z-index: 11;
}

#notifications :where(.toast, .column) {
	display: flex;
	align-items: center;
}

#notifications .toast {
	width: 400px;
	position: relative;
	overflow: hidden;
	list-style: none;
	border-radius: 4px;
	padding: 16px 17px;
	margin-bottom: 10px;
	background: var(--light);
	justify-content: space-between;
	animation: show_toast 0.5s ease forwards;
}

@keyframes show_toast {
	0% {
		transform: translateX(100%);
	}

	40% {
		transform: translateX(-5%);
	}

	80% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(-10px);
	}
}

#notifications .toast.hide {
	animation: hide_toast 0.5s ease forwards;
}

@keyframes hide_toast {
	0% {
		transform: translateX(-10px);
	}

	40% {
		transform: translateX(0%);
	}

	80% {
		transform: translateX(-5%);
	}

	100% {
		transform: translateX(calc(100% + 20px));
	}
}

.toast::before {
	position: absolute;
	content: "";
	height: 3px;
	width: 100%;
	bottom: 0px;
	left: 0px;
	animation: progress 5s linear forwards;
}

@keyframes progress {
	100% {
		width: 0%;
	}
}

.toast.success::before {
	background: var(--success);
}

.toast.error::before {
	background: var(--error);
}

.toast.warning::before {
	background: var(--warning);
}

.toast.info::before {
	background: var(--info);
}

.toast.random::before {
	background: var(--random);
}

.toast .column i {
	font-size: 1.75rem;
}

.toast.success .column i {
	color: var(--success);
}

.toast.error .column i {
	color: var(--error);
}

.toast.warning .column i {
	color: var(--warning);
}

.toast.info .column i {
	color: var(--info);
}

.toast.random .column i {
	color: var(--random);
}

.toast .column span {
	font-size: 1.07rem;
	margin-left: 12px;
}

.toast i:last-child {
	color: #aeb0d7;
	cursor: pointer;
}

.toast i:last-child:hover {
	color: var(--dark);
}

@media screen and (max-width: 530px) {
	#notifications {
		width: 95%;
	}

	#notifications .toast {
		width: 100%;
		font-size: 1rem;
		margin-left: 20px;
	}
}