body {
	font-size: 1em;
}

#wrapper {
	position: relative;
}

.wrapper {
	width: auto;
	min-width: 0;
	padding: 0 1em;
}

#header-top {
	position: absolute;
	background: none;
	width: 100%;
}
#header-top .logo {
	float: left;
	margin: 0.6em 0 0;
	padding: 0;
	background: #FFFFFF;
	background: rgba(255, 255, 255, 0.5);
}
#header-top .language-select {
	position: absolute;
	top: 5.5rem;
	right: 0.5rem;
	margin: 9px 0;
	padding: 0.7rem;
	font-size: 0.8em;
	line-height: 1rem;
}
#header-top .language-select ul {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 1em;
}
#header-top .language-select ul li {
	float: left;
	margin: 0;
	padding: 0 0.2em;
	height: 1em;
}
#header-top .language-select ul li a {
	opacity: 0.7;
}
#header-top .language-select ul li a:hover, #header-top .language-select ul li.active a {
	opacity: 1;
}
#header-top .language-select ul li a img {
	height: 1em;
	box-shadow: 0 0 0.4em #000000;
}
#header {
	background: #FFFFFF;
}
#header .wrapper {
	height: 5.5em;
}
#header .header-pics {
	position: relative;
	left: auto;
	right: auto;
	width: auto;
	float: right;
	margin: 0 -1em;
}
#header .header-pics .header-pic {
	position: static;
	left: auto;
	top: auto;
	width: auto;
	text-align: right;
}
#header .header-pics .header-pic:before {
    width: 20%;

    background: -moz-linear-gradient(left,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
    background: -webkit-linear-gradient(left,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(left,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -ms-linear-gradient(left,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=1 );
}
#header .header-pics .header-pic:after {
	display: none;
}
#header .slogan {
	top: 0.4em;
	right: 1em;
	font-size: 0.85em;
}
#header .slogan h2 .slogan-2 {
	margin-left: 3em;
}
@media(max-width: 850px) {
	#header .slogan {
		display: none;
	}
}

#main {
	font-size: 0.8em;
}

#main .main-column {
	padding: 0 2em;
}
#main .main-column.with-left {
	margin-left: 20em;
}
#main .main-column.with-right {
	margin-right: 20em;
}
#main .left-column {
	width: 16em;
	padding: 0 2em;
	font-size: 1em;
}
#main .right-column {
	width: 16em;
	padding: 0 2em;
	font-size: 1em;
}
@media(max-width: 750px) {
    /*#main .main-column.with-left {
        margin-left: 0;
    }*/
    #main .main-column.with-right {
        margin-right: 0;
    }
    /*#main .left-column {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
    }*/
    #main .right-column {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
    }
}

#main .portal-messages {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0 2em;
	font-size: 0.9em;
}
#main .portal-messages .messages-icon {
	float: left;
	padding: 0.601em 0;
	height: 2.1em;
}
#main .portal-messages .messages-icon img {
	height: 100%;
}
#main .portal-messages .message-list {
	position: relative;
	overflow: hidden;
	height: 3.302em;
}
#main .portal-messages .message {
	position: absolute;
	top: -100%;
	left: 0;
	min-width: 100%;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	padding: 1em 0;
	height: 1.302em;
}
#main .portal-messages .message.important {
	font-weight: bold;
	color: #CC0000;
}
#main .portal-messages .message img.user-message-icon {
    float: none;
    margin: 0 10px 0 0;
}
#main .portal-messages .message:first-child {
	top: 0;
}
#main .portal-messages .message * {
	display: inline;
}
#main .portal-messages .message p.date {
	font-size: 1em;
	color: #000000;
	font-weight: bold;
}
#main .portal-messages .message p, #main .portal-messages .message h1, #main .portal-messages .message h2, #main .portal-messages .message h3, #main .portal-messages .message h4, #main .portal-messages .message h5, #main .portal-messages .message h6, #main .portal-messages .message ul, #main .portal-messages .message ol {
	margin: 0 1em;
}
#main .logged-in-user {
	float: right;
	text-align: right;
	font-size: 0.9em;
	margin: 0;
	padding: 1em;
	background: #FFFFFF;
}
@media(max-width: 750px) {
	#main .logged-in-user {
		float: none;
		padding-bottom: 0;
	}
}

.message-list .message p.date {
	font-size: 1.4em;
	font-weight: normal;
	color: #084E8A;
	margin: 1em 0;
}
.message-list .message.single-user {
	color: #084E8A;
}
.message-list .message.important {
	color: #CC0000;
    font-weight: bold;
}
.message-list .message img.user-message-icon {
    float: left;
    margin: 0 10px 5px 0;
    height: 1.2em;
}

