::-ms-expand {
	display: none;
}
::-webkit-scrollbar {
	background: var(--background);
	height: 20px;
	width: 12px;
}
::-webkit-scrollbar-thumb {
	background: var(--primary);
}
*,
::before,
::after {
	box-sizing: border-box;
}
a {
	color: var(--link);
}
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
	touch-action: manipulation;
}
body {
	background: var(--background);
	color: var(--text);
	display: flex;
	gap: 0 .5em;
	height: 100dvh;
	margin: 0;
	overflow-x: hidden;
}
button,
.btn {
	background: var(--surface);
	border: 0;
	border-radius: 6px;
	color: var(--text);
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-size: .9em;
	outline: 0;
	text-align: center;
	text-decoration: none;
}
button.primary,
.btn.primary {
	background: var(--primary);
}
button.warning,
.btn.warning {
	background: var(--warning);
}
button:focus,
input:focus,
select:focus,
textarea:focus,
[contenteditable]:focus {
	outline: 0;
}
dialog {
	animation: 200ms dialog;
	background: var(--background);
	border: 1px solid var(--link);
	border-radius: 6px;
	color: var(--text);
}
dialog button {
	border: 1px solid var(--link);
}
dialog::backdrop {
	backdrop-filter: blur(12px);
	background-color: #ABC2;
	cursor: pointer;
}
figure div.list {
	font-size: .85em;
	line-height: 2.1em;
	padding: 0 1.5rem;
	transition: 1s;
}
figure div.list div {
	border-bottom: 1px solid #FFFD;
	opacity: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
figure div.list div a {
	text-decoration: none;
}
figure div.list div:first-child {
	border-top: 1px solid #FFFD;
}
figure.init div.list {
	padding-top: 1.15rem;
}
figure.init div.list div {
	opacity: 1;
}
form#bi {
	background: var(--surface);
	border-radius: 9px;
	display: flex;
	margin: 1rem 0;
}
form#bi i {
	cursor: pointer;
}
h1,
h2 {
	font-size: 1.2em;
	font-weight: normal;
	margin: 0;
}
html {
	font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	scroll-behavior: smooth;
	--background: linear-gradient(to bottom, #4C56C0, #0D0E96);
	--link: #FFA500;
	--primary: #4C56C0;
	--row-even: #1415A0;
	--row-hover: #FFA50029;
	--row-odd: #10118C;
	--surface: #1A1BB5;
	--text: #FFFFFF;
	--warning: #FF4C4C;
}
html.loading body::before {
	animation: darkfade .15s ease forwards .1s;
	background: #000;
	content: '';
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	z-index: 9999;
}
html.waiting body::after {
	animation: terminaldots 1s steps(3) infinite;
	background: #000;
	border: 1px solid #0f0;
	color: #0f0;
	content: 'loading';
	font-family: monospace;
	font-size: 1.25rem;
	left: 50%;
	min-width: 20ch;
	padding: .75rem 1.5rem;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	white-space: pre;
	z-index: 10000;
}
input.field,
select,
textarea {
	background: transparent;
	border: 0;
	color: var(--text);
	font: inherit;
}
input.field.error,
select.error,
textarea.error {
	outline: 1px solid var(--warning);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
input::placeholder {
	color: var(--text);
	opacity: .66;
}
input[type="number"] {
	-moz-appearance: textfield;
}
main {
	flex: 1;
	overflow: auto;
	padding: 0 .5rem;
}
main section {
	display: contents;
}
nav {
	display: flex;
	flex-direction: column;
	gap: .5rem .25rem;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1rem 0;
}
nav a {
	border-bottom-right-radius: 16px;
	border-top-right-radius: 16px;
	color: var(--text);
	display: block;
	overflow: hidden;
	padding: .5rem;
	text-decoration: none;
	white-space: nowrap;
}
nav a i {
	display: inline-block;
	font-size: .85em;
	font-style: normal;
	margin-left: -6px;
	text-align: center;
	width: 30px;
}
nav a:hover,
nav a.active {
	background: var(--primary);
}
nav a:last-child {
	margin-top: auto;
}
section .body input.field,
section .body select,
section .body textarea,
input.field.full,
select.full,
textarea.full {
	width: 100%;
}
section header {
	background: var(--background);
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: end;
	left: 0;
	line-height: 30px;
	margin: 1.25em 0 0;
	padding: 0 .5rem;
	position: sticky;
	z-index: 1;
}
section header .count {
	background: var(--warning);
	border-radius: 100%;
	display: inline-block;
	font-size: .8em;
	font-weight: bold;
	min-width: 2em;
	text-align: center;
}
section header button,
section header .btn {
	height: 2em;
	margin-top: 5px;
}
section header h1,
section header h2 {
	flex: auto;
}
section.list.default {
	display: contents;
}
section.list.default header {
	display: flex;
}
section.list.default header .search {
	flex: 1 1 200px;
	min-width: 120px;
	position: relative;
}
section.list.default header .search i {
	left: .75rem;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
section.list.default header .search input {
	background: var(--surface-alt);
	border: none;
	border-radius: 9px;
	color: var(--text);
	font-size: .85em;
	padding: .55rem .75rem .55rem 2.25rem;
	width: 100%;
}
section.list.default table {
	min-width: 100%;
}
section.list.default table tbody tr td {
	padding: .5rem;
	vertical-align: top;
}
section.list.default table tbody tr td > a.async {
	display: block;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
section.list.default table tbody tr td input.field,
section.list.default table tbody tr td select,
section.list.default table tbody tr td textarea {
	border: 1px solid var(--text);
	border-radius: 3px;
	margin: -.25rem;
	min-width: 100px;
	padding: .25rem;
}
section.list.default table tbody tr td.link {
	cursor: pointer;
}
section.list.default table tbody tr td.noRecords {
	font-size: 1.2em;
	text-align: center;
}
section.list.default table tbody tr:hover td,
section.list.default table tbody tr td.active {
	background: var(--row-hover);
}
section.list.default table tbody tr:nth-child(even){
	background: var(--row-even);
}
section.list.default table tbody tr:nth-child(odd){
	background: var(--row-odd);
}
section.list.default table th {
	background: var(--surface);
	font-size: .85em;
	font-weight: normal;
	line-height: 30px;
	margin-bottom: 3em;
	position: sticky;
	text-align: left;
	top: 60px;
}
section.list.default.main table th {
	top: 30px;
}
section.record.default div.body .field > div,
section.record.default form .field > div,
section.change.default div.body .field > div,
section.change.default form .field > div,
section.create.default div.body .field > div,
section.create.default form .field > div {
	align-items: center;
	background: var(--surface-alt);
	border-radius: 6px;
	display: flex;
	flex: 1;
	gap: .5rem;
	padding: .5rem;
	white-space: nowrap;
}
section.record.default div.body .field,
section.record.default form .field,
section.change.default div.body .field,
section.change.default form .field,
section.create.default div.body .field,
section.create.default form .field {
	background: var(--surface);
	border: 1px solid #FFF1;
	border-radius: 9px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: .5rem;
	min-width: 20%;
	padding: 1rem;
}
section.record.default div.body .link,
section.record.default form .link,
section.change.default div.body .link,
section.change.default form .link,
section.create.default div.body .link,
section.create.default form .link {
	padding: .25rem 0;
}
section.record.default div.body label,
section.record.default form label,
section.change.default div.body label,
section.change.default form label,
section.create.default div.body label,
section.create.default form label {
	color: var(--text);
	font-weight: bold;
	opacity: .8;
}
section.record.default div.body,
section.record.default form,
section.change.default div.body,
section.change.default form,
section.create.default div.body,
section.create.default form {
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: .5rem;
}
select option {
	background: black;
	color: white;
}
table {
	border-collapse: collapse;
}
table.pedigree {
	width: 80%;
}
table.pedigree td {
	border: 1px solid white;
}
#more {
	display: block;
	margin: auto;
}
#settings {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
#settings div {
	border: 1px solid var(--primary);
	flex: 1;
	padding: .25rem;
}
#widgets {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
#widgets > figure {
	background: var(--surface);
	border-radius: 9px;
	flex: 1 1 30%;
	margin: 0;
	min-width: 300px;
	opacity: .2;
	transition: 500ms ease-in;
}
#widgets > figure > div {
	aspect-ratio: 2 / 1;
}
#widgets > figure figcaption {
	font-size: .9em;
	padding: .5rem;
	text-align: center;
}
#widgets > figure.init {
	opacity: 1;
}
.input.file {
	display: block !important;
}
.input.file .file {
	cursor: pointer;
	display: flex;
	gap: .25rem;
}
.input.file .file-input {
	display: none;
}
.input.file input[type="checkbox"] {
	width: initial !important;
}
.input.image {
	display: block !important;
	text-align: center;
}
.input.image .image {
	cursor: pointer;
	max-width: 100%;
}
.input.image .image-input {
	display: none;
}
.input.image input[type="checkbox"] {
	width: initial !important;
}
.label.child {
	max-height: 100px;
	overflow-y: auto;
}
.label.child a {
	display: block;
}
.label.datetime {
	white-space: nowrap;
}
.label.datetime .icon.clock-blue,
.label.datetime .icon.clock-yellow,
.label.datetime .icon.clock-red {
	float: left;
	margin-top: .4em !important;
}
.label.many {
	flex-wrap: wrap;
}
.label.many a {
	display: block;
	width: 100%;
}
.label.number,
.input.number input {
	text-align: right;
}
@keyframes darkfade {
	100% {
		opacity: .8;
	}
	80% {
		opacity: 0;
	}
}
@keyframes dialog {
	from {
		transform: scale(.5);
	}
}
@keyframes terminaldots {
	0% {
		content: 'loading';
	}
	100% {
		content: 'loading ...';
	}
	33% {
		content: 'loading .';
	}
	66% {
		content: 'loading ..';
	}
}
@media(max-width:520px){
	nav a {
		overflow: hidden;
		padding: .25rem;
		width: 26px;
	}
	nav a i {
		width: 20px;
	}
	nav a.active {
		width: auto;
	}
	nav a:not(.active) i {
		margin-right: .5rem;
	}
}
@media(max-width:800px){
	body {
		flex-direction: column-reverse;
	}
	nav {
		flex-direction: row;
		font-size: .85em;
		height: initial;
		justify-content: space-around;
		overflow: hidden;
		padding: .5rem 0;
	}
	nav a {
		border-radius: 16px;
		display: none;
		padding: .25rem .5rem;
	}
	nav a:nth-child(-n+4),
	nav a:last-child {
		display: block;
	}
}
@media(min-width:801px){
	body:has(#menuToggle.hide) nav {
		width: 32px;
	}
	body:has(#menuToggle.hide) nav a {
		width: 32px;
	}
	body:has(#menuToggle.hide) nav a:hover {
		width: fit-content;
		z-index: 2;
	}
	body:has(#menuToggle.hide) nav:hover {
		overflow: visible;
	}
	#menuToggle {
		background: var(--primary);
		border: 1px solid var(--surface);
		border-radius: 5px;
		cursor: pointer;
		height: 44px;
		margin-top: 50vh;
		width: 10px;
	}
}