/* =========================================================
   AUDITOR XML PIS/COFINS
   Arquivo: auditor-xml-pis-cofins.css
========================================================= */

.af-auditor-piscofins {
  min-height: calc(100vh - 44px);
  background:
    radial-gradient(circle at top center, rgba(0, 113, 227, 0.10), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: #1d1d1f;
  font-family: inherit;
}

/* HERO */
.af-auditor-piscofins .af-auditor-hero {
  padding: 82px 20px 44px;
  text-align: center;
}

.af-auditor-piscofins .af-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.af-auditor-piscofins .af-auditor-hero .af-container {
  max-width: 920px;
}

.af-auditor-piscofins .af-auditor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.af-auditor-piscofins .af-auditor-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #1d1d1f;
}

.af-auditor-piscofins .af-auditor-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.65;
  color: #5f6368;
}

/* UPLOAD */
.af-auditor-piscofins .af-auditor-upload {
  padding: 24px 20px;
}

.af-auditor-piscofins .af-auditor-upload-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.af-auditor-piscofins .af-auditor-upload-box h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #1d1d1f;
}

.af-auditor-piscofins .af-auditor-upload-box p {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #6e6e73;
}

/* INPUT XML */
.af-auditor-piscofins #xmlInput {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px dashed rgba(0, 113, 227, 0.45);
  border-radius: 18px;
  background: #f8fbff;
  color: #1d1d1f;
  font-size: 14px;
  cursor: pointer;
}

.af-auditor-piscofins #xmlInput:hover {
  background: #f2f7ff;
  border-color: rgba(0, 113, 227, 0.7);
}

/* BOTÃO */
.af-auditor-piscofins #btnAnalisarXML {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: #0071e3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.af-auditor-piscofins #btnAnalisarXML:hover {
  transform: translateY(-1px);
  background: #0066cc;
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.30);
}

.af-auditor-piscofins #btnAnalisarXML:active {
  transform: translateY(0);
}

/* STATUS */
.af-auditor-piscofins #statusAuditoria {
  min-height: 22px;
  margin-top: 18px;
  font-size: 14px;
  color: #5f6368;
}

/* RESULTADOS */
.af-auditor-piscofins .af-auditor-resultados {
  padding: 30px 20px 90px;
}

.af-auditor-piscofins .af-auditor-resultados .af-container {
  max-width: 980px;
}

.af-auditor-piscofins .af-auditor-resultados h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #1d1d1f;
}

.af-auditor-piscofins #resultadoAuditoria {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.07);
  color: #5f6368;
}

.af-auditor-piscofins #resultadoAuditoria p {
  margin: 0;
}

/* CARD DE PRODUTO FUTURO */
.af-auditor-piscofins .af-auditor-card-produto {
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(0, 113, 227, 0.12);
}

.af-auditor-piscofins .af-auditor-card-produto strong {
  color: #1d1d1f;
}

/* TABELA FUTURA */
.af-auditor-piscofins .af-auditor-tabela {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.af-auditor-piscofins .af-auditor-tabela th,
.af-auditor-piscofins .af-auditor-tabela td {
  padding: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  font-size: 14px;
}

.af-auditor-piscofins .af-auditor-tabela th {
  color: #1d1d1f;
  font-weight: 800;
  background: #f8fbff;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .af-auditor-piscofins .af-auditor-hero {
    padding: 64px 18px 34px;
  }

  .af-auditor-piscofins .af-container {
    padding: 0 16px;
  }

  .af-auditor-piscofins .af-auditor-hero p {
    font-size: 16px;
  }

  .af-auditor-piscofins .af-auditor-upload-box {
    padding: 24px;
    border-radius: 22px;
  }

  .af-auditor-piscofins .af-auditor-upload-box h2 {
    font-size: 24px;
  }

  .af-auditor-piscofins #resultadoAuditoria {
    padding: 22px;
  }
}
.af-auditor-piscofins .af-auditor-item-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.af-auditor-piscofins .af-auditor-item-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.af-auditor-piscofins .af-auditor-item-topo strong {
  font-size: 16px;
  line-height: 1.45;
  color: #1d1d1f;
}

.af-auditor-piscofins .af-auditor-item-dados {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  color: #5f6368;
  font-size: 14px;
}

.af-auditor-piscofins .af-score-badge {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.af-auditor-piscofins .af-score-baixo {
  background: #e8f7ef;
  color: #137333;
}

.af-auditor-piscofins .af-score-medio {
  background: #fff8e6;
  color: #9a6700;
}

.af-auditor-piscofins .af-score-alto {
  background: #fdeaea;
  color: #b42318;
}

@media (max-width: 768px) {
  .af-auditor-piscofins .af-auditor-item-topo {
    flex-direction: column;
  }

  .af-auditor-piscofins .af-auditor-item-dados {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   SCORE FISCAL
========================================================= */

.af-score-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.af-score-baixo {
  background: #e8f7ee;
  color: #137333;
}

.af-score-medio {
  background: #fff4d6;
  color: #9a6700;
}

.af-score-alto {
  background: #ffe7e7;
  color: #c5221f;
}

.af-score-critico {
  background: #ffdbdb;
  color: #a50e0e;
}
/* =========================================================
   RESUMO EXECUTIVO
========================================================= */

.af-auditor-resumo {
  margin-bottom: 28px;
}

.af-auditor-resumo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.af-auditor-resumo-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  text-align: center;
}

.af-auditor-resumo-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.af-auditor-resumo-card span {
  font-size: 14px;
  color: #6e6e73;
}

.af-auditor-resumo-card.destaque {
  background:
    linear-gradient(
      135deg,
      rgba(0,113,227,0.10),
      rgba(0,113,227,0.03)
    );

  border:
    1px solid rgba(0,113,227,0.14);
}
.af-auditor-piscofins .af-auditor-sugestoes {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #eef6ff;
  border: 1px solid #cfe5ff;
}

.af-auditor-piscofins .af-auditor-sugestoes strong {
  display: block;
  margin-bottom: 8px;
  color: #0066cc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.af-auditor-piscofins .af-auditor-sugestoes p {
  margin: 8px 0 0;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.6;
}
.af-auditor-piscofins .af-auditor-explicacoes {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.af-auditor-piscofins .af-auditor-explicacoes strong {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.af-auditor-piscofins .af-auditor-explicacoes p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}