﻿.wrapper {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    /*-webkit-flex-flow: row wrap;
    flex-flow: row wrap;*/
    text-align: center;
    height: 100%;
}

.wrapper > * {
    flex: 100%;
    align-items: stretch;
    overflow-y: auto;
}

.main {
    text-align: left;
    background: white;
    padding: 10px 20px;
    position: relative;
}

.aside {
    min-width: 280px;
    max-width: 280px;
}

.aside h1 {
    margin: 0 5px;
}

.main {
    min-width: 320px;
}

.aside-1 {
    text-align: left;
    background: #333;
    color: white
}

.aside-2 {
    background: #333;
    color: white;
    min-width: 300px;
    max-width: 300px;
    text-align: left;
}

.appMenuIcon {
    display: none;
}

.img-top-right {
    /*width: 35%;*/
    max-width: 200px;
    min-width: 100px;
    float: right;
    margin-left: 18px;
    margin-bottom: 8px;
    margin-top: 2px;
}

.img-small {
    width: 35%;
    max-width: 160px;
}

.img-medium {
    width: 50%;
    max-width: 200px;
}

#companyNameCompact {
    display: none;
}

@media all and (max-width: 960px) {
    .aside-2 {
        display: none;
    }
}

@media all and (max-width: 640px) {
    .aside-1 {
        display: none;
        position: absolute;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        z-index: 10;
    }

    .appMenuIcon {
        display: block;
    }

    #companyNameCompact {
        display: block;
    }

    .img-small {
        width: 30%;
        max-width: 30%;
    }

    .img-medium {
        width: 40%;
        max-width: 40%;
    }

    div.img-small img, div.img-medium img {
        max-width: calc(100% - 6px);
    }
}

@media all and (max-width: 460px) {
    .img-top-right {
        /*width: 30%;*/
    }

    .img-small {
        width: 30%;
        max-width: 30%;
    }

    .img-medium {
        width: 40%;
        max-width: 40%;
    }

    div.img-small img, div.img-medium img {
        max-width: calc(100% - 6px);
    }
}

@media all and (max-width: 360px) {
    .img-top-right {
        /*width: 25%;*/
    }

    .img-small, .img-medium, div.img-small, div.img-medium {
        width: 25%;
        max-width: 25%;
    }

        div.img-small img, div.img-medium img {
            max-width: calc(100% - 6px);
        }
}

@media all and (min-width: 640px) {
    .nav-back {
        display: none;
    }

    .main {
        flex: 4 0px;
    }

    /*.aside-1 {
        order: 1;
    }

    .main {
        order: 2;
    }

    .aside-2 {
        order: 3;
    }*/
}
