html, body {
    height: 100%;
}

body {
    background-color: #ccc;
}

.page {
    position: absolute;
    width: 100%;
    height: calc(100% - 150px);
    top: 80px;
    overflow: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.page .container-fluid {
    background-color: #fff;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.buttons {
    position: fixed;
    background-color: #fff;
    padding: 10px;
    bottom: 0;
    width: 100%;
}

#loading {
    position:fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    top: 0;
    background-color: #fff;
}

#custom_alert {
    display: none;
    position:absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    margin-bottom: 0;
}

#header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#header img {
    max-width: 150px;
    max-height: 35px;
}
#header .logout {
    display: block;
    position: absolute;
    top: 4px;
    right: 5px;
    color: #000;
    font-size: 20px;
}

#subheader {
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #fff;
}

#menu_controller {
    position: absolute;
    top: 0;
    left: 0;
}
#menu_controller a {
    display: block;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
	font-size: 30px;
}
#menu_controller a:hover {
    text-decoration: none;
}

#cart {
    position: absolute;
    top: 0;
    right: 5px;
}
#cart a {
    display: block;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
	font-size: 30px;
}
#cart a:hover {
    text-decoration: none;
}
#cart .badge {
    position: absolute;
    top: 5px;
    right: 0;
    font-size: 12px;
}

#menu {
    position: absolute;
    top: 40px;
    left:-100%;
    height: calc(100% - 40px);
    width: calc(100% - 60px);
    background-color: #eee;
}
#menu>ul {
    padding: 0 10px;
    margin: 0;
}
#menu>ul>li {
    list-style-type: none;
}
#menu>ul>li>a {
    display: block;
    padding: 10px 0px;
    border-bottom: 1px solid #ccc;
}
#menu>ul>li>a:hover {
    text-decoration: none;
}

.product_box {
    display: block;
    margin-bottom: 15px;
}
.product_box .thumb {
    display: block;
    height: 80px;
}
.product_box .thumb img {
    max-width: 100px;
    max-height: 100%;
}

.qr video {
    width: 100%;
}
.qr video.error {
    outline: red solid;
}
.qr video.success {
    outline: green solid;
}
.qr canvas {
    display:none;
}

.product-box {
    text-align: center;
    display: block;
}
.product-box .img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-box img {
    height: 100%;
    max-width: 150px;
    max-height: 120px;
    margin-left: auto;
    margin-right: auto;
}

.plus_minus {
    display: flex;
    justify-content: center;
    align-items: center;
}
.plus_minus input {
    width: 50px;
    text-align: center;
}
.show-on-print{
    display: none;
}

@media print {
    #header, .hide-on-print{
        display: none;
    }
    .show-on-print{
        display: block;
    }
}