﻿/*
  MenuGo - VariÃ¡veis CSS

  Responsabilidades:
  - Definir cores principais;
  - Definir cores das mesas;
  - Centralizar cores reutilizÃ¡veis do layout.

  ObservaÃ§Ã£o:
  - Cores das mesas seguem o padrÃ£o do sistema desktop.
*/

:root {
  --navbar-blue: #3B82F6;
  --navbar-blue-dark: #0F2FB4;

  --mesa-livre: #AAAAAA;
  --mesa-ocupada: #4CAF50;
  --mesa-limpeza: #8A2BE2;
  --mesa-bloqueada: #F0AD4E;
  --mesa-reservada: #1E3A8A;
  --mesa-balcao: #3B82F6;

  --bg: #f6f7f9;
  --dark-bg: #121212;
  --dark-card: #202020;
  --dark-input: #2d2d2d;

  --white: #ffffff;
  --text: #222222;
  --muted: #666666;
  --muted-dark: #b6b6b6;
  --border: #e2e2e2;

  --danger: #d32f2f;
  --soft-blue: #eef5ff;
  --success-dark: #005f08;
  --footer-dark: #303b47;
}

/*
  MenuGo - Base CSS

  Responsabilidades:
  - Reset bÃ¡sico;
  - Configurar fonte padrÃ£o;
  - Definir estrutura base da aplicaÃ§Ã£o.

  ObservaÃ§Ã£o:
  - Estilos especÃ­ficos de tela ficam em arquivos separados.
*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 40px;
  background: var(--bg);
}

.empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-radius: 8px;
  border: 1px dashed #cccccc;
}

.success-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 38, 0.24);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .18s ease;
}

.success-toast-overlay.is-visible {
  opacity: 1;
}

.success-toast-card {
  min-width: 220px;
  max-width: 280px;
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transform: scale(.92);
  transition: transform .18s ease;
}

.success-toast-overlay.is-visible .success-toast-card {
  transform: scale(1);
}

.success-toast-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #34c759, #1ea84a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(30, 168, 74, .32);
}

.success-toast-card strong {
  font-size: 18px;
  color: #123;
}

.success-toast-card span {
  font-size: 13px;
  color: #445;
  line-height: 1.35;
}

.page-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .86);
  line-height: 1;
}
/* Ajuste de revisÃ£o: mantÃ©m a tipografia igual em todos os campos. */
button,
input,
select,
textarea {
  font-family: inherit;
}


/*
  MenuGo - Login

  Responsabilidades:
  - Estilizar tela de login;
  - Estilizar formulÃ¡rio de acesso;
  - Exibir mensagens de erro.

  ObservaÃ§Ã£o:
  - Login Ã© fake e usa dados do db.json.
*/

.login-page {
  min-height: calc(100vh - 40px);
  padding: 34px 18px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
  border: 1px solid rgba(0, 0, 0, .04);
}

.login-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.login-subtitle {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 46px;
  border-radius: 9px;
  border: 1px solid #d6d6d6;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.form-input:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}

.form-error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffebee;
  color: #b71c1c;
  font-size: 13px;
  line-height: 1.35;
}

.login-button {
  width: 100%;
  height: 47px;
  border: none;
  border-radius: 10px;
  background: var(--navbar-blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.login-button:active {
  transform: scale(.99);
}

.login-help {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.error-page {
  min-height: 100vh;
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .22), transparent 34%),
    linear-gradient(145deg, #f7fbff 0%, #eef4fb 48%, #fff8ef 100%);
}

.error-card {
  width: 100%;
  max-width: 430px;
  padding: 28px 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
  text-align: center;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffb020, #ff6b00);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 107, 0, .35);
}

.error-code {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.error-title {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
}

.error-message {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.error-actions {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.error-button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.error-button.primary {
  background: #2563eb;
  color: #fff;
}

.error-button.secondary {
  background: #eef2f7;
  color: #1f2937;
}

.error-button:active {
  transform: scale(.99);
}


#appHeader {
  height: 74px;
  position: relative;
  z-index: 30;
}

#appHeader:empty {
  height: 0;
}

.topbar {
  height: 74px;
  background: var(--navbar-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.page-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .86);
  line-height: 1;
}

.back-button {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}

.back-button:active {
  background: rgba(255, 255, 255, .22);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 0;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}

.menu-button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, .10);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 9px;
}

.menu-button:active {
  background: rgba(255, 255, 255, .20);
}

/*
  MenuGo - Dropdown do UsuÃ¡rio

  Responsabilidades:
  - Estilizar menu hamburguer;
  - Exibir usuÃ¡rio logado;
  - Estilizar opÃ§Ãµes de navegaÃ§Ã£o e sair.

  ObservaÃ§Ã£o:
  - A abertura/fechamento Ã© controlada por app.js.
*/

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  width: 235px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  overflow: hidden;
  display: none;
  z-index: 50;
  border: 1px solid rgba(0, 0, 0, .06);
}

