/* ============================================================
   NIGC · Modulo Aceptacion de Clientes + Verificacion SARLAFT
   Estilos separados (politica CSS/JS separados del cerebro).
   ============================================================ */

.nac-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0f2fe;
}
.nac-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0a2472;
  margin: 0 0 6px 0;
}
.nac-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ── Cuota card (Dashboard puente B2B2B) ─────────────────── */
.nac-cuota-wrap { margin-bottom: 18px; }
.nac-cuota-info {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
}
.nac-cuota-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #0284c7;
  border-radius: 12px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 1.6fr;
  gap: 18px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
@media (max-width: 900px) {
  .nac-cuota-card { grid-template-columns: 1fr 1fr; }
}
.nac-cuota-lbl {
  font-size: 10px;
  color: #075985;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 4px;
}
.nac-cuota-firma-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a2472;
  line-height: 1.1;
}
.nac-cuota-firma-nit {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.nac-cuota-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 6px;
}
.nac-cuota-progress-head b { font-size: 16px; color: #0a2472; }
.nac-cuota-pct { font-size: 11px; color: #64748b; }
.nac-cuota-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.nac-cuota-bar-fill {
  height: 100%;
  background: #059669;
  transition: width 0.4s, background 0.4s;
}
.nac-cuota-meta {
  margin-top: 6px;
  font-size: 10.5px;
  color: #64748b;
}
.nac-cuota-kpis {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.nac-cuota-kpi {
  text-align: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e0f2fe;
  min-width: 60px;
}
.nac-cuota-kpi-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.nac-cuota-kpi-lbl {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.nac-cuota-spark-lbl {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.nac-spark-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}
.nac-spark-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.nac-spark-fill {
  width: 100%;
  background: linear-gradient(180deg, #0284c7, #075985);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.nac-spark-lbl {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
}

.nac-tabla-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.nac-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.nac-tabla thead {
  background: linear-gradient(135deg, #0284c7, #075985);
  color: #fff;
}
.nac-tabla th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nac-tabla tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}
.nac-tabla tbody tr:hover { background: #f8fafc; }
.nac-tabla td {
  padding: 10px 12px;
  vertical-align: top;
}

.nac-cl-nombre {
  font-weight: 600;
  color: #1e293b;
}
.nac-cl-sec {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.nac-tp-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-right: 2px;
}
.nac-tp-natural  { background: #fef3c7; color: #92400e; }
.nac-tp-juridica { background: #dbeafe; color: #1e3a8a; }

.nac-pep-count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.nac-score {
  color: #64748b;
  font-weight: 500;
}

/* Badges de estado */
.nac-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nac-est-PRE_ACEPTACION { background: #e0f2fe; color: #075985; }
.nac-est-EDD_EN_CURSO   { background: #fef3c7; color: #92400e; }
.nac-est-ACEPTADO       { background: #d1fae5; color: #065f46; }
.nac-est-RECHAZADO      { background: #fee2e2; color: #991b1b; }
.nac-est-SUSPENDIDO     { background: #e2e8f0; color: #475569; }
.nac-est-SIN_VERIFICAR  { background: #f1f5f9; color: #94a3b8; }

/* Badges de nivel de riesgo */
.nac-nv-BAJO    { background: #d1fae5; color: #065f46; }
.nac-nv-MEDIO   { background: #fef3c7; color: #92400e; }
.nac-nv-ALTO    { background: #fee2e2; color: #991b1b; }
.nac-nv-CRITICO { background: #7f1d1d; color: #fef2f2; }

/* Botones */
.nac-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  margin-right: 4px;
}
.nac-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.nac-btn:disabled { opacity: .6; cursor: wait; }

.nac-btn-verificar {
  background: linear-gradient(135deg, #0284c7, #075985);
  color: #fff;
  border-color: transparent;
}
.nac-btn-verificar:hover { background: linear-gradient(135deg, #0369a1, #0c4a6e); color: #fff; }

.nac-btn-detalle {
  background: #f8fafc;
  color: #0a2472;
  border-color: #c7d2fe;
}

.nac-btn-ok {
  background: linear-gradient(135deg, #059669, #065f46);
  color: #fff;
  border-color: transparent;
}
.nac-btn-ok:hover { background: linear-gradient(135deg, #047857, #064e3b); color: #fff; }

.nac-btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border-color: transparent;
}
.nac-btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #7f1d1d); color: #fff; }

.nac-btn-warn {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
  border-color: transparent;
}

.nac-btn-close {
  background: #e2e8f0;
  color: #475569;
}

.nac-acciones {
  white-space: nowrap;
}

/* Panel detalle */
.nac-detalle {
  background: #fff;
  border: 2px solid #0284c7;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, .12);
}
.nac-detalle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0f2fe;
}
.nac-detalle-head h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #075985;
  margin: 0;
}

.nac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.nac-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}
.nac-card-lbl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  font-weight: 600;
}
.nac-card-val {
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.4;
}
.nac-card-val small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.nac-seccion {
  margin-top: 20px;
}
.nac-seccion h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0a2472;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed #cbd5e1;
}
.nac-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nac-lista li {
  padding: 8px 12px;
  background: #f8fafc;
  border-left: 3px solid #0284c7;
  margin-bottom: 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #334155;
}

/* ── Historial de evaluaciones (timeline NIGC 1) ──────────── */
.nac-historial-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  overflow-x: auto;
}
.nac-hist-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.nac-hist-tabla thead {
  background: linear-gradient(135deg, #075985, #0a2472);
  color: #fff;
}
.nac-hist-tabla th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nac-hist-tabla tbody tr {
  border-bottom: 1px solid #e2e8f0;
}
.nac-hist-tabla tbody tr:hover { background: #fff; }
.nac-hist-tabla td {
  padding: 8px 10px;
  vertical-align: middle;
}
.nac-hist-tipo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.nac-mode-http {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
}
.nac-mode-db {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}
.nac-hist-nuevas {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 11px;
}

.nac-acciones-wf {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #e0f2fe;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nac-loading, .nac-empty, .nac-error {
  text-align: center;
  padding: 32px;
  color: #64748b;
  font-size: 14px;
}
.nac-error {
  color: #991b1b;
  background: #fee2e2;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .nac-tabla { font-size: 12px; }
  .nac-tabla th, .nac-tabla td { padding: 6px 8px; }
  .nac-btn { padding: 4px 8px; font-size: 11px; }
  .nac-grid { grid-template-columns: 1fr 1fr; }
}
