/* OrçUP Mobile (07/11/2026) — padrão visual do Desktop (azul-marinho #063a67, azul #078fe7, verde #20c568, painéis brancos) no celular.
   Só apresentação: não muda regra, preço nem dado. Vale para telas de celular (até 760 px). */
@media screen and (max-width: 760px) {
  html[data-app="mobile"] {
    --m-navy: #063a67; --m-blue: #078fe7; --m-green: #20c568; --m-ink: #10233e; --m-muted: #6b7b91; --m-line: #dfe8f1; --m-bg: #f5f9fc;
    --m-nav-h: 68px;
  }
  html[data-app="mobile"], html[data-app="mobile"] body { background: var(--m-bg) !important; overflow-x: hidden !important; max-width: 100vw; }
  html[data-app="mobile"] body { padding-bottom: calc(var(--m-nav-h) + 18px + env(safe-area-inset-bottom)) !important; -webkit-tap-highlight-color: transparent; }
  /* O que é do Desktop não aparece no celular */
  html[data-app="mobile"] body > aside,
  html[data-app="mobile"] .mobile-nav,
  html[data-app="mobile"] .mobileQuickActions,
  html[data-app="mobile"] #finance,
  html[data-app="mobile"] .dashboardPromo { display: none !important; }

  /* ---------- Topo ---------- */
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar { position: sticky !important; top: 0; z-index: 50; height: 64px !important; min-height: 64px !important; padding: 0 14px !important; background: var(--m-navy) !important; border: 0 !important; border-bottom: 3px solid var(--m-green) !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; box-shadow: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .mobileHeaderLogo { display: block !important; height: 40px !important; width: auto !important; max-width: 52vw !important; object-fit: contain !important; object-position: left center !important; clip-path: none !important; transform: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .topUser { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .userMeta, html[data-app="mobile"][data-acabamento="a"] body > header.topbar .userChevron, html[data-app="mobile"][data-acabamento="a"] body > header.topbar .logoutBtn, html[data-app="mobile"][data-acabamento="a"] body .topSearch { display: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .notifyBtn { width: 42px !important; height: 42px !important; min-height: 42px !important; border-radius: 50% !important; border: 1.5px solid rgba(255,255,255,.35) !important; background: rgba(255,255,255,.08) !important; color: #fff !important; display: grid !important; place-items: center !important; padding: 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .notifyBtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .userAvatar { width: 42px !important; height: 42px !important; min-width: 42px; flex: 0 0 42px; border-radius: 50% !important; background: #fff !important; color: var(--m-navy) !important; font-weight: 800; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .userAvatarImage.hidden { display: none !important; }

  /* ---------- Conteúdo ---------- */
  html[data-app="mobile"][data-acabamento="a"] body > main { padding: 14px 14px calc(var(--m-nav-h) + 28px + env(safe-area-inset-bottom)) !important; margin: 0 !important; max-width: 100% !important; }
  html[data-app="mobile"][data-acabamento="a"] body > main .pagehead h1 { font-size: 22px !important; color: var(--m-navy) !important; }
  html[data-app="mobile"][data-acabamento="a"] body > main .periodBtn { min-height: 46px !important; width: 100% !important; justify-content: center !important; }
  /* Cartões do resumo: 2 colunas, sem sobreposição */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 4px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard { display: grid !important; grid-template-columns: 38px minmax(0, 1fr) !important; align-items: start !important; column-gap: 10px !important; min-height: 0 !important; padding: 12px !important; border-radius: 15px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard .metricIcon { grid-row: 1 !important; width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard > div:last-child { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; width: auto !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard label { font-size: 13px !important; color: #5d6f86 !important; line-height: 1.2 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard strong { font-size: clamp(16px, 5.2vw, 21px) !important; line-height: 1.2 !important; color: var(--m-navy) !important; text-align: left !important; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard.metricValue { grid-column: 1 / -1 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard { height: auto !important; min-height: 0 !important; overflow: visible; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard small { position: static !important; display: block !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .metricCard small { font-size: 11px !important; line-height: 1.25 !important; margin: 0 !important; }

  /* O gráfico/entradas do Financeiro ficam só no Desktop; o cartão "Recebido em caixa" aparece no Início do Mobile (decisão do proprietário, 07/11) */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .salesPanel,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardNew,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #cashSummary,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .cashSummary { display: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar #userAvatarButton #userAvatarInitials { display: inline !important; color: var(--m-navy) !important; opacity: 1 !important; visibility: visible !important; font-weight: 800; font-size: 15px; }

  /* Títulos das etapas do orçamento: texto escuro sobre painel branco, como no Desktop (sem a faixa azul antiga que apagava o texto) */
  html[data-app="mobile"][data-acabamento="a"] body #quote > .quotegrid > div > .panel:first-child > h2,
  html[data-app="mobile"][data-acabamento="a"] body #quote .quoteStudio .studioHead h2 { margin: 0 0 14px !important; padding: 0 !important; background: none !important; color: var(--m-navy) !important; border-radius: 0 !important; font-size: 18px !important; box-shadow: none !important; }

  /* ---------- Tela inicial: 5 botões (faixa escura, ícones grandes, texto branco) ---------- */
  .mHub { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; margin: 6px -14px 20px; padding: 20px 14px 18px; border-radius: 0; background: #063a67; border-top: 3px solid #20c568; box-shadow: none; }
  .mHubBtn { appearance: none; border: 0; background: transparent; color: #fff; font: inherit; border-radius: 16px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 11px; cursor: pointer; min-height: 0; touch-action: manipulation; transition: transform .12s ease, background .12s ease; box-shadow: none; }
  .mHubBtn:active { transform: scale(.96); background: rgba(255, 255, 255, .08); }
  .mHubBtn.big { grid-column: span 3; }
  .mHubBtn.small { grid-column: span 2; margin-top: 8px; }
  .mHubBtn b { color: #fff; font-size: 13.5px; line-height: 1.15; font-weight: 800; text-align: center; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .mHubBtn.big b { font-size: 16px; }
  .mHubIcon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; color: #fff; }
  .mHubBtn.small .mHubIcon { width: 60px; height: 60px; border-radius: 18px; }
  .mHubBtn.tBlue .mHubIcon { background: linear-gradient(145deg, #0a6fd0, #2fb2ff); box-shadow: 0 0 0 2px rgba(120, 200, 255, .35), 0 8px 22px rgba(47, 178, 255, .45); }
  .mHubBtn.tGreen .mHubIcon { background: linear-gradient(145deg, #14b35c, #3fe08a); box-shadow: 0 0 0 2px rgba(110, 240, 160, .35), 0 8px 22px rgba(63, 224, 138, .42); }
  .mHubIcon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mHubBtn.small .mHubIcon svg { width: 34px; height: 34px; }

  /* Cadastro rápido: "Mais dados (opcional)" */
  .mMore { border: 1.5px dashed #b9d3ea; border-radius: 14px; background: #f7fbff; margin: 4px 0 14px; }
  .mMore > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 15px; color: var(--m-blue); display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .mMore > summary::-webkit-details-marker { display: none; }
  .mMore > summary::after { content: "+"; font-size: 24px; line-height: 1; }
  .mMore[open] > summary::after { content: "−"; }
  .mMoreBody { padding: 4px 14px 6px; display: grid; gap: 12px; }
  .mMoreBody > label { display: block !important; margin: 0 !important; grid-column: auto !important; }

  /* Etapas do orçamento: linha verde que avança conforme as etapas são concluídas (igual ao Desktop) */
  #quote.mobileQuoteFlow .mqProgress { position: relative; --fill: 0; }
  #quote.mobileQuoteFlow .mqProgress::before,
  #quote.mobileQuoteFlow .mqProgress::after { content: ""; position: absolute; top: 19px; left: 12.5%; height: 4px; border-radius: 4px; z-index: 0; }
  #quote.mobileQuoteFlow .mqProgress::before { right: 12.5%; background: #d9e4ef; }
  #quote.mobileQuoteFlow .mqProgress::after { width: calc(75% * var(--fill)); background: var(--m-green); transition: width .35s ease; }
  #quote.mobileQuoteFlow .mqProgress li { position: relative; z-index: 1; }
  #quote.mobileQuoteFlow .mqProgress li.mDone .mqStepButton > span { background: var(--m-green) !important; color: #fff !important; box-shadow: 0 0 0 3px #e3f8ec; }
  #quote.mobileQuoteFlow .mqProgress li.mDone .mqStepButton[aria-current="step"] > span { background: var(--m-blue) !important; box-shadow: 0 0 0 4px #dceeff; }
  #quote.mobileQuoteFlow .mqProgress li.mDone > .mqStepButton > small { color: #0f8a4a; }
  #quote.mobileQuoteFlow .mqProgress.mFinished::after { background: linear-gradient(90deg, #20c568, #16a34a); }

  /* Medidas e quantidade: rótulos pequenos fora do caminho (antes ficavam sobre o título) */
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioMeasureQuantityRow { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioMeasures .measurePair { display: grid !important; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important; align-items: start !important; gap: 8px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioMeasures .measurePair > div { position: static !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioMeasures .measurePair small { position: static !important; display: block !important; margin: 4px 0 0 !important; text-align: center !important; font-size: 12px !important; color: var(--m-muted) !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioMeasures .measurePair > b { padding-top: 14px; text-align: center; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioQty #areaPreview { position: static !important; display: block !important; margin: 6px 0 0 !important; font-size: 13px !important; font-weight: 700 !important; color: var(--m-navy) !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .studioQty { position: static !important; }

  /* Sinal recebido / Saldo quitado: botões grandes no lugar do quadradinho (a regra do pagamento é a mesma; só muda o visual) */
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit,
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl { position: relative; display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; width: 100% !important; min-height: 56px !important; margin: 6px 0 !important; padding: 12px 16px !important; border: 2px solid #b9d3ea !important; border-radius: 14px !important; background: #fff !important; color: var(--m-navy) !important; font-size: 16px !important; font-weight: 800 !important; line-height: 1.2 !important; text-align: center; cursor: pointer; touch-action: manipulation; box-shadow: 0 3px 10px rgba(6, 58, 103, .08); transition: background .15s ease, border-color .15s ease, color .15s ease; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit input[type="checkbox"],
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit::before,
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl::before { content: ""; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8fb4d6; background: #fff center / 15px no-repeat; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit:has(input:checked),
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl:has(input:checked) { background: var(--m-green) !important; border-color: #16a34a !important; color: #fff !important; box-shadow: 0 6px 16px rgba(32, 197, 104, .35); }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit:has(input:checked)::before,
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl:has(input:checked)::before { border-color: #fff; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit:has(input:focus-visible),
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl:has(input:focus-visible) { outline: 3px solid rgba(7, 143, 231, .45); outline-offset: 2px; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField { display: block !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit,
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField .checkboxControl { flex-direction: row !important; flex-wrap: nowrap !important; text-align: left !important; justify-content: center !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit { min-height: 56px !important; }

  /* Foto do produto: maior e sempre inteira (sem corte), com o "i" da dica dentro do cartão */
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .studioProductCard { grid-template-columns: 104px minmax(0, 1fr) !important; gap: 12px !important; padding: 10px !important; align-items: center !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .quoteProductImageBox { width: 104px !important; height: 104px !important; min-height: 104px !important; padding: 4px; background: #fff; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .quoteProductImageBox img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics #studioProductName { padding-right: 34px; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .tipBubble { max-width: calc(100vw - 32px) !important; }

  /* Revisar: botões de apoio no tamanho certo (a regra global aumentava só a primeira letra) e etapas sem verde "falso" */
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqReviewTools button { min-height: 46px; font-size: 14px !important; font-weight: 800; padding: 10px 8px !important; border-radius: 12px !important; background: #fff !important; color: var(--m-blue) !important; border: 1.5px solid #b9d3ea !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqReviewTools button::first-letter,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation button::first-letter,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqPaymentAction::first-letter,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton::first-letter { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProgress li:not(.mDone) .mqStepButton.mqDone > span { background: #e7eef6 !important; color: #526b84 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProgress li:not(.mDone) .mqStepButton.mqDone > small { color: #667e95 !important; }

  html[data-app="mobile"][data-acabamento="a"] body #quote .preview button::first-letter,
  html[data-app="mobile"][data-acabamento="a"] body #quote .preview .success::first-letter,
  html[data-app="mobile"][data-acabamento="a"] body #quote .documentShareActions button::first-letter { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }

  /* Enviar documentos: PDF, WhatsApp, compartilhar e e-mail como botões de verdade */
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview .documentShareActions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 10px 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview .documentShareActions.mqPdfPrimary { grid-template-columns: 1fr !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview .documentShareActions button.shareAction,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview button#quickWhatsappBtn.shareAction { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; width: 100% !important; min-height: 52px !important; height: auto !important; padding: 10px 14px !important; border: 1.5px solid #b9d3ea !important; border-radius: 14px !important; background: #fff !important; color: var(--m-navy) !important; font-size: 15px !important; font-weight: 800 !important; box-shadow: 0 3px 10px rgba(6, 58, 103, .08) !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview button#quickWhatsappBtn.shareAction { background: var(--m-green) !important; border-color: #16a34a !important; color: #fff !important; margin: 0 0 10px !important; box-shadow: 0 6px 16px rgba(32, 197, 104, .3) !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview .documentShareActions button.shareAction svg, html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview button#quickWhatsappBtn svg { width: 24px !important; height: 24px !important; flex: 0 0 24px; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn:not([hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #receiptPrintBtn:not([hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview > button.success:not([hidden]) { display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-height: 56px !important; margin: 8px 0 !important; border-radius: 14px !important; font-size: 16px !important; font-weight: 800 !important; }

  /* Receber sinal / saldo: um botão azul-escuro; os campos originais ficam escondidos (o sistema continua lendo eles) */
  html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts .depositPaidField, html[data-app="mobile"][data-acabamento="a"] body #quote .mqReceipts label.paymentCheckboxHit { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .mReceive { display: grid; gap: 10px; margin: 10px 0 14px; }
  .mReceiveBtn { appearance: none; border: 0; background: var(--m-navy); color: #fff; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 17px; font-weight: 800; min-height: 60px; border-radius: 14px; padding: 12px 16px; width: 100%; cursor: pointer; touch-action: manipulation; box-shadow: 0 6px 16px rgba(6, 58, 103, .3); }
  .mReceiveBtn:active:not(:disabled) { transform: scale(.98); background: #04304f; }
  .mReceiveBtn[hidden], .mReceive[hidden] { display: none !important; }
  .mReceiveBtn.done { background: var(--m-green); box-shadow: 0 6px 16px rgba(32, 197, 104, .3); opacity: 1; }
  .mReceiveBtn:disabled:not(.done) { opacity: .6; }

  /* Janela "Receber pagamento" (a mesma do Desktop) no celular: tela cheia, uma coluna, botões grandes */
  html[data-app="mobile"][data-acabamento="a"] body #desktopReceiveBalance { display: none !important; }
  #desktopBalanceDialog { width: calc(100vw - 20px) !important; max-width: 520px !important; max-height: calc(100dvh - 24px) !important; margin: auto !important; border-radius: 18px !important; }
  #desktopBalanceDialog .balanceDialogBody { grid-template-columns: 1fr !important; gap: 12px !important; padding: 0 16px 12px !important; }
  #desktopBalanceDialog .balanceDialogHeader { padding: 16px 16px 8px !important; }
  #desktopBalanceDialog h2 { font-size: 20px !important; }
  #desktopBalanceDialog .balanceDialogFooter { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)) !important; }
  #desktopBalanceDialog .balanceDialogFooter button { min-height: 54px !important; font-size: 16px !important; font-weight: 800 !important; border-radius: 14px !important; width: 100% !important; }
  #desktopBalanceDialog input[type=number], #desktopBalanceDialog select { min-height: 52px !important; font-size: 17px !important; }

  /* ---------- Só no Desktop (decisão do proprietário): não aparecem no Mobile ---------- */
  /* Cancelar, substituir, devolução e estorno; saldo de crédito (o aviso continua, as ações não); inativar cliente/produto;
     editar produto e preços; acabamentos; backup dos dados. */
  html[data-app="mobile"][data-acabamento="a"] body #replaceOrderBtn, html[data-app="mobile"][data-acabamento="a"] body #cancelDocumentBtn, html[data-app="mobile"][data-acabamento="a"] body #refundPanelBtn,
  html[data-app="mobile"][data-acabamento="a"] body #orderCreditBox button, html[data-app="mobile"][data-acabamento="a"] body #clientCreditBox button, html[data-app="mobile"][data-acabamento="a"] body .creditActions,
  html[data-app="mobile"][data-acabamento="a"] body .clientStateButton, html[data-app="mobile"][data-acabamento="a"] body .deleteProductBtn, html[data-app="mobile"][data-acabamento="a"] body #products .editBtn,
  html[data-app="mobile"][data-acabamento="a"] body #manageCustomFinishes, html[data-app="mobile"][data-acabamento="a"] body button.finishManagerButton,
  html[data-app="mobile"][data-acabamento="a"] body #settings .fin-btn { display: none !important; }

  /* Custo, lucro e margem: escondidos no celular */
  html[data-app="mobile"][data-acabamento="a"] body .mHideCost, html[data-app="mobile"][data-acabamento="a"] body #quote .mHideCost, html[data-app="mobile"][data-acabamento="a"] body #quote .screenSummaryValues > .mHideCost, html[data-app="mobile"][data-acabamento="a"] body #products .mHideCost, html[data-app="mobile"][data-acabamento="a"] body #products .productRow > span.mHideCost, html[data-app="mobile"][data-acabamento="a"] body #quote .screenSummary .screenMargin, html[data-app="mobile"][data-acabamento="a"] body #quote .screenSummary .screenProfit, html[data-app="mobile"][data-acabamento="a"] body #quote .preview .internal { display: none !important; }

  /* Sino de notificações */
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .notifyBtn { position: relative; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar .notifyBtn.hasNote::after { content: ""; position: absolute; top: 6px; right: 7px; width: 11px; height: 11px; border-radius: 50%; background: #ff4d4f; border: 2px solid var(--m-navy); }
  .mNotify { z-index: 90; }
  .mNotifyBody { position: absolute; left: 10px; right: 10px; top: 76px; max-height: calc(100dvh - 100px); overflow: auto; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 16px 40px rgba(3, 47, 85, .3); }
  .mNotifyBody h3 { margin: 0 0 10px; font-size: 18px; color: var(--m-navy); }
  .mNote { border: 1.5px solid #ffd9a8; background: #fff8ee; border-radius: 14px; padding: 12px 14px; }
  .mNote b { color: #8a4b00; font-size: 15px; }
  .mNote p { margin: 6px 0 8px; color: #5d6f86; font-size: 14px; line-height: 1.4; }
  .mNote ul { margin: 0; padding-left: 18px; color: var(--m-navy); font-size: 14px; }
  .mNote ul small { color: #8a4b00; font-weight: 600; }
  .mNoteEmpty { margin: 0; color: var(--m-muted); }

  /* Teclado aberto: sem menu de baixo; rolagem deixa o campo abaixo do topo fixo */
  html[data-app="mobile"] { scroll-padding-top: 84px; scroll-padding-bottom: 24px; }
  html[data-app="mobile"].mKeyboard #mNav { display: none !important; }
  html[data-app="mobile"].mKeyboard body > main { padding-bottom: 28px !important; }

  /* Voltar: botão grande, azul-céu, do tamanho do "+ Novo orçamento"; Continuar fica azul-marinho para se distinguir */
  html[data-app="mobile"][data-acabamento="a"] body .mBack, html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mBack, html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation .mBack { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px; min-height: 56px !important; height: auto !important; min-width: 150px; padding: 0 22px !important; border: 0 !important; border-radius: 12px !important; background: #16a8df !important; color: #fff !important; font-size: 16px !important; font-weight: 800 !important; line-height: 1.2 !important; box-shadow: 0 5px 14px rgba(22, 168, 223, .35) !important; }
  html[data-app="mobile"][data-acabamento="a"] body .mBack:active { background: #0f8fc0 !important; transform: scale(.98); }
  html[data-app="mobile"][data-acabamento="a"] body .mBack::first-letter { font-size: inherit !important; color: inherit !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation { gap: 10px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation .mBack { flex: 1; min-width: 0; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation .mqContinue { min-height: 56px !important; background: var(--m-navy) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; font-size: 16px !important; font-weight: 800 !important; box-shadow: 0 5px 14px rgba(6, 58, 103, .3) !important; }
  html[data-app="mobile"][data-acabamento="a"] body .pagehead .mBack, html[data-app="mobile"][data-acabamento="a"] body main > section > .mBack { margin-bottom: 8px; }

  /* Voltar com a mesma altura do "+ Novo orçamento" (ganha das regras de "link pequeno" do acabamento do Desktop, que usam id) */
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#quote,#quotes,#clients,#products,#reports,#settings) .mBack, html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(#dashboard,#quote,#quotes,#clients,#products,#reports,#settings) .mqNavigation .mBack { min-height: 52px !important; padding: 0 22px !important; font-size: 16px !important; font-weight: 800 !important; margin-bottom: 8px !important; background: #16a8df !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead button.primary, html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead > div button:not(.mBack) { min-height: 52px !important; font-size: 16px !important; font-weight: 800 !important; padding: 0 16px !important; border-radius: 12px !important; }

  /* Taxas do cartão: cada modalidade vira um cartão e as bandeiras ficam em lista, sem cortar a porcentagem */
  html[data-app="mobile"][data-acabamento="a"] body #settings .feeTableWrap { overflow: visible !important; border: 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable, html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable tbody { display: block !important; width: 100% !important; min-width: 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable thead { display: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable tr { display: block !important; border: 1px solid var(--m-line) !important; border-radius: 14px !important; background: #fff; padding: 10px 14px 6px !important; margin: 0 0 12px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable td { display: block !important; border: 0 !important; padding: 0 !important; width: auto !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable td:first-child { font-size: 16px; font-weight: 800; color: var(--m-navy); padding: 2px 0 8px !important; border-bottom: 1px solid var(--m-line) !important; margin-bottom: 6px; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable td[data-label] { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px; padding: 5px 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable td[data-label]::before { content: attr(data-label); flex: 1 1 auto; text-align: left; font-weight: 700; color: var(--m-ink); font-size: 15px; }
  html[data-app="mobile"][data-acabamento="a"] body #settings table.feeTable td[data-label] input { flex: 0 0 120px; width: 120px !important; min-width: 0; text-align: right; margin: 0 4px 0 0; }

  /* Orçamentos Salvos: Voltar e + Novo orçamento lado a lado, mesmo topo, mesma altura, texto em uma linha */
  html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead { align-items: stretch !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead .mBack, html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead button.primary, html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead > div button:not(.mBack), html[data-app="mobile"][data-acabamento="a"] body #quotes .pagehead > button { margin: 0 !important; min-height: 52px !important; height: 52px !important; padding: 0 6px !important; font-size: 14px !important; letter-spacing: 0 !important; white-space: nowrap !important; line-height: 1 !important; align-self: stretch !important; box-sizing: border-box !important; }

  /* Rodapé do passo a passo: Voltar e Continuar lado a lado, mesmo topo, mesma altura, texto centralizado */
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: stretch !important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#quote,#quotes,#clients,#products,#reports,#settings) .mqNavigation > button { margin: 0 !important; min-height: 56px !important; height: 56px !important; padding: 0 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px !important; line-height: 1 !important; box-sizing: border-box !important; white-space: nowrap !important; }

  /* Recibo na tela do celular: o cabeçalho vira coluna e a largura fixa do bloco "RECIBO DE PAGAMENTO" (49 mm) virava ALTURA (espaço em branco). */
  html[data-app="mobile"][data-acabamento="a"] body .receiptPreviewModal .receiptDocument header { flex-direction: column !important; align-items: stretch !important; gap: 6px !important; padding-bottom: 10px !important; }
  html[data-app="mobile"][data-acabamento="a"] body .receiptPreviewModal .receiptIdentity { flex: 0 0 auto !important; width: auto !important; height: auto !important; min-height: 0 !important; text-align: left !important; }
  html[data-app="mobile"][data-acabamento="a"] body .receiptPreviewModal .receiptDocument main { padding-top: 14px !important; }

  /* ---------- Menu de baixo ---------- */
  .mNav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--m-nav-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--m-navy); border-top: 3px solid var(--m-green); box-shadow: 0 -8px 22px rgba(3, 47, 85, .22); }
  .mNav [hidden], .mSheetBody [hidden], .mHubBtn[hidden] { display: none !important; }
  .mNav button { appearance: none; border: 0; background: transparent; color: #cfe6fb; font: inherit; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 52px; cursor: pointer; touch-action: manipulation; }
  .mNav button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mNav button span { font-size: 11px; font-weight: 700; line-height: 1; }
  .mNav button.active { background: var(--m-blue); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
  .mSheet { position: fixed; inset: 0; z-index: 70; }
  .mSheet.hidden { display: none; }
  .mSheetBack { position: absolute; inset: 0; background: rgba(5, 34, 56, .45); }
  .mSheetBody { position: absolute; left: 10px; right: 10px; bottom: calc(var(--m-nav-h) + 12px + env(safe-area-inset-bottom)); background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 16px 40px rgba(3, 47, 85, .3); display: grid; gap: 2px; }
  .mSheetBody button { appearance: none; border: 0; background: transparent; font: inherit; color: var(--m-navy); display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
  .mSheetBody button:active { background: #eef6fd; }
  .mSheetBody button.danger { color: #c0392b; }
  .mSheetBody svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Login (padrão novo: fundo azul-marinho + cartão branco) ---------- */
  html[data-app="mobile"] #appSplash.orcupLoginV2 { background: radial-gradient(120% 60% at 50% 0%, #0a3d63 0%, #052238 60%, #041a2b 100%) !important; overflow-y: auto !important; display: block !important; }
  html[data-app="mobile"] #appSplash.orcupLoginV2.accessGranted { display: none !important; }
  html[data-app="mobile"] .orcupLoginV2 .loginScene { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 0 !important; padding: max(18px, env(safe-area-inset-top)) 18px 28px !important; min-height: 100% !important; width: 100% !important; }
  html[data-app="mobile"] .orcupLoginV2 .loginCardOverlay { position: relative !important; z-index: 3; width: min(100%, 410px) !important; min-height: 0 !important; padding: 24px 20px 20px !important; background: #fff !important; border-radius: 20px !important; box-shadow: 0 20px 48px rgba(0, 0, 0, .38) !important; }
  html[data-app="mobile"] .orcupLoginV2 .loginInputWrap { height: 54px !important; }
  html[data-app="mobile"] .orcupLoginV2 .loginInputWrap input { font-size: 16px !important; }
  html[data-app="mobile"] .orcupLoginV2 .splashStart { height: 54px !important; font-size: 18px !important; }
  html[data-app="mobile"] .orcupLoginV2 .trialButton { height: 50px !important; }
  html[data-app="mobile"] .orcupLoginV2 .loginLogoArt { width: 52% !important; }
}
@media screen and (max-width: 359px) {
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .studioProductCard { grid-template-columns: 84px minmax(0, 1fr) !important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProductBasics .quoteProductImageBox { width: 84px !important; height: 84px !important; min-height: 84px !important; }
}
@media screen and (max-width: 360px) {
  .mHubBtn b { font-size: 12.5px; }
  .mHubBtn.big b { font-size: 15px; }
}

/* Tablet (acima de 760 px): o app é igual ao Desktop; nada da casca de celular aparece */
@media (min-width: 761px) {
  #mHub, #mNav, #mSheet, #mNotify, .mReceive { display: none !important; }
}

/* Impressão e PDF (ex.: recibo em A5 deitado, ~756 px úteis): nada da casca do celular entra no papel */
@media print {
  #mNav, #mSheet, #mNotify, #mHub, .mReceive, .mSheet, .mNotify { display: none !important; }
}

/* 12/11/2026 - Botoes do resumo (Mobile): mais baixos e nas cores do sistema.
   Confirmar como Pedido = azul escuro (#073763, como Imprimir OS); no pedido ja confirmado fica cinza, apagado e sem clique;
   sem registro salvo fica escondido (a regra antiga forcava display:flex mesmo com a classe hidden).
   Salvar orcamento / Salvamento automatico = azul claro (#f1f8fe, como PDF da OS), sem o verde forte. */
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn:not([hidden]) { min-height: 44px !important; height: 44px !important; padding: 0 12px !important; line-height: 1.2 !important; margin: 6px 0 !important; border-radius: 8px !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; background: #073763 !important; color: #fff !important; border: 1px solid #073763 !important; }
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview > button.success:not([hidden]) { min-height: 44px !important; height: 44px !important; padding: 0 12px !important; line-height: 1.2 !important; margin: 6px 0 !important; border-radius: 8px !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; background: #ffffff !important; color: #078fe7 !important; border: 1px solid #b8d8f1 !important; }
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview > button.success:disabled { color: #4f86b3 !important; cursor: default; }
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn.hidden:not([data-mq-state="order"]) { display: none !important; }
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn[data-mq-state="order"] { display: flex !important; background: #e8edf2 !important; color: #7a8b9c !important; border: 1px solid #d3dce5 !important; pointer-events: none !important; font-size: 0 !important; }
html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn[data-mq-state="order"]::after { content: "\2713  Pedido confirmado"; font-size: 15px !important; font-weight: 600; }
#quote.mobileQuoteFlow .mqPaymentAction[hidden] { display: none !important; }
