/* by makondo, 06/09. Many thanks to YupYup for his digging! */
/*@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);*/
@-moz-document url-prefix("chrome://browser/content/preferences"),  url(chrome://passwordmgr/content/passwordManagerExceptions.xul), url(chrome://mozapps/content/update/history.xul) {

dialog, .windowDialog, tree, #BrowserPreferences, prefwindow, #advancedPrefs tabpanels, #BrowserPreferences radiogroup, #handlersView, #offlineAppsList
{ -moz-appearance: -moz-win-glass !important;
background: none !important;
color: black !important;
text-shadow: white 1px 1px 1px !important;
opacity: 0.99 !important;
-moz-border-radius: 5px !important; }

tabpanels, .tabs-right, .paneSelector, groupbox, filefield, #downloadFolder textbox, .fileFieldLabel, treecol, listheader, listbox
{ -moz-appearance: none !important; 
border: none !important; }

.tab-middle.box-inherit, filefield, .fileFieldContentBox, #cookieInfoBox, .groove 
{ outline: transparent !important; 
border: transparent !important; }

/* select buttons */
menulist
{ outline: none !important; }

#handlersView scrollbar, #historyItems, treecol, listheader, listbox, caption,
#permissionsTree scrollbar, #cookiesList scrollbar,
filefield, .fileFieldContentBox, #cookieInfoBox 
{ -moz-appearance: -moz-win-glass !important;
background: none !important;
opacity: .9 !important; }

listbox, #historyItems
{ color: black !important; }

#handlersView richlistitem[selected="true"]
{ -moz-appearance: none !important;
background: transparent !important;
-moz-box-shadow: inset rgba(98,128,136,0.4)  -1px 10px 28px 2px !important;
-moz-border-radius: 6px !important; }

richlistitem
{ padding: 2px !important; }

checkbox[disabled="true"]
{ color: #42525E !important;
text-shadow: 0px 0px 6px white !important; }

/* buttons */
button[disabled="true"]
{ opacity: .8 !important; 
color: #59666E !important;
text-shadow: 0px 0px 6px white !important;  }

button:not([type="repeat"]):not([type="checkbox"]):not([type="radio"]), radio, menulist, tab
{ font-weight: bold !important; 
-moz-appearance: none !important; 
background: url(chrome://browser/skin/tabbrowser/tab-bkgnd.png) !important; 
-moz-box-shadow: 2px 2px 4px #628088 !important; 
-moz-box-shadow: 
0 0 2px rgba(255, 255, 255, 0.4) inset,
0 4px 6px rgba(255, 255, 255, 0.4) inset,
0pt 11px 0 -2px rgba(255, 255, 255, 0.2) inset,
0pt 13px 8px rgba(0, 0, 0, 0.3) inset,
2pt 2px 4px rgba(0, 0, 0, 0.2)  !important;
-moz-border-radius: 5px !important;
border-top: 1px solid #E4F4F6 !important; 
border-bottom: 2px solid #75B7BD !important; 
border-left: 1px solid #F1F7E9 !important;
border-right: 2px solid #7A9C9F !important;
-moz-border-top-colors: #C5D3D4 #9EA9AA#8E9899 !important; 
-moz-border-bottom-colors: #435657 #69D2E0 #ccc !important;
-moz-border-left-colors: #F1F7E9 #ccc #ccc !important;
-moz-border-right-colors:  #666 #4CB5B8 #274D54 !important; }

radio
{ -moz-appearance: none !important; 
background: url(chrome://browser/skin/tabbrowser/tab-bkgnd.png) !important; 
-moz-box-shadow: 
inset 2pt 2px 4px rgba(250,250,250, 0.2)  !important; }

button:not([type="repeat"]):not([type="checkbox"]):hover, radio[pane][selected="true"], radio[pane]:hover, tab:hover, tab[selected="true"]
{ -moz-appearance: none !important; 
background: url(chrome://browser/skin/tabbrowser/tab-hover-bkgnd.png) !important;
color: #010726 !important;
background: rgba(179,207,198, 0.5) !important; }

/* borders */
treechildren:-moz-tree-row(hover), treechildren:-moz-tree-row(selected),
listitem:hover, listitem[selected="true"],
#permissionsTree, #cookiesList, #rejectsTree, listbox, #historyItems, 
richlistitem:hover, richlistitem[selected="true"]
{ -moz-appearance: none !important;
background: none !important;
padding: 0 !important;   
-moz-border-radius: 5px !important; 
border-top: 2px solid #E4F4F6 !important; 
border-bottom: 2px solid #75B7BD !important; 
border-left: 2px solid #F1F7E9 !important;
border-right: 2px solid #7A9C9F !important;
-moz-border-top-colors: #C5D3D4 #9EA9AA#8E9899 !important; 
-moz-border-bottom-colors: #435657 #69D2E0 #ccc !important;
-moz-border-left-colors: #F1F7E9 #ccc #ccc !important;
-moz-border-right-colors:  #666 #4CB5B8 #274D54 !important; } }