/* ---------------------------------------------------------------------------
Override menu position to handle page scrolling 
--------------------------------------------------------------------------- */

.FXBPopupMenuContainer {
	position: fixed;
}

/* ---------------------------------------------------------------------------
Override standard widget styling
--------------------------------------------------------------------------- */

BODY {
	overflow: visible;
}

BODY.Widget {
	background: white;	
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    color: inherit;
}

H1 {
	color: #070056;
	font-size: 32px;
	font-weight: bold;
}

H2 {
	font-size: 30px;
}

H4 {
	color: #104FF7;
	font-size: 24px;
	margin: 10px 0 10px 0;
}

/* ---------------------------------------------------------------------------
Full-screen handling 
--------------------------------------------------------------------------- */

BODY.FullScreen #FigaroWidgetOuter {	
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 500;
	overflow: hidden;
}

BODY.FullScreen {
	overflow-y: hidden;
}


/* ---------------------------------------------------------------------------
Loading icon 
--------------------------------------------------------------------------- */

#InlineLoader {
	display: block;
	position: absolute;
	z-index: 20000;
	width: 100px;
	height: 100px;
	top: calc(50% - 50px);
	left: calc(50% - 50px);
}



/* ---------------------------------------------------------------------------
Body container 
--------------------------------------------------------------------------- */

#BodyContainer {
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	position: relative; /* Required for dialogs on iOS */
	z-index: 100;
}


/* ---------------------------------------------------------------------------
Page header block 
--------------------------------------------------------------------------- */

.HeaderBlock {
    background: url(/images/banner_grad2.jpg?1);
    color: white;
	width: 100%;
	height: 50px;
	flex-grow: 0;
	flex-shrink: 0;
}


.ResponsiveMenu {
	display: none;
}

.WidgetBackground {
	background: white;
}

#WidgetPreHeader P {
	font-size: 16px;
}

#WidgetPreHeader LI {
	font-size: 16px;
	line-height: 150%;
}

/* ---------------------------------------------------------------------------
Description styles 
--------------------------------------------------------------------------- */

.WidgetHeaderDescription {
	padding: 20px 0 10px 0;
	z-index: 1;
}

.WidgetFooterDescription {
	padding: 20px 0 10px 0;
}



/* ---------------------------------------------------------------------------
Container base definition, and overrides for specific widgets 
--------------------------------------------------------------------------- */

#FigaroWidgetOuter {

	width: 100%;
	padding: 20px 0 20px 0;
	overflow: hidden;

	min-height: 300px;
	
	display: flex;
	flex-direction: column;
	-webkit-overflow-scrolling: touch;
}

.FigaroWidgetContainer {
	width: 100%;
	
	margin: 0 auto;
	overflow: hidden;
}

.FigaroPreSEO {
	margin-top: 10px;
}

/* ---------------------------------------------------------------------------
Widget footer 
--------------------------------------------------------------------------- */

.WidgetFooterSection {
	padding: 20px 0 20px 0;
}

.WidgetFooterSection:nth-child(1) {
	margin-top: 40px;
}

.WidgetFooterDescription .WidgetFooterSection:nth-child(odd) {
	background: #f3f5fb;
}

.WidgetFooterSection H2 {
	margin: 0px 0 20px 0;
}

.WidgetFooterSection P, LI {
	line-height: 1.5;
}

/* ---------------------------------------------------------------------------
More-tools tile 
--------------------------------------------------------------------------- */

.WidgetMoreToolsTileContainer {
	display: grid;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	grid-template-columns: calc(33.33% - 13.33px) calc(33.33% - 13.33px) calc(33.33% - 13.33px);
}

@media screen and (max-width: 1000px) {
	.WidgetMoreToolsTileContainer {
		grid-template-columns: calc(50% - 10px) calc(50% - 10px);
	}
}

@media screen and (max-width: 650px) {
	.WidgetMoreToolsTileContainer {
		grid-template-columns: 100%;
	}
}

