:root { --brand: #1f4e79; --bg: #f5f7fa; --text: #1c2733; --muted: #6b7785; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", system-ui, sans-serif; background: var(--bg); color: var(--text); }
.auth-card { max-width: 360px; margin: 12vh auto; padding: 32px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.auth-card h1 { margin: 0 0 24px; font-size: 22px; color: var(--brand); }
label { display: block; margin-bottom: 16px; font-size: 14px; }
input { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #c9d1da; border-radius: 6px; font-size: 15px; }
button { padding: 10px 16px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font-size: 15px; cursor: pointer; }
.auth-card button { width: 100%; }
button.link { background: none; color: var(--brand); padding: 0; }
.error { color: #b3261e; font-size: 14px; }
.topbar { display: flex; gap: 16px; align-items: center; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e1e6ec; }
.topbar strong { color: var(--brand); margin-right: auto; }
.topbar form { margin: 0; }
.page { max-width: 960px; margin: 24px auto; padding: 0 24px; }
.muted { color: var(--muted); }
.topbar nav { display: flex; gap: 14px; margin-right: auto; }
.topbar a { color: var(--brand); text-decoration: none; }
.topbar strong { margin-right: 8px; }
.head { display: flex; justify-content: space-between; align-items: center; }
.btn { display: inline-block; padding: 8px 14px; background: var(--brand); color: #fff !important; border-radius: 6px; text-decoration: none; font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e1e6ec; text-align: left; }
th { background: #eef2f6; }
.stack { max-width: 640px; }
select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #c9d1da; border-radius: 6px; font-size: 14px; font-family: inherit; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { width: auto; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.warn { color: #8a5a00; }
.row { display: flex; gap: 8px; align-items: end; margin: 12px 0; }
.row select, .row input { margin-top: 0; width: auto; }
fieldset { border: 1px solid #c9d1da; border-radius: 6px; margin: 0 0 16px; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; }
code { background: #eef2f6; padding: 2px 6px; border-radius: 4px; }
.stages { display: flex; gap: 8px; list-style: none; padding: 0; flex-wrap: wrap; }
.stages li { padding: 8px 14px; background: #fff; border: 1px dashed #c9d1da; border-radius: 20px; font-size: 14px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 10px; padding: 16px 20px; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
/* 화면에 붙어 따라오는 것은 두 칸 배치(.split)의 옆 상자(결과·원본 보기)만. 일반 카드까지 붙으면 스크롤할 때 아래 표를 덮는다. */
.split > .card { position: sticky; top: 12px; align-self: start; }
.big { font-size: 26px; font-weight: 700; margin: 4px 0; }
.big small { font-size: 13px; color: var(--muted); font-weight: 400; }
.delta { min-height: 1.2em; font-size: 14px; }
.up { color: #1b7f3b; } .down { color: #b3261e; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 12px; color: #44505c; }
tr.total td { font-weight: 700; background: #eef2f6; }
.badge { padding: 2px 10px; border-radius: 12px; background: #e1e6ec; }
.badge.s-reviewed { background: #fff3cd; } .badge.s-confirmed { background: #d4edda; }
.daygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.daycell { background: #fff; border: 1px solid #e1e6ec; border-radius: 6px; padding: 6px; font-size: 12px; }
.daycell.wk { background: #fdf2f2; }
.daycell input[type=text], .daycell input:not([type]) { margin: 4px 0; padding: 4px 6px; }
.daycell label.check { font-size: 12px; margin: 0; }
.topbar { flex-wrap: wrap; row-gap: 6px; }
.topbar nav { flex-wrap: wrap; }
.topbar a, .topbar span, .topbar button { white-space: nowrap; }

.ok { color: #1b7f3b; }
.review { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.source img { max-width: 100%; border: 1px solid #e1e6ec; }
pre.preview { max-height: 600px; overflow: auto; font-size: 12px; background: #f5f7fa; padding: 8px; white-space: pre-wrap; }
.reading { position: static; margin-bottom: 14px; }
.reading.s-confirmed { border-left: 4px solid #1b7f3b; } .reading.s-rejected { opacity: .55; }
.badge.conf-낮음 { background: #f8d7da; } .badge.conf-높음 { background: #d4edda; } .badge.s-pending { background: #fff3cd; }
button.secondary { background: #6b7785; }
@media (max-width: 800px) { .review { grid-template-columns: 1fr; } }

/* ===== 휴램프로식 레이아웃: 좌측 메뉴 + 상단 회사 바 ===== */
:root { --brand: #3b5bdb; --navy: #1c2a5c; }
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.shell .side { background: #eef1f6; border-right: 1px solid #dde3ec; padding: 12px 0; position: sticky; top: 0; height: 100vh; }
.shell.in-company .side { background: var(--navy); }
.side .brand { display: flex; gap: 8px; align-items: center; padding: 10px 18px 18px; font-weight: 700; color: var(--navy); text-decoration: none; }
.in-company .side .brand { color: #cfd8f6; font-size: 14px; }
.side nav { display: flex; flex-direction: column; }
.side nav a { display: flex; gap: 10px; align-items: center; padding: 11px 18px; color: #3a4658; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
.side nav a i { font-style: normal; width: 20px; text-align: center; }
.side nav a:hover { background: rgba(0,0,0,.05); }
.side nav a.on { background: #fff; color: var(--navy); font-weight: 700; border-left-color: var(--brand); }
.in-company .side nav a { color: #cfd8f6; }
.in-company .side nav a:hover { background: rgba(255,255,255,.08); }
.in-company .side nav a.on { background: rgba(255,255,255,.16); color: #fff; border-left-color: #8fa4ff; }
.main { min-width: 0; background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e1e6ec; min-height: 56px; }
.bar .co-name { font-size: 17px; margin-right: 6px; }
.bar .spacer { flex: 1; } .bar form { margin: 0; }
.chip { padding: 3px 10px; border: 1px solid #dde3ec; border-radius: 14px; font-size: 12px; color: #4a566a; background: #f8f9fc; }
.ins { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 10px; font-size: 11px; background: #e3fbe9; color: #1b7f3b; border: 1px solid #b7ebc6; }
h1 .ins { vertical-align: middle; }
.page { max-width: none; margin: 0; padding: 24px 28px; }
.tablewrap { overflow-x: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.tablewrap table { margin: 0; }
.btn.ghost { background: #fff; color: var(--brand) !important; border: 1px solid #b9c5f5; }
.btn.disabled { opacity: .45; cursor: not-allowed; }
td.actions { white-space: nowrap; } td.actions .btn { margin-right: 4px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; flex-wrap: wrap; }
.row.search input { width: 320px; } form.inline { display: flex; gap: 6px; align-items: center; margin: 0; } form.inline input { width: auto; margin: 0; padding: 6px; }
.toggle { width: 42px; height: 24px; border-radius: 12px; background: #c9d1da; border: 0; padding: 2px; position: relative; cursor: pointer; }
.toggle span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle.on { background: #6c5ce7; } .toggle.on span { transform: translateX(18px); } .toggle:disabled { opacity: .45; cursor: not-allowed; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e1e6ec; margin-bottom: 12px; }
.tabs a { padding: 8px 16px; color: #6b7785; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--navy); font-weight: 700; border-bottom-color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.card.stat { position: static; display: flex; flex-direction: column; gap: 4px; } .card.stat span { color: var(--muted); font-size: 12px; } .card.stat strong { font-size: 20px; } .card.stat small { color: var(--muted); }
table.annual th, table.annual td { white-space: nowrap; font-size: 13px; }
table.annual td.muted { color: #9aa5b1; }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .shell .side { position: static; height: auto; } .side nav { flex-direction: row; flex-wrap: wrap; } .side nav a { border-left: 0; } }

.preview-doc { max-width: 760px; padding: 24px 32px; line-height: 1.7; position: static; }
.preview-doc p { margin: 4px 0; }

/* ===== 월별 급여대장 표(휴램프로식) ===== */
.crumb { margin: 0 0 6px; color: var(--muted); font-size: 13px; } .crumb a { color: var(--muted); }
.ledger-tools { align-items: center; } .ledger-tools input[type=search] { width: 200px; margin: 0; }
details.pop { position: relative; } details.pop > summary { cursor: pointer; list-style: none; } details.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; z-index: 20; top: 38px; left: 0; width: 320px; background: #fff; border: 1px solid #dde3ec; border-radius: 8px; padding: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.ledger-wrap { max-height: 72vh; overflow: auto; }
table.ledger-grid { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.ledger-grid th, .ledger-grid td { border-right: 1px solid #e7ebf1; border-bottom: 1px solid #e7ebf1; padding: 6px 8px; white-space: nowrap; vertical-align: middle; }
.ledger-grid thead th { position: sticky; top: 0; z-index: 3; background: #eef2f6; text-align: center; }
.ledger-grid .sticky { position: sticky; background: #fff; z-index: 2; } .ledger-grid thead .sticky { z-index: 4; background: #eef2f6; }
.ledger-grid .c1 { left: 0; min-width: 150px; } .ledger-grid .c2 { left: 150px; min-width: 110px; border-right: 2px solid #c9d1da; }
.ledger-grid .sep { border-left: 2px solid #c9d1da; }
.ledger-grid tfoot td { position: sticky; bottom: 0; background: #eef2f6; font-weight: 700; z-index: 2; }
.ledger-grid input.cell { width: 96px; text-align: right; padding: 4px 6px; margin: 0; border: 1px solid transparent; background: #f8f9fc; border-radius: 4px; font-size: 13px; }
.ledger-grid input.cell.hrs { width: 56px; } .ledger-grid input.cell:hover { border-color: #b9c5f5; } .ledger-grid input.cell:focus { border-color: var(--brand); background: #fff; outline: none; }
.ledger-grid input.cell.bad { border-color: #b3261e; background: #fdecea; } .ledger-grid input.cell.saving { opacity: .6; } .ledger-grid input.cell:disabled { background: transparent; color: inherit; }
.ledger-grid td.pay .prorate { display: block; text-align: right; font-size: 11px; }
.ledger-grid tr.has-warn td.c1 { box-shadow: inset 3px 0 0 #e0a100; } .ledger-grid tr.flash td { background: #fff8d6 !important; transition: background .6s; }
.ledger-grid:not(.show-diff) .diffcol { display: none; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #b3261e; color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 50; max-width: 360px; }

.ledger-grid td.hours { white-space: nowrap; min-width: 138px; text-align: center; }
.ledger-grid td.hours input.cell.hrs { display: inline-block; width: 58px; }

.ledger-grid th .nt { display: inline-block; font-size: 10px; background: #e3fbe9; color: #1b7f3b; border-radius: 8px; padding: 0 5px; }

.add-item { align-items: end; flex-wrap: wrap; margin: 10px 0 18px; } .add-item input, .add-item select { width: auto; margin-top: 4px; }
table td input[name=label] { min-width: 150px; margin: 0; padding: 4px 6px; } table td select { margin: 0; padding: 4px; width: auto; }

/* 급여대장: 근로자 1명 3줄, 항목을 접어 가로 스크롤 없이 한 화면에 */
.ledger-wrap { max-height: none; overflow: visible; }
table.ledger-grid.stacked { table-layout: fixed; width: 100%; min-width: 0; font-size: 12px; }
.stacked th, .stacked td { padding: 3px 5px; white-space: normal; overflow-wrap: anywhere; word-break: keep-all; line-height: 1.25; height: 28px; }
.stacked thead th { height: 36px; font-size: 11.5px; }
.stacked thead tr:nth-child(1) th { top: 0; } .stacked thead tr:nth-child(2) th { top: 36px; } .stacked thead tr:nth-child(3) th { top: 72px; }
.stacked tbody.person tr:nth-child(3) td { border-bottom: 2px solid #c9d1da; }
.stacked tbody.person:nth-of-type(even) td { background: #fafbfd; }
.stacked tbody.person.has-warn tr:first-child td:first-child { box-shadow: inset 3px 0 0 #e0a100; }
.stacked tbody.flash td { background: #fff8d6 !important; transition: background .6s; }
.stacked td.id { font-size: 12px; } .stacked td.id a { font-weight: 700; }
.stacked input.cell { width: 100%; min-width: 0; box-sizing: border-box; }
.stacked td.hours input.cell.hrs { display: inline-block; width: 46%; } .stacked td.hours { min-width: 0; }
.stacked tfoot td { position: static; background: #eef2f6; font-weight: 700; }
.stacked th.stat, .stacked td.stat { width: 90px; }
.stacked th.diffcol, .stacked td.diffcol { width: 80px; }
.stacked td.num { white-space: nowrap; padding-left: 2px; padding-right: 4px; } .stacked td.num strong { font-weight: 700; }
@media (max-width: 1500px) { table.ledger-grid.stacked { font-size: 11px; } .stacked thead th { font-size: 10.5px; padding: 2px 2px; } .stacked th, .stacked td { padding-left: 2px; padding-right: 2px; } }
.stacked input.cell { height: 22px; padding: 1px 4px; font-size: inherit; } .stacked th, .stacked td { height: 26px; } .stacked td.pay .prorate { font-size: 10px; display: inline; }
.danger-zone { margin: 18px 0; padding: 8px 12px; border: 1px solid #f0c9c4; border-radius: 8px; } .danger-zone summary { cursor: pointer; color: #b3261e; font-weight: 600; }

.notice { background: #eef4ff; border: 1px solid #c9dafc; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.progress { height: 8px; background: #e7ebf1; border-radius: 6px; overflow: hidden; margin: 6px 0 14px; max-width: 420px; } .progress span { display: block; height: 100%; background: var(--brand, #3b5bdb); }
ol.steps { list-style: none; padding: 0; max-width: 760px; } ol.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e7ebf1; border-radius: 10px; margin-bottom: 8px; background: #fff; }
ol.steps li > div { flex: 1; } ol.steps .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e7ebf1; font-weight: 700; flex: none; }
ol.steps li.done .mark { background: #1b7f3b; color: #fff; } ol.steps li.done { background: #f7fbf8; }

.changes { background: #f3f7ff; border: 1px solid #d6e2ff; border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 13px; } .changes ul { margin: 4px 0 0; padding-left: 18px; }
.changes:empty { display: none; } .ledger-changes .chg { display: inline-block; margin: 2px 12px 2px 0; }

/* 급여대장 왼쪽 근태 입력 블록: 급여 항목과 구분되게 다른 바탕·굵은 경계 */
.stacked th.att { background: #fff4d6; color: #6b4e00; font-size: 11px; }
.stacked th.att.band { background: #ffe9a8; font-weight: 700; }
.stacked td.att { background: #fffaf0 !important; text-align: center; }
.stacked td.att.na { background: repeating-linear-gradient(135deg, #fbf6ea, #fbf6ea 4px, #f5efdf 4px, #f5efdf 8px) !important; }
.stacked td.att input.cell.hrs { width: 100%; display: block; }
.stacked td.att.mode { font-size: 11px; }
.stacked .att + :not(.att) { border-left: 2px solid #c9a227; }  /* 근태 블록과 급여 항목 경계 */
.stacked .idh + .att, .stacked td.id + .att, .stacked td:nth-child(2) + .att { border-left: 2px solid #c9a227; }

/* ===== 사원 정보(휴램프로식: 왼쪽 사원 목록 + 프로필 + 탭) ===== */
.emp-page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.emp-roster { background: #fff; border: 1px solid #e7ebf1; border-radius: 10px; padding: 12px; position: sticky; top: 12px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.emp-roster .head { display: flex; justify-content: space-between; align-items: center; } .emp-roster h2 { margin: 0; font-size: 17px; }
.emp-roster .tabs { margin: 8px 0; } .emp-roster input[type=search] { margin: 0 0 8px; }
ul.roster { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
ul.roster li a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
ul.roster li a:hover { background: #f3f5f9; } ul.roster li.on a { background: #eef2ff; }
ul.roster li a span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.avatar.big { width: 96px; height: 96px; font-size: 26px; }
.avatar.a0 { background: #f06464; } .avatar.a1 { background: #4caf7a; } .avatar.a2 { background: #f2b33d; } .avatar.a3 { background: #8b6cf0; } .avatar.a4 { background: #f08a5d; } .avatar.a5 { background: #4a90d9; }
.emp-card { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid #e7ebf1; border-radius: 12px; padding: 20px 24px; margin-bottom: 8px; }
.emp-card h1 { margin: 0 0 10px; font-size: 24px; }
dl.facts { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
dl.facts dt { color: var(--muted, #6b7280); } dl.facts dd { margin: 0; }
.emp-tabs { margin: 16px 0 4px; border-bottom: 1px solid #e7ebf1; }
dl.kv { display: grid; grid-template-columns: 180px 1fr; margin: 0; border-top: 1px solid #e7ebf1; }
dl.kv dt, dl.kv dd { padding: 10px 8px; border-bottom: 1px solid #eef1f5; margin: 0; } dl.kv dt { color: var(--muted, #6b7280); }
table.mini { width: auto; margin: 4px 0; } table.mini td, table.mini th { padding: 3px 10px 3px 0; border: 0; }
.fixed-table input { width: 9em; margin: 0; } tr.on td { background: #fff8d6; }
@media (max-width: 900px) { .emp-page { grid-template-columns: 1fr; } .emp-roster { position: static; max-height: 260px; } dl.facts { grid-template-columns: auto 1fr; } .emp-card { flex-direction: column; } }

.fixed-inline { margin: 0; } dl.kv-tight { border-top: 0; }
.fixed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fixed-row input { width: 7em; margin: 0; padding: 4px 6px; } .fixed-row input.fixed-amount { width: 9em; text-align: right; }
.fixed-row .fixed-name { margin-left: 14px; min-width: 6.5em; font-weight: 600; }

.ins-table select { margin: 0; width: auto; } .ins-table input.money { width: 11em; margin: 0; text-align: right; } .ins-table input[name=np_base] { width: 16em; }

/* 소득세·4대보험(휴램프로식) */
.taxins .radios { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.taxins .method-grid { display: grid; gap: 8px; } .taxins .m-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 6px 0; border-bottom: 1px solid #eef1f5; }
.taxins .m-name { min-width: 11.5em; font-weight: 600; } .taxins select { width: auto; margin: 0; } .taxins input.money { width: 11em; margin: 0; text-align: right; }
.taxins input[name=np_base] { width: 15em; } .taxins input[name=ltc_reduction] { width: 5em; margin: 0; }
.help { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #8a93a3; color: #fff; font-size: 12px; cursor: help; }

/* AI 판독 요약표: 이름·근로자·시간 칸은 줄바꿈하지 않고, 비고 칸이 남는 폭을 쓴다 */
.ai-summary th, .ai-summary td { vertical-align: top; }
.ai-summary th, .ai-summary td:nth-child(-n+5), .ai-summary td:nth-child(n+7) { white-space: nowrap; }
.ai-summary td:nth-child(6) { min-width: 14em; }
.ai-summary input.hours { width: 4.5em; text-align: right; }
.ai-summary select { max-width: 11em; }
.ai-summary tr.s-confirmed td { background: #f6fbf7; }
.ai-summary details.register { margin-top: 4px; }
.ai-summary details.register .stack { gap: 4px; margin-top: 4px; white-space: normal; }
.review-details { margin-top: 24px; }
.review-details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.reading h3.small { margin: 12px 0 4px; color: #444; }
.reading .reason { background: #f7f8fb; border-left: 3px solid #4a6cf7; padding: 6px 10px; margin: 0; white-space: pre-wrap; }
.reading table.basis { font-size: 12px; }
.reading table.basis td, .reading table.basis th { padding: 2px 8px; }
.reading details.advanced { margin-top: 12px; }

/* 사원 목록: 정렬 머리글·근로계약서·전자서명 */
.emp-list th.sortable a { color: inherit; text-decoration: none; white-space: nowrap; }
.emp-list th.sortable span { color: #999; font-size: 11px; }
.emp-list th.sortable.on span { color: #4a6cf7; }
.emp-list .contract-ok { color: #1a8a4a; text-decoration: none; white-space: nowrap; }
.emp-list .sign-done { color: #1a8a4a; white-space: nowrap; }
.emp-list .sign-wait { color: #b26a00; white-space: nowrap; }
.emp-list .btn.small { padding: 2px 10px; font-size: 12px; }

/* 회원사 직인·서명 */
.seal-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seal-preview { max-height: 110px; max-width: 220px; border: 1px dashed #ccd; padding: 6px; background: repeating-conic-gradient(#f3f3f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; }

/* 급여대장 신규등록·사원 추가/제외 */
.form-kv { display: grid; grid-template-columns: 9em 1fr; gap: 12px 16px; align-items: start; }
.form-kv dt { font-weight: 600; padding-top: 6px; }
.form-kv dd { margin: 0; }
.member-list { max-height: 320px; overflow-y: auto; border: 1px solid #e3e6ee; border-radius: 6px; padding: 6px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 2px 12px; }
@media (max-width: 640px) { .form-kv { grid-template-columns: 1fr; } }

/* 급여대장: 경고 확인·안내, 4대보험 금액 출처 */
.acked { color: #3d7a5c; }
.note-i { color: #5f6878; }
.warn-panel { margin: 12px 0; }
.warn-panel summary { cursor: pointer; }
.warn-table tr.is-acked td, .warn-table tr.is-note td { color: #5f6878; }
td.ded .src { display: block; font-size: 10.5px; line-height: 1.2; font-weight: 600; }
.src-고지 { color: #1f6f5c; }
.src-요율 { color: #8a94a3; }
.src-수동 { color: #8a5a00; }
small.src { white-space: nowrap; }
/* 월별 진행 현황 */
.progress-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.step-chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border: 1px solid #d5dbe3; border-radius: 999px; text-decoration: none; color: #2a3340; background: #fff; }
.step-chip strong { font-variant-numeric: tabular-nums; }
.step-chip.on { border-color: #2f6fed; background: #eaf1ff; }
.step-chip.done { color: #3d7a5c; }
.progress-table tr.is-done td { color: #7a8494; }
.dday { display: inline-block; margin-left: 4px; font-size: 11.5px; padding: 0 6px; border-radius: 6px; background: #eef1f5; color: #5f6878; font-variant-numeric: tabular-nums; }
.dday.soon { background: #fff1d6; color: #8a5a00; }
.dday.late { background: #fde3e3; color: #a3262a; }
.notice-chip { display: inline-block; margin: 0 4px 2px 0; padding: 0 6px; border-radius: 6px; background: #f1f3f6; color: #8a94a3; font-size: 12px; }
.notice-chip.got { background: #e3f1ec; color: #1f6f5c; }
.next-step.step-완료 { color: #3d7a5c; }

/* 사원 정보 기본 탭: 휴램프로처럼 화면 폭 전체에 '항목명 | 값'을 두 쌍씩, 줄로 구분 */
.emp-main form.emp-form { max-width: none; }
.emp-form h2 { margin: 26px 0 8px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid #e7ebf1; }
label.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; padding: 9px 4px; border-bottom: 1px solid #e7ebf1; font-weight: 400; }
label.kv.full { grid-column: 1 / -1; grid-template-columns: 160px minmax(0, 1fr); }
label.kv .k { color: #6b7280; font-size: 14px; }
label.kv .k small { display: block; font-size: 11.5px; color: #9aa3af; margin-top: 2px; }
label.kv .v input:not([type=checkbox]), label.kv .v select { margin: 0; width: 100%; max-width: none; }
label.kv .v .check { margin-top: 6px; }
.kv-grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.kv-grid.cols3 label.kv { grid-template-columns: 150px minmax(0, 1fr); }
@media (max-width: 1100px) { .kv-grid, .kv-grid.cols3 { grid-template-columns: 1fr; } }


/* 물음표 도움말 말풍선(help_tip.js) */
.help-pop { position: absolute; z-index: 1000; display: none; max-width: 360px; padding: 9px 12px; border-radius: 10px; background: #1f2937; color: #fff;
  font-size: 13px; font-weight: 400; line-height: 1.55; white-space: pre-line; word-break: keep-all; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); pointer-events: none; }
.help:focus-visible, .tip:focus-visible { outline: 2px solid #3182f6; outline-offset: 2px; }


/* 급여대장 › 근로자 '그 달 급여 입력' 창(pay_panel.js) */
dialog.pay-panel { width: min(1000px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); background: #f6f8fb; }
dialog.pay-panel::backdrop { background: rgba(17, 24, 39, .45); }
.pp { display: flex; flex-direction: column; max-height: 92vh; }
.pp-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 16px 16px 4px; padding: 16px; background: #fff; border-radius: 12px; }
.pp-head small { color: #6b7280; margin-right: 4px; }
.pp-head .pp-month { width: 100%; text-align: center; color: #6b7280; font-size: 13px; }
.pp-note { margin: 4px 20px 0; }
.pp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 12px 16px; overflow: auto; }
.pp-cols section { background: #fff; border-top: 2px solid #3a4250; }
.pp-cols h3 { margin: 0; padding: 12px; text-align: center; background: #eef1f5; font-size: 15px; }
.pp-table { width: 100%; border-collapse: collapse; }
.pp-table th, .pp-table td { padding: 8px 10px; border-bottom: 1px solid #edf0f4; font-weight: 400; text-align: left; vertical-align: middle; }
.pp-table td { text-align: right; white-space: nowrap; }
.pp-table input.money { width: 120px; text-align: right; }
.pp-table input[readonly] { background: #f2f4f7; color: #4b5563; }
.pp-table select { width: 120px; margin-right: 6px; }
.pp-table tr.pp-variable th { color: #2563eb; }
.pp-badge { display: inline-block; font-size: 11px; border-radius: 10px; padding: 0 7px; margin-left: 4px; border: 1px solid #c7d7f5; background: #eef4ff; color: #2f6fe0; }
.pp-badge.var { border-color: #f5d6a1; background: #fff6e6; color: #b45309; }
.pp-sum { margin: 0 16px; padding: 10px; text-align: center; background: #fff; border-radius: 10px; }
.pp-error { margin: 8px 16px 0; }
.pp-actions { display: flex; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid #e5e7eb; background: #fff; position: sticky; bottom: 0; }
.pp-actions button { min-width: 110px; }
.pp-table input, .pp-table select { display: inline-block; margin: 0; padding: 6px 8px; vertical-align: middle; }
.pp-table td > div { margin-top: 2px; }
.pp-table th { width: 42%; }
.pp-table tr.pp-add th input { width: 100%; }
.pp-net { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 12px; color: #4b5563; }
.pp-net input { width: auto; margin: 0; }
.ai-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ai-split .ai-upload { max-width: none; background: #fff; border-radius: 10px; padding: 16px 20px; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.ai-side .card { position: static; margin-bottom: 8px; } .ai-side .card h2 { margin-top: 0; }
.ai-side table { font-size: 13px; } .ai-side td:nth-child(3) { word-break: break-all; }
@media (max-width: 1100px) { .ai-split { grid-template-columns: 1fr; } }
