/* ============================================================
   MenuFlow-DZ — Saturn cinematic design system
   ============================================================ */

:root {
  /* Cinematic gold/yellow palette */
  --void: #0a0705;
  --void-soft: #14100b;
  --void-glass: #1c1611;
  --void-elevated: #221a13;

  --saturn: #f5c344;
  --saturn-bright: #ffd66b;
  --saturn-deep: #c89812;
  --ring: #f3d57c;
  --ember: #fde9b0;

  --text-primary: #f4ebd8;
  --text-secondary: #b8a48a;
  --text-muted: #8d7a64; /* lightened from #6b5a48 — old value failed AA contrast at small sizes */

  --border-subtle: color-mix(in srgb, var(--ring) 12%, transparent);
  --border-strong: color-mix(in srgb, var(--ring) 22%, transparent);

  /* Status colors */
  --status-new: #e89270;
  --status-preparing: #d4a574;
  --status-ready: #8eb968;
  --status-paid: #6b5a48;
  --status-cancelled: #a85a3f;

  /* Per-tenant overrides (set via inline style on body) */
  --primary: var(--saturn);
  --bg: var(--void);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-tap-highlight-color: transparent; }

body {
  /* Tajawal carries the Arabic glyphs (Inter has none) — without it Arabic
     fell through to the OS default and ignored the downloaded webfont. */
  font-family: 'Inter', 'Tajawal', 'SF Pro Display', ui-sans-serif, system-ui, sans-serif;
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Atmospheric backdrop — painted once, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, color-mix(in srgb, var(--saturn) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 100%, color-mix(in srgb, var(--ring) 8%, transparent), transparent 55%);
}

/* Cinematic vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}

body > * { position: relative; z-index: 2; }

/* Typography */
.font-display {
  font-family: 'Fraunces', 'Instrument Serif', ui-serif, Georgia, serif;
  font-feature-settings: "ss01";
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 50%, var(--ring) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: var(--saturn-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ember); }

/* ============================================================
   TOP NAVIGATION (solid bar — no backdrop blur for perf)
   ============================================================ */

.topbar {
  background: linear-gradient(180deg, rgba(20, 16, 11, 0.96), rgba(20, 16, 11, 0.88));
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transform: translateZ(0);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 72px;
  gap: 32px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 50%, var(--ring) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s;
}
.nav-links a:hover {
  background: color-mix(in srgb, var(--ring) 8%, transparent);
  color: var(--text-primary);
}
.nav-links a.active {
  background: color-mix(in srgb, var(--saturn) 15%, transparent);
  color: var(--saturn-bright);
  border: 1px solid color-mix(in srgb, var(--saturn) 30%, transparent);
}

/* ============================================================
   OPS LAYOUT — content left, sidebar on right (RTL)
   ============================================================ */

.ops-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 36px 60px;
}
.ops-layout table { font-size: 15px; }
.ops-layout table th, .ops-layout table td { padding: 16px 18px; }
.ops-layout .card { padding: 28px 32px; }

.ops-content { min-width: 0; }

.ops-header {
  margin-bottom: 22px;
}
.ops-header h1 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.ops-header .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.ops-header .total-line {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}
.ops-header .total-line strong {
  color: var(--ember);
  font-family: 'Fraunces', serif;
  font-size: 16px;
  margin-right: 6px;
}

/* Sidebar */
.ops-sidebar {
  background: var(--void-soft);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 24px 0;
  height: fit-content;
  position: sticky;
  top: 92px;
}
.ops-sidebar-head { padding: 0 22px 22px; }
.ops-sidebar-head .titles .main { font-size: 18px; }
.ops-nav { padding: 0 12px; }
.ops-nav a { padding: 13px 16px; font-size: 15px; gap: 14px; }
.ops-nav .icon { width: 20px; height: 20px; }
.ops-sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.ops-sidebar-head .badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--saturn);
  color: var(--void);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Fraunces', serif;
  box-shadow: 0 0 14px color-mix(in srgb, var(--saturn) 35%, transparent);
}
.ops-sidebar-head .titles {
  flex: 1;
}
.ops-sidebar-head .titles .main {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ember);
  font-size: 16px;
  font-weight: 500;
}
.ops-sidebar-head .titles .sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.ops-nav {
  list-style: none;
  padding: 0 10px;
  margin: 0;
}
.ops-nav li { margin: 0; }
.ops-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.ops-nav a:hover {
  background: color-mix(in srgb, var(--ring) 6%, transparent);
  color: var(--ember);
}
.ops-nav a.active {
  background: var(--saturn);
  color: var(--void);
  box-shadow: 0 0 16px color-mix(in srgb, var(--saturn) 35%, transparent);
}
.ops-nav a.active .icon { color: var(--void); }
.ops-nav .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--saturn);
}

