/* ============================================================
   DESIGN SYSTEM — Kranti Pumps Dealer Portal
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;

  --teal-50: #f0fdfa;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 11px;
  --fs-sm: 11.5px;
  --fs-base: 13px;
  --fs-md: 13.5px;
  --fs-lg: 14px;
  --fs-xl: 14.5px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 6px;
  --sp-3: 8px;
  --sp-4: 10px;
  --sp-5: 12px;
  --sp-6: 14px;
  --sp-7: 16px;
  --sp-8: 18px;
  --sp-9: 20px;
  --sp-10: 24px;
  --sp-11: 28px;
  --sp-12: 32px;
  --sp-13: 40px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: var(--zinc-100);
  color: var(--zinc-900);
  font-size: var(--fs-lg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* --- App Shell --- */
.app {
  width: 1440px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  background: var(--zinc-50);
}

/* --- Sidebar --- */
.sidebar {
  width: 248px;
  background: #ffffff;
  border-right: 1px solid var(--zinc-200);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px 8px;
  border-bottom: 1px solid var(--zinc-100);
  margin-bottom: 16px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.logo-text { font-weight: 600; font-size: 15px; color: var(--zinc-900); }
.logo-sub { font-size: var(--fs-xs); color: var(--zinc-500); font-weight: 500; }

.nav-section { margin-bottom: 16px; }
.nav-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 8px;
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-lg);
  color: var(--zinc-700);
  font-weight: 500;
  font-size: var(--fs-md);
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.nav-item:hover { background: var(--zinc-100); }
.nav-item.active { background: var(--blue-50); color: var(--blue-700); }
.nav-item.active svg { color: var(--blue-600); }
.nav-item svg { width: 16px; height: 16px; color: var(--zinc-500); flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--blue-600);
  color: white;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--zinc-100);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.user-card:hover { background: var(--zinc-100); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.user-name { font-weight: 600; font-size: var(--fs-base); color: var(--zinc-900); }
.user-org { font-size: var(--fs-sm); color: var(--zinc-500); }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--red-600);
  transition: background var(--transition-fast);
}
.logout-btn:hover { background: var(--red-50); }

/* --- Main Area --- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* --- Header --- */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--zinc-200);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search { flex: 1; max-width: 420px; position: relative; }
.search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-md);
  font-family: inherit;
  background: var(--zinc-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search input:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--zinc-400); }
.kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  color: var(--zinc-500);
  font-family: inherit;
}

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

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--zinc-200);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}
.icon-btn:hover { background: var(--zinc-100); }
.icon-btn svg { width: 16px; height: 16px; color: var(--zinc-600); }

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--red-500);
  border-radius: var(--radius-full);
  border: 1.5px solid #fff;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--zinc-900);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--zinc-800); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: #ffffff;
  color: var(--zinc-700);
  border: 1px solid var(--zinc-200);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-secondary:hover { background: var(--zinc-100); }
.btn-secondary:active { transform: scale(0.97); }

.btn-danger {
  background: var(--red-600);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
}
.btn-danger:hover { background: var(--red-700); }
.btn-danger:active { transform: scale(0.97); }

/* --- Content Area --- */
.content { padding: 28px 32px 40px; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: var(--fs-base);
  color: var(--zinc-500);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--zinc-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--zinc-700); }
.breadcrumb .current { color: var(--zinc-900); font-weight: 500; }
.breadcrumb-sep { display: flex; align-items: center; color: var(--zinc-400); }

