/* #region ====== General Elements ====== */
* {
	box-sizing: border-box;
	scrollbar-width: thin;
	scroll-behavior: smooth;
}

nb-button:not(:defined) {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
nb-button {
    height: 2.75rem;
}

html {
	font-size: 13px;
	font-weight: 500;
	overflow-x: auto;
	overflow-y: scroll;
	scrollbar-width: thin;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: var(--global-font-family), sans-serif;
	background-color: var(--background-white);
	color: var(--global-font-color);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	scrollbar-width: thin;
	overflow: hidden;
}

img {
    user-select: none;
    color: transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-color) transparent;
}

#body {
	display: flex;
	flex-direction: column;
	flex: 1;
}


@media screen and (max-width: 1500px) {
	html {
		font-size: 12px;
	}
}

button {
	cursor: pointer;
}

h1 {
	margin: 0 0 0.7em 0;
}

h1,
h2 {
	font-size: var(--font-size-xlarge);
}

h3 {
	font-size: var(--font-size-large);
	margin: 0 0.2rem;
}

h4,
h5 {
	font-size: var(--font-size-medium);
	margin: 0.2rem 0.2rem;
}
a {
	text-decoration: none;
}
red-text, .red-text {
	color: var(--danger-red);
}

orange-text, .orange-text {
	color: var(--orange);
}

green-text, .green-text {
	color: var(--success-green);
}

hr {
	border: 0;
	min-height: 1px;
	background-color: var(--border-color);
	margin: 0;
	padding: 0;
	width: 100%;
}
#navigation-toggle {
	cursor: pointer;
}

#navigation-toggle path {
	stroke: var(--global-font-color);
}

header {
	position: fixed;
	width: calc(100% - var(--nav-expanded-width) - 1rem);
	height: var(--window-header-height);
	left: calc(var(--nav-expanded-width) + 0.5em); /*0.5em is the left of the menu */
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 1em;
	padding: 1rem 1.3rem 0.5rem 1.3rem;
	z-index: 10;
	border-radius: 0 0 0.5rem 0.5rem;
	background-color: var(--background-white);
}

header > svg {
	width: 1.8rem;
	height: 1.8rem;
}

