:root {
    --navy-dark: #0f2836;
    --navy: #173344;
    --navy-mid: #1b3a4b;
    --navy-light: #2e5975;
    --navy-border: #33566b;
    --navy-muted: #cfe0ea;
}

body { background-color: #f4f6f8; font-family: 'Tahoma', 'Segoe UI', sans-serif; }
.card { border-radius: 10px; }
.navbar-brand { font-weight: bold; }
.navbar.bg-dark { background-color: var(--navy) !important; }

/* شاشة الرئيسية - لوحة الأيقونات */
.dashboard-shell {
    background: var(--navy-mid);
    border-radius: 12px;
    padding: 2rem 1.5rem;
}
.dashboard-title {
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    border-bottom: 1px solid var(--navy-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.dashboard-tile {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 1.25rem 0.5rem;
    border-radius: 10px;
    transition: background-color .15s ease;
}
.dashboard-tile:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dashboard-tile .tile-icon {
    width: 64px; height: 64px; line-height: 64px;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    font-size: 28px; margin: 0 auto 10px; display: block;
}
.dashboard-tile .tile-label-ar { font-weight: 500; font-size: 15px; }
.dashboard-tile .tile-label-en { font-size: 12px; color: var(--navy-muted); }

/* شاشة نقطة البيع */
.pos-shell { background: var(--navy-mid); border-radius: 12px; overflow: hidden; }
.pos-topbar {
    display: flex; justify-content: center; align-items: center;
    color: #fff; padding: 12px; border-bottom: 1px solid var(--navy-border); font-size: 17px; font-weight: 500;
}
.pos-body { display: grid; grid-template-columns: 130px 1.7fr 1fr; min-height: 520px; }
.pos-categories { background: var(--navy-dark); padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.pos-cat-btn {
    background: transparent; border: none; color: var(--navy-muted);
    text-align: center; padding: 10px 4px; border-radius: 6px; font-size: 13px; cursor: pointer;
}
.pos-cat-btn.active { background: #fff; color: var(--navy-dark); font-weight: 500; }
.pos-products { background: #eef1f3; padding: 12px; overflow-y: auto;height:calc(100vh - 220px); }
.pos-product-card {
    background: #fff; border: none; border-radius: 8px; padding: 10px 6px;
    text-align: center; position: relative; cursor: pointer; height: 100%;
}
.pos-price-badge {
    position: absolute; top: 6px; right: 6px; background: var(--navy-dark); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.pos-product-name { font-size: 12px; color: #222; margin-top: 34px; }
.pos-cart { background: #f4f6f7; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pos-order-type-btn {
    flex: 1; text-align: center; padding: 8px; border-radius: 6px; font-size: 13px;
    border: 1px solid #9aa7b0; background: #fff; color: #445; cursor: pointer;
}
.pos-order-type-btn.active { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.pos-meta-row { display: flex; justify-content: space-between; font-size: 12px; color: #556; padding: 6px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.pos-cart-table { width: 100%; font-size: 12px; }
.pos-cart-table th { color: #556; text-align: right; font-weight: 500; padding-bottom: 4px; }
.pos-totals { background: var(--navy-dark); color: #fff; border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.pos-totals .net-row { font-weight: 500; font-size: 17px; padding-top: 6px; border-top: 1px solid var(--navy-border); margin-top: 4px; }
.pos-toolbar { display: flex; background: var(--navy-dark); }
.pos-toolbar button {
    flex: 1; background: transparent; border: none; color: #fff; padding: 12px 4px;
    font-size: 13px; border-left: 1px solid var(--navy-border); cursor: pointer;
}
.pos-toolbar button:last-child { border-left: none; }
.pos-toolbar button.primary { background: var(--navy-light); font-weight: 500; }

.pos-nav-bar { display: flex; gap: 4px; }
.pos-nav-btn {
    flex: 1; background: #fff; border: 1px solid #9aa7b0; border-radius: 4px;
    font-size: 10px; line-height: 1.3; padding: 4px 2px; cursor: pointer; color: #334;
}
.pos-nav-btn.pos-nav-new { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); font-weight: 500; }
.pos-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* شاشة سند صرف الصندوق - Expense Voucher */
.voucher-shell { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.voucher-shell .pos-topbar { background: var(--navy-dark); position: relative; }
.voucher-close-btn {
    background: #d9534f; color: #fff; border: none; border-radius: 50%;
    width: 26px; height: 26px; line-height: 26px; text-align: center; padding: 0; font-size: 13px; cursor: pointer;
}
.voucher-logo-dot {
    width: 22px; height: 22px; border-radius: 50%; background: #fff;
    display: inline-block; opacity: .85;
}
.voucher-toolbar button { font-size: 11px; }

/* شاشة تسجيل الدخول - Login Screen */
.login-body { background: #eef1f4; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-wrap { width: 100%; max-width: 640px; padding: 20px; }
.login-card {
    background: #fff; border: 1px solid #d7dee3; border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,.12); padding: 20px 24px 24px; position: relative;
}
.login-close-btn {
    position: absolute; top: -10px; left: -10px; width: 30px; height: 30px; border-radius: 50%;
    background: #d9534f; color: #fff; border: 2px solid #fff; font-size: 13px; cursor: pointer;
}
.login-logo { text-align: center; margin-bottom: 14px; }
.login-logo img { max-height: 70px; }
.login-logo-fallback { font-weight: bold; font-size: 20px; color: var(--navy-dark); letter-spacing: 1px; }

.login-body-row { display: flex; gap: 16px; align-items: flex-start; }
.login-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.login-field-row {
    display: flex; direction: ltr; align-items: center; gap: 10px;
}
.login-field-row .login-en { order: 1; width: 110px; font-size: 13px; font-weight: 600; color: #222; flex-shrink: 0; }
.login-field-row select, .login-field-row input { order: 2; flex: 1; }
.login-field-row .login-ar { order: 3; width: 120px; text-align: right; font-size: 13px; font-weight: 600; color: #7a2e2e; flex-shrink: 0; }

.login-actions { display: flex; gap: 10px; margin-top: 8px; }
.login-btn-primary, .login-btn-secondary {
    flex: 1; color: #fff; font-weight: 500; padding: 8px 10px; border: none; border-radius: 4px;
}
.login-btn-primary { background: var(--navy-dark); }
.login-btn-primary:hover { background: var(--navy); color: #fff; }
.login-btn-secondary { background: var(--navy-light); }
.login-btn-secondary:hover { background: var(--navy-mid); color: #fff; }

/* لوحة الأرقام - قابلة للنقل يمين/شمال */
.login-keypad { width: 150px; flex-shrink: 0; }
.keypad-toggle-row { text-align: center; margin-bottom: 4px; }
#keypadSideToggle { background: none; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; padding: 2px 8px; cursor: pointer; }
.keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad-btn {
    background: #f4f6f8; border: 1px solid #d7dee3; border-radius: 6px;
    font-size: 18px; font-weight: 600; padding: 14px 0; cursor: pointer; color: var(--navy-dark);
}
.keypad-btn:active { background: var(--navy-dark); color: #fff; }
.keypad-clear { color: #c0392b; }
.keypad-back { color: #7a2e2e; }
.login-card.keypad-left .login-body-row { flex-direction: row-reverse; }

/* تعديل عام: السماح بتوزيع عناصر شريط العنوان (pos-topbar) لما يبقى فيه أكتر من عنصر */
.pos-topbar.justify-between { justify-content: space-between; }

/* طريقة الدفع - أزرار كبيرة سهلة اللمس بدل القائمة المنسدلة */
.pos-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.pos-pay-btn {
    background: #fff; border: 1px solid #9aa7b0; border-radius: 8px; color: #334;
    font-size: 12px; line-height: 1.5; padding: 10px 4px; cursor: pointer; text-align: center;
}
.pos-pay-btn small { font-size: 10px; color: #667; }
.pos-pay-btn.active { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.pos-pay-btn.active small { color: #cfe0ea; }

/* شاشات القوائم (فواتير/مصروفات/شيفتات) - شكل احترافي بدل جدول عادي على خلفية بيضا */
.list-shell { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 24px; }
.list-shell .pos-topbar { justify-content: space-between; padding: 14px 20px; }
.list-shell .list-body { padding: 18px 20px 22px; }
.list-shell .table { margin-bottom: 0; }
.list-shell table thead th {
    background: var(--navy-dark); color: #fff; border-color: var(--navy-dark);
    font-weight: 500; vertical-align: middle; white-space: nowrap;
}
.list-shell table tbody tr:hover { background: #eef4f8; }
.list-shell table tfoot th { background: #f4f6f8; }
.list-shell .table-bordered, .list-shell .table-bordered th, .list-shell .table-bordered td { border-color: #e3e8eb; }

/* رقم الفاتورة/السند كلينك واضح إنه قابل للضغط */
.id-badge-link {
    display: inline-block; background: var(--navy-light); color: #fff !important;
    padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500;
    text-decoration: none; transition: background .15s ease;
}
.id-badge-link:hover { background: var(--navy-dark); color: #fff !important; }

/* شاشات بدء/إنهاء الشيفت - كارت احترافي فى نص الشاشة */
.centered-shell-wrap { display: flex; justify-content: center; padding: 30px 15px; }
.shell-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.1); width: 100%; max-width: 620px; }
.shell-card .pos-topbar { justify-content: center; }
.shell-card .shell-body { padding: 22px 26px 26px; }

/* صناديق إحصائيات احترافية - بديل الكروت الملونة القديمة (text-bg-success..الخ) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-box {
    background: #fff; border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07); border-inline-start: 4px solid var(--navy-light);
}
.stat-box .stat-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.stat-box .stat-value { font-size: 22px; font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
.stat-box .stat-label { font-size: 12.5px; color: #667; }
.stat-box.stat-success { border-inline-start-color: #2e9e5b; }
.stat-box.stat-success .stat-icon { background: #2e9e5b; }
.stat-box.stat-danger { border-inline-start-color: #d9534f; }
.stat-box.stat-danger .stat-icon { background: #d9534f; }
.stat-box.stat-primary { border-inline-start-color: #2f6fb0; }
.stat-box.stat-primary .stat-icon { background: #2f6fb0; }
.stat-box.stat-warning { border-inline-start-color: #d99a2f; }
.stat-box.stat-warning .stat-icon { background: #d99a2f; }
.stat-box.stat-secondary { border-inline-start-color: #7a8894; }
.stat-box.stat-secondary .stat-icon { background: #7a8894; }

/* كارت حالة الشيفت الحالية - نفس روح stat-box بس أعرض */
.shift-status-box {
    background: #fff; border-radius: 12px; padding: 18px 20px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
    border-inline-start: 4px solid #7a8894; flex-wrap: wrap;
}
.shift-status-box.is-open { border-inline-start-color: #2e9e5b; }
.shift-status-box .shift-status-icon {
    width: 50px; height: 50px; border-radius: 50%; background: #eef1f3; color: var(--navy-dark);
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.shift-status-box.is-open .shift-status-icon { background: #e6f6ec; color: #2e9e5b; }

/* لوحة أرقام عامة لأي حقل مبلغ (نفس شكل لوحة الدخول) */
.amount-keypad-wrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.amount-keypad { width: 190px; flex-shrink: 0; }
.amount-keypad .keypad-grid { grid-template-columns: repeat(3, 1fr); }

/* اختيار صنف في السلة عشان نضيفله إضافة (زي فاتورة المطبخ - الإضافة بتتربط بصنف معين) */
.pos-cart-table tbody tr.cart-row-selectable { cursor: pointer; }
.pos-cart-table tbody tr.cart-row-selectable:hover { background: #eef4f8; }
.pos-cart-table tbody tr.cart-row-selected { background: #dceaf3 !important; }
.pos-cart-table tr.cart-extra-row td { color: #556; font-size: 11px; padding-top: 2px; padding-bottom: 2px; border-top: none; }
.pos-cart-table tr.cart-extra-row .extra-indent { padding-inline-start: 18px; }
.pos-toolbar button:disabled { opacity: .35; cursor: not-allowed; }

/* طباعة تقرير إنهاء الشيفت - اعرض التابات التلاتة مع بعض مطبوعة، واخفي عناصر التصفح */
@media print {
    .no-print { display: none !important; }
    .shift-print-section .tab-pane { display: block !important; opacity: 1 !important; visibility: visible !important; }
    .shift-print-section .tab-pane:not(:last-child) { page-break-after: always; }
    .shift-print-section h6.print-section-title { display: block !important; }
    body { background: #fff !important; }
    .list-shell, .shell-card { box-shadow: none !important; border: 1px solid #ccc !important; }
}
.print-section-title { display: none; font-weight: bold; margin-bottom: 10px; border-bottom: 2px solid var(--navy-dark); padding-bottom: 6px; }

/* ======================================================================
   شاشة نقطة البيع - شكل ثابت بملأ الشاشة على أي دقة، مفيش سكرول للصفحة كلها
   (السكرول بس جوه شبكة الأصناف وجوه جدول السلة)
   ====================================================================== */
html, body.pos-fullscreen { height: 100%; }
body.pos-fullscreen { display: flex; flex-direction: column; overflow: hidden; margin: 0; }
body.pos-fullscreen .navbar { flex: 0 0 auto; }
body.pos-fullscreen .pos-page-wrap { flex: 1 1 auto; min-height: 0; padding: 10px 14px; display: flex; }
body.pos-fullscreen .pos-shell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; }
body.pos-fullscreen .pos-topbar { flex: 0 0 auto; }
body.pos-fullscreen .pos-body { flex: 1 1 auto; min-height: 0; }
body.pos-fullscreen .pos-toolbar { flex: 0 0 auto; }
body.pos-fullscreen .pos-categories,
body.pos-fullscreen .pos-products,
body.pos-fullscreen .pos-cart { min-height: 0; overflow-y: auto; }
body.pos-fullscreen .pos-cart { display: flex; flex-direction: column; }
/* منطقة جدول السلة تاخد المساحة المتبقية وتعمل سكرول جواها بس، مش أبعاد ثابتة */
body.pos-fullscreen .pos-cart-scroll { flex: 1 1 auto; min-height: 60px; overflow-y: auto; }

/* ترتيب الأعمدة: السلة/الفاتورة على اليمين، الأصناف في النص، الفئات على الشمال */
.pos-body { grid-template-columns: clamp(260px, 20vw, 360px) 1fr clamp(56px, 20vw, 65px); }

/* ======================================================================
   القوائم العلوية (Navbar) - شكل مربعات مجسّم بدل لينكات نص عادية
   ====================================================================== */
.navbar .navbar-nav .nav-link {
    background: linear-gradient(180deg, #2a4a5e, #1b3a4b);
    border: 1px solid #33566b;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 3px;
    color: #dbe7ee;
    box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10);
    transition: transform .05s ease;
    font-size:12px !important;
}
.navbar .navbar-nav .nav-link:hover { background: linear-gradient(180deg, #33566b, #234456); color: #fff; }
.navbar .navbar-nav .nav-link:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10); }
.navbar .navbar-nav .nav-link.active {
    background: var(--navy-light);
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.45);
    font-weight: 500;
}
.navbar .navbar-text { padding: 6px 10px; }

/* ======================================================================
   الدفع بأكتر من طريقة (Split Payment) - كل طريقة تتضاف كسطر مستقل بمبلغه
   ====================================================================== */
.payment-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.payment-line-row { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d7dee3; border-radius: 6px; padding: 5px 8px; }
.payment-line-row .pl-method { flex: 0 0 auto; font-size: 12px; font-weight: 600; width: 70px; }
.payment-line-row input { flex: 1; }
.payment-line-row .pl-remove { flex: 0 0 auto; }
.payment-summary-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 2px; }
.payment-summary-row.remaining-positive { color: #c0392b; font-weight: 600; }
.payment-summary-row.remaining-zero { color: #2e9e5b; font-weight: 600; }

/* ======================================================================
   استجابة على أي مقاس شاشة (لابتوب صغير، شاشة مكتب كبيرة...الخ)
   على العرض الضيق تقل أعمدة السلة/الفئات أكتر، وعلى الارتفاع القصير (لابتوب)
   يقل الحشو وحجم الخط عشان كل حاجة تتظبط في الشاشة من غير ما تبان مزنوقة
   ====================================================================== */
@media (max-width: 1440px) {
    .pos-body { grid-template-columns: clamp(230px, 22vw, 320px) 1fr clamp(50px, 22vw, 100px); }
}
@media (max-width: 1200px) {
    .pos-body { grid-template-columns: clamp(210px, 24vw, 280px) 1fr clamp(46px, 22vw, 56px); }
}

@media (max-height: 820px) {
    .pos-topbar { padding: 8px 10px; font-size: 15px; }
    .pos-categories { padding: 6px; gap: 4px; }
    .pos-cat-btn { padding: 6px 3px; font-size: 11px; }
    .pos-products { padding: 8px; }
    .pos-product-card { padding: 6px 4px; }
    .pos-product-name { font-size: 11px; margin-top: 26px; }
    .pos-price-badge { font-size: 10px; padding: 1px 6px; }
    .pos-cart { padding: 8px; gap: 5px; }
    .pos-order-type-btn { padding: 5px; font-size: 12px; }
    .pos-meta-row { font-size: 11px; padding: 3px 0; }
    .pos-totals { padding: 6px 10px; font-size: 12px; }
    .pos-totals .net-row { font-size: 14px; }
    .pos-toolbar button { padding: 8px 3px; font-size: 10.5px; }
    .pos-nav-btn { font-size: 9px; padding: 3px 2px; }
}
@media (max-height: 700px) {
    .pos-topbar { padding: 6px 10px; font-size: 13px; }
    .pos-product-name { font-size: 10px; margin-top: 22px; }
    .pos-cart-table { font-size: 11px; }
    .pos-toolbar button { padding: 6px 2px; font-size: 10px; }
}

/* ======================================================================
   دعم شاشات اللمس (POS Touch Screens)
   بيشتغل تلقائي على أي جهاز إدخاله باللمس/القلم (pointer: coarse) زي
   شاشات الكاشير التاتش، من غير ما يأثر على شكل الشاشة على اللابتوب/الماوس
   ====================================================================== */

/* منع تكبير الصفحة عند النقر المزدوج/تأخير 300ms الشهير في المتصفحات باللمس */
button, .pos-cat-btn, .pos-product-card, .pos-toolbar button, .pos-nav-btn,
.pos-pay-btn, .pos-order-type-btn, .keypad-btn, .extra-preset-btn,
.id-badge-link, .dashboard-tile, .cart-row-selectable {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
    /* منع تحديد النص العرضي والقائمة اللي بتظهر مع الضغط المطول على الأزرار */
    button, .pos-cat-btn, .pos-product-card, .pos-toolbar button, .pos-nav-btn,
    .pos-pay-btn, .pos-order-type-btn, .keypad-btn, .extra-preset-btn {
        -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
    }

    /* تكبير مساحة اللمس لكل الأزرار الأساسية بحيث ما تقلش عن 44px (المعيار المتعارف عليه للمس) */
    .pos-cat-btn { min-height: 48px; padding: 12px 6px; font-size: 14px; }
    .pos-product-card { min-height: 76px; padding: 12px 8px; }
    .pos-product-name { font-size: 13px; }
    .pos-price-badge { font-size: 12px; padding: 3px 9px; }
    .pos-toolbar button { min-height: 50px; padding: 12px 4px; font-size: 13px; }
    .pos-nav-btn { min-height: 40px; padding: 8px 4px; font-size: 12px; }
    .pos-pay-btn { min-height: 52px; padding: 12px 6px; font-size: 13px; }
    .pos-order-type-btn { min-height: 44px; padding: 10px; font-size: 14px; }
    .keypad-btn { min-height: 52px; font-size: 20px; }
    .extra-preset-btn { min-height: 48px; padding: 10px 6px; }
    .id-badge-link { padding: 8px 16px; font-size: 13px; }
    .dashboard-tile { padding: 1.5rem 0.5rem; }

    /* صفوف سلة المشتريات - تكبير مساحة اللمس لاختيار الصنف لإضافة الإضافات عليه */
    .pos-cart-table td, .pos-cart-table th { padding-top: 10px; padding-bottom: 10px; }
    .pos-cart-table tr.cart-extra-row td { padding-top: 6px; padding-bottom: 6px; }

    /* الحقول - خط لا يقل عن 16px لمنع تكبير الشاشة التلقائي عند التركيز على شاشات اللمس (خاصة آيباد/آيفون) */
    .pos-cart input.form-control,
    #productSearch,
    #discountInput,
    .form-control, .form-select {
        font-size: 16px;
    }
    .form-control-sm { font-size: 15px; padding-top: 8px; padding-bottom: 8px; }

    /* تفعيل ردة فعل بصرية واضحة عند الضغط باللمس بدل الاعتماد على hover اللي مبيشتغلش باللمس */
    .pos-product-card:active { background: #e2ecf2; }
    .pos-toolbar button:active { background: rgba(255,255,255,0.15); }
    .pos-cat-btn:active { background: rgba(255,255,255,0.15); }
    .pos-pay-btn:active { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
    .pos-order-type-btn:active { background: var(--navy-mid); color: #fff; }
    .extra-preset-btn:active { background: var(--navy-dark); color: #fff; }
}

/* ======================================================================
   ضبط خاص لشاشات اللمس مقاس 15.6 بوصة (الأكثر انتشاراً في أجهزة الكاشير)
   شاشات الـ15.6 بوصة بتيجي غالباً بدقة 1366×768 أو 1920×1080 (Full HD).
   مساحة الشاشة الفعلية صغيرة رغم إن الدقة عالية، فالأزرار لازم تكون أكبر
   من العادي عشان تناسب حجم الإصبع الفعلي على الشاشة، مش بس دقة البكسل.
   ====================================================================== */
@media (pointer: coarse) and (min-width: 1280px) and (max-width: 1920px) {
    .pos-body { grid-template-columns: clamp(280px, 19vw, 380px) 1fr clamp(60px, 5vw, 70px); }
    .pos-cat-btn { min-height: 56px; padding: 14px 6px; font-size: 15px; }
    .pos-product-card { min-height: 92px; padding: 14px 10px; }
    .pos-product-name { font-size: 14px; }
    .pos-price-badge { font-size: 13px; padding: 4px 10px; }
    .pos-toolbar button { min-height: 58px; padding: 14px 4px; font-size: 14px; }
    .pos-nav-btn { min-height: 46px; padding: 10px 4px; font-size: 13px; }
    .pos-pay-btn { min-height: 60px; padding: 14px 6px; font-size: 14px; }
    .pos-order-type-btn { min-height: 50px; padding: 12px; font-size: 15px; }
    .keypad-btn { min-height: 60px; font-size: 22px; }
    .extra-preset-btn { min-height: 54px; padding: 12px 6px; font-size: 14px; }
    .pos-cart-table td, .pos-cart-table th { padding-top: 12px; padding-bottom: 12px; font-size: 13px; }
    .pos-meta-row { font-size: 13px; padding: 8px 0; }
    .pos-totals { padding: 12px 14px; font-size: 14px; }
    .pos-totals .net-row { font-size: 18px; }
}
