html, body {
    height: 100%;
}

#configurator {
    display: flex;
    height: 100%;
    background-color: rgb(246, 246, 246);
}

#drawing {
    flex: 2;
    height: 100%;
}

#sideNav {
    height: 100%;
    flex: 1;
    /*    box-shadow: -9px 2px 26px 0px rgba(201,201,201,1);*/
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 25px 0 0 0;
}

    #sideNav .fields {
        flex: 1;
        overflow: auto;
    }

    #sideNav .field {
        margin-bottom: 25px;
        background-color: #fff;
    }

        #sideNav .field .field-header {
            background-color: #50731e;
            padding: 10px;
            color: #fff;
            padding-left: 15px;
        }

        #sideNav .field .options {
            padding: 20px;
        }

            #sideNav .field .options.with-flex {
                display: flex;
                flex-wrap: wrap;
                gap: 15px;
            }


            #sideNav .field .options .option {
                padding: 10px;
                background-color: rgb(246, 246, 246);
                cursor: pointer;
                border: 2px solid rgb(246, 246, 246);
                border-radius: 0.5rem;
            }

                #sideNav .field .options .option.active {
                    border: 2px solid #50731e;
                    background-color: #fff;
                }

        #sideNav .field .templateUpload {
            padding: 0 0 20px 20px;
        }

            #sideNav .field .templateUpload a {
                margin-left: 10px;
                cursor: pointer
            }

    #sideNav .footer {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(80, 115, 30);
        height: 100px;
    }


.ms-tab ul li a {
    cursor: pointer;
}

.ms-btn.e1-btn {
    background-color: #50731e;
    color: #fff
}

    .ms-btn.e1-btn:hover {
        background-color: rgb(80, 115, 30, 0.8);
    }

#hardwareModal {
    height: 400px;
    overflow: auto;
}

.profile-modal {
    display: flex;
    gap: 20px;
    width: 500px;
    overflow-y: scroll;
    height: 400px;
    flex-wrap: wrap;
}

.profile-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

    .profile-image .profile-name {
        border-bottom: 2px solid #fff;
    }

    .profile-image:hover .profile-name {
        border-bottom: 2px solid #50731e;
    }

.link {
    color: #50731e;
    cursor: pointer;
}

@media only screen and (min-width: 992px) {
    #sideNav {
        max-width: 500px;
    }

    #hardwareModal {
        width: 600px;
    }
}

@media only screen and (max-width: 991px) {
    #drawing, #sideNav {
        height: 50%;
    }

    #configurator {
        display: block;
    }
}

[x-cloak] {
    display: none !important;
}

/* Modal */
.modal-window {
    position: fixed;
    background-color: rgba(0,0,0,0.4);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    transition: all 0.3s;
}

    .modal-window > div {
        min-width: 400px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2em;
        background: white;
        border-radius: 1rem;
    }

    .modal-window header {
        font-weight: bold;
    }

    .modal-window h1 {
        font-size: 150%;
        margin: 0 0 15px;
    }

.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

    .modal-close:hover {
        color: black;
    }
