﻿

.helpMenu
{
    position:fixed !important;
    top: 22%;
    right:0;
}

.chatMenu
{
    position: fixed !important;
    top: calc(22% - 26px) !important;
    right: 0 !important;
    z-index: 9000 !important;
}

.chatMenu fieldset {
    white-space: normal !important;
    height: 550px !important;
    /* Don't overflow into the footer bar -- leave breathing room. */
    max-height: calc(100vh - 25% - 70px) !important;
    width: 960px !important;
    padding: 20px !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* The custom chat_icon.png ships pre-styled (blue speech bubble in a
   rounded outlined frame), so no recolor/outline filter is needed here.
   Telerik renders it at 26x26 directly per the RadMenuItem Width/Height. */

/* Keep the icon column rendered above any open slide-out popup so the icons
   for the OTHER slide-outs remain visible and clickable underneath. The
   close-siblings JS handler ensures clicking an icon closes whatever's open. */
.helpMenu > ul.rmRootGroup,
.chatMenu > ul.rmRootGroup,
.chatMenuPopup > ul.rmRootGroup,
.popupHelpMenu > ul.rmRootGroup {
    position: relative !important;
    z-index: 10000 !important;
}

/* Popup-master variant: the popup is shorter than a full page, so the chat */
/* icon goes to the top-right corner above the popup Help icon (at top:4%). */
.chatMenuPopup
{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 9000 !important;
}

.chatMenuPopup fieldset {
    white-space: normal !important;
    height: 500px !important;
    max-height: calc(100vh - 60px) !important;
    /* Match the main page chat width (960px) but cap to the popup window's
       viewport so RadWindow popups smaller than 1024px don't centre it. */
    width: min(960px, calc(100vw - 30px)) !important;
    padding: 20px !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Tab labels keep their skin's colours: inheriting turns a selected Metro tab
   inside a form white on white. */
.formContainer a:not(.rtsLink)
{
   color:inherit !important;    
}

/*
.helpMenu .reContentCell iframe
{
    height:100% !important;
}
*/


.reTextAreaHidden {
	height: 0 !important;
}

.popupHelpMenu
{
    position:fixed !important;
    top: 4%;
    right:0;
}

	.popupHelpMenu fieldset {
		white-space: normal !important;
		height: 530px !important;
		max-height: calc(100vh - 60px) !important;
		width: min(872px, calc(100vw - 30px)) !important; /* Approach A: cap to popup window so help/edit-help never overflows a deeper, narrower level (mirrors chatMenuPopup); height already caps via max-height:calc(100vh - 60px) */
		padding: 20px !important;
		box-sizing: border-box;
		overflow-y: scroll;
	}

/*
.popupHelpMenu .reContentCell iframe
{
    height:100% !important;
}
*/


.helpMenu fieldset {
	white-space: normal !important;
	height: 550px !important;
	max-height: calc(100vh - 25% - 70px) !important;
	width: 960px !important;
	padding: 20px !important;
	box-sizing: border-box;
	overflow-y: scroll;
}

/* Side-rail icon geometry is scoped below; navigation icons retain their skin spacing. */

.nav_up{
	padding:7px;
	background-color:white;
	border:1px solid #CCC;
	position:fixed;
	background:transparent url(images/arrow_up.png) no-repeat top left;
	background-position:50% 50%;
	width:20px;
	height:20px;
	top:742px;
	right:40px;
	white-space:nowrap;
	cursor: pointer;
	-moz-border-radius: 3px 3px 3px 3px;
    -webkit-border-top-left-radius:3px;
	-webkit-border-top-right-radius:3px;
    -khtml-border-top-left-radius:3px;
	-khtml-border-top-right-radius:3px;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

.popnav_up{
	padding:7px;
	background-color:white;
	border:1px solid #CCC;
	position:fixed;
	background:transparent url(images/arrow_up.png) no-repeat top left;
	background-position:50% 50%;
	width:20px;
	height:20px;
	top:532px;
	right:55px;
	white-space:nowrap;
	cursor: pointer;
	-moz-border-radius: 3px 3px 3px 3px;
    -webkit-border-top-left-radius:3px;
	-webkit-border-top-right-radius:3px;
    -khtml-border-top-left-radius:3px;
	-khtml-border-top-right-radius:3px;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}



.collapsibleList li{ 
  list-style-image:url('images/button.png');
  cursor:auto;
}

li.collapsibleListOpen{
  list-style-image:url('images/button-open.png');
  cursor:pointer;
}

li.collapsibleListClosed{
  list-style-image:url('images/button-closed.png');
  cursor:pointer;
}




/* Shared flyout palette is sampled from the active Telerik skin by common.js. */
:root {
    --lc-flyout-bg: #fff;
    --lc-flyout-fg: #333;
    --lc-flyout-border: #b5b5b5;
    --lc-flyout-hover: #eef7ff;
    --lc-flyout-selected-fg: #333;
    --lc-flyout-accent: #333;
    --lc-flyout-muted: color-mix(in srgb, var(--lc-flyout-fg) 68%, var(--lc-flyout-bg));
}
:is(.helpMenu, .popupHelpMenu, .chatMenu, .chatMenuPopup) > .rmRootGroup > .rmItem > .rmRootLink {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}
:is(.helpMenu, .popupHelpMenu, .chatMenu, .chatMenuPopup) > .rmRootGroup > .rmItem > .rmRootLink > .rmLeftImage {
    float: none !important;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}
:is(.helpMenu, .popupHelpMenu, .chatMenu, .chatMenuPopup) > .rmRootGroup > .rmItem > .rmRootLink > .rmText {
    display: none;
}
:is(.helpMenu, .popupHelpMenu, .chatMenu, .chatMenuPopup) :is(.rmContentTemplate, fieldset),
.lcNotifFlyout {
    background: var(--lc-flyout-bg) !important;
    color: var(--lc-flyout-fg) !important;
    border-color: var(--lc-flyout-border) !important;
}
:is(.helpMenu, .popupHelpMenu, .chatMenu, .chatMenuPopup) :is(h1, h2, h3, h4, label, .rfdAspLabel) {
    color: inherit !important;
}
.lcNotifFlyout :is(.lcNotifHdr, .lcNotifItem),
#lcChatPanelRoot :is(.lcDmThreadItem, .lcDmContact) {
    border-color: var(--lc-flyout-border);
}
.lcNotifFlyout .lcNotifItem { color: var(--lc-flyout-fg); }
.lcNotifFlyout :is(.lcNotifMsg, .lcNotifEmpty, .lcNotifDismiss),
#lcChatPanelRoot :is(.lcDmThreadPreview, .lcDmContactType) {
    color: var(--lc-flyout-muted);
}
.lcNotifFlyout .lcNotifMarkAll { color: var(--lc-flyout-accent); }
/* QA-196: unread is the accent dot + bold title, not the hover background. */
.lcNotifFlyout .lcNotifDot { background: var(--lc-flyout-accent); }
.lcNotifFlyout .lcNotifTime { color: var(--lc-flyout-muted); }
.lcNotifFlyout .lcNotifItem:hover,
#lcChatPanelRoot :is(.lcDmThreadItem:hover, .lcDmThreadActive, .lcDmContact:hover, .lcDmMsgMine) {
    background: var(--lc-flyout-hover);
    color: var(--lc-flyout-selected-fg);
}
#lcChatPanelRoot :is(#lcChatPreferencesPane, #lcChatConvoList, #lcChatMessages,
    #lcDmDirectoryList, #lcDmThreadList, #lcDmMessages, .lcDmMsgTheirs,
    textarea, input[type="text"]) {
    background: var(--lc-flyout-bg) !important;
    color: var(--lc-flyout-fg) !important;
    border-color: var(--lc-flyout-border) !important;
}
#lcChatPanelRoot :is(#lcChatToolbar, .lcChatTabBtn) {
    border-color: var(--lc-flyout-border) !important;
}
#lcChatPanelRoot .lcChatTabBtn {
    background: var(--lc-flyout-bg);
    color: var(--lc-flyout-muted);
}
#lcChatPanelRoot .lcChatTabBtnActive {
    background: var(--lc-flyout-hover);
    color: var(--lc-flyout-selected-fg);
    border-bottom-color: var(--lc-flyout-accent) !important;
}
#lcChatPanelRoot .lcChatIconBtn:not(.lcChatMicActive),
#lcChatPanelRoot #lcChatSend,
#lcChatPanelRoot #lcDmSendBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lc-flyout-bg) !important;
    color: var(--lc-flyout-fg) !important;
    border-color: var(--lc-flyout-border) !important;
}
#lcChatPanelRoot .lcChatIconBtn:hover {
    background: var(--lc-flyout-hover) !important;
    border-color: var(--lc-flyout-accent) !important;
}
#lcChatPanelRoot .lcChatPrefClose { color: var(--lc-flyout-fg); }
#lcChatPanelRoot #lcChatPendingAction {
    background: var(--lc-flyout-hover) !important;
    color: var(--lc-flyout-selected-fg);
    border-color: var(--lc-flyout-border) !important;
}

#lcChatPanelRoot #lcChatTtsBar {
    background: var(--lc-flyout-bg) !important;
    color: var(--lc-flyout-fg);
    border-color: var(--lc-flyout-border) !important;
}
#lcChatConvoList [data-convo-id] { border-color: var(--lc-flyout-border) !important; }
#lcChatConvoList [data-convo-id] > div { color: var(--lc-flyout-fg) !important; }
#lcChatConvoList [data-convo-id]:hover { background: var(--lc-flyout-hover); }

/* Telerik menu content inherits nowrap; notifications must wrap within the panel. */
.lcNotifFlyout {
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    overflow-x: hidden;
}
.lcNotifFlyout .lcNotifItem {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    min-width: 0;
}
