/* ========================================
   DESIGN SYSTEM CIEGES - COMPONENTES CSS
   ======================================== */

/* Este arquivo contém todos os componentes CSS prontos para uso
   em outros projetos governamentais do Estado do Acre */

/* ========================================
   VARIÁVEIS CSS - COPIE ESTE BLOCO COMPLETO
   ======================================== */
:root {
  /* Cores Primárias Governamentais */
  --primary-blue: #023E88;
  --primary-blue-light: #0373CD;
  --primary-blue-dark: #001f44;
  
  /* Cores Secundárias (Identidade Brasileira) */
  --secondary-green: #00b75e;
  --secondary-green-light: #10b981;
  --secondary-orange: #ea580c;
  --secondary-yellow: #f9cf4d;
  
  /* Tons Neutros */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Cores de Estado */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #06b6d4;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Bordas */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Tipografia */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Source Sans Pro', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   HEADER GOVERNAMENTAL AC.GOV.BR
   ======================================== */
.top_bar {
  display: flex;
  flex-direction: row;
  background-color: var(--primary-blue);
  position: relative;
  min-height: 44px;
}

.top_bar .top_menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  align-items: center;
}

.top_bar .top_menu::after {
  content: '';
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-yellow), #c5c852, var(--secondary-green), var(--secondary-yellow));
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.top_bar .top_logo {
  display: flex;
  height: 40px;
  flex: 1;
  align-items: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  text-decoration: none;
  padding-left: 0;
}

.top_bar .nav_top {
  display: flex;
  align-items: center;
}

.top_bar .brasao-seplag ul {
  display: flex;
  text-decoration: none;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.top_bar .brasao-seplag ul li a {
  text-decoration: none;
  color: #FFFFFF;
  opacity: 0.9;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-primary);
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.top_bar .brasao-seplag ul li a:hover {
  opacity: 1;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   NAVEGAÇÃO PRINCIPAL MODERNA
   ======================================== */
.main-navigation {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.main-navigation:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.main-navigation .navbar {
  padding: 0.75rem 0;
  margin-bottom: 0;
}

/* Logo e Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-brand:hover {
  color: var(--primary-blue-dark) !important;
  transform: translateY(-1px);
}

.navbar-brand img,
.navbar-brand .brand-logo {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.navbar-brand:hover img,
.navbar-brand:hover .brand-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transform: scale(1.05);
}

.navbar-brand span,
.navbar-brand .brand-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-text {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Menu de Navegação */
.navbar-nav {
  gap: 0.25rem;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--gray-700) !important;
  padding: 0.875rem 1.25rem !important;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 2px solid transparent;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 62, 136, 0.2);
  border-color: var(--primary-blue);
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
}

.navbar-nav .nav-link:hover .breadcrumb-icon,
.navbar-nav .nav-link:hover .nav-text,
.navbar-nav .nav-link:hover i {
  color: white !important;
  position: relative;
  z-index: 1;
}
.navbar-nav .nav-link.active:hover .nav-text,
.navbar-nav .nav-link.active:hover i{
  color: var(--primary-blue) !important;
}


.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  background: rgba(2, 62, 136, 0.08);
  border: 2px solid var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 62, 136, 0.15);
}

.navbar-nav .nav-link.active::before {
  opacity: 0;
}

/* Barra de item ativo. O `:not(.dropdown-toggle)` é obrigatório: o ::after de um
   dropdown-toggle já é a setinha do Bootstrap, e sobrescrevê-lo fazia o item
   ativo perder o único sinal de que ele abre um menu. */
.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(2, 62, 136, 0.3);
}

/* Ícones nos links */
.navbar-nav .nav-link i {
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.8;
  width: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
  opacity: 1;
  transform: scale(1.1);
}

