/* ---------- 현장 태블릿 ---------- */
.tab-outer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tab-device { width: 100%; max-width: 1240px; aspect-ratio: 1180 / 820; background: #111827; border-radius: 28px; padding: 22px; position: relative; box-shadow: 0 20px 40px rgba(15,23,42,.25); }
.tab-cam { position: absolute; top: 9px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #374151; }
.tab-screen { background: #eef2f7; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; font-size: 15px; }
.tab-caption { color: var(--muted); font-size: 12px; }
body.kiosk .side, body.kiosk .top, body.kiosk .tab-caption { display: none; }
body.kiosk .content { padding: 0; overflow: hidden; }
body.kiosk .tab-device { max-width: none; aspect-ratio: auto; height: 100vh; border-radius: 0; padding: 0; }
body.kiosk .tab-screen { border-radius: 0; }

.t-top { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 16px; flex-shrink: 0; }
.t-brand { font-weight: 800; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.t-brand span { color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.t-place { color: #cbd5e1; font-size: 13px; white-space: nowrap; }
.t-place select { background: #1b3556; color: #fff; border: 1px solid #335; font-size: 13px; }
.t-stat { margin-left: auto; font-size: 13px; color: #cbd5e1; white-space: nowrap; }
.t-stat b { color: #fff; font-size: 16px; }
.t-stat b.neg { color: #fca5a5; }
.t-clock { font-size: 20px; font-weight: 800; font-family: Consolas, monospace; }
.t-chip { background: #1b3556; color: #fff; border: 1px solid #2c4a73; border-radius: 20px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.t-chip.ghost { background: transparent; }
.t-pick-h .t-chip { background: var(--navy); }
.t-seg { display: flex; background: #0b1a2e; border-radius: 10px; padding: 3px; }
.t-seg button { background: none; border: 0; color: #cbd5e1; padding: 9px 18px; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.t-seg button.on { background: var(--accent); color: #fff; }
.t-scan { flex: 1; display: flex; align-items: center; gap: 8px; background: #0b1a2e; border-radius: 10px; padding: 0 12px; min-width: 160px; }
.t-scan span { color: #60a5fa; font-size: 20px; }
.t-scan input { flex: 1; background: none; border: 0; color: #fff; font-size: 14px; padding: 10px 0; outline: none; min-width: 0; }
.t-main { flex: 1; display: flex; min-height: 0; }
.t-left { width: 38%; border-right: 1px solid #d5dde7; display: flex; flex-direction: column; min-height: 0; background: #e6ebf2; }
.t-right { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; gap: 10px; overflow-y: auto; }
.t-tabs { display: flex; gap: 6px; padding: 10px 10px 0; }
.t-tabs button { flex: 1; border: 0; background: #d5dde7; border-radius: 8px 8px 0 0; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; color: #475569; }
.t-tabs button.on { background: #fff; color: var(--navy); }
.t-cards { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.t-card { text-align: left; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.t-card.on { border-color: var(--blue); background: #f5f9ff; }
.t-card-h { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.t-card-t { font-size: 17px; font-weight: 800; }
.t-card-s { font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-card-f { display: flex; justify-content: space-between; font-size: 13px; color: #475569; gap: 8px; }
.t-card-f span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: 4px 0; }
.t-bar div { height: 100%; background: var(--blue); }
.t-empty, .t-placeholder { text-align: center; color: var(--muted); padding: 40px 10px; }
.t-placeholder { margin: auto; font-size: 18px; }
.t-placeholder div { font-size: 44px; margin-bottom: 8px; }
.t-wo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.t-wo-no { color: var(--muted); font-size: 13px; }
.t-wo-name { font-size: 24px; font-weight: 800; }
.t-wo-name span { font-size: 15px; font-weight: 600; color: #64748b; }
.t-wo-sub { color: #475569; }
.t-rem { color: var(--blue); font-size: 20px; }
.t-big-btn { border: 0; border-radius: 14px; padding: 16px 22px; font: inherit; font-size: 18px; font-weight: 800; color: #fff; cursor: pointer; white-space: nowrap; }
.t-big-btn.start { background: var(--green); }
.t-big-btn.stop { background: var(--red); }
.t-entry { display: flex; gap: 14px; }
.t-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t-field { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 3px solid #d5dde7; border-radius: 14px; padding: 8px 18px; font: inherit; cursor: pointer; }
.t-field span { font-size: 16px; font-weight: 700; color: #475569; }
.t-field b { font-size: 38px; font-family: Consolas, monospace; color: var(--navy); }
.t-field.on { border-color: var(--blue); box-shadow: 0 0 0 4px #dbeafe; }
.t-field.bad b { color: var(--red); }
.t-field.bad.on { border-color: var(--red); box-shadow: 0 0 0 4px #fee2e2; }
.t-quick { display: flex; gap: 6px; }
.t-quick button { flex: 1; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 10px 4px; font: inherit; font-weight: 700; cursor: pointer; }
.t-reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t-reasons span { font-size: 13px; color: var(--red); font-weight: 700; width: 100%; }
.t-reasons button { border: 1px solid #fca5a5; background: #fff; color: #b91c1c; border-radius: 18px; padding: 7px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.t-reasons button.on { background: var(--red); color: #fff; }
.t-loc { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #475569; }
.t-loc select, .t-sel { font-size: 15px; padding: 9px 10px; border-radius: 10px; }
.t-loc select { flex: 1; }
.t-raw { background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.t-raw span { font-weight: 700; color: var(--muted); font-size: 12px; }
.t-raw em { color: var(--muted); font-style: normal; }
.t-keypad { width: 260px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.t-key { background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; font-size: 24px; font-weight: 800; padding: 12px 0; cursor: pointer; box-shadow: 0 2px 0 #cbd5e1; }
.t-key:active { transform: translateY(2px); box-shadow: none; }
.t-key.wide { grid-column: 1 / -1; font-size: 16px; background: #f1f5f9; }
.t-submit { border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-size: 20px; font-weight: 800; padding: 16px; cursor: pointer; margin-top: auto; flex-shrink: 0; }
.t-submit:disabled { background: #cbd5e1; cursor: not-allowed; }
.t-hist { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.t-hist span { background: #fff; border-radius: 6px; padding: 4px 8px; }
.t-workers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t-worker { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 18px 8px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.t-worker span { font-size: 30px; }
.t-worker.on { border-color: var(--blue); background: #eff6ff; }
.t-done { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.t-done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.t-done-t { font-size: 18px; }
.t-done table { margin-top: 6px; }
.t-lines { display: flex; flex-direction: column; gap: 8px; }
.t-line { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.t-line.off { opacity: .5; }
.t-lines.compact .t-line { padding: 6px 12px; }
.t-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-line-info b { font-size: 16px; }
.t-line-info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-line-info em { color: var(--blue); font-style: normal; font-weight: 700; }
.t-check { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #cbd5e1; background: #fff; font-size: 20px; color: #fff; cursor: pointer; flex-shrink: 0; }
.t-check.on { background: var(--green); border-color: var(--green); }
.t-step { display: flex; align-items: center; }
.t-step button { width: 44px; height: 44px; border: 1px solid #cbd5e1; background: #f8fafc; font-size: 22px; font-weight: 800; cursor: pointer; }
.t-step button:first-child { border-radius: 10px 0 0 10px; }
.t-step button:last-child { border-radius: 0 10px 10px 0; }
.t-step input { width: 80px; height: 44px; border-radius: 0; border-left: 0; border-right: 0; font-size: 18px; font-weight: 800; text-align: center; }
.t-line .t-sel { width: 150px; }
.t-out-opt { display: flex; gap: 6px; }
.t-out-opt .t-sel { width: 170px; }
.t-pick-h { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.t-pick-h span { color: var(--muted); }
.t-picks { display: flex; flex-direction: column; gap: 6px; }
.t-pick { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer; }
.t-pick.on { border-color: var(--green); background: #f0fdf4; }
.t-pick.short { background: #fef2f2; }
.t-pick-loc { font-family: Consolas, monospace; font-weight: 800; font-size: 17px; color: var(--navy); width: 110px; flex-shrink: 0; }
.t-pick-it { flex: 1; min-width: 0; font-size: 13px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pick-it b { color: var(--text); font-size: 15px; }
.t-pick-it em { font-style: normal; color: var(--muted); margin-left: 8px; }
.t-pick-q { font-size: 20px; font-weight: 800; width: 60px; text-align: right; }
.t-pick-c { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.t-pick.on .t-pick-c { background: var(--green); border-color: var(--green); }
