/*
 * Rottads · visual v2 (02/10/2026): sistema da logo — teal profundo, esmeralda e menta.
 * Camada FINAL e somente de apresentação: não altera eventos, rotas, dados, links ou envios.
 * Carregada depois de todas as outras folhas; para voltar ao visual anterior basta tirar
 * o <link> deste arquivo do index.html.
 */

/* ---------------------------------------------------------------- tokens */
body.rottads-interface,
body.rottads-interface:has(#inicio[hidden]) {
  --bg: #f3f7f5;
  --ink: #10201c; --ink-2: #2d4039; --ink-3: #53635d;
  --line: #dde8e3; --line-2: #e8f0ec;
  --verde: #02a868; --verde-fundo: #013735;
  --azul: #0b7a57; --azul-alto: #016b43; --ok: #0b7a57;
  --v2-ac: #0b7a57; --v2-acs: #e6f4ee; --v2-teal: #013735; --v2-mint: #02f8a7;
  --v2-grad: linear-gradient(135deg, #016b43, #028552);
  --v2-sombra: 0 20px 34px -22px rgba(1, 55, 53, .45);
  --r-lg: 18px;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
}

/* Títulos com a fonte da marca */
.rottads-interface #tituloPagina,
.rottads-interface .pagina-cabecalho h1,
.rottads-interface main h1,
.rottads-interface main h2,
.rottads-interface .cartao-titulo,
.rottads-interface .sidebar-nome {
  font-family: 'Outfit', 'Nunito Sans', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- menu lateral (claro) */
html body.rottads-interface #sidebar,
html body.rottads-interface:has(#inicio[hidden]) #sidebar {
  background: #fff !important;
  color: var(--ink) !important;
  border-right: 1px solid var(--line) !important;
}
html body.rottads-interface #sidebar .marca .sidebar-nome { color: var(--ink) !important; font-weight: 800; letter-spacing: -.03em; }
html body.rottads-interface #sidebar .marca .sidebar-nome b { color: #02a06a; font-weight: 800; }
html body.rottads-interface #alternarSidebar { color: var(--ink-3) !important; }

html body.rottads-interface #nav button,
html body.rottads-interface #nav summary {
  color: var(--ink) !important;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 12px;
  min-height: 46px;
  transition: background .18s ease, color .18s ease;
}
html body.rottads-interface #nav button svg,
html body.rottads-interface #nav summary svg {
  background: transparent !important;
  border: 0 !important;
  color: #33433d !important;
  flex: 0 0 24px; width: 24px; height: 24px; padding: 1px;
  transition: transform .2s ease, color .18s ease;
}
html body.rottads-interface #nav button:hover:not([aria-current="page"]),
html body.rottads-interface #nav summary:hover {
  background: var(--v2-acs) !important;
  color: var(--ink) !important;
}
html body.rottads-interface #nav button:hover svg,
html body.rottads-interface #nav summary:hover svg { color: var(--v2-ac) !important; transform: translateX(2px); }

