/* Madu V8.15 — botões flutuantes menores (só o ícone) e acabamento visual do app no celular. */
@media (max-width:767px){
 html:root body .v8-fab,html:root body .v8-fab.is-compact{height:48px;width:48px;padding:0;gap:0;border-radius:16px;justify-content:center;right:14px}
 html:root body .v8-fab span{max-width:0!important;opacity:0!important}
 html:root body .v8-fab svg,html:root body .v8-fab i{width:22px;height:22px;font-size:19px}
 html:root body .madu-v796-fab:not([hidden]),html:root body .madu-v796-fab.is-compact{height:48px;min-height:48px;width:48px;padding:0;border-radius:16px;font-size:0;gap:0;right:14px}
 html:root body .madu-v796-fab i{font-size:19px}
 html:root body #maduOrderCreate.madu-v794-fab.is-floating{height:48px;min-height:48px;width:48px!important;padding:0!important;border-radius:16px;font-size:0;gap:0;right:14px!important}
 html:root body #maduOrderCreate.madu-v794-fab.is-floating i{font-size:19px}
 html:root body #maduOrderCreate.madu-v794-fab.is-floating span{display:none}
}

/* ═══ Início do gestor (V8.15) ═══ */
html:root body .v8-stories{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible!important}
html:root body .v8-story{min-width:0;width:auto}
html:root body .v8-story-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Comunicado fixado no topo */
.v15-pin:empty{display:none}
.v15-pinc{margin:0 0 12px;padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,#fff8ea,#fdf1dc);border:1px solid #f0d6a6;box-shadow:0 6px 18px -10px #b0782155}
.v15-pin-k{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#a0631a}
.v15-pinc p{margin:6px 0 8px;font-size:15px;font-weight:700;color:#3d2a0c;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* Curtir e comentar */
.v15-soc{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.v15-like,.v15-cmb{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #dfe6dc;background:#fff;font:inherit;font-size:13.5px;font-weight:800;color:#35503f}
.v15-like.is-on{background:#1f4a36;border-color:#1f4a36;color:#fff}
.v15-like b,.v15-cmb b{font-weight:800}
.v15-quem{color:#6b776f;font-size:12.5px}
.v15-cm{display:flex;flex-direction:column;min-height:100%;background:#fff}
.v15-cm-h{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #eef0ec;font-size:17px}
.v15-x{width:40px;height:40px;border-radius:12px;border:0;background:#f2f4f0;font-size:18px}
.v15-cm-txt{margin:12px 16px;padding:12px;border-radius:14px;background:#f6f7f3;white-space:pre-line}
.v15-cm-list{flex:1;padding:4px 16px;display:grid;gap:12px;align-content:start}
.v15-cm-it{display:grid;grid-template-columns:36px 1fr;gap:10px}
.v15-cm-av{width:36px;height:36px;border-radius:50%;background:#e3f0e6;color:#1f4a36;display:grid;place-items:center;font-weight:800;font-size:13px}
.v15-cm-it p{margin:2px 0;white-space:pre-line}.v15-cm-it small,.v15-cm-empty{color:#6b776f;font-size:12.5px}
.v15-cm-f{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eef0ec}
.v15-cm-f input{flex:1;min-height:46px;border-radius:999px;border:1px solid #dfe6dc;padding:0 16px;font:inherit}
.v15-cm-f button{width:46px;height:46px;border-radius:50%;border:0;background:#1f4a36;color:#fff}
/* Aba Vendas */
.v15-sales{display:grid;gap:14px;padding:4px 2px 12px}
.v15-kpi{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}
.v15-kpi>div{background:#fff;border-radius:18px;padding:14px;box-shadow:0 1px 2px #0000000d,0 8px 22px -14px #1f4a3355;display:grid;gap:2px}
.v15-kpi small{color:#6b776f;font-weight:700;font-size:12.5px}.v15-kpi b{font-size:24px;letter-spacing:-.02em;color:#173f2c}
.v15-kpi em{font-style:normal;font-size:12px;font-weight:700;color:#6b776f}.v15-kpi em.is-up{color:#1d7a52}.v15-kpi em.is-down{color:#b3261e}
.v15-chart{display:flex;align-items:flex-end;gap:3px;height:96px;padding:10px 12px 18px;background:#fff;border-radius:18px;box-shadow:0 1px 2px #0000000d}
.v15-chart span{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}
.v15-chart i{display:block;width:100%;min-height:2px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#e9a25f,#2f6a4c)}
.v15-chart small{position:absolute;bottom:-16px;font-size:10px;color:#8a958d}
.v15-canais{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v15-canais>div{background:#fff;border-radius:14px;padding:10px 12px;display:grid;gap:4px;box-shadow:0 1px 2px #0000000d}
.v15-canais span{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#6b776f}.v15-canais span i{width:8px;height:8px;border-radius:50%}
.v15-canais b{font-size:16px}.v15-canais em{height:5px;border-radius:5px;background:#eef0ec;overflow:hidden}.v15-canais em i{display:block;height:100%}
.v15-sales h4,.v15-sec{margin:6px 2px 0;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b776f}
.v15-top{margin:0;padding:0;list-style:none;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px #0000000d;counter-reset:t}
.v15-top li{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #f1f2ee;counter-increment:t}
.v15-top li span::before{content:counter(t)'. ';color:#e9a25f;font-weight:800}
.v15-open{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:16px;background:#1f4a36;color:#fff;font-weight:800;text-decoration:none}
.v15-sec{margin:14px 4px 6px}
/* Entrada direta do gestor: em vez da tela de perfis, um carregando com a logo. */
body.madu-owner-entering #loginGate{visibility:hidden}
body.madu-owner-entering::after{content:'';position:fixed;inset:0;z-index:300;background:#f5f4ef url(/assets/madu-icon-192.png?v=815) center/72px no-repeat;animation:m15pulse 1.2s ease-in-out infinite}
@keyframes m15pulse{50%{background-size:80px}}

/* ═══ Compras do dia em 4 passos (V8.15) ═══ */
.m15-compras .m15-hide{display:none!important}
.m15-compras>.sp-title{font-size:20px;margin-bottom:4px}
.m15-steps{display:grid;gap:14px;margin-top:10px}
.m15-step{border:1px solid #e6e9e3;border-radius:18px;background:#fff;padding:14px;display:grid;gap:12px}
.m15-step>header{display:flex;align-items:center;gap:10px}
.m15-step>header h4{margin:0;font-size:16px;font-weight:800;color:#1f4a36}
.m15-step>header small{display:block;color:#6b776f;font-size:12.5px}
.m15-n{flex:0 0 28px;height:28px;border-radius:50%;background:#1f4a36;color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px}
.m15-sb{display:grid;gap:12px}
.m15-tipo{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m15-tipo button{display:grid;justify-items:start;gap:2px;text-align:left;padding:12px;border-radius:14px;border:1.5px solid #dfe6dc;background:#fafbf8;font:inherit;color:#24332b;min-height:84px}
.m15-tipo button i{font-size:18px;color:#2f6a4c;margin-bottom:4px}
.m15-tipo button b{font-size:15px}.m15-tipo button small{color:#6b776f;font-size:12px;line-height:1.3}
.m15-tipo button[aria-checked="true"]{border-color:#1f4a36;background:#eef6ef;box-shadow:0 0 0 3px #1f4a3622}
.m15-help{font-size:12.5px!important;margin:0!important}
.m15-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m15-grid label:first-child{grid-column:1/-1}
.m15-grid label{display:grid;gap:4px;font-size:13px;font-weight:700;color:#4b5a51;margin:0}
.m15-tools{display:flex!important;flex-wrap:wrap;gap:8px;margin:0!important}
.m15-tools .nf-btn,.m15-tools label{flex:1 1 140px;min-height:42px;font-size:13px!important;justify-content:center}
.m15-compras .sp-v735-add{margin:0;border-radius:14px}
.m15-more{border-top:1px dashed #dfe6dc;padding-top:8px}
.m15-more summary{cursor:pointer;font-weight:800;color:#2f6a4c;font-size:14px;padding:6px 0}
.m15-more summary small{color:#6b776f;font-weight:600}
.m15-more-b{display:grid;gap:10px;padding-top:8px}
.m15-warn{font-size:12px!important;opacity:.85}
.m15-compras .sp-v735-total{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 72px);z-index:3;box-shadow:0 6px 20px -10px #1f4a3366}
@media (min-width:768px){.m15-compras .sp-v735-total{bottom:12px}.m15-grid{grid-template-columns:2fr 1fr 1fr 1.4fr}.m15-grid label:first-child{grid-column:auto}}

/* ═══ Encomendas: observação bem visível para a produção (V8.15) ═══ */
html:root body .madu-order-card .madu-v815-obs{display:block;margin:10px 0 4px;padding:10px 12px;border-radius:12px;background:#fff6dc;border-left:5px solid #e9a25f;color:#4a3108;font-size:15px;font-weight:700;line-height:1.4;white-space:pre-line}
html:root body .madu-order-card .madu-v815-obs strong{display:flex;align-items:center;gap:6px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#a0631a;margin-bottom:3px}
html:root body .madu-order-card .madu-v815-iobs{display:block;margin:4px 0 2px;padding:6px 9px;border-radius:9px;background:#fff6dc;color:#4a3108;font-style:normal;font-weight:700;font-size:14px;line-height:1.35;white-space:pre-line}
html:root body .madu-order-card .madu-order-conservation-pills{margin-top:8px}

/* ═══ Tela de entrada (V8.15) ═══ */
#companyLoginGate.m15-gate{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch!important;justify-content:stretch!important;padding:0!important;background:#f5f4ef!important;overflow:auto}
#companyLoginGate.m15-gate.hidden{display:none!important}
.m15-gate>div{align-self:center;justify-self:center;margin:24px;max-width:430px!important;border-radius:24px!important;box-shadow:0 30px 60px -30px #1f4a3355!important;border-color:#e6e4dc!important;animation:m15up .5s cubic-bezier(.2,.8,.2,1) both}
.m15-gate>div>.text-center>div:first-child{display:none}
.m15-hero{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 0% 0%,#2f6a4c 0%,#1f4a36 45%,#143326 100%);color:#f6ead2;display:flex;align-items:center;padding:48px}
.m15-hero::after{content:'';position:absolute;right:-120px;bottom:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,#e9a25f33,transparent 65%)}
.m15-hero-in{position:relative;z-index:1;max-width:520px;display:grid;gap:26px;animation:m15up .6s .05s cubic-bezier(.2,.8,.2,1) both}
.m15-mark{display:flex;align-items:center;gap:14px}
.m15-mark svg{width:58px;height:58px}
.m15-mark span{font-family:'Bricolage Grotesque',Manrope,sans-serif;font-weight:800;font-size:40px;letter-spacing:-.045em;line-height:1;display:inline-flex;align-items:baseline;gap:2px}
.m15-mark span i{font-style:normal;color:#e9a25f;font-size:30px}
.m15-mark span small{font-family:Manrope,sans-serif;font-weight:600;font-size:17px;letter-spacing:0;color:#cfe0d4;margin-left:8px}
.m15-hero h1{margin:0;font-size:clamp(26px,3.2vw,40px);line-height:1.12;letter-spacing:-.02em;font-weight:800}
.m15-hero ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.m15-hero li{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:600;color:#e8efe9}
.m15-hero li span{flex:0 0 38px;height:38px;border-radius:12px;background:#f6ead214;display:grid;place-items:center;color:#e9a25f}
.m15-hero-foot{margin:0;font-size:13px;color:#a9c2b2}
@keyframes m15up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.m15-gate>div,.m15-hero-in{animation:none}}
@media (max-width:860px){
 #companyLoginGate.m15-gate{grid-template-columns:1fr;align-content:start}
 .m15-hero{padding:28px 20px 56px}
 .m15-hero-in{gap:14px}
 .m15-hero h1{font-size:22px}
 .m15-hero ul,.m15-hero-foot{display:none}
 .m15-mark svg{width:44px;height:44px}.m15-mark span{font-size:30px}
 .m15-gate>div{margin:-36px 14px 24px!important;width:auto!important}
}
/* Cadastro: campos lado a lado */
.m15-sg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m15-sg-full{grid-column:1/-1}

/* ═══ Cabeçalho do celular: marca nova no lugar do texto "MADU" ═══ */
html:root body.madu-refined #maduV772Brand{font-size:0!important;letter-spacing:0!important;padding:0!important;text-transform:none!important;display:inline-flex!important;align-items:center;gap:6px;height:30px}
html:root body.madu-refined #maduV772Brand::before{content:'';width:28px;height:28px;border-radius:8px;background:url(/assets/madu-logo.svg) center/contain no-repeat}
html:root body.madu-refined #maduV772Brand::after{content:'madu';font:800 22px/1 'Bricolage Grotesque','Madu Manrope',Manrope,system-ui,sans-serif;letter-spacing:-.04em;color:#1f4a36}
html:root body.madu-refined.madu-v772-inner #maduV772Brand{display:none!important}
/* Acabamento geral no celular: cartões mais suaves e botões consistentes */
@media (max-width:767px){
 html:root body .glass-card{border-radius:18px}
 html:root body .nf-btn{border-radius:12px}
}
