.html{
    height: 100%;
    background-color: #333;
    padding: 10px;
    border-color:  #888888;
}

body{
    background-color: #333;
    color: white;
    overscroll-behavior: contain;
}

.login-form {
            width: 340px;
    margin: 50px auto;
    }
#login {
    margin-bottom: 15px;
    background: #f7f7f7;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    padding: 30px;
}
.login-form h2 {
    margin: 0 0 15px;
}
.form-control, .btn {
    min-height: 38px;
    border-radius: 2px;
}
.btn {        
    font-size: 15px;
    font-weight: bold;
}
    
.erro {
    color: #AA0800;
}
#loading{
    position: relative; 
    z-index: 999; 
    width: 100%; 
    height: 100%; 
    display: block; 
    text-align: center;
}

div.loading{
    position: relative; 
    z-index: 999; 
    width: 100%; 
    height: 100%; 
    display: block; 
    text-align: center;
    background-image: url('../images/barra_s.gif');
    background-repeat: no-repeat;
    background-position: center;
}

#start{
    cursor: pointer;
}
.navbar{
    line-height: 1;
background-image: url('../images/bg_topgrad.png');
background-repeat: repeat-x;
color: white;
}


.navbar-default .navbar-nav > .active{
    color: #000;
    background: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #000;
    background: transparent;
}

#form_div{
    padding:19px;
    margin-bottom:20px;
}

#container 
{
    margin-top: 60px;
}

.navbar-brand{
    background-image: url('../images/logo_joaps.png');
background-repeat: no-repeat;
width: 250px;
height: 55px;

}

.wrapper {
    margin: auto;
  display: grid;
  grid-gap: 1px;
  color: #444;
}

.wrapper_button {
    margin: auto;
    width: 125px;
  display: grid;
  grid-template-columns: 125px ;
  grid-gap: 1px;
  color: #444;
}


.separator{
    border-style: none dotted none dotted;
    border-width: 2px;
}
div.main_help{
    text-align: center;
    width: 100%;
}
.hand{
        cursor: pointer;
}

.hidden{
    display: none;
}

.search_input
{
    background-color: #aaa;
    color: #333;
    margin-right: 10px;
    size: 15px;
}
.search_label{
    font-size: 80%;
    padding-right: 10px;
    padding-left: 10px;
}
.mimicLink
{
    color: #3979ad;
}
div.user_help{
    text-align: center;
    width: 100%;
    height: 20px;
    padding-top: 20px;
    font-weight: bold;
}

div.help_container {
    width: 90%;
    margin: auto;
    text-align: center;
    display:none;
}

div.help{
    text-align: center;
    font-size: 80%;
    float: left;
    width: 33%;
}
div.pedido{
    position:absolute;
    
    height: -webkit-calc(100% - 30px);
    height:    -moz-calc(100% - 30px);
    height:         calc(100% - 30px);
    
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
}
div.categorias{
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    min-height: 75px;
    border-spacing: 5px 0px;
}

