/* ==========================================================================
   Beautifly Shop — admin, phase 2 (product module)

   Written mobile first, and not as a figure of speech: every rule below the
   media query is an ENHANCEMENT for a wide screen. Nothing here is a desktop
   layout being squeezed down. The shop is run from a phone, so the phone is
   the design, and the desktop is the afterthought.

   Three consequences run through the whole file:

     - the primary action is always fixed to the bottom of the screen, within
       thumb reach, never at the end of a long scroll (Zatiq's checkout and
       its product form both make you scroll to find Save);
     - every tappable thing is at least 44px on its shortest side;
     - nothing relies on hover, because there is no hover.

   The palette is imported wholesale from style.css so the two halves of the
   app cannot drift apart.
   ========================================================================== */

:root {
  --bg: #FBFAFB;
  --surface: #FFFFFF;
  --ink: #1B171C;
  --muted: #6F6A70;
  --muted-soft: #A6A1A7;
  --brand: #c9005d;
  --brand-soft: #fdf2f8;
  --brand-border: #f472b6;
  --accent: #c9005d;
  --accent-dark: #a1004a;
  --accent-soft: #fdf2f8;
  --gold: #E2B355;
  --gold-soft: #FCF7EE;
  --line: #E6E4E6;
  --line-strong: #D6D3D7;
  --success: #2C965D;
  --success-soft: #E8F5EE;
  --warn: #D93442;
  --warn-soft: #FCEBEC;
  --info: #4E72AC;
  --info-soft: #EAF0F8;
  --secondary: #F5F3F5;
  --warning: #DC932E;
  --warning-soft: #FDF3E4;
  --warning-ink: #6B4405;
  --r: 20px;
  --r-sm: 12px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(24, 20, 26, 0.05);
  --shadow-md: 0 4px 14px rgba(24, 20, 26, 0.08);
  --ring: 0 0 0 4px rgba(201, 0, 93, 0.15);
  --sidebar-w: 240px;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Reserved strips, so content can never hide underneath the fixed bars. */
  --topbar-h: 56px;
  --tabbar-h: 60px;
  --tap: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden], section[hidden], div[hidden] { display: none !important; }

html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  overflow: visible;
  /* Zatiq's panel ships user-scalable=no, so a merchant on a phone cannot
     zoom in on a wide table. We do not do that; see shop-admin.html. */
  -webkit-text-size-adjust: 100%;
}

body.sa-modal-open { overflow: hidden; }

/* ------------------------------------------------------------------ chrome */

.sa-top {
  position: fixed;
  inset: 0 0 auto 0;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--line, #e5e7eb);
  z-index: 40;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sa-top h1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-main {
  padding: calc(var(--topbar-h) + var(--safe-top) + 16px) 16px 40px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-tabs {
  position: fixed;
  inset: auto 0 0 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.sa-tab {
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  cursor: pointer;
  min-height: var(--tap);
}
.sa-tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.sa-tab[aria-selected="true"] { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- primitives */

.sa-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 550;
  border-radius: var(--r-sm);
  min-height: var(--tap);
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.sa-btn:active { transform: translateY(1px); }
.sa-btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.sa-btn.is-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sa-btn.is-danger  { background: var(--warn-soft); border-color: #F3C7CB; color: var(--warn); }
.sa-btn.is-ghost   { border-color: transparent; background: transparent; }
.sa-btn.is-sm      { min-height: 34px; padding: 0 10px; font-size: 13px; }
.sa-btn[disabled]  { opacity: .5; pointer-events: none; }
.sa-btn.is-icon    { width: var(--tap); padding: 0; }

.sa-field { display: block; margin: 0 0 14px; }
.sa-field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 5px;
}
.sa-field .sa-hint { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted-soft); margin-top: 4px; }

.sa-input, .sa-select, .sa-textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  min-height: var(--tap);
  padding: 10px 12px;
}
/* 16px stops iOS Safari zooming the whole page in when a field is focused —
   the single most common way a mobile form feels broken. */
@media (max-width: 767px) {
  .sa-input, .sa-select, .sa-textarea { font-size: 16px; }
}
.sa-textarea { min-height: 96px; resize: vertical; }
.sa-input:focus, .sa-select:focus, .sa-textarea:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }

.sa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px;
  margin: 0 0 12px;
}

.sa-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.sa-pill.is-active   { background: var(--success-soft); color: var(--success); }
.sa-pill.is-draft    { background: var(--secondary);    color: var(--muted); }
.sa-pill.is-inactive { background: var(--warning-soft); color: var(--warning-ink); }
.sa-pill.is-out      { background: var(--warn-soft);    color: var(--warn); }
.sa-pill.is-low      { background: var(--warning-soft); color: var(--warning-ink); }
.sa-pill.is-ok       { background: var(--success-soft); color: var(--success); }

/* -------------------------------------------------------- search + filters */

.sa-search { position: relative; margin: 0 0 10px; }
.sa-search .sa-input { padding-left: 38px; }
.sa-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: var(--muted-soft); fill: none; stroke-width: 1.8;
}

/* A horizontally scrolling chip row is the one desktop-hostile pattern that
   is genuinely right on a phone: it keeps ten filters in one thumb-swipe
   instead of a dropdown that hides them. */
.sa-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -12px 12px;
  padding: 2px 12px 4px;
  scroll-snap-type: x proximity;
}
.sa-chips::-webkit-scrollbar { display: none; }
.sa-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: var(--r-pill);
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.sa-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* -------------------------------------------------------------- the list */

.sa-list { display: grid; gap: 10px; }

.sa-row {
  display: grid;
  grid-template-columns: 24px 62px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 10px;
}
.sa-row.is-picked { border-color: var(--accent); background: var(--accent-soft); }

.sa-check {
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--accent);
  /* The tap target is grown with padding on the label, not by making the
     box itself huge — the earlier attempt at a 44px checkbox is what broke
     the Inventory table. */
}
.sa-check-wrap { display: flex; align-items: center; justify-content: center; min-height: var(--tap); }

.sa-thumb {
  width: 62px; height: 62px;
  border-radius: var(--r-sm);
  background: var(--secondary);
  object-fit: cover;
  display: block;
}
.sa-thumb.is-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-soft); font-size: 10px; text-align: center; padding: 4px;
}

.sa-row-main { min-width: 0; }
.sa-row-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sa-row-sub { font-size: 12px; color: var(--muted); margin: 0 0 7px; }
.sa-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sa-row-price { font-weight: 650; font-size: 14px; }
.sa-row-actions { display: flex; gap: 8px; margin-top: 9px; }
.sa-row-actions .sa-btn { min-height: 38px; font-size: 13px; padding: 0 12px; }

/* The stepper is the point of the whole screen: changing stock must not
   require opening a form, which is the single biggest daily friction in
   Zatiq (open product, scroll, edit, save, go back — for one number). */
.sa-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.sa-stepper button {
  width: 40px; height: 38px;
  border: 0; background: var(--surface); color: var(--ink);
  font-size: 19px; line-height: 1; cursor: pointer;
}
.sa-stepper button:active { background: var(--secondary); }
.sa-stepper input {
  width: 46px; height: 38px; border: 0; text-align: center;
  font: inherit; font-weight: 650; font-size: 15px; color: var(--ink);
  background: var(--surface); padding: 0;
  -moz-appearance: textfield;
}
.sa-stepper input::-webkit-outer-spin-button,
.sa-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sa-stepper.is-saving { opacity: .55; }

/* --------------------------------------------------------- selection bar */

.sa-bulk {
  position: fixed;
  left: 8px; right: 8px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 9px 10px 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 35;
}
.sa-bulk[hidden] { display: none; }
.sa-bulk-count { font-weight: 650; font-size: 13.5px; flex: 1; }
.sa-bulk .sa-btn { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; min-height: 38px; font-size: 13px; }
.sa-bulk .sa-btn.is-primary { background: var(--accent); }

/* ---------------------------------------------------------------- editor */

