*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: #F1F5E6;
  font-family: Inter, system-ui, sans-serif;
  color: #1C2117;
}

a {
  color: #4F6A0A;
}
a:hover {
  color: #3B5007;
}
a:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.mf-card {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(30, 45, 10, 0.18);
}

.mf-painel {
  flex: 1 1 460px;
  min-width: 0;
  background: #98C01F;
  padding: 40px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mf-painel__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mf-painel__simbolo {
  width: 64px;
  height: 52px;
  flex: 0 0 auto;
  background: #2c2832;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(30, 45, 10, 0.15);
}
.mf-painel__simbolo img {
  width: 44px;
  height: auto;
  display: block;
}
.mf-painel__marca {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #15200A;
}
.mf-painel__slogan {
  margin-top: 8px;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: #15200A;
}
.mf-painel__ilustracao-area {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mf-painel__ilustracao {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 32px 24px 0;
}
.mf-painel__ilustracao img {
  width: 100%;
  height: auto;
  display: block;
}

.mf-lado-form {
  flex: 1 1 400px;
  min-width: 0;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mf-titulo {
  margin: 0 0 6px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.mf-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mf-campo label {
  font-size: 14px;
  font-weight: 600;
}

.mf-input {
  height: 44px;
  padding: 0 14px;
  font: 15px Inter, system-ui, sans-serif;
  color: #1C2117;
  background: #F4F6F1;
  border: 1px solid #CFD6C6;
  border-radius: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mf-input::placeholder {
  color: #5C6655;
}
.mf-input:focus {
  outline: 2px solid #4F6A0A;
  outline-offset: 1px;
  background: #FFFFFF;
}
.mf-input--codigo {
  height: 56px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-align: center;
}

.mf-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.mf-lembrar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.mf-lembrar input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #98C01F;
}

.mf-link-leve {
  font-weight: 500;
  text-decoration: none;
  padding: 12px 0;
}

.mf-texto-centro {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #4A5244;
}
.mf-texto-centro a {
  font-weight: 600;
}

.mf-btn {
  height: 46px;
  border-radius: 8px;
  font: 600 15px Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}
.mf-btn:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
}
.mf-btn--principal {
  border: 0;
  background: #98C01F;
  color: #15200A;
}
.mf-btn--principal:hover {
  filter: brightness(0.95);
}
.mf-btn--secundario {
  border: 1px solid #CFD6C6;
  background: #FFFFFF;
  color: #1C2117;
}
.mf-btn--secundario:hover {
  background: #F4F6F1;
}
.mf-btn--grande {
  height: 48px;
  font-size: 16px;
}

.mf-botoes {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.mf-botoes .mf-btn {
  flex: 1 1 0;
}

.mf-modal {
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 32px;
  border: 0;
  border-radius: 16px;
  color: #1C2117;
  box-shadow: 0 24px 60px rgba(20, 28, 12, 0.3);
}
.mf-modal::backdrop {
  background: rgba(20, 28, 12, 0.55);
}
.mf-modal h2 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 22px;
}
.mf-modal__corpo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mf-modal__fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4A5244;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-modal__fechar:hover {
  background: #F4F6F1;
}
.mf-modal__fechar:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
}
.mf-modal__icone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EEF5D9;
  color: #4F6A0A;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-modal__texto {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4A5244;
}
.mf-modal__texto--menor {
  font-size: 14px;
}
.mf-modal__texto a {
  font-weight: 600;
}
.mf-modal__aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #F5F9EA;
  border: 1px solid #DDE8BE;
  border-radius: 10px;
  font-size: 14px;
}
.mf-modal__aviso a {
  font-weight: 600;
}

.mf-erro,
.mf-sucesso {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.mf-erro {
  background: #FDECEC;
  border: 1px solid #F5C2C2;
  color: #9B1C1C;
}

.mf-sucesso {
  background: #F5F9EA;
  border: 1px solid #DDE8BE;
  color: #3B5007;
}

.mf-dica {
  font-size: 13px;
  color: #4A5244;
}

.mf-input--pa {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mf-link-botao {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #4F6A0A;
  text-decoration: underline;
  cursor: pointer;
}
.mf-link-botao:hover {
  color: #3B5007;
}
.mf-link-botao:disabled {
  color: #4A5244;
  text-decoration: none;
  cursor: default;
}
.mf-link-botao:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
  border-radius: 4px;
}

.mf-btn:disabled {
  cursor: progress;
  opacity: 0.75;
  filter: none;
}

.mf-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mf-card--simples {
  max-width: 460px;
  flex-direction: column;
}
.mf-card--simples .mf-simples__topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: #2c2832;
}
.mf-card--simples .mf-simples__topo .mf-painel__simbolo {
  width: 48px;
  height: 40px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}
.mf-card--simples .mf-simples__topo .mf-painel__simbolo img {
  width: 34px;
}
.mf-card--simples .mf-simples__topo .mf-painel__marca {
  font-size: 22px;
  color: #FFFFFF;
}
.mf-card--simples .mf-simples__faixa {
  height: 4px;
  background: #98C01F;
}
.mf-card--simples .mf-simples__corpo {
  padding: 32px 28px;
}
.mf-card--simples .mf-form {
  max-width: none;
}

body.pn-body {
  display: block;
  padding: 0;
}

.pn-topo {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 12px 24px;
  background: #2c2832;
  color: #FFFFFF;
  border-bottom: 4px solid #98C01F;
}

