/* Web kiosk — page-local styles on top of actionly.css (TABLET KIOSK section). Landscape 1280×800 first, responsive below. */
[v-cloak] { display: none; }
body.kiosk-page { background: var(--ink); margin: 0; }
.kiosk { min-height: 100vh; min-height: 100dvh; }
.kiosk-top img { height: 34px; }
.kiosk-top .loc span { display: block; }
.kiosk .ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.kiosk .ico svg { display: block; }
.kiosk .btn .ico { margin-right: 6px; }
.kiosk .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.kiosk .btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }
.kiosk .btn-block { width: 100%; justify-content: center; }
.kiosk .center { text-align: center; }
.kiosk .mono { color: inherit; }
.kiosk-banner.failed { background: var(--red); color: #fff; }
.kiosk-banner .ico { flex: 0 0 auto; }

/* camera box: live video or simulated canvas fill the frame; the guide sits on top */
.cam video, .cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0F1822; }
.cam .frame, .cam .hint, .cam .badge-cam { position: absolute; z-index: 2; }
.cam .frame { left: 50%; top: 50%; transform: translate(-50%, -52%); }
.cam .badge-cam.sim i { background: var(--yellow); }
.cam .hint { text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* four-way choice (clock in / clock out / start break / end break) */
.kiosk .choice.four { grid-template-columns: 1fr 1fr; }
.kiosk .choice.four button { height: 84px; font-size: 19px; }
.kiosk .choice button small { line-height: 1.2; padding: 0 10px; text-align: center; }

.pin-pad.locked button { opacity: .4; }
.pin-pad button:disabled { cursor: not-allowed; }

/* activation form (dark) */
.k-form { width: 100%; max-width: 460px; margin: 0 auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; }
.k-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.k-seg button { border: 0; background: transparent; color: #B4BFCB; font: inherit; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 9px; cursor: pointer; }
.k-seg button.on { background: var(--green); color: #fff; }
.k-lbl { display: block; font-size: 13px; font-weight: 600; color: #B4BFCB; margin: 10px 0 6px; }
.k-input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 18px; padding: 0 14px; letter-spacing: .04em; }
.k-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,184,132,.25); }
.k-demo { white-space: nowrap; }
.k-link { background: none; border: 0; color: var(--green); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.k-link:hover { text-decoration: underline; }

/* confirmation pipeline */
.k-pipe { font-size: 13.5px; }
.k-pipe .kiosk-status { padding: 6px 12px; }
.k-pipe .kiosk-status.off { background: rgba(255,255,255,.06); color: #B4BFCB; }
.k-pipe .arrow { color: #5B6B7F; }

/* device & sync status (from design/kiosk/sync.html page-local styles) */
.kiosk-body.stack { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 18px; padding: 22px 40px 28px; }
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.k-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.k-card h3 { color: #fff; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.k-card h3 .ico { color: #8493A5; }
.k-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.k-kv:last-child { border-bottom: 0; }
.k-kv span:first-child { color: #B4BFCB; flex: 0 0 auto; }
.k-kv span:last-child { text-align: right; overflow-wrap: anywhere; }
.k-num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.k-num small { display: block; font-size: 12.5px; color: #8493A5; font-weight: 500; margin-top: 2px; }
.k-scroll { max-height: 340px; overflow: auto; }
.k-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.k-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8493A5; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; position: sticky; top: 0; background: #22334A; }
.k-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.k-table tr:last-child td { border-bottom: 0; }
.k-table .badge { white-space: nowrap; }
.k-chip { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: rgba(252,185,56,.2); color: var(--yellow); vertical-align: middle; }
.k-err { font-size: 12px; color: #B4BFCB; margin-top: 3px; max-width: 320px; }
.kiosk .badge-yellow { background: rgba(252,185,56,.18); color: var(--yellow); border-color: transparent; }
.kiosk .badge-blue { background: rgba(56,140,244,.18); color: #8CC0FF; border-color: transparent; }
.kiosk .badge-green { background: rgba(10,184,132,.18); color: var(--green); border-color: transparent; }
.kiosk .badge-red { background: rgba(252,102,86,.18); color: var(--red); border-color: transparent; }
.kiosk .badge-ink { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; }

/* footer: simulate-offline switch */
.k-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #B4BFCB; font-size: 13px; }
.k-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-switch .track { position: relative; width: 36px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.2); transition: .15s; flex: 0 0 36px; }
.k-switch .track::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; }
.k-switch input:checked + .track { background: var(--yellow); }
.k-switch input:checked + .track::after { transform: translateX(16px); }

.k-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; z-index: 200; max-width: 90vw; }

/* responsive: portrait tablets and phones */
@media (max-width: 1100px) { .k-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .kiosk-body { grid-template-columns: 1fr; padding: 20px 20px 28px; gap: 20px; align-items: start; }
  .kiosk-body.stack { padding: 18px 20px 24px; }
  .k-grid { grid-template-columns: 1fr; }
  .kiosk-top { padding: 14px 18px; } .kiosk-top .clock .t { font-size: 24px; }
  .kiosk-banner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 18px; font-size: 13.5px; } .kiosk-banner .ml { margin-left: 0; flex-basis: 100%; }
  .kiosk-foot { flex-wrap: wrap; gap: 10px 16px; } .kiosk-foot .ml { margin-left: 0; }
  .pin-pad { grid-template-columns: repeat(3, 80px); gap: 10px; } .pin-pad button { width: 80px; height: 64px; font-size: 26px; }
  .kiosk h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .pin-display span { width: 40px; height: 48px; font-size: 24px; } .pin-display { gap: 8px; }
  .kiosk .choice.four { grid-template-columns: 1fr; } .kiosk .choice.four button { height: 64px; }
}
