/* ==========================================================================
   SPOOLFLEET — INDUSTRIAL CATALOG & PROCUREMENT SHEET (REV 2.0 ANTI-SLOP)
   Reference Paradigm: McMaster-Carr / Misumi / German Technical Datasheets
   Rules: Zero gradients, zero drop-shadows, zero emojis, zero SaaS bento cards.
   1px crisp structural hairlines, warm uncoated catalog paper, tabular mono.
   ========================================================================== */

:root {
  --paper: #F5F4F0;          /* Warm technical catalog background */
  --sheet: #FFFFFF;          /* Pure datasheet cell background */
  --well: #ECEAE3;           /* Recessed table header / toolbar fill */
  --manila: #FBF5D9;         /* Classic McMaster technical callout tint */
  --manila-border: #DFCFA0;

  --ink: #141413;            /* Primary carbon ink */
  --ink-mid: #474743;        /* Secondary technical copy */
  --ink-muted: #73726C;      /* Tertiary labels & captions */

  --rule: #C8C6BE;           /* Primary 1px structural border */
  --rule-strong: #141413;    /* Heavy section divider rule */
  --rule-light: #E2E0D8;     /* Inner table row divider */

  --signal: #C8430A;         /* Restrained industrial vermilion (actions only) */
  --signal-hover: #A63606;
  --stamp-green: #186337;    /* IQC passed / In-stock text indicator */
  --stamp-green-bg: #EAF4EE;
  --blueprint: #1E3A5F;      /* Asset placeholder drafting ink */
  --blueprint-bg: #F0F4F8;

  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--signal);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   1. UTILITY TELEMETRY STRIP & PROCUREMENT HEADER
   -------------------------------------------------------------------------- */
.utility-strip {
  background: var(--ink);
  color: #D8D6CE;
  font-family: var(--font-mono);
  font-size: 11px;
  border-bottom: 1px solid #2E2E2C;
}

.utility-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-strip a {
  color: #EAE8E0;
  text-decoration: none;
}
.utility-strip a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.cutoff-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #34D399;
  margin-right: 5px;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--sheet);
  border-bottom: 2px solid var(--rule-strong);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand-block {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  padding-right: 16px;
}

.brand-wordmark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
}

.brand-wordmark span {
  color: var(--signal);
}

.brand-spec-line {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  margin-top: 3px;
}

/* Search & Quick SKU Bar */
.header-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-wrap {
  flex: 1;
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.search-label {
  background: var(--well);
  border-right: 1px solid var(--rule);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mid);
  white-space: nowrap;
}

.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.search-wrap input:focus {
  outline: none;
  background: var(--sheet);
}

