/* C v2.2 — estado de recuperación, leyenda y recuperados/pospuestos. */

#ociv1Root .ociv1-recovery-action{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line-soft);
}
#ociv1Root .ociv1-recovery-action>div{min-width:0}
#ociv1Root .ociv1-recovery-state{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
#ociv1Root .ociv1-recovery-state>span{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
#ociv1Root .ociv1-recovery-state select{
  min-width:150px;
  min-height:var(--target-touch);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--card);
  color:var(--ink);
  font-family:inherit;
  font-size:12.5px;
  font-weight:600;
  padding:8px 28px 8px 11px;
  outline:none;
}
#ociv1Root .ociv1-recovery-state select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
#ociv1Root .ociv1-recovery-state select:disabled{opacity:.6;cursor:wait}

#ociv1Root .ociv1-recovery-card.state-contacted{border-color:var(--line);background:var(--line-soft)}
#ociv1Root .ociv1-recovery-card.state-contacted::before{background:var(--info)}
#ociv1Root .ociv1-recovery-card.state-recovered{border-color:#cfe6d8;background:var(--pos-tint)}
#ociv1Root .ociv1-recovery-card.state-recovered::before{background:var(--pos)}
#ociv1Root .ociv1-recovery-card.state-postponed{border-color:var(--line);background:var(--line-soft);opacity:.85}
#ociv1Root .ociv1-recovery-card.state-postponed::before{background:var(--muted-2)}

/* Recuperados y pospuestos: sección secundaria colapsable, limpia. */
#ociv1Root .ociv1-managed{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:12px}
#ociv1Root .ociv1-managed summary{
  cursor:pointer;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  list-style:none;
}
#ociv1Root .ociv1-managed summary::-webkit-details-marker{display:none}
#ociv1Root .ociv1-managed summary:after{content:'›';display:inline-block;margin-left:7px;transition:transform .18s ease}
#ociv1Root .ociv1-managed[open] summary:after{transform:rotate(90deg)}
#ociv1Root .ociv1-managed>.ociv1-recovery-list{margin-top:12px}
#ociv1Root .ociv1-managed>.ociv1-empty{margin-top:12px}

/* Leyenda: ayuda visual secundaria, nunca protagonista — chips chicos,
   bajo contraste. El script ownerCustomerRecoveryLegendV1.js no se toca;
   solo se reestiliza su resultado (.ociv1-recovery-legend). */
#ociv1Root .ociv1-recovery-legend{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
#ociv1Root .ociv1-recovery-legend span{
  font-size:10px;
  font-weight:600;
  border-radius:999px;
  padding:4px 9px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--muted);
}
#ociv1Root .ociv1-recovery-legend .pending{color:var(--warn)}
#ociv1Root .ociv1-recovery-legend .contacted{color:var(--info)}
#ociv1Root .ociv1-recovery-legend .recovered{color:var(--pos)}
#ociv1Root .ociv1-recovery-legend .postponed{color:var(--muted-2)}

@media(max-width:760px){
  #ociv1Root .ociv1-recovery-action{display:block}
  #ociv1Root .ociv1-recovery-state{margin-top:10px}
  #ociv1Root .ociv1-recovery-state select{width:100%}
  #ociv1Root .ociv1-recovery-legend{gap:6px}
}
