/* ═══════════════════════════════════════════════════════════════
   GLU TOOLS — QUOTE CART
   Desktop-first docked panel · Mobile bottom sheet
   Integrates with existing inventory dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ── Quote-specific accent (amber, distinct from inventory blue) ── */
:root {
  --quote-accent: #f59e0b;
  --quote-accent-dim: rgba(245, 158, 11, 0.10);
  --quote-accent-glow: rgba(245, 158, 11, 0.4);
  --quote-accent-medium: rgba(245, 158, 11, 0.22);
  --quote-accent-strong: rgba(245, 158, 11, 0.6);
  --panel-width: 420px;
}

/* ═══════════════════════════════════════
   TOPBAR CART BUTTON
   ═══════════════════════════════════════ */
.topbar-cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-emphasis, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, rgba(32,32,36,0.8), rgba(20,20,24,0.9));
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
  cursor: pointer;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-cart-btn:hover {
  border-color: var(--quote-accent-medium);
  color: var(--quote-accent);
  background: linear-gradient(180deg, rgba(245,158,11,0.06), rgba(245,158,11,0.02));
}

.topbar-cart-btn svg { width: 16px; height: 16px; color: var(--quote-accent); opacity: 0.7; }
.topbar-cart-btn:hover svg { opacity: 1; }

.topbar-cart-badge {
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: var(--quote-accent);
  color: #000;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
  transform: scale(0);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px var(--quote-accent-glow);
}
.topbar-cart-badge.visible { transform: scale(1); }

/* ═══════════════════════════════════════
   INVENTORY ROW ADD BUTTON
   ═══════════════════════════════════════ */
.btn-quote-add {
  width: 36px; height: 34px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-emphasis, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, rgba(32,32,36,0.8), rgba(20,20,24,0.9));
  color: var(--text-faint, rgba(255, 255, 255, 0.38));
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quote-add svg {
  width: 14px; height: 14px;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quote-add:hover {
  border-color: var(--quote-accent-medium);
  color: var(--quote-accent);
  box-shadow: 0 0 12px var(--quote-accent-dim);
}
.btn-quote-add:active { transform: scale(0.9); }

/* In-cart state: amber X */
.btn-quote-add.in-cart {
  border-color: var(--quote-accent-medium);
  background: var(--quote-accent-dim);
  color: var(--quote-accent);
}
.btn-quote-add.in-cart svg { transform: rotate(45deg); }

/* Hover on in-cart: turns RED to signal removal */
.btn-quote-add.in-cart:hover {
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--signal-critical, #f87171);
  background: rgba(248, 113, 113, 0.1);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.12);
}

/* Row flash on add */
.list-item.flash::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--quote-accent);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: row-flash 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes row-flash { 0% { opacity: 0.12; } 100% { opacity: 0; } }

/* ═══════════════════════════════════════
   MAIN CONTENT SHIFT (when panel is open)
   ═══════════════════════════════════════ */
body.panel-open .main-content,
body.panel-open .inventory-container,
body.panel-open .container {
  margin-right: calc(var(--panel-width) + 16px);
  transition: margin-right 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════
   RIGHT PANEL — docked, NO overlay on desktop
   ═══════════════════════════════════════ */
.panel-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;  /* OFF on desktop */
}

.quote-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--panel-width);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  /* iOS-style clear glass - balanced for readability */
  background: rgba(12, 12, 14, 0.25);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: -4px 0 24px rgba(0,0,0,0.25), inset 1px 0 0 rgba(255,255,255,0.08);
}
.quote-panel.open { transform: translateX(0); }

/* Hide feedback button when panel is open */
body.panel-open #feedback-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-title { display: flex; align-items: center; gap: 10px; }

.panel-title .led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--quote-accent);
  box-shadow: 0 0 8px var(--quote-accent-glow);
  animation: led-pulse 2s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--quote-accent-glow); }
  50% { box-shadow: 0 0 14px var(--quote-accent-glow), 0 0 24px rgba(245,158,11,0.12); }
}

.panel-title-text {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--quote-accent);
}

.panel-item-count {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  margin-left: 4px;
}

.btn-panel-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  background: transparent;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 120ms;
}
.btn-panel-close:hover {
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
  border-color: var(--border-emphasis, rgba(255, 255, 255, 0.12));
}

/* Panel Body */
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  overscroll-behavior: contain;
}
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 2px; }

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.cart-empty-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px dashed var(--border-emphasis, rgba(255, 255, 255, 0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--text-faint, rgba(255, 255, 255, 0.38));
}
.cart-empty-text {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  line-height: 1.8;
}

