@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

/* Style the tab bar */
#main-window .tabbrowser-tabs {
	-moz-appearance: toolbox !important;
	margin-top: -1px !important;
	padding-bottom: 1px !important;
}

#main-window .tabbrowser-tabs .tabs-bottom:-moz-system-metric(windows-default-theme) {
	-moz-appearance: tabpanels !important;
	margin-bottom: -3px !important;
	margin-right: -2px !important;
}

#main-window .tabbrowser-tabs:-moz-system-metric(windows-default-theme) {
	-moz-appearance: toolbox !important;
}

/* Tab bar fixes */
#main-window .tabbrowser-tabs .tabbrowser-arrowscrollbox {
	margin-left: -2px !important;
}

	/* All Tabs Button */
	#main-window .tabbrowser-tabs .tabs-alltabs-button {
		-moz-appearance: toolbarbutton !important;
		background: none !important;
		border: none !important;
	}

	/* ##### Remove this line if you have problems with the tab bar being too tall #####  /
	#main-window .tabbrowser-tabs .tabs-alltabs-button:not(:-moz-system-metric(windows-default-theme)) {
		margin-top: 0px !important;
		margin-bottom: 0px !important;
	}
	/  ##### Remove this line if you have problems with the tab bar being too tall ##### */


	/* Scrool Buttons */
	#main-window .tabbrowser-tabs .scrollbutton-up {
		margin-left: 2px !important;
	}

/* Style the tabs */
#main-window .tabbrowser-tabs tab {
	-moz-appearance: tab !important;
	color: -moz-DialogText !important;
	margin-bottom: 2px !important;
}

#main-window .tabbrowser-tabs tab:not([selected="true"]) { z-index: -1 !important; }

	/* Alignemt fixes */
	#main-window:-moz-system-metric(windows-default-theme) .tabbrowser-tabs tab[selected="true"] { margin-left: -1px !important; }
	#main-window:-moz-system-metric(windows-default-theme) .tabbrowser-tabs tab:not([selected="true"]) { margin-bottom: 3px !important; }
	#main-window:-moz-system-metric(windows-default-theme) .tabbrowser-tabs tab:not([selected="true"]):hover > * { margin-top: -1px !important; }
	#main-window:-moz-system-metric(windows-default-theme) .tabbrowser-tabs tab:not([selected="true"]):not([faviconized="true"]):hover .tab-icon-image { margin-left: 6px !important; }
	#main-window:-moz-system-metric(windows-default-theme) .tabbrowser-tabs tab:not([selected="true"]):hover .tab-text { margin-left: 0px !important; }