/* --- Page Header --- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: var(--fs-2xl); font-weight: 600; color: var(--zinc-950); letter-spacing: -0.01em; }
.page-sub { font-size: var(--fs-md); color: var(--zinc-500); margin-top: 4px; }

/* --- Announcements --- */
.announce {
  background: linear-gradient(to right, var(--blue-50), #f0f9ff);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.announce-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.announce-body { flex: 1; }
.announce-title { font-weight: 600; font-size: var(--fs-md); color: var(--blue-900); margin-bottom: 2px; }
.announce-text { font-size: var(--fs-base); color: var(--blue-800); }

.announce-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.announce-cta:hover { background: var(--blue-100); }

.announce-close {
  color: var(--blue-800);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.announce-close:hover { background: var(--blue-100); }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: white;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-xl);
  padding: 18px;
  transition: box-shadow var(--transition-normal);
}
.stat:hover { box-shadow: var(--shadow-sm); }

.stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-label { font-size: 12.5px; color: var(--zinc-500); font-weight: 500; }
.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 14px; height: 14px; }
.stat-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.stat-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.stat-icon.green { background: var(--green-50); color: var(--green-600); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple-600); }

.stat-value { font-size: 28px; font-weight: 600; color: var(--zinc-950); letter-spacing: -0.02em; line-height: 1.1; }
.stat-delta { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-delta.up { color: var(--green-600); }
.stat-delta.down { color: var(--red-600); }
.stat-delta.neutral { color: var(--zinc-500); }

/* --- Grid --- */
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* --- Card --- */
.card {
  background: white;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-xl);
}

.card-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--zinc-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title { font-size: var(--fs-xl); font-weight: 600; color: var(--zinc-950); }
.card-sub { font-size: 12.5px; color: var(--zinc-500); margin-top: 2px; }
.card-link { font-size: 12.5px; color: var(--blue-600); text-decoration: none; font-weight: 500; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }

/* --- Table --- */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
th {
  text-align: left;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--zinc-50);
  border-bottom: 1px solid var(--zinc-100);
  white-space: nowrap;
  user-select: none;
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--zinc-700); }
.sort-indicator { display: inline-flex; margin-left: 4px; vertical-align: middle; }

td { padding: 14px 18px; border-bottom: 1px solid var(--zinc-100); color: var(--zinc-700); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--zinc-50); }
tr.clickable-row { cursor: pointer; }

tfoot td { background: var(--zinc-50); font-weight: 600; border-top: 1px solid var(--zinc-200); }

.order-id { font-weight: 600; color: var(--zinc-900); font-family: 'Inter', monospace; font-size: var(--fs-base); }
.cust { font-weight: 500; color: var(--zinc-900); }
.cust-sub { font-size: var(--fs-sm); color: var(--zinc-400); }
.amount { font-weight: 600; color: var(--zinc-900); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: var(--radius-full); flex-shrink: 0; }

.badge.dispatched { background: var(--green-50); color: var(--green-700); }
.badge.dispatched .dot { background: var(--green-500); }
.badge.processing { background: var(--amber-50); color: var(--amber-700); }
.badge.processing .dot { background: var(--amber-500); }
.badge.confirmed { background: var(--blue-50); color: var(--blue-700); }
.badge.confirmed .dot { background: var(--blue-500); }
.badge.ready { background: var(--teal-50); color: var(--teal-700); }
.badge.ready .dot { background: var(--teal-600); }
.badge.review { background: var(--amber-100); color: var(--amber-800); }
.badge.review .dot { background: var(--amber-600); }
.badge.submitted { background: var(--purple-100); color: var(--purple-700); }
.badge.submitted .dot { background: var(--purple-500); }
.badge.approved { background: var(--green-50); color: var(--green-700); }
.badge.approved .dot { background: var(--green-500); }
.badge.rejected { background: var(--red-50); color: var(--red-600); }
.badge.rejected .dot { background: var(--red-500); }
.badge.active { background: var(--green-50); color: var(--green-700); }
.badge.active .dot { background: var(--green-500); }
.badge.deactivated { background: var(--zinc-100); color: var(--zinc-600); }
.badge.deactivated .dot { background: var(--zinc-400); }

/* --- Side Stack --- */
.side-stack { display: flex; flex-direction: column; gap: 16px; }

