.cabinet-display {
    font-style: italic;
}

.label-cabinet a {
    color: inherit;
    text-decoration: none !important;
    white-space: normal;
}

/* Navigation tree card */
.cabinets-navigation-panel > .panel-body {
    padding: var(--space-2, 8px);
}

/* jstree — restyled to the design system's TreeBrowser: quiet rows,
   soft-primary selected state, no classic dots/lines. */
#jstree {
    font-family: inherit;
    font-size: var(--text-table-size, 13px);
    max-width: 100%;
    overflow: auto;
    padding: 0;
    padding-bottom: 6px; /* Padding for scrollbar */
}

/* Remove the classic dotted guide lines. */
#jstree .jstree-node {
    background-image: none;
}

#jstree .jstree-anchor {
    border-radius: var(--radius-sm, 8px);
    color: var(--text-default, #364152);
    height: 28px;
    line-height: 28px;
    padding-right: var(--space-2, 8px);
    transition: background 120ms cubic-bezier(0.2, 0, 0, 1),
        color 120ms cubic-bezier(0.2, 0, 0, 1);
}

#jstree .jstree-hovered,
#jstree .jstree-anchor:hover {
    background: var(--surface-hover, #f6f8fa);
    box-shadow: none;
    color: var(--text-strong, #121926);
}

#jstree .jstree-clicked,
#jstree .jstree-clicked.jstree-hovered,
#jstree .jstree-clicked:hover {
    background: var(--surface-selected, #eef3fe) !important;
    box-shadow: none;
    color: var(--primary, #0b46be);
    font-weight: 600;
}

#jstree .jstree-anchor:focus-visible {
    outline-offset: -2px;
}

/* Folder glyph: Font Awesome webfont instead of the sprite icon. */
#jstree .jstree-themeicon {
    background-image: none !important;
}

#jstree .jstree-themeicon::before {
    color: var(--primary, #0b46be);
    content: '\f07b';
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-size: 13px;
    font-weight: 900;
    opacity: 0.75;
    text-align: center;
    width: 100%;
}

#jstree .jstree-clicked .jstree-themeicon::before {
    opacity: 1;
}

/* Expand/collapse carets: keep, but quiet. */
#jstree .jstree-ocl {
    opacity: 0.55;
}
