/* OrçUP Mobile — início aprovado em 12/11/2026.
   Apenas apresentação. Carregar depois de mobile-app.css.
   Mantém o DOM, os ícones, handlers, permissões e os dados originais.
   Não define estilos de formulários, orçamento, pedidos ou recebimentos. */
.mHomeResultsTitle { display: none; }

@media screen and (max-width: 760px) {
  html[data-app="mobile"][data-acabamento="a"][data-mview="dashboard"] body > main {
    padding: 24px 20px calc(94px + env(safe-area-inset-bottom)) !important;
    background: #f3f7fa !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard:not(.hidden):not([hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "hub" "setup" "results" "metrics" "cash" "recent";
    gap: 16px 0;
    min-width: 0;
    color: #12324b;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .dashboardHead {
    display: contents !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .dashboardHead > div:not(.periodPicker) {
    grid-area: title;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 !important;
    margin: 0 0 4px !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead p {
    order: -1;
    margin: 0 !important;
    color: #687f90 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead h1 {
    margin: 0 !important;
    color: #063a67 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
  }

  /* O mesmo hub, agora em destaque + quatro atalhos. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub:not(.hidden):not([hidden]) {
    grid-area: hub;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn {
    grid-column: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 108px;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #e2eaf0 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #063a67 !important;
    box-shadow: none !important;
    text-align: left;
    transition: background-color .12s ease;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn b {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
    text-align: left !important;
    color: #063a67 !important;
    overflow-wrap: normal;
    word-break: normal;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubIcon {
    display: grid;
    place-items: center;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #078fe7 !important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .tGreen .mHubIcon { color: #119f59 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubIcon svg { width: 28px !important; height: 28px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quotes"] { order: 1; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="clients"] { order: 2; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="products"] { order: 3; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="reports"] { order: 4; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn[data-go="quote"] {
    grid-column: 1 / -1 !important;
    order: 0;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 118px;
    gap: 15px;
    margin-bottom: 1px !important;
    padding: 20px 18px !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: #063a67 !important;
    color: #fff !important;
    overflow: hidden;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 4px;
    background: #20c568;
    border-radius: 0 3px 3px 0;
    pointer-events: none;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"]::after { content: "›"; color: #8cb7d4; margin-left: auto; font-size: 32px; line-height: 1; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] .mHubIcon { width: 45px !important; height: 49px !important; color: #7ed0ff !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] svg { width: 41px !important; height: 41px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] b { color: #fff !important; font-size: 22px !important; line-height: 1.2 !important; letter-spacing: -.6px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] b::after { content: "Do atendimento à proposta."; display: block; margin-top: 7px; font-size: 14px; line-height: 1.4; font-weight: 400; letter-spacing: 0; color: #c5d8e7; }

  /* A regra de exibição do cadastro continua no app.js. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt {
    grid-area: setup;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 17px 0 !important;
    border: 0 !important;
    border-top: 1px solid #dbe7ed !important;
    border-bottom: 1px solid #dbe7ed !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #063a67 !important;
    box-shadow: none !important;
    text-align: left;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt .setupActionIcon { display: grid; place-items: center; width: 33px !important; height: 33px !important; flex: 0 0 33px; font-size: 28px !important; line-height: 1; border-radius: 9px !important; color: #078fe7 !important; background: #e3f1fa !important; box-shadow: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt .setupActionText { flex: 1; min-width: 0; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt strong { display: block; color: #063a67 !important; font-size: 15px !important; line-height: 1.3 !important; font-weight: 700 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt small { display: block; color: #5e7485 !important; font-size: 13px !important; line-height: 1.45 !important; margin-top: 4px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt .setupActionArrow { font-size: 25px !important; color: #8a9ca8 !important; }

  /* O seletor original mantém seus eventos e aplica o mesmo filtro aos dados. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .mHomeResultsTitle { display: block; grid-area: results; align-self: center; justify-self: start; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.3px; color: #12324b; padding-right: 170px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodPicker { grid-area: results; justify-self: end; align-self: center; position: relative !important; width: auto !important; max-width: 168px; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; gap: 0; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead .periodBtn { grid-area: results; justify-self: end; align-self: center; min-height: 44px !important; width: auto !important; max-width: 168px; margin: 0 !important; padding: 8px 9px !important; display: inline-flex !important; align-items: center; justify-content: center !important; gap: 5px !important; border: 1px solid #dce6ed !important; border-radius: 8px !important; background: #fff !important; color: #36586e !important; box-shadow: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodMenu { right: 0 !important; left: auto !important; width: min(280px, calc(100vw - 40px)) !important; z-index: 70; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodBtn #periodLabel { font-size: 13px !important; line-height: 1.3; font-weight: 600 !important; color: #36586e !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodBtn .orcupCalendarIcon { width: 17px !important; height: 17px !important; }

  /* Dados existentes: números e nomes são preenchidos pelo JavaScript original. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards { grid-area: metrics; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; margin: 0 !important; background: transparent !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard { display: block !important; min-width: 0; min-height: 0 !important; height: auto !important; padding: 15px 8px !important; border: 1px solid #e2eaf0 !important; border-right-width: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricBlue { order: 0; border-radius: 12px 0 0 12px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricGreen { order: 1; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricOrange { order: 2; border-right-width: 1px !important; border-radius: 0 12px 12px 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard .metricIcon,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard small { display: none !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard label { font-size: 13px !important; font-weight: 400 !important; line-height: 1.3 !important; color: #657b89 !important; white-space: normal; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard strong { display: block; font-size: 28px !important; font-weight: 700 !important; color: #063a67 !important; line-height: 1.2 !important; margin: 7px 0 0 !important; letter-spacing: -1px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricGreen strong { color: #139859 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards :is(.metricValue,.metricCancelled) { grid-column: 1 / -1 !important; order: 3; padding: 12px 1px !important; border: 0 !important; border-bottom: 1px solid #e0e9ef !important; background: transparent !important; border-radius: 0 !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCancelled { order: 4; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards :is(.metricValue,.metricCancelled) > div:not(.metricIcon) { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-width: 0; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricValue label { font-size: 14px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricValue strong { font-size: 16px !important; margin: 0 !important; letter-spacing: -.3px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCancelled strong { font-size: 14px !important; margin: 0 !important; color: #728593 !important; letter-spacing: 0; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .cashSummary { grid-area: cash; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .dashboardGrid { grid-area: recent; min-width: 0; }

  /* Mesma barra, mesmos destinos, mesmo comportamento ativo e de teclado. */
  html[data-app="mobile"][data-acabamento="a"] body #mNav { height: calc(74px + env(safe-area-inset-bottom)); padding: 7px 8px max(8px, env(safe-area-inset-bottom)); gap: 2px; background: #fff; border-top: 1px solid #dce8ef; box-shadow: none; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button { position: relative; min-height: 50px; padding: 6px 1px; border-radius: 11px; background: transparent; color: #657e8f; gap: 5px; box-shadow: none; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button span { font-size: 12px; line-height: 1.25; font-weight: 600; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button svg { width: 24px; height: 24px; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button.active,
  html[data-app="mobile"][data-acabamento="a"] body #mNav button.open { background: #edf5fb; color: #063a67; box-shadow: none; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button.active::before { content: ""; position: absolute; top: 0; width: 16px; height: 3px; border-radius: 3px; background: #20c568; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#mHub,#mNav) button:focus-visible,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard :is(.periodBtn,#companySetupPrompt):focus-visible { outline: 3px solid #078fe7; outline-offset: 3px; }

  /* Não reexibir controles que o sistema ocultou. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub :is(.mHubBtn.hidden,.mHubBtn[hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #dashboard :is(#companySetupPrompt.hidden,#companySetupPrompt[hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards :is(.metricCard.hidden,.metricCard[hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #dashboard :is(.periodBtn.hidden,.periodBtn[hidden]),
  html[data-app="mobile"][data-acabamento="a"] body #mNav :is(button.hidden,button[hidden]) { display: none !important; }
}

@media screen and (max-width: 350px) {
  html[data-app="mobile"][data-acabamento="a"][data-mview="dashboard"] body > main { padding-left: 16px !important; padding-right: 16px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard > .mHomeResultsTitle { align-self: start; padding: 0 0 54px; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodPicker,
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead .periodBtn { align-self: end; justify-self: start; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodMenu { left: 0 !important; right: auto !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn { padding: 14px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] { gap: 10px; padding: 18px 12px !important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] b { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-app="mobile"] #mHub .mHubBtn { transition: none !important; }
}

/* Tema visual escuro OrçUP, referência escolhida em 12/11/2026.
   Somente CSS. Não altera exibição/ocultação, estados, handlers ou controles.
   Tela <=760px. Impressão e clones de PDF ficam fora destes seletores. */
@media screen and (max-width:760px) {
  html[data-app="mobile"][data-acabamento="a"] { --dark-page:#091520; --dark-panel:#101f2e; --dark-field:#0b1926; --dark-raised:#14283b; --dark-border:#28475d; --dark-text:#ecf2f8; --dark-muted:#b1bfcd; --dark-blue:#078fe7; --dark-green:#20c568; color-scheme:dark; }
  html[data-app="mobile"][data-acabamento="a"] body { background:#091520!important; }
  html[data-app="mobile"][data-acabamento="a"] body > main,
  html[data-app="mobile"][data-acabamento="a"][data-mview="dashboard"] body > main { background:var(--dark-page)!important; }
  html[data-app="mobile"][data-acabamento="a"] body > header.topbar { background:#0a3b65!important; border-bottom:2px solid #20c568!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body main > .view { color:var(--dark-text); font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#clients,#products,#quotes,#settings,#quote,#reports) :is(h1,h2,h3,h4) { color:var(--dark-text)!important; letter-spacing:-.25px!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body > main .pagehead h1 { font-size:23px!important; line-height:1.25!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#clients,#products,#quotes,#settings,#quote,#reports) :is(b,strong) { font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#clients,#products,#quotes,#settings,#quote,#reports) :is(p.sub,.sub,.hint,.helper,.pagehead p,.mqStageHint,.mqStepCaption) { color:var(--dark-muted)!important; line-height:1.45!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) .panel { color:var(--dark-text)!important; background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important; border-radius:12px!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) label { color:var(--dark-muted)!important; font-size:14px!important; font-weight:400!important; line-height:1.35!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),select:not(.paymentNativeSelect):not(.finishingNativeSelect),textarea) { background:var(--dark-field)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; box-shadow:none!important; font-size:16px!important; line-height:1.4!important; font-weight:400!important; min-height:46px; padding:11px 12px; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(input,textarea)::placeholder { color:#93a7ba!important; opacity:1; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(input,select,textarea):focus { border-color:#078fe7!important; outline:2px solid #078fe733; outline-offset:1px; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(input[type="checkbox"],input[type="radio"]) { accent-color:#078fe7; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) option { background:#101f2e; color:#ecf2f8; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(button,.backBtn,.link) { font-family:inherit; font-weight:500!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(.primary,.success) { color:#fff!important; background:#078fe7!important; background-image:none!important; border:1px solid #078fe7!important; border-radius:9px!important; font-size:16px!important; line-height:1.35!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(.backBtn,.editBtn,.rowActions button,.clientEditButton,.pdfPrintBtn,.reportPrintButton) { background:var(--dark-field)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; font-size:14px!important; line-height:1.35!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(.link,.mqRegisterClient,.mqUnitPrice,.editingNote) { color:#42b8ff!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) button::first-letter { font-size:inherit!important; font-weight:inherit!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) hr { border:0; border-top:1px solid var(--dark-border); }

  /* Início: mantém a disposição aprovada na entrega anterior. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead h1 { color:var(--dark-text)!important; font-size:27px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead p { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn { background:var(--dark-panel)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn b { color:var(--dark-text)!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .mHubBtn[data-go="quote"] { background:#0a4c7d!important; border:1px solid #187eb8!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub [data-go="quote"] b::after { color:#cee5f5!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #mHub .tGreen .mHubIcon { color:#20c568!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt { background:transparent!important; border-color:var(--dark-border)!important; color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt :is(strong,small) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt small { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard #companySetupPrompt .setupActionIcon { background:#12374e!important; color:#42b8ff!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard :is(.periodBtn,.periodMenu) { background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodBtn #periodLabel { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardHead .periodBtn { background:var(--dark-panel)!important; border-color:var(--dark-border)!important; color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodMenu :is(button,label,input) { background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .periodMenu button.active { background:#123f60!important; color:#67c7ff!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard { background:var(--dark-panel)!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard label { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricCard strong { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricGreen strong { color:#20c568!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards :is(.metricValue,.metricCancelled) { background:transparent!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard .dashboardCards .metricValue strong { color:#20c568!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard :is(.recentPanel,.dashboardSide,.recentPanel .row) { color:var(--dark-text)!important; background:var(--dark-panel)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }

  /* Cadastros e listas: mesmos campos, botões, eventos e agrupamentos. */
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#settings) :is(.mMore,.productPhotoEditor,.productPhotoPreview,.logoPreview,.logoDimensions,.cepStatus) { background:var(--dark-raised)!important; border-color:var(--dark-border)!important; color:var(--dark-muted)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products) .mMore > summary { color:var(--dark-text)!important; font-size:14px!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients #clientSaveBtn,
  html[data-app="mobile"][data-acabamento="a"] body #products #pSaveBtn { width:100%!important; min-height:48px!important; background:#078fe7!important; color:#fff!important; border:1px solid #078fe7!important; border-radius:9px!important; font-size:16px!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients :is(.clientRow,.clientRow:nth-child(odd),.clientListHeader) { background:var(--dark-panel)!important; border-color:var(--dark-border)!important; color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients :is(.clientName,.clientCell,.clientContactCell,.clientAddress) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients .clientNameCell b { color:var(--dark-text)!important; font-size:15px!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients .clientCell::before { color:var(--dark-muted)!important; font-size:12px!important; font-weight:400!important; text-transform:none!important; letter-spacing:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients :is(.clientCell small,.clientTypeTag) { color:var(--dark-muted)!important; background:transparent!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products :is(.productRow,.productCardImage,.productCardPlaceholder,.productSearchResult,.noProductResult) { background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products :is(.productRow small,.productCardPlaceholder) { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products :is(.productRow b,.productRow strong) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products .panel :is(label,.productFields label) { color:var(--dark-muted)!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products .productPhotoPreview { width:96px!important; height:84px!important; min-height:84px!important; border-radius:8px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products .productUploadBtn { background:var(--dark-field)!important; color:#42b8ff!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; font-size:14px!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .filters { flex-wrap:wrap; gap:8px!important; overflow:visible; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .filter { color:var(--dark-text)!important; background:var(--dark-field)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; font-size:14px!important; min-height:42px; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .filter.active { color:#fff!important; background:#078fe7!important; border-color:#078fe7!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .savedRow { background:var(--dark-panel)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; border-radius:12px!important; padding:16px!important; margin:12px 0!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .savedRow :is(b,strong,span) { color:var(--dark-text); }
  html[data-app="mobile"][data-acabamento="a"] body #quotes .savedRow small { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#quotes) .badge.quote { color:#7ed0ff!important; background:#113f60!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(#dashboard,#quotes) .badge.order { color:#50e49b!important; background:#103b30!important; }

  /* Fluxo do orçamento: só cores, bordas, tipografia e respiro. */
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.mqStageTitle,.mqReceiptTitle,#studioProductName) { color:var(--dark-text)!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow :is(.quoteStudio label,.studioProductRow label,.studioMeasures > label,.studioQty > label) { color:var(--dark-muted)!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow.mobileQuoteFlow label { color:var(--dark-muted)!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow > .pagehead .backBtn { background:var(--dark-field)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(#depositPercent,#depositFixed,#balanceDate,#paidDate,#itemDiscount,#generalNotes) { background:var(--dark-field)!important; color:var(--dark-text)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; box-shadow:none!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.mqOptions,.mqReceipts,.mqDock,.mqPickedProduct,.studioProductCard,.quoteProductImageBox,.itemrow,.screenProductItem) { color:var(--dark-text)!important; background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.mqOptions > summary,.mqOptions > summary span,.mqCompact,.selectedProductMeta #studioProductDescription,.studioQty small) { color:var(--dark-muted)!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqCompact strong { color:#20c568!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton { background:transparent!important; border-color:transparent!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton > span { background:#142b3d!important; border:1px solid #35546a; color:#b1bfcd!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton > small { color:var(--dark-muted)!important; font-size:12px!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton[aria-current="step"] > span { background:#078fe7!important; color:#fff!important; border-color:#078fe7; box-shadow:0 0 0 3px #123c58!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqStepButton[aria-current="step"] > small { color:#ecf2f8!important; font-weight:600!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProgress li.mDone .mqStepButton > span { background:#20c568!important; color:#062e20!important; border-color:#20c568; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProgress li:not(.mDone) .mqStepButton.mqDone > span { background:#142b3d!important; color:#b1bfcd!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqProgress li:not(.mDone) .mqStepButton.mqDone > small { color:#b1bfcd!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqReviewTools button,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation button { color:var(--dark-text)!important; background:var(--dark-field)!important; border:1px solid var(--dark-border)!important; border-radius:9px!important; font-size:16px!important; font-weight:500!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqNavigation .mqContinue { color:#fff!important; background:#078fe7!important; border-color:#078fe7!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.paymentSelectButton,.finishingSelectButton,.paymentSelectOptions,.finishingOptions) { background:var(--dark-field)!important; border-color:var(--dark-border)!important; color:var(--dark-text)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .paymentSelectControl .paymentSelectButton,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .paymentSelectControl .paymentSelectButton span { background:var(--dark-field)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; font-size:16px!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote select.paymentNativeSelect { background:var(--dark-field)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .paymentSelectButton > i { border-color:#9fb0c0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.paymentSelectOptions button,.finishingOptions button) { color:var(--dark-text)!important; background:var(--dark-field)!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.paymentSelectOptions button.selected,.finishingOptions button.selected) { background:#123f60!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .measurePair input { font-size:19px!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote :is(.setupAction,.mqPickedProduct,.recordStatusBox,.saveStatus) { color:var(--dark-text)!important; background:var(--dark-raised)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .setupAction :is(strong,small,.setupActionArrow) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .setupAction .setupActionIcon { color:#42b8ff!important; background:#12374e!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(.mqSavedRegistration,.mqSavedRegistration:hover,.mqSavedRegistration:active) { background:#1b2b39!important; border-color:#35546a!important; color:#a6b6c4!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .summary .panel.preview { background:var(--dark-panel)!important; border-color:var(--dark-border)!important; color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .summary .preview :is(.previewItem,.screenProductItem,.previewLine,.screenSummary,.total,.paymentBox,#summaryRows) { background:transparent!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .summary .preview :is(.screenSummary small,.previewItem small,.screenProductItemMeta) { color:var(--dark-muted)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .summary .preview :is(.screenSummary span,.screenSummary b,.screenProductItem b,.paymentBox b,.paymentBox p,.paymentBox span) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow :is(#screenArea,#screenInstallation,#screenTravel,#screenFinishing,#depositValue,#paymentStatus,#paymentDescription,#previewValidity) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow #screenSale { color:#20c568!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .summary .preview .total strong { color:#20c568!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 { background:var(--dark-field)!important; color:#42b8ff!important; border:1px solid var(--dark-border)!important; border-radius:9px!important; font-weight:500!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview button#quickWhatsappBtn.shareAction { color:#61e5a3!important; background:#103b30!important; border-color:#20794f!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .preview > button.success,
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow .mqPaymentAction { background:#f4f7fb!important; color:#078fe7!important; border:1px solid #b8d8f1!important; border-radius:9px!important; font-size:16px!important; font-weight:500!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn { background:#0a4c7d!important; color:#ecf2f8!important; border:1px solid #187eb8!important; font-weight:500!important; border-radius:9px!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote.mobileQuoteFlow.mobileQuoteFlow .preview #confirmOrderBtn[data-mq-state="order"] { background:#344957!important; color:#b5c1ca!important; border-color:#344957!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mReceiveBtn { background:#0a4c7d!important; border:1px solid #187eb8!important; border-radius:9px!important; font-weight:500!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote .mReceiveBtn.done { background:#103b30!important; border-color:#20794f!important; color:#61e5a3!important; }

  /* Relatório só na tela identificada. O clone de exportação remove o ID. */
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument { background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important; color:var(--dark-text)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument :is(.reportMetrics article,.reportDailyHeader,.reportDailySummary,.reportTableHead,.reportTableRow,.reportOrderDetail,.reportDayDetails) { background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics article { min-width:0; padding:12px 8px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument :is(.reportMetrics b,.reportDailySummary b,.reportDocumentHead strong) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument :is(.reportMetrics span,.reportDocumentHead p,.reportSectionHelp,.reportDocumentHead span,.reportDailyHeader,.reportDailySummary span) { color:var(--dark-muted)!important; font-weight:400!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics span { font-size:13px!important; text-transform:none!important; letter-spacing:0!important; overflow-wrap:anywhere; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics b { font-size:18px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics small { color:#20c568!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument :is(.reportDailyTable,.reportDailyGroup,.reportTable,.reportDocumentHead,.reportSection) { border-color:var(--dark-border)!important; }

  /* Barra e janelas existentes: sem modificar display, foco ou eventos. */
  html[data-app="mobile"][data-acabamento="a"] body #mNav { background:#0c1c29!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav button { color:#b1bfcd!important; font-weight:500!important; }
  html[data-app="mobile"][data-acabamento="a"] body #mNav :is(button.active,button.open) { color:#42b8ff!important; background:#10344e!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(.mSheetBody,.mNotifyBody,.balanceDialogBody,.balanceDialogHeader,.balanceDialogFooter,#desktopBalanceDialog) { background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(.mSheetBody,.mNotifyBody) :is(button,h3,p,.mNote,.mNoteEmpty) { color:var(--dark-text)!important; background:transparent!important; border-color:var(--dark-border)!important; box-shadow:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body .mSheetBody button.danger { color:#ff9b9b!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog :is(h2,label,small,p) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog :is(input,select,textarea) { background:var(--dark-field)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog button { color:var(--dark-text); background:#0a4c7d; border-color:var(--dark-border); font-weight:500!important; }

  /* Sem dark mode no documento/recibo a exportar nem na tela de login aprovada. */
  html[data-app="mobile"][data-acabamento="a"] body .reportPdfClone,
  html[data-app="mobile"][data-acabamento="a"] body .receiptPdfClone,
  html[data-app="mobile"][data-acabamento="a"] body .pdfExportClone { color-scheme:light; }
}
@media screen and (max-width:350px) {
  html[data-app="mobile"][data-acabamento="a"] body #reports #monthlyReportDocument .reportMetrics { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

/* Revisão dos prints 1–12. Escopo exclusivo de tela Mobile.
   Estados hidden/disabled, campos, eventos e regras comerciais são preservados. */
@media screen and (max-width:760px) {
  html[data-app="mobile"][data-acabamento="a"] body {
    --dark-page:#091520; --dark-panel:#101f2e; --dark-field:#0b1926;
    --dark-border:#284357; --dark-text:#edf3f8; --dark-muted:#b3c3d1;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) {
    font-size:15px; line-height:1.5;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) :is(.panel,.mMore,.savedRow,.productRow,.clientRow) {
    border-color:var(--dark-border)!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients,#products,#quotes,#settings,#quote,#reports) button:focus-visible,
  html[data-app="mobile"][data-acabamento="a"] body #quote summary:focus-visible {
    outline:2px solid #60bdff!important; outline-offset:3px!important;
  }
  /* Formulários sem a caixa externa redundante. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .quotegrid > div > .panel {
    background:transparent!important; border:0!important; border-radius:0!important;
    padding:0!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow :is(.mqStageHint,.helper,.measureHelp,.validity) {
    color:var(--dark-muted)!important; font-size:13px!important; line-height:1.5!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow :is(.mqStageTitle,.pagehead h1) {
    font-size:23px!important; font-weight:600!important; line-height:1.25!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow label {
    color:var(--dark-muted)!important; font-size:14px!important; font-weight:400!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqPickedProduct {
    padding:12px 14px!important; border-radius:10px!important; line-height:1.5!important; font-size:14px!important;
    margin-bottom:20px!important; color:var(--dark-text)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow :is(.inlinePricing,#finishingPricing,#installationPricing) {
    background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important;
    border-radius:10px!important; padding:12px!important; gap:12px!important; margin-top:10px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .inlinePricing label {
    font-size:13px!important; color:var(--dark-muted)!important; margin:0!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .inlinePricing input {
    margin-top:6px!important; background:var(--dark-field)!important; min-width:0!important;
    border:1px solid var(--dark-border)!important; border-radius:8px!important; color:var(--dark-text)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .finishingArrow {
    color:#b3c3d1!important; opacity:1!important; border-color:#b3c3d1!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.finishingArrow::after,.finishingArrow::before,.paymentSelectButton>i) {
    border-color:#b3c3d1!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #finishingSearch {
    padding-right:42px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #deliveryDate {
    color-scheme:dark; padding-right:42px!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3c3d1' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18M7 14h3M14 14h3M7 17h3'/%3E%3C/svg%3E")!important;
    background-size:20px!important; background-repeat:no-repeat!important; background-position:right 13px center!important;
    position:relative;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #deliveryDate::-webkit-calendar-picker-indicator {
    opacity:0; width:28px; height:32px; position:absolute; right:7px; cursor:pointer;
  }
  /* Botões menores, sem reduzir a área de toque abaixo de 44px. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqDock {
    padding:12px!important; border:1px solid var(--dark-border)!important; border-radius:12px!important;
    background:var(--dark-panel)!important; margin-top:22px!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqNavigation > button {
    height:auto!important; min-height:46px!important; min-width:0!important; padding:11px 12px!important;
    border-radius:9px!important; margin:0!important; font-size:15px!important; font-weight:500!important;
    line-height:1.35!important; box-shadow:none!important; border:1px solid var(--dark-border)!important;
    background:var(--dark-field)!important; color:var(--dark-text)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqNavigation > .mqContinue {
    background:#078fe7!important; color:white!important; border-color:#078fe7!important;
  }
  /* Uma regra antiga de display:flex sobrepunha o hidden atribuído pelo fluxo. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqNavigation > button[hidden],
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqCompact[hidden] {
    display:none!important;
  }
  /* Na revisão final já há Alterar itens/Pagamento e navegação global.
     Retirar o dock redundante não altera o estado nem a conclusão do documento. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow[data-mq-current="4"] > .mqDock {
    display:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow :is(.mqReviewTools button,#addItemButton) {
    min-height:46px!important; padding:11px 12px!important; font-size:14px!important;
    line-height:1.4!important; border-radius:9px!important; font-weight:500!important; box-shadow:none!important;
  }
  /* Etapas: trilho discreto e estados reais fornecidos pelo módulo original. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress::before { background:#284357!important; height:3px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress::after { background:#20c568!important; height:3px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress .mqStepButton > span {
    border:0!important; box-shadow:none!important; background:#183044!important; color:#b3c3d1!important;
    width:34px!important; height:34px!important; font-size:14px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress li.mDone .mqStepButton > span {
    background:#20c568!important; color:#062e20!important; border:0!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress li .mqStepButton[aria-current="step"] > span {
    background:#078fe7!important; color:#fff!important; box-shadow:none!important; border:0!important;
  }
  /* Itens: contraste e alinhamento consistentes nas duas apresentações. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.itemrow,.screenProductItem) {
    background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important;
    border-radius:11px!important; padding:14px!important; margin:10px 0!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.itemMainText b,.itemMainText small,.itemBreakdown,.screenProductItemMeta,.screenProductItemValues,.screenProductItemValues span,.screenProductItemValues b,.screenProductItemHead b) {
    color:var(--dark-text)!important; line-height:1.5!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.itemMainText small,.itemBreakdown,.screenProductItemMeta,.screenProductItemValues span) {
    color:var(--dark-muted)!important; font-size:13px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.itemrow>strong,.screenProductItemHead strong) { color:#60bdff!important; font-size:16px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.itemEditButton,.itemrow>button) {
    min-height:44px!important; padding:9px 13px!important; border-radius:8px!important; font-size:14px!important;
    background:#102d42!important; border:1px solid #275573!important; color:#8bd0ff!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .itemrow>button:last-child {
    background:#30202a!important; color:#ffb1b6!important; border-color:#64404c!important;
  }
  /* Revisão: retirar ilhas brancas sem interferir nos documentos exportados. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary .panel.preview {
    background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important; padding:16px!important; border-radius:12px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary :is(.paymentBox,#paymentStatus,.clientMeasureToggle,#presentationHistoryButton,#recordStatusBox,.saveStatus,.mqPaymentAction) {
    background:var(--dark-field)!important; color:var(--dark-text)!important;
    border:1px solid var(--dark-border)!important; border-radius:9px!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary .paymentBox { padding:14px!important; margin:16px 0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary #paymentStatus {
    padding:7px 10px!important; min-height:0!important; font-size:13px!important; line-height:1.4!important;
    background:#10344e!important; color:#8bd0ff!important; border:0!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary :is(#balanceValue,#depositValue,#paymentDescription) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary label.clientMeasureToggle {
    min-height:44px!important; padding:10px 12px!important; font-size:13px!important;
    font-weight:400!important; color:var(--dark-text)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary .clientMeasureToggle input { width:18px!important; height:18px!important; flex-basis:18px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary #presentationHistoryButton {
    min-height:44px!important; padding:10px 12px!important; font:400 13px/1.4 Inter,system-ui,sans-serif!important; gap:8px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.preview>.success,.mqPaymentAction,#confirmOrderBtn) {
    min-height:46px!important; padding:11px 12px!important; margin:6px 0!important;
    border-radius:9px!important; font-size:15px!important; line-height:1.4!important;
    background:#102f45!important; color:#8bd0ff!important; border:1px solid #275573!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #confirmOrderBtn:not([data-mq-state="order"]) {
    background:#078fe7!important; color:#fff!important; border-color:#078fe7!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #confirmOrderBtn[data-mq-state="order"] {
    background:#243747!important; color:#b3c3d1!important; border-color:#344d61!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqReceipts { padding:14px!important; gap:12px!important; border-radius:11px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqReceipts .mqPaymentActions { order:-1; margin:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqReceipts .mqReceiptTitle { order:-2; font-size:16px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqReceipts .mReceiveBtn {
    min-height:46px!important; padding:11px 12px!important; font-size:15px!important; line-height:1.4!important; border-radius:9px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #recordStatusBox { padding:12px!important; background:var(--dark-field)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #recordStatusBox :is(label,select) { color:var(--dark-text)!important; font-size:14px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #recordStatusBox select {
    height:44px!important; background:var(--dark-panel)!important; border:1px solid var(--dark-border)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #documentLockInfo {
    background:#2b281d!important; color:#ead6a4!important; border:1px solid #645332!important;
    border-left:3px solid #d2ab58!important; border-radius:8px!important; font-size:13px!important;
    line-height:1.5!important; font-weight:400!important; padding:10px 12px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #recordStatusBox button {
    height:auto!important; min-height:44px!important; padding:10px 12px!important; font-size:14px!important;
    border-radius:8px!important; background:#112b3d!important; color:#b9d9ef!important; border:1px solid #31526a!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #recordStatusBox #cancelDocumentBtn {
    background:#30202a!important; color:#ffb1b6!important; border-color:#64404c!important;
  }
  /* Cinco ações originais + acesso à OS, mantendo as duas saídas de produção. */
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; margin:18px 0 0!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .summary .panel.preview .mqDocumentActions > button,
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions > .mqWorkOrder > summary {
    display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
    gap:8px!important; width:100%!important; height:88px!important; min-height:88px!important; margin:0!important;
    padding:12px 6px!important; border:1px solid var(--dark-border)!important; border-radius:10px!important;
    background:var(--dark-field)!important; color:#60bdff!important; box-shadow:none!important; cursor:pointer;
    font:500 13px/1.3 Inter,system-ui,sans-serif!important; text-align:center!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions > #quickWhatsappBtn { background:var(--dark-field)!important; color:#4cda98!important; border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions :is(.documentActionIcon,.documentControlIcon,summary svg) {
    width:22px!important; height:22px!important; flex:0 0 22px!important; fill:none!important;
    stroke:currentColor!important; stroke-width:1.7!important; stroke-linecap:round; stroke-linejoin:round;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions #quickWhatsappBtn svg { fill:currentColor!important; stroke:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions button span { font-size:13px!important; text-align:center!important; font-weight:500!important; overflow-wrap:anywhere; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder { min-width:0; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder:not(:has(#workOrderActions:not([hidden]))) { display:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder summary { list-style:none; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder summary::-webkit-details-marker { display:none; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder[open] { grid-column:1/-1; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder #workOrderActions { margin:8px 0 0!important; grid-template-columns:1fr 1fr!important; gap:8px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqWorkOrder #workOrderActions button {
    min-height:44px!important; padding:10px!important; font-size:14px!important; color:#60bdff!important;
    background:var(--dark-field)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.mqDocumentActions button,.workOrderActions)[hidden] { display:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .documentShareActions:empty { display:none!important; }
  /* Filtros com ícones, mesma função e estado ativo. */
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filters {
    display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important; gap:8px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter {
    display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
    grid-column:span 2; gap:7px!important; padding:12px 4px!important; min-height:78px!important;
    background:var(--dark-field)!important; color:#b3c3d1!important; border:1px solid var(--dark-border)!important;
    border-radius:10px!important; font-size:13px!important; font-weight:500!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter:nth-last-child(-n+2) { grid-column:span 3!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter.active { background:#10344e!important; border-color:#078fe7!important; color:#ecf2f8!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter .filterIcon {
    width:22px; height:22px; fill:none; stroke:#60bdff; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter[data-filter="open"] svg { stroke:#e3be74; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter[data-filter="order"] svg { stroke:#4cda98; }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .filter[data-filter="cancelled"] svg { stroke:#f09ca6; }
  /* Um único status compacto por registro, sem a faixa clara de largura total. */
  html[data-app="mobile"][data-acabamento="a"] body #dashboard#dashboard #recent .row {
    position:relative; display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
    gap:5px 10px!important; padding:14px 0!important; border-color:var(--dark-border)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard#dashboard #recent .row > :is(b,span:not([class^="status-"])) { grid-column:1; color:var(--dark-text)!important; font-size:14px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard#dashboard #recent .row > [class^="status-"] {
    display:inline-flex!important; align-items:center; grid-column:2; grid-row:1; align-self:start; width:auto!important; max-width:100%; justify-self:end;
    padding:4px 9px!important; border-radius:6px!important; font-size:12px!important; line-height:1.3!important;
    background:#113a55!important; color:#8bd0ff!important; font-weight:500!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard#dashboard #recent .row > .status-order { background:#103b30!important; color:#61e5a3!important; }
  html[data-app="mobile"][data-acabamento="a"] body #dashboard#dashboard #recent .row > .status-cancelled { background:#30202a!important; color:#ffb1b6!important; }
  /* Diálogos e demais telas: a mesma superfície, sem redesenhar funções. */
  html[data-app="mobile"][data-acabamento="a"] body :is(.cancelModalCard,#documentVersionsDialog,.finishManagerModal,.presentationDialog,.replacementSummary,.replacementSafety,.refundFields) {
    background:var(--dark-panel)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(.cancelModalCard,#documentVersionsDialog) :is(h2,h3,label,p,b,strong,small) { color:var(--dark-text)!important; }
  html[data-app="mobile"][data-acabamento="a"] body :is(.cancelModalCard,#documentVersionsDialog) :is(input,select,textarea,button) {
    background:var(--dark-field)!important; color:var(--dark-text)!important; border-color:var(--dark-border)!important; border-radius:8px!important; min-height:44px;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.mqOptionsBody,.preview) :is(.documentActionIcon,.documentControlIcon) { fill:none; stroke:currentColor; stroke-width:1.7; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote select.paymentNativeSelect {
    opacity:0!important; width:1px!important; height:1px!important; min-height:0!important;
    padding:0!important; border:0!important; pointer-events:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#quote#quote,#clients#clients,#products#products,#quotes#quotes,#reports#reports,#settings#settings) .mBack {
    min-height:44px!important; height:auto!important; min-width:0!important; width:auto!important;
    padding:10px 14px!important; font-size:14px!important; font-weight:500!important;
    background:var(--dark-field)!important; border:1px solid var(--dark-border)!important;
    color:var(--dark-text)!important; border-radius:8px!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(input,textarea,select):focus {
    box-shadow:none!important; outline:2px solid #078fe755!important; outline-offset:1px!important; border-color:#078fe7!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(.addedTitle,.screenSummaryHead,.screenSummaryValues>div,.paymentBox,.studioNotes,.studioChoices,.previewLine,.total) {
    border-color:var(--dark-border)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #receiptPrintBtn {
    background:var(--dark-field)!important; color:#8bd0ff!important; border:1px solid var(--dark-border)!important;
    border-radius:8px!important; min-height:44px!important; font-size:14px!important; padding:10px 12px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#clients#clients,#products#products,#quotes#quotes,#settings#settings,#reports#reports) .pagehead p { font-size:14px!important; line-height:1.5!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports#reports :is(#reportPrintButton,#reportPdfButton) {
    min-height:44px!important; height:auto!important; border:1px solid var(--dark-border)!important;
    border-radius:8px!important; padding:10px 12px!important; font-size:14px!important;
    background:var(--dark-field)!important; color:var(--dark-text)!important; font-weight:500!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #reports#reports #reportPdfButton { background:#078fe7!important; color:#fff!important; border-color:#078fe7!important; }
  html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument h3 { font-size:14px!important; line-height:1.5!important; font-weight:600!important; letter-spacing:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #clients#clients .cepStatus:empty { padding:0!important; min-height:0!important; background:transparent!important; border:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings :is(label,.settingsGrid label,.logoControls label,th,td) {
    color:var(--dark-muted)!important; font-size:14px!important; font-weight:400!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings :is(.logoPreview,.logoUpload,.upload,.logoDimensions,.travelSettings,.feeTableWrap,.feeTable th,.feeTable td) {
    background:var(--dark-field)!important; color:var(--dark-muted)!important; border-color:var(--dark-border)!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings :is(.logoUpload,.upload) { min-height:44px!important; padding:11px 12px!important; border:1px solid var(--dark-border)!important; border-radius:8px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings .logoUpload { background:transparent!important; border:0!important; padding:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings :is(.logoPreviewBox,.uploadBtn) {
    background:var(--dark-field)!important; color:var(--dark-muted)!important; border:1px solid var(--dark-border)!important; border-radius:8px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings .uploadBtn { min-height:44px!important; padding:11px 12px!important; font-size:14px!important; }
  html[data-app="mobile"][data-acabamento="a"] body #settings#settings hr { border-color:var(--dark-border)!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote.mobileQuoteFlow .mqProgress.mFinished li.mDone .mqStepButton > span { background:#20c568!important; color:#062e20!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote :is(#receiptControls,.receiptPaymentAction) {
    background:var(--dark-field)!important; border:1px solid var(--dark-border)!important; border-radius:9px!important;
    color:var(--dark-text)!important; box-shadow:none!important; padding:12px!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #receiptControls :is(b,p,small) { color:var(--dark-muted)!important; font-size:13px!important; line-height:1.5!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #receiptControls b { color:var(--dark-text)!important; font-weight:500!important; letter-spacing:0!important; text-transform:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .receiptPaymentAction button {
    background:#10344e!important; color:#8bd0ff!important; border:1px solid #275573!important;
    min-height:44px!important; padding:10px!important; font-size:14px!important; border-radius:8px!important; font-weight:500!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .savedRow button {
    min-height:44px!important; min-width:108px!important; max-width:100%!important;
    padding:10px 12px!important; white-space:nowrap!important; font-size:14px!important; font-weight:500!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quotes#quotes .pagehead .primary {
    min-height:44px!important; padding:10px 12px!important; font-size:14px!important; font-weight:500!important;
  }
}
@media screen and (max-width:350px) {
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqDocumentActions { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

/* Acabamento mínimo sobre o desenho aprovado. Não muda as dimensões gerais.
   A janela de recebimento e o campo cortado são correções de legibilidade. */
@media screen and (max-width:760px) {
  html[data-app="mobile"][data-acabamento="a"] body :is(#quote,#quotes,#clients,#products,#settings,#reports) :is(.panel,.savedRow,.mqPickedProduct,.itemrow,.screenProductItem,.mqReceipts,.mqDock,.filter,.mqOptions) {
    border-color:#2a4558!important;
    box-shadow:inset 0 1px 0 #ffffff04!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#quote,#quotes,#clients,#products,#settings,#reports,#mNav,#mHub) button {
    transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease;
    -webkit-tap-highlight-color:transparent;
  }
  html[data-app="mobile"][data-acabamento="a"] body :is(#quote,#quotes,#clients,#products,#settings,#reports) button:active:not(:disabled) {
    border-color:#64b9ec!important; box-shadow:inset 0 0 0 1px #64b9ec26!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .quotegrid > div > .panel > .formgrid > hr { display:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote [data-mq-stage="3"] .paymentCheckboxRow { border-top:0!important; border-bottom:0!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .generalNotesField,
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote label:has(>#generalNotes) {
    border-top:0!important; border-bottom:0!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #generalNotes {
    height:auto!important; min-height:96px!important; max-height:none!important; resize:vertical;
    line-height:1.5!important; white-space:pre-wrap!important; overflow:auto!important;
    border-color:#2a4558!important;
  }
  /* Corpo rolável independente: rodapé nunca cobre os valores da janela. */
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog {
    color-scheme:dark; background:#101f2e!important; color:#edf3f8!important;
    border:1px solid #2a4558!important; box-shadow:0 16px 48px #0008!important;
    overflow:hidden!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog #desktopBalanceForm {
    display:flex!important; flex-direction:column!important; min-height:0!important;
    max-height:calc(100dvh - 34px)!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog .balanceDialogBody {
    display:block!important; flex:1 1 auto!important; min-height:0!important;
    overflow-y:auto!important; overscroll-behavior:contain; scroll-padding-block:12px;
    background:#101f2e!important; color:#edf3f8!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(.balanceDialogHeader,.balanceDialogFooter) {
    position:static!important; flex:0 0 auto!important; background:#101f2e!important; color:#edf3f8!important; border-color:#2a4558!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(label,h2,b,strong) { color:#edf3f8!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(.balanceDialogHint,.balancePaymentTotals span,.balancePaymentTotals small) { color:#b3c3d1!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(input,select) {
    background:#0b1926!important; color:#edf3f8!important; border-color:#2a4558!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(.balancePaymentTotals,.desktopBalancePending) {
    background:#0b1926!important; color:#edf3f8!important; border-color:#2a4558!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(.balancePaymentFinal,.balancePaymentRemainder) { border-color:#2a4558!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog .balancePaymentFinal strong { color:#4cda98!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog #receiveBalanceError {
    color:#ffb1b6!important; overflow-wrap:anywhere;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog .balanceDialogActions button {
    background:#0b1926!important; color:#edf3f8!important; border-color:#2a4558!important;
    box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog #receiveBalanceConfirm {
    background:#078fe7!important; border-color:#078fe7!important; color:white!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog [hidden] { display:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog::backdrop { background:#020811b8!important; }
  html[data-app="mobile"][data-acabamento="a"] body #desktopBalanceDialog#desktopBalanceDialog :is(input,select):focus-visible {
    outline:2px solid #078fe755!important; outline-offset:1px!important; box-shadow:none!important; border-color:#078fe7!important;
  }
  /* Catálogo disponível para consulta; cadastro no Desktop, para todos os perfis. */
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products .productRegisterGrid,
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products :is(.productActions,.editBtn,.star),
  html[data-app="mobile"][data-mobile-catalog="consulta"] body .setupAction[data-view="products"],
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #productInactiveControls { display:none!important; }
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products .productRow { cursor:default!important; }
  @media (prefers-reduced-motion:reduce) {
    html[data-app="mobile"] body :is(#quote,#quotes,#clients,#products,#settings,#reports,#mNav,#mHub) button { transition:none!important; }
  }
}
@media screen {
  html[data-app="mobile"] body .previaAviso { color:#a9bccb; font:400 12px/1.5 Inter,system-ui,sans-serif; margin:0 0 12px; }
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products .productRegisterGrid,
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products :is(.productActions,.editBtn,.star),
  html[data-app="mobile"][data-mobile-catalog="consulta"] body .setupAction[data-view="products"],
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #productInactiveControls { display:none!important; }
  html[data-app="mobile"][data-mobile-catalog="consulta"] body #products .productRow { cursor:default!important; }
  html[data-app="mobile"][data-acabamento="a"] body #products#products .productListTools { border-color:#2a4558!important; }
}

/* Revisão 04: acabamento localizado. Geometria normal e regras financeiras preservadas. */
@media screen {
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #replaceOrderBtn,
  html[data-app="mobile"][data-acabamento="a"] body #replaceOrderModal#replaceOrderModal { display:none!important; }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote .mqReceipts,
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #receiptControls,
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote#quote .receiptPaymentAction {
    border-color:transparent!important; background:transparent!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote:has(#receiptPaymentActions .receiptPaymentAction) #receiptPrintBtn {display:none!important;}
  html[data-app="mobile"][data-acabamento="a"] body #travelFields {
    background:#101f2e!important; border-color:#2a4558!important; color:#edf3f8!important; box-shadow:none!important;
  }
  html[data-app="mobile"][data-acabamento="a"] body #travelFields :is(b,strong,label) {color:#edf3f8!important;}
  html[data-app="mobile"][data-acabamento="a"] body #travelFields :is(small,.travelRound) {color:#b3c3d1!important;}
  html[data-app="mobile"][data-acabamento="a"] body #travelEstimate {background:#102d41!important;color:#8fd4ff!important;border-color:#2a4558!important;}
  html[data-app="mobile"][data-acabamento="a"] body #travelFields input:not([type="checkbox"]) {background:#0b1926!important;color:#edf3f8!important;border-color:#2a4558!important;}
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #itemEditNotice {background:#102d41!important;color:#b3d9ef!important;border-color:#078fe7!important;}
  html[data-app="mobile"][data-acabamento="a"] body #quote#quote #shareStatus {background:#102d41!important;color:#b3d9ef!important;border-color:#2a4558!important;}
  html[data-app="mobile"][data-acabamento="a"] body #cancelModal#cancelModal .cancelConfirmButton {background:#078fe7!important;border-color:#078fe7!important;color:#fff!important;}
  html[data-app="mobile"][data-acabamento="a"] body #cancelModal#cancelModal .cancelConfirmButton:disabled {opacity:.5;}
  html[data-app="mobile"][data-acabamento="a"] body :is(.cancelConfirmButton,.receiptPaymentButton) {transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease;}
  @media (prefers-reduced-motion:reduce) {
    html[data-app="mobile"][data-acabamento="a"] body :is(.cancelConfirmButton,.receiptPaymentButton) {transition:none!important;}
  }
}
/* Impressão comercial: retirar o aplicativo do fluxo, inclusive os espaços reservados.
   Recibos e relatórios conservam seus próprios caminhos de impressão. */
@media print {
  html[data-app="mobile"] body :is(#mNav,#mHub,#mSheet,#mNotify,.previaAviso,.mqDock,.mqReviewTools,.mqDocumentActions,.mqOptions,.mqReceipts,.mqStepper,.mqHeader) {display:none!important;}
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) > :not(main),
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) main > :not(#quote),
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) #quote > :not(.quotegrid),
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) #quote .quotegrid > :not(.summary),
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) #quote .summary > :not(.preview) {display:none!important;}
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) #quote#quote#quote#quote .preview :is(button,.mReceive,.measureHelp,.presentationControls,.check) {display:none!important;}
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport),
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) :is(main,#quote,.quotegrid,.summary) {
    display:block!important;position:static!important;transform:none!important;overflow:visible!important;
    margin:0!important;padding:0!important;min-height:0!important;height:auto!important;background:#fff!important;
  }
  html[data-app="mobile"] body:not(.printingReceipt):not(.printingMonthlyReport) #quote#quote .summary .panel.preview {
    display:block!important;position:static!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important;
    border:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;
  }
}

/* Acabamento sem alteração da grade, posições, tipografia ou dimensões usuais. */
@media screen {
 html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument :is(.reportSection,.reportDailyChart,.reportLists,.reportReconciliation) {background:#101f2e!important;color:#edf3f8!important;border-color:#284357!important;box-shadow:none!important;}
 html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument :is(h2,h3,.reportTableRow b,.reportDailySummary b) {color:#edf3f8!important;}
 html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument :is(.reportSectionHelp,.reportDay span,.reportEmpty,footer) {color:#b3c3d1!important;}
 html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument .reportBarTrack {background:#0b1926!important;border-color:#284357!important;}
 html[data-app="mobile"][data-acabamento="a"] body #reports#reports #monthlyReportDocument .reportBarTrack i {background:linear-gradient(0deg,#078fe7,#20c568)!important;transform-origin:bottom;}
 html[data-app="mobile"][data-acabamento="a"] body #quote#quote #orcupTipQuote .tipIcon {aspect-ratio:1!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;display:inline-grid!important;place-items:center!important;align-self:start!important;flex:0 0 32px!important;border-radius:50%!important;background:#102d41!important;border:1px solid #284357!important;color:#8fd4ff!important;line-height:1!important;}
 html[data-app="mobile"] body button[data-mobile-busy] {position:relative!important;cursor:progress!important;color:transparent!important;text-shadow:none!important;}
 html[data-app="mobile"] body button[data-mobile-busy] > * {visibility:hidden!important;}
 html[data-app="mobile"] body button[data-mobile-busy]::after {content:attr(data-busy-label);position:absolute;inset:0;display:grid;place-items:center;padding-left:17px;color:#edf3f8;font:inherit;pointer-events:none;}
 html[data-app="mobile"] body button[data-mobile-busy]::before {content:'';position:absolute;left:8px;top:calc(50% - 6px);width:12px;height:12px;box-sizing:border-box;border:2px solid #edf3f845;border-top-color:#8fd4ff;border-radius:50%;animation:orcupButtonWait .7s linear infinite;pointer-events:none;}
 @keyframes orcupButtonWait {to{transform:rotate(360deg)}}
 @media (prefers-reduced-motion:reduce) {html[data-app="mobile"] body button[data-mobile-busy]::before {animation:none!important;}}
}
@media print {
 /* Exclusão explícita do pedido na impressão mensal, que tinha regras próprias mais fortes. */
 html[data-app="mobile"] body.printingMonthlyReport > :not(main),
 html[data-app="mobile"] body.printingMonthlyReport main > :not(#reports),
 html[data-app="mobile"] body.printingMonthlyReport #quote#quote#quote#quote,
 html[data-app="mobile"] body.printingMonthlyReport #reports#reports > :not(#monthlyReportDocument) {display:none!important;}
 html[data-app="mobile"] body.printingMonthlyReport :is(main,#reports#reports) {display:block!important;position:static!important;transform:none!important;overflow:visible!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;background:#fff!important;}
 html[data-app="mobile"] body.printingMonthlyReport #reports#reports #monthlyReportDocument {display:block!important;color:#111!important;background:#fff!important;}
}
