/* V43 — varredura final do tema lilás e estados interativos */
:root{
  --portal-green:#781783!important;
  --portal-green-dark:#51085e!important;
  --portal-mint:#f3e5f6!important;
  --portal-line:#8e2b9d!important
}

/* Menu público: ativo, hover e navegação por teclado */
html body.portal-novo .portal-header nav a:hover,
html body.portal-novo .portal-header nav a:focus-visible,
html body.portal-novo .portal-header nav a.ativo{
  background:#9a39a8!important;
  color:#fff!important;
  text-decoration:none!important;
  outline-color:#e7c9ec!important
}
html body.portal-novo .portal-menu-toggle:hover,
html body.portal-novo .portal-menu-toggle:focus-visible{
  background:#9a39a8!important;
  color:#fff!important
}

/* Crédito discreto sob a marca da página inicial */
html body.portal-novo .portal-header .portal-brand-completa{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  color:#fff!important
}
html body.portal-novo .portal-header .portal-brand-completa img{
  height:78px!important;
  object-fit:contain!important
}
html body.portal-novo .portal-brand-credit{
  display:block!important;
  width:100%!important;
  margin-top:-4px!important;
  color:#f5def8!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.1!important;
  letter-spacing:.015em!important;
  text-align:center!important;
  white-space:nowrap!important
}

