/* ==========================================================================
   Lineage Garden (계보원) - Table View Stylesheet
   Path: /linea/css/table_view.css
   ========================================================================== */

.tablewrap {
  overflow: auto;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tablewrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  background: var(--panel);
}

.tablewrap thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 2px solid var(--line-strong);
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
  z-index: 5;
  transition: background 0.12s;
}

.tablewrap thead th:hover {
  background: var(--panel-2);
  color: var(--fg);
}

.tablewrap thead th .sort-dir {
  color: var(--accent);
  font-weight: 700;
  margin-left: 3px;
}

.tablewrap tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13.5px;
}

.tablewrap tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.tablewrap tbody tr:hover {
  background: var(--panel-2);
}

.tablewrap tbody tr[aria-selected="true"] {
  background: var(--accent-soft);
  font-weight: 500;
}

.tablewrap td.num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.tablewrap td.name {
  font-weight: 600;
  white-space: nowrap;
  color: var(--fg);
}

.tablewrap td.name .hj {
  font-family: var(--display);
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
  font-size: 12.5px;
}

.tablewrap td.title-col {
  color: var(--ochre);
  font-weight: 600;
  white-space: nowrap;
}

.tablewrap td.note {
  max-width: 500px;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.5;
}

.tablewrap td.note .tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  background: var(--ochre-soft);
  color: var(--ochre);
  font-weight: 600;
}

.tablewrap td.note .tag.se {
  background: var(--celestial-soft);
  color: var(--celestial);
}

.tablefoot {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 4;
}
