<?php // Ponto de entrada do PWA. Configure o DocumentRoot para /public quando possível. ?>
<!doctype html><html lang="pt-BR"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="theme-color" content="#0f172a"><link rel="manifest" href="manifest.json"><link rel="stylesheet" href="assets/app.css"><title>FlowReports Cartório PWA</title></head><body>
<div id="app">
  <section id="login" class="login-screen hidden"><form class="login-card" id="loginForm"><div class="brand"><span>FR</span><div><strong>FlowReports</strong><small>Cartório PWA</small></div></div><h1>Acesso ao painel</h1><label>E-mail<input type="email" name="email" required autocomplete="username"></label><label>Senha<input type="password" name="password" required autocomplete="current-password"></label><button>Entrar</button><p class="muted">Painel independente de relatórios cartorários.</p></form></section>
  <main id="panel" class="hidden shell"><aside class="sidebar"><div class="brand"><span>FR</span><div><strong>FlowReports</strong><small id="storeName">Cartório</small></div></div><nav><button data-view="dashboard" class="active">Dashboard</button><button data-view="cartorio">Cartório inteligente</button><button data-view="orders">Pedidos</button><button data-view="reports">Relatórios</button><button data-view="import">Importar XML</button><button id="logoutBtn">Sair</button></nav></aside>
  <section class="content"><header class="topbar"><button id="menuBtn">☰</button><div><h1 id="pageTitle">Dashboard</h1><p id="pageSub">Relatórios financeiros e operacionais do cartório</p></div></header>
  <section class="filters card"><label>De<input type="date" id="from"></label><label>Até<input type="date" id="to"></label><label>Status<input id="status" class="smart-input" list="statusList" placeholder="on-hold, processing..." data-options="statuses"></label><label>Produto<input id="product" class="smart-input" list="productList" placeholder="2ª via, busca..." data-options="products"></label><label>Buscar<input id="q" placeholder="cliente, pedido, e-mail..."></label><button id="applyFilters">Filtrar</button><datalist id="statusList"></datalist><datalist id="productList"></datalist><datalist id="shippingList"></datalist><datalist id="cityList"></datalist><datalist id="stateList"></datalist><datalist id="certTypeList"></datalist><datalist id="modeList"></datalist><datalist id="metaKeyList"></datalist></section>
  <section id="view-dashboard" class="view"></section><section id="view-cartorio" class="view hidden"></section><section id="view-orders" class="view hidden"></section><section id="view-reports" class="view hidden"></section><section id="view-import" class="view hidden"></section></section></main>
</div><div id="touchSuggest" class="touch-suggest hidden"></div><script src="assets/app.js"></script></body></html>
