/*
 * ============================================================
 *  STORIX — Bootstrap 5 CSS Variable Overrides
 *  Drop this file AFTER bootstrap.css in your bundle.
 *  It overrides Bootstrap's :root variables so every
 *  Bootstrap component inherits the Storix brand instantly.
 * ============================================================
 */

/* ── Google Font import ───────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ── Storix Design Tokens ─────────────────────────────────── */
:root {
  /* --- Core Brand Palette --- */
  --stx-navy: #0f172a; /* Deep Navy  — sidebar, headers          */
  --stx-navy-mid: #131b2e; /* Primary Container                       */
  --stx-navy-soft: #213145; /* Inverse Surface                         */
  --stx-blue: #2563eb; /* Electric Blue — primary CTA             */
  --stx-blue-hover: #1d4ed8; /* Electric Blue darker on hover           */
  --stx-blue-light: #316bf3; /* Secondary Container                     */
  --stx-cyan: #06b6d4; /* Cyan — AI / smart feature accent        */
  --stx-slate: #64748b; /* Slate — secondary text & icons          */
  --stx-slate-light: #cbd5e1; /* Input borders                           */
  --stx-surface: #f8fafc; /* App background (near-white slate)       */
  --stx-surface-card: #ffffff; /* Card / widget surface                   */
  --stx-border: #e2e8f0; /* Level-1 card border                     */
  --stx-muted-bg: #f1f5f9; /* Table header, subtle fills              */
  --stx-success: #16a34a;
  --stx-warning: #d97706;
  --stx-error: #ba1a1a;
  --stx-error-bg: #ffdad6;

  /* --- Bootstrap 5 Overrides --- */
  --bs-font-sans-serif: "Poppins", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem; /* 16px */
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #0b1c30;
  --bs-body-bg: var(--stx-surface);

  /* Primary → Electric Blue */
  --bs-primary: var(--stx-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--stx-blue);
  --bs-link-hover-color: var(--stx-blue-hover);

  /* Secondary → Slate */
  --bs-secondary: var(--stx-slate);
  --bs-secondary-rgb: 100, 116, 139;

  /* Dark → Navy */
  --bs-dark: var(--stx-navy);
  --bs-dark-rgb: 15, 23, 42;

  /* Success / Warning / Danger */
  --bs-success: var(--stx-success);
  --bs-warning: var(--stx-warning);
  --bs-danger: var(--stx-error);

  /* Border */
  --bs-border-color: var(--stx-border);
  --bs-border-radius: 0.5rem; /* 8px base */
  --bs-border-radius-sm: 0.25rem; /* 4px  */
  --bs-border-radius-lg: 1rem; /* 16px */
  --bs-border-radius-xl: 1.5rem; /* 24px */
  --bs-border-radius-pill: 9999px;

  /* Shadows */
  --bs-box-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --bs-box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --bs-box-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.14);

  /* Cards */
  --bs-card-border-color: var(--stx-border);
  --bs-card-border-radius: var(--bs-border-radius);
  --bs-card-cap-bg: var(--stx-muted-bg);
  --bs-card-bg: var(--stx-surface-card);

  /* Table */
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(37, 99, 235, 0.05);
  --bs-table-border-color: var(--stx-border);

  /* Input */
  --bs-input-border-color: var(--stx-slate-light);
  --bs-input-focus-border-color: var(--stx-blue);
  --bs-input-focus-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);

  /* Navbar */
  --bs-navbar-color: rgba(255, 255, 255, 0.8);
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.2);

  /* Spacing scale (8px grid) */
  --stx-space-xs: 0.25rem; /*  4px */
  --stx-space-sm: 0.5rem; /*  8px */
  --stx-space-md: 1rem; /* 16px */
  --stx-space-lg: 1.5rem; /* 24px */
  --stx-space-xl: 2rem; /* 32px */
  --stx-space-2xl: 3rem; /* 48px */

  /* Sidebar */
  --stx-sidebar-width: 230px;
  --stx-sidebar-bg: var(--stx-navy);
  --stx-sidebar-active-bg: var(--stx-blue);
  --stx-sidebar-text: rgba(255, 255, 255, 0.7);
  --stx-sidebar-text-active: #ffffff;
  --stx-topbar-height: 64px;
  --stx-topbar-bg: #ffffff;
}

/* ── Typography Scale ─────────────────────────────────────── */
.stx-display-xl {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1,
.h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}
h2,
.h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}
h3,
.h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.stx-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}
.stx-body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.stx-label-caps {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stx-pos-numeral {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  line-height: 1;
  font-family: var(--bs-font-sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
}

.btn i {
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background-color: var(--stx-blue);
  border-color: var(--stx-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--stx-blue-hover);
  border-color: var(--stx-blue-hover);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.25),
    0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-dark {
  border-color: var(--stx-navy);
  color: var(--stx-navy);
}
.btn-outline-dark:hover {
  background-color: var(--stx-navy);
  color: #fff;
}

/* ── Form Controls ────────────────────────────────────────── */
.form-control,
.form-select {
  border-color: var(--stx-slate-light);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.form-control:focus,
.form-select:focus {
  border-width: 2px;
  border-color: var(--stx-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--stx-border);
  border-radius: var(--bs-border-radius);
  box-shadow: none;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}
.card:hover,
.card.stx-raised {
  box-shadow: var(--bs-box-shadow);
}
.card.stx-widget {
  border-radius: var(--bs-border-radius-lg); /* 16px — dashboard widgets */
  padding: var(--stx-space-lg);
}

/* ── Tables ───────────────────────────────────────────────── */
.table {
  font-size: 0.875rem;
}
.table thead th {
  background-color: var(--stx-muted-bg);
  color: var(--stx-slate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--stx-border);
  padding: 0.875rem 1rem;
}
.table tbody tr {
  border-bottom: 1px solid var(--stx-border);
}
.table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
}
.table-default tbody tr {
  height: 56px;
}
.table-compact tbody tr {
  height: 48px;
}
.table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

/* Action cells — low contrast until hovered */
.stx-action-cell {
  opacity: 0.35;
  transition: opacity 0.15s;
}
tr:hover .stx-action-cell {
  opacity: 1;
}

/* ── Badges / Status Chips ────────────────────────────────── */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.3em 0.75em;
}
.badge-active {
  background-color: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.badge-inactive {
  background-color: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.badge-pending {
  background-color: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.badge-error {
  background-color: var(--stx-error-bg);
  color: var(--stx-error);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.stx-sidebar {
  width: var(--stx-sidebar-width);
  height: 100vh;
  max-height: 100vh;
  background: var(--stx-sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1040;
}
.stx-sidebar-brand {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stx-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.stx-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.stx-sidebar-brand .brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}
.stx-sidebar-brand .brand-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stx-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.stx-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.stx-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.stx-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.stx-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
.stx-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stx-sidebar-text);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.15s ease;
}
.stx-sidebar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.stx-sidebar-nav .nav-link.active {
  color: var(--stx-sidebar-text-active);
  background: var(--stx-sidebar-active-bg);
  border-radius: 0.5rem;
  margin: 0 0.75rem;
  padding: 0.625rem 0.75rem;
}
.stx-sidebar-nav .nav-link i,
.stx-sidebar-nav .nav-link svg {
  width: 18px;
  flex-shrink: 0;
}
.stx-sidebar-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stx-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1035;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stx-sidebar-backdrop.is-visible {
  display: block;
  opacity: 1;
}
body.stx-sidebar-open {
  overflow: hidden;
}
.stx-sidebar-footer .btn-switch {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.stx-sidebar-footer .btn-switch:hover {
  background: rgba(255, 255, 255, 0.08);
}
.stx-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
}
.stx-sidebar-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--stx-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stx-sidebar-user .user-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.stx-sidebar-user .user-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

/* ── Topbar ───────────────────────────────────────────────── */
.stx-topbar {
  height: var(--stx-topbar-height);
  background: var(--stx-topbar-bg);
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: var(--stx-sidebar-width);
  right: 0;
  z-index: 1030;
}
.stx-topbar-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--stx-slate);
  flex: 1;
}
.stx-topbar-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.stx-topbar-meta .session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stx-success);
  display: inline-block;
}
.stx-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.stx-topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--stx-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.stx-topbar-icon-btn:hover {
  background: var(--stx-muted-bg);
  color: var(--stx-navy);
}
.stx-topbar-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stx-navy);
}
.stx-topbar-user__toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.stx-topbar-user__toggle:hover,
.stx-topbar-user__toggle.show {
  background: var(--stx-muted-bg);
}
.stx-topbar-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--stx-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stx-topbar-user__menu {
  min-width: 180px;
  border-radius: 0.75rem;
  padding: 0.375rem;
}
.stx-topbar-user__item {
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stx-navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.stx-topbar-user__item:hover,
.stx-topbar-user__item:focus,
.stx-topbar-user__item:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}
.stx-topbar-user__item--signout {
  color: var(--stx-navy);
}
.stx-topbar-user__item--signout:hover,
.stx-topbar-user__item--signout:focus,
.stx-topbar-user__item--signout:focus-visible {
  background: rgba(239, 68, 68, 0.1);
  color: var(--stx-error);
}

