[data-technical-sheets] {
  display: grid;
  gap: 1rem;
}

[data-technical-sheets] [data-tech-content] {
  display: grid;
  gap: 1rem;
}

[data-technical-sheets] .tech-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .8rem;
  align-items: start;
}

[data-technical-sheets] .tech-tabs,
[data-technical-sheets] .tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}

[data-technical-sheets] .tech-tabs [aria-pressed="true"] {
  background: var(--accent, #197b70);
  border-color: transparent;
  color: white;
}

[data-technical-sheets] .tech-cost {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .75rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line, #d6dfe0);
}

[data-technical-sheets] .tech-cost strong {
  white-space: nowrap;
}

[data-technical-sheets] .tech-recipe {
  display: grid;
  gap: .5rem;
}

[data-technical-sheets] .tech-recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 9rem) auto;
  gap: .65rem;
  align-items: end;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line, #d6dfe0);
}

[data-technical-sheets] .tech-recipe-row .field {
  margin: 0;
}

[data-technical-sheets] .tech-recipe-row button {
  justify-self: start;
}

[data-technical-sheets] .tech-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-technical-sheets] .tech-list li {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  align-items: center;
  gap: .5rem .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line, #d6dfe0);
}

[data-technical-sheets] .tech-list span {
  display: block;
  font-size: .875em;
}

[data-technical-sheets] .tech-list button {
  justify-self: start;
}

@media (max-width: 520px) {
  [data-technical-sheets] .tech-recipe-row {
    grid-template-columns: 1fr 1fr;
  }

  [data-technical-sheets] .tech-recipe-row .field:first-child {
    grid-column: 1 / -1;
  }
}

[data-technical-sheets] .tech-paused-list,
[data-technical-sheets] .tech-missing-stock {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-technical-sheets] .tech-paused-product {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  column-gap: 1rem;
  row-gap: .6rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line, #d6dfe0);
  overflow-wrap: anywhere;
}

[data-technical-sheets] .tech-paused-product p {
  margin: .25rem 0;
}

[data-technical-sheets] .tech-pause-actions,
[data-technical-sheets] .tech-pause-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

[data-technical-sheets] .tech-pause-badges {
  margin-top: .4rem;
}

[data-technical-sheets] .tech-pause-actions button {
  min-height: 2.75rem;
}

[data-technical-sheets] .tech-missing-stock {
  font-size: .9rem;
  margin-top: .5rem;
}
