*,
::before,
::after {
	box-sizing: border-box;
}
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
	touch-action: manipulation;
}
button:focus,
input:focus,
select:focus,
textarea:focus,
[contenteditable]:focus {
	outline: 0;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
input[type="number"] {
	-moz-appearance: textfield;
}
table {
	border-collapse: collapse;
}
::-ms-expand {
	display: none;
}
html {
	font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	--background: linear-gradient(to bottom, #4C56C0, #0D0E96);
	--surface: #1A1BB5;
	--primary: #4C56C0;
	--text: #FFFFFF;
	--link: #FFA500;
	--row-even: #1415A0;
	--row-odd: #10118C;
	--row-hover: #FFA50029;
	--warning: #FF4C4C;
	scroll-behavior: smooth;
}
table.pedigree {
	width: 80%;
}
table.pedigree td {
	border: 1px solid white;
}
form#bi {
	background: var(--surface);
	border-radius: 9px;
	display: flex;
	margin: 1rem 0;
}
form#bi i {
	cursor: pointer;
}
#widgets {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
#widgets > figure {
	background: var(--surface);
	border-radius: 9px;
	margin: 0;
	min-width: 0;
	opacity: .2;
	transition: 500ms ease-in;
}
#widgets > figure.init {
	opacity: 1;
}
#widgets > figure figcaption {
	font-size: .9em;
	padding: .5rem;
	text-align: center;
}
#widgets > figure > div {
	aspect-ratio: 2 / 1;
}
body:has(> nav) {
	background: var(--bg);
	color: var(--text);
	display: flex;
	gap: 0 .5em;
	height: 100dvh;
	margin: 0;
	overflow-x: hidden;
}
nav {
	display: flex;
	flex-direction: column;
	gap: .5rem .25rem;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1rem 0;
}
nav a {
	border-top-right-radius: 16px;
	border-bottom-right-radius: 16px;
	color: var(--text);
	display: block;
	flex-shrink: 0;
	overflow: hidden;
	padding: .5rem;
	text-decoration: none;
	white-space: nowrap;
}
nav a i {
	font-style: normal;
	display: inline-block;
	font-size: .85em;
	margin-left: -6px;
	text-align: center;
	width: 30px;
}
nav a:hover,
nav a.active {
	background: var(--primary);
}
nav a:last-child {
	margin-top: auto;
}
nav a .sub {
	font-size: .82em;
	opacity: .7;
	padding-top: .3rem;
	padding-bottom: .3rem;
}
nav a.sub.active {
	opacity: 1;
}
main {
	flex: 1;
	padding: 0 .5rem;
	overflow: auto;
}
main section {
	display: contents;
}
.cms-tools {
	margin-top: auto;
	display: flex;
	flex-direction: row;
	gap: .25rem;
	padding: .25rem .5rem;
}
.cms-tool {
	position: relative;
}
.cms-tool-toggle {
	background: transparent;
	border: 0;
	color: var(--text);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: .4rem;
	text-align: left;
	width: 100%;
}
.cms-tool-toggle i {
	font-style: normal;
}
.cms-tool-toggle:hover {
	background: var(--primary);
}
.cms-pop {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.4);
	display: none;
	flex-wrap: wrap;
	gap: .35rem;
	max-width: 248px;
	padding: .5rem;
	position: fixed;
	width: max-content;
	z-index: 50;
}
.cms-tool.open .cms-pop {
	display: flex;
}
.cms-pop-list {
	flex-direction: column;
	flex-wrap: nowrap;
	max-height: 60vh;
	overflow-y: auto;
}
.cms-pop-list a {
	border-radius: 6px;
	color: var(--text);
	padding: .25rem .5rem;
	text-decoration: none;
	white-space: nowrap;
}
.cms-pop-list a:hover,
.cms-pop-list a.is-active {
	background: var(--primary);
}
section.list.default {
	display: contents;
}
section.list.default.main table th {
	top: 30px;
}
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 input {
	width: 100%;
	padding: .55rem .75rem .55rem 2.25rem;
	border: none;
	border-radius: 9px;
	background: var(--border);
	color: var(--text);
	font-size: .85em;
}
section.list.default header .search i {
	position: absolute;
	left: .75rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}
