@import url('./cairo-local.css');

@media screen {
  html:is(.mahhli-web,.mahalli-site-parity):root:root:root:root,
  html:is(.mahhli-web,.mahalli-site-parity):root:root:root:root body {
    --web-navy: #193d64;
    --web-blue: #2c759f;
    --web-gradient: linear-gradient(115deg, var(--web-blue), var(--web-navy));
    --web-paper: #fff;
    --web-bg: #f2f6fb;
    --web-line: #d6e4f3;
    --web-ink: #182e49;
    --web-fill: #eaf2fb;
    --web-muted: #516b89;
    --primary: #285478 !important;
    --primary-dark: #193d64 !important;
    --primary-deep: #132d4d !important;
    --primary-soft: var(--web-fill) !important;
    --primary-soft-2: var(--web-bg) !important;
    --surface: var(--web-paper) !important;
    --surface-2: var(--web-fill) !important;
    --background: var(--web-bg) !important;
    --border: var(--web-line) !important;
    --text: var(--web-ink) !important;
    --text-muted: var(--web-muted) !important;
    --ui-button: #285478 !important;
    --ui-button-text: #fff !important;
    --phone-bg: var(--web-bg) !important;
    --phone-card: var(--web-paper) !important;
    --phone-fill: var(--web-fill) !important;
    --phone-ink: var(--web-ink) !important;
    --phone-line: var(--web-line) !important;
    --phone-accent: #285478 !important;
    --phone-tint: var(--web-fill) !important;
    --m-bg: var(--web-bg) !important;
    --m-card: var(--web-paper) !important;
    --m-line: var(--web-line) !important;
    --m-primary: #285478 !important;
  }
  html:is(.mahhli-web,.mahalli-site-parity):root:root:root:root[data-mahalli-theme="midnight"],
  html:is(.mahhli-web,.mahalli-site-parity):root:root:root:root[data-mahalli-theme="midnight"] body {
    --web-paper: #1a1a1a;
    --web-bg: #0c0c0c;
    --web-line: #404040;
    --web-ink: #f5f5f5;
    --web-fill: #2b2b2b;
    --web-muted: #bdbdbd;
    --web-blue: #545454;
    --web-navy: #2a2a2a;
    --primary: #ededed !important;
    --primary-dark: #d0d0d0 !important;
    --primary-deep: #fff !important;
    --ui-button: #ededed !important;
    --ui-button-text: #141414 !important;
    --phone-accent: #ededed !important;
    --m-primary: #ededed !important;
    color-scheme: dark;
  }
  html:is(.mahhli-web,.mahalli-site-parity)[data-mahalli-theme="midnight"] { filter: grayscale(1); }
  :is(.mahhli-web,.mahalli-site-parity) body { font-family: Cairo, system-ui, sans-serif; }
  :is(.mahhli-web,.mahalli-site-parity) [data-web-brand] { object-fit: contain !important; filter: none !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-mahalli-theme="midnight"] [data-web-brand] { filter: brightness(0) invert(1) !important; }
  :is(.mahhli-web,.mahalli-site-parity) :is(.sidebar nav a.active,.native-tab.active,.native-primary-mini,.m-btn.primary,.primary-button,.checkout-button) {
    background: var(--web-gradient) !important;
    color: #fff !important;
  }
  :is(.mahhli-web,.mahalli-site-parity) :is(.native-tab,.native-module-card,.m-btn,#checkoutButton,.product-card) { touch-action: manipulation; }
}

/* Sidebar from the supplied collapsible reference, with the site's existing routes. */
:is(.mahhli-web,.mahalli-site-parity) #computerShell { --web-sidebar-width: 228px; }
:is(.mahhli-web,.mahalli-site-parity) #computerShell.sidebar-collapsed { --web-sidebar-width: 62px; }
:is(.mahhli-web,.mahalli-site-parity) #computerShell #computerSidebar { width: var(--web-sidebar-width) !important; padding: 10px !important; border-inline-end: 1px solid var(--web-line); }
:is(.mahhli-web,.mahalli-site-parity) #computerShell .computer-main { right: var(--web-sidebar-width) !important; }
:is(.mahhli-web,.mahalli-site-parity) #computerShell :is(#computerSidebar,.computer-main) { transition: width 240ms cubic-bezier(.22,1,.36,1),right 240ms cubic-bezier(.22,1,.36,1); }
:is(.mahhli-web,.mahalli-site-parity) .web-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 10px; padding: 3px; }
:is(.mahhli-web,.mahalli-site-parity) .web-sidebar-header .computer-brand { display: grid !important; place-items: center; width: 42px; height: 42px !important; padding: 0 !important; border: 1px solid var(--web-line); border-radius: 12px; background: var(--web-fill); }
:is(.mahhli-web,.mahalli-site-parity) #computerShell .web-sidebar-header .computer-brand img { width: 20px !important; height: 25px !important; }
:is(.mahhli-web,.mahalli-site-parity) .web-sidebar-header #collapseSidebarButton { display: grid !important; place-items: center; width: 34px; height: 34px; padding: 6px; color: var(--web-ink); border-radius: 9px; border: 1px solid var(--web-line); background: var(--web-paper); }
:is(.mahhli-web,.mahalli-site-parity) #computerShell.sidebar-collapsed .web-sidebar-header { flex-direction: column; align-items: center; }
:is(.mahhli-web,.mahalli-site-parity) #computerShell.sidebar-collapsed #collapseSidebarButton svg { transform: rotate(180deg); }
:is(.mahhli-web,.mahalli-site-parity) #computerNav { scrollbar-color: transparent transparent; scrollbar-width: thin; }
:is(.mahhli-web,.mahalli-site-parity) #computerNav.web-scrolling { scrollbar-color: var(--web-line) transparent; }
:is(.mahhli-web,.mahalli-site-parity) #computerNav .nav-group-label { color: var(--web-muted); font-size: 10px; }
:is(.mahhli-web,.mahalli-site-parity) #computerNav .nav-item { min-height: 42px; border-radius: 10px; gap: 9px; font-size: 13px; color: var(--web-ink); }
:is(.mahhli-web,.mahalli-site-parity) #computerNav .nav-item:hover { background: var(--web-fill); }
:is(.mahhli-web,.mahalli-site-parity) #computerNav .nav-item.active { background: var(--web-gradient) !important; color: white !important; border-color: transparent; box-shadow: none; }
:is(.mahhli-web,.mahalli-site-parity) #computerNav .nav-item.active :is(svg,span) { color: white !important; }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar { grid-template-columns: minmax(0,1fr) auto !important; background: var(--web-paper) !important; }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar :is(.topbar-search,.mp-search-trigger) { display: none !important; }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #topbarProfileButton { min-width: 40px !important; width: 40px !important; height: 40px !important; display: grid; place-items: center; padding: 0 !important; border-radius: 50% !important; background: var(--web-fill) !important; color: var(--web-ink); }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #topbarProfileButton > :not(.web-account-icon) { display: none !important; }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #topbarProfileButton > .web-account-icon { display: block !important; width: 20px; height: 20px; color: inherit; }
:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #accountMenu.open { animation: web-account-in 160ms ease-out both; }
@keyframes web-account-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  :is(.mahhli-web,.mahalli-site-parity) #computerShell :is(#computerSidebar,.computer-main),:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #accountMenu { transition: none !important; animation: none !important; }
}