.ops-sidebar-foot {
  padding: 14px 20px 4px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}
.ops-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 6px;
}
.ops-sidebar-foot a:hover { color: var(--saturn-bright); }

@media (max-width: 900px) {
  .ops-layout { grid-template-columns: 1fr; padding: 22px 18px 60px; }
  .ops-sidebar { position: static; order: -1; }
}

/* ============================================================
   CONTAINER + HEADERS
   ============================================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.page-header {
  margin-bottom: 44px;
}
h1.page-title {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--text-primary);
}
h1.page-title em {
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 50%, var(--ring) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ============================================================
   STATS CARDS
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.stat {
  position: relative;
  background: linear-gradient(135deg, var(--void-soft) 0%, var(--void-glass) 100%);
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saturn), transparent);
  opacity: 0.7;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--void-soft);
  padding: 32px 36px;
  border-radius: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--border-subtle);
}
.card h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  font-size: 28px;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.card h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--saturn);
  color: var(--void);
  box-shadow: 0 0 24px color-mix(in srgb, var(--saturn) 35%, transparent);
}
.btn-primary:hover {
  background: var(--saturn-bright);
  box-shadow: 0 0 32px color-mix(in srgb, var(--saturn) 55%, transparent);
  transform: translateY(-1px);
}
.btn-secondary {
  background: color-mix(in srgb, var(--ring) 8%, transparent);
  color: var(--ember);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--ring) 14%, transparent);
  border-color: var(--saturn);
}
.btn-success {
  background: linear-gradient(135deg, #8eb968 0%, #6b9b4a 100%);
  color: var(--void);
  box-shadow: 0 0 20px rgba(142, 185, 104, 0.3);
}
.btn-success:hover {
  box-shadow: 0 0 30px rgba(142, 185, 104, 0.5);
  transform: translateY(-1px);
}
.btn-success:active { transform: translateY(0); }
.btn-warning {
  background: linear-gradient(135deg, var(--ring) 0%, var(--saturn) 100%);
  color: var(--void);
  box-shadow: 0 0 20px color-mix(in srgb, var(--ring) 30%, transparent);
}
.btn-warning:hover {
  box-shadow: 0 0 30px color-mix(in srgb, var(--ring) 50%, transparent);
  transform: translateY(-1px);
}
.btn-warning:active { transform: translateY(0); }
.btn-danger {
  background: linear-gradient(135deg, #c85a4a 0%, #a85a3f 100%);
  color: var(--text-primary);
}
.btn-danger:hover {
  box-shadow: 0 0 24px rgba(200, 90, 74, 0.45);
  transform: translateY(-1px);
}
.btn-danger:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Horizontal-scroll wrapper for wide management tables on phones —
   body{overflow-x:hidden} otherwise clips action buttons unreachably. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Owner menu table: keep the dish name readable and let the action buttons
   wrap into rows instead of one endless nowrap line that crushes every other
   column (the FR/LTR layout collapsed the name to one word per line). */
.menu-item-name-cell { min-width: 230px; }
.menu-actions-cell { min-width: 290px; }
.menu-actions-cell .btn { margin: 3px 2px; }

/* Owner menu-manager layout (was an inline 360px+1fr grid that crushed phones) */
.menu-manage-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
/* min-width:auto would let a wide table inflate the column past the viewport */
.menu-manage-layout > div { min-width: 0; }
@media (max-width: 900px) {
  .menu-manage-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--void);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saturn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--saturn) 15%, transparent);
}
.form-group input::placeholder { color: var(--text-muted); }

/* ============================================================
   TABLES
   ============================================================ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--void);
  border: 1px solid var(--border-subtle);
}
th {
  background: var(--void-soft);
  color: var(--ember);
  padding: 14px 18px;
  /* `start` follows the page direction — right in Arabic, left in French.
     The old hardcoded `right` left FR headers floating away from their columns. */
  text-align: start;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ring) 6%, transparent);
  font-size: 14px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: color-mix(in srgb, var(--ring) 3%, transparent); }

