/* ══════════════════════════════════════════════════════════════════════════
   Franja de deuda del tutor (pantallas de cobro)
   Es un AVISO, no un cartel: informa sin quitarle protagonismo al cobro que
   el cajero está haciendo. Ámbar, delgada y sin animación.
   ══════════════════════════════════════════════════════════════════════════ */

/* La franja ES el botón: título, subtítulo y una flecha. El desglose por módulo se movió a la
   ventana de detalle — acá competía con el cobro que el cajero está haciendo. */
.wv-deuda-franja {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 12px;
  padding: 9px 14px;
  border: 1px solid #fcd9a4;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  background: #fffbeb;
  color: #7c2d12;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: all .13s ease;
}

.wv-deuda-franja:hover {
  background: #fef3c7;
  border-color: #d97706;
  box-shadow: 0 2px 10px rgba(217, 119, 6, .22);
}

.wv-deuda-franja:active {
  box-shadow: inset 0 1px 4px rgba(124, 45, 18, .18);
}

.wv-deuda-franja:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

.wv-deuda-ico {
  color: #d97706;
  font-size: 17px;
  flex: 0 0 auto;
}

.wv-deuda-txt {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.wv-deuda-txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.wv-deuda-txt small {
  display: block;
  font-size: 10.5px;
  opacity: .85;
}

.wv-deuda-flecha {
  color: #b45309;
  font-size: 12px;
  flex: 0 0 auto;
}

.wv-deuda-franja:hover .wv-deuda-flecha {
  transform: translateX(2px);
}

/* ── Ventana de detalle ─────────────────────────────────────────────────── */

.wv-deuda-detalle {
  text-align: left;
  font-size: 12.5px;
}

.wv-deuda-cliente {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}

.wv-deuda-cliente span {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}

.wv-deuda-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wv-deuda-resumen-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.wv-deuda-resumen-item i {
  color: #d97706;
}

.wv-deuda-resumen-item span {
  font-weight: 700;
  color: #334155;
}

.wv-deuda-resumen-item small {
  color: #94a3b8;
  font-size: 10.5px;
}

.wv-deuda-resumen-item b {
  font-weight: 800;
  color: #1e293b;
  margin-left: 4px;
}

/* La tabla scrollea sola: un tutor con muchas atenciones no puede estirar el modal. */
.wv-deuda-tabla-caja {
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.wv-deuda-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wv-deuda-tabla thead th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.wv-deuda-tabla td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.wv-deuda-tabla tbody tr:hover {
  background: #fffbeb;
}

.wv-deuda-monto {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.wv-deuda-tabla tfoot td {
  padding: 10px;
  background: #fffbeb;
  font-weight: 800;
  color: #7c2d12;
  border-top: 1px solid #fde68a;
}

.wv-deuda-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  background: #e2e8f0;
  color: #475569;
}

.wv-deuda-tag--HOSPITALIZACION { background: #dbeafe; color: #1d4ed8; }
.wv-deuda-tag--AMBULATORIA     { background: #e0e7ff; color: #4338ca; }
.wv-deuda-tag--PABELLON        { background: #fee2e2; color: #b91c1c; }
.wv-deuda-tag--HOTELERIA       { background: #d1fae5; color: #047857; }
.wv-deuda-tag--CARNET          { background: #dcfce7; color: #15803d; }
.wv-deuda-tag--PELUQUERIA      { background: #fef3c7; color: #b45309; }

.wv-deuda-ir {
  color: #4a90e2;
  font-size: 12px;
}

.wv-deuda-ir:hover {
  color: #1d4ed8;
}

.wv-deuda-nota {
  margin: 10px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
}
