* {
    box-sizing: border-box;
}
body{margin: 0;}

button{
    background-color: #000;
    color: white;
    padding: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 5px;
    font-size: 14px;
    min-width: 100px;
}

select{
    padding: 5px;
    min-width: 140px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

select option{
    font-size: 16px;
    font-weight: bold;
}
input[type="text"], input[type="number_format"], input[type="number"], input[type="email"],  input[type="password"], input[type="date"], input[type="tel"], select{
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 5px;
}

.body1 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-image:url(../images/fundoo.png);
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
    /* background: #212121; */
    margin: 0;
    width: 100vw;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
    padding-bottom: 10px;
}
.body3 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-image:url(../images/fundo1.png);
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
    /* background: #212121; */
    margin: 0;
    width: 100vw;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
    padding-bottom: 10px;
}

.body2{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background: white;
    margin: 0;
    width: 100vw;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    width: 400px;
    padding-bottom: 30px;
    padding-top: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 0px 20px #000000;
    margin-bottom: 10px;
    flex-direction: column;
}

#input_box{
    z-index: 99;
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    height: 300px;
    width: 400px;
    margin-top: -150px;
    margin-left: -200px;
    background-color: white;
    padding: 20px;
    box-shadow: #616161;
    border-radius: 20px;
}

#input_box #input_message{
    /* background-color: #bebebe; */
    justify-content: center;
}

.barraBusca{
    margin-bottom: 15px; 
    width: 300px;
}

.grid{
    display: grid;
    width: 100%;
}

.grid div {
    display: flex;
    align-items: center;    
    padding: 10px;
    margin-bottom: 10px;
    height: 100px;
    background-color: #f1f1f1;
}
.grid_top{
    display: grid;
    width: 100%;
    border-radius: 5px;
    padding-left: 5px;
    margin-bottom: 5px;
    height: 50px;
    /* box-shadow: 5px 5px 5px rgba(65, 49, 49, 0.3); */
    background-color: #090909;
    color: white;
}

.grid_top div {
    display: flex;
    align-items: center;    
}

/* cada linha (row) */
.gridDelivery {
    display: grid;      /* cada .gridDelivery é uma linha com colunas definidas inline */
    width: 100%;
    align-items: center; 
    cursor: pointer;
    background: transparent; /* fundo default da linha */
    margin-top: 1px;
    /* não definir grid-template-columns aqui se você já está definindo inline no PHP */
}

/* cada célula dentro da linha */
.gridDelivery > div {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    height: 50px;            /* mantém altura consistente */
    margin: 0;               /* remove margens internas que causavam espaçamento extra */
    background: transparent; /* importante: transparente para deixar o fundo da linha visível */
    border-bottom: none;     /* a linha inteira terá borda, não cada célula */
    font-family: sans-serif;
    font-size: 16px;
}

/* separador entre linhas (você tinha border-bottom nas células: vamos aplicar na linha) */
.linhaDelivery {
    border-bottom: 1px solid #000;
}

/* destaque da linha selecionada */
.linhaDeliverySelecionada {
    background-color: #90c9ff !important; /* cor de destaque */
    border-left: 4px solid #007bff;
}

/* hover para melhor usabilidade */
.linhaDelivery:hover {
    background-color: #e8f4ff;
}
.btnFiltro {
    background-color: #000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btnFiltro.ativo {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.btnFiltro.btnCancelar.ativo {
    background: #c62828;
}


.acao_rest {
    height: 200px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: white;
    color: black; 
    border: 3px black solid; 
    border-radius: 7px;
    width: 200px;
    margin: 40px;
    transition: 0.2s;
}
.acao_rest:hover {
    transform: scale(1.05);
}

.acao_rest img {
    margin-bottom: 10px;
}

.flex, [flex="true"]{
    display: flex;
    align-items: center;
    padding: 1px;
    flex-direction: row;
}

