:root {
  --background: #f0f2f9;
  --foreground: #0a0f1e;
  --panel: #ffffff;
  --panel-strong: #f5f7ff;
  --panel-alt: #eaeefc;
  --panel-border: #d4daf0;
  --muted: #5b6475;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --glow-a: rgba(124, 58, 237, 0.18);
  --glow-b: rgba(6, 182, 212, 0.14);
  --hero-grid: rgba(15, 23, 42, 0.07);
  --sidebar-bg: #0f1221;
  --sidebar-border: rgba(255,255,255,0.08);
  --sidebar-text: #c4cde8;
  --sidebar-muted: #5a6390;
}

.dark {
  --background: #080c14;
  --foreground: #e8eeff;
  --panel: #0d1326;
  --panel-strong: #111c38;
  --panel-alt: #141d38;
  --panel-border: #1e2d4d;
  --muted: #7b8aaa;
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;
  --glow-a: rgba(167, 139, 250, 0.18);
  --glow-b: rgba(34, 211, 238, 0.14);
  --hero-grid: rgba(191, 219, 254, 0.05);
  --sidebar-bg: #070b14;
  --sidebar-border: rgba(255,255,255,0.07);
  --sidebar-text: #b0bdd8;
  --sidebar-muted: #3d4a6a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 15% 0%, var(--glow-a), transparent 40%),
    radial-gradient(ellipse at 85% 0%, var(--glow-b), transparent 36%);
  transition: background-color 220ms ease, color 220ms ease;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(167, 139, 250, 0.22); }
table { border-collapse: collapse; }
th, td { vertical-align: top; }

