/** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
    a particular application should be in that application's style sheet.
	For example style definitions for navigator can be found in navigator.css

   THIS FILE IS LOCKED DOWN.  YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
   CHANGES REVIEWED BY hyatt@netscape.com.
**/

@import url("chrome://global/content/platformXUL.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
@namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */

* {
  -moz-user-focus: ignore;
  display: -moz-box;
}

/* hide the content and destroy the frame */
*[hidden="true"] {
  display: none;
}

/* hide the content, but don't destroy the frames */
*[collapsed="true"], 
*[moz-collapsed="true"] {
  visibility: collapse;
}

/****** elements that have no visual representation ******/

data,
xbl|children,
commands, commandset, command,
broadcasterset, broadcaster, observes,
keyset, key, 
template, rule, conditions, action, 
bindings, binding, content, member, triple {
	display: none;
}

/********** focus rules **********/

checkbox,
colorpicker[type="button"],
menulist,
outliner {
  -moz-user-focus: normal;
}

menulist[editable="true"],
popup, menupopup, tooltip, 
scrollbar, scrollbarbutton, slider, thumb, autorepeater,
splitter, statusbar, statusbarpanel,
toolbox, menubar, toolbar, spinbuttons {
  -moz-user-focus: ignore;
}

outlinercol, outlinerrows,outlinerbody,
radio {
  -moz-user-focus: none;
}

radiogroup {
  -moz-user-focus: normal;
}

/******** window ******/

window { 
  overflow: hidden;
}

/******** box *******/

vbox {
  -moz-box-orient: vertical;
}

/******** bulletinboard *******/

bulletinboard {
  display: -moz-bulletinboard;
}

/********** button **********/

button,
button.left {
  -moz-binding: url("chrome://global/content/bindings/button.xml#buttonleft");
}

button.top {
  -moz-binding: url("chrome://global/content/bindings/button.xml#buttontop");
}

button.right {
  -moz-binding: url("chrome://global/content/bindings/button.xml#buttonright");
}

button.bottom {
  -moz-binding: url("chrome://global/content/bindings/button.xml#buttonbottom");
}

/******** browser, editor, iframe ********/

browser,
editor,
iframe {
  display: inline;
}

browser {
  -moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
}

editor {
  -moz-binding: url("chrome://global/content/bindings/general.xml#editor");
}

iframe {
  -moz-binding: url("chrome://global/content/bindings/general.xml#iframe");
}

/********** checkbox **********/

checkbox {
  -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
}

/********** radio **********/

radiogroup {
  -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
}

radio {
  -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
}

/******** titledbox (moving solely to groupbox later) *******/

titledbox,
groupbox {
  -moz-binding: url("chrome://global/content/bindings/titledbox.xml#groupbox");
  display: -moz-groupbox;
}

.groupbox-body {
  -moz-box-pack: inherit;
  -moz-box-align: inherit;
}
  
/******* toolbar *******/

toolbox { 
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
}
  
toolbar {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
}

toolbargrippy {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbargrippy");
}

toolbarseparator {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarseparator");
}

.toolbar-holder[collapsed="true"] {
  visibility: collapse;
}

/********* menubar ***********/

menubar {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
}

/********* menu ***********/

menubar > menu {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar");
}

menubar > menu.menu-iconic {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic");
}

menu {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menu");
}
  
menu.menu-iconic {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
}

/********* menuitem ***********/

menuitem {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
}

menuitem.menuitem-iconic {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
}

menuitem[type="checkbox"],
menuitem[type="radio"] {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
}

menuitem.menuitem-non-iconic {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item");
}

/********* menuseparator ***********/

menuseparator {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator");
}

/********* popup & menupopup ***********/

/* POPUP is deprecated.  Only <menupopup> and <tooltip> are still valid. */ 

popup,
menupopup,
tooltip {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
  -moz-box-orient: vertical;
  display: none;
  z-index: 2147483647; 
}

menupopup[menugenerated="true"],
popup[menugenerated="true"],
tooltip[menugenerated="true"] {
  display: -moz-popup;
}

/* Everything here is deprecated except the tooltip tag */
popup.tooltip,
.popup-infopopup,
tooltip {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltips");
}

/********** floating popups **********/
  
titlebar {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#titlebar");  
}  

resizer[direction="right"] {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#r-resizer");
}  

resizer[direction="bottom"] {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#b-resizer");
}  

resizer[direction="bottomright"] {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#rb-resizer");  
}  

popup[type="floater"] {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
}

popup[type="floater"][docked="left"] {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
}

button.popupClose {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
}  

/******** grid **********/

grid {
  display: -moz-grid;
}

rows, 
columns {
  display: -moz-grid-group;
}

row,
column {
  display: -moz-grid-line;
}

rows {
  -moz-box-orient: vertical;
}

column {
  -moz-box-orient: vertical;
}

/******** tree **********/

tree {
 -moz-binding: url("chrome://global/content/bindings/tree.xml#tree");
}

treehead, treecol, treerows, treerow, treecolgroup, treechildren {
 -moz-binding: url("chrome://global/content/bindings/tree.xml#tree-base");
}

tree > treechildren {
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows");
}

treeitem { 
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treeitem");
}

/* treecells */

treecell { 
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell");
} 

.treecell-indent {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf");
}

treeitem[container="true"] > treerow > .treecell-indent {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder");
}

.treecell-iconic {
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-iconic");
}

.treecell-image {
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-image");
}

.treecell-align-right {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-align-right");
}

/* tree headers */

.treecell-header, .treecell-inset-header {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header");
}

.treecell-header-image {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header-image");
}

/* internal parts */

.treecell-text { 
 -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-text");
} 

/* Inline Editable Treecell */
.treecell-editable {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-inline-edit");
}

.treecell-indent.treecell-editable {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf-inline-edit");
}

treeitem[container="true"] > treerow > .treecell-indent.treecell-editable {
  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder-inline-edit");
}

/******** outliner ******/

outliner {
 -moz-binding: url("chrome://global/content/bindings/outliner.xml#outliner");
}

outlinercol {
 -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol");
}

outlinercol.outlinercol-image {
 -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol-image");
}

outlinerbody {
 -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerbody");
}

outlinerrows {
 -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerrows");
}

outlinercol.outliner-columnpicker {
  -moz-binding: url("chrome://global/content/bindings/outliner.xml#columnpicker");
}

outlinercol[hidden="true"] {
  visibility: collapse;
  display: -moz-box;
}

/********** deck & stack *********/

deck {
  display: -moz-deck;
}

stack {
  display: -moz-stack;
}

:-moz-deck-hidden {
   visibility: hidden;
}

/********** tabbox *********/

tabbox {
  -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox");
}

tabs {
  -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
}

tab {
  -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
}

tabpanels {
  -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
  display: -moz-deck;
}

/********** progressmeter **********/

progressmeter {
  -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
}

/********** basic rule for anonymous content that needs to pass box properties through
 ********** to an insertion point parent that holds the real kids **************/

 .box-inherit {
   -moz-box-orient: inherit;
   -moz-box-pack: inherit;
   -moz-box-align: inherit;
   -moz-box-direction: inherit;
}

/********** label **********/

/* XXXdwh <text>, <html> and <spring> are deprecated. */

text, spring, spacer {
  display: inline;
}

label, description, html {
  display: block;
}

description {
  -moz-binding: url("chrome://global/content/bindings/text.xml#text-base");
}

label {
  -moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
}

label[control] {
  -moz-binding: url("chrome://global/content/bindings/text.xml#label-control");
}

text[for] {
  -moz-binding: url("chrome://global/content/bindings/text.xml#text-for");
}

/********** textbox **********/

textbox {
  -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox");
  -moz-user-select: text;
}

textbox[multiline="true"] {
  -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea");
}

/********** autocomplete textbox **********/

textbox[type="autocomplete"] {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete");
}

.autocomplete-internal-box {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-internal-box");
}

.autocomplete-result-popup {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup") !important;
}

.autocomplete-history-popup {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup") !important;
}

.autocomplete-outliner {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outliner") !important;
}

.autocomplete-outlinerbody {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerbody") !important;
}

.autocomplete-outlinerrows {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerrows") !important;
}

.autocomplete-outlinercol {
  -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinercol") !important;
}

/********** colorpicker **********/

colorpicker {
  -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker");
}

colorpicker[type="button"] {
  -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button");
}

/********** menulist **********/

menulist {
  -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist");
}

menulist[editable="true"] {
  -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable") !important;
}

menulist > menupopup > menuitem {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic") !important;
}

/********** menubutton **********/

menubutton {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-left");
}

menubutton.right {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-right");
}

menubutton.top {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-top");
}

menubutton.bottom {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-bottom");
}

.menubutton-dual,
.menubutton-dual.left {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-left");
}
  
.menubutton-dual.top {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-top");
}
  
.menubutton-dual.right {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-right");
}
  
.menubutton-dual.bottom {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-bottom");
}
  
.menubutton-icon {
  -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-icon");
} 

/********** splitter **********/

splitter {
  -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter");
}

grippy {
  -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy");
}

.tree-splitter {
  width: 0px;
  max-width: 0px;
}

/********** scrollbar **********/

/* Scrollbars are never flipped even if BiDI kicks in. */
scrollbar {
  direction: ltr;
}

scrollbar, scrollbarbutton, slider, thumb {
  -moz-user-select: none;
}

scrollbar[value="hidden"] {
  visibility: hidden;
}

/******** scrollbox ********/

scrollbox {
  -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox");
}

arrowscrollbox {
  -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
  display: -moz-stack;
}

autorepeatbutton.up {
  -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-up");  
}

autorepeatbutton.down {
  -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-down");  
}

.scrollbox-innerbox {
  -moz-box-pack: inherit;
  -moz-box-align: inherit;
}

/********** statusbar **********/

statusbarpanel {
  -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-panel");
}

/********** spinbuttons ***********/

spinbuttons {
  -moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons");
}

/********** stringbundle **********/

stringbundleset {
  -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset");
  visibility: collapse;
}

stringbundle {
  -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle");
  visibility: collapse;
}

/********** resourcebundle **********/
resourcebundle {
  visibility: collapse;
}  

/********** wizard **********/

wizard {
  -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
  -moz-box-orient: vertical;
}

wizardpage {
  -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
  -moz-box-orient: vertical;
  overflow: auto;
}

.wizard-header {
  -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header");
}

.wizard-buttons {
  -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
}

