:root {
  --bg: #f4f1ea; --card: #ffffff; --ink: #1d2433; --muted: #6b7280; --line: #e3ddd0;
  --brand: #0f4c5c; --brand-2: #e36414; --ok: #2a9d8f; --bad: #c8553d; --warn: #e9c46a; --info: #3a86ff;
  --radius: 14px; --shadow: 0 2px 10px rgba(20, 30, 50, .08);
  --tamil: 'Noto Sans Tamil', 'Latha', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', 'Noto Sans Tamil', system-ui, sans-serif; font-size: 15px; }
body.ta { font-family: var(--tamil), 'Inter', sans-serif; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; color: var(--ink); }
textarea { min-height: 70px; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15.5px; }

/* layout */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #fff; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; font-weight: 800; letter-spacing: .5px; }
.side .logo .mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-2); display: grid; place-items: center; font-size: 18px; }
.side .grp { font-size: 11px; text-transform: uppercase; opacity: .6; margin: 14px 8px 4px; letter-spacing: .8px; }
.side a { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.side a svg { width: 22px; height: 22px; flex: none; }
.side a.on, .side a:hover { background: rgba(255,255,255,.14); }
.main { padding: 18px 22px 60px; min-width: 0; }
.top { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.top .who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.burger { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: -260px; width: 250px; transition: left .2s; }
  .side.open { left: 0; }
  .burger { display: inline-flex; }
  .main { padding: 12px 12px 70px; }
}

/* components */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.auto-l { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .g4.keep { grid-template-columns: repeat(2, 1fr); } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.btn { border: 0; border-radius: 10px; padding: 9px 14px; background: var(--brand); color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.btn.alt { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); } .btn.or { background: var(--brand-2); } .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.xl { padding: 18px 26px; font-size: 20px; border-radius: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef; color: #335; white-space: nowrap; }
.pill.sample, .pill.requested, .pill.new, .pill.draft, .pill.pending { background: #fff3cd; color: #7a5a00; }
.pill.approved, .pill.done, .pill.received, .pill.shipped, .pill.loaded, .pill.billed, .pill.docs_approved, .pill.packed { background: #d8f3ec; color: #13685d; }
.pill.rejected { background: #fde2dc; color: #8f2d1c; }
.pill.ordered, .pill.in_production, .pill.confirmed, .pill.sent_agent, .pill.packing, .pill.invoiced { background: #dde9ff; color: #1f4fb0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; background: #faf8f3; position: sticky; top: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; margin-top: 4px; }
.kpi span { color: var(--muted); font-size: 13px; }
.bar { height: 10px; background: #eee6d8; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .b { font-weight: 700; } .r { text-align: right; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: #f0ece3; margin: 2px; font-size: 13px; }
.chip button { border: 0; background: none; padding: 0 0 0 2px; color: var(--bad); }
.thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #f3efe6; flex: none; display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e7e1d4; flex: none; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; font-size: 15px; max-width: 90vw; }
.toast.bad { background: var(--bad); }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 20, 30, .5); z-index: 50; display: grid; place-items: center; padding: 12px; }
.modal { background: #fff; border-radius: 18px; width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 18px; }
.modal.wide { width: min(1100px, 100%); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid #0003; vertical-align: middle; }
.flow { display: flex; gap: 0; overflow-x: auto; padding: 6px 0; }
.flow .st { flex: 1; min-width: 92px; text-align: center; position: relative; font-size: 12px; }
.flow .st .ic { width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 50%; background: #eee6d8; display: grid; place-items: center; }
.flow .st.on .ic { background: var(--ok); } .flow .st.cur .ic { background: var(--brand-2); }
.flow .st .ic svg { width: 30px; height: 30px; }

/* ---------- staff (picture) screens ---------- */
.staff { min-height: 100vh; background: #fbf8f2; }
.staff-top { background: var(--brand); color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; position: sticky; top: 0; z-index: 20; }
.staff-top .big { font-size: 20px; font-weight: 800; }
.staff-top .ic { width: 48px; height: 48px; background: #fff; border-radius: 12px; display: grid; place-items: center; }
.staff-top .ic svg { width: 40px; height: 40px; }
.staff-body { padding: 14px; max-width: 1100px; margin: 0 auto; }
.bi { line-height: 1.15; } .bi .ta { font-family: var(--tamil); font-weight: 700; } .bi .en { font-size: .72em; opacity: .75; display: block; }
.tile { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; text-align: center; border: 3px solid transparent; cursor: pointer; user-select: none; }
.tile:active { transform: scale(.98); }
.tile svg.pic, .tile img.pic { width: 100%; max-width: 160px; height: 140px; object-fit: contain; display: block; margin: 0 auto 6px; }
.tile .bi .ta { font-size: 19px; }
.tile.sel { border-color: var(--brand-2); }
.work { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.work .pic { width: 120px; height: 120px; border-radius: 14px; background: #f3efe6; display: grid; place-items: center; overflow: hidden; }
.work .pic svg, .work .pic img { width: 100%; height: 100%; object-fit: cover; }
.size-badge { display: inline-grid; place-items: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 24px; font-weight: 800; }
.qty-big { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numpad button { font-size: 30px; font-weight: 800; padding: 16px 0; border-radius: 16px; border: 0; background: #efe9dc; }
.numpad button.ok { background: var(--ok); color: #fff; } .numpad button.bad { background: var(--bad); color: #fff; }
.display { font-size: 52px; font-weight: 900; text-align: center; padding: 6px; border-radius: 16px; background: #fff; border: 3px solid var(--line); font-variant-numeric: tabular-nums; }
.display.good { border-color: var(--ok); color: var(--ok); } .display.rej { border-color: var(--bad); color: var(--bad); }
.boxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.boxbtn { aspect-ratio: 1; border-radius: 16px; border: 0; font-size: 30px; font-weight: 900; background: #fff; box-shadow: var(--shadow); position: relative; display: grid; place-items: center; }
.boxbtn svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); opacity: .22; }
.boxbtn.packing { background: #ffe3c2; } .boxbtn.hold { background: #fde2dc; outline: 3px solid var(--bad); } .boxbtn.done { background: #c9efe6; }
.boxbtn .who { position: absolute; bottom: 4px; left: 0; right: 0; font-size: 11px; font-weight: 600; }
.pack-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); margin-bottom: 10px; border: 4px solid transparent; }
.pack-item.placed { border-color: var(--ok); background: #effaf7; }
.pack-item .pic { width: 130px; height: 130px; border-radius: 12px; background: #f3efe6; overflow: hidden; display: grid; place-items: center; }
.pack-item .pic svg, .pack-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.tick { width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--line); background: #fff; font-size: 40px; display: grid; place-items: center; }
.pack-item.placed .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; margin-top: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); display: block; }
.dots i.ten { width: 22px; border-radius: 6px; }
@media (max-width: 600px) {
  .pack-item { grid-template-columns: 90px 1fr auto; } .pack-item .pic { width: 90px; height: 90px; }
  .work { grid-template-columns: 90px 1fr; } .work .pic { width: 90px; height: 90px; } .qty-big { font-size: 32px; }
  .tick { width: 60px; height: 60px; }
}
.speak { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 18px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #0f4c5c, #183a4a 60%, #e36414 160%); }
.login .panel { background: #fff; border-radius: 22px; padding: 20px; width: min(980px, 100%); }
.face-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); gap: 10px; max-height: 64vh; overflow-y: auto; padding: 4px; }
.face-tiles .dtile .bi { font-size: 14px; line-height: 1.2; }
.face-tiles .dtile .empty-n { color: var(--muted); font-style: italic; }
.face-tiles .tile { padding: 8px; }
.face-tiles .st-ic { width: 34px; height: 34px; margin: 4px auto 0; }
.face-tiles .st-ic svg { width: 34px; height: 34px; border-radius: 0; margin: 0; }
.face-tiles img.pic, .face-tiles svg.pic { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin: 0 auto 4px; display: block; }
.kiosk { position: fixed; inset: 0; background: #0b1d26; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.kiosk video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.kiosk .stage { position: relative; overflow: hidden; }
.kiosk .hello { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.96); color: var(--ink); border-radius: 26px; padding: 22px 30px; text-align: center; min-width: 300px; }
.kiosk .hello img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 6px solid var(--ok); }
.kiosk .frame { position: absolute; inset: 12% 28%; border: 5px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
@media print { .side, .top, .no-print { display: none !important; } .app { display: block; } .main { padding: 0; } .card { box-shadow: none; } }
.tile div[style*="height"] > .pic { height: 100%; width: 100%; max-width: none; margin: 0 auto; }
.thumb .pic { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.staff-top .ic { color: var(--brand); }

/* password / PIN / key boxes: eye button + confirm box (standard everywhere) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #557; display: grid; place-items: center; cursor: pointer; border-radius: 8px; padding: 0; }
.pw-eye:hover { background: #0001; }
.pw-msg { min-height: 1.2em; margin-top: 3px; }
input.bad-in { border-color: #b3261e; background: #fff6f5; }
input.ok-in { border-color: #1b7f3b; }

/* ---------- Style Book & Stock (phone first) ---------- */
.modal.sheet { width: min(860px, 100%); }
@media (max-width: 700px) {
  .modal-bg:has(.modal.sheet) { padding: 0; align-items: stretch; }
  .modal.sheet { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; padding: 14px 14px 90px; }
}
.sb { max-width: 900px; margin: 0 auto; }
.sb h3 { margin: 18px 0 8px; }
.sb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sb-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; position: relative; min-height: 74px; }
.sb-tile:active { transform: scale(.98); }
.sb-ic { font-size: 34px; width: 52px; height: 52px; display: grid; place-items: center; background: #f6f2ea; border-radius: 14px; flex: none; }
.sb-n { position: absolute; top: 10px; right: 12px; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 9px; font-size: 13px; font-weight: 700; }
.sb-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; } .sb-step { background: #f0ece3; border-radius: 99px; padding: 4px 12px; font-size: 13px; } .sb-step b { background: var(--brand-2); color: #fff; border-radius: 50%; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; font-size: 12px; }
.sb-q { margin: 10px 0; font-size: 16px; }
.sb-list { display: grid; gap: 8px; }
.sb-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.sb-th { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #f6f2ea; display: grid; place-items: center; font-size: 28px; flex: none; overflow: hidden; }
.sb-th svg { width: 100%; height: 100%; }
.sb-bar { height: 6px; background: #eee6d8; border-radius: 99px; overflow: hidden; margin: 5px 0 3px; } .sb-bar span { display: block; height: 100%; }
.ok-t { color: #1b7f3b; font-weight: 600; } .bad-t { color: #b3261e; }
.sb-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
.sb-sec { padding: 0; } .sb-sec > summary { padding: 16px; font-size: 17px; cursor: pointer; list-style: none; } .sb-sec > summary::-webkit-details-marker { display: none; }
.sb-sec[open] > summary { border-bottom: 1px solid var(--line); } .sb-sec > :not(summary) { margin-left: 14px; margin-right: 14px; } .sb-sec[open] { padding-bottom: 14px; }
.sb-form { gap: 10px 14px; align-items: start; } .sb-form .full { grid-column: 1 / -1; } .sb-form .full2 { grid-column: span 2; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 2px; } .sb-chips .chip { border: 1px solid transparent; font-size: 14px; padding: 7px 12px; cursor: pointer; } .chip.sel { background: #fde7d7; border-color: var(--brand-2) !important; font-weight: 600; }
.chip .x { color: var(--bad); }
.sb-gt { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; } .sb-gt .tile { padding: 6px 2px; background: #fff; }
.sb-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0; background: #fcfaf6; }
.sb-row { display: flex; gap: 6px; align-items: end; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.sb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; } .sb-pho select { margin-top: 4px; font-size: 13px; padding: 6px; }
.ph-box .ph-img { height: 150px; background: #f6f2ea; border-radius: 12px; display: grid; place-items: center; overflow: hidden; font-size: 40px; color: #b9ad97; }
.ph-box.sm .ph-img { height: 110px; } .ph-box .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-btns { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.sb-save { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; background: #fffdf8ee; backdrop-filter: blur(4px); padding: 12px 0; margin-top: 14px; border-top: 1px solid var(--line); z-index: 3; }
.sb-save .btn { min-height: 46px; } .sb-save [data-s] { min-width: 140px; justify-content: center; font-size: 16px; }
.sb-qt input { width: 64px; padding: 6px; text-align: center; } .sb-qt th { font-size: 12px; }
.sb-roll { margin: 6px 0; flex-wrap: nowrap; } .sb-roll input { max-width: 140px; font-size: 18px; }
@media (max-width: 700px) { .sb-form .full2 { grid-column: auto; } .sb-tiles { grid-template-columns: 1fr; } .sb-card { padding: 9px; } input, select, textarea { font-size: 16px; } }

.yarn-strip { display: block; margin: -4px 0 12px; padding: 8px 12px; background: #fff8ec; border: 1px solid #f1dfb8; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.5; }
.sb-gr { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; } .sb-gr input { text-align: center; padding: 8px 4px; }

.side details.mgrp > summary.grp { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; margin: 2px 0; border-radius: 10px; font-size: 12px; opacity: .85; }
.side details.mgrp > summary.grp::-webkit-details-marker { display: none; }
.side details.mgrp > summary.grp:hover { background: rgba(255,255,255,.1); }
.side details.mgrp > summary.grp::after { content: '▸'; opacity: .7; } .side details.mgrp[open] > summary.grp::after { content: '▾'; }
.side details.mgrp > summary .cnt { margin-left: auto; margin-right: 8px; font-size: 11px; opacity: .7; }
.side details.mgrp[open] { background: rgba(0,0,0,.08); border-radius: 12px; padding-bottom: 4px; }

.side a.logo { padding: 6px 8px 14px; font-size: inherit; cursor: pointer; } .side a.logo:hover { background: rgba(255,255,255,.08); }

.viewas { background: #2b2a6b; color: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; } .viewas .btn { background: #fff; color: #2b2a6b; }

/* upload box (drag a file in, or choose) */
.dz { border: 2px dashed #b9c6cc; border-radius: 14px; padding: 34px 16px; text-align: center; background: #fbfdfd; cursor: pointer; transition: background .15s, border-color .15s; margin-top: 8px; }
.dz:hover, .dz:focus { border-color: var(--brand, #0f4c5c); outline: none; }
.dz.on { background: #e6f3f6; border-color: var(--brand, #0f4c5c); }
.dz-ic { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.dz-t { font-size: 20px; font-weight: 800; }
.dz-s { margin-top: 6px; font-size: 15px; } .dz-s a { color: #1a6fd1; text-decoration: none; } .dz-s a:hover { text-decoration: underline; }
.dz-h { margin-top: 6px; font-size: 13px; color: #777; }
.ph-img.on { outline: 3px dashed var(--brand, #0f4c5c); outline-offset: 2px; }
/* Gate tablet: camera on top, everyone's photo below (tap your photo → PIN → camera check) */
.kiosk.kiosk2 { grid-template-rows: auto minmax(200px, 44vh) 1fr; }
.kiosk2 .kgrid-wrap { display: flex; flex-direction: column; min-height: 0; background: #102a35; }
.kiosk2 .kgrid-h { text-align: center; font-size: 20px; font-weight: 800; padding: 8px 6px 4px; }
.kiosk2 .kgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; padding: 6px 10px 14px; align-content: start; }
.kiosk2 .ktile { background: #fff; color: var(--ink); border: 4px solid #c9c2b4; border-radius: 16px; padding: 8px 4px; text-align: center; cursor: pointer; font: inherit; }
.kiosk2 .ktile:active { transform: scale(.97); }
.kiosk2 .ktile .pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 4px; }
.kiosk2 .ktile .kn { font-size: 15px; font-weight: 800; line-height: 1.2; }
.kiosk2 .ktile .kst { font-size: 13px; font-weight: 700; margin-top: 3px; color: #6b6355; }
.kiosk2 .ktile.in { border-color: var(--ok); } .kiosk2 .ktile.in .kst { color: var(--ok); }
.kiosk2 .ktile.out { border-color: var(--bad); } .kiosk2 .ktile.out .kst { color: var(--bad); }
@media (max-width: 600px) { .kiosk2 .kgrid { grid-template-columns: repeat(3, 1fr); } .kiosk2 .ktile .pic { width: 60px; height: 60px; } .kiosk2 .kgrid-h { font-size: 16px; } }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* signature pad (advances) */
.sigpad { width: 100%; height: 180px; border: 2px dashed #9b927f; border-radius: 12px; background: #fff; touch-action: none; display: block; }
.paystate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin: 10px 0; font-weight: 700; }
.paystate.draft { background: #fff4d6; } .paystate.final { background: #dff3e8; } .paystate.paid { background: #e3ecf8; } .paystate.none { background: #eee; }
.payt th { white-space: normal; vertical-align: bottom; font-size: 12px; } .payt th small { display: block; font-weight: 400; color: #6b6355; }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.vis-card { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 1px 3px #0002; }
.vis-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #ddd; }
.vis-card.unk { border: 3px solid var(--bad); }
/* Excel-like salary sheet */
.xsheet { overflow: auto; max-height: 72vh; border: 1px solid #d8d1c2; border-radius: 10px; background: #fff; }
#xs { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
#xs th, #xs td { border-right: 1px solid #e4dece; border-bottom: 1px solid #e4dece; padding: 0; white-space: nowrap; text-align: right; }
#xs thead th { position: sticky; top: 0; z-index: 2; background: #102a35; color: #fff; padding: 6px 6px; font-size: 11.5px; white-space: normal; min-width: 64px; vertical-align: bottom; text-align: center; }
#xs thead th small { display: block; font-weight: 400; opacity: .75; }
#xs .st0, #xs .st1 { position: sticky; z-index: 1; background: #f6f3ec; text-align: left; padding: 4px 8px; }
#xs .st0 { left: 0; min-width: 34px; } #xs .st1 { left: 34px; min-width: 130px; box-shadow: 2px 0 0 #d8d1c2; }
#xs thead .st0, #xs thead .st1 { z-index: 3; background: #102a35; }
#xs td.ro { background: #f3f1ec; color: #3b362d; padding: 6px 8px; }
#xs td.ed input { width: 100%; min-width: 62px; border: 0; border-radius: 0; padding: 6px 8px; text-align: right; font: inherit; background: #fff; outline: none; }
#xs td.ed input:focus { box-shadow: inset 0 0 0 2px #1a73e8; }
#xs td.typed input { background: #fff6dc; } #xs td.chg input { background: #ffe1b8; font-weight: 700; } #xs td.bad input { background: #ffd2cc; }
#xs td.pay input { font-weight: 800; }
#xs tfoot td { position: sticky; bottom: 0; background: #e9e4d8; padding: 6px 8px; font-weight: 700; }
#xs tfoot .st1 { z-index: 2; }
.xs-bar { position: sticky; top: 0; z-index: 6; background: #fff; padding: 6px 0; }