.quick-sku-wrap {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--sheet);
}
.quick-sku-wrap input {
  border: none;
  padding: 7px 9px;
  width: 135px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.quick-sku-wrap input:focus { outline: none; }
.quick-sku-wrap button {
  border: none;
  border-left: 1px solid var(--rule);
  background: var(--well);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.quick-sku-wrap button:hover {
  background: var(--ink);
  color: var(--sheet);
}

/* PO Trigger Button */
.po-button {
  background: var(--ink);
  color: var(--sheet);
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.po-button:hover {
  background: var(--signal);
  border-color: var(--signal);
}
.po-count-box {
  background: var(--signal);
  color: #FFF;
  padding: 1px 6px;
  font-size: 11px;
}
.po-button:hover .po-count-box {
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   2. MASTER 2-COLUMN CATALOG WORKSPACE (LEFT INDEX + MAIN DATASHEET)
   -------------------------------------------------------------------------- */
.workspace {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px 64px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* LEFT STICKY DIRECTORY */
.catalog-sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.side-head {
  background: var(--well);
  border-bottom: 1px solid var(--rule);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.side-list {
  list-style: none;
}

.side-list li {
  border-bottom: 1px solid var(--rule-light);
}
.side-list li:last-child {
  border-bottom: none;
}

.side-btn, .side-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6.5px 10px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.side-btn:hover, .side-link:hover {
  background: var(--paper);
  color: var(--signal);
}
.side-btn.active {
  background: var(--manila);
  font-weight: 600;
  border-left: 3px solid var(--signal);
  padding-left: 7px;
}
.side-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* Supply Desk Engineer Block in Sidebar */
.desk-card {
  padding: 10px;
  font-size: 12px;
}
.desk-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   3. ASSET PLACEHOLDER SYSTEM (BLUEPRINT CONTACT-SHEET FRAMES)
   -------------------------------------------------------------------------- */
.asset-slot {
  position: relative;
  background: #ECEBE6;
  border: 1px solid #B5B3A9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  color: var(--ink-mid);
  background-image:
    linear-gradient(to right, rgba(20,20,19,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,20,19,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

.asset-slot .real-asset-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  display: none;
}
.asset-slot.has-real-photo .real-asset-img {
  display: block;
}
.asset-slot.has-real-photo .slot-top,
.asset-slot.has-real-photo .slot-illustration,
.asset-slot.has-real-photo .slot-guide {
  display: none;
}

/* Corner drafting crop marks */
.asset-slot::before,
.asset-slot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--ink-mid);
  pointer-events: none;
}
.asset-slot::before {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.asset-slot::after {
  bottom: 4px;
  right: 4px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  z-index: 2;
}

.slot-id {
  background: var(--ink);
  color: var(--sheet);
  padding: 1px 5px;
  font-weight: 600;
}

.slot-ratio {
  color: var(--ink-muted);
  background: rgba(255,255,255,0.75);
  padding: 1px 4px;
  border: 1px solid var(--rule);
}

.slot-illustration {
  margin: auto;
  padding: 8px 0;
  text-align: center;
  width: 100%;
}

.slot-guide {
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed var(--blueprint);
  padding: 7px 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--blueprint);
  z-index: 2;
}
.slot-guide strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--signal);
  margin-bottom: 2px;
}
.slot-path {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.slot-buyer-fig {
  display: none;
  margin: auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  padding: 12px 8px;
}

body.hide-asset-guides .slot-guide {
  display: none;
}
body.hide-asset-guides .slot-buyer-fig {
  display: block;
}
body.hide-asset-guides .slot-id {
  background: var(--ink-muted);
}

/* Floating Studio Mode Bar (for the site owner testing placeholders) */
.studio-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 150;
  background: var(--ink);
  color: var(--sheet);
  border: 1px solid #444;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-bar button {
  background: var(--signal);
  color: #FFF;
  border: none;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. TOP SPECIFICATION HEADER & $29 SAMPLE DISPATCH BLOCK
   -------------------------------------------------------------------------- */
.main-sheet {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.top-spec-panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.spec-overview {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-header-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.spec-overview h1 {
  font-family: var(--font-cond);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.spec-lead {
  font-size: 13.5px;
  color: var(--ink-mid);
  margin-bottom: 14px;
  max-width: 62ch;
}

/* Hard Engineering Spec Matrix */
.spec-kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 12px;
}
.spec-kv-table th,
.spec-kv-table td {
  border: 1px solid var(--rule);
  padding: 6px 9px;
  text-align: left;
}
.spec-kv-table th {
  background: var(--well);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-mid);
  width: 32%;
}
.spec-kv-table td {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
}

.platform-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.platform-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}

.plat-chip {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.plat-chip:hover {
  border-color: var(--ink);
}
.plat-chip.active {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}

/* Right Side of Top Panel: Featured $29 Evaluation Kit */
.eval-feature-box {
  background: var(--manila);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eval-top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--manila-border);
  padding-bottom: 5px;
}
.eval-top-line strong {
  font-family: var(--font-cond);
  font-size: 17.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.eval-price-tag {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--signal);
  white-space: nowrap;
}

.eval-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.eval-controls select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.btn-primary {
  background: var(--signal);
  color: #FFFFFF;
  border: 1px solid var(--signal);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--signal-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--sheet);
}

/* --------------------------------------------------------------------------
   5. MCMASTER-STYLE CATALOG SECTIONS (LEFT PHOTO/CAD + RIGHT SPEC MATRIX)
   -------------------------------------------------------------------------- */
.tier-rule-strip {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.catalog-group {
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.group-header {
  background: var(--well);
  border-bottom: 1px solid var(--ink);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.group-title {
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.group-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mid);
}

.group-body {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
}

.group-visual-col {
  border-right: 1px solid var(--rule);
  padding: 12px;
  background: #FAF9F6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-note-box {
  font-size: 11.5px;
  color: var(--ink-mid);
  line-height: 1.45;
  border-top: 1px solid var(--rule-light);
  padding-top: 8px;
}
.tech-note-box strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* Dense Specification Table */
.spec-table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.spec-table th {
  background: #F3F2ED;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule-light);
  padding: 6px 9px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-mid);
  white-space: nowrap;
}
.spec-table th.num,
.spec-table td.num {
  text-align: right;
}

.spec-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
  vertical-align: middle;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table tbody tr:hover td {
  background: #F9F8F3;
}

.part-no {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.stock-ok {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stamp-green);
  background: var(--stamp-green-bg);
  padding: 1px 4px;
  margin-top: 2px;
}

.item-desc-main {
  font-weight: 600;
  color: var(--ink);
}
.item-desc-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.tier-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.tier-cell.hit {
  background: var(--manila) !important;
  font-weight: 700;
  color: var(--signal);
}

.oem-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.po-inline-ctrl {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.po-qty-inp {
  width: 52px;
  padding: 4px 5px;
  border: 1px solid var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  background: var(--sheet);
}
.po-add-btn {
  background: var(--ink);
  color: var(--sheet);
  border: 1px solid var(--ink);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.po-add-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
}

/* --------------------------------------------------------------------------
   6. QUARTERLY MAINTENANCE CRATES (LEDGER COMPARISON LAYOUT)
   -------------------------------------------------------------------------- */
.crates-table {
  width: 100%;
  border-collapse: collapse;
}
.crates-table th,
.crates-table td {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule-light);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.crates-table th {
  background: #F3F2ED;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mid);
}
.crate-bom-list {
  list-style: none;
  font-size: 12px;
  color: var(--ink-mid);
  columns: 2;
  column-gap: 18px;
}
.crate-bom-list li {
  margin-bottom: 3px;
  break-inside: avoid;
}
.crate-bom-list li::before {
  content: "- ";
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   7. SAMPLE EVALUATION & 10+ FLEET QUALIFICATION LEDGER
   -------------------------------------------------------------------------- */
.dual-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.ledger-col {
  padding: 18px 20px;
}
.ledger-col:first-child {
  border-right: 1px solid var(--rule);
}

.ledger-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ledger-col h3 {
  font-family: var(--font-cond);
  font-size: 21px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bom-mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
  font-size: 12px;
}
.bom-mini-table td {
  border-top: 1px solid var(--rule-light);
  padding: 5.5px 4px;
}
.bom-mini-table tr:last-child td {
  border-top: 1px solid var(--ink);
  font-weight: 700;
}

.industrial-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.f-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.f-row.span-2 {
  grid-column: 1 / -1;
}
.f-row label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-mid);
}
.f-row input,
.f-row select {
  padding: 6.5px 8px;
  border: 1px solid var(--rule);
  border-top-color: #9E9C94;
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink);
}
.f-row input:focus,
.f-row select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--sheet);
}

/* --------------------------------------------------------------------------
   8. IQC CONTACT SHEET, BATCH LOOKUP & SLICER JSON DOWNLOADS
   -------------------------------------------------------------------------- */
.iqc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.iqc-cell {
  padding: 14px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iqc-cell:nth-child(3n) {
  border-right: none;
}

.iqc-caption-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.iqc-cell h4 {
  font-size: 13.5px;
  font-weight: 700;
}
.iqc-cell p {
  font-size: 12px;
  color: var(--ink-mid);
}

.iqc-tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.iqc-tool-pane {
  padding: 16px 18px;
}
.iqc-tool-pane:first-child {
  border-right: 1px solid var(--rule);
}

.cert-output {
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}

.json-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule-light);
  padding: 8px 0;
  gap: 10px;
}
.json-row:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   9. WAREHOUSE, INCOTERMS & COMPANY VERIFICATION BLOCK
   -------------------------------------------------------------------------- */
.dispatch-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
}
.dispatch-photo-pane {
  padding: 14px;
  border-right: 1px solid var(--rule);
  background: #FAF9F6;
}
.dispatch-terms-pane {
  padding: 16px 18px;
}