/* Hide the two discontinued website destinations while retaining their underlying data. */
:is(.mahhli-web,.mahalli-site-parity) :is(.dashboard-ai-link,[data-route="ai"],[data-mx-route="ai"],[data-module-key="ai"],a[href="ai.html"],a[href="#ai"],
  [data-route="inventory"],[data-mx-route="inventory"],[data-module-key="inventory"],a[href="inventory.html"],a[href="desktop-inventory.html"],a[href="#inventory"]) { display: none !important; }

/* Legacy accents in dashboard and POS components that use literal green colors. */
html:is(.mahhli-web,.mahalli-site-parity):root:root body :is(.kpi-card.kpi-primary,.mx-fab,[data-add-expense],.reference-category-bar button.active,#categories button.active) {
  background: var(--web-gradient) !important;
  border-color: transparent !important;
  color: white !important;
}
html:is(.mahhli-web,.mahalli-site-parity):root:root body .kpi-card.kpi-primary :is(.kpi-top,.kpi-foot,.kpi-value,.kpi-value small,svg) { color: white !important; }
:is(.mahhli-web,.mahalli-site-parity) .mx28-health { background: var(--web-paper) !important; border-color: var(--web-line) !important; }
:is(.mahhli-web,.mahalli-site-parity) .mx28-health-ring circle { stroke: var(--web-fill) !important; }
:is(.mahhli-web,.mahalli-site-parity) .mx28-health-ring circle.p { stroke: var(--web-blue) !important; }
:is(.mahhli-web,.mahalli-site-parity) :is(.native-tab.active,.m-pill.ok,.product-stock:not(.low):not(.out),.connection-dot) { --success: var(--web-blue); }
:is(.mahhli-web,.mahalli-site-parity) .product-stock:not(.low):not(.out) { color: var(--web-ink) !important; background: var(--web-fill) !important; }
:is(.mahhli-web,.mahalli-site-parity) .dashboard-kpis .kpi-card:has(#dashDebtValue) { background: var(--web-paper) !important; }
:is(.mahhli-web,.mahalli-site-parity) :is(.dashboard-stat-trend.positive,.mx28-health small) { color: var(--web-muted) !important; }
:is(.mahhli-web,.mahalli-site-parity) #nativeAccountButton { display: grid !important; place-items: center; min-width: 42px !important; width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 50% !important; background: var(--web-fill) !important; color: var(--web-ink); }
:is(.mahhli-web,.mahalli-site-parity) #nativeAccountButton > :not(.web-account-icon) { display: none !important; }
:is(.mahhli-web,.mahalli-site-parity) #nativeAccountButton .web-account-icon { width: 20px; height: 20px; color: inherit; }

/* Same POS engine, with the receipt on the left and the catalogue on the right. */
html:is(.mahhli-web,.mahalli-site-parity) :is(.cashier-view,.cashier-workspace,.cashier-premium-workspace) { min-width: 0; max-width: none; }
:is(.mahhli-web,.mahalli-site-parity) :is(#cartPanel,#productsArea) {
  border: 1px solid var(--web-line) !important;
  border-radius: 17px !important;
  background: var(--web-paper) !important;
  min-width: 0 !important;
  box-shadow: 0 3px 10px #21436d0a !important;
}
:is(.mahhli-web,.mahalli-site-parity) #cartPanel .cart-header {
  background: var(--web-gradient) !important;
  color: white !important;
  border-radius: 16px 16px 0 0 !important;
}
:is(.mahhli-web,.mahalli-site-parity) #cartPanel .cart-header :is(h2,.section-kicker,.cart-title-icon,.cart-count) { color: white !important; }
:is(.mahhli-web,.mahalli-site-parity) #cartPanel .cart-count { background: #ffffff24 !important; }
:is(.mahhli-web,.mahalli-site-parity) #cartPanel .cart-summary .total {
  background: var(--web-gradient) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
