@font-face {
	font-family: Figtree;
	src: url(/ttf/figtree.ttf);
}

@font-face {
	font-family: Figtree;
	font-style: italic;
	src: url(/ttf/figtree-italic.ttf);
}

* {
	font-family: Figtree,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

p {
	text-align: left;
	line-height: 1.5;
}

.scroll-interior {
	max-height:calc(100vh - 26rem);overflow-y:scroll;-ms-overflow-style: nonescrollbar-width: none;
}

.scroll-interior::-webkit-scrollbar {
  display: none;
}
/*
.material-request-icon {
	background-color: #8cbeb5;
	display: inline-block;
	width: 1.2rem;
	height: 1.2rem;
	vertical-align:middle;
	border-radius: 50%;
	text-align: center;
	font-size: 95%;
	font-weight: bold;
	color: #000;
	font-style:normal;
}
*/

@keyframes glimmer {
	0%   { background-color: #ffffff;}
	17%  { background-color: #ffbf48;}
	33%  { background-color: #ffffff;}
	50%  { background-color: #ffbf48;}
	67%  { background-color: #ffffff;}
	83%	 { background-color: #ffbf48;}
	100% { background-color: #ffffff;}	
}

.glimmer {
	animation-name: glimmer;
	animation-duration: 1.25s;
}

.debug-element {
	display: none;
}

#root {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0; left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #FFD0D0;
	box-sizing: border-box;
	max-height: 100vh;
}

#dialogs {
}

#dialogs>div, .nested_dialog, #fadeaways>div {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #00001060;
	overflow-y: scroll;
}

.nested_dialog {
	z-index: +2;
}

.dialog_container_outer {
	min-height:100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.dialog_container {
}
.dialog_pad {
	height: 5rem;
}

#popups {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	pointer-events: none;
}

#toasts {
	position: fixed;
	top: 1rem;
	right: 1rem;
	display: flex;
	flex-direction: column;
}

.toast {
	width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-height: 100vh;
    overflow-y: scroll;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

#top {
	height: 75px;
	background-color: #2a2a38;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0.75rem 1.25rem;
}

#bottom {
	flex-grow:1;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	max-height:100%;
	min-height: 0;
}

#left {
	background-color: #2a2a38;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 0.75rem;
	color: white;
	font-weight: 500;
	gap: 0.75rem;
	height: 100%;
	width: 15rem;
	flex-shrink: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #556667 transparent;
}

#left > * {
	flex-shrink: 0;
	white-space: nowrap;
}

#sidebar_toggle,
#sidebar_backdrop {
	display: none;
}

@media (max-width: 1024px) {
	#sidebar_toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		padding: 0.5rem;
		margin-right: 0.75rem;
		background-color: transparent;
		border-radius: 0.5rem;
		color: white;
		cursor: pointer;
	}

	#sidebar_toggle:hover {
		background-color: #18a37f;
	}

	#sidebar_toggle>svg {
		height: 1.5rem;
		display: block;
	}

	#bottom {
		position: relative;
	}

	#left {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 20;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0s 0.2s;
	}

	/* The sidebar is off-canvas here, so dialogs must not be offset by its width (set inline from JS). */
	#dialogs .bumper {
		left: 0 !important;
	}

	#dialogs .dialog_container_outer {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	#root.sidebar_open #left {
		transform: none;
		visibility: visible;
		box-shadow: 4px 0 24px #00001060;
		transition: transform 0.2s ease;
	}

	#root.sidebar_open #sidebar_backdrop {
		display: block;
		position: absolute;
		inset: 0;
		z-index: 19;
		background-color: #00001040;
	}
}

#right {
	height: 100%;
	box-sizing: border-box;
	flex-grow:1;
	min-width: 0;
}

#page_container {
	height: calc(100vh - 75px);
	box-sizing: border-box;
	overflow-y: auto;
	background-color: #d9e0ea;
}

div:has(>input), div:has(>select) {
	position: relative;
}

#page {
	padding: 2rem 2rem;
}

#top_right_menu_container {
	display: flex;
	justify-content: flex-end;
	gap: 0.25rem;
}

iframe {
	border: 1px solid #bbb;
}

#statusbar {
	z-index: 1000;
	color: #00004080;
	position: fixed;
	bottom: 0.75rem;
	right: 2rem;
}

#connection_info {
	margin-left: 1rem;
}

#connection_info svg {
	display: inline-block;
	vertical-align: middle;
	height: 1.25rem;
}

#watermark {
	pointer-events: none;
}

form>div, .form-row, .form-page>div {
	width:100%;
	box-sizing:border-box;
	margin-top: 0.5rem;
}

.top_right_menu {
	display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
    border-radius: 1.5rem;
    padding: 0.25rem 1rem;
    position: relative;
    user-select: none;
	transition: background-color 0.15s;
}

.menu {
	position: absolute;
    top: 1rem;
    right: 0;
	z-index: 100;
    background-color: #f2f6fb;
    display: block;
    padding: 0.625rem 0rem 0.625rem 0rem;
    color: black;
    box-sizing: border-box;
    margin-top: 1.5rem;
    border-radius: .5rem;
    box-shadow: 0px 0.5px 5px #00000060;
    width: max-content;
}

.menu>a {
	display: block;
    color: black;
    font-size: 11pt;
    line-height: 2.0rem;
    padding-left: 1.5rem;
    padding-right: 2rem;
}

.menu>a:hover {
	background-color: #e1e3e5;
}

.top_right_menu[data-active] {
	cursor: pointer;
    background-color: #18a37fff;
	transition: background-color 0.15s;
}

.top_right_menu:hover
{
	cursor: pointer;
    background-color: #18a37fff;
	transition: background-color 0.15s;
}

.top_right_menu[data-disabled] {
	opacity: 0.4;
	pointer-events: none;
	cursor: not-allowed;
}

.top_right_menu>svg {
	display: block;
    height: 1.25rem;
    margin-right: 0.25rem;
}

svg[data-icon] {
	/* This hack helps keep everything roughly the same shape
	   while rendering is ongoing */
	aspect-ratio:1;
}

.left_navbar_item {
	display: flex;
    align-items: center;
    flex-direction: row;
    text-decoration: none;
    color: white;
    padding: 0.25rem 2.5rem 0.25rem 1.5rem;
    border-radius: 1.5rem;
    margin-right: 0rem;
    background-color: #18a37f00;
    transition: background-color 0.15s;
	user-select: none;
	position:relative;
	box-sizing: border-box;
}
.left_navbar_item:hover{
	background-color: #18a37fff;
    transition: background-color 0.15s;
    cursor: pointer;
}
.left_navbar_item>svg {
	height: 1.5rem;
	flex-shrink: 0;
    box-sizing: border-box;
    margin-right: 1.25rem;
    display: block;
}
#left hr {
	border: none;
    background: #556667;
    height: 1px;
}

#new_request_button {
	display: flex;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(#fcff31, #ffbc49);
    color: black;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    align-items: center;
    box-shadow: 0 0 0 #FFFF0000;
    transition: box-shadow 0.15s;
    box-sizing: border-box;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}
#new_request_button>svg {
	flex-shrink: 0;
	margin-right: 1rem;
}
#new_request_button:hover {
	box-shadow: 0 0 50px #FFFF00FF;
    transition: box-shadow 0.15s;
    background: #FFDF00FF;
    cursor: pointer;
}