html body.rottads-interface #nav button[aria-current="page"],
html body.rottads-interface:has(#inicio[hidden]) #nav button[aria-current="page"],
html body.rottads-interface #nav button[data-tab="inicio"][aria-current="page"] {
  background: var(--v2-grad) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 18px -8px #01724a !important;
  position: relative;
}
html body.rottads-interface #nav button[aria-current="page"] svg,
html body.rottads-interface:has(#inicio[hidden]) #nav button[aria-current="page"] svg,
html body.rottads-interface #nav button[data-tab="inicio"][aria-current="page"] svg { color: #fff !important; }
/* barra menta na borda do menu, como no desenho */
html body.rottads-interface #nav button[aria-current="page"]::before {
  content: ''; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 5px;
  border-radius: 0 5px 5px 0; background: #01e994; box-shadow: 0 0 12px #02f8a7;
  animation: v2-barra .45s cubic-bezier(.2, .75, .2, 1) backwards .1s;
}
html body.rottads-interface #nav button.pai-atual { background: var(--v2-acs) !important; color: var(--ink) !important; box-shadow: inset 3px 0 0 var(--v2-ac) !important; }
html body.rottads-interface #nav .nav-grupo-rotulo { color: #55665f !important; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; padding: 18px 12px 6px; }
html body.rottads-interface #nav button .badge.calmo { background: var(--v2-acs); color: var(--v2-ac); }
html body.rottads-interface #nav button.nav-lancar,
html body.rottads-interface:has(#inicio[hidden]) #nav button.nav-lancar {
  background: var(--v2-acs) !important; border: 1px solid #b9dccd !important; color: var(--v2-ac) !important; justify-content: flex-start;
}
html body.rottads-interface #operacaoSeletor label { color: var(--ink-3) !important; }
html body.rottads-interface #selOperacao { background: #f3f7f5 !important; border-color: var(--line) !important; color: var(--ink) !important; }
@keyframes v2-barra { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------------------------------------------------------------- topo */
html body.rottads-interface #topo,
html body.rottads-interface:has(#inicio[hidden]) #topo {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--line) !important;
}
html body.rottads-interface #topo .busca input,
html body.rottads-interface:has(#inicio[hidden]) #topo .busca input {
  background: var(--bg) !important; border: 1px solid transparent !important; border-radius: 23px !important; min-height: 46px;
  transition: border-color .18s ease, background .18s ease;
}
html body.rottads-interface #topo .busca input:hover,
html body.rottads-interface #topo .busca input:focus { background: #fff !important; border-color: var(--v2-ac) !important; }
html body.rottads-interface .avatar-topo { background: linear-gradient(135deg, #016b43, #02a868) !important; color: #fff !important; }

/* ---------------------------------------------------------------- cabeçalho da página */
html body.rottads-interface .pagina-cabecalho h1,
html body.rottads-interface #tituloPagina { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
html body.rottads-interface .pagina-sub { color: var(--ink-3); }
html body.rottads-interface .pagina-icone { background: var(--v2-acs) !important; color: var(--v2-ac) !important; border-radius: 14px; }
html body.rottads-interface:has(#inicio[hidden]) .pagina-cabecalho::before { background: var(--v2-acs); color: var(--v2-ac); border-color: #cfe6dc; }

/* ---------------------------------------------------------------- menu: tamanho e barra */
html body.rottads-interface #nav button,
html body.rottads-interface #nav summary,
html body.rottads-interface.menu-expandido #nav button,
html body.rottads-interface.menu-expandido #nav summary {
  font-size: 15px !important; min-height: 46px !important; gap: 14px !important; padding: 8px 14px !important;
}
html body.rottads-interface #nav { overflow-x: visible; }
html body.rottads-interface #sidebar { overflow-x: clip; }
html body.rottads-interface #nav button[aria-current="page"]::before { left: -14px; }

/* ---------------------------------------------------------------- botões */
html body.rottads-interface main .act,
html body.rottads-interface button.act {
  border-radius: 12px; font-family: 'Nunito Sans', system-ui, sans-serif; font-weight: 700;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
html body.rottads-interface main .act:hover:not(:disabled) { transform: translateY(-1px); border-color: #b7d6c9; background: #f6fbf8; }
html body.rottads-interface main .act:active:not(:disabled) { transform: scale(.97); }
html body.rottads-interface main .act.primary,
html body.rottads-interface button.act.primary {
  background: var(--v2-grad); border-color: #016b43; color: #fff; box-shadow: 0 10px 20px -12px #01724a;
}
html body.rottads-interface main .act.primary:hover:not(:disabled),
html body.rottads-interface button.act.primary:hover:not(:disabled) { background: var(--v2-grad); border-color: #016b43; filter: brightness(1.07); }
html body.rottads-interface main .act.primary:disabled { background: #9dbdb0; border-color: #9dbdb0; box-shadow: none; }

/* ---------------------------------------------------------------- selos */
html body.rottads-interface .pill,
html body.rottads-interface main .pill { border-radius: 14px; font-weight: 800; letter-spacing: 0; }
html body.rottads-interface .pill.ok { background: #e1f5ec; color: #0b7a57; }
html body.rottads-interface .pill.mid { background: #fff0d2; color: #8a5200; }
html body.rottads-interface .pill.bad { background: #fde7e4; color: #b42318; }
html body.rottads-interface .pill.calm { background: #eaf1ee; color: #53635d; }
html body.rottads-interface .pill.brand { background: var(--v2-acs); color: var(--v2-ac); }

/* ---------------------------------------------------------------- tabelas */
html body.rottads-interface main table th,
html body.rottads-interface table th {
  background: #f3f7f5; color: #53635d; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
html body.rottads-interface main table td { border-bottom: 1px solid var(--line); }
html body.rottads-interface main table tbody tr { transition: background .15s ease; }
html body.rottads-interface main table tbody tr:hover td { background: #f4faf7; }
html body.rottads-interface main table tbody tr { animation: v2-linha .55s ease backwards; }
html body.rottads-interface main table tbody tr:nth-child(2) { animation-delay: .05s; }
html body.rottads-interface main table tbody tr:nth-child(3) { animation-delay: .1s; }
html body.rottads-interface main table tbody tr:nth-child(4) { animation-delay: .15s; }
html body.rottads-interface main table tbody tr:nth-child(5) { animation-delay: .2s; }
html body.rottads-interface main table tbody tr:nth-child(6) { animation-delay: .25s; }
html body.rottads-interface main table tbody tr:nth-child(n+7) { animation-delay: .3s; }
@keyframes v2-linha { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- campos */
html body.rottads-interface main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html body.rottads-interface main select,
html body.rottads-interface main textarea {
  border-radius: 12px; border-color: #c6d6cf; font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html body.rottads-interface main input:hover:not(:disabled),
html body.rottads-interface main select:hover:not(:disabled),
html body.rottads-interface main textarea:hover:not(:disabled) { border-color: var(--v2-ac); }
html body.rottads-interface main input:focus-visible,
html body.rottads-interface main select:focus-visible,
html body.rottads-interface main textarea:focus-visible { outline: none; border-color: var(--v2-ac); box-shadow: 0 0 0 3px rgba(11, 122, 87, .18); }
html body.rottads-interface main input[type="checkbox"],
html body.rottads-interface main input[type="radio"] { accent-color: var(--v2-ac); }

/* ---------------------------------------------------------------- cartões */
html body.rottads-interface main .cartao,
html body.rottads-interface main .card {
  border-radius: 18px; border-color: var(--line); background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
html body.rottads-interface main .cartao:hover { box-shadow: var(--v2-sombra); border-color: #cfe3d9; }
html body.rottads-interface main a, html body.rottads-interface main .link { text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- entrada das telas */
@keyframes v2-sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html body.rottads-interface .pagina-cabecalho { animation: v2-sobe .6s cubic-bezier(.2, .75, .2, 1) backwards; }
html body.rottads-interface main > section:not([hidden]) > *:not(script):not(style) { animation: v2-sobe .65s cubic-bezier(.2, .75, .2, 1) backwards; }
html body.rottads-interface main > section:not([hidden]) > *:nth-child(2) { animation-delay: .06s; }
html body.rottads-interface main > section:not([hidden]) > *:nth-child(3) { animation-delay: .12s; }
html body.rottads-interface main > section:not([hidden]) > *:nth-child(4) { animation-delay: .18s; }
html body.rottads-interface main > section:not([hidden]) > *:nth-child(n+5) { animation-delay: .24s; }

/* quem pediu menos movimento no sistema: só desvanece, sem deslocar nada */
@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html body.rottads-interface .pagina-cabecalho,
  html body.rottads-interface main > section:not([hidden]) > *:not(script):not(style),
  html body.rottads-interface main table tbody tr { animation: v2-fade .4s ease backwards !important; }
  html body.rottads-interface #nav button[aria-current="page"]::before { animation: none; }
}

/* ---------------------------------------------------------------- menu RECOLHIDO (só ícones)
   O tamanho de fonte de 15px acima valia para todos os estados e desfazia o `font-size: 0` do
   menu recolhido: os textos reapareciam cortados dentro dos 62px. Recolhido, volta a ser só ícone. */
@media (min-width: 901px) {
  html body.rottads-interface:not(.menu-expandido) #nav button,
  html body.rottads-interface:not(.menu-expandido) #nav summary {
    font-size: 0 !important; gap: 0 !important; padding: 8px 0 !important; justify-content: center !important;
    min-height: 44px !important; letter-spacing: 0 !important;
  }
  html body.rottads-interface:not(.menu-expandido) #nav button svg,
  html body.rottads-interface:not(.menu-expandido) #nav summary svg { flex: 0 0 24px; margin: 0; }
  html body.rottads-interface:not(.menu-expandido) #nav .nav-grupo-rotulo { display: none !important; }
  html body.rottads-interface:not(.menu-expandido) #nav button[aria-current="page"] { width: 44px; margin-left: auto; margin-right: auto; }
  html body.rottads-interface:not(.menu-expandido) #nav button[aria-current="page"]::before { left: -9px; }
}

/* Aviso de privacidade (LGPD) no topo da tela da Meta. */
.aviso-lgpd-meta { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #cfe6dc; border-left: 4px solid var(--v2-ac, #02a06a); border-radius: 12px; background: #f4faf7; color: var(--ink); }
.aviso-lgpd-meta strong { display: block; margin-bottom: 4px; font-size: 14px; }
.aviso-lgpd-meta p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2, #3b4a44); }

/* ---------------------------------------------------------------- Públicos salvos */
#roasPublicos .publicos-topo { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
#roasPublicos .publicos-topo p { margin: 0; max-width: 62ch; color: var(--ink-2, #3b4a44); font-size: 14px; line-height: 1.55; }
#roasPublicos .publicos-importar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line, #dfe8e3); border-radius: 14px; background: #fff; }
#roasPublicos .publicos-importar label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; flex: 1; min-width: 220px; }
#roasPublicos .publicos-grade { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
#roasPublicos .publico-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line, #dfe8e3); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -18px rgba(1, 55, 53, .35); transition: transform .2s ease, box-shadow .2s ease; }
#roasPublicos .publico-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(1, 55, 53, .45); }
#roasPublicos .publico-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#roasPublicos .publico-card h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
#roasPublicos .selo-publico { padding: 2px 9px; border-radius: 999px; background: var(--v2-acs, #e3f4ec); color: var(--v2-ac, #02a06a); font-size: 11.5px; font-weight: 800; }
#roasPublicos .publico-resumo { margin: 0; color: var(--ink-2, #3b4a44); font-size: 13.5px; line-height: 1.5; }
#roasPublicos .publico-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
#roasPublicos .publico-envio { padding: 12px; border-radius: 12px; background: #f4faf7; display: grid; gap: 8px; }
#roasPublicos .publico-envio label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
#roasPublicos .codigo-publico { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#roasPublicos .codigo-publico code, #roasPublicos .publicos-envios code { padding: 4px 8px; border-radius: 8px; background: #fff; border: 1px solid #cfe6dc; font-size: 13px; word-break: break-all; }
#roasPublicos .publicos-vazio { padding: 28px; border: 1px dashed #cfe6dc; border-radius: 16px; background: #f9fcfa; text-align: center; }
#roasPublicos .publicos-vazio p { margin: 6px 0 0; color: var(--ink-2, #3b4a44); font-size: 14px; }
#roasPublicos .publicos-sub { margin: 26px 0 10px; font-size: 15px; }
#roasPublicos .publicos-envios { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#roasPublicos .publicos-envios li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line, #dfe8e3); border-radius: 12px; background: #fff; font-size: 13px; }
#roasPublicos .publicos-envios li > span { flex: 1; min-width: 200px; }
.publicos-salvos-bloco .linha-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.publicos-salvos-bloco select { min-width: 220px; }

#roasPublicos .publico-form { display: grid; gap: 14px; margin: 0 0 20px; padding: 20px; border: 1px solid #cfe6dc; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px -20px rgba(1, 55, 53, .4); }
#roasPublicos .publico-form h3 { margin: 0; font-size: 17px; font-weight: 800; }
#roasPublicos .publico-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
#roasPublicos .publico-form label small { font-weight: 500; color: var(--ink-3, #6b7a74); }
#roasPublicos .publico-form .pf-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#roasPublicos .publico-form .pf-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
#roasPublicos .publico-form .pf-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { #roasPublicos .publico-form .pf-trio { grid-template-columns: 1fr; } }
