/* ==========================================================================
   Now Shipping — "The new era of now" design system
   Tokens + base components shared by the business dashboard, the public
   website and the auth pages. Logical properties keep LTR and RTL in sync.
   ========================================================================== */

@import url('/assets/now-era/ne-datepicker.css');
:root {
  --ne-bg: #F5F3EF;
  --ne-surface: #FFFFFF;
  --ne-surface-2: #FBFAF7;
  --ne-subtle: #F8F6F2;
  --ne-chip: #F0ECE5;
  --ne-seg: #EAE6DF;
  --ne-line: #E8E4DC;
  --ne-line-2: #EFEBE4;
  --ne-line-3: #E3DED5;
  --ne-dash: #DDD7CC;

  --ne-ink: #17140F;
  --ne-ink-2: #3D3832;
  --ne-muted: #6B655C;
  --ne-faint: #857E73;

  --ne-dark-2: #221F1A;
  --ne-dark-3: #2A2620;
  --ne-dark-4: #2E2A24;
  --ne-dark-line: #38332C;
  --ne-dark-muted: #B9B2A6;
  --ne-dark-text: #D9D3C8;

  --ne-accent: #F29620;
  --ne-accent-ink: #9A4407;
  --ne-accent-deep: #6E3105;
  --ne-accent-tint: #FFF1E0;
  --ne-accent-soft: color-mix(in srgb, var(--ne-accent) 14%, #FFFFFF);

  --ne-green: #1F8A4E;
  --ne-green-ink: #17703F;
  --ne-green-tint: #E6F4EC;
  --ne-green-bright: #5CC98F;
  --ne-red: #B42318;
  --ne-red-tint: #FDECEC;
  --ne-purple: #6A3CC0;
  --ne-purple-ink: #5A2FAE;
  --ne-purple-tint: #F0EAFB;
  --ne-purple-bright: #A58BFF;
  --ne-blue: #2453B3;
  --ne-blue-ink: #1D428F;
  --ne-blue-tint: #E7EEFB;

  --ne-font: 'Inter', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ne-font-display: 'Space Grotesk', 'Readex Pro', 'Inter', sans-serif;
  --ne-font-num: 'Space Grotesk', 'Inter', sans-serif;
  --ne-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ne-r-xs: 8px;
  --ne-r-sm: 12px;
  --ne-r-md: 16px;
  --ne-r-lg: 20px;
  --ne-r-xl: 24px;
  --ne-r-2xl: 28px;
  --ne-pill: 999px;

  --ne-shadow-seg: 0 1px 2px rgba(23, 20, 15, 0.08), 0 4px 12px -6px rgba(23, 20, 15, 0.18);
  --ne-shadow-pop: 0 24px 48px -20px rgba(23, 20, 15, 0.35);
  --ne-shadow-lift: 0 14px 28px -18px rgba(23, 20, 15, 0.4);
  --ne-shadow-float: 0 40px 80px -40px rgba(23, 20, 15, 0.45);
  --ne-focus: 0 0 0 4px rgba(242, 150, 32, 0.22);

  --ne-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[dir="rtl"] {
  --ne-font: 'Readex Pro', 'Inter', system-ui, sans-serif;
  --ne-font-display: 'Space Grotesk', 'Readex Pro', sans-serif;
}

/* Make the Bootstrap/Velzon theme use the new type everywhere (it forces Cairo in RTL). */
html:has(body.ne-body) {
  --vz-font-sans-serif: var(--ne-font);
  --vz-body-font-family: var(--ne-font);
  --vz-headings-font-family: var(--ne-font);
  --bs-font-sans-serif: var(--ne-font);
  --bs-body-font-family: var(--ne-font);
}
body.ne-body,
body.ne-body h1, body.ne-body h2, body.ne-body h3, body.ne-body h4, body.ne-body h5, body.ne-body h6,
body.ne-body button, body.ne-body input, body.ne-body select, body.ne-body textarea,
body.ne-body .btn, body.ne-body .form-control, body.ne-body .form-select, body.ne-body .dropdown-menu,
body.ne-body .modal, body.ne-body .table, body.ne-body .swal2-popup, body.ne-body .swal2-styled {
  font-family: var(--ne-font);
}
html[dir="rtl"] body.ne-body { letter-spacing: 0; }
/* Western digits in both languages, like the approved designs. */
html[dir="rtl"] body.ne-body .ne-num,
html[dir="rtl"] body.ne-body .ne-kpi__value,
html[dir="rtl"] body.ne-body .ne-hero__big,
html[dir="rtl"] body.ne-body .ne-hero__stat-num { font-family: var(--ne-font-num); }

/* ---------- Base ---------- */
.ne-root,
body.ne-body {
  background: var(--ne-bg);
  color: var(--ne-ink);
  font-family: var(--ne-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.ne-body { margin: 0; }
.ne-root *,
body.ne-body * { box-sizing: border-box; }
.ne-root a,
body.ne-body a { color: inherit; }
.ne-root :focus-visible,
body.ne-body :focus-visible { outline: none; box-shadow: var(--ne-focus); border-radius: 10px; }

.ne-mono { font-family: var(--ne-font-mono); letter-spacing: -0.01em; }
.ne-num { font-family: var(--ne-font-num); font-variant-numeric: tabular-nums; }
.ne-ltr { direction: ltr; unicode-bidi: isolate; }
.ne-muted { color: var(--ne-muted); }
.ne-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[dir="rtl"] .ne-flip { transform: scaleX(-1); }

/* ---------- Typography ---------- */
.ne-h1 {
  margin: 0;
  font-family: var(--ne-font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ne-ink);
}
html[dir="rtl"] .ne-h1 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.ne-h1 .ne-h1__soft { color: var(--ne-muted); font-weight: 500; }
.ne-h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ne-ink); }
.ne-overline {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[dir="rtl"] .ne-overline { letter-spacing: 0; text-transform: none; font-size: 13px; }
.ne-sub { margin: 0; font-size: 13px; font-weight: 500; color: var(--ne-muted); }

/* ---------- Page scaffolding ---------- */
.ne-page { display: flex; flex-direction: column; gap: 20px; max-width: 1180px; margin: 0 auto; width: 100%; }
.ne-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ne-page-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ne-page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ne-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ne-col-2 { flex: 2 1 520px; min-width: 0; }
.ne-col-1 { flex: 1 1 300px; min-width: 0; }
.ne-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

/* ---------- Cards ---------- */
.ne-card {
  background: var(--ne-surface);
  border: 1px solid var(--ne-line);
  border-radius: 22px;
  padding: 20px 22px;
}
.ne-card--flush { padding: 0; overflow: hidden; }
.ne-card--soft { background: var(--ne-subtle); border-color: transparent; }
.ne-card--dashed { background: var(--ne-subtle); border: 1px dashed var(--ne-dash); }
.ne-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ne-hero {
  position: relative;
  overflow: hidden;
  background: var(--ne-ink);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
}
.ne-hero .ne-overline { color: var(--ne-dark-muted); }
.ne-hero__big {
  margin: 0;
  font-family: var(--ne-font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ne-hero__stat-num { margin: 0; font-family: var(--ne-font-display); font-size: 26px; font-weight: 600; line-height: 1; }
.ne-hero__stat-label { margin: 6px 0 0; font-size: 12px; color: var(--ne-dark-muted); }
.ne-hero__ring {
  position: absolute;
  inset-inline-end: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid var(--ne-accent);
  opacity: 0.12;
  pointer-events: none;
}

.ne-lift { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ne-lift:hover { transform: translateY(-2px); box-shadow: var(--ne-shadow-lift); }

/* KPI tile */
.ne-kpi {
  background: var(--ne-surface);
  border: 1px solid var(--ne-line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ne-kpi__top { display: flex; justify-content: space-between; align-items: center; }
.ne-kpi__value { margin: 0; font-family: var(--ne-font-display); font-size: 30px; font-weight: 600; line-height: 1; }
.ne-kpi__unit { font-size: 14px; font-weight: 500; color: var(--ne-muted); }
.ne-kpi__label { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.ne-kpi__hint { margin: 2px 0 0; font-size: 12px; color: var(--ne-muted); }

/* Icon chip */
.ne-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--ne-chip);
  color: var(--ne-ink);
}
.ne-ico--lg { width: 44px; height: 44px; border-radius: 14px; font-size: 21px; }
.ne-ico--accent { background: var(--ne-accent-soft); color: var(--ne-accent-ink); }
.ne-ico--orange { background: var(--ne-accent-tint); color: var(--ne-accent-ink); }
.ne-ico--green { background: var(--ne-green-tint); color: var(--ne-green-ink); }
.ne-ico--red { background: var(--ne-red-tint); color: var(--ne-red); }
.ne-ico--purple { background: var(--ne-purple-tint); color: var(--ne-purple); }
.ne-ico--blue { background: var(--ne-blue-tint); color: var(--ne-blue); }
.ne-ico--dark { background: var(--ne-dark-3); color: var(--ne-accent); }

/* ---------- Buttons ---------- */
.ne-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--ne-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ne-btn i { font-size: 18px; line-height: 1; }
.ne-btn:disabled, .ne-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.ne-btn--primary { background: var(--ne-ink); color: #FFFFFF !important; }
.ne-btn--primary:hover { background: #2A2620; }
.ne-btn--accent { background: var(--ne-accent); color: var(--ne-ink) !important; font-weight: 700; }
.ne-btn--accent:hover { background: #E68A12; }
.ne-btn--ghost { background: var(--ne-surface); border-color: var(--ne-line); color: var(--ne-ink) !important; }
.ne-btn--ghost:hover { background: var(--ne-chip); }
.ne-btn--dark-ghost { background: transparent; border-color: var(--ne-dark-line); color: #F5F3EF !important; }
.ne-btn--dark-ghost:hover { background: var(--ne-dark-3); }
.ne-btn--danger { background: var(--ne-surface); border-color: #E7B4AE; color: var(--ne-red) !important; }
.ne-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ne-btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }
.ne-btn--block { width: 100%; }
.ne-btn__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ne-accent);
  color: var(--ne-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  margin-inline-start: -7px;
}
.ne-btn--primary.ne-btn--with-dot { padding-inline-start: 11px; }
.ne-kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--ne-line);
  background: var(--ne-surface-2);
  font-family: var(--ne-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ne-ink-2);
}
.ne-btn--primary .ne-kbd { background: var(--ne-dark-3); border-color: var(--ne-dark-3); color: var(--ne-dark-text); }

.ne-icon-btn {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--ne-line);
  background: var(--ne-surface);
  color: var(--ne-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}
.ne-icon-btn:hover { background: var(--ne-chip); }
.ne-icon-btn--square { border-radius: 12px; }

.ne-link { font-weight: 600; color: var(--ne-ink-2) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px; }
.ne-link:hover { color: var(--ne-ink) !important; }

/* ---------- Chips, segmented controls, pills ---------- */
.ne-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ne-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--ne-pill);
  border: 1px solid var(--ne-line);
  background: var(--ne-surface);
  color: var(--ne-ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.ne-chip:hover { background: var(--ne-chip); }
.ne-chip.is-active,
.ne-chip[aria-pressed="true"],
.ne-chip[aria-selected="true"] {
  background: var(--ne-ink);
  border-color: var(--ne-ink);
  color: #FFFFFF;
  font-weight: 600;
}
.ne-chip__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--ne-chip);
  color: var(--ne-ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: -8px;
}
.ne-chip.is-active .ne-chip__count,
.ne-chip[aria-pressed="true"] .ne-chip__count,
.ne-chip[aria-selected="true"] .ne-chip__count { background: var(--ne-accent); }

.ne-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--ne-seg);
}
.ne-seg > button,
.ne-seg > a,
.ne-seg > label {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ne-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ne-seg > .is-active,
.ne-seg > [aria-pressed="true"],
.ne-seg > [aria-selected="true"] {
  background: #FFFFFF;
  box-shadow: var(--ne-shadow-seg);
}
.ne-seg--dark { background: var(--ne-dark-3); }
.ne-seg--dark > button { color: var(--ne-dark-text); }
.ne-seg--dark > .is-active, .ne-seg--dark > [aria-pressed="true"] { background: var(--ne-accent); color: var(--ne-ink); }

.ne-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--ne-pill);
  background: var(--ne-chip);
  color: var(--ne-ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.ne-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ne-pill--orange { background: var(--ne-accent-tint); color: var(--ne-accent-ink); }
.ne-pill--orange .ne-pill__dot { background: var(--ne-accent); }
.ne-pill--green { background: var(--ne-green-tint); color: var(--ne-green-ink); }
.ne-pill--green .ne-pill__dot { background: var(--ne-green); }
.ne-pill--red { background: var(--ne-red-tint); color: var(--ne-red); }
.ne-pill--purple { background: var(--ne-purple-tint); color: var(--ne-purple-ink); }
.ne-pill--purple .ne-pill__dot { background: var(--ne-purple); }
.ne-pill--blue { background: var(--ne-blue-tint); color: var(--ne-blue-ink); }
.ne-pill--blue .ne-pill__dot { background: var(--ne-blue); }
.ne-pill--ink { background: var(--ne-ink); color: #FFFFFF; }
.ne-pill--sq { border-radius: 8px; }

.ne-badge-up { background: var(--ne-green-tint); color: var(--ne-green-ink); height: 24px; padding: 0 8px; border-radius: var(--ne-pill); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }

/* Segmented progress bar */
.ne-segbar { display: flex; gap: 4px; height: 8px; }
.ne-segbar > span { flex: 1; border-radius: 4px; background: var(--ne-line-3); }
.ne-hero .ne-segbar > span { background: var(--ne-dark-line); }
.ne-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ne-dark-text); }
.ne-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.ne-legend i.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- Forms ---------- */
.ne-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ne-ink); }
.ne-field__hint { font-weight: 400; color: var(--ne-muted); font-size: 12px; }
.ne-input,
.ne-select,
.ne-textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ne-line);
  border-radius: 14px;
  background: var(--ne-surface);
  color: var(--ne-ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ne-textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ne-input::placeholder, .ne-textarea::placeholder { color: var(--ne-faint); }
.ne-input:focus, .ne-select:focus, .ne-textarea:focus { border-color: var(--ne-ink); box-shadow: var(--ne-focus); }
.ne-inputbox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ne-line);
  border-radius: 14px;
  background: var(--ne-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ne-inputbox:focus-within { border-color: var(--ne-ink); box-shadow: var(--ne-focus); }
.ne-inputbox > i { color: var(--ne-muted); font-size: 18px; }
.ne-inputbox > input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ne-ink); }
.ne-check { width: 18px; height: 18px; accent-color: var(--ne-ink); cursor: pointer; }

.ne-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 14px;
  background: #D9D3C8;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ne-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(23, 20, 15, 0.3);
  transition: inset-inline-start 0.18s var(--ne-ease);
}
.ne-switch[aria-checked="true"] { background: var(--ne-ink); }
.ne-switch[aria-checked="true"]::after { inset-inline-start: 23px; }

