/* Ingebouwde helpfunctie (kennisbank). Kaarten, knoppen, velden en meldingen komen uit style.css/Bootstrap, net als
   de rest van Limis; hier staat alleen wat eigen is aan de helpfunctie. Limis zet html op 10px: 1rem = 10px.
   Leestekst bewust groter (16,8px = 1,05 x 16) en donker op licht, voor de leesbaarheid. */

/* ---------- Navigatie (linkerkaart) ---------- */

.help-nav-label {
    font: 600 1.3rem/1.2 "Titillium Web", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin: 0.4rem 0 0.8rem 0;
}

.help-products,
.help-tree {
    list-style: none;
    margin: 0 0 1.6rem 0;
    padding: 0;
}

    .help-tree .help-tree {
        margin: 0.2rem 0 0.4rem 1.2rem;
        padding-left: 1rem;
        border-left: 1px solid #e3e6e8;
    }

    .help-products a,
    .help-tree a {
        display: block;
        padding: 0.5rem 0.8rem;
        border-radius: 0.6rem;
        color: var(--bs-dark);
        text-decoration: none;
        font-size: 1.6rem;
        line-height: 1.35;
    }

        .help-products a:hover,
        .help-tree a:hover {
            background-color: var(--bs-gray-100);
            color: var(--bs-primary);
        }

    /* Zelfde accent als het actieve item in het Limis-menu. */
    .help-products .is-current > a,
    .help-tree .is-current > a {
        color: var(--bs-primary);
        font-weight: 700;
        background-color: #e6f2f8;
    }

.help-nav-admin {
    display: block;
    margin-top: 0.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e3e6e8;
    font-size: 1.5rem;
    color: var(--bs-primary);
}

.help-badge {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    background-color: #fff3cd;
    color: #664d03;
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: middle;
}

/* ---------- Leestekst ---------- */

.help-body,
.help-panel,
.help-children,
.help-intro,
.help-search-results p {
    font-size: 1.68rem;
    line-height: 1.6;
    color: #212529;
}

.help-body {
    max-width: 86rem;
}

    .help-body h1 {
        font: 700 2.8rem/1.25 "Titillium Web", sans-serif;
        color: var(--bs-primary);
        margin: 0 0 1.6rem 0;
    }

    .help-body h2 {
        font: 700 2.2rem/1.3 "Titillium Web", sans-serif;
        color: var(--bs-primary);
        margin: 2.8rem 0 1rem 0;
    }

    .help-body h3 {
        font: 600 1.9rem/1.3 "Titillium Web", sans-serif;
        margin: 2.2rem 0 0.8rem 0;
    }

    .help-body p,
    .help-body ul,
    .help-body ol {
        margin: 0 0 1.4rem 0;
    }

    .help-body a {
        color: var(--bs-primary);
        text-decoration: underline;
        text-decoration-style: dashed;
        text-underline-offset: 0.3rem;
    }

        /* Link naar een pagina die niet bestaat of die deze lezer niet mag zien (zelfde weergave). */
        .help-body a.is-missing {
            color: var(--bs-burgundy);
            text-decoration-style: wavy;
        }

    .help-body img {
        max-width: 100%;
        height: auto;
        border: 1px solid #e3e6e8;
        border-radius: 0.6rem;
    }

    .help-body table {
        border-collapse: collapse;
        margin: 0 0 1.6rem 0;
        font-size: 1.55rem;
    }

    .help-body th,
    .help-body td {
        border: 1px solid #d6dbdf;
        padding: 0.6rem 1rem;
        vertical-align: top;
    }

    .help-body th {
        background-color: var(--bs-gray-100);
        color: var(--bs-primary);
    }

    .help-body code {
        background-color: var(--bs-gray-100);
        padding: 0.1rem 0.5rem;
        border-radius: 0.4rem;
        font-size: 0.92em;
    }

    .help-body pre {
        background-color: var(--bs-gray-100);
        border-radius: 0.6rem;
        padding: 1.2rem 1.4rem;
        overflow-x: auto;
    }

        .help-body pre code {
            background: none;
            padding: 0;
        }

    .help-body blockquote {
        border-left: 0.4rem solid var(--bs-secondary);
        margin: 0 0 1.4rem 0;
        padding: 0.4rem 0 0.4rem 1.4rem;
        color: #495057;
    }

.help-children {
    padding-left: 2rem;
}

    .help-children a {
        color: var(--bs-primary);
    }

.help-meta {
    color: #6c757d;
    font-size: 1.4rem;
    margin-top: 2.8rem;
    margin-bottom: 0;
}

.help-content .alert {
    font-size: 1.55rem;
}

/* ---------- Zoekresultaten ---------- */

.help-results {
    padding-left: 2rem;
    margin: 0;
}

    .help-results li {
        margin-bottom: 1.8rem;
    }