.tabs {
	font-weight:500;
	background-color:#dbe6da; /*dce7f3;*/
	display:flex;
	flex-wrap:wrap;
	gap:0.5rem;
	justify-content:center;
	position:relative;
	left:-1.5rem;
	right:-1.5rem;
	/* Bleed over the dialog's 1.5rem side padding at any dialog width. */
	width:calc(100% + 3rem);
	padding-top:0.75rem;
	padding-bottom:0.75rem;
}

.tabs>a {
	padding: 0.5rem;
	border-radius: 1.5rem;
	padding: 0.375rem 1.25rem;
	text-decoration: none;
	color: #13171a;
	transition: color 0.15s;
	transition: background-color 0.15s;
	user-select: none;
}

.tabs>a:hover, .tabs>a[data-selected] {
	color: white;
	background-color: #158d79;
	transition: color 0.15s;
	transition: background-color 0.15s;
	cursor: pointer;
}


.tabs>a[data-disabled] {
	color: #a0a0a0;
	background-color: #00000000;
	cursor: not-allowed;
}

.tabs>a[data-disabled]:hover {
	background-color: #00000000;
	color: #a0a0a0;
}

form .row {
	display: flex;
	gap: 1rem;
	width: 100%;
	margin-top: 0.5rem;
}

form .row>div {
	width: 100%;
}

.switch {
	width: 3rem;
	height: 1.625rem;
	background-color: #158d79;
	box-shadow: 0px 0px 3px inset #00000080;
	border-radius: 0.8125rem;
	position:relative;
	cursor: pointer;
}

.switch:hover {
	background-color: #0b5e55;
}

.switch:hover>div {
	/*background-color: #f0f3f5;*/
}

.switch.disabled {
	background-color: #b0B0B0;
	pointer-events: none;
	box-shadow: none;
}

button:has(.upload-leaflet) {
	position: relative;
}

.upload-leaflet {
	border: 1px solid #456;
	background-color: white;
	border-radius: 0.5rem;
	position: absolute;
	top: 2.75rem;
	min-height: 20rem;
	width: 30rem;
	z-index: +1;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;
}

.upload-leaflet button {
	max-width: 20rem;
}

.switch>div {
	position:absolute;
	height:1.25rem;
	border-radius: 0.625rem;
	width: 1.25rem;
	background-color: white;

	top: 0.1875rem;
	left: 0.1875rem;
	pointer-events: none;
	transition: left 0.15s;
}

.switch[data-checked]>div {
	left: 1.625rem;
	transition: left 0.15s;
}

/* Switch variant with off/on coloring (gray when off, green when on) */
.switch.switch-onoff {
	background-color: #888;
}
.switch.switch-onoff:hover {
	background-color: #666;
}
.switch.switch-onoff[data-checked] {
	background-color: #158d79;
}
.switch.switch-onoff[data-checked]:hover {
	background-color: #0b5e55;
}

option[disabled] {
	font-style: italic;
}

.border_1 {
	border: 1px solid #27c4a6;
    border-radius: 0.75rem;
	padding: 0.5rem 1rem;
}

a {
	color: #18a37f;
	cursor: pointer;
}

.small {
	font-weight: 500;
	font-size: 80%;
	color: #60646f;
	position: relative;
	top: 0rem;
	font-style: italic;
	margin-left: 0.5rem;
}

input[type=text],
input[type=ssn],
input[type=password],
input[type=email],
input[type=date],
input[type=phone],
input[type=number],
textarea,
select {
	border-radius: .375rem;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-left: 0; margin-right: 0; margin-top: .25rem;
	font-size: 1rem;
	line-height: 1.5rem;
	border: 1px solid #d1d5db;
	padding: .5rem .75rem;
	background-color: #f2f6fb;
	height: 2.6125rem;
}

/* A field the viewer may not change (the user dialog, SD-3537): read-only, so it can still be selected and copied,
   and greyed like a muted callout so it does not look editable */
input.locked,
textarea.locked {
	background-color: #f3f4f6;
	color: #4b5563;
	cursor: default;
}

/* Custom chevron so it gets the same inset as the text on the left (native arrows ignore padding) */
select {
	padding-right: 2.25rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 1.25rem;
}

/* Boxes in dialogs: information (callout), what needs attention (callout attention), a neutral list (callout muted) */
.callout {
	background-color: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 0.5rem;
	padding: 0.5rem 0.75rem;
}

.callout.attention {
	background-color: #fff8e5;
	border-color: #f0c36d;
}

.callout.muted {
	background-color: #f3f4f6;
	border-color: #d1d5db;
}

/* A group of options with nothing in it (a generic test's lab list, test.html) isn't shown */
select optgroup:empty {
	display: none;
}

textarea {
	resize: vertical;
	height: 6rem;
}

button {
	text-transform: uppercase;
	color: white;
	letter-spacing: .1em;
	font-weight: 600;
	background-color: #18a37f;
	border:none;
	text-align: center;
	padding-top: .6rem;
	padding-bottom: .6rem;
	padding-left: 2rem;
	padding-right: 2rem;
	border-radius: .375rem;
	transition: 0.15s background-color;
}

button[data-disabled] {
	background: initial !important;
	background-color: #888 !important;
	color: white !important;
	animation: none !important;
	-webkit-mask-image: none !important;
}

button[data-disabled]:hover {
	background-color: #888;
	box-shadow: none;
	cursor: not-allowed;
}
button:hover {
	cursor:pointer;
	background-color: #158d79;
	transition: 0.15s background-color;
	box-shadow: 0px 1px 3px #00000040;
}
button[data-theme=red] {
	background-color: #8d2f29;
}
button[data-theme=red]:hover {
	background-color: #5f1a1a;
}

#order_origin {
	position:absolute;
	top:1rem;
	left:0.5rem;
	font-weight:500;
	color:#808080;
}
#order_origin svg {
	display: inline-block;
	height: 0.875rem;
}
#order_times {
	position:absolute;
	top:1rem;
	right:2.5rem;
	text-align:right;
	font-weight:500;
	color:#808080;
}
/* Too narrow for three columns (origin, title, times): stack them above the title. The dialog is
   narrower than the viewport by the sidebar, so this breakpoint is above the usual 1024px. */
@media (max-width: 1080px) {
	#order_origin, #order_times {
		position: static;
		text-align: left;
		font-size: 0.8rem;
		margin-right: 2rem;
	}
}
/* Side by side, #order_origin has three lines ("Created by ..." is the third): keep the line under
   the title below them */
@media (min-width: 1081px) {
	#stickyheader > hr {
		margin-top: 1rem;
	}
}
.pellet {
	position: absolute;
	top: 0.25rem;
	left: 1.5rem;
	transform: translate(-50%,-50%);
	min-width: 1.25rem;
	padding: 0rem 0.2rem;
	height: 1.25rem;
	border-radius: 0.625rem;
	font-size: 85%;
	font-weight: bold;
	color: white;
	display:flex;
	align-items:center;
	justify-content:center;
}

td {
	vertical-align: top;
}

.uploaded-item {
	/*margin-top: 0.5rem;*/
	box-shadow: 0px 3px 5px #00000040;
	border-radius: 1rem;
	display:flex;
	padding:0.75rem;
	background: #18a37f;
	color: white;
	align-items: center;
}

#supporting_documents .uploaded-item {
	background: #2a2a38;
}

