:root {
  --subtabs-expansion-duration: .3s;
}

/***********
 * General *
 ***********/

.tabs {

  display: flex;
  justify-content: flex-start;

  color: var(--gray-icons);

  box-sizing: border-box;

  white-space: nowrap;
}

.tabs .tab {
  position: relative;
  width: min-content;

  font-family: Inter;
  font-style: normal;
  
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.tabs .tab > div[count]::after {
  margin-left: var(--count-left-margin);
}

.tabs .tab.disabled > div[count]::after {
  display: none;
}

/*body:not(.single-content) .template4 .tabs {
  width: calc( var(--assumed-screen-width) - var(--sidebar-width) );
}*/

.tabs-container {
  position: relative;
  box-sizing: border-box;
  min-height: var(--tabs-height);
  max-height: var(--tabs-height);
}

/* to combat nounderline */
.tabs-container:not(.nounderline) .tabs {
  top: 0px;
}

.tabs::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.tabs .tab:not(.disabled) {
  cursor: pointer;
}

.tabs .tab.disabled {
  color: var(--gray-disabled);
  pointer-events: none;
}

.panes .pane:not(.active) {
  display: none;
}

.tabs-container .tabs .tab.active {
  font-weight: 700;
}


/**********************
 * Default Tabs Style *
 **********************/

.tabs-container.default .tab-group {
  display: contents;
}

.tabs-container.default .tabs {
  position: absolute;

  top: 0px;
  left: 0px;

  overflow-y: hidden;
  overflow-x: auto;

  min-height: var(--tabs-height);
  align-items: center;
}

.tabs-container.default .tabs .tab {
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 18px;

  max-height: var(--tabs-height);
  min-height: var(--tabs-height);
  
  box-sizing: border-box;
}

.tabs-container.default .tabs .tab:not(.disabled):hover {
  color: var(--purple);
}

.tabs-container.default .tabs .tab.active {
  color: var(--black);
  border-bottom: 2px solid var(--purple);
}

.tabs-container.default:not(.nounderline) {
  border-bottom: 1px solid var(--gray-divider);
}

/***************
 * Nested Tabs *
 ***************/

.tabs-container.default .subtabs {
  display: none;
}

.tabs-container.navbar .tab-group .tab-group {
  margin-left: 16px;
}

.tabs-container.navbar .tabs .tab-group .tab-group {
  padding-top: 16px;
}

.tab-group {
  overflow: hidden;
}

.tabs-container.navbar .tabs > .tab-group > .subtabs {
  transition: height var(--subtabs-expansion-duration) ease;
}

.tabs-container.navbar .tabs > .tab-group > .tab:not(.active) ~ .subtabs:not(.show) {
  height: 0px !important;
}

.tabs-container.navbar .tabs .tab-group .tab-group .tab {
  font-weight: 400;
}

.tabs-container.navbar .tabs .tab-group .tab-group .tab:hover,
.tabs-container.navbar .tabs .tab-group .tab-group .tab.active {
  font-weight: 500;
}

/* Third level (and beyond) */
.tabs-container.navbar .tabs .tab-group .tab-group .tab-group .tab {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
}


/********************
 * Navigation Style *
 ********************/
 
.tabs-container.navbar .tabs {
  overflow: hidden;
  flex-direction: column;
}

.tabs-container.navbar .tabs .tab-group:not(:first-child) {
  padding-top: 16px;
}

.tabs-container.navbar .tabs .tab:not(.disabled):hover,
.tabs-container.navbar .tabs .tab.active {
  font-weight: 700;
  color: var(--purple);
}
