.slide-out-panel .sl-content-container {
    flex: 1;
}

#em-nav {
    margin: 0 16px 16px;
    min-height: calc(100% - 16px);
    max-height: calc(100% - 16px);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    min-width: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.nav-caption {
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    padding-bottom: 4px;
    margin-bottom: 6px;
    border-bottom: var(--default-border);
}

.nav-item-row {
    display: inline-grid;
    grid-template-columns: 21px 21px max-content;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
}

.nav-item-row:hover .nav-item-label {
    font-weight: bold;
}

.nav-item.nav-selected > .nav-item-row .nav-item-label {
    font-weight: bold;
    text-decoration: underline;
}

.nav-item-toggle {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-toggle img {
    width: 21px;
    height: 21px;
    display: block;
    transition: rotate 120ms ease;
}

.nav-item.collapsed > .nav-item-row .nav-item-toggle img {
    rotate: 270deg;
}

.nav-item-icon {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-icon img {
    max-width: 21px;
    max-height: 21px;
    display: block;
}

.nav-item-color {
    width: 16px;
    height: 16px;
    border: 1px solid var(--primary-color);
    justify-self: center;
}

.nav-item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item-children {
    margin-left: 18px;
}

.nav-item-children.hidden {
    display: none;
}
