/*
|--------------------------------------------------------------------------
| Rotary Danmarks Hjælpefond - Administration
| Levering: Admin v0.6.48 – 10.09.2026 – Direkte adgang til offentlig hjemmeside
| Formål: Fælles admin-design inkl. tydeligt adskilt genvej fra internt område til den offentlige hjemmeside.
|--------------------------------------------------------------------------
*/

:root {
    --rdhj-blue: #17458f;
    --rdhj-blue-dark: #0f326d;
    --rdhj-gold: #f7a81b;
    --rdhj-gold-dark: #dc8f08;
    --rdhj-bg: #f4f6fa;
    --rdhj-surface: #ffffff;
    --rdhj-soft: #eef2f8;
    --rdhj-text: #172033;
    --rdhj-muted: #697386;
    --rdhj-border: #dfe5ef;
    --rdhj-success: #217a4d;
    --rdhj-danger: #a33131;
    --rdhj-warning: #926000;
    --rdhj-radius: 18px;
    --rdhj-shadow: 0 12px 28px rgba(23, 69, 143, .08);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--rdhj-text);
    background: var(--rdhj-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rdhj-bg);
}

a {
    color: var(--rdhj-blue);
}

.admin-header {
    min-height: 86px;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--rdhj-blue);
    border-bottom: 4px solid var(--rdhj-gold);
    color: #fff;
}

.admin-header__brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-header__brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-header__brand span {
    color: rgba(255,255,255,.72);
    font-size: .82rem;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem;
}

.admin-nav a:hover {
    color: var(--rdhj-gold);
}

.admin-nav-toggle {
    display: none;
}

.admin-userbar {
    padding: 12px 4vw;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--rdhj-blue-dark);
    color: rgba(255,255,255,.88);
    font-size: .88rem;
}

.admin-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 70px;
    flex: 1 0 auto;
}

.admin-main--narrow {
    width: min(900px, calc(100% - 40px));
}

.admin-page-heading {
    margin-bottom: 30px;
}

.admin-page-heading--actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.admin-page-heading h1 {
    margin: 4px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.admin-page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--rdhj-muted);
    line-height: 1.55;
}

.admin-eyebrow {
    color: var(--rdhj-blue) !important;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-card {
    min-height: 225px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rdhj-border);
    border-top: 5px solid var(--rdhj-gold);
    border-radius: var(--rdhj-radius);
    box-shadow: var(--rdhj-shadow);
    color: inherit;
    text-decoration: none;
}

a.dashboard-card {
    transition: transform .2s ease, border-color .2s ease;
}

a.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23,69,143,.3);
}

.dashboard-card--future {
    box-shadow: none;
    background: rgba(255,255,255,.68);
}

.dashboard-card__tag {
    margin-bottom: 12px;
    color: var(--rdhj-blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    font-weight: 800;
}

.dashboard-card h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}

.dashboard-card p {
    margin: 0;
    color: var(--rdhj-muted);
    line-height: 1.5;
}

.dashboard-card__meta {
    margin-top: auto;
    padding-top: 20px;
    color: var(--rdhj-blue);
    font-weight: 700;
}

.content-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--rdhj-border);
    border-radius: var(--rdhj-radius);
    box-shadow: var(--rdhj-shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd7e4;
    border-radius: 11px;
    background: #fff;
    color: var(--rdhj-text);
    font: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: 3px solid rgba(23,69,143,.12);
    border-color: var(--rdhj-blue);
}

.form-help {
    margin: 0;
    color: var(--rdhj-muted);
    font-size: .9rem;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--rdhj-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--rdhj-blue-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--rdhj-blue);
    border-color: var(--rdhj-border);
}

.btn-small {
    min-height: 34px;
    padding: 7px 13px;
    background: var(--rdhj-soft);
    color: var(--rdhj-blue);
}

.btn-block {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 13px;
    border-bottom: 1px solid var(--rdhj-border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    color: var(--rdhj-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}

.status-badge--active {
    background: #e8f6ee;
    color: var(--rdhj-success);
}

.status-badge--inactive {
    background: #f1f2f4;
    color: #666d78;
}

.alert {
    margin-bottom: 22px;
    padding: 15px 17px;
    border-radius: 12px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-success {
    background: #eaf7ef;
    color: var(--rdhj-success);
    border-color: #cfe9d9;
}

.alert-error {
    background: #fff0f0;
    color: var(--rdhj-danger);
    border-color: #f0cece;
}

.alert-warning {
    background: #fff7e7;
    color: var(--rdhj-warning);
    border-color: #f0ddb5;
}

.alert-info {
    background: #edf4ff;
    color: var(--rdhj-blue-dark);
    border-color: #d3e2fb;
}

.admin-footer {
    margin-top: auto;
    padding: 26px 4vw;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--rdhj-muted);
    font-size: .86rem;
    border-top: 1px solid var(--rdhj-border);
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(247,168,27,.13), transparent 28%),
        linear-gradient(180deg, #f7f9fc, #eef2f8);
}

.auth-shell {
    width: min(100%, 540px);
}

.auth-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rdhj-border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(23,69,143,.12);
}

.auth-card__head {
    padding: 30px;
    background: var(--rdhj-blue);
    color: #fff;
    border-bottom: 5px solid var(--rdhj-gold);
}

.auth-card__head h1 {
    margin: 6px 0 9px;
    font-size: 2rem;
}

.auth-card__head p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}