/* FOOTER */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--well);
  padding: 28px 20px;
  font-size: 12px;
  color: var(--ink-mid);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   10. PURCHASE ORDER DRAWER & PROFORMA INVOICE MODAL
   -------------------------------------------------------------------------- */
.po-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.45);
  z-index: 200;
  display: none;
}
.po-backdrop.open { display: block; }

.po-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--sheet);
  border-left: 2px solid var(--ink);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.18s ease-out;
}
.po-drawer.open { right: 0; }

.po-drawer-head {
  background: var(--ink);
  color: var(--sheet);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.po-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.po-line {
  border-bottom: 1px solid var(--rule-light);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.po-drawer-foot {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 14px 16px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.6);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.open { display: flex; }

.modal-sheet {
  background: var(--sheet);
  border: 2px solid var(--ink);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 22px;
}

.settlement-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  margin: 12px 0 16px;
}
.settle-tab {
  padding: 8px 10px;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.settle-tab:last-child { border-right: none; }
.settle-tab.active {
  background: var(--manila);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 1fr; gap: 10px; }
  .brand-block { border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
  .workspace { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .top-spec-panel, .group-body, .dual-ledger, .iqc-contact-grid, .iqc-tools-row, .dispatch-grid {
    grid-template-columns: 1fr;
  }
  .group-visual-col, .spec-overview, .ledger-col:first-child, .iqc-cell, .iqc-tool-pane:first-child, .dispatch-photo-pane {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}