header ul {
	display: flex;
	flex-direction: row;
	gap: 1em;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

header ul li {
	color: var(--black);
	font-weight: 500;
	font-size: var(--font-size-normal);
	text-transform: capitalize;
}

header ul li a {
	text-decoration: none;
	color: inherit;
}

header ul li:last-child > a {
	color: var(--primary-green);
	font-weight: 600;
}

header form {
	margin: 0;
}

main {
	display: flex;
	flex-direction: column;
	margin-left: calc(var(--nav-expanded-width) + 1.25em);
    flex: 1;
	z-index: 1;
	overflow-y: hidden;
	overflow-x: hidden;
	scrollbar-width: thin;
	margin-top: var(--window-header-height);
	transition: margin-left 0.3s ease-in-out;
    padding: 0 0.8em 1rem 0.4em;
}

.responsive-row {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

@media screen and (max-width: 1500px) {
	main {
		margin-left: 0;
	}
	/*table {*/
	/*	display: block;*/
	/*	overflow-x: auto;*/
	/*	padding-bottom: 1rem;*/
	/*}*/
	table td {
		min-width: 12rem;
	}
	
	.item-list-wrapper {
		min-width: 25vw !important;
	}

	#plantsControlContainer {
		max-width: 100%;
		overflow-x: auto;
		padding-bottom: 1rem;
	}
}
 
.navigation-hidden header {
	width: calc(100% - 0.5rem);
	left: 0;
}
.navigation-hidden main {
	margin-left: 0.5rem;
}

footer {
	margin-left: 5rem;
}

input {
	font-family: inherit;
}

input::-ms-reveal,
input::-ms-clear {
	display: none;
}

input[type="number"] {
	width: 4em;
}

input[type="checkbox"] {
	position: relative;
	margin: 0;
	width: 1.4rem;
	height: 1.4rem;
    background: var(--blue-gray);
    box-shadow: var(--outline-button-shadow);
	border-radius: 6px;
	appearance: none;
	cursor: pointer;
	outline: none;
    aspect-ratio: 1;
	&::before {
		position: absolute;
		content: "";
		display: block;
        left: 24%;
        top: 51.5%;
        width: 18%;
        height: 46%;
		border-style: solid;
        transition: border-color 0.25s cubic-bezier(0.1, 0.1, 0.25, 1);
		border-color: var(--darker-primary-green);
		border-width: 0 2px 2px 0;
		transform: rotate(45deg) translate(-68%, -58%);
		opacity: 0;
	}
	&:checked {
		color: var(--darker-primary-green);
		background: var(--blue-gray);
        border: none;
		&::before {
			opacity: 1;
		}
		~ label::before {
			clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
		}
	}
}

@media screen and (max-width: 1500px) {
    input[type="checkbox"] {
        &::before {
            top: 52.5%;
        }
    }
}

pre {
	font-family: inherit;
}

sl-spinner {
	font-size: 4rem; 
	--track-width: 0.8rem;
	--indicator-color: var(--primary-green); 
	--track-color: #f0d097;
	visibility: hidden;
}

switch-wrapper {
    display: flex;
    height: 2.5rem;
    margin-bottom: 0.15rem;
}
sl-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.1rem;
    padding-left: 0.2rem;
}
sl-switch[checked]::part(control) {
	background-color: var(--primary-green);
	border-color: var(--primary-green);
}
sl-switch[checked]::part(thumb) {
	border-color: var(--primary-green);
}

.htmx-request {
	visibility: visible !important; 
}

.visible {
	visibility: visible;
}

.panel-drop-shadow {
	filter: drop-shadow(0px 2px 4px var(--light-gray));
}

.underline {
	text-decoration: underline;
}
/* #endregion */

/* #region ====== Buttons ====== */

.small-icon {
	width: 1.2em;
	resize: both;
	aspect-ratio: 1;
	align-items: center;
	display: flex;
}

.small-icon svg {
	width: 100%;
	height: 100%;
}

/*.searchbar-input {*/
/*	background-color: var(--blue-gray) !important;*/
/*}*/

icon-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}
    icon-button:hover {
        transform: scale(1.1);
    }
    icon-button:active {
        transform: scale(0.9);
    }

.button-with-icon {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.5rem;
	border: none;
	border-radius: 2rem;
	cursor: pointer;
	font-family: inherit;
	font-weight: 550;
	font-size: var(--font-size-normal);
	transition: transform 0.2s ease-out, 
        box-shadow 0.3s ease-in-out;
	height: 2.75rem;
	width: fit-content;
    min-width: 11rem;
    justify-content: center;
}

.button-with-icon:active:not(:disabled) {
	transform: scale(0.9);
}

.button-with-icon > svg {
	font-size: 1.35rem;
}

.button-with-icon:disabled,
.button-with-icon:disabled:hover {
	color: var(--black);
	background: var(--disabled-gray);
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
}
.button-with-icon:focus-visible {
    outline: none;
}

.green-button {
	background-color: var(--primary-green);
	color: var(--colored-button-font-color);
    box-shadow: var(--primary-button-shadow);
}

.green-button:hover {
    box-shadow: var(--hover-primary-button-shadow);
    transform: translateY(-5%);
}

.outline-button {
	background-color: var(--blue-gray);
	color: var(--global-font-color);
    box-shadow: var(--outline-button-shadow);
}
.outline-button:hover {
	box-shadow: var(--hover-outline-button-shadow);
    transform: translateY(-5%);
}

.red-button {
	background-color: var(--danger-red);
    box-shadow: var(--danger-button-shadow);
	color: var(--colored-button-font-color);
}

