/* ENTITIES-RICHTEXT - editor rich ligero del motor de entidades v2 (sustituto de TinyMCE).
   Variables con fallback: dentro del RecordPanel heredan --rp-*, en modales usan los defaults. */
.entrich{border:1px solid var(--rp-border,#dfe3e8);border-radius:10px;background:var(--rp-card,#fff);overflow:hidden}
.entrich-bar{display:flex;gap:2px;flex-wrap:wrap;padding:4px 6px;border-bottom:1px solid var(--rp-border,#dfe3e8);background:var(--rp-hover,#f8f9fb)}
.entrich-bar button{border:0;background:none;border-radius:6px;padding:5px 8px;cursor:pointer;color:var(--rp-muted,#6b7280);line-height:1;font-size:14px}
.entrich-bar button:hover{background:var(--rp-accent-soft,rgba(37,99,235,.08));color:var(--rp-accent,#2563eb)}
.entrich-body{min-height:90px;max-height:320px;overflow-y:auto;padding:8px 11px;outline:none;font-size:12.5px;color:inherit}
.entrich-body:focus{box-shadow:inset 0 0 0 2px var(--rp-accent-soft,rgba(37,99,235,.15))}
.entrich-body a{color:var(--rp-accent,#2563eb)}
.entrich-body p{margin:0 0 6px}
.entrich-body ul,.entrich-body ol{margin:0 0 6px;padding-left:20px}

/* view de props html (drawer / celdas): HTML renderizado acotado */
.ent-htmlview{max-height:220px;overflow-y:auto;font-size:12.5px}
.ent-htmlview p{margin:0 0 6px}
.ent-htmlview ul,.ent-htmlview ol{margin:0 0 6px;padding-left:20px}
