/* ALDHAMEN web and Flutter share one visual language. This layer only changes presentation. */
body.aldhamen-ui {
  --ald-canvas: #f8f3eb;
  --ald-surface: #fffcf8;
  --ald-surface-muted: #f3ece4;
  --ald-field: #fffcf8;
  --ald-ink: #321e22;
  --ald-ink-muted: #675a58;
  --ald-brand: #743139;
  --ald-brand-hover: #5f2630;
  --ald-brand-soft: #f0dedc;
  --ald-line: #e7ddd1;
  --ald-positive: #315b47;
  --ald-positive-soft: #e6f0e9;
  --ald-focus: #98535b;
  --ald-shadow: 0 4px 18px rgba(50,30,34,.045);
  --ald-radius-control: 14px;
  --ald-radius-panel: 17px;
  --cream: #f8f3eb;
  --primary: #f8f3eb;
  --surface: #fffcf8;
  --wine: #743139;
  --ink: #321e22;
  --secondary: #743139;
  --text: #321e22;
  --ui-card-radius: 17px;
  --ui-button-radius: 14px;
  --ui-popup-radius: 18px;
  background: #f8f3eb !important;
  color: #321e22;
  font-family: Tajawal, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
html { background: #f8f3eb; scroll-behavior: smooth; }
body.aldhamen-ui :is(h1,h2,h3,h4) { line-height: 1.25; text-wrap: balance; }
body.aldhamen-ui :is(p,li,label) { overflow-wrap: break-word; }
body.aldhamen-ui :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]):not([type="color"]),select,textarea) {
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #dccfc3 !important;
  border-radius: 14px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  font-size: 16px !important;
  line-height: 1.4;
}
body.aldhamen-ui :is(input,textarea)::placeholder { color: #766866 !important; opacity: 1; }
body.aldhamen-ui :is(button,a,summary,input,select,textarea):focus-visible {
  outline: 3px solid #98535b !important;
  outline-offset: 2px;
}
body.aldhamen-ui :is(button,a,summary) { -webkit-tap-highlight-color: transparent; }
body.aldhamen-ui :is(button,[role="button"]) { touch-action: manipulation; }
body.aldhamen-ui :is(.ald-button,.admin-primary-btn,.customer-auth-primary,.pos23-submit,.pos661-shift-submit,.reward-item form button,.reward-item__signin) {
  min-height: 46px;
  border-radius: 14px !important;
  background: #f0dedc !important;
  border: 1px solid #c8a9a3 !important;
  color: #321e22 !important;
  font-weight: 800;
  box-shadow: none !important;
}
body.aldhamen-ui :is(.ald-button,.admin-primary-btn,.customer-auth-primary,.pos23-submit,.pos661-shift-submit,.reward-item form button,.reward-item__signin):hover {
  background: #e9cfcd !important;
  color: #321e22 !important;
}
body.aldhamen-ui :is(.ald-button,.admin-primary-btn,.customer-auth-primary,.pos23-submit,.pos661-shift-submit,.reward-item form button):disabled {
  opacity: .56;
  cursor: not-allowed;
}
body.aldhamen-ui :is(.ald-panel,.admin-panel,.a6-panel,.customer-account-panel,.reward-item,.rewards-section,.coupon-workspace,.staff-order-card,.nx-order-detail-card) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: 0 4px 18px rgba(50,30,34,.045) !important;
}
body.aldhamen-ui :is(.global-toast,.pwa-install-card,.modal-backdrop > section) {
  border: 1px solid #e7ddd1;
  border-radius: 18px;
  background: #fffcf8;
  color: #321e22;
}
body.aldhamen-ui :is(.ald-table-wrap,.table-wrap,.orders73-table-wrap) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
body.aldhamen-ui :is(table,.ald-table) { font-variant-numeric: tabular-nums; }
body.aldhamen-ui :is(table,.ald-table) :is(td,th) { vertical-align: middle; }
body.aldhamen-ui :is(table,.ald-table) th { color: #675a58; }
body.aldhamen-ui :is(.global-back,.customer-mobile-back,.soft-back,.coupon-back) {
  min-height: 44px;
  border-radius: 13px;
  color: #743139 !important;
  font-weight: 800;
}

/* Customer ordering uses the same quiet cards and concise product hierarchy as the app. */
body.page-home:not(.staff-app) .site { width: min(100% - 28px, 1480px); margin-inline: auto; }
body.page-home:not(.staff-app) {
  --order-wine: #743139;
  --order-wine-deep: #321e22;
  --order-pink: #98535b;
  --order-blush: #f0dedc;
  --order-shell: #f8f3eb;
  --order-paper: #fffcf8;
  --order-ink: #321e22;
  --order-muted: #675a58;
  --order-line: #e7ddd1;
}
body.page-home:not(.staff-app) .nx-customer-header {
  min-height: 72px;
  padding: 10px 18px !important;
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-home:not(.staff-app) .nx-customer-header .brand img { width: 45px; height: 45px; object-fit: contain; }
body.page-home:not(.staff-app) .nx-customer-header .brand :is(strong,span) { color: #321e22 !important; }
body.page-home:not(.staff-app) .pattern-strip { opacity: .35; max-height: 12px; }
body.page-home:not(.staff-app) :is(.nx-cart-panel,.nx-menu-panel .menu-heading,.product) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-home:not(.staff-app) .nx-menu-panel { min-width: 0; }
body.page-home:not(.staff-app) .product { min-width: 0; overflow: hidden; }
body.page-home:not(.staff-app) .product :is(h3,strong,b) { color: #321e22 !important; line-height: 1.35; }
body.page-home:not(.staff-app) .product-image { background: #f3ece4 !important; border-radius: 14px !important; }
body.page-home:not(.staff-app) .customer-menu-categories button {
  min-height: 44px;
  border: 1px solid #e7ddd1 !important;
  border-radius: 13px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  font-weight: 700;
  white-space: nowrap;
}
body.page-home:not(.staff-app) .customer-menu-categories button.active {
  background: #f0dedc !important;
  border-color: #c8a9a3 !important;
  color: #743139 !important;
}
body.page-home:not(.staff-app) .cart-title { border-bottom: 1px solid #e7ddd1; }
body.page-home:not(.staff-app) :is(.cart-item,.customer-v54-cart-item,.order-selection-summary,.cart-upsell) {
  border-radius: 14px !important;
  border-color: #e7ddd1 !important;
  background: #fffcf8 !important;
}
body.page-home:not(.staff-app) :is(.order-selection-summary,.form-grid,.checkout-fields) { min-width: 0; }
body.page-home:not(.staff-app) :is(.qty button,.cart-item button,.customer-cart-close) { min-width: 42px; min-height: 42px; }
body.page-home:not(.staff-app) :is(.customer-cart-cta,.customer-cart-submit,.submit-order,.order-submit) {
  min-height: 48px;
  border-radius: 14px;
  background: #f0dedc !important;
  color: #321e22 !important;
}

/* Staff POS: product list first, cart second; controls mirror Flutter. */
body.page-staff-pos .a6-pos { background: #f8f3eb !important; color: #321e22; }
body.page-staff-pos .a6-pos-sidebar {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-staff-pos .a6-pos-sidebar :is(a,button) { border-radius: 13px !important; color: #321e22 !important; }
body.page-staff-pos .a6-pos-sidebar :is(a.active,button.active) { background: #f0dedc !important; color: #743139 !important; }
body.page-staff-pos .a6-pos-topbar,
body.page-staff-pos :is(.pos44-recent,.pos23-cart,.pos23-product,.pos23-options-card,.pos26-branch-card,.pos661-shift-card) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-staff-pos .pos23-products { min-width: 0; gap: 12px !important; }
body.page-staff-pos .pos23-product { min-width: 0; overflow: hidden; }
body.page-staff-pos .pos23-image { background: #f3ece4 !important; border-radius: 13px; }
body.page-staff-pos .pos23-info strong { font-size: 16px !important; line-height: 1.3 !important; color: #321e22 !important; }
body.page-staff-pos .pos23-info small { color: #675a58 !important; }
body.page-staff-pos .pos23-price { font-size: 16px !important; color: #743139 !important; font-variant-numeric: tabular-nums; }
body.page-staff-pos .pos23-categories button {
  min-height: 44px;
  border: 1px solid #e7ddd1 !important;
  border-radius: 13px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  white-space: nowrap;
}
body.page-staff-pos .pos23-categories button.active { background: #f0dedc !important; color: #743139 !important; border-color: #c8a9a3 !important; }
body.page-staff-pos .pos23-cart { min-width: 0; }
body.page-staff-pos .pos23-cart-head { border-bottom: 1px solid #e7ddd1; }
body.page-staff-pos .pos23-cart-items > * { max-width: 100%; }
body.page-staff-pos .pos24-payment-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
body.page-staff-pos .pos24-payment-options button {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #e7ddd1 !important;
  border-radius: 13px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  font-weight: 700;
}
body.page-staff-pos .pos24-payment-options button[aria-pressed="true"] { background: #f0dedc !important; border-color: #c8a9a3 !important; }
body.page-staff-pos .pos23-summary { border: 1px solid #e7ddd1; border-radius: 14px; background: #f8f3eb; }
body.page-staff-pos .pos44-order-card { border-radius: 14px !important; background: #fffcf8 !important; }

/* Admin pages, including reports, menu editor, integrations and settings. */
body.page-admin .a6-admin,
body.page-admin .a6-admin-content { background: #f8f3eb !important; min-width: 0; }
body.page-admin {
  --admin74-canvas: #f8f3eb;
  --admin74-paper: #fffcf8;
  --admin74-ink: #321e22;
  --admin74-muted: #675a58;
  --admin74-wine: #743139;
  --admin74-pale: #f0dedc;
  --admin74-inset: #f3ece4;
}
body.page-admin .a6-admin-sidebar,
body.page-admin .a6-admin-topbar {
  border: 1px solid #e7ddd1 !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-admin .a6-admin-sidebar { border-radius: 17px !important; }
body.page-admin .a6-admin-topbar { border-radius: 17px !important; }
body.page-admin :is(.admin74-nav,.admin-simple-nav,.a640-mobile-admin-menu) a {
  min-height: 44px;
  border-radius: 13px;
  color: #321e22 !important;
  font-weight: 700;
}
body.page-admin :is(.admin74-nav,.admin-simple-nav,.a640-mobile-admin-menu) a:is(.active,.is-active,[aria-current="page"]) {
  background: #f0dedc !important;
  color: #743139 !important;
}
body.page-admin :is(.a6-page-title h1,.admin-panel h2,.a6-panel h2) { color: #321e22 !important; }
body.page-admin .a6-page-title h1 { font-size: clamp(25px,2vw,31px) !important; }
body.page-admin :is(.admin-panel,.a6-panel,.dash70-card,.menu50-card,.orders73-card) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.page-admin :is(.a6-admin-content,.admin-main) :is(p,small) { line-height: 1.5; }
body.page-admin :is(.a6-admin-content,.admin-main) :is(input,select,textarea) { min-width: 0; }
body.page-admin :is(.a6-admin-content,.admin-main) :is(button,a) { overflow-wrap: normal; }
body.page-admin :is(.dash70-command-strip,.menu50-toolbar,.orders73-toolbar) { gap: 8px; }
body.page-admin :is(.dash70-command-strip,.menu50-toolbar,.orders73-toolbar) :is(button,a) {
  min-height: 42px;
  border-radius: 12px;
}
body.page-admin :is(.a65-hour-track span,.a6615-hour-bar) { background: #743139 !important; }
body.page-admin :is(.a65-hour-track,.a6615-hour-track) { background: #f0dedc !important; }

/* Orders, kitchen, customer account, rewards, game and auxiliary pages. */
body.aldhamen-ui :is(.staff-orders-page,.order-detail-page,.coupon-staff-shell,.customer-account-page,.rewards-experience,.ald-game-page) {
  width: min(100% - 28px, 1280px);
  margin-inline: auto;
  color: #321e22;
}
body.aldhamen-ui :is(.staff-order-card,.customer-order-history a,.rewards-code-card,.reward-item,.ald-game-panel) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui :is(.staff-order-card,.customer-order-history a) { min-width: 0; }
body.aldhamen-ui :is(.staff-order-actions,.staff-filter-tabs,.customer-account-actions,.rewards-shortcuts) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.aldhamen-ui :is(.staff-filter-tabs,.rewards-shortcuts) a {
  min-height: 44px;
  border: 1px solid #e7ddd1;
  border-radius: 13px;
  background: #fffcf8;
  color: #321e22 !important;
}
body.aldhamen-ui :is(.staff-filter-tabs,.rewards-shortcuts) a.active { background: #f0dedc; border-color: #c8a9a3; color: #743139 !important; }
body.aldhamen-ui .rewards-overview { gap: 16px; }
body.aldhamen-ui .rewards-balance { border: 1px solid #d9c1bc !important; border-radius: 17px !important; background: #f0dedc !important; color: #321e22 !important; }
body.aldhamen-ui .rewards-balance :is(strong,b,small,span) { color: #321e22 !important; }
body.aldhamen-ui .reward-item__image { background: #f3ece4 !important; }
body.aldhamen-ui .reward-item__progress > div { background: #f0dedc; }
body.aldhamen-ui .reward-item__progress i { background: #743139 !important; }
body.aldhamen-ui .customer-account-kpis { gap: 12px; }
body.aldhamen-ui :is(.a6614-account-balance,.a6614-account-mini,.customer-account-shortcuts a,.birthday-gift-card) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui .a6614-account-balance strong { color: #743139 !important; font-variant-numeric: tabular-nums; }
body.aldhamen-ui .success-card {
  width: min(100%, 850px);
  border: 1px solid #e7ddd1 !important;
  border-radius: 18px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui :is(.order-eta-card,.order-summary,.order-rewards-card,.track-info-grid > div,.order-rating-card,.game-promo) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 14px !important;
  background: #f8f3eb !important;
  color: #321e22 !important;
}
body.aldhamen-ui .order-id { color: #743139 !important; font-variant-numeric: tabular-nums; }
body.aldhamen-ui .rating-stars { display: flex !important; flex-wrap: nowrap; gap: 8px; justify-content: center; }
body.aldhamen-ui .rating-stars label { display: grid; justify-items: center; min-width: 42px; }
body.aldhamen-ui .rating-stars label :is(span,small) { color: #743139; }
body.aldhamen-ui .ald-game-shell { max-width: 100%; }
body.aldhamen-ui .ald-game-cell { border-radius: 10px; background: #f3ece4 !important; }
body.aldhamen-ui .ald-game-cell.is-selected { background: #f0dedc !important; }
body.aldhamen-ui .coupon-code-entry { min-width: 0; }
body.aldhamen-ui .coupon-code-entry input { min-width: 0; }
body.aldhamen-ui .menu-view-page { width: min(100% - 28px, 1280px); margin-inline: auto; }
body.page-menu-view {
  --menu-wine: #743139;
  --menu-wine-deep: #321e22;
  --menu-pink: #98535b;
  --menu-blush: #f0dedc;
  --menu-paper: #fffcf8;
  --menu-shell: #f8f3eb;
  --menu-line: #e7ddd1;
  --menu-muted: #675a58;
}
body.page-order-status {
  --order-wine: #743139;
  --order-wine-deep: #321e22;
  --order-pink: #98535b;
  --order-blush: #f0dedc;
  --order-paper: #fffcf8;
  --order-shell: #f8f3eb;
  --order-line: #e7ddd1;
  --order-muted: #675a58;
}
body.aldhamen-ui :is(.menu-view-head,.menu-view-toolbar,.menu-view-card) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui .menu-view-hero { border-radius: 17px !important; background: #f0dedc !important; color: #321e22 !important; }
body.aldhamen-ui .menu-view-hero :is(h1,p,small) { color: #321e22 !important; }
body.aldhamen-ui .menu-view-card img { object-fit: contain; }
body.aldhamen-ui .menu-view-price strong { color: #743139 !important; font-variant-numeric: tabular-nums; }

/* Sign-in, product editing and secondary customer screens use the same card system. */
body.aldhamen-ui :is(.auth-card,.customer-auth-card,.p6617-card,.product-edit-shell,.customer-order-card,.customer-order-kpis article,.spin-state-card,.spin-result-card,.spin-stage,.spin-rules) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui :is(.auth-page,.customer-auth-page,.p6617,.product-edit-page,.customer-orders-page,.spin-page) {
  max-width: min(100% - 28px, 1280px);
  margin-inline: auto;
}
body.aldhamen-ui :is(.auth-card,.customer-auth-card) { max-width: 520px; }
body.aldhamen-ui :is(.auth-card,.customer-auth-card) :is(h1,h2) { color: #321e22 !important; }
body.aldhamen-ui :is(.auth-card button,.customer-auth-card button,.p6617-primary,.product-edit-form button,.spin-main-btn) {
  min-height: 46px;
  border: 1px solid #c8a9a3 !important;
  border-radius: 14px !important;
  background: #f0dedc !important;
  color: #321e22 !important;
  font-weight: 800;
  box-shadow: none !important;
}
body.aldhamen-ui :is(.p6617-topbar,.product-edit-topbar,.customer-account-top,.customer-orders-top,.rewards-experience__header,.spin-head,.ald-game-header) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  box-shadow: var(--ald-shadow) !important;
}
body.aldhamen-ui :is(.p6617-main,.product-edit-form,.customer-order-cards) { min-width: 0; }
body.aldhamen-ui .customer-order-card { color: #321e22 !important; }
body.aldhamen-ui .customer-order-total strong { color: #743139 !important; font-variant-numeric: tabular-nums; }
body.aldhamen-ui .spin-hero { border-radius: 17px; background: #f0dedc !important; color: #321e22 !important; }
body.aldhamen-ui .spin-hero :is(h1,p,small) { color: #321e22 !important; }
body.aldhamen-ui .spin-head a { min-height: 44px; }
body.aldhamen-ui .a6-kitchen { background: #f8f3eb !important; color: #321e22; }
body.aldhamen-ui .a6-kitchen :is(.kitchen-card,.kitchen-order-card,.kitchen-stat,.kitchen-topbar) {
  border: 1px solid #e7ddd1 !important;
  border-radius: 17px !important;
  background: #fffcf8 !important;
  color: #321e22 !important;
}

@media (max-width: 900px) {
  body.page-admin .a6-admin-sidebar { border-radius: 0 !important; }
  body.page-staff-pos .a6-pos-sidebar { border-radius: 0 !important; }
  body.page-staff-pos .pos23-products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.page-home:not(.staff-app) .site { width: min(100% - 20px, 1480px); }
}
@media (max-width: 640px) {
  body.aldhamen-ui { font-size: 15px; }
  body.aldhamen-ui :is(.staff-orders-page,.order-detail-page,.coupon-staff-shell,.customer-account-page,.rewards-experience,.ald-game-page,.menu-view-page) {
    width: min(100% - 20px, 1280px);
  }
  body.page-home:not(.staff-app) .nx-customer-header { padding: 8px 12px !important; }
  body.page-home:not(.staff-app) .nx-customer-header .brand img { width: 38px; height: 38px; }
  body.page-staff-pos .pos23-products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  body.page-staff-pos .pos23-product { padding: 8px !important; }
  body.page-staff-pos .pos23-info strong { font-size: 14px !important; }
  body.page-staff-pos .pos23-price { font-size: 14px !important; }
  body.page-staff-pos .pos44-recent { margin-bottom: 10px; }
  body.page-admin .a6-admin-content { padding-inline: 10px !important; }
  body.page-admin .a6-page-title h1 { font-size: 25px !important; }
  body.aldhamen-ui .rewards-overview { display: grid; }
  body.aldhamen-ui .rewards-balance { width: 100%; }
  body.aldhamen-ui .rating-stars { gap: 3px; }
  body.aldhamen-ui .rating-stars label { min-width: 38px; }
  body.aldhamen-ui .coupon-code-entry { display: grid; grid-template-columns: minmax(0,1fr); }
  body.aldhamen-ui .coupon-code-entry button { width: 100%; min-height: 46px; }
  body.aldhamen-ui :is(.auth-page,.customer-auth-page,.p6617,.product-edit-page,.customer-orders-page,.spin-page) {
    max-width: min(100% - 20px, 1280px);
  }
  body.aldhamen-ui :is(.pos23-options-card,.pos26-branch-card,.pos661-shift-card,.choice-modal,.pwa-install-card) {
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.aldhamen-ui *, body.aldhamen-ui *::before, body.aldhamen-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body.page-order-status.aldhamen-ui .order-id {
  justify-self: center !important;
  align-self: center !important;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 4px auto 24px !important;
  padding: 10px 24px 8px !important;
  border: 2px solid #e7ddd1;
  border-radius: 16px;
  background: #fffcf8;
  color: #321e22 !important;
  font-size: clamp(36px, 12vw, 64px) !important;
  line-height: 1 !important;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 18px rgba(50,30,34,.14);
}