/* --- Claim Items --- */
.claim-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--zinc-100);
  transition: background var(--transition-fast);
}
.claim-item:last-child { border-bottom: none; }
.claim-item:hover { background: var(--zinc-50); }
.claim-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.claim-id { font-weight: 600; font-size: var(--fs-base); color: var(--zinc-900); font-family: 'Inter', monospace; }
.claim-title { font-size: var(--fs-base); color: var(--zinc-700); margin-bottom: 4px; }
.claim-meta { font-size: var(--fs-sm); color: var(--zinc-400); display: flex; gap: 10px; }

/* --- Quick Actions --- */
.quick-grid { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.quick {
  background: var(--zinc-50);
  border: 1px solid var(--zinc-100);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}
.quick:hover { background: var(--zinc-100); border-color: var(--zinc-200); }

.quick-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--zinc-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-icon svg { width: 14px; height: 14px; color: var(--blue-600); }

.quick-label { font-size: var(--fs-base); font-weight: 600; color: var(--zinc-900); }
.quick-desc { font-size: var(--fs-sm); color: var(--zinc-500); line-height: 1.4; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 16px 18px; }

.pag-btn {
  padding: 6px 12px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--zinc-700);
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition-fast);
}
.pag-btn:hover { background: var(--zinc-100); }
.pag-btn.active { background: var(--zinc-900); color: white; border-color: var(--zinc-900); }
.pag-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.pag-btn.disabled:hover { background: white; }

/* --- Dropdown --- */
.dropdown-wrapper { position: relative; display: inline-block; }

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--zinc-700);
  background: white;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  white-space: nowrap;
}
.dropdown-trigger:hover { border-color: var(--zinc-300); }
.dropdown-trigger svg { width: 14px; height: 14px; color: var(--zinc-400); flex-shrink: 0; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: white;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: 4px;
}
.dropdown-panel.open { display: block; }

.dropdown-option {
  padding: 8px 12px;
  font-size: var(--fs-base);
  color: var(--zinc-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dropdown-option:hover { background: var(--zinc-100); }
.dropdown-option.active { background: var(--blue-50); color: var(--blue-700); font-weight: 500; }

/* --- Toast --- */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  min-width: 280px;
  max-width: 420px;
}

.toast-icon { display: flex; flex-shrink: 0; }
.toast-message { flex: 1; }
.toast-close {
  display: flex;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 2px;
  border: none;
  background: none;
}
.toast-close:hover { opacity: 1; }

.toast-enter {
  animation: slideInRight var(--transition-normal) var(--ease-out);
}
.toast-exit {
  animation: fadeOut var(--transition-normal) ease-in forwards;
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn var(--transition-normal);
}

.modal-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn var(--transition-normal) var(--ease-out);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--zinc-100);
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--zinc-950); }
.modal-close-btn {
  display: flex;
  color: var(--zinc-400);
  padding: 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.modal-close-btn:hover { background: var(--zinc-100); color: var(--zinc-600); }

.modal-body { padding: 16px 20px; font-size: var(--fs-lg); color: var(--zinc-700); line-height: 1.6; }

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--zinc-100);
}

.modal-action { min-width: 80px; justify-content: center; }

/* --- Status Timeline --- */
.status-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0;
  gap: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--zinc-300);
  background: white;
  color: var(--zinc-400);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.timeline-step.completed .timeline-dot {
  background: var(--green-500);
  border-color: var(--green-500);
  color: white;
}

.timeline-step.current .timeline-dot {
  border-color: var(--blue-600);
  background: white;
}

.timeline-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
}

.timeline-step.future .timeline-dot {
  border-color: var(--zinc-200);
  background: var(--zinc-50);
}

.timeline-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--zinc-400);
  text-align: center;
  max-width: 100px;
}

.timeline-step.completed .timeline-label { color: var(--green-700); }
.timeline-step.current .timeline-label { color: var(--blue-700); font-weight: 600; }

.timeline-connector {
  width: 60px;
  height: 2px;
  background: var(--zinc-200);
  margin-top: 14px;
  flex-shrink: 0;
}
.timeline-connector.completed { background: var(--green-500); }

