:host {
  box-sizing: border-box;
  position: relative;
}
:host * {
  box-sizing: border-box;
}
:host ::slotted(*) {
  all: unset;
  min-width: 142px;
  display: block;
  width: calc(100% - 32px);
  /* !important is needed here to prevent this from being overwritten by our CSS-reset. */
  font: var(--tds-headline-07) !important;
  letter-spacing: var(--tds-headline-07-ls) !important;
  cursor: pointer;
  padding: 16px;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  outline: none;
  border: none;
}
:host ::slotted(*:focus-within)::before {
  outline: 2px solid var(--tds-focus-outline-color);
  box-shadow: 0 0 0 1px var(--tds-white);
  outline-offset: 1px;
  z-index: 1;
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  right: 3px;
}
:host div:not(.selected) {
  background-color: var(--tds-folder-tab-background);
  position: relative;
}
:host div:not(.selected)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--tds-folder-tab-divider-color);
}
:host div:not(.selected) ::slotted(*) {
  border-top: 2px solid transparent;
  color: var(--tds-folder-tab-item-color);
}
:host div:not(.selected):hover:not(.disabled) {
  background-color: var(--tds-folder-tab-background-hover);
  cursor: pointer;
}
:host div:not(.selected):hover:not(.disabled) ::slotted(*) {
  border-top: 2px solid var(--tds-folder-tab-top-border-hover);
  color: var(--tds-folder-tab-color);
}
:host div:not(.selected).disabled {
  background-color: var(--tds-folder-tab-item-background-disabled);
}
:host div:not(.selected).disabled ::slotted(*) {
  color: var(--tds-folder-tab-item-color-disabled);
}
:host div:not(.selected).disabled ::slotted(*:focus-visible) {
  outline: none;
}
:host div:not(.selected).disabled ::slotted(*:hover) {
  cursor: not-allowed;
}
:host div:not(.selected).disabled ::slotted(*::after) {
  content: none;
}
:host .selected {
  background-color: var(--tds-folder-tab-background-selected);
  border-top: 2px solid var(--tds-folder-tab-border-selected);
}
:host .selected::after {
  content: " ";
  background-color: var(--tds-folder-tab-divider-color);
  width: 1px;
  top: 0;
  bottom: 0;
  right: -1px;
  display: block;
  position: absolute;
  z-index: 1;
}
:host .selected ::slotted(*) {
  color: var(--tds-folder-tab-color);
}
:host .selected:hover:not(.disabled) {
  background-color: var(--tds-folder-tab-background-hover);
  cursor: pointer;
}
:host .selected:hover:not(.disabled) ::slotted(*) {
  color: var(--tds-folder-tab-color);
}

:host(.first) ::slotted(*) {
  border-left-color: transparent;
}
:host(.first) .selected {
  border-left: none;
}