/* ── Page Wrapper ─────────────────────────────────────────── */
.stx-wrapper {
  margin-left: var(--stx-sidebar-width);
  padding-top: var(--stx-topbar-height);
  min-height: 100vh;
  background: var(--stx-surface);
}
.stx-page {
  padding: 1.75rem 2rem;
}
.stx-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.stx-page-header-actions .btn {
  min-height: 46px;
}
.stx-page-header h1 {
  margin-bottom: 0.25rem;
}
.stx-page-header p {
  color: var(--stx-slate);
  font-size: 0.875rem;
  margin: 0;
}

/* ── Metric / KPI Cards ───────────────────────────────────── */
.stx-metric-card {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: 0.2s;
}

.stx-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
.stx-metric-card .metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.5rem;
}
.stx-metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--stx-navy);
}
.stx-metric-card .metric-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stx-success);
}

/* ── Dashboard ────────────────────────────────────────────── */
.stx-dashboard {
  --stx-dash-radius: 1rem;
}

.stx-text-xs {
  font-size: 0.75rem;
}
.stx-text-sm {
  font-size: 0.875rem;
}

/* KPI cards */
.stx-kpi-card {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-dash-radius);
  padding: 1.5rem;
  height: 100%;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stx-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.stx-kpi-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stx-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stx-kpi-icon--sales {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}
.stx-kpi-icon--orders {
  background: rgba(217, 119, 6, 0.12);
  color: var(--stx-warning);
}
.stx-kpi-icon--stock {
  background: rgba(186, 26, 26, 0.1);
  color: var(--stx-error);
}
.stx-kpi-icon--branch {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.stx-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.stx-pill-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.stx-pill-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.stx-pill-primary {
  background: rgba(37, 99, 235, 0.12);
  color: var(--stx-blue);
}
.stx-pill-muted {
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.375rem;
}

.stx-kpi-value {
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--stx-navy);
  letter-spacing: -0.02em;
}

.stx-kpi-value--danger {
  color: var(--stx-error);
}
.stx-kpi-value--compact {
  font-size: 1.125rem;
  letter-spacing: 0;
}

.stx-kpi-footnote {
  margin: 0;
  color: var(--stx-slate);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stx-kpi-progress {
  height: 4px;
  background: var(--stx-muted-bg);
  border-radius: 9999px;
  overflow: hidden;
}

.stx-kpi-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--stx-blue), #60a5fa);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.stx-branch-sparkline {
  height: 48px;
  gap: 3px;
}

.stx-branch-sparkline__bar {
  border-radius: 3px;
  min-height: 6px;
  transition: opacity 0.15s ease;
}

.stx-branch-sparkline__bar--lead {
  background: linear-gradient(180deg, #3b82f6, var(--stx-blue));
}

.stx-branch-sparkline__bar--muted {
  background: #e2e8f0;
}

/* Dashboard panels */
.stx-dashboard-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-dash-radius);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stx-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.stx-panel-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0 0 0.25rem;
}

.stx-panel-header p {
  margin: 0;
  color: var(--stx-slate);
  font-size: 0.875rem;
}

.stx-panel-body {
  padding: 1.5rem;
  flex: 1;
}

.stx-panel-body--flush {
  padding: 0;
}

.stx-panel-footer {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--stx-border);
  background: var(--stx-muted-bg);
  text-align: center;
}

.stx-panel-footer a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Chart */
.stx-chart-wrap {
  position: relative;
  height: 280px;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid var(--stx-border);
}

.stx-chart-grid {
  position: absolute;
  inset: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.stx-chart-grid span {
  border-top: 1px solid #f1f5f9;
}

.stx-chart-bars {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.stx-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.stx-chart-bar {
  width: min(100%, 52px);
  border-radius: 0.5rem 0.5rem 0 0;
  background: linear-gradient(180deg, #3b82f6 0%, var(--stx-blue) 100%);
  position: relative;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  cursor: default;
}

.stx-chart-bar:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.stx-chart-bar__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stx-slate);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stx-chart-empty {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--stx-slate);
  text-align: center;
}

.stx-chart-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--stx-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--stx-slate);
}

.stx-legend-dot {
  width: 10px;
  height: 10px;
}

.stx-promo-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px dashed #cbd5e1 !important;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.stx-promo-banner h6 {
  color: var(--stx-navy);
  margin-bottom: 0.25rem;
}

/* Activity feed */
.stx-activity-item {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.stx-activity-item:last-child {
  border-bottom: 0;
}
.stx-activity-item:hover {
  background: rgba(37, 99, 235, 0.03);
}

.stx-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.stx-activity-success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--stx-success);
}
.stx-activity-primary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--stx-blue);
}
.stx-activity-warning {
  background: rgba(217, 119, 6, 0.1);
  color: var(--stx-warning);
}
.stx-activity-danger {
  background: rgba(186, 26, 26, 0.08);
  color: var(--stx-error);
}
.stx-activity-muted {
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-activity-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0;
  min-width: 0;
}

