/* QR Code Appointment System — page styles (tokens from style.css only). */

/* Hero scene: lobby display, desk standee and the patient's phone ---------- */
.qr-stage { width: min(100%, 560px); margin-inline: auto; }
.qr-scene {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  grid-template-areas: "tv tv" "stand phone";
  gap: 20px 22px;
  align-items: end;
  width: 100%;
}

/* "Now serving" lobby display */
.tv {
  grid-area: tv;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 18px;
  background: var(--night-2);
  color: var(--night-text);
  box-shadow: var(--shadow-lg);
}
.tv__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.tv .live-dot { color: var(--mint); }
.tv__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 16px 18px 18px; }
.tv__now { display: grid; align-content: center; gap: 6px; }
.tv__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.tv__token { font-family: var(--font-mono); font-size: 50px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.tv__where { font-size: 12.5px; color: var(--night-text); }
.tv__next { display: grid; align-content: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--night-line); }
.tv__next li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--night-muted); }
.tv__next .token { background: rgba(255, 255, 255, .08); }
.tv__next .is-new .token { background: var(--mint); color: var(--ink); }
.tv__next .is-new small { color: var(--mint); }

/* Desk standee with a decorative QR pattern */
.qr-stand { grid-area: stand; display: grid; justify-items: center; }
.qr-stand__card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.qr-stand__top {
  justify-self: stretch;
  margin: 0 -16px 4px;
  padding: 9px 12px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
}
.qr-stand__code { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qr-art { width: 100%; height: auto; fill: var(--ink); }
.qr-stand__cta { font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.qr-stand__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.qr-stand__hint .icon { width: 14px; height: 14px; color: var(--brand-strong); }
.qr-stand__base {
  width: 78%;
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(var(--line-strong), var(--line));
  box-shadow: var(--shadow);
}

/* The patient's phone */
.qr-scene .phone { grid-area: phone; justify-self: end; width: 100%; max-width: 268px; }
.qr-scene .chat { height: 276px; }
.qr-pos { font-size: 12.5px; color: var(--ink-2); }
.qr-pos b { color: var(--ink); }
.qr-scene .bubble--pass .meter { height: 6px; margin: 4px 0 2px; }

@media (max-width: 639px) {
  .qr-scene { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tv" "phone" "stand"; justify-items: center; gap: 16px; }
  .qr-scene .tv { width: 100%; }
  .qr-scene .phone { justify-self: center; width: min(300px, 100%); max-width: none; }
  .qr-stand { width: min(100%, 340px); }
  .qr-stand__card { grid-template-columns: 92px minmax(0, 1fr); justify-items: start; gap: 4px 14px; padding: 0 14px 14px; text-align: left; }
  .qr-stand__top { grid-column: 1 / -1; margin-bottom: 8px; }
  .qr-stand__code { grid-row: 2 / span 2; padding: 6px; }
  .qr-stand__cta { grid-column: 2; align-self: end; }
  .qr-stand__hint { grid-column: 2; align-self: start; margin-top: 0; }
  .qr-stand__base { display: none; }
  .tv__token { font-size: 42px; }
}

/* Night band: what the patient sees vs. what the desk sees ----------------- */
.qr-views { display: grid; gap: 32px; align-items: start; }
.qr-view__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.qr-view__label .icon { width: 16px; height: 16px; color: var(--mint); }
.qr-notes { display: grid; gap: 10px; }
.qr-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
}
.qr-note__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(37, 211, 102, .14);
  color: var(--wa);
}
.qr-note__icon .icon { width: 18px; height: 18px; }
.qr-note b { font-size: 14.5px; color: #fff; }
.qr-note time { font-family: var(--font-mono); font-size: 11.5px; color: var(--night-muted); }
.qr-note p { grid-column: 2 / -1; font-size: 13.5px; color: var(--night-text); }
.qr-note--now { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.qr-note--now .qr-note__icon { background: var(--mint); color: var(--ink); }
.qr-views .data-table td { vertical-align: middle; }
.qr-views .is-new td { background: rgba(52, 211, 153, .06); }

@media (min-width: 960px) {
  .qr-views { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; }
}
@media (max-width: 639px) {
  /* Keep the desk table readable on phones: token, patient and status only */
  .qr-views .data-table :is(th, td):is(:nth-child(3), :nth-child(4)) { display: none; }
}
