:root {
  --primary: #1f64ff;
  --primary-hover: #174ed1;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #dee0e3;
  --text: #1f2329;
  --muted: #646a73;
  --danger: #f54a45;
  --danger-hover: #d93631;
  --success: #34a853;
  --warning: #f59e0b;
  --spec-bg: #f8f9fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  padding: 12px 18px 40px;
  min-height: 100vh;
  width: 100%;
}

/* TOP LOADING BAR & TOAST */
.top-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f64ff, #34a853, #f59e0b, #1f64ff);
  background-size: 200% 100%;
  animation: loadingGradient 1.2s linear infinite;
  z-index: 99999;
  width: 0%;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

@keyframes loadingGradient {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.loading-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.loading-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* CONTAINER & NAVIGATION - FULL WIDTH FLUID RESPONSIVE */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.user-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #edf2fc;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* GLOBAL NAV TABS */
.main-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.main-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.main-nav-tab:hover {
  color: var(--primary);
  background: #f8faff;
  border-radius: 6px 6px 0 0;
}

.main-nav-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: #f8faff;
  border-radius: 6px 6px 0 0;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

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

.btn-secondary {
  background: #f2f3f5;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #e4e6eb;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ACTION BUTTONS IN TABLE */
.btn-group-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-action-view {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-action-pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-pdf:hover { background: #fee2e2; }

.btn-action-excel {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-excel:hover { background: #dcfce7; }

.btn-action-edit {
  background: #edf2fc;
  color: var(--primary);
  border: 1px solid #d0deff;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-edit:hover { background: #dce7ff; }
.btn-action-edit:disabled { opacity: 0.6; cursor: wait; }

.btn-action-delete {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #ffa39e;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-delete:hover {
  background: #ffccc7;
  border-color: #ff7875;
}

.btn-action-lock {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.btn-action-lock:hover { background: #d1fae5; }

.btn-action-locked {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  cursor: not-allowed;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
}

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.data-table th {
  text-align: left;
  padding: 8px 8px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.data-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.data-table tr:hover {
  background: #f8faff;
}

.data-table input,
.data-table select {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.data-table select {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-po {
  background: #e8f3ff;
  color: #1f64ff;
}

.badge-so {
  background: #eaf8f0;
  color: #2e7d32;
}

.badge-override {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-auto {
  background: #f3f4f6;
  color: #4b5563;
}

/* FORM ELEMENTS */
.card-section {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.card-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 14px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f2f3f5;
  color: var(--muted);
  cursor: not-allowed;
}

/* ALERTS */
#alertBox {
  display: none;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

#alertBox.success {
  background: #e6f4ea;
  color: var(--success);
}

#alertBox.error {
  background: #fde8e8;
  color: var(--danger);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex !important;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* KPI CARDS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.kpi-title {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* BLOCKED SCREEN */
.blocked-screen {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.blocked-screen.active {
  display: block;
}

.blocked-screen h3 {
  font-size: 18px;
  color: var(--danger);
  margin-bottom: 10px;
}

.blocked-screen p {
  color: var(--muted);
  font-size: 14px;
}

/* VIEW SECTIONS */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* PO & SO SPECIALIZED LAYOUTS */
.doc-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.doc-header-banner.banner-po {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.doc-header-banner.banner-so {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}

.doc-title-text {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-po .doc-title-text { color: #1e40af; }
.banner-so .doc-title-text { color: #166534; }

.two-column-so-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .two-column-so-grid {
    grid-template-columns: 1fr;
  }
}

.side-card {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.side-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.money-words-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: #334155;
  font-style: italic;
  line-height: 1.4;
}

.item-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.quick-template-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-template-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* CUSTOMER PRICING STYLES */
.pricing-matrix-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
  white-space: nowrap;
}

.price-input-cell {
  width: 110px;
  padding: 5px 8px;
  font-size: 12px;
  text-align: right;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.price-input-cell:focus {
  border-color: var(--primary);
  background: #f0fdf4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.price-input-cell.has-custom {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.price-badge-custom {
  font-size: 10px;
  background: #dbeafe;
  color: #1e40af;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  margin-left: 3px;
}

.pricing-view-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.pricing-view-tab {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.pricing-view-tab:hover {
  color: var(--primary);
}

.pricing-view-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* CUSTOMER PILLS & PRICING HERO SELECTOR */
.pricing-hero-selector {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-pills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 22px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.customer-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.customer-pill.active {
  background: linear-gradient(135deg, #1f64ff, #2563eb);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(31, 100, 255, 0.35);
  transform: translateY(-1px);
}

.customer-pill .pill-badge {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.07);
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}

.customer-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pricing-select-input {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 100, 255, 0.15);
}

/* REAL-TIME FEEDBACK FOR PRICING INPUTS & SAVE BUTTONS */
.price-input-cell.price-cell-dirty {
  background: #ecfdf5 !important;
  border: 1.5px solid #059669 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2) !important;
}

.price-input-cell.price-cell-saved {
  animation: flashSaved 1.2s ease;
}

@keyframes flashSaved {
  0% { background-color: #a7f3d0; border-color: #059669; }
  100% { background-color: transparent; }
}

.btn-row-save {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-row-save.dirty {
  background: #059669 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
  font-weight: 700;
}

.btn-row-save.dirty:hover {
  background: #047857 !important;
  transform: translateY(-1px);
}

.btn-row-save.clean {
  background: #94a3b8;
  color: #ffffff;
  opacity: 0.5;
  box-shadow: none;
}

.btn-row-save.clean:hover {
  opacity: 0.8;
}

#batchSaveBtn {
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  font-weight: 700;
  transition: all 0.2s ease;
}
#batchSaveBtn:hover {
  background: #047857 !important;
  transform: translateY(-1px);
}

/* ==========================================
   PO ⟷ SO PAIRS & FULFILLMENT UI STYLES
   ========================================== */

/* Progress Bar Component */
.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-fill.po {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.progress-fill.incomplete {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-fill.finished {
  background: linear-gradient(90deg, #10b981, #047857);
}

/* Sub-view Nav Pills */
.sub-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.sub-view-tab {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.sub-view-tab:hover {
  color: var(--primary);
}

.sub-view-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Counterpart Linking Card */
.counterpart-hero-card {
  background: linear-gradient(135deg, #f0f7ff, #f8fafc);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(31, 100, 255, 0.06);
}

.counterpart-hero-card.unlinked {
  background: #fffbeb;
  border-color: #fde68a;
}

.counterpart-info-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.counterpart-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.counterpart-hero-card.unlinked .counterpart-icon {
  background: #fef3c7;
  color: #b45309;
}

/* PO ⟷ SO Pair Cards Grid */
.pairs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pair-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pair-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pair-card-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.pair-columns-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding: 16px;
  gap: 16px;
}

@media (max-width: 860px) {
  .pair-columns-container {
    grid-template-columns: 1fr;
  }
}

.pair-order-box {
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.pair-order-box.po {
  border-left: 4px solid #3b82f6;
}

.pair-order-box.so {
  border-left: 4px solid #10b981;
}

.pair-divider-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
}

.pair-link-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.pair-metrics-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

/* Fulfillment Modal Styling */
.fulfillment-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.fulfillment-item-row:last-child {
  border-bottom: none;
}

.badge-unfulfilled {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-completed {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-ongoing {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}