.scrollbar-hide {
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-color: var(--panel-border);
  background: linear-gradient(145deg, var(--panel-strong) 0%, var(--panel) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card > * {
  position: relative;
}

.excel-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #fff;
}

.dark .excel-table-wrap {
  border-color: var(--panel-border);
  background: #1a1a1f;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #1a1a1a;
}

.dark .sheet-table {
  background: #1a1a1f;
  color: #e8e8f0;
}

.sheet-table thead th {
  background: #f5f7f8;
  border-bottom: 2px solid #c8d0d4;
  border-right: 1px solid #d8dde0;
  padding: 5px 8px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  user-select: none;
}

.sheet-table thead th:last-child { border-right: none; }
.sheet-table thead th.rn {
  background: #e8f4f5;
  border-right: 2px solid #c8d0d4;
  width: 2.5rem;
  min-width: 2.5rem;
  text-align: center;
  color: #777;
  font-size: 0.7rem;
}

.dark .sheet-table thead th {
  background: #22222a;
  border-bottom-color: var(--panel-border);
  border-right-color: var(--panel-border);
  color: var(--muted);
}

.dark .sheet-table thead th.rn { background: #1e2530; }
.sheet-table thead th.text-right { text-align: right; }
.sheet-table thead th.text-center { text-align: center; }

.sheet-table tbody td {
  background: #fff;
  border-bottom: 1px solid #e8ebee;
  border-right: none;
  padding: 4px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.sheet-table tbody td:first-child {
  border-right: 2px solid #d0d4d8;
  background: #fafbfc;
  text-align: right;
  padding: 5px 8px;
  color: #999;
  font-size: 0.72rem;
  min-width: 2.5rem;
  width: 2.5rem;
  user-select: none;
}

.dark .sheet-table tbody td {
  background: #1a1a1f;
  border-bottom-color: #2a2a35;
  color: #e0e0ec;
}

.sheet-table tbody tr:hover td { background: #f0f7ff; }
.sheet-table tbody tr:hover td:first-child { background: #e8f2fb; }
.dark .sheet-table tbody tr:hover td { background: #22283a; }
.dark .sheet-table tbody tr:hover td:first-child { background: #1e2438; }

.sheet-table tbody tr.row-warn td {
  background: color-mix(in srgb, #fbbf24 8%, var(--panel));
}

.sheet-table tbody tr.row-bad td {
  background: color-mix(in srgb, #f87171 8%, var(--panel));
}

.testing-sheet-shell {
  border: 1px solid #cfd6e6;
  background: #ffffff;
}

.dark .testing-sheet-shell {
  border-color: var(--panel-border);
  background: #101727;
}

.testing-archive-shell {
  margin-top: 0.9rem;
}

.testing-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.8rem;
  border-bottom: 1px solid #cfd6e6;
  background: #eef3ff;
  padding: 0.45rem 0.6rem;
}

.dark .testing-sheet-toolbar {
  border-bottom-color: var(--panel-border);
  background: #111c32;
}

.testing-sheet-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.testing-sheet-title strong {
  color: #18243d;
  font-size: 0.86rem;
  font-weight: 800;
}

.testing-sheet-title span {
  color: #63708a;
  font-size: 0.72rem;
  font-weight: 700;
}

.dark .testing-sheet-title strong { color: var(--foreground); }
.dark .testing-sheet-title span { color: var(--muted); }

.testing-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.testing-primary-action,
.testing-sheet-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.testing-primary-action {
  min-height: 1.85rem;
  padding: 0 0.7rem;
  font-size: 0.72rem;
}

.testing-sheet-open {
  min-height: 1.35rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
}

.testing-filter-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #526078;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.testing-filter-control select {
  margin-top: 0;
  min-height: 1.85rem;
  width: 11rem;
  border-radius: 0;
  background: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}

.testing-sheet-wrap {
  border: 0;
}

.testing-sheet-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.73rem;
}

.testing-sheet-wrap {
  overflow-x: hidden;
}

.testing-sheet-table th:nth-child(1),
.testing-sheet-table td:nth-child(1) { width: 2%; }
.testing-sheet-table th:nth-child(2),
.testing-sheet-table td:nth-child(2) { width: 18%; }
.testing-sheet-table th:nth-child(3),
.testing-sheet-table td:nth-child(3) { width: 21%; }
.testing-sheet-table th:nth-child(4),
.testing-sheet-table td:nth-child(4) { width: 8%; }
.testing-sheet-table th:nth-child(5),
.testing-sheet-table td:nth-child(5) { width: 14%; }
.testing-sheet-table th:nth-child(6),
.testing-sheet-table td:nth-child(6) { width: 14%; }
.testing-sheet-table th:nth-child(7),
.testing-sheet-table td:nth-child(7) { width: 13%; }
.testing-sheet-table th:nth-child(8),
.testing-sheet-table td:nth-child(8) { width: 7%; }
.testing-sheet-table th:nth-child(9),
.testing-sheet-table td:nth-child(9) { width: 5%; }

.testing-sheet-table thead th {
  background: #f7f9fd;
  border-right: 1px solid #dce2ef;
  border-bottom: 1px solid #cfd6e6;
  color: #5a657a;
  font-size: 0.68rem;
  font-weight: 900;
  overflow: hidden;
  padding: 0.42rem 0.5rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.testing-sheet-table thead th.rn,
.testing-sheet-table tbody td:first-child {
  min-width: 0;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  width: 2%;
}

.testing-sheet-table tbody td {
  height: 2.25rem;
  border-right: 1px solid #edf0f6;
  border-bottom: 1px solid #edf0f6;
  max-width: 0;
  overflow: hidden;
  padding: 0.28rem 0.5rem;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  color: #202938;
}

.testing-sheet-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.testing-sheet-table tbody tr:hover td {
  background: #eef6ff;
}

.testing-sheet-table .num,
.testing-sheet-table th.num {
  text-align: right;
}

.testing-product-cell {
  min-width: 22rem;
  max-width: 28rem;
}

.testing-product-cell button {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #1f2a44;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testing-product-cell button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.testing-sheet-select {
  width: 100%;
  min-width: 0;
  height: 1.4rem;
  border: 1px solid #d7dce8;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
}

.testing-sheet-select:disabled {
  opacity: 0.65;
}

.testing-sheet-select.status-no {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.testing-sheet-select.status-yes {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.testing-row-actions {
  display: flex;
  gap: 0.25rem;
}

.testing-delete-action,
.testing-archive-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #f3a8a8;
  background: #fde8e8;
  color: #b91c1c;
  padding: 0.22rem 0.3rem;
  font-size: 0.62rem;
  font-weight: 850;
}

.testing-delete-action:hover {
  background: #ffdada;
}

.testing-archive-action {
  border-color: #9bd7b3;
  background: #e4f8ed;
  color: #087333;
}

.testing-archive-action:hover {
  background: #d8f3e4;
}

.testing-notes-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testing-url-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testing-url-cell a,
.testing-link-preview a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testing-url-edit-cell {
  min-width: 0;
  position: relative;
}

.testing-text-edit-cell {
  position: relative;
}

.testing-note-cell-inner {
  display: block;
  min-width: 0;
}

.testing-note-preview {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.testing-sheet-table .num .testing-note-preview {
  text-align: right;
}

.testing-note-preview:hover {
  color: #5b21b6;
  text-decoration: underline;
}

.testing-sheet-input {
  width: 100%;
  min-width: 0;
  height: 1.4rem;
  border: 1px solid #d7dce8;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 0.68rem;
  padding: 0.08rem 0.32rem;
  text-overflow: ellipsis;
}

.testing-autosave-status {
  bottom: 0.1rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  max-width: 4rem;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0.6rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testing-link-preview {
  display: none;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1;
}

.testing-text-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 60;
}

.testing-text-modal {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: var(--foreground);
  max-height: 72vh;
  max-width: 34rem;
  overflow: auto;
  padding: 1rem;
  width: min(34rem, 100%);
}

.testing-text-modal-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.testing-text-modal-header h3 {
  font-size: 0.95rem;
  font-weight: 900;
}

.testing-text-modal p {
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.testing-text-modal-input {
  min-height: 12rem;
  resize: vertical;
  width: 100%;
  border: 1px solid var(--panel-border);
  background: var(--panel-alt);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.65rem;
}

.testing-text-modal-input.compact {
  min-height: 0;
  resize: none;
}

.testing-text-modal-input:focus {
  border-color: #8b5cf6;
  outline: none;
}

.testing-text-modal-status {
  min-height: 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.testing-text-modal-close {
  border: 1px solid var(--panel-border);
  background: var(--panel-alt);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
}

.product-modal {
  border-radius: 0.75rem;
  max-width: 54rem;
}

.product-import-strip {
  align-items: end;
  border-bottom: 1px solid var(--panel-border);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.product-modal-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-modal-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.request-action {
  border: 1px solid var(--panel-border);
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.28rem 0.48rem;
}

.request-action.approve {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}

.request-action.reject {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.28);
  color: #be123c;
}

@media (max-width: 720px) {
  .product-import-strip,
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

.testing-empty-cell {
  padding: 2rem !important;
  text-align: center;
  color: var(--muted) !important;
  font-weight: 700;
}

.dark .testing-sheet-table thead th {
  background: #182238;
  border-color: #25324d;
  color: #9eabc6;
}

.dark .testing-sheet-table tbody td {
  border-color: #202b42;
  background: #101727;
  color: #e8eeff;
}

.dark .testing-sheet-table tbody tr:nth-child(even) td {
  background: #121b2d;
}

.dark .testing-sheet-table tbody tr:hover td {
  background: #17243b;
}

.dark .testing-product-cell button {
  color: #eef3ff;
}

.dark .testing-sheet-select,
.dark .testing-sheet-input,
.dark .testing-filter-control select {
  border-color: #2b3854;
  background: #0d1326;
  color: #e8eeff;
}

.dark .testing-note-preview:hover {
  color: #ddd6fe;
}

.dark .testing-sheet-select.status-no {
  border-color: #7f1d1d;
  background: #2a1114;
  color: #fca5a5;
}

.dark .testing-sheet-select.status-yes {
  border-color: #14532d;
  background: #0f2418;
  color: #86efac;
}

.dark .testing-autosave-status {
  color: #94a3b8;
}

.sheet-table a {
  color: #0284c7;
  font-weight: 700;
}

.dark .sheet-table a {
  color: #67e8f9;
}

.metric-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.36);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.dark .metric-card:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.testing-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.testing-board-column {
  min-height: 20rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--panel-alt) 62%, transparent);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.testing-board-column.drop-target {
  border-color: rgba(139, 92, 246, 0.6);
  background: color-mix(in srgb, rgba(139, 92, 246, 0.16) 42%, var(--panel-alt));
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.testing-board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  padding: 0.6rem 0.75rem;
}

.testing-board-column-header span {
  color: var(--foreground);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testing-board-column-header strong {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 9999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.testing-board-column-body {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.65rem;
}

.testing-board-card {
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  padding: 0.7rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: grab;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.testing-board-card:hover {
  border-color: rgba(139, 92, 246, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.testing-board-card.dragging {
  cursor: grabbing;
  opacity: 0.55;
  transform: rotate(1deg) scale(0.98);
}

.testing-priority-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: var(--accent-amber);
}

.testing-priority-dot.live {
  background: var(--accent-emerald);
}

.testing-priority-dot.danger {
  background: #ef4444;
}

.testing-card-open {
  margin-top: 0.65rem;
  width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 0.55rem;
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
  padding: 0.45rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.dark .testing-card-open {
  color: #c4b5fd;
}

.testing-board-empty {
  border: 1px dashed var(--panel-border);
  border-radius: 0.65rem;
  color: var(--muted);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.shiprocket-donut {
  position: relative;
  width: 10.75rem;
  height: 10.75rem;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px rgba(126, 87, 255, 0.18), 0 18px 42px rgba(66, 91, 170, 0.16);
}

.shiprocket-donut::after {
  content: "";
  position: absolute;
  inset: 1.65rem;
  border-radius: inherit;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.shiprocket-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  text-align: center;
}

.shiprocket-donut-center span {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--shiprocket-text);
  font-variant-numeric: tabular-nums;
}

.shiprocket-main {
  max-width: 100rem !important;
  --shiprocket-text: #020617;
  --shiprocket-muted: #334155;
  --shiprocket-blue: #075985;
  --shiprocket-cyan: #0369a1;
  --shiprocket-emerald: #047857;
  --shiprocket-green: #047857;
  --shiprocket-purple: #6d28d9;
  --shiprocket-magenta: #a21caf;
  --shiprocket-lime: #3f6212;
  --shiprocket-amber: #b45309;
  --shiprocket-rose: #b91c1c;
  --shiprocket-slate: #1f2937;
}

.dark .shiprocket-main {
  --shiprocket-text: #f8fafc;
  --shiprocket-muted: #cbd5e1;
  --shiprocket-blue: #7dd3fc;
  --shiprocket-cyan: #67e8f9;
  --shiprocket-emerald: #86efac;
  --shiprocket-green: #86efac;
  --shiprocket-purple: #c4b5fd;
  --shiprocket-magenta: #f0abfc;
  --shiprocket-lime: #bef264;
  --shiprocket-amber: #fbbf24;
  --shiprocket-rose: #fca5a5;
  --shiprocket-slate: #e2e8f0;
}

.shiprocket-sheet-shell {
  border: 1px solid #cfd6e6;
  background: #ffffff;
  font-weight: 400;
}

.dark .shiprocket-sheet-shell {
  border-color: var(--panel-border);
  background: #101727;
}

.shiprocket-main strong,
.shiprocket-main b,
.shiprocket-main th,
.shiprocket-main button,
.shiprocket-main select,
.shiprocket-main input,
.shiprocket-main .testing-sheet-title strong,
.shiprocket-main .testing-sheet-title span {
  font-weight: 400;
}

.shiprocket-main .testing-sheet-title strong {
  color: var(--shiprocket-text);
}

.shiprocket-main .testing-sheet-title span {
  color: var(--shiprocket-muted);
}

.shiprocket-toolbar {
  align-items: center;
  background: #eef3ff;
}

.shiprocket-actions {
  gap: 0.35rem;
}

.shiprocket-last-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.14);
  color: var(--shiprocket-green);
  border-radius: 0.35rem;
  padding: 0.16rem 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  font-weight: 400;
}

.shiprocket-last-sync span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #10b981;
}

.shiprocket-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: 1.9rem;
  border-radius: 0.35rem;
  padding: 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  font-weight: 400;
  transition: background 160ms ease, border-color 160ms ease;
}

.shiprocket-action:hover {
  border-color: rgba(124, 58, 237, 0.45);
}

.shiprocket-action.primary {
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: #7c3aed;
  color: #f8fafc;
  box-shadow: none;
}

.shiprocket-action.secondary {
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.07);
  color: var(--shiprocket-purple);
}

.shiprocket-sync-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  border-bottom: 1px solid #cfd6e6;
  background: #fff;
  padding: 0.45rem 0.6rem;
}

.shiprocket-sync-panel.failed {
  background: color-mix(in srgb, #f87171 8%, #fff);
}

.dark .shiprocket-sync-panel {
  border-bottom-color: var(--panel-border);
  background: #101727;
}

.shiprocket-sync-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.shiprocket-sync-copy strong {
  flex: 0 0 auto;
  color: var(--shiprocket-text);
  font-size: 0.8rem;
  font-weight: 400;
}

.shiprocket-sync-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--shiprocket-muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.shiprocket-sync-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shiprocket-sync-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  border-left: 1px solid #d8dde0;
  padding: 0 0.55rem;
  text-align: left;
}

.dark .shiprocket-sync-stat {
  border-left-color: var(--panel-border);
}

.shiprocket-sync-stat span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.56rem;
  font-weight: 400;
  color: var(--shiprocket-muted);
}

.shiprocket-sync-stat strong {
  color: var(--shiprocket-text);
  font-size: 0.82rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.shiprocket-progress {
  grid-column: 1 / -1;
  height: 0.22rem;
  border-radius: 0;
  background: #e8ebee;
  overflow: hidden;
}

.shiprocket-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #8d4df5);
}

.shiprocket-sync-panel.failed .shiprocket-progress span {
  background: #ef4444;
}

.shiprocket-filter-panel {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(9rem, 11rem) minmax(9rem, 11rem) minmax(16rem, 1fr);
  gap: 0.75rem;
  align-items: center;
  background: #f8fafc;
  padding: 0.45rem 0.6rem;
}

.dark .shiprocket-filter-panel {
  background: #111c32;
}

.shiprocket-filter-panel label {
  display: grid;
  gap: 0.25rem;
}

.shiprocket-filter-panel label > span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--shiprocket-muted);
  font-size: 0.56rem;
  font-weight: 400;
}

.shiprocket-filter-panel select,
.shiprocket-filter-panel input {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 0.25rem;
  background: var(--panel);
  color: var(--shiprocket-text);
  padding: 0.34rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 400;
  outline: none;
}

.shiprocket-custom-modal {
  border-radius: 0.65rem;
  max-width: 28rem;
}

.shiprocket-custom-date-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shiprocket-custom-date-grid label {
  color: var(--shiprocket-muted);
  display: grid;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shiprocket-custom-date-grid input {
  border: 1px solid var(--panel-border);
  border-radius: 0.45rem;
  background: var(--panel-alt);
  color: var(--shiprocket-text);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.55rem 0.65rem;
}

.shiprocket-custom-modal-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .shiprocket-toolbar,
  .shiprocket-sync-panel {
    grid-template-columns: 1fr;
  }

  .shiprocket-actions,
  .shiprocket-sync-stats {
    flex-wrap: wrap;
  }

  .shiprocket-filter-panel {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .shiprocket-custom-date-grid {
    grid-template-columns: 1fr;
  }
}

.shiprocket-panel {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.shiprocket-table-wrap {
  overflow-x: hidden;
}

.shiprocket-table {
  table-layout: fixed;
  min-width: 0;
}

.shiprocket-table th,
.shiprocket-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > thead > tr > th:nth-child(1),
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > tbody > tr > td:nth-child(1) { width: 2.5rem; text-align: center; }
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > thead > tr > th:nth-child(2),
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > tbody > tr > td:nth-child(2) { width: 40%; text-align: left; }
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > thead > tr > th:nth-child(3),
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > tbody > tr > td:nth-child(3) { width: 6%; text-align: center; }
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > thead > tr > th:nth-child(n+4),
.shiprocket-panel.panel-purple > .shiprocket-table-wrap > .shiprocket-table > tbody > tr > td:nth-child(n+4) {
  width: 6%;
  text-align: center;
}

.shiprocket-product-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  color: var(--shiprocket-blue);
  font-weight: 400;
  text-align: left;
}

.shiprocket-product-row {
  cursor: pointer;
}

.shiprocket-product-row td {
  transition: background 120ms ease;
}

.shiprocket-label-chip,
.shiprocket-label-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 0.25rem;
  background: rgba(139, 92, 246, 0.08);
  color: var(--shiprocket-purple);
  padding: 0.18rem 0.38rem;
  font-size: 0.66rem;
  font-weight: 400;
  white-space: nowrap;
}

.shiprocket-label-action {
  color: #f8fafc;
  background: #7c3aed;
  width: 100%;
  min-width: 0;
  padding-inline: 0.5rem;
}

.shiprocket-label-action:disabled {
  cursor: not-allowed;
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(100, 116, 139, 0.2);
  color: var(--shiprocket-muted);
}

.shiprocket-label-empty {
  color: var(--shiprocket-muted);
}

.shiprocket-label-detail {
  border: 1px solid #d8dde0;
  background: #f8fafc;
  padding: 0.45rem;
}

.shiprocket-label-table-wrap {
  margin-top: 0.45rem;
  overflow-x: auto;
}

.shiprocket-label-detail-row > td {
  background: #f8fafc !important;
}

.shiprocket-label-table {
  table-layout: fixed;
  min-width: 32rem;
}

.shiprocket-label-table th,
.shiprocket-label-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shiprocket-label-table th:nth-child(1),
.shiprocket-label-table td:nth-child(1) {
  width: 3rem;
  text-align: center;
}

.shiprocket-label-table th:nth-child(2),
.shiprocket-label-table td:nth-child(2) {
  text-align: left;
}

.shiprocket-label-table th:nth-child(3),
.shiprocket-label-table td:nth-child(3) {
  width: 8.5rem;
  text-align: center;
}

.shiprocket-panel.panel-purple { border-top: 5px solid #8b5cf6; }
.shiprocket-panel.panel-cyan { border-top: 5px solid #06b6d4; }
.shiprocket-panel.panel-green { border-top: 5px solid #10b981; }

.shiprocket-chart-card {
  padding: 1.35rem;
}

.shiprocket-card-title,
.shiprocket-table-title {
  margin: 0;
  color: var(--shiprocket-text);
  font-weight: 400;
  letter-spacing: 0;
}

.shiprocket-card-title {
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--shiprocket-muted);
  font-size: 0.85rem;
}

.dark .shiprocket-card-title {
  color: var(--shiprocket-muted);
}

.shiprocket-table-title {
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
}

.shiprocket-legend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--shiprocket-muted);
  font-size: 0.84rem;
}

.dark .shiprocket-legend-row {
  color: var(--shiprocket-muted);
}

.shiprocket-legend-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.shiprocket-dot {
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 9999px;
}

.shiprocket-legend-row strong,
.shiprocket-legend-row em {
  color: var(--shiprocket-text);
  font-style: normal;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.shiprocket-legend-row em {
  color: var(--shiprocket-muted);
  font-size: 0.68rem;
}

.shiprocket-table-wrap {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.shiprocket-table {
  font-size: 0.82rem;
}

.shiprocket-table thead th {
  background: rgba(226, 232, 240, 0.68);
  color: var(--shiprocket-slate);
  padding: 0.52rem 0.46rem;
  font-weight: 400;
}

.shiprocket-table tbody td {
  background: rgba(248, 250, 252, 0.52);
  padding: 0.42rem 0.46rem;
  color: var(--shiprocket-text);
  font-size: 0.82rem;
}

.dark .shiprocket-table tbody td {
  background: rgba(15, 23, 42, 0.42);
  color: var(--shiprocket-text);
}

.shiprocket-table tbody tr.row-selected td {
  background: rgba(191, 213, 238, 0.55);
}

.dark .shiprocket-table tbody tr.row-selected td {
  background: rgba(59, 88, 132, 0.45);
}

.shiprocket-product-name,
.shiprocket-state-name {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--shiprocket-text);
  font-weight: 400;
  white-space: nowrap;
}

.dark .shiprocket-product-name,
.dark .shiprocket-state-name {
  color: var(--shiprocket-text);
}

.shiprocket-caret {
  color: var(--shiprocket-text);
  font-size: 0.78rem;
}

.shiprocket-status-name {
  display: block;
  color: var(--shiprocket-muted);
  font-weight: 400;
  text-align: right;
  text-transform: uppercase;
}

.shiprocket-count {
  display: inline-block;
  color: var(--shiprocket-text);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dark .shiprocket-count {
  color: var(--shiprocket-text);
}

.shiprocket-count.tone-purple { color: var(--shiprocket-purple); }
.shiprocket-count.tone-muted { color: var(--shiprocket-muted); }
.shiprocket-count.tone-cyan { color: var(--shiprocket-cyan); }
.shiprocket-count.tone-emerald { color: var(--shiprocket-emerald); }
.shiprocket-count.tone-magenta { color: var(--shiprocket-magenta); }
.shiprocket-count.tone-lime { color: var(--shiprocket-lime); }
.shiprocket-count.tone-amber { color: var(--shiprocket-amber); }
.shiprocket-count.tone-rose { color: var(--shiprocket-rose); }

.shiprocket-pct {
  display: inline-block;
  font-size: 0.78em;
  color: currentColor;
}

.shiprocket-percent-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 3.85rem;
  border-radius: 0.35rem;
  background: rgba(126, 140, 194, 0.25);
  color: var(--shiprocket-text);
  padding: 0.12rem 0.42rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.dark .shiprocket-percent-pill {
  color: var(--shiprocket-text);
}

.shiprocket-order-overview-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.shiprocket-order-overview-table th,
.shiprocket-order-overview-table td {
  border-right: 2px solid #1f2937;
}

.shiprocket-order-overview-table th:last-child,
.shiprocket-order-overview-table td:last-child {
  border-right: 0;
}

.shiprocket-order-overview-table th:nth-child(1),
.shiprocket-order-overview-table td:nth-child(1) {
  text-align: center;
  width: 2.5rem;
}

.shiprocket-order-overview-table th:nth-child(2),
.shiprocket-order-overview-table td:nth-child(2) {
  text-align: left;
  width: 70%;
}

.shiprocket-order-overview-table th:nth-child(3),
.shiprocket-order-overview-table td:nth-child(3) {
  text-align: right;
  width: 15%;
}

.shiprocket-order-overview-table th:nth-child(4),
.shiprocket-order-overview-table td:nth-child(4) {
  text-align: right;
  width: 15%;
}

.shiprocket-order-overview-table .shiprocket-status-name {
  text-align: left;
}

.shiprocket-order-overview-table .shiprocket-count,
.shiprocket-order-overview-table .shiprocket-percent-pill {
  min-width: 0;
}

.dark .shiprocket-order-overview-table th,
.dark .shiprocket-order-overview-table td {
  border-right-color: #cbd5e1;
}

.shiprocket-panel.panel-green .shiprocket-table th:nth-child(1),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(1) { width: 2.5rem; text-align: center; }

.shiprocket-panel.panel-green .shiprocket-table th:nth-child(2),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(2) { width: 40%; text-align: left; }

.shiprocket-panel.panel-green .shiprocket-table th:nth-child(3),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(3),
.shiprocket-panel.panel-green .shiprocket-table th:nth-child(4),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(4),
.shiprocket-panel.panel-green .shiprocket-table th:nth-child(5),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(5),
.shiprocket-panel.panel-green .shiprocket-table th:nth-child(6),
.shiprocket-panel.panel-green .shiprocket-table td:nth-child(6) { width: 15%; text-align: right; }


.soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
}

.animate-fade-in { animation: fadeIn 260ms ease both; }
.animate-fade-in-up { animation: fadeInUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

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

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