.red-button:hover {
    box-shadow: var(--hover-danger-button-shadow);
    transform: translateY(-5%);
}

.no-background-button {
	background-color: transparent;
	color: var(--black);
}

.no-background-button:hover {
	background-color: var(--light-gray);
}

.min-width-button {
	min-width: 7.5em;
}

.no-text-wrap-button {
	white-space: nowrap;
}

/* #endregion */

/* #region ====== Searchbar ====== */

.input-wrapper {
	color: var(--black);
	display: flex;
	align-items: center;
	position: relative;
}

.input-wrapper div {
	display: flex;
}

.input-wrapper svg {
	width: 1.5em;
	aspect-ratio: 1;
	color: var(--gray);
	cursor: pointer;
}

textarea {
	min-width: 40%;
	max-width: 100%;
	max-height: 600px;
}

select[multiple="eonz-multiple-dropdown"] {
	visibility: hidden;
	height: 2.692rem;
}

input[type="text"],
input[type="textarea"],
input[type="file"],
input[type="date"],
input[type="password"],
input[type="time"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="datetime-local"],
textarea,
select,
sl-select::part(combobox),
.picker-barcode-input {
	color-scheme: var(--color-scheme);
	font-family: inherit; /* without this, text area would have a weird font */
	margin: 0;
	padding: 0.75rem 1.2rem;
	color: inherit;
	font-size: var(--font-size-normal);
	outline: none;
	width: 100%;
	border-radius: 1.5rem;
    background: var(--blue-gray);
    box-shadow: var(--outline-button-shadow);
    border: none;
	font-weight: 500;
}

/* Fixes annoying auto-complete styling made by the Chrome browser */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--global-font-color);
    transition: background-color 5000s ease-in-out 0s;
}

sl-select::part(form-control) {
    box-shadow: var(--input-glass-shadow);
    border-radius: 0.75rem;
}

input[type="text"].valid{
	/*border: 1px solid var(--success-green);*/
}

input[type="text"].invalid{
	/*border: 1px solid var(--danger-red);*/
}

input[type="date"],
input[type="datetime-local"] {
	padding: 0.674rem 1rem;
	color-scheme: var(--color-scheme);
}

::placeholder {
	color: var(--light-blue-gray) !important;
	font-weight: 300;
}

input:disabled,
textarea:disabled,
select:disabled,
input[readonly]:not([list-item]),
textarea[readonly],
.disabled {
    color: var(--light-global-font-color)
}

.no-opacity {
	opacity: 1 !important;
}

input[type="text"]::placeholder,
input[type="textarea"]::placeholder,
input[type="file"]::placeholder,
input[type="date"]::placeholder,
input[type="time"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
	color: var(--light-gray);
}

currency-input-wrapper span {
	margin: 0;
	padding: 0 0.6rem;
	color: var(--gray);
	font-weight: 600;
	font-size: var(--font-size-medium);
	border: none;
}

currency-input-wrapper input[data-type="currency"] {
	border: none;
	padding-left: 0;
}

currency-input-wrapper {
	position: relative;
	width: 100%;
	background-color: var(--blue-gray);
	border: 1px solid var(--border-color);
	display: flex;
	border-radius: 0.5rem;
	flex-direction: row;
	align-items: center;
}

