
:root {
    --map-background-color: var(--white);
    --map-text-on-background-color: var(--black);
    --map-text-on-rect: var(--white);
    --map-section-highlight-color: var(--blue-8);
}
#chart {
    max-width: 100%;
    overflow: auto;
    background: var(--map-background-color);
    padding: 0;
    box-sizing: border-box;
}

svg, svg g {
    overflow: visible;
}


.grandparent text {
    font-weight: 600;
    fill: var(--map-text-on-background-color);
    font-family: var(--font-family);
    cursor: pointer;
}

rect {
    stroke: var(--map-background-color);
    stroke-width: 0.5px;
}

    rect.parent {
        pointer-events: none;
        stroke-width: 0;
    }

.grandparent rect {
    stroke: var(--map-background-color);
    fill: var(--map-background-color);
}

.grandparent:hover text {
    fill: #ccc;
}

.children rect.parent,
.grandparent rect {
    cursor: pointer;
}


.children rect.parent {
    stroke: var(--map-background-color);
    stroke-width: 5px;
    fill-opacity: 0;
    fill: var(--white);
}

.depth.depth-2 rect.parent {
    stroke-width: 1px;
}

.depth.depth-0 .children.depth-1:hover rect.parent, .depth.depth-1 .children.depth-2:hover rect.parent {
    /*  fill-opacity: .4;*/
    cursor: pointer;
    stroke: var(--map-section-highlight-color)
}

.depth.depth-0 .children.depth-1:hover .company > rect, .depth.depth-1 .children.depth-2:hover .child > rect
 {
    filter: brightness(1.2);
}

.depth.depth-0 .children.depth-1:hover .sector-title, .depth.depth-1 .children.depth-2:hover .industry-title {
    background: var(--gray-9);
    background: var(--map-section-highlight-color);
    color: var(--map-text-on-rect);
    cursor: pointer;
}
.depth.depth-1 .children.depth-2:hover .industry-title {
    padding-top: 2px;
}

.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 */
}

.title {
    font-weight: 600;
    overflow: hidden;
    padding: 0px 4px;
    color: var(--map-text-on-rect);
    white-space: nowrap;
}

.textdiv p, .textdiv span {
    margin: 0;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1.15;
}

.depth-2 > .foreignobj, .depth-1 > .foreignobj {
    pointer-events: none;
}

p.sector-title {
    margin: 0;
    padding: 0 2px;
    background: var(--map-background-color);
    color: var(--map-text-on-background-color);
    height: 16px;
    font-size: 14px;
    font-weight: 800;
    pointer-events: auto;
    text-overflow: ellipsis;
}

p.industry-title {
    background: var(--map-background-color);
    color: var(--map-text-on-background-color);
    margin: 0 2px;
    padding:3px 0 0;
    font-weight: 800;
    height: 14px;
    font-size: 10px;
    pointer-events: auto;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.companydiv {
    width: 100%;
    height: 100%;
    display: table !important;
    font-size: 13px;
    color: var(--map-text-on-rect);
}

.depth.depth-0 .industry-title {
   display:none;
}


.centered-div {
    display: flex;
    font-size: 1.2em;
    text-align: center;
    line-height: .7;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    padding: 3px;
}


.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(--map-background-color);
    color: var(--map-text-on-background-color);
    padding: 5px 9px 6px 9px;
    font-family: var(--font-family);
    font-size: 12px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

    #tooltip p {
        margin: 0 0 4px;
    }

foreignObject.foreignobj {
    overflow: hidden;
}

#chart a {
    color: var(--map-text-on-rect);
}

#chart span.glyphicon.glyphicon-new-window {
    position: static;
    padding: 5px;
    font-size: .75em;
    color: rgba(255, 255, 255, 0.74);
}

.sectorfade, .industryfade {
    background: none;
    background: linear-gradient(to right, rgba(256, 256, 256,.01) 1%,rgba(256, 256, 256,1) 100%);
    height: 12px;
    width: 10px;
    float: right;
    display:none;
}

.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-gray);
}

#js-copytextarea {
    font-size: 12px;
    width: 100%;
}

#sectorMapKey {
    background: var(--map-background-color);
    height: 50px;
    padding: 8px 9px 0 0;
    text-align: right;
}

    #sectorMapKey > div {
        display: inline-block;
        width: calc(14% - 4px);
        height: 27px;
        color: var(--map-text-on-rect);
        text-align: center;
        line-height: 2;
        font-size: 13px;
        font-weight: 600;
    }

#shareWidget.top > a {
    width: calc(12.25% - 6px);
}

#tooltip {
    margin-bottom: 15px;
}

    #chart a {
        color: var(--map-text-on-rect);
    }

.up-4 {
    fill: #0E8E4E;
    background: #0E8E4E;
}
.up-3 {
    fill: var(--green);
    background: var(--green);
}

.up-2 {
    fill: #086847;
    background: #086847;
}

.up-1 {
    fill: var(--dark-green);
    background: var(--dark-green);
}

.neutral {
    fill: var(--gray-9);
    background: var(--gray-9);
}

.down-1 {
    fill: var(--dark-red);
    background: var(--dark-red);
}

.down-2 {
    fill: #9D2A2D;
    background: #9D2A2D;
}

.down-3 {
    fill: var(--red);
    background: var(--red);
}

.down-4 {
    fill: #EB141F;
    background: #EB141FF;
}

/* brighter */

.up-3 {
    fill: #115F44;
    background: #115F44;
}

.up-2 {
    fill: #11824D;
    background: #11824D;
}

.up-1 {
    fill: #11A65A;
    background: #11A65A;
}

.neutral {
    fill: #A5B0B7;
    background: #A5B0B7;
}

.down-1 {
    fill: #D2333D;
    background: #D2333D;
}

.down-2 {
    fill: #9D2A2D;
    background: #9D2A2D;
}

.down-3 {
    fill: #741F25;
    background: #741F25;
}


/* for tooltips */
#tooltip .up-4 {
    color: #0E8E4E;
    background: none;
}

#tooltip .up-3 {
    color: var(--green);
    background: none;
}

#tooltip .up-2 {
    color: #086847;
    background: none;
}

#tooltip .up-1 {
    color: var(--dark-green);
    background: none;
}

#tooltip .neutral {
    color: #8c8c8c;
    background: none;
}

#tooltip .down-1 {
    color: var(--dark-red);
    background: none;
}

#tooltip .down-2 {
    color: #9D2A2D;
    background: none;
}

#tooltip .down-3 {
    color: var(--red);
    background: none;
}
#tooltip .down-4 {
    color: #EB141F;
    background: none;
}