.stx-dashboard .min-w-0 {
  min-width: 0;
}

.stx-activity-meta {
  font-size: 0.75rem;
  color: var(--stx-slate);
  margin: 0.125rem 0 0;
}

.stx-activity-amount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stx-blue);
}

/* Tables on dashboard */
.stx-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stx-product-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stx-product-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--stx-muted-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.stx-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stx-product-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--stx-slate);
}

.stx-product-thumb--sm {
  width: 36px;
  height: 36px;
}

.stx-product-thumb--sm .stx-product-thumb__placeholder {
  font-size: 0.95rem;
}

.stx-product-thumb--md {
  width: 48px;
  height: 48px;
}

.stx-product-thumb--md .stx-product-thumb__placeholder {
  font-size: 1.1rem;
}

.stx-product-thumb--lg {
  width: 72px;
  height: 72px;
}

.stx-product-thumb--lg .stx-product-thumb__placeholder {
  font-size: 1.35rem;
}

.stx-stock-badge {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(186, 26, 26, 0.1);
  color: var(--stx-error);
}

.badge-completed {
  background-color: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.badge-processing {
  background-color: rgba(37, 99, 235, 0.12);
  color: var(--stx-blue);
}
.badge-cancelled {
  background-color: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.branch-tooltip {
  top: -2.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.stx-kpi-link {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--stx-blue);
  text-decoration: none;
}

.stx-kpi-link:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .stx-kpi-card {
    min-height: 168px;
    padding: 1.25rem;
  }
  .stx-chart-wrap {
    height: 220px;
  }
  .stx-chart-empty {
    height: 220px;
  }
}

/* ── POS Split Layout ─────────────────────────────────────── */
.stx-pos-layout {
  display: flex;
  height: calc(100vh - var(--stx-topbar-height));
}
.stx-pos-products {
  flex: 0 0 60%;
  padding: 1.25rem;
  overflow-y: auto;
}
.stx-pos-cart {
  flex: 0 0 40%;
  border-left: 1px solid var(--stx-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.stx-pos-cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stx-border);
}
.stx-pos-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.stx-pos-cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--stx-border);
}

/* POS product tile */
.stx-product-tile {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.1s;
  position: relative;
}
.stx-product-tile:hover {
  box-shadow: var(--bs-box-shadow);
  transform: translateY(-1px);
}
.stx-product-tile .tile-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--stx-muted-bg);
}
.stx-product-tile .tile-stock {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2em 0.5em;
  border-radius: 0.25rem;
}
.stx-product-tile .tile-body {
  padding: 0.625rem 0.75rem 0.75rem;
}
.stx-product-tile .tile-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--stx-navy);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stx-product-tile .tile-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-blue);
}

/* Cart qty stepper */
.stx-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stx-qty-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: 1px solid var(--stx-slate-light);
  background: #fff;
  color: var(--stx-navy);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s;
}
.stx-qty-stepper button:hover {
  background: var(--stx-muted-bg);
}
.stx-qty-stepper .qty-val {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* ── Bottom Action Bar (POS) ──────────────────────────────── */
.stx-pos-bottombar {
  position: fixed;
  bottom: 0;
  left: var(--stx-sidebar-width);
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 1020;
}

/* ── POS payment method buttons ──────────────────────────── */
.stx-pay-btn {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--stx-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--stx-navy);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.stx-pay-btn.active,
.stx-pay-btn:hover {
  background: var(--stx-blue);
  border-color: var(--stx-blue);
  color: #fff;
}

/* ── Overlay / Modal ──────────────────────────────────────── */
.modal-content {
  border-radius: var(--bs-border-radius-lg);
  border: none;
  box-shadow: var(--bs-box-shadow-lg);
  backdrop-filter: blur(20%);
}

.stx-branch-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}
.stx-branch-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--stx-border);
  border-radius: 0.625rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.stx-branch-option:hover {
  border-color: var(--stx-blue);
  background: var(--stx-surface);
}
.stx-branch-option.selected {
  border-color: var(--stx-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.stx-branch-option.current:not(.selected) {
  background: var(--stx-muted-bg);
}
.stx-branch-option-name {
  font-weight: 600;
  color: var(--stx-navy);
}
.stx-branch-option-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.stx-empty-state {
  color: var(--stx-slate);
}

/* ── Identity Auth Pages ─────────────────────────────────── */
@keyframes stxPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.stx-auth-body {
  min-height: 100vh;
  background: var(--stx-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-auth-container {
  width: 100%;
  padding: 1rem;
}

.stx-auth-shell {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--stx-border);
  box-shadow: var(--bs-box-shadow-lg);
  background: var(--stx-surface-card);
  min-height: min(640px, calc(100vh - 2rem));
}

.stx-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 50%;
  padding: 2.5rem;
  background: var(--stx-surface-card);
}

.stx-auth-form-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.stx-auth-logo {
  object-fit: contain;
}

.stx-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stx-navy-mid);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stx-auth-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
}

.stx-auth-field-label {
  color: var(--stx-slate);
}

.stx-auth-field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stx-slate);
  font-size: 20px;
  opacity: 0.6;
  pointer-events: none;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.stx-auth-input-icon {
  padding-left: 2.75rem !important;
}

.stx-auth-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stx-border);
}

.stx-auth-footer p {
  color: var(--stx-slate);
  font-size: 0.875rem;
}

.stx-auth-link {
  color: var(--stx-blue);
  font-weight: 600;
  text-decoration: none;
}

.stx-auth-link:hover {
  color: var(--stx-blue-hover);
}

.stx-auth-message {
  text-align: center;
  color: var(--stx-slate);
}

.stx-auth-message h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stx-navy-mid);
  margin-bottom: 0.75rem;
}

.stx-auth-hero {
  position: relative;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  overflow: hidden;
}

.stx-auth-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stx-auth-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.25);
}

.stx-auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--stx-navy-mid) 0%,
    rgba(19, 27, 46, 0.8) 55%,
    rgba(19, 27, 46, 0.2) 100%
  );
}

.stx-auth-hero-content {
  position: relative;
  z-index: 1;
}

.stx-auth-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--bs-border-radius-pill);
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(12px);
  color: #dbe1ff;
}

.stx-auth-hero-pulse {
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--stx-blue);
  animation: stxPulse 2s infinite;
}

.stx-auth-hero-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  max-width: 28rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.stx-auth-hero-text {
  font-size: 0.875rem;
  color: rgba(211, 228, 254, 0.9);
  max-width: 22rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.stx-auth-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stx-auth-feature-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.stx-auth-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.stx-auth-feature-icon .material-symbols-outlined {
  font-size: 20px;
  color: #dbe1ff;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.stx-auth-hero-version {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* ── Identity Manage (account settings) ──────────────────── */
.stx-manage-layout h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stx-navy-mid);
}

.stx-manage-layout h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stx-slate);
}

