* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Card de aviso "limite de requerimentos seguidos" (global: index, historico, historico_grupo) */
.sx-limite-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 34px 26px;
    margin: 0px auto;
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}
.sx-limite-card__icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #eef2f7;
    color: #334155;
}
.sx-limite-card__title{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Oswald', sans-serif;
}
.sx-limite-card__text{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    max-width: 440px;
}
.sx-limite-card__acoes{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}
.sx-limite-card__btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .22);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sx-limite-card__btn:hover{
    background: #1e293b;
    transform: translateY(-1px);
}
.sx-limite-card__btn--ghost{
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}
.sx-limite-card__btn--ghost:hover{
    background: #f8fafc;
}
body{
        background-color: #f0f0f0;
        font-family: 'Abel';
        min-height: 100vh;
}
/* ===========================
   SX - Header (barra do topo)
   =========================== */
.button-bar {
    --sx-h-navy: #12224a;
    --sx-h-accent: #e87722;
    --sx-h-accent-dark: #dd6514;
    --sx-h-txt: #45506b;
    --sx-h-txt-forte: #12224a;
    --sx-h-hover: #f2f5fa;
    --sx-h-linha: #e4e9f2;
    background-color: #fff;
    color: var(--sx-h-txt);
    padding: 11px 24px;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    display: flex;
    gap: 10px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .07);
    flex-wrap: nowrap;
}
.button-bar>.nav-bar{
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}
/* Os icones da classe Svg vem em duas escalas: uns desenhados numa caixa de
   24x24 e outros numa de 64x64, ambos com stroke-width="2". Reduzidos para
   20-22px, os de 64 ficam com o traco 2.7x mais fino que os de 24 e somem no
   meio dos outros. Aqui o traco dos de 64 e reescalado para casar. */
.button-bar svg[viewBox="0 0 64 64"] * { stroke-width: 5; }

.button-bar>.nav-bar>span {
    margin-left: auto;
    white-space: nowrap;
    text-transform: uppercase;
    background: #eef2f9;
    border: 1px solid var(--sx-h-linha);
    border-radius: 999px;
    color: #3a4560;
    display: flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 0 12px;
    height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.search_historicos_requerimento {
    display: flex;
    align-items: center;
    gap: 5px;
    position: sticky;
    left: 0;
    margin-bottom: 10px;
}
.search_historicos_requerimento>input {
    flex: 1;
    padding: 10px 13px;
    font-size: 16px;
    /* border-radius: 5px; */
    outline: none;
    border: none;
}
/* ==========
   INPUT + LUPA
   ========== */


.box_search {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 5px 20px;
}

/* A busca do topo (filha direta do body) faz parte do bloco do cabecalho:
   mesmo fundo branco da barra, com a sombra de separacao no pe dela.
   Escopo em "body >" de proposito: .box_search tambem e usada DENTRO de
   paginas (anm.css, maps.css, pessoas.css) e essas nao podem mudar. */
body > .box_search {
  background: #f7f9fc;
  padding: 8px 24px 12px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .06);
}
/* Na bandeja levemente acinzentada o campo precisa ser branco para nao sumir. */
body > .box_search > .box_search_input > input[name='q'] {
  background: #fff;
}

.box_search > .box_search_input {
  position: relative;
  width: 100%;
  max-width: 800px;
}

