/* Mercado Livre — design "Clássico ML" (opção 1): faixa amarela com abas, bloco 2x2 + Repasse líquido escuro,
   gráficos em azul/amarelo do ML. Carregado por último em mercadolivre.html. */
:root{--bg:#f6f7f9;--purple:#3483fa;--purple-dark:#1f5fc9;--lavender:#eaf2ff;--line:#eceef2;--ink:#111827;--secondary:#4b5563;--muted:#6b7280;--green:#00a650;--ml-y:#ffe600;--ml-navy:#2d3277}
body{background:var(--bg);color:var(--ink)}

/* menu lateral neutro */
.sidebar nav a.active,.sidebar .market-nav a.active{background:#f3f4f6!important;color:#111827!important;box-shadow:none!important;font-weight:700}

/* faixa amarela: cabeçalho + barra de ações + abas */
@media(min-width:721px){.workspace{padding:0 28px 12px!important}}
@media(max-width:720px){.workspace{padding:0 12px 12px!important}}
.workspace>header{background:var(--ml-y);margin:0 -28px;padding:22px 28px 10px;margin-bottom:0!important}
.workspace>.page-meta{background:var(--ml-y);margin:0 -28px!important;padding:0 28px 6px}
.workspace>.tabs{background:var(--ml-y)!important;margin:0 -28px 20px!important;padding:0 28px 14px!important;border:0!important;border-radius:0!important;gap:4px!important}
@media(max-width:720px){.workspace>header,.workspace>.page-meta,.workspace>.tabs{margin-left:-12px!important;margin-right:-12px!important;padding-left:12px!important;padding-right:12px!important}}
.workspace>.tabs a{color:var(--ml-navy);border-bottom:0!important;border-radius:10px;padding:10px 14px!important;font-weight:600}
.workspace>.tabs a:hover{background:#ffffff80}
.workspace>.tabs a[aria-current=page]{background:#fff;color:#1f5fc9;border:0}
.channel-wordmark.ml-wordmark{filter:none}
.page-meta .text-button{color:var(--ml-navy);font-weight:600}

/* filtros de período: cardzinhos brancos */
.presets{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;gap:6px!important}
.presets button{background:#fff!important;border:1px solid #0000001a!important;border-radius:9px!important;color:#374151!important;box-shadow:none!important}
.presets button:hover{background:#f3f4f6!important}
.presets button[aria-pressed=true]{background:#111827!important;border-color:#111827!important;color:#fff!important}
#date-menu>summary,.date-menu>summary{background:#fff;border:1px solid #0000001a;border-radius:9px;box-shadow:none}

/* cartões */
.card{border-color:var(--line);border-radius:16px;box-shadow:0 1px 2px #1118270a}
.card-head h2{font-size:15px;font-weight:700;color:#111827}

/* bloco Resumo: 4 cards 2x2 + Repasse líquido escuro */
.ml-block{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.15fr);gap:14px;padding:16px!important;margin-bottom:18px}
.ml-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ml-kpi{border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.ml-kpi-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:13px;color:var(--muted);font-weight:500}
.ml-kpi-icon{flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#eaf2ff;color:#3483fa;display:grid;place-items:center;font-size:16px}
.ml-kpi-bar{margin-left:auto;flex:0 0 28px;height:4px;border-radius:9px;background:var(--ml-y)}
.ml-kpi>strong{font-size:clamp(20px,1.8vw,26px);font-weight:700;letter-spacing:-.02em;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-kpi-delta{margin-top:10px;font-size:12.5px}
.ml-kpi-delta .up{color:var(--green);font-weight:600}.ml-kpi-delta .down{color:#dc2626;font-weight:600}.ml-kpi-delta small{color:var(--muted);font-size:12px}
.ml-dark{background:#111827;color:#fff;border-radius:14px;padding:26px;display:flex;flex-direction:column;justify-content:center;gap:18px;min-width:0}
.ml-dark-head{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px}
.ml-dark-head .platform-icon{width:30px;height:30px;flex:0 0 30px;background:#fff;border-radius:8px}
.ml-dark-main small{display:block;font-size:13px;color:#ffffffa6}
.ml-dark-main strong{display:block;font-size:clamp(26px,2.6vw,36px);font-weight:700;letter-spacing:-.03em;margin:8px 0;white-space:nowrap}
.ml-dark-delta{font-weight:600;font-size:13px;color:#ffffffa6}.ml-dark-delta.up{color:#4ade80}.ml-dark-delta.down{color:#fca5a5}
.ml-dark-foot{border-top:1px solid #ffffff22;padding-top:16px}.ml-dark-foot small{display:block;font-size:12px;color:#ffffffa6}.ml-dark-foot strong{font-size:22px;font-weight:700}
@media(max-width:1100px){.ml-block{grid-template-columns:1fr}.ml-dark{order:-1}}
@media(max-width:560px){.ml-four{grid-template-columns:1fr}}

/* faixa de 3 cards em Pedidos */
.ml-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px!important;margin-bottom:18px}
@media(max-width:720px){.ml-strip{grid-template-columns:1fr}}

/* Resumo: vendas + saúde da conta; visitas embaixo */
.ml-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important}
@media(max-width:1100px){.ml-row{grid-template-columns:1fr!important}}
.reputation{background:#e7f7ee;color:#00833f;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.reputation.warn{background:#fff4d6;color:#8a5a00}
.ml-thermo{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:4px 0 12px}
.ml-thermo i{height:10px;border-radius:4px;opacity:.28}.ml-thermo i.on{opacity:1;outline:2px solid #11182722;outline-offset:2px}
.ml-kv>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f3f4f6;font-size:13.5px}
.ml-kv>div:last-child{border-bottom:0}
.ml-kv strong{font-weight:700}.ml-kv strong.alert{color:#dc2626}
.ml-kv-right{display:flex;align-items:center;gap:10px}
.link-button{background:none;border:0;padding:0;color:#3483fa;font:inherit;font-weight:600;cursor:pointer}
.chart-legend i{background:#3483fa!important}.chart-legend i.previous{background:#9ca3af!important}

/* rodapé "consultado às" oculto, igual à Visão Geral */
#updated{display:none}
/* vendas + visitas lado a lado; saúde da conta sozinha embaixo, itens em 3 colunas */
.ml-row2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:1100px){.ml-row2{grid-template-columns:1fr!important}}
.ml-health-wide{margin-bottom:18px}
.ml-health-wide .ml-thermo{max-width:520px}
@media(min-width:900px){.ml-health-wide .ml-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px}.ml-health-wide .ml-kv>div:last-child{border-bottom:1px solid #f3f4f6}}
/* vendas e visitas: mesma altura, gráfico encostado na base */
.ml-row2>.card{display:flex;flex-direction:column}
.ml-row2>.card>.interactive-chart{margin-top:auto}
/* top 5 produtos no Resumo (ao lado da Saúde da conta) */
.ml-top-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #f3f4f6}
.ml-top-row:last-child{border-bottom:0}
.ml-top-rank{width:24px;height:24px;border-radius:7px;background:var(--ml-y);color:#2d3277;font-weight:800;font-size:12px;display:grid;place-items:center}
.ml-top-row .product{min-width:0}.ml-top-row .product strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-top-row>strong{color:var(--green);font-weight:700;white-space:nowrap}
/* top 5: nome do produto não invade o valor (máx. 2 linhas) */
.ml-top-row .product{min-width:0!important;max-width:none!important}
.ml-top-row .product>div{min-width:0;flex:1}
.ml-top-row .product strong{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;line-height:1.3}
.ml-top-row .product small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;color:var(--muted)}
.ml-top-row>strong{padding-left:8px}
/* top 5: nome resumido em uma linha */
.ml-top-row .product strong{display:block!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
/* links de texto ("Ver todos os produtos →", "Ver perguntas →") sem efeito ao passar o mouse */
.link-button,.link-button:hover:not(:disabled),.link-button:focus{background:none!important;color:#3483fa!important;box-shadow:none!important;transform:none!important;text-decoration:none;border:0!important}/* Resumo: saúde da conta | produtos mais vendidos | métodos de pagamento */
.ml-row3{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch}
.ml-row3>.card{display:flex;flex-direction:column}
.ml-row3 .pie-layout{flex-direction:column;align-items:stretch;gap:18px;margin:auto 0}
.ml-row3 .pie-disc{margin:0 auto;width:160px;height:160px;flex-basis:160px}
.ml-row3 .pie-legend{min-width:0}
@media(max-width:1250px){.ml-row3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ml-row3>.card:nth-child(3){grid-column:1/-1}}
@media(max-width:800px){.ml-row3{grid-template-columns:1fr!important}}
/* Resumo: produtos mais vendidos (largo) + métodos de pagamento; saúde da conta sozinha embaixo */
.ml-row-pm{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)!important;align-items:stretch}
.ml-row-pm>.card{display:flex;flex-direction:column}
.ml-row-pm .pie-layout{flex-wrap:nowrap;gap:22px;margin:auto 0}
.ml-row-pm .pie-disc{width:170px;height:170px;flex:0 0 170px}
.ml-row-pm .pie-legend{min-width:0}
.ml-row-pm>.card .link-button{margin-top:auto;padding-top:12px}
@media(max-width:1250px){.ml-row-pm .pie-layout{flex-wrap:wrap;justify-content:center}}
@media(max-width:1000px){.ml-row-pm{grid-template-columns:1fr!important}}

/* ===== Cabeçalho padrão dos canais (mesma medida em ML, Nuvemshop e Shopee): cabeçalho 70px, logo 40px, abas 38px ===== */
.workspace{display:flex!important;flex-direction:column}
.workspace>header{order:1;padding:15px 28px 15px!important;min-height:0!important;align-items:center}
.workspace>.tabs{order:2;margin-bottom:0!important;padding-bottom:14px!important}
.workspace>.page-meta{order:3;background:none!important;margin:14px 0 12px!important;padding:0!important}
.workspace>main{order:4}.workspace>footer{order:5}
.workspace>header h1{margin:0;line-height:0}
.workspace>header .channel-wordmark.ml-wordmark{height:40px!important;width:auto!important;max-width:none}
.workspace>header .ns-wordmark-frame{width:190px!important;height:40px!important}
.workspace>header .ns-wordmark{width:218px!important;left:-14px!important;top:-14px!important}
.workspace>.tabs a{font-size:14px!important;padding:10px 14px!important;line-height:18px}
.presets button{padding:8px 11px!important;font-size:12.5px!important;line-height:18px}
@media(max-width:720px){.workspace>header{padding:12px!important}}
