/* Cozinha Fácil — Modo Restauração */
#restaurante { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }

/* botão de entrada — generoso, vermelho, texto branco */
.rest-enter-btn {
  width: 100%; margin-top: 12px; height: 54px; border-radius: 16px;
  background: #9B2C20; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  box-shadow: 0 6px 18px rgba(155, 44, 32, .38);
  transition: transform 150ms ease, filter 150ms ease;
}
.rest-enter-btn:active { transform: scale(.98); }
.rest-enter-btn:hover { filter: brightness(1.06); }
.rest-enter-btn .lucide { width: 22px; height: 22px; }

/* logótipo do estabelecimento */
.rest-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #fff; }
.rest-settings {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 16px;
}
.rest-settings .rs-head { display: flex; align-items: center; gap: 12px; }
.rest-settings .rs-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  border: 1.5px solid var(--hair); background: var(--paper);
  display: grid; place-items: center; color: var(--ink-soft); flex: 0 0 56px;
}
.rest-settings .rs-logo .lucide { width: 24px; height: 24px; }
.rest-settings .rs-name { flex: 1; min-width: 0; }
.rest-settings .rs-name b { font-family: var(--serif); font-weight: 700; font-size: 18px; display: block; }
.rest-settings .rs-name span { font-size: 12px; color: var(--ink-soft); }
.rest-settings .rs-actions { display: flex; gap: 8px; margin-top: 12px; }
.rest-settings .rs-actions button {
  flex: 1; height: 38px; border-radius: 999px;
  border: 1.5px solid var(--hair); color: var(--ink-soft);
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rest-settings .rs-actions button .lucide { width: 15px; height: 15px; }

/* botão exportar PDF */
.r-pdf-btn {
  width: 100%; height: 46px; border-radius: 999px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 14px;
}
.r-pdf-btn .lucide { width: 17px; height: 17px; }

/* área de impressão / PDF */
#print-area { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; padding: 24px; color: #111; }
  #print-area .pa-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; }
  #print-area .pa-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
  #print-area h1 { font-size: 22px; margin: 0; }
  #print-area h2 { font-size: 15px; margin: 18px 0 6px; border-bottom: 1px solid #999; padding-bottom: 3px; }
  #print-area .pa-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; border-bottom: 1px dotted #ccc; }
  #print-area .pa-foot { margin-top: 22px; font-size: 11px; color: #555; }
}

/* topo */
.rest-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
}
html[data-theme="dark"] .rest-top { background: #3A2E24; }
.rest-brand { display: flex; align-items: center; gap: 9px; color: var(--paper); text-align: left; }
.rest-brand .lucide { width: 22px; height: 22px; color: var(--gold-soft); }
.rest-brand #rest-name { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.1; }
.rest-brand .rest-edit { width: 14px; height: 14px; color: var(--gold-soft); opacity: .8; }
.rest-home-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #C0392B; color: #fff;
  border-radius: 12px; padding: 12px 18px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(192, 57, 43, .4);
}
.rest-home-btn .lucide { width: 18px; height: 18px; }

.rest-tagline {
  display: flex; gap: 8px; align-items: center;
  background: var(--gold); color: #fff;
  padding: 9px 16px; font-size: 12px; line-height: 1.3; font-weight: 600;
}
.rest-tagline .lucide { width: 16px; height: 16px; flex: 0 0 16px; }

.rest-wrap { padding: 14px 16px 16px; }
.rview { display: none; }
.rview.on { display: block; }

/* períodos e dias */
.r-periodo { margin-bottom: 12px; }
.r-weekdays { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.r-weekdays::-webkit-scrollbar { display: none; }
.r-weekdays button {
  flex: 0 0 auto; min-width: 46px; height: 38px; border-radius: 12px;
  border: 1.5px solid var(--hair); background: var(--card); color: var(--ink-soft);
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.r-weekdays button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
html[data-theme="dark"] .r-weekdays button.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* formulário de adicionar */
.r-add { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.r-add-row { display: flex; gap: 8px; align-items: center; }
.r-add-row .f-input { padding: 10px 12px; min-width: 0; }
.r-add-row select.f-input { flex: 1; }
.r-qty { width: 70px; flex: 0 0 70px; text-align: center; }
.r-unit { width: 84px; flex: 0 0 84px; }
.r-price { width: 90px; flex: 0 0 90px; }
.r-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 13px;
  padding: 4px 2px 12px;
}
.r-link .lucide { width: 16px; height: 16px; }

/* bandas de estação / categoria */
.r-zone-band {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--paper);
  border-radius: 12px; padding: 9px 14px; margin: 14px 0 8px;
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
}
html[data-theme="dark"] .r-zone-band { background: #3A2E24; }
.r-zone-band span { background: var(--gold); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 11px; }

/* itens */
.r-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: var(--shadow); margin-bottom: 8px;
  border-left: 5px solid var(--gold); padding: 4px 4px 4px 12px;
}
.r-item-tx { flex: 1; min-width: 0; text-align: left; padding: 8px 0; }
.r-item-tx h4 { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.r-item-tx p { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.r-qtag { font-size: 11px; font-weight: 700; color: #fff; background: var(--gold); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.r-role { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.r-resp { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.r-x { flex: 0 0 40px; height: 40px; display: grid; place-items: center; color: var(--ink-soft); }
.r-x .lucide { width: 17px; height: 17px; }

/* compras: reaproveita shop-row de app.css; preço */
#r-compras .shop-row { padding: 4px 4px 4px 0; }
.r-price-tag { font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--gold); white-space: nowrap; padding: 0 4px; }

/* partilha & equipa */
.r-share-box { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--hair); }
.r-hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }

/* ficha técnica / custo */
.r-fichabtn { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: var(--gold); }
.r-fichabtn .lucide { width: 18px; height: 18px; }
.r-cost { display: block; font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 3px; }
.r-foodcost {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px;
}
.r-foodcost > div {
  background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px;
}
.r-foodcost span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.r-foodcost b { font-family: var(--display); font-weight: 800; font-size: 16px; }
.r-foodcost .pos b { color: #5C7A34; }
.r-foodcost .neg b { color: #9B2C20; }

/* stock */
.r-item.r-low { border-left-color: #9B2C20; }
.r-low-tag { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #9B2C20; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }

/* secções (Mais) */
.r-section-title {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 10px;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink);
}
.r-section-title .lucide { width: 19px; height: 19px; color: var(--gold); }
.r-chk-head { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 10px 2px 6px; }
.pa-rowx { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 4px; border-bottom: 1px dashed var(--hair); }
.pa-rowx span:last-child { font-weight: 700; color: var(--gold); }

/* navegação do modo restauração */
.rest-nav button.on { color: var(--gold); }
.rest-nav button { font-size: 9.5px; }