/* Ãcone de lupa (SVG via mask) */
.box_search > .box_search_input::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;

  background-color: rgba(0, 0, 0, 0.45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Intensifica a lupa quando o input estÃ¡ em foco */
.box_search > .box_search_input:focus-within::before {
  background-color: rgba(0, 0, 0, 0.62);
}

/* Input */
.box_search > .box_search_input > input[name='q'] {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 44px; /* espaÃ§o para a lupa */
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  outline: none;
  background: #f7f9fc;
  color: #111;
  font-size: 14px;
  line-height: 44px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.box_search > .box_search_input > input[name='q']::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.box_search > .box_search_input > input[name='q']:focus {
  border-color: #e87722;
  box-shadow: 0 0 0 3px rgba(232, 119, 34, .14);
  background: #fff;
}

/* ==========
   DROPDOWN RESULTADOS
   ========== */

.box_search > .resultado_search {
  position: absolute;
  top: calc(44px + 10px);
  /* left: 0; */
  /* right: 0; */
  z-index: 50;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: none;
  max-height: min(420px, calc(100vh - 140px));
  overflow: auto;
  width: 100%;
  max-width: 800px;
}

.box_search > .resultado_search:not(:empty) {
  display: block;
  animation: searchDropIn 140ms ease-out;
}

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.box_search > .resultado_search > .sub_container {
  padding: 10px;
}

.box_search > .resultado_search > .sub_container > h2 {
  margin: 8px 8px 10px 8px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

/* ==========
   ITENS (SEM TRANSFORM NO HOVER)
   ========== */

.box_search > .resultado_search > .sub_container > .item {
  display: block;
  padding: 10px 10px;
  /* border-radius: 12px; */
  transition: background 140ms ease; /* sem transform */
}
.box_search > .resultado_search > .sub_container > .item + .item {
  border-top: 1px solid #eeeeee;
}

.box_search > .resultado_search > .sub_container > .item:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ==========
   BOTÃO "SEGUIR" NO RESULTADO DA BUSCA (processos ainda não seguidos)
   O item ganha position:relative só quando tem o botão, para posicioná-lo
   à direita sem empurrar o número/titular. O botão fica FORA do <a>, então
   clicar nele não abre o processo.
   ========== */
.box_search > .resultado_search > .sub_container > .item--seguir {
  position: relative;
  padding-right: 96px;
}

.box_search > .resultado_search > .sub_container > .item--seguir > .btn-seguir-search {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #dd6514;
  border-radius: 999px;
  background: #fff;
  color: #dd6514;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 140ms ease, color 140ms ease;
}

.box_search > .resultado_search > .sub_container > .item--seguir > .btn-seguir-search:hover {
  background: #dd6514;
  color: #fff;
}

.box_search > .resultado_search > .sub_container > .item--seguir > .btn-seguir-search img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.box_search > .resultado_search > .sub_container > .item--seguir > .btn-seguir-search:hover img {
  filter: brightness(0) invert(1);
}

/* ==========
   ÃCONE USUÃRIO ANTES DO NOME (A)
   ========== */

.box_search > .resultado_search > .sub_container > .item > a {
  position: relative;
  display: inline-block;
  padding-left: 28px; /* espaÃ§o para o Ã­cone */
  /* text-decoration: none; */
  color: #13133d;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.box_search > .resultado_search > .sub_container > .item > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========
   ÃCONES ANTES DOS P (CPF/CNPJ e QUANTIDADE)
   ========== */

.box_search > .resultado_search > .sub_container > .item > p {
  position: relative;
  margin: 6px 0 0 0;
  padding-left: 28px; /* espaÃ§o para o Ã­cone */
  font-size: 12.5px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.62);
}

/* CPF/CNPJ (primeiro p) */
.box_search > .resultado_search > .sub_container > .item > p:nth-of-type(1) {
  color: rgba(0, 0, 0, 0.55);
}

.box_search > .resultado_search > .sub_container > .item > p:nth-of-type(1)::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M7 12h6'/%3E%3Cpath d='M7 16h6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M7 12h6'/%3E%3Cpath d='M7 16h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Quantidade (segundo p) */
.box_search > .resultado_search > .sub_container > .item > p:nth-of-type(2) {
  color: rgba(0, 0, 0, 0.70);
  font-weight: 500;
}

.box_search > .resultado_search > .sub_container > .item > p:nth-of-type(2)::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========
   SCROLLBAR (Webkit)
   ========== */

.box_search > .resultado_search::-webkit-scrollbar {
  width: 10px;
}

.box_search > .resultado_search::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  border: 3px solid #fff;
}

.box_search > .resultado_search::-webkit-scrollbar-track {
  background: #fff;
}

/* ==========
   RESPONSIVO
   ========== */

@media (max-width: 520px) {
  .box_search > .box_search_input > input[name='q'] {
    height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }

  .box_search > .resultado_search {
    top: calc(46px + 10px);
    border-radius: 16px;
  }
}

.button-bar>.nav-bar>.menu-toggle,
.button-bar>.nav-bar>.menu-toggle.deslogado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: var(--sx-h-navy);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
    transition: background-color .18s ease;
}
.button-bar>.nav-bar>.menu-toggle>svg {
    width: 22px;
    height: 22px;
}
.button-bar>.nav-bar>.menu-toggle:hover,
.button-bar>.nav-bar>.menu-toggle.deslogado:hover {
    background-color: #1c3164;
}
.button-bar>.nav-bar>a.contrate{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sx-h-accent), var(--sx-h-accent-dark));
    border: none;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(221, 101, 20, .26);
    transition: background .15s ease, box-shadow .15s ease;
}
.button-bar>.nav-bar>a.contrate:hover{
    background: linear-gradient(135deg, var(--sx-h-accent-dark), #c4570f);
    box-shadow: 0 6px 16px rgba(221, 101, 20, .34);
}
.button-bar>.right-options>.a_span>img{
    height: 24px;
    padding: 0;
    opacity: .72;
    transition: opacity .16s ease;
}

/* ---- menu lateral (mobile) ---- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 30, .52);
    opacity: 0;
    z-index: 5;
    transition: opacity .25s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.menu-overlay.is-open { opacity: 1; }

.button-bar>.nav-bar>.menu-lateral {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    right: -320px; /* Esconde fora da tela */
    width: 288px;
    height: 100dvh;
    background: linear-gradient(180deg, #12224a 0%, #0a1226 100%);
    box-shadow: -12px 0 34px rgba(8, 14, 30, .38);
    transition: right 0.3s ease; /* Animacao do menu */
    padding: 18px 12px;
    z-index: 0;
    visibility: hidden; /* Inicialmente escondido */
    overflow-y: auto;
}

.button-bar>.nav-bar>.menu-lateral>.item>a {
    display: flex;
    color: #c7d2e4;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: background-color .18s ease, color .18s ease;
    font-weight: 400;
    font-family: 'Abel';
    font-size: 15px;
    align-items: center;
    gap: 12px;
}
.button-bar>.nav-bar>.menu-lateral>.item>a.addreq{
    background: #ffffff0f;
    border-bottom: 2px solid;
}
.button-bar>.nav-bar>.menu-lateral>.item>a+a{
    border-top: none;
}
.button-bar>.nav-bar>.menu-lateral>.item>a>p{}
.button-bar>.nav-bar>.menu-lateral>.item>a>svg{
    height: 20px;
    width: 20px;
    flex: 0 0 20px;
    color: #f0954a;
}
.button-bar>.nav-bar>.menu-lateral>.item>a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}
.button-bar>.nav-bar>.menu-lateral>.item>a.active {
    position: relative;
    background: rgba(232, 119, 34, .18);
    color: #fff;
}
.button-bar>.nav-bar>.menu-lateral>.item>a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #e87722;
}
.button-bar>.nav-bar>.menu-lateral>.item>a.active>svg { color: #e87722; }
.button-bar>.nav-bar>.menu-lateral>.login>span{
    color: #a8b6cd;
    font-size: 13px;
    padding: 6px 12px 10px;
}
.button-bar>.nav-bar>.menu-lateral>.login{
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}
.button-bar>.nav-bar>.menu-lateral>.login>a{
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c7d2e4;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: background-color .18s ease, color .18s ease;
}
.button-bar>.nav-bar>.menu-lateral>.login>a:hover{
    background: rgba(255, 255, 255, .08);
    color: #fff;
}
.button-bar>.nav-bar>.menu-lateral>.login>a.btn-entrar{
    justify-content: center;
    background: linear-gradient(135deg, #c2620f, #a8500d); /* escurecido: branco sobre #e87722 dava 2,96:1 (minimo 4,5:1); agora 4,8:1 */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .03em;
}
.button-bar>.nav-bar>.menu-lateral>.login>a.btn-entrar:hover{
    background: linear-gradient(135deg, #a8500d, #8f430b);
    color: #fff;
}
.button-bar>.nav-bar>.menu-lateral>.login>.menu-lateral-cta,
.button-bar>.nav-bar>.menu-lateral>.login>.menu-lateral-meta{
    margin: 0 0 10px;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 12px;
}
.button-bar>.nav-bar>.menu-lateral>.login>.menu-lateral-cta{
    background: rgba(232, 119, 34, .16);
    border: 1px solid rgba(232, 119, 34, .5);
    color: #ffd9bb;
}
.button-bar>.nav-bar>.menu-lateral>.login>.menu-lateral-meta{
    background: #ffffff12;
    border: 1px solid #ffffff1f;
    color: #ffffff;
}
.button-bar>.nav-bar>.menu-lateral>.login>a>p{}
.button-bar>.nav-bar>.menu-lateral>.login>a>svg{
    height: 20px;
    width: 20px;
    flex: 0 0 20px;
    color: #a8b6cd;
}
.button-bar>.nav-bar>.menu-lateral>.login>a.btn-sair>svg{ color: #e87722; }
.button-bar>.nav-bar>.menu-lateral>.item{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.button-bar>.nav-bar>#sxinicial>img{
    height: 36px;
    /* O atributo width='176' da tag vira uma regra de estilo de baixa
       prioridade. Sem este width:auto o navegador usaria os 176px cheios e
       esticaria o logo. Com auto, a largura sai da proporcao da imagem. */
    width: auto;
    line-height: 0;
}
.button-bar>.right-options>.requerimentoBtn{
    text-decoration: none;
    color: #ffffff;
    background: #13133d;
    font-size: 14px;
    border-radius: 5px;
    padding: 10px 20px;
    text-transform: uppercase;
    white-space: nowrap;
}
.button-bar>.left-options {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.button-bar>.left-options>a#sxinicial{
    line-height: 0;
    margin-right: 14px;
}
.button-bar>.left-options>a#sxinicial>img{
    height: 38px;
    width: auto;   /* neutraliza o atributo width='176' da tag */
    line-height: 0;
}
/* O tracinho divisor entre os itens saiu: o espacamento e o hover ja separam. */
.button-bar>.left-options>a.requerimentoBtn + a.requerimentoBtn{
    border-left: none;
}
.button-bar>.left-options>a.requerimentoBtn >img{
    height: 22px;
    margin-right: 5px;
}
.button-bar>.left-options>a.requerimentoBtn>svg{
    height: 22px;
    width: 22px;
    flex: 0 0 22px;
    color: #8a93a8;
    transition: color .16s ease;
}
.button-bar>.left-options>a.requerimentoBtn{
        position: relative;
        text-decoration: none;
        color: var(--sx-h-txt);
        padding: 0 14px;
        border-radius: 10px;
        text-transform: uppercase;
        transition: background-color .16s ease, color .16s ease;
        font-size: 12.5px;
        letter-spacing: .03em;
        white-space: nowrap;
        height: 40px;
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        gap: 8px;
}
.button-bar>.left-options>a.requerimentoBtn>p{
    font-weight: 600;
}
.button-bar>.left-options>a.requerimentoBtn:hover {
    background-color: var(--sx-h-hover);
    color: var(--sx-h-txt-forte);
}
.button-bar>.left-options>a.requerimentoBtn:hover>svg {
    color: var(--sx-h-accent);
}
/* Pagina aberta: fundo suave + tracinho laranja rente ao pe da barra
   (a barra tem 11px de padding embaixo, dai o bottom: -11px). */
.button-bar>.left-options>a.requerimentoBtn.active{
    background-color: #eef2f9;
    color: var(--sx-h-txt-forte);
    font-weight: 400;
}
.button-bar>.left-options>a.requerimentoBtn.active>svg{
    color: var(--sx-h-accent);
}
.button-bar>.left-options>a.requerimentoBtn.active::after{
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -11px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--sx-h-accent);
}
.button-bar>.right-options {
    display: flex;
    align-items: center;
    gap: 8px;
}
.button-bar>.right-options>a.contrate{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sx-h-accent), var(--sx-h-accent-dark));
    border: none;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(221, 101, 20, .26);
    transition: background .15s ease, box-shadow .15s ease;
}
.button-bar>.right-options>a.contrate:hover{
    background: linear-gradient(135deg, var(--sx-h-accent-dark), #c4570f);
    box-shadow: 0 6px 16px rgba(221, 101, 20, .34);
}
.button-bar>.right-options>span{
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #eef2f9;
    border: 1px solid var(--sx-h-linha);
    color: #3a4560;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.button-bar>.right-options>.a_span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    line-height: 0;
    transition: background-color .16s ease;
}
.button-bar>.right-options>.a_span:hover{
    background: var(--sx-h-hover);
}
.button-bar>.right-options>.a_span:hover>img{
    opacity: 1;
}
.button-bar>.right-options>.a_span>span {
    font-size: 14px;
    margin-right: 20px;
    color: #444;
}
/* "Sair" e "Faca seu login" dividem o mesmo id (#voltarIndexBtn) e o mesmo
   lugar na barra; a classe separa o peso visual de cada um: sair e acao
   secundaria (contorno), entrar e a acao principal do deslogado (solido). */
.button-bar>.right-options>a#voltarIndexBtn{
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-bar>.right-options>a#voltarIndexBtn.btn-sair{
    background: #fff;
    color: #5a6478;
    border: 1px solid #dfe4ec;
}
.button-bar>.right-options>a#voltarIndexBtn.btn-sair:hover{
    background: #f5f7fb;
    color: var(--sx-h-txt-forte);
    border-color: #c9d2e0;
}
.button-bar>.right-options>a#voltarIndexBtn.btn-entrar{
    /* Escurecido de proposito: texto branco sobre o laranja da marca (#e87722)
       dava 2,96:1 de contraste e o minimo acessivel e 4,5:1. Com #c2620f o
       contraste sobe para 4,8:1. */
    background: linear-gradient(135deg, #c2620f, #a8500d);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(221, 101, 20, .26);
}
.button-bar>.right-options>a#voltarIndexBtn.btn-entrar:hover{
    background: linear-gradient(135deg, #a8500d, #8f430b);
}
/* Fallback: se algum ponto do sistema ainda gerar o link sem classe,
   ele continua com um visual valido em vez de virar texto cru. */
