menu, menuitem  
  {
    font                  : menu;
    color                 : MenuText;
    list-style-image      : none;
  }

menuitem 
  {
    padding               : 0px !important; 
    cursor                : default !important;    
  }

menu[disabled="true"], menuitem[disabled="true"],
menu[menuactive="true"][disabled="true"],
menuitem[menuactive="true"][disabled="true"]
  {
	  color                 : GrayText;
  }

menuitem[default="true"]
  {
    font-weight           : bold;
  }  
  
menupopup > menu,
menupopup > menuitem,
popup > menu,
popup > menuitem
  {
    max-width             : 42em; /* should move to content */
    margin                : 0px;
  }

menuseparator 
  {
    border-top            : 1px solid ThreeDShadow;
    border-bottom         : 1px solid ThreeDHighlight;
    margin                : 2px 0px 2px 0px;
    cursor                : default !important;
  }

menubar > menu 
  {
    padding               : 2px 5px 2px 7px;
    margin                : 0px 0px 1px 0px;
    border                : 1px solid transparent;
  }

menubar > menu[menuactive="true"] 
  {
    border-left           : 1px solid ThreeDHighlight;
    border-top            : 1px solid ThreeDHighlight;
    border-right          : 1px solid ThreeDShadow;
    border-bottom         : 1px solid ThreeDShadow;
  }

menubar > menu[menuactive="true"][open="true"] 
  {
    border-left           : 1px solid ThreeDShadow;
    border-top            : 1px solid ThreeDShadow;
    border-right          : 1px solid ThreeDHighlight;
    border-bottom         : 1px solid ThreeDHighlight;
    padding               : 3px 4px 1px 8px;
  }

menupopup > menu[menuactive="true"],
menupopup > menuitem[menuactive="true"],
popup > menu[menuactive="true"],
popup > menuitem[menuactive="true"]
  {
    background-color      : Highlight;
    color                 : HighlightText;
  }

/** 
 * Atomic sub-parts of standard menus
 **/
.menu-right 
  {
    margin                : 0px 4px 0px 6px;
    width                 : 8px;
    list-style-image      : url("chrome://global/skin/menu-arrow.gif");
  }

.menu-iconic-left 
  {
    color                 : inherit;
    margin                : 0px 4px 0px 3px;
    width                 : 16px;
    list-style-image      : inherit;
  }

.menubar-left 
  {
    color                 : inherit;
    margin                : 0px 2px 0px 0px;
  }

.menu-iconic-text, .menu-iconic-accel, .menu-text, .menu-accel
  {
    color                 : inherit;
  }

.menu-iconic-text
  {
    margin                : 2px 2px 2px 0px;
  }

.menu-text 
  {
    margin                : 2px 2px 2px 23px;
  }

.menu-accel 
  {
    margin                : 2px 14px 2px 6px;
  }

.menu-iconic-accel 
  {
    margin                : 2px 14px 2px 4px;
  }

.menubar-text 
  {
    color                 : inherit;
    margin-right          : 2px;
  }

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

menuitem[checked="true"][menuactive="true"]
  {
  	list-style-image	  : url("chrome://global/skin/menu-check-hover.gif");
  }

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

menuitem[checked="true"][type="radio"] 
  {
    list-style-image      : url("chrome://global/skin/menu-radio.gif");
  }

menuitem[checked="true"][type="radio"][disabled="true"] 
  {
    list-style-image      : url("chrome://global/skin/menu-radio-disabled.gif");
  }

menuitem[checked="true"][type="radio"][menuactive="true"] 
  {
    list-style-image      : url("chrome://global/skin/menu-radio-hover.gif");
  }

.menu-right[disabled="true"] 
  {
    list-style-image      : url("chrome://global/skin/menu-arrow-disabled.gif");
  }

.menu-right[menuactive="true"][disabled="true"] 
  {
    list-style-image      : url("chrome://global/skin/menu-arrow-disabled.gif");
  }

.menu-right[menuactive="true"] 
  {
    list-style-image      : url("chrome://global/skin/menu-arrow-hover.gif");
  }

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

.autocomplete-history-popup > menuitem
  {
    max-width              : none !important;
    font-size              : smaller;
  }

/* ::::: menu/menuitems in a menulist popup ::::: */

  menulist > menupopup > menuitem,
  menulist > menupopup > menu
    {
      border              : 1px solid transparent;
      padding             : 0px 7px !important;
      min-width           : 0px;  /* should be in content*/
      max-width           : none; /* should be in content*/
      font                : message-box;
      color               : -moz-FieldText;
    }

  menulist > menupopup > menuitem > .menu-iconic-accel,
  menulist > menupopup > menuitem > .menu-accel,
  menulist > menupopup > menuitem > .menu-text,
  menulist > menupopup > menuitem > .menu-iconic-text,
  menulist > menupopup > menu > .menu-text,
  menulist > menupopup > menu > .menu-accel,
  menulist > menupopup > menu > .menu-iconic-text,
  menulist > menupopup > menu > .menu-iconic-accel
    {
      margin-top          : 0px;
      margin-bottom       : 0px;
    }

  menulist > menupopup > menuitem[menuactive="true"]
    {
      border              : 1px dotted #F5DB95;
    }

  menulist > menupopup > menuitem > .menu-iconic-left,
  menulist > menupopup > menuitem > .menu-iconic-left[menuactive="true"]
    {
      list-style-image    : inherit;
      width               : 0px;
      border              : none;
    }

  menulist > menupopup > menuseparator
    {
      border-top: none;
      border-bottom: 1px solid WindowText;
    }
    
/* ::::: tree column picker ::::: */

  .treecell-popupcell-menu 
    {
      margin-left: -4px;
      list-style-image: url("chrome://global/skin/columnselect.gif");
    }