/* ********************************************************************************************************************* */
/*	(C) Pan Aero LLC																									 */
/*	Help panel - "?" icon of the header and the side panel it opens														 */
/*	V1.0 - 2026-09-25																									 */
/* ********************************************************************************************************************* */

/* header icon - sits between the user menu and the notifications bell */
.mainHdrHelp{
	float: right;
	height: 100%;
	padding: 0 6px 0 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	outline: none;
}
.mainHdrHelp svg{
	width: 25px;
	height: 25px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.92;
	transition: opacity 0.15s, transform 0.15s;
}
.mainHdrHelp:hover svg,
.mainHdrHelp:focus-visible svg,
.mainHdrHelp[aria-expanded="true"] svg{
	opacity: 1;
	transform: scale(1.08);
}
.mainHdrHelp:focus-visible svg{
	outline: 2px solid rgba(255,255,255,0.7);
	outline-offset: 3px;
	border-radius: 50%;
}


/* panel */
#omsHelpPanel{
	--hp-text:		#1f2328;
	--hp-muted:		#646b73;
	--hp-line:		#e2e5e9;
	--hp-soft:		#f4f6f8;
	--hp-hover:		#eef2f6;
	--hp-link:		#1a62b3;
	--hp-mark:		#fff1a8;
	--hp-note:		#f3f6fa;
	--hp-note-line:	#9fb4cc;

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 420px;
	max-width: 100vw;
	z-index: 1000;							/* above the page and above the jQuery UI dialogs (100) */
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--hp-text);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	box-shadow: -8px 0 28px rgba(0,0,0,0.22);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform 0.22s ease, visibility 0s linear 0.22s;
	text-align: left;
}
#omsHelpPanel.omsHelpOpen{
	transform: translateX(0);
	visibility: visible;
	transition: transform 0.22s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce){
	#omsHelpPanel, #omsHelpPanel.omsHelpOpen{ transition: none; }
}
#omsHelpPanel *,
#omsHelpPanel *::before,
#omsHelpPanel *::after{
	box-sizing: border-box;
}
#omsHelpPanel button{
	font-family: inherit;
}
#omsHelpPanel svg{
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.omsHelpHidden{
	display: none !important;
}

/* title bar - same colours as the header of the page */
.omsHelpHead{
	flex: 0 0 auto;
	height: 60px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px 0 14px;
	background: linear-gradient(180deg, rgba(52,58,64,1) 0%, rgba(89,95,96,1) 100%);
	color: #fff;
}
.omsHelpTitle{
	flex: 1 1 auto;
	font-size: 17px;
	font-weight: bold;
	letter-spacing: 0.2px;
}
.omsHelpBack,
.omsHelpClose{
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 34px;
	padding: 0 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.omsHelpBack svg,
.omsHelpClose svg{
	width: 20px;
	height: 20px;
}
.omsHelpBack:hover,
.omsHelpClose:hover,
.omsHelpBack:focus-visible,
.omsHelpClose:focus-visible{
	background: rgba(255,255,255,0.14);
	outline: none;
}

/* search field */
.omsHelpSearch{
	flex: 0 0 auto;
	position: relative;
	padding: 12px 14px;
	border-bottom: 1px solid var(--hp-line);
	background: var(--hp-soft);
}
.omsHelpSearchIcon{
	position: absolute;
	left: 25px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: var(--hp-muted);
	pointer-events: none;
}
#omsHelpPanel .omsHelpInput{
	width: 100%;
	height: 38px;
	padding: 0 36px 0 36px;
	border: 1px solid #c9ced4;
	border-radius: 8px;
	background: #fff;
	color: var(--hp-text);
	font-family: inherit;
	font-size: 14px;
	outline: none;
	box-shadow: none;
}
#omsHelpPanel .omsHelpInput:focus{
	border-color: var(--hp-link);
	box-shadow: 0 0 0 3px rgba(26,98,179,0.15);
}
#omsHelpPanel .omsHelpInput::placeholder{
	color: #8b9299;
}
.omsHelpClear{
	position: absolute;
	right: 20px;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	padding: 3px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hp-muted);
	cursor: pointer;
}
.omsHelpClear svg{
	width: 20px;
	height: 20px;
}
.omsHelpClear:hover{
	background: var(--hp-hover);
	color: var(--hp-text);
}
.omsHelpInput:placeholder-shown ~ .omsHelpClear{
	display: none;
}

