/* Estilo geral da página */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: #f7f9f7; color: #263c32; }
header, main, footer { max-width: 1080px; margin: auto; padding: 24px 30px; }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dce5de; }
header a { font-size: 27px; font-weight: 750; text-decoration: none; color: #206046; }
header p, .subtitulo, .nota, footer { color: #627169; }
p { line-height: 1.6; }
nav, .abas-codigo { display: flex; gap: 8px; margin-bottom: 30px; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 7px; background: #e8eeea; color: #294c3b; padding: 11px 16px; cursor: pointer; }
button:hover { background: #d8e5dc; }
button.ativo, .principal { background: #206046; color: white; }
button.ativo:hover, .principal:hover { background: #164b35; }
button:focus-visible, a:focus-visible, pre:focus-visible { outline: 3px solid #b36b0a; outline-offset: 3px; }
h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; margin: 12px 0; }
h2 { font-size: 21px; margin: 0 0 24px; }
.subtitulo { margin-bottom: 32px; }
.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.cadastro { padding: 25px; background: white; border: 1px solid #dce5de; border-radius: 12px; border-top: 5px solid #dfb95e; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
label span { font-weight: 400; color: #627169; }
input, select, textarea { display: block; width: 100%; border: 1px solid #b8c9bf; border-radius: 6px; padding: 11px; margin-bottom: 19px; background: #fff; color: #263c32; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #206046; outline-offset: 2px; }
.principal { width: 100%; }
#mensagem { font-size: 14px; margin-bottom: 0; }
.titulo-lista { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-top: 5px; }
#contador { font-size: 13px; color: #627169; white-space: nowrap; }
#lista-cardapio { list-style: none; padding: 0; margin: 0; }
.item-prato { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 23px; margin-bottom: 14px; background: white; border: 1px solid #dce5de; border-radius: 9px; }
.item-info { min-width: 0; overflow-wrap: anywhere; }
.item-info h3 { margin: 0 0 7px; font-size: 19px; }
.item-info p { margin: 0 0 13px; font-size: 14px; color: #627169; white-space: pre-wrap; }
.item-categoria { display: inline-block; border-radius: 5px; background: #edf3e7; color: #3d6030; padding: 4px 8px; font-size: 12px; }
.item-preco { font-weight: 700; color: #206046; white-space: nowrap; }
.vazio { text-align: center; color: #627169; padding: 50px 24px; border: 1px dashed #b8c9bf; border-radius: 9px; }
.nota, footer { font-size: 13px; }
footer { margin-top: 35px; border-top: 1px solid #dce5de; text-align: center; }
.abas-codigo { margin: 25px 0 15px; }
pre { padding: 24px; background: #20342a; color: #edf5ef; border-radius: 9px; max-height: 550px; overflow: auto; line-height: 1.7; font-size: 13px; tab-size: 2; }
[hidden] { display: none !important; }
@media (max-width: 750px) {
  .layout { grid-template-columns: 1fr; }
  header p { display: none; }
  header, main, footer { padding: 22px 20px; }
}
@media (max-width: 420px) {
  .item-prato { align-items: flex-start; flex-direction: column; gap: 12px; }
  .titulo-lista h2 { font-size: 19px; }
}
