/*
  Contains spacing variables for the layout
*/
/* Typography Usage mixins */
:host {
  display: block;
}
:host .component ::slotted(a),
:host .component ::slotted(button) {
  all: unset;
  box-sizing: border-box;
  height: var(--tds-side-menu-item-height);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--tds-side-menu-item-horizontal-gap);
  padding: 0 var(--tds-side-menu-item-horizontal-padding);
  border: none;
  border-radius: var(--tds-side-menu-item-border-radius);
  background-color: var(--tds-side-menu-item-background);
  font-family: var(--type-system-title-01-font-family);
  font-size: calc(var(--type-system-title-01-font-size) * 1px);
  line-height: calc(var(--type-system-title-01-line-height) * 1px);
  font-weight: var(--type-system-title-01-font-weight);
  letter-spacing: calc(var(--type-system-title-01-letter-spacing) * 1px);
  color: var(--tds-side-menu-item-text-color);
  cursor: pointer;
}
:host .component ::slotted(tds-side-menu-user), :host .component-has-user ::slotted(button) {
  all: unset;
  box-sizing: border-box;
  height: var(--tds-side-menu-item-height);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--tds-side-menu-item-horizontal-padding);
  border: none;
  background-color: var(--tds-side-menu-item-background);
  font-family: var(--type-system-title-01-font-family);
  font-size: calc(var(--type-system-title-01-font-size) * 1px);
  line-height: calc(var(--type-system-title-01-line-height) * 1px);
  font-weight: var(--type-system-title-01-font-weight);
  letter-spacing: calc(var(--type-system-title-01-letter-spacing) * 1px);
  color: var(--tds-side-menu-item-text-color);
  cursor: pointer;
}
:host .component ::slotted(a:focus-visible),
:host .component ::slotted(button:focus-visible) {
  outline: 2px solid var(--component--focus-ring-color-strong);
  box-shadow: inset 0 0 0 3px var(--component--focus-ring-color-discrete);
  outline-offset: -2px;
  z-index: 1;
}
:host .component:hover ::slotted(a),
:host .component:hover ::slotted(button),
:host .component:hover ::slotted(tds-side-menu-user) {
  background-color: var(--tds-side-menu-item-background-hover);
  position: relative;
}
:host .component:hover ::slotted(a:focus-visible),
:host .component:hover ::slotted(button:focus-visible),
:host .component:hover ::slotted(tds-side-menu-user:focus-visible) {
  background-color: var(--tds-side-menu-item-background-hover);
  position: relative;
}
:host .component:active ::slotted(a),
:host .component:active ::slotted(button),
:host .component:active ::slotted(tds-side-menu-user) {
  background-color: var(--tds-side-menu-item-background-active);
  position: relative;
}
:host .component:active ::slotted(a:focus-visible),
:host .component:active ::slotted(button:focus-visible),
:host .component:active ::slotted(tds-side-menu-user:focus-visible) {
  background-color: var(--tds-side-menu-item-background-active);
  position: relative;
}
:host .component-collapsed ::slotted(a),
:host .component-collapsed ::slotted(button) {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
:host .component-selected:not(:host .component-active) ::slotted(a),
:host .component-selected:not(:host .component-active) ::slotted(button),
:host .component-selected:not(:host .component-active) ::slotted(tds-side-menu-user) {
  background-color: var(--tds-side-menu-item-background-selected);
  position: relative;
}
:host .component-selected:not(:host .component-active) ::slotted(a)::before,
:host .component-selected:not(:host .component-active) ::slotted(button)::before,
:host .component-selected:not(:host .component-active) ::slotted(tds-side-menu-user)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-top-left-radius: var(--tds-side-menu-item-border-radius);
  border-bottom-left-radius: var(--tds-side-menu-item-border-radius);
  background-color: var(--tds-side-menu-item-border-left-color-selected);
}
:host .component-selected:not(:host .component-active) ::slotted(a:focus-visible),
:host .component-selected:not(:host .component-active) ::slotted(button:focus-visible),
:host .component-selected:not(:host .component-active) ::slotted(tds-side-menu-user:focus-visible) {
  background-color: var(--tds-side-menu-item-background-selected);
  position: relative;
}
:host .component-selected:not(:host .component-active) ::slotted(a:focus-visible)::before,
:host .component-selected:not(:host .component-active) ::slotted(button:focus-visible)::before,
:host .component-selected:not(:host .component-active) ::slotted(tds-side-menu-user:focus-visible)::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: calc(100% - 6px);
  border-top-left-radius: var(--tds-side-menu-item-border-radius);
  border-bottom-left-radius: var(--tds-side-menu-item-border-radius);
  background-color: var(--tds-side-menu-item-border-left-color-selected);
}

@media (min-width: 992px) {
  :host .component.component-collapsed ::slotted(a),
  :host .component.component-collapsed ::slotted(button) {
    color: rgba(90, 90, 90, 0);
    overflow: hidden;
  }
}