@import "/./src/assets/scss/variables.scss";
@import "/./src/assets/scss/mixins.scss";
@import "/./src/assets/scss/fonts.scss";

.mat-tab-header {
    &.mat-tab-nav-bar {
        border: none;
        margin-top: 0px;
        .ng-main & {
            margin-top: 0;
        }
    }

    .ng-main & {
        overflow: visible;
    }

    .mat-tab-link-container {
        overflow: visible;
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links:not(.nav-tabs-main) {
    width: 100%;
    background: $white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;

    // .mat-tab-links {
    //     margin: 0;
    //     padding: 0 27px;
    // }

    .mat-tab-link {
        padding: 16px 33px;
        margin-right: 30px;
        line-height: 16px;
        text-transform: capitalize;

        &:before {
            display: none;
        }

        &:hover {
            background: $white;
            border-radius: 5px;
            -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
            -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
            box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
        }

        &.active-link-tab {
            @include font-style($nominee-medium,16px,16px,normal);
            color: $green;
            background: $white-2;
            border-radius: 5px;
            box-shadow: 0px 3px 6px 0px rgba($black, 0.1);
        }
    }
}

.nav-tabs-main {
    display: flex;
    align-items: center;
    padding-bottom: 2px;
    text-transform: capitalize;
}

.mat-tab-links {
    flex-wrap: wrap;
    margin-left: 27px;
    margin-right: 27px;
    app-home-projects &, app-home-operations &, app-home-depots &,
    app-home-prospects &, app-home-opportunite &, app-home-cotations &,
    app-home-comptes &, app-home-contacts &, app-previsions &, app-reportings-agile & {
        margin: 0;
        padding: 0 27px;
    }

    .mat-tab-link {
        opacity: 1;
        min-width: auto;
        padding: 0 20px;
        overflow: visible;
        @include font-style($nominee-regular,16px,48px,normal);
        color: $green;
        height: auto;
        margin-right: 10px;
        border-radius: 5px;
        app-home-projects &, app-home-operations &, app-home-depots &,
        app-home-prospects &, app-home-opportunite &, app-home-cotations &, 
        app-home-comptes &, app-home-contacts & {
            padding: 16px 33px;
            margin-right: 30px;
            line-height: 16px;
        }

        .mat-ripple-element {
            display: none;
        }

        &:before {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            height: 3px;
            width: 100%;
            background: $green;
            transform: scaleX(0);
            transform-origin: bottom center;
            z-index: 0;
            transition: transform 250ms ease-in-out;

            // app-home-projects &, app-home-operations &, app-home-depots &,
            // app-home-prospects &, app-home-opportunite &, app-home-cotations & {
            //     display: none;
            // }
        }

        &:hover {
            color: $green;
            // app-home-projects &, app-home-operations &, app-home-depots &,
            // app-home-prospects &, app-home-opportunite &, app-home-cotations & { 
            //     background: $white;
            //     border-radius: 5px;
            //     -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
            //     -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
            //     box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
            // }

            &:before {
                transform: scaleX(1);
            }
        }

        &:focus {
            outline: none;
        }

        &.active-link-tab {
            color: $white;
            background: $green;
            &:before {
                display: none;
            }
        }

        // &.active-link-tab {
        //     app-home-projects &, app-home-operations &, app-home-depots &,
        //     app-home-prospects &, app-home-opportunite &, app-home-cotations &,
        //     app-home-comptes &, app-home-contacts & {
        //         @include font-style($nominee-medium,16px,16px,normal);
        //         color: $green;
        //         background: $white-2;
        //         border-radius: 5px;
        //         box-shadow: 0px 3px 6px 0px rgba($black, 0.1);
        //     }
        // }
    }
}

.flex-direction-column {
    flex-direction: column;
}

.nav-tabs-main {
    padding-bottom: 0;

    .mat-tab-link {
        font-size: 18px;
        background: none;
        border-radius: 0;
        border-bottom: 3px solid transparent;
        color: $blue;

        &.active-link-tab {
            background: none;
            font-family: $nominee-bold;
            border-bottom: 3px solid $green;
            color: $green;
        }
    }
}
@media (max-width: 767px) {
    app-home-projects .mat-tab-links{
        padding: 0px 5px !important;
    }
}