.flex div, [flex="true"] div{
    margin: 10px;
}

.flex_center{
    display: flex;
    align-items: center;
    padding: 5px;
    flex-direction: row;
    justify-content: center;
    font-size: 18px;
    padding: 10px;
}

.error {
    width: 95%;
    height: 60px;
    padding: 10%;
    color: #c82a2a;
    text-align: center;
    /* justify-content: center; */
    /* align-items: center; */
}

.linha:focus {
    outline-color: #212121;
}

.cad_est{
    font-size: 14px;
    background-color: #212121;
    color: white;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    justify-content: right;
    margin-left: auto;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-meio{
    justify-content: center;
    text-align: center;
    font-size: 100px;
    padding: 200px;
    background:url("../../../assets/img/empresa/business_logo.png") no-repeat; 
    background-size: 100% 100%;
    filter:alpha(opacity=50);
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.5);
    opacity:.50;
    animation: animate__bounceIn;
}

.esq_senha{
    padding: 15px;
}

.estab-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.estab-item:hover {
    background-color: #f0f0f0;
}

#listaEstabs {
    display: none;
    position: absolute;
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 8px;
    margin-top: 5px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    width: 250px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
}

#listaEstabs a {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

#listaEstabs a:hover {
    background: #f0f0f0;
    cursor: pointer;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 10px;
}

.dropdown-menu a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f2f2f2;
}

.dropdown-menu1 {
    position: fixed;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 10px;
    right: 0;
    left: auto; /* garante que ele não use uma posição à esquerda */
    top: 60px;
    
}

.dropdown-menu1 a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu1 a:hover {
    background-color: #f2f2f2;
}

.sub-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.sub-btn:hover {
    background-color: #f2f2f2;
}


#msg{
    position: fixed;
    z-index: 9999;
    height: 300px;
    width: 500px;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -150px;
    background-color: rgba(0, 0, 0, 0.4); 
    box-shadow: #616161;
    border-radius: 10px;
}

#formProduto label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: left;
  margin: 10px;
  margin-left:50px;
  font-family: sans-serif;
}
#formProduto input[type="text"],
#formProduto input[type="number"],
#formProduto input[type="file"],
#formProduto select {
  width: 50%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 18px;
  text-align: center; 
  margin-left:auto;
  /* margin-right: 50px; */
}

/* 
.modal_fluxo {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
} */



.grid_fluxos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 25px 0;
}

.col_fluxo label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.col_fluxo select {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 10px;
  text-align: center;
}

#btnSalvarFluxos {
  width: 50%;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#btnSalvarFluxos:hover {
  background: #303bff;
  color: #ffffff;
}


.modal {
  display: none; 
  position: fixed;
  z-index: 99;
  left: 50%;
  top: 50%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  padding: 10px;
  justify-content: center;
}

.modal-conteudo{
    padding: 5px;
    justify-content: center;
    text-align: center;
}

#modalEstab{
    width: 430px; 
    height: 680px;
    margin-top: -340px;
    margin-left: -215px;
}
#modalAddComanda{
    width: 330px; 
    height: 360px;
    margin-top: -180px;
    margin-left: -165px;
}

#modal_setores{
    width: 330px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -165px;
}
#modalProduto{
    width: 700px; 
    height: 650px;
    margin-top: -325px;
    margin-left: -350px;
}

#rec_senha_box{
    width: 400px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -200px;
    z-index: 9999;
}
#modalSetor{
    width: 250px; 
    height: 250px;
    margin-top: -125px;
    margin-left: -125px;
}

#modalFluxo{
    width: 600px; 
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
}
#modalFluxoPadrao{
   width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
}

#modalSetores{
    width: 400px; 
    height: 300px;
    margin-top:-150px;
    margin-left: -200px;
    overflow: hidden;
}

