/* شاشة إلزام فتح الشفت: تملأ الشاشة بعد دخول موظف الكاشير، بأهداف لمس كبيرة ولوحة أرقام خاصة بها (لا لوحة Windows). */
.shift-gate{position:fixed;inset:0;z-index:55;display:flex;padding:16px;overflow:auto;
  background:radial-gradient(1200px 600px at 50% -10%, #14b8a6 0%, #0d9488 40%, #0b6b64 100%);}
.shift-gate-card{margin:auto;background:var(--card);width:100%;max-width:460px;padding:26px 26px 22px;border-radius:22px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:10px;}
.shift-gate-card h2{font-size:24px;text-align:center;color:var(--brand-d);}
.shift-gate-card>.muted{text-align:center;font-size:15px;}
.shift-gate-info{font-size:16px;line-height:1.8;}
.shift-gate-info p{margin:0;}
.shift-gate-info .shift-gate-suggest{background:#f3f8f5;border:1px solid #d3e1d8;border-radius:12px;padding:10px 14px;margin-bottom:6px;}
.shift-gate-info .shift-gate-suggest b{font-size:20px;font-variant-numeric:tabular-nums;}
.shift-gate-info .shift-gate-warn{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px 14px;color:#7c2d12;}
#shiftGateOpen{display:flex;flex-direction:column;gap:8px;}
#shiftGateOpen label{font-weight:800;font-size:17px;}
#shiftGateCash{font-size:32px;font-weight:800;text-align:center;padding:12px;min-height:64px;font-variant-numeric:tabular-nums;}
.shift-gate-diff{min-height:22px;font-size:15px;text-align:center;}
.shift-gate-diff .low{color:var(--red);font-weight:800;}
.shift-gate-diff .paid{color:var(--ok);font-weight:800;}
.shift-gate-keys{direction:ltr;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.shift-gate-keys button{min-height:64px;border:1px solid #e3ded3;border-radius:14px;background:#f8f6f1;color:#273029;font-size:28px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 2px 0 #e3ded3;touch-action:manipulation;}
.shift-gate-keys button:active{background:#ebe6d9;box-shadow:none;transform:translateY(2px);}
.shift-gate-keys .gk-back{background:#f1eee6;color:#5d5546;}
.shift-gate-keys .gk-clear{grid-column:1/-1;min-height:52px;border-color:#ecd2cd;background:#fff6f4;color:#a34237;font-size:18px;box-shadow:0 2px 0 #ecd2cd;}
.shift-gate-actions{display:flex;gap:10px;align-items:stretch;margin-top:4px;}
.shift-gate-actions button{min-height:60px;font-size:18px;font-weight:800;border-radius:14px;touch-action:manipulation;}
.shift-gate-confirm{flex:1;background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(13,148,136,.28);}
.shift-gate-confirm:disabled{opacity:.6;}
.shift-gate-retry{flex:1;background:#eef2f6;color:var(--ink);border:1px solid var(--line);}
.shift-gate-logout{min-width:110px;background:#fff;color:var(--muted);border:1.5px solid var(--line);}
.shift-gate #shiftGateError{font-size:15px;text-align:center;}
/* طلب إغلاق الشفت العالق من الإدارة: زر بعرض البطاقة تحت رسالة الحجب، ثم حالة انتظار الرد، ثم نتيجة الطلب فوق شاشة فتح الشفت. */
.shift-gate-request{min-height:60px;font-size:18px;font-weight:800;border-radius:14px;background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(13,148,136,.28);touch-action:manipulation;}
.shift-gate-info .shift-gate-wait{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;margin-bottom:6px;color:#1e3a8a;}
.shift-gate-info .shift-gate-note{background:#f3f8f5;border:1px solid #d3e1d8;border-radius:12px;padding:8px 14px;margin-bottom:6px;font-weight:700;}
.shift-gate-info .shift-gate-note.ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
/* تقرير إقفال الشفت بعد تسليمه: المستخدم خرج تلقائيًا؛ لا تطبيق ولا شاشة دخول تحت التقرير حتى يُغلق، والتنبيه يوضح ذلك فوقه. */
body.shift-handover #app,body.shift-handover #loginView{display:none !important;}
body.shift-handover #flash.err{display:none !important;}/* طلبات الخلفية تُرفض بعد انتهاء الجلسة: ليست خطأ يراه الموظف */
.shift-handover-note{background:#f3f8f5;border:1px solid #d3e1d8;border-radius:12px;padding:10px 14px;margin:8px 0;font-weight:700;}
/* شاشة الكاشير 1024×768 وما دونها ارتفاعًا: البطاقة كلها (مع سطر المبلغ المقترح) تظهر بلا تمرير. */
@media (max-height:820px){
  .shift-gate{padding:10px 16px;}
  .shift-gate-card{padding:14px 22px 14px;gap:6px;}
  .shift-gate-card h2{font-size:20px;}
  .shift-gate-info{font-size:15px;line-height:1.6;}
  .shift-gate-info .shift-gate-suggest,.shift-gate-info .shift-gate-note{padding:6px 12px;margin-bottom:4px;}
  #shiftGateOpen{gap:6px;}
  #shiftGateOpen label{font-size:16px;}
  #shiftGateCash{font-size:26px;min-height:52px;padding:8px;}
  .shift-gate-diff{min-height:20px;font-size:14px;}
  .shift-gate-keys{gap:7px;}
  .shift-gate-keys button{min-height:54px;font-size:25px;}
  .shift-gate-keys .gk-clear{min-height:44px;font-size:16px;}
  .shift-gate-actions button,.shift-gate-request{min-height:54px;}
}
@media (max-height:640px){
  .shift-gate-keys button{min-height:44px;font-size:22px;}
  .shift-gate-keys .gk-clear{min-height:38px;}
  .shift-gate-actions button,.shift-gate-request{min-height:46px;}
}
