@charset "utf-8";
* {
	font-family:
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		"Noto Sans",
		"Liberation Sans",
		Arial,
		sans-serif,
		"Apple Color Emoji",
		"Segoe UI Emoji",
		"Segoe UI Symbol",
		"Noto Color Emoji";
	--bg-beige: #ebe9e1;
	font-size: 28pt;
	--input-border: 1px solid rgb(156, 172, 178);
	--input-border-radius: .25rem;
	--button-border-color: 156 172 178;
}
html {
	height:100%;
	margin-bottom:0;
	padding-bottom:0;
}
body {
	height:100%;
	margin-bottom:1px;
	font-family: Arial, Helvetica, sans-serif;
	background-color: var(--bg-beige);
	margin:0;
	padding:0;
}
div.container {
	padding-bottom: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
@media screen and (min-width: 1000px) {
	* {
		font-size: 18pt;
	}
	div.container {
		width: 60% !important;
		min-height: 97vh;
		height: fit-content;
		margin-left: auto;
		margin-right: auto;
		box-shadow: 0 0 3rem rgb(0 0 0 / 20%);
	}
}

#top_bar {
	padding: 0.5rem;
	padding-top: 0;
	background-color: var(--bg-beige);
	position: sticky;
	top: 0;
	border-bottom: 0.125rem solid rgba(0 0 0 / 50%);
}
#top_bar button {
	margin-top: 0.5rem;
}
.scroll-shadow {
	box-shadow: 0 0 30px rgb(0 0 0 / 20%);
}

.subtle-text {
	font-weight: 100;
	color: rgba(0 0 0 /50%);
}
.empty-text {
	font-weight: 100;
	font-size: 1rem;
	color: rgba(0 0 0 / 60%);
	font-style: italic;
}

button {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0 0.25rem;
	min-height: 1.625rem;
	gap: 0.25rem;
	color: rgba(0 0 0 / 95%);
	background-color: rgb(240, 240, 240);
	border: 2px solid rgb(var(--button-border-color));
	border-radius: .25rem;
}
button[disabled="disabled"] {
	color: rgba(0 0 0 / 40%);
	border: 2px solid rgba(var(--button-border-color) / 15%);
}
button img {
	vertical-align:middle;
}
button svg {
	width: 1rem;
	height: 1rem;
}
button span {
	padding-bottom: 0.25rem;
}
button[type="submit"] span {
	font-size: 1.125rem;
	padding-bottom: 0.375rem;
}
.icon {
	display: flex;
	align-items: center;
	height: fit-content;
	flex-direction: row;
}

.cleared:after, .radio-field:after, .formPanel:after {
	content: ".";
	display:block;
	height:0;
	clear:both;
	visibility:hidden;
}

.form-card {
	padding: 1rem;
	margin-left: 2rem;
	margin-right: 2rem;
	width: calc(100% - 6rem);
	border: 0.125rem solid black;
	background-color: white;
	border-radius: 1rem;
	-moz-border-radius: 1rem;
	text-align: center;
	font-weight: 500;
	font-size: 1.25rem;
}

.hidden-file-input {
	position: absolute;
	bottom: 0;
	top: -1px;
	left: 0;
	right: 0;
	opacity: 0;
}
.toast {
	position: fixed;
	width: 70vw;
	padding: 1rem;
	border: 0.125rem solid rgba(240 240 240 / 40%);
	border-radius: 0.5rem;
	left: calc(15vw - 2rem);
	top: 2.75rem;
	font-size: 1.5rem;
	font-weight: 500;
	background: rgba(255 235 210 / 55%);
	backdrop-filter: blur(4px);
	z-index: 5;
}

#error_div {
	display: flex;
}
#error_div span {
	display: flex;
	align-items: center;
	text-align: left;
	color: color-mix(in srgb, red 30%, black 20%);
	font-weight: 400;
	font-size: 1rem;
}

