/* البيع السريع لباركود غير معرّف (quick-sale.js) + شاشة «أصناف بحاجة مراجعة».
   النافذة بطاقة عريضة قصيرة أعلى الشاشة: الاسم يمينًا والسعر يسارًا، والأزرار تحت الاسم — فتبقى كلها ظاهرة
   ولوحة المفاتيح (أسفل الشاشة) أو لوحة الأرقام (تحت خانة السعر) لا تغطي شيئًا منها عند 1024×768. */
.quick-sale-modal { align-items: flex-start; padding-top: 14px; z-index: 60; } /* فوق الشريط العلوي (25) وتحت رسائل التنبيه (100) ولوحة اللمس (3000) */
.modal-card.quick-sale-card { max-width: 760px; padding: 14px 20px 16px; gap: 8px; border: 2px solid #f59e0b; overflow: visible; }
body.ti-reserve-bottom .modal-card.quick-sale-card { padding-bottom: 16px; }
.quick-sale-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quick-sale-head h3 { margin: 0; color: #b45309; font-size: 20px; }
.quick-sale-code { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 12px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; max-width: 100%; }
.quick-sale-code small { color: #9a3412; font-size: 12px; font-weight: 700; }
.quick-sale-code b { font: 800 19px/1.25 ui-monospace, Consolas, monospace; letter-spacing: .5px; color: #0f172a; overflow-wrap: anywhere; }
.quick-sale-card .quick-sale-define { margin-inline-start: auto; min-height: 44px; padding: 6px 10px; font-size: 14px; }
.quick-sale-card .quick-sale-define[hidden] { display: none; }
.quick-sale-note { margin: 0; min-height: 22px; font-size: 14px; line-height: 22px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-sale-note.err { color: #b91c1c; font-weight: 800; }
.quick-sale-fields { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; }
.quick-sale-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: #334155; }
.quick-sale-field input { box-sizing: border-box; width: 100%; min-height: 58px; padding: 8px 12px; border: 2px solid #cbd5e1; border-radius: 12px; font-size: 22px; font-weight: 700; color: #0f172a; background: #fff; }
.quick-sale-field input:focus { border-color: #0d9488; outline: none; box-shadow: 0 0 0 3px #0d948833; }
.quick-sale-price input { text-align: center; font-size: 26px; }
.quick-sale-actions { display: flex; gap: 12px; justify-content: flex-start; margin-top: 2px; }
.quick-sale-card .quick-sale-confirm { min-height: 60px; min-width: 210px; padding: 8px 22px; border-radius: 14px; background: #0d9488; color: #fff; font-size: 21px; font-weight: 800; }
.quick-sale-card .quick-sale-confirm:hover, .quick-sale-card .quick-sale-confirm:focus-visible { background: #0f766e; }
.quick-sale-card .quick-sale-confirm:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.quick-sale-card .quick-sale-cancel { min-height: 60px; min-width: 120px; padding: 8px 18px; border-radius: 14px; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; font-size: 17px; font-weight: 700; }
@media (max-width: 640px) {
 .quick-sale-fields { grid-template-columns: 1fr; }
 .quick-sale-actions button { flex: 1; min-width: 0; }
 .quick-sale-note { white-space: normal; }
}
/* سطر السلة للصنف غير المعرّف: وسم صغير فقط */
.alias-indicator.review-indicator { background: #ffedd5; color: #9a3412; }

/* عنصر القائمة وشارته */
/* الشارة فقاعة على زاوية عنصر القائمة: اسم الشاشة يملأ عرض العنصر، فلا تُزاح حروفه ولا تُقصّ الشارة */
.tab.review-tab { position: relative; overflow: visible; }
.tab-badge { position: absolute; top: -5px; inset-inline-end: -8px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; box-sizing: border-box; }
.tab-badge[hidden] { display: none; }
.tab.review-unsupported { display: none !important; }

/* شاشة المراجعة */
.review-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.review-tabs button { min-height: 46px; padding: 8px 18px; border-radius: 999px; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; font-weight: 700; }
.review-tabs button.active { background: var(--brand, #0d9488); color: #fff; border-color: var(--brand, #0d9488); }
.review-tabs button b { display: inline-block; min-width: 22px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: #ffffff33; text-align: center; }
.review-tabs button:not(.active) b { background: #f59e0b; color: #fff; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.review-card { background: #fff; border: 1px solid var(--line, #e2e8f0); border-inline-start: 5px solid #f59e0b; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.review-card.done { border-inline-start-color: #94a3b8; }
.review-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-card header strong { font-size: 18px; color: #0f172a; overflow-wrap: anywhere; }
.review-code { font: 700 15px/1.3 ui-monospace, Consolas, monospace; color: #9a3412; background: #fff7ed; border-radius: 8px; padding: 2px 8px; overflow-wrap: anywhere; }
.review-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.review-card dl div { min-width: 0; }
.review-card dl div:nth-child(n+4) { grid-column: span 3; display: flex; gap: 8px; align-items: baseline; }
.review-card dt { font-size: 12px; color: #64748b; font-weight: 600; white-space: nowrap; }
.review-card dd { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; overflow-wrap: anywhere; }
.review-catalog, .review-done { margin: 0; padding: 6px 10px; border-radius: 10px; background: #f0fdfa; color: #115e59; font-size: 14px; }
.review-done { background: #f1f5f9; color: #334155; }
.review-card .quick-actions { margin: 4px 0 0; }
.review-card .quick-actions .action { flex: 1 1 130px; }
.review-foot, .review-stock-note { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; color: #7c2d12; font-size: 14px; line-height: 1.8; }
.review-link-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 52vh; overflow: auto; }
.review-link-results .result { min-height: 54px; }
#reviewLinkSearch { width: 100%; box-sizing: border-box; min-height: 52px; font-size: 18px; }
/* الرئيسية وتقرير الفترة: إشارة صغيرة فقط عند وجود أصناف بانتظار المراجعة */
.dash-delta.review { cursor: pointer; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 4px 12px; color: #9a3412; font: inherit; }
.dash-kpi em .dash-unsettled { font-style: normal; font-weight: 700; color: #b45309; }
.dash-review-tag { display: inline-block; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 11px; font-weight: 700; vertical-align: middle; }
.quick-sale-report-note { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #fff7ed; color: #7c2d12; font-size: 14px; line-height: 1.8; }