#modalFluxoProd{
    width: 600px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -300px;
}
#modalVendaDelivery{
    width: 450px; 
    height: 580px;
    margin-top: -290px;
    margin-left: -225px;
}
#modalStatus{
    width: 300px; 
    height: 280px;
    margin-top: -140px;
    margin-left: -150px;
}
#modalMesa{
    width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
}
#modalVendaComanda{
    width: 450px; 
    height: 580px;
    margin-top: -290px;
    margin-left: -225px;
}
#modal_convite{
    width: 400px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -200px;
}
#modalAtribuir{
    width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
}
#modalMeioPag{
    width: 350px; 
    height: 240px;
    margin-top: -120px;
    margin-left: -175px;
}
#modalEnderecoDelivery{
    width: 500px; 
    height: 570px;
    margin-top: -285px;
    margin-left: -250px;
}
#modalOpcionais,
#modalItensGrupo {
    width: 700px;
    height: 520px;
    margin-top: -260px;
    margin-left: -350px;
}
#modalGrupos {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.modal-grupos-conteudo {
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 60px auto;
    padding: 15px;
    border-radius: 8px;
}

#modalReceberVenda{
    width: 350px; 
    height: 430px;
    margin-top: -215px;
    margin-left: -175px;
}
#modalReceberDelivery{
    width: 350px; 
    height: 430px;
    margin-top: -215px;
    margin-left: -175px;
}

/* Modal fundo */
#modalProdutosVenda {
    width: 100%; 
    height: 100%;
    top: 0px;
    left: 0px;
    background-color:#E0E0E0;
}
#listaCategorias {
    display: flex;
    margin-top: 40px;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
}

#listaSetores {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 por linha */
    justify-items: center;
    align-items: center;
    margin: 0 auto;
}

.itemSetor {
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.itemSetor:hover {
    background: #e6e6e6;
}

.itemSetor.selected {
    background: #d0d0d0 !important; 
}

.categoria-item {
    background: black;
    color: white;
    border: 1px solid #0d0505;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    text-align: center;
    font-family: sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoria-item:hover {
    background: #ffffff;
    color: black;
}

.categoria-selecionada {
    background: white;
    color: black;
    font-weight: bold;
}
#buscaProduto {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
}
#buscaProduto:focus {
    border-color: black;
    outline: none;
}

.conteudoB{
    flex: 1;          
    display: flex;
    flex-direction: column; 
    min-height: 300px;
    height: 80%;
}
/* Conteúdo principal do modal */
.modal-conteudoVenda {
    width: 100%;
    height: 92%;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Topo do modal */
.modal-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-topo h2 {
    font-family: sans-serif;
    font-size: 22px;
    margin: 0;
}

.lista-prod {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px;
    box-sizing: border-box; 
}

#listaProdutos::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#listaProdutos {
    border: 2px #BDBDBD solid;
    height: 100%; 
    overflow-y: auto; 
    box-sizing: border-box; 
    margin-bottom: 45px;
    width: 1065px;
    -ms-overflow-style: none;  
    scrollbar-width: none;     
}

#carrinhoLista { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    flex: 1; 
    overflow-y: auto; 
    border: 1px solid #ccc; 
    padding: 5px; 
    border-radius: 5px; 
    background-color: #fff;
}
#carrinhoLista::-webkit-scrollbar { 
    width: 0; 
    height: 0; }

/* Cartão individual */
.produto-cardapio {
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    background: #fafafa;
    font-family: sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: 5px;
    height: 250px;
}

