.vv-tree-sidebar {
    overflow-x: auto;
}

.vv-tree-module-wrap {
    margin-bottom: 12px;
    padding:10px;
}

.vv-tree-module-title a,
.vv-tree-main a {
    color: inherit;
    text-decoration: none;
}

    .vv-tree-module-title a:hover,
    .vv-tree-main a:hover {
        text-decoration: underline;
    }

.vv-tree-module-body {
   /* padding-top: 8px; */
}

.vv-hidden {
    display: none;
}

.vv-tree-list {
    min-width: 360px;
}

.vv-tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.vv-tree-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.vv-tree-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.vv-tree-icon {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.vv-tree-icon-disabled {
    opacity: 0.25;
    pointer-events: none;
    cursor: default;
}

.vv-tree-number {
    min-width: 22px;
    opacity: 0.65;
    font-weight: 600;
}

.vv-tree-level-item {
    padding-left: 0;
}

.vv-tree-level-vraag {
    padding-left: 22px;
}

.vv-tree-level-antwoord {
    padding-left: 44px;
}

.vv-tree-subtext {
    width: 100%;
    font-size: 12px;
    color: #888;
    margin-top: -3px;
}

.vv-tree-inactive {
    opacity: 0.55;
}

.vv-tree-type-icon {
    opacity: 0.7;
}

.vv-tree-empty {
    padding: 8px 4px;
    opacity: 0.7;
    font-size: 13px;
}
.vv-tree-toggle-node {
    cursor: pointer;
}

.vv-tree-children {
    width: 100%;
}
/* [STAP 1] Algemene tree-rijen strakker zetten */
.vv-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: 360px;
}

.vv-tree-main {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

    .vv-tree-main a {
        display: inline-block;
        max-width: 100%;
        color: inherit;
        text-decoration: none;
        line-height: 1.25;
    }

        .vv-tree-main a:hover {
            text-decoration: underline;
        }

.vv-tree-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    padding-top: 1px;
}

/* [STAP 2] Nummerkolom gelijk trekken */
.vv-tree-number {
    width: 22px;
    min-width: 22px;
    text-align: right;
    opacity: 0.65;
    font-weight: 600;
}

/* [STAP 3] Inspringing per niveau */
.vv-tree-level-item {
    padding-left: 0;
}

.vv-tree-level-vraag {
    padding-left: 22px;
}

.vv-tree-level-antwoord {
    padding-left: 44px;
}

/* [STAP 4] Antwoordrijen rustiger maken */
.vv-tree-antwoord-row {
    align-items: flex-start;
    padding-top: 6px;
    padding-bottom: 6px;
}



/* [STAP 6] Waarde onder antwoordtitel */
.vv-tree-subtext {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    line-height: 1.25;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
}

/* [STAP 7] Statussen */
.vv-tree-selected {
    font-weight: 700;
    /* background: rgba(0,0,0,0.04); */
    border-radius: 4px;
}

.vv-tree-inactive {
    opacity: 0.55;
}

