﻿/*winotabs general*/
.wino-tabs {
  width: 100%;
}

.wino-tabs-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /*padding: 0px 16px 0px 16px;*/
  color: var(--main-color-3);
}

.wino-tabs-item .tabcontent {
  border-radius: 8px;
  background: unset;
  height: 40px;
  display: flex;
  align-items: center;
  /*justify-content: center;*/
  cursor: pointer;
  user-select: none;
}

.wino-tabs .tabicon.firstlineicon svg {
  width: 14px; /*eigentlich 15, aber zum zentrieren is es mit 14 schöner. height ebenso*/
  height: 14px;
  position: absolute;
}

.wino-tabs .tabicon.firstlineicon {
  margin-right: 4px;
  background-color: #fff;
  border-radius: 4px;
  padding: 2px;
  width: 18px;
  height: 18px;
}

.wino-tabs .tabicon svg {
  width: 24px;
  height: 24px;
}

.wino-tabs-item .tabcontent .tabicon svg *:not(.keepcolor) {
  stroke: var(--main-color-3);
}

.tabtext {
  /*white-space: nowrap;*/
  overflow: hidden;
  line-height: 15px;
  /*text-overflow: ellipsis;*/
}

.mainicontab {
  position: relative;
  display: flex;
}

.mainicontabborder {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
}

.wino-tabs-item:not(.active):hover > .tabcontent {
  background-image: linear-gradient(0deg, #6C7A84, var(--main-color-2));
}

.tabbar > .tabgroup {
  align-items: end;
}

.tabbar > .tabgroup.dynamic {
  -ms-overflow-style: none;
  scrollbar-width: none; /*muss deaktiviert werden für custom scrollbar*/
  /*position: relative;*/
}

.hiddentabscontainer {
  position: absolute;
  z-index: 3;
  height: 64px;
  width: 64px;
  display: none;
  background: var(--main-color-1);
}

.tabgroup.dynamic > .hiddentabscontainer:not([data-tabshiddencount="0"]) {
  display: flex;
}

.hiddentabslabel {
  color: var(--main-color-3);
  background-image: linear-gradient(0deg, var(--main-color-2), var(--main-color-1));
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
}

.hiddentabslabel:hover {
  box-shadow: 0 0 8px 3px rgb(255, 255, 255, 0.7);
}

.hiddentabscontainer.before {
  background: linear-gradient(270deg, rgba(49, 53, 55, 0) 0%, rgba(49, 53, 55, 1) 70%, rgba(49, 53, 55, 1) 100%);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.hiddentabscontainer.after {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  right: 120px;
  justify-content: end;
  padding-right: 12px;
  background: linear-gradient(90deg, rgba(49, 53, 55, 0) 0%, rgba(49, 53, 55, 1) 70%, rgba(49, 53, 55, 1) 100%);
}

/*.tabbar > .tabgroup.dynamic::before, .tabbar > .tabgroup.dynamic::after {
  color: #fff;
  position: sticky;
  background-image: linear-gradient(0deg, var(--main-color-2), var(--main-color-1));
  width: 28px;
  height: 28px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  display: none;
  z-index: 2;
}*/


/*.tabbar > .tabgroup.dynamic::before {
  content: "+"attr(data-hiddenleft);
  left: 0px;
  box-shadow: -14px 0px 2px 20px var(--main-color-1);
}

.tabbar > .tabgroup.dynamic:not([data-hiddenleft="0"])::before {
  display: flex;
}

.tabbar > .tabgroup.dynamic::after {
  content: "+"attr(data-hiddenright);
  right: 10px;
  box-shadow: 14px 0px 2px 20px var(--main-color-1);
}

.tabbar > .tabgroup.dynamic:not([data-hiddenright="0"])::after {
  display: flex;
}*/
.tabbar > .tabgroup > ul {
  display: flex;
  margin: unset;
  padding: unset;
}

.tabbar > .tabgroup > ul > li {
  padding: 0px 10px;
  list-style: none;
  position: relative;
}

.tabbuttonscontainer {
  height: 100%;
  display: flex;
  align-items: center;
}

.tabmainicon {
  margin-right: 10px;
}

/*tab0 specific*/
#tab0 > .tabbar {
  background-color: var(--main-color-1);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  height: 64px;
  padding: 0px 20px 0px 20px;
}

#tab0 > .wino-tabs-content {
  background-color: var(--main-color-2);
  border-end-end-radius: var(--page-content-radius);
  border-end-start-radius: var(--page-content-radius);
}