.auth-card__kicker {
    color: var(--rdhj-gold);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .74rem;
    font-weight: 800;
}

.auth-card__body {
    padding: 30px;
}

.setup-link {
    overflow-wrap: anywhere;
    padding: 12px;
    background: var(--rdhj-soft);
    border-radius: 10px;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 14px;
        color: #fff;
        background: transparent;
        border: 1px solid rgba(255,255,255,.45);
        border-radius: 10px;
        font-weight: 700;
    }

    .admin-header {
        position: relative;
    }

    .admin-nav {
        display: none;
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        z-index: 20;
        padding: 20px 4vw;
        flex-direction: column;
        align-items: flex-start;
        background: var(--rdhj-blue-dark);
    }

    .admin-nav.is-open {
        display: flex;
    }
}


/*
|--------------------------------------------------------------------------
| Kontaktindbakke
| Levering: Admin v0.6.55 – 20.10.2026
|--------------------------------------------------------------------------
*/

.admin-page-heading__actions,
.inbox-toolbar,
.inbox-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inbox-readonly-note {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #d3e2fb;
    border-radius: 12px;
    background: #edf4ff;
    color: var(--rdhj-blue-dark);
    line-height: 1.5;
}

.inbox-toolbar {
    justify-content: space-between;
    margin-bottom: 20px;
}

.inbox-period-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inbox-period-filter label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
}

.inbox-period-filter select {
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    border: 1px solid var(--rdhj-border);
    border-radius: 9px;
    background: #fff;
    color: var(--rdhj-text);
    font: inherit;
}

.inbox-result-count {
    margin: 0 0 12px;
    color: var(--rdhj-muted);
    font-weight: 700;
}

.inbox-message-list {
    overflow: hidden;
    border: 1px solid var(--rdhj-border);
    border-radius: 14px;
    background: #fff;
}

.inbox-message-row {
    display: grid;
    grid-template-columns: 12px minmax(150px, .8fr) minmax(220px, 1.6fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--rdhj-border);
    color: var(--rdhj-text);
    text-decoration: none;
}

.inbox-message-row:last-child {
    border-bottom: 0;
}

.inbox-message-row:hover,
.inbox-message-row:focus-visible {
    background: var(--rdhj-soft);
}

.inbox-message-row.is-unread {
    font-weight: 700;
}

.inbox-message-state {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c8ced7;
}

.inbox-message-row.is-unread .inbox-message-state {
    background: var(--rdhj-gold);
}

.inbox-message-from,
.inbox-message-subject {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-message-date {
    color: var(--rdhj-muted);
    font-size: .9rem;
    white-space: nowrap;
}

.inbox-empty-state {
    padding: 30px;
    border: 1px dashed var(--rdhj-border);
    border-radius: 14px;
    text-align: center;
}

.inbox-empty-state p {
    margin: 7px 0 0;
    color: var(--rdhj-muted);
}

.inbox-pagination {
    justify-content: center;
    margin-top: 22px;
}

.inbox-message-detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rdhj-border);
}

.inbox-message-detail-header h2 {
    margin: 5px 0 18px;
}

.inbox-message-detail-header dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.inbox-message-detail-header dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

.inbox-message-detail-header dt {
    color: var(--rdhj-muted);
    font-weight: 700;
}

.inbox-message-detail-header dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.inbox-message-body {
    margin-top: 24px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.inbox-message-no-body {
    margin-top: 24px;
    color: var(--rdhj-muted);
}

.inbox-attachments {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--rdhj-border);
}

.inbox-attachments h3 {
    margin: 0 0 12px;
}

.inbox-attachments ul {
    margin: 0;
    padding-left: 20px;
}

.inbox-attachments li + li {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .admin-page-heading__actions,
    .inbox-toolbar,
    .inbox-period-filter {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-page-heading__actions .btn,
    .inbox-toolbar .btn {
        width: 100%;
    }

    .inbox-period-filter label {
        align-items: stretch;
        flex-direction: column;
    }

    .inbox-message-row {
        grid-template-columns: 12px minmax(0, 1fr);
        gap: 6px 12px;
    }

    .inbox-message-subject,
    .inbox-message-date {
        grid-column: 2;
    }

    .inbox-message-date {
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .admin-main,
    .admin-main--narrow {
        width: min(100% - 28px, 1180px);
        padding-top: 36px;
    }

    .admin-userbar,
    .admin-page-heading--actions,
    .admin-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 0;
    }

    .content-card {
        padding: 22px;
    }

    .auth-page {
        padding: 18px;
    }

    .auth-card__head,
    .auth-card__body {
        padding: 24px;
    }
}


/*
|--------------------------------------------------------------------------
| Historiske data - kort-handlinger
| Levering: Admin v0.6.1b
|--------------------------------------------------------------------------
*/
.dashboard-card__actions {
    margin-top: 18px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid var(--rdhj-border);
}

.dashboard-card__actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    font-size: .84rem;
    white-space: nowrap;
}

