/* Gamdias B2B Portal - Compiled CSS (replaces Tailwind CDN) */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: ui-sans-serif,system-ui,-apple-system,sans-serif; }
body { margin: 0; line-height: inherit; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button { cursor: pointer; background-color: transparent; background-image: none; }
input::placeholder, textarea::placeholder { color: #9ca3af; }
table { border-collapse: collapse; }
th { text-align: left; }
img { display: block; max-width: 100%; }

/* Layout */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-48 { width: 12rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-40 { height: 10rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.min-w-full { min-width: 100%; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* Spacing - margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-4 { margin-left: 1rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }

/* Spacing - padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* Typography */
.font-sans { font-family: ui-sans-serif,system-ui,-apple-system,sans-serif; }
.font-mono { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.normal-case { text-transform: none; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-6 { line-height: 1.5rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Colors - text */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-yellow-400 { color: #facc15; }
.text-yellow-500 { color: #eab308; }
.text-yellow-700 { color: #a16207; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-green-400 { color: #4ade80; }
.text-blue-400 { color: #60a5fa; }

/* Colors - background */
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-yellow-500 { background-color: #eab308; }
.bg-yellow-900 { background-color: #713f12; }
.bg-yellow-950 { background-color: #422006; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-900 { background-color: #7f1d1d; }
.bg-green-900 { background-color: #14532d; }
.bg-green-950 { background-color: #052e16; }
.bg-blue-900 { background-color: #1e3a5f; }

/* Colors - border */
.border-black { border-color: #000; }
.border-white { border-color: #fff; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-gray-900 { border-color: #111827; }
.border-yellow-500 { border-color: #eab308; }
.border-yellow-700 { border-color: #a16207; }
.border-yellow-800 { border-color: #854d0e; }
.border-yellow-900 { border-color: #713f12; }
.border-red-700 { border-color: #b91c1c; }
.border-red-800 { border-color: #991b1b; }
.border-red-900 { border-color: #7f1d1d; }
.border-green-600 { border-color: #16a34a; }
.border-green-800 { border-color: #166534; }
.border-blue-800 { border-color: #1e40af; }

/* Border */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-l { border-left-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-dashed { border-style: dashed; }
.border-collapse { border-collapse: collapse; }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0/.25); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0/.1),0 8px 10px -6px rgb(0 0 0/.1); }

/* Ring / Outline */
.outline-none { outline: none; }
.ring-2 { box-shadow: 0 0 0 2px; }
.ring-offset-2 { box-shadow: 0 0 0 2px #111827, 0 0 0 4px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #eab308; }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 2px #ef4444; }
.focus\:ring-yellow-500:focus { box-shadow: 0 0 0 2px #eab308; }
.focus\:border-yellow-500:focus { border-color: #eab308; }
.focus\:outline-none:focus { outline: none; }

/* Transitions */
.transition { transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color,background-color,border-color,text-decoration-color,fill,stroke; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Opacity */
.opacity-25 { opacity: 0.25; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }

/* Animate */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Disabled */
.disabled\:opacity-40:disabled { opacity: 0.4; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Hover states */
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-gray-900:hover { background-color: #111827; }
.hover\:bg-yellow-400:hover { background-color: #facc15; }
.hover\:bg-yellow-900:hover { background-color: #713f12; }
.hover\:bg-red-500:hover { background-color: #ef4444; }
.hover\:bg-red-900:hover { background-color: #7f1d1d; }
.hover\:bg-green-900:hover { background-color: #14532d; }
.hover\:border-yellow-500:hover { border-color: #eab308; }
.hover\:border-gray-400:hover { border-color: #9ca3af; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-yellow-400:hover { color: #facc15; }
.hover\:text-gray-400:hover { color: #9ca3af; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-red-400:hover { color: #f87171; }

/* Group hover */
.group:hover .group-hover\:text-yellow-500 { color: #eab308; }

/* Print */
@media print { .no-print { display: none !important; } }

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:p-6 { padding: 1.5rem; }
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

/* Max height for log viewer */
.max-h-\[70vh\] { max-height: 70vh; }
.overflow-y-auto { overflow-y: auto; }

/* ── Base styles (from base.html) ── */
body { background-color: #111827; color: #e5e7eb; font-family: ui-sans-serif,system-ui,-apple-system,sans-serif; }
        input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
            background-color: #111827; border: 1px solid #374151; border-radius: 0.25rem;
            padding: 0.75rem; color: #fff; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
        }
        input:focus, select:focus, textarea:focus { outline: none; border-color: #eab308; box-shadow: 0 0 0 2px rgba(234,179,8,0.3); }
        input[type="checkbox"] { width: auto; }
        .alert-success { background-color: #14532d; border-left: 4px solid #4ade80; color: #4ade80; }
        .alert-danger  { background-color: #7f1d1d; border-left: 4px solid #f87171; color: #f87171; }
        .alert-warning { background-color: #713f12; border-left: 4px solid #eab308; color: #eab308; }
        .alert-info    { background-color: #1e3a5f; border-left: 4px solid #60a5fa; color: #60a5fa; }
        .alert-default { background-color: #1f2937; border-left: 4px solid #eab308; color: #eab308; }
        .nav-link { color: #9ca3af; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; transition: color 0.15s; }
        .nav-link:hover { color: #fff; }
        .nav-link-active { color: #eab308; font-weight: 700; }
        .nav-logout { background: none; border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: #ef4444; transition: color 0.15s; padding: 0; }
        .nav-logout:hover { color: #f87171; }


/* ── index.html styles ── */
.product-card {
  background: #000;
  border: 1px solid #1f2937;
  border-radius: 0.5rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: #374151; }

.btn-add {
  flex: 1;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0.25rem;
  padding: 0.45rem;
  transition: background 0.15s, color 0.15s;
}
.btn-add.available   { background: #eab308; color: #000; cursor: pointer; }
.btn-add.available:hover { background: #facc15; color: #000; }
.btn-add.unavailable { background: #1f2937;  color: #4b5563; cursor: not-allowed; }

.qty-input         { width:3.5rem;background:#111827;border:1px solid #374151;color:#fff;border-radius:0.25rem;padding:0.4rem;text-align:center;font-size:0.8rem;font-weight:700; }
.qty-input.disabled { opacity:0.4; }

.stock-badge       { font-size:0.65rem;font-weight:700;padding:0.15rem 0.5rem;border-radius:0.2rem; }
.stock-badge.in    { background:#111827;color:#4ade80;border:1px solid #14532d; }
.stock-badge.out   { background:#111827;color:#ef4444;border:1px solid #7f1d1d; }

.class-badge { font-size:0.6rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:#374151;background:#111827;padding:0.1rem 0.4rem;border-radius:0.2rem; }

.filter-bar   { display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1.25rem;align-items:center;background:#000;border:1px solid #1f2937;border-radius:0.5rem;padding:0.75rem 1rem; }
.filter-input { background:#111827;border:1px solid #374151;color:#fff;border-radius:0.25rem;padding:0.5rem 0.6rem;font-size:0.75rem; }
.filter-input:focus { outline:none;border-color:#eab308; }

.adj-positive { color: #f87171; }
.adj-negative { color: #4ade80; }

/* Prevent Add to Order button text wrapping */
.btn-add { white-space: nowrap; }

/* Hide native spinners — replaced by custom stepper buttons */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; appearance: textfield; }

/* Custom stepper */
.qty-wrap { display: flex; align-items: stretch; border: 1px solid #374151; border-radius: 0.25rem; overflow: hidden; }
.qty-wrap .qty-input {
  width: 2.8rem; background: #111827; border: none;
  border-left: 1px solid #374151; border-right: 1px solid #374151;
  color: #fff; text-align: center; font-size: 0.85rem; font-weight: 700;
  padding: 0.4rem 0.2rem; border-radius: 0;
}
.qty-wrap .qty-input:focus { outline: none; }
.qty-step {
  background: #111827; border: none; color: #eab308;
  width: 1.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.12s; flex-shrink: 0; padding: 0;
}
.qty-step:hover { background: #374151; }
.qty-step:active { background: #4b5563; }
.qty-step.disabled { color: #374151; cursor: not-allowed; pointer-events: none; }


/* ── pricing.html styles ── */
.pricing-row { border-bottom: 1px solid #111827; }
.pricing-row:hover { background: #0a0a0a; }

.col-input {
  background: #111827; border: 1px solid #374151; border-radius: 0.25rem;
  color: #fff; font-size: 0.8rem; padding: 0.35rem 0.6rem;
}
.col-input:focus { outline: none; border-color: #eab308; }

.formula-input {
  vertical-align: middle;
  background: #111827; border: 1px solid #374151; border-radius: 0.25rem;
  color: #eab308; font-family: monospace; font-size: 0.8rem;
  padding: 0.35rem 0.6rem; width: 11rem;
}
.formula-input:focus   { outline: none; border-color: #eab308; }
.formula-input.valid   { border-color: #16a34a; }
.formula-input.invalid { border-color: #ef4444; }

.msrp-wrap { position: relative; display: inline-block; vertical-align: middle; }
.msrp-wrap .sym {
  position: absolute; left: 0.5rem; top: 50%;
  transform: translateY(-50%); color: #6b7280; font-size: 0.75rem; pointer-events: none;
}
.msrp-input {
  vertical-align: middle;
  width: 7rem; background: #111827; border: 1px solid #374151;
  border-radius: 0.25rem; color: #fff; font-size: 0.8rem;
  padding: 0.35rem 0.5rem 0.35rem 1.25rem; text-align: right;
}
.msrp-input:focus { outline: none; border-color: #eab308; }

.save-btn {
  background: #eab308; color: #000; font-weight: 900;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem; border: none; border-radius: 0.2rem;
  cursor: pointer; transition: background 0.15s;
}
.save-btn:hover:not([disabled]) { background: #facc15; }
.save-btn.ok  { background: #4ade80; color: #000; }
.save-btn.err { background: #ef4444; color: #fff; }

.th {
  padding: 0.6rem 0.75rem; color: #6b7280; font-weight: 700;
  text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.08em;
  border-bottom: 1px solid #1f2937; white-space: nowrap; text-align: left;
}
.th.sortable { cursor: pointer; }
.th.sortable:hover { color: #eab308; }
.sort-icon { display:inline-flex; align-items:center; vertical-align:middle; margin-left:0.25rem; }
.sort-icon svg { display:block; }

.tier-card {
  background: #111827; border: 1px solid #1f2937;
  border-radius: 0.375rem; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.pct-wrap { position: relative; flex: 1; }
.pct-wrap .sym {
  position: absolute; right: 0.5rem; top: 50%;
  transform: translateY(-50%); color: #6b7280; font-size: 0.75rem; pointer-events: none;
}
.pct-input {
  width: 100%; background: #000; border: 1px solid #374151;
  border-radius: 0.25rem; padding: 0.5rem 2rem 0.5rem 0.75rem;
  color: #fff; font-size: 0.875rem;
}
.pct-input:focus { outline: none; border-color: #eab308; }

.adj-positive { color: #f87171; font-weight: 700; }
.adj-negative { color: #4ade80; font-weight: 700; }

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.remove-btn { background:none; border:none; cursor:pointer; color:#ef4444; font-size:0.625rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; padding:0; }
.remove-btn:hover { color:#f87171; }

/* ── Pricing page — tabs ── */
.p-tab {
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem;
  border: 1px solid #1f2937;
  border-bottom: none;
  color: #6b7280;
  background: #111827;
  transition: all 0.15s;
  white-space: nowrap;
  border-radius: 0.375rem 0.375rem 0 0;
}
.p-tab.active           { color: #000; background: #eab308; border-color: #eab308; }
.p-tab:hover:not(.active) { color: #fff; background: #1f2937; }

.p-panel {
  display: none;
  background: #000;
  border: 1px solid #1f2937;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 1.5rem;
}
.p-panel.active { display: block; }

/* ── Pricing page — user select dropdown ── */
.user-select {
  background: #111827;
  border: 1px solid #374151;
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-width: 16rem;
  cursor: pointer;
}
.user-select:focus { outline: none; border-color: #eab308; }

/* Add Product form label */
.ap-label { font-size:0.65rem; color:#6b7280; font-weight:700; text-transform:uppercase; display:block; margin-bottom:0.3rem; }

/* ── Pricing table cells ── */
/* Standard cell padding used on every <td> in the product tables */
.td-cell              { padding: 0.5rem 0.75rem; vertical-align: middle; }
.td-cell-center       { padding: 0.5rem 0.75rem; text-align: center; vertical-align: middle; }
.td-cell-right        { padding: 0.5rem 0.75rem; text-align: right; vertical-align: middle; }
.td-cell-nowrap       { padding: 0.5rem 0.75rem; white-space: nowrap; vertical-align: middle; }

/* Product name + sub-brand line */
.cell-name            { padding: 0.5rem 0.75rem; color: #fff; font-weight: 600; vertical-align: middle; }
.cell-name-sub        { display: block; font-size: 0.65rem; color: #4b5563; }

/* Product code column */
.cell-code            { padding: 0.5rem 0.75rem; color: #9ca3af; font-family: monospace; white-space: nowrap; vertical-align: middle; }

/* Product class column */
.cell-class           { padding: 0.5rem 0.75rem; color: #6b7280; font-size: 0.75rem; vertical-align: middle; }

/* Tier/formula placeholder dash */
.cell-dash            { padding: 0.5rem 0.75rem; color: #4b5563; font-family: monospace; font-size: 0.75rem; vertical-align: middle; }

/* ── Pricing table inputs & buttons ── */
/* Small stock qty input (overrides the full-width base input style) */
.stock-input {
  vertical-align: middle;
  width: 4.5rem; background: #111827; border: 1px solid #374151;
  color: #9ca3af; border-radius: 0.25rem;
  padding: 0.3rem 0.4rem; font-size: 0.8rem; text-align: center;
}

/* Small grey "Save" button used for stock and pack qty */
.save-sm-btn {
  display: block; font-size: 0.65rem; background: #1f2937; color: #9ca3af;
  border: none; border-radius: 0.2rem;
  padding: 0.25rem 0.4rem; cursor: pointer; margin-top: 0.2rem;
}
.save-sm-btn:hover { background: #374151; }

/* Dashed "+ Image" upload trigger button */
.img-upload-btn {
  font-size: 0.6rem; background: #1f2937; color: #6b7280;
  border: 1px dashed #374151; border-radius: 0.2rem;
  padding: 0.2rem 0.4rem; cursor: pointer;
}
.img-upload-btn:hover { color: #9ca3af; border-color: #4b5563; }

/* Red delete button in the product row */
.delete-product-btn {
  background: #7f1d1d; color: #fca5a5; font-weight: 900;
  font-size: 0.6rem; text-transform: uppercase;
  padding: 0.3rem 0.5rem; border: none; border-radius: 0.2rem;
  cursor: pointer; margin-left: 0.3rem;
}
.delete-product-btn:hover { background: #991b1b; }

/* Formula validation hint */
.formula-hint { display: inline-block; font-size: 0.65rem; margin-left: 0.3rem; }

/* ── User price override input ── */
/* Wrapper positions the $ prefix symbol */
.price-override-wrap  { position: relative; display: inline-block; vertical-align: middle; }
.price-override-sym {
  position: absolute; left: 0.4rem; top: 50%; transform: translateY(-50%);
  color: #4ade80; font-size: 0.75rem; pointer-events: none; font-weight: 700;
}
.up-price-override {
  width: 6.5rem; background: #111827; border: 1px solid #374151;
  color: #9ca3af; border-radius: 0.25rem;
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  font-size: 0.8rem; font-weight: 700;
}
.up-price-override:focus { outline: none; border-color: #eab308; }
/* JS sets border-color:#4ade80 and color:#4ade80 when a flat price override is active */

/* Thumbnail shown after image upload */
.prod-thumb {
  width: 40px; height: 40px; object-fit: contain;
  cursor: pointer; border-radius: 0.2rem; background: #111827;
}