.WidgetMoreToolsTile {
	border-radius: 15px;
	box-shadow: 0px 0px 10px #00000029;
	padding: 15px;
	cursor: pointer;
}

.WidgetMoreToolsTile .TileTitle {
	font-weight: bold;
	color: #070056;
	font-size: 16px;
}

.WidgetMoreToolsTile .TileBody {
	margin: 10px 0 2px 0;
	line-height: 150%;
	min-height: 65px;
	font-size: 16px;
}

.WidgetMoreToolsTile .TileArrow {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	padding: 0 20px 0 20px;
	font-family: FA6;
	text-align: right;
	color: #FFD400;
	border: 0;
	text-decoration: none;
	font-size: 32px;
}

/* ---------------------------------------------------------------------------
YouTube videos 
--------------------------------------------------------------------------- */

.WidgetYouTubeVideo {
	display: block;
	width: 560px;
	height: 315px;
	margin: 20px 0 20px 0;
}

@media screen and (max-width: 600px) {
	.WidgetYouTubeVideo {
		display: block;
		max-width: 100%;
		width: 350px;
		height: 196px;
		margin: 20px 0 20px 0;
	}
	
}


/* ---------------------------------------------------------------------------
Allow widgets to go full screen 
--------------------------------------------------------------------------- */

.WidgetFullScreen #FigaroWidget {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 100%;
	margin: 0;
	height: 100%;
	z-index: 1000;
}

.WidgetFullScreen .WidgetFooterDescription, .WidgetFullScreen .HeaderBlock, .WidgetFullScreen .TabBarContainer, .WidgetFullScreen .TowerAdvertBlock, .WidgetFullScreen .LeftAdvertBlock {
	display: none;
}

/* ---------------------------------------------------------------------------
Override toolbar in all widgets 
--------------------------------------------------------------------------- */

BODY.Widget #Toolbar {
	height: auto;
	background: white;
}


/* ---------------------------------------------------------------------------
Turn off link button 
--------------------------------------------------------------------------- */
.LinkButton {
	display: none;
}
	
/* ---------------------------------------------------------------------------
Overrides: chart-tabs
--------------------------------------------------------------------------- */

BODY.Figaro-chart-tabs #FigaroWidgetOuter {
}

BODY.Figaro-chart-tabs #FigaroWidgetOuter .FigaroWidgetContainer {
	background: #f3f5fb;
	min-height: 300px;
	height: calc(100vh - 250px);
}

BODY.WidgetFullScreen.Figaro-chart-tabs #FigaroWidgetOuter .FigaroWidgetContainer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
}

BODY.WidgetFullScreen.Figaro-chart-tabs #PageBanner {
	display: none;
}

BODY.WidgetFullScreen.Figaro-chart-tabs #PageBody {
	height: 100%;
}


BODY.Figaro-chart-tabs .FXBChartTabs-ToolbarArea {
	border-top: solid 1px #7385AA;	
}

BODY.Figaro-chart-tabs .FXBChartTabs-TabActive {
    background: #7385AA;
    color: white;
}



/* ---------------------------------------------------------------------------
Overrides: technical analysis
--------------------------------------------------------------------------- */

BODY.Figaro-technicals #HeaderAndWidget {
	display: block;
	height: auto;
}

BODY.Figaro-technicals #Toolbar  {
	display: none;
}

BODY.Figaro-technicals #TAContainer {
	padding: 0;
	height: auto;
}

BODY.Figaro-technicals .CanvasLabel {
	padding-top: 10px;
}


/* ---------------------------------------------------------------------------
Overrides: market-overview
--------------------------------------------------------------------------- */

BODY.Figaro-market-overview #HeaderAndWidget {
	display: block;
	height: auto;
}

.Figaro-market-overview .ToolbarButton {
	background: transparent;
	border-right: 0;
}

.Figaro-market-overview #txtInstrument {
	display: block;
	margin: 0 auto;
	font-size: 32px;
	border: 0;
	user-select: none;
}