/* Página inicial e legislação pública */
html body.portal-novo .portal-consulta button,
html body.portal-novo .portal-consulta-compacta button,
html body.portal-novo .lei-acoes a{
  background:linear-gradient(135deg,#641071,#8e2b9d)!important;
  border-color:#641071!important;
  color:#fff!important
}
html body.portal-novo .portal-consulta button:hover,
html body.portal-novo .portal-consulta-compacta button:hover,
html body.portal-novo .lei-acoes a:hover{
  background:linear-gradient(135deg,#7b1887,#a444b2)!important;
  color:#fff!important
}
html body.portal-novo .portal-consulta>a,
html body.portal-novo .portal-section .service-grid strong,
html body.portal-novo .portal-section .service-grid i,
html body.portal-novo .lei-card h2{color:#540a5f!important}
html body.portal-novo .portal-section .service-grid>a,
html body.portal-novo .lei-card{
  border-color:#dec5e3!important;
  box-shadow:0 6px 20px rgba(79,9,90,.07)!important
}
html body.portal-novo .portal-section .service-grid>a:hover{
  border-color:#a64cb3!important;
  box-shadow:0 12px 25px rgba(79,9,90,.12)!important
}
html body.portal-novo .portal-section .service-grid b,
html body.portal-novo .portal-about .about-benefits span,
html body.portal-novo .lei-tipo{
  background:#eedcf2!important;
  border-color:#d7b6dd!important;
  color:#681074!important
}
html body.portal-novo .portal-about .about-benefits svg{stroke:#681074!important}
html body.portal-novo .portal-about .about-direitos{
  background:linear-gradient(135deg,#4d0758 0%,#70127c 62%,#9228a0 100%)!important
}
html body.portal-novo .portal-hero-aprovado .portal-hero-info{
  background-image:linear-gradient(90deg,rgba(77,7,88,.18),rgba(112,18,124,.09),transparent)!important
}
html body.portal-novo .portal-hero-aprovado .hero-seta{
  color:#681074!important;
  border-color:rgba(142,43,157,.30)!important;
  box-shadow:0 7px 20px rgba(79,9,90,.25)!important
}

/* Cabeçalhos, menus e links das páginas internas */
html body.cip-home-v2 .cip-menu-v2 a:hover,
html body.cip-home-v2 .cip-menu-v2 a:focus-visible,
html body.cip-home-v2 .cip-menu-v2 a.ativo,
html body.login-cip .login-nav-v3 a:hover,
html body.login-cip .login-nav-v3 a:focus-visible,
html body.restrito-layout .menu a:hover,
html body.restrito-layout .menu a:focus-visible,
html body .topo.topo-restrito-novo .menu a:hover,
html body .topo.topo-restrito-novo .menu a:focus-visible{
  background:#9a39a8!important;
  border-color:#a64cb3!important;
  color:#fff!important;
  text-decoration:none!important
}

/* Classes antigas com nomes verdes, agora integradas ao tema lilás */
html body .botao-info.verde,
html body .servico-card.verde,
html body .atalho-card.verde,
html body .nav-pill.verde,
html body .tag-clean,
html body .tag-decreto{
  background:#eedcf2!important;
  border-color:#d7b6dd!important;
  color:#5d0d68!important
}
html body .botao-info.verde span,
html body .servico-card.verde span,
html body .atalho-card.verde .icone-bola{
  background:#f7edf9!important;
  color:#681074!important
}
html body .botao-info.verde::after{background:#a64cb3!important}

/* Botões e estados de confirmação — sem verde residual */
html body .btn-sucesso,
html body .btn-whatsapp,
html body a.btn-sucesso,
html body a.btn-whatsapp{
  background:linear-gradient(135deg,#641071,#8e2b9d)!important;
  border-color:#641071!important;
  color:#fff!important
}
html body .btn-sucesso:hover,
html body .btn-whatsapp:hover,
html body a.btn-sucesso:hover,
html body a.btn-whatsapp:hover{
  background:linear-gradient(135deg,#7b1887,#a444b2)!important;
  border-color:#7b1887!important;
  color:#fff!important
}
html body button,
html body .btn,
html body .btn-roxo,
html body .btn-pesquisar-v2,
html body .btn-exportar-pdf,
html body .login-form-v3 button{
  box-shadow:0 7px 17px rgba(77,9,87,.18)!important
}
html body .btn-danger,
html body .botao-excluir,
html body .acoes-auditoria .btn-danger{
  box-shadow:0 7px 17px rgba(159,30,45,.18)!important
}
html body .alerta.sucesso,
html body .status-validacao.ok,
html body .status-arquivo.ok{
  background:#f3e4f6!important;
  border-color:#d7b6dd!important;
  color:#4f0b59!important
}
html body input[type=checkbox],
html body input[type=radio]{accent-color:#8e2b9d!important}

/* Administração, formulários e tabelas */
html body.restrito-layout .sub-menu-restrito a:hover,
html body.restrito-layout .sub-menu-restrito a:focus-visible,
html body.restrito-layout .sub-menu-restrito a.menu-carteiras{
  background:#781783!important;
  border-color:#781783!important;
  color:#fff!important
}
html body.restrito-layout .card-form h2,
html body.restrito-layout .card-form h3,
html body.restrito-layout .admin-stat strong,
html body.restrito-layout .status-tratamento,
html body .topo.topo-restrito-novo+main .card-form h2,
html body .topo.topo-restrito-novo+main .card-form h3{color:#681074!important}
html body.restrito-layout .tabela th,
html body.restrito-layout table th,
html body .topo.topo-restrito-novo+main .tabela th{
  background:#681074!important;
  border-color:#52105c!important;
  color:#fff!important
}
html body.restrito-layout input:focus,
html body.restrito-layout select:focus,
html body.restrito-layout textarea:focus,
html body .topo.topo-restrito-novo+main input:focus,
html body .topo.topo-restrito-novo+main select:focus,
html body .topo.topo-restrito-novo+main textarea:focus{
  border-color:#8e2b9d!important;
  box-shadow:0 0 0 3px rgba(142,43,157,.13)!important;
  outline:0!important
}
html body.restrito-layout .atalho-lixeira-fixo{background:#781783!important;color:#fff!important}
html body.restrito-layout .atalho-lixeira-fixo b{color:#781783!important}
html body.restrito-layout .card-form,
html body.restrito-layout .admin-stat,
html body.restrito-layout .painel-master,
html body.restrito-layout .foto-tratamento{
  border-color:#dec5e3!important;
  box-shadow:0 8px 24px rgba(79,9,90,.08)!important
}
html body.cip-home-v2.interna-v2 .pesquisa-v2,
html body.cip-home-v2.interna-v2 .consulta-tabs-box,
html body.cip-home-v2.interna-v2 .validacao-card{
  box-shadow:0 10px 28px rgba(79,9,90,.08)!important
}

/* Área profissional: ilustração e contornos coerentes com o tema */
html body.login-cip .login-ilustra-img-v4 img{
  filter:drop-shadow(0 18px 30px rgba(79,9,90,.14))!important
}
html body.login-cip .login-card-v3{
  box-shadow:0 10px 28px rgba(79,9,90,.09)!important
}
html body.login-cip .login-ilustra-v3{
  border-color:#dec5e3!important;
  background:linear-gradient(145deg,#fcf8fd,#f3e5f6)!important
}

/* Rodapé da Área Profissional: marca branca em faixa lilás */
html body.login-cip .login-footer-institucional{
  background:linear-gradient(110deg,#4d0758,#70127c 60%,#9228a0)!important;
  border-top-color:#a64cb3!important;
  box-shadow:0 -4px 16px rgba(70,6,80,.16)!important
}
html body.login-cip .login-footer-institucional img{
  filter:brightness(0) invert(1)!important;
  opacity:1!important
}

/* Rodapés institucionais */
html body .portal-footer-claro,
html body .cip-footer-v2,
html body .login-footer-institucional,
html body .footer-restrito-institucional{
  border-top-color:#781783!important;
  color:#654e69!important
}

/* Carteira: declaração da autorização logo abaixo do CID */
.badge-cid-row{
  min-height:7mm!important;
  padding:.55mm 1.35mm .45mm!important
}
.badge-cid-row .badge-cid-consent{
  display:block!important;
  margin-top:.35mm!important;
  color:#681174!important;
  font-size:1.22mm!important;
  font-weight:800!important;
  line-height:1.08!important;
  letter-spacing:.01mm!important;
  white-space:normal!important
}
.cipf-badge-front .badge-priority{
  margin-top:.45mm!important;
  font-size:1.65mm!important;
  line-height:1.07!important
}

@media print{
  .badge-cid-row .badge-cid-consent{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important
  }
}

@media(max-width:1000px){
  html body.portal-novo .portal-header .portal-brand-completa img{height:61px!important}
  html body.portal-novo .portal-brand-credit{font-size:9.5px!important;margin-top:-2px!important}
}
