.dxta-workflow-host { display: none; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.doc-search-tasks-mode > .dxta-workflow-host,
.is-tasks-mode .euro-office-tasks-host { display: flex; }
.doc-search-tasks-mode > .doc-search-source-header,
.doc-search-tasks-mode > .doc-search-source-status,
.doc-search-tasks-mode > .doc-search-source-body,
.is-tasks-mode .euro-office-conversation-messages { display: none; }
.euro-office-tasks-host { height: 100%; }
.dxta-workflow-controls { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; background: #fff; color: #0c1d3a; }
.dxta-workflow-controls[hidden], .dxta-workflow-count[hidden] { display: none !important; }
.dxta-workflow-controls:focus { outline: none; }
.dxta-workflow-heading, .dxta-workflow-scope, .dxta-workflow-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dxta-workflow-heading { padding: 1rem; border-bottom: 1px solid #e2e8f0; flex: 0 0 auto; }
.dxta-workflow-heading h2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.dxta-workflow-close { flex: 0 0 auto; font-size: 1.2rem; line-height: 1; width: 2rem; height: 2rem; }
.dxta-workflow-scope { padding: .75rem 1rem; flex-wrap: wrap; flex: 0 0 auto; }
.dxta-workflow-content { overflow: auto; min-height: 0; padding: 0 1rem 1rem; overscroll-behavior: contain; }
.dxta-workflow-task { padding: .8rem 0; border-top: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.dxta-workflow-task summary { cursor: pointer; }
.dxta-workflow-task-status { font-size: .75rem; font-weight: 600; color: #64748b; }
.dxta-workflow-task-objective { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .875rem; line-height: 1.5; margin-top: .25rem; }
.dxta-workflow-task[open] > summary > .dxta-workflow-task-objective { display: block; }
.dxta-workflow-task > ol { margin-top: .65rem; padding-left: 1.3rem; }
.dxta-workflow-actions { justify-content: flex-start; flex-wrap: wrap; margin: .5rem 0; }
.dxta-workflow-decision { margin: .7rem 0; padding: .6rem; border-left: 3px solid #6987b3; background: var(--bs-tertiary-bg, #f4f6fa); }
.dxta-workflow-answer { display: grid; gap: .4rem; margin-top: .5rem; }
.dxta-workflow-answer textarea { width: 100%; resize: vertical; min-height: 4rem; }
.dxta-workflow-answer button { justify-self: start; }
.dxta-workflow-notice { margin-top: .5rem; font-size: .875rem; }
.dxta-workflow-toggle { position: relative; gap: .25rem; flex-shrink: 0; }
.dxta-workflow-toggle.is-active { color: #0c1d3a; background: #e8edf5; }
.dxta-workflow-count { font-size: .7rem; line-height: 1; font-weight: 700; }
.dxta-workflow-toggle.needs-attention .dxta-workflow-count { border-radius: 1rem; background: #0c1d3a; color: #fff; padding: .2rem .3rem; }
.euro-office-conversation-header-action .dxta-workflow-count,
.euro-office-conversation-rail-action .dxta-workflow-count { position: absolute; top: -.2rem; right: -.2rem; }
@media (max-width: 575px) {
  .dxta-workflow-heading { padding: .75rem; }
  .dxta-workflow-scope { padding: .6rem .75rem; }
  .dxta-workflow-content { padding: 0 .75rem .75rem; }
}