.produto-cardapio img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.produto-cardapio:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.produto-nome {
    margin-top: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

.produto-cod {
    font-size: 12px;
    color: #666;
}
.produto-qtd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.produto-qtd button {
    font-size: 15px;
    font-weight: bold;
    color: white;
    min-width: 26px;     /* mesmo tamanho visual dos botões */
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: black;
}

.produto-qtd button:hover {
    background-color: #444;
}

.enviarProd{
    text-align: center;
    width: 50%;
    margin: 10px; 
    padding: 10px; 
    border:none; 
    background-color:#007bff; 
    color: #fff; 
    border-radius: 5px; 
    cursor:pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}
.enviarProd:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.espacoBuscar{
    flex: 0 0 20%;
    display: flex; 
    flex-direction: column; 
    height: 85%; 
    padding: 5px;
}

.qtd-valor {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    min-width: 26px;     /* mesmo tamanho visual dos botões */
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

.btn_tool{
    margin: 5px;
}

.modal-content {
  position: relative; /* necessário pro botão absoluto funcionar dentro */
  background-color: #fefefe;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  margin: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.listaVenda {
  padding: 10px;
  background-color: white; 
  height: 280px; 
  max-height: 320px;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge antigos */
}

.listaVenda::-webkit-scrollbar {
  display: none; /* Chrome, Safari e outros WebKit */
}

.titulo_secao {
    margin-top: 1px; /* cola na div de cima */
    background-color: #000000; /* só para ver melhor o contorno, pode remover */
    padding: 15px;
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
}

#gravar_produto {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_produto:hover {
    background-color: #5d5d5d;
}

#gravar_cardapio {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_cardapio:hover {
    background-color: #5d5d5d;
}

#gravar_categoria {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_categoria:hover {
    background-color: #5d5d5d;
}

 #fundo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49;
    display: none;
} 

 #fundo2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990;
    display: none;
} 


.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000040;
  z-index: 1000;
  width: 400px;
  height: auto;
  font-family: sans-serif;
  display: none;
}

#confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

#msg_fechar {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    margin-left: auto;
}

#msg_message {
    padding: 10px;
    color: black;
    text-align: center;
    margin: 20px;
}

.close_message {
    width: 70%;
    padding: 10px;
    border: none;
    background-color: #212121;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 auto; 
    display: block; 
}

.close_message:hover {
    background-color: #5a5959;
}

.atc {
    font-family: sans-serif;
    font-size: 25px;
    margin: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* título à esquerda, botão à direita */
    margin-bottom: 10px;
    border-bottom: 1px solid #c6c6c6;
}
.modal-title {
    font-weight: bold;
    font-family: sans-serif;
    font-size: 22px;
}
#cad_estab_voltar {
    margin-left: auto;
    border: none;
    font-size: 22px;
    font-family: sans-serif;
    cursor: pointer;
}

a{
    text-decoration: none;
    font-size: 16px;
}
a:hover {
    transform: scale(1.05);
  }

.comandaItem{
    transition: 0.2s;
}
.comandaItem:hover {
    transform: scale(1.05);
  }

.mesaItem{
    transition: 0.2s;
}
.mesaItem:hover {
    transform: scale(1.05);
  }


.a_cabec{
    color: #212121;
    font-family: sans-serif;
    margin-right: 15px;
}

.x{
    margin-left: auto;
    font-size: 25px;
    font-weight: bold;
    font-family: sans-serif;
    margin: 0 auto; 
    display: block; 
}

.buscar_produto{
    padding: 5px; 
    width: 30%; 
    /* display: none;  */
    margin-top: 10px;
}