/* --- Order Detail --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--zinc-500);
  margin-bottom: 16px;
  transition: color var(--transition-fast);
}
.back-link:hover { color: var(--zinc-900); }

.order-detail-header { margin-bottom: 20px; }
.order-detail-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.order-timeline-section { margin-bottom: 24px; padding: 0 40px; }

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  background: white;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-xl);
  padding: 16px;
}
.info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--zinc-500);
  margin-bottom: 8px;
}
.info-label svg { width: 14px; height: 14px; }
.info-value { font-size: 15px; font-weight: 600; color: var(--zinc-900); }
.info-sub { font-size: var(--fs-sm); color: var(--zinc-400); margin-top: 2px; }

.tracking-link {
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.tracking-link:hover { text-decoration: underline; }

/* --- Forms --- */
.form-body { padding: 20px 18px; }

.form-section { margin-bottom: 24px; }
.form-section-title { font-size: 15px; font-weight: 600; color: var(--zinc-900); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--zinc-100); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full-width { grid-column: 1 / -1; }

.form-label { font-size: var(--fs-base); font-weight: 500; color: var(--zinc-700); }
.required { color: var(--red-500); }

.form-input {
  padding: 8px 12px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-md);
  font-family: inherit;
  color: var(--zinc-900);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-input:disabled { background: var(--zinc-50); color: var(--zinc-400); cursor: not-allowed; }
.form-input.field-error { border-color: var(--red-500); }
.form-input.field-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.form-textarea { min-height: 100px; resize: vertical; }

.char-counter { font-size: var(--fs-xs); color: var(--zinc-400); text-align: right; }

.input-prefix-wrapper { position: relative; }
.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-md);
  color: var(--zinc-400);
  font-weight: 500;
}
.form-input.has-prefix { padding-left: 28px; }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--zinc-100);
  margin-top: 8px;
}

.error-message {
  font-size: var(--fs-sm);
  color: var(--red-600);
  margin-top: 2px;
}

.dup-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  color: var(--amber-700);
  margin-top: 4px;
  line-height: 1.5;
}
.dup-warning svg { flex-shrink: 0; margin-top: 2px; }

/* --- Serial Feedback --- */
.serial-feedback { margin-top: 4px; }
.feedback-success { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--green-700); }
.feedback-error { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--red-600); }

/* --- Wizard --- */
.wizard-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 40px 8px;
  gap: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.wizard-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--zinc-300);
  background: white;
  color: var(--zinc-400);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.wizard-step.completed .wizard-dot {
  background: var(--green-500);
  border-color: var(--green-500);
  color: white;
}
.wizard-step.current .wizard-dot {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-700);
}
.wizard-step.future .wizard-dot {
  border-color: var(--zinc-200);
  background: var(--zinc-50);
  color: var(--zinc-400);
}

.wizard-label { font-size: var(--fs-sm); font-weight: 500; color: var(--zinc-400); text-align: center; }
.wizard-step.completed .wizard-label { color: var(--green-700); }
.wizard-step.current .wizard-label { color: var(--blue-700); font-weight: 600; }

.wizard-connector {
  width: 80px;
  height: 2px;
  background: var(--zinc-200);
  margin-top: 16px;
  flex-shrink: 0;
}
.wizard-connector.completed { background: var(--green-500); }

.wizard-content { padding: 20px 18px; }

/* --- Review Grid --- */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--zinc-50); border-radius: var(--radius-lg); }
.review-item.full-width { grid-column: 1 / -1; }
.review-label { font-size: var(--fs-sm); font-weight: 500; color: var(--zinc-500); }
.review-value { font-size: var(--fs-md); color: var(--zinc-900); line-height: 1.5; }

/* --- File Upload --- */
.file-upload-zone { margin-bottom: 16px; }

