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

#content {
    h4.sectionTitle {
        color: $green;
        font-size: 2rem;
        @include boldFont();
        text-transform: uppercase;
        line-height: 90px;
    }

    .breadcrumbs {
        margin-top: 20px;
        margin-bottom: 40px;

        ul {
            li {
                text-transform: uppercase;
                position: relative;
                margin-right: 20px;

                p {
                    @include boldFont();
                    color: #000;
                    font-size: 2rem;

                    &.currentClient {
                        text-transform: uppercase;
                        color: $green;
                    }
                }

                &::after {
                    content: "/";
                    position: absolute;
                    right: -15px;
                    top: 0;
                    font-size: 2rem;
                    font-weight: bolder;
                }

                &:last-child {
                    &::after {
                        content: " ";
                    }
                }
            }
        }
    }

    .storeInfo {
        .img-wrapper.admin {
            height: 100%;

            img {
                width: 20px;
                position: absolute;
                top: 50%;
                -ms-transform: translateY(-50%);
                transform: translateY(-50%);
            }
        }

        h4 {
            font-size: 3rem;
            text-transform: uppercase;
            color: $green;
            @include boldFont();
        }

        .storeId,
        .storeAddress {
            font-size: 1.8rem;
            @include boldFont();
            display: inline-block;
        }

        .storeId {
            margin-right: 40px;
            position: relative;

            &::after {
                content: " | ";
                position: absolute;
                color: $black;
                right: -20px;
            }
        }

        .storeBonus {
            padding: 0;
            h6 {
                font-size: 2rem;
                color: $black;
                text-transform: uppercase;
            }

            h5 {
                color: #fff;
                font-size: 1.8rem;
                @include boldFont();
                background: $green;
                border-radius: 20px;
                padding: 5px 0;
                width: 100px;
                text-align: center;
                margin: 0 auto;
            }

            position: relative;

            &::after {
                content: " ";
                position: absolute;
                top: 0;
                right: -15px;
                height: 80px;
                width: 1px;
                background: #676767;
            }

            &::before {
                content: " ";
                position: absolute;
                top: 0;
                left: -15px;
                height: 80px;
                width: 1px;
                background: #676767;
            }
        }

        .storeEmployees {
            li {
                .img-wrapper {
                    width: 45px;

                    img {
                        width: 100%;
                        height: 45px;
                    }
                }

                p {
                    font-size: 1.8rem;
                    margin: 0;

                    &.userRole {
                        font-size: 2rem;
                        line-height: 100px;
                    }

                    &.adminName {
                        margin-right: 80px;
                        position: relative;

                        &::after {
                            content: " ";
                            position: absolute;
                            width: 1px;
                            height: 25px;
                            background: #676767;
                            right: -40px;
                            @include ver-center();
                        }
                    }

                    &.adminName,
                    &.colaboratorName {
                        @include boldFont();
                    }

                    &.colaborators {
                        margin-right: 25px;
                    }
                }
            }
        }
    }

    .storeOrderHistory {
        h5 {
            color: $green;
            font-size: 2rem;
            @include boldFont();
            text-transform: uppercase;
        }

        table {
            th {
                color: $black;
                font-size: 2rem;
            }

            th,
            td {
                height: 85px;
                vertical-align: middle;
                &.fw-light {
                    font-family: "IstokWeb", sans-serif !important;
                    font-weight: 400 !important;
                }
            }

            td {
                font-size: 1.8rem;
                @include regularFont();
                border-right: 0;
                &.hidden {
                    display: none;
                }
                p {
                    &.euroBonus {
                        background: $green;
                        text-align: center;
                        color: #fff;
                        @include boldFont();
                        font-size: 2.1rem;
                        @include borderRadius(20px);
                        line-height: 30px;
                        margin: 0.75rem auto;
                        width: 80%;
                        &.red {
                            background: red;
                        }
                    }
                }

                &.more {
                    text-align: center;
                    position: relative;
                    &::before {
                        content: " ";
                        position: absolute;
                        width: 1px;
                        height: 40px;
                        background: #676767;
                        left: 20%;
                        top: 30%;
                    }
                    a > img {
                        transition: 0.5s;
                    }
                    a[aria-expanded="true"] > img {
                        transform: rotate(90deg);
                        transition: 0.5s;
                    }
                }
                &.orderOpened {
                    background: #f8f9fa;
                    tr {
                        td {
                            border: none;
                        }
                    }
                }
            }
        }
    }

    .promos {
        .sectionTitleWrapper {
            margin-bottom: 50px;
        }

        .promoCard {
            border: 1px solid $lightGray;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
            @include borderRadius(20px);
            margin: 0 auto;
            width: 90%;
            padding: 35px 95px;
            position: relative;
            overflow: hidden;

            .removePromo {
                position: absolute;
                top: 0;
                right: 0;
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 0 70px 70px 0;
                border-color: transparent #e0e0e0 transparent transparent;

                .img-wrapper {
                    width: 20px;
                    height: 20px;
                    position: absolute;
                    top: 10px;
                    left: 40px;

                    img {
                        width: 100%;
                        cursor: pointer;

                        &:hover {
                            opacity: 0.7;
                        }
                    }
                }
            }

            .img-wrapper {
                width: 40px;
                height: 40px;
                margin: 0 auto 30px auto;

                img {
                    width: 100%;
                    height: auto;
                }
            }

            p {
                color: $green;
                margin-bottom: 0;
                @include boldFont();
                font-size: 2rem;

                &.promoName {
                    margin-bottom: 20px;
                }
            }

            a {
                background: $green;
                @include borderRadius(20px);
                color: #fff;
                font-size: 1.3rem;
                @include boldFont();
                padding: 5px 25px;
            }
        }
    }
}

