.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 152px);
  min-height: 240px;
  position: relative;
  border-bottom: 1px solid var(--c-border);
  scroll-snap-type: y mandatory;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 960px;
}

thead tr {
  background: var(--c-bg-dark);
}

.sticky-header {
  position: sticky;
  top: 0;
}

th {
  background: var(--c-bg-dark);
  color: var(--c-text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
  user-select: none;
  transition: color 0.12s;
  position: sticky;
  z-index: 5;
}
thead tr:first-child th {
  top: 0;
  height: 32px;
  z-index: 7;
}
thead tr:last-child th {
  top: 32px;
  z-index: 6;
}
th.table-header {
  width: auto;
  text-align: center;
  cursor: pointer;
}
th.table-header:hover {
  color: var(--c-text-input);
}
th.table-header.sorted {
  color: var(--c-accent);
}
th.th-group {
  background: var(--c-bg-dark);
  color: var(--c-text-muted);
  font-size: 10px;
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 4px;
  cursor: default;
}
th.docs-header {
  background: var(--c-bg-deep);
  color: #5a8ab0;
  text-align: center;
  cursor: default;
}
.th-sep {
  border-left: 2px solid var(--c-accent) !important;
}

tbody tr {
  border-bottom: 0.5px solid #e5e9ef;
  transition: background 0.12s;
  cursor: pointer;
  scroll-snap-align: center;
}
tbody tr:nth-child(even) {
  background: var(--c-row-even);
}
tbody tr:hover {
  background: var(--c-hover-row);
}

td {
  padding: 9px 12px;
  vertical-align: middle;
  color: var(--c-text-body);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
td.td-center {
  text-align: center;
  max-width: none;
}
td.td-nw {
  text-align: center;
  white-space: nowrap;
  min-width: auto;
  max-width: none;
  border-inline: 1px solid #0007472f;
}
td.td-sep {
  border-inline: 1px solid #0007472f;
}

td.td-truncate {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-num {
  font-weight: 600;
  color: #2563eb;
  font-size: 12px;
  white-space: nowrap;
}

.em-valor {
  font-weight: 500;
  white-space: nowrap;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #dde3ea;
  background: #f7f9fc;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  margin: 0 2px;
}
.doc-btn svg {
  width: 14px;
  height: 14px;
}
.doc-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.doc-btn .tip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  background: var(--c-bg-mid);
  color: var(--c-text-input);
}

.doc-na {
  width: 100%;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  color: #141414;
  font-size: 12px;
}
.empty-row td {
  text-align: center;
  padding: 40px;
  color: #9fb0c0;
  font-size: 13px;
  max-width: none;
}
