/* ===== v1.36.0 — الواجهة الفاتحة الزجاجية =====
   قواعد الأداء: الضبابية (backdrop-filter) فقط للشريط العلوي والنوافذ المنبثقة وبلاطات الرئيسية؛
   لا ضبابية على القوائم والجداول ولا على نقطة البيع. الحركات بـ transform/opacity فقط. */
:root{
  --g-bg:#FFFFFF; --g-bd:#ECE6DC;   /* v1.54 لوحة أ: بطاقات بيضاء صلبة بحد خفيف بدل الزجاج الشفاف */ --g-ink:#24211B;
  --g-sh:0 8px 22px rgba(60,40,20,.10), inset 0 1px 0 rgba(255,255,255,.75);
  --g-blur:blur(14px) saturate(160%); --g-spring:cubic-bezier(.2,.9,.3,1.25);
}
html{ background:#FAF7F2; }
body{ background:transparent; }
body::before{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:#FAF7F2; }   /* v1.53.1: بلا تدرّج لوني — خلفية سادة هادئة (كان بقعتان خوخية وخضراء) */
#loginScreen{ background:transparent; }
.login-card{ background:rgba(255,255,255,.72); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border:1px solid var(--g-bd); border-radius:22px; box-shadow:0 20px 50px rgba(60,40,20,.18); }

/* ---- الشريط العلوي (فاتح زجاجي) ---- */
.top-tabs{ background:rgba(255,255,255,.66); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border-bottom:2px solid var(--rust); }
.top-tab{ color:var(--ink-soft); } .top-tab:hover{ color:var(--ink); } .top-tab.active{ color:var(--ink); background:rgba(180,83,47,.10); }
.ln-btn{ background:rgba(255,255,255,.78); color:var(--ink); border:1px solid var(--line); border-radius:12px; transition:transform .2s var(--g-spring), background .15s; }
.ln-btn:hover{ background:#fff; } .ln-btn:active{ transform:scale(.93); }
.ln-cur{ color:var(--ink); }
#railTitle{ color:var(--ink) !important; }
.top-tabs-end #railTitle .en{ color:#8a8470 !important; }
#topBrandLogoSlot img{ border:1px solid var(--line); border-radius:10px !important; }
.g-home-link{ cursor:pointer; }

/* شعار البرنامج (يمين الشريط) */
.g-prog{ display:flex; align-items:center; justify-content:center; padding:6px 10px; margin-inline-end:4px; border:0; background:transparent; cursor:pointer; flex:none; transition:transform .22s var(--g-spring); }
.g-prog:hover{ transform:scale(1.08); } .g-prog:active{ transform:scale(.92); }
.g-prog svg{ display:block; }
.g-prog .p{ stroke-dasharray:100; stroke-dashoffset:0; }
.g-prog.g-play .p{ stroke-dashoffset:100; animation:g-write 2.6s ease-out both; }
.g-prog.g-play .b2{ animation-delay:.15s; } .g-prog.g-play .b3{ animation-delay:.3s; }
.g-prog.g-play .d9a{ animation-delay:.7s; } .g-prog.g-play .d9b{ animation-delay:1s; } .g-prog.g-play .d0{ animation-delay:1.2s; }
@keyframes g-write{ from{ stroke-dashoffset:100; } to{ stroke-dashoffset:0; } }

/* ---- القوائم المنبثقة والنوافذ ---- */
.ln-panel{ background:rgba(255,255,255,.86); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border:1px solid var(--g-bd); border-radius:20px; }
.ln-bd{ background:rgba(60,40,20,.22); }
.modal-box{ background:rgba(252,248,238,.93); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border:1px solid rgba(255,255,255,.8); border-radius:20px; box-shadow:0 22px 60px rgba(60,40,20,.28); }
#modalOverlay.tiled .modal-box{ backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--paper); border-radius:12px; }
.acct-menu{ background:rgba(255,255,255,.9); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border-radius:16px; }

/* ---- حاويات المحتوى (بدون ضبابية) ---- */
.form-card,.recipe-card,#accountsTabContent{ background:rgba(255,255,255,.74); border:1px solid rgba(255,255,255,.85); border-radius:18px; box-shadow:0 10px 28px rgba(60,40,20,.12); }
.mc,.ac-list,.ac-lines,.ac-count,.ac-bars,.mt-panel,.pin-list,#matRows,.home-steps{ border-radius:14px; }
.tbtn{ background:rgba(255,255,255,.8); color:var(--ink); border:1px solid var(--line); border-radius:12px; transition:transform .18s var(--g-spring), background .15s; }
.tbtn:hover{ background:#fff; } .tbtn:active{ transform:scale(.96); }
.tbtn.pri,.tbtn.ac-pri{ background:var(--rust); color:#fff; border-color:var(--rust); }
.btn-primary,.add-btn{ border-radius:12px; transition:transform .18s var(--g-spring), background .15s; } .btn-primary:active,.add-btn:active{ transform:scale(.97); }
input,select,textarea{ border-radius:10px; }
input:focus,select:focus,textarea:focus{ outline:none; box-shadow:0 0 0 3px rgba(180,83,47,.22); border-color:var(--rust); }
.placeholder{ color:var(--ink-soft); }
.tbtn-opt{ color:var(--ink); background:rgba(255,255,255,.8); border-color:var(--line); border-radius:12px; }
.rb-group{ background:rgba(255,255,255,.8); border-color:var(--line); border-radius:12px; } .rb-group button{ color:var(--ink); } .rb-group button + button{ border-inline-start-color:var(--line); }
.sub-tabs{ background:transparent; }

/* ---- القائمة الجانبية لدفتر الوصفات (ر١) ---- */
.rail{ background:rgba(255,255,255,.46); border-inline-end:1px solid rgba(255,255,255,.7); }
.rail-title{ color:var(--ink); } .rail-sub{ color:var(--ink-soft); }
.search-box{ position:relative; background:rgba(255,255,255,.92); border:1px solid var(--line); border-radius:999px; padding:10px 16px; box-shadow:0 2px 8px rgba(60,40,20,.08); transition:box-shadow .2s; }
.search-box:focus-within{ box-shadow:0 0 0 3px rgba(180,83,47,.22); }
.chip{ border-color:var(--line); color:var(--ink-soft); background:rgba(255,255,255,.7); transition:transform .18s var(--g-spring), background .15s; }
.chip:hover{ border-color:var(--rust); } .chip:active{ transform:scale(.95); }
.chip.active{ background:var(--rust); border-color:var(--rust); color:#fff; }
.chip-label,.flt-lbl,.util-more > summary{ color:var(--ink-soft); }
.flt-select{ background:rgba(255,255,255,.92); color:var(--ink); border-color:var(--line); border-radius:999px; }
.cat-pop{ background:rgba(255,255,255,.97); border-color:var(--line); } .cat-pop input{ background:#fff; color:var(--ink); border-color:var(--line); }
.cat-opt{ color:var(--ink); } .cat-opt:hover{ background:var(--paper-dark); } .cat-none{ color:var(--ink-soft); }
.util-btn{ background:rgba(255,255,255,.8); color:var(--ink); border-color:var(--line); border-radius:12px; } .util-btn:hover{ color:var(--rust-dark); border-color:var(--rust); }
#categoryChips .flt-chips{ flex-wrap:wrap; }
.ticket{ background:rgba(255,255,255,.82); border-radius:14px; border-inline-start-width:4px; box-shadow:0 2px 8px rgba(60,40,20,.07); transition:transform .18s var(--g-spring), box-shadow .18s; }
.ticket:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(60,40,20,.14); } [dir="rtl"] .ticket:hover{ transform:translateY(-2px); }
.ticket.selected{ background:#fff; }
.empty-note{ color:var(--ink-soft); }
.bulk-bar{ border-radius:14px; background:rgba(255,255,255,.85); }

/* ---- الصفحة الرئيسية (د١) ---- */
#homeView{ padding:28px 24px 60px; }
.home-wrap{ max-width:980px; background:transparent; box-shadow:none; padding:0; border-radius:0; display:flex; flex-direction:column; }
.home-hello{ font-size:26px; order:-3; } .home-sub{ order:-3; margin-bottom:14px; }
.home-section{ color:var(--ink-soft); margin:22px 0 10px; } .home-section::after{ background:rgba(201,188,151,.7); }
.home-sales{ order:-2; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:16px 20px; margin-bottom:12px; border-radius:20px; background:var(--g-bg); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border:1px solid var(--g-bd); box-shadow:var(--g-sh); }
.hs-l{ display:block; font-size:12.5px; color:var(--ink-soft); }
.hs-n{ font-family:'Space Grotesk','IBM Plex Sans Arabic',sans-serif; font-size:30px; line-height:1.2; }
.hs-side{ display:flex; gap:22px; } .hs-side span{ display:block; font-size:11.5px; color:var(--ink-soft); } .hs-side b{ font-size:18px; }
.ln-home .home-section{ display:none; }
.ln-grid.sm{ gap:12px; }
.ln-grid.sm .ln-tile,.ln-panel .ln-tile{ background:var(--g-bg); border:1px solid var(--g-bd); border-radius:20px; box-shadow:var(--g-sh); transition:transform .22s var(--g-spring), box-shadow .22s; }
.ln-grid.sm .ln-tile{ backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); }
.ln-grid.sm .ln-tile:hover{ transform:translateY(-3px) scale(1.03); box-shadow:0 12px 26px rgba(60,40,20,.18); border-color:#fff; }
.ln-tile:active{ transform:scale(.95) !important; }
.ln-tile .ic{ border-radius:15px; background:rgba(36,33,27,.86); }
.ln-grid .ln-tile.on,.ln-grid.sm .ln-tile.on,.ln-panel .ln-tile.on{ background:rgba(180,83,47,.9); border-color:rgba(255,255,255,.5); color:#fff; } .ln-tile.on .ic{ background:rgba(255,255,255,.22) !important; color:#fff; } .ln-tile.on .s{ color:rgba(255,255,255,.8); }
.home-grid{ gap:12px; }
.home-card{ background:var(--g-bg); backdrop-filter:var(--g-blur); -webkit-backdrop-filter:var(--g-blur); border:1px solid var(--g-bd); border-radius:18px; box-shadow:var(--g-sh); border-inline-start-width:1px; transition:transform .22s var(--g-spring), box-shadow .22s; }
.home-card:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(60,40,20,.18); } .home-card:active{ transform:scale(.97); }
.home-card.warn,.home-card.danger{ border-color:var(--g-bd); } .home-card.danger{ background:rgba(255,235,228,.7); } .home-card.danger .n{ animation:g-pulse 2.6s ease-in-out infinite; }
.home-card.warn .n{ color:#9A6B00; }
.home-ok{ border-radius:18px; background:rgba(238,245,234,.8); }
.home-step{ cursor:pointer; }

/* ---- حركات الدخول (مرة واحدة) ---- */
@keyframes g-up{ from{ opacity:0; transform:translateY(10px) scale(.96); } to{ opacity:1; transform:none; } }
@keyframes g-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.6; } }
#homeView:not(.g-done) .ln-home .ln-tile,#homeView:not(.g-done) .home-card,#homeView:not(.g-done) .home-sales,#homeView:not(.g-done) .home-ok{ animation:g-up .55s var(--g-spring) both; }
#homeView .ln-tile:nth-child(1),#homeView .home-card:nth-child(1){ animation-delay:0s !important; }
#homeView .ln-tile:nth-child(2),#homeView .home-card:nth-child(2){ animation-delay:.05s !important; }
#homeView .ln-tile:nth-child(3),#homeView .home-card:nth-child(3){ animation-delay:.1s !important; }
#homeView .ln-tile:nth-child(4),#homeView .home-card:nth-child(4){ animation-delay:.15s !important; }
#homeView .ln-tile:nth-child(5),#homeView .home-card:nth-child(5){ animation-delay:.2s !important; }
#homeView .ln-tile:nth-child(6),#homeView .home-card:nth-child(6){ animation-delay:.25s !important; }
#homeView .ln-tile:nth-child(7),#homeView .home-card:nth-child(7){ animation-delay:.3s !important; }
#homeView .ln-tile:nth-child(n+8),#homeView .home-card:nth-child(n+8){ animation-delay:.35s !important; }

/* ---- نقطة البيع: شريط علوي فاتح، بلا ضبابية ---- */
.pos-top{ background:rgba(255,255,255,.7); border-color:rgba(255,255,255,.85); box-shadow:0 4px 14px rgba(60,40,20,.08); }
.pos-tab{ color:var(--ink-soft); } .pos-tab:hover{ background:rgba(255,255,255,.9); } .pos-tab.on{ background:var(--rust); color:#fff; }
.pos-user{ color:var(--ink); } .pos-ibtn{ background:rgba(255,255,255,.85); color:var(--ink); border:1px solid var(--line); } .pos-ibtn:hover{ background:#fff; } .pos-ibtn.off{ color:#948D79; }
.pos-btn.ghost{ background:transparent; border-color:var(--line); color:var(--ink); }
.pos-ohead .pos-title,.rp-title{ color:var(--ink); }

/* ---- الأجهزة الضعيفة / تقليل الحركة / إيقاف يدوي ---- */
html.g-lite .top-tabs,html.g-lite .modal-box,html.g-lite .ln-panel,html.g-lite .ln-tile,html.g-lite .home-card,html.g-lite .home-sales,html.g-lite .login-card,html.g-lite .acct-menu{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
html.g-lite .top-tabs{ background:rgba(255,255,255,.96); } html.g-lite .modal-box{ background:#FCF8EE; } html.g-lite .ln-panel,html.g-lite .acct-menu{ background:#fff; }
html.g-lite *,html.g-lite *::before,html.g-lite *::after{ animation:none !important; transition:none !important; }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation:none !important; transition:none !important; } .g-prog .p{ stroke-dashoffset:0 !important; } }

/* شريط تنبيه نسخة المعاينة */
.g-preview{ position:fixed; z-index:3000; bottom:10px; inset-inline-start:10px; background:#B4532F; color:#fff; font:600 11px 'IBM Plex Sans Arabic',sans-serif; padding:5px 12px; border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.25); opacity:.92; pointer-events:none; }

@media (max-width:600px){
  #homeView{ padding:16px 12px 50px; }
  .ln-grid.sm{ gap:8px; } .ln-grid.sm .ln-tile{ flex:0 0 calc(33.333% - 6px); min-width:0; min-height:86px; padding:10px 4px 8px; border-radius:16px; }
  .ln-grid.sm .ln-tile .ic{ width:40px; height:40px; border-radius:12px; } .ln-grid.sm .ln-tile .t{ font-size:12px; }
  .hs-n{ font-size:26px; }
}

/* ---- قائمة الحسابات الجانبية (فاتحة) ---- */
.ac-side{ background:rgba(255,255,255,.62) !important; border:1px solid rgba(255,255,255,.85) !important; box-shadow:0 8px 22px rgba(60,40,20,.10) !important; }
.ac-side-t{ color:var(--ink-soft) !important; border-top-color:rgba(201,188,151,.7) !important; }
.ac-side-i{ color:var(--ink) !important; } .ac-side-i:hover{ background:rgba(180,83,47,.08) !important; }
.ac-side-i.on,.ac-side-row.on .ac-side-i{ background:var(--rust) !important; color:#fff !important; box-shadow:none !important; }
.ac-pop{ background:rgba(0,0,0,.06) !important; color:var(--ink) !important; } .ac-sub::before{ background:var(--line) !important; }
#winDock{ background:rgba(255,255,255,.9); border-top-color:var(--rust); }

/* ---- v1.36.1: الشعار بدل زر ⠿، أيقونات الشريط، وإصلاح ألوان الكتابة عند المرور ---- */
.ln-btn{ display:none !important; }
.g-prog{ padding:5px 8px; } .g-prog:hover{ filter:drop-shadow(0 4px 10px rgba(14,42,63,.35)); }
.ln-cur{ gap:10px; margin-inline-start:4px; }
.ln-cur #lnCurIc{ width:34px; height:34px; border-radius:11px; background:linear-gradient(135deg,var(--rust),#C8673F); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(180,83,47,.28); }
.ln-cur #lnCurIc svg{ opacity:1; width:19px; height:19px; }
.ln-cur b{ font-size:16px; letter-spacing:.2px; }
#notifBtn,#acctMenuBtn{ align-self:center; min-height:0; padding:8px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.9) !important; background:rgba(255,255,255,.62); margin-block:0; transition:transform .18s var(--g-spring), background .15s; }
#notifBtn:hover,#acctMenuBtn:hover{ background:#fff; color:var(--ink); } #notifBtn:active,#acctMenuBtn:active{ transform:scale(.95); }
.top-tabs-end{ gap:10px; }
.tbtn:hover{ color:var(--ink); } .tbtn.pri:hover,.tbtn.ac-b1:hover,.tbtn.ac-pri:hover{ color:#fff; }
.tbtn.danger:hover{ color:var(--danger); }
.ac-tab{ color:var(--ink-soft); } .ac-tab:hover{ color:var(--ink); background:rgba(180,83,47,.09); } .ac-tab.on,.ac-tab.on:hover{ color:#fff; background:var(--rust); }
.wd-label,.pos-hint,.pos-ohead .pos-no,.rp-title small,.rp-dates{ color:var(--ink-soft); }

/* فلتر تصنيفات خريطة القائمة (نقطة البيع) */
.pme-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.pme-chip{ border:1px solid var(--line); background:rgba(255,255,255,.85); color:var(--ink); font:600 13px 'IBM Plex Sans Arabic',sans-serif; padding:6px 13px; border-radius:999px; cursor:pointer; min-height:34px; transition:transform .18s var(--g-spring), background .15s; }
.pme-chip:hover{ border-color:var(--rust); } .pme-chip:active{ transform:scale(.95); }
.pme-chip.on{ background:var(--rust); border-color:var(--rust); color:#fff; }

/* ---- أيقونات الرئيسية (ي٣): كبيرة بلا إطار + شارة تنبيه ---- */
.ln-tile{ position:relative; }
/* v1.69.1: أيقونات موحّدة بلا ألوان؛ التمرير والمربع النشط بالبرتقالي */
.ln-grid.sm .ln-tile{ padding:16px 6px 12px; gap:6px; }
.ln-grid.sm .ln-tile .ic{ width:52px; height:52px; background:transparent !important; color:var(--mc,#24211B); border-radius:0; }
.ln-grid.sm .ln-tile .ic svg{ width:40px; height:40px; stroke-width:1.5; }
.ln-grid.sm .ln-tile:hover .ic{ color:var(--rust); } .ln-grid.sm .ln-tile.on .ic{ color:#fff; }
.ln-bdg{ position:absolute; top:8px; inset-inline-start:8px; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#C89B3C; color:#fff; font:700 11px/20px 'IBM Plex Sans Arabic',sans-serif; font-style:normal; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.ln-bdg.bad{ background:#A8412A; }
.ln-panel .ln-tile[data-m] .ic{ color:#fff; background:var(--mc,#26221F); }

/* ---- v1.36.3: تحسينات خانات الإدخال ---- */
.hr-wrap .hr-bar .hr-chk{ white-space:nowrap; flex:none; }
.hr-wrap .hr-bar .hr-chk input[type=checkbox]{ width:18px !important; height:18px !important; min-height:0 !important; min-width:0 !important; flex:none !important; padding:0; accent-color:#B4532F; }
.ac-quick .g-search{ flex:1 1 240px; min-width:200px; height:42px; box-sizing:border-box; padding:0 16px; border:1px solid var(--g-bd,#d9cfb4); border-radius:21px; background:rgba(255,255,255,.75); font:inherit; font-size:14px; color:var(--ink); }
.ac-quick .g-search:focus{ outline:2px solid #C9772B; outline-offset:0; background:#fff; }
.vc-filter{ background:rgba(255,255,255,.55); border:1px solid var(--g-bd,#e3d8be); border-radius:14px; padding:10px 12px; gap:10px !important; }
.vc-filter label.sub-label{ display:flex; align-items:center; gap:6px; margin:0; font-weight:600; color:var(--ink); }
.vc-filter input[type=date]{ height:40px; box-sizing:border-box; padding:0 10px; border:1px solid var(--g-bd,#d9cfb4); border-radius:10px; background:#fff; font:inherit; font-size:14px; }
.vc-filter .tbtn{ height:40px; padding:0 18px; }
.vc-filter .seg button{ height:40px; padding:0 14px; }
/* إعدادات الترحيل المحاسبي */
.glm-intro h2{ margin:0 0 4px; font-size:19px; } .glm-intro p{ margin:0 0 14px; color:var(--ink-soft); font-size:13.5px; }
.glm-card{ background:rgba(255,255,255,.7); border:1px solid var(--g-bd,#e3d8be); border-radius:16px; padding:6px 18px 8px; margin-bottom:14px; }
.glm-card header{ padding:12px 0 8px; border-bottom:1px solid #eadfc4; } .glm-card h3{ margin:0; font-size:16px; color:#B4532F; } .glm-card header p{ margin:3px 0 0; font-size:12.5px; color:var(--ink-soft); }
.glm-row{ display:grid; grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr); gap:14px; align-items:center; padding:10px 0; border-bottom:1px dashed #eadfc4; }
.glm-row:last-child{ border-bottom:0; }
.glm-lbl{ display:flex; flex-direction:column; gap:2px; } .glm-lbl b{ font-size:14px; } .glm-lbl small{ font-size:12px; color:var(--ink-soft); }
.glm-row select{ width:100%; height:42px; box-sizing:border-box; padding:0 12px; border:1px solid #cfc29a; border-radius:10px; background:#fff; font:inherit; font-size:14px; }
@media(max-width:640px){ .glm-row{ grid-template-columns:1fr; gap:6px; } }

/* v1.38.3 — هيكل تحميل الرئيسية */
.home-skel{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:18px; }
.home-skel i{ display:block; height:86px; border-radius:16px; background:linear-gradient(100deg,rgba(255,255,255,.35) 30%,rgba(255,255,255,.75) 50%,rgba(255,255,255,.35) 70%); background-size:200% 100%; animation:homeSkel 1.3s linear infinite; border:1px solid rgba(255,255,255,.6); }
.home-sub{ color:var(--ink-soft); font-size:13px; margin-top:4px; }
@keyframes homeSkel{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce){ .home-skel i{ animation:none; } }

/* v1.38.3 — المنيو الإلكتروني: لوحة الإدارة */
.em{ display:block; max-width:760px; margin:0 auto; font-size:14px; color:var(--ink); }
.em-tabs{ display:grid; grid-template-columns:repeat(4,1fr); gap:4px; padding:4px; background:rgba(255,255,255,.55); border:1px solid rgba(180,83,47,.15); border-radius:14px; margin-bottom:14px; }
.em-tabs button{ border:0; background:transparent; color:var(--ink); padding:9px 4px; border-radius:10px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:background .15s, color .15s; }
.em-tabs button.on{ background:var(--rust,#B4532F); color:#fff; box-shadow:0 2px 8px rgba(180,83,47,.3); }
.em-card{ background:rgba(255,255,255,.7); border:1px solid rgba(180,83,47,.14); border-radius:16px; padding:14px 16px; margin-bottom:12px; }
.em-card h4{ margin:0 0 10px; font-size:15px; }
.em-hint{ color:var(--ink-soft,#6b6252); font-size:13px; line-height:1.8; margin:6px 2px; }
.em-empty{ text-align:center; color:var(--ink-soft,#6b6252); padding:22px 8px; }
.em-ih{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.em-ih b{ font-size:15px; }
.em-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.em-g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.em-w2{ grid-column:1 / -1; }
@media (max-width:560px){ .em-grid,.em-g3{ grid-template-columns:1fr; } }
.em-f{ display:flex; flex-direction:column; gap:4px; margin:0; }
.em-f > span{ font-size:13.5px; font-weight:600; color:var(--ink-soft,#6b6252); }
.em .em-f select{ height:42px; width:100%; box-sizing:border-box; padding:0 12px; border:1px solid #d9cfb4; border-radius:12px; background-color:#fff; color:var(--ink,#24211B); font:inherit; font-size:14px; }
.em .em-f select:focus{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.18); }
.em > .em-card > .em-f > select, .em > .em-card > label.em-f{ max-width:440px; }
.em .em-f input, .em input[type=text], .em input[type=number]{ height:42px; width:100%; box-sizing:border-box; padding:0 12px; border:1px solid #d9cfb4; border-radius:12px; background:#fff; color:var(--ink,#24211B); font:inherit; font-size:14px; box-shadow:none; }
.em .em-f input::placeholder{ color:#a79d86; font-size:13px; }
.em .em-f input:focus{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.18); }
/* v1.54 لون الهوية: دوائر ألوان جاهزة + لون مخصص */
.em-cols{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.em-col{ position:relative; width:34px; height:34px; border-radius:17px; border:2px solid #fff; box-shadow:0 0 0 1px #DDD3C3; cursor:pointer; padding:0; }
.em-col.on{ box-shadow:0 0 0 2px #1F1D1A; }
.em-cus{ display:grid; place-items:center; background:conic-gradient(#e74c3c,#f1c40f,#2ecc71,#1abc9c,#3498db,#9b59b6,#e74c3c); overflow:hidden; color:#fff; font-size:18px; font-weight:700; text-shadow:0 1px 2px rgba(0,0,0,.45); }
.em-cus input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.em-sw{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:13.5px; font-weight:600; margin:0; }
.em-sw input{ position:absolute; opacity:0; width:0; height:0; }
.em-sw i{ position:relative; width:38px; height:22px; border-radius:11px; background:#cfc6ad; transition:background .18s; flex:none; }
.em-sw i::after{ content:""; position:absolute; top:3px; inset-inline-start:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:inset-inline-start .18s; }
.em-sw input:checked + i{ background:#3E7D5B; }
.em-sw input:checked + i::after{ inset-inline-start:19px; }
.em-sw input:focus-visible + i{ box-shadow:0 0 0 3px rgba(180,83,47,.25); }
.em-sep{ height:1px; background:rgba(180,83,47,.12); margin:12px 0; }
.em-seg{ padding:10px 0; border-top:1px dashed rgba(180,83,47,.18); }
.em-seg:first-of-type{ border-top:0; padding-top:0; }
.em-seg > b{ display:block; margin-bottom:6px; font-size:13.5px; }
.em-btn{ height:42px; padding:0 20px; border:0; border-radius:12px; background:var(--rust,#B4532F); color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.em-btn:disabled{ opacity:.6; cursor:wait; }
.em-qr{ text-align:center; }
.em-qr img{ background:#fff; padding:8px; border-radius:12px; border:1px solid #e3d9bd; }
.em-url{ font-size:11.5px; word-break:break-all; color:var(--ink-soft,#6b6252); margin:8px 0 12px; }
.em-trow{ display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-top:1px dashed rgba(180,83,47,.15); font-size:12.5px; }
.em-trow:first-of-type{ border-top:0; }
.em-trow span{ color:var(--ink-soft,#6b6252); word-break:break-all; text-align:end; }
.em-msg{ margin-top:10px; font-size:13px; }

/* ============ v1.38.5 — لغة موحّدة للخانات والنماذج (تُطبَّق على نوافذ النماذج والشاشات الرئيسية) ============ */
:root{ --fm-bd:#D9CFB4; --fm-bd-h:#C4B88F; --fm-h:42px; --fm-r:12px; --fm-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238B4226' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]), select, textarea),
:is(.gl-form,.field,.mf,.fm) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]), select, textarea){
  box-sizing:border-box; min-height:var(--fm-h); padding:0 12px; border:1px solid var(--fm-bd); border-radius:var(--fm-r); background-color:#fff; color:var(--ink,#24211B);
  font:inherit; font-size:14px; font-weight:400; box-shadow:none; transition:border-color .15s, box-shadow .15s; }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) textarea, :is(.gl-form,.field,.mf,.fm) textarea{ padding:10px 12px; line-height:1.7; }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) :is(input,select,textarea):hover, :is(.gl-form,.field,.mf,.fm) :is(input,select,textarea):hover{ border-color:var(--fm-bd-h); }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) :is(input,select,textarea):focus, :is(.gl-form,.field,.mf,.fm) :is(input,select,textarea):focus{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.18); }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) select, :is(.gl-form,.field,.mf,.fm) select{
  -webkit-appearance:none; appearance:none; text-align:start; padding-inline-end:34px; cursor:pointer;
  background-image:var(--fm-chev); background-repeat:no-repeat; background-position:left 13px center; background-size:12px 8px; }
html[dir=ltr] .win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.um-row,.fm) select, html[dir=ltr] :is(.gl-form,.field,.mf,.fm) select{ background-position:right 13px center; }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.fm) :is(input,select,textarea):disabled, :is(.gl-form,.field,.mf,.fm) :is(input,select,textarea):disabled{ background-color:#F3EEDF; color:#9a917a; border-color:#E6DEC6; cursor:not-allowed; }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.fm) input::placeholder, :is(.gl-form,.field,.mf,.fm) input::placeholder{ color:#a79d86; font-size:13px; }
/* تسميات الخانات */
.win .gl-form .pos-field{ gap:6px; font-size:12.5px; font-weight:600; color:var(--ink-soft,#6b6252); margin:0 0 14px; }
.win .pos-field{ font-size:12.5px; font-weight:600; color:var(--ink-soft,#6b6252); }
.win .field > label, .win .mf > label{ font-size:12.5px; font-weight:600; color:var(--ink-soft,#6b6252); margin-bottom:5px; }
/* مربعات الاختيار */
.win input[type=checkbox], .gl-form input[type=checkbox]{ width:19px; height:19px; accent-color:#B4532F; border-radius:5px; vertical-align:middle; cursor:pointer; flex:none; }
.win input[type=radio]{ accent-color:#B4532F; }
/* أزرار الحفظ داخل النماذج */
.win .gl-form button.tbtn.pri, .win .gl-form .btn-primary, .win .ac-formfoot .tbtn.pri{ min-height:42px; padding:0 24px; border-radius:12px; font-weight:700; box-shadow:0 4px 12px rgba(180,83,47,.28); }
.win .gl-form .tbtn{ min-height:42px; border-radius:12px; }
@media (max-width:600px){ :root{ --fm-h:46px; } .win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.fm) :is(input,select,textarea){ font-size:16px; } }
.win :is(.gl-form,.pos-field,.field,.mf,.field-mini,.fm) :is(input,select,textarea){ max-width:100%; min-width:0; }
.win .gl-grid > *, .win .pos-field, .win .field, .win .mf{ min-width:0; }
.gl-grid{ grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); }
.coa-st{ flex:none; margin-inline-start:auto; font-size:11px; padding:2px 8px; border-radius:10px; border:1px solid var(--line,#E3D8BE); background:transparent; color:inherit; cursor:pointer; opacity:.75; }
.coa-st:hover{ opacity:1; background:rgba(180,83,47,.08); }
/* البيع بالوزن */
.wg-ov{ position:fixed; inset:0; z-index:1300; display:none; } .wg-ov.open{ display:block; }
.wg-box{ position:absolute; inset-inline:0; margin:auto; top:50%; transform:translateY(-50%); width:min(720px,96vw); max-height:94vh; overflow:auto; background:#fffdf7; border-radius:22px; padding:18px; display:grid; grid-template-columns:1fr 1fr; gap:14px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.wg-h{ grid-column:1/-1; padding-inline-end:44px; font-weight:700; font-size:17px; } .wg-h small{ font-weight:400; opacity:.7; }
.wg-live{ grid-column:1/-1; background:#2a241c; color:#fff; border-radius:14px; padding:12px 16px; display:flex; justify-content:space-between; align-items:baseline; }
.wg-live .wg-l small{ opacity:.7; margin-inline-start:8px; } .wg-v{ font-family:'Space Grotesk',sans-serif; font-size:32px; font-weight:700; direction:ltr; } .wg-v small{ font-size:15px; opacity:.7; }
.wg-keys{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; direction:ltr; } .wg-k{ padding:14px 0; font-size:20px; border-radius:12px; border:1px solid #E3D8BE; background:#fff; cursor:pointer; font-family:'Space Grotesk',sans-serif; } .wg-k:active{ background:#f1e9d4; }
.wg-side{ display:flex; flex-direction:column; gap:8px; } .wg-tot{ background:#f6f1e3; border-radius:12px; padding:8px 12px; } .wg-r{ display:flex; justify-content:space-between; padding:4px 0; font-size:14px; } .wg-r.tot{ font-size:18px; font-weight:700; border-top:1px solid #E3D8BE; margin-top:4px; padding-top:8px; }
.wg-scale{ display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:640px){ .wg-box{ grid-template-columns:1fr; top:auto; bottom:0; transform:none; border-radius:22px 22px 0 0; width:100vw; } }
/* v1.39.1 — تبويبات إعدادات نقطة البيع */
.pos-stabs{ display:flex; gap:6px; overflow-x:auto; padding:2px 0 10px; margin-bottom:6px; border-bottom:1px solid var(--line,#E3D8BE); scrollbar-width:none; }
.pos-stabs::-webkit-scrollbar{ display:none; }
.pos-stab{ flex:none; border:1px solid var(--line,#E3D8BE); background:rgba(255,255,255,.6); color:inherit; font:inherit; font-size:14px; padding:9px 16px; border-radius:99px; cursor:pointer; white-space:nowrap; }
.pos-stab.on{ background:var(--rust,#B4532F); border-color:var(--rust,#B4532F); color:#fff; font-weight:700; }
.pos-set-pane{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:8px; padding-bottom:70px; }
.pos-set-pane input, .pos-set-pane select, .pos-set-pane textarea{ min-width:0; max-width:100%; box-sizing:border-box; }
.pos-set-pane label select{ width:100%; }
.pos-savebar{ position:sticky; bottom:0; z-index:5; display:flex; justify-content:center; padding:10px 0; background:linear-gradient(to top, var(--bg,#fffdf7) 70%, transparent); }
.pos-savebar .pos-btn{ min-width:220px; }

/* ============ v1.39.3 — توحيد الخانات في بقية الشاشات (فلاتر، تقارير، صفوف المواد، إعدادات نقطة البيع) + إصلاح التباين ============ */
.pos-set-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.rp-bar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.ing-block-row :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.bl-f :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.mat-search-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.ac-quick :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.ac-datenav :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.sub-label :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.g-filters :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.wg-side :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.pos-dlg :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.ac-formfoot :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea){
  box-sizing:border-box; min-height:var(--fm-h); padding:0 12px; border:1px solid var(--fm-bd); border-radius:var(--fm-r); background-color:#fff; color:var(--ink,#24211B);
  font:inherit; font-size:14px; font-weight:400; box-shadow:none; transition:border-color .15s, box-shadow .15s; min-width:0; max-width:100%; }
.pos-set-pane textarea,.rp-bar textarea,.ing-block-row textarea,.bl-f textarea,.mat-search-wrap textarea,.ac-quick textarea,.ac-datenav textarea,.sub-label textarea,.g-filters textarea,.wg-side textarea,.pos-dlg textarea,.ac-formfoot textarea{ padding:10px 12px; line-height:1.7; }
.pos-set-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.rp-bar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.ing-block-row :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.bl-f :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.mat-search-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.ac-quick :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.ac-datenav :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.sub-label :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.g-filters :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.wg-side :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.pos-dlg :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover,
.ac-formfoot :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):hover{ border-color:var(--fm-bd-h); }
.pos-set-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.rp-bar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.ing-block-row :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.bl-f :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.mat-search-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.ac-quick :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.ac-datenav :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.sub-label :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.g-filters :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.wg-side :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.pos-dlg :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.ac-formfoot :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.18); }
.pos-set-pane select,.rp-bar select,.ing-block-row select,.bl-f select,.mat-search-wrap select,.ac-quick select,.ac-datenav select,.sub-label select,.g-filters select,.wg-side select,.pos-dlg select,.ac-formfoot select{
  -webkit-appearance:none; appearance:none; text-align:start; padding-inline-end:34px; cursor:pointer;
  background-image:var(--fm-chev); background-repeat:no-repeat; background-position:left 13px center; background-size:12px 8px; }
html[dir=ltr] .pos-set-pane select,html[dir=ltr] .rp-bar select,html[dir=ltr] .ing-block-row select,html[dir=ltr] .bl-f select,html[dir=ltr] .mat-search-wrap select,html[dir=ltr] .ac-quick select,html[dir=ltr] .ac-datenav select,html[dir=ltr] .sub-label select,html[dir=ltr] .g-filters select,html[dir=ltr] .wg-side select,html[dir=ltr] .pos-dlg select,html[dir=ltr] .ac-formfoot select{ background-position:right 13px center; }
.pos-set-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.rp-bar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.ing-block-row :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.bl-f :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.mat-search-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.ac-quick :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.ac-datenav :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.sub-label :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.g-filters :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.wg-side :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.pos-dlg :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled,
.ac-formfoot :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):disabled{ background-color:#F3EEDF; color:#9a917a; border-color:#E6DEC6; cursor:not-allowed; }
.pos-set-pane input[type=date], .pos-set-pane input[type=month], .pos-set-pane input[type=time],.rp-bar input[type=date], .rp-bar input[type=month], .rp-bar input[type=time],.ing-block-row input[type=date], .ing-block-row input[type=month], .ing-block-row input[type=time],.bl-f input[type=date], .bl-f input[type=month], .bl-f input[type=time],.mat-search-wrap input[type=date], .mat-search-wrap input[type=month], .mat-search-wrap input[type=time],.ac-quick input[type=date], .ac-quick input[type=month], .ac-quick input[type=time],.ac-datenav input[type=date], .ac-datenav input[type=month], .ac-datenav input[type=time],.sub-label input[type=date], .sub-label input[type=month], .sub-label input[type=time],.g-filters input[type=date], .g-filters input[type=month], .g-filters input[type=time],.wg-side input[type=date], .wg-side input[type=month], .wg-side input[type=time],.pos-dlg input[type=date], .pos-dlg input[type=month], .pos-dlg input[type=time],.ac-formfoot input[type=date], .ac-formfoot input[type=month], .ac-formfoot input[type=time]{ padding-inline:10px; }
@media (max-width:600px){ .pos-set-pane :is(input,select,textarea),.rp-bar :is(input,select,textarea),.ing-block-row :is(input,select,textarea),.bl-f :is(input,select,textarea),.mat-search-wrap :is(input,select,textarea),.ac-quick :is(input,select,textarea),.ac-datenav :is(input,select,textarea),.sub-label :is(input,select,textarea),.g-filters :is(input,select,textarea),.wg-side :is(input,select,textarea),.pos-dlg :is(input,select,textarea),.ac-formfoot :is(input,select,textarea){ font-size:16px; min-height:46px; } }
/* صفوف المواد داخل النماذج: أصغر قليلًا حتى لا تتضخم الأسطر */
.ing-block-row :is(input,select){ min-height:40px; }
/* ---- تباين النصوص (WCAG AA) ---- */
.app-ver, .app-ver-n{ color:#6B7266 !important; }
.top-tabs-end #railTitle .en{ color:#6B6552 !important; }
.opt{ color:#6F6755 !important; }
.ac-empty-s, .cat-none, .loading-note{ color:#6B7266 !important; }
.dyn-add{ color:#3E392D !important; }
.ln-bdg{ color:#24211B !important; font-weight:800; }
.ac-sub-i.on{ background:rgba(180,83,47,.12) !important; color:#B4532F !important; }
.ac-sub-i{ color:#5C5646 !important; }
/* نافذة الدفع/المودال فوق سلة التابلت */
#modalOverlay{ z-index:1400; }
.ac-quick label.sub-label, .g-filters label.sub-label{ font-size:12.5px; font-weight:600; color:var(--ink-soft,#6b6252); display:inline-flex; align-items:center; gap:6px; }

/* v1.39.3 (تتمة) */
.win .step-block :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.win .ac-toolbar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.win .sec-card :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.win .mc-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea),
.win .inp-sfx :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea){ box-sizing:border-box; min-height:var(--fm-h); padding:0 12px; border:1px solid var(--fm-bd); border-radius:var(--fm-r); background-color:#fff; color:var(--ink,#24211B); font:inherit; font-size:14px; box-shadow:none; min-width:0; max-width:100%; transition:border-color .15s, box-shadow .15s; }
.win .step-block textarea,.win .ac-toolbar textarea,.win .sec-card textarea,.win .mc-grid textarea,.win .inp-sfx textarea{ padding:10px 12px; line-height:1.7; }
.win .step-block :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.win .ac-toolbar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.win .sec-card :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.win .mc-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus,
.win .inp-sfx :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]), select, textarea):focus{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.18); }
.win .step-block select,.win .ac-toolbar select,.win .sec-card select,.win .mc-grid select,.win .inp-sfx select{ -webkit-appearance:none; appearance:none; padding-inline-end:34px; cursor:pointer; background-image:var(--fm-chev); background-repeat:no-repeat; background-position:left 13px center; background-size:12px 8px; }
.sec-lr :is(input,select), .sec-urow :is(input,select){ min-height:38px; }
.hint{ color:#6F6755 !important; }
.rpt-chev{ color:#7A7260 !important; }
/* تباين نقطة البيع */
.kds-head .pos-title{ color:var(--ink,#24211B); }
.pos-item.pi2 .add{ color:#24211B; }
.pos-item.pi2 .th .lt{ color:rgba(36,33,27,.85); }

/* v1.54.1 أساس موحّد لكل حقل لا نمط خاص له (أي قاعدة خاصة بالقسم تتغلب عليه — :where بلا أولوية):
   خط مقروء 14.5px، ارتفاع 40px للمس، حدود وزوايا متناسقة، ولا يتجاوز عرض حاويته */
:where(body) :where(select, textarea, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit])){
  font-family:inherit; font-size:14.5px; color:var(--ink,#1F1D1A); background-color:#fff;
  border:1px solid var(--line,#DDD3C3); border-radius:10px; min-height:40px; padding:7px 12px; box-sizing:border-box; max-width:100%;
}
:where(body) :where(textarea){ line-height:1.6; }
:where(body) :where(select, textarea, input):focus-visible{ outline:none; border-color:var(--rust,#B4532F); box-shadow:0 0 0 3px rgba(180,83,47,.16); }

/* v1.55.1 نافذة تسجيل الخروج */
.lo-ask{ position:fixed; inset:0; z-index:2147482000; background:rgba(20,16,12,.45); display:flex; align-items:center; justify-content:center; padding:16px; }
.lo-box{ background:#fff; border-radius:16px; padding:18px; max-width:440px; width:100%; box-shadow:0 18px 50px rgba(0,0,0,.25); }
.lo-box h3{ margin:0 0 10px; }
.lo-warn{ background:#FFF4E5; border:1px solid #F0C88A; border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.8; margin-bottom:10px; }
.lo-chk{ display:flex; gap:8px; align-items:flex-start; font-size:14px; line-height:1.7; margin:6px 0 14px; }
.lo-act{ display:flex; gap:8px; justify-content:flex-end; }
.lo-act button{ min-height:42px; padding:0 16px; border-radius:10px; border:1px solid var(--line,#DDD3C3); background:#fff; font:inherit; font-weight:600; cursor:pointer; }
.lo-act .lo-ok{ background:var(--rust,#B4532F); color:#fff; border-color:var(--rust,#B4532F); }

/* ===== v1.59.3 — قائمة الحسابات الجانبية: مجموعات واضحة وعناوين أوضح وأيقونات بمربعات موحّدة ===== */
.ac-side{ padding:10px 8px 12px !important; gap:8px !important; }
.ac-grp{ display:flex; flex-direction:column; gap:1px; padding:6px 4px 6px; border-radius:12px; }
.ac-grp + .ac-grp{ border-top:1px solid rgba(201,188,151,.45); padding-top:10px; }
.ac-side .ac-side-t{ display:flex; align-items:center; gap:7px; margin:0 8px 6px !important; padding:0 !important; border:0 !important;
  font-size:12px !important; font-weight:800 !important; letter-spacing:0 !important; color:#8A5A3C !important; }
.ac-side .ac-side-t::before{ content:''; width:4px; height:14px; border-radius:3px; background:var(--rust); opacity:.85; flex:none; }
.ac-side-row .ac-side-i{ padding:6px 8px !important; gap:10px !important; font-size:14px; min-height:38px; }
.ac-ic{ width:28px !important; height:28px; display:inline-flex !important; align-items:center; justify-content:center; border-radius:8px; background:rgba(180,83,47,.08); font-size:15px !important; filter:none !important; }
.ac-side-i.on .ac-ic, .ac-side-row.on .ac-ic{ background:rgba(255,255,255,.22); }
.ac-side-i.on, .ac-side-row.on .ac-side-i{ box-shadow:0 3px 10px rgba(180,83,47,.28) !important; }
.ac-chev{ opacity:.5; font-size:10px; }
@media (max-width:900px){ .ac-grp{ display:contents; } .ac-side .ac-side-t{ display:none; } .ac-ic{ display:none !important; } }

/* v1.63.0 */
.pos-dd.on > .pos-ibtn{ background:#fff; border-color:var(--rust); }
.sh-pill .sh-x{ background:var(--s2, #F6F1EA); }
.pos-ibtn.sh-pill.on{ border-color:#BFE0C8; }
.pos-ibtn.sh-pill.off{ color:var(--rust); border-color:var(--rust); background:#fff; } .sh-pill.off .sh-dot{ background:var(--rust); opacity:.55; }