.stx-manage-nav .nav-link {
  color: var(--stx-slate);
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.stx-manage-nav .nav-link.active,
.stx-manage-nav .nav-link:hover {
  background: var(--stx-muted-bg);
  color: var(--stx-blue);
}

/*Tabs*/

.stx-order-tabs {
  background: #eef2f7;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.stx-order-tabs .nav-link {
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  color: var(--stx-slate);
  font-weight: 600;
  background: transparent;
}

.stx-order-tabs .nav-link.active {
  background: var(--stx-blue);
  color: #fff;
}

.stx-order-tabs .nav-link:hover:not(.active) {
  background: rgba(37, 99, 235, 0.08);
}

.stx-order-tabs .nav-link span {
  opacity: 0.8;
}

/* ── Locations hub ───────────────────────────────────────── */
.stx-locations {
  --stx-loc-radius: 1rem;
}

.stx-locations-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--warehouse {
  background: rgba(6, 182, 212, 0.12);
  color: var(--stx-cyan);
}

.stx-kpi-icon--online {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-locations-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stx-locations-search {
  position: relative;
  min-width: min(100%, 280px);
  max-width: 320px;
}

.stx-locations-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stx-slate);
  pointer-events: none;
}

.stx-locations-search .form-control {
  padding-left: 2.5rem;
  border-radius: 0.75rem;
  border-color: var(--stx-border);
  background: var(--stx-surface-card);
}

.stx-location-card {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-loc-radius);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stx-location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.25);
}

.stx-location-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.stx-location-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stx-location-card__icon--branch {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.stx-location-card__icon--warehouse {
  background: rgba(6, 182, 212, 0.12);
  color: var(--stx-cyan);
}

.stx-location-card__icon--online {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-location-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.stx-location-card__meta {
  font-size: 0.8125rem;
  color: var(--stx-slate);
  margin: 0;
}

.stx-location-card__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stx-location-card__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stx-location-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stx-location-type-pill--branch {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.stx-location-type-pill--warehouse {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}

.stx-location-type-pill--online {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-locations-empty {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--stx-surface-card);
  border: 1px dashed var(--stx-border);
  border-radius: var(--stx-loc-radius);
}

.stx-locations-empty.is-visible {
  display: block;
}

.stx-locations-empty i {
  font-size: 2rem;
  color: var(--stx-slate);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

/* ── Brands hub ──────────────────────────────────────────── */
.stx-brands {
  --stx-brand-radius: 1rem;
}

.stx-brands-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--brands {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-brand-card {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-brand-radius);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stx-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.25);
}

.stx-brand-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stx-brand-card__logo,
.stx-brand-hero__logo {
  width: 52px;
  height: 52px;
  border-radius: 0.875rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--stx-border);
  background: var(--stx-muted-bg);
}

.stx-brand-card__avatar,
.stx-brand-hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--stx-blue) 0%, var(--stx-cyan) 100%);
}

.stx-brand-hero__avatar {
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
  border-radius: 1rem;
}

.stx-brand-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.stx-brand-card__slug {
  font-size: 0.8125rem;
  color: var(--stx-slate);
  margin: 0;
}

.stx-brand-card__slug code {
  font-size: 0.8125rem;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
}

.stx-brand-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stx-brand-card__foot {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stx-brand-card__since {
  font-size: 0.75rem;
  color: var(--stx-slate);
}

.stx-brand-hero {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.stx-brand-hero__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.stx-brand-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.35rem;
}

.stx-brand-hero__slug {
  font-size: 0.875rem;
  color: var(--stx-slate);
  margin: 0 0 0.75rem;
}

.stx-brand-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stx-brand-currency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.06);
  color: var(--stx-navy);
}

.stx-brands-empty {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--stx-surface-card);
  border: 1px dashed var(--stx-border);
  border-radius: var(--stx-brand-radius);
}

.stx-brands-empty.is-visible {
  display: block;
}

/* ── User management (Stitch) ─────────────────────────────── */
.stx-users-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--users {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-users-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
}

.stx-users-panel__toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stx-users-table {
  margin: 0;
}

.stx-users-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  border-bottom: 1px solid var(--stx-border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.stx-users-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stx-border);
}

.stx-users-table tbody tr:last-child td {
  border-bottom: none;
}

.stx-users-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}

.stx-user-cell {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.stx-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--stx-navy) 0%, var(--stx-blue) 100%);
  flex-shrink: 0;
}

.stx-user-cell__name {
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0;
  font-size: 0.9375rem;
}

.stx-user-cell__id {
  font-size: 0.75rem;
  color: var(--stx-slate);
  margin: 0;
}

.stx-role-badge {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stx-role-badge--owner {
  background: var(--stx-navy);
  color: #fff;
}

.stx-role-badge--manager {
  background: rgba(37, 99, 235, 0.12);
  color: var(--stx-blue);
}

.stx-role-badge--cashier {
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-role-badge--default {
  background: var(--stx-muted-bg);
  color: var(--stx-navy);
}

.stx-user-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stx-user-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stx-user-status__dot--active {
  background: var(--stx-success);
}

.stx-user-status__dot--inactive {
  background: var(--stx-slate-light);
}

.stx-users-panel__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-users-util-card {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stx-users-util-card--dark {
  background: var(--stx-navy);
  color: rgba(255, 255, 255, 0.85);
}

.stx-users-util-card--dark h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.stx-users-util-card--info {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.stx-users-util-card--info h3 {
  color: var(--stx-navy);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.stx-users-empty-filter {
  display: none;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--stx-slate);
}

.stx-users-empty-filter.is-visible {
  display: block;
}

/* ── Role permissions (Stitch / User Management pattern) ──── */
.stx-permissions-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-permissions-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
}

.stx-permissions-panel__toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
}

.stx-permissions-panel__intro h2 {
  color: var(--stx-navy);
  font-weight: 700;
}

.stx-permissions-role-list {
  display: flex;
  flex-direction: column;
}

.stx-permissions-role-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stx-border);
  transition: background 0.15s ease;
}

.stx-permissions-role-card:last-child {
  border-bottom: none;
}

.stx-permissions-role-card:hover {
  background: rgba(248, 250, 252, 0.8);
}

.stx-permissions-role-card__main {
  flex: 1 1 280px;
  min-width: 0;
}

.stx-permissions-role-card__meta {
  font-size: 0.875rem;
  color: var(--stx-slate);
}

.stx-permissions-role-card__meta strong {
  color: var(--stx-navy);
  font-weight: 700;
}

.stx-permissions-role-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.stx-permissions-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stx-permissions-pill--success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--stx-success);
}

.stx-permissions-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--stx-muted-bg);
  overflow: hidden;
}

.stx-permissions-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--stx-blue) 0%, #0ea5e9 100%);
  transition: width 0.2s ease;
}

.stx-permissions-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stx-permissions-module-chip {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  color: var(--stx-blue);
}

.stx-permissions-module-chip--muted {
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-permissions-coverage {
  text-align: right;
  line-height: 1.2;
}

.stx-permissions-coverage__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stx-navy);
}

.stx-permissions-coverage__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
}

.stx-permissions-empty-filter {
  display: none;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--stx-slate);
}

.stx-permissions-empty-filter.is-visible {
  display: block;
}

/* ── Permission matrix editor (role edit) ─────────────────── */
.stx-perm-matrix {
  max-height: calc(100vh - var(--stx-topbar-height, 64px) - 7rem);
  display: flex;
  flex-direction: column;
}

