/* Public stock status labels. Quantities are never shown. */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.stock-dot {
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}

/* Slightly darker than the brief's #1a7f37 / #b35900 / #c62828 so
   the labels meet WCAG AA on gray row backgrounds and yellow hover. */
.stock-status--in { color: #157033; }
.stock-status--low { color: #9a4a00; }
.stock-status--check { color: #be2020; }

/* Drawing-page cards (no side pane): status beside the part number. */
.part-head .stock-status {
  margin-right: auto;
  font-size: 13px;
}

/* Side pane ("Showing part") — table pages and Part Finder */
.part-name-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 2px;
}

.part-name-wrap .part-name {
  margin-top: 0;
}

.stock-status-pane {
  display: inline-flex;
  align-items: center;
}

.stock-status-pane[hidden] {
  display: none;
}

.stock-status-pane .stock-status {
  font-size: 14px;
}

@media (max-width: 860px) {
  .stock-status {
    font-size: 11px;
    gap: 5px;
  }
  .part-head .stock-status {
    font-size: 12px;
  }
  .stock-status-pane .stock-status {
    font-size: 13px;
  }
}
