

/* Strektykkelse */
/* ===== Overstyr tablesorter-header borders ===== */

.nsb2 table.tablesorter thead th {
  border-right: 0.5px solid #c9d6c4;
}

/* vanlig skille */
.nsb2 table.tablesorter thead th.vstrek {
  border-right: 0.75px solid #b8c8b3;
}

/* �R-skille � tydeligere */
.nsb2 table.tablesorter thead th.vstrek2 {
  border-right: 1px solid #9fb3cc;
}


/* Overstyr .nsb2 th for sumrad */
.nsb2 thead tr.sumrow th {
  display: table-cell !important;
  text-align: right !important;
  padding-right: 10px !important;
}

/* F�rste celle (Sum:) venstrejustert */
.nsb2 thead tr.sumrow th:first-child {
  text-align: left !important;
}

/* match td-padding og juster h�yre */
.nsb2 thead tr.sumrow th {
  display: table-cell !important;
  text-align: right !important;
  padding: 5px 5px 5px 5px !important; /* samme som tbody */
  border-top: 2px solid #c3d2e3;       /* evt. visuelt skille */
}

/* venstrejuster Sum: */
.nsb2 thead tr.sumrow th:first-child {
  text-align: left !important;
}

.tablesorter tfoot {
  display: table-header-group;
}

.tablesorter tbody {
  display: table-row-group;
}

.tablesorter tfoot th {
  font-weight: bold;
  background: #f3f6fa;
  border-bottom: 2px solid #9fb3cc;
}

.nsb2 tfoot th.num {
  text-align: right !important;
}

.nsb2 tfoot td {
  background: #f3f6fa;   /* samme lysebl� */
  font-weight: bold;
}

/* ===== Sticky THEAD + TFOOT (uten gaps) ===== */

.nsb2 table.tablesorter {
  border-collapse: separate;   /* KRITISK */
  border-spacing: 0;
}

/* THEAD */
.nsb2 thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #e9efe6;
  background-clip: padding-box;
}

/* TFOOT (sumrad) */
.nsb2 tfoot th {
  position: sticky;
  top: 0;                 /* settes dynamisk av JS */
  z-index: 9;
  background-color: #f3f6fa;
  background-clip: padding-box;
  font-weight: bold;
}

/* Tall i sumrad h�yrejustert */
.nsb2 tfoot th.num {
  text-align: right !important;
}

/* Label-celle */
.nsb2 tfoot th:first-child {
  text-align: right !important;
}

/* Unng� at neste tabell flyter over */
.nsb2 {
  overflow: visible;
}


