/* ***** BEGIN LICENSE BLOCK *****
 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Netscape Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 *   Jason Kersey (kerz@netscape.com)
 *   Pierre Chanial (chanial@noos.fr)
 *   Kevin Gerich (webmail@kmgerich.com)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the NPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the NPL, the GPL or the LGPL.
 * ***** END LICENSE BLOCK ***** */

@import url("chrome://global/skin/");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#main-window {
	-moz-appearance: none;
}
	
/* ::::: bookmark buttons ::::: */

toolbarbutton.bookmark-item[type=menu] {
  padding-left: 7px;
}

toolbarbutton.bookmark-item[type=menu] > .toolbarbutton-menu-dropmarker {
  padding-right: 7px;
}

toolbarbutton.bookmark-item:not([type=menu]) {
  -moz-binding: url("chrome://browser/skin/browser.xml#bm-toolbarbutton");
}

toolbarbutton.bookmark-item {
  margin: 1px;
  padding: 1px 0px 1px 0px;
  min-width: 0;
  max-width: 13em;
  font-weight: bold;
  color: #565656;
  border: none !important;
}

.bookmark-item > .toolbarbutton-icon {
  margin: 0px;
  display: none;
 
}

toolbarbutton.bookmark-item .toolbarbutton-text {
  font-size: 100% !important; 
  margin: 0px !important;
}


.bookmark-image-left, .bookmark-image-right {
  width: 7px !important;
  height: 16px;
}

.bookmark-item:hover > .bookmark-image-left, .bookmark-item[open] > .bookmark-image-left {
  background: url("chrome://browser/skin/bookmark-hover-left.png") no-repeat center left;
}

.bookmark-item:hover > .bookmark-image-right, .bookmark-item[open] > .bookmark-image-right {
  background: url("chrome://browser/skin/bookmark-hover-right.png") no-repeat center right;
}

.bookmark-item:hover > .toolbarbutton-text, .bookmark-item[open] > .toolbarbutton-text  {
  background: url("chrome://browser/skin/bookmark-hover-mid.png") repeat-x;
  color: #000;
}

.bookmark-item:hover > .toolbarbutton-menu-dropmarker, .bookmark-item[open] > .toolbarbutton-menu-dropmarker {
  background: url("chrome://browser/skin/bookmark-hover-dropmarker.png") no-repeat;
  list-style-image: url("chrome://browser/skin/bookmarks/folderarrow-hover.png");
}

toolbarbutton.bookmark-item[type=menu]:hover, toolbarbutton.bookmark-item[type=menu][open] {
  background: url("chrome://browser/skin/bookmark-hover-left.png") no-repeat center left;
}

/* Prevent [mode="icons"] from hiding the label */
.bookmark-item > .toolbarbutton-text {
  display: -moz-box !important;
  height: 16px !important;
  padding-top: 1px;
}

.bookmark-item > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/folderarrow.png");
 height: 16px !important;
padding-top: 5px;
padding-left: 3px;
padding-bottom: 4px;
}

.toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
  background: url("chrome://browser/skin/bookmarks/Toolbar-bookmarks.png") no-repeat;
}