.help-result-title {
    font: 700 1.8rem/1.3 "Titillium Web", sans-serif;
    color: var(--bs-primary);
    text-decoration: none;
}

    .help-result-title:hover {
        text-decoration: underline;
    }

.help-result-path {
    font-size: 1.4rem;
    color: #6c757d;
}

.help-result-snippet {
    font-size: 1.55rem;
    color: #343a40;
}

/* ---------- Bewerken ---------- */

.help-title-input.form-control {
    height: 4.6rem;
    font: 700 2.2rem/1.2 "Titillium Web", sans-serif;
    color: var(--bs-primary);
}

.help-edit-meta {
    font-size: 1.4rem;
    color: #6c757d;
}

    .help-edit-meta a {
        color: var(--bs-primary);
    }

.help-edit .toastui-editor-defaultUI {
    border-radius: 0.6rem;
    border-color: var(--bs-primary);
}

.help-edit .toastui-editor-contents {
    font-size: 1.68rem;
    font-family: "Titillium Web", sans-serif;
}

.help-settings .col-form-label {
    font-weight: 600;
    color: var(--bs-primary);
}

.help-settings .form-check-label,
.help-settings .form-text {
    font-size: 1.5rem;
}

/* Uitleg grijs i.p.v. het standaard-cyaan: beter leesbaar, en zo onderscheiden van de invoer. */
.help-settings .form-text {
    color: #6c757d;
}

/* Bovenaan een pagina: bij welke rechten hij hoort; groen = heb je, rood = heb je niet (met vinkje/kruisje, niet alleen kleur). */
.help-rights-bar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 2.4rem 0 0;
    padding: 1.2rem 1.6rem;
    background: #f6f8fa;
    border: 1px solid #d6dbdf;
    border-radius: 0.6rem;
    font-size: 1.5rem;
    color: #212529;
}

.help-rights-level {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.help-rights-label {
    color: #495057;
    margin-right: 0.2rem;
}

.help-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 1rem;
    border: 1px solid;
    border-radius: 1.6rem;
    font-size: 1.5rem;
}

.help-right.has {
    background: #e7f5ec;
    border-color: #9fd3ae;
    color: #17602c;
}

.help-right.lacks {
    background: #fdeced;
    border-color: #f1aeb5;
    color: #9b1c28;
}

.help-rights-note {
    color: #495057;
}

/* Helpknop: keuzelijst met schermen */
.help-keys {
    max-height: 26rem;
    overflow-y: auto;
    border: 1px solid #d6dbdf;
    border-radius: 0.6rem;
    padding: 0.6rem 1rem;
}

/* Kop per onderdeel; blijft bovenaan staan tijdens het scrollen door de groep. */
.help-keys-group + .help-keys-group {
    margin-top: 1rem;
}

.help-keys-group-title {
    position: sticky;
    top: -0.6rem;
    z-index: 1;
    padding: 0.4rem 0 0.2rem;
    background: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.help-keys-chosen {
    font-size: 1.5rem;
    color: #212529;
}

.help-keys-elsewhere {
    margin-left: 0.6rem;
    color: #6c757d;
    font-size: 1.3rem;
}

/* ---------- Beheer ---------- */

.help-beheer-table th,
.help-beheer-table td {
    font-size: 1.5rem;
    line-height: 1.4;
    padding: 0.8rem 1rem;
    vertical-align: middle;
}

.help-beheer-title {
    color: var(--bs-primary);
    font-weight: 600;
}

.help-beheer-path {
    font-size: 1.3rem;
    color: #6c757d;
}

.help-beheer-table tr.is-off td,
.help-beheer-table tr.is-hidden-by-parent td {
    background-color: #f6f7f8;
}

    .help-beheer-table tr.is-off .help-beheer-title {
        color: #6c757d;
        text-decoration: line-through;
    }

.help-badge-off {
    background-color: #e9ecef;
    color: #495057;
}

.help-beheer-actions {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

    .help-beheer-actions form {
        display: inline;
        margin: 0;
    }

.help-beheer-readonly,
.help-keys-old {
    color: #6c757d;
    font-size: 1.4rem;
}

/* ---------- Geschiedenis ---------- */

/* style.css zet alle tabelcellen op 1.4rem (grid-stijl); deze tabel lees je, dus groter. */
.help-history th,
.help-history td {
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 0.8rem 1rem;
}

    .help-history tr.is-current td {
        background-color: #e6f2f8;
    }

    .help-history a {
        color: var(--bs-primary);
        font-weight: 600;
    }

/* ---------- Openbare helppagina's (/hulp, zonder inloggen) ---------- */

.help-public-body {
    background-color: #f2f4f7;
    min-height: 100vh;
}

.help-public {
    max-width: 128rem;
    margin: 0 auto;
    padding: 3.2rem 1.6rem 6rem;
}

.help-public-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 3.2rem;
}

.help-public-logo {
    width: 19.6rem;
    height: auto;
}