.button-bar>.right-options>a#voltarIndexBtn:not(.btn-sair):not(.btn-entrar){
    background: #fff;
    color: #5a6478;
    border: 1px solid #dfe4ec;
}
.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
}
@media screen and (max-width: 1000px) {
    .menu-toggle {
        display: block; 
    }

    .button-bar{
        padding: 10px 12px;
        gap: 8px;
    }

    .button-bar>.left-options {
        display: none; /* Esconde o menu normal */
    }
    .button-bar>.right-options {
        display: none; /* Esconde o menu normal */
    }
    .button-bar>.nav-bar{
        display: flex;
        width: 100%;
        gap: 10px;
        min-width: 0;
    }
    .button-bar>.nav-bar>*{
        flex-shrink: 0;
    }
    .button-bar>.nav-bar>a.contrate{
        display: none !important;
    }
    .button-bar>.nav-bar>#sxinicial{
        line-height: 0;
    }
    .button-bar>.nav-bar>#sxinicial>img{
        height: 34px;
        width: auto;
    }
    .button-bar>.nav-bar>.menu-toggle,
    .button-bar>.nav-bar>.menu-toggle.deslogado{
        margin-left: auto;
    }
    .button-bar>.nav-bar>.menu-lateral{
        width: min(300px, 88vw);
    }
    body > .box_search{
        padding: 2px 12px 10px;
    }
}
.msgDialog{
    position: fixed;
    top: 80px;
    right: 16px;
    max-width: min(380px, calc(100% - 32px));
    animation: aparecer 0.22s ease-out;
    z-index: 9999;
    padding: 0;
}
.msgDialog > p{
    margin: 0;
    background: #fff;
    padding: 15px 16px 15px 18px;
    color: #276749;
    border: 1px solid #cbe7cf;
    border-left: 4px solid #38a169;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .18);
    text-align: left;
    cursor: pointer;
    text-transform: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}
