/* Major Mobiles UK — Returns Portal & Admin Backend Stylesheet */
:root {
  --ink: #111827;
  --ink-2: #334155;
  --muted: #64748b;
  --navy: #1f2633;
  --navy-2: #2c3a52;
  --accent-lime: #95d36f;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #dce1e8;
  --border-strong: #cbd5e1;
  --green: #15803d;
  --green-bg: #ecfdf5;
  --green-border: #86efac;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fcd34d;
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --red-border: #fca5a5;
  --blue: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #93c5fd;
  --indigo: #4338ca;
  --indigo-bg: #eef2ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2.5px solid #2563eb;
  outline-offset: 2px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent-lime);
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-2);
  border: 1.5px solid var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-sub {
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.header-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Embed mode (?embed=1) for Shopify iframe */
body.embed-mode { background: #ffffff; }
body.embed-mode .site-header,
body.embed-mode .site-footer { display: none; }
body.embed-mode .portal-wrap { padding: 12px 4px 20px; max-width: 100%; }

/* Customer Container */
.portal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

/* Segmented Tabs */
.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #e5e9f0;
  padding: 5px;
  border-radius: 13px;
  margin-bottom: 20px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* Cards & Sections */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.card-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
}

.card-head h1, .card-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 18px 0;
  border-top: 1px solid #edf0f5;
}
.section-block:first-of-type { border-top: none; padding-top: 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.req { color: var(--red); margin-left: 2px; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 38, 51, 0.12);
}

.textarea { min-height: 86px; resize: vertical; }
.mono { font-family: var(--mono); }

.hint {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.hint-amber {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.hint-green {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}

/* Radio Condition Cards */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card:hover { border-color: var(--navy-2); }
.radio-card.selected {
  border-color: var(--navy);
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(31, 38, 51, 0.1);
}

.radio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radio-title { font-weight: 800; font-size: 15px; color: var(--navy); }
.radio-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Pills / Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}

.badge-green { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-red { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-blue { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-indigo { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.badge-slate { background: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; }

/* Example IMEI Graphic Box */
.example-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.example-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
}

.example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.example-card-hint {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.example-img-wrap {
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  cursor: zoom-in;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Upload Slots */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-slot {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-slot.has-file {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
}

.upload-slot-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
}

.upload-slot-sub {
  font-size: 12px;
  color: var(--muted);
}

.upload-preview {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

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

.upload-file-input { display: none; }

/* Fraud Warning Box */
.fraud-box {
  background: #fff8f6;
  border: 2px solid #dc2626;
  border-radius: 12px;
  padding: 18px;
}

.fraud-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 10px;
}

.fraud-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #374151;
  font-size: 13.5px;
}

.fraud-list li { margin-bottom: 7px; }
.fraud-list li:last-child { margin-bottom: 0; }

.fraud-check-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.fraud-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #1f2633;
  flex-shrink: 0;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--navy); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }

.btn-green { background: #15803d; color: #ffffff; }
.btn-green:hover:not(:disabled) { background: #166534; }

.btn-red { background: #dc2626; color: #ffffff; }
.btn-red:hover:not(:disabled) { background: #b91c1c; }

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-outline:hover:not(:disabled) { background: #f8fafc; border-color: var(--navy); }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { width: 100%; padding: 14px 20px; font-size: 16px; }

/* Alert Banners */
.alert {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-error { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.alert-amber { background: var(--amber-bg); border: 1px solid var(--amber-border); color: #92400e; }

/* Confirmation & Status Result Card */
.status-banner {
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.status-banner.approved { background: var(--green-bg); border: 1.5px solid #22c55e; color: #14532d; }
.status-banner.pending { background: var(--amber-bg); border: 1.5px solid #f59e0b; color: #78350f; }
.status-banner.declined { background: var(--red-bg); border: 1.5px solid #ef4444; color: #7f1d1d; }

.rma-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.rma-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; font-weight: 700; }
.rma-hero-code { font-family: var(--mono); font-size: 24px; font-weight: 800; letter-spacing: 0.02em; color: var(--accent-lime); }

.address-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.address-pre {
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 8px 0 12px;
  white-space: pre-line;
  font-weight: 600;
}

.checklist {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.checklist li { margin-bottom: 8px; }

.tracking-panel {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 12px;
}
.meta-k { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.meta-v { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; word-break: break-word; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px 16px 36px;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================================
   ADMIN BACKEND STYLES
   ============================================================================ */
.admin-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.admin-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

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

.kpi-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.kpi-card:hover { border-color: var(--navy-2); transform: translateY(-1px); }
.kpi-card.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 38, 51, 0.1); }
.kpi-card.kpi-urgent { border-color: #f59e0b; background: #fffbeb; }
.kpi-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-num { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 4px; line-height: 1.1; }
.kpi-card.kpi-urgent .kpi-num { color: #b45309; }

/* Admin Filter & Search Controls */
.admin-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-tab:hover { background: #eef2f6; }
.filter-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-row .input { flex: 1; min-width: 240px; }
.search-row .select { width: 220px; }

/* Admin Table */
.table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.data-table tbody tr:hover { background: #f8fafc; }

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

/* Detail Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.drawer-body { padding: 20px 22px 40px; }

.drawer-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.drawer-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

/* Returns Team Warehouse & Processing Checklist Box */
.checklist-panel {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.checklist-group-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}

.check-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.check-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-tile input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.check-tile.checked-green { border-color: #16a34a; background: #ecfdf5; color: #14532d; }
.check-tile.checked-amber { border-color: #d97706; background: #fffbeb; color: #78350f; }
.check-tile.checked-red { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.check-tile.checked-blue { border-color: #2563eb; background: #eff6ff; color: #1e3a8a; }

.check-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-ts {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Photos Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.photo-card {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e2e8f0;
}

.photo-card-meta {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-toolbar {
  position: fixed;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 202;
}

.lightbox-img-wrap {
  max-width: 95vw;
  max-height: 86vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 8px;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}
.lightbox-img.zoomed {
  max-width: none;
  max-height: none;
  width: 160%;
  cursor: zoom-out;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  z-index: 300;
  border-left: 4px solid var(--accent-lime);
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 860px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .check-row-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card { padding: 18px 15px; }
  .grid-2, .grid-3, .radio-grid, .upload-grid, .meta-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 14px; }
  .header-pills { display: none; }
  .tab-btn { font-size: 13.5px; padding: 11px 8px; }
  .rma-hero-code { font-size: 20px; }
  .search-row .select { width: 100%; }
}
