.installables-table {
  overflow-x: auto;
}

.md-typeset .installables-table table:not([class]) {
  display: table;
  min-width: 0;
  width: 100%;
}

.md-typeset .installables-table table:not([class]) th,
.md-typeset .installables-table table:not([class]) td {
  min-width: 0;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  white-space: nowrap;
  width: 1px;
}

.installables-table th {
  background-color: var(--md-code-bg-color);
}

.installables-table th[aria-sort="ascending"],
.installables-table th[aria-sort="descending"] {
  box-shadow: inset 0 -0.15rem var(--md-accent-fg-color);
}

.installables-table tbody tr:target {
  background-color: var(--md-typeset-table-color--light);
  box-shadow: 0 0.05rem 0 var(--md-default-bg-color) inset;
}

.md-typeset .installables-table table:not([class]) th:first-child,
.md-typeset .installables-table table:not([class]) .installable-order {
  font-variant-numeric: tabular-nums;
  min-width: 0;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  text-align: right;
  white-space: nowrap;
  width: 1px;
}

.md-typeset .installables-table table:not([class]) .compact-column,
.md-typeset .installables-table table:not([class]) .installable-type,
.md-typeset .installables-table table:not([class]) .installable-support {
  text-align: center;
}

.md-typeset .installables-table table:not([class])
  .installable-description {
  white-space: normal;
  width: auto;
}

.installables-table .type-icon {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  min-width: 1.8em;
}

.installables-table .type-language {
  font-family: var(--md-code-font-family);
  font-size: 0.8em;
}

.installables-table .type-tool {
  font-size: 1.25em;
}

.installables-table th button {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}

.installables-table th button:hover,
.installables-table th button:focus-visible {
  color: var(--md-accent-fg-color);
}

.installables-table .sort-marker {
  color: var(--md-accent-fg-color);
  min-width: 0.8em;
}

.installables-table .support-yes,
.installables-table .support-available,
.installables-table .support-no {
  font-weight: 700;
}

.installables-table .support-yes,
.installables-table .support-available {
  color: #008000;
}

.installables-table .support-no {
  color: #c62828;
}

.installables-table .release-date-missing {
  color: var(--md-default-fg-color--lighter);
}

.installables-table .installable-by {
  text-align: center;
}

.installables-table .installable-by img {
  border-radius: 50%;
  display: block;
  height: 1.25rem;
  margin: auto;
  width: 1.25rem;
}

.installables-header-tooltip {
  background: var(--md-default-fg-color);
  border-radius: 0.2rem;
  color: var(--md-default-bg-color);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 10;
}

.installables-header-tooltip::after {
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.3rem solid var(--md-default-fg-color);
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

[data-md-color-scheme="slate"] .installables-table .support-yes,
[data-md-color-scheme="slate"] .installables-table .support-available {
  color: #66bb6a;
}

[data-md-color-scheme="slate"] .installables-table .support-no {
  color: #ef5350;
}

@media screen and (max-width: 48rem) {
  .installables-table th:nth-child(9),
  .installables-table td:nth-child(9) {
    display: none;
  }
}

@media screen and (max-width: 40rem) {
  .installables-table th:nth-child(n + 8),
  .installables-table td:nth-child(n + 8) {
    display: none;
  }
}

@media screen and (max-width: 32rem) {
  .installables-table th:nth-child(n + 5),
  .installables-table td:nth-child(n + 5) {
    display: none;
  }
}

@media screen and (max-width: 24rem) {
  .installables-table th:nth-child(n + 4),
  .installables-table td:nth-child(n + 4) {
    display: none;
  }
}