.bookmarks-toolbar-customize {
  display: none;
  max-width: 15em !important;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-customize {
  display: -moz-box;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-overflow-items {
  visibility: hidden;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
  visibility: hidden;
}

/* ::::: bookmark menus ::::: */

.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
  width: 16px;
  height: 16px;
}

/* ..... drag and drop styles ..... */

.bookmark-item[dragover-left="true"] {
  -moz-border-left-colors: #000000;
}
.bookmark-item[dragover-right="true"] {
  -moz-border-right-colors: #000000;
}
.bookmark-item[dragover-top="true"] {
  -moz-border-top-colors: #000000;
}
.bookmark-item[dragover-bottom="true"] {
  -moz-border-bottom-colors: #000000;
}
/* ::::: primary toolbar buttons ::::: */

.toolbarbutton-1 {
  min-width: 0px;
  list-style-image: url("chrome://browser/skin/Toolbar.png");
  -moz-box-orient: vertical;
}

.toolbarbutton-text {
        margin: 0px;
	padding: 0px;
}

.toolbarbutton-menubutton-stack {
  margin: 0px !important;
  padding: 0px;
  -moz-box-orient: horizontal;
}


.toolbarbutton-menubutton-button {
  margin: 0px !important;
  padding: 0px !important;
}

.toolbarbutton-menubutton-stack > .toolbarbutton-menubutton-button {
  -moz-box-orient: vertical;
}
toolbarbutton:not([disabled="true"]):hover,
menubutton:not([disabled="true"]):hover,
toolbarbutton:not([disabled="true"]):hover:active,
menubutton:not([disabled="true"]):hover:active {
  color: ButtonText !important;
}

.toolbarbutton-menubutton-stack,
.toolbarbutton-menubutton-button,
.toolbarbutton-menubutton-stack:hover,
.toolbarbutton-menubutton-button:hover,
.toolbarbutton-menubutton-stack:hover:active,
.toolbarbutton-menubutton-button:hover:active {
  margin: 0px !important;
  display: -moz-box;
}

toolbar[mode="icons"] .toolbarbutton-text {
  display: none;
}

toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
toolbar[mode="text"] .toolbarbutton-icon {
  display: none;
}

toolbar[mode="text"] .toolbarbutton-text {
  padding: 0px !important;
  margin: 3px 5px !important;
}

#back-button, #forward-button  {
  -moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button");
}

#back-button {
  -moz-image-region: rect(0px 32px 32px 0px);
}
#back-button[buttondown="true"] {
  -moz-image-region: rect(32px 32px 64px 0px);
}
#back-button[disabled="true"] {
 -moz-image-region: rect(64px 32px 96px 0px);
}

#forward-button {
  -moz-image-region: rect(0px 64px 32px 32px);
}
#forward-button[buttondown="true"] {
  -moz-image-region: rect(32px 64px 64px 32px);
}
#forward-button[disabled="true"] {
  -moz-image-region: rect(64px 64px 96px 32px) !important;
}

#reload-button {
  -moz-image-region: rect(0px 128px 32px 96px);
}
#reload-button:active {
  -moz-image-region: rect(32px 128px 64px 96px);
}
#reload-button[disabled="true"] {
  -moz-image-region: rect(64px 128px 96px 96px) !important;
}


#stop-button {
  -moz-image-region: rect(0px 96px 32px 64px);
}
#stop-button:active {
  -moz-image-region: rect(32px 96px 64px 64px);
}
#stop-button[disabled="true"] {
  -moz-image-region: rect(64px 96px 96px 64px) !important;
}

#home-button {
  -moz-image-region: rect(0px 160px 32px 128px);
}
#home-button:active {
  -moz-image-region: rect(32px 160px 64px 128px);
}
#home-button[disabled="true"] {
  -moz-image-region: rect(64px 160px 96px 128px) !important;
}

#print-button {
  -moz-image-region: rect(0px 288px 32px 256px);
}
#print-button:active {
  -moz-image-region: rect(32px 288px 64px 256px);
}
#print-button[disabled="true"] {
  -moz-image-region: rect(64px 288px 96px 256px);
}

#new-tab-button {
  -moz-image-region: rect(0px 320px 32px 288px);
}
#new-tab-button:active,
#new-tab-button[checked="true"] {
  -moz-image-region: rect(32px 320px 64px 288px);
}
#new-tab-button[disabled="true"] {
  -moz-image-region: rect(64px 320px 96px 288px);
}

#new-window-button {
  -moz-image-region: rect(0px 352px 32px 320px);
}
#new-window-button:active,
#new-window-button[checked="true"] {
  -moz-image-region: rect(32px 352px 64px 320px);
}
#new-window-button[disabled="true"] {
  -moz-image-region: rect(64px 352px 96px 320px);
}

#downloads-button {
  -moz-image-region: rect(0px 192px 32px 160px);
}
#downloads-button:active {
  -moz-image-region: rect(32px 192px 64px 160px);
}
#downloads-button[disabled="true"] {
  -moz-image-region: rect(64px 192px 96px 160px);
}