.pn-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pn-marca:hover {
  color: #FFFFFF;
}
.pn-marca small {
  margin-left: 6px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  color: #98C01F;
}

.pn-simbolo {
  width: 40px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.pn-simbolo img {
  width: 28px;
}

.pn-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
}
.pn-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #E6E4EA;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.pn-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.pn-menu a[aria-current=page] {
  background: #98C01F;
  color: #15200A;
}

.pn-sair {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.pn-quem {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.pn-quem small {
  font-weight: 400;
  color: #C9C6CF;
}

.pn-btn-sair {
  height: 40px;
  padding: 0 16px;
}

.pn-conteudo {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.pn-titulo {
  margin: 0 0 8px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 26px;
}

.pn-sub {
  margin: 0 0 24px;
  color: #4A5244;
}

.pn-aviso {
  margin-bottom: 16px;
}

.pn-cartao {
  background: #FFFFFF;
  border: 1px solid #E3E8DA;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(30, 45, 10, 0.06);
}

.pn-vazio {
  padding: 32px;
  text-align: center;
  color: #4A5244;
}
.pn-vazio p {
  margin: 0 0 6px;
}

.pn-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.pn-app {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  color: #1C2117;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pn-app:hover {
  color: #1C2117;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 45, 10, 0.12);
}
.pn-app:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
}
.pn-app__inicial {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #98C01F;
  color: #15200A;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.pn-app__nome {
  margin-top: 6px;
  font-weight: 600;
  font-size: 17px;
}
.pn-app__papel {
  font-size: 13px;
  color: #4A5244;
}

.pn-colunas {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pn-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.pn-form h2 {
  margin: 0;
  font-size: 18px;
}

.pn-fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid #E3E8DA;
  border-radius: 8px;
}
.pn-fieldset legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.pn-acessos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.pn-acesso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.pn-acesso small {
  color: #4A5244;
}

.pn-select {
  height: 40px;
  width: 160px;
  padding: 0 10px;
}

.pn-textarea {
  height: auto;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}

.pn-tabela-cartao {
  overflow: hidden;
}

.pn-tabela-topo {
  padding: 16px 20px;
  border-bottom: 1px solid #E3E8DA;
}
.pn-tabela-topo h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.pn-tabela-topo p {
  margin: 0;
}

.pn-rolagem {
  overflow-x: auto;
}

.pn-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pn-tabela th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A5244;
  background: #F7F9F3;
  border-bottom: 1px solid #E3E8DA;
  white-space: nowrap;
}
.pn-tabela td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid #EEF1E8;
}
.pn-tabela td small {
  color: #4A5244;
}
.pn-tabela code {
  font-size: 12px;
}

.pn-dir {
  text-align: right;
}

.pn-acoes {
  white-space: nowrap;
}
.pn-acoes form {
  display: inline;
  margin: 0;
}
.pn-acoes a,
.pn-acoes button {
  margin-left: 12px;
  padding: 6px 0;
  border: 0;
  background: none;
  font: 600 13px Inter, system-ui, sans-serif;
  color: #4F6A0A;
  text-decoration: none;
  cursor: pointer;
}
.pn-acoes a:hover,
.pn-acoes button:hover {
  color: #3B5007;
  text-decoration: underline;
}
.pn-acoes a:focus-visible,
.pn-acoes button:focus-visible {
  outline: 2px solid #4F6A0A;
  outline-offset: 2px;
  border-radius: 4px;
}
.pn-acoes .pn-perigo {
  color: #B42318;
}
.pn-acoes .pn-perigo:hover {
  color: #8A1A12;
}

.pn-apagado td {
  opacity: 0.55;
}

.pn-selo {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #EEF1E8;
  color: #1C2117;
}
.pn-selo--ok {
  background: #E6F4DA;
  color: #2F5A0B;
}
.pn-selo--aviso {
  background: #FFF3D6;
  color: #7A4B00;
}
.pn-selo--nao {
  background: #FDECEC;
  color: #9B1C1C;
}
.pn-selo--ti {
  background: #2c2832;
  color: #FFFFFF;
}

.pn-texto-suave {
  color: #4A5244;
}

.pn-texto-erro {
  color: #9B1C1C;
}

.pn-codigo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  border-color: #DDE8BE;
  background: #FBFDF6;
}
.pn-codigo p {
  margin: 6px 0;
}
.pn-codigo__valor {
  margin: 8px 0;
  font-family: Consolas, Menlo, monospace;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.18em;
}

.pn-dados {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 10px 0 0;
  font-size: 14px;
}
.pn-dados dt {
  color: #4A5244;
}
.pn-dados dd {
  margin: 0;
  word-break: break-all;
}
.pn-dados code {
  font-size: 13px;
  font-weight: 600;
}

.pn-editar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #F7F9F3;
  border-radius: 8px;
}

.pn-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pn-colunas {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .pn-topo {
    padding: 12px 16px;
  }
  .pn-conteudo {
    padding: 20px 16px 40px;
  }
  .pn-quem {
    display: none;
  }
  .pn-acesso {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-select {
    width: 100%;
  }
  .pn-dados {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .mf-painel {
    padding: 28px 24px 0;
  }
  .mf-lado-form {
    padding: 40px 24px;
  }
  .mf-modal {
    padding: 28px 22px;
  }
}