/* ── Cart Items ── */
.cart-item {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 8px;
  position: relative;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.cart-item:hover { border-color: var(--border-default, rgba(255, 255, 255, 0.08)); }

.cart-item.removing {
  transform: translateX(40px);
  opacity: 0;
  margin-bottom: -80px;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-item-info { flex: 1; min-width: 0; padding-right: 8px; }

.cart-item-name {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
  line-height: 1.35;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.cart-item-sku {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
}

.cart-item-stock {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
}
.cart-item-stock .val { font-weight: 700; }
.cart-item-stock .val.healthy { color: var(--signal-healthy, #34d399); }
.cart-item-stock .val.caution { color: var(--signal-caution, #fbbf24); }

.btn-remove {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: var(--text-faint, rgba(255, 255, 255, 0.38));
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs, 4px);
  transition: all 120ms;
  flex-shrink: 0;
}
.btn-remove:hover { color: var(--signal-critical, #f87171); }
.btn-remove svg { width: 14px; height: 14px; }

/* Controls row */
.cart-item-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.ctrl-label {
  display: block;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  margin-bottom: 5px;
}

.ctrl-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs, 4px);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
  text-align: center;
  outline: none;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
}
.ctrl-input:hover { border-color: var(--border-emphasis, rgba(255, 255, 255, 0.12)); }
.ctrl-input:focus {
  border-color: var(--quote-accent);
  box-shadow: 0 0 0 2px var(--quote-accent-dim);
  background: rgba(0,0,0,0.5);
}
.ctrl-input.price { text-align: right; }

.ctrl-total {
  padding: 8px 10px;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 15px;
  font-weight: 700;
  color: var(--quote-accent);
  text-align: right;
}

/* ── Customer Section ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 10px;
}
.section-divider-line { flex: 1; height: 1px; background: var(--border-subtle, rgba(255, 255, 255, 0.04)); }
.section-divider-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
}

.customer-search-wrap { position: relative; margin-bottom: 8px; }

.customer-search {
  width: 100%;
  padding: 12px 14px 12px 38px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 14px;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
  outline: none;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.customer-search::placeholder { color: var(--text-faint, rgba(255, 255, 255, 0.38)); font-size: 13px; }
.customer-search:focus {
  border-color: var(--quote-accent);
  box-shadow: 0 0 0 3px var(--quote-accent-dim), inset 0 1px 0 rgba(0,0,0,0.2);
}

.customer-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint, rgba(255, 255, 255, 0.38)); pointer-events: none;
  transition: opacity 150ms;
}
.customer-search-icon svg { width: 15px; height: 15px; }

/* Spinner replaces search icon while loading */
.customer-search-wrap.loading .customer-search-icon { opacity: 0; }
.customer-search-spinner {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  border: 2px solid rgba(245,158,11,0.15);
  border-top-color: var(--quote-accent);
  border-radius: 50%;
  animation: searchSpin 600ms linear infinite;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms;
}
.customer-search-wrap.loading .customer-search-spinner { opacity: 1; }
@keyframes searchSpin { to { transform: translateY(-50%) rotate(360deg); } }

.customer-results {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  margin-bottom: 8px;
}
.customer-result {
  padding: 12px 14px;
  cursor: pointer;
  transition: background 120ms;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
}
.customer-result:last-child { border-bottom: none; }
.customer-result:hover { background: var(--quote-accent-dim); }
.customer-result {
  animation: resultSlideIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Skeleton loading state ── */
.customer-skeleton {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  animation: skeletonFadeIn 200ms ease both;
}
.customer-skeleton:last-child { border-bottom: none; }

.skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}
.skeleton-name { height: 14px; width: 65%; margin-bottom: 6px; }
.skeleton-detail { height: 10px; width: 40%; }

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes skeletonFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── No results state ── */
.customer-no-results {
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
}

.customer-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
}
.customer-result-detail {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  margin-top: 3px;
}

/* Selected customer chip */
.customer-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 8px;
}
.customer-selected-info { flex: 1; }
.customer-selected-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--quote-accent);
}
.customer-selected-detail {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
  margin-top: 2px;
}
.btn-customer-clear {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid rgba(245,158,11,0.2);
  background: transparent;
  color: var(--quote-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 120ms;
  flex-shrink: 0;
}
.btn-customer-clear:hover { border-color: var(--quote-accent-medium); }
.btn-customer-clear svg { width: 13px; height: 13px; }

/* ── Customer & Details sections ── */
.customer-section {
  padding-top: 14px;
  margin-top: 6px;
}

/* ── Section labels ── */
.quote-section-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Contact picker ── */
.quote-contact-picker {
  margin-top: 12px;
  padding: 0 16px;
}
.quote-contact-picker .quote-section-label {
  margin-bottom: 8px;
}
.quote-contact-picker .quote-field-select {
  width: 100%;
}

/* ── Address display + Ship To edit ── */
.quote-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.quote-address-col {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
}
.quote-address-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.quote-address-text {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-line;
  user-select: none;
}
.quote-address-text.empty {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}
.quote-address-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.quote-address-label-row .quote-address-label {
  margin-bottom: 0;
}
.quote-ship-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  display: flex;
  align-items: center;
}
.quote-ship-edit-btn:hover { color: rgba(255, 255, 255, 0.75); }
.quote-ship-form { margin-top: 2px; }
.quote-ship-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 4px 6px;
  margin-bottom: 4px;
  box-sizing: border-box;
}
.quote-ship-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
}
.quote-ship-row {
  display: grid;
  grid-template-columns: 1fr 34px 58px;
  gap: 4px;
}
.quote-ship-row .quote-ship-input { margin-bottom: 4px; }
.quote-ship-save {
  width: 100%;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  padding: 5px 0;
  cursor: pointer;
}
.quote-ship-save:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }

