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

#content {
    .orderFilter {
        display: inline-flex;
        height: 90px;

        h5 {
            color: $green;
            font-size: 1.8rem;
            @include boldFont();
            // line-height: 90px;
            position: relative;
            @include ver-center();
            height: fit-content;
            display: table;
        }

        .img-wrapper {
            line-height: 90px;
            position: relative;
            margin-left: 25px;

            &::after {
                content: " ";
                position: absolute;
                width: 1px;
                height: 40px;
                right: -100%;
                top: 25%;
                background: $gray;
            }

            .dropdown-menu {
                border-radius: 15px;
                line-height: 2;

                a {
                    font-size: 1.6rem;
                    border-radius: 15px;

                    &:hover {
                        background: $green;
                        color: #fff;
                    }
                }
            }
        }
    }

    .ordersTable {
        table {
            tr {
                height: 90px;

                td {
                    position: relative;
                    vertical-align: middle;
                    &::after {
                        content: " ";
                        position: absolute;
                        right: 0;
                        top: 23px;
                        width: 1px;
                        height: 45px;
                        background: $gray;
                    }
                    &:nth-child(1) {
                        .img-wrapper {
                            text-align: center;
                            img {
                                height: 45px;
                                width: 45px;
                            }
                        }
                    }
                    &:last-child {
                        text-align: center;
                        &::after {
                            width: 0;
                        }
                    }
                    &:nth-child(3) {
                        p {
                            color: $green;
                        }
                    }
                    &:nth-child(4) {
                        form {
                            i {
                                &.ci-trash {
                                    &::before {
                                        height: 30px;
                                        width: 30px;
                                        top: -15px;
                                        left: 20px;
                                    }
                                }
                            }
                        }
                    }
                    &.nameOfStore {
                        position: relative;

                        a {
                            display: none;
                            position: absolute;
                            right: 5%;
                            top: 40%;
                            @include ver-center();

                            i {
                                font-size: 1.5rem;
                            }
                        }

                        &:hover {
                            a {
                                display: block;
                            }
                        }
                    }

                    p {
                        font-size: 1.8rem;
                        @include boldFont();
                        color: $black;
                        vertical-align: middle;
                        // border-right: 1px solid $gray;
                        margin: 0;
                    }

                    span {
                        font-size: inherit;
                    }

                    &.personName {
                        position: relative;

                        ul {
                            position: absolute;
                            right: 10%;
                            top: 65%;
                            display: none;

                            li {
                                i {
                                    font-size: 1.4rem;
                                }
                            }
                        }

                        &:hover {
                            ul {
                                display: block;
                            }
                        }
                    }

                    &.storeAddress {
                        p {
                            font-size: 1.4rem;
                            @include regularFont();
                        }
                    }

                    &.orderToolbar {
                        ul {
                            margin-bottom: 0;
                            li:nth-child(1) {
                                margin-right: 20px;
                            }

                            li {
                                img {
                                    cursor: pointer;
                                }
                            }
                        }

                        .disabled {
                            opacity: 0.4;
                        }
                    }

                    &.showOrder {
                        ul {
                            border-left: 1px solid $gray;
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 1175px) {
    #content {
        .ordersTable {
            table {
                tr {
                    td {
                        text-align: center;
                        &:nth-child(3) {
                            p {
                                font-size: 1.5rem;
                            }
                            a {
                                right: 5%;
                                top: 65%;
                            }
                        }

                        &.orderToolbar {
                            ul {
                                li {
                                    img {
                                        width: 25px;
                                        height: 25px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 1126px) {
    #content {
        .ordersTable {
            table {
                tr {
                    td {
                        p {
                            font-size: 1.4rem !important;
                        }
                        &.orderToolbar {
                            ul {
                                margin-bottom: 0;
                                li {
                                    img {
                                        width: 20px;
                                        height: 20px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 1024px) {
    #content {
        .orderFilter,
        .ordersTable {
            padding-left: 0;
            padding-right: 0;
        }
    }
}
