.nes-inter-resumo-central { margin-bottom: var(--space-3); }
.nes-inter-resumo-card {
  padding: var(--space-3);
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.nes-inter-resumo-stats { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.nes-inter-resumo-stats span { font-weight: 700; color: var(--navy-800); margin-right: 6px; }
.nes-inter-incompletos { margin: 6px 0 0; padding-left: 1.2rem; font-size: var(--text-sm); color: var(--text-muted); }

/* Aba Interações — ações no topo, conteúdo compacto, sem área branca */

#tab-interacoes.pront-modulo-panel {
  min-height: 0 !important;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
}

#panel-interacoes-nes {
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: block;
}

.nes-inter-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  gap: var(--space-2);
}

.nes-inter-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0 var(--space-3);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--navy-100);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 2;
}

.nes-inter-toolbar .btn {
  flex-shrink: 0;
}

.nes-inter-scroll {
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.nes-inter-actions-bar {
  display: none !important;
}

.nes-inter-wrap .nes-modulo-tab-head {
  margin-bottom: var(--space-2);
}

.nes-inter-wrap .nes-modulo-tab-head h3 {
  margin: 0;
  font-size: var(--text-base);
}

.nes-inter-intro {
  font-size: var(--text-sm);
  color: var(--navy-500);
  margin: 0 0 var(--space-3);
  line-height: 1.45;
}

.nes-inter-empty,
.nes-inter-empty--boot {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--navy-200);
  border-radius: var(--radius-lg);
  color: var(--navy-600);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: var(--space-2) 0 var(--space-3);
}

.nes-inter-empty-title,
.nes-inter-empty--boot .nes-inter-empty-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--navy-800);
}

.nes-inter-empty-desc,
.nes-inter-empty--boot .nes-inter-empty-desc {
  margin: 0;
  color: var(--navy-600);
}

.nes-inter-schema-hint {
  margin-bottom: var(--space-3);
}

.nes-inter-schema-warn {
  margin: 0;
  padding: 10px 12px;
  font-size: var(--text-sm);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  color: #9a3412;
}

.nes-inter-schema-warn code {
  font-size: 12px;
}

.nes-inter-med-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-3);
  max-height: min(200px, 28vh);
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
}

.nes-inter-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--text-sm);
  cursor: pointer;
}

.nes-inter-resultados {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  min-height: 0;
}

.nes-inter-resultados:empty {
  display: none;
}

.nes-inter-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: var(--space-4);
  background: var(--white);
}

.nes-inter-card-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.nes-inter-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gray-100);
}

.nes-inter-tipo {
  font-size: 12px;
  color: var(--navy-500);
}

.nes-inter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.nes-inter-grid h4 {
  font-size: 12px;
  margin: 0 0 6px;
  color: var(--navy-700);
}

.nes-inter-grid ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.nes-inter-muted {
  color: var(--navy-400);
  font-size: 13px;
}

.nes-inter-summary {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
}

.nes-inter-warn {
  color: #b45309;
  font-weight: 600;
}

.nes-inter-hist-title {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-700);
}

.nes-inter-historico {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(160px, 24vh);
  overflow-y: auto;
}

.nes-inter-hist-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
  padding: 8px;
  background: var(--gray-50);
  border-radius: 8px;
}

.nes-risco--critico { border-left: 4px solid #dc2626; }
.nes-risco--alto { border-left: 4px solid #ea580c; }
.nes-risco--moderado { border-left: 4px solid #ca8a04; }
.nes-risco--baixo { border-left: 4px solid #16a34a; }

.nes-inter-summary.nes-risco--critico { background: #fef2f2; }
.nes-inter-summary.nes-risco--alto { background: #fff7ed; }
.nes-inter-summary.nes-risco--moderado { background: #fefce8; }
.nes-inter-summary.nes-risco--baixo { background: #f0fdf4; }

.nes-inter-root .empty-state,
.nes-inter-root .nes-empty-card {
  margin: 0;
}

@media (max-width: 768px) {
  .nes-inter-toolbar .btn {
    flex: 1 1 100%;
  }

  .nes-inter-med-list {
    max-height: min(160px, 22vh);
  }
}
