/* The real dashboard's few additions to the demo's look, copied from the old live dashboard (server/static/sites2/
   live.js, which injected them): demo-only parts hidden, the save pill, the sign-out button. */
html.is-live [data-demoonly],html.is-live #gate,html.is-live [data-demonote],html.is-live #demoNote{display:none!important}
#liveSave{position:fixed;z-index:99999;inset-inline-end:14px;bottom:calc(14px + env(safe-area-inset-bottom));padding:7px 12px;border-radius:999px;font:600 12.5px/1 system-ui,sans-serif;background:#1f7a4d;color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:opacity .3s}
#liveSave.busy{background:#555}#liveSave.bad{background:#b3261e}#liveSave.idle{opacity:0;pointer-events:none}
#liveOut,#attMine{margin-top:10px;width:100%;border:1px solid var(--line,#ccc);background:transparent;color:inherit;border-radius:10px;padding:8px;font:inherit;cursor:pointer}
#attMine{margin-top:0}
/* the ring of the old live dashboard (live.js): a new website order rings until someone opens it (package C) */
#liveRing{position:fixed;z-index:99997;inset-inline:12px;top:calc(10px + env(safe-area-inset-top));display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:#b3261e;color:#fff;font:600 15px/1.3 system-ui,sans-serif;box-shadow:0 8px 28px rgba(0,0,0,.35);cursor:pointer;animation:liveRingP 1s ease-in-out infinite alternate}
#liveRing[hidden]{display:none}#liveRing b{flex:1 1 auto}#liveRing small{flex:1 1 100%;order:3;font-weight:400;opacity:.9}#liveRing button{border:0;border-radius:10px;background:#fff;color:#b3261e;font:700 15px/1 system-ui,sans-serif;padding:10px 18px;cursor:pointer}
/* while it rings, it covers nothing (main-session decision (e), review of dash-when): orders.js room() keeps --ringH = the
   alert's bottom edge, and the page, its sticky bars, every sheet, the toast and the till's QR wall start under it */
html.is-ringing body{padding-top:var(--ringH)}
html.is-ringing aside{top:var(--ringH);height:calc(100vh - var(--ringH))}
html.is-ringing .mtop{top:var(--ringH)}
html.is-ringing .ticket,html.is-ringing .phone{top:calc(16px + var(--ringH))}
html.is-ringing .modal{padding-top:calc(16px + var(--ringH))}
html.is-ringing .mbox{max-height:min(90vh,calc(100vh - var(--ringH) - 32px))}
html.is-ringing #attWall{padding-top:calc(20px + var(--ringH))}
html.is-ringing #toast{top:calc(6px + var(--ringH))}
@keyframes liveRingP{from{box-shadow:0 8px 28px rgba(0,0,0,.35),0 0 0 0 rgba(179,38,30,.55)}to{box-shadow:0 8px 28px rgba(0,0,0,.35),0 0 0 10px rgba(179,38,30,0)}}@media(prefers-reduced-motion:reduce){#liveRing{animation:none}}
/* a save the site did not take yet: the menu screen's «لسه ماظهرش في الموقع» + «جرّب تاني» (js/menu.js pending()) */
#liveSite{position:fixed;z-index:99998;inset-inline:12px;bottom:calc(52px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#fff4e5;color:#7a4b00;border:1px solid #f0c27a;font:600 14px/1.3 system-ui,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.18)}
#liveSite[hidden]{display:none}#liveSite span{flex:1 1 auto}
/* a delivery's map pin (pin.js, 0091): «📍 افتح على الخريطة» on its card and at the top of its order window */
.pinrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pinrow .pinlnk{color:var(--blue,#2f63c9);font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.pinrow.pinwin{margin:0 0 10px;font-size:15px;justify-content:flex-start;align-self:stretch;width:100%}.pinrow .pinacc{color:var(--muted);font-size:12px;border:1px dashed currentColor;border-radius:999px;padding:1px 8px}
/* Every paper (the receipt, the provisional bill, «تقفيل اليوم», «الفلوس», the kitchen tickets and slips): the demo's
   print rule set `monospace`, and a monospaced face draws Arabic letter by letter (unjoined: «ا ل م ط ب خ»). The
   dashboard's own font (self-hosted, Arabic and Latin), then system Arabic faces; no letter spacing; digits stay
   tabular so the money columns still line up. 58 and 80 mm alike. */
@media print{html .receipt{font-family:var(--f),'Alexandria','Noto Naskh Arabic','Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;letter-spacing:0;font-variant-numeric:tabular-nums}html .receipt *{letter-spacing:0!important;font-family:inherit}html .receipt[data-paper="58"] b[style*="font-size:24px"]{font-size:19px!important}}
/* The kitchen screen's «دوس على الشاشة مرة عشان صوت التيكتات الجديدة يشتغل» floats over the board instead of sitting in
   its top bar: when the first tap turns the sound on it goes away without moving the board, so that tap still lands on
   the button it was meant for (and taps pass through it). */
section[data-p=kitchen] #kSnd{position:fixed;z-index:60;inset-inline:12px;bottom:calc(84px + env(safe-area-inset-bottom));margin:0 auto;max-width:520px;padding:8px 12px;text-align:center;white-space:normal;font-size:13px;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.18)}
/* the kitchen's watchdog on the tabs (tables.js): an order has a ticket no station printed */
#nav [data-kstuck],#mnav [data-kstuck]{position:relative}
#nav [data-kstuck]::after,#mnav [data-kstuck]::after{content:'';position:absolute;top:6px;inset-inline-end:8px;width:9px;height:9px;border-radius:50%;background:var(--bad,#c2412d);box-shadow:0 0 0 2px var(--card,#fff)}
/* A window open (#modal, the option sheet #optModal: every .modal): the real dashboard's own fixed bars (the site's
   «لسه ماظهرش في الموقع» with «جرّب تاني», the new-order ring, the save pill) go UNDER its backdrop (.modal: 150), so
   they never sit on a window's buttons («ضيف للموقع», «×»); they come back on top when it closes. The attendance
   wall keeps the ring above it (html.is-ringing #attWall). */
html:has(.modal:not([hidden])) :is(#liveSite, #liveRing, #liveSave){z-index:140}
/* a test order (the signed preview's, before go-live: orders/board.py PRELIVE): «طلب تجربة» stands out on its card */
.tag.test{background:#fde68a;color:#78350f;border-color:#f59e0b;font-weight:700}
/* «الهوية»'s phone when no preview can be made (catalog-d.js): a note where the white box was, never an empty frame */
.pv-note{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;border-radius:20px;background:var(--soft);color:var(--muted);font-size:14px}
.pv-note p{margin:0}
/* a counter sale not sent yet (pos.js: the board carries only these from the device's queue) */
.tag.pend{border-style:dashed;font-weight:700}
/* «التصميم»: a card with the shop's own picture in that design (sites/thumbs.py; LIVE.designs[].img on the shop's
   origin) shows it whole from the top, over the sketch; a picture that fails is hidden (html.js) and the sketch shows */
.dth:has(>img[src*="/api/site/thumbs/"]){height:150px;background:var(--soft,#eee)}
.dth>img[src*="/api/site/thumbs/"]{inset:0!important;width:100%!important;height:100%!important;object-fit:cover;object-position:top center;filter:none!important;opacity:1!important;border-radius:0!important;z-index:1}
