/* ============================================
   Transaction API Viewer — Shared Styles
   Design System: F9XR (Carbon-Black Theme)
   ============================================ */

/* --- Container --- */
.tx-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Search & Filter Bar --- */
.tx-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: rgba(52, 58, 64, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: background 0.3s;
}

.tx-search-bar input,
.tx-search-bar select {
  background: rgba(33, 37, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: #f8f9fa;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 140px;
  flex: 1;
  font-family: inherit;
}

.tx-search-bar input::placeholder {
  color: rgba(248, 249, 250, 0.4);
}

.tx-search-bar input:focus,
.tx-search-bar select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tx-search-bar input:focus-visible,
.tx-search-bar select:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.tx-search-bar select {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.625rem;
  -webkit-appearance: none;
  appearance: none;
}

.tx-search-bar select option {
  background: #212529;
  color: #f8f9fa;
}

.tx-search-bar select option:checked {
  background: #3b82f6;
  color: #fff;
}

/* --- Search Bar Count --- */
.tx-search-count {
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.45);
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

.tx-search-count strong {
  color: #e9ecef;
  font-weight: 700;
}

/* --- Status Badges --- */
.tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
}

.tx-badge i {
  font-size: 0.5625rem;
  opacity: 0.8;
}

.tx-badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tx-badge--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.tx-badge--failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tx-badge--refunded {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.tx-badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tx-badge--cancelled {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.tx-badge--processing {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tx-badge--completed {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.tx-badge--warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.18);
}

.tx-badge--error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Transaction Table --- */
.tx-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(33, 37, 41, 0.5);
  backdrop-filter: blur(6px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.tx-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.tx-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.tx-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.tx-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.tx-table thead {
  background: rgba(52, 58, 64, 0.6);
  position: sticky;
  top: 0;
  z-index: 2;
}

.tx-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 249, 250, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  user-select: none;
}

.tx-table th.tx-sortable {
  cursor: pointer;
  transition: color 0.2s;
}

.tx-table th.tx-sortable:hover {
  color: #f8f9fa;
}

.tx-table th.tx-sortable::after {
  content: '';
  display: inline-block;
  width: 0.5rem;
  margin-left: 0.375rem;
  opacity: 0.3;
}

.tx-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e9ecef;
  vertical-align: middle;
}

.tx-table tbody tr {
  transition: background 0.2s;
}

.tx-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.tx-table tbody tr:focus-within {
  background: rgba(59, 130, 246, 0.06);
}

.tx-table tbody tr:last-child td {
  border-bottom: none;
}

.tx-table tbody tr.tx-row--clickable {
  cursor: pointer;
}

/* --- Amount Column --- */
.tx-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
}

.tx-amount--credit {
  color: #22c55e;
}

.tx-amount--debit {
  color: #ef4444;
}

.tx-amount--pending {
  color: #fbbf24;
}

.tx-amount--neutral {
  color: #e9ecef;
}

/* --- ID / Ref --- */
.tx-id {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.5);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.tx-id code {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
}

/* --- Date/Time --- */
.tx-date {
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.6);
  white-space: nowrap;
}

.tx-date strong {
  color: #e9ecef;
  font-weight: 600;
}

.tx-date span {
  display: block;
  font-size: 0.625rem;
  color: rgba(248, 249, 250, 0.35);
  margin-top: 0.0625rem;
}