.dashboard-card__actions .btn:only-child {
    grid-column: 1 / -1;
}

/*
|--------------------------------------------------------------------------
| Filupload - RDHJ styling
| Levering: Admin v0.6.1b
|--------------------------------------------------------------------------
*/
.form-group input[type="file"] {
    padding: 6px 8px;
    background: #fff;
    color: var(--rdhj-muted);
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--rdhj-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: var(--rdhj-blue-dark);
}

@media (max-width: 680px) {
    .dashboard-card__actions {
        grid-template-columns: 1fr;
    }

    .dashboard-card__actions .btn:only-child {
        grid-column: auto;
    }
}


/*
|--------------------------------------------------------------------------
| Formularvalidering - tydelige feltfejl
| Levering: Admin v0.6.1d
|--------------------------------------------------------------------------
*/
.form-control--error {
    border-color: var(--rdhj-danger) !important;
    box-shadow: 0 0 0 3px rgba(177, 45, 45, .10);
}

.form-error-message {
    margin: 7px 0 0;
    color: var(--rdhj-danger);
    font-size: .9rem;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Formularvalidering - tydelig markering af hele feltområdet
| Levering: Admin v0.6.1e
|--------------------------------------------------------------------------
*/
.form-group--error {
    padding: 14px 16px;
    border: 1px solid var(--rdhj-danger);
    border-left-width: 5px;
    border-radius: 12px;
    background: #fff6f6;
}

.form-group--error label {
    color: var(--rdhj-danger);
}

.form-group--error select,
.form-group--error input[type="file"] {
    border-color: var(--rdhj-danger) !important;
}

.form-group--error .form-error-message {
    color: var(--rdhj-danger);
}

.form-error-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--rdhj-danger);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    vertical-align: middle;
}


/*
|--------------------------------------------------------------------------
| Formularvalidering - fejltekst skal skille sig tydeligt ud
| Levering: Admin v0.6.1f
|--------------------------------------------------------------------------
*/
.form-group--error > label,
.form-group--error > .form-error-message {
    color: #b12d2d !important;
}

.form-group--error > .form-error-message {
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Brede tabeller - synlig vandret navigation
| Levering: Admin v0.6.2
|--------------------------------------------------------------------------
*/
.table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    color: var(--rdhj-muted);
    font-size: .86rem;
}

.table-scroll-hint > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: var(--rdhj-soft);
    color: var(--rdhj-blue);
    font-size: 1rem;
    font-weight: 800;
}

.table-scroll-top {
    width: 100%;
    height: 18px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: var(--rdhj-blue) var(--rdhj-soft);
    scrollbar-width: auto;
}

.table-scroll-top[hidden] {
    display: none;
}

.table-scroll-top__inner {
    height: 1px;
}

.table-scroll-top::-webkit-scrollbar {
    height: 12px;
}

.table-scroll-top::-webkit-scrollbar-track {
    background: var(--rdhj-soft);
    border-radius: 999px;
}

.table-scroll-top::-webkit-scrollbar-thumb {
    background: var(--rdhj-blue);
    border-radius: 999px;
    border: 2px solid var(--rdhj-soft);
}

.table-responsive {
    scrollbar-color: var(--rdhj-blue) var(--rdhj-soft);
}

.table-responsive::-webkit-scrollbar {
    height: 12px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--rdhj-soft);
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--rdhj-blue);
    border-radius: 999px;
    border: 2px solid var(--rdhj-soft);
}

/*
|--------------------------------------------------------------------------
| Historiske perioder - formular og tabel
| Levering: Admin v0.6.3a
|--------------------------------------------------------------------------
*/

/* Den generelle input-regel må ikke gøre checkbokse til fuld bredde. */
.form-group input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    flex: 0 0 20px;
    accent-color: var(--rdhj-blue);
}

/* Bruges på periodeformularens aktiv/inaktiv-valg. */
.period-active-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.period-active-field label {
    margin: 0;
}

.period-active-field .form-help {
    grid-column: 2;
}

/* Handlingsknapper i periodetabellen skal stå centreret i rækken. */
.period-actions {
    margin-top: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.period-actions form {
    margin: 0;
    display: flex;
    align-items: center;
}

.period-actions .btn {
    margin: 0;
}

.admin-table td.period-actions-cell {
    vertical-align: middle;
}

@media (max-width: 680px) {
    .period-actions {
        flex-wrap: wrap;
    }
}



/*
|--------------------------------------------------------------------------
| Historiske perioder - finjustering af tabelhandlinger
| Levering: Admin v0.6.3b
|--------------------------------------------------------------------------
*/
.admin-table td.period-actions-cell {
    padding-top: 15px;
    padding-bottom: 15px;
}

.period-actions {
    position: relative;
    top: -2px;
}

/*
|--------------------------------------------------------------------------
| Årsrapporter
| Levering: Admin v0.6.5 – 30.08.2026
|--------------------------------------------------------------------------
*/
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cfd7e4;
    border-radius: 11px;
    background: #fff;
    color: var(--rdhj-text);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}
