/* ═══ Madu V8.03 · Início do gestor em feed ═══════════════════════════════════════ */
:root{--v8-bg:#f6f5ef;--v8-paper:#fff;--v8-ink:#1c2a21;--v8-muted:#6c776f;--v8-line:#ecebe5;--v8-green:#2f5a40;--v8-green-2:#3a7552;--v8-red:#c23b31;--v8-ease:cubic-bezier(.2,.8,.2,1)}

/* O Início antigo some só quando o feed está ativo (perfil gestor da conta principal). */
body.madu-v803-feed #tab-dashboard>:not(#maduV803Home){display:none!important}
body.madu-v803-feed #tab-dashboard{padding-bottom:110px}
.v8-home{display:flex;flex-direction:column;gap:12px;max-width:680px;margin:0 auto;color:var(--v8-ink)}

/* Lupa no topo (celular) */
.v8-top-search{position:absolute;left:8px;bottom:6px;width:44px;height:44px;border-radius:14px;border:0;background:transparent;color:#2f4f3c;font-size:19px;display:grid;place-items:center;z-index:5}
.v8-top-search:active{background:#2f4f3c14}
.v8-top-search[hidden]{display:none}
@media (min-width:768px){.v8-top-search{display:none!important}}

/* Avatares */
.v8-av{--av1:#dcebdf;--av2:#c3dbc9;--avc:#2f6044;flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(150deg,var(--av1),var(--av2));color:var(--avc);font-weight:800;font-size:14.5px;letter-spacing:.01em}
.v8-av img{width:100%;height:100%;object-fit:cover;display:block}
.v8-av.is-sm{flex-basis:36px;width:36px;height:36px;font-size:13px}
.v8-av.is-xl{flex-basis:104px;width:104px;height:104px;font-size:36px;border:4px solid #fff;box-shadow:0 10px 26px -14px #0f1c1488}
.v8-av.is-ring{padding:2px;background:conic-gradient(#f2b84b,#e0457b,#7c5cd6,#2fa58a,#f2b84b)}
.v8-av.is-ring img{border-radius:50%;border:2px solid #fff}
.v8-av.is-madu{background:linear-gradient(150deg,#2f6044,#1f4a33);color:#d9f2df;font-size:17px}
.v8-av.is-icon{background:#eef3ec;color:#3d6a4f;font-size:16px}

/* Stories (destaques do dia): anel com a cor da urgência, ícone do assunto e número no selo */
.v8-stories{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:6px 2px 6px;margin:0 -2px;scroll-snap-type:x proximity}
.v8-stories::-webkit-scrollbar{display:none}
.v8-story{flex:0 0 74px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;border:0;background:none;padding:0;color:var(--v8-ink);scroll-snap-align:start;font:inherit}
.v8-ring{--r1:#2fa58a;--r2:#8ccf6b;--in:#e8f5ee;--c:#1f7a5c;--b:#2a8a62;position:relative;width:66px;height:66px;border-radius:50%;padding:3px;background:conic-gradient(from 210deg,var(--r1),var(--r2),var(--r1));display:flex;transition:transform .15s var(--v8-ease)}
.v8-story:active .v8-ring{transform:scale(.94)}
.v8-ring-in{flex:1;border-radius:50%;border:3px solid var(--v8-bg);background:var(--in);color:var(--c);display:grid;place-items:center}
.v8-ring-in i{font-size:22px}
.v8-badge{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);min-width:24px;height:21px;padding:0 7px;border-radius:999px;background:var(--b);color:#fff;font-size:11.5px;font-weight:800;border:2px solid var(--v8-bg);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;letter-spacing:-.01em;box-sizing:border-box}
.v8-story-name{font-size:11.5px;font-weight:700;color:#3d4a42;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v8-story.is-green .v8-ring{--r1:#2fa58a;--r2:#8ccf6b;--in:#e8f5ee;--c:#1f7a5c;--b:#2a8a62}
.v8-story.is-red .v8-ring{--r1:#e2544a;--r2:#f2a24b;--in:#fdecea;--c:#c23b31;--b:#d63b31}
.v8-story.is-amber .v8-ring{--r1:#e0a12e;--r2:#f6d36b;--in:#fdf5e2;--c:#a8660c;--b:#c98612}
.v8-story.is-gold .v8-ring{--r1:#e0a12e;--r2:#f2cf5b;--in:#fdf5e2;--c:#a8660c;--b:#b37a12}
.v8-story.is-pink .v8-ring{--r1:#d9467d;--r2:#8f5bd6;--in:#fbebf2;--c:#b02e63;--b:#c2387a}
.v8-story.is-purple .v8-ring{--r1:#7c5cd6;--r2:#c08cf0;--in:#f1ecfb;--c:#5b3db0;--b:#6a4cc7}
.v8-story.is-blue .v8-ring{--r1:#3f74d1;--r2:#62b8e8;--in:#e9f0fc;--c:#2a56a8;--b:#3566c4}
.v8-story.is-seen .v8-ring{background:#d6d9d2;--b:#8b968e}
.v8-story.is-seen .v8-story-name{color:#76817a}

/* Hoje: saudação, "Precisa de você" e o resumo do dia */
.v8-today{background:var(--v8-paper);border:1px solid #ebe9e1;border-radius:22px;padding:14px 12px 8px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 22px -18px #28322880}
.v8-hello{display:flex;align-items:center;gap:10px;padding:0 4px}
.v8-hello>span:first-child{flex:1;display:flex;flex-direction:column;min-width:0}
.v8-hello b{font-size:18px;letter-spacing:-.015em;line-height:1.25}
.v8-hello small{font-size:12.5px;color:var(--v8-muted);font-weight:600}
.v8-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;padding:6px 11px;border-radius:999px;white-space:nowrap}
.v8-pill i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.v8-pill.is-red{color:#b3322a;background:#fdecea}
.v8-pill.is-amber{color:#8f5b0c;background:#fdf3dc}
.v8-pill.is-ok{color:#1f7a5c;background:#e7f5ec}
.v8-pill.is-blue{color:#2a56a8;background:#e9f0fc}
.v8-pill.is-ok i{width:auto;height:auto;background:none;font-size:11px}
.v8-attn h3{margin:0 4px 8px;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#6c776f;font-weight:800}
.v8-at-list{display:flex;flex-direction:column;gap:6px}
.v8-at{--t:#b3322a;--bg:#fff2f0;--ic:#e2544a;display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"ico title tag" "ico text text";align-content:center;column-gap:11px;row-gap:2px;align-items:center;width:100%;padding:10px 12px 11px 10px;border:0;border-radius:16px;background:var(--bg);text-align:left;font-family:inherit;color:var(--v8-ink);transition:transform .12s var(--v8-ease)}
.v8-at.has-sub{grid-template-areas:"ico title tag" "ico text text" "ico sub sub"}
.v8-at:active{transform:scale(.98)}
.v8-at-ico{grid-area:ico;align-self:start;width:40px;height:40px;border-radius:13px;background:var(--ic);color:#fff;display:grid;place-items:center;font-size:16px;box-shadow:0 6px 14px -8px var(--ic)}
.v8-at-title{grid-area:title;font-size:14.5px;line-height:1.25;letter-spacing:-.005em;min-width:0;padding-top:1px}
.v8-at-text{grid-area:text;font-size:12.5px;color:#4f5d54;line-height:1.38;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0}
.v8-at-sub{grid-area:sub;font-size:12.5px;line-height:1.35;color:var(--t);font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.v8-at-tag{grid-area:tag;justify-self:end;font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--t);background:#fff;border-radius:999px;padding:4px 8px;white-space:nowrap;max-width:96px;overflow:hidden;text-overflow:ellipsis}
.v8-at-go{grid-area:tag;justify-self:end;color:#9aa49c;font-size:11px;padding-right:2px}
.v8-at.is-amber{--t:#8f5b0c;--bg:#fff6e4;--ic:#df9a22}
.v8-at.is-purple{--t:#5b3db0;--bg:#f4f0fd;--ic:#7559c7}
.v8-at.is-blue{--t:#2a56a8;--bg:#f0f5fc;--ic:#3f74d1}
/* alinhado à esquerda: o botão flutuante Comunicado (à direita) não cobre o texto */
.v8-at-more{margin-top:6px;width:100%;min-height:42px;border:0;border-radius:12px;background:#f3f2ec;color:#2f5a40;font-family:inherit;font-size:13.5px;font-weight:800;display:flex;align-items:center;gap:9px;padding:0 15px;text-align:left}
.v8-at-more i{font-size:11px;width:14px;text-align:center}
.v8-allok{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#eef7f1}
.v8-allok>span{flex:0 0 40px;width:40px;height:40px;border-radius:13px;background:#2f7a52;color:#fff;display:grid;place-items:center;font-size:16px}
.v8-allok p{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.v8-allok b{font-size:14.5px}.v8-allok small{font-size:12.5px;color:#4f5d54;line-height:1.35}
.v8-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #efeee8;padding-top:6px;margin:0 -2px}
.v8-stat{border:0;background:none;font-family:inherit;color:var(--v8-ink);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;padding:7px 2px 6px;border-radius:12px;min-width:0;position:relative}
.v8-stat+.v8-stat::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:1px;background:#efeee8}
.v8-stat b{font-size:17px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.v8-stat small{font-size:11px;font-weight:700;color:var(--v8-muted);text-align:center;line-height:1.2}
.v8-stat.is-red b{color:#c23b31}
.v8-stat:active{background:#f3f2ec}

/* Abas e feed: a barra gruda logo abaixo do cabeçalho do app; o traço verde acompanha o dedo ao arrastar */
.v8-main{display:flex;flex-direction:column;gap:12px;min-height:calc(100dvh - var(--madu-top,0px) - 24px)}
.v8-tabs{position:sticky;top:var(--madu-top,0px);z-index:6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--v8-bg);border-bottom:1px solid #e6e4dc;margin-top:2px}
.v8-tabs button{position:relative;border:0;background:none;padding:12px 4px 13px;font-family:inherit;font-size:14.5px;font-weight:700;color:var(--v8-muted);transition:color .2s}
.v8-tabs button.is-on{color:var(--v8-ink);font-weight:800}
.v8-ink{position:absolute;left:0;bottom:-1px;width:calc(100% / 3);height:3px;transform:translateX(calc(var(--i,0) * 100%));transition:transform .3s var(--v8-ease);pointer-events:none}
.v8-ink::after{content:"";position:absolute;left:50%;top:0;width:52px;height:100%;margin-left:-26px;border-radius:3px;background:var(--v8-green)}
body.madu-pager-on .v8-ink{transition:none}
.v8-feed{background:var(--v8-paper);border:1px solid #ebe9e1;border-radius:20px;overflow:hidden;margin-top:-4px}
.v8-post{display:flex;gap:10px;padding:13px 14px 14px;border-bottom:1px solid var(--v8-line)}
.v8-post:last-child{border-bottom:0}
.v8-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.v8-kicker{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--v8-muted)}
.v8-post.is-pinned .v8-kicker{color:var(--v8-green)}
.v8-head{display:flex;align-items:baseline;gap:5px;font-size:14.5px;line-height:1.3;min-width:0}
.v8-head>span{color:var(--v8-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v8-more{margin-left:auto;border:0;background:none;color:#97a19a;width:32px;height:28px;border-radius:10px;align-self:center}
.v8-aud{align-self:flex-start;font-size:11.5px;font-weight:800;color:var(--v8-green);background:#e7f1ea;padding:3px 9px;border-radius:999px}
.v8-text{margin:0;font-size:15px;line-height:1.45;color:var(--v8-ink);white-space:pre-line;overflow-wrap:anywhere}
.v8-line{margin:0;font-size:14.5px;line-height:1.42;overflow-wrap:anywhere}
.v8-who{cursor:pointer}
.v8-time{color:var(--v8-muted)}
.v8-hl{font-weight:800}.v8-hl.is-late{color:#c23b31}.v8-hl.is-soon{color:#a8660c}
.v8-chip{display:inline-block;font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px;vertical-align:1px}
.v8-chip.is-red{background:#fdecea;color:#b3322a}
.v8-photo{display:block;border:1px solid var(--v8-line);border-radius:16px;overflow:hidden;padding:0;background:linear-gradient(110deg,#efeee8 30%,#f7f6f1 50%,#efeee8 70%);background-size:200% 100%;animation:v8-shimmer 1.2s linear infinite;min-height:150px;max-height:420px;width:100%}
.v8-photo.is-ready{animation:none;background:#f3f2ec;min-height:0}
.v8-photo img{display:block;width:100%;max-height:420px;object-fit:cover}
.v8-photo.is-error{animation:none;min-height:60px}
@keyframes v8-shimmer{to{background-position:-200% 0}}
.v8-pdf{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--v8-line);background:#faf9f5;text-align:left;font-family:inherit;color:var(--v8-ink);width:100%}
.v8-pdf>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.v8-pdf b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v8-pdf small{font-size:12px;color:var(--v8-muted)}
.v8-pdf>i{color:#8a978e}
.v8-pdf-ico{flex:0 0 36px;width:36px;height:44px;border-radius:6px;background:#fdecea;border:1px solid #f3c9c4;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;box-sizing:border-box;font-size:9px;font-weight:800;color:#c23b31}
.v8-acts{display:flex;align-items:center;gap:12px;font-size:13px;margin:-6px 0 -10px}
.v8-read{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:#2f7a52}
.v8-read.is-all{color:#1f7a5c}
.v8-link{margin-left:auto;border:0;background:none;color:var(--v8-green);font-weight:800;font-size:13px;padding:4px 0;font-family:inherit}
.v8-acts .v8-link:first-child{margin-left:0}
.v8-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}
.v8-btn{min-height:38px;padding:0 16px;border-radius:999px;border:1px solid #dfe3dc;background:#fff;color:var(--v8-ink);font-weight:800;font-size:13.5px;font-family:inherit}
.v8-btn.is-dark{background:#1f4a33;border-color:#1f4a33;color:#fff}
.v8-post.is-madu{background:linear-gradient(90deg,#f3faf5,#fff 45%)}
.v8-post.is-team .v8-body{gap:4px;justify-content:center}
.v8-empty{text-align:center;padding:34px 22px 38px;color:var(--v8-muted)}
.v8-empty span{width:56px;height:56px;border-radius:18px;background:#eef3ec;color:#3d6a4f;display:inline-grid;place-items:center;font-size:22px;margin-bottom:10px}
.v8-empty h3{margin:0 0 4px;color:var(--v8-ink);font-size:16px}
.v8-empty p{margin:0;font-size:13.5px;line-height:1.45}
.v8-loading{display:flex;justify-content:center;gap:6px;padding:28px}
.v8-loading span{width:8px;height:8px;border-radius:50%;background:#9fbfaa;animation:v8-dot 1s infinite ease-in-out}
.v8-loading span:nth-child(2){animation-delay:.15s}.v8-loading span:nth-child(3){animation-delay:.3s}
@keyframes v8-dot{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:none}}
.v8-foot{text-align:center;margin:4px 0 0}
.v8-foot button{border:0;background:none;color:#7a867e;font-size:12.5px;text-decoration:underline;font-family:inherit;padding:8px}

/* Botão flutuante */
.v8-fab{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom) + 98px);z-index:40;display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 22px;border-radius:20px;border:0;background:linear-gradient(180deg,#3a7552,#2a573d);color:#fff;font-weight:800;font-size:15.5px;font-family:inherit;box-shadow:0 12px 24px -10px #1f4a33aa,0 2px 6px #1f4a3333;transition:transform .15s var(--v8-ease)}
.v8-fab:active{transform:scale(.95)}
.v8-fab span{max-width:140px;overflow:hidden;white-space:nowrap;transition:max-width .25s var(--v8-ease),opacity .2s}
.v8-fab.is-compact{padding:0 17px;gap:0}
.v8-fab.is-compact span{max-width:0;opacity:0}
@media (min-width:768px){.v8-fab{bottom:28px;right:28px}}
body.madu-v796-sheet-open .v8-fab{visibility:hidden}

/* ─── Telas cheias ─── */
.madu-v796-sheet.v8-screen{background:transparent;align-items:stretch;justify-content:stretch}
.madu-v796-sheet.v8-screen>.v8-screen-card{position:fixed;inset:0;width:100%;max-width:none;max-height:none;height:100%;border-radius:0;padding:0;background:var(--v8-bg);box-shadow:none;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
@media (min-width:768px){.madu-v796-sheet.v8-screen{background:#0f1c1466;align-items:center;justify-content:center}.madu-v796-sheet.v8-screen>.v8-screen-card{position:relative;inset:auto;width:min(100%,560px);height:min(92dvh,900px);border-radius:24px;box-shadow:0 30px 80px #0f1c1455}}

/* Foto ampliada */
.v8-viewer-screen>.v8-screen-card{background:#0b0f0c!important}
.v8-viewer{min-height:100%;display:grid;place-items:center;padding:calc(env(safe-area-inset-top) + 56px) 0 calc(env(safe-area-inset-bottom) + 20px)}
.v8-viewer img{max-width:100%;max-height:calc(100dvh - 90px);object-fit:contain}
.v8-viewer-x{position:fixed;top:calc(env(safe-area-inset-top) + 10px);right:12px;width:44px;height:44px;border-radius:50%;border:0;background:#ffffff24;color:#fff;font-size:18px;z-index:2}

/* Stories abertos */
.v8-story-screen>.v8-screen-card{background:#1b2b21!important}
.v8s{min-height:100%;display:flex;flex-direction:column;color:#fff;padding:calc(env(safe-area-inset-top) + 10px) 18px calc(env(safe-area-inset-bottom) + 16px);transition:background .3s}
.v8s-bars{display:flex;gap:4px}
.v8s-bars span{flex:1;height:3px;border-radius:3px;background:#ffffff4d;overflow:hidden}
.v8s-bars i{display:block;height:100%;width:0;background:#fff;border-radius:3px}
.v8s-stage{flex:1;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.v8s-head{display:flex;align-items:center;gap:10px;margin-top:14px}
.v8s-head>span:nth-child(2){flex:1;display:flex;flex-direction:column}
.v8s-head b{font-size:16px}.v8s-head small{font-size:13px;opacity:.8}
.v8s-ico{width:42px;height:42px;border-radius:50%;background:#ffffff2e;display:grid;place-items:center;font-size:17px}
.v8s-x{width:44px;height:44px;border-radius:50%;border:0;background:none;color:#fff;font-size:22px}
.v8s-main{flex:1;display:flex;flex-direction:column;padding-top:36px}
.v8s-big{font-size:68px;font-weight:800;letter-spacing:-.04em;line-height:1}
.v8s-lead{margin:8px 0 18px;font-size:24px;font-weight:800;line-height:1.2;letter-spacing:-.01em}
.v8s-list{display:flex;flex-direction:column;border-radius:20px;background:#ffffff1f;border:1px solid #ffffff2e;padding:4px 14px}
.v8s-row{display:flex;align-items:center;gap:10px;padding:11px 0;border:0;border-bottom:1px solid #ffffff24;background:none;color:#fff;text-align:left;font-family:inherit;width:100%}
.v8s-row:last-child{border-bottom:0}
.v8s-row>span:not(.v8-av){flex:1;min-width:0;display:flex;flex-direction:column}
.v8s-row b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v8s-row small{font-size:12.5px;opacity:.82}
.v8s-row .v8-av{border:2px solid #ffffff55}
.v8s-time,.v8s-tag,.v8s-hour{font-style:normal;font-weight:800;font-size:13px;padding:4px 11px;border-radius:999px;background:#ffffff33;white-space:nowrap}
.v8s-time.is-late{background:#fff;color:#a8302a}
.v8s-hour{background:none;padding:0 2px;font-size:14px;min-width:42px}
.v8s-tag.is-on{background:#d8f5e3;color:#1f6b45}.v8s-tag.is-pause{background:#dbe8fb;color:#2a56a8}.v8s-tag.is-late,.v8s-tag.is-miss,.v8s-tag.is-naobateu{background:#fde0dd;color:#a8302a}.v8s-tag.is-done,.v8s-tag.is-off,.v8s-tag.is-wait{background:#ffffff2e;color:#fff}
.v8s-tag.is-ready{background:#d8f5e3;color:#1f6b45}.v8s-tag.is-delivered{background:#ffffff2e}
.v8s-more{margin:10px 2px 0;font-size:13px;opacity:.85}
.v8s-tip{margin:16px 2px 0;font-size:14px;font-weight:700;opacity:.9;line-height:1.4}
.v8s-foot{display:flex;flex-direction:column;gap:12px;padding-top:18px}
.v8s-btns{display:flex;gap:10px}
.v8s-btns button{flex:1;min-height:54px;border-radius:16px;border:1.5px solid #ffffff80;background:none;color:#fff;font-weight:800;font-size:16px;font-family:inherit}
.v8s-btns button.is-primary{background:#fff;color:#1c2a21;border-color:#fff}
.v8s-foot small{text-align:center;font-size:13px;font-weight:700;opacity:.8}

/* Novo comunicado */
.v8-compose-screen>.v8-screen-card{background:#fff!important}
.v8c{min-height:100%;display:flex;flex-direction:column}
.v8c-head{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;background:#fffffff2;backdrop-filter:blur(8px)}
.v8c-head h2{margin:0;text-align:center;font-size:17px}
.v8c-cancel{border:0;background:none;font-weight:700;font-size:15px;color:var(--v8-ink);padding:10px 4px;font-family:inherit}
.v8c-pub{min-height:42px;padding:0 20px;border-radius:999px;border:0;background:#1f4a33;color:#fff;font-weight:800;font-size:15px;font-family:inherit}
.v8c-pub:disabled{opacity:.4}
.v8c-scroll{flex:1;padding-bottom:90px}
.v8c-who{padding:6px 16px 14px;border-bottom:1px solid var(--v8-line)}
.v8c-who h3{margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--v8-muted)}
.v8c-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:16px;background:#f1f0ea}
.v8c-seg button{min-height:42px;border:0;border-radius:12px;background:none;font-weight:700;font-size:14.5px;color:#5d6b62;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:inherit}
.v8c-seg button.is-on{background:#fff;color:var(--v8-ink);font-weight:800;box-shadow:0 2px 8px #1c2a2118}
.v8c-pick:not(:empty){margin-top:10px}
.v8c-chips{display:flex;flex-wrap:wrap;gap:8px}
.v8c-chip{min-height:38px;padding:0 14px;border-radius:999px;border:1.5px solid #e2e5df;background:#fff;font-weight:700;font-size:14px;color:#4c5a51;display:inline-flex;align-items:center;gap:7px;font-family:inherit}
.v8c-chip.is-on{background:#1f4a33;border-color:#1f4a33;color:#fff}
.v8c-search{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:14px;border:1.5px solid #e2e5df;background:#fafaf7;color:#8a958d}
.v8c-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:15px;color:var(--v8-ink);height:42px}
.v8c-people{display:flex;flex-direction:column;margin-top:6px;max-height:260px;overflow:auto}
.v8c-person{display:flex;align-items:center;gap:10px;padding:8px 2px;border:0;border-bottom:1px solid #f1f0ea;background:none;text-align:left;font-family:inherit;color:var(--v8-ink)}
.v8c-person>span:nth-child(2){flex:1;display:flex;flex-direction:column}.v8c-person small{color:var(--v8-muted);font-size:12px}
.v8c-person>i{font-size:20px;color:#c9cec8}.v8c-person.is-on>i{color:#2f7a52}
.v8c-hint{margin:6px 0 0;font-size:13px;color:var(--v8-muted)}
.v8c-write{display:flex;gap:12px;padding:16px}
.v8c-write textarea{flex:1;border:0;outline:0;resize:none;font:inherit;font-size:17px;line-height:1.45;color:var(--v8-ink);min-height:120px;background:none;padding:6px 0}
.v8c-files{display:flex;gap:10px;overflow-x:auto;padding:0 16px 12px 70px}
.v8c-files:empty{display:none}
.v8c-file{position:relative;flex:0 0 auto;border-radius:16px;overflow:hidden;border:1px solid var(--v8-line)}
.v8c-file.is-img img{display:block;height:128px;width:auto;max-width:200px;object-fit:cover}
.v8c-file.is-pdf{width:150px;height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#faf9f5;padding:8px;box-sizing:border-box;text-align:center}
.v8c-file.is-pdf b{font-size:12.5px;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.v8c-file.is-pdf small{font-size:11px;color:var(--v8-muted)}
.v8c-file button{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:0;background:#0f1c14b3;color:#fff;font-size:13px}
.v8c-opts{margin:4px 16px 0;border:1px solid var(--v8-line);border-radius:18px;overflow:hidden}
.v8c-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--v8-line);cursor:pointer}
.v8c-opt:last-child{border-bottom:0}
.v8c-opt>i:first-child{width:22px;text-align:center;color:#3d6a4f;font-size:16px}
.v8c-opt>span{flex:1;display:flex;flex-direction:column}.v8c-opt b{font-size:14.5px}.v8c-opt small{font-size:12.5px;color:var(--v8-muted)}
.v8c-opt input{position:absolute;opacity:0;pointer-events:none}
.v8c-sw{position:relative;flex:0 0 48px;width:48px;height:28px;border-radius:999px;background:#d7dcd5;transition:background .2s}
.v8c-sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s var(--v8-ease)}
.v8c-opt input:checked+.v8c-sw{background:#2f7a52}
.v8c-opt input:checked+.v8c-sw::after{transform:translateX(20px)}
.v8c-opt input:focus-visible+.v8c-sw{outline:2px solid #2f7a52;outline-offset:2px}
.v8c-info{margin:12px 18px 0;font-size:13px;line-height:1.45;color:var(--v8-muted)}
.v8c-info i{margin-right:4px}
.v8c-bar{position:sticky;bottom:0;display:flex;align-items:center;gap:6px;padding:8px 12px calc(env(safe-area-inset-bottom) + 8px);background:#fffffff2;border-top:1px solid var(--v8-line);backdrop-filter:blur(8px)}
.v8c-tool{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:#2f6044;font-size:21px;cursor:pointer}
.v8c-tool:active{background:#eef3ec}
.v8c-count{margin-left:auto;font-size:13px;font-weight:700;color:var(--v8-muted)}

/* Leituras e opções */
.v8r-sum{margin:2px 0 10px;font-size:14px;color:var(--v8-muted)}.v8r-sum b{color:var(--v8-ink)}
.v8r-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.v8r-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--v8-line)}
.v8r-list li>span:nth-child(2){flex:1;display:flex;flex-direction:column}.v8r-list small{font-size:12px;color:var(--v8-muted)}
.v8r-list em{font-style:normal;font-size:12.5px;font-weight:800;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.v8r-list .is-ok em{color:#1f7a5c}.v8r-list .is-seen em{color:#a8660c}.v8r-list .is-no em{color:#9aa39c}
.v8r-note{margin:12px 0 0;font-size:12.5px;color:var(--v8-muted);line-height:1.4}
.v8-menu-acts{display:flex;flex-direction:column;gap:8px}
.v8-menu-acts button{min-height:52px;border-radius:14px;border:1px solid var(--v8-line);background:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;gap:12px;padding:0 16px;text-align:left;font-family:inherit;color:var(--v8-ink)}
.v8-menu-acts button i{width:20px;color:#3d6a4f}
.v8-menu-acts button.is-danger{color:#b33a35}.v8-menu-acts button.is-danger i{color:#b33a35}

/* Menu completo */
.v8m{min-height:100%;display:flex;flex-direction:column}
.v8m-top{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:calc(env(safe-area-inset-top) + 6px) 12px 6px;background:#eef3ecf2;border-bottom:1px solid #e0e8df;backdrop-filter:blur(8px)}
.v8m-back{width:44px;height:44px;border:0;background:none;border-radius:14px;font-size:18px;color:#2f4f3c}
.v8m-brand{text-align:center;font-size:18px;letter-spacing:.42em;font-weight:600;color:#2f4f3c;padding-left:.42em}
.v8m-scroll{padding:14px 16px calc(env(safe-area-inset-bottom) + 40px)}
.v8m-me{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.v8m-me .v8-av{flex-basis:56px;width:56px;height:56px;font-size:18px}
.v8m-me>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.v8m-me b{font-size:18px}.v8m-me small{align-self:flex-start;font-size:10.5px;font-weight:800;letter-spacing:.04em;color:#2f6044;background:#dceadf;padding:3px 8px;border-radius:6px}
.v8m-me button{width:44px;height:44px;border-radius:14px;border:0;background:none;color:#2f4f3c;font-size:18px}
.v8m-search{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border-radius:16px;border:1.5px solid #e2e5df;background:#fff;color:#8a958d;margin-bottom:6px}
.v8m-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:15.5px;color:var(--v8-ink);height:46px}
.v8m-group h3{margin:20px 2px 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#6c776f}
.v8m-group[hidden],.v8m-card[hidden]{display:none!important}
.v8m-cards{display:flex!important;flex-direction:column;gap:10px}
.v8m-card{width:100%}
.v8m-badges{display:inline-flex;gap:4px;align-items:center;margin-left:auto}
.v8m-badge{min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:#6c776f}
.v8m-badge.is-red{background:#c9433a}.v8m-badge.is-amber{background:#b3711c}.v8m-badge.is-orange{background:#e0752a}.v8m-badge.is-purple{background:#7559c7}.v8m-badge.is-slate{background:#5d6b74}
.v8m-none{text-align:center;color:var(--v8-muted);padding:30px 0}
.v8m-foot{display:flex;flex-direction:column;gap:8px;margin-top:24px}
.v8m-foot button{min-height:48px;border-radius:14px;border:1px dashed #cfd6cd;background:none;font-weight:700;font-size:14px;color:#4c5a51;display:flex;align-items:center;justify-content:center;gap:8px;font-family:inherit}
/* Cores dos cartões novos (os demais já vêm do estilo atual por data-kind) */
.v8m-card[data-kind="counting"] .madu-kitchen-symbol{background:#efe6da;color:#7a5531}
.v8m-card[data-kind="suppliers"] .madu-kitchen-symbol{background:#dcf0ee;color:#1f7f78}
.v8m-card[data-kind="shopping"] .madu-kitchen-symbol{background:#fde7d6;color:#c2621a}
.v8m-card[data-kind="pedidos"] .madu-kitchen-symbol{background:#ebe5fa;color:#6a50bf}
.v8m-card[data-kind="expenses"] .madu-kitchen-symbol{background:#fbe3e3;color:#b8433f}
.v8m-card[data-kind="fiscal"] .madu-kitchen-symbol{background:#e3e9f3;color:#3f5f95}
.v8m-card[data-kind="labelsettings"] .madu-kitchen-symbol{background:#e1efe6;color:#2f6a46}
.v8m-card[data-kind="brand"] .madu-kitchen-symbol{background:#f8e1ea;color:#b13d6c}
.v8m-card[data-kind="locais"] .madu-kitchen-symbol{background:#dcefee;color:#1f7a72}
.v8m-card[data-kind="categorias"] .madu-kitchen-symbol{background:#efedda;color:#7a6f1f}
.v8m-card[data-kind="notifications"] .madu-kitchen-symbol{background:#e2ebf5;color:#3d6596}
.v8m-card[data-kind="plan"] .madu-kitchen-symbol{background:#f6ecd4;color:#9a6e10}
.v8m-card[data-kind="reports"] .madu-kitchen-symbol{background:#e6e9ee;color:#4f5b6c}
.v8m-card[data-kind="expiry"] .madu-kitchen-symbol{background:#fde3e1;color:#c23b31}

/* Pesquisa */
.v8q{min-height:100%;display:flex;flex-direction:column}
.v8q-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;background:#f6f5eff2;backdrop-filter:blur(8px)}
.v8q-box{flex:1;display:flex;align-items:center;gap:10px;min-height:50px;padding:0 10px 0 14px;border-radius:16px;border:2px solid #4f7d60;background:#fff;color:#2f5a40;box-shadow:0 0 0 4px #4f7d6022}
.v8q-box input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:16.5px;color:var(--v8-ink);height:46px}
.v8q-clear{width:30px;height:30px;border-radius:50%;border:0;background:#e3e8e2;color:#5d6b62}
.v8q-clear[hidden]{display:none}
.v8q-cancel{border:0;background:none;color:var(--v8-green);font-weight:800;font-size:15px;font-family:inherit;padding:8px 0}
.v8q-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 14px 10px;scrollbar-width:none}
.v8q-chips::-webkit-scrollbar{display:none}
.v8q-chips button{flex:0 0 auto;min-height:38px;padding:0 16px;border-radius:999px;border:1.5px solid #e2e5df;background:#fff;font-weight:800;font-size:14px;color:#4c5a51;font-family:inherit}
.v8q-chips button.is-on{background:#2f5a40;border-color:#2f5a40;color:#fff}
.v8q-res{padding:4px 14px calc(env(safe-area-inset-bottom) + 30px);display:flex;flex-direction:column;gap:6px}
.v8q-answer{border-radius:18px;padding:14px 16px;background:linear-gradient(160deg,#eaf4ec,#fff 80%);border:1px solid #d5e6d9;margin-bottom:6px}
.v8q-answer small{font-size:11.5px;font-weight:800;letter-spacing:.08em;color:#2f6a46}
.v8q-answer p{margin:6px 0 0;font-size:16px;line-height:1.45;font-weight:600}
.v8q-answer .is-on{color:#2f7a52}
.v8q-sec h3{margin:12px 2px 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#6c776f}
.v8q-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:16px;border:1px solid #ebe9e1;background:#fff;margin-bottom:8px;text-align:left;font-family:inherit;color:var(--v8-ink)}
.v8q-row>span:not(.v8-av):not(.v8q-when):not(.v8q-ico){flex:1;min-width:0;display:flex;flex-direction:column}
.v8q-row b{font-size:15.5px}.v8q-row small{font-size:13px;color:var(--v8-muted)}
.v8q-row>i{color:#a3ada6}
.v8q-row mark{background:#fbe9a8;color:inherit;border-radius:3px;padding:0 1px}
.v8q-when{flex:0 0 58px;height:52px;border-radius:14px;background:#fbe7ef;color:#b02e63;font-weight:800;display:grid;place-items:center;font-size:14px}
.v8q-ico{flex:0 0 52px;height:52px;border-radius:14px;background:#fdf1dc;color:#b07514;display:grid;place-items:center;font-size:19px}
.v8q-pills{display:flex;flex-wrap:wrap;gap:8px}
.v8q-pills button{min-height:42px;padding:0 16px;border-radius:14px;border:1px solid #e2e5df;background:#fff;font-weight:800;font-size:14px;color:#2f5a40;display:inline-flex;align-items:center;gap:8px;font-family:inherit}
.v8q-hint{margin:14px 4px;color:var(--v8-muted);font-size:14px;line-height:1.45}

/* Perfil do funcionário */
.v8p{min-height:100%;background:var(--v8-bg)}
.v8p-cover{height:calc(env(safe-area-inset-top) + 150px);display:flex;align-items:flex-start;gap:10px;padding:calc(env(safe-area-inset-top) + 12px) 14px 0;background:radial-gradient(120% 140% at 100% 0%,#5a9a72 0%,#2f6044 45%,#244c35 100%)}
.v8p-cover>span{flex:1}
.v8p-btn{width:44px;height:44px;border-radius:14px;border:0;background:#ffffff26;color:#fff;font-size:17px}
.v8p-body{padding:0 16px calc(env(safe-area-inset-bottom) + 30px)}
.v8p-id{display:flex;align-items:flex-end;gap:12px;margin-top:-54px}
.v8p-status{margin-bottom:10px;display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:800;padding:6px 12px;border-radius:999px;background:#e3f2e7;color:#24683f}
.v8p-status i{width:8px;height:8px;border-radius:50%;background:currentColor}
.v8p-status.is-pause{background:#e3ecf7;color:#2a56a8}.v8p-status.is-late,.v8p-status.is-miss,.v8p-status.is-naobateu{background:#fbe5e3;color:#a3302b}.v8p-status.is-off,.v8p-status.is-done,.v8p-status.is-wait{background:#eceeec;color:#5d665f}
.v8p-name{margin:12px 0 2px;font-size:26px;letter-spacing:-.02em}
.v8p-sub{margin:0;color:var(--v8-muted);font-size:14px}
.v8p-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px}
.v8p-kpis button{border:1px solid #e6e4dc;background:#fff;border-radius:16px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;font-family:inherit;color:var(--v8-ink)}
.v8p-kpis b{font-size:18px;letter-spacing:-.02em}.v8p-kpis small{font-size:11px;color:var(--v8-muted);font-weight:700;text-align:center}
.v8p-kpis .is-pos{color:#2f7a52}.v8p-kpis .is-neg{color:#c23b31}
.v8p-chart{margin-top:12px;background:#fff;border:1px solid #e6e4dc;border-radius:18px;padding:12px 14px}
.v8p-chart header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.v8p-chart header b{font-size:14px}.v8p-chart header small{font-size:12.5px;color:#2f7a52;font-weight:800}
.v8p-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:100px;margin-top:10px}
.v8p-bars span{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:6px;height:100%}
.v8p-bars i{display:block;border-radius:8px;background:#d3e6d8}
.v8p-bars .is-today i{background:#2f5a40}
.v8p-bars small{text-align:center;font-size:11px;font-weight:700;color:var(--v8-muted)}
.v8p-bars .is-today small{color:var(--v8-ink)}
.v8p-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:16px;background:#ebeae3;margin-top:14px}
.v8p-seg button{min-height:40px;border:0;border-radius:12px;background:none;font-weight:700;font-size:14.5px;color:#5d6b62;font-family:inherit}
.v8p-seg button.is-on{background:#fff;color:var(--v8-ink);font-weight:800;box-shadow:0 2px 8px #1c2a2118}
.v8p-tl{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column}
.v8p-tl li{display:grid;grid-template-columns:52px 38px 1fr;gap:10px;align-items:start;padding:8px 0;position:relative}
.v8p-tl li:not(:last-child)::before{content:"";position:absolute;left:24px;top:30px;bottom:-6px;width:2px;background:#dfe3dc}
.v8p-tl time{font-size:13px;font-weight:800;color:#56645b;padding-top:9px;text-align:center;background:var(--v8-bg);position:relative;z-index:1}
.v8p-tl-ico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:15px;background:#e3f2e7;color:#2f7a52}
.v8p-tl-ico.is-blue{background:#e3ecf7;color:#2a56a8}.v8p-tl-ico.is-amber{background:#fdf1dc;color:#b07514}.v8p-tl-ico.is-red{background:#fbe5e3;color:#b3322a}.v8p-tl-ico.is-orange{background:#fde9da;color:#c2621a}.v8p-tl-ico.is-purple{background:#ece6fa;color:#6a50bf}.v8p-tl-ico.is-slate{background:#eceeec;color:#5d665f}
.v8p-tl li>span:last-child{display:flex;flex-direction:column;padding-top:3px}
.v8p-tl b{font-size:15px}.v8p-tl small{font-size:13px;color:var(--v8-muted)}
.v8p-tl li.is-empty{display:block;color:var(--v8-muted);font-size:14px;padding:20px 0}
.v8p-tl li.is-empty::before{display:none}

/* Tablets: comunicados na tela de perfis */
.v8-tablet{display:flex;flex-direction:column;gap:10px;margin:0 0 16px}
.v8-tablet-card{background:#fff;border:1.5px solid #9cc3aa;border-radius:20px;padding:14px 16px;box-shadow:0 12px 26px -18px #1f4a3299;text-align:left}
.v8-tablet-card header{display:flex;align-items:center;gap:8px;color:#2f6044}
.v8-tablet-card header b{font-size:14px}.v8-tablet-card header small{margin-left:auto;color:#6c776f;font-size:12px}
.v8-tablet-card p{margin:8px 0 0;font-size:16px;line-height:1.45;color:#1c2a21;white-space:pre-line}
.v8-tablet-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-top:10px}
.v8-tablet-files .v8-photo{min-height:110px}.v8-tablet-files .v8-photo img{max-height:220px}

@media (prefers-reduced-motion:reduce){.v8-photo{animation:none}.v8-loading span{animation:none}}
.v8-fab[hidden]{display:none}
.v8-screen h2,.v8-screen h3{font-family:inherit}
.v8c-head h2{font-weight:800!important;letter-spacing:-.01em}
.v8p-name{font-weight:800!important}
.v8-empty h3{font-weight:800}
.v8-screen input[type=search]::-webkit-search-cancel-button,.v8-screen input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
/* Foto do gestor no topo com o anel colorido */
body.madu-v803-feed #maduMobileProfilePhoto{border:2.5px solid transparent;background:linear-gradient(#e9f1ea,#e9f1ea) padding-box,conic-gradient(#f2b84b,#e0457b,#7c5cd6,#2fa58a,#f2b84b) border-box}
.v8-desk-search{display:none}
@media (min-width:768px){.v8-desk-search{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 16px;border-radius:16px;border:1.5px solid #e2e5df;background:#fff;color:#7a867e;font:inherit;font-size:14.5px;text-align:left}.v8-desk-search:hover{border-color:#b9cbbd}}
