@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Anti-Flicker Cloaking Rule */
[v-cloak] {
  display: none !important;
}

:root {
  /* Royal Indigo & Violet Modern Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  
  --secondary: #0ea5e9;
  --secondary-light: #f0f9ff;
  --secondary-border: #bae6fd;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  
  --neutral: #64748b;
  --neutral-light: #f8fafc;
  --neutral-border: #e2e8f0;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.25);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid var(--primary-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons - Balanced Text & Padding */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Active Nav Button with Thick Radiant Coloured Underline */
.btn.active,
.btn-secondary.active {
  color: #4338ca !important;
  font-weight: 700 !important;
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
  position: relative !important;
}

.btn.active::after,
.btn-secondary.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 8px;
  right: 8px;
  height: 3.5px;
  background: linear-gradient(90deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -2px 8px rgba(79, 70, 229, 0.55), 0 0 10px rgba(99, 102, 241, 0.4);
}

.btn-auth {
  background: #0f172a;
  color: white;
}
.btn-auth:hover {
  background: #1e293b;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.775rem;
}

/* User Profile Dropdown Component */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.profile-badge-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-badge-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.775rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.user-badge-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.user-badge-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.775rem;
}

.user-badge-role {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropdown-chevron {
  color: #64748b;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.dropdown-chevron.chevron-rotated {
  transform: rotate(180deg);
}

/* Floating Profile Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.15), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
  padding: 8px;
  z-index: 1000;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
}

.dropdown-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dropdown-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-role-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropdown-role-badge.role-admin {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.dropdown-role-badge.role-user {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 4px;
}

.dropdown-section-label {
  padding: 6px 10px 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: #334155;
}

.dropdown-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dropdown-menu-item .menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.dropdown-menu-item:hover .menu-item-icon {
  transform: scale(1.05);
}

.menu-item-icon.icon-blue {
  background: #eff6ff;
  color: #3b82f6;
}

.menu-item-icon.icon-purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.menu-item-icon.icon-red {
  background: #fef2f2;
  color: #ef4444;
}

.menu-item-icon.icon-gray {
  background: #f1f5f9;
  color: #64748b;
}

.menu-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.menu-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
}

.menu-item-desc {
  font-size: 0.7rem;
  color: #94a3b8;
}

.dropdown-menu-item.danger-item:hover {
  background: #fef2f2;
  color: #dc2626;
}

.dropdown-menu-item.danger-item:hover .menu-item-title {
  color: #dc2626;
}

.dropdown-menu-item.logout-item:hover {
  background: #f8fafc;
  color: #dc2626;
}

.dropdown-menu-item.logout-item:hover .icon-gray {
  background: #fee2e2;
  color: #dc2626;
}

/* Nav Tabs */
.nav-tabs-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.tab-btn.active {
  color: #4338ca;
  font-weight: 800;
  background: rgba(79, 70, 229, 0.08);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: linear-gradient(90deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 10px rgba(79, 70, 229, 0.55), 0 0 12px rgba(99, 102, 241, 0.4);
}

.tab-count {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
}
.tab-btn.active .tab-count {
  background: var(--primary-light);
  color: var(--primary);
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px;
}

/* Settings Bar */
.settings-banner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.settings-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cost-input-badge {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 6px;
  gap: 3px;
}
.cost-input-badge span {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.cost-input-badge input {
  width: 52px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Switch Toggle */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  width: 32px;
  height: 18px;
  background-color: #cbd5e1;
  border-radius: 18px;
  position: relative;
  transition: .25s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .25s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
}
.toggle-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hero Profit Card - Balanced & Elegant */
.hero-profit-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-profit-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.hero-main-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c7d2fe;
}

.hero-amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.hero-amount.profit-positive {
  color: #34d399;
}
.hero-amount.profit-negative {
  color: #f87171;
}

.hero-substats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-substat-item {
  display: flex;
  flex-direction: column;
}
.hero-substat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hero-substat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.hero-right-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.breakdown-box {
  display: flex;
  flex-direction: column;
}
.breakdown-box .box-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}
.breakdown-box .box-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.kpi-delivered::before { background: var(--success); }
.kpi-rto::before { background: var(--warning); }
.kpi-return::before { background: var(--danger); }
.kpi-cancelled::before { background: var(--neutral); }
.kpi-exchange::before { background: var(--secondary); }
.kpi-total::before { background: var(--primary); }

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kpi-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-delivered .kpi-icon-wrap { background: var(--success-light); color: var(--success); }
.kpi-rto .kpi-icon-wrap { background: var(--warning-light); color: var(--warning); }
.kpi-return .kpi-icon-wrap { background: var(--danger-light); color: var(--danger); }
.kpi-cancelled .kpi-icon-wrap { background: var(--neutral-light); color: var(--neutral); }
.kpi-exchange .kpi-icon-wrap { background: var(--secondary-light); color: var(--secondary); }
.kpi-total .kpi-icon-wrap { background: var(--primary-light); color: var(--primary); }

.kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.kpi-subtext {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Charts Section */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 840px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.chart-body {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table Section Card */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 18px;
}

.table-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.search-input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  outline: none;
  background: #f8fafc;
  transition: all 0.15s ease;
}
.search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.filter-pills {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  background: #f1f5f9;
}
.filter-pill.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 700;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

.data-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.sku-code-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}
.product-name-text {
  font-weight: 500;
  color: var(--text-main);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

/* Rate input field inside table */
.rate-input-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-xs);
  padding: 3px 6px;
  gap: 4px;
  width: 105px;
  transition: all 0.15s ease;
}
.rate-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.rate-input-box span {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.rate-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--text-main);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-delivered { background: var(--success-light); color: #047857; border: 1px solid var(--success-border); }
.badge-rto { background: var(--warning-light); color: #b45309; border: 1px solid var(--warning-border); }
.badge-return { background: var(--danger-light); color: #b91c1c; border: 1px solid var(--danger-border); }
.badge-cancelled { background: var(--neutral-light); color: #475569; border: 1px solid var(--neutral-border); }
.badge-exchange { background: var(--secondary-light); color: #0369a1; border: 1px solid var(--secondary-border); }

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}
.text-profit {
  color: #059669;
  font-weight: 700;
}
.text-loss {
  color: #dc2626;
  font-weight: 700;
}

/* Dropzone */
.dropzone-container {
  max-width: 680px;
  margin: 30px auto;
  text-align: center;
}

.dropzone-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.dropzone-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}
.dropzone-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}
@media (max-width: 650px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-title {
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* AUTH MODAL & OVERLAY - EXACT REPLICA OF MEESHOPROFIT WITH OUR COLOR PALETTE */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  padding: 20px;
  animation: authFadeIn 0.2s ease-out;
}
@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: authZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes authZoomIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header .brand-logo-icon {
  margin: 0 auto 12px;
  width: 44px;
  height: 44px;
}
.auth-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.auth-subtitle {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.auth-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  margin-bottom: 16px;
}
.auth-error span {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
}
.auth-error button {
  border: none;
  background: none;
  color: #dc2626;
  cursor: pointer;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.auth-input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  font-size: 0.875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}
.auth-input::placeholder {
  color: #cbd5e1;
}
.auth-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.auth-eye {
  position: absolute;
  right: 12px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.auth-eye:hover {
  color: #475569;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.auth-submit:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}
.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
}
@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.auth-divider:before, .auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-divider span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-google:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.auth-toggle {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  margin: 16px 0 0;
}
.auth-toggle a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  cursor: pointer;
}
.auth-toggle a:hover {
  text-decoration: underline;
}

/* GENERIC ACTION MODAL (BULK RATE & CONFIRM) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: authFadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: authZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-badge.icon-primary { background: var(--primary-light); color: var(--primary); }
.modal-icon-badge.icon-amber { background: var(--warning-light); color: var(--warning); }
.modal-icon-badge.icon-red { background: var(--danger-light); color: var(--danger); }

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.modal-close-btn {
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 0.85rem;
}
.modal-input-group {
  margin-top: 12px;
}
.modal-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-input-wrap .currency-prefix {
  position: absolute;
  left: 12px;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 1rem;
}
.modal-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.15s ease;
  background: #f8fafc;
}
.modal-input-wrap input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.modal-radio-options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.15s ease;
}
.modal-radio-item:hover {
  background: #f1f5f9;
}
.modal-radio-item.selected {
  background: var(--primary-light);
  border-color: var(--primary-border);
}
.modal-radio-item input[type="radio"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Toast Container - Positioned at Top (Never Bottom) */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 440px;
}
@media (max-width: 640px) {
  .toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    max-width: none;
  }
}
.toast-alert {
  pointer-events: auto;
  background: #0f172a;
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 4px 6px -2px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
  max-width: 440px;
}
@keyframes slideInToast {
  from { transform: translateY(-16px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-alert.toast-success { border-left-color: #10b981; }
.toast-alert.toast-warning { border-left-color: #f59e0b; }
.toast-alert.toast-error { border-left-color: #ef4444; }
.toast-alert.toast-info { border-left-color: #0ea5e9; }

/* ==========================================================================
   DESKTOP / MOBILE HEADER & NAVIGATION DRAWER ARCHITECTURE
   ========================================================================== */
.desktop-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.mobile-menu-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.app-mobile-drawer {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12);
  padding: 12px 16px 18px;
  animation: slideDownMenu 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 49;
}
@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.mobile-drawer-link:hover {
  background: #f8fafc;
  color: var(--primary);
}
.mobile-drawer-link.active {
  color: #4338ca;
  background: rgba(79, 70, 229, 0.08);
  font-weight: 700;
  border-left: 3.5px solid #4f46e5;
}

.mobile-drawer-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 10px 0;
}

.mobile-drawer-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-user .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 6px;
}
.mobile-drawer-user .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mobile-drawer-user .user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.mobile-drawer-user .user-email {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.25;
}
.mobile-drawer-link.danger-link {
  color: #dc2626;
}
.mobile-drawer-link.danger-link:hover {
  background: #fef2f2;
}
.landing .mobile-menu--open {
  max-height: 520px !important;
  overflow-y: auto !important;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .app-header {
    padding: 0;
  }
  .header-container {
    padding: 8px 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .desktop-header-actions {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .brand-subtitle-text {
    display: none !important;
  }
  .brand-title {
    font-size: 1.05rem !important;
  }
  .brand-logo-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    width: auto !important;
  }
  .profile-badge-btn .user-badge-meta {
    display: none !important;
  }
  .profile-badge-btn {
    padding: 4px 6px 4px 4px !important;
  }
  .profile-badge-btn .dropdown-chevron {
    display: none !important;
  }
  .nav-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 10px !important;
    scrollbar-width: none !important;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .tab-btn {
    padding: 10px 13px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }
  .tab-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .main-container {
    padding: 12px 10px !important;
  }
  .empty-dashboard-container {
    padding: 20px 8px !important;
  }
  .empty-upload-card {
    padding: 24px 16px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .empty-upload-title {
    font-size: 1.3rem !important;
  }
  .empty-upload-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
  }
  .empty-upload-subtitle code {
    word-break: break-all !important;
  }
  .empty-upload-dropzone {
    padding: 24px 14px !important;
  }
  .empty-features-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }
  .settings-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .settings-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .hero-amount {
    font-size: 1.85rem;
  }
  .hero-substats {
    gap: 12px;
  }
  .hero-substat-val {
    font-size: 0.95rem;
  }
  .hero-right-breakdown {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .kpi-card {
    padding: 10px 12px;
  }
  .kpi-value {
    font-size: 1.25rem;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* Empty Dashboard State */
.empty-dashboard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
  min-height: 520px;
}
.empty-upload-card {
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}
.empty-upload-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.empty-upload-icon-pulse {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}
.empty-upload-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.empty-upload-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 28px;
}
.empty-upload-subtitle code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #475569;
}
.empty-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 32px 20px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}
.empty-upload-dropzone:hover {
  border-color: #4f46e5;
  background: #f5f7ff;
  transform: translateY(-1px);
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dropzone-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.dropzone-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}
.empty-upload-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.empty-upload-divider::before,
.empty-upload-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.empty-upload-divider span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #94a3b8;
}
.empty-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}
.empty-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #475569;
}
.feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-dot.green { background: #10b981; }
.feat-dot.blue { background: #3b82f6; }
.feat-dot.red { background: #ef4444; }
.feat-dot.purple { background: #8b5cf6; }

@media (max-width: 640px) {
  .empty-upload-card {
    padding: 28px 20px;
  }
  .empty-features-grid {
    grid-template-columns: 1fr;
  }
  .empty-upload-title {
    font-size: 1.35rem;
  }
}

/* Ad Placements & Sponsored Banners */
.ad-container {
  margin: 18px 0;
  position: relative;
  text-align: center;
}
.ad-container .ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ad-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.slot-header_top {
  margin: 12px 0 16px;
}
.slot-sidebar {
  margin: 16px 0;
}
.slot-blog_bottom {
  margin: 28px 0 16px;
}

/* In-Article Mid Content Ad Placement */
.in-article-ad-box {
  margin: 32px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  clear: both;
}
.in-article-ad-box .ad-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
}
.in-article-ad-card {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  text-align: left;
}
.ad-sponsored-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* Master Professional Footer Bar */
.app-master-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 48px 0 28px;
  margin-top: 64px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand-col .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand-col .brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}
.footer-brand-col .brand-badge {
  background: rgba(79, 70, 229, 0.25);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
  margin-bottom: 16px;
}
.footer-compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}
.footer-col h5 {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-nav-list a:hover {
  color: #818cf8;
  transform: translateX(2px);
}
.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}
.footer-copy-text {
  color: #64748b;
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-bottom-links a:hover {
  color: #cbd5e1;
}
@media (max-width: 860px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 580px) {
  .app-master-footer {
    padding: 36px 0 24px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Account Settings Modal & Profile Styles */
.profile-settings-card {
  max-width: 540px;
  width: 100%;
}

.modal-subtitle {
  font-size: 0.775rem;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 500;
}

.profile-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.profile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.profile-tab-btn:hover {
  background: #ffffff;
  color: #1e293b;
  border-color: #e2e8f0;
}

.profile-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.profile-tab-btn.danger-tab:hover {
  color: #dc2626;
}

.profile-tab-btn.danger-tab.active {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.profile-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  animation: fadeInAlert 0.15s ease;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-alert.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.profile-alert.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.profile-tab-body {
  padding: 18px 20px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 18px;
}

.profile-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.input-hint-text {
  display: block;
  font-size: 0.725rem;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.3;
}

.danger-zone-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 14px;
}

.danger-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.danger-box-header h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #991b1b;
}

.danger-zone-box p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #7f1d1d;
}

.danger-zone-box strong {
  color: #991b1b;
}

.auth-input.danger-border:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-danger-solid {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-danger-solid:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

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

.modal-icon-badge.icon-red {
  background: #fee2e2;
  color: #dc2626;
}

/* Standard Form Controls */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background-color: #ffffff;
}
.form-control::placeholder {
  color: #94a3b8;
}
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  appearance: none;
}

/* ==========================================================================
   LOCAL SELLER CALCULATOR TOOLS STYLES (Zero External APIs, 100% Offline)
   ========================================================================== */
.tool-calc-container {
  margin-bottom: 40px;
  animation: toolFadeIn 0.25s ease-out;
}

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

.tool-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.tool-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-emerald { background: #ecfdf5; color: #059669; border: 1.5px solid #a7f3d0; }
.icon-rose { background: #fff1f2; color: #e11d48; border: 1.5px solid #fecdd3; }
.icon-purple { background: #faf5ff; color: #7c3aed; border: 1.5px solid #ddd6fe; }

.tool-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.tool-banner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.tool-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}
.pill-green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.pill-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pill-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.pill-purple { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }

.tool-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.preset-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.preset-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
  transform: translateY(-1px);
}

.tool-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .tool-grid-2col {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header-styled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.card-title-styled {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.card-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tool-form-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-result-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  color: #1e293b;
}
.field-tooltip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  cursor: help;
}
.field-subtext {
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tool-input-prefix-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}
.tool-input-prefix-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.tool-input-prefix-box.highlight-border {
  border-color: var(--primary-border);
  background: #faf5ff;
}
.input-symbol {
  padding: 10px 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.875rem;
  border-right: 1px solid var(--border);
  user-select: none;
}
.tool-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}
.helper-text {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tool-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .tool-row-2col {
    grid-template-columns: 1fr;
  }
}

.weight-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 520px) {
  .weight-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.weight-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.weight-pill-btn .slab-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
}
.weight-pill-btn .slab-rate {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}
.weight-pill-btn.active {
  border-color: var(--primary);
  background: #eef2ff;
}
.weight-pill-btn.active .slab-rate {
  color: var(--primary);
}

.gst-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gst-pill-btn {
  padding: 8px 4px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.gst-pill-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.status-indicator-pill {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}
.status-indicator-pill.healthy { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-indicator-pill.moderate { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-indicator-pill.risky { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-indicator-pill.loss { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.kpi-hero-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
}
.kpi-hero-box.healthy { background: #f0fdf4; border-color: #bbf7d0; }
.kpi-hero-box.moderate { background: #f0f9ff; border-color: #bae6fd; }
.kpi-hero-box.risky { background: #fffbeb; border-color: #fde68a; }
.kpi-hero-box.loss { background: #fef2f2; border-color: #fecaca; }

.kpi-hero-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-hero-sub {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.kpi-hero-val {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.kpi-hero-note {
  font-size: 0.7rem;
  color: #64748b;
}
.kpi-hero-divider {
  width: 1px;
  height: 48px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 16px;
}
@media (max-width: 520px) {
  .kpi-hero-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .kpi-hero-divider {
    display: none;
  }
}

.tool-kpi-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sub-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sub-kpi-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.sub-kpi-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.sub-kpi-hint {
  font-size: 0.675rem;
  color: #94a3b8;
}

.ledger-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.ledger-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
}
.ledger-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.ledger-table tr:last-child {
  border-bottom: none;
}
.ledger-title {
  padding: 8px 0;
  font-size: 0.825rem;
  color: #334155;
}
.ledger-val {
  padding: 8px 0;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ledger-total-row {
  border-top: 2px solid #e2e8f0 !important;
  background: #f8fafc;
}
.ledger-total-row td {
  padding: 12px 6px !important;
}

.pro-advice-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.pro-advice-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 4px;
}
.pro-advice-text {
  font-size: 0.775rem;
  color: #6b21a8;
  line-height: 1.45;
  margin: 0;
}

.return-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .return-comparison-grid {
    grid-template-columns: 1fr;
  }
}
.return-box {
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rto-box { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.cust-box { background: #fef2f2; border: 1.5px solid #fecaca; }
.return-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.return-box-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}
.return-badge {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}
.rto-badge { background: #dcfce7; color: #15803d; }
.cust-badge { background: #fee2e2; color: #b91c1c; }
.return-box-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: #475569;
}
.return-box-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 6px;
  margin-top: 2px;
  font-size: 0.825rem;
  font-weight: 800;
  color: #0f172a;
}

.strategy-callout-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 14px 16px;
}

