@font-face { font-family: 'Pretendard'; font-weight: 400; font-style: normal; font-display: swap;
  src: local('Pretendard Regular'), local('Pretendard-Regular'), url('/static/fonts/Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-style: normal; font-display: swap;
  src: local('Pretendard Medium'), local('Pretendard-Medium'), url('/static/fonts/Pretendard-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-style: normal; font-display: swap;
  src: local('Pretendard SemiBold'), local('Pretendard-SemiBold'), url('/static/fonts/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-style: normal; font-display: swap;
  src: local('Pretendard Bold'), local('Pretendard-Bold'), url('/static/fonts/Pretendard-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-style: normal; font-display: swap;
  src: local('Pretendard ExtraBold'), local('Pretendard-ExtraBold'), url('/static/fonts/Pretendard-ExtraBold.woff2') format('woff2'); }
:root {
  --blue: #2f6bff; --blue-soft: #eaf0ff; --ink: #1b2233; --sub: #6b7385; --line: #e6e9f0;
  --bg: #f6f8fc; --card: #fff; --red: #e5484d; --red-soft: #fdecec; --amber: #b7791f; --amber-soft: #fdf3e1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font-family: Pretendard, -apple-system, "Malgun Gothic", sans-serif; font-size: 14px; }
header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.logo { font-weight: 800; font-size: 18px; color: var(--blue); text-decoration: none; letter-spacing: -0.3px; }
.logo span { color: var(--ink); font-weight: 600; }
nav a { color: var(--sub); text-decoration: none; font-weight: 600; margin-right: 18px; }
nav a.on { color: var(--blue); }
.badge-local { margin-left: auto; font-size: 12px; color: var(--sub); background: var(--bg); padding: 4px 10px; border-radius: 99px; }
main { max-width: 1480px; margin: 0 auto; padding: 28px 24px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.4px; }
.crumb { color: var(--sub); font-size: 13px; margin-bottom: 6px; }
.crumb a { color: var(--sub); text-decoration: none; } .crumb a:hover { color: var(--blue); }
.head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.head .grow { flex: 1; min-width: 240px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card h2 .right { margin-left: auto; }
.btn { border: 0; border-radius: 99px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer;
       background: var(--blue); color: #fff; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--blue-soft); color: var(--blue); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { padding: 5px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--sub); font-weight: 600; font-size: 12.5px; background: #fafbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--blue-soft); }
td input, td select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%; min-width: 70px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--sub);
        font-size: 12px; font-weight: 600; margin: 0 4px 4px 0; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 16px;
               font: inherit; font-weight: 600; color: var(--sub); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 18px; }
.field label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
                font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.field input[readonly] { background: var(--bg); color: var(--sub); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
.field .hint { font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.gridbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.gridbar .grow { flex: 1; }
.sheetwrap { overflow: auto; max-height: calc(100vh - 250px); min-height: 200px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; }
.sheet th, .sheet td { padding: 3px 6px; border-bottom: 1px solid var(--line); border-right: 1px solid #f0f2f6; }
.sheet thead th { position: sticky; top: 0; z-index: 3; background: #fafbfd; }
.sheet thead tr:nth-child(2) th { top: 31px; }
.sheet th.grp { text-align: center; color: var(--ink); background: #f1f4fa; }
.sheet .stk { position: sticky; background: #fff; z-index: 2; }
.sheet thead .stk { z-index: 4; background: #fafbfd; }
.sheet .stk0 { left: 0; min-width: 76px; }
.sheet .stk1 { left: 76px; min-width: 84px; border-right: 2px solid var(--line); font-weight: 600; }
.sheet td input, .sheet td select { border: 1px solid transparent; background: transparent; padding: 5px 6px; border-radius: 6px; min-width: 0; font: inherit; }
.sheet td input:hover, .sheet td select:hover { border-color: var(--line); }
.sheet td input:focus, .sheet td select:focus { background: #fff; }
.sheet td.dirty, .sheet td.dirty input, .sheet td.dirty select { background: #fff3c4; }
.sheet tbody tr:hover td { background: #f7f9ff; }
.sheet tbody tr:hover td.dirty { background: #fff3c4; }
.sheet a.open { color: var(--blue); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.tabs.sheets { gap: 4px; }
.tabs.sheets button { padding: 6px 12px; font-size: 13px; }
.tabs.sheets button.todo { color: #b0b6c3; border-style: dashed; }
.tabs.sheets button.todo.on { background: #8a91a3; border-color: #8a91a3; color: #fff; }
.su { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.su-wide { grid-column: 1 / -1; }
.su-panel { background: #fff; border: 1px solid #cdd5e3; border-radius: 0; }
.su-head { padding: 9px 14px; background: #eef2f8; border-bottom: 1px solid #cdd5e3; border-left: 3px solid var(--blue);
           font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.su-head b { white-space: nowrap; }
.su-head span { font-weight: 500; color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.su-form { display: grid; grid-template-columns: 128px 1fr; }
.su-form4 { grid-template-columns: 128px 1fr 128px 1fr; }
.su-form .lb { background: #f7f9fc; border-right: 1px solid #e3e8f0; border-bottom: 1px solid #e3e8f0; padding: 0 12px;
               display: flex; align-items: center; font-size: 12.5px; color: #4a5263; font-weight: 600; min-height: 44px; }
.su-form .lb b { color: var(--red); margin-left: 3px; }
.su-form .lb.req { color: var(--blue) !important; font-weight: 700; } .su-form .lb.req::after { content: '*'; margin-left: 2px; }
.su-in.miss { border-color: var(--red) !important; box-shadow: 0 0 0 2px #fde8e8; }
.su-form .vl { border-bottom: 1px solid #e3e8f0; padding: 6px 8px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.su-form4 > .vl:nth-child(4n+2) { border-right: 1px solid #e3e8f0; }
.su-form .span3 { grid-column: span 3; }
.su-form > :nth-last-child(-n+2) { border-bottom: 0; }
.su-in { height: 32px; border: 1px solid #d3dae6; border-radius: 0; padding: 0 9px; font: inherit; font-size: 13px;
         background: #fff; color: var(--ink); width: 100%; min-width: 0; }
textarea.su-in { height: 150px; padding: 8px 9px; resize: vertical; line-height: 1.6; }
.su-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.su-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.su-row .su-in { flex: none; }
.su-tilde { color: var(--sub); padding: 0 2px; }
.su-hint { font-size: 11.5px; color: var(--sub); white-space: nowrap; }
.su-table { width: 100%; border-collapse: collapse; }
.su-table th, .su-table td { border-bottom: 1px solid #e3e8f0; border-right: 1px solid #e3e8f0; padding: 5px 8px;
                             text-align: left; font-size: 13px; white-space: normal; }
.su-table tr > :last-child { border-right: 0; }
.su-table tbody tr:last-child > * { border-bottom: 0; }
.su-table thead th { background: #f7f9fc; color: #4a5263; font-weight: 600; font-size: 12px; padding: 7px 8px; }
.su-table tbody th { background: #f7f9fc; font-weight: 600; color: #4a5263; font-size: 12.5px; }
.su-note { color: var(--sub); font-size: 12px; }
.su-fixed { font-size: 12.5px; padding-left: 12px !important; }
.su-split { display: grid; grid-template-columns: 1fr 1fr; }
.su-split > div { padding: 10px 12px; }
.su-split > div + div { border-left: 1px solid #e3e8f0; }
.su-sub { font-size: 12px; font-weight: 600; color: #4a5263; margin-bottom: 6px; }
.su-in.chg { background: #fff3c4; border-color: #e3c25a; }
.su-bar { position: sticky; bottom: 0; margin-top: 14px; background: #fff; border: 1px solid #cdd5e3; padding: 10px 14px;
          display: flex; gap: 8px; align-items: center; z-index: 5; box-shadow: 0 -4px 12px rgba(20, 30, 60, .05); }
.su-bar .grow { flex: 1; }
.su-sec { margin: 30px 0 12px; font-weight: 700; font-size: 15px; padding-left: 10px; border-left: 3px solid var(--ink); }
.su-stack { display: grid; gap: 14px; align-content: start; }
.su-items td.no, .su-items th.no { width: 34px; text-align: center; color: var(--sub); background: #fafbfd; }
.su-items .ctr { text-align: center; white-space: nowrap; }
.su-items .su-in { height: 28px; }
.su-btn { border: 1px solid #d3dae6; background: #fff; padding: 4px 9px; font: inherit; font-size: 12px; cursor: pointer;
          border-radius: 0; color: var(--ink); }
.su-btn + .su-btn { margin-left: -1px; }
.su-btn:hover { border-color: var(--blue); color: var(--blue); position: relative; }
.su-btn.del:hover { border-color: var(--red); color: var(--red); }
.su-btn.add { background: var(--blue); color: #fff; border-color: var(--blue); }
.su-new td { background: #fbfcff; }
@media (max-width: 980px) {
  .su { grid-template-columns: 1fr; }
  .su-form4 { grid-template-columns: 110px 1fr; }
  .su-form .span3 { grid-column: auto; }
  .su-form4 > .vl:nth-child(4n+2) { border-right: 0; }
  .su-form4 > :nth-last-child(-n+4) { border-bottom: 1px solid #e3e8f0; }
  .su-form > :nth-last-child(-n+2) { border-bottom: 0; }
}
.sheet th { vertical-align: middle; }   /* 한 줄 제목(사번·성명)도 두 줄 제목과 같은 높이 가운데 */
.sheet th small { display: block; font-weight: 400; font-size: 11px; color: #9aa1b0; margin-top: 1px; white-space: nowrap; }
.sheet td { vertical-align: middle; }
.stack { display: grid; gap: 3px; }
.stack.inline { grid-auto-flow: column; grid-template-columns: 76px 1fr; gap: 4px; }
.stack.inline3 { grid-auto-flow: column; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px; }
.fld { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sheet .fld input, .sheet .fld select { width: 100%; }
.tg { font-size: 10.5px; color: #9aa1b0; flex: none; min-width: 24px; }
.rov { font-variant-numeric: tabular-nums; }
.sheet .fld.dirty input, .sheet .fld.dirty select { background: #fff3c4; }
.pats { display: grid; gap: 4px; }
.pat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dcs { display: inline-flex; gap: 3px; margin-right: 4px; }
.dc { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #cfd6e4; display: inline-flex; align-items: center;
      justify-content: center; font-size: 11.5px; font-weight: 600; cursor: pointer; user-select: none; color: #6b7385; background: #fff; }
.dc.sat { color: #2f6bff; } .dc.sun { color: #e5484d; }
.dc.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.dc.other { background: #eef1f6; border-color: #eef1f6; color: #c3c8d3; }
.sheet .pat input[type=time] { width: 130px; border: 1px solid #e3e8f0; padding: 4px 6px; }
.pat .rm { border: 0; background: none; color: #b0b6c3; cursor: pointer; font-size: 13px; }
.pat .rm:hover { color: var(--red); }
.patfoot { display: flex; align-items: center; gap: 14px; }
.addp { border: 0; background: none; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.dpw { font-size: 12px; color: var(--sub); display: inline-flex; align-items: center; gap: 4px; }
.sheet .dpw input { width: 56px; border: 1px solid #e3e8f0; padding: 3px 6px; text-align: right; }
.mini { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; font-size: 12px; line-height: 1.55; }
.mini span { color: var(--sub); } .mini b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt input[type=radio] { margin-top: 3px; }
.eff { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.su-table.hist td { vertical-align: top; }
.su-table.hist tr.sel td { background: #f3f7ff; }
.su-table.hist td.ctr { white-space: nowrap; text-align: center; }
.su-table.hist .diff { font-size: 12.5px; color: #3d4556; line-height: 1.6; }
.xp { border: 1px solid #d3dae6; background: #fff; width: 22px; height: 22px; padding: 0; cursor: pointer; color: var(--sub);
      font-size: 11px; line-height: 1; transition: transform .15s; }
.xp:hover { border-color: var(--blue); color: var(--blue); }
.xp.open { transform: rotate(90deg); color: var(--blue); border-color: var(--blue); }
tr.subrow > td { background: #f7f9fc !important; padding: 10px 14px 12px 40px; }
.histbox .su-table { background: #fff; border: 1px solid #dfe5ef; }
.sheet .stk { position: static; } .sheet .stk0, .sheet .stk1 { min-width: 0; }   /* 가로 스크롤 없앤 뒤로 고정 열 불필요 */
.wpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wp { cursor: pointer; transition: border-color .15s; }
.wp:hover { border-color: var(--blue); }
.wp .name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.wp .meta { color: var(--sub); font-size: 12.5px; line-height: 1.7; }
.empty { text-align: center; color: var(--sub); padding: 40px 20px; }
.search { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; font: inherit; width: 220px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
         padding: 12px 20px; border-radius: 99px; font-weight: 600; opacity: 0; transition: opacity .2s;
         pointer-events: none; max-width: calc(100% - 32px); z-index: 30; }
.toast.show { opacity: 1; }
.note { color: var(--sub); font-size: 12.5px; margin-top: 10px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.kv div:nth-child(odd) { color: var(--sub); }
.sub { color: var(--sub); font-weight: 500; font-size: 12.5px; }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 26, 40, .38); display: flex; align-items: flex-start;
            justify-content: center; padding: 60px 16px; z-index: 20; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 720px; }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.danger-zone { border-color: #f5c9cb; }
.row-inline { display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .bar { padding: 0 16px; gap: 14px; } main { padding: 20px 16px 48px; }
  .badge-local { display: none; } .me { margin-left: auto !important; } .search { width: 100%; }
  .kv { grid-template-columns: 110px 1fr; }
}

/* ===== 포털 테마 (sobi1997.github.io/labor_payroll 톤) ===== */
:root {
  --blue: #2f6bff; --teal: #12c2a0; --grad: linear-gradient(120deg, #2f6bff 0%, #12c2a0 100%);
  --ink: #16223a; --sub: #6a7891; --line: #e6eef8; --bg: #f7faff; --blue-soft: #eaf1ff;
  --shadow: 0 12px 34px rgba(30, 70, 150, .10); --shadow-sm: 0 4px 14px rgba(30, 70, 150, .07); --radius: 18px;
}
body { background: #fbfdff; color: var(--ink); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 460px at 4% 2%, rgba(120, 190, 255, .34), transparent 70%),
              radial-gradient(560px 420px at 98% 28%, rgba(18, 194, 160, .12), transparent 70%),
              radial-gradient(760px 520px at 50% 115%, rgba(47, 107, 255, .07), transparent 70%); }
header { background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
         border-bottom: 1px solid rgba(230, 238, 248, .9); box-shadow: 0 2px 18px rgba(30, 70, 150, .05); }
.bar { max-width: 1480px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 22px; display: block; }
.logo span { font-size: 13px; font-weight: 700; color: var(--sub); padding-left: 12px; border-left: 1px solid #dbe4f1; letter-spacing: .3px; }
nav a { position: relative; padding: 6px 2px; color: #55637c; margin-right: 22px; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--ink); }
nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--grad); }
.badge-local { background: #fff; border: 1px solid var(--line); color: var(--sub); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { background: var(--grad); box-shadow: 0 6px 16px rgba(47, 107, 255, .22); padding: 10px 20px; transition: transform .15s, box-shadow .15s; }
.btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 107, 255, .28); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #d6e3ff; box-shadow: none; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: #fff1f1; color: var(--red); box-shadow: none; }
.btn.sm { padding: 6px 14px; }
.btn:disabled { box-shadow: none; transform: none; opacity: .45; }
.card, .tablewrap, .sheetwrap, .su-panel { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.card h2 { font-size: 16px; font-weight: 800; }
.su-panel { overflow: hidden; }
.su-head { background: #fff; border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; font-size: 15px; font-weight: 800; }
.su-head::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.su-form .lb { background: #f8fbff; border-color: #eef3fa; color: #55637c; }
.su-form .vl { border-color: #eef3fa; }
.su-form4 > .vl:nth-child(4n+2) { border-right-color: #eef3fa; }
.su-in { border-radius: 10px; border-color: #dde6f3; height: 34px; }
textarea.su-in { border-radius: 12px; }
.su-table th, .su-table td { border-color: #eef3fa; }
.su-table thead th, .su-table tbody th { background: #f8fbff; color: #55637c; }
.su-split > div + div { border-left-color: #eef3fa; }
.su-bar { border-radius: 16px; border-color: var(--line); bottom: 12px; box-shadow: 0 -6px 26px rgba(30, 70, 150, .10); }
.su-sec { border-left: 0; padding-left: 0; margin: 36px 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.su-btn { border-radius: 8px; border-color: #dde6f3; }
.su-btn + .su-btn { margin-left: 4px; }
.su-btn.add { background: var(--grad); border: 0; }
.sheetwrap { overflow: auto; }
.sheet thead th { background: #f8fbff; color: #55637c; }
.sheet th, .sheet td { border-bottom-color: #eef3fa; border-right-color: #f3f6fb; }
.sheet tbody tr:hover td { background: #f6f9ff; }
.tabs button { border-radius: 10px; }
.tabs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-sm); gap: 2px; display: inline-flex; }
.tabs button { border: 0; background: transparent; color: #55637c; padding: 8px 14px; font-weight: 700; }
.tabs button:hover { background: #f2f6ff; color: var(--blue); }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(47, 107, 255, .25); }
.tabs.sheets { display: flex; }
.tabs.sheets button { padding: 8px 12px; font-size: 13px; }
.tabs.sheets button.todo { color: #b7c0cf; border: 0; }
.tabs.sheets button.todo.on { background: #9aa5b8; box-shadow: none; }
.chip { background: #f2f6fc; }
.chip.blue { background: #eaf1ff; }
.search { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.modal-bg { background: rgba(16, 30, 60, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { border-radius: 22px; box-shadow: 0 30px 80px rgba(20, 40, 90, .25); padding: 28px; }
.modal.wide { max-width: 1040px; }
.sys-more { text-align: center; margin-top: 10px; }
.eh .eh-x { text-align: center; }
.ne-pair { display: flex; gap: 6px; } .ne-pair input { flex: 1; min-width: 0; }
.ne-sub { margin: 16px 0 8px; font-weight: 700; font-size: 13.5px; color: var(--sub); }
.ne-grid .field.need input, .ne-grid .field.need select { border-color: #e5484d; background: #fff5f5; }
.tx-btns { float: right; display: flex; gap: 6px; } .tx-btns a.btn { text-decoration: none; }
.tx-list td { text-align: center; } .tx-fixed { margin-top: 16px; } .tx-fixed > b { display: block; margin-bottom: 8px; font-size: 13.5px; }
.tx-fixed td.l { text-align: left; } .tx-child { margin-top: 8px; font-size: 13px; }
.tx-warn { margin-top: 8px; padding: 10px 12px; background: #fff6e5; border-radius: 8px; color: #8a5a00; font-size: 13px; }
.tx-view { max-height: 62vh; overflow: auto; } .tx-view td { text-align: right; font-variant-numeric: tabular-nums; }
.tx-view thead th { position: sticky; top: 0; background: #f4f6f9; }
.tx-form { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; } .tx-form label { display: flex; gap: 8px; align-items: center; }
.tx-sum th { width: 200px; text-align: left; } .tx-sum .red { color: #e5484d; } .tx-err { color: #e5484d; padding: 8px 0; }
.sys-old td { text-align: center; font-variant-numeric: tabular-nums; } .sys-old td.chg { color: #2f6bff; font-weight: 600; } .sys-old td.inh { color: #98a2b3; }
.emp-files { padding: 4px 0 0; } .emp-files h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0 6px; }
.fr-only[hidden] { display: none !important; }
.me { display: flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 13px; }
.bell { position: relative; display: flex; align-items: center; margin-left: 10px; padding: 6px; border-radius: 999px; cursor: pointer; color: #475467; }
.bell:hover { background: #eef3ff; color: #2f6bff; }
.bell b { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }
#bellPanel { position: fixed; top: 58px; right: 24px; width: 360px; max-height: 70vh; overflow: auto; z-index: 80; background: #fff;
             border: 1px solid #d5dce7; border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 24, 40, .16); }
#bellPanel .bp-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef1f6; }
#bellPanel .bp-it { padding: 12px 16px; border-bottom: 1px solid #f1f3f7; }
#bellPanel .bp-it.new { background: #f5f8ff; cursor: pointer; } #bellPanel .bp-it.new .bp-t b::before { content: '● '; color: #2f6bff; }
#bellPanel .bp-t { display: flex; justify-content: space-between; font-size: 13px; } #bellPanel .bp-t span { color: #98a2b3; font-size: 12px; }
#bellPanel .bp-b { margin-top: 4px; font-size: 13.5px; white-space: pre-wrap; word-break: break-all; }
#bellPanel .bp-f { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#bellPanel .bp-f a { background: #eef3ff; color: #2f6bff; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
#bellPanel .bp-r { margin-top: 4px; font-size: 11.5px; color: #98a2b3; }
.me-name { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-out { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--sub); }
.me-out:hover { color: var(--blue); border-color: var(--blue); }
body.login-mode header { display: none; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #f5f7fb; }
.login-card { width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 32px 28px; text-align: center; box-shadow: 0 8px 30px rgba(16, 24, 40, .06); }
.login-logo { height: 44px; }
.login-title { font-size: 26px; font-weight: 800; margin-top: 10px; letter-spacing: -.3px; }
.login-sub { color: var(--sub); font-size: 13.5px; margin: 4px 0 28px; }
.login-btn { display: flex; justify-content: center; min-height: 44px; }
.login-dom { color: var(--sub); font-size: 12.5px; margin-top: 14px; }
.login-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.bulk-steps { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.bulk-steps .btn { cursor: pointer; text-decoration: none; }
.bulk-sum { display: flex; gap: 6px; margin-bottom: 8px; }
.bulk-tbl { max-height: 52vh; overflow: auto; }
.bulk-tbl td.bulk-desc { text-align: left; font-size: 12.5px; }
.modal h2 { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.toast { background: rgba(22, 34, 58, .92); box-shadow: 0 10px 30px rgba(20, 40, 90, .25); }
.note { color: var(--sub); }
.opt { border-radius: 14px; }
/* 첫 화면 히어로 */
.hero { text-align: center; padding: 50px 16px 34px; }
.hero .pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 16px; border: 1px solid #cfe0ff; border-radius: 99px;
              background: rgba(255, 255, 255, .75); color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: 2px; }
.hero .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: 44px; letter-spacing: -1.5px; line-height: 1.25; margin: 18px 0 12px; }
.hero p { color: var(--sub); font-size: 16px; margin: 0; }
.hero .cta { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { padding: 13px 26px; font-size: 15px; }
.hero .stats { display: flex; gap: 56px; justify-content: center; margin-top: 34px; }
.hero .stat b { display: block; font-size: 28px; font-weight: 800; color: var(--blue); }
.hero .stat span { font-size: 13px; color: var(--sub); }
.sec-head { text-align: center; margin: 18px 0 24px; }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin: 0 0 6px; }
.sec-head p { color: var(--sub); margin: 0; font-size: 14px; }
.wpgrid { gap: 18px; }
.wp { padding: 22px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.wp:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30, 70, 150, .16); border-color: #d6e3ff; }
.wp .ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #e6efff, #defaf3); color: var(--blue);
          font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.wp .name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
/* 사업장 머리 */
.wphead { display: flex; align-items: flex-end; gap: 20px; margin: 4px 0 18px; flex-wrap: wrap; }
.wphead .grow { flex: 1; min-width: 260px; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 16px; box-shadow: var(--shadow-sm); min-width: 96px; }
.kpi span { display: block; font-size: 11.5px; color: var(--sub); font-weight: 600; }
.kpi b { font-size: 16px; font-weight: 800; }
.kpi.main b { color: var(--blue); }
/* 변동내역 버튼 */
.hbtn { border: 1px solid #d6e3ff; background: #f5f9ff; color: var(--blue); border-radius: 99px; padding: 5px 11px; font: inherit;
        font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hbtn:hover { background: #eaf1ff; }
.hbtn b { background: var(--grad); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 5px; font-size: 11px; }
.actions .grow { flex: 1; }
a.btn { text-decoration: none; display: inline-block; }
.ordchk { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.sch { display: grid; gap: 5px; }
.schtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid #c9d7fb; border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--sub); font: inherit; font-size: 12px; font-weight: 700; padding: 4px 11px; cursor: pointer; }
.seg button + button { border-left: 1px solid #c9d7fb; }
.seg button.on { background: var(--blue); color: #fff; }
.dlab { display: inline-block; width: 30px; font-size: 12px; font-weight: 700; color: #55637c; text-align: center; }
.dlab.sat { color: #2f6bff; } .dlab.sun { color: #e5484d; }
.sch .dpw input { width: 46px; }
.copybox { margin-top: 14px; box-shadow: none; }
.copyrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px 8px; }
.copyrow input:disabled + * , .copyrow label:has(input:disabled) { opacity: .45; }
.patfoot { gap: 16px; }
.actcell { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* ===== 전문가 톤 (포털 레이아웃은 유지, 그라데이션·빛번짐 제거) ===== */
:root {
  --blue: #2f6bff; --blue-dk: #2358e0; --grad: #2f6bff; --ink: #172033; --sub: #667085; --line: #e3e8ef;
  --bg: #f4f6f9; --blue-soft: #edf2ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04); --radius: 12px;
}
body { background: var(--bg); }
body::before { display: none; }
header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: none; }
.bar { height: 58px; }
nav a.on::after { background: var(--blue); height: 2px; bottom: -19px; border-radius: 0; }
.grad-text { background: none; color: var(--blue); }
h1 { font-size: 24px; letter-spacing: -.6px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--sub); font-weight: 700; }
.btn { background: var(--blue); box-shadow: none; border-radius: 8px; padding: 9px 16px; transition: background .15s; }
.btn:hover { transform: none; box-shadow: none; background: var(--blue-dk); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #c9d7fb; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.line:hover { background: #f8fafc; }
.btn.danger:hover { background: #ffe4e4; }
.btn.sm { padding: 5px 12px; border-radius: 7px; }
.card, .tablewrap, .sheetwrap, .su-panel { border-radius: var(--radius); box-shadow: var(--shadow); }
.su-head { padding: 12px 16px; font-size: 14px; font-weight: 700; background: #fafbfc; }
.su-head::before { width: 3px; height: 14px; border-radius: 2px; background: var(--blue); }
.su-in { border-radius: 6px; height: 32px; }
textarea.su-in { border-radius: 6px; }
.su-bar { border-radius: 10px; box-shadow: 0 -2px 10px rgba(16, 24, 40, .06); }
.su-sec { font-size: 17px; font-weight: 700; margin: 30px 0 12px; }
.su-btn { border-radius: 6px; }
.su-btn.add { background: var(--blue); }
.tabs { border-radius: 10px; padding: 4px; box-shadow: var(--shadow-sm); }
.tabs button { border-radius: 7px; padding: 7px 12px; font-weight: 600; }
.tabs button.on { background: var(--blue); box-shadow: none; }
.tabs.sheets button.todo.on { background: #98a2b3; }
.search { box-shadow: none; border-radius: 8px; }
.chip { border-radius: 6px; }
.modal { border-radius: 14px; box-shadow: 0 20px 50px rgba(16, 24, 40, .18); }
.modal-bg { background: rgba(16, 24, 40, .4); backdrop-filter: none; -webkit-backdrop-filter: none; }
.opt { border-radius: 10px; }
.toast { border-radius: 8px; }
/* 첫 화면: 차분한 머리 */
.hero { text-align: left; padding: 30px 32px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line);
        border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: center; }
.hero .pill { border: 0; background: none; padding: 0; color: var(--sub); font-size: 11px; letter-spacing: 1.5px; font-weight: 700; grid-column: 1; }
.hero .pill::before { display: none; }
.hero h1 { font-size: 26px; letter-spacing: -.6px; line-height: 1.35; margin: 4px 0 6px; grid-column: 1; }
.hero h1 br { display: none; }
.hero h1 .grad-text { margin-left: 6px; }
.hero p { font-size: 14px; grid-column: 1; }
.hero .cta { grid-column: 1; justify-content: flex-start; margin-top: 16px; }
.hero .cta .btn { padding: 10px 18px; font-size: 14px; }
.hero .stats { grid-column: 2; grid-row: 1 / span 5; margin: 0; gap: 12px; }
.hero .stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px 22px; min-width: 120px; background: #fafbfc; }
.hero .stat b { font-size: 26px; color: var(--ink); }
.sec-head { text-align: left; margin: 8px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.sec-head .eyebrow { display: none; }
.sec-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.sec-head p { font-size: 13px; }
.wp { padding: 18px; }
.wp:hover { transform: none; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); border-color: #c9d7fb; }
.wp .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); font-size: 17px; }
.wp .name { font-size: 16px; font-weight: 700; }
.kpi { border-radius: 10px; box-shadow: none; padding: 8px 14px; }
.kpi.main b { color: var(--blue); }
.hbtn { border-radius: 7px; border-color: #c9d7fb; background: #fff; }
.hbtn b { background: var(--blue); border-radius: 5px; }
.sheet thead th { background: #f8f9fb; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero .stats { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
/* 표: 한 칸에 두 값이면 사이에 점선, 직원(줄)끼리는 실선 */
.sheet th small { font-size: 12.5px; font-weight: 600; color: inherit; margin-top: 3px; padding-top: 3px; border-top: 1px dashed #cfd8e6; }
.sheet thead th { color: #475467; font-size: 12.5px; }
.sheet tbody td { border-bottom: 1px solid #d5dce7; }
.sheet tbody tr:last-child td { border-bottom: 0; }
.sheet th, .sheet td { border-right-color: #edf1f6; }
.stack { gap: 0; }
.stack > .fld { padding: 2px 0; }
.stack:not(.inline):not(.inline3) > .fld + .fld { border-top: 1px dashed #d5dce7; }
.pat + .pat { border-top: 1px dashed #e1e7ef; padding-top: 3px; }
.sheet tbody tr.retired td { background: #fafafb; color: #98a2b3; }
.sheet tbody tr.retired td input, .sheet tbody tr.retired td select { color: #98a2b3; }
.togbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
          padding: 7px 12px; font-size: 13px; font-weight: 600; color: #475467; cursor: pointer; white-space: nowrap; }
.togbtn.on { border-color: #c9d7fb; background: var(--blue-soft); color: var(--blue); }
.togbtn b { background: #eef1f6; color: #475467; border-radius: 5px; padding: 0 6px; font-size: 11.5px; }
.togbtn.on b { background: var(--blue); color: #fff; }
/* 모든 글자 Pretendard */
html, body, button, input, select, textarea, table, th, td, option, label, .btn, .chip, .toast {
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif; }
input::placeholder, textarea::placeholder { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; }
input[type=time], input[type=date], input[type=month] { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; font-variant-numeric: tabular-nums; }
/* 퇴사자 줄: 붉은 바탕 + 왼쪽 빨간 띠 + 「퇴사」 표시 */
.sheet tbody tr.retired td { background: #fff4f4; color: #b54747; }
.sheet tbody tr.retired td input, .sheet tbody tr.retired td select { color: #9a5a5a; }
.sheet tbody tr.retired td:first-child { box-shadow: inset 3px 0 0 #e5484d; }
.sheet tbody tr.retired:hover td { background: #ffecec; }
.retchip { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 4px; background: #e5484d; color: #fff;
           font-size: 11px; font-weight: 700; white-space: nowrap; }
.ctr-box { display: grid; gap: 3px; }
.ctr-box select, .ctr-box input { width: 100%; }
.ctr-body { display: grid; gap: 2px; border-top: 1px dashed #d5dce7; padding-top: 3px; }
.ctxt { font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 3px 6px; color: #344054; }
.wp .name { margin-bottom: 10px; }
.wp .chip { margin: 0; }
.logo .appname { color: var(--ink); font-weight: 800; letter-spacing: .5px; font-size: 14px; }
.ohbox { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-weight: 700;
         font-variant-numeric: tabular-nums; color: var(--blue); }
.itemlist { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 6px; }
.itag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px;
        font-size: 13px; font-weight: 600; background: #fff; }
.itag em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 0 5px; }
.itag em.o { color: #475467; background: #eef1f6; }
.itag b { font-size: 11px; color: var(--sub); font-weight: 600; }
/* 급여 항목: 종류마다 한 열, 항목은 위→아래 */
.it-wrap .it-panel { margin: 0 0 14px !important; }
.it-panel .su-head { display: flex; align-items: center; gap: 8px; }
.it-panel .it-cnt { color: var(--sub); font-weight: 500; font-size: 12.5px; }
.it-panel .it-add { margin-left: auto; display: flex; gap: 6px; }
.it-table td { padding: 3px 6px; } .it-table .su-in { width: 100%; height: 30px; }
.it-table .it-h { width: 22px; color: transparent; user-select: none; letter-spacing: -2px; }
.it-panel.sorting .it-h { color: #2f6bff; cursor: grab; } .it-panel.sorting tbody tr { background: #f7f9ff; }
.it-table .it-no { color: #98a2b3; font-variant-numeric: tabular-nums; }
.it-table .it-fixed { font-weight: 600; } .it-table .ro { color: var(--sub); }
.it-table tr.dragging { opacity: .45; background: #eef3ff; }
.it-table .it-rate { text-align: center; }
.it-table .it-print.diff { color: #e5484d; font-weight: 600; }
.it-table .it-limit { text-align: right; } .it-table .it-limit:disabled { background: #f4f6f9; }
.it-bar { position: static !important; }
.bx-items #pBi .su.itemcols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: start; }
.itemcols .su-panel { margin: 0 !important; box-shadow: none; }
.itemcols .su-head { flex-wrap: wrap; gap: 4px 6px; padding: 10px 12px; font-size: 13.5px; }
.itemcols .su-head [data-mgr] { margin-left: auto; padding: 2px 8px; font-size: 12px; }
.itemcol { list-style: none; counter-reset: it; margin: 0; padding: 4px 0; }
.itemcol li { counter-increment: it; display: flex; align-items: center; gap: 5px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.itemcol li + li { border-top: 1px solid #f0f2f6; }
.itemcol li::before { content: counter(it); min-width: 18px; color: #98a2b3; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.itemcol li.none { color: var(--sub); font-weight: 400; } .itemcol li.none::before { content: ''; }
.itemcol .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itemcol em { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.itemcol em.nt { background: #fff4c2; color: #8a6100; border: 1px solid #f3dc7a; } .itemcol em.o { color: #475467; background: #eef1f6; }
.itemcol b { font-size: 11px; color: var(--sub); font-weight: 600; white-space: nowrap; }
.itemnote { padding: 4px 16px 14px; font-size: 12px; color: var(--sub); }
.logo { gap: 10px; }
.logo img.mark { height: 30px; }
.logo .appname { border-left: 0; padding-left: 0; font-size: 19px; font-weight: 800; letter-spacing: .3px; color: var(--ink); }
/* 강제기입 = 빨간 글씨 (비어 있으면 회색 자동값이 보임) */
.mforce input { text-align: right; font-variant-numeric: tabular-nums; }
.mforce input::placeholder { color: #98a2b3; font-weight: 400; }
.mforce input:not(:placeholder-shown) { color: #d92d20; font-weight: 700; }
.mforce-grid input:not(:placeholder-shown) { color: #d92d20; font-weight: 700; }
.forced, td.forced { color: #d92d20 !important; font-weight: 700; }
.stack.grid2 { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.stack.grid2 > .fld + .fld { border-top: 0 !important; }
.stack.grid2 > .fld:nth-child(n+3) { border-top: 1px dashed #d5dce7 !important; }
.stack.grid2 .tg { min-width: 22px; }
.stack.grid2.natl > .fld:first-child { grid-column: 1 / -1; }   /* 내외국인 위 한 줄, 국적·체류자격 아래 나란히 */
.stack.grid2.natl > .fld:nth-child(n+2) { border-top: 1px dashed #d5dce7 !important; }
table.sheet.ppl td input, table.sheet.ppl td select { text-align: center; text-align-last: center; }
table.sheet.ppl thead th { text-align: center; }
.pc-td { cursor: pointer; } .pc-td:hover { background: #f5f8ff; } td.pc-on { outline: 2px solid #2f6bff; outline-offset: -2px; }
.pc-cell { margin: 0 auto; } .pc-cell .pc-l { height: 32px; display: block; line-height: 32px; text-align: center; align-items: center; justify-content: center; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.pc-cell .pc-l + .pc-l { border-top: 1px dashed #d5dce7; }
.pc-cell .pc-sub { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.pc-none { color: #b0b8c6; }
.cell-pop { position: absolute; z-index: 60; width: 260px; background: #fff; border: 1px solid #d5dce7; border-radius: 12px; padding: 12px;
            box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.cell-pop .cp-t { font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.cell-pop .cp-r { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 6px; margin-bottom: 8px; }
.cell-pop .cp-r label { font-size: 12.5px; color: var(--sub); }
.cell-pop .cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.cell-pop select, .cell-pop input { width: 100%; height: 32px; border: 1px solid #d5dce7; border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; }
.cell-pop select:disabled, .cell-pop input:disabled { background: #f4f6f9; color: #98a2b3; }
.cell-pop .cp-ft { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
/* 인적정보 표: 칸이 늘어나도 줄이 맞게 — 모든 칸 위쪽 정렬 + 한 줄 = 32px (1줄·2줄·늘어난 칸의 줄 위치가 같음) */
table.sheet.ppl td { vertical-align: top; }
table.sheet.ppl td > .fld, table.sheet.ppl .stack > .fld { height: 32px; box-sizing: border-box; align-items: center; }
table.sheet.ppl .ctr-box, table.sheet.ppl .ctr-body, table.sheet.ppl .prob-more, table.sheet.ppl .prob-man,
table.sheet.ppl .natl-box, table.sheet.ppl .natl-more { gap: 0; padding-top: 0; }
table.sheet.ppl .ctr-box > select, table.sheet.ppl .ctr-body > input, table.sheet.ppl .ctr-body > .ctxt,
table.sheet.ppl .prob-row, table.sheet.ppl .prob-more > select, table.sheet.ppl .prob-man > input, table.sheet.ppl .prob-term,
table.sheet.ppl .natl-box select, table.sheet.ppl .vi-wrap { height: 32px; box-sizing: border-box; }
table.sheet.ppl .ctr-body > .ctxt, table.sheet.ppl .prob-term { display: flex; align-items: center; justify-content: center; padding: 0 4px; }
table.sheet.ppl .prob-term:empty { display: none; }
table.sheet.ppl .prob-row select, table.sheet.ppl .vi-wrap select { height: 100%; }
table.sheet.ppl .prob-man > input + input, table.sheet.ppl .ctr-body > input + input { border-top: 1px dashed #d5dce7; }
.prob-more { display: flex; flex-direction: column; gap: 2px; border-top: 1px dashed #d5dce7; padding-top: 2px; }
.prob-more[hidden], .prob-man[hidden] { display: none; }
.prob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.prob-row select + select { border-left: 1px dashed #d5dce7; }
.prob-box select:disabled { color: #c3cad6; }
.prob-box select { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; padding: 2px 0; }
.prob-box select.dirty, .prob-box input.dirty { background: #fff7d6; }
.prob-man { display: flex; flex-direction: column; gap: 2px; }
.prob-man input { width: 100%; min-width: 0; border: 0; background: #f4f6f9; border-radius: 4px; text-align: center; font: inherit; font-size: 12px; padding: 2px; }
.prob-term { font-size: 12px; color: var(--sub); text-align: center; }
.prob-term:empty { display: none; }
.natl-box { display: flex; flex-direction: column; gap: 2px; }
.natl-box select { width: 100%; border: 0; background: transparent; font: inherit; padding: 2px 0; }
.natl-more { display: flex; flex-direction: column; gap: 2px; border-top: 1px dashed #d5dce7; padding-top: 2px; }
.natl-more[hidden] { display: none; }
.natl-box select.dirty { background: #fff7d6; }
.vi-wrap { position: relative; display: block; }
.vi-wrap select { color: transparent; }                 /* 칸에는 아래 코드만 보이고, 펼친 목록은 이름까지 */
.vi-wrap select option, .vi-wrap select optgroup { color: #1f2937; }
.vi-wrap select option { font-family: Consolas, 'D2Coding', monospace; text-align: left; }
.vi-wrap .vi-code { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
                    font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.vi-wrap select:not(:has(option:checked:not([value=""]))) + .vi-code { color: #98a2b3; font-weight: 400; }
table.sheet.ppl td > .fld, table.sheet.ppl td .stack > .fld { justify-content: center; }
.holbox { display: grid; gap: 3px; }
.holsum { width: 100%; border: 1px dashed #cfd6e4; background: #fff; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 12.5px;
          color: var(--sub); cursor: pointer; text-align: center; line-height: 1.5; }
.holsum .hl { font-weight: 700; color: var(--ink); margin-right: 2px; }
.holsum.on { border-style: solid; border-color: #c9d7fb; color: var(--blue); font-weight: 600; background: var(--blue-soft); }
.holsum:hover { border-color: var(--blue); }
.holedit { display: grid; gap: 3px; border-top: 1px dashed #d5dce7; padding-top: 4px; }
.holedit input, .holedit select { width: 100%; }
.holedit[hidden] { display: none; }
.cprow { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 9px; font: inherit;
         font-size: 12px; font-weight: 600; color: #475467; cursor: pointer; }
.cprow:hover { border-color: var(--blue); color: var(--blue); }
.sheet .pat input.rsel, .pat input.rsel { background: #dce7ff !important; border-color: #8fb0ff !important; }
/* 포괄휴일·연차: 옆 「월 시간」 칸과 같은 높이의 카드로 가운데 정렬 */
.holsum { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
          border-radius: 8px; border-width: 1px; }
.holgrid { display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 4px; text-align: left; justify-items: start; }
.holgrid > span:nth-child(even) { justify-self: center; }   /* 이름표는 맞추고 내용(기간·주휴시간)은 가운데 */
/* 수당이 5개 이상일 때 「수당」 한 칸: 이름표 고정 폭 + 비과세는 파란 이름 */
.fld.allow .tg { width: 76px; min-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
                 font-size: 12px; color: #475467; font-weight: 600; }
.fld.allow.ntax .tg { color: var(--blue); }
.fld.allow input { text-align: right; }
/* 가운데 정렬 시트(근로시간): 글자·요약 블록 가운데, 요일 시간 입력 묶음은 그대로 */
th.ctr, td.ctr { text-align: center; }
td.ctr > .fld { justify-content: center; }
td.ctr .mini { display: inline-grid; text-align: left; }
td.ctr .stack.grid2 { text-align: left; }
td.ctr input.num, td.ctr select { text-align: center; text-align-last: center; }
td.ctr .stack:not(.grid2) > .fld { justify-content: center; }
/* 우측 상단 「시스템」 + 시스템 설정 표 */
.sysbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475467;
          border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; text-decoration: none; }
.sysbtn:hover, .sysbtn.on { border-color: var(--blue); color: var(--blue); }
.sysbtn + .badge-local { margin-left: 0; }
.cbtn + .sysbtn { margin-left: 8px; }
.att-sub { font-size: 12.5px; color: #475467; background: #f2f4f7; border-radius: 999px; padding: 4px 10px; }
.att-sub.new { background: #fff4d6; color: #8a5a00; font-weight: 600; }
.att-note { margin: 0 0 10px; padding: 10px 14px; background: #fff8e6; border: 1px solid #f5dfa6; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.att-note b { margin-right: 8px; color: #8a5a00; }
.cl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cl-tbl td, .cl-tbl th { text-align: center; } .cl-tbl td.l { text-align: left; white-space: pre-wrap; word-break: break-all; }
.cl-tbl .off { color: #98a2b3; } .cl-tbl tr.new td { background: #f5f8ff; }
.cl-tbl .bp-f a { background: #eef3ff; color: #2f6bff; border-radius: 999px; padding: 2px 9px; font-size: 12px; text-decoration: none; margin: 2px; display: inline-block; }
.sysbox h3 { margin: 0 0 12px; font-size: 15px; }
.systbl th, .systbl td { text-align: center; }
.systbl th small { display: block; font-weight: 500; color: var(--sub); }
.systbl input.su-in { width: 100%; min-width: 0; text-align: center; }
.systbl input.su-in::placeholder { color: #b4bccb; font-weight: 400; }
.systbl input.su-in.chg { color: var(--blue); font-weight: 700; border-color: #c9d7fb; background: var(--blue-soft); }
/* 임금설정 「참고」: 이름표 한 줄로 맞추고 숫자는 오른쪽 끝 정렬 */
td.ctr .stack > .fld.ref { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; justify-content: stretch; }
.fld.ref .rov { text-align: right; font-variant-numeric: tabular-nums; }
/* 세후 직원 역산 값 누락 경고 */
.sehu-warn { color: var(--red, #e5484d); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: help; }
.sehu-warn b { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #e5484d; color: #fff;
               font-size: 10.5px; line-height: 1; }
.fld.needfix select, .fld.needfix input { border-color: #f3a5a7 !important; background: #fff1f1 !important; }
.fld.needfix .tg { color: #e5484d; font-weight: 700; }
/* 임금설정 통상시급 칸 / 연봉 ×12 / 근로시간 포괄휴일 칸 */
.ohv { font-weight: 600; font-variant-numeric: tabular-nums; }
.gline { font-size: 11.5px; color: var(--sub); margin-top: 2px; font-variant-numeric: tabular-nums; }
.gline.sehu-warn { color: #e5484d; display: inline-flex; }
.x12pop { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--blue); color: var(--blue); border-radius: 6px;
          padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(16,24,40,.12); white-space: nowrap; }
.x12pop:hover { background: var(--blue-soft); }
.fld.annual input::placeholder, .fld.hol input::placeholder { color: #b4bccb; }
.fld.hol select:invalid, .fld.hol select option[value=""] { color: #98a2b3; }
/* 퇴사자 열람: 성명 옆 퇴사일 칸 (열람할 때만) */
table.sheet:not(.show-ret) .retcol { display: none; }
.retday { color: #e5484d; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 인적정보 정렬 고르기 */
.sortsel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475467; }
.sortsel select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 500; background: #fff; }
/* 임금설정: 급여 칸 아래 세전 줄 / 근로시간 금액 / 최저임금 미달 */
.stack.inline > .fld.gfull { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
.stack.inline > .fld.gnone { display: none; }
.fld.bd .tg { width: 50px; min-width: 50px; font-size: 12px; color: #475467; font-weight: 600; text-align: left; }
.fld.bd .rov { text-align: right; font-variant-numeric: tabular-nums; flex: 1; }
td.ctr .stack.grid2 > .fld.bd { justify-content: space-between; }
.fld.allow .tg { width: 46px !important; min-width: 46px !important; }
.fld.allow input { padding-left: 4px !important; padding-right: 4px !important; font-size: 12.5px; }
.mwneg { color: #e5484d; font-weight: 700; }
.stack.grid2:has(> .fld.bd) { column-gap: 14px; }
.stack.grid2:has(> .fld.bd) > .fld.bd:nth-child(even) { border-left: 1px dashed #dfe4ee; padding-left: 8px; }
/* 날짜 칸 비었을 때 '해당없음' (달력은 그대로) / 빈 select 회색 */
.datewrap .dbox { position: relative; flex: 1; display: block; min-width: 0; }
.datewrap .dbox input { width: 100%; }
.datewrap .dph { display: none; position: absolute; inset: 0 26px 0 0; align-items: center; justify-content: center;
                 color: #b4bccb; font-size: 13px; pointer-events: none; }
.datewrap input:invalid:not(:focus) { color: transparent; }
.datewrap input:invalid:not(:focus)::-webkit-datetime-edit { color: transparent; }
.datewrap input:invalid:not(:focus) + .dph { display: flex; }
.fld.hol select:invalid { color: #b4bccb; }
.fld.hol select option { color: var(--ink, #101828); }
td.ctr .fld.hol select { text-align: center; text-align-last: center; }
/* 근무요일·시간 입력 묶음 가운데 */
td.ctr .sch { width: max-content; margin: 0 auto; }
/* 세후: 월급 금액은 제자리, 세전 줄은 그 아래에 겹치지 않게 */
.stack.inline:has(> .fld.gfull:not(.gnone)) { position: relative; }
.stack.inline > .fld.gfull { position: absolute; top: calc(100% + 2px); right: 0; grid-column: auto; grid-row: auto; }
.mwpos { color: var(--blue); font-weight: 700; }
/* 수당 9개 이상: 한 칸에 세 개씩, 글자 조금 작게 (이름은 잘리면 마우스로 전체) */
.stack.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 5px; row-gap: 3px; }
.fld.allow.sm .tg { width: 30px !important; min-width: 30px !important; font-size: 11px; }
.fld.allow.sm input { font-size: 12px; padding-left: 2px !important; padding-right: 2px !important; }
/* 묶음 수당 칸: 입력칸을 글자 줄 높이로 → 기본급·포괄수당(4줄)과 높이 맞춤 */
.stack.grid2:has(> .fld.allow), .stack.grid3:has(> .fld.allow) { row-gap: 2px; }
.fld.allow input { height: 21px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.fld.allow.sm .tg { width: 27px !important; min-width: 27px !important; font-size: 10.5px; }
.fld.allow.sm input { font-size: 11.5px; padding-left: 1px !important; padding-right: 2px !important; }
.fld.allow.sm { gap: 2px !important; }
.fld.allow.sm .tg { width: 24px !important; min-width: 24px !important; }
.fld.allow.sm input { font-size: 11px; }
.stack.grid3:has(> .fld.allow) { column-gap: 4px; }
/* 글자 맞춤용: 값 칸은 넘치면 잘라 두고(fitText가 글자를 줄임) */
table.sheet .fld .rov { min-width: 0; overflow: hidden; white-space: nowrap; }
/* 기본급·포괄수당: 이름표 조금 좁게 → 숫자 자리 넓게 */
.fld.bd .tg { width: 44px !important; min-width: 44px !important; font-size: 11.5px !important; }
.stack.grid2:has(> .fld.bd) { column-gap: 8px !important; }
.stack.grid2:has(> .fld.bd) > .fld.bd:nth-child(even) { padding-left: 6px !important; }
.fld.bd { gap: 2px !important; }
/* 저장 전 미리보기 계산값 */
.fld.pv .rov, .fld.pv .rov * { color: #98a2b3 !important; font-style: italic; }
.fld.pv .rov .sehu-warn, .fld.pv .rov .sehu-warn * { color: #e5484d !important; }
/* 사업장 화면 제목: 한 줄로 (표 칸을 더 보이게) */
.wpline { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; font-size: 15px; }
.wpline a { color: var(--sub); text-decoration: none; font-weight: 500; }
.wpline a:hover { color: var(--blue); }
.wpline .sep { color: #c0c7d4; }
.wpline b { font-size: 18px; font-weight: 800; color: var(--ink, #101828); }
/* 저장 방식 창: 한 줄씩 간단히 */
.opt.sm1 { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.opt.sm1 .smdate { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.opt.sm1 .smdate input:disabled { opacity: .45; }
/* 급여 항목 요약: 비과세는 노란 표시 */
.itag em.nt { background: #fff4c2; color: #8a6100; border: 1px solid #f3dc7a; font-style: normal; }
/* 회색 '해당없음' 글자 칸(감면율 등)도 가운데 */
td.ctr .fld.hol input, td.ctr .fld.hol input::placeholder { text-align: center; }
.fld.tg-wide .tg, .fld .tg[title="공제대상"] { min-width: 52px; }
.fld.hol select:has(option[value=""]:checked) { color: #b4bccb; }   /* 빈 값(해당없음)이 목록 중간에 있어도 회색 */
.fld .tg[title="부양 8~20"] { min-width: 52px; white-space: nowrap; }
/* 부서·직위 번호 목록 */
.lst { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lst li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13.5px; }
.lst li .no { color: var(--sub); font-variant-numeric: tabular-nums; min-width: 22px; }
.lst li .nm { flex: 1; font-weight: 600; }
.lst-del { border: 0; background: none; color: #98a2b3; font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; }
.lst-del:hover { color: #e5484d; }
.lst-add { display: flex; gap: 6px; }
.lst-add input { flex: 1; }
.lsted:has(textarea.chg) .lst li { border-color: #f3dc7a; background: #fffbe6; }
/* 노무관리기초정보 왼쪽 인덱스 */
.bx { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.bx-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line);
          border-radius: 12px; padding: 8px; }
.bx-nav button { display: flex; align-items: center; justify-content: space-between; text-align: left; border: 0; background: none;
                 font: inherit; font-size: 13.5px; font-weight: 600; color: #475467; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.bx-nav button:hover { background: #f4f7fb; color: var(--ink, #101828); }
.bx-nav button.on { background: var(--blue-soft); color: var(--blue); }
.bx-nav .dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; flex: none; }
.bx-nav button.chg .dot { background: #f5b301; }
.bx-body .su { display: block; }
.bx-body .su-panel { margin-bottom: 14px; }
.bx-body .su-panel[hidden], .bx-body .su-bar[hidden], .bx-items[hidden] { display: none !important; }
.bx-items { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bx-items #pBi, .bx-items #pZi { padding: 14px; }
.bx-items #pBi .su { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* 노무관리기초정보: 입력칸·이름표 가운데 */
.bx-body .su-form .lb { justify-content: center; text-align: center; }
.bx-body .su-in, .bx-body .su-form select { text-align: center; text-align-last: center; }
.bx-body .su-table th, .bx-body .su-table td { text-align: center; }
/* 인덱스 번호 */
.bx-nav button { justify-content: flex-start; gap: 10px; }
.bx-nav button .tx { flex: 1; }
.bx-nav .no, .su-head .secno { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
         background: #eef1f6; color: #667085; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bx-nav button.on .no { background: var(--blue); color: #fff; }
.su-head .secno { background: var(--blue); color: #fff; margin-right: 8px; vertical-align: 1px; }
.bx { grid-template-columns: 240px 1fr; }
.bx-nav button .tx { white-space: nowrap; }
/* 급여등록 하위 탭 (도구줄 왼쪽) */
.subtabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #f4f6fa; gap: 2px; flex: none; }
.subtabs a { padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #667085; text-decoration: none; white-space: nowrap; }
.subtabs a:hover { color: var(--ink, #101828); }
.subtabs a.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
/* 설명 문구 숨김 (10-22 사용자 요청) — 데이터 손실 경고(.note.keep)만 남김 */
.note:not(.keep), .su-hint, .su-note, .itemnote, .field .hint { display: none !important; }
.leave-tasks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 14px 14px; }
.leave-tasks .lt-h { font-weight: 700; font-size: 13px; margin-bottom: 6px; text-align: center; }
.leave-tasks .lst li { font-size: 12.5px; }
/* 휴직 표 + 오른쪽 상세 패널 */
.lvtable .lvrow { cursor: pointer; }
.lvtable .lvrow:hover td { background: #f6f9ff; }
.lvtable .lvrow.on td { background: var(--blue-soft); }
.lvprog { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #fff4c2; color: #8a6100; font-size: 12px; font-weight: 700; }
.lvprog.done { background: #e3f6ea; color: #157a3f; }
.lvfiles { font-size: 12.5px; color: #475467; }
#lvpanel { position: fixed; top: 0; right: 0; width: 440px; max-width: 100vw; height: 100vh; background: #fff; z-index: 40;
           border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(16,24,40,.12); display: flex; flex-direction: column; }
.lvp-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lvp-who { font-size: 13px; color: var(--sub); }
.lvp-title { font-size: 19px; font-weight: 800; margin-top: 2px; }
.lvp-x { border: 0; background: none; font-size: 26px; line-height: 1; color: #98a2b3; cursor: pointer; }
.lvp-x:hover { color: var(--ink, #101828); }
.lvp-body { overflow-y: auto; padding: 6px 20px 24px; }
.lvp-body section { padding: 14px 0; border-bottom: 1px solid #eef1f6; }
.lvp-body section:last-child { border-bottom: 0; }
.lvp-body h3 { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.lvp-body h3 .btn { margin-left: auto; }
.lvp-grid { display: grid; grid-template-columns: 52px 1fr; gap: 8px 10px; align-items: center; }
.lvp-grid label { font-size: 13px; color: var(--sub); font-weight: 600; }
.lvp-dates { display: flex; align-items: center; gap: 6px; } .lvp-dates input { flex: 1; min-width: 0; }
.lvp-grid textarea { resize: vertical; }
.lvp-act { display: flex; justify-content: flex-end; margin-top: 10px; }
.lvp-tasks, .lvp-files { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lvp-tasks li, .lvp-files li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lvp-tasks li label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; font-size: 13.5px; }
.lvp-tasks li.done { background: #f3fbf6; border-color: #cdebd8; }
.lvp-tasks li.done span { color: #157a3f; }
.lvp-tasks .dt { font-size: 12px; color: #157a3f; font-variant-numeric: tabular-nums; }
.lvp-files li a { flex: 1; color: var(--ink, #101828); text-decoration: none; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvp-files li a:hover { color: var(--blue); text-decoration: underline; }
.lvp-files .sz { font-size: 12px; color: var(--sub); }
.lvp-del { border: 0; background: none; color: #98a2b3; font-size: 16px; cursor: pointer; padding: 0 2px; }
.lvp-del:hover { color: #e5484d; }
body.lvopen main { margin-right: 452px; }
/* 공휴일 한 줄씩 편집 */
.holed .hol-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.holed .hol-n { font-size: 13px; color: var(--sub); font-weight: 600; }
.holed .hol-rows { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; margin-bottom: 8px; }
.holed .hol-row { display: grid; grid-template-columns: 110px 26px 1fr 24px; align-items: center; gap: 6px; padding: 6px 10px;
                  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13.5px; }
.holed .hol-row .d { font-variant-numeric: tabular-nums; font-weight: 600; }
.holed .hol-row .w { color: var(--sub); font-size: 12.5px; text-align: center; }
.holed .hol-add { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px; }
.holed:has(textarea.chg) .hol-row { border-color: #f3dc7a; }
/* 인사관리 */
.hrbar { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.hrbar .search { width: 220px; }
.mvto { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* 직원 이력 창 */
.eh-wrap { max-height: 60vh; overflow-y: auto; }
.su-table.eh td { vertical-align: top; text-align: left; }
.su-table.eh .eh-d { font-variant-numeric: tabular-nums; white-space: nowrap; }
.eh-k { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef1f6; color: #475467; white-space: nowrap; }
.eh-k.k-입사 { background: #e3f6ea; color: #157a3f; } .eh-k.k-퇴사 { background: #fde8e8; color: #c4282d; }
.eh-k.k-부서이동 { background: var(--blue-soft); color: var(--blue); } .eh-k.k-휴직 { background: #fff4c2; color: #8a6100; }
.eh-k.k-임금 { background: #efe9fb; color: #5b3cc4; }
.eh-t div { line-height: 1.6; } .eh-at { font-size: 11.5px; margin-top: 2px; }
.ctnew { display: flex; align-items: center; gap: 4px; } .ctnew select { width: 92px; } .ctnew input { width: 128px; }
.eh-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lvp-hist { float: right; margin-left: 8px; }
.eh-k.k-근로시간 { background: #e6f6f4; color: #0f766e; } .eh-k.k-계약 { background: #eef1f6; color: #344054; }
/* 기초정보 0번 현황 */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
.ov-card .su-head .sub { font-weight: 500; }
.ov-go { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--sub); text-decoration: none; }
.ov-go:hover { color: var(--blue); }
.ov-card.none .su-head { border-bottom: 0; } .ov-card.none .ov-empty { padding: 0 16px 14px; text-align: left; margin-top: -6px; }
.ov-rows { list-style: none; margin: 0; padding: 4px 0; max-height: 260px; overflow-y: auto; }
.ov-rows li { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; }
.ov-rows li + li { border-top: 1px solid #f0f2f6; }
.ov-who { display: flex; flex-direction: column; line-height: 1.35; } .ov-who .sub { font-size: 11.5px; }
.ov-info { color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tag { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef1f6; color: #475467; }
.ov-tag.amber { background: #fff4c2; color: #8a6100; } .ov-tag.red { background: #fde8e8; color: #c4282d; }
.ov-tag.green { background: #e3f6ea; color: #157a3f; } .ov-tag.blue { background: #e8efff; color: #2f6bff; }
.ov-card { box-shadow: none; margin: 0 !important; } .ov-card #ovS { margin-left: auto; }
.ov-card .su-head { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.ov-card .su-head #ovM { width: 150px; height: 30px; font-weight: 500; margin-left: 4px; }
.ov-cnt { padding: 1px 9px; border-radius: 99px; background: #eef1f6; color: var(--sub); font-size: 12px; font-weight: 700; }
.ov-cnt.on { background: #fff4c2; color: #8a6100; }
.ov-empty { padding: 34px 16px; text-align: center; color: var(--sub); font-size: 13px; }
.su-table.ov { margin: 0; border: 0; } .su-table.ov th, .su-table.ov td { text-align: center; }
.ov-body { padding: 12px 14px 14px; }
.ov-body textarea { width: 100%; resize: vertical; text-align: left !important; text-align-last: auto !important; line-height: 1.6; }
.ov-past { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ov-past #ovL { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-chip.ov-more { border-style: dashed; color: var(--sub); }
.pm-tbl th, .pm-tbl td { text-align: center; }
.ov-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 11px; font-size: 12.5px; cursor: pointer; }
.ov-chip:hover { border-color: var(--blue); } .ov-chip.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }

/* 연차 내역 창 (11-02) */
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-col h3, .modal h3 { font-size: 14px; margin: 0 0 8px; }
.an-tbl th, .an-tbl td { text-align: center; }
.an-tbl tr.an-future td { color: var(--muted, #98a2b3); }
.an-add { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.an-add input, .an-add select { height: 34px; }

/* 급상여계산: 작업 목록 · 계산 대상 (11-02) */
.run-top, .run-bot { margin-bottom: 14px; }
.run-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.run-bar b { font-size: 15px; }
.run-tbl tbody tr[data-run] { cursor: pointer; }
.run-tbl tbody tr[data-run]:hover td { background: #f5f8ff; }
.run-tbl tbody tr.on td { background: #e8efff; }
.run-tbl tbody tr.off td { color: #98a2b3; }
.run-tbl .run-in { width: 100%; height: 30px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: center; font: inherit; }
.run-tbl .run-in:hover { border-color: #dfe5ee; background: #fff; }
.run-tbl .run-in:focus { border-color: #2f6bff; background: #fff; outline: none; }
/* 변동지급·변동공제 항목 버튼 (11-02) */
.var-head { padding: 12px 14px; margin-bottom: 12px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.var-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #dfe5ee; background: #fff; font: inherit; font-weight: 600; color: #344054; cursor: pointer; }
.var-chip b { margin-left: 4px; color: #2f6bff; font-size: 12px; }
.var-chip:hover { border-color: #2f6bff; }
.var-chip.on { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.var-chip.on b { color: #fff; }
.var-add { height: 34px; border-radius: 999px; border: 1px dashed #b8c3d6; padding: 0 12px; background: #fff; font: inherit; color: #475467; }
/* 급상여조회 (11-02): 급여대장형 표, 왼쪽 칸 고정 + 항목 가로 스크롤 */
.pv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.pv-head input[type=month] { height: 32px; }
.pv-wrap { overflow: auto; max-height: calc(100vh - 260px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pv-tbl { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pv-tbl th, .pv-tbl td { padding: 7px 10px; border-bottom: 1px solid #e9edf3; border-right: 1px solid #f0f2f6; white-space: nowrap; text-align: center; background: #fff; }
.pv-tbl thead th { position: sticky; top: 0; z-index: 2; background: #f7f9fc; color: #4a5263; font-weight: 600; font-size: 12px; }
.pv-tbl td.n { text-align: right; min-width: 84px; }
.pv-tbl .fx { position: sticky; z-index: 1; }
.pv-tbl thead th.fx { z-index: 3; }
.pv-tbl .fx-last { border-right: 2px solid #dfe5ee; }
.pv-tbl .s-pay, .pv-tbl .s-ded { background: #f5f8ff; font-weight: 700; }
.pv-tbl .s-net { background: #eaf1ff; font-weight: 800; color: #1d4ed8; }
.pv-tbl thead .s-pay, .pv-tbl thead .s-ded, .pv-tbl thead .s-net { background: #e8efff; color: #2f6bff; }
.pv-tbl tr.tot td { background: #f7f9fc; font-weight: 700; position: sticky; bottom: 0; }
.pv-tbl tr.tot td.fx { z-index: 2; }
/* 출력기 창 (11-02): 기존 통합노무관리 출력기를 화면 위에 */
#printWrap { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; }
#printWrap .print-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
#printWrap iframe { flex: 1; border: 0; width: 100%; }