.stx-perm-matrix__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.stx-perm-matrix__header {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.15rem;
}

.stx-perm-matrix__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  flex: 1 1 200px;
  min-width: 0;
}

.stx-perm-matrix__stats {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.stx-perm-matrix__stat strong {
  font-size: 1rem;
  color: var(--stx-navy);
}

.stx-perm-matrix__coverage {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--stx-blue);
}

.stx-perm-matrix__progress {
  flex: 1 1 100px;
  max-width: 140px;
  min-width: 72px;
  height: 5px;
}

.stx-perm-matrix__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.stx-perm-matrix__search {
  position: relative;
  min-width: 180px;
}

.stx-perm-matrix__search i {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--stx-slate);
  pointer-events: none;
}

.stx-perm-matrix__search .form-control {
  padding-left: 1.75rem;
  border-radius: 0.5rem;
  min-height: 2rem;
}

.stx-perm-matrix__body {
  display: flex;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--stx-border);
}

.stx-perm-matrix__nav {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-right: 1px solid var(--stx-border);
  background: var(--stx-muted-bg);
  overflow-y: auto;
}

.stx-perm-matrix__nav-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem 0.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.stx-perm-matrix__nav-item:hover {
  background: var(--stx-surface-card);
}

.stx-perm-matrix__nav-item.is-active {
  background: var(--stx-surface-card);
  border-color: var(--stx-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.stx-perm-matrix__nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
  font-size: 0.8rem;
}

.stx-perm-matrix__nav-item.is-active .stx-perm-matrix__nav-icon {
  background: var(--stx-blue);
  color: #fff;
}

.stx-perm-matrix__nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stx-navy);
  line-height: 1.2;
  min-width: 0;
}

.stx-perm-matrix__nav-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--stx-slate);
  white-space: nowrap;
}

.stx-perm-matrix__nav-item.is-active .stx-perm-matrix__nav-count {
  color: var(--stx-blue);
}

.stx-perm-matrix__panels {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stx-perm-matrix__panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.stx-perm-matrix__panel.is-active {
  display: flex;
}

.stx-perm-matrix__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--stx-border);
  background: var(--stx-surface-card);
  flex-shrink: 0;
}

.stx-perm-matrix__panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stx-perm-matrix__panel-title i {
  color: var(--stx-blue);
}

.stx-perm-matrix__panel-desc {
  font-size: 0.75rem;
  color: var(--stx-slate);
}

.stx-perm-matrix__table-wrap {
  flex: 1;
  overflow-y: auto;
}

.stx-perm-matrix__table {
  --bs-table-bg: transparent;
  font-size: 0.8125rem;
}

.stx-perm-matrix__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--stx-muted-bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  border-bottom-width: 1px;
  padding: 0.4rem 0.75rem;
}

.stx-perm-matrix__table tbody td {
  padding: 0.35rem 0.75rem;
  vertical-align: middle;
  border-color: var(--stx-border);
}

.stx-perm-matrix__row:hover {
  background: rgba(37, 99, 235, 0.04);
}

.stx-perm-matrix__perm-label {
  display: block;
  font-weight: 600;
  color: var(--stx-navy);
  line-height: 1.25;
}

.stx-perm-matrix__perm-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--stx-slate);
  margin-top: 0.1rem;
}

.stx-perm-matrix__perm-code {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  color: var(--stx-slate);
  opacity: 0.85;
}

.stx-perm-matrix__action {
  display: inline-flex;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-perm-matrix__check-wrap {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.stx-perm-matrix__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stx-perm-matrix__check-ui {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--stx-border);
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--stx-surface-card);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.stx-perm-matrix__check-ui i {
  font-size: 0.85rem;
  font-weight: 700;
}

.stx-perm-matrix__check:checked + .stx-perm-matrix__check-ui {
  background: var(--stx-blue);
  border-color: var(--stx-blue);
  color: #fff;
}

.stx-perm-matrix__check:focus-visible + .stx-perm-matrix__check-ui {
  outline: 2px solid var(--stx-blue);
  outline-offset: 2px;
}

.stx-perm-matrix__empty {
  padding: 1rem;
  text-align: center;
}

.stx-perm-matrix__footer {
  text-align: inherit;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .stx-perm-matrix {
    max-height: none;
  }

  .stx-perm-matrix__body {
    flex-direction: column;
  }

  .stx-perm-matrix__nav {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--stx-border);
  }

  .stx-perm-matrix__nav-item {
    flex: 0 0 auto;
    min-width: 7.5rem;
    grid-template-columns: auto 1fr;
  }

  .stx-perm-matrix__nav-count {
    grid-column: 2;
    justify-self: start;
  }
}

.stx-permissions-module__desc {
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

/* Non-edit pages keep original module card sizing */
.stx-permissions-module {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.stx-permissions-module__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  background: var(--stx-muted-bg);
}

.stx-permissions-module__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.stx-permissions-module__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.15rem;
}

.stx-permissions-module__meta {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.stx-permissions-module__count {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--stx-navy);
}

.stx-permissions-module__toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.stx-permissions-module .stx-settings-toggle-list {
  padding: 1rem 1.25rem;
}

.stx-permissions-toggle .stx-permissions-code {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.stx-permissions-action-pill {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
  vertical-align: middle;
}

/* ── Customers (Stitch / User Management pattern) ─────────── */
.stx-customers-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--customers {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-kpi-icon--loyalty {
  background: rgba(217, 119, 6, 0.12);
  color: var(--stx-warning);
}

.stx-user-avatar--customer {
  background: linear-gradient(135deg, #0e7490 0%, var(--stx-blue) 100%);
}

.stx-customers-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
}

.stx-customers-panel__toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stx-customers-table {
  margin: 0;
}

.stx-customers-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  border-bottom: 1px solid var(--stx-border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.stx-customers-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stx-border);
}

.stx-customers-table tbody tr:last-child td {
  border-bottom: none;
}

.stx-customers-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}

.stx-loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}

.stx-loyalty-badge i {
  font-size: 0.7rem;
}

.stx-customers-panel__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--stx-border);
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-customers-empty-filter {
  display: none;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--stx-slate);
}

.stx-customers-empty-filter.is-visible {
  display: block;
}

/* ── Promotions (Stitch / Locations card pattern) ─────────── */
.stx-promotions-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--promo {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.stx-kpi-icon--coupon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--stx-cyan);
}

.stx-promotions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stx-promotion-card {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stx-promotion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.25);
}

