.sticky {
    position: sticky;
    top: 0;
    max-height: 100vh;
}

.missing-details-count
{
    /*padding: 1.5px;*/
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.6rem;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
}

.toggle-nav-sidebar {
    z-index: 20;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 23px;
    width: 23px;
    border: 0;
    border-right: 1px solid var(--hairline-color);
    background-color: var(--body-bg);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--link-fg);
    padding: 0;
}

[dir="rtl"] .toggle-nav-sidebar {
    border-left: 1px solid var(--hairline-color);
    border-right: 0;
}

.toggle-nav-sidebar:hover,
.toggle-nav-sidebar:focus {
    background-color: var(--darkened-bg);
}

#nav-sidebar {
    z-index: 0;
    flex: 0 0 275px;
    left: -276px;
    margin-left: -276px;
    border-top: 1px solid transparent;
    border-right: 1px solid var(--primary);
    background-color: var(--body-bg);
    overflow: auto;
}

[dir="rtl"] #nav-sidebar {
    border-left: 1px solid var(--hairline-color);
    border-right: 0;
    left: 0;
    margin-left: 0;
    right: -276px;
    margin-right: -276px;
}

.toggle-nav-sidebar::before {
    content: '\00BB';
}

.main.shifted .toggle-nav-sidebar::before {
    content: '\00AB';
}

.main > #nav-sidebar {
    visibility: hidden;
}

.main.shifted > #nav-sidebar {
    margin-left: 0;
    visibility: visible;
}

[dir="rtl"] .main.shifted > #nav-sidebar {
    margin-right: 0;
}

#nav-sidebar .module th {
    width: 100%;
    overflow-wrap: anywhere;
}

#nav-sidebar .module th,
#nav-sidebar .module caption {
    font-size: 0.9rem;
    font-weight: 400;
    padding-left: 2rem;
}

#nav-sidebar .module td {
    white-space: nowrap;
}

[dir="rtl"] #nav-sidebar .module th,
[dir="rtl"] #nav-sidebar .module caption {
    padding-left: 8px;
    padding-right: 16px;
}

#nav-sidebar .current-app .section:link,
#nav-sidebar .current-app .section:visited {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary);
    font-weight: bold;
}

#nav-sidebar .current-model th a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary);
    font-weight: bold;
}

.main > #nav-sidebar + .content {
    max-width: calc(100% - 23px);
}

.main.shifted > #nav-sidebar + .content {
    max-width: calc(100% - 299px);
}

@media (max-width: 767px) {
    #nav-sidebar, #toggle-nav-sidebar {
        display: block;
    }

    .main > #nav-sidebar + .content,
    .main.shifted > #nav-sidebar + .content {
        max-width: 100%;
    }
}

#nav-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 5px;
    margin: 5px 0;
    border: 1px solid var(--border-color);
    background-color: var(--darkened-bg);
    color: var(--body-fg);
}

#nav-filter:focus {
    border-color: var(--body-quiet-color);
}

#nav-filter.no-results {
    background: var(--message-error-bg);
}

#nav-sidebar table {
    width: 100%;
}

#seperator {
 width: 100%;
 height: 1px;
 background-color: var(--primary);
 margin-bottom: 10px;
}

.foldable-apps [class^="app-"] caption table a {
    color: var(--primary);
}

.foldable-apps [class^="app-"].module {
    visibility: hidden;
    margin-bottom: 4px;
}

.foldable-apps [class^="app-"].module.foldable-apps-ready {
    visibility: visible;
}

.foldable-apps [class^="app-"].module > table > caption {
    position: relative;
    z-index: 100;
    /* pointer-events: none; */
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome and Opera */

    text-transform: none;

    background: #fff;
}

.foldable-apps [class^="app-"].module > table > caption > img {
    vertical-align: middle;
    margin-right: 4px;
    width: 1.3rem;
}

.foldable-apps [class^="app-"].module > table > caption > a {
    display: inline-block;
    pointer-events: none;
    cursor: default;
}


.foldable-apps [class^="app-"].module > table > caption > .arrow {
    border: solid var(--tertiary);
    border-width: 0 3px 3px 0;
    padding: 3px;

    display: inline-block;

    position: absolute;
    right: 0;
    margin-left: auto;
    margin-right: 2rem;

    transform: translateY(2px) rotate(45deg);
    -webkit-transform: translateY(2px) rotate(45deg);
    transition: transform .1s ease-out;
}

.foldable-apps [class^="app-"].module > table {
    display: table;
    width: 100%;
}

.foldable-apps [class^="app-"].module.collapsed {
    margin-bottom: 4px;
}

#nav-sidebar .current-app .arrow {
    border-color: var(--primary);
}

.foldable-apps [class^="app-"].module.collapsed > table > caption > .arrow {
    transform: translateY(4px) rotate(-45deg);
    -webkit-transform: translateY(4px) rotate(-45deg);
}

.foldable-apps [class^="app-"].module.collapsed > table > tbody {
    display: none;
}

.foldable-apps [class^="app-"].module > table tr > th > img {
    vertical-align: middle;
    margin-right: 4px;
    width: 1.3rem;
    margin-left: 1.5rem;
}

.foldable-apps [class^="app-"].module > table tr,
.foldable-apps [class^="app-"].module > table tr > th {
    border: none;
}

#nav-sidebar .module th, #nav-sidebar .module caption[class^="model-"] img {
    vertical-align: middle;
    margin-right: 4px;
    width: 1.3rem;
}