.uploaded-item-name {
	overflow-x: hidden;
	width:11rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.uploaded-item-created-at {
	font-size: 85%;
	opacity: 85%;
}

/* What a supporting document is (pathology report, insurance card, other), chosen on its tile */
.uploaded-item-type {
	height: 1.9rem;
	margin-top: 0.4rem;
	padding: 0 2rem 0 0.5rem;
	font-size: 85%;
	color: #1f2937;
	background-position: right .4rem center;
}

/* The type where the user can't change it: text, under the upload time */
.uploaded-item-type-text {
	margin-top: 0.4rem;
}

/* ... and where the document has none yet */
.uploaded-item-type-missing {
	font-style: italic;
}

/* Under a document's type after each change: a small spinner while it is being stored, then "Saved" for a moment
   (types have no Save button) */
.uploaded-item-type-status {
	display: flex;
	align-items: center;
	min-height: 1.1rem;
	margin-top: 0.25rem;
	font-size: 85%;
	color: #6ee7b7;
}

.uploaded-item-type-spinner {
	width: 0.8rem;
	height: 0.8rem;
	box-sizing: border-box;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: uploaded-item-type-spin 0.7s linear infinite;
}

@keyframes uploaded-item-type-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.uploaded-item-type-spinner { animation-duration: 2s; }
}

.uploaded-item-type.required_highlight {
	border: 3px solid #902929 !important;
}

.uploaded-item:hover {
}

.uploaded-item-close {
	height: 1.5rem;
	color: white;
	cursor:pointer;
}

.uploaded-item-close:hover {
	color: red;
}

.uploaded-item-close svg {
	display: block;
	height: 1.5rem;
}

.medtest {
	margin-top:0.5rem;
	background-color: #d3e5ff;
	border-radius: 0.75rem;
	border: 1px solid #a3bde1;
	padding: 0.5rem 1.5rem;
	padding-top: 0.25rem;
	margin-top: 1.5rem;
}

.medtest label {
	color #080c0e;
}

.medtest input {
	border-color: #b1b3b7 !important;
}

.medtest input[type=checkbox] {
	background-color: white;
}

div.drag-outer {
	box-sizing:border-box;margin-top:0;min-height:5rem;position:relative;
}

/*div.dragndrop {
	position:absolute;
	top:0;left:0;right:0;bottom:0;
	display: flex;
	align-items:center;
	justify-content:center;
	font-style:italic;
	color: #404040;
	user-select: none;
	box-sizing: border-box;
*/
/*
.instructions {
	display: none;
}

div.drag-outer:has(.upload-button:only-child) .instructions {
	display: block;
}

.instructions2 {
	display: none;
}
*/
div:has(>.instructions2){ 
	top:0;left:0;right:0;bottom:0;
	display: flex;
	align-items:center;
	justify-content:center;
	font-style:italic;
	color: #404040;
	user-select: none;
	box-sizing: border-box;
}
/*
.dragndrop:has(.upload-button:only-child) .instructions2 {
	display: block;
}

.dragndrop:has(.upload-button:only-child) .instructions2 {
	display: block;
}
*/

div.dragndrop-files {
	display: flex;
	gap:0.5rem;
	margin:0.5rem;
	box-sizing:border-box;
	flex-wrap:wrap;
	align-items: center;
}

div.upload-button {
	height:44px;
	/*margin-top:8px;*/
	display:flex;
	align-items:center;
	order:1000;
}

div.upload-button div {
	font-size:200%;
	color:#60cfb2;
	user-select:none;
	z-index:+1;
}

div.upload-button div:hover {
	color:#18a37f;
	cursor:pointer;
}

.nav-menu {
	display:flex;
	align-items:center;
	color:white;
	font-weight:500;
	border-radius: 1.5rem;
	padding: 0.25rem 0.675rem;
	position: relative;
	user-select: none;
	z-index: 6;
}

.folder {
	text-align:center;
	cursor: pointer;
	user-select:none;
}

.folder svg {
	display:inline;
	height:1.25rem;
	float:right;
}

.nav-submenu {
	position:absolute;
	top:1rem;right:0;
	background-color:#f2f6fb;
	z-index: 4;
	display:none;
	padding: 0.625rem 0rem 0.625rem 0rem;
	color: black;
	box-sizing: border-box;
	margin-top: 1.5rem;
	border-radius:.5rem;
	box-shadow: 0px 0.5px 5px #00000060;
	width: 15rem;
}	

.active-menu .nav-submenu {
	display: block;
}

.nav-submenu a {
	display: block;
	color: black;
	font-size: 11pt;
	line-height: 2.0rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.nav-submenu a:hover {
	background-color: #e1e3e5;
}

.nav-menu svg {
	display:block;
	height:1.25rem;
	margin-right:0.25rem;
}

.nav-menu:hover, .active-menu {
	cursor: pointer;
	background-color: #18a37fff;
}

.logged-out-container {
	background-color: #2a2a38;
	display: flex;
	position: fixed;
	top: 0; bottom: 0; left: 0; right: 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	z-index: 2;
	overflow-y: auto;
}

.system-banner {
	text-transform: uppercase;
	font-size: 3rem;
	color: #5c5c7b;
}

#stickyshadowholder {
	transition: box-shadow 0.25s;
}

.stuck #stickyshadowholder {
	box-shadow: 0px 5px 5px #00000040;
	border-bottom: 1px solid #a0a0a0;
	transition: box-shadow 0.25s;
}

#stickyfootershadowholder {
	transition: box-shadow 0.25s;
}

.stuck #stickyfootershadowholder {
	box-shadow: 0px -5px 5px #00000040;
	border-top: 1px solid #a0a0a0;
	transition: box-shadow 0.25s;
}

.dialog {
	position: relative;
	display:block;
	background-color: #ffffff;
	padding: 1rem 1.5rem 1rem 1.5rem;
	width: 100%;
	max-width: 1024px;
	box-sizing: border-box;
/*	margin-top: 1.5rem;*/
	border-radius:.5rem;
	box-shadow: 0px 0.5px 5px #00000060;
	margin-left: auto;
	margin-right: auto;
}

/* Request dialog with its comment thread in a column on the right (request.html, request_comments.html) */
.request-layout {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 1rem;
}

.request-layout > .dialog {
	flex: 0 1 1024px;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
}

.request-comments {
	flex: 0 0 20rem;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: calc(100vh - 8rem);
	padding: 1rem;
	background-color: #ffffff;
	border-radius: .5rem;
	box-shadow: 0px 0.5px 5px #00000060;
}

.request-comments-header {
	position: relative;
	flex-shrink: 0;
}

.request-comments-header h2 {
	margin: 0 0 0.75rem 0;
}

/* Not a .close-button: Escape clicks those to close the dialog */
/* Only in the narrow-screen overlay, which covers the header button; on wide screens that button hides the panel */
.request-comments-close {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: 1.5rem;
	height: 1.5rem;
	color: #40000040;
	cursor: pointer;
}

.request-comments-close:hover {
	color: red;
}

/* One inner wrapper: column-reverse keeps the scroll at the newest comment without JS */
.request-comments-list {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column-reverse;
}

.request-comment {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	background-color: #f2f2f6;
}

.request-comment-mine {
	background-color: #e8f6f2;
}

.request-comment-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 85%;
}

