/* Paradisiac Gatehouse 2.1: Workers */

/* ---- officer: worker gate ---- */
.wk-gate{max-width:560px;margin:0 auto}
.wk-where{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
.wk-gname{font-size:1.2rem}
.wk-onsite{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);padding:9px 12px;border-radius:var(--r2);font:inherit;font-weight:650;cursor:pointer;min-height:44px}
.wk-onsite svg{width:20px;height:20px}
.wk-onsite b{font-variant-numeric:tabular-nums}
.wk-scan{min-height:84px;font-size:1.35rem}
.wk-scan svg{width:30px;height:30px}
.wk-next{display:flex;gap:8px;align-items:center;font-size:.9rem;color:var(--ink-2)}
.wk-next input{width:20px;height:20px}
.wk-gate .li.click{min-height:56px}

/* ---- the verdict screen ---- */
.wk-id{display:flex;gap:14px;align-items:flex-start;margin:4px 0 12px}
.wk-face{flex:0 0 46%;max-width:230px;aspect-ratio:3/4;border:1px solid var(--line);border-radius:var(--r2);background:var(--surface-2);overflow:hidden;padding:0;display:flex;align-items:center;justify-content:center;cursor:zoom-in;color:var(--ink-2)}
.wk-face img{width:100%;height:100%;object-fit:cover;display:block}
.wk-face.big{flex-basis:100%;max-width:none;cursor:zoom-out}
.wk-id:has(.wk-face.big){flex-direction:column}
.wk-noface{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;text-align:center;font-size:2.4rem;font-weight:750}
.wk-noface small{font-size:.8rem;font-weight:600;color:var(--warn)}
.wk-idtext{min-width:0;flex:1}
.wk-name{font-size:1.45rem;font-weight:750;line-height:1.15;overflow-wrap:anywhere}
.wk-co{font-size:1.1rem;font-weight:600;margin-top:2px;overflow-wrap:anywhere}
.wk-zones{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r2);background:var(--surface-2)}
.wk-zt{font-weight:700;font-size:.85rem;color:var(--ink-2);margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.wk-z{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:1.05rem;font-weight:650}
.wk-z svg{width:22px;height:22px;flex:none;stroke-width:2.6}
.wk-z.yes{color:var(--ok)}.wk-z.no{color:var(--bad)}
.wk-z.no span{text-decoration:line-through;text-decoration-thickness:1px}

/* ---- office form ---- */
.wk-photo{display:flex;gap:12px;align-items:center}
.wk-face.sm{flex:0 0 72px;width:72px;max-width:72px;cursor:default}
.wk-face.sm svg{width:32px;height:32px}
.wk-warn{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:var(--r2);background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn);font-size:.9rem}
.wk-warn svg{width:22px;height:22px;flex:none}
.wk-warn b{display:block}
.probs{margin:6px 0 0 18px;padding:0}

/* ---- printed badges: credit card size, ten to an A4 page. Print is always black on white, whatever the app theme. ---- */
@media screen{ .wk-sheet{display:none} }
@page wkbadge{size:A4;margin:8mm}
.wk-sheet{page:wkbadge;display:grid;grid-template-columns:repeat(2,85.6mm);grid-auto-rows:54mm;gap:2mm;justify-content:center;align-content:start;break-after:page;page-break-after:always;color:#000;background:#fff}
.wk-badge{font-family:var(--font);box-sizing:border-box;width:85.6mm;height:54mm;border:.3mm solid #000;border-radius:3mm;overflow:hidden;display:flex;flex-direction:column;background:#fff;color:#000;break-inside:avoid;page-break-inside:avoid}
.wk-b-top{display:flex;justify-content:space-between;align-items:center;background:#000;color:#fff;padding:1.2mm 3mm;font-size:7pt;letter-spacing:.06em;text-transform:uppercase;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.wk-b-top b{font-weight:700}
.wk-b-body{flex:1;display:flex;gap:2.5mm;padding:2mm 3mm 0;min-height:0}
.wk-b-photo{flex:0 0 22mm;height:28mm;border:.25mm solid #000;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:16pt;font-weight:700}
.wk-b-photo img{width:100%;height:100%;object-fit:cover;display:block}
.wk-b-info{flex:1;min-width:0;font-size:7.5pt;line-height:1.25}
.wk-b-name{font-size:10.5pt;font-weight:700;line-height:1.15;overflow-wrap:anywhere}
.wk-b-co{font-weight:600;margin-top:.6mm}
.wk-b-areas{margin-top:1.2mm;font-size:6.5pt;overflow:hidden;max-height:11mm}
.wk-b-qr{flex:0 0 19mm;display:flex;flex-direction:column;align-items:center;font-size:6.5pt;font-weight:700;letter-spacing:.08em}
.wk-b-qr svg{width:19mm;height:19mm;display:block}
.wk-b-foot{padding:1mm 3mm 1.6mm;font-size:7pt;border-top:.2mm solid #000;margin-top:1mm}
@media print{ .wk-sheet{display:grid} }