.form-group textarea:focus {
    outline: 3px solid rgba(23,69,143,.12);
    border-color: var(--rdhj-blue);
}
.annual-report-publish-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}
.annual-report-publish-field label { margin: 0; }
.annual-report-publish-field .form-help { grid-column: 2; }
.annual-report-file-info {
    margin-bottom: 26px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--rdhj-soft);
    border-radius: 12px;
}
.annual-report-file-info span { color: var(--rdhj-muted); }
.annual-report-file-info a { margin-left: auto; font-weight: 700; }

/*
|--------------------------------------------------------------------------
| Årsrapporter – permanent PDF-erstatning og rettighedsoversigt
| Levering: Admin v0.6.7 – 30.08.2026
|--------------------------------------------------------------------------
*/
.annual-report-replace-card {
    margin-top: 24px;
}

.annual-report-danger-warning {
    margin: 16px 0 22px;
    padding: 16px 18px;
    border: 1px solid #d7a0a0;
    border-left: 5px solid #a82929;
    border-radius: 12px;
    background: #fff5f5;
    color: #672020;
}

.annual-report-danger-warning strong {
    display: block;
    margin-bottom: 6px;
    color: #8f2222;
}

.annual-report-danger-warning p {
    margin: 0;
}

.annual-report-permanent-confirmation {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff8e8;
    border: 1px solid #ead3a3;
}

.annual-report-permanent-confirmation input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #a82929;
}

.annual-report-permanent-confirmation label {
    margin: 0;
    font-weight: 700;
}

.btn-danger {
    background: #a82929;
    border-color: #a82929;
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: #861f1f;
    border-color: #861f1f;
    color: #fff;
}

.help-rights-overview {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid #dbe2ec;
    border-radius: 14px;
    background: #fff;
}

.help-rights-overview h2 {
    margin-top: 0;
}

.help-rights-table th:not(:first-child),
.help-rights-table td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Skabeloner
| Levering: Admin v0.6.8 – 30.08.2026
|--------------------------------------------------------------------------
*/
.table-secondary-text {
    max-width: 520px;
    margin-top: 5px;
    color: var(--rdhj-muted);
    font-size: .9rem;
    line-height: 1.4;
}
.template-publish-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--rdhj-border);
    border-radius: 10px;
    background: var(--rdhj-soft);
}
.template-publish-field input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--rdhj-blue);
}
.template-publish-field span {
    display: grid;
    gap: 4px;
}
.template-publish-field small {
    color: var(--rdhj-muted);
}
.template-version-upload-card,
.template-history-card {
    margin-top: 24px;
}
.template-version-upload-card h2,
.template-history-card h2,
.form-card h2 {
    margin-top: 0;
}


