/* Card operacional: contexto e estados nunca comprimem o conteúdo em colunas estreitas. */
.agenda-page .active-task-section .task-tree .task-main > .task-os-context{
  grid-column:1/-1!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:1px 0 4px!important;
  overflow:hidden!important;
  overflow-wrap:normal!important;
  line-height:1.35!important;
}
.agenda-page .active-task-section .task-tree .task-os-context > span{
  display:inline-block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  word-break:normal!important;
  writing-mode:horizontal-tb!important;
}
.agenda-page .active-task-section .task-tree .task-card-heading{
  flex-wrap:wrap!important;
  align-content:center!important;
  row-gap:6px!important;
}
.agenda-page .active-task-section .task-tree .task-card-heading > .task-name{
  flex:1 1 220px!important;
  min-width:160px!important;
}
.agenda-page .active-task-section .task-tree .task-card-heading > .task-card-actions{
  margin-left:0!important;
}
@media(max-width:1180px){
  .agenda-page .active-task-section .task-tree .task-node > .task-row{
    grid-template-columns:48px minmax(0,1fr)!important;
    grid-template-areas:"order content" "order controls" "order action"!important;
    align-items:start!important;
    row-gap:7px!important;
  }
  .agenda-page .active-task-section .task-tree .task-row > .task-leading,
  .agenda-page .active-task-section .task-tree .task-row > .task-parent-toggle{
    justify-self:end!important;
  }
  .agenda-page .active-task-section .task-tree .task-row > .subtask-button{
    justify-self:end!important;
  }
}
@media(max-width:620px){
  .agenda-page .active-task-section .task-tree .task-card-heading > .task-name{
    flex-basis:100%!important;
    min-width:0!important;
  }
}
