@import "../../new-variables";
@import "../footer";


$footer-height: '30px';
$header-height: '70px';


body {
    overflow: hidden;
    background: $body-bg !important;
    height: 100vh;
    @media (min-width: 2500px) {
        background: #fff !important;
    }

}

#dashboard-layout {
    overflow: auto;

    &::-webkit-scrollbar {

        width: 10px;
    }

    /* Track */
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        height: calc(100% - 36px);
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
        background: #888;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    flex: 1;
    background: $body-bg;
    padding: min(10rem, 9.259%) min(15.3rem, 14.167%) min(17.3rem, 16.019%) min(15.3rem, 14.167%);
    //padding: calc(9.259%) calc(14.167%) calc(16.019%) calc(14.167%);
    margin: auto;
    margin-top: 0;

    width: 100%;
    height: calc(100% - 36px);

    .dashboard-header {

        &--container {
            margin-bottom: 8rem;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .logo-container {
                padding-bottom: 2rem;

                img {
                    width: 28.8rem;
                    height: 6.824rem;
                }
            }

            .header-content-container {
                display: flex;
                align-items: flex-end;
                gap: 6.6rem;

                .welcome-msg {
                    margin: 0rem;
                    font-size: $text-size-xxl;
                    font-weight: $thin;
                    line-height: 36px;
                    color: $secondary-color;
                }

                .logout-container {
                    display: flex;
                    align-items: center;
                    gap: 1.5rem;
                    cursor: pointer;

                    background: none;
                    border: none;
                    text-decoration: none;

                    p {
                        margin: 0rem;
                        font-size: 1.3rem;
                        color: $light-grey-text-color;
                    }

                    img {
                        width: 2.14rem;
                        height: 2.1rem;
                    }
                }

                .last-login {
                    margin: 0rem;
                    font-size: $text-size-xs;
                    color: $light-grey-text-color;
                }
            }
        }

    }

    .dashboard-content {

        &--container {
            display: flex;
            align-items: flex-start;
            gap: 0 7%;

            .side-content {

                display: flex;
                //flex-direction: column;
                @media (max-width: 920px) {
                    gap: 7.73rem;
                }
                @media (min-width: 1451px) {
                    gap: 7.73rem;
                }

                .side-content-items {
                    display: flex;
                    flex-direction: column;
                    gap: 7.73rem;

                    .side-content-item {
                        display: flex;
                        gap: 4.6rem;
                        align-items: baseline;

                        div {

                            .side-content-item-tag {
                                margin-right: 1rem;
                                font-size: $text-size-xl;
                                color: $main-color;
                                font-weight: $lightweight;
                            }

                            .side-content-item-value {
                                font-size: $text-size-xl;
                                color: $main-color;
                                font-weight: $extra-bold;
                            }

                            p {
                                margin: 0 !important;
                            }
                        }
                    }
                }

                .requests-content {
                    display: flex;
                    align-items: flex-start;
                    gap: 4.6rem;

                    .request-container {
                        display: flex;
                        flex-direction: column;

                        .title {
                            margin-bottom: 2.65rem;
                            font-size: $text-size-xl;
                            color: $main-color;
                            font-weight: $extra-bold;
                        }

                        .request {
                            min-width: 30rem;
                            border: 1px solid $border-color;
                            margin-bottom: 0.76rem;
                            padding: 1.6rem 1.9rem;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;


                            &--number {
                                margin-right: 1rem;
                                font-size: $text-size-xl;
                                color: $main-color;
                                font-weight: $extra-bold;
                            }

                            &--item-tag {
                                margin-right: 1rem;
                                font-size: $text-size-xl;
                                color: $main-color;
                                font-weight: $lightweight;
                            }

                            &--item-value {
                                font-size: $text-size-xl;
                                color: $main-color;
                                font-weight: $extra-bold;
                            }

                            p {
                                margin: 0 !important;
                            }

                            .on-hover-img {
                                display: none;
                            }

                            &:hover {
                                background-color: #fff;
                            }

                            &:hover .on-hover-img {
                                display: block;
                            }

                        }
                    }
                }

                @media (max-width: 1450px) {
                    width: 100%;
                    margin-right: 0rem;
                    margin-bottom: 8rem;
                    flex-direction: row;
                    // gap: 0rem;
                    align-items: flex-start;
                    justify-content: center;
                }
            }

            .main-content {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 1.8rem;

                &--row{
                    @media (max-width: 1650px) and (min-width: 1450px) {
                        .col-6{
                            width: 100% !important;
                        }
                    }

                    @media (max-width: 850px){
                        .col-6{
                            width: 100% !important;
                        }
                    }

                }


            }

            @media (max-width: 1450px) {
                flex-direction: column;
            }
        }
    }


    @media (max-width: 1200px) {
        padding: 10rem 8rem 0rem 8rem;
    }

    @media (max-width: 1100px) {
        padding: 10rem 3rem 0rem 3rem;
    }
}

#footer {
    position: fixed !important;
    bottom: 0 !important;
}