/* Texto dos links */
.navbar-nav .nav-link .nav-text {
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.navbar-nav .nav-link:hover .nav-text,
.navbar-nav .nav-link.active .nav-text {
  font-weight: 700;
}

/* Toggle Button */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.navbar-toggler::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: var(--border-radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.navbar-toggler:hover::before {
  opacity: 0.1;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(2, 62, 136, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%282, 62, 136, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%282, 62, 136, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transform: scale(1.1);
}

/* Animação de entrada para os itens do menu */
.navbar-nav .nav-item {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade da navegação */
@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    justify-content: flex-start;
  }
  
  .navbar-nav .nav-link:hover {
    transform: translateX(5px);
  }
  
  .navbar-nav .nav-link.active::after {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-brand img,
  .navbar-brand .brand-logo {
    height: 40px;
  }
  
  /* Animação para mobile */
  .navbar-nav .nav-item {
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
  }
  
  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media (max-width: 576px) {
  .navbar-nav .nav-link {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem;
  }
  
  .navbar-brand span,
  .navbar-brand .brand-text {
    display: none;
  }
  
  .navbar-brand img,
  .navbar-brand .brand-logo {
    height: 35px;
  }
  
  .main-navigation .navbar {
    padding: 0.5rem 0;
  }
}

/* ========================================
   NAVEGAÇÃO — MENU SUSPENSO (DROPDOWN)
   ========================================
   O menu herda o vocabulário das pílulas do topo, em vez de ficar com o
   Bootstrap cru: mesmo raio (--border-radius-lg), mesma paleta institucional,
   mesma curva de transição e o mesmo par de estados — hover em gradiente azul
   com texto branco, ativo em azul sobre fundo tingido com anel de 2px.

   Todo seletor daqui em diante é prefixado por `.main-navigation` de propósito.
   As telas da fila de regulação carregam, DEPOIS deste arquivo, uma cópia
   divergente do design system (regulacao/css/layout.css) que redeclara
   `.navbar-nav .nav-link` e companhia. O prefixo eleva a especificidade e
   garante que a navbar fique idêntica nas duas seções do portal enquanto as
   duas cópias não forem reunificadas. */

/* O segundo nível (`.nav-submenu` / `.nav-subitem`) entra por aqui, herdando as
   MESMAS declarações do primeiro — painel e item são o mesmo componente, mudam
   só de posição. Os nomes próprios existem para o Bootstrap não enxergar o
   submenu (ver o cabeçalho de `js/nav-submenu.js`); a lista de seletores é
   escrita por extenso, e não com `:is()`, porque um navegador que não conheça
   `:is()` descarta a regra INTEIRA — e o público deste portal usa equipamento
   heterogêneo. Classe desconhecida numa lista por vírgula não custa nada. */
.main-navigation .dropdown-menu,
.main-navigation .nav-submenu {
  --dropdown-inset: 0.4rem;
  min-width: 16.5rem;
  margin-top: 0.6rem;
  padding: var(--dropdown-inset);
  background: #ffffff;
  /* borda de 2px = mesma espessura do contorno da pílula ativa */
  border: 2px solid rgba(2, 62, 136, 0.10);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 32px rgba(2, 62, 136, 0.16),
              0 2px 6px rgba(2, 62, 136, 0.06);
  font-family: var(--font-primary);
}

/* Só a opacidade é animada. O Popper posiciona o menu escrevendo `transform`
   inline, e uma animação de transform venceria o inline no cascade — o menu
   saltaria para o canto do container ao abrir. */
.main-navigation .dropdown-menu.show,
.main-navigation .nav-submenu.show {
  animation: navDropdownIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes navDropdownIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.main-navigation .dropdown-item,
.main-navigation .nav-subitem {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--border-radius-md);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  /* o `.dropdown-item` do Bootstrap já zera isto; o `.nav-subitem` é classe nossa
     e cairia no `a { text-decoration: underline }` do reboot */
  text-decoration: none;
  /* o menu flutua e cresce até o rótulo mais longo; quebrar "Acompanhamento de
     Unidades" em duas linhas era o que deixava o bloco desalinhado */
  white-space: nowrap;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation .dropdown-item i,
.main-navigation .nav-subitem i {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

/* A parada em 140% corta o gradiente antes do azul mais claro: o ponto de menor
   contraste do texto branco sobe de 4.8:1 para ~5.6:1, sem inventar cor nova. */
.main-navigation .dropdown-item:hover,
.main-navigation .dropdown-item:focus,
.main-navigation .nav-subitem:hover,
.main-navigation .nav-subitem:focus {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 140%);
  color: #ffffff;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(2, 62, 136, 0.22);
}

.main-navigation .dropdown-item:hover i,
.main-navigation .dropdown-item:focus i,
.main-navigation .nav-subitem:hover i,
.main-navigation .nav-subitem:focus i {
  opacity: 1;
}

/* Mesmo tratamento da pílula ativa: fundo tingido + anel azul de 2px + peso 700.
   O anel é `inset box-shadow` e não `border` para não deslocar o texto em 2px
   quando o item entra e sai do estado ativo. */
.main-navigation .dropdown-item.active,
.main-navigation .dropdown-item:active,
.main-navigation .nav-subitem.active,
.main-navigation .nav-subitem:active {
  background: rgba(2, 62, 136, 0.08);
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.main-navigation .dropdown-item.active:hover,
.main-navigation .dropdown-item.active:focus,
.main-navigation .nav-subitem.active:hover,
.main-navigation .nav-subitem.active:focus {
  background: rgba(2, 62, 136, 0.14);
  color: var(--primary-blue);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.main-navigation .dropdown-item.active i,
.main-navigation .nav-subitem.active i {
  opacity: 1;
}

.main-navigation .dropdown-divider {
  height: 1px;
  margin: 0.45rem 0.25rem;
  border: 0;
  opacity: 1;
  background: linear-gradient(90deg,
              transparent 0%,
              var(--gray-300) 18%,
              var(--gray-300) 82%,
              transparent 100%);
}

/* ---- Submenu de segundo nível (ex.: "Fila de Regulação") ----
   Substitui o grupo achatado que ficava no MESMO painel do primeiro nível. Ali o
   agrupamento era só visual: cada serviço novo com filhos alongava a mesma lista
   até virar rolagem. Aqui o ramo tem painel próprio — o primeiro nível não cresce
   quando um serviço ganha filhos.

   Nada de vocabulário novo: o painel reaproveita as regras de `.dropdown-menu`
   (mesmo raio, mesma borda de 2px, mesma sombra) e o item as de `.dropdown-item`
   (mesmo gradiente no hover, mesmo anel inset no ativo) pelas listas de seletores
   lá em cima. Esta seção trata só do que é específico do segundo nível: posição,
   o gatilho e o chevron. */
.main-navigation .nav-submenu-parent {
  position: relative;
}

/* O gatilho é `<button>` (ver `js/nav-submenu.js`). Ele carrega `.dropdown-item`
   de propósito: assim continua dentro do rodízio de setas do PRIMEIRO nível, que
   é do Bootstrap — o botão é um item do nível de cima que por acaso abre um
   painel. Botão não herda fonte do container, daí o `font-family`. */
.main-navigation .nav-submenu-toggle {
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* O chevron é o único ícone que não é o ícone do item: vai encostado à direita e
   não entra na coluna fixa de 1.25rem dos outros. Precisa de três classes para
   vencer `.main-navigation .dropdown-item i`. */
.main-navigation .dropdown-item .nav-submenu-caret {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  padding-left: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}

/* Aberto = mesmo tratamento do hover, para o gatilho ficar visivelmente ligado ao
   painel que ele abriu (o hover sozinho não basta: no teclado e no toque o mouse
   não está em cima de nada). */
.main-navigation .nav-submenu-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 140%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 62, 136, 0.22);
}

.main-navigation .nav-submenu-toggle[aria-expanded="true"] i {
  opacity: 1;
}

/* ...mas se a página atual está DENTRO deste ramo, o anel de "você está aqui"
   manda mais que o estado de aberto. Quatro classes vencem `.dropdown-item.active`
   e o par acima. */
.main-navigation .nav-submenu-toggle.active[aria-expanded="true"] {
  background: rgba(2, 62, 136, 0.14);
  color: var(--primary-blue);
  box-shadow: inset 0 0 0 2px var(--primary-blue);
}

/* ---- O painel do segundo nível ---- */
.main-navigation .nav-submenu {
  display: none;
  position: absolute;
  top: calc(-1 * var(--dropdown-inset));
  left: 100%;
  z-index: 1001;
  /* `left: 100%` cai na borda do <li>, que está DENTRO do padding do painel pai.
     Somar o inset e descontar os 2px da borda encosta os dois painéis exatamente
     um no outro, dividindo a mesma linha, em vez de o submenu montar por cima da
     borda esquerda do pai. */
  margin: 0 0 0 calc(var(--dropdown-inset) - 2px);
  list-style: none;
}

.main-navigation .nav-submenu.show {
  display: block;
}

/* Ponte invisível sobre a costura entre os dois painéis.
   `left: 100%` cai na borda do <li>, mas o <li> termina antes do padding do
   painel pai — sobra uma faixa de ~4px que não pertence a ninguém. O mouse a
   caminho do submenu atravessa essa faixa, dispara o `mouseleave` do <li> e o
   submenu fechava na cara do usuário (medido, não suposto). A ponte é um
   pseudo-elemento DO SUBMENU, então o ponteiro sobre ela ainda conta como
   "dentro" do <li> pai. Cobre só o padding do painel: não intercepta clique de
   item nenhum. */
.main-navigation .nav-submenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: var(--dropdown-inset);
}

.main-navigation .nav-submenu-parent.nav-submenu-left .nav-submenu::before {
  right: auto;
  left: 100%;
}

/* O menu de primeiro nível é `dropdown-menu-end`, encostado na direita: em tela
   estreita abrir para a direita estouraria a viewport e criaria barra horizontal.
   O JS mede e vira o painel para cá; o chevron gira junto e continua apontando
   para onde o painel está. */
.main-navigation .nav-submenu-parent.nav-submenu-left .nav-submenu {
  left: auto;
  right: 100%;
  margin: 0 calc(var(--dropdown-inset) - 2px) 0 0;
}

.main-navigation .nav-submenu-parent.nav-submenu-left .nav-submenu-caret {
  transform: rotate(180deg);
}

/* ---- Foco visível pelo teclado ----
   A navbar não tinha estado de foco nenhum: quem navega por Tab não via onde
   estava. Azul institucional a 2px de distância cai sempre sobre fundo claro,
   com contraste bem acima de 3:1. */
.main-navigation .dropdown-item:focus-visible,
.main-navigation .nav-subitem:focus-visible,
.main-navigation .nav-link:focus-visible,
.main-navigation .navbar-brand:focus-visible,
.main-navigation .navbar-toggler:focus-visible,
.main-navigation .btn-admin-login:focus-visible,
.main-navigation .btn-admin-portal:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* A pílula ativa que abre menu precisa manter a setinha do Bootstrap. Redeclarada
   aqui com especificidade alta porque a cópia divergente do design system,
   carregada depois nas telas da fila, ainda traz a regra `.active::after` sem o
   `:not(.dropdown-toggle)`. */
.main-navigation .navbar-nav .nav-link.dropdown-toggle.active::after {
  content: '';
  position: static;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--primary-blue);
}

/* ---- Navbar colapsada (< 992px) ----
   Abaixo do breakpoint o Bootstrap torna o menu estático, dentro do sanduíche.
   Ali ele não é mais uma camada flutuante: sai a sombra, sai o deslocamento no
   hover e o alvo de toque cresce. */
@media (max-width: 991.98px) {
  .main-navigation .dropdown-menu,
  .main-navigation .nav-submenu {
    width: 100%;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    border-width: 1px;
    border-color: var(--gray-200);
    border-radius: var(--border-radius-md);
    box-shadow: none;
    background: var(--gray-50);
  }

  .main-navigation .dropdown-item,
  .main-navigation .nav-subitem {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
    /* alvo de toque: 44px é o piso da WCAG 2.2 (2.5.8 Target Size, AA). O
       padding sozinho dá ~44px com uma linha de texto — o `min-height` garante
       o piso mesmo quando o rótulo é curto. */
    min-height: 44px;
    /* no sanduíche o menu ocupa a largura da tela: aqui quebrar linha é o certo */
    white-space: normal;
  }

  .main-navigation .dropdown-item:hover,
  .main-navigation .dropdown-item:focus,
  .main-navigation .dropdown-item.active:hover,
  .main-navigation .nav-subitem:hover,
  .main-navigation .nav-subitem:focus,
  .main-navigation .nav-subitem.active:hover {
    transform: none;
  }

  /* ---- Segundo nível colapsado = acordeão ----
     Nada de painel flutuante sobre painel flutuante numa tela de 375px: o
     submenu volta ao fluxo e EMPURRA o resto do menu para baixo. O recuo à
     esquerda e o fundo branco sobre o cinza do painel de cima são o que diz que
     esta camada está um nível abaixo. */
  .main-navigation .nav-submenu {
    position: static;
    width: auto;
    margin: 0.25rem 0 0.35rem 0.9rem;
    background: #ffffff;
  }

  /* Sem painel flutuante não há costura para atravessar — e a ponte, aqui,
     viraria uma faixa invisível por cima do menu. */
  .main-navigation .nav-submenu::before {
    content: none;
  }

  /* O chevron deixa de apontar para o lado (não há lado nenhum aqui) e vira a
     seta de acordeão: fechado aponta para baixo-direita, aberto para baixo. */
  .main-navigation .nav-submenu-toggle[aria-expanded="true"] .nav-submenu-caret {
    transform: rotate(90deg);
  }

  /* No fluxo, o gatilho aberto não deve parecer um botão azul solto no meio da
     lista: mantém o painel do ramo coeso com o tratamento tingido. */
  .main-navigation .nav-submenu-toggle[aria-expanded="true"] {
    background: rgba(2, 62, 136, 0.08);
    color: var(--primary-blue);
    box-shadow: none;
  }

  .main-navigation .nav-submenu-toggle[aria-expanded="true"] i {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-navigation .dropdown-menu.show,
  .main-navigation .nav-submenu.show {
    animation: none;
  }

  .main-navigation .dropdown-item,
  .main-navigation .nav-subitem,
  /* três classes de novo: tem de vencer a regra que declara a transição */
  .main-navigation .dropdown-item .nav-submenu-caret {
    transition: none;
  }

  .main-navigation .dropdown-item:hover,
  .main-navigation .dropdown-item:focus,
  .main-navigation .dropdown-item.active:hover,
  .main-navigation .nav-subitem:hover,
  .main-navigation .nav-subitem:focus,
  .main-navigation .nav-subitem.active:hover {
    transform: none;
  }
}

/* ========================================
   BOTÃO PAINEL ADMIN (NAVEGAÇÃO)
   ======================================== */
.btn-admin-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-admin-portal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-admin-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-admin-login:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 991.98px) {
  .btn-admin-portal,
  .btn-admin-login {
    margin-top: 0.75rem;
    justify-content: center;
    width: 100%;
  }
}

/* ========================================
   PAGE HEADER SECTIONS
   ======================================== */
.page-header-section {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 60%, var(--primary-blue-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 31, 68, 0.3);
  z-index: 1;
}

.page-header-section .container {
  position: relative;
  z-index: 2;
}

.page-header-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

.page-header-description {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  line-height: 1.6;
  background: rgba(0, 31, 68, 0.15);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header-info {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-header-info small {
  opacity: 0.9;
}

.page-header-info strong {
  font-weight: 600;
}

/* ========================================
   CARDS MODERNOS
   ======================================== */
.card-modern {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: white;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.card-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  font-family: var(--font-primary);
}

/* ========================================
   BOTÕES MODERNOS
   ======================================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  font-family: var(--font-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
}

/* ========================================
   FOOTER MODERNO
   ======================================== */
.modern-footer {
  background: var(--gray-900);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-yellow) 0%, var(--secondary-green) 50%, var(--secondary-orange) 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.footer-info h5 {
  color: white;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.footer-info p {
  color: var(--gray-300);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  font-family: var(--font-primary);
}

.footer-info a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: white;
}

.footer-logo {
  text-align: right;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

/* ========================================
   TIPOGRAFIA GOVERNAMENTAL
   ======================================== */
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin: 0 0 var(--spacing-md) 0;
  letter-spacing: -0.01em;
}

h1 { 
  font-size: 2.5rem; 
  font-weight: 700;
  line-height: 1.1;
}

h2 { 
  font-size: 2rem; 
  font-weight: 600;
  line-height: 1.15;
}

h3 { 
  font-size: 1.5rem; 
  font-weight: 600;
}

h4 { 
  font-size: 1.25rem; 
  font-weight: 600;
}

h5 { 
  font-size: 1.125rem; 
  font-weight: 500;
}

h6 { 
  font-size: 1rem; 
  font-weight: 500;
}

p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--gray-600);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ========================================
   CLASSES DISPLAY
   ======================================== */
.display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; }
.display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.display-5 { font-size: 3rem; font-weight: 300; line-height: 1.2; }
.display-6 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* ========================================
   COMPONENTES ESPECIAIS
   ======================================== */

/* Cards de Estatísticas */
.stat-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Alertas Governamentais */
.alert-gov {
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.alert-gov.alert-info {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--info);
  border-left: 4px solid var(--info);
}

.alert-gov.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

.alert-gov.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-gov.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
}

/* Badges Governamentais */
.badge-gov {
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gov.badge-primary {
  background-color: var(--primary-blue);
  color: white;
}

.badge-gov.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-gov.badge-warning {
  background-color: var(--warning);
  color: white;
}

.badge-gov.badge-danger {
  background-color: var(--error);
  color: white;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
  .page-header-description {
    padding: var(--spacing-lg);
    font-size: 1.125rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .top_bar .top_menu {
    flex-direction: column;
    height: auto;
    padding: 8px 0;
  }
  
  .top_bar .nav_top {
    margin-top: 8px;
  }
  
  .top_bar .brasao-seplag ul {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .card-modern {
    margin-bottom: var(--spacing-lg);
  }
  
  .display-5 { 
    font-size: 2rem; 
  }
}

@media (max-width: 576px) {
  .page-header-description {
    padding: var(--spacing-md);
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .top_bar .brasao-seplag ul li a {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .display-5 { 
    font-size: 1.75rem; 
  }
  
  .btn-modern {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
  }
}

/* ========================================
   FIM DOS COMPONENTES
   ======================================== */

/*
INSTRUÇÕES DE USO:

1. Copie este arquivo CSS completo para seu projeto
2. Adicione as fontes Google no HTML:
   <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

3. Inclua Bootstrap 5.3+ e Font Awesome 6+:
   <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

4. Use os templates HTML fornecidos no DESIGN_SYSTEM_GUIDE.md

5. Customize as cores principais alterando as variáveis CSS conforme necessário

6. Teste a responsividade em todos os dispositivos

7. Valide a acessibilidade com ferramentas como WAVE ou axe
*/

/* ========================================
   BREADCRUMB ULTRA MODERNO
   ======================================== */
.breadcrumb-modern-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.breadcrumb-modern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 62, 136, 0.2) 50%, transparent 100%);
}

.breadcrumb-modern {
  position: relative;
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.breadcrumb-item-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.breadcrumb-item-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
}

.breadcrumb-item-link:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(2, 62, 136, 0.25);
  border-color: var(--primary-blue);
}

.breadcrumb-item-link:hover::before {
  opacity: 1;
}

.breadcrumb-item-link:hover .breadcrumb-icon {
  color: white;
}

.breadcrumb-item-link:hover .breadcrumb-text {
  color: white;
}

.breadcrumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--gray-500);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.breadcrumb-text {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.breadcrumb-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.breadcrumb-separator svg {
  transition: all 0.3s ease;
  width: 12px;
  height: 12px;
}

.breadcrumb-item-link:hover + .breadcrumb-separator svg {
  color: var(--primary-blue);
  transform: scale(1.1);
}

.breadcrumb-item-current {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(2, 62, 136, 0.3);
}

.breadcrumb-item-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 6px;
}

.breadcrumb-item-current .breadcrumb-icon {
  color: white;
  opacity: 0.9;
}

.breadcrumb-item-current .breadcrumb-text {
  color: white;
  font-weight: 600;
}

/* Responsividade ultra moderna */
@media (max-width: 768px) {
  .breadcrumb-container {
    gap: 0.25rem;
  }
  
  .breadcrumb-item-link,
  .breadcrumb-item-current {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .breadcrumb-icon {
    width: 12px;
    height: 12px;
  }
  
  .breadcrumb-separator svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .breadcrumb-modern-section {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .breadcrumb-separator {
    transform: rotate(90deg);
    margin: 0.125rem 0;
  }
  
  .breadcrumb-item-link,
  .breadcrumb-item-current {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Animações suaves */
.breadcrumb-container {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efeitos de profundidade */
.breadcrumb-item-link,
.breadcrumb-item-current {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.breadcrumb-item-link:hover {
  transform: translateY(-2px) rotateX(5deg);
}

/* Melhorias na acessibilidade */
.breadcrumb-item-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 12px;
}

.breadcrumb-item-current:focus {
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 12px;
}

/* ========================================
   BREADCRUMB INFO E STATUS
   ======================================== */
.breadcrumb-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.breadcrumb-info-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.breadcrumb-info-item i {
  font-size: 0.7rem;
}

.breadcrumb-info-item.status-online {
  color: var(--success);
}

.breadcrumb-info-item.status-online i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .breadcrumb-info {
    display: none;
  }
}

/* ========================================
   SEÇÃO DE FILTROS MODERNA
   ======================================== */
.filter-section-modern {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.filter-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.filter-section-modern .filter-title {
  color: var(--gray-800);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.filter-section-modern .filter-title i {
  color: var(--primary-blue);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn-modern {
  background: var(--gray-100);
  border: 2px solid transparent;
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-primary);
}

.filter-btn-modern:hover {
  background: rgba(2, 62, 136, 0.1);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-check:checked + .filter-btn-modern {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

/* ========================================
   CARDS DE BOLETINS
   ======================================== */
.boletim-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.boletim-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.boletim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.boletim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.boletim-category {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-green-light) 100%);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boletim-download-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
}

.boletim-download-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  color: white;
}

.boletim-card-title {
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.boletim-card-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.boletim-card-meta {
  color: var(--gray-500);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--gray-100);
}

.boletim-card-meta i {
  color: var(--primary-blue);
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-state i {
  color: var(--gray-400);
  margin-bottom: var(--spacing-md);
}

.empty-state h4 {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ========================================
   PAGINAÇÃO MODERNA
   ======================================== */
.pagination-modern {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.pagination-modern .pagination {
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.pagination-modern .page-link {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border: none;
  color: white;
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-modern .page-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.pagination-modern .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  box-shadow: var(--shadow-md);
}

.pagination-modern .page-item.disabled .page-link {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}

.pagination-modern .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
}

/* ========================================
   CARDS DE KPI (KEY PERFORMANCE INDICATORS)
   ======================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.kpi-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.kpi-card.success::before {
  background: linear-gradient(90deg, #059669 0%, var(--success) 100%);
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, #d97706 0%, var(--warning) 100%);
}

.kpi-card.danger::before {
  background: linear-gradient(90deg, #dc2626 0%, var(--error) 100%);
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 1.25rem;
}

.kpi-icon.primary {
  background: rgba(2, 62, 136, 0.1);
  color: var(--primary-blue);
}

.kpi-icon.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.kpi-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.kpi-icon.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========================================
   CARDS DE CLASSIFICAÇÃO DE RISCO
   ======================================== */
.risk-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  height: 100%;
}

.risk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.risk-card-header {
  padding: var(--spacing-md) var(--spacing-lg);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.risk-card-header.vermelho {
  background: linear-gradient(135deg, #DC2626 0%, var(--error) 100%);
}

.risk-card-header.laranja {
  background: linear-gradient(135deg, #EA580C 0%, #f97316 100%);
}

.risk-card-header.amarelo {
  background: linear-gradient(135deg, #D97706 0%, var(--secondary-yellow) 100%);
  color: var(--gray-900);
}

.risk-card-header.verde {
  background: linear-gradient(135deg, #059669 0%, var(--secondary-green) 100%);
}

.risk-card-header.azul {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.risk-card-header i {
  font-size: 1.25rem;
}

.risk-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.risk-card-body {
  padding: var(--spacing-lg);
}

.risk-card-description {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
  min-height: 40px;
}

.risk-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.risk-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.risk-stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.risk-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.risk-stat-value.vermelho { color: #DC2626; }
.risk-stat-value.laranja { color: #EA580C; }
.risk-stat-value.amarelo { color: #D97706; }
.risk-stat-value.verde { color: var(--secondary-green); }
.risk-stat-value.azul { color: var(--primary-blue-light); }
.risk-stat-value.small {
  font-size: 1rem;
  font-weight: 600;
}

.risk-card-footer {
  background: var(--gray-50);
  padding: 0.75rem var(--spacing-lg);
  border-top: 1px solid var(--gray-100);
}

.risk-card-footer small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* ========================================
   SEÇÃO DE CONTEÚDO E CABEÇALHOS
   ======================================== */
.content-section {
  margin-bottom: var(--spacing-2xl);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-lg);
}

.section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

@media (max-width: 576px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ========================================
   GRÁFICOS E VISUALIZAÇÕES
   ======================================== */
.chart-wrapper {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-200);
}

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-container {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .chart-container {
    height: 250px;
  }
}

/* ========================================
   BADGES DE STATUS
   ======================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-operacional {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.status-sobrecarga {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.status-manutencao {
  background: rgba(100, 116, 139, 0.15);
  color: var(--gray-600);
}

.status-fechada {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* ========================================
   CARDS DE INDICADORES
   ======================================== */
.indicator-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.indicator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.indicator-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
}

.indicator-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.indicator-badge.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.indicator-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.indicator-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.indicator-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ========================================
   CARDS DE RECURSOS
   ======================================== */
.resource-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.resource-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--gray-100);
}

.resource-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.resource-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.resource-body {
  flex: 1;
}

.resource-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.resource-stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.resource-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: var(--font-heading);
}

.resource-footer {
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-100);
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ========================================
   MAPA E LOCALIZAÇÃO
   ======================================== */
.map-section {
  position: relative;
  z-index: 1;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--gray-200);
}

#map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

.leaflet-container {
  height: 100% !important;
  width: 100% !important;
  z-index: 1 !important;
  font-family: var(--font-primary);
}

.leaflet-control-container {
  z-index: 800 !important;
}

.leaflet-pane {
  z-index: 400 !important;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 800 !important;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

/* Cards de Endereço */
.address-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--spacing-md);
}

.address-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.address-item:not(:last-child) {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.address-icon {
  width: 32px;
  height: 32px;
  background: rgba(2, 62, 136, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.address-text {
  flex: 1;
}

.address-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.125rem;
}

.address-value {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* ========================================
   BOTÕES DE ROTA
   ======================================== */
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
}

.btn-route {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-route i {
  font-size: 1rem;
}

.btn-route-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-route-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-route-google {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
  color: white;
}

.btn-route-google:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-route-waze {
  background: linear-gradient(135deg, #33CCFF 0%, #00D4FF 100%);
  color: #333;
}

.btn-route-waze:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #333;
}

.btn-route:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-route .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.route-info {
  background: rgba(2, 62, 136, 0.05);
  border: 1px solid rgba(2, 62, 136, 0.1);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: var(--spacing-md);
  display: none;
}

.route-info.show {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.route-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.route-info-item i {
  color: var(--primary-blue);
}

.route-info-item strong {
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .route-actions {
    flex-direction: column;
  }

  .btn-route {
    justify-content: center;
  }
}

/* ========================================
   ALERTAS MODERNOS
   ======================================== */
.alert-modern {
  border-radius: var(--border-radius-lg);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.alert-modern.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border-left: 4px solid var(--info);
}

.alert-modern.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
}

.alert-modern.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--error);
}

/* ========================================
   BARRAS DE PROGRESSO
   ======================================== */
.progress-section {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-200);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.progress-title {
  font-weight: 600;
  color: var(--gray-700);
}

.progress-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.progress-bar-wrapper {
  height: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.progress-bar-fill.success {
  background: linear-gradient(90deg, #059669 0%, var(--success) 100%);
}

.progress-bar-fill.warning {
  background: linear-gradient(90deg, #d97706 0%, var(--warning) 100%);
}

.progress-bar-fill.danger {
  background: linear-gradient(90deg, #dc2626 0%, var(--error) 100%);
}

/* ========================================
   RESPONSIVIDADE ADICIONAL PARA KPI
   ======================================== */
@media (max-width: 768px) {
  .kpi-value {
    font-size: 2rem;
  }

  .risk-stat-value {
    font-size: 1.25rem;
  }
}
