/* اختصارات شاشة البيع (pos-shortcuts.js): شبكة أزرار أصناف في الخانة التي كانت للوحة الأرقام في العمود الجانبي — وهي المحتوى الافتراضي لها.
   اللوحتان تتبادلان الخانة نفسها من شبكة ‎.pos-pay‎ (‎.quick-mode‎ / data-mode="shortcuts" = الاختصارات ظاهرة)، فأزرار الدفع تحتهما لا تتحرك أبدًا.
   تحت الشبكة شريط نحيف: «🔢 الأرقام» زر صغير ثابت في الزاوية، و«✎ تعديل» في الزاوية المقابلة لمن يملك الصلاحية — لا يأخذان خانة صنف. */
.app.pos-mode .pos-pay.no-quick .pos-quick,.app.pos-mode .pos-pay.no-quick .keypad .kquick,.pos-pay.no-quick #posQuickEdit,.pos-pay.no-quick #posQuickAll{display:none!important}
.pos-quick,.keypad .kquick{display:none}
.app.pos-mode .pos-pay.quick-mode .pos-quick{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-width:0;min-height:0}
.app.pos-mode .pos-pay.quick-mode .keypad{display:none}
.app.pos-mode .pos-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(60px,80px);align-content:start;gap:8px;min-width:0;min-height:0;padding:1px 1px 3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.app.pos-mode .pos-quick-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:0;margin:0;padding:4px 5px;border:1px solid #d9cda6;border-radius:13px;background:#fffaea;color:#2f2a17;box-shadow:0 2px 0 #e2d6ad;text-align:center;line-height:1.2;touch-action:manipulation;cursor:pointer}
.app.pos-mode .pos-quick-tile strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;overflow:hidden;font-size:clamp(13.5px,1vw,16.5px);font-weight:800;line-height:1.15;overflow-wrap:anywhere}
.app.pos-mode .pos-quick-tile small{font-size:12px;line-height:1.1;font-weight:700;color:#7a6a2c;font-variant-numeric:tabular-nums;white-space:nowrap}
.app.pos-mode .pos-quick-tile:active{background:#f6e7b4;box-shadow:none;transform:translateY(2px)}
.app.pos-mode .pos-quick-tile.off{border-style:dashed;background:#f6f4ee;color:#8b8678;box-shadow:none}
.app.pos-mode .pos-quick-tile.off small{color:#a34237}
.app.pos-mode .pos-quick-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.app.pos-mode .pos-quick-bar button{min-width:0;min-height:clamp(40px,4.4vh,52px);margin:0;padding:0 14px;border:1px solid #e3ded3;border-radius:13px;background:#f8f6f1;color:#273029;box-shadow:0 2px 0 #ddd7ca;font-size:15.5px;font-weight:800;line-height:1;white-space:nowrap;touch-action:manipulation;cursor:pointer}
.app.pos-mode .pos-quick-bar button:active{background:#ebe6d9;box-shadow:none;transform:translateY(2px)}
.app.pos-mode .pos-quick-bar .pos-quick-keys{flex:0 0 auto;min-width:clamp(118px,7.5vw,150px)}
.app.pos-mode .pos-quick-bar .pos-quick-edit{flex:0 0 auto;font-size:14px;color:#5d5546}
.app.pos-mode .pos-quick-bar .pos-quick-edit[hidden]{display:none}
/* قائمة فارغة لمن يستطيع إنشاءها: دعوة واضحة مكان الأزرار (الوضع الافتراضي يبقى الاختصارات). */
.app.pos-mode .pos-quick-grid.empty{display:flex;align-items:stretch;overflow:hidden}
.app.pos-mode .pos-quick-empty{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:12px;border:1.5px dashed #d9cda6;border-radius:13px;background:#fffdf5;color:#4a3d12;text-align:center}
.app.pos-mode .pos-quick-empty strong{font-size:16px;font-weight:800}
.app.pos-mode .pos-quick-empty span{font-size:13px;line-height:1.55;color:#6b5d2e}
.app.pos-mode .pos-quick-empty .pos-quick-add{min-height:46px;margin:2px 0 0;padding:0 16px;border:1px solid #cdbf93;border-radius:13px;background:#fff3c9;color:#3d3210;box-shadow:0 2px 0 #e2d6ad;font-size:15.5px;font-weight:800;touch-action:manipulation;cursor:pointer}
.app.pos-mode .pos-quick-empty .pos-quick-add:active{background:#f6e2a0;box-shadow:none;transform:translateY(2px)}
/* آخر صف في لوحة الأرقام: «مسح» يصغر ويجاوره زر الرجوع للاختصارات (أو زر إنشائها للمدير عند خلو القائمة).
   min-height:0 — قاعدة عامة أقدم (55px) كانت تُخرج هذا الصف عن خانته على الشاشات القصيرة فيلامس زر «نقدًا»؛ تُعطَّل للصف كله، مع الاختصارات وبدونها. */
.app.pos-mode .pos-pay .keypad .kclear{min-height:0}
.app.pos-mode .pos-pay.has-quick .keypad .kclear{grid-column:3;grid-row:5}
.app.pos-mode .pos-pay.has-quick .keypad .kquick{display:block;grid-column:1/3;grid-row:5;min-height:0;border-color:#d9cda6;background:#fffaea;color:#4a3d12;font-size:15.5px;font-weight:800;box-shadow:0 2px 0 #e2d6ad}
@media(max-height:800px){.app.pos-mode .pos-quick-grid{grid-auto-rows:minmax(56px,66px);gap:6px}.app.pos-mode .pos-quick-tile strong{font-size:13px}}
@media(max-width:860px){.app.pos-mode .pos-quick-grid{grid-auto-rows:minmax(48px,60px);max-height:236px}.app.pos-mode .pos-quick-empty span{display:none}.app.pos-mode .pos-pay.has-quick .keypad .kquick{font-size:14px}}

/* نافذة الإدارة: أعلى الشاشة وفوق الشريط العلوي، فلا تغطي لوحة مفاتيح اللمس (أسفل الشاشة) خانة البحث ولا النتائج. */
.pos-shortcuts-modal{align-items:flex-start;padding-top:14px;z-index:60}
.modal-card.pos-shortcuts-card{max-width:680px;padding:16px 20px 14px;gap:8px}
.pos-shortcuts-card h3{margin:0}
.pos-shortcuts-card .ps-note{margin:0;font-size:13.5px}
.pos-shortcuts-card .ps-search{display:grid;gap:4px;font-weight:700}
.pos-shortcuts-card .ps-results{display:grid;gap:6px;max-height:30vh;overflow-y:auto}
.pos-shortcuts-card .ps-result{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;padding:6px 12px;border:1px solid #e3ded3;border-radius:12px;background:#fff;color:#273029;text-align:start;cursor:pointer}
.pos-shortcuts-card .ps-result span{display:grid;min-width:0;font-weight:700;overflow-wrap:anywhere}
.pos-shortcuts-card .ps-result small{color:#7b8794;font-size:12px;font-weight:600}
.pos-shortcuts-card .ps-result b{flex:0 0 auto;font-variant-numeric:tabular-nums}
.pos-shortcuts-card .ps-result:hover,.pos-shortcuts-card .ps-result:focus-visible{background:#fffaea;border-color:#d9cda6}
.pos-shortcuts-card .ps-units{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d9cda6;border-radius:12px;background:#fffaea;font-weight:700}
.pos-shortcuts-card .ps-units span{flex:1 1 100%}
.pos-shortcuts-card .ps-unit{margin:0;padding:0 16px;border:1px solid #cdbf93;border-radius:999px;background:#fff;color:#4a3d12;font-weight:800;cursor:pointer}
.pos-shortcuts-card .ps-empty{padding:8px 4px}
.pos-shortcuts-card .ps-count{margin-top:4px;color:#5d6b63;font-size:13px;font-weight:700}
.pos-shortcuts-card .ps-list{display:grid;gap:6px;max-height:36vh;overflow-y:auto}
.pos-shortcuts-card .ps-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px;border:1px solid #e3ded3;border-radius:12px;background:#fbfaf6}
.pos-shortcuts-card .ps-row.off{border-style:dashed;background:#fff6f4}
.pos-shortcuts-card .ps-move{display:flex;gap:4px}
.pos-shortcuts-card .ps-move button{width:42px;min-width:42px;margin:0;padding:0;border:1px solid #e3ded3;border-radius:10px;background:#fff;color:#4c5a52;font-size:14px;cursor:pointer}
.pos-shortcuts-card .ps-move button:disabled{opacity:.35;cursor:default}
.pos-shortcuts-card .ps-info{display:grid;gap:3px;min-width:0}
.pos-shortcuts-card .ps-info .ps-label{width:100%;min-width:0;margin:0}
.pos-shortcuts-card .ps-info small{color:#6b7280;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pos-shortcuts-card .ps-remove{margin:0;padding:0 14px;border:1px solid #ecd2cd;border-radius:10px;background:#fff6f4;color:#a34237;font-weight:700;cursor:pointer}
.pos-shortcuts-card .ps-error{min-height:0;margin:0;color:#b42318;font-weight:700}
.pos-shortcuts-card .ps-error:empty{display:none}
/* نافذة المنتج: زر «بدون باركود» بجانب خانة الباركود (كود داخلي تلقائي — internal-barcode.js). */
.barcode-with-internal{display:flex;align-items:center;gap:8px}
.barcode-with-internal input{flex:1 1 auto;min-width:0}
.barcode-with-internal .btn-sm{flex:0 0 auto}

/* 0.5.50 — خانة الاختصارات أوسع وفي مكانها (العمود اليمين فوق أزرار الدفع):
   العمود أعرض قليلًا (~290px على 1024، حتى 340px على 1366)؛ رأس صغير فيه «✎ تعديل»؛ الأزرار 52px بعمودين (3 أعمدة على الشاشات العريضة)
   فتظهر 6 على 1024×768 و9 على 1366×768، والباقي يُمرَّر داخل الخانة؛ «⭐ الكل (N)» أسفلها يفتح كل الاختصارات بأزرار كبيرة.
   ارتفاع الخانة لم يتغير (‎.pos-pay‎ كما هي)، فأزرار الدفع لا تتحرك عموديًا بين الاختصارات ولوحة الأرقام. */
.app.pos-mode .pos-wrap{grid-template-columns:clamp(264px,24.5vw,340px) minmax(0,1fr)}
@media(max-width:1180px){.app.pos-mode .pos-wrap{grid-template-columns:clamp(236px,28.3vw,300px) minmax(0,1fr)}}
@media(max-width:860px){.app.pos-mode .pos-wrap{grid-template-columns:minmax(0,1fr)}}
.pos-quick-head{display:none}
.app.pos-mode .pos-pay.quick-mode .pos-quick{grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px}
.app.pos-mode .pos-pay .pos-quick>.pos-offers-quick{grid-row:1;margin-bottom:2px}
.app.pos-mode .pos-pay.quick-mode .pos-quick-head{grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:32px}
.app.pos-mode .pos-pay .pos-quick:has(>.pos-quick-grid.empty) .pos-quick-head{display:none}
.app.pos-mode .pos-quick-head strong{font-size:13.5px;font-weight:800;color:#665d51;white-space:nowrap}
.app.pos-mode .pos-quick-head .pos-quick-edit{flex:0 0 auto;min-height:32px;margin:0;padding:0 12px;border:1px solid #dccbaa;border-radius:10px;background:#fff;color:#704b2d;font-size:13.5px;font-weight:800;line-height:1;white-space:nowrap;touch-action:manipulation;cursor:pointer}
.app.pos-mode .pos-quick-head .pos-quick-edit[hidden]{display:none}
.app.pos-mode .pos-quick-head .pos-quick-edit:active{background:#f7edda}
.app.pos-mode .pos-pay .pos-quick-grid{grid-row:3;grid-auto-rows:52px;gap:6px;padding:1px 2px 2px 1px;scrollbar-width:thin;scrollbar-color:#c39a42 #f3ecdd;scrollbar-gutter:stable;touch-action:pan-y}
.app.pos-mode .pos-pay .pos-quick-grid.empty{scrollbar-gutter:auto}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile{padding:3px 5px;gap:1px;border-radius:11px}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile strong{font-size:13px;line-height:1.15}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile small{font-size:11.5px;line-height:1.1}
.app.pos-mode .pos-pay .pos-quick-bar{grid-row:4}
.app.pos-mode .pos-quick-bar .pos-quick-all{flex:0 1 auto;font-size:14px;color:#704b2d;border-color:#dccbaa;background:#fffaea}
.app.pos-mode .pos-quick-bar .pos-quick-all[hidden]{display:none}
@media(min-width:1181px){.app.pos-mode .pos-pay .pos-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* نافذة «⭐ الكل» */
.pos-shortcuts-all{align-items:center;padding-top:0}
.modal-card.ps-all-card{max-width:820px}
.ps-all-card .ps-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;max-height:62vh;overflow-y:auto;padding:2px}
.ps-all-card .pos-quick-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:88px;margin:0;padding:8px;border:1px solid #d9cda6;border-radius:14px;background:#fffaea;color:#2f2a17;box-shadow:0 2px 0 #e2d6ad;text-align:center;line-height:1.2;touch-action:manipulation;cursor:pointer}
.ps-all-card .pos-quick-tile strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;overflow:hidden;font-size:16px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.ps-all-card .pos-quick-tile small{font-size:13px;font-weight:700;color:#7a6a2c;white-space:nowrap}
.ps-all-card .pos-quick-tile.off{border-style:dashed;background:#f6f4ee;color:#8b8678;box-shadow:none}
.ps-all-card .pos-quick-tile.off small{color:#a34237}
.ps-all-card .pos-quick-tile:active{background:#f6e7b4;box-shadow:none;transform:translateY(2px)}
.ps-all-card .modal-actions button{min-height:52px;min-width:132px;padding:0 18px}
.ps-all-card #psAllEdit[hidden]{display:none}
@media(max-width:860px){.ps-all-card .ps-all-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}}

/* 0.5.84 — بلا تمرير أبدًا (المالك: «ما بدي أنزل لتحت»): الشبكة = أعمدة × صفوف يحسبها pos-shortcuts.js من حجم الخانة (زر ≥ 56px)،
   والزيادة صفحات بأسهم ▶ ◀ ونقاط تحت الشبكة. مجلدات ملوّنة بمستوى واحد؛ أول زر جوّا المجلد «↩ رجوع». */
.app.pos-mode .pos-pay .pos-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));grid-auto-rows:0;align-content:stretch;overflow:hidden;scrollbar-gutter:auto;touch-action:manipulation;padding:1px}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile{min-height:0;height:100%;overflow:hidden}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile strong{font-size:clamp(13px,.95vw,16px)}
.app.pos-mode .pos-pay .pos-quick-grid .pos-quick-tile small{font-size:clamp(11.5px,.8vw,13px)}
@media(max-width:860px){.app.pos-mode .pos-pay .pos-quick-grid{max-height:none;height:236px}}
/* مجلد: لون خلفية + حد سميك يمين، واسم عريض؛ «بلا باركود» رمادي مخطط */
.app.pos-mode .pos-quick-tile.pq-folder{border-width:1px 5px 1px 1px;border-style:solid}
.pos-quick-tile.pq-folder small{font-weight:800}
.c-gold{--pq-bg:#fff4cf;--pq-bd:#d7a823;--pq-fg:#4d3a05}.c-green{--pq-bg:#e3f5e6;--pq-bd:#2f9a4a;--pq-fg:#173f22}.c-blue{--pq-bg:#e3effc;--pq-bd:#2f74c9;--pq-fg:#123257}
.c-red{--pq-bg:#fde6e3;--pq-bd:#cf4a3a;--pq-fg:#5c1a12}.c-purple{--pq-bg:#efe6fb;--pq-bd:#8352c9;--pq-fg:#341a5a}.c-orange{--pq-bg:#fdecdc;--pq-bd:#e07a1f;--pq-fg:#5a2d06}
.c-teal{--pq-bg:#dff4f2;--pq-bd:#1f978c;--pq-fg:#0f3e3a}.c-pink{--pq-bg:#fce6f1;--pq-bd:#cc4a8d;--pq-fg:#5a1438}
.app.pos-mode .pos-quick-tile.pq-folder[class*="c-"]{background:var(--pq-bg);border-color:var(--pq-bd);color:var(--pq-fg);box-shadow:0 2px 0 var(--pq-bd)}
.app.pos-mode .pos-quick-tile.pq-folder[class*="c-"] small{color:var(--pq-fg);opacity:.85}
.app.pos-mode .pos-quick-tile.pq-nb{background:repeating-linear-gradient(135deg,#f3f1ec 0 10px,#ebe8e0 10px 20px);border-color:#8f887a;color:#2f2c25;box-shadow:0 2px 0 #b7b0a2}
.app.pos-mode .pos-quick-tile.pq-nb small{color:#5d574b}
.app.pos-mode .pos-quick-tile.pq-folder:active{filter:brightness(.93);box-shadow:none;transform:translateY(2px)}
.app.pos-mode .pos-quick-tile.pq-back{background:#273029;border-color:#273029;color:#fff;box-shadow:0 2px 0 #121712}
.app.pos-mode .pos-quick-tile.pq-back small{color:#d8e0da}
.app.pos-mode .pos-quick-tile.pq-back:active{background:#3b463e;box-shadow:none;transform:translateY(2px)}
.app.pos-mode .pos-quick-tile.pq-note{grid-column:span 2;border-style:dashed;background:#fbfaf6;color:#6b6457;box-shadow:none;cursor:default}
.app.pos-mode .pos-quick-tile.pq-note strong{font-size:13px;font-weight:700}
/* 0.5.84: بلا صف رأس (كان ياكل صف أزرار على 1366×768): العروض ← الشبكة ← الشريط [🔢 الأرقام][✎] … [▶ • ◀].
   خانة الفلترة (بلا باركود) عنصر ثابت فوق خانة فاضية جنب «↩ رجوع» — موقعها بيحطه pos-shortcuts.js. */
.app.pos-mode .pos-pay.quick-mode .pos-quick{position:relative;grid-template-rows:auto minmax(0,1fr) auto}
.app.pos-mode .pos-pay .pos-quick-head{display:none!important}
.app.pos-mode .pos-pay .pos-quick-grid{grid-row:2}
.app.pos-mode .pos-pay .pos-quick-bar{grid-row:3;justify-content:flex-start;gap:6px}
.app.pos-mode .pos-quick-bar .pos-quick-keys{min-width:clamp(96px,7vw,140px)}
.app.pos-mode .pos-quick-bar .pos-quick-edit{flex:0 0 auto;min-width:44px;padding:0 10px;font-size:17px;color:#704b2d;border-color:#dccbaa;background:#fff}
.app.pos-mode .pos-quick-bar .pos-quick-pager{margin-inline-start:auto}
.app.pos-mode .pos-quick-filter{position:absolute;z-index:2;box-sizing:border-box;margin:0;padding:0 10px;border:2px solid #8f887a;border-radius:11px;background:#fff;font-size:15px;font-weight:700;min-height:0}
.app.pos-mode .pos-quick-filter[hidden]{display:none}
.app.pos-mode .pos-pay:not(.quick-mode) .pos-quick-filter{display:none}
.app.pos-mode .pq-filter-slot{min-width:0;min-height:0}
.app.pos-mode .pos-quick-tile.pq-back small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* الصفحات */
.app.pos-mode .pos-quick-bar .pos-quick-pager{display:flex;align-items:center;gap:6px;min-width:0}
.app.pos-mode .pos-quick-bar .pos-quick-pager[hidden]{display:none}
.app.pos-mode .pos-quick-bar .pos-quick-pager button{min-width:clamp(48px,4vw,72px);padding:0 8px;font-size:20px;border-color:#cdbf93;background:#fff3c9;color:#3d3210;box-shadow:0 2px 0 #e2d6ad}
.app.pos-mode .pos-quick-bar .pos-quick-pager button:disabled{opacity:.35;box-shadow:none;cursor:default}
.app.pos-mode .pos-quick-bar .pos-quick-pager button:active:not(:disabled){background:#f6e2a0;box-shadow:none;transform:translateY(2px)}
.app.pos-mode .pq-dots{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.app.pos-mode .pq-dots i{width:8px;height:8px;border-radius:50%;background:#d9cda6}
.app.pos-mode .pq-dots i.on{width:11px;height:11px;background:#a8801c}
.app.pos-mode .pq-dots b{font-size:13px;font-weight:800;color:#5d5546;white-space:nowrap;font-variant-numeric:tabular-nums}
/* نافذة التعديل: تبويب لكل مجلد، صف المجلد (اسم + ألوان + فتح)، نقل الصنف لمجلد */
.pos-shortcuts-card .ps-tabs{display:flex;flex-wrap:wrap;gap:6px}
.pos-shortcuts-card .ps-tab{min-height:40px;margin:0;padding:0 12px;border:1px solid #e3ded3;border-inline-start-width:5px;border-radius:10px;background:#fff;color:#273029;font-weight:800;cursor:pointer;touch-action:manipulation}
.pos-shortcuts-card .ps-tab[class*="c-"]{border-inline-start-color:var(--pq-bd)}
.pos-shortcuts-card .ps-tab b{display:inline-block;min-width:20px;margin-inline-start:4px;padding:0 6px;border-radius:999px;background:#f1eee6;font-size:12px}
.pos-shortcuts-card .ps-tab.on{background:#273029;color:#fff;border-color:#273029}
.pos-shortcuts-card .ps-tab.on[class*="c-"]{border-inline-start-color:var(--pq-bd)}
.pos-shortcuts-card .ps-tab.on b{background:#4b574e;color:#fff}
.pos-shortcuts-card .ps-tab.ps-new{border-style:dashed;color:#704b2d;background:#fffaea}
.pos-shortcuts-card .ps-backtop{justify-self:start;min-height:40px;margin:0;padding:0 14px;border:1px solid #273029;border-radius:10px;background:#fff;color:#273029;font-weight:800;cursor:pointer}
.pos-shortcuts-card .ps-row{grid-template-columns:auto minmax(0,1fr) auto}
.pos-shortcuts-card .ps-move button{height:40px}
.pos-shortcuts-card .ps-acts{display:flex;align-items:center;gap:6px}
.pos-shortcuts-card .ps-acts .ps-dest{width:auto;max-width:150px;min-height:40px;margin:0;padding:0 6px;font-size:13px}
.pos-shortcuts-card .ps-remove,.pos-shortcuts-card .ps-open{min-height:40px}
.pos-shortcuts-card .ps-open{margin:0;padding:0 12px;border:1px solid #cdbf93;border-radius:10px;background:#fffaea;color:#3d3210;font-weight:800;cursor:pointer;white-space:nowrap}
.pos-shortcuts-card .ps-frow{background:var(--pq-bg);border-inline-start:6px solid var(--pq-bd)}
.pos-shortcuts-card .ps-frow .ps-fname{width:100%;min-width:0;margin:0;font-weight:800}
.pos-shortcuts-card .ps-colors{display:flex;flex-wrap:wrap;gap:6px}
.pos-shortcuts-card .ps-color{width:30px;height:30px;min-width:30px;min-height:30px;margin:0;padding:0;border:2px solid #fff;border-radius:50%;background:var(--pq-bd);box-shadow:0 0 0 1px #c9c2b2;cursor:pointer}
.pos-shortcuts-card .ps-color.on{box-shadow:0 0 0 3px #273029}
.pos-shortcuts-card .ps-auto{grid-template-columns:minmax(0,1fr);border-style:dashed;background:#f6f4ee}
.pos-shortcuts-card .ps-auto strong{font-size:14px}
.pos-shortcuts-card .ps-auto small{white-space:normal}
.modal-card.pos-shortcuts-card{max-width:760px;max-height:calc(100vh - 28px);overflow:auto}
.pos-shortcuts-card .ps-list{max-height:40vh}
/* 0.5.84 (مراجعة): أزرار أسفل نافذة الاختصارات — «حفظ» غامق و«إلغاء» زر ثانوي بنفس المقاس */
.pos-shortcuts-card .modal-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start}
.pos-shortcuts-card .modal-actions>button{flex:0 0 auto;min-width:132px;min-height:48px;height:48px;padding:0 22px;border-radius:11px;font-size:15px;font-weight:700;line-height:1;writing-mode:horizontal-tb;white-space:nowrap}
.pos-shortcuts-card #psSave{background:#29251f;color:#fff;border:1px solid #29251f}
.pos-shortcuts-card #psCancel{background:#fff;color:#704b2d;border:1px solid #dccbaa}
/* 0.5.84 (مراجعة): سطر «🔢 الأرقام» + «✎» + الأسهم مرتب — نفس الارتفاع ونفس الشكل */
.pos-quick-bar>button,.pos-quick-bar .pos-quick-pager button{height:clamp(40px,4.4vh,52px);min-height:clamp(40px,4.4vh,52px)}
.pos-quick-bar .pos-quick-edit{min-width:clamp(48px,4vw,60px);padding:0 10px;background:#f8f6f1;border:1px solid #e3ded3;box-shadow:0 2px 0 #ddd7ca;color:#273029;font-size:17px}
