/* Table Component */

/* Node Content Table Container with Scroll */
.node__content .table__wrapper {
  overflow: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
}

table {
  width: auto;
  min-width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  background-color: #fff;
  table-layout: auto;
}

table th,
table td {
  padding: 0.75rem;
  vertical-align: top;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #212529;
}

table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

table tbody tr:hover {
  background-color: #f8f9fa;
}

table a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-all;
}

table a:hover {
  text-decoration: underline;
}

/* Bordered table */
table.table-bordered {
  border: 1px solid #dee2e6;
}

table.table-bordered th,
table.table-bordered td {
  border: 1px solid #dee2e6;
}

/* Striped table */
table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive table wrapper */
.table-responsive {
  display: block;
  width: 100%;
  overflow: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .node__content .table__wrapper {
    max-height: 60vh;
  }

  table th,
  table td {
    font-size: 13px;
    padding: 8px 6px;
  }
}
