/* Layout overrides for admin header alignment */
html[dir='ltr'] body:not(.hide-sidebar):not(.page-small) #header {
    margin-left: 230px;
    width: calc(100% - 230px);
}

html[dir='rtl'] body:not(.hide-sidebar):not(.page-small) #header {
    margin-right: 230px;
    width: calc(100% - 230px);
}

#header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1.25rem;
    padding-left: 0.75rem;
    box-sizing: border-box;
}

html[dir='rtl'] #header {
    padding-left: 1.25rem;
    padding-right: 0.75rem;
}

#header nav {
    flex: 1 1 auto;
}

#header nav > .tw-flex {
    align-items: center !important;
}

#header .hide-menu {
    float: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 38px;
}

@media (max-width: 1024px) {
    #header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}