@media (max-width: 1440px) {
    #content {
        .storeInfo {
            h4 {
                font-size: 2.3rem;
            }
        }
    }
}

@media (max-width: 1024px) {
    #content {
        .storeInfo {
            .storeBonus {
                h5 {
                    width: 75px;
                }
            }
            h4 {
                font-size: 2.3rem;
            }
            .storeId,
            .storeAddress {
                font-size: 1.5rem;
            }
            .storeEmployees {
                li {
                    p {
                        font-size: 1.5rem;
                        &.adminName {
                            margin-right: 40px;
                            &::after {
                                right: -25px;
                            }
                        }
                    }
                }
            }
        }
        .promos {
            margin: 50px 0;
            .promoCard {
                padding: 20px;
                .img-wrapper {
                    width: 30px;
                    height: 30px;
                    margin: 0 auto 20px auto;
                }
            }
            p {
                font-size: 1.6rem;
            }
        }
        .storeOrderHistory {
            table {
                th {
                    font-size: 1.6rem;
                    text-transform: uppercase;
                }
                td {
                    font-size: 1.8rem;
                    p.euroBonus {
                        font-size: 1.8rem;
                    }
                }
            }
        }
    }
}
.order-details {
    background-color: rgba(0, 0, 0, 0.075);

    // .table {
    //   td, th {
    //     &:first-child {
    //       border-right: 1px solid #dee2e6;
    //     }
    //   }
    // }
    .bordered-childs {
        &:hover {
            background: none;
        }
        tr {
            tr {
                &:hover {
                    background: none;
                }
            }
        }
        table {
            border: none;
            thead {
                tr {
                    th {
                        border: none;
                    }
                }
            }
        }
        .col-6 {
            &:first-of-type {
                border-right: 2px solid #fff;
            }
        }
        td {
            border: none;
        }
        & > * {
            &:not(:last-child) {
                // border-right: 1px solid #dee2e6;
            }
        }
    }
    .lenses-data {
        th {
            &:hover {
                background: white !important;
            }
        }
        th,
        td {
            height: unset !important;
        }

        td {
            font-size: 1.5rem !important;
            &:first-child {
                @include boldFont();
            }
        }
    }
}
.table {
    tr {
        &.bg-light {
            &:hover {
                background: inherit !important;
            }
        }
    }
}