.request-comment-delete {
	flex-shrink: 0;
	width: 1.1rem;
	color: #00000060;
	cursor: pointer;
}

.request-comment-delete:hover {
	color: red;
}

.request-comment-body {
	margin-top: 0.35rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.request-comment-deleted .request-comment-body {
	color: #808080;
}

.request-comment-confirm {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
	font-size: 85%;
}

.request-comment.confirming .request-comment-confirm {
	display: flex;
}

.request-comment-confirm button {
	padding: 0.35rem 0.75rem;
}

.request-comments-empty {
	color: #808080;
	font-style: italic;
}

.request-comment-form {
	flex-shrink: 0;
	padding-top: 0.5rem;
	border-top: 1px solid #e0e0e0;
}

.request-comment-form textarea {
	height: 5rem;
}

.request-comment-actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.request-comment-actions button {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	flex-shrink: 0;
}

.request-comments-shared {
	font-size: 80%;
	color: #808080;
}

/* Narrow screens: the thread opens over the dialog from a button in its header */
/* Under the close button; the count goes to the left, so the icon lines up with the close button */
/* Shows and hides the panel on every screen width */
.request-comments-toggle {
	display: flex;
	position: absolute;
	top: 3rem;
	right: 0;
	height: 1.5rem;
	flex-direction: row-reverse;
	align-items: center;
	gap: 0.2rem;
	color: #18a37f;
	cursor: pointer;
}

.request-comments-toggle svg {
	display: block;
	height: 1.5rem;
}

.request-comments-badge {
	font-size: 80%;
	font-weight: 600;
}

@media (max-width: 1639px) { /* sidebar + 1024px dialog + gap + 20rem panel no longer fit side by side */
	.request-comments {
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 5;
		width: min(24rem, 100vw);
		height: auto;
		border-radius: 0;
		padding-bottom: 2.75rem; /* room for #statusbar, which is fixed over the bottom right corner */
	}

	.request-comments.open {
		display: flex;
	}

	.request-comments-close {
		display: block;
	}
}

/* Wide screens: the panel starts open next to the request; the button in the header hides and shows it */
@media (min-width: 1640px) {
	.request-comments.closed {
		display: none;
	}
}

/* Super admins have the activity button under the close button, so the comments button moves to
   the left of the close button, where the request times are: keep the times clear of it */
#stickyheader:has(.activity-button) .request-comments-toggle {
	top: 1rem;
	right: 2.25rem;
	flex-direction: row;
}

#stickyheader:has(.activity-button):has(.request-comments-toggle) #order_times {
	right: 5rem;
}

/* Stacked above the title, the origin and the times run up to the buttons on the right */
@media (max-width: 1080px) {
	#stickyheader:has(.request-comments-toggle) #order_origin,
	#stickyheader:has(.request-comments-toggle) #order_times {
		margin-right: 3rem;
	}

	#stickyheader:has(.activity-button):has(.request-comments-toggle) #order_origin,
	#stickyheader:has(.activity-button):has(.request-comments-toggle) #order_times {
		margin-right: 5rem;
	}
}

.left-navbar div hr {
	border: none;
	background: #556667;
	height:1px;
}

.inner-container {
	flex-grow:1;
	overflow-y:auto;
	background-color: #d9e0ea;
}

.inner {
	box-sizing: border-box;
	margin-top: 2.5rem;
}


.page {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0; left:0; right:0; bottom:0;
}

.form-checkbox-row {
	display:flex;
	justify-content:start;
	align-items:center;
	margin-top: 0.5rem;
}

.form-horizontal-row {
	display:flex;
	justify-content:start;
	align-items:center;
	gap:1rem;
	margin-top: 0.5rem;
}

.form-horizontal-row>div {
	width:100%;
}

.dialog-container {
	position: fixed;
	top:0;left:0;bottom:0;right:0;
	display:flex;
	flex-direction: column;
	align-items:center;
	justify-content:center;
	z-index:5;
}

.dialog-container>div {
	width:100%;
	margin-left:0;
	margin-right:0;
	/**/
	max-height:100vh;
	overflow-y: scroll;
	padding-bottom: 2rem;
	padding-top: 2rem;
}

.form-checkbox-row input[type="checkbox"] {
	margin-right: 0.675rem;
}


.folding-area {
	border: 1px solid #27c4a6;
	border-radius: 1.5rem;
} 

.folding-area-unstyled {}

.folding-area-header {
	display: flex;
	width: 100%;
	align-items: center;
	height: 2rem;
}

.folding-area-title {
	text-align: center;
	flex-grow: 1;
	cursor:pointer;
}

.folding-area-inner {
	padding: 1rem;
}

.folding-area-unstyled>.folding-area-inner {
	padding: 0px;
}

.folding-area-icon {
/*	flex-basis: 0;*/
	height: 1.5rem;
	width: 1.5rem;
	padding-right: 1rem;
	color: black;
}

.icon-button-blue {
	color: #2c4096;
}
.icon-button-blue:hover {
	background-color:#2c4096;
	color: white;
}

.icon-button-red {
	color: #c54545;
}
.icon-button-red:hover {
	background-color: #c54545;
	color: white;
}

.icon-button-green {
	color: #18a37f;
}
.icon-button-green:hover {
	background-color: #18a37f;
	color: white;
}

.form-row-icon-button {
	background-color: #00000000;
	border-radius: 50%;
	padding: 0.125rem;
	margin-left: 0.125rem;
	cursor: pointer;
}

.form-row-icon-button svg {
	display: block;
	height:1.5rem;
	width:1.5rem;
}

label {
	display: block;
	color: #374151;
	font-weight:500;
	font-size:.875rem;
}

.watermark {
	z-index: 20;
	pointer-events: none;
	position: fixed;
	bottom: 10px;
	right: 10px;
	color: #00004080;
}

input[type=checkbox] {
	border: 1px solid #d1d5db;
	border-radius: .375rem;
	height:1.25rem;
	padding:2px;
	appearance:none;
	aspect-ratio:1.025 / 1;
	display:block;
	box-sizing:border-box;
}

input[type=checkbox].specbox {
	background-color: #e4dae6;
	border-color: #000000;
	border-witdth:3px;
}

input[type=checkbox]:checked {
	background-color: #18a37f;
	background-image:url(/images/check.svg);
}

input[type=text]:focus, input[type=ssn]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, input[type=phone]:focus, textarea:focus, select:focus {
	outline-color: #27c4a6;
}

label:has(+ div>[required])::after, label:has(+ [required])::after {
	content: "*";
	color:red;
	font-weight:bold;
	font-size:112.5%;
}

input[type=text][data-required-unfilled],
input[type=ssn][data-required-unfilled],
input[type=email][data-required-unfilled],
input[type=date][data-required-unfilled],
input[type=phone][data-required-unfilled],
select[data-required-unfilled] {
	background-color: #fff4dd;
}

div.ordered input[type=text]:focus, 
div.ordered input[type=ssn]:focus, 
div.ordered input[type=password]:focus,
div.ordered input[type=email]:focus,
div.ordered input[type=date]:focus, 
div.ordered input[type=phone]:focus,
div.ordered input[type=number]:focus,
div.ordered textarea:focus,
div.ordered select:focus {
	outline-color: #ab4924;
}
div.ordered .border_1, div.ordered .folding-area {
	border: 1px solid #ab4924;
}

