/**
 * NES — Hub de Ações Clínicas (visual premium, escopado em .nes-hub-*)
 * Aditivo — não altera estilos de outros módulos.
 */
.nes-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(8, 30, 51, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: nes-hub-fade 0.18s ease;
}
@keyframes nes-hub-fade { from { opacity: 0; } to { opacity: 1; } }

.nes-hub-shell {
  width: min(1180px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #f6f9fc;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(2, 22, 41, 0.35);
  overflow: hidden;
}

/* Header */
.nes-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  background: linear-gradient(120deg, #0d3b6e 0%, #0f766e 100%);
  color: #fff;
}
.nes-hub-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.nes-hub-title { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }
.nes-hub-close {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.nes-hub-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Body: cards + checklist */
.nes-hub-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  overflow: auto;
  flex: 1;
}
.nes-hub-main { padding: 22px 26px; display: flex; flex-direction: column; gap: 22px; }

.nes-hub-grupo-tt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.nes-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.nes-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  min-height: 104px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.nes-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 59, 110, 0.14);
  border-color: #99f6e4;
}
.nes-hub-card-ic { font-size: 1.6rem; line-height: 1; }
.nes-hub-card-lb { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.nes-hub-card-st {
  position: absolute;
  top: 12px; right: 12px;
  color: #0d9488;
  font-weight: 700;
  font-size: 0.9rem;
}
.nes-hub-card.feito { border-color: #5eead4; background: #f0fdfa; }

/* Faixa de cor por grupo (borda esquerda) */
.nes-hub-grupo--consulta .nes-hub-card { border-left: 3px solid #3b82f6; }
.nes-hub-grupo--docs .nes-hub-card { border-left: 3px solid #8b5cf6; }
.nes-hub-grupo--monit .nes-hub-card { border-left: 3px solid #ef4444; }
.nes-hub-grupo--fim .nes-hub-card { border-left: 3px solid #0d9488; }

/* Checklist */
.nes-hub-check {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  padding: 22px 20px;
  min-width: 0;
}
.nes-hub-check-tt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 14px;
}
.nes-hub-chk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nes-hub-chk-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: #334155;
}
.nes-hub-chk-ic {
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nes-hub-chk-item.ok { color: #0f5132; }
.nes-hub-chk-item.ok .nes-hub-chk-ic { background: #d1fae5; color: #059669; }
.nes-hub-chk-item.pend { color: #92400e; }
.nes-hub-chk-item.pend .nes-hub-chk-ic { background: #fef3c7; color: #b45309; }
.nes-hub-chk-item.neutro { color: #94a3b8; }
.nes-hub-chk-item.neutro .nes-hub-chk-ic { background: #f1f5f9; color: #94a3b8; }

/* Footer */
.nes-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.nes-hub-foot-right { display: flex; gap: 10px; }

/* Responsivo */
@media (max-width: 900px) {
  .nes-hub-body { grid-template-columns: 1fr; }
  .nes-hub-check { border-left: none; border-top: 1px solid #e2e8f0; }
  .nes-hub-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 560px) {
  .nes-hub-overlay { padding: 0; }
  .nes-hub-shell { max-height: 100vh; border-radius: 0; }
  .nes-hub-foot { flex-direction: column; gap: 10px; }
  .nes-hub-foot-right { width: 100%; flex-wrap: wrap; }
}