/* Brugerprofil – levering 1 */
.admin-user-menu { position: relative; }
.admin-user-menu__toggle { display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.admin-user-menu__toggle:hover, .admin-user-menu__toggle:focus-visible { color:#fff; }
.admin-user-menu__panel { position:absolute; top:calc(100% + 10px); right:0; z-index:40; min-width:190px; padding:8px; background:#fff; border:1px solid var(--rdhj-border); border-radius:12px; box-shadow:var(--rdhj-shadow); }
.admin-user-menu__panel[hidden] { display:none; }
.admin-user-menu__panel a { display:block; padding:10px 12px; border-radius:8px; color:var(--rdhj-text); text-decoration:none; font-weight:700; }
.admin-user-menu__panel a:hover { background:var(--rdhj-soft); color:var(--rdhj-blue); }
.admin-user-menu__panel .admin-user-menu__logout { border-top:1px solid var(--rdhj-border); border-radius:0 0 8px 8px; color:var(--rdhj-danger); }
.profile-section-divider { height:1px; margin:28px 0; background:var(--rdhj-border); }
.form-group input:disabled { background:var(--rdhj-soft); color:var(--rdhj-muted); cursor:not-allowed; }
@media (max-width:680px) { .admin-user-menu__panel { left:0; right:auto; } }

/*
|--------------------------------------------------------------------------
| Topnavigation - ny informationsarkitektur
| Levering: Admin v0.6.29 – 10.09.2026
| Formål: Enkel rettighedsstyret navigation med tydelig aktiv placering.
|--------------------------------------------------------------------------
*/
.admin-nav a{position:relative;padding:10px 0}.admin-nav a.is-active{color:#fff}.admin-nav a.is-active:after{content:"";position:absolute;left:0;right:0;bottom:1px;height:3px;border-radius:999px;background:var(--rdhj-gold)}
@media(max-width:900px){.admin-nav a{width:100%;padding:10px 0}.admin-nav a.is-active:after{right:auto;width:34px;bottom:2px}}


/*
|--------------------------------------------------------------------------
| Topnavigation - visuel QA
| Levering: Admin v0.6.29a – 10.09.2026
|--------------------------------------------------------------------------
*/
.admin-header{
    min-height:88px;
    background:linear-gradient(112deg,#12366f 0%,#17458f 48%,#123f82 100%);
    box-shadow:0 10px 28px rgba(15,50,109,.16);
}
.admin-header__brand{
    min-width:245px;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;
    color:#fff;
    text-decoration:none;
}
.admin-header__logo-wrap{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    flex:0 0 46px;
    overflow:hidden;
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 16px rgba(0,0,0,.13);
}
.admin-header__logo{display:block;max-width:40px;max-height:40px;width:auto;height:auto}
.admin-header__brand-text{display:grid;gap:3px;min-width:0}
.admin-header__brand-text strong{color:#fff;font-size:1.02rem;line-height:1.12}
.admin-header__brand-text small{color:rgba(255,255,255,.70);font-size:.79rem}
.admin-nav{gap:7px}
.admin-nav a{
    padding:10px 13px;
    border:1px solid transparent;
    border-radius:999px;
    transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.admin-nav a:hover{
    color:#fff;
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.12);
}
.admin-nav a.is-active{
    color:#fff;
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.18);
    box-shadow:inset 0 -3px 0 var(--rdhj-gold);
}
.admin-nav a.is-active:after{display:none}
.admin-nav .admin-nav__logout{
    margin-left:5px;
    padding-left:16px;
    padding-right:16px;
    border-color:rgba(255,255,255,.24);
    background:rgba(15,50,109,.30);
}
.admin-nav .admin-nav__logout:hover{background:#fff;color:var(--rdhj-blue-dark);border-color:#fff}
@media(max-width:1100px){.admin-header__brand-text strong{font-size:.92rem}.admin-header__brand{min-width:205px}.admin-nav a{padding-left:9px;padding-right:9px}}
@media(max-width:900px){
    .admin-header__brand{min-width:0}
    .admin-nav{gap:4px;top:88px;box-shadow:0 16px 30px rgba(15,50,109,.18)}
    .admin-nav a{width:100%;padding:11px 14px;border-radius:10px}
    .admin-nav a.is-active{box-shadow:inset 4px 0 0 var(--rdhj-gold)}
    .admin-nav .admin-nav__logout{margin:8px 0 0;border-color:rgba(255,255,255,.24)}
}
@media(max-width:520px){.admin-header__logo-wrap{width:40px;height:40px;flex-basis:40px}.admin-header__logo{max-width:35px;max-height:35px}.admin-header__brand-text strong{font-size:.84rem}.admin-header__brand-text small{font-size:.72rem}}


/*
|--------------------------------------------------------------------------
| Adminheader - vandret Hjælpefondslogo
| Levering: Admin v0.6.29c – 10.09.2026
| Formål: Tilpasse headeren til Hjælpefondens officielle aflange logo uden visuel støj.
|--------------------------------------------------------------------------
*/
.admin-header__brand{min-width:190px;flex-direction:row;align-items:center;gap:0;text-decoration:none}
.admin-header__logo-wrap{width:auto;height:52px;min-width:0;padding:6px 9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;border-radius:11px;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.10)}
.admin-header__logo{display:block;width:auto;height:40px;max-width:210px;max-height:40px;object-fit:contain}
.admin-header__brand-text{display:none}
@media(max-width:1100px){.admin-header__brand{min-width:170px}.admin-header__logo-wrap{height:48px;padding:5px 8px}.admin-header__logo{height:36px;max-width:185px;max-height:36px}}
@media(max-width:520px){.admin-header__brand{min-width:0}.admin-header__logo-wrap{width:auto;height:42px;flex-basis:auto;padding:5px 7px}.admin-header__logo{height:31px;max-width:160px;max-height:31px}}


/*
|--------------------------------------------------------------------------
| Adminheader - markering af internt område
| Levering: Admin v0.6.29d – 10.09.2026
| Formål: Gøre det tydeligt, at brugeren befinder sig i Hjælpefondens interne område.
|--------------------------------------------------------------------------
*/
.admin-header__identity{display:flex;align-items:center;gap:12px;min-width:285px}
.admin-header__area-label{color:rgba(255,255,255,.78);font-size:.78rem;font-weight:700;letter-spacing:.03em;white-space:nowrap}
@media(max-width:1100px){.admin-header__identity{min-width:250px;gap:9px}.admin-header__area-label{font-size:.73rem}}
@media(max-width:900px){.admin-header__identity{min-width:0}}
@media(max-width:620px){.admin-header__area-label{display:none}}


/*
|--------------------------------------------------------------------------
| Brugerlinje - visuel balance og tydelig dropdown
| Levering: Admin v0.6.29f – 10.09.2026
| Formål: Give sidenavn og brugermenu samme diskrete pill-form uden at ændre den låste adminheader.
|--------------------------------------------------------------------------
*/
.admin-userbar__page{display:flex;align-items:center}
.admin-userbar__page strong,
.admin-user-menu__toggle{
    min-height:38px;
    padding:8px 14px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:11px;
    background:rgba(255,255,255,.07);
    color:#fff;
    font-weight:700;
    line-height:1.2;
}
.admin-user-menu__toggle{
    transition:background .18s ease,border-color .18s ease;
}
.admin-user-menu__toggle:hover,
.admin-user-menu__toggle:focus-visible{
    background:rgba(255,255,255,.12);
    border-color:rgba(255,255,255,.38);
    color:#fff;
    outline:none;
}
.admin-user-menu__chevron{
    display:inline-block;
    margin-left:2px;
    font-size:1rem;
    line-height:1;
    transform:translateY(-1px);
    transition:transform .18s ease;
}
.admin-user-menu__toggle[aria-expanded="true"] .admin-user-menu__chevron{
    transform:translateY(1px) rotate(180deg);
}
@media(max-width:680px){
    .admin-userbar__page strong,
    .admin-user-menu__toggle{min-height:36px;padding:8px 12px}
}

/*
|--------------------------------------------------------------------------
| Skabeloner v2
| Levering: Admin v0.6.30 – 10.09.2026
| Formål: Sammenhængende public/admin-oplevelse, kortoversigt og versionering.
|--------------------------------------------------------------------------
*/
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd7e4;
    border-radius: 11px;
    background: #fff;
    color: var(--rdhj-text);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.form-group textarea:focus {
    outline: 3px solid rgba(23,69,143,.12);
    border-color: var(--rdhj-blue);
}

.template-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.template-admin-card,
.template-public-card,
.template-current-file-card,
.template-history-card,
.template-create-card,
.template-empty-card {
    border-left: 5px solid #b9d9eb;
}

.template-admin-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    background: #fff;
    border-top: 1px solid var(--rdhj-border);
    border-right: 1px solid var(--rdhj-border);
    border-bottom: 1px solid var(--rdhj-border);
    border-radius: var(--rdhj-radius);
    box-shadow: var(--rdhj-shadow);
}

.template-admin-card__header,
.template-section-heading,
.template-current-file,
.template-admin-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.template-admin-card__header {
    align-items: flex-start;
}

.template-admin-card__type,
.template-public-preview__type {
    display: block;
    margin-bottom: 7px;
    color: var(--rdhj-blue);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.template-admin-card h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.template-admin-card__description {
    min-height: 4.5em;
    margin: 18px 0 22px;
    color: var(--rdhj-muted);
    line-height: 1.5;
}

.template-admin-card__description--empty {
    font-style: italic;
}

.template-admin-card__meta {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--rdhj-border);
    border-bottom: 1px solid var(--rdhj-border);
}

.template-admin-card__meta div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.template-admin-card__meta dt {
    color: var(--rdhj-muted);
    font-size: .84rem;
}

.template-admin-card__meta dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.template-admin-card__footer {
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.template-admin-card__actions,
.template-order-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.template-order-controls {
    justify-content: flex-end;
    color: var(--rdhj-muted);
    font-size: .82rem;
}

.template-order-form {
    display: inline-flex;
    margin: 0;
}

.template-order-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--rdhj-border);
    border-radius: 9px;
    background: #fff;
    color: var(--rdhj-blue);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.template-order-btn:hover:not(:disabled),
.template-order-btn:focus-visible:not(:disabled) {
    border-color: var(--rdhj-blue);
    background: var(--rdhj-soft);
}

.template-order-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.template-section-heading {
    align-items: flex-start;
    margin-bottom: 24px;
}

.template-section-heading h2 {
    margin: 2px 0 7px;
}

.template-section-heading p:not(.admin-eyebrow) {
    max-width: 650px;
    margin: 0;
    color: var(--rdhj-muted);
    line-height: 1.5;
}

.template-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 28px;
    align-items: start;
}

.template-public-preview {
    padding: 22px;
    border: 1px solid var(--rdhj-border);
    border-left: 5px solid #b9d9eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23,69,143,.06);
}

.template-public-preview__label {
    display: block;
    margin-bottom: 18px;
    color: var(--rdhj-muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.template-public-preview h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.template-public-preview p {
    margin: 0 0 20px;
    color: var(--rdhj-muted);
    line-height: 1.5;
}

.template-public-preview__link {
    color: var(--rdhj-blue);
    font-weight: 800;
}

.template-current-file-card,
.template-history-card {
    margin-top: 24px;
}

.template-version-badge {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--rdhj-soft);
    color: var(--rdhj-blue);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.template-current-file {
    align-items: center;
    padding: 18px;
    border: 1px solid var(--rdhj-border);
    border-radius: 13px;
    background: var(--rdhj-soft);
}

.template-current-file__details {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.template-current-file__details div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.template-current-file__details strong {
    overflow-wrap: anywhere;
}

.template-current-file__details span:not(.template-current-file__icon) {
    color: var(--rdhj-muted);
    font-size: .88rem;
}

.template-current-file__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #fff;
    color: var(--rdhj-blue);
    font-size: 1.25rem;
    font-weight: 800;
}

.template-upload-panel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--rdhj-border);
}

.template-upload-panel h3 {
    margin: 0 0 7px;
}

.template-upload-panel > p {
    margin: 0 0 18px;
    color: var(--rdhj-muted);
    line-height: 1.5;
}

.template-history-list {
    display: grid;
    gap: 0;
}

.template-history-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--rdhj-border);
}

.template-history-row:first-child {
    border-top: 0;
}

.template-history-row__version,
.template-history-row__file {
    display: grid;
    gap: 4px;
}

.template-history-row__file {
    min-width: 0;
}

.template-history-row__file strong {
    overflow-wrap: anywhere;
}

.template-history-row__file span,
.template-history-row__old {
    color: var(--rdhj-muted);
    font-size: .84rem;
}

@media (max-width: 900px) {
    .template-admin-grid,
    .template-edit-grid {
        grid-template-columns: 1fr;
    }

    .template-admin-card__description {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .template-admin-card__header,
    .template-section-heading,
    .template-current-file,
    .template-admin-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .template-admin-card__meta div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .template-admin-card__actions .btn {
        width: 100%;
    }

    .template-order-controls {
        justify-content: flex-start;
    }

    .template-history-row {
        grid-template-columns: 1fr;
    }

    .template-history-row .btn {
        justify-self: start;
    }
}



/*
|--------------------------------------------------------------------------
| Perioder – UX og formularvalidering
| Levering: Admin v0.6.32 – 10.09.2026
| Formål: Separate opret/redigér-sider, rolig kortkant og ensartet RDHJ-fejlvisning.
|--------------------------------------------------------------------------
*/

.period-list-card,
.period-form-card {
    border-left: 5px solid #b9d9eb;
}

.period-form-card .form-group--error input[type="text"],
.period-form-card .form-group--error input[type="date"] {
    border-color: var(--rdhj-danger) !important;
}

.period-form-card .form-group--error input[type="text"]:focus,
.period-form-card .form-group--error input[type="date"]:focus {
    outline-color: rgba(163,49,49,.12);
}

@media (max-width: 680px) {
    .period-list-card .period-actions {
        align-items: stretch;
    }
}


/*
|--------------------------------------------------------------------------
| Historiske data – visuel QA
| Levering: Admin v0.6.33 – 10.09.2026
| Formål: Erstatte den gamle topkant med den fælles RDHJ-designlinje med venstrekant.
|--------------------------------------------------------------------------
*/

.historical-data-card {
    border-top: 1px solid var(--rdhj-border);
}

.historical-data-card--projects {
    border-left: 5px solid #17458F;
}

.historical-data-card--collections {
    border-left: 5px solid #0067C8;
}

.historical-data-card--imports {
    border-left: 5px solid #B9D9EB;
}


/*
|--------------------------------------------------------------------------
| Historiske data – responsive tabeller
| Levering: Admin v0.6.35 – 10.09.2026
| Formål: Undgå unødig vandret scroll på desktop ved at styre kolonnebredder og tillade tekstombrydning.
|--------------------------------------------------------------------------
*/

.historical-table {
    table-layout: fixed;
}

.historical-table th,
.historical-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Historiske projekter */
.historical-table--projects th:nth-child(1),
.historical-table--projects td:nth-child(1) { width: 10%; white-space: nowrap; }

.historical-table--projects th:nth-child(2),
.historical-table--projects td:nth-child(2) { width: 13%; white-space: nowrap; }

.historical-table--projects th:nth-child(3),
.historical-table--projects td:nth-child(3) { width: 11%; white-space: nowrap; }

.historical-table--projects th:nth-child(4),
.historical-table--projects td:nth-child(4) { width: 28%; }

.historical-table--projects th:nth-child(5),
.historical-table--projects td:nth-child(5) { width: 19%; }

.historical-table--projects th:nth-child(6),
.historical-table--projects td:nth-child(6) { width: 9%; }

.historical-table--projects th:nth-child(7),
.historical-table--projects td:nth-child(7) { width: 10%; white-space: nowrap; }

/* Historiske indsamlinger */
.historical-table--collections th:nth-child(1),
.historical-table--collections td:nth-child(1) { width: 10%; white-space: nowrap; }

.historical-table--collections th:nth-child(2),
.historical-table--collections td:nth-child(2) { width: 13%; white-space: nowrap; }

.historical-table--collections th:nth-child(3),
.historical-table--collections td:nth-child(3) { width: 11%; white-space: nowrap; }

.historical-table--collections th:nth-child(4),
.historical-table--collections td:nth-child(4) { width: 28%; }

.historical-table--collections th:nth-child(5),
.historical-table--collections td:nth-child(5) { width: 18%; }

.historical-table--collections th:nth-child(6),
.historical-table--collections td:nth-child(6) { width: 10%; }

.historical-table--collections th:nth-child(7),
.historical-table--collections td:nth-child(7) { width: 10%; white-space: nowrap; }

/* Importhistorik */
.historical-table--imports th:nth-child(1),
.historical-table--imports td:nth-child(1) { width: 13%; white-space: nowrap; }

.historical-table--imports th:nth-child(2),
.historical-table--imports td:nth-child(2) { width: 11%; }

.historical-table--imports th:nth-child(3),
.historical-table--imports td:nth-child(3) { width: 12%; }

.historical-table--imports th:nth-child(4),
.historical-table--imports td:nth-child(4) { width: 22%; }

.historical-table--imports th:nth-child(5),
.historical-table--imports td:nth-child(5) { width: 16%; }

.historical-table--imports th:nth-child(6),
.historical-table--imports td:nth-child(6),
.historical-table--imports th:nth-child(7),
.historical-table--imports td:nth-child(7),
.historical-table--imports th:nth-child(8),
.historical-table--imports td:nth-child(8),
.historical-table--imports th:nth-child(9),
.historical-table--imports td:nth-child(9) {
    width: 6.5%;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .historical-table {
        table-layout: auto;
        min-width: 980px;
    }

    .historical-table th,
    .historical-table td {
        white-space: nowrap;
    }

    .historical-table--projects th:nth-child(4),
    .historical-table--projects td:nth-child(4),
    .historical-table--projects th:nth-child(5),
    .historical-table--projects td:nth-child(5),
    .historical-table--collections th:nth-child(4),
    .historical-table--collections td:nth-child(4),
    .historical-table--collections th:nth-child(5),
    .historical-table--collections td:nth-child(5),
    .historical-table--collections th:nth-child(6),
    .historical-table--collections td:nth-child(6),
    .historical-table--imports th:nth-child(4),
    .historical-table--imports td:nth-child(4),
    .historical-table--imports th:nth-child(5),
    .historical-table--imports td:nth-child(5) {
        white-space: normal;
    }
}


/*
|--------------------------------------------------------------------------
| Historiske indsamlinger – desktop finjustering
| Levering: Admin v0.6.35a – 10.09.2026
| Formål: Fjerne den sidste lille vandrette overflow uden at ændre tabeldesignet.
|--------------------------------------------------------------------------
*/

@media (min-width: 901px) {
    .historical-table--collections th:nth-child(1),
    .historical-table--collections td:nth-child(1) { width: 9%; }

    .historical-table--collections th:nth-child(2),
    .historical-table--collections td:nth-child(2) { width: 12%; }

    .historical-table--collections th:nth-child(3),
    .historical-table--collections td:nth-child(3) { width: 10%; }

    .historical-table--collections th:nth-child(4),
    .historical-table--collections td:nth-child(4) { width: 27%; }

    .historical-table--collections th:nth-child(5),
    .historical-table--collections td:nth-child(5) { width: 17%; }

    .historical-table--collections th:nth-child(6),
    .historical-table--collections td:nth-child(6) { width: 10%; }

    .historical-table--collections th:nth-child(7),
    .historical-table--collections td:nth-child(7) { width: 15%; }
}


/*
|--------------------------------------------------------------------------
| Brugeradministration – visuel QA
| Levering: Admin v0.6.36 – 10.09.2026
| Formål: Give brugeroversigt og brugerformularer den rolige RDHJ-venstrekant.
|--------------------------------------------------------------------------
*/

.users-list-card,
.users-form-card {
    border-left: 5px solid #B9D9EB;
}


/*
|--------------------------------------------------------------------------
| Topnavigation – offentlig hjemmeside
| Levering: Admin v0.6.48 – 10.09.2026
| Formål: Give alle interne brugere en tydelig, men sekundær genvej til public.
|--------------------------------------------------------------------------
*/

.admin-nav .admin-nav__public {
    margin-left: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-color: rgba(247, 168, 27, .52);
    background: rgba(247, 168, 27, .10);
    color: #fff;
}

.admin-nav .admin-nav__public:hover,
.admin-nav .admin-nav__public:focus-visible {
    border-color: var(--rdhj-gold);
    background: var(--rdhj-gold);
    color: var(--rdhj-blue-dark);
    outline: none;
}

@media (max-width: 900px) {
    .admin-nav .admin-nav__public {
        margin: 8px 0 0;
        border-color: rgba(247, 168, 27, .45);
    }
}

/* KOMM-001 · Identitet og mobiltilpasning. */
.komm-brand {
    color: #17458f;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    border-left: 5px solid #f7a81b;
    padding-left: 14px;
}
.komm-brand span {
    display: block;
    color: #53657c;
    font-size: 14px;
    font-weight: 400;
}
.komm-usage {
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #edf3fa;
    border-left: 4px solid #17458f;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .admin-userbar { flex-wrap: wrap; gap: 8px; }
    .komm-brand { font-size: 20px; }
}