div[scanner-interface] {
	display: none;
	flex-direction: column;
	position: fixed;
	min-width: 40rem;
	min-height: 30rem;
	max-width: 60%;
	max-height: 80%;
	top: 5%;
	left: 5%;
	z-index: 100;
	background: var(--background-white);
	border: 1px solid var(--border-color);
	box-shadow: var(--deep-shaow);
	border-radius: 0.5rem;
}
div[scanner-interface][interface-visible] {
	display: flex;
}
	div[scanner-interface] div[scanner-interface-header] {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 0.5rem 1rem;
		border-bottom: 1px solid var(--border-color);
	}
		div[scanner-interface-header] div[scanner-interface-title] {
			display: flex;
			flex-direction: row;
			align-items: center;
			padding: 0.25rem 0.5rem;
			gap: 0.5rem;
		}
			div[scanner-interface-header] div[scanner-interface-title] h3 {
				font-size: 1rem;
				font-weight: 600;
				user-select: none;
				pointer-events: none;
			}
			div[scanner-interface-header] div[scanner-interface-title] svg {
				font-size: 1.5rem;
				pointer-events: none;
			}
		div[scanner-interface-header] span[scanner-interface-close],
		div[scanner-interface-header] span[scanner-interface-rotate-camera] {
			display: flex;
			cursor: pointer;
			transition: 0.1s;
		}
			div[scanner-interface-header] span[scanner-interface-close]:hover,
			div[scanner-interface-header] span[scanner-interface-rotate-camera]:hover {
				transform: scale(1.1);
			}
			div[scanner-interface-header] span[scanner-interface-close]:active,
			div[scanner-interface-header] span[scanner-interface-rotate-camera]:active {
				transform: scale(0.9);
			}
			div[scanner-interface-header] row-layout[control-buttons] svg {
				font-size: 1.4rem;
			}
	div[scanner-interface] div[scanner-interface-body] {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: center;
	}

.searchbar-icon {
	height: 1.3rem;
	aspect-ratio: 1;
	padding: 0;
	border: none;
	outline: none;
	position: absolute;
	top: 50%;
	left: 0.2rem;
    z-index: 1;
	transform: translateY(-50%);
    color: var(--light-global-font-color);
    margin-left: 1rem;
}
.searchbar-icon svg {
	font-size: 1.3rem;
    color: var(--light-global-font-color);
	cursor: default !important;
}
.focused-container {
	position: fixed;
	padding: 3em 2em;
	border-radius: 2rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30vw;
	aspect-ratio: 1;
	z-index: 100;
	box-shadow: 0px 2px 4em 0px var(--light-gray);
}

section[row] {
	display: flex;
	flex-direction: row;
	flex: 1;
	gap: 2em;
}

.input-icon-right .input-icon {
	position: absolute;
	right: 0.5em;
}

.input-icon-right input {
	padding-right: 2rem;
}

.input-icon-left .input-icon {
	position: absolute;
	left: 0;
}

.input-icon-left input {
	padding-left: 3.5rem;
}

.icon-next-to-input {
	position: absolute;
	right: -2em;
}

#password-caps-lock-up-icon svg {
	color: var(--danger-red);
	cursor: default;
}
/* #endregion */
/* #region Toasts */
#toasts-container {
	height: 90vh;
	position: fixed;
	left: 50%;
	transform: translateX(-40%);
	z-index: 1000;
	bottom: 0;
	min-width: 10rem;
	max-width: 40vw;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 2rem;
	padding: 2rem 0;
	pointer-events: none;
	user-select: none;
}

.toast-container {
	display: flex;
	width: auto;
	padding: 12px 16px;
	align-items: center;
	gap: 16px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	background: var(--deep-background-color);
	box-shadow: var(--continer-outer-shadow);
	transition: scale 0.2s ease-in-out;
	overflow: hidden;
	min-height: 0;
	pointer-events: all;
}

.toast-container .toast-dismiss-button {
	background: none;
	outline: none;
	border: none;
	position: absolute;
	right: 5px;
	top: 5px;
}
.toast-container .toast-dismiss-button svg path {
	transition: stroke 0.1s ease-in-out;
	stroke: var(--gray);
}
.toast-container .toast-dismiss-button svg:hover path {
	stroke: var(--danger-red);
}

.toast-container .toast-dismiss-button svg {
	transition: transform 0.1s ease-in-out, stroke 0.1s ease-in-out;
}
.toast-container .toast-dismiss-button svg:hover {
	transform: scale(1.1);
}

