tds-checkbox {
  --tds-checkbox-text: var(--component-checkbox-text-default);
  --tds-checkbox-text-hover: var(--component-checkbox-text-hover);
  --tds-checkbox-background: var(--component-checkbox-background-standard-default);
  --tds-checkbox-background-hover: var(--component-checkbox-background-standard-hover);
  --tds-checkbox-background-selected: var(--component-checkbox-background-selected-default);
  --tds-checkbox-background-selected-hover: var(--component-checkbox-background-selected-hover);
  --tds-checkbox-background-indeterminate: var(--component-checkbox-background-indeterminate-default);
  --tds-checkbox-background-indeterminate-hover: var(--component-checkbox-background-indeterminate-hover);
  --tds-checkbox-border: var(--component-checkbox-border-standard-default);
  --tds-checkbox-border-hover: var(--component-checkbox-border-standard-hover);
  --tds-checkbox-border-selected: var(--component-checkbox-border-selected-default);
  --tds-checkbox-border-selected-hover: var(--component-checkbox-border-selected-hover);
  --tds-checkbox-border-indeterminate: var(--component-checkbox-border-indeterminate-default);
  --tds-checkbox-border-indeterminate-hover: var(--component-checkbox-border-indeterminate-hover);
  --tds-checkbox-indicator: var(--component-checkbox-border-indicator-default);
  --tds-checkbox-indicator-hover: var(--component-checkbox-border-indicator-hover);
  --tds-checkbox-icon-selected: var(--component-checkbox-icon-selected-default);
  --tds-checkbox-icon-selected-hover: var(--component-checkbox-icon-selected-hover);
  --tds-checkbox-icon-indeterminate: var(--component-checkbox-icon-indeterminate-default);
  --tds-checkbox-icon-indeterminate-hover: var(--component-checkbox-icon-indeterminate-hover);
  --tds-checkbox-border-radius: calc(var(--component-checkbox-border-radius-default) * 1px);
  --tds-checkbox-focus-ring-radius: calc(var(--component-checkbox-focus-ring-radius-default) * 1px);
  --tds-checkbox-opacity-disabled: calc(var(--component-checkbox-opacity-disabled) / 100);
  --tds-checkbox-icon-mask: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --tds-checkbox-icon-mask-indeterminate: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%23000'/></svg>");
}

/* Component consuming other components inside shadowDOM needs to import its variables to display correctly */
/* Mixins */
:host {
  box-sizing: border-box;
  display: contents;
}
:host * {
  box-sizing: border-box;
}
:host .tds-table__row,
:host .tds-table__row-extend {
  display: table-row;
  border-bottom: 1px solid var(--tds-table-divider);
  background-color: var(--tds-table-body-row-background);
  transition: background-color 200ms ease;
  color: var(--tds-table-color);
}
:host .tds-table__row--expanded {
  border-bottom: none;
}
:host .tds-table__row--selected {
  background-color: var(--tds-table-body-row-background-selected);
}
:host .tds-table__row:hover,
:host .tds-table__row-extend:hover {
  background-color: var(--tds-table-body-row-background-hover);
}
:host .tds-table__row--selected:hover {
  background-color: var(--tds-table-body-row-background-selected-hover);
}
:host .tds-table__body-cell--checkbox {
  min-width: 48px;
  width: 48px;
  padding: 0;
}
:host .tds-form-label--table {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
:host .tds-table__expand-control-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  cursor: pointer;
  padding: 0 16px;
  position: relative;
}
:host .tds-table__expand-control-container .tds-table__expand-input {
  all: unset;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
}
:host .tds-table__expand-control-container .tds-table__expand-input:focus {
  outline: 2px solid var(--component--focus-ring-color-strong);
  box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
  outline-offset: 1px;
  z-index: 1;
}
:host .tds-table__expand-control-container .tds-expendable-row-icon {
  height: 16px;
  width: 16px;
  transition: transform 200ms ease;
  transform: rotate(0);
}
:host .tds-table__row-expand {
  display: none;
  transition: background-color 200ms ease;
}
:host .tds-table__row-expand--expanded {
  border-bottom: 1px solid var(--tds-table-divider);
}
:host .tds-table__row-expand .tds-table__cell-expand {
  max-width: 1px;
  overflow: auto;
  padding: 16px 16px 16px 66px;
  color: var(--tds-table-color);
}
:host .tds-table__row-expand .tds-table__cell-expand--overflow-visible {
  overflow: visible;
}
:host .tds-table__row-expand .tds-table__cell-expand--overflow-hidden {
  overflow: hidden;
}

:host(.tds-table__row-expand--active) .tds-table__row {
  background-color: var(--tds-table-body-row-background-selected);
}
:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon {
  transform: rotate(180deg);
}
:host(.tds-table__row-expand--active) .tds-table__row-expand {
  background-color: var(--tds-table-body-row-background-selected);
  display: table-row;
}

:host(.tds-table__compact) .tds-table__expand-control-container {
  height: 30px;
}
:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand {
  padding: 8px 16px 8px 66px;
}
:host(.tds-table__compact) .tds-form-label--table {
  height: 32px;
}

:host(.tds-table__row--hidden) {
  display: none;
}

:host(.tds-table--divider) .tds-table__cell-expand {
  border-right: 1px solid var(--tds-table-divider);
}
:host(.tds-table--divider) .tds-table__body-cell--checkbox {
  border-right: 1px solid var(--tds-table-divider);
}