.dropdown-menu.open {
  display: block;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 14px 12px;
  background: var(--soft-blue);
  border-bottom: 1px solid var(--border);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navbar-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.dropdown-user-info {
  min-width: 0;
}

.dropdown-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.dropdown-user-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dropdown-item {
  width: 100%;
  border: none;
  background: var(--white);
  color: var(--text);
  padding: 14px 15px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: #f5f7fb;
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown-item.exit {
  color: var(--danger);
  border-top: 1px solid var(--border);
}

.dropdown-item.exit .dropdown-icon {
  background: #ffebee;
}

/*
  MenuGo - Footer

  Responsabilidades:
  - Estilizar rodapÃ© fixo da demo;
  - Exibir nome MenuGo na parte inferior.

  ObservaÃ§Ã£o:
  - A tela de detalhes da mesa usa bottom-action no arquivo mesa-detail.css.
*/

.footer {
  height: 36px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navbar-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 30;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .14);
}

.footer strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

/*
  MenuGo - Modal

  Responsabilidades:
  - Estilizar modais da demo;
  - Usado para adicionar cliente e confirmar limpeza.

  ObservaÃ§Ã£o:
  - A exibiÃ§Ã£o Ã© controlada por JavaScript.
*/

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header strong {
  font-size: 18px;
  color: var(--text);
}

.modal-header button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal-button {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.modal-button.secondary {
  background: #eef0f3;
  color: var(--text);
}

.modal-button.primary {
  background: var(--navbar-blue);
  color: var(--white);
}

.modal-button.danger {
  background: var(--danger);
  color: var(--white);
}

/*
  MenuGo - Tela de Mesas

  Responsabilidades:
  - Estilizar campo de pesquisa;
  - Estilizar seÃ§Ãµes de mesas;
  - Estilizar cards de mesas por status;
  - Estilizar visual de mesa reservada.

  ObservaÃ§Ã£o:
  - Mobile mantÃ©m 4 colunas via grid padrÃ£o.
  - Reservada Ã© visual temporÃ¡rio, nÃ£o status real.
*/

.search-area {
  position: sticky;
  top: 74px;
  z-index: 20;
  background: var(--white);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.search-box {
  width: 100%;
  height: 43px;
  border-radius: 6px;
  border: 1px solid #d6d6d6;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.search-box:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}

.content {
  padding: 14px 16px 24px;
}

.section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #3a3a3a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.mesa {
  min-height: 91px;
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border: none;
}

.mesa:active {
  transform: scale(.98);
}

.mesa.ocupada {
  background: var(--mesa-ocupada);
}

.mesa.bloqueada {
  background: var(--mesa-bloqueada);
  color: var(--white);
}

.mesa.limpeza {
  background: var(--mesa-limpeza);
  justify-content: center;
  align-items: center;
}

.mesa.livre {
  background: var(--mesa-livre);
}

.mesa.reservada {
  background: var(--mesa-reservada);
}

.mesa.balcao {
  background: var(--mesa-balcao);
}

.mesa-tempo {
  font-size: 10px;
  font-weight: 700;
  opacity: .86;
  min-height: 12px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesa-numero {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  line-height: 1;
  margin-top: 3px;
}

.mesa.limpeza .mesa-numero {
  margin-top: 0;
  font-size: 26px;
  font-weight: 600;
}

.mesa-observacao {
  font-size: 10px;
  text-align: center;
  line-height: 1.15;
  min-height: 14px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

.mesa-valor {
  font-size: 11px;
  text-align: center;
  font-weight: 600;
  opacity: .95;
  white-space: nowrap;
}

.mesa-status {
  font-size: 11px;
  text-align: center;
  font-weight: 600;
  opacity: .95;
}

.mesa.reservada .mesa-tempo {
  text-align: center;
  opacity: 1;
}

.mesa.reservada .mesa-observacao,
.mesa.balcao .mesa-observacao {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
}

.mesa.reservada .mesa-valor,
.mesa.balcao .mesa-valor {
  font-size: 11px;
  font-weight: 700;
}

/*
  MenuGo - Tela IntermediÃ¡ria da Mesa

  Responsabilidades:
  - Estilizar detalhes da mesa;
  - Estilizar pessoas/clientes vinculados;
  - Estilizar botÃµes de aÃ§Ã£o;
  - Estilizar status de mesa livre, aberta ou bloqueada.

  ObservaÃ§Ã£o:
  - A tela usa fundo branco.
  - O print enviado estava escuro por causa do tema do celular.
*/

.mesa-detail-app {
  background: var(--bg);
  color: var(--text);
  padding-bottom: 64px;
}

.mesa-detail-topbar {
  background: var(--navbar-blue);
  justify-content: space-between;
}

.mesa-detail-topbar .page-title {
  width: 100%;
  text-align: center;
}

.mesa-detail-content {
  padding: 18px 16px 24px;
}

.mesa-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.mesa-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mesa-section-header strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.mesa-section-header span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* Status da mesa */

.mesa-status-card {
  border-radius: 12px;
  padding: 14px 15px;
  margin-bottom: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.mesa-status-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.mesa-status-card span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.mesa-status-card.blocked {
  border-left: 5px solid var(--mesa-bloqueada);
}

.mesa-status-card.free {
  border-left: 5px solid var(--mesa-livre);
}

.mesa-status-card.open {
  border-left: 5px solid var(--mesa-ocupada);
}

.mesa-status-card.reserved {
  border-left: 5px solid var(--mesa-reservada);
}

/* Pessoas / Clientes */

.pessoas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.clientes-section {
  margin-top: 12px;
}

.clientes-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.clientes-title-row strong {
  font-size: 13px;
  color: var(--text);
}

.clientes-title-row span {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.pessoa-card {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  box-shadow: none;
  text-align: left;
}

.pessoa-card:active {
  transform: scale(.99);
}

.pessoa-card.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pessoa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navbar-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.pessoa-info {
  min-width: 0;
  flex: 1;
}

.pessoa-nome {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pessoa-telefone {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pessoa-total {
  display: block;
  font-size: 14px;
  color: #168a2f;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pessoa-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 74px;
}

.pessoa-total-box {
  text-align: right;
}

.pessoa-total-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.pessoa-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 25px;
  border-radius: 999px;
  background: rgba(24, 144, 255, .12);
  color: var(--navbar-blue);
  font-size: 11px;
  font-weight: 800;
}

/* AÃ§Ãµes */

.sem-pessoas-area {
  margin-top: 0;
}

.mesa-action-button {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.mesa-action-button:active {
  transform: scale(.99);
}

.mesa-action-success {
  margin-top: 12px;
  background: var(--mesa-ocupada);
}

.sem-pessoas-area + .mesa-action-success {
  margin-top: 12px;
}

.mesa-action-primary {
  background: var(--navbar-blue);
}

.mesa-action-warning {
  margin-top: 16px;
  background: var(--mesa-bloqueada);
}

/* DescriÃ§Ã£o */

.mesa-descricao-area {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.mesa-descricao-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mesa-descricao-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: var(--white);
  color: var(--text);
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.mesa-descricao-input::placeholder {
  color: #999999;
}

.mesa-descricao-input:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}

/* BotÃ£o inferior */

.bottom-action {
  height: 54px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2f3a49;
  z-index: 40;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .14);
}

.bottom-action button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

/* Responsivo especÃ­fico da mesa */

@media (max-width: 360px) {
  .mesa-detail-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pessoas-grid {
    gap: 10px;
  }

  .pessoa-card {
    min-height: 66px;
    padding: 10px;
    gap: 10px;
  }

  .pessoa-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .pessoa-nome {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .mesa-detail-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 22px;
  }

  .pessoas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mesa-status-card.cleaning {
  border-left: 5px solid var(--mesa-limpeza);
}

.mesa-action-danger {
  margin-top: 16px;
  background: var(--danger);
}

.mesa-status-card.cleaning {
  border-left: 5px solid var(--mesa-limpeza);
}

.mesa-action-danger {
  margin-top: 16px;
  background: var(--danger);
}

.mesa-action-purple {
  margin-top: 16px;
  background: var(--mesa-limpeza);
}


/*
  MenuGo - Reservas

  Responsabilidades:
  - Estilizar tela de reservas;
  - Estilizar barra de pesquisa;
  - Estilizar cards de reserva;
  - Estilizar aÃ§Ãµes de reserva;
  - Estilizar modal de cadastro/ediÃ§Ã£o.

  ObservaÃ§Ã£o:
  - Reservas nÃ£o possuem status.
  - Dados vÃªm do JSON e alteraÃ§Ãµes locais ficam no localStorage.
*/

.reservas-content {
  padding: 12px 12px 72px;
}

.reservas-header-card {
  background: var(--white);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, .04);
}

.reservas-header-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
  color: var(--text);
}

.reservas-header-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.reservas-toolbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  background: var(--bg);
  padding: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.reservas-search-input {
  width: 100%;
  height: 43px;
  border-radius: 10px;
  border: 1px solid #d6dbe4;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  padding: 0 12px;
  outline: none;
}

.reservas-search-input:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
}

.reservas-new-button {
  width: auto;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--navbar-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 0 14px;
  white-space: nowrap;
  cursor: pointer;
}

.reservas-new-button:active {
  transform: scale(.99);
}

.reservas-list {
  display: grid;
  gap: 12px;
}

.reserva-card {
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  border: 1px solid rgba(0, 0, 0, .04);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.reserva-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reserva-cliente {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.reserva-status-chip {
  min-width: 78px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
}

.reserva-status-chip.ativa {
  background: var(--mesa-reservada);
}

.reserva-status-chip.concluida {
  background: var(--mesa-ocupada);
}

.reserva-status-chip.cancelada {
  background: var(--danger);
}

.reserva-info {
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.reserva-info-row {
  color: var(--muted);
}

.reserva-observacao {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #444444;
  line-height: 1.4;
}

.reserva-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reserva-action-button {
  min-height: 34px;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.reserva-action-button:active {
  transform: scale(.98);
}

.reserva-action-button.neutral {
  background: #eef0f3;
  color: var(--text);
}

.reserva-action-button.primary {
  background: var(--navbar-blue);
  color: var(--white);
}

.reserva-action-button.danger-outline {
  background: #ffebee;
  color: var(--danger);
}

.reserva-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-textarea {
  width: 100%;
  min-height: 82px;
  border-radius: 9px;
  border: 1px solid #d6d6d6;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  color: var(--text);
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}

.reservas-modal-card {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.reservas-bottom-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  height: 50px;
  background: #2f3d4d;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, .12);
}

.reservas-bottom-action button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #2f3d4d;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

@media (min-width: 768px) {
  .reservas-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 22px 78px;
  }

  .reservas-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 360px) {
  .reserva-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/*
  MenuGo - Tela de Categorias

  Responsabilidades:
  - Estilizar a tela de categorias;
  - Exibir botÃ£o "Todos os produtos";
  - Exibir grid de categorias;
  - Exibir botÃ£o fixo inferior de voltar.

  ObservaÃ§Ã£o:
  - Fundo branco, conforme solicitado.
*/

.categorias-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
  min-height: 100vh;
  padding-bottom: 76px;
}

.categorias-content {
  padding: 14px 12px 18px;
  background: transparent;
}

.catalog-context-card {
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  color: #3f4b5b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.categoria-todos-button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navbar-blue), #0ea5e9);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, .22);
}

.categoria-todos-button:active {
  transform: scale(.99);
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.categoria-card-button {
  position: relative;
  overflow: hidden;
  min-height: 68px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #edf5ff);
  color: #1f2a37;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.categoria-card-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #22c55e);
}

.categoria-card-button:nth-child(3n + 2) {
  background: linear-gradient(145deg, #ffffff, #fff4df);
  border-color: rgba(245, 158, 11, .18);
}

.categoria-card-button:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #f59e0b, #fb7185);
}

.categoria-card-button:nth-child(3n + 3) {
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
  border-color: rgba(16, 185, 129, .18);
}

.categoria-card-button:nth-child(3n + 3)::before {
  background: linear-gradient(180deg, #10b981, #06b6d4);
}

.categoria-card-button:active {
  transform: scale(.99);
}

.catalog-bottom-action,
.bottom-action {
  height: 54px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2f3a49;
  z-index: 40;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .14);
}

.catalog-bottom-action-dual,
.produto-config-bottom-dual {
  display: grid;
  grid-template-columns: 36% 64%;
}

.catalog-bottom-action:not(.catalog-bottom-action-dual) {
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.catalog-bottom-action:not(.catalog-bottom-action-dual) button.secondary {
  width: 100%;
  border-radius: 0;
}

.catalog-bottom-action:not(.catalog-bottom-action-dual) button.primary {
  display: none;
}

.catalog-bottom-action button,
.bottom-action button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-bottom-action button.secondary,
.produto-config-bottom button.secondary {
  background: #2f3a49;
  color: var(--white);
}

.catalog-bottom-action button.primary,
.produto-config-bottom button.primary {
  background: var(--navbar-blue);
  color: var(--white);
}

@media (min-width: 768px) {
  .categorias-content {
    margin: 0 auto;
    padding: 18px 18px 24px;
  }

  .categorias-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .categorias-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/*
  MenuGo - Tela de Produtos

  Responsabilidades:
  - Estilizar tela de produtos;
  - Manter pesquisa fixa abaixo da navbar;
  - Exibir grid de produtos;
  - Exibir barra inferior fixa com voltar e conferÃªncia.

  ObservaÃ§Ã£o:
  - Fundo branco.
  - O lanÃ§amento final ocorre na tela de conferÃªncia.
*/

.produtos-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 38%);
  min-height: 100vh;
  padding-bottom: 84px;
}

.produtos-search-area {
  position: sticky;
  top: 74px;
  z-index: 20;
  background: var(--white);
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f5;
}

.produtos-search-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d6dbe4;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  padding: 0 12px;
  outline: none;
}

.produtos-search-input:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
}

.produtos-content {
  padding: 12px 12px 76px;
  background: transparent;
}

.produtos-categoria-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--navbar-blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.produto-card-button {
  min-height: 112px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.produto-card-button:active {
  transform: scale(.99);
}

.produto-card-combo {
  border-left: 0;
}

.produto-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.produto-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 16px;
}

.produto-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.produto-card-badge.combo {
  color: #1d4ed8;
  background: #dbeafe;
}

.produto-card-badge.variacao {
  color: #b45309;
  background: #ffedd5;
}

.produto-card-badge.kg {
  color: #047857;
  background: #d1fae5;
}

.produto-card-badge.promo {
  color: #be123c;
  background: #ffe4e6;
}

.produto-card-preco.variavel {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.combo-grupo-subtitle,
.combo-qty-summary {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.produto-card-nome {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #243041;
  min-height: 28px;
}

.produto-card-badge-row:empty {
  min-height: 0;
}

.produto-card-descricao {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  min-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-card-estoque {
  font-size: 11px;
  font-weight: 700;
  color: #255b93;
  line-height: 1.2;
}

.produto-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.produto-card-footer-empty {
  justify-content: flex-end;
}

.produto-card-preco {
  font-size: 14px;
  font-weight: 800;
  color: #0f8a42;
  text-align: right;
  line-height: 1.2;
}

.produtos-bottom-actions,
.conferencia-bottom-actions {
  height: 54px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .14);
}

.produtos-bottom-actions-dual,
.conferencia-bottom-actions-dual {
  display: grid;
  grid-template-columns: 36% 64%;
}

.produtos-bottom-actions:not(.produtos-bottom-actions-dual) button.secondary,
.conferencia-bottom-actions:not(.conferencia-bottom-actions-dual) button.secondary {
  width: 100%;
  border-radius: 0;
}

.produtos-bottom-actions:not(.produtos-bottom-actions-dual) button.primary,
.conferencia-bottom-actions:not(.conferencia-bottom-actions-dual) button.primary {
  display: none;
}

.produtos-bottom-actions button,
.conferencia-bottom-actions button {
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  height: 100%;
}

.catalog-bottom-action-dual button.secondary,
.catalog-bottom-action-dual button.primary,
.produtos-bottom-actions-dual button.secondary,
.produtos-bottom-actions-dual button.primary,
.conferencia-bottom-actions-dual button.secondary,
.conferencia-bottom-actions-dual button.primary,
.produto-config-bottom-dual button.secondary,
.produto-config-bottom-dual button.primary {
  border-radius: 0;
}

.produtos-bottom-actions button.secondary,
.conferencia-bottom-actions button.secondary {
  background: #2f3a49;
  color: var(--white);
}

.produtos-bottom-actions button.primary,
.conferencia-bottom-actions button.primary {
  background: var(--navbar-blue);
  color: var(--white);
}

.produtos-bottom-actions button:disabled,
.conferencia-bottom-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .produtos-search-area {
    padding-left: 18px;
    padding-right: 18px;
  }

  .produtos-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 18px 86px;
  }

  .produtos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .produtos-bottom-actions {
    left: 0;
    right: 0;
    max-width: none;
    transform: none;
  }
}

@media (min-width: 1200px) {
  .produtos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/*
  MenuGo - ConfiguraÃ§Ã£o do Produto

  Responsabilidades:
  - Estilizar tela de configuraÃ§Ã£o do produto;
  - Estilizar variaÃ§Ãµes, adicionais, perguntas e observaÃ§Ã£o;
  - Exibir total fixo antes do botÃ£o de adicionar.

  ObservaÃ§Ã£o:
  - Fundo branco.
  - Usado entre Produtos e lanÃ§amento no pedido.
*/

.produto-config-page {
  background: var(--white);
  min-height: 100vh;
  padding-bottom: 76px;
}

.produto-config-content {
  padding: 14px 12px 96px;
  background: var(--white);
}

.produto-config-header {
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.produto-config-header strong {
  display: block;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 5px;
}

.produto-config-header span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.produto-estoque-info {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef6ff;
  color: #215b92;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.produto-promocao-info {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #d9dde3;
  font-size: 13px;
  line-height: 1.35;
  color: #4b5563;
}

.produto-promocao-info .promocao-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
}

.produto-promocao-info .promocao-preco-original {
  margin-right: 8px;
  color: #8b949e;
  text-decoration: line-through;
  font-weight: 700;
}

.produto-promocao-info .promocao-preco-final {
  color: #168a2f;
  font-weight: 800;
  font-size: 16px;
}

.produto-promocao-info .promocao-descricao {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

.produto-config-section {
  background: var(--white);
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.produto-config-error-top {
  margin: 12px 0;
}

.produto-config-section-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.required-mark {
  color: var(--danger);
}

.qty-control {
  width: 150px;
  height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
  overflow: hidden;
}

.qty-control button {
  width: 42px;
  height: 42px;
  border: none;
  background: #eef2f7;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.qty-control strong {
  text-align: center;
  font-size: 17px;
  color: var(--text);
}

.qty-input {
  width: 100%;
  height: 42px;
  border: none;
  outline: none;
  text-align: center;
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  appearance: textfield;
}

.qty-control-kg {
  width: 100%;
  max-width: 150px;
  grid-template-columns: 1fr;
}

.qty-control-kg .qty-input {
  padding: 0 10px;
  text-align: center;
}

.qty-control-kg .qty-input:focus {
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
}

.option-button.active {
  border-color: var(--navbar-blue);
  background: #edf4ff;
}

.option-button strong {
  font-size: 14px;
  line-height: 1.2;
  min-width: 0;
}

.variacao-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.variacao-nome {
  flex: 1;
  min-width: 0;
}

.variacao-preco-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  flex-shrink: 0;
}

.variacao-preco-atual {
  font-size: 13px;
  font-weight: 800;
  color: #168a2f;
  white-space: nowrap;
  line-height: 1.1;
}

.variacao-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.variacao-estoque {
  font-size: 11px;
  font-weight: 700;
  color: #376c91 !important;
}

.variacao-preco-original {
  font-size: 11px;
  font-weight: 700;
  color: #7c8796 !important;
  text-decoration: line-through;
  line-height: 1.1;
}

.combo-grupo-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.combo-grupo-option-price,
.combo-grupo-option-price .variacao-preco-box,
.combo-grupo-option-price .variacao-preco-atual {
  color: #168a2f;
}

.combo-grupo-option-price .variacao-preco-box {
  align-items: flex-end;
}

.combo-grupo-option-price .variacao-preco-atual {
  font-size: 14px;
}

.combo-grupo-option-price .variacao-preco-original {
  font-size: 11px;
}

.variacao-promocao-info {
  font-size: 11px;
  font-weight: 700;
  color: #c46a00 !important;
  white-space: nowrap;
  margin-left: auto;
}

.adicionais-list {
  display: grid;
  gap: 10px;
}

.adicional-row {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.adicional-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 3px;
}

.adicional-info span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.adicional-qty {
  display: grid;
  grid-template-columns: 32px 30px 32px;
  align-items: center;
  border: 1px solid #d6dbe4;
  border-radius: 9px;
  overflow: hidden;
}

.adicional-qty button {
  height: 32px;
  border: none;
  background: #eef2f7;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.adicional-qty strong {
  text-align: center;
  font-size: 14px;
}

.perguntas-list {
  display: grid;
  gap: 12px;
}

.pergunta-card {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 12px;
}

.pergunta-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.pergunta-opcoes {
  display: grid;
  gap: 8px;
}

.pergunta-opcao {
  min-height: 40px;
  border: 1px solid #d6dbe4;
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pergunta-opcao.active {
  border-color: var(--navbar-blue);
  background: #edf4ff;
}

.pergunta-opcao span {
  font-size: 13px;
}

.pergunta-opcao small {
  font-size: 12px;
  font-weight: 800;
  color: #168a2f;
}

.produto-observacao {
  width: 100%;
  min-height: 86px;
  border-radius: 10px;
  border: 1px solid #d6dbe4;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  color: var(--text);
  resize: vertical;
}

.produto-observacao:focus {
  border-color: var(--navbar-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
}

.produto-total-card {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 54px;
  z-index: 35;
  height: 48px;
  background: var(--white);
  border-top: 1px solid #e6ebf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}

.produto-total-card span {
  font-size: 13px;
  color: var(--muted);
}

.produto-total-card strong {
  font-size: 18px;
  color: #168a2f;
}

.produto-config-bottom {
  height: 54px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navbar-blue);
  z-index: 40;
}

.produto-config-bottom button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 768px) {
  .produto-config-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 18px 110px;
  }

  .produto-total-card {
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid #e6ebf2;
    border-right: 1px solid #e6ebf2;
  }
}
/* Ajuste de revisÃ£o: limita tambÃ©m a barra inferior no desktop. */
@media (min-width: 768px) {
  .produto-total-card,
.produto-config-bottom {
    width: auto;
    max-width: none;
    left: 0;
    right: 0;
    transform: none;
  }

  .produto-total-card {
    border-left: 1px solid #e6ebf2;
    border-right: 1px solid #e6ebf2;
  }
}


/*
  MenuGo - ConferÃªncia do LanÃ§amento

  Responsabilidades:
  - Estilizar tela de conferÃªncia;
  - Estilizar lista de itens pendentes;
  - Estilizar totalizador;
  - Estilizar botÃµes inferiores.

  ObservaÃ§Ã£o:
  - Tela usada antes de lanÃ§ar produtos na mesa ou cliente.
*/

.lancamento-conferencia-page {
  background: var(--white);
  min-height: 100vh;
  padding-bottom: 76px;
}

.lancamento-conferencia-content {
  padding: 14px 12px 96px;
  background: var(--white);
}

.conferencia-context-card {
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  color: #3f4b5b;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.conferencia-list {
  display: grid;
  gap: 12px;
}

.conferencia-item-card {
  background: var(--white);
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.conferencia-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.conferencia-produto-nome {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.conferencia-produto-total {
  font-size: 15px;
  font-weight: 900;
  color: #168a2f;
  white-space: nowrap;
}

.conferencia-produto-info {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.conferencia-produto-info strong {
  color: var(--text);
}

.conferencia-sublist {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 3px solid #edf1f7;
}

.conferencia-combo-resumo {
  margin-top: 8px;
  border-left-color: #d6e9ff;
}

.conferencia-combo-resumo .conferencia-item-line {
  color: #244b7d;
}

.conferencia-observacao {
  margin-top: 8px;
  padding: 8px;
  background: #fff8e1;
  color: #5d4800;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.conferencia-item-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.conferencia-qty-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.conferencia-remove-button {
  min-height: 34px;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  background: #ffebee;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.conferencia-qty-button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.conferencia-qty-value {
  min-width: 52px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.conferencia-total-card {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 54px;
  z-index: 35;
  height: 48px;
  background: var(--white);
  border-top: 1px solid #e6ebf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}

.conferencia-total-card span {
  font-size: 13px;
  color: var(--muted);
}

.conferencia-total-card strong {
  font-size: 18px;
  color: #168a2f;
}

.conferencia-bottom-actions {
  height: 54px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 36% 64%;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .14);
}

.conferencia-bottom-actions button {
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.conferencia-bottom-actions button.secondary {
  background: #2f3a49;
  color: var(--white);
}

.conferencia-bottom-actions button.primary {
  background: var(--navbar-blue);
  color: var(--white);
}

.conferencia-bottom-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .lancamento-conferencia-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 18px 110px;
  }

  .conferencia-total-card,
  .conferencia-bottom-actions {
    left: 0;
    right: 0;
    max-width: none;
    transform: none;
  }
}
/* Ajuste de revisÃ£o: corrige posicionamento das barras fixas no desktop. */
@media (min-width: 768px) {
  .conferencia-total-card,
  .conferencia-bottom-actions {
    width: auto;
    max-width: none;
    left: 0;
    right: 0;
    transform: none;
  }
}


/*
  MenuGo - Responsividade

  Responsabilidades:
  - Ajustar layout em telas pequenas;
  - Ajustar grids no tablet/desktop;
  - Manter 4 colunas no mobile.

  ObservaÃ§Ã£o:
  - Regras globais de responsividade ficam neste arquivo.
*/

@media (max-width: 360px) {
  .topbar {
    padding-left: 14px;
    padding-right: 12px;
  }

  .page-title {
    font-size: 21px;
  }

  .user-name {
    max-width: 104px;
    font-size: 15px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .search-area {
    padding-left: 10px;
    padding-right: 10px;
  }

  .grid {
    gap: 7px;
  }

  .mesa {
    min-height: 86px;
    padding: 6px 4px;
  }

  .mesa-numero {
    font-size: 22px;
    font-weight: 600;
  }

  .mesa.limpeza .mesa-numero {
    font-size: 24px;
  }

  .mesa-valor {
    font-size: 10px;
  }

  .dropdown-menu {
    width: 222px;
  }

  .mesa-detail-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pessoas-grid {
    gap: 10px;
  }

  .pessoa-card {
    min-height: 78px;
    padding: 10px;
    gap: 10px;
  }

  .pessoa-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .pessoa-nome {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .lancamentos-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 22px 78px;
  }

  .reservas-content,
  .categorias-content,
  .produtos-content,
  .produto-config-content,
  .lancamento-conferencia-content,
  .mesa-detail-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .content,
  .reservas-content,
  .categorias-content {
    padding: 18px 22px 28px;
  }

  .search-area {
    padding-left: 22px;
    padding-right: 22px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
  }

  .mesa {
    min-height: 92px;
  }

  .user-name {
    max-width: 220px;
    font-size: 17px;
  }

  .reservas-list {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  }

  .pessoas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .produtos-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1200px) {
  .lancamentos-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .content,
  .reservas-content,
  .categorias-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
  }

  .mesa {
    min-height: 96px;
  }
}

@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.lancamentos-page {
  padding-bottom: 72px;
}

.lancamentos-content {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 24px;
}

.lancamentos-summary {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}

.lancamentos-list {
  display: grid;
  gap: 10px;
}

.lancamento-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--navbar-blue);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.lancamento-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lancamento-title {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.lancamento-meta-left {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.lancamento-card-total {
  flex: 0 0 auto;
  color: #008a32;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.lancamento-itens {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8eef5;
}

.lancamento-itens-title {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lancamento-item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #ffffff;
}

.lancamento-item-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lancamento-item-title {
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.lancamento-item-badge {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lancamento-item-valor {
  color: #008a32;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.lancamentos-bottom-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  height: 50px;
  background: #2f3d4d;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, .12);
}

.lancamentos-bottom-action button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #2f3d4d;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.transfer-page {
  padding-bottom: 62px;
}

.transfer-content {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 24px;
}

.transfer-summary {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.3;
}

.transfer-sections {
  display: grid;
  gap: 28px;
}

.transfer-section-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}

.transfer-page .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.transfer-card {
  position: relative;
  border: 2px solid transparent;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.transfer-card.selected {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .18), 0 8px 18px rgba(15, 23, 42, .18);
  transform: translateY(-1px);
}

.transfer-meta {
  width: 100%;
  display: grid;
  gap: 1px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.transfer-bottom-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  height: 50px;
  background: #2f3d4d;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, .12);
}

.transfer-bottom-action.transfer-bottom-action-dual {
  grid-template-columns: 36% 64%;
}

.transfer-bottom-action button {
  width: 100%;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.transfer-bottom-action .secondary {
  background: #2f3d4d;
}

.transfer-bottom-action .primary {
  display: none;
  background: #3b82f6;
}

.transfer-bottom-action .primary:disabled {
  opacity: .65;
}

@media (min-width: 768px) {
  .lancamentos-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 22px 78px;
  }

  .transfer-content {
    padding: 18px 22px 28px;
  }

  .transfer-page .grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1200px) {
  .lancamentos-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .transfer-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .transfer-page .grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1600px) {
  .transfer-page .grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

