/* EMC canonical matrix preview and module-local pagination */
.module-emc .emc-artifact-preview {
  margin-top: 10px;
}

.module-emc .emc-preview-table,
.module-emc .emc-scroll-region,
.module-emc .emc-output-wrapper {
  min-width: 0;
}

.module-emc .emc-scroll-region {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--emc-border-soft);
  border-radius: 10px;
  background: #08121d;
}

.module-emc .emc-rename-preview {
  position: sticky;
  top: 0;
  z-index: 5;
  width: max-content;
  min-width: 100%;
  background: var(--emc-surface-raised);
}

.module-emc .emc-rename-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
}

.module-emc .emc-rename-cell {
  min-width: 0;
  padding: 6px;
  text-align: center;
}

.module-emc .emc-preview-table table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  color: var(--emc-text-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.module-emc .emc-preview-table th,
.module-emc .emc-preview-table td {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  text-align: right;
  white-space: nowrap;
}

.module-emc .emc-preview-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #142335;
  color: rgb(var(--emc-accent-bright));
}

.module-emc .emc-preview-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.module-emc .emc-preview-table tbody tr:hover {
  background: rgba(var(--emc-accent), 0.08);
}

.module-emc .pagination-panel {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--emc-border-soft);
  border-radius: 10px;
  background: rgba(8, 18, 29, 0.88);
}

.module-emc .pagination-core,
.module-emc .pagination-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.module-emc .pagination-indicator,
.module-emc .pagination-input {
  color: var(--emc-text-muted);
  font-size: 0.64rem;
}

.module-emc #pageJumpInput {
  width: 58px;
}

.module-emc .emc-file-name-label {
  margin-top: 7px;
  color: var(--emc-text-muted);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

.module-emc ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.module-emc ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--emc-accent), 0.38);
}

.module-emc ::-webkit-scrollbar-track {
  background: rgba(5, 12, 20, 0.72);
}
