/* Madu V8.16 — Visual premium no celular: barra inferior fixa (como no Instagram), ícones de traço,
   botão flutuante único e redondo, cabeçalho limpo, toque com resposta imediata. */
:root{--m16-ink:#16261d;--m16-mut:#748078;--m16-g:#1f4a36;--m16-line:rgba(22,38,29,.09);--m16-bar:56px}
html{-webkit-tap-highlight-color:transparent}
button,a,[role="button"],summary,label,input,select,textarea{touch-action:manipulation}
@media (max-width:767px){
 /* Barra inferior: fixa, de ponta a ponta, com nome embaixo do ícone */
 html:root body #maduMobileBottomBar#maduMobileBottomBar{left:0!important;right:0!important;width:100%!important;bottom:0!important;top:auto!important;height:calc(var(--m16-bar) + env(safe-area-inset-bottom,0px))!important;min-height:0!important;padding:0 4px env(safe-area-inset-bottom,0px)!important;margin:0!important;border:0!important;border-top:1px solid var(--m16-line)!important;border-radius:0!important;box-shadow:none!important;background:rgba(255,255,255,.94)!important;-webkit-backdrop-filter:saturate(1.8) blur(18px)!important;backdrop-filter:saturate(1.8) blur(18px)!important;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;align-items:stretch!important;transform:none!important}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button{height:var(--m16-bar)!important;min-height:var(--m16-bar)!important;width:auto!important;max-width:none!important;margin:0!important;padding:7px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;color:var(--m16-mut)!important;font-size:10.5px!important;font-weight:600!important;letter-spacing:.01em}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button>span:not([data-madu-order-badges]){position:static!important;width:auto!important;height:auto!important;margin:0!important;clip-path:none!important;overflow:visible!important;font-size:10.5px!important;line-height:1.1!important;white-space:nowrap!important}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button :is(svg,i){width:25px!important;height:25px!important;font-size:21px!important;display:grid!important;place-items:center!important;transition:transform .12s ease}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button svg.m16-ic{stroke-width:1.7}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button:is(.madu-active,[aria-current="page"]){color:var(--m16-g)!important;font-weight:800!important;background:transparent!important}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button:is(.madu-active,[aria-current="page"]) svg.m16-ic{stroke-width:2.3}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button:active :is(svg,i){transform:scale(.88)}
 /* Botão flutuante: um só padrão, redondo, só o ícone, acima da barra */
 html:root body :is(.v8-fab:not([hidden]),.madu-v796-fab:not([hidden]),#maduOrderCreate.madu-v794-fab.is-floating:not([hidden])){position:fixed!important;right:16px!important;left:auto!important;top:auto!important;bottom:calc(var(--m16-bar) + env(safe-area-inset-bottom,0px) + 16px)!important;width:54px!important;height:54px!important;min-height:54px!important;padding:0!important;gap:0!important;border:0!important;border-radius:50%!important;background:var(--m16-g)!important;color:#fff!important;font-size:0!important;box-shadow:0 12px 26px -10px rgba(31,74,54,.6),0 2px 6px rgba(31,74,54,.18)!important;display:grid!important;place-items:center!important;overflow:hidden!important}
 html:root body :is(.v8-fab,.madu-v796-fab,#maduOrderCreate.madu-v794-fab.is-floating) :is(i,svg){font-size:21px!important;width:22px!important;height:22px!important;margin:0!important}
 html:root body :is(.v8-fab,.madu-v796-fab,#maduOrderCreate.madu-v794-fab.is-floating) span{display:none!important}
 html:root body :is(.v8-fab,.madu-v796-fab,#maduOrderCreate.madu-v794-fab.is-floating):active{transform:scale(.92)!important}
 /* Cabeçalho limpo: claro, linha fina, título forte; ajuda discreta */
 html:root body.madu-refined #appSidebar#appSidebar{background:rgba(250,251,248,.92)!important;-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);box-shadow:none!important;border-bottom:1px solid var(--m16-line)!important}
 html:root body.madu-refined :is(#maduV772TopBar strong,#maduV772CurrentTitle){font-size:17px!important;font-weight:800!important;letter-spacing:-.015em!important;color:var(--m16-ink)!important}
 html:root body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-v764-help,#maduV772Help){opacity:.55}
 html:root body.madu-refined #maduV772TopBar button{border:0!important;background:transparent!important;box-shadow:none!important}
 /* Conteúdo: respiro para a barra fixa */
 html:root body.madu-refined main{padding-bottom:calc(var(--m16-bar) + env(safe-area-inset-bottom,0px) + 84px)!important}
 /* Tipografia e cartões */
 html:root body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
 html:root body :is(.glass-card,.madu-v797-card,.sp-card){border-radius:20px}
 html:root body :is(.nf-input,.sp-fields input,.sp-fields select){min-height:48px;border-radius:14px}
 /* Imprimir etiquetas: cabeçalho arrumado */
 html:root body .m10-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
 html:root body .m10-h>div{display:grid;gap:2px}
 html:root body .m10-h .m10-h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--m16-ink)}
 html:root body .m10-h>div>p:not(.m10-h2){margin:0;font-size:12.5px;color:var(--m16-mut)}
 html:root body .m10-hl{display:flex;flex-wrap:wrap;gap:6px}
 html:root body .m10-hl .m10-link{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--m16-line);background:#fff;font-size:12.5px;font-weight:700;text-decoration:none;color:var(--m16-g)}
 html:root body .m10-central{display:none}
 /* Sem itens desnecessários */
 .v8-foot{display:none!important}
}
/* Toque: resposta visual imediata em todos os botões */
@media (hover:none){
 button:not(:disabled),[role="button"],.nf-btn{transition:transform .08s ease,background-color .12s ease,opacity .12s ease}
 button:not(:disabled):active,[role="button"]:active,.nf-btn:active{transform:scale(.97)}
}
/* Carregando: a logo nova no lugar do texto "MADU" */
#maduLoading .madu-loading-word{font-size:0!important;width:64px;height:64px;display:block;background:url(/assets/madu-logo.svg) center/contain no-repeat;border-radius:16px}
#maduLoading .madu-loading-line{display:none!important}
/* O botão de comunicado é só do Início (antes aparecia em todas as telas: o estilo dele vencia o "escondido") */
html:root body :is(.v8-fab,.madu-v796-fab,#maduOrderCreate.madu-v794-fab)[hidden]{display:none!important}
/* "Nova encomenda" só aparece na agenda de Encomendas */
@media (max-width:767px){html:root body:not(.madu-v794-fab-on) #maduOrderCreate.madu-v794-fab.is-floating{display:none!important}}
/* Contador de avisos no sino da barra inferior */
@media (max-width:767px){html:root body #maduMobileBottomBar#maduMobileBottomBar>button{position:relative!important}
 html:root body #maduMobileBottomBar #maduNotificationCount{position:absolute!important;top:4px!important;left:calc(50% + 6px)!important;right:auto!important;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c0392b!important;color:#fff!important;font-size:10px!important;font-weight:800;display:grid;place-items:center;border:2px solid #fff}}

/* Itens que a função da pessoa não pode ver continuam escondidos na barra */
html:root body #maduMobileBottomBar#maduMobileBottomBar>button:is([hidden],.madu-role-hidden,.hidden){display:none!important}
/* Imprimir em destaque: verde, com impressora */
@media (max-width:767px){
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button[data-madu-tab="labels"]{color:var(--m16-g)!important;font-weight:800!important}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button[data-madu-tab="labels"] svg.m16-ic{width:46px!important;height:30px!important;padding:5px 12px;border-radius:12px;background:var(--m16-g);color:#fff;stroke-width:1.9!important;box-shadow:0 6px 14px -6px rgba(31,74,54,.55);box-sizing:border-box}
 html:root body #maduMobileBottomBar#maduMobileBottomBar>button[data-madu-tab="labels"]:is(.madu-active,[aria-current="page"]) svg.m16-ic{background:#163a29;stroke-width:2.2!important}
}
/* Computador: a roda do mouse volta a rolar a tela (a área central não rola sozinha e prendia a rolagem) */
@media (min-width:768px){html:root body main{overscroll-behavior:auto!important}}