#tab0 > .tabbar > .tabgroup.dynamic > ul > li:not(:last-child):not(:has(.wino-tabs-item.active)):not(:has(+ li > .wino-tabs-item.active))::after {
  content: var(--icon-tab-separator);
  position: absolute;
  top: 12px;
  right: 0px;
  z-index: 1;
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item {
  height: 57px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  position: relative;
  padding: 16px 0px 20px 0px;
  /*padding: 16px 20px 20px 14px;*/
}

#tab0 > .tabbar > .tabgroup:not(.fixedleft) > ul > li > .wino-tabs-item {
  width: 220px;
}

#tab0 > .tabbar > .tabgroup:not(.fixedleft) > ul > li > .wino-tabs-item .tabcontent {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

#tab0 > .tabbar > .tabgroup:not(.fixedleft):not(.fixedright) > ul > li > .wino-tabs-item .tabcontent .tabtext {
  display: flex;
  flex-grow: 1;
  -webkit-mask-image: linear-gradient(to left, transparent, black 28px);
  mask-image: linear-gradient(to left, transparent, black 28px);
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item .tabcontent .tabtext {
  font-size: 13px;
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item .tabcontent:has(.closetab) {
  padding-right: 14px; /*6px weniger als im design, wegen hover state von closebutton*/
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item .tabcontent:has(.mainicontab) {
  padding: unset;
}

#tab0 > .tabbar > .tabgroup > ul > li >.wino-tabs-item.active::before {
  content: var(--icon-wave-up);
  position: absolute;
  left: -10px;
  bottom: -6px;
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item.active::after {
  content: var(--icon-wave-down);
  position: absolute;
  right: -10px;
  bottom: -6px;
}

#tab0 > .tabbar >.tabgroup.fixedleft > ul > li > .wino-tabs-item {
  width: 60px;
  height: 61px;
}

#tab0 > .tabbar > .tabgroup.fixedleft > ul > li > .wino-tabs-item .tabcontent {
  height: unset;
}

#tab0 .tabgroup.fixedleft .wino-tabs-item:not(.active):hover > .tabcontent {
  background-image: unset;
}

#tab0 .tabgroup.fixedleft .wino-tabs-item:not(.active):hover .mainicontabborder {
  box-shadow: 0 0 10px 5px rgb(255, 255, 255, 0.7);
}

#tab0 > .tabbar > .tabgroup > ul > li > .wino-tabs-item.active {
  background-image: linear-gradient(0deg, var(--main-color-2), #393F43);
}

#tab0 > .tabbar > .tabgroup.fixedleft > ul > li {
  padding-left: 2px;
  padding-right: 12px;
}

#tab0.wino-tabs > .tabbar > .tabgroup > ul > li:has(.wino-tabs-item.active) {
  overflow: hidden;
}

#tab0.wino-tabs > .tabbar > .tabgroup:first-child > ul > li:first-child:has(.wino-tabs-item.active) {
  overflow: unset;
}

#tab0 .fixedright .main-search {
  z-index: 4;
}

/*tab1 specific*/
.tab1 {
  background-color: var(--main-color-1);
  border-end-end-radius: var(--page-content-radius);
  border-end-start-radius: var(--page-content-radius);
}

.tab1 .wino-tabs-item {
  height: 50px;
  align-items: unset;
  padding-top: 4px;
  padding-bottom: 6px;
  padding-left: 8px;
  padding-right: 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.tab1 > .tabbar {
  height: 56px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding-left: 8px;
  padding-right: 8px;
  background-color: var(--main-color-2);
}

.tab1 .wino-tabs-item.active {
  /*background-image: linear-gradient(0deg, #6C7A84, var(--main-color-2));*/
  background-image: linear-gradient(0deg, var(--background-color-2), var(--main-color-3));
  color: var(--main-color-1);
}

.tab1 .wino-tabs-item.active::before {
  content: var(--icon-wave-up-light);
  position: absolute;
  left: 0px;
  bottom: -6px;
}

.tab1 .wino-tabs-item.active::after {
  content: var(--icon-wave-down-light);
  position: absolute;
  right: 0px;
  bottom: -6px;
}

.wino-tabs.tab1 .tabicon svg *:not(.keepcolor) {
  stroke: var(--main-color-3);
}

.wino-tabs.tab1 .wino-tabs-item.active .tabicon svg *:not(.keepcolor) {
  stroke: var(--main-color-1);
}

/*tab1 MAIN specific*/
.tab1:not(.crm) > .tabbar > .tabgroup > ul > li > .wino-tabs-item {
  font-family: var(--tab1-font-family);
  font-size: 16px;
}

#apptabs .wino-tabs-item.active::before, #apptabs .wino-tabs-item.active::after {
  bottom: -7px;
}

