/* ────────────────────────────────────────────────
   Consulta NF-e — estilos específicos
   Layout/marca base: Cferramenta_base.css + tokens em global_utils.css
──────────────────────────────────────────────── */

.nfe-form {
  display: grid;
  gap: 12px;
  margin-top: 5px;
}

.nfe-form .field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--otb-brand);
}

.nfe-form .field input[type="text"],
.nfe-form .field input[type="file"] {
  width: 100%;
  border: 1.5px solid var(--otb-border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: var(--otb-surface);
  color: var(--otb-text);
  box-sizing: border-box;
}

.nfe-form .field input[type="text"]:focus,
.nfe-form .field input[type="file"]:focus {
  border-color: var(--otb-brand);
  box-shadow: 0 0 0 3px var(--otb-focus-ring);
}

.nfe-form .hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--otb-text-soft);
}

.nfe-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--otb-brand);
  font-size: 13px;
  font-weight: 700;
}

.nfe-divider::before,
.nfe-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--otb-brand-mid), transparent);
}

.nfe-form .actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.nfe-form .btn,
.nfe-right .btn {
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.nfe-form .notice.is-error {
  border-color: rgba(130, 30, 60, 0.45);
  background: rgba(130, 30, 60, 0.12);
  color: var(--otb-brand-deep);
}

.result-card {
  border: 1px solid var(--otb-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--otb-surface-brand);
}

.result-placeholder {
  color: var(--otb-text-soft);
  font-size: 14px;
  padding: 18px 4px;
}

.result-meta {
  font-size: 14px;
  color: var(--otb-text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.result-meta strong {
  color: var(--otb-brand);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.nfe-explain {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

.nfe-explain__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--otb-brand);
  background: var(--otb-brand-soft);
  border: 1px solid var(--otb-brand-mid);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.nfe-explain__header h2 {
  margin: 0 0 8px;
  color: var(--otb-brand);
}

.nfe-explain__header p {
  margin: 0 0 18px;
  color: var(--otb-text-muted);
  max-width: 70ch;
}

.nfe-explain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nfe-explain__grid article {
  background: var(--otb-surface);
  border: 1px solid var(--otb-border);
  border-radius: 14px;
  padding: 16px;
  border-top: 4px solid var(--otb-brand);
  box-shadow: 0 10px 22px rgba(130, 30, 60, 0.06);
}

.nfe-explain__grid article:nth-child(2) {
  border-top-color: var(--otb-accent);
}

.nfe-explain__grid article:nth-child(3) {
  border-top-color: var(--otb-neutral);
}

.nfe-explain__grid h3 {
  margin: 0 0 8px;
  color: var(--otb-brand);
  font-size: 1rem;
}

.nfe-explain__grid p {
  margin: 0;
  color: var(--otb-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.nfe-tips-aside {
  background: var(--otb-surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--otb-border);
  border-left: 4px solid var(--otb-brand);
}

.nfe-tips-aside h3 {
  color: var(--otb-brand);
  margin-top: 0;
}

.nfe-tips-aside p {
  color: var(--otb-text-muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .nfe-explain__grid {
    grid-template-columns: 1fr;
  }
}