/* ---------- Tables ---------- */
.ne-table-wrap { overflow-x: auto; }
.ne-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ne-ink); }
.ne-table thead th {
  padding: 12px;
  text-align: start;
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ne-surface-2);
  white-space: nowrap;
}
html[dir="rtl"] .ne-table thead th { letter-spacing: 0; text-transform: none; font-size: 12px; }
.ne-table thead th:first-child { padding-inline-start: 20px; }
.ne-table thead th:last-child { padding-inline-end: 20px; }
.ne-table tbody td { padding: 14px 12px; border-top: 1px solid var(--ne-line-2); vertical-align: middle; }
.ne-table tbody td:first-child { padding-inline-start: 20px; }
.ne-table tbody td:last-child { padding-inline-end: 20px; }
.ne-table tbody tr { transition: background 0.12s ease; }
.ne-table tbody tr:hover { background: var(--ne-surface-2); }
.ne-table .ne-cell-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ne-muted); }

/* ---------- Empty state ---------- */
.ne-empty {
  padding: 40px 20px;
  border-radius: 20px;
  background: var(--ne-subtle);
  border: 1px dashed var(--ne-dash);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.ne-empty__icon { width: 48px; height: 48px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--ne-line); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ne-empty__title { margin: 0; font-size: 15px; font-weight: 600; }
.ne-empty__text { margin: 0; font-size: 13px; color: var(--ne-muted); max-width: 420px; line-height: 1.5; }

/* ---------- Alerts / callouts ---------- */
.ne-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.ne-callout--orange { background: var(--ne-accent-tint); color: var(--ne-accent-deep); }
.ne-callout--blue { background: var(--ne-blue-tint); color: var(--ne-blue-ink); }
.ne-callout--red { background: var(--ne-red-tint); color: #8A1C12; }
.ne-callout--green { background: var(--ne-green-tint); color: var(--ne-green-ink); }

/* ---------- Overlays: modal + drawer ---------- */
.ne-scrim { position: fixed; inset: 0; z-index: 1050; background: rgba(23, 20, 15, 0.5); animation: ne-fade-in 0.18s ease both; }
.ne-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 1051;
  width: 440px;
  max-width: 100%;
  background: var(--ne-bg);
  box-shadow: -20px 0 60px -20px rgba(23, 20, 15, 0.5);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  animation: ne-drawer-in 0.26s var(--ne-ease) both;
}
html[dir="rtl"] .ne-drawer { animation-name: ne-drawer-in-rtl; }

@keyframes ne-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ne-drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ne-drawer-in-rtl { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ne-pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Bulk action bar */
.ne-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; padding-inline-start: 20px; background: var(--ne-ink); color: #FFFFFF; }
.ne-bulkbar__count { margin-inline-end: auto; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .ne-root *, body.ne-body * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- SweetAlert, themed once for the whole business area ----------
   Older screens pass bootstrap blues/oranges as confirmButtonColor; normalise them
   to the ink primary. Red (destructive) confirms keep their red. */
body.ne-body .swal2-popup:not(.swal2-toast) { border-radius: 24px; padding: 26px 22px 22px; color: var(--ne-ink); }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-title { font-family: var(--ne-font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ne-ink); }
html[dir="rtl"] body.ne-body .swal2-popup:not(.swal2-toast) .swal2-title { font-family: var(--ne-font); font-weight: 700; letter-spacing: 0; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-html-container { font-size: 14.5px; line-height: 1.6; color: var(--ne-muted); }
body.ne-body .swal2-actions { gap: 8px; }
body.ne-body .swal2-styled { margin: 0 !important; height: 44px; padding: 0 20px !important; border-radius: 999px !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important; }
body.ne-body .swal2-styled:focus-visible { outline: 2px solid var(--ne-accent); outline-offset: 2px; }
body.ne-body .swal2-styled.swal2-confirm { background: var(--ne-ink) !important; color: #FFFFFF !important; }
body.ne-body .swal2-styled.swal2-confirm:hover { background: #2A2620 !important; }
body.ne-body .swal2-styled.swal2-confirm[style*="rgb(180, 35, 24)"],
body.ne-body .swal2-styled.swal2-confirm[style*="rgb(220, 53, 69)"],
body.ne-body .swal2-styled.swal2-confirm[style*="rgb(221, 51, 51)"] { background: var(--ne-red, #B42318) !important; }
body.ne-body .swal2-styled.swal2-cancel,
body.ne-body .swal2-styled.swal2-deny { background: #FFFFFF !important; color: var(--ne-ink) !important; border: 1px solid var(--ne-line) !important; }
body.ne-body .swal2-styled.swal2-cancel:hover,
body.ne-body .swal2-styled.swal2-deny:hover { background: var(--ne-chip) !important; }
body.ne-body .swal2-input, body.ne-body .swal2-textarea, body.ne-body .swal2-select { border-radius: 14px; border: 1px solid var(--ne-line); box-shadow: none; font-size: 15px; }
body.ne-body .swal2-input:focus, body.ne-body .swal2-textarea:focus { border-color: var(--ne-ink); box-shadow: 0 0 0 3px rgba(23, 20, 15, 0.08); }

/* ==========================================================================
   Focus & hover — one ring on the whole field, never a box inside it.
   Owner feedback: inputs inside a framed field drew the browser's own focus box
   (a second square inside the pill). Inner controls now draw nothing; the frame
   lights up with a smooth ink border + soft accent glow. Standalone fields get
   the same treatment on themselves. Keyboard users get a clear ring on buttons.
   ========================================================================== */
:root { --ne-ring: 0 0 0 4px rgba(242, 150, 32, 0.18); --ne-ring-strong: 0 0 0 3px rgba(242, 150, 32, 0.5); }

:where(input, select, textarea):focus { outline: none; }

/* Framed fields: an icon + a borderless control inside one frame */
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .tk-ne__search, .so-ne__search, .so-ne__date,
    .shop-ne__search, .sh-search, .search-box, .search-container, .ne-searchbox, .bw-search, .tm-search) {
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .tk-ne__search, .so-ne__search, .so-ne__date,
    .shop-ne__search, .sh-search, .search-box, .search-container, .ne-searchbox, .bw-search, .tm-search):hover {
  border-color: #CFC8BC;
}
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .tk-ne__search, .so-ne__search, .so-ne__date,
    .shop-ne__search, .sh-search, .search-box, .search-container, .ne-searchbox, .bw-search, .tm-search):focus-within {
  border-color: var(--ne-ink, #17140F) !important;
  box-shadow: var(--ne-ring) !important;
  background-color: #FFFFFF;
}
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .tk-ne__search, .so-ne__search, .so-ne__date,
    .shop-ne__search, .sh-search, .search-box, .search-container, .ne-searchbox, .bw-search, .tm-search)
  :is(input, select, textarea),
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .tk-ne__search, .so-ne__search, .so-ne__date,
    .shop-ne__search, .sh-search, .search-box, .search-container, .ne-searchbox, .bw-search, .tm-search)
  :is(input, select, textarea):is(:focus, :focus-visible) {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  background-color: transparent;
}

/* Standalone fields (their own border) */
:is(.ne-input, .ne-select, .st-input, .st-select, .form-control, .form-select, .ne-textarea, .co-input, .nco-input)
  :not(:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .search-box, .search-container) *) {
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
:is(.ne-input, .ne-select, .st-input, .st-select, .form-control, .form-select, .ne-textarea, .co-input, .nco-input):hover:not(:focus):not(:disabled) {
  border-color: #CFC8BC;
}
:is(.ne-input, .ne-select, .st-input, .st-select, .form-control, .form-select, .ne-textarea, .co-input, .nco-input):focus {
  outline: none !important;
  border-color: var(--ne-ink, #17140F) !important;
  box-shadow: var(--ne-ring) !important;
}

/* Buttons, links, chips: a ring only for keyboard focus, never a box on click */
:where(button, a, [role="button"], summary):focus:not(:focus-visible) { outline: none; }
:where(button, a, [role="button"], summary, .ne-btn, .ne-chip):focus-visible {
  outline: none;
  box-shadow: var(--ne-ring-strong);
  transition: box-shadow 0.2s ease;
}

/* Icons inside the button dot (the "+" of New order / New pickup / Add member) on every page */
.ne-btn__dot svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Inputs never get the browser's square focus box anywhere in the new design; the framed field
   (or the input's own border) shows focus with the warm ring instead. */
body.ne-body :is(input, select, textarea):focus,
body.ne-body :is(input, select, textarea):focus-visible { outline: none !important; }
body.ne-body :is(input, select, textarea) { -webkit-tap-highlight-color: transparent; }
:is(.ne-ord-search, .ne-ord-field, .ne-inputbox, .pk-search, .nea-fld)
  > :is(input, select, textarea):focus-visible { box-shadow: none !important; border-radius: 0; }


/* ---------- SweetAlert toasts in the Now style ----------
   Dark pill, a round coloured icon that pops in (our own, not Swal's line animation which breaks when
   scaled), the message, and a thin accent progress line. No backdrop, no blur. */
body.ne-body .swal2-container.swal2-top-end, body.ne-body .swal2-container.swal2-top-right,
body.ne-body .swal2-container.swal2-top-start, body.ne-body .swal2-container.swal2-top,
body.ne-body .swal2-container.swal2-bottom-end, body.ne-body .swal2-container.swal2-bottom-start { padding: 16px !important; background: transparent !important; backdrop-filter: none !important; }
body.ne-body .swal2-popup.swal2-toast {
  display: flex !important; align-items: center; gap: 12px;
  width: auto !important; min-width: 280px; max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px 12px 12px !important; padding-inline: 12px 16px !important;
  border-radius: 18px !important; border: 1px solid rgba(255, 255, 255, .06);
  background: #17140F !important; color: #fff !important;
  box-shadow: 0 24px 48px -18px rgba(23, 20, 15, .55), 0 2px 6px rgba(23, 20, 15, .12) !important;
  overflow: hidden; font-family: var(--ne-font);
}
body.ne-body .swal2-popup.swal2-toast.swal2-show { animation: neToastIn .45s cubic-bezier(.2, .9, .25, 1.15) both !important; }
body.ne-body .swal2-popup.swal2-toast.swal2-hide { animation: neToastOut .25s ease forwards !important; }
@keyframes neToastIn { from { opacity: 0; translate: 0 -14px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes neToastOut { to { opacity: 0; translate: 0 -8px; scale: .96; } }
body.ne-body .swal2-toast .swal2-icon {
  flex: none; position: relative; width: 34px !important; height: 34px !important; min-width: 34px; margin: 0 !important;
  border: 0 !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1) center / 18px no-repeat; animation: neToastIcon .5s cubic-bezier(.3, 1.7, .5, 1) .08s both !important;
}
body.ne-body .swal2-toast .swal2-icon > *, body.ne-body .swal2-toast .swal2-icon::before, body.ne-body .swal2-toast .swal2-icon::after { display: none !important; }
@keyframes neToastIcon { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
body.ne-body .swal2-toast .swal2-icon.swal2-success { background-color: #1F8A4E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E"); box-shadow: 0 0 0 5px rgba(31, 138, 78, .22); }
body.ne-body .swal2-toast .swal2-icon.swal2-error { background-color: #C0473A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); box-shadow: 0 0 0 5px rgba(192, 71, 58, .22); }
body.ne-body .swal2-toast .swal2-icon.swal2-warning { background-color: #F29620; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317140F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5v.01'/%3E%3C/svg%3E"); box-shadow: 0 0 0 5px rgba(242, 150, 32, .22); }
body.ne-body .swal2-toast .swal2-icon.swal2-info, body.ne-body .swal2-toast .swal2-icon.swal2-question { background-color: #3A3630; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F29620' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
body.ne-body .swal2-toast .swal2-title {
  flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; text-align: start !important;
  font-family: var(--ne-font) !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.35 !important; color: #fff !important;
  letter-spacing: 0 !important;
}
body.ne-body .swal2-toast .swal2-html-container { margin: 2px 0 0 !important; padding: 0 !important; font-size: 13px !important; color: rgba(255, 255, 255, .7) !important; text-align: start !important; }
body.ne-body .swal2-toast .swal2-close { position: static; flex: none; width: 28px; height: 28px; margin: 0 !important; color: rgba(255, 255, 255, .6); font-size: 20px; border-radius: 50%; }
body.ne-body .swal2-toast .swal2-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
body.ne-body .swal2-toast .swal2-timer-progress-bar-container { height: 3px; border-radius: 0; }
body.ne-body .swal2-toast .swal2-timer-progress-bar { height: 3px; background: linear-gradient(90deg, #F29620, #F7B955) !important; }
body.ne-body .swal2-toast .swal2-actions { margin: 0 !important; }
@media (max-width: 575.98px) {
  body.ne-body .swal2-container.swal2-top-end, body.ne-body .swal2-container.swal2-top-start, body.ne-body .swal2-container.swal2-top { padding: 12px !important; }
  body.ne-body .swal2-popup.swal2-toast { min-width: 0; width: calc(100vw - 24px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.ne-body .swal2-popup.swal2-toast, body.ne-body .swal2-toast .swal2-icon { animation: none !important; }
}

/* ---------- SweetAlert dialogs: the big icons in our colours ---------- */
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon { margin-top: 6px; transform: scale(.82); }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success { border-color: rgba(31, 138, 78, .3) !important; color: #1F8A4E; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: #1F8A4E !important; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(31, 138, 78, .3) !important; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error { border-color: rgba(192, 71, 58, .35) !important; color: #C0473A; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: #C0473A !important; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-warning { border-color: rgba(242, 150, 32, .45) !important; color: #E08611 !important; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-info, body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-question { border-color: rgba(23, 20, 15, .18) !important; color: #17140F !important; }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-circular-line-left,
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-circular-line-right,
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-fix { background-color: var(--ne-surface, #fff) !important; }
body.ne-body .swal2-popup:not(.swal2-toast) { background: var(--ne-surface, #fff); box-shadow: 0 40px 80px -30px rgba(23, 20, 15, .5); }
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-timer-progress-bar { background: var(--ne-accent) !important; }

/* SweetAlert success: draw a clean static tick (the animated pieces rendered misaligned) */
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success {
  transform: none; width: 84px; height: 84px; margin: 6px auto 18px;
  border: 4px solid rgba(31, 138, 78, .3) !important; border-radius: 50%;
  background: no-repeat center / 46px 46px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A4E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success > *,
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success::before,
body.ne-body .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success::after { display: none !important; }