.portal-menu ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.portal-menu ul li {
	margin: 0;
	padding: 0;
}
.portal-menu ul li a {
	display: block;
	margin: 0;
	padding: 0.5em;
	text-decoration: none;
}
.portal-menu > ul > li {
	border-bottom: 1px solid #CCCCCC;
}
.portal-menu > ul > li:last-child {
	border-bottom: 0;
}
.portal-menu ul li.active > a {
	font-weight: bold;
	color: #084E8A;
}
.portal-menu ul li.expandable > a {
	background: url(../img/portal/expand-arrow.png) 0.5em no-repeat;
	background-size: auto 42%;
	padding-left: 2em;
}
.portal-menu ul li.expandable.expanded > a {
	background: url(../img/portal/expand-arrow-expanded.png) 0.5em no-repeat;
	background-size: auto 42%;
}
.portal-menu ul li a:hover {
	background-color: #EEEEEE !important;
}
.portal-menu ul li ul {
	margin: 0;
	padding-left: 2em;
	overflow: hidden;
}

.box h3 {
	background: #084E8A;
	color: #FFFFFF;
	margin: -1px -1rem;
	padding: 0.5em 1rem;
}
.box h3 a {
	color: #FFFFFF;
	text-decoration: none;
}

.portal-action {
	margin: 0.8em 0;
	padding: 0.5em 0;
	line-height: 1.5em;
}
.portal-action img {
	vertical-align: middle;
	max-height: 3em;
}
.portal-action .action-title {
	margin-right: 1em;
	font-weight: bold;
}
.portal-action .portal-action-detail {
	margin: 0 1em;
}
#portal-action-export, #portal-action-export-all {
	white-space: nowrap;
}
#portal-action-export-all {
	clear: both;
}
#portal-action-export-comment {
	text-align: right;
	float: right;
	margin-left: 1.6em;
	max-width: 40%;
}
#portal-action-export-comment .action-title {
	margin-right: 0;
}
#portal-action-standard-settlement-instructions {
	float: right;
	width: 50%;
	margin-top: -4.3em;
}
#portal-action-standard-settlement-instructions .action-content .portal-action-detail {
	display: block;
	margin: 0.5em 1em;
}
#portal-action-standard-settlement-instructions .action-content .portal-action-detail a {
	text-decoration: none;
}

thead tr.totals th, thead tr.totals td {
    background: none !important;
    color: #333333 !important;
    border: 0 none !important;
    border-bottom: 2px solid #084E8A !important;
}
thead tr.totals th {
    text-align: right;
}