:is(.mahhli-web,.mahalli-site-parity) #cartPanel .cart-summary .total strong,
:is(.mahhli-web,.mahalli-site-parity) #checkoutButton :is(strong,b,small,svg) { color: #fff !important; }
:is(.mahhli-web,.mahalli-site-parity) #productsArea :is(.product-search-bar,.categories-shell) { border-radius: 12px; }
:is(.mahhli-web,.mahalli-site-parity) body #productsArea .product-grid { gap: 9px !important; }
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 5px !important;
  padding: 10px 7px 7px !important;
  min-height: 135px !important;
  height: auto !important;
  border: 1px solid var(--web-line) !important;
  border-radius: 13px !important;
  background: var(--web-paper) !important;
  color: var(--web-ink) !important;
  overflow: hidden;
}
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card :is(img,.product-icon) {
  display: block !important;
  width: 48px !important;
  height: 43px !important;
  object-fit: contain;
  flex-shrink: 0;
}
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card .product-name {
  text-align: center;
  font-size: 12px !important;
  line-height: 1.45 !important;
  min-height: 0 !important;
  overflow-wrap: anywhere;
}
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card .product-price { color: var(--web-ink) !important; font-size: 13px !important; }
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card .product-add {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: static !important;
  width: 100%;
  min-height: 24px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--web-gradient) !important;
  color: white !important;
}
:is(.mahhli-web,.mahalli-site-parity) #productsArea .product-card .product-add::after { content: 'إضافة'; font-size: 11px; }
:is(.mahhli-web,.mahalli-site-parity)[lang^="en"] #productsArea .product-card .product-add::after { content: 'Add'; }
html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card:active { border-color: var(--web-blue) !important; }

