.data-table-toolbar,
.data-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.data-table-toolbar {
  margin: 4px 0 12px;
}
.data-table-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.data-table-toolbar input,
.data-table-toolbar select {
  width: auto;
  min-width: 80px;
  margin: 0;
  padding: 8px 9px;
}
.data-table-toolbar input { min-width: 240px; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.data-table-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.data-table-footer > div {
  display: flex;
  gap: 8px;
}
button.secondary {
  background: #eef2f7;
  color: #344054;
}
button.secondary:hover { background: #dde1e7; }
.table-sort {
  position: relative;
  width: 100%;
  padding: 0 18px 0 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-transform: inherit;
  font-size: inherit;
}
.table-sort:hover { background: transparent; color: var(--brand); }
.table-sort::after {
  content: "↕";
  position: absolute;
  right: 0;
  opacity: .45;
}
th[data-sort-direction="asc"] .table-sort::after { content: "↑"; opacity: 1; }
th[data-sort-direction="desc"] .table-sort::after { content: "↓"; opacity: 1; }
.process-table th:last-child,
.process-table td:last-child { min-width: 72px; text-align: center; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  padding: 0;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.status-done { background: #dcfce7; color: #166534; }
.process-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 22px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
}
.process-dialog::backdrop { background: rgba(16, 24, 40, .55); }
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.dialog-header h2 { margin: 0; }
.dialog-close { min-width: 40px; padding: 7px 10px; font-size: 22px; line-height: 1; }
.process-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0 0 20px;
}
.process-details dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.process-details dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.process-error {
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid #f1c2c2;
  border-radius: 6px;
  background: #fff1f1;
  color: #8f2929;
}
.process-error h3 { margin: 0 0 8px; }
.process-error pre,
.logs-table pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.logs-table { min-width: 860px; }
.logs-table td { vertical-align: top; }
.logs-table td:nth-child(4) { min-width: 260px; white-space: normal; }
.logs-table details { max-width: 360px; }
.logs-table summary { cursor: pointer; color: var(--brand); font-weight: 700; }
@media (max-width: 760px) {
  .data-table-toolbar { align-items: stretch; }
  .data-table-toolbar label { width: 100%; }
  .data-table-toolbar input { min-width: 0; flex: 1; }
  .process-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