/* --- Mobile Transaction Card --- */
.tx-card {
  background: rgba(52, 58, 64, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.tx-card:hover {
  background: rgba(52, 58, 64, 0.4);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.tx-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.tx-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.tx-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tx-card__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 249, 250, 0.4);
  margin-bottom: 0.125rem;
  font-weight: 600;
}

.tx-card__value {
  font-weight: 600;
  color: #e9ecef;
}

.tx-card__meta {
  font-size: 0.6875rem;
  color: rgba(248, 249, 250, 0.35);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tx-card__status {
  margin-bottom: 0.75rem;
}

/* --- Empty State --- */
.tx-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.tx-empty i {
  font-size: 2.5rem;
  color: rgba(248, 249, 250, 0.15);
  margin-bottom: 1rem;
}

.tx-empty h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e9ecef;
  margin-bottom: 0.375rem;
}

.tx-empty p {
  font-size: 0.8125rem;
  color: rgba(248, 249, 250, 0.4);
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.tx-empty--action {
  margin-top: 1.5rem;
}

.tx-empty--action button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #3b82f6;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tx-empty--action button:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

/* --- Loading Skeleton (Transaction-specific) --- */
.tx-skeleton {
  background: linear-gradient(90deg, rgba(52,58,64,0.3) 25%, rgba(52,58,64,0.5) 50%, rgba(52,58,64,0.3) 75%);
  background-size: 200% 100%;
  animation: tx-shimmer 1.5s ease-in-out infinite;
  border-radius: 0.375rem;
  pointer-events: none;
  user-select: none;
}

@keyframes tx-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tx-skeleton--row {
  height: 2.75rem;
  margin-bottom: 0.375rem;
}

.tx-skeleton--cell {
  height: 1rem;
  width: 80%;
  margin-bottom: 0.5rem;
}

.tx-skeleton--badge {
  height: 1.5rem;
  width: 5rem;
  border-radius: 9999px;
}

.tx-skeleton--amount {
  height: 1.25rem;
  width: 5rem;
  border-radius: 0.25rem;
}

.tx-skeleton--card {
  height: 6rem;
  border-radius: 0.875rem;
  margin-bottom: 0.75rem;
}

.tx-skeleton--avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

/* --- Loading State Container --- */
.tx-loading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

/* --- Pagination --- */
.tx-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.tx-pagination button,
.tx-pagination .tx-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(52, 58, 64, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(248, 249, 250, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  user-select: none;
}

.tx-pagination button:hover {
  background: rgba(52, 58, 64, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f8f9fa;
}

.tx-pagination button:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.tx-pagination .tx-page--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tx-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.tx-pagination .tx-page-info {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.45);
  font-weight: 500;
}

.tx-pagination .tx-page-info strong {
  color: #e9ecef;
  font-weight: 700;
}

/* --- Per-page Selector --- */
.tx-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.5);
}

.tx-per-page select {
  background: rgba(33, 37, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  color: #f8f9fa;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.tx-per-page select option {
  background: #212529;
  color: #f8f9fa;
}

/* --- Detail Row / Expandable --- */
.tx-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.tx-detail--open {
  max-height: 500px;
  opacity: 1;
}

.tx-detail-inner {
  padding: 0 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  font-size: 0.75rem;
}

.tx-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.tx-detail-item span:first-child {
  color: rgba(248, 249, 250, 0.4);
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.tx-detail-item span:last-child {
  color: #e9ecef;
  font-weight: 500;
  word-break: break-all;
}

.tx-detail-item .tx-id {
  font-size: 0.6875rem;
}

/* --- Detail Row Toggle Button --- */
.tx-detail-toggle {
  background: none;
  border: none;
  color: rgba(248, 249, 250, 0.35);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}

.tx-detail-toggle:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.tx-detail-toggle:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.tx-detail-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.625rem;
}

.tx-detail-toggle.tx-detail-toggle--open i {
  transform: rotate(180deg);
}

/* --- Status Update Timeline (within detail) --- */
.tx-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.tx-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

.tx-timeline-item {
  position: relative;
  padding-bottom: 1rem;
  font-size: 0.75rem;
}

.tx-timeline-item:last-child {
  padding-bottom: 0;
}

.tx-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.325rem;
  top: 0.375rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid rgba(33, 37, 41, 0.9);
  transition: background 0.3s;
}

.tx-timeline-item--success::before {
  background: #22c55e;
}

.tx-timeline-item--pending::before {
  background: #fbbf24;
}

.tx-timeline-item--failed::before {
  background: #ef4444;
}

.tx-timeline-item--info::before {
  background: #3b82f6;
}

.tx-timeline-item--cancelled::before {
  background: #9ca3af;
}

.tx-timeline-item__date {
  color: rgba(248, 249, 250, 0.4);
  font-size: 0.625rem;
  margin-bottom: 0.0625rem;
}

.tx-timeline-item__label {
  color: #e9ecef;
  font-weight: 600;
}

.tx-timeline-item__description {
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.6875rem;
  margin-top: 0.125rem;
}

/* --- Toolbar / Actions --- */
.tx-actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.tx-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(248, 249, 250, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.6875rem;
  font-family: inherit;
}

.tx-actions button:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}

.tx-actions button:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* --- Live Indicator --- */
.tx-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #22c55e;
}

.tx-live-indicator::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  animation: tx-pulse 2s ease-in-out infinite;
}

@keyframes tx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Error State --- */
.tx-error {
  text-align: center;
  padding: 2.5rem 1rem;
}

.tx-error i {
  font-size: 2rem;
  color: rgba(239, 68, 68, 0.4);
  margin-bottom: 0.75rem;
}

.tx-error h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.25rem;
}

.tx-error p {
  font-size: 0.8125rem;
  color: rgba(248, 249, 250, 0.4);
}