div.ordered .tabs {
	background-color:#e6deda; /*dce7f3;*/
}
div.ordered .tabs>a:hover,div.ordered .tabs [data-selected] {
	background-color: #ab4924;
}
div.ordered button.generic-color {
	background-color: #ab4924;
}

div .tabs>#results_tab.glow {
	background:linear-gradient(#fcff31, #ffbc49);
	color:#291b06;
	box-shadow: 0px 0px 3px #00000040;
	position:relative;
}

div .tabs>#results_tab.glow>.glow_mask {
	position:absolute;
	top:0;left:0;width:100%;height:100%;
	background-color:white;
	border-radius: 1.5rem;
	pointer-events: none;
	opacity: 0%;
	transition: opacity 0.125s;
	-webkit-mask-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
	/**/
}

div .tabs>#results_tab.glow:hover>.glow_mask {
	opacity: 100%;
	transition: opacity 0.125s;
	-webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,0) 30%, #000 50%, rgba(0,0,0,0) 70%);
	-webkit-mask-size: 200%;
	animation: shine 2s infinite;
}

div .tabs>#results_tab.glow[data-selected] {
	box-shadow: 0px 0px 5px inset #00000080;
	background:linear-gradient(#ffe668,#fcff31);
	
}

div.dispatched input[type=text]:focus, 
div.dispatched input[type=ssn]:focus, 
div.dispatched input[type=password]:focus,
div.dispatched input[type=email]:focus,
div.dispatched input[type=date]:focus, 
div.dispatched input[type=phone]:focus,
div.dispatched input[type=number]:focus,
div.dispatched textarea:focus,
div.dispatched select:focus {
	outline-color: #703e5f;
}

div.dispatched .folding-area {
	border: 1px solid #703e5f;
}

div.dispatched .tabs {
	background-color:#e4dae6; /*dce7f3;*/
}
div.dispatched .tabs>a:hover,div.dispatched  .tabs>a[data-selected] {
	background-color: #703e5f;
}
div.dispatched button.generic-color {
	background-color: #703e5f;
}

.notification {
	display:block;
	position:fixed;
	top:2rem;
	right:2rem;
	width:20rem;
	max-width:90vw;
	padding:0.75rem;
	background-color:#158d79;
	border-right:0.5rem solid white;
	/*border: 1px solid #0f6556;*/
	color:white;
	border-radius: 0.5rem;
	font-weight:500;
	font-size:112.5%;
	box-shadow: 0px 2px 5px #00000080;
	z-index:50;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.notification * {
	pointer-events: none;
}

.notification svg {
	height: 2rem;
	display: block;
	padding-right: 0.667rem;
}

/* Pop-ups stack (a fax's result can come while another one shows); the first sits where a single one always did.
   Their colors: success (default), info (blue: started, not done yet), error (red); prefixed, since .error is taken.
   One that stays has a close button. */
#toasts .notification {
	position: relative;
	top: auto;
	right: auto;
	margin: 1rem 1rem 0 0;
}

.notification.notification-info {
	background-color: #1d4ed8;
}

.notification.notification-error {
	background-color: #b91c1c;
}

/* The session warning (SD-3123): above the legal gate (900) and the documents it opens (950) */
#session_warning {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background-color: #2a2a38cc;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.session-warning-modal {
	background-color: #ffffff;
	border-radius: 0.75rem;
	max-width: 520px;
	width: 100%;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 10px 30px #0000004d;
	box-sizing: border-box;
}

.session-warning-modal h1 {
	font-size: 1.3rem;
	margin-top: 0;
}

.session-warning-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
}

.session-warning-actions button.secondary {
	background-color: #6b7280;
}

.notification .notification-close {
	pointer-events: auto;
	margin-left: auto;
	padding-left: 0.75rem;
	font-size: 1.5rem;
	line-height: 1;
}

@-webkit-keyframes shine {
  from {
    -webkit-mask-position: 150%;
  }
  
  to {
    -webkit-mask-position: -50%;
  }
}

button.button-flavor-gold {
	background:linear-gradient(#fcff31, #ffbc49);
	color:#291b06;
}

button.button-flavor-gold:hover {
  -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,.6) 30%, #000 50%, rgba(0,0,0,.6) 70%);
  -webkit-mask-size: 200%;
  animation: shine 2s infinite;
}

button.button-flavor-dispatched {
	background-color: #703e5f;
}

button.button-flavor-dispatched:hover {
	background-color: #562646;
}

button.button-flavor-ordered {
	background-color: #ab4924;
}

button.button-flavor-ordered:hover {
	background-color: #832b0a;
}

button.button-flavor-blue-raspberry {
	background-color: #1969aa;
}

#tricard {
	max-width:40rem;
	margin-left:auto;
	margin-right:auto;
	display:flex;
	gap:3.25rem;
}

#tricard>div {
	box-shadow:0px 3px 6px #00000040;
	border: 1px solid #98adcc;
	border-bottom:solid;
	border-bottom-width:0.75rem;
	border-bottom-color: #000000;
	border-radius:0.5rem;
	background-color:#acbcd4;
	width:33%;
	aspect-ratio:1/1.05;
	display:flex;
	justify-content:center;
	flex-direction:column;
	align-items:center;
	cursor:pointer;
	font-size:5rem;
	font-weight:700;
	user-select: none;
	box-sizing: border-box;
	transition: 0.2s border-bottom-width,
				0.2s border-bottom-color,
				0.2s color,
				0.2s box-shadow;
}

#tricard>div:hover {
	border-bottom-width:1.25rem;
}

#tricard #tricard-ordered {
	color:#ab4924;
	border-bottom-color:#ab4924;	
}

#tricard #tricard-ordered:hover {
	color: #e48d4b;
	border-bottom-color:#e48d4b;
	box-shadow: 0 1.0rem 1.5rem;
	box-shadow-color: #e48d4b;
}

#tricard #tricard-dispatched {
	color:#703e5f;
	border-bottom-color:#703e5f;
}

#tricard #tricard-dispatched:hover {
	color: #b45ec5;
	border-bottom-color:#b45ec5;
	box-shadow: 0 1.0rem 1.5rem;
	box-shadow-color: #b45ec5;
}

#tricard #tricard-resulted {
	color:#158d79;
	border-bottom-color:#158d79;
}

#tricard #tricard-resulted:hover {
	color: #10b7aa;
	border-bottom-color:#10b7aa;
	box-shadow: 0 1.0rem 1.5rem;
	box-shadow-color: #10b7aa;
}


#tricard #tricard-returned {
	color:#155b8d;
	border-bottom-color:#155b8d;
}

#tricard #tricard-returned:hover {
	color: #327be9;
	border-bottom-color:#327be9;
	box-shadow: 0 1.0rem 1.5rem;
	box-shadow-color: #327be9;
}

.tricard-label {
	font-size:1.5rem;
	color:#4b6469;
	font-weight:500;
	pointer-events: none;
	user-select: none;
}

#tricard>div:hover .tricard-label {
	color:#6e9198;
}

.thing1:hover {
	border-bottom: 1.25rem;
	background-color: #697381;
	cursor:pointer;
}

button[disabled] {
	background-color: #c0c4c9;
}

button[disabled]:hover {
	background-color: #c0c4c9;
	cursor: not-allowed;
	box-shadow: none;
}

/* A required select still on its placeholder option ("Choose one") reads as a placeholder; its options do not */
select[data-placeholder]:invalid {
	color: #9ca3af;
}

