/*region: GENERAL:*/
html, body{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
body{
    display: table;
}

.container-wrapper{
    display: table-cell;
    vertical-align: middle;
}
.container-wrapper .container{
    width: 90%;
    height: 95vh;
    /*max-height: 70vw;*/
    /*max-width: 180vh;*/
    margin: 0 auto;
    position: relative;
    min-height: 430px;
    min-width: calc((95vh / 5 *3)*2); /*enough for both sides.*/
}

.container .menu-side{
    float: left;
    width: calc(95vh / 5 *3);
    min-width: 258px;
    height: 100%;
    position: relative;
}
.container .page-side{
    float: left;
    width: calc(100% - (95vh / 5 *3));
    max-width: calc(100% - 258px); /*menu-side min is 250px*/
    height: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 2px 0 2px 3px;
}
.container .page-side::after{
    content: '';
    display: block;
    clear: both;
}

/*region: MENU SIDE:*/
.menu-side .cell{
    float: left;
    width: 33.333%; /*calc(100% / 3);*/
    height: 20%; /*calc(100% / 5);*/
    position: relative;
    padding: 2px;
    box-sizing: border-box;
    color: white;
}
.menu-side .cell.double{
    width: 66.666%; /*calc(100% / 1.5);*/
}
.menu-side .cell .icon-wrapper{
    height: 100%;
    width: 100%;
    cursor: pointer;
}
.menu-side .cell .icon{
    width: 60px;
    height: 60px;
    position: absolute;
    left: calc((100% - 60px) /2);
    top: calc((100% - 60px - 20px) /2);
}
.menu-side .cell .label{
    position: absolute;
    left: 8px;
    bottom: 5px;
    pointer-events: none;
    
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: calc(100% - 20px);
}
.menu-side .cell .number{
    position: absolute;
    right: 6px;
    bottom: 5px;
    pointer-events: none;
}
.menu-side .company-name{
    display: table;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
}
.menu-side .company-name .name{
    vertical-align: middle;
    display: table-cell;
}

/*region: PAGE SIDE:*/
.page-side .page-container{
    background-color: white;
    height: 100%;
    width: 100%;
}
.page-side .top-bar{
    height: 10%;
    color: white;
    position: relative;
}
.page-side .top-bar .wrapper{
    display: table;
    height: 100%;
    width: 100%;
}
.page-side .top-bar .btn-wrapper{
    display: table-cell;
    vertical-align: middle;
    width: 50px;
}
.page-side .top-bar .icon{
    height: 40px;
    width: 40px; 
    margin-left: 10px;
}
.page-side .top-bar #btnBack,
.page-side .top-bar #btnExtra{
    cursor: pointer;
}
.page-side .top-bar .top-header{
    display: table-cell;
    vertical-align: middle;
    height: 100%;
}
.page-side .top-bar .top-header .wrapper{
    table-layout: fixed;
}
.page-side .top-bar .top-label{
    display: table-cell;
    vertical-align: middle;
    font-weight: bold;
    font-size: 17px;
    text-align: right;
}
.page-side .top-bar .top-icon{
    display: table-cell;
    vertical-align: middle;
    width: 56px;
}


.page-side .bottom-bar{
    height: 10%;
    position: relative;
}
.page-side .bottom-bar .wrapper{
    display: table;
    height: 100%;
    float: right;
}
.page-side .bottom-bar .btn-wrapper{
    display: table-cell;
    vertical-align: middle;
    width: 50px;
}
.page-side .bottom-bar .icon {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    cursor: pointer;
}
.page-side .bottom-bar [disabled]{
    pointer-events: none;
    opacity: 0.5;
    cursor: auto;
}


.page-side .page-content{
    height: 80%;
    position: relative;
}

/*Region: PHONE SCREEN:*/
.is-mobile .container-wrapper .container{
    max-height: none;
    max-width: 100%;
    width: 90%;
    height: calc(90vw / 3 * 5);
    min-width: auto;
}
.is-mobile .container .menu-side{
    width: 100%;
    max-width: 100%;
    float: none;
    margin: 0 auto;
}
.is-mobile .container .page-side{
    max-height: none;
    max-height: none;
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 1px;
    min-width: auto;
    float: auto;
}

.is-mobile .container .menu-side{
    display: block;
}
.is-mobile .container .page-side{
    display: none;
}
.is-mobile .container.is-page-side .menu-side{
    display: none;
}
.is-mobile .container.is-page-side .page-side{
    display: block;
}
.is-mobile .container-wrapper .container.is-page-side{
    height: 100vh;
    width: 100%;
}