.tx-error button {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tx-error button:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* --- Filter Tags --- */
.tx-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.tx-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tx-filter-tag:hover {
  background: rgba(59, 130, 246, 0.2);
}

.tx-filter-tag i {
  font-size: 0.5rem;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .tx-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tx-search-bar input,
  .tx-search-bar select {
    min-width: 0;
    width: 100%;
  }

  .tx-search-count {
    margin-left: 0;
    text-align: center;
  }

  .tx-table thead {
    display: none;
  }

  .tx-table,
  .tx-table tbody,
  .tx-table tr,
  .tx-table td {
    display: block;
  }

  .tx-table tr {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .tx-table td {
    padding: 0.25rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .tx-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(248, 249, 250, 0.4);
    flex-shrink: 0;
    margin-right: 1rem;
  }

  .tx-table td:first-child {
    padding-top: 0;
  }

  .tx-table td:last-child {
    padding-bottom: 0;
  }

  .tx-pagination {
    gap: 0.25rem;
  }

  .tx-pagination button,
  .tx-pagination .tx-page {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.6875rem;
  }

  .tx-pagination .tx-page-info {
    width: 100%;
    justify-content: center;
    order: -1;
    margin-bottom: 0.375rem;
  }

  .tx-detail-inner {
    grid-template-columns: 1fr 1fr;
  }

  .tx-per-page {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .tx-table td {
    font-size: 0.75rem;
  }

  .tx-table td::before {
    font-size: 0.625rem;
  }

  .tx-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }

  .tx-detail-inner {
    grid-template-columns: 1fr;
  }

  .tx-search-bar {
    border-radius: 0.75rem;
    padding: 0.75rem;
  }
}

/* --- Print Styles --- */
@media print {
  .tx-table-wrap {
    border: 1px solid #ddd;
    background: #fff;
    backdrop-filter: none;
  }

  .tx-table th {
    background: #f5f5f5;
    color: #333;
    border-bottom: 2px solid #ddd;
  }

  .tx-table td {
    color: #333;
    border-bottom: 1px solid #eee;
  }

  .tx-search-bar,
  .tx-pagination,
  .tx-actions,
  .tx-detail-toggle,
  .tx-live-indicator,
  .tx-filter-tags {
    display: none;
  }

  .tx-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tx-card {
    break-inside: avoid;
    border: 1px solid #ddd;
    background: #fafafa;
  }

  .tx-card:hover {
    transform: none;
  }
}

/* --- Light Mode Overrides --- */
html.light-mode .tx-search-bar {
  background: rgba(240, 240, 245, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .tx-search-bar input,
html.light-mode .tx-search-bar select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1f2937;
}

html.light-mode .tx-search-bar input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

html.light-mode .tx-search-bar input:focus,
html.light-mode .tx-search-bar select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

html.light-mode .tx-search-bar select option {
  background: #fff;
  color: #1f2937;
}

html.light-mode .tx-table-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .tx-table thead {
  background: rgba(240, 240, 245, 0.8);
}

html.light-mode .tx-table th {
  color: rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .tx-table td {
  color: #374151;
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

html.light-mode .tx-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

html.light-mode .tx-table tbody tr:focus-within {
  background: rgba(59, 130, 246, 0.06);
}

html.light-mode .tx-card {
  background: rgba(240, 240, 245, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .tx-card:hover {
  background: rgba(240, 240, 245, 0.8);
  border-color: rgba(59, 130, 246, 0.2);
}

html.light-mode .tx-card__label {
  color: rgba(0, 0, 0, 0.4);
}

html.light-mode .tx-card__value {
  color: #1f2937;
}

html.light-mode .tx-card__meta {
  color: rgba(0, 0, 0, 0.3);
  border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .tx-date {
  color: rgba(0, 0, 0, 0.45);
}

html.light-mode .tx-date strong {
  color: #1f2937;
}

html.light-mode .tx-date span {
  color: rgba(0, 0, 0, 0.3);
}

html.light-mode .tx-id {
  color: rgba(0, 0, 0, 0.4);
}

html.light-mode .tx-id code {
  background: rgba(0, 0, 0, 0.05);
}

html.light-mode .tx-pagination button,
html.light-mode .tx-pagination .tx-page {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

html.light-mode .tx-pagination button:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #1f2937;
}

html.light-mode .tx-pagination .tx-page--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

html.light-mode .tx-empty i {
  color: rgba(0, 0, 0, 0.1);
}

html.light-mode .tx-empty h3 {
  color: #1f2937;
}

html.light-mode .tx-empty p {
  color: rgba(0, 0, 0, 0.4);
}

html.light-mode .tx-detail-item span:first-child {
  color: rgba(0, 0, 0, 0.4);
}

html.light-mode .tx-detail-item span:last-child {
  color: #1f2937;
}

html.light-mode .tx-per-page select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1f2937;
}

html.light-mode .tx-per-page select option {
  background: #fff;
  color: #1f2937;
}

html.light-mode .tx-skeleton {
  background: linear-gradient(90deg, rgba(200,200,205,0.3) 25%, rgba(200,200,205,0.5) 50%, rgba(200,200,205,0.3) 75%);
  background-size: 200% 100%;
}

html.light-mode .tx-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

html.light-mode .tx-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

html.light-mode .tx-filter-tag {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

html.light-mode .tx-actions button {
  color: rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .tx-actions button:hover {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
}

html.light-mode .tx-search-count {
  color: rgba(0, 0, 0, 0.35);
}

html.light-mode .tx-search-count strong {
  color: #1f2937;
}

html.light-mode .tx-detail-toggle {
  color: rgba(0, 0, 0, 0.35);
}

html.light-mode .tx-detail-toggle:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}
