﻿
/*Portfolio.Industry.Region. tabs in data enrichment*/
.tabset > input[type="radio"] {
    position: absolute;
    left: -200vw;
}

.tabset .tab-panel {
    display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
    display: block;
}



.tabset > label {
    position: relative;
    display: inline-block;
    padding: 15px 15px 25px;
    border: 1px solid transparent;
    border-bottom: 0;
    cursor: pointer;
    font-weight: 600;
}

    .tabset > label::after {
        content: "";
        position: absolute;
        left: 15px;
        bottom: 10px;
        width: 22px;
        height: 4px;
        background: #8d8d8d;
    }

    .tabset > label:hover,
    .tabset > input:focus + label {
        color: #19a7f8;
    }

        .tabset > label:hover::after,
        .tabset > input:focus + label::after,
        .tabset > input:checked + label::after {
            background: #19a7f8;
        }

.tabset > input:checked + label {
    border-color: #ccc;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.tab-panel {
    padding: 30px 0;
    border-top: 1px solid #ccc;
}

*:before,
*:after {
    box-sizing: border-box;
}


.tabset {
    max-width: 65em;
}


/*List of data sets in data enrichment - hover/color */
li.datasetList {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: black;
}

    li.datasetList:hover {
        cursor: pointer;
        text-decoration: underline;
        text-decoration-color: #19a7f8;
    }

li.datasetSubList {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: white;
    margin-left: 25px;
}

    li.datasetSubList:hover {
        cursor: pointer;
        text-decoration: underline;
        text-decoration-color: #19a7f8;
        margin-left: 25px;
    }

a.datasetList {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: black;
}

a:hover {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #19a7f8;
}

/* <select> styles */
select {
    /* Reset */
    -webkit-appearance: none;
    -moz-appearance: none;
    /*appearance: none;*/
    border: 0;
    outline: 0;
    font: inherit;
    /* Personalize */
    width: 100%;
    height: 3em;
    padding: 0 4em 0 1em;
    background: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg) no-repeat right 0.8em center/1.4em, linear-gradient(to left, rgba(255, 255, 255, 0.3) 3em, rgba(255, 255, 255, 0.2) 3em);
    color: white;
    border-radius: 0.25em;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    /* <option> colors */
    /* Remove focus outline */
    /* Remove IE arrow */
}

    select option {
        color: inherit;
        background-color: #414146;
    }

    select:focus {
        outline: none;
    }

    select::-ms-expand {
        display: none;
    }

[dataEnrichment-accordion-item] {
    width: 100%;
    color: white;
    overflow: hidden;
    border: solid 1px white;
    margin-top: 5px;
}

    [dataEnrichment-accordion-item] > input {
        position: absolute;
        opacity: 0;
        z-index: -1;
    }

    [dataEnrichment-accordion-item] > label {
        display: flex;
        justify-content: space-between;
        padding: 1em;
        font-weight: bold;
        cursor: pointer;
    }

        [dataEnrichment-accordion-item] > label:hover {
            background: white;
            color: black;
        }

        [dataEnrichment-accordion-item] > label::after {
            content: "❯";
            width: 1em;
            height: 1em;
            text-align: center;
            transition: all 0.35s;
        }

[dataEnrichment-accordion-panel] {
    max-height: 0;
    padding: 0 1em;
    color: black;
    background: white;
    transition: padding 0.35s;
}

/* :checked */
[dataEnrichment-accordion-item] > input:checked + label {
    background: white;
    color: black;
}

    [dataEnrichment-accordion-item] > input:checked + label::after {
        transform: rotate(90deg);
        color: black;
    }

[dataEnrichment-accordion-item] > input:checked ~ [dataEnrichment-accordion-panel] {
    max-height: 100vh;
    padding: 1em;
    border-top: solid 1px gray;
}


/*Data Enrichment Inner Accordion*/
.accordionInner {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

    .activeInner, .accordionInner:hover {
        background-color: #ccc;
    }

    .accordionInner:after {
        content: '\002B';
        color: #777;
        font-weight: bold;
        float: right;
        margin-left: 5px;
    }

.activeInner:after {
    content: "\2212";
}

.panelInner {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}


/*Data Enrichment Overlay*/
.popup {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    background: #ffffff;
    z-index: 15;
    overflow-x: auto;
}

.popup-close {
    background-color: #19a7f8;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    position: absolute;
    right: 0;
    text-align: center;
    text-decoration: none;
    top: 0;
    z-index: 1;
}