.msgDialog > p.fatal{
    color: #7a271a;
    background: #fff;
    border: 1px solid #f6cfc9;
    border-left: 4px solid #e04434;
}
.msgDialog > p.fatal>img{
    height: 22px;
    flex: 0 0 auto;
}
.msgDialog > p.fatal > a,
.msgDialog > p > a{
    display: inline-block;
    padding: 7px 14px;
    background: #dd6514;
    color: #fff;
    font-size: 13px;
    /* font-weight: 600; */
    border-radius: 8px;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 140ms ease;
}
.msgDialog > p.fatal > a:hover,
.msgDialog > p > a:hover{
    background: #c4570f;
}

/* ===========================
   Página bloqueada por plano (conteúdo exclusivo de assinantes)
   Usado em historico_titular.php e meusprazostitulares.php.
   =========================== */
.sx-pagina-sem-plano{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    max-width: 520px;
    margin: 40px auto;
    padding: 40px 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #dd6514;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .08);
}
.sx-pagina-sem-plano__icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff3e9;
    color: #dd6514;
    margin-bottom: 4px;
}
.sx-pagina-sem-plano__title{
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #13133d;
}
.sx-pagina-sem-plano__text{
    margin: 0;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.55;
    color: #3a3a4d;
}
.sx-pagina-sem-plano__btn{
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
    background: #dd6514;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .15s ease;
}
.sx-pagina-sem-plano__btn:hover{
    background: #c4570f;
}

