/* =============================================================================
   안전보건교육 (정기안전보건교육 · QR 참석확인 · 확인서명) — 2026-10-08
   접두사: .sft-* (모듈 화면) · .edu-* (서명 칸). 공식 서식(교육일지·출석부)은 css/edu-form.css.
   색은 앱 토큰(--mint 등, 화면 테마가 재정의)을 그대로 쓰고, 이 파일은 배치·상태 색만 정한다.
   ========================================================================== */
.sft-wrap { max-width: 1100px; margin: 0 auto; }
.sft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.sft-head h2 { margin: 0; font-size: 20px; }
.sft-load { color: var(--ink-2); text-align: center; padding: 28px 8px; }
.sft-small { font-size: 12.5px; }
.sft-help { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 8px 0; }
.sft-help-top { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.sft-warn-t { color: #b42318; }
.sft-link { background: none; border: 0; padding: 0 2px; color: var(--mint-ink); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.sft-btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sft-acts { margin-top: 4px; }
.sft-h3 { font-size: 15px; margin: 18px 0 8px; }
.sft-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sft-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sft-sub { margin: 14px 0 6px; font-size: 14px; }
.sft-err { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---- 탭 ---- */
.sft-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.sft-tabs a { flex: 0 0 auto; padding: 11px 14px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.sft-tabs a.is-on { color: var(--mint-ink); border-bottom-color: var(--mint); }
.sft-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.sft-subtabs button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.sft-subtabs button.is-on { background: var(--mint); border-color: var(--mint); color: #fff; }
.sft-subtabs button i { font-style: normal; opacity: .8; margin-left: 2px; }

/* ---- 카드 · 표시 ---- */
.sft-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; }
.sft-card-h { font-weight: 800; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sft-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.sft-st-draft { background: var(--surface-2); color: var(--ink-2); }
.sft-st-open { background: var(--mint-tint); color: var(--mint-ink); border-color: var(--mint); }
.sft-st-prog { background: #e8f3ff; color: #0b5cad; border-color: #7db4ee; }
.sft-st-done { background: #f1f1f4; color: #3a3a3c; }
.sft-st-final { background: #e6f6ec; color: #17653a; border-color: #86cda0; }
.sft-st-warn { background: #fff4d6; color: #7a5200; border-color: #e5c36a; }
.sft-st-cancel { background: #fdecea; color: #a1281d; border-color: #f0a8a1; }
.sft-mode-off { color: var(--ink-2); }
.sft-mode-checkin { background: #e6f6ec; color: #17653a; border-color: #86cda0; }
.sft-mode-sign { background: #e8f3ff; color: #0b5cad; border-color: #7db4ee; }
.sft-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.sft-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; text-align: center; }
.sft-stats b { display: block; font-size: 24px; line-height: 1.1; }
.sft-stats span { font-size: 12.5px; color: var(--ink-2); }
.sft-stats .is-ok b { color: #17653a; }
.sft-stats .is-warn b { color: #b45309; }
.sft-stats-sub { margin-bottom: 12px; }
.sft-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.sft-bar i { display: block; height: 100%; background: var(--mint); border-radius: 999px; }

/* ---- 교육 카드 · 목록 ---- */
.sft-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.sft-pcard { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 8px; cursor: pointer; font: inherit; color: inherit; }
.sft-plist .sft-pcard { margin: 0; }
.sft-pcard:hover { border-color: var(--mint); }
.sft-pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sft-pcard-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.sft-pcard-nums b { font-size: 16px; color: var(--ink); margin-right: 3px; }
.sft-pcard-nums .is-ok b { color: #17653a; }
.sft-pcard-nums .is-warn b { color: #b45309; }
.sft-today .sft-today-row, .sft-today-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sft-today-row:last-child { border-bottom: 0; }
.sft-mine-p { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sft-mine-p:last-child { border-bottom: 0; }

/* ---- 폼 ---- */
.sft-form .field input, .sft-form .field select, .sft-form .field textarea, .sft-modalwrap .field input, .sft-modalwrap .field select, .sft-modalwrap .field textarea { width: 100%; }
.sft-cont { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 8px; }
.sft-cont input, .sft-cont textarea { width: 100%; }
.sft-sess-edit { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; }
.sft-sess-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sft-adv { margin: 4px 0 8px; }
.sft-adv summary { cursor: pointer; font-size: 13px; color: var(--mint-ink); font-weight: 700; padding: 6px 0; }
.sft-modal-wide { max-width: 720px; width: 100%; }

/* ---- 회차 · 상세 ---- */
.sft-sess { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.sft-sess.is-off { opacity: .6; }
.sft-sess-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sft-sess-nums { margin: 4px 0; font-size: 13.5px; }
.sft-contshow { margin: 4px 0 8px; }
.sft-contshow div { white-space: pre-wrap; color: var(--ink-2); }
.sft-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sft-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.sft-photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.sft-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.sft-photo figcaption { font-size: 11.5px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sft-photo-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.sft-upl { cursor: pointer; }
.sft-bigphoto img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }

/* ---- 표(교육대상자 · 이수현황) ---- */
.sft-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sft-filters input, .sft-filters select, .sft-bulk select, .sft-grp input[type="text"], .sft-grp select, .sft-tbl select, .sft-subtabs + .field input, .sft-modalwrap input[type="search"] { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.sft-filters input[type="search"] { flex: 1 1 180px; min-width: 0; }
.sft-filters select { flex: 0 1 200px; min-width: 0; }
.sft-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.sft-tbl { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sft-tr { display: grid; grid-template-columns: 34px minmax(110px, 1.1fr) minmax(120px, 1.4fr) minmax(70px, .7fr) 110px minmax(130px, 1fr); gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sft-tr:last-child { border-bottom: 0; }
.sft-th { background: var(--surface-2); font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.sft-td-name b { display: block; }
.sft-td-name i { font-style: normal; font-size: 12px; color: var(--ink-2); }
.sft-cls { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.sft-cls i { font-style: normal; font-size: 11.5px; }
.sft-tg { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.sft-tg.is-on { background: #e6f6ec; border-color: #86cda0; color: #17653a; }
.sft-orgs .sft-tr { grid-template-columns: minmax(140px, 2fr) 70px minmax(160px, 2fr); }
.sft-st-tbl .sft-tr { grid-template-columns: minmax(80px, .8fr) minmax(110px, 1fr) 62px 130px minmax(160px, 2fr) 118px; }
.sft-recs { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.sft-rec.is-extra { color: #7a5200; }
.sft-rec.is-manual { color: #17653a; font-weight: 600; }
.sft-st-act { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.sft-st-act .btn { white-space: nowrap; }
.sft-misc-sess + .sft-misc-sess { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sft-misc-h { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.sft-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; font-size: 13px; color: var(--ink-2); }
.sft-bulk { position: sticky; top: 0; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin: 0 0 8px; }
.sft-bulk-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sft-bulk-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.sft-bulk-in .sft-bulk-btns { margin-top: 0; }
.sft-bulk select { min-height: 38px; }
.sft-grps { display: grid; gap: 8px; margin-bottom: 8px; }
.sft-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; background: #fff; }
.sft-grp.is-off { opacity: .6; }
.sft-grp .sft-g-name, .sft-grp #eduGNew { flex: 1 1 140px; min-width: 0; }
.sft-fix { border-top: 1px solid var(--line); padding: 8px 0; }
.sft-sigview img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin: 6px 0; }
.sft-pick { list-style: none; margin: 8px 0; padding: 0; max-height: 40vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.sft-pick li { border-bottom: 1px solid var(--line); }
.sft-pick li:last-child { border-bottom: 0; }
.sft-pick button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 0; padding: 10px 12px; cursor: pointer; font: inherit; }
.sft-pick button.is-on { background: var(--mint-tint); }
.sft-pick button span, .sft-pick-row i { font-size: 12.5px; color: var(--ink-2); font-style: normal; }
.sft-pick-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; }
.sft-pick-row > span { display: flex; flex-direction: column; min-width: 0; }
.sft-pick-empty { padding: 12px; color: var(--ink-2); text-align: center; font-size: 13px; }

/* ---- 내 정보 카드 · 서명 ---- */
.sft-btnrow .btn-block { width: 100%; }
.edu-padbox { position: relative; width: 100%; aspect-ratio: 2 / 1; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: #fff; margin: 8px 0; }
.edu-pad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: inherit; }
.edu-padhint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b7b7bd; font-size: 18px; pointer-events: none; }
.edu-padhint[hidden] { display: none; }
.sft-mysign img, .sft-sign-saved-img img { display: block; max-width: 100%; max-height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sft-mysign { margin: 6px 0; min-height: 40px; }

/* ---- 내 QR 전체 화면 · 서명 화면(휴대폰) ---- */
.modal-wrap.sft-qrwrap { padding: 0; align-items: stretch; justify-content: stretch; background: #fff; }   /* z-index 는 .modal-wrap 과 같게 — 서명 화면에서 여는 확인창(나중에 열림)이 위에 보이도록 */
.sft-qrscreen { width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sft-qr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.sft-qr-who { display: flex; flex-direction: column; font-size: 18px; }
.sft-qr-who span { font-size: 14px; color: var(--ink-2); }
.sft-qr-box { align-self: center; width: min(86vw, 62vh, 420px); aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: #fff; transition: opacity .2s; }
.sft-qr-box.is-stale { opacity: .35; }
.sft-qr-img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.sft-qr-ph { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--ink-2); }
.sft-qr-timer { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; width: min(86vw, 62vh, 420px); align-self: center; }
.sft-qr-timer i { display: block; height: 100%; width: 100%; background: var(--mint); transition: width .5s linear; }
.sft-qr-msg { text-align: center; font-size: 15px; line-height: 1.55; margin: 2px 0; }
.sft-qr-hint { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 0; }
.sft-qr-notice { margin: 0; }
.sft-signscreen { gap: 8px; }
.sft-sign-card { background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.sft-sign-title { font-size: 17px; font-weight: 800; }
.sft-sign-sub { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 6px; }
.sft-sign-list { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.sft-sign-note { font-size: 14px; font-weight: 700; margin: 8px 0 2px; }
.sft-sign-win { font-size: 13px; font-weight: 700; color: #17653a; margin-top: 4px; }
.sft-sign-win.is-closed { color: #b42318; }
.sft-sign-saved { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.sft-sign-saved-h { font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.sft-sign-or { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.sft-sign-or::before, .sft-sign-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sft-sign-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.sft-sign-cancel { align-self: center; }
.sft-donescreen { align-items: center; justify-content: center; text-align: center; min-height: 70vh; }
.sft-done-ico { width: 96px; height: 96px; border-radius: 50%; background: #17653a; color: #fff; font-size: 56px; line-height: 96px; margin-bottom: 10px; }
.sft-done-t { font-size: 22px; font-weight: 800; }
.sft-done-s { color: var(--ink-2); line-height: 1.6; margin: 6px 0 16px; }

/* ---- 관리자 태블릿(키오스크) ---- */
body.sft-kiosk #appHeader, body.sft-kiosk #bottomNav, body.sft-kiosk .push-ob, body.sft-kiosk .hd-gnb, body.sft-kiosk .gnb-drawer, body.sft-kiosk #hdCrumbRow { display: none !important; }
body.sft-kiosk #app { max-width: none !important; padding: 0 !important; margin: 0 !important; }
body.sft-kiosk .modal-wrap { z-index: 100; }   /* 태블릿 결과 안내(z 90) 위에서도 사유 입력창·수동 등록창이 보이게 */
.sft-recls { margin-top: 8px; }
.sft-kscreen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #111418; color: #fff; --k-ok: #2fbf71; --k-info: #3b9cff; --k-bad: #ff5b4d; --k-warn: #f5b942; }
.sft-k-load { padding: 40px; text-align: center; color: #bbb; }
.sft-k-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #1b2027; border-bottom: 1px solid #2b323c; flex-wrap: wrap; }
.sft-k-title { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.sft-k-title b { font-size: 18px; }
.sft-k-title span { font-size: 13px; color: #aab3bf; }
.sft-k-clock { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sft-k-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sft-k-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 16px; }
.sft-k-mode { min-height: 58px; border-radius: 14px; border: 2px solid #343c48; background: #1b2027; color: #cdd5df; font: inherit; font-size: 17px; cursor: pointer; }
.sft-k-mode.is-on { color: #fff; border-color: var(--k-ok); background: #14382a; }
.sft-kscreen[data-mode="sign"] .sft-k-mode.is-on { border-color: var(--k-info); background: #12304f; }
.sft-kscreen[data-mode="off"] .sft-k-mode.is-on { border-color: #6b7685; background: #262c35; }
.sft-k-mode:disabled { opacity: .45; cursor: not-allowed; }
.sft-k-hint { padding: 0 16px 8px; font-size: 14px; color: #cdd5df; min-height: 24px; }
.sft-k-warn { color: var(--k-warn); font-weight: 700; }
.sft-k-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 12px; padding: 0 16px 16px; flex: 1; }
.sft-k-cam { position: relative; background: #000; border-radius: 18px; overflow: hidden; min-height: 320px; aspect-ratio: 4 / 3; max-height: 70vh; }
.sft-k-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sft-k-guide { position: absolute; inset: 14% 22%; border: 4px solid rgba(255, 255, 255, .75); border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); pointer-events: none; }
.sft-kscreen[data-mode="off"] .sft-k-guide { display: none; }
.sft-k-camstate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: rgba(0, 0, 0, .72); font-size: 17px; }
.sft-k-camstate[hidden] { display: none; }
.sft-k-camstate { color: #fff; }
.sft-k-camstate.is-bad { color: #ffb4ab; }
.sft-k-flip { position: absolute; right: 10px; bottom: 10px; }
.sft-k-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sft-k-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sft-k-counts > div { background: #1b2027; border-radius: 14px; padding: 10px 6px; text-align: center; }
.sft-k-counts b { display: block; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sft-k-counts span { font-size: 12.5px; color: #aab3bf; }
.sft-k-win { display: grid; gap: 6px; }
.sft-k-wl { display: flex; align-items: center; gap: 8px; background: #1b2027; border-radius: 10px; padding: 8px 12px; font-size: 14px; border-left: 5px solid #4a5360; }
.sft-k-wl b { margin-left: auto; font-variant-numeric: tabular-nums; }
.sft-k-wl i { font-style: normal; font-weight: 800; min-width: 38px; text-align: right; }
.sft-k-wl.is-open { border-left-color: var(--k-ok); } .sft-k-wl.is-open i { color: var(--k-ok); }
.sft-k-wl.is-before { border-left-color: var(--k-warn); } .sft-k-wl.is-before i { color: var(--k-warn); }
.sft-k-wl.is-after { border-left-color: var(--k-bad); } .sft-k-wl.is-after i { color: var(--k-bad); }
.sft-k-recent-h { font-weight: 700; font-size: 14px; color: #cdd5df; }
.sft-k-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: 38vh; }
.sft-k-recent li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; background: #1b2027; border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.sft-k-recent .sft-k-rk { font-size: 12px; font-weight: 800; color: var(--k-ok); }
.sft-k-recent li.is-sign .sft-k-rk { color: var(--k-info); }
.sft-k-recent .sft-k-ro { grid-column: 2; font-size: 12px; color: #8b95a3; }
.sft-k-recent time { grid-row: 1; grid-column: 3; font-size: 12.5px; color: #aab3bf; font-variant-numeric: tabular-nums; }
.sft-k-empty { display: block !important; color: #8b95a3; text-align: center; }
.sft-k-result { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 14, .78); }
.sft-k-result[hidden] { display: none; }
.sft-k-res-in { width: min(640px, 100%); border-radius: 28px; padding: 34px 26px; text-align: center; background: #1b2027; border: 4px solid #4a5360; }
.sft-k-result.is-ok .sft-k-res-in { border-color: var(--k-ok); background: #11321f; }
.sft-k-result.is-sign .sft-k-res-in, .sft-k-result.is-info .sft-k-res-in { border-color: var(--k-info); background: #11273f; }
.sft-k-result.is-warn .sft-k-res-in { border-color: var(--k-warn); background: #3a2d0e; }
.sft-k-result.is-bad .sft-k-res-in { border-color: var(--k-bad); background: #3d1512; }
.sft-k-res-ico { font-size: 84px; line-height: 1; font-weight: 800; margin-bottom: 8px; }
.sft-k-result.is-ok .sft-k-res-ico { color: var(--k-ok); } .sft-k-result.is-bad .sft-k-res-ico { color: var(--k-bad); } .sft-k-result.is-warn .sft-k-res-ico { color: var(--k-warn); }
.sft-k-result.is-sign .sft-k-res-ico, .sft-k-result.is-info .sft-k-res-ico { color: var(--k-info); }
.sft-k-res-t { font-size: 30px; font-weight: 800; }
.sft-k-res-s { margin-top: 10px; font-size: 22px; display: flex; flex-direction: column; gap: 4px; }
.sft-k-res-s b { font-size: 34px; }
.sft-k-res-s span { color: #cdd5df; font-size: 18px; }
.sft-k-res-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.sft-kscreen .btn-secondary, .sft-kscreen .btn-ghost { background: #2a313b; color: #fff; border-color: #3f4854; }
.sft-kscreen .banner { color: #111; }
@media (max-width: 860px) {
  .sft-k-main { grid-template-columns: 1fr; }
  .sft-k-cam { aspect-ratio: 4 / 3; max-height: 52vh; }
  .sft-k-clock { font-size: 24px; }
}

/* ---- 좁은 화면(휴대폰) ---- */
@media (max-width: 720px) {
  .sft-stats { grid-template-columns: repeat(2, 1fr); }
  .sft-row3 { grid-template-columns: 1fr 1fr; }
  .sft-tr, .sft-st-tbl .sft-tr, .sft-orgs .sft-tr { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "a b c" "d d d" "e e e"; row-gap: 4px; }
  .sft-tr > :nth-child(1) { grid-area: a; } .sft-tr > :nth-child(2) { grid-area: b; } .sft-tr > :nth-child(3) { grid-area: d; color: var(--ink-2); font-size: 13px; }
  .sft-tr > :nth-child(4) { display: none; } .sft-tr > :nth-child(5) { grid-area: c; } .sft-tr > :nth-child(6) { grid-area: e; }
  .sft-th { display: none; }
  .sft-st-tbl .sft-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a d" "b b" "e e" "f f"; }
  .sft-st-tbl .sft-tr > :nth-child(1) { grid-area: a; } .sft-st-tbl .sft-tr > :nth-child(2) { grid-area: b; } .sft-st-tbl .sft-tr > :nth-child(3) { display: none; }
  .sft-st-tbl .sft-tr > :nth-child(4) { grid-area: d; display: block; } .sft-st-tbl .sft-tr > :nth-child(5) { grid-area: e; } .sft-st-tbl .sft-tr > :nth-child(6) { grid-area: f; }
  .sft-st-act { flex-direction: row; flex-wrap: wrap; }
  .sft-orgs .sft-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c c"; }
  .sft-orgs .sft-tr > :nth-child(1) { grid-area: a; font-weight: 700; } .sft-orgs .sft-tr > :nth-child(2) { grid-area: b; display: block; } .sft-orgs .sft-tr > :nth-child(3) { grid-area: c; color: inherit; font-size: inherit; }
  .sft-orgs .sft-tr select { width: 100%; }
  .sft-qr-top b { font-size: 16px; }
}
@media print { body.sft-kiosk, body.sft-page .sft-wrap { display: none; } }
@media (max-width: 430px) {
  .sft-tabs a { padding: 11px 9px; font-size: 13.5px; }
}

/* ---- 2026-10-14: QR 방향 변경 — 관리자 화면에 회차 QR 을 크게 / 직원은 자기 휴대폰으로 스캔 ---- */
.sft-k-main { align-items: start; }
.sft-k-qrp { background: #1b2027; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.sft-k-qrh { font-size: 30px; font-weight: 800; text-align: center; line-height: 1.25; }
.sft-k-qrs { font-size: 16px; color: #cdd5df; text-align: center; }
.sft-k-qrbox { width: min(100%, 52vh, 560px); aspect-ratio: 1 / 1; background: #fff; border-radius: 18px; padding: 14px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.sft-k-qrbox.is-stale { opacity: .3; }
.sft-k-qrbox.is-off { background: #262c35; }
.sft-k-qrimg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.sft-k-qrph { color: #566; font-size: 16px; text-align: center; padding: 20px; line-height: 1.5; }
.sft-k-qrbox.is-off .sft-k-qrph { color: #8b95a3; }
.sft-k-qrtimer { height: 6px; width: min(100%, 52vh, 560px); background: #2b323c; border-radius: 999px; overflow: hidden; }
.sft-k-qrtimer i { display: block; height: 100%; width: 0; background: var(--k-ok); transition: width .5s linear; }
.sft-kscreen[data-mode="sign"] .sft-k-qrtimer i { background: var(--k-info); }
.sft-k-qrwin { font-size: 22px; font-weight: 800; text-align: center; }
.sft-k-qrcnt { font-size: 22px; text-align: center; } .sft-k-qrcnt b { font-size: 34px; font-variant-numeric: tabular-nums; }
.sft-k-qrhelp { margin: 0; font-size: 13.5px; color: #aab3bf; text-align: center; line-height: 1.5; }
@media (max-height: 860px) { .sft-k-qrbox, .sft-k-qrtimer { width: min(100%, 44vh, 520px); } .sft-k-qrh { font-size: 26px; } .sft-k-qrcnt b { font-size: 30px; } }
@media (max-width: 860px) { .sft-k-qrh { font-size: 24px; } .sft-k-qrbox, .sft-k-qrtimer { width: min(100%, 78vw, 520px); } }

/* 직원 휴대폰: 스캔 결과 화면 */
.sft-scanpage { max-width: 520px; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.sft-sp-ico { width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 0; display: flex; align-items: center; justify-content: center; font-size: 56px; line-height: 1; font-weight: 800; color: #fff; background: #17653a; }
.sft-scanpage.is-err .sft-sp-ico { background: #b42318; }
.sft-scanpage.is-info .sft-sp-ico { background: #1f5fa8; font-size: 52px; }
.sft-scanpage.is-load .sft-sp-ico { background: #8a94a3; }
.sft-sp-t { font-size: 24px; font-weight: 800; text-align: center; line-height: 1.35; overflow-wrap: anywhere; }
.sft-sp-s { text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sft-sp-card { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sft-sp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.sft-sp-row span { color: var(--ink-2); flex: 0 0 76px; }
.sft-sp-row b { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.sft-sp-big { font-size: 32px; font-variant-numeric: tabular-nums; }
.sft-sp-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sft-sp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 18px; }
.sft-sp-top span { font-size: 14px; color: var(--ink-2); }
.sft-scanpage.is-sign { gap: 8px; }
.sft-sign-h { font-weight: 800; font-size: 14px; }
/* 앱 안 카메라 스캔 */
.modal-wrap.sft-scanwrap { padding: 0; align-items: stretch; justify-content: stretch; background: #fff; }
.sft-scanbox { width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.sft-scan-top { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.sft-scan-cam { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 66vh; }
.sft-scan-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sft-scan-cam .sft-k-guide { inset: 18% 12%; }

/* ---- 2026-10-14: 교육시간(반기 누적) — 회차 인정시간 입력 · 내 교육시간 · 관리자 반기 현황 · 휴대폰 안내 ---- */
.sft-credit-in { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sft-credit-in input[type="number"] { width: 74px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 8px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; text-align: right; }
.sft-sess-credit { margin: 2px 0 4px; font-size: 13.5px; line-height: 1.7; }
.sft-sp-note { margin: 2px 2px 0; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.eh-sum .eh-big, .eh-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.eh-big b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eh-big span { font-size: 18px; color: var(--ink-2); }
.eh-big.eh-small b { font-size: 26px; }
.eh-meta { font-size: 14.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eh-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; text-align: right; }
.eh-total b { font-size: 20px; }
.eh-tbl { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; --eh-cols: 120px minmax(140px, 1.6fr) minmax(110px, .9fr) minmax(120px, 1fr) minmax(120px, 1fr); }
.eh-tbl.eh-adm { --eh-cols: minmax(90px, 1fr) minmax(110px, 1.2fr) minmax(130px, 1.1fr) 90px 90px 80px; }
.eh-tbl.eh-tg { --eh-cols: 110px 90px 100px 120px 80px; }
.eh-tbl:has(.eh-act) { --eh-cols: 92px minmax(90px, 1.3fr) minmax(86px, .8fr) minmax(90px, .9fr) minmax(76px, .8fr) minmax(140px, 1fr); }   /* 모달 본문(약 660px) 안에 들어가는 합계 — [시간 정정]·[회차 기준으로] 버튼이 잘리지 않게 */
.eh-tr { display: grid; grid-template-columns: var(--eh-cols); gap: 8px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.eh-tr:last-child { border-bottom: 0; }
.eh-th { background: var(--surface-2); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.eh-tr.is-off { opacity: .55; }
.eh-tr.eh-click { cursor: pointer; }
.eh-tr.eh-click:hover, .eh-tr.eh-click:focus-visible { background: var(--surface-2); outline: none; }
.eh-tr i.muted { font-style: normal; font-size: 12.5px; }
.eh-note { display: block; margin-top: 2px; }
.eh-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sft-stats.eh-bf { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .eh-tbl, .eh-tbl.eh-adm, .eh-tbl.eh-tg, .eh-tbl:has(.eh-act) { --eh-cols: 1fr; }
  .eh-th { display: none; }
  .eh-tr { gap: 3px; padding: 10px 12px; }
  .eh-tr > span[data-l] { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .eh-tr > span[data-l]::before { content: attr(data-l); color: var(--ink-2); font-size: 12.5px; flex: 0 0 64px; text-align: left; }
  .eh-big b { font-size: 30px; }
  .eh-act { justify-content: flex-start; }
}
