/*!
 * Copyright (c) 2016 Ethereals United <etherealcz@gmail.com>
 * All Rights Reserved
 * 
 * Application: Online POS System GOKASA
 * Written by : Nguyen Viet Bach <nvbach91@outlook.com>
 * 
 * Version: 1.0.0
 */
::-webkit-scrollbar {
    width: 6px;
    cursor: pointer;
    background-color: #eee;
}
::-webkit-scrollbar-thumb {
    background-color: #546475;
}
* {
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}
html, body {
    padding: 0;
    margin: 0;
}
html, body, #app {
    height: 100%;
}
#app {
    display: flex;
    flex-direction: column;
}
.menu-top {
    display: flex;
    height: 40px;
    background-color: rgba(11, 12, 12, 0.8);
    color: #fff;
    width: 100%;
    line-height: 40px;
}
#logo {
    background-color: rgba(158, 63, 63, 0.7);
    cursor: pointer;
}
#logo > div.logo {
    background-image: url('../img/logow.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
}
#logo > div:hover {
    transform: rotate(90deg);
}
#brand {
    padding: 0 10px;
}
#instructions {
    margin-left: auto;
    padding: 0 20px;
    cursor: pointer;
}
#instructions a {
    color: #fff;
}
#instructions:hover {
    background-color: #fff;
}
#instructions:hover a {
    color: #158cba;
}

.main {
    display: flex;
    height: 100%;
}
.btn {
    font-weight: normal !important;
}
.side-bar {
    background-color: #3b3c3c;
    color: #fff;
    height: 100%;
    width: 320px;
    min-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
form button {
    width: 100%;
}
form button.confirm {
    background-color: red;
}
#more-settings > .form-body {
    display: none;
}
#preview {
    background-color: #aaa;
    top: 0;
    left: 320px;
    height: 100%;
    flex-grow: 1;
    min-width: 820px;
    overflow: auto;
    padding: 20px 10px;
}
#paper {
    background-color: #e8e8e8;
    width: 21cm;
    height: 29.7cm; 
    margin: auto;
    border: 1px solid #e8e8e8;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
    padding: 0.2cm;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}
.cell {
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width .2s ease;
}
.e210x297 .cell {
    height: 29.3cm;
    width: 100%;
}
.e210x148 .cell {
    height: 14.65cm;
    width: 100%;
}
.e105x148 .cell {
    height: 14.62cm;
    width: 50%;
}
.e105x74 .cell {
    height: 7.31cm;
    width: 50%;
}
.e70x36 .cell {
    height: 3.61cm;
    width: 33.33%;
    width: calc(100% / 3);
}
#paper.e70x36 {
    padding-top: 0.4cm;
}
.e52x21 .cell {
    height: 2.12cm;    
    width: 25%;
}
#paper.e52x21 {
    padding-top: 1cm;
}
.e38x21 .cell {
    height: 2.25cm;
    width: 20%;
}

.label-name {
    font-family: sans-serif;
    text-align: center;
    font-size: 12px;
    line-height: normal;
    color: #000;
    padding: 0 5px;
}
#paper .removing {
    width: 0;
}
.remover {
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    position: absolute;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: none;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 32px;
}
.remover:before {
    content: "\00d7";   
}
.rename-label {
    width: 30px;
    height: 30px;
    top: 32px;
    right: 0;
    position: absolute;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: none;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 15px;
    font-family: 'Glyphicons Halflings';
}
.rename-label:before {
    content: "\270f";
}
.cell:hover > .remover, .remover:hover {
    display: flex;
}
.cell:hover > .rename-label, .rename-label:hover {
    display: flex;
}
#curtain {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}
.alert {  
    font-size: 20px;  
    min-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: #fff;
}
.alert > .msg {
    font-size: 24px;
    font-weight: 300;
    padding: 5px;
    text-align: center;
}
.alert > button {
    width: 200px;
}
@media print {
    * {
        font-family: Arial, sans-serif;
    }
    .menu-top, .side-bar, .remover {
        display: none;
    }
    .remover:before {
        content: '';
    }
    #preview {
        padding: 0;
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
    }
    #paper {
        padding: 0;
        background-color: #fff;
        border: none;
        width: 100%; 
        height: 100%;
        display: flex;
    }
    .cell {
        border-right: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }
    .e210x297 .cell {
        height: 29.7cm;
        width: 100%;
    }
    .e210x148 .cell {
        height: 14.62cm;
        width: 100%;
    }
    .e105x148 .cell {
        height: 14.62cm;
        width: 50%;
    }
    .e105x74 .cell {
        height: 7.4cm;
        width: 50%;
    }
    .e70x36 .cell {
        height: 3.6cm;
        width: 33.33%;
        width: calc(100% / 3);
    }
    #paper.e70x36 {
        padding-top: 0.8cm;
    }
    .e52x21 .cell {
        height: 2.12cm;
        width: 25%;
    }
    #paper.e52x21 {
        padding-top: 1.5cm;
    }
    .e38x21 .cell {
        height: 2.3612cm;
        width: 20%;
    }
}

@media screen and (min-width: 800px) and (min-height: 600px) {
    #logo > div {
        transition: transform .2s ease;
    }
}