/* content */
.omsHelpBody{
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 6px 14px 20px;
	outline: none;
	overscroll-behavior: none;
}
.omsHelpHeading{
	margin: 16px 0 6px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--hp-muted);
}
.omsHelpList{
	list-style: none;
	margin: 0;
	padding: 0;
}
.omsHelpList > li{
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--hp-line);
}
.omsHelpList > li:last-child{
	border-bottom: 0;
}
#omsHelpPanel a.omsHelpItem{
	display: block;
	position: relative;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 6px;
	color: var(--hp-text);
	text-decoration: none;
	outline: none;
}
#omsHelpPanel a.omsHelpItem:hover,
#omsHelpPanel a.omsHelpItem:focus-visible{
	background: var(--hp-hover);
}
#omsHelpPanel a.omsHelpItem:focus-visible{
	box-shadow: inset 0 0 0 2px rgba(26,98,179,0.35);
}
.omsHelpItemTitle{
	display: block;
	font-size: 14px;
	font-weight: bold;
	color: var(--hp-link);
}
.omsHelpItemPath{
	display: block;
	margin-top: 1px;
	font-size: 11.5px;
	color: var(--hp-muted);
}
.omsHelpItemText{
	display: block;
	margin-top: 3px;
	color: #3b4148;
}
.omsHelpItemText mark{
	padding: 0 1px;
	border-radius: 2px;
	background: var(--hp-mark);
	color: inherit;
}
.omsHelpTopics .omsHelpItem{
	padding-right: 44px;
}
.omsHelpTopics .omsHelpItemTitle{
	color: var(--hp-text);
	font-weight: normal;
}
.omsHelpCount{
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	min-width: 24px;
	padding: 0 7px;
	border-radius: 10px;
	background: var(--hp-soft);
	color: var(--hp-muted);
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

.omsHelpMsg{
	margin: 14px 0 6px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--hp-soft);
	color: #3b4148;
}
.omsHelpMsgError{
	background: #fdf0ef;
	color: #8a2a22;
}

.omsHelpLoading{
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 36px 0;
}
.omsHelpLoading span{
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #aab1b8;
	animation: omsHelpDot 1s infinite ease-in-out;
}
.omsHelpLoading span:nth-child(2){ animation-delay: 0.15s; }
.omsHelpLoading span:nth-child(3){ animation-delay: 0.3s; }
@keyframes omsHelpDot{
	0%, 80%, 100%	{ opacity: 0.3; transform: scale(0.8); }
	40%				{ opacity: 1;   transform: scale(1); }
}

/* article */
.omsHelpArticle{
	padding-top: 10px;
	font-size: 13.5px;
	line-height: 1.55;
}
.omsHelpArticleSection{
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--hp-muted);
}
.omsHelpArticle h1{
	margin: 2px 0 10px;
	font-size: 20px;
	line-height: 1.25;
	color: var(--hp-text);
}
.omsHelpArticle h2{
	margin: 20px 0 6px;
	padding-top: 2px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--hp-text);
	scroll-margin-top: 8px;
}
.omsHelpArticle h3,
.omsHelpArticle h4{
	margin: 14px 0 4px;
	font-size: 13.5px;
	color: var(--hp-text);
}
.omsHelpArticle h2.omsHelpTarget{
	animation: omsHelpFlash 1.6s ease-out;
	border-radius: 4px;
}
@keyframes omsHelpFlash{
	0%		{ background: var(--hp-mark); box-shadow: 0 0 0 4px var(--hp-mark); }
	100%	{ background: transparent;    box-shadow: 0 0 0 4px transparent; }
}
.omsHelpArticle p{
	margin: 0 0 9px;
}
.omsHelpArticle ul,
.omsHelpArticle ol{
	margin: 0 0 10px;
	padding-left: 22px;
}
.omsHelpArticle li{
	margin: 0 0 4px;
}
.omsHelpArticle li > ul,
.omsHelpArticle li > ol{
	margin: 4px 0 0;
}
.omsHelpArticle strong{
	font-weight: bold;
	color: #111;
}
.omsHelpArticle code{
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--hp-soft);
	border: 1px solid var(--hp-line);
	font-family: Menlo, Consolas, monospace;
	font-size: 12px;
}
#omsHelpPanel .omsHelpArticle a{
	color: var(--hp-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.omsHelpNote{
	margin: 10px 0 12px;
	padding: 9px 12px;
	border-left: 3px solid var(--hp-note-line);
	border-radius: 0 6px 6px 0;
	background: var(--hp-note);
}
.omsHelpNote p:last-child{
	margin-bottom: 0;
}
.omsHelpTable{
	width: 100%;
	margin: 6px 0 12px;
	border-collapse: collapse;
	font-size: 12.5px;
}
.omsHelpTable th,
.omsHelpTable td{
	padding: 6px 8px;
	border: 1px solid var(--hp-line);
	vertical-align: top;
	text-align: left;
}
.omsHelpTable th{
	background: var(--hp-soft);
	font-weight: bold;
}

/* did this help? */
.omsHelpFeedback{
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 4px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--hp-soft);
	color: #3b4148;
}
.omsHelpFeedback > span{
	flex: 1 1 auto;
}
#omsHelpPanel .omsHelpVote{
	min-width: 56px;
	height: 30px;
	padding: 0 12px;
	border: 1px solid #c9ced4;
	border-radius: 6px;
	background: #fff;
	color: var(--hp-text);
	font-size: 13px;
	cursor: pointer;
}
#omsHelpPanel .omsHelpVote:hover,
#omsHelpPanel .omsHelpVote:focus-visible{
	border-color: var(--hp-link);
	color: var(--hp-link);
	outline: none;
}

/* footer */
.omsHelpFoot{
	flex: 0 0 auto;
	padding: 10px 14px;
	border-top: 1px solid var(--hp-line);
	background: var(--hp-soft);
	color: var(--hp-muted);
	font-size: 12px;
}
#omsHelpPanel .omsHelpFoot a{
	color: var(--hp-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media print{
	#omsHelpPanel{ display: none !important; }
}