/* ---------------------------------------------------------------------------
Overrides: session-map
--------------------------------------------------------------------------- */

BODY.Figaro-session-map #HeaderAndWidget {
	height: auto;
}

BODY.Figaro-session-map #FigaroWidgetOuter {
	max-height: 500px;
}

BODY.Figaro-session-map .FigaroWidgetContainer {
	border: solid 1px #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
}

BODY.Figaro-session-map #TimeContainer {
	overflow: hidden;
}

BODY.Figaro-session-map #NewsBarOuter {
	xxxxbackground: #7979a9;
}

BODY.Figaro-session-map #time-label {
	background: #7979a9;
	color: white;
}

/* ---------------------------------------------------------------------------
Overrides: currency-strength
--------------------------------------------------------------------------- */

BODY.Figaro-currency-strength .HeadlineBlockContainer {
    width: 65px;
    margin: 0 10px 0 10px;
    display: inline-block;
}

/* ---------------------------------------------------------------------------
Overrides: currency-heatmap
--------------------------------------------------------------------------- */

BODY.Figaro-currency-heatmap #FigaroWidgetOuter {
	height: 500px;
}
BODY.Figaro-currency-heatmap #FigaroWidgetOuter .FigaroWidgetContainer {
	height: 500px;
}

/* ---------------------------------------------------------------------------
Overrides: market-ranges
--------------------------------------------------------------------------- */

BODY.Figaro-market-ranges #FigaroWidgetOuter {
	height: 500px;
}

BODY.Figaro-market-ranges #FigaroWidgetOuter .FigaroWidgetContainer {
	height: 500px;
}

BODY.Figaro-market-ranges #FigaroWidgetOuter .FigaroWidgetContainer #DialogTitle {
	display: none !important;
}

BODY.Figaro-market-ranges #FigaroWidgetOuter .FigaroWidgetContainer #ViewIcon {
	font-size: 32px;
}


/* ---------------------------------------------------------------------------
Overrides: sentiment
--------------------------------------------------------------------------- */

BODY.Figaro-sentiment #HeaderAndWidget {
	display: block;
	height: auto;
}


/* ---------------------------------------------------------------------------
Overrides: future-events-scanner
--------------------------------------------------------------------------- */

BODY.Figaro-future-events-scanner #HeaderAndWidget {
	display: block;
	height: auto;
}

BODY.Figaro-future-events-scanner #HeaderAndWidget .ToolbarTitle {
	font-size: 18px;
}

BODY.Widget_future-events-scanner #EventsContainer #ListTitle {
	color: #104FF7;
	font-size: 24px;
	margin: 20px 0 20px 0;
}

/* ---------------------------------------------------------------------------
Overrides: mini-charts
--------------------------------------------------------------------------- */

BODY.Figaro-mini-charts .MiniChartOuter {
	margin: 10px 10px 10px 0;
	width: calc(33% - 20px);
}

@media screen and (max-width: 750px) {
	BODY.Figaro-mini-charts .MiniChartOuter {
		width: calc(50% - 20px);
	}
}

@media screen and (max-width: 400px) {
	BODY.Figaro-mini-charts .MiniChartOuter {
		width: calc(100% - 20px);
	}
}

/* ---------------------------------------------------------------------------
Overrides: indicator-scanner
--------------------------------------------------------------------------- */


/* ---------------------------------------------------------------------------
Overrides: calculators
--------------------------------------------------------------------------- */


BODY.CalculatorWidget .DialogTitle.DialogTitleMini {
	font-size: 30px;
	line-height: 30px;
}

BODY.Widget .Calculator {
	height: auto;
}

BODY.CalculatorWidget .DialogTitle {
	display: none !important;
}

BODY.CalculatorWidget #FigaroWidgetOuter {
	margin-top: 20px;
	padding: 0 0 0 0;
	box-shadow: 0px 0px 10px #00000029;
}

.Calculator .calculator-result, .Calculator .results {
	margin-top: 10px;
	border: solid 1px #f0f0f0;
}

