/* Fox Casual - تعديلات مخصصة */

/* --- بوب أب العميل المبسّط --- */
html.fox-custom .contact_modal.fox-simple .modal-dialog { max-width: 480px; }
html.fox-custom .contact_modal.fox-simple .modal-body > .row:first-of-type > *:not(.fox-keep) { display: none !important; }
html.fox-custom .contact_modal.fox-simple .modal-body > .row:not(:first-of-type) { display: none !important; }
html.fox-custom .contact_modal.fox-simple .fox-keep { width: 100% !important; float: none !important; }
html.fox-custom .contact_modal .fox-more-wrap { text-align: center; margin-top: 4px; }
html.fox-custom .contact_modal #mobile { font-size: 20px; letter-spacing: 1px; height: 46px; text-align: center; }

html.fox-custom .fox-cust-results { margin-top: 8px; }
html.fox-custom .fox-cust-warn {
    background: #fff3cd; border: 1px solid #ffe08a; color: #8a6d3b;
    padding: 6px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 6px;
}
html.fox-custom .fox-cust-list { max-height: 210px; overflow-y: auto; border: 1px solid #e3e6ea; border-radius: 4px; }
html.fox-custom .fox-cust-item {
    display: block; width: 100%; text-align: inherit; background: #fff;
    border: 0; border-bottom: 1px solid #eef0f3; padding: 8px 10px; font-size: 14px;
}
html.fox-custom .fox-cust-item:last-child { border-bottom: 0; }
html.fox-custom .fox-cust-item:hover { background: #eef4ff; }
html.fox-custom .fox-cust-item span { color: #6b7280; font-size: 12px; }

/* --- الخصم المباشر --- */
html.fox-custom .fox-hide { display: none !important; }
html.fox-custom .fox-disc-wrap {
    display: inline-flex; align-items: center; gap: 3px; margin: 0 4px;
    vertical-align: middle;
}
html.fox-custom .fox-disc-input {
    width: 64px; height: 27px; padding: 2px 4px; text-align: center;
    border: 1px solid #cfd6df; border-radius: 3px; font-size: 13px;
    background: #fff; color: #111;
}
html.fox-custom .fox-disc-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,.15); }
html.fox-custom .fox-disc-toggle {
    width: 28px; height: 27px; padding: 0; font-size: 12px; font-weight: 700;
    border: 1px solid #cfd6df; border-radius: 3px; background: #f3f4f6; color: #374151;
}
html.fox-custom .fox-disc-toggle:hover { background: #e5e7eb; }

/* --- بوابة رقم العميل عند الدفع --- */
html.fox-custom .fox-skip-wrap { width: 100%; text-align: center; margin-top: 6px; }
html.fox-custom .fox-skip-btn {
    background: none; border: 0; color: #6b7280; font-size: 12px;
    padding: 4px 10px; border-radius: 3px;
}
html.fox-custom .fox-skip-btn:hover { background: #f3f4f6; color: #374151; }
html.fox-custom .fox-skip-btn:disabled { opacity: .5; }
html.fox-custom .fox-skip-none { color: #b91c1c; font-size: 12px; }

/* --- بوب أب المصروف المبسّط --- */
html.fox-custom .fox-exp-main { display: flex; flex-wrap: wrap; margin: 0 -8px; }
html.fox-custom .fox-exp-main > * { padding: 0 8px; float: none; }
html.fox-custom .fox-exp-half { width: 50%; }
html.fox-custom .fox-exp-full { width: 100%; }
html.fox-custom .fox-pay-grid { display: flex; flex-wrap: wrap; }
html.fox-custom .fox-pay-grid > * { float: none; }
html.fox-custom .fox-exp-more.fox-collapsed { display: none !important; }
html.fox-custom .fox-exp-toggle { display: block; margin: 4px auto; }
html.fox-custom .fox-exp #expense_final_total { font-size: 18px; height: 42px; font-weight: 700; }

/* --- رقم العميل جوه بوب أب الدفع --- */
html.fox-custom .fox-pay-cust {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px;
    padding: 10px 12px; margin-bottom: 12px;
}
html.fox-custom .fox-pay-lbl { display: block; margin-bottom: 4px; font-weight: 700; }
html.fox-custom .fox-req { color: #dc2626; }
html.fox-custom #fox_pay_mobile { height: 42px; font-size: 18px; text-align: center; letter-spacing: 1px; }
html.fox-custom .fox-pay-state { min-height: 18px; font-size: 12px; margin-top: 4px; }
html.fox-custom .fox-pay-state.ok   { color: #15803d; font-weight: 700; }
html.fox-custom .fox-pay-state.bad  { color: #b91c1c; }
html.fox-custom .fox-pay-state.wait { color: #6b7280; }

/* اخفاء وميض الفورم القديم في المصروف */
html.fox-custom #expense_modal .modal-content { visibility: hidden; }
html.fox-custom #expense_modal.fox-exp-ready .modal-content { visibility: visible; }

/* شريط حالة السداد في بوب أب الدفع */
html.fox-custom .fox-pay-bar {
    padding: 9px 12px; border-radius: 5px; margin-bottom: 12px;
    font-size: 15px; border: 1px solid transparent;
}
html.fox-custom .fox-pay-bar.ok   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
html.fox-custom .fox-pay-bar.warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
html.fox-custom .fox-pay-bar.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* الفئات النقدية - اخفاء ساكن يشمل الصفوف الجديدة */
html.fox-custom #modal_payment .fox-denom-box,
html.fox-custom #modal_payment [class*="denomination"]:not(input),
html.fox-custom #modal_payment table[id*="denomination"],
html.fox-custom #modal_payment div[id*="denomination"] { display: none !important; }

/* --- مودال المنتج متعدد الألوان --- */
html.fox-custom .fox-ptype { display:flex; gap:8px; margin:10px 0 14px; }
html.fox-custom .fox-ptype-btn {
    flex:1; padding:9px 12px; font-size:14px; border:1px solid #cfd6df;
    background:#fff; color:#374151; border-radius:5px;
}
html.fox-custom .fox-ptype-btn.active { background:#2563eb; border-color:#2563eb; color:#fff; font-weight:700; }
html.fox-custom .fox-uniform-panel {
    background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:12px; margin-bottom:14px;
}
html.fox-custom .fox-u-lbl { display:block; font-weight:700; margin-bottom:10px; cursor:pointer; }
html.fox-custom .fox-u-grid { display:flex; gap:10px; flex-wrap:wrap; }
html.fox-custom .fox-u-grid > div { flex:1; min-width:110px; }
html.fox-custom .fox-u-grid span { display:block; font-size:12px; color:#6b7280; margin-bottom:4px; }
html.fox-custom .fox-u-note { margin-top:8px; font-size:12px; color:#6b7280; }
html.fox-custom input.fox-dup { border-color:#dc2626 !important; background:#fef2f2; }
html.fox-custom .fox-dup-msg { color:#b91c1c; font-size:11px; margin-top:2px; }

/* --- تبسيط مودال المنتج + عمود الكمية --- */
html.fox-custom .quick_add_product_modal.fox-qa-simple .fox-qa-extra { display:none !important; }
html.fox-custom .fox-qa-more { text-align:center; margin:6px 0; }
html.fox-custom input.fox-qty { font-weight:700; }
html.fox-custom .fox-qty-cell { background:#f0f9ff; width:78px; }
html.fox-custom .fox-qty-h { background:#0ea5e9 !important; color:#fff; }
html.fox-custom #fox_variable_box .variation_value_row.hide { display:none !important; }
html.fox-custom .quick_add_product_modal .modal-dialog { width:92%; max-width:1150px; }

/* --- ازرار طباعة الباركود --- */
html.fox-custom .fox-print-btn { margin:0 6px; }
html.fox-custom .fox-bc-row { margin-top:4px; width:100%; }

/* --- تصحيح اتجاه رقم الباركود تحت الاستيكر --- */
.barcode-sku {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    display: block !important;
    text-align: center !important;
}

/* زرار طباعة الصف */
html.fox-custom .fox-row-print {
    cursor:pointer; color:#2563eb; font-size:16px; margin-right:10px; vertical-align:middle;
}
html.fox-custom .fox-row-print:hover { color:#1e40af; }

/* زرار طباعة الموديل كامل */
html.fox-custom .fox-model-print {
    cursor:pointer; color:#059669; font-size:16px; margin-right:8px; vertical-align:middle;
}
html.fox-custom .fox-model-print:hover { color:#065f46; }
