@import '~@equitysim/react-uikit/dist/styles/styleguide';

$tab-height: v-space(9);

.c-portfolio-tab-item {
    @extend %nav-row;

    height: $tab-height;
    cursor: pointer;
    border-bottom: 0.1rem solid rgba($grey-50, 0.5);
    transition: all $animation-duration;

    &--active::after {
        box-shadow: v-space(1) 0 0 $seafoam;
    }

    &__bar {
        @extend %nav-bar;
        background-color: $dark;
        transition: inherit;

        .c-portfolio-tab-item--active &,
        .c-portfolio-tab-item:hover & {
            background-color: $darker;
            color: $seafoam;
        }
    }

    &__menu {
        @extend %nav-menu;
        background-color: transparent;
        padding: 0 v-space(3);
        transition: inherit;

        .c-portfolio-tab-item--active &,
        .c-portfolio-tab-item:hover & {
            background-color: rgba($darker, 0.5);
        }
    }

    &__text {
        width: 100%;
        color: rgba($grey-97, 0.5);
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        pointer-events: none;
    }

    &__tab-label {
        @extend %caption;
        margin: 0;
        text-transform: initial;
    }

    &__portfolio-name {
        font-size: 1.4rem;
        text-transform: uppercase;
        letter-spacing: $letter-spacing;
        line-height: v-space(3);
        transition: color $animation-duration;

        .c-portfolio-tab-item--active &,
        .c-portfolio-tab-item:hover & {
            color: $grey-100;
        }
    }

    &__avatar {
        height: v-space(4);
        width: v-space(4);
    }

    &__tooltip {
        @extend %nav-tooltip;
    }
}