.tab1:not(.crm) .wino-tabs-item .tabcontent {
  align-items: center;
  height: 40px;
  width: unset;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
}

#apptabs.wino-tabs > .tabbar > .tabgroup > ul > li:has(.wino-tabs-item.active) {
  overflow: hidden;
}

/*tab1 CRM specific*/
#crmtabs > .tabbar >.tabgroup.fixedleft .wino-tabs-item:not(.active) > .tabcontent {
  background-color: var(--main-color-1);
}

#crmtabs > .tabbar >.tabgroup.fixedleft > ul > li {
  padding: 0px 3px;
}

#crmtabs > .tabbar >.tabgroup.fixedleft > ul > li:first-child {
  padding-left: 8px
}

#crmtabs.tab1 > .tabbar > .tabgroup.fixedleft > ul > li:first-child > .wino-tabs-item.active::before {
  left: -2px;
}

#crmtabs .wino-tabs-item {
  padding-left: 0px;
  padding-right: 0px;
}

#crmtabs .wino-tabs-item .tabcontent {
  padding-left: 12px;
  padding-right: 12px;
}

#crmtabs > .tabbar > .tabgroup.fixedleft .wino-tabs-item:not(.active):hover > .tabcontent {
  background-color: var(--main-color-3);
  color: var(--main-color-1);
}

#crmtabs .tabgroup.fixedleft .wino-tabs-item.active::before {
  left: -7px;
}

#crmtabs .tabgroup.fixedleft .wino-tabs-item.active::after {
  right: -7px;
}

/*tab2 specific*/
.tab2 {
  background-color: var(--background-color-2);
  border-end-end-radius: var(--page-content-radius);
  border-end-start-radius: var(--page-content-radius);
}

.tab2 > .tabbar {
  padding-left: 24px;
  padding-right: 24px;
  background-color: var(--background-color-2);
}

.tab2 > .tabbar > .tabgroup > ul > li {
  padding: 0px 6px;
}

.tab2 .wino-tabs-item {
  background-color: var(--background-color-1);
  border-radius: 24px;
  padding: 4px 20px;
  align-items: center;
  justify-content: center;
  font-size: var(--main-font-size);
  height: 36px;
  background-image: unset;
  color: var(--main-color-2);
}

.tab2 .wino-tabs-item.active {
  background-color: var(--main-color-3);
  background-image: unset;
}

.tab2.wino-tabs .wino-tabs-item .tabicon svg *:not(.keepcolor) {
  stroke: var(--main-color-1);
}

.tab2 .wino-tabs-item:hover {
  background-color: var(--main-color-3);
}

/*.tab2 .wino-tabs-item:not(.active):hover > .tabcontent {*/
.tab2 .wino-tabs-item:hover > .tabcontent {
  background-image: unset;
}

.tab2 > .tabbar .wino-tabs-item > .tabcontent {
  gap: 10px;
  padding: 0px;
}

.tab2 .tabbar {
  height: 56px;
  align-items: center;
}

  .tab2 > .wino-tabs-content {
    background-color: var(--background-color-2);
    border-radius: var(--page-content-radius);
    background-color: var(--main-color-3);
    background-color: #F5F8FA; /* bssd: keine Ahnung warum do scho 2 background-colors drin san, i moch oafoch no oane ;-) */
    height: calc(100vh - 220px);
    overflow: auto;
    padding: 16px 16px 16px 24px;
    gap: 12px;
  }

/*tabscontent container*/
.wino-tabs-content {
  display: flex;
  border-end-end-radius: var(--page-content-radius);
  border-end-start-radius: var(--page-content-radius);
}