*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --azul-escuro:      #0c3266;
  --azul-medio:       #1a4a8a;
  --azul-claro:       #2060b8;
  --azul-nav:         #003087;
  --azul-nav-hover:   #0047c0;
  --azul-tab-ativa:   #1a5296;
  --cinza-borda:      #aaaaaa;
  --cinza-claro:      #e8e8e8;
  --cinza-fundo:      #f4f4f0;
  --cinza-medio:      #cccccc;
  --cinza-escuro:     #666666;
  --vermelho-aviso:   #cc0000;
  --vermelho-bg:      #fff0f0;
  --verde-ok:         #006600;
  --amarelo-gold:     #c8a840;
  --branco:           #ffffff;
  --texto-principal:  #222222;
  --texto-label:      #333333;
  --fonte-sistema:    Tahoma, Verdana, Arial, sans-serif;
}
body.alto-contraste {
  --azul-escuro:   #000000;
  --azul-medio:    #000000;
  --azul-nav:      #000000;
  --cinza-fundo:   #ffffff;
  --texto-label:   #000000;
  --branco:        #ffffff;
}
/* Estilo adicional para o modal */
.modal-pf {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-pf button {
    transition: all 0.2s ease;
}

.modal-pf button:hover {
    transform: scale(1.02);
}

.modal-pf button:active {
    transform: scale(0.98);
}

/* Animação do modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-pf > div > div {
    animation: modalFadeIn 0.3s ease;
}
html {
  font-size: 13px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  background-color: var(--cinza-fundo);
  color: var(--texto-principal);
  line-height: 1.45;
  min-width: 320px;
}
a {
  color: var(--azul-claro);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--azul-nav-hover);
}
.container-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}
.barra-acessibilidade {
  background-color: #333333;
  padding: 3px 0;
  border-bottom: 1px solid #555;
}
.barra-acessibilidade .container-inner {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.barra-acessibilidade a {
  color: #dddddd;
  font-size: 11px;
  text-decoration: underline;
}
.barra-acessibilidade a:hover {
  color: #ffffff;
}
#cabecalho {
  background-color: var(--branco);
  border-bottom: 1px solid #cccccc;
  padding: 8px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.titulo-header {
  display: flex;
  flex-direction: column;
  border-left: 2px solid #cccccc;
  padding-left: 12px;
}
.titulo-principal {
  font-size: 15px;
  font-weight: bold;
  color: var(--azul-escuro);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.titulo-sub {
  font-size: 11px;
  color: #555555;
  font-style: normal;
  margin-top: 2px;
}
#menu {
  background-color: var(--azul-nav);
  border-bottom: 2px solid var(--amarelo-gold);
  position: relative;
  z-index: 100;
}
.menu-principal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.menu-principal > li {
  position: relative;
}
.menu-principal > li > a {
  display: block;
  color: var(--branco);
  font-size: 12px;
  font-weight: bold;
  padding: 10px 14px;
  border-right: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s;
}
.menu-principal > li > a:hover,
.menu-principal > li > a.menu-ativo {
  background-color: var(--azul-nav-hover);
  color: var(--branco);
  text-decoration: none;
}
.menu-principal > li > a.menu-ativo {
  background-color: #004fce;
  border-bottom: 2px solid var(--amarelo-gold);
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-top: 2px solid var(--amarelo-gold);
  list-style: none;
  min-width: 230px;
  z-index: 200;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.25);
}
.tem-submenu:hover .submenu {
  display: block;
}
.submenu li a {
  display: block;
  color: var(--azul-escuro);
  font-size: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  white-space: nowrap;
}
.submenu li a:hover {
  background-color: #ddeeff;
  color: var(--azul-escuro);
  text-decoration: none;
}
.aviso-navegacao {
  background-color: var(--vermelho-bg);
  border-top: 1px solid var(--cinza-borda);
  border-bottom: 2px solid var(--vermelho-aviso);
  padding: 7px 0;
}
.aviso-navegacao .container-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--vermelho-aviso);
  font-size: 12px;
  position: relative;
  padding-right: 30px;
}
.aviso-icone {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.fechar-aviso {
  position: absolute;
  right: 12px;
  top: 0;
  background: none;
  border: none;
  color: var(--vermelho-aviso);
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  padding: 0 4px;
  line-height: 1.4;
}
.fechar-aviso:hover {
  color: #880000;
}
main {
  padding: 14px 0 30px;
}
.titulo-formulario {
  font-size: 16px;
  font-weight: bold;
  color: var(--azul-escuro);
  border-bottom: 2px solid var(--azul-escuro);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.abas-container {
  margin-bottom: 0;
}
.abas-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--azul-tab-ativa);
  padding: 0;
  gap: 2px;
}
.abas-lista li {
  margin-bottom: -2px;
}
.aba {
  display: inline-block;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid var(--cinza-borda);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--cinza-claro);
  color: var(--cinza-escuro);
  transition: background-color 0.1s;
}
.aba-num {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background-color: var(--cinza-medio);
  color: var(--cinza-escuro);
  border-radius: 50%;
  font-size: 11px;
  margin-right: 5px;
}
.aba-ativa {
  background-color: var(--azul-tab-ativa);
  color: var(--branco);
  border-color: var(--azul-tab-ativa);
  border-bottom: 2px solid var(--azul-tab-ativa);
  cursor: default;
}
.aba-ativa .aba-num {
  background-color: var(--amarelo-gold);
  color: #222;
}
.aba-concluida {
  background-color: #e0ffe0;
  color: var(--verde-ok);
  border-color: #88cc88;
}
.aba-concluida .aba-num {
  background-color: var(--verde-ok);
  color: var(--branco);
}
.aba-inativa:hover {
  background-color: #ddeeff;
  color: var(--azul-escuro);
  text-decoration: none;
}
.erros-container {
  background-color: var(--vermelho-bg);
  border: 2px solid var(--vermelho-aviso);
  border-radius: 2px;
  padding: 10px 16px;
  margin: 10px 0 8px;
}
.erros-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.erros-container ul li {
  color: var(--vermelho-aviso);
  font-size: 12px;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.erros-container ul li::before {
  content: "✖";
  position: absolute;
  left: 0;
  font-size: 11px;
}
.nota-obrigatorio {
  font-size: 11px;
  color: var(--cinza-escuro);
  margin: 6px 0 12px;
  font-style: italic;
}
.painel {
  display: none;
  border: 1px solid var(--cinza-borda);
  border-top: none;
  background-color: var(--branco);
  padding: 16px;
}
.painel-ativo {
  display: block;
}
.secao-fieldset {
  border: 1px solid var(--cinza-borda);
  border-radius: 2px;
  margin-bottom: 18px;
  padding: 0;
  background-color: var(--branco);
}
.secao-legend {
  background-color: var(--azul-medio);
  color: var(--branco);
  font-size: 12px;
  font-weight: bold;
  padding: 5px 12px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-radius: 2px 2px 0 0;
}
.legend-icon {
  font-size: 10px;
  opacity: 0.85;
}
.legend-sub {
  font-size: 11px;
  font-weight: normal;
  color: #b0c8e8;
  font-style: italic;
}
.secao-fieldset .form-grid {
  padding: 14px 16px 6px;
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}
.campo-grupo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.campo-full   { flex: 1 1 100%; }
.campo-meio   { flex: 1 1 calc(50% - 7px); min-width: 200px; }
.campo-terco  { flex: 1 1 calc(33% - 10px); min-width: 150px; }
.separador-topo {
  border-top: 1px dashed #dddddd;
  padding-top: 10px;
  margin-top: 2px;
}
.campo-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--texto-label);
  line-height: 1.3;
}
.sublabel {
  color: var(--cinza-escuro);
  font-weight: normal;
}
.campo-secao-label {
  font-size: 13px;
  color: var(--azul-escuro);
  text-decoration: underline;
}
.obrigatorio {
  color: var(--vermelho-aviso);
  font-weight: bold;
}
.campo-dica {
  font-size: 10px;
  color: var(--cinza-escuro);
  font-style: italic;
  margin-top: -1px;
}
.campo-input,
.campo-select {
  font-family: var(--fonte-sistema);
  font-size: 12px;
  color: var(--texto-principal);
  background-color: var(--branco);
  border: 1px solid #999999;
  border-radius: 0;
  padding: 4px 6px;
  height: 26px;
  width: 100%;
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
  -webkit-appearance: none;
  appearance: none;
}
.campo-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  padding-right: 22px;
  cursor: pointer;
}
.campo-input:focus,
.campo-select:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 2px rgba(32, 96, 184, 0.18);
  outline: none;
}
.campo-input.campo-erro,
.campo-select.campo-erro {
  border-color: var(--vermelho-aviso) !important;
  background-color: #fff5f5 !important;
}
.campo-data {
  max-width: 140px;
}
.campo-cep {
  max-width: 120px;
}
.radio-grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
}
.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--texto-principal);
  cursor: pointer;
  line-height: 1.3;
}
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.checkbox-grupo {
  margin-bottom: 5px;
}
.btn-adicionar {
  font-family: var(--fonte-sistema);
  font-size: 12px;
  font-weight: bold;
  color: var(--azul-escuro);
  background-color: #d8e8f8;
  border: 1px solid #88aad4;
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
}
.btn-adicionar:hover {
  background-color: #c0d8f0;
  border-color: #6699cc;
}
.lista-nomes-anteriores {
  width: 100%;
  min-height: 20px;
}
.item-nome-anterior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f0f8ff;
  border: 1px solid #aaccee;
  padding: 5px 10px;
  margin-top: 5px;
  font-size: 12px;
  border-radius: 2px;
}
.item-nome-anterior button {
  background: none;
  border: none;
  color: var(--vermelho-aviso);
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  padding: 0 4px;
  line-height: 1;
}
.item-nome-anterior button:hover {
  color: #880000;
}
.rodape-formulario {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--cinza-claro);
  gap: 8px;
}
.rodape-dois-botoes {
  justify-content: space-between;
}
.btn-proximo {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  font-weight: bold;
  color: var(--branco);
  background-color: var(--azul-medio);
  border: 1px solid var(--azul-escuro);
  padding: 7px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
  letter-spacing: 0.5px;
}
.btn-proximo:hover {
  background-color: var(--azul-claro);
}
.btn-anterior {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  font-weight: bold;
  color: var(--cinza-escuro);
  background-color: var(--cinza-claro);
  border: 1px solid var(--cinza-borda);
  padding: 7px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
}
.btn-anterior:hover {
  background-color: var(--cinza-medio);
}
.btn-revisar {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  font-weight: bold;
  color: var(--azul-escuro);
  background-color: #d8e8f8;
  border: 1px solid #88aad4;
  padding: 7px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
}
.btn-revisar:hover {
  background-color: #b8d0f0;
}
.btn-finalizar {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  font-weight: bold;
  color: var(--branco);
  background-color: #006600;
  border: 1px solid #004400;
  padding: 7px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
}
.btn-finalizar:hover {
  background-color: #008800;
}
.resumo-dados {
  border: 1px solid var(--cinza-borda);
  background-color: #fafafa;
  padding: 14px;
  min-height: 80px;
  font-size: 12px;
  margin-bottom: 14px;
  border-radius: 2px;
}
.resumo-instrucao {
  color: var(--cinza-escuro);
  font-style: italic;
}
.resumo-secao {
  margin-bottom: 12px;
}
.resumo-secao h3 {
  font-size: 12px;
  color: var(--azul-escuro);
  border-bottom: 1px solid var(--cinza-claro);
  padding-bottom: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.resumo-tabela {
  width: 100%;
  border-collapse: collapse;
}
.resumo-tabela td {
  padding: 3px 6px;
  vertical-align: top;
  font-size: 12px;
  border-bottom: 1px dotted #e0e0e0;
}
.resumo-tabela td:first-child {
  font-weight: bold;
  color: var(--texto-label);
  width: 35%;
  white-space: nowrap;
}
.resumo-tabela td:last-child {
  color: var(--texto-principal);
}
.declaracao-box {
  background-color: #fffde8;
  border: 1px solid #ccbb44;
  border-radius: 2px;
  padding: 10px 14px;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.aberto {
  display: flex;
}
.modal-box {
  background: var(--branco);
  border: 2px solid var(--azul-medio);
  border-top: 5px solid var(--azul-medio);
  border-radius: 3px;
  padding: 30px 36px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.modal-box h2 {
  font-size: 17px;
  color: var(--verde-ok);
  margin-bottom: 12px;
}
.modal-box p {
  font-size: 13px;
  color: var(--texto-principal);
  margin-bottom: 16px;
  line-height: 1.5;
}
.modal-protocolo {
  font-size: 20px;
  font-weight: bold;
  color: var(--azul-escuro);
  background: var(--cinza-fundo);
  border: 1px solid var(--cinza-borda);
  padding: 8px 20px;
  display: inline-block;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.modal-fechar {
  font-family: var(--fonte-sistema);
  font-size: 13px;
  font-weight: bold;
  color: var(--branco);
  background-color: var(--azul-medio);
  border: 1px solid var(--azul-escuro);
  padding: 7px 24px;
  cursor: pointer;
  border-radius: 2px;
}
.modal-fechar:hover {
  background-color: var(--azul-claro);
}
#rodape {
  background-color: #222222;
  border-top: 3px solid var(--amarelo-gold);
  padding: 14px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-texto {
  font-size: 11px;
  color: #aaaaaa;
  text-align: center;
  line-height: 1.5;
}
.footer-versao {
  font-size: 10px;
  color: #666666;
}
.mensagem-sucesso {
  background-color: #e8ffe8;
  border: 2px solid var(--verde-ok);
  border-radius: 2px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--verde-ok);
  display: none;
}
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
  .menu-principal {
    flex-direction: column;
  }
  .menu-principal > li > a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 10px 12px;
  }
  .submenu {
    position: static;
    border-top: none;
    box-shadow: none;
    border: none;
    background-color: #002060;
    min-width: 100%;
  }
  .submenu li a {
    color: #ccddff;
    border-bottom-color: rgba(255,255,255,0.1);
    padding-left: 24px;
    background: transparent;
  }
  .submenu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
  }
  .campo-meio,
  .campo-terco {
    flex: 1 1 100%;
    min-width: 0;
  }
  .abas-lista {
    gap: 1px;
  }
  .aba {
    padding: 6px 10px;
    font-size: 11px;
  }
  .rodape-dois-botoes {
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-proximo,
  .btn-anterior,
  .btn-revisar,
  .btn-finalizar {
    width: 100%;
    text-align: center;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-img {
    height: 54px;
  }
  .titulo-principal {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .abas-lista {
    flex-direction: column;
    border-bottom: none;
  }
  .abas-lista li {
    margin-bottom: 0;
  }
  .aba {
    border-radius: 2px;
    border: 1px solid var(--cinza-borda);
    margin-bottom: 2px;
  }
  .aba-ativa {
    border: 1px solid var(--azul-tab-ativa);
  }
  .painel {
    border: 1px solid var(--cinza-borda);
  }
  .secao-fieldset {
    margin-bottom: 12px;
  }
}
input:required:valid:not([value=""]) {
  border-color: #88bb88;
}
.pag-wrap { padding: 16px 20px 8px; }
.pag-subtitulo {
  font-size: 13px;
  color: #444;
  margin-bottom: 16px;
  font-weight: normal;
}
.taxa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tc {
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.12s;
}
.tc:hover { border-color: #888; }
.tc.tc-selecionado {
  border-color: #1a4a8a;
  border-width: 2px;
  background: #f5f8ff;
}
.tc.tc-selecionado .tc-faixa-azul    { background: #1a4a8a; }
.tc.tc-selecionado .tc-faixa-laranja { background: #b05a00; }
.tc.tc-selecionado .tc-faixa-vermelho{ background: #8b1010; }
.tc-sel-indicator {
  font-size: 11px;
  color: #1a4a8a;
  font-weight: bold;
  display: none;
}
.tc-sel-indicator.visivel { display: inline; }
.tc:hover .tc-link { text-decoration: underline; }
.tc-faixa { height: 4px; width: 100%; }
.tc-faixa-azul    { background: #1a4a8a; }
.tc-faixa-laranja { background: #b05a00; }
.tc-faixa-vermelho{ background: #8b1010; }
.tc-inner {
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tc-categoria {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  color: #1a4a8a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 4px;
}
.tc-nome {
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.tc-desc {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #555;
  line-height: 1.45;
  margin: 0 0 8px 0;
  flex: 1;
}
.tc-badge {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 9.5px;
  color: #1a4a8a;
  background: #eef3fa;
  border: 1px solid #b0c8e8;
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.tc-badge-laranja { color: #8c4400; background: #fdf2e6; border-color: #dba060; }
.tc-badge-vermelho{ color: #7a1010; background: #fdf0f0; border-color: #d08080; }
.tc-sep {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0 0 8px 0;
}
.tc-rodape {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.tc-valor {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #1a4a8a;
  line-height: 1;
}
.tc-link {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #1a4a8a;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.pag-aviso-info {
  font-size: 11px;
  color: #5a4400;
  background: #fffcf0;
  border: 1px solid #d4b800;
  border-left: 3px solid #b09000;
  padding: 7px 10px;
  line-height: 1.5;
  border-radius: 2px;
}
@media (max-width: 700px) {
  .taxa-grid { grid-template-columns: 1fr; }
}
.gw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.gw-overlay.aberto { display: flex; }
.gw-modal {
  background: #fff;
  border-radius: 10px;
  width: 680px;
  max-width: 96vw;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  animation: gwEntrar 0.2s ease;
}
@keyframes gwEntrar {
  from { opacity:0; transform: translateY(20px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.gw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #f8f9fb;
  border-radius: 10px 10px 0 0;
}
.gw-header-esq { display: flex; align-items: center; gap: 12px; }
.gw-logo-pf { display: flex; align-items: center; }
.gw-titulo { font-size: 13px; font-weight: bold; color: #1a1a1a; }
.gw-subtitulo { font-size: 11px; color: #666; }
.gw-fechar {
  background: none; border: none; font-size: 18px; color: #888; cursor: pointer;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.1s;
}
.gw-fechar:hover { background: #f0f0f0; color: #333; }
.gw-taxa-resumo {
  margin: 16px 20px 0;
  background: #f0f5ff;
  border: 1px solid #b8d0f0;
  border-radius: 6px;
  padding: 12px 16px;
}
.gw-taxa-resumo-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gw-taxa-resumo-nome {
  font-size: 13px;
  font-weight: bold;
  color: #1a3a6e;
}
.gw-taxa-resumo-valor {
  font-size: 18px;
  font-weight: bold;
  color: #1a5296;
  white-space: nowrap;
}
.gw-taxa-resumo-detalhe {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
}
.gw-metodo-label {
  font-size: 11px;
  color: #666;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 20px 8px;
}
.gw-metodo-tabs {
  display: flex;
  gap: 8px;
  margin: 0 20px 0;
}
.gw-metodo-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 7px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background: #f8f8f8;
  color: #444;
  transition: background 0.1s, border-color 0.1s;
}
.gw-metodo-tab:hover { background: #eef4ff; border-color: #6a9fd8; }
.gw-tab-ativo {
  background: #fff;
  border-color: #1a5296;
  border-bottom-color: #fff;
  color: #1a5296;
}
.gw-metodo-conteudo { padding: 16px 20px; }
.gw-pix-wrap { display: flex; gap: 20px; flex-wrap: wrap; }
.gw-pix-col-qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.gw-pix-instrucao {
  font-size: 12px; color: #444; text-align: center; line-height: 1.5;
}
.gw-qr-box {
  border: 2px solid #32BCAD;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(50,188,173,0.15);
}
.gw-pix-timer-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gw-pix-timer-label { font-size: 10px; color: #888; text-transform: uppercase; }
.gw-pix-timer {
  font-size: 20px; font-weight: bold; color: #cc0000;
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.gw-pix-col-dados { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 12px; }
.gw-pix-dado { display: flex; flex-direction: column; gap: 3px; }
.gw-pix-dado-label {
  font-size: 10px; font-weight: bold; color: #888;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.gw-pix-dado-valor {
  font-size: 24px; font-weight: bold; color: #1a5296;
}
.gw-pix-dado-texto { font-size: 12px; color: #333; line-height: 1.5; }
.gw-pix-copia { display: flex; gap: 6px; align-items: center; }
.gw-pix-copia-input {
  font-family: monospace; font-size: 10px; color: #333;
  background: #f5f5f5; border: 1px solid #ccc;
  padding: 5px 8px; border-radius: 4px; flex: 1; min-width: 0;
  cursor: text;
}
.gw-pix-copia-btn {
  display: flex; align-items: center; gap: 5px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px; font-weight: bold; color: #fff;
  background: #32BCAD; border: none; padding: 5px 12px;
  border-radius: 4px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.gw-pix-copia-btn:hover { background: #28a99b; }
.gw-pix-copiado {
  font-size: 11px; color: #006600; font-weight: bold; display: none;
}
.gw-pix-aviso {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 11px; color: #7a5800;
  background: #fffde8; border: 1px solid #e6c200;
  border-radius: 4px; padding: 8px 10px; line-height: 1.5;
}
.gw-gru-wrap { text-align: center; padding: 8px 0; }
.gw-gru-icon { margin-bottom: 8px; }
.gw-gru-titulo { font-size: 14px; font-weight: bold; color: #1a3a6e; margin-bottom: 6px; }
.gw-gru-desc { font-size: 12px; color: #555; margin-bottom: 16px; line-height: 1.5; }
.gw-gru-codigo-wrap { margin: 0 auto; max-width: 440px; }
.gw-gru-barras {
  background: #fff; border: 1px solid #ccc; padding: 8px 12px;
  border-radius: 4px; margin: 8px 0;
}
.gw-gru-num { font-family: monospace; font-size: 12px; color: #333; letter-spacing: 1px; }
.gw-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e8e8e8;
  background: #f8f9fb;
  border-radius: 0 0 10px 10px;
  gap: 12px;
}
.gw-footer-seg {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #006600; font-weight: bold;
}
.gw-btn-confirmar {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 13px; font-weight: bold; color: #fff;
  background: linear-gradient(135deg, #1a5296 0%, #2070cc 100%);
  border: none; padding: 9px 28px; border-radius: 5px;
  cursor: pointer; letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(26,82,150,0.3);
  transition: background 0.15s, box-shadow 0.15s;
}
.gw-btn-confirmar:hover {
  background: linear-gradient(135deg, #123f7a 0%, #1860b0 100%);
  box-shadow: 0 4px 14px rgba(26,82,150,0.4);
}
@media (max-width: 768px) {
  .taxa-grid { grid-template-columns: 1fr; }
  .gw-pix-wrap { flex-direction: column; align-items: center; }
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--cinza-claro);
  border: 1px solid var(--cinza-medio);
}
::-webkit-scrollbar-thumb {
  background-color: #aaaaaa;
  border: 1px solid #888888;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #888888;
}
::selection {
  background-color: #c0d8ff;
  color: var(--texto-principal);
}