@media (min-width: 761px) {
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter [data-web-counter-layout] {
    grid-template-columns: minmax(255px,.85fr) minmax(0,1.65fr) !important;
    grid-template-areas: 'cart catalogue' 'cart tools' !important;
    grid-template-rows: minmax(0,1fr) auto;
    direction: ltr;
  }
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter [data-web-counter-layout] #cartPanel { grid-area: cart !important; direction: rtl; }
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter [data-web-counter-layout] #productsArea { grid-area: catalogue !important; direction: rtl; }
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter [data-web-counter-layout] .cashier-side-tools {
    grid-area: tools !important;
    direction: rtl;
    display: flex !important;
    max-height: 185px;
    overflow: auto;
    border-radius: 14px;
    border-color: var(--web-line);
    background: var(--web-paper);
  }
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter.cashier-shortcuts-hidden .cashier-side-tools { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity) body.reference-counter [data-web-counter-layout] [data-resize-boundary] { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity) body #productsArea .product-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important; }
}

.web-settings-overview,.web-settings-back,.web-debt-totals { display: none; }
@media (max-width: 900px) {
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="mobile"] [data-native-page="more"] > .native-page-head { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-group { display: grid; gap: 8px; margin-top: 12px; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .native-module-card {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 62px;
    padding: 10px !important;
    border-radius: 15px !important;
    border: 1px solid var(--web-line) !important;
    background: var(--web-paper) !important;
    color: var(--web-ink) !important;
  }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-grid .native-module-card { flex-direction: column; justify-content: center; min-height: 93px; text-align: center; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-grid .native-module-card:first-child { background: var(--web-gradient) !important; color: white !important; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-grid .native-module-card:first-child strong { color: inherit !important; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .web-more-grid small { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity) #nativeModuleGrid .native-module-card > span { background: var(--web-fill) !important; color: var(--web-navy); border-radius: 11px; }

  :is(.mahhli-web,.mahalli-site-parity)[data-web-settings] :is(.settings-nav,.phone-settings-navigation) { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-settings="overview"] .settings-layout { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-settings="overview"] .web-settings-overview { display: grid; gap: 8px; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-settings="section"] .web-settings-back { display: inline-flex; margin-bottom: 10px; }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button,:is(.mahhli-web,.mahalli-site-parity) .web-settings-back {
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid var(--web-line);
    border-radius: 13px;
    background: var(--web-paper);
    color: var(--web-ink);
    padding: 8px 11px;
  }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button { display: flex; text-align: start; font-size: 13px; }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button::after { content: '‹'; margin-inline-start: auto; }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--web-fill); }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview svg { width: 19px; height: 19px; }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button:first-child { background: var(--web-gradient); color: #fff; }
  :is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button:first-child > span { background: #ffffff22; }

  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] :is(.shift-status-card,.stat-card,.panel) {
    border: 1px solid var(--web-line) !important;
    border-radius: 15px !important;
    background: var(--web-paper) !important;
  }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] .shift-status-card { background: var(--web-gradient) !important; color: #fff !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] #shiftStatusTitle,
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] #shiftMeta { color: #fff !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] .stats-grid .stat-card { padding: 10px !important; min-width: 0; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="shifts"] .page-header .header-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; width: 100%; }

  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-debt-insights { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-cloud-head h1,
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-cloud-head p { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] #mBody { display: flex; flex-direction: column; gap: 10px; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] #mBody > .m-debt-insights { order: 4; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] #mBody > .m-stats { display: none !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .web-debt-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .web-debt-totals > div {
    display: grid;
    gap: 5px;
    padding: 11px;
    border-radius: 14px;
    background: #e0f5e8;
    color: #12613b;
    font-size: 12px;
  }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .web-debt-totals > div:nth-child(2) { background: #fce6e9; color: #912a38; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .web-debt-totals strong { font-size: clamp(14px, 4.4vw, 21px); overflow-wrap: anywhere; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-debt-insights .accent { grid-column: 1/-1; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-toolbar-mobile { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-toolbar-mobile .m-search-wrap { grid-column: 1/-1; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-toolbar-mobile > * { width: 100%; min-width: 0; }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-debt-card {
    border: 1px solid var(--web-line) !important;
    border-radius: 14px !important;
    background: var(--web-paper) !important;
    padding: 9px !important;
  }
  :is(.mahhli-web,.mahalli-site-parity)[data-web-page="debts"] .m-debt-card .m-card-actions { gap: 5px !important; }
}
@media (max-width: 760px) {
  :is(.mahhli-web,.mahalli-site-parity) body #productsArea .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card { min-height: 110px !important; }
  html:is(.mahhli-web,.mahalli-site-parity):root:root body #productsArea #productGrid .product-card :is(img,.product-icon) { width: 36px !important; height: 35px !important; }
}
/* Receipt identity and compact, consistent website controls. */
html:is(.mahhli-web,.mahalli-site-parity):root { --web-blue: #365e83; --web-gradient: linear-gradient(135deg,#35769b,#203f60); }
html:is(.mahhli-web,.mahalli-site-parity) #computerShell .web-sidebar-header .computer-brand img { width: 28px !important; height: 33px !important; object-fit: contain; }
html:is(.mahhli-web,.mahalli-site-parity) #computerSidebar > .sidebar-store-compact { margin-top: auto; flex-shrink: 0; position: relative; padding: 10px; border-top: 1px solid var(--web-line); }
:is(.mahhli-web,.mahalli-site-parity) #computerSidebar > .sidebar-store-compact > div:not(#computerStoreSwitchWrap) { display: none; }
:is(.mahhli-web,.mahalli-site-parity) #computerSidebar .computer-store-menu { top: auto !important; bottom: calc(100% + 8px); inset-inline-end: 0; max-height: min(420px,70dvh); overflow-y: auto; }
html:is(.mahhli-web,.mahalli-site-parity) #computerTopbar #topbarProfileButton,
html:is(.mahhli-web,.mahalli-site-parity) #nativeAccountButton,
:is(.mahhli-web,.mahalli-site-parity) :is(#computerSettingsButton,.web-settings-control,.mahalli-dark-toggle) {
  width: 40px !important; min-width: 40px !important; height: 40px !important; padding: 0 !important;
  border-radius: 12px !important; border: 1px solid var(--web-line) !important;
  background: var(--web-paper) !important; color: var(--web-ink) !important;
  display: inline-grid !important; place-items: center;
}
:is(.mahhli-web,.mahalli-site-parity) .web-mobile-mark { width: 31px; height: 37px; object-fit: contain; margin-inline-end: auto; }
:is(.mahhli-web,.mahalli-site-parity) .native-header { gap: 8px; }
:is(.mahhli-web,.mahalli-site-parity) .native-header-actions { display: flex; gap: 6px; align-items: center; }
:is(.mahhli-web,.mahalli-site-parity) #webMobileBranches { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: var(--web-ink); font: inherit; font-size: 10px; padding: 6px 2px; }
:is(.mahhli-web,.mahalli-site-parity) #webMobileBranches svg { width: 22px; height: 22px; }
html:is(.mahhli-web,.mahalli-site-parity) :is(.m-btn.primary,.m-action.primary,.m-product-view-toggle button[aria-pressed="true"],.period-btn.active,.report-type-btn.active,.m-period-btn.active) {
  background: var(--web-gradient) !important; color: white !important; border-color: var(--web-blue) !important;
}
html:is(.mahhli-web,.mahalli-site-parity) :is(.m-pill,.m-pill.ok,.m-product-thumb,.m-product-stock,.m-stat-icon,.native-tab.active) { background: var(--web-fill) !important; color: var(--web-ink) !important; border-color: var(--web-line) !important; }
html:is(.mahhli-web,.mahalli-site-parity) :is(.m-whatsapp,.m-rename-product,.m-label-product,.m-card-extra summary,.m-muted a) { color: var(--web-blue) !important; }
html:is(.mahhli-web,.mahalli-site-parity) :is(.m-mobile-card,.m-card,.m-stat,.panel,.report-mobile-row) { border-color: var(--web-line) !important; }
:is(.mahhli-web,.mahalli-site-parity) .m-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:is(.mahhli-web,.mahalli-site-parity) .m-toolbar > :is(input,select) { flex: 1 1 175px; min-width: 120px; }
:is(.mahhli-web,.mahalli-site-parity) .m-toolbar > :is(button,.m-btn,details) { flex-shrink: 0; white-space: nowrap; }
:is(.mahhli-web,.mahalli-site-parity) .m-table td { padding: 12px 10px; vertical-align: middle; }
:is(.mahhli-web,.mahalli-site-parity) .m-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.mahhli-web,.mahalli-site-parity) .m-row-actions :is(button,.m-btn) { white-space: nowrap; }
:is(.mahhli-web,.mahalli-site-parity) .m-product-mobile-card { gap: 12px; padding: 14px; }
:is(.mahhli-web,.mahalli-site-parity) .m-product-facts { gap: 8px; }
:is(.mahhli-web,.mahalli-site-parity) .m-product-facts > div { background: var(--web-fill) !important; }
:is(.mahhli-web,.mahalli-site-parity) .reference-scan-ready { align-self: start !important; width: auto !important; max-height: 44px !important; min-height: 36px !important; padding: 8px 14px !important; flex: 0 0 auto !important; }
:is(.mahhli-web,.mahalli-site-parity) #frameArea { isolation: isolate; }
:is(.mahhli-web,.mahalli-site-parity) .web-receipt-transition {
  position: absolute; inset: 0; z-index: 22; pointer-events: none; overflow: hidden;
  background: var(--web-paper); opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100%); transition: clip-path 220ms cubic-bezier(.2,.8,.2,1),opacity 120ms,visibility 0s 220ms;
}
:is(.mahhli-web,.mahalli-site-parity) .web-receipt-transition.cover { visibility: visible; opacity: 1; clip-path: inset(0); transition-delay: 0s; }
:is(.mahhli-web,.mahalli-site-parity) .web-receipt-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; justify-items: center; gap: 22px; }
:is(.mahhli-web,.mahalli-site-parity) .web-receipt-center img { width: 76px; height: 88px; object-fit: contain; }
:is(.mahhli-web,.mahalli-site-parity) .web-paper-lines { display: grid; justify-items: center; gap: 7px; }
:is(.mahhli-web,.mahalli-site-parity) .web-paper-lines i { width: 82px; height: 5px; border-radius: 5px; background: var(--web-line); transform-origin: right; animation: web-print-line 650ms ease-in-out infinite alternate; }
:is(.mahhli-web,.mahalli-site-parity) .web-paper-lines i:nth-child(2) { width: 62px; animation-delay: 120ms; }
:is(.mahhli-web,.mahalli-site-parity) .web-paper-lines i:nth-child(3) { width: 40px; animation-delay: 240ms; }
@keyframes web-print-line { from { transform: scaleX(.4); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }
@media(max-width:900px) {
  :is(.mahhli-web,.mahalli-site-parity) .m-cloud-root { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 10px !important; }
  :is(.mahhli-web,.mahalli-site-parity) :is(.m-stats,.stats-grid) { gap: 8px !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  :is(.mahhli-web,.mahalli-site-parity) :is(.m-stat,.m-card,.report-mobile-row) { padding: 12px !important; border-radius: 15px !important; min-width: 0; }
  :is(.mahhli-web,.mahalli-site-parity) .m-toolbar > :is(input,select) { flex-basis: calc(50% - 8px); max-width: 100%; }
  :is(.mahhli-web,.mahalli-site-parity) .m-toolbar > input[type="search"],:is(.mahhli-web,.mahalli-site-parity) .m-toolbar > input[type="text"] { flex-basis: 100%; }
  :is(.mahhli-web,.mahalli-site-parity) .m-toolbar :is(button,.m-btn,summary) { min-height: 38px; padding: 8px 11px; white-space: nowrap !important; word-break: normal !important; }
  :is(.mahhli-web,.mahalli-site-parity) :is(.report-filter-bar,.page-header-actions,.shift-actions,.employees-actions) { display: flex; flex-wrap: wrap; gap: 8px; }
  :is(.mahhli-web,.mahalli-site-parity) .report-filter-bar > * { flex: 1 1 140px; min-width: 0; }
  :is(.mahhli-web,.mahalli-site-parity) .period-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
  :is(.mahhli-web,.mahalli-site-parity) .period-btn { flex: 1 0 auto; white-space: nowrap !important; min-width: 64px; padding: 8px 10px; }
  :is(.mahhli-web,.mahalli-site-parity) :is(.report-grid,.charts-grid) { grid-template-columns: minmax(0,1fr) !important; gap: 10px !important; }
  :is(.mahhli-web,.mahalli-site-parity) .m-product-actions { margin-top: 8px !important; }
  :is(.mahhli-web,.mahalli-site-parity) .m-mobile-card { min-height: 0 !important; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.mahhli-web,.mahalli-site-parity) .web-receipt-transition { transition: none; clip-path: none; }
  :is(.mahhli-web,.mahalli-site-parity) .web-paper-lines i { animation: none; }
}

:is(.mahhli-web,.mahalli-site-parity) #computerSidebar > .sidebar-store-compact:has(#computerStoreSwitchWrap[hidden]) { display:none!important; }
html:is(.mahhli-web,.mahalli-site-parity):root #computerTopbar #computerSettingsButton { display: inline-grid !important; }
html:is(.mahhli-web,.mahalli-site-parity):root body .m-extra-barcodes summary { color: var(--web-blue) !important; }
html:is(.mahhli-web,.mahalli-site-parity):root body .m-product-stock { background: var(--web-fill) !important; color: var(--web-ink) !important; }
:is(.mahhli-web,.mahalli-site-parity) .recharge-summary,:is(.mahhli-web,.mahalli-site-parity) .recharge-provider-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-block: 12px; }
:is(.mahhli-web,.mahalli-site-parity) :is(.recharge-summary,.recharge-provider-metrics) > div { display: grid; gap: 6px; padding: 12px; background: var(--web-fill); border-radius: 12px; }
:is(.mahhli-web,.mahalli-site-parity) :is(.recharge-summary,.recharge-provider-metrics) span { font-size: 12px; color: var(--web-muted); }
:is(.mahhli-web,.mahalli-site-parity) .recharge-provider-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 12px; }
:is(.mahhli-web,.mahalli-site-parity) .recharge-provider-card { padding: 12px; border: 1px solid var(--web-line); border-radius: 14px; }
:is(.mahhli-web,.mahalli-site-parity) .recharge-provider-head,:is(.mahhli-web,.mahalli-site-parity) .recharge-card-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
:is(.mahhli-web,.mahalli-site-parity) .recharge-card-row { padding-block: 10px; border-top: 1px solid var(--web-line); }
:is(.mahhli-web,.mahalli-site-parity) .recharge-card-row small { display: block; color: var(--web-muted); margin-top: 4px; }
:is(.mahhli-web,.mahalli-site-parity) .web-recharge-summary > summary { cursor: pointer; font-weight: 700; padding: 4px; }
:is(.mahhli-web,.mahalli-site-parity) .web-recharge-summary { margin-block: 10px; }
html:is(.mahhli-web,.mahalli-site-parity):root body .m-stock-chip:not(.low) { color: var(--web-ink) !important; background: var(--web-fill) !important; }
html:is(.mahhli-web,.mahalli-site-parity):root body :is(.m-whatsapp,.m-btn.wa,.m-positive) { color: var(--web-blue) !important; border-color: var(--web-line) !important; }
:is(.mahhli-web,.mahalli-site-parity) .web-settings-overview button:first-child :is(strong,svg) { color: #fff !important; }
:is(.mahhli-web,.mahalli-site-parity).m-embedded-mobile #productEntryScan { display: none !important; }
html:is(.mahhli-web,.mahalli-site-parity):root #computerSidebar #computerStoreSwitchWrap:not([hidden]) { display: block !important; width: 100%; }
:is(.mahhli-web,.mahalli-site-parity) #computerSidebar .computer-store-switch { width: 100%; min-width: 0; }
:is(.mahhli-web,.mahalli-site-parity) #computerShell.sidebar-collapsed .branch-button-copy { display: none; }
html:is(.mahhli-web,.mahalli-site-parity):root #computerSidebar > .sidebar-store-compact:not([hidden]) { display: block !important; margin-top: auto !important; }
