﻿#chart {
    max-width: 100%;
    overflow: auto;
    background: var(--black);
    padding: 0;
    box-sizing: border-box;
    min-height: 600px;
}

svg, svg g {
    overflow: visible;
}


.treemap-chart .grandparent text {
    font-weight: bold;
    fill: var(--white);
    font-family: var(--font-family);
    cursor: pointer;
}

.treemap-chart rect {
    stroke: var(--black);
    stroke-width: 1.5px;
}

    .treemap-chart rect.parent {
        pointer-events: none;
        stroke-width: 0;
    }

.treemap-chart .grandparent rect {
    stroke: var(--black);
    fill: var(--black);
}

.treemap-chart .grandparent:hover text {
    fill: var(--gray-3);
}

.treemap-chart .children rect.parent,
.treemap-chart .grandparent rect {
    cursor: pointer;
}


.treemap-chart .children rect.parent {
    stroke: var(--black);
    stroke-width: 7px;
    fill-opacity: 0;
    fill: var(--white);
}

.treemap-chart .depth.depth-2 rect.parent {
    stroke-width: 1px;
}

.treemap-chart .depth.depth-0 .children.depth-1:hover rect.parent,
.treemap-chart .depth.depth-1 .treemap-chart .children.depth-2:hover rect.parent {
    fill-opacity: .1;
    cursor: pointer;
}

.treemap-chart .depth.depth-0 .children.depth-1:hover .sector-title,
.treemap-chart .depth.depth-1 .children.depth-2:hover .industry-title {
    background: var(--dark-blue);
    cursor: pointer;
}

.treemap-chart .textdiv {
    font-family: var(--font-family);
    font-size: 10px;
    cursor: pointer;
    width: 100%;
    padding: .1px /* needed to make margins of inner p work in Safari */
}

.treemap-chart .title {
    font-weight: bold;
    overflow: hidden;
    padding: 0px 4px;
    color: var(--white);
    white-space: nowrap;
}

.treemap-chart .textdiv p, .treemap-chart .textdiv span {
    margin: 0;
    padding: 0 3px;
    font-size: 10px;
    color: var(--white);
    line-height: 1.15;
}

.treemap-chart .depth-2 > .foreignobj,
.treemap-chart .depth-1 > .foreignobj {
    pointer-events: none;
}

.treemap-chart p.sector-title {
    margin: 1px 0 0 1px;
    text-transform: uppercase;
    background: var(--black);
    height: 12px;
    font-size: 12px;
    pointer-events: auto;
}

.treemap-chart p.industry-title {
    background: var(--black);
    margin: 0 0 0 1px;
    font-weight: 600;
    height: 12px;
    pointer-events: auto;
}

.treemap-chart .companydiv {
    width: 100%;
    height: 100%;
    display: table !important;
    font-size: 13px;
}

.depth.depth-1 .industry-title {
    margin: 0 0 0 0;
}

.centered-div {
    display: table-cell;
    font-size: 1.2em;
    text-align: center;
    vertical-align: middle;
    line-height: .7;
}


.depth-3 .title {
    text-align: center;
}

.depth.depth-0 .size-5, .depth.depth-0 .size-4 .change, .size-3 .change {
    display: none;
}



.depth.depth-0 .depth-3 .size-1 .title {
    font-size: 20px;
}

.depth.depth-0 .depth-3 .size-4 .title {
    font-size: 11px;
}

.depth.depth-0 .depth-3 .size-3 .title {
    font-size: 12px;
}

.depth.depth-0 .depth-3 .size-2 .title {
    font-size: 13px;
}

.depth.depth-1 .depth-3 .size-1 .title {
    font-size: 15px;
}

.depth.depth-1 .depth-3 .size-2 .title {
    font-size: 10px;
}


.depth.depth-2 .depth-3 .size-1 .title {
    font-size: 20px;
}

.depth.depth-2 .depth-3 .size-2 .title {
    font-size: 20px;
}

.depth.depth-0 .details, .depth.depth-1 .details, .depth.depth-2 .title, .depth.depth-2 .change {
    display: none;
}

.depth.depth-2 .details {
    display: block;
    font-size: 12px;
}

.depth.depth-2 .size-2 .details {
    font-size: 11px;
}

.depth.depth-2 .size-3 .details {
    font-size: 10px;
}

.depth.depth-1 .companydiv .title, .depth.depth-1 .companydiv .change {
    display: inline-block;
    vertical-align: bottom;
}

.depth.depth-1 .size-5 .companydiv .change, .depth.depth-1 .size-4 .companydiv .change {
    display: none;
}

.depth.depth-2 .size-2 .companydiv .details .line, .depth.depth-2 .size-3 .companydiv .details .line, .depth.depth-2 .size-4 .companydiv .details .line, .depth.depth-2 .size-5 .companydiv .details .line {
    display: inline-block;
    vertical-align: bottom;
}



/* end size styles */

#tooltip {
    background: var(--black);
    padding: 5px 9px 6px 9px;
    font-family: var(--font-family);
    font-size: 12px;
    color: var(--white);
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
    .tooltip{
        font-family:var(--font-family);
    }
    #tooltip p {
        margin: 0 0 4px;
    }

        #tooltip p:first-child {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

.tooltip-area {
    min-height: 66px;
}

foreignObject.foreignobj {
    overflow: hidden;
}

