/* castelar · layout G · Marfim, escolhido em 10/11/2026 (sobre a base clara com menu de ícones).
   Carregado depois do app.css, que tem a estrutura base. */
/* Base clara comum aos layouts D, E e F (cores dos componentes em fundo claro) */
:root { color-scheme: light;
  --bg: #F5F6F8; --surface: #FFFFFF; --surface-2: #EFF4FF; --border: #E4E7EC; --text: #101828; --muted: #667085;
  --accent: #2563EB; --accent-soft: #EFF4FF; --accent-text: #1D4ED8; --nav-active: #F2F4F7;
  --warn-bg: #FFFAEB; --warn-border: #FEDF89; --warn-text: #93370D; --danger: #D92D20; --ok: #079455; --radius: 10px;
  --accent-hover-text: #1849A9; --accent-text-soft: #1D4ED8; --bar-hover: #93B4F5; --border-accent: #B2CCFF;
  --border-strong: #D0D5DD; --chip-text: #344054; --danger-bg: #FEF3F2; --danger-border-2: #FDA29B; --danger-border: #FECDCA;
  --danger-text: #B42318; --grid-line: #EAECF0; --input-bg: #FFFFFF; --input-readonly: #F9FAFB; --label: #344054;
  --muted-2: #98A2B3; --ok-bg: #ECFDF3; --ok-border: #ABEFC6; --ok-text: #067647; --on-accent: #FFFFFF;
  --row-checked: #EEF4FF; --row-hover: #F9FAFB; --row-line: #EAECF0; --row-selected: #F5F8FF; --roxo-bg: #F4F3FF;
  --roxo-text: #5925DC; --surface-accent: #F5F8FF; --surface-sunk: #F9FAFB; --toast-bg: #101828; --warn-border-2: #FEDF89;
  --warn: #B54708; --barra-bg: rgba(255, 255, 255, .96); --sombra: 0 1px 2px rgba(16, 24, 40, .05);
}
.toast { color: #F9FAFB; border-color: #101828; }
.nav { background: #FFFFFF; border-right-color: var(--border); padding: 22px 12px; }
.nav .ico { display: block; color: #98A2B3; }
.nav a.item { color: #344054; min-height: 40px; font-size: 14px; }
.nav a.item:hover { background: #F9FAFB; color: #101828; }
.nav a.item.ativo { background: var(--accent-soft); color: var(--accent-text); }
.nav a.item.ativo .ico { color: var(--accent); }
.seletor summary { background: #F9FAFB; }
.seletor .lista { box-shadow: 0 12px 32px rgba(16, 24, 40, .12); }
th { background: #F9FAFB; color: #475467; letter-spacing: .04em; }
.card > .tabela-wrap:first-child table thead th:first-child, .card > table thead th:first-child { border-top-left-radius: var(--radius); }
.abas-area { margin-top: -10px; }
.abas a.ativo { color: var(--accent-text); }
.topo h1 { font-size: 28px; }
.btn.prim:hover { background: #1D4ED8; color: #fff; }
.btn.sec { border-color: var(--border-strong); background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn.sec:hover { background: #F9FAFB; }
.periodos { background: #F2F4F7; border-color: #E4E7EC; }
.periodos a.ativo { background: #FFFFFF; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.chip.ativo { background: #101828; color: #fff; border-color: #101828; }
.chip.alerta { color: #B54708; }
.selo { background: #F2F4F7; color: #344054; }
.selo.azul { background: #EFF4FF; color: #175CD3; }
.selo.ok { background: #ECFDF3; color: #067647; }
.selo.perigo { background: #FEF3F2; color: #B42318; }
.selo.alerta { background: #FFFAEB; color: #B54708; }
.alerta-txt { color: #B54708; }
.erro { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.aviso a { color: #93370D; }
.foto-prod { background: #F9FAFB; }
.foto-prod.vazia { background: #F2F4F7; color: #667085; }
.marcador { background: #F2F4F7; }
.lanc { border-color: #D0D5DD; color: #98A2B3; }
.barra-h { background: #EAECF0 !important; }
.g-barra { background: #B2CCFF; }
.g-barra.atual { background: var(--accent); }
.mapa-br path[fill="#1B2430"] { fill: #EAECF0; }
.mapa-br path[fill="#22344F"] { fill: #D1E0FF; }
.mapa-br path[fill="#2A4A7A"] { fill: #84ADFF; }
.mapa-br path[fill="#3466B5"] { fill: #528BFF; }
.mapa-br path { stroke: #fff; }
.legenda-mapa i:nth-child(2) { background: #D1E0FF !important; } .legenda-mapa i:nth-child(3) { background: #84ADFF !important; } .legenda-mapa i:nth-child(4) { background: #528BFF !important; }
.dialogo::backdrop { background: rgba(16, 24, 40, .45); }
.barra-nota { box-shadow: 0 -4px 16px rgba(16,24,40,.08); }
.tema-prev { box-shadow: 0 12px 32px rgba(16,24,40,.25); }
.faixa-ambiente { background: #FEF0C7; color: #93370D; }


.seletor .ini { color: #FFFFFF; }
.seletor .ini.pessoal { background: #E5E7EB; color: #111827; }
.nav .tag { display: none; }
/* Login: lado da marca escuro */
.login-marca { background: #0B1220; border-right: 0; color: #F8FAFC; }
.login-card { background: #111A2E; border-color: #1E293B; box-shadow: none; }
.login-card .rot, .login-ilustra, .login-rodape { color: #94A3B8; }
.login-card .val { color: #F8FAFC; }
.login-barras span { background: #1E3A6E; }
.login-barras span.atual { background: #4C8DFF; }
.login-lado { background: var(--bg); }

/* Verde-petróleo: conteúdo claro e quente, destaque esmeralda */
:root {
  --bg: #F6F6F3; --surface: #FFFFFF; --border: #E6E7E1; --text: #10201B; --muted: #66726D;
  --accent: #0F766E; --accent-soft: #E6F4F1; --accent-text: #0F766E; --accent-hover-text: #115E59; --accent-text-soft: #0F766E;
  --nav-active: #F0F1EC; --border-strong: #D7D9D2; --label: #33433D; --border-accent: #A7D7CD; --row-checked: #EEF7F5;
  --row-selected: #F4FAF8; --surface-accent: #F4FAF8; --surface-sunk: #FAFAF8; --row-line: #EEEFEA; --radius: 12px;
  --sombra: 0 1px 2px rgba(16, 32, 27, .05);
}
body { font-family: Manrope, Inter, system-ui, sans-serif; font-size: 14px; }
.grande .val, .kpi .val, .topo h1 { font-weight: 800; }
th { background: #FAFAF8; color: #66726D; }
.btn.prim { background: #0F766E; } .btn.prim:hover { background: #115E59; color: #fff; }
.chip.ativo { background: #0E2A24; border-color: #0E2A24; }
.selo.azul { background: #E6F4F1; color: #0F766E; }
.grande .val.lucro, .lucro, .lucro-txt { color: #0F766E !important; }
.g-barra { background: #BFE3DA; } .g-barra.atual { background: #0F766E; } .g-col:hover .g-barra { background: #7CC7B6; }
.barra-h span { background: #0F766E; }
.mapa-br path[fill="#1B2430"] { fill: #EEEFEA; } .mapa-br path[fill="#22344F"] { fill: #CDEAE2; }
.mapa-br path[fill="#2A4A7A"] { fill: #8DD0BF; } .mapa-br path[fill="#3466B5"] { fill: #3FA58F; } .mapa-br path[fill="#4C8DFF"] { fill: #0F766E; }
.legenda-mapa i:nth-child(2) { background: #CDEAE2 !important; } .legenda-mapa i:nth-child(3) { background: #8DD0BF !important; } .legenda-mapa i:nth-child(4) { background: #3FA58F !important; } .legenda-mapa i:nth-child(5) { background: #0F766E !important; }
.login-marca { background: #0E2A24; } .login-card { background: #143A32; border-color: #1E4A40; } .login-barras span { background: #1E4A40; } .login-barras span.atual { background: #34D399; } .login-card .val.lucro { color: #6EE7B7; }
.login .caixa .btn.prim { background: #0F766E; }

/* Menu: barra estreita verde-petróleo com ícones grandes e o nome embaixo */
.nav { width: 96px; align-items: center; padding: 16px 8px; background: #0E2A24; border-right: 0; gap: 6px; position: sticky; top: 0; height: 100vh; }
.nav .logo { padding: 0 0 12px; }
.nav .logo .logo-claro { display: none; } .nav .logo .logo-icone { display: block; width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px #1E4A40; }
.nav .ico { display: block; width: 22px; height: 22px; color: #7FB3A3; }
.nav a.item { flex-direction: column; justify-content: center; width: 80px; min-height: 66px; padding: 6px 4px; border-radius: 14px; color: #B9D4CB; font-size: 11.5px; font-weight: 700; }
.nav a.item .rot-item { flex-direction: column; gap: 6px; }
.nav a.item:hover { background: #143A32; color: #FFFFFF; }
.nav a.item.ativo { background: #1B4B40; color: #FFFFFF; }
.nav a.item.ativo .ico { color: #34D399; }
.seletor { width: 80px; margin-bottom: 8px; }
.seletor summary { justify-content: center; padding: 0; min-height: 50px; border-radius: 14px; background: #143A32; border-color: #1E4A40; }
.seletor .nome { display: none; }
.seletor .ini { width: 36px; height: 36px; border-radius: 10px; background: #34D399; color: #0E2A24; font-size: 14px; }
.seletor .ini.pessoal { background: #E7F3EF; color: #0E2A24; }
.seletor .lista { left: 0; right: auto; width: 280px; top: 56px; border-radius: 14px; }
.nav .rodape { align-items: center; text-align: center; padding: 12px 0 0; font-size: 11px; color: #8DB3A7; }
.nav .rodape .btn.link { color: #CFE3DC; }
/* Espaço Pessoal: itens sem ícone, só o nome */
.nav a.item:not(:has(.ico)) { min-height: 48px; font-size: 11px; text-align: center; line-height: 1.25; }

/* Telas de cada área: seletor no topo da página */
.conteudo { padding: 26px 40px 48px; gap: 20px; }
.abas-area { border-bottom: 0; gap: 4px; padding: 4px; background: #E9ECE6; border-radius: 12px; align-self: flex-start; margin: 0; max-width: 100%; }
.abas-area a { border: 0; margin: 0; padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #4B5A54; }
.abas-area a.ativo { background: #FFFFFF; color: #0E2A24; box-shadow: 0 1px 3px rgba(16, 32, 27, .12); }
.abas-area .area-nome { display: none; }

@media (max-width: 760px) {
  .nav { width: auto; height: auto; position: static; flex-direction: row; padding: 8px 10px; }
  .nav .logo { padding: 0 4px 0 0; }
  .nav .logo .logo-icone { width: 34px; height: 34px; }
  .nav a.item { width: auto; min-height: 54px; padding: 4px 10px; }
  .seletor { width: auto; margin: 0; }
  .conteudo { padding: 18px 16px 40px; }
}
.nav a.item .rot-txt { text-align: center; line-height: 1.2; }


/* Base "premium": conteúdo numa coluna central, mais respiro, tipografia de título e cartões mais refinados.
   Mantém o menu de ícones. Cada layout (G, H, I) só troca a paleta e a fonte de título. */
.conteudo { width: 100%; max-width: none; margin: 0; padding: 36px 40px 64px; gap: 24px; }
.topo { align-items: flex-end; padding-bottom: 6px; }
.topo .sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.topo .sub a { letter-spacing: .04em; text-transform: none; font-size: 13px; }
.topo h1 { font-family: var(--titulo); font-size: 40px; font-weight: var(--peso-titulo); letter-spacing: -0.02em; line-height: 1.05; }
.sec-tit, .dialogo-cab h2, .lateral h2 { font-family: var(--titulo); font-weight: var(--peso-titulo); letter-spacing: -0.01em; }
h2.sec-tit { font-size: 20px; }
/* abas da área: sublinhado fino, sem caixa */
.abas-area { background: transparent; padding: 0; gap: 26px; border-radius: 0; border-bottom: 1px solid var(--border); align-self: stretch; margin: 0 0 4px; }
.abas-area a { padding: 0 0 12px; border-radius: 0; background: transparent !important; box-shadow: none !important; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.abas-area a.ativo { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.abas-area .selo { background: transparent; border: 1px solid var(--border); color: var(--muted); }
/* cartões */
.card { border-radius: 20px; border-color: var(--border); box-shadow: var(--sombra); }
.card.pad { padding: 28px 32px; }
.kpi { padding: 22px 24px; gap: 8px; }
.kpi .rot { font-size: 12.5px; }
.kpi .val { font-family: var(--numeros); font-size: 30px; font-weight: var(--peso-num); letter-spacing: -0.02em; }
.grande .val { font-family: var(--numeros); font-size: 54px; font-weight: var(--peso-num); letter-spacing: -0.03em; }
.kpi-mini { border-radius: 14px; }
.kpi-mini strong { font-family: var(--numeros); font-weight: var(--peso-num); }
/* tabelas mais leves */
th { background: transparent !important; text-transform: none; letter-spacing: .01em; font-size: 12.5px; font-weight: 500; padding: 14px 22px; }
td { padding: 16px 22px; }
/* botões e campos */
.btn { border-radius: 999px; padding: 0 22px; min-height: 44px; font-weight: 600; }
.btn.peq { padding: 0 16px; min-height: 36px; }
.btn.sec { box-shadow: none; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=month], input[type=number], select, textarea { border-radius: 12px; }
.periodos { border-radius: 999px; padding: 4px; } .periodos a { border-radius: 999px; }
.chip { border-radius: 999px; }
.aviso { border-radius: 14px; padding: 14px 18px; }
/* menu de ícones: mais fino e elegante */
.nav { width: 92px; gap: 4px; }
.nav a.item { width: 76px; min-height: 64px; border-radius: 16px; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.nav .ico { width: 21px; height: 21px; stroke-width: 1.6; }
.seletor { width: 76px; }
@media (max-width: 1100px) { .conteudo { padding: 32px 28px 56px; } .grande .val { font-size: 44px; } }
@media (max-width: 760px) {
  .conteudo { padding: 20px 16px 48px; }
  .topo h1 { font-size: 30px; }
  .abas-area { gap: 18px; overflow-x: auto; }
  .nav { width: auto; } .nav a.item { width: auto; }
  .seletor { width: auto; }
}
.composicao.card.pad { padding: 28px 24px; }
.composicao .linhas > div > span:first-child { min-width: 0; }
.composicao .num { white-space: nowrap; }


/* Layout G · Marfim — fundo marfim, tinta grafite, títulos e números em serifa, menu de ícones grafite (era azul-marinho até 12/11/2026) */
:root {
  --titulo: Fraunces, Georgia, serif; --numeros: Fraunces, Georgia, serif; --peso-titulo: 500; --peso-num: 500;
  --bg: #F6F3EC; --surface: #FFFFFF; --border: #E7E1D6; --text: #24272B; --muted: #6B6F7B;
  --accent: #3A3E44; --accent-soft: #EFEFF0; --accent-text: #3A3E44; --accent-hover-text: #1A1C1F; --accent-text-soft: #3A3E44;
  --nav-active: #F1ECE2; --border-strong: #DCD4C6; --label: #3D4046; --border-accent: #D3D5D8; --surface-sunk: #FBF9F5;
  --row-line: #EFE9DF; --row-hover: #FBF9F5; --row-selected: #F7F4EE; --row-checked: #F2F2F3; --input-bg: #FFFFFF; --input-readonly: #FBF9F5;
  --sombra: 0 1px 1px rgba(36, 39, 43, .03), 0 12px 32px -12px rgba(36, 39, 43, .10);
}
body { font-family: "Inter Tight", Inter, system-ui, sans-serif; }
.nav { background: #24272B; }
.nav .ico { color: #999DA3; }
.nav a.item { color: #CFD1D4; }
.nav a.item:hover { background: #2E3136; }
.nav a.item.ativo { background: #3A3E44; color: #FFFFFF; }
.nav a.item.ativo .ico { color: #E2C58F; }
.seletor summary { background: #2E3136; border-color: #3E4248; }
.seletor .ini { background: #E2C58F; color: #24272B; }
.nav .logo .logo-icone { box-shadow: 0 0 0 1px #3E4248; }
.nav .rodape { color: #999DA3; } .nav .rodape .btn.link { color: #CFD1D4; }
.btn.prim, .btn.prim:hover { background: #24272B; color: #FFFFFF; } .btn.prim:hover { background: #3A3E44; }
.btn.sec { background: #FFFFFF; border-color: #DCD4C6; }
.grande .val.lucro, .lucro, .lucro-txt { color: #1F6B4F !important; }
.kpi .val.lucro { color: #1F6B4F !important; }
.chip.ativo { background: #24272B; border-color: #24272B; }
.selo.azul { background: #EFEFF0; color: #3A3E44; }
.abas-area a.ativo { border-bottom-color: #B08D4C; }
.g-barra { background: #E4DCCB; } .g-barra.atual { background: #24272B; } .g-col:hover .g-barra { background: #CDBF9F; }
.barra-h span { background: #3A3E44; }
.cg-barra { background: #EFE9DF; border-color: #DCD4C6; } .cg-barra.atual { background: #24272B; border-color: #24272B; }
.mapa-br path[fill="#1B2430"] { fill: #EFE9DF; } .mapa-br path[fill="#22344F"] { fill: #DADBDE; } .mapa-br path[fill="#2A4A7A"] { fill: #A4A8AE; } .mapa-br path[fill="#3466B5"] { fill: #60656C; } .mapa-br path[fill="#4C8DFF"] { fill: #24272B; }
.legenda-mapa i:nth-child(2) { background: #DADBDE !important; } .legenda-mapa i:nth-child(3) { background: #A4A8AE !important; } .legenda-mapa i:nth-child(4) { background: #60656C !important; } .legenda-mapa i:nth-child(5) { background: #24272B !important; }
.lanc.on { background: #EFEFF0; color: #3A3E44; border-color: #D3D5D8; }
.login-marca { background: #24272B; } .login-card { background: #2E3136; border-color: #3E4248; } .login-barras span { background: #3E4248; } .login-barras span.atual { background: #E2C58F; } .login-card .val.lucro { color: #E2C58F; }
.login-frase { font-family: Fraunces, Georgia, serif; font-weight: 500; }
.login .caixa .btn.prim { background: #24272B; }
.login .caixa h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; }

/* Sem título repetido: a aba ativa já diz onde você está. A linha do CNPJ fica como cabeçalho. */
.topo:has(h1.sr) { align-items: center; min-height: 44px; }
.topo:has(h1.sr) .sub { margin-bottom: 0; }
/* Sem logomarca no menu: o seletor de CNPJ abre a barra */
.nav { padding-top: 20px; }
.login-card .val.lucro { color: #E2C58F !important; }

/* Termos de uso e Política de privacidade */
.legal { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.legal-topo { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 40px; background: #24272B; }
.legal-marca { font-family: var(--titulo); font-size: 20px; font-weight: 500; color: #FFFFFF; text-decoration: none; }
.legal-marca:hover { color: #E2C58F; }
.legal-topo nav { display: flex; gap: 6px; }
.legal-topo nav a { padding: 8px 14px; border-radius: 999px; color: #CFD1D4; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.legal-topo nav a:hover { color: #FFFFFF; background: #2E3136; }
.legal-topo nav a.ativo { background: #3A3E44; color: #FFFFFF; box-shadow: inset 0 0 0 1px #E2C58F55; }
.legal-corpo { width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 40px 40px; flex: 1; }
.legal-cab { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.legal-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-cab h1 { font-family: var(--titulo); font-weight: 500; font-size: 48px; letter-spacing: -0.02em; margin: 10px 0 8px; color: var(--text); }
.legal-meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.legal-grade { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-indice { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.legal-indice span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-indice a { color: var(--label); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--border); }
.legal-indice a:hover { color: var(--text); border-left-color: #B08D4C; }
.legal-texto { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: #2D3035; }
.legal-texto section { scroll-margin-top: 88px; padding-bottom: 10px; }
.legal-texto h2 { font-family: var(--titulo); font-weight: 500; font-size: 25px; color: var(--text); margin: 34px 0 12px; }
.legal-texto h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 22px 0 6px; }
.legal-texto p { margin: 0 0 14px; }
.legal-texto ul { margin: 0 0 16px; padding-left: 22px; }
.legal-texto li { margin-bottom: 7px; }
.legal-texto li::marker { color: #B08D4C; }
.legal-texto strong { color: var(--text); }
.legal-texto code { font-size: 13.5px; background: var(--surface-sunk); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.legal-resumo { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 6px 28px 10px; box-shadow: var(--sombra); }
.legal-resumo h2 { margin-top: 20px; font-size: 21px; }
.legal-tabela { font-size: 14px; line-height: 1.5; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.legal-tabela th { background: var(--surface-sunk) !important; color: var(--text); font-weight: 600; white-space: normal; padding: 12px 16px; }
.legal-tabela td { padding: 12px 16px; vertical-align: top; }
.legal-tabela tr:last-child td { border-bottom: 0; }
.legal-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .legal-grade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-indice { position: static; display: none; }
  .legal-corpo { padding: 32px 18px; }
  .legal-cab h1 { font-size: 36px; }
  .legal-topo { padding: 12px 16px; position: static; }
  .legal-rodape { padding: 18px; }
  .legal-resumo { padding: 4px 18px 8px; }
}
/* Links legais no login e no menu */
.login-rodape a { color: inherit; }
.nav .rodape .links-legais { display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.nav .rodape .links-legais a { color: #999DA3; text-decoration: none; }
.nav .rodape .links-legais a:hover { color: #FFFFFF; }
/* Rodapé com os links legais no fim de todas as telas */
.rodape-legal { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12.5px; color: var(--muted); }
.rodape-legal nav { display: flex; gap: 18px; }
.rodape-legal a { color: var(--label); text-decoration: none; }
.rodape-legal a:hover { color: var(--text); text-decoration: underline; }
.conteudo { min-height: 100vh; }

/* Painel: saudação e faixa do dia */
.saudacao { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.saudacao strong { font-family: var(--titulo); font-weight: 500; font-size: 26px; color: var(--text); letter-spacing: -0.01em; }
.faixa-dia { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--sombra); overflow: hidden; }
.fd-bloco { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; min-width: 0; border-right: 1px solid var(--row-line); color: inherit; text-decoration: none; }
.fd-bloco:nth-child(6) { border-right: 0; }
.fd-link:hover { background: var(--surface-sunk); }
.fd-ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #F1ECE2; color: #B08D4C; }
.fd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fd-rot { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-val { font-family: var(--numeros); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.fd-val small { font-family: "Inter Tight", Inter, sans-serif; font-size: 12px; color: var(--muted); font-weight: 500; }
.fd-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-var { font-weight: 600; margin-right: 4px; }
.fd-var.sobe { color: #B42318; } .fd-var.desce { color: #067647; }
.fd-fonte { grid-column: 1 / -1; margin: 0; padding: 8px 20px; border-top: 1px solid var(--row-line); font-size: 11px; color: var(--muted-2); background: var(--surface-sunk); }
.fd-carregando { flex-direction: column; gap: 8px; }
.fd-carregando span { display: block; height: 12px; width: 60%; border-radius: 6px; background: linear-gradient(90deg, #EFE9DF, #F7F4EE, #EFE9DF); background-size: 200% 100%; animation: fd-pisca 1.2s infinite; }
.fd-carregando span + span { height: 22px; width: 80%; }
@keyframes fd-pisca { to { background-position: -200% 0; } }
@media (max-width: 1280px) { .faixa-dia { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fd-bloco { border-bottom: 1px solid var(--row-line); } .fd-bloco:nth-child(3) { border-right: 0; } .fd-bloco:nth-child(n+4) { border-bottom: 0; } }
@media (max-width: 760px) { .faixa-dia { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fd-bloco { padding: 14px; gap: 10px; } .fd-bloco:nth-child(3) { border-right: 1px solid var(--row-line); } .fd-bloco:nth-child(2n) { border-right: 0; } .fd-ico { width: 30px; height: 30px; padding: 6px; } .fd-val { font-size: 19px; } }
.fd-sub { white-space: normal; line-height: 1.35; }
.fd-rot { margin-bottom: 2px; }
.fd-val { margin-bottom: 2px; }
.saudacao span { white-space: nowrap; }
@media (max-width: 760px) { .faixa-dia .fd-bloco:nth-child(n+5) { border-bottom: 0; } .saudacao strong { font-size: 22px; } .saudacao span { display: block; white-space: normal; } }
.saudacao .sep { font-style: normal; }
@media (max-width: 760px) { .saudacao .sep { display: none; } .fd-rot { white-space: normal; } }
/* Faixa do dia um pouco mais compacta */
.faixa-dia { border-radius: 16px; }
.fd-bloco { padding: 13px 16px; gap: 10px; }
.fd-ico { width: 28px; height: 28px; padding: 5px; border-radius: 8px; }
.fd-rot { font-size: 11.5px; margin-bottom: 0; }
.fd-val { font-size: 18px; margin-bottom: 1px; }
.fd-sub { font-size: 11.5px; line-height: 1.3; }
.fd-fonte { padding: 6px 16px; font-size: 10.5px; }
.saudacao strong { font-size: 23px; }
@media (max-width: 760px) { .fd-bloco { padding: 12px; } .fd-val { font-size: 17px; } }
/* Faixa do dia à direita da saudação */
.topo-painel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topo-painel > div:first-child { flex: 0 0 auto; }
.topo-painel .faixa-dia { flex: 0 1 auto; display: flex; grid-template-columns: none; margin-left: auto; }
.topo-painel .fd-bloco { flex: 0 1 auto; padding: 11px 16px; border-right: 1px solid var(--row-line); border-bottom: 0; }
.topo-painel .fd-bloco:nth-child(6) { border-right: 0; }
.topo-painel .fd-bloco:nth-child(3) { border-right: 1px solid var(--row-line); }
.topo-painel .fd-carregando { width: 150px; }
.topo-painel .fd-fonte { display: none; }
.topo-painel .fd-sub + .fd-sub { display: none; }
@media (max-width: 1400px) {
  .topo-painel .faixa-dia { flex: 1 1 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .topo-painel .fd-bloco { border-right: 1px solid var(--row-line); }
  .topo-painel .fd-bloco:nth-child(6) { border-right: 0; }
}
@media (max-width: 760px) {
  .topo-painel .faixa-dia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topo-painel .fd-bloco { border-bottom: 1px solid var(--row-line); }
  .topo-painel .fd-bloco:nth-child(2n) { border-right: 0; }
  .topo-painel .fd-bloco:nth-child(n+5) { border-bottom: 0; }
}
.topo-painel .saudacao span { display: block; margin-top: 2px; font-size: 14px; }
.topo-painel .saudacao .sep { display: none; }
.topo-painel .faixa-dia { flex-wrap: nowrap; }
/* Painel: quarta coluna com a projeção do mês */
.grandes.linha3.linha4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grandes.linha3.linha4 .grande .val { font-size: clamp(22px, 3.6cqi, 50px); }
.proj-mes .val { color: #3A3E44; }
.proj-barra { display: block; height: 6px; border-radius: 999px; background: #EFE9DF; overflow: hidden; margin: 2px 0 0; }
.proj-barra i { display: block; height: 100%; border-radius: inherit; background: #B08D4C; }
@container (max-width: 820px) {
  .grandes.linha3.linha4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .grandes.linha3.linha4 .grande:nth-child(3) { padding-left: 0; border-left: 0; }
  .grandes.linha3.linha4 .grande .val { font-size: clamp(26px, 6.5cqi, 46px); }
}
@container (max-width: 560px) {
  .grandes.linha3.linha4 { grid-template-columns: 1fr; }
}
.proj-mes strong, .grande .muted strong { white-space: nowrap; }

/* Cadastros › Fornecedores */
.tipos-ct { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tabela-ct tr { position: relative; }
.tabela-ct .linha-link { color: var(--text); text-decoration: none; }
.tabela-ct .linha-link::after { content: ""; position: absolute; inset: 0; }
.tabela-ct tbody tr:hover { background: var(--row-hover); }
.tabela-ct tr.inativo td { opacity: .55; }
.tabela-ct .selo { margin: 0 2px 2px 0; }
.ct-grade { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.ct-grade .largo { grid-column: 1 / -1; }
.ct-dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.ct-dados.uma { grid-template-columns: 1fr; }
.ct-dados .largo { grid-column: span 2; }
.ct-dados dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ct-dados dd { margin: 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 900px) { .ct-grade { grid-template-columns: 1fr; } .ct-dados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Painel da área: abre ao lado do menu ao clicar em Cadastros, Suprimentos… (como no Tiny) */
.nav a.item.aberto { background: #3A3E44; color: #FFFFFF; }
.nav a.item.aberto .ico { color: #E2C58F; }
.area-painel { position: fixed; top: 0; left: 96px; bottom: 0; z-index: 60; width: 272px; padding: 26px 14px; display: flex; flex-direction: column; gap: 2px; background: #FBF9F5; border-right: 1px solid #E7E1D6; box-shadow: 18px 0 40px -18px rgba(36, 39, 43, .28); overflow-y: auto; animation: painel-entra .16s ease-out; }
.area-painel[hidden] { display: none; }
.area-painel-tit { font-family: var(--titulo); font-weight: var(--peso-titulo); font-size: 22px; letter-spacing: -0.01em; color: #24272B; padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid #EFE9DF; }
.area-painel a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #3D4046; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.area-painel a .ico { flex: none; width: 20px; height: 20px; color: #8A8E99; }
.area-painel a:hover { background: #F1ECE2; color: #24272B; }
.area-painel a:hover .ico { color: #B08D4C; }
.area-painel a.ativo { background: #EFEFF0; color: #24272B; font-weight: 600; }
.area-painel a.ativo .ico { color: #3A3E44; }
.area-painel a:focus-visible { outline: 2px solid #B08D4C; outline-offset: -2px; }
.area-painel .selo { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #F1ECE2; color: #8A6A2F; }
@keyframes painel-entra { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .area-painel { animation: none; } }
@media (max-width: 760px) {
  .area-painel { left: 0; right: 0; bottom: auto; width: auto; max-height: 70vh; padding: 16px 12px; border-right: 0; border-bottom: 1px solid #E7E1D6; border-radius: 0 0 18px 18px; box-shadow: 0 24px 40px -16px rgba(36, 39, 43, .35); animation-name: painel-desce; }
  .area-painel-tit { font-size: 19px; padding-bottom: 12px; }
}
@keyframes painel-desce { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Trilha discreta no topo (as abas agora ficam só no painel do menu) */
.trilha { font-size: 12.5px; color: var(--muted); margin-bottom: -10px; }
.trilha span { margin: 0 4px; color: #B08D4C; }
.trilha strong { color: #24272B; font-weight: 600; }

/* Minha conta: avatar no pé do menu e painel com Conta / Outros / Sair */
.nav a.item.conta-item { margin-top: auto; min-height: 0; padding: 8px 4px; }
.nav .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E2C58F; color: #24272B; font-size: 14px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 3px #24272B, 0 0 0 4px #E2C58F55; }
.nav a.item.conta-item:hover .avatar, .nav a.item.conta-item.aberto .avatar, .nav a.item.conta-item.ativo .avatar { box-shadow: 0 0 0 3px #24272B, 0 0 0 5px #E2C58F; }
.nav .rodape { display: none; }
.painel-grupo { font-size: 13px; font-weight: 700; color: #24272B; padding: 14px 12px 8px; margin: 0 0 4px; border-bottom: 1px solid #EFE9DF; }
.painel-conta .area-painel-tit { border-bottom: 0; margin-bottom: 0; }
.painel-usuario { margin-top: auto; padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; border-top: 1px solid #EFE9DF; }
.painel-usuario strong { color: #24272B; }
.painel-usuario span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.painel-sair { padding: 4px 12px 0; }
.painel-sair .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.painel-sair .ico { width: 17px; height: 17px; }
.ok-msg { padding: 12px 16px; border-radius: var(--radius); background: #EEF6F0; border: 1px solid #BFDCC7; color: #1D5B33; font-size: 13px; font-weight: 500; }
.dica-campo { font-size: 12px; color: var(--muted); font-weight: 400; }
.sec-tit .selo { font-family: var(--corpo, inherit); font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #F1ECE2; color: #8A6A2F; vertical-align: middle; margin-left: 6px; }
@media (max-width: 760px) {
  .nav a.item.conta-item { margin-top: 0; margin-left: auto; padding: 4px 6px; }
  .nav .avatar { width: 34px; height: 34px; font-size: 12.5px; }
  .painel-usuario { margin-top: 12px; }
}
.trilha a { color: inherit; text-decoration: none; } .trilha a:hover strong { text-decoration: underline; }

/* Trocar de conta (topo) e Minha conta (pé): o mesmo bloco quadrado com a inicial */
.nav a.item.troca-item, .nav a.item.conta-item { width: 76px; min-height: 54px; padding: 0; background: #2E3136; border: 1px solid #3E4248; border-radius: 14px; }
.nav a.item.troca-item { margin-bottom: 8px; }
.nav a.item.troca-item:hover, .nav a.item.conta-item:hover, .nav a.item.troca-item.aberto, .nav a.item.conta-item.aberto, .nav a.item.conta-item.ativo { background: #3A3E44; border-color: #E2C58F80; }
.nav .tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #E2C58F; color: #24272B; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.nav .tile.pessoal { background: #F1ECE2; }
.conta-op { align-items: center; }
.tile-mini { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #E2C58F; color: #24272B; font-size: 12.5px; font-weight: 700; }
.tile-mini.pessoal { background: #EFE9DF; }
.conta-op-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.conta-op-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-op-txt small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.area-painel a.conta-op.ativo::after { content: "✓"; margin-left: auto; color: #B08D4C; font-weight: 700; }
.area-painel a.conta-gerenciar { margin-top: 10px; border-top: 1px solid #EFE9DF; border-radius: 0; padding-top: 14px; color: #3A3E44; font-weight: 600; }
@media (max-width: 760px) {
  .nav a.item.troca-item, .nav a.item.conta-item { width: auto; min-height: 44px; padding: 0 4px; margin: 0; }
  .nav a.item.conta-item { margin-left: auto; }
  .nav .tile { width: 32px; height: 32px; font-size: 12.5px; }
}

/* Cadastros › Produtos (no estilo do Tiny) */
.busca-pd { position: relative; flex: 1 1 340px; max-width: 520px; display: flex; }
.busca-pd .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.filtros-pd .busca-pd input[type=search] { flex: 1; max-width: none; padding-left: 42px; }
.abas-ne a strong.zero { min-height: 1.3em; }
.tabela-pd tr[data-href] { cursor: pointer; }
.tabela-pd tr.inativo td:not(.col-sel):not(.col-acao) { opacity: .55; }
.tabela-pd td { vertical-align: middle; }
.tabela-pd .prod-txt a { color: var(--text); text-decoration: none; font-weight: 500; }
.tabela-pd .prod-txt a:hover { text-decoration: underline; }
.tabela-pd .sub-linha .selo { margin-left: 4px; }
.tabela-pd .menu-acao-lista { left: 0; right: auto; }
.menu-acao-lista a { font-size: 14px; padding: 10px 12px; border-radius: 7px; color: var(--text); text-decoration: none; }
.menu-acao-lista a:hover { background: var(--nav-active); }
.menu-acao-lista form { display: contents; }
.confirma-ex summary { list-style: none; padding: 10px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.confirma-ex summary::-webkit-details-marker { display: none; }
.confirma-ex summary:hover { background: var(--danger-bg); }
.confirma-ex form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 12px 10px; font-size: 12.5px; color: var(--muted); }
.perigo-txt { color: var(--danger-text); }
.tabela-pd .col-acao { width: 44px; padding-left: 0; padding-right: 0; }
.menu-acao-lista { text-align: left; }
.menu-acao-lista a { display: block; }
.menu-acao .confirma-ex summary { display: block; width: auto; height: auto; background: none; color: var(--danger-text); font-size: 14px; border-radius: 7px; }
.menu-acao .confirma-ex summary:hover, .menu-acao .confirma-ex[open] summary { background: var(--danger-bg); color: var(--danger-text); }
.tabela-pd .menu-acao[open] .menu-acao-lista { position: fixed; }

/* Marketplaces integrados: selo redondo com as iniciais (sem reproduzir as logomarcas) */
.canais { display: inline-flex; gap: 6px; align-items: center; }
.canal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 9.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1; flex: none; box-shadow: 0 0 0 1px rgba(36, 39, 43, .08); }
.canal::before { content: ""; }
.canal-mercadolivre { background: #FFE600; color: #2D3277; } .canal-mercadolivre::before { content: "ML"; }
.canal-amazon { background: #232F3E; color: #FF9900; } .canal-amazon::before { content: "a"; font-size: 13px; font-weight: 700; }
.canal-shopee { background: #EE4D2D; color: #FFFFFF; } .canal-shopee::before { content: "S"; font-size: 11px; }
.chip-radio .canal { width: 20px; height: 20px; font-size: 8px; margin-right: 2px; }
.chip-radio .canal-amazon::before { font-size: 11px; } .chip-radio .canal-shopee::before { font-size: 9.5px; }

/* Ficha do produto (Dados gerais · Anúncios · Custos) */
.pd-topo { align-items: center; }
.pd-cab { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pd-cab .foto-prod { border-radius: 12px; flex: none; }
.topo .pd-nome { font-family: var(--corpo, inherit); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.pd-sub { font-size: 13px; }
.abas-pd { display: flex; gap: 28px; border-bottom: 1px solid var(--border); overflow-x: auto; margin-top: -4px; }
.abas-pd a { padding: 10px 2px 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas-pd a:hover { color: var(--text); }
.abas-pd a.ativo { color: var(--text); font-weight: 600; border-bottom-color: #B08D4C; }
.aba-painel { display: flex; flex-direction: column; gap: 20px; }
.aba-painel[hidden] { display: none; }
.pd-dados hr { border: 0; border-top: 1px solid var(--row-line); margin: 22px 0; }
.ct-dados.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-sec { font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.pd-dim { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; }
.pd-caixa { width: 200px; color: #9AA0AC; }
.pd-canais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-canal { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); opacity: .6; }
.pd-canal .canal { grid-row: 1 / 3; width: 32px; height: 32px; font-size: 12px; }
.pd-canal.on { opacity: 1; background: var(--surface); border-color: #E2C58F; }
.pd-canal .muted { font-size: 12.5px; }
@media (max-width: 900px) { .ct-dados.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pd-dim { grid-template-columns: 1fr; } .pd-caixa { display: none; } .pd-canais { grid-template-columns: 1fr; } }

/* Anúncios do produto + gaveta lateral */
.an-canal { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.tabela-an tr.inativo td:not(.col-acao) { opacity: .55; }
.tabela-an .sub-linha a { color: var(--accent-text); }
.an-acoes { white-space: nowrap; width: 1%; }
.an-acoes > * { vertical-align: middle; }
.an-acoes .btn.link { margin: 0 6px 0 10px; }
.an-acoes .excluir-det { display: inline-block; }
.ponto-sit { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #C9CDD5; }
.ponto-sit.on { background: #2FBF71; }
dialog.gaveta { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(620px, 100vw); height: 100vh; max-height: none; max-width: none; padding: 0; border: 0; background: #FBF9F5; color: var(--text); box-shadow: -24px 0 48px -16px rgba(36, 39, 43, .3); }
dialog.gaveta::backdrop { background: rgba(36, 39, 43, .28); }
dialog.gaveta[open] { animation: gaveta-entra .18s ease-out; }
dialog.gaveta form { display: flex; flex-direction: column; gap: 18px; padding: 28px 32px; }
.gaveta-cab { display: flex; align-items: center; justify-content: space-between; }
.gaveta-cab h2 { font-family: var(--titulo); font-weight: var(--peso-titulo); font-size: 24px; margin: 0; }
@keyframes gaveta-entra { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.gaveta[open] { animation: none; } }
@media (max-width: 760px) { dialog.gaveta form { padding: 20px 16px; } }
.check[hidden], .campo[hidden] { display: none !important; }
.an-acoes summary { list-style: none; display: inline-flex; }
.an-acoes summary::-webkit-details-marker { display: none; }
.an-acoes .pop { right: 0; left: auto; }

/* Clique para copiar (SKU, EAN) */
.copiar { font: inherit; color: inherit; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; cursor: copy; text-align: left; position: relative; }
.copiar:hover { background: #F1ECE2; }
.copiar.copiado, .copiar.copiado:hover { background: #E3F3E8; color: #1D5B33; }
.copiar:focus-visible { outline: 2px solid #B08D4C; outline-offset: 1px; }
.toast-copia { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 999px; background: #24272B; color: #FFFFFF; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(36, 39, 43, .5); }
.toast-copia[hidden] { display: none; }

/* Cadastros › Anúncios */
.topo .an-tit { font-family: var(--titulo); font-weight: var(--peso-titulo); font-size: 28px; letter-spacing: -0.01em; margin: 0 0 6px; }
.an-tit-canal { display: flex; align-items: center; gap: 12px; }
.an-tit-canal .canal { width: 34px; height: 34px; font-size: 12px; }
.an-intro { max-width: 820px; margin: 0; font-size: 14px; line-height: 1.5; }
.an-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.an-card { display: flex; flex-direction: column; gap: 18px; padding: 20px 22px; min-height: 190px; }
.an-card-cab { display: flex; align-items: center; gap: 10px; }
.an-card-cab h2 { margin: 0; font-size: 16px; font-weight: 600; }
.an-card-cab .canal { width: 30px; height: 30px; font-size: 11px; }
.an-card-num { display: flex; flex-direction: column; gap: 2px; }
.an-card-num strong { font-family: var(--numeros); font-weight: var(--peso-num); font-size: 34px; line-height: 1.05; color: var(--text); }
.an-card-num span { font-size: 12.5px; color: var(--muted); }
.an-card-pe { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.an-card-pe .btn.link { font-weight: 600; }
.an-rodape { margin: 0; font-size: 13px; }
.canal-tiktok { background: #111111; color: #FFFFFF; } .canal-tiktok::before { content: "TT"; text-shadow: -1px -1px 0 #25F4EE, 1px 1px 0 #FE2C55; }
@media (max-width: 1100px) { .an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .an-cards { grid-template-columns: 1fr; } }
.an-card-info { display: flex; flex-direction: column; gap: 2px; }
.an-card-info a { font-weight: 600; text-decoration: none; } .an-card-info a:hover { text-decoration: underline; }
.an-trocar { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.an-trocar a { display: inline-flex; padding: 3px; border-radius: 50%; opacity: .55; }
.an-trocar a:hover { opacity: 1; background: #F1ECE2; }
.tabela-anc tr.sem-produto td { background: #FFFCF4; }
.an-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.an-acoes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rel-anuncio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rel-anuncio .canal { width: 32px; height: 32px; font-size: 11px; }
dialog.gaveta .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label); }

/* Integrações e importação pela API */
.int-ml { display: flex; flex-direction: column; gap: 14px; }
.int-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.int-nome { display: flex; align-items: center; gap: 14px; }
.int-nome .canal { width: 44px; height: 44px; font-size: 14px; }
.int-nome strong { font-size: 18px; }
.conta-int { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); }
.conta-int.alerta { border-color: #F2D49B; background: #FFFAEB; }
.conta-int-nome { flex: 1 1 200px; }
.conta-int-imp { font-size: 12.5px; flex: 2 1 260px; }
.conta-int .botoes { display: flex; align-items: center; gap: 8px; }
.conta-int .excluir-det { position: relative; }
.conta-int .excluir-det summary { list-style: none; } .conta-int .excluir-det summary::-webkit-details-marker { display: none; }
.conta-int .pop { right: 0; left: auto; }
.int-outros { margin-top: 4px; }
.int-outros .an-card { min-height: 0; }
.imp-intro { margin: 0; font-size: 13.5px; line-height: 1.55; }
.imp-grupo { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.imp-grupo[hidden] { display: none; }
.imp-grupo legend { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.imp-op { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 15px; }
.imp-op:has(input:checked) { border-color: #3A3E44; background: #EFEFF0; }
.imp-op input { width: 18px; height: 18px; accent-color: #3A3E44; margin: 0; }
.imp-op .canal { width: 22px; height: 22px; font-size: 8px; }
.imp-grupo textarea[hidden] { display: none; }
.imp-planilha { align-self: flex-start; font-size: 13px; }
dialog.gaveta form[hidden] { display: none; }
.int-config summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.int-config p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.int-config code { font-size: 12px; background: var(--surface-sunk); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Página de cada integração */
.abas-int { display: flex; gap: 26px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.abas-int a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 2px 14px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas-int a:hover { color: var(--text); }
.abas-int a.ativo { color: var(--text); font-weight: 600; border-bottom-color: #B08D4C; }
.abas-int-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F1ECE2; color: #6B6F7B; }
.abas-int a.ativo .abas-int-ico { background: #24272B; color: #E2C58F; }
.abas-int-ico svg { width: 16px; height: 16px; }
.int-sec { display: flex; flex-direction: column; gap: 18px; }
.int-sec hr { border: 0; border-top: 1px solid var(--row-line); margin: 0; width: 100%; }
.int-nome-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.int-nome-form .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label); flex: 0 1 440px; }
.int-conta-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-sunk); max-width: 760px; }
.int-conta-card > .canal { width: 52px; height: 52px; font-size: 15px; }
.int-conta-card > div:nth-child(2) { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.int-conta-card strong { font-size: 18px; }
.int-status { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--surface); }
.int-status.off { color: var(--warn); border-color: #F2D49B; }
.int-dados { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 4px 22px; margin: 6px 0 0; font-size: 13px; }
.int-dados dt { color: var(--muted); font-size: 11.5px; } .int-dados dd { margin: 0; }
.int-conta-acoes { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.int-conta-acoes .excluir-det { position: relative; } .int-conta-acoes .excluir-det summary { list-style: none; } .int-conta-acoes .excluir-det summary::-webkit-details-marker { display: none; }
.int-conta-acoes .pop { right: 0; left: auto; }
.int-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.int-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); }
.int-kpis strong { font-family: var(--numeros); font-weight: var(--peso-num); font-size: 28px; }
.int-kpis span { font-size: 12.5px; color: var(--muted); }
.int-breve { align-items: flex-start; } .int-breve p { margin: 0; max-width: 720px; line-height: 1.55; }
.conta-int-link { color: inherit; text-decoration: none; } .conta-int-link:hover strong { text-decoration: underline; }
@media (max-width: 760px) { .int-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .int-dados { grid-template-columns: 1fr; } }

/* Controle de estoque */
.est-resumo { margin: 0; font-size: 13.5px; }
.mais-acoes { position: relative; } .mais-acoes > summary.btn { width: auto; height: auto; border-radius: 999px; padding: 0 18px; min-height: 44px; font-size: 14px; color: var(--text); background: var(--surface); }
.mais-acoes[open] > summary.btn, .mais-acoes > summary.btn:hover { background: var(--nav-active); color: var(--text); }
.mais-acoes .menu-acao-lista { right: 0; left: auto; }
.est-lanc { font: inherit; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; color: #3A3E44; cursor: pointer; text-decoration: underline; text-decoration-color: #D3D5D8; text-underline-offset: 3px; }
.est-lanc:hover { background: #EFEFF0; }
.est-lanc.negativo { color: var(--danger-text); }
.tabela-est .col-acao { width: 44px; padding-left: 0; padding-right: 0; }
.tabela-est .menu-acao-lista { left: 0; right: auto; }
.lanc-saldos:empty { display: none; }
.lanc-prod { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px 14px; }
.lanc-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.lanc-tab th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: left; padding: 4px 0; }
.lanc-tab td { padding: 5px 0; border-top: 1px solid var(--row-line); }
.lanc-tab .dir { text-align: right; }
.lanc-hist { margin-top: 8px; font-size: 12.5px; } .lanc-hist summary { cursor: pointer; color: var(--muted); }
.lanc-hist ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.tipos-lanc { display: flex; flex-wrap: wrap; gap: 8px; }
.dep-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dep-lista li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.dep-lista .canal { width: 20px; height: 20px; font-size: 7.5px; margin-left: auto; }
.inv-campo { width: 110px; text-align: right; }
.inv-obs { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; flex: 1 1 220px; max-width: 360px; }
.link-mini { font-size: 12px; margin-left: 6px; }
.pd-estoque-link { font-weight: 400; font-size: 14px; padding-top: 12px; }
.tabela-inv input.inv-campo { width: 120px; max-width: 120px; min-height: 40px; }
.periodos.desligado { opacity: .4; pointer-events: none; }
.rateio-item { font-size: 12px; color: var(--ok-text, #1D5B33); }

/* Nota de entrada lançada */
.nf-cab { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.nf-cab strong { font-family: var(--titulo); font-weight: var(--peso-titulo); font-size: 24px; }
.ok-selo { background: #E3F3E8 !important; color: #1D5B33 !important; }
.nf-lanc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--row-line); font-size: 13.5px; }
.nf-lanc .lanc { margin-left: 8px; } .nf-lanc .lanc:first-child { margin-left: 0; }
.nf-totais { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; padding: 16px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.nf-totais strong { color: var(--text); margin-left: 4px; }
.nf-total { font-size: 15px; color: var(--text); } .nf-total strong { font-size: 17px; }
.link-nota { color: inherit; text-decoration: none; } .link-nota:hover strong { text-decoration: underline; }
.topo .excluir-det { position: relative; } .topo .excluir-det summary { list-style: none; } .topo .excluir-det summary::-webkit-details-marker { display: none; }
.topo .excluir-det .pop { right: 0; left: auto; }

/* Finanças › Contas a pagar (no estilo do Tiny) */
.filtros-cp2 { align-items: center; }
.venc-filtro { display: inline-flex; align-items: center; gap: 6px; }
.venc-seta { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 18px; line-height: 1; background: var(--surface); }
.venc-seta:hover { background: var(--nav-active); }
.pop-venc { position: relative; }
.pop-venc > summary { list-style: none; }
.pop-venc > summary::-webkit-details-marker { display: none; }
.chip-filtro { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: #3A3E44; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip-filtro .ico { width: 16px; height: 16px; }
.chip-filtro.mudado, .pop-venc[open] .chip-filtro { border-color: #B08D4C; background: #FBF6EC; }
.pop-venc-caixa { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: 170px 220px; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(36, 39, 43, .25); overflow: hidden; }
.pop-venc-ops { display: flex; flex-direction: column; padding: 8px; border-right: 1px solid var(--row-line); }
.pop-venc-ops a { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.pop-venc-ops a:hover { background: var(--nav-active); }
.pop-venc-ops a.ativo { background: #F1ECE2; font-weight: 600; }
.pop-venc-datas { display: flex; flex-direction: column; gap: 10px; padding: 14px; font-size: 13px; }
.pop-venc-datas .btn { align-self: flex-start; }
.tabela-cpr td { vertical-align: top; }
.tabela-cpr .forn-cp { font-weight: 500; color: var(--text); text-decoration: none; }
.tabela-cpr .forn-cp:hover { text-decoration: underline; }
.tabela-cpr .hist-cp { max-width: 300px; }
.tabela-cpr th.cen, .tabela-cpr td.cen { text-align: center; }
.tabela-cpr .col-acao { text-align: left; width: 40px; }
.tabela-cpr .menu-acao-lista button { display: block; width: 100%; text-align: left; }
.cp-forma { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F1ECE2; color: #6B5428; font-size: 11.5px; font-weight: 700; }
.cp-sit { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #C9CDD5; vertical-align: middle; }
.cp-sit.aberta { background: #2FBF71; }
.cp-sit.parcial { background: #F2B630; }
.cp-sit.atrasada { background: #D92D20; }
.cp-sit.paga { background: #3A3E44; }
.cp-sit.cancelada { background: #C9CDD5; }
.cp-totais { display: inline-flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); }
.cp-totais strong { color: var(--text); margin-left: 4px; }
.legenda-cp { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legenda-cp > span { display: inline-flex; align-items: center; gap: 6px; }
.cp-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cp-numeros div { display: flex; flex-direction: column; gap: 2px; }
.cp-numeros small { color: var(--muted); font-size: 12.5px; }
.cp-numeros strong { font-size: 19px; font-weight: 600; }
.cp-anexo { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pag-conta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pag-conta > .muted { font-size: 13px; }
.pag-numeros { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
.pag-numeros span { display: flex; flex-direction: column; }
.pag-numeros small { font-size: 12px; color: var(--muted); }
.pag-calc { font-size: 13.5px; font-weight: 500; min-height: 1.2em; }
.erro-txt { color: var(--danger-text); }
.ok-txt { color: #1D5B33; }
dialog.gaveta .gaveta-form { display: flex; flex-direction: column; gap: 18px; padding: 28px 32px; }
@media (max-width: 760px) {
  .pop-venc-caixa { position: fixed; left: 16px; right: 16px; top: auto; grid-template-columns: 1fr; }
  .pop-venc-ops { border-right: 0; border-bottom: 1px solid var(--row-line); }
  .cp-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog.gaveta .gaveta-form { padding: 20px 16px; }
  .chip-filtro { padding: 0 12px; font-size: 13px; }
}
@media print {
  .nav, .area-painel, .filtros-cp2, .abas-ne, .topo .botoes, .col-sel, .col-acao, .legenda-cp, .trilha { display: none !important; }
}
.tabela-cpr th, .tabela-cpr td { padding-left: 8px; padding-right: 8px; font-size: 13.5px; }
.tabela-cpr td.num, .tabela-cpr th { white-space: nowrap; }
.tabela-cpr td:nth-child(3) { min-width: 190px; }
.tabela-cpr .hist-cp { min-width: 230px; max-width: 320px; }
#form-lote { min-width: 0; display: block; }
@media (max-width: 760px) { .tabela-cpr td:nth-child(3) { min-width: 150px; } }
#form-lote .tabela-wrap { position: relative; }
.cp-pago { font-size: 12px; font-weight: 600; padding: 3px 10px; }

/* Finanças › Bancos */
.bk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bk-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; text-decoration: none; color: var(--text); border: 1px solid var(--border); transition: border-color .12s; }
.bk-card:hover { border-color: #D9C49A; }
.bk-card.ativo { border-color: #B08D4C; box-shadow: 0 0 0 1px #B08D4C inset; }
.bk-card.inativa { opacity: .6; }
.bk-topo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bk-topo > span:not(.sigla):not(.selo) { min-width: 0; display: flex; flex-direction: column; }
.bk-topo strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-sigla { width: 36px; height: 36px; border-radius: 10px; background: #F1ECE2; color: #6B5428; font-size: 12px; }
.bk-sigla.todas { background: #24272B; color: #E2C58F; font-size: 16px; }
.bk-padrao { margin-left: auto; font-size: 10.5px; padding: 2px 8px; background: #F1ECE2; color: #8A6A2F; }
.bk-saldo { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.bk-card .rot { font-size: 12px; }
.bk-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; padding: 16px 18px 0; border-bottom: 1px solid var(--border); }
.bk-cab .sec-tit { margin: 0 0 12px; }
.bk-abas { border-bottom: 0; padding: 0; }
.bk-abas a { min-width: 80px; padding: 6px 12px 10px; }
.bk-wrap { position: relative; }
.tabela-bk th, .tabela-bk td { padding-left: 10px; padding-right: 10px; }
.tabela-bk td.num, .tabela-bk th { white-space: nowrap; }
.tabela-bk th.cen, .tabela-bk td.cen { text-align: center; }
.tabela-bk tr.bk-anterior td { background: var(--surface-sunk, #FAF8F4); }
.tabela-bk .menu-acao-lista button, .tabela-bkc .menu-acao-lista button { display: block; width: 100%; text-align: left; }
.bk-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E7F4EC; color: #1D5B33; font-size: 12px; font-weight: 700; }
.bk-vazio { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bk-vazio p { margin: 0; max-width: 640px; }
.tabela-imp .sel-tipo { min-width: 170px; padding-top: 6px; padding-bottom: 6px; }
.tabela-imp td { vertical-align: middle; }
@media (max-width: 760px) { .bk-cards { grid-template-columns: 1fr 1fr; } .bk-saldo { font-size: 17px; } .bk-card { padding: 12px; } .bk-sigla { display: none; } .bk-padrao { display: none; } }

/* Finanças › Extratos bancários (conciliação) */
.ex-pend { font-size: 13.5px; color: var(--text); }
.ex-pend strong { font-size: 20px; font-weight: 600; margin-right: 4px; color: #B54708; }
.ex-pend.ok { display: inline-flex; align-items: center; gap: 6px; color: #1D5B33; font-weight: 500; }
.ex-saldos { margin-top: 0; }
.tabela-ex th, .tabela-ex td { padding-left: 10px; padding-right: 10px; vertical-align: middle; }
.tabela-ex td.num, .tabela-ex th { white-space: nowrap; }
.tabela-ex .ex-sist { min-width: 260px; font-size: 13.5px; }
.tabela-ex .ex-sist .selo { margin-right: 4px; }
.ex-acoes { width: 1%; white-space: nowrap; text-align: right; }
.ex-botoes { display: inline-flex; align-items: center; gap: 6px; }
.tabela-ex .menu-acao-lista button { display: block; width: 100%; text-align: left; }
.ex-intro { margin: 0; padding: 0 18px 12px; font-size: 13px; }
.ex-importacoes { padding: 0; }
.ex-importacoes > summary { padding: 16px 18px; cursor: pointer; list-style: none; }
.ex-importacoes > summary::-webkit-details-marker { display: none; }
.ex-importacoes > summary::before { content: "▸ "; color: var(--muted); }
.ex-importacoes[open] > summary::before { content: "▾ "; }
.ex-excluir { display: inline-block; }
.ex-excluir summary { color: var(--danger-text); font-size: 13px; padding: 6px 8px; }
.ex-excluir[open] form { position: absolute; right: 18px; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(36, 39, 43,.3); max-width: 300px; }
.ex-res-abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 2px; overflow-x: auto; }
.ex-res-abas button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.ex-res-abas button.ativo { color: var(--text); font-weight: 600; border-bottom-color: #B08D4C; }
#res-corpo { display: flex; flex-direction: column; gap: 16px; }
#res-corpo [hidden] { display: none !important; }
.ex-res-form { display: flex; flex-direction: column; gap: 14px; }
.ex-lista { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.ex-cp-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ex-cp-item:has(input:checked) { border-color: #B08D4C; background: #FBF6EC; }
.ex-cp-item input { width: 18px; height: 18px; accent-color: #3A3E44; }
.ex-cp-txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.ex-cp-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 600; }
.ex-cp-val .selo { font-size: 10.5px; font-weight: 600; }
dialog.gaveta #res-corpo form { padding: 0; }
.ex-meses { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ex-meses-lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; flex: 1; min-width: 0; }
.ex-mes { flex: none; display: flex; flex-direction: column; gap: 2px; min-width: 112px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 12px; }
.ex-mes strong { font-size: 14.5px; font-weight: 600; text-transform: capitalize; }
.ex-mes:hover { border-color: #D9C49A; }
.ex-mes.ativo { border-color: #B08D4C; box-shadow: 0 0 0 1px #B08D4C inset; background: #FBF6EC; }
.ex-mes-pend { color: #B54708; font-weight: 600; }
.ex-mes-ok { color: #1D5B33; font-weight: 500; }
.ex-saldos small + strong + small { font-size: 11.5px; color: var(--muted); }

/* Vendas › Pedidos de venda e Notas fiscais */
.ns-selects { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ns-mes { cursor: default; }
.tabela-ns th, .tabela-ns td, .tabela-ped th, .tabela-ped td { padding-left: 10px; padding-right: 10px; }
.tabela-ns td.num, .tabela-ns th, .tabela-ped td.num, .tabela-ped th { white-space: nowrap; }
.tabela-ns .col-acao, .tabela-ped .col-acao { text-align: left; width: 40px; }
.tabela-ns .menu-acao-lista button, .tabela-ped .menu-acao-lista button { display: block; width: 100%; text-align: left; }
.tabela-ns th.cen, .tabela-ns td.cen, .tabela-ped th.cen, .tabela-ped td.cen { text-align: center; }
.ns-cli, .ped-cli { font-weight: 500; }
.ped-cli { min-width: 160px; }
.cp-sit.ns-emitida { background: #2E90FA; }
.ns-ped { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D92D20; color: #D92D20; font-size: 11px; font-weight: 700; text-decoration: none; }
.ns-ped:hover { background: #FEF3F2; }
.marcador.ns-tipo-remessa, .marcador.ns-tipo-devolucao, .marcador.ns-tipo-entrada { background: #FFFAEB; color: #B54708; }
.marcador.ped-log-fulfillment { background: #ECFDF3; color: #067647; }
.ped-num { display: inline-flex; align-items: center; gap: 6px; }
.ped-num .canal { width: 20px; height: 20px; font-size: 8px; }
.ped-rastreio { font-size: 12.5px; }
.abas-ped a span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.abas-ped a { min-width: 0; }
.ped-sit { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #C9CDD5; vertical-align: middle; font-style: normal; }
.ped-sit.aberto { background: #F2B630; }
.ped-sit.aprovado { background: #47CD89; }
.ped-sit.preparando { background: #22B8CF; }
.ped-sit.faturado { background: #2E90FA; }
.ped-sit.pronto { background: #F97066; }
.ped-sit.enviado { background: #9B8AFB; }
.ped-sit.entregue { background: #17B26A; }
.ped-sit.nao_entregue { background: #344054; }
.ped-sit.cancelado { background: #C9CDD5; }
.ped-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; vertical-align: middle; }
.ped-mudar { display: inline-flex; gap: 8px; align-items: center; }
.ped-mudar select { width: auto; }
.ns-dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.ns-dados dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.ns-dados dd { margin: 0; font-size: 14.5px; }
.ns-dados .ns-chave { grid-column: 1 / -1; }
.ns-chave .copiar { font-size: 14px; letter-spacing: .02em; }
@media (max-width: 900px) { .ns-dados { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ns-dados { grid-template-columns: 1fr; } .ped-mudar { width: 100%; } }
.tabela-ped td, .tabela-ped th { font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
.tabela-ped .ped-cli { min-width: 150px; }
.tabela-ped .ped-num .copiar, .tabela-ped .ped-rastreio { font-size: 12.5px; }
.ns-importar .menu-acao-lista { right: 0; left: auto; min-width: 240px; }
.ns-importar .menu-acao-lista button { display: block; width: 100%; text-align: left; }
.ns-importar > summary { list-style: none; }
.ns-importar > summary::-webkit-details-marker { display: none; }
.ns-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12.5px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); }
.ns-auto-tit { font-weight: 600; color: var(--muted); }
.ns-auto-conta { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.ns-auto-conta .canal { width: 20px; height: 20px; font-size: 8px; }
.ns-auto-conta > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.mais-acoes > summary.btn.prim, .mais-acoes[open] > summary.btn.prim, .mais-acoes > summary.btn.prim:hover { background: #24272B; color: #FFFFFF; border-color: #24272B; }
.mais-acoes > summary.btn.prim:hover { background: #3A3E44; }
.em-breve-simples { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.em-breve-simples h1 { margin: 0; font-size: 24px; font-weight: 600; }
.av-sec { display: flex; flex-direction: column; gap: 12px; }
.av-url { align-self: flex-start; font-size: 14px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); word-break: break-all; text-align: left; }
.av-sub { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.av-topicos { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.av-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.av-rec { font-size: 12.5px; word-break: break-all; }

/* Confirmações (Editar, Excluir, Estornar) no topo das telas e na barra da nota de entrada */
.topo .excluir-det, .barra-nota .excluir-det { position: relative; }
.barra-nota .excluir-det summary { list-style: none; } .barra-nota .excluir-det summary::-webkit-details-marker { display: none; }
.topo .excluir-det .pop, .barra-nota .excluir-det .pop { position: absolute; right: 0; left: auto; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 340px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); font-size: 13px; white-space: normal; text-align: left; }
.topo .excluir-det .pop { top: calc(100% + 8px); }
.barra-nota .excluir-det .pop { bottom: calc(100% + 8px); }
@media (max-width: 760px) {
  .topo .botoes, .barra-nota .botoes { position: relative; }
  .topo .excluir-det, .barra-nota .excluir-det { position: static; }
  .topo .excluir-det .pop, .barra-nota .excluir-det .pop { left: 0; right: 0; width: auto; }
}

/* Estoque › lançamentos de um produto */
.ei-cab { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.ei-nome { margin: 0; font-size: 26px; }
.ei-filtros .ei-data { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ei-filtros .ei-data input { min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }
.ei-resumo { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ei-resumo div { display: flex; flex-direction: column; gap: 2px; }
.ei-resumo strong { font-size: 20px; }
.ei-resumo span { font-size: 12px; }
.ei-tipo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--text); }
.ei-tipo.v { background: #ECEDEE; } .ei-tipo.e { background: #E3F2E8; } .ei-tipo.s { background: #F9E7E3; }
@media (max-width: 760px) { .ei-nome { font-size: 20px; } .ei-resumo { gap: 18px; } }
.ei-tab td { vertical-align: middle; } .ei-ped { overflow-wrap: anywhere; }
/* Vendas › Relatório de vendas */
.rv-resumo { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.tabela-rv td:nth-child(2) { min-width: 250px; } .tabela-rv td:nth-child(3) { white-space: nowrap; }
@media (max-width: 760px) { .tabela-rv td:nth-child(2) { min-width: 170px; } }
.tabela-rv tfoot td { border-top: 2px solid var(--border); background: var(--surface-2, transparent); }
/* Painel: escolher um dia ou um mês (botão de calendário dentro do seletor de período) */
.per-escolha { position: relative; }
.periodos .per-cal { min-height: 36px; width: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.periodos .per-cal svg { width: 18px; height: 18px; }
.periodos .per-cal:hover, .periodos .per-cal[aria-expanded="true"] { color: var(--text); background: rgba(16,24,40,.05); }
.periodos .per-custom { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.periodos .per-custom a.per-seta { min-width: 26px; min-height: 30px; padding: 0; font-size: 16px; color: var(--muted); }
.periodos .per-custom a.per-seta:hover { color: var(--text); }
.periodos .per-rot { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; padding: 0 4px; white-space: nowrap; }
.per-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 292px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 40px rgba(16,24,40,.16); }
.per-modos { display: flex; gap: 2px; padding: 3px; margin-bottom: 10px; border-radius: 999px; background: #F2F4F7; }
.per-modos button { flex: 1; min-height: 32px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.per-modos button.ativo { background: #FFFFFF; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.per-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.per-cab strong { font-size: 14px; }
.per-nav { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 16px; color: var(--text); cursor: pointer; }
.per-nav:disabled { opacity: .35; cursor: default; }
.per-grade.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.per-grade.meses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.per-sem { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.per-cel { display: flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 999px; font-size: 13px; color: var(--text); text-decoration: none; }
.per-grade.meses .per-cel { min-height: 40px; text-transform: capitalize; }
a.per-cel:hover { background: #F2F4F7; }
.per-cel.hoje { font-weight: 700; box-shadow: inset 0 0 0 1px #D0D5DD; }
.per-cel.sel { background: #24272B; color: #FFFFFF; font-weight: 600; box-shadow: none; }
span.per-cel[aria-disabled] { color: #C0C4CC; }
@media (max-width: 760px) {
  .per-escolha { width: 100%; }
  .per-escolha .periodos { width: 100%; }
  .per-escolha .periodos > a { flex: 1; min-width: 0; padding: 0 6px; }
  .per-escolha .periodos .per-custom .per-rot { font-size: 12px; padding: 0 2px; }
  .per-escolha .periodos .per-custom a.per-seta { min-width: 18px; }
  .per-pop { right: auto; left: 0; width: min(292px, calc(100vw - 32px)); }
}
/* Painel › pedidos por estado + cidades */
.estados-corpo:has(.ranking-cidades) { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ranking-cidades .rc-cab { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--row-line); }
.ranking-cidades .rc-tit { font-size: 13px; font-weight: 600; }
.rc-linha { grid-template-columns: minmax(0, 1fr) 26px 26% 44px 48px; }
.rc-linha .r-uf { color: var(--muted); font-weight: 600; font-size: 11px; }
.estados [data-uf] { cursor: pointer; }
.r-linha.uf-sel { background: #F2F4F7; border-radius: 8px; }
.mapa-br path.uf-sel { stroke: #24272B; stroke-width: 2.5; }
@media (max-width: 1200px) { .estados-corpo:has(.ranking-cidades) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .estados-corpo:has(.ranking-cidades) .mapa-br { grid-column: 1 / -1; max-height: 300px; } }
@media (max-width: 760px) { .estados-corpo:has(.ranking-cidades) { grid-template-columns: 1fr; } }
#rc-limpar[hidden] { display: none; }
@media (max-width: 760px) { .rc-linha { grid-template-columns: minmax(0, 1fr) 28px 44px 52px; } .rc-linha .barra-h { display: none; } }
.pe-grade { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Painel: cabeçalho enxuto + o que precisa de atenção */
.pn-cab { min-width: 0; }
.pn-emp { margin: 4px 0 0; font-family: var(--titulo); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; color: var(--text); }
.pn-lojas { font-family: inherit; font-size: 15px; color: var(--muted); font-weight: 400; }
.pn-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pn-sub .sep { font-style: normal; margin: 0 4px; }
.pend { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; padding: 14px 18px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid #D97706; border-radius: 14px; }
.pend-tit { font-weight: 600; font-size: 13px; padding-top: 6px; white-space: nowrap; }
.pend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.pend li a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #FFF7ED; color: #9A3412; font-size: 13px; text-decoration: none; border: 1px solid #FED7AA; }
.pend li a:hover { background: #FFEDD5; }
.pend li.pend-aviso a { background: #F2F4F7; color: var(--text); border-color: #E4E7EC; }
.pend li.pend-aviso a:hover { background: #E9ECF1; }
.pend li a i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pend li a span { opacity: .6; }
.pend-ok { margin: 0 0 16px; font-size: 13px; color: #0F766E; }
@media (max-width: 760px) { .pn-emp { font-size: 21px; } .pend { padding: 12px; } .pend li a { white-space: normal; padding: 6px 12px; } }
.pn-lojas { font-family: "Inter Tight", Inter, system-ui, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .02em; vertical-align: 3px; }
.pend { margin-bottom: 12px; }
@media (max-width: 760px) { .pend { flex-direction: column; } .pend-tit { padding-top: 0; } }

/* Tela de acesso (login) centralizada */
.acesso { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; overflow: hidden;
  background: radial-gradient(900px 520px at 50% 38%, #2C2F34 0%, rgba(44, 47, 52, 0) 70%), #1A1C1F; color: #F8FAFC; font-family: "Inter Tight", Inter, system-ui, sans-serif; }
.acesso-fundo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; fill: #2A2D31; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%); }
.acesso-fundo rect:last-of-type { fill: #8F7A52; }
.acesso-centro { position: relative; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.acesso-marca { display: flex; align-items: center; gap: 12px; }
.acesso-selo { width: 40px; height: 40px; border-radius: 11px; background: #E2C58F; color: #1A1C1F; display: flex; align-items: center; justify-content: center;
  font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; }
.acesso-nome { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.acesso-nome span { color: #C8CBD0; font-weight: 400; }
.acesso-frase { margin: -6px 0 6px; font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; text-align: center; color: #F8FAFC; text-wrap: balance; }
.acesso-caixa { width: 100%; max-width: 420px; background: #FFFFFF; color: #1A1C1F; border-radius: 20px; padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 24px 60px -12px rgba(0, 0, 0, .6); }
.acesso-titulo { text-align: center; margin-bottom: 4px; }
.acesso-titulo h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 30px; letter-spacing: -.01em; margin: 0; }
.acesso-titulo p { margin: 6px 0 0; color: #667085; font-size: 14px; }
.acesso-erro { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; text-align: center; }
.acesso-campo { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #344054; }
.acesso-input { position: relative; display: flex; align-items: center; }
.acesso-input > svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: #98A2B3; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.acesso .acesso-input input { width: 100%; min-height: 50px; padding: 0 14px 0 42px; border: 1px solid #D0D5DD; border-radius: 12px; background: #fff; color: #101828;
  font: 400 15px "Inter Tight", Inter, system-ui, sans-serif; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s, box-shadow .15s; }
.acesso .acesso-input input#acesso-senha { padding-right: 84px; }
.acesso .acesso-input input::placeholder { color: #98A2B3; }
.acesso .acesso-input input:focus { outline: 0; border-color: #24272B; box-shadow: 0 0 0 4px rgba(36, 39, 43, .12); }
.acesso-ver { position: absolute; right: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #475467; font: 600 12.5px "Inter Tight", Inter, sans-serif; cursor: pointer; }
.acesso-ver:hover { background: #F2F4F7; } .acesso-ver:focus-visible { outline: 2px solid #24272B; outline-offset: 1px; }
.acesso-caps { font-weight: 500; font-size: 12.5px; color: #B54708; } .acesso-caps[hidden] { display: none; }
.acesso-botao { min-height: 50px; margin-top: 6px; border: 0; border-radius: 12px; background: #24272B; color: #fff; font: 600 15px "Inter Tight", Inter, sans-serif; cursor: pointer;
  transition: background .15s; }
.acesso-botao:hover { background: #33373C; } .acesso-botao:focus-visible { outline: 3px solid #E2C58F; outline-offset: 2px; }
.acesso-rodape { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: #A3A7AD; text-align: center; }
.acesso-rodape svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.acesso-rodape a { color: #E7E8EA; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { .acesso { align-items: flex-start; padding-top: 56px; } .acesso-caixa { padding: 28px 22px 24px; border-radius: 18px; } .acesso-titulo h1 { font-size: 26px; } .acesso-frase { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { .acesso * { transition: none !important; } }

/* Marca Zaran (logo em vetor) */
.acesso-marca img { display: block; height: 28px; width: auto; }
.legal-marca img { display: block; height: 20px; width: auto; }
.legal-marca:hover img { opacity: .85; }
/* Marca dentro da ferramenta: Z no alto do menu e o nome no rodapé */
.nav .nav-marca { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 0 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
.nav .nav-marca img { display: block; height: 26px; width: auto; transition: opacity .15s; }
.nav .nav-marca:hover img { opacity: .8; } .nav .nav-marca:focus-visible { outline: 2px solid #E2C58F; outline-offset: 2px; border-radius: 8px; }
.rodape-marca { display: inline-flex; align-items: center; gap: 12px; }
.rodape-marca img { display: block; height: 11px; width: auto; opacity: .75; }
@media (max-width: 760px) { .nav .nav-marca { width: auto; flex: none; padding: 0 12px 0 4px; margin: 0 4px 0 0; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .1); align-self: stretch; } .nav .nav-marca img { height: 20px; } }

/* ============================================================================================
   Visual novo (prévia, no estilo da home zaran.com.br): liga em /visual?modo=novo, desliga em /visual?modo=atual
   ============================================================================================ */
.visual-novo .capa { margin: 0 -40px; padding: 36px 40px 44px; display: flex; flex-direction: column; gap: 22px; color: #F6F3EC;
  background: radial-gradient(1100px 520px at 80% 0%, #2E3136 0%, rgba(46, 49, 54, 0) 70%), #1A1C1F; }
@media (max-width: 1100px) { .visual-novo .capa { margin: 0 -28px; padding: 32px 28px 40px; } }
@media (max-width: 760px) { .visual-novo .capa { margin: 0 -16px; padding: 22px 16px 28px; } }
.visual-novo .capa .saudacao { color: #A3A7AD; }
.visual-novo .capa .saudacao strong { color: #F6F3EC; font-size: 30px; }
.visual-novo .capa .faixa-dia { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.visual-novo .capa .fd-bloco { border-color: rgba(255, 255, 255, .08); }
.visual-novo .capa .fd-rot, .visual-novo .capa .fd-sub, .visual-novo .capa .fd-val small { color: #A3A7AD; }
.visual-novo .capa .fd-val { color: #F6F3EC; }
.visual-novo .capa .fd-ico { background: rgba(226, 197, 143, .12); color: #E2C58F; }
.visual-novo .capa .fd-carregando span { background: rgba(255, 255, 255, .08); }
.visual-novo .capa .pend { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); border-left-color: #E2C58F; margin-bottom: 0; }
.visual-novo .capa .pend-tit { color: #F6F3EC; }
.visual-novo .capa .pend li a { background: rgba(217, 119, 6, .14); color: #FDBA74; border-color: rgba(253, 186, 116, .28); }
.visual-novo .capa .pend li a:hover { background: rgba(217, 119, 6, .24); }
.visual-novo .capa .pend li.pend-aviso a { background: rgba(255, 255, 255, .06); color: #E7E8EA; border-color: rgba(255, 255, 255, .14); }
.visual-novo .capa .pend li.pend-aviso a:hover { background: rgba(255, 255, 255, .12); }
.visual-novo .capa .pend-ok { color: #A3A7AD; }
.visual-novo .capa .aviso { background: rgba(226, 197, 143, .08); border-color: rgba(226, 197, 143, .28); color: #E7DCC4; }
.visual-novo .capa .aviso strong { color: #E2C58F; }
.visual-novo .capa .card { border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 70px -28px rgba(0, 0, 0, .75); }
.visual-novo .capa .card, .visual-novo .capa .card .sec-tit, .visual-novo .capa .card .val { color: var(--text); }
.visual-novo .capa .card .val.lucro { color: var(--accent-lucro, #0F766E); }
.visual-novo .conteudo:has(> .capa) { padding-top: 0; }
.visual-novo .conteudo:has(> .capa) > .trilha { display: none; }
.visual-novo .capa .periodos { background: #F1EEE7; }

/* o resto da tela: cartões mais leves, títulos em serifa, botões arredondados */
.visual-novo .card { border-radius: 18px; border-color: #E2DCD0; box-shadow: 0 1px 2px rgba(26, 28, 31, .04); }
.visual-novo .card.kpi .val { font-family: var(--numeros); font-weight: 500; letter-spacing: -.02em; }
.visual-novo .sec-tit, .visual-novo .cab-card h2, .visual-novo .cab-estados h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
.visual-novo .topo h1:not(.sr) { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 34px; letter-spacing: -.02em; }
.visual-novo .btn { border-radius: 12px; }
.visual-novo .btn.prim { background: #24272B; } .visual-novo .btn.prim:hover { background: #3A3E44; }
.visual-novo .aviso { border-radius: 14px; }
.visual-novo .rodape-legal { border-top-color: #E2DCD0; }
/* visual novo: saudação numa linha e a faixa do dia embaixo, na largura toda, alinhada com os cartões */
.visual-novo .capa .topo-painel { flex-direction: column; align-items: stretch; gap: 20px; }
.visual-novo .capa .topo-painel .faixa-dia { flex: 1 1 auto; margin-left: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.visual-novo .capa .topo-painel .fd-bloco { border-right: 1px solid rgba(255, 255, 255, .08); }
.visual-novo .capa .topo-painel .fd-bloco:nth-child(6) { border-right: 0; }
@media (max-width: 1100px) { .visual-novo .capa .topo-painel .faixa-dia { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visual-novo .capa .topo-painel .fd-bloco:nth-child(3) { border-right: 0; } .visual-novo .capa .topo-painel .fd-bloco:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .08); } }
@media (max-width: 760px) { .visual-novo .capa .topo-painel .faixa-dia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-novo .capa .topo-painel .fd-bloco { border-bottom: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08); }
  .visual-novo .capa .topo-painel .fd-bloco:nth-child(2n) { border-right: 0; } .visual-novo .capa .topo-painel .fd-bloco:nth-child(n+5) { border-bottom: 0; } }
@media (max-width: 760px) { .visual-novo .nav { border-bottom-color: #1A1C1F; } }
/* visual novo, telas largas: saudação à esquerda e a faixa do dia ao lado, ocupando o resto da linha */
@media (min-width: 1240px) {
  .visual-novo .capa .topo-painel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 32px; }
  .visual-novo .capa .topo-painel .saudacao strong { white-space: nowrap; }
  .visual-novo .capa .topo-painel .fd-bloco { padding: 12px 14px; gap: 10px; }
}
@media (min-width: 1240px) and (max-width: 1599px) {
  .visual-novo .capa .topo-painel .fd-ico { display: none; }
  .visual-novo .capa .topo-painel .saudacao strong { font-size: 27px; }
}
/* Logo da empresa: pé do menu, troca de CNPJ e Dados da empresa */
.nav .conta-item .tile.tile-logo, .tile-mini.tile-logo { padding: 0; overflow: hidden; background: #fff; }
.tile-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logo-emp { display: flex; align-items: center; gap: 22px; }
.logo-emp-img { flex: none; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: #F1ECE2; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.logo-emp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-emp-img span { font-family: var(--titulo); font-size: 34px; color: #B08D4C; }
.logo-emp-txt { min-width: 0; } .logo-emp-txt .muted { margin: 4px 0 12px; font-size: 13.5px; }
.logo-emp-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.logo-escolher { position: relative; cursor: pointer; }
.logo-escolher input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.logo-escolher:focus-within { outline: 2px solid #24272B; outline-offset: 2px; }

/* ============================================================================================
   Visual novo: fundo grafite em toda a parte interna (como o topo do Painel).
   O que fica direto sobre o fundo usa texto claro; dentro de cartões, campos, gavetas e avisos volta o texto escuro.
   ============================================================================================ */
.visual-novo .app, .visual-novo .conteudo { background: #1A1C1F; }
.visual-novo .conteudo {
  --text: #F1F2F3; --muted: #A3A7AD; --muted-2: #8C9096; --label: #C8CBD0; --border: rgba(255, 255, 255, .12);
  --row-line: rgba(255, 255, 255, .08); --surface-sunk: rgba(255, 255, 255, .04); --nav-active: rgba(255, 255, 255, .08);
  --accent-text: #E2C58F; --accent: #E2C58F; --accent-soft: rgba(226, 197, 143, .12); --border-strong: rgba(255, 255, 255, .2);
  color: var(--text);
  background: radial-gradient(1100px 520px at 80% 0%, #2E3136 0%, rgba(46, 49, 54, 0) 70%) no-repeat, #1A1C1F;
}
.visual-novo .capa { background: transparent; }
.visual-novo .conteudo :is(.card, .barra-nota, .pop, .per-pop, .erro, .ok-msg, .toast, .toast-copia, dialog, .tabela-wrap, input, select, textarea, .btn.sec, .btn.link) {
  --text: #24272B; --muted: #6B6F7B; --muted-2: #98A2B3; --label: #3D4046; --border: #E2DCD0; --row-line: #EFE9DF;
  --surface-sunk: #FBF9F5; --nav-active: #F1ECE2; --accent: #3A3E44; --accent-text: #3A3E44; --accent-soft: #EFEFF0; --border-strong: #DCD4C6;
  color: var(--text);
}
.visual-novo .conteudo .card { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -30px rgba(0, 0, 0, .7); }
.visual-novo .conteudo .trilha strong, .visual-novo .conteudo .trilha a { color: #F1F2F3; }
.visual-novo .conteudo .btn.prim { background: #E2C58F; color: #1A1C1F; border-color: #E2C58F; }
.visual-novo .conteudo .btn.prim:hover { background: #EBD3A6; }
.visual-novo .conteudo .card .btn.prim, .visual-novo .conteudo dialog .btn.prim, .visual-novo .conteudo .barra-nota .btn.prim { background: #24272B; color: #fff; border-color: #24272B; }
.visual-novo .conteudo .aviso { background: rgba(226, 197, 143, .08); border-color: rgba(226, 197, 143, .28); color: #E7DCC4; }
.visual-novo .conteudo .aviso strong, .visual-novo .conteudo .aviso a { color: #E2C58F; }
.visual-novo .conteudo .pend { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); border-left-color: #E2C58F; }
.visual-novo .conteudo .pend li a { background: rgba(217, 119, 6, .14); color: #FDBA74; border-color: rgba(253, 186, 116, .28); }
.visual-novo .conteudo .pend li.pend-aviso a { background: rgba(255, 255, 255, .06); color: #E7E8EA; border-color: rgba(255, 255, 255, .14); }
.visual-novo .conteudo .ok-msg { background: #ECFDF3; }
/* rodapé: mais abaixo, separado do conteúdo */
.visual-novo .rodape-legal { margin-top: auto; padding-top: 40px; padding-bottom: 8px; border-top-color: rgba(255, 255, 255, .08); color: #8C9096; }
.visual-novo .conteudo > .rodape-legal { margin-top: auto; }
.visual-novo .conteudo > :has(+ .rodape-legal) { margin-bottom: 48px; }
.visual-novo .conteudo a.card { color: var(--text) !important; }
.visual-novo .rodape-legal a { color: #C8CBD0; } .visual-novo .rodape-legal a:hover { color: #fff; }
.visual-novo .rodape-marca img { content: url("/static/zaran-logo-negativo.svg?v=2"); opacity: .7; }
.visual-novo .conteudo { padding-bottom: 20px; }
.visual-novo .capa { margin: 0; padding: 0; }

/* Painel: Onde você vende (cartão escuro, mapa em dourado) */
.est-escuro { background: #24272B; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 26px 28px 18px; display: flex; flex-direction: column; gap: 14px; color: #F1F2F3; }
.est-escuro .estados-corpo, .est-escuro .estados-corpo:has(.ranking-cidades) { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.est-escuro .est-mapa { display: flex; flex-direction: column; gap: 12px; }
.est-escuro .sec-tit { color: #F6F3EC; margin: 0; }
.est-escuro .muted, .est-escuro .r-pct, .est-escuro .legenda-mapa { color: #A3A7AD; }
.est-escuro .mapa-br { max-height: 330px; }
.est-escuro .mapa-br path { stroke: #24272B; stroke-width: 1.2; }
.est-escuro .mapa-br path[fill="#1B2430"] { fill: #2E3136; } .est-escuro .mapa-br path[fill="#22344F"] { fill: #6B5D44; }
.est-escuro .mapa-br path[fill="#2A4A7A"] { fill: #9C8150; } .est-escuro .mapa-br path[fill="#3466B5"] { fill: #C7A56A; } .est-escuro .mapa-br path[fill="#4C8DFF"] { fill: #E2C58F; }
.est-escuro .mapa-br path.uf-sel { stroke: #F6F3EC; stroke-width: 2.5; }
.est-escuro .legenda-mapa i:nth-child(2) { background: #6B5D44 !important; } .est-escuro .legenda-mapa i:nth-child(3) { background: #9C8150 !important; }
.est-escuro .legenda-mapa i:nth-child(4) { background: #C7A56A !important; } .est-escuro .legenda-mapa i:nth-child(5) { background: #E2C58F !important; }
.est-escuro .rc-cab { display: flex; justify-content: space-between; align-items: center; min-height: 28px; padding-bottom: 6px; margin-top: 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.est-escuro .rc-tit { font-size: 13px; font-weight: 600; color: #F1F2F3; }
.est-escuro .r-linha { border-bottom-color: rgba(255, 255, 255, .07); padding: 9px 4px; }
.est-escuro .r-uf, .est-escuro .rc-linha .r-uf { color: #A3A7AD; font-weight: 600; font-size: 11px; }
.est-escuro .r-nome, .est-escuro .r-linha strong { color: #F1F2F3; }
.est-escuro .barra-h { background: rgba(255, 255, 255, .08) !important; }
.est-escuro .barra-h span { background: #E2C58F; }
.est-escuro .r-linha.uf-sel { background: rgba(226, 197, 143, .1); }
.est-escuro .r-linha.outros .r-nome, .est-escuro .r-linha.outros strong { color: #A3A7AD; }
.est-escuro #rc-limpar { color: #E2C58F; }
.est-nota { font-size: 10.5px; color: #6B6F75; }
@media (max-width: 1200px) { .est-escuro .estados-corpo, .est-escuro .estados-corpo:has(.ranking-cidades) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .est-escuro .est-mapa { grid-column: 1 / -1; } .est-escuro .mapa-br { max-height: 280px; } }
@media (max-width: 760px) { .est-escuro { padding: 20px 18px 14px; } .est-escuro .estados-corpo, .est-escuro .estados-corpo:has(.ranking-cidades) { grid-template-columns: 1fr; gap: 20px; } }

/* Painel: Seu estoque, do parado ao lucro numa linha */
.est-linha { padding: 24px 28px; }
.est-linha .el-cab { margin-bottom: 18px; } .est-linha .el-cab .muted { font-size: 12.5px; }
.el-passos { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.el-p { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.el-p .rot { font-size: 12.5px; color: var(--muted); }
.el-p .val { font-family: var(--numeros); font-weight: 500; font-size: 32px; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.el-p .val.lucro { color: #0F766E !important; }
.el-barra { display: flex; gap: 3px; height: 8px; margin: 6px 0 2px; }
.el-barra i { border-radius: 3px; background: #24272B; min-width: 3px; } .el-barra i.full { background: #C7A56A; }
.el-seta { color: #C7A56A; font-size: 22px; }
.el-nota { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--row-line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 1100px) { .el-passos { grid-template-columns: 1fr 1fr; gap: 22px 28px; } .el-seta { display: none; } }
@media (max-width: 560px) { .el-passos { grid-template-columns: 1fr; } .el-p .val { font-size: 28px; } }

/* Minha conta › Aparência: escuro (padrão) ou claro */
.aparencia { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 10px 10px; }
.ap-op { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 7px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font: 600 12.5px "Inter Tight", sans-serif; color: #3D4046; cursor: pointer; }
.ap-op:hover { border-color: #B9B4AA; }
.ap-op.ativo { border-color: #24272B; box-shadow: inset 0 0 0 1px #24272B; color: #24272B; }
.ap-op:focus-visible { outline: 2px solid #B08D4C; outline-offset: 2px; }
.ap-amostra { width: 100%; height: 34px; border-radius: 8px; display: block; border: 1px solid rgba(0, 0, 0, .08); }
.ap-amostra.escuro { background: linear-gradient(90deg, #24272B 0 22%, #1A1C1F 22%), #1A1C1F; box-shadow: inset 34px 0 0 #24272B, inset -10px -10px 0 0 #1A1C1F; background-image: linear-gradient(90deg, #24272B 0 22%, transparent 22%), linear-gradient(#fff, #fff); background-size: 100% 100%, 46% 38%; background-position: 0 0, 70% 60%; background-repeat: no-repeat; background-color: #1A1C1F; }
.ap-amostra.claro { background-image: linear-gradient(90deg, #24272B 0 22%, transparent 22%), linear-gradient(#fff, #fff); background-size: 100% 100%, 46% 38%; background-position: 0 0, 70% 60%; background-repeat: no-repeat; background-color: #F6F3EC; }
