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

tabbrowser {
  border: 0 !important;
}

tabbox {
  margin: 0;
}

tabpanels {
  -moz-appearance: none;
}

.tabs-bottom {
  border-bottom: 3px solid;
  -moz-border-bottom-colors: #888 rgba(0, 0, 0, 0.08);
}

.tabbrowser-tabs {
  font: icon;
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  margin: 0;
  -moz-box-align: end;
}

.tabs-stack {
  margin-top: -1px;
}

.tab-icon {
  -moz-margin-end: 3px;
  width: 16px;
  height: 16px;
}

.tabbrowser-tab {
  margin: 0;
  padding: 0;
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.png");
  border: solid transparent;
  border-width: 0 2px;
  -moz-appearance: none;
}

.tabbrowser-tab:not([selected="true"]):-moz-locale-dir(ltr),
.tabbrowser-tab:not([selected="true"]):-moz-locale-dir(rtl):first-child {
  -moz-border-right-colors: transparent rgba(0, 0, 0, 0.19);
}

.tabbrowser-tab:not([selected="true"]):-moz-locale-dir(ltr):first-child,
.tabbrowser-tab:not([selected="true"]):-moz-locale-dir(rtl) {
  -moz-border-left-colors: transparent rgba(0, 0, 0, 0.19);
}

.tabbrowser-tab:not(:first-child) {
  -moz-margin-start: -3px;
}

.tab-middle {
  padding: 4px 7px;
}

.tab-middle:-moz-lwtheme {
  background-color: rgba(0, 0, 0, 0.1);
}

.tab-middle:-moz-lwtheme:not([selected="true"]) > .tab-text {
  opacity: 0.8;
}

.tab-middle[selected="true"] {
  padding: 1px 7px 4px;
  background-color: #E8E8E8;
}

.tab-middle[selected="true"]:-moz-lwtheme {
  background-color: transparent;
}

.tabbrowser-tab:hover > .tab-middle:not([selected="true"]) {
  background-color: rgba(0, 0, 0, 0.1);
}

.tabbrowser-tab:-moz-lwtheme:hover > .tab-middle:not([selected="true"]) {
  background-color: rgba(0, 0, 0, 0.20);
}

.tabbrowser-tab[busy] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}

.tabbrowser-tab[selected="true"] {
  border-radius: 2px;
  border-top-width: 2px;
  -moz-border-top-colors: rgba(0, 0, 0, 0.1) #888;
  -moz-border-left-colors: rgba(0, 0, 0, 0.08) #888;
  -moz-border-right-colors: rgba(0, 0, 0, 0.08) #888;
  margin-top: 1px;
  -moz-user-focus: normal;
}

.tabbrowser-tab:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 5px;
}

.tabbrowser-tab[beforeselected="true"]:-moz-locale-dir(ltr) {
  -moz-border-right-colors: transparent transparent;
}

.tabbrowser-tab[beforeselected="true"]:-moz-locale-dir(rtl) {
  -moz-border-left-colors: transparent transparent;
}

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

.tabs-closebutton {
  margin: 3px;
  padding: 1px;
  list-style-image: url("chrome://global/skin/icons/closetab.png");
}

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

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

.tabs-closebutton > .toolbarbutton-icon,
.tabs-closebutton > .toolbarbutton-text {
  margin: 0 !important;
}

.tabs-newbutton {
  margin: 0;
  padding: 1px;
  list-style-image: url("chrome://navigator/skin/icons/tab-new.gif");
}

.tab-drop-indicator-bar {
  height: 11px;
  margin-top: -11px;
  -moz-margin-start: -8px;
  position: relative;
}
 
.tab-drop-indicator {
  height: 11px;
  width: 11px;
  margin-bottom: -5px;
  position: relative;
  list-style-image: url('chrome://navigator/skin/icons/tab-drag-indicator.gif');
}

tooltip[tabpreview="true"] {
  max-width: none;
}