section.list.default table {
	min-width: 100%;
}
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 table tbody tr:nth-child(odd) {
	background: transparent;
}
section.list.default table tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--surface) 92%, var(--text));
}
section.list.default table tbody tr:hover td,
section.list.default table tbody tr td.active {
	background: color-mix(in srgb, var(--surface) 82%, var(--text));
}
section.list.default table tbody tr td {
	padding: .5rem;
	vertical-align: top;
}
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;
	min-width: 100px;
	margin: -.25rem;
	padding: .25rem;
}
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.link {
	cursor: pointer;
}
section.list.default table tbody tr td .noRecords {
	font-size: 1.2em;
	text-align: center;
}
html.loading body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: #000;
	opacity: 0;
	animation: darkfade .15s ease forwards .1s;
	pointer-events: none;
	z-index: 9999;
}
html.waiting body::after {
	content: 'loading';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: monospace;
	font-size: 1.25rem;
	color: #0f0;
	background: #000;
	padding: .75rem 1.5rem;
	border: 1px solid #0f0;
	min-width: 20ch;
	white-space: pre;
	animation: terminaldots 1s steps(3) infinite;
	z-index: 10000;
}
section.record.default .body {
	display: grid;
	gap: .75rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-top: .75rem;
}
section.record.default .body div.field:has(.preview.image img),
section.record.default .body div.field:has(.label.wysiwyg) {
	grid-column: 1 / -1;
}
section.change.default form,
section.create.default form {
	display: flex;
	flex-direction: column;
	gap: .8rem;
	margin-top: .75rem;
	max-width: 38rem;
}
section.record.default div.field,
section.change.default div.field,
section.create.default div.field {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
	padding: .7rem .85rem;
}
section.record.default div.field > label,
section.change.default div.field > label,
section.create.default div.field > label {
	color: var(--muted);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}
section.record.default div.field > .label,
section.change.default div.field > .label,
section.create.default div.field > .label {
	color: var(--text);
	min-height: 1.2em;
	overflow-wrap: break-word;
}
section.record.default div.field > .input,
section.change.default div.field > .input,
section.create.default div.field > .input {
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 7px;
	display: flex;
	gap: .4rem;
	padding: .45rem .55rem;
}
section.record.default div.field > .input:focus-within,
section.change.default div.field > .input:focus-within,
section.create.default div.field > .input:focus-within {
	border-color: var(--primary);
}
section.record.default div.field > .input input.field,
section.record.default div.field > .input select,
section.record.default div.field > .input textarea,
section.change.default div.field > .input input.field,
section.change.default div.field > .input select,
section.change.default div.field > .input textarea,
section.create.default div.field > .input input.field,
section.create.default div.field > .input select,
section.create.default div.field > .input textarea {
	flex: 1;
	min-width: 0;
	width: auto;
}
section.record.default div.field > .input.wysiwyg,
section.record.default div.field > .input.multiselect,
section.record.default div.field > .input.image,
section.record.default div.field > .input.file,
section.change.default div.field > .input.wysiwyg,
section.change.default div.field > .input.multiselect,
section.change.default div.field > .input.image,
section.change.default div.field > .input.file,
section.create.default div.field > .input.wysiwyg,
section.create.default div.field > .input.multiselect,
section.create.default div.field > .input.image,
section.create.default div.field > .input.file {
	display: block;
}
section.record.default > section,
section.change.default > section,
section.create.default > section {
	margin-top: 1.5rem;
}
:root {
	font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	scroll-behavior: smooth;
}
dialog p {
	white-space: pre-wrap;
}
::-webkit-scrollbar {
	background: var(--bg);
	width: 12px;
	height: 20px;
}
::-webkit-scrollbar \-thumb {
	background: var(--primary);
}
a {
	color: var(--primary);
}
h1,
h2 {
	font-size: 1.2em;
	font-weight: normal;
	margin: 0;
}
input.field,
select,
textarea {
	background: transparent;
	border: 0;
	font: inherit;
	color: var(--text);
}
input.field.error,
select.error,
textarea.error {
	outline: 1px solid var(--warn);
}
section .body input.field,
section .body select,
section .body textarea,
input.field.full,
select.full,
textarea.full {
	width: 100%;
}
input::placeholder {
	color: var(--text);
	opacity: .66;
}
select option {
	background: black;
	color: white;
}
.ms-grid {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .9rem;
	padding: .25rem 0;
}
.ms-opt {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: .35rem;
}
.ms-opt input {
	width: auto;
	margin: 0;
}
button,
.btn {
	background: var(--surface);
	border-radius: 6px;
	color: var(--text);
	cursor: pointer;
	display: inline-block;
	border: 0;
	font: inherit;
	font-size: .9em;
	outline: 0;
	padding: .4rem .9rem;
	text-align: center;
	text-decoration: none;
}
button.primary,
.btn.primary {
	background: var(--primary);
}
button.warning,
.btn.warning {
	background: var(--warn);
}
button.danger,
.btn.danger {
	background: var(--error);
}
section header {
	background: var(--bg);
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: end;
	line-height: 30px;
	margin: 1.25em 0 0;
	padding: 0 .5rem;
	position: sticky;
	left: 0;
	z-index: 1;
}
section header h1,
section header h2 {
	flex: auto;
}
section header .count {
	background: var(--warn);
	border-radius: 100%;
	display: inline-block;
	font-size: .8em;
	font-weight: bold;
	text-align: center;
	min-width: 2em;
}
section header button,
section header .btn {
	align-self: center;
}
#more {
	display: block;
	margin: auto;
}
dialog {
	animation: 200ms dialog;
	background: var(--bg);
	border: 1px solid var(--primary);
	border-radius: 6px;
	color: var(--text);
}
dialog::backdrop {
	backdrop-filter: blur(12px);
	background-color: #ABC2;
	cursor: pointer;
}
dialog button {
	border: 1px solid var(--primary);
}
figure div.list {
	line-height: 2.1em;
	padding: 0 1.5rem;
	transition: 1s;
	font-size: .85em;
}
figure div.list div {
	border-bottom: 1px solid #FFFD;
	overflow: hidden;
	opacity: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}