.stx-promotion-card__accent {
  background: linear-gradient(135deg, var(--stx-navy) 0%, var(--stx-blue) 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.stx-promotion-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stx-promotion-card__type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.stx-promotion-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stx-promotion-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.stx-promotion-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.stx-promotion-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.stx-promotion-card__meta {
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-promotion-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stx-coupon-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stx-slate);
}

.stx-promotion-card__rules {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-promotion-card__rules li + li {
  margin-top: 0.25rem;
}

.stx-promotion-card__foot {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stx-promotions-empty {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--stx-surface-card);
  border: 1px dashed var(--stx-border);
  border-radius: 1rem;
}

.stx-promotions-empty.is-visible {
  display: block;
}

.stx-promotions-empty i {
  font-size: 2rem;
  color: var(--stx-slate);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.stx-promotions-panel__footer {
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-coupons-panel .stx-coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--stx-navy);
  background: var(--stx-muted-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

/* ── Inventory hub (Stitch) ─────────────────────────────── */
.stx-inventory-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--transfer {
  background: rgba(6, 182, 212, 0.12);
  color: var(--stx-cyan);
}

.stx-kpi-icon--purchase {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.stx-inventory-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
}

.stx-inventory-panel__toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stx-inventory-panel__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.stx-inventory-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stx-inventory-location label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin: 0;
  white-space: nowrap;
}

.stx-inventory-location .form-select {
  min-width: 12rem;
  border-radius: 0.75rem;
  border-color: var(--stx-border);
}

.stx-inventory-panel__body {
  padding: 0;
}

.stx-inventory-quick {
  margin: 1.25rem;
  padding: 1.25rem;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 0.875rem;
}

.stx-inventory-quick__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stx-inventory-quick__title i {
  color: var(--stx-blue);
}

.stx-inventory-table {
  margin: 0;
}

.stx-inventory-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  border-bottom: 1px solid var(--stx-border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.stx-inventory-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stx-border);
}

.stx-inventory-table tbody tr:last-child td {
  border-bottom: none;
}

.stx-inventory-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}

.stx-inventory-table tbody tr.stx-inventory-row--low {
  background: rgba(217, 119, 6, 0.04);
}

.stx-inventory-table tbody tr.stx-inventory-row--out {
  background: rgba(186, 26, 26, 0.04);
}

.stx-product-avatar {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, var(--stx-cyan) 100%);
  flex-shrink: 0;
}

.stx-inventory-level {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stx-inventory-level--ok {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.stx-inventory-level--low {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.stx-inventory-level--out {
  background: rgba(186, 26, 26, 0.1);
  color: var(--stx-error);
}

.stx-inventory-qty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--stx-navy);
}

.stx-inventory-qty--muted {
  font-weight: 500;
  color: var(--stx-slate);
  font-size: 0.8125rem;
}

.stx-transfer-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.stx-transfer-route__arrow {
  color: var(--stx-slate);
  font-size: 0.75rem;
}

.stx-inventory-panel__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--stx-border);
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-inventory-empty-filter {
  display: none;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--stx-slate);
}

.stx-inventory-empty-filter.is-visible {
  display: block;
}

/* ── POS sessions (Stitch) ────────────────────────────────── */
.stx-pos-sessions-summary .stx-kpi-card {
  min-height: 148px;
}

.stx-kpi-icon--pos {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-kpi-icon--drawer {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.stx-kpi-icon--variance {
  background: rgba(217, 119, 6, 0.12);
  color: var(--stx-warning);
}

.stx-pos-sessions-panel {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
}

.stx-pos-sessions-panel__toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stx-pos-sessions-panel__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.stx-pos-sessions-date {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.stx-pos-sessions-date label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.35rem;
}

.stx-pos-sessions-date .form-control {
  min-width: 9.5rem;
  border-radius: 0.625rem;
  border-color: var(--stx-border);
  font-size: 0.875rem;
}

.stx-pos-sessions-table {
  margin: 0;
}

.stx-pos-sessions-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  background: var(--stx-muted-bg);
  border-bottom: 1px solid var(--stx-border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.stx-pos-sessions-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stx-border);
}

.stx-pos-sessions-table tbody tr:last-child td {
  border-bottom: none;
}

.stx-pos-sessions-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}

.stx-pos-session-cell {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.stx-pos-session-cell__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--stx-blue);
  background: rgba(37, 99, 235, 0.1);
  flex-shrink: 0;
}

.stx-pos-session-cell__icon--open {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
}

.stx-pos-session-cell__name {
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0;
  font-size: 0.9375rem;
}

.stx-pos-session-cell__meta {
  font-size: 0.75rem;
  color: var(--stx-slate);
  margin: 0;
}

.stx-pos-session-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stx-pos-session-pay {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--stx-muted-bg);
  color: var(--stx-slate);
}

.stx-pos-session-pay--cash {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.stx-pos-session-pay--card {
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-pos-session-pay--wallet {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.stx-pos-session-diff {
  font-weight: 700;
  font-size: 0.875rem;
}

.stx-pos-sessions-panel__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--stx-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-pos-sessions-empty-filter {
  display: none;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--stx-slate);
}

.stx-pos-sessions-empty-filter.is-visible {
  display: block;
}

.stx-pos-session-detail-header {
  margin-bottom: 1.5rem;
}

.stx-pos-session-detail-header .stx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stx-slate);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.stx-pos-session-detail-header .stx-back-link:hover {
  color: var(--stx-blue);
}

.stx-pos-session-detail-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin-bottom: 0.35rem;
}

.stx-pos-session-detail-header p {
  color: var(--stx-slate);
  font-size: 0.875rem;
  margin: 0;
}

.stx-pos-session-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.stx-pos-session-section {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
}

.stx-pos-session-section__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stx-pos-session-section__head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin: 0;
}

.stx-pos-session-section__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
}

.stx-pos-session-section__icon--cash {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.stx-pos-session-drawer-list {
  padding: 1.25rem;
}

.stx-pos-session-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stx-border);
}

.stx-pos-session-drawer-row:last-child {
  border-bottom: none;
}

.stx-pos-session-drawer-row dt {
  font-size: 0.8125rem;
  color: var(--stx-slate);
  margin: 0;
  font-weight: 500;
}

.stx-pos-session-drawer-row dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0;
  text-align: right;
}

.stx-pos-session-notes {
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--stx-muted-bg);
  font-size: 0.875rem;
  color: var(--stx-navy);
}

@media (max-width: 991.98px) {
  .stx-pos-session-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Performance reports (Stitch) ─────────────────────────── */
.stx-reports-filters {
  background: var(--stx-surface-card);
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.stx-reports-filters .form-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.35rem;
}

.stx-reports-filters .form-select {
  min-width: 160px;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.stx-reports-filters__apply {
  border-radius: 0.625rem;
  width: 42px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stx-report-kpi {
  min-height: 148px;
}

.stx-report-kpi .stx-kpi-value {
  font-size: 1.75rem;
}

.stx-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.stx-kpi-trend--up {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.stx-kpi-trend--down {
  background: rgba(186, 26, 26, 0.1);
  color: var(--stx-error);
}

.stx-hbar-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.stx-hbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
}

.stx-hbar-row__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stx-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stx-hbar-track {
  height: 32px;
  background: var(--stx-muted-bg);
  border-radius: 9999px;
  overflow: hidden;
}

.stx-hbar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--stx-blue) 0%, #3b82f6 100%);
  transition: width 0.35s ease;
}

.stx-hbar-row__value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--stx-navy);
  white-space: nowrap;
}

.stx-reports-products-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stx-slate);
  border-bottom: 1px solid var(--stx-border);
  padding: 0.75rem 1rem;
}

