/* SERPRO CPF Validator — modal interceptador de formulário.
 * Aparece antes do submit de "Novo aluno" e "Importar lote".
 * Design alinhado ao plugin (navy/gold). */

.ibec-serpro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 77, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 24px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ibec-serpro-overlay.is-open { display: flex; }

.ibec-serpro-modal {
  width: min(820px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 31, 77, 0.32);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ibec-serpro-modal__head {
  padding: 18px 22px;
  background: linear-gradient(135deg, #0B1F4D, #163B8C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ibec-serpro-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.ibec-serpro-modal__head p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}
.ibec-serpro-modal__close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.ibec-serpro-modal__close:hover { background: rgba(255, 255, 255, 0.22); }

.ibec-serpro-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  background: #f5f7fa;
}

.ibec-serpro-progress {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ibec-serpro-progress__bar {
  background: linear-gradient(90deg, #FFC72C, #F2B705);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.ibec-serpro-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ibec-serpro-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.ibec-serpro-stat--ok { border-color: #86efac; color: #15803d; }
.ibec-serpro-stat--warn { border-color: #fde047; color: #a16207; }
.ibec-serpro-stat--err { border-color: #fca5a5; color: #b42318; }

.ibec-serpro-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.ibec-serpro-table th {
  background: #f8fafc;
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  font-weight: 800;
  border-bottom: 1px solid #e2e8f0;
}
.ibec-serpro-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.ibec-serpro-table tr:last-child td { border-bottom: 0; }
.ibec-serpro-table tr.is-loading { opacity: 0.5; }
.ibec-serpro-table tr.is-error td { background: #fef2f2; }
.ibec-serpro-table tr.is-warn td { background: #fefce8; }
.ibec-serpro-table tr.is-ok td { background: #f0fdf4; }

.ibec-serpro-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ibec-serpro-badge--ok { background: #dcfce7; color: #15803d; }
.ibec-serpro-badge--warn { background: #fef3c7; color: #a16207; }
.ibec-serpro-badge--err { background: #fee2e2; color: #b42318; }
.ibec-serpro-badge--neutral { background: #e2e8f0; color: #475569; }

.ibec-serpro-action {
  background: transparent;
  border: 1px solid #c7d2fe;
  color: #0B1F4D;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ibec-serpro-action:hover { background: #eef2ff; }

.ibec-serpro-modal__foot {
  padding: 14px 22px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ibec-serpro-modal__foot-info {
  font-size: 12px;
  color: #5a6781;
}
.ibec-serpro-modal__foot-actions {
  display: flex;
  gap: 8px;
}
.ibec-serpro-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.ibec-serpro-btn--primary { background: #0B1F4D; color: #fff; }
.ibec-serpro-btn--primary:hover { background: #163B8C; }
.ibec-serpro-btn--primary:disabled { background: #94a3b8; cursor: not-allowed; }
.ibec-serpro-btn--secondary { background: #fff; color: #0B1F4D; border-color: #cbd5e1; }
.ibec-serpro-btn--secondary:hover { background: #f1f5f9; }
.ibec-serpro-btn--ghost { background: transparent; color: #475569; }
.ibec-serpro-btn--ghost:hover { color: #0B1F4D; }
