:root {
  --marrom: #5b3a29;
  --marrom-esc: #3d2619;
  --creme: #f6efe0;
  --creme-2: #ece0c7;
  --amarelo: #f1d46c;
  --amarelo-forte: #e2b92b;
  --texto: #2b1d14;
  --texto-2: rgba(43, 29, 20, .62);
  --linha: rgba(43, 29, 20, .12);
  --verde: #2f7d4f;
  --azul: #2c6aa0;
  --laranja: #d9662b;
  --vermelho: #b8392b;
  --raio: 16px;
  --sombra: 0 6px 24px rgba(61, 38, 25, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--creme); color: var(--texto); font-size: 17px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; border: 0; }
input, textarea, select { font: inherit; }
.oculto { display: none !important; }

/* Topo */
.topo {
  background: var(--marrom); color: #fff; padding: 14px 18px 18px;
  border-radius: 0 0 28px 28px; position: relative;
}
.topo .marca { display: flex; align-items: center; gap: 10px; }
.selo { background: var(--amarelo); color: var(--marrom-esc); font-weight: 800; font-size: 12px; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; }
.topo h1 { margin: 10px 0 2px; font-size: 26px; font-weight: 700; }
.topo .sub { opacity: .78; font-size: 14px; }
.mesa-badge { position: absolute; right: 16px; top: 14px; background: var(--amarelo); color: var(--marrom-esc); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Botões */
.btn { background: var(--marrom); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 17px; width: 100%; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; }
.btn.amarelo { background: var(--amarelo); color: var(--marrom-esc); }
.btn.claro { background: #fff; color: var(--marrom); border: 1.5px solid var(--marrom); }
.btn.verde { background: var(--verde); }
.btn.vermelho { background: var(--vermelho); }
.btn.peq { padding: 9px 12px; font-size: 15px; width: auto; border-radius: 10px; }

/* Cards / pílulas */
.card { background: #fff; border-radius: var(--raio); padding: 16px; box-shadow: var(--sombra); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--creme-2); color: var(--marrom-esc); }
.pill.recebido { background: #fde9b8; color: #7a5300; }
.pill.preparo { background: #ffd8bf; color: #8a3b0c; }
.pill.pronto { background: #cfeedd; color: #1d5b37; }
.pill.entregue { background: #e4e4e4; color: #444; }
.pill.cancelado { background: #f6d0cb; color: #8a2216; text-decoration: line-through; }

/* Folha inferior (bottom sheet) */
.fundo { position: fixed; inset: 0; background: rgba(30, 18, 10, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fundo.on { opacity: 1; pointer-events: auto; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; background: var(--creme); border-radius: 24px 24px 0 0; z-index: 50; max-height: 90vh; overflow: auto; transform: translateY(105%); transition: transform .25s ease; padding: 10px 18px 24px; }
.folha.on { transform: translateY(0); }
.folha .alca { width: 44px; height: 5px; background: var(--linha); border-radius: 3px; margin: 4px auto 12px; }
.folha h2 { margin: 4px 0 6px; font-size: 22px; }

/* Aviso (toast) */
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%) translateY(-20px); background: var(--marrom-esc); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 80; opacity: 0; transition: all .25s; max-width: 92vw; text-align: center; font-size: 15px; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.erro { background: var(--vermelho); }

/* Login equipe */
.login { max-width: 360px; margin: 12vh auto; padding: 0 18px; text-align: center; }
.login input { width: 100%; font-size: 28px; letter-spacing: .4em; text-align: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--linha); margin: 18px 0 12px; background: #fff; }
.login h1 { margin-bottom: 0; }
.login p { color: var(--texto-2); }

.campo { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--linha); background: #fff; font-size: 17px; }
.campo:focus { outline: 2px solid var(--amarelo-forte); border-color: transparent; }
.rotulo { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: var(--texto-2); }