.stx-reports-products-table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stx-border);
}

.stx-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stx-product-cell__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  background: var(--stx-muted-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stx-slate);
  flex-shrink: 0;
}

.stx-product-cell__name {
  font-weight: 600;
  color: var(--stx-navy);
  margin: 0;
  font-size: 0.9375rem;
}

.stx-margin-pill {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stx-margin-pill--high {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.stx-margin-pill--mid {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.stx-margin-pill--low {
  background: rgba(186, 26, 26, 0.1);
  color: var(--stx-error);
}

.stx-trend-spark {
  font-size: 1.125rem;
}

.stx-trend-spark--up {
  color: #15803d;
}
.stx-trend-spark--down {
  color: var(--stx-error);
}

.stx-chart-axis-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--stx-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .stx-hbar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .stx-hbar-row__value {
    justify-self: start;
  }
}

/* ── Responsive: collapse sidebar on mobile ──────────────── */
@media (max-width: 992px) {
  .stx-page {
    padding: 1rem;
  }
  .stx-metric-card {
    min-height: 180px;
  }
  h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --stx-sidebar-width: 0px;
  }
  .stx-sidebar {
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }
  .stx-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.25);
  }
  .stx-sidebar-close {
    display: inline-flex;
  }
  .stx-sidebar-brand .d-flex {
    width: 100%;
  }
  .stx-topbar {
    left: 0;
  }
  body.stx-sidebar-open .stx-topbar {
    z-index: 1050;
  }
  .stx-wrapper {
    margin-left: 0;
  }
  .stx-page {
    padding: 1rem;
  }
  .stx-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .stx-page-header-actions {
    width: 100%;
  }
  .stx-page-header-actions .d-flex {
    flex-direction: column;
    width: 100%;
  }
  .stx-page-header-actions .btn {
    width: 100%;
  }
  .stx-pos-layout {
    flex-direction: column;
  }
  .stx-pos-products,
  .stx-pos-cart {
    flex: none;
  }
  .stx-metric-card {
    text-align: center;
  }
  .stx-metric-card > div {
    width: 100%;
  }
}
/* ===================================================
   Orders Page Responsive
=================================================== */

@media (max-width: 991.98px) {
  .stx-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .stx-panel-header > div:last-child {
    width: 100%;
  }

  .stx-panel-header .filter-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .stx-kpi-card {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  /* KPI Cards */
  .stx-kpi-card {
    padding: 1rem;
  }

  .stx-kpi-card__head {
    align-items: center;
  }

  .stx-kpi-value {
    font-size: 1.75rem;
  }

  .stx-kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Header */
  .stx-panel-header {
    padding: 1rem;
  }

  /* Filters */
  .stx-panel-header .d-flex {
    width: 100%;
    gap: 0.5rem !important;
  }

  .filter-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Table */
  .table-responsive {
    border-radius: 0 0 16px 16px;
  }

  .table {
    min-width: 850px;
  }

  .table th,
  .table td {
    white-space: nowrap;
  }

  .table td {
    padding: 0.85rem 0.75rem;
  }

  /* Action button */
  .table .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .stx-page {
    padding: 0.75rem;
  }

  .stx-kpi-card {
    padding: 0.9rem;
  }

  .stx-kpi-label {
    font-size: 0.65rem;
  }

  .stx-kpi-value {
    font-size: 1.5rem;
  }

  .stx-panel-header h3 {
    font-size: 1rem;
  }

  .stx-panel-header p {
    font-size: 0.8rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
}

/* ── System Settings (brand owner) ───────────────────────── */
.stx-topbar-search {
  max-width: 420px;
  position: relative;
}

.stx-topbar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stx-slate);
  z-index: 1;
  pointer-events: none;
}

.stx-topbar-search .form-control {
  padding-left: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--stx-border);
  background: #fff;
  font-size: 0.875rem;
  min-height: 42px;
}

.stx-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stx-settings-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--stx-slate);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.stx-settings-nav__item i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.stx-settings-nav__item:hover:not(.is-disabled):not(.is-active) {
  color: var(--stx-navy);
  background: rgba(37, 99, 235, 0.06);
}

.stx-settings-nav__item.is-active {
  color: var(--stx-blue);
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--stx-blue);
  padding-left: calc(0.75rem - 3px);
  font-weight: 600;
}

.stx-settings-nav__item.active {
  color: var(--stx-blue);
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--stx-blue);
  padding-left: calc(0.75rem - 3px);
  font-weight: 600;
}

.stx-settings-nav__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stx-settings-card {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.stx-settings-card__banner {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
}

.stx-settings-card__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.stx-settings-card__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(15, 23, 42, 0.5) 100%
  );
}

.stx-settings-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1.75rem;
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.stx-settings-card--flat {
  overflow: visible;
}

.stx-settings-card__head--flat {
  margin-top: 0;
  padding: 1.75rem 1.75rem 0;
}

.stx-settings-card__body--flat {
  padding: 1.5rem 1.75rem;
}

.stx-settings-sidebar {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 1rem;
  padding: 0.75rem;
  position: sticky;
  top: calc(var(--stx-topbar-height) + 1rem);
  max-height: calc(100vh - var(--stx-topbar-height) - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.stx-settings-sidebar::-webkit-scrollbar {
  width: 4px;
}
.stx-settings-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.stx-settings-sidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 4px;
}
.stx-settings-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

.stx-settings-nav__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stx-settings-table thead th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  border-bottom-width: 1px;
  padding-bottom: 0.75rem;
}

.stx-settings-table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: var(--stx-border);
}

.stx-settings-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--stx-slate);
}

.stx-settings-empty i {
  font-size: 2rem;
  color: var(--stx-blue);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.75rem;
}

.stx-settings-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stx-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--stx-border);
  border-radius: 0.75rem;
  background: var(--stx-surface);
  cursor: pointer;
  margin: 0;
}

.stx-settings-toggle__title {
  font-weight: 600;
  color: var(--stx-navy);
  font-size: 0.9rem;
}

.stx-settings-toggle__desc {
  font-size: 0.8rem;
  color: var(--stx-slate);
  margin-top: 0.15rem;
}

.stx-settings-config-tile {
  background: var(--stx-surface);
  border: 1px solid var(--stx-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
}

.stx-settings-config-tile__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.35rem;
}

.stx-settings-config-tile__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stx-navy);
}

.stx-settings-config-tile__hint {
  font-size: 0.8rem;
  color: var(--stx-slate);
}

.stx-settings-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--stx-slate);
}

.stx-settings-pill--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--stx-success);
}

.stx-settings-inline-link {
  color: var(--stx-blue);
  text-decoration: none;
  font-weight: 500;
}

.stx-settings-inline-link:hover {
  text-decoration: underline;
}

.stx-settings-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--stx-blue);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.stx-settings-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stx-navy);
  margin-bottom: 0.15rem;
}

.stx-settings-card__subtitle {
  font-size: 0.875rem;
  color: var(--stx-slate);
}

.stx-settings-card__body {
  padding: 1.5rem 1.75rem 0;
}