/* ── Quote details fields ── */
.quote-details-section {
  padding-top: 14px;
  margin-top: 6px;
}

.quote-field-row { margin-bottom: 10px; }
.quote-field-row:last-child { margin-bottom: 0; }
.quote-field-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quote-field { position: relative; }

.quote-field-label {
  display: block;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 5px;
}

/* Shared input styling — dark glass, matches inventory HUD */
.quote-field-input,
.quote-field-select,
.quote-field-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.quote-field-input.mono {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
}

/* Select — custom chevron */
.quote-field-select {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(0, 0, 0, 0.25);
  padding-right: 32px;
  cursor: pointer;
}
.quote-field-select option {
  background: #1a1a20;
  color: rgba(255, 255, 255, 0.88);
}

/* Textarea */
.quote-field-textarea {
  resize: vertical;
  min-height: 48px;
  max-height: 96px;
  font-size: 12px;
  line-height: 1.5;
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
}

/* Placeholders */
.quote-field-input::placeholder,
.quote-field-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

/* Focus state — amber glow */
.quote-field-input:focus,
.quote-field-select:focus,
.quote-field-textarea:focus {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Hover state */
.quote-field-input:hover:not(:focus),
.quote-field-select:hover:not(:focus),
.quote-field-textarea:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.18);
}

/* New customer */
.new-customer-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0; cursor: pointer;
}
.new-customer-toggle span {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #60a5fa);
}
.new-customer-toggle:hover span { color: var(--text-primary, rgba(255, 255, 255, 0.92)); }

.new-customer-form {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 8px;
}
.new-customer-form.visible { display: flex; }
.new-customer-row { display: flex; gap: 8px; }

.form-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs, 4px);
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 14px;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
  outline: none;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form-input::placeholder { color: var(--text-faint, rgba(255, 255, 255, 0.38)); font-size: 13px; }
.form-input:focus {
  border-color: var(--accent, #60a5fa);
  box-shadow: 0 0 0 2px var(--accent-dim, rgba(96, 165, 250, 0.15));
}

.btn-form {
  padding: 11px 16px;
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: var(--radius-sm, 6px);
  background: linear-gradient(180deg, rgba(96,165,250,0.08), rgba(96,165,250,0.03));
  color: var(--accent, #60a5fa);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 4px;
  transition: all 120ms;
}
.btn-form:hover { border-color: rgba(96,165,250,0.3); }

/* ═══════════════════════════════════════
   PANEL FOOTER
   ═══════════════════════════════════════ */
.panel-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  /* iOS-style clear glass - matches panel */
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.cart-total-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
}
.cart-total-value {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 24px;
  font-weight: 700;
  color: var(--quote-accent);
  text-shadow: 0 0 20px var(--quote-accent-dim);
}

.btn-submit {
  width: 100%;
  padding: 15px 24px;
  border: 1px solid var(--quote-accent-medium);
  border-radius: var(--radius-sm, 6px);
  background: linear-gradient(180deg, rgba(245,158,11,0.14), rgba(245,158,11,0.05));
  color: var(--quote-accent);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
  overflow: hidden;
}
.btn-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(245,158,11,0.2), rgba(245,158,11,0.08));
  border-color: var(--quote-accent-strong);
  box-shadow: 0 0 20px var(--quote-accent-dim);
}
.btn-submit:active:not(:disabled) { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-submit .led-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--quote-accent);
  box-shadow: 0 0 6px var(--quote-accent-glow);
}