@media screen and (min-width: 1000px){
    .button-bar>.nav-bar{
        margin-left: auto;
        display: none;
    }
}

/* ===========================
   SX - Footer
   =========================== */

body > footer {
  /* Paleta alinhada aos botoes do topo */
  --sx-bg-1: #12224a;              /* navy */
  --sx-bg-2: #0a1226;              /* navy profundo */
  --sx-accent: #e87722;            /* laranja do CTA */
  --sx-accent-soft: rgba(232,119,34,.14);
  --sx-text: #f2f6fc;              /* texto principal */
  --sx-muted: #a8b6cd;             /* texto secundario */
  --sx-line: rgba(255,255,255,.10);
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, var(--sx-bg-1) 0%, var(--sx-bg-2) 100%);
  color: var(--sx-text);
  font-size: 15px;
  overflow: hidden;
  box-shadow: 0 -8px 24px rgba(16,24,40,.10);
}

/* fio laranja no topo, com fade para a direita */
body > footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sx-accent) 0%, #f0a04b 45%, rgba(232,119,34,0) 100%);
}

body > footer svg { display: block; }

/* ---- grade principal ---- */
body > footer > .detalhes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px 32px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.4fr;
  gap: 34px 36px;
}

body > footer > .detalhes > div,
body > footer > .detalhes > nav {
  min-width: 0;
}

