/* SadCRM 16.2 — two actual controls (textarea + send).
   Older XSIZE styles assume a third grid item and squeeze the textarea into 34px.
   Scope only to the deal-chat composer. Do not override other CRM forms. */
#dealModal #dealCommunications .deal-comms-compose.compact-compose {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 104px!important;
  grid-template-rows:auto!important;
  gap:9px!important;
  align-items:center!important;
  padding:9px 12px!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  position:relative!important;
  background:#fff!important;
  overflow:visible!important;
}
#dealModal #dealCommunications .compact-compose > #dealCommReply {
  display:block!important;
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:46px!important;
  max-height:136px!important;
  padding:11px 42px 11px 12px!important;
  margin:0!important;
  border:1px solid #cbd5e1!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.4!important;
  resize:vertical!important;
  box-sizing:border-box!important;
  visibility:visible!important;
  opacity:1!important;
}
#dealModal #dealCommunications .compact-compose > #dealCommReply:focus {
  outline:2px solid #8b83fc!important;
  outline-offset:1px!important;
}
#dealModal #dealCommunications .compact-compose > #dealCommSend {
  grid-column:2!important;
  grid-row:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  width:104px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 8px!important;
  position:relative!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
/* Optional attachment control from XSIZE: overlay within editor, not an extra grid cell. */
#dealModal #dealCommunications .compact-compose > .deal-attach-compact {
  position:absolute!important;
  z-index:2!important;
  top:50%!important;
  left:18px!important;
  transform:translateY(-50%)!important;
  width:32px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
}
#dealModal #dealCommunications .compact-compose:has(> .deal-attach-compact) > #dealCommReply {
  padding-left:50px!important;
}
/* The emoji toggle remains inside the text-editor side of the composer. */
#dealModal #dealCommunications .compact-compose > .emoji-open-btn {
  position:absolute!important;
  z-index:2!important;
  top:50%!important;
  right:129px!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  width:29px!important;
  height:29px!important;
}
#dealModal #dealCommunications .compact-compose > #dealCommSend:disabled { opacity:.62;cursor:wait; }
@media(max-width:620px) {
 #dealModal #dealCommunications .deal-comms-compose.compact-compose {
   grid-template-columns:minmax(0,1fr) 94px!important;
   padding:7px!important;
   gap:6px!important;
 }
 #dealModal #dealCommunications .compact-compose > #dealCommSend {width:94px!important;font-size:11px!important}
 #dealModal #dealCommunications .compact-compose > .emoji-open-btn {right:111px!important}
}
