@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("mail.google.com") {
/* Block the ads table in the message window */
div.diLZtc td[class="Bu"]:first-child + div.diLZtc td[class="Bu"],
div.diLZtc td[class="Bu"]:last-child > div > div > div:not(:first-child) {
    display: none !important;
}

/* Remove the Inbox */
div.nH.nn div.nH.nn>div.A1.D.E:nth-last-child(6), div.nH.nn div.nH.nn>div.nH:nth-last-child(2), div.nH.nn div.nH.nn>div.AY.D.E:nth-last-child(1) { display:none !important; }

/* Hide the invite box. */
div.pY { display: none !important; }

/* Improve the appearance of the sidebar panels. */
div.nH.r { background:#DDD !important; padding-bottom:4px !important; }
div.nH.pt { background:#EAEAE6 !important; }
div.nH.pp.ps.TZ { border-top:0 !important; margin-bottom:0 !important; padding-bottom:0 !important; background:#AAA !important; }

/* Improve the appearance of multiple inboxes. */
div.nH.nK { margin-bottom:0 !important; padding-top:2px !important; }

div.nH.nK > .nH:first-child {
  background:#ddd !important;
  border-top:1px solid #AAA !important;
  border-bottom:solid 1px #FFF !important;
  border-left:solid 1px #AAA !important;
  margin-left:-1px !important;
}

div.diLZtc div.nH>div.no>div.nH.nn>div.nH:nth-child(2) { display:none !important; }

/* Add useful links to the top of the message window. (New window, print all, expand all, collapse all, and forward all) */
td[class="Bu"]:last-child > div.nH {
  width:auto !important;
}

table.Bs div.hj {
  position:absolute !important;
  left:0px !important;
  margin-top:5px !important;
  width:100% !important;
  text-align:center !important;
  height:20px !important;
}

table.Bs div.hj > div.hk:not([style="display: none;"]) {
  display:inline !important;
  margin:0 0.5em !important;
}

/* Remove the navigation links at the top */
body>div>div.nH>div.nH>div.aC>div.nH>div.nH {
  position:absolute;
  top:0;
  right:0;
  z-index:2 !important;
}

body>div>div.nH>div.nH>div.aC>div.nH>div.nH:last-child {
  position:relative;
  padding-top:15px;
  z-index:1 !important;
}

body>div>div.nH>div.nH>div.aC>div.nH>div.nH>div.qp {
  border-bottom:0 !important;
}

#gbar {
  display:none;
}
}