/* ============================================================
   ORDER CARDS
   ============================================================ */

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.order-card {
  background: var(--void-soft);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--text-muted);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.order-card:hover { transform: translateY(-2px); }
.order-card.status-new { border-right-color: var(--status-new); }
.order-card.status-preparing { border-right-color: var(--status-preparing); }
.order-card.status-ready { border-right-color: var(--status-ready); }
.order-card.status-paid { border-right-color: var(--status-paid); }
.order-card.status-cancelled { border-right-color: var(--status-cancelled); }

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.order-id {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ember);
  font-size: 22px;
  font-weight: 500;
}
/* Table number = the #1 thing staff scan for — big, solid gold, impossible to miss */
.order-table {
  display: inline-block;
  background: linear-gradient(135deg, var(--saturn-bright), var(--saturn-deep));
  color: var(--void);
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-inline-start: 10px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--saturn) 45%, transparent),
              inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
}
.order-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.order-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ring) 6%, transparent);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
.order-card ul li:last-child { border-bottom: none; }
.qty {
  background: color-mix(in srgb, var(--saturn) 18%, transparent);
  color: var(--ember);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-weight: 700;
  font-family: 'Fraunces', serif;
  color: var(--ember);
  font-size: 18px;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-actions .btn { flex: 1; min-width: 0; }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-new {
  background: rgba(255, 214, 107, 0.15);
  color: var(--status-new);
  border: 1px solid rgba(255, 214, 107, 0.35);
}
.badge-preparing {
  background: color-mix(in srgb, var(--ring) 15%, transparent);
  color: var(--status-preparing);
  border: 1px solid color-mix(in srgb, var(--ring) 35%, transparent);
}
.badge-ready {
  background: rgba(142, 185, 104, 0.15);
  color: var(--status-ready);
  border: 1px solid rgba(142, 185, 104, 0.35);
}
.badge-paid {
  background: rgba(107, 90, 72, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(107, 90, 72, 0.4);
}
.badge-cancelled {
  background: rgba(200, 152, 18, 0.15);
  color: var(--status-cancelled);
  border: 1px solid rgba(200, 152, 18, 0.35);
}

/* ============================================================
   CUSTOMER MENU
   ============================================================ */

.menu-hero {
  position: relative;
  background: linear-gradient(180deg, var(--void-soft) 0%, var(--void) 100%);
  padding: 56px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.menu-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse 60% 40% at center, color-mix(in srgb, var(--saturn) 15%, transparent), transparent 60%);
  pointer-events: none;
}
.menu-hero h1 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 50%, var(--ring) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -1px;
}
.menu-hero p {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--void-soft);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}
.category-tabs button:hover { color: var(--ember); border-color: var(--border-strong); }
.category-tabs button.active {
  background: var(--saturn);
  color: var(--void);
  border-color: var(--saturn);
  box-shadow: 0 0 20px color-mix(in srgb, var(--saturn) 40%, transparent);
}

.menu-section { padding: 28px 24px; max-width: 720px; margin: 0 auto; }
.menu-section h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  font-size: 32px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.menu-item {
  background: var(--void-soft);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.2s;
}
.menu-item:hover {
  border-color: var(--border-strong);
}
.menu-item .item-info { flex: 1; }
.menu-item h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 19px;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.menu-item .description {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.menu-item .price {
  color: var(--ember);
  font-weight: 600;
  font-size: 17px;
  font-family: 'Fraunces', serif;
  font-variant-numeric: tabular-nums;
}
.menu-item .qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-item .qty-controls button {
  background: var(--saturn);
  color: var(--void);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 14px color-mix(in srgb, var(--saturn) 30%, transparent);
}
.menu-item .qty-controls button:hover {
  background: var(--saturn-bright);
  transform: scale(1.05);
}
.menu-item .qty-controls span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--ember);
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   CART BAR
   ============================================================ */