.sa-sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.sa-sheet[hidden] { display: none; }
.sa-sheet-top {
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 8px 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.sa-sheet-title { font-weight: 650; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 20px; }
.sa-sheet-foot {
  flex: 0 0 auto;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.sa-sheet-foot .sa-btn { flex: 1; }

/* Steps rather than one endless form: on a phone a 30-field page is a
   scroll you get lost in, and every abandoned edit is a product that stays
   wrong. */
.sa-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 14px; padding: 0 12px 6px; }
.sa-steps::-webkit-scrollbar { display: none; }
.sa-step {
  flex: 0 0 auto; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); padding: 8px 4px; cursor: pointer; border-bottom: 2px solid transparent; min-height: 40px;
}
.sa-step[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.sa-panel[hidden] { display: none; }

.sa-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* -------------------------------------------------------------- media */

.sa-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sa-media-item { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--secondary); }
.sa-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-media-item .sa-cover { position: absolute; left: 4px; top: 4px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: var(--r-pill); }
.sa-media-item .sa-x {
  position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(27,23,28,.72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.sa-media-add {
  aspect-ratio: 1; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.sa-media-add svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ------------------------------------------------------------- variants */

/* One card per shade, not a table. A 38-shade product is 38 rows of four
   numbers; on a 375px screen a table of that is unreadable, and this is
   exactly the product Zatiq cannot even represent (its shades share one
   stock number). */
.sa-var {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  margin: 0 0 9px;
  background: var(--surface);
}
.sa-var-head { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; }
.sa-var-swatch { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--secondary); flex: 0 0 auto; }
.sa-var-name { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-var-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa-var-body .sa-field { margin: 0; }
.sa-var-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.sa-var-sku { font-size: 11px; color: var(--muted-soft); font-family: ui-monospace, Menlo, monospace; }

/* ------------------------------------------------------------ misc bits */

.sa-empty { text-align: center; color: var(--muted); padding: 42px 16px; }
.sa-empty h3 { font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.sa-empty p { margin: 0 0 14px; font-size: 13.5px; }

.sa-toast {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.sa-toast[hidden] { display: none; }
.sa-toast.is-bad { background: var(--warn); }

.sa-more { display: block; width: 100%; margin: 14px 0 0; }
.sa-count { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }

/* Hide old bottom tabs globally */
.sa-tabs {
  display: none !important;
}

/* ========================================================== Zatiq Sidebar & Layout */

/* Mobile Sidebar Backdrop Overlay */
.sa-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.sa-sidebar-open .sa-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sa-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: #ffffff;
  border-right: 1px solid var(--line, #e5e7eb);
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}
body.sa-sidebar-open .sa-sidebar {
  transform: translateX(0);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.2);
}

.sa-sidebar-head {
  height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
  background: #ffffff;
}
.sa-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}
.sa-sidebar-logo {
  max-height: 48px;
  max-width: 175px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.sa-sidebar-nav {
  flex: 1;
  padding: 14px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-nav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.5px;
  padding: 8px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sa-nav-item:hover {
  background: #f9fafb;
  color: #111827;
}

.sa-nav-item[aria-selected="true"] {
  background: var(--brand-soft, #fdf2f8);
  color: var(--brand, #c9005d);
  font-weight: 600;
}

.sa-nav-item[aria-selected="true"] .sa-nav-icon {
  color: var(--brand, #c9005d);
  stroke-width: 2.2;
}

.sa-nav-icon {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.sa-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-nav-badge {
  background: #e62e6b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
}

.sa-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sa-badge-pill.is-purple { background: #fce7f3; color: #c9005d; }
.sa-badge-pill.is-orange { background: #ffedd5; color: #ea580c; }
.sa-badge-pill.is-gray { background: #f3f4f6; color: #4b5563; }
.sa-badge-pill.is-xs { font-size: 9px; padding: 1px 4px; }

.sa-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.15s ease;
}
.sa-sidebar-toggle:hover {
  background: #f3f4f6;
  color: #111827;
}

.sa-page-title-clean {
  display: none;
}

.sa-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e62e6b;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}

/* ========================================================= Dashboard Layout */

.sa-dash-greeting {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}
.sa-dash-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  padding: 4px;
}
.sa-dash-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sa-dash-greet-text {
  flex: 1;
  min-width: 0;
}
.sa-dash-greet-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
}
.sa-dash-quote {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
}
.sa-dash-greet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sa-dash-delivery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sa-dash-delivery-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.sa-dash-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sa-dash-visit-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.sa-dash-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sa-dash-copy-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Quick Actions Section (Desktop Hidden) */
.sa-dash-quick-section {
  display: none;
}

/* Mobile Bottom Navigation (Desktop Hidden) */
.sa-mobile-nav-bar {
  display: none;
}

/* 5 KPI Stat Cards */
.sa-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .sa-dash-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .sa-dash-greeting {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .sa-dash-greeting > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sa-dash-greet-actions {
    width: 100%;
    margin-top: 14px;
    display: flex;
    gap: 8px;
  }
  .sa-dash-visit-btn {
    flex: 1;
    justify-content: center;
  }
  .sa-dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sa-dash-kpi-card:nth-child(5) {
    grid-column: span 1;
  }
}

.sa-dash-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.sa-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-kpi-icon.is-blue   { background: #e0f2fe; }
.sa-kpi-icon.is-green  { background: #dcfce7; }
.sa-kpi-icon.is-purple { background: #f3e8ff; }
.sa-kpi-icon.is-orange { background: #ffedd5; }
.sa-kpi-icon.is-slate  { background: #f1f5f9; }

.sa-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}
.sa-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.sa-kpi-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Charts Grid */
.sa-dash-charts-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 960px) {
  .sa-dash-charts-grid { grid-template-columns: 1fr; }
}

.sa-dash-chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.sa-dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sa-dash-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.sa-dash-metrics-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.sa-dash-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-metric-label {
  font-size: 11.5px;
  color: #6b7280;
}
.sa-metric-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}
.sa-dash-chart-body {
  min-height: 200px;
  width: 100%;
  position: relative;
}

.sa-donut-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 6px 0 14px;
}
.sa-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}
.sa-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}
.sa-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sa-legend-name {
  flex: 1;
}
.sa-legend-val {
  font-weight: 700;
  color: #111827;
}

/* Recent Orders Card */
.sa-dash-recent-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.sa-dash-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sa-dash-recent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.sa-recent-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9005d;
}
.sa-recent-view-all {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.sa-recent-view-all:hover {
  color: var(--brand, #c9005d);
  background: #f9fafb;
}
.sa-recent-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: 0.3px;
}
.sa-recent-orders-list {
  display: flex;
  flex-direction: column;
}
.sa-recent-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f9fafb;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sa-recent-row:last-child {
  border-bottom: none;
}
.sa-recent-row:hover {
  background: #f9fafb;
}
.sa-recent-cust {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sa-recent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-recent-name {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-recent-amount {
  font-weight: 700;
  color: #111827;
  text-align: right;
  font-size: 13.5px;
}
.sa-recent-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4b5563;
}
.sa-recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sa-dash-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 767px) {
  .sa-dash-tools-grid { grid-template-columns: 1fr; }
}

/* ===================================================== wider screens only */

@media (min-width: 768px) {
  :root {
    --sidebar-w: 240px;
    --topbar-h: 60px;
  }

  .sa-sidebar-backdrop {
    display: none !important;
  }

  .sa-sidebar {
    width: var(--sidebar-w, 240px);
    transform: translateX(0) !important;
    z-index: 50;
    box-shadow: none !important;
  }

  /* Desktop Topbar & Main */
  .sa-top {
    left: var(--sidebar-w, 240px);
    right: 0;
    height: calc(var(--topbar-h) + var(--safe-top));
    padding: var(--safe-top) 24px 0;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sa-main {
    margin-left: var(--sidebar-w, 240px);
    padding: calc(var(--topbar-h) + var(--safe-top) + 24px) 24px 60px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sa-tabs {
    display: none !important;
  }

  /* Collapsed Sidebar State */
  body.sa-sidebar-collapsed .sa-sidebar {
    transform: translateX(-100%) !important;
  }
  body.sa-sidebar-collapsed .sa-top {
    left: 0;
  }
  body.sa-sidebar-collapsed .sa-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .sa-bulk { left: calc(var(--sidebar-w, 240px) + 24px); right: 24px; bottom: 16px; }
  .sa-toast { left: auto; right: 24px; width: 340px; bottom: 16px; }

  .sa-row { grid-template-columns: 30px 72px 1fr auto; align-items: center; }
  .sa-thumb { width: 72px; height: 72px; }
  .sa-row-actions { margin-top: 0; }

  .sa-sheet { inset: 24px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); }
  .sa-sheet-body { padding: 18px 22px 26px; }
  .sa-sheet-foot { justify-content: flex-end; }
  .sa-sheet-foot .sa-btn { flex: 0 0 auto; min-width: 130px; }

  .sa-media { grid-template-columns: repeat(5, 1fr); }
  .sa-var-body { grid-template-columns: repeat(4, 1fr); }
  .sa-grid2 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .sa-list.is-wide { grid-template-columns: 1fr; }
  .sa-media { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------- reordering the gallery
   The first photo is the cover, so the order is the shop's decision and it
   has to be visible while they are making it: every tile carries its number,
   the one being moved lifts, and the one it would land on shows a line.
   Nothing here writes to the server — Save changes does that. */
.sa-media-item { cursor: grab; touch-action: pan-y; }
.sa-media-item.is-dragging { opacity: .45; cursor: grabbing; transform: scale(.96); }
.sa-media-item.is-over { outline: 2px solid var(--accent); outline-offset: -2px; }
.sa-media-item .sa-media-n {
  position: absolute; left: 4px; bottom: 4px;
  min-width: 16px; text-align: center;
  background: rgba(17, 20, 28, .72); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1.5;
  padding: 1px 5px; border-radius: var(--r-pill);
}
/* The cover badge already sits top-left, so the number moves down and the
   grip sits bottom-right, out of the delete button's way. */
.sa-media-item .sa-media-grip {
  position: absolute; right: 4px; bottom: 4px;
  color: #fff; font-size: 13px; line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
}
.sa-media-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sa-media-bar .sa-hint { margin: 0; }
.sa-media-bar .sa-btn[disabled] { opacity: .45; cursor: default; }

@media (max-width: 767px) {
  /* Both buttons are thumb-sized, because this is the step people finish
     on a phone right after taking the photos. */
  .sa-media-bar .sa-btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  .sa-media-item .sa-media-n { font-size: 11px; padding: 2px 6px; }
}

/* ==========================================================================
   Manage Shop — the eleven panels
   ==========================================================================
   A menu first, one subject at a time after. The shop opens this screen
   knowing which thing they came for; a single long form makes them read
   past nine other things to find it.
   ========================================================================== */

.sa-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}
.sa-tile {
  display: block; width: 100%; text-align: left;
  min-height: 64px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.sa-tile:hover { border-color: var(--accent); }
.sa-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sa-tile strong { display: block; font-size: 15px; }
.sa-tile span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.sa-tile-badge {
  display: inline-block; margin-top: 8px;
  font-size: 11px; font-style: normal; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--secondary); color: var(--muted);
}

.sa-panel-title { margin: 14px 0 10px; font-size: 18px; }

/* A switch, not a tick box: every one of these is a "does the shop work
   this way" question, and On/Off reads faster than a checkmark. */
.sa-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.sa-toggle:first-of-type { border-top: 0; }
.sa-toggle-main { flex: 1; min-width: 0; }
.sa-toggle-main strong { display: block; font-size: 14px; }
.sa-toggle-main .sa-hint { display: block; margin-top: 3px; }
.sa-switch {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 5px 12px 5px 9px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  flex: 0 0 auto;
}
.sa-switch i {
  width: 28px; height: 16px; border-radius: 999px;
  background: #C9CDD4; position: relative; transition: background .12s ease;
}
.sa-switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .14s ease;
}
.sa-switch.is-on { background: #E8F5EE; border-color: #BFE3CE; color: #1F7A4A; }
.sa-switch.is-on i { background: #2C965D; }
.sa-switch.is-on i::after { transform: translateX(12px); }

/* Label, value, Copy — for the addresses that get pasted into Search
   Console and Commerce Manager. The value wraps rather than being cut off,
   because a half-shown URL is useless. */
.sa-kv {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
  align-items: center; padding: 10px 0; border-top: 1px solid var(--line);
}
.sa-kv > span { font-size: 13px; font-weight: 600; }
.sa-kv > code {
  grid-column: 1 / -1;
  font-size: 12px; word-break: break-all;
  background: var(--secondary); border-radius: var(--r-sm); padding: 6px 8px;
}
.sa-pre {
  margin: 8px 0 0; padding: 10px;
  background: var(--secondary); border-radius: var(--r-sm);
  font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre;
}

.sa-check {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 10px 4px 4px; margin: 2px 6px 2px 0;
  font-size: 14px; cursor: pointer;
}
.sa-check input { width: 18px; height: 18px; }

.sa-save-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 8px; margin-top: 14px;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.sa-save-bar .sa-btn { flex: 1; }

@media (min-width: 600px) {
  .sa-tiles { grid-template-columns: 1fr 1fr; }
  .sa-save-bar .sa-btn { flex: 0 0 auto; min-width: 180px; }
}
@media (min-width: 980px) {
  .sa-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  /* Everything here writes to the live shop, so nothing is smaller than a
     thumb, and 16px inputs stop iOS zooming the page on focus. */
  .sa-tile { min-height: 72px; }
  .sa-switch { min-height: 44px; font-size: 14px; }
  .sa-switch i { width: 34px; height: 19px; }
  .sa-switch i::after { width: 15px; height: 15px; }
  .sa-switch.is-on i::after { transform: translateX(15px); }
  .sa-save-bar .sa-btn { min-height: 48px; font-size: 16px; }
  .sa-kv > code { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-tile, .sa-switch, .sa-switch i, .sa-switch i::after { transition: none; }
}

/* ========================================================== Zatiq Parity */

/* ------------------------------------------------------------- top bar */
.sa-top-right { display: flex; align-items: center; gap: 8px; }

/* -------------------------------------------------------- greeting banner */
.sa-greet-banner {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #FFFFFF 100%);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.sa-greet-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--accent-dark); }
.sa-greet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ----------------------------------------------------------- scroll tabs */
.sa-scroll-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  gap: 6px;
}
.sa-scroll-tabs::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------- orders view (Zatiq-matched) */
.sa-order-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sa-order-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-order-page-title {
  font-size: 20px;
  font-weight: 600;
  color: #18181b;
  margin: 0;
}
.sa-order-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #e62e6b;
  border-radius: 9999px;
}
.sa-btn-create-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: #e62e6b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sa-btn-create-order:hover {
  background: #c9005d;
}

/* 4 KPI Cards Grid */
.sa-order-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .sa-order-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
}
.sa-order-kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  min-width: 0;
}
@media (max-width: 768px) {
  .sa-order-kpi-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 12px;
  }
}
.sa-order-kpi-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}
.sa-order-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fdf2f8;
  border: 1px solid #fce7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sa-order-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .sa-order-kpi-icon svg {
    width: 20px;
    height: 20px;
  }
}
.sa-order-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-order-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 2px;
}
@media (max-width: 768px) {
  .sa-order-kpi-label {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.sa-order-kpi-val {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .sa-order-kpi-val {
    font-size: 16px;
  }
}

/* Search Bar */
.sa-order-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sa-order-search-combined {
  display: flex;
  align-items: center;
  width: 440px;
  max-width: 100%;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
}
.sa-order-field-dropdown {
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.sa-order-search-divider {
  width: 1px;
  height: 22px;
  background: #e4e4e7;
  margin: 0 4px;
}
.sa-order-search-combined svg {
  margin-left: 8px;
  flex-shrink: 0;
}
.sa-order-search-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-size: 13.5px;
  color: #18181b;
  outline: none;
}
.sa-order-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  transition: background 0.15s;
}
.sa-order-export-btn:hover {
  background: #f4f4f5;
}

/* Status Tabs Rail */
.sa-order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sa-order-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sa-order-tabs-scroll::-webkit-scrollbar { display: none; }
.sa-order-tab-pill {
  height: 30px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
/* Courier Dispatch Send-To Bar */
.sa-order-send-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sa-send-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-send-label {
  font-size: 13px;
  font-weight: 700;
  color: #3f3f46;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sa-courier-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sa-courier-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.sa-courier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sa-courier-btn.is-pathao {
  background: #fff7ed;
  color: #c2410c;
  border-color: #ffedd5;
}
.sa-courier-btn.is-pathao .sa-courier-dot { background: #ea580c; }
.sa-courier-btn.is-pathao:hover:not([disabled]) {
  background: #ffedd5;
  border-color: #fdba74;
}
.sa-courier-btn.is-steadfast {
  background: #f0fdf4;
  color: #15803d;
  border-color: #dcfce7;
}
.sa-courier-btn.is-steadfast .sa-courier-dot { background: #16a34a; }
.sa-courier-btn.is-steadfast:hover:not([disabled]) {
  background: #dcfce7;
  border-color: #86efac;
}
.sa-courier-btn.is-redx {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fee2e2;
}
.sa-courier-btn.is-redx .sa-courier-dot { background: #dc2626; }
.sa-courier-btn.is-redx:hover:not([disabled]) {
  background: #fee2e2;
  border-color: #fca5a5;
}
.sa-courier-btn.is-paperfly {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #e0f2fe;
}
.sa-courier-btn.is-paperfly .sa-courier-dot { background: #0284c7; }
.sa-courier-btn.is-paperfly:hover:not([disabled]) {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.sa-courier-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f4f4f5 !important;
  color: #a1a1aa !important;
  border-color: #e4e4e7 !important;
}
.sa-courier-btn[disabled] .sa-courier-dot {
  background: #a1a1aa !important;
}
.sa-send-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-selected-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  background: #f4f4f5;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
}

/* Inline Courier Message / Warning with Confirm & Cancel */
.sa-send-inline-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
  animation: saFadeIn 0.15s ease-out;
}
.sa-send-inline-msg[hidden] {
  display: none !important;
}
.sa-send-inline-msg.is-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.sa-send-inline-msg.is-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.sa-send-inline-msg.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.sa-send-msg-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sa-send-msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sa-btn-confirm-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease;
  white-space: nowrap;
}
.sa-btn-confirm-send:hover {
  background: #4312db;
}
.sa-btn-cancel-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  background: #ffffff;
  color: #71717a;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.sa-btn-cancel-send:hover {
  background: #f4f4f5;
  color: #18181b;
}

@media (max-width: 768px) {
  .sa-order-send-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .sa-send-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .sa-send-label {
    text-align: center;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #3f3f46;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
  }
  .sa-courier-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .sa-courier-btn {
    width: 100%;
    justify-content: center;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
  .sa-send-inline-msg {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .sa-send-msg-content {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }
  .sa-send-msg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }
  .sa-btn-confirm-send,
  .sa-btn-cancel-send {
    height: 28px;
    font-size: 12px;
    padding: 0 12px;
  }
  .sa-send-right {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.sa-courier-status-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.sa-courier-status-alert.is-ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.sa-courier-status-alert.is-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.sa-courier-status-alert.is-busy {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Orders Table Card */
.sa-order-table-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sa-order-table-head {
  display: grid;
  grid-template-columns: 36px minmax(160px, 1.25fr) minmax(170px, 1.25fr) minmax(135px, 1fr) minmax(125px, 1fr) minmax(95px, 0.8fr) minmax(115px, 0.95fr) minmax(135px, 1.1fr);
  min-width: 1060px;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  font-size: 12.5px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sa-col-tracking-head {
  text-align: left;
}
.sa-order-table-body {
  display: flex;
  flex-direction: column;
  min-width: 1060px;
}
.sa-order-table-row {
  display: grid;
  grid-template-columns: 36px minmax(160px, 1.25fr) minmax(170px, 1.25fr) minmax(135px, 1fr) minmax(125px, 1fr) minmax(95px, 0.8fr) minmax(115px, 0.95fr) minmax(135px, 1.1fr);
  min-width: 1060px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #e4e4e7;
  transition: background 0.12s ease;
  cursor: pointer;
  min-height: 57px;
}
.sa-order-table-row:hover {
  background: #f8fafc;
}
.sa-mob-top-group,
.sa-mob-mid-group,
.sa-mob-bot-group {
  display: contents;
}
.sa-mob-divider {
  display: none;
}
.sa-col-edit {
  display: none;
}

/* Status Badge Button */
.sa-status-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: #f4f4f5;
  color: #3f3f46;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.sa-status-badge-btn .sa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.sa-status-badge-btn .sa-status-chevron {
  opacity: 0.6;
  margin-left: 1px;
}
.sa-status-badge-btn.is-placed,
.sa-status-badge-btn.is-pending {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}
.sa-status-badge-btn.is-placed .sa-status-dot,
.sa-status-badge-btn.is-pending .sa-status-dot { background: #2563eb; }

.sa-status-badge-btn.is-confirmed,
.sa-status-badge-btn.is-processing {
  background: #f0fdf4;
  border-color: #dcfce7;
  color: #15803d;
}
.sa-status-badge-btn.is-confirmed .sa-status-dot,
.sa-status-badge-btn.is-processing .sa-status-dot { background: #16a34a; }

.sa-status-badge-btn.is-on_hold,
.sa-status-badge-btn.is-onhold {
  background: #fff1f2;
  border-color: #f3e8ff;
  color: #7e22ce;
}
.sa-status-badge-btn.is-on_hold .sa-status-dot,
.sa-status-badge-btn.is-onhold .sa-status-dot { background: #9333ea; }

.sa-status-badge-btn.is-shipped {
  background: #fff7ed;
  border-color: #ffedd5;
  color: #c2410c;
}
.sa-status-badge-btn.is-shipped .sa-status-dot { background: #ea580c; }

.sa-status-badge-btn.is-delivered {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.sa-status-badge-btn.is-delivered .sa-status-dot { background: #059669; }

.sa-status-badge-btn.is-cancelled {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #b91c1c;
}
.sa-status-badge-btn.is-cancelled .sa-status-dot { background: #dc2626; }

.sa-status-badge-btn.is-returned {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #52525b;
}
.sa-status-badge-btn.is-returned .sa-status-dot { background: #71717a; }

/* Status dropdown menu */
.sa-status-dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-status-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.sa-status-menu-item:hover {
  background: #f1f5f9;
}
.sa-status-menu-item.is-current {
  font-weight: 700;
  background: #f8fafc;
}
.sa-status-menu-item .sa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sa-status-menu-item .sa-status-dot.is-placed { background: #2563eb; }
.sa-status-menu-item .sa-status-dot.is-confirmed { background: #16a34a; }
.sa-status-menu-item .sa-status-dot.is-processing { background: #0284c7; }
.sa-status-menu-item .sa-status-dot.is-on_hold { background: #9333ea; }
.sa-status-menu-item .sa-status-dot.is-shipped { background: #ea580c; }
.sa-status-menu-item .sa-status-dot.is-delivered { background: #059669; }
.sa-status-menu-item .sa-status-dot.is-cancelled { background: #dc2626; }
.sa-status-menu-item .sa-status-dot.is-returned { background: #71717a; }

/* Dedicated Edit Button */
.sa-order-edit-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.15s ease;
  color: #1e293b;
  flex-shrink: 0;
}
.sa-order-edit-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-col-fraud {
  display: flex;
  align-items: center;
}
.sa-btn-fraud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.sa-btn-fraud:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.sa-btn-fraud.is-trusted {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.sa-btn-fraud.is-trusted:hover {
  background: #dcfce7;
}
.sa-btn-fraud.is-risky {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.sa-btn-fraud.is-risky:hover {
  background: #fee2e2;
}
.sa-btn-fraud.is-new {
  background: #f4f4f5;
  color: #52525b;
  border-color: #e4e4e7;
}
.sa-btn-fraud.is-checking {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  cursor: wait;
}
.sa-btn-fraud.is-open {
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.2);
}

.sa-col-tracking {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.sa-btn-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.sa-btn-track:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}
.sa-btn-track.is-active {
  background: #c9005d;
  color: #ffffff;
  border-color: #c9005d;
}
.sa-courier-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sa-courier-tag strong {
  text-transform: capitalize;
  color: #111827;
}

/* Expandable Tracking Drawer */
.sa-order-track-drawer {
  min-width: 1040px;
  background: #ffffff;
  padding: 16px 24px 16px 58px;
  border-bottom: 1px solid #e4e4e7;
  transition: all 0.15s ease;
}
.sa-order-track-drawer[hidden] {
  display: none !important;
}

/* Expandable Fraud Drawer */
.sa-order-fraud-drawer {
  min-width: 1040px;
  background: #fdfcfe;
  padding: 16px 24px 16px 58px;
  border-bottom: 1px solid #e4e4e7;
  transition: all 0.15s ease;
}
.sa-order-fraud-drawer[hidden] {
  display: none !important;
}
.sa-order-table-row.has-fraud-open {
  background: #fff1f2 !important;
  border-bottom: 1px dashed #e9d5ff;
}

.sa-fraud-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-fraud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-fraud-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #18181b;
}
.sa-fraud-phone {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
}
.sa-fraud-status-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sa-fraud-status-pill.is-trusted {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.sa-fraud-status-pill.is-risky {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.sa-fraud-status-pill.is-new {
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}
.sa-fraud-status-pill.is-checking {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.sa-fraud-courier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sa-fc-box {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.sa-fc-box.is-pathao { border-left: 3.5px solid #ea580c; }
.sa-fc-box.is-steadfast { border-left: 3.5px solid #16a34a; }
.sa-fc-box.is-redx { border-left: 3.5px solid #dc2626; }

.sa-fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sa-fc-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-fc-rate {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.sa-fc-stats {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.sa-fc-ok { color: #16a34a; }
.sa-fc-cancel { color: #dc2626; }
.sa-fc-total { font-size: 11.5px; color: #6b7280; font-weight: 500; }
.sa-fc-err { font-size: 11.5px; color: #dc2626; font-style: italic; }

.sa-fraud-note {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
}
.sa-fraud-note.is-trusted {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.sa-fraud-note.is-risky {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.sa-fraud-note.is-caution {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef3c7;
}
.sa-fraud-note.is-new {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.sa-track-warning-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.sa-track-warning-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.sa-track-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-track-card-head {
  font-size: 13.5px;
  font-weight: 700;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-track-card-head .sa-track-consignment {
  font-family: var(--font-mono, monospace);
  color: #a1004a;
  font-weight: 600;
}
.sa-order-table-row.has-track-open {
  background: #fff1f2 !important;
  border-bottom: 1px dashed #e9d5ff;
}
.sa-order-col-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sa-order-box-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  flex-shrink: 0;
}
.sa-order-num-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-order-num-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-order-id-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #18181b;
  text-decoration: none;
}
.sa-order-id-link:hover {
  text-decoration: underline;
}
.sa-badge-online {
  font-size: 10px;
  font-weight: 500;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 1px 6px;
  height: 18px;
  display: inline-flex;
  align-items: center;
}
.sa-badge-inshop {
  font-size: 10px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 1px 6px;
  height: 18px;
  display: inline-flex;
  align-items: center;
}
.sa-order-table-row.has-detail-open {
  background: #fdf2f4 !important;
  border-bottom: 1px dashed #f1cfd3;
}
.sa-order-eye-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
}
.sa-order-eye-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}
.sa-order-eye-btn.is-open {
  background: #a23b5c !important;
  color: #ffffff !important;
  border-radius: 50%;
}
.sa-order-quick-detail {
  min-width: 980px;
  background: #fbfafb;
  padding: 14px 24px 14px 58px;
  border-bottom: 1px solid #e4e4e7;
  transition: all 0.15s ease;
}
.sa-order-quick-detail[hidden] {
  display: none !important;
}
.sa-order-quick-detail .order-detail {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sa-order-quick-detail .order-detail.od-has-acts {
  position: relative;
  padding-right: 152px;
}
.sa-order-quick-detail .order-detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}
.sa-order-quick-detail .order-detail-key {
  font-size: 10.5px;
  font-weight: 700;
  color: #6f6a70;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-top: 1px;
}
.sa-order-quick-detail .order-detail-val {
  font-size: 12.5px;
  color: #1b171c;
  line-height: 1.5;
  word-break: break-word;
}
.sa-order-quick-detail .order-detail-val.sa-od-amount-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #7e2e48;
}
.sa-order-quick-detail .order-detail-extra {
  font-size: 11.5px;
  color: #6f6a70;
  line-height: 1.6;
  border-top: 1px dashed #d6d3d7;
  padding-top: 8px;
  word-break: break-word;
}
.sa-order-quick-detail .od-acts {
  position: absolute;
  top: 0;
  right: 0;
  width: 136px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-order-quick-detail .od-act {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #e6e4e6;
  border-radius: 8px;
  background: #ffffff;
  color: #1b171c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.sa-order-quick-detail .od-act.is-cancel {
  color: #a9232f;
  border-color: #f1cfd3;
}
.sa-order-quick-detail .od-act.is-cancel:hover:not([disabled]) {
  background: #fdf3f4;
}
.sa-order-quick-detail .od-act.is-return {
  color: #1b171c;
  border-color: #e6e4e6;
}
.sa-order-quick-detail .od-act.is-return:hover:not([disabled]) {
  border-color: #c9005d;
  background: #fbfafb;
}
.sa-order-quick-detail .od-act[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 899px) {
  .sa-order-quick-detail {
    min-width: 980px;
    padding-left: 20px;
  }
  .sa-order-quick-detail .order-detail-item {
    grid-template-columns: 110px 1fr;
  }
}
.sa-order-subline {
  font-size: 12px;
  color: #71717a;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sa-order-sub-items {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #71717a;
}
.sa-order-cust-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sa-cust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #71717a;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-cust-name-phone {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-cust-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #18181b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-cust-phone {
  font-size: 12px;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-order-date-col {
  display: flex;
  flex-direction: column;
}
.sa-order-date-main {
  font-size: 13px;
  color: #18181b;
}
.sa-order-time-sub {
  font-size: 11.5px;
  color: #71717a;
}
.sa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
  width: fit-content;
  height: 20px;
  line-height: 1;
}
.sa-status-badge.is-placed { background: #fff1f2; color: #7e22ce; border-color: #e9d5ff; }
.sa-status-badge.is-confirmed { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.sa-status-badge.is-shipped { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.sa-status-badge.is-delivered { background: #f7fee7; color: #4d7c0f; border-color: #d9f99d; }
.sa-status-badge.is-completed { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.sa-status-badge.is-cancelled { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.sa-status-badge.is-returned { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.sa-status-badge.is-onhold { background: #fffbeb; color: #b45309; border-color: #fef08a; }

.sa-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #3f3f46;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  padding: 2px 8px;
  width: fit-content;
  line-height: 1;
  height: 20px;
}
.sa-amount-col {
  display: flex;
  flex-direction: column;
}
.sa-amount-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #18181b;
}
.sa-delivery-sub {
  font-size: 11.5px;
  color: #71717a;
}
.sa-actions-col {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sa-action-btn-sm {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: pointer;
  transition: all 0.12s ease;
}
.sa-action-btn-sm:hover {
  background: #f4f4f5;
  color: #18181b;
}

/* Checkbox Styling */
.sa-checkbox-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sa-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.sa-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.sa-checkbox-wrap input[type="checkbox"]:checked + .sa-checkbox-custom {
  background: #c9005d;
  border-color: #c9005d;
}
.sa-checkbox-wrap input[type="checkbox"]:checked + .sa-checkbox-custom::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Pagination — 100% Zatiq Matched */
.sa-order-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #71717a;
  flex-wrap: wrap;
  gap: 12px;
}
.sa-order-pagination-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-order-page-info {
  font-size: 13px;
  color: #71717a;
  font-weight: 400;
}
.sa-order-perpage-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sa-order-perpage-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 4px 26px 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  height: 30px;
}
.sa-order-perpage-select:hover {
  border-color: #d4d4d8;
}
.sa-order-perpage-select:focus {
  border-color: #a1a1aa;
}
.sa-order-perpage-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  display: flex;
  align-items: center;
  color: #71717a;
}
.sa-order-perpage-label {
  font-size: 13px;
  color: #71717a;
}
.sa-order-pagination-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.12s ease;
}
.sa-page-nav-btn:hover:not([disabled]) {
  color: #c9005d;
}
.sa-page-nav-btn[disabled] {
  color: #a1a1aa;
  cursor: not-allowed;
  opacity: 0.6;
}
.sa-page-pills-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sa-page-pill {
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: #71717a;
  cursor: pointer;
  transition: all 0.12s ease;
}
.sa-page-pill:hover:not(.is-active) {
  background: #f4f4f5;
  color: #18181b;
}
.sa-page-pill.is-active {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #18181b;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sa-page-ellipsis {
  padding: 0 4px;
  color: #71717a;
  font-size: 13px;
}

/* ----------------------------------------------------------- Order Details In-Page View (Zatiq 100% Clone) */
.sa-view-order-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.sa-view-order-detail[hidden] {
  display: none !important;
}

/* Sticky Top Navigation & Actions Bar */
.sa-od-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.sa-od-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-od-back-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #18181b;
  transition: all 0.12s;
}
.sa-od-back-btn:hover {
  background: #f4f4f5;
}
.sa-od-title {
  font-size: 15px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  white-space: nowrap;
}
.sa-od-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-od-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.sa-od-btn-sm:hover {
  background: #f4f4f5;
}
.sa-od-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.sa-od-print-btn:hover {
  background: #4314d9;
}

@media (max-width: 640px) {
  .sa-od-sticky-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .sa-od-top-left {
    gap: 8px;
    flex-shrink: 0;
  }
  .sa-od-title {
    font-size: 14.5px;
    white-space: nowrap;
  }
  .sa-od-top-right {
    gap: 6px;
  }
  .sa-od-btn-sm,
  .sa-od-print-btn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    gap: 4px;
  }
}

/* Header Card (Sequence, Status, ID, Receipt Link) */
.sa-od-header-card {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.sa-od-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-od-ord-num {
  font-size: 22px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
}
.sa-od-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff1f2;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.sa-od-status-pill.is-shipped { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.sa-od-status-pill.is-delivered { background: #f7fee7; color: #4d7c0f; border-color: #d9f99d; }
.sa-od-status-pill.is-confirmed { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.sa-od-status-pill.is-cancelled { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.sa-od-status-pill.is-returned { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.sa-od-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sa-od-id-text {
  font-size: 12px;
  color: #71717a;
  margin-left: auto;
}
.sa-od-receipt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  gap: 10px;
}
.sa-od-receipt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sa-od-receipt-link {
  font-size: 13px;
  font-weight: 500;
  color: #c9005d;
  text-decoration: none;
  word-break: break-all;
}
.sa-od-receipt-link:hover {
  text-decoration: underline;
}

/* 2-Column Layout */
.sa-od-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .sa-od-body {
    grid-template-columns: 1fr;
  }
}

.sa-od-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sa-od-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sa-od-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-od-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
}
.sa-od-acc-chevron {
  color: #71717a;
  cursor: pointer;
}

/* Products Card */
.sa-od-btn-add-prod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  border: 1.5px solid #c9005d;
  border-radius: 8px;
  color: #c9005d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
.sa-od-btn-add-prod:hover {
  background: #fdf2f8;
}

/* =================================================================
   ORDER DETAILS: PRODUCTS CARD & ITEMS (3-COLUMN RESPONSIVE GRID)
   ================================================================= */
.sa-od-prod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 640px) {
  .sa-od-prod-list {
    grid-template-columns: 1fr;
  }
}
.sa-od-prod-item {
  position: relative;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #ffffff;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.sa-od-prod-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.sa-od-prod-del-btn {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.sa-od-prod-item:hover .sa-od-prod-del-btn {
  opacity: 1;
}
.sa-od-prod-del-btn:hover {
  background: #fecaca;
  transform: scale(1.1);
}
.sa-od-prod-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-od-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}
.sa-od-prod-item:hover .sa-od-prod-img-wrap img {
  transform: scale(1.05);
}
.sa-od-prod-own-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #52525b;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sa-od-prod-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}
.sa-od-prod-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #18181b;
  line-height: 1.35;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sa-od-prod-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sa-od-field-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sa-od-field-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
}
.sa-od-input-bdt {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12.5px;
  background: #ffffff;
  transition: border-color 0.15s;
}
.sa-od-input-bdt:focus-within {
  border-color: #c9005d;
}
.sa-od-input-bdt span {
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  margin-right: 4px;
}
.sa-od-input-bdt input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #18181b;
  outline: none;
}
.sa-od-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.sa-od-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf2f8;
  color: #c9005d;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.sa-od-btn-change-variant {
  border: 1.5px solid #18181b;
  background: transparent;
  color: #18181b;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
.sa-od-btn-change-variant:hover {
  background: #18181b;
  color: #ffffff;
}

.sa-od-stepper-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.sa-od-stepper {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.sa-od-stepper button {
  width: 32px;
  height: 100%;
  border: none;
  background: #f8fafc;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.sa-od-stepper button:hover {
  background: #f1f5f9;
  color: #09090b;
}
.sa-od-stepper input {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  outline: none;
}

/* =================================================================
   ORDER DETAILS: FINANCIALS & ORDER SUMMARY CARD
   ================================================================= */
.sa-od-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 680px) {
  .sa-od-summary-grid {
    grid-template-columns: 1fr;
  }
}

.sa-od-subcard,
.sa-od-sum-box {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fbfbfb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sa-od-subcard-head,
.sa-od-sum-box-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
}

.sa-od-subcard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .sa-od-subcard-row {
    grid-template-columns: 1fr;
  }
}

.sa-od-field-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sa-od-field-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
}

.sa-od-input-bdt,
.sa-od-input-pct {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sa-od-input-bdt:focus-within,
.sa-od-input-pct:focus-within {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-od-input-bdt span,
.sa-od-input-pct span {
  font-size: 11.5px;
  font-weight: 700;
  color: #71717a;
}
.sa-od-input-bdt span {
  margin-right: 6px;
}
.sa-od-input-pct span {
  margin-left: 6px;
}

.sa-od-input-bdt input,
.sa-od-input-pct input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
  outline: none;
  padding: 0;
}

/* Payment Status Segmented Control */
.sa-od-payment-toggle,
.sa-od-pay-toggle {
  display: flex;
  align-items: center;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  height: 36px;
  width: 100%;
}

.sa-od-pay-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-od-pay-pill:hover {
  color: #18181b;
}

.sa-od-pay-pill.is-active {
  background: #ffffff;
  color: #18181b;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Remove ugly spin buttons from numeric inputs */
.sa-od-input-bdt input::-webkit-inner-spin-button,
.sa-od-input-bdt input::-webkit-outer-spin-button,
.sa-od-input-pct input::-webkit-inner-spin-button,
.sa-od-input-pct input::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sa-od-input-bdt input,
.sa-od-input-pct input,
input[type="number"] {
  -moz-appearance: textfield;
}

.sa-od-totals-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.sa-od-total-box {
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-od-total-box.is-due {
  background: #fff5f5;
  border: 1px solid #fecaca;
}
.sa-od-total-box.is-due .sa-od-total-label {
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
}
.sa-od-total-box.is-due .sa-od-total-val {
  color: #dc2626;
  font-size: 20px;
  font-weight: 700;
}
.sa-od-total-box.is-grand {
  background: #fdf2f8;
  border: 1px solid #fce7eb;
}
.sa-od-total-box.is-grand .sa-od-total-label {
  color: #c9005d;
  font-size: 11.5px;
  font-weight: 600;
}
.sa-od-total-box.is-grand .sa-od-total-val {
  color: #c9005d;
  font-size: 20px;
  font-weight: 700;
}

/* Delivery / Send to Card */
.sa-od-courier-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #a1a1aa;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 10px 0;
}
.sa-od-courier-divider::before, .sa-od-courier-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #f1f5f9;
}
.sa-od-courier-divider:not(:empty)::before { margin-right: 8px; }
.sa-od-courier-divider:not(:empty)::after { margin-left: 8px; }

.sa-od-courier-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .sa-od-courier-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
}
.sa-od-courier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
  transition: all 0.12s ease;
}
@media (max-width: 640px) {
  .sa-od-courier-pill {
    width: 100%;
    justify-content: center;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
}
.sa-od-courier-pill.is-selected {
  background: #c9005d;
  color: #ffffff;
  border-color: #c9005d;
}
.sa-od-courier-pill.is-selected .sa-courier-dot {
  background: #ffffff !important;
}

.sa-od-cour-msg-container {
  margin-bottom: 10px;
}
.sa-od-cour-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  animation: saFadeIn 0.15s ease-out;
}
.sa-od-cour-msg.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.sa-od-cour-msg.is-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  flex-wrap: wrap;
}
.sa-od-cour-warn-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.sa-od-cour-confirm-btn {
  padding: 3px 10px;
  border-radius: 6px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.sa-od-cour-confirm-btn:hover { background: #a1004a; }
.sa-od-cour-cancel-btn {
  padding: 3px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}
.sa-od-cour-cancel-btn:hover { background: #f4f4f5; }

.sa-od-delivery-notice {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-od-delivery-notice.is-shipped {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* Order Note Card */
.sa-od-note-textarea {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #18181b;
  outline: none;
  min-height: 70px;
  resize: vertical;
  background: #ffffff;
}
.sa-od-note-textarea:focus {
  border-color: #581c2f;
}
.sa-od-note-sub {
  font-size: 11.5px;
  color: #a1a1aa;
  margin-top: 4px;
}

/* Customer Information Card (Right Column) */
.sa-od-cust-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.sa-od-cust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdf2f8;
  color: #c9005d;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-od-cust-meta {
  flex: 1;
}
.sa-od-cust-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #18181b;
}
.sa-od-cust-phone {
  font-size: 12.5px;
  color: #71717a;
  margin-top: 1px;
}
.sa-od-cust-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sa-od-cust-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e4e4e7;
  color: #3f3f46;
  background: #ffffff;
  transition: all 0.12s;
}
.sa-od-cust-link-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}
.sa-od-cust-link-btn.is-call {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.sa-od-cust-link-btn.is-wa {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sa-od-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  margin-top: 8px;
  transition: border-color 0.15s;
}
.sa-od-input-wrap:focus-within {
  border-color: #c9005d;
}
.sa-od-input-wrap svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.sa-od-input-wrap input,
.sa-od-input-wrap textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #18181b;
  outline: none;
}

/* Customer Validity / Fraud Check Card */
.sa-od-btn-validity {
  width: 100%;
  height: 36px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.sa-od-btn-validity:hover { background: #a1004a; }

/* Mark As Fraud Row & Custom iOS Switch */
.sa-od-fraud-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sa-od-fraud-text {
  flex: 1;
}
.sa-od-fraud-title {
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 2px;
}
.sa-od-fraud-sub {
  font-size: 11.5px;
  color: #71717a;
  line-height: 1.35;
}

/* Precise Sleek iOS Switch Toggle (Zero Collision) */
.sa-ios-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  min-height: 24px !important;
  max-height: 24px !important;
  min-width: 44px;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.sa-ios-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}
.sa-ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
  box-sizing: border-box;
}
.sa-ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
.sa-ios-toggle input:checked + .sa-ios-slider {
  background-color: #ef4444;
}
.sa-ios-toggle input:checked + .sa-ios-slider:before {
  transform: translateX(20px);
}

/* =================================================================
   ZATIQ 100% ADD PRODUCT MODAL DIALOG (BEAUTIFLY PINK THEME)
   ================================================================= */
.sa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: saFadeIn 0.15s ease-out;
}
.sa-modal-backdrop[hidden] {
  display: none !important;
}
.sa-prod-modal {
  position: relative;
  width: 820px;
  max-width: 100%;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: saModalScale 0.15s ease-out;
}
@keyframes saModalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal Header (Top Flex Row) */
.sa-prod-modal-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sa-prod-modal-search-wrap {
  order: 1;
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  transition: border-color 0.15s;
}
.sa-prod-modal-search-wrap:focus-within {
  border-color: #c9005d;
}
.sa-prod-modal-search-wrap svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.sa-prod-modal-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #18181b;
}
.sa-prod-modal-filter-sel {
  order: 2;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #18181b;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}
.sa-prod-modal-add-custom-btn {
  order: 3;
  height: 42px;
  padding: 0 16px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.sa-prod-modal-add-custom-btn:hover {
  background: #a1004a;
}
.sa-prod-modal-close {
  order: 4;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.sa-prod-modal-close:hover {
  background: #f4f4f5;
  color: #18181b;
}

@media (max-width: 640px) {
  .sa-prod-modal {
    width: 96%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px;
    margin: auto;
  }
  .sa-prod-modal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
  }
  .sa-prod-modal-search-wrap {
    order: 1;
    flex: 1 1 calc(100% - 46px);
    min-width: 0;
    height: 38px;
    padding: 0 10px;
  }
  .sa-prod-modal-search-wrap input {
    font-size: 13px;
    width: 100%;
    min-width: 0;
  }
  .sa-prod-modal-close {
    order: 2;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .sa-prod-modal-filter-sel {
    order: 3;
    flex: 1 1 45%;
    min-width: 0;
    height: 36px;
    font-size: 12.5px;
    padding: 0 8px;
  }
  .sa-prod-modal-add-custom-btn {
    order: 4;
    flex: 1 1 45%;
    min-width: 0;
    height: 36px;
    font-size: 12.5px;
    padding: 0 10px;
    justify-content: center;
    gap: 4px;
  }
  .sa-prod-modal-chips-rail {
    padding: 10px 14px 12px;
    gap: 6px;
  }
  .sa-prod-chip {
    height: 30px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }
  .sa-prod-modal-body {
    padding: 12px 14px;
  }
}

/* Category Chips Rail (Fixed Precise Alignment) */
.sa-prod-modal-chips-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f1f5f9;
}
.sa-prod-modal-chips-rail::-webkit-scrollbar {
  display: none;
}
.sa-prod-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid #e0e1e6;
  background: #ffffff;
  color: #212121;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  transition: all 0.12s ease;
}
.sa-prod-chip:hover {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #c9005d;
}
.sa-prod-chip.is-active {
  border-color: #c9005d;
  background: #fdf2f8;
  color: #c9005d;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(201, 0, 93, 0.08);
}

/* Modal Body & Grid */
.sa-prod-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.sa-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .sa-prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .sa-prod-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Product Card in Modal */
.sa-pm-card {
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sa-pm-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.sa-pm-img-wrap {
  width: 100%;
  height: 160px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e0e1e6;
}
.sa-pm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-pm-sku-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.92);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(4px);
}
.sa-pm-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}
.sa-pm-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #212121;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.sa-pm-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #212121;
}
.sa-pm-variant-sel {
  width: 100%;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 0 8px;
  background: #fafafa;
  color: #18181b;
  outline: none;
  cursor: pointer;
}
.sa-pm-add-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sa-pm-add-btn:hover {
  background: #a1004a;
}

/* =================================================================
   CHANGE VARIANT DIALOG MODAL (100% ZATIQ CLONE)
   ================================================================= */
.sa-var-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: saFadeIn 0.15s ease-out;
}
.sa-var-modal {
  width: 512px;
  max-width: 95%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: saModalScale 0.15s ease-out;
}
.sa-var-modal-head {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.sa-var-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
}
.sa-var-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.sa-var-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 8px;
}
.sa-var-pills-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sa-var-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}
.sa-var-pill.is-active {
  background: #fdf2f8;
  color: #c9005d;
  border: 1.5px solid #c9005d;
  font-weight: 600;
}
.sa-var-pill.is-inactive {
  background: rgba(209, 213, 219, 0.2);
  color: #4b5563;
  border: 1.5px solid transparent;
  font-weight: 500;
}
.sa-var-pill.is-inactive:hover {
  background: rgba(209, 213, 219, 0.35);
}
.sa-var-modal-foot {
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.sa-var-btn-close {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sa-var-btn-close:hover {
  background: #f4f4f5;
}
.sa-var-btn-update {
  padding: 8px 18px;
  border-radius: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}
.sa-var-btn-update:hover {
  background: #a1004a;
}

/* ---------------------------------------------------- customer cell & avatar */
.sa-cust-cell { display: flex; align-items: center; gap: 10px; }
.sa-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sa-cust-info { display: flex; flex-direction: column; }
.sa-cust-name { font-weight: 600; color: var(--ink); }
.sa-cust-phone { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- status pills */
.sa-pill.is-placed { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.sa-pill.is-onhold { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.sa-pill.is-confirmed { background: #E0E7FF; color: #3730A3; border: 1px solid #C7D2FE; }
.sa-pill.is-shipped { background: #fce7f3; color: #5B21B6; border: 1px solid #fbcfe8; }
.sa-pill.is-delivered { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.sa-pill.is-completed { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.sa-pill.is-cancelled { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.sa-pill.is-returned { background: #FFE4E6; color: #9F1239; border: 1px solid #FECDD3; }

/* ---------------------------------------------------- cards & accordions */
.sa-acc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.sa-acc-head {
  padding: 12px 14px;
  font-weight: 650;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FCFBFC;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sa-acc-body { padding: 14px; }
.sa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sa-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* -------------------------------------------------------------- stepper */
.sa-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.sa-stepper button {
  width: 32px; height: 32px;
  border: none;
  background: var(--secondary);
  font-weight: 700;
  cursor: pointer;
}
.sa-stepper input {
  width: 44px; height: 32px;
  border: none;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- modals */
.sa-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 17, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sa-modal[hidden] { display: none; }
.sa-modal-box {
  background: var(--surface);
  border-radius: var(--r);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
}
.sa-modal-lg { max-width: 760px; }
.sa-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sa-modal-title { margin: 0; font-size: 16px; font-weight: 700; }
.sa-modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.sa-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------------------------------------------------- rich text & count */
.sa-char-count { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 4px; }
.sa-rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: var(--secondary);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.sa-rte-btn {
  padding: 4px 8px;
  border: 1px solid transparent;
  background: var(--surface);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sa-rte-btn:hover { background: #fce7f3; }
.sa-rte-editor {
  min-height: 140px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  outline: none;
}
.sa-rte-editor:focus { border-color: var(--accent); }

/* ---------------------------------------------------------- mobile header */
@media (max-width: 420px) {
  #saVisitStore span { display: none; }
  #saVisitStore { padding: 0 8px; }
  .sa-top { gap: 6px; }
}

/* ---------------------------------------------------------- print rules */
@media print {
  body * { visibility: hidden; }
  .sa-print-area, .sa-print-area * { visibility: visible; }
  .sa-print-area { position: absolute; left: 0; top: 0; width: 100%; }
}

/* =================================================================
   ZATIQ 100% CLONE: CUSTOMERS VIEW & DATA TABLE
   ================================================================= */
.sa-view-customers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}
.sa-view-customers[hidden] {
  display: none !important;
}

.sa-cust-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.sa-cust-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-cust-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fdf2f8;
  color: #c9005d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-cust-title {
  font-size: 20px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.2;
  margin: 0;
}

.sa-cust-count-sub {
  font-size: 12.5px;
  color: #71717a;
  margin: 2px 0 0;
}

.sa-cust-export-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #18181b;
}

.sa-cust-table-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sa-cust-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.sa-cust-search-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
  display: flex;
  align-items: center;
}

.sa-cust-search-wrap svg {
  position: absolute;
  left: 10px;
  color: #71717a;
  pointer-events: none;
}

.sa-cust-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  font-size: 13px;
  color: #18181b;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.sa-cust-search-input:focus {
  border-color: #c9005d;
}

.sa-cust-columns-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
}

.sa-cust-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sa-cust-table-head {
  display: grid;
  grid-template-columns: 44px minmax(220px, 2fr) minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(220px, 2fr) minmax(130px, 1.1fr);
  align-items: center;
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  min-width: 960px;
}

.sa-cust-table-body {
  min-width: 960px;
}

.sa-cust-table-row {
  display: grid;
  grid-template-columns: 44px minmax(220px, 2fr) minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(220px, 2fr) minmax(130px, 1.1fr);
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.12s ease;
  font-size: 13px;
  color: #18181b;
}

.sa-cust-table-row:hover {
  background: #fdf2f8;
}

.sa-mob-cust-top,
.sa-mob-cust-bot {
  display: contents;
}
.sa-cust-cell-view {
  display: none;
}
.sa-cust-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #a1004a;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}
.sa-cust-view-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-cust-cell-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sa-cust-avatar-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sa-cust-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sa-cust-name-text {
  font-weight: 600;
  color: #09090b;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-cust-email-text {
  font-size: 11.5px;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-cust-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: #09090b;
}

.sa-cust-copy-phone-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: #a1a1aa;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.12s;
}

.sa-cust-table-row:hover .sa-cust-copy-phone-btn {
  opacity: 1;
  color: #c9005d;
}

.sa-cust-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: 11.5px;
  font-weight: 600;
}

.sa-cust-type-sub {
  font-size: 10.5px;
  color: #71717a;
  margin-top: 2px;
}

.sa-cust-district-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  font-size: 11.5px;
  font-weight: 500;
}

.sa-cust-addr-text {
  font-size: 12px;
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.sa-cust-time-stack {
  display: flex;
  flex-direction: column;
}

.sa-cust-date-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #18181b;
}

.sa-cust-time-text {
  font-size: 11px;
  color: #71717a;
}

.sa-cust-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #e4e4e7;
  background: #ffffff;
  flex-wrap: wrap;
  gap: 10px;
}

.sa-cust-pagination-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #71717a;
}

.sa-cust-perpage-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sa-cust-perpage-select {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  padding: 0 24px 0 8px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  color: #18181b;
  cursor: pointer;
  outline: none;
}

.sa-cust-perpage-arrow {
  position: absolute;
  right: 6px;
  pointer-events: none;
  color: #71717a;
  display: flex;
  align-items: center;
}

.sa-cust-pagination-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   ZATIQ CUSTOMER DETAILS & PROFILE VIEW
   ========================================================================= */
.sa-cust-detail-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.sa-cd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  margin-bottom: 2px;
}

.sa-cd-bc-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #c9005d;
  cursor: pointer;
  text-decoration: none;
}
.sa-cd-bc-link:hover {
  text-decoration: underline;
}

.sa-cd-bc-sep {
  color: #a1a1aa;
}

.sa-cd-bc-current {
  color: #18181b;
  font-weight: 600;
}

.sa-cd-heading {
  font-size: 28px;
  font-weight: 700;
  color: #09090b;
  margin: 0 0 12px;
  line-height: 1.2;
}

/* Zatiq Blue Summary Box */
.sa-cd-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  padding: 16px 20px;
  background: #F3F8FF;
  border-radius: 0 0 8px 8px;
  border: 1px solid #dbeafe;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .sa-cd-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.sa-cd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-cd-field.is-colspan-3 {
  grid-column: 1 / -1;
}

.sa-cd-field b {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.sa-cd-field p {
  font-size: 13.5px;
  color: #334155;
  margin: 0;
  word-break: break-word;
}

.sa-cd-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sa-cd-phone-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0f172a !important;
}

.sa-cd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-cd-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.sa-cd-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.sa-cd-action-pill.is-call {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.sa-cd-action-pill.is-call:hover {
  background: #e2e8f0;
}

.sa-cd-action-pill.is-wa {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.sa-cd-action-pill.is-wa:hover {
  background: #d1fae5;
}

.sa-cd-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.sa-cd-toggle-receipts-btn {
  background: #c9005d !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sa-cd-toggle-receipts-btn:hover {
  opacity: 0.9;
}

/* Devices & Validity Cards */
.sa-cd-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-cd-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #09090b;
  margin: 0 0 4px;
}

.sa-cd-card-desc {
  font-size: 13px;
  color: #71717a;
  margin: 0 0 16px;
  line-height: 1.4;
}

.sa-cd-devices-empty {
  border: 1px dashed #e4e4e7;
  border-radius: 10px;
  padding: 32px 16px;
  text-align: center;
}

.sa-cd-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.sa-cd-devices-empty h4 {
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
  margin: 0 0 4px;
}

.sa-cd-devices-empty p {
  font-size: 12.5px;
  color: #71717a;
  margin: 0;
}

/* Validity Card */
.sa-cd-validity-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sa-cd-validity-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-cd-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-cd-check-validity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 8px;
  background: #c9005d;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
}
.sa-cd-check-validity-btn:hover {
  opacity: 0.9;
}

.sa-cd-fraud-switch-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #f4f4f5;
  border-radius: 8px;
}

.sa-cd-fraud-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-cd-fraud-text strong {
  font-size: 13px;
  color: #09090b;
}

.sa-cd-fraud-text span {
  font-size: 11.5px;
  color: #71717a;
}

/* Receipts Table */
.sa-cd-receipts-section {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-cd-receipts-title {
  font-size: 17px;
  font-weight: 700;
  color: #09090b;
  margin: 0 0 14px;
}

.sa-cd-receipts-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sa-cd-receipts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 780px;
}

.sa-cd-receipts-table th {
  text-align: left;
  padding: 10px 12px;
  background: #fafafa;
  border-bottom: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
}

.sa-cd-receipts-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #18181b;
  vertical-align: middle;
}

.sa-cd-receipts-table tr:hover td {
  background: #fdf2f8;
  cursor: pointer;
}

/* Order Details: View Profile Pill */
.sa-od-view-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #a1004a;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sa-od-view-profile-pill:hover {
  background: #e0e7ff;
  color: #3730a3;
}

/* Order Details: Right Column Top Card (Order Information) */
.sa-od-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.sa-od-type-toggle {
  display: flex;
  align-items: center;
  background: #f4f4f5;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid #e4e4e7;
  gap: 2px;
}

.sa-od-type-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  border-radius: 5px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sa-od-type-btn.is-active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-od-status-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sa-od-status-select {
  width: 100%;
  height: 32px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 0 24px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.sa-od-status-select:focus {
  border-color: #c9005d;
}

.sa-od-status-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #71717a;
  display: flex;
  align-items: center;
}

.sa-od-cust-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.sa-od-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.12s;
}

.sa-od-call-btn:hover {
  background: #f4f4f5;
}

.sa-od-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  text-decoration: none;
  transition: all 0.12s;
}

.sa-od-wa-btn:hover {
  background: #dcfce7;
}

/* ==========================================================================
   Zatiq 100% Products Tab (Inventory) Clone Styles
   ========================================================================== */

/* 1. Top Header */
.sa-prod-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sa-prod-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-prod-title {
  font-size: 22px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sa-prod-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 9999px;
  background: #eef2ff;
  color: #c9005d;
  font-size: 12.5px;
  font-weight: 600;
}

.sa-prod-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-prod-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sa-prod-search-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #ffffff;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-prod-search-toggle:hover {
  border-color: #d4d4d8;
  color: #18181b;
  background: #f8fafc;
}

.sa-prod-search-input-wrap {
  display: none;
  align-items: center;
  background: #ffffff;
  border: 1px solid #c9005d;
  border-radius: 8px;
  padding: 0 10px;
  height: 36px;
  gap: 6px;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
  animation: saFadeIn 0.15s ease-out;
}

.sa-prod-search-box.is-open .sa-prod-search-toggle {
  display: none;
}

.sa-prod-search-box.is-open .sa-prod-search-input-wrap {
  display: flex;
}

.sa-prod-search-icon {
  color: #71717a;
  flex-shrink: 0;
}

.sa-prod-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #18181b;
  width: 220px;
  padding: 0;
}

.sa-prod-search-clear {
  border: none;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-prod-search-clear:hover {
  color: #18181b;
}

.sa-btn-add-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgba(201, 0, 93, 0.2);
  white-space: nowrap;
}

.sa-btn-add-product:hover {
  background: #4312db;
}

.sa-btn-add-product:active {
  transform: scale(0.98);
}

/* 2. Filter Bar */
.sa-prod-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sa-prod-cat-rail-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.sa-prod-cat-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.sa-prod-cat-rail::-webkit-scrollbar {
  height: 4px;
}

.sa-prod-cat-rail::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.sa-prod-cat-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sa-prod-cat-chip:hover {
  background: #f8fafc;
  border-color: #d4d4d8;
  color: #18181b;
}

.sa-prod-cat-chip.is-active {
  border-color: #c9005d;
  color: #c9005d;
  background: #fdf2f8;
  font-weight: 600;
}

.sa-prod-cat-back-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px 0 10px;
  background: #fdf2f8;
  border: 1.5px solid #c9005d;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c9005d;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(201, 0, 93, 0.08);
}

.sa-prod-cat-back-chip svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: #c9005d;
}

.sa-prod-cat-back-chip:hover {
  background: #fce7f3;
  border-color: #4314d6;
  color: #4314d6;
}

.sa-prod-cat-back-chip.is-dashed {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-weight: 500;
  box-shadow: none;
}

.sa-prod-cat-back-chip.is-dashed svg {
  stroke: #64748b;
}

.sa-prod-cat-back-chip.is-dashed:hover {
  background: #f8fafc;
  border-color: #c9005d;
  color: #c9005d;
}

.sa-prod-cat-back-chip.is-dashed:hover svg {
  stroke: #c9005d;
}

.sa-prod-filter-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.sa-prod-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3f46;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-prod-filter-btn:hover {
  border-color: #d4d4d8;
  color: #18181b;
  background: #f8fafc;
}

.sa-prod-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 175px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 4px;
  z-index: 60;
  animation: saFadeIn 0.12s ease-out;
}

.sa-prod-filter-opt {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #3f3f46;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

.sa-prod-filter-opt:hover {
  background: #f4f4f5;
  color: #18181b;
}

.sa-prod-filter-opt.is-active {
  color: #c9005d;
  font-weight: 600;
  background: #fdf2f8;
}

.sa-prod-filter-divider {
  height: 1px;
  background: #e4e4e7;
  margin: 4px 0;
}

/* 3. Products Data Table Card */
.sa-prod-table-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.sa-prod-table-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  color: #71717a;
}

.sa-prod-col {
  display: flex;
  align-items: center;
}

.sa-col-drag {
  width: 24px;
  flex: 0 0 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-col-expand {
  width: 28px;
  flex: 0 0 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-col-thumb {
  width: 56px;
  flex: 0 0 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-col-title {
  flex: 0 0 calc(50% - 108px);
  max-width: calc(50% - 108px);
  min-width: 0;
  padding-right: 12px;
  text-align: left;
}

.sa-col-group-id {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sa-group-id-badge {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 11.5px;
  font-weight: 600;
  color: #c9005d;
  background: rgba(201, 0, 93, 0.08);
  border: 1px solid rgba(201, 0, 93, 0.15);
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: 0.2px;
}
.sa-group-id-badge.gid-palette-0 { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.sa-group-id-badge.gid-palette-1 { background: #fdf2f8; border-color: #fbcfe8; color: #a1004a; }
.sa-group-id-badge.gid-palette-2 { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.sa-group-id-badge.gid-palette-3 { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.sa-group-id-badge.gid-palette-4 { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.sa-group-id-badge.gid-palette-5 { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }

.sa-col-sku {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sa-col-price {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sa-col-qty {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.sa-col-qty:hover {
  color: #18181b;
}

.sa-col-actions {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

/* Products Row */
.sa-prod-row-wrapper {
  border-bottom: 1px solid #f4f4f5;
  transition: background 0.12s ease;
}

.sa-prod-row-wrapper:hover {
  background: #fafafa;
}

.sa-prod-row-wrapper.is-dragging {
  opacity: 0.4;
  background: #f1f5f9;
  border: 2px dashed #93c5fd !important;
}

.sa-prod-row-wrapper.is-drag-over-top {
  border-top: 2px solid #c9005d !important;
}

.sa-prod-row-wrapper.is-drag-over-bottom {
  border-bottom: 2px solid #c9005d !important;
}

.sa-prod-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  position: relative;
  cursor: pointer;
}

.sa-prod-drag-handle {
  color: #a1a1aa;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  opacity: 0.6;
  user-select: none;
}

.sa-prod-drag-handle:active {
  cursor: grabbing;
}

.sa-prod-row:hover .sa-prod-drag-handle {
  opacity: 1;
}

.sa-prod-expand-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sa-prod-expand-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}

.sa-prod-expand-btn.is-open {
  transform: rotate(90deg);
  color: #c9005d;
}

.sa-prod-expand-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.sa-prod-mob-expand-btn {
  display: none;
}

.sa-prod-var-subtable-header {
  display: none;
}

.sa-prod-badge-row {
  display: none;
}

.sa-prod-thumb-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.sa-prod-thumb-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
  background: #fafafa;
  display: block !important;
}

.sa-prod-thumb-empty {
  font-size: 10px;
  color: #a1a1aa;
  text-align: center;
}

.sa-prod-info-col {
  flex: 0 0 calc(50% - 108px);
  max-width: calc(50% - 108px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 12px;
}

.sa-prod-title-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  max-width: 100%;
}

.sa-prod-name-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #18181b;
  text-align: left !important;
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.12s ease;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-prod-name-btn:hover {
  color: #c9005d;
}

.sa-prod-ext-link {
  display: inline-flex;
  align-items: center;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.12s ease;
  flex-shrink: 0;
}

.sa-prod-ext-link:hover {
  color: #c9005d;
}

.sa-prod-sub-meta {
  font-size: 12px;
  color: #71717a;
  margin-top: 2px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-prod-mobile-meta {
  display: none;
}

.sa-prod-gid-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sa-prod-sku-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #71717a;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-prod-price-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #18181b;
}

.sa-prod-qty-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sa-prod-qty-badge {
  font-size: 13px;
  font-weight: 700;
}

.sa-prod-qty-badge.is-out {
  color: #ef4444;
}

.sa-prod-qty-badge.is-low {
  color: #ea580c;
}

.sa-prod-qty-badge.is-ok {
  color: #10b981;
}

.sa-prod-actions-cell {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.sa-prod-more-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sa-prod-more-btn:hover {
  background: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

.sa-prod-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  color: #3f3f46;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.sa-prod-add-btn:hover {
  background: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

/* 3-Dots Popup Menu */
.sa-prod-popup-menu {
  position: absolute;
  right: 16px;
  top: 48px;
  width: 180px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 4px;
  z-index: 100;
  animation: saFadeIn 0.12s ease-out;
}

.sa-prod-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.sa-prod-menu-item:hover {
  background: #f4f4f5;
}

.sa-prod-menu-item.is-danger {
  color: #dc2626;
}

.sa-prod-menu-item.is-danger:hover {
  background: #fef2f2;
}

/* Expandable Variants Container */
.sa-prod-variants-box {
  background: #fbfbfd;
  border-top: 1px solid #f1f5f9;
  padding: 0;
  animation: saFadeIn 0.15s ease-out;
}

.sa-prod-var-subrow {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13px;
  background: #fbfbfd;
  transition: background 0.12s ease;
}

.sa-prod-var-subrow:last-child {
  border-bottom: none;
}

.sa-prod-var-subrow:hover {
  background: #f4f4f8;
}

.sa-prod-var-thumb-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}

.sa-prod-var-title-col {
  font-weight: 500;
  color: #3f3f46;
  font-size: 13px;
  flex: 0 0 calc(50% - 108px) !important;
  max-width: calc(50% - 108px) !important;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-prod-var-gid-col {
  color: #a1a1aa;
  font-size: 12px;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.sa-prod-var-sku-col {
  color: #71717a;
  font-family: monospace;
  font-size: 12px;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-prod-var-price-col {
  font-weight: 600;
  color: #18181b;
  font-size: 13px;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.sa-prod-var-qty-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.sa-prod-var-actions-col {
  width: 48px !important;
  flex: 0 0 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. Pagination */
.sa-prod-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #e4e4e7;
  background: #ffffff;
  flex-wrap: wrap;
  gap: 12px;
}

.sa-prod-pagination-info {
  font-size: 13px;
  color: #71717a;
}

.sa-prod-pagination-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sa-prod-per-page-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-prod-per-page-select {
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #3f3f46;
  padding: 0 8px;
  cursor: pointer;
  outline: none;
}

.sa-prod-per-page-label {
  font-size: 13px;
  color: #71717a;
}

.sa-prod-page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sa-prod-page-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sa-prod-page-btn:hover:not([disabled]) {
  background: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

.sa-prod-page-btn.is-active {
  background: #c9005d;
  color: #ffffff;
  border-color: #c9005d;
  font-weight: 600;
}

.sa-prod-page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: #fafafa;
}

/* Mobile Responsive (< 768px) */
@media (max-width: 768px) {
  /* Header icons */
  .sa-top {
    padding: 0 14px;
    height: 58px;
  }
  .sa-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sa-delivery-app-btn,
  .sa-payment-app-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: #c9005d !important;
    color: #ffffff !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(201, 0, 93, 0.2);
  }
  .sa-delivery-app-text,
  .sa-payment-app-text {
    display: none !important;
  }
  .sa-delivery-app-icon,
  .sa-payment-app-icon {
    stroke: #ffffff !important;
    width: 18px !important;
    height: 18px !important;
  }
  .sa-user-profile-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: #c9005d !important;
    color: #ffffff !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(201, 0, 93, 0.2);
  }
  .sa-user-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  .sa-user-info-text,
  .sa-user-caret {
    display: none !important;
  }

  /* Products View Header */
  #saViewProducts {
    padding: 12px 14px 24px 14px;
  }
  .sa-prod-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
  }
  .sa-prod-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sa-prod-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
  }
  .sa-prod-count-badge {
    font-size: 12.5px;
    font-weight: 600;
    color: #c9005d;
    background: #eef2ff;
    padding: 2px 10px;
    border-radius: 12px;
  }
  .sa-btn-add-product {
    display: none !important; /* Hidden on mobile */
  }
  .sa-prod-search-box {
    position: relative;
    display: flex;
    align-items: center;
  }
  .sa-prod-search-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  }
  .sa-prod-search-box.is-open .sa-prod-search-input-wrap {
    display: flex;
    position: absolute;
    right: 0;
    top: -2px;
    z-index: 50;
    width: calc(100vw - 32px);
    max-width: 340px;
    background: #ffffff;
    border: 1.5px solid #c9005d;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    padding: 4px 10px;
  }
  .sa-prod-search-input {
    width: 100%;
    font-size: 13.5px;
  }

  /* Category Filter Rail */
  .sa-prod-filter-bar {
    display: block;
    margin-bottom: 12px;
  }
  .sa-prod-filter-dropdown-wrap {
    display: none !important; /* "Show All" filter removed on mobile */
  }
  .sa-prod-cat-rail-wrap {
    width: 100%;
    overflow: hidden;
  }
  .sa-prod-cat-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 6px 0;
  }
  .sa-prod-cat-rail::-webkit-scrollbar {
    display: none;
  }
  .sa-prod-cat-chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .sa-prod-cat-chip.is-active {
    border: 1.5px solid #c9005d;
    color: #c9005d;
    font-weight: 600;
    background: #ffffff;
  }
  .sa-prod-cat-back-chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #c9005d;
    background: #ffffff;
    border: 1.5px solid #c9005d;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* Products Data Table -> 100% Mobile Cards */
  .sa-prod-table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .sa-prod-table-header {
    display: none !important;
  }
  .sa-prod-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sa-prod-row-wrapper {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: visible !important;
    position: relative !important;
    margin-bottom: 0;
    transition: box-shadow 0.15s ease;
  }
  .sa-prod-row-wrapper.has-popup-open {
    z-index: 1000 !important;
  }
  .sa-prod-row-wrapper:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .sa-prod-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    position: relative;
    overflow: visible !important;
    cursor: default;
  }

  /* Hide desktop columns */
  .sa-col-drag,
  .sa-col-expand,
  .sa-prod-gid-cell,
  .sa-prod-sku-cell,
  .sa-prod-price-cell,
  .sa-prod-qty-cell,
  .sa-prod-ext-link {
    display: none !important;
  }

  /* Thumbnail: 76x76 rounded */
  .sa-prod-thumb-wrap {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0;
    cursor: default;
  }
  .sa-prod-thumb-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px;
  }
  .sa-prod-thumb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
  }

  /* Info Column: Takes full remaining width right up to 3-dots */
  .sa-prod-info-col {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 0;
    text-align: left;
  }
  .sa-prod-title-line {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2px !important;
  }
  .sa-prod-name-btn {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.32 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    cursor: default !important;
  }
  .sa-prod-sub-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mobile Price & Qty */
  .sa-prod-mobile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }
  .sa-prod-mobile-price {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
  }
  .sa-prod-qty-badge {
    font-size: 14px;
    font-weight: 700;
    background: none;
    padding: 0;
    border: none;
  }
  .sa-prod-qty-badge.is-ok {
    color: #16a34a !important;
  }
  .sa-prod-qty-badge.is-low {
    color: #ea580c !important;
  }
  .sa-prod-qty-badge.is-out {
    color: #dc2626 !important;
  }

  /* Group ID / SKU Badge */
  .sa-prod-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
  }
  .sa-prod-gid-chip {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    cursor: pointer;
  }
  .sa-prod-gid-chip .sa-sparkle-icon {
    color: #d97706;
  }
  .sa-prod-gid-chip .sa-copy-icon {
    color: #b45309;
    opacity: 0.8;
  }
  .sa-prod-sku-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    width: fit-content;
  }

  /* Actions Column: Top 3-dots, Bottom Down-arrow */
  .sa-prod-actions-cell {
    width: 28px;
    min-width: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 76px;
    flex-shrink: 0;
    border-top: none;
    padding: 0;
    margin: 0;
  }
  .sa-prod-more-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    padding: 0;
  }
  .sa-prod-popup-menu {
    position: absolute !important;
    right: 12px !important;
    top: 42px !important;
    width: 175px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    padding: 6px !important;
    z-index: 9999 !important;
  }
  .sa-prod-mob-expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fdf2f8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9005d;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
  }
  .sa-prod-mob-expand-btn.is-open {
    transform: rotate(180deg);
    background: #fce7f3;
  }

  /* Expanded Sub-Card / Variant Table */
  .sa-prod-variants-box {
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    padding: 4px 16px 14px 16px;
    margin: 0;
  }
  .sa-prod-var-subtable-header {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.4fr 0.8fr;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
  }
  .sa-prod-var-subtable-header .sa-vcol-name { text-align: left; }
  .sa-prod-var-subtable-header .sa-vcol-sku  { text-align: center; }
  .sa-prod-var-subtable-header .sa-vcol-price{ text-align: center; }
  .sa-prod-var-subtable-header .sa-vcol-qty  { text-align: center; }

  .sa-prod-var-subrow {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.4fr 0.8fr;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    background: transparent;
  }
  .sa-prod-var-subrow .sa-col-drag,
  .sa-prod-var-subrow .sa-col-expand,
  .sa-prod-var-subrow .sa-col-thumb,
  .sa-prod-var-subrow .sa-prod-var-gid-col,
  .sa-prod-var-subrow .sa-prod-var-actions-col {
    display: none !important;
  }
  .sa-prod-var-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    word-break: break-word;
  }
  .sa-prod-var-sku-col {
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
    font-family: inherit;
  }
  .sa-prod-var-price-col {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
  }
  .sa-prod-var-qty-col {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }

  /* Pagination on mobile */
  .sa-prod-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }
  .sa-prod-pagination-info {
    text-align: center;
    font-size: 12px;
  }
  .sa-prod-pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
}

/* ==========================================================================
   Add & Edit Product Page (100% Zatiq Clone)
   ========================================================================== */

#saViewProductEdit {
  background: #f8fafc;
  min-height: calc(100vh - 60px);
  padding-bottom: 60px;
}

/* Top Sticky Bar */
.sa-pe-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.sa-pe-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-pe-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #52525b;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-pe-back-btn:hover {
  background: #f4f4f5;
  color: #09090b;
}
.sa-pe-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #09090b;
  margin: 0;
}
.sa-pe-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-pe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-pe-btn.is-discard {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #3f3f46;
}
.sa-pe-btn.is-discard:hover {
  background: #f4f4f5;
  color: #09090b;
}
.sa-pe-btn.is-save {
  background: #c9005d;
  border: 1px solid #c9005d;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(201,0,93,0.25);
}
.sa-pe-btn.is-save:hover {
  background: #4414d9;
  border-color: #4414d9;
}

/* 2-Column Form Grid */
.sa-pe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  max-width: 1320px;
  margin: 20px auto;
  padding: 0 20px;
  align-items: start;
}
.sa-pe-col-main,
.sa-pe-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.sa-pe-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.sa-pe-card:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.sa-pe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f4f4f5;
  cursor: pointer;
  user-select: none;
}
.sa-pe-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #09090b;
  margin: 0;
}
.sa-pe-card-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: transform 0.2s;
}
.sa-pe-card.is-collapsed .sa-pe-card-chevron {
  transform: rotate(180deg);
}
.sa-pe-card.is-collapsed .sa-pe-card-body {
  display: none;
}
.sa-pe-card-body {
  padding: 18px;
}
.sa-pe-card-desc {
  font-size: 13px;
  color: #71717a;
  margin: 0 0 14px;
}

/* Form Controls */
.sa-pe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.sa-pe-field:last-child {
  margin-bottom: 0;
}
.sa-pe-label {
  font-size: 13px;
  font-weight: 500;
  color: #27272a;
}
.sa-pe-req {
  color: #ef4444;
  margin-left: 2px;
}
.sa-pe-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sa-pe-counter {
  font-size: 12px;
  color: #a1a1aa;
}
.sa-pe-input,
.sa-pe-textarea,
.sa-pe-select {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #09090b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.sa-pe-input:focus,
.sa-pe-textarea:focus,
.sa-pe-select:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201,0,93,0.12);
}
.sa-pe-hint {
  font-size: 12px;
  color: #71717a;
  margin-top: 4px;
}
.sa-pe-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sa-pe-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sa-pe-dims-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sa-pe-dim-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-pe-dim-item label {
  font-size: 12px;
  color: #71717a;
}

/* Secondary Button */
.sa-pe-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-pe-btn-secondary:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

/* Rich Text Editor */
.sa-pe-editor-wrap {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.sa-pe-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e4e4e7;
}
.sa-pe-editor-select {
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
}
.sa-pe-editor-divider {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 4px;
}
.sa-pe-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  cursor: pointer;
}
.sa-pe-editor-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sa-pe-editor-content {
  min-height: 140px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  outline: none;
  color: #1e293b;
}
.sa-pe-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

/* Media Dropzone & Gallery */
.sa-pe-dropzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-pe-dropzone:hover {
  border-color: #c9005d;
  background: #fdf2f8;
}
.sa-pe-dropzone-icon {
  margin-bottom: 8px;
}
.sa-pe-dropzone-text {
  font-size: 12.5px;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto 12px;
  line-height: 1.5;
}
.sa-pe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sa-pe-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}
.sa-pe-gallery-item.is-cover {
  border-color: #c9005d;
}
.sa-pe-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-pe-gallery-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #c9005d;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}
.sa-pe-gallery-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15,23,42,0.7);
  color: #fff;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sa-pe-gallery-set-cover {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  padding: 2px 0;
  cursor: pointer;
  text-align: center;
}

/* Video Section in Media Card */
.sa-pe-video-container {
  margin-top: 16px;
}
.sa-pe-video-box {
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sa-pe-video-box:hover {
  border-color: #c9005d;
}
.sa-pe-video-icon {
  margin-bottom: 12px;
}
.sa-pe-video-title {
  font-size: 13.5px;
  color: #4b5563;
  margin: 0 0 14px;
}
.sa-pe-btn-secondary,
.sa-pe-btn-action,
.sa-pe-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #edf2f7;
  color: #c9005d;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.sa-pe-btn-secondary:hover,
.sa-pe-btn-action:hover,
.sa-pe-btn-link:hover {
  background: #e2e8f0;
}
.sa-pe-video-preview {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.sa-pe-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.sa-pe-video-del {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.sa-pe-video-del:hover {
  background: #dc2626;
  transform: scale(1.08);
}

/* Shipping Toggles */
.sa-pe-subhead {
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
  margin: 0 0 2px;
}
.sa-pe-subtext {
  font-size: 12.5px;
  color: #71717a;
  margin: 0;
}
.sa-pe-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f4f4f5;
  gap: 12px;
}
.sa-pe-toggle-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #18181b;
  line-height: 1.4;
}
.sa-pe-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sa-pe-toggle-state {
  font-size: 13px;
  font-weight: 500;
  color: #c9005d;
  transition: color 0.2s ease;
}

/* Switch toggle (Product Editor) */
.sa-pe-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  min-width: 44px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  margin: 0;
}

.sa-pe-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  margin: 0;
  pointer-events: none;
}

.sa-pe-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease;
  border-radius: 9999px;
  box-sizing: border-box;
}