.toast-container .toast-dismiss-button svg:active {
	transform: scale(0.9);
}

.ok-toast-container:hover {
	scale: 1.1;
}

.toast-icon {
	display: flex;
	padding: 4px;
	align-items: flex-start;
	gap: 8px;
	border-radius: 50%;
	background: #303746;
}

.toast-green-glow {
	box-shadow: 0 0 8px 1px rgba(43, 140, 89, 0.3);
}

.toast-yellow-glow {
	box-shadow: 0 0 8px 1px rgba(245, 166, 35, 0.2);
}

.toast-red-glow {
	box-shadow: 0 0 8px 1px rgba(173, 40, 40, 0.3);
}

.toast-text-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 0 0;
	max-width: 90%;
}

.toast-title {
	align-self: stretch;
	color: var(--global-font-color);
	font-weight: 600;
	line-height: 22px; /* 129.412% */
	font-style: normal;
	font-size: var(--font-size-medium);
}

.toast-message {
	align-self: stretch;
	color: var(--global-font-color);
	font-weight: 400;
	line-height: 18px; /* 138.462% */
	font-style: normal;
	font-size: var(--font-size-normal);
}

.toast-progress-bar{
	position: absolute; 
	bottom: 0; 
	left: 0; 
	height: 2px;
	width: 100%;
	transition: width linear;
}

.icon-only-button {
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.3rem;
	color: var(--black);
}

/* #endregion */

/* #region Modals */

dialog {
	width: 35vw;
	max-height: 80vh;
	border-radius: 16px;
	border: 1px solid var(--light-gray, #667085);
	padding: 25px;
	background: var(--plain-white);
}

dialog::backdrop {
	background: rgb(0, 0, 0, 0.5);
}

#confirm-modal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	min-height: 10rem;
}

#confirm-modal-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	align-self: stretch;
	font-weight: 600;
	color: var(--black);
	font-size: var(--font-size-large);
	word-break: break-word;
}

#confirm-modal-body {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	flex: 1 0 0;
	align-self: stretch;
	font-weight: 400;
	color: var(--gray);
	font-size: var(--font-size-normal);
	word-break: break-word;
}

#confirm-modal-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	align-self: stretch;
}

/* #endregion */

/* #region Page Header */

.page-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0 1rem;
}

.page-header > h1 {
	margin-bottom: 0;
}

.page-header > button {
	margin-left: auto;
}

.page-header nb-icon {
    width: 42px;
    height: 42px;
}

/* #endregion */

/* #region Temporary Batch CSS*/

.page-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0.25rem 1rem;
	justify-content: space-between;
    min-height: 4.85rem
}

.page-header > h1 {
	margin-bottom: 0;
	font-size: 2rem;
}

.batch-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.batch-header h2 {
	padding: 0;
	margin: 0;
}

.batch-header > div {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

#batch-details-overview {
	margin: 1em 0;
}

.table-utilities {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.sortable-chosen {
	border: 1px solid var(--primary-green);
	border-radius: 5px;
	scale: 0.95;
}

/* #endregion*/
/* #region Details Panel CSS*/

.details-panel-container {
	display: flex;
	flex-direction: column;
	gap: 1em;
	border-radius: 15px;
	padding: 1.5em 2.5em;
	margin-bottom: 1em;
}

.details-panel {
	--column-width: 20%;
	align-items: flex-start;
	display: inline-flex;
	flex-flow: wrap;
	align-content: flex-start;
	column-gap: calc((var(--column-width) - 5em) / 3);
	row-gap: 3rem;
	justify-content: center;
	padding: 1rem 2rem;
}

.horizontal-overview-data-header {
	margin-bottom: 1rem;
}

.details-field {
	display: flex;
	flex-direction: column;
	min-width: 20%;
	gap: 0.5em;
	color: var(--global-font-color);
}

.details-field span:not(.underline),
.details-field label {
	font-weight: 400;
	color: var(--gray);
	margin: 0;
	padding: 0;
	width: 100%;
}

.details-field p,
.details-field a {
	font-weight: 500;
	color: var(--global-font-color);
	font-size: var(--font-size-medium);
	margin: 0;
	width: 100%;
	padding: 0;
}

.details-field p b,
#task-preview b {
	color: var(--light-global-font-color);
}
#task-preview {
	color: var(--global-font-color);
}