.btn-submit.loading { pointer-events: none; }
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .led-dot { opacity: 0; }
.btn-submit .spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--quote-accent-dim);
  border-top-color: var(--quote-accent);
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   SUCCESS OVERLAY
   ═══════════════════════════════════════ */
.success-overlay {
  position: absolute; inset: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  z-index: 10;
  opacity: 0; pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.success-overlay.visible { opacity: 1; pointer-events: auto; }

.success-check {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--signal-healthy, #34d399);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal-healthy, #34d399);
  box-shadow: 0 0 30px rgba(52,211,153,0.15);
  animation: success-pulse 2s ease-in-out infinite;
}
@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(52,211,153,0.1); }
  50% { box-shadow: 0 0 40px rgba(52,211,153,0.2); }
}
.success-check svg { width: 30px; height: 30px; }

.success-title {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal-healthy, #34d399);
}
.success-detail {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
  text-align: center;
  line-height: 1.7;
}
.success-detail strong { color: var(--text-primary, rgba(255, 255, 255, 0.92)); font-weight: 600; }

.success-actions { display: flex; gap: 10px; margin-top: 12px; }

.btn-success {
  padding: 12px 26px;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 120ms;
}
.btn-success.primary {
  border: 1px solid rgba(52,211,153,0.3);
  background: linear-gradient(180deg, rgba(52,211,153,0.1), rgba(52,211,153,0.03));
  color: var(--signal-healthy, #34d399);
}
.btn-success.primary:hover { border-color: rgba(52,211,153,0.5); }
.btn-success.secondary {
  border: 1px solid var(--border-emphasis, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.56));
}
.btn-success.secondary:hover { color: var(--text-primary, rgba(255, 255, 255, 0.92)); }

/* ═══════════════════════════════════════
   SHIPPING & HANDLING CART ITEM
   ═══════════════════════════════════════ */
.cart-item-shipping {
  border-left: 2px solid rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.03);
}

