/*to use global variables, import them into your component stylesheet*/
@import "./../../../styles/global.scss";

.flex-graphs .insights-graphs-container {
    flex: 1;
}

.flex-graphs .insights-graphs-container:first-child {
    margin-right: 16px;
}

.flex-graphs .insights-graphs-container:nth-child(2) {
    margin-left: 16px;
}

.insights-graphs-container {
    padding: 16px 0;
    user-select: none;
}

.insights-graphs-container:last-child {
    margin-bottom: 0;
}

.insights-graphs-container .title-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.insights-graphs-container .left {
    display: flex;
}

.insights-graphs-container .title {
    font-size: 15px;
    font-weight: 600;
    color: $black-blue;
    display: flex;
    align-items: center;
}

.insights-graphs-container .info-icon {
    align-self: flex-start;
    padding: 8px;
    opacity: 0.5;
    height: 14px;
    transition: opacity 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);
    cursor: pointer;
    position: relative;
}

.insights-graphs-container .info-icon .material-icons {
    font-size: 14px;
}

.insights-graphs-container .info-icon:hover {
    opacity: 1;
}

.insights-graphs-container .info-icon img {
    display: block;
    margin-top: -2px;
}

.insights-graphs-container .view-more {
    font-size: 14px;
    color: $blue;
    text-align: right;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    margin-left: 12px;
}

.insights-graphs-container .view-more:hover {
    opacity: 0.75;
}

.insights-graphs-container .content-container {
    background: $white;
    border: 1px solid $grey-light;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 10px 12px;
}

.insights-graphs-container .chrononumbergraph-container,
.insights-graphs-container .bignumbergraph-container {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
}

.insights-graphs-container .chrononumbergraph-container .item.margin {
    margin-left: 24px;
}

.insights-graphs-container .chrononumbergraph-container .item .item-title {
    font-weight: 500;
    font-size: 11px;
    color: $grey-medium-dark;
}

.insights-graphs-container .chrononumbergraph-container .item .item-value {
    font-weight: 400;
    font-size: 24px;
    color: $black;
}

.insights-graphs-container .bignumbergraph-container .number {
    font-size: 28px;
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 48px;
    padding-top: 7px;
    color: $black;
}

.insights-graphs-container .bignumber-fields {
    align-self: center;
    color: $grey-medium-dark;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: center;
}

.insights-graphs-container .bignumber-fields .value {
    font-size: 16px;
    font-weight: 500;
    color: $black;
}

.insights-graphs-container .bignumbergraph-container .text,
.insights-graphs-container .linegraph-container .text {
    align-self: center;
    font-size: 12px;
    padding-top: 3px;
    color: $green;
}

.insights-graphs-container .bignumbergraph-container .text.negative {
    color: $grey-medium;
}

.insights-graphs-container .linegraph-container .text.negative {
    color: $pink;
}

/* TOOLTIPS */

.insights-graphs-container .info-icon .right {
    min-width: 200px;
    max-width: 400px;
    top: 50%;
    left: 100%;
    margin-left: 4px;
    transform: translate(-15%, -50%);
    padding: 8px 12px;
    color: $grey-white;
    background-color: rgba(10, 9, 26, 0.95);
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    position: absolute;
    z-index: 99999999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.2s ease;
}

.insights-graphs-container .info-icon:hover .right {
    visibility: visible;
    opacity: 1;
    transform: translate(0, -50%);
}

.insights-graphs-container .info-icon .text-content {
    padding: 10px 20px;
}

.insights-graphs-container .info-icon .right i {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -10px;
    width: 10px;
    height: 24px;
    overflow: hidden;
}

.insights-graphs-container .info-icon .right i:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    left: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(-45deg);
    background-color: rgba(10, 9, 26, 0.95);
}

.insights-container .grid .right-col .insights-graphs-container .info-icon .right {
    left: auto;
    right: 100%;
    margin-right: 10px;
    margin-left: 0;
}

.insights-container .grid .right-col .insights-graphs-container .info-icon .right i {
    right: auto;
    left: 100%;
}

.insights-container .grid .right-col .insights-graphs-container .info-icon .right i:after {
    left: auto;
    right: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.listgraph {
    margin: 10px;
    margin-bottom: 1px;
    margin-top: 2px;
}

.listgraph .list-expander {
    display: block;
    text-align: center;
    padding: 10px;
    padding-bottom: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid $grey-light;
    color: $blue;
}

.listgraph table {
    width: 100%;
    overflow: auto;
    border-spacing: 0;
}

.listgraph table td,
.listgraph table th {
    font-size: 13px;
    text-align: left;
    padding: 6px 0;
    line-height: 16px;
}

.listgraph table tbody tr:first-child td {
    padding-top: 8px;
}

.listgraph table th {
    font-weight: 500;
    border-bottom: 1px solid $grey-light;
}

.listgraph table td:nth-child(2) {
    min-width: 80px;
}

.listgraph a {
    color: $blue;
    display: block;
    height: 16px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linegraph-total {
    margin: -10px -12px;
    padding: 10px 20px;
    padding-top: 14px;
    border-bottom: 1px solid $grey-light;
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 44px;
}

.linegraph-total-title {
    margin: -10px -12px;
    padding: 10px 20px;
    padding-top: 14px;
    border-bottom: 1px solid $grey-light;
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: 0.3px;
    font-weight: 500;
}