.sa-pe-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  top: 3px;
  background-color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sa-pe-switch input:checked + .sa-pe-slider {
  background-color: #c9005d;
}

.sa-pe-switch input:checked + .sa-pe-slider:before {
  transform: translateX(20px);
}

.sa-pe-switch input:focus-visible + .sa-pe-slider {
  outline: 2px solid #c9005d;
  outline-offset: 2px;
}

/* Dynamic Options & Matrix */
.sa-pe-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.sa-pe-option-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}
.sa-pe-opt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sa-pe-opt-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.sa-pe-opt-del {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
}
.sa-pe-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 40px;
}
.sa-pe-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #c9005d;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
}
.sa-pe-tag-del {
  background: transparent;
  border: none;
  color: #c9005d;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  display: inline-flex;
}
.sa-pe-tag-input {
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #0f172a;
  flex: 1;
  min-width: 120px;
  padding: 3px;
}

/* Variant Matrix Table */
.sa-pe-matrix-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.sa-pe-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sa-pe-matrix-table-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.sa-pe-matrix-table-head {
  display: grid;
  grid-template-columns: 46px 1.4fr 1fr 1fr 1fr 80px 65px 36px;
  gap: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}
.sa-pe-matrix-row {
  display: grid;
  grid-template-columns: 46px 1.4fr 1fr 1fr 1fr 80px 65px 36px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  font-size: 13px;
}
.sa-pe-matrix-row:last-child {
  border-bottom: none;
}
.sa-pe-var-img-slot {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.sa-pe-var-img-slot:hover {
  border-color: #c9005d;
}
.sa-pe-var-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-pe-matrix-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 12.5px;
}