figure div.list div:first-child {
	border-top: 1px solid #FFFD;
}
figure div.list div a {
	text-decoration: none;
}
figure.init div.list {
	padding-top: 1.15rem;
}
figure.init div.list div {
	opacity: 1;
}
.label.bool {
	text-align: center;
}
.input.bool {
	justify-content: center;
}
.input.bool label {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
}
.input.bool input {
	opacity: 0;
	width: 0;
	height: 0;
}
.input.bool input:checked + .slider {
	background: var(--primary);
}
.input.bool input:checked + .slider:before {
	transform: translateX(18px);
}
.input.bool .slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	transition: .3s;
}
.input.bool .slider:before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	top: 3px;
	background: var(--text);
	border-radius: 50%;
	transition: .3s;
}
.label.child {
	max-height: 100px;
	overflow-y: auto;
}
.label.child a {
	display: block;
}
.label.datetime {
	white-space: nowrap;
}
.label.datetime .icon {
	float: left;
	margin-right: .4rem;
	margin-top: .15em;
}
.input.file {
	display: block !important;
}
.input.file .file {
	cursor: pointer;
	display: flex;
	gap: .25rem;
	align-items: center;
}
.input.file .file-input {
	display: none;
}
.input.file input[type="checkbox"] {
	width: initial !important;
}
.label.file a {
	align-items: center;
	display: inline-flex;
	gap: .35rem;
}
.input.image {
	display: block !important;
	text-align: center;
}
.input.image .image {
	cursor: pointer;
	max-width: 100%;
	border-radius: 6px;
}
.input.image .image-input {
	display: none;
}
.input.image input[type="checkbox"] {
	width: initial !important;
}
.label.image img {
	border-radius: 4px;
	vertical-align: middle;
}
.preview.image {
	text-align: center;
}
.preview.image img.preview {
	border-radius: 8px;
	max-height: 280px;
	max-width: 100%;
}
.label.many {
	flex-wrap: wrap;
}
.label.many a {
	display: block;
	width: 100%;
}
.label.number,
.label.price,
.input.number input,
.input.price input {
	text-align: right;
}
.icon {
	background-image: url(/icons.png?1.0);;
	background-position-y: bottom;;
	display: inline-block;;
	overflow: hidden;;
	padding: 0;;
	width: 10px;;
	height: 10px;;
}
.icon.zoom {
	width: 16px;;
	height: 16px;;
}
.icon.view {
	background-position-x: -16px;;
	width: 24px;;
	height: 24px;;
}
.icon.pdf {
	background-position-x: -40px;;
	width: 24px;;
	height: 24px;;
}
.icon.microphone {
	background-position-x: -64px;;
	width: 24px;;
	height: 24px;;
}
.icon.clock-yellow {
	background-position-x: -88px;;
}
.icon.clock-red {
	background-position-x: -98px;;
}
.icon.clock-blue {
	background-position-x: -108px;;
}
@media(max-width:800px){
	body:has(> nav) {
		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;
	}
	.cms-tools {
		flex-direction: row;
		margin-top: 0;
	}
}
@media(min-width:801px){
	#menuToggle {
		background: var(--primary);
		border-radius: 5px;
		cursor: pointer;
		border: 1px solid var(--surface);
		margin-top: 50vh;
		width: 10px;
		height: 44px;
	}
	body:has(#menuToggle.hide) nav {
		width: 32px;
	}
	body:has(#menuToggle.hide) nav:hover {
		overflow: visible;
	}
	body:has(#menuToggle.hide) nav a {
		width: 32px;
	}
	body:has(#menuToggle.hide) nav a:hover {
		width: fit-content;
		z-index: 2;
	}
}
@media(max-width:520px): a{
	nav {
		overflow: hidden;
		padding: .25rem;
		width: 26px;
	}
	nav.active {
		width: auto;
	}
	nav:not(.active) i {
		margin-right: .5rem;
	}
	nav i {
		width: 20px;
	}
}
@keyframes darkfade{
	80% {
		opacity: 0;
	}
	100% {
		opacity: .8;
	}
}
@keyframes terminaldots{
	0% {
		content: 'loading';
	}
	33% {
		content: 'loading .';
	}
	66% {
		content: 'loading ..';
	}
	100% {
		content: 'loading ...';
	}
}
@keyframes dialog{
	from {
		transform: scale(.5);
	}
}
