/* 批量表格组件：只接管工具栏、复选列和选中态，不改宿主列表布局。 */
.fx-batch-table {
  border: 1px solid var(--line, #e3e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel, #fff);
}

.fx-batch-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line, #e3e8f0);
  background: #fff;
}

.fx-batch-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  color: var(--fg2, #6b7280);
  font-size: 13px;
}

.fx-batch-summary strong {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent, #0f62d6);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fx-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fx-batch-btn,
.fx-batch-download {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line, #e3e8f0);
  border-radius: 7px;
  background: #fff;
  color: var(--fg, #1f2937);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.fx-batch-btn:hover:not(:disabled),
.fx-batch-download:hover {
  border-color: #b8c2d0;
  background: #f8fafc;
}

.fx-batch-btn.primary {
  border-color: var(--accent, #0f62d6);
  background: var(--accent, #0f62d6);
  color: #fff;
}

.fx-batch-btn.primary:hover:not(:disabled) {
  border-color: #0b55bd;
  background: #0b55bd;
}

.fx-batch-btn:disabled {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  opacity: 1;
  cursor: not-allowed;
}

.fx-batch-btn[aria-busy="true"] {
  cursor: progress;
}

.fx-batch-status {
  margin-left: auto;
  color: var(--fg2, #6b7280);
  font-size: 12px;
  text-align: right;
}

.fx-batch-status.error {
  color: var(--err, #dc2626);
}

.fx-batch-status:empty {
  display: none;
}

.fx-batch-download[hidden] {
  display: none;
}

.fx-batch-check-cell {
  width: 44px;
  min-width: 44px;
  padding-right: 6px !important;
  padding-left: 12px !important;
  text-align: center !important;
}

.fx-batch-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #0f62d6);
  cursor: pointer;
  vertical-align: middle;
}

.fx-batch-table tr.fx-batch-row-selected > td {
  background: #f5f9ff;
}

.fx-batch-table tr.fx-batch-row-selected:hover > td {
  background: #edf5ff;
}

.fx-batch-table tr[data-batch-row] {
  cursor: default;
}

.fx-batch-table .table-scroll {
  border: 0;
  border-radius: 0;
}

@media (max-width: 680px) {
  .fx-batch-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .fx-batch-status {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .fx-batch-actions {
    width: auto;
  }
}
