/* walkin.css — the VIP walk-in banner (js/walkin.js), on every Sales screen,
   in both layouts.

   THE TOP OF THE SCREEN IS ITS (owner, 2026-10-29). It is the first row of
   .phone, above the page's own header: it drops from the top edge, the header
   and the page move down under it, and it stays while the page scrolls — so it
   covers nothing, and the shell's sheets, menu and lock still sit over it.

   Drawn like the web portal's walk-in and the tablet's banner: a bar in the
   state's colour with the bell, the name and the time in the room, and under
   it the card. One look in Boxy and Minimal, in the colourway's own tokens:
   gold (--wrote) while they wait, red (--alarm) once escalated, green (--good)
   for the seconds after somebody takes them. */

.wk {
  --wk: var(--wrote);
  --wk-on: var(--on-wrote);
  --wk-wash: var(--wrote-wash);
  --wk-ink: var(--wrote-ink);
  --wk-line: var(--wrote-line);
  position: relative;
  z-index: 12;
  flex: none;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .40);
  animation: wk-down 320ms cubic-bezier(.2, .8, .3, 1) both;
}
.wk[hidden] { display: none; }
.wk--late  { --wk: var(--alarm); --wk-on: var(--on-alarm); --wk-wash: var(--alarm-wash); --wk-ink: var(--alarm); --wk-line: var(--alarm-2); }
.wk--taken { --wk: var(--good);  --wk-on: var(--on-good);  --wk-wash: var(--good-wash);  --wk-ink: var(--good);  --wk-line: var(--good-2); }
/* Already announced on an earlier screen: drawn in place. */
.wk.is-still, .wk.is-still .wk-card { animation: none; }
@keyframes wk-down { from { transform: translateY(-100%); } to { transform: none; } }

/* ── The bar ─────────────────────────────────────────────────────────────── */
.wk-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--wk);
  color: var(--wk-on);
}
.wk-bell {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm, 6px);
  background: var(--wk-on);
  color: var(--wk);
  animation: wk-ring 1.8s ease-in-out infinite;
}
.wk-bell svg { width: 15px; height: 15px; }
@keyframes wk-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
.wk-what {
  flex: 1; min-width: 0;
  font-size: 13.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wk-what b { font-weight: 700; }
.wk-when { flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── The card: a beat after the bar, so it is watched arriving ───────────── */
.wk-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px;
  background: var(--wk-wash);
  border-bottom: 2px solid var(--wk);
  color: var(--ink);
  animation: wk-card 260ms ease-out 450ms both;
}
@keyframes wk-card { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.wk-who { display: flex; align-items: center; gap: 10px; }
.wk-ava {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--wk-ink);
  box-shadow: 0 0 0 2px var(--wk);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.wk-who div { display: flex; flex-direction: column; min-width: 0; }
.wk-name { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.wk-sub { font-size: 12.5px; line-height: 1.35; color: var(--soft); }

.wk-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wk-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.wk-facts svg { width: 15px; height: 15px; flex: none; color: var(--wk-ink); }
.wk-facts b { font-variant-numeric: tabular-nums; }
.wk-facts .wk-state { font-weight: 700; color: var(--wk-ink); }

.wk-look { display: flex; align-items: center; gap: 10px; }
.wk-img {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm, 6px);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--wk-line);
}
.wk-look div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--wk-ink); }
.wk-look b { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.wk-on { font-size: 12px; color: var(--mute); }
.wk-on b { font-size: inherit; color: var(--ink); font-variant-numeric: tabular-nums; }

/* What they wrote that nobody answered: red whatever the banner's colour,
   with how long it has waited first (number, then its label). */
.wk-said { padding: 9px 11px; border-radius: var(--r-sm, 6px); background: var(--alarm); color: var(--on-alarm); }
.wk-said-h { display: flex; align-items: baseline; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.wk-said-h b { font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wk-said-q { margin-top: 3px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.wk-esc { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--alarm); }

.wk-acts { display: flex; gap: 10px; }
.wk-btn {
  flex: 1;
  min-height: 44px;
  border-radius: var(--r-sm, 6px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 700;
}
.wk-btn--go { flex: 2; background: var(--accent); color: var(--on-accent); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .wk, .wk-card, .wk-bell { animation: none; }
}
