/* Nexos CRM V10.9.98 — quebra de texto, modal vertical e todas as notas */
.cd-note-clickable,.cd-action-clickable{cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.cd-note-clickable:hover,.cd-note-clickable:focus,.cd-action-clickable:hover,.cd-action-clickable:focus{outline:none;border-color:#9cc6fb;background:#f7fbff;box-shadow:0 0 0 3px rgba(20,119,245,.08)}
.cd-note-row{grid-template-columns:38px minmax(0,1fr) 18px;align-items:center}
.cd-note-row>i{font-style:normal;color:#7f94ad;font-size:21px;text-align:right}.cd-note-row:hover>i{color:#1477f5}
.cd-action-stack{display:grid;gap:8px}.cd-action-done{opacity:.82}.cd-action-done b{text-decoration:line-through;color:#6f8196}.cd-next-icon.done{background:#e9f8ef;color:#15985c;font-weight:900}
.cd-action-status{font-weight:800}.cd-action-status.pending{color:#a86d00}.cd-action-status.done{color:#168b54}
.note-action-detail{display:grid;gap:13px}.nad-head{display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;align-items:center;padding-bottom:12px;border-bottom:1px solid #e8eef6}.nad-head b{display:block;color:#112a49;font-size:16px;line-height:1.35}.nad-head small{display:block;margin-top:4px;color:#73849a}.nad-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center}.nad-icon.note{background:#eaf3ff;color:#1477f5}.nad-icon.action{background:#eaf8f0;color:#13a566}.nad-icon.action.done{font-weight:900}.nad-icon .cd-svg{width:20px;height:20px}
.nad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nad-field{padding:11px 12px;border:1px solid #e4ebf4;border-radius:10px;background:#fbfdff}.nad-field>span{display:block;font-size:11px;font-weight:800;color:#71839a;text-transform:uppercase;letter-spacing:.03em}.nad-field>b{display:block;margin-top:5px;color:#173554}.nad-field>p{margin:7px 0 0;white-space:pre-wrap;line-height:1.55;color:#2f4663}.nad-wide{grid-column:1/-1}.nad-related{width:100%;border:1px solid #cfe2fb;border-radius:10px;background:#eff7ff;color:#176bd0;padding:11px 12px;display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;text-align:left}.nad-related span{font-size:12px}.nad-related b{font-size:12px;color:#0e67ce}.nad-related small{grid-column:1/-1;color:#6f8298}.nad-related.origin{background:#fbfdff}.nad-note-only{padding:10px 12px;border-radius:10px;background:#f5f7fa;color:#6e7f94;font-size:12px}.nad-status{display:inline-block;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:900}.nad-status.pending{background:#fff0c8;color:#8b6200}.nad-status.done{background:#e6f7ed;color:#12814b}
.note-action-rule{margin-top:9px;border:1px solid #d6e7fb;background:#f4f9ff;border-radius:10px;padding:10px 12px;display:grid;gap:3px;color:#526c89;font-size:12px}.note-action-rule b{color:#195fba}.note-action-rule span:before{content:'• ';color:#1477f5}
@media(max-width:700px){.nad-grid{grid-template-columns:1fr}.nad-related{grid-template-columns:1fr}.cd-action-clickable{grid-template-columns:40px 1fr}.cd-action-clickable .cd-next-actions{grid-column:1/-1}}


/* V10.9.98 — correção visual aprovada: nunca deixar texto escapar horizontalmente. */
.cd-action-stack{min-width:0;max-width:100%;overflow:hidden}
.cd-next-card{min-width:0;max-width:100%;overflow:hidden;align-items:flex-start}
.cd-next-card>div:nth-child(2){min-width:0;max-width:100%}
.cd-next-card b,.cd-next-card small{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.cd-next-actions{align-self:center;flex:0 0 auto}

/* Todas as notas permanecem disponíveis; a lista cresce verticalmente, nunca para a direita. */
.cd-notes-panel{min-width:0}
.cd-notes-scroll{
  min-width:0;
  max-width:100%;
  max-height:390px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-gutter:stable;
}
.cd-note-row{min-width:0;max-width:100%}
.cd-note-row>div{min-width:0;max-width:100%}
.cd-note-row b,.cd-note-row small{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Pop-up de Nota / Próxima Ação: bloco maior, leitura confortável e somente rolagem vertical. */
.modalbox.note-action-modal{
  width:min(820px,96vw);
  max-width:96vw;
  max-height:88vh;
  overflow-y:auto;
  overflow-x:hidden;
  padding:26px 28px 24px;
  scrollbar-gutter:stable;
}
.modalbox.note-action-modal #modalBody,
.modalbox.note-action-modal #modalForm,
.modalbox.note-action-modal .note-action-detail,
.modalbox.note-action-modal .nad-head,
.modalbox.note-action-modal .nad-grid,
.modalbox.note-action-modal .nad-field,
.modalbox.note-action-modal .nad-related{
  min-width:0;
  max-width:100%;
}
.modalbox.note-action-modal .nad-head>div{min-width:0;max-width:100%}
.modalbox.note-action-modal .nad-head b,
.modalbox.note-action-modal .nad-head small,
.modalbox.note-action-modal .nad-field b,
.modalbox.note-action-modal .nad-field p,
.modalbox.note-action-modal .nad-related span,
.modalbox.note-action-modal .nad-related b,
.modalbox.note-action-modal .nad-related small,
.modalbox.note-action-modal .nad-note-only{
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.modalbox.note-action-modal .nad-field.nad-wide{
  padding:15px 16px;
}
.modalbox.note-action-modal .nad-field.nad-wide>p{
  margin-top:9px;
  line-height:1.65;
}
.modalbox.note-action-modal .modal-actions{
  position:sticky;
  bottom:-24px;
  z-index:2;
  margin-left:-28px;
  margin-right:-28px;
  margin-bottom:-24px;
  padding:16px 28px 24px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),#fff 28%);
  border-top:1px solid #edf1f6;
}

@media(max-width:700px){
  .modalbox.note-action-modal{width:96vw;padding:20px 18px 18px}
  .modalbox.note-action-modal .modal-actions{margin-left:-18px;margin-right:-18px;margin-bottom:-18px;padding:14px 18px 18px}
  .cd-next-actions{grid-column:1/-1;justify-content:flex-end;width:100%}
}
