/* =============================================================================
   verificar.css — Página pública de verificación de beneficiarios
============================================================================= */

/* ── Cabecera — idéntica al navbar del dashboard ──────────────────────────── */
.ver-header {
  background: #243b55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
}
.ver-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}
.ver-logo { height: 32px; object-fit: contain; }
.ver-header-title {
  font-size: 12px;
  color: #9ca3af;
  border-left: 1px solid #4b5563;
  padding-left: 12px;
}

/* ── Card central ─────────────────────────────────────────────────────────── */
.ver-card {
  width: 100%;
  max-width: 950px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(36, 59, 85, .08);
  padding: 32px 32px;
}
@media (max-width: 600px) {
  .ver-card { padding: 24px 18px; }
}

.ver-card-top  { margin-bottom: 20px; }  /* reducido de 28 a 20 */
.ver-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ver-card-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Buscador ─────────────────────────────────────────────────────────────── */
.ver-search-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;           /* botón baja en pantallas muy estrechas */
}
.ver-search-input-wrap { position: relative; flex: 1; min-width: 180px; }
.ver-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.ver-input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: #f8f9fb;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1a202c;
  outline: none;
  transition: border-color .2s, background .2s;
}
.ver-input::placeholder { color: #b0b7c3; }
.ver-input:focus         { border-color: #243b55; background: #fff; }

.ver-btn-primary {
  padding: 11px 22px;
  background: #243b55;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.ver-btn-primary:hover  { background: #1a2d42; }
.ver-btn-primary:active { background: #162437; }

/* ── Loader ───────────────────────────────────────────────────────────────── */
.ver-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}
.ver-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: #243b55;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ver-spin .7s linear infinite;
}
@keyframes ver-spin { to { transform: rotate(360deg); } }

/* ── Mensajes ─────────────────────────────────────────────────────────────── */
.ver-msg-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.5;
}
.ver-msg-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  background: #fff0f6;
  border: 1px solid #ffb3d1;
  border-radius: 8px;
  font-size: 13px;
  color: #c2185b;
  line-height: 1.5;
}

/* ── Panel de resultado ───────────────────────────────────────────────────── */
.ver-resultado {
  margin-top: 20px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  border-radius: 8px;
  overflow: hidden;
}
.ver-resultado-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #d1fae5;
  border-bottom: 1px solid #a7f3d0;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}
.ver-campos {
  padding: 4px 16px 8px;
}
.ver-campo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #d1fae5;
  flex-wrap: wrap;           /* evita overflow en pantallas estrechas */
}
.ver-campo:last-child { border-bottom: none; }

.ver-campo-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #059669;
  white-space: nowrap;
  flex-shrink: 0;
}
.ver-campo-valor {
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
  text-align: right;
  word-break: break-all;     /* números de documento largos no desbordan */
}
.ver-fechas {
  font-weight: 600;
  color: #243b55;
  word-break: normal;
}
.ver-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 14px;
  background: #243b55;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 1.5px;
}
.ver-badge-ok { background: #059669; }

/* ── Pie de página ────────────────────────────────────────────────────────── */
.ver-footer {
  text-align: center;
  padding: 14px;
  font-size: 11px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
}

/* ── Nota final del panel ─────────────────────────────────────────────────── */
.ver-nota-final {
  margin: 12px 16px 16px;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.6;
  text-align: center;
}

/* ── Alerta "solo al trabajador" (visible con el resultado) ───────────────── */
.ver-msg-entrega {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #d85326;
  line-height: 1.4;
  text-align: center;
}

/* ── Fila especial: lugar de entrega (dentro de la tarjeta verde) ─────────── */
.ver-campo-lugar {
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  border-bottom: none !important;
  margin: 0 -16px -8px;
  padding: 11px 16px 19px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ver-campo-valor-lugar {
  color: #dc2626;
  font-weight: 700;
}

/* ── Fila cita agendada (dentro de tarjeta verde) ─────────────────────────── */
.ver-campo-cita {
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
}
.ver-cita-valor {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ver-btn-cambiar-cita {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #243b55;
  background: none;
  border: 1px solid #243b55;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ver-btn-cambiar-cita:hover {
  background: #243b55;
  color: #ffffff;
}

/* ── Calendario en SweetAlert2 ────────────────────────────────────────────── */
.swal-grid-fechas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.btn-fecha {
  padding: 10px 6px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .15s;
}
.btn-fecha-disp {
  background: #243b55;
  color: #ffffff;
  cursor: pointer;
}
.btn-fecha-disp:hover { background: #1a2d42; }
.btn-fecha-llena {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.btn-fecha small { font-size: 10px; font-weight: 400; }

/* ── Botón agendar día de entrega ─────────────────────────────────────────── */
.ver-agendar-wrap {
  margin-top: 12px;
}
.ver-btn-agendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #243b55;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.ver-btn-agendar:hover  { background: #1a2d42; }
.ver-btn-agendar:active { background: #162437; }

.ver-btn-pagar-linea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #d7d9db;
  color: #243b55;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid #243b55;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.ver-btn-pagar-linea:hover  { background: #c2cfe4; }
.ver-btn-pagar-linea:active { background: #d7d9db; }
/* ── Bloque informativo categoría B (pago tesorería) ─────────────────────── */
.ver-msg-catb {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
  text-align: center;
}
.ver-msg-catb-texto {
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
  margin: 0 0 10px;
}
.ver-msg-catb-valor {
  font-size: 26px;
  font-weight: 700;
  color: #dc2626;
  margin: 0;
}

/* ── Utilidad ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
