.layout-config {
    z-index: 1000002;
    position: fixed;
    padding: 0;
    top: 60px;
    display: block;
    right: 0;
    width: 550px;
    z-index: 996;
    height: calc(100% - 60px);
    transform: translate3d(550px, 0px, 0px);
    @include transition(transform $transitionDuration);
    background-color: #ffffff;
    
    &.layout-config-active {
        transform: translate3d(0px, 0px, 0px);
        
        .layout-config-content {
            .layout-config-button {
                i {
                    @include rotate(360deg);
                }
            }
        }
    }

    .panel-items {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;

        .panel-item {
            margin-right: 1em;
            margin-bottom: 1em;
            text-align: center;
        }
    }

    .layout-config-content {
        position: relative;
        height: 100%;

        > form {
            height: 100%;
        }
        
        .layout-config-button {
            display: block;
            position: absolute;
            width: 52px;
            height: 52px;
            line-height: 52px;
            background-color: #fafafa;
            text-align: center;
            top: 230px;
            left: -51px;
            z-index: -1;
            cursor: pointer;
            color: $topbarLeftGradientStartBgColor;
            @include border-radius-left($borderRadius);
            @include transition(background-color $transitionDuration);
            box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2),
                        0 5px 22px 4px rgba(0, 0, 0, 0.12), 
                        0 12px 17px 2px rgba(0, 0, 0, 0.14);

            i {
                font-size: 32px;
                line-height: inherit;
                cursor: pointer;
                @include rotate(0deg);
                @include transition(transform 1s);
            }
        
            &:hover {
                color: lighten($topbarLeftGradientStartBgColor, 15%);
            }
        }
    }

    .layout-config-close {
        position: absolute;
        width: 25px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        right: 19px;
        top: 10px;
        z-index: 999;
        background-color: #e0284f;
        @include border-radius(50%);
        @include transition(background-color $transitionDuration);

        i {
            color: #ffffff;
            line-height: inherit;
            font-size: 16px;
        }

        &:hover {
            background-color: #d44d69;
        }
    }

    .p-col {
        text-align: center;
    }

    .ui-tabs.ui-tabs-top  {
        border: 0 none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        height: 100%;
        @include shadow( 0 2px 10px 0 rgba(0, 0, 0, 0.24));
        background-color: #ffffff;

        > .ui-tabs-nav {
            display: flex; 
            margin-right: 44px;
            flex-wrap: wrap;

            li {
                vertical-align: bottom;
                top: auto;
                margin: 0;
                background-color: transparent;
                border: 0 none;
                border-radius: 0;
                border-bottom: 3px solid transparent;
                cursor: pointer;

                &:hover {
                    border-color: lighten($topbarLeftGradientStartBgColor, 25%);
                    background-color: lighten($topbarLeftGradientStartBgColor, 60%);
                    @include transition(background-color $transitionDuration);

                    > a {
                        color: #1b1c1e;
                    }
                }

                &.ui-state-active {
                    border: none;
                    border-bottom: 3px solid $topbarLeftGradientStartBgColor;
                    @include transition(background-color $transitionDuration);

                    > a {
                        color: #1b1c1e;
                    }

                    &:hover {
                        background-color: lighten($topbarLeftGradientStartBgColor, 60%);
                        @include transition(background-color $transitionDuration);
                    }
                }

                > a {
                    color: #1b1c1e;
                    padding: 13px 15px 10px;
                }
            }
        } 

        .ui-tabs-panels {
            padding: 1em 0;
            height: 100%;
            overflow: auto;
            border-width: 1px 0 0 0;
            color: #1b1c1e;
            @include border-radius-bottom(4px);

            .ui-tabs-panel {
                padding: 2em ;
                background-color: rgba(255,255,255,0);
            }
            
            img {
                max-height: 100px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
            }

            a {
                display: flex;
                width: auto;
                height: auto;
                position: relative;
                overflow: hidden;
                justify-content: center;
                align-items: center;
                @include transition(transform $transitionDuration);
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);

                &:hover {
                    @include scale(1.1);
                }

                i {
                    font-size: 32px;
                    color: $topbarLeftGradientStartBgColor;
                    position: absolute;
                    @include border-radius(50%);
                    background-color: #ffffff;
                    width: 40px;
                    line-height: 40px;
                    height: 40px;
                    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                }

                &.layout-config-option {
                    width: auto;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: auto;
                    overflow: hidden;
                    text-align: center;
            
                    &:hover {
                        @include scale(1.1);
                    }

                    &.layout-config-option-light {
                        i {
                            color: #000000;
                        }
                    }
                }

                &.layout-config-layout-option {
                    img {
                        height: 87px;
                        width: 109px;
                    }
                }
            }
            
            h1 {
                font-size: 21px;
                font-weight: 600px;
                margin: 0;
                margin-bottom: 10px;
            }

             span {
                color: #000000;
                font-size: 13px;
                font-weight: 500;
                display: block;
                margin-top: 6px;
                margin-bottom: 15px;
            }

            .ui-state-disabled {
                display: flex;
                width: auto;
                height: auto;
                position: relative;
                overflow: hidden;
                justify-content: center;
                align-items: center;

                i {
                    font-size: 48px;
                    color: $topbarLeftGradientStartBgColor;
                    position: absolute;
                }
            }
        }
    }

    p {
        line-height: 1.5;
        margin-top: 0;
        color: $textSecondaryColor;
    }
}

.blocked-scroll-config{
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .layout-config {
        transform: translate3d(100%, 0px, 0px);
        
        .layout-config-button {
            left: auto;
            right: -52px;
        }

        &.layout-config-active {
            width: 100%;
            transform: translate3d(0px, 0px, 0px);
        }
        
        .layout-config-close {
            right: 29px;
        }
        
        .ui-tabs.ui-tabs-top > .ui-tabs-nav {
            margin-right: 54px;
        }
    }
}