#chart a {
    color: var(--white);
}

#chart span.glyphicon.glyphicon-new-window {
    position: static;
    padding: 5px;
    font-size: .75em;
    color: rgba(255, 255, 255, 0.74);
}

.sectorfade, .industryfade {
    background: none; /* Old browsers */
    background: -moz-linear-gradient(left, rgba(3, 26, 30,.01) 1%, rgba(3, 26, 30,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(3, 26, 30,.01) 1%,rgba(3, 26, 30,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(3, 26, 30,.01) 1%,rgba(3, 26, 30,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: 12px;
    width: 10px;
    float: right;
}

.depth.depth-0 .children.depth-1:hover .sectorfade, .depth.depth-1 .children.depth-2:hover .industryfade, .depth.depth-2 .industryfade {
    display: none;
}


.modalPopup > div {
    padding: 0px;
}

.modalPopup h3 {
    margin: 0;
    padding: 15px 0;
}

#PanelShareImage > div {
    width: 728px;
}

.modalPopup .buttons {
    text-align: center;
    margin-top: 0;
    padding: 15px 15px 8px;
    background: var(--light-blue);
}

#js-copytextarea {
    font-size: 12px;
    width: 100%;
}

#sectorMapKey {
    background: var(--black);
    height: 50px;
    padding: 8px 9px 0 0;
    text-align: right;
}

    #sectorMapKey > div {
        display: inline-block;
        width: calc(14.28% - 5px);
        height: 27px;
        color: var(--white);
        text-align: center;
        line-height: 2;
        font-size: 13px;
        font-weight: bold;
    }

#shareWidget.top > a {
    width: calc(12.25% - 6px);
}

#tooltip {
    margin-bottom: 15px;
}

    #chart a, #tooltip a {
        color: var(--white);
    }

.c-strong-sell {
    color: var(--red);
}

.c-sell {
    color: #9D2A2D;
}

.c-reduce {
    color: var(--dark-red);
}

.c-hold {
    color: var(--gray);
}

.c-moderate-buy {
    color: var(--dark-blue);
}

.c-buy {
    color: var(--blue-8);
}

.c-strong-buy {
    color: var(--blue);
}

.up-4 {
    fill: var(--blue);
    background: var(--blue);
}

.up-3 {
    fill: var(--blue-8);
    background: var(--blue-8);
}

.up-2 {
    fill: var(--dark-blue);
    background: var(--dark-blue);
}

.up-1 {
    fill: #00304D;
    background: #00304D;
}

.neutral {
    fill: var(--gray);
    background: var(--gray);
}

.down-1 {
    fill: #55171b;
    background: #55171b;
}

.down-2 {
    fill: var(--dark-red);
    background: var(--dark-red);
}

.down-3 {
    fill: #9D2A2D;
    background: #9D2A2D;
}

.down-4 {
    fill: var(--red);
    background: var(--red);
}


/* for tooltips */
#tooltip p span{
    display:inline-block;
    padding:1px;
}
#tooltip .up-4 {
    background: var(--blue);
    color: var(--white);
}

#tooltip .up-3 {
    background: var(--blue-8);
    color: var(--white);
}

#tooltip .up-2 {
    background: var(--dark-blue);
    color: var(--white);
}

#tooltip .up-1 {
    background: #00304D;
    color: var(--white);
}

#tooltip .neutral {
    background: var(--gray-9);
    color: var(--white);
}

#tooltip .down-1 {
    background: #55171b;
    color: var(--white);
}

#tooltip .down-2 {
    background: var(--dark-red);
    color: var(--white);
}

#tooltip .down-3 {
    background: #9D2A2D;
    color: var(--white);
}

#tooltip .down-4 {
    background: var(--red);
    color:var(--white);
}

.rating-sub-title {
    text-transform: none;
    font-size: 14.5px;
    letter-spacing: 0;
    font-weight: 400;
}

.rating-title {
    font-size: 1.75em;
}

.target-title {
    font-size: 2em;
}

.upside-title {
    text-transform: none;
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 400;
}

.shadow h3 {
    line-height: 1;
}

.icon-arrow-down {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.icon-arrow-up {
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.rating-bar-wrapper {
    height: 1em;
    width: calc(100% - 55px);
}

.rating-bar {
    left: 0;
    top: 0;
}

.rating-count {
    top: 50%;
    -webkit-transform: translate(0,-50%);
    -ms-transform: translate(0,-50%);
    transform: translate(0,-50%);
    font-size: 80%;
    font-weight: 700;
}

.performance-title {
    text-transform: uppercase;
    font-size: 0.8em;
}

.moreinfo.position-relative {
    top: auto;
    right: auto;
}

.fill-bar {
    animation-name: performance-bar;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

.sectors-over-time-chart {
    overflow-x: scroll;
    white-space: nowrap;
    height: 350px;
}

.sector {
    border: solid 2px var(--white);
    background: #ddd;
}

.filing {
    width: 150px !important;
    display: inline-block;
    height: 350px;
    border: solid 1px gray;
    vertical-align: top;
}

.fade-edges rect {
    pointer-events: none;
}

#sectorsOverTimeChart rect.holding {
    cursor: pointer;
    stroke: white;
    stroke-width: .25px;
}

#sectorsOverTimeChart .tooltip {
    border-radius: 0;
    pointer-events: none;
}
