body { margin: 0; font-family: Arial, sans-serif; background-color: whitesmoke; }
.login { width: 28.66vw; margin: 100px auto; text-align: center; border: none; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.login p { text-align: left; margin-left: 10%; }
.login h1 { font-size: 50px; }
.login a { color: rgb(142,234,238); font-size: 20px; }
.login input:not(:last-child) { width: 80%; height: 4.5vh; background-color: rgb(212,212,212); border-radius: 15px; }
.submit { margin-top: 15px; background-color: rgb(246,4,142); color: white; border: none; height: 4vh; width: 60%; font-weight: bold; }
.login-error { color: red; background-color: #ffe0e0; border: 1px solid red; padding: 10px; border-radius: 5px; margin: 0 10% 15px 10% !important; text-align: center !important; }
.header { position: relative; background-color: white; z-index: 10000; width: calc(100% - 2px); height: 4vh; border: 1px solid black; box-sizing: border-box; }
.container { display: flex; align-items: flex-start; gap: 20px; min-height: 100vh; }
.menumenu { width: 15vw; height: 100vh; background-color: rgb(246,4,142); display: flex; flex-direction: column; padding: 20px 0; box-sizing: border-box; position: sticky; top: 0; overflow-y: auto;}
.menumenu h2 { margin-top: 0; text-align: center; color: white; margin-bottom: 20px; }
.menumenu button { margin-left: auto; margin-right: auto; background-color: rgb(252,174,219); border: none; border-radius: 5px; width: 80%; height: 35px; margin-bottom: 5px; text-align: left; padding-left: 15px; cursor: pointer; transition: background-color 0.2s; font-weight: bold;}
.menumenu button:hover { filter: brightness(0.95); }
.menumenu .logout-button { display: block; margin: auto auto 20px auto; background-color: #d9534f; border: none; border-radius: 5px; width: 80%; height: 30px; text-align: center; cursor: pointer; color: white; text-decoration: none; line-height: 30px; font-size: 14px; font-weight: bold;}
.menumenu .logout-button:hover { background-color: #c9302c; }

/* ======== NOVO: SUBMENU STYLES ========= */
.menu-item-with-submenu { width: 100%; display: flex; flex-direction: column; align-items: center; }
.menu-toggle { display: flex; justify-content: space-between; align-items: center; }
.menu-toggle .arrow { font-size: 10px; transition: transform 0.3s ease; }
.submenu { display: none; width: 80%; margin-bottom: 5px; background-color: rgba(0, 0, 0, 0.1); border-radius: 5px; padding: 5px 0; }
.submenu button { width: 90%; height: 30px; background-color: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 3px; font-weight: normal; font-size: 13px; padding-left: 10px;}
.submenu button:hover { background-color: rgba(255, 255, 255, 0.2); }

.area-conteudo { margin-top: 7vh; flex: 1; padding: 0 20px; display: flex; flex-direction: column; }
#conteudo { flex: 1; }
.mensagem-feedback { padding: 15px; margin: 20px 0 10px 0; border-radius: 5px; color: #fff; font-weight: 500; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: opacity 0.5s ease-in-out; }
.mensagem-feedback.sucesso { background-color: #28a745; border: 1px solid #218838; }
.mensagem-feedback.erro { background-color: #dc3545; border: 1px solid #c82333; }
.menuTable { margin-top: 50px; }
.menuTable p { font-weight: bold; font-size: 18px; margin-bottom: 10px; }
.menuTable table { border-collapse: collapse; width: 1000px; }
.menuTable td, .menuTable th { border: 1px solid black; padding: 8px; }
.menuTable th.produto { background-color: rgb(255,218,239); }
.menuTable th.preco { background-color: rgb(235,235,235); }
.menuTable th.data { background-color: rgb(255,218,239); }
.caixa { margin-top: 50px; }
.caixa h3 { color: rgb(255, 0, 128); font-size: 20px; margin-bottom: 10px; }
.valor-caixa { width: 180px; height: 90px; border: 1px solid #ccc; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; }
.containerFluxo h2 { font-size: 28px; margin-bottom: 5px; }
.containerFluxo p { color: #666; margin-bottom: 25px; }
.cards-caixa { display: flex; gap: 20px; margin-bottom: 25px; }
.cards-caixa .card { flex: 1; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; text-align: center; }
.cards-caixa .card h3 { margin: 0 0 10px 0; color: #555; font-size: 16px; font-weight: normal; }
.cards-caixa .card p { margin: 0; font-size: 24px; font-weight: bold; }
.cards-caixa .card.entrada p { color: #28a745; }
.cards-caixa .card.saida p { color: #dc3545; }
.cards-caixa .card.saldo.positivo p { color: #007bff; }
.cards-caixa .card.saldo.negativo p { color: #dc3545; }
.fluxo-grid { display: flex; gap: 20px; align-items: flex-start; }
.fluxo-col-esquerda { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.fluxo-col-direita { flex: 2; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }
.fluxo-col-direita.menuTable { margin-top: 0; }
.fluxo-col-direita.menuTable table { width: 100%; min-width: auto; }
.novo-registro-caixa, .saldo-detalhado { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }
.novo-registro-caixa h3, .saldo-detalhado h3 { margin-top: 0; font-size: 18px; color: #333; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 15px; }
.saldo-detalhado ul { list-style: none; padding: 0; margin: 0; }
.saldo-detalhado ul li { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f9f9f9; font-size: 15px; }
.saldo-detalhado ul li:last-child { border-bottom: none; }
.saldo-detalhado ul li img { width: 24px; height: 24px; object-fit: contain; margin-right: 15px; }
.saldo-detalhado ul li span { margin-left: auto; font-weight: bold; }
.filtros-historico input:focus, .filtros-historico select:focus { border-color: rgb(246,4,142) !important; }
.containerGeral{ width: 65%; margin-top: -20px; margin-left: 15%; }
.containerProdutos .titulo_busca h2 { font-size: 26px; margin-bottom: 15px; }
.containerGeral .titulo_busca{ display: flex; height: 70px; }
.containerGeral .titulo_busca h2 { font-size: 28px; margin-bottom: 25px; }
.campo-busca input { margin-top: 14px; width: 73.4%; padding: 10px 40px 10px 40px; border: 1px solid #ccc; border-radius: 15px; outline: none; font-size: 16px; height: 20px; }
.containerGeral .campo-busca { position: relative; width: 30%; max-width: 600px; margin-left: 62.2%; margin-bottom: 0; }
.quadroVender { width: 100%; height: 500px; border: 2px solid rgb(217,217,217); border-radius: 10px; display: flex; flex-direction: column; align-items: initial; padding-top: 0; padding-left: 20px; box-sizing: border-box; overflow-x: hidden; }
.campo-busca input:focus { border-color: #007bff; }
.campo-busca img:first-of-type { position: absolute; left: 12px; top: 59%; transform: translateY(-50%); width: 20px; height: 20px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.campo-busca img.filtro-icone { position: absolute; right: 15px; top: 59%; transform: translateY(-50%); width: 20px; height: 20px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.campo-busca img:hover { opacity: 1; }
.titulo-caixa { margin-top: 20px; }
.boxFormaPagamento { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.payment-method { flex: 1; min-width: 150px; max-width: 200px; height: 120px; border: 2px solid rgb(217,217,217); border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; text-align: center; padding: 10px; box-sizing: border-box; }
.payment-method h3 { margin: 10px 0; font-size: 1em; }
.payment-method img { width: 50px; height: 50px; object-fit: contain; }
.payment-method:hover { border-color: rgb(246,4,142); box-shadow: 0 0 8px rgba(246, 4, 142, 0.4); }
.payment-method.selected { border-color: #28a745; background-color: #e9f5ec; box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
.boxConfirmarPagamento { display: flex; margin-top: 20px; margin-left: 0; height: 60px; width: 1000px; }
.total-venda { flex: 3; display: flex; align-items: center; padding: 0 20px; border: 2px solid rgb(217, 217, 217); border-radius: 8px 0 0 8px; margin-left: 0; }
.total-venda img { width: 40px; height: auto; margin-right: 15px; }
.total-venda h3 { margin: 0; font-size: 1.5em; }
.confirmar-venda-btn { flex: 2; display: flex; justify-content: center; align-items: center; background-color: #28a745; color: white; border-radius: 0 8px 8px 0; transition: background-color 0.3s; cursor: pointer; }
.confirmar-venda-btn:hover { background-color: #218838; }
.confirmar-venda-btn h3 { margin: 0; font-weight: bold; }
.venderTable { width: 100%; max-width: 900px; margin: 20px; margin-top: 20px; margin-left: 40px; font-family: Arial, sans-serif; font-size: 14px; color: #333; }
.venderTable table { width: 100%; border-collapse: collapse; }
.venderTable th { text-align: left; color: #888; font-weight: bold; padding: 8px 0; border-bottom: 2px solid #eee; }
.venderTable th.quantidade { text-align: right; padding-right: 5px; }
.venderTable th.estoque { text-align: center; }
.venderTable td { padding: 10px 0; border-bottom: 1px solid #eee; vertical-align: middle; }
.venderTable td.estoque-disponivel { text-align: center; font-weight: bold; color: #555; }
.venderTable td strong { font-weight: bold; }
.qtd { text-align: right; white-space: nowrap; font-size: 18px; font-weight: bold; }
.qtd .num { margin: 0 5px; }
.qtd button { border: none; background: none; font-size: 18px; cursor: pointer; color: #000; padding: 0 5px; transition: opacity 0.2s; }
.qtd button:hover { opacity: 0.6; }
.containerProdutos{ width: 60.5%; margin-top: -20px; margin-left: 15%; }
.containerProdutos h2 { font-size: 26px; margin-bottom: 15px; }
.containerProdutos .estoque-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.containerProdutos .estoque-header h2 { margin: 0; }
.containerProdutos .campo-busca { right: 0; width: 31%; }
.containerProdutos .campo-busca img:last-of-type { right: 12px; }

.alerta-estoque { background-color: #fff3cd; color: #856404; padding: 15px 20px; border-left: 5px solid #ffc107; margin-bottom: 25px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.alerta-estoque h3 { margin-top: 0; color: #856404; font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.alerta-estoque p { margin-top: 0; margin-bottom: 10px; font-size: 15px; }
.alerta-estoque ul { margin: 0; padding-left: 20px; }
.alerta-estoque li { margin-bottom: 6px; font-size: 14px; }

.tabelaProdutos { width: 100%; height: 50vh; border: 1px solid #ddd; border-radius: 8px; overflow-x: auto; overflow-y: auto; white-space: nowrap; }
.tabelaProdutos table { width: 100%; border-collapse: collapse; }
.tabelaProdutos th, .tabelaProdutos td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #ddd; vertical-align: middle; color: #333; }
.tabelaProdutos thead { background-color: #f9f9f9; }
.tabelaProdutos th { color: #666; font-weight: bold; }
.tabelaProdutos td .input-tabela { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; margin: 0; background-color: #fff; }
.tabelaProdutos .acoes { text-align: right; white-space: nowrap; }
.tabelaProdutos .acoes button { vertical-align: middle; margin-left: 8px; }
.tabelaProdutos tbody tr.produto-inativo { background-color: #f8f9fa; text-decoration: line-through; color: #6c757d; }
.tabelaProdutos tbody tr.produto-inativo input { background-color: #e9ecef; color: #6c757d; border-color: #ced4da; }
.ver-tudo { display: inline-block; margin-top: 6px; margin-left: 8px; color: rgb(0, 180, 255); text-decoration: none; }
.ver-tudo:hover { text-decoration: underline; }
.novoProduto { width: 100%; margin-top: 25px; margin-bottom: 4%; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-sizing: border-box; background-color: #fdfdfd; }
.novoProduto h3 { margin-top: 0; margin-bottom: 15px; font-weight: bold; font-size: 1.2em; }
.form-novo-produto { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.linhaForm { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 15px; border: none; width: 100%; }
.linhaForm select, .linhaForm input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.btnAdicionar { display: block; width: auto; padding: 10px 20px; color: white; background-color: rgb(246,4,142); text-decoration: none; font-weight: bold; border: none; border-radius: 6px; margin-top: 5px; cursor: pointer; transition: background-color 0.2s; }
.btnAdicionar:hover { background-color: rgb(216, 4, 122); text-decoration: none; }
.estoque-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.estoque-header h2 { margin: 0; font-size: 28px; color: #333; }
.containerEstoque .campo-busca { position: relative; width: 350px; max-width: 350px; margin-left: 0; margin-bottom: 0; }
.containerEstoque .campo-busca input { width: 100%; padding: 10px 40px 10px 40px; border: 1px solid #ccc; border-radius: 8px; outline: none; font-size: 16px; height: 40px; box-sizing: border-box; }
.containerEstoque .campo-busca input:focus { border-color: rgb(246,4,142); box-shadow: 0 0 5px rgba(246, 4, 142, 0.3); }
.containerEstoque .campo-busca img { position: absolute; top: 60%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0.6; }
.containerEstoque .campo-busca img:first-of-type { left: 12px; }
.containerEstoque .campo-busca img.filtro-icone { right: 18px; cursor: pointer; }
.quadro-estoque { width: 100%; border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 25px; box-sizing: border-box; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.estoqueTable { width: 100%; max-width: 100%; margin: 0; font-family: Arial, sans-serif; font-size: 14px; color: #333; }
.estoqueTable table { width: 100%; border-collapse: collapse; }
.estoqueTable th { text-align: left; color: #888; font-weight: normal; padding: 12px 8px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.estoqueTable td { padding: 15px 8px; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.estoqueTable tbody tr:last-child td { border-bottom: none; }
.estoqueTable td strong { font-weight: 500; font-size: 16px; color: #000; }
.estoqueTable .align-right { text-align: right; }
.containerRelatorios { margin-bottom: 50px; }
.relatorios-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.relatorios-header h2 { margin: 0; font-size: 28px; color: #333; }
.relatorios-periodo { display: flex; gap: 10px; margin-bottom: 25px; }
.periodo-btn { padding: 8px 16px; border: 1px solid #ccc; background-color: #f9f9f9; color: #333; border-radius: 20px; cursor: pointer; font-weight: 500; transition: all 0.2s ease-in-out; }
.periodo-btn:hover { background-color: #e9e9e9; border-color: #bbb; }
.periodo-btn.active { background-color: rgb(246, 4, 142); color: white; border-color: rgb(246, 4, 142); }
.relatorios-summary { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap;}
.summary-box { flex: 1; min-width: 200px; background-color: #fff; padding: 20px; border-radius: 10px; border: 1px solid #e0e0e0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.summary-box h4 { margin: 0 0 10px 0; color: #666; font-weight: normal; font-size: 1em; }
.summary-box p { margin: 0; font-size: 1.8em; font-weight: bold; color: #333; }
.relatorios-chart-container { width: 100%; height: 350px; margin-bottom: 30px; padding: 20px; box-sizing: border-box; background-color: #fff; border-radius: 10px; border: 1px solid #e0e0e0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.filtro-dropdown { display: none; position: absolute; top: 115%; right: 0; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 15px 20px; z-index: 1000; width: auto; min-width: 220px; max-width: 550px; box-sizing: border-box; }
.filtro-dropdown-content { display: flex; flex-wrap: wrap; gap: 15px 30px; }
.filtro-coluna { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.filtro-dropdown h4 { margin-top: 0; margin-bottom: 2px; font-size: 1em; color: #333; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
.filtro-dropdown label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; font-size: 14px; color: #555; font-weight: 500; }
.filtro-dropdown label:hover { color: #000; }
.filtro-dropdown label:last-child { margin-bottom: 0; }
.filtro-dropdown input[type="radio"] { accent-color: rgb(246,4,142); }
.filtro-divider { border: none; border-top: 1px solid #f0f0f0; margin: 12px 0; }
.filtro-categorias-container .loading-categories { font-size: 13px; color: #888; margin: 0; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: none; justify-content: center; align-items: center; z-index: 20000; }
.modal-content { background-color: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); width: 90%; max-width: 400px; position: relative; text-align: center; }
.modal-close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; transition: color 0.2s; }
.modal-close-btn:hover { color: #333; }
.modal-content h2 { margin-top: 0; margin-bottom: 10px; color: #333; }
.modal-content p { margin-bottom: 20px; color: #666; }
#adminLoginForm label { display: block; text-align: left; margin-bottom: 5px; font-weight: bold; color: #555; }
#adminLoginForm input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; background-color: #f9f9f9; }
#adminLoginForm .submit { width: 100%; height: 45px; font-size: 16px; margin-top: 10px; border-radius: 5px; }
.containerPedidos { margin-top: 0px; }
.containerPedidos h2 { font-size: 28px; margin-bottom: 5px; color: #333; }
.containerPedidos p { color: #666; margin-bottom: 25px; }
.pedido-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.pedido-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.pedido-card-header h3 { margin: 0; color: rgb(246, 4, 142); }
.pedido-card-header span { font-size: 14px; color: #777; }
.pedido-info { font-size: 16px; color: #444; margin-bottom: 15px; }
.pedido-itens { list-style: none; padding: 0; margin: 0 0 20px 0; background: #f9f9f9; border-radius: 5px; padding: 10px 15px; }
.pedido-itens li { padding: 8px 0; border-bottom: 1px dashed #ccc; display: flex; justify-content: space-between; }
.pedido-itens li:last-child { border-bottom: none; }
.btn-confirmar-pedido { background: #28a745; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-confirmar-pedido:hover { background: #218838; }
.btn-cancelar-pedido { background: #dc3545; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; margin-right: 10px; transition: 0.2s; }
.btn-cancelar-pedido:hover { background: #c82333; }
.sem-pedidos { text-align: center; color: #888; font-size: 18px; padding: 50px; background: #fff; border-radius: 8px; border: 1px dashed #ccc; }