#mySidebar.expanded {
    width:320px;
}
#mySidebar.stive-sidebar.expanded {
    width: 272px;
}
#mySidebar {
    padding-top: 10px;
}
#mySidebar.stive-sidebar {
    padding-top: 0;
}
#mySidebar .container{
    padding: 15px 15px;
}
#mySidebar .container .profile-page {
    padding: 10px 30px 20px 30px;
}
#main.expanded.not-mobile {
    margin-left:300px;
}
body:has(#mySidebar.stive-sidebar.expanded) #main.expanded.not-mobile {
    margin-left: 272px;
}

.apod_logo {
    text-align: center;
    border-bottom: 1px solid #E8E8E8;
    padding:10px 15px;
}
.click-refer {
    cursor: pointer;
}
.click-refer:hover {
    color: #564F4F!important;
}
.small-label {
    font-family: Helvetica;
    font-size: 12.8px;
    line-height: 15px;
    color: #9D9193;
}

.brand-name {
    color: black;
}

.sidebar {
    height: calc(100% - 64px);
    width: 0;
    position: fixed;
    z-index: 1; /* above #sidebar-overlay (1037), below .stive-shell-nav */
    top: 64px;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    border: 1px solid #E8E8E8;
    transition: width 0.3s ease;
}

/* Profile / creator shell topbar sits above the sidebar */
#mainNav.stive-shell-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw;
    height: 64px;
    min-height: 64px;
    z-index: 1050;
    margin: 0 !important;
    border-bottom: 1px solid #ececee;
    background: #fff !important;
    display: flex;
    align-items: center;
}

#mainNav.stive-shell-nav .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    height: auto !important;
}

#main:has(> #mainNav.stive-shell-nav),
#main:has(#mainNav.stive-shell-nav) {
    padding-top: 64px;
}

.stive-shell-topbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: auto;
    padding-left: 16px;
}

.stive-shell-topbar__brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.stive-shell-topbar__logo {
    display: block;
    height: 24px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.openbtn.stive-topbar-btn--collapse {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    margin: 0;
    color: #52525b !important;
    border: 1px solid #ececee !important;
    border-radius: 12px !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.openbtn.stive-topbar-btn--collapse:hover {
    background: #f5f6f6 !important;
    color: #0e3a3f !important;
}

/* Logo lives in the topbar for shell pages */
body:has(#mainNav.stive-shell-nav) .sidebar .apod_logo {
    display: none !important;
}

.sidebar .small-title {
    font-family: Helvetica;
    font-size: 15px;
    line-height: 15px;
    /* identical to box height */
    color: #9D9193;
}

.sidebar hr {
    border-top: 1px solid #E0E0E0;
}

.sidebar a {
    padding: 15px 0px 15px 32px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
    font-family: Helvetica;
    font-size: 16px;
    line-height: 21px;
    /* identical to box height */


    color: #564F4F;
}

.sidebar span {
    padding: 5px 0px 5px 32px;
}

.sidebar a.active img {
    filter: invert(83%) sepia(24%) saturate(1068%) hue-rotate(136deg) brightness(91%) contrast(85%);
}

.sidebar a.active {
    background: #D5F5F4;
    color: #56D0D8;
}

.sidebar a:hover {
    /* color: #f1f1f1; */
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    /* background-color: #111; */
    color: black;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    /* background-color: #edf6f6; */
}

#main {
    transition: margin-left 0.3s ease;
}

#sidebar-overlay {
    background-color: rgba(0,0,0,.1);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
    z-index: 1037;
}

@media (max-width: 991.98px) {
    .sidebar-open #sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
}

  /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {padding-top: 15px;}
    .sidebar a {font-size: 18px;}
}