.cart-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--saturn) 0%, var(--saturn-deep) 100%);
  color: var(--void);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 32px color-mix(in srgb, var(--saturn) 40%, transparent);
}
.cart-bar.hidden { display: none; }
.cart-info {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.cart-info small {
  display: block;
  opacity: 0.8;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}
.cart-bar button {
  background: var(--void);
  color: var(--ember);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.cart-bar button:hover { transform: scale(1.04); }

/* ============================================================
   ORDER STATUS (customer)
   ============================================================ */

.status-tracker {
  text-align: center;
  padding: 60px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.big-icon {
  font-size: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--saturn) 40%, transparent));
}
.status-tracker h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.status-tracker p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}
/* (Old .status-step rules removed — page-specific styles live in
   templates/customer/order_status.html to avoid background/shadow conflicts) */

/* ============================================================
   TABLES (QR)
   ============================================================ */

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.table-card {
  background: var(--void-soft);
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
}
.table-card:hover { border-color: var(--border-strong); }
.table-card h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ember);
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 500;
}
.table-card img {
  width: 180px;
  height: 180px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
}
.qr-url {
  color: var(--text-muted);
  font-size: 10px;
  word-break: break-all;
  direction: ltr;
  margin-bottom: 10px;
  font-family: 'Consolas', monospace;
}

/* ============================================================
   ERROR / SUCCESS messages
   ============================================================ */

.error {
  background: rgba(200, 152, 18, 0.15);
  color: var(--saturn-bright);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-right: 3px solid var(--saturn-deep);
  font-size: 14px;
}
.success {
  background: rgba(142, 185, 104, 0.12);
  color: #a8d488;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-right: 3px solid #8eb968;
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  color: var(--text-muted);
  padding: 36px 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.footer strong {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--saturn), var(--saturn-deep));
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--saturn-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .topbar-inner { padding: 0 18px; height: 64px; gap: 16px; }
  .brand { font-size: 22px; }
  .container { padding: 28px 18px 60px; }
  h1.page-title { font-size: 36px; letter-spacing: -1px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px; }
  .stat .num { font-size: 32px; }
  .card { padding: 24px 22px; }
  .card h2 { font-size: 22px; }
  .orders-grid { grid-template-columns: 1fr; }
  .menu-hero h1 { font-size: 32px; }
  .menu-section h2 { font-size: 26px; }
  table { font-size: 12px; }
  th, td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Kitchen-note display on order cards & details */
