/* ── History table ──────────────────────────────────────────────────────────── */

.task-history-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.task-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.task-history-table thead th {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  padding: 6px 10px;
  border-bottom: 1px solid var(--bs-border-color);
  text-align: left;
  white-space: nowrap;
  background: var(--bs-tertiary-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.task-history-row {
  cursor: pointer;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,0.06));
  transition: background 0.1s;
}

.task-history-row:hover,
.task-history-row--expanded {
  background: var(--bs-tertiary-bg);
}

.task-history-row td {
  padding: 8px 10px;
  vertical-align: middle;
}

.task-history-title {
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-history-chevron {
  font-size: 0.72rem;
  opacity: 0.5;
}

.task-history-detail td {
  padding: 6px 10px 14px;
  background: var(--bs-tertiary-bg);
}

.task-history-error {
  font-size: 0.82rem;
  color: var(--bs-danger, #dc3545);
  margin-bottom: 6px;
}

.task-history-response pre {
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.5;
}
