@import './tooltip.scss';
@import './variables.scss';

.pivot-table {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    height: 100vh;
    flex-grow: 1;
    align-items: flex-start;

    &:first-of-type {
        border-left: 1px solid $colorBrandLight;
    }
};

.grid-row {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.left-side-grid-container {
    flex: 0 0 75px;
    z-index: 10;
    background-color: $colorNavyMedium;
    color: $colorLight;
}

.left-side-grid {
    overflow: hidden !important;
    font-family: $font;
}

.grid-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.header-grid {
    width: 100%;
    overflow: hidden !important;
    background-color: $colorNavyMedium;
    color: $colorLight;
}

.body-grid {
    width: 100%
}

.cell,
.header-cell,
.left-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 .5em;
}

.pivot-table--loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.pivot-table__grid-cell {
    padding-top: 5px;
    text-align: right;
}

.pivot-table__grid-cell--bubble {
    background-color: $colorBrandLight;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.pivot-table__title {
    font-family: $font;
    font-size: $fontSizeL;
    font-weight: $fontBold;
    background-color: $colorLight;
    color: $colorNavyDark;

    span {
        padding-right: 1em;
    }
}

.dendrogram {
    .node {
        fill: $colorNavyDark;
        stroke: none;
    }

    .hover-sensitivity-node {
        fill-opacity: 0;
        stroke-opacity: 0;

        &:hover {
            stroke: $colorBrandLight;
            stroke-opacity: 1;
            stroke-width: 3px;
        }
    }

    .link {
        fill: none;
        stroke: $colorNavyDark;
        stroke-width: 1px;
    }
}