*,
::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;
}
#toasts {
	position: fixed;
	right: 10px;
	top: 5px;
	z-index: 1001;
}
#toasts > * {
	background-color: #000A;
	border-radius: 10px;
	clear: both;
	color: white;
	cursor: zoom-out;
	float: right;
	margin-top: 5px;
	padding: 3px 6px;
}
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,
section.change.default,
section.create.default: div.body,
form {
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: .5rem;
}
section.record.default label,
section.change.default label,
section.create.default: div.body label,
form label {
	font-weight: bold;
	color: var(--text);
	opacity: .8;
}
section.record.default .field,
section.change.default .field,
section.create.default: div.body .field,
form .field {
	background: var(--surface);
	border: 1px solid #FFF1;
	border-radius: 9px;
	padding: 1rem;
	flex-grow: 1;
	min-width: 20%;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
section.record.default .field > div,
section.change.default .field > div,
section.create.default: div.body .field > div,
form .field > div {
	background: var(--border);
	border-radius: 6px;
	flex: 1;
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem;
	white-space: nowrap;
}
section.record.default .link,
section.change.default .link,
section.create.default: div.body .link,
form .link {
	padding: .25rem 0;
}
: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;
}
form.create,
form.change,
section.record .body {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	max-width: 34rem;
	padding: 1rem 0 2rem;
}
.field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
}
.field > label {
	color: var(--muted);
	font-size: .8rem;
}
.field > .input,
.field > .label {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: .5rem .65rem;
}
.field > .label {
	color: var(--text);
	min-height: 1.15em;
}
.field > .input:focus-within {
	border-color: var(--primary);
}
.field > .input input.field,
.field > .input select,
.field > .input textarea {
	width: 100%;
}
.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;
	text-align: center;
	text-decoration: none;
}
button.primary,
.btn.primary {
	background: var(--primary);
}
button.warning,
.btn.warning {
	background: var(--warn);
}
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 {
	height: 2em;
	margin-top: 5px;
}
#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);
}
.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);
	}
}