/* Product Details (Specifications) */
.sa-pe-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.sa-pe-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
}
.sa-pe-detail-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #ffffff;
  color: #ef4444;
  cursor: pointer;
}

/* Category Sidebar Card */
.sa-pe-cat-status {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 14px;
}
.sa-pe-cat-status.has-cat {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.sa-pe-btn-assign-cat {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: #c9005d;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-pe-btn-assign-cat:hover {
  background: #4314d6;
}

/* Category Tree Modal */
.sa-pe-cat-modal-search {
  margin-bottom: 14px;
}
.sa-pe-cat-tree-wrap {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}
.sa-pe-tree-parent {
  margin-bottom: 6px;
}
.sa-pe-tree-parent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: #1e293b;
  transition: background 0.15s;
}
.sa-pe-tree-parent-head:hover {
  background: #f1f5f9;
}
.sa-pe-tree-subs {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.sa-pe-tree-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
}
.sa-pe-tree-sub-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Category & Generic PE Modals in Zatiq Style */
.sa-pe-modal-close-round {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}
.sa-pe-modal-close-round:hover {
  background: #fecaca;
  color: #dc2626;
  transform: scale(1.05);
}
.sa-pe-var-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}
.sa-pe-var-pick-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sa-pe-var-pick-item:hover {
  border-color: #c9005d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 0, 93, 0.15);
}
.sa-pe-var-pick-item.is-selected {
  border-color: #c9005d;
  outline: 2px solid #c9005d;
}
.sa-pe-var-pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-pe-cat-modal-sub {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin: 0 0 10px;
}
.sa-pe-cat-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.sa-pe-cat-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.sa-pe-cat-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.sa-pe-cat-pill.is-selected {
  border-color: #c9005d;
  background: #fdf2f8;
  color: #c9005d;
  font-weight: 600;
}
.sa-pe-modal-done {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: #c9005d;
  color: #fff;
  border: none;
  margin-top: 16px;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .sa-pe-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
    margin: 12px auto;
    gap: 14px;
  }
  .sa-pe-topbar {
    padding: 10px 14px;
  }
  .sa-pe-page-title {
    font-size: 16px;
  }
  .sa-pe-grid-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sa-pe-grid-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sa-pe-dims-row {
    grid-template-columns: 1fr;
  }
  .sa-pe-matrix-table-head {
    display: none;
  }
  .sa-pe-matrix-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
  }
  .sa-pe-matrix-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   ZATIQ CATEGORIES STYLES (100% Exact Clone for Desktop & Mobile)
   ========================================================================== */