.order-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: color-mix(in srgb, var(--saturn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--saturn) 25%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--text-primary, #fff);
  line-height: 1.5;
}
.order-note svg {
  flex-shrink: 0;
  color: var(--saturn, #f5c344);
  margin-top: 2px;
}
.order-note strong {
  color: var(--saturn, #f5c344);
  font-weight: 600;
  margin-left: 4px;
  margin-right: 4px;
}
.detail-note {
  background: color-mix(in srgb, var(--saturn) 8%, transparent);
  border-right: 3px solid var(--saturn, #f5c344);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
}

/* ============================================================
   ORDER STATUS HIERARCHY + ANIMATIONS
   ============================================================ */

.order-section {
  margin-bottom: 32px;
}
.order-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 0 4px;
}
.order-section-head h3 {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 20px; color: var(--text-primary); letter-spacing: -0.2px;
}
.order-section-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 9px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  font-family: 'Fraunces', serif;
}
.order-section-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* Section variants */
.section-new .order-section-dot {
  background: #ff8a76; box-shadow: 0 0 12px rgba(255, 138, 118, 0.8);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.section-new .order-section-count {
  background: rgba(255, 138, 118, 0.15); color: #ff8a76;
}
.section-preparing .order-section-dot {
  background: var(--saturn);
  box-shadow: 0 0 12px color-mix(in srgb, var(--saturn) 60%, transparent);
}
.section-preparing .order-section-count {
  background: color-mix(in srgb, var(--saturn) 15%, transparent); color: var(--saturn);
}
.section-ready .order-section-dot {
  background: #8eb968;
  box-shadow: 0 0 14px rgba(142, 185, 104, 0.8);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.section-ready .order-section-count {
  background: rgba(142, 185, 104, 0.18); color: #8eb968;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Order card variants — visual hierarchy */
.order-card.status-new {
  border: 1px solid rgba(255, 138, 118, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 138, 118, 0.15),
              0 8px 24px rgba(255, 138, 118, 0.12);
  animation: glow-new 3.4s ease-in-out infinite;
}
.order-card.status-preparing {
  border: 1px solid color-mix(in srgb, var(--saturn) 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--saturn) 10%, transparent);
}
.order-card.status-ready {
  border: 1px solid rgba(142, 185, 104, 0.5);
  box-shadow: 0 0 0 1px rgba(142, 185, 104, 0.2),
              0 8px 24px rgba(142, 185, 104, 0.18);
  animation: glow-ready 3.4s ease-in-out infinite;
}
.order-card.status-paid, .order-card.status-cancelled {
  opacity: 0.65;
  filter: grayscale(0.4);
}

@keyframes glow-new {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 138, 118, 0.15), 0 8px 24px rgba(255, 138, 118, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(255, 138, 118, 0.35), 0 12px 32px rgba(255, 138, 118, 0.25); }
}
@keyframes glow-ready {
  0%, 100% { box-shadow: 0 0 0 1px rgba(142, 185, 104, 0.2), 0 8px 24px rgba(142, 185, 104, 0.18); }
  50% { box-shadow: 0 0 0 1px rgba(142, 185, 104, 0.45), 0 12px 32px rgba(142, 185, 104, 0.32); }
}

/* Card enter/exit animations */
.order-card {
  transition: opacity 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.4s;
}
.order-card.is-leaving {
  opacity: 0; transform: scale(0.92); pointer-events: none;
}
.order-card.is-entering {
  animation: card-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--void-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.skeleton-line { height: 12px; }
.skeleton-line.lg { height: 18px; width: 60%; }
.skeleton-line.md { height: 14px; width: 80%; }
.skeleton-line.sm { height: 10px; width: 40%; }

/* ============================================================
   STATS CARDS — Enhanced with sparkline + comparison
   ============================================================ */
.stat-card {
  position: relative;
  background: linear-gradient(160deg, var(--void-glass) 0%, var(--void-soft) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stat-card-glow {
  position: absolute; pointer-events: none;
  width: 200px; height: 200px;
  border-radius: 50%; filter: blur(60px);
  opacity: 0.12;
  background: radial-gradient(circle, var(--saturn), transparent 70%);
}
.stat-card-glow.tl { top: -80px; left: -60px; }
.stat-card-glow.br { bottom: -80px; right: -60px; }
.stat-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.stat-card-label { color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px; }
.stat-card-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--saturn), var(--saturn-deep));
  color: var(--void);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--saturn) 30%, transparent);
}
.stat-card-value {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 42px; line-height: 1; color: var(--ember);
  letter-spacing: -1px;
  position: relative; z-index: 1;
}
.stat-card-value small { font-size: 16px; opacity: 0.7; }
.stat-card-trend {
  margin-top: 12px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; position: relative; z-index: 1;
}
.stat-trend-up { color: #8eb968; }
.stat-trend-down { color: #e89270; }
.stat-trend-flat { color: var(--text-muted); }
.stat-card-sparkline {
  margin-top: 14px; height: 36px;
  position: relative; z-index: 1;
}
.stat-card-sparkline svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   IMPROVED EMPTY STATES
   ============================================================ */
.empty-card {
  background: var(--void-glass);
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  padding: 60px 28px; text-align: center;
}
.empty-card .empty-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--saturn) 12%, transparent), color-mix(in srgb, var(--saturn) 2%, transparent));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--saturn);
}
.empty-card .empty-title {
  font-family: 'Fraunces', serif; font-style: italic;
  font-weight: 500; font-size: 22px;
  color: var(--text-primary); margin-bottom: 6px;
}
.empty-card .empty-desc {
  color: var(--text-secondary); font-size: 14px;
  margin-bottom: 18px; max-width: 340px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}
.empty-card .empty-cta {
  display: inline-block;
  padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--saturn), var(--saturn-deep));
  color: var(--void); font-weight: 600; font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--saturn) 30%, transparent);
  transition: transform 0.15s;
}
.empty-card .empty-cta:hover { transform: translateY(-1px); }

/* ============================================================
   LOGIN SCREENS (shared by owner, server, admin)
   ============================================================ */