.form-content {
	display: flex !important;
	flex-direction: column !important;
	row-gap: 1rem !important;
}
.form-row {
	display: flex !important;
	width: 100%;
	flex-direction: row !important;
}
.form-row > * {
	margin-top: auto;
	margin-bottom: auto;
}
.full-width {
	min-width: 0;
	width: 100%;
	min-height: 1.5rem;
}
.form-row input, .form-row .text-box {
	border: var(--input-border);
	border-radius: var(--input-border-radius);
}
.form-row .text-box {
	display: flex;
	flex-direction: column;
	background-color: white;
	height: fit-content;
	padding: 0.25rem;
	padding-top: 0;
}
.form-row .text-box:focus-within {
	outline: 2px solid rgba(0 0 0 / 0.5);
}
.form-row .text-box span[contenteditable="true"] {
	padding: 0.25rem 0;
	outline: none;
	width: 100%;
}
.form-row .text-box img {
	border-radius: 0.1rem;
	max-width: 2rem;
	max-height: 2rem;
}
.form-row .text-box .embedded-file {
	display: flex;
	position: relative;
	height: 2rem;
	width: 2rem;
	z-index: 1;
}
.form-row .text-box .embedded-file > * {
	display: flex;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	align-self: center;
	justify-self: center;
}
.form-row .text-box .embedded-file button {
	z-index: 2;
	opacity: 100%;
	color: black;
	display: none;
}
.form-row .text-box .embedded-file:hover button {
	display: flex;
}
.form-row .text-box .embedded-file:hover img {
	opacity: 20%;
}
.form-row .text-box .embedded-file svg {
	width: 2rem;
	height: 2rem;
}
.form-row .text-box .embedded-file:hover svg {
	color: rgba(0 0 0 / 0.5);
}
.form-row .text-box .embedded-file .filename-text {
	display: none;
	position: absolute;
	font-size: 0.5rem;
	bottom: 2rem;
	width: fit-content;
	padding: 0.125rem;
	background-color: white;
	border: 1px solid black;
	border-radius: 0.125rem;
}
.form-row .text-box .embedded-file:hover .filename-text {
	display: block;
}
.form-row .text-box .embedded-file button svg {
	width: 1rem;
	height: 1rem;
}
.form-row > label {
	text-align: center;
	width: 100%;
}
.form-row > label.form-inline, #form label.form-inline {
	width: 7.75rem;
	text-align: left !important;
	float: left;
}
input[type=checkbox] {
	width: 1rem;
	height: 1rem;
}
/** *** *** *** *** *** *** **
**  Login Page              **
** *** *** *** *** *** *** **/
#login_form {
	height: 100vh;
}
@media screen and (min-width: 1200px) {
	#login_form .container {
		max-width: 500px;
	}
}
#login {
	display: inline-block;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
#login img {
	width: 100%;
	margin: auto;
}
#login input {
	padding-left: 0.375rem;
}

/** *** *** *** *** *** *** **
**  Lookup Page             **
** *** *** *** *** *** *** **/
#qr_input {
	margin: 0;
	margin-right: 0.5rem;
}
#lookup input {
	padding-left: 0.25rem;
	font-size: 0.75rem;
}
.lookup-menu {
	display: flex;
	flex-direction: column;
	margin: 0.75rem;
	gap: 0.75rem;
}
.lookup-card {
	cursor: pointer;
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	font-size: 1.125rem;
	color: rgba(0 0 0 / 70%);
	padding: 0.825rem;
	border: 1px solid rgba(0 0 0 / 25%);
	background-color: rgba(255 255 255 / 75%);
	border-radius: 0.25rem;
	-moz-border-radius: 0.25rem;
}

/** *** *** *** *** *** *** **
**  Messages Page           **
** *** *** *** *** *** *** **/
#project_name {
	font-size: 1.25rem;
	font-weight: 500;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 0 0.5rem;
}
#messages {
	display: flex !important;
	flex-direction: column !important;
	width: 100%;
	margin-left: 0.375rem;
	margin-right: 0.375rem;
	gap: 0.5rem;
	max-width: 100%;
	min-height: calc(100vh - 10.5rem);
}
.message-card {
	display: grid;
	/* investigate the padding/margin/etc on messages to make it uniform around AND between images, etc */
	gap: 0.5rem;
	padding: 0.25rem;
	border: 0.125rem solid rgba(0 0 0 / 50%);
	min-width: calc(100% - 0.75rem);
	background-color: rgba(255 255 255 / 75%);
	border-radius: 0.5rem;
	-moz-border-radius: 0.5rem;
}
.message-card img {
	border-radius: 0.4rem;
	-moz-border-radius: 0.4rem;
	max-width: 100%;
}
.message-text-content {
	text-wrap: wrap;
	word-break: break-word;
	padding-left: 0.375rem;
	padding-bottom: 0.5rem;
}
.message-data-text {
	font-size: 0.625rem;
	font-weight: 675;
	padding: 0.375rem;
	padding-top: 0;
}
.no-messages {
	min-width: calc(100% - 3rem);
	min-height: 1rem;
	padding: 1rem;
	text-align: center;
	background-color: rgba(220 240 255 / 100%);
	font-style: italic;
	color: rgba(0 20 35 / 50%);
}

#message_bar {
	padding: 0.5rem;
	padding-top: 1rem;
	padding-bottom: 2rem;
	background-color: var(--bg-beige);
	border-top: 0.125rem solid rgba(0 0 0 / 50%);
	position: sticky;
	bottom: 0;
}
.big-button svg {
	width: 2rem;
	height: 2rem;
	padding: 0.75rem 0.5rem;
}
#message_bar .form-row {
	gap: 1.25rem;
}
#message_bar .form-row > label {
	margin-right: 0;
}
#image_bar {
	display: flex !important;
	gap: 0.25rem;
	width: 100%;
	flex-flow: row wrap !important;
}