.sa-cat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2px;
  box-sizing: border-box;
}

/* 1. Header Bar */
.sa-cat-header-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.sa-cat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-cat-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.sa-cat-count-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-cat-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.sa-cat-bc-root,
.sa-cat-bc-btn {
  background: none;
  border: none;
  padding: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.sa-cat-bc-root:hover,
.sa-cat-bc-btn:hover {
  color: #c9005d;
  text-decoration: underline;
}

.sa-cat-bc-sep {
  color: #94a3b8;
  font-size: 14px;
}

.sa-cat-bc-current {
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
}

.sa-cat-empty-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  border: 1.5px dashed #cbd5e1;
  margin: 12px 0;
}

.sa-cat-btn-add.is-empty-add {
  margin-top: 16px;
}

.sa-cat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-cat-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
  transition: all 0.2s ease;
}

.sa-cat-search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.sa-cat-search-input {
  width: 100%;
  height: 38px;
  padding: 0 30px 0 34px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.sa-cat-search-input:focus {
  border-color: #c9005d;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.12);
}

.sa-cat-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.sa-cat-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  height: 38px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(201, 0, 93, 0.2);
}

.sa-cat-btn-add:hover {
  background: #4314cc;
}

.sa-cat-plus-icon {
  width: 16px;
  height: 16px;
}

/* 2. Main Tables */
.sa-cat-table-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  width: 100%;
  box-sizing: border-box;
}

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

.sa-cat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.sa-cat-th {
  padding: 11px 16px;
  font-weight: 500;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  white-space: nowrap;
}

.sa-cat-th.is-center,
.sa-cat-td.is-center {
  text-align: center;
}

.sa-cat-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
  cursor: pointer;
}

.sa-cat-row:hover {
  background: #f8fafc;
}

.sa-cat-row.is-dragging {
  opacity: 0.4;
  background: #f1f5f9;
  border: 2px dashed #93c5fd !important;
}

.sa-cat-row.is-drag-over-top {
  border-top: 2px solid #c9005d !important;
}

.sa-cat-row.is-drag-over-bottom {
  border-bottom: 2px solid #c9005d !important;
}

.sa-cat-td {
  padding: 10px 16px;
  vertical-align: middle;
}

.sa-cat-drag-handle {
  color: #94a3b8;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.sa-cat-drag-handle:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.sa-cat-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-cat-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sa-cat-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.sa-cat-title-text {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.sa-cat-subcount-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.sa-cat-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #94a3b8;
  text-decoration: none;
  margin-left: 4px;
  transition: all 0.15s;
}

.sa-cat-ext-link:hover {
  color: #c9005d;
  background: #fdf2f8;
}

.sa-cat-count-text {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.sa-cat-actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sa-cat-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.sa-cat-act-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sa-cat-act-btn.is-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sa-cat-act-label {
  display: none;
}

/* 3. Drilldown 2-Column Grid Layout */
.sa-cat-drilldown-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  box-sizing: border-box;
}

.sa-cat-card-left {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.sa-cat-card-right {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.sa-cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sa-cat-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

/* 4. Form Controls & Dropzones */
.sa-cat-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-cat-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sa-cat-req {
  color: #ef4444;
}

.sa-cat-input,
.sa-cat-textarea,
.sa-cat-select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}

.sa-cat-input:focus,
.sa-cat-textarea:focus,
.sa-cat-select:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.12);
}

.sa-cat-input-hint {
  font-size: 11.5px;
  color: #64748b;
  text-align: right;
  margin-top: 2px;
}

/* Banner / Cover Dropzone (Aspect Ratio 3.42:1) */
.sa-cat-banner-dropzone {
  width: 100%;
  aspect-ratio: 3.42105 / 1;
  min-height: 120px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}

.sa-cat-banner-dropzone:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.sa-cat-banner-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-cat-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}

.sa-cat-drop-icon-wrap {
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 6px;
  color: #c9005d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-cat-drop-text {
  font-size: 11.5px;
  color: #64748b;
  max-width: 320px;
  line-height: 1.35;
  margin: 0;
}

.sa-cat-drop-btn {
  background: #f1f5f9;
  color: #c9005d;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}

/* Square 1:1 Image Dropzone */
.sa-cat-icon-dropzone {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 130px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}

.sa-cat-icon-dropzone:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.sa-cat-icon-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-cat-drop-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
}

.sa-cat-drop-remove:hover {
  background: rgba(220, 38, 38, 0.9);
}

.sa-cat-form-row {
  display: flex;
  gap: 16px;
}

.sa-cat-form-col {
  flex: 1;
  min-width: 0;
}

.sa-cat-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.sa-cat-btn-cancel {
  flex: 1;
  height: 42px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.sa-cat-btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-cat-btn-save {
  flex: 1;
  height: 42px;
  background: #c9005d;
  border: none;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(201, 0, 93, 0.2);
}

.sa-cat-btn-save:hover {
  background: #4314cc;
}

/* 5. Modal Dialog */
.sa-cat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.sa-cat-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.sa-cat-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.sa-cat-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.sa-cat-modal-close {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.sa-cat-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 6. Empty States & Alerts */
.sa-cat-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.sa-cat-empty-icon {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.sa-cat-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.sa-cat-empty-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* 7. Mobile Responsive Styles */
@media (max-width: 900px) {
  .sa-cat-header-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .sa-cat-header-right {
    justify-content: space-between;
    width: 100%;
  }

  .sa-cat-search-box {
    flex: 1;
    width: auto;
  }

  .sa-cat-drilldown-layout {
    flex-direction: column;
    gap: 16px;
  }

  .sa-cat-card-left,
  .sa-cat-card-right {
    width: 100%;
  }

  .sa-cat-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .sa-cat-modal-box {
    padding: 16px;
  }
}

/* ==========================================================================
   MANAGE SHOP HUB (100% Exact Zatiq Clone)
   ========================================================================== */
.sa-manage-shop-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .sa-manage-shop-wrap {
    padding: 8px 8px 24px;
  }
}

.sa-ms-header {
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .sa-ms-header {
    margin-bottom: 16px;
  }
}

.sa-ms-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #212121;
  margin: 0;
  font-family: inherit;
}

@media (max-width: 640px) {
  .sa-ms-title {
    font-size: 18px;
    line-height: 28px;
  }
}

.sa-ms-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #6b6b6b;
  margin-top: 4px;
  margin-bottom: 0;
  font-family: inherit;
}

.sa-ms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .sa-ms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sa-ms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sa-ms-card {
  display: block;
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .sa-ms-card {
    padding: 16px;
  }
}

.sa-ms-card:hover {
  border-color: #cfd1d8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.sa-ms-icon-wrap {
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
}

.sa-ms-icon-wrap svg {
  width: 32px;
  height: 32px;
  display: block;
}

.sa-ms-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #212121;
  margin-top: 12px;
  margin-bottom: 0;
  font-family: inherit;
}

@media (max-width: 640px) {
  .sa-ms-card-title {
    font-size: 16px;
    line-height: 24px;
  }
}

.sa-ms-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #6b6b6b;
  margin-top: 8px;
  margin-bottom: 0;
  font-family: inherit;
}

/* Glowing Rainbow Spinning-Border Badge */
.sa-ms-badge-container {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-block;
  overflow: hidden;
  border-radius: 9999px;
  padding: 2px;
  z-index: 2;
}

.sa-ms-spinning-border {
  position: absolute;
  inset: -8px;
  background-image: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
  animation: 3s linear infinite sa-spin-gradient;
  border-radius: 9999px;
}

@keyframes sa-spin-gradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sa-ms-badge-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #c9005d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding: 3px 14px;
  letter-spacing: 0.02em;
}

/* Manage Shop Submodule Panel Container */
.sa-ms-sub-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  box-sizing: border-box;
}

.sa-ms-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #c9005d;
  background: #F3F8FF;
  border: 1px solid #E0E7FF;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.15s;
}

.sa-ms-back-btn:hover {
  background: #E0E7FF;
  color: #3730A3;
}

/* ==========================================================================
   SHOP SETTINGS SUBMODULE (100% Exact Zatiq Clone)
   ========================================================================== */
.sa-ss-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .sa-ss-container {
    padding: 8px 8px 24px;
  }
}

.sa-ss-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sa-ss-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: #F3F4F6;
  border: 1px solid #E0E1E6;
  color: #212121;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.sa-ss-back-btn:hover {
  background-color: #E5E7EB;
  color: #111827;
}

.sa-ss-page-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #212121;
  margin: 0;
}

@media (max-width: 640px) {
  .sa-ss-page-title {
    font-size: 18px;
    line-height: 28px;
  }
}

.sa-ss-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .sa-ss-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.sa-ss-left-col {
  grid-column: span 6 / span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sa-ss-right-col {
  grid-column: span 3 / span 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sa-ss-card {
  background-color: #ffffff;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sa-ss-card-accordion {
  padding: 20px 24px;
}

@media (max-width: 640px) {
  .sa-ss-card-accordion {
    padding: 16px;
  }
}

.sa-ss-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.sa-ss-accordion-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #212121;
}

.sa-ss-chevron {
  color: #212121;
  transition: transform 0.2s ease-in-out;
}

.sa-ss-accordion-body {
  margin-top: 20px;
}

.sa-ss-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-ss-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .sa-ss-row-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sa-ss-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sa-ss-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #212121;
}