.file-upload-area {
  border: 2px dashed var(--zinc-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.file-upload-area:hover { border-color: var(--blue-300); background: var(--blue-50); }

.file-upload-icon { color: var(--zinc-400); margin-bottom: 8px; }
.file-upload-text { font-size: var(--fs-md); color: var(--zinc-600); margin-bottom: 4px; }
.file-upload-browse { color: var(--blue-600); font-weight: 500; cursor: pointer; }
.file-upload-browse:hover { text-decoration: underline; }
.file-upload-hint { font-size: var(--fs-sm); color: var(--zinc-400); }

.file-upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
}
.file-upload-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-upload-info { flex: 1; }
.file-upload-name { font-size: var(--fs-base); font-weight: 500; color: var(--zinc-900); display: block; }
.file-upload-size { font-size: var(--fs-sm); color: var(--zinc-400); }
.file-upload-remove {
  color: var(--zinc-400);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  border: none;
  background: none;
  display: flex;
}
.file-upload-remove:hover { color: var(--red-500); }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon { color: var(--zinc-300); margin-bottom: 12px; display: flex; justify-content: center; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--zinc-900); margin-bottom: 4px; }
.empty-state-message { font-size: var(--fs-md); color: var(--zinc-500); margin-bottom: 16px; }
.empty-state-action { margin: 0 auto; }

/* --- Admin Actions --- */
.actions-cell { white-space: nowrap; }
.action-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.action-link:hover { background: var(--blue-50); text-decoration: underline; }
.action-link.danger { color: var(--red-600); }
.action-link.danger:hover { background: var(--red-50); }
.action-link.primary { color: var(--blue-600); }

/* --- Admin Placeholder --- */
.admin-placeholder {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-xl);
}
.admin-placeholder-icon { color: var(--zinc-300); margin-bottom: 16px; }
.admin-placeholder h2 { font-size: 18px; font-weight: 600; color: var(--zinc-900); margin-bottom: 8px; }
.admin-placeholder p { font-size: var(--fs-md); color: var(--zinc-500); }

/* --- Login --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 1440px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-container {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.login-header { text-align: center; margin-bottom: 32px; }
.login-title { font-size: 22px; font-weight: 700; color: var(--zinc-900); margin-bottom: 4px; }
.login-subtitle { font-size: var(--fs-md); color: var(--zinc-500); }
.login-prompt { font-size: var(--fs-md); color: var(--zinc-500); text-align: center; margin-bottom: 16px; }

.login-user-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.login-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--zinc-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.login-user-card:hover { border-color: var(--zinc-300); background: var(--zinc-50); }
.login-user-card.selected { border-color: var(--blue-600); background: var(--blue-50); }

.login-user-info { flex: 1; }
.login-user-name { font-weight: 600; font-size: var(--fs-lg); color: var(--zinc-900); }
.login-user-org { font-size: var(--fs-sm); color: var(--zinc-500); }

.login-role-badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}
.login-role-badge.dealer { background: var(--blue-50); color: var(--blue-700); }
.login-role-badge.admin { background: var(--purple-100); color: var(--purple-700); }

.login-field { margin-bottom: 16px; }
.login-label { display: block; font-size: var(--fs-base); font-weight: 500; color: var(--zinc-700); margin-bottom: 6px; }
.login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-md);
  font-family: inherit;
  background: var(--zinc-50);
  color: var(--zinc-900);
}

.otp-display { display: flex; gap: 8px; }
.otp-digit {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  font-size: 18px;
  font-weight: 600;
  color: var(--zinc-900);
  background: var(--zinc-50);
}

.login-error { font-size: var(--fs-base); color: var(--red-600); text-align: center; margin-bottom: 12px; padding: 8px; background: var(--red-50); border-radius: var(--radius-lg); }

.login-btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 8px; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.fade-in {
  animation: fadeIn var(--transition-normal) var(--ease-out);
}

.skeleton {
  background: var(--zinc-200);
  border-radius: var(--radius-md);
  animation: pulse 1.5s infinite;
}

/* --- Stagger animations --- */
.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }

/* --- Claim Detail Modal --- */
.claim-detail-modal { min-width: 100%; }
.claim-detail-row { margin-bottom: 8px; }