div.categoria, div.categoriamenu{
    font-size: 15px;
    color: white;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    margin-bottom: 5px;
    margin-top: 5px;
    background-image: linear-gradient(#CCCCCC, #FF8300);
    white-space: normal;
    display: table-cell;
    vertical-align: middle;
    height: 60px;
}
label.categoria, label.categoriamenu
{
    cursor: pointer;
    width: 100%;
}


div.salas{
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    height: 45px;
}

div.sala{
    font-size: 12px;
    display: inline-block;
    color: white;
    text-align: center;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    width: 120px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    margin-bottom: 5px;
    background-image: linear-gradient(#CCCCCC, #48484C);
}

div.mesas{
    background-color: #333;
    position:absolute;
    
    height: -webkit-calc(100% - 10px);
    height:    -moz-calc(100% - 10px);
    height:         calc(100% - 10px);
    
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
    
    z-index: 1000;
    overscroll-behavior: contain;
}


label.sala
{
    cursor: pointer;
    width: 100%;
    height: 30px;
    line-height: 30px;
}

label.mesa_actual{
    padding-top: 0px;
    width: 100%;
    text-align: center;
    background-color: white;
    color: black;
    height: 20px;
}

div.menu{
     background-color: #333;
    position:absolute;
    padding-top: 100px;
    
    padding-right: -webkit-calc(50% - 160px);
    padding-right:    -moz-calc(50% - 160px);
    padding-right:         calc(50% - 160px);
    
    padding-left: -webkit-calc(50% - 160px);
    padding-left:    -moz-calc(50% - 160px);
    padding-left:         calc(50% - 160px);
    
    height: -webkit-calc(100% - 10px);
    height:    -moz-calc(100% - 10px);
    height:         calc(100% - 10px);
    
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
    
    z-index: 1000;
    overflow-y: hidden;
    overflow-x:hidden;
}

div.opcao_menu label{
    
    clear: both;
    font-size: 12px;
    display: inline-block;
    color: white;
    text-align: center;
    padding-top: 22px;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    width: 300px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    background-image: linear-gradient(#CCCCCC, #48484C);
    cursor: pointer;
}

div.lista_mesas{
    height: -webkit-calc(100% - 110px);
    height:    -moz-calc(100% - 110px);
    height:         calc(100% - 110px);
    overflow-y: scroll;
    overflow-x:hidden;
}
div.mesa_voltar{
    display: flex;
    align-items: center;
    float: left;
    clear: both;

    margin-bottom: 5px;
    margin-right: 5px;
    height: 15%;
    /*font-size: small;
    color: black;
    background-image: linear-gradient(#3A78FF, #9BCDFF, #9BCDFF, #3A78FF);*/

    width: -webkit-calc(25% - 5px);
    width:    -moz-calc(25% - 5px);
    width:         calc(25% - 5px);

    cursor: pointer;
    height: 100%;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #888888;
    background-image: linear-gradient(#6E8ACC, #013E8E);
    padding-top: 8px;
    font-weight: bold;

}


div.mesa{
    display: flex;

    align-items: center;
    float: left;
    /*color: black;*/
    /*background-image: linear-gradient(#3A78FF, #9BCDFF, #9BCDFF, #3A78FF);*/
    color: white;
    background-image: linear-gradient(#6E8ACC, #013E8E);
    margin-bottom: 5px;
    margin-right: 5px;
    height: 60px;
 
    text-align: center;

    width: -webkit-calc(25% - 5px);
    width:    -moz-calc(25% - 5px);
    width:         calc(25% - 5px);
    
    border-radius: 10px;
    border: 1px solid #888888;
}

div.mesa_activa{
    flex-direction: column;
    background-image: linear-gradient(#FFBB4F, #FF8B2D, #FF6600) !important;
}

label.mesa
{
    text-align:center;
    width: 95%;
    margin-left: 3%;
}

label.mesa_activa{
    margin-top: 15px;
    margin-bottom: 0px;
}

label.mesa_valor{
    /*color: #013E8E;*/
}

label.mesa_voltar {
    text-align: center;
    width: 95%;
    margin-left: 3%;
}

div.mesas_abertas{
    height: 100% ;
}

div.lista_mesas_abertas{
    height: -webkit-calc(100% - 50px);
    height:    -moz-calc(100% - 50px);
    height:         calc(100% - 50px);
    overscroll-behavior: contain;
}

div.consulta{
    position:absolute;
    left: 0px;
    top: 0px;
    
    height: 100%; 
    width: 100%;
    
    z-index: 1000;
}

div.lista
{
    position: relative;
    clear: both;
    float: left;
   
    width: 40%;
    background-color: #F5F3F2;
    
    height: -webkit-calc(100% - 85px);
    height:    -moz-calc(100% - 85px);
    height:         calc(100% - 85px);
    
    border-radius: 10px;
    border: 1px solid #888888;

}

div.lista_talao
{
    margin-top: 3px;
    margin-left: 5px;
    
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
    
    height: -webkit-calc(100% - 80px);
    height:    -moz-calc(100% - 80px);
    height:         calc(100% - 80px);
    color: black;
    background-color: #EEEEEE;
    
    overflow-y: scroll;
    overflow-x:hidden;
    border-radius: 10px;
    border: 1px solid #888888;
    position: absolute;
}

div.total_pedido{
    height: 30px;
    width: 300px;
    float: right;
    color: #404040;
    text-align: right;

    font-weight: bold;
    font-size: 16px;
    line-height: 30px;
    padding-right: 2px;
}

div.produtos
{
    float: right;
    width: 60%;
    background-color: #333;
    padding-left: 5px;
    height: -webkit-calc(100% - 80px);
    height:    -moz-calc(100% - 80px);
    height:         calc(100% - 80px);
    background-repeat: no-repeat;
    background-position: center;
    overflow-y: scroll;
    overflow-x:hidden;
    overscroll-behavior: contain;
}

div.produto, div.menupos
{
    display: flex;
    float: left;
    background-image: linear-gradient(#CCCCCC, #48484C);
    margin-bottom: 5px;
    margin-right: 5px;
    height: 15%;
    text-align: center;

    width: -webkit-calc(25% - 5px);
    width:    -moz-calc(25% - 5px);
    width:         calc(25% - 5px);
    
    border-radius: 10px;
    border: 1px solid #888888;
}

.flex_bottom{
    align-items:flex-end;
}

.flex_center{
    align-items:center;
}


div.produto_si
{
    float: left;
    background-image: linear-gradient(#CCCCCC, #48484C);
    margin-bottom: 5px;
    margin-right: 5px;
    height: 15%;
    font-size: small;
    text-align: center;

    width: -webkit-calc(25% - 5px);
    width:    -moz-calc(25% - 5px);
    width:         calc(25% - 5px);
    
    border-radius: 10px;
    border: 1px solid #888888;
}

label.produto, label.menupos {
    text-align:center;
    width: 100%;
    margin:0px;
    background-color: rgba(0,0,0,0.3);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

span.produto, span.menupos {
    text-align:center;
    width: 100%;
/*    height: 100%;*/
}
label.adiciona_produto{
    cursor: pointer;
}

label.adiciona_menu{
    cursor: pointer;
}

.fundo_total{
    position: absolute;
    bottom: 45px;
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
}

.fundo{
    position: absolute;
    bottom: 0;
}

div.opcoes_talao{
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
    
    height: 40px;
    margin-left: 5px;
    margin-bottom: 3px;
    background-color: #F5F3F2;
}

div.float_left{
    float: left;
}

div.float_right{
    float: right;
}

div.opcao_talao{
    width: 16%;
    height: 40px;
    background-color: #F5F3F2;
    color: white;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    background-repeat: no-repeat;
    background-size: 40px 40px;
}

.linha{
    cursor: pointer;
}

.linha_escolhida{
    background-color: orange !important;
}

table.talao{
    width: 100%;
    margin-top: -5px;
}

table.talao th{

    background-image: linear-gradient(#3A78FF, #9BCDFF, #9BCDFF, #3A78FF);
    height: 20px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
}
.col_prod{
    width: 80%;
    padding-left: 5px;
}

.col_menu{
    padding-left: 0px !important;
    font-weight: 700;
}

td.col_extra_extra{
    padding-left: 40px !important;;
}

td.col_extra{
    width: 100%;
    color: #444444;
    padding-left: 20px;
}

.col_quant{
    text-align: center;
    width: 20%;
}

.col_quant_real{
    text-align: center;
    width: 100%;
    border-style: hidden;
    background-color: transparent;
}

.col_quant_real:focus {
  outline: none;
}

.col_preco{
    width: 0px;
    text-align: right;
    padding-right: 2px;
}

div.consulta_mesa{
  
    height: 100%;
    width: 100%;
}

div.consulta_talao{
  
    height: -webkit-calc(100% - 80px);
    height:    -moz-calc(100% - 80px);
    height:         calc(100% - 80px);
    width: -webkit-calc(100% - 20px);
    width:    -moz-calc(100% - 20px);
    width:         calc(100% - 20px);
    margin-left: 10px;
    overflow-y: scroll;
    overflow-x:hidden;
}

.linha_consulta_quant{
    width: 8%;
    text-align: right;
    padding-right: 10px;
}


th.linha_consulta_valor{
    width: 15%;
    text-align: right;
    padding-right: 10px;
}

td.linha_consulta_valor{
    width: 15%;
    text-align: right;
    padding-right: 10px;
}



div.consulta_talao_mesa{
    height: 30px; 
    width: 100%;
}

div.consulta_talao_total{
    height: 40px; 
    width: -webkit-calc(100% - 20px);
    width:    -moz-calc(100% - 20px);
    width:         calc(100% - 20px);
    position: absolute;
    bottom: 10px;
    left: 10px;
}

table.consulta_talao{
    width: 100%;
    padding: 10px;
}

table.consulta_talao th{
    background-image: linear-gradient(#6E8ACC, #013E8E);
    color: white;
    height: 20px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
}

table.consulta_talao td{
    height: 20px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
}

div.voltar_talao{
    clear: left;
    float: left;
    width: 30%;
    /*cursor: pointer;
    height: 100%;
    display: inline-block;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    background-image: linear-gradient(#CCCCCC, #FF8300);
    padding-top: 8px;
    color: black;
    font-weight: bold;*/
    
    cursor: pointer;
    height: 100%;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #888888;
    background-image: linear-gradient(#6E8ACC, #013E8E);
    padding-top: 8px;
    font-weight: bold;
}

div.pagar_talao{
    float: left;
    width: 30%;
    cursor: pointer;
    height: 100%;
    display: inline-block;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    background-image: linear-gradient(#CCCCCC, #FF8300);
    padding-top: 8px;
    color: black;
    font-weight: bold;
}

div.total_talao{
    padding-top: 8px;
    float: left;
    width: 70%;
    text-align: right;
    padding-left: 20px;
    padding-right: 10px;
    font-weight: bold;
    
    
}

div.opcoes_fatura{
     background-color: #333;
    position:absolute;
    padding-top: 100px;
    
    padding-right: -webkit-calc(50% - 160px);
    padding-right:    -moz-calc(50% - 160px);
    padding-right:         calc(50% - 160px);
    
    padding-left: -webkit-calc(50% - 160px);
    padding-left:    -moz-calc(50% - 160px);
    padding-left:         calc(50% - 160px);
    
    height: -webkit-calc(100% - 10px);
    height:    -moz-calc(100% - 10px);
    height:         calc(100% - 10px);
    
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
    
    z-index: 1000;
    overflow-y: hidden;
    overflow-x:hidden;
}

div.fatura label{
    
    clear: both;
    font-size: 12px;
    display: inline-block;
    color: white;
    text-align: center;
    padding-top: 22px;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    width: 300px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid #888888;
    background: #73AD21;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    background-image: linear-gradient(#CCCCCC, #48484C);
    cursor: pointer;
}

div.escolher_mesa{
    width: 40%;
    max-width: 180px;
    min-width: 60px;
    margin: auto;
    height: 40px;
    bottom: 5px;
    margin-top:10px;
    float:left;
}

#escolhe_mesa{
    
    width: 60px;
    margin-left: 5px;
    color: #404040;
}

div.voltar{
    width: 60%;
    max-width: 300px;
    min-width: 100px;
    margin: auto;
    height: 40px;
    bottom: 5px;
    margin-top:10px;
    float: right;
}

label.voltar{
    width: 100%;
    margin: auto;
    
    cursor: pointer;
    height: 100%;
    display: inline-block;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #888888;
    background-image: linear-gradient(#6E8ACC, #013E8E);
    padding-top: 8px;
    font-weight: bold;
}

.box {
  color: #444;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  margin-top: 1px;
}

#confirm_backdrop{width:100%;height:100%;position:fixed;z-index:999;top:0;left:0;background:#000;-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter: alpha(opacity=50);-khtml-opacity: 0.5;-moz-opacity: 0.5;opacity: 0.5;filter: alpha(opacity=50);;display:none;}
#confirm_dialog{position: fixed;top: 20%;left: 20%;z-index:1000;width: 60%; padding: 20px;box-sizing: border-box;background: #FFF;box-shadow: 0px 0px 2px 2px #6B6B6B;display:none;}
#confirm_title{color: #525252;padding: 0px 0px 5px 5px;font-weight: bold;font-size: 20px; text-align: center;}
#confirm_actions{margin-top: 20px;text-align: center;font-size: 20px;}
#confirm_actions button{padding: 10px 15px;border: 0;color: #FFFFFF;text-transform: uppercase;cursor: pointer;-khtml-border-radius: 3px;-o-border-radius: 3px;border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}
#confirm_actions button.red{background: green;}
#confirm_actions button.gray{background: red;}
#confirm_doit{margin-right: 10px;}
#confirm_dont{background: #969696;margin-left: 10px;}


@media(max-width:768px) {

}

 @media screen and (orientation:landscape) 
 {
    div.menu
    {
        background-color: #333;
        position:absolute;
        padding-top: 0px;

        height: -webkit-calc(100% - 10px);
        height:    -moz-calc(100% - 10px);
        height:         calc(100% - 10px);

        width: -webkit-calc(100% - 10px);
        width:    -moz-calc(100% - 10px);
        width:         calc(100% - 10px); 
        
        padding-left: 0px;
        padding-right: 0px;
        
        float: left;
    }
    
    div.opcao_menu{
        float: left;
        margin-right: 10px;
        
    }
    
 }
 
 @media screen and (orientation:portrait) 
 {
     table.talao th{
        background-color: blue;
    }
    
    div.lista {
        width: 100%;
        height: 50%;
    }
    
    div.produtos {
        margin-top: 10px;
        clear: both;
        width: 100%;
        height: -webkit-calc(50% - 70px);
        height:    -moz-calc(50% - 70px);
        height:         calc(50% - 70px);
    }
    
    span.produto 
    {
    text-align:center;
    width: 100%;
/*    height: 100%;*/
    }

 
 }
 
  @media screen and  (max-width: 1024px)
 {
 
 }

.negative {
    color: #B71B00;
}

.positive {
    color: #2E8227;
}

.boxheader {
  background-color: #EEE;
  color: #000;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
}
label.gera_pdf{
    background-image: url('../images/pdf.png');
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin: 0px !important;
    padding: 0px !important;
}

div.col_PDF
{
    margin: 0px !important;
    padding: 0px !important;
}

#div_details {
    position:fixed;
    left: 50%;
    width:44em;
    margin-top: -10em; /*set to a negative number 1/2 of your height*/
    margin-left: -24em; /*set to a negative number 1/2 of your width*/
    border: 1px solid #ccc;
    background-color: #333;
    display: none;
    z-index: 99;
    overflow-y: scroll;
}

.hide{
    display: none;
}

.show{
    display: block;
}

#btn_submit
{
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-control_label {
    display: block;
    width: 100%;
    height: 28px;
    padding: 2px 6px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

div.teclado{
    width: 100%;
    height: 220px;
    padding-left: 20%;
    padding-right: 20%;
    margin-bottom: 15px;
}
div.tecla{
    cursor: pointer;
    text-align: center;
    padding-top: 15px;
    float: left;
    width: 50px;
    height: 50px;
    margin: 3px;
    background-image: url('../images/tecla.png');
    background-size: 50px 50px;
    background-repeat: no-repeat;
}