/* Spec Table order form. Uses the client area template's colours (--accent,
   --line, --surface, --ink, --muted), so it fits whichever template is chosen. */
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.st-head .page-title { margin: 0 0 4px; }
.st-head .lead { margin: 0; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; }
.st-terms { display: inline-flex; border: 1px solid var(--line); }
.st-term { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .875rem; padding: 7px 14px; cursor: pointer; }
.st-term:last-child { border-right: 0; }
.st-term.on { background: var(--accent); color: var(--accent-ink, #fff); }
.st-term:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-filter { margin-left: auto; }
.st-filter input { min-width: 220px; }
.st-wrap { border: 1px solid var(--line); background: var(--surface); overflow-x: auto; margin-bottom: 24px; }
.st-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.st-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, var(--surface)); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.st-table thead th[data-sort] { cursor: pointer; user-select: none; }
.st-table thead th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; opacity: .35; vertical-align: -2px; }
.st-table thead th[aria-sort="ascending"]::after { border-top-color: transparent; border-bottom-color: currentColor; vertical-align: 2px; opacity: 1; }
.st-table thead th[aria-sort="descending"]::after { opacity: 1; }
.st-table tbody tr:hover { background: var(--accent-soft, rgba(0, 0, 0, .03)); }
.st-table tbody tr:last-child > * { border-bottom: 0; }
.st-table tbody th { font-weight: 600; min-width: 160px; }
.st-name { display: block; }
.st-flag, .st-stock { display: inline-block; margin-top: 4px; padding: 1px 6px; font-size: .7rem; font-weight: 600; border: 1px solid currentColor; }
.st-flag { color: var(--accent); }
.st-stock { color: var(--muted); margin-left: 4px; }
.st-tag { display: block; margin-top: 4px; font-weight: 400; font-size: .8rem; color: var(--muted); }
.st-featured > th:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.st-out { color: var(--muted); }
.st-also { font-size: .8rem; color: var(--muted); min-width: 140px; }
.st-price-h, .st-price { text-align: right !important; white-space: nowrap; }
.st-price strong { font-size: 1.05rem; color: var(--ink); }
.st-price small { display: block; color: var(--muted); }
.st-price .st-setup { font-size: .72rem; }
.st-buy { text-align: right; white-space: nowrap; }
.st-none { padding: 18px; margin: 0; }
.st-table tr.hidden, .st-amt.hidden, .st-none.hidden { display: none; }

@media (max-width: 760px) {
  .st-filter { margin-left: 0; width: 100%; }
  .st-filter input { width: 100%; min-width: 0; }
  .st-table thead { display: none; }
  .st-table, .st-table tbody, .st-table tr, .st-table th, .st-table td { display: block; width: 100%; }
  .st-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 8px 12px; }
  .st-table tbody tr:last-child { border-bottom: 0; }
  .st-table tbody th, .st-table td { border: 0; padding: 0; }
  .st-table tbody th { grid-column: 1 / -1; }
  .st-featured > th:first-child { box-shadow: none; }
  .st-table tbody tr.st-featured { box-shadow: inset 4px 0 0 var(--accent); }
  .st-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--muted); }
  .st-price, .st-buy { text-align: left !important; }
  .st-buy { grid-column: 1 / -1; }
  .st-buy .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { .st-table tbody tr { transition: background-color .12s; } }
.st-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-imgs img { max-height: 28px; width: auto; }
