/* [Pulso-Supabase] 🧭 Centro de decisiones (public/radar-decisiones.js): pestaña de 📡 Radar. Celular primero (390 px sin scroll de lado);
   claro y oscuro con las variables de estilos.css y las clases de radar.css (rd-card, rd-pill, rd-sec, rd-kpis, rd-nota-c…). Lo propio lleva rcd-.
   Los hijos directos de .rd-body se centran solos (max-width 1180, margin auto): aquí no se les pone margin de lado. */
.rcd-hero { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl, 18px); padding: 14px; margin-bottom: 12px; }
.rcd-hero h3 { margin: 0 0 4px; font-size: 17px; }
.rcd-hero p { margin: 0 0 4px; line-height: 1.45; }
.rcd-revisar { align-self: flex-start; min-height: 40px; }
.rcd-revisar small { color: var(--t2); font-weight: 400; }
.rcd-aviso { font-size: 13px; color: var(--t2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r, 14px); padding: 9px 11px; margin-bottom: 12px; line-height: 1.4; }
.rcd-aviso-mal { color: var(--red); border-color: var(--red-bd, var(--border)); background: var(--red-bg, var(--surface)); }
.rcd-kpis .rd-k b { overflow-wrap: anywhere; }
.rcd-k-t { color: var(--t2); font-size: 12px; }
.rcd-tit { margin-top: 4px; margin-bottom: 10px; font-size: 16px; }
/* tarjetas */
.rcd-lista { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.rcd-lista-mas { margin: 8px 0 4px; }
.rcd-card { border-left: 4px solid var(--accent); gap: 9px; min-width: 0; }
.rcd-c-h { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.rcd-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg, var(--bg)); color: var(--accent); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.rcd-c-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rcd-c-n b { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.rcd-fuente { color: var(--t2); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.rcd-plata { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.rcd-plata b { font-size: 20px; line-height: 1.15; color: var(--green); font-variant-numeric: tabular-nums; }
.rcd-plata small { color: var(--t2); font-size: 12.5px; }
.rcd-plata-sin span { font-size: 13.5px; font-weight: 600; color: var(--t2); }
.rcd-porque, .rcd-hacer { margin: 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rcd-hacer { background: var(--accent-bg, var(--bg)); border-radius: 10px; padding: 8px 10px; }
.rcd-marca { margin: 0; font-size: 12.5px; color: var(--t2); font-weight: 600; }
.rcd-marca-volvio { color: var(--amber-t, var(--amber, #b07c00)); }
.rcd-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rcd-btns .rd-pill { white-space: normal; min-height: 40px; padding: 8px 10px; }
.rcd-b-hecho { border-color: var(--green); color: var(--green); }
.rcd-ver { align-self: flex-start; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; min-height: 32px; text-align: left; overflow-wrap: anywhere; }
.rcd-ver:focus-visible, .rcd-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
/* secciones plegables */
.rcd-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 40px; }
.rcd-sec > summary::-webkit-details-marker { display: none; }
.rcd-sec > summary::after { content: '▾'; margin-left: auto; color: var(--t2); transition: transform .2s; }
.rcd-sec[open] > summary::after { transform: rotate(180deg); }
.rcd-sec > summary h3 { margin: 0; font-size: 15px; }
.rcd-sub { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--t2); }
/* filas (pendientes, historial, escondidas) */
.rcd-filas { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rcd-filas li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.rcd-f-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.rcd-f-t b { font-size: 14px; line-height: 1.3; }
.rcd-f-t small { font-size: 12.5px; line-height: 1.4; }
.rcd-r { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; background: var(--surface); border: 1px solid var(--border); }
.rcd-r-ok { color: var(--green); }
.rcd-r-mal { color: var(--red); }
.rcd-r-igual { color: var(--t2); }
.rcd-mods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rcd-mods li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; border-bottom: 1px solid var(--border); padding-bottom: 6px; overflow-wrap: anywhere; }
.rcd-mods li:last-child { border-bottom: 0; }
.rcd-det > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--t2); min-height: 36px; display: flex; align-items: center; margin-top: 6px; }
.rcd-fuentes { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; }
.rcd-fuentes li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; min-width: 0; }
.rcd-fuentes li.rcd-falta { color: var(--t2); }
.rcd-fuentes li.rcd-falta b { color: var(--t1); }
/* interruptor del WhatsApp (como el de 🔮 Producto cansado) */
.rcd-wa { display: flex; flex-direction: column; gap: 6px; }
.rcd-wa h3 { margin: 0; }
.rcd-sw { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--t1); cursor: pointer; min-height: 40px; text-align: left; }
.rcd-sw:disabled { opacity: .55; cursor: default; }
.rcd-sw-t { width: 44px; height: 26px; border-radius: 999px; background: var(--border); position: relative; flex: 0 0 auto; transition: background .2s; }
.rcd-sw-t i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.rcd-sw[aria-checked="true"] .rcd-sw-t { background: var(--green); }
.rcd-sw[aria-checked="true"] .rcd-sw-t i { transform: translateX(18px); }
.rcd-final { margin-top: 4px; margin-bottom: 12px; }
.rcd-ger { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--t2); }
.rcd-ger select { font: inherit; font-size: 14px; min-height: 36px; padding: 4px 8px; margin-left: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--t1); }
.rcd-ger-para { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rcd-ger-para label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--t1); }
@media (min-width: 720px) {
  .rcd-hero { flex-direction: row; align-items: center; justify-content: space-between; }
  .rcd-hero .rcd-revisar { align-self: center; flex: 0 0 auto; }
  .rcd-btns { display: flex; flex-wrap: wrap; }
  .rcd-btns .rd-pill { white-space: nowrap; }
  .rcd-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1100px) {
  .rcd-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
