@import "../helpers/colors.scss";

#content {
    &.gruppiProfile {
        .storeInfo {
            .storeName {
                @include ver-center();
                position: relative;

                &::before {
                    content: " ";
                    position: absolute;
                    background: url("../../img/icons/people.svg");
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: center center;
                    width: 40px;
                    height: 40px;
                    left: -50px;
                    top: -5px;
                }
            }
        }
        table {
            // margin-top: 35px;

            tr {
                td {
                    vertical-align: middle;
                    border-top: none;
                    border-bottom: 1px solid $gray;
                    color: $black;
                    padding: 0px 0.75rem;

                    &::after {
                        content: " ";
                        position: absolute;
                        width: 1px;
                        height: 40px;
                        background: #676767;
                        // top: 50%;
                        right: 0;
                        // transform: translate(0, -50%);
                        // @include ver-center();
                    }
                    &:nth-child(1) {
                        width: 5%;
                    }
                    &:nth-child(2) {
                        color: $black;
                        font-size: 1.8rem;
                        @include boldFont();
                        width: 20%;
                        position: relative;
                    }

                    &:nth-child(3) {
                        text-align: center;
                        position: relative;
                        width: 10%;

                        font-size: 1.8rem;
                        @include boldFont();
                        color: #2b2b2b;
                        vertical-align: middle;
                        margin: 0;

                        span {
                            font-size: 1.8rem;
                            @include boldFont();
                        }
                    }

                    &:nth-child(4) {
                        // text-align: center;
                        font-size: 1.8rem;
                        position: relative;
                        width: 40%;
                        p {
                            font-size: 1.8rem;
                            @include boldFont();
                            color: $green;
                            vertical-align: middle;
                            margin: 0;
                        }
                        span {
                            font-size: 2rem;
                            @include boldFont();
                        }
                    }

                    &:nth-child(5) {
                        width: 10%;
                        position: relative;
                        vertical-align: middle;
                        form {
                            position: relative;

                            transform: translate(-50%, 0);
                            @include hor-center();
                        }
                        button {
                            position: relative;
                            left: 50%;
                            transform: translate(-50%, 0);
                            @include hor-center();
                            i {
                                position: absolute;
                                left: 50%;
                                top: 50%;
                                &::before {
                                    height: 30px;
                                    width: 30px;
                                    top: 50%;
                                    right: 50%;
                                    left: 0;
                                    transform: translate(-50%, -50%);
                                }
                            }
                        }

                        i {
                            &::before {
                                height: 30px;
                                width: 30px;
                                top: -15px;
                                left: 20px;
                            }
                        }
                    }

                    &:nth-child(6) {
                        position: relative;
                        width: 10%;

                        i {
                            &::before {
                                height: 30px;
                                width: 30px;
                                top: -15px;
                                left: 45px;
                            }
                        }

                        &::after {
                            width: 0;
                        }
                    }
                }
            }
        }
    }
    .gruppiToolbar {
        margin: 35px 0;

        li {
            margin-bottom: 1.5rem;

            .btnsTitle {
                color: $lightGreen;
                font-size: 2rem;
                @include boldFont();
            }

            button {
                border: 1px solid $lightGray;
                @include borderRadius(10px);
                background: none;
                box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
                padding: 10px 30px;

                i,
                .btnText {
                    display: inline;
                }

                .btnText {
                    margin: 0 0 0 30px;
                    font-size: 1.8rem;
                    @include boldFont();
                    color: $black;
                }

                i {
                    position: absolute;
                }

                &:focus {
                    outline: none;
                }

                &:hover {
                    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
                }
            }

            &:last-child {
                border-left: 1px solid $black;
                padding-left: 25px;
                margin-left: 25px;
                cursor: pointer;
                &:hover {
                    opacity: 0.8;
                }
                p {
                    font-size: 2rem;
                    color: $lightGreen;
                    @include boldFont();
                    position: relative;
                    margin-left: 40px;

                    i {
                        position: absolute;
                        top: 0;
                        left: -40px;

                        &::before {
                            width: 27px;
                            height: 27px;
                        }
                    }
                }
            }
        }
    }
    .addUser {
        a {
            line-height: 90px;
            color: $lightGreen;
            font-size: 2rem;
            @include boldFont();
            position: relative;
            &:hover {
                opacity: 0.8;
            }

            &::before {
                content: " ";
                position: absolute;
                width: 1px;
                height: 30px;
                background: $gray;
                top: 0;
                left: -60px;
            }

            i {
                position: absolute;
                top: 0;
                left: -35px;

                &::before {
                    height: 25px;
                    width: 25px;
                }
            }
        }
    }
}
@media (max-width: 1440px) {
    #content {
        &.gruppiProfile {
            .gruppiData {
                table {
                    tr {
                        td {
                            &::after {
                                right: 5px;
                            }
                            &:nth-child(1) {
                                font-size: 2rem;
                            }
                            &:nth-child(4) {
                                i {
                                    &::before {
                                        left: 35px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .gruppiToolbar {
            li {
                margin-bottom: 1.5rem;
                &:last-child {
                    p {
                        font-size: 1.8rem;
                    }
                }
                .btnsTitle {
                    font-size: 1.8rem;
                }
                button {
                    padding: 10px 15px;
                    .btnText {
                        font-size: 1.5rem;
                    }
                    i {
                        &::before {
                            height: 20px;
                            width: 20px;
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 1024px) {
    #content {
        &.gruppiProfile {
            table {
                tr {
                    td {
                        &:nth-child(1),
                        &:nth-child(2) span,
                        &:nth-child(3) span {
                            font-size: 1.6rem;
                        }
                        &:nth-child(3) {
                            padding-left: 10px;
                        }
                        &::after {
                            right: 0;
                        }
                        &:nth-child(4) i::before,
                        &:nth-child(5) i::before {
                            left: 25px;
                        }
                    }
                }
            }
        }
    }
}