.lista-produtos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lista-categorias {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listaCardapios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.produto-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.cardapio-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.categoria-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.produto-img-pequena {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.categoria-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.produto-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.cardapio-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.form-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #fdfdfd;
  width: 300px;
  margin: 0 auto;
  font-family: sans-serif;
}

.form-center label {
  font-weight: bold;
  align-self: flex-start;
  margin-left: 5px;
}

.form-center input[type="text"],
.form-center select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.form-center button {
  padding: 10px 15px;
  background-color: #212121;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.form-center button:hover {
  background-color: #444;
}

/* Fundo escuro atrás do modal */
#view_img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

/* Caixa branca no centro */
#view_img .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    height: 500px;
    max-width: 90%;
    display: flex;
    flex-direction: column; /* empilha imagem e botão */
    justify-content: space-between; /* imagem em cima, botão embaixo */
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.view_img_content img {
    width: 250px;
    height: 300px; /* antes 380px, agora mais alto */
    border-radius: 10px;
    /* box-shadow: 0 0 20px rgba(0,0,0,0.3); */
    object-fit: contain;
}

/* Botão "Adicionar foto" fixo no fim */
.btn-add-photo {
    padding: 12px 25px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
}

.btn-add-photo:hover {
    background-color: #333;
}

.tela-pedidos {
  padding: 20px;
}
.categoria {
  margin-top: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}
.produtos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.produto-card {
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #fff;
}
.produto-img {
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.preco {
  color: green;
  font-weight: bold;
}
.descricao {
  font-size: 14px;
  color: #555;
}

/* Mobile-first: 1 por linha */
.restaurantes-grid {
    display: grid;
    grid-template-columns: 1fr;   /* sempre 1 no celular */
    gap: 10px;
    margin: 10px;
    text-align: center;
}

/* Cartão do restaurante */
.rest-item, .rest-item_cli {
    margin: 20px;
    width: 180px;
    background: white;
    transition: 0.2s;
    border: 2px black solid;
    border-radius: 7px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.rest-item:hover {
    transform: scale(1.05);
}
.rest-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-bottom: 5px;
}
.rest-item_cli:hover {
    transform: scale(1.05);
}
.rest-item_cli img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-bottom: 5px;
}
.rest-nome {
    font-weight: bold;
    font-size: 10px;
}
.tela-pedidos {
    max-width: 100%;
    margin: 50px;   
    }
.categoria {
    margin: 20px 0 15px;
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    }
    /* GRID responsivo */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1px;
    }
.produto-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    }
.produto-card:hover {
    transform: scale(1.03);
    }
.produto-img-pequena {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
    }
.produto-card h3 {
    font-size: 16px;
    margin: 5px 0;
    color: #222;
    }
.descricao {
    font-size: 13px;
    color: #666;
    min-height: 30px;
    }
.preco {
    font-weight: bold;
    color: #007b00;
    margin-top: 8px;
    font-size: 15px;
    }

.linha_cat {
    height: 50px; 
    display: flex;              /* Flex no próprio botão */
    justify-content: center;    /* Centraliza na horizontal */
    align-items: center;        /* Centraliza na vertical */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    background-color: white;
    color: black; 
    border: 3px black solid; 
    border-radius: 7px;
    width: 200px;
    margin-left: 10px;
    transition: 0.2s;
    font-size: 18px;
    font-family: sans-serif;
    text-align: center;         /* Garantia extra para textos longos */
}
.linha_cat.ativo {
    background-color: #007bff; /* cor do botão ativo */
    color: white;
}

.linha_cat:hover {
    transform: scale(1.05);
}

/* Area de vendas */
.tela { 
    display:flex; 
    height:calc(100vh - 75px); 
}

.menu-botoes { 
    display:flex; 
    background:#EEEEEE; 
    padding:15px; 
    align-items:center;
    margin: 10px;
}

.modal-overlay {
    display: none; /* importante */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.modalVenda {
    background: #fff;
    width: 100%;
    max-width: 980px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* limita a altura do modal */
    margin: auto; /* garante centralização */
}
.modal-header { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    padding:14px 18px; 
    border-bottom:1px solid #eee;
 }

 .modal-header h3 { 
    margin:0; 
    font-size:18px;
 }

 .modal-close { 
    background:transparent;
    border:none; 
    font-size:18px; 
    cursor:pointer; 
}

.modal-body { 
    padding:16px; 
    overflow:auto; 
}

.product-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); 
    gap:12px; 
}

.product-card { 
    border:1px solid #e6e6e6; 
    border-radius:8px; 
    padding:8px; 
    display:flex; 
    flex-direction:column; 
    gap:8px; 
    align-items:center; 
}

