@import "../variables/colors";
@import "../variables/dimensions";
@import '~bootstrap-sass/assets/stylesheets/bootstrap/variables';
@import '~bootstrap-sass/assets/stylesheets/bootstrap/mixins';

.nav-tabs {
    $font-size-large: $font-size-base + 1;
    @include clearfix();
    border-bottom: 1px solid $nav-tabs-border-color;
    padding: 0 $panel-body-padding;
    margin-bottom: -1px;

    &.rc-nav-preserveBottomBorder {
      margin-bottom: 0;
    }

    &.rc-nav-noBorder {
        border: 0;
    }

    &.rc-nav-centered {
        padding: 0;
        text-align: center;
        li {
            margin-right: $default-padding;
        }
    }

    &.rc-nav-noHorizontalPadding {
        padding: 0;
    }

    &.rc-nav-fullWidthBorder {
        position: relative;
        $borderWidth: 1px;
        &:before, &::before {
            right: 0;
            bottom: 0;
            content: "";
            width: 100%;
            position: absolute;
            margin-right: -100%;
            margin-bottom: -$borderWidth;
            border-bottom: $borderWidth solid $nav-tabs-border-color;
        }
        &:after, &::after {
            left: 0;
            bottom: 0;
            content: "";
            width: 100%;
            position: absolute;
            margin-left: -100%;
            margin-bottom: -$borderWidth;
            border-bottom: $borderWidth solid $nav-tabs-border-color;
        }
    }

    &.rc-nav-clearRightPadding {
        padding-right: 0;
        & > li:last-child a {
            padding-right: 0;
        }
    }

    &.rc-nav-clearLeftPadding {
        padding-left: 0;
        & > li:first-child a {
            padding-left: 0;
        }
    }

    &.rc-nav-clearLeftWrapperPadding {
        padding-left: 0;
    }

    &.rc-nav-clearRightWrapperPadding {
        padding-right: 0;
    }

    &.rc-nav-topMenu {
        li {
            a {
                margin-left: $topMenuPadding;
                margin-right: $topMenuPadding;
                color: $blackColor;
                cursor: pointer !important;
                font-size: $font-size-large;
                .rc-icon {
                    margin-right: 0;
                    margin-left: $padding-base-horizontal;
                }
            }
            li a {
                font-size: $font-size-base;
            }
            &.open, &.active, &:hover {
                & > a {
                    background: transparent;
                    color: $menuOtherColorHover;
                }
            }
        }
        #quick-action-icons {
            height: 62px;
            .rc-icon {
                margin-right: 0;
            }
            button {
                border: 0 none;
                font-size: 16px;
                text-decoration: none;
                padding: $default-padding $padding-base-horizontal
                0 $padding-base-horizontal * 2;
                color: $blackColor !important;
                &:hover {
                    color: $link-hover-color !important;
                }
                &:last-child {
                    padding-right: 0;
                }
            }
        }

    }

    > li {
        &:last-child {
            margin-right: 0;
        }
        background: transparent;
        margin-right: $default-padding;
        float: none;
        display: inline-block;

        &:last-of-type {
            margin-right: 0;
        }

        > a {
            border: none;
            background: transparent;
            margin-left: $nav-left-space;
            margin-right: $nav-right-space;
            padding-left: $nav-left-padding;
            padding-right: $nav-right-padding;
            color: $nav-tabs-link-color;
            &:hover {
                color: $nav-tabs-link-hover-color;
            }
            &:focus {
                background: transparent;
                border: none;
            }

            .rc-icon {
                margin-right: 2px;
            }

            strong {
                margin-right: 7px;
            }
        }

        &.active > a {
            color: $nav-tabs-link-active-color;
            &:hover {
                color: $nav-tabs-link-hover-color;
            }
        }

        &.active {
            a,
            a:hover,
            a:focus {
                background: transparent;
                border: none;
                border-bottom: 2px solid $component-active-bg;
            }
            color: $nav-tabs-link-active-color;
            .dropdown-menu li a {
                border: none;
            }
        }

        &.success > a {
            &:hover {
                color: $nav-tabs-link-hover-color;
            }
        }

        &.success {
            * {
                color: $brand-success !important;
            }
        }


    }
}