.stx-settings-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.75rem 1.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--stx-border);
}

.stx-settings-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.4rem;
}

.stx-settings-input {
  border-radius: 0.5rem;
  border-color: var(--stx-border);
  min-height: 44px;
}

.stx-settings-input:focus {
  border-color: var(--stx-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.stx-settings-input-group {
  position: relative;
}

.stx-settings-input-group .stx-settings-input {
  padding-left: 2.5rem;
}

.stx-settings-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stx-slate);
  z-index: 2;
  pointer-events: none;
}

.stx-settings-verify {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--stx-surface);
  border: 1px solid var(--stx-border);
  border-radius: 0.75rem;
}

.stx-settings-verify__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stx-settings-verify__title {
  font-weight: 600;
  color: var(--stx-navy);
  font-size: 0.9rem;
}

.stx-settings-verify__text {
  font-size: 0.8rem;
  color: var(--stx-slate);
}

.stx-settings-verify__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--stx-success);
  flex-shrink: 0;
}

.stx-settings-verify__badge--pending {
  background: rgba(148, 163, 184, 0.2);
  color: var(--stx-slate);
}

.stx-settings-discard {
  color: var(--stx-slate);
  font-weight: 500;
  text-decoration: none;
}

.stx-settings-discard:hover {
  color: var(--stx-navy);
}

.stx-settings-save {
  min-width: 160px;
  min-height: 46px;
  border-radius: 0.5rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .stx-settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .stx-settings-nav__item.is-active {
    border-left: none;
    border-bottom: 3px solid var(--stx-blue);
    padding-left: 0.75rem;
  }
}

/* ── Sidebar brand identity ───────────────────────────── */
.stx-sidebar-brand__logo {
  object-fit: contain;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Settings: brand profile ──────────────────────────── */
.stx-settings-brand-banner {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%);
}

.stx-settings-brand-banner__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(96, 165, 250, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.25), transparent 40%);
}

.stx-settings-brand-banner__bg {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(24px) saturate(1.2);
  transform: scale(1.1);
}

.stx-settings-brand-hero {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 0 1.75rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.stx-settings-brand-logo-slot {
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stx-settings-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}

.stx-settings-logo-upload {
  border: 1.5px dashed var(--stx-border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--stx-surface);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.stx-settings-logo-upload:focus-within {
  border-color: var(--stx-blue);
  background: rgba(37, 99, 235, 0.04);
}

.stx-settings-logo-upload__icon {
  font-size: 1.75rem;
  color: var(--stx-blue);
  display: block;
  margin-bottom: 0.35rem;
}

.stx-settings-logo-upload__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--stx-ink);
}

.stx-settings-logo-upload__hint {
  font-size: 0.75rem;
  color: var(--stx-slate);
}

.stx-settings-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stx-settings-payment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--stx-border);
  border-radius: 0.875rem;
  background: var(--stx-surface);
}

.stx-settings-payment-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Account settings (Profile + Identity Manage) ─────────── */
.stx-account .stx-settings-card {
  overflow: hidden;
}

.stx-account-hero {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.stx-account-hero__text {
  min-width: 0;
  padding-bottom: 0.25rem;
}

.stx-account-avatar-slot,
.stx-account-icon-slot {
  width: 7rem;
  height: 7rem;
  border-radius: 1.25rem;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-account-avatar-slot {
  background: linear-gradient(135deg, var(--stx-navy) 0%, var(--stx-blue) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.stx-account-icon-slot {
  background: #fff;
  color: var(--stx-blue);
  font-size: 2rem;
}

.stx-settings-input-group .form-control:disabled,
.stx-settings-input-group .form-control[readonly] {
  padding-left: 2.5rem;
  background-color: var(--stx-surface);
  opacity: 1;
}

.stx-account-stat {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  height: 100%;
}

.stx-account-stat__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stx-slate);
  margin-bottom: 0.35rem;
}

.stx-account-stat__value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stx-navy);
  line-height: 1.35;
}

.stx-account-provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stx-account-provider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--stx-border);
  border-radius: 0.875rem;
  background: #fff;
}

.stx-account-provider__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--stx-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stx-account-provider__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.stx-account-provider__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--stx-navy);
}

.stx-account-provider__desc {
  font-size: 0.8125rem;
  color: var(--stx-slate);
}

.stx-manage-field-hint {
  font-size: 0.8125rem;
  color: var(--stx-slate);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.stx-manage-block__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stx-navy);
  margin-bottom: 0.75rem;
}

.stx-manage-alert {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .stx-account-hero {
    flex-wrap: wrap;
  }

  .stx-account-avatar-slot,
  .stx-account-icon-slot {
    width: 5rem;
    height: 5rem;
    font-size: 1.25rem;
  }

  .stx-account-icon-slot {
    font-size: 1.5rem;
  }
}

/* ── Welcome portal (full-screen landing) ─────────────────── */
.stx-welcome-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--stx-navy);
}

.stx-welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #131b2e 45%, #0b1220 100%);
}

.stx-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.stx-welcome__header,
.stx-welcome__main,
.stx-welcome__footer {
  position: relative;
  z-index: 1;
}

.stx-welcome__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.stx-welcome__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.stx-welcome__brand img {
  border-radius: 0.5rem;
}

.stx-welcome__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stx-welcome__header-btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
}

.stx-welcome__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 2rem;
}

.stx-welcome__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stx-welcome__footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.stx-welcome__footer a:hover {
  color: #fff;
}

.stx-welcome-hero {
  width: min(100%, 920px);
  margin: 0 auto;
}

.stx-welcome-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stx-welcome-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.stx-welcome-hero__title span {
  color: #93c5fd;
}

.stx-welcome-hero__lead {
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
}

.stx-welcome-portals {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.stx-welcome-portal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.stx-welcome-portal:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.stx-welcome-portal__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stx-welcome-portal__icon--admin {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

.stx-welcome-portal__icon--pos {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

.stx-welcome-portal__icon--store {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
}

.stx-welcome-portal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stx-welcome-portal__title {
  font-weight: 700;
  font-size: 1rem;
}

.stx-welcome-portal__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.58);
}

.stx-welcome-portal__arrow {
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.stx-welcome-portal:hover .stx-welcome-portal__arrow {
  opacity: 1;
  transform: translateX(4px);
}

.stx-welcome-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.stx-welcome-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.stx-welcome-features i {
  color: #4ade80;
}

.stx-welcome-panel {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.stx-welcome-panel__back {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.stx-welcome-panel__back:hover {
  color: #fff;
}

.stx-welcome-panel__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stx-welcome-panel__lead {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.stx-welcome-panel__content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #fff;
}

.stx-welcome-panel__content p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.stx-welcome-panel__icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stx-welcome-panel__icon--error {
  background: rgba(186, 26, 26, 0.2);
  color: #fca5a5;
}

@media (min-width: 768px) {
  .stx-welcome-portals {
    grid-template-columns: repeat(3, 1fr);
  }

  .stx-welcome-portal {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 1.35rem;
  }

  .stx-welcome-portal__arrow {
    margin-top: auto;
    align-self: flex-end;
  }
}
