/*
Tabs

These are default styles for tab headers.

<strong>Accessiblity note:</strong> Tabs should use <a href="https://www.w3.org/TR/wai-aria-1.1/#tablist" target="_blank">roles (tablist, tab & tabpanel)</a>, as well as the <a href="https://www.w3.org/TR/wai-aria-1.1/#aria-selected" target="_blank">aria-selected</a> property on tablist elements and the <a href="https://www.w3.org/TR/wai-aria-1.1/#aria-expanded" target="_blank">aria-expanded</a> property on tabpanel elements.

Markup:
<div style="background: #F4F4F4; padding: 25px 0;">
    <nav class="tab-navigation" style="border:0;">
        <ul role="tablist" style="margin:0;">
            <li class="tab-navigation__tab-button" role="tab" tabindex="0" aria-selected="false">
                <div class="tab-navigation__tab-link">Unselected Tab</div>
            </li>
            <li class="tab-navigation__tab-button tab-navigation__tab-button--selected" role="tab" tabindex="0" aria-selected="true">
                    <div class="tab-navigation__tab-link">Selected Tab</div>
            </li>
            <li class="tab-navigation__tab-button" role="tab" tabindex="0" aria-selected="false">
                <div class="tab-navigation__tab-link">Unselected Tab</div>
            </li>
        </ul>
    </nav>
    <div class="tab-navigation__tab-content" role="tabpanel" aria-expanded="true"
    style="height: 80px;">
    </div>
</div>

Name: tabs

Styleguide 2.4
*/
@color-selected-tab-text: @theme-green1;

.tab-navigation {
    display: block;
}

.tab-navigation__tab-button {
    text-transform: uppercase;
    color: @color-tab-header;
    font-size: @font-size-tab-header;
    font-weight: @font-weight-tab-header;
    letter-spacing: @letter-spacing-tab-headers;
    display: inline-block;
    position: relative;
    margin-top: 1px;
    padding: 5px 35px;
    margin-right: 5px;
    line-height: 25px;
    text-align: center;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom: 0px;

    &:first-child {
        margin-left: 20px;
    }

    &.disabled {
        cursor: not-allowed;

        a:hover, .tab-navigation__tab-link {
            color: @color-tab-header;
            cursor: not-allowed;
            pointer-events: none;
        }
    }
}

.tab-navigation__tab-button:before {
    content: "";
    background: #FFFFFF;
    position: absolute;
    top: -5%;
    bottom: 0.5px;
    left: 1px;
    right: 1px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    transform: perspective(50px) translateZ(-2px) rotateX(6deg);
}

.tab-navigation__tab-button--selected  {
    bottom: -0.5px;
}

.tab-navigation__tab-link {
    position: inherit;
    color: @color-tab-header;
    font-size: @font-size-tab-header;
    .text-semibold;
    text-decoration: none;
    cursor: pointer;
}

.tab-navigation__tab-link:active,
.tab-navigation__tab-link:hover,
.tab-navigation__tab-link:focus {
    color: @color-global-nav-link;
    opacity: 0.5;
    text-decoration: underline;
    cursor: pointer;
}

.tab-navigation__tab-button--selected {
    background-image: none;
    color: @color-selected-tab-text;
    z-index: @z-index-selected-tab;

    .tab-navigation__tab-link {
        color: @color-selected-tab-text;
        cursor: default;
        opacity: 1;
        text-decoration: none;
    }
}

.tab-navigation__tab-button--selected:before {
  content: "";
  position: absolute;
  bottom: 3%;
  margin-top: -2px;
  margin-bottom: -2.5px;
  z-index: @z-index-hidden;
  border: 1px solid @color-border-tabs;
  border-bottom-color: #FFFFFF;
  box-shadow: 0 -2px 5px 0 rgba(0,0,0,0.03);
}

.tab-navigation__tab-content {
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid @color-border-tabs;
    border-radius: @border-radius-default;
    box-shadow: @full-page-content-box-shadow;
}

.tab-content__event-container {
    padding: 0 0 5px 15px;
    text-align: right;
}

.refresh-tab-pattern {
    background-color: #FFFFFF;

    .global-nav {
        border: solid 1px @theme-grey10;
    }

    .row > .tab-navigation > ul {
        margin-left: 15px;
        margin-right: 15px;
    }

    .tab-navigation > ul {
        border-bottom: solid 1px @theme-grey10;
    }

    .tab-navigation__tab-button {
        color: @theme-grey12;
        margin: 0 20px;
        text-transform: none;
        letter-spacing: normal;
        display: inline-block;
        text-align: center;
        position: relative;
        padding: 0 0 6px;

        &:first-child {
            margin-left: 0;
        }

        &:before {
            content: none;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            border-top-right-radius: initial;
            border-top-left-radius: initial;
            transform: none;
        }

        .tab-navigation__tab-link {
            font-size: @font-size-base;
            font-weight: @font-weight-semibold;
            color: @theme-grey12;

            &:hover {
                opacity: 1;
                color: @theme-grey9;
                text-decoration: none;
                cursor: pointer;
            }
        }
    }

    .tab-navigation__tab-button--selected {
        border-bottom: 3px solid @theme-green1;

        &:before {
            content: none;
            bottom: 0;
            margin-top: 0;
            margin-bottom: 0;
            z-index: 0;
            border: none;
            box-shadow: none;
        }

        .tab-navigation__tab-link {
            color: @theme-grey9;
        }
    }

    .tab-navigation__tab-content {
        margin-left: -20px;
        margin-right: -20px;
        border: none;
        box-shadow: none;
        display: block;
    }

    .communication-activity-main .tab-navigation__tab-content {
        padding: 20px;
    }

    .communication-activity-main .data-grid-filters__facets-container {
        padding: 15px 0 0 0px;
    }

    .secondary-tab-nav {
        margin: 0 0 15px;
        display: inline-block;
    }

    .secondary-tab-nav__tab {
        margin-left: 40px;

        &:first-child {
            margin-left: 0;
        }

        .secondary-tab-nav__link {
            color: @theme-grey12;
            font-size: @font-size--12;
            line-height: 14px;
            font-weight: @font-weight-semibold;

            &:hover {
                opacity: 1;
                color: @theme-grey9;
                text-decoration: none;
            }
        }
    }

    .secondary-tab-nav__tab--selected {
        border-bottom: 2px solid @theme-green1;

        .secondary-tab-nav__link {
            color: @theme-grey9;
        }
    }
}