#bookmarks-button {
  -moz-image-region: rect(0px 256px 32px 224px);
}
#bookmarks-button:active {
  -moz-image-region: rect(32px 256px 64px 224px);
}
#bookmarks-button[disabled="true"] {
  -moz-image-region: rect(64px 256px 96px 224px);
}

#history-button {
  -moz-image-region: rect(0px 224px 32px 192px);
}
#history-button:active {
  -moz-image-region: rect(32px 224px 64px 192px);
}
#history-button[disabled="true"] {
  -moz-image-region: rect(64px 224px 96px 192px);
}

#cut-button {
  -moz-image-region: rect(0px 384px 32px 352px);
}
#cut-button:active,
#cut-button[checked="true"] {
  -moz-image-region: rect(32px 384px 64px 352px);
}
#cut-button[disabled="true"] {
  -moz-image-region: rect(64px 384px 96px 352px);
}

#copy-button {
  -moz-image-region: rect(0px 416px 32px 384px);
}
#copy-button:active,
#copy-button[checked="true"] {
  -moz-image-region: rect(32px 416px 64px 384px);
}
#copy-button[disabled="true"] {
  -moz-image-region: rect(64px 416px 96px 384px);
}

#paste-button {
  -moz-image-region: rect(0px 448px 32px 416px);
}
#paste-button:active,
#copy-button[checked="true"] {
  -moz-image-region: rect(32px 448px 64px 416px);
}
#paste-button[disabled="true"] {
  -moz-image-region: rect(64px 448px 96px 416px);
}

/* ::::: small primary toolbar buttons ::::: */


toolbar[iconsize="small"] .toolbarbutton-1 {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  padding: 1px 3px 1px 3px !important;
}

toolbar[iconsize="small"] #back-button {
  -moz-image-region: rect(0px 24px 24px 0px);
}

/* back button */

toolbar[iconsize="small"] #back-button[buttondown="true"] {
  -moz-image-region: rect(24px 24px 48px 0px);
}
toolbar[iconsize="small"] #back-button[disabled="true"] {
  -moz-image-region: rect(48px 24px 72px 0px) !important;
}

/* forward button */

toolbar[iconsize="small"] #forward-button {
  -moz-image-region: rect(0px 48px 24px 24px);
  padding-right: 2px;
}
toolbar[iconsize="small"] #forward-button[buttondown="true"] {
  -moz-image-region: rect(24px 48px 48px 24px);
}
toolbar[iconsize="small"] #forward-button[disabled="true"] {
   -moz-image-region: rect(48px 48px 72px 24px) !important;
}

/* stop button */

toolbar[iconsize="small"] #stop-button {
  -moz-image-region: rect(0px 72px 24px 48px);
}
toolbar[iconsize="small"] #stop-button:active {
  -moz-image-region: rect(24px 72px 48px 48px);
}
toolbar[iconsize="small"] #stop-button[disabled="true"] {
  -moz-image-region: rect(48px 72px 72px 48px) !important;
}

/* reload button */

toolbar[iconsize="small"] #reload-button {
  -moz-image-region: rect(0px 96px 24px 72px);
}
toolbar[iconsize="small"] #reload-button:active {
  -moz-image-region: rect(24px 96px 48px 72px);
}
toolbar[iconsize="small"] #reload-button[disabled="true"] {
  -moz-image-region: rect(48px 96px 72px 72px);
}

/* home button */

toolbar[iconsize="small"] #home-button {
  -moz-image-region: rect(0px 120px 24px 96px);
}
toolbar[iconsize="small"] #home-button:active {
  -moz-image-region: rect(24px 120px 48px 96px);
}

/* download manager button */

toolbar[iconsize="small"] #downloads-button {
  -moz-image-region: rect(0px 144px 24px 120px);
}
toolbar[iconsize="small"] #downloads-button:active {
  -moz-image-region: rect(24px 144px 48px 120px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
  -moz-image-region: rect(48px 144px 72px 120px) !important;
}

/* history sidebar button */

toolbar[iconsize="small"] #history-button {
  -moz-image-region: rect(0px 168px 24px 144px);
}
toolbar[iconsize="small"] #history-button:active {
  -moz-image-region: rect(24px 168px 48px 144px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
  -moz-image-region: rect(48px 168px 72px 144px) !important;
}

