/* 직원 출퇴근 앱 (/attend, my.<도메인>) + 사무실 출퇴근 QR 화면. 색·글꼴 토큰은 tokens.css */
:root { --att-nav-h: 64px; }
* { box-sizing: border-box; }
body.att { margin: 0; min-height: 100vh; min-height: 100dvh; background: #F3F5FA; color: var(--navy, #001D75); font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
.att a { color: inherit; }
.att-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: var(--navy, #001D75); color: #fff; }
.att-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.att-brand span { font-size: 13px; opacity: .85; }
.att-top h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; text-align: center; }
.att-who { font-size: 13px; font-weight: 700; opacity: .9; }
.att-main { padding: 16px 16px calc(var(--att-nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.att-card { padding: 18px 16px; margin-bottom: 14px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 29, 117, .06); }
.att-card h2 { margin: 0 0 6px; font-size: 24px; }
.att-card h3 { margin: 0 0 10px; font-size: 16px; }
.att-lead { margin: 0 0 14px; font-size: 15px; }
.att-lead small { color: #5B6478; }
.att-muted { color: #5B6478; font-size: 13px; }
.att-center { text-align: center; }
.att-empty { margin: 0; padding: 24px 0; text-align: center; color: #5B6478; }
.att-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.att-alert--error { background: #FDE8E8; color: #C40000; }
.att-alert--success { background: #E4F6EC; color: #0E8A4F; }
/* 폼 */
.att-form { display: flex; flex-direction: column; gap: 12px; }
.att-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #5B6478; }
.att-field input, .att-field textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #D6DBE8; border-radius: 12px; background: #fff; color: var(--navy); font: inherit; font-size: 18px; font-weight: 700; }
.att-field textarea { padding: 12px 14px; font-size: 16px; font-weight: 500; }
.att-field input:focus, .att-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 29, 117, .12); }
.att-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.att-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 14px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; }
.att .att-btn { color: var(--navy); }
.att .att-btn--primary { background: var(--navy); color: #fff; } /* .att a 의 color: inherit 보다 우선 */
.att-btn--ghost { border-color: #D6DBE8; }
.att-btn--big { width: 100%; min-height: 58px; font-size: 18px; }
.att-btn:disabled { opacity: .45; cursor: default; }
.att-btn:active:not(:disabled) { transform: scale(.97); filter: brightness(.94); }
/* 상태 카드 */
.att-status { text-align: center; padding: 26px 16px; border: 2px solid transparent; }
.att-status--working { background: #E4F6EC; border-color: #0E8A4F; color: #0E8A4F; }
.att-status--done { background: #E0EDFF; }
.att-status--off { background: #fff; }
.att-status-date { margin: 0 0 4px; font-size: 14px; font-weight: 700; opacity: .8; }
.att-status h2 { font-size: 30px; }
.att-status-sub { margin: 0; font-size: 15px; }
.att-howto ol { margin: 0 0 10px; padding-left: 22px; }
.att-howto li { margin: 4px 0; }
.att-month a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; text-decoration: none; }
.att-month span { font-size: 13px; color: #5B6478; }
.att-month strong { font-size: 20px; }
.att-month em { grid-row: 1 / 3; font-style: normal; font-size: 14px; font-weight: 700; }
/* 출퇴근 버튼 화면 */
.att-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; }
.att-steps li { padding: 8px 2px 0; border-top: 4px solid #E3E7F2; text-align: center; font-size: 13px; font-weight: 700; color: #8B93A7; }
.att-steps li.is-done { border-color: #0E8A4F; color: #0E8A4F; }
.att-steps li.is-busy { border-color: #E5B800; color: #8A5A00; }
.att-steps li.is-fail { border-color: #C40000; color: #C40000; }
.att-gps { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #FFF7C2; font-size: 14px; font-weight: 700; }
.att-gps.is-ok { background: #E4F6EC; color: #0E8A4F; }
.att-gps.is-warn { background: #FDE8E8; color: #C40000; }
.att-punch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.att-punch-btns .att-btn { flex-direction: column; min-height: 112px; font-size: 24px; border-width: 2px; }
.att-punch-btns .att-btn small { font-size: 12px; font-weight: 600; opacity: .8; }
.att-btn--in:not(:disabled) { background: var(--navy); color: #fff; }
.att-btn--out:not(:disabled) { background: #FEF203; border-color: var(--navy); color: var(--navy); }
.att-result { text-align: center; padding: 28px 16px; }
.att-result h2 { font-size: 30px; }
.att-result p { margin: 0 0 12px; font-size: 16px; }
.att-flags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.att-flags li { padding: 4px 10px; border-radius: 999px; background: #FFF7C2; color: #8A5A00; font-size: 13px; font-weight: 700; }
.att-flags li.is-ok { background: #E4F6EC; color: #0E8A4F; }
/* 기록 */
.att-monthnav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.att-monthnav a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; text-decoration: none; font-weight: 800; }
.att-monthnav strong { font-size: 18px; }
.att-sum { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; }
.att-sum span { display: block; font-size: 12px; color: #5B6478; }
.att-sum strong { font-size: 20px; }
.att-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.att-day { padding: 12px 14px; background: #fff; border-radius: 14px; }
.att-day.is-today { box-shadow: inset 0 0 0 2px #FEF203; }
.att-day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.att-day-head b { font-size: 16px; } .att-day-head small { font-weight: 600; color: #5B6478; }
.att-plan-time { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #ECEEF4; font-size: 11px; }
.att-day-head strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.att-shift { margin: 2px 0; font-size: 15px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.att-shift em { font-style: normal; color: #8B93A7; }
.att-kind { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.att-kind--in { background: #E0EDFF; } .att-kind--out { background: #FFF7C2; color: #8A5A00; }
.att-tag { padding: 1px 7px; border-radius: 6px; background: #ECEEF4; color: #5B6478; font-size: 11px; font-weight: 700; }
.att-tag--warn { background: #FDE8E8; color: #C40000; } .att-tag--ok { background: #E4F6EC; color: #0E8A4F; }
.att-fix { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.att-reqs { list-style: none; margin: 0; padding: 0; }
.att-reqs li { padding: 8px 0; border-top: 1px solid #ECEEF4; font-size: 14px; }
.att-reqs li small { display: block; color: #5B6478; }
.att-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 15px; }
.att-dl dt { color: #5B6478; font-weight: 700; } .att-dl dd { margin: 0; }
/* 아래 탭 */
.att-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); height: calc(var(--att-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E3E7F2; }
.att-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8B93A7; font-size: 12px; font-weight: 800; text-decoration: none; }
.att-tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.att-tabs a.is-on { color: var(--navy); }
.att-login .att-form { margin-bottom: 14px; }

/* ───── 출퇴근 QR 화면 (사무실 태블릿·PC) */
body.attq { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #FEF203; color: #001D75; font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.attq-head { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: #001D75; color: #fff; }
.attq-head div { flex: 1; display: flex; flex-direction: column; }
.attq-head strong { font-size: 22px; } .attq-head span { font-size: 14px; opacity: .85; }
.attq-clock { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.attq-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; }
.attq-qr { display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; border-radius: 28px; box-shadow: 0 10px 40px rgba(0, 29, 117, .18); }
.attq-qr svg, .attq-qr img, .attq-qr canvas { width: 100%; max-width: min(70vh, 560px); height: auto; aspect-ratio: 1; }
.attq-side { display: flex; flex-direction: column; gap: 14px; }
.attq-state { margin: 0; font-size: 22px; font-weight: 800; }
.attq-state.is-err { color: #C40000; }
.attq-bar { height: 10px; border-radius: 999px; background: rgba(0, 29, 117, .15); overflow: hidden; }
.attq-bar i { display: block; height: 100%; width: 100%; background: #001D75; transition: width 1s linear; }
.attq-left { margin: 0; font-size: 18px; } .attq-left b { font-size: 26px; }
.attq-how { margin: 8px 0 0; padding-left: 24px; font-size: 20px; font-weight: 700; line-height: 1.7; }
.attq-note { margin: 0; font-size: 15px; opacity: .8; }
@media (max-width: 760px) { .attq-main { grid-template-columns: 1fr; padding: 20px; } .attq-head { padding: 14px 18px; } .attq-clock { font-size: 20px; } }

/* 내 정보(급여 지급 정보) · 급여명세서 */
.att-verify { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #ECEEF4; font-size: 14px; }
.att-verify--ok { background: #E4F6EC; color: #0E8A4F; } .att-verify--pending { background: #FFF7C2; color: #8A5A00; } .att-verify--rejected { background: #FDE8E8; color: #C40000; }
.att-photo-link img { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid #D6DBE8; margin-bottom: 8px; }
.att-field input[type=file] { min-height: 0; padding: 10px; font-size: 14px; font-weight: 500; }
.att-slip-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.att-slip-link span { font-weight: 800; } .att-slip-link small { display: block; font-weight: 500; color: #5B6478; font-size: 12px; }
.att-slip-link em { font-style: normal; font-weight: 800; white-space: nowrap; }
body.slip { margin: 0; background: #EEF1F7; color: #001D75; font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.slip-bar { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px 16px; }
.slip-sheet { max-width: 760px; margin: 0 auto 32px; padding: 32px 28px; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 29, 117, .08); }
.slip-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 3px solid #001D75; }
.slip-head h1 { margin: 0; font-size: 26px; } .slip-head p { margin: 4px 0 0; font-weight: 700; color: #5B6478; }
.slip-company { text-align: right; font-size: 13px; line-height: 1.6; }
.slip-who { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: 14px; }
.slip-who dt { color: #5B6478; font-weight: 700; } .slip-who dd { margin: 0; font-weight: 700; }
.slip-sheet h2 { margin: 22px 0 8px; font-size: 16px; }
.slip-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.slip-table th, .slip-table td { padding: 7px 8px; border-bottom: 1px solid #E3E7F2; text-align: left; }
.slip-table thead th { border-bottom: 2px solid #001D75; font-size: 12px; color: #5B6478; }
.slip-table .num { text-align: right; } .slip-table tfoot th { border-top: 2px solid #001D75; border-bottom: 0; }
.slip-pay th { font-weight: 600; } .slip-pay th small { color: #5B6478; font-weight: 500; margin-left: 6px; }
.slip-pay .slip-sub th, .slip-pay .slip-sub td { font-weight: 800; background: #F3F5FA; }
.slip-pay .slip-total th, .slip-pay .slip-total td { font-size: 18px; font-weight: 900; border-top: 2px solid #001D75; border-bottom: 0; background: #FEF203; }
.slip-foot { margin: 18px 0 0; font-size: 12px; color: #5B6478; }
.slip-empty { color: #5B6478; }
@media print { body.slip { background: #fff; } .slip-noprint { display: none !important; } .slip-sheet { box-shadow: none; border-radius: 0; margin: 0; padding: 0; max-width: none; } }
