﻿.cd-tabs *,.cd-tabs *:after,.cd-tabs *:before,[role=navtabtools] *,[role=navtabtools] *::after,[role=navtabtools] *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.cd-tabs *::after,.cd-tabs *::before,[role=navtabtools] *::after,[role=navtabtools] *::before{
  content: '';
}
.cd-tabs {
  position: relative;
  width:100%; 
  margin: 0 auto;
  direction: rtl;
  float: right;
      background: #e2e2e2;
      font-family:'yekan';
      font-size:13px;
      font-size:1.3rem;
}
.cd-tabs:after {
  content: "";
  display: table;
  clear: both;
}
.cd-tabs:after {
  /* subtle gradient layer on top right - to indicate it's possible to scroll */
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  width: 50px;
  z-index: 1;
  pointer-events: none;
  background: -webkit-linear-gradient( right , #f8f7ee, rgba(248, 247, 238, 0));
  background: linear-gradient(to left, #f8f7ee, rgba(248, 247, 238, 0));
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.no-cssgradients .cd-tabs:after {
  display: none;
}
.cd-tabs.is-ended:after {
  /* class added in jQuery - remove the gradient layer when it's no longer possible to scroll */
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
[role=navtabtools] {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #f8f7ee;
  box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  
}
@media only screen and (min-width: 768px) {
  .cd-tabs:after {
    display: none;
  }
  
}
@media only screen and (min-width: 960px) {
  [role=navtabtools] {
    position: relative;
    float: right;
    direction:rtl;
    background: transparent;
    box-shadow: none;
  }
}

.cd-tabs-navigation {
  width: 360px;
}
.cd-tabs-navigation:after {
  content: "";
  display: table;
  clear: both;
}
.cd-tabs-navigation li {
  float: right;
  overflow:hidden;
}
.cd-tabs-navigation a {
  position: relative;
  display: block;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
  color: #2a2a2a;
  padding:10px;
    background-color: #93bf96;
}
.no-touch .cd-tabs-navigation a:hover {
  color: #29324e;
  background-color: rgba(192, 208, 220, 0.30);
}
.cd-tabs-navigation a.selected {
  background-color: #ffffff !important;
  box-shadow: inset 0 2px 0 #bc2e2d;
  color: #bc2e2d;
  border-bottom:2px solid #bc2e2d;
}
.cd-tabs-navigation a:before {
  /* icons */
  position: absolute;
  top: 12px;
  left: 50%;
  margin-left: -10px;
  display: inline-block;
  height: 20px;
  width: 20px;
  background-image: url("img/base/vicons.svg");
  background-repeat: no-repeat;
}
.cd-tabs-navigation a[data-content='inbox']:before {
  background-position: 0 0;
}
.cd-tabs-navigation a[data-content='new']:before {
  background-position: -20px 0;
}
.cd-tabs-navigation a[data-content='gallery']:before {
  background-position: -40px 0;
}
.cd-tabs-navigation a[data-content='store']:before {
  background-position: -60px 0;
}
.cd-tabs-navigation a[data-content='settings']:before {
  background-position: -80px 0;
}
.cd-tabs-navigation a[data-content='trash']:before {
  background-position: -100px 0;
}
.cd-tabs-navigation a[data-content='article'].selected:before {
  background-position: 0 -20px;
}
.cd-tabs-navigation a[data-content='new'].selected:before {
  background-position: -20px -20px;
}
.cd-tabs-navigation a[data-content='gallery'].selected:before {
  background-position: -40px -20px;
}
.cd-tabs-navigation a[data-content='store'].selected:before {
  background-position: -60px -20px;
}
.cd-tabs-navigation a[data-content='settings'].selected:before {
  background-position: -80px -20px;
}
.cd-tabs-navigation a[data-content='trash'].selected:before {
  background-position: -100px -20px;
}
 [role=navtabtools].fixed
 {
    position: fixed;
    z-index: 100;
    height: auto;    
    background: #e2e2e2;
    top: 0;   
    -webkit-box-shadow: 0px 10px 10px -6px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 10px 10px -6px rgba(0,0,0,0.5);
    box-shadow: 0px 10px 10px -6px rgba(0,0,0,0.5);
 }
@media only screen and (min-width: 768px) {
  .cd-tabs-navigation {
    /* move the nav to the left on medium sized devices */
    float: right;
  }
  .cd-tabs-navigation a
  {
      padding:10px;
  }
  .cd-tabs-navigation a.selected {
    box-shadow: inset 2px 0 0 #bc2e2d;
  }
  .cd-tabs-navigation a:before {
    top: 35px;
  }
}
@media only screen and (min-width: 960px) {
  .cd-tabs-navigation {
    /* tabbed on top on big devices */
    width: auto;
    background-color: #f8f7ee;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  }
  .cd-tabs-navigation a {
    height: 60px;
    line-height: 60px;
    width: auto;
    text-align: right;
    font-size: 13px;
    font-size: 1.3rem;
    padding: 0 4.9em 0 2.8em;
        border-left: 1px solid #e3e3e3;
    border-top: 1px solid #E0E0E0;
  }
  .cd-tabs-navigation a.selected {
    box-shadow: inset 0 2px 0 #bc2e2d;
  }
  .cd-tabs-navigation a:before {
    top: 50%;
    margin-top: -10px;
    margin-right: 0;
    right: 38px;
  }
}

.cd-tabs-content {
  background: #ffffff;
  float:right;
  width:100%;
}
.cd-tabs-content li {
  display: none;
  padding: 1.4em;
}
.cd-tabs-content li.selected {
  display: block;
  -webkit-animation: cd-fade-in 0.5s;
  -moz-animation: cd-fade-in 0.5s;
  animation: cd-fade-in 0.5s;
  float:right;
}
.cd-tabs-content li p {
    font-family:'IRANSans';
  font-size: 13px;
  font-size: 1.3rem;
  line-height: 31px;
  color: #5B6071;
}
@media only screen and (min-width: 768px) {
  .cd-tabs-content {
    min-height: 480px;
  }
  .cd-tabs-content li {
    padding: 2em 2em 2em 7em;
  }
}
@media only screen and (min-width: 960px) {
  .cd-tabs-content {
    min-height: 0;
  }
  .cd-tabs-content li {
    padding: 3em;
  }
  .cd-tabs-content li p {
    font-size: 15px;
    font-size: 1.5rem;
  }
}

@-webkit-keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}