/* agent-ui / data-table — records | filter | diff modes */

/* agent-ui / records-table — first-class component (promoted from host extracts). */
/* 11 Records table */
.au-records {
  background: var(--au-surface-muted);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-lg);
  box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--au-border-color) 50%, transparent);
  overflow: auto;
}
.au-records table { border-collapse: collapse; min-width: 40rem; width: 100%; }
.au-records th,
.au-records td {
  border-bottom: 1px solid color-mix(in srgb, var(--au-border-color) 70%, transparent);
  font: 400 13px/1.35 var(--au-font-sans);
  padding: 9px 12px;
  text-align: start;
  white-space: nowrap;
}
.au-records tbody {
  background: var(--au-surface);
}
.au-records th { color: var(--au-fg-muted); font-weight: 500; }
.au-records th button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.au-records th button:focus-visible {
  outline: 2px solid var(--au-focus);
  outline-offset: 2px;
}
.au-records__tag {
  background: var(--au-surface-muted);
  border-radius: var(--au-radius-pill);
  color: var(--au-fg-muted);
  display: inline-block;
  font: 400 11px/1.2 var(--au-font-sans);
  margin: 0 4px 4px 0;
  padding: 3px 7px;
}
.au-records__foot {
  color: var(--au-fg-subtle);
  font: 400 12px/1.3 var(--au-font-sans);
  padding: 10px 12px;
}


/* agent-ui / filter-table — first-class component (promoted from host extracts). */
/* 12 Filter table */
.au-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.au-filter-bar .au-btn[aria-pressed="true"] {
  background: var(--au-surface-muted);
  color: var(--au-fg);
}
.au-filter-table {
  background: var(--au-surface);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-lg);
  overflow: auto;
}
.au-filter-table table { border-collapse: collapse; width: 100%; }
.au-filter-table th,
.au-filter-table td {
  border-bottom: 1px solid color-mix(in srgb, var(--au-border-color) 70%, transparent);
  font: 400 13px/1.35 var(--au-font-sans);
  padding: 8px 12px;
  text-align: start;
}
.au-filter-table th { color: var(--au-fg-muted); font-weight: 500; }
.au-filter-table tr[hidden] { display: none; }


/* agent-ui / diff-table — first-class component (promoted from host extracts). */
/* 10 Diff table */
.au-diff-table {
  background: var(--au-surface);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-lg);
  overflow: auto;
}
.au-diff-table__title {
  border-bottom: 1px solid var(--au-border-color);
  font: 600 14px/1.3 var(--au-font-sans);
  margin: 0;
  padding: 12px 14px;
}
.au-diff-table table { border-collapse: collapse; min-width: 100%; }
.au-diff-table th,
.au-diff-table td {
  border-bottom: 1px solid color-mix(in srgb, var(--au-border-color) 70%, transparent);
  font: 400 13px/1.35 var(--au-font-sans);
  padding: 8px 12px;
  text-align: start;
  vertical-align: top;
}
.au-diff-table th { color: var(--au-fg-muted); font-weight: 500; }
.au-diff-table tr[data-au-change="add"] td {
  background: color-mix(in srgb, var(--au-success) 10%, transparent);
}
.au-diff-table tr[data-au-change="del"] td {
  background: color-mix(in srgb, var(--au-danger) 10%, transparent);
  text-decoration: line-through;
}
.au-diff-table tr[data-au-change="edit"] td {
  background: color-mix(in srgb, var(--au-action) 8%, transparent);
}




/* Alias root */

.au-data-table { min-width: 0; }