.sa-ss-input, .sa-ss-select, .sa-ss-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  color: #212121;
  background-color: #ffffff;
  border: 1px solid #e0e1e6;
  border-radius: 8px;
  padding: 10px 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sa-ss-input:disabled {
  background-color: #F9FAFB;
  color: #6B7280;
  cursor: not-allowed;
}

.sa-ss-input:focus, .sa-ss-select:focus, .sa-ss-textarea:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.15);
}

.sa-ss-textarea {
  resize: vertical;
}

.sa-ss-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #c9005d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
  align-self: flex-start;
}

.sa-ss-btn-primary:hover {
  opacity: 0.92;
}

.sa-ss-btn-primary:active {
  transform: scale(0.98);
}

.sa-ss-btn-full {
  width: 100%;
  align-self: stretch;
  margin-top: 16px;
}

/* Language selector pills */
.sa-ss-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
  border-bottom: 1px solid #F3F4F6;
}

.sa-ss-field-title {
  font-size: 15px;
  font-weight: 500;
  color: #212121;
}

.sa-ss-lang-pills {
  display: flex;
  gap: 10px;
}

.sa-ss-lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E0E1E6;
  background-color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  cursor: pointer;
  transition: all 0.15s;
}

.sa-ss-lang-pill img {
  border-radius: 2px;
  display: block;
}

.sa-ss-lang-pill.is-active {
  border-color: #c9005d;
  background-color: #fdf2f8;
  color: #c9005d;
  font-weight: 600;
}

/* Switch rows */
.sa-ss-switch-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.sa-ss-switch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-ss-switch-title {
  font-size: 15px;
  font-weight: 500;
  color: #212121;
}

.sa-ss-switch-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-ss-switch-badge {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
}

.sa-ss-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background-color: #E5E7EB;
  border: none;
  cursor: pointer;
  padding: 2px;
  box-sizing: border-box;
  transition: background-color 0.2s ease-in-out;
}

.sa-ss-switch.is-on {
  background-color: #c9005d;
}

.sa-ss-switch-handle {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease-in-out;
}

.sa-ss-switch.is-on .sa-ss-switch-handle {
  transform: translateX(20px);
}

.sa-ss-switch-desc {
  font-size: 13px;
  line-height: 18px;
  color: #6B7280;
  margin: 0;
}

/* Right Side Cards */
.sa-ss-sidecard-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #212121;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid #E0E1E6;
}

.sa-ss-sidecard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa-ss-qr-canvas-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.sa-ss-qr-subtext {
  font-size: 13px;
  color: #6B7280;
  margin: 8px 0 12px;
  text-align: center;
}

.sa-ss-url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.sa-ss-url-link {
  font-size: 13px;
  color: #c9005d;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-ss-copy-btn {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.sa-ss-copy-btn:hover {
  color: #111827;
}

.sa-ss-logo-preview-wrap, .sa-ss-fav-preview-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  background-color: #FAFAFA;
  border: 1px dashed #E0E1E6;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.sa-ss-logo-img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.sa-ss-fav-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Color Picker */
.sa-ss-color-picker-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-ss-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-ss-color-input {
  width: 44px;
  height: 44px;
  border: 1px solid #E0E1E6;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: none;
}

.sa-ss-hex-input {
  flex: 1;
  text-transform: uppercase;
  font-family: monospace;
  font-weight: 600;
}

.sa-ss-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sa-ss-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #E0E1E6;
  cursor: pointer;
  transition: transform 0.1s;
}

.sa-ss-swatch:hover {
  transform: scale(1.15);
}

.sa-ss-customize-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 70px;
  background-color: #F3F4F6;
  border: 1.5px dashed #9CA3AF;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
  box-sizing: border-box;
  transition: background-color 0.15s;
}

.sa-ss-customize-link:hover {
  background-color: #E5E7EB;
}

/* ==========================================================================
   SHOP DOMAIN SUBMODULE (sa-sd-*)
   ========================================================================== */

.sa-sd-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #0f172a;
}

.sa-sd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.sa-sd-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.sa-sd-back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sa-sd-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Hero Banner Card */
.sa-sd-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #c9005d 0%, #3b16b8 45%, #140a38 100%);
  padding: 26px 30px;
  color: #ffffff;
  box-shadow: 0 10px 30px -5px rgba(201, 0, 93, 0.3);
}

.sa-sd-hero-glow {
  pointer-events: none;
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(45px);
}

.sa-sd-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}

.sa-sd-hero-domain {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 8px;
  word-break: break-all;
}

.sa-sd-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.sa-sd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: sa-sd-pulse 2s infinite;
}

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

.sa-sd-hero-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #c9005d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sa-sd-hero-visit-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.sa-sd-hero-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-sd-hero-copy-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Cards System */
.sa-sd-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.sa-sd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.sa-sd-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-sd-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sa-sd-icon-purple {
  background: rgba(201, 0, 93, 0.08);
  color: #c9005d;
}

.sa-sd-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.sa-sd-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sa-sd-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0 0;
}

/* Badges */
.sa-sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.sa-sd-badge-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sa-sd-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.sa-sd-badge-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sa-sd-badge-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.sa-sd-badge-legacy {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.sa-sd-badge-pro {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Card Body */
.sa-sd-card-body {
  padding: 24px;
}

.sa-sd-subdomain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.sa-sd-subdomain-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  height: 42px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-sd-subdomain-box:hover {
  border-color: #c9005d;
  background: rgba(201, 0, 93, 0.02);
}

.sa-sd-sub-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-sd-copy-ic {
  color: #64748b;
  flex-shrink: 0;
}

.sa-sd-subdomain-box:hover .sa-sd-copy-ic {
  color: #c9005d;
}

.sa-sd-action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sa-sd-action-icon-btn:hover {
  border-color: #c9005d;
  color: #c9005d;
}

/* Buttons */
.sa-sd-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sd-btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-sd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sd-btn-primary:hover {
  filter: brightness(0.92);
}

.sa-sd-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sd-btn-ghost:hover {
  background: #f1f5f9;
}

.sa-sd-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sd-btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.sa-sd-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sd-btn-danger:hover {
  background: #b91c1c;
}

/* Dropdown */
.sa-sd-dropdown-wrap {
  position: relative;
}

.sa-sd-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  width: 175px;
  z-index: 40;
  padding: 5px;
}

.sa-sd-dropdown-menu.open {
  display: block;
}

.sa-sd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
  box-sizing: border-box;
}

.sa-sd-dropdown-item:hover {
  background: #f1f5f9;
}

.sa-sd-item-danger {
  color: #dc2626;
}

.sa-sd-item-danger:hover {
  background: #fef2f2;
}

/* Subdomain Form */
.sa-sd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sa-sd-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.sa-sd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-sd-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-sd-chip:hover {
  border-color: rgba(201, 0, 93, 0.4);
  color: #0f172a;
}

.sa-sd-chip-active {
  border-color: #c9005d;
  background: rgba(201, 0, 93, 0.08);
  color: #c9005d;
  font-weight: 600;
}

.sa-sd-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.sa-sd-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.12);
}

.sa-sd-preview-box {
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  color: #334155;
  border: 1px solid #f1f5f9;
}

.sa-sd-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Connected Custom Domain */
.sa-sd-connected-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-bottom: 16px;
}

.sa-sd-globe-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #64748b;
  flex-shrink: 0;
}

.sa-sd-conn-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-sd-domain-link {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  word-break: break-all;
}

.sa-sd-domain-link:hover {
  text-decoration: underline;
  color: #c9005d;
}

.sa-sd-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-sd-recheck-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c9005d;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
}

.sa-sd-recheck-btn:hover {
  text-decoration: underline;
}

.sa-sd-resolved-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.sa-sd-resolved-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 8px 0;
}

.sa-sd-ips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sa-sd-ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s;
}

.sa-sd-ip-chip:hover {
  color: #c9005d;
  border-color: #c9005d;
}

/* Custom Domain Form & DNS Console */
.sa-sd-input-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sa-sd-input-group .sa-sd-input {
  flex: 1;
  min-width: 220px;
}

.sa-sd-help-txt {
  font-size: 12.5px;
  color: #64748b;
  margin: 4px 0 0 0;
}

.sa-sd-stepper {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.sa-sd-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 150px;
  opacity: 0.6;
}

.sa-sd-step-active {
  opacity: 1;
}

.sa-sd-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sa-sd-step-active .sa-sd-step-dot {
  background: rgba(201, 0, 93, 0.12);
  color: #c9005d;
}

.sa-sd-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sa-sd-step-sub {
  font-size: 11px;
  color: #64748b;
}

.sa-sd-dns-box {
  background: #16182d;
  border-radius: 14px;
  padding: 18px;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  margin: 16px 0;
}

.sa-sd-dns-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.sa-sd-dns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-sd-dns-row:last-child {
  border-bottom: none;
}

.sa-sd-dns-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 70px;
}

.sa-sd-dns-col-val {
  flex: 1;
  min-width: 140px;
  word-break: break-all;
}

.sa-sd-dns-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sa-sd-dns-val {
  font-size: 13px;
  color: #ffffff;
}

.sa-sd-dns-copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sa-sd-dns-copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sa-sd-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #475569;
  margin-top: 10px;
  line-height: 1.45;
}

.sa-sd-callout svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #64748b;
}

/* Footer Help */
.sa-sd-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  padding: 16px 0;
}

.sa-sd-help-link {
  color: #c9005d;
  font-weight: 600;
  text-decoration: none;
}

.sa-sd-help-link:hover {
  text-decoration: underline;
}

/* Modals */
.sa-sd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.sa-sd-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.2);
  animation: sa-sd-pop 0.18s ease-out;
  box-sizing: border-box;
}

.sa-sd-modal-sm {
  max-width: 360px;
}

.sa-sd-modal-media {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.sa-sd-media-danger {
  background: #fee2e2;
  color: #dc2626;
}

.sa-sd-media-primary {
  background: rgba(201, 0, 93, 0.1);
  color: #c9005d;
}

.sa-sd-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.sa-sd-modal-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.45;
  white-space: pre-line;
}

.sa-sd-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes sa-sd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes sa-sd-pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.sa-sd-spin {
  animation: sa-sd-spin-kf 1s linear infinite;
}

@keyframes sa-sd-spin-kf {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
  .sa-sd-hero {
    padding: 20px;
  }
  .sa-sd-hero-domain {
    font-size: 22px;
  }
  .sa-sd-card-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .sa-sd-card-body {
    padding: 16px;
  }
  .sa-sd-subdomain-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-sd-subdomain-box {
    width: 100%;
    box-sizing: border-box;
  }
  .sa-sd-form-actions {
    flex-direction: column;
  }
  .sa-sd-form-actions button {
    width: 100%;
  }
  .sa-sd-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-sd-actions-row button {
    width: 100%;
  }
  .sa-sd-modal-footer {
    flex-direction: column-reverse;
  }
  .sa-sd-modal-footer button {
    width: 100%;
  }
}

/* ==========================================================================
   Shop Policy Styles (.sa-sp-*) - 100% Precision
   ========================================================================== */

.sa-sp-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 4px 40px;
}

.sa-sp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sa-sp-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: #f4f5f7;
  border: 1px solid #e5e7eb;
  color: #111827;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.sa-sp-back-btn:hover {
  background-color: #e5e7eb;
  color: #000000;
  transform: translateX(-2px);
}

.sa-sp-head-title {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.02em;
}

.sa-sp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Collapsible Card */
.sa-sp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.sa-sp-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.sa-sp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.sa-sp-card-head:hover {
  background-color: #fafafa;
}

.sa-sp-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-sp-card-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-sp-char-badge {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.sa-sp-char-badge.is-warning {
  color: #d97706;
  background: #fef3c7;
  border-color: #fde68a;
}

.sa-sp-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-sp-chevron.is-rotated {
  transform: rotate(180deg);
}

.sa-sp-card-body {
  padding: 0 22px 22px 22px;
  border-top: 1px solid #f3f4f6;
  display: block;
}

.sa-sp-card.is-collapsed .sa-sp-card-body {
  display: none;
}

/* Rich Toolbar */
.sa-sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-top: 16px;
}

.sa-sp-tool-select {
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.sa-sp-tool-select:focus {
  border-color: #c9005d;
}

.sa-sp-tool-sep {
  width: 1px;
  height: 20px;
  background-color: #e5e7eb;
  margin: 0 4px;
}

.sa-sp-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.sa-sp-tool-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.sa-sp-tool-btn:active {
  background-color: #d1d5db;
}

/* Color Dropdown */
.sa-sp-color-wrap {
  position: relative;
  display: inline-block;
}

.sa-sp-color-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sa-sp-color-a {
  font-size: 13px;
  font-weight: 700;
}

.sa-sp-color-bar {
  width: 14px;
  height: 3px;
  background-color: #c9005d;
  border-radius: 1px;
  margin-top: 1px;
}

.sa-sp-color-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 4px;
}

.sa-sp-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
  padding: 0;
}

.sa-sp-swatch:hover {
  transform: scale(1.15);
}

/* Content Editable Area */
.sa-sp-editor {
  min-height: 220px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #1f2937;
  outline: none;
  font-family: inherit;
}

.sa-sp-editor:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-sp-editor:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  display: block;
}

.sa-sp-editor h1, .sa-sp-editor h2, .sa-sp-editor h3, .sa-sp-editor h4 {
  color: #111827;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 8px;
}

.sa-sp-editor h1 { font-size: 22px; }
.sa-sp-editor h2 { font-size: 18px; }
.sa-sp-editor h3 { font-size: 16px; }
.sa-sp-editor h4 { font-size: 14px; }

.sa-sp-editor p {
  margin-bottom: 10px;
}

.sa-sp-editor blockquote {
  border-left: 4px solid #c9005d;
  padding-left: 12px;
  color: #4b5563;
  margin: 12px 0;
  font-style: italic;
}

.sa-sp-editor ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 10px;
}

.sa-sp-editor ol {
  list-style-type: decimal;
  padding-left: 24px;
  margin-bottom: 10px;
}

.sa-sp-editor a {
  color: #c9005d;
  text-decoration: underline;
}

/* Card Footer */
.sa-sp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.sa-sp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sa-sp-link-preview {
  color: #c9005d;
  font-weight: 500;
  text-decoration: none;
}

.sa-sp-link-preview:hover {
  text-decoration: underline;
}

.sa-sp-reset-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s ease;
}

.sa-sp-reset-btn:hover {
  color: #111827;
}

/* Bottom Action Bar */
.sa-sp-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.sa-sp-update-btn {
  min-width: 140px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  background-color: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sa-sp-update-btn:hover {
  background-color: #4314d6;
}

.sa-sp-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .sa-sp-wrap {
    padding: 0 0 30px;
  }
  .sa-sp-card-head {
    padding: 14px 16px;
  }
  .sa-sp-card-body {
    padding: 0 16px 16px;
  }
  .sa-sp-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sa-sp-actions {
    justify-content: stretch;
  }
  .sa-sp-update-btn {
    width: 100%;
  }
}

/* =========================================================================
   ZATIQ PAYMENT GATEWAY MODULE (.sa-pg-*)
   ========================================================================= */
.sa-pg-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.sa-pg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.sa-pg-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f9fbfc;
  border: 1px solid #e0e1e6;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-pg-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #111827;
}

.sa-pg-title-stack {
  display: flex;
  flex-direction: column;
}

.sa-pg-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sa-pg-page-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 2px 0 0;
}

.sa-pg-main-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sa-pg-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 2px;
}

.sa-pg-sec-desc {
  font-size: 13px;
  color: #71717a;
  margin: 0 0 18px;
}

.sa-pg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-pg-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-pg-card:hover {
  border-color: #cbd5e1;
}

.sa-pg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.sa-pg-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.sa-pg-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  border-radius: 8px;
  font-size: 22px;
  flex-shrink: 0;
}

.sa-pg-logo-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sa-pg-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  display: block;
}

.sa-pg-card-info {
  flex: 1;
  min-width: 0;
}

.sa-pg-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px;
}

.sa-pg-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.sa-pg-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sa-pg-badge-active {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 600;
}

.sa-pg-switch {
  width: 34px;
  height: 20px;
  border-radius: 9999px;
  background: #e4e4e7;
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
}

.sa-pg-switch.is-checked {
  background-color: #c9005d;
}

.sa-pg-switch-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

.sa-pg-switch.is-checked .sa-pg-switch-thumb {
  transform: translateX(16px);
}

.sa-pg-drawer {
  border-top: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: saPgSlideDown 0.2s ease-out;
}

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

.sa-pg-notice {
  font-size: 12.5px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #c9005d;
  line-height: 1.5;
}

.sa-pg-notice a {
  color: #c9005d;
  font-weight: 600;
  text-decoration: underline;
}

.sa-pg-notice a:hover {
  text-decoration: none;
}

.sa-pg-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sa-pg-form-grid-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-pg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sa-pg-label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.sa-pg-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.sa-pg-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.12);
}

.sa-pg-input[readonly] {
  background: #f9fafb;
  color: #4b5563;
}

.sa-pg-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sa-pg-pass-wrap input {
  padding-right: 36px;
}

.sa-pg-pass-toggle {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.sa-pg-pass-toggle:hover {
  color: #4b5563;
}

.sa-pg-phone-group {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.sa-pg-phone-prefix {
  padding: 0 12px;
  height: 38px;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-right: 1px solid #d1d5db;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.sa-pg-phone-group input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sa-pg-mfs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sa-pg-mfs-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-pg-mfs-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-pg-mfs-method-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #e4e4e7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s ease;
}

.sa-pg-mfs-method-card:hover {
  border-color: #cbd5e1;
}

.sa-pg-mfs-method-card.is-selected {
  border-color: #c9005d;
  background: #fdf2f8;
  color: #c9005d;
  font-weight: 600;
}

.sa-pg-qr-box {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-pg-qr-box:hover {
  border-color: #c9005d;
  background: #fdf2f8;
}

.sa-pg-qr-preview {
  max-width: 120px;
  max-height: 120px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
}

.sa-pg-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.sa-pg-btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sa-pg-btn-primary {
  background: #c9005d;
  color: #ffffff;
}

.sa-pg-btn-primary:hover {
  background: #4314d6;
}

.sa-pg-btn-danger {
  background: #d92d20;
  color: #ffffff;
}

.sa-pg-btn-danger:hover {
  background: #b42318;
}

.sa-pg-btn-outline {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.sa-pg-btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Advance Payment Card */
.sa-pg-adv-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sa-pg-adv-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sa-pg-adv-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.sa-pg-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
  background: #ffffff;
}

.sa-pg-checkbox.is-checked {
  background: #c9005d;
  border-color: #c9005d;
}

.sa-pg-adv-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sa-pg-adv-label {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

/* Message Note Card */
.sa-pg-note-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sa-pg-note-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sa-pg-char-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.sa-pg-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-pg-textarea:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.12);
}

.sa-pg-submit-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.sa-pg-update-btn {
  min-width: 180px;
  height: 42px;
  background: #c9005d;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-pg-update-btn:hover {
  background: #4314d6;
}

.sa-pg-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .sa-pg-main-card {
    padding: 16px;
  }
  .sa-pg-card-head {
    padding: 12px 14px;
  }
  .sa-pg-drawer {
    padding: 14px;
  }
  .sa-pg-mfs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sa-pg-form-grid {
    grid-template-columns: 1fr;
  }
  .sa-pg-submit-bar {
    justify-content: stretch;
  }
  .sa-pg-update-btn {
    width: 100%;
  }
}

/* ========================================================== SEO & Marketing module (Zatiq Clone) */
.sa-seo-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.sa-seo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sa-seo-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #f9fbfc;
  border: 1px solid #e0e1e6;
  color: #111827;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.sa-seo-back-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.sa-seo-title {
  font-size: 22px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-seo-main-card {
  background: #ffffff;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sa-seo-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 16px 0;
  text-align: left;
  cursor: pointer;
}

.sa-seo-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #212121;
  margin: 0;
}

.sa-seo-item {
  border: 1px solid #e0e1e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #ffffff;
}

.sa-seo-item:last-child {
  margin-bottom: 0;
}