/* bookmark sidebar button */

toolbar[iconsize="small"] #bookmarks-button {
  -moz-image-region: rect(0px 192px 24px 168px);
}
toolbar[iconsize="small"] #bookmarks-button:active {
  -moz-image-region: rect(24px 192px 48px 168px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
  -moz-image-region: rect(48px 192px 72px 168px) !important;
}

/* print button */

toolbar[iconsize="small"] #print-button {
  -moz-image-region: rect(0px 216px 24px 192px);
}
toolbar[iconsize="small"] #print-button:active {
  -moz-image-region: rect(24px 216px 48px 192px);
}
toolbar[iconsize="small"] #print-button[disabled="true"] {
  -moz-image-region: rect(48px 216px 72px 192px) !important;
}

/* new tab button */

toolbar[iconsize="small"] #new-tab-button {
  -moz-image-region: rect(0px 240px 24px 216px);
}
toolbar[iconsize="small"] #new-tab-button:active {
  -moz-image-region: rect(24px 240px 48px 216px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
  -moz-image-region: rect(48px 240px 72px 216px) !important;
}

/* new window button */

toolbar[iconsize="small"] #new-window-button {
  -moz-image-region: rect(0px 264px 24px 240px);
}
toolbar[iconsize="small"] #new-window-button:active {
  -moz-image-region: rect(24px 264px 48px 240px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
  -moz-image-region: rect(48px 264px 72px 240px) !important;
}

/* cut button */

toolbar[iconsize="small"] #cut-button {
  -moz-image-region: rect(0px 288px 24px 264px);
}
toolbar[iconsize="small"] #cut-button:active {
  -moz-image-region: rect(24px 288px 48px 264px);
}
toolbar[iconsize="small"] #cut-button[disabled="true"] {
  -moz-image-region: rect(48px 288px 72px 264px) !important;
}

/* copy button */

toolbar[iconsize="small"] #copy-button {
  -moz-image-region: rect(0px 312px 24px 288px);
}
toolbar[iconsize="small"] #copy-button:active {
  -moz-image-region: rect(24px 312px 48px 288px);
}
toolbar[iconsize="small"] #copy-button[disabled="true"] {
  -moz-image-region: rect(48px 312px 72px 288px);
}

/* paste button */

toolbar[iconsize="small"] #paste-button {
  -moz-image-region: rect(0px 336px 24px 312px);
}
toolbar[iconsize="small"] #paste-button:active {
  -moz-image-region: rect(24px 336px 48px 312px);
}
toolbar[iconsize="small"] #paste-button[disabled="true"] {
  -moz-image-region: rect(48px 336px 72px 312px);
}

/* ::::: fullscreen window controls ::::: */

#window-controls {
  -moz-box-align: center;
  padding: 0 2px 0 4px;
}

#minimize-button {
  list-style-image: url("chrome://global/skin/icons/minimize.gif");
}
#restore-button {
  list-style-image: url("chrome://global/skin/icons/restore.gif");
}
#close-button {
  list-style-image: url("chrome://global/skin/icons/close.gif");
}

/* ::::: nav-bar-inner ::::: */

#urlbar {
  margin: 5px 4px 5px 4px;
  padding: 0px;
  font: icon !important;
}



/* ::::: page proxy icon ::::: */

#page-proxy-deck,
#page-proxy-favicon,
#page-proxy-button, 
#search-proxy-button {
  width: 16px;
  height: 16px;
  margin: 0px;
  padding: 0px;
}

#page-proxy-deck {
  cursor: -moz-grab;
}

#page-proxy-favicon {
  list-style-image: none;
}

#page-proxy-button {
  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-item.png");
}

#page-proxy-button[pageproxystate="invalid"] {
  cursor: default;
  -moz-opacity: 0.5;
}


statusbarpanel#statusbar-display {
  padding-left: 0;
}

/* ::::: search-bar ::::: */

#search-proxy-button {
	min-width: 22px;
	margin: 0px 3px 0px 5px;  
}

.search-proxy-button-image {
 padding: 0px;
 list-style-image: url("chrome://browser/skin/Search-bar.png");
}

