/* First-four record surfaces. Native responsive card/scroll modes remain intact. */
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.table-wrap, .table-wrapper, .inventory-table-surface) {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  background: var(--fs-bg-panel);
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :is(.data-table, .dashboard-table, .inventory-table, #tickets-table) {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
  font-family: inherit;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :is(.data-table, .dashboard-table, .inventory-table, #tickets-table) :where(th, td) {
  padding: 12px;
  border-bottom: 1px solid var(--fs-border);
  text-align: left;
  vertical-align: top;
  font-size: .875rem;
  line-height: 1.4;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :is(.data-table, .dashboard-table, .inventory-table, #tickets-table) th {
  color: var(--fs-muted);
  background: #eaf1f2;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :is(.data-table, .dashboard-table, .inventory-table, #tickets-table) tr:last-child > td { border-bottom: 0; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.device-filter-grid, .dashboard-filter-grid, .filter-bar, .table-toolbar, .search-results-filter-panel .filter-row) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  min-width: 0;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.device-filter-grid, .dashboard-filter-grid, .filter-bar, .table-toolbar, .search-results-filter-panel .filter-row) > :where(label, .filter-group, div:has(> label)) {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 180px;
  color: var(--fs-text);
  font-size: .875rem;
  font-weight: 750;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :is(.device-filter-grid, .dashboard-filter-grid, .filter-bar, .table-toolbar, .search-results-filter-panel) :is(input:not([type="checkbox"]), select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-sm);
  background: #fff;
  color: var(--fs-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 400;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.summary-list, .record-profile-summary-list) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.summary-list, .record-profile-summary-list) :where(dt) {
  color: var(--fs-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.summary-list, .record-profile-summary-list) :where(dd) {
  margin: 6px 0 0;
  font-weight: 400;
  color: var(--fs-text);
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.summary-list, .record-profile-summary-list) { grid-template-columns: 1fr; }
  body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.device-filter-grid, .dashboard-filter-grid, .filter-bar, .table-toolbar, .search-results-filter-panel .filter-row) > :where(label, .filter-group, div:has(> label)) { flex-basis: 100%; }
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--fs-border);
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination[hidden] { display: none; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination :where(button, select, span, label) { margin: 0; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  color: var(--fs-text);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-button:hover:not(:disabled) { border-color: var(--fs-brand); background: #edf7f6; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-page { width: 44px; padding-inline: 0; text-align: center; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-button:disabled { color: #71838a; background: #f3f6f7; cursor: not-allowed; opacity: 1; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-page.is-active { border-color: var(--fs-brand); color: #fff; background: var(--fs-brand); }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 44px; color: var(--fs-muted); font-weight: 800; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-summary { color: var(--fs-muted); font-size: .875rem; font-weight: 750; white-space: normal; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-jump { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--fs-muted); font-size: .875rem; font-weight: 800; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination .pagination-select { width: 78px; min-width: 78px; max-width: 78px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--fs-border-strong); border-radius: var(--fs-radius-sm); color: var(--fs-text); background: #fff; font: inherit; }
body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] :where(.pagination button, .pagination select, .table-sort-button):focus-visible { outline: 3px solid var(--fs-brand); outline-offset: 2px; }
@media (max-width: 760px) {
  body[data-flowstack-shell][data-flowstack-interface][data-flowstack-record-lists] .pagination :where(.pagination-summary, .pagination-jump) { flex-basis: 100%; justify-content: center; text-align: center; }
}