/* ---- titulos de coluna ---- */
body > footer .sx-footer__titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
}
body > footer .sx-footer__titulo::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sx-accent), rgba(232,119,34,0));
}

/* ---- coluna 1: marca ---- */
body > footer .sx-footer__marca {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}
body > footer .sx-footer__marca > span { color: var(--sx-accent); }

body > footer .sx-footer__tagline {
  margin: 0 0 20px;
  max-width: 36ch;
  color: var(--sx-muted);
  font-size: .93rem;
  line-height: 1.55;
}

body > footer .sx-footer__dados {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
}
body > footer .sx-footer__dados > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sx-muted);
  font-size: .9rem;
  line-height: 1.45;
}
body > footer .sx-footer__dados svg {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin-top: 1px;
  color: var(--sx-accent);
  opacity: .9;
}

/* ---- redes sociais ---- */
body > footer .sx-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body > footer .sx-footer__rede {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--sx-line);
  color: var(--sx-muted);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
body > footer .sx-footer__rede svg { width: 19px; height: 19px; }
body > footer .sx-footer__rede:hover,
body > footer .sx-footer__rede:focus {
  background: var(--sx-accent);
  border-color: var(--sx-accent);
  color: #fff;
  outline: none;
}

/* ---- colunas de links ---- */
body > footer > .detalhes > .links-rapidos > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  color: var(--sx-muted);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.4;
  transition: color .18s ease;
}
body > footer > .detalhes > .links-rapidos > a > svg {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  color: var(--sx-accent);
  opacity: .5;
  transition: opacity .18s ease;
}
body > footer > .detalhes > .links-rapidos > a:hover,
body > footer > .detalhes > .links-rapidos > a:focus {
  color: #fff;
  outline: none;
}
body > footer > .detalhes > .links-rapidos > a:hover > svg,
body > footer > .detalhes > .links-rapidos > a:focus > svg {
  opacity: 1;
}