.search-proxy-button-dropmarker {
	list-style-image: url("chrome://global/skin/arrow/arrow-dn.png");
	padding: 6px 0px 5px 17px;

}

#miSearchModeFind, #__PhoenixFindInPage {
	list-style-image: url("chrome://browser/skin/Search-bar.png");
}

#miSearchModeFind[checked="true"] {
  list-style-image: url("chrome://global/skin/menu/menu-check.png");
}

#search-bar > .autocomplete-textbox-container  {
  border: none;
  padding-right: 10px;
  height: 21px !important;
  margin: 0px;
}

#search-bar {
  background: url("chrome://browser/skin/search-bar-background.png") no-repeat;
  margin: 4px 3px 4px 3px;
  -moz-appearance: none;
  font: icon;
  height: 22px !important;
  width: 182px !important;
  border: none !important;
}

/* ::::: autocomplete ::::: */

.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
  color: #555566;
}

/* ::::: go button ::::: */

#go-button,
#go-container {
  -moz-appearance: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style-image: url("chrome://browser/skin/Go.png");
  -moz-image-region: rect(0px, 20px, 20px, 0px);
}

#go-button {
  -moz-appearance: toolbarbutton;
}

#go-button:hover:active {
  -moz-image-region: rect(0px, 40px, 20px, 20px);
}

#go-button[disabled="true"] {
  -moz-image-region: rect(0px, 60px, 20px, 40px);
}

#go-button > .button-box > .button-text {
  margin-left: 5px !important;
}

#go-button > .button-box {
  border: none;
}

sidebarheader {
	border-bottom: 1px solid #A3A3A3;
        background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
}

#sidebar-box {
  -moz-appearance: dialog;
}

#sidebar-splitter {
	 border-right: 1px solid #8e8e8e;
         border-left: 1px solid #bebebe;
         background-color: #ececec;
} 

#sidebar-title {
  font: icon;
  color: #000;
}

#sidebar-throbber[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.gif");
}	


/* ::::: content area ::::: */

#security-button {
  display: none;
}

#security-button[level="high"] {
  list-style-image: url("chrome://browser/skin/Secure.png");
  display: -moz-box;
}

#security-button[level="low"] {
  list-style-image: url("chrome://browser/skin/Secure.png");
  display: -moz-box;
}

#security-button[level="broken"] {
  list-style-image: url("chrome://browser/skin/Security-broken.png");
  display: -moz-box;
}

#page-report-button {
  display: none;
}

#page-report-button[blocked] {
  display: -moz-box;
  list-style-image: url("chrome://browser/skin/Popup-blocked.png");
  padding: 0px 3px 0px 3px;
}

#page-theme-button {
  display: none;
}

#page-theme-button[themes] {
  display: -moz-box;
  list-style-image: url("chrome://browser/skin/page-themes.png");
  padding: 0px 3px 0px 3px;
}

/* :::::: throbber :::::::::: */

#navigator-throbber {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  -moz-box-pack: center;
  margin: 0px 1px 0px 1px !important;
  border: none !important;
  padding: 0px !important;
  min-width: 0;
  background-color: transparent;
  list-style-image: url("chrome://global/skin/icons/notloading_16.png");
  padding: 8px !important;
  
}


#navigator-throbber[busy="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.gif");
}

toolbar[iconsize="small"] #navigator-throbber,
toolbar[mode="text"] #navigator-throbber {
  list-style-image: url("chrome://global/skin/icons/notloading_16.png");
  padding: 4px !important;
}
toolbar[iconsize="small"] #navigator-throbber[busy="true"],
toolbar[mode="text"] #navigator-throbber[busy="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.gif");
}

toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/icons/chevron.png") !important;
}


toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
  display: none;
}


#PersonalToolbar {
        background-image: none;
}

.bookmark-item {
	  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-item.png");
}

.tabs-left {
	display: none !important;
}

/* ::::: close button ::::: */

.tabs-closebutton {
  padding-right: 4px;
  list-style-image: url("chrome://global/skin/icons/closetab.png") !important;
  list-style-image: none;
  border: none;
}

.tabs-closebutton:hover:active {
	list-style-image: url("chrome://global/skin/icons/closetab-active.png") !important;
}
