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

/** generic text fields (in dialogs)
 **/
 
/* outer frame */
  textfield
    {
      margin              : 1px 5px 2px 5px;
      border-top          : 1px solid ThreeDShadow;
      border-right        : 1px solid ThreeDHighlight;
      border-bottom       : 1px solid ThreeDHighlight;
      border-left         : 1px solid ThreeDShadow;
      padding             : 0px;
      background-color    : -moz-field;
      color               : WindowText;
      cursor              : text;
    }
    
  textfield[readonly="true"]
    {
      background-color    : ThreeDFace;
    }
  
/* internal frame */
  .textfield-internal-box, .textarea-internal-box
    {
      margin              : 0px;
      padding             : 1px 2px 1px 2px;
      border-left         : 1px solid ThreeDDarkShadow;
      border-top          : 1px solid ThreeDDarkShadow;
      border-right        : 1px solid ThreeDFace;
      border-bottom       : 1px solid ThreeDFace;
    }
  
/* internal text widget */
  .textfield-input, .textfield-textarea
    {
      border              : none !important;
      margin              : 0px;
      padding             : 0px;
      font                : inherit;
      background-color    : inherit;
      color               : inherit;
    }

  textfield[disabled="true"] 
    {
      cursor              : default !important;
      background-color    : ThreeDFace;
      color               : GrayText;
    } 
    
/** plain atomic textfields, class="plain" **/
  textfield.plain, 
  textfield.plain > .textfield-internal-box, 
  textfield.plain > .textarea-internal-box
    {
      padding             : 0px !important;
      margin              : 0px !important;
      border              : none !important;
    }

/* autocomplete text field */
  .textfield-popup > menuitem
    {
      max-width            : none !important;
    }
