#wfTaskActionBar.wf-task-action-bar {
  box-sizing: border-box;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid #d7e1e5;
  border-left: 4px solid #087f73;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  z-index: 2;
}

#wfTaskActionBar.wf-task-action-bar-empty {
  border-left-color: #90a4ae;
  background: #fafcfc;
}

.wf-action-hint,
.wf-action-no-actions {
  color: #607d8b;
  font-size: 13px;
}

.wf-action-selected {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263238;
  font-size: 13px;
}

.wf-selected-mark {
  flex: 0 0 auto;
  border-radius: 5px;
  background: #4d5961;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  min-width: 30px;
  padding: 0 5px;
  text-align: center;
  font-weight: 700;
}

.wf-selected-name {
  max-width: min(560px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.wf-selected-state {
  flex: 0 0 auto;
  color: #0277bd;
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 6px;
  padding: 3px 8px;
}

.wf-action-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
}

.wf-action-btn {
  height: 32px;
  border-radius: 5px;
  padding: 0 12px;
  border: 1px solid #b0bec5;
  background: #fff;
  color: #263238;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.wf-action-btn:hover:not(:disabled) { box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wf-action-btn:disabled { opacity: .55; cursor: wait; }
.wf-action-icon { font-weight: 800; font-size: 15px; line-height: 1; }

.wf-action-accept,
.wf-action-complete {
  color: #00695c;
  border-color: #80cbc4;
  background: #e0f2f1;
}
.wf-action-accept:hover:not(:disabled),
.wf-action-complete:hover:not(:disabled) { background: #b2dfdb; border-color: #4db6ac; }

.wf-action-reject {
  color: #b71c1c;
  border-color: #ef9a9a;
  background: #ffebee;
}
.wf-action-reject:hover:not(:disabled) { background: #ffcdd2; border-color: #e57373; }

.wf-action-return {
  color: #8a4b00;
  border-color: #ffcc80;
  background: #fff3e0;
}
.wf-action-return:hover:not(:disabled) { background: #ffe0b2; border-color: #ffb74d; }

.wf-actions-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -12px);
  z-index: 2147483646;
  min-width: 280px;
  max-width: min(720px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 6px;
  color: #fff;
  background: #455a64;
  box-shadow: 0 5px 20px rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  font-size: 14px;
}
.wf-actions-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wf-actions-toast-success { background: #00796b; }
.wf-actions-toast-error { background: #c62828; }
.wf-actions-toast-info { background: #455a64; }

.wf-actions-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: rgba(22, 35, 41, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wf-actions-modal {
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 50px rgba(0,0,0,.30);
  color: #263238;
}

.wf-actions-modal-header {
  min-height: 50px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #087f73;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.wf-actions-modal-title { font-size: 16px; font-weight: 600; flex: 1; }
.wf-actions-modal-x {
  border: 0;
  background: transparent;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.wf-actions-modal-x:hover { background: rgba(255,255,255,.14); }

.wf-actions-modal-body { padding: 18px; }
.wf-actions-modal-message { margin-bottom: 14px; color: #455a64; line-height: 1.4; }
.wf-actions-label { display: block; margin: 13px 0 6px; font-size: 13px; font-weight: 600; color: #37474f; }

.wf-actions-select,
.wf-actions-textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #b0bec5;
  border-radius: 5px;
  background: #fff;
  color: #263238;
  font: inherit;
  font-size: 14px;
  padding: 9px 10px;
}
.wf-actions-select:focus,
.wf-actions-textarea:focus { outline: 2px solid rgba(0,121,107,.20); border-color: #00897b; }
.wf-actions-textarea { resize: vertical; min-height: 92px; }
.wf-actions-textarea.invalid { border-color: #d32f2f; background: #fff8f8; }

.wf-actions-modal-footer {
  border-top: 1px solid #eceff1;
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.wf-actions-modal-btn {
  min-width: 92px;
  height: 34px;
  border-radius: 5px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  border: 1px solid transparent;
}
.wf-actions-modal-btn.secondary { background: #fff; border-color: #b0bec5; color: #37474f; }
.wf-actions-modal-btn.primary { background: #00796b; color: #fff; border-color: #00796b; }
.wf-actions-modal-btn.danger { background: #c62828; color: #fff; border-color: #c62828; }

@media (max-width: 1050px) {
  #wfTaskActionBar.wf-task-action-bar { align-items: flex-start; }
  .wf-action-buttons { width: 100%; margin-left: 0; }
  .wf-selected-name { max-width: 60vw; }
}

.wf-action-btn.wf-action-disabled:disabled { cursor: not-allowed; opacity: .45; }