.details-field input {
	font-weight: 400;
	color: var(--gray);
	font-size: var(--font-size-normal);
}

/* #endregion*/

.inline-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5em;
	height: 1.5em;
}

.row {
	display: flex;
	flex-direction: row;
}

.column {
	display: flex;
	flex-direction: column;
}

.container {
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	padding: 0.5em;
}

.table {
	display: table;
	width: 100%;
	border-collapse: collapse;
}

.table-row {
	display: table-row;
}

.cell {
	display: table-cell;
	padding: 1em 1em;
	border: none;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Animation for fading out */
.fade-out {
	animation: fadeOut 0.5s;
	opacity: 0;
}

/* Animation for fading in */
.fade-in {
	animation: fadeIn 0.5s;
	opacity: 1;
}

/* Keyframes for animations */
@keyframes fadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

@keyframes fade-out {
	to {
		opacity: 0;
	}
}

@keyframes slide-from-right {
	from {
		transform: translateX(90px);
	}
}

@keyframes slide-to-left {
	to {
		transform: translateX(-90px);
	}
}

/* define animations for the old and new content */
::view-transition-old(slide-it) {
	animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
	z-index: 0;
}

::view-transition-new(slide-it) {
	animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
		600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
	z-index: 0;
}
::view-transition-group(slide-it) {
	z-index: 0;
}

/* tie the view transition to a given CSS class */
.faded-slide-transition {
	view-transition-name: slide-it;
}

.link {
	text-decoration: underline;
	color: var(--link-blue);
	cursor: pointer;
}

.obscure-field {
	width: 100px;
	right: -9999px;
	position: absolute;
}

/* #region Context menu */
[for-eonz-context-menu] {
	position: absolute;
	z-index: 5;
	background: var(--blue-gray-alternate);
	box-shadow: var(--soft-continer-outer-shadow);
	border-radius: 0 0.75rem 0.75rem 0.75rem;
	padding: 0;
	overflow: hidden;
	margin: 0;
	max-width: 200px;
	transition: all 0.2s ease-in-out;
	transform: scale(0);
	transform-origin: top left;
}

/* Only show when element has `.show` class */
[for-eonz-context-menu].show {
	transform: scale(1);
}

.context-menu-container {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.context-menu-item {
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 5px;
	font-size: var(--font-size-normal);
	font-weight: 500;
}
.context-menu-item:not(:last-child) {
	border-bottom: 1px solid var(--border-color);
}

.context-menu-item:hover,
.context-menu-item:hover a {
	font-weight: 600;
	color: var(--darker-primary-green);
}
.context-menu-item a {
	color: var(--global-font-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	gap: 5px;
}

.context-menu-item svg {
	width: 1.4rem;
	height: 1.4rem;
	-ms-align-content: center;
	-webkit-align-content: center;
	align-content: center;
}
/* Disabled context menu option */
.context-menu-item.disabled {
	pointer-events: none;
	color: var(--disabled-gray);
}

/* #endregion */

/* #region Top Bar */
@keyframes ring {
	0% {
		transform: rotate(0);
	}
	2% {
		transform: rotate(15deg);
	}
	4% {
		transform: rotate(-14deg);
	}
	6% {
		transform: rotate(13deg);
	}
	8% {
		transform: rotate(-12deg);
	}
	10% {
		transform: rotate(11deg);
	}
	12% {
		transform: rotate(-10deg);
	}
	14% {
		transform: rotate(9deg);
	}
	16% {
		transform: rotate(-8deg);
	}
	18% {
		transform: rotate(7deg);
	}
	20% {
		transform: rotate(-6deg);
	}
	22% {
		transform: rotate(5deg);
	}
	24% {
		transform: rotate(-4deg);
	}
	26% {
		transform: rotate(3deg);
	}
	28% {
		transform: rotate(-2deg);
	}
	30% {
		transform: rotate(1deg);
	}
	32% {
		transform: rotate(0);
	}
	100% {
		transform: rotate(0);
	}
}

.ring-animation {
	transform-origin: top;
	transition: transform 0.2s ease-in-out;
	animation: ring 4s 0.7s ease-in-out infinite;
	transform-origin: 50% 4px;
}
/* #endregion */

/* #region Vertical Carousel */
.vertical-carousel-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-y: auto;
	width: 100%;
	height: 85vh;
	scroll-snap-type: y mandatory;
	/* hide scrollbar */
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
	padding: 5%;
}

.double-carousel-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

/* CSS */
.vertical-carousel-container.single-child {
	justify-content: center;
}

.carousel-item {
	width: 80%;
	min-height: 40dvh;
	scroll-snap-align: center;
	opacity: 0.5;
	transition: all 0.25s;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background-color: var(--deep-background-color);
}

.carousel-item.active {
	opacity: 1;
	transform: scale(1.2);
	display: flex;
}

.carousel-item.inactive {
	opacity: 0;
}

/* Facilities carousel specific */
.facilities-carousel-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 15px;
}

.facilities-carousel-card h3 {
	font-size: var(--font-size-large);
	margin: 0;
	padding: 0;
}

.facilities-carousel-card img,
.facilities-carousel-card svg {
	height: 50%;
	width: auto;
	aspect-ratio: 1;
}
/* #endregion */

#roomsListContainer {
	overflow-x: scroll;
	padding-right: 1em;
}