.login-stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
}
.login-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  /* mix-blend-mode removed: blending over the animated orbs forced CPU repaints
     that occasionally surfaced as a flicker. Low opacity reads the same. */
}
/* Pinned to a permanent GPU layer (translateZ base + translate3d in the keyframe
   + backface-visibility), no `will-change` — stops the promote/demote churn that
   made these blurred orbs rarely blink on/off. */
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: login-orb-float 10s ease-in-out infinite;
}
.login-orb-1 {
  top: -100px; right: -120px; width: 400px; height: 400px;
  background: radial-gradient(circle, var(--saturn) 0%, transparent 70%);
  opacity: 0.42;
}
.login-orb-2 {
  bottom: -120px; left: -100px; width: 380px; height: 380px;
  background: radial-gradient(circle, var(--ring) 0%, transparent 70%);
  opacity: 0.3; animation-delay: -5s;
}
@keyframes login-orb-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-20px,0) scale(1.05); }
}

.login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 440px;
  background: linear-gradient(170deg, rgba(28, 22, 17, 0.85) 0%, rgba(20, 16, 11, 0.95) 100%);
  border: 1px solid color-mix(in srgb, var(--saturn) 18%, transparent);
  border-radius: 26px;
  padding: 44px 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    0 0 0 1px color-mix(in srgb, var(--saturn) 4%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: login-card-rise 0.5s ease;
}
@keyframes login-card-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand { text-align: center; margin-bottom: 32px; }
.login-monogram {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--saturn) 50%, var(--saturn-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 36px; color: var(--void);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--saturn) 35%, transparent),
    inset 0 -2px 8px rgba(0,0,0,0.15);
}
.login-resto-name {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 30px; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--ember), var(--saturn));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
  line-height: 1.1;
}
.login-subtitle {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px;
}
.login-subtitle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--saturn); box-shadow: 0 0 8px var(--saturn);
  animation: login-dot-pulse 2s ease-in-out infinite;
}
@keyframes login-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-label {
  display: block; color: var(--text-secondary); font-size: 13px;
  margin-bottom: 4px;
}
.login-pin {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--text-primary);
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 500;
  text-align: center; letter-spacing: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.login-pin:focus {
  outline: none; border-color: var(--saturn);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--saturn) 15%, transparent);
}
.login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--ring) 0%, var(--saturn) 50%, var(--saturn-deep) 100%);
  color: var(--void); border: 0; border-radius: 16px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--saturn) 35%, transparent);
  transition: transform 0.15s, box-shadow 0.2s;
  width: 100%;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--saturn) 45%, transparent);
}
.login-btn:active { transform: translateY(0); }

.login-error {
  background: rgba(255, 120, 100, 0.1);
  border: 1px solid rgba(255, 120, 100, 0.3);
  color: #ff8a76;
  padding: 12px 16px; border-radius: 12px;
  margin-bottom: 16px; text-align: center; font-size: 14px;
}

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 18px;
  color: var(--text-muted); font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-subtle);
}

.login-alt-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.login-alt-link:hover {
  border-color: var(--saturn);
  color: var(--saturn);
  background: color-mix(in srgb, var(--saturn) 5%, transparent);
}

.login-lang { text-align: center; margin-top: 22px; }
.login-lang a {
  color: var(--text-muted); font-size: 12px;
  text-decoration: none; padding: 6px 12px;
  border: 1px solid transparent; border-radius: 999px;
}
.login-lang a:hover {
  color: var(--saturn); border-color: var(--border-subtle);
}

/* ============================================================
   LOW-STOCK ALERT BANNER
   ============================================================ */
.lowstock-banner {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  padding: 14px 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 138, 118, 0.15), rgba(255, 138, 118, 0.04));
  border: 1px solid rgba(255, 138, 118, 0.45);
  box-shadow: 0 6px 20px rgba(255, 138, 118, 0.12);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.2s;
}
.lowstock-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 138, 118, 0.22);
}
.lowstock-banner-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 138, 118, 0.25);
  color: #ff8a76; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  animation: lowstock-pulse 1.8s ease-in-out infinite;
}
@keyframes lowstock-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.lowstock-banner-text { flex: 1; font-size: 14px; }
.lowstock-banner-text strong {
  font-family: 'Fraunces', serif; font-size: 18px;
  color: #ff8a76; margin-inline-end: 6px;
}
.lowstock-banner-arrow { color: #ff8a76; opacity: 0.7; }
[dir="rtl"] .lowstock-banner-arrow { transform: scaleX(-1); }

/* Sidebar inventory link badge when low stock exists */
.ops-nav .lowstock-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px;
  border-radius: 999px;
  background: #ff8a76; color: #fff;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 11px;
  vertical-align: middle;
}
