html {
    height:100%;
    font-family: "Space Grotesk", Hind, sans-serif;
}

body {
    position: relative;
    height:100%;
    font-family: "Space Grotesk", "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tradelab-logo-pghd {
    margin-top:-10px;
    height:50px;
}

.navbar-brand.purealpha-brand {
    display: flex;
    align-items: center;
}

.navbar-brand.purealpha-brand .purealpha-label {
    margin-top: -10px; /* same offset as tradelab logo */
    text-transform: uppercase;
}

a {
    color: #00a000;
}

a:focus, a:hover {
    color: #006600;
}

.banner-login {
    padding-top: 83px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
    padding-bottom: 50px;
    background: url(/festive/login-bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    text-align: center;
    height:100%;
}

@media (max-width: 767px) {
    .banner-login {
        padding-top: 53px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
        padding-bottom: 50px;
        background: url(/festive/login-bg.jpg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        text-align: center;
        height:100%;
        min-height: 600px;
    }
}

@media (max-width: 767px) {
    .stale-label-helper {
        clear: both;
        height: 10px;
    }
}

@media (max-width: 767px) {
    .motd {
        display: none;
    }
}


.banner-main {
    padding-top: 100px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
    padding-bottom: 50px;
}

.banner-main-compact {
    padding-top: 30px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
    padding-bottom: 50px;
}

@media(max-width:767px) {
    .banner-main {
        padding-top: 50px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
        padding-bottom: 50px;
    }
}

.btn-link {
    color: #00a000;
}

.btn-link:hover, .btn-link:focus {
    color: #006600;
}

.btn-primary {
    background-color: #079198;
}
.btn-primary:focus,
.btn-primary.focus {
    background-color: #046265;
}
.btn-primary:hover {
    background-color: #046265;
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: #079198;
}
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
    background-color: #046265;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
    background-color: #079198;
}
.btn-primary .badge {
    color: #079198;
}

.btn-success {
    background-color: #00a000;
}
.btn-success:focus,
.btn-success.focus {
    background-color: #006600;
}
.btn-success:hover {
    background-color: #006600;
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
    background-color: #006600;
}
.btn-success:active:hover,
.btn-success.active:hover,
.open > .dropdown-toggle.btn-success:hover,
.btn-success:active:focus,
.btn-success.active:focus,
.open > .dropdown-toggle.btn-success:focus,
.btn-success:active.focus,
.btn-success.active.focus,
.open > .dropdown-toggle.btn-success.focus {
    background-color: #006600;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled.focus,
.btn-success[disabled].focus,
fieldset[disabled] .btn-success.focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
    background-color: #00a000;
}
.btn-success .badge {
    color: #00a000;
}

.gsa-link {
    color: #08aab1;
}

.gsa-link:focus, .gsa-link:hover {
    color: #079198;
}

.label-primary {
    background-color: #079198;
}
.label-primary[href]:hover,
.label-primary[href]:focus {
    background-color: #079198;
}

.login-message {
    position: relative;
    margin-top: 20%;
    margin-bottom: 20%;
}

.login-message > h1 {
    margin: 0;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    font-size: 5em;
}

.login-divider {
    width: 400px;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.login-message > h3 {
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

@media(max-width:767px) {
    .login-message {
        margin-top: 0%;
        margin-bottom: 0%;
        padding-bottom: 0%;
    }

    .login-message > h1 {
        font-size: 3em;
    }

    .login-divider {
        width: 100%;
    }
}

.xpanel-transparent {
    background: rgba(0, 0, 0, 0.6)!important;
}

.xpanel-transparent .panel-heading{
    background: rgba(122, 130, 136, 0.6)!important;
}

.xpanel-transparent .panel-body{
    background: rgba(46, 51, 56, 0.6)!important;
}

.sign-in-pad-r {
    margin-right:15px;
}

.well-quote{
    padding-bottom:20px;
}

.message-pad {
    padding: 5px;
}

.glyphicon-large {
    font-size:   2em;
    min-height:  32px;
    line-height: 32px;
}

.no-margins {
    margin: 0 !important;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

.stat-panel {
    height:200px;
}

.stat-panel .flot-chart {
    margin-top: 15px;
    height: 60px;
}

.stat-panel.stat-panel-compact {
    height:100px;
}

.flot-chart.flot-chart-overview {
    height:60px;
}

.flot-chart-content {
    width: 100%;
    height: 100%;
}

.h350mx {
    max-height: 350px;
}

.h60mx {
    max-height: 60px;
}

.w90pc {
    width: 90%
}

.stat-panel-body {
    max-height: 200px;
    overflow-y: scroll;
}

.stat-panel-compact .panel-body {
    padding:10px;
}

.stat-panel-compact .text-info {
    font-size:0.8em;
}

.stat-panel-compact * .stat-title h4 {
    margin: 2px;
}

.stat-panel-compact * .stat-panel-table {
    padding-right:25px;
}

.stat-progress {
    height:26px;
}

.stat-title h4 {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.stat-title h4 .purealpha-logo {
    position: absolute;
    height: 24px;
    width: auto;
    margin-left: 4px;
    /* Vertically align with the h4 text */
    margin-top: inherit;
    top: 0;
}

.m-t-x1 {
    margin-top: 40px;
}

.h-140 {
    height: 140px;
}

.m-t-xxl {
    margin-top: 60px;
}

.m-t-xs {
    margin-top: 5px;
}

.m-t-z {
    margin-top: 0px;
}

.m-t-m {
    margin-top: 20px;
}

.m-t-l {
    margin-top: 30px;
}

.m-b-xs {
    margin-bottom: 5px;
}

.m-b-m {
    margin-bottom: 20px;
}

.label-owner {
    margin-left:10px;
    margin-top:30px;
    display:block;
    float:left;
}

.label-owner-compact {
    margin-left:10px;
    display:block;
    float:right;
    padding:5px;
}

.h-200 {
    min-height: 200px;
}

.stat-panel .h1-mega {
    font-size: 3em;
}

.stat-panel .risk-panel-number {
    color:#29abe0;
    font-size:2.2em;
}

.stat-panel .risk-panel-number.risk-panel-small {
    display:block;
    font-size:0.75em;
    margin-bottom: 2px;
    color:#333333;
}

.stat-panel .risk-panel-name {
    display:block;
    float:left;
    font-size:0.8em;
}
.stat-panel .risk-panel-notes {
    display:block;
    font-size:0.9em;
}

.stat-panel .risk-panel-i {
    float:right;
    margin:-10px;
}

.stat-panel:hover {
    background-color: rgba(41,171,224,0.1) !important;
    border-color: #29abe0;
    cursor:pointer;
}

.col-padding-sm {
    padding-left:2px;
    padding-right:2px;
}

.panel-border-off {
    border:0;
}

.panel-border-ro {
    border-left:0;
    border-top:0;
    border-bottom:0;
    border-radius: 0px;
}

.popover {
    font-family: "Space Grotesk", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.positive {
    color: #08aab1;
}

.negative {
    color: #c83c3e;
}

.alert-info {
    background-color: #079198;
}

.alert-success {
    background-color: #00a000;
}

.alert-danger {
    background-color: #fa4b4e
}

.progress-bar-danger {
    background-color: #fa4b4e;
}

.progress-bar-success {
    background-color: #00a000;
}

.text-info {
    color: #08aab1;
}

.table-sm {
    font-family: "Space Grotesk", "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:1.1em;
}

.table-xs {
    font-family: "Space Grotesk", "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:1.0em;
}

.port-panel {
    height:150px;
}

.port-panel .port-panel-image {
    float: right;
    margin: 2px;
}

.port-panel:hover {
    background-color: rgba(41,171,224,0.1) !important;
    border-color: #29abe0;
    cursor:pointer;
}

.port-panel.neg {
    border-color: #c9302c !important;
}

.port-panel.neg:hover {
    background-color: rgba(222,87,83,0.2) !important;
    cursor:pointer;
}

.port-panel.inactive {
    border-color: #cccccc !important;
    background-color: rgba(204, 204, 204, 0.3) !important;
}

.port-panel.inactive:hover {
    cursor:not-allowed;
}

.stat-panel .panel-table {
    width: 100%;
    height: 100%;
}

.stat-panel:hover * .panel {
    background-color: inherit;
}

.nav-fixed-top {
    top: 0px;
    border-width: 0 0 1px;
}

.nav-fixed {
    margin-top:-40px;
    position: fixed;
    background-color: #fff;
    z-index: 100;
    width:100%;
    top:120px;
    padding-bottom:30px;
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

#spied {
    position: relative;
    top: 0px;
    overflow-y: scroll;
    height:100%;
}

.btn-center {
    margin: 0 auto;
}

.tradelab-breadcrumb {
    width:100%;
    border-radius:0px;
    margin-bottom:-1px;
}

.nav.tradelab-nav {
    font-size: 11px;
    line-height: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.nav.tradelab-nav-lg {
    font-size: 20px;
    line-height: 22px;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-pills.tradelab-nav li.active > a, .nav-pills.tradelab-nav li > a:hover {
    border:none;
    border-radius:0px;
}

.nav-pills.tradelab-nav > li.active > a, .nav-pills.tradelab-nav > li.active > a:hover, .nav-pills.tradelab-nav > li.active > a:focus {
    border-bottom: 2px solid #98978b;
    background-color: transparent;
}

.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    color: #98978b;
    background-color: transparent;
}

.tradelab-label-sm {
    padding: .2em .6em .3em;
    font-size: 50%;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: .25em;
}

.h1-large {
    font-size:4em;
}

.tl-btn-pull-right {
    float:right !important;
}

.tl-btn-pull-left {
    float:left !important;
}

@media(max-width:767px) {

    .h1-large {
        font-size:2em;
    }
    .h3-large {
        font-size:1.2em;
    }
    .tl-btn-pull-right {
        margin-bottom:10px;
        float:left !important;
    }
}

@media (min-width: 768px) {
    .tl-modal-sm {
        width: 280px;
    }
}

@media (max-width: 1500px) {
    .tl-disappearing-panel-sm {
        display:none;
    }

    .tl-disappearing-panel-xs {
        display:none;
    }

    .xl-size {
        display:none;
    }

    .risk-panel-number.tl-minitext {
        font-size:1.5em;
    }
}




.flot-tooltip {
    position: fixed;
    border: 1px solid #fdd;
    padding: 2px;
    background-color: #fee;
    opacity: 0.80;
}

.flot-zoomy-message {
    width: 25%;
    align: center;
    padding: 2px;
    margin: 0px auto;
}

.port-panel .user-name {
    font-size: 0.9em;
    margin-top: 10px;
}

.m-r-5 {
    margin-right:5px;
}

.tradelab-btn-off {
    pointer-events: none;
}

#open-ideas-table-long tbody td {
    white-space: nowrap;
}

#open-ideas-table-short tbody td {
    white-space: nowrap;
}

.tradelab-company-name {
    font-size:0.85em;
}

.fa-btn:hover {
    color:orange;
}

.h3-small {
    font-size:0.6em;
}

.h1-mt-sm {
    margin-top:2px;
}

.table-xs {
    font-size:0.85em;
}

.icon-trophy.rainbow {
    color:transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr=#0bf2fd, endColorstr=#fa4b4e);
    background-image:-moz-linear-gradient(left, #0bf2fd 0%, #8796a2 50%, #fa4b4e 100%);
    background-image:linear-gradient(left, #0bf2fd 0%, #8796a2 50%, #fa4b4e 100%);
    background-image:-webkit-linear-gradient(left, #0bf2fd 0%, #8796a2 50%, #fa4b4e 100%);
    background-image:-o-linear-gradient(left, #0bf2fd 0%, #8796a2 50%, #fa4b4e 100%);
    background-image:-ms-linear-gradient(left, #0bf2fd 0%, #8796a2 50%, #fa4b4e 100%);
    background-image:-webkit-gradient(linear, left bottom, right bottom, color-stop(0%, #0bf2fd), color-stop(50%, #8796a2), color-stop(100%, #fa4b4e));
}

.icon-trophy.gold {
    color:gold;
}

.icon-trophy.silver {
    color:silver;
}

.icon-trophy.bronze {
    color:#CD7F32;
}

.table-condensed > tbody > tr > td.right {
    text-align: right;
    padding-right: 10px;
}

#btnTargetPos {
    float: right
}

#sendTrade {
    float: right
}

.modal-wide .modal-dialog {
    width: 60%;
}

/*
 * The "Loading" popup. Previously the spinner was inline and the heading was float:right, which fits
 * inside .tl-modal-sm's 280px only just: a wider font or a longer translation pushed the float off
 * the spinner's line, and because .modal-content has no clearfix a float adds nothing to its parent's
 * height, so the heading rendered outside the white box. A flex row instead, with a smaller spinner
 * and heading so there is slack. Shared by the loading modals in portfolio.ftl, the two report pages,
 * idea_approval.ftl, admin/slide_deck.ftl and admin/dashboard/buyside_performance_report.ftl.
 */
.loading-modal-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.loading-modal-spinner {
    flex: 0 0 auto;
    height: 80px;
    width: 80px;
}

.loading-modal-text {
    flex: 1 1 auto;
    /* Without this a long loading-state message would push the flex item past the popup. */
    min-width: 0;
    text-align: right;
}

.loading-modal-text h1 {
    font-size: 28px;
    margin: 0;
}

.loading-modal-text h6 {
    margin: 4px 0 0;
}

.missing-book {
    color: orange;
}

#instructionsTable tr.filled > td{
    background-color: #ccffd0 !important;
}

#instructionsTable tr.inProgress > td {
    background-color: #e0ffe7 !important;
}

#instructionsTable tr.pending > td {
    background-color: #cce7ff !important;
}

#instructionsTable tr.unsuccessful > td {
    background-color: #fff1cc !important;
}

#instructionsTable div.progress {
    margin-bottom: 0px;
}

#orderSizeLots {
    color: blue;
}

#portfoliosTable tr.selected {
    color: white;
    background-color: #1b8dbb;
}

#instructionsTable tr.selected {
    color: white;
    background-color: #1b8dbb;
}

#portfolioPositionsTable tr.selected {
    color: white;
    background-color: #1b8dbb;
}

.startingPosValue {
    font-size: 1.1em;
    color: darkslateblue;
}

.activeOrderDescription .startingPosValue {
    color: red;
}

.ric {
    color: #00cc00;
}

.bloomberg {
    color: blue;
}

.confDetail.buy {
    color: blue;
    font-size: 1.2em;
}

.confDetail.sell {
    color: red;
    font-size: 1.2em;
}

.confDetail {
    color: #1b8dbb;
    font-size: 1.15em;
}

.confDetail.releasedCount {
    color: green;
    font-size: 1.25em;
}

.confDetail.unreleasedCount {
    color: red;
    font-size: 1.25em;
}

.confDetail.lateFill {
    color: #ad0d0d;
    font-size: 1.15em;
}

.confDetail.gsaRestricted {
    color: red;
    font-size: 1.15em;
    font-weight: bold;
}

label.confDetail.gsaRestricted {
    display: inline-block;
    vertical-align: middle;
    width: 500px;
    margin-left: 10px;
}

label.confDetail.gsaRestricted, #acknowledgeGsaRestricted {
    display: inline-block;
    vertical-align: middle;
}