select[data-placeholder] option {
	color: initial;
}

.invisible { display: none; }


.login-small-text {
	font-size:.875rem;
	line-height:1.5rem;
	color: #4b5563;
	text-decoration: underline;
}

.login-small-text:hover {
	color: #111827;
}

.error {
	background-color:#f7adad;
	border:2.5px solid #c54545;
	border-radius:0.5rem;
	padding:0.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.error-close {
	padding: 0; margin: 0;
	width: 1.125rem;
	color: #600000;
}

.error-close:hover {
	color: #FF0000;
	cursor: pointer;
}

.error-close svg {
	display: block;
}


.no-padding {
	padding: 0 0 0 0;
}

.page-card {
	max-width: 1280px;
}

.dialog h1 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
	font-size: 18pt;
	font-weight: 500;
	padding: .5rem 1.5rem;
}

.dialog hr {
	border: none;
	height: 1px;
	background-color: #d0d5d7;
	width: 75%;
}

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

.dialog table tr {
	border-top: 1px solid #d0d5d7;
	box-sizing: border-box;
}

ul {
	margin:0;
	padding-left:0.25rem;
}

/* "Test details" in the request lists: each destination lab upright, its tests in italics and indented under it */
ul.test-details > li { font-style: normal; }
ul.test-details ul { padding-left: 1.25rem; font-style: italic; }

tr.clickable:hover {
	background-color: #d3e5ff;
	cursor:pointer;
}

.warning {
	background-color: #ffd6af;
	border: 2px solid #ffc047;
	border-radius:1rem;
	color:#2b1306;
	display: flex;
	padding: 1rem 1.5rem;
	gap: 1rem;
	box-sizing: border-box;
}

.warning p {
	margin-top: 0;
}

.warning button {
	background-color: #e78922;
}

.warning button:hover {
	background-color: #d45b00;
}

.warning svg {
	width: 3rem;
	color: #e78922;
}

.dialog thead {
	height: 2.0rem;
}

.dialog table th {
	text-align: left;
	/*background-color: #d0d5d7;*/
}

.dialog table td {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.dialog table thead tr:first-child {
	border-top: none;
}

table.wb_table {
	border-radius: 1rem;
}


table.wb_table th {
	background: #2a2a38;
	color: white;
	font-weight: 500;
	border: 1px solid #2a2a38;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

table.wb_table td {
	border: 1px solid #2a2a38;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}


table.wb_table tr:first-child th:first-child {
}

table.wb_table td button {
	width: 100%;
}

.icon-button:not(:hover) .svg-filled {
	display: none;
}

.icon-button:hover .svg-hollow {
	display: none;
}

.order_info_card {
	display: flex;
	justify-content: space-between;
	/*background-color: #524f6d;
	color: white;*/
	font-weight: 600;
	padding: 0.65rem 1.25rem;
	border-radius: 0.5rem;
}

label {
	display: block;
	color: #374151;
	font-weight:500;
	font-size:.875rem;
}

.form-row h1 { 
	text-align: center;
	font-size: 150%;
	text-decoration: underline #eeeeee;
	font-variant: small-caps;
}

input[required].required_highlight,
select[required].required_highlight {
	border: 3px solid #902929 !important;
}

div:has(> input[required][data-required-unfilled]) input[type=text][data-highlight-for] {
	background-color: #fff4dd;
}

input[data-highlight-for].required_highlight {
	border: 3px solid #902929 !important;
}

.close-button {
	position: absolute;
	top: 1.0rem;
	right: 1rem;
	width: 1.5rem;
	height: 1.5rem;
	color: #40000040;
}

#stickyheader .close-button {
	right: 0rem;
}

/* Super admins: opens the request's activity log, under the close button */
#stickyheader .activity-button {
	position: absolute;
	top: 3rem;
	right: 0rem;
	width: 1.5rem;
	height: 1.5rem;
	color: #40000040;
	cursor: pointer;
}

#stickyheader .activity-button:hover {
	color: #18a37f;
}

.request-activity table {
	width: 100%;
}

/* Space between the columns, so the time does not run into the name */
.request-activity th,
.request-activity td {
	padding-right: 1rem;
}

.request-activity th:last-child,
.request-activity td:last-child {
	padding-right: 0;
}

.request-activity .request-activity-time {
	white-space: nowrap;
}

.request-activity tr.request-activity-from-record td {
	color: #606060;
}

.request-activity .request-activity-note {
	margin: 1rem 0 0 0;
	font-size: 85%;
	color: #606060;
}

.close-button:hover {
	color: red;
	cursor: pointer;
}

.smart-complete {
	position: absolute;
	border: 1px solid black;
	background-color: white;
	width: 100%;
	z-index: +10;
}

.smart-complete-item {
	padding: 0.25rem;
	cursor: pointer;
}

.smart-complete-item:hover {
	background-color: darkblue;
	color: white;
}

.glow-button {
	display: flex;
	padding: 0.5rem 1.25rem;
	background:linear-gradient(#fcff31, #ffbc49);
	color:black;
	font-weight:600;
	text-decoration: none;
	border-radius: 0.75rem;
	align-items: center;
	box-shadow: 0 0 0 #FFFF0000;
	transition: box-shadow 0.15s;
	box-sizing: border-box;
	margin-left: 1.0rem;
	margin-right: 1.0rem;
}

.glow-button:hover {
	box-shadow: 0 0 50px #FFFF00FF;
	transition: box-shadow 0.15s;
	background: #FFDF00FF;
	cursor: pointer;
}

/*
[data-list=results] tr {
	display: none;
}
*/

[data-list=results] tr/*[data-ready-for-results]*/ {
	display: table-row;
}

/* Custom tooltip for edited-after-dispatch indicator */
.badge-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.5rem;
	width: 1rem;
	height: 1rem;
	color: white;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: bold;
	cursor: pointer;
	position: relative;
}

.badge-indicator::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	left: calc(100% + 0.5rem);
	transform: translateY(-50%);
	background-color: #333;
	color: white;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 1000;
}

.badge-indicator:hover::after {
	opacity: 1;
}

.edited-indicator {
	background: #a71d2a;
	font-style: italic;
}

/* A fax of an e-requisition: Sending, Delivered, Not delivered (the request's e-requisitions; the request lists show
   Sending and Not delivered) */
.fax-status {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0.1rem 0.25rem 0.1rem 0;
	padding: 0 0.5rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.6;
}

.fax-status svg {
	width: 0.95rem;
	height: 0.95rem;
}

.fax-status.sending {
	background: #e0e7ff;
	color: #3730a3;
}

.fax-status.delivered {
	background: #dcfce7;
	color: #166534;
}

.fax-status.not-delivered {
	background: #fee2e2;
	color: #991b1b;
}

/* Information icon next to a form field (Heroicons information_circle); its hint opens above it on hover */
.info-hint {
	display: inline-flex;
	flex: none;
	position: relative;
	margin-left: 0.5rem;
	color: #6b7280;
	cursor: help;
}

.info-hint svg {
	width: 1.25rem;
	height: 1.25rem;
}

.info-hint::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 0.5rem);
	right: 0;
	width: 16rem;
	background-color: #333;
	color: white;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 1000;
}

.info-hint:hover::after {
	opacity: 1;
}

