/* Win10 FF57+ tweak by Lars-Erik ěsterud - 2020.04.15 - http://firefox.osterud.name */
#sidebar-header,sidebarheader,#bookmarksPanel>hbox,#history-panel .button-text,#bookmarksToolbarFolderMenu{display:none!important}
/* Optimize bars, boxes and sidebars to save space */
#titlebar{margin-top:-2px!important}#nav-bar{margin-bottom:-1px!important}#main-menubar{margin:5px 4px 0px!important}
#bookmarksPanel,#history-panel{background-color:#FFF!important}
#sidebar{min-width:95px!important;max-width:300px!important;margin-top:-1px!important}
#bookmarksPanel .sidebar-placesTreechildren{margin-top:-35px!important}
.sidebar-placesTree{margin-left:-24px!important}
.sidebar-placesTreechildren::-moz-tree-indentation{width:6px!important}
.sidebar-placesTreechildren::-moz-tree-row{min-height:18px!important}
#viewButton,#search-box{border:1px solid #BFBFBF!important;margin:-1px!important;padding:0px 3px 0px 1px!important}
/* Make URL-bar look like before by setting the "expanded" URL-bar position/size == the "normal" URL-bar */
#urlbar[breakout-extend]{top:calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2)!important;
left:calc((var(--urlbar-toolbar-width) - var(--urlbar-width)) / 2)!important;width:100%!important}
#urlbar[breakout-extend] #urlbar-input-container{height:calc(var(--tab-min-height) - 3px)!important;padding:0px!important}
.urlbarView{margin:-1px 0px!important;width:100%!important}.urlbarView-row{padding:0px!important}
.urlbarView-row-inner{padding:2px 0px 4px 6px!important} 
/* Clean up search-bar so it looks the same way as the URL-bar */
#PopupSearchAutoComplete{font-size:1.15em!important;
border-left-color:var(--toolbar-field-focus-border-color)!important;
border-right-color:var(--toolbar-field-focus-border-color)!important;
border-bottom-color:var(--toolbar-field-focus-border-color)!important;
border-top-style:solid!important;margin-top:-1px!important}
.searchbar-search-icon{margin-left:7px!important}
.autocomplete-richlistbox{margin:4px 0px!important}
.autocomplete-richlistbox>richlistitem{padding:2px 0px 6px!important;height:24px!important}
.autocomplete-richlistbox>richlistitem>image{margin:2px 8px 0px 7px!important}
/* Remove things that are just taking up space */
.search-panel-current-engine,.search-setting-button,.search-panel-one-offs-header{display:none!important}
.urlbarView .search-one-offs{padding:0px 0px 2px 0px!important}
.searchbar-engine-one-off-item{min-width:28px!important;max-height:28px!important;margin:0px!important}
.search-panel-one-offs{max-height:32px!important;margin-bottom:-4px!important}.addengine-item{padding-left:6px!important}