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

$row-height: v-space(8);
$border-idle: 0.1rem solid $grey-92;
$border-active: 0.1rem solid $seafoam-40;
$background-idle: $grey-100;
$background-active: $seafoam-20;

.c-portfolio-rationale-log {
    &__table {
        width: $container-max-width;

        thead > tr {
            border: 0.1rem solid $grey-40;
            &:last-child {
                border-bottom: 0.1rem solid $grey-40;
            }
        }
        tr {
            background-color: $grey-100;
            border-top: $border-idle;
            border-left: $border-idle;
            border-right: $border-idle;
            &:last-child {
                border-bottom: $border-idle;
            }
        }
        th {
            font-weight: $font-weight-bold !important;

            &:first-of-type {
                width: 24.8rem;
            }
        }
        td {
            border-bottom: none;
            line-height: v-space(2);
        }
    }
    &__pagination {
        margin: 0;
        padding-top: v-space(2);
        padding-bottom: v-space(2);
        padding-right: v-space(4);
        border-left: $border-idle;
        border-right: $border-idle;
        border-bottom: $border-idle;
    }

    &__id {
        width: 32rem;
    }

    &__icon {
        height: auto;
        width: 1.4rem;
        margin-left: v-space(1);
        color: $success-color;
    }
    &__tooltip {
        width: h-space(3);
        max-width: h-space(3);
    }

    &__avatar {
        & > div {
            width: 4.8rem;
        }

        &--placeholder {
            width: 4.8rem;
            height: 4.8rem;
            border-radius: 50%;
            background-color: $grey-92;
        }
    }
}

tr.c-portfolio-rationale-log__row--active {
    background-color: lighten($seafoam, 45%);
    border: $border-active;
}
td.c-portfolio-rationale-log__summary {
    @extend %body-text-xs;
    font-weight: $font-weight-bold;
    margin: 0;
    line-height: v-space(2);
    width: v-space(42);
    &--isClickable {
        cursor: pointer;
    }
}
td.c-portfolio-rationale-log__strategy {
    &--isTruncated {
        & > span > span {
            width: v-space(19);
        }
    }
}