/* Shipping breakdown stats */
.sh-breakdown {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.sh-stat {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.sh-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
}

.sh-method {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
}

.sh-method.ground {
  color: var(--signal-healthy, #34d399);
  background: rgba(52, 211, 153, 0.1);
}

.sh-method.freight {
  color: var(--quote-accent);
  background: rgba(245, 158, 11, 0.1);
}

.sh-warn {
  font-size: 12px;
  cursor: help;
  margin-left: 2px;
}

.cart-item-shipping-options {
  padding: 8px 12px 10px;
}

.shipping-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.btn-get-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 0;
  border-radius: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all 120ms;
}
.btn-get-rate:hover {
  color: rgba(96, 165, 250, 0.7);
}
.btn-get-rate svg {
  opacity: 0.5;
  flex-shrink: 0;
  width: 11px; height: 11px;
}
.btn-get-rate:hover svg { opacity: 0.8; }

/* ═══════════════════════════════════════
   ITEM SEARCH & RESULTS
   ═══════════════════════════════════════ */
.quote-item-search-section {
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.quote-item-results {
  max-height: 320px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  margin-top: 6px;
}

.item-result {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 100ms;
  animation: resultSlideIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.item-result:last-child { border-bottom: none; }
.item-result:hover { background: var(--quote-accent-dim); }

.item-result.in-cart {
  opacity: 0.5;
}
.item-result.in-cart:hover { background: rgba(255, 255, 255, 0.04); }

.item-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-result-code {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--quote-accent);
  letter-spacing: 0.02em;
}

.item-result-price {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.item-in-cart-tag {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 6px;
}

.item-result-name {
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-result-category {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   INLINE SHIPPING RATES
   ═══════════════════════════════════════ */

/* ZIP Input Row */
.sh-zip-row {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 4px;
}
.sh-zip-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  flex-shrink: 0;
}
.sh-zip-wrap { position: relative; flex: 1; max-width: 120px; }
.sh-zip-input {
  width: 100%; padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs, 4px);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
  outline: none;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.sh-zip-input::placeholder { color: var(--text-faint, rgba(255, 255, 255, 0.25)); letter-spacing: 0.08em; font-size: 12px; }
.sh-zip-input:focus {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
}
.sh-zip-input.debouncing {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 0 8px rgba(99, 102, 241, 0.12);
}
.sh-zip-wrap.loading::after {
  content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  border: 2px solid rgba(96, 165, 250, 0.15);
  border-top-color: rgba(96, 165, 250, 0.8);
  border-radius: 50%;
  animation: searchSpin 600ms linear infinite;
}

/* Rate Chips */
.sh-rate-chips {
  display: flex; gap: 6px;
  margin: 8px 0 4px;
}
.sh-rate-chip {
  flex: 1; padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: resultSlideIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sh-rate-chip:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.sh-rate-chip.ground.applied {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.06);
}
.sh-rate-chip.freight.applied {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.06);
}
.sh-chip-price {
  display: block;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
}
.sh-rate-chip.ground.applied .sh-chip-price { color: var(--signal-healthy, #34d399); }
.sh-rate-chip.freight.applied .sh-chip-price { color: var(--quote-accent); }

.sh-chip-detail {
  display: block;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.32));
  margin-top: 2px;
}
.sh-chip-check {
  position: absolute; top: 4px; right: 6px;
  font-size: 10px; opacity: 0;
  transition: opacity 150ms;
}
.sh-rate-chip.applied .sh-chip-check { opacity: 1; }
.sh-rate-chip.ground.applied .sh-chip-check { color: var(--signal-healthy, #34d399); }
.sh-rate-chip.freight.applied .sh-chip-check { color: var(--quote-accent); }

.sh-rate-chip.skeleton {
  pointer-events: none; min-height: 42px;
}

/* Expand Toggle & Rate List */
.sh-rates-more {
  display: block; width: 100%;
  background: none; border: none;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px; font-weight: 500;
  color: rgba(96, 165, 250, 0.7);
  cursor: pointer; padding: 4px 0;
  transition: color 120ms;
  text-align: center;
}
.sh-rates-more:hover { color: rgba(96, 165, 250, 1); }

.sh-rates-list {
  max-height: 180px; overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs, 4px);
  background: rgba(0, 0, 0, 0.15);
  margin: 4px 0 6px;
}
.sh-rates-list::-webkit-scrollbar { width: 3px; }
.sh-rates-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.sh-rate-row {
  display: grid;
  grid-template-columns: 48px 1fr auto 28px;
  gap: 4px; align-items: center;
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 100ms;
  animation: resultSlideIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sh-rate-row:last-child { border-bottom: none; }
.sh-rate-row:hover { background: rgba(96, 165, 250, 0.05); }
.sh-rate-row.applied { background: rgba(52, 211, 153, 0.04); }

.sh-rate-carrier {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.sh-rate-service {
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-rate-price {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px; font-weight: 600;
  color: var(--text-primary, rgba(255, 255, 255, 0.85));
  text-align: right;
}
.sh-rate-days {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
}

/* Error state */
.sh-rate-error {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: rgba(248, 113, 113, 0.7);
  padding: 6px 0;
}

/* ═══════════════════════════════════════
   MOBILE FAB + SHEET HANDLE
   ═══════════════════════════════════════ */
.fab-cart {
  display: none;
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.3);
  background: linear-gradient(135deg, rgba(32,28,20,0.95), rgba(20,18,12,0.98));
  backdrop-filter: blur(20px);
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.fab-cart svg { width: 22px; height: 22px; color: var(--quote-accent); }

.fab-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: var(--quote-accent);
  color: #000;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  transform: scale(0);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px var(--quote-accent-glow);
}
.fab-badge.visible { transform: scale(1); }

.sheet-handle {
  display: none;
  justify-content: center;
  padding: 10px 0 2px;
  flex-shrink: 0;
}
.sheet-handle-bar {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════════
   MOBILE (<768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar-cart-btn { display: none; }
  .fab-cart { display: flex; }

  body.panel-open .main-content,
  body.panel-open .inventory-container { margin-right: 0; }

  /* Overlay ON for mobile */
  .panel-overlay { display: block; }
  .panel-overlay.open { background: rgba(0,0,0,0.5); pointer-events: auto; }

  .quote-panel {
    width: 100%; top: auto; bottom: 0;
    max-height: 88dvh;
    border-left: none;
    border-top: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .panel-header { padding: 12px 20px; }
  .panel-body { padding: 12px 16px; }
  .panel-footer { padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .sheet-handle { display: flex; }
}