/* Field that belongs to the checkbox row above it, aligned with the checkbox label */
.form-indented-field {
	margin-top: 0.25rem;
	padding-left: 1.95rem; /* padding, because form>div rows are width:100% border-box */
}

.form-indented-field + .form-indented-field {
	margin-top: 0.75rem;
}

.input-with-info {
	display: flex;
	align-items: center;
}

.input-with-info input {
	flex: 1;
	width: auto;
	min-width: 0;
}

.patient-lookup-item:hover,
.patient-lookup-item[aria-selected="true"] {	/* the item marked with the keyboard (savedLocationKey) */
    background-color: #125;
    color: white;
}

/* A search dropdown item with a detail (such as a distance) at its right */
.search-item-with-detail {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.search-item-detail {
	flex-shrink: 0;
	color: #6b7280;
	font-size: 0.85rem;
}

.patient-lookup-item:hover .search-item-detail,
.patient-lookup-item[aria-selected="true"] .search-item-detail {
	color: inherit;
}

/* A search dropdown item with a button at its right (the plus or minus of "Search orderables"). Only the button
   picks it, so the rest of the item has no pointer and no hover colour, unless the whole item picks it
   (data-row-picks, the plus): then the item is highlighted and its button looks pressed */
.search-item-with-button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 4px 8px 4px 12px;
	border-bottom: 1px solid #eee;
}

.search-item-with-button[data-row-picks] {
	cursor: pointer;
}

.search-item-with-button[data-row-picks]:hover {
	background-color: #f0f7ff;
}

.search-item-with-button[data-row-picks]:hover .icon-button-blue {
	background-color: #2c4096;
	color: white;
}

.search-item-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

/* Smaller than the 24px icon buttons of form rows, to match the text of the list */
.search-item-button svg {
	width: 1.125rem;
	height: 1.125rem;
}

/* An item already chosen ("Added" in "Search orderables"): tinted, with its state before its button, if any */
.search-item-with-button[data-state] {
	background-color: #f0faf6;
}

.search-item-state {
	color: #18a37f;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Universal View Toggle Styles */
.universal-view-toggle {
	padding: 0.5rem 1.5rem 0 1.5rem;
	margin-top: 0.5rem;
	border-top: 1px solid #d5dbe3;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.menu .universal-view-toggle .toggle-label {
	color: black;
	font-size: 11pt;
}

.toggle-container {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
}

.toggle-container input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 26px;
}

.toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.toggle-container input:checked + .toggle-slider,
.toggle-container.toggle-checked .toggle-slider {
	background-color: #8cbeb5;
}

.toggle-container input:checked + .toggle-slider:before,
.toggle-container.toggle-checked .toggle-slider:before {
	transform: translateX(22px);
}

.toggle-label {
	font-size: 0.875rem;
	color: #d9e0ea;
	user-select: none;
}

.aoe-group {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    box-sizing: border-box;
}

.aoe-group>div {
    width: calc(33% - 1rem);
}

.aoe-group>h2 {
    width: 100%;
}

.aoe-empty {
    margin-top: 1rem;
    padding: 2rem 1rem;
    background-color: #f7f8fa;
    border: 1px solid #e3e6eb;
    border-radius: 0.5rem;
    color: #4b5563;
    text-align: center;
}

.aoe-empty p {
    margin: 0.25rem 0;
}

/* Keyed on the question fields, as the Next walk is (cmd_openRequest), so the box follows every test added, removed
   or replaced by a lab's own version without code at each of those places (SD-3888) */
[data-tab-name=aoes]:has(.aoe) > .aoe-empty {
    display: none;
}

/* A test no longer offered has no questions in the catalog to show, though it may hold saved answers, so the box
   would say something false. The tab stays blank while such a test is on the form (SD-3888 D-5) */
#request:has([data-no-longer-offered]) .aoe-empty {
    display: none;
}

/* The test's name, with its answer set menu on the right (aoe_answer_set_menu.html) */
.aoe-group>.aoe-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.aoe-answer-sets {
    position: relative;
    flex-shrink: 0;
}

button.aoe-answer-sets-button {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background-color: white;
    color: #18a37f;
    border: 1px solid #18a37f;
    text-transform: none;
    letter-spacing: normal;
    padding: .375rem .875rem;
}

button.aoe-answer-sets-button:hover {
    background-color: #f0faf7;
}

.aoe-answer-sets-button svg {
    width: 1rem;
    height: 1rem;
}

/* Looks like the other dropdown menus (users_list.html): plain rows, grey on hover */
.aoe-answer-sets-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: .25rem;
    min-width: 240px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

.aoe-answer-sets-menu hr {
    width: auto;
    margin: .25rem 0;
}

.aoe-answer-set-row {
    display: flex;
    align-items: center;
}

.aoe-answer-sets-menu button {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    background-color: transparent;
    color: inherit;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
    white-space: nowrap;
    border-radius: 0;
}

.aoe-answer-sets-menu button:hover,
.aoe-answer-sets-menu button:focus-visible {
    background-color: #f0f0f0;
    box-shadow: none;
}

.aoe-answer-sets-menu button.aoe-answer-set-pick {
    flex: 1;
    width: auto;
}

.aoe-answer-set-reach {
    margin-left: .5rem;
    font-size: .875rem;
    color: #6b7280;
}

.aoe-answer-sets-menu button.aoe-answer-set-default {
    display: flex;
    width: auto;
    padding: .5rem .75rem;
    color: #9ca3af;
}

.aoe-answer-sets-menu button.aoe-answer-set-default[aria-pressed=true] {
    color: #b45309;
}

.aoe-answer-set-default svg {
    width: 14px;
    height: 14px;
}

.aoe-answer-set-default-mark svg {
    width: 14px;
    height: 14px;
    color: #b45309;
    vertical-align: -2px;
}

/* Your Account (profile.html): sections, each setting a row with its hint on the left and its action on the right */
.profile-section {
    margin-top: 1.5rem;
}

.profile-section h2 {
    margin: 0 0 .25rem 0;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

.profile-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid #d0d5d7;
}

.profile-setting-title {
    font-weight: 600;
}

.profile-setting-hint {
    color: #6b7280;
    font-size: .875rem;
}

.profile-section > .profile-setting-hint {
    margin-bottom: .5rem;
}

.profile-setting button {
    flex-shrink: 0;
}

.profile-status-on {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    flex-shrink: 0;
    padding: .25rem .75rem;
    border-radius: 9999px;
    background-color: #f0faf7;
    border: 1px solid #18a37f;
    color: #18a37f;
    font-weight: 600;
}

.profile-status-on svg {
    width: 1rem;
    height: 1rem;
}

.multiselect {
	border-radius: .375rem;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-left: 0; margin-right: 0; margin-top: .25rem;
	font-size: 1rem;
	line-height: 1.5rem;
	border: 1px solid #d1d5db;
	padding: .5rem .75rem;
	background-color: #f2f6fb;
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.multiselect-dropdown:focus {
    outline: none;
}

.multiselect-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    user-select: none;
}

.multiselect-item::before {
    content: '\2610';
}

.multiselect-item[data-selected="1"]::before {
    content: '\2611';
}

/* Legal documents acceptance. The dialog's backdrop is opaque and above the page, the sidebar and
   the top bar, so nothing of the application shows behind it. Documents open above it. */
#dialogs > #accept_documents_wrap {
	background-color: #d9e0ea;
	z-index: 900;
}

