/* PeakMaps – tabell-stiler (flyttet ut fra inline <style> for caching + ingen duplisering) */
/* ── Filterrad ─────────────────────────────────────── */
.nu-topper-filter { margin-bottom: 16px; }
.nu-filter-row {
    display: flex; flex-wrap: wrap; gap: 10px 16px;
    align-items: flex-end; padding: 14px 16px;
    background: #f8faf9; border: 1px solid #d8ead2;
    border-radius: 8px;
}
.nu-filter-row label { display: flex; flex-direction: column; font-size: 11px;
    font-weight: 600; color: #555; gap: 4px; letter-spacing: .3px; text-transform: none; }
.nu-filter-row select,
.nu-filter-row input { padding: 6px 10px; border: 1px solid #cdd8cd;
    border-radius: 5px; font-size: 13px; background: #fff;
    transition: border-color .15s, box-shadow .15s; }
.nu-filter-row select:focus,
.nu-filter-row input:focus  { outline: none; border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,.12); }
/* Søkbare kommune/fylke-felt: hold dem kompakte og på linje med resten av filterraden */
.nu-filter-row .nu-combobox { min-width: 0; width: 140px; max-width: 100%; }
.nu-filter-row .nu-combobox-input { padding: 6px 22px 6px 10px; font-size: 13px; }
.nu-filter-row .nu-combobox::after { right: 9px; }
.nu-filter-row .nu-combobox-opt { padding: 5px 10px; }

/* ── Tell og tabell-wrapper ────────────────────────── */
.nu-topper-count { font-size: 13px; color: #777; margin: 0 0 10px; }
.nu-table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}
.nu-topper-table-wrap { transition: opacity .18s ease; }

/* ── Tabell ────────────────────────────────────────── */
.nu-topper-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; min-width: 380px;
}

/* Overskrift */
.nu-topper-table thead tr { background: #1b4332; }
.nu-topper-table th {
    color: #e8f5e9; padding: 9px 10px;
    text-align: left; font-weight: 600; font-size: 12px;
    white-space: nowrap; letter-spacing: .4px; text-transform: none;
    border-bottom: 2px solid #2d6a4f;
}
.nu-topper-table th:first-child { border-radius: 10px 0 0 0; }
.nu-topper-table th:last-child  { border-radius: 0 10px 0 0; }
.nu-topper-table th.nu-sortable { cursor: pointer; user-select: none; transition: background .12s; }
.nu-topper-table th.nu-sortable:hover { background: #245a42; }
.nu-topper-table th.nu-sortable::after     { content: ' ⇅'; opacity: .35; font-size: 10px; }
.nu-topper-table th.nu-sort-desc::after    { content: ' ▼'; opacity: .9; }
.nu-topper-table th.nu-sort-asc::after     { content: ' ▲'; opacity: .9; }

/* Rader */
.nu-topper-table td {
    padding: 8px 10px; border-bottom: 1px solid #eef0ee;
    vertical-align: middle; line-height: 1.4;
}
.nu-topper-table tbody tr.nu-data-row { cursor: pointer; transition: background .1s; }
.nu-topper-table tbody tr.nu-data-row:hover td { background: #f0f7f3; }
.nu-topper-table tbody tr.nu-row-odd  td { background: #fafcfa; }
.nu-topper-table tbody tr.nu-row-odd:hover td { background: #ebf4ee; }
.nu-topper-table tbody tr.nu-row-open > td { background: #e6f4ec !important; }
.nu-topper-table tbody tr.nu-row-open > td:first-child { border-left: 3px solid #2d6a4f; }
.nu-topper-table tbody tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.nu-topper-table tbody tr:last-child td:last-child  { border-radius: 0 0 10px 0; }
.nu-topper-table a { color: #2d6a4f; text-decoration: none; font-weight: 500; }
.nu-topper-table a:hover { text-decoration: underline; color: #1b4332; }

/* Detaljrad */
.nu-detail-row { display: none; }
.nu-detail-row td {
    padding: 12px 14px; background: #f2f9f5 !important;
    border-bottom: 2px solid #c8e6d4; border-top: 1px solid #d8ead2;
}
.nu-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px 24px;
}
.nu-detail-item dt {
    font-size: 10px; color: #888; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 3px; font-weight: 600;
}
.nu-detail-item dd { font-size: 13px; color: #222; margin: 0; font-weight: 500; }

/* ── Paginering ────────────────────────────────────── */
.nu-pagination {
    margin-top: 20px; display: flex; flex-wrap: wrap;
    align-items: center; gap: 6px 4px; justify-content: flex-start;
}
.nu-per-page { margin-left: auto; }
.nu-page-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 3px; align-items: stretch;
}
.nu-page-list li { display: flex; align-items: stretch; }
.nu-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #d0ddd0; border-radius: 6px; font-size: 13px;
    font-weight: 500; color: #2d6a4f !important; background: #fff;
    text-decoration: none !important; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.nu-page-btn:hover { background: #f0f7f3; border-color: #2d6a4f; }
.nu-page-btn.nu-page-current {
    background: #2d6a4f; border-color: #2d6a4f;
    color: #fff !important; cursor: default;
}
.nu-page-btn.nu-page-disabled {
    color: #bbb !important; border-color: #e8e8e8;
    background: #fafafa; cursor: default; pointer-events: none;
}
.nu-page-btn.nu-page-arrow { font-size: 22px; font-weight: 300; padding: 0 10px; padding-bottom: 2px; }
.nu-page-ellipsis { display: inline-flex; align-items: center; padding: 0 6px;
    color: #999; font-size: 14px; height: 36px; }

.nu-ingen-topper { color: #888; font-style: italic; padding: 24px 0; text-align: center; }

.nu-branding { margin: 6px 0 0 !important; font-size: 0.6em !important; color: #ccc !important; text-align: right !important; line-height: normal !important; }
.nu-branding a { color: #ccc !important; text-decoration: underline !important; font-size: inherit !important; }
.nu-branding a:hover { color: #999 !important; }

/* ── Mobil ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .nu-filter-row { flex-direction: column; gap: 8px; }
    .nu-filter-row label,
    .nu-filter-row select,
    .nu-filter-row input,
    .nu-filter-row .nu-combobox { width: 100%; box-sizing: border-box; }
    .nu-topper-table { font-size: 13px; min-width: unset; }
    .nu-topper-table th { padding: 8px 8px; font-size: 10px; }
    .nu-topper-table td { padding: 8px 8px; }
    .nu-topper-table th.nu-sortable::after,
    .nu-topper-table th.nu-sort-desc::after,
    .nu-topper-table th.nu-sort-asc::after { display: none; }
    .nu-page-btn { min-width: 32px; height: 32px; font-size: 12px; }
}

/* Radnummer-kolonne (valfri, heilt til venstre i tabellen) */
.nu-topper-table th.nu-radnr-col,
.nu-topper-table td.nu-radnr-col{
    width:1%;
    white-space:nowrap;
    text-align:right;
    color:#888;
    font-variant-numeric:tabular-nums;
    padding-right:10px;
}
