/* top area around the tab strip */
.x-tab-panel-noborder {
  background-color: $gainsboro;
  border: 1px solid #E2E3DE;
  margin: 20px 0 10px;
  overflow: visible;

  #modx-leftbar & {
    background-color: $gainsboro;
  }

  /* background behind a button bar */
  .x-tab-panel-body-noborder {
    background-color: $white;

    #modx-leftbar & {
      background-color: $white;
    }
  }
}

/* main tabs */
.x-tab-panel-header,
.x-tab-panel-footer {
  border: 0;
}

ul.x-tab-strip-top {
  border-bottom-color: $white;
  margin:0; /* was -1px */
  width: auto;
}


.x-tab-panel-header-plain {
  background-color: #f7f8f3;
}

.x-tab-panel-header-plain .x-tab-strip-spacer,
.x-tab-panel-footer-plain .x-tab-strip-spacer {
  background-color: #fff;
  border-width: 1px 1px 0 1px !important;
  border: 1px solid #E2E3DE;
  height: 3px;
  margin: -2px 0 0 0; /* was -2px 0 0 -1px */
}

.x-tab-panel-header,
.x-tab-strip {
  /*padding-left: 1px;*/
  padding-left:0;
}

.x-tab-strip li {
  border-width: 1px 1px 0;
  border: 1px solid transparent;
  color: $tabInactiveText;
  cursor: pointer;
  font-size: 13px;
  line-height: 2.2;
  margin: 1px 0 1px 2px;
  padding: 0 15px;

  &:hover {
    color: $tabHoverText;
  }

  &.x-tab-strip-active {
    color: $tabText;
    background-color: #fff;
    box-shadow: 0 -3px 0 $colorSplash, -1px 0 0 $borderColor, 1px 0 0 $borderColor;
    cursor: default;
    margin: 0 0 0 2px;
    padding-bottom: 2px;
  }
  &:first-of-type {
    &.x-tab-strip-active {
      box-shadow: 0 -3px 0 $colorSplash, -1px 0 0 transparent, 1px 0 0 $borderColor;
    }
  }
}

.x-tab-strip-wrap,
.x-tab-panel-header,
.x-tab-panel {
  overflow: visible;
}

.x-tab-strip-closable {
  padding-right: 15px !important;
}

.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close {
  right: 8px;
  top: 11px;
  background-image: url(../images/modx-theme/tabs/tab-close.gif);
}

ul.x-tab-strip-top li:first-child {
  /*margin-left: -1px*/;
  margin-left:0;
}

ul.x-tab-strip-bottom {
  background-color: #f4f4f4;
  border-top-color: #dfdfdf;

  & .x-tab-right {
    background-image: url(../images/modx-theme/tabs/tab-btm-inactive-right-bg.gif);
  
    & .x-tab-right {
      background-image: url(../images/modx-theme/tabs/tab-btm-right-bg.gif);
    }
    & .x-tab-left {
      background-image: url(../images/modx-theme/tabs/tab-btm-left-bg.gif);
    }
  }

  & .x-tab-left {
    background-image: url(../images/modx-theme/tabs/tab-btm-inactive-left-bg.gif);
  }

}

.x-tab-panel-body {
  background-color: $white;
  border: 1px solid $borderColor;
  border-radius: 0 0 4px 4px;
}

.x-tab-panel-body-top {
  border-top: 0 none;
}

.x-tab-panel-body-bottom {
  border-bottom: 0 none;
}

.x-tab-scroller-left {
  background-image: url(../images/modx-theme/tabs/scroll-left.gif);
  border-bottom-color: #dfdfdf;
}

.x-tab-scroller-left-over {
  background-position: 0 0;
}

.x-tab-scroller-left-disabled {
  -khtml-opacity: 0.5;
  -moz-opacity: 0.5;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  background-position: -18px 0;
  cursor: default;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
  opacity: 0.5;
}

.x-tab-scroller-right {
  background-image: url(../images/modx-theme/tabs/scroll-right.gif);
  border-bottom-color: #dfdfdf;
}

.x-tab-panel-bbar .x-toolbar,
.x-tab-panel-tbar .x-toolbar {
  border-color: #dfdfdf;
}

.x-tab-panel-body-noborder .x-panel-body-noheader:first-child {
  border-top: 0 none;
}

.x-tab-panel-bbar-noborder .x-toolbar {
  border-top-color: transparent;
}

.x-tab-panel-tbar-noborder .x-toolbar {
  border-bottom-color: transparent;
}



/* vertical tabs */
.vertical-tabs-panel {
  background: url("../images/style/vtabs-bg.png") repeat-y scroll left 0 transparent !important;

  &.wrapped {
    border: 1px solid #e0e0e0;
  }
}

.vertical-tabs-header {
  background-color: transparent !important;
  float: left;
  margin-left: 0;
  padding: 13px 0 !important;
  width: 150px !important;
  margin-left:0;
  & ul {
    border-top: 1px solid transparent;
    width: auto;
    border-bottom-color:transparent;
  }

  & .vertical-tabs-header li {
    background: none repeat scroll 0 0 transparent !important;
    border-color: transparent transparent #E0E0E0 transparent !important;
    border-radius: 0 !important;
    border-style: none none solid none !important;
    border-width: 1px 1px 1px 0 !important;
    float: none !important;
    margin: 0 !important;
    overflow: hidden;
    padding: 5px !important;
    white-space: nowrap;
    color: #555;
    line-height: 1.3;
    text-shadow: 0 1px 0 #fff;
    white-space: normal;

    &:first-child {
      border-top: 0 none !important;
    }
  }
  h4 {
    margin-left:15px;
  }
}

.vertical-tabs-header ul.x-tab-strip-top li.x-tab-strip-active {
  background: $white !important;
  /*border-width: 0 0 1px;*/
  color: #555;
  /*padding-bottom: 5px !important;*/
  text-shadow: none;
}

.vertical-tabs-header .x-tab-edge {
  height: 0;
}

.vertical-tabs-header .x-tab-strip-spacer {
  display: none;
}

.vertical-tabs-body {
  padding: 20px 30px 20px 25px;
}