.sa-seo-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.sa-seo-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-seo-item-info {
  flex: 1;
}

.sa-seo-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  margin: 0 0 4px 0;
}

.sa-seo-item-desc {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

.sa-seo-code-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  word-break: break-all;
}

.sa-seo-code-link {
  font-size: 14px;
  color: #c9005d;
  text-decoration: none;
  word-break: break-all;
  font-family: inherit;
}

.sa-seo-code-link:hover {
  text-decoration: underline;
}

.sa-seo-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sa-seo-copy-btn:hover {
  color: #111827;
  background: #e5e7eb;
}

.sa-seo-field-group {
  margin-top: 14px;
}

.sa-seo-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 6px;
}

.sa-seo-label small {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  margin-left: 4px;
}

.sa-seo-input {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid #e0e1e6;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.sa-seo-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.12);
}

.sa-seo-input::placeholder {
  color: #9ca3af;
}

.sa-seo-submit-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.sa-seo-update-btn {
  min-width: 140px;
  height: 42px;
  padding: 10px 40px;
  background: #c9005d;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sa-seo-update-btn:hover {
  filter: brightness(0.95);
}

.sa-seo-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sa-seo-main-card {
    padding: 16px;
  }
  .sa-seo-head {
    margin-bottom: 16px;
  }
  .sa-seo-title {
    font-size: 18px;
  }
  .sa-seo-code-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .sa-seo-submit-bar {
    justify-content: stretch;
  }
  .sa-seo-update-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Chat Support Precision Clone
   ========================================================================== */

.sa-chat-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.sa-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sa-chat-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-chat-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.sa-chat-title {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-chat-main-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-chat-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.sa-chat-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #212121;
}

.sa-chat-chevron {
  color: #64748b;
}

.sa-chat-tabs-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sa-chat-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.sa-chat-tab-btn.is-active {
  background: #c9005d;
  color: #ffffff;
  border: 1px solid #c9005d;
}

.sa-chat-tab-btn:not(.is-active) {
  background: #ffffff;
  color: #c9005d;
  border: 1px solid #c9005d;
}

.sa-chat-tab-btn:not(.is-active):hover {
  background: rgba(201, 0, 93, 0.05);
}

.sa-chat-guide-box {
  background: rgba(201, 0, 93, 0.05);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.sa-chat-guide-title {
  font-size: 15px;
  font-weight: 600;
  color: #212121;
  margin: 0 0 6px 0;
}

.sa-chat-guide-step {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.sa-chat-field-group {
  margin-top: 16px;
}

.sa-chat-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.sa-chat-input {
  width: 100%;
  max-width: 480px;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid rgb(224, 225, 230);
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-chat-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-chat-submit-bar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.sa-chat-update-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-chat-update-btn:hover {
  filter: brightness(0.95);
}

.sa-chat-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sa-chat-main-card {
    padding: 16px;
  }
  .sa-chat-head {
    margin-bottom: 16px;
  }
  .sa-chat-title {
    font-size: 18px;
  }
  .sa-chat-input {
    max-width: 100%;
  }
  .sa-chat-submit-bar {
    justify-content: stretch;
  }
  .sa-chat-update-btn {
    width: 100%;
  }
}

/* ==========================================================================
   SMS Support Precision Clone
   ========================================================================== */

.sa-sms-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.sa-sms-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sa-sms-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-sms-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.sa-sms-title {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-sms-main-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-sms-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.sa-sms-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #212121;
}

.sa-sms-chevron {
  color: #64748b;
}

.sa-sms-tabs-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sa-sms-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

.sa-sms-tab-btn.is-active {
  background: #c9005d;
  color: #ffffff;
  border: 1px solid #c9005d;
}

.sa-sms-otp-row {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sa-sms-otp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-sms-otp-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.sa-sms-otp-desc {
  font-size: 12px;
  color: #6b7280;
}

.sa-sms-switch {
  position: relative;
  display: inline-flex;
  height: 24px;
  width: 44px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-color: #e5e7eb;
  transition: background-color 0.2s ease-in-out;
  outline: none;
  padding: 0;
}

.sa-sms-switch.is-active {
  background-color: #c9005d;
}

.sa-sms-switch-handle {
  pointer-events: none;
  display: inline-block;
  height: 20px;
  width: 20px;
  border-radius: 9999px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.2s ease-in-out;
}

.sa-sms-switch.is-active .sa-sms-switch-handle {
  transform: translateX(20px);
}

.sa-sms-config-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.sa-sms-config-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

.sa-sms-config-desc {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.sa-sms-link {
  color: #c9005d;
  font-weight: 500;
  text-decoration: underline;
}

.sa-sms-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.sa-sms-field-group {
  display: flex;
  flex-direction: column;
}

.sa-sms-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.sa-sms-required {
  color: #ef4444;
}

.sa-sms-input {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid rgb(224, 225, 230);
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-sms-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-sms-btn-group {
  display: flex;
  gap: 8px;
}

.sa-sms-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sms-add-btn:hover {
  filter: brightness(0.95);
}

.sa-sms-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-sms-remove-btn:hover {
  background: #fecaca;
}

.sa-sms-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 24px 0;
}

.sa-sms-tpl-section {
  display: flex;
  flex-direction: column;
}

.sa-sms-tpl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sa-sms-tpl-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sa-sms-tpl-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.sa-sms-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sa-sms-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sa-sms-card-preview {
  background: rgba(201, 0, 93, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.sa-sms-card-bubble {
  background: #c9005d;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.sa-sms-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 8px;
  padding: 0 2px;
}

.sa-sms-card-status-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sa-sms-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

.sa-sms-card-select {
  flex: 1;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  background: #ffffff;
  color: #1f2937;
  outline: none;
}

.sa-sms-card-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  resize: vertical;
  outline: none;
  min-height: 70px;
}

.sa-sms-card-textarea:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-sms-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-sms-tag-chip {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sa-sms-tag-chip:hover {
  background: #fce7f3;
  border-color: #fbcfe8;
  color: #c9005d;
}

.sa-sms-test-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.sa-sms-submit-bar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.sa-sms-save-templates-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-sms-save-templates-btn:hover {
  filter: brightness(0.95);
}

.sa-sms-save-templates-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .sa-sms-tpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sa-sms-main-card {
    padding: 16px;
  }
  .sa-sms-head {
    margin-bottom: 16px;
  }
  .sa-sms-title {
    font-size: 18px;
  }
  .sa-sms-grid-fields {
    grid-template-columns: 1fr;
  }
  .sa-sms-tpl-grid {
    grid-template-columns: 1fr;
  }
  .sa-sms-test-box {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-sms-submit-bar {
    justify-content: stretch;
  }
  .sa-sms-save-templates-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Social Links Precision Clone
   ========================================================================== */

.sa-social-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.sa-social-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sa-social-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-social-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.sa-social-title {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-social-main-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-social-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.sa-social-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #212121;
}

.sa-social-chevron {
  color: #64748b;
}

.sa-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sa-social-field-group {
  display: flex;
  flex-direction: column;
}

.sa-social-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.sa-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sa-social-input {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid rgb(224, 225, 230);
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-social-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-social-submit-bar {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.sa-social-update-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-social-update-btn:hover {
  filter: brightness(0.95);
}

.sa-social-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .sa-social-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .sa-social-main-card {
    padding: 16px;
  }
  .sa-social-head {
    margin-bottom: 16px;
  }
  .sa-social-title {
    font-size: 18px;
  }
  .sa-social-submit-bar {
    justify-content: stretch;
  }
  .sa-social-update-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Blocklist Precision Clone
   ========================================================================== */

.sa-block-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sa-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-block-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-block-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.sa-block-title {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-block-hero-card {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sa-block-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sa-block-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #c9005d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-block-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e1b4b;
  margin: 0 0 4px 0;
}

.sa-block-hero-desc {
  font-size: 13px;
  color: #4c1d95;
  margin: 0;
  line-height: 1.45;
}

.sa-block-hero-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.sa-block-stat-box {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 90px;
}

.sa-block-stat-n {
  font-size: 18px;
  font-weight: 700;
  color: #c9005d;
  display: block;
}

.sa-block-stat-l {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
}

.sa-block-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-block-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sa-block-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-block-add-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

.sa-block-select {
  height: 42px;
  border: 1px solid rgb(224, 225, 230);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

.sa-block-select:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-block-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sa-block-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sa-block-pill {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #4b5563;
}

.sa-block-pill.is-active {
  background: #c9005d;
  color: #ffffff;
}

.sa-block-pill:not(.is-active):hover {
  background: #e5e7eb;
}

.sa-block-search-input {
  height: 36px;
  width: 240px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.sa-block-search-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.1);
}

.sa-block-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.sa-block-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.sa-block-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sa-block-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.sa-block-table tr:hover td {
  background: #fafafa;
}

.sa-block-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.sa-block-unblock-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-block-unblock-btn:hover {
  background: #fecaca;
  border-color: #f87171;
}

.sa-block-empty {
  text-align: center;
  padding: 36px 20px;
  color: #64748b;
  font-size: 14px;
}

.sa-block-empty-icon {
  margin: 0 auto 8px;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .sa-block-add-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sa-block-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .sa-block-hero-stats {
    width: 100%;
    justify-content: space-between;
  }
  .sa-block-stat-box {
    flex: 1;
  }
  .sa-block-add-grid {
    grid-template-columns: 1fr;
  }
  .sa-block-search-input {
    width: 100%;
  }
  .sa-block-card {
    padding: 16px;
  }
}

/* ==========================================================================
   Order Limits Precision Clone
   ========================================================================== */

.sa-limits-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sa-limits-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-limits-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-limits-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.sa-limits-title {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.sa-limits-hero-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sa-limits-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f59e0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-limits-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: #78350f;
  margin: 0 0 4px 0;
}

.sa-limits-hero-desc {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  line-height: 1.45;
}

.sa-limits-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sa-limits-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sa-limits-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #212121;
  margin: 0;
}

.sa-limits-rule-row {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sa-limits-rule-info {
  flex: 1;
}

.sa-limits-rule-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.sa-limits-rule-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.sa-limits-rule-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-limits-num-input {
  width: 100px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #111827;
  outline: none;
}

.sa-limits-num-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-limits-action-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 24px;
}

.sa-limits-action-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
}

.sa-limits-action-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sa-limits-action-pill {
  flex: 1;
  min-width: 160px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-limits-action-pill.is-selected {
  border-color: #c9005d;
  background: rgba(201, 0, 93, 0.04);
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.2);
}

.sa-limits-action-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-limits-action-desc {
  font-size: 11.5px;
  color: #64748b;
}

.sa-limits-msg-box {
  margin-top: 20px;
}

.sa-limits-msg-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.sa-limits-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
}

.sa-limits-textarea:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-limits-submit-bar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.sa-limits-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-limits-save-btn:hover {
  filter: brightness(0.95);
}

.sa-limits-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sa-limits-rule-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .sa-limits-rule-ctrl {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .sa-limits-action-pill {
    min-width: 100%;
  }
  .sa-limits-card {
    padding: 16px;
  }
  .sa-limits-submit-bar {
    justify-content: stretch;
  }
  .sa-limits-save-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Order Alerts Panel (Telegram & WhatsApp)
   ========================================================================== */
.sa-oa-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}

.sa-oa-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-oa-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s ease;
}

.sa-oa-back-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.sa-oa-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sa-oa-hero-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #dcfce7;
  border-radius: 14px;
  padding: 18px 20px;
}

.sa-oa-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.sa-oa-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 4px 0;
}

.sa-oa-hero-desc {
  font-size: 13.5px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

.sa-oa-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sa-oa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.sa-oa-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-oa-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-oa-tg-bg {
  background: #229ED9;
  color: #ffffff;
}

.sa-oa-wa-bg {
  background: #25D366;
  color: #ffffff;
}

.sa-oa-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px 0;
}

.sa-oa-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.sa-oa-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-oa-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.sa-oa-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sa-oa-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.sa-oa-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.sa-oa-guide-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.sa-oa-guide-steps code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #0f172a;
}

.sa-oa-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sa-oa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-oa-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.sa-oa-field-help {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.sa-oa-input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}

.sa-oa-input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-oa-providers-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.sa-oa-pill {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-oa-pill:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.sa-oa-pill.active {
  background: #fdf2f8;
  border-color: #c9005d;
  color: #c9005d;
}

.sa-oa-dyn-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 16px;
}

.sa-oa-details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  background: #ffffff;
}

.sa-oa-summary {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.sa-oa-tpl-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-oa-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.sa-oa-textarea:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

.sa-oa-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-oa-tag-chip {
  padding: 4px 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 11.5px;
  font-family: monospace;
  font-weight: 600;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sa-oa-tag-chip:hover {
  background: #dbeafe;
}

.sa-oa-btn-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.sa-oa-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.sa-oa-btn-tg {
  background: #229ED9;
  color: #ffffff;
}

.sa-oa-btn-tg:hover {
  background: #1b87ba;
}

.sa-oa-btn-wa {
  background: #25D366;
  color: #ffffff;
}

.sa-oa-btn-wa:hover {
  background: #1eb354;
}

.sa-oa-save-bar {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.sa-oa-save-btn {
  background: #c9005d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-oa-save-btn:hover {
  filter: brightness(0.95);
}

.sa-oa-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sa-oa-form-grid {
    grid-template-columns: 1fr;
  }
  .sa-oa-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .sa-oa-switch-wrap {
    align-self: flex-end;
  }
  .sa-oa-save-bar {
    justify-content: stretch;
  }
  .sa-oa-save-btn {
    width: 100%;
  }
}

/* ==========================================================================
   THEME CUSTOMIZATION MODULE STYLES
   ========================================================================== */

.sa-view-themes {
  padding: 0 0 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.sa-page-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sa-page-title-main {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.sa-page-subtitle-main {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.sa-header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Static Themes Section Card */
.sa-theme-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.sa-section-head-clean {
  margin-bottom: 20px;
}

.sa-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.sa-section-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.sa-theme-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.sa-theme-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.sa-theme-card.is-active {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.12), 0 8px 24px rgba(201, 0, 93, 0.08);
}

.sa-theme-preview-wrap {
  background: #f8fafc;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.sa-theme-mockup-frame {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sa-mock-browser-bar {
  background: #f1f5f9;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
}

.sa-mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sa-mock-dot.dot-red { background: #ef4444; }
.sa-mock-dot.dot-yellow { background: #f59e0b; }
.sa-mock-dot.dot-green { background: #10b981; }

.sa-mock-url {
  font-size: 10px;
  color: #64748b;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 6px;
  font-family: monospace;
}

.sa-mock-preview-content {
  padding: 10px;
  background: #ffffff;
}

.sa-mock-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sa-mock-logo {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand, #c9005d);
}

.sa-mock-nav-pills {
  display: flex;
  gap: 4px;
}

.sa-mock-nav-pills span {
  width: 16px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}

.sa-mock-hero-banner {
  background: linear-gradient(135deg, var(--brand, #c9005d) 0%, #c9005d 100%);
  color: #ffffff;
  padding: 12px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.sa-mock-category-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.sa-mock-cat-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.sa-mock-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sa-mock-product-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px;
}

.sa-mock-prod-img {
  height: 28px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 4px;
}

.sa-mock-prod-line {
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 4px;
  width: 70%;
}

.sa-mock-prod-btn {
  height: 8px;
  background: var(--brand, #c9005d);
  border-radius: 2px;
  width: 100%;
}

.sa-theme-badge-top {
  position: absolute;
  top: 24px;
  right: 24px;
}

.sa-theme-status-pill.is-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.sa-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.sa-theme-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sa-theme-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sa-theme-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sa-theme-type-tag {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}

.sa-theme-applied-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fdf2f8;
  color: #c9005d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #fbcfe8;
}

.sa-theme-summary {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.sa-theme-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.sa-theme-tag {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Coming Soon Theme Card */
.sa-theme-card.is-placeholder {
  border: 2px dashed #cbd5e1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}

.sa-theme-coming-content {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
}

.sa-coming-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sa-coming-pill {
  font-size: 11px;
  font-weight: 700;
  color: #c9005d;
  background: #fce7f3;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sa-coming-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.sa-coming-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Settings Panels Container */
.sa-theme-settings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sa-custom-setting-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sa-setting-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sa-setting-card-head-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sa-setting-card-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-setting-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-setting-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.sa-setting-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Color Picker Widget */
.sa-color-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sa-color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.sa-color-swatch-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.sa-color-swatch-btn.is-selected {
  border-color: #c9005d;
  background: #faf7ff;
  color: #c9005d;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.15);
}

.sa-swatch-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.sa-custom-color-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-custom-color-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.sa-color-input-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
}

.sa-native-color-picker {
  appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}
.sa-native-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.sa-native-color-picker::-webkit-color-swatch { border: 1px solid rgba(0,0,0,0.15); border-radius: 50%; }

.sa-hex-input {
  width: 90px;
  padding: 4px 6px;
  font-size: 13px;
  font-family: monospace;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

/* Theme Mode Cards */
.sa-mode-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sa-mode-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  background: #ffffff;
}

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

.sa-mode-card.is-selected {
  border-color: #c9005d;
  background: #faf7ff;
  box-shadow: 0 0 0 2px rgba(201, 0, 93, 0.15);
}

.sa-mode-card-preview {
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
}

.sa-mode-card-preview.is-light {
  background: #ffffff;
}
.sa-mode-card-preview.is-dark {
  background: #0f172a;
  border-color: #334155;
}

.sa-mode-card-preview.is-light .sa-mock-pill {
  display: block; width: 40px; height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 8px;
}
.sa-mode-card-preview.is-dark .sa-mock-pill {
  display: block; width: 40px; height: 6px; background: #334155; border-radius: 3px; margin-bottom: 8px;
}

.sa-mode-mock-body {
  display: flex; gap: 6px;
}

.sa-mode-card-preview.is-light .sa-mode-mock-card {
  flex: 1; height: 32px; background: #f1f5f9; border-radius: 4px;
}
.sa-mode-card-preview.is-dark .sa-mode-mock-card {
  flex: 1; height: 32px; background: #1e293b; border-radius: 4px; border: 1px solid #334155;
}

.sa-mode-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sa-mode-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.sa-mode-card.is-selected .sa-mode-name {
  color: #c9005d;
}

.sa-mode-note {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.sa-mode-radio-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-mode-card.is-selected .sa-mode-radio-indicator {
  border-color: #c9005d;
  background: #c9005d;
}

.sa-mode-card.is-selected .sa-mode-radio-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Buy Now Segmented Control */
.sa-segmented-control {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 10px;
}

.sa-seg-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

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

.sa-seg-item.is-selected {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sa-seg-item.is-selected#saBuyNowOptYes {
  color: #059669;
}

.sa-setting-helper-text {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Homepage Banners List */
.sa-banners-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-banner-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.15s ease;
}

.sa-banner-item-row:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sa-banner-thumb {
  width: 90px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sa-banner-meta {
  flex: 1;
  min-width: 0;
}

.sa-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-banner-link {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Picker Grid */
.sa-category-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.sa-cat-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sa-cat-picker-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.sa-cat-picker-item.is-selected {
  border-color: #c9005d;
  background: #faf7ff;
}

.sa-cat-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sa-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-cat-count {
  font-size: 11px;
  color: #64748b;
}

.sa-cat-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-cat-picker-item.is-selected .sa-cat-check {
  border-color: #c9005d;
  background: #c9005d;
  color: #ffffff;
}

/* Product Picker */
.sa-selected-products-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sa-prod-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faf7ff;
  border: 1px solid #fbcfe8;
  color: #c9005d;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.sa-prod-chip-remove {
  background: none;
  border: none;
  color: #c9005d;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.sa-product-picker-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.sa-prod-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.sa-prod-picker-item:last-child {
  border-bottom: none;
}

.sa-prod-picker-item:hover {
  background: #f1f5f9;
}

.sa-prod-picker-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sa-prod-picker-info {
  flex: 1;
  min-width: 0;
}

.sa-prod-picker-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-prod-picker-price {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Category-wise Featured Products Sections */
.sa-theme-cat-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sa-theme-cat-card {
  transition: all 0.2s ease;
}

.sa-theme-cat-card.is-disabled {
  opacity: 0.6;
  background: #f8fafc;
}

.sa-theme-cat-card.is-disabled .sa-cat-prods-grid {
  pointer-events: none;
  filter: grayscale(0.5);
}

.sa-cat-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.sa-cat-sec-toggle {
  display: none;
}

.sa-cat-toggle-slider {
  width: 38px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}

.sa-cat-sec-toggle:checked + .sa-cat-toggle-slider {
  background: #10b981;
}

.sa-cat-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.sa-cat-sec-toggle:checked + .sa-cat-toggle-slider::after {
  transform: translateX(16px);
}

.sa-cat-toggle-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.sa-dotted-card.is-placeholder {
  border-style: dashed;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 12px;
}

.sa-dotted-placeholder-text {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-theme-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.sa-theme-status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.sa-theme-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .sa-mode-picker-grid {
    grid-template-columns: 1fr;
  }
  .sa-category-picker-grid {
    grid-template-columns: 1fr;
  }
  .sa-page-header-clean {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-header-actions-group {
    justify-content: stretch;
  }
  .sa-header-actions-group .sa-btn {
    flex: 1;
  }
  .sa-theme-bottom-inner {
    flex-direction: column;
    gap: 10px;
  }
  .sa-theme-actions-right {
    width: 100%;
    justify-content: stretch;
  }
  .sa-theme-actions-right .sa-btn {
    flex: 1;
  }
}

/* ==========================================================================
   ZATIQ THEME CUSTOMIZER - SECTIONS & DOTTED CARDS
   ========================================================================== */

.sa-zatiq-section-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  background: #ffffff;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.sa-zatiq-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sa-zatiq-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.sa-zatiq-section-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: #64748b;
  margin: 4px 0 0;
  max-width: 600px;
  line-height: 1.4;
}

.sa-btn-purple {
  background: #c9005d;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
  align-self: flex-end;
}

.sa-btn-purple:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.sa-banners-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sa-items-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.sa-dotted-card {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 12px 14px;
  border: 1.5px dotted #94a3b8;
  background: #ffffff;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.sa-dotted-card:hover {
  background: #f8fafc;
}

.sa-dotted-card-banner {
  flex-direction: column;
  align-items: stretch;
}

.sa-dotted-card-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
}

.sa-dotted-card-banner-thumb {
  width: 100%;
  aspect-ratio: 3.65 / 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 8px;
  background: #f1f5f9;
}

.sa-dotted-card-title {
  margin-left: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.sa-dotted-card-del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #d20062;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 0;
  transition: background 0.15s, transform 0.1s;
  z-index: 5;
}

.sa-dotted-card-del:hover {
  background: #fecaca;
  transform: scale(1.1);
}

.sa-dotted-card-del svg {
  width: 16px;
  height: 16px;
  stroke: #d20062;
  stroke-width: 2.2;
}

.sa-modal-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.sa-modal-check-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-modal-check-item.is-checked {
  background: #fdf2f8;
  border-color: #8b5cf6;
}

.sa-modal-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c9005d;
}

.sa-modal-check-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
}

.sa-modal-check-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
}

.sa-modal-check-price {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

/* ======================================================= Promo Codes UI */

.sa-view-promos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 40px;
}

.sa-promo-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sa-promo-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.sa-promo-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sa-promo-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.sa-promo-tab.is-active {
  background: #fdf2f8;
  color: #c9005d;
}

.sa-promo-search-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.sa-promo-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #94a3b8;
}

.sa-promo-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.sa-promo-search-wrap input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.12);
}

/* Promo Cards Grid */
.sa-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.sa-promo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sa-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-color: #cbd5e1;
}

.sa-promo-card.is-inactive {
  opacity: 0.72;
  background: #fafafa;
}

.sa-promo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sa-promo-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf2f8;
  border: 1.5px dashed #f472b6;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  font-size: 15px;
  color: #db2777;
  letter-spacing: 0.5px;
}

.sa-promo-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f472b6;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sa-promo-copy-btn:hover {
  color: #db2777;
  transform: scale(1.15);
}

.sa-promo-val-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fce7f3;
  color: #c9005d;
}

.sa-promo-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}

.sa-promo-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
}

.sa-promo-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-promo-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
  flex-shrink: 0;
}

.sa-promo-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.sa-promo-scope-badge.is-all {
  background: #e0f2fe;
  color: #0369a1;
}

.sa-promo-scope-badge.is-cat {
  background: #fef3c7;
  color: #b45309;
}

.sa-promo-scope-badge.is-prod {
  background: #fce7f3;
  color: #be185d;
}

/* Card Progress & Stats */
.sa-promo-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.sa-promo-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.sa-promo-progress-fill {
  height: 100%;
  background: #c9005d;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Card Bottom Actions */
.sa-promo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.sa-promo-card-actions {
  display: flex;
  gap: 8px;
}

/* Promo Modal Elements */
.sa-promo-type-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.sa-promo-type-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-promo-type-btn.is-active {
  border-color: #c9005d;
  background: #fdf2f8;
  color: #c9005d;
}

.sa-scope-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-scope-radio-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sa-scope-radio-item input[type="radio"] {
  margin-top: 3px;
  accent-color: #c9005d;
}

.sa-promo-cat-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
}

.sa-promo-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sa-promo-cat-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.sa-promo-cat-pill.is-checked {
  background: #fdf2f8;
  border-color: #c9005d;
  color: #c9005d;
  font-weight: 600;
}

.sa-promo-selected-prods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 200px;
}

.sa-promo-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-preset-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-preset-chip:hover {
  border-color: #c9005d;
  color: #c9005d;
  background: #fff1f5;
}

.sa-preset-chip.is-active {
  background: #c9005d;
  border-color: #c9005d;
  color: #ffffff;
  font-weight: 600;
}

.sa-promo-limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.sa-promo-limit-badge.is-unlimited {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sa-promo-limit-badge.is-limited {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.sa-promo-limit-badge.is-reached {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .sa-promo-filter-card {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-promo-search-wrap {
    max-width: 100%;
  }
  .sa-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   USERS & PERMISSIONS (RBAC) STYLING — Zatiq Cloned
   ========================================================================== */

/* Desktop Header Delivery and Payment App Buttons */
.sa-delivery-app-btn,
.sa-payment-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #FAF7FF;
  border: 1px solid #fbcfe8;
  color: #c9005d;
  transition: all 0.15s ease;
}
.sa-delivery-app-btn:hover,
.sa-payment-app-btn:hover {
  background: #F3EDFF;
  border-color: #f9a8d4;
}

/* User Header Profile Dropdown */
.sa-user-chip-wrap {
  position: relative;
}
.sa-user-profile-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #c9005d;
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(201, 0, 93, 0.2);
  transition: all 0.15s ease;
}
.sa-user-profile-btn:hover {
  background: #4314cc;
  box-shadow: 0 2px 6px rgba(201, 0, 93, 0.35);
  transform: translateY(-1px);
}
.sa-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.sa-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sa-user-info-text,
.sa-user-caret {
  display: none !important;
}
.sa-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 100;
}
.sa-user-dd-header {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-user-dd-header strong {
  font-size: 13px;
  color: #0f172a;
}
.sa-user-dd-header span {
  font-size: 11.5px;
  color: #64748b;
  word-break: break-all;
}
.sa-user-dd-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
}
.sa-user-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: none;
  border: none;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.sa-user-dd-item:hover {
  background: #f1f5f9;
}
.sa-user-dd-item.is-danger {
  color: #ef4444;
}
.sa-user-dd-item.is-danger:hover {
  background: #fef2f2;
}

/* User Stats Grid */
.sa-user-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.sa-user-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}
.sa-user-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.sa-user-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sa-user-stat-icon.is-total { background: #fdf2f8; color: #c9005d; }
.sa-user-stat-icon.is-owner { background: #fff1f2; color: #c9005d; }
.sa-user-stat-icon.is-admin { background: #f0f9ff; color: #0284c7; }
.sa-user-stat-icon.is-mod   { background: #ecfdf5; color: #059669; }
.sa-user-stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-user-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.sa-user-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

/* User Toolbar (Tabs + Search) with generous spacing */
.sa-user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sa-user-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.sa-user-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sa-user-tab:hover {
  color: #0f172a;
}
.sa-user-tab.is-active {
  background: #ffffff;
  color: #c9005d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.sa-user-search-wrap {
  position: relative;
  min-width: 280px;
  max-width: 380px;
  flex: 1;
}
.sa-user-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.sa-user-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}
.sa-user-search-wrap input:focus {
  border-color: #c9005d;
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.1);
}

/* User Cards Grid */
.sa-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.sa-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
  position: relative;
}
.sa-user-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.sa-user-card.is-inactive {
  opacity: 0.65;
  background: #f8fafc;
}
.sa-user-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sa-user-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-user-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #a1004a;
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
}
.sa-user-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-user-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px;
  line-height: 1.2;
}
.sa-user-card-email {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  word-break: break-all;
}

/* User Info Box inside Card */
.sa-user-card-meta-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sa-user-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.sa-user-card-meta-row svg {
  flex-shrink: 0;
  color: #94a3b8;
}

/* Card Action Foot */
.sa-user-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}
.sa-user-card-created {
  font-size: 11.5px;
  color: #94a3b8;
}
.sa-user-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Role Badges */
.sa-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}
.sa-role-badge.is-owner {
  background: #fff1f2;
  color: #c9005d;
  border: 1px solid #e9d5ff;
}
.sa-role-badge.is-admin {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.sa-role-badge.is-moderator {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Password Status Badges */
.sa-pwd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.sa-pwd-badge.is-active {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.sa-pwd-badge.is-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Avatar / Face Photo Upload Card in Modal */
.sa-user-avatar-upload-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}
.sa-user-avatar-preview-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.sa-user-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9005d;
}
.sa-user-avatar-placeholder {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #a1004a;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px dashed #cbd5e1;
}
.sa-user-avatar-camera-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c9005d;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}
.sa-user-avatar-camera-btn:hover {
  transform: scale(1.1);
}
.sa-user-avatar-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Role Selection Cards in Modal */
.sa-role-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  display: block;
}
.sa-role-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.sa-role-card.is-active {
  border-color: #c9005d;
  background: #fbf9ff;
  box-shadow: 0 0 0 1px #c9005d;
}
.sa-role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sa-role-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.sa-role-card.is-active .sa-role-check-icon {
  background: #c9005d;
}
.sa-role-card-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   MODERN TOGGLE SWITCH (Used in Promo Cards, User Cards & Modals)
   ========================================================================== */
