body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

main {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    overflow-x: auto;
    /*overflow-y: hidden;*/
}



.b-example-divider {
    flex-shrink: 0;
    width: .5rem;
    height: 100vh;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.bi {
    vertical-align: -.125em;
    pointer-events: none;
    fill: currentColor;
}

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: #d2f4ea;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #d2f4ea;
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.lh-tight {
    line-height: 1.25;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}


/**************************/
/***** STICKY FOOTER ******/
/**************************/

.sticky-footer { display: flex; position: fixed; left: calc(300px + .5rem); right: 0; bottom: 0; height: 40px; background: #f5f5f5; padding: 0rem 1rem; border-top: 1px solid #333; justify-content: center; }
.sticky-footer a { color: #333; text-decoration: none; }
.sticky-footer a:hover { color: #cd2f17; }
.sticky-footer > div  { flex-wrap: wrap; }

/**************************/
/******    SIDEBAR   ******/
/**************************/

#sidebar { width: 300px; max-height: 100vh; overflow-y: auto; }
#sidebar img { width: 160px; max-width: 160px; }
#sidebar .btn-menu-toggle { display: none; background: #fff; color: #333; justify-content: center; align-items: center; border-color: #333; }

/*
#sidebar .sidebar-actions { padding-bottom: 10px; border-bottom: 2px solid #33333350; }
#sidebar .sidebar-menu .col-12 > ul { list-style: none; padding-left: 0px; }
#sidebar .sidebar-menu .col-12 > ul > li > a { display: flex; align-items: center; text-decoration: none; padding: 5px 0px; color: #333; }
#sidebar .sidebar-menu .col-12 > ul > li:hover > a { background-color: #33333320; }
 


#sidebar .mm-active > a { display: flex; align-items: center; text-decoration: none; border-top: 2px solid #33333350; border-bottom: 2px solid #33333350; padding: 5px 0px; color: #333; }
#sidebar .mm-active > ul { list-style: none; padding-left: 0px; }
#sidebar ul.menu_level_1 { list-style: none; padding-left: 0px; }
#sidebar ul.menu_level_1 li a { display: flex; align-items: center; text-decoration: none; border-top: 1px solid #33333350; border-bottom: 1px solid #33333350; padding: 5px 15px; color: #333; }
#sidebar .last > a { display: flex; align-items: center; text-decoration: none; border-top: 2px solid #33333350; border-bottom: 2px solid #33333350; padding: 5px 15px; color: #333; }
#sidebar ul.menu_level_1 li:hover a, .last:hover > a { background-color: #33333320; }
#sidebar ul.menu_level_1 > li:first-child a { border-top: none; }
#sidebar ul.menu_level_1 > li:last-child a { border-bottom: none; }
*/

/**************************/
/****** PAGE CONTENT ******/
/**************************/
.page-content { display: flex; flex-wrap: wrap; row-gap: .25rem; column-gap: 1rem; padding-bottom: 90px; }
.page-content > h1 { padding: 10px 0px; border-bottom: 1px solid #33333350; margin: 10px 0px; flex: 0 0 100%; padding-left: 15px; border-left: 12px solid #cd2f17; }
.page-content > h2 { padding: 10px 0px; border-top: 1px solid #33333350; border-bottom: 1px solid #33333350; margin-bottom: 10px; flex: 0 0 100%; padding-left: 15px; border-left: 6px solid #cd2f17; }

.page-content img { width: 100%; height: auto; max-width: min(100%, 500px); border: 1px solid #333; }
.page-content > p:not(:has(img)) { flex: 0 0 100%; }
.page-content > p:not(:has(img)) + .page-content > p:not(:has(img)) { margin-bottom: 0px; }
.page-content > p:has(img) { flex: 0 0 calc(20% - 1rem); margin: 0; }
.page-content > p:has(img) + p:not(:has(img)), .page-content > p:has(img) + h2, .page-content > p:has(img) + ul, .page-content > p:has(img) + ol, .page-content > p:has(img) + table { margin-bottom: 1rem; }

.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; background-color: #fff; overflow: hidden; margin: 1rem 0; }
.page-content th, .page-content td { padding: 0.35rem 0.5rem; border: 1px solid #dee2e6; text-align: left; vertical-align: top; }
.page-content th { background-color: #f5f5f5; font-weight: 600; }
.page-content tbody tr:nth-child(odd) { background-color: #ffffff; }
.page-content tbody tr:nth-child(even) { background-color: #f5f5f5; }
.page-content tbody tr:hover { background-color: #e9ecef; }

.page-content .viewer-eligible { border: 1px solid #333; }
.page-content .viewer-eligible:hover { cursor: pointer; }

.page-content > ul { flex: 0 0 100%; }
.page-content > ul > li { flex: 0 0 100%; }

.page-content pre.hljs { flex: 0 0 100%; padding: 10px; max-width: 100%; box-sizing: border-box; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }

@media screen and (max-width: 1199px) {
	main { flex-direction: column; }
	#sidebar { width: 100%; padding-bottom: 0 !important; }
	.b-example-divider { height: .5rem; width: 100%; }
	#sidebar .btn-menu-toggle { display: flex; }

	
	.sidebar-content { height: 0; overflow: hidden; transition: height 0.3s ease; }
	.sticky-footer { left: 0; }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #b6b6b6 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b6b6b6;
  border-radius: 10px;
}

::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #cd2f17;
}