[hidden] { display: none !important; }
:root {
  --bg: #f6f6f4; --card: #fff; --ink: #1d1d1b; --muted: #6b6b66; --line: #e4e3df;
  --brand: #e4572e; --brand-ink: #fff; --ok: #1f8a4c; --ok-bg: #e3f4ea; --bad: #b42318; --bad-bg: #fde8e6;
  --wa: #1fa855; --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; padding-top: 24px; padding-bottom: 48px; }
.hero { background: var(--ink); color: #fff; padding: 28px 0 22px; }
.hero h1 { font-size: 1.8rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: #d6d6d0; margin: 0 0 14px; font-size: .95rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge.open { background: var(--ok-bg); color: var(--ok); }
.badge.closed { background: var(--bad-bg); color: var(--bad); }
.notice { background: #fff6e0; border: 1px solid #f1d58a; padding: 10px 14px; border-radius: var(--radius); }
.error { color: var(--bad); background: var(--bad-bg); padding: 8px 12px; border-radius: 8px; }
.fine { color: var(--muted); font-size: .85rem; }
.cats { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: var(--bg); }
.cats a { white-space: nowrap; text-decoration: none; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.cat { margin: 12px 0 24px; }
.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.item p { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.block { width: 100%; margin-top: 10px; }
.btn.add { width: 44px; height: 44px; padding: 0; font-size: 1.4rem; border-radius: 50%; background: var(--brand); color: #fff; border: 0; flex: none; }
.pulse { transform: scale(1.15); transition: transform .15s; }
.glow { box-shadow: 0 0 0 3px #9be3b5; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.link.danger { color: var(--bad); }
.cart-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand); color: #fff; border: 0; border-radius: 14px; padding: 14px 18px; font: inherit; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, 100%); max-height: 92vh; }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog form { padding: 18px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; padding: 10px 12px; }
legend { font-weight: 600; padding: 0 4px; }
label { display: block; font-size: .9rem; margin: 8px 0; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
label.inline input { width: auto; margin: 0; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.row.between { justify-content: space-between; align-items: center; }
.row.between > * { flex: none; }
.lines { list-style: none; padding: 0; margin: 8px 0; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.qty { display: inline-flex; gap: 6px; align-items: center; }
.totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.steps { list-style: none; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; text-align: center; font-size: .78rem; padding-top: 10px; border-top: 4px solid var(--line); color: var(--muted); }
.steps li.done { border-color: var(--ok); color: var(--ink); font-weight: 600; }
.qr { display: flex; justify-content: center; margin: 10px 0; }
.qr svg { width: 220px; height: 220px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 32px 0 96px; }
.home { text-align: center; padding-top: 80px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 20px; }
.panel-head nav { display: flex; gap: 16px; flex-wrap: wrap; }
.panel-head nav a { text-decoration: none; opacity: .8; }
.panel-head nav a.active { opacity: 1; border-bottom: 2px solid var(--brand); }
.panel-head form { margin: 0; }
.panel { padding: 16px 20px 48px; max-width: 1400px; margin: 0 auto; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { margin: 0; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; }
.board h2 { font-size: 1rem; }
.board h2::after { content: " (" attr(data-count) ")"; color: var(--muted); font-weight: 400; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 80px; }
.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: .92rem; }
.order header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.order p { margin: 4px 0; }
.order.refused { opacity: .55; }
.order .obs { background: #fff6e0; padding: 4px 8px; border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); display: none; }
.item-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item-form input { width: auto; flex: 1 1 160px; margin: 0; }
.item-form input.price { flex: 0 0 100px; }
.item-form.new { border: 0; padding-top: 12px; }
code { background: #eee; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 900px) { .board { grid-template-columns: repeat(4, 280px); } }

/* Avisos de pagamento e Mensalidade */
.alert { background: #fff4d6; border: 1px solid #f0c04a; color: #6b4b00; padding: .6rem .8rem; border-radius: 8px; }
.banner { margin: 0 0 1rem; }
.banner a { font-weight: 700; color: inherit; }
.big { font-size: 1.5rem; font-weight: 700; margin: .25rem 0; }
fieldset { border: 1px solid #e3e3e3; border-radius: 8px; padding: .6rem .8rem; margin: .8rem 0; }
legend { font-weight: 700; padding: 0 .3rem; }
