﻿.sidebar {
    position: relative;
    min-height: 100vh;
    background-color: var(--lightGray);

    .logo-box {
        position: relative;
        width: 100%;
        height: 74px;
        padding: 1rem;
        background-color: var(--CustomColor7);
        border-bottom-left-radius: 0.8rem;

        .logo {
            svg {
                display: block;
                width: 3rem;
                max-width: 100%;
                fill: #fff;
            }
        }


    }

    .form-check {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .btn {
        background-color: var(--accent-color);
        border: none;
        color: #fff;
        padding: 0.5rem;
        border-radius: 5px;
    }


    .card-header {
        display: block;
        margin-bottom: 1rem;
    }

    #categories {
        .ui-fancytree {
            background-color: transparent;
            border: none;
            padding: 0;
            margin: 0;

            li {
                margin-bottom: 1rem;
            }

            ul {
                padding-top: 0;

                li {
                    padding: 0.3rem;
                }
            }
        }

        .fancytree-expander {
            margin: 0 0.5rem;
        }

        .fancytree-icon {
            display: none;
        }

        .fancytree-title {
            font-size: 1rem;
        }
    }

    .card {
        border-bottom: solid 1px rgba(112, 112, 112, 0.5);
        padding-bottom: 1rem;
    }

    .accordion-panel {
        border-bottom: none;
        margin-bottom: 1rem;
        border-bottom: solid 1px rgba(112, 112, 112, 0.5);
        padding-bottom: 1rem;

        .acc-head {
            padding: 0;

            .icon {
                display: flex;
                position: relative;
                align-items: center;
                justify-content: center;
                width: 28px;
                height: 28px;
                border-radius: 50%;
                margin-right: 0.8rem;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                -ms-border-radius: 50%;
                -o-border-radius: 50%;
                background-color: #fff;

                svg {
                    width: 8px;
                    stroke: #939393;
                    transform: rotate(-90deg);
                }
            }

            .title {
                font-size: 1rem;
            }
        }

        .acc-body {
            padding: 1rem 0.3rem;
            font-size: 1rem;
        }

        &.open {
            .acc-head {
                .icon {
                    svg {
                        transform: rotate(90deg);
                        -webkit-transform: rotate(90deg);
                        -moz-transform: rotate(90deg);
                        -ms-transform: rotate(90deg);
                        -o-transform: rotate(90deg);
                    }
                }
            }
        }
    }

    input {
        max-width: 100%;
    }

    select,
    input.form-control,
    .price-filter input,
    textarea {
        width: 100%;
        border: solid 1px var(--CustomColor5);
        outline: none;
        padding: 0.5rem;
        box-shadow: none;
        background-color: #fff;
    }

    .price-ranges-info {
        input {
            border: none;
        }
    }

    .irs--round {
        transform: translateY(-1rem);
    }

    #filterprice {
        background-color: var(--accent-color);
        color: #fff;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
    }
}

.content-holder {
    background: url(/Portals/0/Images/chart-bg.svg) repeat-x top left;
    min-height: 100vh;
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 1rem;
    width: auto;
    z-index: 1;

    span {
        font-size: 1rem;
        color: var(--button-color);
    }

    svg {
        stroke: var(--button-color);
        width: 1.2rem;
        height: 1.2rem;
    }
}

#chartjs-tooltip {

    position: absolute;
    min-width: 240px;
    width: 240px;
    background-color: var(--lightGray);
    padding: 4px;
    border-radius: 0.8rem;
    -webkit-border-radius: 0.8rem;
    -moz-border-radius: 0.8rem;
    -ms-border-radius: 0.8rem;
    -o-border-radius: 0.8rem;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;

    .rate,
    .comment {
        font-size: 0.8rem;

        svg {
            width: 9px;
            height: 9px;
            fill: var(--accent-color3);
        }
    }

    .comment {
        svg {
            fill: var(--CustomColor6);
        }
    }

    .tooltip-title {
        font-size: 0.8rem;
    }

    .img-box {
        width: 68px;
        height: 68px;
        min-width: 68px;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .discount {
        width: 25px;
        height: 25px;
        background-color: var(--CustomColor4);
        border-radius: 50%;
        font-size: 0.8rem;
        padding-top: 2px;
        color: #fff;
    }

    .price-box {
        background-color: #E8E8E8;

        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        padding: 4px;
        margin-top: 12px;

        .price {
            strong {
                padding-right: 0.5rem;
                font-size: 0.8rem;
            }

            strike {
                font-size: 0.8rem;
                opacity: 0.5;
            }
        }
    }

    .btn-box {
        margin-top: 4px;

        .btn {
            width: 50%;
            min-height: 25px;
            border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -ms-border-radius: 5px;
            -o-border-radius: 5px;
            color: #fff;
            font-size: 0.8rem;


            &.addtocompare {
                background: var(--CustomColor9);
            }

            &.details-btn {
                background: var(--accent-color);
            }
        }
    }
}

.toggle-filter {
    background: var(--accent-color);
    padding: 0.4rem;
    border-radius: 0.4rem;
    margin-left: 1rem;

    span {
        color: var(--White);
    }

    svg {
        display: block;
        stroke: var(--White);
        width: 1.8rem;
        height: 1.8rem;
    }
}

#productlistholder {
    margin: 0 1rem;



    .list-item {
        border-radius: 0.8rem;
        border: 1px solid var(--lightGray);
        background: var(--White);

        .name {
            color: var(--Black);
        }

        .discount {
            width: 1.8rem;
            height: 1.8rem;
            background-color: var(--accent-color2);
            border-radius: 50%;
            font-size: 0.8rem;
            color: #fff;
            font-family: 'Arial';
        }
    }
}

@media(max-width: 960px) {
    .chart-page {
        background: var(--lightGray);
    }

    .back-link {
        position: absolute;

        svg {
            stroke: var(--White);
        }
    }

    .sidebar {
        background: var(--White);
        min-height: auto;

        .logo-box {
            border-bottom-right-radius: 0.8rem;
        }

        #listfilters {
            display: none;
        }
    }
}