.vv-tree-icon {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.vv-tree-icon-disabled {
    opacity: 0.25;
    pointer-events: none;
    cursor: default;
}

.vv-tree-type-icon {
    opacity: 0.7;
}
/* Antwoordrij compact en leesbaar */
.vv-tree-antwoord-row {
    align-items: flex-start;
    padding-top: 7px;
    padding-bottom: 7px;
}

    .vv-tree-antwoord-row .vv-tree-main {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 16px;
        column-gap: 6px;
        align-items: start;
        flex: 1;
        min-width: 0;
    }

    .vv-tree-antwoord-row .vv-tree-number {
        width: 24px;
        min-width: 24px;
        text-align: right;
        line-height: 1.3;
    }

.vv-tree-answer-text {
    min-width: 0;
    line-height: 1.25;
}

    .vv-tree-answer-text a {
        display: block;
        line-height: 1.25;
        word-break: break-word;
    }

.vv-tree-subtext {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    line-height: 1.25;
    margin-top: 2px;
}

.vv-tree-answer-correct {
    margin-top: 2px;
}

.vv-tree-sidebar {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: auto;
}
.vv-tree-wide .sidebar {
    width: 48%;
    max-width: 720px;
    z-index: 20;
}
/* [STAP 1] Tree-zone scrollbaar maken */
.vv-tree-sidebar {
    overflow-x: auto;
    overflow-y: visible;
}

/* [STAP 2] Toolbar bovenaan de tree */
.vv-tree-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

    .vv-tree-toolbar .btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* [STAP 3] Brede tree-modus */
body.vv-tree-wide-mode .vv-tree-sidebar {
    position: fixed;
    top: 130px;
    left: 20px;
    width: 620px;
    max-width: calc(100vw - 40px);
    height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: auto;
    background: #fff;
    z-index: 1050;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    border-radius: 8px;
}

/* [STAP 4] In brede modus mag de tree wat ruimer ademen */
body.vv-tree-wide-mode .vv-tree-list {
    min-width: 540px;
}

/* [STAP 5] Knop visueel aanpassen wanneer breed actief is */
body.vv-tree-wide-mode .vv-tree-wide-toggle {
    font-weight: 600;
}

/* [STAP 6] Op smallere schermen bijna volledige breedte gebruiken */
@media (max-width: 900px) {
    body.vv-tree-wide-mode .vv-tree-sidebar {
        top: 100px;
        left: 10px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }
}
/* Eén modulewidget breed tonen */
.vv-tree-module-wrap.vv-tree-widget-wide {
    position: fixed;
    top: 130px;
    left: 40px;
    width: 680px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: auto;
    background: #fff;
    z-index: 1050;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    border-radius: 8px;
}

    .vv-tree-module-wrap.vv-tree-widget-wide .recent-posts-widget {
        margin-bottom: 0;
    }

    .vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-list {
        min-width: 560px;
    }

    .vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-widget-wide-toggle {
        font-weight: 600;
    }

@media (max-width: 900px) {
    .vv-tree-module-wrap.vv-tree-widget-wide {
        top: 100px;
        left: 10px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 120px);
    }
}
.vv-tree-title-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.vv-tree-main {
    min-width: 0;
    flex: 1;
}

.vv-tree-actions {
    flex-shrink: 0;
    margin-left: auto;
}
/* [TREE COMPACT/BREED] Sidebar niet forceren in scroll-in-scroll */
.vv-tree-sidebar {
    overflow: visible;
    max-height: 100%;
}

/* [TREE COMPACT/BREED] Widget standaard compact */
.vv-tree-module-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    transition: width 0.18s ease;
}

    /* [TREE COMPACT/BREED] Alleen de actieve modulewidget wordt breed */
    .vv-tree-module-wrap.vv-tree-widget-wide {
        width: 680px;
        max-width: calc(100vw - 60px);
        z-index: 20;
    }

        .vv-tree-module-wrap.vv-tree-widget-wide .recent-posts-widget {
            background: #fff;
            box-shadow: 0 10px 28px rgba(0,0,0,0.16);
            border-radius: 8px;
        }


/* [TREE COMPACT] Titels afkappen zodat iconen blijven staan */
.vv-tree-title-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* [TREE BREED] In brede widget volledige titels tonen */
.vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* [TREE] Rijen stabiel houden */
.vv-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 12px 7px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: 0;
}

.vv-tree-main {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.vv-tree-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* [TREE] Compacte lijst mag niet breder forceren */
.vv-tree-list {
    min-width: 0;
}

/* [TREE BREED] In brede modus mag de inhoud ruimer */
.vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-list {
    min-width: 560px;
}

/* [TREE] Antwoordrij netjes met waarde onder titel */
.vv-tree-antwoord-row .vv-tree-main {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    column-gap: 6px;
    align-items: start;
}

.vv-tree-answer-text {
    min-width: 0;
    line-height: 1.25;
}

    .vv-tree-answer-text a {
        display: block;
        line-height: 1.25;
        word-break: break-word;
    }

.vv-tree-subtext {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    line-height: 1.25;
    margin-top: 2px;
}
.vv-hidden {
    display: none !important;
}

.vv-tree-children {
    width: 100%;
}

.vv-tree-title-text {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.vv-tree-module-wrap.vv-tree-widget-wide .vv-tree-title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.vv-tree-level-item {
    padding-left: 0;
}

.vv-tree-level-vraag {
    padding-left: 12px;
}

.vv-tree-level-antwoord {
    padding-left: 24px;
}

.vv-tree-module .vv-widget-head {
    /* margin-left: 10px;*/
    margin:0;
}
.vv-tree-module-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 8px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 4px;
}

.vv-tree-module-head-actions {
    flex-shrink: 0;
}

.vv-tree-empty-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.vv-tree-add-row {
    display: flex;
    justify-content: flex-end;
    padding: 8px 4px 4px 4px;
}

.MijnTrajectenBeheer .widgets-container {
    padding: 10px;
    margin: 20px 0 20px 0;
}
.MijnTrajectenBeheer .vv-tree-widget-wide .vv-widget-head {
    margin-left:10px;
}