.italic {
	font-style: italic;
}

#barcodeScanner header h1 {
	margin: 0;
}

#barcodeScanner header .title-with-icon svg {
	width: 1.5em;
	height: 1.5em;
}

#barcodeScanner header .title-with-icon {
	display: flex;
	align-items: center;
	flex-direction: row;
	gap: 10px;
}
#barcodeScanner header {
	background-color: var(--background-white);
	border-radius: 0.5em 0.5em 0 0;
}
#barcodeScanner {
	position: absolute;
	z-index: 20;
	/* Addd a shadow to the camera preview. */
	box-shadow: 0 0 30px 1px color-mix(in srgb, var(--black) 25%, transparent);
}

/* Make the `video` tag inside movable. */
#barcodeScanner > #camera-preview {
	width: min-content;
	height: min-content;
	border-radius: 0 0 0.5em 0.5em;
}

#barcodeScanner > #camera-preview canvas {
	width: 0;
}

/* #region Audit log*/
.audit-log-table table td {
	padding: 0.5rem 0.75rem;
}

/* #endregion */

.cf-turnstile {
	display: flex;
	justify-content: center;
}

fieldset {
	border: none;
}

.color-indicator {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
}

.thumbnail-image{
	align-self: center;
	aspect-ratio: 1.25;
	object-fit: contain;
	width: 20rem;
    border-radius: 2rem;
}

#dark-mode-icon, #light-mode-icon{
	visibility: hidden !important;
}

html[data-theme="light"] #dark-mode-icon{
	visibility: visible !important;
}

html[data-theme="light"] #light-mode-icon{
	visibility: hidden !important;
	max-width: 0;
	max-height: 0;
}

html[data-theme="dark"] #dark-mode-icon{
	visibility: hidden !important;
	max-width: 0;
	max-height: 0;
}

html[data-theme="dark"] #light-mode-icon{
	visibility: visible !important;
}

.farmops-icon {
    filter: drop-shadow(0 0 0.15rem rgba(0, 0, 0, 0.4))
}