

.utility-bar{
    position: fixed;
    bottom: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    min-height: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 99;
    height: 1.6rem;
}
.utility-bar>*{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.3rem;
    text-transform: uppercase;
}

.utility-bar .menu-wrp{
    position: relative;
    display: flex;
}


.utility-bar .menu-wrp .util-menu{
    display: flex;
    position: absolute;
    bottom: 1.6rem;
    right:0;
    width: fit-content;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}
.utility-bar .menu-wrp .util-menu>a,
.utility-bar .menu-wrp .util-menu label{
    width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    text-align: right;
    align-items: end;
    justify-content: end;
}
.utility-bar .menu-wrp .util-menu label>*{
    /*display: blo;*/
}

.utility-bar .menu-wrp .menu-btn label{
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}
.utility-bar .menu-wrp .menu-btn label img{
    height:1rem;
    width: 1rem;
    filter: var(--z-theme-color-filter) ;
}

.utility-bar .menu-wrp button.menu-btn:hover label img,
.utility-bar .menu-wrp button.menu-btn:active label img{
    filter: var(--z-theme-background-color-filter) ;
}

/** DISPLAY SETTINGS*/
/*body:has(input[type="checkbox"][name="view-menu-toggle"]:checked)*/
body:not(:has(input[type="checkbox"][name="view-menu-toggle"]:checked)) .utility-bar .menu-wrp .util-menu.view-menu{
    display: none;
}

body:not(:has(.view-list)):not(:has(.view-details)) .view-menu-button{
    display:none;
}

body:has(#view-list-detailed:checked) .view-details {
    /*display: flex;*/
}
body:has(#view-list-detailed:checked) .view-list {
    display: none;
}


body:has(#view-list-list:checked) .view-details {
    display: none;
}
body:has(#view-list-list:checked) .view-list {
    /*display: flex;*/
}

body:has(#view-list-detailed:checked) .view-details-o {
    /*display: flex;*/
}
body:has(#view-list-detailed:checked) .view-list-o {
    opacity: 0;
}


body:has(#view-list-list:checked) .view-details-o {
    opacity: 0;
}
body:has(#view-list-list:checked) .view-list-o {
    /*display: flex;*/
}

/** FOOTER MENU **/
body:not(:has(input[type="checkbox"][name="footer-menu-toggle"]:checked)) .utility-bar .menu-wrp .util-menu.footer-menu{
    display: none;
}
.util-menu.footer-menu a{
    padding-left:1rem;
    padding-right:1rem;

}

.footer-menu {
    text-wrap: nowrap;
}

/** THEME MENU **/
body:not(:has(input[type="checkbox"][name="theme-menu-toggle"]:checked)) .utility-bar .menu-wrp .util-menu.theme-menu{
    display: none !important;
}

.util-menu.theme-menu {
    text-wrap: nowrap;
    display: flex;
    position: absolute;
    flex-direction: column;
    bottom: 1.6rem;
    right: 0;
}

body:has(input[type="checkbox"][name="theme-menu-toggle"]:checked) .utility-bar .menu-wrp .util-menu.theme-menu {

}

.theme-menu label {
    padding-left: 1rem;
    padding-right: 1rem;
}

/** Hide theme menu wrapper by default (no JavaScript) **/
.theme-menu-wrp {
    display: none;
}

/** Show theme menu wrapper when JavaScript is enabled **/
body.js-enabled .theme-menu-wrp {
    display: flex;
}