.confDetailsRow {
    padding: 5px 15px;
}

.failureMessage {
    color: red;
    font-weight: bold;
}

#portfolioPositionsErrorMsg {
    color: red;
    font-size: 1.2em;
    font-weight: bold;
}

#instructionsErrorMsg {
    color: red;
    font-size: 1.2em;
    font-weight: bold;
}

.riskDetails {
    font-size: 0.9em;
}

.riskDetails.has-error{
    color: red;
}

.riskDetails.has-warning{
    color: orange;
}

.riskGlyph{
    display: none;
    padding-right: 10px;
    padding-left: 10px;
}

.has-error .riskGlyph{
    color: red;
    display: inline;
}

.has-warning .riskGlyph{
    color: orange;
    display: inline;
}

.riskMetric {
    color: #89be3d;
}

.has-error .riskMetric {
    color: inherit;
}

.has-warning .riskMetric {
    color: inherit;
}

#tradeDialog .note {
    font-size: 0.9em;
}

#tradeDialog .warning {
    color: orange;
}

.top-level-stat {
    text-align: center;
}

.top-level-stat-label {
    display: table;
    width:100%;
}

.top-level-stat-label p {
    text-align:center;
    vertical-align: middle;
    display: table-cell;
}

.tooltip {
    font-family: "Space Grotesk", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.report-section {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.report-header {
    border-top: 1px solid #ccc;
}

.report-section-title {
    padding: 15px 10px 5px;
}

.mgmt-report-header {
    background-color: black;
}

button.close {
    opacity: 0.5;
}

.modal-open .input-group-btn {
    color: #999;
}

td.charge-type {
    padding: 5px;
    font-size: 0.9em;
    text-align: left;
}

td.charge-amount {
    padding: 5px;
    font-size: 0.9em;
    text-align: right;
}

td .purealpha-logo {
    height: 14px;
    width: auto;
    margin-left: 4px;
}

.btn-default[disabled].active {
    background-color: #242422;
}

.pnl-mode-logo-btn {
    background: transparent;
    border: 1px solid rgba(8, 170, 177, 0.35);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pnl-mode-logo-btn:focus {
    box-shadow: 0 0 0 2px rgba(8, 170, 177, 0.35);
}

.pnl-mode-logo-btn:hover {
    border-color: rgba(8, 170, 177, 0.65);
}

.pnl-mode-logo-btn .pnl-mode-logo {
    height: 26px;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.pnl-mode-logo-btn.is-classic .pnl-mode-logo {
    filter: grayscale(100%) brightness(70%);
    opacity: 0.65;
}

/*
 * Pure alpha column headings. One gradient is stretched across a run of adjacent headers so that the run reads as a
 * single band rather than as n copies of the same fade: -active carries the colours, and the run classes below slice
 * that one image up between them. On the portfolio page -active is toggled by the pnl mode switch, so a classic
 * portfolio gets no colouring at all; on the report pages the columns are always pure alpha, so it is set in the
 * markup. Used by portfolio.ftl, company_performance_report.ftl and portfolio_performance_report.ftl.
 */
.portfolio-mobius-heading-active {
    color: #ffffff;
    background-image: linear-gradient(125deg, rgba(250, 75, 78, 0.92) 0%, rgba(11, 242, 253, 0.9) 100%);
    background-color: #fa4b4e;
    border-color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

/* A heading that owns the whole gradient - either on its own, or spanning a group of columns. */
.portfolio-mobius-heading-single {
    background-size: 100% 100%;
}

/* A run of four: the four leaf columns under a group heading. */
.portfolio-mobius-heading-start {
    background-size: 400% 100%;
    background-position: 0 0;
}

.portfolio-mobius-heading-middle1 {
    background-size: 400% 100%;
    background-position: 33.33% 0;
}

.portfolio-mobius-heading-middle2 {
    background-size: 400% 100%;
    background-position: 66.66% 0;
}

.portfolio-mobius-heading-end {
    background-size: 400% 100%;
    background-position: 100% 0;
}

/* A run of three: pnl, roc and ir for one horizon on the global report. */
.portfolio-mobius-heading-third1 {
    background-size: 300% 100%;
    background-position: 0 0;
}

.portfolio-mobius-heading-third2 {
    background-size: 300% 100%;
    background-position: 50% 0;
}

.portfolio-mobius-heading-third3 {
    background-size: 300% 100%;
    background-position: 100% 0;
}