#accept_documents_wrap .bumper,
#dialogs > .legal-document-viewer .bumper {
	left: 0 !important;
}

#dialogs > .legal-document-viewer {
	z-index: 950;
}

.accept-documents {
	width: 46rem;
	max-width: 94vw;
}

.accept-intro {
	color: #44546A;
	margin-top: 0;
}

.accept-identity {
	background: #F2F6FA;
	border: 1px solid #CFDBE8;
	border-radius: 6px;
	padding: 0.75rem 0.9rem;
	font-size: 0.8rem;
}

.accept-section {
	margin-top: 1.25rem;
}

.accept-section h2 {
	font-size: 1rem;
	margin: 0 0 0.5rem;
}

.accept-note {
	font-size: 0.85rem;
	color: #44546A;
	margin: 0 0 0.5rem;
}

.accept-document-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.accept-document-link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid #CFDBE8;
	border-radius: 6px;
	color: #1F3864;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
}

.accept-document-link:hover {
	background: #F2F6FA;
}

.accept-document-version {
	font-weight: normal;
	color: #6b7280;
	font-size: 0.75rem;
}

/* A legal document in its pop-up: the HTML text scrolls inside the frame, the actions stay in view. */
.legal-document-dialog {
	width: 52rem;
	max-width: 94vw;
}

.legal-document-meta {
	color: #6b7280;
	font-size: 0.85rem;
	text-align: center;
	margin: -0.5rem 0 0;
}

.legal-document-frame {
	display: block;
	width: 100%;
	height: 65vh;
	border: 1px solid #CFDBE8;
	border-radius: 6px;
	background: #ffffff;
}

.legal-document-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
}

.legal-document-download {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border: 1px solid #CFDBE8;
	border-radius: 6px;
	color: #1F3864;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
}

.legal-document-download:hover {
	background: #F2F6FA;
}

.accept-signature {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.accept-signature > div {
	flex: 1;
}

.accept-assent {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	padding: 0.85rem;
	border: 1px solid #D6DAE3;
	border-radius: 7px;
	background: #FCFDFF;
	cursor: pointer;
	font-weight: normal;
	font-size: 0.85rem;
	line-height: 1.45;
}

.accept-assent + .accept-assent {
	margin-top: 0.6rem;
}

.accept-role-label {
	display: block;
	font-weight: 600;
	font-size: 0.75rem;
	color: #4b5563;
	margin-bottom: 0.2rem;
}

.accept-assent input[type=checkbox] {
	flex: none;
	margin-top: 0.1rem;
}

.accept-attest {
	display: block;
	font-size: 0.7rem;
	line-height: 1.5;
	color: #333B4A;
	margin-top: 0.5rem;
}

.accept-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
}

/* Qualify: order review summary */
.qualify-summary h2 {
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
}

.qualify-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.5rem 1rem;
}

.qualify-summary-grid label {
	display: block;
	font-size: 0.85rem;
	color: #666;
}

.qualify-summary-specimen {
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.5rem;
}

.qualify-summary-tests {
	width: 100%;
	margin-top: 0.5rem;
	border-collapse: collapse;
}

.qualify-summary-tests th,
.qualify-summary-tests td {
	text-align: left;
	padding: 0.25rem 0.5rem 0.25rem 0;
	border-top: 1px solid #eee;
}

/* Qualify: notice shown on the shipping view right after qualifying */
.qualified-notice {
	display: flex;
	align-items: center;
	gap: 0.667rem;
	margin-top: 0.75rem;
	padding: 0.5rem 0.75rem;
	background-color: #e8f5f2;
	border: 1px solid #158d79;
	border-radius: 0.5rem;
	color: #0f6556;
}

.qualified-notice > svg {
	height: 1.5rem;
	flex-shrink: 0;
}

.qualified-notice > div:not(.qualified-notice-close) {
	flex-grow: 1;
}

.qualified-notice-close {
	cursor: pointer;
	flex-shrink: 0;
}

.qualified-notice-close svg {
	height: 1.25rem;
	pointer-events: none;
}

/* Patients page (patients_page.html, SD-47): a row per patient that unfolds to its tests (patient_tests.html), with
   "Patient details" opening patient.html */
.patient-search {
	max-width: 30rem;
	margin: 1rem auto;
}

/* "Order another test" at the right end of the row */
.patient-row-actions {
	text-align: right;
}

/* The flip-down of a patient's row (patient_tests.html): the patient's tests, right under the row */
.patient-tests-row > td {
	background: #f9fafb;
	padding: 0.5rem 0.75rem 0.75rem 1.5rem;
}

.patient-tests {
	width: 100%;
	font-size: 0.9rem;
}

.patient-tests-actions {
	margin-top: 0.5rem;
}

/* The patient's name unfolds and folds the row (the whole row does on a click); it looks like the rest of the row */
.patient-row-name {
	color: inherit;
	text-decoration: none;
}

.patient-row-name:hover,
.patient-row-name:focus-visible {
	text-decoration: underline;
}

/* A patient (patient.html): its requests, and for an organization admin the parts that manage the patient */
.patient-view table {
	width: 100%;
}

.patient-view th,
.patient-view td {
	padding-right: 1rem;
	vertical-align: top;
}

.patient-view th:last-child,
.patient-view td:last-child {
	padding-right: 0;
}

/* The tables of the Patients page and of the patient's dialog scroll sideways inside their box in a narrow window,
   instead of widening the page or the dialog and pushing "Order another test" off screen */
#patients_content,
.patient-view-table,
.patient-candidates {
	overflow-x: auto;
}

/* The patient's card on top of the dialog: identity and billing, the clinical values, the action */
.patient-card {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	gap: 1rem 2.5rem;
	align-items: start;
	padding: 1rem 1.25rem;
	margin: 0.5rem 0 0.25rem 0;
	background: #f7f8fc;
	border-radius: 0.5rem;
}

.patient-card-facts {
	display: grid;
	grid-template-columns: max-content minmax(10rem, max-content);
	gap: 0.35rem 1rem;
	margin: 0;
}

.patient-card-facts dt {
	color: #606060;
}

.patient-card-facts dd {
	margin: 0;
}

/* A narrow window (after the rules above, which it overrides): the parts of the patient's card one under another */
@media (max-width: 760px) {
	.patient-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.patient-card-facts {
		grid-template-columns: max-content minmax(0, 1fr);
	}
}

.patient-card-earlier {
	display: block;
	font-size: 85%;
	color: #606060;
}

.patient-view-note {
	margin: 0.25rem 0 0.5rem 0;
	font-size: 85%;
	color: #606060;
}

/* An admin's column: Separate, then the icons */
.patient-view-admin {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.75rem;
}

/* Archive, Unarchive and Delete on a request of the patient's dialog: round icon buttons, as on the request lists */
.patient-view-icons {
	display: flex;
	gap: 0.25rem;
	margin-left: auto;
}

.patient-view-icon {
	padding: 0.125rem;
	letter-spacing: normal;
	text-transform: none;
}

.patient-view-icon:hover {
	box-shadow: none;
}

.patient-view-archived {
	color: #6b7280;
}

/* The visible label of the "Same patient as" search, so it stays readable when the field is filled */
.patient-search-label {
	display: block;
	font-size: 85%;
	color: #606060;
}

.patient-search-label input {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	font-size: 1rem;
}

.patient-view-heading {
	margin-top: 1.5rem;
}
