/* [Claude 2026-11-06] POS lock screen (pos-lock.js): above sheets (80), toasts (95) and the connection pill; fits 1024×600. */
.pos-lock { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--text); display: grid; place-items: center; padding: 16px; overflow: auto; animation: fade .25s var(--out); outline: none; }
.pos-lock .pl-box { width: min(760px, 100%); display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; text-align: center; }
.pos-lock .pl-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pos-lock .pl-id { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pos-lock .pl-avatar { width: 84px; height: 84px; font-size: 32px; }
.pos-lock .pl-name { font-size: 26px; font-weight: 700; line-height: 1.2; }
.pos-lock .pl-company { font-size: 16px; }
.pos-lock .pl-title { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-weight: 600; }
.pos-lock .pl-switch { min-height: 48px; padding: 0 18px; }
.pos-lock .pl-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pos-lock .pin-dots { margin: 8px 0 6px; }
.pos-lock .pl-err { color: var(--red); font-weight: 600; min-height: 22px; font-size: 15px; }
.pos-lock .pl-net { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14px; }
.pos-lock .pl-net[hidden] { display: none; }
.pos-lock .pad { gap: 10px 22px; justify-items: center; padding-top: 4px; }
.pos-lock .pad button { width: 68px; height: 68px; min-height: 0; border-radius: 50%; font-size: 30px; font-weight: 300; background: var(--fill); color: var(--text); }
.pos-lock .pad button:active { background: var(--fill-2); }
.pos-lock .pad button.del { background: transparent; font-size: 22px; }
.pos-lock .pad button.ok { background: var(--accent); color: #fff; }
.pos-lock .pad button.ok:disabled { opacity: .4; }
.pos-lock .pl-confirm { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px; background: var(--bg); text-align: center; animation: fade .2s var(--out); }
.pos-lock .pl-confirm-text { max-width: 460px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.pos-lock .pl-confirm .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pos-lock .pl-confirm .btn { min-height: 48px; padding: 0 20px; }
@media (min-width: 700px) { .pos-lock .pl-box { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-height: 640px) {
  .pos-lock { padding: 10px 16px; }
  .pos-lock .pl-avatar { width: 64px; height: 64px; font-size: 26px; }
  .pos-lock .pl-name { font-size: 22px; }
  .pos-lock .pad { gap: 8px 20px; }
  .pos-lock .pad button { width: 64px; height: 64px; font-size: 28px; }
}
/* [Claude 2026-11-06] The lock handle (Hadi: the finger starts on the lock icon and drags it down). Top left (toasts own the top centre), above the page,
   below sheets and the lock screen; 44 px knob; a short track appears while it is pulled; green when release will lock. */
.pos-lock-handle { position: fixed; top: 6px; left: 10px; z-index: 60; width: 56px; height: 44px; padding: 0; border: 0; background: none; touch-action: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.pos-lock-handle .plh-knob { position: absolute; left: 6px; top: 0; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--material, rgba(255,255,255,.85)); color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,.18); transform: translateY(var(--dy, 0px)); transition: transform .18s ease, background .15s, color .15s; }
.pos-lock-handle.pulling .plh-knob { transition: none; color: var(--accent); }
.pos-lock-handle.ready .plh-knob { background: var(--green); color: #fff; }
.pos-lock-handle .plh-track { position: absolute; left: 26px; top: 22px; width: 4px; height: var(--dy, 0px); border-radius: 2px; background: var(--accent); opacity: calc(.15 + .5 * var(--p, 0)); }
.pos-lock-handle.ready .plh-track { background: var(--green); }
.pos-lock-handle .plh-tip { position: absolute; left: 0; top: 50px; white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: var(--material, #fff); color: var(--text); font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.18); pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.pos-lock-handle.hint .plh-tip { opacity: 1; transform: none; }
.pos-lock-handle.hint .plh-knob { animation: plh-nudge .9s ease 2; }
@keyframes plh-nudge { 0%,100% { transform: translateY(0); } 40% { transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .pos-lock, .pos-lock .pl-confirm { animation: none; } .pos-lock-handle .plh-knob { transition: none; animation: none !important; } }
/* [Claude 2026-11-15] Phones, handhelds and tablets: the padlock is an icon of the header row (pos-lock.js syncHandle). */
.pos-lock-handle.inline { position: relative; top: auto; left: auto; width: 44px; height: 44px; flex: none; z-index: 5; }
.pos-lock-handle.inline .plh-knob { left: 0; box-shadow: none; background: var(--fill, rgba(0,0,0,.05)); }
.pos-lock-handle.inline .plh-track { left: 20px; }
.pos-lock-handle.inline .plh-tip { left: auto; right: -40px; }
/* [Claude 2026-11-15] Hadi: the lock screen on a portrait phone was badly laid out. One compact identity row, a large pad, the
   « Changer d'utilisateur » link at the bottom; the big shop logo only on wider screens. */
@media (max-width: 699px) {
  .pos-lock { place-items: start center; padding: max(18px, env(safe-area-inset-top)) 16px 16px; }
  .pos-lock .pl-box { display: flex; flex-direction: column; gap: 14px; }
  .pos-lock .pl-side { display: contents; }
  .pos-lock .pl-id { order: 1; }
  .pos-lock .pl-pad { order: 2; }
  .pos-lock .pl-switch { order: 3; align-self: center; }
  .pos-lock .pl-logo { display: none !important; }
  .pos-lock .pl-id > * { justify-self: start; text-align: start; }
  .pos-lock .pl-id { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av name" "av company" "title title"; column-gap: 12px; row-gap: 2px; align-items: center; text-align: start; width: 100%; max-width: 340px; margin: 0 auto 6px; }
  .pos-lock .pl-avatar { grid-area: av; width: 52px; height: 52px; font-size: 20px; }
  .pos-lock .pl-name { grid-area: name; font-size: 20px; }
  .pos-lock .pl-company { grid-area: company; font-size: 14px; }
  .pos-lock .pl-title { grid-area: title; justify-self: start; margin-top: 8px; padding: 6px 12px; font-size: 14px; }
  .pos-lock .pad { gap: 12px 26px; }
  .pos-lock .pad button { width: 76px; height: 76px; font-size: 32px; }
  .pos-lock .pl-switch { min-height: 44px; background: none; color: var(--muted); }
}
@media (max-width: 420px) { .pos-lock-handle.inline { width: 36px; } .pos-lock-handle.inline .plh-knob { width: 36px; height: 36px; top: 4px; } .pos-lock-handle.inline .plh-track { left: 16px; } }
/* [Claude 2026-11-18] camera badge scan on the lock screen */
.pos-lock .pl-scan { z-index: 20; background: var(--bg-solid, var(--surface, #fff)); padding-top: calc(24px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; overflow: auto; }
.pos-lock .pl-scan > * { width: min(440px, 100%); margin-inline: auto; }
.pos-lock .pl-scan video { max-height: 48vh; }
/* [Claude 2026-11-19] unlock with fingerprint / Face ID */
.pos-lock .pl-bio { min-height: 52px; padding-inline: 18px; border-radius: 16px; font-weight: 600; gap: 8px; }
