@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.titlebar-placeholder[type="appmenu-button"] {margin-right: -5px  !important;}

#main-window[sizemode="normal"] #navigator-toolbox[tabsontop="true"] #TabsToolbar {    
     padding-left: 34px !important; 
     margin-right: 110px !important; 
}

#main-window[tabsontop="true"] #toolbar-menubar[autohide="false"] { 
     margin-left: 0 !important; 
     margin-top: 0 !important; 
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar[inactive] { 
     margin-top: -22px !important; 
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar:not([inactive]) { 
     margin-left: 36px !important; 
     margin-top: -19px !important; 
}

#main-window[tabsontop="true"][sizemode="maximized"] #toolbar-menubar:not([inactive]){
     margin-top: 2px !important;
     margin-left: 2px !important;
}

#main-window[tabsontop="true"][sizemode="maximized"] #toolbar-menubar[customizing="true"] {
     margin-top: -16px !important;
     margin-right: 110px !important;
     margin-left: 30px !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar[customizing="true"] {
     margin-right: 110px !important;
     margin-left: 33px !important;
     margin-top: -20px !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #appmenu-button {
    margin-top: 1px !important;
    margin-left: 3px !important
}


#main-window[tabsontop="true"] #appmenu-button {
    border: 0 none !important;
    padding:9px 0 0 0 !important;
    height: 25px !important;
    min-width: 31px !important;
    width:31px !important;
    -moz-border-image: url("chrome://browser/skin/tabbrowser/tab.png") 6 3 3 4 / 6px 3px 3px 4px !important;
    border-radius: 7px 7px 0 0 !important;
    background: -moz-linear-gradient(rgb(247,182,82), rgb(215,98,10)) no-repeat -5px -4px !important;
    background-size: 200% !important;
    box-shadow: none !important; 
}


#main-window[tabsontop="true"] #appmenu-button:hover,
#main-window[tabsontop="true"] #appmenu-button[open] {
    background-image: -moz-radial-gradient(center bottom, farthest-side, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, rgb(236,133,0), rgba(255,229,172,0)),
                    -moz-linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%)  !important;
}

#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button {
    background-image: -moz-linear-gradient(rgb(153, 38, 211), rgb(105, 19, 163) 95%) !important;
}

#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button:hover,
#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button[open]{
      background-image: -moz-radial-gradient(center bottom, farthest-side, rgba(240,193,255,.5) 10%, rgba(240,193,255,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, rgb(192,81,247), rgba(236,172,255,0)),
                    -moz-linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important;
}

#main-window[tabsontop="true"] #appmenu-button .button-menu-dropmarker,
#main-window[tabsontop="true"] #appmenu-button .button-text { 
    display:none !important;
}

 #main-window[tabsontop="true"] #appmenu-button .button-icon {
    margin-top: -10px !important;
    list-style-image: url("chrome://branding/content/icon16.png")!important;
    -moz-image-region: rect(0 16px 16px 0) !important;
}

#main-window[tabsontop="true"] #appmenu-button-container { 
     position: fixed !important;
     margin-top: 0 !important;
     width:32px !important; 
}