/* ---- coluna de contato ---- */
body > footer .sx-footer__contato-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--sx-line);
  color: var(--sx-text);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
body > footer .sx-footer__contato-item:hover,
body > footer .sx-footer__contato-item:focus {
  background: rgba(255,255,255,.10);
  border-color: rgba(232,119,34,.45);
  outline: none;
}
body > footer .sx-footer__contato-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--sx-accent-soft);
  color: var(--sx-accent);
}
body > footer .sx-footer__contato-ico svg { width: 18px; height: 18px; }
body > footer .sx-footer__contato-ico--wpp {
  background: rgba(37,211,102,.15);
  color: #25d366;
}
body > footer .sx-footer__contato-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}
body > footer .sx-footer__contato-txt > small {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sx-muted);
}
body > footer .sx-footer__contato-txt > b {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: break-word;
}
body > footer .sx-footer__contato-nota {
  margin: 12px 0 0;
  color: var(--sx-muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* ---- aviso legal ---- */
body > footer > .sx-footer__aviso {
  max-width: 1152px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(232,119,34,.07);
  border: 1px solid rgba(232,119,34,.20);
}
body > footer > .sx-footer__aviso > svg {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--sx-accent);
}
body > footer > .sx-footer__aviso > p {
  margin: 0;
  color: #cbd6e6;
  font-size: .85rem;
  line-height: 1.55;
}
body > footer > .sx-footer__aviso strong { color: var(--sx-accent); }

/* ---- barra inferior (logo + copyright) ---- */
body > footer > .footer-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 16px max(24px, calc(50% - 576px));
  background: rgba(0,0,0,.28);
  border-top: 1px solid var(--sx-line);
}
body > footer > .footer-content > .sx-footer__base-marca {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
body > footer > .footer-content img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
body > footer > .footer-content p {
  margin: 0;
  color: var(--sx-muted);
  font-size: .84rem;
}
body > footer > .footer-content > .sx-footer__base-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
}
body > footer > .footer-content > .sx-footer__base-links > a {
  color: var(--sx-muted);
  text-decoration: none;
  transition: color .18s ease;
}
body > footer > .footer-content > .sx-footer__base-links > a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body > footer > .footer-content > .sx-footer__base-links > span { color: rgba(255,255,255,.25); }

