@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

@-moz-document url(chrome://browser/content/browser.xul) {

  #nav-bar {
    position: relative !important;
    margin-top: 34px !important;
  }

  .tabs-alltabs-button {
    -moz-appearance: button !important;
    margin: 2px !important;
    max-height: 34px !important;
    max-width: 24px !important;    
  }
  .tabs-newtab-button {
    -moz-appearance: button !important;
    margin: 2px !important;
    max-height: 34px !important;
    min-width: 34px !important;
  }

  #main-window .tabbrowser-tabs .tabs-bottom {
    -moz-appearance: none !important;
    margin-bottom: 0px !important;
    min-height: 0px !important;
    border: none !important;
  }

  #main-window .tabbrowser-strip {
    margin-left: -3px !important;
    width: 100% !important;
    height: 32px !important;
    -moz-appearance: textfield !important;
  }

  .tabbrowser-tabs,
  #main-window .tabbrowser-strip {
    position: fixed !important;
    top: 24px !important;
  }

  tab {
    padding: 0 !important;
    margin: 2px !important;
    min-width: 192px !important;
    min-height: 34px !important;
  }

  tab > .tab-middle{
    padding: 1px 4px 2px !important;
  }

  tab:not([selected="true"]) {
    -moz-appearance: button !important;
  }

  tab:not([selected="true"]) > .tab-middle {
    /* you can change the background color of active tab here */
  }

  tab[selected="true"] {
    -moz-appearance: textfield !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  tab[selected="true"] > .tab-middle {
    background-color: #efeee9;
  }

  tab:focus > .tab-middle {
    outline: none !important;
  }

  #main-window .tabbrowser-tabs {
        background-image: none !important;
        background: transparent !important;
	-moz-appearance: none !important;
  }

  #main-window .tabbrowser-tabs .tabs-bottom {
        background: transparent !important;
  }

  .tabs-closebutton {
        -moz-appearance: button !important;
        margin: 2px !important;
    min-width: 34px !important;
  }

}