@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Tab Browser, replaces the horizontal arrowscrollbox
 * with an overflow scroll panel, such as in:
 * http://userstyles.org/styles/481
 */

 /* These are the values to change the box height.
  */
 tabs.tabbrowser-tabs
  {
    height: 58px !important;
    max-height: 58px !important;
    min-height: 58px !important;
  }
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox,
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox,
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox > box
  {
    /* Less than height of the tabbrowser,
     * line it up with the bottom of yours.
     */
    height: 54px !important;
    max-height: 54px !important;
    min-height: 54px !important;
  }

 /* hide the scroll arrows and alltabs button */
 .tabs-alltabs-stack,
 tabs.tabbrowser-tabs .scrollbutton-up,
 tabs.tabbrowser-tabs .scrollbutton-down-stack
  {
    display: none !important;
  }

 /* box default */
 tabs.tabbrowser-tabs,
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox,
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox
  {
    display: -moz-box !important;
    padding: 0 !important;
  }
 tabs.tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox > box
  {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    padding: 0 0 0 1px !important;
  }

 /* tab default */
 tab.tabbrowser-tab
  {
    display: -moz-box !important;
    height: 25px !important;
    margin-bottom: 1px !important;
    margin-left: 0 !important;
    margin-right: 1px !important;
    margin-top: 1px !important;
    padding: 0 !important;
    -moz-box-sizing: border-box !important;

    border: 1px solid !important;
    /*
    -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight !important;
    -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow !important;
    -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow !important;
    -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight !important;
    */
    -moz-border-radius: 0 !important;
  }
 tab.tabbrowser-tab .tab-close-button, 
 tab.tabbrowser-tab .tab-image-left, 
 tab.tabbrowser-tab .tab-image-middle, 
 tab.tabbrowser-tab .tab-image-right, 
 tab.tabbrowser-tab .tab-text 
  {
    margin: 0 !important;
    padding: 0 !important;
  }
 tab.tabbrowser-tab .tab-text 
  {
    min-width: 100px !important;
  }

/* Selected tabs */
 tab.tabbrowser-tab[selected="true"]
  {
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 1px !important;
    margin-top: 1px !important;

    border: 2px solid !important;
    -moz-border-bottom-colors: ThreeDLightShadow ThreeDHighlight !important;
    -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow !important;
    -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow !important;
    -moz-border-right-colors: ThreeDLightShadow ThreeDHighlight !important;
    -moz-border-radius: 0 !important;
  }