/* Estados de foco visivel para acessibilidade */
body > footer a:focus-visible {
  outline: 2px solid var(--sx-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Responsividade ---- */
@media (max-width: 1200px) {
  body > footer > .sx-footer__aviso {
    margin-left: 24px;
    margin-right: 24px;
  }
}

/* e-mail longo: reduz um pouco entre 1000px e 1300px para nao quebrar */
@media (min-width: 1001px) and (max-width: 1300px) {
  body > footer .sx-footer__contato-txt > b { font-size: .68rem; }
  body > footer .sx-footer__contato-item { gap: 10px; padding: 9px 10px; }
  body > footer .sx-footer__contato-ico { width: 30px; height: 30px; }
  body > footer .sx-footer__contato-ico svg { width: 16px; height: 16px; }
}

@media (max-width: 1000px) {
  body > footer > .detalhes {
    grid-template-columns: 1fr 1fr;
    gap: 30px 32px;
    padding: 38px 22px 26px;
  }
}

@media (max-width: 640px) {
  body > footer > .detalhes {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 20px 22px;
  }
  body > footer .sx-footer__tagline { max-width: none; }
  body > footer > .sx-footer__aviso {
    margin-left: 20px;
    margin-right: 20px;
    padding: 13px 14px;
  }
  body > footer > .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 22px;
  }
}

/* ===== CTA de login para usuário deslogado (páginas públicas) ===== */
.sx-login-cta{max-width:1120px;margin:18px auto;display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;justify-content:space-between;padding:16px 20px;background:linear-gradient(135deg,#1e2b4d,#2c3e6e);border-radius:14px;box-shadow:0 4px 16px rgba(30,43,77,.18);color:#fff}
.sx-login-cta__txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 320px}
.sx-login-cta__titulo{font-size:1.08rem;font-weight:700;line-height:1.25}
.sx-login-cta__sub{font-size:.92rem;color:#d4ddf2;line-height:1.4}
.sx-login-cta__acoes{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.sx-login-cta__btn{display:inline-block;padding:10px 18px;border-radius:9px;font-weight:600;font-size:.92rem;text-decoration:none;white-space:nowrap;transition:background .15s ease,transform .15s ease,border-color .15s ease}
.sx-login-cta__btn--primary{background:#fff;color:#1e2b4d}
.sx-login-cta__btn--primary:hover{background:#eaf0fb;transform:translateY(-1px)}
.sx-login-cta__btn--ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5)}
.sx-login-cta__btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
@media (max-width:560px){.sx-login-cta{margin-left:16px;margin-right:16px}.sx-login-cta__acoes{width:100%}.sx-login-cta__btn{flex:1 1 auto;text-align:center}}

/* ===== Layout de 2 colunas + card lateral de login (blog e temas) ===== */
.sx-side-shell{max-width:1180px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.sx-side-shell__main{min-width:0}
.sx-side-shell__main>.blog-wrap,.sx-side-shell__main>.legis-wrap{max-width:none;margin:0;width:100%}
.sx-side-shell__main>.blog-wrap:not(.blog-post),.sx-side-shell__main>.legis-wrap{padding-left:0;padding-right:0}

.sx-cta-side{position:sticky;top:88px}
.sx-cta-card{background:#fff;border:1px solid #e4e8ee;border-radius:16px;box-shadow:0 6px 20px rgba(30,43,77,.08);padding:24px 20px;text-align:center}
.sx-cta-card__ico{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#eaf0fb;color:#1e2b4d;margin-bottom:14px}
.sx-cta-card__titulo{margin:0 0 8px;font-size:1.14rem;line-height:1.3;color:#1e2b4d;font-weight:700}
.sx-cta-card__txt{margin:0 0 18px;font-size:.92rem;color:#5a6472;line-height:1.5}
.sx-cta-card__lista{list-style:none;margin:0 0 18px;padding:0;text-align:left;display:inline-block}
.sx-cta-card__lista li{position:relative;padding:5px 0 5px 24px;font-size:.92rem;color:#3b4657;line-height:1.4}
.sx-cta-card__lista li::before{content:"";position:absolute;left:6px;top:12px;width:6px;height:6px;border-radius:50%;background:#3350a0}
.sx-cta-card__btn{display:block;padding:13px 18px;border-radius:11px;background:linear-gradient(135deg,#1e2b4d,#3350a0);color:#fff;font-weight:700;font-size:.98rem;text-decoration:none;box-shadow:0 6px 16px rgba(30,43,77,.28);transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.sx-cta-card__btn:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(30,43,77,.38);filter:brightness(1.06)}
.sx-cta-card__link{display:inline-block;margin-top:12px;font-size:.85rem;color:#2b4a8b;text-decoration:none}
.sx-cta-card__link:hover{text-decoration:underline}

/* Mobile: card vira barra fixa no rodapé da tela */
@media (max-width:900px){
  .sx-side-shell{grid-template-columns:1fr;padding-bottom:92px}
  .sx-cta-side{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60}
  .sx-cta-card{display:flex;align-items:center;gap:12px;text-align:left;border-radius:16px 16px 0 0;border-bottom:0;padding:12px 16px;box-shadow:0 -6px 20px rgba(30,43,77,.18)}
  .sx-cta-card__ico{width:42px;height:42px;margin-bottom:0;flex:0 0 auto}
  .sx-cta-card__ico svg{width:24px;height:24px}
  .sx-cta-card__body{flex:1 1 auto;min-width:0}
  .sx-cta-card__titulo{margin:0;font-size:.98rem}
  .sx-cta-card__txt,.sx-cta-card__lista,.sx-cta-card__link{display:none}
  .sx-cta-card__btn{flex:0 0 auto;margin:0;padding:11px 18px;white-space:nowrap;box-shadow:none}
}