.sa-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  vertical-align: middle;
}
.sa-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.sa-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.sa-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sa-toggle-switch input:checked + .sa-toggle-track {
  background-color: #c9005d;
}
.sa-toggle-switch input:checked + .sa-toggle-track .sa-toggle-thumb {
  transform: translateX(18px);
}
.sa-toggle-switch input:focus-visible + .sa-toggle-track {
  box-shadow: 0 0 0 3px rgba(201, 0, 93, 0.2);
}
.sa-toggle-switch input:disabled + .sa-toggle-track {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: #e2e8f0;
}

/* Also style label.sa-switch universally as a toggle switch */
label.sa-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  vertical-align: middle;
}
label.sa-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
label.sa-switch .sa-slider,
label.sa-switch .sa-switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
label.sa-switch .sa-slider::before,
label.sa-switch .sa-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
label.sa-switch input:checked + .sa-slider,
label.sa-switch input:checked + .sa-switch-slider {
  background-color: #c9005d;
}
label.sa-switch input:checked + .sa-slider::before,
label.sa-switch input:checked + .sa-switch-slider::before {
  transform: translateX(18px);
}
label.sa-switch input:disabled + .sa-slider,
label.sa-switch input:disabled + .sa-switch-slider {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: #e2e8f0;
}

@media (max-width: 900px) {
  .sa-user-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sa-user-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-user-search-wrap {
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .sa-user-stats-grid {
    grid-template-columns: 1fr;
  }
  .sa-users-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE ORDERS CARD CLONE (@media (max-width: 768px))
   ========================================================================== */
@media (max-width: 768px) {
  .sa-order-table-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .sa-order-table-head {
    display: none !important;
  }
  .sa-order-table-body {
    min-width: 0 !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .sa-order-table-row {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    cursor: default !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    min-height: auto !important;
  }
  .sa-order-table-row:hover {
    background: #ffffff !important;
  }

  /* Mobile Top Group */
  .sa-mob-top-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  .sa-mob-top-group .sa-col-check {
    margin-right: 8px;
    padding-top: 10px;
    flex-shrink: 0;
  }
  .sa-mob-top-group .sa-order-col-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .sa-order-box-icon {
    width: 38px !important;
    height: 38px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .sa-order-num-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .sa-order-id-link {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-decoration: none !important;
  }
  .sa-badge-online,
  .sa-badge-inshop {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #2563eb !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
  }
  .sa-order-eye-btn {
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 !important;
  }
  .sa-order-subline {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 3px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .sa-order-date-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }
  .sa-order-date-main {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
  }
  .sa-order-time-sub {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  /* Mobile Dashed Divider */
  .sa-mob-divider {
    display: block !important;
    border-top: 1px dashed #f1f5f9 !important;
    margin: 12px 0 14px 0 !important;
    width: 100% !important;
  }

  /* Mobile Mid Group */
  .sa-mob-mid-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .sa-order-cust-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .sa-cust-avatar {
    width: 34px !important;
    height: 34px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    flex-shrink: 0 !important;
  }
  .sa-cust-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }
  .sa-cust-phone {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }
  .sa-amount-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
    flex-shrink: 0 !important;
  }
  .sa-amount-val {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }
  .sa-delivery-sub {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  /* Mobile Bot Group */
  .sa-mob-bot-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    gap: 8px !important;
  }
  .sa-col-status {
    display: flex !important;
    align-items: center !important;
  }
  .sa-status-badge-btn {
    border-radius: 10px !important;
    padding: 7px 12px !important;
  }
  .sa-col-fraud {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sa-btn-fraud {
    height: 34px !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
  }
  .sa-col-edit {
    display: flex !important;
    align-items: center !important;
  }
  .sa-col-tracking {
    display: none !important;
  }

  /* Expandable Drawers on mobile */
  .sa-order-track-drawer,
  .sa-order-fraud-drawer {
    min-width: 0 !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
  }

  /* ==========================================================================
     MOBILE CUSTOMERS CARD CLONE
     ========================================================================== */
  .sa-cust-table-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .sa-cust-toolbar {
    padding: 0 !important;
    margin-bottom: 12px !important;
    background: transparent !important;
    border: none !important;
  }
  .sa-cust-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: 44px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
  .sa-cust-search-wrap svg {
    left: 12px !important;
  }
  .sa-cust-search-input {
    border: none !important;
    height: 100% !important;
    padding-left: 28px !important;
    font-size: 14px !important;
  }
  .sa-cust-table-head {
    display: none !important;
  }
  .sa-cust-table-body {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .sa-cust-table-row {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    cursor: default !important;
  }
  .sa-cust-table-row:hover {
    background: #ffffff !important;
  }

  /* Hide columns not in mobile card */
  .sa-cust-col-check,
  .sa-cust-cell-orders,
  .sa-cust-cell-address,
  .sa-cust-cell-joined,
  .sa-cust-time-stack {
    display: none !important;
  }

  /* Mobile Top Row */
  .sa-mob-cust-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  .sa-cust-cell-customer {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .sa-cust-avatar-pill {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
  }
  .sa-cust-name-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }
  .sa-cust-email-text {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 3px !important;
  }

  .sa-cust-cell-phone {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }
  .sa-cust-phone-wrap {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .sa-cust-copy-phone-btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile Bottom Row */
  .sa-mob-cust-bot {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .sa-cust-cell-district {
    display: flex !important;
    align-items: center !important;
  }
  .sa-cust-district-badge {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .sa-cust-cell-view {
    display: flex !important;
    align-items: center !important;
  }
  .sa-cust-view-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 16px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #a1004a !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  }

  /* ==========================================================================
     MOBILE CATEGORIES & SUBCATEGORIES CARD CLONE
     ========================================================================== */
  .sa-cat-table-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .sa-cat-table-responsive {
    overflow: visible !important;
    width: 100% !important;
  }
  table.sa-cat-table {
    display: block !important;
    width: 100% !important;
    border-collapse: separate !important;
  }
  table.sa-cat-table thead {
    display: none !important;
  }
  table.sa-cat-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .sa-cat-row {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: default !important;
  }
  .sa-cat-row:hover {
    background: #ffffff !important;
  }

  /* TD layout inside mobile card */
  .sa-cat-td-drag {
    display: none !important;
  }
  .sa-cat-td-count {
    display: none !important;
  }
  .sa-cat-td-info {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .sa-cat-item-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .sa-cat-thumb,
  .sa-cat-thumb-placeholder {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .sa-cat-text-group {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .sa-cat-title-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }
  .sa-cat-subcount-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 3px !important;
  }

  /* Bottom Actions Bar on Mobile */
  .sa-cat-td-actions {
    display: block !important;
    padding: 12px 0 0 0 !important;
    width: 100% !important;
    border-top: 1px dashed #f1f5f9 !important;
    box-sizing: border-box !important;
  }
  .sa-cat-actions-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .sa-cat-act-btn {
    height: 34px !important;
    width: auto !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }
  .sa-cat-act-label {
    display: inline !important;
  }
  .sa-cat-act-btn.sa-cat-view-sub {
    color: #a1004a !important;
    background: #eff6ff !important;
    border-color: #dbeafe !important;
  }
  .sa-cat-act-btn.sa-cat-edit,
  .sa-cat-act-btn.sa-cat-edit-sub {
    color: #0f172a !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }
  .sa-cat-act-btn.is-delete {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
  }

  /* Category Drilldown Layout on Mobile */
  .sa-cat-drilldown-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .sa-cat-card-left,
  .sa-cat-card-right {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    padding: 16px !important;
  }

  /* ==========================================================================
     MOBILE DASHBOARD & QUICK ACTIONS (ZATIQ CLONE)
     ========================================================================== */
  .sa-dash-greeting {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 16px !important;
  }
  .sa-dash-avatar-wrap {
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .sa-dash-avatar {
    width: auto !important;
    height: 52px !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }
  .sa-dash-greet-text {
    margin-top: 10px !important;
  }
  .sa-dash-greet-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
  }
  .sa-dash-quote {
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: 4px !important;
  }
  .sa-dash-greet-actions {
    width: 100% !important;
    margin-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .sa-dash-visit-btn {
    flex: 1.4 !important;
    height: 44px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    text-decoration: none !important;
  }
  .sa-dash-copy-btn {
    flex: 1 !important;
    height: 44px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer !important;
  }

  /* Quick Actions Section (Zatiq Clone) */
  .sa-dash-quick-section {
    display: block !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .sa-dash-quick-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 2px !important;
    letter-spacing: -0.2px !important;
  }
  .sa-dash-quick-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .sa-dash-quick-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 14px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    cursor: pointer !important;
  }
  .sa-dash-quick-card:active {
    transform: scale(0.98) !important;
  }
  .sa-quick-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .sa-quick-icon.is-blue {
    background: #eff6ff !important;
    color: #3b82f6 !important;
  }
  .sa-quick-icon.is-purple {
    background: #fdf2f8 !important;
    color: #8b5cf6 !important;
  }
  .sa-quick-icon.is-violet {
    background: #fdf2f8 !important;
    color: #c9005d !important;
  }
  .sa-quick-icon.is-cyan {
    background: #f0fdfa !important;
    color: #0d9488 !important;
  }
  .sa-quick-icon.is-pink {
    background: #fef2f2 !important;
    color: #e11d48 !important;
  }
  .sa-quick-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .sa-quick-label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sa-quick-sub {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sa-quick-chevron {
    color: #cbd5e1 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* Safe bottom padding on Mobile Dashboard */
  #saViewStats {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Floating Bottom Navigation Bar on Mobile Dashboard (Zatiq Clone) */
  .sa-mobile-nav-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 16px env(safe-area-inset-bottom, 0px) 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.08) !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
  }
  .sa-mob-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    flex: 1 !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
  }
  .sa-mob-nav-item svg {
    stroke: #64748b !important;
    transition: stroke 0.15s ease !important;
  }
  .sa-mob-nav-item:hover svg,
  .sa-mob-nav-item:active svg {
    stroke: #0f172a !important;
  }
  .sa-mob-nav-item.is-home {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sa-mob-home-bubble {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #c9005d 0%, #c9005d 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: -24px !important;
    box-shadow: 0 8px 20px rgba(201, 0, 93, 0.38) !important;
    border: 4px solid #ffffff !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
  }
  .sa-mob-home-bubble:active {
    transform: scale(0.92) !important;
  }
}

