/* Visual moderno (Juliana, 13/10/2026). Só aparência: nenhuma regra de negócio.
   Para voltar ao visual anterior basta tirar o <link> deste arquivo do index.html.
   Seletores com "html" na frente para vencer o <style> da página e os estilos injetados pelos módulos. */

html:root{
  --bg:#F6F1EB; --surface:#FFFFFF; --sunk:#F4EDE5; --line:#E8DDD1; --ink:#2A211C; --muted:#75655A;
  --salmon:#F26A1B; --leaf:#D9570C; --leaf-soft:#FDEBDD; --salmon-soft:#FDEBDD; --cream:#FBF4EA;
  --display:"Manrope","Inter",system-ui,sans-serif; --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --side-bg:#2B211C; --side-2:#3A2D26; --side-ink:#EFE6DD; --side-mut:#A8988A; --r:14px;
  --sombra:0 1px 2px rgba(42,33,28,.04),0 6px 20px -14px rgba(42,33,28,.25);
}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]){
  --bg:#211A16; --surface:#2C2420; --sunk:#352C27; --line:#463A33; --ink:#F6EEE6; --muted:#C2B3A6;
  --salmon:#FF8A45; --side-bg:#17110E; --side-2:#2A201B; --sombra:0 1px 2px rgba(0,0,0,.3),0 8px 22px -14px rgba(0,0,0,.6)}}
html:root[data-theme="dark"]{
  --bg:#211A16; --surface:#2C2420; --sunk:#352C27; --line:#463A33; --ink:#F6EEE6; --muted:#C2B3A6;
  --salmon:#FF8A45; --side-bg:#17110E; --side-2:#2A201B; --sombra:0 1px 2px rgba(0,0,0,.3),0 8px 22px -14px rgba(0,0,0,.6)}

html body{font-family:var(--body);letter-spacing:-.003em}
html body h1{font-family:var(--display);font-weight:800;letter-spacing:-.025em}
html body h2,html body h3{font-family:var(--display);letter-spacing:-.01em}

/* ---------- Menu lateral escuro ---------- */
html body .side{background:var(--side-bg)!important;border-right:0;color:var(--side-ink);gap:18px;padding:20px 14px}
html body .brand{flex-direction:column;align-items:stretch;gap:12px;padding:0 4px}
html body .brand .logo,html body .brand>small{display:none}
html body .brand2{display:flex;align-items:center;gap:11px;padding:4px 6px}
html body .mk2{width:40px;height:40px;border-radius:11px;background:#F26A1B;display:grid;place-items:center;position:relative;overflow:hidden;flex:none;box-shadow:0 6px 16px -8px rgba(242,106,27,.7)}
html body .mk2 svg{position:absolute;left:0;bottom:0;width:100%;height:14px}
html body .mk2 b{font:800 20px var(--display);color:#fff;position:relative;top:-3px}
html body .wm2 b{display:block;font:800 15px var(--display);letter-spacing:.07em;color:#fff;line-height:1.1}
html body .wm2 small{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--side-mut)}
html body .brand .mk{justify-content:flex-start;padding:0 6px}
html body .brand .mk span{background:var(--side-2);color:#D9CABC;text-decoration:none}
html body .side nav button{color:#E3D7CB;font-weight:500;border-radius:9px;padding:9px 11px}
html body .side nav button svg{opacity:.75}
html body .side nav button:hover{background:var(--side-2);color:#fff}
html body .side nav button[aria-current="page"]{background:#F26A1B;color:#fff!important;font-weight:600;box-shadow:0 6px 16px -10px rgba(242,106,27,.9)}
html body .side nav button[aria-current="page"] svg{opacity:1}
html body .side .foot{color:var(--side-mut);margin-bottom:22px;border-top:1px solid #3E322B;padding-top:12px}
html body .side .foot button{color:#E3D7CB}
html body .side .waves{display:none}
html body .side::after{content:"";position:absolute;left:14px;right:14px;bottom:14px;height:4px;border-radius:4px;background:linear-gradient(90deg,#8C9A3B 0 33.3%,#F26A1B 33.3% 66.6%,#F4B740 66.6%)}
html body .side select,html body .side input{background:var(--side-2);color:var(--side-ink);border-color:#4A3B33}
@media (max-width:760px){html body .side{padding:10px 14px}html body .side::after{display:none}html body .brand .mk,html body .wm2 small{display:none}}

/* ---------- Área principal ---------- */
html body main{background:var(--bg)}
html body .hero{background:transparent;padding:4px 0 6px;border-radius:0}
html body .hero .wv{display:none}

/* Cartões e painéis: brancos, borda fina, sombra suave */
html body .dp,html body .card,html body .cp-card,html body .dsec,html body .stat,html body .cp-yield-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sombra)}
html body .dp h2,html body .cp-card h2{font-family:var(--display);font-weight:700}

/* Indicadores do alto (Dashboard e Compras e perdas) */
html body .dk{border:1px solid var(--line)!important;border-top:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:var(--sombra);border-radius:14px;padding:16px 18px}
html body .dk::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--kc,#F26A1B)}
html body .dk b,html body .dk strong{font-family:var(--display);letter-spacing:-.02em}

/* Botões */
html body .btn{border-radius:10px;font-weight:600}
html body .btn.pri{background:#F26A1B;border-color:#F26A1B;color:#fff;box-shadow:0 6px 14px -10px rgba(242,106,27,.9)}
html body .btn.pri:hover{background:#D9570C;border-color:#D9570C}

/* Barras de período: estilo "segmentado" */
html body .cp-pchip,html body .dper button,html body .pchip{border-radius:8px}
html body .cp-pchip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* Tabelas: cabeçalho discreto */
html body table th{font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600}

/* Diálogos */
html body dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 70px -20px rgba(0,0,0,.45)}
html body dialog::backdrop{background:rgba(30,22,18,.45);backdrop-filter:blur(2px)}

/* Campos */
html body input:not([type=checkbox]):not([type=radio]),html body select,html body textarea{border-radius:10px}
html body input:focus,html body select:focus,html body textarea:focus{outline:2px solid color-mix(in srgb,#F26A1B 45%,transparent);outline-offset:1px}

/* ---------- Dashboard moderno (painel.js, classes mk-*) ---------- */
html:root{--mk-good:#1E8A4C;--mk-warn:#D97706;--mk-bad:#D12F2F;--mk-fat:#F26A1B;--mk-cus:#E3D6C8;--mk-ln:#2A211C}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]){--mk-good:#4CC27E;--mk-warn:#F2B04A;--mk-bad:#F26B6B;--mk-fat:#FF8A45;--mk-cus:#5A4A40;--mk-ln:#F6EEE6}}
html:root[data-theme="dark"]{--mk-good:#4CC27E;--mk-warn:#F2B04A;--mk-bad:#F26B6B;--mk-fat:#FF8A45;--mk-cus:#5A4A40;--mk-ln:#F6EEE6}
html body .mk-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}
html body .mk-k{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px 14px;box-shadow:var(--sombra);display:flex;flex-direction:column;gap:6px;min-width:0;overflow:hidden}
html body .mk-k::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:0 3px 3px 0;background:var(--kc)}
html body .mk-t{font-size:.8rem;color:var(--muted);font-weight:500;display:flex;gap:6px;align-items:center}
html body .mk-v{font:800 1.65rem var(--display);letter-spacing:-.025em;line-height:1.1}
html body .mk-d{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:.76rem}
html body .mk-vs,html body .mk-sub{color:var(--muted);font-size:.74rem}html body .mk-sub b{color:var(--ink)}
html body .mk-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:99px;font-size:.74rem;font-weight:700;white-space:nowrap}
html body .mk-pill.g{background:color-mix(in srgb,var(--mk-good) 14%,transparent);color:var(--mk-good)}
html body .mk-pill.r{background:color-mix(in srgb,var(--mk-bad) 13%,transparent);color:var(--mk-bad)}
html body .mk-pill.a{background:color-mix(in srgb,var(--mk-warn) 16%,transparent);color:var(--mk-warn)}
html body .mk-spark{width:100%;height:28px;margin-top:2px}
html body .mk-meter{position:relative;height:7px;border-radius:7px;background:var(--sunk);margin:6px 0 2px}
html body .mk-meter i{position:absolute;inset:0 auto 0 0;border-radius:7px}
html body .mk-meter em{position:absolute;top:-3px;width:2px;height:13px;margin-left:-1px;background:var(--ink);opacity:.55;border-radius:2px}
html body .mk-ok{color:var(--mk-good)}html body .mk-no{color:var(--mk-bad)}
html body .mk-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;margin-bottom:14px}
html body .mk-ch{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
html body .mk-leg{display:flex;gap:14px;font-size:.78rem;color:var(--muted)}html body .mk-leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
html body .mk-leg i.f{background:var(--mk-fat)}html body .mk-leg i.c{background:var(--mk-cus)}html body .mk-leg i.l{height:2px;border-radius:0;background:var(--mk-ln);vertical-align:3px}
html body .mk-chart{width:100%;height:auto;display:block}
html body .mk-grid{stroke:var(--line);stroke-dasharray:3 5}html body .mk-grid.z{stroke-dasharray:0}
html body .mk-ax{font:500 11px var(--body);fill:var(--muted)}html body .mk-ax.b{font-weight:700;fill:var(--ink)}
html body .mk-bf{fill:var(--mk-fat)}html body .mk-bf.o{opacity:.88}html body .mk-bc{fill:var(--mk-cus)}
html body .mk-chart g[data-tip]:hover rect{filter:brightness(.93)}
html body .mk-ln{fill:none;stroke:var(--mk-ln);stroke-width:2;stroke-linejoin:round}
html body .mk-pt{fill:var(--mk-ln);stroke:var(--surface);stroke-width:2}html body .mk-pt.neg{fill:var(--mk-bad)}
html body .mk-pl{font:700 11px var(--body);fill:var(--ink)}html body .mk-pl.neg{fill:var(--mk-bad)}
html body .mk-zero{stroke:var(--mk-bad);stroke-dasharray:2 4;opacity:.5}
html body .mk-stack{display:flex;flex-direction:column;gap:14px}
html body .mk-res{border:0!important;color:#fff}
html body .mk-res.neg{background:linear-gradient(135deg,#3A1F1A,#5E2620)!important}
html body .mk-res.pos{background:linear-gradient(135deg,#1F3A26,#2D5A35)!important}
html body .mk-res h2,html body .mk-res .dbig{color:#fff!important}html body .mk-res .sub{color:#F0DCD5!important}html body .mk-res .sub b{color:#fff}
html body .mk-res .info{border-color:rgba(255,255,255,.5);color:#fff}
html body .mk-dre{margin-bottom:14px}
html body .mk-tab{width:100%;border-collapse:collapse;font-size:.88rem}
html body .mk-tab th{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
html body .mk-tab td{padding:9px 10px;border-bottom:1px solid var(--sunk)}
html body .mk-tab .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html body .mk-tab tr.sub td{font-weight:700;background:var(--sunk)}
html body .mk-tab tr.sub2 td{font-weight:600;color:var(--muted)}
html body .mk-tab tr.tot td{font-weight:800;border-top:2px solid var(--ink);border-bottom:0}
html body .mk-bar{display:inline-block;height:6px;border-radius:4px;margin-left:8px;vertical-align:middle;opacity:.85}
@media (max-width:1200px){html body .mk-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}html body .mk-row{grid-template-columns:1fr}}
@media (max-width:640px){html body .mk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}html body .mk-bar{display:none}}
html body .mk-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
html body .mk-crumb{margin:0 0 2px;font-size:.8rem;color:var(--muted);letter-spacing:.02em}
html body .mk-head h1{margin:0}
html body .mk-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
html body .mk-seg{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:3px;box-shadow:var(--sombra)}
html body .mk-seg button{border:0;background:none;padding:7px 13px;border-radius:8px;font:500 .84rem var(--body);color:var(--muted)}
html body .mk-seg button:hover{color:var(--ink)}
html body .mk-seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg);font-weight:600}
html body .mk-tools .btn.pri{padding:10px 18px}
html body .mk-alert{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--mk-bad);border-radius:12px;padding:12px 16px;margin-bottom:16px;box-shadow:var(--sombra);font-size:.9rem}
html body .mk-alert b{color:var(--mk-bad);white-space:nowrap}
html body .mk-alert button{margin-left:auto;border:0;background:none;color:var(--salmon);font-weight:700;white-space:nowrap}
/* Menu: grupos, loja, usuária, contadores */
html body .brand .mk{display:none}
html body .mk-navg{margin:12px 11px 5px;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#8F7F72;font-weight:600}
html body #mkg1{margin-top:2px}
html body .mk-loja{background:var(--side-2);border-radius:11px;padding:9px 13px;display:flex;flex-direction:column}
html body .mk-loja small{font-size:.7rem;color:var(--side-mut)}html body .mk-loja b{color:#fff;font-weight:600;font-size:.95rem}
html body .lb-visao{background:var(--side-2);border-radius:11px;padding:8px 10px}
html body .lb-visao .lbl{color:var(--side-mut)!important;font-size:.7rem}
html body .lb-visao select{background:transparent!important;border:0!important;color:#fff!important;font-weight:600;padding-left:0}
html body .lb-visao select option{color:#2A211C}
html body .mk-badge{margin-left:auto;background:#5A2A20;color:#FFB4A8;font-size:.7rem;font-weight:700;padding:1px 7px;border-radius:99px}
html body nav button[aria-current="page"] .mk-badge{background:rgba(255,255,255,.25);color:#fff}
html body .side .foot>span:not(.mk-user):not(#mkUser){display:none}
html body .side .foot #lojaAtual,html body .side .foot #who{display:none}
html body .mk-user{display:flex;gap:10px;align-items:center;margin-bottom:6px}
html body .mk-av{width:34px;height:34px;border-radius:50%;background:#5B4638;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.78rem;flex:none}
html body .mk-user b{display:block;color:#fff;font-weight:600;font-size:.9rem}html body .mk-user small{color:var(--side-mut);font-size:.74rem}
html body .mk-abrir{display:flex;justify-content:flex-end;margin-top:6px}
html body .mk-per{margin-bottom:16px}html body .mk-head .mk-crumb{margin:4px 0 0;font-size:.9rem}
html body .side .foot{margin-bottom:30px}
/* Mais respiro no Dashboard (Juliana, 13/10/2026) */
html body .mk-head{margin-bottom:22px}html body .mk-per{margin-bottom:26px}
html body .mk-kpis{gap:18px;margin-bottom:22px}html body .mk-k{padding:20px 22px 18px;gap:8px}
html body .mk-row{gap:18px;margin-bottom:22px}html body .mk-stack{gap:18px}
html body #main .dp{padding:20px 22px}html body #main .drow,html body #main .drow2,html body #main .drow3{gap:18px;margin-bottom:22px}
/* Cabeçalho do Dashboard em duas faixas (Juliana, 13/10/2026) */
html body .mk-head{align-items:center;margin-bottom:20px}
html body .mk-head h1{font-size:2.1rem}
html body .mk-per{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 16px;box-shadow:var(--sombra);margin-bottom:32px}
html body .mk-per>span{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}
html body .mk-per .dre-pchips{border:0;box-shadow:none;background:var(--sunk);padding:3px;border-radius:11px}
html body .mk-per>small{background:var(--sunk);padding:5px 11px;border-radius:99px;color:var(--muted);font-weight:600}
html body .mk-fil{margin-left:auto}
@media (max-width:1100px){html body .mk-fil{margin-left:0;width:100%}}
html body #main .mk-per{margin-bottom:34px!important}html body #main .mk-kpis{margin-top:0}
/* Quando a loja vende: cartões da direita em 2×2 e o quadro sem espaço sobrando (Juliana, 13/10/2026) */
html body #main .drow:has(.drt-stack){align-items:stretch}
html body #main .drt-stack{display:grid!important;grid-template-columns:1fr 1fr;gap:14px;align-content:stretch}
html body #main .drt-stack>.dp{padding:16px 18px;display:flex;flex-direction:column;justify-content:center}
html body #main .drt-stack .dbig{font-size:1.3rem}
html body #main .drt-head+.drt-bars,html body #main .drt-bars{height:250px}
@media (max-width:1200px){html body #main .drt-stack{grid-template-columns:1fr 1fr}}
html body #main .drow:has(.drt-stack){grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)!important}@media (max-width:1000px){html body #main .drow:has(.drt-stack){grid-template-columns:1fr!important}}
/* Cartões do alto com degradê suave na cor de cada indicador (Juliana, 13/10/2026) */
html body .mk-k{background:linear-gradient(160deg,color-mix(in srgb,var(--kc) 13%,var(--surface)) 0%,var(--surface) 62%)!important;border-color:color-mix(in srgb,var(--kc) 22%,var(--line))!important}
html body .mk-k::after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--kc) 16%,transparent) 0%,transparent 70%);pointer-events:none}
/* Faixa do Período nas telas de Compras e perdas, Insumos e Fornecedores igual à do Dashboard (Juliana, 13/10/2026) */
html body .cp-per-global{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 16px;box-shadow:var(--sombra);margin:6px 0 24px}
html body .cp-per-global .cp-per{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
html body .cp-per-global .cp-per>span{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-right:12px}
html body .cp-per-global .cp-per>small{display:none}
html body .cp-per-global .cp-pchip{border:0!important;background:var(--sunk);color:var(--muted);font-weight:500;padding:7px 14px;border-radius:0;margin:0}
html body .cp-per-global .cp-pchip:first-of-type{border-radius:10px 0 0 10px;padding-left:16px}
html body .cp-per-global .cp-pchip:last-of-type{border-radius:0 10px 10px 0;padding-right:16px}
html body .cp-per-global .cp-pchip:hover{color:var(--ink)}
html body .cp-per-global .cp-pchip[aria-pressed="true"]{background:#3F7A5A!important;color:#fff!important;font-weight:600;border-radius:9px;box-shadow:0 2px 6px -2px rgba(0,0,0,.25)}
/* Títulos de coluna que ordenam */
html body .cp-sort{border:0;background:none;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}
html body .cp-sort:hover{color:var(--ink)}html body .cp-sort.on{color:var(--salmon);font-weight:700}
html body .cp-per-global{display:flex;align-items:center;min-height:0!important;height:auto!important}html body .cp-per-global .cp-per{gap:0!important;margin:0!important;padding:0!important}
/* Cartões do alto: sem degradê; ícone colorido em quadradinho e faixa de cor no topo (Juliana, 13/10/2026) */
html body .mk-k{background:var(--surface)!important;border-color:var(--line)!important;border-top:3px solid var(--kc)!important;padding-top:18px}
html body .mk-k::after{display:none}
html body .mk-k::before{display:none}
html body .mk-ico{position:absolute;right:16px;top:16px;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:var(--kc);background:color-mix(in srgb,var(--kc) 13%,var(--surface))}
html body .mk-ico svg{width:20px;height:20px}
html body .mk-t{padding-right:46px}
/* Tabela de Insumos mais encorpada (Juliana, 13/10/2026): linhas alternadas, cabeçalho firme, categoria em etiqueta */
html body .cp-ins-tab{border-collapse:separate;border-spacing:0;width:100%;font-size:.9rem}
html body .cp-ins-tab thead th{background:#3A2D26;color:#F3E9DF!important;padding:12px 12px;border:0;position:sticky;top:0;z-index:1}
html body .cp-ins-tab thead th:first-child{border-radius:10px 0 0 0}html body .cp-ins-tab thead th:last-child{border-radius:0 10px 0 0}
html body .cp-ins-tab thead .info{border-color:rgba(255,255,255,.45);color:#F3E9DF}
html body .cp-ins-tab thead .cp-sort.on{color:#FFB37A}
html body .cp-ins-tab tbody tr.cp-ins-row td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
html body .cp-ins-tab tbody tr.cp-ins-row:nth-of-type(4n+1) td,html body .cp-ins-tab tbody tr.cp-ins-row:nth-child(odd) td{background:var(--surface)}
html body .cp-ins-tab tbody tr.cp-ins-row:nth-child(even) td{background:color-mix(in srgb,var(--sunk) 70%,var(--surface))}
html body .cp-ins-tab tbody tr.cp-ins-row:hover td{background:color-mix(in srgb,#F26A1B 7%,var(--surface))}
html body .cp-ins-tab tbody tr.cp-ins-row.aberto td{background:color-mix(in srgb,#F26A1B 11%,var(--surface));border-bottom-color:transparent}
html body .cp-ins-nome strong{font-size:.95rem}
html body .cp-ins-nome small{display:inline-block!important;margin-top:4px;padding:1px 8px;border-radius:99px;background:var(--sunk);color:var(--muted);font-size:.72rem;font-weight:600}
html body .cp-ins-tab td.cp-r b{font-size:.95rem}
html body .cp-ins-tab td .cp-link{font-weight:600}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) .cp-ins-tab thead th{background:#17110E}}
html:root[data-theme="dark"] .cp-ins-tab thead th{background:#17110E}
html body .cp-k4{gap:18px!important;margin-bottom:22px}html body .cp-k4 .mk-v{font-size:1.45rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html body .cp-k4 .mk-sub{line-height:1.45}
html body .mk-k.cp-k{border-left:1px solid var(--line)!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;box-shadow:var(--sombra)!important}html body .mk-k.cp-k::before{display:none!important}
/* Linhas repetidas do mês anterior que ainda faltam conferir: faixa vermelha leve (Juliana, 13/10/2026) */
html body #main .conta:has(.repet){box-shadow:inset 3px 0 0 var(--red);background:color-mix(in srgb,#DC2626 6%,var(--surface))!important}
html body #main .conta:has(.repet) .ch b{text-decoration:underline;text-decoration-color:color-mix(in srgb,#DC2626 55%,transparent);text-underline-offset:4px;text-decoration-thickness:2px}

/* ---------- Compras e perdas · Fornecedores: mais cor e gráficos no padrão do Dashboard (Juliana, 13/10/2026) ---------- */
/* Tabelas: cabeçalho escuro + linhas alternadas (igual Insumos) */
html body .cp table.cp-rank,html body .cp table.cpu,html body .cp .cp-wrap>table{border-collapse:separate;border-spacing:0;width:100%}
html body .cp table.cp-rank thead th,html body .cp table.cpu thead th,html body .cp .cp-wrap>table>thead th{background:#3A2D26;color:#F3E9DF!important;border:0;padding:11px 12px}
html body .cp table.cp-rank thead th:first-child,html body .cp table.cpu thead th:first-child,html body .cp .cp-wrap>table>thead th:first-child{border-radius:10px 0 0 0}
html body .cp table.cp-rank thead th:last-child,html body .cp table.cpu thead th:last-child,html body .cp .cp-wrap>table>thead th:last-child{border-radius:0 10px 0 0}
html body .cp table thead .info{border-color:rgba(255,255,255,.45);color:#F3E9DF}
html body .cp table.cp-rank tbody tr:nth-child(even) td,html body .cp table.cpu tbody tr:nth-child(even) td,html body .cp .cp-wrap>table>tbody>tr:nth-child(even)>td{background:color-mix(in srgb,var(--sunk) 70%,var(--surface))}
html body .cp table.cp-rank tbody tr:hover td,html body .cp table.cpu tbody tr:hover td{background:color-mix(in srgb,#F26A1B 7%,var(--surface))}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) .cp table thead th{background:#17110E!important}}
html:root[data-theme="dark"] .cp table thead th{background:#17110E!important}

/* Barras horizontais (Por que se perde, categoria, fornecedor): trilho suave, barra mais grossa e arredondada */
html body .cp-bar-card{border-radius:12px;padding:10px 12px;transition:background .15s}
html body button.cp-bar-card:hover{background:color-mix(in srgb,var(--bar-color,#F26A1B) 8%,var(--surface))}
html body .cp-bars-refined .cp-bar-track,html body .cp-bar-card .cp-bar-track{height:12px!important;border-radius:99px!important;background:var(--sunk)!important}
html body .cp-bars-refined .cp-bar-track>i,html body .cp-bar-card .cp-bar-track>*{border-radius:99px!important}

/* Gráfico Perdas mês a mês: colunas com o mês escolhido em destaque */
html body .cp-trend .cp-svg rect{rx:7px}
html body .cp-chart-value{font-weight:700;fill:var(--ink)}
html body .cp-chart-month{fill:var(--muted);font-weight:500}

/* Fornecedores: faixa de resumo em cartões coloridos */
html body .cpf-resumo{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body .cpf-resumo>div{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--rc,#F26A1B);border-radius:14px;padding:14px 16px;box-shadow:var(--sombra)}
html body .cpf-resumo>div:nth-child(1){--rc:#8C9A3B}html body .cpf-resumo>div:nth-child(2){--rc:#F26A1B}html body .cpf-resumo>div:nth-child(3){--rc:#0F8A8A}html body .cpf-resumo>div:nth-child(4){--rc:#7A4E7E}html body .cpf-resumo>div:nth-child(5){--rc:#D12F2F}
html body .cpf-resumo>div span{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
html body .cpf-resumo>div b{display:block;font:800 1.35rem var(--display);margin-top:4px;letter-spacing:-.02em}
/* Lista de fornecedores: o escolhido com faixa laranja; barrinha da participação */
html body .cpf-row{border-radius:10px;transition:background .15s}
html body .cpf-row[aria-pressed="true"]{background:color-mix(in srgb,#F26A1B 9%,var(--surface))!important;box-shadow:inset 3px 0 0 #F26A1B}
html body .cpf-row:hover{background:color-mix(in srgb,#F26A1B 5%,var(--surface))}
/* Detalhe do fornecedor: cartões de números coloridos */
html body .cpf-stats{gap:12px!important;border:0!important;background:none!important}
html body .cpf-k{background:var(--surface);border:1px solid var(--line)!important;border-radius:12px;padding:12px 14px;border-top:3px solid #F26A1B!important}
html body .cpf-stats .cpf-k:nth-child(2){border-top-color:#D12F2F!important}html body .cpf-stats .cpf-k:nth-child(3){border-top-color:#D97706!important}
html body .cpf-fold{border-radius:12px!important}
html body .cpf-fold>summary{border-radius:12px}
@media (max-width:1100px){html body .cpf-resumo{grid-template-columns:repeat(2,minmax(0,1fr))}}
html body .cpf-pg-k{background:var(--surface)!important;border-left:1px solid var(--line)!important;border-top:3px solid var(--pc)!important;box-shadow:var(--sombra)}html body .cpf-fold>summary{background:var(--surface)!important}html body .cpf-fold{background:var(--surface)!important;border:1px solid var(--line)!important}
/* Fornecedores em painel mestre-detalhe simétrico (Juliana, 13/10/2026): duas colunas da mesma altura, cada uma rola por dentro */
html body .cpf-grid{display:grid!important;grid-template-columns:minmax(300px,380px) minmax(0,1fr)!important;gap:18px!important;align-items:stretch!important;height:clamp(560px,calc(100vh - 120px),900px)}
html body .cpf-grid>.cpf-list,html body .cpf-grid>.cpf-det{height:100%;overflow-y:auto;margin:0!important;padding:0!important;display:flex;flex-direction:column;scrollbar-width:thin}
html body .cpf-list>*{margin-left:18px;margin-right:18px}
html body .cpf-lh{position:sticky;top:0;z-index:2;background:var(--surface);padding:18px 0 10px;margin:0 18px!important}
html body .cpf-list #cp-forn-busca{position:sticky;top:62px;z-index:2;margin-bottom:6px}
html body .cpf-list .cpf-sec{font-size:.7rem;letter-spacing:.12em;margin:12px 18px 6px}
html body .cpf-row{min-height:60px;margin:0 10px!important;padding:10px 12px!important;border-bottom:1px solid var(--sunk)}
html body .cpf-sem>summary{padding:10px 18px;color:var(--muted);font-weight:600}
html body .cpf-sem .cpf-row{opacity:.8}
html body .cpf-det{padding:22px 24px!important;gap:16px}
html body .cpf-det>*{margin-top:0!important}
html body .cpf-dh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
html body .cpf-dh h2{font-size:1.5rem}
html body .cpf-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important}
html body .cpf-pg{margin:0!important}
html body .cpf-pg h3{font:700 1rem var(--display);margin:0 0 10px!important;display:flex;align-items:center;gap:6px}
html body .cpf-pg h3::before,html body .cpf-det .cpf-sect::before{content:"";width:4px;height:16px;border-radius:2px;background:#F26A1B}
html body .cpf-fold{margin:0 0 10px!important}
html body .cpf-fold>summary{padding:13px 16px!important;min-height:0}
@media (max-width:1000px){html body .cpf-grid{grid-template-columns:1fr!important;height:auto}html body .cpf-grid>.cpf-list{height:420px}html body .cpf-grid>.cpf-det{height:auto}}
html body .cpf-grid>.cpf-det{padding:22px 24px!important}
html body .cpf-grid>.cpf-list{padding:0 16px 16px!important}
html body .cpf-list>*{margin-left:0!important;margin-right:0!important}
html body .cpf-lh{margin:0!important}
html body .cpf-row{margin:0!important;width:100%;box-sizing:border-box}
html body .cpf-list .cpf-sec{margin:12px 2px 6px!important}
html body .cpf-sem>summary{padding:10px 2px}
/* Fornecedores: faixas de cor para separar (Juliana, 13/10/2026) */
html body .cpf-lh{background:#3A2D26!important;margin:0 -16px 12px!important;padding:16px 16px!important;border-radius:14px 14px 0 0}
html body .cpf-lh h2{color:#fff!important}
html body .cpf-lh .btn{background:transparent;color:#F3E9DF;border-color:rgba(255,255,255,.35)}
html body .cpf-list #cp-forn-busca{top:68px}
html body .cpf-list .cpf-sec{background:color-mix(in srgb,#8C9A3B 14%,var(--surface));color:#5C6A1E;padding:6px 10px;border-radius:8px}
html body .cpf-sem>summary{background:var(--sunk);border-radius:8px;padding:8px 10px!important;margin-top:10px}
html body .cpf-dh{background:linear-gradient(90deg,#F26A1B 0 6px,color-mix(in srgb,#F26A1B 9%,var(--surface)) 6px)!important;margin:-22px -24px 4px!important;padding:20px 24px 18px 30px!important;border-bottom:1px solid color-mix(in srgb,#F26A1B 25%,var(--line))!important;border-radius:14px 14px 0 0}
html body .cpf-pg h3{background:var(--sunk);padding:8px 12px;border-radius:9px}
html body .cpf-det .cpf-fold>summary{border-left:4px solid #8C9A3B}
html body .cpf-det .cpf-fold:nth-of-type(2)>summary{border-left-color:#0F8A8A}
html body .cpf-det .cpf-fold:nth-of-type(3)>summary{border-left-color:#7A4E7E}
html body .cpf-det .cpf-fold:nth-of-type(4)>summary{border-left-color:#D97706}
html body .cpf-det .cpf-fold:nth-of-type(5)>summary{border-left-color:#F26A1B}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) .cpf-lh{background:#17110E!important}html:root:not([data-theme="light"]) .cpf-list .cpf-sec{color:#C3D16A}}
html:root[data-theme="dark"] .cpf-lh{background:#17110E!important}html:root[data-theme="dark"] .cpf-list .cpf-sec{color:#C3D16A}
/* Fornecedores mais limpo (Juliana, 13/10/2026): detalhe em abas, cor só no cabeçalho da lista e no escolhido */
html body .cpf-list .cpf-sec{background:none!important;color:var(--muted)!important;padding:0!important}
html body .cpf-sem>summary{background:none!important}
html body .cpf-dh{background:none!important;margin:0!important;padding:0 0 14px!important;border-radius:0}
html body .cpf-det .cpf-fold>summary{border-left:0!important}
html body .cpf-det [data-aba]{display:none!important}
html body .cpf-det[data-aba-ativa="resumo"] [data-aba="resumo"],html body .cpf-det[data-aba-ativa="notas"] [data-aba="notas"],html body .cpf-det[data-aba-ativa="precos"] [data-aba="precos"],html body .cpf-det[data-aba-ativa="insumos"] [data-aba="insumos"]{display:block!important}
html body .cpf-det .cpf-fold[data-aba]{border:0!important;background:none!important;box-shadow:none!important}
html body .cpf-det .cpf-fold[data-aba]>summary{pointer-events:none;padding:0 0 10px!important;background:none!important;color:var(--muted)}
html body .cpf-det .cpf-fold[data-aba]>summary .cpf-car{display:none}
html body .cpf-painel{display:flex!important;flex-direction:column;gap:14px}
html body .cpf-abas{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 4px}
html body .cpf-abas button{border:0;background:none;padding:9px 14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
html body .cpf-abas button[aria-selected="true"]{color:var(--ink);border-bottom-color:#F26A1B}
html body .cpf-aviso{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 14px;border-radius:10px;background:var(--sunk);font-size:.9rem}
html body .cpf-aviso.bad{background:color-mix(in srgb,#DC2626 9%,var(--surface));color:var(--ink)}
html body .cpf-aviso.bad b:first-child{color:#B91C1C}
html body .cpf-aviso button{margin-left:auto;border:0;background:none;color:var(--salmon);font-weight:700}
html body .cpf-tr2{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--sunk)}
html body .cpf-tr2 .cpf-tr{flex:1;border:0!important}
html body .cpf-st{font-style:normal;color:var(--muted);font-size:.85rem;min-width:110px;text-align:right}html body .cpf-st.ok{color:#15803D;font-weight:700}
html body .cpf-pagar{min-width:110px}html body .cpf-pagar.venc{color:#B91C1C;border-color:#F5B5B5}
html body .cpf-resumo3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .cpf-resumo3>div small{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}
html body .cpf-stats .cpf-k{border-top:1px solid var(--line)!important}
/* Cartões do alto no formato do desenho (Juliana, 13/10/2026): brancos, sem ícone, selo dentro/atenção/acima */
html body .mk-k.mk-k2{border-top:1px solid var(--line)!important;padding:18px 20px 16px}
html body .mk-k2 .mk-ico{display:none}
html body .mk-k2 .mk-t{display:flex;justify-content:space-between;align-items:center;padding-right:0}
html body .mk-k2 .mk-t>span{display:flex;gap:6px;align-items:center}
html body .mk-k2 .mk-t em{font-style:normal}
html body .mk-k2 .mk-v{font-size:1.75rem;margin:2px 0}
html body .mk-k2 .mk-spark{height:30px;margin-top:6px}
/* Fornecedores · parte de baixo no formato aprovado (Juliana, 14/10/2026) */
html body .cpf-resumo>div{background:color-mix(in srgb,#8B6A50 9%,var(--surface))!important}
html body .cpf-av{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:.78rem;flex:none;letter-spacing:.02em}
html body .cpf-av.g{width:52px;height:52px;border-radius:14px;font-size:1.05rem}
html body .cpf-colh{display:grid;grid-template-columns:1fr 92px 58px;padding:8px 12px 8px 60px;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;background:var(--sunk);border-radius:8px;margin:4px 0}
html body .cpf-colh span:nth-child(n+2){text-align:right}
html body .cpf-row2{display:grid!important;grid-template-columns:auto 1fr 92px 58px;gap:12px;align-items:center;text-align:left}
html body .cpf-row2 .cpf-n{display:flex;flex-direction:column;min-width:0}
html body .cpf-row2 .cpf-n strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .cpf-row2 .cpf-n small{color:var(--muted);font-size:.76rem}
html body .cpf-share{display:block;height:5px;border-radius:5px;background:var(--sunk);margin-top:6px;overflow:hidden}
html body .cpf-share i{display:block;height:100%;background:#F26A1B;border-radius:5px}
html body .cpf-v2{text-align:right;font-weight:700;font-size:.9rem;white-space:nowrap}
html body .cpf-p2{text-align:right;font-size:.8rem;color:var(--muted)}html body .cpf-p2.bad{color:#D12F2F;font-weight:700}
/* Cabeçalho do detalhe escuro com as iniciais */
html body .cpf-grid>.cpf-det{padding:0!important}
html body .cpf-dh2{display:flex!important;align-items:center;gap:16px;background:#3A2D26!important;color:#fff;padding:20px 24px!important;margin:0!important;border:0!important;border-radius:14px 14px 0 0}
html body .cpf-dh2>div{flex:1;min-width:0}
html body .cpf-dh2 h2{color:#fff!important;margin:0}
html body .cpf-dh2 .cpf-info{color:#D9CABC!important;margin:4px 0 0}
html body .cpf-dh2 .cp-chip{background:#4A3B33!important;color:#F3E9DF!important;border:0}
html body .cpf-dh2 .cpf-tags{display:inline-flex;gap:6px;margin-top:4px}
html body .cpf-dh2 .btn{background:transparent;color:#F3E9DF;border-color:#5A4A40}
html body .cpf-det>.cpf-abas{padding:0 24px;margin:0!important}
html body .cpf-det>.cpf-painel,html body .cpf-det>.cpf-fold{padding:18px 24px 0!important}
html body .cpf-graf h3,html body .cpf-top3 h3{font:700 .95rem var(--display);margin:6px 0 10px}
html body .cpf-gbars{display:flex;align-items:flex-end;gap:14px;height:150px;border-bottom:1px solid var(--line);padding:0 4px}
html body .cpf-gbars>div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;font-size:.72rem;color:var(--muted)}
html body .cpf-gbars i{display:block;width:62%;background:#F26A1B;border-radius:6px 6px 0 0}html body .cpf-gbars i.o{opacity:.4}
html body .cpf-gbars b{font-size:.7rem;color:var(--ink);font-weight:600}
html body .cpf-gbars span{margin-bottom:-20px}
html body .cpf-graf{padding-bottom:18px}
html body .cpf-top3>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--sunk)}
html body .cpf-top3{padding-bottom:12px}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) .cpf-dh2{background:#17110E!important}}
html:root[data-theme="dark"] .cpf-dh2{background:#17110E!important}
html body .cpf-grid{grid-template-columns:minmax(380px,440px) minmax(0,1fr)!important}
html body .cpf-row2{grid-template-columns:36px minmax(0,1fr) 82px 50px;gap:10px}
html body .cpf-colh{grid-template-columns:minmax(0,1fr) 82px 50px;gap:10px;padding-left:58px}
html body .cpf-row2 .cpf-n small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .cpf-dh2 .cpf-tags:empty{display:none}
html body .cpf-graf{margin-top:6px}
html body .cpf-graf{margin-top:16px!important;padding-bottom:30px!important}
html body .cpf-grid>.cpf-det>*,html body .cpf-grid>.cpf-list>*{flex-shrink:0}html body .cpf-det .cpf-fold[data-aba]{overflow:visible!important;max-height:none!important}

/* ---------- Celular (Juliana, 14/10/2026) ---------- */
@media(max-width:760px), (max-width:1366px) and (pointer:coarse){
 /* Compras/Insumos/Fornecedores: sem o vão enorme embaixo do título */
 html:root body main .cp-top{justify-content:flex-start!important;height:auto!important;min-height:0!important}
 html:root body main .cp-top>div{flex:0 0 auto!important;height:auto!important;min-height:0!important}
 /* Menu: gaveta escura, logo abaixo da barra (não cobre o logo), com letras legíveis */
 html:root body .side nav{position:absolute!important;top:100%!important;bottom:auto!important;height:calc(100dvh - 100%);background:var(--side-bg)!important;padding:14px 12px!important;border-top:1px solid #3E322B}
 html:root body .side nav button{color:#EFE6DD!important;opacity:1!important}
 html:root body .side nav button[aria-current="page"]{color:#fff!important}
 html:root body .side nav .mk-navg{color:#A8988A}
 html:root body .mobile-menu-backdrop:not([hidden]){inset:auto 0 0 0!important;top:auto!important;height:100dvh!important}
 /* DRE: a linha da conta quebra em duas no celular em vez de passar da tela */
 html:root body main .conta .ch{flex-wrap:wrap!important;row-gap:4px}
 html:root body main .conta .ch .cn{flex:1 1 auto;min-width:0}
 html:root body main .conta .ch .ct{margin-left:auto}
 html:root body main .conta .ch .pf,html:root body main .conta .ch .pct{flex:0 0 auto}
 html:root body main .conta .chw{overflow:hidden}
}
@media(max-width:760px), (max-width:1366px) and (pointer:coarse){
 html:root body .cp-per-global .cp-per{gap:6px!important}
 html:root body .cp-per-global .cp-pchip,html:root body .mk-per .dre-pchips button{border-radius:9px!important;padding:8px 11px!important}
 html:root body .mk-per .dre-pchips{flex-wrap:wrap;gap:6px;background:none!important;padding:0!important}
}
html body .cpf-det[data-aba-ativa="financeiro"] [data-aba="financeiro"]{display:flex!important}
html body .cpf-apagar{font-style:normal;color:#B45309;font-weight:700}
@media (prefers-color-scheme: dark){html:root:not([data-theme="light"]) .cpf-apagar{color:#FBBF24}}html:root[data-theme="dark"] .cpf-apagar{color:#FBBF24}
html body .cpf-apagar{display:block;font-size:.74rem;margin-top:4px}
html body .dmeta{margin:8px 0 0;font-size:.8rem;color:var(--muted);line-height:1.45}html body .dmeta b{color:var(--ink)}

/* Categorias: nomes completos, hierarquia clara e ações consistentes. */
html body .categorias-page{max-width:1600px;margin:0 auto}
html body .cats-eyebrow{display:block;font-size:.66rem;letter-spacing:.14em;font-weight:700;color:var(--muted);margin-bottom:10px}
html body .cats-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
html body .cats-overview>div{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px 22px}
html body .cats-overview span{font-size:.8rem;color:var(--muted)}html body .cats-overview b{font-size:1.65rem;font-family:var(--display);color:var(--ink)}
html body .cats-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
html body .cats-toolbar .tabs{margin:0;flex-shrink:0}html body .cats-search{width:min(100%,360px);display:flex;flex-direction:column;gap:5px}
html body .cats-search>span{font-size:.7rem;color:var(--muted);font-weight:600}html body .cats-search input{width:100%;min-height:44px;background:var(--surface)}
html body .cats-caption{display:flex;gap:5px;align-items:center;font-size:.76rem;color:var(--muted);margin:0 0 14px}html body .cats-caption b{color:var(--ink)}
html body .categorias-page .catgrid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
html body .categorias-page .catc{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:16px 18px 0;border-radius:15px;min-width:0;box-shadow:0 3px 14px -12px #32231940}
html body .categorias-page .catc:hover{border-color:color-mix(in srgb,var(--salmon) 50%,var(--line))}
html body .categorias-page .catc div{flex:initial}
html body .cats-cardtop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
html body .cats-symbol{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--leaf-soft);color:var(--leaf);font-size:1.4rem}
html body .cats-state{font-size:.63rem;font-weight:600;color:var(--leaf);background:var(--leaf-soft);border-radius:99px;padding:5px 9px}html body .cats-state.is-empty{background:var(--sunk);color:var(--muted)}
html body .categorias-page .catc h2{font-size:1rem;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere;font-weight:650;min-height:2.9em;color:var(--ink)}
html body .cats-count{font-size:.78rem;color:var(--muted);margin:0 0 12px}html body .cats-count b{display:inline;white-space:normal;overflow:visible;font-size:1.25rem;font-family:var(--display);color:var(--ink);margin-right:4px}
html body .cats-cardfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding:10px 0;margin-top:auto!important;min-height:50px}
html body .cats-cardfoot>span{font-size:.68rem;color:var(--muted)}html body .cats-cardfoot .btn{min-height:38px;text-align:left;padding:7px 0!important;display:flex;gap:12px;align-items:center}
html body .cats-cardfoot .btn[data-vercat]{width:100%;justify-content:space-between;color:var(--leaf);font-weight:600}
html body .cats-empty{text-align:center;padding:36px 20px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:14px}
@media(max-width:760px){
 html body .cats-overview{gap:8px;margin:18px 0}.cats-caption span{display:none}
 html body .cats-overview>div{display:block;padding:12px 10px}html body .cats-overview span{display:block;font-size:.65rem;min-height:2.8em;line-height:1.4}html body .cats-overview b{display:block;font-size:1.35rem;margin-top:6px}
 html body .cats-toolbar{align-items:stretch;flex-direction:column;gap:14px}html body .cats-search{width:100%}
 html body .categorias-page .catgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body .categorias-page .catc{padding:14px 12px 0}html body .categorias-page .catc h2{font-size:.88rem}
 html body .cats-state{display:none}html body .cats-cardtop{margin-bottom:12px}html body .cats-cardfoot{flex-wrap:wrap;padding:8px 0}html body .cats-cardfoot .btn{font-size:.75rem!important;min-height:44px}
}
@media(max-width:360px){html body .categorias-page .catgrid{grid-template-columns:minmax(0,1fr)}}

/* Menu enxuto (22/10/2026, revisto: grupos com ícone, seta e itens recuados) */
html body #nav button.mk-oculto{display:none!important}
html body .side nav .mk-navg.mk-dobra{cursor:pointer;display:flex;align-items:center;gap:10px;margin:6px 0 2px;padding:10px 10px;border-radius:10px;
  font-size:.9rem;letter-spacing:0;text-transform:none;font-weight:600;color:#E8DCD0;user-select:none;transition:background .15s}
html body .side nav .mk-navg.mk-dobra:hover{background:rgba(255,255,255,.07)}
html body .side nav .mk-navg.mk-dobra .mk-gi{width:19px;height:19px;flex:none;opacity:.85}
html body .side nav .mk-navg.mk-dobra span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .side nav .mk-navg.mk-dobra .mk-chev{width:16px;height:16px;flex:none;opacity:.6;transition:transform .2s}
html body .side nav .mk-navg.mk-dobra.aberto .mk-chev{transform:rotate(90deg)}
html body .side nav .mk-navg.mk-dobra.aberto{color:#fff}
html body .side nav .mk-navg.mk-dobra.tem-ativo{color:#FF9653;background:rgba(255,116,31,.12)}
html body #nav button.mk-filho{margin-left:22px;width:calc(100% - 22px);font-size:.92rem;padding-top:8px;padding-bottom:8px;position:relative}
html body #nav button.mk-filho::before{content:"";position:absolute;left:-10px;top:0;bottom:0;width:1.5px;background:rgba(255,255,255,.12)}
html body #nav button.mk-filho svg{width:17px;height:17px}
#mkCfg{display:flex;align-items:center;gap:10px;width:100%;margin:6px 0;padding:9px 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:#E8DCD0;font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s}
#mkCfg svg{width:18px;height:18px}#mkCfg:hover{background:rgba(255,255,255,.08)}#mkCfg.on{background:rgba(255,116,31,.18);border-color:rgba(255,116,31,.5);color:#fff}
/* Compras da rede separado, embaixo (Juliana, 22/10/2026) */
html body .side nav #mkg5{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);color:#FF9653}
html body #nav button[data-v="pedidos"]{border:1px solid rgba(255,116,31,.45);background:linear-gradient(90deg,rgba(255,116,31,.16),rgba(255,116,31,.04))}
html body #nav button[data-v="pedidos"]:not([aria-current="page"]):hover{background:rgba(255,116,31,.22)}
/* Quadros do alto com fundo levemente colorido (Juliana, 26/10/2026) */
html body main .mk-kpis>.mk-k{background:linear-gradient(160deg,color-mix(in srgb,var(--kc) 16%,var(--surface)) 0%,color-mix(in srgb,var(--kc) 7%,var(--surface)) 100%)!important;border-color:color-mix(in srgb,var(--kc) 30%,var(--line))!important}
html body .mk-kpis>.mk-k::before{width:4px;top:0;bottom:0;border-radius:0}

/* Menu aparece de uma vez (Juliana, 31/10/2026) — moderno.js põe .mk-pronto quando o menu termina de se arrumar */
html body #nav:not(.mk-pronto){visibility:hidden}html body #nav.mk-pronto{animation:mkNavIn .18s ease-out}@keyframes mkNavIn{from{opacity:0}to{opacity:1}}

/* ⓘ: o "i" sempre no centro da bolinha (a linha da tabela da DRE tem text-indent negativo, que a bolinha herdava — Juliana, 02/11/2026) */
html body .info{text-indent:0!important;justify-content:center;align-items:center;text-align:center;line-height:1}

/* Nome e papel no pé do menu nunca passam da borda (Juliana, 03/11/2026: "a letra tá indo pra fora") */
html body .mk-user{min-width:0;max-width:100%}html body .mk-user>span:last-child{min-width:0;flex:1}html body .mk-user b,html body .mk-user small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