/* ---------------------------------------------------------------------------
Overrides: pan
--------------------------------------------------------------------------- */

BODY.Widget_pan #FigaroWidgetOuter .DayHeader {
	background: transparent;
	text-align: left;
	color: #104FF7;
	font-size: 24px;
	margin: 10px 0 10px 0;
}


BODY.Widget_pan #NewsItems > DIV {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}

BODY.Widget_pan #NewsItems > DIV.DayHeader {
	display: block;
}

BODY.Widget_pan .NewsItem:nth-child(2n) {
    background: #f2f2f2;
}

BODY.Widget_pan .NewsItem {
	background: #f2f2f2;
	border-radius: 15px;
	padding: 15px;
}

@media screen and (max-width: 850px) {
	BODY.Widget_pan #NewsItems > DIV {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 550px) {
	BODY.Widget_pan #NewsItems > DIV {
		grid-template-columns: 100%;
	}
}

BODY.Widget_pan #Disclaimer {
	border-top: 0;
	margin-top: 20px;
}

/* ---------------------------------------------------------------------------
Overrides: tick chart 
--------------------------------------------------------------------------- */

BODY.Figaro-tick-chart #FigaroWidgetOuter .FigaroWidgetContainer {
	height: calc(100vh - 180px);
}

/* ---------------------------------------------------------------------------
Overrides: correlation matrix
--------------------------------------------------------------------------- */

BODY.Figaro-correlation-matrix #HeaderAndWidget {
	display: block;
	height: auto;
}


/* ---------------------------------------------------------------------------
Overrides: fm-accounts
--------------------------------------------------------------------------- */

BODY.Figaro-fm-accounts #FigaroWidget {
	width: 100%;
}

BODY.Figaro-fm-accounts #FigaroWidgetOuter {
	min-height: 0;
	padding: 0 0 0 0;
}

BODY.Figaro-fm-accounts #AccountListHeader, BODY.Figaro-fm-accounts #NewAccountSection {
	display: none;
}

BODY.Figaro-fm-accounts .AccountListItemIndent {
	box-sizing: border-box;
	margin-top: 5px;
	margin-bottom: 15px;
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 0 10px #00000029;
}

BODY.Figaro-fm-accounts #AccountListHeader, BODY.Figaro-fm-accounts #VerificationMessage, BODY.Figaro-fm-accounts #NewAccountSection {
	margin: 0 0 20px 0;
}

BODY.Figaro-fm-accounts .AccountLink {
	padding: 10px 15px;
	border-radius: 4px;
}

BODY.Figaro-fm-accounts H2 {
	font-size: 24px;
	font-weight: bold;
}

#FMAccountCreationContainer {
	grid-template-columns: calc(50% - 10px) calc(50% - 10px);
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	display: grid;
}

@media screen and (max-width: 700px) {
	#FMAccountCreationContainer {
		grid-template-columns: 100%;
	}
}

.FMAccountCreationTile {
	border-radius: 15px;
	background: white;
	box-shadow: 0 0 10px #00000029;
	padding: 15px;
}

.FMAccountCreationTile P:last-of-type {margin-bottom: 0;}

.FMAccountCreationTileIcon {
	font-size: 36px;
	color: #FFD400;
}

.FMAccountCreationTileHeader {
	display: flex;
	flex-direction: row;
	align-items: center;
	cursor: pointer;
}

.FMAccountCreationTileHeader H3 {
	flex-grow: 1;
	flex-shrink: 1;
	font-size: 32px;
	margin: 0 0 0 0;
	font-weight: bold;
	padding: 0 10px 0 10px;
}

BODY.Figaro-fm-accounts .AccountListItem:nth-child(odd) {
    background: transparent;
}


/* ---------------------------------------------------------------------------
Overrides: account-history
--------------------------------------------------------------------------- */

BODY.Figaro-account-history #GridContainer {
	height: calc(100vh - 250px);
	position: relative;
}
