figure.image{
    border: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    /*margin-left: 1em !important;*/
    /*margin-block-start: 1em !important;*/
    /*margin-inline-start: 1em !important;*/
    display: block !important;
}

p{
    min-width: 100%;
}

table, th, td{
    border: 0 none !important;
}

table tbody tr:hover td{
    background-image: none;
}

/*
==============================
==============================
 CSS para as imagens do Grid de notícias do layout
 noticias_principal_mais_quatro.html
==============================
==============================
*/

img.noticias_principal_mais_quatro {
    height: 12em;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}




/* Remove todas as sombras, arredondamentos e bordas */
.br-card {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

.br-card .card-header {
    border-radius: 0 !important;
    border: none !important;
}

.br-card .card-content {
    border-radius: 0 !important;
    border: none !important;
}

/* Tabs horizontais */
.acesso-rapido-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    background: none;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--pmw-color-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.tab-btn.active {
    color: var(--pmw-color-blue);
    border-bottom: 2px solid #0066cc !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.tab-btn:hover {
    color: #0066cc;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.tab-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

/* Conteúdo das tabs */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Lista de menu */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base dos itens */
.menu-link {
  position: relative;          /* base p/ listras */
  padding: 16px 30px 16px 16px;
  background: var(--pmw-bg-light);
  max-width: 600px;
  max-height: 90px;
  color: #333;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
  text-align: left; /* Adicione esta linha */
  margin-bottom: 0; /* normalize spacing: let .link-menu-lateral control gap */
}
.menu-link i {
    color: #007bff;
    transition: color 0.3s ease;
}

.menu-link:hover i {
    color: white;
}

/* Listras (invisíveis por padrão) */
.menu-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;                 /* 3 faixas de 4px */
  height: 100%;
  background-image: linear-gradient(
    to left,
    #ffb400 0 10px,             /* amarelo */
    #0751d9 10px 20px,           /* azul escuro */
    #0757e9 20px 30px           /* azul */
  );
  transform: scaleX(0);        /* oculto */
  transform-origin: right center;
  opacity: 0;
}

/* Hover/foco: azul #065eff e listras animando */
.menu-link:hover,
.menu-link:focus-visible {
  background: #065eff;
  color: #fff;
  outline: none;               /* clean, sem outline do navegador */
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
  animation: stripes-in 420ms ease-out forwards;
}

@keyframes stripes-in {
  from { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Sidebar fixa e alta - AJUSTADO */
.menu-lateral-sticky {
  position: sticky;
  top: 64px;         /* Ajuste este valor para a altura do seu header */
  overflow-y: auto;  /* Permite rolagem interna quando o conteúdo é maior */
  z-index: 100;      /* Garante que fique acima de outros elementos */
  padding-bottom: 20px; /* Espaçamento no final para melhor visualização */
  margin-bottom: 0;
}

/* Melhora a experiência de rolagem */
.menu-lateral-sticky::-webkit-scrollbar {
  width: 4px;
}

.menu-lateral-sticky::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}

.menu-lateral-sticky:hover::-webkit-scrollbar-thumb{
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* zera o padding esquerdo da coluna do menu */
.menu-lateral-col { padding-left: 0 !important; }

/* opcional: garanta que o card não tenha margem lateral */
.br-card { margin-left: 0 !important; }

/* Oculta o caret por padrão (desktop) */
.tab-caret {
  display: none;
}


.aba-acesso-rapido{
    font-size: clamp(1rem, 1.4rem, 1.5rem) !important;
    font-weight: 500;
}

@media (max-width: 1600px) {
  .tab-btn {
    padding: 3px 5px !important;
  }
}

/* Fixes de mobile (≤575.98px) para evitar overflow lateral */
@media (max-width: 575.98px) {
  /* FORÇA o container principal a não ultrapassar 100vw */
  .container-fluid {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Se o menu está em col-md-3, force 100% width no mobile */
  .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }

  /* Remove margens negativas das rows no mobile */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Garante que o card do BR não tenha overflow */
  .br-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Menu lateral sticky sem overflow */
  .menu-lateral-sticky {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Transformar tabs em acordeão no mobile */
  .acesso-rapido-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  /* Botões sem borda e com margem semelhante aos serviços */
  .tab-btn {
    flex: none;
    width: 100%;
    text-align: left;
    padding: 15px 40px 15px 15px; /* espaço p/ o ícone à direita */
    background: #f5f5f5;
    border: none !important;
    margin: 0 0 8px 0; /* semelhante aos .menu-link */
    position: relative;
    font-weight: 600;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #333;
  }

  .tab-btn:last-child {
    margin-bottom: 0;
  }

  /* Remover qualquer pseudo-elemento anterior (+/−) se existir */
  .tab-btn::before {
    content: none !important;
  }

  /* Ícone caret usando Font Awesome */
  .tab-caret {
    display: inline-block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    color: #666;
    pointer-events: none;
  }

  .tab-btn:hover {
    background: #eee;
  }

  .tab-btn.active {
    background: #e3f2fd;
    color: #0066cc;
  }

  .tab-btn.active .tab-caret {
    transform: translateY(-50%) rotate(180deg); /* seta para cima */
    color: #0066cc;
  }

  /* Ocultar todos os painéis por padrão no mobile */
  .tab-panel {
    display: none !important;
    padding: 0;
    margin: 0;
  }

  /* Mostrar apenas o painel ativo no mobile */
  .tab-panel.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 10px;
  }

  @keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 500px; }
  }

  /* Links com largura controlada */
  .menu-link {
    display: block;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }

  /* Remove listras que podem causar overflow */
  .menu-link::after {
    display: none;
  }

  /* Texto que quebra */
  .menu-link .menu-text,
  .menu-lateral-sticky p {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    font-family: 'Inter', sans-serif !important;
  }

  /* Gap menor */
  .menu-list {
    gap: 8px;
  }

  /* Quando nada está aberto, tira a margem das abas e esconde o conteúdo */
  .acesso-rapido-tabs.--collapsed {
    margin-bottom: 0 !important;
  }

  .tab-content.is-collapsed {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Sidebar deve encolher quando não há conteúdo visível */
  .menu-lateral-sticky {
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
  }
}

/* Separador clean entre as seções e a lista de serviços */
.tab-panel .menu-list::before {
  content: "";
  display: block;
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0 8px;
}

/* Separador clean entre as seções e a lista de serviços (apenas no mobile) */
@media (max-width: 575.98px) {
  .tab-panel .menu-list::before {
    content: "";
    display: block;
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
  }
}

/* Opcional: garantir que não apareça fora do mobile */
@media (min-width: 576px) {
  .tab-panel .menu-list::before {
    content: none !important;
    display: none !important;
  }
}

.link-menu-lateral{
  position: relative;
  width: 100%;
  min-height: 44px;
  background-color: var(--servicos-chip-bg);
  margin-bottom: 16px; /* match .menu-list gap for consistent spacing */
  padding-left: 15px;
  display: flex;
  align-items: center;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.link-menu-lateral::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background-image: linear-gradient(
    to left,
    #ffb400 0 10px,
    #0751d9 10px 20px,
    #0757e9 20px 30px
  );
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
}

.link-todos a{
  text-decoration: none;
}

.link-menu-lateral:hover,
.link-menu-lateral:focus-visible {
  background-color: #065eff;
  color: #fff;
  cursor: pointer;
}

.link-menu-lateral:hover .links-titulo-filtro,
.link-menu-lateral:focus-visible .links-titulo-filtro {
  color: #fff;
}

.link-menu-lateral:hover .links-seta-filtro,
.link-menu-lateral:focus-visible .links-seta-filtro {
  color: #fff;
}

.link-menu-lateral:hover::after,
.link-menu-lateral:focus-visible::after {
  animation: stripes-in 420ms ease-out forwards;
}

.link-menu-lateral.active {
  background-color: #065eff;
  color: #fff;
  border: 2px solid transparent;
}

.link-menu-lateral.active .links-titulo-filtro {
  color: #fff;
}

.link-menu-lateral.active .links-seta-filtro {
  color: #fff;
}

.link-menu-lateral.active::after {
  animation: stripes-in 420ms ease-out forwards;
}

.link-menu-lateral:active {
  border: 2px solid #0066cc;
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.arrow-menu-lateral {
  align-self: center;
  margin-left: auto;
}


.menu-text{
  font-size: 20px;
  font-weight: 600;
}