.product-card img { 
    width:100%; 
    height:100px; 
    object-fit:cover; 
    border-radius:6px; 
    background:#f2f2f2; 
}

.product-card .nome { 
    font-weight:700; 
    text-align:center; 

}
.product-card .preco { 
    color:#333; 
    font-weight:600; 
}

.product-card .add-btn { 
    margin-top:auto; 
    padding:8px 10px; 
    border-radius:6px; 
    border:none; 
    cursor:pointer; 
    background:#28a745;
    color:white; 
    font-weight:700; 

}

.esquerda { 
    flex:2; 
    display:flex; 
    flex-direction:column; 
    background:#EEEEEE; 
    height: 100%;
}

.direita { 
    flex:1; 
    background:#EEEEEE; 
    display:flex; 
    align-items:stretch; 
    justify-content:center; 
    font-size:16px; 
    padding:12px; 
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02); 
    min-width:300px; 
}

.cart { 
    width:100%; 
    max-width:360px; 
    display:flex; 
    flex-direction:column; 
    gap:8px;
}

.cart h1 { 
    margin:0 0 4px 0; 
    font-family: sans-serif; 
}

.cart-items { 
    background:white; 
    border-radius:6px; 
    padding:10px; 
    height: 85%;
    border:1px solid #eee; 
    overflow:auto; 
}

.cart-footer { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:8px; 
}

.cart-footer .total { 
    font-weight:800; 
    font-size:20px; 
    font-family: sans-serif;
}

.cart-footer button { 
    padding:14px 20px; 
    border-radius:6px; 
    border:none; 
    cursor:pointer; 
    background:#2d9cdb; 
    color:#fff; 
    font-weight:700; 
    font-size: 20px; 
}

/* Abas de categoria */
.tabs-categorias {
    display:flex; 
    gap:8px; 
    flex-wrap:wrap; 
    align-items:center;
    padding:8px 0 12px; 
    border-bottom:1px solid #eee; 
    margin-bottom:12px;
}

.form-row { 
    display:flex;
}
.form-row input { 
    padding: 10px;
    width: 85%;
    margin-bottom: 10px;
    margin-left: auto;
}

.modal-actions{
    display:flex; 
    align-items: center;
    justify-content: center;
}

.tab-cat {
    padding:8px 12px; border:1px solid #e6e6e6; border-radius:999px; cursor:pointer;
    background:#f8f8f8; font-size:13px; user-select:none;
}
  
.tab-cat.is-active {
    background:#2d9cdb; color:#fff; border-color:#2d9cdb; font-weight:700;
}

.close-modal {
    margin-left: auto;
    font-size: 20px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .restaurantes-grid { grid-template-columns: repeat(2, 1fr); }
    .form1,
    .form-center {width: 90%; padding: 20px 10px;
}

  .linha {
    width: 90%;
    padding: 10px;
    margin-left: 0;
  }

  button {
    width: 100%;
    min-width: unset;
    font-size: 16px;
    margin: 10px 0;
  } 

  button:hover {
    transform: scale(1.05);
  }

  .buscar_produto {
    width: 90%;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  #input_box {
    width: 90%;
    margin-left: -45%;
  }

  .dropdown-menu {
    min-width: 90%;
  }

  .produto-linha,
  .categoria-linha,
  .cardapio-linha {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .produto-img-pequena {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .x {
    font-size: 20px;
  }
   .produto-img-pequena {
     width: 90px;
    }
    .produto-card {
    padding: 10px;
    }
}
@media (min-width: 768px) {
    .restaurantes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:900px){
    .tela{flex-direction:column;height:auto;}
    .direita{min-width:auto;width:100%;order:2;}
    .esquerda{order:1;}
    .modal{max-width:100%; height:90vh;}
}
@media (min-width: 1024px) {
  .restaurantes-grid { grid-template-columns: repeat(5, 1fr); }
}
