:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef1f5;
}
* { box-sizing: border-box; }
body { margin: 0; background: #eef1f5; }
button, input { font: inherit; }
.shell { max-width: 1180px; margin: 0 auto; padding: 28px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
h1, h2 { margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #667085; margin-bottom: 4px; }
.status-pill { background: #e9f8ee; color: #17683a; border: 1px solid #bfe6cc; border-radius: 999px; padding: 8px 12px; font-weight: 700; }
.panel { position: relative; background: white; border: 1px solid #d8dee8; border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(35, 46, 67, .05); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.search-row { display: flex; gap: 14px; align-items: end; }
.grow { flex: 1; }
.qty-wrap { width: 120px; }
.field-wrap { position: relative; }
label { display: block; font-size: 13px; font-weight: 700; color: #4d5768; margin-bottom: 7px; }
input { width: 100%; border: 1px solid #cbd3df; border-radius: 10px; padding: 12px 13px; color: #182033; background: white; outline: none; }
input:focus { border-color: #6b7a90; box-shadow: 0 0 0 3px rgba(99, 113, 136, .12); }
.results { position: absolute; z-index: 20; width: 100%; top: calc(100% + 6px); left: 0; background: white; border: 1px solid #ccd4df; border-radius: 10px; max-height: 320px; overflow: auto; box-shadow: 0 12px 32px rgba(25, 35, 52, .16); }
.result-item { padding: 11px 12px; cursor: pointer; border-bottom: 1px solid #edf0f4; }
.result-item:last-child { border-bottom: 0; }
.result-item:hover { background: #f5f7fa; }
.result-title { font-weight: 800; }
.result-sub { color: #6b7483; font-size: 13px; margin-top: 3px; }
.hidden { display: none !important; }
.selected-note { min-height: 20px; margin-top: 7px; font-size: 13px; color: #526071; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.product-card { margin-top: 16px; border: 1px solid #dbe1ea; border-radius: 12px; padding: 16px; background: #fafbfc; }
.product-main { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.sku { font-size: 18px; font-weight: 850; }
.product-description { color: #5b6574; margin-top: 3px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.metrics > div { background: white; border: 1px solid #e0e5ec; border-radius: 10px; padding: 11px; }
.metrics span { display: block; font-size: 12px; color: #6f7988; margin-bottom: 4px; }
.metrics strong { font-size: 17px; }
.primary { border: none; background: #172033; color: white; font-weight: 800; padding: 11px 15px; border-radius: 10px; cursor: pointer; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.large { padding: 13px 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid #e8ecf1; text-align: left; white-space: nowrap; }
th { color: #657080; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.num { text-align: right; }
.empty-row td { text-align: center; color: #7a8492; padding: 25px; }
.remove-btn { border: 0; background: transparent; cursor: pointer; color: #8b3542; font-weight: 800; }
.basket-footer { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: 18px; }
.basket-total { font-size: 26px; font-weight: 850; }
.muted { color: #737e8e; }
.message { border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.message.ok { background: #eaf8ef; color: #17683a; border: 1px solid #bde4ca; }
.message.error { background: #fff0f1; color: #8b2635; border: 1px solid #efc0c6; }
@media (max-width: 760px) {
  .shell { padding: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .search-row { display: grid; grid-template-columns: 1fr 100px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .topbar, .product-main, .basket-footer { align-items: stretch; flex-direction: column; }
}
