/* History sits in the same 1240px frame as the composer. */
.pp-transcripts-workspace {
  width: 100%;
  max-width: none;
  margin-right: 0;
}

@media (min-width: 981px) {
  .pp-transcripts-workspace .pp-jobs-row--queued .pp-jobs-actions,
  .pp-transcripts-workspace .pp-jobs-row--processing .pp-jobs-actions,
  .pp-transcripts-workspace .pp-jobs-row--uploading .pp-jobs-actions {
    visibility: hidden;
    pointer-events: none;
  }
}

/* HTML uses pp-jobs-row--success for finished jobs, not --done. */
.pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  align-self: start;
  width: 12.5rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-action-stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-action-stack [data-delete-job-id] {
  margin-top: 0;
}

.pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions > .pp-mini-label {
  display: none;
}

body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 auto;
  line-height: 1;
  white-space: nowrap;
}

body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-action-stack > .button {
  width: 100%;
}

body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .pp-split-btn {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 42px;
}

body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .pp-split-main {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .pp-split-arrow {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  padding: 0;
}

@media (max-width: 880px) {
  body.product-page .pp-jobs-row .pp-jobs-action-stack {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
}
