// (C) 2007-2025 GoodData Corporation
@use "typo-mixins";
@use "variables";

.gd-tabs {
    display: flex;
    border-bottom: 1px solid variables.$gd-border-color;

    &.small .gd-tab {
        padding: 3px 6px;
        line-height: 14px;
        margin-right: 14px;
        font-size: 12px;
    }
}

.gd-tab {
    display: flex;
    flex: 0 1 auto;
    align-items: flex-end;
    margin: 0 20px -1px 0;
    padding: 3px 0;
    @include typo-mixins.gd-font-base;

    line-height: 16px;
    color: variables.$gd-color-link;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    text-align: center;

    &:hover {
        color: var(--gd-palette-complementary-8-from-theme, variables.$is-focused-color);
        border-bottom: 3px solid variables.$gd-border-color;
    }

    &.is-active {
        color: variables.$is-focused-color;
        border-bottom: 3px solid variables.$gd-palette-primary-base;
        font-weight: 700;
    }

    &:hover,
    &.is-active {
        text-decoration: none;
    }

    span {
        overflow: hidden;
    }
}
