/* MAHALE Supply Platform Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --primary-accent: #10b981;
  --secondary: #0284c7;
  --dark-slate: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-surface: #ffffff;
  --bg-muted: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-wrap:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.18);
  border-color: #a7f3d0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #059669, #0284c7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--dark-slate);
}

.nav-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Action Badges in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.cart-badge {
  background: #ffffff;
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Container */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: 20px;
  color: #ffffff;
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  max-width: 820px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.05rem;
  color: #d1fae5;
  max-width: 760px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Filter Bar */
.filter-bar {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: var(--dark-slate);
}

.filter-pill.active {
  background: var(--primary-light);
  border-color: #6ee7b7;
  color: var(--primary-dark);
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

.search-input-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  outline: none;
  font-weight: 500;
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img {
  transform: scale(1.05);
}

.grade-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.cat-badge.produce { background: #dcfce7; color: #166534; }
.cat-badge.meat { background: #fee2e2; color: #991b1b; }
.cat-badge.fish { background: #dbeafe; color: #1e40af; }
.cat-badge.export { background: #fef9c3; color: #854d0e; }

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-origin {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}

.price-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid #f1f5f9;
}

.price-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.02em;
}

.price-main span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bulk-subtext {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 700;
  margin-top: 2px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  width: 34px;
  height: 38px;
  cursor: pointer;
  font-weight: 800;
  color: #334155;
  transition: background 0.1s;
}

.qty-btn:hover { background: #e2e8f0; }

.qty-input {
  width: 48px;
  border: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  outline: none;
}

.add-order-btn {
  flex-grow: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.add-order-btn:hover {
  background: var(--primary-dark);
}

/* Volume Left per Product Badges & Meters */
.volume-float-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.stock-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.volume-meter-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.volume-meter-card.stock-high {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.volume-meter-card.stock-med {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.volume-meter-card.stock-low {
  background: #fff7ed;
  border-color: #fed7aa;
}

.volume-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.volume-meter-label {
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-meter-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.volume-meter-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.volume-meter-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.volume-meter-card.stock-high .volume-meter-bar {
  background: linear-gradient(90deg, #10b981, #059669);
}

.volume-meter-card.stock-med .volume-meter-bar {
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

.volume-meter-card.stock-low .volume-meter-bar {
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.volume-meter-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-volume-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

/* CRM Receivables Push Badges & Buttons */
.badge-receivable-pod {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.badge-receivable-advance {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.badge-receivable-settled {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.btn-push-receivables {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.15s;
}

.btn-push-receivables:hover {
  background: #c2410c;
}

/* Quick Add Bar in Inventory Manager */
.quick-add-bar {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.quick-add-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

/* Market Rates Dropdown & Cards */
.market-ticker-accordion {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.market-ticker-header {
  padding: 16px 20px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--dark-slate);
  font-size: 0.95rem;
  user-select: none;
}

.market-ticker-dropdown-body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.ticker-pill-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.ticker-pill-box .title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ticker-pill-box .price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #059669;
}

.ticker-pill-box .sub {
  font-size: 0.72rem;
  color: #475569;
}

/* Market Cards */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.market-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.commodity-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.swahili-badge {
  font-size: 0.75rem;
  color: #0284c7;
  font-weight: 700;
}

.rate-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.rate-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.rate-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.market-table th, .market-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.market-table th {
  color: var(--text-muted);
  font-weight: 700;
  background: #f8fafc;
}

.sourcing-hubs-box {
  border-top: 1px dashed var(--border-color);
  padding-top: 14px;
}

.hub-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}

.hub-card-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  border: 1px solid #f1f5f9;
}

.hub-card-name {
  font-weight: 800;
  color: var(--dark-slate);
  display: flex;
  justify-content: space-between;
}

.hub-contact-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}

/* Margin Calculator */
.calc-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  outline: none;
  background: #ffffff;
  font-weight: 600;
}

.calc-results-panel {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #ffffff;
  padding: 22px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  text-align: center;
}

.calc-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
}

/* CRM Leads Tab */
.crm-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline:hover {
  background: #f1f5f9;
  color: var(--dark-slate);
}

.lead-pipeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lead-stat-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.lead-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.lead-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.lead-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.lead-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.lead-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.lead-area-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.lead-cuisine {
  font-size: 0.8rem;
  color: #0284c7;
  font-weight: 700;
  margin-bottom: 6px;
}

.lead-details {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.5;
}

.lead-status-select {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  outline: none;
}

.lead-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.lead-action-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover { background: #20ba5a; }

.btn-call {
  background: #0284c7;
  color: #ffffff;
}

.btn-call:hover { background: #0369a1; }

.btn-script {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-color);
}

.btn-script:hover { background: #e2e8f0; }

/* Admin Inventory Management */
.admin-table-wrap {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: #f8fafc;
  font-weight: 800;
  color: #475569;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.stock-input-inline {
  width: 75px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  text-align: right;
  font-weight: 700;
}

.price-input-inline {
  width: 85px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  text-align: right;
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 26px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-slate);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
}

.modal-close-btn:hover { color: #0f172a; }

/* Cart Row */
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-slate);
}

.cart-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 60;
  border: 1px solid #334155;
}

.toast.show {
  display: flex;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .hero-banner { padding: 24px 20px; }
  .hero-title { font-size: 1.5rem; }
  .quick-add-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .lead-card-grid { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
}

/* =========================================================================
   MARKETPLACE: DIVISION SWITCHER (LOCAL HORECA VS GLOBAL EXPORT)
   ========================================================================= */
.division-switcher-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.division-tab {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.division-tab:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.division-tab.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15);
}

.division-tab-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.division-tab-content {
  flex: 1;
}

.division-tab-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 3px;
}

.division-tab.active .division-tab-title {
  color: var(--primary-dark);
}

.division-tab-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.division-status-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =========================================================================
   MARKETPLACE: VERIFIED PRODUCER HUBS (GLOVO MULTI-STORE ROWS)
   ========================================================================= */
.suppliers-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.suppliers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.suppliers-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 4px;
}

.suppliers-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.suppliers-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suppliers-filter-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.btn-clear-supplier {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-supplier:hover {
  background: #fee2e2;
}

.suppliers-carousel-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: -8px;
  -webkit-overflow-scrolling: touch;
}

.suppliers-carousel-wrap::-webkit-scrollbar {
  height: 6px;
}

.suppliers-carousel-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.suppliers-carousel-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.suppliers-carousel {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

.supplier-hub-card {
  width: 280px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.supplier-hub-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.supplier-hub-card.active {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18);
}

.supplier-hub-card.active::after {
  content: "SELECTED HUB";
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.supplier-hub-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.supplier-hub-avatar {
  font-size: 2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.supplier-hub-names {
  flex: 1;
  min-width: 0;
}

.supplier-hub-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.supplier-hub-badge {
  font-size: 0.72rem;
  color: #047857;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supplier-hub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.supplier-hub-rating {
  font-weight: 800;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 3px;
}

.supplier-hub-sla {
  color: #475569;
  font-weight: 600;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.supplier-hub-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.supplier-hub-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: #ffffff;
  color: #475569;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* =========================================================================
   CURRENCY SWITCHER (EXPORT MARKET)
   ========================================================================= */
.filter-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.currency-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.currency-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.currency-btns {
  display: flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 2px;
}

.currency-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-btn.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.exchange-rate-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

/* =========================================================================
   PRODUCT CARD SUPPLIER ATTRIBUTION & EXPORT PRICING
   ========================================================================= */
.product-supplier-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.74rem;
}

.product-supplier-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-supplier-avatar {
  font-size: 1rem;
}

.product-supplier-rating {
  color: #d97706;
  font-weight: 800;
  white-space: nowrap;
}

.export-specs-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #1e40af;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.export-price-usd {
  font-size: 1.4rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
}

.export-price-kes-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* Ocean to Plate & Seasonal Availability Badges */
.ocean-direct-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.2);
  letter-spacing: 0.01em;
}

.seasonal-timeline-badge {
  background: #f0fdfa;
  border: 1.5px solid #5eead4;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seasonal-timeline-badge strong {
  color: #115e59;
}

/* Export Volume Moved & Catalog Sorting */
.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.sort-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.sort-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.sort-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.export-volume-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #6366f1;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.export-volume-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.export-volume-icon {
  font-size: 0.85rem;
}

.export-volume-label {
  color: #64748b;
  font-weight: 600;
}

.export-volume-val {
  color: #1e1b4b;
  font-weight: 800;
  font-size: 0.78rem;
}

.export-rank-tag {
  background: #ede9fe;
  color: #4338ca;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border: 1px solid #ddd6fe;
}

/* =============================================================================
   PRODUCT SOURCING & SUPPLIER VIEW PAGE STYLING (UI/UX ENHANCEMENT)
   ============================================================================= */

/* Product Card Sourcing View Action Button */
.view-sourcing-btn {
  width: 100%;
  background: #f0fdf4;
  color: #047857;
  border: 1.5px solid #86efac;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.view-sourcing-btn:hover {
  background: #dcfce7;
  border-color: #22c55e;
  color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.16);
}

/* View Page Navigation & Breadcrumbs Bar */
.view-page-nav-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.back-to-storefront-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.back-to-storefront-btn:hover {
  background: #f0fdf4;
  border-color: #10b981;
  color: #047857;
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}

.view-page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
}

.breadcrumb-root {
  color: #059669;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-root:hover {
  text-decoration: underline;
  color: #047857;
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-weight: 600;
}

.breadcrumb-field {
  color: #0284c7;
  font-weight: 700;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid #bae6fd;
}

.breadcrumb-current {
  color: #0f172a;
  font-weight: 800;
}

/* Fast Field / Commodity Quick Switcher Bar */
.commodity-quick-switcher-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.commodity-switcher-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commodity-switcher-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.commodity-switcher-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.commodity-switcher-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.commodity-switcher-pill.active {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
}

/* Spacious View Page 2-Column Responsive Layout */
.product-sourcing-view-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 26px;
  margin-bottom: 36px;
  align-items: start;
}

@media (max-width: 1120px) {
  .product-sourcing-view-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Product Showcase & Kitchen Order Hub */
.view-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 90px;
}

.view-product-hero-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: #0f172a;
  overflow: hidden;
}

.view-product-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.view-product-hero-img-wrap:hover .view-product-hero-img {
  transform: scale(1.04);
}

.view-product-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.view-product-body {
  padding: 22px;
}

.view-product-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.view-product-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Interactive Kitchen Order Console */
.view-order-console {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.view-order-console-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.view-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.view-qty-btn {
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.view-qty-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.view-qty-input {
  width: 75px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.view-preset-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.view-preset-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-preset-pill:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.view-subtotal-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.view-subtotal-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

.view-add-order-btn {
  width: 100%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
  transition: all 0.2s ease;
}

.view-add-order-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

/* Receiving Bay Inspection & Operations SOP Box */
.view-receiving-sop-box {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
}

.view-receiving-sop-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-receiving-sop-text {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.5;
}

/* Right Column: Suppliers From this Field & Sourcing Intelligence */
.view-field-intel-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Field Header Banner */
.field-header-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.field-header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.field-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-header-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-header-sub {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

/* Suppliers From This Field Grid */
.field-suppliers-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.field-suppliers-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.field-suppliers-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.field-supplier-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.field-supplier-card:hover {
  border-color: #10b981;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.field-supplier-card.is-primary-hub {
  border-color: #86efac;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.08);
}

.field-supplier-card.is-primary-hub::before {
  content: "⭐ PRIMARY HUB SUPPLIER";
  position: absolute;
  top: -10px;
  right: 14px;
  background: #059669;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.supplier-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.supplier-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supplier-card-avatar {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.supplier-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.supplier-card-badge {
  font-size: 0.72rem;
  color: #0284c7;
  font-weight: 700;
}

.supplier-card-rating {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid #fde68a;
}

.supplier-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 0.76rem;
}

.supplier-spec-item {
  display: flex;
  flex-direction: column;
}

.supplier-spec-label {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.supplier-spec-val {
  color: #0f172a;
  font-weight: 800;
}

.supplier-specialties-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.supplier-specialty-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.supplier-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
}

.supplier-contact-link {
  color: #059669;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  transition: all 0.15s;
}

.supplier-contact-link:hover {
  background: #dcfce7;
  color: #047857;
}

/* Related Field Items Grid */
.related-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.related-field-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-field-item-card:hover {
  border-color: #10b981;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.related-item-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.related-item-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.related-item-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
}