.right-account-selection {
	float: right;
	width: 40%;
}
.right-account-selection .columns {
	margin: 0;
}
.right-account-selection .columns .column {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.publication-list {
	float: left;
	width: 60%;
}

#main .risk-page .main-column {
	overflow: visible;
	min-height: 0;
	padding: 0;
	margin-right: 30em;
}
#main .risk-page .right-column {
	overflow: visible;
	padding: 0;
	width: 30em;
}
.risk-intro {
	padding: 0 1em;
}
.risk-intro h1, .risk-intro h2, .risk-intro h3, .risk-intro h4, .risk-intro h5, .risk-intro h6, .risk-intro p, .risk-intro ul, .risk-intro ol {
	margin: 0;
}
.risk-content {
	position: relative;
	height: 750px;
	height: 77vh;
	height: calc(100vh - 11.9rem);
	min-height: 500px;
}
.risk-content > * {
	height: 100%;
}
.risk-content #fullscreen-link, .risk-content #fullscreen-exit-link {
	position: absolute;
	top: 0;
	left: 1em;
	height: 1.5em;
	padding: 0.5em;
	z-index: 50;
}
.risk-fullscreen .risk-content {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	overflow: auto;
	padding: 1em 0;
	background: #FFFFFF;
	z-index: 4000;
}
.admin.risk-fullscreen .risk-content {
	top: 30px;
}
.risk-fullscreen .risk-content #fullscreen-link, .risk-fullscreen .risk-content #fullscreen-exit-link {
	top: 1em;
}
.risk-fullscreen #main .risk-page .risk-content .right-column {
	padding: 1em 0 !important;
	box-sizing: border-box;
}
.risk-fullscreen #header-top,
.risk-fullscreen #header,
.risk-fullscreen #header-strip,
.risk-fullscreen #nav,
.risk-fullscreen #header-top,
.risk-fullscreen #main .logged-in-user,
.risk-fullscreen #main .portal-messages,
.risk-fullscreen #main .risk-intro,
.risk-fullscreen #footer {
	display: none;
}
.risk-window {
	height: 50%;
	height: calc(50% - 0.5em);
	margin: 1em;
	background: #FFFFFF;
	position: relative;
	z-index: 20;
	overflow: hidden;
	transition-duration: 0.5s;
	transition-property: box-shadow, border-radius, margin, padding, height;
}
.risk-window:first-child {
	margin-top: 0;
}
.risk-window:last-child {
	margin-bottom: 0;
}
.right-column .risk-window {
	margin-left: 0;
}
.risk-window .risk-window-expanded-col {
	display: none;
}
.right-column .risk-window.expanded {
	margin: -0.5em 0.5em -0.5em -200px;
	padding: 0.5em;
	box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.5);
	border-radius: 0.3em;
	z-index: 21;
}
.risk-window.expanded .risk-window-expanded-col {
	display: block;
}
.risk-window.expanded span.risk-window-expanded-col {
	display: inline;
}
.risk-window.expanded td.risk-window-expanded-col {
	display: table-cell;
}
.right-column .risk-window.expanded:first-child {
	margin-bottom: calc(-50vh + 11.9rem - 1em);
	height: calc(90vh - 11.9rem);
}
.right-column .risk-window.expanded:last-child {
	margin-top: calc(-50vh + 11.9rem - 1em);
	height: calc(90vh - 11.9rem);
}
.risk-fullscreen .right-column .risk-window.expanded:first-child {
	margin-bottom: calc(-42.9vh + 11.9rem - 1em);
}
.risk-fullscreen .right-column .risk-window.expanded:last-child  {
	margin-top: calc(-42.9vh + 11.9rem - 1em);
}
.risk-window .portal-actions {
	float: right;
	box-shadow: none;
	margin: 0;
	padding: 0;
}
.risk-window .portal-actions h3 {
	display: none;
}
.risk-window .portal-actions .portal-action {
	float: left;
	clear: none;
	margin: 0 0 0.5em 0;
	padding: 0;
}
.risk-window .portal-actions .portal-action img {
	max-height: 2.5em;
}
.risk-window .main-filters {
	float: left;
	clear: none;
	margin: 0;
	padding: 0;
}
.risk-window .main-filters .form-row {
	float: left;
	clear: none;
	margin: 0 0 0.5em 1em;
	padding: 0;
}
.risk-window .main-filters .form-row .form-label {
	float: left;
	width: auto;
	margin: 0 0.5em 0 0;
	padding: 0.5em 0;
	line-height: 1.5em;
	min-height: 1.5em;
}
.risk-window .main-filters .form-row .form-field {
	float: left;
	margin: 0;
}
.risk-window .main-filters .form-row .form-field select {
	width: auto;
	max-width: 200px;
}
.risk-window .portal-table-wrapper, .risk-window .portal-table {
	clear: both;
}
.risk-window .toolbar {
	padding-top: 1px;
	padding-bottom: 1px;
	margin: 0;
}
.risk-window .toolbar-border {
	position: relative;
}
.risk-window .toolbar-border .pager-bar {
	position: absolute;
	top: 0;
	right: 0;
	background: rgba(221, 221, 221, 0.9);
}
.risk-window .window-content {
	height: 100%;
}
.risk-window .window-content > form {
	height: 100%;
}
/*.risk-window .portal-table-wrapper {
	height: calc(100% - 101px);
}*/
.risk-window .portal-table-wrapper .portal-table {
	max-height: 100%;
}
table tbody tr.risk-selected-account td, table tbody tr.risk-selected-account th {
	background-color: #FFEE99;
}
table tbody tr.risk-trade-log-amend td, table tbody tr.risk-trade-log-amend th {
	background-color: #FFEE99;
}
table tbody tr.risk-trade-log-delete td, table tbody tr.risk-trade-log-delete th {
	background-color: #FF6666;
}
#account-summary-window {
	height: 60%;
	height: calc(60% - 0.5em);
}
#account-summary-window .main-filters {
	margin-left: 2.5em;
}
#account-summary-window .portal-table tbody tr td:not(.no-results),
#account-summary-window .portal-table tbody tr th:not(.no-results) {
	cursor: pointer;
}
#account-detail-window {
	height: 40%;
	height: calc(40% - 0.5em);
}
#account-detail-window .tabs-block {
	height: 100%;
}
#account-detail-window .tab-content {
	height: 90%;
	height: calc(100% - 1.5em - 4px);
	overflow: auto;
}
#credit-summary-time-filter {
	display: inline;
	float: right;
	height: auto;
	line-height: normal;
	margin: -0.4em 0;
}
#credit-summary-time-filter select {
	position: static;
	width: auto;
}
@media(max-width: 850px) {
	.risk-content {
		height: auto;
		min-height: 0;
	}
	.risk-content > * {
		height: auto;
	}
	.risk-window {
		height: auto !important;
		min-height: 100px;
	}
	#main .risk-page .main-column {
		margin-right: 0;
	}
	#main .risk-page .right-column {
		width: auto;
		height: 50%;
	}
	#main .risk-page .right-column .risk-window:first-child {
		margin-top: 1em;
	}
	.right-column .risk-window {
		margin-left: 1em;
	}
	.right-column .risk-window.expanded {
		margin: 1em !important;
		padding: 0;
		box-shadow: none;
		border-radius: 0;
	}
}

#logout-warning-popup-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 5000;
}
#logout-warning-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	padding: 0 10px;
	width: 400px;
	max-width: 95vw;
	height: 160px;
	max-height: 95vh;
	text-align: center;
	border-radius: 5px;
	box-sizing: border-box;
	background: #FFFFFF;
	box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.5);
	overflow: auto;
	z-index: 5001;
}